mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 22:25:19 +00:00
3186 lines
7.3 MiB
3186 lines
7.3 MiB
(function(){var BY={93696:function(oe,N){"use strict";var o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};N.Z=o},50756:function(oe,N){"use strict";var o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};N.Z=o},85368:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};N.default=o},16976:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};N.default=o},67303:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};N.default=o},77384:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};N.default=o},79203:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};N.default=o},78515:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};N.default=o},34950:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};N.default=o},15369:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};N.default=o},20702:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};N.default=o},25828:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};N.default=o},37431:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=g(o(95183));function g(y){return y&&y.__esModule?y:{default:y}}var A=x;N.default=A,oe.exports=A},67996:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=g(o(48138));function g(y){return y&&y.__esModule?y:{default:y}}var A=x;N.default=A,oe.exports=A},42547:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=g(o(86266));function g(y){return y&&y.__esModule?y:{default:y}}var A=x;N.default=A,oe.exports=A},74337:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=g(o(92018));function g(y){return y&&y.__esModule?y:{default:y}}var A=x;N.default=A,oe.exports=A},40753:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=g(o(83482));function g(y){return y&&y.__esModule?y:{default:y}}var A=x;N.default=A,oe.exports=A},42461:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=g(o(77998));function g(y){return y&&y.__esModule?y:{default:y}}var A=x;N.default=A,oe.exports=A},67039:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=g(o(3855));function g(y){return y&&y.__esModule?y:{default:y}}var A=x;N.default=A,oe.exports=A},94354:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=g(o(46564));function g(y){return y&&y.__esModule?y:{default:y}}var A=x;N.default=A,oe.exports=A},93201:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=g(o(34106));function g(y){return y&&y.__esModule?y:{default:y}}var A=x;N.default=A,oe.exports=A},628:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=g(o(4851));function g(y){return y&&y.__esModule?y:{default:y}}var A=x;N.default=A,oe.exports=A},27029:function(oe,N,o){"use strict";o.d(N,{Z:function(){return W}});var x=o(28991),g=o(28481),A=o(96156),y=o(81253),M=o(67294),w=o(35510),m=o.n(w),b=o(63017),v=o(38503),h=["icon","className","onClick","style","primaryColor","secondaryColor"],d={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function _(U){var L=U.primaryColor,V=U.secondaryColor;d.primaryColor=L,d.secondaryColor=V||(0,v.pw)(L),d.calculated=!!V}function p(){return(0,x.Z)({},d)}var S=function(L){var V=L.icon,$=L.className,G=L.onClick,z=L.style,K=L.primaryColor,re=L.secondaryColor,ne=(0,y.Z)(L,h),Q=d;if(K&&(Q={primaryColor:K,secondaryColor:re||(0,v.pw)(K)}),(0,v.C3)(),(0,v.Kp)((0,v.r)(V),"icon should be icon definiton, but got ".concat(V)),!(0,v.r)(V))return null;var ue=V;return ue&&typeof ue.icon=="function"&&(ue=(0,x.Z)((0,x.Z)({},ue),{},{icon:ue.icon(Q.primaryColor,Q.secondaryColor)})),(0,v.R_)(ue.icon,"svg-".concat(ue.name),(0,x.Z)({className:$,onClick:G,style:z,"data-icon":ue.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},ne))};S.displayName="IconReact",S.getTwoToneColors=p,S.setTwoToneColors=_;var k=S;function O(U){var L=(0,v.H9)(U),V=(0,g.Z)(L,2),$=V[0],G=V[1];return k.setTwoToneColors({primaryColor:$,secondaryColor:G})}function F(){var U=k.getTwoToneColors();return U.calculated?[U.primaryColor,U.secondaryColor]:U.primaryColor}var D=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];O("#1890ff");var Z=M.forwardRef(function(U,L){var V,$=U.className,G=U.icon,z=U.spin,K=U.rotate,re=U.tabIndex,ne=U.onClick,Q=U.twoToneColor,ue=(0,y.Z)(U,D),he=M.useContext(b.Z),Ee=he.prefixCls,ce=Ee===void 0?"anticon":Ee,ve=he.rootClassName,fe=m()(ve,ce,(V={},(0,A.Z)(V,"".concat(ce,"-").concat(G.name),!!G.name),(0,A.Z)(V,"".concat(ce,"-spin"),!!z||G.name==="loading"),V),$),we=re;we===void 0&&ne&&(we=-1);var me=K?{msTransform:"rotate(".concat(K,"deg)"),transform:"rotate(".concat(K,"deg)")}:void 0,Pe=(0,v.H9)(Q),pe=(0,g.Z)(Pe,2),Ie=pe[0],Je=pe[1];return M.createElement("span",(0,x.Z)((0,x.Z)({role:"img","aria-label":G.name},ue),{},{ref:L,tabIndex:we,onClick:ne,className:fe}),M.createElement(k,{icon:G,primaryColor:Ie,secondaryColor:Je,style:me}))});Z.displayName="AntdIcon",Z.getTwoToneColor=F,Z.setTwoToneColor=O;var W=Z},63017:function(oe,N,o){"use strict";var x=o(67294),g=(0,x.createContext)({});N.Z=g},16165:function(oe,N,o){"use strict";var x=o(28991),g=o(96156),A=o(81253),y=o(67294),M=o(35510),w=o.n(M),m=o(63017),b=o(38503),v=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],h=y.forwardRef(function(d,_){var p=d.className,S=d.component,k=d.viewBox,O=d.spin,F=d.rotate,D=d.tabIndex,Z=d.onClick,W=d.children,U=(0,A.Z)(d,v);(0,b.Kp)(Boolean(S||W),"Should have `component` prop or `children`."),(0,b.C3)();var L=y.useContext(m.Z),V=L.prefixCls,$=V===void 0?"anticon":V,G=L.rootClassName,z=w()(G,$,p),K=w()((0,g.Z)({},"".concat($,"-spin"),!!O)),re=F?{msTransform:"rotate(".concat(F,"deg)"),transform:"rotate(".concat(F,"deg)")}:void 0,ne=(0,x.Z)((0,x.Z)({},b.vD),{},{className:K,style:re,viewBox:k});k||delete ne.viewBox;var Q=function(){return S?y.createElement(S,(0,x.Z)({},ne),W):W?((0,b.Kp)(Boolean(k)||y.Children.count(W)===1&&y.isValidElement(W)&&y.Children.only(W).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),y.createElement("svg",(0,x.Z)((0,x.Z)({},ne),{},{viewBox:k}),W)):null},ue=D;return ue===void 0&&Z&&(ue=-1),y.createElement("span",(0,x.Z)((0,x.Z)({role:"img"},U),{},{ref:_,tabIndex:ue,onClick:Z,className:z}),Q())});h.displayName="AntdIcon",N.Z=h},91321:function(oe,N,o){"use strict";o.d(N,{Z:function(){return v}});var x=o(28991),g=o(81253),A=o(67294),y=o(16165),M=["type","children"],w=new Set;function m(h){return Boolean(typeof h=="string"&&h.length&&!w.has(h))}function b(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=h[d];if(m(_)){var p=document.createElement("script");p.setAttribute("src",_),p.setAttribute("data-namespace",_),h.length>d+1&&(p.onload=function(){b(h,d+1)},p.onerror=function(){b(h,d+1)}),w.add(_),document.body.appendChild(p)}}function v(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=h.scriptUrl,_=h.extraCommonProps,p=_===void 0?{}:_;d&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(d)?b(d.reverse()):b([d]));var S=A.forwardRef(function(k,O){var F=k.type,D=k.children,Z=(0,g.Z)(k,M),W=null;return k.type&&(W=A.createElement("use",{xlinkHref:"#".concat(F)})),D&&(W=D),A.createElement(y.Z,(0,x.Z)((0,x.Z)((0,x.Z)({},p),Z),{},{ref:O}),W)});return S.displayName="Iconfont",S}},38819:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="CheckCircleFilled";var m=g.forwardRef(w)},15873:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="CheckCircleOutlined";var m=g.forwardRef(w)},79508:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="CheckOutlined";var m=g.forwardRef(w)},43061:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="CloseCircleFilled";var m=g.forwardRef(w)},73218:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="CloseCircleOutlined";var m=g.forwardRef(w)},54549:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="CloseOutlined";var m=g.forwardRef(w)},99165:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="CopyOutlined";var m=g.forwardRef(w)},73171:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="DeleteOutlined";var m=g.forwardRef(w)},57254:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="DownOutlined";var m=g.forwardRef(w)},8212:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="EditOutlined";var m=g.forwardRef(w)},44545:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="EllipsisOutlined";var m=g.forwardRef(w)},68855:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="ExclamationCircleFilled";var m=g.forwardRef(w)},57119:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="ExclamationCircleOutlined";var m=g.forwardRef(w)},88633:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="EyeInvisibleOutlined";var m=g.forwardRef(w)},95357:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="EyeOutlined";var m=g.forwardRef(w)},86504:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="FileOutlined";var m=g.forwardRef(w)},21444:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="FullscreenExitOutlined";var m=g.forwardRef(w)},38296:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="FullscreenOutlined";var m=g.forwardRef(w)},40847:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="InfoCircleFilled";var m=g.forwardRef(w)},56717:function(oe,N,o){"use strict";var x=o(28991),g=o(67294),A=o(93696),y=o(27029),M=function(m,b){return g.createElement(y.Z,(0,x.Z)((0,x.Z)({},m),{},{ref:b,icon:A.Z}))};M.displayName="InfoCircleOutlined",N.Z=g.forwardRef(M)},67724:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="LeftOutlined";var m=g.forwardRef(w)},7085:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="LoadingOutlined";var m=g.forwardRef(w)},55035:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="LogoutOutlined";var m=g.forwardRef(w)},76629:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={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"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="MenuFoldOutlined";var m=g.forwardRef(w)},1351:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={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"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="MenuUnfoldOutlined";var m=g.forwardRef(w)},49101:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="PlusOutlined";var m=g.forwardRef(w)},43929:function(oe,N,o){"use strict";var x=o(28991),g=o(67294),A=o(50756),y=o(27029),M=function(m,b){return g.createElement(y.Z,(0,x.Z)((0,x.Z)({},m),{},{ref:b,icon:A.Z}))};M.displayName="RightOutlined",N.Z=g.forwardRef(M)},76570:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="SearchOutlined";var m=g.forwardRef(w)},58491:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="UpOutlined";var m=g.forwardRef(w)},89366:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(28991),g=o(67294),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},y=A,M=o(27029),w=function(v,h){return g.createElement(M.Z,(0,x.Z)((0,x.Z)({},v),{},{ref:h,icon:y}))};w.displayName="UserOutlined";var m=g.forwardRef(w)},38503:function(oe,N,o){"use strict";o.d(N,{R_:function(){return we},pw:function(){return me},r:function(){return ve},H9:function(){return Pe},vD:function(){return pe},C3:function(){return Je},Kp:function(){return ce}});var x=o(28991),g=o(90484),A=o(51277),y=o(67294),M={},w=[],m=function(De){w.push(De)};function b(ke,De){if(!1)var Fe}function v(ke,De){if(!1)var Fe}function h(){M={}}function d(ke,De,Fe){!De&&!M[Fe]&&(ke(!1,Fe),M[Fe]=!0)}function _(ke,De){d(b,ke,De)}function p(ke,De){d(v,ke,De)}_.preMessage=m,_.resetWarned=h,_.noteOnce=p;var S=_;function k(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function O(ke,De){if(!ke)return!1;if(ke.contains)return ke.contains(De);for(var Fe=De;Fe;){if(Fe===ke)return!0;Fe=Fe.parentNode}return!1}var F="data-rc-order",D="data-rc-priority",Z="rc-util-key",W=new Map;function U(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},De=ke.mark;return De?De.startsWith("data-")?De:"data-".concat(De):Z}function L(ke){if(ke.attachTo)return ke.attachTo;var De=document.querySelector("head");return De||document.body}function V(ke){return ke==="queue"?"prependQueue":ke?"prepend":"append"}function $(ke){return Array.from((W.get(ke)||ke).children).filter(function(De){return De.tagName==="STYLE"})}function G(ke){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!k())return null;var Fe=De.csp,Qe=De.prepend,qe=De.priority,et=qe===void 0?0:qe,dt=V(Qe),Ke=dt==="prependQueue",Ge=document.createElement("style");Ge.setAttribute(F,dt),Ke&&et&&Ge.setAttribute(D,"".concat(et)),Fe!=null&&Fe.nonce&&(Ge.nonce=Fe==null?void 0:Fe.nonce),Ge.innerHTML=ke;var wt=L(De),Vt=wt.firstChild;if(Qe){if(Ke){var gt=$(wt).filter(function(it){if(!["prepend","prependQueue"].includes(it.getAttribute(F)))return!1;var Le=Number(it.getAttribute(D)||0);return et>=Le});if(gt.length)return wt.insertBefore(Ge,gt[gt.length-1].nextSibling),Ge}wt.insertBefore(Ge,Vt)}else wt.appendChild(Ge);return Ge}function z(ke){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fe=L(De);return $(Fe).find(function(Qe){return Qe.getAttribute(U(De))===ke})}function K(ke){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fe=z(ke,De);if(Fe){var Qe=L(De);Qe.removeChild(Fe)}}function re(ke,De){var Fe=W.get(ke);if(!Fe||!O(document,Fe)){var Qe=G("",De),qe=Qe.parentNode;W.set(ke,qe),ke.removeChild(Qe)}}function ne(){W.clear()}function Q(ke,De){var Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qe=L(Fe);re(Qe,Fe);var qe=z(De,Fe);if(qe){var et,dt;if((et=Fe.csp)!==null&&et!==void 0&&et.nonce&&qe.nonce!==((dt=Fe.csp)===null||dt===void 0?void 0:dt.nonce)){var Ke;qe.nonce=(Ke=Fe.csp)===null||Ke===void 0?void 0:Ke.nonce}return qe.innerHTML!==ke&&(qe.innerHTML=ke),qe}var Ge=G(ke,Fe);return Ge.setAttribute(U(Fe),De),Ge}var ue=o(63017),he=o(68929),Ee=o.n(he);function ce(ke,De){S(ke,"[@ant-design/icons] ".concat(De))}function ve(ke){return(0,g.Z)(ke)==="object"&&typeof ke.name=="string"&&typeof ke.theme=="string"&&((0,g.Z)(ke.icon)==="object"||typeof ke.icon=="function")}function fe(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(ke).reduce(function(De,Fe){var Qe=ke[Fe];switch(Fe){case"class":De.className=Qe,delete De.class;break;default:delete De[Fe],De[Ee()(Fe)]=Qe}return De},{})}function we(ke,De,Fe){return Fe?y.createElement(ke.tag,(0,x.Z)((0,x.Z)({key:De},fe(ke.attrs)),Fe),(ke.children||[]).map(function(Qe,qe){return we(Qe,"".concat(De,"-").concat(ke.tag,"-").concat(qe))})):y.createElement(ke.tag,(0,x.Z)({key:De},fe(ke.attrs)),(ke.children||[]).map(function(Qe,qe){return we(Qe,"".concat(De,"-").concat(ke.tag,"-").concat(qe))}))}function me(ke){return(0,A.generate)(ke)[0]}function Pe(ke){return ke?Array.isArray(ke)?ke:[ke]:[]}var pe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Ie=`
|
||
.anticon {
|
||
display: inline-block;
|
||
color: inherit;
|
||
font-style: normal;
|
||
line-height: 0;
|
||
text-align: center;
|
||
text-transform: none;
|
||
vertical-align: -0.125em;
|
||
text-rendering: optimizeLegibility;
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
|
||
.anticon > * {
|
||
line-height: 1;
|
||
}
|
||
|
||
.anticon svg {
|
||
display: inline-block;
|
||
}
|
||
|
||
.anticon::before {
|
||
display: none;
|
||
}
|
||
|
||
.anticon .anticon-icon {
|
||
display: block;
|
||
}
|
||
|
||
.anticon[tabindex] {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.anticon-spin::before,
|
||
.anticon-spin {
|
||
display: inline-block;
|
||
-webkit-animation: loadingCircle 1s infinite linear;
|
||
animation: loadingCircle 1s infinite linear;
|
||
}
|
||
|
||
@-webkit-keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
@keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
`,Je=function(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ie,Fe=(0,y.useContext)(ue.Z),Qe=Fe.csp;(0,y.useEffect)(function(){Q(De,"@ant-design-icons",{prepend:!0,csp:Qe})},[])}},92074:function(oe,N,o){"use strict";var x=o(95318),g=o(50008);Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var A=x(o(81109)),y=x(o(63038)),M=x(o(59713)),w=x(o(6479)),m=k(o(67294)),b=x(o(35510)),v=x(o(98399)),h=x(o(95160)),d=o(46768),_=o(72479),p=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];function S(D){if(typeof WeakMap!="function")return null;var Z=new WeakMap,W=new WeakMap;return(S=function(L){return L?W:Z})(D)}function k(D,Z){if(!Z&&D&&D.__esModule)return D;if(D===null||g(D)!=="object"&&typeof D!="function")return{default:D};var W=S(Z);if(W&&W.has(D))return W.get(D);var U={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in D)if(V!=="default"&&Object.prototype.hasOwnProperty.call(D,V)){var $=L?Object.getOwnPropertyDescriptor(D,V):null;$&&($.get||$.set)?Object.defineProperty(U,V,$):U[V]=D[V]}return U.default=D,W&&W.set(D,U),U}(0,d.setTwoToneColor)("#1890ff");var O=m.forwardRef(function(D,Z){var W,U=D.className,L=D.icon,V=D.spin,$=D.rotate,G=D.tabIndex,z=D.onClick,K=D.twoToneColor,re=(0,w.default)(D,p),ne=m.useContext(v.default),Q=ne.prefixCls,ue=Q===void 0?"anticon":Q,he=ne.rootClassName,Ee=(0,b.default)(he,ue,(W={},(0,M.default)(W,"".concat(ue,"-").concat(L.name),!!L.name),(0,M.default)(W,"".concat(ue,"-spin"),!!V||L.name==="loading"),W),U),ce=G;ce===void 0&&z&&(ce=-1);var ve=$?{msTransform:"rotate(".concat($,"deg)"),transform:"rotate(".concat($,"deg)")}:void 0,fe=(0,_.normalizeTwoToneColors)(K),we=(0,y.default)(fe,2),me=we[0],Pe=we[1];return m.createElement("span",(0,A.default)((0,A.default)({role:"img","aria-label":L.name},re),{},{ref:Z,tabIndex:ce,onClick:z,className:Ee}),m.createElement(h.default,{icon:L,primaryColor:me,secondaryColor:Pe,style:ve}))});O.displayName="AntdIcon",O.getTwoToneColor=d.getTwoToneColor,O.setTwoToneColor=d.setTwoToneColor;var F=O;N.default=F},98399:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=o(67294),g=(0,x.createContext)({}),A=g;N.default=A},95160:function(oe,N,o){"use strict";var x=o(95318);Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var g=x(o(6479)),A=x(o(81109)),y=o(72479),M=["icon","className","onClick","style","primaryColor","secondaryColor"],w={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function m(d){var _=d.primaryColor,p=d.secondaryColor;w.primaryColor=_,w.secondaryColor=p||(0,y.getSecondaryColor)(_),w.calculated=!!p}function b(){return(0,A.default)({},w)}var v=function(_){var p=_.icon,S=_.className,k=_.onClick,O=_.style,F=_.primaryColor,D=_.secondaryColor,Z=(0,g.default)(_,M),W=w;if(F&&(W={primaryColor:F,secondaryColor:D||(0,y.getSecondaryColor)(F)}),(0,y.useInsertStyles)(),(0,y.warning)((0,y.isIconDefinition)(p),"icon should be icon definiton, but got ".concat(p)),!(0,y.isIconDefinition)(p))return null;var U=p;return U&&typeof U.icon=="function"&&(U=(0,A.default)((0,A.default)({},U),{},{icon:U.icon(W.primaryColor,W.secondaryColor)})),(0,y.generate)(U.icon,"svg-".concat(U.name),(0,A.default)({className:S,onClick:k,style:O,"data-icon":U.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Z))};v.displayName="IconReact",v.getTwoToneColors=b,v.setTwoToneColors=m;var h=v;N.default=h},46768:function(oe,N,o){"use strict";var x=o(95318);Object.defineProperty(N,"__esModule",{value:!0}),N.getTwoToneColor=w,N.setTwoToneColor=M;var g=x(o(63038)),A=x(o(95160)),y=o(72479);function M(m){var b=(0,y.normalizeTwoToneColors)(m),v=(0,g.default)(b,2),h=v[0],d=v[1];return A.default.setTwoToneColors({primaryColor:h,secondaryColor:d})}function w(){var m=A.default.getTwoToneColors();return m.calculated?[m.primaryColor,m.secondaryColor]:m.primaryColor}},95183:function(oe,N,o){"use strict";var x=o(95318),g=o(50008);Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var A=x(o(81109)),y=b(o(67294)),M=x(o(85368)),w=x(o(92074));function m(d){if(typeof WeakMap!="function")return null;var _=new WeakMap,p=new WeakMap;return(m=function(k){return k?p:_})(d)}function b(d,_){if(!_&&d&&d.__esModule)return d;if(d===null||g(d)!=="object"&&typeof d!="function")return{default:d};var p=m(_);if(p&&p.has(d))return p.get(d);var S={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in d)if(O!=="default"&&Object.prototype.hasOwnProperty.call(d,O)){var F=k?Object.getOwnPropertyDescriptor(d,O):null;F&&(F.get||F.set)?Object.defineProperty(S,O,F):S[O]=d[O]}return S.default=d,p&&p.set(d,S),S}var v=function(_,p){return y.createElement(w.default,(0,A.default)((0,A.default)({},_),{},{ref:p,icon:M.default}))};v.displayName="CheckCircleFilled";var h=y.forwardRef(v);N.default=h},48138:function(oe,N,o){"use strict";var x=o(95318),g=o(50008);Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var A=x(o(81109)),y=b(o(67294)),M=x(o(16976)),w=x(o(92074));function m(d){if(typeof WeakMap!="function")return null;var _=new WeakMap,p=new WeakMap;return(m=function(k){return k?p:_})(d)}function b(d,_){if(!_&&d&&d.__esModule)return d;if(d===null||g(d)!=="object"&&typeof d!="function")return{default:d};var p=m(_);if(p&&p.has(d))return p.get(d);var S={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in d)if(O!=="default"&&Object.prototype.hasOwnProperty.call(d,O)){var F=k?Object.getOwnPropertyDescriptor(d,O):null;F&&(F.get||F.set)?Object.defineProperty(S,O,F):S[O]=d[O]}return S.default=d,p&&p.set(d,S),S}var v=function(_,p){return y.createElement(w.default,(0,A.default)((0,A.default)({},_),{},{ref:p,icon:M.default}))};v.displayName="CheckCircleOutlined";var h=y.forwardRef(v);N.default=h},86266:function(oe,N,o){"use strict";var x=o(95318),g=o(50008);Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var A=x(o(81109)),y=b(o(67294)),M=x(o(67303)),w=x(o(92074));function m(d){if(typeof WeakMap!="function")return null;var _=new WeakMap,p=new WeakMap;return(m=function(k){return k?p:_})(d)}function b(d,_){if(!_&&d&&d.__esModule)return d;if(d===null||g(d)!=="object"&&typeof d!="function")return{default:d};var p=m(_);if(p&&p.has(d))return p.get(d);var S={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in d)if(O!=="default"&&Object.prototype.hasOwnProperty.call(d,O)){var F=k?Object.getOwnPropertyDescriptor(d,O):null;F&&(F.get||F.set)?Object.defineProperty(S,O,F):S[O]=d[O]}return S.default=d,p&&p.set(d,S),S}var v=function(_,p){return y.createElement(w.default,(0,A.default)((0,A.default)({},_),{},{ref:p,icon:M.default}))};v.displayName="CloseCircleFilled";var h=y.forwardRef(v);N.default=h},92018:function(oe,N,o){"use strict";var x=o(95318),g=o(50008);Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var A=x(o(81109)),y=b(o(67294)),M=x(o(77384)),w=x(o(92074));function m(d){if(typeof WeakMap!="function")return null;var _=new WeakMap,p=new WeakMap;return(m=function(k){return k?p:_})(d)}function b(d,_){if(!_&&d&&d.__esModule)return d;if(d===null||g(d)!=="object"&&typeof d!="function")return{default:d};var p=m(_);if(p&&p.has(d))return p.get(d);var S={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in d)if(O!=="default"&&Object.prototype.hasOwnProperty.call(d,O)){var F=k?Object.getOwnPropertyDescriptor(d,O):null;F&&(F.get||F.set)?Object.defineProperty(S,O,F):S[O]=d[O]}return S.default=d,p&&p.set(d,S),S}var v=function(_,p){return y.createElement(w.default,(0,A.default)((0,A.default)({},_),{},{ref:p,icon:M.default}))};v.displayName="CloseCircleOutlined";var h=y.forwardRef(v);N.default=h},83482:function(oe,N,o){"use strict";var x=o(95318),g=o(50008);Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var A=x(o(81109)),y=b(o(67294)),M=x(o(79203)),w=x(o(92074));function m(d){if(typeof WeakMap!="function")return null;var _=new WeakMap,p=new WeakMap;return(m=function(k){return k?p:_})(d)}function b(d,_){if(!_&&d&&d.__esModule)return d;if(d===null||g(d)!=="object"&&typeof d!="function")return{default:d};var p=m(_);if(p&&p.has(d))return p.get(d);var S={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in d)if(O!=="default"&&Object.prototype.hasOwnProperty.call(d,O)){var F=k?Object.getOwnPropertyDescriptor(d,O):null;F&&(F.get||F.set)?Object.defineProperty(S,O,F):S[O]=d[O]}return S.default=d,p&&p.set(d,S),S}var v=function(_,p){return y.createElement(w.default,(0,A.default)((0,A.default)({},_),{},{ref:p,icon:M.default}))};v.displayName="CloseOutlined";var h=y.forwardRef(v);N.default=h},77998:function(oe,N,o){"use strict";var x=o(95318),g=o(50008);Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var A=x(o(81109)),y=b(o(67294)),M=x(o(78515)),w=x(o(92074));function m(d){if(typeof WeakMap!="function")return null;var _=new WeakMap,p=new WeakMap;return(m=function(k){return k?p:_})(d)}function b(d,_){if(!_&&d&&d.__esModule)return d;if(d===null||g(d)!=="object"&&typeof d!="function")return{default:d};var p=m(_);if(p&&p.has(d))return p.get(d);var S={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in d)if(O!=="default"&&Object.prototype.hasOwnProperty.call(d,O)){var F=k?Object.getOwnPropertyDescriptor(d,O):null;F&&(F.get||F.set)?Object.defineProperty(S,O,F):S[O]=d[O]}return S.default=d,p&&p.set(d,S),S}var v=function(_,p){return y.createElement(w.default,(0,A.default)((0,A.default)({},_),{},{ref:p,icon:M.default}))};v.displayName="ExclamationCircleFilled";var h=y.forwardRef(v);N.default=h},3855:function(oe,N,o){"use strict";var x=o(95318),g=o(50008);Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var A=x(o(81109)),y=b(o(67294)),M=x(o(34950)),w=x(o(92074));function m(d){if(typeof WeakMap!="function")return null;var _=new WeakMap,p=new WeakMap;return(m=function(k){return k?p:_})(d)}function b(d,_){if(!_&&d&&d.__esModule)return d;if(d===null||g(d)!=="object"&&typeof d!="function")return{default:d};var p=m(_);if(p&&p.has(d))return p.get(d);var S={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in d)if(O!=="default"&&Object.prototype.hasOwnProperty.call(d,O)){var F=k?Object.getOwnPropertyDescriptor(d,O):null;F&&(F.get||F.set)?Object.defineProperty(S,O,F):S[O]=d[O]}return S.default=d,p&&p.set(d,S),S}var v=function(_,p){return y.createElement(w.default,(0,A.default)((0,A.default)({},_),{},{ref:p,icon:M.default}))};v.displayName="ExclamationCircleOutlined";var h=y.forwardRef(v);N.default=h},46564:function(oe,N,o){"use strict";var x=o(95318),g=o(50008);Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var A=x(o(81109)),y=b(o(67294)),M=x(o(15369)),w=x(o(92074));function m(d){if(typeof WeakMap!="function")return null;var _=new WeakMap,p=new WeakMap;return(m=function(k){return k?p:_})(d)}function b(d,_){if(!_&&d&&d.__esModule)return d;if(d===null||g(d)!=="object"&&typeof d!="function")return{default:d};var p=m(_);if(p&&p.has(d))return p.get(d);var S={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in d)if(O!=="default"&&Object.prototype.hasOwnProperty.call(d,O)){var F=k?Object.getOwnPropertyDescriptor(d,O):null;F&&(F.get||F.set)?Object.defineProperty(S,O,F):S[O]=d[O]}return S.default=d,p&&p.set(d,S),S}var v=function(_,p){return y.createElement(w.default,(0,A.default)((0,A.default)({},_),{},{ref:p,icon:M.default}))};v.displayName="InfoCircleFilled";var h=y.forwardRef(v);N.default=h},34106:function(oe,N,o){"use strict";var x=o(95318),g=o(50008);Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var A=x(o(81109)),y=b(o(67294)),M=x(o(20702)),w=x(o(92074));function m(d){if(typeof WeakMap!="function")return null;var _=new WeakMap,p=new WeakMap;return(m=function(k){return k?p:_})(d)}function b(d,_){if(!_&&d&&d.__esModule)return d;if(d===null||g(d)!=="object"&&typeof d!="function")return{default:d};var p=m(_);if(p&&p.has(d))return p.get(d);var S={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in d)if(O!=="default"&&Object.prototype.hasOwnProperty.call(d,O)){var F=k?Object.getOwnPropertyDescriptor(d,O):null;F&&(F.get||F.set)?Object.defineProperty(S,O,F):S[O]=d[O]}return S.default=d,p&&p.set(d,S),S}var v=function(_,p){return y.createElement(w.default,(0,A.default)((0,A.default)({},_),{},{ref:p,icon:M.default}))};v.displayName="InfoCircleOutlined";var h=y.forwardRef(v);N.default=h},4851:function(oe,N,o){"use strict";var x=o(95318),g=o(50008);Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var A=x(o(81109)),y=b(o(67294)),M=x(o(25828)),w=x(o(92074));function m(d){if(typeof WeakMap!="function")return null;var _=new WeakMap,p=new WeakMap;return(m=function(k){return k?p:_})(d)}function b(d,_){if(!_&&d&&d.__esModule)return d;if(d===null||g(d)!=="object"&&typeof d!="function")return{default:d};var p=m(_);if(p&&p.has(d))return p.get(d);var S={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in d)if(O!=="default"&&Object.prototype.hasOwnProperty.call(d,O)){var F=k?Object.getOwnPropertyDescriptor(d,O):null;F&&(F.get||F.set)?Object.defineProperty(S,O,F):S[O]=d[O]}return S.default=d,p&&p.set(d,S),S}var v=function(_,p){return y.createElement(w.default,(0,A.default)((0,A.default)({},_),{},{ref:p,icon:M.default}))};v.displayName="LoadingOutlined";var h=y.forwardRef(v);N.default=h},72479:function(oe,N,o){"use strict";var x=o(95318),g=o(50008);Object.defineProperty(N,"__esModule",{value:!0}),N.generate=O,N.getSecondaryColor=F,N.iconStyles=void 0,N.isIconDefinition=S,N.normalizeAttrs=k,N.normalizeTwoToneColors=D,N.useInsertStyles=N.svgBaseProps=void 0,N.warning=p;var A=x(o(81109)),y=x(o(50008)),M=o(51277),w=_(o(67294)),m=x(o(62829)),b=o(20756),v=x(o(98399)),h=x(o(68929));function d(L){if(typeof WeakMap!="function")return null;var V=new WeakMap,$=new WeakMap;return(d=function(z){return z?$:V})(L)}function _(L,V){if(!V&&L&&L.__esModule)return L;if(L===null||g(L)!=="object"&&typeof L!="function")return{default:L};var $=d(V);if($&&$.has(L))return $.get(L);var G={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var K in L)if(K!=="default"&&Object.prototype.hasOwnProperty.call(L,K)){var re=z?Object.getOwnPropertyDescriptor(L,K):null;re&&(re.get||re.set)?Object.defineProperty(G,K,re):G[K]=L[K]}return G.default=L,$&&$.set(L,G),G}function p(L,V){(0,m.default)(L,"[@ant-design/icons] ".concat(V))}function S(L){return(0,y.default)(L)==="object"&&typeof L.name=="string"&&typeof L.theme=="string"&&((0,y.default)(L.icon)==="object"||typeof L.icon=="function")}function k(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(L).reduce(function(V,$){var G=L[$];switch($){case"class":V.className=G,delete V.class;break;default:delete V[$],V[(0,h.default)($)]=G}return V},{})}function O(L,V,$){return $?w.default.createElement(L.tag,(0,A.default)((0,A.default)({key:V},k(L.attrs)),$),(L.children||[]).map(function(G,z){return O(G,"".concat(V,"-").concat(L.tag,"-").concat(z))})):w.default.createElement(L.tag,(0,A.default)({key:V},k(L.attrs)),(L.children||[]).map(function(G,z){return O(G,"".concat(V,"-").concat(L.tag,"-").concat(z))}))}function F(L){return(0,M.generate)(L)[0]}function D(L){return L?Array.isArray(L)?L:[L]:[]}var Z={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};N.svgBaseProps=Z;var W=`
|
||
.anticon {
|
||
display: inline-block;
|
||
color: inherit;
|
||
font-style: normal;
|
||
line-height: 0;
|
||
text-align: center;
|
||
text-transform: none;
|
||
vertical-align: -0.125em;
|
||
text-rendering: optimizeLegibility;
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
|
||
.anticon > * {
|
||
line-height: 1;
|
||
}
|
||
|
||
.anticon svg {
|
||
display: inline-block;
|
||
}
|
||
|
||
.anticon::before {
|
||
display: none;
|
||
}
|
||
|
||
.anticon .anticon-icon {
|
||
display: block;
|
||
}
|
||
|
||
.anticon[tabindex] {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.anticon-spin::before,
|
||
.anticon-spin {
|
||
display: inline-block;
|
||
-webkit-animation: loadingCircle 1s infinite linear;
|
||
animation: loadingCircle 1s infinite linear;
|
||
}
|
||
|
||
@-webkit-keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
@keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
`;N.iconStyles=W;var U=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:W,$=(0,w.useContext)(v.default),G=$.csp;(0,w.useEffect)(function(){(0,b.updateCSS)(V,"@ant-design-icons",{prepend:!0,csp:G})},[])};N.useInsertStyles=U},67228:function(oe){function N(o,x){(x==null||x>o.length)&&(x=o.length);for(var g=0,A=new Array(x);g<x;g++)A[g]=o[g];return A}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},22858:function(oe){function N(o){if(Array.isArray(o))return o}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},23646:function(oe,N,o){var x=o(67228);function g(A){if(Array.isArray(A))return x(A)}oe.exports=g,oe.exports.__esModule=!0,oe.exports.default=oe.exports},81506:function(oe){function N(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},34575:function(oe){function N(o,x){if(!(o instanceof x))throw new TypeError("Cannot call a class as a function")}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},93913:function(oe,N,o){var x=o(13696);function g(y,M){for(var w=0;w<M.length;w++){var m=M[w];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(y,x(m.key),m)}}function A(y,M,w){return M&&g(y.prototype,M),w&&g(y,w),Object.defineProperty(y,"prototype",{writable:!1}),y}oe.exports=A,oe.exports.__esModule=!0,oe.exports.default=oe.exports},99842:function(oe,N,o){var x=o(29754),g=o(57067),A=o(78585);function y(M){var w=g();return function(){var b=x(M),v;if(w){var h=x(this).constructor;v=Reflect.construct(b,arguments,h)}else v=b.apply(this,arguments);return A(this,v)}}oe.exports=y,oe.exports.__esModule=!0,oe.exports.default=oe.exports},59713:function(oe,N,o){var x=o(13696);function g(A,y,M){return y=x(y),y in A?Object.defineProperty(A,y,{value:M,enumerable:!0,configurable:!0,writable:!0}):A[y]=M,A}oe.exports=g,oe.exports.__esModule=!0,oe.exports.default=oe.exports},50676:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g,A){(A==null||A>g.length)&&(A=g.length);for(var y=0,M=new Array(A);y<A;y++)M[y]=g[y];return M}},59968:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g){if(Array.isArray(g))return g}},63349:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}},92137:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});function x(A,y,M,w,m,b,v){try{var h=A[b](v),d=h.value}catch(_){M(_);return}h.done?y(d):Promise.resolve(d).then(w,m)}function g(A){return function(){var y=this,M=arguments;return new Promise(function(w,m){var b=A.apply(y,M);function v(d){x(b,w,m,v,h,"next",d)}function h(d){x(b,w,m,v,h,"throw",d)}v(void 0)})}}},6610:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g,A){if(!(g instanceof A))throw new TypeError("Cannot call a class as a function")}},5991:function(oe,N,o){"use strict";o.d(N,{Z:function(){return A}});var x=o(22863);function g(y,M){for(var w=0;w<M.length;w++){var m=M[w];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(y,(0,x.Z)(m.key),m)}}function A(y,M,w){return M&&g(y.prototype,M),w&&g(y,w),Object.defineProperty(y,"prototype",{writable:!1}),y}},11965:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});var x=o(82961);function g(A,y){var M=typeof Symbol!="undefined"&&A[Symbol.iterator]||A["@@iterator"];if(!M){if(Array.isArray(A)||(M=(0,x.Z)(A))||y&&A&&typeof A.length=="number"){M&&(A=M);var w=0,m=function(){};return{s:m,n:function(){return w>=A.length?{done:!0}:{done:!1,value:A[w++]}},e:function(_){throw _},f:m}}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 b=!0,v=!1,h;return{s:function(){M=M.call(A)},n:function(){var _=M.next();return b=_.done,_},e:function(_){v=!0,h=_},f:function(){try{!b&&M.return!=null&&M.return()}finally{if(v)throw h}}}}},44144:function(oe,N,o){"use strict";o.d(N,{Z:function(){return w}});function x(m){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(v){return v.__proto__||Object.getPrototypeOf(v)},x(m)}function g(){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(m){return!1}}var A=o(90484),y=o(63349);function M(m,b){if(b&&((0,A.Z)(b)==="object"||typeof b=="function"))return b;if(b!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(0,y.Z)(m)}function w(m){var b=g();return function(){var h=x(m),d;if(b){var _=x(this).constructor;d=Reflect.construct(h,arguments,_)}else d=h.apply(this,arguments);return M(this,d)}}},96156:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});var x=o(22863);function g(A,y,M){return y=(0,x.Z)(y),y in A?Object.defineProperty(A,y,{value:M,enumerable:!0,configurable:!0,writable:!0}):A[y]=M,A}},22122:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(){return x=Object.assign?Object.assign.bind():function(g){for(var A=1;A<arguments.length;A++){var y=arguments[A];for(var M in y)Object.prototype.hasOwnProperty.call(y,M)&&(g[M]=y[M])}return g},x.apply(this,arguments)}},10379:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});var x=o(14665);function g(A,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(y&&y.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),y&&(0,x.Z)(A,y)}},41788:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});var x=o(14665);function g(A,y){A.prototype=Object.create(y.prototype),A.prototype.constructor=A,(0,x.Z)(A,y)}},96410:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g){if(typeof Symbol!="undefined"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)}},28970:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}},28991:function(oe,N,o){"use strict";o.d(N,{Z:function(){return A}});var x=o(96156);function g(y,M){var w=Object.keys(y);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(y);M&&(m=m.filter(function(b){return Object.getOwnPropertyDescriptor(y,b).enumerable})),w.push.apply(w,m)}return w}function A(y){for(var M=1;M<arguments.length;M++){var w=arguments[M]!=null?arguments[M]:{};M%2?g(Object(w),!0).forEach(function(m){(0,x.Z)(y,m,w[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(w)):g(Object(w)).forEach(function(m){Object.defineProperty(y,m,Object.getOwnPropertyDescriptor(w,m))})}return y}},81253:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});var x=o(19756);function g(A,y){if(A==null)return{};var M=(0,x.Z)(A,y),w,m;if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(A);for(m=0;m<b.length;m++)w=b[m],!(y.indexOf(w)>=0)&&(!Object.prototype.propertyIsEnumerable.call(A,w)||(M[w]=A[w]))}return M}},19756:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g,A){if(g==null)return{};var y={},M=Object.keys(g),w,m;for(m=0;m<M.length;m++)w=M[m],!(A.indexOf(w)>=0)&&(y[w]=g[w]);return y}},55507:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});var x=o(90484);function g(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */g=function(){return y};var A,y={},M=Object.prototype,w=M.hasOwnProperty,m=Object.defineProperty||function(ve,fe,we){ve[fe]=we.value},b=typeof Symbol=="function"?Symbol:{},v=b.iterator||"@@iterator",h=b.asyncIterator||"@@asyncIterator",d=b.toStringTag||"@@toStringTag";function _(ve,fe,we){return Object.defineProperty(ve,fe,{value:we,enumerable:!0,configurable:!0,writable:!0}),ve[fe]}try{_({},"")}catch(ve){_=function(we,me,Pe){return we[me]=Pe}}function p(ve,fe,we,me){var Pe=fe&&fe.prototype instanceof W?fe:W,pe=Object.create(Pe.prototype),Ie=new Ee(me||[]);return m(pe,"_invoke",{value:ne(ve,we,Ie)}),pe}function S(ve,fe,we){try{return{type:"normal",arg:ve.call(fe,we)}}catch(me){return{type:"throw",arg:me}}}y.wrap=p;var k="suspendedStart",O="suspendedYield",F="executing",D="completed",Z={};function W(){}function U(){}function L(){}var V={};_(V,v,function(){return this});var $=Object.getPrototypeOf,G=$&&$($(ce([])));G&&G!==M&&w.call(G,v)&&(V=G);var z=L.prototype=W.prototype=Object.create(V);function K(ve){["next","throw","return"].forEach(function(fe){_(ve,fe,function(we){return this._invoke(fe,we)})})}function re(ve,fe){function we(Pe,pe,Ie,Je){var ke=S(ve[Pe],ve,pe);if(ke.type!=="throw"){var De=ke.arg,Fe=De.value;return Fe&&(0,x.Z)(Fe)=="object"&&w.call(Fe,"__await")?fe.resolve(Fe.__await).then(function(Qe){we("next",Qe,Ie,Je)},function(Qe){we("throw",Qe,Ie,Je)}):fe.resolve(Fe).then(function(Qe){De.value=Qe,Ie(De)},function(Qe){return we("throw",Qe,Ie,Je)})}Je(ke.arg)}var me;m(this,"_invoke",{value:function(pe,Ie){function Je(){return new fe(function(ke,De){we(pe,Ie,ke,De)})}return me=me?me.then(Je,Je):Je()}})}function ne(ve,fe,we){var me=k;return function(Pe,pe){if(me===F)throw new Error("Generator is already running");if(me===D){if(Pe==="throw")throw pe;return{value:A,done:!0}}for(we.method=Pe,we.arg=pe;;){var Ie=we.delegate;if(Ie){var Je=Q(Ie,we);if(Je){if(Je===Z)continue;return Je}}if(we.method==="next")we.sent=we._sent=we.arg;else if(we.method==="throw"){if(me===k)throw me=D,we.arg;we.dispatchException(we.arg)}else we.method==="return"&&we.abrupt("return",we.arg);me=F;var ke=S(ve,fe,we);if(ke.type==="normal"){if(me=we.done?D:O,ke.arg===Z)continue;return{value:ke.arg,done:we.done}}ke.type==="throw"&&(me=D,we.method="throw",we.arg=ke.arg)}}}function Q(ve,fe){var we=fe.method,me=ve.iterator[we];if(me===A)return fe.delegate=null,we==="throw"&&ve.iterator.return&&(fe.method="return",fe.arg=A,Q(ve,fe),fe.method==="throw")||we!=="return"&&(fe.method="throw",fe.arg=new TypeError("The iterator does not provide a '"+we+"' method")),Z;var Pe=S(me,ve.iterator,fe.arg);if(Pe.type==="throw")return fe.method="throw",fe.arg=Pe.arg,fe.delegate=null,Z;var pe=Pe.arg;return pe?pe.done?(fe[ve.resultName]=pe.value,fe.next=ve.nextLoc,fe.method!=="return"&&(fe.method="next",fe.arg=A),fe.delegate=null,Z):pe:(fe.method="throw",fe.arg=new TypeError("iterator result is not an object"),fe.delegate=null,Z)}function ue(ve){var fe={tryLoc:ve[0]};1 in ve&&(fe.catchLoc=ve[1]),2 in ve&&(fe.finallyLoc=ve[2],fe.afterLoc=ve[3]),this.tryEntries.push(fe)}function he(ve){var fe=ve.completion||{};fe.type="normal",delete fe.arg,ve.completion=fe}function Ee(ve){this.tryEntries=[{tryLoc:"root"}],ve.forEach(ue,this),this.reset(!0)}function ce(ve){if(ve||ve===""){var fe=ve[v];if(fe)return fe.call(ve);if(typeof ve.next=="function")return ve;if(!isNaN(ve.length)){var we=-1,me=function Pe(){for(;++we<ve.length;)if(w.call(ve,we))return Pe.value=ve[we],Pe.done=!1,Pe;return Pe.value=A,Pe.done=!0,Pe};return me.next=me}}throw new TypeError((0,x.Z)(ve)+" is not iterable")}return U.prototype=L,m(z,"constructor",{value:L,configurable:!0}),m(L,"constructor",{value:U,configurable:!0}),U.displayName=_(L,d,"GeneratorFunction"),y.isGeneratorFunction=function(ve){var fe=typeof ve=="function"&&ve.constructor;return!!fe&&(fe===U||(fe.displayName||fe.name)==="GeneratorFunction")},y.mark=function(ve){return Object.setPrototypeOf?Object.setPrototypeOf(ve,L):(ve.__proto__=L,_(ve,d,"GeneratorFunction")),ve.prototype=Object.create(z),ve},y.awrap=function(ve){return{__await:ve}},K(re.prototype),_(re.prototype,h,function(){return this}),y.AsyncIterator=re,y.async=function(ve,fe,we,me,Pe){Pe===void 0&&(Pe=Promise);var pe=new re(p(ve,fe,we,me),Pe);return y.isGeneratorFunction(fe)?pe:pe.next().then(function(Ie){return Ie.done?Ie.value:pe.next()})},K(z),_(z,d,"Generator"),_(z,v,function(){return this}),_(z,"toString",function(){return"[object Generator]"}),y.keys=function(ve){var fe=Object(ve),we=[];for(var me in fe)we.push(me);return we.reverse(),function Pe(){for(;we.length;){var pe=we.pop();if(pe in fe)return Pe.value=pe,Pe.done=!1,Pe}return Pe.done=!0,Pe}},y.values=ce,Ee.prototype={constructor:Ee,reset:function(fe){if(this.prev=0,this.next=0,this.sent=this._sent=A,this.done=!1,this.delegate=null,this.method="next",this.arg=A,this.tryEntries.forEach(he),!fe)for(var we in this)we.charAt(0)==="t"&&w.call(this,we)&&!isNaN(+we.slice(1))&&(this[we]=A)},stop:function(){this.done=!0;var fe=this.tryEntries[0].completion;if(fe.type==="throw")throw fe.arg;return this.rval},dispatchException:function(fe){if(this.done)throw fe;var we=this;function me(De,Fe){return Ie.type="throw",Ie.arg=fe,we.next=De,Fe&&(we.method="next",we.arg=A),!!Fe}for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var pe=this.tryEntries[Pe],Ie=pe.completion;if(pe.tryLoc==="root")return me("end");if(pe.tryLoc<=this.prev){var Je=w.call(pe,"catchLoc"),ke=w.call(pe,"finallyLoc");if(Je&&ke){if(this.prev<pe.catchLoc)return me(pe.catchLoc,!0);if(this.prev<pe.finallyLoc)return me(pe.finallyLoc)}else if(Je){if(this.prev<pe.catchLoc)return me(pe.catchLoc,!0)}else{if(!ke)throw new Error("try statement without catch or finally");if(this.prev<pe.finallyLoc)return me(pe.finallyLoc)}}}},abrupt:function(fe,we){for(var me=this.tryEntries.length-1;me>=0;--me){var Pe=this.tryEntries[me];if(Pe.tryLoc<=this.prev&&w.call(Pe,"finallyLoc")&&this.prev<Pe.finallyLoc){var pe=Pe;break}}pe&&(fe==="break"||fe==="continue")&&pe.tryLoc<=we&&we<=pe.finallyLoc&&(pe=null);var Ie=pe?pe.completion:{};return Ie.type=fe,Ie.arg=we,pe?(this.method="next",this.next=pe.finallyLoc,Z):this.complete(Ie)},complete:function(fe,we){if(fe.type==="throw")throw fe.arg;return fe.type==="break"||fe.type==="continue"?this.next=fe.arg:fe.type==="return"?(this.rval=this.arg=fe.arg,this.method="return",this.next="end"):fe.type==="normal"&&we&&(this.next=we),Z},finish:function(fe){for(var we=this.tryEntries.length-1;we>=0;--we){var me=this.tryEntries[we];if(me.finallyLoc===fe)return this.complete(me.completion,me.afterLoc),he(me),Z}},catch:function(fe){for(var we=this.tryEntries.length-1;we>=0;--we){var me=this.tryEntries[we];if(me.tryLoc===fe){var Pe=me.completion;if(Pe.type==="throw"){var pe=Pe.arg;he(me)}return pe}}throw new Error("illegal catch attempt")},delegateYield:function(fe,we,me){return this.delegate={iterator:ce(fe),resultName:we,nextLoc:me},this.method==="next"&&(this.arg=A),Z}},y}},14665:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g,A){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(M,w){return M.__proto__=w,M},x(g,A)}},28481:function(oe,N,o){"use strict";o.d(N,{Z:function(){return M}});var x=o(59968);function g(w,m){var b=w==null?null:typeof Symbol!="undefined"&&w[Symbol.iterator]||w["@@iterator"];if(b!=null){var v,h,d,_,p=[],S=!0,k=!1;try{if(d=(b=b.call(w)).next,m===0){if(Object(b)!==b)return;S=!1}else for(;!(S=(v=d.call(b)).done)&&(p.push(v.value),p.length!==m);S=!0);}catch(O){k=!0,h=O}finally{try{if(!S&&b.return!=null&&(_=b.return(),Object(_)!==_))return}finally{if(k)throw h}}return p}}var A=o(82961),y=o(28970);function M(w,m){return(0,x.Z)(w)||g(w,m)||(0,A.Z)(w,m)||(0,y.Z)()}},99809:function(oe,N,o){"use strict";o.d(N,{Z:function(){return M}});var x=o(59968),g=o(96410),A=o(82961),y=o(28970);function M(w){return(0,x.Z)(w)||(0,g.Z)(w)||(0,A.Z)(w)||(0,y.Z)()}},85061:function(oe,N,o){"use strict";o.d(N,{Z:function(){return w}});var x=o(50676);function g(m){if(Array.isArray(m))return(0,x.Z)(m)}var A=o(96410),y=o(82961);function M(){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 w(m){return g(m)||(0,A.Z)(m)||(0,y.Z)(m)||M()}},22863:function(oe,N,o){"use strict";o.d(N,{Z:function(){return A}});var x=o(90484);function g(y,M){if((0,x.Z)(y)!=="object"||y===null)return y;var w=y[Symbol.toPrimitive];if(w!==void 0){var m=w.call(y,M||"default");if((0,x.Z)(m)!=="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(M==="string"?String:Number)(y)}function A(y){var M=g(y,"string");return(0,x.Z)(M)==="symbol"?M:String(M)}},90484:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g){return x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},x(g)}},82961:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});var x=o(50676);function g(A,y){if(!!A){if(typeof A=="string")return(0,x.Z)(A,y);var M=Object.prototype.toString.call(A).slice(8,-1);if(M==="Object"&&A.constructor&&(M=A.constructor.name),M==="Map"||M==="Set")return Array.from(A);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return(0,x.Z)(A,y)}}},67154:function(oe){function N(){return oe.exports=N=Object.assign?Object.assign.bind():function(o){for(var x=1;x<arguments.length;x++){var g=arguments[x];for(var A in g)Object.prototype.hasOwnProperty.call(g,A)&&(o[A]=g[A])}return o},oe.exports.__esModule=!0,oe.exports.default=oe.exports,N.apply(this,arguments)}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},29754:function(oe){function N(o){return oe.exports=N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(g){return g.__proto__||Object.getPrototypeOf(g)},oe.exports.__esModule=!0,oe.exports.default=oe.exports,N(o)}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},2205:function(oe,N,o){var x=o(99489);function g(A,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(y&&y.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),y&&x(A,y)}oe.exports=g,oe.exports.__esModule=!0,oe.exports.default=oe.exports},95318:function(oe){function N(o){return o&&o.__esModule?o:{default:o}}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},20862:function(oe,N,o){var x=o(50008).default;function g(y){if(typeof WeakMap!="function")return null;var M=new WeakMap,w=new WeakMap;return(g=function(b){return b?w:M})(y)}function A(y,M){if(!M&&y&&y.__esModule)return y;if(y===null||x(y)!=="object"&&typeof y!="function")return{default:y};var w=g(M);if(w&&w.has(y))return w.get(y);var m={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in y)if(v!=="default"&&Object.prototype.hasOwnProperty.call(y,v)){var h=b?Object.getOwnPropertyDescriptor(y,v):null;h&&(h.get||h.set)?Object.defineProperty(m,v,h):m[v]=y[v]}return m.default=y,w&&w.set(y,m),m}oe.exports=A,oe.exports.__esModule=!0,oe.exports.default=oe.exports},57067:function(oe){function N(){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(o){return!1}}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},46860:function(oe){function N(o){if(typeof Symbol!="undefined"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},13884:function(oe){function N(o,x){var g=o==null?null:typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(g!=null){var A,y,M,w,m=[],b=!0,v=!1;try{if(M=(g=g.call(o)).next,x===0){if(Object(g)!==g)return;b=!1}else for(;!(b=(A=M.call(g)).done)&&(m.push(A.value),m.length!==x);b=!0);}catch(h){v=!0,y=h}finally{try{if(!b&&g.return!=null&&(w=g.return(),Object(w)!==w))return}finally{if(v)throw y}}return m}}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},80521:function(oe){function N(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},98206:function(oe){function N(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},81109:function(oe,N,o){var x=o(59713);function g(y,M){var w=Object.keys(y);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(y);M&&(m=m.filter(function(b){return Object.getOwnPropertyDescriptor(y,b).enumerable})),w.push.apply(w,m)}return w}function A(y){for(var M=1;M<arguments.length;M++){var w=arguments[M]!=null?arguments[M]:{};M%2?g(Object(w),!0).forEach(function(m){x(y,m,w[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(w)):g(Object(w)).forEach(function(m){Object.defineProperty(y,m,Object.getOwnPropertyDescriptor(w,m))})}return y}oe.exports=A,oe.exports.__esModule=!0,oe.exports.default=oe.exports},6479:function(oe,N,o){var x=o(37316);function g(A,y){if(A==null)return{};var M=x(A,y),w,m;if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(A);for(m=0;m<b.length;m++)w=b[m],!(y.indexOf(w)>=0)&&(!Object.prototype.propertyIsEnumerable.call(A,w)||(M[w]=A[w]))}return M}oe.exports=g,oe.exports.__esModule=!0,oe.exports.default=oe.exports},37316:function(oe){function N(o,x){if(o==null)return{};var g={},A=Object.keys(o),y,M;for(M=0;M<A.length;M++)y=A[M],!(x.indexOf(y)>=0)&&(g[y]=o[y]);return g}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},78585:function(oe,N,o){var x=o(50008).default,g=o(81506);function A(y,M){if(M&&(x(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g(y)}oe.exports=A,oe.exports.__esModule=!0,oe.exports.default=oe.exports},59591:function(oe,N,o){var x=o(50008).default;function g(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */oe.exports=g=function(){return y},oe.exports.__esModule=!0,oe.exports.default=oe.exports;var A,y={},M=Object.prototype,w=M.hasOwnProperty,m=Object.defineProperty||function(ve,fe,we){ve[fe]=we.value},b=typeof Symbol=="function"?Symbol:{},v=b.iterator||"@@iterator",h=b.asyncIterator||"@@asyncIterator",d=b.toStringTag||"@@toStringTag";function _(ve,fe,we){return Object.defineProperty(ve,fe,{value:we,enumerable:!0,configurable:!0,writable:!0}),ve[fe]}try{_({},"")}catch(ve){_=function(we,me,Pe){return we[me]=Pe}}function p(ve,fe,we,me){var Pe=fe&&fe.prototype instanceof W?fe:W,pe=Object.create(Pe.prototype),Ie=new Ee(me||[]);return m(pe,"_invoke",{value:ne(ve,we,Ie)}),pe}function S(ve,fe,we){try{return{type:"normal",arg:ve.call(fe,we)}}catch(me){return{type:"throw",arg:me}}}y.wrap=p;var k="suspendedStart",O="suspendedYield",F="executing",D="completed",Z={};function W(){}function U(){}function L(){}var V={};_(V,v,function(){return this});var $=Object.getPrototypeOf,G=$&&$($(ce([])));G&&G!==M&&w.call(G,v)&&(V=G);var z=L.prototype=W.prototype=Object.create(V);function K(ve){["next","throw","return"].forEach(function(fe){_(ve,fe,function(we){return this._invoke(fe,we)})})}function re(ve,fe){function we(Pe,pe,Ie,Je){var ke=S(ve[Pe],ve,pe);if(ke.type!=="throw"){var De=ke.arg,Fe=De.value;return Fe&&x(Fe)=="object"&&w.call(Fe,"__await")?fe.resolve(Fe.__await).then(function(Qe){we("next",Qe,Ie,Je)},function(Qe){we("throw",Qe,Ie,Je)}):fe.resolve(Fe).then(function(Qe){De.value=Qe,Ie(De)},function(Qe){return we("throw",Qe,Ie,Je)})}Je(ke.arg)}var me;m(this,"_invoke",{value:function(pe,Ie){function Je(){return new fe(function(ke,De){we(pe,Ie,ke,De)})}return me=me?me.then(Je,Je):Je()}})}function ne(ve,fe,we){var me=k;return function(Pe,pe){if(me===F)throw new Error("Generator is already running");if(me===D){if(Pe==="throw")throw pe;return{value:A,done:!0}}for(we.method=Pe,we.arg=pe;;){var Ie=we.delegate;if(Ie){var Je=Q(Ie,we);if(Je){if(Je===Z)continue;return Je}}if(we.method==="next")we.sent=we._sent=we.arg;else if(we.method==="throw"){if(me===k)throw me=D,we.arg;we.dispatchException(we.arg)}else we.method==="return"&&we.abrupt("return",we.arg);me=F;var ke=S(ve,fe,we);if(ke.type==="normal"){if(me=we.done?D:O,ke.arg===Z)continue;return{value:ke.arg,done:we.done}}ke.type==="throw"&&(me=D,we.method="throw",we.arg=ke.arg)}}}function Q(ve,fe){var we=fe.method,me=ve.iterator[we];if(me===A)return fe.delegate=null,we==="throw"&&ve.iterator.return&&(fe.method="return",fe.arg=A,Q(ve,fe),fe.method==="throw")||we!=="return"&&(fe.method="throw",fe.arg=new TypeError("The iterator does not provide a '"+we+"' method")),Z;var Pe=S(me,ve.iterator,fe.arg);if(Pe.type==="throw")return fe.method="throw",fe.arg=Pe.arg,fe.delegate=null,Z;var pe=Pe.arg;return pe?pe.done?(fe[ve.resultName]=pe.value,fe.next=ve.nextLoc,fe.method!=="return"&&(fe.method="next",fe.arg=A),fe.delegate=null,Z):pe:(fe.method="throw",fe.arg=new TypeError("iterator result is not an object"),fe.delegate=null,Z)}function ue(ve){var fe={tryLoc:ve[0]};1 in ve&&(fe.catchLoc=ve[1]),2 in ve&&(fe.finallyLoc=ve[2],fe.afterLoc=ve[3]),this.tryEntries.push(fe)}function he(ve){var fe=ve.completion||{};fe.type="normal",delete fe.arg,ve.completion=fe}function Ee(ve){this.tryEntries=[{tryLoc:"root"}],ve.forEach(ue,this),this.reset(!0)}function ce(ve){if(ve||ve===""){var fe=ve[v];if(fe)return fe.call(ve);if(typeof ve.next=="function")return ve;if(!isNaN(ve.length)){var we=-1,me=function Pe(){for(;++we<ve.length;)if(w.call(ve,we))return Pe.value=ve[we],Pe.done=!1,Pe;return Pe.value=A,Pe.done=!0,Pe};return me.next=me}}throw new TypeError(x(ve)+" is not iterable")}return U.prototype=L,m(z,"constructor",{value:L,configurable:!0}),m(L,"constructor",{value:U,configurable:!0}),U.displayName=_(L,d,"GeneratorFunction"),y.isGeneratorFunction=function(ve){var fe=typeof ve=="function"&&ve.constructor;return!!fe&&(fe===U||(fe.displayName||fe.name)==="GeneratorFunction")},y.mark=function(ve){return Object.setPrototypeOf?Object.setPrototypeOf(ve,L):(ve.__proto__=L,_(ve,d,"GeneratorFunction")),ve.prototype=Object.create(z),ve},y.awrap=function(ve){return{__await:ve}},K(re.prototype),_(re.prototype,h,function(){return this}),y.AsyncIterator=re,y.async=function(ve,fe,we,me,Pe){Pe===void 0&&(Pe=Promise);var pe=new re(p(ve,fe,we,me),Pe);return y.isGeneratorFunction(fe)?pe:pe.next().then(function(Ie){return Ie.done?Ie.value:pe.next()})},K(z),_(z,d,"Generator"),_(z,v,function(){return this}),_(z,"toString",function(){return"[object Generator]"}),y.keys=function(ve){var fe=Object(ve),we=[];for(var me in fe)we.push(me);return we.reverse(),function Pe(){for(;we.length;){var pe=we.pop();if(pe in fe)return Pe.value=pe,Pe.done=!1,Pe}return Pe.done=!0,Pe}},y.values=ce,Ee.prototype={constructor:Ee,reset:function(fe){if(this.prev=0,this.next=0,this.sent=this._sent=A,this.done=!1,this.delegate=null,this.method="next",this.arg=A,this.tryEntries.forEach(he),!fe)for(var we in this)we.charAt(0)==="t"&&w.call(this,we)&&!isNaN(+we.slice(1))&&(this[we]=A)},stop:function(){this.done=!0;var fe=this.tryEntries[0].completion;if(fe.type==="throw")throw fe.arg;return this.rval},dispatchException:function(fe){if(this.done)throw fe;var we=this;function me(De,Fe){return Ie.type="throw",Ie.arg=fe,we.next=De,Fe&&(we.method="next",we.arg=A),!!Fe}for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var pe=this.tryEntries[Pe],Ie=pe.completion;if(pe.tryLoc==="root")return me("end");if(pe.tryLoc<=this.prev){var Je=w.call(pe,"catchLoc"),ke=w.call(pe,"finallyLoc");if(Je&&ke){if(this.prev<pe.catchLoc)return me(pe.catchLoc,!0);if(this.prev<pe.finallyLoc)return me(pe.finallyLoc)}else if(Je){if(this.prev<pe.catchLoc)return me(pe.catchLoc,!0)}else{if(!ke)throw new Error("try statement without catch or finally");if(this.prev<pe.finallyLoc)return me(pe.finallyLoc)}}}},abrupt:function(fe,we){for(var me=this.tryEntries.length-1;me>=0;--me){var Pe=this.tryEntries[me];if(Pe.tryLoc<=this.prev&&w.call(Pe,"finallyLoc")&&this.prev<Pe.finallyLoc){var pe=Pe;break}}pe&&(fe==="break"||fe==="continue")&&pe.tryLoc<=we&&we<=pe.finallyLoc&&(pe=null);var Ie=pe?pe.completion:{};return Ie.type=fe,Ie.arg=we,pe?(this.method="next",this.next=pe.finallyLoc,Z):this.complete(Ie)},complete:function(fe,we){if(fe.type==="throw")throw fe.arg;return fe.type==="break"||fe.type==="continue"?this.next=fe.arg:fe.type==="return"?(this.rval=this.arg=fe.arg,this.method="return",this.next="end"):fe.type==="normal"&&we&&(this.next=we),Z},finish:function(fe){for(var we=this.tryEntries.length-1;we>=0;--we){var me=this.tryEntries[we];if(me.finallyLoc===fe)return this.complete(me.completion,me.afterLoc),he(me),Z}},catch:function(fe){for(var we=this.tryEntries.length-1;we>=0;--we){var me=this.tryEntries[we];if(me.tryLoc===fe){var Pe=me.completion;if(Pe.type==="throw"){var pe=Pe.arg;he(me)}return pe}}throw new Error("illegal catch attempt")},delegateYield:function(fe,we,me){return this.delegate={iterator:ce(fe),resultName:we,nextLoc:me},this.method==="next"&&(this.arg=A),Z}},y}oe.exports=g,oe.exports.__esModule=!0,oe.exports.default=oe.exports},99489:function(oe){function N(o,x){return oe.exports=N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,y){return A.__proto__=y,A},oe.exports.__esModule=!0,oe.exports.default=oe.exports,N(o,x)}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},63038:function(oe,N,o){var x=o(22858),g=o(13884),A=o(60379),y=o(80521);function M(w,m){return x(w)||g(w,m)||A(w,m)||y()}oe.exports=M,oe.exports.__esModule=!0,oe.exports.default=oe.exports},68551:function(oe,N,o){var x=o(22858),g=o(46860),A=o(60379),y=o(80521);function M(w){return x(w)||g(w)||A(w)||y()}oe.exports=M,oe.exports.__esModule=!0,oe.exports.default=oe.exports},319:function(oe,N,o){var x=o(23646),g=o(46860),A=o(60379),y=o(98206);function M(w){return x(w)||g(w)||A(w)||y()}oe.exports=M,oe.exports.__esModule=!0,oe.exports.default=oe.exports},8868:function(oe,N,o){var x=o(50008).default;function g(A,y){if(x(A)!=="object"||A===null)return A;var M=A[Symbol.toPrimitive];if(M!==void 0){var w=M.call(A,y||"default");if(x(w)!=="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(A)}oe.exports=g,oe.exports.__esModule=!0,oe.exports.default=oe.exports},13696:function(oe,N,o){var x=o(50008).default,g=o(8868);function A(y){var M=g(y,"string");return x(M)==="symbol"?M:String(M)}oe.exports=A,oe.exports.__esModule=!0,oe.exports.default=oe.exports},50008:function(oe){function N(o){return oe.exports=N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},oe.exports.__esModule=!0,oe.exports.default=oe.exports,N(o)}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},60379:function(oe,N,o){var x=o(67228);function g(A,y){if(!!A){if(typeof A=="string")return x(A,y);var M=Object.prototype.toString.call(A).slice(8,-1);if(M==="Object"&&A.constructor&&(M=A.constructor.name),M==="Map"||M==="Set")return Array.from(A);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return x(A,y)}}oe.exports=g,oe.exports.__esModule=!0,oe.exports.default=oe.exports},87757:function(oe,N,o){var x=o(59591)();oe.exports=x;try{regeneratorRuntime=x}catch(g){typeof globalThis=="object"?globalThis.regeneratorRuntime=x:Function("r","regeneratorRuntime = r")(x)}},9710:function(oe){oe.exports=function(N){if(typeof N!="function")throw TypeError(String(N)+" is not a function");return N}},23745:function(oe,N,o){var x=o(51087);oe.exports=function(g){if(!x(g)&&g!==null)throw TypeError("Can't set "+String(g)+" as a prototype");return g}},52530:function(oe,N,o){var x=o(62356),g=o(19943),A=o(93196),y=x("unscopables"),M=Array.prototype;M[y]==null&&A.f(M,y,{configurable:!0,value:g(null)}),oe.exports=function(w){M[y][w]=!0}},43906:function(oe,N,o){"use strict";var x=o(20407).charAt;oe.exports=function(g,A,y){return A+(y?x(g,A).length:1)}},60904:function(oe){oe.exports=function(N,o,x){if(!(N instanceof o))throw TypeError("Incorrect "+(x?x+" ":"")+"invocation");return N}},57406:function(oe,N,o){var x=o(51087);oe.exports=function(g){if(!x(g))throw TypeError(String(g)+" is not an object");return g}},71405:function(oe){oe.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},56272:function(oe,N,o){"use strict";var x=o(71405),g=o(49359),A=o(85809),y=o(51087),M=o(36309),w=o(2565),m=o(24360),b=o(867),v=o(93196).f,h=o(55837),d=o(78738),_=o(62356),p=o(61241),S=A.Int8Array,k=S&&S.prototype,O=A.Uint8ClampedArray,F=O&&O.prototype,D=S&&h(S),Z=k&&h(k),W=Object.prototype,U=W.isPrototypeOf,L=_("toStringTag"),V=p("TYPED_ARRAY_TAG"),$=x&&!!d&&w(A.opera)!=="Opera",G=!1,z,K={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},re=function(ve){var fe=w(ve);return fe==="DataView"||M(K,fe)},ne=function(ce){return y(ce)&&M(K,w(ce))},Q=function(ce){if(ne(ce))return ce;throw TypeError("Target is not a typed array")},ue=function(ce){if(d){if(U.call(D,ce))return ce}else for(var ve in K)if(M(K,z)){var fe=A[ve];if(fe&&(ce===fe||U.call(fe,ce)))return ce}throw TypeError("Target is not a typed array constructor")},he=function(ce,ve,fe){if(!!g){if(fe)for(var we in K){var me=A[we];me&&M(me.prototype,ce)&&delete me.prototype[ce]}(!Z[ce]||fe)&&b(Z,ce,fe?ve:$&&k[ce]||ve)}},Ee=function(ce,ve,fe){var we,me;if(!!g){if(d){if(fe)for(we in K)me=A[we],me&&M(me,ce)&&delete me[ce];if(!D[ce]||fe)try{return b(D,ce,fe?ve:$&&S[ce]||ve)}catch(Pe){}else return}for(we in K)me=A[we],me&&(!me[ce]||fe)&&b(me,ce,ve)}};for(z in K)A[z]||($=!1);if((!$||typeof D!="function"||D===Function.prototype)&&(D=function(){throw TypeError("Incorrect invocation")},$))for(z in K)A[z]&&d(A[z],D);if((!$||!Z||Z===W)&&(Z=D.prototype,$))for(z in K)A[z]&&d(A[z].prototype,Z);if($&&h(F)!==Z&&d(F,Z),g&&!M(Z,L)){G=!0,v(Z,L,{get:function(){return y(this)?this[V]:void 0}});for(z in K)A[z]&&m(A[z],V,z)}oe.exports={NATIVE_ARRAY_BUFFER_VIEWS:$,TYPED_ARRAY_TAG:G&&V,aTypedArray:Q,aTypedArrayConstructor:ue,exportTypedArrayMethod:he,exportTypedArrayStaticMethod:Ee,isView:re,isTypedArray:ne,TypedArray:D,TypedArrayPrototype:Z}},97103:function(oe,N,o){"use strict";var x=o(85809),g=o(49359),A=o(71405),y=o(24360),M=o(55112),w=o(10195),m=o(60904),b=o(11908),v=o(16159),h=o(91106),d=o(75585),_=o(55837),p=o(78738),S=o(51209).f,k=o(93196).f,O=o(38206),F=o(32209),D=o(47014),Z=D.get,W=D.set,U="ArrayBuffer",L="DataView",V="prototype",$="Wrong length",G="Wrong index",z=x[U],K=z,re=x[L],ne=re&&re[V],Q=Object.prototype,ue=x.RangeError,he=d.pack,Ee=d.unpack,ce=function(dt){return[dt&255]},ve=function(dt){return[dt&255,dt>>8&255]},fe=function(dt){return[dt&255,dt>>8&255,dt>>16&255,dt>>24&255]},we=function(dt){return dt[3]<<24|dt[2]<<16|dt[1]<<8|dt[0]},me=function(dt){return he(dt,23,4)},Pe=function(dt){return he(dt,52,8)},pe=function(dt,Ke){k(dt[V],Ke,{get:function(){return Z(this)[Ke]}})},Ie=function(dt,Ke,Ge,wt){var Vt=h(Ge),gt=Z(dt);if(Vt+Ke>gt.byteLength)throw ue(G);var it=Z(gt.buffer).bytes,Le=Vt+gt.byteOffset,ct=it.slice(Le,Le+Ke);return wt?ct:ct.reverse()},Je=function(dt,Ke,Ge,wt,Vt,gt){var it=h(Ge),Le=Z(dt);if(it+Ke>Le.byteLength)throw ue(G);for(var ct=Z(Le.buffer).bytes,at=it+Le.byteOffset,jt=wt(+Vt),St=0;St<Ke;St++)ct[at+St]=jt[gt?St:Ke-St-1]};if(!A)K=function(Ke){m(this,K,U);var Ge=h(Ke);W(this,{bytes:O.call(new Array(Ge),0),byteLength:Ge}),g||(this.byteLength=Ge)},re=function(Ke,Ge,wt){m(this,re,L),m(Ke,K,L);var Vt=Z(Ke).byteLength,gt=b(Ge);if(gt<0||gt>Vt)throw ue("Wrong offset");if(wt=wt===void 0?Vt-gt:v(wt),gt+wt>Vt)throw ue($);W(this,{buffer:Ke,byteLength:wt,byteOffset:gt}),g||(this.buffer=Ke,this.byteLength=wt,this.byteOffset=gt)},g&&(pe(K,"byteLength"),pe(re,"buffer"),pe(re,"byteLength"),pe(re,"byteOffset")),M(re[V],{getInt8:function(Ke){return Ie(this,1,Ke)[0]<<24>>24},getUint8:function(Ke){return Ie(this,1,Ke)[0]},getInt16:function(Ke){var Ge=Ie(this,2,Ke,arguments.length>1?arguments[1]:void 0);return(Ge[1]<<8|Ge[0])<<16>>16},getUint16:function(Ke){var Ge=Ie(this,2,Ke,arguments.length>1?arguments[1]:void 0);return Ge[1]<<8|Ge[0]},getInt32:function(Ke){return we(Ie(this,4,Ke,arguments.length>1?arguments[1]:void 0))},getUint32:function(Ke){return we(Ie(this,4,Ke,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Ke){return Ee(Ie(this,4,Ke,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Ke){return Ee(Ie(this,8,Ke,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Ke,Ge){Je(this,1,Ke,ce,Ge)},setUint8:function(Ke,Ge){Je(this,1,Ke,ce,Ge)},setInt16:function(Ke,Ge){Je(this,2,Ke,ve,Ge,arguments.length>2?arguments[2]:void 0)},setUint16:function(Ke,Ge){Je(this,2,Ke,ve,Ge,arguments.length>2?arguments[2]:void 0)},setInt32:function(Ke,Ge){Je(this,4,Ke,fe,Ge,arguments.length>2?arguments[2]:void 0)},setUint32:function(Ke,Ge){Je(this,4,Ke,fe,Ge,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Ke,Ge){Je(this,4,Ke,me,Ge,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Ke,Ge){Je(this,8,Ke,Pe,Ge,arguments.length>2?arguments[2]:void 0)}});else{if(!w(function(){z(1)})||!w(function(){new z(-1)})||w(function(){return new z,new z(1.5),new z(NaN),z.name!=U})){K=function(Ke){return m(this,K),new z(h(Ke))};for(var ke=K[V]=z[V],De=S(z),Fe=0,Qe;De.length>Fe;)(Qe=De[Fe++])in K||y(K,Qe,z[Qe]);ke.constructor=K}p&&_(ne)!==Q&&p(ne,Q);var qe=new re(new K(2)),et=ne.setInt8;qe.setInt8(0,2147483648),qe.setInt8(1,2147483649),(qe.getInt8(0)||!qe.getInt8(1))&&M(ne,{setInt8:function(Ke,Ge){et.call(this,Ke,Ge<<24>>24)},setUint8:function(Ke,Ge){et.call(this,Ke,Ge<<24>>24)}},{unsafe:!0})}F(K,U),F(re,L),oe.exports={ArrayBuffer:K,DataView:re}},47702:function(oe,N,o){"use strict";var x=o(15826),g=o(31232),A=o(16159),y=Math.min;oe.exports=[].copyWithin||function(w,m){var b=x(this),v=A(b.length),h=g(w,v),d=g(m,v),_=arguments.length>2?arguments[2]:void 0,p=y((_===void 0?v:g(_,v))-d,v-h),S=1;for(d<h&&h<d+p&&(S=-1,d+=p-1,h+=p-1);p-- >0;)d in b?b[h]=b[d]:delete b[h],h+=S,d+=S;return b}},38206:function(oe,N,o){"use strict";var x=o(15826),g=o(31232),A=o(16159);oe.exports=function(M){for(var w=x(this),m=A(w.length),b=arguments.length,v=g(b>1?arguments[1]:void 0,m),h=b>2?arguments[2]:void 0,d=h===void 0?m:g(h,m);d>v;)w[v++]=M;return w}},47735:function(oe,N,o){"use strict";var x=o(87514).forEach,g=o(77847),A=o(33192),y=g("forEach"),M=A("forEach");oe.exports=!y||!M?function(m){return x(this,m,arguments.length>1?arguments[1]:void 0)}:[].forEach},19763:function(oe,N,o){"use strict";var x=o(1577),g=o(15826),A=o(41046),y=o(32632),M=o(16159),w=o(79874),m=o(27510);oe.exports=function(v){var h=g(v),d=typeof this=="function"?this:Array,_=arguments.length,p=_>1?arguments[1]:void 0,S=p!==void 0,k=m(h),O=0,F,D,Z,W,U,L;if(S&&(p=x(p,_>2?arguments[2]:void 0,2)),k!=null&&!(d==Array&&y(k)))for(W=k.call(h),U=W.next,D=new d;!(Z=U.call(W)).done;O++)L=S?A(W,p,[Z.value,O],!0):Z.value,w(D,O,L);else for(F=M(h.length),D=new d(F);F>O;O++)L=S?p(h[O],O):h[O],w(D,O,L);return D.length=O,D}},83954:function(oe,N,o){var x=o(98117),g=o(16159),A=o(31232),y=function(M){return function(w,m,b){var v=x(w),h=g(v.length),d=A(b,h),_;if(M&&m!=m){for(;h>d;)if(_=v[d++],_!=_)return!0}else for(;h>d;d++)if((M||d in v)&&v[d]===m)return M||d||0;return!M&&-1}};oe.exports={includes:y(!0),indexOf:y(!1)}},87514:function(oe,N,o){var x=o(1577),g=o(88786),A=o(15826),y=o(16159),M=o(47354),w=[].push,m=function(b){var v=b==1,h=b==2,d=b==3,_=b==4,p=b==6,S=b==5||p;return function(k,O,F,D){for(var Z=A(k),W=g(Z),U=x(O,F,3),L=y(W.length),V=0,$=D||M,G=v?$(k,L):h?$(k,0):void 0,z,K;L>V;V++)if((S||V in W)&&(z=W[V],K=U(z,V,Z),b)){if(v)G[V]=K;else if(K)switch(b){case 3:return!0;case 5:return z;case 6:return V;case 2:w.call(G,z)}else if(_)return!1}return p?-1:d||_?_:G}};oe.exports={forEach:m(0),map:m(1),filter:m(2),some:m(3),every:m(4),find:m(5),findIndex:m(6)}},23034:function(oe,N,o){"use strict";var x=o(98117),g=o(11908),A=o(16159),y=o(77847),M=o(33192),w=Math.min,m=[].lastIndexOf,b=!!m&&1/[1].lastIndexOf(1,-0)<0,v=y("lastIndexOf"),h=M("indexOf",{ACCESSORS:!0,1:0}),d=b||!v||!h;oe.exports=d?function(p){if(b)return m.apply(this,arguments)||0;var S=x(this),k=A(S.length),O=k-1;for(arguments.length>1&&(O=w(O,g(arguments[1]))),O<0&&(O=k+O);O>=0;O--)if(O in S&&S[O]===p)return O||0;return-1}:m},34882:function(oe,N,o){var x=o(10195),g=o(62356),A=o(75754),y=g("species");oe.exports=function(M){return A>=51||!x(function(){var w=[],m=w.constructor={};return m[y]=function(){return{foo:1}},w[M](Boolean).foo!==1})}},77847:function(oe,N,o){"use strict";var x=o(10195);oe.exports=function(g,A){var y=[][g];return!!y&&x(function(){y.call(null,A||function(){throw 1},1)})}},33192:function(oe,N,o){var x=o(49359),g=o(10195),A=o(36309),y=Object.defineProperty,M={},w=function(m){throw m};oe.exports=function(m,b){if(A(M,m))return M[m];b||(b={});var v=[][m],h=A(b,"ACCESSORS")?b.ACCESSORS:!1,d=A(b,0)?b[0]:w,_=A(b,1)?b[1]:void 0;return M[m]=!!v&&!g(function(){if(h&&!x)return!0;var p={length:-1};h?y(p,1,{enumerable:!0,get:w}):p[1]=1,v.call(p,d,_)})}},12923:function(oe,N,o){var x=o(9710),g=o(15826),A=o(88786),y=o(16159),M=function(w){return function(m,b,v,h){x(b);var d=g(m),_=A(d),p=y(d.length),S=w?p-1:0,k=w?-1:1;if(v<2)for(;;){if(S in _){h=_[S],S+=k;break}if(S+=k,w?S<0:p<=S)throw TypeError("Reduce of empty array with no initial value")}for(;w?S>=0:p>S;S+=k)S in _&&(h=b(h,_[S],S,d));return h}};oe.exports={left:M(!1),right:M(!0)}},47354:function(oe,N,o){var x=o(51087),g=o(97736),A=o(62356),y=A("species");oe.exports=function(M,w){var m;return g(M)&&(m=M.constructor,typeof m=="function"&&(m===Array||g(m.prototype))?m=void 0:x(m)&&(m=m[y],m===null&&(m=void 0))),new(m===void 0?Array:m)(w===0?0:w)}},41046:function(oe,N,o){var x=o(57406);oe.exports=function(g,A,y,M){try{return M?A(x(y)[0],y[1]):A(y)}catch(m){var w=g.return;throw w!==void 0&&x(w.call(g)),m}}},42617:function(oe,N,o){var x=o(62356),g=x("iterator"),A=!1;try{var y=0,M={next:function(){return{done:!!y++}},return:function(){A=!0}};M[g]=function(){return this},Array.from(M,function(){throw 2})}catch(w){}oe.exports=function(w,m){if(!m&&!A)return!1;var b=!1;try{var v={};v[g]=function(){return{next:function(){return{done:b=!0}}}},w(v)}catch(h){}return b}},11748:function(oe){var N={}.toString;oe.exports=function(o){return N.call(o).slice(8,-1)}},2565:function(oe,N,o){var x=o(44158),g=o(11748),A=o(62356),y=A("toStringTag"),M=g(function(){return arguments}())=="Arguments",w=function(m,b){try{return m[b]}catch(v){}};oe.exports=x?g:function(m){var b,v,h;return m===void 0?"Undefined":m===null?"Null":typeof(v=w(b=Object(m),y))=="string"?v:M?g(b):(h=g(b))=="Object"&&typeof b.callee=="function"?"Arguments":h}},64759:function(oe,N,o){"use strict";var x=o(57406),g=o(9710);oe.exports=function(){for(var A=x(this),y=g(A.add),M=0,w=arguments.length;M<w;M++)y.call(A,arguments[M]);return A}},23920:function(oe,N,o){"use strict";var x=o(57406),g=o(9710);oe.exports=function(){for(var A=x(this),y=g(A.delete),M=!0,w,m=0,b=arguments.length;m<b;m++)w=y.call(A,arguments[m]),M=M&&w;return!!M}},85771:function(oe,N,o){"use strict";var x=o(9710),g=o(1577),A=o(49424);oe.exports=function(M){var w=arguments.length,m=w>1?arguments[1]:void 0,b,v,h,d;return x(this),b=m!==void 0,b&&x(m),M==null?new this:(v=[],b?(h=0,d=g(m,w>2?arguments[2]:void 0,2),A(M,function(_){v.push(d(_,h++))})):A(M,v.push,v),new this(v))}},69054:function(oe){"use strict";oe.exports=function(){for(var o=arguments.length,x=new Array(o);o--;)x[o]=arguments[o];return new this(x)}},18812:function(oe,N,o){"use strict";var x=o(93196).f,g=o(19943),A=o(55112),y=o(1577),M=o(60904),w=o(49424),m=o(97219),b=o(8142),v=o(49359),h=o(5262).fastKey,d=o(47014),_=d.set,p=d.getterFor;oe.exports={getConstructor:function(S,k,O,F){var D=S(function(L,V){M(L,D,k),_(L,{type:k,index:g(null),first:void 0,last:void 0,size:0}),v||(L.size=0),V!=null&&w(V,L[F],L,O)}),Z=p(k),W=function(L,V,$){var G=Z(L),z=U(L,V),K,re;return z?z.value=$:(G.last=z={index:re=h(V,!0),key:V,value:$,previous:K=G.last,next:void 0,removed:!1},G.first||(G.first=z),K&&(K.next=z),v?G.size++:L.size++,re!=="F"&&(G.index[re]=z)),L},U=function(L,V){var $=Z(L),G=h(V),z;if(G!=="F")return $.index[G];for(z=$.first;z;z=z.next)if(z.key==V)return z};return A(D.prototype,{clear:function(){for(var V=this,$=Z(V),G=$.index,z=$.first;z;)z.removed=!0,z.previous&&(z.previous=z.previous.next=void 0),delete G[z.index],z=z.next;$.first=$.last=void 0,v?$.size=0:V.size=0},delete:function(L){var V=this,$=Z(V),G=U(V,L);if(G){var z=G.next,K=G.previous;delete $.index[G.index],G.removed=!0,K&&(K.next=z),z&&(z.previous=K),$.first==G&&($.first=z),$.last==G&&($.last=K),v?$.size--:V.size--}return!!G},forEach:function(V){for(var $=Z(this),G=y(V,arguments.length>1?arguments[1]:void 0,3),z;z=z?z.next:$.first;)for(G(z.value,z.key,this);z&&z.removed;)z=z.previous},has:function(V){return!!U(this,V)}}),A(D.prototype,O?{get:function(V){var $=U(this,V);return $&&$.value},set:function(V,$){return W(this,V===0?0:V,$)}}:{add:function(V){return W(this,V=V===0?0:V,V)}}),v&&x(D.prototype,"size",{get:function(){return Z(this).size}}),D},setStrong:function(S,k,O){var F=k+" Iterator",D=p(k),Z=p(F);m(S,k,function(W,U){_(this,{type:F,target:W,state:D(W),kind:U,last:void 0})},function(){for(var W=Z(this),U=W.kind,L=W.last;L&&L.removed;)L=L.previous;return!W.target||!(W.last=L=L?L.next:W.state.first)?(W.target=void 0,{value:void 0,done:!0}):U=="keys"?{value:L.key,done:!1}:U=="values"?{value:L.value,done:!1}:{value:[L.key,L.value],done:!1}},O?"entries":"values",!O,!0),b(k)}}},91027:function(oe,N,o){"use strict";var x=o(55112),g=o(5262).getWeakData,A=o(57406),y=o(51087),M=o(60904),w=o(49424),m=o(87514),b=o(36309),v=o(47014),h=v.set,d=v.getterFor,_=m.find,p=m.findIndex,S=0,k=function(D){return D.frozen||(D.frozen=new O)},O=function(){this.entries=[]},F=function(D,Z){return _(D.entries,function(W){return W[0]===Z})};O.prototype={get:function(D){var Z=F(this,D);if(Z)return Z[1]},has:function(D){return!!F(this,D)},set:function(D,Z){var W=F(this,D);W?W[1]=Z:this.entries.push([D,Z])},delete:function(D){var Z=p(this.entries,function(W){return W[0]===D});return~Z&&this.entries.splice(Z,1),!!~Z}},oe.exports={getConstructor:function(D,Z,W,U){var L=D(function(G,z){M(G,L,Z),h(G,{type:Z,id:S++,frozen:void 0}),z!=null&&w(z,G[U],G,W)}),V=d(Z),$=function(G,z,K){var re=V(G),ne=g(A(z),!0);return ne===!0?k(re).set(z,K):ne[re.id]=K,G};return x(L.prototype,{delete:function(G){var z=V(this);if(!y(G))return!1;var K=g(G);return K===!0?k(z).delete(G):K&&b(K,z.id)&&delete K[z.id]},has:function(z){var K=V(this);if(!y(z))return!1;var re=g(z);return re===!0?k(K).has(z):re&&b(re,K.id)}}),x(L.prototype,W?{get:function(z){var K=V(this);if(y(z)){var re=g(z);return re===!0?k(K).get(z):re?re[K.id]:void 0}},set:function(z,K){return $(this,z,K)}}:{add:function(z){return $(this,z,!0)}}),L}}},26807:function(oe,N,o){"use strict";var x=o(1279),g=o(85809),A=o(79864),y=o(867),M=o(5262),w=o(49424),m=o(60904),b=o(51087),v=o(10195),h=o(42617),d=o(32209),_=o(72589);oe.exports=function(p,S,k){var O=p.indexOf("Map")!==-1,F=p.indexOf("Weak")!==-1,D=O?"set":"add",Z=g[p],W=Z&&Z.prototype,U=Z,L={},V=function(ne){var Q=W[ne];y(W,ne,ne=="add"?function(he){return Q.call(this,he===0?0:he),this}:ne=="delete"?function(ue){return F&&!b(ue)?!1:Q.call(this,ue===0?0:ue)}:ne=="get"?function(he){return F&&!b(he)?void 0:Q.call(this,he===0?0:he)}:ne=="has"?function(he){return F&&!b(he)?!1:Q.call(this,he===0?0:he)}:function(he,Ee){return Q.call(this,he===0?0:he,Ee),this})};if(A(p,typeof Z!="function"||!(F||W.forEach&&!v(function(){new Z().entries().next()}))))U=k.getConstructor(S,p,O,D),M.REQUIRED=!0;else if(A(p,!0)){var $=new U,G=$[D](F?{}:-0,1)!=$,z=v(function(){$.has(1)}),K=h(function(ne){new Z(ne)}),re=!F&&v(function(){for(var ne=new Z,Q=5;Q--;)ne[D](Q,Q);return!ne.has(-0)});K||(U=S(function(ne,Q){m(ne,U,p);var ue=_(new Z,ne,U);return Q!=null&&w(Q,ue[D],ue,O),ue}),U.prototype=W,W.constructor=U),(z||re)&&(V("delete"),V("has"),O&&V("get")),(re||G)&&V(D),F&&W.clear&&delete W.clear}return L[p]=U,x({global:!0,forced:U!=Z},L),d(U,p),F||k.setStrong(U,p,O),U}},80967:function(oe,N,o){var x=o(70681),g=o(14258),A=o(19943),y=o(51087),M=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=A(null)};M.prototype.get=function(m,b){return this[m]||(this[m]=b())},M.prototype.next=function(m,b,v){var h=v?this.objectsByIndex[m]||(this.objectsByIndex[m]=new g):this.primitives||(this.primitives=new x),d=h.get(b);return d||h.set(b,d=new M),d};var w=new M;oe.exports=function(){var m=w,b=arguments.length,v,h;for(v=0;v<b;v++)y(h=arguments[v])&&(m=m.next(v,h,!0));if(this===Object&&m===w)throw TypeError("Composite keys must contain a non-primitive component");for(v=0;v<b;v++)y(h=arguments[v])||(m=m.next(v,h,!1));return m}},2149:function(oe,N,o){var x=o(36309),g=o(36523),A=o(1703),y=o(93196);oe.exports=function(M,w){for(var m=g(w),b=y.f,v=A.f,h=0;h<m.length;h++){var d=m[h];x(M,d)||b(M,d,v(w,d))}}},51527:function(oe,N,o){var x=o(62356),g=x("match");oe.exports=function(A){var y=/./;try{"/./"[A](y)}catch(M){try{return y[g]=!1,"/./"[A](y)}catch(w){}}return!1}},33174:function(oe,N,o){var x=o(10195);oe.exports=!x(function(){function g(){}return g.prototype.constructor=null,Object.getPrototypeOf(new g)!==g.prototype})},77894:function(oe,N,o){var x=o(4288),g=/"/g;oe.exports=function(A,y,M,w){var m=String(x(A)),b="<"+y;return M!==""&&(b+=" "+M+'="'+String(w).replace(g,""")+'"'),b+">"+m+"</"+y+">"}},4332:function(oe,N,o){"use strict";var x=o(68330).IteratorPrototype,g=o(19943),A=o(72122),y=o(32209),M=o(81781),w=function(){return this};oe.exports=function(m,b,v){var h=b+" Iterator";return m.prototype=g(x,{next:A(1,v)}),y(m,h,!1,!0),M[h]=w,m}},24360:function(oe,N,o){var x=o(49359),g=o(93196),A=o(72122);oe.exports=x?function(y,M,w){return g.f(y,M,A(1,w))}:function(y,M,w){return y[M]=w,y}},72122:function(oe){oe.exports=function(N,o){return{enumerable:!(N&1),configurable:!(N&2),writable:!(N&4),value:o}}},79874:function(oe,N,o){"use strict";var x=o(44782),g=o(93196),A=o(72122);oe.exports=function(y,M,w){var m=x(M);m in y?g.f(y,m,A(0,w)):y[m]=w}},8626:function(oe,N,o){"use strict";var x=o(57406),g=o(44782);oe.exports=function(A){if(A!=="string"&&A!=="number"&&A!=="default")throw TypeError("Incorrect hint");return g(x(this),A!=="number")}},97219:function(oe,N,o){"use strict";var x=o(1279),g=o(4332),A=o(55837),y=o(78738),M=o(32209),w=o(24360),m=o(867),b=o(62356),v=o(23893),h=o(81781),d=o(68330),_=d.IteratorPrototype,p=d.BUGGY_SAFARI_ITERATORS,S=b("iterator"),k="keys",O="values",F="entries",D=function(){return this};oe.exports=function(Z,W,U,L,V,$,G){g(U,W,L);var z=function(fe){if(fe===V&&ue)return ue;if(!p&&fe in ne)return ne[fe];switch(fe){case k:return function(){return new U(this,fe)};case O:return function(){return new U(this,fe)};case F:return function(){return new U(this,fe)}}return function(){return new U(this)}},K=W+" Iterator",re=!1,ne=Z.prototype,Q=ne[S]||ne["@@iterator"]||V&&ne[V],ue=!p&&Q||z(V),he=W=="Array"&&ne.entries||Q,Ee,ce,ve;if(he&&(Ee=A(he.call(new Z)),_!==Object.prototype&&Ee.next&&(!v&&A(Ee)!==_&&(y?y(Ee,_):typeof Ee[S]!="function"&&w(Ee,S,D)),M(Ee,K,!0,!0),v&&(h[K]=D))),V==O&&Q&&Q.name!==O&&(re=!0,ue=function(){return Q.call(this)}),(!v||G)&&ne[S]!==ue&&w(ne,S,ue),h[W]=ue,V)if(ce={values:z(O),keys:$?ue:z(k),entries:z(F)},G)for(ve in ce)(p||re||!(ve in ne))&&m(ne,ve,ce[ve]);else x({target:W,proto:!0,forced:p||re},ce);return ce}},15299:function(oe,N,o){var x=o(1693),g=o(36309),A=o(54003),y=o(93196).f;oe.exports=function(M){var w=x.Symbol||(x.Symbol={});g(w,M)||y(w,M,{value:A.f(M)})}},49359:function(oe,N,o){var x=o(10195);oe.exports=!x(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},5038:function(oe,N,o){var x=o(85809),g=o(51087),A=x.document,y=g(A)&&g(A.createElement);oe.exports=function(M){return y?A.createElement(M):{}}},46114:function(oe){oe.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},31657:function(oe,N,o){var x=o(34379);oe.exports=/(iphone|ipod|ipad).*applewebkit/i.test(x)},34379:function(oe,N,o){var x=o(3105);oe.exports=x("navigator","userAgent")||""},75754:function(oe,N,o){var x=o(85809),g=o(34379),A=x.process,y=A&&A.versions,M=y&&y.v8,w,m;M?(w=M.split("."),m=w[0]+w[1]):g&&(w=g.match(/Edge\/(\d+)/),(!w||w[1]>=74)&&(w=g.match(/Chrome\/(\d+)/),w&&(m=w[1]))),oe.exports=m&&+m},21151:function(oe){oe.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1279:function(oe,N,o){var x=o(85809),g=o(1703).f,A=o(24360),y=o(867),M=o(84445),w=o(2149),m=o(79864);oe.exports=function(b,v){var h=b.target,d=b.global,_=b.stat,p,S,k,O,F,D;if(d?S=x:_?S=x[h]||M(h,{}):S=(x[h]||{}).prototype,S)for(k in v){if(F=v[k],b.noTargetGet?(D=g(S,k),O=D&&D.value):O=S[k],p=m(d?k:h+(_?".":"#")+k,b.forced),!p&&O!==void 0){if(typeof F==typeof O)continue;w(F,O)}(b.sham||O&&O.sham)&&A(F,"sham",!0),y(S,k,F,b)}}},10195:function(oe){oe.exports=function(N){try{return!!N()}catch(o){return!0}}},19788:function(oe,N,o){"use strict";o(8960);var x=o(867),g=o(10195),A=o(62356),y=o(63768),M=o(24360),w=A("species"),m=!g(function(){var _=/./;return _.exec=function(){var p=[];return p.groups={a:"7"},p},"".replace(_,"$<a>")!=="7"}),b=function(){return"a".replace(/./,"$0")==="$0"}(),v=A("replace"),h=function(){return/./[v]?/./[v]("a","$0")==="":!1}(),d=!g(function(){var _=/(?:)/,p=_.exec;_.exec=function(){return p.apply(this,arguments)};var S="ab".split(_);return S.length!==2||S[0]!=="a"||S[1]!=="b"});oe.exports=function(_,p,S,k){var O=A(_),F=!g(function(){var V={};return V[O]=function(){return 7},""[_](V)!=7}),D=F&&!g(function(){var V=!1,$=/a/;return _==="split"&&($={},$.constructor={},$.constructor[w]=function(){return $},$.flags="",$[O]=/./[O]),$.exec=function(){return V=!0,null},$[O](""),!V});if(!F||!D||_==="replace"&&!(m&&b&&!h)||_==="split"&&!d){var Z=/./[O],W=S(O,""[_],function(V,$,G,z,K){return $.exec===y?F&&!K?{done:!0,value:Z.call($,G,z)}:{done:!0,value:V.call(G,$,z)}:{done:!1}},{REPLACE_KEEPS_$0:b,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),U=W[0],L=W[1];x(String.prototype,_,U),x(RegExp.prototype,O,p==2?function(V,$){return L.call(V,this,$)}:function(V){return L.call(V,this)})}k&&M(RegExp.prototype[O],"sham",!0)}},44184:function(oe,N,o){"use strict";var x=o(97736),g=o(16159),A=o(1577),y=function(M,w,m,b,v,h,d,_){for(var p=v,S=0,k=d?A(d,_,3):!1,O;S<b;){if(S in m){if(O=k?k(m[S],S,w):m[S],h>0&&x(O))p=y(M,w,O,g(O.length),p,h-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");M[p]=O}p++}S++}return p};oe.exports=y},52136:function(oe,N,o){var x=o(10195);oe.exports=!x(function(){return Object.isExtensible(Object.preventExtensions({}))})},1577:function(oe,N,o){var x=o(9710);oe.exports=function(g,A,y){if(x(g),A===void 0)return g;switch(y){case 0:return function(){return g.call(A)};case 1:return function(M){return g.call(A,M)};case 2:return function(M,w){return g.call(A,M,w)};case 3:return function(M,w,m){return g.call(A,M,w,m)}}return function(){return g.apply(A,arguments)}}},20911:function(oe,N,o){"use strict";var x=o(9710),g=o(51087),A=[].slice,y={},M=function(w,m,b){if(!(m in y)){for(var v=[],h=0;h<m;h++)v[h]="a["+h+"]";y[m]=Function("C,a","return new C("+v.join(",")+")")}return y[m](w,b)};oe.exports=Function.bind||function(m){var b=x(this),v=A.call(arguments,1),h=function(){var _=v.concat(A.call(arguments));return this instanceof h?M(b,_.length,_):b.apply(m,_)};return g(b.prototype)&&(h.prototype=b.prototype),h}},3105:function(oe,N,o){var x=o(1693),g=o(85809),A=function(y){return typeof y=="function"?y:void 0};oe.exports=function(y,M){return arguments.length<2?A(x[y])||A(g[y]):x[y]&&x[y][M]||g[y]&&g[y][M]}},27510:function(oe,N,o){var x=o(2565),g=o(81781),A=o(62356),y=A("iterator");oe.exports=function(M){if(M!=null)return M[y]||M["@@iterator"]||g[x(M)]}},16897:function(oe,N,o){var x=o(57406),g=o(27510);oe.exports=function(A){var y=g(A);if(typeof y!="function")throw TypeError(String(A)+" is not iterable");return x(y.call(A))}},82868:function(oe,N,o){var x=o(23893),g=o(16897);oe.exports=x?g:function(A){return Map.prototype.entries.call(A)}},99723:function(oe,N,o){var x=o(23893),g=o(16897);oe.exports=x?g:function(A){return Set.prototype.values.call(A)}},85809:function(oe,N,o){var x=function(g){return g&&g.Math==Math&&g};oe.exports=x(typeof globalThis=="object"&&globalThis)||x(typeof window=="object"&&window)||x(typeof self=="object"&&self)||x(typeof o.g=="object"&&o.g)||Function("return this")()},36309:function(oe){var N={}.hasOwnProperty;oe.exports=function(o,x){return N.call(o,x)}},15523:function(oe){oe.exports={}},621:function(oe,N,o){var x=o(85809);oe.exports=function(g,A){var y=x.console;y&&y.error&&(arguments.length===1?y.error(g):y.error(g,A))}},47636:function(oe,N,o){var x=o(3105);oe.exports=x("document","documentElement")},13390:function(oe,N,o){var x=o(49359),g=o(10195),A=o(5038);oe.exports=!x&&!g(function(){return Object.defineProperty(A("div"),"a",{get:function(){return 7}}).a!=7})},75585:function(oe){var N=1/0,o=Math.abs,x=Math.pow,g=Math.floor,A=Math.log,y=Math.LN2,M=function(m,b,v){var h=new Array(v),d=v*8-b-1,_=(1<<d)-1,p=_>>1,S=b===23?x(2,-24)-x(2,-77):0,k=m<0||m===0&&1/m<0?1:0,O=0,F,D,Z;for(m=o(m),m!=m||m===N?(D=m!=m?1:0,F=_):(F=g(A(m)/y),m*(Z=x(2,-F))<1&&(F--,Z*=2),F+p>=1?m+=S/Z:m+=S*x(2,1-p),m*Z>=2&&(F++,Z/=2),F+p>=_?(D=0,F=_):F+p>=1?(D=(m*Z-1)*x(2,b),F=F+p):(D=m*x(2,p-1)*x(2,b),F=0));b>=8;h[O++]=D&255,D/=256,b-=8);for(F=F<<b|D,d+=b;d>0;h[O++]=F&255,F/=256,d-=8);return h[--O]|=k*128,h},w=function(m,b){var v=m.length,h=v*8-b-1,d=(1<<h)-1,_=d>>1,p=h-7,S=v-1,k=m[S--],O=k&127,F;for(k>>=7;p>0;O=O*256+m[S],S--,p-=8);for(F=O&(1<<-p)-1,O>>=-p,p+=b;p>0;F=F*256+m[S],S--,p-=8);if(O===0)O=1-_;else{if(O===d)return F?NaN:k?-N:N;F=F+x(2,b),O=O-_}return(k?-1:1)*F*x(2,O-b)};oe.exports={pack:M,unpack:w}},88786:function(oe,N,o){var x=o(10195),g=o(11748),A="".split;oe.exports=x(function(){return!Object("z").propertyIsEnumerable(0)})?function(y){return g(y)=="String"?A.call(y,""):Object(y)}:Object},72589:function(oe,N,o){var x=o(51087),g=o(78738);oe.exports=function(A,y,M){var w,m;return g&&typeof(w=y.constructor)=="function"&&w!==M&&x(m=w.prototype)&&m!==M.prototype&&g(A,m),A}},91949:function(oe,N,o){var x=o(79178),g=Function.toString;typeof x.inspectSource!="function"&&(x.inspectSource=function(A){return g.call(A)}),oe.exports=x.inspectSource},5262:function(oe,N,o){var x=o(15523),g=o(51087),A=o(36309),y=o(93196).f,M=o(61241),w=o(52136),m=M("meta"),b=0,v=Object.isExtensible||function(){return!0},h=function(k){y(k,m,{value:{objectID:"O"+ ++b,weakData:{}}})},d=function(k,O){if(!g(k))return typeof k=="symbol"?k:(typeof k=="string"?"S":"P")+k;if(!A(k,m)){if(!v(k))return"F";if(!O)return"E";h(k)}return k[m].objectID},_=function(k,O){if(!A(k,m)){if(!v(k))return!0;if(!O)return!1;h(k)}return k[m].weakData},p=function(k){return w&&S.REQUIRED&&v(k)&&!A(k,m)&&h(k),k},S=oe.exports={REQUIRED:!1,fastKey:d,getWeakData:_,onFreeze:p};x[m]=!0},47014:function(oe,N,o){var x=o(71174),g=o(85809),A=o(51087),y=o(24360),M=o(36309),w=o(82891),m=o(15523),b=g.WeakMap,v,h,d,_=function(Z){return d(Z)?h(Z):v(Z,{})},p=function(Z){return function(W){var U;if(!A(W)||(U=h(W)).type!==Z)throw TypeError("Incompatible receiver, "+Z+" required");return U}};if(x){var S=new b,k=S.get,O=S.has,F=S.set;v=function(Z,W){return F.call(S,Z,W),W},h=function(Z){return k.call(S,Z)||{}},d=function(Z){return O.call(S,Z)}}else{var D=w("state");m[D]=!0,v=function(Z,W){return y(Z,D,W),W},h=function(Z){return M(Z,D)?Z[D]:{}},d=function(Z){return M(Z,D)}}oe.exports={set:v,get:h,has:d,enforce:_,getterFor:p}},32632:function(oe,N,o){var x=o(62356),g=o(81781),A=x("iterator"),y=Array.prototype;oe.exports=function(M){return M!==void 0&&(g.Array===M||y[A]===M)}},97736:function(oe,N,o){var x=o(11748);oe.exports=Array.isArray||function(A){return x(A)=="Array"}},79864:function(oe,N,o){var x=o(10195),g=/#|\.prototype\./,A=function(b,v){var h=M[y(b)];return h==m?!0:h==w?!1:typeof v=="function"?x(v):!!v},y=A.normalize=function(b){return String(b).replace(g,".").toLowerCase()},M=A.data={},w=A.NATIVE="N",m=A.POLYFILL="P";oe.exports=A},70456:function(oe,N,o){var x=o(51087),g=Math.floor;oe.exports=function(y){return!x(y)&&isFinite(y)&&g(y)===y}},51087:function(oe){oe.exports=function(N){return typeof N=="object"?N!==null:typeof N=="function"}},23893:function(oe){oe.exports=!1},16148:function(oe,N,o){var x=o(51087),g=o(11748),A=o(62356),y=A("match");oe.exports=function(M){var w;return x(M)&&((w=M[y])!==void 0?!!w:g(M)=="RegExp")}},49424:function(oe,N,o){var x=o(57406),g=o(32632),A=o(16159),y=o(1577),M=o(27510),w=o(41046),m=function(v,h){this.stopped=v,this.result=h},b=oe.exports=function(v,h,d,_,p){var S=y(h,d,_?2:1),k,O,F,D,Z,W,U;if(p)k=v;else{if(O=M(v),typeof O!="function")throw TypeError("Target is not iterable");if(g(O)){for(F=0,D=A(v.length);D>F;F++)if(Z=_?S(x(U=v[F])[0],U[1]):S(v[F]),Z&&Z instanceof m)return Z;return new m(!1)}k=O.call(v)}for(W=k.next;!(U=W.call(k)).done;)if(Z=w(k,S,U.value,_),typeof Z=="object"&&Z&&Z instanceof m)return Z;return new m(!1)};b.stop=function(v){return new m(!0,v)}},68330:function(oe,N,o){"use strict";var x=o(55837),g=o(24360),A=o(36309),y=o(62356),M=o(23893),w=y("iterator"),m=!1,b=function(){return this},v,h,d;[].keys&&(d=[].keys(),"next"in d?(h=x(x(d)),h!==Object.prototype&&(v=h)):m=!0),v==null&&(v={}),!M&&!A(v,w)&&g(v,w,b),oe.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:m}},81781:function(oe){oe.exports={}},50831:function(oe){var N=Math.expm1,o=Math.exp;oe.exports=!N||N(10)>22025.465794806718||N(10)<22025.465794806718||N(-2e-17)!=-2e-17?function(g){return(g=+g)==0?g:g>-1e-6&&g<1e-6?g+g*g/2:o(g)-1}:N},83256:function(oe,N,o){var x=o(80004),g=Math.abs,A=Math.pow,y=A(2,-52),M=A(2,-23),w=A(2,127)*(2-M),m=A(2,-126),b=function(v){return v+1/y-1/y};oe.exports=Math.fround||function(h){var d=g(h),_=x(h),p,S;return d<m?_*b(d/m/M)*m*M:(p=(1+M/y)*d,S=p-(p-d),S>w||S!=S?_*Infinity:_*S)}},43648:function(oe){var N=Math.log;oe.exports=Math.log1p||function(x){return(x=+x)>-1e-8&&x<1e-8?x-x*x/2:N(1+x)}},10679:function(oe){oe.exports=Math.scale||function(o,x,g,A,y){return arguments.length===0||o!=o||x!=x||g!=g||A!=A||y!=y?NaN:o===Infinity||o===-Infinity?o:(o-x)*(y-A)/(g-x)+A}},80004:function(oe){oe.exports=Math.sign||function(o){return(o=+o)==0||o!=o?o:o<0?-1:1}},66229:function(oe,N,o){var x=o(85809),g=o(1703).f,A=o(11748),y=o(27151).set,M=o(31657),w=x.MutationObserver||x.WebKitMutationObserver,m=x.process,b=x.Promise,v=A(m)=="process",h=g(x,"queueMicrotask"),d=h&&h.value,_,p,S,k,O,F,D,Z;d||(_=function(){var W,U;for(v&&(W=m.domain)&&W.exit();p;){U=p.fn,p=p.next;try{U()}catch(L){throw p?k():S=void 0,L}}S=void 0,W&&W.enter()},v?k=function(){m.nextTick(_)}:w&&!M?(O=!0,F=document.createTextNode(""),new w(_).observe(F,{characterData:!0}),k=function(){F.data=O=!O}):b&&b.resolve?(D=b.resolve(void 0),Z=D.then,k=function(){Z.call(D,_)}):k=function(){y.call(x,_)}),oe.exports=d||function(W){var U={fn:W,next:void 0};S&&(S.next=U),p||(p=U,k()),S=U}},77707:function(oe,N,o){var x=o(85809);oe.exports=x.Promise},3589:function(oe,N,o){var x=o(10195);oe.exports=!!Object.getOwnPropertySymbols&&!x(function(){return!String(Symbol())})},23699:function(oe,N,o){var x=o(10195),g=o(62356),A=o(23893),y=g("iterator");oe.exports=!x(function(){var M=new URL("b?a=1&b=2&c=3","http://a"),w=M.searchParams,m="";return M.pathname="c%20d",w.forEach(function(b,v){w.delete("b"),m+=v+b}),A&&!M.toJSON||!w.sort||M.href!=="http://a/c%20d?a=1&c=3"||w.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!w[y]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||m!=="a1c3"||new URL("http://x",void 0).host!=="x"})},71174:function(oe,N,o){var x=o(85809),g=o(91949),A=x.WeakMap;oe.exports=typeof A=="function"&&/native code/.test(g(A))},45467:function(oe,N,o){"use strict";var x=o(9710),g=function(A){var y,M;this.promise=new A(function(w,m){if(y!==void 0||M!==void 0)throw TypeError("Bad Promise constructor");y=w,M=m}),this.resolve=x(y),this.reject=x(M)};oe.exports.f=function(A){return new g(A)}},37955:function(oe,N,o){var x=o(16148);oe.exports=function(g){if(x(g))throw TypeError("The method doesn't accept regular expressions");return g}},14854:function(oe,N,o){var x=o(85809),g=x.isFinite;oe.exports=Number.isFinite||function(y){return typeof y=="number"&&g(y)}},15539:function(oe,N,o){var x=o(85809),g=o(51832).trim,A=o(25316),y=x.parseFloat,M=1/y(A+"-0")!=-Infinity;oe.exports=M?function(m){var b=g(String(m)),v=y(b);return v===0&&b.charAt(0)=="-"?-0:v}:y},59114:function(oe,N,o){var x=o(85809),g=o(51832).trim,A=o(25316),y=x.parseInt,M=/^[+-]?0[Xx]/,w=y(A+"08")!==8||y(A+"0x16")!==22;oe.exports=w?function(b,v){var h=g(String(b));return y(h,v>>>0||(M.test(h)?16:10))}:y},76571:function(oe,N,o){"use strict";var x=o(49359),g=o(10195),A=o(30976),y=o(55040),M=o(54952),w=o(15826),m=o(88786),b=Object.assign,v=Object.defineProperty;oe.exports=!b||g(function(){if(x&&b({b:1},b(v({},"a",{enumerable:!0,get:function(){v(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var h={},d={},_=Symbol(),p="abcdefghijklmnopqrst";return h[_]=7,p.split("").forEach(function(S){d[S]=S}),b({},h)[_]!=7||A(b({},d)).join("")!=p})?function(d,_){for(var p=w(d),S=arguments.length,k=1,O=y.f,F=M.f;S>k;)for(var D=m(arguments[k++]),Z=O?A(D).concat(O(D)):A(D),W=Z.length,U=0,L;W>U;)L=Z[U++],(!x||F.call(D,L))&&(p[L]=D[L]);return p}:b},19943:function(oe,N,o){var x=o(57406),g=o(81634),A=o(21151),y=o(15523),M=o(47636),w=o(5038),m=o(82891),b=">",v="<",h="prototype",d="script",_=m("IE_PROTO"),p=function(){},S=function(Z){return v+d+b+Z+v+"/"+d+b},k=function(Z){Z.write(S("")),Z.close();var W=Z.parentWindow.Object;return Z=null,W},O=function(){var Z=w("iframe"),W="java"+d+":",U;return Z.style.display="none",M.appendChild(Z),Z.src=String(W),U=Z.contentWindow.document,U.open(),U.write(S("document.F=Object")),U.close(),U.F},F,D=function(){try{F=document.domain&&new ActiveXObject("htmlfile")}catch(W){}D=F?k(F):O();for(var Z=A.length;Z--;)delete D[h][A[Z]];return D()};y[_]=!0,oe.exports=Object.create||function(W,U){var L;return W!==null?(p[h]=x(W),L=new p,p[h]=null,L[_]=W):L=D(),U===void 0?L:g(L,U)}},81634:function(oe,N,o){var x=o(49359),g=o(93196),A=o(57406),y=o(30976);oe.exports=x?Object.defineProperties:function(w,m){A(w);for(var b=y(m),v=b.length,h=0,d;v>h;)g.f(w,d=b[h++],m[d]);return w}},93196:function(oe,N,o){var x=o(49359),g=o(13390),A=o(57406),y=o(44782),M=Object.defineProperty;N.f=x?M:function(m,b,v){if(A(m),b=y(b,!0),A(v),g)try{return M(m,b,v)}catch(h){}if("get"in v||"set"in v)throw TypeError("Accessors not supported");return"value"in v&&(m[b]=v.value),m}},1703:function(oe,N,o){var x=o(49359),g=o(54952),A=o(72122),y=o(98117),M=o(44782),w=o(36309),m=o(13390),b=Object.getOwnPropertyDescriptor;N.f=x?b:function(h,d){if(h=y(h),d=M(d,!0),m)try{return b(h,d)}catch(_){}if(w(h,d))return A(!g.f.call(h,d),h[d])}},57052:function(oe,N,o){var x=o(98117),g=o(51209).f,A={}.toString,y=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],M=function(w){try{return g(w)}catch(m){return y.slice()}};oe.exports.f=function(m){return y&&A.call(m)=="[object Window]"?M(m):g(x(m))}},51209:function(oe,N,o){var x=o(650),g=o(21151),A=g.concat("length","prototype");N.f=Object.getOwnPropertyNames||function(M){return x(M,A)}},55040:function(oe,N){N.f=Object.getOwnPropertySymbols},55837:function(oe,N,o){var x=o(36309),g=o(15826),A=o(82891),y=o(33174),M=A("IE_PROTO"),w=Object.prototype;oe.exports=y?Object.getPrototypeOf:function(m){return m=g(m),x(m,M)?m[M]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?w:null}},650:function(oe,N,o){var x=o(36309),g=o(98117),A=o(83954).indexOf,y=o(15523);oe.exports=function(M,w){var m=g(M),b=0,v=[],h;for(h in m)!x(y,h)&&x(m,h)&&v.push(h);for(;w.length>b;)x(m,h=w[b++])&&(~A(v,h)||v.push(h));return v}},30976:function(oe,N,o){var x=o(650),g=o(21151);oe.exports=Object.keys||function(y){return x(y,g)}},54952:function(oe,N){"use strict";var o={}.propertyIsEnumerable,x=Object.getOwnPropertyDescriptor,g=x&&!o.call({1:2},1);N.f=g?function(y){var M=x(this,y);return!!M&&M.enumerable}:o},74061:function(oe,N,o){"use strict";var x=o(23893),g=o(85809),A=o(10195);oe.exports=x||!A(function(){var y=Math.random();__defineSetter__.call(null,y,function(){}),delete g[y]})},78738:function(oe,N,o){var x=o(57406),g=o(23745);oe.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var A=!1,y={},M;try{M=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,M.call(y,[]),A=y instanceof Array}catch(w){}return function(m,b){return x(m),g(b),A?M.call(m,b):m.__proto__=b,m}}():void 0)},62270:function(oe,N,o){var x=o(49359),g=o(30976),A=o(98117),y=o(54952).f,M=function(w){return function(m){for(var b=A(m),v=g(b),h=v.length,d=0,_=[],p;h>d;)p=v[d++],(!x||y.call(b,p))&&_.push(w?[p,b[p]]:b[p]);return _}};oe.exports={entries:M(!0),values:M(!1)}},99545:function(oe,N,o){"use strict";var x=o(44158),g=o(2565);oe.exports=x?{}.toString:function(){return"[object "+g(this)+"]"}},36523:function(oe,N,o){var x=o(3105),g=o(51209),A=o(55040),y=o(57406);oe.exports=x("Reflect","ownKeys")||function(w){var m=g.f(y(w)),b=A.f;return b?m.concat(b(w)):m}},1693:function(oe,N,o){var x=o(85809);oe.exports=x},62395:function(oe){oe.exports=function(N){try{return{error:!1,value:N()}}catch(o){return{error:!0,value:o}}}},54557:function(oe,N,o){var x=o(57406),g=o(51087),A=o(45467);oe.exports=function(y,M){if(x(y),g(M)&&M.constructor===y)return M;var w=A.f(y),m=w.resolve;return m(M),w.promise}},55112:function(oe,N,o){var x=o(867);oe.exports=function(g,A,y){for(var M in A)x(g,M,A[M],y);return g}},867:function(oe,N,o){var x=o(85809),g=o(24360),A=o(36309),y=o(84445),M=o(91949),w=o(47014),m=w.get,b=w.enforce,v=String(String).split("String");(oe.exports=function(h,d,_,p){var S=p?!!p.unsafe:!1,k=p?!!p.enumerable:!1,O=p?!!p.noTargetGet:!1;if(typeof _=="function"&&(typeof d=="string"&&!A(_,"name")&&g(_,"name",d),b(_).source=v.join(typeof d=="string"?d:"")),h===x){k?h[d]=_:y(d,_);return}else S?!O&&h[d]&&(k=!0):delete h[d];k?h[d]=_:g(h,d,_)})(Function.prototype,"toString",function(){return typeof this=="function"&&m(this).source||M(this)})},93347:function(oe,N,o){var x=o(70681),g=o(14258),A=o(95780),y=A("metadata"),M=y.store||(y.store=new g),w=function(_,p,S){var k=M.get(_);if(!k){if(!S)return;M.set(_,k=new x)}var O=k.get(p);if(!O){if(!S)return;k.set(p,O=new x)}return O},m=function(_,p,S){var k=w(p,S,!1);return k===void 0?!1:k.has(_)},b=function(_,p,S){var k=w(p,S,!1);return k===void 0?void 0:k.get(_)},v=function(_,p,S,k){w(S,k,!0).set(_,p)},h=function(_,p){var S=w(_,p,!1),k=[];return S&&S.forEach(function(O,F){k.push(F)}),k},d=function(_){return _===void 0||typeof _=="symbol"?_:String(_)};oe.exports={store:M,getMap:w,has:m,get:b,set:v,keys:h,toKey:d}},96874:function(oe,N,o){var x=o(11748),g=o(63768);oe.exports=function(A,y){var M=A.exec;if(typeof M=="function"){var w=M.call(A,y);if(typeof w!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return w}if(x(A)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return g.call(A,y)}},63768:function(oe,N,o){"use strict";var x=o(15025),g=o(59054),A=RegExp.prototype.exec,y=String.prototype.replace,M=A,w=function(){var h=/a/,d=/b*/g;return A.call(h,"a"),A.call(d,"a"),h.lastIndex!==0||d.lastIndex!==0}(),m=g.UNSUPPORTED_Y||g.BROKEN_CARET,b=/()??/.exec("")[1]!==void 0,v=w||b||m;v&&(M=function(d){var _=this,p,S,k,O,F=m&&_.sticky,D=x.call(_),Z=_.source,W=0,U=d;return F&&(D=D.replace("y",""),D.indexOf("g")===-1&&(D+="g"),U=String(d).slice(_.lastIndex),_.lastIndex>0&&(!_.multiline||_.multiline&&d[_.lastIndex-1]!==`
|
||
`)&&(Z="(?: "+Z+")",U=" "+U,W++),S=new RegExp("^(?:"+Z+")",D)),b&&(S=new RegExp("^"+Z+"$(?!\\s)",D)),w&&(p=_.lastIndex),k=A.call(F?S:_,U),F?k?(k.input=k.input.slice(W),k[0]=k[0].slice(W),k.index=_.lastIndex,_.lastIndex+=k[0].length):_.lastIndex=0:w&&k&&(_.lastIndex=_.global?k.index+k[0].length:p),b&&k&&k.length>1&&y.call(k[0],S,function(){for(O=1;O<arguments.length-2;O++)arguments[O]===void 0&&(k[O]=void 0)}),k}),oe.exports=M},15025:function(oe,N,o){"use strict";var x=o(57406);oe.exports=function(){var g=x(this),A="";return g.global&&(A+="g"),g.ignoreCase&&(A+="i"),g.multiline&&(A+="m"),g.dotAll&&(A+="s"),g.unicode&&(A+="u"),g.sticky&&(A+="y"),A}},59054:function(oe,N,o){"use strict";var x=o(10195);function g(A,y){return RegExp(A,y)}N.UNSUPPORTED_Y=x(function(){var A=g("a","y");return A.lastIndex=2,A.exec("abcd")!=null}),N.BROKEN_CARET=x(function(){var A=g("^r","gy");return A.lastIndex=2,A.exec("str")!=null})},4288:function(oe){oe.exports=function(N){if(N==null)throw TypeError("Can't call method on "+N);return N}},22262:function(oe){oe.exports=function(N,o){return N===o||N!=N&&o!=o}},22096:function(oe){oe.exports=Object.is||function(o,x){return o===x?o!==0||1/o==1/x:o!=o&&x!=x}},84445:function(oe,N,o){var x=o(85809),g=o(24360);oe.exports=function(A,y){try{g(x,A,y)}catch(M){x[A]=y}return y}},8142:function(oe,N,o){"use strict";var x=o(3105),g=o(93196),A=o(62356),y=o(49359),M=A("species");oe.exports=function(w){var m=x(w),b=g.f;y&&m&&!m[M]&&b(m,M,{configurable:!0,get:function(){return this}})}},32209:function(oe,N,o){var x=o(93196).f,g=o(36309),A=o(62356),y=A("toStringTag");oe.exports=function(M,w,m){M&&!g(M=m?M:M.prototype,y)&&x(M,y,{configurable:!0,value:w})}},82891:function(oe,N,o){var x=o(95780),g=o(61241),A=x("keys");oe.exports=function(y){return A[y]||(A[y]=g(y))}},79178:function(oe,N,o){var x=o(85809),g=o(84445),A="__core-js_shared__",y=x[A]||g(A,{});oe.exports=y},95780:function(oe,N,o){var x=o(23893),g=o(79178);(oe.exports=function(A,y){return g[A]||(g[A]=y!==void 0?y:{})})("versions",[]).push({version:"3.6.5",mode:x?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},77284:function(oe,N,o){var x=o(57406),g=o(9710),A=o(62356),y=A("species");oe.exports=function(M,w){var m=x(M).constructor,b;return m===void 0||(b=x(m)[y])==null?w:g(b)}},33605:function(oe,N,o){var x=o(10195);oe.exports=function(g){return x(function(){var A=""[g]('"');return A!==A.toLowerCase()||A.split('"').length>3})}},20407:function(oe,N,o){var x=o(11908),g=o(4288),A=function(y){return function(M,w){var m=String(g(M)),b=x(w),v=m.length,h,d;return b<0||b>=v?y?"":void 0:(h=m.charCodeAt(b),h<55296||h>56319||b+1===v||(d=m.charCodeAt(b+1))<56320||d>57343?y?m.charAt(b):h:y?m.slice(b,b+2):(h-55296<<10)+(d-56320)+65536)}};oe.exports={codeAt:A(!1),charAt:A(!0)}},59432:function(oe,N,o){var x=o(34379);oe.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(x)},33189:function(oe,N,o){var x=o(16159),g=o(73160),A=o(4288),y=Math.ceil,M=function(w){return function(m,b,v){var h=String(A(m)),d=h.length,_=v===void 0?" ":String(v),p=x(b),S,k;return p<=d||_==""?h:(S=p-d,k=g.call(_,y(S/_.length)),k.length>S&&(k=k.slice(0,S)),w?h+k:k+h)}};oe.exports={start:M(!1),end:M(!0)}},37097:function(oe){"use strict";var N=2147483647,o=36,x=1,g=26,A=38,y=700,M=72,w=128,m="-",b=/[^\0-\u007E]/,v=/[.\u3002\uFF0E\uFF61]/g,h="Overflow: input needs wider integers to process",d=o-x,_=Math.floor,p=String.fromCharCode,S=function(D){for(var Z=[],W=0,U=D.length;W<U;){var L=D.charCodeAt(W++);if(L>=55296&&L<=56319&&W<U){var V=D.charCodeAt(W++);(V&64512)==56320?Z.push(((L&1023)<<10)+(V&1023)+65536):(Z.push(L),W--)}else Z.push(L)}return Z},k=function(D){return D+22+75*(D<26)},O=function(D,Z,W){var U=0;for(D=W?_(D/y):D>>1,D+=_(D/Z);D>d*g>>1;U+=o)D=_(D/d);return _(U+(d+1)*D/(D+A))},F=function(D){var Z=[];D=S(D);var W=D.length,U=w,L=0,V=M,$,G;for($=0;$<D.length;$++)G=D[$],G<128&&Z.push(p(G));var z=Z.length,K=z;for(z&&Z.push(m);K<W;){var re=N;for($=0;$<D.length;$++)G=D[$],G>=U&&G<re&&(re=G);var ne=K+1;if(re-U>_((N-L)/ne))throw RangeError(h);for(L+=(re-U)*ne,U=re,$=0;$<D.length;$++){if(G=D[$],G<U&&++L>N)throw RangeError(h);if(G==U){for(var Q=L,ue=o;;ue+=o){var he=ue<=V?x:ue>=V+g?g:ue-V;if(Q<he)break;var Ee=Q-he,ce=o-he;Z.push(p(k(he+Ee%ce))),Q=_(Ee/ce)}Z.push(p(k(Q))),V=O(L,ne,K==z),L=0,++K}}++L,++U}return Z.join("")};oe.exports=function(D){var Z=[],W=D.toLowerCase().replace(v,".").split("."),U,L;for(U=0;U<W.length;U++)L=W[U],Z.push(b.test(L)?"xn--"+F(L):L);return Z.join(".")}},73160:function(oe,N,o){"use strict";var x=o(11908),g=o(4288);oe.exports="".repeat||function(y){var M=String(g(this)),w="",m=x(y);if(m<0||m==Infinity)throw RangeError("Wrong number of repetitions");for(;m>0;(m>>>=1)&&(M+=M))m&1&&(w+=M);return w}},75368:function(oe,N,o){var x=o(10195),g=o(25316),A="\u200B\x85\u180E";oe.exports=function(y){return x(function(){return!!g[y]()||A[y]()!=A||g[y].name!==y})}},51832:function(oe,N,o){var x=o(4288),g=o(25316),A="["+g+"]",y=RegExp("^"+A+A+"*"),M=RegExp(A+A+"*$"),w=function(m){return function(b){var v=String(x(b));return m&1&&(v=v.replace(y,"")),m&2&&(v=v.replace(M,"")),v}};oe.exports={start:w(1),end:w(2),trim:w(3)}},27151:function(oe,N,o){var x=o(85809),g=o(10195),A=o(11748),y=o(1577),M=o(47636),w=o(5038),m=o(31657),b=x.location,v=x.setImmediate,h=x.clearImmediate,d=x.process,_=x.MessageChannel,p=x.Dispatch,S=0,k={},O="onreadystatechange",F,D,Z,W=function($){if(k.hasOwnProperty($)){var G=k[$];delete k[$],G()}},U=function($){return function(){W($)}},L=function($){W($.data)},V=function($){x.postMessage($+"",b.protocol+"//"+b.host)};(!v||!h)&&(v=function(G){for(var z=[],K=1;arguments.length>K;)z.push(arguments[K++]);return k[++S]=function(){(typeof G=="function"?G:Function(G)).apply(void 0,z)},F(S),S},h=function(G){delete k[G]},A(d)=="process"?F=function($){d.nextTick(U($))}:p&&p.now?F=function($){p.now(U($))}:_&&!m?(D=new _,Z=D.port2,D.port1.onmessage=L,F=y(Z.postMessage,Z,1)):x.addEventListener&&typeof postMessage=="function"&&!x.importScripts&&!g(V)&&b.protocol!=="file:"?(F=V,x.addEventListener("message",L,!1)):O in w("script")?F=function($){M.appendChild(w("script"))[O]=function(){M.removeChild(this),W($)}}:F=function($){setTimeout(U($),0)}),oe.exports={set:v,clear:h}},79602:function(oe,N,o){var x=o(11748);oe.exports=function(g){if(typeof g!="number"&&x(g)!="Number")throw TypeError("Incorrect invocation");return+g}},31232:function(oe,N,o){var x=o(11908),g=Math.max,A=Math.min;oe.exports=function(y,M){var w=x(y);return w<0?g(w+M,0):A(w,M)}},91106:function(oe,N,o){var x=o(11908),g=o(16159);oe.exports=function(A){if(A===void 0)return 0;var y=x(A),M=g(y);if(y!==M)throw RangeError("Wrong length or index");return M}},98117:function(oe,N,o){var x=o(88786),g=o(4288);oe.exports=function(A){return x(g(A))}},11908:function(oe){var N=Math.ceil,o=Math.floor;oe.exports=function(x){return isNaN(x=+x)?0:(x>0?o:N)(x)}},16159:function(oe,N,o){var x=o(11908),g=Math.min;oe.exports=function(A){return A>0?g(x(A),9007199254740991):0}},15826:function(oe,N,o){var x=o(4288);oe.exports=function(g){return Object(x(g))}},63448:function(oe,N,o){var x=o(88059);oe.exports=function(g,A){var y=x(g);if(y%A)throw RangeError("Wrong offset");return y}},88059:function(oe,N,o){var x=o(11908);oe.exports=function(g){var A=x(g);if(A<0)throw RangeError("The argument can't be less than 0");return A}},44782:function(oe,N,o){var x=o(51087);oe.exports=function(g,A){if(!x(g))return g;var y,M;if(A&&typeof(y=g.toString)=="function"&&!x(M=y.call(g))||typeof(y=g.valueOf)=="function"&&!x(M=y.call(g))||!A&&typeof(y=g.toString)=="function"&&!x(M=y.call(g)))return M;throw TypeError("Can't convert object to primitive value")}},44158:function(oe,N,o){var x=o(62356),g=x("toStringTag"),A={};A[g]="z",oe.exports=String(A)==="[object z]"},64650:function(oe,N,o){"use strict";var x=o(1279),g=o(85809),A=o(49359),y=o(66077),M=o(56272),w=o(97103),m=o(60904),b=o(72122),v=o(24360),h=o(16159),d=o(91106),_=o(63448),p=o(44782),S=o(36309),k=o(2565),O=o(51087),F=o(19943),D=o(78738),Z=o(51209).f,W=o(51057),U=o(87514).forEach,L=o(8142),V=o(93196),$=o(1703),G=o(47014),z=o(72589),K=G.get,re=G.set,ne=V.f,Q=$.f,ue=Math.round,he=g.RangeError,Ee=w.ArrayBuffer,ce=w.DataView,ve=M.NATIVE_ARRAY_BUFFER_VIEWS,fe=M.TYPED_ARRAY_TAG,we=M.TypedArray,me=M.TypedArrayPrototype,Pe=M.aTypedArrayConstructor,pe=M.isTypedArray,Ie="BYTES_PER_ELEMENT",Je="Wrong length",ke=function(dt,Ke){for(var Ge=0,wt=Ke.length,Vt=new(Pe(dt))(wt);wt>Ge;)Vt[Ge]=Ke[Ge++];return Vt},De=function(dt,Ke){ne(dt,Ke,{get:function(){return K(this)[Ke]}})},Fe=function(dt){var Ke;return dt instanceof Ee||(Ke=k(dt))=="ArrayBuffer"||Ke=="SharedArrayBuffer"},Qe=function(dt,Ke){return pe(dt)&&typeof Ke!="symbol"&&Ke in dt&&String(+Ke)==String(Ke)},qe=function(Ke,Ge){return Qe(Ke,Ge=p(Ge,!0))?b(2,Ke[Ge]):Q(Ke,Ge)},et=function(Ke,Ge,wt){return Qe(Ke,Ge=p(Ge,!0))&&O(wt)&&S(wt,"value")&&!S(wt,"get")&&!S(wt,"set")&&!wt.configurable&&(!S(wt,"writable")||wt.writable)&&(!S(wt,"enumerable")||wt.enumerable)?(Ke[Ge]=wt.value,Ke):ne(Ke,Ge,wt)};A?(ve||($.f=qe,V.f=et,De(me,"buffer"),De(me,"byteOffset"),De(me,"byteLength"),De(me,"length")),x({target:"Object",stat:!0,forced:!ve},{getOwnPropertyDescriptor:qe,defineProperty:et}),oe.exports=function(dt,Ke,Ge){var wt=dt.match(/\d+$/)[0]/8,Vt=dt+(Ge?"Clamped":"")+"Array",gt="get"+dt,it="set"+dt,Le=g[Vt],ct=Le,at=ct&&ct.prototype,jt={},St=function(Yt,Rt){var Lt=K(Yt);return Lt.view[gt](Rt*wt+Lt.byteOffset,!0)},fn=function(Yt,Rt,Lt){var ze=K(Yt);Ge&&(Lt=(Lt=ue(Lt))<0?0:Lt>255?255:Lt&255),ze.view[it](Rt*wt+ze.byteOffset,Lt,!0)},Xt=function(Yt,Rt){ne(Yt,Rt,{get:function(){return St(this,Rt)},set:function(Lt){return fn(this,Rt,Lt)},enumerable:!0})};ve?y&&(ct=Ke(function(Yt,Rt,Lt,ze){return m(Yt,ct,Vt),z(function(){return O(Rt)?Fe(Rt)?ze!==void 0?new Le(Rt,_(Lt,wt),ze):Lt!==void 0?new Le(Rt,_(Lt,wt)):new Le(Rt):pe(Rt)?ke(ct,Rt):W.call(ct,Rt):new Le(d(Rt))}(),Yt,ct)}),D&&D(ct,we),U(Z(Le),function(Yt){Yt in ct||v(ct,Yt,Le[Yt])}),ct.prototype=at):(ct=Ke(function(Yt,Rt,Lt,ze){m(Yt,ct,Vt);var rt=0,tt=0,de,ot,Et;if(!O(Rt))Et=d(Rt),ot=Et*wt,de=new Ee(ot);else if(Fe(Rt)){de=Rt,tt=_(Lt,wt);var Ht=Rt.byteLength;if(ze===void 0){if(Ht%wt||(ot=Ht-tt,ot<0))throw he(Je)}else if(ot=h(ze)*wt,ot+tt>Ht)throw he(Je);Et=ot/wt}else return pe(Rt)?ke(ct,Rt):W.call(ct,Rt);for(re(Yt,{buffer:de,byteOffset:tt,byteLength:ot,length:Et,view:new ce(de)});rt<Et;)Xt(Yt,rt++)}),D&&D(ct,we),at=ct.prototype=F(me)),at.constructor!==ct&&v(at,"constructor",ct),fe&&v(at,fe,Vt),jt[Vt]=ct,x({global:!0,forced:ct!=Le,sham:!ve},jt),Ie in ct||v(ct,Ie,wt),Ie in at||v(at,Ie,wt),L(Vt)}):oe.exports=function(){}},66077:function(oe,N,o){var x=o(85809),g=o(10195),A=o(42617),y=o(56272).NATIVE_ARRAY_BUFFER_VIEWS,M=x.ArrayBuffer,w=x.Int8Array;oe.exports=!y||!g(function(){w(1)})||!g(function(){new w(-1)})||!A(function(m){new w,new w(null),new w(1.5),new w(m)},!0)||g(function(){return new w(new M(2),1,void 0).length!==1})},51057:function(oe,N,o){var x=o(15826),g=o(16159),A=o(27510),y=o(32632),M=o(1577),w=o(56272).aTypedArrayConstructor;oe.exports=function(b){var v=x(b),h=arguments.length,d=h>1?arguments[1]:void 0,_=d!==void 0,p=A(v),S,k,O,F,D,Z;if(p!=null&&!y(p))for(D=p.call(v),Z=D.next,v=[];!(F=Z.call(D)).done;)v.push(F.value);for(_&&h>2&&(d=M(d,arguments[2],2)),k=g(v.length),O=new(w(this))(k),S=0;k>S;S++)O[S]=_?d(v[S],S):v[S];return O}},61241:function(oe){var N=0,o=Math.random();oe.exports=function(x){return"Symbol("+String(x===void 0?"":x)+")_"+(++N+o).toString(36)}},27757:function(oe,N,o){var x=o(3589);oe.exports=x&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},54003:function(oe,N,o){var x=o(62356);N.f=x},62356:function(oe,N,o){var x=o(85809),g=o(95780),A=o(36309),y=o(61241),M=o(3589),w=o(27757),m=g("wks"),b=x.Symbol,v=w?b:b&&b.withoutSetter||y;oe.exports=function(h){return A(m,h)||(M&&A(b,h)?m[h]=b[h]:m[h]=v("Symbol."+h)),m[h]}},25316:function(oe){oe.exports=`
|
||
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},21812:function(oe,N,o){"use strict";var x=o(1279),g=o(85809),A=o(97103),y=o(8142),M="ArrayBuffer",w=A[M],m=g[M];x({global:!0,forced:m!==w},{ArrayBuffer:w}),y(M)},97231:function(oe,N,o){"use strict";var x=o(1279),g=o(10195),A=o(97103),y=o(57406),M=o(31232),w=o(16159),m=o(77284),b=A.ArrayBuffer,v=A.DataView,h=b.prototype.slice,d=g(function(){return!new b(2).slice(1,void 0).byteLength});x({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:d},{slice:function(p,S){if(h!==void 0&&S===void 0)return h.call(y(this),p);for(var k=y(this).byteLength,O=M(p,k),F=M(S===void 0?k:S,k),D=new(m(this,b))(w(F-O)),Z=new v(this),W=new v(D),U=0;O<F;)W.setUint8(U++,Z.getUint8(O++));return D}})},85089:function(oe,N,o){"use strict";var x=o(1279),g=o(10195),A=o(97736),y=o(51087),M=o(15826),w=o(16159),m=o(79874),b=o(47354),v=o(34882),h=o(62356),d=o(75754),_=h("isConcatSpreadable"),p=9007199254740991,S="Maximum allowed index exceeded",k=d>=51||!g(function(){var Z=[];return Z[_]=!1,Z.concat()[0]!==Z}),O=v("concat"),F=function(Z){if(!y(Z))return!1;var W=Z[_];return W!==void 0?!!W:A(Z)},D=!k||!O;x({target:"Array",proto:!0,forced:D},{concat:function(W){var U=M(this),L=b(U,0),V=0,$,G,z,K,re;for($=-1,z=arguments.length;$<z;$++)if(re=$===-1?U:arguments[$],F(re)){if(K=w(re.length),V+K>p)throw TypeError(S);for(G=0;G<K;G++,V++)G in re&&m(L,V,re[G])}else{if(V>=p)throw TypeError(S);m(L,V++,re)}return L.length=V,L}})},47886:function(oe,N,o){var x=o(1279),g=o(47702),A=o(52530);x({target:"Array",proto:!0},{copyWithin:g}),A("copyWithin")},32121:function(oe,N,o){var x=o(1279),g=o(38206),A=o(52530);x({target:"Array",proto:!0},{fill:g}),A("fill")},11436:function(oe,N,o){"use strict";var x=o(1279),g=o(87514).filter,A=o(34882),y=o(33192),M=A("filter"),w=y("filter");x({target:"Array",proto:!0,forced:!M||!w},{filter:function(b){return g(this,b,arguments.length>1?arguments[1]:void 0)}})},27661:function(oe,N,o){"use strict";var x=o(1279),g=o(87514).findIndex,A=o(52530),y=o(33192),M="findIndex",w=!0,m=y(M);M in[]&&Array(1)[M](function(){w=!1}),x({target:"Array",proto:!0,forced:w||!m},{findIndex:function(v){return g(this,v,arguments.length>1?arguments[1]:void 0)}}),A(M)},56208:function(oe,N,o){"use strict";var x=o(1279),g=o(87514).find,A=o(52530),y=o(33192),M="find",w=!0,m=y(M);M in[]&&Array(1)[M](function(){w=!1}),x({target:"Array",proto:!0,forced:w||!m},{find:function(v){return g(this,v,arguments.length>1?arguments[1]:void 0)}}),A(M)},38278:function(oe,N,o){"use strict";var x=o(1279),g=o(44184),A=o(15826),y=o(16159),M=o(9710),w=o(47354);x({target:"Array",proto:!0},{flatMap:function(b){var v=A(this),h=y(v.length),d;return M(b),d=w(v,0),d.length=g(d,v,v,h,0,1,b,arguments.length>1?arguments[1]:void 0),d}})},77421:function(oe,N,o){"use strict";var x=o(1279),g=o(44184),A=o(15826),y=o(16159),M=o(11908),w=o(47354);x({target:"Array",proto:!0},{flat:function(){var b=arguments.length?arguments[0]:void 0,v=A(this),h=y(v.length),d=w(v,0);return d.length=g(d,v,v,h,0,b===void 0?1:M(b)),d}})},18189:function(oe,N,o){var x=o(1279),g=o(19763),A=o(42617),y=!A(function(M){Array.from(M)});x({target:"Array",stat:!0,forced:y},{from:g})},71892:function(oe,N,o){"use strict";var x=o(1279),g=o(83954).includes,A=o(52530),y=o(33192),M=y("indexOf",{ACCESSORS:!0,1:0});x({target:"Array",proto:!0,forced:!M},{includes:function(m){return g(this,m,arguments.length>1?arguments[1]:void 0)}}),A("includes")},64320:function(oe,N,o){"use strict";var x=o(1279),g=o(83954).indexOf,A=o(77847),y=o(33192),M=[].indexOf,w=!!M&&1/[1].indexOf(1,-0)<0,m=A("indexOf"),b=y("indexOf",{ACCESSORS:!0,1:0});x({target:"Array",proto:!0,forced:w||!m||!b},{indexOf:function(h){return w?M.apply(this,arguments)||0:g(this,h,arguments.length>1?arguments[1]:void 0)}})},29105:function(oe,N,o){"use strict";var x=o(98117),g=o(52530),A=o(81781),y=o(47014),M=o(97219),w="Array Iterator",m=y.set,b=y.getterFor(w);oe.exports=M(Array,"Array",function(v,h){m(this,{type:w,target:x(v),index:0,kind:h})},function(){var v=b(this),h=v.target,d=v.kind,_=v.index++;return!h||_>=h.length?(v.target=void 0,{value:void 0,done:!0}):d=="keys"?{value:_,done:!1}:d=="values"?{value:h[_],done:!1}:{value:[_,h[_]],done:!1}},"values"),A.Arguments=A.Array,g("keys"),g("values"),g("entries")},30502:function(oe,N,o){"use strict";var x=o(1279),g=o(88786),A=o(98117),y=o(77847),M=[].join,w=g!=Object,m=y("join",",");x({target:"Array",proto:!0,forced:w||!m},{join:function(v){return M.call(A(this),v===void 0?",":v)}})},26432:function(oe,N,o){var x=o(1279),g=o(23034);x({target:"Array",proto:!0,forced:g!==[].lastIndexOf},{lastIndexOf:g})},2981:function(oe,N,o){"use strict";var x=o(1279),g=o(87514).map,A=o(34882),y=o(33192),M=A("map"),w=y("map");x({target:"Array",proto:!0,forced:!M||!w},{map:function(b){return g(this,b,arguments.length>1?arguments[1]:void 0)}})},28539:function(oe,N,o){"use strict";var x=o(1279),g=o(10195),A=o(79874),y=g(function(){function M(){}return!(Array.of.call(M)instanceof M)});x({target:"Array",stat:!0,forced:y},{of:function(){for(var w=0,m=arguments.length,b=new(typeof this=="function"?this:Array)(m);m>w;)A(b,w,arguments[w++]);return b.length=m,b}})},87833:function(oe,N,o){"use strict";var x=o(1279),g=o(12923).right,A=o(77847),y=o(33192),M=A("reduceRight"),w=y("reduce",{1:0});x({target:"Array",proto:!0,forced:!M||!w},{reduceRight:function(b){return g(this,b,arguments.length,arguments.length>1?arguments[1]:void 0)}})},31857:function(oe,N,o){"use strict";var x=o(1279),g=o(12923).left,A=o(77847),y=o(33192),M=A("reduce"),w=y("reduce",{1:0});x({target:"Array",proto:!0,forced:!M||!w},{reduce:function(b){return g(this,b,arguments.length,arguments.length>1?arguments[1]:void 0)}})},21859:function(oe,N,o){"use strict";var x=o(1279),g=o(97736),A=[].reverse,y=[1,2];x({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return g(this)&&(this.length=this.length),A.call(this)}})},91140:function(oe,N,o){"use strict";var x=o(1279),g=o(51087),A=o(97736),y=o(31232),M=o(16159),w=o(98117),m=o(79874),b=o(62356),v=o(34882),h=o(33192),d=v("slice"),_=h("slice",{ACCESSORS:!0,0:0,1:2}),p=b("species"),S=[].slice,k=Math.max;x({target:"Array",proto:!0,forced:!d||!_},{slice:function(F,D){var Z=w(this),W=M(Z.length),U=y(F,W),L=y(D===void 0?W:D,W),V,$,G;if(A(Z)&&(V=Z.constructor,typeof V=="function"&&(V===Array||A(V.prototype))?V=void 0:g(V)&&(V=V[p],V===null&&(V=void 0)),V===Array||V===void 0))return S.call(Z,U,L);for($=new(V===void 0?Array:V)(k(L-U,0)),G=0;U<L;U++,G++)U in Z&&m($,G,Z[U]);return $.length=G,$}})},74895:function(oe,N,o){"use strict";var x=o(1279),g=o(9710),A=o(15826),y=o(10195),M=o(77847),w=[],m=w.sort,b=y(function(){w.sort(void 0)}),v=y(function(){w.sort(null)}),h=M("sort"),d=b||!v||!h;x({target:"Array",proto:!0,forced:d},{sort:function(p){return p===void 0?m.call(A(this)):m.call(A(this),g(p))}})},49637:function(oe,N,o){var x=o(8142);x("Array")},53718:function(oe,N,o){"use strict";var x=o(1279),g=o(31232),A=o(11908),y=o(16159),M=o(15826),w=o(47354),m=o(79874),b=o(34882),v=o(33192),h=b("splice"),d=v("splice",{ACCESSORS:!0,0:0,1:2}),_=Math.max,p=Math.min,S=9007199254740991,k="Maximum allowed length exceeded";x({target:"Array",proto:!0,forced:!h||!d},{splice:function(F,D){var Z=M(this),W=y(Z.length),U=g(F,W),L=arguments.length,V,$,G,z,K,re;if(L===0?V=$=0:L===1?(V=0,$=W-U):(V=L-2,$=p(_(A(D),0),W-U)),W+V-$>S)throw TypeError(k);for(G=w(Z,$),z=0;z<$;z++)K=U+z,K in Z&&m(G,z,Z[K]);if(G.length=$,V<$){for(z=U;z<W-$;z++)K=z+$,re=z+V,K in Z?Z[re]=Z[K]:delete Z[re];for(z=W;z>W-$+V;z--)delete Z[z-1]}else if(V>$)for(z=W-$;z>U;z--)K=z+$-1,re=z+V-1,K in Z?Z[re]=Z[K]:delete Z[re];for(z=0;z<V;z++)Z[z+U]=arguments[z+2];return Z.length=W-$+V,G}})},96858:function(oe,N,o){var x=o(52530);x("flatMap")},6632:function(oe,N,o){var x=o(52530);x("flat")},15009:function(oe,N,o){var x=o(24360),g=o(8626),A=o(62356),y=A("toPrimitive"),M=Date.prototype;y in M||x(M,y,g)},83264:function(oe,N,o){"use strict";var x=o(51087),g=o(93196),A=o(55837),y=o(62356),M=y("hasInstance"),w=Function.prototype;M in w||g.f(w,M,{value:function(m){if(typeof this!="function"||!x(m))return!1;if(!x(this.prototype))return m instanceof this;for(;m=A(m);)if(this.prototype===m)return!0;return!1}})},19976:function(oe,N,o){var x=o(49359),g=o(93196).f,A=Function.prototype,y=A.toString,M=/^\s*function ([^ (]*)/,w="name";x&&!(w in A)&&g(A,w,{configurable:!0,get:function(){try{return y.call(this).match(M)[1]}catch(m){return""}}})},76945:function(oe,N,o){var x=o(1279),g=o(85809);x({global:!0},{globalThis:g})},88756:function(oe,N,o){var x=o(85809),g=o(32209);g(x.JSON,"JSON",!0)},70681:function(oe,N,o){"use strict";var x=o(26807),g=o(18812);oe.exports=x("Map",function(A){return function(){return A(this,arguments.length?arguments[0]:void 0)}},g)},82438:function(oe,N,o){var x=o(1279),g=o(43648),A=Math.acosh,y=Math.log,M=Math.sqrt,w=Math.LN2,m=!A||Math.floor(A(Number.MAX_VALUE))!=710||A(Infinity)!=Infinity;x({target:"Math",stat:!0,forced:m},{acosh:function(v){return(v=+v)<1?NaN:v>9490626562425156e-8?y(v)+w:g(v-1+M(v-1)*M(v+1))}})},7465:function(oe,N,o){var x=o(1279),g=Math.asinh,A=Math.log,y=Math.sqrt;function M(w){return!isFinite(w=+w)||w==0?w:w<0?-M(-w):A(w+y(w*w+1))}x({target:"Math",stat:!0,forced:!(g&&1/g(0)>0)},{asinh:M})},73498:function(oe,N,o){var x=o(1279),g=Math.atanh,A=Math.log;x({target:"Math",stat:!0,forced:!(g&&1/g(-0)<0)},{atanh:function(M){return(M=+M)==0?M:A((1+M)/(1-M))/2}})},81298:function(oe,N,o){var x=o(1279),g=o(80004),A=Math.abs,y=Math.pow;x({target:"Math",stat:!0},{cbrt:function(w){return g(w=+w)*y(A(w),1/3)}})},49348:function(oe,N,o){var x=o(1279),g=Math.floor,A=Math.log,y=Math.LOG2E;x({target:"Math",stat:!0},{clz32:function(w){return(w>>>=0)?31-g(A(w+.5)*y):32}})},33372:function(oe,N,o){var x=o(1279),g=o(50831),A=Math.cosh,y=Math.abs,M=Math.E;x({target:"Math",stat:!0,forced:!A||A(710)===Infinity},{cosh:function(m){var b=g(y(m)-1)+1;return(b+1/(b*M*M))*(M/2)}})},12527:function(oe,N,o){var x=o(1279),g=o(50831);x({target:"Math",stat:!0,forced:g!=Math.expm1},{expm1:g})},84800:function(oe,N,o){var x=o(1279),g=o(83256);x({target:"Math",stat:!0},{fround:g})},67895:function(oe,N,o){var x=o(1279),g=Math.hypot,A=Math.abs,y=Math.sqrt,M=!!g&&g(Infinity,NaN)!==Infinity;x({target:"Math",stat:!0,forced:M},{hypot:function(m,b){for(var v=0,h=0,d=arguments.length,_=0,p,S;h<d;)p=A(arguments[h++]),_<p?(S=_/p,v=v*S*S+1,_=p):p>0?(S=p/_,v+=S*S):v+=p;return _===Infinity?Infinity:_*y(v)}})},80560:function(oe,N,o){var x=o(1279),g=o(10195),A=Math.imul,y=g(function(){return A(4294967295,5)!=-5||A.length!=2});x({target:"Math",stat:!0,forced:y},{imul:function(w,m){var b=65535,v=+w,h=+m,d=b&v,_=b&h;return 0|d*_+((b&v>>>16)*_+d*(b&h>>>16)<<16>>>0)}})},4769:function(oe,N,o){var x=o(1279),g=Math.log,A=Math.LOG10E;x({target:"Math",stat:!0},{log10:function(M){return g(M)*A}})},81213:function(oe,N,o){var x=o(1279),g=o(43648);x({target:"Math",stat:!0},{log1p:g})},29556:function(oe,N,o){var x=o(1279),g=Math.log,A=Math.LN2;x({target:"Math",stat:!0},{log2:function(M){return g(M)/A}})},23152:function(oe,N,o){var x=o(1279),g=o(80004);x({target:"Math",stat:!0},{sign:g})},46635:function(oe,N,o){var x=o(1279),g=o(10195),A=o(50831),y=Math.abs,M=Math.exp,w=Math.E,m=g(function(){return Math.sinh(-2e-17)!=-2e-17});x({target:"Math",stat:!0,forced:m},{sinh:function(v){return y(v=+v)<1?(A(v)-A(-v))/2:(M(v-1)-M(-v-1))*(w/2)}})},89455:function(oe,N,o){var x=o(1279),g=o(50831),A=Math.exp;x({target:"Math",stat:!0},{tanh:function(M){var w=g(M=+M),m=g(-M);return w==Infinity?1:m==Infinity?-1:(w-m)/(A(M)+A(-M))}})},13484:function(oe,N,o){var x=o(32209);x(Math,"Math",!0)},50327:function(oe,N,o){var x=o(1279),g=Math.ceil,A=Math.floor;x({target:"Math",stat:!0},{trunc:function(M){return(M>0?A:g)(M)}})},90925:function(oe,N,o){"use strict";var x=o(49359),g=o(85809),A=o(79864),y=o(867),M=o(36309),w=o(11748),m=o(72589),b=o(44782),v=o(10195),h=o(19943),d=o(51209).f,_=o(1703).f,p=o(93196).f,S=o(51832).trim,k="Number",O=g[k],F=O.prototype,D=w(h(F))==k,Z=function($){var G=b($,!1),z,K,re,ne,Q,ue,he,Ee;if(typeof G=="string"&&G.length>2){if(G=S(G),z=G.charCodeAt(0),z===43||z===45){if(K=G.charCodeAt(2),K===88||K===120)return NaN}else if(z===48){switch(G.charCodeAt(1)){case 66:case 98:re=2,ne=49;break;case 79:case 111:re=8,ne=55;break;default:return+G}for(Q=G.slice(2),ue=Q.length,he=0;he<ue;he++)if(Ee=Q.charCodeAt(he),Ee<48||Ee>ne)return NaN;return parseInt(Q,re)}}return+G};if(A(k,!O(" 0o1")||!O("0b1")||O("+0x1"))){for(var W=function(G){var z=arguments.length<1?0:G,K=this;return K instanceof W&&(D?v(function(){F.valueOf.call(K)}):w(K)!=k)?m(new O(Z(z)),K,W):Z(z)},U=x?d(O):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),L=0,V;U.length>L;L++)M(O,V=U[L])&&!M(W,V)&&p(W,V,_(O,V));W.prototype=F,F.constructor=W,y(g,k,W)}},77679:function(oe,N,o){var x=o(1279);x({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},35417:function(oe,N,o){var x=o(1279),g=o(14854);x({target:"Number",stat:!0},{isFinite:g})},10581:function(oe,N,o){var x=o(1279),g=o(70456);x({target:"Number",stat:!0},{isInteger:g})},50919:function(oe,N,o){var x=o(1279);x({target:"Number",stat:!0},{isNaN:function(A){return A!=A}})},46735:function(oe,N,o){var x=o(1279),g=o(70456),A=Math.abs;x({target:"Number",stat:!0},{isSafeInteger:function(M){return g(M)&&A(M)<=9007199254740991}})},31413:function(oe,N,o){var x=o(1279);x({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},36401:function(oe,N,o){var x=o(1279);x({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},58460:function(oe,N,o){var x=o(1279),g=o(15539);x({target:"Number",stat:!0,forced:Number.parseFloat!=g},{parseFloat:g})},62866:function(oe,N,o){var x=o(1279),g=o(59114);x({target:"Number",stat:!0,forced:Number.parseInt!=g},{parseInt:g})},98074:function(oe,N,o){"use strict";var x=o(1279),g=o(11908),A=o(79602),y=o(73160),M=o(10195),w=1 .toFixed,m=Math.floor,b=function(d,_,p){return _===0?p:_%2==1?b(d,_-1,p*d):b(d*d,_/2,p)},v=function(d){for(var _=0,p=d;p>=4096;)_+=12,p/=4096;for(;p>=2;)_+=1,p/=2;return _},h=w&&(8e-5 .toFixed(3)!=="0.000"||.9 .toFixed(0)!=="1"||1.255 .toFixed(2)!=="1.25"||1000000000000000100 .toFixed(0)!=="1000000000000000128")||!M(function(){w.call({})});x({target:"Number",proto:!0,forced:h},{toFixed:function(_){var p=A(this),S=g(_),k=[0,0,0,0,0,0],O="",F="0",D,Z,W,U,L=function(G,z){for(var K=-1,re=z;++K<6;)re+=G*k[K],k[K]=re%1e7,re=m(re/1e7)},V=function(G){for(var z=6,K=0;--z>=0;)K+=k[z],k[z]=m(K/G),K=K%G*1e7},$=function(){for(var G=6,z="";--G>=0;)if(z!==""||G===0||k[G]!==0){var K=String(k[G]);z=z===""?K:z+y.call("0",7-K.length)+K}return z};if(S<0||S>20)throw RangeError("Incorrect fraction digits");if(p!=p)return"NaN";if(p<=-1e21||p>=1e21)return String(p);if(p<0&&(O="-",p=-p),p>1e-21)if(D=v(p*b(2,69,1))-69,Z=D<0?p*b(2,-D,1):p/b(2,D,1),Z*=4503599627370496,D=52-D,D>0){for(L(0,Z),W=S;W>=7;)L(1e7,0),W-=7;for(L(b(10,W,1),0),W=D-1;W>=23;)V(1<<23),W-=23;V(1<<W),L(1,1),V(2),F=$()}else L(0,Z),L(1<<-D,0),F=$()+y.call("0",S);return S>0?(U=F.length,F=O+(U<=S?"0."+y.call("0",S-U)+F:F.slice(0,U-S)+"."+F.slice(U-S))):F=O+F,F}})},31113:function(oe,N,o){var x=o(1279),g=o(76571);x({target:"Object",stat:!0,forced:Object.assign!==g},{assign:g})},24296:function(oe,N,o){"use strict";var x=o(1279),g=o(49359),A=o(74061),y=o(15826),M=o(9710),w=o(93196);g&&x({target:"Object",proto:!0,forced:A},{__defineGetter__:function(b,v){w.f(y(this),b,{get:M(v),enumerable:!0,configurable:!0})}})},17821:function(oe,N,o){"use strict";var x=o(1279),g=o(49359),A=o(74061),y=o(15826),M=o(9710),w=o(93196);g&&x({target:"Object",proto:!0,forced:A},{__defineSetter__:function(b,v){w.f(y(this),b,{set:M(v),enumerable:!0,configurable:!0})}})},15083:function(oe,N,o){var x=o(1279),g=o(62270).entries;x({target:"Object",stat:!0},{entries:function(y){return g(y)}})},54827:function(oe,N,o){var x=o(1279),g=o(52136),A=o(10195),y=o(51087),M=o(5262).onFreeze,w=Object.freeze,m=A(function(){w(1)});x({target:"Object",stat:!0,forced:m,sham:!g},{freeze:function(v){return w&&y(v)?w(M(v)):v}})},96212:function(oe,N,o){var x=o(1279),g=o(49424),A=o(79874);x({target:"Object",stat:!0},{fromEntries:function(M){var w={};return g(M,function(m,b){A(w,m,b)},void 0,!0),w}})},16031:function(oe,N,o){var x=o(1279),g=o(10195),A=o(98117),y=o(1703).f,M=o(49359),w=g(function(){y(1)}),m=!M||w;x({target:"Object",stat:!0,forced:m,sham:!M},{getOwnPropertyDescriptor:function(v,h){return y(A(v),h)}})},18745:function(oe,N,o){var x=o(1279),g=o(49359),A=o(36523),y=o(98117),M=o(1703),w=o(79874);x({target:"Object",stat:!0,sham:!g},{getOwnPropertyDescriptors:function(b){for(var v=y(b),h=M.f,d=A(v),_={},p=0,S,k;d.length>p;)k=h(v,S=d[p++]),k!==void 0&&w(_,S,k);return _}})},94745:function(oe,N,o){var x=o(1279),g=o(10195),A=o(57052).f,y=g(function(){return!Object.getOwnPropertyNames(1)});x({target:"Object",stat:!0,forced:y},{getOwnPropertyNames:A})},40591:function(oe,N,o){var x=o(1279),g=o(10195),A=o(15826),y=o(55837),M=o(33174),w=g(function(){y(1)});x({target:"Object",stat:!0,forced:w,sham:!M},{getPrototypeOf:function(b){return y(A(b))}})},21191:function(oe,N,o){var x=o(1279),g=o(10195),A=o(51087),y=Object.isExtensible,M=g(function(){y(1)});x({target:"Object",stat:!0,forced:M},{isExtensible:function(m){return A(m)?y?y(m):!0:!1}})},44415:function(oe,N,o){var x=o(1279),g=o(10195),A=o(51087),y=Object.isFrozen,M=g(function(){y(1)});x({target:"Object",stat:!0,forced:M},{isFrozen:function(m){return A(m)?y?y(m):!1:!0}})},523:function(oe,N,o){var x=o(1279),g=o(10195),A=o(51087),y=Object.isSealed,M=g(function(){y(1)});x({target:"Object",stat:!0,forced:M},{isSealed:function(m){return A(m)?y?y(m):!1:!0}})},94142:function(oe,N,o){var x=o(1279),g=o(22096);x({target:"Object",stat:!0},{is:g})},9394:function(oe,N,o){var x=o(1279),g=o(15826),A=o(30976),y=o(10195),M=y(function(){A(1)});x({target:"Object",stat:!0,forced:M},{keys:function(m){return A(g(m))}})},95372:function(oe,N,o){"use strict";var x=o(1279),g=o(49359),A=o(74061),y=o(15826),M=o(44782),w=o(55837),m=o(1703).f;g&&x({target:"Object",proto:!0,forced:A},{__lookupGetter__:function(v){var h=y(this),d=M(v,!0),_;do if(_=m(h,d))return _.get;while(h=w(h))}})},87217:function(oe,N,o){"use strict";var x=o(1279),g=o(49359),A=o(74061),y=o(15826),M=o(44782),w=o(55837),m=o(1703).f;g&&x({target:"Object",proto:!0,forced:A},{__lookupSetter__:function(v){var h=y(this),d=M(v,!0),_;do if(_=m(h,d))return _.set;while(h=w(h))}})},83520:function(oe,N,o){var x=o(1279),g=o(51087),A=o(5262).onFreeze,y=o(52136),M=o(10195),w=Object.preventExtensions,m=M(function(){w(1)});x({target:"Object",stat:!0,forced:m,sham:!y},{preventExtensions:function(v){return w&&g(v)?w(A(v)):v}})},73293:function(oe,N,o){var x=o(1279),g=o(51087),A=o(5262).onFreeze,y=o(52136),M=o(10195),w=Object.seal,m=M(function(){w(1)});x({target:"Object",stat:!0,forced:m,sham:!y},{seal:function(v){return w&&g(v)?w(A(v)):v}})},13563:function(oe,N,o){var x=o(44158),g=o(867),A=o(99545);x||g(Object.prototype,"toString",A,{unsafe:!0})},34218:function(oe,N,o){var x=o(1279),g=o(62270).values;x({target:"Object",stat:!0},{values:function(y){return g(y)}})},70486:function(oe,N,o){var x=o(1279),g=o(15539);x({global:!0,forced:parseFloat!=g},{parseFloat:g})},67060:function(oe,N,o){var x=o(1279),g=o(59114);x({global:!0,forced:parseInt!=g},{parseInt:g})},39024:function(oe,N,o){"use strict";var x=o(1279),g=o(9710),A=o(45467),y=o(62395),M=o(49424);x({target:"Promise",stat:!0},{allSettled:function(m){var b=this,v=A.f(b),h=v.resolve,d=v.reject,_=y(function(){var p=g(b.resolve),S=[],k=0,O=1;M(m,function(F){var D=k++,Z=!1;S.push(void 0),O++,p.call(b,F).then(function(W){Z||(Z=!0,S[D]={status:"fulfilled",value:W},--O||h(S))},function(W){Z||(Z=!0,S[D]={status:"rejected",reason:W},--O||h(S))})}),--O||h(S)});return _.error&&d(_.value),v.promise}})},49799:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(77707),y=o(10195),M=o(3105),w=o(77284),m=o(54557),b=o(867),v=!!A&&y(function(){A.prototype.finally.call({then:function(){}},function(){})});x({target:"Promise",proto:!0,real:!0,forced:v},{finally:function(h){var d=w(this,M("Promise")),_=typeof h=="function";return this.then(_?function(p){return m(d,h()).then(function(){return p})}:h,_?function(p){return m(d,h()).then(function(){throw p})}:h)}}),!g&&typeof A=="function"&&!A.prototype.finally&&b(A.prototype,"finally",M("Promise").prototype.finally)},9313:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(85809),y=o(3105),M=o(77707),w=o(867),m=o(55112),b=o(32209),v=o(8142),h=o(51087),d=o(9710),_=o(60904),p=o(11748),S=o(91949),k=o(49424),O=o(42617),F=o(77284),D=o(27151).set,Z=o(66229),W=o(54557),U=o(621),L=o(45467),V=o(62395),$=o(47014),G=o(79864),z=o(62356),K=o(75754),re=z("species"),ne="Promise",Q=$.get,ue=$.set,he=$.getterFor(ne),Ee=M,ce=A.TypeError,ve=A.document,fe=A.process,we=y("fetch"),me=L.f,Pe=me,pe=p(fe)=="process",Ie=!!(ve&&ve.createEvent&&A.dispatchEvent),Je="unhandledrejection",ke="rejectionhandled",De=0,Fe=1,Qe=2,qe=1,et=2,dt,Ke,Ge,wt,Vt=G(ne,function(){var Rt=S(Ee)!==String(Ee);if(!Rt&&(K===66||!pe&&typeof PromiseRejectionEvent!="function")||g&&!Ee.prototype.finally)return!0;if(K>=51&&/native code/.test(Ee))return!1;var Lt=Ee.resolve(1),ze=function(tt){tt(function(){},function(){})},rt=Lt.constructor={};return rt[re]=ze,!(Lt.then(function(){})instanceof ze)}),gt=Vt||!O(function(Rt){Ee.all(Rt).catch(function(){})}),it=function(Rt){var Lt;return h(Rt)&&typeof(Lt=Rt.then)=="function"?Lt:!1},Le=function(Rt,Lt,ze){if(!Lt.notified){Lt.notified=!0;var rt=Lt.reactions;Z(function(){for(var tt=Lt.value,de=Lt.state==Fe,ot=0;rt.length>ot;){var Et=rt[ot++],Ht=de?Et.ok:Et.fail,Jt=Et.resolve,Qt=Et.reject,an=Et.domain,Un,qt,rn;try{Ht?(de||(Lt.rejection===et&&St(Rt,Lt),Lt.rejection=qe),Ht===!0?Un=tt:(an&&an.enter(),Un=Ht(tt),an&&(an.exit(),rn=!0)),Un===Et.promise?Qt(ce("Promise-chain cycle")):(qt=it(Un))?qt.call(Un,Jt,Qt):Jt(Un)):Qt(tt)}catch(cn){an&&!rn&&an.exit(),Qt(cn)}}Lt.reactions=[],Lt.notified=!1,ze&&!Lt.rejection&&at(Rt,Lt)})}},ct=function(Rt,Lt,ze){var rt,tt;Ie?(rt=ve.createEvent("Event"),rt.promise=Lt,rt.reason=ze,rt.initEvent(Rt,!1,!0),A.dispatchEvent(rt)):rt={promise:Lt,reason:ze},(tt=A["on"+Rt])?tt(rt):Rt===Je&&U("Unhandled promise rejection",ze)},at=function(Rt,Lt){D.call(A,function(){var ze=Lt.value,rt=jt(Lt),tt;if(rt&&(tt=V(function(){pe?fe.emit("unhandledRejection",ze,Rt):ct(Je,Rt,ze)}),Lt.rejection=pe||jt(Lt)?et:qe,tt.error))throw tt.value})},jt=function(Rt){return Rt.rejection!==qe&&!Rt.parent},St=function(Rt,Lt){D.call(A,function(){pe?fe.emit("rejectionHandled",Rt):ct(ke,Rt,Lt.value)})},fn=function(Rt,Lt,ze,rt){return function(tt){Rt(Lt,ze,tt,rt)}},Xt=function(Rt,Lt,ze,rt){Lt.done||(Lt.done=!0,rt&&(Lt=rt),Lt.value=ze,Lt.state=Qe,Le(Rt,Lt,!0))},Yt=function(Rt,Lt,ze,rt){if(!Lt.done){Lt.done=!0,rt&&(Lt=rt);try{if(Rt===ze)throw ce("Promise can't be resolved itself");var tt=it(ze);tt?Z(function(){var de={done:!1};try{tt.call(ze,fn(Yt,Rt,de,Lt),fn(Xt,Rt,de,Lt))}catch(ot){Xt(Rt,de,ot,Lt)}}):(Lt.value=ze,Lt.state=Fe,Le(Rt,Lt,!1))}catch(de){Xt(Rt,{done:!1},de,Lt)}}};Vt&&(Ee=function(Lt){_(this,Ee,ne),d(Lt),dt.call(this);var ze=Q(this);try{Lt(fn(Yt,this,ze),fn(Xt,this,ze))}catch(rt){Xt(this,ze,rt)}},dt=function(Lt){ue(this,{type:ne,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:De,value:void 0})},dt.prototype=m(Ee.prototype,{then:function(Lt,ze){var rt=he(this),tt=me(F(this,Ee));return tt.ok=typeof Lt=="function"?Lt:!0,tt.fail=typeof ze=="function"&&ze,tt.domain=pe?fe.domain:void 0,rt.parent=!0,rt.reactions.push(tt),rt.state!=De&&Le(this,rt,!1),tt.promise},catch:function(Rt){return this.then(void 0,Rt)}}),Ke=function(){var Rt=new dt,Lt=Q(Rt);this.promise=Rt,this.resolve=fn(Yt,Rt,Lt),this.reject=fn(Xt,Rt,Lt)},L.f=me=function(Rt){return Rt===Ee||Rt===Ge?new Ke(Rt):Pe(Rt)},!g&&typeof M=="function"&&(wt=M.prototype.then,w(M.prototype,"then",function(Lt,ze){var rt=this;return new Ee(function(tt,de){wt.call(rt,tt,de)}).then(Lt,ze)},{unsafe:!0}),typeof we=="function"&&x({global:!0,enumerable:!0,forced:!0},{fetch:function(Lt){return W(Ee,we.apply(A,arguments))}}))),x({global:!0,wrap:!0,forced:Vt},{Promise:Ee}),b(Ee,ne,!1,!0),v(ne),Ge=y(ne),x({target:ne,stat:!0,forced:Vt},{reject:function(Lt){var ze=me(this);return ze.reject.call(void 0,Lt),ze.promise}}),x({target:ne,stat:!0,forced:g||Vt},{resolve:function(Lt){return W(g&&this===Ge?Ee:this,Lt)}}),x({target:ne,stat:!0,forced:gt},{all:function(Lt){var ze=this,rt=me(ze),tt=rt.resolve,de=rt.reject,ot=V(function(){var Et=d(ze.resolve),Ht=[],Jt=0,Qt=1;k(Lt,function(an){var Un=Jt++,qt=!1;Ht.push(void 0),Qt++,Et.call(ze,an).then(function(rn){qt||(qt=!0,Ht[Un]=rn,--Qt||tt(Ht))},de)}),--Qt||tt(Ht)});return ot.error&&de(ot.value),rt.promise},race:function(Lt){var ze=this,rt=me(ze),tt=rt.reject,de=V(function(){var ot=d(ze.resolve);k(Lt,function(Et){ot.call(ze,Et).then(rt.resolve,tt)})});return de.error&&tt(de.value),rt.promise}})},19203:function(oe,N,o){var x=o(1279),g=o(3105),A=o(9710),y=o(57406),M=o(10195),w=g("Reflect","apply"),m=Function.apply,b=!M(function(){w(function(){})});x({target:"Reflect",stat:!0,forced:b},{apply:function(h,d,_){return A(h),y(_),w?w(h,d,_):m.call(h,d,_)}})},38357:function(oe,N,o){var x=o(1279),g=o(3105),A=o(9710),y=o(57406),M=o(51087),w=o(19943),m=o(20911),b=o(10195),v=g("Reflect","construct"),h=b(function(){function p(){}return!(v(function(){},[],p)instanceof p)}),d=!b(function(){v(function(){})}),_=h||d;x({target:"Reflect",stat:!0,forced:_,sham:_},{construct:function(S,k){A(S),y(k);var O=arguments.length<3?S:A(arguments[2]);if(d&&!h)return v(S,k,O);if(S==O){switch(k.length){case 0:return new S;case 1:return new S(k[0]);case 2:return new S(k[0],k[1]);case 3:return new S(k[0],k[1],k[2]);case 4:return new S(k[0],k[1],k[2],k[3])}var F=[null];return F.push.apply(F,k),new(m.apply(S,F))}var D=O.prototype,Z=w(M(D)?D:Object.prototype),W=Function.apply.call(S,Z,k);return M(W)?W:Z}})},51499:function(oe,N,o){var x=o(1279),g=o(49359),A=o(57406),y=o(44782),M=o(93196),w=o(10195),m=w(function(){Reflect.defineProperty(M.f({},1,{value:1}),1,{value:2})});x({target:"Reflect",stat:!0,forced:m,sham:!g},{defineProperty:function(v,h,d){A(v);var _=y(h,!0);A(d);try{return M.f(v,_,d),!0}catch(p){return!1}}})},7979:function(oe,N,o){var x=o(1279),g=o(57406),A=o(1703).f;x({target:"Reflect",stat:!0},{deleteProperty:function(M,w){var m=A(g(M),w);return m&&!m.configurable?!1:delete M[w]}})},87357:function(oe,N,o){var x=o(1279),g=o(49359),A=o(57406),y=o(1703);x({target:"Reflect",stat:!0,sham:!g},{getOwnPropertyDescriptor:function(w,m){return y.f(A(w),m)}})},70219:function(oe,N,o){var x=o(1279),g=o(57406),A=o(55837),y=o(33174);x({target:"Reflect",stat:!0,sham:!y},{getPrototypeOf:function(w){return A(g(w))}})},1498:function(oe,N,o){var x=o(1279),g=o(51087),A=o(57406),y=o(36309),M=o(1703),w=o(55837);function m(b,v){var h=arguments.length<3?b:arguments[2],d,_;if(A(b)===h)return b[v];if(d=M.f(b,v))return y(d,"value")?d.value:d.get===void 0?void 0:d.get.call(h);if(g(_=w(b)))return m(_,v,h)}x({target:"Reflect",stat:!0},{get:m})},78129:function(oe,N,o){var x=o(1279);x({target:"Reflect",stat:!0},{has:function(A,y){return y in A}})},12482:function(oe,N,o){var x=o(1279),g=o(57406),A=Object.isExtensible;x({target:"Reflect",stat:!0},{isExtensible:function(M){return g(M),A?A(M):!0}})},25889:function(oe,N,o){var x=o(1279),g=o(36523);x({target:"Reflect",stat:!0},{ownKeys:g})},2761:function(oe,N,o){var x=o(1279),g=o(3105),A=o(57406),y=o(52136);x({target:"Reflect",stat:!0,sham:!y},{preventExtensions:function(w){A(w);try{var m=g("Object","preventExtensions");return m&&m(w),!0}catch(b){return!1}}})},17942:function(oe,N,o){var x=o(1279),g=o(57406),A=o(23745),y=o(78738);y&&x({target:"Reflect",stat:!0},{setPrototypeOf:function(w,m){g(w),A(m);try{return y(w,m),!0}catch(b){return!1}}})},94967:function(oe,N,o){var x=o(1279),g=o(57406),A=o(51087),y=o(36309),M=o(10195),w=o(93196),m=o(1703),b=o(55837),v=o(72122);function h(_,p,S){var k=arguments.length<4?_:arguments[3],O=m.f(g(_),p),F,D;if(!O){if(A(D=b(_)))return h(D,p,S,k);O=v(0)}if(y(O,"value")){if(O.writable===!1||!A(k))return!1;if(F=m.f(k,p)){if(F.get||F.set||F.writable===!1)return!1;F.value=S,w.f(k,p,F)}else w.f(k,p,v(0,S));return!0}return O.set===void 0?!1:(O.set.call(k,S),!0)}var d=M(function(){var _=w.f({},"a",{configurable:!0});return Reflect.set(b(_),"a",1,_)!==!1});x({target:"Reflect",stat:!0,forced:d},{set:h})},57474:function(oe,N,o){var x=o(49359),g=o(85809),A=o(79864),y=o(72589),M=o(93196).f,w=o(51209).f,m=o(16148),b=o(15025),v=o(59054),h=o(867),d=o(10195),_=o(47014).set,p=o(8142),S=o(62356),k=S("match"),O=g.RegExp,F=O.prototype,D=/a/g,Z=/a/g,W=new O(D)!==D,U=v.UNSUPPORTED_Y,L=x&&A("RegExp",!W||U||d(function(){return Z[k]=!1,O(D)!=D||O(Z)==Z||O(D,"i")!="/a/i"}));if(L){for(var V=function(re,ne){var Q=this instanceof V,ue=m(re),he=ne===void 0,Ee;if(!Q&&ue&&re.constructor===V&&he)return re;W?ue&&!he&&(re=re.source):re instanceof V&&(he&&(ne=b.call(re)),re=re.source),U&&(Ee=!!ne&&ne.indexOf("y")>-1,Ee&&(ne=ne.replace(/y/g,"")));var ce=y(W?new O(re,ne):O(re,ne),Q?this:F,V);return U&&Ee&&_(ce,{sticky:Ee}),ce},$=function(K){K in V||M(V,K,{configurable:!0,get:function(){return O[K]},set:function(re){O[K]=re}})},G=w(O),z=0;G.length>z;)$(G[z++]);F.constructor=V,V.prototype=F,h(g,"RegExp",V)}p("RegExp")},8960:function(oe,N,o){"use strict";var x=o(1279),g=o(63768);x({target:"RegExp",proto:!0,forced:/./.exec!==g},{exec:g})},48015:function(oe,N,o){var x=o(49359),g=o(93196),A=o(15025),y=o(59054).UNSUPPORTED_Y;x&&(/./g.flags!="g"||y)&&g.f(RegExp.prototype,"flags",{configurable:!0,get:A})},51014:function(oe,N,o){"use strict";var x=o(867),g=o(57406),A=o(10195),y=o(15025),M="toString",w=RegExp.prototype,m=w[M],b=A(function(){return m.call({source:"a",flags:"b"})!="/a/b"}),v=m.name!=M;(b||v)&&x(RegExp.prototype,M,function(){var d=g(this),_=String(d.source),p=d.flags,S=String(p===void 0&&d instanceof RegExp&&!("flags"in w)?y.call(d):p);return"/"+_+"/"+S},{unsafe:!0})},23606:function(oe,N,o){"use strict";var x=o(26807),g=o(18812);oe.exports=x("Set",function(A){return function(){return A(this,arguments.length?arguments[0]:void 0)}},g)},10371:function(oe,N,o){"use strict";var x=o(1279),g=o(77894),A=o(33605);x({target:"String",proto:!0,forced:A("anchor")},{anchor:function(M){return g(this,"a","name",M)}})},84826:function(oe,N,o){"use strict";var x=o(1279),g=o(77894),A=o(33605);x({target:"String",proto:!0,forced:A("big")},{big:function(){return g(this,"big","","")}})},9224:function(oe,N,o){"use strict";var x=o(1279),g=o(77894),A=o(33605);x({target:"String",proto:!0,forced:A("blink")},{blink:function(){return g(this,"blink","","")}})},48825:function(oe,N,o){"use strict";var x=o(1279),g=o(77894),A=o(33605);x({target:"String",proto:!0,forced:A("bold")},{bold:function(){return g(this,"b","","")}})},29768:function(oe,N,o){"use strict";var x=o(1279),g=o(20407).codeAt;x({target:"String",proto:!0},{codePointAt:function(y){return g(this,y)}})},98519:function(oe,N,o){"use strict";var x=o(1279),g=o(1703).f,A=o(16159),y=o(37955),M=o(4288),w=o(51527),m=o(23893),b="".endsWith,v=Math.min,h=w("endsWith"),d=!m&&!h&&!!function(){var _=g(String.prototype,"endsWith");return _&&!_.writable}();x({target:"String",proto:!0,forced:!d&&!h},{endsWith:function(p){var S=String(M(this));y(p);var k=arguments.length>1?arguments[1]:void 0,O=A(S.length),F=k===void 0?O:v(A(k),O),D=String(p);return b?b.call(S,D,F):S.slice(F-D.length,F)===D}})},14104:function(oe,N,o){"use strict";var x=o(1279),g=o(77894),A=o(33605);x({target:"String",proto:!0,forced:A("fixed")},{fixed:function(){return g(this,"tt","","")}})},90526:function(oe,N,o){"use strict";var x=o(1279),g=o(77894),A=o(33605);x({target:"String",proto:!0,forced:A("fontcolor")},{fontcolor:function(M){return g(this,"font","color",M)}})},11034:function(oe,N,o){"use strict";var x=o(1279),g=o(77894),A=o(33605);x({target:"String",proto:!0,forced:A("fontsize")},{fontsize:function(M){return g(this,"font","size",M)}})},74954:function(oe,N,o){var x=o(1279),g=o(31232),A=String.fromCharCode,y=String.fromCodePoint,M=!!y&&y.length!=1;x({target:"String",stat:!0,forced:M},{fromCodePoint:function(m){for(var b=[],v=arguments.length,h=0,d;v>h;){if(d=+arguments[h++],g(d,1114111)!==d)throw RangeError(d+" is not a valid code point");b.push(d<65536?A(d):A(((d-=65536)>>10)+55296,d%1024+56320))}return b.join("")}})},79995:function(oe,N,o){"use strict";var x=o(1279),g=o(37955),A=o(4288),y=o(51527);x({target:"String",proto:!0,forced:!y("includes")},{includes:function(w){return!!~String(A(this)).indexOf(g(w),arguments.length>1?arguments[1]:void 0)}})},99812:function(oe,N,o){"use strict";var x=o(1279),g=o(77894),A=o(33605);x({target:"String",proto:!0,forced:A("italics")},{italics:function(){return g(this,"i","","")}})},52880:function(oe,N,o){"use strict";var x=o(20407).charAt,g=o(47014),A=o(97219),y="String Iterator",M=g.set,w=g.getterFor(y);A(String,"String",function(m){M(this,{type:y,string:String(m),index:0})},function(){var b=w(this),v=b.string,h=b.index,d;return h>=v.length?{value:void 0,done:!0}:(d=x(v,h),b.index+=d.length,{value:d,done:!1})})},41105:function(oe,N,o){"use strict";var x=o(1279),g=o(77894),A=o(33605);x({target:"String",proto:!0,forced:A("link")},{link:function(M){return g(this,"a","href",M)}})},43154:function(oe,N,o){"use strict";var x=o(1279),g=o(4332),A=o(4288),y=o(16159),M=o(9710),w=o(57406),m=o(11748),b=o(16148),v=o(15025),h=o(24360),d=o(10195),_=o(62356),p=o(77284),S=o(43906),k=o(47014),O=o(23893),F=_("matchAll"),D="RegExp String",Z=D+" Iterator",W=k.set,U=k.getterFor(Z),L=RegExp.prototype,V=L.exec,$="".matchAll,G=!!$&&!d(function(){"a".matchAll(/./)}),z=function(ne,Q){var ue=ne.exec,he;if(typeof ue=="function"){if(he=ue.call(ne,Q),typeof he!="object")throw TypeError("Incorrect exec result");return he}return V.call(ne,Q)},K=g(function(Q,ue,he,Ee){W(this,{type:Z,regexp:Q,string:ue,global:he,unicode:Ee,done:!1})},D,function(){var Q=U(this);if(Q.done)return{value:void 0,done:!0};var ue=Q.regexp,he=Q.string,Ee=z(ue,he);return Ee===null?{value:void 0,done:Q.done=!0}:Q.global?(String(Ee[0])==""&&(ue.lastIndex=S(he,y(ue.lastIndex),Q.unicode)),{value:Ee,done:!1}):(Q.done=!0,{value:Ee,done:!1})}),re=function(ne){var Q=w(this),ue=String(ne),he,Ee,ce,ve,fe,we;return he=p(Q,RegExp),Ee=Q.flags,Ee===void 0&&Q instanceof RegExp&&!("flags"in L)&&(Ee=v.call(Q)),ce=Ee===void 0?"":String(Ee),ve=new he(he===RegExp?Q.source:Q,ce),fe=!!~ce.indexOf("g"),we=!!~ce.indexOf("u"),ve.lastIndex=y(Q.lastIndex),new K(ve,ue,fe,we)};x({target:"String",proto:!0,forced:G},{matchAll:function(Q){var ue=A(this),he,Ee,ce,ve;if(Q!=null){if(b(Q)&&(he=String(A("flags"in L?Q.flags:v.call(Q))),!~he.indexOf("g")))throw TypeError("`.matchAll` does not allow non-global regexes");if(G)return $.apply(ue,arguments);if(ce=Q[F],ce===void 0&&O&&m(Q)=="RegExp"&&(ce=re),ce!=null)return M(ce).call(Q,ue)}else if(G)return $.apply(ue,arguments);return Ee=String(ue),ve=new RegExp(Q,"g"),O?re.call(ve,Ee):ve[F](Ee)}}),O||F in L||h(L,F,re)},12151:function(oe,N,o){"use strict";var x=o(19788),g=o(57406),A=o(16159),y=o(4288),M=o(43906),w=o(96874);x("match",1,function(m,b,v){return[function(d){var _=y(this),p=d==null?void 0:d[m];return p!==void 0?p.call(d,_):new RegExp(d)[m](String(_))},function(h){var d=v(b,h,this);if(d.done)return d.value;var _=g(h),p=String(this);if(!_.global)return w(_,p);var S=_.unicode;_.lastIndex=0;for(var k=[],O=0,F;(F=w(_,p))!==null;){var D=String(F[0]);k[O]=D,D===""&&(_.lastIndex=M(p,A(_.lastIndex),S)),O++}return O===0?null:k}]})},13880:function(oe,N,o){"use strict";var x=o(1279),g=o(33189).end,A=o(59432);x({target:"String",proto:!0,forced:A},{padEnd:function(M){return g(this,M,arguments.length>1?arguments[1]:void 0)}})},50469:function(oe,N,o){"use strict";var x=o(1279),g=o(33189).start,A=o(59432);x({target:"String",proto:!0,forced:A},{padStart:function(M){return g(this,M,arguments.length>1?arguments[1]:void 0)}})},86690:function(oe,N,o){var x=o(1279),g=o(98117),A=o(16159);x({target:"String",stat:!0},{raw:function(M){for(var w=g(M.raw),m=A(w.length),b=arguments.length,v=[],h=0;m>h;)v.push(String(w[h++])),h<b&&v.push(String(arguments[h]));return v.join("")}})},67617:function(oe,N,o){var x=o(1279),g=o(73160);x({target:"String",proto:!0},{repeat:g})},24253:function(oe,N,o){"use strict";var x=o(19788),g=o(57406),A=o(15826),y=o(16159),M=o(11908),w=o(4288),m=o(43906),b=o(96874),v=Math.max,h=Math.min,d=Math.floor,_=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g,S=function(k){return k===void 0?k:String(k)};x("replace",2,function(k,O,F,D){var Z=D.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,W=D.REPLACE_KEEPS_$0,U=Z?"$":"$0";return[function($,G){var z=w(this),K=$==null?void 0:$[k];return K!==void 0?K.call($,z,G):O.call(String(z),$,G)},function(V,$){if(!Z&&W||typeof $=="string"&&$.indexOf(U)===-1){var G=F(O,V,this,$);if(G.done)return G.value}var z=g(V),K=String(this),re=typeof $=="function";re||($=String($));var ne=z.global;if(ne){var Q=z.unicode;z.lastIndex=0}for(var ue=[];;){var he=b(z,K);if(he===null||(ue.push(he),!ne))break;var Ee=String(he[0]);Ee===""&&(z.lastIndex=m(K,y(z.lastIndex),Q))}for(var ce="",ve=0,fe=0;fe<ue.length;fe++){he=ue[fe];for(var we=String(he[0]),me=v(h(M(he.index),K.length),0),Pe=[],pe=1;pe<he.length;pe++)Pe.push(S(he[pe]));var Ie=he.groups;if(re){var Je=[we].concat(Pe,me,K);Ie!==void 0&&Je.push(Ie);var ke=String($.apply(void 0,Je))}else ke=L(we,K,me,Pe,Ie,$);me>=ve&&(ce+=K.slice(ve,me)+ke,ve=me+we.length)}return ce+K.slice(ve)}];function L(V,$,G,z,K,re){var ne=G+V.length,Q=z.length,ue=p;return K!==void 0&&(K=A(K),ue=_),O.call(re,ue,function(he,Ee){var ce;switch(Ee.charAt(0)){case"$":return"$";case"&":return V;case"`":return $.slice(0,G);case"'":return $.slice(ne);case"<":ce=K[Ee.slice(1,-1)];break;default:var ve=+Ee;if(ve===0)return he;if(ve>Q){var fe=d(ve/10);return fe===0?he:fe<=Q?z[fe-1]===void 0?Ee.charAt(1):z[fe-1]+Ee.charAt(1):he}ce=z[ve-1]}return ce===void 0?"":ce})}})},98917:function(oe,N,o){"use strict";var x=o(19788),g=o(57406),A=o(4288),y=o(22096),M=o(96874);x("search",1,function(w,m,b){return[function(h){var d=A(this),_=h==null?void 0:h[w];return _!==void 0?_.call(h,d):new RegExp(h)[w](String(d))},function(v){var h=b(m,v,this);if(h.done)return h.value;var d=g(v),_=String(this),p=d.lastIndex;y(p,0)||(d.lastIndex=0);var S=M(d,_);return y(d.lastIndex,p)||(d.lastIndex=p),S===null?-1:S.index}]})},77081:function(oe,N,o){"use strict";var x=o(1279),g=o(77894),A=o(33605);x({target:"String",proto:!0,forced:A("small")},{small:function(){return g(this,"small","","")}})},67407:function(oe,N,o){"use strict";var x=o(19788),g=o(16148),A=o(57406),y=o(4288),M=o(77284),w=o(43906),m=o(16159),b=o(96874),v=o(63768),h=o(10195),d=[].push,_=Math.min,p=4294967295,S=!h(function(){return!RegExp(p,"y")});x("split",2,function(k,O,F){var D;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?D=function(Z,W){var U=String(y(this)),L=W===void 0?p:W>>>0;if(L===0)return[];if(Z===void 0)return[U];if(!g(Z))return O.call(U,Z,L);for(var V=[],$=(Z.ignoreCase?"i":"")+(Z.multiline?"m":"")+(Z.unicode?"u":"")+(Z.sticky?"y":""),G=0,z=new RegExp(Z.source,$+"g"),K,re,ne;(K=v.call(z,U))&&(re=z.lastIndex,!(re>G&&(V.push(U.slice(G,K.index)),K.length>1&&K.index<U.length&&d.apply(V,K.slice(1)),ne=K[0].length,G=re,V.length>=L)));)z.lastIndex===K.index&&z.lastIndex++;return G===U.length?(ne||!z.test(""))&&V.push(""):V.push(U.slice(G)),V.length>L?V.slice(0,L):V}:"0".split(void 0,0).length?D=function(Z,W){return Z===void 0&&W===0?[]:O.call(this,Z,W)}:D=O,[function(W,U){var L=y(this),V=W==null?void 0:W[k];return V!==void 0?V.call(W,L,U):D.call(String(L),W,U)},function(Z,W){var U=F(D,Z,this,W,D!==O);if(U.done)return U.value;var L=A(Z),V=String(this),$=M(L,RegExp),G=L.unicode,z=(L.ignoreCase?"i":"")+(L.multiline?"m":"")+(L.unicode?"u":"")+(S?"y":"g"),K=new $(S?L:"^(?:"+L.source+")",z),re=W===void 0?p:W>>>0;if(re===0)return[];if(V.length===0)return b(K,V)===null?[V]:[];for(var ne=0,Q=0,ue=[];Q<V.length;){K.lastIndex=S?Q:0;var he=b(K,S?V:V.slice(Q)),Ee;if(he===null||(Ee=_(m(K.lastIndex+(S?0:Q)),V.length))===ne)Q=w(V,Q,G);else{if(ue.push(V.slice(ne,Q)),ue.length===re)return ue;for(var ce=1;ce<=he.length-1;ce++)if(ue.push(he[ce]),ue.length===re)return ue;Q=ne=Ee}}return ue.push(V.slice(ne)),ue}]},!S)},88598:function(oe,N,o){"use strict";var x=o(1279),g=o(1703).f,A=o(16159),y=o(37955),M=o(4288),w=o(51527),m=o(23893),b="".startsWith,v=Math.min,h=w("startsWith"),d=!m&&!h&&!!function(){var _=g(String.prototype,"startsWith");return _&&!_.writable}();x({target:"String",proto:!0,forced:!d&&!h},{startsWith:function(p){var S=String(M(this));y(p);var k=A(v(arguments.length>1?arguments[1]:void 0,S.length)),O=String(p);return b?b.call(S,O,k):S.slice(k,k+O.length)===O}})},95427:function(oe,N,o){"use strict";var x=o(1279),g=o(77894),A=o(33605);x({target:"String",proto:!0,forced:A("strike")},{strike:function(){return g(this,"strike","","")}})},50200:function(oe,N,o){"use strict";var x=o(1279),g=o(77894),A=o(33605);x({target:"String",proto:!0,forced:A("sub")},{sub:function(){return g(this,"sub","","")}})},42809:function(oe,N,o){"use strict";var x=o(1279),g=o(77894),A=o(33605);x({target:"String",proto:!0,forced:A("sup")},{sup:function(){return g(this,"sup","","")}})},52785:function(oe,N,o){"use strict";var x=o(1279),g=o(51832).end,A=o(75368),y=A("trimEnd"),M=y?function(){return g(this)}:"".trimEnd;x({target:"String",proto:!0,forced:y},{trimEnd:M,trimRight:M})},68550:function(oe,N,o){"use strict";var x=o(1279),g=o(51832).start,A=o(75368),y=A("trimStart"),M=y?function(){return g(this)}:"".trimStart;x({target:"String",proto:!0,forced:y},{trimStart:M,trimLeft:M})},2206:function(oe,N,o){"use strict";var x=o(1279),g=o(51832).trim,A=o(75368);x({target:"String",proto:!0,forced:A("trim")},{trim:function(){return g(this)}})},49517:function(oe,N,o){var x=o(15299);x("asyncIterator")},31475:function(oe,N,o){"use strict";var x=o(1279),g=o(49359),A=o(85809),y=o(36309),M=o(51087),w=o(93196).f,m=o(2149),b=A.Symbol;if(g&&typeof b=="function"&&(!("description"in b.prototype)||b().description!==void 0)){var v={},h=function(){var O=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),F=this instanceof h?new b(O):O===void 0?b():b(O);return O===""&&(v[F]=!0),F};m(h,b);var d=h.prototype=b.prototype;d.constructor=h;var _=d.toString,p=String(b("test"))=="Symbol(test)",S=/^Symbol\((.*)\)[^)]+$/;w(d,"description",{configurable:!0,get:function(){var O=M(this)?this.valueOf():this,F=_.call(O);if(y(v,O))return"";var D=p?F.slice(7,-1):F.replace(S,"$1");return D===""?void 0:D}}),x({global:!0,forced:!0},{Symbol:h})}},69470:function(oe,N,o){var x=o(15299);x("hasInstance")},88911:function(oe,N,o){var x=o(15299);x("isConcatSpreadable")},44669:function(oe,N,o){var x=o(15299);x("iterator")},69730:function(oe,N,o){"use strict";var x=o(1279),g=o(85809),A=o(3105),y=o(23893),M=o(49359),w=o(3589),m=o(27757),b=o(10195),v=o(36309),h=o(97736),d=o(51087),_=o(57406),p=o(15826),S=o(98117),k=o(44782),O=o(72122),F=o(19943),D=o(30976),Z=o(51209),W=o(57052),U=o(55040),L=o(1703),V=o(93196),$=o(54952),G=o(24360),z=o(867),K=o(95780),re=o(82891),ne=o(15523),Q=o(61241),ue=o(62356),he=o(54003),Ee=o(15299),ce=o(32209),ve=o(47014),fe=o(87514).forEach,we=re("hidden"),me="Symbol",Pe="prototype",pe=ue("toPrimitive"),Ie=ve.set,Je=ve.getterFor(me),ke=Object[Pe],De=g.Symbol,Fe=A("JSON","stringify"),Qe=L.f,qe=V.f,et=W.f,dt=$.f,Ke=K("symbols"),Ge=K("op-symbols"),wt=K("string-to-symbol-registry"),Vt=K("symbol-to-string-registry"),gt=K("wks"),it=g.QObject,Le=!it||!it[Pe]||!it[Pe].findChild,ct=M&&b(function(){return F(qe({},"a",{get:function(){return qe(this,"a",{value:7}).a}})).a!=7})?function(tt,de,ot){var Et=Qe(ke,de);Et&&delete ke[de],qe(tt,de,ot),Et&&tt!==ke&&qe(ke,de,Et)}:qe,at=function(tt,de){var ot=Ke[tt]=F(De[Pe]);return Ie(ot,{type:me,tag:tt,description:de}),M||(ot.description=de),ot},jt=m?function(tt){return typeof tt=="symbol"}:function(tt){return Object(tt)instanceof De},St=function(de,ot,Et){de===ke&&St(Ge,ot,Et),_(de);var Ht=k(ot,!0);return _(Et),v(Ke,Ht)?(Et.enumerable?(v(de,we)&&de[we][Ht]&&(de[we][Ht]=!1),Et=F(Et,{enumerable:O(0,!1)})):(v(de,we)||qe(de,we,O(1,{})),de[we][Ht]=!0),ct(de,Ht,Et)):qe(de,Ht,Et)},fn=function(de,ot){_(de);var Et=S(ot),Ht=D(Et).concat(ze(Et));return fe(Ht,function(Jt){(!M||Yt.call(Et,Jt))&&St(de,Jt,Et[Jt])}),de},Xt=function(de,ot){return ot===void 0?F(de):fn(F(de),ot)},Yt=function(de){var ot=k(de,!0),Et=dt.call(this,ot);return this===ke&&v(Ke,ot)&&!v(Ge,ot)?!1:Et||!v(this,ot)||!v(Ke,ot)||v(this,we)&&this[we][ot]?Et:!0},Rt=function(de,ot){var Et=S(de),Ht=k(ot,!0);if(!(Et===ke&&v(Ke,Ht)&&!v(Ge,Ht))){var Jt=Qe(Et,Ht);return Jt&&v(Ke,Ht)&&!(v(Et,we)&&Et[we][Ht])&&(Jt.enumerable=!0),Jt}},Lt=function(de){var ot=et(S(de)),Et=[];return fe(ot,function(Ht){!v(Ke,Ht)&&!v(ne,Ht)&&Et.push(Ht)}),Et},ze=function(de){var ot=de===ke,Et=et(ot?Ge:S(de)),Ht=[];return fe(Et,function(Jt){v(Ke,Jt)&&(!ot||v(ke,Jt))&&Ht.push(Ke[Jt])}),Ht};if(w||(De=function(){if(this instanceof De)throw TypeError("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ot=Q(de),Et=function(Ht){this===ke&&Et.call(Ge,Ht),v(this,we)&&v(this[we],ot)&&(this[we][ot]=!1),ct(this,ot,O(1,Ht))};return M&&Le&&ct(ke,ot,{configurable:!0,set:Et}),at(ot,de)},z(De[Pe],"toString",function(){return Je(this).tag}),z(De,"withoutSetter",function(tt){return at(Q(tt),tt)}),$.f=Yt,V.f=St,L.f=Rt,Z.f=W.f=Lt,U.f=ze,he.f=function(tt){return at(ue(tt),tt)},M&&(qe(De[Pe],"description",{configurable:!0,get:function(){return Je(this).description}}),y||z(ke,"propertyIsEnumerable",Yt,{unsafe:!0}))),x({global:!0,wrap:!0,forced:!w,sham:!w},{Symbol:De}),fe(D(gt),function(tt){Ee(tt)}),x({target:me,stat:!0,forced:!w},{for:function(tt){var de=String(tt);if(v(wt,de))return wt[de];var ot=De(de);return wt[de]=ot,Vt[ot]=de,ot},keyFor:function(de){if(!jt(de))throw TypeError(de+" is not a symbol");if(v(Vt,de))return Vt[de]},useSetter:function(){Le=!0},useSimple:function(){Le=!1}}),x({target:"Object",stat:!0,forced:!w,sham:!M},{create:Xt,defineProperty:St,defineProperties:fn,getOwnPropertyDescriptor:Rt}),x({target:"Object",stat:!0,forced:!w},{getOwnPropertyNames:Lt,getOwnPropertySymbols:ze}),x({target:"Object",stat:!0,forced:b(function(){U.f(1)})},{getOwnPropertySymbols:function(de){return U.f(p(de))}}),Fe){var rt=!w||b(function(){var tt=De();return Fe([tt])!="[null]"||Fe({a:tt})!="{}"||Fe(Object(tt))!="{}"});x({target:"JSON",stat:!0,forced:rt},{stringify:function(de,ot,Et){for(var Ht=[de],Jt=1,Qt;arguments.length>Jt;)Ht.push(arguments[Jt++]);if(Qt=ot,!(!d(ot)&&de===void 0||jt(de)))return h(ot)||(ot=function(an,Un){if(typeof Qt=="function"&&(Un=Qt.call(this,an,Un)),!jt(Un))return Un}),Ht[1]=ot,Fe.apply(null,Ht)}})}De[Pe][pe]||G(De[Pe],pe,De[Pe].valueOf),ce(De,me),ne[we]=!0},77876:function(oe,N,o){var x=o(15299);x("match")},45729:function(oe,N,o){var x=o(15299);x("replace")},98469:function(oe,N,o){var x=o(15299);x("search")},58611:function(oe,N,o){var x=o(15299);x("species")},57864:function(oe,N,o){var x=o(15299);x("split")},62011:function(oe,N,o){var x=o(15299);x("toPrimitive")},92708:function(oe,N,o){var x=o(15299);x("toStringTag")},62367:function(oe,N,o){var x=o(15299);x("unscopables")},81175:function(oe,N,o){"use strict";var x=o(56272),g=o(47702),A=x.aTypedArray,y=x.exportTypedArrayMethod;y("copyWithin",function(w,m){return g.call(A(this),w,m,arguments.length>2?arguments[2]:void 0)})},96841:function(oe,N,o){"use strict";var x=o(56272),g=o(87514).every,A=x.aTypedArray,y=x.exportTypedArrayMethod;y("every",function(w){return g(A(this),w,arguments.length>1?arguments[1]:void 0)})},16567:function(oe,N,o){"use strict";var x=o(56272),g=o(38206),A=x.aTypedArray,y=x.exportTypedArrayMethod;y("fill",function(w){return g.apply(A(this),arguments)})},13832:function(oe,N,o){"use strict";var x=o(56272),g=o(87514).filter,A=o(77284),y=x.aTypedArray,M=x.aTypedArrayConstructor,w=x.exportTypedArrayMethod;w("filter",function(b){for(var v=g(y(this),b,arguments.length>1?arguments[1]:void 0),h=A(this,this.constructor),d=0,_=v.length,p=new(M(h))(_);_>d;)p[d]=v[d++];return p})},55486:function(oe,N,o){"use strict";var x=o(56272),g=o(87514).findIndex,A=x.aTypedArray,y=x.exportTypedArrayMethod;y("findIndex",function(w){return g(A(this),w,arguments.length>1?arguments[1]:void 0)})},62625:function(oe,N,o){"use strict";var x=o(56272),g=o(87514).find,A=x.aTypedArray,y=x.exportTypedArrayMethod;y("find",function(w){return g(A(this),w,arguments.length>1?arguments[1]:void 0)})},40148:function(oe,N,o){var x=o(64650);x("Float32",function(g){return function(y,M,w){return g(this,y,M,w)}})},91857:function(oe,N,o){var x=o(64650);x("Float64",function(g){return function(y,M,w){return g(this,y,M,w)}})},93604:function(oe,N,o){"use strict";var x=o(56272),g=o(87514).forEach,A=x.aTypedArray,y=x.exportTypedArrayMethod;y("forEach",function(w){g(A(this),w,arguments.length>1?arguments[1]:void 0)})},35010:function(oe,N,o){"use strict";var x=o(66077),g=o(56272).exportTypedArrayStaticMethod,A=o(51057);g("from",A,x)},74647:function(oe,N,o){"use strict";var x=o(56272),g=o(83954).includes,A=x.aTypedArray,y=x.exportTypedArrayMethod;y("includes",function(w){return g(A(this),w,arguments.length>1?arguments[1]:void 0)})},81057:function(oe,N,o){"use strict";var x=o(56272),g=o(83954).indexOf,A=x.aTypedArray,y=x.exportTypedArrayMethod;y("indexOf",function(w){return g(A(this),w,arguments.length>1?arguments[1]:void 0)})},18955:function(oe,N,o){var x=o(64650);x("Int16",function(g){return function(y,M,w){return g(this,y,M,w)}})},76134:function(oe,N,o){var x=o(64650);x("Int32",function(g){return function(y,M,w){return g(this,y,M,w)}})},24041:function(oe,N,o){var x=o(64650);x("Int8",function(g){return function(y,M,w){return g(this,y,M,w)}})},92692:function(oe,N,o){"use strict";var x=o(85809),g=o(56272),A=o(29105),y=o(62356),M=y("iterator"),w=x.Uint8Array,m=A.values,b=A.keys,v=A.entries,h=g.aTypedArray,d=g.exportTypedArrayMethod,_=w&&w.prototype[M],p=!!_&&(_.name=="values"||_.name==null),S=function(){return m.call(h(this))};d("entries",function(){return v.call(h(this))}),d("keys",function(){return b.call(h(this))}),d("values",S,!p),d(M,S,!p)},59913:function(oe,N,o){"use strict";var x=o(56272),g=x.aTypedArray,A=x.exportTypedArrayMethod,y=[].join;A("join",function(w){return y.apply(g(this),arguments)})},90334:function(oe,N,o){"use strict";var x=o(56272),g=o(23034),A=x.aTypedArray,y=x.exportTypedArrayMethod;y("lastIndexOf",function(w){return g.apply(A(this),arguments)})},61383:function(oe,N,o){"use strict";var x=o(56272),g=o(87514).map,A=o(77284),y=x.aTypedArray,M=x.aTypedArrayConstructor,w=x.exportTypedArrayMethod;w("map",function(b){return g(y(this),b,arguments.length>1?arguments[1]:void 0,function(v,h){return new(M(A(v,v.constructor)))(h)})})},50540:function(oe,N,o){"use strict";var x=o(56272),g=o(66077),A=x.aTypedArrayConstructor,y=x.exportTypedArrayStaticMethod;y("of",function(){for(var w=0,m=arguments.length,b=new(A(this))(m);m>w;)b[w]=arguments[w++];return b},g)},19687:function(oe,N,o){"use strict";var x=o(56272),g=o(12923).right,A=x.aTypedArray,y=x.exportTypedArrayMethod;y("reduceRight",function(w){return g(A(this),w,arguments.length,arguments.length>1?arguments[1]:void 0)})},73416:function(oe,N,o){"use strict";var x=o(56272),g=o(12923).left,A=x.aTypedArray,y=x.exportTypedArrayMethod;y("reduce",function(w){return g(A(this),w,arguments.length,arguments.length>1?arguments[1]:void 0)})},28527:function(oe,N,o){"use strict";var x=o(56272),g=x.aTypedArray,A=x.exportTypedArrayMethod,y=Math.floor;A("reverse",function(){for(var w=this,m=g(w).length,b=y(m/2),v=0,h;v<b;)h=w[v],w[v++]=w[--m],w[m]=h;return w})},36226:function(oe,N,o){"use strict";var x=o(56272),g=o(16159),A=o(63448),y=o(15826),M=o(10195),w=x.aTypedArray,m=x.exportTypedArrayMethod,b=M(function(){new Int8Array(1).set({})});m("set",function(h){w(this);var d=A(arguments.length>1?arguments[1]:void 0,1),_=this.length,p=y(h),S=g(p.length),k=0;if(S+d>_)throw RangeError("Wrong length");for(;k<S;)this[d+k]=p[k++]},b)},55642:function(oe,N,o){"use strict";var x=o(56272),g=o(77284),A=o(10195),y=x.aTypedArray,M=x.aTypedArrayConstructor,w=x.exportTypedArrayMethod,m=[].slice,b=A(function(){new Int8Array(1).slice()});w("slice",function(h,d){for(var _=m.call(y(this),h,d),p=g(this,this.constructor),S=0,k=_.length,O=new(M(p))(k);k>S;)O[S]=_[S++];return O},b)},63386:function(oe,N,o){"use strict";var x=o(56272),g=o(87514).some,A=x.aTypedArray,y=x.exportTypedArrayMethod;y("some",function(w){return g(A(this),w,arguments.length>1?arguments[1]:void 0)})},63925:function(oe,N,o){"use strict";var x=o(56272),g=x.aTypedArray,A=x.exportTypedArrayMethod,y=[].sort;A("sort",function(w){return y.call(g(this),w)})},5913:function(oe,N,o){"use strict";var x=o(56272),g=o(16159),A=o(31232),y=o(77284),M=x.aTypedArray,w=x.exportTypedArrayMethod;w("subarray",function(b,v){var h=M(this),d=h.length,_=A(b,d);return new(y(h,h.constructor))(h.buffer,h.byteOffset+_*h.BYTES_PER_ELEMENT,g((v===void 0?d:A(v,d))-_))})},71357:function(oe,N,o){"use strict";var x=o(85809),g=o(56272),A=o(10195),y=x.Int8Array,M=g.aTypedArray,w=g.exportTypedArrayMethod,m=[].toLocaleString,b=[].slice,v=!!y&&A(function(){m.call(new y(1))}),h=A(function(){return[1,2].toLocaleString()!=new y([1,2]).toLocaleString()})||!A(function(){y.prototype.toLocaleString.call([1,2])});w("toLocaleString",function(){return m.apply(v?b.call(M(this)):M(this),arguments)},h)},54495:function(oe,N,o){"use strict";var x=o(56272).exportTypedArrayMethod,g=o(10195),A=o(85809),y=A.Uint8Array,M=y&&y.prototype||{},w=[].toString,m=[].join;g(function(){w.call({})})&&(w=function(){return m.call(this)});var b=M.toString!=w;x("toString",w,b)},92749:function(oe,N,o){var x=o(64650);x("Uint16",function(g){return function(y,M,w){return g(this,y,M,w)}})},68612:function(oe,N,o){var x=o(64650);x("Uint32",function(g){return function(y,M,w){return g(this,y,M,w)}})},5631:function(oe,N,o){var x=o(64650);x("Uint8",function(g){return function(y,M,w){return g(this,y,M,w)}})},1194:function(oe,N,o){var x=o(64650);x("Uint8",function(g){return function(y,M,w){return g(this,y,M,w)}},!0)},14258:function(oe,N,o){"use strict";var x=o(85809),g=o(55112),A=o(5262),y=o(26807),M=o(91027),w=o(51087),m=o(47014).enforce,b=o(71174),v=!x.ActiveXObject&&"ActiveXObject"in x,h=Object.isExtensible,d,_=function(Z){return function(){return Z(this,arguments.length?arguments[0]:void 0)}},p=oe.exports=y("WeakMap",_,M);if(b&&v){d=M.getConstructor(_,"WeakMap",!0),A.REQUIRED=!0;var S=p.prototype,k=S.delete,O=S.has,F=S.get,D=S.set;g(S,{delete:function(Z){if(w(Z)&&!h(Z)){var W=m(this);return W.frozen||(W.frozen=new d),k.call(this,Z)||W.frozen.delete(Z)}return k.call(this,Z)},has:function(W){if(w(W)&&!h(W)){var U=m(this);return U.frozen||(U.frozen=new d),O.call(this,W)||U.frozen.has(W)}return O.call(this,W)},get:function(W){if(w(W)&&!h(W)){var U=m(this);return U.frozen||(U.frozen=new d),O.call(this,W)?F.call(this,W):U.frozen.get(W)}return F.call(this,W)},set:function(W,U){if(w(W)&&!h(W)){var L=m(this);L.frozen||(L.frozen=new d),O.call(this,W)?D.call(this,W,U):L.frozen.set(W,U)}else D.call(this,W,U);return this}})}},31213:function(oe,N,o){"use strict";var x=o(26807),g=o(91027);x("WeakSet",function(A){return function(){return A(this,arguments.length?arguments[0]:void 0)}},g)},56125:function(oe,N,o){"use strict";var x=o(1279),g=o(49359),A=o(55837),y=o(78738),M=o(19943),w=o(93196),m=o(72122),b=o(49424),v=o(24360),h=o(47014),d=h.set,_=h.getterFor("AggregateError"),p=function(k,O){var F=this;if(!(F instanceof p))return new p(k,O);y&&(F=y(new Error(O),A(F)));var D=[];return b(k,D.push,D),g?d(F,{errors:D,type:"AggregateError"}):F.errors=D,O!==void 0&&v(F,"message",String(O)),F};p.prototype=M(Error.prototype,{constructor:m(5,p),message:m(5,""),name:m(5,"AggregateError")}),g&&w.f(p.prototype,"errors",{get:function(){return _(this).errors},configurable:!0}),x({global:!0},{AggregateError:p})},36315:function(oe,N,o){"use strict";var x=o(49359),g=o(52530),A=o(15826),y=o(16159),M=o(93196).f;x&&!("lastIndex"in[])&&(M(Array.prototype,"lastIndex",{configurable:!0,get:function(){var m=A(this),b=y(m.length);return b==0?0:b-1}}),g("lastIndex"))},99690:function(oe,N,o){"use strict";var x=o(49359),g=o(52530),A=o(15826),y=o(16159),M=o(93196).f;x&&!("lastItem"in[])&&(M(Array.prototype,"lastItem",{configurable:!0,get:function(){var m=A(this),b=y(m.length);return b==0?void 0:m[b-1]},set:function(m){var b=A(this),v=y(b.length);return b[v==0?0:v-1]=m}}),g("lastItem"))},15937:function(oe,N,o){var x=o(1279),g=o(80967),A=o(3105),y=o(19943),M=function(){var w=A("Object","freeze");return w?w(y(null)):y(null)};x({global:!0},{compositeKey:function(){return g.apply(Object,arguments).get("object",M)}})},47693:function(oe,N,o){var x=o(1279),g=o(80967),A=o(3105);x({global:!0},{compositeSymbol:function(){return arguments.length===1&&typeof arguments[0]=="string"?A("Symbol").for(arguments[0]):g.apply(null,arguments).get("symbol",A("Symbol"))}})},55915:function(oe,N,o){o(76945)},46857:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(23920);x({target:"Map",proto:!0,real:!0,forced:g},{deleteAll:function(){return A.apply(this,arguments)}})},98274:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(57406),y=o(1577),M=o(82868),w=o(49424);x({target:"Map",proto:!0,real:!0,forced:g},{every:function(b){var v=A(this),h=M(v),d=y(b,arguments.length>1?arguments[1]:void 0,3);return!w(h,function(_,p){if(!d(p,_,v))return w.stop()},void 0,!0,!0).stopped}})},36710:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(3105),y=o(57406),M=o(9710),w=o(1577),m=o(77284),b=o(82868),v=o(49424);x({target:"Map",proto:!0,real:!0,forced:g},{filter:function(d){var _=y(this),p=b(_),S=w(d,arguments.length>1?arguments[1]:void 0,3),k=new(m(_,A("Map"))),O=M(k.set);return v(p,function(F,D){S(D,F,_)&&O.call(k,F,D)},void 0,!0,!0),k}})},27934:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(57406),y=o(1577),M=o(82868),w=o(49424);x({target:"Map",proto:!0,real:!0,forced:g},{findKey:function(b){var v=A(this),h=M(v),d=y(b,arguments.length>1?arguments[1]:void 0,3);return w(h,function(_,p){if(d(p,_,v))return w.stop(_)},void 0,!0,!0).result}})},35692:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(57406),y=o(1577),M=o(82868),w=o(49424);x({target:"Map",proto:!0,real:!0,forced:g},{find:function(b){var v=A(this),h=M(v),d=y(b,arguments.length>1?arguments[1]:void 0,3);return w(h,function(_,p){if(d(p,_,v))return w.stop(p)},void 0,!0,!0).result}})},9502:function(oe,N,o){var x=o(1279),g=o(85771);x({target:"Map",stat:!0},{from:g})},96510:function(oe,N,o){"use strict";var x=o(1279),g=o(49424),A=o(9710);x({target:"Map",stat:!0},{groupBy:function(M,w){var m=new this;A(w);var b=A(m.has),v=A(m.get),h=A(m.set);return g(M,function(d){var _=w(d);b.call(m,_)?v.call(m,_).push(d):h.call(m,_,[d])}),m}})},89774:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(57406),y=o(82868),M=o(22262),w=o(49424);x({target:"Map",proto:!0,real:!0,forced:g},{includes:function(b){return w(y(A(this)),function(v,h){if(M(h,b))return w.stop()},void 0,!0,!0).stopped}})},32680:function(oe,N,o){"use strict";var x=o(1279),g=o(49424),A=o(9710);x({target:"Map",stat:!0},{keyBy:function(M,w){var m=new this;A(w);var b=A(m.set);return g(M,function(v){b.call(m,w(v),v)}),m}})},71156:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(57406),y=o(82868),M=o(49424);x({target:"Map",proto:!0,real:!0,forced:g},{keyOf:function(m){return M(y(A(this)),function(b,v){if(v===m)return M.stop(b)},void 0,!0,!0).result}})},8088:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(3105),y=o(57406),M=o(9710),w=o(1577),m=o(77284),b=o(82868),v=o(49424);x({target:"Map",proto:!0,real:!0,forced:g},{mapKeys:function(d){var _=y(this),p=b(_),S=w(d,arguments.length>1?arguments[1]:void 0,3),k=new(m(_,A("Map"))),O=M(k.set);return v(p,function(F,D){O.call(k,S(D,F,_),D)},void 0,!0,!0),k}})},69260:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(3105),y=o(57406),M=o(9710),w=o(1577),m=o(77284),b=o(82868),v=o(49424);x({target:"Map",proto:!0,real:!0,forced:g},{mapValues:function(d){var _=y(this),p=b(_),S=w(d,arguments.length>1?arguments[1]:void 0,3),k=new(m(_,A("Map"))),O=M(k.set);return v(p,function(F,D){O.call(k,F,S(D,F,_))},void 0,!0,!0),k}})},11139:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(57406),y=o(9710),M=o(49424);x({target:"Map",proto:!0,real:!0,forced:g},{merge:function(m){for(var b=A(this),v=y(b.set),h=0;h<arguments.length;)M(arguments[h++],v,b,!0);return b}})},93778:function(oe,N,o){var x=o(1279),g=o(69054);x({target:"Map",stat:!0},{of:g})},4710:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(57406),y=o(9710),M=o(82868),w=o(49424);x({target:"Map",proto:!0,real:!0,forced:g},{reduce:function(b){var v=A(this),h=M(v),d=arguments.length<2,_=d?void 0:arguments[1];if(y(b),w(h,function(p,S){d?(d=!1,_=S):_=b(_,S,p,v)},void 0,!0,!0),d)throw TypeError("Reduce of empty map with no initial value");return _}})},99590:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(57406),y=o(1577),M=o(82868),w=o(49424);x({target:"Map",proto:!0,real:!0,forced:g},{some:function(b){var v=A(this),h=M(v),d=y(b,arguments.length>1?arguments[1]:void 0,3);return w(h,function(_,p){if(d(p,_,v))return w.stop()},void 0,!0,!0).stopped}})},51730:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(57406),y=o(9710);x({target:"Map",proto:!0,real:!0,forced:g},{update:function(w,m){var b=A(this),v=arguments.length;y(m);var h=b.has(w);if(!h&&v<3)throw TypeError("Updating absent value");var d=h?b.get(w):y(v>2?arguments[2]:void 0)(w,b);return b.set(w,m(d,w,b)),b}})},18258:function(oe,N,o){var x=o(1279),g=Math.min,A=Math.max;x({target:"Math",stat:!0},{clamp:function(M,w,m){return g(m,A(w,M))}})},33500:function(oe,N,o){var x=o(1279);x({target:"Math",stat:!0},{DEG_PER_RAD:Math.PI/180})},58728:function(oe,N,o){var x=o(1279),g=180/Math.PI;x({target:"Math",stat:!0},{degrees:function(y){return y*g}})},23801:function(oe,N,o){var x=o(1279),g=o(10679),A=o(83256);x({target:"Math",stat:!0},{fscale:function(M,w,m,b,v){return A(g(M,w,m,b,v))}})},66550:function(oe,N,o){var x=o(1279);x({target:"Math",stat:!0},{iaddh:function(A,y,M,w){var m=A>>>0,b=y>>>0,v=M>>>0;return b+(w>>>0)+((m&v|(m|v)&~(m+v>>>0))>>>31)|0}})},21483:function(oe,N,o){var x=o(1279);x({target:"Math",stat:!0},{imulh:function(A,y){var M=65535,w=+A,m=+y,b=w&M,v=m&M,h=w>>16,d=m>>16,_=(h*v>>>0)+(b*v>>>16);return h*d+(_>>16)+((b*d>>>0)+(_&M)>>16)}})},3301:function(oe,N,o){var x=o(1279);x({target:"Math",stat:!0},{isubh:function(A,y,M,w){var m=A>>>0,b=y>>>0,v=M>>>0;return b-(w>>>0)-((~m&v|~(m^v)&m-v>>>0)>>>31)|0}})},51860:function(oe,N,o){var x=o(1279);x({target:"Math",stat:!0},{RAD_PER_DEG:180/Math.PI})},82895:function(oe,N,o){var x=o(1279),g=Math.PI/180;x({target:"Math",stat:!0},{radians:function(y){return y*g}})},72086:function(oe,N,o){var x=o(1279),g=o(10679);x({target:"Math",stat:!0},{scale:g})},78645:function(oe,N,o){var x=o(1279),g=o(57406),A=o(14854),y=o(4332),M=o(47014),w="Seeded Random",m=w+" Generator",b=M.set,v=M.getterFor(m),h='Math.seededPRNG() argument should have a "seed" field with a finite value.',d=y(function(p){b(this,{type:m,seed:p%2147483647})},w,function(){var p=v(this),S=p.seed=(p.seed*1103515245+12345)%2147483647;return{value:(S&1073741823)/1073741823,done:!1}});x({target:"Math",stat:!0,forced:!0},{seededPRNG:function(p){var S=g(p).seed;if(!A(S))throw TypeError(h);return new d(S)}})},32073:function(oe,N,o){var x=o(1279);x({target:"Math",stat:!0},{signbit:function(A){return(A=+A)==A&&A==0?1/A==-Infinity:A<0}})},57341:function(oe,N,o){var x=o(1279);x({target:"Math",stat:!0},{umulh:function(A,y){var M=65535,w=+A,m=+y,b=w&M,v=m&M,h=w>>>16,d=m>>>16,_=(h*v>>>0)+(b*v>>>16);return h*d+(_>>>16)+((b*d>>>0)+(_&M)>>>16)}})},65406:function(oe,N,o){"use strict";var x=o(1279),g=o(11908),A=o(59114),y="Invalid number representation",M="Invalid radix",w=/^[\da-z]+$/;x({target:"Number",stat:!0},{fromString:function(b,v){var h=1,d,_;if(typeof b!="string")throw TypeError(y);if(!b.length||b.charAt(0)=="-"&&(h=-1,b=b.slice(1),!b.length))throw SyntaxError(y);if(d=v===void 0?10:g(v),d<2||d>36)throw RangeError(M);if(!w.test(b)||(_=A(b,d)).toString(d)!==b)throw SyntaxError(y);return h*_}})},6593:function(oe,N,o){"use strict";var x=o(1279),g=o(49359),A=o(8142),y=o(9710),M=o(57406),w=o(51087),m=o(60904),b=o(93196).f,v=o(24360),h=o(55112),d=o(16897),_=o(49424),p=o(621),S=o(62356),k=o(47014),O=S("observable"),F=k.get,D=k.set,Z=function(z){return z==null?void 0:y(z)},W=function(z){var K=z.cleanup;if(K){z.cleanup=void 0;try{K()}catch(re){p(re)}}},U=function(z){return z.observer===void 0},L=function(z,K){if(!g){z.closed=!0;var re=K.subscriptionObserver;re&&(re.closed=!0)}K.observer=void 0},V=function(z,K){var re=D(this,{cleanup:void 0,observer:M(z),subscriptionObserver:void 0}),ne;g||(this.closed=!1);try{(ne=Z(z.start))&&ne.call(z,this)}catch(Ee){p(Ee)}if(!U(re)){var Q=re.subscriptionObserver=new $(this);try{var ue=K(Q),he=ue;ue!=null&&(re.cleanup=typeof ue.unsubscribe=="function"?function(){he.unsubscribe()}:y(ue))}catch(Ee){Q.error(Ee);return}U(re)&&W(re)}};V.prototype=h({},{unsubscribe:function(){var K=F(this);U(K)||(L(this,K),W(K))}}),g&&b(V.prototype,"closed",{configurable:!0,get:function(){return U(F(this))}});var $=function(z){D(this,{subscription:z}),g||(this.closed=!1)};$.prototype=h({},{next:function(K){var re=F(F(this).subscription);if(!U(re)){var ne=re.observer;try{var Q=Z(ne.next);Q&&Q.call(ne,K)}catch(ue){p(ue)}}},error:function(K){var re=F(this).subscription,ne=F(re);if(!U(ne)){var Q=ne.observer;L(re,ne);try{var ue=Z(Q.error);ue?ue.call(Q,K):p(K)}catch(he){p(he)}W(ne)}},complete:function(){var K=F(this).subscription,re=F(K);if(!U(re)){var ne=re.observer;L(K,re);try{var Q=Z(ne.complete);Q&&Q.call(ne)}catch(ue){p(ue)}W(re)}}}),g&&b($.prototype,"closed",{configurable:!0,get:function(){return U(F(F(this).subscription))}});var G=function(K){m(this,G,"Observable"),D(this,{subscriber:y(K)})};h(G.prototype,{subscribe:function(K){var re=arguments.length;return new V(typeof K=="function"?{next:K,error:re>1?arguments[1]:void 0,complete:re>2?arguments[2]:void 0}:w(K)?K:{},F(this).subscriber)}}),h(G,{from:function(K){var re=typeof this=="function"?this:G,ne=Z(M(K)[O]);if(ne){var Q=M(ne.call(K));return Q.constructor===re?Q:new re(function(he){return Q.subscribe(he)})}var ue=d(K);return new re(function(he){_(ue,function(Ee){if(he.next(Ee),he.closed)return _.stop()},void 0,!1,!0),he.complete()})},of:function(){for(var K=typeof this=="function"?this:G,re=arguments.length,ne=new Array(re),Q=0;Q<re;)ne[Q]=arguments[Q++];return new K(function(ue){for(var he=0;he<re;he++)if(ue.next(ne[he]),ue.closed)return;ue.complete()})}}),v(G.prototype,O,function(){return this}),x({global:!0},{Observable:G}),A("Observable")},90523:function(oe,N,o){o(39024)},99099:function(oe,N,o){"use strict";var x=o(1279),g=o(9710),A=o(3105),y=o(45467),M=o(62395),w=o(49424),m="No one promise resolved";x({target:"Promise",stat:!0},{any:function(v){var h=this,d=y.f(h),_=d.resolve,p=d.reject,S=M(function(){var k=g(h.resolve),O=[],F=0,D=1,Z=!1;w(v,function(W){var U=F++,L=!1;O.push(void 0),D++,k.call(h,W).then(function(V){L||Z||(Z=!0,_(V))},function(V){L||Z||(L=!0,O[U]=V,--D||p(new(A("AggregateError"))(O,m)))})}),--D||p(new(A("AggregateError"))(O,m))});return S.error&&p(S.value),d.promise}})},9256:function(oe,N,o){"use strict";var x=o(1279),g=o(45467),A=o(62395);x({target:"Promise",stat:!0},{try:function(y){var M=g.f(this),w=A(y);return(w.error?M.reject:M.resolve)(w.value),M.promise}})},22312:function(oe,N,o){var x=o(1279),g=o(93347),A=o(57406),y=g.toKey,M=g.set;x({target:"Reflect",stat:!0},{defineMetadata:function(m,b,v){var h=arguments.length<4?void 0:y(arguments[3]);M(m,b,A(v),h)}})},2540:function(oe,N,o){var x=o(1279),g=o(93347),A=o(57406),y=g.toKey,M=g.getMap,w=g.store;x({target:"Reflect",stat:!0},{deleteMetadata:function(b,v){var h=arguments.length<3?void 0:y(arguments[2]),d=M(A(v),h,!1);if(d===void 0||!d.delete(b))return!1;if(d.size)return!0;var _=w.get(v);return _.delete(h),!!_.size||w.delete(v)}})},91947:function(oe,N,o){var x=o(1279),g=o(23606),A=o(93347),y=o(57406),M=o(55837),w=o(49424),m=A.keys,b=A.toKey,v=function(d){var _=[];return w(d,_.push,_),_},h=function(d,_){var p=m(d,_),S=M(d);if(S===null)return p;var k=h(S,_);return k.length?p.length?v(new g(p.concat(k))):k:p};x({target:"Reflect",stat:!0},{getMetadataKeys:function(_){var p=arguments.length<2?void 0:b(arguments[1]);return h(y(_),p)}})},89638:function(oe,N,o){var x=o(1279),g=o(93347),A=o(57406),y=o(55837),M=g.has,w=g.get,m=g.toKey,b=function(v,h,d){var _=M(v,h,d);if(_)return w(v,h,d);var p=y(h);return p!==null?b(v,p,d):void 0};x({target:"Reflect",stat:!0},{getMetadata:function(h,d){var _=arguments.length<3?void 0:m(arguments[2]);return b(h,A(d),_)}})},52283:function(oe,N,o){var x=o(1279),g=o(93347),A=o(57406),y=g.keys,M=g.toKey;x({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(m){var b=arguments.length<2?void 0:M(arguments[1]);return y(A(m),b)}})},68611:function(oe,N,o){var x=o(1279),g=o(93347),A=o(57406),y=g.get,M=g.toKey;x({target:"Reflect",stat:!0},{getOwnMetadata:function(m,b){var v=arguments.length<3?void 0:M(arguments[2]);return y(m,A(b),v)}})},21572:function(oe,N,o){var x=o(1279),g=o(93347),A=o(57406),y=o(55837),M=g.has,w=g.toKey,m=function(b,v,h){var d=M(b,v,h);if(d)return!0;var _=y(v);return _!==null?m(b,_,h):!1};x({target:"Reflect",stat:!0},{hasMetadata:function(v,h){var d=arguments.length<3?void 0:w(arguments[2]);return m(v,A(h),d)}})},50987:function(oe,N,o){var x=o(1279),g=o(93347),A=o(57406),y=g.has,M=g.toKey;x({target:"Reflect",stat:!0},{hasOwnMetadata:function(m,b){var v=arguments.length<3?void 0:M(arguments[2]);return y(m,A(b),v)}})},99241:function(oe,N,o){var x=o(1279),g=o(93347),A=o(57406),y=g.toKey,M=g.set;x({target:"Reflect",stat:!0},{metadata:function(m,b){return function(h,d){M(m,b,A(h),y(d))}}})},56960:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(64759);x({target:"Set",proto:!0,real:!0,forced:g},{addAll:function(){return A.apply(this,arguments)}})},49293:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(23920);x({target:"Set",proto:!0,real:!0,forced:g},{deleteAll:function(){return A.apply(this,arguments)}})},20677:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(3105),y=o(57406),M=o(9710),w=o(77284),m=o(49424);x({target:"Set",proto:!0,real:!0,forced:g},{difference:function(v){var h=y(this),d=new(w(h,A("Set")))(h),_=M(d.delete);return m(v,function(p){_.call(d,p)}),d}})},78712:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(57406),y=o(1577),M=o(99723),w=o(49424);x({target:"Set",proto:!0,real:!0,forced:g},{every:function(b){var v=A(this),h=M(v),d=y(b,arguments.length>1?arguments[1]:void 0,3);return!w(h,function(_){if(!d(_,_,v))return w.stop()},void 0,!1,!0).stopped}})},12065:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(3105),y=o(57406),M=o(9710),w=o(1577),m=o(77284),b=o(99723),v=o(49424);x({target:"Set",proto:!0,real:!0,forced:g},{filter:function(d){var _=y(this),p=b(_),S=w(d,arguments.length>1?arguments[1]:void 0,3),k=new(m(_,A("Set"))),O=M(k.add);return v(p,function(F){S(F,F,_)&&O.call(k,F)},void 0,!1,!0),k}})},83649:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(57406),y=o(1577),M=o(99723),w=o(49424);x({target:"Set",proto:!0,real:!0,forced:g},{find:function(b){var v=A(this),h=M(v),d=y(b,arguments.length>1?arguments[1]:void 0,3);return w(h,function(_){if(d(_,_,v))return w.stop(_)},void 0,!1,!0).result}})},41845:function(oe,N,o){var x=o(1279),g=o(85771);x({target:"Set",stat:!0},{from:g})},98346:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(3105),y=o(57406),M=o(9710),w=o(77284),m=o(49424);x({target:"Set",proto:!0,real:!0,forced:g},{intersection:function(v){var h=y(this),d=new(w(h,A("Set"))),_=M(h.has),p=M(d.add);return m(v,function(S){_.call(h,S)&&p.call(d,S)}),d}})},45862:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(57406),y=o(9710),M=o(49424);x({target:"Set",proto:!0,real:!0,forced:g},{isDisjointFrom:function(m){var b=A(this),v=y(b.has);return!M(m,function(h){if(v.call(b,h)===!0)return M.stop()}).stopped}})},80969:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(3105),y=o(57406),M=o(9710),w=o(16897),m=o(49424);x({target:"Set",proto:!0,real:!0,forced:g},{isSubsetOf:function(v){var h=w(this),d=y(v),_=d.has;return typeof _!="function"&&(d=new(A("Set"))(v),_=M(d.has)),!m(h,function(p){if(_.call(d,p)===!1)return m.stop()},void 0,!1,!0).stopped}})},69058:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(57406),y=o(9710),M=o(49424);x({target:"Set",proto:!0,real:!0,forced:g},{isSupersetOf:function(m){var b=A(this),v=y(b.has);return!M(m,function(h){if(v.call(b,h)===!1)return M.stop()}).stopped}})},20232:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(57406),y=o(99723),M=o(49424);x({target:"Set",proto:!0,real:!0,forced:g},{join:function(m){var b=A(this),v=y(b),h=m===void 0?",":String(m),d=[];return M(v,d.push,d,!1,!0),d.join(h)}})},72388:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(3105),y=o(57406),M=o(9710),w=o(1577),m=o(77284),b=o(99723),v=o(49424);x({target:"Set",proto:!0,real:!0,forced:g},{map:function(d){var _=y(this),p=b(_),S=w(d,arguments.length>1?arguments[1]:void 0,3),k=new(m(_,A("Set"))),O=M(k.add);return v(p,function(F){O.call(k,S(F,F,_))},void 0,!1,!0),k}})},46375:function(oe,N,o){var x=o(1279),g=o(69054);x({target:"Set",stat:!0},{of:g})},48286:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(57406),y=o(9710),M=o(99723),w=o(49424);x({target:"Set",proto:!0,real:!0,forced:g},{reduce:function(b){var v=A(this),h=M(v),d=arguments.length<2,_=d?void 0:arguments[1];if(y(b),w(h,function(p){d?(d=!1,_=p):_=b(_,p,p,v)},void 0,!1,!0),d)throw TypeError("Reduce of empty set with no initial value");return _}})},46569:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(57406),y=o(1577),M=o(99723),w=o(49424);x({target:"Set",proto:!0,real:!0,forced:g},{some:function(b){var v=A(this),h=M(v),d=y(b,arguments.length>1?arguments[1]:void 0,3);return w(h,function(_){if(d(_,_,v))return w.stop()},void 0,!1,!0).stopped}})},46350:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(3105),y=o(57406),M=o(9710),w=o(77284),m=o(49424);x({target:"Set",proto:!0,real:!0,forced:g},{symmetricDifference:function(v){var h=y(this),d=new(w(h,A("Set")))(h),_=M(d.delete),p=M(d.add);return m(v,function(S){_.call(d,S)||p.call(d,S)}),d}})},97441:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(3105),y=o(57406),M=o(9710),w=o(77284),m=o(49424);x({target:"Set",proto:!0,real:!0,forced:g},{union:function(v){var h=y(this),d=new(w(h,A("Set")))(h);return m(v,M(d.add),d),d}})},26904:function(oe,N,o){"use strict";var x=o(1279),g=o(20407).charAt;x({target:"String",proto:!0},{at:function(y){return g(this,y)}})},13975:function(oe,N,o){"use strict";var x=o(1279),g=o(4332),A=o(4288),y=o(47014),M=o(20407),w=M.codeAt,m=M.charAt,b="String Iterator",v=y.set,h=y.getterFor(b),d=g(function(p){v(this,{type:b,string:p,index:0})},"String",function(){var p=h(this),S=p.string,k=p.index,O;return k>=S.length?{value:void 0,done:!0}:(O=m(S,k),p.index+=O.length,{value:{codePoint:w(O,0),position:k},done:!1})});x({target:"String",proto:!0},{codePoints:function(){return new d(String(A(this)))}})},54368:function(oe,N,o){o(43154)},75919:function(oe,N,o){"use strict";var x=o(1279),g=o(4288),A=o(16148),y=o(15025),M=o(62356),w=o(23893),m=M("replace"),b=RegExp.prototype;x({target:"String",proto:!0},{replaceAll:function v(h,d){var _=g(this),p,S,k,O,F,D,Z,W,U;if(h!=null){if(p=A(h),p&&(S=String(g("flags"in b?h.flags:y.call(h))),!~S.indexOf("g")))throw TypeError("`.replaceAll` does not allow non-global regexes");if(k=h[m],k!==void 0)return k.call(h,_,d);if(w&&p)return String(_).replace(h,d)}if(O=String(_),F=String(h),F==="")return v.call(O,/(?:)/g,d);if(D=O.split(F),typeof d!="function")return D.join(String(d));for(Z=D[0],W=Z.length,U=1;U<D.length;U++)Z+=String(d(F,W,O)),W+=F.length+D[U].length,Z+=D[U];return Z}})},35716:function(oe,N,o){var x=o(15299);x("dispose")},30025:function(oe,N,o){var x=o(15299);x("observable")},11327:function(oe,N,o){var x=o(15299);x("patternMatch")},6695:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(23920);x({target:"WeakMap",proto:!0,real:!0,forced:g},{deleteAll:function(){return A.apply(this,arguments)}})},18679:function(oe,N,o){var x=o(1279),g=o(85771);x({target:"WeakMap",stat:!0},{from:g})},20416:function(oe,N,o){var x=o(1279),g=o(69054);x({target:"WeakMap",stat:!0},{of:g})},49375:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(64759);x({target:"WeakSet",proto:!0,real:!0,forced:g},{addAll:function(){return A.apply(this,arguments)}})},59391:function(oe,N,o){"use strict";var x=o(1279),g=o(23893),A=o(23920);x({target:"WeakSet",proto:!0,real:!0,forced:g},{deleteAll:function(){return A.apply(this,arguments)}})},20081:function(oe,N,o){var x=o(1279),g=o(85771);x({target:"WeakSet",stat:!0},{from:g})},66131:function(oe,N,o){var x=o(1279),g=o(69054);x({target:"WeakSet",stat:!0},{of:g})},35035:function(oe,N,o){var x=o(85809),g=o(46114),A=o(47735),y=o(24360);for(var M in g){var w=x[M],m=w&&w.prototype;if(m&&m.forEach!==A)try{y(m,"forEach",A)}catch(b){m.forEach=A}}},25854:function(oe,N,o){var x=o(85809),g=o(46114),A=o(29105),y=o(24360),M=o(62356),w=M("iterator"),m=M("toStringTag"),b=A.values;for(var v in g){var h=x[v],d=h&&h.prototype;if(d){if(d[w]!==b)try{y(d,w,b)}catch(p){d[w]=b}if(d[m]||y(d,m,v),g[v]){for(var _ in A)if(d[_]!==A[_])try{y(d,_,A[_])}catch(p){d[_]=A[_]}}}}},4106:function(oe,N,o){var x=o(1279),g=o(85809),A=o(27151),y=!g.setImmediate||!g.clearImmediate;x({global:!0,bind:!0,enumerable:!0,forced:y},{setImmediate:A.set,clearImmediate:A.clear})},95919:function(oe,N,o){var x=o(1279),g=o(85809),A=o(66229),y=o(11748),M=g.process,w=y(M)=="process";x({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(b){var v=w&&M.domain;A(v?v.bind(b):b)}})},76041:function(oe,N,o){"use strict";o(29105);var x=o(1279),g=o(3105),A=o(23699),y=o(867),M=o(55112),w=o(32209),m=o(4332),b=o(47014),v=o(60904),h=o(36309),d=o(1577),_=o(2565),p=o(57406),S=o(51087),k=o(19943),O=o(72122),F=o(16897),D=o(27510),Z=o(62356),W=g("fetch"),U=g("Headers"),L=Z("iterator"),V="URLSearchParams",$=V+"Iterator",G=b.set,z=b.getterFor(V),K=b.getterFor($),re=/\+/g,ne=Array(4),Q=function(ke){return ne[ke-1]||(ne[ke-1]=RegExp("((?:%[\\da-f]{2}){"+ke+"})","gi"))},ue=function(ke){try{return decodeURIComponent(ke)}catch(De){return ke}},he=function(ke){var De=ke.replace(re," "),Fe=4;try{return decodeURIComponent(De)}catch(Qe){for(;Fe;)De=De.replace(Q(Fe--),ue);return De}},Ee=/[!'()~]|%20/g,ce={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ve=function(ke){return ce[ke]},fe=function(ke){return encodeURIComponent(ke).replace(Ee,ve)},we=function(ke,De){if(De)for(var Fe=De.split("&"),Qe=0,qe,et;Qe<Fe.length;)qe=Fe[Qe++],qe.length&&(et=qe.split("="),ke.push({key:he(et.shift()),value:he(et.join("="))}))},me=function(ke){this.entries.length=0,we(this.entries,ke)},Pe=function(ke,De){if(ke<De)throw TypeError("Not enough arguments")},pe=m(function(De,Fe){G(this,{type:$,iterator:F(z(De).entries),kind:Fe})},"Iterator",function(){var De=K(this),Fe=De.kind,Qe=De.iterator.next(),qe=Qe.value;return Qe.done||(Qe.value=Fe==="keys"?qe.key:Fe==="values"?qe.value:[qe.key,qe.value]),Qe}),Ie=function(){v(this,Ie,V);var De=arguments.length>0?arguments[0]:void 0,Fe=this,Qe=[],qe,et,dt,Ke,Ge,wt,Vt,gt,it;if(G(Fe,{type:V,entries:Qe,updateURL:function(){},updateSearchParams:me}),De!==void 0)if(S(De))if(qe=D(De),typeof qe=="function")for(et=qe.call(De),dt=et.next;!(Ke=dt.call(et)).done;){if(Ge=F(p(Ke.value)),wt=Ge.next,(Vt=wt.call(Ge)).done||(gt=wt.call(Ge)).done||!wt.call(Ge).done)throw TypeError("Expected sequence with length 2");Qe.push({key:Vt.value+"",value:gt.value+""})}else for(it in De)h(De,it)&&Qe.push({key:it,value:De[it]+""});else we(Qe,typeof De=="string"?De.charAt(0)==="?"?De.slice(1):De:De+"")},Je=Ie.prototype;M(Je,{append:function(De,Fe){Pe(arguments.length,2);var Qe=z(this);Qe.entries.push({key:De+"",value:Fe+""}),Qe.updateURL()},delete:function(ke){Pe(arguments.length,1);for(var De=z(this),Fe=De.entries,Qe=ke+"",qe=0;qe<Fe.length;)Fe[qe].key===Qe?Fe.splice(qe,1):qe++;De.updateURL()},get:function(De){Pe(arguments.length,1);for(var Fe=z(this).entries,Qe=De+"",qe=0;qe<Fe.length;qe++)if(Fe[qe].key===Qe)return Fe[qe].value;return null},getAll:function(De){Pe(arguments.length,1);for(var Fe=z(this).entries,Qe=De+"",qe=[],et=0;et<Fe.length;et++)Fe[et].key===Qe&&qe.push(Fe[et].value);return qe},has:function(De){Pe(arguments.length,1);for(var Fe=z(this).entries,Qe=De+"",qe=0;qe<Fe.length;)if(Fe[qe++].key===Qe)return!0;return!1},set:function(De,Fe){Pe(arguments.length,1);for(var Qe=z(this),qe=Qe.entries,et=!1,dt=De+"",Ke=Fe+"",Ge=0,wt;Ge<qe.length;Ge++)wt=qe[Ge],wt.key===dt&&(et?qe.splice(Ge--,1):(et=!0,wt.value=Ke));et||qe.push({key:dt,value:Ke}),Qe.updateURL()},sort:function(){var De=z(this),Fe=De.entries,Qe=Fe.slice(),qe,et,dt;for(Fe.length=0,dt=0;dt<Qe.length;dt++){for(qe=Qe[dt],et=0;et<dt;et++)if(Fe[et].key>qe.key){Fe.splice(et,0,qe);break}et===dt&&Fe.push(qe)}De.updateURL()},forEach:function(De){for(var Fe=z(this).entries,Qe=d(De,arguments.length>1?arguments[1]:void 0,3),qe=0,et;qe<Fe.length;)et=Fe[qe++],Qe(et.value,et.key,this)},keys:function(){return new pe(this,"keys")},values:function(){return new pe(this,"values")},entries:function(){return new pe(this,"entries")}},{enumerable:!0}),y(Je,L,Je.entries),y(Je,"toString",function(){for(var De=z(this).entries,Fe=[],Qe=0,qe;Qe<De.length;)qe=De[Qe++],Fe.push(fe(qe.key)+"="+fe(qe.value));return Fe.join("&")},{enumerable:!0}),w(Ie,V),x({global:!0,forced:!A},{URLSearchParams:Ie}),!A&&typeof W=="function"&&typeof U=="function"&&x({global:!0,enumerable:!0,forced:!0},{fetch:function(De){var Fe=[De],Qe,qe,et;return arguments.length>1&&(Qe=arguments[1],S(Qe)&&(qe=Qe.body,_(qe)===V&&(et=Qe.headers?new U(Qe.headers):new U,et.has("content-type")||et.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),Qe=k(Qe,{body:O(0,String(qe)),headers:O(0,et)}))),Fe.push(Qe)),W.apply(this,Fe)}}),oe.exports={URLSearchParams:Ie,getState:z}},30342:function(oe,N,o){"use strict";o(52880);var x=o(1279),g=o(49359),A=o(23699),y=o(85809),M=o(81634),w=o(867),m=o(60904),b=o(36309),v=o(76571),h=o(19763),d=o(20407).codeAt,_=o(37097),p=o(32209),S=o(76041),k=o(47014),O=y.URL,F=S.URLSearchParams,D=S.getState,Z=k.set,W=k.getterFor("URL"),U=Math.floor,L=Math.pow,V="Invalid authority",$="Invalid scheme",G="Invalid host",z="Invalid port",K=/[A-Za-z]/,re=/[\d+-.A-Za-z]/,ne=/\d/,Q=/^(0x|0X)/,ue=/^[0-7]+$/,he=/^\d+$/,Ee=/^[\dA-Fa-f]+$/,ce=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,ve=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,fe=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,we=/[\u0009\u000A\u000D]/g,me,Pe=function(mt,Zt){var zt,ln,An;if(Zt.charAt(0)=="["){if(Zt.charAt(Zt.length-1)!="]"||(zt=Ie(Zt.slice(1,-1)),!zt))return G;mt.host=zt}else if(Ke(mt)){if(Zt=_(Zt),ce.test(Zt)||(zt=pe(Zt),zt===null))return G;mt.host=zt}else{if(ve.test(Zt))return G;for(zt="",ln=h(Zt),An=0;An<ln.length;An++)zt+=et(ln[An],De);mt.host=zt}},pe=function(mt){var Zt=mt.split("."),zt,ln,An,En,Gn,Bn,pr;if(Zt.length&&Zt[Zt.length-1]==""&&Zt.pop(),zt=Zt.length,zt>4)return mt;for(ln=[],An=0;An<zt;An++){if(En=Zt[An],En=="")return mt;if(Gn=10,En.length>1&&En.charAt(0)=="0"&&(Gn=Q.test(En)?16:8,En=En.slice(Gn==8?1:2)),En==="")Bn=0;else{if(!(Gn==10?he:Gn==8?ue:Ee).test(En))return mt;Bn=parseInt(En,Gn)}ln.push(Bn)}for(An=0;An<zt;An++)if(Bn=ln[An],An==zt-1){if(Bn>=L(256,5-zt))return null}else if(Bn>255)return null;for(pr=ln.pop(),An=0;An<ln.length;An++)pr+=ln[An]*L(256,3-An);return pr},Ie=function(mt){var Zt=[0,0,0,0,0,0,0,0],zt=0,ln=null,An=0,En,Gn,Bn,pr,_r,na,$n,qr=function(){return mt.charAt(An)};if(qr()==":"){if(mt.charAt(1)!=":")return;An+=2,zt++,ln=zt}for(;qr();){if(zt==8)return;if(qr()==":"){if(ln!==null)return;An++,zt++,ln=zt;continue}for(En=Gn=0;Gn<4&&Ee.test(qr());)En=En*16+parseInt(qr(),16),An++,Gn++;if(qr()=="."){if(Gn==0||(An-=Gn,zt>6))return;for(Bn=0;qr();){if(pr=null,Bn>0)if(qr()=="."&&Bn<4)An++;else return;if(!ne.test(qr()))return;for(;ne.test(qr());){if(_r=parseInt(qr(),10),pr===null)pr=_r;else{if(pr==0)return;pr=pr*10+_r}if(pr>255)return;An++}Zt[zt]=Zt[zt]*256+pr,Bn++,(Bn==2||Bn==4)&&zt++}if(Bn!=4)return;break}else if(qr()==":"){if(An++,!qr())return}else if(qr())return;Zt[zt++]=En}if(ln!==null)for(na=zt-ln,zt=7;zt!=0&&na>0;)$n=Zt[zt],Zt[zt--]=Zt[ln+na-1],Zt[ln+--na]=$n;else if(zt!=8)return;return Zt},Je=function(mt){for(var Zt=null,zt=1,ln=null,An=0,En=0;En<8;En++)mt[En]!==0?(An>zt&&(Zt=ln,zt=An),ln=null,An=0):(ln===null&&(ln=En),++An);return An>zt&&(Zt=ln,zt=An),Zt},ke=function(mt){var Zt,zt,ln,An;if(typeof mt=="number"){for(Zt=[],zt=0;zt<4;zt++)Zt.unshift(mt%256),mt=U(mt/256);return Zt.join(".")}else if(typeof mt=="object"){for(Zt="",ln=Je(mt),zt=0;zt<8;zt++)An&&mt[zt]===0||(An&&(An=!1),ln===zt?(Zt+=zt?":":"::",An=!0):(Zt+=mt[zt].toString(16),zt<7&&(Zt+=":")));return"["+Zt+"]"}return mt},De={},Fe=v({},De,{" ":1,'"':1,"<":1,">":1,"`":1}),Qe=v({},Fe,{"#":1,"?":1,"{":1,"}":1}),qe=v({},Qe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),et=function(mt,Zt){var zt=d(mt,0);return zt>32&&zt<127&&!b(Zt,mt)?mt:encodeURIComponent(mt)},dt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Ke=function(mt){return b(dt,mt.scheme)},Ge=function(mt){return mt.username!=""||mt.password!=""},wt=function(mt){return!mt.host||mt.cannotBeABaseURL||mt.scheme=="file"},Vt=function(mt,Zt){var zt;return mt.length==2&&K.test(mt.charAt(0))&&((zt=mt.charAt(1))==":"||!Zt&&zt=="|")},gt=function(mt){var Zt;return mt.length>1&&Vt(mt.slice(0,2))&&(mt.length==2||(Zt=mt.charAt(2))==="/"||Zt==="\\"||Zt==="?"||Zt==="#")},it=function(mt){var Zt=mt.path,zt=Zt.length;zt&&(mt.scheme!="file"||zt!=1||!Vt(Zt[0],!0))&&Zt.pop()},Le=function(mt){return mt==="."||mt.toLowerCase()==="%2e"},ct=function(mt){return mt=mt.toLowerCase(),mt===".."||mt==="%2e."||mt===".%2e"||mt==="%2e%2e"},at={},jt={},St={},fn={},Xt={},Yt={},Rt={},Lt={},ze={},rt={},tt={},de={},ot={},Et={},Ht={},Jt={},Qt={},an={},Un={},qt={},rn={},cn=function(mt,Zt,zt,ln){var An=zt||at,En=0,Gn="",Bn=!1,pr=!1,_r=!1,na,$n,qr,Jr;for(zt||(mt.scheme="",mt.username="",mt.password="",mt.host=null,mt.port=null,mt.path=[],mt.query=null,mt.fragment=null,mt.cannotBeABaseURL=!1,Zt=Zt.replace(fe,"")),Zt=Zt.replace(we,""),na=h(Zt);En<=na.length;){switch($n=na[En],An){case at:if($n&&K.test($n))Gn+=$n.toLowerCase(),An=jt;else{if(zt)return $;An=St;continue}break;case jt:if($n&&(re.test($n)||$n=="+"||$n=="-"||$n=="."))Gn+=$n.toLowerCase();else if($n==":"){if(zt&&(Ke(mt)!=b(dt,Gn)||Gn=="file"&&(Ge(mt)||mt.port!==null)||mt.scheme=="file"&&!mt.host))return;if(mt.scheme=Gn,zt){Ke(mt)&&dt[mt.scheme]==mt.port&&(mt.port=null);return}Gn="",mt.scheme=="file"?An=Et:Ke(mt)&&ln&&ln.scheme==mt.scheme?An=fn:Ke(mt)?An=Lt:na[En+1]=="/"?(An=Xt,En++):(mt.cannotBeABaseURL=!0,mt.path.push(""),An=Un)}else{if(zt)return $;Gn="",An=St,En=0;continue}break;case St:if(!ln||ln.cannotBeABaseURL&&$n!="#")return $;if(ln.cannotBeABaseURL&&$n=="#"){mt.scheme=ln.scheme,mt.path=ln.path.slice(),mt.query=ln.query,mt.fragment="",mt.cannotBeABaseURL=!0,An=rn;break}An=ln.scheme=="file"?Et:Yt;continue;case fn:if($n=="/"&&na[En+1]=="/")An=ze,En++;else{An=Yt;continue}break;case Xt:if($n=="/"){An=rt;break}else{An=an;continue}case Yt:if(mt.scheme=ln.scheme,$n==me)mt.username=ln.username,mt.password=ln.password,mt.host=ln.host,mt.port=ln.port,mt.path=ln.path.slice(),mt.query=ln.query;else if($n=="/"||$n=="\\"&&Ke(mt))An=Rt;else if($n=="?")mt.username=ln.username,mt.password=ln.password,mt.host=ln.host,mt.port=ln.port,mt.path=ln.path.slice(),mt.query="",An=qt;else if($n=="#")mt.username=ln.username,mt.password=ln.password,mt.host=ln.host,mt.port=ln.port,mt.path=ln.path.slice(),mt.query=ln.query,mt.fragment="",An=rn;else{mt.username=ln.username,mt.password=ln.password,mt.host=ln.host,mt.port=ln.port,mt.path=ln.path.slice(),mt.path.pop(),An=an;continue}break;case Rt:if(Ke(mt)&&($n=="/"||$n=="\\"))An=ze;else if($n=="/")An=rt;else{mt.username=ln.username,mt.password=ln.password,mt.host=ln.host,mt.port=ln.port,An=an;continue}break;case Lt:if(An=ze,$n!="/"||Gn.charAt(En+1)!="/")continue;En++;break;case ze:if($n!="/"&&$n!="\\"){An=rt;continue}break;case rt:if($n=="@"){Bn&&(Gn="%40"+Gn),Bn=!0,qr=h(Gn);for(var Aa=0;Aa<qr.length;Aa++){var ya=qr[Aa];if(ya==":"&&!_r){_r=!0;continue}var $t=et(ya,qe);_r?mt.password+=$t:mt.username+=$t}Gn=""}else if($n==me||$n=="/"||$n=="?"||$n=="#"||$n=="\\"&&Ke(mt)){if(Bn&&Gn=="")return V;En-=h(Gn).length+1,Gn="",An=tt}else Gn+=$n;break;case tt:case de:if(zt&&mt.scheme=="file"){An=Jt;continue}else if($n==":"&&!pr){if(Gn=="")return G;if(Jr=Pe(mt,Gn),Jr)return Jr;if(Gn="",An=ot,zt==de)return}else if($n==me||$n=="/"||$n=="?"||$n=="#"||$n=="\\"&&Ke(mt)){if(Ke(mt)&&Gn=="")return G;if(zt&&Gn==""&&(Ge(mt)||mt.port!==null))return;if(Jr=Pe(mt,Gn),Jr)return Jr;if(Gn="",An=Qt,zt)return;continue}else $n=="["?pr=!0:$n=="]"&&(pr=!1),Gn+=$n;break;case ot:if(ne.test($n))Gn+=$n;else if($n==me||$n=="/"||$n=="?"||$n=="#"||$n=="\\"&&Ke(mt)||zt){if(Gn!=""){var wn=parseInt(Gn,10);if(wn>65535)return z;mt.port=Ke(mt)&&wn===dt[mt.scheme]?null:wn,Gn=""}if(zt)return;An=Qt;continue}else return z;break;case Et:if(mt.scheme="file",$n=="/"||$n=="\\")An=Ht;else if(ln&&ln.scheme=="file")if($n==me)mt.host=ln.host,mt.path=ln.path.slice(),mt.query=ln.query;else if($n=="?")mt.host=ln.host,mt.path=ln.path.slice(),mt.query="",An=qt;else if($n=="#")mt.host=ln.host,mt.path=ln.path.slice(),mt.query=ln.query,mt.fragment="",An=rn;else{gt(na.slice(En).join(""))||(mt.host=ln.host,mt.path=ln.path.slice(),it(mt)),An=an;continue}else{An=an;continue}break;case Ht:if($n=="/"||$n=="\\"){An=Jt;break}ln&&ln.scheme=="file"&&!gt(na.slice(En).join(""))&&(Vt(ln.path[0],!0)?mt.path.push(ln.path[0]):mt.host=ln.host),An=an;continue;case Jt:if($n==me||$n=="/"||$n=="\\"||$n=="?"||$n=="#"){if(!zt&&Vt(Gn))An=an;else if(Gn==""){if(mt.host="",zt)return;An=Qt}else{if(Jr=Pe(mt,Gn),Jr)return Jr;if(mt.host=="localhost"&&(mt.host=""),zt)return;Gn="",An=Qt}continue}else Gn+=$n;break;case Qt:if(Ke(mt)){if(An=an,$n!="/"&&$n!="\\")continue}else if(!zt&&$n=="?")mt.query="",An=qt;else if(!zt&&$n=="#")mt.fragment="",An=rn;else if($n!=me&&(An=an,$n!="/"))continue;break;case an:if($n==me||$n=="/"||$n=="\\"&&Ke(mt)||!zt&&($n=="?"||$n=="#")){if(ct(Gn)?(it(mt),$n!="/"&&!($n=="\\"&&Ke(mt))&&mt.path.push("")):Le(Gn)?$n!="/"&&!($n=="\\"&&Ke(mt))&&mt.path.push(""):(mt.scheme=="file"&&!mt.path.length&&Vt(Gn)&&(mt.host&&(mt.host=""),Gn=Gn.charAt(0)+":"),mt.path.push(Gn)),Gn="",mt.scheme=="file"&&($n==me||$n=="?"||$n=="#"))for(;mt.path.length>1&&mt.path[0]==="";)mt.path.shift();$n=="?"?(mt.query="",An=qt):$n=="#"&&(mt.fragment="",An=rn)}else Gn+=et($n,Qe);break;case Un:$n=="?"?(mt.query="",An=qt):$n=="#"?(mt.fragment="",An=rn):$n!=me&&(mt.path[0]+=et($n,De));break;case qt:!zt&&$n=="#"?(mt.fragment="",An=rn):$n!=me&&($n=="'"&&Ke(mt)?mt.query+="%27":$n=="#"?mt.query+="%23":mt.query+=et($n,De));break;case rn:$n!=me&&(mt.fragment+=et($n,Fe));break}En++}},er=function(Zt){var zt=m(this,er,"URL"),ln=arguments.length>1?arguments[1]:void 0,An=String(Zt),En=Z(zt,{type:"URL"}),Gn,Bn;if(ln!==void 0){if(ln instanceof er)Gn=W(ln);else if(Bn=cn(Gn={},String(ln)),Bn)throw TypeError(Bn)}if(Bn=cn(En,An,null,Gn),Bn)throw TypeError(Bn);var pr=En.searchParams=new F,_r=D(pr);_r.updateSearchParams(En.query),_r.updateURL=function(){En.query=String(pr)||null},g||(zt.href=nt.call(zt),zt.origin=lr.call(zt),zt.protocol=Hn.call(zt),zt.username=ut.call(zt),zt.password=bt.call(zt),zt.host=We.call(zt),zt.hostname=be.call(zt),zt.port=Ae.call(zt),zt.pathname=Ue.call(zt),zt.search=$e.call(zt),zt.searchParams=kt.call(zt),zt.hash=lt.call(zt))},rr=er.prototype,nt=function(){var mt=W(this),Zt=mt.scheme,zt=mt.username,ln=mt.password,An=mt.host,En=mt.port,Gn=mt.path,Bn=mt.query,pr=mt.fragment,_r=Zt+":";return An!==null?(_r+="//",Ge(mt)&&(_r+=zt+(ln?":"+ln:"")+"@"),_r+=ke(An),En!==null&&(_r+=":"+En)):Zt=="file"&&(_r+="//"),_r+=mt.cannotBeABaseURL?Gn[0]:Gn.length?"/"+Gn.join("/"):"",Bn!==null&&(_r+="?"+Bn),pr!==null&&(_r+="#"+pr),_r},lr=function(){var mt=W(this),Zt=mt.scheme,zt=mt.port;if(Zt=="blob")try{return new URL(Zt.path[0]).origin}catch(ln){return"null"}return Zt=="file"||!Ke(mt)?"null":Zt+"://"+ke(mt.host)+(zt!==null?":"+zt:"")},Hn=function(){return W(this).scheme+":"},ut=function(){return W(this).username},bt=function(){return W(this).password},We=function(){var mt=W(this),Zt=mt.host,zt=mt.port;return Zt===null?"":zt===null?ke(Zt):ke(Zt)+":"+zt},be=function(){var mt=W(this).host;return mt===null?"":ke(mt)},Ae=function(){var mt=W(this).port;return mt===null?"":String(mt)},Ue=function(){var mt=W(this),Zt=mt.path;return mt.cannotBeABaseURL?Zt[0]:Zt.length?"/"+Zt.join("/"):""},$e=function(){var mt=W(this).query;return mt?"?"+mt:""},kt=function(){return W(this).searchParams},lt=function(){var mt=W(this).fragment;return mt?"#"+mt:""},vt=function(mt,Zt){return{get:mt,set:Zt,configurable:!0,enumerable:!0}};if(g&&M(rr,{href:vt(nt,function(mt){var Zt=W(this),zt=String(mt),ln=cn(Zt,zt);if(ln)throw TypeError(ln);D(Zt.searchParams).updateSearchParams(Zt.query)}),origin:vt(lr),protocol:vt(Hn,function(mt){var Zt=W(this);cn(Zt,String(mt)+":",at)}),username:vt(ut,function(mt){var Zt=W(this),zt=h(String(mt));if(!wt(Zt)){Zt.username="";for(var ln=0;ln<zt.length;ln++)Zt.username+=et(zt[ln],qe)}}),password:vt(bt,function(mt){var Zt=W(this),zt=h(String(mt));if(!wt(Zt)){Zt.password="";for(var ln=0;ln<zt.length;ln++)Zt.password+=et(zt[ln],qe)}}),host:vt(We,function(mt){var Zt=W(this);Zt.cannotBeABaseURL||cn(Zt,String(mt),tt)}),hostname:vt(be,function(mt){var Zt=W(this);Zt.cannotBeABaseURL||cn(Zt,String(mt),de)}),port:vt(Ae,function(mt){var Zt=W(this);wt(Zt)||(mt=String(mt),mt==""?Zt.port=null:cn(Zt,mt,ot))}),pathname:vt(Ue,function(mt){var Zt=W(this);Zt.cannotBeABaseURL||(Zt.path=[],cn(Zt,mt+"",Qt))}),search:vt($e,function(mt){var Zt=W(this);mt=String(mt),mt==""?Zt.query=null:(mt.charAt(0)=="?"&&(mt=mt.slice(1)),Zt.query="",cn(Zt,mt,qt)),D(Zt.searchParams).updateSearchParams(Zt.query)}),searchParams:vt(kt),hash:vt(lt,function(mt){var Zt=W(this);if(mt=String(mt),mt==""){Zt.fragment=null;return}mt.charAt(0)=="#"&&(mt=mt.slice(1)),Zt.fragment="",cn(Zt,mt,rn)})}),w(rr,"toJSON",function(){return nt.call(this)},{enumerable:!0}),w(rr,"toString",function(){return nt.call(this)},{enumerable:!0}),O){var Ct=O.createObjectURL,Bt=O.revokeObjectURL;Ct&&w(er,"createObjectURL",function(Zt){return Ct.apply(O,arguments)}),Bt&&w(er,"revokeObjectURL",function(Zt){return Bt.apply(O,arguments)})}p(er,"URL"),x({global:!0,forced:!A,sham:!g},{URL:er})},47385:function(oe,N,o){"use strict";var x=o(1279);x({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},25083:function(oe){function N(o,x){(x==null||x>o.length)&&(x=o.length);for(var g=0,A=new Array(x);g<x;g++)A[g]=o[g];return A}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},70144:function(oe){function N(o){if(Array.isArray(o))return o}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},99933:function(oe,N,o){var x=o(25083);function g(A){if(Array.isArray(A))return x(A)}oe.exports=g,oe.exports.__esModule=!0,oe.exports.default=oe.exports},37306:function(oe,N,o){var x=o(44801);function g(A,y){var M=typeof Symbol!="undefined"&&A[Symbol.iterator]||A["@@iterator"];if(!M){if(Array.isArray(A)||(M=x(A))||y&&A&&typeof A.length=="number"){M&&(A=M);var w=0,m=function(){};return{s:m,n:function(){return w>=A.length?{done:!0}:{done:!1,value:A[w++]}},e:function(_){throw _},f:m}}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 b=!0,v=!1,h;return{s:function(){M=M.call(A)},n:function(){var _=M.next();return b=_.done,_},e:function(_){v=!0,h=_},f:function(){try{!b&&M.return!=null&&M.return()}finally{if(v)throw h}}}}oe.exports=g,oe.exports.__esModule=!0,oe.exports.default=oe.exports},33657:function(oe){function N(o,x,g){return x in o?Object.defineProperty(o,x,{value:g,enumerable:!0,configurable:!0,writable:!0}):o[x]=g,o}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},72560:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g,A){(A==null||A>g.length)&&(A=g.length);for(var y=0,M=new Array(A);y<A;y++)M[y]=g[y];return M}},3182:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});function x(A,y,M,w,m,b,v){try{var h=A[b](v),d=h.value}catch(_){M(_);return}h.done?y(d):Promise.resolve(d).then(w,m)}function g(A){return function(){var y=this,M=arguments;return new Promise(function(w,m){var b=A.apply(y,M);function v(d){x(b,w,m,v,h,"next",d)}function h(d){x(b,w,m,v,h,"throw",d)}v(void 0)})}}},69610:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g,A){if(!(g instanceof A))throw new TypeError("Cannot call a class as a function")}},54941:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});function x(A,y){for(var M=0;M<y.length;M++){var w=y[M];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(A,w.key,w)}}function g(A,y,M){return y&&x(A.prototype,y),M&&x(A,M),Object.defineProperty(A,"prototype",{writable:!1}),A}},91220:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});var x=o(64254);function g(A,y){var M=typeof Symbol!="undefined"&&A[Symbol.iterator]||A["@@iterator"];if(!M){if(Array.isArray(A)||(M=(0,x.Z)(A))||y&&A&&typeof A.length=="number"){M&&(A=M);var w=0,m=function(){};return{s:m,n:function(){return w>=A.length?{done:!0}:{done:!1,value:A[w++]}},e:function(_){throw _},f:m}}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 b=!0,v=!1,h;return{s:function(){M=M.call(A)},n:function(){var _=M.next();return b=_.done,_},e:function(_){v=!0,h=_},f:function(){try{!b&&M.return!=null&&M.return()}finally{if(v)throw h}}}}},59206:function(oe,N,o){"use strict";o.d(N,{Z:function(){return y}});function x(M){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(m){return m.__proto__||Object.getPrototypeOf(m)},x(M)}function g(){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(M){return!1}}var A=o(79320);function y(M){var w=g();return function(){var b=x(M),v;if(w){var h=x(this).constructor;v=Reflect.construct(b,arguments,h)}else v=b.apply(this,arguments);return(0,A.Z)(this,v)}}},32059:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g,A,y){return A in g?Object.defineProperty(g,A,{value:y,enumerable:!0,configurable:!0,writable:!0}):g[A]=y,g}},81306:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});function x(A,y){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,m){return w.__proto__=m,w},x(A,y)}function g(A,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(y&&y.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),y&&x(A,y)}},11849:function(oe,N,o){"use strict";o.d(N,{Z:function(){return A}});var x=o(32059);function g(y,M){var w=Object.keys(y);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(y);M&&(m=m.filter(function(b){return Object.getOwnPropertyDescriptor(y,b).enumerable})),w.push.apply(w,m)}return w}function A(y){for(var M=1;M<arguments.length;M++){var w=arguments[M]!=null?arguments[M]:{};M%2?g(Object(w),!0).forEach(function(m){(0,x.Z)(y,m,w[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(w)):g(Object(w)).forEach(function(m){Object.defineProperty(y,m,Object.getOwnPropertyDescriptor(w,m))})}return y}},93224:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});function x(A,y){if(A==null)return{};var M={},w=Object.keys(A),m,b;for(b=0;b<w.length;b++)m=w[b],!(y.indexOf(m)>=0)&&(M[m]=A[m]);return M}function g(A,y){if(A==null)return{};var M=x(A,y),w,m;if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(A);for(m=0;m<b.length;m++)w=b[m],!(y.indexOf(w)>=0)&&(!Object.prototype.propertyIsEnumerable.call(A,w)||(M[w]=A[w]))}return M}},79320:function(oe,N,o){"use strict";o.d(N,{Z:function(){return A}});var x=o(58954);function g(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function A(y,M){if(M&&((0,x.Z)(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g(y)}},39428:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});var x=o(58954);function g(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */g=function(){return A};var A={},y=Object.prototype,M=y.hasOwnProperty,w=typeof Symbol=="function"?Symbol:{},m=w.iterator||"@@iterator",b=w.asyncIterator||"@@asyncIterator",v=w.toStringTag||"@@toStringTag";function h(ne,Q,ue){return Object.defineProperty(ne,Q,{value:ue,enumerable:!0,configurable:!0,writable:!0}),ne[Q]}try{h({},"")}catch(ne){h=function(ue,he,Ee){return ue[he]=Ee}}function d(ne,Q,ue,he){var Ee=Q&&Q.prototype instanceof S?Q:S,ce=Object.create(Ee.prototype),ve=new z(he||[]);return ce._invoke=function(fe,we,me){var Pe="suspendedStart";return function(pe,Ie){if(Pe==="executing")throw new Error("Generator is already running");if(Pe==="completed"){if(pe==="throw")throw Ie;return re()}for(me.method=pe,me.arg=Ie;;){var Je=me.delegate;if(Je){var ke=V(Je,me);if(ke){if(ke===p)continue;return ke}}if(me.method==="next")me.sent=me._sent=me.arg;else if(me.method==="throw"){if(Pe==="suspendedStart")throw Pe="completed",me.arg;me.dispatchException(me.arg)}else me.method==="return"&&me.abrupt("return",me.arg);Pe="executing";var De=_(fe,we,me);if(De.type==="normal"){if(Pe=me.done?"completed":"suspendedYield",De.arg===p)continue;return{value:De.arg,done:me.done}}De.type==="throw"&&(Pe="completed",me.method="throw",me.arg=De.arg)}}}(ne,ue,ve),ce}function _(ne,Q,ue){try{return{type:"normal",arg:ne.call(Q,ue)}}catch(he){return{type:"throw",arg:he}}}A.wrap=d;var p={};function S(){}function k(){}function O(){}var F={};h(F,m,function(){return this});var D=Object.getPrototypeOf,Z=D&&D(D(K([])));Z&&Z!==y&&M.call(Z,m)&&(F=Z);var W=O.prototype=S.prototype=Object.create(F);function U(ne){["next","throw","return"].forEach(function(Q){h(ne,Q,function(ue){return this._invoke(Q,ue)})})}function L(ne,Q){function ue(Ee,ce,ve,fe){var we=_(ne[Ee],ne,ce);if(we.type!=="throw"){var me=we.arg,Pe=me.value;return Pe&&(0,x.Z)(Pe)=="object"&&M.call(Pe,"__await")?Q.resolve(Pe.__await).then(function(pe){ue("next",pe,ve,fe)},function(pe){ue("throw",pe,ve,fe)}):Q.resolve(Pe).then(function(pe){me.value=pe,ve(me)},function(pe){return ue("throw",pe,ve,fe)})}fe(we.arg)}var he;this._invoke=function(Ee,ce){function ve(){return new Q(function(fe,we){ue(Ee,ce,fe,we)})}return he=he?he.then(ve,ve):ve()}}function V(ne,Q){var ue=ne.iterator[Q.method];if(ue===void 0){if(Q.delegate=null,Q.method==="throw"){if(ne.iterator.return&&(Q.method="return",Q.arg=void 0,V(ne,Q),Q.method==="throw"))return p;Q.method="throw",Q.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var he=_(ue,ne.iterator,Q.arg);if(he.type==="throw")return Q.method="throw",Q.arg=he.arg,Q.delegate=null,p;var Ee=he.arg;return Ee?Ee.done?(Q[ne.resultName]=Ee.value,Q.next=ne.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=void 0),Q.delegate=null,p):Ee:(Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,p)}function $(ne){var Q={tryLoc:ne[0]};1 in ne&&(Q.catchLoc=ne[1]),2 in ne&&(Q.finallyLoc=ne[2],Q.afterLoc=ne[3]),this.tryEntries.push(Q)}function G(ne){var Q=ne.completion||{};Q.type="normal",delete Q.arg,ne.completion=Q}function z(ne){this.tryEntries=[{tryLoc:"root"}],ne.forEach($,this),this.reset(!0)}function K(ne){if(ne){var Q=ne[m];if(Q)return Q.call(ne);if(typeof ne.next=="function")return ne;if(!isNaN(ne.length)){var ue=-1,he=function Ee(){for(;++ue<ne.length;)if(M.call(ne,ue))return Ee.value=ne[ue],Ee.done=!1,Ee;return Ee.value=void 0,Ee.done=!0,Ee};return he.next=he}}return{next:re}}function re(){return{value:void 0,done:!0}}return k.prototype=O,h(W,"constructor",O),h(O,"constructor",k),k.displayName=h(O,v,"GeneratorFunction"),A.isGeneratorFunction=function(ne){var Q=typeof ne=="function"&&ne.constructor;return!!Q&&(Q===k||(Q.displayName||Q.name)==="GeneratorFunction")},A.mark=function(ne){return Object.setPrototypeOf?Object.setPrototypeOf(ne,O):(ne.__proto__=O,h(ne,v,"GeneratorFunction")),ne.prototype=Object.create(W),ne},A.awrap=function(ne){return{__await:ne}},U(L.prototype),h(L.prototype,b,function(){return this}),A.AsyncIterator=L,A.async=function(ne,Q,ue,he,Ee){Ee===void 0&&(Ee=Promise);var ce=new L(d(ne,Q,ue,he),Ee);return A.isGeneratorFunction(Q)?ce:ce.next().then(function(ve){return ve.done?ve.value:ce.next()})},U(W),h(W,v,"Generator"),h(W,m,function(){return this}),h(W,"toString",function(){return"[object Generator]"}),A.keys=function(ne){var Q=[];for(var ue in ne)Q.push(ue);return Q.reverse(),function he(){for(;Q.length;){var Ee=Q.pop();if(Ee in ne)return he.value=Ee,he.done=!1,he}return he.done=!0,he}},A.values=K,z.prototype={constructor:z,reset:function(Q){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(G),!Q)for(var ue in this)ue.charAt(0)==="t"&&M.call(this,ue)&&!isNaN(+ue.slice(1))&&(this[ue]=void 0)},stop:function(){this.done=!0;var Q=this.tryEntries[0].completion;if(Q.type==="throw")throw Q.arg;return this.rval},dispatchException:function(Q){if(this.done)throw Q;var ue=this;function he(me,Pe){return ve.type="throw",ve.arg=Q,ue.next=me,Pe&&(ue.method="next",ue.arg=void 0),!!Pe}for(var Ee=this.tryEntries.length-1;Ee>=0;--Ee){var ce=this.tryEntries[Ee],ve=ce.completion;if(ce.tryLoc==="root")return he("end");if(ce.tryLoc<=this.prev){var fe=M.call(ce,"catchLoc"),we=M.call(ce,"finallyLoc");if(fe&&we){if(this.prev<ce.catchLoc)return he(ce.catchLoc,!0);if(this.prev<ce.finallyLoc)return he(ce.finallyLoc)}else if(fe){if(this.prev<ce.catchLoc)return he(ce.catchLoc,!0)}else{if(!we)throw new Error("try statement without catch or finally");if(this.prev<ce.finallyLoc)return he(ce.finallyLoc)}}}},abrupt:function(Q,ue){for(var he=this.tryEntries.length-1;he>=0;--he){var Ee=this.tryEntries[he];if(Ee.tryLoc<=this.prev&&M.call(Ee,"finallyLoc")&&this.prev<Ee.finallyLoc){var ce=Ee;break}}ce&&(Q==="break"||Q==="continue")&&ce.tryLoc<=ue&&ue<=ce.finallyLoc&&(ce=null);var ve=ce?ce.completion:{};return ve.type=Q,ve.arg=ue,ce?(this.method="next",this.next=ce.finallyLoc,p):this.complete(ve)},complete:function(Q,ue){if(Q.type==="throw")throw Q.arg;return Q.type==="break"||Q.type==="continue"?this.next=Q.arg:Q.type==="return"?(this.rval=this.arg=Q.arg,this.method="return",this.next="end"):Q.type==="normal"&&ue&&(this.next=ue),p},finish:function(Q){for(var ue=this.tryEntries.length-1;ue>=0;--ue){var he=this.tryEntries[ue];if(he.finallyLoc===Q)return this.complete(he.completion,he.afterLoc),G(he),p}},catch:function(Q){for(var ue=this.tryEntries.length-1;ue>=0;--ue){var he=this.tryEntries[ue];if(he.tryLoc===Q){var Ee=he.completion;if(Ee.type==="throw"){var ce=Ee.arg;G(he)}return ce}}throw new Error("illegal catch attempt")},delegateYield:function(Q,ue,he){return this.delegate={iterator:K(Q),resultName:ue,nextLoc:he},this.method==="next"&&(this.arg=void 0),p}},A}},2824:function(oe,N,o){"use strict";o.d(N,{Z:function(){return M}});function x(w){if(Array.isArray(w))return w}function g(w,m){var b=w==null?null:typeof Symbol!="undefined"&&w[Symbol.iterator]||w["@@iterator"];if(b!=null){var v=[],h=!0,d=!1,_,p;try{for(b=b.call(w);!(h=(_=b.next()).done)&&(v.push(_.value),!(m&&v.length===m));h=!0);}catch(S){d=!0,p=S}finally{try{!h&&b.return!=null&&b.return()}finally{if(d)throw p}}return v}}var A=o(64254);function y(){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 M(w,m){return x(w)||g(w,m)||(0,A.Z)(w,m)||y()}},86582:function(oe,N,o){"use strict";o.d(N,{Z:function(){return w}});var x=o(72560);function g(m){if(Array.isArray(m))return(0,x.Z)(m)}function A(m){if(typeof Symbol!="undefined"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}var y=o(64254);function M(){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 w(m){return g(m)||A(m)||(0,y.Z)(m)||M()}},58954:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g){return x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},x(g)}},64254:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});var x=o(72560);function g(A,y){if(!!A){if(typeof A=="string")return(0,x.Z)(A,y);var M=Object.prototype.toString.call(A).slice(8,-1);if(M==="Object"&&A.constructor&&(M=A.constructor.name),M==="Map"||M==="Set")return Array.from(A);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return(0,x.Z)(A,y)}}},23671:function(oe){function N(o){if(typeof Symbol!="undefined"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},74193:function(oe){function N(o,x){var g=o==null?null:typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(g!=null){var A=[],y=!0,M=!1,w,m;try{for(g=g.call(o);!(y=(w=g.next()).done)&&(A.push(w.value),!(x&&A.length===x));y=!0);}catch(b){M=!0,m=b}finally{try{!y&&g.return!=null&&g.return()}finally{if(M)throw m}}return A}}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},74695:function(oe){function N(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},80709:function(oe){function N(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},35229:function(oe,N,o){var x=o(74770).default;function g(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */oe.exports=g=function(){return A},oe.exports.__esModule=!0,oe.exports.default=oe.exports;var A={},y=Object.prototype,M=y.hasOwnProperty,w=typeof Symbol=="function"?Symbol:{},m=w.iterator||"@@iterator",b=w.asyncIterator||"@@asyncIterator",v=w.toStringTag||"@@toStringTag";function h(ne,Q,ue){return Object.defineProperty(ne,Q,{value:ue,enumerable:!0,configurable:!0,writable:!0}),ne[Q]}try{h({},"")}catch(ne){h=function(ue,he,Ee){return ue[he]=Ee}}function d(ne,Q,ue,he){var Ee=Q&&Q.prototype instanceof S?Q:S,ce=Object.create(Ee.prototype),ve=new z(he||[]);return ce._invoke=function(fe,we,me){var Pe="suspendedStart";return function(pe,Ie){if(Pe==="executing")throw new Error("Generator is already running");if(Pe==="completed"){if(pe==="throw")throw Ie;return re()}for(me.method=pe,me.arg=Ie;;){var Je=me.delegate;if(Je){var ke=V(Je,me);if(ke){if(ke===p)continue;return ke}}if(me.method==="next")me.sent=me._sent=me.arg;else if(me.method==="throw"){if(Pe==="suspendedStart")throw Pe="completed",me.arg;me.dispatchException(me.arg)}else me.method==="return"&&me.abrupt("return",me.arg);Pe="executing";var De=_(fe,we,me);if(De.type==="normal"){if(Pe=me.done?"completed":"suspendedYield",De.arg===p)continue;return{value:De.arg,done:me.done}}De.type==="throw"&&(Pe="completed",me.method="throw",me.arg=De.arg)}}}(ne,ue,ve),ce}function _(ne,Q,ue){try{return{type:"normal",arg:ne.call(Q,ue)}}catch(he){return{type:"throw",arg:he}}}A.wrap=d;var p={};function S(){}function k(){}function O(){}var F={};h(F,m,function(){return this});var D=Object.getPrototypeOf,Z=D&&D(D(K([])));Z&&Z!==y&&M.call(Z,m)&&(F=Z);var W=O.prototype=S.prototype=Object.create(F);function U(ne){["next","throw","return"].forEach(function(Q){h(ne,Q,function(ue){return this._invoke(Q,ue)})})}function L(ne,Q){function ue(Ee,ce,ve,fe){var we=_(ne[Ee],ne,ce);if(we.type!=="throw"){var me=we.arg,Pe=me.value;return Pe&&x(Pe)=="object"&&M.call(Pe,"__await")?Q.resolve(Pe.__await).then(function(pe){ue("next",pe,ve,fe)},function(pe){ue("throw",pe,ve,fe)}):Q.resolve(Pe).then(function(pe){me.value=pe,ve(me)},function(pe){return ue("throw",pe,ve,fe)})}fe(we.arg)}var he;this._invoke=function(Ee,ce){function ve(){return new Q(function(fe,we){ue(Ee,ce,fe,we)})}return he=he?he.then(ve,ve):ve()}}function V(ne,Q){var ue=ne.iterator[Q.method];if(ue===void 0){if(Q.delegate=null,Q.method==="throw"){if(ne.iterator.return&&(Q.method="return",Q.arg=void 0,V(ne,Q),Q.method==="throw"))return p;Q.method="throw",Q.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var he=_(ue,ne.iterator,Q.arg);if(he.type==="throw")return Q.method="throw",Q.arg=he.arg,Q.delegate=null,p;var Ee=he.arg;return Ee?Ee.done?(Q[ne.resultName]=Ee.value,Q.next=ne.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=void 0),Q.delegate=null,p):Ee:(Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,p)}function $(ne){var Q={tryLoc:ne[0]};1 in ne&&(Q.catchLoc=ne[1]),2 in ne&&(Q.finallyLoc=ne[2],Q.afterLoc=ne[3]),this.tryEntries.push(Q)}function G(ne){var Q=ne.completion||{};Q.type="normal",delete Q.arg,ne.completion=Q}function z(ne){this.tryEntries=[{tryLoc:"root"}],ne.forEach($,this),this.reset(!0)}function K(ne){if(ne){var Q=ne[m];if(Q)return Q.call(ne);if(typeof ne.next=="function")return ne;if(!isNaN(ne.length)){var ue=-1,he=function Ee(){for(;++ue<ne.length;)if(M.call(ne,ue))return Ee.value=ne[ue],Ee.done=!1,Ee;return Ee.value=void 0,Ee.done=!0,Ee};return he.next=he}}return{next:re}}function re(){return{value:void 0,done:!0}}return k.prototype=O,h(W,"constructor",O),h(O,"constructor",k),k.displayName=h(O,v,"GeneratorFunction"),A.isGeneratorFunction=function(ne){var Q=typeof ne=="function"&&ne.constructor;return!!Q&&(Q===k||(Q.displayName||Q.name)==="GeneratorFunction")},A.mark=function(ne){return Object.setPrototypeOf?Object.setPrototypeOf(ne,O):(ne.__proto__=O,h(ne,v,"GeneratorFunction")),ne.prototype=Object.create(W),ne},A.awrap=function(ne){return{__await:ne}},U(L.prototype),h(L.prototype,b,function(){return this}),A.AsyncIterator=L,A.async=function(ne,Q,ue,he,Ee){Ee===void 0&&(Ee=Promise);var ce=new L(d(ne,Q,ue,he),Ee);return A.isGeneratorFunction(Q)?ce:ce.next().then(function(ve){return ve.done?ve.value:ce.next()})},U(W),h(W,v,"Generator"),h(W,m,function(){return this}),h(W,"toString",function(){return"[object Generator]"}),A.keys=function(ne){var Q=[];for(var ue in ne)Q.push(ue);return Q.reverse(),function he(){for(;Q.length;){var Ee=Q.pop();if(Ee in ne)return he.value=Ee,he.done=!1,he}return he.done=!0,he}},A.values=K,z.prototype={constructor:z,reset:function(Q){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(G),!Q)for(var ue in this)ue.charAt(0)==="t"&&M.call(this,ue)&&!isNaN(+ue.slice(1))&&(this[ue]=void 0)},stop:function(){this.done=!0;var Q=this.tryEntries[0].completion;if(Q.type==="throw")throw Q.arg;return this.rval},dispatchException:function(Q){if(this.done)throw Q;var ue=this;function he(me,Pe){return ve.type="throw",ve.arg=Q,ue.next=me,Pe&&(ue.method="next",ue.arg=void 0),!!Pe}for(var Ee=this.tryEntries.length-1;Ee>=0;--Ee){var ce=this.tryEntries[Ee],ve=ce.completion;if(ce.tryLoc==="root")return he("end");if(ce.tryLoc<=this.prev){var fe=M.call(ce,"catchLoc"),we=M.call(ce,"finallyLoc");if(fe&&we){if(this.prev<ce.catchLoc)return he(ce.catchLoc,!0);if(this.prev<ce.finallyLoc)return he(ce.finallyLoc)}else if(fe){if(this.prev<ce.catchLoc)return he(ce.catchLoc,!0)}else{if(!we)throw new Error("try statement without catch or finally");if(this.prev<ce.finallyLoc)return he(ce.finallyLoc)}}}},abrupt:function(Q,ue){for(var he=this.tryEntries.length-1;he>=0;--he){var Ee=this.tryEntries[he];if(Ee.tryLoc<=this.prev&&M.call(Ee,"finallyLoc")&&this.prev<Ee.finallyLoc){var ce=Ee;break}}ce&&(Q==="break"||Q==="continue")&&ce.tryLoc<=ue&&ue<=ce.finallyLoc&&(ce=null);var ve=ce?ce.completion:{};return ve.type=Q,ve.arg=ue,ce?(this.method="next",this.next=ce.finallyLoc,p):this.complete(ve)},complete:function(Q,ue){if(Q.type==="throw")throw Q.arg;return Q.type==="break"||Q.type==="continue"?this.next=Q.arg:Q.type==="return"?(this.rval=this.arg=Q.arg,this.method="return",this.next="end"):Q.type==="normal"&&ue&&(this.next=ue),p},finish:function(Q){for(var ue=this.tryEntries.length-1;ue>=0;--ue){var he=this.tryEntries[ue];if(he.finallyLoc===Q)return this.complete(he.completion,he.afterLoc),G(he),p}},catch:function(Q){for(var ue=this.tryEntries.length-1;ue>=0;--ue){var he=this.tryEntries[ue];if(he.tryLoc===Q){var Ee=he.completion;if(Ee.type==="throw"){var ce=Ee.arg;G(he)}return ce}}throw new Error("illegal catch attempt")},delegateYield:function(Q,ue,he){return this.delegate={iterator:K(Q),resultName:ue,nextLoc:he},this.method==="next"&&(this.arg=void 0),p}},A}oe.exports=g,oe.exports.__esModule=!0,oe.exports.default=oe.exports},66933:function(oe,N,o){var x=o(70144),g=o(74193),A=o(44801),y=o(74695);function M(w,m){return x(w)||g(w,m)||A(w,m)||y()}oe.exports=M,oe.exports.__esModule=!0,oe.exports.default=oe.exports},30352:function(oe,N,o){var x=o(99933),g=o(23671),A=o(44801),y=o(80709);function M(w){return x(w)||g(w)||A(w)||y()}oe.exports=M,oe.exports.__esModule=!0,oe.exports.default=oe.exports},74770:function(oe){function N(o){return oe.exports=N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},oe.exports.__esModule=!0,oe.exports.default=oe.exports,N(o)}oe.exports=N,oe.exports.__esModule=!0,oe.exports.default=oe.exports},44801:function(oe,N,o){var x=o(25083);function g(A,y){if(!!A){if(typeof A=="string")return x(A,y);var M=Object.prototype.toString.call(A).slice(8,-1);if(M==="Object"&&A.constructor&&(M=A.constructor.name),M==="Map"||M==="Set")return Array.from(A);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return x(A,y)}}oe.exports=g,oe.exports.__esModule=!0,oe.exports.default=oe.exports},85069:function(oe){oe.exports={iconfont:"iconfont___1fcw4",iconbaobiaokanban:"iconbaobiaokanban___DR4U5",iconkanban:"iconkanban___IWq2H",iconyunyingkanban:"iconyunyingkanban___14Q9Y",iconshujukanban1:"iconshujukanban1___16Nzt",iconjingqingqidai01:"iconjingqingqidai01___310Aa",icontouzi:"icontouzi___381YH",iconriqi:"iconriqi___2aj5n",iconyinleren_:"iconyinleren____3AoFi",icondapan:"icondapan___3Qdzn",iconbangdan:"iconbangdan___fr8LR",iconshujuwajue:"iconshujuwajue___1s5Ck",iconshoucang1:"iconshoucang1___2lxZQ",icontianjiazhibiao:"icontianjiazhibiao___1oZVf",icontianjiafenzu:"icontianjiafenzu___2ond3",iconyouxiajiaogouxuan:"iconyouxiajiaogouxuan___3Z1by",iconxiaoshouzhibiaoshezhi:"iconxiaoshouzhibiaoshezhi___1TLhk",iconyingyongbiaoge:"iconyingyongbiaoge___3zN8L",iconzhibiao:"iconzhibiao____6qJe",iconsearch:"iconsearch___1joAc","iconfactory-color":"iconfactory-color___2JEj0","iconportray-color":"iconportray-color___7pSrY","iconvisualize-color":"iconvisualize-color___zOv2M","iconamount-color":"iconamount-color___Jji4q","iconapi-color":"iconapi-color___397Gu","iconcontent-color":"iconcontent-color___2Qofk","iconbox-color":"iconbox-color___1pb-b","iconchat-color":"iconchat-color___25UvW","iconclient-color":"iconclient-color___W3t54","icondata-process":"icondata-process___3Flot","iconbi-color":"iconbi-color___3Yki1","iconfiled-color":"iconfiled-color___1bkOK","iconinvoking-color":"iconinvoking-color___jnm66","iconissue-color":"iconissue-color___1D8Jy","iconplatform-color":"iconplatform-color___39LXE","iconfile-color":"iconfile-color___1pueQ","iconname-color":"iconname-color___pm4p9",icondraft:"icondraft___2wSyM",iconunknown:"iconunknown___29KoO",iconnormal:"iconnormal___39WGI",iconfreezed:"iconfreezed___3HYp5",iconlogowenzi:"iconlogowenzi___1Cqhp",iconlogobiaoshi:"iconlogobiaoshi___2hx1_",iconchaoyinshuxitonglogo:"iconchaoyinshuxitonglogo___1AMzn",iconzanwuquanxiandianjishenqing_1:"iconzanwuquanxiandianjishenqing_1___1SBfE",iconqingchuangjianmuluhuokanban:"iconqingchuangjianmuluhuokanban___1norf",iconzichan:"iconzichan___3twqW",iconhangweifenxi:"iconhangweifenxi___3n1jk",iconshujuzichan:"iconshujuzichan___1iKwI",iconshujukanban:"iconshujukanban___4BASP",iconshujujieru:"iconshujujieru___1l_6a",iconshujutansuo:"iconshujutansuo___3Iy5X",iconminjiefenxi:"iconminjiefenxi___CRxBx",iconyanfagongju:"iconyanfagongju___1oGmZ",iconshujuanquan:"iconshujuanquan___22tW_",iconCE:"iconCE___2mRLn","iconkanbantu-shuaxin":"iconkanbantu-shuaxin___16YQf","icondaohang-sousuo":"icondaohang-sousuo___1wNGK","icondaohang-bangzhu":"icondaohang-bangzhu___1KLsE","iconkanbantu-fenxiang":"iconkanbantu-fenxiang___3WwdQ","iconquanju-riqi":"iconquanju-riqi___A41DI","icondaohang-shezhi":"icondaohang-shezhi___1ljpY","icondaohang-zichangouwuche":"icondaohang-zichangouwuche___k4UwW","iconquanju-xiazai":"iconquanju-xiazai___2X4jV","iconkanbantu-quanping":"iconkanbantu-quanping___2DvgF","iconshujuzichan-yewushujuzichan":"iconshujuzichan-yewushujuzichan___3Hzfq","iconshujukanban-tianjiakanban":"iconshujukanban-tianjiakanban___2q82r",iconqingkong:"iconqingkong___2Xgqr","iconshujuzichan-jishushujuzichan":"iconshujuzichan-jishushujuzichan___3bZh5","iconshujuzichan-zichanfaxian":"iconshujuzichan-zichanfaxian___3T4LE","icontishi-beizhu1":"icontishi-beizhu1___10Rgg","iconshujukanban-tianjiamulu":"iconshujukanban-tianjiamulu___17x-o","icontubiao-zhuzhuangtu":"icontubiao-zhuzhuangtu___3HRWi","icondaohang-xiaoxitishi":"icondaohang-xiaoxitishi___1cqbc","icontubiao-bingtu":"icontubiao-bingtu___1ZnTb","icontishi-beizhu2":"icontishi-beizhu2___1T1U0","iconshezhi-quanxianshezhi":"iconshezhi-quanxianshezhi___33vY2","iconhangweifenxi-mokuaifenxi":"iconhangweifenxi-mokuaifenxi___3wDS8","icontubiao-loudoutu":"icontubiao-loudoutu___3VAKj","icontubiao-zhexiantu":"icontubiao-zhexiantu___3Rs-l","icontubiao-biaoge":"icontubiao-biaoge___14GNX","iconhangweifenxi-baobiaoliebiao":"iconhangweifenxi-baobiaoliebiao___1cwXt"}},50910:function(oe){oe.exports={normalState:"normalState___rTQ99",backNormal:"backNormal___1gKZt",maxState:"maxState___2W7kq",innerWrap:"innerWrap___7Y-5N",fullscreenExitIcon:"fullscreenExitIcon___xj4Wz"}},86698:function(oe){oe.exports={container:"container___1Rq3A"}},2836:function(oe){oe.exports={menu:"menu___1L63y",right:"right___3L8KG",action:"action___LP4_P",search:"search___2W0sJ",account:"account___6HXOq",avatar:"avatar___2cOWV",dark:"dark___1NwCY",download:"download___3EyS7",menuName:"menuName___avsrP",actionIcon:"actionIcon___29O_9",tooltip:"tooltip___OioLL"}},6472:function(oe){oe.exports={s2icon:"s2icon___10AEz"}},91516:function(oe){oe.exports={userAvatar:"userAvatar___9hXSy",userText:"userText___rJvtU"}},67945:function(oe){oe.exports={sqlEditor:"sqlEditor___3RiYN",fullScreenBtnBox:"fullScreenBtnBox___2USxq"}},11055:function(oe){oe.exports={standardFormRow:"standardFormRow___3IQXJ",label:"label___3l8v5",content:"content___34tYu",standardFormRowLast:"standardFormRowLast___cvXZa",standardFormRowBlock:"standardFormRowBlock___2AjUQ",standardFormRowGrid:"standardFormRowGrid___3MsL8"}},57782:function(oe){oe.exports={tagSelect:"tagSelect___2vgC_",expanded:"expanded___Oj9ed",trigger:"trigger___14K8f",anticon:"anticon___QuhUr",hasExpandTag:"hasExpandTag___20Ahh"}},98557:function(oe){oe.exports={agent:"agent___3J_sJ",agentsSection:"agentsSection___16znM",sectionTitle:"sectionTitle___1-I7U",content:"content___1N5NM",searchBar:"searchBar___30RK2",searchControl:"searchControl___jWA3r",agentsContainer:"agentsContainer___3m66d",agentItem:"agentItem___3YGpL",agentActive:"agentActive___izei_",agentIcon:"agentIcon___3U728",agentContent:"agentContent___1UpJq",agentNameBar:"agentNameBar___38ia0",agentName:"agentName___2ojZi",operateIcons:"operateIcons___2HeH-",operateIcon:"operateIcon___2AC0k",bottomBar:"bottomBar___JI2u1",agentDescription:"agentDescription___2r-F6",toggleStatus:"toggleStatus___2w7kk",online:"online___VX7s8",toolsSection:"toolsSection___3Ufix",toolsSectionTitleBar:"toolsSectionTitleBar___3UIvx",backIcon:"backIcon___3R0Qa",agentTitle:"agentTitle___1PI4M",paramsSection:"paramsSection___OqYnp",filterRow:"filterRow___1BFmj",filterParamName:"filterParamName___1CVWZ",filterParamValueField:"filterParamValueField___3FVOi",questionExample:"questionExample___2NR_X",basicInfo:"basicInfo___26U1f",basicInfoTitle:"basicInfoTitle___QfRVK",infoContent:"infoContent___3lOs4",toolSection:"toolSection___1NPrj",toolSectionTitleBar:"toolSectionTitleBar___3QcZc",toolSectionTitle:"toolSectionTitle___3_dAm",emptyHolder:"emptyHolder___15Uqc",toolsContent:"toolsContent___3q6qW",toolItem:"toolItem___3e6mH",toolIcon:"toolIcon___1VzHb",toolContent:"toolContent___HCiYs",toolTopSection:"toolTopSection___20yXf",toolType:"toolType___3raMz",toolOperateIcons:"toolOperateIcons___23PEb",toolOperateIcon:"toolOperateIcon___2rJoB",toolDesc:"toolDesc___sB78v"}},72730:function(oe){oe.exports={chatFooter:"chatFooter___3U7Ja",defaultCopilotMode:"defaultCopilotMode___3Vh09",composer:"composer___nXwyD",collapseBtn:"collapseBtn___3ROh9",addConversation:"addConversation___2gYpO",composerInputWrapper:"composerInputWrapper___33XEj",currentModel:"currentModel___QCiQ1",currentModelName:"currentModelName___2VMMC",entityName:"entityName___1OQnW",cancelModel:"cancelModel___1Fcug",composerInput:"composerInput___27grD",sendBtn:"sendBtn___1mSEb",sendBtnActive:"sendBtnActive___2tnLt",mobile:"mobile___1ObPp",searchOption:"searchOption___3IfcA",model:"model___2ffKM",autoCompleteDropdown:"autoCompleteDropdown___1y8g6",modelOptions:"modelOptions___1BCzi",semanticType:"semanticType___2NkK7",quoteText:"quoteText___veNsJ"}},92186:function(oe){oe.exports={agentList:"agentList___2hQrm",agentListMsg:"agentListMsg___2NafU",title:"title___Qgazg",content:"content___1Tpcn",agent:"agent___2UaWS",topBar:"topBar___3OAh0",agentName:"agentName___33t73",tip:"tip___3t_M1",examples:"examples___1WQCj",example:"example___3X8pP",fullscreen:"fullscreen___2A7ua"}},32962:function(oe){oe.exports={leftAvatar:"leftAvatar___1Otju"}},25247:function(oe){oe.exports={recommendQuestions:"recommendQuestions___2XP7A",recommendQuestionsMsg:"recommendQuestionsMsg___2E7DF",title:"title___3BWf8",content:"content___3efc0",question:"question___3UhRo"}},46110:function(oe){oe.exports={message:"message___ov1VS",messageTitleBar:"messageTitleBar___2sQWr",modelName:"modelName___1CBlB",messageTopBar:"messageTopBar___9O3GQ",messageContent:"messageContent___5HLSN",messageBody:"messageBody___3Dtin",avatar:"avatar___1wuzv",bubble:"bubble___2rE8_",text:"text___2A2KV",textMsg:"textMsg___1Cagn",topBar:"topBar___3SUj7",messageTitleWrapper:"messageTitleWrapper___2nkrf",messageTitle:"messageTitle___nEuXN",right:"right___3ioPO",textBubble:"textBubble___ihT3i",listenerSex:"listenerSex___37uVn",listenerArea:"listenerArea___3pK5q",typing:"typing___1luaU",messageEntityName:"messageEntityName___258Wt",messageAvatar:"messageAvatar___1Ywwf",dataHolder:"dataHolder___u5qE_",subTitle:"subTitle___ck_64",subTitleValue:"subTitleValue___k_e_P",avatarPopover:"avatarPopover___3r5u1",moreOption:"moreOption___1NGcC",selectOthers:"selectOthers___2xwh0",indicators:"indicators___1jqCq",indicator:"indicator___YCPxh",contentName:"contentName___211iT",aggregatorIndicator:"aggregatorIndicator___2E_41",entityId:"entityId___1lmAV",idTitle:"idTitle___1jx5q",idValue:"idValue___bpiF6",typingBubble:"typingBubble___Q0Uqn",quote:"quote___3zRsl",filterSection:"filterSection___22RNx",filterItem:"filterItem___2-VW0",noPermissionTip:"noPermissionTip___3KH3I",tip:"tip___CcPGG",infoBar:"infoBar___2hqGy",mainEntityInfo:"mainEntityInfo___7_pqq",infoItem:"infoItem___2NwSz",infoName:"infoName___3W7On",infoValue:"infoValue___3egki",textWrapper:"textWrapper___H89lc",rightTextWrapper:"rightTextWrapper___yPncY",rightAvatar:"rightAvatar___E5la8"}},830:function(oe){oe.exports={chat:"chat___2o_TX",chatSection:"chatSection___3V3NJ",chatApp:"chatApp___16BaS",emptyHolder:"emptyHolder___563Et",navBar:"navBar___1-YkL",conversationNameWrapper:"conversationNameWrapper___367aO",conversationName:"conversationName___2BsWh",editIcon:"editIcon___2Od_L",divider:"divider___n3Yfc",conversationInput:"conversationInput___2iw0p",chatBody:"chatBody___3Qpmk",chatContent:"chatContent___1jNIi",messageContainer:"messageContainer___3pMiy",messageList:"messageList___2A2BS",messageItem:"messageItem___rC6Pf",conversationCollapsed:"conversationCollapsed___3v8GK",mobileMode:"mobileMode___BY8Ra",conversation:"conversation___2jDz6",conversationList:"conversationList___3RBs4",copilotFullscreen:"copilotFullscreen___l6frA",mobile:"mobile___1qe49",leftSection:"leftSection___3iV9h",searchConversation:"searchConversation___3HoSK",searchIcon:"searchIcon___3_aRt",searchTask:"searchTask___3LxUQ",conversationItem:"conversationItem___2Mi7f",conversationIcon:"conversationIcon___OMmBB",conversationContent:"conversationContent___1rMqO",topTitleBar:"topTitleBar___2QxlJ",conversationTime:"conversationTime___Hj0DZ",subTitle:"subTitle___eQgXn",activeConversationItem:"activeConversationItem___2dW8b",operateSection:"operateSection___2fmhC",operateItem:"operateItem___xUu3Z",operateIcon:"operateIcon___SI7eY",operateLabel:"operateLabel___Q092i",collapsed:"collapsed___Q0rnU",copilotMode:"copilotMode___2kWVq",keyword:"keyword___1PW1c",messageTime:"messageTime___gu9g5",modules:"modules___1xbPz",moduleType:"moduleType___3WYlk",moduleSelect:"moduleSelect___1DUPs",example:"example___qyX62",modulesInner:"modulesInner___P640o",moduleItem:"moduleItem___2feFt",activeModuleItem:"activeModuleItem___1SjFq",cmdItem:"cmdItem___3JNP5",optGroupBar:"optGroupBar___1SdJW",recentSearchBar:"recentSearchBar___2_mds",optGroupTitle:"optGroupTitle___37RjX",recentSearch:"recentSearch___22cDn",clearSearch:"clearSearch___39Pk0",recentSearchOption:"recentSearchOption___56Zak",optionItem:"optionItem___22ifI",removeRecentMsg:"removeRecentMsg___yYKh3",addConversation:"addConversation___1YYx4",loadingWords:"loadingWords___26Axn",associateWordsOption:"associateWordsOption___10StO",optionContent:"optionContent___1Pc9x",indicatorItem:"indicatorItem___2Lzo1",indicatorLabel:"indicatorLabel___1bkQZ",indicatorValue:"indicatorValue___2pnTF",autoCompleteDropdown:"autoCompleteDropdown___wKtOT",recommendItemTitle:"recommendItemTitle___2SKwT",refeshQuestions:"refeshQuestions___JlEIo",reloadIcon:"reloadIcon___1X8ml",recommendQuestions:"recommendQuestions___gp_hT",currentTool:"currentTool___1xNWw",removeTool:"removeTool___2WRZr",associateOption:"associateOption___3ZTe2",associateOptionAvatar:"associateOptionAvatar___gUvQm",optionIndicator:"optionIndicator___2oWOU",messageLoading:"messageLoading___Jehct"}},27818:function(oe){oe.exports={pluginManage:"pluginManage___3LJCh",filterSection:"filterSection___1jYi7",filterItem:"filterItem___1D0vz",filterItemTitle:"filterItemTitle___vY6li",filterItemControl:"filterItemControl___hWcoq",pluginList:"pluginList___sVD0w",titleBar:"titleBar___113th",title:"title___1JFve",modelColumn:"modelColumn___2RAxo",operator:"operator___2Phes",paramsSection:"paramsSection___2KM-t",filterRow:"filterRow___3dnQs",filterParamName:"filterParamName___1wJaf",filterParamValueField:"filterParamValueField___3sZph",questionExample:"questionExample___2_JHR"}},30156:function(oe){oe.exports={copilot:"copilot___1M3yf",chatPopover:"chatPopover___2j75Z",header:"header___1s7OU",title:"title___22BFm",leftSection:"leftSection___3fGx9",close:"close___p2KPJ",transfer:"transfer___2-ghx",fullscreen:"fullscreen___1uHas",chat:"chat___dlDJC",rightArrow:"rightArrow___1eUvy"}},6359:function(oe){oe.exports={loginWarp:"loginWarp___33ulX",content:"content___kTcj0",formContent:"formContent___3iWSs",formBox:"formBox___1lEWr",loginMain:"loginMain___2JIcS",title:"title___14Nxn",input:"input___27HLt",signInBtn:"signInBtn___XM5qM",tool:"tool___KFjf1",button:"button___gm0Ja"}},68143:function(oe){oe.exports={pageContainer:"pageContainer___1YXb3",externalPageContainer:"externalPageContainer___1TSgX",searchBar:"searchBar___2v1Cs",main:"main___qRCgn",rightSide:"rightSide___ooQY-",rightListSide:"rightListSide___2muVJ",leftListSide:"leftListSide___3npiR",tableTotal:"tableTotal___1VSZg",tableDetaildrawer:"tableDetaildrawer___2PDIJ",tableDetailTable:"tableDetailTable___14pfB",sqlEditor:"sqlEditor___1ewr3",sqlOprBar:"sqlOprBar___1FYEt",sqlOprBarLeftBox:"sqlOprBarLeftBox___24kL8",sqlOprBarRightBox:"sqlOprBarRightBox___3ZFrE",sqlOprIcon:"sqlOprIcon___3WhIP",sqlOprBtn:"sqlOprBtn___22eSD",sqlOprSwitch:"sqlOprSwitch___4zfeE",sqlMain:"sqlMain___2KqMi",sqlEditorWrapper:"sqlEditorWrapper___-8V62",sqlParams:"sqlParams___3VPC6",hideSqlParams:"hideSqlParams___1tDWo",sqlParamsBody:"sqlParamsBody___wHl2x",header:"header___3A-0E",title:"title___1ZIlX",icon:"icon___3egme",paramsList:"paramsList___YmGR3",paramsItem:"paramsItem___3oqte",name:"name___3zLJQ",disableIcon:"disableIcon___G1CbW",sqlTaskListWrap:"sqlTaskListWrap___1PsW7",sqlTaskList:"sqlTaskList___fGovo",sqlBottmWrap:"sqlBottmWrap___2nkn6",sqlResultWrap:"sqlResultWrap___16rbx",sqlToolBar:"sqlToolBar___3ZW8u",sqlResultPane:"sqlResultPane___2J4Kp",sqlToolBtn:"sqlToolBtn___27ZyH",runScriptBtn:"runScriptBtn___39Ds3",taskFailed:"taskFailed___1Kx9E",sqlResultContent:"sqlResultContent___3TpKZ",sqlResultLog:"sqlResultLog___1xHPV",tableList:"tableList___3hI4i",tablePage:"tablePage___2LhQK",tableListItem:"tableListItem___27d6w",tableItem:"tableItem___127XC",taskIcon:"taskIcon___3aBIV",taskSuccessIcon:"taskSuccessIcon___3XL39",taskFailIcon:"taskFailIcon___U7M6_",resultFailIcon:"resultFailIcon___3oFSk",taskItem:"taskItem___1y3vX",activeTask:"activeTask___YBkj9",resultTable:"resultTable___2DZmh",taskLogWrap:"taskLogWrap___3_C6-",siteTagPlus:"siteTagPlus___1rPSE",editTag:"editTag___1sXJQ",tagInput:"tagInput___1OZzG",outside:"outside___1sN2g",collapseRightBtn:"collapseRightBtn___3zLQQ",collapseLeftBtn:"collapseLeftBtn___18RNq",detail:"detail___2ufaP",titleCollapse:"titleCollapse___dJM7U",tableTitle:"tableTitle___1XX8H",search:"search___mqcqG",middleArea:"middleArea___eJA2_",menu:"menu___368H_",menuList:"menuList___27tJX",menuItem:"menuItem___3tI3I",menuListItem:"menuListItem___1C6z1",menuIcon:"menuIcon___34eY3",scriptFile:"scriptFile___2mstI",sqlScriptName:"sqlScriptName___38RPg",fileIcon:"fileIcon___2-aJM",itemName:"itemName___50W0I",paneName:"paneName___38IRg",titleIcon:"titleIcon___3_Z-9",dataSourceFieldsName:"dataSourceFieldsName___OJjmf"}},49927:function(oe){oe.exports={metricFilterWrapper:"metricFilterWrapper___3DbIG",metricTable:"metricTable___23-oy",searchBox:"searchBox___2lWTn",searchInput:"searchInput___1VInt"}},80647:function(oe){oe.exports={nodeInfoDrawerContent:"nodeInfoDrawerContent___a1p7f",title:"title___3v_FD",graphLegend:"graphLegend___BrJoJ",graphLegendVisibleModeItem:"graphLegendVisibleModeItem___3IXyc"}},33628:function(oe){oe.exports={commonEditList:"commonEditList___qc0AX"}},60277:function(oe){oe.exports={projectBody:"projectBody___1O75d",projectManger:"projectManger___2moa9",collapseLeftBtn:"collapseLeftBtn___271Yq",title:"title___LuK7d",tab:"tab___DxzVP",mainTip:"mainTip___1uvL1",resource:"resource___3CU5R",tree:"tree___2sPCD",headOperation:"headOperation___35Wj2",btn:"btn___2RLpC",resourceSearch:"resourceSearch___3I419",view:"view___1TePK",selectTypesBtn:"selectTypesBtn___24cg5",domainTreeSelect:"domainTreeSelect___Op7VX",domainList:"domainList___PZIcX",addBtn:"addBtn___8opNc",treeTitle:"treeTitle___2YiW-",search:"search___lSpVC",projectItem:"projectItem___2-Mu_",operation:"operation___1tdgy",icon:"icon___1rxv-",user:"user___w0WDu",paramsName:"paramsName___2MM76",deleteBtn:"deleteBtn___1it0i",authBtn:"authBtn___L5Y_I",selectedResource:"selectedResource___3RJBb",switch:"switch___1jFlm",switchUser:"switchUser___38oOw",dimensionIntentionForm:"dimensionIntentionForm___FyYSx",classTable:"classTable____ikBn",classTableSelectColumnAlignLeft:"classTableSelectColumnAlignLeft___sqT0O",permissionDrawer:"permissionDrawer___D8WZs",domainSelector:"domainSelector___NAmEr",downIcon:"downIcon___1oUlL",overviewExtraContainer:"overviewExtraContainer___2blJS",extraWrapper:"extraWrapper___1WW79",extraStatistic:"extraStatistic___2jUk3",extraTitle:"extraTitle___3z5J2",extraValue:"extraValue___2Ir7u",infoTagList:"infoTagList___2JA93",siteTagPlus:"siteTagPlus___1xPLu",editTag:"editTag___3QSGZ",tagInput:"tagInput___3FcCc",semanticGraphCanvas:"semanticGraphCanvas___26kZV",toolbar:"toolbar___2tFO6",canvasContainer:"canvasContainer___1fxGU"}},57084:function(){},98305:function(){},99509:function(){},16152:function(){},7391:function(){},11913:function(){},96138:function(){},76229:function(){},56640:function(){},29504:function(){},161:function(){},32517:function(){},9822:function(){},98849:function(){},877:function(){},59949:function(){},78848:function(){},52436:function(){},7700:function(){},2828:function(){},80471:function(){},17124:function(){},43361:function(){},17212:function(){},60870:function(){},16089:function(){},85378:function(){},36003:function(){},96106:function(){},45282:function(){},71578:function(){},93562:function(){},83931:function(){},28152:function(){},25394:function(){},47369:function(){},3178:function(){},58136:function(){},52683:function(){},80341:function(){},9683:function(){},70347:function(){},3519:function(){},64752:function(){},50596:function(){},33508:function(){},86591:function(){},68179:function(){},50061:function(){},10469:function(){},3482:function(){},34442:function(){},80638:function(){},53469:function(){},54638:function(){},7104:function(){},12001:function(){},57719:function(){},8116:function(){},79186:function(){},41412:function(){},5810:function(){},62259:function(){},44887:function(){},31930:function(){},70350:function(){},44943:function(){},67178:function(){},23166:function(){},99210:function(){},47323:function(){},18067:function(){},34294:function(){},34621:function(){},955:function(){},48395:function(){},38663:function(){},33389:function(){},31242:function(){},25414:function(){},13277:function(){},92801:function(){},24090:function(){},66247:function(){},45747:function(){},16695:function(){},47828:function(){},60923:function(oe,N,o){"use strict";o.d(N,{i:function(){return g}});var x={navTheme:"light",primaryColor:"#296DF3",layout:"mix",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,colorWeak:!1,title:"",pwa:!1,iconfontUrl:"//at.alicdn.com/t/c/font_4120566_qiku6b2kol.js",splitMenus:!0,menu:{defaultOpenAll:!0,autoClose:!1,ignoreFlatMenu:!0}},g="/webapp/";N.Z=x},9684:function(oe,N,o){"use strict";o.d(N,{f:function(){return y},m:function(){return A}});var x=o(83233),g={basename:"/webapp/"};window.routerBase&&(g.basename=window.routerBase);var A={npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.__IS_SERVER?null:(0,x.lX)(g),y=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return w||(A=(0,x.lX)(g)),A}},72255:function(oe,N,o){"use strict";o.d(N,{B:function(){return g}});var x=o(85560),g=new x.Plugin({validKeys:["modifyClientRenderOpts","patchRoutes","rootContainer","render","onRouteChange","__mfsu","dva","getInitialState","initialStateConfig","locale","layout","layoutActionRef","request"]})},20546:function(oe,N,o){"use strict";o.d(N,{ql:function(){return Os},pD:function(){return D},$j:function(){return v.$j},m8:function(){return x.m},BA:function(){return g.B},WY:function(){return Ue},Bz:function(){return M.B},md:function(){return m},I0:function(){return v.I0},YB:function(){return _.YB},tT:function(){return W.t}});var x=o(9684),g=o(72255),A=o(67294),y=o(57650),M=o(14027),w=o(85893),m=function(){var Rn=(0,A.useContext)(y.Z);return Rn},b=function(Rn){var Sr=Rn.accessible,nn=Rn.fallback,sn=Rn.children;return _jsx(_Fragment,{children:Sr?sn:nn})},v=o(48476),h=o(30102),d=o(4856),_=o(50475),p=o(19597),S=null,k=function(Rn){var Sr=Rn.overlayClassName,nn=_objectWithoutProperties(Rn,S);return _jsx(_Dropdown,_objectSpread({overlayClassName:Sr},nn))},O=function(Rn){return Rn.reduce(function(Sr,nn){return nn.lang?_objectSpread(_objectSpread({},Sr),{},_defineProperty({},nn.lang,nn)):Sr},{})},F={"ar-EG":{lang:"ar-EG",label:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",icon:"\u{1F1EA}\u{1F1EC}",title:"\u0644\u063A\u0629"},"az-AZ":{lang:"az-AZ",label:"Az\u0259rbaycan dili",icon:"\u{1F1E6}\u{1F1FF}",title:"Dil"},"bg-BG":{lang:"bg-BG",label:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438 \u0435\u0437\u0438\u043A",icon:"\u{1F1E7}\u{1F1EC}",title:"\u0435\u0437\u0438\u043A"},"bn-BD":{lang:"bn-BD",label:"\u09AC\u09BE\u0982\u09B2\u09BE",icon:"\u{1F1E7}\u{1F1E9}",title:"\u09AD\u09BE\u09B7\u09BE"},"ca-ES":{lang:"ca-ES",label:"Catal\xE1",icon:"\u{1F1E8}\u{1F1E6}",title:"llengua"},"cs-CZ":{lang:"cs-CZ",label:"\u010Ce\u0161tina",icon:"\u{1F1E8}\u{1F1FF}",title:"Jazyk"},"da-DK":{lang:"da-DK",label:"Dansk",icon:"\u{1F1E9}\u{1F1F0}",title:"Sprog"},"de-DE":{lang:"de-DE",label:"Deutsch",icon:"\u{1F1E9}\u{1F1EA}",title:"Sprache"},"el-GR":{lang:"el-GR",label:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",icon:"\u{1F1EC}\u{1F1F7}",title:"\u0393\u03BB\u03CE\u03C3\u03C3\u03B1"},"en-GB":{lang:"en-GB",label:"English",icon:"\u{1F1EC}\u{1F1E7}",title:"Language"},"en-US":{lang:"en-US",label:"English",icon:"\u{1F1FA}\u{1F1F8}",title:"Language"},"es-ES":{lang:"es-ES",label:"Espa\xF1ol",icon:"\u{1F1EA}\u{1F1F8}",title:"Idioma"},"et-EE":{lang:"et-EE",label:"Eesti",icon:"\u{1F1EA}\u{1F1EA}",title:"Keel"},"fa-IR":{lang:"fa-IR",label:"\u0641\u0627\u0631\u0633\u06CC",icon:"\u{1F1EE}\u{1F1F7}",title:"\u0632\u0628\u0627\u0646"},"fi-FI":{lang:"fi-FI",label:"Suomi",icon:"\u{1F1EB}\u{1F1EE}",title:"Kieli"},"fr-BE":{lang:"fr-BE",label:"Fran\xE7ais",icon:"\u{1F1E7}\u{1F1EA}",title:"Langue"},"fr-FR":{lang:"fr-FR",label:"Fran\xE7ais",icon:"\u{1F1EB}\u{1F1F7}",title:"Langue"},"ga-IE":{lang:"ga-IE",label:"Gaeilge",icon:"\u{1F1EE}\u{1F1EA}",title:"Teanga"},"he-IL":{lang:"he-IL",label:"\u05E2\u05D1\u05E8\u05D9\u05EA",icon:"\u{1F1EE}\u{1F1F1}",title:"\u05E9\u05E4\u05D4"},"hi-IN":{lang:"hi-IN",label:"\u0939\u093F\u0928\u094D\u0926\u0940, \u0939\u093F\u0902\u0926\u0940",icon:"\u{1F1EE}\u{1F1F3}",title:"\u092D\u093E\u0937\u093E: \u0939\u093F\u0928\u094D\u0926\u0940"},"hr-HR":{lang:"hr-HR",label:"Hrvatski jezik",icon:"\u{1F1ED}\u{1F1F7}",title:"Jezik"},"hu-HU":{lang:"hu-HU",label:"Magyar",icon:"\u{1F1ED}\u{1F1FA}",title:"Nyelv"},"hy-AM":{lang:"hu-HU",label:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",icon:"\u{1F1E6}\u{1F1F2}",title:"\u053C\u0565\u0566\u0578\u0582"},"id-ID":{lang:"id-ID",label:"Bahasa Indonesia",icon:"\u{1F1EE}\u{1F1E9}",title:"Bahasa"},"it-IT":{lang:"it-IT",label:"Italiano",icon:"\u{1F1EE}\u{1F1F9}",title:"Linguaggio"},"is-IS":{lang:"is-IS",label:"\xCDslenska",icon:"\u{1F1EE}\u{1F1F8}",title:"Tungum\xE1l"},"ja-JP":{lang:"ja-JP",label:"\u65E5\u672C\u8A9E",icon:"\u{1F1EF}\u{1F1F5}",title:"\u8A00\u8A9E"},"ku-IQ":{lang:"ku-IQ",label:"\u06A9\u0648\u0631\u062F\u06CC",icon:"\u{1F1EE}\u{1F1F6}",title:"Ziman"},"kn-IN":{lang:"zh-TW",label:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",icon:"\u{1F1EE}\u{1F1F3}",title:"\u0CAD\u0CBE\u0CB7\u0CC6"},"ko-KR":{lang:"ko-KR",label:"\uD55C\uAD6D\uC5B4",icon:"\u{1F1F0}\u{1F1F7}",title:"\uC5B8\uC5B4"},"lv-LV":{lang:"lv-LV",label:"Latvie\u0161u valoda",icon:"\u{1F1F1}\u{1F1EE}",title:"Kalba"},"mk-MK":{lang:"mk-MK",label:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438 \u0458\u0430\u0437\u0438\u043A",icon:"\u{1F1F2}\u{1F1F0}",title:"\u0408\u0430\u0437\u0438\u043A"},"mn-MN":{lang:"mn-MN",label:"\u041C\u043E\u043D\u0433\u043E\u043B \u0445\u044D\u043B",icon:"\u{1F1F2}\u{1F1F3}",title:"\u0425\u044D\u043B"},"ms-MY":{lang:"ms-MY",label:"\u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064A\u0648\u200E",icon:"\u{1F1F2}\u{1F1FE}",title:"Bahasa"},"nb-NO":{lang:"nb-NO",label:"Norsk",icon:"\u{1F1F3}\u{1F1F4}",title:"Spr\xE5k"},"ne-NP":{lang:"ne-NP",label:"\u0928\u0947\u092A\u093E\u0932\u0940",icon:"\u{1F1F3}\u{1F1F5}",title:"\u092D\u093E\u0937\u093E"},"nl-BE":{lang:"nl-BE",label:"Vlaams",icon:"\u{1F1E7}\u{1F1EA}",title:"Taal"},"nl-NL":{lang:"nl-NL",label:"Vlaams",icon:"\u{1F1F3}\u{1F1F1}",title:"Taal"},"pl-PL":{lang:"pl-PL",label:"Polski",icon:"\u{1F1F5}\u{1F1F1}",title:"J\u0119zyk"},"pt-BR":{lang:"pt-BR",label:"Portugu\xEAs",icon:"\u{1F1E7}\u{1F1F7}",title:"Idiomas"},"pt-PT":{lang:"pt-PT",label:"Portugu\xEAs",icon:"\u{1F1F5}\u{1F1F9}",title:"Idiomas"},"ro-RO":{lang:"ro-RO",label:"Rom\xE2n\u0103",icon:"\u{1F1F7}\u{1F1F4}",title:"Limba"},"ru-RU":{lang:"ru-RU",label:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",icon:"\u{1F1F7}\u{1F1FA}",title:"\u044F\u0437\u044B\u043A"},"sk-SK":{lang:"sk-SK",label:"Sloven\u010Dina",icon:"\u{1F1F8}\u{1F1F0}",title:"Jazyk"},"sr-RS":{lang:"sr-RS",label:"\u0441\u0440\u043F\u0441\u043A\u0438 \u0458\u0435\u0437\u0438\u043A",icon:"\u{1F1F8}\u{1F1F7}",title:"\u0408\u0435\u0437\u0438\u043A"},"sl-SI":{lang:"sl-SI",label:"Sloven\u0161\u010Dina",icon:"\u{1F1F8}\u{1F1F1}",title:"Jezik"},"sv-SE":{lang:"sv-SE",label:"Svenska",icon:"\u{1F1F8}\u{1F1EA}",title:"Spr\xE5k"},"ta-IN":{lang:"ta-IN",label:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",icon:"\u{1F1EE}\u{1F1F3}",title:"\u0BAE\u0BCA\u0BB4\u0BBF"},"th-TH":{lang:"th-TH",label:"\u0E44\u0E17\u0E22",icon:"\u{1F1F9}\u{1F1ED}",title:"\u0E20\u0E32\u0E29\u0E32"},"tr-TR":{lang:"tr-TR",label:"T\xFCrk\xE7e",icon:"\u{1F1F9}\u{1F1F7}",title:"Dil"},"uk-UA":{lang:"uk-UA",label:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",icon:"\u{1F1FA}\u{1F1F0}",title:"\u041C\u043E\u0432\u0430"},"vi-VN":{lang:"vi-VN",label:"Ti\u1EBFng Vi\u1EC7t",icon:"\u{1F1FB}\u{1F1F3}",title:"Ng\xF4n ng\u1EEF"},"zh-CN":{lang:"zh-CN",label:"\u7B80\u4F53\u4E2D\u6587",icon:"\u{1F1E8}\u{1F1F3}",title:"\u8BED\u8A00"},"zh-TW":{lang:"zh-TW",label:"\u7E41\u9AD4\u4E2D\u6587",icon:"\u{1F1ED}\u{1F1F0}",title:"\u8A9E\u8A00"}},D=function(Rn){return(0,w.jsx)(w.Fragment,{})},Z={},W=o(53776),U=o(39428),L=o(3182),V=o(11849),$=o(2138),G=o(85560),z=o(44269),K=o(59686),re=o.n(K),ne=o(97397),Q=o.n(ne);function ue(){return typeof document!="undefined"&&typeof document.visibilityState!="undefined"?document.visibilityState!=="hidden":!0}function he(){return typeof navigator.onLine!="undefined"?navigator.onLine:!0}var Ee=new Map,ce=function(Rn,Sr,nn){var sn=Ee.get(Rn);(sn==null?void 0:sn.timer)&&clearTimeout(sn.timer);var Ot=void 0;Sr>-1&&(Ot=setTimeout(function(){Ee.delete(Rn)},Sr)),Ee.set(Rn,{data:nn,timer:Ot,startTime:new Date().getTime()})},ve=function(Rn){var Sr=Ee.get(Rn);return{data:Sr==null?void 0:Sr.data,startTime:Sr==null?void 0:Sr.startTime}},fe=function(Ar,Rn){var Sr=typeof Symbol=="function"&&Ar[Symbol.iterator];if(!Sr)return Ar;var nn=Sr.call(Ar),sn,Ot=[],gr;try{for(;(Rn===void 0||Rn-- >0)&&!(sn=nn.next()).done;)Ot.push(sn.value)}catch(Gr){gr={error:Gr}}finally{try{sn&&!sn.done&&(Sr=nn.return)&&Sr.call(nn)}finally{if(gr)throw gr.error}}return Ot},we=function(){for(var Ar=[],Rn=0;Rn<arguments.length;Rn++)Ar=Ar.concat(fe(arguments[Rn]));return Ar};function me(Ar,Rn){var Sr=!1;return function(){for(var nn=[],sn=0;sn<arguments.length;sn++)nn[sn]=arguments[sn];Sr||(Sr=!0,Ar.apply(void 0,we(nn)),setTimeout(function(){Sr=!1},Rn))}}var Pe=function(Ar,Rn){var Sr=typeof Symbol=="function"&&Ar[Symbol.iterator];if(!Sr)return Ar;var nn=Sr.call(Ar),sn,Ot=[],gr;try{for(;(Rn===void 0||Rn-- >0)&&!(sn=nn.next()).done;)Ot.push(sn.value)}catch(Gr){gr={error:Gr}}finally{try{sn&&!sn.done&&(Sr=nn.return)&&Sr.call(nn)}finally{if(gr)throw gr.error}}return Ot},pe=function(){for(var Ar=[],Rn=0;Rn<arguments.length;Rn++)Ar=Ar.concat(Pe(arguments[Rn]));return Ar};function Ie(Ar){var Rn=useRef(function(){throw new Error("Cannot call an event handler while rendering.")});Rn.current=Ar;var Sr=useCallback(function(){for(var nn=[],sn=0;sn<arguments.length;sn++)nn[sn]=arguments[sn];var Ot=Rn.current;if(Ot)return Ot.apply(void 0,pe(nn))},[Rn]);if(typeof Ar=="function")return Sr}var Je=null,ke=function(Rn,Sr){var nn=useRef(!1);useEffect(function(){return function(){nn.current=!1}},[]),useEffect(function(){if(!nn.current)nn.current=!0;else return Rn()},Sr)},De=null,Fe=[];function Qe(Ar){return Fe.push(Ar),function(){var Sr=Fe.indexOf(Ar);Fe.splice(Sr,1)}}var qe=!1;if(typeof window!="undefined"&&window.addEventListener&&!qe){var et=function(){if(!(!ue()||!he()))for(var Rn=0;Rn<Fe.length;Rn++){var Sr=Fe[Rn];Sr()}};window.addEventListener("visibilitychange",et,!1),window.addEventListener("focus",et,!1),qe=!0}var dt=Qe,Ke=[];function Ge(Ar){return Ke.push(Ar),function(){var Sr=Ke.indexOf(Ar);Ke.splice(Sr,1)}}var wt=!1;if(typeof window!="undefined"&&window.addEventListener&&!wt){var Vt=function(){if(!!ue())for(var Rn=0;Rn<Ke.length;Rn++){var Sr=Ke[Rn];Sr()}};window.addEventListener("visibilitychange",Vt,!1),wt=!0}var gt=Ge,it=function(){return it=Object.assign||function(Ar){for(var Rn,Sr=1,nn=arguments.length;Sr<nn;Sr++){Rn=arguments[Sr];for(var sn in Rn)Object.prototype.hasOwnProperty.call(Rn,sn)&&(Ar[sn]=Rn[sn])}return Ar},it.apply(this,arguments)},Le=function(Ar,Rn){var Sr=typeof Symbol=="function"&&Ar[Symbol.iterator];if(!Sr)return Ar;var nn=Sr.call(Ar),sn,Ot=[],gr;try{for(;(Rn===void 0||Rn-- >0)&&!(sn=nn.next()).done;)Ot.push(sn.value)}catch(Gr){gr={error:Gr}}finally{try{sn&&!sn.done&&(Sr=nn.return)&&Sr.call(nn)}finally{if(gr)throw gr.error}}return Ot},ct=function(){for(var Ar=[],Rn=0;Rn<arguments.length;Rn++)Ar=Ar.concat(Le(arguments[Rn]));return Ar},at="AHOOKS_USE_REQUEST_DEFAULT_KEY",jt=function(){function Ar(Rn,Sr,nn,sn){this.count=0,this.pollingWhenVisibleFlag=!1,this.pollingTimer=void 0,this.loadingDelayTimer=void 0,this.unsubscribe=[],this.that=this,this.state={loading:!1,params:[],data:void 0,error:void 0,run:this.run.bind(this.that),mutate:this.mutate.bind(this.that),refresh:this.refresh.bind(this.that),cancel:this.cancel.bind(this.that),unmount:this.unmount.bind(this.that)},this.service=Rn,this.config=Sr,this.subscribe=nn,sn&&(this.state=it(it({},this.state),sn)),this.debounceRun=this.config.debounceInterval?re()(this._run,this.config.debounceInterval):void 0,this.throttleRun=this.config.throttleInterval?Q()(this._run,this.config.throttleInterval):void 0,this.limitRefresh=me(this.refresh.bind(this),this.config.focusTimespan),this.config.pollingInterval&&this.unsubscribe.push(gt(this.rePolling.bind(this))),this.config.refreshOnWindowFocus&&this.unsubscribe.push(dt(this.limitRefresh.bind(this)))}return Ar.prototype.setState=function(Rn){Rn===void 0&&(Rn={}),this.state=it(it({},this.state),Rn),this.subscribe(this.state)},Ar.prototype._run=function(){for(var Rn=this,Sr=[],nn=0;nn<arguments.length;nn++)Sr[nn]=arguments[nn];this.pollingTimer&&clearTimeout(this.pollingTimer),this.loadingDelayTimer&&clearTimeout(this.loadingDelayTimer),this.count+=1;var sn=this.count;return this.setState({loading:!this.config.loadingDelay,params:Sr}),this.config.loadingDelay&&(this.loadingDelayTimer=setTimeout(function(){Rn.setState({loading:!0})},this.config.loadingDelay)),this.service.apply(this,ct(Sr)).then(function(Ot){if(sn!==Rn.count)return new Promise(function(){});Rn.loadingDelayTimer&&clearTimeout(Rn.loadingDelayTimer);var gr=Rn.config.formatResult?Rn.config.formatResult(Ot):Ot;return Rn.setState({data:gr,error:void 0,loading:!1}),Rn.config.onSuccess&&Rn.config.onSuccess(gr,Sr),gr}).catch(function(Ot){if(sn!==Rn.count)return new Promise(function(){});if(Rn.loadingDelayTimer&&clearTimeout(Rn.loadingDelayTimer),Rn.setState({data:void 0,error:Ot,loading:!1}),Rn.config.onError&&Rn.config.onError(Ot,Sr),Rn.config.throwOnError)throw Ot;return console.error(Ot),Promise.reject("useRequest has caught the exception, if you need to handle the exception yourself, you can set options.throwOnError to true.")}).finally(function(){if(sn===Rn.count&&Rn.config.pollingInterval){if(!ue()&&!Rn.config.pollingWhenHidden){Rn.pollingWhenVisibleFlag=!0;return}Rn.pollingTimer=setTimeout(function(){Rn._run.apply(Rn,ct(Sr))},Rn.config.pollingInterval)}})},Ar.prototype.run=function(){for(var Rn=[],Sr=0;Sr<arguments.length;Sr++)Rn[Sr]=arguments[Sr];return this.debounceRun?(this.debounceRun.apply(this,ct(Rn)),Promise.resolve(null)):this.throttleRun?(this.throttleRun.apply(this,ct(Rn)),Promise.resolve(null)):this._run.apply(this,ct(Rn))},Ar.prototype.cancel=function(){this.debounceRun&&this.debounceRun.cancel(),this.throttleRun&&this.throttleRun.cancel(),this.loadingDelayTimer&&clearTimeout(this.loadingDelayTimer),this.pollingTimer&&clearTimeout(this.pollingTimer),this.pollingWhenVisibleFlag=!1,this.count+=1,this.setState({loading:!1})},Ar.prototype.refresh=function(){return this.run.apply(this,ct(this.state.params))},Ar.prototype.rePolling=function(){this.pollingWhenVisibleFlag&&(this.pollingWhenVisibleFlag=!1,this.refresh())},Ar.prototype.mutate=function(Rn){typeof Rn=="function"?this.setState({data:Rn(this.state.data)||{}}):this.setState({data:Rn})},Ar.prototype.unmount=function(){this.cancel(),this.unsubscribe.forEach(function(Rn){Rn()})},Ar}();function St(Ar,Rn){var Sr=Rn||{},nn=Sr.refreshDeps,sn=nn===void 0?[]:nn,Ot=Sr.manual,gr=Ot===void 0?!1:Ot,Gr=Sr.onSuccess,Ln=Gr===void 0?function(){}:Gr,Tr=Sr.onError,Dn=Tr===void 0?function(){}:Tr,Pr=Sr.defaultLoading,fa=Pr===void 0?!1:Pr,ka=Sr.loadingDelay,Li=Sr.pollingInterval,zi=Li===void 0?0:Li,Mo=Sr.pollingWhenHidden,Za=Mo===void 0?!0:Mo,ao=Sr.defaultParams,Mi=ao===void 0?[]:ao,Eo=Sr.refreshOnWindowFocus,Xi=Eo===void 0?!1:Eo,Bo=Sr.focusTimespan,ol=Bo===void 0?5e3:Bo,Il=Sr.fetchKey,ms=Sr.cacheKey,mc=Sr.cacheTime,Ys=mc===void 0?5*60*1e3:mc,hl=Sr.staleTime,Rs=hl===void 0?0:hl,xl=Sr.debounceInterval,Wl=Sr.throttleInterval,_l=Sr.initialData,Ls=Sr.ready,zn=Ls===void 0?!0:Ls,Dr=Sr.throwOnError,Hr=Dr===void 0?!1:Dr,_a=useRef(at),Ti=usePersistFn(Ar),Ci=usePersistFn(Ln),da=usePersistFn(Dn),Da=usePersistFn(Il),mi;"formatResult"in Sr&&(mi=Sr.formatResult);var Ho=usePersistFn(mi),al={formatResult:Ho,onSuccess:Ci,onError:da,loadingDelay:ka,pollingInterval:zi,pollingWhenHidden:Za,refreshOnWindowFocus:!gr&&Xi,focusTimespan:ol,debounceInterval:xl,throttleInterval:Wl,throwOnError:Hr},ml=usePersistFn(function(Zc,Zu){dl(function(Fc){return Fc[Zc]=Zu,it({},Fc)})}),Xs=Le(useState(function(){var Zc;if(ms){var Zu=(Zc=getCache(ms))===null||Zc===void 0?void 0:Zc.data;if(Zu){_a.current=Zu.newstFetchKey;var Fc={};return Object.keys(Zu.fetches).forEach(function(Hc){var Vu=Zu.fetches[Hc],ws=new jt(Ti,al,ml.bind(null,Hc),{loading:Vu.loading,params:Vu.params,data:Vu.data,error:Vu.error});Fc[Hc]=ws.state}),Fc}}return{}}),2),Ps=Xs[0],dl=Xs[1],ql=useRef(Ps);ql.current=Ps;var Dc=useRef(),Jl=useCallback(function(){for(var Zc=[],Zu=0;Zu<arguments.length;Zu++)Zc[Zu]=arguments[Zu];if(!zn){Dc.current=Zc;return}if(Da){var Fc=Da.apply(void 0,ct(Zc));_a.current=Fc===void 0?at:Fc}var Hc=_a.current,Vu=ql.current[Hc];if(!Vu){var ws=new jt(Ti,al,ml.bind(null,Hc),{data:_l});Vu=ws.state,dl(function(fc){return fc[Hc]=Vu,it({},fc)})}return Vu.run.apply(Vu,ct(Zc))},[Il,ml,zn]),oc=useRef(Jl);oc.current=Jl,useUpdateEffect(function(){ms&&setCache(ms,Ys,{fetches:Ps,newstFetchKey:_a.current})},[ms,Ps]);var xu=useRef(!1);useUpdateEffect(function(){zn&&(!xu.current&&Dc.current&&oc.current.apply(oc,ct(Dc.current)),xu.current=!0)},[zn]),useEffect(function(){var Zc;if(!gr)if(Object.keys(Ps).length>0){var Zu=ms&&((Zc=getCache(ms))===null||Zc===void 0?void 0:Zc.startTime)||0;Rs===-1||new Date().getTime()-Zu<=Rs||Object.values(Ps).forEach(function(Fc){Fc.refresh()})}else oc.current.apply(oc,ct(Mi))},[]);var yf=useCallback(function(){Object.values(ql.current).forEach(function(Zc){Zc.unmount()}),_a.current=at,dl({}),ql.current={}},[dl]);useUpdateEffect(function(){gr||Object.values(ql.current).forEach(function(Zc){Zc.refresh()})},ct(sn)),useEffect(function(){return function(){Object.values(ql.current).forEach(function(Zc){Zc.unmount()})}},[]);var ku=useCallback(function(Zc){return function(){console.warn("You should't call "+Zc+" when service not executed once.")}},[]);return it(it({loading:zn&&!gr||fa,data:_l,error:void 0,params:[],cancel:ku("cancel"),refresh:ku("refresh"),mutate:ku("mutate")},Ps[_a.current]||{}),{run:Jl,fetches:Ps,reset:yf})}var fn=null,Xt=function(){return Xt=Object.assign||function(Ar){for(var Rn,Sr=1,nn=arguments.length;Sr<nn;Sr++){Rn=arguments[Sr];for(var sn in Rn)Object.prototype.hasOwnProperty.call(Rn,sn)&&(Ar[sn]=Rn[sn])}return Ar},Xt.apply(this,arguments)},Yt=function(Ar,Rn){var Sr={};for(var nn in Ar)Object.prototype.hasOwnProperty.call(Ar,nn)&&Rn.indexOf(nn)<0&&(Sr[nn]=Ar[nn]);if(Ar!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,nn=Object.getOwnPropertySymbols(Ar);sn<nn.length;sn++)Rn.indexOf(nn[sn])<0&&Object.prototype.propertyIsEnumerable.call(Ar,nn[sn])&&(Sr[nn[sn]]=Ar[nn[sn]]);return Sr},Rt=function(Ar,Rn){var Sr=typeof Symbol=="function"&&Ar[Symbol.iterator];if(!Sr)return Ar;var nn=Sr.call(Ar),sn,Ot=[],gr;try{for(;(Rn===void 0||Rn-- >0)&&!(sn=nn.next()).done;)Ot.push(sn.value)}catch(Gr){gr={error:Gr}}finally{try{sn&&!sn.done&&(Sr=nn.return)&&Sr.call(nn)}finally{if(gr)throw gr.error}}return Ot},Lt=function(){for(var Ar=[],Rn=0;Rn<arguments.length;Rn++)Ar=Ar.concat(Rt(arguments[Rn]));return Ar};function ze(Ar,Rn){var Sr=Rn.refreshDeps,nn=Sr===void 0?[]:Sr,sn=Rn.ref,Ot=Rn.isNoMore,gr=Rn.threshold,Gr=gr===void 0?100:gr,Ln=Rn.fetchKey,Tr=Yt(Rn,["refreshDeps","ref","isNoMore","threshold","fetchKey"]),Dn=Rt(useState(!1),2),Pr=Dn[0],fa=Dn[1];useEffect(function(){Rn.fetchKey&&console.warn("useRequest loadMore mode don't need fetchKey!")},[]);var ka=useAsync(Ar,Xt(Xt({},Tr),{fetchKey:function(hl){var Rs;return((Rs=hl==null?void 0:hl.list)===null||Rs===void 0?void 0:Rs.length)||0},onSuccess:function(){for(var hl=[],Rs=0;Rs<arguments.length;Rs++)hl[Rs]=arguments[Rs];fa(!1),Rn.onSuccess&&Rn.onSuccess.apply(Rn,Lt(hl))}})),Li=ka.data,zi=ka.run,Mo=ka.params,Za=ka.reset,ao=ka.loading,Mi=ka.fetches,Eo=useCallback(function(){Za();var Ys=Rt(Mo),hl=Ys.slice(1);zi.apply(void 0,Lt([void 0],hl))},[zi,Za,Mo]),Xi=useRef(Eo);Xi.current=Eo,useUpdateEffect(function(){Rn.manual||Xi.current()},Lt(nn));var Bo=useMemo(function(){var Ys=[],hl=Li;return Object.values(Mi).forEach(function(Rs){var xl,Wl;((xl=Rs.data)===null||xl===void 0?void 0:xl.list)&&(Ys=Ys.concat((Wl=Rs.data)===null||Wl===void 0?void 0:Wl.list)),Rs.loading||(hl=Rs.data)}),Xt(Xt({},hl),{list:Ys})},[Mi,Li]),ol=Ot?!ao&&!Pr&&Ot(Bo):!1,Il=useCallback(function(){if(!ol){fa(!0);var Ys=Rt(Mo),hl=Ys.slice(1);zi.apply(void 0,Lt([Bo],hl))}},[ol,zi,Bo,Mo]),ms=function(){ao||Pr||!sn||!sn.current||sn.current.scrollHeight-sn.current.scrollTop<=sn.current.clientHeight+Gr&&Il()},mc=useRef(ms);return mc.current=ms,useEffect(function(){if(!sn||!sn.current)return function(){};var Ys=function(){return mc.current()};return sn.current.addEventListener("scroll",Ys),function(){sn&&sn.current&&sn.current.removeEventListener("scroll",Ys)}},[mc]),Xt(Xt({},ka),{data:Bo,reload:Eo,loading:ao&&Bo.list.length===0,loadMore:Il,loadingMore:Pr,noMore:ol})}var rt=null,tt=function(){return tt=Object.assign||function(Ar){for(var Rn,Sr=1,nn=arguments.length;Sr<nn;Sr++){Rn=arguments[Sr];for(var sn in Rn)Object.prototype.hasOwnProperty.call(Rn,sn)&&(Ar[sn]=Rn[sn])}return Ar},tt.apply(this,arguments)},de=function(Ar,Rn){var Sr={};for(var nn in Ar)Object.prototype.hasOwnProperty.call(Ar,nn)&&Rn.indexOf(nn)<0&&(Sr[nn]=Ar[nn]);if(Ar!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,nn=Object.getOwnPropertySymbols(Ar);sn<nn.length;sn++)Rn.indexOf(nn[sn])<0&&Object.prototype.propertyIsEnumerable.call(Ar,nn[sn])&&(Sr[nn[sn]]=Ar[nn[sn]]);return Sr},ot=function(Ar,Rn){var Sr=typeof Symbol=="function"&&Ar[Symbol.iterator];if(!Sr)return Ar;var nn=Sr.call(Ar),sn,Ot=[],gr;try{for(;(Rn===void 0||Rn-- >0)&&!(sn=nn.next()).done;)Ot.push(sn.value)}catch(Gr){gr={error:Gr}}finally{try{sn&&!sn.done&&(Sr=nn.return)&&Sr.call(nn)}finally{if(gr)throw gr.error}}return Ot},Et=function(){for(var Ar=[],Rn=0;Rn<arguments.length;Rn++)Ar=Ar.concat(ot(arguments[Rn]));return Ar};function Ht(Ar,Rn){var Sr=Rn.paginated,nn=Rn.defaultPageSize,sn=nn===void 0?10:nn,Ot=Rn.refreshDeps,gr=Ot===void 0?[]:Ot,Gr=Rn.fetchKey,Ln=de(Rn,["paginated","defaultPageSize","refreshDeps","fetchKey"]);useEffect(function(){Gr&&console.error("useRequest pagination's fetchKey will not work!")},[]);var Tr=useAsync(Ar,tt({defaultParams:[{current:1,pageSize:sn}]},Ln)),Dn=Tr.data,Pr=Tr.params,fa=Tr.run,ka=Tr.loading,Li=de(Tr,["data","params","run","loading"]),zi=Pr&&Pr[0]?Pr[0]:{},Mo=zi.current,Za=Mo===void 0?1:Mo,ao=zi.pageSize,Mi=ao===void 0?sn:ao,Eo=zi.sorter,Xi=Eo===void 0?{}:Eo,Bo=zi.filters,ol=Bo===void 0?{}:Bo,Il=useCallback(function(_l){var Ls=ot(Pr),zn=Ls[0],Dr=Ls.slice(1);fa.apply(void 0,Et([tt(tt({},zn),_l)],Dr))},[fa,Pr]),ms=(Dn==null?void 0:Dn.total)||0,mc=useMemo(function(){return Math.ceil(ms/Mi)},[Mi,ms]),Ys=useCallback(function(_l,Ls){var zn=_l<=0?1:_l,Dr=Ls<=0?1:Ls,Hr=Math.ceil(ms/Dr);zn>Hr&&(zn=Math.max(1,Hr)),Il({current:zn,pageSize:Dr})},[ms,Il]),hl=useCallback(function(_l){Ys(_l,Mi)},[Ys,Mi]),Rs=useCallback(function(_l){Ys(Za,_l)},[Ys,Za]),xl=useRef(hl);xl.current=hl,useUpdateEffect(function(){Rn.manual||xl.current(1)},Et(gr));var Wl=useCallback(function(_l,Ls,zn){Il({current:_l.current,pageSize:_l.pageSize||sn,filters:Ls,sorter:zn})},[ol,Xi,Il]);return tt({loading:ka,data:Dn,params:Pr,run:fa,pagination:{current:Za,pageSize:Mi,total:ms,totalPage:mc,onChange:Ys,changeCurrent:hl,changePageSize:Rs},tableProps:{dataSource:(Dn==null?void 0:Dn.list)||[],loading:ka,onChange:Wl,pagination:{current:Za,pageSize:Mi,total:ms}},sorter:Xi,filters:ol},Li)}var Jt=null,Qt=A.createContext({});Qt.displayName="UseRequestConfigContext";var an=Qt,Un=function(){return Un=Object.assign||function(Ar){for(var Rn,Sr=1,nn=arguments.length;Sr<nn;Sr++){Rn=arguments[Sr];for(var sn in Rn)Object.prototype.hasOwnProperty.call(Rn,sn)&&(Ar[sn]=Rn[sn])}return Ar},Un.apply(this,arguments)},qt=function(Ar,Rn){var Sr={};for(var nn in Ar)Object.prototype.hasOwnProperty.call(Ar,nn)&&Rn.indexOf(nn)<0&&(Sr[nn]=Ar[nn]);if(Ar!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,nn=Object.getOwnPropertySymbols(Ar);sn<nn.length;sn++)Rn.indexOf(nn[sn])<0&&Object.prototype.propertyIsEnumerable.call(Ar,nn[sn])&&(Sr[nn[sn]]=Ar[nn[sn]]);return Sr},rn=function(Ar,Rn){var Sr=typeof Symbol=="function"&&Ar[Symbol.iterator];if(!Sr)return Ar;var nn=Sr.call(Ar),sn,Ot=[],gr;try{for(;(Rn===void 0||Rn-- >0)&&!(sn=nn.next()).done;)Ot.push(sn.value)}catch(Gr){gr={error:Gr}}finally{try{sn&&!sn.done&&(Sr=nn.return)&&Sr.call(nn)}finally{if(gr)throw gr.error}}return Ot},cn=function(){for(var Ar=[],Rn=0;Rn<arguments.length;Rn++)Ar=Ar.concat(rn(arguments[Rn]));return Ar};function er(Ar,Rn){Rn===void 0&&(Rn={});var Sr=useContext(ConfigContext),nn=Un(Un({},Sr),Rn),sn=nn.paginated,Ot=nn.loadMore,gr=nn.requestMethod,Gr=useRef(sn),Ln=useRef(Ot);if(Gr.current!==sn)throw Error("You should not modify the paginated of options");if(Ln.current!==Ot)throw Error("You should not modify the loadMore of options");Gr.current=sn,Ln.current=Ot;var Tr=function(){for(var zi=[],Mo=0;Mo<arguments.length;Mo++)zi[Mo]=arguments[Mo];return fetch.apply(void 0,cn(zi)).then(function(Za){if(Za.ok)return Za.json();throw new Error(Za.statusText)})},Dn=gr||Tr,Pr;switch(typeof Ar){case"string":Pr=function(){return Dn(Ar)};break;case"object":var fa=Ar.url,ka=qt(Ar,["url"]);Pr=function(){return gr?gr(Ar):Tr(fa,ka)};break;default:Pr=function(){for(var zi=[],Mo=0;Mo<arguments.length;Mo++)zi[Mo]=arguments[Mo];return new Promise(function(Za,ao){var Mi=Ar.apply(void 0,cn(zi)),Eo=Mi;if(!Mi.then)switch(typeof Mi){case"string":Eo=Dn(Mi);break;case"object":var Xi=Mi.url,Bo=qt(Mi,["url"]);Eo=gr?gr(Mi):Tr(Xi,Bo);break}Eo.then(Za).catch(ao)})}}return Ot?useLoadMore(Pr,nn):sn?usePaginated(Pr,nn):useAsync(Pr,nn)}var rr=an.Provider,nt=null,lr=null,Hn=null;function ut(Ar){var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return useUmiRequest(Ar,_objectSpread({formatResult:function(nn){return nn==null?void 0:nn.data},requestMethod:function(nn){if(typeof nn=="string")return Ue(nn);if(typeof nn=="object"){var sn=nn.url,Ot=_objectWithoutProperties(nn,Hn);return Ue(sn,Ot)}throw new Error("request options error")}},Rn))}var bt;(function(Ar){Ar[Ar.SILENT=0]="SILENT",Ar[Ar.WARN_MESSAGE=1]="WARN_MESSAGE",Ar[Ar.ERROR_MESSAGE=2]="ERROR_MESSAGE",Ar[Ar.NOTIFICATION=4]="NOTIFICATION",Ar[Ar.REDIRECT=9]="REDIRECT"})(bt||(bt={}));var We="/exception",be,Ae=function(){var Rn;if(be)return be;var Sr=g.B.applyPlugins({key:"request",type:G.ApplyPluginsType.modify,initialValue:{}}),nn=((Rn=Sr.errorConfig)===null||Rn===void 0?void 0:Rn.adaptor)||function(Gr){return Gr};be=(0,$.l7)((0,V.Z)({errorHandler:function(Ln){var Tr,Dn,Pr;if(Ln!=null&&(Tr=Ln.request)!==null&&Tr!==void 0&&(Dn=Tr.options)!==null&&Dn!==void 0&&Dn.skipErrorHandler)throw Ln;var fa;if(Ln.name==="ResponseError"&&Ln.data&&Ln.request){var ka,Li={req:Ln.request,res:Ln.response};fa=nn(Ln.data,Li),Ln.message=((ka=fa)===null||ka===void 0?void 0:ka.errorMessage)||Ln.message,Ln.data=Ln.data,Ln.info=fa}if(fa=Ln.info,fa){var zi,Mo,Za,ao=(zi=fa)===null||zi===void 0?void 0:zi.errorMessage,Mi=(Mo=fa)===null||Mo===void 0?void 0:Mo.errorCode,Eo=((Za=Sr.errorConfig)===null||Za===void 0?void 0:Za.errorPage)||We;switch((Pr=fa)===null||Pr===void 0?void 0:Pr.showType){case bt.SILENT:break;case bt.WARN_MESSAGE:z.yw.warn(ao);break;case bt.ERROR_MESSAGE:z.yw.error(ao);break;case bt.NOTIFICATION:z.t6.open({description:ao,message:Mi});break;case bt.REDIRECT:x.m.push({pathname:Eo,query:{errorCode:Mi,errorMessage:ao}});break;default:z.yw.error(ao);break}}else z.yw.error(Ln.message||"Request error, please retry.");throw Ln}},Sr)),be.use(function(){var Gr=(0,L.Z)((0,U.Z)().mark(function Ln(Tr,Dn){var Pr,fa,ka,Li,zi,Mo,Za,ao;return(0,U.Z)().wrap(function(Eo){for(;;)switch(Eo.prev=Eo.next){case 0:return Eo.next=2,Dn();case 2:if(fa=Tr.req,ka=Tr.res,!((Pr=fa.options)!==null&&Pr!==void 0&&Pr.skipErrorHandler)){Eo.next=5;break}return Eo.abrupt("return");case 5:if(Li=fa.options,zi=Li.getResponse,Mo=zi?ka.data:ka,Za=nn(Mo,Tr),Za.success!==!1){Eo.next=16;break}throw ao=new Error(Za.errorMessage),ao.name="BizError",ao.data=Mo,ao.info=Za,ao.response=ka,ao;case 16:case"end":return Eo.stop()}},Ln)}));return function(Ln,Tr){return Gr.apply(this,arguments)}}());var sn=Sr.middlewares||[];sn.forEach(function(Gr){be.use(Gr)});var Ot=Sr.requestInterceptors||[],gr=Sr.responseInterceptors||[];return Ot.map(function(Gr){be.interceptors.request.use(Gr)}),gr.map(function(Gr){be.interceptors.response.use(Gr)}),be},Ue=function(Rn,Sr){var nn=Ae();return nn(Rn,Sr)},$e=o(44721),kt=o.n($e),lt=o(26448),vt=o.n(lt),Ct=o(97449),Bt=o.n(Ct),mt=o(44547),Zt=o.n(mt),zt={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},ln={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},An=Object.keys(ln).map(function(Ar){return ln[Ar]}),En={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},Gn={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Bn={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},pr=Object.keys(Gn).reduce(function(Ar,Rn){return Ar[Gn[Rn]]=Rn,Ar},{}),_r=[ln.NOSCRIPT,ln.SCRIPT,ln.STYLE],na="data-react-helmet",$n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ar){return typeof Ar}:function(Ar){return Ar&&typeof Symbol=="function"&&Ar.constructor===Symbol&&Ar!==Symbol.prototype?"symbol":typeof Ar},qr=function(Rn,Sr){if(!(Rn instanceof Sr))throw new TypeError("Cannot call a class as a function")},Jr=function(){function Ar(Rn,Sr){for(var nn=0;nn<Sr.length;nn++){var sn=Sr[nn];sn.enumerable=sn.enumerable||!1,sn.configurable=!0,"value"in sn&&(sn.writable=!0),Object.defineProperty(Rn,sn.key,sn)}}return function(Rn,Sr,nn){return Sr&&Ar(Rn.prototype,Sr),nn&&Ar(Rn,nn),Rn}}(),Aa=Object.assign||function(Ar){for(var Rn=1;Rn<arguments.length;Rn++){var Sr=arguments[Rn];for(var nn in Sr)Object.prototype.hasOwnProperty.call(Sr,nn)&&(Ar[nn]=Sr[nn])}return Ar},ya=function(Rn,Sr){if(typeof Sr!="function"&&Sr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Sr);Rn.prototype=Object.create(Sr&&Sr.prototype,{constructor:{value:Rn,enumerable:!1,writable:!0,configurable:!0}}),Sr&&(Object.setPrototypeOf?Object.setPrototypeOf(Rn,Sr):Rn.__proto__=Sr)},$t=function(Rn,Sr){var nn={};for(var sn in Rn)Sr.indexOf(sn)>=0||!Object.prototype.hasOwnProperty.call(Rn,sn)||(nn[sn]=Rn[sn]);return nn},wn=function(Rn,Sr){if(!Rn)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Sr&&(typeof Sr=="object"||typeof Sr=="function")?Sr:Rn},Fn=function(Rn){var Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Sr===!1?String(Rn):String(Rn).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Or=function(Rn){var Sr=ba(Rn,ln.TITLE),nn=ba(Rn,Bn.TITLE_TEMPLATE);if(nn&&Sr)return nn.replace(/%s/g,function(){return Array.isArray(Sr)?Sr.join(""):Sr});var sn=ba(Rn,Bn.DEFAULT_TITLE);return Sr||sn||void 0},vr=function(Rn){return ba(Rn,Bn.ON_CHANGE_CLIENT_STATE)||function(){}},Ur=function(Rn,Sr){return Sr.filter(function(nn){return typeof nn[Rn]!="undefined"}).map(function(nn){return nn[Rn]}).reduce(function(nn,sn){return Aa({},nn,sn)},{})},Zr=function(Rn,Sr){return Sr.filter(function(nn){return typeof nn[ln.BASE]!="undefined"}).map(function(nn){return nn[ln.BASE]}).reverse().reduce(function(nn,sn){if(!nn.length)for(var Ot=Object.keys(sn),gr=0;gr<Ot.length;gr++){var Gr=Ot[gr],Ln=Gr.toLowerCase();if(Rn.indexOf(Ln)!==-1&&sn[Ln])return nn.concat(sn)}return nn},[])},Kr=function(Rn,Sr,nn){var sn={};return nn.filter(function(Ot){return Array.isArray(Ot[Rn])?!0:(typeof Ot[Rn]!="undefined"&&Cn("Helmet: "+Rn+' should be of type "Array". Instead found type "'+$n(Ot[Rn])+'"'),!1)}).map(function(Ot){return Ot[Rn]}).reverse().reduce(function(Ot,gr){var Gr={};gr.filter(function(fa){for(var ka=void 0,Li=Object.keys(fa),zi=0;zi<Li.length;zi++){var Mo=Li[zi],Za=Mo.toLowerCase();Sr.indexOf(Za)!==-1&&!(ka===En.REL&&fa[ka].toLowerCase()==="canonical")&&!(Za===En.REL&&fa[Za].toLowerCase()==="stylesheet")&&(ka=Za),Sr.indexOf(Mo)!==-1&&(Mo===En.INNER_HTML||Mo===En.CSS_TEXT||Mo===En.ITEM_PROP)&&(ka=Mo)}if(!ka||!fa[ka])return!1;var ao=fa[ka].toLowerCase();return sn[ka]||(sn[ka]={}),Gr[ka]||(Gr[ka]={}),sn[ka][ao]?!1:(Gr[ka][ao]=!0,!0)}).reverse().forEach(function(fa){return Ot.push(fa)});for(var Ln=Object.keys(Gr),Tr=0;Tr<Ln.length;Tr++){var Dn=Ln[Tr],Pr=Zt()({},sn[Dn],Gr[Dn]);sn[Dn]=Pr}return Ot},[]).reverse()},ba=function(Rn,Sr){for(var nn=Rn.length-1;nn>=0;nn--){var sn=Rn[nn];if(sn.hasOwnProperty(Sr))return sn[Sr]}return null},Ri=function(Rn){return{baseTag:Zr([En.HREF,En.TARGET],Rn),bodyAttributes:Ur(zt.BODY,Rn),defer:ba(Rn,Bn.DEFER),encode:ba(Rn,Bn.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Ur(zt.HTML,Rn),linkTags:Kr(ln.LINK,[En.REL,En.HREF],Rn),metaTags:Kr(ln.META,[En.NAME,En.CHARSET,En.HTTPEQUIV,En.PROPERTY,En.ITEM_PROP],Rn),noscriptTags:Kr(ln.NOSCRIPT,[En.INNER_HTML],Rn),onChangeClientState:vr(Rn),scriptTags:Kr(ln.SCRIPT,[En.SRC,En.INNER_HTML],Rn),styleTags:Kr(ln.STYLE,[En.CSS_TEXT],Rn),title:Or(Rn),titleAttributes:Ur(zt.TITLE,Rn)}},Ea=function(){var Ar=Date.now();return function(Rn){var Sr=Date.now();Sr-Ar>16?(Ar=Sr,Rn(Sr)):setTimeout(function(){Ea(Rn)},0)}}(),Pi=function(Rn){return clearTimeout(Rn)},rs=typeof window!="undefined"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Ea:o.g.requestAnimationFrame||Ea,Ui=typeof window!="undefined"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Pi:o.g.cancelAnimationFrame||Pi,Cn=function(Rn){return console&&typeof console.warn=="function"&&console.warn(Rn)},Kn=null,Pn=function(Rn){Kn&&Ui(Kn),Rn.defer?Kn=rs(function(){At(Rn,function(){Kn=null})}):(At(Rn),Kn=null)},At=function(Rn,Sr){var nn=Rn.baseTag,sn=Rn.bodyAttributes,Ot=Rn.htmlAttributes,gr=Rn.linkTags,Gr=Rn.metaTags,Ln=Rn.noscriptTags,Tr=Rn.onChangeClientState,Dn=Rn.scriptTags,Pr=Rn.styleTags,fa=Rn.title,ka=Rn.titleAttributes;Yn(ln.BODY,sn),Yn(ln.HTML,Ot),ta(fa,ka);var Li={baseTag:Qa(ln.BASE,nn),linkTags:Qa(ln.LINK,gr),metaTags:Qa(ln.META,Gr),noscriptTags:Qa(ln.NOSCRIPT,Ln),scriptTags:Qa(ln.SCRIPT,Dn),styleTags:Qa(ln.STYLE,Pr)},zi={},Mo={};Object.keys(Li).forEach(function(Za){var ao=Li[Za],Mi=ao.newTags,Eo=ao.oldTags;Mi.length&&(zi[Za]=Mi),Eo.length&&(Mo[Za]=Li[Za].oldTags)}),Sr&&Sr(),Tr(Rn,zi,Mo)},ar=function(Rn){return Array.isArray(Rn)?Rn.join(""):Rn},ta=function(Rn,Sr){typeof Rn!="undefined"&&document.title!==Rn&&(document.title=ar(Rn)),Yn(ln.TITLE,Sr)},Yn=function(Rn,Sr){var nn=document.getElementsByTagName(Rn)[0];if(!!nn){for(var sn=nn.getAttribute(na),Ot=sn?sn.split(","):[],gr=[].concat(Ot),Gr=Object.keys(Sr),Ln=0;Ln<Gr.length;Ln++){var Tr=Gr[Ln],Dn=Sr[Tr]||"";nn.getAttribute(Tr)!==Dn&&nn.setAttribute(Tr,Dn),Ot.indexOf(Tr)===-1&&Ot.push(Tr);var Pr=gr.indexOf(Tr);Pr!==-1&&gr.splice(Pr,1)}for(var fa=gr.length-1;fa>=0;fa--)nn.removeAttribute(gr[fa]);Ot.length===gr.length?nn.removeAttribute(na):nn.getAttribute(na)!==Gr.join(",")&&nn.setAttribute(na,Gr.join(","))}},Qa=function(Rn,Sr){var nn=document.head||document.querySelector(ln.HEAD),sn=nn.querySelectorAll(Rn+"["+na+"]"),Ot=Array.prototype.slice.call(sn),gr=[],Gr=void 0;return Sr&&Sr.length&&Sr.forEach(function(Ln){var Tr=document.createElement(Rn);for(var Dn in Ln)if(Ln.hasOwnProperty(Dn))if(Dn===En.INNER_HTML)Tr.innerHTML=Ln.innerHTML;else if(Dn===En.CSS_TEXT)Tr.styleSheet?Tr.styleSheet.cssText=Ln.cssText:Tr.appendChild(document.createTextNode(Ln.cssText));else{var Pr=typeof Ln[Dn]=="undefined"?"":Ln[Dn];Tr.setAttribute(Dn,Pr)}Tr.setAttribute(na,"true"),Ot.some(function(fa,ka){return Gr=ka,Tr.isEqualNode(fa)})?Ot.splice(Gr,1):gr.push(Tr)}),Ot.forEach(function(Ln){return Ln.parentNode.removeChild(Ln)}),gr.forEach(function(Ln){return nn.appendChild(Ln)}),{oldTags:Ot,newTags:gr}},Ua=function(Rn){return Object.keys(Rn).reduce(function(Sr,nn){var sn=typeof Rn[nn]!="undefined"?nn+'="'+Rn[nn]+'"':""+nn;return Sr?Sr+" "+sn:sn},"")},Fi=function(Rn,Sr,nn,sn){var Ot=Ua(nn),gr=ar(Sr);return Ot?"<"+Rn+" "+na+'="true" '+Ot+">"+Fn(gr,sn)+"</"+Rn+">":"<"+Rn+" "+na+'="true">'+Fn(gr,sn)+"</"+Rn+">"},Xa=function(Rn,Sr,nn){return Sr.reduce(function(sn,Ot){var gr=Object.keys(Ot).filter(function(Tr){return!(Tr===En.INNER_HTML||Tr===En.CSS_TEXT)}).reduce(function(Tr,Dn){var Pr=typeof Ot[Dn]=="undefined"?Dn:Dn+'="'+Fn(Ot[Dn],nn)+'"';return Tr?Tr+" "+Pr:Pr},""),Gr=Ot.innerHTML||Ot.cssText||"",Ln=_r.indexOf(Rn)===-1;return sn+"<"+Rn+" "+na+'="true" '+gr+(Ln?"/>":">"+Gr+"</"+Rn+">")},"")},$i=function(Rn){var Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(Rn).reduce(function(nn,sn){return nn[Gn[sn]||sn]=Rn[sn],nn},Sr)},La=function(Rn){var Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(Rn).reduce(function(nn,sn){return nn[pr[sn]||sn]=Rn[sn],nn},Sr)},ja=function(Rn,Sr,nn){var sn,Ot=(sn={key:Sr},sn[na]=!0,sn),gr=$i(nn,Ot);return[A.createElement(ln.TITLE,gr,Sr)]},ei=function(Rn,Sr){return Sr.map(function(nn,sn){var Ot,gr=(Ot={key:sn},Ot[na]=!0,Ot);return Object.keys(nn).forEach(function(Gr){var Ln=Gn[Gr]||Gr;if(Ln===En.INNER_HTML||Ln===En.CSS_TEXT){var Tr=nn.innerHTML||nn.cssText;gr.dangerouslySetInnerHTML={__html:Tr}}else gr[Ln]=nn[Gr]}),A.createElement(Rn,gr)})},Do=function(Rn,Sr,nn){switch(Rn){case ln.TITLE:return{toComponent:function(){return ja(Rn,Sr.title,Sr.titleAttributes,nn)},toString:function(){return Fi(Rn,Sr.title,Sr.titleAttributes,nn)}};case zt.BODY:case zt.HTML:return{toComponent:function(){return $i(Sr)},toString:function(){return Ua(Sr)}};default:return{toComponent:function(){return ei(Rn,Sr)},toString:function(){return Xa(Rn,Sr,nn)}}}},yo=function(Rn){var Sr=Rn.baseTag,nn=Rn.bodyAttributes,sn=Rn.encode,Ot=Rn.htmlAttributes,gr=Rn.linkTags,Gr=Rn.metaTags,Ln=Rn.noscriptTags,Tr=Rn.scriptTags,Dn=Rn.styleTags,Pr=Rn.title,fa=Pr===void 0?"":Pr,ka=Rn.titleAttributes;return{base:Do(ln.BASE,Sr,sn),bodyAttributes:Do(zt.BODY,nn,sn),htmlAttributes:Do(zt.HTML,Ot,sn),link:Do(ln.LINK,gr,sn),meta:Do(ln.META,Gr,sn),noscript:Do(ln.NOSCRIPT,Ln,sn),script:Do(ln.SCRIPT,Tr,sn),style:Do(ln.STYLE,Dn,sn),title:Do(ln.TITLE,{title:fa,titleAttributes:ka},sn)}},to=function(Rn){var Sr,nn;return nn=Sr=function(sn){ya(Ot,sn);function Ot(){return qr(this,Ot),wn(this,sn.apply(this,arguments))}return Ot.prototype.shouldComponentUpdate=function(Gr){return!Bt()(this.props,Gr)},Ot.prototype.mapNestedChildrenToProps=function(Gr,Ln){if(!Ln)return null;switch(Gr.type){case ln.SCRIPT:case ln.NOSCRIPT:return{innerHTML:Ln};case ln.STYLE:return{cssText:Ln}}throw new Error("<"+Gr.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},Ot.prototype.flattenArrayTypeChildren=function(Gr){var Ln,Tr=Gr.child,Dn=Gr.arrayTypeChildren,Pr=Gr.newChildProps,fa=Gr.nestedChildren;return Aa({},Dn,(Ln={},Ln[Tr.type]=[].concat(Dn[Tr.type]||[],[Aa({},Pr,this.mapNestedChildrenToProps(Tr,fa))]),Ln))},Ot.prototype.mapObjectTypeChildren=function(Gr){var Ln,Tr,Dn=Gr.child,Pr=Gr.newProps,fa=Gr.newChildProps,ka=Gr.nestedChildren;switch(Dn.type){case ln.TITLE:return Aa({},Pr,(Ln={},Ln[Dn.type]=ka,Ln.titleAttributes=Aa({},fa),Ln));case ln.BODY:return Aa({},Pr,{bodyAttributes:Aa({},fa)});case ln.HTML:return Aa({},Pr,{htmlAttributes:Aa({},fa)})}return Aa({},Pr,(Tr={},Tr[Dn.type]=Aa({},fa),Tr))},Ot.prototype.mapArrayTypeChildrenToProps=function(Gr,Ln){var Tr=Aa({},Ln);return Object.keys(Gr).forEach(function(Dn){var Pr;Tr=Aa({},Tr,(Pr={},Pr[Dn]=Gr[Dn],Pr))}),Tr},Ot.prototype.warnOnInvalidChildren=function(Gr,Ln){return!0},Ot.prototype.mapChildrenToProps=function(Gr,Ln){var Tr=this,Dn={};return A.Children.forEach(Gr,function(Pr){if(!(!Pr||!Pr.props)){var fa=Pr.props,ka=fa.children,Li=$t(fa,["children"]),zi=La(Li);switch(Tr.warnOnInvalidChildren(Pr,ka),Pr.type){case ln.LINK:case ln.META:case ln.NOSCRIPT:case ln.SCRIPT:case ln.STYLE:Dn=Tr.flattenArrayTypeChildren({child:Pr,arrayTypeChildren:Dn,newChildProps:zi,nestedChildren:ka});break;default:Ln=Tr.mapObjectTypeChildren({child:Pr,newProps:Ln,newChildProps:zi,nestedChildren:ka});break}}}),Ln=this.mapArrayTypeChildrenToProps(Dn,Ln),Ln},Ot.prototype.render=function(){var Gr=this.props,Ln=Gr.children,Tr=$t(Gr,["children"]),Dn=Aa({},Tr);return Ln&&(Dn=this.mapChildrenToProps(Ln,Dn)),A.createElement(Rn,Dn)},Jr(Ot,null,[{key:"canUseDOM",set:function(Gr){Rn.canUseDOM=Gr}}]),Ot}(A.Component),Sr.propTypes={base:kt().object,bodyAttributes:kt().object,children:kt().oneOfType([kt().arrayOf(kt().node),kt().node]),defaultTitle:kt().string,defer:kt().bool,encodeSpecialCharacters:kt().bool,htmlAttributes:kt().object,link:kt().arrayOf(kt().object),meta:kt().arrayOf(kt().object),noscript:kt().arrayOf(kt().object),onChangeClientState:kt().func,script:kt().arrayOf(kt().object),style:kt().arrayOf(kt().object),title:kt().string,titleAttributes:kt().object,titleTemplate:kt().string},Sr.defaultProps={defer:!0,encodeSpecialCharacters:!0},Sr.peek=Rn.peek,Sr.rewind=function(){var sn=Rn.rewind();return sn||(sn=yo({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),sn},nn},fs=function(){return null},cs=vt()(Ri,Pn,yo)(fs),Os=to(cs);Os.renderStatic=Os.rewind;var vl=null},57650:function(oe,N,o){"use strict";var x=o(67294),g=x.createContext(null);N.Z=g},14027:function(oe,N,o){"use strict";o.d(N,{B:function(){return y}});var x=o(32059),g=o(11849),A="routes";function y(M,w){var m=[].concat(M).map(function(b){var v=b.children||b[A];return v&&v!==null&&v!==void 0&&v.length?(0,g.Z)((0,g.Z)({},b),{},(0,x.Z)({children:v==null?void 0:v.map(function(h){return(0,g.Z)({},h)})},A,v==null?void 0:v.map(function(h){return(0,g.Z)({},h)}))):b});return m.map(function(b){var v=typeof b.unaccessible=="boolean"?!b.unaccessible:!0;if(b&&b.access){if(typeof b.access!="string")throw new Error('[plugin-access]: "access" field set in "'+b.path+'" route should be a string.');var h=w[b.access];typeof h=="function"?v=h(b):typeof h=="boolean"&&(v=h),b.unaccessible=!v}var d=b.children||b[A];if(d&&Array.isArray(d)&&d.length){if(!Array.isArray(d))return b;d.forEach(function(S){S.unaccessible=!v});var _=y(d,w),p=Array.isArray(_)&&_.every(function(S){return S.unaccessible});if(!b.unaccessible&&p&&(b.unaccessible=!0),_&&(_==null?void 0:_.length)>0)return(0,g.Z)((0,g.Z)({},b),{},(0,x.Z)({children:_},A,_));delete b.routes,delete b.children}return b})}},30102:function(oe,N,o){"use strict";o.d(N,{D0:function(){return $s}});var x={};o.r(x),o.d(x,{actionChannel:function(){return Ua},all:function(){return Pi},apply:function(){return Kn},call:function(){return Cn},cancel:function(){return Yn},cancelled:function(){return Fi},cps:function(){return Pn},flush:function(){return Xa},fork:function(){return At},getContext:function(){return $i},join:function(){return ta},put:function(){return Ea},race:function(){return rs},select:function(){return Qa},setContext:function(){return La},spawn:function(){return ar},take:function(){return ba},takeEvery:function(){return Xi},takeLatest:function(){return Bo},takem:function(){return Ri},throttle:function(){return ol}});var g=o(69610),A=o(54941),y=o(81306),M=o(59206),w=o(11849),m=o(67294),b=o(85560),v=o(28991),h=o(90484),d=o(85061),_=o(78267),p=o.n(_),S=o(83233),k=o(42445),O=o.n(k),F=o(48476),D=o(96156);function Z(Qn){for(var dr=1;dr<arguments.length;dr++){var Xr=arguments[dr]!=null?Object(arguments[dr]):{},la=Object.keys(Xr);typeof Object.getOwnPropertySymbols=="function"&&la.push.apply(la,Object.getOwnPropertySymbols(Xr).filter(function(Ra){return Object.getOwnPropertyDescriptor(Xr,Ra).enumerable})),la.forEach(function(Ra){(0,D.Z)(Qn,Ra,Xr[Ra])})}return Qn}function W(Qn){return"Minified Redux error #"+Qn+"; visit https://redux.js.org/Errors?code="+Qn+" for the full message or use the non-minified dev environment for full errors. "}var U=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),L=function(){return Math.random().toString(36).substring(7).split("").join(".")},V={INIT:"@@redux/INIT"+L(),REPLACE:"@@redux/REPLACE"+L(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+L()}};function $(Qn){if(typeof Qn!="object"||Qn===null)return!1;for(var dr=Qn;Object.getPrototypeOf(dr)!==null;)dr=Object.getPrototypeOf(dr);return Object.getPrototypeOf(Qn)===dr}function G(Qn){if(Qn===void 0)return"undefined";if(Qn===null)return"null";var dr=typeof Qn;switch(dr){case"boolean":case"string":case"number":case"symbol":case"function":return dr}if(Array.isArray(Qn))return"array";if(re(Qn))return"date";if(K(Qn))return"error";var Xr=z(Qn);switch(Xr){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return Xr}return dr.slice(8,-1).toLowerCase().replace(/\s/g,"")}function z(Qn){return typeof Qn.constructor=="function"?Qn.constructor.name:null}function K(Qn){return Qn instanceof Error||typeof Qn.message=="string"&&Qn.constructor&&typeof Qn.constructor.stackTraceLimit=="number"}function re(Qn){return Qn instanceof Date?!0:typeof Qn.toDateString=="function"&&typeof Qn.getDate=="function"&&typeof Qn.setDate=="function"}function ne(Qn){var dr=typeof Qn;return dr}function Q(Qn,dr,Xr){var la;if(typeof dr=="function"&&typeof Xr=="function"||typeof Xr=="function"&&typeof arguments[3]=="function")throw new Error(W(0));if(typeof dr=="function"&&typeof Xr=="undefined"&&(Xr=dr,dr=void 0),typeof Xr!="undefined"){if(typeof Xr!="function")throw new Error(W(1));return Xr(Q)(Qn,dr)}if(typeof Qn!="function")throw new Error(W(2));var Ra=Qn,_i=dr,ui=[],ho=ui,Oi=!1;function Fo(){ho===ui&&(ho=ui.slice())}function as(){if(Oi)throw new Error(W(3));return _i}function Fs(Us){if(typeof Us!="function")throw new Error(W(4));if(Oi)throw new Error(W(5));var os=!0;return Fo(),ho.push(Us),function(){if(!!os){if(Oi)throw new Error(W(6));os=!1,Fo();var Bs=ho.indexOf(Us);ho.splice(Bs,1),ui=null}}}function Fr(Us){if(!$(Us))throw new Error(W(7));if(typeof Us.type=="undefined")throw new Error(W(8));if(Oi)throw new Error(W(9));try{Oi=!0,_i=Ra(_i,Us)}finally{Oi=!1}for(var os=ui=ho,El=0;El<os.length;El++){var Bs=os[El];Bs()}return Us}function tl(Us){if(typeof Us!="function")throw new Error(W(10));Ra=Us,Fr({type:V.REPLACE})}function Js(){var Us,os=Fs;return Us={subscribe:function(Bs){if(typeof Bs!="object"||Bs===null)throw new Error(W(11));function gc(){Bs.next&&Bs.next(as())}gc();var kr=os(gc);return{unsubscribe:kr}}},Us[U]=function(){return this},Us}return Fr({type:V.INIT}),la={dispatch:Fr,subscribe:Fs,getState:as,replaceReducer:tl},la[U]=Js,la}var ue=null;function he(Qn){typeof console!="undefined"&&typeof console.error=="function"&&console.error(Qn);try{throw new Error(Qn)}catch(dr){}}function Ee(Qn,dr,Xr,la){var Ra=Object.keys(dr),_i=Xr&&Xr.type===V.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(Ra.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!$(Qn))return"The "+_i+' has unexpected type of "'+ne(Qn)+'". Expected argument to be an object with the following '+('keys: "'+Ra.join('", "')+'"');var ui=Object.keys(Qn).filter(function(ho){return!dr.hasOwnProperty(ho)&&!la[ho]});if(ui.forEach(function(ho){la[ho]=!0}),!(Xr&&Xr.type===V.REPLACE)&&ui.length>0)return"Unexpected "+(ui.length>1?"keys":"key")+" "+('"'+ui.join('", "')+'" found in '+_i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+Ra.join('", "')+'". Unexpected keys will be ignored.')}function ce(Qn){Object.keys(Qn).forEach(function(dr){var Xr=Qn[dr],la=Xr(void 0,{type:V.INIT});if(typeof la=="undefined")throw new Error(W(12));if(typeof Xr(void 0,{type:V.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(W(13))})}function ve(Qn){for(var dr=Object.keys(Qn),Xr={},la=0;la<dr.length;la++){var Ra=dr[la];typeof Qn[Ra]=="function"&&(Xr[Ra]=Qn[Ra])}var _i=Object.keys(Xr),ui,ho;try{ce(Xr)}catch(Oi){ho=Oi}return function(Fo,as){if(Fo===void 0&&(Fo={}),ho)throw ho;if(!1)var Fs;for(var Fr=!1,tl={},Js=0;Js<_i.length;Js++){var Us=_i[Js],os=Xr[Us],El=Fo[Us],Bs=os(El,as);if(typeof Bs=="undefined"){var gc=as&&as.type;throw new Error(W(14))}tl[Us]=Bs,Fr=Fr||Bs!==El}return Fr=Fr||_i.length!==Object.keys(Fo).length,Fr?tl:Fo}}function fe(Qn,dr){return function(){return dr(Qn.apply(this,arguments))}}function we(Qn,dr){if(typeof Qn=="function")return fe(Qn,dr);if(typeof Qn!="object"||Qn===null)throw new Error(W(16));var Xr={};for(var la in Qn){var Ra=Qn[la];typeof Ra=="function"&&(Xr[la]=fe(Ra,dr))}return Xr}function me(){for(var Qn=arguments.length,dr=new Array(Qn),Xr=0;Xr<Qn;Xr++)dr[Xr]=arguments[Xr];return dr.length===0?function(la){return la}:dr.length===1?dr[0]:dr.reduce(function(la,Ra){return function(){return la(Ra.apply(void 0,arguments))}})}function Pe(){for(var Qn=arguments.length,dr=new Array(Qn),Xr=0;Xr<Qn;Xr++)dr[Xr]=arguments[Xr];return function(la){return function(){var Ra=la.apply(void 0,arguments),_i=function(){throw new Error(W(15))},ui={getState:Ra.getState,dispatch:function(){return _i.apply(void 0,arguments)}},ho=dr.map(function(Oi){return Oi(ui)});return _i=me.apply(void 0,ho)(Ra.dispatch),(0,v.Z)((0,v.Z)({},Ra),{},{dispatch:_i})}}}var pe=Object.assign||function(Qn){for(var dr=1;dr<arguments.length;dr++){var Xr=arguments[dr];for(var la in Xr)Object.prototype.hasOwnProperty.call(Xr,la)&&(Qn[la]=Xr[la])}return Qn},Ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Qn){return typeof Qn}:function(Qn){return Qn&&typeof Symbol=="function"&&Qn.constructor===Symbol&&Qn!==Symbol.prototype?"symbol":typeof Qn},Je=function(dr){return"@@redux-saga/"+dr},ke=Je("TASK"),De=Je("HELPER"),Fe=Je("MATCH"),Qe=Je("CANCEL_PROMISE"),qe=Je("SAGA_ACTION"),et=Je("SELF_CANCELLATION"),dt=function(dr){return function(){return dr}},Ke=dt(!0),Ge=null,wt=function(){},Vt=function(dr){return dr};function gt(Qn,dr,Xr){if(!dr(Qn))throw ot("error","uncaught at check",Xr),new Error(Xr)}var it=Object.prototype.hasOwnProperty;function Le(Qn,dr){return ct.notUndef(Qn)&&it.call(Qn,dr)}var ct={undef:function(dr){return dr==null},notUndef:function(dr){return dr!=null},func:function(dr){return typeof dr=="function"},number:function(dr){return typeof dr=="number"},string:function(dr){return typeof dr=="string"},array:Array.isArray,object:function(dr){return dr&&!ct.array(dr)&&(typeof dr=="undefined"?"undefined":Ie(dr))==="object"},promise:function(dr){return dr&&ct.func(dr.then)},iterator:function(dr){return dr&&ct.func(dr.next)&&ct.func(dr.throw)},iterable:function(dr){return dr&&ct.func(Symbol)?ct.func(dr[Symbol.iterator]):ct.array(dr)},task:function(dr){return dr&&dr[ke]},observable:function(dr){return dr&&ct.func(dr.subscribe)},buffer:function(dr){return dr&&ct.func(dr.isEmpty)&&ct.func(dr.take)&&ct.func(dr.put)},pattern:function(dr){return dr&&(ct.string(dr)||(typeof dr=="undefined"?"undefined":Ie(dr))==="symbol"||ct.func(dr)||ct.array(dr))},channel:function(dr){return dr&&ct.func(dr.take)&&ct.func(dr.close)},helper:function(dr){return dr&&dr[De]},stringableFunc:function(dr){return ct.func(dr)&&Le(dr,"toString")}},at={assign:function(dr,Xr){for(var la in Xr)Le(Xr,la)&&(dr[la]=Xr[la])}};function jt(Qn,dr){var Xr=Qn.indexOf(dr);Xr>=0&&Qn.splice(Xr,1)}var St={from:function(dr){var Xr=Array(dr.length);for(var la in dr)Le(dr,la)&&(Xr[la]=dr[la]);return Xr}};function fn(){var Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},dr=pe({},Qn),Xr=new Promise(function(la,Ra){dr.resolve=la,dr.reject=Ra});return dr.promise=Xr,dr}function Xt(Qn){for(var dr=[],Xr=0;Xr<Qn;Xr++)dr.push(fn());return dr}function Yt(Qn){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Xr=void 0,la=new Promise(function(Ra){Xr=setTimeout(function(){return Ra(dr)},Qn)});return la[Qe]=function(){return clearTimeout(Xr)},la}function Rt(){var Qn,dr=!0,Xr=void 0,la=void 0;return Qn={},Qn[ke]=!0,Qn.isRunning=function(){return dr},Qn.result=function(){return Xr},Qn.error=function(){return la},Qn.setRunning=function(_i){return dr=_i},Qn.setResult=function(_i){return Xr=_i},Qn.setError=function(_i){return la=_i},Qn}function Lt(){var Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(){return++Qn}}var ze=Lt(),rt=function(dr){throw dr},tt=function(dr){return{value:dr,done:!0}};function de(Qn){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rt,Xr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",la=arguments[3],Ra={name:Xr,next:Qn,throw:dr,return:tt};return la&&(Ra[De]=!0),typeof Symbol!="undefined"&&(Ra[Symbol.iterator]=function(){return Ra}),Ra}function ot(Qn,dr){var Xr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";typeof window=="undefined"?console.log("redux-saga "+Qn+": "+dr+`
|
||
`+(Xr&&Xr.stack||Xr)):console[Qn](dr,Xr)}function Et(Qn,dr){return function(){return Qn.apply(void 0,arguments)}}var Ht=function(dr,Xr){return dr+" has been deprecated in favor of "+Xr+", please update your code"},Jt=function(dr){return new Error(`
|
||
redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug
|
||
in redux-saga code and not yours. Thanks for reporting this in the project's github repo.
|
||
Error: `+dr+`
|
||
`)},Qt=function(dr,Xr){return(dr?dr+".":"")+"setContext(props): argument "+Xr+" is not a plain object"},an=function(dr){return function(Xr){return dr(Object.defineProperty(Xr,qe,{value:!0}))}},Un=function Qn(dr){return function(){for(var Xr=arguments.length,la=Array(Xr),Ra=0;Ra<Xr;Ra++)la[Ra]=arguments[Ra];var _i=[],ui=dr.apply(void 0,la);return{next:function(Oi){return _i.push(Oi),ui.next(Oi)},clone:function(){var Oi=Qn(dr).apply(void 0,la);return _i.forEach(function(Fo){return Oi.next(Fo)}),Oi},return:function(Oi){return ui.return(Oi)},throw:function(Oi){return ui.throw(Oi)}}}},qt="Channel's Buffer overflow!",rn=1,cn=2,er=3,rr=4,nt={isEmpty:Ke,put:wt,take:wt};function lr(){var Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,dr=arguments[1],Xr=new Array(Qn),la=0,Ra=0,_i=0,ui=function(as){Xr[Ra]=as,Ra=(Ra+1)%Qn,la++},ho=function(){if(la!=0){var as=Xr[_i];return Xr[_i]=null,la--,_i=(_i+1)%Qn,as}},Oi=function(){for(var as=[];la;)as.push(ho());return as};return{isEmpty:function(){return la==0},put:function(as){if(la<Qn)ui(as);else{var Fs=void 0;switch(dr){case rn:throw new Error(qt);case er:Xr[Ra]=as,Ra=(Ra+1)%Qn,_i=Ra;break;case rr:Fs=2*Qn,Xr=Oi(),la=Xr.length,Ra=Xr.length,_i=0,Xr.length=Fs,Qn=Fs,ui(as);break;default:}}},take:ho,flush:Oi}}var Hn={none:function(){return nt},fixed:function(dr){return lr(dr,rn)},dropping:function(dr){return lr(dr,cn)},sliding:function(dr){return lr(dr,er)},expanding:function(dr){return lr(dr,rr)}},ut=[],bt=0;function We(Qn){try{Ae(),Qn()}finally{Ue()}}function be(Qn){ut.push(Qn),bt||(Ae(),$e())}function Ae(){bt++}function Ue(){bt--}function $e(){Ue();for(var Qn=void 0;!bt&&(Qn=ut.shift())!==void 0;)We(Qn)}var kt=Object.assign||function(Qn){for(var dr=1;dr<arguments.length;dr++){var Xr=arguments[dr];for(var la in Xr)Object.prototype.hasOwnProperty.call(Xr,la)&&(Qn[la]=Xr[la])}return Qn},lt="@@redux-saga/CHANNEL_END",vt={type:lt},Ct=function(dr){return dr&&dr.type===lt};function Bt(){var Qn=[];function dr(la){return Qn.push(la),function(){return jt(Qn,la)}}function Xr(la){for(var Ra=Qn.slice(),_i=0,ui=Ra.length;_i<ui;_i++)Ra[_i](la)}return{subscribe:dr,emit:Xr}}var mt="invalid buffer passed to channel factory function",Zt="Saga was provided with an undefined action";function zt(){var Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hn.fixed(),dr=!1,Xr=[];gt(Qn,ct.buffer,mt);function la(){if(dr&&Xr.length)throw Jt("Cannot have a closed channel with pending takers");if(Xr.length&&!Qn.isEmpty())throw Jt("Cannot have pending takers with non empty buffer")}function Ra(Oi){if(la(),gt(Oi,ct.notUndef,Zt),!dr){if(!Xr.length)return Qn.put(Oi);for(var Fo=0;Fo<Xr.length;Fo++){var as=Xr[Fo];if(!as[Fe]||as[Fe](Oi))return Xr.splice(Fo,1),as(Oi)}}}function _i(Oi){la(),gt(Oi,ct.func,"channel.take's callback must be a function"),dr&&Qn.isEmpty()?Oi(vt):Qn.isEmpty()?(Xr.push(Oi),Oi.cancel=function(){return jt(Xr,Oi)}):Oi(Qn.take())}function ui(Oi){if(la(),gt(Oi,ct.func,"channel.flush' callback must be a function"),dr&&Qn.isEmpty()){Oi(vt);return}Oi(Qn.flush())}function ho(){if(la(),!dr&&(dr=!0,Xr.length)){var Oi=Xr;Xr=[];for(var Fo=0,as=Oi.length;Fo<as;Fo++)Oi[Fo](vt)}}return{take:_i,put:Ra,flush:ui,close:ho,get __takers__(){return Xr},get __closed__(){return dr}}}function ln(Qn){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hn.none(),Xr=arguments[2];arguments.length>2&>(Xr,ct.func,"Invalid match function passed to eventChannel");var la=zt(dr),Ra=function(){la.__closed__||(_i&&_i(),la.close())},_i=Qn(function(ui){if(Ct(ui)){Ra();return}Xr&&!Xr(ui)||la.put(ui)});if(la.__closed__&&_i(),!ct.func(_i))throw new Error("in eventChannel: subscribe should return a function to unsubscribe");return{take:la.take,flush:la.flush,close:Ra}}function An(Qn){var dr=ln(function(Xr){return Qn(function(la){if(la[qe]){Xr(la);return}be(function(){return Xr(la)})})});return kt({},dr,{take:function(la,Ra){arguments.length>1&&(gt(Ra,ct.func,"channel.take's matcher argument must be a function"),la[Fe]=Ra),dr.take(la)}})}var En=Je("IO"),Gn="TAKE",Bn="PUT",pr="ALL",_r="RACE",na="CALL",$n="CPS",qr="FORK",Jr="JOIN",Aa="CANCEL",ya="SELECT",$t="ACTION_CHANNEL",wn="CANCELLED",Fn="FLUSH",Or="GET_CONTEXT",vr="SET_CONTEXT",Ur=`
|
||
(HINT: if you are getting this errors in tests, consider using createMockTask from redux-saga/utils)`,Zr=function(dr,Xr){var la;return la={},la[En]=!0,la[dr]=Xr,la},Kr=function(dr){return gt(ei.fork(dr),ct.object,"detach(eff): argument must be a fork effect"),dr[qr].detached=!0,dr};function ba(){var Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"*";if(arguments.length&>(arguments[0],ct.notUndef,"take(patternOrChannel): patternOrChannel is undefined"),ct.pattern(Qn))return Zr(Gn,{pattern:Qn});if(ct.channel(Qn))return Zr(Gn,{channel:Qn});throw new Error("take(patternOrChannel): argument "+String(Qn)+" is not valid channel or a valid pattern")}ba.maybe=function(){var Qn=ba.apply(void 0,arguments);return Qn[Gn].maybe=!0,Qn};var Ri=Et(ba.maybe,Ht("takem","take.maybe"));function Ea(Qn,dr){return arguments.length>1?(gt(Qn,ct.notUndef,"put(channel, action): argument channel is undefined"),gt(Qn,ct.channel,"put(channel, action): argument "+Qn+" is not a valid channel"),gt(dr,ct.notUndef,"put(channel, action): argument action is undefined")):(gt(Qn,ct.notUndef,"put(action): argument action is undefined"),dr=Qn,Qn=null),Zr(Bn,{channel:Qn,action:dr})}Ea.resolve=function(){var Qn=Ea.apply(void 0,arguments);return Qn[Bn].resolve=!0,Qn},Ea.sync=Et(Ea.resolve,Ht("put.sync","put.resolve"));function Pi(Qn){return Zr(pr,Qn)}function rs(Qn){return Zr(_r,Qn)}function Ui(Qn,dr,Xr){gt(dr,ct.notUndef,Qn+": argument fn is undefined");var la=null;if(ct.array(dr)){var Ra=dr;la=Ra[0],dr=Ra[1]}else if(dr.fn){var _i=dr;la=_i.context,dr=_i.fn}return la&&ct.string(dr)&&ct.func(la[dr])&&(dr=la[dr]),gt(dr,ct.func,Qn+": argument "+dr+" is not a function"),{context:la,fn:dr,args:Xr}}function Cn(Qn){for(var dr=arguments.length,Xr=Array(dr>1?dr-1:0),la=1;la<dr;la++)Xr[la-1]=arguments[la];return Zr(na,Ui("call",Qn,Xr))}function Kn(Qn,dr){var Xr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Zr(na,Ui("apply",{context:Qn,fn:dr},Xr))}function Pn(Qn){for(var dr=arguments.length,Xr=Array(dr>1?dr-1:0),la=1;la<dr;la++)Xr[la-1]=arguments[la];return Zr($n,Ui("cps",Qn,Xr))}function At(Qn){for(var dr=arguments.length,Xr=Array(dr>1?dr-1:0),la=1;la<dr;la++)Xr[la-1]=arguments[la];return Zr(qr,Ui("fork",Qn,Xr))}function ar(Qn){for(var dr=arguments.length,Xr=Array(dr>1?dr-1:0),la=1;la<dr;la++)Xr[la-1]=arguments[la];return Kr(At.apply(void 0,[Qn].concat(Xr)))}function ta(){for(var Qn=arguments.length,dr=Array(Qn),Xr=0;Xr<Qn;Xr++)dr[Xr]=arguments[Xr];if(dr.length>1)return Pi(dr.map(function(Ra){return ta(Ra)}));var la=dr[0];return gt(la,ct.notUndef,"join(task): argument task is undefined"),gt(la,ct.task,"join(task): argument "+la+" is not a valid Task object "+Ur),Zr(Jr,la)}function Yn(){for(var Qn=arguments.length,dr=Array(Qn),Xr=0;Xr<Qn;Xr++)dr[Xr]=arguments[Xr];if(dr.length>1)return Pi(dr.map(function(Ra){return Yn(Ra)}));var la=dr[0];return dr.length===1&&(gt(la,ct.notUndef,"cancel(task): argument task is undefined"),gt(la,ct.task,"cancel(task): argument "+la+" is not a valid Task object "+Ur)),Zr(Aa,la||et)}function Qa(Qn){for(var dr=arguments.length,Xr=Array(dr>1?dr-1:0),la=1;la<dr;la++)Xr[la-1]=arguments[la];return arguments.length===0?Qn=Vt:(gt(Qn,ct.notUndef,"select(selector,[...]): argument selector is undefined"),gt(Qn,ct.func,"select(selector,[...]): argument "+Qn+" is not a function")),Zr(ya,{selector:Qn,args:Xr})}function Ua(Qn,dr){return gt(Qn,ct.notUndef,"actionChannel(pattern,...): argument pattern is undefined"),arguments.length>1&&(gt(dr,ct.notUndef,"actionChannel(pattern, buffer): argument buffer is undefined"),gt(dr,ct.buffer,"actionChannel(pattern, buffer): argument "+dr+" is not a valid buffer")),Zr($t,{pattern:Qn,buffer:dr})}function Fi(){return Zr(wn,{})}function Xa(Qn){return gt(Qn,ct.channel,"flush(channel): argument "+Qn+" is not valid channel"),Zr(Fn,Qn)}function $i(Qn){return gt(Qn,ct.string,"getContext(prop): argument "+Qn+" is not a string"),Zr(Or,Qn)}function La(Qn){return gt(Qn,ct.object,Qt(null,Qn)),Zr(vr,Qn)}var ja=function(dr){return function(Xr){return Xr&&Xr[En]&&Xr[dr]}},ei={take:ja(Gn),put:ja(Bn),all:ja(pr),race:ja(_r),call:ja(na),cps:ja($n),fork:ja(qr),join:ja(Jr),cancel:ja(Aa),select:ja(ya),actionChannel:ja($t),cancelled:ja(wn),flush:ja(Fn),getContext:ja(Or),setContext:ja(vr)},Do=Object.assign||function(Qn){for(var dr=1;dr<arguments.length;dr++){var Xr=arguments[dr];for(var la in Xr)Object.prototype.hasOwnProperty.call(Xr,la)&&(Qn[la]=Xr[la])}return Qn},yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Qn){return typeof Qn}:function(Qn){return Qn&&typeof Symbol=="function"&&Qn.constructor===Symbol&&Qn!==Symbol.prototype?"symbol":typeof Qn};function to(Qn,dr){for(var Xr in dr){var la=dr[Xr];la.configurable=la.enumerable=!0,"value"in la&&(la.writable=!0),Object.defineProperty(Qn,Xr,la)}return Qn}var fs="proc first argument (Saga function result) must be an iterator",cs={toString:function(){return"@@redux-saga/CHANNEL_END"}},Os={toString:function(){return"@@redux-saga/TASK_CANCEL"}},vl={wildcard:function(){return Ke},default:function(dr){return(typeof dr=="undefined"?"undefined":yo(dr))==="symbol"?function(Xr){return Xr.type===dr}:function(Xr){return Xr.type===String(dr)}},array:function(dr){return function(Xr){return dr.some(function(la){return Ar(la)(Xr)})}},predicate:function(dr){return function(Xr){return dr(Xr)}}};function Ar(Qn){return(Qn==="*"?vl.wildcard:ct.array(Qn)?vl.array:ct.stringableFunc(Qn)?vl.default:ct.func(Qn)?vl.predicate:vl.default)(Qn)}function Rn(Qn,dr,Xr){var la=[],Ra=void 0,_i=!1;ho(dr);function ui(Fo){Oi(),Xr(Fo,!0)}function ho(Fo){la.push(Fo),Fo.cont=function(as,Fs){_i||(jt(la,Fo),Fo.cont=wt,Fs?ui(as):(Fo===dr&&(Ra=as),la.length||(_i=!0,Xr(Ra))))}}function Oi(){_i||(_i=!0,la.forEach(function(Fo){Fo.cont=wt,Fo.cancel()}),la=[])}return{addTask:ho,cancelAll:Oi,abort:ui,getTasks:function(){return la},taskNames:function(){return la.map(function(as){return as.name})}}}function Sr(Qn){var dr=Qn.context,Xr=Qn.fn,la=Qn.args;if(ct.iterator(Xr))return Xr;var Ra=void 0,_i=void 0;try{Ra=Xr.apply(dr,la)}catch(ui){_i=ui}return ct.iterator(Ra)?Ra:de(_i?function(){throw _i}:function(){var ui=void 0,ho={done:!1,value:Ra},Oi=function(as){return{done:!0,value:as}};return function(Fo){return ui?Oi(Fo):(ui=!0,ho)}}())}var nn=function(dr){return{fn:dr}};function sn(Qn){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return wt},Xr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:wt,la=arguments.length>3&&arguments[3]!==void 0?arguments[3]:wt,Ra=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},_i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},ui=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,ho=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"anonymous",Oi=arguments[8];gt(Qn,ct.iterator,fs);var Fo="[...effects]",as=Et(pf,Ht(Fo,"all("+Fo+")")),Fs=_i.sagaMonitor,Fr=_i.logger,tl=_i.onError,Js=Fr||ot,Us=function(pi){var fo=pi.sagaStack;!fo&&pi.stack&&(fo=pi.stack.split(`
|
||
`)[0].indexOf(pi.message)!==-1?pi.stack:"Error: "+pi.message+`
|
||
`+pi.stack),Js("error","uncaught at "+ho,fo||pi.message||pi)},os=An(dr),El=Object.create(Ra);Co.cancel=wt;var Bs=Ia(ui,ho,Qn,Oi),gc={name:ho,cancel:Sa,isRunning:!0},kr=Rn(ho,gc,Ds);function Sa(){gc.isRunning&&!gc.isCancelled&&(gc.isCancelled=!0,Co(Os))}function Hi(){Qn._isRunning&&!Qn._isCancelled&&(Qn._isCancelled=!0,kr.cancelAll(),Ds(Os))}return Oi&&(Oi.cancel=Hi),Qn._isRunning=!0,Co(),Bs;function Co(Ja,pi){if(!gc.isRunning)throw new Error("Trying to resume an already finished generator");try{var fo=void 0;pi?fo=Qn.throw(Ja):Ja===Os?(gc.isCancelled=!0,Co.cancel(),fo=ct.func(Qn.return)?Qn.return(Os):{done:!0,value:Os}):Ja===cs?fo=ct.func(Qn.return)?Qn.return():{done:!0}:fo=Qn.next(Ja),fo.done?(gc.isMainRunning=!1,gc.cont&&gc.cont(fo.value)):Dl(fo.value,ui,"",Co)}catch(us){gc.isCancelled&&Us(us),gc.isMainRunning=!1,gc.cont(us,!0)}}function Ds(Ja,pi){Qn._isRunning=!1,os.close(),pi?(Ja instanceof Error&&Object.defineProperty(Ja,"sagaStack",{value:"at "+ho+`
|
||
`+(Ja.sagaStack||Ja.stack),configurable:!0}),Bs.cont||(Ja instanceof Error&&tl?tl(Ja):Us(Ja)),Qn._error=Ja,Qn._isAborted=!0,Qn._deferredEnd&&Qn._deferredEnd.reject(Ja)):(Qn._result=Ja,Qn._deferredEnd&&Qn._deferredEnd.resolve(Ja)),Bs.cont&&Bs.cont(Ja,pi),Bs.joiners.forEach(function(fo){return fo.cb(Ja,pi)}),Bs.joiners=null}function Dl(Ja,pi){var fo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",us=arguments[3],xo=ze();Fs&&Fs.effectTriggered({effectId:xo,parentEffectId:pi,label:fo,effect:Ja});var Qo=void 0;function gs(nl,nc){Qo||(Qo=!0,us.cancel=wt,Fs&&(nc?Fs.effectRejected(xo,nl):Fs.effectResolved(xo,nl)),us(nl,nc))}gs.cancel=wt,us.cancel=function(){if(!Qo){Qo=!0;try{gs.cancel()}catch(nl){Us(nl)}gs.cancel=wt,Fs&&Fs.effectCancelled(xo)}};var ds=void 0;return ct.promise(Ja)?Xc(Ja,gs):ct.helper(Ja)?iu(nn(Ja),xo,gs):ct.iterator(Ja)?Fl(Ja,xo,ho,gs):ct.array(Ja)?as(Ja,xo,gs):(ds=ei.take(Ja))?Eu(ds,gs):(ds=ei.put(Ja))?cc(ds,gs):(ds=ei.all(Ja))?pf(ds,xo,gs):(ds=ei.race(Ja))?hn(ds,xo,gs):(ds=ei.call(Ja))?Hu(ds,xo,gs):(ds=ei.cps(Ja))?dc(ds,gs):(ds=ei.fork(Ja))?iu(ds,xo,gs):(ds=ei.join(Ja))?Gc(ds,gs):(ds=ei.cancel(Ja))?Jc(ds,gs):(ds=ei.select(Ja))?dn(ds,gs):(ds=ei.actionChannel(Ja))?tr(ds,gs):(ds=ei.flush(Ja))?Lr(ds,gs):(ds=ei.cancelled(Ja))?Mn(ds,gs):(ds=ei.getContext(Ja))?sa(ds,gs):(ds=ei.setContext(Ja))?Ma(ds,gs):gs(Ja)}function Xc(Ja,pi){var fo=Ja[Qe];ct.func(fo)?pi.cancel=fo:ct.func(Ja.abort)&&(pi.cancel=function(){return Ja.abort()}),Ja.then(pi,function(us){return pi(us,!0)})}function Fl(Ja,pi,fo,us){sn(Ja,dr,Xr,la,El,_i,pi,fo,us)}function Eu(Ja,pi){var fo=Ja.channel,us=Ja.pattern,xo=Ja.maybe;fo=fo||os;var Qo=function(ds){return ds instanceof Error?pi(ds,!0):Ct(ds)&&!xo?pi(cs):pi(ds)};try{fo.take(Qo,Ar(us))}catch(gs){return pi(gs,!0)}pi.cancel=Qo.cancel}function cc(Ja,pi){var fo=Ja.channel,us=Ja.action,xo=Ja.resolve;be(function(){var Qo=void 0;try{Qo=(fo?fo.put:Xr)(us)}catch(gs){if(fo||xo)return pi(gs,!0);Us(gs)}if(xo&&ct.promise(Qo))Xc(Qo,pi);else return pi(Qo)})}function Hu(Ja,pi,fo){var us=Ja.context,xo=Ja.fn,Qo=Ja.args,gs=void 0;try{gs=xo.apply(us,Qo)}catch(ds){return fo(ds,!0)}return ct.promise(gs)?Xc(gs,fo):ct.iterator(gs)?Fl(gs,pi,xo.name,fo):fo(gs)}function dc(Ja,pi){var fo=Ja.context,us=Ja.fn,xo=Ja.args;try{var Qo=function(ds,nl){return ct.undef(ds)?pi(nl):pi(ds,!0)};us.apply(fo,xo.concat(Qo)),Qo.cancel&&(pi.cancel=function(){return Qo.cancel()})}catch(gs){return pi(gs,!0)}}function iu(Ja,pi,fo){var us=Ja.context,xo=Ja.fn,Qo=Ja.args,gs=Ja.detached,ds=Sr({context:us,fn:xo,args:Qo});try{Ae();var nl=sn(ds,dr,Xr,la,El,_i,pi,xo.name,gs?null:wt);gs?fo(nl):ds._isRunning?(kr.addTask(nl),fo(nl)):ds._error?kr.abort(ds._error):fo(nl)}finally{$e()}}function Gc(Ja,pi){if(Ja.isRunning()){var fo={task:Bs,cb:pi};pi.cancel=function(){return jt(Ja.joiners,fo)},Ja.joiners.push(fo)}else Ja.isAborted()?pi(Ja.error(),!0):pi(Ja.result())}function Jc(Ja,pi){Ja===et&&(Ja=Bs),Ja.isRunning()&&Ja.cancel(),pi()}function pf(Ja,pi,fo){var us=Object.keys(Ja);if(!us.length)return fo(ct.array(Ja)?[]:{});var xo=0,Qo=void 0,gs={},ds={};function nl(){xo===us.length&&(Qo=!0,fo(ct.array(Ja)?St.from(Do({},gs,{length:us.length})):gs))}us.forEach(function(nc){var Kl=function(xc,Ll){Qo||(Ll||Ct(xc)||xc===cs||xc===Os?(fo.cancel(),fo(xc,Ll)):(gs[nc]=xc,xo++,nl()))};Kl.cancel=wt,ds[nc]=Kl}),fo.cancel=function(){Qo||(Qo=!0,us.forEach(function(nc){return ds[nc].cancel()}))},us.forEach(function(nc){return Dl(Ja[nc],pi,nc,ds[nc])})}function hn(Ja,pi,fo){var us=void 0,xo=Object.keys(Ja),Qo={};xo.forEach(function(gs){var ds=function(nc,Kl){if(!us){if(Kl)fo.cancel(),fo(nc,!0);else if(!Ct(nc)&&nc!==cs&&nc!==Os){var mu;fo.cancel(),us=!0;var xc=(mu={},mu[gs]=nc,mu);fo(ct.array(Ja)?[].slice.call(Do({},xc,{length:xo.length})):xc)}}};ds.cancel=wt,Qo[gs]=ds}),fo.cancel=function(){us||(us=!0,xo.forEach(function(gs){return Qo[gs].cancel()}))},xo.forEach(function(gs){us||Dl(Ja[gs],pi,gs,Qo[gs])})}function dn(Ja,pi){var fo=Ja.selector,us=Ja.args;try{var xo=fo.apply(void 0,[la()].concat(us));pi(xo)}catch(Qo){pi(Qo,!0)}}function tr(Ja,pi){var fo=Ja.pattern,us=Ja.buffer,xo=Ar(fo);xo.pattern=fo,pi(ln(dr,us||Hn.fixed(),xo))}function Mn(Ja,pi){pi(!!gc.isCancelled)}function Lr(Ja,pi){Ja.flush(pi)}function sa(Ja,pi){pi(El[Ja])}function Ma(Ja,pi){at.assign(El,Ja),pi()}function Ia(Ja,pi,fo,us){var xo,Qo,gs;return fo._deferredEnd=null,Qo={},Qo[ke]=!0,Qo.id=Ja,Qo.name=pi,xo="done",gs={},gs[xo]=gs[xo]||{},gs[xo].get=function(){if(fo._deferredEnd)return fo._deferredEnd.promise;var ds=fn();return fo._deferredEnd=ds,fo._isRunning||(fo._error?ds.reject(fo._error):ds.resolve(fo._result)),ds.promise},Qo.cont=us,Qo.joiners=[],Qo.cancel=Hi,Qo.isRunning=function(){return fo._isRunning},Qo.isCancelled=function(){return fo._isCancelled},Qo.isAborted=function(){return fo._isAborted},Qo.result=function(){return fo._result},Qo.error=function(){return fo._error},Qo.setContext=function(nl){gt(nl,ct.object,Qt("task",nl)),at.assign(El,nl)},to(Qo,gs),Qo}}var Ot="runSaga(storeInterface, saga, ...args)",gr=Ot+": saga argument must be a Generator function!";function Gr(Qn,dr){for(var Xr=arguments.length,la=Array(Xr>2?Xr-2:0),Ra=2;Ra<Xr;Ra++)la[Ra-2]=arguments[Ra];var _i=void 0;ct.iterator(Qn)?(_i=Qn,Qn=dr):(gt(dr,ct.func,gr),_i=dr.apply(void 0,la),gt(_i,ct.iterator,gr));var ui=Qn,ho=ui.subscribe,Oi=ui.dispatch,Fo=ui.getState,as=ui.context,Fs=ui.sagaMonitor,Fr=ui.logger,tl=ui.onError,Js=ze();Fs&&(Fs.effectTriggered=Fs.effectTriggered||wt,Fs.effectResolved=Fs.effectResolved||wt,Fs.effectRejected=Fs.effectRejected||wt,Fs.effectCancelled=Fs.effectCancelled||wt,Fs.actionDispatched=Fs.actionDispatched||wt,Fs.effectTriggered({effectId:Js,root:!0,parentEffectId:0,effect:{root:!0,saga:dr,args:la}}));var Us=sn(_i,ho,an(Oi),Fo,as,{sagaMonitor:Fs,logger:Fr,onError:tl},Js,dr.name);return Fs&&Fs.effectResolved(Js,Us),Us}function Ln(Qn,dr){var Xr={};for(var la in Qn)dr.indexOf(la)>=0||!Object.prototype.hasOwnProperty.call(Qn,la)||(Xr[la]=Qn[la]);return Xr}function Tr(){var Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},dr=Qn.context,Xr=dr===void 0?{}:dr,la=Ln(Qn,["context"]),Ra=la.sagaMonitor,_i=la.logger,ui=la.onError;if(ct.func(la))throw new Error("Saga middleware no longer accept Generator functions. Use sagaMiddleware.run instead");if(_i&&!ct.func(_i))throw new Error("`options.logger` passed to the Saga middleware is not a function!");if(ui&&!ct.func(ui))throw new Error("`options.onError` passed to the Saga middleware is not a function!");if(la.emitter&&!ct.func(la.emitter))throw new Error("`options.emitter` passed to the Saga middleware is not a function!");function ho(Oi){var Fo=Oi.getState,as=Oi.dispatch,Fs=Bt();return Fs.emit=(la.emitter||Vt)(Fs.emit),ho.run=Gr.bind(null,{context:Xr,subscribe:Fs.subscribe,dispatch:as,getState:Fo,sagaMonitor:Ra,logger:_i,onError:ui}),function(Fr){return function(tl){Ra&&Ra.actionDispatched&&Ra.actionDispatched(tl);var Js=Fr(tl);return Fs.emit(tl),Js}}}return ho.run=function(){throw new Error("Before running a Saga, you must mount the Saga middleware on the Store using applyMiddleware")},ho.setContext=function(Oi){gt(Oi,ct.object,Qt("sagaMiddleware",Oi)),at.assign(Xr,Oi)},ho}var Dn={done:!0,value:void 0},Pr={};function fa(Qn){return ct.channel(Qn)?"channel":Array.isArray(Qn)?String(Qn.map(function(dr){return String(dr)})):String(Qn)}function ka(Qn,dr){var Xr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"iterator",la=void 0,Ra=dr;function _i(ui,ho){if(Ra===Pr)return Dn;if(ho)throw Ra=Pr,ho;la&&la(ui);var Oi=Qn[Ra](),Fo=Oi[0],as=Oi[1],Fs=Oi[2];return Ra=Fo,la=Fs,Ra===Pr?Dn:as}return de(_i,function(ui){return _i(null,ui)},Xr,!0)}function Li(Qn,dr){for(var Xr=arguments.length,la=Array(Xr>2?Xr-2:0),Ra=2;Ra<Xr;Ra++)la[Ra-2]=arguments[Ra];var _i={done:!1,value:ba(Qn)},ui=function(as){return{done:!1,value:At.apply(void 0,[dr].concat(la,[as]))}},ho=void 0,Oi=function(as){return ho=as};return ka({q1:function(){return["q2",_i,Oi]},q2:function(){return ho===vt?[Pr]:["q1",ui(ho)]}},"q1","takeEvery("+fa(Qn)+", "+dr.name+")")}function zi(Qn,dr){for(var Xr=arguments.length,la=Array(Xr>2?Xr-2:0),Ra=2;Ra<Xr;Ra++)la[Ra-2]=arguments[Ra];var _i={done:!1,value:ba(Qn)},ui=function(tl){return{done:!1,value:At.apply(void 0,[dr].concat(la,[tl]))}},ho=function(tl){return{done:!1,value:Yn(tl)}},Oi=void 0,Fo=void 0,as=function(tl){return Oi=tl},Fs=function(tl){return Fo=tl};return ka({q1:function(){return["q2",_i,Fs]},q2:function(){return Fo===vt?[Pr]:Oi?["q3",ho(Oi)]:["q1",ui(Fo),as]},q3:function(){return["q1",ui(Fo),as]}},"q1","takeLatest("+fa(Qn)+", "+dr.name+")")}function Mo(Qn,dr,Xr){for(var la=arguments.length,Ra=Array(la>3?la-3:0),_i=3;_i<la;_i++)Ra[_i-3]=arguments[_i];var ui=void 0,ho=void 0,Oi={done:!1,value:Ua(dr,Hn.sliding(1))},Fo=function(){return{done:!1,value:ba(ho)}},as=function(Us){return{done:!1,value:At.apply(void 0,[Xr].concat(Ra,[Us]))}},Fs={done:!1,value:Cn(Yt,Qn)},Fr=function(Us){return ui=Us},tl=function(Us){return ho=Us};return ka({q1:function(){return["q2",Oi,tl]},q2:function(){return["q3",Fo(),Fr]},q3:function(){return ui===vt?[Pr]:["q4",as(ui)]},q4:function(){return["q2",Fs]}},"q1","throttle("+fa(dr)+", "+Xr.name+")")}var Za=function(dr){return"import { "+dr+" } from 'redux-saga' has been deprecated in favor of import { "+dr+` } from 'redux-saga/effects'.
|
||
The latter will not work with yield*, as helper effects are wrapped automatically for you in fork effect.
|
||
Therefore yield `+dr+" will return task descriptor to your saga and execute next lines of code."},ao=Et(Li,Za("takeEvery")),Mi=Et(zi,Za("takeLatest")),Eo=Et(Mo,Za("throttle"));function Xi(Qn,dr){for(var Xr=arguments.length,la=Array(Xr>2?Xr-2:0),Ra=2;Ra<Xr;Ra++)la[Ra-2]=arguments[Ra];return At.apply(void 0,[Li,Qn,dr].concat(la))}function Bo(Qn,dr){for(var Xr=arguments.length,la=Array(Xr>2?Xr-2:0),Ra=2;Ra<Xr;Ra++)la[Ra-2]=arguments[Ra];return At.apply(void 0,[zi,Qn,dr].concat(la))}function ol(Qn,dr,Xr){for(var la=arguments.length,Ra=Array(la>3?la-3:0),_i=3;_i<la;_i++)Ra[_i-3]=arguments[_i];return At.apply(void 0,[Mo,Qn,dr,Xr].concat(Ra))}var Il=Tr,ms=o(15933),mc=o.n(ms),Ys=o(99809),hl=o(4742),Rs=o.n(hl),xl=o(6610),Wl=o(5991),_l=o(86724),Ls=o.n(_l),zn=o(78001),Dr=o(28481),Hr=o(87757),_a=o.n(Hr),Ti=Array.isArray.bind(Array),Ci=function(dr){return typeof dr=="function"},da=function(dr){return dr},Da=function(){},mi=function(dr,Xr){for(var la=0,Ra=dr.length;la<Ra;la+=1)if(Xr(dr[la],la))return la;return-1},Ho=Object.freeze({isPlainObject:mc(),isArray:Ti,isFunction:Ci,returnSelf:da,noop:Da,findIndex:mi});function al(Qn,dr){var Xr=Qn.namespace,la=Qn.reducers,Ra=Qn.effects,_i=Qn.subscriptions;invariant(Xr,"[app.model] namespace should be defined"),invariant(typeof Xr=="string","[app.model] namespace should be string, but got ".concat(_typeof(Xr))),invariant(!dr.some(function(ui){return ui.namespace===Xr}),"[app.model] namespace should be unique"),la&&(invariant(isPlainObject(la)||Ti(la),"[app.model] reducers should be plain object or array, but got ".concat(_typeof(la))),invariant(!Ti(la)||isPlainObject(la[0])&&Ci(la[1]),"[app.model] reducers with array should be [Object, Function]")),Ra&&invariant(isPlainObject(Ra),"[app.model] effects should be plain object, but got ".concat(_typeof(Ra))),_i&&(invariant(isPlainObject(_i),"[app.model] subscriptions should be plain object, but got ".concat(_typeof(_i))),invariant(ml(_i),"[app.model] subscription should be function"))}function ml(Qn){return Object.keys(Qn).every(function(dr){return Ci(Qn[dr])})}var Xs="/";function Ps(Qn,dr,Xr){return Object.keys(Qn).reduce(function(la,Ra){Rs()(Ra.indexOf("".concat(dr).concat(Xs))!==0,"[prefixNamespace]: ".concat(Xr," ").concat(Ra," should not be prefixed with namespace ").concat(dr));var _i="".concat(dr).concat(Xs).concat(Ra);return la[_i]=Qn[Ra],la},{})}function dl(Qn){var dr=Qn.namespace,Xr=Qn.reducers,la=Qn.effects;if(Xr)if(Ti(Xr)){var Ra=(0,Ys.Z)(Xr),_i=Ra[0],ui=Ra.slice(1);Qn.reducers=[Ps(_i,dr,"reducer")].concat((0,d.Z)(ui))}else Qn.reducers=Ps(Xr,dr,"reducer");return la&&(Qn.effects=Ps(la,dr,"effect")),Qn}var ql=["onError","onStateChange","onAction","onHmr","onReducer","onEffect","extraReducers","extraEnhancers","_handleActions"];function Dc(Qn){return Object.keys(Qn).reduce(function(dr,Xr){return ql.indexOf(Xr)>-1&&(dr[Xr]=Qn[Xr]),dr},{})}var Jl=function(){function Qn(){(0,xl.Z)(this,Qn),this._handleActions=null,this.hooks=ql.reduce(function(dr,Xr){return dr[Xr]=[],dr},{})}return(0,Wl.Z)(Qn,[{key:"use",value:function(Xr){p()(mc()(Xr),"plugin.use: plugin should be plain object");var la=this.hooks;for(var Ra in Xr)Object.prototype.hasOwnProperty.call(Xr,Ra)&&(p()(la[Ra],"plugin.use: unknown plugin property: ".concat(Ra)),Ra==="_handleActions"?this._handleActions=Xr[Ra]:Ra==="extraEnhancers"?la[Ra]=Xr[Ra]:la[Ra].push(Xr[Ra]))}},{key:"apply",value:function(Xr,la){var Ra=this.hooks,_i=["onError","onHmr"];p()(_i.indexOf(Xr)>-1,"plugin.apply: hook ".concat(Xr," cannot be applied"));var ui=Ra[Xr];return function(){if(ui.length){var ho=!0,Oi=!1,Fo=void 0;try{for(var as=ui[Symbol.iterator](),Fs;!(ho=(Fs=as.next()).done);ho=!0){var Fr=Fs.value;Fr.apply(void 0,arguments)}}catch(tl){Oi=!0,Fo=tl}finally{try{!ho&&as.return!=null&&as.return()}finally{if(Oi)throw Fo}}}else la&&la.apply(void 0,arguments)}}},{key:"get",value:function(Xr){var la=this.hooks;return p()(Xr in la,"plugin.get: hook ".concat(Xr," cannot be got")),Xr==="extraReducers"?oc(la[Xr]):Xr==="onReducer"?xu(la[Xr]):la[Xr]}}]),Qn}();function oc(Qn){var dr={},Xr=!0,la=!1,Ra=void 0;try{for(var _i=Qn[Symbol.iterator](),ui;!(Xr=(ui=_i.next()).done);Xr=!0){var ho=ui.value;dr=Z({},dr,ho)}}catch(Oi){la=!0,Ra=Oi}finally{try{!Xr&&_i.return!=null&&_i.return()}finally{if(la)throw Ra}}return dr}function xu(Qn){return function(dr){var Xr=!0,la=!1,Ra=void 0;try{for(var _i=Qn[Symbol.iterator](),ui;!(Xr=(ui=_i.next()).done);Xr=!0){var ho=ui.value;dr=ho(dr)}}catch(Oi){la=!0,Ra=Oi}finally{try{!Xr&&_i.return!=null&&_i.return()}finally{if(la)throw Ra}}return dr}}function yf(Qn){var dr=Qn.reducers,Xr=Qn.initialState,la=Qn.plugin,Ra=Qn.sagaMiddleware,_i=Qn.promiseMiddleware,ui=Qn.createOpts.setupMiddlewares,ho=ui===void 0?da:ui,Oi=la.get("extraEnhancers");p()(Ti(Oi),"[app.start] extraEnhancers should be array, but got ".concat((0,h.Z)(Oi)));var Fo=la.get("onAction"),as=ho([_i,Ra].concat((0,d.Z)(Ls()(Fo)))),Fs=me,Fr=[Pe.apply(void 0,(0,d.Z)(as))].concat((0,d.Z)(Oi));return Q(dr,Xr,Fs.apply(void 0,(0,d.Z)(Fr)))}function ku(Qn,dr){var Xr="".concat(dr.namespace).concat(Xs).concat(Qn),la=Xr.replace(/\/@@[^/]+?$/,""),Ra=Array.isArray(dr.reducers)?dr.reducers[0][la]:dr.reducers&&dr.reducers[la];return Ra||dr.effects&&dr.effects[la]?Xr:Qn}function Zc(Qn,dr,Xr,la){var Ra=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};return _a().mark(function _i(){var ui;return _a().wrap(function(Oi){for(;;)switch(Oi.prev=Oi.next){case 0:Oi.t0=_a().keys(Qn);case 1:if((Oi.t1=Oi.t0()).done){Oi.next=7;break}if(ui=Oi.t1.value,!Object.prototype.hasOwnProperty.call(Qn,ui)){Oi.next=5;break}return Oi.delegateYield(_a().mark(function Fo(){var as,Fs;return _a().wrap(function(tl){for(;;)switch(tl.prev=tl.next){case 0:return as=Zu(ui,Qn[ui],dr,Xr,la,Ra),tl.next=3,At(as);case 3:return Fs=tl.sent,tl.next=6,At(_a().mark(function Js(){return _a().wrap(function(os){for(;;)switch(os.prev=os.next){case 0:return os.next=2,ba("".concat(dr.namespace,"/@@CANCEL_EFFECTS"));case 2:return os.next=4,Yn(Fs);case 4:case"end":return os.stop()}},Js)}));case 6:case"end":return tl.stop()}},Fo)})(),"t2",5);case 5:Oi.next=1;break;case 7:case"end":return Oi.stop()}},_i)})}function Zu(Qn,dr,Xr,la,Ra,_i){var ui=_a().mark(Js),ho=dr,Oi="takeEvery",Fo,as;if(Array.isArray(dr)){var Fs=(0,Dr.Z)(dr,1);ho=Fs[0];var Fr=dr[1];Fr&&Fr.type&&(Oi=Fr.type,Oi==="throttle"&&(p()(Fr.ms,"app.start: opts.ms should be defined if type is throttle"),Fo=Fr.ms),Oi==="poll"&&(p()(Fr.delay,"app.start: opts.delay should be defined if type is poll"),as=Fr.delay)),p()(["watcher","takeEvery","takeLatest","throttle","poll"].indexOf(Oi)>-1,"app.start: effect type should be takeEvery, takeLatest, throttle, poll or watcher")}function tl(){}function Js(){var os,El,Bs,gc,kr,Sa,Hi,Co,Ds,Dl=arguments;return _a().wrap(function(Fl){for(;;)switch(Fl.prev=Fl.next){case 0:for(os=Dl.length,El=new Array(os),Bs=0;Bs<os;Bs++)El[Bs]=Dl[Bs];return gc=El.length>0?El[0]:{},kr=gc.__dva_resolve,Sa=kr===void 0?tl:kr,Hi=gc.__dva_reject,Co=Hi===void 0?tl:Hi,Fl.prev=2,Fl.next=5,Ea({type:"".concat(Qn).concat(Xs,"@@start")});case 5:return Fl.next=7,ho.apply(void 0,(0,d.Z)(El.concat(Fc(Xr,_i))));case 7:return Ds=Fl.sent,Fl.next=10,Ea({type:"".concat(Qn).concat(Xs,"@@end")});case 10:Sa(Ds),Fl.next=17;break;case 13:Fl.prev=13,Fl.t0=Fl.catch(2),la(Fl.t0,{key:Qn,effectArgs:El}),Fl.t0._dontReject||Co(Fl.t0);case 17:case"end":return Fl.stop()}},ui,null,[[2,13]])}var Us=Hc(Ra,Js,Xr,Qn);switch(Oi){case"watcher":return Js;case"takeLatest":return _a().mark(function os(){return _a().wrap(function(Bs){for(;;)switch(Bs.prev=Bs.next){case 0:return Bs.next=2,Bo(Qn,Us);case 2:case"end":return Bs.stop()}},os)});case"throttle":return _a().mark(function os(){return _a().wrap(function(Bs){for(;;)switch(Bs.prev=Bs.next){case 0:return Bs.next=2,ol(Fo,Qn,Us);case 2:case"end":return Bs.stop()}},os)});case"poll":return _a().mark(function os(){var El,Bs,gc,kr,Sa,Hi,Co;return _a().wrap(function(Dl){for(;;)switch(Dl.prev=Dl.next){case 0:gc=function(Fl,Eu){var cc;return _a().wrap(function(dc){for(;;)switch(dc.prev=dc.next){case 0:cc=Fl.call;case 1:return dc.next=4,cc(Us,Eu);case 4:return dc.next=6,cc(Bs,as);case 6:dc.next=1;break;case 8:case"end":return dc.stop()}},El)},Bs=function(Fl){return new Promise(function(Eu){return setTimeout(Eu,Fl)})},El=_a().mark(gc),kr=Cn,Sa=ba,Hi=rs;case 4:return Dl.next=7,Sa("".concat(Qn,"-start"));case 7:return Co=Dl.sent,Dl.next=10,Hi([kr(gc,x,Co),Sa("".concat(Qn,"-stop"))]);case 10:Dl.next=4;break;case 12:case"end":return Dl.stop()}},os)});default:return _a().mark(function os(){return _a().wrap(function(Bs){for(;;)switch(Bs.prev=Bs.next){case 0:return Bs.next=2,Xi(Qn,Us);case 2:case"end":return Bs.stop()}},os)})}}function Fc(Qn,dr){function Xr(ui,ho){p()(ui,"dispatch: action should be a plain Object with type");var Oi=dr.namespacePrefixWarning,Fo=Oi===void 0?!0:Oi;Fo&&Rs()(ui.indexOf("".concat(Qn.namespace).concat(Xs))!==0,"[".concat(ho,"] ").concat(ui," should not be prefixed with namespace ").concat(Qn.namespace))}function la(ui){var ho=ui.type;return Xr(ho,"sagaEffects.put"),Ea(Z({},ui,{type:ku(ho,Qn)}))}function Ra(ui){var ho=ui.type;return Xr(ho,"sagaEffects.put.resolve"),Ea.resolve(Z({},ui,{type:ku(ho,Qn)}))}la.resolve=Ra;function _i(ui){return typeof ui=="string"?(Xr(ui,"sagaEffects.take"),ba(ku(ui,Qn))):Array.isArray(ui)?ba(ui.map(function(ho){return typeof ho=="string"?(Xr(ho,"sagaEffects.take"),ku(ho,Qn)):ho})):ba(ui)}return Z({},x,{put:la,take:_i})}function Hc(Qn,dr,Xr,la){var Ra=!0,_i=!1,ui=void 0;try{for(var ho=Qn[Symbol.iterator](),Oi;!(Ra=(Oi=ho.next()).done);Ra=!0){var Fo=Oi.value;dr=Fo(dr,x,Xr,la)}}catch(as){_i=!0,ui=as}finally{try{!Ra&&ho.return!=null&&ho.return()}finally{if(_i)throw ui}}return dr}function Vu(Qn){return Qn}function ws(Qn){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vu;return function(Xr,la){var Ra=la.type;return p()(Ra,"dispatch: action should be a plain Object with type"),Qn===Ra?dr(Xr,la):Xr}}function fc(){for(var Qn=arguments.length,dr=new Array(Qn),Xr=0;Xr<Qn;Xr++)dr[Xr]=arguments[Xr];return function(la,Ra){return dr.reduce(function(_i,ui){return ui(_i,Ra)},la)}}function Tc(Qn,dr){var Xr=Object.keys(Qn).map(function(Ra){return ws(Ra,Qn[Ra])}),la=fc.apply(void 0,(0,d.Z)(Xr));return function(){var Ra=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dr,_i=arguments.length>1?arguments[1]:void 0;return la(Ra,_i)}}function jc(Qn,dr,Xr){return Array.isArray(Qn)?Qn[1]((Xr||Tc)(Qn[0],dr)):(Xr||Tc)(Qn||{},dr)}function lu(Qn){return function(){return function(Xr){return function(la){var Ra=la.type;return dr(Ra)?new Promise(function(_i,ui){Xr(Z({__dva_resolve:_i,__dva_reject:ui},la))}):Xr(la)}}};function dr(Xr){if(!Xr||typeof Xr!="string")return!1;var la=Xr.split(Xs),Ra=(0,Dr.Z)(la,1),_i=Ra[0],ui=Qn._models.filter(function(ho){return ho.namespace===_i})[0];return!!(ui&&ui.effects&&ui.effects[Xr])}}function hu(Qn,dr){return function(Xr){var la=Xr.type;return p()(la,"dispatch: action should be a plain Object with type"),Rs()(la.indexOf("".concat(dr.namespace).concat(Xs))!==0,"dispatch: ".concat(la," should not be prefixed with namespace ").concat(dr.namespace)),Qn(Z({},Xr,{type:ku(la,dr)}))}}function of(Qn,dr,Xr,la){var Ra=[],_i=[];for(var ui in Qn)if(Object.prototype.hasOwnProperty.call(Qn,ui)){var ho=Qn[ui],Oi=ho({dispatch:hu(Xr._store.dispatch,dr),history:Xr._history},la);Ci(Oi)?Ra.push(Oi):_i.push(ui)}return{funcs:Ra,nonFuncs:_i}}function uu(Qn,dr){if(!!Qn[dr]){var Xr=Qn[dr],la=Xr.funcs,Ra=Xr.nonFuncs;Rs()(Ra.length===0,"[app.unmodel] subscription should return unlistener function, check these subscriptions ".concat(Ra.join(", ")));var _i=!0,ui=!1,ho=void 0;try{for(var Oi=la[Symbol.iterator](),Fo;!(_i=(Fo=Oi.next()).done);_i=!0){var as=Fo.value;as()}}catch(Fs){ui=!0,ho=Fs}finally{try{!_i&&Oi.return!=null&&Oi.return()}finally{if(ui)throw ho}}delete Qn[dr]}}var zu=Da,cf=mi,bf={namespace:"@@dva",state:0,reducers:{UPDATE:function(dr){return dr+1}}};function Cu(){var Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Xr=dr.initialReducer,la=dr.setupApp,Ra=la===void 0?zu:la,_i=new Jl;_i.use(Dc(Qn));var ui={_models:[dl(Z({},bf))],_store:null,_plugin:_i,use:_i.use.bind(_i),model:ho,start:Fs};return ui;function ho(Fr){var tl=dl(Z({},Fr));return ui._models.push(tl),tl}function Oi(Fr,tl,Js,Us){Us=ho(Us);var os=ui._store;os.asyncReducers[Us.namespace]=jc(Us.reducers,Us.state,_i._handleActions),os.replaceReducer(Fr()),Us.effects&&os.runSaga(ui._getSaga(Us.effects,Us,tl,_i.get("onEffect"),Qn)),Us.subscriptions&&(Js[Us.namespace]=of(Us.subscriptions,Us,ui,tl))}function Fo(Fr,tl,Js,Us){var os=ui._store;delete os.asyncReducers[Us],delete tl[Us],os.replaceReducer(Fr()),os.dispatch({type:"@@dva/UPDATE"}),os.dispatch({type:"".concat(Us,"/@@CANCEL_EFFECTS")}),uu(Js,Us),ui._models=ui._models.filter(function(El){return El.namespace!==Us})}function as(Fr,tl,Js,Us,os){var El=ui._store,Bs=os.namespace,gc=cf(ui._models,function(kr){return kr.namespace===Bs});~gc&&(El.dispatch({type:"".concat(Bs,"/@@CANCEL_EFFECTS")}),delete El.asyncReducers[Bs],delete tl[Bs],uu(Js,Bs),ui._models.splice(gc,1)),ui.model(os),El.dispatch({type:"@@dva/UPDATE"})}function Fs(){var Fr=function(Ma,Ia){Ma&&(typeof Ma=="string"&&(Ma=new Error(Ma)),Ma.preventDefault=function(){Ma._dontReject=!0},_i.apply("onError",function(Ja){throw new Error(Ja.stack||Ja)})(Ma,ui._store.dispatch,Ia))},tl=Il(),Js=lu(ui);ui._getSaga=Zc.bind(null);var Us=[],os=Z({},Xr),El=!0,Bs=!1,gc=void 0;try{for(var kr=ui._models[Symbol.iterator](),Sa;!(El=(Sa=kr.next()).done);El=!0){var Hi=Sa.value;os[Hi.namespace]=jc(Hi.reducers,Hi.state,_i._handleActions),Hi.effects&&Us.push(ui._getSaga(Hi.effects,Hi,Fr,_i.get("onEffect"),Qn))}}catch(sa){Bs=!0,gc=sa}finally{try{!El&&kr.return!=null&&kr.return()}finally{if(Bs)throw gc}}var Co=_i.get("onReducer"),Ds=_i.get("extraReducers");p()(Object.keys(Ds).every(function(sa){return!(sa in os)}),"[app.start] extraReducers is conflict with other reducers, reducers list: ".concat(Object.keys(os).join(", "))),ui._store=yf({reducers:Lr(),initialState:Qn.initialState||{},plugin:_i,createOpts:dr,sagaMiddleware:tl,promiseMiddleware:Js});var Dl=ui._store;Dl.runSaga=tl.run,Dl.asyncReducers={};var Xc=_i.get("onStateChange"),Fl=!0,Eu=!1,cc=void 0;try{for(var Hu=function(){var Ma=iu.value;Dl.subscribe(function(){Ma(Dl.getState())})},dc=Xc[Symbol.iterator](),iu;!(Fl=(iu=dc.next()).done);Fl=!0)Hu()}catch(sa){Eu=!0,cc=sa}finally{try{!Fl&&dc.return!=null&&dc.return()}finally{if(Eu)throw cc}}Us.forEach(tl.run),Ra(ui);var Gc={},Jc=!0,pf=!1,hn=void 0;try{for(var dn=this._models[Symbol.iterator](),tr;!(Jc=(tr=dn.next()).done);Jc=!0){var Mn=tr.value;Mn.subscriptions&&(Gc[Mn.namespace]=of(Mn.subscriptions,Mn,ui,Fr))}}catch(sa){pf=!0,hn=sa}finally{try{!Jc&&dn.return!=null&&dn.return()}finally{if(pf)throw hn}}ui.model=Oi.bind(ui,Lr,Fr,Gc),ui.unmodel=Fo.bind(ui,Lr,os,Gc),ui.replaceModel=as.bind(ui,Lr,os,Gc,Fr);function Lr(){return Co(ve(Z({},os,Ds,ui._store?ui._store.asyncReducers:{})))}}}var rf=o(2546),Bu="@@router/LOCATION_CHANGE",Tf=function(dr,Xr){var la=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return{type:Bu,payload:{location:dr,action:Xr,isFirstRendering:la}}},ed="@@router/CALL_HISTORY_METHOD",Fd=function(dr){return function(){for(var Xr=arguments.length,la=new Array(Xr),Ra=0;Ra<Xr;Ra++)la[Ra]=arguments[Ra];return{type:ed,payload:{method:dr,args:la}}}},Pd=Fd("push"),Nc=Fd("replace"),eu=Fd("go"),If=Fd("goBack"),$f=Fd("goForward"),Te={push:Pd,replace:Nc,go:eu,goBack:If,goForward:$f},_t=function(dr){var Xr=dr.fromJS,la=dr.merge,Ra=function(ui){var ho=Xr({location:ui.location,action:ui.action});return function(){var Oi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ho,Fo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},as=Fo.type,Fs=Fo.payload;if(as===Bu){var Fr=Fs.location,tl=Fs.action,Js=Fs.isFirstRendering;return Js?Oi:la(Oi,{location:Xr(Fr),action:tl})}return Oi}};return Ra},Vn=_t;function br(Qn){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?br=function(Xr){return typeof Xr}:br=function(Xr){return Xr&&typeof Symbol=="function"&&Xr.constructor===Symbol&&Xr!==Symbol.prototype?"symbol":typeof Xr},br(Qn)}var tn=function(dr){var Xr=dr.getIn,la=dr.toJS,Ra=function(Fr){return Fr!=null&&br(Fr)==="object"&&Xr(Fr,["location"])&&Xr(Fr,["action"])},_i=function(Fr){var tl=la(Xr(Fr,["router"]));if(!Ra(tl))throw'Could not find router reducer in state tree, it must be mounted under "router"';return tl},ui=function(Fr){return la(Xr(_i(Fr),["location"]))},ho=function(Fr){return la(Xr(_i(Fr),["action"]))},Oi=function(Fr){return la(Xr(_i(Fr),["location","search"]))},Fo=function(Fr){return la(Xr(_i(Fr),["location","hash"]))},as=function(Fr){var tl=null,Js=null;return function(Us){var os=ui(Us)||{},El=os.pathname;if(El===tl)return Js;tl=El;var Bs=(0,rf.LX)(El,Fr);return(!Bs||!Js||Bs.url!==Js.url)&&(Js=Bs),Js}};return{getLocation:ui,getAction:ho,getRouter:_i,getSearch:Oi,getHash:Fo,createMatchSelector:as}},Pt=tn,on=function(dr,Xr){if(!dr)return dr;var la=Xr.length;if(!!la){for(var Ra=dr,_i=0;_i<la&&!!Ra;++_i)Ra=Ra[Xr[_i]];return Ra}},_n=on;function ir(Qn){for(var dr=1;dr<arguments.length;dr++){var Xr=arguments[dr]!=null?arguments[dr]:{},la=Object.keys(Xr);typeof Object.getOwnPropertySymbols=="function"&&(la=la.concat(Object.getOwnPropertySymbols(Xr).filter(function(Ra){return Object.getOwnPropertyDescriptor(Xr,Ra).enumerable}))),la.forEach(function(Ra){xr(Qn,Ra,Xr[Ra])})}return Qn}function xr(Qn,dr,Xr){return dr in Qn?Object.defineProperty(Qn,dr,{value:Xr,enumerable:!0,configurable:!0,writable:!0}):Qn[dr]=Xr,Qn}var aa={fromJS:function(dr){return dr},getIn:_n,merge:function(dr,Xr){return ir({},dr,Xr)},toJS:function(dr){return dr}},oi=aa,ni=null,yi=Vn(oi),Zo=Pt(oi),is=Zo.getLocation,mo=Zo.getAction,Ml=Zo.getHash,yc=Zo.getSearch,oa=Zo.createMatchSelector;function sl(Qn){return Rf(Qn)||bc(Qn)||fl()}function fl(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function bc(Qn){if(Symbol.iterator in Object(Qn)||Object.prototype.toString.call(Qn)==="[object Arguments]")return Array.from(Qn)}function Rf(Qn){if(Array.isArray(Qn)){for(var dr=0,Xr=new Array(Qn.length);dr<Qn.length;dr++)Xr[dr]=Qn[dr];return Xr}}var Ms=function(dr){return function(Xr){return function(la){return function(Ra){if(Ra.type!==ed)return la(Ra);var _i=Ra.payload,ui=_i.method,ho=_i.args;dr[ui].apply(dr,sl(ho))}}}},ff=Ms,Df=o(2327),Ff=o(10379),Kf=o(44144),xf={};function Sc(Qn,dr){dr=dr.default||dr,xf[dr.namespace]||(Qn.model(dr),xf[dr.namespace]=1)}var Wu=function(){return null};function Du(Qn){var dr=Qn.resolve;return function(Xr){(0,Ff.Z)(Ra,Xr);var la=(0,Kf.Z)(Ra);function Ra(){var _i;(0,xl.Z)(this,Ra);for(var ui=arguments.length,ho=new Array(ui),Oi=0;Oi<ui;Oi++)ho[Oi]=arguments[Oi];return _i=la.call.apply(la,[this].concat(ho)),_i.LoadingComponent=Qn.LoadingComponent||Wu,_i.state={AsyncComponent:null},_i.load(),_i}return(0,Wl.Z)(Ra,[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"load",value:function(){var ui=this;dr().then(function(ho){var Oi=ho.default||ho;ui.mounted?ui.setState({AsyncComponent:Oi}):ui.state.AsyncComponent=Oi})}},{key:"render",value:function(){var ui=this.state.AsyncComponent,ho=this.LoadingComponent;return ui?m.createElement(ui,this.props):m.createElement(ho,this.props)}}]),Ra}(m.Component)}function Gd(Qn){var dr=Qn.app,Xr=Qn.models,la=Qn.component;return Du((0,v.Z)({resolve:Qn.resolve||function(){var Ra=typeof Xr=="function"?Xr():[],_i=la();return new Promise(function(ui){Promise.all([].concat((0,d.Z)(Ra),[_i])).then(function(ho){if(!Ra||!Ra.length)return ui(ho[0]);var Oi=Ra.length;ho.slice(0,Oi).forEach(function(Fo){Fo=Fo.default||Fo,Array.isArray(Fo)||(Fo=[Fo]),Fo.map(function(as){return Sc(dr,as)})}),ui(ho[Oi])})})}},Qn))}Gd.setDefaultLoadingComponent=function(Qn){Wu=Qn};var gf=yi,Vp=ff,$c=Ho.isFunction,Yl=rf.k6,Sp=rf.TH,tp=rf.UO,Rp=rf.$B;function df(){var Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},dr=Qn.history||(0,S.q_)(),Xr={initialReducer:{router:gf(dr)},setupMiddlewares:function(Oi){return[Vp(dr)].concat((0,d.Z)(Oi))},setupApp:function(Oi){Oi._history=ra(dr)}},la=Cu(Qn,Xr),Ra=la.start;return la.router=_i,la.start=ui,la;function _i(ho){p()($c(ho),"[app.router] router should be function, but got ".concat((0,h.Z)(ho))),la._router=ho}function ui(ho){Af(ho)&&(ho=O().querySelector(ho),p()(ho,"[app.start] container ".concat(ho," not found"))),p()(!ho||uf(ho),"[app.start] container should be HTMLElement"),p()(la._router,"[app.start] router must be registered before app.start()"),la._store||Ra.call(la);var Oi=la._store;if(la._getProvider=Wn.bind(null,Oi,la),ho)ca(ho,Oi,la,la._router),la._plugin.apply("onHmr")(ca.bind(null,ho,Oi,la));else return Wn(Oi,this,this._router)}}function uf(Qn){return(0,h.Z)(Qn)==="object"&&Qn!==null&&Qn.nodeType&&Qn.nodeName}function Af(Qn){return typeof Qn=="string"}function Wn(Qn,dr,Xr){var la=function(_i){return m.createElement(F.zt,{store:Qn},Xr((0,v.Z)({app:dr,history:dr._history},_i)))};return la}function ca(Qn,dr,Xr,la){var Ra=o(73935);Ra.render(m.createElement(Wn(dr,Xr,la)),Qn)}function ra(Qn){var dr=Qn.listen;return Qn.listen=function(Xr){var la=Xr.toString(),Ra=Xr.name==="handleLocationChange"&&la.indexOf("onLocationChanged")>-1||la.indexOf(".inTimeTravelling")>-1&&la.indexOf(".inTimeTravelling")>-1&&la.indexOf("arguments[2]")>-1;return Xr(Qn.location,Qn.action,{__isDvaPatch:!0}),dr.call(Qn,function(){for(var _i=arguments.length,ui=new Array(_i),ho=0;ho<_i;ho++)ui[ho]=arguments[ho];Ra?Xr.apply(void 0,ui):setTimeout(function(){Xr.apply(void 0,ui)})})},Qn}var Na=df,fi="@@DVA_LOADING/SHOW",so="@@DVA_LOADING/HIDE",vo="loading";function Ro(){var Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},dr=Qn.namespace||vo,Xr=Qn.only,la=Xr===void 0?[]:Xr,Ra=Qn.except,_i=Ra===void 0?[]:Ra;if(la.length>0&&_i.length>0)throw Error("It is ambiguous to configurate `only` and `except` items at the same time.");var ui={global:!1,models:{},effects:{}},ho=(0,D.Z)({},dr,function(){var Fo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ui,as=arguments.length>1?arguments[1]:void 0,Fs=as.type,Fr=as.payload,tl=Fr||{},Js=tl.namespace,Us=tl.actionType,os;switch(Fs){case fi:os=(0,v.Z)((0,v.Z)({},Fo),{},{global:!0,models:(0,v.Z)((0,v.Z)({},Fo.models),{},(0,D.Z)({},Js,!0)),effects:(0,v.Z)((0,v.Z)({},Fo.effects),{},(0,D.Z)({},Us,!0))});break;case so:{var El=(0,v.Z)((0,v.Z)({},Fo.effects),{},(0,D.Z)({},Us,!1)),Bs=(0,v.Z)((0,v.Z)({},Fo.models),{},(0,D.Z)({},Js,Object.keys(El).some(function(kr){var Sa=kr.split("/")[0];return Sa!==Js?!1:El[kr]}))),gc=Object.keys(Bs).some(function(kr){return Bs[kr]});os=(0,v.Z)((0,v.Z)({},Fo),{},{global:gc,models:Bs,effects:El});break}default:os=Fo;break}return os});function Oi(Fo,as,Fs,Fr){var tl=as.put,Js=Fs.namespace;return la.length===0&&_i.length===0||la.length>0&&la.indexOf(Fr)!==-1||_i.length>0&&_i.indexOf(Fr)===-1?_a().mark(function Us(){var os=arguments;return _a().wrap(function(Bs){for(;;)switch(Bs.prev=Bs.next){case 0:return Bs.next=2,tl({type:fi,payload:{namespace:Js,actionType:Fr}});case 2:return Bs.next=4,Fo.apply(void 0,os);case 4:return Bs.next=6,tl({type:so,payload:{namespace:Js,actionType:Fr}});case 6:case"end":return Bs.stop()}},Us)}):Fo}return{extraReducers:ho,onEffect:Oi}}var So=Ro,el=o(20546),ul=o(4856),Xo=null;function lo(){var Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},dr=el.BA.applyPlugins({key:"dva",type:b.ApplyPluginsType.modify,initialValue:{}});return Xo=Na((0,w.Z)((0,w.Z)((0,w.Z)({history:el.m8},dr.config||{}),typeof window!="undefined"&&window.g_useSSR?{initialState:window.g_initialProps}:{}),Qn||{})),Xo.use(So()),(dr.plugins||[]).forEach(function(Xr){Xo.use(Xr)}),Xo.model((0,w.Z)({namespace:"model"},ul.Z)),Xo}function Zs(){return Xo}function Gs(){return typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"}var $s=function(Qn){(0,y.Z)(Xr,Qn);var dr=(0,M.Z)(Xr);function Xr(la){var Ra;return(0,g.Z)(this,Xr),Ra=dr.call(this,la),Gs()&&lo(),Ra}return(0,A.Z)(Xr,[{key:"componentWillUnmount",value:function(){var Ra=Zs();Ra._models.forEach(function(_i){Ra.unmodel(_i.namespace)}),Ra._models=[];try{Ra=null}catch(_i){console.error(_i)}}},{key:"render",value:function(){var Ra=this,_i=Zs();return _i.router(function(){return Ra.props.children}),_i.start()()}}]),Xr}(m.Component)},17866:function(oe,N,o){"use strict";o.d(N,{Z:function(){return dd}});var x=o(11849),g=o(2824),A=o(67294),y=o(20546),M=o(85560),w=o(93224),m=o(87748),b=o(38663),v=o(12001),h=o(51763),d=o(22540),_=h.ZP;_.Header=h.h4,_.Footer=h.$_,_.Content=h.VY,_.Sider=d.Z;var p=_,S=o(96156),k=o(55507),O=o(92137),F=o(81253),D=o(35635),Z=o(23799),W=o(28481),U=o(28991),L=o(85893),V=o(51756),$=o(69270),G=o(6797);function z(cr,un){var Jn=typeof cr.pageName=="string"?cr.title:un;(0,A.useEffect)(function(){(0,G.Z)()&&Jn&&(document.title=Jn)},[cr.title,Jn])}var K=z,re=o(94681),ne=o.n(re),Q=Number.isNaN||function(un){return typeof un=="number"&&un!==un};function ue(cr,un){return!!(cr===un||Q(cr)&&Q(un))}function he(cr,un){if(cr.length!==un.length)return!1;for(var Jn=0;Jn<cr.length;Jn++)if(!ue(cr[Jn],un[Jn]))return!1;return!0}function Ee(cr,un){un===void 0&&(un=he);var Jn,Xn=[],Vr,Zn=!1;function pa(){for(var Ha=[],gi=0;gi<arguments.length;gi++)Ha[gi]=arguments[gi];return Zn&&Jn===this&&un(Ha,Xn)||(Vr=cr.apply(this,Ha),Zn=!0,Jn=this,Xn=Ha),Vr}return pa}var ce=Ee;function ve(cr){for(var un=[],Jn=0;Jn<cr.length;){var Xn=cr[Jn];if(Xn==="*"||Xn==="+"||Xn==="?"){un.push({type:"MODIFIER",index:Jn,value:cr[Jn++]});continue}if(Xn==="\\"){un.push({type:"ESCAPED_CHAR",index:Jn++,value:cr[Jn++]});continue}if(Xn==="{"){un.push({type:"OPEN",index:Jn,value:cr[Jn++]});continue}if(Xn==="}"){un.push({type:"CLOSE",index:Jn,value:cr[Jn++]});continue}if(Xn===":"){for(var Vr="",Zn=Jn+1;Zn<cr.length;){var pa=cr.charCodeAt(Zn);if(pa>=48&&pa<=57||pa>=65&&pa<=90||pa>=97&&pa<=122||pa===95){Vr+=cr[Zn++];continue}break}if(!Vr)throw new TypeError("Missing parameter name at "+Jn);un.push({type:"NAME",index:Jn,value:Vr}),Jn=Zn;continue}if(Xn==="("){var Ha=1,gi="",Zn=Jn+1;if(cr[Zn]==="?")throw new TypeError('Pattern cannot start with "?" at '+Zn);for(;Zn<cr.length;){if(cr[Zn]==="\\"){gi+=cr[Zn++]+cr[Zn++];continue}if(cr[Zn]===")"){if(Ha--,Ha===0){Zn++;break}}else if(cr[Zn]==="("&&(Ha++,cr[Zn+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+Zn);gi+=cr[Zn++]}if(Ha)throw new TypeError("Unbalanced pattern at "+Jn);if(!gi)throw new TypeError("Missing pattern at "+Jn);un.push({type:"PATTERN",index:Jn,value:gi}),Jn=Zn;continue}un.push({type:"CHAR",index:Jn,value:cr[Jn++]})}return un.push({type:"END",index:Jn,value:""}),un}function fe(cr,un){un===void 0&&(un={});for(var Jn=ve(cr),Xn=un.prefixes,Vr=Xn===void 0?"./":Xn,Zn="[^"+Ie(un.delimiter||"/#?")+"]+?",pa=[],Ha=0,gi=0,co="",No=function(qa){if(gi<Jn.length&&Jn[gi].type===qa)return Jn[gi++].value},Ko=function(qa){var Es=No(qa);if(Es!==void 0)return Es;var Qs=Jn[gi],Hl=Qs.type,Lc=Qs.index;throw new TypeError("Unexpected "+Hl+" at "+Lc+", expected "+qa)},Jo=function(){for(var qa="",Es;Es=No("CHAR")||No("ESCAPED_CHAR");)qa+=Es;return qa};gi<Jn.length;){var gl=No("CHAR"),js=No("NAME"),Zl=No("PATTERN");if(js||Zl){var ko=gl||"";Vr.indexOf(ko)===-1&&(co+=ko,ko=""),co&&(pa.push(co),co=""),pa.push({name:js||Ha++,prefix:ko,suffix:"",pattern:Zl||Zn,modifier:No("MODIFIER")||""});continue}var te=gl||No("ESCAPED_CHAR");if(te){co+=te;continue}co&&(pa.push(co),co="");var Me=No("OPEN");if(Me){var ko=Jo(),ft=No("NAME")||"",Nt=No("PATTERN")||"",xn=Jo();Ko("CLOSE"),pa.push({name:ft||(Nt?Ha++:""),pattern:ft&&!Nt?Zn:Nt,prefix:ko,suffix:xn,modifier:No("MODIFIER")||""});continue}Ko("END")}return pa}function we(cr,un){return me(fe(cr,un),un)}function me(cr,un){un===void 0&&(un={});var Jn=Je(un),Xn=un.encode,Vr=Xn===void 0?function(gi){return gi}:Xn,Zn=un.validate,pa=Zn===void 0?!0:Zn,Ha=cr.map(function(gi){if(typeof gi=="object")return new RegExp("^(?:"+gi.pattern+")$",Jn)});return function(gi){for(var co="",No=0;No<cr.length;No++){var Ko=cr[No];if(typeof Ko=="string"){co+=Ko;continue}var Jo=gi?gi[Ko.name]:void 0,gl=Ko.modifier==="?"||Ko.modifier==="*",js=Ko.modifier==="*"||Ko.modifier==="+";if(Array.isArray(Jo)){if(!js)throw new TypeError('Expected "'+Ko.name+'" to not repeat, but got an array');if(Jo.length===0){if(gl)continue;throw new TypeError('Expected "'+Ko.name+'" to not be empty')}for(var Zl=0;Zl<Jo.length;Zl++){var ko=Vr(Jo[Zl],Ko);if(pa&&!Ha[No].test(ko))throw new TypeError('Expected all "'+Ko.name+'" to match "'+Ko.pattern+'", but got "'+ko+'"');co+=Ko.prefix+ko+Ko.suffix}continue}if(typeof Jo=="string"||typeof Jo=="number"){var ko=Vr(String(Jo),Ko);if(pa&&!Ha[No].test(ko))throw new TypeError('Expected "'+Ko.name+'" to match "'+Ko.pattern+'", but got "'+ko+'"');co+=Ko.prefix+ko+Ko.suffix;continue}if(!gl){var te=js?"an array":"a string";throw new TypeError('Expected "'+Ko.name+'" to be '+te)}}return co}}function Pe(cr,un){var Jn=[],Xn=qe(cr,Jn,un);return pe(Xn,Jn,un)}function pe(cr,un,Jn){Jn===void 0&&(Jn={});var Xn=Jn.decode,Vr=Xn===void 0?function(Zn){return Zn}:Xn;return function(Zn){var pa=cr.exec(Zn);if(!pa)return!1;for(var Ha=pa[0],gi=pa.index,co=Object.create(null),No=function(gl){if(pa[gl]===void 0)return"continue";var js=un[gl-1];js.modifier==="*"||js.modifier==="+"?co[js.name]=pa[gl].split(js.prefix+js.suffix).map(function(Zl){return Vr(Zl,js)}):co[js.name]=Vr(pa[gl],js)},Ko=1;Ko<pa.length;Ko++)No(Ko);return{path:Ha,index:gi,params:co}}}function Ie(cr){return cr.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Je(cr){return cr&&cr.sensitive?"":"i"}function ke(cr,un){if(!un)return cr;var Jn=cr.source.match(/\((?!\?)/g);if(Jn)for(var Xn=0;Xn<Jn.length;Xn++)un.push({name:Xn,prefix:"",suffix:"",modifier:"",pattern:""});return cr}function De(cr,un,Jn){var Xn=cr.map(function(Vr){return qe(Vr,un,Jn).source});return new RegExp("(?:"+Xn.join("|")+")",Je(Jn))}function Fe(cr,un,Jn){return Qe(fe(cr,Jn),un,Jn)}function Qe(cr,un,Jn){Jn===void 0&&(Jn={});for(var Xn=Jn.strict,Vr=Xn===void 0?!1:Xn,Zn=Jn.start,pa=Zn===void 0?!0:Zn,Ha=Jn.end,gi=Ha===void 0?!0:Ha,co=Jn.encode,No=co===void 0?function(Yr){return Yr}:co,Ko="["+Ie(Jn.endsWith||"")+"]|$",Jo="["+Ie(Jn.delimiter||"/#?")+"]",gl=pa?"^":"",js=0,Zl=cr;js<Zl.length;js++){var ko=Zl[js];if(typeof ko=="string")gl+=Ie(No(ko));else{var te=Ie(No(ko.prefix)),Me=Ie(No(ko.suffix));if(ko.pattern)if(un&&un.push(ko),te||Me)if(ko.modifier==="+"||ko.modifier==="*"){var ft=ko.modifier==="*"?"?":"";gl+="(?:"+te+"((?:"+ko.pattern+")(?:"+Me+te+"(?:"+ko.pattern+"))*)"+Me+")"+ft}else gl+="(?:"+te+"("+ko.pattern+")"+Me+")"+ko.modifier;else gl+="("+ko.pattern+")"+ko.modifier;else gl+="(?:"+te+Me+")"+ko.modifier}}if(gi)Vr||(gl+=Jo+"?"),gl+=Jn.endsWith?"(?="+Ko+")":"$";else{var Nt=cr[cr.length-1],xn=typeof Nt=="string"?Jo.indexOf(Nt[Nt.length-1])>-1:Nt===void 0;Vr||(gl+="(?:"+Jo+"(?="+Ko+"))?"),xn||(gl+="(?="+Jo+"|"+Ko+")")}return new RegExp(gl,Je(Jn))}function qe(cr,un,Jn){return cr instanceof RegExp?ke(cr,un):Array.isArray(cr)?De(cr,un,Jn):Fe(cr,un,Jn)}function et(cr,un){return un>>>cr|un<<32-cr}function dt(cr,un,Jn){return cr&un^~cr&Jn}function Ke(cr,un,Jn){return cr&un^cr&Jn^un&Jn}function Ge(cr){return et(2,cr)^et(13,cr)^et(22,cr)}function wt(cr){return et(6,cr)^et(11,cr)^et(25,cr)}function Vt(cr){return et(7,cr)^et(18,cr)^cr>>>3}function gt(cr){return et(17,cr)^et(19,cr)^cr>>>10}function it(cr,un){return cr[un&15]+=gt(cr[un+14&15])+cr[un+9&15]+Vt(cr[un+1&15])}var Le=[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],ct,at,jt,St="0123456789abcdef";function fn(cr,un){var Jn=(cr&65535)+(un&65535),Xn=(cr>>16)+(un>>16)+(Jn>>16);return Xn<<16|Jn&65535}function Xt(){ct=new Array(8),at=new Array(2),jt=new Array(64),at[0]=at[1]=0,ct[0]=1779033703,ct[1]=3144134277,ct[2]=1013904242,ct[3]=2773480762,ct[4]=1359893119,ct[5]=2600822924,ct[6]=528734635,ct[7]=1541459225}function Yt(){var cr,un,Jn,Xn,Vr,Zn,pa,Ha,gi,co,No=new Array(16);cr=ct[0],un=ct[1],Jn=ct[2],Xn=ct[3],Vr=ct[4],Zn=ct[5],pa=ct[6],Ha=ct[7];for(var Ko=0;Ko<16;Ko++)No[Ko]=jt[(Ko<<2)+3]|jt[(Ko<<2)+2]<<8|jt[(Ko<<2)+1]<<16|jt[Ko<<2]<<24;for(var Jo=0;Jo<64;Jo++)gi=Ha+wt(Vr)+dt(Vr,Zn,pa)+Le[Jo],Jo<16?gi+=No[Jo]:gi+=it(No,Jo),co=Ge(cr)+Ke(cr,un,Jn),Ha=pa,pa=Zn,Zn=Vr,Vr=fn(Xn,gi),Xn=Jn,Jn=un,un=cr,cr=fn(gi,co);ct[0]+=cr,ct[1]+=un,ct[2]+=Jn,ct[3]+=Xn,ct[4]+=Vr,ct[5]+=Zn,ct[6]+=pa,ct[7]+=Ha}function Rt(cr,un){var Jn,Xn,Vr=0;Xn=at[0]>>3&63;var Zn=un&63;for((at[0]+=un<<3)<un<<3&&at[1]++,at[1]+=un>>29,Jn=0;Jn+63<un;Jn+=64){for(var pa=Xn;pa<64;pa++)jt[pa]=cr.charCodeAt(Vr++);Yt(),Xn=0}for(var Ha=0;Ha<Zn;Ha++)jt[Ha]=cr.charCodeAt(Vr++)}function Lt(){var cr=at[0]>>3&63;if(jt[cr++]=128,cr<=56)for(var un=cr;un<56;un++)jt[un]=0;else{for(var Jn=cr;Jn<64;Jn++)jt[Jn]=0;Yt();for(var Xn=0;Xn<56;Xn++)jt[Xn]=0}jt[56]=at[1]>>>24&255,jt[57]=at[1]>>>16&255,jt[58]=at[1]>>>8&255,jt[59]=at[1]&255,jt[60]=at[0]>>>24&255,jt[61]=at[0]>>>16&255,jt[62]=at[0]>>>8&255,jt[63]=at[0]&255,Yt()}function ze(){for(var cr=0,un=new Array(32),Jn=0;Jn<8;Jn++)un[cr++]=ct[Jn]>>>24&255,un[cr++]=ct[Jn]>>>16&255,un[cr++]=ct[Jn]>>>8&255,un[cr++]=ct[Jn]&255;return un}function rt(){for(var cr=new String,un=0;un<8;un++)for(var Jn=28;Jn>=0;Jn-=4)cr+=St.charAt(ct[un]>>>Jn&15);return cr}function tt(cr){return Xt(),Rt(cr,cr.length),Lt(),rt()}var de=tt;function ot(cr){return ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(un){return typeof un}:function(un){return un&&typeof Symbol=="function"&&un.constructor===Symbol&&un!==Symbol.prototype?"symbol":typeof un},ot(cr)}var Et=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function Ht(cr,un){return an(cr)||Qt(cr,un)||kt(cr,un)||Jt()}function Jt(){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 Qt(cr,un){var Jn=cr==null?null:typeof Symbol!="undefined"&&cr[Symbol.iterator]||cr["@@iterator"];if(Jn!=null){var Xn=[],Vr=!0,Zn=!1,pa,Ha;try{for(Jn=Jn.call(cr);!(Vr=(pa=Jn.next()).done)&&(Xn.push(pa.value),!(un&&Xn.length===un));Vr=!0);}catch(gi){Zn=!0,Ha=gi}finally{try{!Vr&&Jn.return!=null&&Jn.return()}finally{if(Zn)throw Ha}}return Xn}}function an(cr){if(Array.isArray(cr))return cr}function Un(cr,un){var Jn=typeof Symbol!="undefined"&&cr[Symbol.iterator]||cr["@@iterator"];if(!Jn){if(Array.isArray(cr)||(Jn=kt(cr))||un&&cr&&typeof cr.length=="number"){Jn&&(cr=Jn);var Xn=0,Vr=function(){};return{s:Vr,n:function(){return Xn>=cr.length?{done:!0}:{done:!1,value:cr[Xn++]}},e:function(co){throw co},f:Vr}}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 Zn=!0,pa=!1,Ha;return{s:function(){Jn=Jn.call(cr)},n:function(){var co=Jn.next();return Zn=co.done,co},e:function(co){pa=!0,Ha=co},f:function(){try{!Zn&&Jn.return!=null&&Jn.return()}finally{if(pa)throw Ha}}}}function qt(cr,un){if(!(cr instanceof un))throw new TypeError("Cannot call a class as a function")}function rn(cr,un){for(var Jn=0;Jn<un.length;Jn++){var Xn=un[Jn];Xn.enumerable=Xn.enumerable||!1,Xn.configurable=!0,"value"in Xn&&(Xn.writable=!0),Object.defineProperty(cr,Xn.key,Xn)}}function cn(cr,un,Jn){return un&&rn(cr.prototype,un),Jn&&rn(cr,Jn),Object.defineProperty(cr,"prototype",{writable:!1}),cr}function er(cr,un){if(typeof un!="function"&&un!==null)throw new TypeError("Super expression must either be null or a function");cr.prototype=Object.create(un&&un.prototype,{constructor:{value:cr,writable:!0,configurable:!0}}),Object.defineProperty(cr,"prototype",{writable:!1}),un&&be(cr,un)}function rr(cr){var un=bt();return function(){var Xn=Ae(cr),Vr;if(un){var Zn=Ae(this).constructor;Vr=Reflect.construct(Xn,arguments,Zn)}else Vr=Xn.apply(this,arguments);return nt(this,Vr)}}function nt(cr,un){if(un&&(ot(un)==="object"||typeof un=="function"))return un;if(un!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lr(cr)}function lr(cr){if(cr===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return cr}function Hn(cr){var un=typeof Map=="function"?new Map:void 0;return Hn=function(Xn){if(Xn===null||!We(Xn))return Xn;if(typeof Xn!="function")throw new TypeError("Super expression must either be null or a function");if(typeof un!="undefined"){if(un.has(Xn))return un.get(Xn);un.set(Xn,Vr)}function Vr(){return ut(Xn,arguments,Ae(this).constructor)}return Vr.prototype=Object.create(Xn.prototype,{constructor:{value:Vr,enumerable:!1,writable:!0,configurable:!0}}),be(Vr,Xn)},Hn(cr)}function ut(cr,un,Jn){return bt()?ut=Reflect.construct.bind():ut=function(Vr,Zn,pa){var Ha=[null];Ha.push.apply(Ha,Zn);var gi=Function.bind.apply(Vr,Ha),co=new gi;return pa&&be(co,pa.prototype),co},ut.apply(null,arguments)}function bt(){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(cr){return!1}}function We(cr){return Function.toString.call(cr).indexOf("[native code]")!==-1}function be(cr,un){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Xn,Vr){return Xn.__proto__=Vr,Xn},be(cr,un)}function Ae(cr){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Jn){return Jn.__proto__||Object.getPrototypeOf(Jn)},Ae(cr)}function Ue(cr){return vt(cr)||lt(cr)||kt(cr)||$e()}function $e(){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 kt(cr,un){if(!!cr){if(typeof cr=="string")return Ct(cr,un);var Jn=Object.prototype.toString.call(cr).slice(8,-1);if(Jn==="Object"&&cr.constructor&&(Jn=cr.constructor.name),Jn==="Map"||Jn==="Set")return Array.from(cr);if(Jn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Jn))return Ct(cr,un)}}function lt(cr){if(typeof Symbol!="undefined"&&cr[Symbol.iterator]!=null||cr["@@iterator"]!=null)return Array.from(cr)}function vt(cr){if(Array.isArray(cr))return Ct(cr)}function Ct(cr,un){(un==null||un>cr.length)&&(un=cr.length);for(var Jn=0,Xn=new Array(un);Jn<un;Jn++)Xn[Jn]=cr[Jn];return Xn}function Bt(cr,un){if(cr==null)return{};var Jn=mt(cr,un),Xn,Vr;if(Object.getOwnPropertySymbols){var Zn=Object.getOwnPropertySymbols(cr);for(Vr=0;Vr<Zn.length;Vr++)Xn=Zn[Vr],!(un.indexOf(Xn)>=0)&&(!Object.prototype.propertyIsEnumerable.call(cr,Xn)||(Jn[Xn]=cr[Xn]))}return Jn}function mt(cr,un){if(cr==null)return{};var Jn={},Xn=Object.keys(cr),Vr,Zn;for(Zn=0;Zn<Xn.length;Zn++)Vr=Xn[Zn],!(un.indexOf(Vr)>=0)&&(Jn[Vr]=cr[Vr]);return Jn}function Zt(cr,un){var Jn=Object.keys(cr);if(Object.getOwnPropertySymbols){var Xn=Object.getOwnPropertySymbols(cr);un&&(Xn=Xn.filter(function(Vr){return Object.getOwnPropertyDescriptor(cr,Vr).enumerable})),Jn.push.apply(Jn,Xn)}return Jn}function zt(cr){for(var un=1;un<arguments.length;un++){var Jn=arguments[un]!=null?arguments[un]:{};un%2?Zt(Object(Jn),!0).forEach(function(Xn){ln(cr,Xn,Jn[Xn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(cr,Object.getOwnPropertyDescriptors(Jn)):Zt(Object(Jn)).forEach(function(Xn){Object.defineProperty(cr,Xn,Object.getOwnPropertyDescriptor(Jn,Xn))})}return cr}function ln(cr,un,Jn){return un in cr?Object.defineProperty(cr,un,{value:Jn,enumerable:!0,configurable:!0,writable:!0}):cr[un]=Jn,cr}var An="routes";function En(cr){return cr.split("?")[0].split("#")[0]}var Gn=function(un){if(!un.startsWith("http"))return!1;try{var Jn=new URL(un);return!!Jn}catch(Xn){return!1}},Bn=function(un){var Jn=un.path;if(!Jn||Jn==="/")try{return"/".concat(de(JSON.stringify(un)))}catch(Xn){}return Jn&&En(Jn)},pr=function(un,Jn){var Xn=un.name,Vr=un.locale;return"locale"in un&&Vr===!1||!Xn?!1:un.locale||"".concat(Jn,".").concat(Xn)},_r=function(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return un.endsWith("/*")?un.replace("/*","/"):(un||Jn).startsWith("/")||Gn(un)?un:"/".concat(Jn,"/").concat(un).replace(/\/\//g,"/").replace(/\/\//g,"/")},na=function(un,Jn){var Xn=un.menu,Vr=Xn===void 0?{}:Xn,Zn=un.indexRoute,pa=un.path,Ha=pa===void 0?"":pa,gi=un.children||un[An],co=Vr.name,No=co===void 0?un.name:co,Ko=Vr.icon,Jo=Ko===void 0?un.icon:Ko,gl=Vr.hideChildren,js=gl===void 0?un.hideChildren:gl,Zl=Vr.flatMenu,ko=Zl===void 0?un.flatMenu:Zl,te=Zn&&Object.keys(Zn).join(",")!=="redirect"?[zt({path:Ha,menu:Vr},Zn)].concat(gi||[]):gi,Me=zt({},un);if(No&&(Me.name=No),Jo&&(Me.icon=Jo),te&&te.length){if(js)return delete Me[An],delete Me.children,Me;var ft=qr(zt(zt({},Jn),{},{data:te}),un);if(ko)return ft;Me[An]=ft}return Me},$n=function(un){return Array.isArray(un)&&un.length>0};function qr(cr){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},Jn=cr.data,Xn=cr.formatMessage,Vr=cr.parentName,Zn=cr.locale;return!Jn||!Array.isArray(Jn)?[]:Jn.filter(function(pa){return pa?$n(pa[An])||$n(pa.children)||pa.path||pa.originPath||pa.layout?!0:(pa.redirect||pa.unaccessible,!1):!1}).filter(function(pa){var Ha,gi;return(pa==null||(Ha=pa.menu)===null||Ha===void 0?void 0:Ha.name)||(pa==null?void 0:pa.flatMenu)||(pa==null||(gi=pa.menu)===null||gi===void 0?void 0:gi.flatMenu)?!0:pa.menu!==!1}).map(function(pa){var Ha=zt({},pa);return Ha.unaccessible&&delete Ha.name,Ha.path==="*"&&(Ha.path="."),Ha.path==="/*"&&(Ha.path="."),!Ha.path&&Ha.originPath&&(Ha.path=Ha.originPath),Ha}).map(function(){var pa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},Ha=pa.children||pa[An],gi=_r(pa.path,un?un.path:"/"),co=pa.name,No=pr(pa,Vr||"menu"),Ko=No!==!1&&Zn!==!1&&Xn&&No?Xn({id:No,defaultMessage:co}):co,Jo=un.pro_layout_parentKeys,gl=Jo===void 0?[]:Jo,js=un.children,Zl=un.icon,ko=un.flatMenu,te=un.indexRoute,Me=un.routes,ft=Bt(un,Et),Nt=new Set([].concat(Ue(gl),Ue(pa.parentKeys||[])));un.key&&Nt.add(un.key);var xn=zt(zt(zt({},ft),{},{menu:void 0},pa),{},{path:gi,locale:No,key:pa.key||Bn(zt(zt({},pa),{},{path:gi})),pro_layout_parentKeys:Array.from(Nt).filter(function(qa){return qa&&qa!=="/"})});if(Ko?xn.name=Ko:delete xn.name,xn.menu===void 0&&delete xn.menu,$n(Ha)){var Yr=qr(zt(zt({},cr),{},{data:Ha,parentName:No||""}),xn);$n(Yr)&&(xn[An]=Yr,xn.children=Yr)}return na(xn,cr)}).flat(1)}var Jr=ce(qr,ne()),Aa=function cr(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return un.filter(function(Jn){return Jn&&(Jn.name||$n(Jn[An])||$n(Jn.children))&&!Jn.hideInMenu&&!Jn.redirect}).map(function(Jn){var Xn=zt({},Jn),Vr=Xn.children||Xn[An];if($n(Vr)&&!Xn.hideChildrenInMenu&&Vr.some(function(Ha){return Ha&&!!Ha.name})){var Zn,pa=cr(Vr);if(pa.length)return zt(zt({},Xn),{},(Zn={},ln(Zn,An,pa),ln(Zn,"children",pa),Zn))}return zt(zt({},Jn),{},ln({},An,void 0))}).filter(function(Jn){return Jn})},ya=function(cr){er(Jn,cr);var un=rr(Jn);function Jn(){return qt(this,Jn),un.apply(this,arguments)}return cn(Jn,[{key:"get",value:function(Vr){var Zn;try{var pa=Un(this.entries()),Ha;try{for(pa.s();!(Ha=pa.n()).done;){var gi=Ht(Ha.value,2),co=gi[0],No=gi[1],Ko=En(co);if(!Gn(co)&&qe(Ko,[]).test(Vr)){Zn=No;break}}}catch(Jo){pa.e(Jo)}finally{pa.f()}}catch(Jo){Zn=void 0}return Zn}}]),Jn}(Hn(Map)),$t=function(un){var Jn=new ya,Xn=function Vr(Zn,pa){Zn.forEach(function(Ha){var gi=Ha.children||Ha[An];$n(gi)&&Vr(gi,Ha);var co=_r(Ha.path,pa?pa.path:"/");Jn.set(En(co),Ha)})};return Xn(un),Jn},wn=ce($t,ne()),Fn=function cr(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return un.map(function(Jn){var Xn=Jn.children||Jn[An];if($n(Xn)){var Vr=cr(Xn);if(Vr.length)return zt(zt({},Jn),{},ln({},An,Vr))}var Zn=zt({},Jn);return delete Zn[An],delete Zn.children,Zn}).filter(function(Jn){return Jn})},Or=function(un,Jn,Xn,Vr){var Zn=Jr({data:un,formatMessage:Xn,locale:Jn}),pa=Vr?Fn(Zn):Aa(Zn),Ha=wn(Zn);return{breadcrumb:Ha,menuData:pa}},vr=Or;function Ur(cr,un){var Jn=Object.keys(cr);if(Object.getOwnPropertySymbols){var Xn=Object.getOwnPropertySymbols(cr);un&&(Xn=Xn.filter(function(Vr){return Object.getOwnPropertyDescriptor(cr,Vr).enumerable})),Jn.push.apply(Jn,Xn)}return Jn}function Zr(cr){for(var un=1;un<arguments.length;un++){var Jn=arguments[un]!=null?arguments[un]:{};un%2?Ur(Object(Jn),!0).forEach(function(Xn){Kr(cr,Xn,Jn[Xn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(cr,Object.getOwnPropertyDescriptors(Jn)):Ur(Object(Jn)).forEach(function(Xn){Object.defineProperty(cr,Xn,Object.getOwnPropertyDescriptor(Jn,Xn))})}return cr}function Kr(cr,un,Jn){return un in cr?Object.defineProperty(cr,un,{value:Jn,enumerable:!0,configurable:!0,writable:!0}):cr[un]=Jn,cr}var ba=function cr(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Jn={};return un.forEach(function(Xn){if(!(!Xn||!Xn.key)){var Vr=Xn.children||Xn[An];Jn[En(Xn.path||Xn.key||"/")]=Zr({},Xn),Jn[Xn.key||Xn.path||"/"]=Zr({},Xn),Vr&&(Jn=Zr(Zr({},Jn),cr(Vr)))}}),Jn},Ri=ba,Ea=function(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Jn=arguments.length>1?arguments[1]:void 0,Xn=arguments.length>2?arguments[2]:void 0;return un.filter(function(Vr){if(Vr==="/"&&Jn==="/")return!0;if(Vr!=="/"&&Vr!=="/*"&&Vr&&!Gn(Vr)){var Zn=En(Vr);try{if(Xn&&qe("".concat(Zn)).test(Jn)||qe("".concat(Zn),[]).test(Jn)||qe("".concat(Zn,"/(.*)")).test(Jn))return!0}catch(pa){}}return!1}).sort(function(Vr,Zn){return Vr===Jn?10:Zn===Jn?-10:Vr.substr(1).split("/").length-Zn.substr(1).split("/").length})},Pi=function(un,Jn,Xn,Vr){var Zn=Ri(Jn),pa=Object.keys(Zn),Ha=Ea(pa,un||"/",Vr);return!Ha||Ha.length<1?[]:(Xn||(Ha=[Ha[Ha.length-1]]),Ha.map(function(gi){var co=Zn[gi]||{pro_layout_parentKeys:"",key:""},No=new Map,Ko=(co.pro_layout_parentKeys||[]).map(function(Jo){return No.has(Jo)?null:(No.set(Jo,!0),Zn[Jo])}).filter(function(Jo){return Jo});return co.key&&Ko.push(co),Ko}).flat(1))},rs=Pi,Ui=o(35510),Cn=o.n(Ui),Kn=o(3305);function Pn(cr){var un=A.useRef();un.current=cr;var Jn=A.useCallback(function(){for(var Xn,Vr=arguments.length,Zn=new Array(Vr),pa=0;pa<Vr;pa++)Zn[pa]=arguments[pa];return(Xn=un.current)===null||Xn===void 0?void 0:Xn.call.apply(Xn,[un].concat(Zn))},[]);return Jn}function At(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ar=At()?A.useLayoutEffect:A.useEffect,ta=function(un,Jn){var Xn=A.useRef(!0);ar(function(){return un(Xn.current)},Jn),ar(function(){return Xn.current=!1,function(){Xn.current=!0}},[])},Yn=function(un,Jn){ta(function(Xn){if(!Xn)return un()},Jn)},Qa=null;function Ua(cr){var un=A.useRef(!1),Jn=A.useState(cr),Xn=(0,W.Z)(Jn,2),Vr=Xn[0],Zn=Xn[1];A.useEffect(function(){return un.current=!1,function(){un.current=!0}},[]);function pa(Ha,gi){gi&&un.current||Zn(Ha)}return[Vr,pa]}function Fi(cr){return cr!==void 0}function Xa(cr,un){var Jn=un||{},Xn=Jn.defaultValue,Vr=Jn.value,Zn=Jn.onChange,pa=Jn.postState,Ha=Ua(function(){return Fi(Vr)?Vr:Fi(Xn)?typeof Xn=="function"?Xn():Xn:typeof cr=="function"?cr():cr}),gi=(0,W.Z)(Ha,2),co=gi[0],No=gi[1],Ko=Vr!==void 0?Vr:co,Jo=pa?pa(Ko):Ko,gl=Pn(Zn),js=Ua([Ko]),Zl=(0,W.Z)(js,2),ko=Zl[0],te=Zl[1];Yn(function(){var ft=ko[0];co!==ft&&gl(co,ft)},[ko]),Yn(function(){Fi(Vr)||No(Vr)},[Vr]);var Me=Pn(function(ft,Nt){No(ft,Nt),te([Ko],Nt)});return[Jo,Me]}var $i=o(76568),La=o(93234),ja=o(14878),ei=o.n(ja),Do=o(7700),yo=o(58210),to=o(87240),fs=["isLoading","pastDelay","timedOut","error","retry"],cs=function(un){var Jn=un.isLoading,Xn=un.pastDelay,Vr=un.timedOut,Zn=un.error,pa=un.retry,Ha=(0,F.Z)(un,fs);return(0,L.jsx)("div",{style:{paddingTop:100,textAlign:"center"},children:(0,L.jsx)(to.Z,(0,U.Z)({size:"large"},Ha))})},Os=cs,vl=o(42048),Ar=o(13451),Rn=o(32321);function Sr(){var cr=(0,A.useState)([]),un=(0,W.Z)(cr,2),Jn=un[0],Xn=un[1];return{flatMenuKeys:Jn,setFlatMenuKeys:Xn}}var nn=(0,Rn.f)(Sr),sn=nn,Ot=o(37482),gr=o(36707),Gr=o(1351),Ln=o(76629),Tr=o(6244),Dn=o(81505),Pr=o(85061),fa=o(5991),ka=o(6610),Li=o(91321),zi=o(16165),Mo=function(un){if(!un||!un.startsWith("http"))return!1;try{var Jn=new URL(un);return!!Jn}catch(Xn){return!1}},Za=Mo;function ao(cr){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(cr)}var Mi=ao,Eo={navTheme:"dark",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!1,headerHeight:48,iconfontUrl:"",primaryColor:"#1890ff",splitMenus:!1},Xi=Eo,Bo=function cr(un){return(un||[]).reduce(function(Jn,Xn){if(Xn.key&&Jn.push(Xn.key),Xn.routes){var Vr=Jn.concat(cr(Xn.routes)||[]);return Vr}return Jn},[])},ol={daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function Il(cr){return cr&&ol[cr]?ol[cr]:cr}function ms(cr){return cr.map(function(un){var Jn=un.children||un.routes,Xn=(0,U.Z)({},un);if(!Xn.name||Xn.hideInMenu)return null;if(Xn&&(Xn==null?void 0:Xn.routes)){if(!Xn.hideChildrenInMenu&&Jn.some(function(Vr){return Vr&&Vr.name&&!Vr.hideInMenu}))return(0,U.Z)((0,U.Z)({},un),{},{children:ms(Jn),routes:ms(Jn)});delete Xn.routes,delete Xn.children}return Xn}).filter(function(un){return un})}var mc=o(43361),Ys=(0,Li.Z)({scriptUrl:Xi.iconfontUrl}),hl=function(un){var Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-";if(typeof un=="string"&&un!==""){if(Za(un)||Mi(un))return(0,L.jsx)(zi.Z,{component:function(){return(0,L.jsx)("img",{src:un,alt:"icon",className:"ant-pro-sider-menu-icon"})}});if(un.startsWith(Jn))return(0,L.jsx)(Ys,{type:un})}return un},Rs=(0,fa.Z)(function cr(un){var Jn=this;(0,ka.Z)(this,cr),this.props=void 0,this.getNavMenuItems=function(){var Xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Vr=arguments.length>1?arguments[1]:void 0;return Xn.map(function(Zn){return Jn.getSubMenuOrItem(Zn,Vr)}).filter(function(Zn){return Zn})},this.getSubMenuOrItem=function(Xn,Vr){var Zn=(Xn==null?void 0:Xn.children)||(Xn==null?void 0:Xn.routes);if(Array.isArray(Zn)&&Zn.length>0){var pa=Jn.getIntlName(Xn),Ha=Jn.props,gi=Ha.subMenuItemRender,co=Ha.prefixCls,No=Ha.menu,Ko=Ha.iconPrefixes,Jo=Xn.icon?(0,L.jsxs)("span",{className:"".concat(co,"-menu-item"),title:pa,children:[!Vr&&hl(Xn.icon,Ko),(0,L.jsx)("span",{className:"".concat(co,"-menu-item-title"),children:pa})]}):(0,L.jsx)("span",{className:"".concat(co,"-menu-item"),title:pa,children:pa}),gl=gi?gi((0,U.Z)((0,U.Z)({},Xn),{},{isUrl:!1}),Jo,Jn.props):Jo;return{type:(No==null?void 0:No.type)==="group"?"group":void 0,label:gl,children:Jn.getNavMenuItems(Zn,!0),onTitleClick:Xn.onTitleClick,key:Xn.key||Xn.path}}return{label:Jn.getMenuItemPath(Xn,Vr),title:Jn.getIntlName(Xn),key:Xn.key||Xn.path,disabled:Xn.disabled,onClick:function(Zl){var ko;Za(Xn==null?void 0:Xn.path)&&window.open(Xn.path,"_blank"),(ko=Xn.onTitleClick)===null||ko===void 0||ko.call(Xn,Zl)}}},this.getIntlName=function(Xn){var Vr=Xn.name,Zn=Xn.locale,pa=Jn.props,Ha=pa.menu,gi=pa.formatMessage;return Zn&&(Ha==null?void 0:Ha.locale)!==!1?gi==null?void 0:gi({id:Zn,defaultMessage:Vr}):Vr},this.getMenuItemPath=function(Xn,Vr){var Zn=Jn.conversionPath(Xn.path||"/"),pa=Jn.props,Ha=pa.location,gi=Ha===void 0?{pathname:"/"}:Ha,co=pa.isMobile,No=pa.onCollapse,Ko=pa.menuItemRender,Jo=pa.iconPrefixes,gl=Jn.getIntlName(Xn),js=Jn.props.prefixCls,Zl=Vr?null:hl(Xn.icon,Jo),ko=Za(Zn),te=(0,L.jsxs)("span",{className:Cn()("".concat(js,"-menu-item"),(0,S.Z)({},"".concat(js,"-menu-item-link"),ko)),children:[Zl,(0,L.jsx)("span",{className:"".concat(js,"-menu-item-title"),children:gl})]});if(Ko){var Me=(0,U.Z)((0,U.Z)({},Xn),{},{isUrl:ko,itemPath:Zn,isMobile:co,replace:Zn===gi.pathname,onClick:function(){ko&&window.open(Zn,"_blank"),No&&No(!0)},children:void 0});return Ko(Me,te,Jn.props)}return te},this.conversionPath=function(Xn){return Xn&&Xn.indexOf("http")===0?Xn:"/".concat(Xn||"").replace(/\/+/g,"/")},this.props=un}),xl=function(un,Jn){var Xn=Jn.layout,Vr=Jn.collapsed,Zn={};return un&&!Vr&&["side","mix"].includes(Xn||"mix")&&(Zn={openKeys:un}),Zn},Wl=function(un){var Jn=un.theme,Xn=un.mode,Vr=un.className,Zn=un.handleOpenChange,pa=un.style,Ha=un.menuData,gi=un.menu,co=un.matchMenuKeys,No=un.iconfontUrl,Ko=un.collapsed,Jo=un.selectedKeys,gl=un.onSelect,js=un.openKeys,Zl=(0,A.useRef)([]),ko=sn.useContainer(),te=ko.flatMenuKeys,Me=(0,$.Z)(gi==null?void 0:gi.defaultOpenAll),ft=(0,W.Z)(Me,2),Nt=ft[0],xn=ft[1],Yr=(0,$.Z)(function(){return(gi==null?void 0:gi.defaultOpenAll)?Bo(Ha)||[]:js===!1?!1:[]},{value:js===!1?void 0:js,onChange:Zn}),qa=(0,W.Z)(Yr,2),Es=qa[0],Qs=qa[1],Hl=(0,$.Z)([],{value:Jo,onChange:gl?function(Wp){gl&&Wp&&gl(Wp)}:void 0}),Lc=(0,W.Z)(Hl,2),Pu=Lc[0],Yf=Lc[1];(0,A.useEffect)(function(){(gi==null?void 0:gi.defaultOpenAll)||js===!1||te.length||co&&(Qs(co),Yf(co))},[co.join("-")]),(0,A.useEffect)(function(){No&&(Ys=(0,Li.Z)({scriptUrl:No}))},[No]),(0,A.useEffect)(function(){if(co.join("-")!==(Pu||[]).join("-")&&Yf(co),!Nt&&js!==!1&&co.join("-")!==(Es||[]).join("-")){var Wp=co;(gi==null?void 0:gi.autoClose)===!1&&(Wp=Array.from(new Set([].concat((0,Pr.Z)(co),(0,Pr.Z)(Es||[]))))),Qs(Wp)}else(gi==null?void 0:gi.ignoreFlatMenu)&&Nt?Qs(Bo(Ha)):te.length>0&&xn(!1)},[co.join("-"),Ko]);var yv=(0,A.useMemo)(function(){return xl(Es,un)},[Es&&Es.join(","),un.layout,un.collapsed]),Cp=(0,A.useState)(function(){return new Rs(un)}),kv=(0,W.Z)(Cp,1),Nv=kv[0];if(gi==null?void 0:gi.loading)return(0,L.jsx)("div",{style:(Xn==null?void 0:Xn.includes("inline"))?{padding:24}:{marginTop:16},children:(0,L.jsx)(Dn.Z,{active:!0,title:!1,paragraph:{rows:(Xn==null?void 0:Xn.includes("inline"))?6:1}})});var Pv=Cn()(Vr,{"top-nav-menu":Xn==="horizontal"});Nv.props=un,un.openKeys===!1&&!un.handleOpenChange&&(Zl.current=co);var sp=un.postMenuData?un.postMenuData(Ha):Ha;return sp&&(sp==null?void 0:sp.length)<1?null:(0,A.createElement)(gr.Z,(0,U.Z)((0,U.Z)({},yv),{},{key:"Menu",mode:Xn,items:Nv.getNavMenuItems(sp,!1),inlineIndent:16,defaultOpenKeys:Zl.current,theme:Jn,selectedKeys:Pu,style:pa,className:Pv,onOpenChange:Qs},un.menuProps))};Wl.defaultProps={postMenuData:function(un){return un||[]}};var _l=Wl,Ls=p.Sider,zn=function(un){return typeof un=="string"?(0,L.jsx)("img",{src:un,alt:"logo"}):typeof un=="function"?un():un},Dr=function(un){var Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",Xn=un.logo,Vr=un.title,Zn=un.layout,pa=un[Jn||""];if(pa===!1)return null;var Ha=zn(Xn),gi=(0,L.jsx)("h1",{children:Vr!=null?Vr:"Ant Design Pro"});return pa?pa(Ha,un.collapsed?null:gi,un):Zn==="mix"&&Jn==="menuHeaderRender"?null:(0,L.jsxs)("a",{children:[Ha,un.collapsed?null:gi]})},Hr=function(un){return un?(0,L.jsx)(Gr.Z,{}):(0,L.jsx)(Ln.Z,{})},_a=function(un){var Jn,Xn=un.collapsed,Vr=un.fixSiderbar,Zn=un.menuFooterRender,pa=un.onCollapse,Ha=un.theme,gi=un.siderWidth,co=un.isMobile,No=un.onMenuHeaderClick,Ko=un.breakpoint,Jo=Ko===void 0?"lg":Ko,gl=un.style,js=un.layout,Zl=un.menuExtraRender,ko=Zl===void 0?!1:Zl,te=un.collapsedButtonRender,Me=te===void 0?Hr:te,ft=un.links,Nt=un.menuContentRender,xn=un.prefixCls,Yr=un.onOpenChange,qa=un.headerHeight,Es=un.logoStyle,Qs="".concat(xn,"-sider"),Hl=sn.useContainer(),Lc=Hl.flatMenuKeys,Pu=Cn()("".concat(Qs),(Jn={},(0,S.Z)(Jn,"".concat(Qs,"-fixed"),Vr),(0,S.Z)(Jn,"".concat(Qs,"-layout-").concat(js),js&&!co),(0,S.Z)(Jn,"".concat(Qs,"-light"),Ha!=="dark"),Jn)),Yf=Dr(un),yv=ko&&ko(un),Cp=Nt!==!1&&Lc&&(0,A.createElement)(_l,(0,U.Z)((0,U.Z)({},un),{},{key:"base-menu",mode:"inline",handleOpenChange:Yr,style:{width:"100%"},className:"".concat(Qs,"-menu")})),kv=Nt?Nt(un,Cp):Cp,Nv=(ft||[]).map(function(Pv,sp){return{className:"".concat(Qs,"-link"),label:Pv,key:sp}});return Me&&!co&&Nv.push({className:"".concat(Qs,"-collapsed-button"),title:!1,key:"collapsed",onClick:function(){pa&&pa(!Xn)},label:Me(Xn)}),(0,L.jsxs)(L.Fragment,{children:[Vr&&(0,L.jsx)("div",{style:(0,U.Z)({width:Xn?48:gi,overflow:"hidden",flex:"0 0 ".concat(Xn?48:gi,"px"),maxWidth:Xn?48:gi,minWidth:Xn?48:gi,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},gl)}),(0,L.jsxs)(Ls,{collapsible:!0,trigger:null,collapsed:Xn,breakpoint:Jo===!1?void 0:Jo,onCollapse:function(sp){co||pa==null||pa(sp)},collapsedWidth:48,style:(0,U.Z)({overflow:"hidden",paddingTop:js==="mix"&&!co?qa:void 0},gl),width:gi,theme:Ha,className:Pu,children:[Yf&&(0,L.jsx)("div",{className:Cn()("".concat(Qs,"-logo"),(0,S.Z)({},"".concat(Qs,"-collapsed"),Xn)),onClick:js!=="mix"?No:void 0,id:"logo",style:Es,children:Yf}),yv&&(0,L.jsx)("div",{className:"".concat(Qs,"-extra ").concat(!Yf&&"".concat(Qs,"-extra-no-logo")),children:yv}),(0,L.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:kv}),(0,L.jsx)("div",{className:"".concat(Qs,"-links"),children:(0,L.jsx)(gr.Z,{theme:Ha,inlineIndent:16,className:"".concat(Qs,"-link-menu"),selectedKeys:[],openKeys:[],mode:"inline",items:Nv})}),Zn&&(0,L.jsx)("div",{className:Cn()("".concat(Qs,"-footer"),(0,S.Z)({},"".concat(Qs,"-footer-collapsed"),!Xn)),children:Zn(un)})]})]})},Ti=_a,Ci=function(un){var Jn=un.isMobile,Xn=un.menuData,Vr=un.siderWidth,Zn=un.collapsed,pa=un.onCollapse,Ha=un.style,gi=un.className,co=un.hide,No=un.getContainer,Ko=un.prefixCls,Jo=un.matchMenuKeys,gl=sn.useContainer(),js=gl.setFlatMenuKeys;(0,A.useEffect)(function(){if(!(!Xn||Xn.length<1)){var ko=Ri(Xn);js(Object.keys(ko))}},[Jo.join("-")]),(0,A.useEffect)(function(){Jn===!0&&(pa==null||pa(!0))},[Jn]);var Zl=(0,Kn.Z)(un,["className","style"]);return co?null:Jn?(0,L.jsx)(Ar.Z,{visible:!Zn,placement:"left",className:Cn()("".concat(Ko,"-drawer-sider"),gi),onClose:function(){return pa==null?void 0:pa(!0)},style:(0,U.Z)({padding:0,height:"100vh"},Ha),getContainer:No,width:Vr,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"},children:(0,L.jsx)(Ti,(0,U.Z)((0,U.Z)({},Zl),{},{className:Cn()("".concat(Ko,"-sider"),gi),collapsed:Jn?!1:Zn,splitMenus:!1}))}):(0,L.jsx)(Ti,(0,U.Z)((0,U.Z)({className:Cn()("".concat(Ko,"-sider"),gi)},Zl),{},{style:Ha}))},da=Ci,Da={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"},mi=Da,Ho=o(27029),al=function(un,Jn){return A.createElement(Ho.Z,(0,U.Z)((0,U.Z)({},un),{},{ref:Jn,icon:mi}))};al.displayName="CopyrightOutlined";var ml=A.forwardRef(al),Xs=o(80471),Ps=function(cr){var un=cr.className,Jn=cr.prefixCls,Xn=cr.links,Vr=cr.copyright,Zn=cr.style,pa=(0,A.useContext)(Z.ZP.ConfigContext),Ha=pa.getPrefixCls(Jn||"pro-global-footer");if((Xn==null||Xn===!1||Array.isArray(Xn)&&Xn.length===0)&&(Vr==null||Vr===!1))return null;var gi=Cn()(Ha,un);return(0,L.jsxs)("div",{className:gi,style:Zn,children:[Xn&&(0,L.jsx)("div",{className:"".concat(Ha,"-links"),children:Xn.map(function(co){return(0,L.jsx)("a",{title:co.key,target:co.blankTarget?"_blank":"_self",href:co.href,rel:"noreferrer",children:co.title},co.key)})}),Vr&&(0,L.jsx)("div",{className:"".concat(Ha,"-copyright"),children:Vr})]})},dl=p.Footer,ql=function(un){var Jn=un.links,Xn=un.copyright,Vr=un.style,Zn=un.className,pa=un.prefixCls;return(0,L.jsx)(dl,{className:Zn,style:(0,U.Z)({padding:0},Vr),children:(0,L.jsx)(Ps,{links:Jn,prefixCls:pa,copyright:Xn===!1?null:(0,L.jsxs)(A.Fragment,{children:[(0,L.jsx)(ml,{})," ",Xn]})})})},Dc=ql,Jl=o(5725),oc=o.n(Jl),xu=function(un,Jn,Xn){if(Xn){var Vr=(0,Pr.Z)(Xn.keys()).find(function(pa){return oc()(pa).test(un)});if(Vr)return Xn.get(Vr)}if(Jn){var Zn=Object.keys(Jn).find(function(pa){return oc()(pa).test(un)});if(Zn)return Jn[Zn]}return{path:""}},yf=function(un,Jn){var Xn=un.pathname,Vr=Xn===void 0?"/":Xn,Zn=un.breadcrumb,pa=un.breadcrumbMap,Ha=un.formatMessage,gi=un.title,co=un.menu,No=co===void 0?{locale:!1}:co,Ko=Jn?"":gi||"",Jo=xu(Vr,Zn,pa);if(!Jo)return{title:Ko,id:"",pageName:Ko};var gl=Jo.name;return No.locale!==!1&&Jo.locale&&Ha&&(gl=Ha({id:Jo.locale||"",defaultMessage:Jo.name})),gl?Jn||!gi?{title:gl,id:Jo.locale||"",pageName:gl}:{title:"".concat(gl," - ").concat(gi),id:Jo.locale||"",pageName:gl}:{title:Ko,id:Jo.locale||"",pageName:Ko}},ku=function(un,Jn){return yf(un,Jn).title},Zc=null,Zu=o(10379),Fc=o(44144),Hc=o(60250),Vu=o(50279),ws=o(17212),fc=["rightContentRender","prefixCls"],Tc=function(un){var Jn=un.rightContentRender,Xn=un.prefixCls,Vr=(0,F.Z)(un,fc),Zn=(0,A.useState)("auto"),pa=(0,W.Z)(Zn,2),Ha=pa[0],gi=pa[1],co=(0,Hc.Z)(function(){var No=(0,O.Z)((0,k.Z)().mark(function Ko(Jo){return(0,k.Z)().wrap(function(js){for(;;)switch(js.prev=js.next){case 0:gi(Jo);case 1:case"end":return js.stop()}},Ko)}));return function(Ko){return No.apply(this,arguments)}}(),160);return(0,L.jsx)("div",{className:"".concat(Xn,"-right-content"),style:{minWidth:Ha},children:(0,L.jsx)("div",{style:{paddingRight:8},children:(0,L.jsx)(Vu.default,{onResize:function(Ko){var Jo=Ko.width;co.run(Jo)},children:Jn&&(0,L.jsx)("div",{className:"".concat(Xn,"-right-content-resize"),children:Jn((0,U.Z)((0,U.Z)({},Vr),{},{rightContentSize:Ha}))})})})})},jc=function(un){var Jn=(0,A.useRef)(null),Xn=un.theme,Vr=un.onMenuHeaderClick,Zn=un.contentWidth,pa=un.rightContentRender,Ha=un.className,gi=un.style,co=un.headerContentRender,No=un.layout,Ko="".concat(un.prefixCls||"ant-pro","-top-nav-header"),Jo=Dr((0,U.Z)((0,U.Z)({},un),{},{collapsed:!1}),No==="mix"?"headerTitleRender":void 0),gl=Cn()(Ko,Ha,{light:Xn==="light"}),js=(0,L.jsx)(_l,(0,U.Z)((0,U.Z)({},un),un.menuProps)),Zl=co?co==null?void 0:co(un,js):js;return(0,L.jsx)("div",{className:gl,style:gi,children:(0,L.jsxs)("div",{ref:Jn,className:"".concat(Ko,"-main ").concat(Zn==="Fixed"?"wide":""),children:[Jo&&(0,L.jsx)("div",{className:"".concat(Ko,"-main-left"),onClick:Vr,children:(0,L.jsx)("div",{className:"".concat(Ko,"-logo"),id:"logo",children:Jo},"logo")}),(0,L.jsx)("div",{style:{flex:1},className:"".concat(Ko,"-menu"),children:Zl}),pa&&(0,L.jsx)(Tc,(0,U.Z)({rightContentRender:pa,prefixCls:Ko},un))]})})},lu=jc,hu=o(17124),of=function(un,Jn){return un===!1?null:un?un(Jn,null):Jn},uu=function(un){var Jn=un.isMobile,Xn=un.logo,Vr=un.collapsed,Zn=un.onCollapse,pa=un.collapsedButtonRender,Ha=pa===void 0?Hr:pa,gi=un.rightContentRender,co=un.menuHeaderRender,No=un.onMenuHeaderClick,Ko=un.className,Jo=un.style,gl=un.layout,js=un.children,Zl=un.headerTheme,ko=Zl===void 0?"dark":Zl,te=un.splitMenus,Me=un.menuData,ft=un.prefixCls,Nt=(0,A.useContext)(Z.ZP.ConfigContext),xn=Nt.direction,Yr="".concat(ft,"-global-header"),qa=Cn()(Ko,Yr,(0,S.Z)({},"".concat(Yr,"-layout-").concat(gl),gl&&ko==="dark"));if(gl==="mix"&&!Jn&&te){var Es=(Me||[]).map(function(Pu){return(0,U.Z)((0,U.Z)({},Pu),{},{children:void 0,routes:void 0})}),Qs=ms(Es);return(0,L.jsx)(lu,(0,U.Z)((0,U.Z)({mode:"horizontal"},un),{},{splitMenus:!1,menuData:Qs,theme:ko}))}var Hl=Cn()("".concat(Yr,"-logo"),(0,S.Z)({},"".concat(Yr,"-logo-rtl"),xn==="rtl")),Lc=(0,L.jsx)("span",{className:Hl,children:(0,L.jsx)("a",{children:zn(Xn)})},"logo");return(0,L.jsxs)("div",{className:qa,style:(0,U.Z)({},Jo),children:[Jn&&of(co,Lc),Jn&&Ha&&(0,L.jsx)("span",{className:"".concat(Yr,"-collapsed-button"),onClick:function(){Zn&&Zn(!Vr)},children:Ha(Vr)}),gl==="mix"&&!Jn&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("div",{className:Hl,onClick:No,children:Dr((0,U.Z)((0,U.Z)({},un),{},{collapsed:!1}),"headerTitleRender")})}),(0,L.jsx)("div",{style:{flex:1},children:js}),gi&&gi(un)]})},zu=uu,cf=o(2828),bf=p.Header,Cu=function(cr){(0,Zu.Z)(Jn,cr);var un=(0,Fc.Z)(Jn);function Jn(){var Xn;(0,ka.Z)(this,Jn);for(var Vr=arguments.length,Zn=new Array(Vr),pa=0;pa<Vr;pa++)Zn[pa]=arguments[pa];return Xn=un.call.apply(un,[this].concat(Zn)),Xn.renderContent=function(){var Ha=Xn.props,gi=Ha.isMobile,co=Ha.onCollapse,No=Ha.navTheme,Ko=Ha.layout,Jo=Ha.headerRender,gl=Ha.headerContentRender,js=Ko==="top",Zl=ms(Xn.props.menuData||[]),ko=(0,L.jsx)(zu,(0,U.Z)((0,U.Z)({onCollapse:co},Xn.props),{},{menuData:Zl,children:gl&&gl(Xn.props,null)}));return js&&!gi&&(ko=(0,L.jsx)(lu,(0,U.Z)((0,U.Z)({theme:No,mode:"horizontal",onCollapse:co},Xn.props),{},{menuData:Zl}))),Jo&&typeof Jo=="function"?Jo(Xn.props,ko):ko},Xn}return(0,fa.Z)(Jn,[{key:"render",value:function(){var Vr,Zn=this.props,pa=Zn.fixedHeader,Ha=Zn.layout,gi=Zn.className,co=Zn.style,No=Zn.navTheme,Ko=Zn.collapsed,Jo=Zn.siderWidth,gl=Zn.hasSiderMenu,js=Zn.isMobile,Zl=Zn.prefixCls,ko=Zn.headerHeight,te=pa||Ha==="mix",Me=Ha==="top",ft=te&&gl&&!Me&&!js,Nt=Cn()(gi,(Vr={},(0,S.Z)(Vr,"".concat(Zl,"-fixed-header"),te),(0,S.Z)(Vr,"".concat(Zl,"-fixed-header-action"),!Ko),(0,S.Z)(Vr,"".concat(Zl,"-top-menu"),Me),(0,S.Z)(Vr,"".concat(Zl,"-header-").concat(No),No&&Ha!=="mix"),Vr)),xn=Ha!=="mix"&&ft?"calc(100% - ".concat(Ko?48:Jo,"px)"):"100%",Yr=te?0:void 0;return(0,L.jsxs)(L.Fragment,{children:[te&&(0,L.jsx)(bf,{style:{height:ko,lineHeight:"".concat(ko,"px"),background:"transparent"}}),(0,L.jsx)(bf,{style:(0,U.Z)({padding:0,height:ko,lineHeight:"".concat(ko,"px"),width:xn,zIndex:Ha==="mix"?100:19,right:Yr},co),className:Nt,children:this.renderContent()})]})}}]),Jn}(A.Component),rf=Cu,Bu={"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"},Tf=(0,U.Z)({},Bu),ed={"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"},Fd=(0,U.Z)({},ed),Pd={"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."},Nc=(0,U.Z)({},Pd),eu={"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"},If=(0,U.Z)({},eu),$f={"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"},Te=(0,U.Z)({},$f),_t={"zh-CN":If,"zh-TW":Te,"en-US":Tf,"it-IT":Fd,"ko-KR":Nc},Vn=function(){if(!(0,G.Z)())return"zh-CN";var un=window.localStorage.getItem("umi_locale");return un||window.g_locale||navigator.language},br=function(){var un=Vn();return _t[un]||_t["zh-CN"]},tn=(0,A.createContext)({}),Pt=tn,on=function(un){var Jn=["sidemenu","topmenu"];return Jn.includes(un)?un==null?void 0:un.replace("menu",""):un},_n=on;function ir(cr){if(!cr||cr==="/")return["/"];var un=cr.split("/").filter(function(Jn){return Jn});return un.map(function(Jn,Xn){return"/".concat(un.slice(0,Xn+1).join("/"))})}var xr=function(un){var Jn=un.breadcrumbName,Xn=un.path;return(0,L.jsx)("a",{href:Xn,children:Jn})},aa=function(un,Jn){var Xn=Jn.formatMessage,Vr=Jn.menu;return un.locale&&Xn&&(Vr==null?void 0:Vr.locale)!==!1?Xn({id:un.locale,defaultMessage:un.name}):un.name},oi=function(un,Jn){var Xn=un.get(Jn);if(!Xn){var Vr=Array.from(un.keys())||[],Zn=Vr.find(function(pa){return oc()(pa.replace("?","")).test(Jn)});Zn&&(Xn=un.get(Zn))}return Xn||{path:""}},ni=function(un){var Jn=un.location,Xn=un.breadcrumbMap;return{location:Jn,breadcrumbMap:Xn}},yi=function(un,Jn,Xn){var Vr=ir(un==null?void 0:un.pathname),Zn=Vr.map(function(pa){var Ha=oi(Jn,pa),gi=aa(Ha,Xn),co=Ha.hideInBreadcrumb;return gi&&!co?{path:pa,breadcrumbName:gi,component:Ha.component}:{path:"",breadcrumbName:""}}).filter(function(pa){return pa&&pa.path});return Zn},Zo=function(un){var Jn=ni(un),Xn=Jn.location,Vr=Jn.breadcrumbMap;return Xn&&Xn.pathname&&Vr?yi(Xn,Vr,un):[]},is=function(un,Jn){var Xn=un.breadcrumbRender,Vr=un.itemRender,Zn=Jn.breadcrumbProps||{},pa=Zn.minLength,Ha=pa===void 0?2:pa,gi=Zo(un),co=Vr||xr,No=gi;return Xn&&(No=Xn(No)||[]),(No&&No.length<Ha||Xn===!1)&&(No=void 0),{routes:No,itemRender:co}};function mo(cr){return(0,Pr.Z)(cr).reduce(function(un,Jn){var Xn=(0,W.Z)(Jn,2),Vr=Xn[0],Zn=Xn[1];return un[Vr]=Zn,un},{})}var Ml=function cr(un,Jn,Xn,Vr){var Zn=vr(un,(Jn==null?void 0:Jn.locale)||!1,Xn,!0),pa=Zn.menuData,Ha=Zn.breadcrumb;return Vr?cr(Vr(pa),Jn,Xn,void 0):{breadcrumb:mo(Ha),breadcrumbMap:Ha,menuData:pa}},yc=Ml,oa=o(90484),sl=o(78904),fl=function(un){var Jn=(0,A.useState)({}),Xn=(0,W.Z)(Jn,2),Vr=Xn[0],Zn=Xn[1];return(0,A.useEffect)(function(){Zn((0,sl.Z)({layout:(0,oa.Z)(un.layout)!=="object"?un.layout:void 0,navTheme:un.navTheme,menuRender:un.menuRender,footerRender:un.footerRender,menuHeaderRender:un.menuHeaderRender,headerRender:un.headerRender,fixSiderbar:un.fixSiderbar,headerTheme:un.headerTheme}))},[un.layout,un.navTheme,un.menuRender,un.footerRender,un.menuHeaderRender,un.headerRender,un.fixSiderbar,un.headerTheme]),Vr},bc=fl,Rf=o(8230),Ms=function(un){var Jn=un.autoClearCache,Xn=Jn===void 0?!0:Jn,Vr=un.style,Zn=un.className,pa=un.children,Ha=un.ErrorBoundary||Rf.Z;return(0,L.jsx)(V.oK,{autoClearCache:Xn,children:un.ErrorBoundary===!1?(0,L.jsx)(p.Content,{className:Zn,style:Vr,children:pa}):(0,L.jsx)(Ha,{children:(0,L.jsx)(p.Content,{className:Zn,style:Vr,children:pa})})})},ff=Ms,Df=["id","defaultMessage"],Ff=["fixSiderbar","navTheme","layout"],Kf=0,xf=function(un,Jn){return un.headerRender===!1||un.pure?null:(0,L.jsx)(rf,(0,U.Z)({matchMenuKeys:Jn},un))},Sc=function(un){return un.footerRender===!1||un.pure?null:un.footerRender?un.footerRender((0,U.Z)({},un),(0,L.jsx)(Dc,{})):null},Wu=function(un,Jn){var Xn=un.layout,Vr=un.navTheme,Zn=un.isMobile,pa=un.openKeys,Ha=un.splitMenus,gi=un.menuRender;if(un.menuRender===!1||un.pure)return null;var co=un.menuData;if(Ha&&(pa!==!1||Xn==="mix")&&!Zn){var No=(0,W.Z)(Jn,1),Ko=No[0];if(Ko){var Jo,gl;co=((Jo=un.menuData)===null||Jo===void 0||(gl=Jo.find(function(ko){return ko.key===Ko}))===null||gl===void 0?void 0:gl.routes)||[]}else co=[]}var js=ms(co||[]);if(js&&(js==null?void 0:js.length)<1&&Ha)return null;if(Xn==="top"&&!Zn)return(0,L.jsx)(da,(0,U.Z)((0,U.Z)({matchMenuKeys:Jn},un),{},{hide:!0}));var Zl=(0,L.jsx)(da,(0,U.Z)((0,U.Z)({matchMenuKeys:Jn},un),{},{style:Vr==="realDark"?{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"}:{},menuData:js}));return gi?gi(un,Zl):Zl},Du=function(un,Jn){var Xn=Jn.pageTitleRender,Vr=yf(un);if(Xn===!1)return{title:Jn.title||"",id:"",pageName:""};if(Xn){var Zn=Xn(un,Vr.title,Vr);if(typeof Zn=="string")return(0,U.Z)((0,U.Z)({},Vr),{},{title:Zn});ei()(typeof Zn=="string","pro-layout: renderPageTitle return value should be a string")}return Vr},Gd=function(un,Jn,Xn){return un?Jn?48:Xn:0},gf=function(un){var Jn,Xn,Vr,Zn,pa=un||{},Ha=pa.children,gi=pa.onCollapse,co=pa.location,No=co===void 0?{pathname:"/"}:co,Ko=pa.contentStyle,Jo=pa.route,gl=pa.defaultCollapsed,js=pa.style,Zl=pa.disableContentMargin,ko=pa.siderWidth,te=ko===void 0?208:ko,Me=pa.menu,ft=pa.isChildrenLayout,Nt=pa.menuDataRender,xn=pa.actionRef,Yr=pa.formatMessage,qa=pa.loading,Es=(0,A.useContext)(Z.ZP.ConfigContext),Qs=(Jn=un.prefixCls)!==null&&Jn!==void 0?Jn:Es.getPrefixCls("pro"),Hl=(0,$.Z)(!1,{value:Me==null?void 0:Me.loading,onChange:Me==null?void 0:Me.onLoadingChange}),Lc=(0,W.Z)(Hl,2),Pu=Lc[0],Yf=Lc[1],yv=(0,A.useState)(function(){return Kf+=1,"pro-layout-".concat(Kf)}),Cp=(0,W.Z)(yv,1),kv=Cp[0],Nv=(0,A.useCallback)(function(Dp){var Hp=Dp.id,Yh=Dp.defaultMessage,ev=(0,F.Z)(Dp,Df);if(Yr)return Yr((0,U.Z)({id:Hp,defaultMessage:Yh},ev));var Kd=br();return Kd[Hp]?Kd[Hp]:Yh},[Yr]),Pv=(0,$i.ZP)(function(){return(Me==null?void 0:Me.params)?[kv,Me==null?void 0:Me.params]:[kv,{}]},function(){var Dp=(0,O.Z)((0,k.Z)().mark(function Hp(Yh,ev){var Kd,jp;return(0,k.Z)().wrap(function(tv){for(;;)switch(tv.prev=tv.next){case 0:return Yf(!0),tv.next=3,Me==null||(Kd=Me.request)===null||Kd===void 0?void 0:Kd.call(Me,ev,(Jo==null?void 0:Jo.routes)||[]);case 3:return jp=tv.sent,Yf(!1),tv.abrupt("return",jp);case 6:case"end":return tv.stop()}},Hp)}));return function(Hp,Yh){return Dp.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),sp=Pv.data,Wp=Pv.mutate,$h=(0,$i.kY)(),Hf=$h.cache;(0,A.useEffect)(function(){return function(){Hf instanceof Map&&Hf.clear()}},[]);var Qc=(0,A.useMemo)(function(){return yc(sp||(Jo==null?void 0:Jo.routes)||[],Me,Nv,Nt)},[Nv,Me,Nt,sp,Jo==null?void 0:Jo.routes]),bp=Qc||{},cv=bp.breadcrumb,nh=cv===void 0?{}:cv,Kv=bp.breadcrumbMap,am=bp.menuData,Nh=am===void 0?[]:am;xn&&(Me==null?void 0:Me.request)&&(xn.current={reload:function(){Wp()}});var Lp=(0,A.useMemo)(function(){return rs(No.pathname||"/",Nh||[],!0)},[No.pathname,Nh]),sh=(0,A.useMemo)(function(){return Array.from(new Set(Lp.map(function(Dp){return Dp.key||Dp.path||""})))},[Lp]),Lh=Lp[Lp.length-1]||{},mh=bc(Lh),fm=(0,U.Z)((0,U.Z)({},un),mh),rh=fm.fixSiderbar,Fp=fm.navTheme,gh=fm.layout,Am=(0,F.Z)(fm,Ff),rc=_n(gh),wl=(0,La.ZP)(),Sl=(wl==="sm"||wl==="xs")&&!un.disableMobile,Ac=rc!=="top"&&!Sl,Ju=Xa(function(){return gl!==void 0?gl:!!(Sl||wl==="md")},{value:un.collapsed,onChange:gi}),Bc=(0,W.Z)(Ju,2),$u=Bc[0],Nf=Bc[1],Ou=(0,Kn.Z)((0,U.Z)((0,U.Z)((0,U.Z)({prefixCls:Qs},un),{},{siderWidth:te},mh),{},{formatMessage:Nv,breadcrumb:nh,menu:(0,U.Z)((0,U.Z)({},Me),{},{loading:Pu}),layout:rc}),["className","style","breadcrumbRender"]),Lf=Du((0,U.Z)((0,U.Z)({pathname:No.pathname},Ou),{},{breadcrumbMap:Kv}),un),Mf=is((0,U.Z)((0,U.Z)({},Ou),{},{breadcrumbRender:un.breadcrumbRender,breadcrumbMap:Kv}),un),Sd=Wu((0,U.Z)((0,U.Z)({},Ou),{},{menuData:Nh,onCollapse:Nf,isMobile:Sl,theme:Fp==="dark"?"dark":"light",collapsed:$u}),sh),jv=xf((0,U.Z)((0,U.Z)({},Ou),{},{hasSiderMenu:!!Sd,menuData:Nh,isMobile:Sl,collapsed:$u,onCollapse:Nf,theme:Fp==="dark"?"dark":"light"}),sh),uv=Sc((0,U.Z)({isMobile:Sl,collapsed:$u},Ou)),Fh=(0,A.useContext)(Pt),fv=Fh.isChildrenLayout,Yv=ft!==void 0?ft:fv,wh="".concat(Qs,"-basicLayout"),im=Cn()(un.className,"ant-design-pro",wh,(Xn={},(0,S.Z)(Xn,"screen-".concat(wl),wl),(0,S.Z)(Xn,"".concat(wh,"-top-menu"),rc==="top"),(0,S.Z)(Xn,"".concat(wh,"-is-children"),Yv),(0,S.Z)(Xn,"".concat(wh,"-fix-siderbar"),rh),(0,S.Z)(Xn,"".concat(wh,"-").concat(rc),rc),Xn)),fg=Gd(!!Ac,$u,te),_h={position:"relative"};(Yv||Ko&&Ko.minHeight)&&(_h.minHeight=0);var Bv=Cn()("".concat(wh,"-content"),(Vr={},(0,S.Z)(Vr,"".concat(wh,"-has-header"),jv),(0,S.Z)(Vr,"".concat(wh,"-content-disable-margin"),Zl),Vr));(0,A.useEffect)(function(){var Dp;(Dp=un.onPageChange)===null||Dp===void 0||Dp.call(un,un.location)},[No.pathname,(Zn=No.pathname)===null||Zn===void 0?void 0:Zn.search]);var ah=(0,A.useState)(!1),om=(0,W.Z)(ah,2),Og=om[0],Kh=om[1];return K(Lf,un.title||!1),(0,L.jsx)(sn.Provider,{children:(0,L.jsx)(Pt.Provider,{value:(0,U.Z)((0,U.Z)({},Ou),{},{breadcrumb:Mf,menuData:Nh,isMobile:Sl,collapsed:$u,isChildrenLayout:!0,title:Lf.pageName,hasSiderMenu:!!Sd,hasHeader:!!jv,siderWidth:fg,hasFooter:!!uv,hasFooterToolbar:Og,setHasFooterToolbar:Kh,pageTitleInfo:Lf,matchMenus:Lp,matchMenuKeys:sh,currentMenu:Lh}),children:un.pure?(0,L.jsx)(V.oK,{autoClearCache:!0,children:Ha}):(0,L.jsx)("div",{className:im,children:(0,L.jsxs)(p,{style:(0,U.Z)({minHeight:"100%"},js),children:[Sd,(0,L.jsxs)("div",{style:_h,className:Es.getPrefixCls("layout"),children:[jv,(0,L.jsx)(ff,(0,U.Z)((0,U.Z)({autoClearCache:!1,isChildrenLayout:Yv},Am),{},{className:Bv,style:Ko,children:qa?(0,L.jsx)(Os,{}):Ha})),uv]})]})})})})},Vp=function(){return(0,L.jsxs)("svg",{width:"32px",height:"32px",viewBox:"0 0 200 200",children:[(0,L.jsxs)("defs",{children:[(0,L.jsxs)("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[(0,L.jsx)("stop",{stopColor:"#4285EB",offset:"0%"}),(0,L.jsx)("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),(0,L.jsxs)("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[(0,L.jsx)("stop",{stopColor:"#29CDFF",offset:"0%"}),(0,L.jsx)("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),(0,L.jsx)("stop",{stopColor:"#0A60FF",offset:"100%"})]}),(0,L.jsxs)("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[(0,L.jsx)("stop",{stopColor:"#FA816E",offset:"0%"}),(0,L.jsx)("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),(0,L.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]}),(0,L.jsxs)("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[(0,L.jsx)("stop",{stopColor:"#FA8E7D",offset:"0%"}),(0,L.jsx)("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),(0,L.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),(0,L.jsx)("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:(0,L.jsx)("g",{transform:"translate(-20.000000, -20.000000)",children:(0,L.jsx)("g",{transform:"translate(20.000000, 20.000000)",children:(0,L.jsxs)("g",{children:[(0,L.jsxs)("g",{fillRule:"nonzero",children:[(0,L.jsxs)("g",{children:[(0,L.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,L.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,L.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,L.jsx)("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})};gf.defaultProps=(0,U.Z)((0,U.Z)({logo:(0,L.jsx)(Vp,{})},Xi),{},{location:(0,G.Z)()?window.location:void 0});var $c=gf,Yl=null,Sp=$c,tp=o(19597),Rp=o(3531),df=o(90930),uf=o(23040),Af=o(55035);function Wn(cr,un,Jn,Xn){if(cr.rightRender)return cr.rightRender(Jn,Xn,cr);var Vr=(0,L.jsx)(gr.Z,{className:"umi-plugin-layout-menu",children:(0,L.jsxs)(gr.Z.Item,{onClick:function(){return cr.logout&&(cr==null?void 0:cr.logout(Jn))},children:[(0,L.jsx)(Af.Z,{}),"\u9000\u51FA\u767B\u5F55"]},"logout")}),Zn=(0,L.jsxs)("span",{className:"umi-plugin-layout-action",children:[(0,L.jsx)(uf.C,{size:"small",className:"umi-plugin-layout-avatar",src:(Jn==null?void 0:Jn.avatar)||"https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png",alt:"avatar"}),(0,L.jsx)("span",{className:"umi-plugin-layout-name",children:Jn==null?void 0:Jn.name})]});return un?(0,L.jsx)("div",{className:"umi-plugin-layout-right",children:(0,L.jsx)(to.Z,{size:"small",style:{marginLeft:8,marginRight:8}})}):(0,L.jsxs)("div",{className:"umi-plugin-layout-right anticon",children:[cr.logout?(0,L.jsx)(Rp.Z,{overlay:Vr,overlayClassName:"umi-plugin-layout-container",children:Zn}):Zn,y.pD&&(0,L.jsx)(y.pD,{})]})}var ca=o(50111),ra=o(55419),Na=o(13753),fi=o(48429);function so(){y.m8.push("/")}var vo=function(){return(0,L.jsx)(ra.ZP,{status:"404",title:"404",subTitle:"\u62B1\u6B49\uFF0C\u4F60\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728",extra:(0,L.jsx)(fi.Z,{type:"primary",onClick:so,children:"\u8FD4\u56DE\u9996\u9875"})})},Ro=function(){return(0,L.jsx)(ra.ZP,{status:"403",title:"403",subTitle:"\u62B1\u6B49\uFF0C\u4F60\u65E0\u6743\u8BBF\u95EE\u8BE5\u9875\u9762",extra:(0,L.jsx)(fi.Z,{type:"primary",onClick:so,children:"\u8FD4\u56DE\u9996\u9875"})})},So=function(un){var Jn=un.children,Xn=un.currentPathConfig;return Xn?Xn.unAccessible||Xn.unaccessible?un.unAccessible||(0,L.jsx)(Ro,{}):Jn:un.noFound||(0,L.jsx)(vo,{})},el=o(58892),ul=o.n(el);function Xo(cr,un){return un>>>cr|un<<32-cr}function lo(cr,un,Jn){return cr&un^~cr&Jn}function Zs(cr,un,Jn){return cr&un^cr&Jn^un&Jn}function Gs(cr){return Xo(2,cr)^Xo(13,cr)^Xo(22,cr)}function $s(cr){return Xo(6,cr)^Xo(11,cr)^Xo(25,cr)}function Qn(cr){return Xo(7,cr)^Xo(18,cr)^cr>>>3}function dr(cr){return Xo(17,cr)^Xo(19,cr)^cr>>>10}function Xr(cr,un){return cr[un&15]+=dr(cr[un+14&15])+cr[un+9&15]+Qn(cr[un+1&15])}var la=[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],Ra,_i,ui,ho="0123456789abcdef";function Oi(cr,un){var Jn=(cr&65535)+(un&65535),Xn=(cr>>16)+(un>>16)+(Jn>>16);return Xn<<16|Jn&65535}function Fo(){Ra=new Array(8),_i=new Array(2),ui=new Array(64),_i[0]=_i[1]=0,Ra[0]=1779033703,Ra[1]=3144134277,Ra[2]=1013904242,Ra[3]=2773480762,Ra[4]=1359893119,Ra[5]=2600822924,Ra[6]=528734635,Ra[7]=1541459225}function as(){var cr,un,Jn,Xn,Vr,Zn,pa,Ha,gi,co,No=new Array(16);cr=Ra[0],un=Ra[1],Jn=Ra[2],Xn=Ra[3],Vr=Ra[4],Zn=Ra[5],pa=Ra[6],Ha=Ra[7];for(var Ko=0;Ko<16;Ko++)No[Ko]=ui[(Ko<<2)+3]|ui[(Ko<<2)+2]<<8|ui[(Ko<<2)+1]<<16|ui[Ko<<2]<<24;for(var Jo=0;Jo<64;Jo++)gi=Ha+$s(Vr)+lo(Vr,Zn,pa)+la[Jo],Jo<16?gi+=No[Jo]:gi+=Xr(No,Jo),co=Gs(cr)+Zs(cr,un,Jn),Ha=pa,pa=Zn,Zn=Vr,Vr=Oi(Xn,gi),Xn=Jn,Jn=un,un=cr,cr=Oi(gi,co);Ra[0]+=cr,Ra[1]+=un,Ra[2]+=Jn,Ra[3]+=Xn,Ra[4]+=Vr,Ra[5]+=Zn,Ra[6]+=pa,Ra[7]+=Ha}function Fs(cr,un){var Jn,Xn,Vr=0;Xn=_i[0]>>3&63;var Zn=un&63;for((_i[0]+=un<<3)<un<<3&&_i[1]++,_i[1]+=un>>29,Jn=0;Jn+63<un;Jn+=64){for(var pa=Xn;pa<64;pa++)ui[pa]=cr.charCodeAt(Vr++);as(),Xn=0}for(var Ha=0;Ha<Zn;Ha++)ui[Ha]=cr.charCodeAt(Vr++)}function Fr(){var cr=_i[0]>>3&63;if(ui[cr++]=128,cr<=56)for(var un=cr;un<56;un++)ui[un]=0;else{for(var Jn=cr;Jn<64;Jn++)ui[Jn]=0;as();for(var Xn=0;Xn<56;Xn++)ui[Xn]=0}ui[56]=_i[1]>>>24&255,ui[57]=_i[1]>>>16&255,ui[58]=_i[1]>>>8&255,ui[59]=_i[1]&255,ui[60]=_i[0]>>>24&255,ui[61]=_i[0]>>>16&255,ui[62]=_i[0]>>>8&255,ui[63]=_i[0]&255,as()}function tl(){for(var cr=0,un=new Array(32),Jn=0;Jn<8;Jn++)un[cr++]=Ra[Jn]>>>24&255,un[cr++]=Ra[Jn]>>>16&255,un[cr++]=Ra[Jn]>>>8&255,un[cr++]=Ra[Jn]&255;return un}function Js(){for(var cr=new String,un=0;un<8;un++)for(var Jn=28;Jn>=0;Jn-=4)cr+=ho.charAt(Ra[un]>>>Jn&15);return cr}function Us(cr){return Fo(),Fs(cr,cr.length),Fr(),Js()}var os=Us;function El(cr){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?El=function(Jn){return typeof Jn}:El=function(Jn){return Jn&&typeof Symbol=="function"&&Jn.constructor===Symbol&&Jn!==Symbol.prototype?"symbol":typeof Jn},El(cr)}function Bs(cr,un){return Sa(cr)||kr(cr,un)||tr(cr,un)||gc()}function gc(){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 kr(cr,un){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(cr)))){var Jn=[],Xn=!0,Vr=!1,Zn=void 0;try{for(var pa=cr[Symbol.iterator](),Ha;!(Xn=(Ha=pa.next()).done)&&(Jn.push(Ha.value),!(un&&Jn.length===un));Xn=!0);}catch(gi){Vr=!0,Zn=gi}finally{try{!Xn&&pa.return!=null&&pa.return()}finally{if(Vr)throw Zn}}return Jn}}function Sa(cr){if(Array.isArray(cr))return cr}function Hi(cr,un){var Jn;if(typeof Symbol=="undefined"||cr[Symbol.iterator]==null){if(Array.isArray(cr)||(Jn=tr(cr))||un&&cr&&typeof cr.length=="number"){Jn&&(cr=Jn);var Xn=0,Vr=function(){};return{s:Vr,n:function(){return Xn>=cr.length?{done:!0}:{done:!1,value:cr[Xn++]}},e:function(co){throw co},f:Vr}}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 Zn=!0,pa=!1,Ha;return{s:function(){Jn=cr[Symbol.iterator]()},n:function(){var co=Jn.next();return Zn=co.done,co},e:function(co){pa=!0,Ha=co},f:function(){try{!Zn&&Jn.return!=null&&Jn.return()}finally{if(pa)throw Ha}}}}function Co(cr,un){if(!(cr instanceof un))throw new TypeError("Cannot call a class as a function")}function Ds(cr,un){for(var Jn=0;Jn<un.length;Jn++){var Xn=un[Jn];Xn.enumerable=Xn.enumerable||!1,Xn.configurable=!0,"value"in Xn&&(Xn.writable=!0),Object.defineProperty(cr,Xn.key,Xn)}}function Dl(cr,un,Jn){return un&&Ds(cr.prototype,un),Jn&&Ds(cr,Jn),cr}function Xc(cr,un){if(typeof un!="function"&&un!==null)throw new TypeError("Super expression must either be null or a function");cr.prototype=Object.create(un&&un.prototype,{constructor:{value:cr,writable:!0,configurable:!0}}),un&&Jc(cr,un)}function Fl(cr){var un=iu();return function(){var Xn=pf(cr),Vr;if(un){var Zn=pf(this).constructor;Vr=Reflect.construct(Xn,arguments,Zn)}else Vr=Xn.apply(this,arguments);return Eu(this,Vr)}}function Eu(cr,un){return un&&(El(un)==="object"||typeof un=="function")?un:cc(cr)}function cc(cr){if(cr===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return cr}function Hu(cr){var un=typeof Map=="function"?new Map:void 0;return Hu=function(Xn){if(Xn===null||!Gc(Xn))return Xn;if(typeof Xn!="function")throw new TypeError("Super expression must either be null or a function");if(typeof un!="undefined"){if(un.has(Xn))return un.get(Xn);un.set(Xn,Vr)}function Vr(){return dc(Xn,arguments,pf(this).constructor)}return Vr.prototype=Object.create(Xn.prototype,{constructor:{value:Vr,enumerable:!1,writable:!0,configurable:!0}}),Jc(Vr,Xn)},Hu(cr)}function dc(cr,un,Jn){return iu()?dc=Reflect.construct:dc=function(Vr,Zn,pa){var Ha=[null];Ha.push.apply(Ha,Zn);var gi=Function.bind.apply(Vr,Ha),co=new gi;return pa&&Jc(co,pa.prototype),co},dc.apply(null,arguments)}function iu(){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(cr){return!1}}function Gc(cr){return Function.toString.call(cr).indexOf("[native code]")!==-1}function Jc(cr,un){return Jc=Object.setPrototypeOf||function(Xn,Vr){return Xn.__proto__=Vr,Xn},Jc(cr,un)}function pf(cr){return pf=Object.setPrototypeOf?Object.getPrototypeOf:function(Jn){return Jn.__proto__||Object.getPrototypeOf(Jn)},pf(cr)}function hn(cr){return Lr(cr)||Mn(cr)||tr(cr)||dn()}function dn(){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(cr,un){if(!!cr){if(typeof cr=="string")return sa(cr,un);var Jn=Object.prototype.toString.call(cr).slice(8,-1);if(Jn==="Object"&&cr.constructor&&(Jn=cr.constructor.name),Jn==="Map"||Jn==="Set")return Array.from(cr);if(Jn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Jn))return sa(cr,un)}}function Mn(cr){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(cr))return Array.from(cr)}function Lr(cr){if(Array.isArray(cr))return sa(cr)}function sa(cr,un){(un==null||un>cr.length)&&(un=cr.length);for(var Jn=0,Xn=new Array(un);Jn<un;Jn++)Xn[Jn]=cr[Jn];return Xn}function Ma(cr,un){if(cr==null)return{};var Jn=Ia(cr,un),Xn,Vr;if(Object.getOwnPropertySymbols){var Zn=Object.getOwnPropertySymbols(cr);for(Vr=0;Vr<Zn.length;Vr++)Xn=Zn[Vr],!(un.indexOf(Xn)>=0)&&(!Object.prototype.propertyIsEnumerable.call(cr,Xn)||(Jn[Xn]=cr[Xn]))}return Jn}function Ia(cr,un){if(cr==null)return{};var Jn={},Xn=Object.keys(cr),Vr,Zn;for(Zn=0;Zn<Xn.length;Zn++)Vr=Xn[Zn],!(un.indexOf(Vr)>=0)&&(Jn[Vr]=cr[Vr]);return Jn}function Ja(cr,un){var Jn=Object.keys(cr);if(Object.getOwnPropertySymbols){var Xn=Object.getOwnPropertySymbols(cr);un&&(Xn=Xn.filter(function(Vr){return Object.getOwnPropertyDescriptor(cr,Vr).enumerable})),Jn.push.apply(Jn,Xn)}return Jn}function pi(cr){for(var un=1;un<arguments.length;un++){var Jn=arguments[un]!=null?arguments[un]:{};un%2?Ja(Object(Jn),!0).forEach(function(Xn){fo(cr,Xn,Jn[Xn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(cr,Object.getOwnPropertyDescriptors(Jn)):Ja(Object(Jn)).forEach(function(Xn){Object.defineProperty(cr,Xn,Object.getOwnPropertyDescriptor(Jn,Xn))})}return cr}function fo(cr,un,Jn){return un in cr?Object.defineProperty(cr,un,{value:Jn,enumerable:!0,configurable:!0,writable:!0}):cr[un]=Jn,cr}function us(cr){return cr.split("?")[0].split("#")[0]}var xo=function(un){if(!un.startsWith("http"))return!1;try{var Jn=new URL(un);return!!Jn}catch(Xn){return!1}},Qo=function(un){var Jn=un.path;if(!Jn||Jn==="/")try{return"/".concat(os(JSON.stringify(un)))}catch(Xn){}return Jn&&us(Jn)},gs=function(un,Jn){var Xn=un.name,Vr=un.locale;return"locale"in un&&Vr===!1||!Xn?!1:un.locale||"".concat(Jn,".").concat(Xn)},ds=function(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return(un||Jn).startsWith("/")||xo(un)?un:"/".concat(Jn,"/").concat(un).replace(/\/\//g,"/").replace(/\/\//g,"/")},nl=function(un,Jn){var Xn=un.menu,Vr=Xn===void 0?{}:Xn,Zn=un.indexRoute,pa=un.path,Ha=pa===void 0?"":pa,gi=un.children,co=Vr.name,No=co===void 0?un.name:co,Ko=Vr.icon,Jo=Ko===void 0?un.icon:Ko,gl=Vr.hideChildren,js=gl===void 0?un.hideChildren:gl,Zl=Vr.flatMenu,ko=Zl===void 0?un.flatMenu:Zl,te=Zn&&Object.keys(Zn).join(",")!=="redirect"?[pi({path:Ha,menu:Vr},Zn)].concat(gi||[]):gi,Me=pi({},un);if(No&&(Me.name=No),Jo&&(Me.icon=Jo),te&&te.length){if(js)return delete Me.children,Me;var ft=nc(pi(pi({},Jn),{},{data:te}),un);if(ko)return ft;Me.children=ft}return Me};function nc(cr){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},Jn=cr.data,Xn=cr.formatMessage,Vr=cr.parentName,Zn=cr.locale;return!Jn||!Array.isArray(Jn)?[]:Jn.filter(function(pa){return pa?pa.routes||pa.children||pa.path||pa.layout?!0:(pa.redirect,!1):!1}).filter(function(pa){var Ha,gi;return pa.unaccessible&&delete pa.name,(pa==null||(Ha=pa.menu)===null||Ha===void 0?void 0:Ha.name)||(pa==null?void 0:pa.flatMenu)||(pa==null||(gi=pa.menu)===null||gi===void 0?void 0:gi.flatMenu)?!0:pa.menu!==!1}).map(function(){var pa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},Ha=ds(pa.path,un?un.path:"/"),gi=pa.name,co=gs(pa,Vr||"menu"),No=co!==!1&&Zn!==!1&&Xn&&co?Xn({id:co,defaultMessage:gi}):gi,Ko=un.pro_layout_parentKeys,Jo=Ko===void 0?[]:Ko,gl=un.children,js=un.icon,Zl=un.flatMenu,ko=un.indexRoute,te=Ma(un,["pro_layout_parentKeys","children","icon","flatMenu","indexRoute"]),Me=pi(pi(pi({},te),{},{menu:void 0},pa),{},{path:Ha,locale:co,key:pa.key||Qo(pi(pi({},pa),{},{path:Ha})),routes:null,pro_layout_parentKeys:Array.from(new Set([].concat(hn(pa.parentKeys||[]),hn(Jo),["/".concat(un.key||"").replace(/\/\//g,"/").replace(/\/\//g,"/")]))).filter(function(Nt){return Nt&&Nt!=="/"})});if(No?Me.name=No:delete Me.name,Me.menu===void 0&&delete Me.menu,pa.routes||pa.children){var ft=nc(pi(pi({},cr),{},{data:pa.routes||pa.children,parentName:co||""}),Me);Me.children=ft&&ft.length>0?ft:void 0,Me.children||delete Me.children}return nl(Me,cr)}).flat(1)}var Kl=ce(nc,ul()),mu=function cr(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return un.filter(function(Jn){return Jn&&(Jn.name||Jn.children)&&!Jn.hideInMenu&&!Jn.redirect}).map(function(Jn){if(Jn.children&&Array.isArray(Jn.children)&&!Jn.hideChildrenInMenu&&Jn.children.some(function(Vr){return Vr&&!!Vr.name})){var Xn=cr(Jn.children);if(Xn.length)return pi(pi({},Jn),{},{children:Xn})}return pi(pi({},Jn),{},{children:void 0})}).filter(function(Jn){return Jn})},xc=function(cr){Xc(Jn,cr);var un=Fl(Jn);function Jn(){return Co(this,Jn),un.apply(this,arguments)}return Dl(Jn,[{key:"get",value:function(Vr){var Zn;try{var pa=Hi(this.entries()),Ha;try{for(pa.s();!(Ha=pa.n()).done;){var gi=Bs(Ha.value,2),co=gi[0],No=gi[1],Ko=us(co);if(!xo(co)&&qe(Ko,[]).test(Vr)){Zn=No;break}}}catch(Jo){pa.e(Jo)}finally{pa.f()}}catch(Jo){Zn=void 0}return Zn}}]),Jn}(Hu(Map)),Ll=function(un){var Jn=new xc,Xn=function Vr(Zn,pa){Zn.forEach(function(Ha){Ha&&Ha.children&&Vr(Ha.children,Ha);var gi=ds(Ha.path,pa?pa.path:"/");Jn.set(us(gi),Ha)})};return Xn(un),Jn},wc=ce(Ll,ul()),Xu=function cr(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return un.map(function(Jn){if(Jn.children&&Array.isArray(Jn.children)&&Jn.children.length>0){var Xn=cr(Jn.children);if(Xn.length)return pi(pi({},Jn),{},{children:Xn})}var Vr=pi({},Jn);return delete Vr.children,Vr}).filter(function(Jn){return Jn})},_u=function(un,Jn,Xn,Vr){var Zn=Kl({data:un,formatMessage:Xn,locale:Jn}),pa=Vr?Xu(Zn):mu(Zn),Ha=wc(Zn);return{breadcrumb:Ha,menuData:pa}},wu=_u;function fu(cr,un){var Jn=Object.keys(cr);if(Object.getOwnPropertySymbols){var Xn=Object.getOwnPropertySymbols(cr);un&&(Xn=Xn.filter(function(Vr){return Object.getOwnPropertyDescriptor(cr,Vr).enumerable})),Jn.push.apply(Jn,Xn)}return Jn}function Kc(cr){for(var un=1;un<arguments.length;un++){var Jn=arguments[un]!=null?arguments[un]:{};un%2?fu(Object(Jn),!0).forEach(function(Xn){td(cr,Xn,Jn[Xn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(cr,Object.getOwnPropertyDescriptors(Jn)):fu(Object(Jn)).forEach(function(Xn){Object.defineProperty(cr,Xn,Object.getOwnPropertyDescriptor(Jn,Xn))})}return cr}function td(cr,un,Jn){return un in cr?Object.defineProperty(cr,un,{value:Jn,enumerable:!0,configurable:!0,writable:!0}):cr[un]=Jn,cr}var Ic=function cr(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Jn={};return un.forEach(function(Xn){!Xn||!Xn.key||(Jn[us(Xn.path||Xn.key||"/")]=Kc({},Xn),Jn[Xn.key||Xn.path||"/"]=Kc({},Xn),Xn.children&&(Jn=Kc(Kc({},Jn),cr(Xn.children))))}),Jn},tu=Ic,jf=function(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Jn=arguments.length>1?arguments[1]:void 0,Xn=arguments.length>2?arguments[2]:void 0;return un.filter(function(Vr){if(Vr==="/"&&Jn==="/")return!0;if(Vr!=="/"&&Vr!=="/*"&&Vr&&!xo(Vr)){var Zn=us(Vr);try{if(Xn&&qe("".concat(Zn)).test(Jn)||qe("".concat(Zn),[]).test(Jn)||qe("".concat(Zn,"/(.*)")).test(Jn))return!0}catch(pa){}}return!1}).sort(function(Vr,Zn){return Vr===Jn?10:Zn===Jn?-10:Vr.substr(1).split("/").length-Zn.substr(1).split("/").length})},Tu=function(un,Jn,Xn,Vr){var Zn=tu(Jn),pa=Object.keys(Zn),Ha=jf(pa,un||"/",Vr);return!Ha||Ha.length<1?[]:(Xn||(Ha=[Ha[Ha.length-1]]),Ha.map(function(gi){var co=Zn[gi]||{pro_layout_parentKeys:"",key:""},No=new Map,Ko=(co.pro_layout_parentKeys||[]).map(function(Jo){return No.has(Jo)?null:(No.set(Jo,!0),Zn[Jo])}).filter(function(Jo){return Jo});return co.key&&Ko.push(co),Ko}).flat(1))},Ed=Tu,vd=function(){return(0,L.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 200 200",children:[(0,L.jsxs)("defs",{children:[(0,L.jsxs)("linearGradient",{id:"linearGradient-1",x1:"62.102%",x2:"108.197%",y1:"0%",y2:"37.864%",children:[(0,L.jsx)("stop",{offset:"0%",stopColor:"#4285EB"}),(0,L.jsx)("stop",{offset:"100%",stopColor:"#2EC7FF"})]}),(0,L.jsxs)("linearGradient",{id:"linearGradient-2",x1:"69.644%",x2:"54.043%",y1:"0%",y2:"108.457%",children:[(0,L.jsx)("stop",{offset:"0%",stopColor:"#29CDFF"}),(0,L.jsx)("stop",{offset:"37.86%",stopColor:"#148EFF"}),(0,L.jsx)("stop",{offset:"100%",stopColor:"#0A60FF"})]}),(0,L.jsxs)("linearGradient",{id:"linearGradient-3",x1:"69.691%",x2:"16.723%",y1:"-12.974%",y2:"117.391%",children:[(0,L.jsx)("stop",{offset:"0%",stopColor:"#FA816E"}),(0,L.jsx)("stop",{offset:"41.473%",stopColor:"#F74A5C"}),(0,L.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]}),(0,L.jsxs)("linearGradient",{id:"linearGradient-4",x1:"68.128%",x2:"30.44%",y1:"-35.691%",y2:"114.943%",children:[(0,L.jsx)("stop",{offset:"0%",stopColor:"#FA8E7D"}),(0,L.jsx)("stop",{offset:"51.264%",stopColor:"#F74A5C"}),(0,L.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]})]}),(0,L.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:(0,L.jsx)("g",{transform:"translate(-20 -20)",children:(0,L.jsx)("g",{transform:"translate(20 20)",children:(0,L.jsxs)("g",{children:[(0,L.jsxs)("g",{fillRule:"nonzero",children:[(0,L.jsxs)("g",{children:[(0,L.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,L.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,L.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,L.jsx)("ellipse",{cx:"100.519",cy:"100.437",fill:"url(#linearGradient-4)",rx:"23.6",ry:"23.581"})]})})})})]})},Gu=vd,Op=function(un){var Jn,Xn,Vr,Zn={};return un!=null&&un.hideFooter&&(Zn.footerRender=!1),(un==null?void 0:un.layout)==!1?(Zn.pure=!0,Zn):(un!=null&&(Jn=un.layout)!==null&&Jn!==void 0&&Jn.hideMenu&&(Zn.menuRender=!1),un!=null&&(Xn=un.layout)!==null&&Xn!==void 0&&Xn.hideFooter&&(Zn.footerRender=!1),un!=null&&(Vr=un.layout)!==null&&Vr!==void 0&&Vr.hideNav&&(Zn.headerRender=!1),Zn)},np=Op,$d=["children","userConfig","location","route"],hd=function(un){var Jn,Xn=un.children,Vr=un.userConfig,Zn=Vr===void 0?{}:Vr,pa=un.location,Ha=un.route,gi=(0,w.Z)(un,$d),co=y.tT&&(0,y.tT)("@@initialState")||{initialState:void 0,loading:!1,setInitialState:null},No=co.initialState,Ko=co.loading,Jo=co.setInitialState,gl=(0,A.useMemo)(function(){var ko,te=wu((un==null||(ko=un.route)===null||ko===void 0?void 0:ko.routes)||[],void 0,void 0,!0),Me=te.menuData,ft=Ed(pa.pathname,Me).pop();return ft||{}},[pa==null?void 0:pa.pathname,un==null||(Jn=un.route)===null||Jn===void 0?void 0:Jn.routes]),js=(0,x.Z)((0,x.Z)((0,x.Z)({itemRender:function(te){return(0,L.jsx)(m.rU,{to:te.path,children:te.breadcrumbName})}},Zn),gi),np(gl||{})),Zl=y.md===null||y.md===void 0?void 0:(0,y.md)();return(0,L.jsx)(Sp,(0,x.Z)((0,x.Z)({route:Ha,location:pa,title:(Zn==null?void 0:Zn.name)||(Zn==null?void 0:Zn.title),navTheme:"dark",siderWidth:256,onMenuHeaderClick:function(te){te.stopPropagation(),te.preventDefault(),y.m8.push("/")},menu:{locale:Zn.locale},menuDataRender:Zn.patchMenus?function(ko){return Zn==null?void 0:Zn.patchMenus(ko,co)}:void 0,formatMessage:Zn==null?void 0:Zn.formatMessage,logo:Gu,menuItemRender:function(te,Me){return te.isUrl?Me:te.path&&pa.pathname!==te.path?(0,L.jsx)(m.rU,{to:te.path,target:te.target,children:Me}):Me},disableContentMargin:!0,fixSiderbar:!0,fixedHeader:!0,postMenuData:y.Bz?function(ko){return y.Bz===null||y.Bz===void 0?void 0:(0,y.Bz)(ko,Zl)}:void 0},js),{},{rightContentRender:(js==null?void 0:js.rightContentRender)!==!1&&function(ko){var te=Wn==null?void 0:Wn(Zn,Ko,No,Jo);return js.rightContentRender?js.rightContentRender(ko,te,{userConfig:Zn,loading:Ko,initialState:No,setInitialState:Jo}):te},children:(0,L.jsx)(So,{noFound:Zn==null?void 0:Zn.noFound,unAccessible:Zn==null?void 0:Zn.unAccessible,currentPathConfig:gl,children:Zn.childrenRender?Zn.childrenRender(Xn,un):Xn})}))},Ip=hd,dd=function(cr){var un=(0,A.useState)(null),Jn=(0,g.Z)(un,2),Xn=Jn[0],Vr=Jn[1],Zn=y.tT&&(0,y.tT)("@@initialState")||{initialState:void 0,loading:!1,setInitialState:null},pa=y.md===null||y.md===void 0?void 0:(0,y.md)();(0,A.useEffect)(function(){var No=y.BA.applyPlugins({key:"layout",type:M.ApplyPluginsType.modify,initialValue:(0,x.Z)((0,x.Z)({},Zn),{},{traverseModifyRoutes:function(Jo){return y.Bz===null||y.Bz===void 0?void 0:(0,y.Bz)(Jo,pa)}})})||{};if(No instanceof Promise){No.then(function(Ko){Vr(Ko)});return}Vr(No)},[Zn==null?void 0:Zn.initialState,pa]);var Ha=(0,x.Z)((0,x.Z)({},{name:"",theme:"PRO",locale:!0,showBreadcrumb:!0,siderWidth:208,navTheme:"light",primaryColor:"#296DF3",layout:"mix",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,colorWeak:!1,title:"",pwa:!1,iconfontUrl:"//at.alicdn.com/t/c/font_4120566_qiku6b2kol.js",splitMenus:!0,menu:{defaultOpenAll:!0,autoClose:!1,ignoreFlatMenu:!0}}),Xn||{}),gi=(0,y.YB)(),co=gi.formatMessage;return Xn?A.createElement(Ip,(0,x.Z)({userConfig:Ha,formatMessage:co},cr)):null}},64353:function(oe,N,o){"use strict";o.d(N,{WT:function(){return k},dh:function(){return F}});var x=o(35635),g=o(23799),A=o(2824),y=o(67294),M=o(49501),w=o.n(M),m=o(56051),b=o.n(m),v=o(38098),h=o.n(v),d=o(50475),_=o(85893),p=new(w());p.setMaxListeners(5);var S=Symbol("LANG_CHANGE");function k(){var D=(0,d.Kd)();if(b()!==null&&b()!==void 0&&b().locale){var Z;b().locale(((Z=d.H8[D])===null||Z===void 0?void 0:Z.momentLocale)||"")}(0,d.cv)(D)}var O=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect,F=function(Z){var W,U=y.useState(function(){return(0,d.Kd)()}),L=(0,A.Z)(U,2),V=L[0],$=L[1],G=y.useState(function(){return(0,d.lw)(V,!0)}),z=(0,A.Z)(G,2),K=z[0],re=z[1],ne=function(Ee){if(b()!==null&&b()!==void 0&&b().locale){var ce;b().locale(((ce=d.H8[Ee])===null||ce===void 0?void 0:ce.momentLocale)||"en")}$(Ee),re((0,d.lw)(Ee))};O(function(){return p.on(S,ne),function(){p.off(S,ne)}},[]);var Q={},ue=(0,d.Mg)();return(0,_.jsx)(g.ZP,{direction:ue,locale:((W=d.H8[V])===null||W===void 0?void 0:W.antd)||Q,children:(0,_.jsx)(d.eU,{value:K,children:Z.children})})}},50475:function(oe,N,o){"use strict";o.d(N,{eU:function(){return k},Mg:function(){return Os},lw:function(){return to},Kd:function(){return cs},H8:function(){return Do},cv:function(){return fs},YB:function(){return At}});var x=o(11849),g=o(69610),A=o(54941),y=o(81306),M=o(59206),w=o(67294),m=o.t(w,2),b=o(37550),v=o.n(b),h=v()||b;function d(nn){return nn.displayName||nn.name||"Component"}var _=w.createContext(null),p=_.Consumer,S=_.Provider,k=S,O=_;function F(nn,sn){var Ot=sn||{},gr=Ot.intlPropName,Gr=gr===void 0?"intl":gr,Ln=Ot.forwardRef,Tr=Ln===void 0?!1:Ln,Dn=Ot.enforceContext,Pr=Dn===void 0?!0:Dn,fa=function(Li){return React.createElement(p,null,function(zi){return Pr&&invariantIntlContext(zi),React.createElement(nn,Object.assign({},Li,_defineProperty({},Gr,zi),{ref:Tr?Li.forwardedRef:null}))})};return fa.displayName="injectIntl(".concat(d(nn),")"),fa.WrappedComponent=nn,h(Tr?React.forwardRef(function(ka,Li){return React.createElement(fa,Object.assign({},ka,{forwardedRef:Li}))}):fa,nn)}var D;(function(nn){nn[nn.literal=0]="literal",nn[nn.argument=1]="argument",nn[nn.number=2]="number",nn[nn.date=3]="date",nn[nn.time=4]="time",nn[nn.select=5]="select",nn[nn.plural=6]="plural",nn[nn.pound=7]="pound"})(D||(D={}));function Z(nn){return nn.type===D.literal}function W(nn){return nn.type===D.argument}function U(nn){return nn.type===D.number}function L(nn){return nn.type===D.date}function V(nn){return nn.type===D.time}function $(nn){return nn.type===D.select}function G(nn){return nn.type===D.plural}function z(nn){return nn.type===D.pound}function K(nn){return!!(nn&&typeof nn=="object"&&nn.type===0)}function re(nn){return!!(nn&&typeof nn=="object"&&nn.type===1)}function ne(nn){return{type:D.literal,value:nn}}function Q(nn,sn){return{type:D.number,value:nn,style:sn}}var ue=function(){var nn=function(Ot,gr){return nn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Gr,Ln){Gr.__proto__=Ln}||function(Gr,Ln){for(var Tr in Ln)Ln.hasOwnProperty(Tr)&&(Gr[Tr]=Ln[Tr])},nn(Ot,gr)};return function(sn,Ot){nn(sn,Ot);function gr(){this.constructor=sn}sn.prototype=Ot===null?Object.create(Ot):(gr.prototype=Ot.prototype,new gr)}}(),he=function(){return he=Object.assign||function(nn){for(var sn,Ot=1,gr=arguments.length;Ot<gr;Ot++){sn=arguments[Ot];for(var Gr in sn)Object.prototype.hasOwnProperty.call(sn,Gr)&&(nn[Gr]=sn[Gr])}return nn},he.apply(this,arguments)},Ee=function(nn){ue(sn,nn);function sn(Ot,gr,Gr,Ln){var Tr=nn.call(this)||this;return Tr.message=Ot,Tr.expected=gr,Tr.found=Gr,Tr.location=Ln,Tr.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(Tr,sn),Tr}return sn.buildMessage=function(Ot,gr){function Gr(ka){return ka.charCodeAt(0).toString(16).toUpperCase()}function Ln(ka){return ka.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(Li){return"\\x0"+Gr(Li)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Li){return"\\x"+Gr(Li)})}function Tr(ka){return ka.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(Li){return"\\x0"+Gr(Li)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Li){return"\\x"+Gr(Li)})}function Dn(ka){switch(ka.type){case"literal":return'"'+Ln(ka.text)+'"';case"class":var Li=ka.parts.map(function(zi){return Array.isArray(zi)?Tr(zi[0])+"-"+Tr(zi[1]):Tr(zi)});return"["+(ka.inverted?"^":"")+Li+"]";case"any":return"any character";case"end":return"end of input";case"other":return ka.description}}function Pr(ka){var Li=ka.map(Dn),zi,Mo;if(Li.sort(),Li.length>0){for(zi=1,Mo=1;zi<Li.length;zi++)Li[zi-1]!==Li[zi]&&(Li[Mo]=Li[zi],Mo++);Li.length=Mo}switch(Li.length){case 1:return Li[0];case 2:return Li[0]+" or "+Li[1];default:return Li.slice(0,-1).join(", ")+", or "+Li[Li.length-1]}}function fa(ka){return ka?'"'+Ln(ka)+'"':"end of input"}return"Expected "+Pr(Ot)+" but "+fa(gr)+" found."},sn}(Error);function ce(nn,sn){sn=sn!==void 0?sn:{};var Ot={},gr={start:Rp},Gr=Rp,Ln=function(Sa){return Sa.join("")},Tr=function(Sa){return he({type:D.literal,value:Sa},gc())},Dn="#",Pr=Sc("#",!1),fa=function(){return he({type:D.pound},gc())},ka=gf("argumentElement"),Li="{",zi=Sc("{",!1),Mo="}",Za=Sc("}",!1),ao=function(Sa){return he({type:D.argument,value:Sa},gc())},Mi=gf("numberSkeletonId"),Eo=/^['\/{}]/,Xi=Wu(["'","/","{","}"],!1,!1),Bo=Du(),ol=gf("numberSkeletonTokenOption"),Il="/",ms=Sc("/",!1),mc=function(Sa){return Sa},Ys=gf("numberSkeletonToken"),hl=function(Sa,Hi){return{stem:Sa,options:Hi}},Rs=function(Sa){return he({type:0,tokens:Sa},gc())},xl="::",Wl=Sc("::",!1),_l=function(Sa){return Sa},Ls=function(){return os.push("numberArgStyle"),!0},zn=function(Sa){return os.pop(),Sa.replace(/\s*$/,"")},Dr=",",Hr=Sc(",",!1),_a="number",Ti=Sc("number",!1),Ci=function(Sa,Hi,Co){return he({type:Hi==="number"?D.number:Hi==="date"?D.date:D.time,style:Co&&Co[2],value:Sa},gc())},da="'",Da=Sc("'",!1),mi=/^[^']/,Ho=Wu(["'"],!0,!1),al=/^[^a-zA-Z'{}]/,ml=Wu([["a","z"],["A","Z"],"'","{","}"],!0,!1),Xs=/^[a-zA-Z]/,Ps=Wu([["a","z"],["A","Z"]],!1,!1),dl=function(Sa){return he({type:1,pattern:Sa},gc())},ql=function(){return os.push("dateOrTimeArgStyle"),!0},Dc="date",Jl=Sc("date",!1),oc="time",xu=Sc("time",!1),yf="plural",ku=Sc("plural",!1),Zc="selectordinal",Zu=Sc("selectordinal",!1),Fc="offset:",Hc=Sc("offset:",!1),Vu=function(Sa,Hi,Co,Ds){return he({type:D.plural,pluralType:Hi==="plural"?"cardinal":"ordinal",value:Sa,offset:Co?Co[2]:0,options:Ds.reduce(function(Dl,Xc){var Fl=Xc.id,Eu=Xc.value,cc=Xc.location;return Fl in Dl&&xf('Duplicate option "'+Fl+'" in plural element: "'+Df()+'"',Ff()),Dl[Fl]={value:Eu,location:cc},Dl},{})},gc())},ws="select",fc=Sc("select",!1),Tc=function(Sa,Hi){return he({type:D.select,value:Sa,options:Hi.reduce(function(Co,Ds){var Dl=Ds.id,Xc=Ds.value,Fl=Ds.location;return Dl in Co&&xf('Duplicate option "'+Dl+'" in select element: "'+Df()+'"',Ff()),Co[Dl]={value:Xc,location:Fl},Co},{})},gc())},jc="=",lu=Sc("=",!1),hu=function(Sa){return os.push("select"),!0},of=function(Sa,Hi){return os.pop(),he({id:Sa,value:Hi},gc())},uu=function(Sa){return os.push("plural"),!0},zu=function(Sa,Hi){return os.pop(),he({id:Sa,value:Hi},gc())},cf=gf("whitespace"),bf=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Cu=Wu([[" ","\r"]," ","\x85","\xA0","\u1680",["\u2000","\u200A"],"\u2028","\u2029","\u202F","\u205F","\u3000"],!1,!1),rf=gf("syntax pattern"),Bu=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,Tf=Wu([["!","/"],[":","@"],["[","^"],"`",["{","~"],["\xA1","\xA7"],"\xA9","\xAB","\xAC","\xAE","\xB0","\xB1","\xB6","\xBB","\xBF","\xD7","\xF7",["\u2010","\u2027"],["\u2030","\u203E"],["\u2041","\u2053"],["\u2055","\u205E"],["\u2190","\u245F"],["\u2500","\u2775"],["\u2794","\u2BFF"],["\u2E00","\u2E7F"],["\u3001","\u3003"],["\u3008","\u3020"],"\u3030","\uFD3E","\uFD3F","\uFE45","\uFE46"],!1,!1),ed=gf("optional whitespace"),Fd=gf("number"),Pd="-",Nc=Sc("-",!1),eu=function(Sa,Hi){return Hi?Sa?-Hi:Hi:0},If=gf("apostrophe"),$f=gf("double apostrophes"),Te="''",_t=Sc("''",!1),Vn=function(){return"'"},br=function(Sa,Hi){return Sa+Hi.replace("''","'")},tn=function(Sa){return Sa!=="{"&&!(Bs()&&Sa==="#")&&!(El()&&Sa==="}")},Pt=`
|
||
`,on=Sc(`
|
||
`,!1),_n=function(Sa){return Sa==="{"||Sa==="}"||Bs()&&Sa==="#"},ir=gf("argNameOrNumber"),xr=gf("argNumber"),aa="0",oi=Sc("0",!1),ni=function(){return 0},yi=/^[1-9]/,Zo=Wu([["1","9"]],!1,!1),is=/^[0-9]/,mo=Wu([["0","9"]],!1,!1),Ml=function(Sa){return parseInt(Sa.join(""),10)},yc=gf("argName"),oa=0,sl=0,fl=[{line:1,column:1}],bc=0,Rf=[],Ms=0,ff;if(sn.startRule!==void 0){if(!(sn.startRule in gr))throw new Error(`Can't start parsing from rule "`+sn.startRule+'".');Gr=gr[sn.startRule]}function Df(){return nn.substring(sl,oa)}function Ff(){return $c(sl,oa)}function Kf(kr,Sa){throw Sa=Sa!==void 0?Sa:$c(sl,oa),tp([gf(kr)],nn.substring(sl,oa),Sa)}function xf(kr,Sa){throw Sa=Sa!==void 0?Sa:$c(sl,oa),Sp(kr,Sa)}function Sc(kr,Sa){return{type:"literal",text:kr,ignoreCase:Sa}}function Wu(kr,Sa,Hi){return{type:"class",parts:kr,inverted:Sa,ignoreCase:Hi}}function Du(){return{type:"any"}}function Gd(){return{type:"end"}}function gf(kr){return{type:"other",description:kr}}function Vp(kr){var Sa=fl[kr],Hi;if(Sa)return Sa;for(Hi=kr-1;!fl[Hi];)Hi--;for(Sa=fl[Hi],Sa={line:Sa.line,column:Sa.column};Hi<kr;)nn.charCodeAt(Hi)===10?(Sa.line++,Sa.column=1):Sa.column++,Hi++;return fl[kr]=Sa,Sa}function $c(kr,Sa){var Hi=Vp(kr),Co=Vp(Sa);return{start:{offset:kr,line:Hi.line,column:Hi.column},end:{offset:Sa,line:Co.line,column:Co.column}}}function Yl(kr){oa<bc||(oa>bc&&(bc=oa,Rf=[]),Rf.push(kr))}function Sp(kr,Sa){return new Ee(kr,[],"",Sa)}function tp(kr,Sa,Hi){return new Ee(Ee.buildMessage(kr,Sa),kr,Sa,Hi)}function Rp(){var kr;return kr=df(),kr}function df(){var kr,Sa;for(kr=[],Sa=uf();Sa!==Ot;)kr.push(Sa),Sa=uf();return kr}function uf(){var kr;return kr=Wn(),kr===Ot&&(kr=ra(),kr===Ot&&(kr=Gs(),kr===Ot&&(kr=$s(),kr===Ot&&(kr=Qn(),kr===Ot&&(kr=ca()))))),kr}function Af(){var kr,Sa,Hi;if(kr=oa,Sa=[],Hi=Fo(),Hi===Ot&&(Hi=as(),Hi===Ot&&(Hi=Fs())),Hi!==Ot)for(;Hi!==Ot;)Sa.push(Hi),Hi=Fo(),Hi===Ot&&(Hi=as(),Hi===Ot&&(Hi=Fs()));else Sa=Ot;return Sa!==Ot&&(sl=kr,Sa=Ln(Sa)),kr=Sa,kr}function Wn(){var kr,Sa;return kr=oa,Sa=Af(),Sa!==Ot&&(sl=kr,Sa=Tr(Sa)),kr=Sa,kr}function ca(){var kr,Sa;return kr=oa,nn.charCodeAt(oa)===35?(Sa=Dn,oa++):(Sa=Ot,Ms===0&&Yl(Pr)),Sa!==Ot&&(sl=kr,Sa=fa()),kr=Sa,kr}function ra(){var kr,Sa,Hi,Co,Ds,Dl;return Ms++,kr=oa,nn.charCodeAt(oa)===123?(Sa=Li,oa++):(Sa=Ot,Ms===0&&Yl(zi)),Sa!==Ot?(Hi=ui(),Hi!==Ot?(Co=tl(),Co!==Ot?(Ds=ui(),Ds!==Ot?(nn.charCodeAt(oa)===125?(Dl=Mo,oa++):(Dl=Ot,Ms===0&&Yl(Za)),Dl!==Ot?(sl=kr,Sa=ao(Co),kr=Sa):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot),Ms--,kr===Ot&&(Sa=Ot,Ms===0&&Yl(ka)),kr}function Na(){var kr,Sa,Hi,Co,Ds;if(Ms++,kr=oa,Sa=[],Hi=oa,Co=oa,Ms++,Ds=Ra(),Ds===Ot&&(Eo.test(nn.charAt(oa))?(Ds=nn.charAt(oa),oa++):(Ds=Ot,Ms===0&&Yl(Xi))),Ms--,Ds===Ot?Co=void 0:(oa=Co,Co=Ot),Co!==Ot?(nn.length>oa?(Ds=nn.charAt(oa),oa++):(Ds=Ot,Ms===0&&Yl(Bo)),Ds!==Ot?(Co=[Co,Ds],Hi=Co):(oa=Hi,Hi=Ot)):(oa=Hi,Hi=Ot),Hi!==Ot)for(;Hi!==Ot;)Sa.push(Hi),Hi=oa,Co=oa,Ms++,Ds=Ra(),Ds===Ot&&(Eo.test(nn.charAt(oa))?(Ds=nn.charAt(oa),oa++):(Ds=Ot,Ms===0&&Yl(Xi))),Ms--,Ds===Ot?Co=void 0:(oa=Co,Co=Ot),Co!==Ot?(nn.length>oa?(Ds=nn.charAt(oa),oa++):(Ds=Ot,Ms===0&&Yl(Bo)),Ds!==Ot?(Co=[Co,Ds],Hi=Co):(oa=Hi,Hi=Ot)):(oa=Hi,Hi=Ot);else Sa=Ot;return Sa!==Ot?kr=nn.substring(kr,oa):kr=Sa,Ms--,kr===Ot&&(Sa=Ot,Ms===0&&Yl(Mi)),kr}function fi(){var kr,Sa,Hi;return Ms++,kr=oa,nn.charCodeAt(oa)===47?(Sa=Il,oa++):(Sa=Ot,Ms===0&&Yl(ms)),Sa!==Ot?(Hi=Na(),Hi!==Ot?(sl=kr,Sa=mc(Hi),kr=Sa):(oa=kr,kr=Ot)):(oa=kr,kr=Ot),Ms--,kr===Ot&&(Sa=Ot,Ms===0&&Yl(ol)),kr}function so(){var kr,Sa,Hi,Co,Ds;if(Ms++,kr=oa,Sa=ui(),Sa!==Ot)if(Hi=Na(),Hi!==Ot){for(Co=[],Ds=fi();Ds!==Ot;)Co.push(Ds),Ds=fi();Co!==Ot?(sl=kr,Sa=hl(Hi,Co),kr=Sa):(oa=kr,kr=Ot)}else oa=kr,kr=Ot;else oa=kr,kr=Ot;return Ms--,kr===Ot&&(Sa=Ot,Ms===0&&Yl(Ys)),kr}function vo(){var kr,Sa,Hi;if(kr=oa,Sa=[],Hi=so(),Hi!==Ot)for(;Hi!==Ot;)Sa.push(Hi),Hi=so();else Sa=Ot;return Sa!==Ot&&(sl=kr,Sa=Rs(Sa)),kr=Sa,kr}function Ro(){var kr,Sa,Hi;return kr=oa,nn.substr(oa,2)===xl?(Sa=xl,oa+=2):(Sa=Ot,Ms===0&&Yl(Wl)),Sa!==Ot?(Hi=vo(),Hi!==Ot?(sl=kr,Sa=_l(Hi),kr=Sa):(oa=kr,kr=Ot)):(oa=kr,kr=Ot),kr===Ot&&(kr=oa,sl=oa,Sa=Ls(),Sa?Sa=void 0:Sa=Ot,Sa!==Ot?(Hi=Af(),Hi!==Ot?(sl=kr,Sa=zn(Hi),kr=Sa):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)),kr}function So(){var kr,Sa,Hi,Co,Ds,Dl,Xc,Fl,Eu,cc,Hu,dc,iu;return kr=oa,nn.charCodeAt(oa)===123?(Sa=Li,oa++):(Sa=Ot,Ms===0&&Yl(zi)),Sa!==Ot?(Hi=ui(),Hi!==Ot?(Co=tl(),Co!==Ot?(Ds=ui(),Ds!==Ot?(nn.charCodeAt(oa)===44?(Dl=Dr,oa++):(Dl=Ot,Ms===0&&Yl(Hr)),Dl!==Ot?(Xc=ui(),Xc!==Ot?(nn.substr(oa,6)===_a?(Fl=_a,oa+=6):(Fl=Ot,Ms===0&&Yl(Ti)),Fl!==Ot?(Eu=ui(),Eu!==Ot?(cc=oa,nn.charCodeAt(oa)===44?(Hu=Dr,oa++):(Hu=Ot,Ms===0&&Yl(Hr)),Hu!==Ot?(dc=ui(),dc!==Ot?(iu=Ro(),iu!==Ot?(Hu=[Hu,dc,iu],cc=Hu):(oa=cc,cc=Ot)):(oa=cc,cc=Ot)):(oa=cc,cc=Ot),cc===Ot&&(cc=null),cc!==Ot?(Hu=ui(),Hu!==Ot?(nn.charCodeAt(oa)===125?(dc=Mo,oa++):(dc=Ot,Ms===0&&Yl(Za)),dc!==Ot?(sl=kr,Sa=Ci(Co,Fl,cc),kr=Sa):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot),kr}function el(){var kr,Sa,Hi,Co;if(kr=oa,nn.charCodeAt(oa)===39?(Sa=da,oa++):(Sa=Ot,Ms===0&&Yl(Da)),Sa!==Ot){if(Hi=[],Co=Fo(),Co===Ot&&(mi.test(nn.charAt(oa))?(Co=nn.charAt(oa),oa++):(Co=Ot,Ms===0&&Yl(Ho))),Co!==Ot)for(;Co!==Ot;)Hi.push(Co),Co=Fo(),Co===Ot&&(mi.test(nn.charAt(oa))?(Co=nn.charAt(oa),oa++):(Co=Ot,Ms===0&&Yl(Ho)));else Hi=Ot;Hi!==Ot?(nn.charCodeAt(oa)===39?(Co=da,oa++):(Co=Ot,Ms===0&&Yl(Da)),Co!==Ot?(Sa=[Sa,Hi,Co],kr=Sa):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)}else oa=kr,kr=Ot;if(kr===Ot)if(kr=[],Sa=Fo(),Sa===Ot&&(al.test(nn.charAt(oa))?(Sa=nn.charAt(oa),oa++):(Sa=Ot,Ms===0&&Yl(ml))),Sa!==Ot)for(;Sa!==Ot;)kr.push(Sa),Sa=Fo(),Sa===Ot&&(al.test(nn.charAt(oa))?(Sa=nn.charAt(oa),oa++):(Sa=Ot,Ms===0&&Yl(ml)));else kr=Ot;return kr}function ul(){var kr,Sa;if(kr=[],Xs.test(nn.charAt(oa))?(Sa=nn.charAt(oa),oa++):(Sa=Ot,Ms===0&&Yl(Ps)),Sa!==Ot)for(;Sa!==Ot;)kr.push(Sa),Xs.test(nn.charAt(oa))?(Sa=nn.charAt(oa),oa++):(Sa=Ot,Ms===0&&Yl(Ps));else kr=Ot;return kr}function Xo(){var kr,Sa,Hi,Co;if(kr=oa,Sa=oa,Hi=[],Co=el(),Co===Ot&&(Co=ul()),Co!==Ot)for(;Co!==Ot;)Hi.push(Co),Co=el(),Co===Ot&&(Co=ul());else Hi=Ot;return Hi!==Ot?Sa=nn.substring(Sa,oa):Sa=Hi,Sa!==Ot&&(sl=kr,Sa=dl(Sa)),kr=Sa,kr}function lo(){var kr,Sa,Hi;return kr=oa,nn.substr(oa,2)===xl?(Sa=xl,oa+=2):(Sa=Ot,Ms===0&&Yl(Wl)),Sa!==Ot?(Hi=Xo(),Hi!==Ot?(sl=kr,Sa=_l(Hi),kr=Sa):(oa=kr,kr=Ot)):(oa=kr,kr=Ot),kr===Ot&&(kr=oa,sl=oa,Sa=ql(),Sa?Sa=void 0:Sa=Ot,Sa!==Ot?(Hi=Af(),Hi!==Ot?(sl=kr,Sa=zn(Hi),kr=Sa):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)),kr}function Zs(){var kr,Sa,Hi,Co,Ds,Dl,Xc,Fl,Eu,cc,Hu,dc,iu;return kr=oa,nn.charCodeAt(oa)===123?(Sa=Li,oa++):(Sa=Ot,Ms===0&&Yl(zi)),Sa!==Ot?(Hi=ui(),Hi!==Ot?(Co=tl(),Co!==Ot?(Ds=ui(),Ds!==Ot?(nn.charCodeAt(oa)===44?(Dl=Dr,oa++):(Dl=Ot,Ms===0&&Yl(Hr)),Dl!==Ot?(Xc=ui(),Xc!==Ot?(nn.substr(oa,4)===Dc?(Fl=Dc,oa+=4):(Fl=Ot,Ms===0&&Yl(Jl)),Fl===Ot&&(nn.substr(oa,4)===oc?(Fl=oc,oa+=4):(Fl=Ot,Ms===0&&Yl(xu))),Fl!==Ot?(Eu=ui(),Eu!==Ot?(cc=oa,nn.charCodeAt(oa)===44?(Hu=Dr,oa++):(Hu=Ot,Ms===0&&Yl(Hr)),Hu!==Ot?(dc=ui(),dc!==Ot?(iu=lo(),iu!==Ot?(Hu=[Hu,dc,iu],cc=Hu):(oa=cc,cc=Ot)):(oa=cc,cc=Ot)):(oa=cc,cc=Ot),cc===Ot&&(cc=null),cc!==Ot?(Hu=ui(),Hu!==Ot?(nn.charCodeAt(oa)===125?(dc=Mo,oa++):(dc=Ot,Ms===0&&Yl(Za)),dc!==Ot?(sl=kr,Sa=Ci(Co,Fl,cc),kr=Sa):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot),kr}function Gs(){var kr;return kr=So(),kr===Ot&&(kr=Zs()),kr}function $s(){var kr,Sa,Hi,Co,Ds,Dl,Xc,Fl,Eu,cc,Hu,dc,iu,Gc,Jc,pf;if(kr=oa,nn.charCodeAt(oa)===123?(Sa=Li,oa++):(Sa=Ot,Ms===0&&Yl(zi)),Sa!==Ot)if(Hi=ui(),Hi!==Ot)if(Co=tl(),Co!==Ot)if(Ds=ui(),Ds!==Ot)if(nn.charCodeAt(oa)===44?(Dl=Dr,oa++):(Dl=Ot,Ms===0&&Yl(Hr)),Dl!==Ot)if(Xc=ui(),Xc!==Ot)if(nn.substr(oa,6)===yf?(Fl=yf,oa+=6):(Fl=Ot,Ms===0&&Yl(ku)),Fl===Ot&&(nn.substr(oa,13)===Zc?(Fl=Zc,oa+=13):(Fl=Ot,Ms===0&&Yl(Zu))),Fl!==Ot)if(Eu=ui(),Eu!==Ot)if(nn.charCodeAt(oa)===44?(cc=Dr,oa++):(cc=Ot,Ms===0&&Yl(Hr)),cc!==Ot)if(Hu=ui(),Hu!==Ot)if(dc=oa,nn.substr(oa,7)===Fc?(iu=Fc,oa+=7):(iu=Ot,Ms===0&&Yl(Hc)),iu!==Ot?(Gc=ui(),Gc!==Ot?(Jc=ho(),Jc!==Ot?(iu=[iu,Gc,Jc],dc=iu):(oa=dc,dc=Ot)):(oa=dc,dc=Ot)):(oa=dc,dc=Ot),dc===Ot&&(dc=null),dc!==Ot)if(iu=ui(),iu!==Ot){if(Gc=[],Jc=la(),Jc!==Ot)for(;Jc!==Ot;)Gc.push(Jc),Jc=la();else Gc=Ot;Gc!==Ot?(Jc=ui(),Jc!==Ot?(nn.charCodeAt(oa)===125?(pf=Mo,oa++):(pf=Ot,Ms===0&&Yl(Za)),pf!==Ot?(sl=kr,Sa=Vu(Co,Fl,dc,Gc),kr=Sa):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)}else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;return kr}function Qn(){var kr,Sa,Hi,Co,Ds,Dl,Xc,Fl,Eu,cc,Hu,dc,iu,Gc;if(kr=oa,nn.charCodeAt(oa)===123?(Sa=Li,oa++):(Sa=Ot,Ms===0&&Yl(zi)),Sa!==Ot)if(Hi=ui(),Hi!==Ot)if(Co=tl(),Co!==Ot)if(Ds=ui(),Ds!==Ot)if(nn.charCodeAt(oa)===44?(Dl=Dr,oa++):(Dl=Ot,Ms===0&&Yl(Hr)),Dl!==Ot)if(Xc=ui(),Xc!==Ot)if(nn.substr(oa,6)===ws?(Fl=ws,oa+=6):(Fl=Ot,Ms===0&&Yl(fc)),Fl!==Ot)if(Eu=ui(),Eu!==Ot)if(nn.charCodeAt(oa)===44?(cc=Dr,oa++):(cc=Ot,Ms===0&&Yl(Hr)),cc!==Ot)if(Hu=ui(),Hu!==Ot){if(dc=[],iu=Xr(),iu!==Ot)for(;iu!==Ot;)dc.push(iu),iu=Xr();else dc=Ot;dc!==Ot?(iu=ui(),iu!==Ot?(nn.charCodeAt(oa)===125?(Gc=Mo,oa++):(Gc=Ot,Ms===0&&Yl(Za)),Gc!==Ot?(sl=kr,Sa=Tc(Co,dc),kr=Sa):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)}else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;else oa=kr,kr=Ot;return kr}function dr(){var kr,Sa,Hi,Co;return kr=oa,Sa=oa,nn.charCodeAt(oa)===61?(Hi=jc,oa++):(Hi=Ot,Ms===0&&Yl(lu)),Hi!==Ot?(Co=ho(),Co!==Ot?(Hi=[Hi,Co],Sa=Hi):(oa=Sa,Sa=Ot)):(oa=Sa,Sa=Ot),Sa!==Ot?kr=nn.substring(kr,oa):kr=Sa,kr===Ot&&(kr=Us()),kr}function Xr(){var kr,Sa,Hi,Co,Ds,Dl,Xc,Fl;return kr=oa,Sa=ui(),Sa!==Ot?(Hi=Us(),Hi!==Ot?(Co=ui(),Co!==Ot?(nn.charCodeAt(oa)===123?(Ds=Li,oa++):(Ds=Ot,Ms===0&&Yl(zi)),Ds!==Ot?(sl=oa,Dl=hu(Hi),Dl?Dl=void 0:Dl=Ot,Dl!==Ot?(Xc=df(),Xc!==Ot?(nn.charCodeAt(oa)===125?(Fl=Mo,oa++):(Fl=Ot,Ms===0&&Yl(Za)),Fl!==Ot?(sl=kr,Sa=of(Hi,Xc),kr=Sa):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot),kr}function la(){var kr,Sa,Hi,Co,Ds,Dl,Xc,Fl;return kr=oa,Sa=ui(),Sa!==Ot?(Hi=dr(),Hi!==Ot?(Co=ui(),Co!==Ot?(nn.charCodeAt(oa)===123?(Ds=Li,oa++):(Ds=Ot,Ms===0&&Yl(zi)),Ds!==Ot?(sl=oa,Dl=uu(Hi),Dl?Dl=void 0:Dl=Ot,Dl!==Ot?(Xc=df(),Xc!==Ot?(nn.charCodeAt(oa)===125?(Fl=Mo,oa++):(Fl=Ot,Ms===0&&Yl(Za)),Fl!==Ot?(sl=kr,Sa=zu(Hi,Xc),kr=Sa):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)):(oa=kr,kr=Ot),kr}function Ra(){var kr,Sa;return Ms++,bf.test(nn.charAt(oa))?(kr=nn.charAt(oa),oa++):(kr=Ot,Ms===0&&Yl(Cu)),Ms--,kr===Ot&&(Sa=Ot,Ms===0&&Yl(cf)),kr}function _i(){var kr,Sa;return Ms++,Bu.test(nn.charAt(oa))?(kr=nn.charAt(oa),oa++):(kr=Ot,Ms===0&&Yl(Tf)),Ms--,kr===Ot&&(Sa=Ot,Ms===0&&Yl(rf)),kr}function ui(){var kr,Sa,Hi;for(Ms++,kr=oa,Sa=[],Hi=Ra();Hi!==Ot;)Sa.push(Hi),Hi=Ra();return Sa!==Ot?kr=nn.substring(kr,oa):kr=Sa,Ms--,kr===Ot&&(Sa=Ot,Ms===0&&Yl(ed)),kr}function ho(){var kr,Sa,Hi;return Ms++,kr=oa,nn.charCodeAt(oa)===45?(Sa=Pd,oa++):(Sa=Ot,Ms===0&&Yl(Nc)),Sa===Ot&&(Sa=null),Sa!==Ot?(Hi=Js(),Hi!==Ot?(sl=kr,Sa=eu(Sa,Hi),kr=Sa):(oa=kr,kr=Ot)):(oa=kr,kr=Ot),Ms--,kr===Ot&&(Sa=Ot,Ms===0&&Yl(Fd)),kr}function Oi(){var kr,Sa;return Ms++,nn.charCodeAt(oa)===39?(kr=da,oa++):(kr=Ot,Ms===0&&Yl(Da)),Ms--,kr===Ot&&(Sa=Ot,Ms===0&&Yl(If)),kr}function Fo(){var kr,Sa;return Ms++,kr=oa,nn.substr(oa,2)===Te?(Sa=Te,oa+=2):(Sa=Ot,Ms===0&&Yl(_t)),Sa!==Ot&&(sl=kr,Sa=Vn()),kr=Sa,Ms--,kr===Ot&&(Sa=Ot,Ms===0&&Yl($f)),kr}function as(){var kr,Sa,Hi,Co,Ds,Dl;if(kr=oa,nn.charCodeAt(oa)===39?(Sa=da,oa++):(Sa=Ot,Ms===0&&Yl(Da)),Sa!==Ot)if(Hi=Fr(),Hi!==Ot){for(Co=oa,Ds=[],nn.substr(oa,2)===Te?(Dl=Te,oa+=2):(Dl=Ot,Ms===0&&Yl(_t)),Dl===Ot&&(mi.test(nn.charAt(oa))?(Dl=nn.charAt(oa),oa++):(Dl=Ot,Ms===0&&Yl(Ho)));Dl!==Ot;)Ds.push(Dl),nn.substr(oa,2)===Te?(Dl=Te,oa+=2):(Dl=Ot,Ms===0&&Yl(_t)),Dl===Ot&&(mi.test(nn.charAt(oa))?(Dl=nn.charAt(oa),oa++):(Dl=Ot,Ms===0&&Yl(Ho)));Ds!==Ot?Co=nn.substring(Co,oa):Co=Ds,Co!==Ot?(nn.charCodeAt(oa)===39?(Ds=da,oa++):(Ds=Ot,Ms===0&&Yl(Da)),Ds===Ot&&(Ds=null),Ds!==Ot?(sl=kr,Sa=br(Hi,Co),kr=Sa):(oa=kr,kr=Ot)):(oa=kr,kr=Ot)}else oa=kr,kr=Ot;else oa=kr,kr=Ot;return kr}function Fs(){var kr,Sa,Hi,Co;return kr=oa,Sa=oa,nn.length>oa?(Hi=nn.charAt(oa),oa++):(Hi=Ot,Ms===0&&Yl(Bo)),Hi!==Ot?(sl=oa,Co=tn(Hi),Co?Co=void 0:Co=Ot,Co!==Ot?(Hi=[Hi,Co],Sa=Hi):(oa=Sa,Sa=Ot)):(oa=Sa,Sa=Ot),Sa===Ot&&(nn.charCodeAt(oa)===10?(Sa=Pt,oa++):(Sa=Ot,Ms===0&&Yl(on))),Sa!==Ot?kr=nn.substring(kr,oa):kr=Sa,kr}function Fr(){var kr,Sa,Hi,Co;return kr=oa,Sa=oa,nn.length>oa?(Hi=nn.charAt(oa),oa++):(Hi=Ot,Ms===0&&Yl(Bo)),Hi!==Ot?(sl=oa,Co=_n(Hi),Co?Co=void 0:Co=Ot,Co!==Ot?(Hi=[Hi,Co],Sa=Hi):(oa=Sa,Sa=Ot)):(oa=Sa,Sa=Ot),Sa!==Ot?kr=nn.substring(kr,oa):kr=Sa,kr}function tl(){var kr,Sa;return Ms++,kr=oa,Sa=Js(),Sa===Ot&&(Sa=Us()),Sa!==Ot?kr=nn.substring(kr,oa):kr=Sa,Ms--,kr===Ot&&(Sa=Ot,Ms===0&&Yl(ir)),kr}function Js(){var kr,Sa,Hi,Co,Ds;if(Ms++,kr=oa,nn.charCodeAt(oa)===48?(Sa=aa,oa++):(Sa=Ot,Ms===0&&Yl(oi)),Sa!==Ot&&(sl=kr,Sa=ni()),kr=Sa,kr===Ot){if(kr=oa,Sa=oa,yi.test(nn.charAt(oa))?(Hi=nn.charAt(oa),oa++):(Hi=Ot,Ms===0&&Yl(Zo)),Hi!==Ot){for(Co=[],is.test(nn.charAt(oa))?(Ds=nn.charAt(oa),oa++):(Ds=Ot,Ms===0&&Yl(mo));Ds!==Ot;)Co.push(Ds),is.test(nn.charAt(oa))?(Ds=nn.charAt(oa),oa++):(Ds=Ot,Ms===0&&Yl(mo));Co!==Ot?(Hi=[Hi,Co],Sa=Hi):(oa=Sa,Sa=Ot)}else oa=Sa,Sa=Ot;Sa!==Ot&&(sl=kr,Sa=Ml(Sa)),kr=Sa}return Ms--,kr===Ot&&(Sa=Ot,Ms===0&&Yl(xr)),kr}function Us(){var kr,Sa,Hi,Co,Ds;if(Ms++,kr=oa,Sa=[],Hi=oa,Co=oa,Ms++,Ds=Ra(),Ds===Ot&&(Ds=_i()),Ms--,Ds===Ot?Co=void 0:(oa=Co,Co=Ot),Co!==Ot?(nn.length>oa?(Ds=nn.charAt(oa),oa++):(Ds=Ot,Ms===0&&Yl(Bo)),Ds!==Ot?(Co=[Co,Ds],Hi=Co):(oa=Hi,Hi=Ot)):(oa=Hi,Hi=Ot),Hi!==Ot)for(;Hi!==Ot;)Sa.push(Hi),Hi=oa,Co=oa,Ms++,Ds=Ra(),Ds===Ot&&(Ds=_i()),Ms--,Ds===Ot?Co=void 0:(oa=Co,Co=Ot),Co!==Ot?(nn.length>oa?(Ds=nn.charAt(oa),oa++):(Ds=Ot,Ms===0&&Yl(Bo)),Ds!==Ot?(Co=[Co,Ds],Hi=Co):(oa=Hi,Hi=Ot)):(oa=Hi,Hi=Ot);else Sa=Ot;return Sa!==Ot?kr=nn.substring(kr,oa):kr=Sa,Ms--,kr===Ot&&(Sa=Ot,Ms===0&&Yl(yc)),kr}var os=["root"];function El(){return os.length>1}function Bs(){return os[os.length-1]==="plural"}function gc(){return sn&&sn.captureLocation?{location:Ff()}:{}}if(ff=Gr(),ff!==Ot&&oa===nn.length)return ff;throw ff!==Ot&&oa<nn.length&&Yl(Gd()),tp(Rf,bc<nn.length?nn.charAt(bc):null,bc<nn.length?$c(bc,bc+1):$c(bc,bc))}var ve=ce,fe=function(){for(var nn=0,sn=0,Ot=arguments.length;sn<Ot;sn++)nn+=arguments[sn].length;for(var gr=Array(nn),Gr=0,sn=0;sn<Ot;sn++)for(var Ln=arguments[sn],Tr=0,Dn=Ln.length;Tr<Dn;Tr++,Gr++)gr[Gr]=Ln[Tr];return gr},we=/(^|[^\\])#/g;function me(nn){nn.forEach(function(sn){!G(sn)&&!$(sn)||Object.keys(sn.options).forEach(function(Ot){for(var gr,Gr=sn.options[Ot],Ln=-1,Tr=void 0,Dn=0;Dn<Gr.value.length;Dn++){var Pr=Gr.value[Dn];if(Z(Pr)&&we.test(Pr.value)){Ln=Dn,Tr=Pr;break}}if(Tr){var fa=Tr.value.replace(we,"$1{"+sn.value+", number}"),ka=ve(fa);(gr=Gr.value).splice.apply(gr,fe([Ln,1],ka))}me(Gr.value)})})}function Pe(nn,sn){var Ot=ve(nn,sn);return(!sn||sn.normalizeHashtagInPlural!==!1)&&me(Ot),Ot}var pe=function(){for(var nn=0,sn=0,Ot=arguments.length;sn<Ot;sn++)nn+=arguments[sn].length;for(var gr=Array(nn),Gr=0,sn=0;sn<Ot;sn++)for(var Ln=arguments[sn],Tr=0,Dn=Ln.length;Tr<Dn;Tr++,Gr++)gr[Gr]=Ln[Tr];return gr};function Ie(nn){return JSON.stringify(nn.map(function(sn){return sn&&typeof sn=="object"?Je(sn):sn}))}function Je(nn){return Object.keys(nn).sort().map(function(sn){var Ot;return Ot={},Ot[sn]=nn[sn],Ot})}var ke=function(sn,Ot){return Ot===void 0&&(Ot={}),function(){for(var gr,Gr=[],Ln=0;Ln<arguments.length;Ln++)Gr[Ln]=arguments[Ln];var Tr=Ie(Gr),Dn=Tr&&Ot[Tr];return Dn||(Dn=new((gr=sn).bind.apply(gr,pe([void 0],Gr))),Tr&&(Ot[Tr]=Dn)),Dn}},De=ke,Fe=function(){return Fe=Object.assign||function(nn){for(var sn,Ot=1,gr=arguments.length;Ot<gr;Ot++){sn=arguments[Ot];for(var Gr in sn)Object.prototype.hasOwnProperty.call(sn,Gr)&&(nn[Gr]=sn[Gr])}return nn},Fe.apply(this,arguments)},Qe=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function qe(nn){var sn={};return nn.replace(Qe,function(Ot){var gr=Ot.length;switch(Ot[0]){case"G":sn.era=gr===4?"long":gr===5?"narrow":"short";break;case"y":sn.year=gr===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":sn.month=["numeric","2-digit","short","long","narrow"][gr-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":sn.day=["numeric","2-digit"][gr-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":sn.weekday=gr===4?"short":gr===5?"narrow":"short";break;case"e":if(gr<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");sn.weekday=["short","long","narrow","short"][gr-4];break;case"c":if(gr<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");sn.weekday=["short","long","narrow","short"][gr-4];break;case"a":sn.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":sn.hourCycle="h12",sn.hour=["numeric","2-digit"][gr-1];break;case"H":sn.hourCycle="h23",sn.hour=["numeric","2-digit"][gr-1];break;case"K":sn.hourCycle="h11",sn.hour=["numeric","2-digit"][gr-1];break;case"k":sn.hourCycle="h24",sn.hour=["numeric","2-digit"][gr-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":sn.minute=["numeric","2-digit"][gr-1];break;case"s":sn.second=["numeric","2-digit"][gr-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":sn.timeZoneName=gr<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""}),sn}function et(nn){return nn.replace(/^(.*?)-/,"")}var dt=/^\.(?:(0+)(\+|#+)?)?$/g,Ke=/^(@+)?(\+|#+)?$/g;function Ge(nn){var sn={};return nn.replace(Ke,function(Ot,gr,Gr){return typeof Gr!="string"?(sn.minimumSignificantDigits=gr.length,sn.maximumSignificantDigits=gr.length):Gr==="+"?sn.minimumSignificantDigits=gr.length:gr[0]==="#"?sn.maximumSignificantDigits=gr.length:(sn.minimumSignificantDigits=gr.length,sn.maximumSignificantDigits=gr.length+(typeof Gr=="string"?Gr.length:0)),""}),sn}function wt(nn){switch(nn){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function Vt(nn){var sn={},Ot=wt(nn);return Ot||sn}function gt(nn){for(var sn={},Ot=0,gr=nn;Ot<gr.length;Ot++){var Gr=gr[Ot];switch(Gr.stem){case"percent":sn.style="percent";continue;case"currency":sn.style="currency",sn.currency=Gr.options[0];continue;case"group-off":sn.useGrouping=!1;continue;case"precision-integer":sn.maximumFractionDigits=0;continue;case"measure-unit":sn.style="unit",sn.unit=et(Gr.options[0]);continue;case"compact-short":sn.notation="compact",sn.compactDisplay="short";continue;case"compact-long":sn.notation="compact",sn.compactDisplay="long";continue;case"scientific":sn=Fe(Fe(Fe({},sn),{notation:"scientific"}),Gr.options.reduce(function(Tr,Dn){return Fe(Fe({},Tr),Vt(Dn))},{}));continue;case"engineering":sn=Fe(Fe(Fe({},sn),{notation:"engineering"}),Gr.options.reduce(function(Tr,Dn){return Fe(Fe({},Tr),Vt(Dn))},{}));continue;case"notation-simple":sn.notation="standard";continue;case"unit-width-narrow":sn.currencyDisplay="narrowSymbol",sn.unitDisplay="narrow";continue;case"unit-width-short":sn.currencyDisplay="code",sn.unitDisplay="short";continue;case"unit-width-full-name":sn.currencyDisplay="name",sn.unitDisplay="long";continue;case"unit-width-iso-code":sn.currencyDisplay="symbol";continue}if(dt.test(Gr.stem)){if(Gr.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");Gr.stem.replace(dt,function(Tr,Dn,Pr){return Tr==="."?sn.maximumFractionDigits=0:Pr==="+"?sn.minimumFractionDigits=Pr.length:Dn[0]==="#"?sn.maximumFractionDigits=Dn.length:(sn.minimumFractionDigits=Dn.length,sn.maximumFractionDigits=Dn.length+(typeof Pr=="string"?Pr.length:0)),""}),Gr.options.length&&(sn=Fe(Fe({},sn),Ge(Gr.options[0])));continue}if(Ke.test(Gr.stem)){sn=Fe(Fe({},sn),Ge(Gr.stem));continue}var Ln=wt(Gr.stem);Ln&&(sn=Fe(Fe({},sn),Ln))}return sn}var it=function(){var nn=function(Ot,gr){return nn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Gr,Ln){Gr.__proto__=Ln}||function(Gr,Ln){for(var Tr in Ln)Ln.hasOwnProperty(Tr)&&(Gr[Tr]=Ln[Tr])},nn(Ot,gr)};return function(sn,Ot){nn(sn,Ot);function gr(){this.constructor=sn}sn.prototype=Ot===null?Object.create(Ot):(gr.prototype=Ot.prototype,new gr)}}(),Le=function(){for(var nn=0,sn=0,Ot=arguments.length;sn<Ot;sn++)nn+=arguments[sn].length;for(var gr=Array(nn),Gr=0,sn=0;sn<Ot;sn++)for(var Ln=arguments[sn],Tr=0,Dn=Ln.length;Tr<Dn;Tr++,Gr++)gr[Gr]=Ln[Tr];return gr},ct=function(nn){it(sn,nn);function sn(Ot,gr){var Gr=nn.call(this,Ot)||this;return Gr.variableId=gr,Gr}return sn}(Error);function at(nn){return nn.length<2?nn:nn.reduce(function(sn,Ot){var gr=sn[sn.length-1];return!gr||gr.type!==0||Ot.type!==0?sn.push(Ot):gr.value+=Ot.value,sn},[])}function jt(nn,sn,Ot,gr,Gr,Ln,Tr){if(nn.length===1&&Z(nn[0]))return[{type:0,value:nn[0].value}];for(var Dn=[],Pr=0,fa=nn;Pr<fa.length;Pr++){var ka=fa[Pr];if(Z(ka)){Dn.push({type:0,value:ka.value});continue}if(z(ka)){typeof Ln=="number"&&Dn.push({type:0,value:Ot.getNumberFormat(sn).format(Ln)});continue}var Li=ka.value;if(!(Gr&&Li in Gr))throw new ct('The intl string context variable "'+Li+'" was not provided to the string "'+Tr+'"');var zi=Gr[Li];if(W(ka)){(!zi||typeof zi=="string"||typeof zi=="number")&&(zi=typeof zi=="string"||typeof zi=="number"?String(zi):""),Dn.push({type:1,value:zi});continue}if(L(ka)){var Mo=typeof ka.style=="string"?gr.date[ka.style]:void 0;Dn.push({type:0,value:Ot.getDateTimeFormat(sn,Mo).format(zi)});continue}if(V(ka)){var Mo=typeof ka.style=="string"?gr.time[ka.style]:re(ka.style)?qe(ka.style.pattern):void 0;Dn.push({type:0,value:Ot.getDateTimeFormat(sn,Mo).format(zi)});continue}if(U(ka)){var Mo=typeof ka.style=="string"?gr.number[ka.style]:K(ka.style)?gt(ka.style.tokens):void 0;Dn.push({type:0,value:Ot.getNumberFormat(sn,Mo).format(zi)});continue}if($(ka)){var Za=ka.options[zi]||ka.options.other;if(!Za)throw new RangeError('Invalid values for "'+ka.value+'": "'+zi+'". Options are "'+Object.keys(ka.options).join('", "')+'"');Dn.push.apply(Dn,jt(Za.value,sn,Ot,gr,Gr));continue}if(G(ka)){var Za=ka.options["="+zi];if(!Za){if(!Intl.PluralRules)throw new ct(`Intl.PluralRules is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-pluralrules"
|
||
`);var ao=Ot.getPluralRules(sn,{type:ka.pluralType}).select(zi-(ka.offset||0));Za=ka.options[ao]||ka.options.other}if(!Za)throw new RangeError('Invalid values for "'+ka.value+'": "'+zi+'". Options are "'+Object.keys(ka.options).join('", "')+'"');Dn.push.apply(Dn,jt(Za.value,sn,Ot,gr,Gr,zi-(ka.offset||0)));continue}}return at(Dn)}function St(nn,sn,Ot,gr,Gr,Ln){var Tr=jt(nn,sn,Ot,gr,Gr,void 0,Ln);return Tr.length===1?Tr[0].value:Tr.reduce(function(Dn,Pr){return Dn+=Pr.value},"")}var fn,Xt="@@",Yt=/@@(\d+_\d+)@@/g,Rt=0;function Lt(){return Date.now()+"_"+ ++Rt}function ze(nn,sn){return nn.split(Yt).filter(Boolean).map(function(Ot){return sn[Ot]!=null?sn[Ot]:Ot}).reduce(function(Ot,gr){return Ot.length&&typeof gr=="string"&&typeof Ot[Ot.length-1]=="string"?Ot[Ot.length-1]+=gr:Ot.push(gr),Ot},[])}var rt=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,tt=Date.now()+"@@",de=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function ot(nn,sn,Ot){var gr=nn.tagName,Gr=nn.outerHTML,Ln=nn.textContent,Tr=nn.childNodes;if(!gr)return ze(Ln||"",sn);gr=gr.toLowerCase();var Dn=~de.indexOf(gr),Pr=Ot[gr];if(Pr&&Dn)throw new ct(gr+" is a self-closing tag and can not be used, please use another tag name.");if(!Tr.length)return[Gr];var fa=Array.prototype.slice.call(Tr).reduce(function(ka,Li){return ka.concat(ot(Li,sn,Ot))},[]);return Pr?typeof Pr=="function"?[Pr.apply(void 0,fa)]:[Pr]:Le(["<"+gr+">"],fa,["</"+gr+">"])}function Et(nn,sn,Ot,gr,Gr,Ln){var Tr=jt(nn,sn,Ot,gr,Gr,void 0,Ln),Dn={},Pr=Tr.reduce(function(zi,Mo){if(Mo.type===0)return zi+=Mo.value;var Za=Lt();return Dn[Za]=Mo.value,zi+=""+Xt+Za+Xt},"");if(!rt.test(Pr))return ze(Pr,Dn);if(!Gr)throw new ct("Message has placeholders but no values was given");if(typeof DOMParser=="undefined")throw new ct("Cannot format XML message without DOMParser");fn||(fn=new DOMParser);var fa=fn.parseFromString('<formatted-message id="'+tt+'">'+Pr+"</formatted-message>","text/html").getElementById(tt);if(!fa)throw new ct("Malformed HTML message "+Pr);var ka=Object.keys(Gr).filter(function(zi){return!!fa.getElementsByTagName(zi).length});if(!ka.length)return ze(Pr,Dn);var Li=ka.filter(function(zi){return zi!==zi.toLowerCase()});if(Li.length)throw new ct("HTML tag must be lowercased but the following tags are not: "+Li.join(", "));return Array.prototype.slice.call(fa.childNodes).reduce(function(zi,Mo){return zi.concat(ot(Mo,Dn,Gr))},[])}var Ht=function(){return Ht=Object.assign||function(nn){for(var sn,Ot=1,gr=arguments.length;Ot<gr;Ot++){sn=arguments[Ot];for(var Gr in sn)Object.prototype.hasOwnProperty.call(sn,Gr)&&(nn[Gr]=sn[Gr])}return nn},Ht.apply(this,arguments)};function Jt(nn,sn){return sn?Ht(Ht(Ht({},nn||{}),sn||{}),Object.keys(nn).reduce(function(Ot,gr){return Ot[gr]=Ht(Ht({},nn[gr]),sn[gr]||{}),Ot},{})):nn}function Qt(nn,sn){return sn?Object.keys(nn).reduce(function(Ot,gr){return Ot[gr]=Jt(nn[gr],sn[gr]),Ot},Ht({},nn)):nn}function an(nn){return nn===void 0&&(nn={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:De(Intl.NumberFormat,nn.number),getDateTimeFormat:De(Intl.DateTimeFormat,nn.dateTime),getPluralRules:De(Intl.PluralRules,nn.pluralRules)}}var Un=function(){function nn(sn,Ot,gr,Gr){var Ln=this;if(Ot===void 0&&(Ot=nn.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(Tr){return St(Ln.ast,Ln.locales,Ln.formatters,Ln.formats,Tr,Ln.message)},this.formatToParts=function(Tr){return jt(Ln.ast,Ln.locales,Ln.formatters,Ln.formats,Tr,void 0,Ln.message)},this.formatHTMLMessage=function(Tr){return Et(Ln.ast,Ln.locales,Ln.formatters,Ln.formats,Tr,Ln.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(Ln.locales)[0]}},this.getAst=function(){return Ln.ast},typeof sn=="string"){if(this.message=sn,!nn.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=nn.__parse(sn,{normalizeHashtagInPlural:!1})}else this.ast=sn;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Qt(nn.formats,gr),this.locales=Ot,this.formatters=Gr&&Gr.formatters||an(this.formatterCache)}return nn.defaultLocale=new Intl.NumberFormat().resolvedOptions().locale,nn.__parse=Pe,nn.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},nn}(),qt=Un,rn=qt;function cn(nn,sn,Ot){if(Ot===void 0&&(Ot=Error),!nn)throw new Ot(sn)}var er={38:"&",62:">",60:"<",34:""",39:"'"},rr=/[&><"']/g;function nt(nn){return(""+nn).replace(rr,function(sn){return er[sn.charCodeAt(0)]})}function lr(nn,sn){var Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return sn.reduce(function(gr,Gr){return Gr in nn?gr[Gr]=nn[Gr]:Gr in Ot&&(gr[Gr]=Ot[Gr]),gr},{})}function Hn(nn){cn(nn,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function ut(nn,sn){var Ot=sn?`
|
||
`.concat(sn.stack):"";return"[React Intl] ".concat(nn).concat(Ot)}function bt(nn){}var We={formats:{},messages:{},timeZone:void 0,textComponent:w.Fragment,defaultLocale:"en",defaultFormats:{},onError:bt};function be(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ae(){var nn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:be(),sn=Intl.RelativeTimeFormat,Ot=Intl.ListFormat,gr=Intl.DisplayNames;return{getDateTimeFormat:De(Intl.DateTimeFormat,nn.dateTime),getNumberFormat:De(Intl.NumberFormat,nn.number),getMessageFormat:De(rn,nn.message),getRelativeTimeFormat:De(sn,nn.relativeTime),getPluralRules:De(Intl.PluralRules,nn.pluralRules),getListFormat:De(Ot,nn.list),getDisplayNames:De(gr,nn.displayNames)}}function Ue(nn,sn,Ot,gr){var Gr=nn&&nn[sn],Ln;if(Gr&&(Ln=Gr[Ot]),Ln)return Ln;gr(ut("No ".concat(sn," format named: ").concat(Ot)))}var $e=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function kt(nn,sn){var Ot=nn.locale,gr=nn.formats,Gr=nn.onError,Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Tr=Ln.format,Dn=Tr&&Ue(gr,"number",Tr,Gr)||{},Pr=lr(Ln,$e,Dn);return sn(Ot,Pr)}function lt(nn,sn,Ot){var gr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{return kt(nn,sn,gr).format(Ot)}catch(Gr){nn.onError(ut("Error formatting number.",Gr))}return String(Ot)}function vt(nn,sn,Ot){var gr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{return kt(nn,sn,gr).formatToParts(Ot)}catch(Gr){nn.onError(ut("Error formatting number.",Gr))}return[]}var Ct=["numeric","style"];function Bt(nn,sn){var Ot=nn.locale,gr=nn.formats,Gr=nn.onError,Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Tr=Ln.format,Dn=!!Tr&&Ue(gr,"relative",Tr,Gr)||{},Pr=lr(Ln,Ct,Dn);return sn(Ot,Pr)}function mt(nn,sn,Ot,gr){var Gr=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};gr||(gr="second");var Ln=Intl.RelativeTimeFormat;Ln||nn.onError(ut(`Intl.RelativeTimeFormat is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
||
`));try{return Bt(nn,sn,Gr).format(Ot,gr)}catch(Tr){nn.onError(ut("Error formatting relative time.",Tr))}return String(Ot)}var Zt=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function zt(nn,sn,Ot){var gr=nn.locale,Gr=nn.formats,Ln=nn.onError,Tr=nn.timeZone,Dn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Pr=Dn.format,fa=Object.assign(Object.assign({},Tr&&{timeZone:Tr}),Pr&&Ue(Gr,sn,Pr,Ln)),ka=lr(Dn,Zt,fa);return sn==="time"&&!ka.hour&&!ka.minute&&!ka.second&&(ka=Object.assign(Object.assign({},ka),{hour:"numeric",minute:"numeric"})),Ot(gr,ka)}function ln(nn,sn,Ot){var gr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Gr=typeof Ot=="string"?new Date(Ot||0):Ot;try{return zt(nn,"date",sn,gr).format(Gr)}catch(Ln){nn.onError(ut("Error formatting date.",Ln))}return String(Gr)}function An(nn,sn,Ot){var gr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Gr=typeof Ot=="string"?new Date(Ot||0):Ot;try{return zt(nn,"time",sn,gr).format(Gr)}catch(Ln){nn.onError(ut("Error formatting time.",Ln))}return String(Gr)}function En(nn,sn,Ot){var gr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Gr=typeof Ot=="string"?new Date(Ot||0):Ot;try{return zt(nn,"date",sn,gr).formatToParts(Gr)}catch(Ln){nn.onError(ut("Error formatting date.",Ln))}return[]}function Gn(nn,sn,Ot){var gr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Gr=typeof Ot=="string"?new Date(Ot||0):Ot;try{return zt(nn,"time",sn,gr).formatToParts(Gr)}catch(Ln){nn.onError(ut("Error formatting time.",Ln))}return[]}var Bn=["localeMatcher","type"];function pr(nn,sn,Ot){var gr=nn.locale,Gr=nn.onError,Ln=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};Intl.PluralRules||Gr(ut(`Intl.PluralRules is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-pluralrules"
|
||
`));var Tr=lr(Ln,Bn);try{return sn(gr,Tr).select(Ot)}catch(Dn){Gr(ut("Error formatting plural.",Dn))}return"other"}var _r=o(86582);function na(nn,sn){return Object.keys(nn).reduce(function(Ot,gr){return Ot[gr]=Object.assign({timeZone:sn},nn[gr]),Ot},{})}function $n(nn,sn){var Ot=Object.keys(Object.assign(Object.assign({},nn),sn));return Ot.reduce(function(gr,Gr){return gr[Gr]=Object.assign(Object.assign({},nn[Gr]||{}),sn[Gr]||{}),gr},{})}function qr(nn,sn){if(!sn)return nn;var Ot=rn.formats;return Object.assign(Object.assign(Object.assign({},Ot),nn),{date:$n(na(Ot.date,sn),na(nn.date||{},sn)),time:$n(na(Ot.time,sn),na(nn.time||{},sn))})}var Jr=function(sn){return w.createElement.apply(m,[w.Fragment,null].concat((0,_r.Z)(sn)))};function Aa(nn,sn){var Ot=nn.locale,gr=nn.formats,Gr=nn.messages,Ln=nn.defaultLocale,Tr=nn.defaultFormats,Dn=nn.onError,Pr=nn.timeZone,fa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{id:""},ka=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Li=fa.id,zi=fa.defaultMessage;cn(!!Li,"[React Intl] An `id` must be provided to format a message.");var Mo=Gr&&Gr[String(Li)];gr=qr(gr,Pr),Tr=qr(Tr,Pr);var Za=[];if(Mo)try{var ao=sn.getMessageFormat(Mo,Ot,gr,{formatters:sn});Za=ao.formatHTMLMessage(ka)}catch(Eo){Dn(ut('Error formatting message: "'.concat(Li,'" for locale: "').concat(Ot,'"')+(zi?", using default message as fallback.":""),Eo))}else(!zi||Ot&&Ot.toLowerCase()!==Ln.toLowerCase())&&Dn(ut('Missing message: "'.concat(Li,'" for locale: "').concat(Ot,'"')+(zi?", using default message as fallback.":"")));if(!Za.length&&zi)try{var Mi=sn.getMessageFormat(zi,Ln,Tr);Za=Mi.formatHTMLMessage(ka)}catch(Eo){Dn(ut('Error formatting the default message for: "'.concat(Li,'"'),Eo))}return Za.length?Za.length===1&&typeof Za[0]=="string"?Za[0]||zi||String(Li):Jr(Za):(Dn(ut('Cannot format message: "'.concat(Li,'", ')+"using message ".concat(Mo||zi?"source":"id"," as fallback."))),typeof Mo=="string"?Mo||zi||String(Li):zi||String(Li))}function ya(nn,sn){var Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{id:""},gr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Gr=Object.keys(gr).reduce(function(Ln,Tr){var Dn=gr[Tr];return Ln[Tr]=typeof Dn=="string"?nt(Dn):Dn,Ln},{});return Aa(nn,sn,Ot,Gr)}var $t=o(6411),wn=o.n($t),Fn=["localeMatcher","type","style"],Or=Date.now();function vr(nn){return"".concat(Or,"_").concat(nn,"_").concat(Or)}function Ur(nn,sn,Ot){var gr=nn.locale,Gr=nn.onError,Ln=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Tr=Intl.ListFormat;Tr||Gr(ut(`Intl.ListFormat is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-listformat"
|
||
`));var Dn=lr(Ln,Fn);try{var Pr={},fa=Ot.map(function(Li,zi){if(typeof Li=="object"){var Mo=vr(zi);return Pr[Mo]=Li,Mo}return String(Li)});if(!Object.keys(Pr).length)return sn(gr,Dn).format(fa);var ka=sn(gr,Dn).formatToParts(fa);return ka.reduce(function(Li,zi){var Mo=zi.value;return Pr[Mo]?Li.push(Pr[Mo]):typeof Li[Li.length-1]=="string"?Li[Li.length-1]+=Mo:Li.push(Mo),Li},[])}catch(Li){Gr(ut("Error formatting list.",Li))}return Ot}var Zr=["localeMatcher","style","type","fallback"];function Kr(nn,sn,Ot){var gr=nn.locale,Gr=nn.onError,Ln=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Tr=Intl.DisplayNames;Tr||Gr(ut(`Intl.DisplayNames is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-displaynames"
|
||
`));var Dn=lr(Ln,Zr);try{return sn(gr,Dn).of(Ot)}catch(Pr){Gr(ut("Error formatting display name.",Pr))}}var ba=wn()||$t;function Ri(nn){return{locale:nn.locale,timeZone:nn.timeZone,formats:nn.formats,textComponent:nn.textComponent,messages:nn.messages,defaultLocale:nn.defaultLocale,defaultFormats:nn.defaultFormats,onError:nn.onError}}function Ea(nn,sn){var Ot=Ae(sn),gr=Object.assign(Object.assign({},We),nn),Gr=gr.locale,Ln=gr.defaultLocale,Tr=gr.onError;return Gr?!Intl.NumberFormat.supportedLocalesOf(Gr).length&&Tr?Tr(ut('Missing locale data for locale: "'.concat(Gr,'" in Intl.NumberFormat. Using default locale: "').concat(Ln,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(Gr).length&&Tr&&Tr(ut('Missing locale data for locale: "'.concat(Gr,'" in Intl.DateTimeFormat. Using default locale: "').concat(Ln,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):(Tr&&Tr(ut('"locale" was not configured, using "'.concat(Ln,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details'))),gr.locale=gr.defaultLocale||"en"),Object.assign(Object.assign({},gr),{formatters:Ot,formatNumber:lt.bind(null,gr,Ot.getNumberFormat),formatNumberToParts:vt.bind(null,gr,Ot.getNumberFormat),formatRelativeTime:mt.bind(null,gr,Ot.getRelativeTimeFormat),formatDate:ln.bind(null,gr,Ot.getDateTimeFormat),formatDateToParts:En.bind(null,gr,Ot.getDateTimeFormat),formatTime:An.bind(null,gr,Ot.getDateTimeFormat),formatTimeToParts:Gn.bind(null,gr,Ot.getDateTimeFormat),formatPlural:pr.bind(null,gr,Ot.getPluralRules),formatMessage:Aa.bind(null,gr,Ot),formatHTMLMessage:ya.bind(null,gr,Ot),formatList:Ur.bind(null,gr,Ot.getListFormat),formatDisplayName:Kr.bind(null,gr,Ot.getDisplayNames)})}var Pi=function(nn){(0,y.Z)(Ot,nn);var sn=(0,M.Z)(Ot);function Ot(){var gr;return(0,g.Z)(this,Ot),gr=sn.apply(this,arguments),gr.cache=be(),gr.state={cache:gr.cache,intl:Ea(Ri(gr.props),gr.cache),prevConfig:Ri(gr.props)},gr}return(0,A.Z)(Ot,[{key:"render",value:function(){return Hn(this.state.intl),w.createElement(k,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(Gr,Ln){var Tr=Ln.prevConfig,Dn=Ln.cache,Pr=Ri(Gr);return ba(Tr,Pr)?null:{intl:Ea(Pr,Dn),prevConfig:Pr}}}]),Ot}(w.PureComponent);Pi.displayName="IntlProvider",Pi.defaultProps=We;var rs=o(85560),Ui=o(64353),Cn=o(14878),Kn=o.n(Cn),Pn=o(72255);function At(){var nn=(0,w.useContext)(O);return Hn(nn),nn}var ar=o(9364),ta={"component.tagSelect.expand":"\u5C55\u5F00","component.tagSelect.collapse":"\u6536\u8D77","component.tagSelect.all":"\u5168\u90E8"},Yn={"component.globalHeader.search":"\u7AD9\u5185\u641C\u7D22","component.globalHeader.search.example1":"\u641C\u7D22\u63D0\u793A\u4E00","component.globalHeader.search.example2":"\u641C\u7D22\u63D0\u793A\u4E8C","component.globalHeader.search.example3":"\u641C\u7D22\u63D0\u793A\u4E09","component.globalHeader.help":"\u4F7F\u7528\u6587\u6863","component.globalHeader.notification":"\u901A\u77E5","component.globalHeader.notification.empty":"\u4F60\u5DF2\u67E5\u770B\u6240\u6709\u901A\u77E5","component.globalHeader.message":"\u6D88\u606F","component.globalHeader.message.empty":"\u60A8\u5DF2\u8BFB\u5B8C\u6240\u6709\u6D88\u606F","component.globalHeader.event":"\u5F85\u529E","component.globalHeader.event.empty":"\u4F60\u5DF2\u5B8C\u6210\u6240\u6709\u5F85\u529E","component.noticeIcon.clear":"\u6E05\u7A7A","component.noticeIcon.cleared":"\u6E05\u7A7A\u4E86","component.noticeIcon.empty":"\u6682\u65E0\u6570\u636E","component.noticeIcon.view-more":"\u67E5\u770B\u66F4\u591A"},Qa={"menu.welcome":"\u6B22\u8FCE","menu.result":"\u7ED3\u679C\u9875","menu.result.success":"\u6210\u529F\u9875","menu.result.fail":"\u5931\u8D25\u9875","menu.exception":"\u5F02\u5E38\u9875","menu.exception.not-permission":"403","menu.exception.not-find":"404","menu.exception.server-error":"500","menu.semanticModel":"\u6A21\u578B\u7BA1\u7406","menu.metric":"\u6307\u6807\u5E02\u573A","menu.chatSetting":"\u95EE\u7B54\u8BBE\u7F6E","menu.chatPlugin":"\u95EE\u7B54\u63D2\u4EF6","menu.login":"\u767B\u5F55","menu.chat":"\u95EE\u7B54\u5BF9\u8BDD","menu.agent":"\u95EE\u7B54\u52A9\u7406"},Ua={"app.pwa.offline":"\u5F53\u524D\u5904\u4E8E\u79BB\u7EBF\u72B6\u6001","app.pwa.serviceworker.updated":"\u6709\u65B0\u5185\u5BB9","app.pwa.serviceworker.updated.hint":"\u8BF7\u70B9\u51FB\u201C\u5237\u65B0\u201D\u6309\u94AE\u6216\u8005\u624B\u52A8\u5237\u65B0\u9875\u9762","app.pwa.serviceworker.updated.ok":"\u5237\u65B0"},Fi={"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.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.sidemenu":"\u4FA7\u8FB9\u83DC\u5355\u5E03\u5C40","app.setting.topmenu":"\u9876\u90E8\u83DC\u5355\u5E03\u5C40","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.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"},Xa={"app.settings.menuMap.basic":"\u57FA\u672C\u8BBE\u7F6E","app.settings.menuMap.security":"\u5B89\u5168\u8BBE\u7F6E","app.settings.menuMap.binding":"\u8D26\u53F7\u7ED1\u5B9A","app.settings.menuMap.notification":"\u65B0\u6D88\u606F\u901A\u77E5","app.settings.basic.avatar":"\u5934\u50CF","app.settings.basic.change-avatar":"\u66F4\u6362\u5934\u50CF","app.settings.basic.email":"\u90AE\u7BB1","app.settings.basic.email-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u90AE\u7BB1!","app.settings.basic.nickname":"\u6635\u79F0","app.settings.basic.nickname-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u6635\u79F0!","app.settings.basic.profile":"\u4E2A\u4EBA\u7B80\u4ECB","app.settings.basic.profile-message":"\u8BF7\u8F93\u5165\u4E2A\u4EBA\u7B80\u4ECB!","app.settings.basic.profile-placeholder":"\u4E2A\u4EBA\u7B80\u4ECB","app.settings.basic.country":"\u56FD\u5BB6/\u5730\u533A","app.settings.basic.country-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u56FD\u5BB6\u6216\u5730\u533A!","app.settings.basic.geographic":"\u6240\u5728\u7701\u5E02","app.settings.basic.geographic-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u6240\u5728\u7701\u5E02!","app.settings.basic.address":"\u8857\u9053\u5730\u5740","app.settings.basic.address-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u8857\u9053\u5730\u5740!","app.settings.basic.phone":"\u8054\u7CFB\u7535\u8BDD","app.settings.basic.phone-message":"\u8BF7\u8F93\u5165\u60A8\u7684\u8054\u7CFB\u7535\u8BDD!","app.settings.basic.update":"\u66F4\u65B0\u57FA\u672C\u4FE1\u606F","app.settings.security.strong":"\u5F3A","app.settings.security.medium":"\u4E2D","app.settings.security.weak":"\u5F31","app.settings.security.password":"\u8D26\u6237\u5BC6\u7801","app.settings.security.password-description":"\u5F53\u524D\u5BC6\u7801\u5F3A\u5EA6","app.settings.security.phone":"\u5BC6\u4FDD\u624B\u673A","app.settings.security.phone-description":"\u5DF2\u7ED1\u5B9A\u624B\u673A","app.settings.security.question":"\u5BC6\u4FDD\u95EE\u9898","app.settings.security.question-description":"\u672A\u8BBE\u7F6E\u5BC6\u4FDD\u95EE\u9898\uFF0C\u5BC6\u4FDD\u95EE\u9898\u53EF\u6709\u6548\u4FDD\u62A4\u8D26\u6237\u5B89\u5168","app.settings.security.email":"\u5907\u7528\u90AE\u7BB1","app.settings.security.email-description":"\u5DF2\u7ED1\u5B9A\u90AE\u7BB1","app.settings.security.mfa":"MFA \u8BBE\u5907","app.settings.security.mfa-description":"\u672A\u7ED1\u5B9A MFA \u8BBE\u5907\uFF0C\u7ED1\u5B9A\u540E\uFF0C\u53EF\u4EE5\u8FDB\u884C\u4E8C\u6B21\u786E\u8BA4","app.settings.security.modify":"\u4FEE\u6539","app.settings.security.set":"\u8BBE\u7F6E","app.settings.security.bind":"\u7ED1\u5B9A","app.settings.binding.taobao":"\u7ED1\u5B9A\u6DD8\u5B9D","app.settings.binding.taobao-description":"\u5F53\u524D\u672A\u7ED1\u5B9A\u6DD8\u5B9D\u8D26\u53F7","app.settings.binding.alipay":"\u7ED1\u5B9A\u652F\u4ED8\u5B9D","app.settings.binding.alipay-description":"\u5F53\u524D\u672A\u7ED1\u5B9A\u652F\u4ED8\u5B9D\u8D26\u53F7","app.settings.binding.dingding":"\u7ED1\u5B9A\u9489\u9489","app.settings.binding.dingding-description":"\u5F53\u524D\u672A\u7ED1\u5B9A\u9489\u9489\u8D26\u53F7","app.settings.binding.bind":"\u7ED1\u5B9A","app.settings.notification.password":"\u8D26\u6237\u5BC6\u7801","app.settings.notification.password-description":"\u5176\u4ED6\u7528\u6237\u7684\u6D88\u606F\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5","app.settings.notification.messages":"\u7CFB\u7EDF\u6D88\u606F","app.settings.notification.messages-description":"\u7CFB\u7EDF\u6D88\u606F\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5","app.settings.notification.todo":"\u5F85\u529E\u4EFB\u52A1","app.settings.notification.todo-description":"\u5F85\u529E\u4EFB\u52A1\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5","app.settings.open":"\u5F00","app.settings.close":"\u5173"},$i={"pages.layouts.userLayout.title":"Ant Design \u662F\u897F\u6E56\u533A\u6700\u5177\u5F71\u54CD\u529B\u7684 Web \u8BBE\u8BA1\u89C4\u8303","pages.login.accountLogin.tab":"\u8D26\u6237\u5BC6\u7801\u767B\u5F55","pages.login.accountLogin.errorMessage":"\u9519\u8BEF\u7684\u7528\u6237\u540D\u548C\u5BC6\u7801\uFF08admin/ant.design)","pages.login.username.placeholder":"\u7528\u6237\u540D: admin or user","pages.login.username.required":"\u7528\u6237\u540D\u662F\u5FC5\u586B\u9879\uFF01","pages.login.password.placeholder":"\u5BC6\u7801: ant.design","pages.login.password.required":"\u5BC6\u7801\u662F\u5FC5\u586B\u9879\uFF01","pages.login.phoneLogin.tab":"\u624B\u673A\u53F7\u767B\u5F55","pages.login.phoneLogin.errorMessage":"\u9A8C\u8BC1\u7801\u9519\u8BEF","pages.login.phoneNumber.placeholder":"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\uFF01","pages.login.phoneNumber.required":"\u624B\u673A\u53F7\u662F\u5FC5\u586B\u9879\uFF01","pages.login.phoneNumber.invalid":"\u4E0D\u5408\u6CD5\u7684\u624B\u673A\u53F7\uFF01","pages.login.captcha.placeholder":"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01","pages.login.captcha.required":"\u9A8C\u8BC1\u7801\u662F\u5FC5\u586B\u9879\uFF01","pages.login.phoneLogin.getVerificationCode":"\u83B7\u53D6\u9A8C\u8BC1\u7801","pages.getCaptchaSecondText":"\u79D2\u540E\u91CD\u65B0\u83B7\u53D6","pages.login.rememberMe":"\u81EA\u52A8\u767B\u5F55","pages.login.forgotPassword":"\u5FD8\u8BB0\u5BC6\u7801 ?","pages.login.submit":"\u767B\u5F55","pages.login.loginWith":"\u5176\u4ED6\u767B\u5F55\u65B9\u5F0F :","pages.login.registerAccount":"\u6CE8\u518C\u8D26\u6237","pages.welcome.advancedComponent":"\u9AD8\u7EA7\u8868\u683C","pages.welcome.link":"\u6B22\u8FCE\u4F7F\u7528","pages.welcome.advancedLayout":"\u9AD8\u7EA7\u5E03\u5C40","pages.welcome.alertMessage":"\u66F4\u5FEB\u66F4\u5F3A\u7684\u91CD\u578B\u7EC4\u4EF6\uFF0C\u5DF2\u7ECF\u53D1\u5E03\u3002","pages.admin.subPage.title":" \u8FD9\u4E2A\u9875\u9762\u53EA\u6709 admin \u6743\u9650\u624D\u80FD\u67E5\u770B","pages.admin.subPage.alertMessage":"umi ui \u73B0\u5DF2\u53D1\u5E03\uFF0C\u6B22\u8FCE\u4F7F\u7528 npm run ui \u542F\u52A8\u4F53\u9A8C\u3002","pages.searchTable.createForm.newRule":"\u65B0\u5EFA\u89C4\u5219","pages.searchTable.updateForm.ruleConfig":"\u89C4\u5219\u914D\u7F6E","pages.searchTable.updateForm.basicConfig":"\u57FA\u672C\u4FE1\u606F","pages.searchTable.updateForm.ruleName.nameLabel":"\u89C4\u5219\u540D\u79F0","pages.searchTable.updateForm.ruleName.nameRules":"\u8BF7\u8F93\u5165\u89C4\u5219\u540D\u79F0\uFF01","pages.searchTable.updateForm.ruleDesc.descLabel":"\u89C4\u5219\u63CF\u8FF0","pages.searchTable.updateForm.ruleDesc.descPlaceholder":"\u8BF7\u8F93\u5165\u81F3\u5C11\u4E94\u4E2A\u5B57\u7B26","pages.searchTable.updateForm.ruleDesc.descRules":"\u8BF7\u8F93\u5165\u81F3\u5C11\u4E94\u4E2A\u5B57\u7B26\u7684\u89C4\u5219\u63CF\u8FF0\uFF01","pages.searchTable.updateForm.ruleProps.title":"\u914D\u7F6E\u89C4\u5219\u5C5E\u6027","pages.searchTable.updateForm.object":"\u76D1\u63A7\u5BF9\u8C61","pages.searchTable.updateForm.ruleProps.templateLabel":"\u89C4\u5219\u6A21\u677F","pages.searchTable.updateForm.ruleProps.typeLabel":"\u89C4\u5219\u7C7B\u578B","pages.searchTable.updateForm.schedulingPeriod.title":"\u8BBE\u5B9A\u8C03\u5EA6\u5468\u671F","pages.searchTable.updateForm.schedulingPeriod.timeLabel":"\u5F00\u59CB\u65F6\u95F4","pages.searchTable.updateForm.schedulingPeriod.timeRules":"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\uFF01","pages.searchTable.titleDesc":"\u63CF\u8FF0","pages.searchTable.ruleName":"\u89C4\u5219\u540D\u79F0\u4E3A\u5FC5\u586B\u9879","pages.searchTable.titleCallNo":"\u670D\u52A1\u8C03\u7528\u6B21\u6570","pages.searchTable.titleStatus":"\u72B6\u6001","pages.searchTable.nameStatus.default":"\u5173\u95ED","pages.searchTable.nameStatus.running":"\u8FD0\u884C\u4E2D","pages.searchTable.nameStatus.online":"\u5DF2\u4E0A\u7EBF","pages.searchTable.nameStatus.abnormal":"\u5F02\u5E38","pages.searchTable.titleUpdatedAt":"\u4E0A\u6B21\u8C03\u5EA6\u65F6\u95F4","pages.searchTable.exception":"\u8BF7\u8F93\u5165\u5F02\u5E38\u539F\u56E0\uFF01","pages.searchTable.titleOption":"\u64CD\u4F5C","pages.searchTable.config":"\u914D\u7F6E","pages.searchTable.subscribeAlert":"\u8BA2\u9605\u8B66\u62A5","pages.searchTable.title":"\u67E5\u8BE2\u8868\u683C","pages.searchTable.new":"\u65B0\u5EFA","pages.searchTable.chosen":"\u5DF2\u9009\u62E9","pages.searchTable.item":"\u9879","pages.searchTable.totalServiceCalls":"\u670D\u52A1\u8C03\u7528\u6B21\u6570\u603B\u8BA1","pages.searchTable.tenThousand":"\u4E07","pages.searchTable.batchDeletion":"\u6279\u91CF\u5220\u9664","pages.searchTable.batchApproval":"\u6279\u91CF\u5BA1\u6279"},La=(0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)({"navBar.lang":"\u8BED\u8A00","layout.user.link.help":"\u5E2E\u52A9","layout.user.link.privacy":"\u9690\u79C1","layout.user.link.terms":"\u6761\u6B3E","app.preview.down.block":"\u4E0B\u8F7D\u6B64\u9875\u9762\u5230\u672C\u5730\u9879\u76EE","app.welcome.link.fetch-blocks":"\u83B7\u53D6\u5168\u90E8\u533A\u5757","app.welcome.link.block-list":"\u57FA\u4E8E block \u5F00\u53D1\uFF0C\u5FEB\u901F\u6784\u5EFA\u6807\u51C6\u9875\u9762"},$i),Yn),Qa),Fi),Xa),Ua),ta),ja,ei=!0,Do={"zh-CN":{messages:(0,x.Z)({},La),locale:"zh-CN",antd:(0,x.Z)({},ar.Z),momentLocale:"zh-cn"}},yo=function(sn,Ot,gr){var Gr,Ln;if(!!sn){var Tr=(Gr=Do[sn])!==null&&Gr!==void 0&&Gr.messages?Object.assign({},Do[sn].messages,Ot):Ot,Dn=gr||{},Pr=Dn.momentLocale,fa=Dn.antd,ka=(Ln=sn.split("-"))===null||Ln===void 0?void 0:Ln.join("-");Do[sn]={messages:Tr,locale:ka,momentLocale:Pr,antd:fa},ka===cs()&&event.emit(LANG_CHANGE_EVENT,ka)}},to=function(sn,Ot){return ja&&!Ot&&!sn?ja:sn&&Do[sn]?Ea(Do[sn]):(Kn()(!sn||!!Do[sn],"The current popular language does not exist, please check the locales folder!"),Do["zh-CN"]?Ea(Do["zh-CN"]):Ea({locale:"zh-CN",messages:{}}))},fs=function(sn){ja=to(sn,!0)},cs=function(){var sn=Pn.B.applyPlugins({key:"locale",type:rs.ApplyPluginsType.modify,initialValue:{}});if(typeof(sn==null?void 0:sn.getLocale)=="function")return sn.getLocale();var Ot=navigator.cookieEnabled&&typeof localStorage!="undefined"&&ei?window.localStorage.getItem("umi_locale"):"",gr;return Ot||gr||"zh-CN"},Os=function(){var sn=cs(),Ot=["he","ar","fa","ku"],gr=Ot.filter(function(Gr){return sn.startsWith(Gr)}).length?"rtl":"ltr";return gr},vl=function(sn){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,gr=plugin.applyPlugins({key:"locale",type:ApplyPluginsType.modify,initialValue:{}}),Gr=function(){if(cs()!==sn){if(navigator.cookieEnabled&&typeof window.localStorage!="undefined"&&ei&&window.localStorage.setItem("umi_locale",sn||""),fs(sn),Ot)window.location.reload();else if(event.emit(LANG_CHANGE_EVENT,sn),window.dispatchEvent){var Tr=new Event("languagechange");window.dispatchEvent(Tr)}}};if(typeof(gr==null?void 0:gr.setLocale)=="function"){gr.setLocale({lang:sn,realReload:Ot,updater:Gr});return}Gr()},Ar=!0,Rn=function(sn,Ot){return Ar&&(warning(!1,`Using this API will cause automatic refresh when switching languages, please use useIntl or injectIntl.
|
||
|
||
\u4F7F\u7528\u6B64 api \u4F1A\u9020\u6210\u5207\u6362\u8BED\u8A00\u7684\u65F6\u5019\u65E0\u6CD5\u81EA\u52A8\u5237\u65B0\uFF0C\u8BF7\u4F7F\u7528 useIntl \u6216 injectIntl\u3002
|
||
|
||
http://j.mp/37Fkd5Q
|
||
`),Ar=!1),ja.formatMessage(sn,Ot)},Sr=function(){return Object.keys(Do)}},71310:function(oe,N,o){"use strict";o.d(N,{y:function(){return g}});var x=o(67294),g=x.createContext({})},53776:function(oe,N,o){"use strict";o.d(N,{t:function(){return w}});var x=o(2824),g=o(67294),A=o(68586),y=o.n(A),M=o(71310);function w(m,b){var v=(0,g.useContext)(M.y),h=(0,g.useRef)(b);h.current=b;var d=(0,g.useState)(function(){return h.current?h.current(v.data[m]):v.data[m]}),_=(0,x.Z)(d,2),p=_[0],S=_[1],k=(0,g.useRef)(p);k.current=p;var O=(0,g.useRef)(!1);return(0,g.useEffect)(function(){return O.current=!0,function(){O.current=!1}},[]),(0,g.useEffect)(function(){var F=function(Z){if(!O.current)setTimeout(function(){v.data[m]=Z,v.update(m)});else if(b&&h.current){var W=h.current(Z),U=k.current;y()(W,U)||S(W)}else S(Z)};try{v.callbacks[m].add(F),v.update(m)}catch(D){v.callbacks[m]=new Set,v.callbacks[m].add(F),v.update(m)}return function(){v.callbacks[m].delete(F)}},[m]),p}},41827:function(oe,N,o){"use strict";o.d(N,{nd:function(){return x},ez:function(){return g},S_:function(){return M}});var x={npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.APP_TARGET==="inner"?"TME_TOKEN":"SUPERSONIC_TOKEN",g="FROM_URL",A="#f87653",y="#446dff",M="#1b4aef",w="rgba(153, 153, 153, 0.3)",m;(function(b){b.None="\u65E0",b.TenThousand="\u4E07",b.EnTenThousand="w",b.OneHundredMillion="\u4EBF",b.Thousand="k",b.Million="M",b.Giga="G"})(m||(m={}))},41603:function(oe,N,o){"use strict";var x=o(25324),g=o(45733),A=o(85893),y=function(w){var m=w.title,b=w.subTitle;return(0,A.jsxs)(g.Z,{direction:"vertical",size:2,children:[(0,A.jsx)("span",{children:m}),b&&(0,A.jsx)("span",{style:{fontSize:"12px",color:"#6a6a6a"},children:b})]})};N.Z=y},95161:function(oe,N,o){"use strict";o.d(N,{c:function(){return x}});var x={layout:"vertical"}},23790:function(oe,N,o){"use strict";var x=o(2824),g=o(67294),A=o(21444),y=o(50910),M=o.n(y),w=o(85893),m=function(v){var h=v.children,d=v.maxRef,_=v.top,p=_===void 0?"50px":_,S=v.isFullScreen,k=v.triggerBackToNormal,O=(0,g.useState)(M().normalState),F=(0,x.Z)(O,2),D=F[0],Z=F[1],W=function(){Z(M().maxState)},U=function(){Z(M().normalState)},L=function(){typeof k=="function"&&k()};return(0,g.useEffect)(function(){S?W():U()},[S]),(0,g.useImperativeHandle)(d,function(){return{changeToMax:W,changeToNormal:U}}),(0,w.jsx)("div",{className:D,style:D===M().maxState?{paddingTop:p}:{},children:(0,w.jsxs)("div",{className:M().innerWrap,style:D===M().maxState?{top:p}:{height:"100%"},children:[(0,w.jsx)("div",{className:M().backNormal,children:(0,w.jsx)(A.Z,{className:M().fullscreenExitIcon,title:"\u9000\u51FA\u5168\u5C4F",onClick:L})}),h]})})};N.Z=m},22487:function(oe,N,o){"use strict";var x=o(91321),g=o(60923),A=(0,x.Z)({scriptUrl:g.Z.iconfontUrl});N.Z=A},3657:function(oe,N,o){"use strict";o.d(N,{Wm:function(){return h}});var x=o(11849),g=o(35510),A=o.n(g),y=o(85069),M=o.n(y),w=o(6472),m=o.n(w),b=o(85893),v=function(p){var S=p.color,k=p.size,O=p.icon,F=p.style,D=p.className;return(0,b.jsx)("span",{className:A()(m().s2icon,M().iconfont,O,D),style:(0,x.Z)({color:S,fontSize:k},F)})},h=M(),d=(0,b.jsx)(v,{icon:h.iconzichan});N.ZP=v},89004:function(oe,N,o){"use strict";var x=o(86582),g=o(11116),A=o(35840),y=o(11849),M=o(2824),w=o(67294),m=o(2275),b=o(48852),v=o.n(b),h=o(8009),d=o.n(h),_=o(4566),p=o.n(_),S=o(89577),k=o.n(S),O=o(33765),F=o.n(O),D=o(96486),Z=o.n(D),W=o(23790),U=o(67945),L=o.n(U),V=o(85893),$;(function(we){we.table="table",we.variable="variable",we.column="column"})($||($={}));var G="14px",z="sql",K="100%",re={behavioursEnabled:!0,enableSnippets:!1,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,autoScrollEditorIntoView:!0,wrap:!0,useWorker:!1};function ne(we){var me=(0,w.useRef)(),Pe=we.hints,pe=Pe===void 0?{}:Pe,Ie=we.value,Je=we.height,ke=Je===void 0?K:Je,De=we.mode,Fe=De===void 0?z:De,Qe=we.isRightTheme,qe=Qe===void 0?!1:Qe,et=we.sizeChanged,dt=we.editorConfig,Ke=we.fullScreenBtnVisible,Ge=Ke===void 0?!0:Ke,wt=we.isFullScreen,Vt=wt===void 0?!1:wt,gt=we.onSqlChange,it=we.onChange,Le=we.onSelect,ct=we.onCmdEnter,at=we.triggerBackToNormal,jt=(0,w.useCallback)((0,D.debounce)(function(){var tt;(tt=me.current)===null||tt===void 0||tt.editor.resize()},300),[]),St=(0,w.useCallback)(function(tt){gt==null||gt(tt),it==null||it(tt)},[]),fn=(0,w.useCallback)((0,D.debounce)(function(tt){var de,ot=(de=me.current)===null||de===void 0?void 0:de.editor.session.doc.getTextRange(tt.getRange()),Et=(ot==null?void 0:ot.length)>1?ot:null;Le==null||Le(Et)},300),[]),Xt=(0,w.useMemo)(function(){return[{name:"execute",bindKey:{win:"Ctrl-Enter",mac:"Command-Enter"},exec:ct}]},[]);(0,w.useEffect)(function(){jt()},[et,ke]),(0,w.useEffect)(function(){Q(pe)},[pe]);var Yt=(0,w.useState)(Vt),Rt=(0,M.Z)(Yt,2),Lt=Rt[0],ze=Rt[1];(0,w.useEffect)(function(){ze(Vt)},[Vt]);var rt=function(){ze(!1),at==null||at()};return(0,V.jsxs)("div",{className:L().sqlEditor,style:{height:ke},children:[(0,V.jsx)(W.Z,{isFullScreen:Lt,top:"".concat(0,"px"),triggerBackToNormal:rt,children:(0,V.jsx)(m.ZP,(0,y.Z)({ref:me,name:"aceEditor",width:"100%",height:"100%",fontSize:G,mode:Fe,theme:qe?"sqlserver":"monokai",value:Ie,showPrintMargin:!1,highlightActiveLine:!0,setOptions:re,commands:Xt,onChange:St,onSelectionChange:fn},dt))}),Ge&&(0,V.jsx)("span",{className:L().fullScreenBtnBox,onClick:function(){ze(!0)},children:(0,V.jsx)(A.Z.Link,{children:"\u5168\u5C4F\u67E5\u770B"})})]})}function Q(we){var me=v().textCompleter,Pe=v().keyWordCompleter,pe=v().setCompleters,Ie={identifierRegexps:[/[a-zA-Z_0-9.\-\u00A2-\uFFFF]/],getCompletions:function(De,Fe,Qe,qe,et){var dt=ue(we),Ke=dt.tableKeywords,Ge=dt.tableColumnKeywords,wt=dt.variableKeywords,Vt=dt.columns;if(qe[qe.length-1]==="."){var gt=qe.substring(0,qe.length-1),it=Ee(De,gt,we),Le=Ke.concat(wt,it,Ge[gt]||[]);return et(null,Le)}et(null,Ke.concat(wt,Vt))}},Je=[me,Pe,Ie];pe(Je)}function ue(we){var me=[],Pe=[],pe={},Ie=[],Je=1e3;return Object.keys(we).forEach(function(ke){var De=ce(ke);if(De)me.push({score:Je--,value:ke,meta:De});else{var Fe=he(we[ke],ke),Qe=Fe.columnWithTableName,qe=Fe.column;pe[ke]=Qe,Ie.push.apply(Ie,(0,x.Z)(qe)),Pe.push({name:ke,value:ke,score:Je--,meta:ve()})}}),{tableKeywords:Pe,tableColumnKeywords:pe,variableKeywords:me,columns:Ie}}function he(we,me){var Pe=100,pe=[],Ie=[];return we.forEach(function(Je){var ke={score:Pe--,meta:fe()};pe.push((0,y.Z)({caption:"".concat(me,".").concat(Je),name:"".concat(me,".").concat(Je),value:"".concat(me,".").concat(Je)},ke)),Ie.push((0,y.Z)({value:Je,name:Je},ke))}),{columnWithTableName:pe,column:Ie}}function Ee(we,me,Pe){var pe=we.getSession().getValue(),Ie=Object.keys(Pe).find(function(De){var Fe=new RegExp(".+".concat(De,"\\s*(as|AS)?(?=\\s+").concat(me,"\\s*)"),"im");return Fe.test(pe)});if(!Ie)return[];var Je=he(Pe[Ie],me),ke=Je.columnWithTableName;return ke}function ce(we){return we.startsWith("$")&&we.endsWith("$")&&$.variable}function ve(we){return $.table}function fe(we){return $.column}N.Z=ne},58185:function(oe,N,o){"use strict";var x=o(11849),g=o(90930),A=o(23040),y=o(93224),M=o(71684),w=o.n(M),m=o(85893),b=["staffName","avatarImg"],v={npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.tmeAvatarUrl,h=function(_){var p=_.staffName,S=_.avatarImg,k=(0,y.Z)(_,b),O=v?"".concat(v).concat(p,".png"):S;return(0,m.jsx)(A.C,(0,x.Z)({src:"".concat(O),alt:"avatar",icon:(0,m.jsx)("img",{src:w()})},k))};N.Z=h},89386:function(oe,N,o){"use strict";var x=o(50111),g=o(55419),A=o(13753),y=o(48429),M=o(67294),w=o(20546),m=o(85893),b=function(){return(0,m.jsx)(g.ZP,{status:"403",title:"\u5F53\u524D\u9875\u9762\u65E0\u6743\u9650",subTitle:"\u8BF7\u8054\u7CFB\u9879\u76EE\u7BA1\u7406\u5458 jerryjzhang \u5F00\u901A\u6743\u9650",extra:(0,m.jsx)(y.Z,{type:"primary",onClick:function(){return w.m8.push("/homepage")},children:"\u56DE\u5230\u9996\u9875"})})};N.Z=b},80556:function(oe,N,o){"use strict";o.d(N,{Z:function(){return Qt}});var x=o(14643),g=o(92909),A=o(39428),y=o(3182),M=o(2824),w=o(67294),m=o(59560),b=o(3114),v=o(11849),h=o(43623),d=o(7523),_=o(32059),p=o(13753),S=o(48429),k=o(68137),O=o(50532),F=o(49101),D=o(89366),Z=o(8212),W=o(73171),U=o(35510),L=o.n(U),V=o(98557),$=o.n(V),G=o(85893),z=O.Z.Search,K=function(Un){var qt=Un.agents,rn=Un.currentAgent,cn=Un.onSelectAgent,er=Un.onDeleteAgent,rr=Un.onEditAgent,nt=Un.onSaveAgent,lr=(0,w.useState)([]),Hn=(0,M.Z)(lr,2),ut=Hn[0],bt=Hn[1];return(0,w.useEffect)(function(){bt(qt)},[qt]),(0,G.jsx)("div",{className:$().agentsSection,children:(0,G.jsxs)("div",{className:$().content,children:[(0,G.jsx)("div",{className:$().searchBar,children:(0,G.jsxs)(S.Z,{type:"primary",onClick:function(){rr(void 0)},children:[(0,G.jsx)(F.Z,{}),"\u65B0\u5EFA\u52A9\u7406"]})}),(0,G.jsx)("div",{className:$().agentsContainer,children:ut.map(function(We){var be=L()($().agentItem,(0,_.Z)({},$().agentActive,We.id===(rn==null?void 0:rn.id)));return(0,G.jsxs)("div",{className:be,onClick:function(){cn(We)},children:[(0,G.jsx)(D.Z,{className:$().agentIcon}),(0,G.jsxs)("div",{className:$().agentContent,children:[(0,G.jsxs)("div",{className:$().agentNameBar,children:[(0,G.jsx)("div",{className:$().agentName,children:We.name}),(0,G.jsxs)("div",{className:$().operateIcons,children:[(0,G.jsx)(Z.Z,{className:$().operateIcon,onClick:function(Ue){Ue.stopPropagation(),rr(We)}}),(0,G.jsx)(d.Z,{title:"\u786E\u5B9A\u5220\u9664\u5417\uFF1F",onCancel:function(Ue){Ue==null||Ue.stopPropagation()},onConfirm:function(Ue){Ue==null||Ue.stopPropagation(),er(We.id)},children:(0,G.jsx)(W.Z,{className:$().operateIcon,onClick:function(Ue){Ue.stopPropagation()}})})]})]}),(0,G.jsxs)("div",{className:$().bottomBar,children:[(0,G.jsx)("div",{className:$().agentDescription,title:We.description,children:We.description}),(0,G.jsxs)("div",{className:$().toggleStatus,children:[We.status===0?"\u5DF2\u7981\u7528":(0,G.jsx)("span",{className:$().online,children:"\u5DF2\u542F\u7528"}),(0,G.jsx)("span",{onClick:function(Ue){Ue.stopPropagation()},children:(0,G.jsx)(b.Z,{size:"small",defaultChecked:We.status===1,onChange:function(Ue){nt((0,v.Z)((0,v.Z)({},We),{},{status:Ue?1:0}),!0)}})})]})]})]})]},We.id)})})]})})},re=K,ne=o(26780),Q=o(51935),ue=o(86582),he=o(67604),Ee=o(72285),ce=o(24480),ve=Ee.Z.Item,fe=O.Z.TextArea,we=function(Un){var qt=Un.editAgent,rn=Un.onSaveAgent,cn=Un.onCancel,er=(0,w.useState)(!1),rr=(0,M.Z)(er,2),nt=rr[0],lr=rr[1],Hn=(0,w.useState)([]),ut=(0,M.Z)(Hn,2),bt=ut[0],We=ut[1],be=Ee.Z.useForm(),Ae=(0,M.Z)(be,1),Ue=Ae[0];(0,w.useEffect)(function(){qt?(Ue.setFieldsValue((0,v.Z)((0,v.Z)({},qt),{},{enableSearch:qt.enableSearch!==0})),qt.examples&&We(qt.examples.map(function(lt){return{id:(0,ce.Vj)(),question:lt}}))):Ue.resetFields()},[qt]);var $e={labelCol:{span:6},wrapperCol:{span:14}},kt=function(){var lt=(0,y.Z)((0,A.Z)().mark(function vt(){var Ct;return(0,A.Z)().wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return mt.next=2,Ue.validateFields();case 2:return Ct=mt.sent,lr(!0),mt.next=6,rn((0,v.Z)((0,v.Z)((0,v.Z)({id:qt==null?void 0:qt.id},qt||{}),Ct),{},{examples:bt.map(function(Zt){return Zt.question}),enableSearch:Ct.enableSearch?1:0}));case 6:lr(!1);case 7:case"end":return mt.stop()}},vt)}));return function(){return lt.apply(this,arguments)}}();return(0,G.jsx)(Q.Z,{open:!0,title:qt?"\u7F16\u8F91\u52A9\u7406":"\u65B0\u5EFA\u52A9\u7406",confirmLoading:nt,width:800,onOk:kt,onCancel:cn,children:(0,G.jsxs)(Ee.Z,(0,v.Z)((0,v.Z)({},$e),{},{form:Ue,initialValues:{enableSearch:!0},children:[(0,G.jsx)(ve,{name:"name",label:"\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u52A9\u7406\u540D\u79F0"}],children:(0,G.jsx)(O.Z,{placeholder:"\u8BF7\u8F93\u5165\u52A9\u7406\u540D\u79F0"})}),(0,G.jsx)(ve,{name:"enableSearch",label:"\u652F\u6301\u8054\u60F3",valuePropName:"checked",children:(0,G.jsx)(b.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})}),(0,G.jsx)(ve,{name:"examples",label:"\u793A\u4F8B\u95EE\u9898",children:(0,G.jsxs)("div",{className:$().paramsSection,children:[bt.map(function(lt){var vt=lt.id,Ct=lt.question;return(0,G.jsxs)("div",{className:$().filterRow,children:[(0,G.jsx)(O.Z,{placeholder:"\u793A\u4F8B\u95EE\u9898",value:Ct,className:$().questionExample,onChange:function(mt){lt.question=mt.target.value,We((0,ue.Z)(bt))},allowClear:!0}),(0,G.jsx)(W.Z,{onClick:function(){We(bt.filter(function(mt){return mt.id!==vt}))}})]},vt)}),(0,G.jsxs)(S.Z,{onClick:function(){We([].concat((0,ue.Z)(bt),[{id:(0,ce.Vj)()}]))},children:[(0,G.jsx)(F.Z,{}),"\u65B0\u589E\u793A\u4F8B\u95EE\u9898"]})]})}),(0,G.jsx)(ve,{name:"description",label:"\u63CF\u8FF0",children:(0,G.jsx)(fe,{placeholder:"\u8BF7\u8F93\u5165\u52A9\u7406\u63CF\u8FF0"})})]}))})},me=we,Pe=o(20546);function pe(){return(0,Pe.WY)("/api/chat/agent/getAgentList")}function Ie(an){return(0,Pe.WY)("/api/chat/agent",{method:an!=null&&an.id?"PUT":"POST",data:(0,v.Z)((0,v.Z)({},an),{},{status:an.status!==void 0?an.status:1})})}function Je(an){return(0,Pe.WY)("/api/chat/agent/".concat(an),{method:"DELETE"})}function ke(){return(0,Pe.WY)("/api/chat/conf/modelList",{method:"GET"})}function De(an){return(0,Pe.WY)("/api/semantic/metric/queryMetric",{method:"POST",data:{modelIds:[an],current:1,pageSize:2e3}})}var Fe=o(93806),Qe=o(3418),qe=o(25324),et=o(45733),dt=o(14943),Ke=o(74356),Ge=o(28991),wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Vt=wt,gt=o(27029),it=function(Un,qt){return w.createElement(gt.Z,(0,Ge.Z)((0,Ge.Z)({},Un),{},{ref:qt,icon:Vt}))};it.displayName="ArrowLeftOutlined";var Le=w.forwardRef(it),ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},at=ct,jt=function(Un,qt){return w.createElement(gt.Z,(0,Ge.Z)((0,Ge.Z)({},Un),{},{ref:qt,icon:at}))};jt.displayName="ToolOutlined";var St=w.forwardRef(jt),fn=o(97140),Xt=o(90407),Yt;(function(an){an.RULE="RULE",an.DSL="DSL",an.PLUGIN="PLUGIN",an.INTERPRET="INTERPRET"})(Yt||(Yt={}));var Rt;(function(an){an.ENTITY_DETAIL="ENTITY_DETAIL",an.ENTITY_LIST_FILTER="ENTITY_LIST_FILTER",an.ENTITY_ID="ENTITY_ID",an.METRIC_ENTITY="METRIC_ENTITY",an.METRIC_FILTER="METRIC_FILTER",an.METRIC_GROUPBY="METRIC_GROUPBY",an.METRIC_MODEL="METRIC_MODEL",an.METRIC_ORDERBY="METRIC_ORDERBY"})(Rt||(Rt={}));var Lt=[{label:"\u89C4\u5219",value:Yt.RULE},{label:"LLM\u8BED\u4E49\u89E3\u6790",value:Yt.DSL},{label:"\u6307\u6807\u89E3\u8BFB",value:Yt.INTERPRET},{label:"\u63D2\u4EF6",value:Yt.PLUGIN}],ze=[{label:"\u5B9E\u4F53\u660E\u7EC6(\u67E5\u8BE2\u7EF4\u5EA6\u4FE1\u606F)",value:Rt.ENTITY_DETAIL},{label:"\u5B9E\u4F53\u5708\u9009",value:Rt.ENTITY_LIST_FILTER},{label:"\u5B9E\u4F53\u67E5\u8BE2(\u6309ID\u67E5\u8BE2)",value:Rt.ENTITY_ID},{label:"\u6307\u6807\u67E5\u8BE2(\u5E26\u5B9E\u4F53)",value:Rt.METRIC_ENTITY},{label:"\u6307\u6807\u67E5\u8BE2(\u5E26\u6761\u4EF6)",value:Rt.METRIC_FILTER},{label:"\u6307\u6807\u67E5\u8BE2(\u6309\u7EF4\u5EA6\u5206\u7EC4)",value:Rt.METRIC_GROUPBY},{label:"\u6307\u6807\u67E5\u8BE2(\u4E0D\u5E26\u6761\u4EF6)",value:Rt.METRIC_MODEL},{label:"\u6309\u6307\u6807\u6392\u5E8F",value:Rt.METRIC_ORDERBY}],rt=o(7122),tt=Ee.Z.Item,de=function(Un){var qt=Un.editTool,rn=Un.onSaveTool,cn=Un.onCancel,er=(0,w.useState)(),rr=(0,M.Z)(er,2),nt=rr[0],lr=rr[1],Hn=(0,w.useState)([]),ut=(0,M.Z)(Hn,2),bt=ut[0],We=ut[1],be=(0,w.useState)(!1),Ae=(0,M.Z)(be,2),Ue=Ae[0],$e=Ae[1],kt=(0,w.useState)([]),lt=(0,M.Z)(kt,2),vt=lt[0],Ct=lt[1],Bt=(0,w.useState)([]),mt=(0,M.Z)(Bt,2),Zt=mt[0],zt=mt[1],ln=(0,w.useState)([]),An=(0,M.Z)(ln,2),En=An[0],Gn=An[1],Bn=(0,w.useState)([]),pr=(0,M.Z)(Bn,2),_r=pr[0],na=pr[1],$n=Ee.Z.useForm(),qr=(0,M.Z)($n,1),Jr=qr[0],Aa=function(){var vr=(0,y.Z)((0,A.Z)().mark(function Ur(){var Zr;return(0,A.Z)().wrap(function(ba){for(;;)switch(ba.prev=ba.next){case 0:return ba.next=2,ke();case 2:Zr=ba.sent,We([{id:-1,name:"\u9ED8\u8BA4"}].concat((0,ue.Z)((0,ce.FS)(Zr.data))));case 4:case"end":return ba.stop()}},Ur)}));return function(){return vr.apply(this,arguments)}}(),ya=function(){var vr=(0,y.Z)((0,A.Z)().mark(function Ur(){var Zr;return(0,A.Z)().wrap(function(ba){for(;;)switch(ba.prev=ba.next){case 0:return ba.next=2,(0,rt.UV)({});case 2:Zr=ba.sent,na(Zr.data||[]);case 4:case"end":return ba.stop()}},Ur)}));return function(){return vr.apply(this,arguments)}}();(0,w.useEffect)(function(){Aa(),ya()},[]);var $t=function(){var vr=(0,y.Z)((0,A.Z)().mark(function Ur(Zr){var Kr;return(0,A.Z)().wrap(function(Ri){for(;;)switch(Ri.prev=Ri.next){case 0:return Ri.next=2,De(Zr[0].modelId);case 2:Kr=Ri.sent,Gn(Kr.data.list);case 4:case"end":return Ri.stop()}},Ur)}));return function(Zr){return vr.apply(this,arguments)}}();(0,w.useEffect)(function(){if(qt){var vr;Jr.setFieldsValue((0,v.Z)((0,v.Z)({},qt),{},{plugins:(vr=qt.plugins)===null||vr===void 0?void 0:vr[0]})),lr(qt.type),Ct((qt.exampleQuestions||[]).map(function(Ur){return{id:(0,ce.Vj)(),question:Ur}})),zt(qt.metricOptions||[]),qt.metricOptions&&qt.metricOptions.length>0&&$t(qt.metricOptions||[])}else Jr.resetFields()},[qt]);var wn={labelCol:{span:6},wrapperCol:{span:14}},Fn=function(){var vr=(0,y.Z)((0,A.Z)().mark(function Ur(){var Zr;return(0,A.Z)().wrap(function(ba){for(;;)switch(ba.prev=ba.next){case 0:return ba.next=2,Jr.validateFields();case 2:return Zr=ba.sent,$e(!0),ba.next=6,rn((0,v.Z)((0,v.Z)({id:qt==null?void 0:qt.id},Zr),{},{exampleQuestions:vt.map(function(Ri){return Ri.question}).filter(function(Ri){return Ri}),plugins:Zr.plugins?[Zr.plugins]:void 0,metricOptions:Zt.map(function(Ri){return(0,v.Z)({modelId:Zr.modelId},Ri)})}));case 6:$e(!1);case 7:case"end":return ba.stop()}},Ur)}));return function(){return vr.apply(this,arguments)}}(),Or=function(){var vr=(0,y.Z)((0,A.Z)().mark(function Ur(Zr){var Kr;return(0,A.Z)().wrap(function(Ri){for(;;)switch(Ri.prev=Ri.next){case 0:if(!En[Zr]){Ri.next=2;break}return Ri.abrupt("return");case 2:return Ri.next=4,De(Zr);case 4:Kr=Ri.sent,Gn(Kr.data.list);case 6:case"end":return Ri.stop()}},Ur)}));return function(Zr){return vr.apply(this,arguments)}}();return(0,G.jsx)(Q.Z,{open:!0,title:qt?"\u7F16\u8F91\u5DE5\u5177":"\u65B0\u5EFA\u5DE5\u5177",confirmLoading:Ue,width:800,onOk:Fn,onCancel:cn,children:(0,G.jsxs)(Ee.Z,(0,v.Z)((0,v.Z)({},wn),{},{form:Jr,children:[(0,G.jsx)(tt,{name:"type",label:"\u7C7B\u578B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5DE5\u5177\u7C7B\u578B"}],children:(0,G.jsx)(Xt.Z,{options:Lt,placeholder:"\u8BF7\u9009\u62E9\u5DE5\u5177\u7C7B\u578B",onChange:lr})}),(0,G.jsx)(tt,{name:"name",label:"\u540D\u79F0",children:(0,G.jsx)(O.Z,{placeholder:"\u8BF7\u8F93\u5165\u5DE5\u5177\u540D\u79F0"})}),nt===Yt.DSL&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(tt,{name:"modelIds",label:"\u4E3B\u9898\u57DF",children:(0,G.jsx)(Xt.Z,{options:bt.map(function(vr){return{label:vr.name,value:vr.id}}),placeholder:"\u8BF7\u9009\u62E9\u4E3B\u9898\u57DF",mode:"multiple"})}),(0,G.jsx)(tt,{name:"exampleQuestions",label:"\u793A\u4F8B\u95EE\u9898",children:(0,G.jsxs)("div",{className:$().paramsSection,children:[vt.map(function(vr){var Ur=vr.id,Zr=vr.question;return(0,G.jsxs)("div",{className:$().filterRow,children:[(0,G.jsx)(O.Z,{placeholder:"\u793A\u4F8B\u95EE\u9898",value:Zr,className:$().questionExample,onChange:function(ba){vr.question=ba.target.value,Ct((0,ue.Z)(vt))},allowClear:!0}),(0,G.jsx)(W.Z,{onClick:function(){Ct(vt.filter(function(ba){return ba.id!==Ur}))}})]},Ur)}),(0,G.jsxs)(S.Z,{onClick:function(){Ct([].concat((0,ue.Z)(vt),[{id:(0,ce.Vj)()}]))},children:[(0,G.jsx)(F.Z,{}),"\u65B0\u589E\u793A\u4F8B\u95EE\u9898"]})]})})]}),nt===Yt.INTERPRET&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(tt,{name:"modelId",label:"\u4E3B\u9898\u57DF",children:(0,G.jsx)(Xt.Z,{options:bt.map(function(vr){return{label:vr.name,value:vr.id}}),showSearch:!0,filterOption:function(Ur,Zr){var Kr;return((Kr=Zr==null?void 0:Zr.label)!==null&&Kr!==void 0?Kr:"").toLowerCase().includes(Ur.toLowerCase())},placeholder:"\u8BF7\u9009\u62E9\u4E3B\u9898\u57DF",onChange:function(Ur){zt((0,ue.Z)(Zt)),Or(Ur)}})}),(0,G.jsx)(tt,{name:"params",label:"\u6307\u6807",children:(0,G.jsxs)("div",{className:$().paramsSection,children:[Zt.map(function(vr){return(0,G.jsxs)("div",{className:$().filterRow,children:[(0,G.jsx)(Xt.Z,{placeholder:"\u8BF7\u9009\u62E9\u6307\u6807\uFF0C\u9700\u5148\u9009\u62E9\u4E3B\u9898\u57DF",options:(En||[]).map(function(Ur){return{label:Ur.name,value:"".concat(Ur.id)}}),showSearch:!0,className:$().filterParamValueField,filterOption:function(Zr,Kr){var ba;return((ba=Kr==null?void 0:Kr.label)!==null&&ba!==void 0?ba:"").toLowerCase().includes(Zr.toLowerCase())},allowClear:!0,value:vr.metricId,onChange:function(Zr){vr.metricId=Zr,zt((0,ue.Z)(Zt))}}),(0,G.jsx)(W.Z,{onClick:function(){zt(Zt.filter(function(Zr){return Zr.id!==vr.id}))}})]},vr.id)}),(0,G.jsxs)(S.Z,{onClick:function(){zt([].concat((0,ue.Z)(Zt),[{id:(0,ce.Vj)(),metricId:void 0,modelId:void 0}]))},children:[(0,G.jsx)(F.Z,{}),"\u65B0\u589E\u6307\u6807"]})]})})]}),nt===Yt.PLUGIN&&(0,G.jsx)(tt,{name:"plugins",label:"\u63D2\u4EF6",children:(0,G.jsx)(Xt.Z,{placeholder:"\u8BF7\u9009\u62E9\u63D2\u4EF6",options:_r.map(function(vr){return{label:vr.name,value:vr.id}}),showSearch:!0,filterOption:function(Ur,Zr){var Kr;return((Kr=Zr==null?void 0:Zr.label)!==null&&Kr!==void 0?Kr:"").toLowerCase().includes(Ur.toLowerCase())},onChange:function(Ur){var Zr=_r.find(function(Kr){return Kr.id===Ur});Zr&&Jr.setFieldsValue({name:Zr.name})}})}),nt===Yt.RULE&&(0,G.jsx)(tt,{name:"queryModes",label:"\u67E5\u8BE2\u6A21\u5F0F",children:(0,G.jsx)(Xt.Z,{placeholder:"\u8BF7\u9009\u62E9\u67E5\u8BE2\u6A21\u5F0F",options:ze,showSearch:!0,mode:"multiple",filterOption:function(Ur,Zr){var Kr;return((Kr=Zr==null?void 0:Zr.label)!==null&&Kr!==void 0?Kr:"").toLowerCase().includes(Ur.toLowerCase())}})})]}))})},ot=de,Et=function(Un){var qt,rn,cn=Un.currentAgent,er=Un.onSaveAgent,rr=Un.onEditAgent,nt=Un.goBack,lr=(0,w.useState)(!1),Hn=(0,M.Z)(lr,2),ut=Hn[0],bt=Hn[1],We=(0,w.useState)(),be=(0,M.Z)(We,2),Ae=be[0],Ue=be[1],$e=cn!=null&&cn.agentConfig?JSON.parse(cn.agentConfig):{},kt=function(){var Ct=(0,y.Z)((0,A.Z)().mark(function Bt(mt){return(0,A.Z)().wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:return zt.next=2,er(mt);case 2:bt(!1);case 3:case"end":return zt.stop()}},Bt)}));return function(mt){return Ct.apply(this,arguments)}}(),lt=function(){var Ct=(0,y.Z)((0,A.Z)().mark(function Bt(mt){var Zt,zt;return(0,A.Z)().wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return Zt=$e||{},Zt.tools||(Zt.tools=[]),mt.id?(zt=Zt.tools.findIndex(function(En){return En.id===mt.id}),Zt.tools[zt]=mt):Zt.tools.push((0,v.Z)((0,v.Z)({},mt),{},{id:(0,ce.Vj)()})),An.next=5,kt((0,v.Z)((0,v.Z)({},cn),{},{agentConfig:JSON.stringify(Zt)}));case 5:bt(!1);case 6:case"end":return An.stop()}},Bt)}));return function(mt){return Ct.apply(this,arguments)}}(),vt=function(){var Ct=(0,y.Z)((0,A.Z)().mark(function Bt(mt){var Zt;return(0,A.Z)().wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:return Zt=$e||{},Zt.tools||(Zt.tools=[]),Zt.tools=Zt.tools.filter(function(An){return An.id!==mt.id}),ln.next=5,kt((0,v.Z)((0,v.Z)({},cn),{},{agentConfig:JSON.stringify(Zt)}));case 5:case"end":return ln.stop()}},Bt)}));return function(mt){return Ct.apply(this,arguments)}}();return(0,G.jsxs)("div",{className:$().toolsSection,children:[(0,G.jsxs)("div",{className:$().toolsSectionTitleBar,children:[(0,G.jsx)(Le,{className:$().backIcon,onClick:nt}),(0,G.jsx)("div",{className:$().agentTitle,children:cn==null?void 0:cn.name}),(0,G.jsxs)("div",{className:$().toggleStatus,children:[(cn==null?void 0:cn.status)===0?"\u5DF2\u7981\u7528":(0,G.jsx)("span",{className:$().online,children:"\u5DF2\u542F\u7528"}),(0,G.jsx)("span",{onClick:function(Bt){Bt.stopPropagation()},children:(0,G.jsx)(b.Z,{size:"small",defaultChecked:(cn==null?void 0:cn.status)===1,onChange:function(Bt){er((0,v.Z)((0,v.Z)({},cn),{},{status:Bt?1:0}),!0)}})})]})]}),(0,G.jsxs)("div",{className:$().basicInfo,children:[(0,G.jsxs)("div",{className:$().basicInfoTitle,children:["\u57FA\u672C\u4FE1\u606F",(0,G.jsx)(S.Z,{type:"primary",onClick:function(){rr(cn)},children:"\u4FEE\u6539\u57FA\u672C\u4FE1\u606F"})]}),(0,G.jsxs)("div",{className:$().infoContent,children:[(0,G.jsxs)("div",{className:$().infoItem,children:["\u793A\u4F8B\u95EE\u9898\uFF1A",(0,G.jsx)(et.Z,{children:cn==null||(qt=cn.examples)===null||qt===void 0?void 0:qt.map(function(Ct){return(0,G.jsx)(Ke.Z,{children:Ct},Ct)})})]}),(0,G.jsxs)("div",{className:$().infoItem,children:["\u63CF\u8FF0\uFF1A",cn==null?void 0:cn.description]})]})]}),(0,G.jsxs)("div",{className:$().toolSection,children:[(0,G.jsxs)("div",{className:$().toolSectionTitleBar,children:[(0,G.jsx)("div",{className:$().toolSectionTitle,children:"\u5DE5\u5177"}),(0,G.jsxs)(S.Z,{type:"primary",onClick:function(){Ue(void 0),bt(!0)},children:[(0,G.jsx)(F.Z,{})," \u65B0\u589E\u5DE5\u5177"]})]}),$e!=null&&$e.tools&&($e==null||(rn=$e.tools)===null||rn===void 0?void 0:rn.length)>0?(0,G.jsx)("div",{className:$().toolsContent,children:$e.tools.map(function(Ct){var Bt,mt=(Bt=Lt.find(function(Zt){return Zt.value===Ct.type}))===null||Bt===void 0?void 0:Bt.label;return(0,G.jsxs)("div",{className:$().toolItem,onClick:function(){Ue(Ct),bt(!0)},children:[(0,G.jsx)(St,{className:$().toolIcon}),(0,G.jsxs)("div",{className:$().toolContent,children:[(0,G.jsxs)("div",{className:$().toolTopSection,children:[(0,G.jsx)("div",{className:$().toolType,children:Ct.name||mt}),(0,G.jsxs)("div",{className:$().toolOperateIcons,children:[(0,G.jsx)(Z.Z,{className:$().toolOperateIcon,onClick:function(zt){zt.stopPropagation(),Ue(Ct),bt(!0)}}),(0,G.jsx)(d.Z,{title:"\u786E\u5B9A\u5220\u9664\u5417\uFF1F",onCancel:function(zt){zt==null||zt.stopPropagation()},onConfirm:function(zt){zt==null||zt.stopPropagation(),vt(Ct)},children:(0,G.jsx)(W.Z,{className:$().toolOperateIcon,onClick:function(zt){zt.stopPropagation()}})})]})]}),(0,G.jsx)("div",{className:$().toolDesc,title:mt,children:mt})]})]},Ct.id)})}):(0,G.jsx)("div",{className:$().emptyHolder,children:(0,G.jsx)(Qe.Z,{description:"\u3010".concat(cn==null?void 0:cn.name,"\u3011\u6682\u65E0\u5DE5\u5177\uFF0C\u8BF7\u65B0\u589E\u5DE5\u5177")})})]}),ut&&(0,G.jsx)(ot,{editTool:Ae,onSaveTool:lt,onCancel:function(){bt(!1)}})]})},Ht=Et,Jt=function(){var Un=(0,w.useState)([]),qt=(0,M.Z)(Un,2),rn=qt[0],cn=qt[1],er=(0,w.useState)(!1),rr=(0,M.Z)(er,2),nt=rr[0],lr=rr[1],Hn=(0,w.useState)(),ut=(0,M.Z)(Hn,2),bt=ut[0],We=ut[1],be=(0,w.useState)(!1),Ae=(0,M.Z)(be,2),Ue=Ae[0],$e=Ae[1],kt=(0,w.useState)(),lt=(0,M.Z)(kt,2),vt=lt[0],Ct=lt[1],Bt=function(){var ln=(0,y.Z)((0,A.Z)().mark(function An(){var En,Gn,Bn;return(0,A.Z)().wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return lr(!0),_r.next=3,pe();case 3:if(Gn=_r.sent,lr(!1),cn(Gn.data||[]),(En=Gn.data)!==null&&En!==void 0&&En.length){_r.next=8;break}return _r.abrupt("return");case 8:bt&&(Bn=Gn.data.find(function(na){return na.id===bt.id}),We(Bn||Gn.data[0]));case 9:case"end":return _r.stop()}},An)}));return function(){return ln.apply(this,arguments)}}();(0,w.useEffect)(function(){Bt()},[]);var mt=function(){var ln=(0,y.Z)((0,A.Z)().mark(function An(En,Gn){return(0,A.Z)().wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:return pr.next=2,Ie(En);case 2:Gn||g.default.success("\u4FDD\u5B58\u6210\u529F"),$e(!1),Bt();case 5:case"end":return pr.stop()}},An)}));return function(En,Gn){return ln.apply(this,arguments)}}(),Zt=function(){var ln=(0,y.Z)((0,A.Z)().mark(function An(En){return(0,A.Z)().wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Bn.next=2,Je(En);case 2:g.default.success("\u5220\u9664\u6210\u529F"),Bt();case 4:case"end":return Bn.stop()}},An)}));return function(En){return ln.apply(this,arguments)}}(),zt=function(An){Ct(An),$e(!0)};return(0,G.jsxs)("div",{className:$().agent,children:[bt?(0,G.jsx)(Ht,{currentAgent:bt,onSaveAgent:mt,onEditAgent:zt,goBack:function(){We(void 0)}}):(0,G.jsx)(re,{agents:rn,currentAgent:bt,loading:nt,onSelectAgent:We,onEditAgent:zt,onDeleteAgent:Zt,onSaveAgent:mt}),Ue&&(0,G.jsx)(me,{editAgent:vt,onSaveAgent:mt,onCancel:function(){$e(!1)}})]})},Qt=Jt},51464:function(oe,N,o){"use strict";o.d(N,{Z:function(){return Roe}});var x={};o.r(x),o.d(x,{Arc:function(){return Ix},BezierCurve:function(){return C2},BoundingRect:function(){return ra},Circle:function(){return y0},CompoundPath:function(){return hA},Ellipse:function(){return Rx},Group:function(){return Qi},Image:function(){return wp},IncrementalDisplayable:function(){return Dx},Line:function(){return jh},LinearGradient:function(){return pb},OrientedBoundingRect:function(){return T2},Path:function(){return Od},Point:function(){return $c},Polygon:function(){return tg},Polyline:function(){return ng},RadialGradient:function(){return lP},Rect:function(){return jd},Ring:function(){return W0},Sector:function(){return eg},Text:function(){return Tp},applyTransform:function(){return zd},clipPointsByRect:function(){return R2},clipRectByRect:function(){return _m},createIcon:function(){return tm},extendPath:function(){return cI},extendShape:function(){return gS},getShapeClass:function(){return k2},getTransform:function(){return vb},groupTransition:function(){return hb},initProps:function(){return Sv},isElementRemoved:function(){return d0},lineLineIntersect:function(){return O2},linePolygonIntersect:function(){return e1},makeImage:function(){return yS},makePath:function(){return _S},mergePath:function(){return Gg},registerShape:function(){return b0},removeElement:function(){return p0},removeElementWithFadeOut:function(){return H1},resizePath:function(){return gA},setTooltipConfig:function(){return Lx},subPixelOptimize:function(){return P2},subPixelOptimizeLine:function(){return Nx},subPixelOptimizeRect:function(){return uI},transformDirection:function(){return Yu},traverseElements:function(){return ag},updateProps:function(){return vp}});var g={};o.r(g),o.d(g,{oD:function(){return e7},Wz:function(){return dW},ry:function(){return yY},Zf:function(){return _E},qN:function(){return bY}});var A=o(32059),y=o(11849),M=o(86582),w=o(39428),m=o(3182),b=o(2824),v=o(24480),h=o(67294),d=o(2546),_=o(20546),p=o(35510),S=o.n(p),k=o(22487),O=o(32962),F=o.n(O),D=o(85893),Z=function(){return(0,D.jsx)(k.Z,{type:"icon-zhinengsuanfa",className:F().leftAvatar})},W=Z,U=o(46110),L=o.n(U),V=function(e){var t,r=e.position,s=e.width,c=e.height,f=e.children,T=e.bubbleClassName,R=S()(L().message,(t={},(0,A.Z)(t,L().left,r==="left"),(0,A.Z)(t,L().right,r==="right"),t));return(0,D.jsx)("div",{className:R,style:{width:s},children:(0,D.jsx)("div",{className:L().messageContent,children:(0,D.jsx)("div",{className:L().messageBody,children:(0,D.jsx)("div",{className:"".concat(L().bubble).concat(T?" ".concat(T):""),style:{height:c},onClick:function(B){B.stopPropagation()},children:f})})})})},$=V,G=function(e){var t=e.position,r=e.data,s=e.quote,c=S()(L().textWrapper,(0,A.Z)({},L().rightTextWrapper,t==="right"));return(0,D.jsxs)("div",{className:c,children:[t==="left"&&(0,D.jsx)(W,{}),(0,D.jsxs)($,{position:t,bubbleClassName:L().textBubble,children:[t==="right"&&s&&(0,D.jsx)("div",{className:L().quote,children:s}),(0,D.jsx)("div",{className:L().text,children:r})]})]})},z=G,K=o(96486),re=function(e,t){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(r[c]=s[c])},re(e,t)};function ne(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");re(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Q=function(){return Q=Object.assign||function(t){for(var r,s=1,c=arguments.length;s<c;s++){r=arguments[s];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(t[f]=r[f])}return t},Q.apply(this,arguments)};function ue(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(n);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(n,r[s])&&(t[r[s]]=n[r[s]]);return t}function he(n,e,t,r){var s=arguments.length,c=s<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(n,e,t,r);else for(var T=n.length-1;T>=0;T--)(f=n[T])&&(c=(s<3?f(c):s>3?f(e,t,c):f(e,t))||c);return s>3&&c&&Object.defineProperty(e,t,c),c}function Ee(n,e){return function(t,r){e(t,r,n)}}function ce(n,e,t,r,s,c){function f(He){if(He!==void 0&&typeof He!="function")throw new TypeError("Function expected");return He}for(var T=r.kind,R=T==="getter"?"get":T==="setter"?"set":"value",I=!e&&n?r.static?n:n.prototype:null,B=e||(I?Object.getOwnPropertyDescriptor(I,r.name):{}),Y,q=!1,ie=t.length-1;ie>=0;ie--){var ge={};for(var Oe in r)ge[Oe]=Oe==="access"?{}:r[Oe];for(var Oe in r.access)ge.access[Oe]=r.access[Oe];ge.addInitializer=function(He){if(q)throw new TypeError("Cannot add initializers after decoration has completed");c.push(f(He||null))};var Ne=(0,t[ie])(T==="accessor"?{get:B.get,set:B.set}:B[R],ge);if(T==="accessor"){if(Ne===void 0)continue;if(Ne===null||typeof Ne!="object")throw new TypeError("Object expected");(Y=f(Ne.get))&&(B.get=Y),(Y=f(Ne.set))&&(B.set=Y),(Y=f(Ne.init))&&s.unshift(Y)}else(Y=f(Ne))&&(T==="field"?s.unshift(Y):B[R]=Y)}I&&Object.defineProperty(I,r.name,B),q=!0}function ve(n,e,t){for(var r=arguments.length>2,s=0;s<e.length;s++)t=r?e[s].call(n,t):e[s].call(n);return r?t:void 0}function fe(n){return typeof n=="symbol"?n:"".concat(n)}function we(n,e,t){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(n,"name",{configurable:!0,value:t?"".concat(t," ",e):e})}function me(n,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,e)}function Pe(n,e,t,r){function s(c){return c instanceof t?c:new t(function(f){f(c)})}return new(t||(t=Promise))(function(c,f){function T(B){try{I(r.next(B))}catch(Y){f(Y)}}function R(B){try{I(r.throw(B))}catch(Y){f(Y)}}function I(B){B.done?c(B.value):s(B.value).then(T,R)}I((r=r.apply(n,e||[])).next())})}function pe(n,e){var t={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,s,c,f;return f={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function T(I){return function(B){return R([I,B])}}function R(I){if(r)throw new TypeError("Generator is already executing.");for(;f&&(f=0,I[0]&&(t=0)),t;)try{if(r=1,s&&(c=I[0]&2?s.return:I[0]?s.throw||((c=s.return)&&c.call(s),0):s.next)&&!(c=c.call(s,I[1])).done)return c;switch(s=0,c&&(I=[I[0]&2,c.value]),I[0]){case 0:case 1:c=I;break;case 4:return t.label++,{value:I[1],done:!1};case 5:t.label++,s=I[1],I=[0];continue;case 7:I=t.ops.pop(),t.trys.pop();continue;default:if(c=t.trys,!(c=c.length>0&&c[c.length-1])&&(I[0]===6||I[0]===2)){t=0;continue}if(I[0]===3&&(!c||I[1]>c[0]&&I[1]<c[3])){t.label=I[1];break}if(I[0]===6&&t.label<c[1]){t.label=c[1],c=I;break}if(c&&t.label<c[2]){t.label=c[2],t.ops.push(I);break}c[2]&&t.ops.pop(),t.trys.pop();continue}I=e.call(n,t)}catch(B){I=[6,B],s=0}finally{r=c=0}if(I[0]&5)throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}}var Ie=Object.create?function(n,e,t,r){r===void 0&&(r=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,r,s)}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]};function Je(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Ie(e,n,t)}function ke(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function De(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),s,c=[],f;try{for(;(e===void 0||e-- >0)&&!(s=r.next()).done;)c.push(s.value)}catch(T){f={error:T}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(f)throw f.error}}return c}function Fe(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(De(arguments[e]));return n}function Qe(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var r=Array(n),s=0,e=0;e<t;e++)for(var c=arguments[e],f=0,T=c.length;f<T;f++,s++)r[s]=c[f];return r}function qe(n,e,t){if(t||arguments.length===2)for(var r=0,s=e.length,c;r<s;r++)(c||!(r in e))&&(c||(c=Array.prototype.slice.call(e,0,r)),c[r]=e[r]);return n.concat(c||Array.prototype.slice.call(e))}function et(n){return this instanceof et?(this.v=n,this):new et(n)}function dt(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(n,e||[]),s,c=[];return s={},f("next"),f("throw"),f("return"),s[Symbol.asyncIterator]=function(){return this},s;function f(q){r[q]&&(s[q]=function(ie){return new Promise(function(ge,Oe){c.push([q,ie,ge,Oe])>1||T(q,ie)})})}function T(q,ie){try{R(r[q](ie))}catch(ge){Y(c[0][3],ge)}}function R(q){q.value instanceof et?Promise.resolve(q.value.v).then(I,B):Y(c[0][2],q)}function I(q){T("next",q)}function B(q){T("throw",q)}function Y(q,ie){q(ie),c.shift(),c.length&&T(c[0][0],c[0][1])}}function Ke(n){var e,t;return e={},r("next"),r("throw",function(s){throw s}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(s,c){e[s]=n[s]?function(f){return(t=!t)?{value:et(n[s](f)),done:!1}:c?c(f):f}:c}}function Ge(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof ke=="function"?ke(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(c){t[c]=n[c]&&function(f){return new Promise(function(T,R){f=n[c](f),s(T,R,f.done,f.value)})}}function s(c,f,T,R){Promise.resolve(R).then(function(I){c({value:I,done:T})},f)}}function wt(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n}var Vt=Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e};function gt(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&Ie(e,n,t);return Vt(e,n),e}function it(n){return n&&n.__esModule?n:{default:n}}function Le(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)}function ct(n,e,t,r,s){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!s:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?s.call(n,t):s?s.value=t:e.set(n,t),t}function at(n,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?e===n:n.has(e)}function jt(n,e,t){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var r;if(t){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");n.stack.push({value:e,dispose:r,async:t})}else t&&n.stack.push({async:!0});return e}var St=typeof SuppressedError=="function"?SuppressedError:function(n,e,t){var r=new Error(t);return r.name="SuppressedError",r.error=n,r.suppressed=e,r};function fn(n){function e(r){n.error=n.hasError?new St(r,n.error,"An error was suppressed during disposal."):r,n.hasError=!0}function t(){for(;n.stack.length;){var r=n.stack.pop();try{var s=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(s).then(t,function(c){return e(c),t()})}catch(c){e(c)}}if(n.hasError)throw n.error}return t()}var Xt={__extends:ne,__assign:Q,__rest:ue,__decorate:he,__param:Ee,__metadata:me,__awaiter:Pe,__generator:pe,__createBinding:Ie,__exportStar:Je,__values:ke,__read:De,__spread:Fe,__spreadArrays:Qe,__spreadArray:qe,__await:et,__asyncGenerator:dt,__asyncDelegator:Ke,__asyncValues:Ge,__makeTemplateObject:wt,__importStar:gt,__importDefault:it,__classPrivateFieldGet:Le,__classPrivateFieldSet:ct,__classPrivateFieldIn:at,__addDisposableResource:jt,__disposeResources:fn},Yt=o(38279),Rt=o.n(Yt);/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var Lt=function(e,t){return Lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(r[c]=s[c])},Lt(e,t)};function ze(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Lt(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var rt=function(){return rt=Object.assign||function(t){for(var r,s=1,c=arguments.length;s<c;s++){r=arguments[s];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(t[f]=r[f])}return t},rt.apply(this,arguments)};function tt(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(n);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(n,r[s])&&(t[r[s]]=n[r[s]]);return t}function de(n,e,t,r){var s=arguments.length,c=s<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(n,e,t,r);else for(var T=n.length-1;T>=0;T--)(f=n[T])&&(c=(s<3?f(c):s>3?f(e,t,c):f(e,t))||c);return s>3&&c&&Object.defineProperty(e,t,c),c}function ot(n,e){return function(t,r){e(t,r,n)}}function Et(n,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,e)}function Ht(n,e,t,r){function s(c){return c instanceof t?c:new t(function(f){f(c)})}return new(t||(t=Promise))(function(c,f){function T(B){try{I(r.next(B))}catch(Y){f(Y)}}function R(B){try{I(r.throw(B))}catch(Y){f(Y)}}function I(B){B.done?c(B.value):s(B.value).then(T,R)}I((r=r.apply(n,e||[])).next())})}function Jt(n,e){var t={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,s,c,f;return f={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function T(I){return function(B){return R([I,B])}}function R(I){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,s&&(c=I[0]&2?s.return:I[0]?s.throw||((c=s.return)&&c.call(s),0):s.next)&&!(c=c.call(s,I[1])).done)return c;switch(s=0,c&&(I=[I[0]&2,c.value]),I[0]){case 0:case 1:c=I;break;case 4:return t.label++,{value:I[1],done:!1};case 5:t.label++,s=I[1],I=[0];continue;case 7:I=t.ops.pop(),t.trys.pop();continue;default:if(c=t.trys,!(c=c.length>0&&c[c.length-1])&&(I[0]===6||I[0]===2)){t=0;continue}if(I[0]===3&&(!c||I[1]>c[0]&&I[1]<c[3])){t.label=I[1];break}if(I[0]===6&&t.label<c[1]){t.label=c[1],c=I;break}if(c&&t.label<c[2]){t.label=c[2],t.ops.push(I);break}c[2]&&t.ops.pop(),t.trys.pop();continue}I=e.call(n,t)}catch(B){I=[6,B],s=0}finally{r=c=0}if(I[0]&5)throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}}var Qt=Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]};function an(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Qt(e,n,t)}function Un(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function qt(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),s,c=[],f;try{for(;(e===void 0||e-- >0)&&!(s=r.next()).done;)c.push(s.value)}catch(T){f={error:T}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(f)throw f.error}}return c}function rn(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(qt(arguments[e]));return n}function cn(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var r=Array(n),s=0,e=0;e<t;e++)for(var c=arguments[e],f=0,T=c.length;f<T;f++,s++)r[s]=c[f];return r}function er(n,e,t){if(t||arguments.length===2)for(var r=0,s=e.length,c;r<s;r++)(c||!(r in e))&&(c||(c=Array.prototype.slice.call(e,0,r)),c[r]=e[r]);return n.concat(c||e)}function rr(n){return this instanceof rr?(this.v=n,this):new rr(n)}function nt(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(n,e||[]),s,c=[];return s={},f("next"),f("throw"),f("return"),s[Symbol.asyncIterator]=function(){return this},s;function f(q){r[q]&&(s[q]=function(ie){return new Promise(function(ge,Oe){c.push([q,ie,ge,Oe])>1||T(q,ie)})})}function T(q,ie){try{R(r[q](ie))}catch(ge){Y(c[0][3],ge)}}function R(q){q.value instanceof rr?Promise.resolve(q.value.v).then(I,B):Y(c[0][2],q)}function I(q){T("next",q)}function B(q){T("throw",q)}function Y(q,ie){q(ie),c.shift(),c.length&&T(c[0][0],c[0][1])}}function lr(n){var e,t;return e={},r("next"),r("throw",function(s){throw s}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(s,c){e[s]=n[s]?function(f){return(t=!t)?{value:rr(n[s](f)),done:s==="return"}:c?c(f):f}:c}}function Hn(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof Un=="function"?Un(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(c){t[c]=n[c]&&function(f){return new Promise(function(T,R){f=n[c](f),s(T,R,f.done,f.value)})}}function s(c,f,T,R){Promise.resolve(R).then(function(I){c({value:I,done:T})},f)}}function ut(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n}var bt=Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e};function We(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&Qt(e,n,t);return bt(e,n),e}function be(n){return n&&n.__esModule?n:{default:n}}function Ae(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)}function Ue(n,e,t,r,s){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!s:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?s.call(n,t):s?s.value=t:e.set(n,t),t}var $e=function(){function n(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return n}(),kt=function(){function n(){this.browser=new $e,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window!="undefined"}return n}(),lt=new kt;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(lt.wxa=!0,lt.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?lt.worker=!0:typeof navigator=="undefined"?(lt.node=!0,lt.svgSupported=!0):vt(navigator.userAgent,lt);function vt(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),s=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),c=n.match(/Edge?\/([\d.]+)/),f=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),s&&(t.ie=!0,t.version=s[1]),c&&(t.edge=!0,t.version=c[1],t.newEdge=+c[1].split(".")[0]>18),f&&(t.weChat=!0),e.svgSupported=typeof SVGRect!="undefined",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document!="undefined";var T=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in T||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in T)&&!("OTransition"in T),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var Ct=lt,Bt=12,mt="sans-serif",Zt=Bt+"px "+mt,zt=20,ln=100,An="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function En(n){var e={};if(typeof JSON=="undefined")return e;for(var t=0;t<n.length;t++){var r=String.fromCharCode(t+32),s=(n.charCodeAt(t)-zt)/ln;e[r]=s}return e}var Gn=En(An),Bn={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var n,e;return function(t,r){if(!n){var s=Bn.createCanvas();n=s&&s.getContext("2d")}if(n)return e!==r&&(e=n.font=r||Zt),n.measureText(t);t=t||"",r=r||Zt;var c=/(\d+)px/.exec(r),f=c&&+c[1]||Bt,T=0;if(r.indexOf("mono")>=0)T=f*t.length;else for(var R=0;R<t.length;R++){var I=Gn[t[R]];T+=I==null?f:I*f}return{width:T}}}(),loadImage:function(e,t,r){var s=new Image;return s.onload=t,s.onerror=r,s.src=e,s}};function pr(n){for(var e in Bn)n[e]&&(Bn[e]=n[e])}var _r=ta(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(n,e){return n["[object "+e+"]"]=!0,n},{}),na=ta(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(n,e){return n["[object "+e+"Array]"]=!0,n},{}),$n=Object.prototype.toString,qr=Array.prototype,Jr=qr.forEach,Aa=qr.filter,ya=qr.slice,$t=qr.map,wn=function(){}.constructor,Fn=wn?wn.prototype:null,Or="__proto__",vr=2311;function Ur(){return vr++}function Zr(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];typeof console!="undefined"&&console.error.apply(console,n)}function Kr(n){if(n==null||typeof n!="object")return n;var e=n,t=$n.call(n);if(t==="[object Array]"){if(!fa(n)){e=[];for(var r=0,s=n.length;r<s;r++)e[r]=Kr(n[r])}}else if(na[t]){if(!fa(n)){var c=n.constructor;if(c.from)e=c.from(n);else{e=new c(n.length);for(var r=0,s=n.length;r<s;r++)e[r]=n[r]}}}else if(!_r[t]&&!fa(n)&&!Os(n)){e={};for(var f in n)n.hasOwnProperty(f)&&f!==Or&&(e[f]=Kr(n[f]))}return e}function ba(n,e,t){if(!to(e)||!to(n))return t?Kr(e):n;for(var r in e)if(e.hasOwnProperty(r)&&r!==Or){var s=n[r],c=e[r];to(c)&&to(s)&&!La(c)&&!La(s)&&!Os(c)&&!Os(s)&&!fs(c)&&!fs(s)&&!fa(c)&&!fa(s)?ba(s,c,t):(t||!(r in n))&&(n[r]=Kr(e[r]))}return n}function Ri(n,e){for(var t=n[0],r=1,s=n.length;r<s;r++)t=ba(t,n[r],e);return t}function Ea(n,e){if(Object.assign)Object.assign(n,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Or&&(n[t]=e[t]);return n}function Pi(n,e,t){for(var r=Ua(e),s=0;s<r.length;s++){var c=r[s];(t?e[c]!=null:n[c]==null)&&(n[c]=e[c])}return n}var rs=Bn.createCanvas;function Ui(n,e){if(n){if(n.indexOf)return n.indexOf(e);for(var t=0,r=n.length;t<r;t++)if(n[t]===e)return t}return-1}function Cn(n,e){var t=n.prototype;function r(){}r.prototype=e.prototype,n.prototype=new r;for(var s in t)t.hasOwnProperty(s)&&(n.prototype[s]=t[s]);n.prototype.constructor=n,n.superClass=e}function Kn(n,e,t){if(n="prototype"in n?n.prototype:n,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),s=0;s<r.length;s++){var c=r[s];c!=="constructor"&&(t?e[c]!=null:n[c]==null)&&(n[c]=e[c])}else Pi(n,e,t)}function Pn(n){return!n||typeof n=="string"?!1:typeof n.length=="number"}function At(n,e,t){if(!!(n&&e))if(n.forEach&&n.forEach===Jr)n.forEach(e,t);else if(n.length===+n.length)for(var r=0,s=n.length;r<s;r++)e.call(t,n[r],r,n);else for(var c in n)n.hasOwnProperty(c)&&e.call(t,n[c],c,n)}function ar(n,e,t){if(!n)return[];if(!e)return gr(n);if(n.map&&n.map===$t)return n.map(e,t);for(var r=[],s=0,c=n.length;s<c;s++)r.push(e.call(t,n[s],s,n));return r}function ta(n,e,t,r){if(!!(n&&e)){for(var s=0,c=n.length;s<c;s++)t=e.call(r,t,n[s],s,n);return t}}function Yn(n,e,t){if(!n)return[];if(!e)return gr(n);if(n.filter&&n.filter===Aa)return n.filter(e,t);for(var r=[],s=0,c=n.length;s<c;s++)e.call(t,n[s],s,n)&&r.push(n[s]);return r}function Qa(n,e,t){if(!!(n&&e)){for(var r=0,s=n.length;r<s;r++)if(e.call(t,n[r],r,n))return n[r]}}function Ua(n){if(!n)return[];if(Object.keys)return Object.keys(n);var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push(t);return e}function Fi(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return function(){return n.apply(e,t.concat(ya.call(arguments)))}}var Xa=Fn&&ja(Fn.bind)?Fn.call.bind(Fn.bind):Fi;function $i(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return n.apply(this,e.concat(ya.call(arguments)))}}function La(n){return Array.isArray?Array.isArray(n):$n.call(n)==="[object Array]"}function ja(n){return typeof n=="function"}function ei(n){return typeof n=="string"}function Do(n){return $n.call(n)==="[object String]"}function yo(n){return typeof n=="number"}function to(n){var e=typeof n;return e==="function"||!!n&&e==="object"}function fs(n){return!!_r[$n.call(n)]}function cs(n){return!!na[$n.call(n)]}function Os(n){return typeof n=="object"&&typeof n.nodeType=="number"&&typeof n.ownerDocument=="object"}function vl(n){return n.colorStops!=null}function Ar(n){return n.image!=null}function Rn(n){return $n.call(n)==="[object RegExp]"}function Sr(n){return n!==n}function nn(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=0,r=n.length;t<r;t++)if(n[t]!=null)return n[t]}function sn(n,e){return n!=null?n:e}function Ot(n,e,t){return n!=null?n:e!=null?e:t}function gr(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return ya.apply(n,e)}function Gr(n){if(typeof n=="number")return[n,n,n,n];var e=n.length;return e===2?[n[0],n[1],n[0],n[1]]:e===3?[n[0],n[1],n[2],n[1]]:n}function Ln(n,e){if(!n)throw new Error(e)}function Tr(n){return n==null?null:typeof n.trim=="function"?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Dn="__ec_primitive__";function Pr(n){n[Dn]=!0}function fa(n){return n[Dn]}var ka=function(){function n(){this.data={}}return n.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},n.prototype.has=function(e){return this.data.hasOwnProperty(e)},n.prototype.get=function(e){return this.data[e]},n.prototype.set=function(e,t){return this.data[e]=t,this},n.prototype.keys=function(){return Ua(this.data)},n.prototype.forEach=function(e){var t=this.data;for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)},n}(),Li=typeof Map=="function";function zi(){return Li?new Map:new ka}var Mo=function(){function n(e){var t=La(e);this.data=zi();var r=this;e instanceof n?e.each(s):e&&At(e,s);function s(c,f){t?r.set(c,f):r.set(f,c)}}return n.prototype.hasKey=function(e){return this.data.has(e)},n.prototype.get=function(e){return this.data.get(e)},n.prototype.set=function(e,t){return this.data.set(e,t),t},n.prototype.each=function(e,t){this.data.forEach(function(r,s){e.call(t,r,s)})},n.prototype.keys=function(){var e=this.data.keys();return Li?Array.from(e):e},n.prototype.removeKey=function(e){this.data.delete(e)},n}();function Za(n){return new Mo(n)}function ao(n,e){for(var t=new n.constructor(n.length+e.length),r=0;r<n.length;r++)t[r]=n[r];for(var s=n.length,r=0;r<e.length;r++)t[r+s]=e[r];return t}function Mi(n,e){var t;if(Object.create)t=Object.create(n);else{var r=function(){};r.prototype=n,t=new r}return e&&Ea(t,e),t}function Eo(n){var e=n.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Xi(n,e){return n.hasOwnProperty(e)}function Bo(){}var ol=180/Math.PI;/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var Il=function(e,t){return Il=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(r[c]=s[c])},Il(e,t)};function ms(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Il(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var mc=function(){return mc=Object.assign||function(t){for(var r,s=1,c=arguments.length;s<c;s++){r=arguments[s];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(t[f]=r[f])}return t},mc.apply(this,arguments)};function Ys(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(n);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(n,r[s])&&(t[r[s]]=n[r[s]]);return t}function hl(n,e,t,r){var s=arguments.length,c=s<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(n,e,t,r);else for(var T=n.length-1;T>=0;T--)(f=n[T])&&(c=(s<3?f(c):s>3?f(e,t,c):f(e,t))||c);return s>3&&c&&Object.defineProperty(e,t,c),c}function Rs(n,e){return function(t,r){e(t,r,n)}}function xl(n,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,e)}function Wl(n,e,t,r){function s(c){return c instanceof t?c:new t(function(f){f(c)})}return new(t||(t=Promise))(function(c,f){function T(B){try{I(r.next(B))}catch(Y){f(Y)}}function R(B){try{I(r.throw(B))}catch(Y){f(Y)}}function I(B){B.done?c(B.value):s(B.value).then(T,R)}I((r=r.apply(n,e||[])).next())})}function _l(n,e){var t={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,s,c,f;return f={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function T(I){return function(B){return R([I,B])}}function R(I){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,s&&(c=I[0]&2?s.return:I[0]?s.throw||((c=s.return)&&c.call(s),0):s.next)&&!(c=c.call(s,I[1])).done)return c;switch(s=0,c&&(I=[I[0]&2,c.value]),I[0]){case 0:case 1:c=I;break;case 4:return t.label++,{value:I[1],done:!1};case 5:t.label++,s=I[1],I=[0];continue;case 7:I=t.ops.pop(),t.trys.pop();continue;default:if(c=t.trys,!(c=c.length>0&&c[c.length-1])&&(I[0]===6||I[0]===2)){t=0;continue}if(I[0]===3&&(!c||I[1]>c[0]&&I[1]<c[3])){t.label=I[1];break}if(I[0]===6&&t.label<c[1]){t.label=c[1],c=I;break}if(c&&t.label<c[2]){t.label=c[2],t.ops.push(I);break}c[2]&&t.ops.pop(),t.trys.pop();continue}I=e.call(n,t)}catch(B){I=[6,B],s=0}finally{r=c=0}if(I[0]&5)throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}}var Ls=Object.create?function(n,e,t,r){r===void 0&&(r=t),Object.defineProperty(n,r,{enumerable:!0,get:function(){return e[t]}})}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]};function zn(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Ls(e,n,t)}function Dr(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Hr(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),s,c=[],f;try{for(;(e===void 0||e-- >0)&&!(s=r.next()).done;)c.push(s.value)}catch(T){f={error:T}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(f)throw f.error}}return c}function _a(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(Hr(arguments[e]));return n}function Ti(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var r=Array(n),s=0,e=0;e<t;e++)for(var c=arguments[e],f=0,T=c.length;f<T;f++,s++)r[s]=c[f];return r}function Ci(n,e,t){if(t||arguments.length===2)for(var r=0,s=e.length,c;r<s;r++)(c||!(r in e))&&(c||(c=Array.prototype.slice.call(e,0,r)),c[r]=e[r]);return n.concat(c||e)}function da(n){return this instanceof da?(this.v=n,this):new da(n)}function Da(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(n,e||[]),s,c=[];return s={},f("next"),f("throw"),f("return"),s[Symbol.asyncIterator]=function(){return this},s;function f(q){r[q]&&(s[q]=function(ie){return new Promise(function(ge,Oe){c.push([q,ie,ge,Oe])>1||T(q,ie)})})}function T(q,ie){try{R(r[q](ie))}catch(ge){Y(c[0][3],ge)}}function R(q){q.value instanceof da?Promise.resolve(q.value.v).then(I,B):Y(c[0][2],q)}function I(q){T("next",q)}function B(q){T("throw",q)}function Y(q,ie){q(ie),c.shift(),c.length&&T(c[0][0],c[0][1])}}function mi(n){var e,t;return e={},r("next"),r("throw",function(s){throw s}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(s,c){e[s]=n[s]?function(f){return(t=!t)?{value:da(n[s](f)),done:s==="return"}:c?c(f):f}:c}}function Ho(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof Dr=="function"?Dr(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(c){t[c]=n[c]&&function(f){return new Promise(function(T,R){f=n[c](f),s(T,R,f.done,f.value)})}}function s(c,f,T,R){Promise.resolve(R).then(function(I){c({value:I,done:T})},f)}}function al(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n}var ml=Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e};function Xs(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&Ls(e,n,t);return ml(e,n),e}function Ps(n){return n&&n.__esModule?n:{default:n}}function dl(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)}function ql(n,e,t,r,s){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!s:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?s.call(n,t):s?s.value=t:e.set(n,t),t}function Dc(n,e){return n==null&&(n=0),e==null&&(e=0),[n,e]}function Jl(n,e){return n[0]=e[0],n[1]=e[1],n}function oc(n){return[n[0],n[1]]}function xu(n,e,t){return n[0]=e,n[1]=t,n}function yf(n,e,t){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n}function ku(n,e,t,r){return n[0]=e[0]+t[0]*r,n[1]=e[1]+t[1]*r,n}function Zc(n,e,t){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n}function Zu(n){return Math.sqrt(Hc(n))}var Fc=null;function Hc(n){return n[0]*n[0]+n[1]*n[1]}var Vu=null;function ws(n,e,t){return n[0]=e[0]*t[0],n[1]=e[1]*t[1],n}function fc(n,e,t){return n[0]=e[0]/t[0],n[1]=e[1]/t[1],n}function Tc(n,e){return n[0]*e[0]+n[1]*e[1]}function jc(n,e,t){return n[0]=e[0]*t,n[1]=e[1]*t,n}function lu(n,e){var t=Zu(e);return t===0?(n[0]=0,n[1]=0):(n[0]=e[0]/t,n[1]=e[1]/t),n}function hu(n,e){return Math.sqrt((n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1]))}var of=hu;function uu(n,e){return(n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1])}var zu=uu;function cf(n,e){return n[0]=-e[0],n[1]=-e[1],n}function bf(n,e,t,r){return n[0]=e[0]+r*(t[0]-e[0]),n[1]=e[1]+r*(t[1]-e[1]),n}function Cu(n,e,t){var r=e[0],s=e[1];return n[0]=t[0]*r+t[2]*s+t[4],n[1]=t[1]*r+t[3]*s+t[5],n}function rf(n,e,t){return n[0]=Math.min(e[0],t[0]),n[1]=Math.min(e[1],t[1]),n}function Bu(n,e,t){return n[0]=Math.max(e[0],t[0]),n[1]=Math.max(e[1],t[1]),n}var Tf=function(){function n(e,t){this.target=e,this.topTarget=t&&t.topTarget}return n}(),ed=function(){function n(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return n.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Tf(t,e),"dragstart",e.event))},n.prototype._drag=function(e){var t=this._draggingTarget;if(t){var r=e.offsetX,s=e.offsetY,c=r-this._x,f=s-this._y;this._x=r,this._y=s,t.drift(c,f,e),this.handler.dispatchToElement(new Tf(t,e),"drag",e.event);var T=this.handler.findHover(r,s,t).target,R=this._dropTarget;this._dropTarget=T,t!==T&&(R&&T!==R&&this.handler.dispatchToElement(new Tf(R,e),"dragleave",e.event),T&&T!==R&&this.handler.dispatchToElement(new Tf(T,e),"dragenter",e.event))}},n.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Tf(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Tf(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},n}(),Fd=ed,Pd=function(){function n(e){e&&(this._$eventProcessor=e)}return n.prototype.on=function(e,t,r,s){this._$handlers||(this._$handlers={});var c=this._$handlers;if(typeof t=="function"&&(s=r,r=t,t=null),!r||!e)return this;var f=this._$eventProcessor;t!=null&&f&&f.normalizeQuery&&(t=f.normalizeQuery(t)),c[e]||(c[e]=[]);for(var T=0;T<c[e].length;T++)if(c[e][T].h===r)return this;var R={h:r,query:t,ctx:s||this,callAtLast:r.zrEventfulCallAtLast},I=c[e].length-1,B=c[e][I];return B&&B.callAtLast?c[e].splice(I,0,R):c[e].push(R),this},n.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},n.prototype.off=function(e,t){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(t){if(r[e]){for(var s=[],c=0,f=r[e].length;c<f;c++)r[e][c].h!==t&&s.push(r[e][c]);r[e]=s}r[e]&&r[e].length===0&&delete r[e]}else delete r[e];return this},n.prototype.trigger=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!this._$handlers)return this;var s=this._$handlers[e],c=this._$eventProcessor;if(s)for(var f=t.length,T=s.length,R=0;R<T;R++){var I=s[R];if(!(c&&c.filter&&I.query!=null&&!c.filter(e,I.query)))switch(f){case 0:I.h.call(I.ctx);break;case 1:I.h.call(I.ctx,t[0]);break;case 2:I.h.call(I.ctx,t[0],t[1]);break;default:I.h.apply(I.ctx,t);break}}return c&&c.afterTrigger&&c.afterTrigger(e),this},n.prototype.triggerWithContext=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!this._$handlers)return this;var s=this._$handlers[e],c=this._$eventProcessor;if(s)for(var f=t.length,T=t[f-1],R=s.length,I=0;I<R;I++){var B=s[I];if(!(c&&c.filter&&B.query!=null&&!c.filter(e,B.query)))switch(f){case 0:B.h.call(T);break;case 1:B.h.call(T,t[0]);break;case 2:B.h.call(T,t[0],t[1]);break;default:B.h.apply(T,t.slice(1,f-1));break}}return c&&c.afterTrigger&&c.afterTrigger(e),this},n}(),Nc=Pd,eu=Math.log(2);function If(n,e,t,r,s,c){var f=r+"-"+s,T=n.length;if(c.hasOwnProperty(f))return c[f];if(e===1){var R=Math.round(Math.log((1<<T)-1&~s)/eu);return n[t][R]}for(var I=r|1<<t,B=t+1;r&1<<B;)B++;for(var Y=0,q=0,ie=0;q<T;q++){var ge=1<<q;ge&s||(Y+=(ie%2?-1:1)*n[t][q]*If(n,e-1,B,I,s|ge,c),ie++)}return c[f]=Y,Y}function $f(n,e){var t=[[n[0],n[1],1,0,0,0,-e[0]*n[0],-e[0]*n[1]],[0,0,0,n[0],n[1],1,-e[1]*n[0],-e[1]*n[1]],[n[2],n[3],1,0,0,0,-e[2]*n[2],-e[2]*n[3]],[0,0,0,n[2],n[3],1,-e[3]*n[2],-e[3]*n[3]],[n[4],n[5],1,0,0,0,-e[4]*n[4],-e[4]*n[5]],[0,0,0,n[4],n[5],1,-e[5]*n[4],-e[5]*n[5]],[n[6],n[7],1,0,0,0,-e[6]*n[6],-e[6]*n[7]],[0,0,0,n[6],n[7],1,-e[7]*n[6],-e[7]*n[7]]],r={},s=If(t,8,0,0,0,r);if(s!==0){for(var c=[],f=0;f<8;f++)for(var T=0;T<8;T++)c[T]==null&&(c[T]=0),c[T]+=((f+T)%2?-1:1)*If(t,7,f===0?1:0,1<<f,1<<T,r)/s*e[f];return function(R,I,B){var Y=I*c[6]+B*c[7]+1;R[0]=(I*c[0]+B*c[1]+c[2])/Y,R[1]=(I*c[3]+B*c[4]+c[5])/Y}}}var Te="___zrEVENTSAVED",_t=[];function Vn(n,e,t,r,s){return br(_t,e,r,s,!0)&&br(n,t,_t[0],_t[1])}function br(n,e,t,r,s){if(e.getBoundingClientRect&&Ct.domSupported&&!on(e)){var c=e[Te]||(e[Te]={}),f=tn(e,c),T=Pt(f,c,s);if(T)return T(n,t,r),!0}return!1}function tn(n,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var r=["left","right"],s=["top","bottom"],c=0;c<4;c++){var f=document.createElement("div"),T=f.style,R=c%2,I=(c>>1)%2;T.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[R]+":0",s[I]+":0",r[1-R]+":auto",s[1-I]+":auto",""].join("!important;"),n.appendChild(f),t.push(f)}return t}function Pt(n,e,t){for(var r=t?"invTrans":"trans",s=e[r],c=e.srcCoords,f=[],T=[],R=!0,I=0;I<4;I++){var B=n[I].getBoundingClientRect(),Y=2*I,q=B.left,ie=B.top;f.push(q,ie),R=R&&c&&q===c[Y]&&ie===c[Y+1],T.push(n[I].offsetLeft,n[I].offsetTop)}return R&&s?s:(e.srcCoords=f,e[r]=t?$f(T,f):$f(f,T))}function on(n){return n.nodeName.toUpperCase()==="CANVAS"}var _n=/([&<>"'])/g,ir={"&":"&","<":"<",">":">",'"':""","'":"'"};function xr(n){return n==null?"":(n+"").replace(_n,function(e,t){return ir[t]})}var aa=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,oi=[],ni=Ct.browser.firefox&&+Ct.browser.version.split(".")[0]<39;function yi(n,e,t,r){return t=t||{},r?Zo(n,e,t):ni&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Zo(n,e,t),t}function Zo(n,e,t){if(Ct.domSupported&&n.getBoundingClientRect){var r=e.clientX,s=e.clientY;if(on(n)){var c=n.getBoundingClientRect();t.zrX=r-c.left,t.zrY=s-c.top;return}else if(br(oi,n,r,s)){t.zrX=oi[0],t.zrY=oi[1];return}}t.zrX=t.zrY=0}function is(n){return n||window.event}function mo(n,e,t){if(e=is(e),e.zrX!=null)return e;var r=e.type,s=r&&r.indexOf("touch")>=0;if(s){var f=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];f&&yi(n,f,e,t)}else{yi(n,e,e,t);var c=Ml(e);e.zrDelta=c?c/120:-(e.detail||0)/3}var T=e.button;return e.which==null&&T!==void 0&&aa.test(e.type)&&(e.which=T&1?1:T&2?3:T&4?2:0),e}function Ml(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var s=Math.abs(r!==0?r:t),c=r>0?-1:r<0?1:t>0?-1:1;return 3*s*c}function yc(n,e,t,r){n.addEventListener(e,t,r)}function oa(n,e,t,r){n.removeEventListener(e,t,r)}var sl=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function fl(n){return n.which===2||n.which===3}var bc=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var s=e.touches;if(!!s){for(var c={points:[],touches:[],target:t,event:e},f=0,T=s.length;f<T;f++){var R=s[f],I=yi(r,R,{});c.points.push([I.zrX,I.zrY]),c.touches.push(R)}this._track.push(c)}},n.prototype._recognize=function(e){for(var t in ff)if(ff.hasOwnProperty(t)){var r=ff[t](this._track,e);if(r)return r}},n}();function Rf(n){var e=n[1][0]-n[0][0],t=n[1][1]-n[0][1];return Math.sqrt(e*e+t*t)}function Ms(n){return[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]}var ff={pinch:function(e,t){var r=e.length;if(!!r){var s=(e[r-1]||{}).points,c=(e[r-2]||{}).points||s;if(c&&c.length>1&&s&&s.length>1){var f=Rf(s)/Rf(c);!isFinite(f)&&(f=1),t.pinchScale=f;var T=Ms(s);return t.pinchX=T[0],t.pinchY=T[1],{type:"pinch",target:e[0].target,event:t}}}}};function Df(){return[1,0,0,1,0,0]}function Ff(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function Kf(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function xf(n,e,t){var r=e[0]*t[0]+e[2]*t[1],s=e[1]*t[0]+e[3]*t[1],c=e[0]*t[2]+e[2]*t[3],f=e[1]*t[2]+e[3]*t[3],T=e[0]*t[4]+e[2]*t[5]+e[4],R=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=s,n[2]=c,n[3]=f,n[4]=T,n[5]=R,n}function Sc(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function Wu(n,e,t){var r=e[0],s=e[2],c=e[4],f=e[1],T=e[3],R=e[5],I=Math.sin(t),B=Math.cos(t);return n[0]=r*B+f*I,n[1]=-r*I+f*B,n[2]=s*B+T*I,n[3]=-s*I+B*T,n[4]=B*c+I*R,n[5]=B*R-I*c,n}function Du(n,e,t){var r=t[0],s=t[1];return n[0]=e[0]*r,n[1]=e[1]*s,n[2]=e[2]*r,n[3]=e[3]*s,n[4]=e[4]*r,n[5]=e[5]*s,n}function Gd(n,e){var t=e[0],r=e[2],s=e[4],c=e[1],f=e[3],T=e[5],R=t*f-c*r;return R?(R=1/R,n[0]=f*R,n[1]=-c*R,n[2]=-r*R,n[3]=t*R,n[4]=(r*T-f*s)*R,n[5]=(c*s-t*T)*R,n):null}function gf(n){var e=Df();return Kf(e,n),e}var Vp=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(!!e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,s){e.x=t.x+r.x*s,e.y=t.y+r.y*s},n.lerp=function(e,t,r,s){var c=1-s;e.x=c*t.x+s*r.x,e.y=c*t.y+s*r.y},n}(),$c=Vp,Yl=Math.min,Sp=Math.max,tp=new $c,Rp=new $c,df=new $c,uf=new $c,Af=new $c,Wn=new $c,ca=function(){function n(e,t,r,s){r<0&&(e=e+r,r=-r),s<0&&(t=t+s,s=-s),this.x=e,this.y=t,this.width=r,this.height=s}return n.prototype.union=function(e){var t=Yl(e.x,this.x),r=Yl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Sp(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Sp(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,s=e.height/t.height,c=Df();return Sc(c,c,[-t.x,-t.y]),Du(c,c,[r,s]),Sc(c,c,[e.x,e.y]),c},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,s=r.x,c=r.x+r.width,f=r.y,T=r.y+r.height,R=e.x,I=e.x+e.width,B=e.y,Y=e.y+e.height,q=!(c<R||I<s||T<B||Y<f);if(t){var ie=Infinity,ge=0,Oe=Math.abs(c-R),Ne=Math.abs(I-s),He=Math.abs(T-B),st=Math.abs(Y-f),pt=Math.min(Oe,Ne),Ut=Math.min(He,st);c<R||I<s?pt>ge&&(ge=pt,Oe<Ne?$c.set(Wn,-Oe,0):$c.set(Wn,Ne,0)):pt<ie&&(ie=pt,Oe<Ne?$c.set(Af,Oe,0):$c.set(Af,-Ne,0)),T<B||Y<f?Ut>ge&&(ge=Ut,He<st?$c.set(Wn,0,-He):$c.set(Wn,0,st)):pt<ie&&(ie=pt,He<st?$c.set(Af,0,He):$c.set(Af,0,-st))}return t&&$c.copy(t,q?Af:Wn),q},n.prototype.contain=function(e,t){var r=this;return e>=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var s=r[0],c=r[3],f=r[4],T=r[5];e.x=t.x*s+f,e.y=t.y*c+T,e.width=t.width*s,e.height=t.height*c,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}tp.x=df.x=t.x,tp.y=uf.y=t.y,Rp.x=uf.x=t.x+t.width,Rp.y=df.y=t.y+t.height,tp.transform(r),uf.transform(r),Rp.transform(r),df.transform(r),e.x=Yl(tp.x,Rp.x,df.x,uf.x),e.y=Yl(tp.y,Rp.y,df.y,uf.y);var R=Sp(tp.x,Rp.x,df.x,uf.x),I=Sp(tp.y,Rp.y,df.y,uf.y);e.width=R-e.x,e.height=I-e.y},n}(),ra=ca,Na="silent";function fi(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:so}}function so(){sl(this.event)}var vo=function(n){ms(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Nc),Ro=function(){function n(e,t){this.x=e,this.y=t}return n}(),So=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],el=new ra(0,0,0,0),ul=function(n){ms(e,n);function e(t,r,s,c,f){var T=n.call(this)||this;return T._hovered=new Ro(0,0),T.storage=t,T.painter=r,T.painterRoot=c,T._pointerSize=f,s=s||new vo,T.proxy=null,T.setHandlerProxy(s),T._draggingMgr=new Fd(T),T}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(At(So,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,s=t.zrY,c=Zs(this,r,s),f=this._hovered,T=f.target;T&&!T.__zr&&(f=this.findHover(f.x,f.y),T=f.target);var R=this._hovered=c?new Ro(r,s):this.findHover(r,s),I=R.target,B=this.proxy;B.setCursor&&B.setCursor(I?I.cursor:"default"),T&&I!==T&&this.dispatchToElement(f,"mouseout",t),this.dispatchToElement(R,"mousemove",t),I&&I!==T&&this.dispatchToElement(R,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ro(0,0)},e.prototype.dispatch=function(t,r){var s=this[t];s&&s.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,s){t=t||{};var c=t.target;if(!(c&&c.silent)){for(var f="on"+r,T=fi(r,t,s);c&&(c[f]&&(T.cancelBubble=!!c[f].call(c,T)),c.trigger(r,T),c=c.__hostTarget?c.__hostTarget:c.parent,!T.cancelBubble););T.cancelBubble||(this.trigger(r,T),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(R){typeof R[f]=="function"&&R[f].call(R,T),R.trigger&&R.trigger(r,T)}))}},e.prototype.findHover=function(t,r,s){var c=this.storage.getDisplayList(),f=new Ro(t,r);if(lo(c,f,t,r,s),this._pointerSize&&!f.target){for(var T=[],R=this._pointerSize,I=R/2,B=new ra(t-I,r-I,R,R),Y=c.length-1;Y>=0;Y--){var q=c[Y];q!==s&&!q.ignore&&!q.ignoreCoarsePointer&&(!q.parent||!q.parent.ignoreCoarsePointer)&&(el.copy(q.getBoundingRect()),q.transform&&el.applyTransform(q.transform),el.intersect(B)&&T.push(q))}if(T.length)for(var ie=4,ge=Math.PI/12,Oe=Math.PI*2,Ne=0;Ne<I;Ne+=ie)for(var He=0;He<Oe;He+=ge){var st=t+Ne*Math.cos(He),pt=r+Ne*Math.sin(He);if(lo(T,f,st,pt,s),f.target)return f}}return f},e.prototype.processGesture=function(t,r){this._gestureMgr||(this._gestureMgr=new bc);var s=this._gestureMgr;r==="start"&&s.clear();var c=s.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(r==="end"&&s.clear(),c){var f=c.type;t.gestureEvent=f;var T=new Ro;T.target=c.target,this.dispatchToElement(T,f,c.event)}},e}(Nc);At(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){ul.prototype[n]=function(e){var t=e.zrX,r=e.zrY,s=Zs(this,t,r),c,f;if((n!=="mouseup"||!s)&&(c=this.findHover(t,r),f=c.target),n==="mousedown")this._downEl=f,this._downPoint=[e.zrX,e.zrY],this._upEl=f;else if(n==="mouseup")this._upEl=f;else if(n==="click"){if(this._downEl!==this._upEl||!this._downPoint||of(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(c,n,e)}});function Xo(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,s=void 0,c=!1;r;){if(r.ignoreClip&&(c=!0),!c){var f=r.getClipPath();if(f&&!f.contain(e,t))return!1;r.silent&&(s=!0)}var T=r.__hostTarget;r=T||r.parent}return s?Na:!0}return!1}function lo(n,e,t,r,s){for(var c=n.length-1;c>=0;c--){var f=n[c],T=void 0;if(f!==s&&!f.ignore&&(T=Xo(f,t,r))&&(!e.topTarget&&(e.topTarget=f),T!==Na)){e.target=f;break}}}function Zs(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}var Gs=ul,$s=32,Qn=7,dr=256;function Xr(n){for(var e=0;n>=$s;)e|=n&1,n>>=1;return n+e}function la(n,e,t,r){var s=e+1;if(s===t)return 1;if(r(n[s++],n[e])<0){for(;s<t&&r(n[s],n[s-1])<0;)s++;Ra(n,e,s)}else for(;s<t&&r(n[s],n[s-1])>=0;)s++;return s-e}function Ra(n,e,t){for(t--;e<t;){var r=n[e];n[e++]=n[t],n[t--]=r}}function _i(n,e,t,r,s){for(r===e&&r++;r<t;r++){for(var c=n[r],f=e,T=r,R;f<T;)R=f+T>>>1,s(c,n[R])<0?T=R:f=R+1;var I=r-f;switch(I){case 3:n[f+3]=n[f+2];case 2:n[f+2]=n[f+1];case 1:n[f+1]=n[f];break;default:for(;I>0;)n[f+I]=n[f+I-1],I--}n[f]=c}}function ui(n,e,t,r,s,c){var f=0,T=0,R=1;if(c(n,e[t+s])>0){for(T=r-s;R<T&&c(n,e[t+s+R])>0;)f=R,R=(R<<1)+1,R<=0&&(R=T);R>T&&(R=T),f+=s,R+=s}else{for(T=s+1;R<T&&c(n,e[t+s-R])<=0;)f=R,R=(R<<1)+1,R<=0&&(R=T);R>T&&(R=T);var I=f;f=s-R,R=s-I}for(f++;f<R;){var B=f+(R-f>>>1);c(n,e[t+B])>0?f=B+1:R=B}return R}function ho(n,e,t,r,s,c){var f=0,T=0,R=1;if(c(n,e[t+s])<0){for(T=s+1;R<T&&c(n,e[t+s-R])<0;)f=R,R=(R<<1)+1,R<=0&&(R=T);R>T&&(R=T);var I=f;f=s-R,R=s-I}else{for(T=r-s;R<T&&c(n,e[t+s+R])>=0;)f=R,R=(R<<1)+1,R<=0&&(R=T);R>T&&(R=T),f+=s,R+=s}for(f++;f<R;){var B=f+(R-f>>>1);c(n,e[t+B])<0?R=B:f=B+1}return R}function Oi(n,e){var t=Qn,r=0,s=dr,c=0,f,T,R=0;r=n.length,r<2*dr&&(s=r>>>1);var I=[];c=r<120?5:r<1542?10:r<119151?19:40,f=[],T=[];function B(Ne,He){f[R]=Ne,T[R]=He,R+=1}function Y(){for(;R>1;){var Ne=R-2;if(Ne>=1&&T[Ne-1]<=T[Ne]+T[Ne+1]||Ne>=2&&T[Ne-2]<=T[Ne]+T[Ne-1])T[Ne-1]<T[Ne+1]&&Ne--;else if(T[Ne]>T[Ne+1])break;ie(Ne)}}function q(){for(;R>1;){var Ne=R-2;Ne>0&&T[Ne-1]<T[Ne+1]&&Ne--,ie(Ne)}}function ie(Ne){var He=f[Ne],st=T[Ne],pt=f[Ne+1],Ut=T[Ne+1];T[Ne]=st+Ut,Ne===R-3&&(f[Ne+1]=f[Ne+2],T[Ne+1]=T[Ne+2]),R--;var pn=ho(n[pt],n,He,st,0,e);He+=pn,st-=pn,st!==0&&(Ut=ui(n[He+st-1],n,pt,Ut,Ut-1,e),Ut!==0&&(st<=Ut?ge(He,st,pt,Ut):Oe(He,st,pt,Ut)))}function ge(Ne,He,st,pt){var Ut=0;for(Ut=0;Ut<He;Ut++)I[Ut]=n[Ne+Ut];var pn=0,yn=st,jn=Ne;if(n[jn++]=n[yn++],--pt==0){for(Ut=0;Ut<He;Ut++)n[jn+Ut]=I[pn+Ut];return}if(He===1){for(Ut=0;Ut<pt;Ut++)n[jn+Ut]=n[yn+Ut];n[jn+pt]=I[pn];return}for(var Cr=t,Nr,Rr,Er;;){Nr=0,Rr=0,Er=!1;do if(e(n[yn],I[pn])<0){if(n[jn++]=n[yn++],Rr++,Nr=0,--pt==0){Er=!0;break}}else if(n[jn++]=I[pn++],Nr++,Rr=0,--He==1){Er=!0;break}while((Nr|Rr)<Cr);if(Er)break;do{if(Nr=ho(n[yn],I,pn,He,0,e),Nr!==0){for(Ut=0;Ut<Nr;Ut++)n[jn+Ut]=I[pn+Ut];if(jn+=Nr,pn+=Nr,He-=Nr,He<=1){Er=!0;break}}if(n[jn++]=n[yn++],--pt==0){Er=!0;break}if(Rr=ui(I[pn],n,yn,pt,0,e),Rr!==0){for(Ut=0;Ut<Rr;Ut++)n[jn+Ut]=n[yn+Ut];if(jn+=Rr,yn+=Rr,pt-=Rr,pt===0){Er=!0;break}}if(n[jn++]=I[pn++],--He==1){Er=!0;break}Cr--}while(Nr>=Qn||Rr>=Qn);if(Er)break;Cr<0&&(Cr=0),Cr+=2}if(t=Cr,t<1&&(t=1),He===1){for(Ut=0;Ut<pt;Ut++)n[jn+Ut]=n[yn+Ut];n[jn+pt]=I[pn]}else{if(He===0)throw new Error;for(Ut=0;Ut<He;Ut++)n[jn+Ut]=I[pn+Ut]}}function Oe(Ne,He,st,pt){var Ut=0;for(Ut=0;Ut<pt;Ut++)I[Ut]=n[st+Ut];var pn=Ne+He-1,yn=pt-1,jn=st+pt-1,Cr=0,Nr=0;if(n[jn--]=n[pn--],--He==0){for(Cr=jn-(pt-1),Ut=0;Ut<pt;Ut++)n[Cr+Ut]=I[Ut];return}if(pt===1){for(jn-=He,pn-=He,Nr=jn+1,Cr=pn+1,Ut=He-1;Ut>=0;Ut--)n[Nr+Ut]=n[Cr+Ut];n[jn]=I[yn];return}for(var Rr=t;;){var Er=0,ma=0,wa=!1;do if(e(I[yn],n[pn])<0){if(n[jn--]=n[pn--],Er++,ma=0,--He==0){wa=!0;break}}else if(n[jn--]=I[yn--],ma++,Er=0,--pt==1){wa=!0;break}while((Er|ma)<Rr);if(wa)break;do{if(Er=He-ho(I[yn],n,Ne,He,He-1,e),Er!==0){for(jn-=Er,pn-=Er,He-=Er,Nr=jn+1,Cr=pn+1,Ut=Er-1;Ut>=0;Ut--)n[Nr+Ut]=n[Cr+Ut];if(He===0){wa=!0;break}}if(n[jn--]=I[yn--],--pt==1){wa=!0;break}if(ma=pt-ui(n[pn],I,0,pt,pt-1,e),ma!==0){for(jn-=ma,yn-=ma,pt-=ma,Nr=jn+1,Cr=yn+1,Ut=0;Ut<ma;Ut++)n[Nr+Ut]=I[Cr+Ut];if(pt<=1){wa=!0;break}}if(n[jn--]=n[pn--],--He==0){wa=!0;break}Rr--}while(Er>=Qn||ma>=Qn);if(wa)break;Rr<0&&(Rr=0),Rr+=2}if(t=Rr,t<1&&(t=1),pt===1){for(jn-=He,pn-=He,Nr=jn+1,Cr=pn+1,Ut=He-1;Ut>=0;Ut--)n[Nr+Ut]=n[Cr+Ut];n[jn]=I[yn]}else{if(pt===0)throw new Error;for(Cr=jn-(pt-1),Ut=0;Ut<pt;Ut++)n[Cr+Ut]=I[Ut]}}return{mergeRuns:Y,forceMergeRuns:q,pushRun:B}}function Fo(n,e,t,r){t||(t=0),r||(r=n.length);var s=r-t;if(!(s<2)){var c=0;if(s<$s){c=la(n,t,r,e),_i(n,t,r,t+c,e);return}var f=Oi(n,e),T=Xr(s);do{if(c=la(n,t,r,e),c<T){var R=s;R>T&&(R=T),_i(n,t,t+R,t+c,e),c=R}f.pushRun(t,c),f.mergeRuns(),s-=c,t+=c}while(s!==0);f.forceMergeRuns()}}var as=1,Fs=2,Fr=4,tl=!1;function Js(){tl||(tl=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Us(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var os=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Us}return n.prototype.traverse=function(e,t){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,t)},n.prototype.getDisplayList=function(e,t){t=t||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(t),r},n.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,r=this._displayList,s=0,c=t.length;s<c;s++)this._updateAndAddDisplayable(t[s],null,e);r.length=this._displayListLen,Fo(r,Us)},n.prototype._updateAndAddDisplayable=function(e,t,r){if(!(e.ignore&&!r)){e.beforeUpdate(),e.update(),e.afterUpdate();var s=e.getClipPath();if(e.ignoreClip)t=null;else if(s){t?t=t.slice():t=[];for(var c=s,f=e;c;)c.parent=f,c.updateTransform(),t.push(c),f=c,c=c.getClipPath()}if(e.childrenRef){for(var T=e.childrenRef(),R=0;R<T.length;R++){var I=T[R];e.__dirty&&(I.__dirty|=as),this._updateAndAddDisplayable(I,t,r)}e.__dirty=0}else{var B=e;t&&t.length?B.__clipPaths=t:B.__clipPaths&&B.__clipPaths.length>0&&(B.__clipPaths=[]),isNaN(B.z)&&(Js(),B.z=0),isNaN(B.z2)&&(Js(),B.z2=0),isNaN(B.zlevel)&&(Js(),B.zlevel=0),this._displayList[this._displayListLen++]=B}var Y=e.getDecalElement&&e.getDecalElement();Y&&this._updateAndAddDisplayable(Y,t,r);var q=e.getTextGuideLine();q&&this._updateAndAddDisplayable(q,t,r);var ie=e.getTextContent();ie&&this._updateAndAddDisplayable(ie,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t<r;t++)this.delRoot(e[t]);return}var s=Ui(this._roots,e);s>=0&&this._roots.splice(s,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}(),El=os,Bs;Bs=Ct.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};var gc=Bs,kr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,s=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=s/4):t=s*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/s)))},elasticOut:function(e){var t,r=.1,s=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=s/4):t=s*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/s)+1)},elasticInOut:function(e){var t,r=.1,s=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=s/4):t=s*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/s)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/s)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-kr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?kr.bounceIn(e*2)*.5:kr.bounceOut(e*2-1)*.5+.5}},Sa=kr,Hi=Math.pow,Co=Math.sqrt,Ds=1e-8,Dl=1e-4,Xc=Co(3),Fl=1/3,Eu=Dc(),cc=Dc(),Hu=Dc();function dc(n){return n>-Ds&&n<Ds}function iu(n){return n>Ds||n<-Ds}function Gc(n,e,t,r,s){var c=1-s;return c*c*(c*n+3*s*e)+s*s*(s*r+3*c*t)}function Jc(n,e,t,r,s){var c=1-s;return 3*(((e-n)*c+2*(t-e)*s)*c+(r-t)*s*s)}function pf(n,e,t,r,s,c){var f=r+3*(e-t)-n,T=3*(t-e*2+n),R=3*(e-n),I=n-s,B=T*T-3*f*R,Y=T*R-9*f*I,q=R*R-3*T*I,ie=0;if(dc(B)&&dc(Y))if(dc(T))c[0]=0;else{var ge=-R/T;ge>=0&&ge<=1&&(c[ie++]=ge)}else{var Oe=Y*Y-4*B*q;if(dc(Oe)){var Ne=Y/B,ge=-T/f+Ne,He=-Ne/2;ge>=0&&ge<=1&&(c[ie++]=ge),He>=0&&He<=1&&(c[ie++]=He)}else if(Oe>0){var st=Co(Oe),pt=B*T+1.5*f*(-Y+st),Ut=B*T+1.5*f*(-Y-st);pt<0?pt=-Hi(-pt,Fl):pt=Hi(pt,Fl),Ut<0?Ut=-Hi(-Ut,Fl):Ut=Hi(Ut,Fl);var ge=(-T-(pt+Ut))/(3*f);ge>=0&&ge<=1&&(c[ie++]=ge)}else{var pn=(2*B*T-3*f*Y)/(2*Co(B*B*B)),yn=Math.acos(pn)/3,jn=Co(B),Cr=Math.cos(yn),ge=(-T-2*jn*Cr)/(3*f),He=(-T+jn*(Cr+Xc*Math.sin(yn)))/(3*f),Nr=(-T+jn*(Cr-Xc*Math.sin(yn)))/(3*f);ge>=0&&ge<=1&&(c[ie++]=ge),He>=0&&He<=1&&(c[ie++]=He),Nr>=0&&Nr<=1&&(c[ie++]=Nr)}}return ie}function hn(n,e,t,r,s){var c=6*t-12*e+6*n,f=9*e+3*r-3*n-9*t,T=3*e-3*n,R=0;if(dc(f)){if(iu(c)){var I=-T/c;I>=0&&I<=1&&(s[R++]=I)}}else{var B=c*c-4*f*T;if(dc(B))s[0]=-c/(2*f);else if(B>0){var Y=Co(B),I=(-c+Y)/(2*f),q=(-c-Y)/(2*f);I>=0&&I<=1&&(s[R++]=I),q>=0&&q<=1&&(s[R++]=q)}}return R}function dn(n,e,t,r,s,c){var f=(e-n)*s+n,T=(t-e)*s+e,R=(r-t)*s+t,I=(T-f)*s+f,B=(R-T)*s+T,Y=(B-I)*s+I;c[0]=n,c[1]=f,c[2]=I,c[3]=Y,c[4]=Y,c[5]=B,c[6]=R,c[7]=r}function tr(n,e,t,r,s,c,f,T,R,I,B){var Y,q=.005,ie=Infinity,ge,Oe,Ne,He;Eu[0]=R,Eu[1]=I;for(var st=0;st<1;st+=.05)cc[0]=Gc(n,t,s,f,st),cc[1]=Gc(e,r,c,T,st),Ne=zu(Eu,cc),Ne<ie&&(Y=st,ie=Ne);ie=Infinity;for(var pt=0;pt<32&&!(q<Dl);pt++)ge=Y-q,Oe=Y+q,cc[0]=Gc(n,t,s,f,ge),cc[1]=Gc(e,r,c,T,ge),Ne=zu(cc,Eu),ge>=0&&Ne<ie?(Y=ge,ie=Ne):(Hu[0]=Gc(n,t,s,f,Oe),Hu[1]=Gc(e,r,c,T,Oe),He=zu(Hu,Eu),Oe<=1&&He<ie?(Y=Oe,ie=He):q*=.5);return B&&(B[0]=Gc(n,t,s,f,Y),B[1]=Gc(e,r,c,T,Y)),Co(ie)}function Mn(n,e,t,r,s,c,f,T,R){for(var I=n,B=e,Y=0,q=1/R,ie=1;ie<=R;ie++){var ge=ie*q,Oe=Gc(n,t,s,f,ge),Ne=Gc(e,r,c,T,ge),He=Oe-I,st=Ne-B;Y+=Math.sqrt(He*He+st*st),I=Oe,B=Ne}return Y}function Lr(n,e,t,r){var s=1-r;return s*(s*n+2*r*e)+r*r*t}function sa(n,e,t,r){return 2*((1-r)*(e-n)+r*(t-e))}function Ma(n,e,t,r,s){var c=n-2*e+t,f=2*(e-n),T=n-r,R=0;if(dc(c)){if(iu(f)){var I=-T/f;I>=0&&I<=1&&(s[R++]=I)}}else{var B=f*f-4*c*T;if(dc(B)){var I=-f/(2*c);I>=0&&I<=1&&(s[R++]=I)}else if(B>0){var Y=Co(B),I=(-f+Y)/(2*c),q=(-f-Y)/(2*c);I>=0&&I<=1&&(s[R++]=I),q>=0&&q<=1&&(s[R++]=q)}}return R}function Ia(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function Ja(n,e,t,r,s){var c=(e-n)*r+n,f=(t-e)*r+e,T=(f-c)*r+c;s[0]=n,s[1]=c,s[2]=T,s[3]=T,s[4]=f,s[5]=t}function pi(n,e,t,r,s,c,f,T,R){var I,B=.005,Y=Infinity;Eu[0]=f,Eu[1]=T;for(var q=0;q<1;q+=.05){cc[0]=Lr(n,t,s,q),cc[1]=Lr(e,r,c,q);var ie=zu(Eu,cc);ie<Y&&(I=q,Y=ie)}Y=Infinity;for(var ge=0;ge<32&&!(B<Dl);ge++){var Oe=I-B,Ne=I+B;cc[0]=Lr(n,t,s,Oe),cc[1]=Lr(e,r,c,Oe);var ie=zu(cc,Eu);if(Oe>=0&&ie<Y)I=Oe,Y=ie;else{Hu[0]=Lr(n,t,s,Ne),Hu[1]=Lr(e,r,c,Ne);var He=zu(Hu,Eu);Ne<=1&&He<Y?(I=Ne,Y=He):B*=.5}}return R&&(R[0]=Lr(n,t,s,I),R[1]=Lr(e,r,c,I)),Co(Y)}function fo(n,e,t,r,s,c,f){for(var T=n,R=e,I=0,B=1/f,Y=1;Y<=f;Y++){var q=Y*B,ie=Lr(n,t,s,q),ge=Lr(e,r,c,q),Oe=ie-T,Ne=ge-R;I+=Math.sqrt(Oe*Oe+Ne*Ne),T=ie,R=ge}return I}var us=/cubic-bezier\(([0-9,\.e ]+)\)/;function xo(n){var e=n&&us.exec(n);if(e){var t=e[1].split(","),r=+Tr(t[0]),s=+Tr(t[1]),c=+Tr(t[2]),f=+Tr(t[3]);if(isNaN(r+s+c+f))return;var T=[];return function(R){return R<=0?0:R>=1?1:pf(0,r,c,1,R,T)&&Gc(0,s,f,1,T[0])}}}var Qo=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Bo,this.ondestroy=e.ondestroy||Bo,this.onrestart=e.onrestart||Bo,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,s=e-this._startTime-this._pausedTime,c=s/r;c<0&&(c=0),c=Math.min(c,1);var f=this.easingFunc,T=f?f(c):c;if(this.onframe(T),c===1)if(this.loop){var R=s%r;this._startTime=e-R,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ja(e)?e:Sa[e]||xo(e)},n}(),gs=Qo,ds=function(){function n(e){this.value=e}return n}(),nl=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new ds(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),nc=function(){function n(e){this._list=new nl,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,s=this._map,c=null;if(s[e]==null){var f=r.len(),T=this._lastRemovedEntry;if(f>=this._maxSize&&f>0){var R=r.head;r.remove(R),delete s[R.key],c=R.value,this._lastRemovedEntry=R}T?T.value=t:T=new ds(t),T.key=e,r.insertEntry(T),s[e]=T}return c},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}(),Kl=nc,mu={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function xc(n){return n=Math.round(n),n<0?0:n>255?255:n}function Ll(n){return n=Math.round(n),n<0?0:n>360?360:n}function wc(n){return n<0?0:n>1?1:n}function Xu(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?xc(parseFloat(e)/100*255):xc(parseInt(e,10))}function _u(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?wc(parseFloat(e)/100):wc(parseFloat(e))}function wu(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function fu(n,e,t){return n+(e-n)*t}function Kc(n,e,t,r,s){return n[0]=e,n[1]=t,n[2]=r,n[3]=s,n}function td(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var Ic=new Kl(20),tu=null;function jf(n,e){tu&&td(tu,e),tu=Ic.put(n,tu||e.slice())}function Tu(n,e){if(!!n){e=e||[];var t=Ic.get(n);if(t)return td(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in mu)return td(e,mu[r]),jf(n,e),e;var s=r.length;if(r.charAt(0)==="#"){if(s===4||s===5){var c=parseInt(r.slice(1,4),16);if(!(c>=0&&c<=4095)){Kc(e,0,0,0,1);return}return Kc(e,(c&3840)>>4|(c&3840)>>8,c&240|(c&240)>>4,c&15|(c&15)<<4,s===5?parseInt(r.slice(4),16)/15:1),jf(n,e),e}else if(s===7||s===9){var c=parseInt(r.slice(1,7),16);if(!(c>=0&&c<=16777215)){Kc(e,0,0,0,1);return}return Kc(e,(c&16711680)>>16,(c&65280)>>8,c&255,s===9?parseInt(r.slice(7),16)/255:1),jf(n,e),e}return}var f=r.indexOf("("),T=r.indexOf(")");if(f!==-1&&T+1===s){var R=r.substr(0,f),I=r.substr(f+1,T-(f+1)).split(","),B=1;switch(R){case"rgba":if(I.length!==4)return I.length===3?Kc(e,+I[0],+I[1],+I[2],1):Kc(e,0,0,0,1);B=_u(I.pop());case"rgb":if(I.length>=3)return Kc(e,Xu(I[0]),Xu(I[1]),Xu(I[2]),I.length===3?B:_u(I[3])),jf(n,e),e;Kc(e,0,0,0,1);return;case"hsla":if(I.length!==4){Kc(e,0,0,0,1);return}return I[3]=_u(I[3]),Ed(I,e),jf(n,e),e;case"hsl":if(I.length!==3){Kc(e,0,0,0,1);return}return Ed(I,e),jf(n,e),e;default:return}}Kc(e,0,0,0,1)}}function Ed(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=_u(n[1]),s=_u(n[2]),c=s<=.5?s*(r+1):s+r-s*r,f=s*2-c;return e=e||[],Kc(e,xc(wu(f,c,t+1/3)*255),xc(wu(f,c,t)*255),xc(wu(f,c,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function vd(n){if(!!n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,s=Math.min(e,t,r),c=Math.max(e,t,r),f=c-s,T=(c+s)/2,R,I;if(f===0)R=0,I=0;else{T<.5?I=f/(c+s):I=f/(2-c-s);var B=((c-e)/6+f/2)/f,Y=((c-t)/6+f/2)/f,q=((c-r)/6+f/2)/f;e===c?R=q-Y:t===c?R=1/3+B-q:r===c&&(R=2/3+Y-B),R<0&&(R+=1),R>1&&(R-=1)}var ie=[R*360,I,T];return n[3]!=null&&ie.push(n[3]),ie}}function Gu(n,e){var t=Tu(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return un(t,t.length===4?"rgba":"rgb")}}function Op(n){var e=Tu(n);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function np(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),s=Math.floor(r),c=Math.ceil(r),f=e[s],T=e[c],R=r-s;return t[0]=xc(fu(f[0],T[0],R)),t[1]=xc(fu(f[1],T[1],R)),t[2]=xc(fu(f[2],T[2],R)),t[3]=wc(fu(f[3],T[3],R)),t}}var $d=null;function hd(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),s=Math.floor(r),c=Math.ceil(r),f=Tu(e[s]),T=Tu(e[c]),R=r-s,I=un([xc(fu(f[0],T[0],R)),xc(fu(f[1],T[1],R)),xc(fu(f[2],T[2],R)),wc(fu(f[3],T[3],R))],"rgba");return t?{color:I,leftIndex:s,rightIndex:c,value:r}:I}}var Ip=null;function dd(n,e,t,r){var s=Tu(n);if(n)return s=vd(s),e!=null&&(s[0]=Ll(e)),t!=null&&(s[1]=_u(t)),r!=null&&(s[2]=_u(r)),un(Ed(s),"rgba")}function cr(n,e){var t=Tu(n);if(t&&e!=null)return t[3]=wc(e),un(t,"rgba")}function un(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function Jn(n,e){var t=Tu(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function Xn(){return un([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Vr=o(5783).Buffer,Zn=Math.round;function pa(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=Tu(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e==null?1:e}}var Ha=1e-4;function gi(n){return n<Ha&&n>-Ha}function co(n){return Zn(n*1e3)/1e3}function No(n){return Zn(n*1e4)/1e4}function Ko(n){return Zn(n*10)/10}function Jo(n){return"matrix("+co(n[0])+","+co(n[1])+","+co(n[2])+","+co(n[3])+","+No(n[4])+","+No(n[5])+")"}var gl={left:"start",right:"end",center:"middle",middle:"middle"};function js(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function Zl(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function ko(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function te(n){var e=[];if(n)for(var t=0;t<n.length;t++){var r=n[t];e.push(r.id)}return e.join(",")}function Me(n){return n&&!!n.image}function ft(n){return n&&!!n.svgElement}function Nt(n){return Me(n)||ft(n)}function xn(n){return n.type==="linear"}function Yr(n){return n.type==="radial"}function qa(n){return n&&(n.type==="linear"||n.type==="radial")}function Es(n){return"url(#"+n+")"}function Qs(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Hl(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*ol,s=sn(n.scaleX,1),c=sn(n.scaleY,1),f=n.skewX||0,T=n.skewY||0,R=[];return(e||t)&&R.push("translate("+e+"px,"+t+"px)"),r&&R.push("rotate("+r+")"),(s!==1||c!==1)&&R.push("scale("+s+","+c+")"),(f||T)&&R.push("skew("+Zn(f*ol)+"deg, "+Zn(T*ol)+"deg)"),R.join(" ")}var Lc=function(){return Ct.hasGlobalWindow&&ja(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Vr!="undefined"?function(n){return Vr.from(n).toString("base64")}:function(n){return null}}(),Pu=Array.prototype.slice;function Yf(n,e,t){return(e-n)*t+n}function yv(n,e,t,r){for(var s=e.length,c=0;c<s;c++)n[c]=Yf(e[c],t[c],r);return n}function Cp(n,e,t,r){for(var s=e.length,c=s&&e[0].length,f=0;f<s;f++){n[f]||(n[f]=[]);for(var T=0;T<c;T++)n[f][T]=Yf(e[f][T],t[f][T],r)}return n}function kv(n,e,t,r){for(var s=e.length,c=0;c<s;c++)n[c]=e[c]+t[c]*r;return n}function Nv(n,e,t,r){for(var s=e.length,c=s&&e[0].length,f=0;f<s;f++){n[f]||(n[f]=[]);for(var T=0;T<c;T++)n[f][T]=e[f][T]+t[f][T]*r}return n}function Pv(n,e){for(var t=n.length,r=e.length,s=t>r?e:n,c=Math.min(t,r),f=s[c-1]||{color:[0,0,0,0],offset:0},T=c;T<Math.max(t,r);T++)s.push({offset:f.offset,color:f.color.slice()})}function sp(n,e,t){var r=n,s=e;if(!(!r.push||!s.push)){var c=r.length,f=s.length;if(c!==f){var T=c>f;if(T)r.length=f;else for(var R=c;R<f;R++)r.push(t===1?s[R]:Pu.call(s[R]))}for(var I=r[0]&&r[0].length,R=0;R<r.length;R++)if(t===1)isNaN(r[R])&&(r[R]=s[R]);else for(var B=0;B<I;B++)isNaN(r[R][B])&&(r[R][B]=s[R][B])}}function Wp(n){if(Pn(n)){var e=n.length;if(Pn(n[0])){for(var t=[],r=0;r<e;r++)t.push(Pu.call(n[r]));return t}return Pu.call(n)}return n}function $h(n){return n[0]=Math.floor(n[0])||0,n[1]=Math.floor(n[1])||0,n[2]=Math.floor(n[2])||0,n[3]=n[3]==null?1:n[3],"rgba("+n.join(",")+")"}function Hf(n){return Pn(n&&n[0])?2:1}var Qc=0,bp=1,cv=2,nh=3,Kv=4,am=5,Nh=6;function Lp(n){return n===Kv||n===am}function sh(n){return n===bp||n===cv}var Lh=[0,0,0,0],mh=function(){function n(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return n.prototype.isFinished=function(){return this._finished},n.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},n.prototype.needsAnimate=function(){return this.keyframes.length>=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var s=this.keyframes,c=s.length,f=!1,T=Nh,R=t;if(Pn(t)){var I=Hf(t);T=I,(I===1&&!yo(t[0])||I===2&&!yo(t[0][0]))&&(f=!0)}else if(yo(t)&&!Sr(t))T=Qc;else if(ei(t))if(!isNaN(+t))T=Qc;else{var B=Tu(t);B&&(R=B,T=nh)}else if(vl(t)){var Y=Ea({},R);Y.colorStops=ar(t.colorStops,function(ie){return{offset:ie.offset,color:Tu(ie.color)}}),xn(t)?T=Kv:Yr(t)&&(T=am),R=Y}c===0?this.valType=T:(T!==this.valType||T===Nh)&&(f=!0),this.discrete=this.discrete||f;var q={time:e,value:R,rawValue:t,percent:0};return r&&(q.easing=r,q.easingFunc=ja(r)?r:Sa[r]||xo(r)),s.push(q),q},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(Oe,Ne){return Oe.time-Ne.time});for(var s=this.valType,c=r.length,f=r[c-1],T=this.discrete,R=sh(s),I=Lp(s),B=0;B<c;B++){var Y=r[B],q=Y.value,ie=f.value;Y.percent=Y.time/e,T||(R&&B!==c-1?sp(q,ie,s):I&&Pv(q.colorStops,ie.colorStops))}if(!T&&s!==am&&t&&this.needsAnimate()&&t.needsAnimate()&&s===t.valType&&!t._finished){this._additiveTrack=t;for(var ge=r[0].value,B=0;B<c;B++)s===Qc?r[B].additiveValue=r[B].value-ge:s===nh?r[B].additiveValue=kv([],r[B].value,ge,-1):sh(s)&&(r[B].additiveValue=s===bp?kv([],r[B].value,ge,-1):Nv([],r[B].value,ge,-1))}},n.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,s=r?"additiveValue":"value",c=this.valType,f=this.keyframes,T=f.length,R=this.propName,I=c===nh,B,Y=this._lastFr,q=Math.min,ie,ge;if(T===1)ie=ge=f[0];else{if(t<0)B=0;else if(t<this._lastFrP){var Oe=q(Y+1,T-1);for(B=Oe;B>=0&&!(f[B].percent<=t);B--);B=q(B,T-2)}else{for(B=Y;B<T&&!(f[B].percent>t);B++);B=q(B-1,T-2)}ge=f[B+1],ie=f[B]}if(!!(ie&&ge)){this._lastFr=B,this._lastFrP=t;var Ne=ge.percent-ie.percent,He=Ne===0?1:q((t-ie.percent)/Ne,1);ge.easingFunc&&(He=ge.easingFunc(He));var st=r?this._additiveValue:I?Lh:e[R];if((sh(c)||I)&&!st&&(st=this._additiveValue=[]),this.discrete)e[R]=He<1?ie.rawValue:ge.rawValue;else if(sh(c))c===bp?yv(st,ie[s],ge[s],He):Cp(st,ie[s],ge[s],He);else if(Lp(c)){var pt=ie[s],Ut=ge[s],pn=c===Kv;e[R]={type:pn?"linear":"radial",x:Yf(pt.x,Ut.x,He),y:Yf(pt.y,Ut.y,He),colorStops:ar(pt.colorStops,function(jn,Cr){var Nr=Ut.colorStops[Cr];return{offset:Yf(jn.offset,Nr.offset,He),color:$h(yv([],jn.color,Nr.color,He))}}),global:Ut.global},pn?(e[R].x2=Yf(pt.x2,Ut.x2,He),e[R].y2=Yf(pt.y2,Ut.y2,He)):e[R].r=Yf(pt.r,Ut.r,He)}else if(I)yv(st,ie[s],ge[s],He),r||(e[R]=$h(st));else{var yn=Yf(ie[s],ge[s],He);r?this._additiveValue=yn:e[R]=yn}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,s=this._additiveValue;t===Qc?e[r]=e[r]+s:t===nh?(Tu(e[r],Lh),kv(Lh,Lh,s,1),e[r]=$h(Lh)):t===bp?kv(e[r],e[r],s,1):t===cv&&Nv(e[r],e[r],s,1)},n}(),fm=function(){function n(e,t,r,s){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&s){Zr("Can' use additive animation on looped animation.");return}this._additiveAnimators=s,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Ua(t),r)},n.prototype.whenWithKeys=function(e,t,r,s){for(var c=this._tracks,f=0;f<r.length;f++){var T=r[f],R=c[T];if(!R){R=c[T]=new mh(T);var I=void 0,B=this._getAdditiveTrack(T);if(B){var Y=B.keyframes,q=Y[Y.length-1];I=q&&q.value,B.valType===nh&&I&&(I=$h(I))}else I=this._target[T];if(I==null)continue;e>0&&R.addKeyframe(0,Wp(I),s),this._trackKeys.push(T)}R.addKeyframe(e,Wp(t[T]),s)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r<t;r++)e[r].call(this)},n.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var r=0;r<t.length;r++)t[r].call(this)},n.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,r=0;r<t.length;r++)e[t[r]].setFinished()},n.prototype._getAdditiveTrack=function(e){var t,r=this._additiveAnimators;if(r)for(var s=0;s<r.length;s++){var c=r[s].getTrack(e);c&&(t=c)}return t},n.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,r=[],s=this._maxTime||0,c=0;c<this._trackKeys.length;c++){var f=this._trackKeys[c],T=this._tracks[f],R=this._getAdditiveTrack(f),I=T.keyframes,B=I.length;if(T.prepare(s,R),T.needsAnimate())if(!this._allowDiscrete&&T.discrete){var Y=I[B-1];Y&&(t._target[T.propName]=Y.rawValue),T.setFinished()}else r.push(T)}if(r.length||this._force){var q=new gs({life:s,loop:this._loop,delay:this._delay||0,onframe:function(ge){t._started=2;var Oe=t._additiveAnimators;if(Oe){for(var Ne=!1,He=0;He<Oe.length;He++)if(Oe[He]._clip){Ne=!0;break}Ne||(t._additiveAnimators=null)}for(var He=0;He<r.length;He++)r[He].step(t._target,ge);var st=t._onframeCbs;if(st)for(var He=0;He<st.length;He++)st[He](t._target,ge)},ondestroy:function(){t._doneCallback()}});this._clip=q,this.animation&&this.animation.addClip(q),e&&q.setEasing(e)}else this._doneCallback();return this}},n.prototype.stop=function(e){if(!!this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},n.prototype.delay=function(e){return this._delay=e,this},n.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},n.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},n.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},n.prototype.getClip=function(){return this._clip},n.prototype.getTrack=function(e){return this._tracks[e]},n.prototype.getTracks=function(){var e=this;return ar(this._trackKeys,function(t){return e._tracks[t]})},n.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var r=this._tracks,s=this._trackKeys,c=0;c<e.length;c++){var f=r[e[c]];f&&!f.isFinished()&&(t?f.step(this._target,1):this._started===1&&f.step(this._target,0),f.setFinished())}for(var T=!0,c=0;c<s.length;c++)if(!r[s[c]].isFinished()){T=!1;break}return T&&this._abortedCallback(),T},n.prototype.saveTo=function(e,t,r){if(!!e){t=t||this._trackKeys;for(var s=0;s<t.length;s++){var c=t[s],f=this._tracks[c];if(!(!f||f.isFinished())){var T=f.keyframes,R=T[r?0:T.length-1];R&&(e[c]=Wp(R.rawValue))}}}},n.prototype.__changeFinalValue=function(e,t){t=t||Ua(e);for(var r=0;r<t.length;r++){var s=t[r],c=this._tracks[s];if(!!c){var f=c.keyframes;if(f.length>1){var T=f.pop();c.addKeyframe(T.time,e[s]),c.prepare(this._maxTime,c.getAdditiveTrack())}}}},n}(),rh=fm;function Fp(){return new Date().getTime()}var gh=function(n){ms(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(!!t.animation){var r=t.prev,s=t.next;r?r.next=s:this._head=s,s?s.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=Fp()-this._pausedTime,s=r-this._time,c=this._head;c;){var f=c.next,T=c.step(r,s);T&&(c.ondestroy(),this.removeClip(c)),c=f}this._time=r,t||(this.trigger("frame",s),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(gc(r),!t._paused&&t.update())}gc(r)},e.prototype.start=function(){this._running||(this._time=Fp(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Fp(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Fp()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var s=new rh(t,r.loop);return this.addAnimator(s),s},e}(Nc),Am=gh,rc=300,wl=Ct.domSupported,Sl=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=ar(n,function(s){var c=s.replace("mouse","pointer");return t.hasOwnProperty(c)?c:s});return{mouse:n,touch:e,pointer:r}}(),Ac={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Ju=!1;function Bc(n){var e=n.pointerType;return e==="pen"||e==="touch"}function $u(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function Nf(n){n&&(n.zrByTouch=!0)}function Ou(n,e){return mo(n.dom,new Mf(n,e),!0)}function Lf(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var Mf=function(){function n(e,t){this.stopPropagation=Bo,this.stopImmediatePropagation=Bo,this.preventDefault=Bo,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Sd={mousedown:function(e){e=mo(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=mo(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=mo(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=mo(this.dom,e);var t=e.toElement||e.relatedTarget;Lf(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Ju=!0,e=mo(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Ju||(e=mo(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=mo(this.dom,e),Nf(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Sd.mousemove.call(this,e),Sd.mousedown.call(this,e)},touchmove:function(e){e=mo(this.dom,e),Nf(e),this.handler.processGesture(e,"change"),Sd.mousemove.call(this,e)},touchend:function(e){e=mo(this.dom,e),Nf(e),this.handler.processGesture(e,"end"),Sd.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<rc&&Sd.click.call(this,e)},pointerdown:function(e){Sd.mousedown.call(this,e)},pointermove:function(e){Bc(e)||Sd.mousemove.call(this,e)},pointerup:function(e){Sd.mouseup.call(this,e)},pointerout:function(e){Bc(e)||Sd.mouseout.call(this,e)}};At(["click","dblclick","contextmenu"],function(n){Sd[n]=function(e){e=mo(this.dom,e),this.trigger(n,e)}});var jv={pointermove:function(e){Bc(e)||jv.mousemove.call(this,e)},pointerup:function(e){jv.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function uv(n,e){var t=e.domHandlers;Ct.pointerEventsSupported?At(Sl.pointer,function(r){fv(e,r,function(s){t[r].call(n,s)})}):(Ct.touchEventsSupported&&At(Sl.touch,function(r){fv(e,r,function(s){t[r].call(n,s),$u(e)})}),At(Sl.mouse,function(r){fv(e,r,function(s){s=is(s),e.touching||t[r].call(n,s)})}))}function Fh(n,e){Ct.pointerEventsSupported?At(Ac.pointer,t):Ct.touchEventsSupported||At(Ac.mouse,t);function t(r){function s(c){c=is(c),Lf(n,c.target)||(c=Ou(n,c),e.domHandlers[r].call(n,c))}fv(e,r,s,{capture:!0})}}function fv(n,e,t,r){n.mounted[e]=t,n.listenerOpts[e]=r,yc(n.domTarget,e,t,r)}function Yv(n){var e=n.mounted;for(var t in e)e.hasOwnProperty(t)&&oa(n.domTarget,t,e[t],n.listenerOpts[t]);n.mounted={}}var wh=function(){function n(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return n}(),im=function(n){ms(e,n);function e(t,r){var s=n.call(this)||this;return s.__pointerCapturing=!1,s.dom=t,s.painterRoot=r,s._localHandlerScope=new wh(t,Sd),wl&&(s._globalHandlerScope=new wh(document,jv)),uv(s,s._localHandlerScope),s}return e.prototype.dispose=function(){Yv(this._localHandlerScope),wl&&Yv(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,wl&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var r=this._globalHandlerScope;t?Fh(this,r):Yv(r)}},e}(Nc),fg=im,_h=1;Ct.hasGlobalWindow&&(_h=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Bv=0,ah=_h,om=.4,Og="#333",Kh="#ccc",Dp="#eee",Hp=Ff,Yh=5e-5;function ev(n){return n>Yh||n<-Yh}var Kd=[],jp=[],vf=Df(),tv=Math.abs,Xv=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return ev(this.rotation)||ev(this.x)||ev(this.y)||ev(this.scaleX-1)||ev(this.scaleY-1)||ev(this.skewX)||ev(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(Hp(r),this.invTransform=null);return}r=r||Df(),t?this.getLocalTransform(r):Hp(r),e&&(t?xf(r,e,r):Kf(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Kd);var r=Kd[0]<0?-1:1,s=Kd[1]<0?-1:1,c=((Kd[0]-r)*t+r)/Kd[0]||0,f=((Kd[1]-s)*t+s)/Kd[1]||0;e[0]*=c,e[1]*=c,e[2]*=f,e[3]*=f}this.invTransform=this.invTransform||Df(),Gd(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(!!e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],s=Math.atan2(e[1],e[0]),c=Math.PI/2+s-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(c),t=Math.sqrt(t),this.skewX=c,this.skewY=0,this.rotation=-s,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(!!this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(xf(jp,e.invTransform,t),t=jp);var r=this.originX,s=this.originY;(r||s)&&(vf[4]=r,vf[5]=s,xf(jp,t,vf),jp[4]-=r,jp[5]-=s,t=jp),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],s=this.invTransform;return s&&Cu(r,r,s),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],s=this.transform;return s&&Cu(r,r,s),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&tv(e[0]-1)>1e-10&&tv(e[3]-1)>1e-10?Math.sqrt(tv(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){lh(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,s=e.originY||0,c=e.scaleX,f=e.scaleY,T=e.anchorX,R=e.anchorY,I=e.rotation||0,B=e.x,Y=e.y,q=e.skewX?Math.tan(e.skewX):0,ie=e.skewY?Math.tan(-e.skewY):0;if(r||s||T||R){var ge=r+T,Oe=s+R;t[4]=-ge*c-q*Oe*f,t[5]=-Oe*f-ie*ge*c}else t[4]=t[5]=0;return t[0]=c,t[3]=f,t[1]=ie*c,t[2]=q*f,I&&Wu(t,t,I),t[4]+=r+B,t[5]+=s+Y,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),nv=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function lh(n,e){for(var t=0;t<nv.length;t++){var r=nv[t];n[r]=e[r]}}var Bp=Xv,Uv={};function dv(n,e){e=e||Zt;var t=Uv[e];t||(t=Uv[e]=new Kl(500));var r=t.get(n);return r==null&&(r=Bn.measureText(n,e).width,t.put(n,r)),r}function Ig(n,e,t,r){var s=dv(n,e),c=Jm(e),f=dg(0,s,t),T=dm(0,c,r),R=new ra(f,T,s,c);return R}function Mm(n,e,t,r){var s=((n||"")+"").split(`
|
||
`),c=s.length;if(c===1)return Ig(s[0],e,t,r);for(var f=new ra(0,0,0,0),T=0;T<s.length;T++){var R=Ig(s[T],e,t,r);T===0?f.copy(R):f.union(R)}return f}function dg(n,e,t){return t==="right"?n-=e:t==="center"&&(n-=e/2),n}function dm(n,e,t){return t==="middle"?n-=e/2:t==="bottom"&&(n-=e),n}function Jm(n){return dv("\u56FD",n)}function o_(n,e){return platformApi.measureText(n,e)}function ch(n,e){return typeof n=="string"?n.lastIndexOf("%")>=0?parseFloat(n)/100*e:parseFloat(n):n}function pg(n,e,t){var r=e.position||"inside",s=e.distance!=null?e.distance:5,c=t.height,f=t.width,T=c/2,R=t.x,I=t.y,B="left",Y="top";if(r instanceof Array)R+=ch(r[0],t.width),I+=ch(r[1],t.height),B=null,Y=null;else switch(r){case"left":R-=s,I+=T,B="right",Y="middle";break;case"right":R+=s+f,I+=T,Y="middle";break;case"top":R+=f/2,I-=s,B="center",Y="bottom";break;case"bottom":R+=f/2,I+=c+s,B="center";break;case"inside":R+=f/2,I+=T,B="center",Y="middle";break;case"insideLeft":R+=s,I+=T,Y="middle";break;case"insideRight":R+=f-s,I+=T,B="right",Y="middle";break;case"insideTop":R+=f/2,I+=s,B="center";break;case"insideBottom":R+=f/2,I+=c-s,B="center",Y="bottom";break;case"insideTopLeft":R+=s,I+=s;break;case"insideTopRight":R+=f-s,I+=s,B="right";break;case"insideBottomLeft":R+=s,I+=c-s,Y="bottom";break;case"insideBottomRight":R+=f-s,I+=c-s,B="right",Y="bottom";break}return n=n||{},n.x=R,n.y=I,n.align=B,n.verticalAlign=Y,n}var yh="__zr_normal__",vg=nv.concat(["ignore"]),Dg=ta(nv,function(n,e){return n[e]=!0,n},{ignore:!1}),km={},Ng=new ra(0,0,0,0),O_=function(){function n(e){this.id=Ur(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var s=this.transform;s||(s=this.transform=[1,0,0,1,0,0]),s[4]+=e,s[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,s=r.local,c=t.innerTransformable,f=void 0,T=void 0,R=!1;c.parent=s?this:null;var I=!1;if(c.copyTransform(t),r.position!=null){var B=Ng;r.layoutRect?B.copy(r.layoutRect):B.copy(this.getBoundingRect()),s||B.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(km,r,B):pg(km,r,B),c.x=km.x,c.y=km.y,f=km.align,T=km.verticalAlign;var Y=r.origin;if(Y&&r.rotation!=null){var q=void 0,ie=void 0;Y==="center"?(q=B.width*.5,ie=B.height*.5):(q=ch(Y[0],B.width),ie=ch(Y[1],B.height)),I=!0,c.originX=-c.x+q+(s?0:B.x),c.originY=-c.y+ie+(s?0:B.y)}}r.rotation!=null&&(c.rotation=r.rotation);var ge=r.offset;ge&&(c.x+=ge[0],c.y+=ge[1],I||(c.originX=-ge[0],c.originY=-ge[1]));var Oe=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,Ne=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),He=void 0,st=void 0,pt=void 0;Oe&&this.canBeInsideText()?(He=r.insideFill,st=r.insideStroke,(He==null||He==="auto")&&(He=this.getInsideTextFill()),(st==null||st==="auto")&&(st=this.getInsideTextStroke(He),pt=!0)):(He=r.outsideFill,st=r.outsideStroke,(He==null||He==="auto")&&(He=this.getOutsideFill()),(st==null||st==="auto")&&(st=this.getOutsideStroke(He),pt=!0)),He=He||"#000",(He!==Ne.fill||st!==Ne.stroke||pt!==Ne.autoStroke||f!==Ne.align||T!==Ne.verticalAlign)&&(R=!0,Ne.fill=He,Ne.stroke=st,Ne.autoStroke=pt,Ne.align=f,Ne.verticalAlign=T,t.setDefaultTextStyle(Ne)),t.__dirty|=as,R&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Kh:Og},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&Tu(t);r||(r=[255,255,255,1]);for(var s=r[3],c=this.__zr.isDarkMode(),f=0;f<3;f++)r[f]=r[f]*s+(c?0:255)*(1-s);return r[3]=1,un(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},Ea(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(to(e))for(var r=e,s=Ua(r),c=0;c<s.length;c++){var f=s[c];this.attrKV(f,e[f])}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,r=0;r<this.animators.length;r++){var s=this.animators[r],c=s.__fromStateTransition;if(!(s.getLoop()||c&&c!==yh)){var f=s.targetName,T=f?t[f]:t;s.saveTo(T)}}},n.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,vg)},n.prototype._savePrimaryToNormal=function(e,t,r){for(var s=0;s<r.length;s++){var c=r[s];e[c]!=null&&!(c in t)&&(t[c]=this[c])}},n.prototype.hasState=function(){return this.currentStates.length>0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(yh,!1,e)},n.prototype.useState=function(e,t,r,s){var c=e===yh,f=this.hasState();if(!(!f&&c)){var T=this.currentStates,R=this.stateTransition;if(!(Ui(T,e)>=0&&(t||T.length===1))){var I;if(this.stateProxy&&!c&&(I=this.stateProxy(e)),I||(I=this.states&&this.states[e]),!I&&!c){Zr("State "+e+" not exists.");return}c||this.saveCurrentToNormalState(I);var B=!!(I&&I.hoverLayer||s);B&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,I,this._normalState,t,!r&&!this.__inHover&&R&&R.duration>0,R);var Y=this._textContent,q=this._textGuide;return Y&&Y.useState(e,t,r,B),q&&q.useState(e,t,r,B),c?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!B&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~as),I}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var s=[],c=this.currentStates,f=e.length,T=f===c.length;if(T){for(var R=0;R<f;R++)if(e[R]!==c[R]){T=!1;break}}if(T)return;for(var R=0;R<f;R++){var I=e[R],B=void 0;this.stateProxy&&(B=this.stateProxy(I,e)),B||(B=this.states[I]),B&&s.push(B)}var Y=s[f-1],q=!!(Y&&Y.hoverLayer||r);q&&this._toggleHoverLayerFlag(!0);var ie=this._mergeStates(s),ge=this.stateTransition;this.saveCurrentToNormalState(ie),this._applyStateObj(e.join(","),ie,this._normalState,!1,!t&&!this.__inHover&&ge&&ge.duration>0,ge);var Oe=this._textContent,Ne=this._textGuide;Oe&&Oe.useStates(e,t,q),Ne&&Ne.useStates(e,t,q),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!q&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~as)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},n.prototype.removeState=function(e){var t=Ui(this.currentStates,e);if(t>=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var s=this.currentStates.slice(),c=Ui(s,e),f=Ui(s,t)>=0;c>=0?f?s.splice(c,1):s[c]=t:r&&!f&&s.push(t),this.useStates(s)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,s=0;s<e.length;s++){var c=e[s];Ea(t,c),c.textConfig&&(r=r||{},Ea(r,c.textConfig))}return r&&(t.textConfig=r),t},n.prototype._applyStateObj=function(e,t,r,s,c,f){var T=!(t&&s);t&&t.textConfig?(this.textConfig=Ea({},s?this.textConfig:r.textConfig),Ea(this.textConfig,t.textConfig)):T&&r.textConfig&&(this.textConfig=r.textConfig);for(var R={},I=!1,B=0;B<vg.length;B++){var Y=vg[B],q=c&&Dg[Y];t&&t[Y]!=null?q?(I=!0,R[Y]=t[Y]):this[Y]=t[Y]:T&&r[Y]!=null&&(q?(I=!0,R[Y]=r[Y]):this[Y]=r[Y])}if(!c)for(var B=0;B<this.animators.length;B++){var ie=this.animators[B],ge=ie.targetName;ie.getLoop()||ie.__changeFinalValue(ge?(t||r)[ge]:t||r)}I&&this._transitionState(e,R,f)},n.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},n.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},n.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Bp,this._attachComponent(e),this._textContent=e,this.markRedraw())},n.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Ea(this.textConfig,e),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=as;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,r=this._textGuide;t&&(t.__inHover=e),r&&(r.__inHover=e)},n.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var r=0;r<t.length;r++)e.animation.addAnimator(t[r]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},n.prototype.removeSelfFromZr=function(e){if(!!this.__zr){this.__zr=null;var t=this.animators;if(t)for(var r=0;r<t.length;r++)e.animation.removeAnimator(t[r]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},n.prototype.animate=function(e,t,r){var s=e?this[e]:this,c=new rh(s,t,r);return e&&(c.targetName=e),this.addAnimator(c,e),c},n.prototype.addAnimator=function(e,t){var r=this.__zr,s=this;e.during(function(){s.updateDuringAnimation(t)}).done(function(){var c=s.animators,f=Ui(c,e);f>=0&&c.splice(f,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,s=r.length,c=[],f=0;f<s;f++){var T=r[f];!e||e===T.scope?T.stop(t):c.push(T)}return this.animators=c,this},n.prototype.animateTo=function(e,t,r){e0(this,e,t,r)},n.prototype.animateFrom=function(e,t,r){e0(this,e,t,r,!0)},n.prototype._transitionState=function(e,t,r,s){for(var c=e0(this,t,r,s),f=0;f<c.length;f++)c[f].__fromStateTransition=e},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=function(){var e=n.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=as;var t={};function r(c,f,T){t[c+f+T]||(console.warn("DEPRECATED: '"+c+"' has been deprecated. use '"+f+"', '"+T+"' instead"),t[c+f+T]=!0)}function s(c,f,T,R){Object.defineProperty(e,c,{get:function(){if(!this[f]){var Y=this[f]=[];I(this,Y)}return this[f]},set:function(Y){this[T]=Y[0],this[R]=Y[1],this[f]=Y,I(this,Y)}});function I(B,Y){Object.defineProperty(Y,0,{get:function(){return B[T]},set:function(ie){B[T]=ie}}),Object.defineProperty(Y,1,{get:function(){return B[R]},set:function(ie){B[R]=ie}})}}Object.defineProperty&&(s("position","_legacyPos","x","y"),s("scale","_legacyScale","scaleX","scaleY"),s("origin","_legacyOrigin","originX","originY"))}(),n}();Kn(O_,Nc),Kn(O_,Bp);function e0(n,e,t,r,s){t=t||{};var c=[];To(n,"",n,e,t,r,c,s);var f=c.length,T=!1,R=t.done,I=t.aborted,B=function(){T=!0,f--,f<=0&&(T?R&&R():I&&I())},Y=function(){f--,f<=0&&(T?R&&R():I&&I())};f||R&&R(),c.length>0&&t.during&&c[0].during(function(ge,Oe){t.during(Oe)});for(var q=0;q<c.length;q++){var ie=c[q];B&&ie.done(B),Y&&ie.aborted(Y),t.force&&ie.duration(t.duration),ie.start(t.easing)}return c}function pm(n,e,t){for(var r=0;r<t;r++)n[r]=e[r]}function Lg(n){return Pn(n[0])}function $r(n,e,t){if(Pn(e[t]))if(Pn(n[t])||(n[t]=[]),cs(e[t])){var r=e[t].length;n[t].length!==r&&(n[t]=new e[t].constructor(r),pm(n[t],e[t],r))}else{var s=e[t],c=n[t],f=s.length;if(Lg(s))for(var T=s[0].length,R=0;R<f;R++)c[R]?pm(c[R],s[R],T):c[R]=Array.prototype.slice.call(s[R]);else pm(c,s,f);c.length=s.length}else n[t]=e[t]}function ea(n,e){return n===e||Pn(n)&&Pn(e)&&bi(n,e)}function bi(n,e){var t=n.length;if(t!==e.length)return!1;for(var r=0;r<t;r++)if(n[r]!==e[r])return!1;return!0}function To(n,e,t,r,s,c,f,T){for(var R=Ua(r),I=s.duration,B=s.delay,Y=s.additive,q=s.setToFinal,ie=!to(c),ge=n.animators,Oe=[],Ne=0;Ne<R.length;Ne++){var He=R[Ne],st=r[He];if(st!=null&&t[He]!=null&&(ie||c[He]))if(to(st)&&!Pn(st)&&!vl(st)){if(e){T||(t[He]=st,n.updateDuringAnimation(e));continue}To(n,He,t[He],st,s,c&&c[He],f,T)}else Oe.push(He);else T||(t[He]=st,n.updateDuringAnimation(e),Oe.push(He))}var pt=Oe.length;if(!Y&&pt)for(var Ut=0;Ut<ge.length;Ut++){var pn=ge[Ut];if(pn.targetName===e){var yn=pn.stopTracks(Oe);if(yn){var jn=Ui(ge,pn);ge.splice(jn,1)}}}if(s.force||(Oe=Yn(Oe,function(Er){return!ea(r[Er],t[Er])}),pt=Oe.length),pt>0||s.force&&!f.length){var Cr=void 0,Nr=void 0,Rr=void 0;if(T){Nr={},q&&(Cr={});for(var Ut=0;Ut<pt;Ut++){var He=Oe[Ut];Nr[He]=t[He],q?Cr[He]=r[He]:t[He]=r[He]}}else if(q){Rr={};for(var Ut=0;Ut<pt;Ut++){var He=Oe[Ut];Rr[He]=Wp(t[He]),$r(t,r,He)}}var pn=new rh(t,!1,!1,Y?Yn(ge,function(ma){return ma.targetName===e}):null);pn.targetName=e,s.scope&&(pn.scope=s.scope),q&&Cr&&pn.whenWithKeys(0,Cr,Oe),Rr&&pn.whenWithKeys(0,Rr,Oe),pn.whenWithKeys(I==null?500:I,T?Nr:r,Oe).delay(B||0),n.addAnimator(pn,e),f.push(pn)}}var _o=O_,Ss=function(n){ms(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,s=0;s<r.length;s++)if(r[s].name===t)return r[s]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,r){if(t&&t!==this&&t.parent!==this&&r&&r.parent===this){var s=this._children,c=s.indexOf(r);c>=0&&(s.splice(c,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var s=Ui(this._children,t);return s>=0&&this.replaceAt(r,s),this},e.prototype.replaceAt=function(t,r){var s=this._children,c=s[r];if(t&&t!==this&&t.parent!==this&&t!==c){s[r]=t,c.parent=null;var f=this.__zr;f&&c.removeSelfFromZr(f),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,s=this._children,c=Ui(s,t);return c<0?this:(s.splice(c,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,s=0;s<t.length;s++){var c=t[s];r&&c.removeSelfFromZr(r),c.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,r){for(var s=this._children,c=0;c<s.length;c++){var f=s[c];t.call(r,f,c)}return this},e.prototype.traverse=function(t,r){for(var s=0;s<this._children.length;s++){var c=this._children[s],f=t.call(r,c);c.isGroup&&!f&&c.traverse(t,r)}return this},e.prototype.addSelfToZr=function(t){n.prototype.addSelfToZr.call(this,t);for(var r=0;r<this._children.length;r++){var s=this._children[r];s.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){n.prototype.removeSelfFromZr.call(this,t);for(var r=0;r<this._children.length;r++){var s=this._children[r];s.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var r=new ra(0,0,0,0),s=t||this._children,c=[],f=null,T=0;T<s.length;T++){var R=s[T];if(!(R.ignore||R.invisible)){var I=R.getBoundingRect(),B=R.getLocalTransform(c);B?(ra.applyTransform(r,I,B),f=f||r.clone(),f.union(r)):(f=f||I.clone(),f.union(I))}}return f||r},e}(_o);Ss.prototype.type="group";var Qi=Ss;/*!
|
||
* ZRender, a high performance 2d drawing library.
|
||
*
|
||
* Copyright (c) 2013, Baidu Inc.
|
||
* All rights reserved.
|
||
*
|
||
* LICENSE
|
||
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
||
*/var Ns={},kl={};function yl(n){delete kl[n]}function Tl(n){if(!n)return!1;if(typeof n=="string")return Jn(n,1)<om;if(n.colorStops){for(var e=n.colorStops,t=0,r=e.length,s=0;s<r;s++)t+=Jn(e[s].color,1);return t/=r,t<om}return!1}var ll=function(){function n(e,t,r){var s=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=t,this.id=e;var c=new El,f=r.renderer||"canvas";Ns[f]||(f=Ua(Ns)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var T=new Ns[f](t,c,r,e),R=r.ssr||T.ssrOnly;this.storage=c,this.painter=T;var I=!Ct.node&&!Ct.worker&&!R?new fg(T.getViewportRoot(),T.root):null,B=r.useCoarsePointer,Y=B==null||B==="auto"?Ct.touchEventsSupported:!!B,q=44,ie;Y&&(ie=sn(r.pointerSize,q)),this.handler=new Gs(c,T,I,T.root,ie),this.animation=new Am({stage:{update:R?null:function(){return s._flush(!0)}}}),R||this.animation.start()}return n.prototype.add=function(e){!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},n.prototype.remove=function(e){!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},n.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},n.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Tl(e)},n.prototype.getBackgroundColor=function(){return this._backgroundColor},n.prototype.setDarkMode=function(e){this._darkMode=e},n.prototype.isDarkMode=function(){return this._darkMode},n.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},n.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},n.prototype.flush=function(){this._flush(!1)},n.prototype._flush=function(e){var t,r=Fp();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var s=Fp();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:s-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Qi&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},n.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,yl(this.id)},n}();function ac(n,e){var t=new ll(Ur(),n,e);return kl[t.id]=t,t}function Xl(n){n.dispose()}function Ol(){for(var n in kl)kl.hasOwnProperty(n)&&kl[n].dispose();kl={}}function es(n){return kl[n]}function Go(n,e){Ns[n]=e}var Yo="5.4.4",Ec=1e-4,Ft=20;function je(n){return n.replace(/^\s+|\s+$/g,"")}function yt(n,e,t,r){var s=e[0],c=e[1],f=t[0],T=t[1],R=c-s,I=T-f;if(R===0)return I===0?f:(f+T)/2;if(r)if(R>0){if(n<=s)return f;if(n>=c)return T}else{if(n>=s)return f;if(n<=c)return T}else{if(n===s)return f;if(n===c)return T}return(n-s)/R*I+f}function It(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return ei(n)?je(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Sn(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),Ft),n=(+n).toFixed(e),t?n:+n}function In(n){return n.sort(function(e,t){return e-t}),n}function mr(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return Wr(n)}function Wr(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,s=t>0?t:e.length,c=e.indexOf("."),f=c<0?0:s-1-c;return Math.max(0,f-r)}function Ir(n,e){var t=Math.log,r=Math.LN10,s=Math.floor(t(n[1]-n[0])/r),c=Math.round(t(Math.abs(e[1]-e[0]))/r),f=Math.min(Math.max(-s+c,0),20);return isFinite(f)?f:20}function Br(n,e,t){if(!n[e])return 0;var r=xa(n,t);return r[e]||0}function xa(n,e){var t=ta(n,function(ie,ge){return ie+(isNaN(ge)?0:ge)},0);if(t===0)return[];for(var r=Math.pow(10,e),s=ar(n,function(ie){return(isNaN(ie)?0:ie)/t*r*100}),c=r*100,f=ar(s,function(ie){return Math.floor(ie)}),T=ta(f,function(ie,ge){return ie+ge},0),R=ar(s,function(ie,ge){return ie-f[ge]});T<c;){for(var I=Number.NEGATIVE_INFINITY,B=null,Y=0,q=R.length;Y<q;++Y)R[Y]>I&&(I=R[Y],B=Y);++f[B],R[B]=0,++T}return ar(f,function(ie){return ie/r})}function vi(n,e){var t=Math.max(mr(n),mr(e)),r=n+e;return t>Ft?r:Sn(r,t)}var Ai=9007199254740991;function Yi(n){var e=Math.PI*2;return(n%e+e)%e}function Wo(n){return n>-Ec&&n<Ec}var _s=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ys(n){if(n instanceof Date)return n;if(ei(n)){var e=_s.exec(n);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(n==null)return new Date(NaN);return new Date(Math.round(n))}function qs(n){return Math.pow(10,uc(n))}function uc(n){if(n===0)return 0;var e=Math.floor(Math.log(n)/Math.LN10);return n/Math.pow(10,e)>=10&&e++,e}function du(n,e){var t=uc(n),r=Math.pow(10,t),s=n/r,c;return e?s<1.5?c=1:s<2.5?c=2:s<4?c=3:s<7?c=5:c=10:s<1?c=1:s<2?c=2:s<3?c=3:s<5?c=5:c=10,n=c*r,t>=-20?+n.toFixed(t<0?-t:0):n}function Pc(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),s=+n[r-1],c=t-r;return c?s+c*(n[r]-s):s}function Ef(n){n.sort(function(R,I){return T(R,I,0)?-1:1});for(var e=-Infinity,t=1,r=0;r<n.length;){for(var s=n[r].interval,c=n[r].close,f=0;f<2;f++)s[f]<=e&&(s[f]=e,c[f]=f?1:1-t),e=s[f],t=c[f];s[0]===s[1]&&c[0]*c[1]!=1?n.splice(r,1):r++}return n;function T(R,I,B){return R.interval[B]<I.interval[B]||R.interval[B]===I.interval[B]&&(R.close[B]-I.close[B]==(B?-1:1)||!B&&T(R,I,1))}}function Ru(n){var e=parseFloat(n);return e==n&&(e!==0||!ei(n)||n.indexOf("x")<=0)?e:NaN}function _d(n){return!isNaN(Ru(n))}function id(){return Math.round(Math.random()*9)}function yd(n,e){return e===0?n:yd(e,n%e)}function Qu(n,e){return n==null?e:e==null?n:n*e/yd(n,e)}function Yd(n,e,t){return(e-n)*t+n}var Xd="series\0",Sf="\0_ec_\0";function Bf(n){return n instanceof Array?n:n==null?[]:[n]}function cd(n,e,t){if(n){n[e]=n[e]||{},n.emphasis=n.emphasis||{},n.emphasis[e]=n.emphasis[e]||{};for(var r=0,s=t.length;r<s;r++){var c=t[r];!n.emphasis[e].hasOwnProperty(c)&&n[e].hasOwnProperty(c)&&(n.emphasis[e][c]=n[e][c])}}}var qu=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Nu(n){return to(n)&&!La(n)&&!(n instanceof Date)?n.value:n}function Id(n){return to(n)&&!(n instanceof Array)}function Ev(n,e,t){var r=t==="normalMerge",s=t==="replaceMerge",c=t==="replaceAll";n=n||[],e=(e||[]).slice();var f=Za();At(e,function(R,I){if(!to(R)){e[I]=null;return}});var T=Rv(n,f,t);return(r||s)&&s_(T,n,f,e),r&&wi(T,e),r||s?ps(T,e,s):c&&qo(T,e),zc(T),T}function Rv(n,e,t){var r=[];if(t==="replaceAll")return r;for(var s=0;s<n.length;s++){var c=n[s];c&&c.id!=null&&e.set(c.id,s),r.push({existing:t==="replaceMerge"||Ii(c)?null:c,newOption:null,keyInfo:null,brandNew:null})}return r}function s_(n,e,t,r){At(r,function(s,c){if(!(!s||s.id==null)){var f=ri(s.id),T=t.get(f);if(T!=null){var R=n[T];Ln(!R.newOption,'Duplicated option on id "'+f+'".'),R.newOption=s,R.existing=e[T],r[c]=null}}})}function wi(n,e){At(e,function(t,r){if(!(!t||t.name==null))for(var s=0;s<n.length;s++){var c=n[s].existing;if(!n[s].newOption&&c&&(c.id==null||t.id==null)&&!Ii(t)&&!Ii(c)&&od("name",c,t)){n[s].newOption=t,e[r]=null;return}}})}function ps(n,e,t){At(e,function(r){if(!!r){for(var s,c=0;(s=n[c])&&(s.newOption||Ii(s.existing)||s.existing&&r.id!=null&&!od("id",r,s.existing));)c++;s?(s.newOption=r,s.brandNew=t):n.push({newOption:r,brandNew:t,existing:null,keyInfo:null}),c++}})}function qo(n,e){At(e,function(t){n.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function zc(n){var e=Za();At(n,function(t){var r=t.existing;r&&e.set(r.id,t)}),At(n,function(t){var r=t.newOption;Ln(!r||r.id==null||!e.get(r.id)||e.get(r.id)===t,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&e.set(r.id,t),!t.keyInfo&&(t.keyInfo={})}),At(n,function(t,r){var s=t.existing,c=t.newOption,f=t.keyInfo;if(!!to(c)){if(f.name=c.name!=null?ri(c.name):s?s.name:Xd+r,s)f.id=ri(s.id);else if(c.id!=null)f.id=ri(c.id);else{var T=0;do f.id="\0"+f.name+"\0"+T++;while(e.get(f.id))}e.set(f.id,t)}})}function od(n,e,t){var r=Ta(e[n],null),s=Ta(t[n],null);return r!=null&&s!=null&&r===s}function ri(n){return Ta(n,"")}function Ta(n,e){return n==null?e:ei(n)?n:yo(n)||Do(n)?n+"":e}function eo(n){}function Po(n){return isStringSafe(n)||isNumeric(n)}function qi(n){var e=n.name;return!!(e&&e.indexOf(Xd))}function Ii(n){return n&&n.id!=null&&ri(n.id).indexOf(Sf)===0}function Gi(n){return Sf+n}function po(n,e,t){At(n,function(r){var s=r.newOption;to(s)&&(r.keyInfo.mainType=e,r.keyInfo.subType=si(e,s,r.existing,t))})}function si(n,e,t,r){var s=e.type?e.type:t?t.subType:r.determineSubType(n,e);return s}function Zi(n,e){var t={},r={};return s(n||[],t),s(e||[],r,t),[c(t),c(r)];function s(f,T,R){for(var I=0,B=f.length;I<B;I++){var Y=Ta(f[I].seriesId,null);if(Y==null)return;for(var q=Bf(f[I].dataIndex),ie=R&&R[Y],ge=0,Oe=q.length;ge<Oe;ge++){var Ne=q[ge];ie&&ie[Ne]?ie[Ne]=null:(T[Y]||(T[Y]={}))[Ne]=1}}}function c(f,T){var R=[];for(var I in f)if(f.hasOwnProperty(I)&&f[I]!=null)if(T)R.push(+I);else{var B=c(f[I],!0);B.length&&R.push({seriesId:I,dataIndex:B})}return R}}function Va(n,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return La(e.dataIndex)?ar(e.dataIndex,function(t){return n.indexOfRawIndex(t)}):n.indexOfRawIndex(e.dataIndex);if(e.name!=null)return La(e.name)?ar(e.name,function(t){return n.indexOfName(t)}):n.indexOfName(e.name)}function Bi(){var n="__ec_inner_"+$o++;return function(e){return e[n]||(e[n]={})}}var $o=id();function Vs(n,e,t){var r=Cs(e,t),s=r.mainTypeSpecified,c=r.queryOptionMap,f=r.others,T=f,R=t?t.defaultMainType:null;return!s&&R&&c.set(R,{}),c.each(function(I,B){var Y=ou(n,B,I,{useDefault:R===B,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});T[B+"Models"]=Y.models,T[B+"Model"]=Y.models[0]}),T}function Cs(n,e){var t;if(ei(n)){var r={};r[n+"Index"]=0,t=r}else t=n;var s=Za(),c={},f=!1;return At(t,function(T,R){if(R==="dataIndex"||R==="dataIndexInside"){c[R]=T;return}var I=R.match(/^(\w+)(Index|Id|Name)$/)||[],B=I[1],Y=(I[2]||"").toLowerCase();if(!(!B||!Y||e&&e.includeMainTypes&&Ui(e.includeMainTypes,B)<0)){f=f||!!B;var q=s.get(B)||s.set(B,{});q[Y]=T}}),{mainTypeSpecified:f,queryOptionMap:s,others:c}}var vs={useDefault:!0,enableAll:!1,enableNone:!1},Vl={useDefault:!1,enableAll:!0,enableNone:!0};function ou(n,e,t,r){r=r||vs;var s=t.index,c=t.id,f=t.name,T={models:null,specified:s!=null||c!=null||f!=null};if(!T.specified){var R=void 0;return T.models=r.useDefault&&(R=n.getComponent(e))?[R]:[],T}return s==="none"||s===!1?(Ln(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),T.models=[],T):(s==="all"&&(Ln(r.enableAll,'`"all"` is not a valid value on index option.'),s=c=f=null),T.models=n.queryComponents({mainType:e,index:s,id:c,name:f}),T)}function Xf(n,e,t){n.setAttribute?n.setAttribute(e,t):n[e]=t}function pu(n,e){return n.getAttribute?n.getAttribute(e):n[e]}function sf(n){return n==="auto"?Ct.domSupported?"html":"richText":n||"html"}function Jf(n,e){var t=Za(),r=[];return At(n,function(s){var c=e(s);(t.get(c)||(r.push(c),t.set(c,[]))).push(s)}),{keys:r,buckets:t}}function Vd(n,e,t,r,s){var c=e==null||e==="auto";if(r==null)return r;if(yo(r)){var f=Yd(t||0,r,s);return Sn(f,c?Math.max(mr(t||0),mr(r)):e)}else{if(ei(r))return s<1?t:r;for(var T=[],R=t,I=r,B=Math.max(R?R.length:0,I.length),Y=0;Y<B;++Y){var q=n.getDimensionInfo(Y);if(q&&q.type==="ordinal")T[Y]=(s<1&&R?R:I)[Y];else{var ie=R&&R[Y]?R[Y]:0,ge=I[Y],f=Yd(ie,ge,s);T[Y]=Sn(f,c?Math.max(mr(ie),mr(ge)):e)}}return T}}var rv=".",Jv="___EC__COMPONENT__CONTAINER___",Fg="___EC__EXTENDED_CLASS___";function Zv(n){var e={main:"",sub:""};if(n){var t=n.split(rv);e.main=t[0]||"",e.sub=t[1]||""}return e}function ry(n){Ln(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal')}function Xh(n){return!!(n&&n[Fg])}function P0(n,e){n.$constructor=n,n.extend=function(t){var r=this,s;return t0(r)?s=function(c){ze(f,c);function f(){return c.apply(this,arguments)||this}return f}(r):(s=function(){(t.$constructor||r).apply(this,arguments)},Cn(s,this)),Ea(s.prototype,t),s[Fg]=!0,s.extend=this.extend,s.superCall=vn,s.superApply=or,s.superClass=r,s}}function t0(n){return ja(n)&&/^class\s/.test(Function.prototype.toString.call(n))}function le(n,e){n.extend=e.extend}var Ce=Math.round(Math.random()*10);function Xe(n){var e=["__\0is_clz",Ce++].join("_");n.prototype[e]=!0,n.isInstance=function(t){return!!(t&&t[e])}}function vn(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return this.superClass.prototype[e].apply(n,t)}function or(n,e,t){return this.superClass.prototype[e].apply(n,t)}function Qr(n){var e={};n.registerClass=function(r){var s=r.type||r.prototype.type;if(s){ry(s),r.prototype.type=s;var c=Zv(s);if(!c.sub)e[c.main]=r;else if(c.sub!==Jv){var f=t(c);f[c.sub]=r}}return r},n.getClass=function(r,s,c){var f=e[r];if(f&&f[Jv]&&(f=s?f[s]:null),c&&!f)throw new Error(s?"Component "+r+"."+(s||"")+" is used but not imported.":r+".type should be specified.");return f},n.getClassesByMainType=function(r){var s=Zv(r),c=[],f=e[s.main];return f&&f[Jv]?At(f,function(T,R){R!==Jv&&c.push(T)}):c.push(f),c},n.hasClass=function(r){var s=Zv(r);return!!e[s.main]},n.getAllClassMainTypes=function(){var r=[];return At(e,function(s,c){r.push(c)}),r},n.hasSubTypes=function(r){var s=Zv(r),c=e[s.main];return c&&c[Jv]};function t(r){var s=e[r.main];return(!s||!s[Jv])&&(s=e[r.main]={},s[Jv]=!0),s}}function Oa(n,e){for(var t=0;t<n.length;t++)n[t][1]||(n[t][1]=n[t][0]);return e=e||!1,function(r,s,c){for(var f={},T=0;T<n.length;T++){var R=n[T][1];if(!(s&&Ui(s,R)>=0||c&&Ui(c,R)<0)){var I=r.getShallow(R,e);I!=null&&(f[n[T][0]]=I)}}return f}}var ki=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Oo=Oa(ki),cl=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return Oo(this,e,t)},n}(),Lu=new Kl(50);function Dd(n){if(typeof n=="string"){var e=Lu.get(n);return e&&e.image}else return n}function pc(n,e,t,r,s){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var c=Lu.get(n),f={hostEl:t,cb:r,cbPayload:s};return c?(e=c.image,!bd(e)&&c.pending.push(f)):(e=Bn.loadImage(n,Uf,Uf),e.__zrImageSrc=n,Lu.put(n,e.__cachedImgObj={image:e,pending:[f]})),e}else return n;else return e}function Uf(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<n.pending.length;e++){var t=n.pending[e],r=t.cb;r&&r(this,t.cbPayload),t.hostEl.dirty()}n.pending.length=0}function bd(n){return n&&n.width&&n.height}var Cf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ss(n,e,t,r,s){if(!e)return"";var c=(n+"").split(`
|
||
`);s=Uo(e,t,r,s);for(var f=0,T=c.length;f<T;f++)c[f]=hs(c[f],s);return c.join(`
|
||
`)}function Uo(n,e,t,r){r=r||{};var s=Ea({},r);s.font=e,t=sn(t,"..."),s.maxIterations=sn(r.maxIterations,2);var c=s.minChar=sn(r.minChar,0);s.cnCharWidth=dv("\u56FD",e);var f=s.ascCharWidth=dv("a",e);s.placeholder=sn(r.placeholder,"");for(var T=n=Math.max(0,n-1),R=0;R<c&&T>=f;R++)T-=f;var I=dv(t,e);return I>T&&(t="",I=0),T=n-I,s.ellipsis=t,s.ellipsisWidth=I,s.contentWidth=T,s.containerWidth=n,s}function hs(n,e){var t=e.containerWidth,r=e.font,s=e.contentWidth;if(!t)return"";var c=dv(n,r);if(c<=t)return n;for(var f=0;;f++){if(c<=s||f>=e.maxIterations){n+=e.ellipsis;break}var T=f===0?jl(n,s,e.ascCharWidth,e.cnCharWidth):c>0?Math.floor(n.length*s/c):0;n=n.substr(0,T),c=dv(n,r)}return n===""&&(n=e.placeholder),n}function jl(n,e,t,r){for(var s=0,c=0,f=n.length;c<f&&s<e;c++){var T=n.charCodeAt(c);s+=0<=T&&T<=127?t:r}return c}function Gl(n,e){n!=null&&(n+="");var t=e.overflow,r=e.padding,s=e.font,c=t==="truncate",f=Jm(s),T=sn(e.lineHeight,f),R=!!e.backgroundColor,I=e.lineOverflow==="truncate",B=e.width,Y;B!=null&&(t==="break"||t==="breakAll")?Y=n?Ny(n,e.font,B,t==="breakAll",0).lines:[]:Y=n?n.split(`
|
||
`):[];var q=Y.length*T,ie=sn(e.height,q);if(q>ie&&I){var ge=Math.floor(ie/T);Y=Y.slice(0,ge)}if(n&&c&&B!=null)for(var Oe=Uo(B,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),Ne=0;Ne<Y.length;Ne++)Y[Ne]=hs(Y[Ne],Oe);for(var He=ie,st=0,Ne=0;Ne<Y.length;Ne++)st=Math.max(dv(Y[Ne],s),st);B==null&&(B=st);var pt=st;return r&&(He+=r[0]+r[2],pt+=r[1]+r[3],B+=r[1]+r[3]),R&&(pt=B),{lines:Y,height:ie,outerWidth:pt,outerHeight:He,lineHeight:T,calculatedLineHeight:f,contentWidth:st,contentHeight:q,width:B}}var Jd=function(){function n(){}return n}(),Ku=function(){function n(e){this.tokens=[],e&&(this.tokens=e)}return n}(),Nd=function(){function n(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return n}();function pp(n,e){var t=new Nd;if(n!=null&&(n+=""),!n)return t;for(var r=e.width,s=e.height,c=e.overflow,f=(c==="break"||c==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:c==="breakAll"}:null,T=Cf.lastIndex=0,R;(R=Cf.exec(n))!=null;){var I=R.index;I>T&&Rd(t,n.substring(T,I),e,f),Rd(t,R[2],e,f,R[1]),T=Cf.lastIndex}T<n.length&&Rd(t,n.substring(T,n.length),e,f);var B=[],Y=0,q=0,ie=e.padding,ge=c==="truncate",Oe=e.lineOverflow==="truncate";function Ne(zo,xs,pl){zo.width=xs,zo.lineHeight=pl,Y+=pl,q=Math.max(q,xs)}e:for(var He=0;He<t.lines.length;He++){for(var st=t.lines[He],pt=0,Ut=0,pn=0;pn<st.tokens.length;pn++){var yn=st.tokens[pn],jn=yn.styleName&&e.rich[yn.styleName]||{},Cr=yn.textPadding=jn.padding,Nr=Cr?Cr[1]+Cr[3]:0,Rr=yn.font=jn.font||e.font;yn.contentHeight=Jm(Rr);var Er=sn(jn.height,yn.contentHeight);if(yn.innerHeight=Er,Cr&&(Er+=Cr[0]+Cr[2]),yn.height=Er,yn.lineHeight=Ot(jn.lineHeight,e.lineHeight,Er),yn.align=jn&&jn.align||e.align,yn.verticalAlign=jn&&jn.verticalAlign||"middle",Oe&&s!=null&&Y+yn.lineHeight>s){pn>0?(st.tokens=st.tokens.slice(0,pn),Ne(st,Ut,pt),t.lines=t.lines.slice(0,He+1)):t.lines=t.lines.slice(0,He);break e}var ma=jn.width,wa=ma==null||ma==="auto";if(typeof ma=="string"&&ma.charAt(ma.length-1)==="%")yn.percentWidth=ma,B.push(yn),yn.contentWidth=dv(yn.text,Rr);else{if(wa){var Ga=jn.backgroundColor,Ei=Ga&&Ga.image;Ei&&(Ei=Dd(Ei),bd(Ei)&&(yn.width=Math.max(yn.width,Ei.width*Er/Ei.height)))}var Vi=ge&&r!=null?r-Ut:null;Vi!=null&&Vi<yn.width?!wa||Vi<Nr?(yn.text="",yn.width=yn.contentWidth=0):(yn.text=ss(yn.text,Vi-Nr,Rr,e.ellipsis,{minChar:e.truncateMinChar}),yn.width=yn.contentWidth=dv(yn.text,Rr)):yn.contentWidth=dv(yn.text,Rr)}yn.width+=Nr,Ut+=yn.width,jn&&(pt=Math.max(pt,yn.lineHeight))}Ne(st,Ut,pt)}t.outerWidth=t.width=sn(r,q),t.outerHeight=t.height=sn(s,Y),t.contentHeight=Y,t.contentWidth=q,ie&&(t.outerWidth+=ie[1]+ie[3],t.outerHeight+=ie[0]+ie[2]);for(var He=0;He<B.length;He++){var yn=B[He],ns=yn.percentWidth;yn.width=parseInt(ns,10)/100*t.width}return t}function Rd(n,e,t,r,s){var c=e==="",f=s&&t.rich[s]||{},T=n.lines,R=f.font||t.font,I=!1,B,Y;if(r){var q=f.padding,ie=q?q[1]+q[3]:0;if(f.width!=null&&f.width!=="auto"){var ge=ch(f.width,r.width)+ie;T.length>0&&ge+r.accumWidth>r.width&&(B=e.split(`
|
||
`),I=!0),r.accumWidth=ge}else{var Oe=Ny(e,R,r.width,r.breakAll,r.accumWidth);r.accumWidth=Oe.accumWidth+ie,Y=Oe.linesWidths,B=Oe.lines}}else B=e.split(`
|
||
`);for(var Ne=0;Ne<B.length;Ne++){var He=B[Ne],st=new Jd;if(st.styleName=s,st.text=He,st.isLineHolder=!He&&!c,typeof f.width=="number"?st.width=f.width:st.width=Y?Y[Ne]:dv(He,R),!Ne&&!I){var pt=(T[T.length-1]||(T[0]=new Ku)).tokens,Ut=pt.length;Ut===1&&pt[0].isLineHolder?pt[0]=st:(He||!Ut||c)&&pt.push(st)}else T.push(new Ku([st]))}}function uh(n){var e=n.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var yC=ta(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function bC(n){return uh(n)?!!yC[n]:!0}function Ny(n,e,t,r,s){for(var c=[],f=[],T="",R="",I=0,B=0,Y=0;Y<n.length;Y++){var q=n.charAt(Y);if(q===`
|
||
`){R&&(T+=R,B+=I),c.push(T),f.push(B),T="",R="",I=0,B=0;continue}var ie=dv(q,e),ge=r?!1:!bC(q);if(c.length?B+ie>t:s+B+ie>t){B?(T||R)&&(ge?(T||(T=R,R="",I=0,B=I),c.push(T),f.push(B-I),R+=q,I+=ie,T="",B=I):(R&&(T+=R,R="",I=0),c.push(T),f.push(B),T=q,B=ie)):ge?(c.push(R),f.push(I),R=q,I=ie):(c.push(q),f.push(ie));continue}B+=ie,ge?(R+=q,I+=ie):(R&&(T+=R,R="",I=0),T+=q)}return!c.length&&!T&&(T=n,R="",I=0),R&&(T+=R),T&&(c.push(T),f.push(B)),c.length===1&&(B+=s),{accumWidth:B,lines:c,linesWidths:f}}var P1="__zr_style_"+Math.round(Math.random()*10),Ly={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},n0={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ly[P1]=!0;var Pm=["z","z2","invisible"],Gw=["invisible"],xC=function(n){ms(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=Ua(t),s=0;s<r.length;s++){var c=r[s];c==="style"?this.useStyle(t[c]):n.prototype.attrKV.call(this,c,t[c])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,r,s,c){var f=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&EC(this,t,r)||f&&!f[0]&&!f[3])return!1;if(s&&this.__clipPaths){for(var T=0;T<this.__clipPaths.length;++T)if(this.__clipPaths[T].isZeroArea())return!1}if(c&&this.parent)for(var R=this.parent;R;){if(R.ignore)return!1;R=R.parent}return!0},e.prototype.contain=function(t,r){return this.rectContain(t,r)},e.prototype.traverse=function(t,r){t.call(r,this)},e.prototype.rectContain=function(t,r){var s=this.transformCoordToLocal(t,r),c=this.getBoundingRect();return c.contain(s[0],s[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,s=this.getBoundingRect(),c=this.style,f=c.shadowBlur||0,T=c.shadowOffsetX||0,R=c.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ra(0,0,0,0)),r?ra.applyTransform(t,s,r):t.copy(s),(f||T||R)&&(t.width+=f*2+Math.abs(T),t.height+=f*2+Math.abs(R),t.x=Math.min(t.x,t.x+T-f),t.y=Math.min(t.y,t.y+R-f));var I=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-I),t.y=Math.floor(t.y-I),t.width=Math.ceil(t.width+1+I*2),t.height=Math.ceil(t.height+1+I*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new ra(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,r){t!=="style"?n.prototype.attrKV.call(this,t,r):this.style?this.setStyle(r):this.useStyle(r)},e.prototype.setStyle=function(t,r){return typeof t=="string"?this.style[t]=r:Ea(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Fs,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Fs)},e.prototype.styleUpdated=function(){this.__dirty&=~Fs},e.prototype.createStyle=function(t){return Mi(Ly,t)},e.prototype.useStyle=function(t){t[P1]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[P1]},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,r,Pm)},e.prototype._applyStateObj=function(t,r,s,c,f,T){n.prototype._applyStateObj.call(this,t,r,s,c,f,T);var R=!(r&&c),I;if(r&&r.style?f?c?I=r.style:(I=this._mergeStyle(this.createStyle(),s.style),this._mergeStyle(I,r.style)):(I=this._mergeStyle(this.createStyle(),c?this.style:s.style),this._mergeStyle(I,r.style)):R&&(I=s.style),I)if(f){var B=this.style;if(this.style=this.createStyle(R?{}:B),R)for(var Y=Ua(B),q=0;q<Y.length;q++){var ie=Y[q];ie in I&&(I[ie]=I[ie],this.style[ie]=B[ie])}for(var ge=Ua(I),q=0;q<ge.length;q++){var ie=ge[q];this.style[ie]=this.style[ie]}this._transitionState(t,{style:I},T,this.getAnimationStyleProps())}else this.useStyle(I);for(var Oe=this.__inHover?Gw:Pm,q=0;q<Oe.length;q++){var ie=Oe[q];r&&r[ie]!=null?this[ie]=r[ie]:R&&s[ie]!=null&&(this[ie]=s[ie])}},e.prototype._mergeStates=function(t){for(var r=n.prototype._mergeStates.call(this,t),s,c=0;c<t.length;c++){var f=t[c];f.style&&(s=s||{},this._mergeStyle(s,f.style))}return s&&(r.style=s),r},e.prototype._mergeStyle=function(t,r){return Ea(t,r),t},e.prototype.getAnimationStyleProps=function(){return n0},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=as|Fs}(),e}(_o),yE=new ra(0,0,0,0),bE=new ra(0,0,0,0);function EC(n,e,t){return yE.copy(n.getBoundingRect()),n.transform&&yE.applyTransform(n.transform),bE.width=e,bE.height=t,!yE.intersect(bE)}var Qm=xC,Rm=Math.min,Jh=Math.max,xE=Math.sin,Kb=Math.cos,R0=Math.PI*2,lp=Dc(),Vm=Dc(),Yb=Dc();function Fy(n,e,t){if(n.length!==0){for(var r=n[0],s=r[0],c=r[0],f=r[1],T=r[1],R=1;R<n.length;R++)r=n[R],s=Rm(s,r[0]),c=Jh(c,r[0]),f=Rm(f,r[1]),T=Jh(T,r[1]);e[0]=s,e[1]=f,t[0]=c,t[1]=T}}function EE(n,e,t,r,s,c){s[0]=Rm(n,t),s[1]=Rm(e,r),c[0]=Jh(n,t),c[1]=Jh(e,r)}var SC=[],CC=[];function wC(n,e,t,r,s,c,f,T,R,I){var B=hn,Y=Gc,q=B(n,t,s,f,SC);R[0]=Infinity,R[1]=Infinity,I[0]=-Infinity,I[1]=-Infinity;for(var ie=0;ie<q;ie++){var ge=Y(n,t,s,f,SC[ie]);R[0]=Rm(ge,R[0]),I[0]=Jh(ge,I[0])}q=B(e,r,c,T,CC);for(var ie=0;ie<q;ie++){var Oe=Y(e,r,c,T,CC[ie]);R[1]=Rm(Oe,R[1]),I[1]=Jh(Oe,I[1])}R[0]=Rm(n,R[0]),I[0]=Jh(n,I[0]),R[0]=Rm(f,R[0]),I[0]=Jh(f,I[0]),R[1]=Rm(e,R[1]),I[1]=Jh(e,I[1]),R[1]=Rm(T,R[1]),I[1]=Jh(T,I[1])}function SE(n,e,t,r,s,c,f,T){var R=Ia,I=Lr,B=Jh(Rm(R(n,t,s),1),0),Y=Jh(Rm(R(e,r,c),1),0),q=I(n,t,s,B),ie=I(e,r,c,Y);f[0]=Rm(n,s,q),f[1]=Rm(e,c,ie),T[0]=Jh(n,s,q),T[1]=Jh(e,c,ie)}function $w(n,e,t,r,s,c,f,T,R){var I=rf,B=Bu,Y=Math.abs(s-c);if(Y%R0<1e-4&&Y>1e-4){T[0]=n-t,T[1]=e-r,R[0]=n+t,R[1]=e+r;return}if(lp[0]=Kb(s)*t+n,lp[1]=xE(s)*r+e,Vm[0]=Kb(c)*t+n,Vm[1]=xE(c)*r+e,I(T,lp,Vm),B(R,lp,Vm),s=s%R0,s<0&&(s=s+R0),c=c%R0,c<0&&(c=c+R0),s>c&&!f?c+=R0:s<c&&f&&(s+=R0),f){var q=c;c=s,s=q}for(var ie=0;ie<c;ie+=Math.PI/2)ie>s&&(Yb[0]=Kb(ie)*t+n,Yb[1]=xE(ie)*r+e,I(T,Yb,T),B(R,Yb,R))}var Gp={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},I_=[],D_=[],l_=[],Jg=[],c_=[],Qg=[],Xb=Math.min,r0=Math.max,a0=Math.cos,O0=Math.sin,i0=Math.abs,Jb=Math.PI,I0=Jb*2,jy=typeof Float32Array!="undefined",u_=[];function Qb(n){var e=Math.round(n/Jb*1e8)/1e8;return e%2*Jb}function qb(n,e){var t=Qb(n[0]);t<0&&(t+=I0);var r=t-n[0],s=n[1];s+=r,!e&&s-t>=I0?s=t+I0:e&&t-s>=I0?s=t-I0:!e&&t>s?s=t+(I0-Qb(t-s)):e&&t<s&&(s=t-(I0-Qb(s-t))),n[0]=t,n[1]=s}var TC=function(){function n(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return n.prototype.increaseVersion=function(){this._version++},n.prototype.getVersion=function(){return this._version},n.prototype.setScale=function(e,t,r){r=r||0,r>0&&(this._ux=i0(r/ah/e)||0,this._uy=i0(r/ah/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Gp.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=i0(e-this._xi),s=i0(t-this._yi),c=r>this._ux||s>this._uy;if(this.addData(Gp.L,e,t),this._ctx&&c&&this._ctx.lineTo(e,t),c)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var f=r*r+s*s;f>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=f)}return this},n.prototype.bezierCurveTo=function(e,t,r,s,c,f){return this._drawPendingPt(),this.addData(Gp.C,e,t,r,s,c,f),this._ctx&&this._ctx.bezierCurveTo(e,t,r,s,c,f),this._xi=c,this._yi=f,this},n.prototype.quadraticCurveTo=function(e,t,r,s){return this._drawPendingPt(),this.addData(Gp.Q,e,t,r,s),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,s),this._xi=r,this._yi=s,this},n.prototype.arc=function(e,t,r,s,c,f){this._drawPendingPt(),u_[0]=s,u_[1]=c,qb(u_,f),s=u_[0],c=u_[1];var T=c-s;return this.addData(Gp.A,e,t,r,r,s,T,0,f?0:1),this._ctx&&this._ctx.arc(e,t,r,s,c,f),this._xi=a0(c)*r+e,this._yi=O0(c)*r+t,this},n.prototype.arcTo=function(e,t,r,s,c){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,s,c),this},n.prototype.rect=function(e,t,r,s){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,s),this.addData(Gp.R,e,t,r,s),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(Gp.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&jy&&(this.data=new Float32Array(t));for(var r=0;r<t;r++)this.data[r]=e[r];this._len=t},n.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,r=0,s=this._len,c=0;c<t;c++)r+=e[c].len();jy&&this.data instanceof Float32Array&&(this.data=new Float32Array(s+r));for(var c=0;c<t;c++)for(var f=e[c].data,T=0;T<f.length;T++)this.data[s++]=f[T];this._len=s},n.prototype.addData=function(e,t,r,s,c,f,T,R,I){if(!!this._saveData){var B=this.data;this._len+arguments.length>B.length&&(this._expandData(),B=this.data);for(var Y=0;Y<arguments.length;Y++)B[this._len++]=arguments[Y]}},n.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},n.prototype.toStatic=function(){if(!!this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,jy&&this._len>11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){l_[0]=l_[1]=c_[0]=c_[1]=Number.MAX_VALUE,Jg[0]=Jg[1]=Qg[0]=Qg[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,s=0,c=0,f;for(f=0;f<this._len;){var T=e[f++],R=f===1;switch(R&&(t=e[f],r=e[f+1],s=t,c=r),T){case Gp.M:t=s=e[f++],r=c=e[f++],c_[0]=s,c_[1]=c,Qg[0]=s,Qg[1]=c;break;case Gp.L:EE(t,r,e[f],e[f+1],c_,Qg),t=e[f++],r=e[f++];break;case Gp.C:wC(t,r,e[f++],e[f++],e[f++],e[f++],e[f],e[f+1],c_,Qg),t=e[f++],r=e[f++];break;case Gp.Q:SE(t,r,e[f++],e[f++],e[f],e[f+1],c_,Qg),t=e[f++],r=e[f++];break;case Gp.A:var I=e[f++],B=e[f++],Y=e[f++],q=e[f++],ie=e[f++],ge=e[f++]+ie;f+=1;var Oe=!e[f++];R&&(s=a0(ie)*Y+I,c=O0(ie)*q+B),$w(I,B,Y,q,ie,ge,Oe,c_,Qg),t=a0(ge)*Y+I,r=O0(ge)*q+B;break;case Gp.R:s=t=e[f++],c=r=e[f++];var Ne=e[f++],He=e[f++];EE(s,c,s+Ne,c+He,c_,Qg);break;case Gp.Z:t=s,r=c;break}rf(l_,l_,c_),Bu(Jg,Jg,Qg)}return f===0&&(l_[0]=l_[1]=Jg[0]=Jg[1]=0),new ra(l_[0],l_[1],Jg[0]-l_[0],Jg[1]-l_[1])},n.prototype._calculateLength=function(){var e=this.data,t=this._len,r=this._ux,s=this._uy,c=0,f=0,T=0,R=0;this._pathSegLen||(this._pathSegLen=[]);for(var I=this._pathSegLen,B=0,Y=0,q=0;q<t;){var ie=e[q++],ge=q===1;ge&&(c=e[q],f=e[q+1],T=c,R=f);var Oe=-1;switch(ie){case Gp.M:c=T=e[q++],f=R=e[q++];break;case Gp.L:{var Ne=e[q++],He=e[q++],st=Ne-c,pt=He-f;(i0(st)>r||i0(pt)>s||q===t-1)&&(Oe=Math.sqrt(st*st+pt*pt),c=Ne,f=He);break}case Gp.C:{var Ut=e[q++],pn=e[q++],Ne=e[q++],He=e[q++],yn=e[q++],jn=e[q++];Oe=Mn(c,f,Ut,pn,Ne,He,yn,jn,10),c=yn,f=jn;break}case Gp.Q:{var Ut=e[q++],pn=e[q++],Ne=e[q++],He=e[q++];Oe=fo(c,f,Ut,pn,Ne,He,10),c=Ne,f=He;break}case Gp.A:var Cr=e[q++],Nr=e[q++],Rr=e[q++],Er=e[q++],ma=e[q++],wa=e[q++],Ga=wa+ma;q+=1;var Ei=!e[q++];ge&&(T=a0(ma)*Rr+Cr,R=O0(ma)*Er+Nr),Oe=r0(Rr,Er)*Xb(I0,Math.abs(wa)),c=a0(Ga)*Rr+Cr,f=O0(Ga)*Er+Nr;break;case Gp.R:{T=c=e[q++],R=f=e[q++];var Vi=e[q++],ns=e[q++];Oe=Vi*2+ns*2;break}case Gp.Z:{var st=T-c,pt=R-f;Oe=Math.sqrt(st*st+pt*pt),c=T,f=R;break}}Oe>=0&&(I[Y++]=Oe,B+=Oe)}return this._pathLen=B,B},n.prototype.rebuildPath=function(e,t){var r=this.data,s=this._ux,c=this._uy,f=this._len,T,R,I,B,Y,q,ie=t<1,ge,Oe,Ne=0,He=0,st,pt=0,Ut,pn;if(ie&&(this._pathSegLen||this._calculateLength(),ge=this._pathSegLen,Oe=this._pathLen,st=t*Oe,!st))return;e:for(var yn=0;yn<f;){var jn=r[yn++],Cr=yn===1;switch(Cr&&(I=r[yn],B=r[yn+1],T=I,R=B),jn!==Gp.L&&pt>0&&(e.lineTo(Ut,pn),pt=0),jn){case Gp.M:T=I=r[yn++],R=B=r[yn++],e.moveTo(I,B);break;case Gp.L:{Y=r[yn++],q=r[yn++];var Nr=i0(Y-I),Rr=i0(q-B);if(Nr>s||Rr>c){if(ie){var Er=ge[He++];if(Ne+Er>st){var ma=(st-Ne)/Er;e.lineTo(I*(1-ma)+Y*ma,B*(1-ma)+q*ma);break e}Ne+=Er}e.lineTo(Y,q),I=Y,B=q,pt=0}else{var wa=Nr*Nr+Rr*Rr;wa>pt&&(Ut=Y,pn=q,pt=wa)}break}case Gp.C:{var Ga=r[yn++],Ei=r[yn++],Vi=r[yn++],ns=r[yn++],zo=r[yn++],xs=r[yn++];if(ie){var Er=ge[He++];if(Ne+Er>st){var ma=(st-Ne)/Er;dn(I,Ga,Vi,zo,ma,I_),dn(B,Ei,ns,xs,ma,D_),e.bezierCurveTo(I_[1],D_[1],I_[2],D_[2],I_[3],D_[3]);break e}Ne+=Er}e.bezierCurveTo(Ga,Ei,Vi,ns,zo,xs),I=zo,B=xs;break}case Gp.Q:{var Ga=r[yn++],Ei=r[yn++],Vi=r[yn++],ns=r[yn++];if(ie){var Er=ge[He++];if(Ne+Er>st){var ma=(st-Ne)/Er;Ja(I,Ga,Vi,ma,I_),Ja(B,Ei,ns,ma,D_),e.quadraticCurveTo(I_[1],D_[1],I_[2],D_[2]);break e}Ne+=Er}e.quadraticCurveTo(Ga,Ei,Vi,ns),I=Vi,B=ns;break}case Gp.A:var pl=r[yn++],Rl=r[yn++],zl=r[yn++],Yc=r[yn++],kc=r[yn++],tf=r[yn++],wf=r[yn++],su=!r[yn++],ic=zl>Yc?zl:Yc,Uc=i0(zl-Yc)>.001,bu=kc+tf,tc=!1;if(ie){var Er=ge[He++];Ne+Er>st&&(bu=kc+tf*(st-Ne)/Er,tc=!0),Ne+=Er}if(Uc&&e.ellipse?e.ellipse(pl,Rl,zl,Yc,wf,kc,bu,su):e.arc(pl,Rl,ic,kc,bu,su),tc)break e;Cr&&(T=a0(kc)*zl+pl,R=O0(kc)*Yc+Rl),I=a0(bu)*zl+pl,B=O0(bu)*Yc+Rl;break;case Gp.R:T=I=r[yn],R=B=r[yn+1],Y=r[yn++],q=r[yn++];var nf=r[yn++],gd=r[yn++];if(ie){var Er=ge[He++];if(Ne+Er>st){var xd=st-Ne;e.moveTo(Y,q),e.lineTo(Y+Xb(xd,nf),q),xd-=nf,xd>0&&e.lineTo(Y+nf,q+Xb(xd,gd)),xd-=gd,xd>0&&e.lineTo(Y+r0(nf-xd,0),q+gd),xd-=nf,xd>0&&e.lineTo(Y,q+r0(gd-xd,0));break e}Ne+=Er}e.rect(Y,q,nf,gd);break;case Gp.Z:if(ie){var Er=ge[He++];if(Ne+Er>st){var ma=(st-Ne)/Er;e.lineTo(I*(1-ma)+T*ma,B*(1-ma)+R*ma);break e}Ne+=Er}e.closePath(),I=T,B=R}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=Gp,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}(),f_=TC;function ay(n,e,t,r,s,c,f){if(s===0)return!1;var T=s,R=0,I=n;if(f>e+T&&f>r+T||f<e-T&&f<r-T||c>n+T&&c>t+T||c<n-T&&c<t-T)return!1;if(n!==t)R=(e-r)/(n-t),I=(n*r-t*e)/(n-t);else return Math.abs(c-n)<=T/2;var B=R*c-f+I,Y=B*B/(R*R+1);return Y<=T/2*T/2}function GM(n,e,t,r,s,c,f,T,R,I,B){if(R===0)return!1;var Y=R;if(B>e+Y&&B>r+Y&&B>c+Y&&B>T+Y||B<e-Y&&B<r-Y&&B<c-Y&&B<T-Y||I>n+Y&&I>t+Y&&I>s+Y&&I>f+Y||I<n-Y&&I<t-Y&&I<s-Y&&I<f-Y)return!1;var q=tr(n,e,t,r,s,c,f,T,I,B,null);return q<=Y/2}function CE(n,e,t,r,s,c,f,T,R){if(f===0)return!1;var I=f;if(R>e+I&&R>r+I&&R>c+I||R<e-I&&R<r-I&&R<c-I||T>n+I&&T>t+I&&T>s+I||T<n-I&&T<t-I&&T<s-I)return!1;var B=pi(n,e,t,r,s,c,T,R,null);return B<=I/2}var AC=Math.PI*2;function d_(n){return n%=AC,n<0&&(n+=AC),n}var R1=Math.PI*2;function MC(n,e,t,r,s,c,f,T,R){if(f===0)return!1;var I=f;T-=n,R-=e;var B=Math.sqrt(T*T+R*R);if(B-I>t||B+I<t)return!1;if(Math.abs(r-s)%R1<1e-4)return!0;if(c){var Y=r;r=d_(s),s=d_(Y)}else r=d_(r),s=d_(s);r>s&&(s+=R1);var q=Math.atan2(R,T);return q<0&&(q+=R1),q>=r&&q<=s||q+R1>=r&&q+R1<=s}function o0(n,e,t,r,s,c){if(c>e&&c>r||c<e&&c<r||r===e)return 0;var f=(c-e)/(r-e),T=r<e?1:-1;(f===1||f===0)&&(T=r<e?.5:-.5);var R=f*(t-n)+n;return R===s?Infinity:R>s?T:0}var D0=f_.CMD,iy=Math.PI*2,Kw=1e-4;function Yw(n,e){return Math.abs(n-e)<Kw}var Vv=[-1,-1,-1],jg=[-1,-1];function wE(){var n=jg[0];jg[0]=jg[1],jg[1]=n}function s0(n,e,t,r,s,c,f,T,R,I){if(I>e&&I>r&&I>c&&I>T||I<e&&I<r&&I<c&&I<T)return 0;var B=pf(e,r,c,T,I,Vv);if(B===0)return 0;for(var Y=0,q=-1,ie=void 0,ge=void 0,Oe=0;Oe<B;Oe++){var Ne=Vv[Oe],He=Ne===0||Ne===1?.5:1,st=Gc(n,t,s,f,Ne);st<R||(q<0&&(q=hn(e,r,c,T,jg),jg[1]<jg[0]&&q>1&&wE(),ie=Gc(e,r,c,T,jg[0]),q>1&&(ge=Gc(e,r,c,T,jg[1]))),q===2?Ne<jg[0]?Y+=ie<e?He:-He:Ne<jg[1]?Y+=ge<ie?He:-He:Y+=T<ge?He:-He:Ne<jg[0]?Y+=ie<e?He:-He:Y+=T<ie?He:-He)}return Y}function Cd(n,e,t,r,s,c,f,T){if(T>e&&T>r&&T>c||T<e&&T<r&&T<c)return 0;var R=Ma(e,r,c,T,Vv);if(R===0)return 0;var I=Ia(e,r,c);if(I>=0&&I<=1){for(var B=0,Y=Lr(e,r,c,I),q=0;q<R;q++){var ie=Vv[q]===0||Vv[q]===1?.5:1,ge=Lr(n,t,s,Vv[q]);ge<f||(Vv[q]<I?B+=Y<e?ie:-ie:B+=c<Y?ie:-ie)}return B}else{var ie=Vv[0]===0||Vv[0]===1?.5:1,ge=Lr(n,t,s,Vv[0]);return ge<f?0:c<e?ie:-ie}}function Xw(n,e,t,r,s,c,f,T){if(T-=e,T>t||T<-t)return 0;var R=Math.sqrt(t*t-T*T);Vv[0]=-R,Vv[1]=R;var I=Math.abs(r-s);if(I<1e-4)return 0;if(I>=iy-1e-4){r=0,s=iy;var B=c?1:-1;return f>=Vv[0]+n&&f<=Vv[1]+n?B:0}if(r>s){var Y=r;r=s,s=Y}r<0&&(r+=iy,s+=iy);for(var q=0,ie=0;ie<2;ie++){var ge=Vv[ie];if(ge+n>f){var Oe=Math.atan2(T,ge),B=c?1:-1;Oe<0&&(Oe=iy+Oe),(Oe>=r&&Oe<=s||Oe+iy>=r&&Oe+iy<=s)&&(Oe>Math.PI/2&&Oe<Math.PI*1.5&&(B=-B),q+=B)}}return q}function zm(n,e,t,r,s){for(var c=n.data,f=n.len(),T=0,R=0,I=0,B=0,Y=0,q,ie,ge=0;ge<f;){var Oe=c[ge++],Ne=ge===1;switch(Oe===D0.M&&ge>1&&(t||(T+=o0(R,I,B,Y,r,s))),Ne&&(R=c[ge],I=c[ge+1],B=R,Y=I),Oe){case D0.M:B=c[ge++],Y=c[ge++],R=B,I=Y;break;case D0.L:if(t){if(ay(R,I,c[ge],c[ge+1],e,r,s))return!0}else T+=o0(R,I,c[ge],c[ge+1],r,s)||0;R=c[ge++],I=c[ge++];break;case D0.C:if(t){if(GM(R,I,c[ge++],c[ge++],c[ge++],c[ge++],c[ge],c[ge+1],e,r,s))return!0}else T+=s0(R,I,c[ge++],c[ge++],c[ge++],c[ge++],c[ge],c[ge+1],r,s)||0;R=c[ge++],I=c[ge++];break;case D0.Q:if(t){if(CE(R,I,c[ge++],c[ge++],c[ge],c[ge+1],e,r,s))return!0}else T+=Cd(R,I,c[ge++],c[ge++],c[ge],c[ge+1],r,s)||0;R=c[ge++],I=c[ge++];break;case D0.A:var He=c[ge++],st=c[ge++],pt=c[ge++],Ut=c[ge++],pn=c[ge++],yn=c[ge++];ge+=1;var jn=!!(1-c[ge++]);q=Math.cos(pn)*pt+He,ie=Math.sin(pn)*Ut+st,Ne?(B=q,Y=ie):T+=o0(R,I,q,ie,r,s);var Cr=(r-He)*Ut/pt+He;if(t){if(MC(He,st,Ut,pn,pn+yn,jn,e,Cr,s))return!0}else T+=Xw(He,st,Ut,pn,pn+yn,jn,Cr,s);R=Math.cos(pn+yn)*pt+He,I=Math.sin(pn+yn)*Ut+st;break;case D0.R:B=R=c[ge++],Y=I=c[ge++];var Nr=c[ge++],Rr=c[ge++];if(q=B+Nr,ie=Y+Rr,t){if(ay(B,Y,q,Y,e,r,s)||ay(q,Y,q,ie,e,r,s)||ay(q,ie,B,ie,e,r,s)||ay(B,ie,B,Y,e,r,s))return!0}else T+=o0(q,Y,q,ie,r,s),T+=o0(B,ie,B,Y,r,s);break;case D0.Z:if(t){if(ay(R,I,B,Y,e,r,s))return!0}else T+=o0(R,I,B,Y,r,s);R=B,I=Y;break}}return!t&&!Yw(I,Y)&&(T+=o0(R,I,B,Y,r,s)||0),T!==0}function Th(n,e,t){return zm(n,0,!1,e,t)}function kC(n,e,t,r){return zm(n,e,!0,t,r)}var p_=Pi({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ly),PC={style:Pi({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},n0.style)},ex=nv.concat(["invisible","culling","z","z2","zlevel","parent"]),$M=function(n){ms(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var s=this._decalEl=this._decalEl||new e;s.buildPath===e.prototype.buildPath&&(s.buildPath=function(R){t.buildPath(R,t.shape)}),s.silent=!0;var c=s.style;for(var f in r)c[f]!==r[f]&&(c[f]=r[f]);c.fill=r.fill?r.decal:null,c.decal=null,c.shadowColor=null,r.strokeFirst&&(c.stroke=null);for(var T=0;T<ex.length;++T)s[ex[T]]=this[ex[T]];s.__dirty|=as}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var r=Ua(t);this.shape=this.getDefaultShape();var s=this.getDefaultStyle();s&&this.useStyle(s);for(var c=0;c<r.length;c++){var f=r[c],T=t[f];f==="style"?this.style?Ea(this.style,T):this.useStyle(T):f==="shape"?Ea(this.shape,T):n.prototype.attrKV.call(this,f,T)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(ei(t)){var r=Jn(t,0);return r>.5?Og:r>.2?Dp:Kh}else if(t)return Kh}return Og},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(ei(r)){var s=this.__zr,c=!!(s&&s.isDarkMode()),f=Jn(t,0)<om;if(c===f)return r}},e.prototype.buildPath=function(t,r,s){},e.prototype.pathUpdated=function(){this.__dirty&=~Fr},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new f_(!1)},e.prototype.hasStroke=function(){var t=this.style,r=t.stroke;return!(r==null||r==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,s=!t;if(s){var c=!1;this.path||(c=!0,this.createPathProxy());var f=this.path;(c||this.__dirty&Fr)&&(f.beginPath(),this.buildPath(f,this.shape,!1),this.pathUpdated()),t=f.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var T=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||s){T.copy(t);var R=r.strokeNoScale?this.getLineScale():1,I=r.lineWidth;if(!this.hasFill()){var B=this.strokeContainThreshold;I=Math.max(I,B==null?4:B)}R>1e-10&&(T.width+=I/R,T.height+=I/R,T.x-=I/R/2,T.y-=I/R/2)}return T}return t},e.prototype.contain=function(t,r){var s=this.transformCoordToLocal(t,r),c=this.getBoundingRect(),f=this.style;if(t=s[0],r=s[1],c.contain(t,r)){var T=this.path;if(this.hasStroke()){var R=f.lineWidth,I=f.strokeNoScale?this.getLineScale():1;if(I>1e-10&&(this.hasFill()||(R=Math.max(R,this.strokeContainThreshold)),kC(T,R/I,t,r)))return!0}if(this.hasFill())return Th(T,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Fr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var s=this.shape;return s||(s=this.shape={}),typeof t=="string"?s[t]=r:Ea(s,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Fr)},e.prototype.createStyle=function(t){return Mi(p_,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=Ea({},this.shape))},e.prototype._applyStateObj=function(t,r,s,c,f,T){n.prototype._applyStateObj.call(this,t,r,s,c,f,T);var R=!(r&&c),I;if(r&&r.shape?f?c?I=r.shape:(I=Ea({},s.shape),Ea(I,r.shape)):(I=Ea({},c?this.shape:s.shape),Ea(I,r.shape)):R&&(I=s.shape),I)if(f){this.shape=Ea({},this.shape);for(var B={},Y=Ua(I),q=0;q<Y.length;q++){var ie=Y[q];typeof I[ie]=="object"?this.shape[ie]=I[ie]:B[ie]=I[ie]}this._transitionState(t,{shape:B},T)}else this.shape=I,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var r=n.prototype._mergeStates.call(this,t),s,c=0;c<t.length;c++){var f=t[c];f.shape&&(s=s||{},this._mergeStyle(s,f.shape))}return s&&(r.shape=s),r},e.prototype.getAnimationStyleProps=function(){return PC},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var r=function(c){ms(f,c);function f(T){var R=c.call(this,T)||this;return t.init&&t.init.call(R,T),R}return f.prototype.getDefaultStyle=function(){return Kr(t.style)},f.prototype.getDefaultShape=function(){return Kr(t.shape)},f}(e);for(var s in t)typeof t[s]=="function"&&(r.prototype[s]=t[s]);return r},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=as|Fs|Fr}(),e}(Qm),Od=$M,O1=Pi({strokeFirst:!0,font:Zt,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},p_),I1=function(n){ms(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,r=t.stroke;return r!=null&&r!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return Mi(O1,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var s=Mm(r,t.font,t.textAlign,t.textBaseline);if(s.x+=t.x||0,s.y+=t.y||0,this.hasStroke()){var c=t.lineWidth;s.x-=c/2,s.y-=c/2,s.width+=c,s.height+=c}this._rect=s}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Qm);I1.prototype.type="tspan";var oy=I1,v_=Pi({x:0,y:0},Ly),Jw={style:Pi({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},n0.style)};function D1(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var zv=function(n){ms(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Mi(v_,t)},e.prototype._getSize=function(t){var r=this.style,s=r[t];if(s!=null)return s;var c=D1(r.image)?r.image:this.__image;if(!c)return 0;var f=t==="width"?"height":"width",T=r[f];return T==null?c[t]:c[t]/c[f]*T},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Jw},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ra(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Qm);zv.prototype.type="image";var wp=zv;function fh(n,e){var t=e.x,r=e.y,s=e.width,c=e.height,f=e.r,T,R,I,B;s<0&&(t=t+s,s=-s),c<0&&(r=r+c,c=-c),typeof f=="number"?T=R=I=B=f:f instanceof Array?f.length===1?T=R=I=B=f[0]:f.length===2?(T=I=f[0],R=B=f[1]):f.length===3?(T=f[0],R=B=f[1],I=f[2]):(T=f[0],R=f[1],I=f[2],B=f[3]):T=R=I=B=0;var Y;T+R>s&&(Y=T+R,T*=s/Y,R*=s/Y),I+B>s&&(Y=I+B,I*=s/Y,B*=s/Y),R+I>c&&(Y=R+I,R*=c/Y,I*=c/Y),T+B>c&&(Y=T+B,T*=c/Y,B*=c/Y),n.moveTo(t+T,r),n.lineTo(t+s-R,r),R!==0&&n.arc(t+s-R,r+R,R,-Math.PI/2,0),n.lineTo(t+s,r+c-I),I!==0&&n.arc(t+s-I,r+c-I,I,0,Math.PI/2),n.lineTo(t+B,r+c),B!==0&&n.arc(t+B,r+c-B,B,Math.PI/2,Math.PI),n.lineTo(t,r+T),T!==0&&n.arc(t+T,r+T,T,Math.PI,Math.PI*1.5)}var By=Math.round;function tx(n,e,t){if(!!e){var r=e.x1,s=e.x2,c=e.y1,f=e.y2;n.x1=r,n.x2=s,n.y1=c,n.y2=f;var T=t&&t.lineWidth;return T&&(By(r*2)===By(s*2)&&(n.x1=n.x2=l0(r,T,!0)),By(c*2)===By(f*2)&&(n.y1=n.y2=l0(c,T,!0))),n}}function Qw(n,e,t){if(!!e){var r=e.x,s=e.y,c=e.width,f=e.height;n.x=r,n.y=s,n.width=c,n.height=f;var T=t&&t.lineWidth;return T&&(n.x=l0(r,T,!0),n.y=l0(s,T,!0),n.width=Math.max(l0(r+c,T,!1)-n.x,c===0?0:1),n.height=Math.max(l0(s+f,T,!1)-n.y,f===0?0:1)),n}}function l0(n,e,t){if(!e)return n;var r=By(n*2);return(r+By(e))%2==0?r/2:(r+(t?1:-1))/2}var qw=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),pv={},N1=function(n){ms(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new qw},e.prototype.buildPath=function(t,r){var s,c,f,T;if(this.subPixelOptimize){var R=Qw(pv,r,this.style);s=R.x,c=R.y,f=R.width,T=R.height,R.r=r.r,r=R}else s=r.x,c=r.y,f=r.width,T=r.height;r.r?fh(t,r):t.rect(s,c,f,T)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Od);N1.prototype.type="rect";var jd=N1,L1={fill:"#000"},RC=2,TE={style:Pi({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},n0.style)},F1=function(n){ms(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=L1,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var r=this._children[t];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):n.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var r=this.innerTransformable;return r?r.getLocalTransform(t):n.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),n.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,eT(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){n.prototype.addSelfToZr.call(this,t);for(var r=0;r<this._children.length;r++)this._children[r].__zr=t},e.prototype.removeSelfFromZr=function(t){n.prototype.removeSelfFromZr.call(this,t);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new ra(0,0,0,0),r=this._children,s=[],c=null,f=0;f<r.length;f++){var T=r[f],R=T.getBoundingRect(),I=T.getLocalTransform(s);I?(t.copy(R),t.applyTransform(I),c=c||t.clone(),c.union(t)):(c=c||R.clone(),c.union(R))}this._rect=c||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||L1},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,r){if(!r)return t;var s=r.rich,c=t.rich||s&&{};return Ea(t,r),s&&c?(this._mergeRich(c,s),t.rich=c):c&&(t.rich=c),t},e.prototype._mergeRich=function(t,r){for(var s=Ua(r),c=0;c<s.length;c++){var f=s[c];t[f]=t[f]||{},Ea(t[f],r[f])}},e.prototype.getAnimationStyleProps=function(){return TE},e.prototype._getOrCreateChild=function(t){var r=this._children[this._childCursor];return(!r||!(r instanceof t))&&(r=new t),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},e.prototype._updatePlainTexts=function(){var t=this.style,r=t.font||Zt,s=t.padding,c=Ug(t),f=Gl(c,t),T=sy(t),R=!!t.backgroundColor,I=f.outerHeight,B=f.outerWidth,Y=f.contentWidth,q=f.lines,ie=f.lineHeight,ge=this._defaultStyle,Oe=t.x||0,Ne=t.y||0,He=t.align||ge.align||"left",st=t.verticalAlign||ge.verticalAlign||"top",pt=Oe,Ut=dm(Ne,f.contentHeight,st);if(T||s){var pn=dg(Oe,B,He),yn=dm(Ne,I,st);T&&this._renderBackground(t,t,pn,yn,B,I)}Ut+=ie/2,s&&(pt=j1(Oe,He,s),st==="top"?Ut+=s[0]:st==="bottom"&&(Ut-=s[2]));for(var jn=0,Cr=!1,Nr=up("fill"in t?t.fill:(Cr=!0,ge.fill)),Rr=N_("stroke"in t?t.stroke:!R&&(!ge.autoStroke||Cr)?(jn=RC,ge.stroke):null),Er=t.textShadowBlur>0,ma=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),wa=f.calculatedLineHeight,Ga=0;Ga<q.length;Ga++){var Ei=this._getOrCreateChild(oy),Vi=Ei.createStyle();Ei.useStyle(Vi),Vi.text=q[Ga],Vi.x=pt,Vi.y=Ut,He&&(Vi.textAlign=He),Vi.textBaseline="middle",Vi.opacity=t.opacity,Vi.strokeFirst=!0,Er&&(Vi.shadowBlur=t.textShadowBlur||0,Vi.shadowColor=t.textShadowColor||"transparent",Vi.shadowOffsetX=t.textShadowOffsetX||0,Vi.shadowOffsetY=t.textShadowOffsetY||0),Vi.stroke=Rr,Vi.fill=Nr,Rr&&(Vi.lineWidth=t.lineWidth||jn,Vi.lineDash=t.lineDash,Vi.lineDashOffset=t.lineDashOffset||0),Vi.font=r,OC(Vi,t),Ut+=ie,ma&&Ei.setBoundingRect(new ra(dg(Vi.x,t.width,Vi.textAlign),dm(Vi.y,wa,Vi.textBaseline),Y,wa))}},e.prototype._updateRichTexts=function(){var t=this.style,r=Ug(t),s=pp(r,t),c=s.width,f=s.outerWidth,T=s.outerHeight,R=t.padding,I=t.x||0,B=t.y||0,Y=this._defaultStyle,q=t.align||Y.align,ie=t.verticalAlign||Y.verticalAlign,ge=dg(I,f,q),Oe=dm(B,T,ie),Ne=ge,He=Oe;R&&(Ne+=R[3],He+=R[0]);var st=Ne+c;sy(t)&&this._renderBackground(t,t,ge,Oe,f,T);for(var pt=!!t.backgroundColor,Ut=0;Ut<s.lines.length;Ut++){for(var pn=s.lines[Ut],yn=pn.tokens,jn=yn.length,Cr=pn.lineHeight,Nr=pn.width,Rr=0,Er=Ne,ma=st,wa=jn-1,Ga=void 0;Rr<jn&&(Ga=yn[Rr],!Ga.align||Ga.align==="left");)this._placeToken(Ga,t,Cr,He,Er,"left",pt),Nr-=Ga.width,Er+=Ga.width,Rr++;for(;wa>=0&&(Ga=yn[wa],Ga.align==="right");)this._placeToken(Ga,t,Cr,He,ma,"right",pt),Nr-=Ga.width,ma-=Ga.width,wa--;for(Er+=(c-(Er-Ne)-(st-ma)-Nr)/2;Rr<=wa;)Ga=yn[Rr],this._placeToken(Ga,t,Cr,He,Er+Ga.width/2,"center",pt),Er+=Ga.width,Rr++;He+=Cr}},e.prototype._placeToken=function(t,r,s,c,f,T,R){var I=r.rich[t.styleName]||{};I.text=t.text;var B=t.verticalAlign,Y=c+s/2;B==="top"?Y=c+t.height/2:B==="bottom"&&(Y=c+s-t.height/2);var q=!t.isLineHolder&&sy(I);q&&this._renderBackground(I,r,T==="right"?f-t.width:T==="center"?f-t.width/2:f,Y-t.height/2,t.width,t.height);var ie=!!I.backgroundColor,ge=t.textPadding;ge&&(f=j1(f,T,ge),Y-=t.height/2-ge[0]-t.innerHeight/2);var Oe=this._getOrCreateChild(oy),Ne=Oe.createStyle();Oe.useStyle(Ne);var He=this._defaultStyle,st=!1,pt=0,Ut=up("fill"in I?I.fill:"fill"in r?r.fill:(st=!0,He.fill)),pn=N_("stroke"in I?I.stroke:"stroke"in r?r.stroke:!ie&&!R&&(!He.autoStroke||st)?(pt=RC,He.stroke):null),yn=I.textShadowBlur>0||r.textShadowBlur>0;Ne.text=t.text,Ne.x=f,Ne.y=Y,yn&&(Ne.shadowBlur=I.textShadowBlur||r.textShadowBlur||0,Ne.shadowColor=I.textShadowColor||r.textShadowColor||"transparent",Ne.shadowOffsetX=I.textShadowOffsetX||r.textShadowOffsetX||0,Ne.shadowOffsetY=I.textShadowOffsetY||r.textShadowOffsetY||0),Ne.textAlign=T,Ne.textBaseline="middle",Ne.font=t.font||Zt,Ne.opacity=Ot(I.opacity,r.opacity,1),OC(Ne,I),pn&&(Ne.lineWidth=Ot(I.lineWidth,r.lineWidth,pt),Ne.lineDash=sn(I.lineDash,r.lineDash),Ne.lineDashOffset=r.lineDashOffset||0,Ne.stroke=pn),Ut&&(Ne.fill=Ut);var jn=t.contentWidth,Cr=t.contentHeight;Oe.setBoundingRect(new ra(dg(Ne.x,jn,Ne.textAlign),dm(Ne.y,Cr,Ne.textBaseline),jn,Cr))},e.prototype._renderBackground=function(t,r,s,c,f,T){var R=t.backgroundColor,I=t.borderWidth,B=t.borderColor,Y=R&&R.image,q=R&&!Y,ie=t.borderRadius,ge=this,Oe,Ne;if(q||t.lineHeight||I&&B){Oe=this._getOrCreateChild(jd),Oe.useStyle(Oe.createStyle()),Oe.style.fill=null;var He=Oe.shape;He.x=s,He.y=c,He.width=f,He.height=T,He.r=ie,Oe.dirtyShape()}if(q){var st=Oe.style;st.fill=R||null,st.fillOpacity=sn(t.fillOpacity,1)}else if(Y){Ne=this._getOrCreateChild(wp),Ne.onload=function(){ge.dirtyStyle()};var pt=Ne.style;pt.image=R.image,pt.x=s,pt.y=c,pt.width=f,pt.height=T}if(I&&B){var st=Oe.style;st.lineWidth=I,st.stroke=B,st.strokeOpacity=sn(t.strokeOpacity,1),st.lineDash=t.borderDash,st.lineDashOffset=t.borderDashOffset||0,Oe.strokeContainThreshold=0,Oe.hasFill()&&Oe.hasStroke()&&(st.strokeFirst=!0,st.lineWidth*=2)}var Ut=(Oe||Ne).style;Ut.shadowBlur=t.shadowBlur||0,Ut.shadowColor=t.shadowColor||"transparent",Ut.shadowOffsetX=t.shadowOffsetX||0,Ut.shadowOffsetY=t.shadowOffsetY||0,Ut.opacity=Ot(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return nx(t)&&(r=[t.fontStyle,t.fontWeight,ME(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Tr(r)||t.textFont||t.font},e}(Qm),Bg={left:!0,right:1,center:1},N0={top:1,bottom:1,middle:1},AE=["fontStyle","fontWeight","fontSize","fontFamily"];function ME(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?Bt+"px":n+"px"}function OC(n,e){for(var t=0;t<AE.length;t++){var r=AE[t],s=e[r];s!=null&&(n[r]=s)}}function nx(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function eT(n){return kE(n),At(n.rich,kE),n}function kE(n){if(n){n.font=F1.makeFont(n);var e=n.align;e==="middle"&&(e="center"),n.align=e==null||Bg[e]?e:"left";var t=n.verticalAlign;t==="center"&&(t="middle"),n.verticalAlign=t==null||N0[t]?t:"top";var r=n.padding;r&&(n.padding=Gr(n.padding))}}function N_(n,e){return n==null||e<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function up(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function j1(n,e,t){return e==="right"?n-t[1]:e==="center"?n+t[3]/2-t[1]/2:n+t[3]}function Ug(n){var e=n.text;return e!=null&&(e+=""),e}function sy(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}var Tp=F1,nu=Bi(),PE=function(n,e,t,r){if(r){var s=nu(r);s.dataIndex=t,s.dataType=e,s.seriesIndex=n,r.type==="group"&&r.traverse(function(c){var f=nu(c);f.seriesIndex=n,f.dataIndex=t,f.dataType=e})}},RE=1,h_={},OE=Bi(),rx=Bi(),ly=0,ax=1,ix=2,Wm=["emphasis","blur","select"],L_=["normal","emphasis","blur","select"],B1=10,cy=9,L0="highlight",ox="downplay",U1="select",IE="unselect",Z1="toggleSelect";function hg(n){return n!=null&&n!=="none"}var DE=new Kl(100);function IC(n){if(ei(n)){var e=DE.get(n);return e||(e=Gu(n,-.1),DE.put(n,e)),e}else if(vl(n)){var t=Ea({},n);return t.colorStops=ar(n.colorStops,function(r){return{offset:r.offset,color:Gu(r.color,-.1)}}),t}return n}function NE(n,e,t){n.onHoverStateChange&&(n.hoverState||0)!==t&&n.onHoverStateChange(e),n.hoverState=t}function LE(n){NE(n,"emphasis",ix)}function Qh(n){n.hoverState===ix&&NE(n,"normal",ly)}function vm(n){NE(n,"blur",ax)}function FE(n){n.hoverState===ax&&NE(n,"normal",ly)}function DC(n){n.selected=!0}function tT(n){n.selected=!1}function NC(n,e,t){e(n,t)}function F_(n,e,t){NC(n,e,t),n.isGroup&&n.traverse(function(r){NC(r,e,t)})}function jE(n,e){switch(e){case"emphasis":n.hoverState=ix;break;case"normal":n.hoverState=ly;break;case"blur":n.hoverState=ax;break;case"select":n.selected=!0}}function KM(n){n.isGroup?n.traverse(function(e){e.clearStates()}):n.clearStates()}function nT(n,e,t,r){for(var s=n.style,c={},f=0;f<e.length;f++){var T=e[f],R=s[T];c[T]=R==null?r&&r[T]:R}for(var f=0;f<n.animators.length;f++){var I=n.animators[f];I.__fromStateTransition&&I.__fromStateTransition.indexOf(t)<0&&I.targetName==="style"&&I.saveTo(c,e)}return c}function c0(n,e,t,r){var s=t&&Ui(t,"select")>=0,c=!1;if(n instanceof Od){var f=OE(n),T=s&&f.selectFill||f.normalFill,R=s&&f.selectStroke||f.normalStroke;if(hg(T)||hg(R)){r=r||{};var I=r.style||{};I.fill==="inherit"?(c=!0,r=Ea({},r),I=Ea({},I),I.fill=T):!hg(I.fill)&&hg(T)?(c=!0,r=Ea({},r),I=Ea({},I),I.fill=IC(T)):!hg(I.stroke)&&hg(R)&&(c||(r=Ea({},r),I=Ea({},I)),I.stroke=IC(R)),r.style=I}}if(r&&r.z2==null){c||(r=Ea({},r));var B=n.z2EmphasisLift;r.z2=n.z2+(B!=null?B:B1)}return r}function YM(n,e,t){if(t&&t.z2==null){t=Ea({},t);var r=n.z2SelectLift;t.z2=n.z2+(r!=null?r:cy)}return t}function rT(n,e,t){var r=Ui(n.currentStates,e)>=0,s=n.style.opacity,c=r?null:nT(n,["opacity"],e,{opacity:1});t=t||{};var f=t.style||{};return f.opacity==null&&(t=Ea({},t),f=Ea({opacity:r?s:c.opacity*.1},f),t.style=f),t}function u0(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return c0(this,n,e,t);if(n==="blur")return rT(this,n,t);if(n==="select")return YM(this,n,t)}return t}function F0(n){n.stateProxy=u0;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=u0),t&&(t.stateProxy=u0)}function BE(n,e){!Zy(n,e)&&!n.__highByOuter&&F_(n,LE)}function m_(n,e){!Zy(n,e)&&!n.__highByOuter&&F_(n,Qh)}function qg(n,e){n.__highByOuter|=1<<(e||0),F_(n,LE)}function j0(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&F_(n,Qh)}function B0(n){F_(n,vm)}function Uy(n){F_(n,FE)}function sx(n){F_(n,DC)}function LC(n){F_(n,tT)}function Zy(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function wd(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(s,c){var f=rx(c),T=s==="series",R=T?n.getViewOfSeriesModel(c):n.getViewOfComponentModel(c);!T&&r.push(R),f.isBlured&&(R.group.traverse(function(I){FE(I)}),T&&t.push(c)),f.isBlured=!1}),At(r,function(s){s&&s.toggleBlurSeries&&s.toggleBlurSeries(t,!1,e)})}function V1(n,e,t,r){var s=r.getModel();t=t||"coordinateSystem";function c(I,B){for(var Y=0;Y<B.length;Y++){var q=I.getItemGraphicEl(B[Y]);q&&Uy(q)}}if(n!=null&&!(!e||e==="none")){var f=s.getSeriesByIndex(n),T=f.coordinateSystem;T&&T.master&&(T=T.master);var R=[];s.eachSeries(function(I){var B=f===I,Y=I.coordinateSystem;Y&&Y.master&&(Y=Y.master);var q=Y&&T?Y===T:B;if(!(t==="series"&&!B||t==="coordinateSystem"&&!q||e==="series"&&B)){var ie=r.getViewOfSeriesModel(I);if(ie.group.traverse(function(Ne){Ne.__highByOuter&&B&&e==="self"||vm(Ne)}),Pn(e))c(I.getData(),e);else if(to(e))for(var ge=Ua(e),Oe=0;Oe<ge.length;Oe++)c(I.getData(ge[Oe]),e[ge[Oe]]);R.push(I),rx(I).isBlured=!0}}),s.eachComponent(function(I,B){if(I!=="series"){var Y=r.getViewOfComponentModel(B);Y&&Y.toggleBlurSeries&&Y.toggleBlurSeries(R,!0,s)}})}}function Vy(n,e,t){if(!(n==null||e==null)){var r=t.getModel().getComponent(n,e);if(!!r){rx(r).isBlured=!0;var s=t.getViewOfComponentModel(r);!s||!s.focusBlurEnabled||s.group.traverse(function(c){vm(c)})}}}function FC(n,e,t){var r=n.seriesIndex,s=n.getData(e.dataType);if(!!s){var c=Va(s,e);c=(La(c)?c[0]:c)||0;var f=s.getItemGraphicEl(c);if(!f)for(var T=s.count(),R=0;!f&&R<T;)f=s.getItemGraphicEl(R++);if(f){var I=nu(f);V1(r,I.focus,I.blurScope,t)}else{var B=n.get(["emphasis","focus"]),Y=n.get(["emphasis","blurScope"]);B!=null&&V1(r,B,Y,t)}}}function UE(n,e,t,r){var s={focusSelf:!1,dispatchers:null};if(n==null||n==="series"||e==null||t==null)return s;var c=r.getModel().getComponent(n,e);if(!c)return s;var f=r.getViewOfComponentModel(c);if(!f||!f.findHighDownDispatchers)return s;for(var T=f.findHighDownDispatchers(t),R,I=0;I<T.length;I++)if(nu(T[I]).focus==="self"){R=!0;break}return{focusSelf:R,dispatchers:T}}function jC(n,e,t){var r=nu(n),s=UE(r.componentMainType,r.componentIndex,r.componentHighDownName,t),c=s.dispatchers,f=s.focusSelf;c?(f&&Vy(r.componentMainType,r.componentIndex,t),At(c,function(T){return BE(T,e)})):(V1(r.seriesIndex,r.focus,r.blurScope,t),r.focus==="self"&&Vy(r.componentMainType,r.componentIndex,t),BE(n,e))}function aT(n,e,t){wd(t);var r=nu(n),s=UE(r.componentMainType,r.componentIndex,r.componentHighDownName,t).dispatchers;s?At(s,function(c){return m_(c,e)}):m_(n,e)}function BC(n,e,t){if(!!cx(e)){var r=e.dataType,s=n.getData(r),c=Va(s,e);La(c)||(c=[c]),n[e.type===Z1?"toggleSelect":e.type===U1?"select":"unselect"](c,r)}}function ZE(n){var e=n.getAllData();At(e,function(t){var r=t.data,s=t.type;r.eachItemGraphicEl(function(c,f){n.isSelected(f,s)?sx(c):LC(c)})})}function lx(n){var e=[];return n.eachSeries(function(t){var r=t.getAllData();At(r,function(s){var c=s.data,f=s.type,T=t.getSelectedDataIndices();if(T.length>0){var R={dataIndex:T,seriesIndex:t.seriesIndex};f!=null&&(R.dataType=f),e.push(R)}})}),e}function g_(n,e,t){uy(n,!0),F_(n,F0),z1(n,e,t)}function XM(n){uy(n,!1)}function ih(n,e,t,r){r?XM(n):g_(n,e,t)}function z1(n,e,t){var r=nu(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var iT=["emphasis","blur","select"],oT={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Om(n,e,t,r){t=t||"itemStyle";for(var s=0;s<iT.length;s++){var c=iT[s],f=e.getModel([c,t]),T=n.ensureState(c);T.style=r?r(f):f[oT[t]]()}}function uy(n,e){var t=e===!1,r=n;n.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=n.highDownSilentOnTouch),(!t||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!t)}function f0(n){return!!(n&&n.__highDownDispatcher)}function W1(n,e,t){var r=nu(n);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=t}function zy(n){var e=h_[n];return e==null&&RE<=32&&(e=h_[n]=RE++),e}function cx(n){var e=n.type;return e===U1||e===IE||e===Z1}function UC(n){var e=n.type;return e===L0||e===ox}function sT(n){var e=OE(n);e.normalFill=n.style.fill,e.normalStroke=n.style.stroke;var t=n.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var VE=Bi();function fy(n,e,t,r,s){var c;if(e&&e.ecModel){var f=e.ecModel.getUpdatePayload();c=f&&f.animation}var T=e&&e.isAnimationEnabled(),R=n==="update";if(T){var I=void 0,B=void 0,Y=void 0;r?(I=sn(r.duration,200),B=sn(r.easing,"cubicOut"),Y=0):(I=e.getShallow(R?"animationDurationUpdate":"animationDuration"),B=e.getShallow(R?"animationEasingUpdate":"animationEasing"),Y=e.getShallow(R?"animationDelayUpdate":"animationDelay")),c&&(c.duration!=null&&(I=c.duration),c.easing!=null&&(B=c.easing),c.delay!=null&&(Y=c.delay)),ja(Y)&&(Y=Y(t,s)),ja(I)&&(I=I(t));var q={duration:I||0,delay:Y,easing:B};return q}else return null}function ux(n,e,t,r,s,c,f){var T=!1,R;ja(s)?(f=c,c=s,s=null):to(s)&&(c=s.cb,f=s.during,T=s.isFrom,R=s.removeOpt,s=s.dataIndex);var I=n==="leave";I||e.stopAnimation("leave");var B=fy(n,r,s,I?R||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,s):null);if(B&&B.duration>0){var Y=B.duration,q=B.delay,ie=B.easing,ge={duration:Y,delay:q||0,easing:ie,done:c,force:!!c||!!f,setToFinal:!I,scope:n,during:f};T?e.animateFrom(t,ge):e.animateTo(t,ge)}else e.stopAnimation(),!T&&e.attr(t),f&&f(1),c&&c()}function vp(n,e,t,r,s,c){ux("update",n,e,t,r,s,c)}function Sv(n,e,t,r,s,c){ux("enter",n,e,t,r,s,c)}function d0(n){if(!n.__zr)return!0;for(var e=0;e<n.animators.length;e++){var t=n.animators[e];if(t.scope==="leave")return!0}return!1}function p0(n,e,t,r,s,c){d0(n)||ux("leave",n,e,t,r,s,c)}function zE(n,e,t,r){n.removeTextContent(),n.removeTextGuideLine(),p0(n,{style:{opacity:0}},e,t,r)}function H1(n,e,t){function r(){n.parent&&n.parent.remove(n)}n.isGroup?n.traverse(function(s){s.isGroup||zE(s,e,t,r)}):zE(n,e,t,r)}function e_(n){VE(n).oldStyle=n.style}function G1(n){return VE(n).oldStyle}var $1={};function fx(n,e){for(var t=0;t<Wm.length;t++){var r=Wm[t],s=e[r],c=n.ensureState(r);c.style=c.style||{},c.style.text=s}var f=n.currentStates.slice();n.clearStates(!0),n.setStyle({text:e.normal}),n.useStates(f,!0)}function dx(n,e,t){var r=n.labelFetcher,s=n.labelDataIndex,c=n.labelDimIndex,f=e.normal,T;r&&(T=r.getFormattedLabel(s,"normal",null,c,f&&f.get("formatter"),t!=null?{interpolatedValue:t}:null)),T==null&&(T=ja(n.defaultText)?n.defaultText(s,n,t):n.defaultText);for(var R={normal:T},I=0;I<Wm.length;I++){var B=Wm[I],Y=e[B];R[B]=sn(r?r.getFormattedLabel(s,B,null,c,Y&&Y.get("formatter")):null,T)}return R}function bv(n,e,t,r){t=t||$1;for(var s=n instanceof Tp,c=!1,f=0;f<L_.length;f++){var T=e[L_[f]];if(T&&T.getShallow("show")){c=!0;break}}var R=s?n:n.getTextContent();if(c){s||(R||(R=new Tp,n.setTextContent(R)),n.stateProxy&&(R.stateProxy=n.stateProxy));var I=dx(t,e),B=e.normal,Y=!!B.getShallow("show"),q=Cv(B,r&&r.normal,t,!1,!s);q.text=I.normal,s||n.setTextConfig(dy(B,t,!1));for(var f=0;f<Wm.length;f++){var ie=Wm[f],T=e[ie];if(T){var ge=R.ensureState(ie),Oe=!!sn(T.getShallow("show"),Y);if(Oe!==Y&&(ge.ignore=!Oe),ge.style=Cv(T,r&&r[ie],t,!0,!s),ge.style.text=I[ie],!s){var Ne=n.ensureState(ie);Ne.textConfig=dy(T,t,!0)}}}R.silent=!!B.getShallow("silent"),R.style.x!=null&&(q.x=R.style.x),R.style.y!=null&&(q.y=R.style.y),R.ignore=!Y,R.useStyle(q),R.dirty(),t.enableTextSetter&&(py(R).setLabelText=function(He){var st=dx(t,e,He);fx(R,st)})}else R&&(R.ignore=!0);n.dirty()}function bh(n,e){e=e||"label";for(var t={normal:n.getModel(e)},r=0;r<Wm.length;r++){var s=Wm[r];t[s]=n.getModel([s,e])}return t}function Cv(n,e,t,r,s){var c={};return K1(c,n,t,r,s),e&&Ea(c,e),c}function dy(n,e,t){e=e||{};var r={},s,c=n.getShallow("rotate"),f=sn(n.getShallow("distance"),t?null:5),T=n.getShallow("offset");return s=n.getShallow("position")||(t?null:"inside"),s==="outside"&&(s=e.defaultOutsidePosition||"top"),s!=null&&(r.position=s),T!=null&&(r.offset=T),c!=null&&(c*=Math.PI/180,r.rotation=c),f!=null&&(r.distance=f),r.outsideFill=n.get("color")==="inherit"?e.inheritColor||null:"auto",r}function K1(n,e,t,r,s){t=t||$1;var c=e.ecModel,f=c&&c.option.textStyle,T=Y1(e),R;if(T){R={};for(var I in T)if(T.hasOwnProperty(I)){var B=e.getModel(["rich",I]);VC(R[I]={},B,f,t,r,s,!1,!0)}}R&&(n.rich=R);var Y=e.get("overflow");Y&&(n.overflow=Y);var q=e.get("minMargin");q!=null&&(n.margin=q),VC(n,e,f,t,r,s,!0,!1)}function Y1(n){for(var e;n&&n!==n.ecModel;){var t=(n.option||$1).rich;if(t){e=e||{};for(var r=Ua(t),s=0;s<r.length;s++){var c=r[s];e[c]=1}}n=n.parentModel}return e}var Wy=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],ZC=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],px=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function VC(n,e,t,r,s,c,f,T){t=!s&&t||$1;var R=r&&r.inheritColor,I=e.getShallow("color"),B=e.getShallow("textBorderColor"),Y=sn(e.getShallow("opacity"),t.opacity);(I==="inherit"||I==="auto")&&(R?I=R:I=null),(B==="inherit"||B==="auto")&&(R?B=R:B=null),c||(I=I||t.color,B=B||t.textBorderColor),I!=null&&(n.fill=I),B!=null&&(n.stroke=B);var q=sn(e.getShallow("textBorderWidth"),t.textBorderWidth);q!=null&&(n.lineWidth=q);var ie=sn(e.getShallow("textBorderType"),t.textBorderType);ie!=null&&(n.lineDash=ie);var ge=sn(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);ge!=null&&(n.lineDashOffset=ge),!s&&Y==null&&!T&&(Y=r&&r.defaultOpacity),Y!=null&&(n.opacity=Y),!s&&!c&&n.fill==null&&r.inheritColor&&(n.fill=r.inheritColor);for(var Oe=0;Oe<Wy.length;Oe++){var Ne=Wy[Oe],He=sn(e.getShallow(Ne),t[Ne]);He!=null&&(n[Ne]=He)}for(var Oe=0;Oe<ZC.length;Oe++){var Ne=ZC[Oe],He=e.getShallow(Ne);He!=null&&(n[Ne]=He)}if(n.verticalAlign==null){var st=e.getShallow("baseline");st!=null&&(n.verticalAlign=st)}if(!f||!r.disableBox){for(var Oe=0;Oe<px.length;Oe++){var Ne=px[Oe],He=e.getShallow(Ne);He!=null&&(n[Ne]=He)}var pt=e.getShallow("borderType");pt!=null&&(n.borderDash=pt),(n.backgroundColor==="auto"||n.backgroundColor==="inherit")&&R&&(n.backgroundColor=R),(n.borderColor==="auto"||n.borderColor==="inherit")&&R&&(n.borderColor=R)}}function vx(n,e){var t=e&&e.getModel("textStyle");return Tr([n.fontStyle||t&&t.getShallow("fontStyle")||"",n.fontWeight||t&&t.getShallow("fontWeight")||"",(n.fontSize||t&&t.getShallow("fontSize")||12)+"px",n.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var py=Bi();function zC(n,e,t,r){if(!!n){var s=py(n);s.prevValue=s.value,s.value=t;var c=e.normal;s.valueAnimation=c.get("valueAnimation"),s.valueAnimation&&(s.precision=c.get("precision"),s.defaultInterpolatedText=r,s.statesModels=e)}}function hx(n,e,t,r,s){var c=py(n);if(!c.valueAnimation||c.prevValue===c.value)return;var f=c.defaultInterpolatedText,T=sn(c.interpolatedValue,c.prevValue),R=c.value;function I(B){var Y=Vd(t,c.precision,T,R,B);c.interpolatedValue=B===1?null:Y;var q=dx({labelDataIndex:e,labelFetcher:s,defaultText:f?f(Y):Y+""},c.statesModels,Y);fx(n,q)}n.percent=0,(c.prevValue==null?Sv:vp)(n,{percent:1},r,e,null,I)}var X1=["textStyle","color"],WE=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],mx=new Tp,gx=function(){function n(){}return n.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(X1):null)},n.prototype.getFont=function(){return vx({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},n.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<WE.length;r++)t[WE[r]]=this.getShallow(WE[r]);return mx.useStyle(t),mx.update(),mx.getBoundingRect()},n}(),J1=gx,_x=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],HE=Oa(_x),Im=function(){function n(){}return n.prototype.getLineStyle=function(e){return HE(this,e)},n}(),Q1=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],JM=Oa(Q1),QM=function(){function n(){}return n.prototype.getItemStyle=function(e,t){return JM(this,e,t)},n}(),vy=function(){function n(e,t,r){this.parentModel=t,this.ecModel=r,this.option=e}return n.prototype.init=function(e,t,r){for(var s=[],c=3;c<arguments.length;c++)s[c-3]=arguments[c]},n.prototype.mergeOption=function(e,t){ba(this.option,e,!0)},n.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},n.prototype.getShallow=function(e,t){var r=this.option,s=r==null?r:r[e];if(s==null&&!t){var c=this.parentModel;c&&(s=c.getShallow(e))}return s},n.prototype.getModel=function(e,t){var r=e!=null,s=r?this.parsePath(e):null,c=r?this._doGet(s):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(s)),new n(c,t,this.ecModel)},n.prototype.isEmpty=function(){return this.option==null},n.prototype.restoreData=function(){},n.prototype.clone=function(){var e=this.constructor;return new e(Kr(this.option))},n.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},n.prototype.resolveParentPath=function(e){return e},n.prototype.isAnimationEnabled=function(){if(!Ct.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},n.prototype._doGet=function(e,t){var r=this.option;if(!e)return r;for(var s=0;s<e.length&&!(!!e[s]&&(r=r&&typeof r=="object"?r[e[s]]:null,r==null));s++);return r==null&&t&&(r=t._doGet(this.resolveParentPath(e),t.parentModel)),r},n}();P0(vy),Xe(vy),Kn(vy,Im),Kn(vy,QM),Kn(vy,cl),Kn(vy,J1);var Lv=vy,qM=Math.round(Math.random()*10);function Hy(n){return[n||"",qM++].join("_")}function lT(n){var e={};n.registerSubTypeDefaulter=function(t,r){var s=Zv(t);e[s.main]=r},n.determineSubType=function(t,r){var s=r.type;if(!s){var c=Zv(t).main;n.hasSubTypes(t)&&e[c]&&(s=e[c](r))}return s}}function ek(n,e){n.topologicalTravel=function(c,f,T,R){if(!c.length)return;var I=t(f),B=I.graph,Y=I.noEntryList,q={};for(At(c,function(st){q[st]=!0});Y.length;){var ie=Y.pop(),ge=B[ie],Oe=!!q[ie];Oe&&(T.call(R,ie,ge.originalDeps.slice()),delete q[ie]),At(ge.successor,Oe?He:Ne)}At(q,function(){var st="";throw new Error(st)});function Ne(st){B[st].entryCount--,B[st].entryCount===0&&Y.push(st)}function He(st){q[st]=!0,Ne(st)}};function t(c){var f={},T=[];return At(c,function(R){var I=r(f,R),B=I.originalDeps=e(R),Y=s(B,c);I.entryCount=Y.length,I.entryCount===0&&T.push(R),At(Y,function(q){Ui(I.predecessor,q)<0&&I.predecessor.push(q);var ie=r(f,q);Ui(ie.successor,q)<0&&ie.successor.push(R)})}),{graph:f,noEntryList:T}}function r(c,f){return c[f]||(c[f]={predecessor:[],successor:[]}),c[f]}function s(c,f){var T=[];return At(c,function(R){Ui(f,R)>=0&&T.push(R)}),T}}function U0(n,e){return ba(ba({},n,!0),e,!0)}var cT={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},gO={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},GE="ZH",$E="EN",yx=$E,bx={},xx={},WC=Ct.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(GE)>-1?GE:yx}():yx;function _e(n,e){n=n.toUpperCase(),xx[n]=new Lv(e),bx[n]=e}function Ve(n){if(ei(n)){var e=bx[n.toUpperCase()]||{};return n===GE||n===$E?Kr(e):ba(Kr(e),Kr(bx[yx]),!1)}else return ba(Kr(n),Kr(bx[yx]),!1)}function Gt(n){return xx[n]}function fr(){return xx[yx]}_e($E,cT),_e(GE,gO);var ha=1e3,Ka=ha*60,no=Ka*60,bo=no*24,ls=bo*365,Bl={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},$l="{yyyy}-{MM}-{dd}",vc={year:"{yyyy}",month:"{yyyy}-{MM}",day:$l,hour:$l+" "+Bl.hour,minute:$l+" "+Bl.minute,second:$l+" "+Bl.second,millisecond:Bl.none},Fu=["year","month","day","hour","minute","second","millisecond"],Zf=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function nd(n,e){return n+="","0000".substr(0,e-n.length)+n}function Qd(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function Td(n){return n===Qd(n)}function Ap(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function hp(n,e,t,r){var s=ys(n),c=s[xh(t)](),f=s[hm(t)]()+1,T=Math.floor((f-1)/3)+1,R=s[gg(t)](),I=s["get"+(t?"UTC":"")+"Day"](),B=s[hy(t)](),Y=(B-1)%12+1,q=s[HC(t)](),ie=s[GC(t)](),ge=s[KE(t)](),Oe=r instanceof Lv?r:Gt(r||WC)||fr(),Ne=Oe.getModel("time"),He=Ne.get("month"),st=Ne.get("monthAbbr"),pt=Ne.get("dayOfWeek"),Ut=Ne.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,c+"").replace(/{yy}/g,nd(c%100+"",2)).replace(/{Q}/g,T+"").replace(/{MMMM}/g,He[f-1]).replace(/{MMM}/g,st[f-1]).replace(/{MM}/g,nd(f,2)).replace(/{M}/g,f+"").replace(/{dd}/g,nd(R,2)).replace(/{d}/g,R+"").replace(/{eeee}/g,pt[I]).replace(/{ee}/g,Ut[I]).replace(/{e}/g,I+"").replace(/{HH}/g,nd(B,2)).replace(/{H}/g,B+"").replace(/{hh}/g,nd(Y+"",2)).replace(/{h}/g,Y+"").replace(/{mm}/g,nd(q,2)).replace(/{m}/g,q+"").replace(/{ss}/g,nd(ie,2)).replace(/{s}/g,ie+"").replace(/{SSS}/g,nd(ge,3)).replace(/{S}/g,ge+"")}function Zg(n,e,t,r,s){var c=null;if(ei(t))c=t;else if(ja(t))c=t(n.value,e,{level:n.level});else{var f=Ea({},Bl);if(n.level>0)for(var T=0;T<Fu.length;++T)f[Fu[T]]="{primary|"+f[Fu[T]]+"}";var R=t?t.inherit===!1?t:Pi(t,f):f,I=Hm(n.value,s);if(R[I])c=R[I];else if(R.inherit){for(var B=Zf.indexOf(I),T=B-1;T>=0;--T)if(R[I]){c=R[I];break}c=c||f.none}if(La(c)){var Y=n.level==null?0:n.level>=0?n.level:c.length+n.level;Y=Math.min(Y,c.length-1),c=c[Y]}}return hp(new Date(n.value),c,s,r)}function Hm(n,e){var t=ys(n),r=t[hm(e)]()+1,s=t[gg(e)](),c=t[hy(e)](),f=t[HC(e)](),T=t[GC(e)](),R=t[KE(e)](),I=R===0,B=I&&T===0,Y=B&&f===0,q=Y&&c===0,ie=q&&s===1,ge=ie&&r===1;return ge?"year":ie?"month":q?"day":Y?"hour":B?"minute":I?"second":"millisecond"}function mg(n,e,t){var r=yo(n)?ys(n):n;switch(e=e||Hm(n,t),e){case"year":return r[xh(t)]();case"half-year":return r[hm(t)]()>=6?1:0;case"quarter":return Math.floor((r[hm(t)]()+1)/4);case"month":return r[hm(t)]();case"day":return r[gg(t)]();case"half-day":return r[hy(t)]()/24;case"hour":return r[hy(t)]();case"minute":return r[HC(t)]();case"second":return r[GC(t)]();case"millisecond":return r[KE(t)]()}}function xh(n){return n?"getUTCFullYear":"getFullYear"}function hm(n){return n?"getUTCMonth":"getMonth"}function gg(n){return n?"getUTCDate":"getDate"}function hy(n){return n?"getUTCHours":"getHours"}function HC(n){return n?"getUTCMinutes":"getMinutes"}function GC(n){return n?"getUTCSeconds":"getSeconds"}function KE(n){return n?"getUTCMilliseconds":"getMilliseconds"}function _O(n){return n?"setUTCFullYear":"setFullYear"}function YE(n){return n?"setUTCMonth":"setMonth"}function uT(n){return n?"setUTCDate":"setDate"}function fT(n){return n?"setUTCHours":"setHours"}function dT(n){return n?"setUTCMinutes":"setMinutes"}function tk(n){return n?"setUTCSeconds":"setSeconds"}function nk(n){return n?"setUTCMilliseconds":"setMilliseconds"}function pT(n){if(!_d(n))return ei(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function yO(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var Z0=Gr;function vT(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function s(B){return B&&Tr(B)?B:"-"}function c(B){return!!(B!=null&&!isNaN(B)&&isFinite(B))}var f=e==="time",T=n instanceof Date;if(f||T){var R=f?ys(n):n;if(isNaN(+R)){if(T)return"-"}else return hp(R,r,t)}if(e==="ordinal")return Do(n)?s(n):yo(n)&&c(n)?n+"":"-";var I=Ru(n);return c(I)?pT(I):Do(n)?s(n):typeof n=="boolean"?n+"":"-"}var hT=["a","b","c","d","e","f","g"],Ex=function(n,e){return"{"+n+(e==null?"":e)+"}"};function $C(n,e,t){La(e)||(e=[e]);var r=e.length;if(!r)return"";for(var s=e[0].$vars||[],c=0;c<s.length;c++){var f=hT[c];n=n.replace(Ex(f),Ex(f,0))}for(var T=0;T<r;T++)for(var R=0;R<s.length;R++){var I=e[T][s[R]];n=n.replace(Ex(hT[R],T),t?xr(I):I)}return n}function rk(n,e,t){return At(e,function(r,s){n=n.replace("{"+s+"}",t?xr(r):r)}),n}function Bd(n,e){var t=ei(n)?{color:n,extraCssText:e}:n||{},r=t.color,s=t.type;e=t.extraCssText;var c=t.renderMode||"html";if(!r)return"";if(c==="html")return s==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+xr(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+xr(r)+";"+(e||"")+'"></span>';var f=t.markerId||"markerX";return{renderMode:c,content:"{"+f+"|} ",style:s==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function mT(n,e,t){(n==="week"||n==="month"||n==="quarter"||n==="half-year"||n==="year")&&(n=`MM-dd
|
||
yyyy`);var r=parseDate(e),s=t?"getUTC":"get",c=r[s+"FullYear"](),f=r[s+"Month"]()+1,T=r[s+"Date"](),R=r[s+"Hours"](),I=r[s+"Minutes"](),B=r[s+"Seconds"](),Y=r[s+"Milliseconds"]();return n=n.replace("MM",pad(f,2)).replace("M",f).replace("yyyy",c).replace("yy",pad(c%100+"",2)).replace("dd",pad(T,2)).replace("d",T).replace("hh",pad(R,2)).replace("h",R).replace("mm",pad(I,2)).replace("m",I).replace("ss",pad(B,2)).replace("s",B).replace("SSS",pad(Y,3)),n}function gT(n){return n&&n.charAt(0).toUpperCase()+n.substr(1)}function Gy(n,e){return e=e||"transparent",ei(n)?n:to(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function KC(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var YC=At,_T=["left","right","top","bottom","width","height"],$y=[["width","left","right"],["height","top","bottom"]];function yT(n,e,t,r,s){var c=0,f=0;r==null&&(r=Infinity),s==null&&(s=Infinity);var T=0;e.eachChild(function(R,I){var B=R.getBoundingRect(),Y=e.childAt(I+1),q=Y&&Y.getBoundingRect(),ie,ge;if(n==="horizontal"){var Oe=B.width+(q?-q.x+B.x:0);ie=c+Oe,ie>r||R.newline?(c=0,ie=Oe,f+=T+t,T=B.height):T=Math.max(T,B.height)}else{var Ne=B.height+(q?-q.y+B.y:0);ge=f+Ne,ge>s||R.newline?(c+=T+t,f=0,ge=Ne,T=B.width):T=Math.max(T,B.width)}R.newline||(R.x=c,R.y=f,R.markRedraw(),n==="horizontal"?c=ie+t:f=ge+t)})}var q1=yT,W4=$i(yT,"vertical"),H4=$i(yT,"horizontal");function ak(n,e,t){var r=e.width,s=e.height,c=It(n.left,r),f=It(n.top,s),T=It(n.right,r),R=It(n.bottom,s);return(isNaN(c)||isNaN(parseFloat(n.left)))&&(c=0),(isNaN(T)||isNaN(parseFloat(n.right)))&&(T=r),(isNaN(f)||isNaN(parseFloat(n.top)))&&(f=0),(isNaN(R)||isNaN(parseFloat(n.bottom)))&&(R=s),t=Z0(t||0),{width:Math.max(T-c-t[1]-t[3],0),height:Math.max(R-f-t[0]-t[2],0)}}function mm(n,e,t){t=Z0(t||0);var r=e.width,s=e.height,c=It(n.left,r),f=It(n.top,s),T=It(n.right,r),R=It(n.bottom,s),I=It(n.width,r),B=It(n.height,s),Y=t[2]+t[0],q=t[1]+t[3],ie=n.aspect;switch(isNaN(I)&&(I=r-T-q-c),isNaN(B)&&(B=s-R-Y-f),ie!=null&&(isNaN(I)&&isNaN(B)&&(ie>r/s?I=r*.8:B=s*.8),isNaN(I)&&(I=ie*B),isNaN(B)&&(B=I/ie)),isNaN(c)&&(c=r-T-I-q),isNaN(f)&&(f=s-R-B-Y),n.left||n.right){case"center":c=r/2-I/2-t[3];break;case"right":c=r-I-q;break}switch(n.top||n.bottom){case"middle":case"center":f=s/2-B/2-t[0];break;case"bottom":f=s-B-Y;break}c=c||0,f=f||0,isNaN(I)&&(I=r-q-c-(T||0)),isNaN(B)&&(B=s-Y-f-(R||0));var ge=new ra(c+t[3],f+t[0],I,B);return ge.margin=t,ge}function XC(n,e,t,r,s,c){var f=!s||!s.hv||s.hv[0],T=!s||!s.hv||s.hv[1],R=s&&s.boundingMode||"all";if(c=c||n,c.x=n.x,c.y=n.y,!f&&!T)return!1;var I;if(R==="raw")I=n.type==="group"?new ra(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(I=n.getBoundingRect(),n.needLocalTransform()){var B=n.getLocalTransform();I=I.clone(),I.applyTransform(B)}var Y=mm(Pi({width:I.width,height:I.height},e),t,r),q=f?Y.x-I.x:0,ie=T?Y.y-I.y:0;return R==="raw"?(c.x=q,c.y=ie):(c.x+=q,c.y+=ie),c===n&&n.markRedraw(),!0}function bO(n,e){return n[$y[e][0]]!=null||n[$y[e][1]]!=null&&n[$y[e][2]]!=null}function XE(n){var e=n.layoutMode||n.constructor.layoutMode;return to(e)?e:e?{type:e}:null}function Ky(n,e,t){var r=t&&t.ignoreSize;!La(r)&&(r=[r,r]);var s=f($y[0],0),c=f($y[1],1);I($y[0],n,s),I($y[1],n,c);function f(B,Y){var q={},ie=0,ge={},Oe=0,Ne=2;if(YC(B,function(pt){ge[pt]=n[pt]}),YC(B,function(pt){T(e,pt)&&(q[pt]=ge[pt]=e[pt]),R(q,pt)&&ie++,R(ge,pt)&&Oe++}),r[Y])return R(e,B[1])?ge[B[2]]=null:R(e,B[2])&&(ge[B[1]]=null),ge;if(Oe===Ne||!ie)return ge;if(ie>=Ne)return q;for(var He=0;He<B.length;He++){var st=B[He];if(!T(q,st)&&T(n,st)){q[st]=n[st];break}}return q}function T(B,Y){return B.hasOwnProperty(Y)}function R(B,Y){return B[Y]!=null&&B[Y]!=="auto"}function I(B,Y,q){YC(B,function(ie){Y[ie]=q[ie]})}}function JE(n){return QE({},n)}function QE(n,e){return e&&n&&YC(_T,function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}var xO=Bi(),eb=function(n){ze(e,n);function e(t,r,s){var c=n.call(this,t,r,s)||this;return c.uid=Hy("ec_cpt_model"),c}return e.prototype.init=function(t,r,s){this.mergeDefaultAndTheme(t,s)},e.prototype.mergeDefaultAndTheme=function(t,r){var s=XE(this),c=s?JE(t):{},f=r.getTheme();ba(t,f.get(this.mainType)),ba(t,this.getDefaultOption()),s&&Ky(t,c,s)},e.prototype.mergeOption=function(t,r){ba(this.option,t,!0);var s=XE(this);s&&Ky(this.option,t,s)},e.prototype.optionUpdated=function(t,r){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!Xh(t))return t.defaultOption;var r=xO(this);if(!r.defaultOption){for(var s=[],c=t;c;){var f=c.prototype.defaultOption;f&&s.push(f),c=c.superClass}for(var T={},R=s.length-1;R>=0;R--)T=ba(T,s[R],!0);r.defaultOption=T}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var s=t+"Index",c=t+"Id";return ou(this.ecModel,t,{index:this.get(s,!0),id:this.get(c,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Lv);le(eb,Lv),Qr(eb),lT(eb),ek(eb,EO);function EO(n){var e=[];return At(eb.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=ar(e,function(t){return Zv(t).main}),n!=="dataset"&&Ui(e,"dataset")<=0&&e.unshift("dataset"),e}var Mp=eb,SO="";typeof navigator!="undefined"&&(SO=navigator.platform||"");var tb="rgba(0, 0, 0, 0.2)",bT={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:tb,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:tb,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:tb,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:tb,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:tb,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:tb,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:SO.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},xT=Za(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),rd="original",Ah="arrayRows",j_="objectRows",_g="keyedColumns",v0="typedArray",JC="unknown",Vg="column",V0="row",qm={Must:1,Might:2,Not:3},ik=Bi();function CO(n){ik(n).datasetMap=Za()}function ok(n,e,t){var r={},s=Yy(e);if(!s||!n)return r;var c=[],f=[],T=e.ecModel,R=ik(T).datasetMap,I=s.uid+"_"+t.seriesLayoutBy,B,Y;n=n.slice(),At(n,function(Oe,Ne){var He=to(Oe)?Oe:n[Ne]={name:Oe};He.type==="ordinal"&&B==null&&(B=Ne,Y=ge(He)),r[He.name]=[]});var q=R.get(I)||R.set(I,{categoryWayDim:Y,valueWayDim:0});At(n,function(Oe,Ne){var He=Oe.name,st=ge(Oe);if(B==null){var pt=q.valueWayDim;ie(r[He],pt,st),ie(f,pt,st),q.valueWayDim+=st}else if(B===Ne)ie(r[He],0,st),ie(c,0,st);else{var pt=q.categoryWayDim;ie(r[He],pt,st),ie(f,pt,st),q.categoryWayDim+=st}});function ie(Oe,Ne,He){for(var st=0;st<He;st++)Oe.push(Ne+st)}function ge(Oe){var Ne=Oe.dimsDef;return Ne?Ne.length:1}return c.length&&(r.itemName=c),f.length&&(r.seriesName=f),r}function ET(n,e,t){var r={},s=Yy(n);if(!s)return r;var c=e.sourceFormat,f=e.dimensionsDefine,T;(c===j_||c===_g)&&At(f,function(B,Y){(to(B)?B.name:B)==="name"&&(T=Y)});var R=function(){for(var B={},Y={},q=[],ie=0,ge=Math.min(5,t);ie<ge;ie++){var Oe=CT(e.data,c,e.seriesLayoutBy,f,e.startIndex,ie);q.push(Oe);var Ne=Oe===qm.Not;if(Ne&&B.v==null&&ie!==T&&(B.v=ie),(B.n==null||B.n===B.v||!Ne&&q[B.n]===qm.Not)&&(B.n=ie),He(B)&&q[B.n]!==qm.Not)return B;Ne||(Oe===qm.Might&&Y.v==null&&ie!==T&&(Y.v=ie),(Y.n==null||Y.n===Y.v)&&(Y.n=ie))}function He(st){return st.v!=null&&st.n!=null}return He(B)?B:He(Y)?Y:null}();if(R){r.value=[R.v];var I=T!=null?T:R.n;r.itemName=[I],r.seriesName=[I]}return r}function Yy(n){var e=n.get("data",!0);if(!e)return ou(n.ecModel,"dataset",{index:n.get("datasetIndex",!0),id:n.get("datasetId",!0)},vs).models[0]}function ST(n){return!n.get("transform",!0)&&!n.get("fromTransformResult",!0)?[]:ou(n.ecModel,"dataset",{index:n.get("fromDatasetIndex",!0),id:n.get("fromDatasetId",!0)},vs).models}function wO(n,e){return CT(n.data,n.sourceFormat,n.seriesLayoutBy,n.dimensionsDefine,n.startIndex,e)}function CT(n,e,t,r,s,c){var f,T=5;if(cs(n))return qm.Not;var R,I;if(r){var B=r[c];to(B)?(R=B.name,I=B.type):ei(B)&&(R=B)}if(I!=null)return I==="ordinal"?qm.Must:qm.Not;if(e===Ah){var Y=n;if(t===V0){for(var q=Y[c],ie=0;ie<(q||[]).length&&ie<T;ie++)if((f=Ut(q[s+ie]))!=null)return f}else for(var ie=0;ie<Y.length&&ie<T;ie++){var ge=Y[s+ie];if(ge&&(f=Ut(ge[c]))!=null)return f}}else if(e===j_){var Oe=n;if(!R)return qm.Not;for(var ie=0;ie<Oe.length&&ie<T;ie++){var Ne=Oe[ie];if(Ne&&(f=Ut(Ne[R]))!=null)return f}}else if(e===_g){var He=n;if(!R)return qm.Not;var q=He[R];if(!q||cs(q))return qm.Not;for(var ie=0;ie<q.length&&ie<T;ie++)if((f=Ut(q[ie]))!=null)return f}else if(e===rd)for(var st=n,ie=0;ie<st.length&&ie<T;ie++){var Ne=st[ie],pt=Nu(Ne);if(!La(pt))return qm.Not;if((f=Ut(pt[c]))!=null)return f}function Ut(pn){var yn=ei(pn);if(pn!=null&&isFinite(pn)&&pn!=="")return yn?qm.Might:qm.Not;if(yn&&pn!=="-")return qm.Must}return qm.Not}var qE=Za();function sk(n,e){Ln(qE.get(n)==null&&e),qE.set(n,e)}function wT(n,e,t){var r=qE.get(e);if(!r)return t;var s=r(n);if(!s)return t;if(!1)var c;return t.concat(s)}var lk=Bi(),ck=Bi(),eS=function(){function n(){}return n.prototype.getColorFromPalette=function(e,t,r){var s=Bf(this.get("color",!0)),c=this.get("colorLayer",!0);return TO(this,lk,s,c,e,t,r)},n.prototype.clearColorPalette=function(){AO(this,lk)},n}();function TT(n,e,t,r){var s=Bf(n.get(["aria","decal","decals"]));return TO(n,ck,s,null,e,t,r)}function G4(n,e){for(var t=n.length,r=0;r<t;r++)if(n[r].length>e)return n[r];return n[t-1]}function TO(n,e,t,r,s,c,f){c=c||n;var T=e(c),R=T.paletteIdx||0,I=T.paletteNameMap=T.paletteNameMap||{};if(I.hasOwnProperty(s))return I[s];var B=f==null||!r?t:G4(r,f);if(B=B||t,!(!B||!B.length)){var Y=B[R];return s&&(I[s]=Y),T.paletteIdx=(R+1)%B.length,Y}}function AO(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var QC,Xy,nb,uk="\0_ec_inner",$4=1,fk={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},K4={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},dk={};function MO(n){each(n,function(e,t){if(!ComponentModel.hasClass(t)){var r=fk[t];r&&!dk[r]&&(error("Component "+t+` is used but not imported.
|
||
import { `+r+` } from 'echarts/components';
|
||
echarts.use([`+r+"]);"),dk[r]=!0)}})}var pk=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,s,c,f,T){c=c||{},this.option=null,this._theme=new Lv(c),this._locale=new Lv(f),this._optionManager=T},e.prototype.setOption=function(t,r,s){var c=mk(r);this._optionManager.setOption(t,s,c),this._resetOption(null,c)},e.prototype.resetOption=function(t,r){return this._resetOption(t,mk(r))},e.prototype._resetOption=function(t,r){var s=!1,c=this._optionManager;if(!t||t==="recreate"){var f=c.mountOption(t==="recreate");!this.option||t==="recreate"?nb(this,f):(this.restoreData(),this._mergeOption(f,r)),s=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var T=c.getTimelineOption(this);T&&(s=!0,this._mergeOption(T,r))}if(!t||t==="recreate"||t==="media"){var R=c.getMediaOption(this);R.length&&At(R,function(I){s=!0,this._mergeOption(I,r)},this)}return s},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var s=this.option,c=this._componentsMap,f=this._componentsCount,T=[],R=Za(),I=r&&r.replaceMergeMainTypeMap;CO(this),At(t,function(Y,q){Y!=null&&(Mp.hasClass(q)?q&&(T.push(q),R.set(q,!0)):s[q]=s[q]==null?Kr(Y):ba(s[q],Y,!0))}),I&&I.each(function(Y,q){Mp.hasClass(q)&&!R.get(q)&&(T.push(q),R.set(q,!0))}),Mp.topologicalTravel(T,Mp.getAllClassMainTypes(),B,this);function B(Y){var q=wT(this,Y,Bf(t[Y])),ie=c.get(Y),ge=ie?I&&I.get(Y)?"replaceMerge":"normalMerge":"replaceAll",Oe=Ev(ie,q,ge);po(Oe,Y,Mp),s[Y]=null,c.set(Y,null),f.set(Y,0);var Ne=[],He=[],st=0,pt,Ut;At(Oe,function(pn,yn){var jn=pn.existing,Cr=pn.newOption;if(!Cr)jn&&(jn.mergeOption({},this),jn.optionUpdated({},!1));else{var Nr=Y==="series",Rr=Mp.getClass(Y,pn.keyInfo.subType,!Nr);if(!Rr){if(!1)var Er,ma;return}if(Y==="tooltip"){if(pt)return;pt=!0}if(jn&&jn.constructor===Rr)jn.name=pn.keyInfo.name,jn.mergeOption(Cr,this),jn.optionUpdated(Cr,!1);else{var wa=Ea({componentIndex:yn},pn.keyInfo);jn=new Rr(Cr,this,this,wa),Ea(jn,wa),pn.brandNew&&(jn.__requireNewView=!0),jn.init(Cr,this,this),jn.optionUpdated(null,!0)}}jn?(Ne.push(jn.option),He.push(jn),st++):(Ne.push(void 0),He.push(void 0))},this),s[Y]=Ne,c.set(Y,He),f.set(Y,st),Y==="series"&&QC(this)}this._seriesIndices||QC(this)},e.prototype.getOption=function(){var t=Kr(this.option);return At(t,function(r,s){if(Mp.hasClass(s)){for(var c=Bf(r),f=c.length,T=!1,R=f-1;R>=0;R--)c[R]&&!Ii(c[R])?T=!0:(c[R]=null,!T&&f--);c.length=f,t[s]=c}}),delete t[uk],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var s=this._componentsMap.get(t);if(s){var c=s[r||0];if(c)return c;if(r==null){for(var f=0;f<s.length;f++)if(s[f])return s[f]}}},e.prototype.queryComponents=function(t){var r=t.mainType;if(!r)return[];var s=t.index,c=t.id,f=t.name,T=this._componentsMap.get(r);if(!T||!T.length)return[];var R;return s!=null?(R=[],At(Bf(s),function(I){T[I]&&R.push(T[I])})):c!=null?R=vk("id",c,T):f!=null?R=vk("name",f,T):R=Yn(T,function(I){return!!I}),hk(R,t)},e.prototype.findComponents=function(t){var r=t.query,s=t.mainType,c=T(r),f=c?this.queryComponents(c):Yn(this._componentsMap.get(s),function(I){return!!I});return R(hk(f,t));function T(I){var B=s+"Index",Y=s+"Id",q=s+"Name";return I&&(I[B]!=null||I[Y]!=null||I[q]!=null)?{mainType:s,index:I[B],id:I[Y],name:I[q]}:null}function R(I){return t.filter?Yn(I,t.filter):I}},e.prototype.eachComponent=function(t,r,s){var c=this._componentsMap;if(ja(t)){var f=r,T=t;c.each(function(Y,q){for(var ie=0;Y&&ie<Y.length;ie++){var ge=Y[ie];ge&&T.call(f,q,ge,ge.componentIndex)}})}else for(var R=ei(t)?c.get(t):to(t)?this.findComponents(t):null,I=0;R&&I<R.length;I++){var B=R[I];B&&r.call(s,B,B.componentIndex)}},e.prototype.getSeriesByName=function(t){var r=Ta(t,null);return Yn(this._componentsMap.get("series"),function(s){return!!s&&r!=null&&s.name===r})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Yn(this._componentsMap.get("series"),function(r){return!!r&&r.subType===t})},e.prototype.getSeries=function(){return Yn(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,r){Xy(this),At(this._seriesIndices,function(s){var c=this._componentsMap.get("series")[s];t.call(r,c,s)},this)},e.prototype.eachRawSeries=function(t,r){At(this._componentsMap.get("series"),function(s){s&&t.call(r,s,s.componentIndex)})},e.prototype.eachSeriesByType=function(t,r,s){Xy(this),At(this._seriesIndices,function(c){var f=this._componentsMap.get("series")[c];f.subType===t&&r.call(s,f,c)},this)},e.prototype.eachRawSeriesByType=function(t,r,s){return At(this.getSeriesByType(t),r,s)},e.prototype.isSeriesFiltered=function(t){return Xy(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,r){Xy(this);var s=[];At(this._seriesIndices,function(c){var f=this._componentsMap.get("series")[c];t.call(r,f,c)&&s.push(c)},this),this._seriesIndices=s,this._seriesIndicesMap=Za(s)},e.prototype.restoreData=function(t){QC(this);var r=this._componentsMap,s=[];r.each(function(c,f){Mp.hasClass(f)&&s.push(f)}),Mp.topologicalTravel(s,Mp.getAllClassMainTypes(),function(c){At(r.get(c),function(f){f&&(c!=="series"||!kO(f,t))&&f.restoreData()})})},e.internalField=function(){QC=function(t){var r=t._seriesIndices=[];At(t._componentsMap.get("series"),function(s){s&&r.push(s.componentIndex)}),t._seriesIndicesMap=Za(r)},Xy=function(t){},nb=function(t,r){t.option={},t.option[uk]=$4,t._componentsMap=Za({series:[]}),t._componentsCount=Za();var s=r.aria;to(s)&&s.enabled==null&&(s.enabled=!0),qC(r,t._theme.option),ba(r,bT,!1),t._mergeOption(r,null)}}(),e}(Lv);function kO(n,e){if(e){var t=e.seriesIndex,r=e.seriesId,s=e.seriesName;return t!=null&&n.componentIndex!==t||r!=null&&n.id!==r||s!=null&&n.name!==s}}function qC(n,e){var t=n.color&&!n.colorLayer;At(e,function(r,s){s==="colorLayer"&&t||Mp.hasClass(s)||(typeof r=="object"?n[s]=n[s]?ba(n[s],r,!1):Kr(r):n[s]==null&&(n[s]=r))})}function vk(n,e,t){if(La(e)){var r=Za();return At(e,function(c){if(c!=null){var f=Ta(c,null);f!=null&&r.set(c,!0)}}),Yn(t,function(c){return c&&r.get(c[n])})}else{var s=Ta(e,null);return Yn(t,function(c){return c&&s!=null&&c[n]===s})}}function hk(n,e){return e.hasOwnProperty("subType")?Yn(n,function(t){return t&&t.subType===e.subType}):n}function mk(n){var e=Za();return n&&At(Bf(n.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}Kn(pk,eS);var AT=pk,h0=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Y4=function(){function n(e){At(h0,function(t){this[t]=Xa(e[t],e)},this)}return n}(),gk=Y4,MT={},PO=function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(e,t){var r=[];At(MT,function(s,c){var f=s.create(e,t);r=r.concat(f||[])}),this._coordinateSystems=r},n.prototype.update=function(e,t){At(this._coordinateSystems,function(r){r.update&&r.update(e,t)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(e,t){MT[e]=t},n.get=function(e){return MT[e]},n}(),tS=PO,e2=/^(min|max)?(.+)$/,RO=function(){function n(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return n.prototype.setOption=function(e,t,r){e&&(At(Bf(e.series),function(f){f&&f.data&&cs(f.data)&&Pr(f.data)}),At(Bf(e.dataset),function(f){f&&f.source&&cs(f.source)&&Pr(f.source)})),e=Kr(e);var s=this._optionBackup,c=OO(e,t,!s);this._newBaseOption=c.baseOption,s?(c.timelineOptions.length&&(s.timelineOptions=c.timelineOptions),c.mediaList.length&&(s.mediaList=c.mediaList),c.mediaDefault&&(s.mediaDefault=c.mediaDefault)):this._optionBackup=c},n.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Kr(e?t.baseOption:this._newBaseOption)},n.prototype.getTimelineOption=function(e){var t,r=this._timelineOptions;if(r.length){var s=e.getComponent("timeline");s&&(t=Kr(r[s.getCurrentIndex()]))}return t},n.prototype.getMediaOption=function(e){var t=this._api.getWidth(),r=this._api.getHeight(),s=this._mediaList,c=this._mediaDefault,f=[],T=[];if(!s.length&&!c)return T;for(var R=0,I=s.length;R<I;R++)X4(s[R].query,t,r)&&f.push(R);return!f.length&&c&&(f=[-1]),f.length&&!DO(f,this._currentMediaIndices)&&(T=ar(f,function(B){return Kr(B===-1?c.option:s[B].option)})),this._currentMediaIndices=f,T},n}();function OO(n,e,t){var r=[],s,c,f=n.baseOption,T=n.timeline,R=n.options,I=n.media,B=!!n.media,Y=!!(R||T||f&&f.timeline);f?(c=f,c.timeline||(c.timeline=T)):((Y||B)&&(n.options=n.media=null),c=n),B&&La(I)&&At(I,function(ie){ie&&ie.option&&(ie.query?r.push(ie):s||(s=ie))}),q(c),At(R,function(ie){return q(ie)}),At(r,function(ie){return q(ie.option)});function q(ie){At(e,function(ge){ge(ie,t)})}return{baseOption:c,timelineOptions:R||[],mediaDefault:s,mediaList:r}}function X4(n,e,t){var r={width:e,height:t,aspectratio:e/t},s=!0;return At(n,function(c,f){var T=f.match(e2);if(!(!T||!T[1]||!T[2])){var R=T[1],I=T[2].toLowerCase();IO(r[I],c,R)||(s=!1)}}),s}function IO(n,e,t){return t==="min"?n>=e:t==="max"?n<=e:n===e}function DO(n,e){return n.join(",")===e.join(",")}var _k=RO,B_=At,Sx=to,kT=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function PT(n){var e=n&&n.itemStyle;if(!!e)for(var t=0,r=kT.length;t<r;t++){var s=kT[t],c=e.normal,f=e.emphasis;c&&c[s]&&(n[s]=n[s]||{},n[s].normal?ba(n[s].normal,c[s]):n[s].normal=c[s],c[s]=null),f&&f[s]&&(n[s]=n[s]||{},n[s].emphasis?ba(n[s].emphasis,f[s]):n[s].emphasis=f[s],f[s]=null)}}function yg(n,e,t){if(n&&n[e]&&(n[e].normal||n[e].emphasis)){var r=n[e].normal,s=n[e].emphasis;r&&(t?(n[e].normal=n[e].emphasis=null,Pi(n[e],r)):n[e]=r),s&&(n.emphasis=n.emphasis||{},n.emphasis[e]=s,s.focus&&(n.emphasis.focus=s.focus),s.blurScope&&(n.emphasis.blurScope=s.blurScope))}}function t2(n){yg(n,"itemStyle"),yg(n,"lineStyle"),yg(n,"areaStyle"),yg(n,"label"),yg(n,"labelLine"),yg(n,"upperLabel"),yg(n,"edgeLabel")}function qh(n,e){var t=Sx(n)&&n[e],r=Sx(t)&&t.textStyle;if(r)for(var s=0,c=qu.length;s<c;s++){var f=qu[s];r.hasOwnProperty(f)&&(t[f]=r[f])}}function zg(n){n&&(t2(n),qh(n,"label"),n.emphasis&&qh(n.emphasis,"label"))}function Ts(n){if(!!Sx(n)){PT(n),t2(n),qh(n,"label"),qh(n,"upperLabel"),qh(n,"edgeLabel"),n.emphasis&&(qh(n.emphasis,"label"),qh(n.emphasis,"upperLabel"),qh(n.emphasis,"edgeLabel"));var e=n.markPoint;e&&(PT(e),zg(e));var t=n.markLine;t&&(PT(t),zg(t));var r=n.markArea;r&&zg(r);var s=n.data;if(n.type==="graph"){s=s||n.nodes;var c=n.links||n.edges;if(c&&!cs(c))for(var f=0;f<c.length;f++)zg(c[f]);At(n.categories,function(I){t2(I)})}if(s&&!cs(s))for(var f=0;f<s.length;f++)zg(s[f]);if(e=n.markPoint,e&&e.data)for(var T=e.data,f=0;f<T.length;f++)zg(T[f]);if(t=n.markLine,t&&t.data)for(var R=t.data,f=0;f<R.length;f++)La(R[f])?(zg(R[f][0]),zg(R[f][1])):zg(R[f]);n.type==="gauge"?(qh(n,"axisLabel"),qh(n,"title"),qh(n,"detail")):n.type==="treemap"?(yg(n.breadcrumb,"itemStyle"),At(n.levels,function(I){t2(I)})):n.type==="tree"&&t2(n.leaves)}}function sm(n){return La(n)?n:n?[n]:[]}function NO(n){return(La(n)?n[0]:n)||{}}function J4(n,e){B_(sm(n.series),function(r){Sx(r)&&Ts(r)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),B_(t,function(r){B_(sm(n[r]),function(s){s&&(qh(s,"axisLabel"),qh(s.axisPointer,"label"))})}),B_(sm(n.parallel),function(r){var s=r&&r.parallelAxisDefault;qh(s,"axisLabel"),qh(s&&s.axisPointer,"label")}),B_(sm(n.calendar),function(r){yg(r,"itemStyle"),qh(r,"dayLabel"),qh(r,"monthLabel"),qh(r,"yearLabel")}),B_(sm(n.radar),function(r){qh(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),B_(sm(n.geo),function(r){Sx(r)&&(zg(r),B_(sm(r.regions),function(s){zg(s)}))}),B_(sm(n.timeline),function(r){zg(r),yg(r,"label"),yg(r,"itemStyle"),yg(r,"controlStyle",!0);var s=r.data;La(s)&&At(s,function(c){to(c)&&(yg(c,"label"),yg(c,"itemStyle"))})}),B_(sm(n.toolbox),function(r){yg(r,"iconStyle"),B_(r.feature,function(s){yg(s,"iconStyle")})}),qh(NO(n.axisPointer),"label"),qh(NO(n.tooltip).axisPointer,"label")}function Q4(n,e){for(var t=e.split(","),r=n,s=0;s<t.length&&(r=r&&r[t[s]],r!=null);s++);return r}function Dm(n,e,t,r){for(var s=e.split(","),c=n,f,T=0;T<s.length-1;T++)f=s[T],c[f]==null&&(c[f]={}),c=c[f];(r||c[s[T]]==null)&&(c[s[T]]=t)}function m0(n){n&&At(yk,function(e){e[0]in n&&!(e[1]in n)&&(n[e[1]]=n[e[0]])})}var yk=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],q4=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],n2=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function nS(n){var e=n&&n.itemStyle;if(e)for(var t=0;t<n2.length;t++){var r=n2[t][1],s=n2[t][0];e[r]!=null&&(e[s]=e[r])}}function LO(n){!n||n.alignTo==="edge"&&n.margin!=null&&n.edgeDistance==null&&(n.edgeDistance=n.margin)}function FO(n){!n||n.downplay&&!n.blur&&(n.blur=n.downplay)}function r2(n){!n||n.focusNodeAdjacency!=null&&(n.emphasis=n.emphasis||{},n.emphasis.focus==null&&(n.emphasis.focus="adjacency"))}function jO(n,e){if(n)for(var t=0;t<n.length;t++)e(n[t]),n[t]&&jO(n[t].children,e)}function BO(n,e){J4(n,e),n.series=Bf(n.series),At(n.series,function(t){if(!!to(t)){var r=t.type;if(r==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(r==="pie"||r==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),LO(t.label);var s=t.data;if(s&&!cs(s))for(var c=0;c<s.length;c++)LO(s[c]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(r==="gauge"){var f=Q4(t,"pointer.color");f!=null&&Dm(t,"itemStyle.color",f)}else if(r==="bar"){nS(t),nS(t.backgroundStyle),nS(t.emphasis);var s=t.data;if(s&&!cs(s))for(var c=0;c<s.length;c++)typeof s[c]=="object"&&(nS(s[c]),nS(s[c]&&s[c].emphasis))}else if(r==="sunburst"){var T=t.highlightPolicy;T&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=T)),FO(t),jO(t.data,FO)}else r==="graph"||r==="sankey"?r2(t):r==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Pi(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),m0(t)}}),n.dataRange&&(n.visualMap=n.dataRange),At(q4,function(t){var r=n[t];r&&(La(r)||(r=[r]),At(r,function(s){m0(s)}))})}function bk(n){var e=Za();n.eachSeries(function(t){var r=t.get("stack");if(r){var s=e.get(r)||e.set(r,[]),c=t.getData(),f={stackResultDimension:c.getCalculationInfo("stackResultDimension"),stackedOverDimension:c.getCalculationInfo("stackedOverDimension"),stackedDimension:c.getCalculationInfo("stackedDimension"),stackedByDimension:c.getCalculationInfo("stackedByDimension"),isStackedByIndex:c.getCalculationInfo("isStackedByIndex"),data:c,seriesModel:t};if(!f.stackedDimension||!(f.isStackedByIndex||f.stackedByDimension))return;s.length&&c.setCalculationInfo("stackedOnSeries",s[s.length-1].seriesModel),s.push(f)}}),e.each(xk)}function xk(n){At(n,function(e,t){var r=[],s=[NaN,NaN],c=[e.stackResultDimension,e.stackedOverDimension],f=e.data,T=e.isStackedByIndex,R=e.seriesModel.get("stackStrategy")||"samesign";f.modify(c,function(I,B,Y){var q=f.get(e.stackedDimension,Y);if(isNaN(q))return s;var ie,ge;T?ge=f.getRawIndex(Y):ie=f.get(e.stackedByDimension,Y);for(var Oe=NaN,Ne=t-1;Ne>=0;Ne--){var He=n[Ne];if(T||(ge=He.data.rawIndexOf(He.stackedByDimension,ie)),ge>=0){var st=He.data.getByRawIndex(He.stackResultDimension,ge);if(R==="all"||R==="positive"&&st>0||R==="negative"&&st<0||R==="samesign"&&q>=0&&st>0||R==="samesign"&&q<=0&&st<0){q=vi(q,st),Oe=st;break}}}return r[0]=q,r[1]=Oe,r})})}var RT=function(){function n(e){this.data=e.data||(e.sourceFormat===_g?{}:[]),this.sourceFormat=e.sourceFormat||JC,this.seriesLayoutBy=e.seriesLayoutBy||Vg,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;r<t.length;r++){var s=t[r];s.type==null&&wO(this,r)===qm.Must&&(s.type="ordinal")}}return n}();function Ek(n){return n instanceof RT}function Sk(n,e,t){t=t||OT(n);var r=e.seriesLayoutBy,s=a2(n,t,r,e.sourceHeader,e.dimensions),c=new RT({data:n,sourceFormat:t,seriesLayoutBy:r,dimensionsDefine:s.dimensionsDefine,startIndex:s.startIndex,dimensionsDetectedCount:s.dimensionsDetectedCount,metaRawOption:Kr(e)});return c}function Ck(n){return new RT({data:n,sourceFormat:cs(n)?v0:rd})}function Nn(n){return new RT({data:n.data,sourceFormat:n.sourceFormat,seriesLayoutBy:n.seriesLayoutBy,dimensionsDefine:Kr(n.dimensionsDefine),startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount})}function OT(n){var e=JC;if(cs(n))e=v0;else if(La(n)){n.length===0&&(e=Ah);for(var t=0,r=n.length;t<r;t++){var s=n[t];if(s!=null){if(La(s)){e=Ah;break}else if(to(s)){e=j_;break}}}}else if(to(n)){for(var c in n)if(Xi(n,c)&&Pn(n[c])){e=_g;break}}return e}function a2(n,e,t,r,s){var c,f;if(!n)return{dimensionsDefine:g0(s),startIndex:f,dimensionsDetectedCount:c};if(e===Ah){var T=n;r==="auto"||r==null?i2(function(I){I!=null&&I!=="-"&&(ei(I)?f==null&&(f=1):f=0)},t,T,10):f=yo(r)?r:r?1:0,!s&&f===1&&(s=[],i2(function(I,B){s[B]=I!=null?I+"":""},t,T,Infinity)),c=s?s.length:t===V0?T.length:T[0]?T[0].length:null}else if(e===j_)s||(s=wk(n));else if(e===_g)s||(s=[],At(n,function(I,B){s.push(B)}));else if(e===rd){var R=Nu(n[0]);c=La(R)&&R.length||1}return{startIndex:f,dimensionsDefine:g0(s),dimensionsDetectedCount:c}}function wk(n){for(var e=0,t;e<n.length&&!(t=n[e++]););if(t)return Ua(t)}function g0(n){if(!!n){var e=Za();return ar(n,function(t,r){t=to(t)?t:{name:t};var s={name:t.name,displayName:t.displayName,type:t.type};if(s.name==null)return s;s.name+="",s.displayName==null&&(s.displayName=s.name);var c=e.get(s.name);return c?s.name+="-"+c.count++:e.set(s.name,{count:1}),s})}}function i2(n,e,t,r){if(e===V0)for(var s=0;s<t.length&&s<r;s++)n(t[s]?t[s][0]:null,s);else for(var c=t[0]||[],s=0;s<c.length&&s<r;s++)n(c[s],s)}function rb(n){var e=n.sourceFormat;return e===j_||e===_g}var bl,$p,ab,Jy,UO,o2=function(){function n(e,t){var r=Ek(e)?e:Ck(e);this._source=r;var s=this._data=r.data;r.sourceFormat===v0&&(this._offset=0,this._dimSize=t,this._data=s),UO(this,s,r)}return n.prototype.getSource=function(){return this._source},n.prototype.count=function(){return 0},n.prototype.getItem=function(e,t){},n.prototype.appendData=function(e){},n.prototype.clean=function(){},n.protoInitialize=function(){var e=n.prototype;e.pure=!1,e.persistent=!0}(),n.internalField=function(){var e;UO=function(f,T,R){var I=R.sourceFormat,B=R.seriesLayoutBy,Y=R.startIndex,q=R.dimensionsDefine,ie=Jy[l2(I,B)];if(Ea(f,ie),I===v0)f.getItem=t,f.count=s,f.fillStorage=r;else{var ge=Tk(I,B);f.getItem=Xa(ge,null,T,Y,q);var Oe=t_(I,B);f.count=Xa(Oe,null,T,Y,q)}};var t=function(f,T){f=f-this._offset,T=T||[];for(var R=this._data,I=this._dimSize,B=I*f,Y=0;Y<I;Y++)T[Y]=R[B+Y];return T},r=function(f,T,R,I){for(var B=this._data,Y=this._dimSize,q=0;q<Y;q++){for(var ie=I[q],ge=ie[0]==null?Infinity:ie[0],Oe=ie[1]==null?-Infinity:ie[1],Ne=T-f,He=R[q],st=0;st<Ne;st++){var pt=B[st*Y+q];He[f+st]=pt,pt<ge&&(ge=pt),pt>Oe&&(Oe=pt)}ie[0]=ge,ie[1]=Oe}},s=function(){return this._data?this._data.length/this._dimSize:0};Jy=(e={},e[Ah+"_"+Vg]={pure:!0,appendData:c},e[Ah+"_"+V0]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[j_]={pure:!0,appendData:c},e[_g]={pure:!0,appendData:function(f){var T=this._data;At(f,function(R,I){for(var B=T[I]||(T[I]=[]),Y=0;Y<(R||[]).length;Y++)B.push(R[Y])})}},e[rd]={appendData:c},e[v0]={persistent:!1,pure:!0,appendData:function(f){this._data=f},clean:function(){this._offset+=this.count(),this._data=null}},e);function c(f){for(var T=0;T<f.length;T++)this._data.push(f[T])}}(),n}(),IT=function(n,e,t,r){return n[r]},eN=(bl={},bl[Ah+"_"+Vg]=function(n,e,t,r){return n[r+e]},bl[Ah+"_"+V0]=function(n,e,t,r,s){r+=e;for(var c=s||[],f=n,T=0;T<f.length;T++){var R=f[T];c[T]=R?R[r]:null}return c},bl[j_]=IT,bl[_g]=function(n,e,t,r,s){for(var c=s||[],f=0;f<t.length;f++){var T=t[f].name,R=n[T];c[f]=R?R[r]:null}return c},bl[rd]=IT,bl);function Tk(n,e){var t=eN[l2(n,e)];return t}var Wg=function(n,e,t){return n.length},DT=($p={},$p[Ah+"_"+Vg]=function(n,e,t){return Math.max(0,n.length-e)},$p[Ah+"_"+V0]=function(n,e,t){var r=n[0];return r?Math.max(0,r.length-e):0},$p[j_]=Wg,$p[_g]=function(n,e,t){var r=t[0].name,s=n[r];return s?s.length:0},$p[rd]=Wg,$p);function t_(n,e){var t=DT[l2(n,e)];return t}var s2=function(n,e,t){return n[e]},__=(ab={},ab[Ah]=s2,ab[j_]=function(n,e,t){return n[t]},ab[_g]=s2,ab[rd]=function(n,e,t){var r=Nu(n);return r instanceof Array?r[e]:r},ab[v0]=s2,ab);function NT(n){var e=__[n];return e}function l2(n,e){return n===Ah?n+"_"+e:n}function Cx(n,e,t){if(!!n){var r=n.getRawDataItem(e);if(r!=null){var s=n.getStore(),c=s.getSource().sourceFormat;if(t!=null){var f=n.getDimensionIndex(t),T=s.getDimensionProperty(f);return NT(c)(r,f,T)}else{var R=r;return c===rd&&(R=Nu(r)),R}}}}function my(n,e,t){if(!!n){var r=n.getStore().getSource().sourceFormat;if(!(r!==SOURCE_FORMAT_ORIGINAL&&r!==SOURCE_FORMAT_OBJECT_ROWS)){var s=n.getRawDataItem(e);if(r===SOURCE_FORMAT_ORIGINAL&&!isObject(s)&&(s=null),s)return s[t]}}}var Tx=/\{@(.+?)\}/g,LT=function(){function n(){}return n.prototype.getDataParams=function(e,t){var r=this.getData(t),s=this.getRawValue(e,t),c=r.getRawIndex(e),f=r.getName(e),T=r.getRawDataItem(e),R=r.getItemVisual(e,"style"),I=R&&R[r.getItemVisual(e,"drawType")||"fill"],B=R&&R.stroke,Y=this.mainType,q=Y==="series",ie=r.userOutput&&r.userOutput.get();return{componentType:Y,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:q?this.subType:null,seriesIndex:this.seriesIndex,seriesId:q?this.id:null,seriesName:q?this.name:null,name:f,dataIndex:c,data:T,dataType:t,value:s,color:I,borderColor:B,dimensionNames:ie?ie.fullDimensions:null,encode:ie?ie.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(e,t,r,s,c,f){t=t||"normal";var T=this.getData(r),R=this.getDataParams(e,r);if(f&&(R.value=f.interpolatedValue),s!=null&&La(R.value)&&(R.value=R.value[s]),!c){var I=T.getItemModel(e);c=I.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(ja(c))return R.status=t,R.dimensionIndex=s,c(R);if(ei(c)){var B=$C(c,R);return B.replace(Tx,function(Y,q){var ie=q.length,ge=q;ge.charAt(0)==="["&&ge.charAt(ie-1)==="]"&&(ge=+ge.slice(1,ie-1));var Oe=Cx(T,e,ge);if(f&&La(f.interpolatedValue)){var Ne=T.getDimensionIndex(ge);Ne>=0&&(Oe=f.interpolatedValue[Ne])}return Oe!=null?Oe+"":""})}},n.prototype.getRawValue=function(e,t){return Cx(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function FT(n){var e,t;return to(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function ib(n){return new jT(n)}var jT=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var s=this.context;s.data=s.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var c;this._plan&&!r&&(c=this._plan(this.context));var f=B(this._modBy),T=this._modDataCount||0,R=B(e&&e.modBy),I=e&&e.modDataCount||0;(f!==R||T!==I)&&(c="reset");function B(st){return!(st>=1)&&(st=1),st}var Y;(this._dirty||c==="reset")&&(this._dirty=!1,Y=this._doReset(r)),this._modBy=R,this._modDataCount=I;var q=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var ie=this._dueIndex,ge=Math.min(q!=null?this._dueIndex+q:Infinity,this._dueEnd);if(!r&&(Y||ie<ge)){var Oe=this._progress;if(La(Oe))for(var Ne=0;Ne<Oe.length;Ne++)this._doProgress(Oe[Ne],ie,ge,R,I);else this._doProgress(Oe,ie,ge,R,I)}this._dueIndex=ge;var He=this._settedOutputEnd!=null?this._settedOutputEnd:ge;this._outputDueEnd=He}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},n.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},n.prototype._doProgress=function(e,t,r,s,c){Ak.reset(t,r,s,c),this._callingProgress=e,this._callingProgress({start:t,end:r,count:r-t,next:Ak.next},this.context)},n.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,r;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(r=t.forceFirstProgress,t=t.progress),La(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var s=this._downstream;return s&&s.dirty(),r},n.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},n.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},n.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},n.prototype.getUpstream=function(){return this._upstream},n.prototype.getDownstream=function(){return this._downstream},n.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},n}(),Ak=function(){var n,e,t,r,s,c={reset:function(R,I,B,Y){e=R,n=I,t=B,r=Y,s=Math.ceil(r/t),c.next=t>1&&r>0?T:f}};return c;function f(){return e<n?e++:null}function T(){var R=e%s*t+Math.ceil(e/s),I=e>=n?null:R<r?R:e;return e++,I}}(),ZO="[ECharts] ",c2={},VO=typeof console!="undefined"&&console.warn&&console.log;function rS(n,e,t){if(VO){if(t){if(c2[e])return;c2[e]=!0}console[n](ZO+e)}}function gm(n,e){rS("log",n,e)}function Mk(n,e){rS("warn",n,e)}function u2(n,e){rS("error",n,e)}function BT(n){}function r7(n,e,t){}function tN(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t="";if(!1)var r;return t}function Kp(n){throw new Error(n)}function gy(n,e){var t=e&&e.type;return t==="ordinal"?n:(t==="time"&&!yo(n)&&n!=null&&n!=="-"&&(n=+ys(n)),n==null||n===""?NaN:+n)}var lm=Za({number:function(n){return parseFloat(n)},time:function(n){return+ys(n)},trim:function(n){return ei(n)?Tr(n):n}});function UT(n){return lm.get(n)}var f2={lt:function(n,e){return n<e},lte:function(n,e){return n<=e},gt:function(n,e){return n>e},gte:function(n,e){return n>=e}},zO=function(){function n(e,t){if(!yo(t)){var r="";Kp(r)}this._opFn=f2[e],this._rvalFloat=Ru(t)}return n.prototype.evaluate=function(e){return yo(e)?this._opFn(e,this._rvalFloat):this._opFn(Ru(e),this._rvalFloat)},n}(),ZT=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-Infinity:Infinity}return n.prototype.evaluate=function(e,t){var r=yo(e)?e:Ru(e),s=yo(t)?t:Ru(t),c=isNaN(r),f=isNaN(s);if(c&&(r=this._incomparable),f&&(s=this._incomparable),c&&f){var T=ei(e),R=ei(t);T&&(r=R?e:0),R&&(s=T?t:0)}return r<s?this._resultLT:r>s?-this._resultLT:0},n}(),U_=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Ru(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=Ru(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function WO(n,e){return n==="eq"||n==="ne"?new U_(n==="eq",e):Xi(f2,n)?new zO(n,e):null}var nN=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return gy(e,t)},n}();function HO(n,e){var t=new nN,r=n.data,s=t.sourceFormat=n.sourceFormat,c=n.startIndex,f="";n.seriesLayoutBy!==Vg&&Kp(f);var T=[],R={},I=n.dimensionsDefine;if(I)At(I,function(Oe,Ne){var He=Oe.name,st={index:Ne,name:He,displayName:Oe.displayName};if(T.push(st),He!=null){var pt="";Xi(R,He)&&Kp(pt),R[He]=st}});else for(var B=0;B<n.dimensionsDetectedCount;B++)T.push({index:B});var Y=Tk(s,Vg);e.__isBuiltIn&&(t.getRawDataItem=function(Oe){return Y(r,c,T,Oe)},t.getRawData=Xa(VT,null,n)),t.cloneRawData=Xa(ob,null,n);var q=t_(s,Vg);t.count=Xa(q,null,r,c,T);var ie=NT(s);t.retrieveValue=function(Oe,Ne){var He=Y(r,c,T,Oe);return ge(He,Ne)};var ge=t.retrieveValueFromItem=function(Oe,Ne){if(Oe!=null){var He=T[Ne];if(He)return ie(Oe,Ne,He.name)}};return t.getDimensionInfo=Xa(Ax,null,T,R),t.cloneAllDimensionInfo=Xa(kk,null,T),t}function VT(n){var e=n.sourceFormat;if(!Hg(e)){var t="";Kp(t)}return n.data}function ob(n){var e=n.sourceFormat,t=n.data;if(!Hg(e)){var r="";Kp(r)}if(e===Ah){for(var s=[],c=0,f=t.length;c<f;c++)s.push(t[c].slice());return s}else if(e===j_){for(var s=[],c=0,f=t.length;c<f;c++)s.push(Ea({},t[c]));return s}}function Ax(n,e,t){if(t!=null){if(yo(t)||!isNaN(t)&&!Xi(e,t))return n[t];if(Xi(e,t))return e[t]}}function kk(n){return Kr(n)}var Pk=Za();function Rk(n){n=Kr(n);var e=n.type,t="";e||Kp(t);var r=e.split(":");r.length!==2&&Kp(t);var s=!1;r[0]==="echarts"&&(e=r[1],s=!0),n.__isBuiltIn=s,Pk.set(e,n)}function Ok(n,e,t){var r=Bf(n),s=r.length,c="";s||Kp(c);for(var f=0,T=s;f<T;f++){var R=r[f];e=zT(R,e,t,s===1?null:f),f!==T-1&&(e.length=Math.max(e.length,1))}return e}function zT(n,e,t,r){var s="";e.length||Kp(s),to(n)||Kp(s);var c=n.type,f=Pk.get(c);f||Kp(s);var T=ar(e,function(B){return HO(B,f)}),R=Bf(f.transform({upstream:T[0],upstreamList:T,config:Kr(n.config)}));if(!1)var I;return ar(R,function(B,Y){var q="";to(B)||Kp(q),B.data||Kp(q);var ie=OT(B.data);Hg(ie)||Kp(q);var ge,Oe=e[0];if(Oe&&Y===0&&!B.dimensions){var Ne=Oe.startIndex;Ne&&(B.data=Oe.data.slice(0,Ne).concat(B.data)),ge={seriesLayoutBy:Vg,sourceHeader:Ne,dimensions:Oe.metaRawOption.dimensions}}else ge={seriesLayoutBy:Vg,sourceHeader:0,dimensions:B.dimensions};return Sk(B.data,ge,null)})}function Hg(n){return n===Ah||n===j_}var d2="undefined",p2=typeof Uint32Array===d2?Array:Uint32Array,Ik=typeof Uint16Array===d2?Array:Uint16Array,Dk=typeof Int32Array===d2?Array:Int32Array,WT=typeof Float64Array===d2?Array:Float64Array,HT={float:WT,int:Dk,ordinal:Array,number:Array,time:WT},GT;function Mx(n){return n>65535?p2:Ik}function Qy(){return[Infinity,-Infinity]}function _y(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function aS(n,e,t,r,s){var c=HT[t||"float"];if(s){var f=n[e],T=f&&f.length;if(T!==r){for(var R=new c(r),I=0;I<T;I++)R[I]=f[I];n[e]=R}}else n[e]=new c(r)}var Nk=function(){function n(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Za()}return n.prototype.initData=function(e,t,r){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var s=e.getSource(),c=this.defaultDimValueGetter=GT[s.sourceFormat];this._dimValueGetter=r||c,this._rawExtent=[];var f=rb(s);this._dimensions=ar(t,function(T){return{type:T.type,property:T.property}}),this._initDataFromProvider(0,e.count())},n.prototype.getProvider=function(){return this._provider},n.prototype.getSource=function(){return this._provider.getSource()},n.prototype.ensureCalculationDimension=function(e,t){var r=this._calcDimNameToIdx,s=this._dimensions,c=r.get(e);if(c!=null){if(s[c].type===t)return c}else c=s.length;return s[c]={type:t},r.set(e,c),this._chunks[c]=new HT[t||"float"](this._rawCount),this._rawExtent[c]=Qy(),c},n.prototype.collectOrdinalMeta=function(e,t){var r=this._chunks[e],s=this._dimensions[e],c=this._rawExtent,f=s.ordinalOffset||0,T=r.length;f===0&&(c[e]=Qy());for(var R=c[e],I=f;I<T;I++){var B=r[I]=t.parseAndCollect(r[I]);isNaN(B)||(R[0]=Math.min(B,R[0]),R[1]=Math.max(B,R[1]))}s.ordinalMeta=t,s.ordinalOffset=T,s.type="ordinal"},n.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],r=t.ordinalMeta;return r},n.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},n.prototype.appendData=function(e){var t=this._provider,r=this.count();t.appendData(e);var s=t.count();return t.persistent||(s+=r),r<s&&this._initDataFromProvider(r,s,!0),[r,s]},n.prototype.appendValues=function(e,t){for(var r=this._chunks,s=this._dimensions,c=s.length,f=this._rawExtent,T=this.count(),R=T+Math.max(e.length,t||0),I=0;I<c;I++){var B=s[I];aS(r,I,B.type,R,!0)}for(var Y=[],q=T;q<R;q++)for(var ie=q-T,ge=0;ge<c;ge++){var B=s[ge],Oe=GT.arrayRows.call(this,e[ie]||Y,B.property,ie,ge);r[ge][q]=Oe;var Ne=f[ge];Oe<Ne[0]&&(Ne[0]=Oe),Oe>Ne[1]&&(Ne[1]=Oe)}return this._rawCount=this._count=R,{start:T,end:R}},n.prototype._initDataFromProvider=function(e,t,r){for(var s=this._provider,c=this._chunks,f=this._dimensions,T=f.length,R=this._rawExtent,I=ar(f,function(st){return st.property}),B=0;B<T;B++){var Y=f[B];R[B]||(R[B]=Qy()),aS(c,B,Y.type,t,r)}if(s.fillStorage)s.fillStorage(e,t,c,R);else for(var q=[],ie=e;ie<t;ie++){q=s.getItem(ie,q);for(var ge=0;ge<T;ge++){var Oe=c[ge],Ne=this._dimValueGetter(q,I[ge],ie,ge);Oe[ie]=Ne;var He=R[ge];Ne<He[0]&&(He[0]=Ne),Ne>He[1]&&(He[1]=Ne)}}!s.persistent&&s.clean&&s.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var r=this._chunks[e];return r?r[this.getRawIndex(t)]:NaN},n.prototype.getValues=function(e,t){var r=[],s=[];if(t==null){t=e,e=[];for(var c=0;c<this._dimensions.length;c++)s.push(c)}else s=e;for(var c=0,f=s.length;c<f;c++)r.push(this.get(s[c],t));return r},n.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var r=this._chunks[e];return r?r[t]:NaN},n.prototype.getSum=function(e){var t=this._chunks[e],r=0;if(t)for(var s=0,c=this.count();s<c;s++){var f=this.get(e,s);isNaN(f)||(r+=f)}return r},n.prototype.getMedian=function(e){var t=[];this.each([e],function(c){isNaN(c)||t.push(c)});var r=t.sort(function(c,f){return c-f}),s=this.count();return s===0?0:s%2==1?r[(s-1)/2]:(r[s/2]+r[s/2-1])/2},n.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&r<this._count&&r===e)return e;for(var s=0,c=this._count-1;s<=c;){var f=(s+c)/2|0;if(t[f]<e)s=f+1;else if(t[f]>e)c=f-1;else return f}return-1},n.prototype.indicesOfNearest=function(e,t,r){var s=this._chunks,c=s[e],f=[];if(!c)return f;r==null&&(r=Infinity);for(var T=Infinity,R=-1,I=0,B=0,Y=this.count();B<Y;B++){var q=this.getRawIndex(B),ie=t-c[q],ge=Math.abs(ie);ge<=r&&((ge<T||ge===T&&ie>=0&&R<0)&&(T=ge,R=ie,I=0),ie===R&&(f[I++]=B))}return f.length=I,f},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,s=this._count;if(r===Array){e=new r(s);for(var c=0;c<s;c++)e[c]=t[c]}else e=new r(t.buffer,0,s)}else{var r=Mx(this._rawCount);e=new r(this.count());for(var c=0;c<e.length;c++)e[c]=c}return e},n.prototype.filter=function(e,t){if(!this._count)return this;for(var r=this.clone(),s=r.count(),c=Mx(r._rawCount),f=new c(s),T=[],R=e.length,I=0,B=e[0],Y=r._chunks,q=0;q<s;q++){var ie=void 0,ge=r.getRawIndex(q);if(R===0)ie=t(q);else if(R===1){var Oe=Y[B][ge];ie=t(Oe,q)}else{for(var Ne=0;Ne<R;Ne++)T[Ne]=Y[e[Ne]][ge];T[Ne]=q,ie=t.apply(null,T)}ie&&(f[I++]=ge)}return I<s&&(r._indices=f),r._count=I,r._extent=[],r._updateGetRawIdx(),r},n.prototype.selectRange=function(e){var t=this.clone(),r=t._count;if(!r)return this;var s=Ua(e),c=s.length;if(!c)return this;var f=t.count(),T=Mx(t._rawCount),R=new T(f),I=0,B=s[0],Y=e[B][0],q=e[B][1],ie=t._chunks,ge=!1;if(!t._indices){var Oe=0;if(c===1){for(var Ne=ie[s[0]],He=0;He<r;He++){var st=Ne[He];(st>=Y&&st<=q||isNaN(st))&&(R[I++]=Oe),Oe++}ge=!0}else if(c===2){for(var Ne=ie[s[0]],pt=ie[s[1]],Ut=e[s[1]][0],pn=e[s[1]][1],He=0;He<r;He++){var st=Ne[He],yn=pt[He];(st>=Y&&st<=q||isNaN(st))&&(yn>=Ut&&yn<=pn||isNaN(yn))&&(R[I++]=Oe),Oe++}ge=!0}}if(!ge)if(c===1)for(var He=0;He<f;He++){var jn=t.getRawIndex(He),st=ie[s[0]][jn];(st>=Y&&st<=q||isNaN(st))&&(R[I++]=jn)}else for(var He=0;He<f;He++){for(var Cr=!0,jn=t.getRawIndex(He),Nr=0;Nr<c;Nr++){var Rr=s[Nr],st=ie[Rr][jn];(st<e[Rr][0]||st>e[Rr][1])&&(Cr=!1)}Cr&&(R[I++]=t.getRawIndex(He))}return I<f&&(t._indices=R),t._count=I,t._extent=[],t._updateGetRawIdx(),t},n.prototype.map=function(e,t){var r=this.clone(e);return this._updateDims(r,e,t),r},n.prototype.modify=function(e,t){this._updateDims(this,e,t)},n.prototype._updateDims=function(e,t,r){for(var s=e._chunks,c=[],f=t.length,T=e.count(),R=[],I=e._rawExtent,B=0;B<t.length;B++)I[t[B]]=Qy();for(var Y=0;Y<T;Y++){for(var q=e.getRawIndex(Y),ie=0;ie<f;ie++)R[ie]=s[t[ie]][q];R[f]=Y;var ge=r&&r.apply(null,R);if(ge!=null){typeof ge!="object"&&(c[0]=ge,ge=c);for(var B=0;B<ge.length;B++){var Oe=t[B],Ne=ge[B],He=I[Oe],st=s[Oe];st&&(st[q]=Ne),Ne<He[0]&&(He[0]=Ne),Ne>He[1]&&(He[1]=Ne)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),s=r._chunks,c=s[e],f=this.count(),T=0,R=Math.floor(1/t),I=this.getRawIndex(0),B,Y,q,ie=new(Mx(this._rawCount))(Math.min((Math.ceil(f/R)+2)*2,f));ie[T++]=I;for(var ge=1;ge<f-1;ge+=R){for(var Oe=Math.min(ge+R,f-1),Ne=Math.min(ge+R*2,f),He=(Ne+Oe)/2,st=0,pt=Oe;pt<Ne;pt++){var Ut=this.getRawIndex(pt),pn=c[Ut];isNaN(pn)||(st+=pn)}st/=Ne-Oe;var yn=ge,jn=Math.min(ge+R,f),Cr=ge-1,Nr=c[I];B=-1,q=yn;for(var Rr=-1,Er=0,pt=yn;pt<jn;pt++){var Ut=this.getRawIndex(pt),pn=c[Ut];if(isNaN(pn)){Er++,Rr<0&&(Rr=Ut);continue}Y=Math.abs((Cr-He)*(pn-Nr)-(Cr-pt)*(st-Nr)),Y>B&&(B=Y,q=Ut)}Er>0&&Er<jn-yn&&(ie[T++]=Math.min(Rr,q),q=Math.max(Rr,q)),ie[T++]=q,I=q}return ie[T++]=this.getRawIndex(f-1),r._count=T,r._indices=ie,r.getRawIndex=this._getRawIdx,r},n.prototype.downSample=function(e,t,r,s){for(var c=this.clone([e],!0),f=c._chunks,T=[],R=Math.floor(1/t),I=f[e],B=this.count(),Y=c._rawExtent[e]=Qy(),q=new(Mx(this._rawCount))(Math.ceil(B/R)),ie=0,ge=0;ge<B;ge+=R){R>B-ge&&(R=B-ge,T.length=R);for(var Oe=0;Oe<R;Oe++){var Ne=this.getRawIndex(ge+Oe);T[Oe]=I[Ne]}var He=r(T),st=this.getRawIndex(Math.min(ge+s(T,He)||0,B-1));I[st]=He,He<Y[0]&&(Y[0]=He),He>Y[1]&&(Y[1]=He),q[ie++]=st}return c._count=ie,c._indices=q,c._updateGetRawIdx(),c},n.prototype.each=function(e,t){if(!!this._count)for(var r=e.length,s=this._chunks,c=0,f=this.count();c<f;c++){var T=this.getRawIndex(c);switch(r){case 0:t(c);break;case 1:t(s[e[0]][T],c);break;case 2:t(s[e[0]][T],s[e[1]][T],c);break;default:for(var R=0,I=[];R<r;R++)I[R]=s[e[R]][T];I[R]=c,t.apply(null,I)}}},n.prototype.getDataExtent=function(e){var t=this._chunks[e],r=Qy();if(!t)return r;var s=this.count(),c=!this._indices,f;if(c)return this._rawExtent[e].slice();if(f=this._extent[e],f)return f.slice();f=r;for(var T=f[0],R=f[1],I=0;I<s;I++){var B=this.getRawIndex(I),Y=t[B];Y<T&&(T=Y),Y>R&&(R=Y)}return f=[T,R],this._extent[e]=f,f},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],s=this._chunks,c=0;c<s.length;c++)r.push(s[c][t]);return r},n.prototype.clone=function(e,t){var r=new n,s=this._chunks,c=e&&ta(e,function(T,R){return T[R]=!0,T},{});if(c)for(var f=0;f<s.length;f++)r._chunks[f]=c[f]?_y(s[f]):s[f];else r._chunks=s;return this._copyCommonProps(r),t||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},n.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Kr(this._extent),e._rawExtent=Kr(this._rawExtent)},n.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var r=this._indices.length;t=new e(r);for(var s=0;s<r;s++)t[s]=this._indices[s]}else t=new e(this._indices);return t}return null},n.prototype._getRawIdxIdentity=function(e){return e},n.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,s,c){return gy(t[c],this._dimensions[c])}GT={arrayRows:e,objectRows:function(t,r,s,c){return gy(t[r],this._dimensions[c])},keyedColumns:e,original:function(t,r,s,c){var f=t&&(t.value==null?t:t.value);return gy(f instanceof Array?f[c]:f,this._dimensions[c])},typedArray:function(t,r,s,c){return t[c]}}}(),n}(),iS=Nk,$T=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,s,c;if(kx(e)){var f=e,T=void 0,R=void 0,I=void 0;if(r){var B=t[0];B.prepareSource(),I=B.getSource(),T=I.data,R=I.sourceFormat,c=[B._getVersionSign()]}else T=f.get("data",!0),R=cs(T)?v0:rd,c=[];var Y=this._getSourceMetaRawOption()||{},q=I&&I.metaRawOption||{},ie=sn(Y.seriesLayoutBy,q.seriesLayoutBy)||null,ge=sn(Y.sourceHeader,q.sourceHeader),Oe=sn(Y.dimensions,q.dimensions),Ne=ie!==q.seriesLayoutBy||!!ge!=!!q.sourceHeader||Oe;s=Ne?[Sk(T,{seriesLayoutBy:ie,sourceHeader:ge,dimensions:Oe},R)]:[]}else{var He=e;if(r){var st=this._applyTransform(t);s=st.sourceList,c=st.upstreamSignList}else{var pt=He.get("source",!0);s=[Sk(pt,this._getSourceMetaRawOption(),null)],c=[]}}this._setLocalSource(s,c)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),s=t.get("fromTransformResult",!0);if(s!=null){var c="";e.length!==1&&GO(c)}var f,T=[],R=[];return At(e,function(I){I.prepareSource();var B=I.getSource(s||0),Y="";s!=null&&!B&&GO(Y),T.push(B),R.push(I._getVersionSign())}),r?f=Ok(r,T,{datasetIndex:t.componentIndex}):s!=null&&(f=[Nn(T[0])]),{sourceList:f,upstreamSignList:R}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var r=e[t];if(r._isDirty()||this._upstreamSignList[t]!==r._getVersionSign())return!0}},n.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(e)}return t},n.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},n.prototype._innerGetDataStore=function(e,t,r){var s=0,c=this._storeList,f=c[s];f||(f=c[s]={});var T=f[r];if(!T){var R=this._getUpstreamSourceManagers()[0];kx(this._sourceHost)&&R?T=R._innerGetDataStore(e,t,r):(T=new iS,T.initData(new o2(t,e.length),e)),f[r]=T}return T},n.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(kx(e)){var t=Yy(e);return t?[t.getSourceManager()]:[]}else return ar(ST(e),function(r){return r.getSourceManager()})},n.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,r,s;if(kx(e))t=e.get("seriesLayoutBy",!0),r=e.get("sourceHeader",!0),s=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var c=e;t=c.get("seriesLayoutBy",!0),r=c.get("sourceHeader",!0),s=c.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:r,dimensions:s}},n}();function KT(n){var e=n.option.transform;e&&Pr(n.option.transform)}function kx(n){return n.mainType==="series"}function GO(n){throw new Error(n)}var oS="line-height:1";function v2(n,e){var t=n.color||"#6e7079",r=n.fontSize||12,s=n.fontWeight||"400",c=n.color||"#464646",f=n.fontSize||14,T=n.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+xr(r+"")+"px;color:"+xr(t)+";font-weight:"+xr(s+""),valueStyle:"font-size:"+xr(f+"")+"px;color:"+xr(c)+";font-weight:"+xr(T+"")}:{nameStyle:{fontSize:r,fill:t,fontWeight:s},valueStyle:{fontSize:f,fill:c,fontWeight:T}}}var YT=[0,10,20,30],XT=["",`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function em(n,e){return e.type=n,e}function JT(n){return n.type==="section"}function Lk(n){return JT(n)?Fk:jk}function yy(n){if(JT(n)){var e=0,t=n.blocks.length,r=t>1||t>0&&!n.noHeader;return At(n.blocks,function(s){var c=yy(s);c>=e&&(e=c+ +(r&&(!c||JT(s)&&!s.noHeader)))}),e}return 0}function Fk(n,e,t,r){var s=e.noHeader,c=$O(yy(e)),f=[],T=e.blocks||[];Ln(!T||La(T)),T=T||[];var R=n.orderMode;if(e.sortBlocks&&R){T=T.slice();var I={valueAsc:"asc",valueDesc:"desc"};if(Xi(I,R)){var B=new ZT(I[R],null);T.sort(function(ge,Oe){return B.evaluate(ge.sortParam,Oe.sortParam)})}else R==="seriesDesc"&&T.reverse()}At(T,function(ge,Oe){var Ne=e.valueFormatter,He=Lk(ge)(Ne?Ea(Ea({},n),{valueFormatter:Ne}):n,ge,Oe>0?c.html:0,r);He!=null&&f.push(He)});var Y=n.renderMode==="richText"?f.join(c.richText):sb(f.join(""),s?t:c.html);if(s)return Y;var q=vT(e.header,"ordinal",n.useUTC),ie=v2(r,n.renderMode).nameStyle;return n.renderMode==="richText"?Uk(n,q,ie)+c.richText+Y:sb('<div style="'+ie+";"+oS+';">'+xr(q)+"</div>"+Y,t)}function jk(n,e,t,r){var s=n.renderMode,c=e.noName,f=e.noValue,T=!e.markerType,R=e.name,I=n.useUTC,B=e.valueFormatter||n.valueFormatter||function(Ut){return Ut=La(Ut)?Ut:[Ut],ar(Ut,function(pn,yn){return vT(pn,La(ie)?ie[yn]:ie,I)})};if(!(c&&f)){var Y=T?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",s),q=c?"":vT(R,"ordinal",I),ie=e.valueType,ge=f?[]:B(e.value),Oe=!T||!c,Ne=!T&&c,He=v2(r,s),st=He.nameStyle,pt=He.valueStyle;return s==="richText"?(T?"":Y)+(c?"":Uk(n,q,st))+(f?"":Z_(n,ge,Oe,Ne,pt)):sb((T?"":Y)+(c?"":KO(q,!T,st))+(f?"":Bk(ge,Oe,Ne,pt)),t)}}function QT(n,e,t,r,s,c){if(!!n){var f=Lk(n),T={useUTC:s,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return f(T,n,0,c)}}function $O(n){return{html:YT[n],richText:XT[n]}}function sb(n,e){var t='<div style="clear:both"></div>',r="margin: "+e+"px 0 0";return'<div style="'+r+";"+oS+';">'+n+t+"</div>"}function KO(n,e,t){var r=e?"margin-left:2px":"";return'<span style="'+t+";"+r+'">'+xr(n)+"</span>"}function Bk(n,e,t,r){var s=t?"10px":"20px",c=e?"float:right;margin-left:"+s:"";return n=La(n)?n:[n],'<span style="'+c+";"+r+'">'+ar(n,function(f){return xr(f)}).join(" ")+"</span>"}function Uk(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function Z_(n,e,t,r,s){var c=[s],f=r?10:20;return t&&c.push({padding:[0,0,0,f],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(La(e)?e.join(" "):e,c)}function Zk(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Gy(r)}function Vk(n,e){var t=n.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var h2=function(){function n(){this.richTextStyles={},this._nextStyleNameId=id()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var s=r==="richText"?this._generateStyleName():null,c=Bd({color:t,type:e,renderMode:r,markerId:s});return ei(c)?c:(this.richTextStyles[s]=c.style,c.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};La(t)?At(t,function(c){return Ea(r,c)}):Ea(r,t);var s=this._generateStyleName();return this.richTextStyles[s]=r,"{"+s+"|"+e+"}"},n}();function zk(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,s=e.getData(),c=s.mapDimensionsAll("defaultedTooltip"),f=c.length,T=e.getRawValue(t),R=La(T),I=Zk(e,t),B,Y,q,ie;if(f>1||R&&!f){var ge=YO(T,e,t,c,I);B=ge.inlineValues,Y=ge.inlineValueTypes,q=ge.blocks,ie=ge.inlineValues[0]}else if(f){var Oe=s.getDimensionInfo(c[0]);ie=B=Cx(s,t,c[0]),Y=Oe.type}else ie=B=R?T[0]:T;var Ne=qi(e),He=Ne&&e.name||"",st=s.getName(t),pt=r?He:st;return em("section",{header:He,noHeader:r||!Ne,sortParam:ie,blocks:[em("nameValue",{markerType:"item",markerColor:I,name:pt,noName:!Tr(pt),value:B,valueType:Y})].concat(q||[])})}function YO(n,e,t,r,s){var c=e.getData(),f=ta(n,function(Y,q,ie){var ge=c.getDimensionInfo(ie);return Y=Y||ge&&ge.tooltip!==!1&&ge.displayName!=null},!1),T=[],R=[],I=[];r.length?At(r,function(Y){B(Cx(c,t,Y),Y)}):At(n,B);function B(Y,q){var ie=c.getDimensionInfo(q);!ie||ie.otherDims.tooltip===!1||(f?I.push(em("nameValue",{markerType:"subItem",markerColor:s,name:ie.displayName,value:Y,valueType:ie.type})):(T.push(Y),R.push(ie.type)))}return{inlineValues:T,inlineValueTypes:R,blocks:I}}var _0=Bi();function m2(n,e){return n.getName(e)||n.getId(e)}var n_="__universalTransitionEnabled",sS=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,s){this.seriesIndex=this.componentIndex,this.dataTask=ib({count:XO,reset:JO}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,s);var c=_0(this).sourceManager=new $T(this);c.prepareSource();var f=this.getInitialData(t,s);Wk(f,this),this.dataTask.context.data=f,_0(this).dataBeforeProcessed=f,lS(this),this._initSelectedMapFromData(f)},e.prototype.mergeDefaultAndTheme=function(t,r){var s=XE(this),c=s?JE(t):{},f=this.subType;Mp.hasClass(f)&&(f+="Series"),ba(t,r.getTheme().get(this.subType)),ba(t,this.getDefaultOption()),cd(t,"label",["show"]),this.fillDataTextStyle(t.data),s&&Ky(t,c,s)},e.prototype.mergeOption=function(t,r){t=ba(this.option,t,!0),this.fillDataTextStyle(t.data);var s=XE(this);s&&Ky(this.option,t,s);var c=_0(this).sourceManager;c.dirty(),c.prepareSource();var f=this.getInitialData(t,r);Wk(f,this),this.dataTask.dirty(),this.dataTask.context.data=f,_0(this).dataBeforeProcessed=f,lS(this),this._initSelectedMapFromData(f)},e.prototype.fillDataTextStyle=function(t){if(t&&!cs(t))for(var r=["show"],s=0;s<t.length;s++)t[s]&&t[s].label&&cd(t[s],"label",r)},e.prototype.getInitialData=function(t,r){},e.prototype.appendData=function(t){var r=this.getRawData();r.appendData(t.data)},e.prototype.getData=function(t){var r=nA(this);if(r){var s=r.context.data;return t==null?s:s.getLinkedData(t)}else return _0(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var r=nA(this);if(r){var s=r.context;s.outputData=t,r!==this.dataTask&&(s.data=t)}_0(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Za(t)},e.prototype.getSourceManager=function(){return _0(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return _0(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,r,s){return zk({series:this,dataIndex:t,multipleSeries:r})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Ct.node&&!(t&&t.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,s){var c=this.ecModel,f=eS.prototype.getColorFromPalette.call(this,t,r,s);return f||(f=c.getColorFromPalette(t,r,s)),f},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var s=this.option.selectedMap;if(!!s){var c=this.option.selectedMode,f=this.getData(r);if(c==="series"||s==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var T=0;T<t.length;T++){var R=t[T],I=m2(f,R);s[I]=!1,this._selectedDataIndicesMap[I]=-1}}},e.prototype.toggleSelect=function(t,r){for(var s=[],c=0;c<t.length;c++)s[0]=t[c],this.isSelected(t[c],r)?this.unselect(s,r):this.select(s,r)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,r=Ua(t),s=[],c=0;c<r.length;c++){var f=t[r[c]];f>=0&&s.push(f)}return s},e.prototype.isSelected=function(t,r){var s=this.option.selectedMap;if(!s)return!1;var c=this.getData(r);return(s==="all"||s[m2(c,t)])&&!c.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[n_])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var s,c,f=this.option,T=f.selectedMode,R=r.length;if(!(!T||!R)){if(T==="series")f.selectedMap="all";else if(T==="multiple"){to(f.selectedMap)||(f.selectedMap={});for(var I=f.selectedMap,B=0;B<R;B++){var Y=r[B],q=m2(t,Y);I[q]=!0,this._selectedDataIndicesMap[q]=t.getRawIndex(Y)}}else if(T==="single"||T===!0){var ie=r[R-1],q=m2(t,ie);f.selectedMap=(s={},s[q]=!0,s),this._selectedDataIndicesMap=(c={},c[q]=t.getRawIndex(ie),c)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var r=[];t.hasItemOption&&t.each(function(s){var c=t.getRawDataItem(s);c&&c.selected&&r.push(s)}),r.length>0&&this._innerSelect(t,r)}},e.registerClass=function(t){return Mp.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(Mp);Kn(sS,LT),Kn(sS,eS),le(sS,Mp);function lS(n){var e=n.name;qi(n)||(n.name=qT(n)||e)}function qT(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return At(t,function(s){var c=e.getDimensionInfo(s);c.displayName&&r.push(c.displayName)}),r.join(" ")}function XO(n){return n.model.getRawData().count()}function JO(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),eA}function eA(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Wk(n,e){At(ao(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,$i(tA,e))})}function tA(n,e){var t=nA(n);return t&&t.setOutputEnd((e||this).count()),e}function nA(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var s=r.agentStubMap;s&&(r=s.get(n.uid))}return r}}var oh=sS,rA=function(){function n(){this.group=new Qi,this.uid=Hy("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,s){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,s){},n.prototype.updateLayout=function(e,t,r,s){},n.prototype.updateVisual=function(e,t,r,s){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();P0(rA),Qr(rA);var Eh=rA;function lb(){var n=Bi();return function(e){var t=n(e),r=e.pipelineContext,s=!!t.large,c=!!t.progressiveRender,f=t.large=!!(r&&r.large),T=t.progressiveRender=!!(r&&r.progressiveRender);return(s!==f||c!==T)&&"reset"}}var Px=f_.CMD,Hk=[[],[],[]],aA=Math.sqrt,iA=Math.atan2;function Gk(n,e){if(!!e){var t=n.data,r=n.len(),s,c,f,T,R,I,B=Px.M,Y=Px.C,q=Px.L,ie=Px.R,ge=Px.A,Oe=Px.Q;for(f=0,T=0;f<r;){switch(s=t[f++],T=f,c=0,s){case B:c=1;break;case q:c=1;break;case Y:c=3;break;case Oe:c=2;break;case ge:var Ne=e[4],He=e[5],st=aA(e[0]*e[0]+e[1]*e[1]),pt=aA(e[2]*e[2]+e[3]*e[3]),Ut=iA(-e[1]/pt,e[0]/st);t[f]*=st,t[f++]+=Ne,t[f]*=pt,t[f++]+=He,t[f++]*=st,t[f++]*=pt,t[f++]+=Ut,t[f++]+=Ut,f+=2,T=f;break;case ie:I[0]=t[f++],I[1]=t[f++],Cu(I,I,e),t[T++]=I[0],t[T++]=I[1],I[0]+=t[f++],I[1]+=t[f++],Cu(I,I,e),t[T++]=I[0],t[T++]=I[1]}for(R=0;R<c;R++){var pn=Hk[R];pn[0]=t[f++],pn[1]=t[f++],Cu(pn,pn,e),t[T++]=pn[0],t[T++]=pn[1]}}n.increaseVersion()}}var g2=Math.sqrt,cS=Math.sin,uS=Math.cos,cb=Math.PI;function _2(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function oA(n,e){return(n[0]*e[0]+n[1]*e[1])/(_2(n)*_2(e))}function $k(n,e){return(n[0]*e[1]<n[1]*e[0]?-1:1)*Math.acos(oA(n,e))}function sA(n,e,t,r,s,c,f,T,R,I,B){var Y=R*(cb/180),q=uS(Y)*(n-t)/2+cS(Y)*(e-r)/2,ie=-1*cS(Y)*(n-t)/2+uS(Y)*(e-r)/2,ge=q*q/(f*f)+ie*ie/(T*T);ge>1&&(f*=g2(ge),T*=g2(ge));var Oe=(s===c?-1:1)*g2((f*f*(T*T)-f*f*(ie*ie)-T*T*(q*q))/(f*f*(ie*ie)+T*T*(q*q)))||0,Ne=Oe*f*ie/T,He=Oe*-T*q/f,st=(n+t)/2+uS(Y)*Ne-cS(Y)*He,pt=(e+r)/2+cS(Y)*Ne+uS(Y)*He,Ut=$k([1,0],[(q-Ne)/f,(ie-He)/T]),pn=[(q-Ne)/f,(ie-He)/T],yn=[(-1*q-Ne)/f,(-1*ie-He)/T],jn=$k(pn,yn);if(oA(pn,yn)<=-1&&(jn=cb),oA(pn,yn)>=1&&(jn=0),jn<0){var Cr=Math.round(jn/cb*1e6)/1e6;jn=cb*2+Cr%2*cb}B.addData(I,st,pt,f,T,Ut,jn,Y,c)}var QO=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Kk=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Yk(n){var e=new f_;if(!n)return e;var t=0,r=0,s=t,c=r,f,T=f_.CMD,R=n.match(QO);if(!R)return e;for(var I=0;I<R.length;I++){for(var B=R[I],Y=B.charAt(0),q=void 0,ie=B.match(Kk)||[],ge=ie.length,Oe=0;Oe<ge;Oe++)ie[Oe]=parseFloat(ie[Oe]);for(var Ne=0;Ne<ge;){var He=void 0,st=void 0,pt=void 0,Ut=void 0,pn=void 0,yn=void 0,jn=void 0,Cr=t,Nr=r,Rr=void 0,Er=void 0;switch(Y){case"l":t+=ie[Ne++],r+=ie[Ne++],q=T.L,e.addData(q,t,r);break;case"L":t=ie[Ne++],r=ie[Ne++],q=T.L,e.addData(q,t,r);break;case"m":t+=ie[Ne++],r+=ie[Ne++],q=T.M,e.addData(q,t,r),s=t,c=r,Y="l";break;case"M":t=ie[Ne++],r=ie[Ne++],q=T.M,e.addData(q,t,r),s=t,c=r,Y="L";break;case"h":t+=ie[Ne++],q=T.L,e.addData(q,t,r);break;case"H":t=ie[Ne++],q=T.L,e.addData(q,t,r);break;case"v":r+=ie[Ne++],q=T.L,e.addData(q,t,r);break;case"V":r=ie[Ne++],q=T.L,e.addData(q,t,r);break;case"C":q=T.C,e.addData(q,ie[Ne++],ie[Ne++],ie[Ne++],ie[Ne++],ie[Ne++],ie[Ne++]),t=ie[Ne-2],r=ie[Ne-1];break;case"c":q=T.C,e.addData(q,ie[Ne++]+t,ie[Ne++]+r,ie[Ne++]+t,ie[Ne++]+r,ie[Ne++]+t,ie[Ne++]+r),t+=ie[Ne-2],r+=ie[Ne-1];break;case"S":He=t,st=r,Rr=e.len(),Er=e.data,f===T.C&&(He+=t-Er[Rr-4],st+=r-Er[Rr-3]),q=T.C,Cr=ie[Ne++],Nr=ie[Ne++],t=ie[Ne++],r=ie[Ne++],e.addData(q,He,st,Cr,Nr,t,r);break;case"s":He=t,st=r,Rr=e.len(),Er=e.data,f===T.C&&(He+=t-Er[Rr-4],st+=r-Er[Rr-3]),q=T.C,Cr=t+ie[Ne++],Nr=r+ie[Ne++],t+=ie[Ne++],r+=ie[Ne++],e.addData(q,He,st,Cr,Nr,t,r);break;case"Q":Cr=ie[Ne++],Nr=ie[Ne++],t=ie[Ne++],r=ie[Ne++],q=T.Q,e.addData(q,Cr,Nr,t,r);break;case"q":Cr=ie[Ne++]+t,Nr=ie[Ne++]+r,t+=ie[Ne++],r+=ie[Ne++],q=T.Q,e.addData(q,Cr,Nr,t,r);break;case"T":He=t,st=r,Rr=e.len(),Er=e.data,f===T.Q&&(He+=t-Er[Rr-4],st+=r-Er[Rr-3]),t=ie[Ne++],r=ie[Ne++],q=T.Q,e.addData(q,He,st,t,r);break;case"t":He=t,st=r,Rr=e.len(),Er=e.data,f===T.Q&&(He+=t-Er[Rr-4],st+=r-Er[Rr-3]),t+=ie[Ne++],r+=ie[Ne++],q=T.Q,e.addData(q,He,st,t,r);break;case"A":pt=ie[Ne++],Ut=ie[Ne++],pn=ie[Ne++],yn=ie[Ne++],jn=ie[Ne++],Cr=t,Nr=r,t=ie[Ne++],r=ie[Ne++],q=T.A,sA(Cr,Nr,t,r,yn,jn,pt,Ut,pn,q,e);break;case"a":pt=ie[Ne++],Ut=ie[Ne++],pn=ie[Ne++],yn=ie[Ne++],jn=ie[Ne++],Cr=t,Nr=r,t+=ie[Ne++],r+=ie[Ne++],q=T.A,sA(Cr,Nr,t,r,yn,jn,pt,Ut,pn,q,e);break}}(Y==="z"||Y==="Z")&&(q=T.Z,e.addData(q),t=s,r=c),f=q}return e.toStatic(),e}var fS=function(n){ms(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(Od);function y2(n){return n.setData!=null}function b2(n,e){var t=Yk(n),r=Ea({},e);return r.buildPath=function(s){if(y2(s)){s.setData(t.data);var c=s.getContext();c&&s.rebuildPath(c,1)}else{var c=s;t.rebuildPath(c,1)}},r.applyTransform=function(s){Gk(t,s),this.dirtyShape()},r}function lA(n,e){return new fS(b2(n,e))}function z0(n,e){var t=b2(n,e),r=function(s){ms(c,s);function c(f){var T=s.call(this,f)||this;return T.applyTransform=t.applyTransform,T.buildPath=t.buildPath,T}return c}(fS);return r}function Xk(n,e){for(var t=[],r=n.length,s=0;s<r;s++){var c=n[s];t.push(c.getUpdatedPathProxy(!0))}var f=new Od(e);return f.createPathProxy(),f.buildPath=function(T){if(y2(T)){T.appendPath(t);var R=T.getContext();R&&T.rebuildPath(R,1)}},f}function by(n,e){e=e||{};var t=new Od;return n.shape&&t.setShape(n.shape),t.setStyle(n.style),e.bakeTransform?Gk(t.path,n.getComputedTransform()):e.toLocal?t.setLocalTransform(n.getComputedTransform()):t.copyTransform(n),t.buildPath=n.buildPath,t.applyTransform=t.applyTransform,t.z=n.z,t.z2=n.z2,t.zlevel=n.zlevel,t}var qO=function(){function n(){this.cx=0,this.cy=0,this.r=0}return n}(),Jk=function(n){ms(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new qO},e.prototype.buildPath=function(t,r){t.moveTo(r.cx+r.r,r.cy),t.arc(r.cx,r.cy,r.r,0,Math.PI*2)},e}(Od);Jk.prototype.type="circle";var y0=Jk,ub=function(){function n(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return n}(),x2=function(n){ms(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ub},e.prototype.buildPath=function(t,r){var s=.5522848,c=r.cx,f=r.cy,T=r.rx,R=r.ry,I=T*s,B=R*s;t.moveTo(c-T,f),t.bezierCurveTo(c-T,f-B,c-I,f-R,c,f-R),t.bezierCurveTo(c+I,f-R,c+T,f-B,c+T,f),t.bezierCurveTo(c+T,f+B,c+I,f+R,c,f+R),t.bezierCurveTo(c-I,f+R,c-T,f+B,c-T,f),t.closePath()},e}(Od);x2.prototype.type="ellipse";var Rx=x2,Qk=Math.PI,cA=Qk*2,qy=Math.sin,fb=Math.cos,eI=Math.acos,bg=Math.atan2,E2=Math.abs,Ox=Math.sqrt,S2=Math.max,y_=Math.min,xg=1e-4;function tI(n,e,t,r,s,c,f,T){var R=t-n,I=r-e,B=f-s,Y=T-c,q=Y*R-B*I;if(!(q*q<xg))return q=(B*(e-c)-Y*(n-s))/q,[n+q*R,e+q*I]}function db(n,e,t,r,s,c,f){var T=n-t,R=e-r,I=(f?c:-c)/Ox(T*T+R*R),B=I*R,Y=-I*T,q=n+B,ie=e+Y,ge=t+B,Oe=r+Y,Ne=(q+ge)/2,He=(ie+Oe)/2,st=ge-q,pt=Oe-ie,Ut=st*st+pt*pt,pn=s-c,yn=q*Oe-ge*ie,jn=(pt<0?-1:1)*Ox(S2(0,pn*pn*Ut-yn*yn)),Cr=(yn*pt-st*jn)/Ut,Nr=(-yn*st-pt*jn)/Ut,Rr=(yn*pt+st*jn)/Ut,Er=(-yn*st+pt*jn)/Ut,ma=Cr-Ne,wa=Nr-He,Ga=Rr-Ne,Ei=Er-He;return ma*ma+wa*wa>Ga*Ga+Ei*Ei&&(Cr=Rr,Nr=Er),{cx:Cr,cy:Nr,x0:-B,y0:-Y,x1:Cr*(s/pn-1),y1:Nr*(s/pn-1)}}function qk(n){var e;if(La(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function eP(n,e){var t,r=S2(e.r,0),s=S2(e.r0||0,0),c=r>0,f=s>0;if(!(!c&&!f)){if(c||(r=s,s=0),s>r){var T=r;r=s,s=T}var R=e.startAngle,I=e.endAngle;if(!(isNaN(R)||isNaN(I))){var B=e.cx,Y=e.cy,q=!!e.clockwise,ie=E2(I-R),ge=ie>cA&&ie%cA;if(ge>xg&&(ie=ge),!(r>xg))n.moveTo(B,Y);else if(ie>cA-xg)n.moveTo(B+r*fb(R),Y+r*qy(R)),n.arc(B,Y,r,R,I,!q),s>xg&&(n.moveTo(B+s*fb(I),Y+s*qy(I)),n.arc(B,Y,s,I,R,q));else{var Oe=void 0,Ne=void 0,He=void 0,st=void 0,pt=void 0,Ut=void 0,pn=void 0,yn=void 0,jn=void 0,Cr=void 0,Nr=void 0,Rr=void 0,Er=void 0,ma=void 0,wa=void 0,Ga=void 0,Ei=r*fb(R),Vi=r*qy(R),ns=s*fb(I),zo=s*qy(I),xs=ie>xg;if(xs){var pl=e.cornerRadius;pl&&(t=qk(pl),Oe=t[0],Ne=t[1],He=t[2],st=t[3]);var Rl=E2(r-s)/2;if(pt=y_(Rl,He),Ut=y_(Rl,st),pn=y_(Rl,Oe),yn=y_(Rl,Ne),Nr=jn=S2(pt,Ut),Rr=Cr=S2(pn,yn),(jn>xg||Cr>xg)&&(Er=r*fb(I),ma=r*qy(I),wa=s*fb(R),Ga=s*qy(R),ie<Qk)){var zl=tI(Ei,Vi,wa,Ga,Er,ma,ns,zo);if(zl){var Yc=Ei-zl[0],kc=Vi-zl[1],tf=Er-zl[0],wf=ma-zl[1],su=1/qy(eI((Yc*tf+kc*wf)/(Ox(Yc*Yc+kc*kc)*Ox(tf*tf+wf*wf)))/2),ic=Ox(zl[0]*zl[0]+zl[1]*zl[1]);Nr=y_(jn,(r-ic)/(su+1)),Rr=y_(Cr,(s-ic)/(su-1))}}}if(!xs)n.moveTo(B+Ei,Y+Vi);else if(Nr>xg){var Uc=y_(He,Nr),bu=y_(st,Nr),tc=db(wa,Ga,Ei,Vi,r,Uc,q),nf=db(Er,ma,ns,zo,r,bu,q);n.moveTo(B+tc.cx+tc.x0,Y+tc.cy+tc.y0),Nr<jn&&Uc===bu?n.arc(B+tc.cx,Y+tc.cy,Nr,bg(tc.y0,tc.x0),bg(nf.y0,nf.x0),!q):(Uc>0&&n.arc(B+tc.cx,Y+tc.cy,Uc,bg(tc.y0,tc.x0),bg(tc.y1,tc.x1),!q),n.arc(B,Y,r,bg(tc.cy+tc.y1,tc.cx+tc.x1),bg(nf.cy+nf.y1,nf.cx+nf.x1),!q),bu>0&&n.arc(B+nf.cx,Y+nf.cy,bu,bg(nf.y1,nf.x1),bg(nf.y0,nf.x0),!q))}else n.moveTo(B+Ei,Y+Vi),n.arc(B,Y,r,R,I,!q);if(!(s>xg)||!xs)n.lineTo(B+ns,Y+zo);else if(Rr>xg){var Uc=y_(Oe,Rr),bu=y_(Ne,Rr),tc=db(ns,zo,Er,ma,s,-bu,q),nf=db(Ei,Vi,wa,Ga,s,-Uc,q);n.lineTo(B+tc.cx+tc.x0,Y+tc.cy+tc.y0),Rr<Cr&&Uc===bu?n.arc(B+tc.cx,Y+tc.cy,Rr,bg(tc.y0,tc.x0),bg(nf.y0,nf.x0),!q):(bu>0&&n.arc(B+tc.cx,Y+tc.cy,bu,bg(tc.y0,tc.x0),bg(tc.y1,tc.x1),!q),n.arc(B,Y,s,bg(tc.cy+tc.y1,tc.cx+tc.x1),bg(nf.cy+nf.y1,nf.cx+nf.x1),q),Uc>0&&n.arc(B+nf.cx,Y+nf.cy,Uc,bg(nf.y1,nf.x1),bg(nf.y0,nf.x0),!q))}else n.lineTo(B+ns,Y+zo),n.arc(B,Y,s,I,R,q)}n.closePath()}}}var nI=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),tP=function(n){ms(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new nI},e.prototype.buildPath=function(t,r){eP(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Od);tP.prototype.type="sector";var eg=tP,nP=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),rI=function(n){ms(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new nP},e.prototype.buildPath=function(t,r){var s=r.cx,c=r.cy,f=Math.PI*2;t.moveTo(s+r.r,c),t.arc(s,c,r.r,0,f,!1),t.moveTo(s+r.r0,c),t.arc(s,c,r.r0,0,f,!0)},e}(Od);rI.prototype.type="ring";var W0=rI;function aI(n,e,t,r){var s=[],c=[],f=[],T=[],R,I,B,Y;if(r){B=[Infinity,Infinity],Y=[-Infinity,-Infinity];for(var q=0,ie=n.length;q<ie;q++)rf(B,B,n[q]),Bu(Y,Y,n[q]);rf(B,B,r[0]),Bu(Y,Y,r[1])}for(var q=0,ie=n.length;q<ie;q++){var ge=n[q];if(t)R=n[q?q-1:ie-1],I=n[(q+1)%ie];else if(q===0||q===ie-1){s.push(oc(n[q]));continue}else R=n[q-1],I=n[q+1];Zc(c,I,R),jc(c,c,e);var Oe=hu(ge,R),Ne=hu(ge,I),He=Oe+Ne;He!==0&&(Oe/=He,Ne/=He),jc(f,c,-Oe),jc(T,c,Ne);var st=yf([],ge,f),pt=yf([],ge,T);r&&(Bu(st,st,B),rf(st,st,Y),Bu(pt,pt,B),rf(pt,pt,Y)),s.push(st),s.push(pt)}return t&&s.push(s.shift()),s}function uA(n,e,t){var r=e.smooth,s=e.points;if(s&&s.length>=2){if(r){var c=aI(s,r,t,e.smoothConstraint);n.moveTo(s[0][0],s[0][1]);for(var f=s.length,T=0;T<(t?f:f-1);T++){var R=c[T*2],I=c[T*2+1],B=s[(T+1)%f];n.bezierCurveTo(R[0],R[1],I[0],I[1],B[0],B[1])}}else{n.moveTo(s[0][0],s[0][1]);for(var T=1,Y=s.length;T<Y;T++)n.lineTo(s[T][0],s[T][1])}t&&n.closePath()}}var rP=function(){function n(){this.points=null,this.smooth=0,this.smoothConstraint=null}return n}(),Vf=function(n){ms(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new rP},e.prototype.buildPath=function(t,r){uA(t,r,!0)},e}(Od);Vf.prototype.type="polygon";var tg=Vf,iI=function(){function n(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return n}(),fA=function(n){ms(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new iI},e.prototype.buildPath=function(t,r){uA(t,r,!1)},e}(Od);fA.prototype.type="polyline";var ng=fA,aP={},iP=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return n}(),dA=function(n){ms(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new iP},e.prototype.buildPath=function(t,r){var s,c,f,T;if(this.subPixelOptimize){var R=tx(aP,r,this.style);s=R.x1,c=R.y1,f=R.x2,T=R.y2}else s=r.x1,c=r.y1,f=r.x2,T=r.y2;var I=r.percent;I!==0&&(t.moveTo(s,c),I<1&&(f=s*(1-I)+f*I,T=c*(1-I)+T*I),t.lineTo(f,T))},e.prototype.pointAt=function(t){var r=this.shape;return[r.x1*(1-t)+r.x2*t,r.y1*(1-t)+r.y2*t]},e}(Od);dA.prototype.type="line";var jh=dA,Eg=[],pA=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return n}();function dS(n,e,t){var r=n.cpx2,s=n.cpy2;return r!=null||s!=null?[(t?Jc:Gc)(n.x1,n.cpx1,n.cpx2,n.x2,e),(t?Jc:Gc)(n.y1,n.cpy1,n.cpy2,n.y2,e)]:[(t?sa:Lr)(n.x1,n.cpx1,n.x2,e),(t?sa:Lr)(n.y1,n.cpy1,n.y2,e)]}var oP=function(n){ms(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new pA},e.prototype.buildPath=function(t,r){var s=r.x1,c=r.y1,f=r.x2,T=r.y2,R=r.cpx1,I=r.cpy1,B=r.cpx2,Y=r.cpy2,q=r.percent;q!==0&&(t.moveTo(s,c),B==null||Y==null?(q<1&&(Ja(s,R,f,q,Eg),R=Eg[1],f=Eg[2],Ja(c,I,T,q,Eg),I=Eg[1],T=Eg[2]),t.quadraticCurveTo(R,I,f,T)):(q<1&&(dn(s,R,B,f,q,Eg),R=Eg[1],B=Eg[2],f=Eg[3],dn(c,I,Y,T,q,Eg),I=Eg[1],Y=Eg[2],T=Eg[3]),t.bezierCurveTo(R,I,B,Y,f,T)))},e.prototype.pointAt=function(t){return dS(this.shape,t,!1)},e.prototype.tangentAt=function(t){var r=dS(this.shape,t,!0);return lu(r,r)},e}(Od);oP.prototype.type="bezier-curve";var C2=oP,oI=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),vA=function(n){ms(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new oI},e.prototype.buildPath=function(t,r){var s=r.cx,c=r.cy,f=Math.max(r.r,0),T=r.startAngle,R=r.endAngle,I=r.clockwise,B=Math.cos(T),Y=Math.sin(T);t.moveTo(B*f+s,Y*f+c),t.arc(s,c,f,T,R,!I)},e}(Od);vA.prototype.type="arc";var Ix=vA,rN=function(n){ms(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,r=this.shapeChanged(),s=0;s<t.length;s++)r=r||t[s].shapeChanged();r&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],r=this.getGlobalScale(),s=0;s<t.length;s++)t[s].path||t[s].createPathProxy(),t[s].path.setScale(r[0],r[1],t[s].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,r){for(var s=r.paths||[],c=0;c<s.length;c++)s[c].buildPath(t,s[c].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],r=0;r<t.length;r++)t[r].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Od.prototype.getBoundingRect.call(this)},e}(Od),hA=rN,sI=function(){function n(e){this.colorStops=e||[]}return n.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},n}(),sP=sI,pS=function(n){ms(e,n);function e(t,r,s,c,f,T){var R=n.call(this,f)||this;return R.x=t==null?0:t,R.y=r==null?0:r,R.x2=s==null?1:s,R.y2=c==null?0:c,R.type="linear",R.global=T||!1,R}return e}(sP),pb=pS,lI=function(n){ms(e,n);function e(t,r,s,c,f){var T=n.call(this,c)||this;return T.x=t==null?.5:t,T.y=r==null?.5:r,T.r=s==null?.5:s,T.type="radial",T.global=f||!1,T}return e}(sP),lP=lI,b_=[0,0],xy=[0,0],w2=new $c,vS=new $c,mA=function(){function n(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new $c;for(var r=0;r<2;r++)this._axes[r]=new $c;e&&this.fromBoundingRect(e,t)}return n.prototype.fromBoundingRect=function(e,t){var r=this._corners,s=this._axes,c=e.x,f=e.y,T=c+e.width,R=f+e.height;if(r[0].set(c,f),r[1].set(T,f),r[2].set(T,R),r[3].set(c,R),t)for(var I=0;I<4;I++)r[I].transform(t);$c.sub(s[0],r[1],r[0]),$c.sub(s[1],r[3],r[0]),s[0].normalize(),s[1].normalize();for(var I=0;I<2;I++)this._origin[I]=s[I].dot(r[0])},n.prototype.intersect=function(e,t){var r=!0,s=!t;return w2.set(Infinity,Infinity),vS.set(0,0),!this._intersectCheckOneSide(this,e,w2,vS,s,1)&&(r=!1,s)||!this._intersectCheckOneSide(e,this,w2,vS,s,-1)&&(r=!1,s)||s||$c.copy(t,r?w2:vS),r},n.prototype._intersectCheckOneSide=function(e,t,r,s,c,f){for(var T=!0,R=0;R<2;R++){var I=this._axes[R];if(this._getProjMinMaxOnAxis(R,e._corners,b_),this._getProjMinMaxOnAxis(R,t._corners,xy),b_[1]<xy[0]||b_[0]>xy[1]){if(T=!1,c)return T;var B=Math.abs(xy[0]-b_[1]),Y=Math.abs(b_[0]-xy[1]);Math.min(B,Y)>s.len()&&(B<Y?$c.scale(s,I,-B*f):$c.scale(s,I,Y*f))}else if(r){var B=Math.abs(xy[0]-b_[1]),Y=Math.abs(b_[0]-xy[1]);Math.min(B,Y)<r.len()&&(B<Y?$c.scale(r,I,B*f):$c.scale(r,I,-Y*f))}}return T},n.prototype._getProjMinMaxOnAxis=function(e,t,r){for(var s=this._axes[e],c=this._origin,f=t[0].dot(s)+c[e],T=f,R=f,I=1;I<t.length;I++){var B=t[I].dot(s)+c[e];T=Math.min(B,T),R=Math.max(B,R)}r[0]=T,r[1]=R},n}(),T2=mA,A2=[],cP=function(n){ms(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,r){t.call(r,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,r){r?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,r){r=r||!1;for(var s=0;s<t.length;s++)this.addDisplayable(t[s],r)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var r=this._cursor;r<this._displayables.length;r++)t&&t(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)t&&t(this._temporaryDisplayables[r])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var r=this._displayables[t];r.parent=this,r.update(),r.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var r=this._temporaryDisplayables[t];r.parent=this,r.update(),r.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new ra(Infinity,Infinity,-Infinity,-Infinity),r=0;r<this._displayables.length;r++){var s=this._displayables[r],c=s.getBoundingRect().clone();s.needLocalTransform()&&c.applyTransform(s.getLocalTransform(A2)),t.union(c)}this._rect=t}return this._rect},e.prototype.contain=function(t,r){var s=this.transformCoordToLocal(t,r),c=this.getBoundingRect();if(c.contain(s[0],s[1]))for(var f=0;f<this._displayables.length;f++){var T=this._displayables[f];if(T.contain(t,r))return!0}return!1},e}(Qm),Dx=cP,hS=Math.max,M2=Math.min,mS={};function gS(n){return Od.extend(n)}var Ey=z0;function cI(n,e){return Ey(n,e)}function b0(n,e){mS[n]=e}function k2(n){if(mS.hasOwnProperty(n))return mS[n]}function _S(n,e,t,r){var s=lA(n,e);return t&&(r==="center"&&(t=uP(t,s.getBoundingRect())),gA(s,t)),s}function yS(n,e,t){var r=new wp({style:{image:n,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(s){if(t==="center"){var c={width:s.width,height:s.height};r.setStyle(uP(e,c))}}});return r}function uP(n,e){var t=e.width/e.height,r=n.height*t,s;r<=n.width?s=n.height:(r=n.width,s=r/t);var c=n.x+n.width/2,f=n.y+n.height/2;return{x:c-r/2,y:f-s/2,width:r,height:s}}var Gg=Xk;function gA(n,e){if(!!n.applyTransform){var t=n.getBoundingRect(),r=t.calculateTransform(e);n.applyTransform(r)}}function Nx(n,e){return tx(n,n,{lineWidth:e}),n}function uI(n){return Qw(n.shape,n.shape,n.style),n}var P2=l0;function vb(n,e){for(var t=Ff([]);n&&n!==e;)xf(t,n.getLocalTransform(),t),n=n.parent;return t}function zd(n,e,t){return e&&!Pn(e)&&(e=Bp.getLocalTransform(e)),t&&(e=Gd([],e)),Cu([],n,e)}function Yu(n,e,t){var r=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),s=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),c=[n==="left"?-r:n==="right"?r:0,n==="top"?-s:n==="bottom"?s:0];return c=zd(c,e,t),Math.abs(c[0])>Math.abs(c[1])?c[0]>0?"right":"left":c[1]>0?"bottom":"top"}function fP(n){return!n.isGroup}function H0(n){return n.shape!=null}function hb(n,e,t){if(!n||!e)return;function r(f){var T={};return f.traverse(function(R){fP(R)&&R.anid&&(T[R.anid]=R)}),T}function s(f){var T={x:f.x,y:f.y,rotation:f.rotation};return H0(f)&&(T.shape=Ea({},f.shape)),T}var c=r(n);e.traverse(function(f){if(fP(f)&&f.anid){var T=c[f.anid];if(T){var R=s(f);f.attr(s(T)),vp(f,R,t,nu(f).dataIndex)}}})}function R2(n,e){return ar(n,function(t){var r=t[0];r=hS(r,e.x),r=M2(r,e.x+e.width);var s=t[1];return s=hS(s,e.y),s=M2(s,e.y+e.height),[r,s]})}function _m(n,e){var t=hS(n.x,e.x),r=M2(n.x+n.width,e.x+e.width),s=hS(n.y,e.y),c=M2(n.y+n.height,e.y+e.height);if(r>=t&&c>=s)return{x:t,y:s,width:r-t,height:c-s}}function tm(n,e,t){var r=Ea({rectHover:!0},e),s=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(s.image=n.slice(8),Pi(s,t),new wp(r)):_S(n.replace("path://",""),r,t,"center")}function e1(n,e,t,r,s){for(var c=0,f=s[s.length-1];c<s.length;c++){var T=s[c];if(O2(n,e,t,r,T[0],T[1],f[0],f[1]))return!0;f=T}}function O2(n,e,t,r,s,c,f,T){var R=t-n,I=r-e,B=f-s,Y=T-c,q=I2(B,Y,R,I);if(dP(q))return!1;var ie=n-s,ge=e-c,Oe=I2(ie,ge,R,I)/q;if(Oe<0||Oe>1)return!1;var Ne=I2(ie,ge,B,Y)/q;return!(Ne<0||Ne>1)}function I2(n,e,t,r){return n*r-t*e}function dP(n){return n<=1e-6&&n>=-1e-6}function Lx(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,s=ei(e)?{formatter:e}:e,c=t.mainType,f=t.componentIndex,T={componentType:c,name:r,$vars:["name"]};T[c+"Index"]=f;var R=n.formatterParamsExtra;R&&At(Ua(R),function(B){Xi(T,B)||(T[B]=R[B],T.$vars.push(B))});var I=nu(n.el);I.componentMainType=c,I.componentIndex=f,I.tooltipConfig={name:r,option:Pi({content:r,formatterParams:T},s)}}function rg(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function ag(n,e){if(n)if(La(n))for(var t=0;t<n.length;t++)rg(n[t],e);else rg(n,e)}b0("circle",y0),b0("ellipse",Rx),b0("sector",eg),b0("ring",W0),b0("polygon",tg),b0("polyline",ng),b0("rect",jd),b0("line",jh),b0("bezierCurve",C2),b0("arc",Ix);var _A=Bi(),pP=lb(),bS=function(){function n(){this.group=new Qi,this.uid=Hy("viewChart"),this.renderTask=ib({plan:L2,reset:fI}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,s){},n.prototype.highlight=function(e,t,r,s){var c=e.getData(s&&s.dataType);!c||N2(c,s,"emphasis")},n.prototype.downplay=function(e,t,r,s){var c=e.getData(s&&s.dataType);!c||N2(c,s,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,s){this.render(e,t,r,s)},n.prototype.updateLayout=function(e,t,r,s){this.render(e,t,r,s)},n.prototype.updateVisual=function(e,t,r,s){this.render(e,t,r,s)},n.prototype.eachRendered=function(e){ag(this.group,e)},n.markUpdateMethod=function(e,t){_A(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function D2(n,e,t){n&&f0(n)&&(e==="emphasis"?qg:j0)(n,t)}function N2(n,e,t){var r=Va(n,e),s=e&&e.highlightKey!=null?zy(e.highlightKey):null;r!=null?At(Bf(r),function(c){D2(n.getItemGraphicEl(c),t,s)}):n.eachItemGraphicEl(function(c){D2(c,t,s)})}P0(bS,["dispose"]),Qr(bS);function L2(n){return pP(n.model)}function fI(n){var e=n.model,t=n.ecModel,r=n.api,s=n.payload,c=e.pipelineContext.progressiveRender,f=n.view,T=s&&_A(s).updateMethod,R=c?"incrementalPrepareRender":T&&f[T]?T:"render";return R!=="render"&&f[R](e,t,r,s),F2[R]}var F2={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},vv=bS,xS="\0__throttleOriginMethod",ae="\0__throttleRate",J="\0__throttleType";function xe(n,e,t){var r,s=0,c=0,f=null,T,R,I,B;e=e||0;function Y(){c=new Date().getTime(),f=null,n.apply(R,I||[])}var q=function(){for(var ie=[],ge=0;ge<arguments.length;ge++)ie[ge]=arguments[ge];r=new Date().getTime(),R=this,I=ie;var Oe=B||e,Ne=B||t;B=null,T=r-(Ne?s:c)-Oe,clearTimeout(f),Ne?f=setTimeout(Y,Oe):T>=0?Y():f=setTimeout(Y,-T),s=r};return q.clear=function(){f&&(clearTimeout(f),f=null)},q.debounceNextCall=function(ie){B=ie},q}function ye(n,e,t,r){var s=n[e];if(!!s){var c=s[xS]||s,f=s[J],T=s[ae];if(T!==t||f!==r){if(t==null||!r)return n[e]=c;s=n[e]=xe(c,t,r==="debounce"),s[xS]=c,s[J]=r,s[ae]=t}return s}}function Ze(n,e){var t=n[e];t&&t[xS]&&(t.clear&&t.clear(),n[e]=t[xS])}var xt=Bi(),Mt={itemStyle:Oa(Q1,!0),lineStyle:Oa(_x,!0)},Wt={lineStyle:"stroke",itemStyle:"fill"};function en(n,e){var t=n.visualStyleMapper||Mt[e];return t||(console.warn("Unknown style type '"+e+"'."),Mt.itemStyle)}function Tn(n,e){var t=n.visualDrawType||Wt[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var On={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",s=n.getModel(r),c=en(n,r),f=c(s),T=s.getShallow("decal");T&&(t.setVisual("decal",T),T.dirty=!0);var R=Tn(n,r),I=f[R],B=ja(I)?I:null,Y=f.fill==="auto"||f.stroke==="auto";if(!f[R]||B||Y){var q=n.getColorFromPalette(n.name,null,e.getSeriesCount());f[R]||(f[R]=q,t.setVisual("colorFromPalette",!0)),f.fill=f.fill==="auto"||ja(f.fill)?q:f.fill,f.stroke=f.stroke==="auto"||ja(f.stroke)?q:f.stroke}if(t.setVisual("style",f),t.setVisual("drawType",R),!e.isSeriesFiltered(n)&&B)return t.setVisual("colorFromPalette",!1),{dataEach:function(ie,ge){var Oe=n.getDataParams(ge),Ne=Ea({},f);Ne[R]=B(Oe),ie.setItemVisual(ge,"style",Ne)}}}},qn=new Lv,nr={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",s=en(n,r),c=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(f,T){var R=f.getRawDataItem(T);if(R&&R[r]){qn.option=R[r];var I=s(qn),B=f.ensureUniqueItemVisual(T,"style");Ea(B,I),qn.option.decal&&(f.setItemVisual(T,"decal",qn.option.decal),qn.option.decal.dirty=!0),c in I&&f.setItemVisual(T,"colorFromPalette",!1)}}:null}}}},hr={performRawSeries:!0,overallReset:function(n){var e=Za();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var s=t.type+"-"+r,c=e.get(s);c||(c={},e.set(s,c)),xt(t).scope=c}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),s={},c=t.getData(),f=xt(t).scope,T=t.visualStyleAccessPath||"itemStyle",R=Tn(t,T);c.each(function(I){var B=c.getRawIndex(I);s[B]=I}),r.each(function(I){var B=s[I],Y=c.getItemVisual(B,"colorFromPalette");if(Y){var q=c.ensureUniqueItemVisual(B,"style"),ie=r.getName(I)||I+"",ge=r.count();q[R]=t.getColorFromPalette(ie,f,ge)}})}})}},ur=Math.PI;function Mr(n,e){e=e||{},Pi(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Qi,r=new jd({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var s=new Tp({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),c=new jd({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(c);var f;return e.showSpinner&&(f=new Ix({shape:{startAngle:-ur/2,endAngle:-ur/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),f.animateShape(!0).when(1e3,{endAngle:ur*3/2}).start("circularInOut"),f.animateShape(!0).when(1e3,{startAngle:ur*3/2}).delay(300).start("circularInOut"),t.add(f)),t.resize=function(){var T=s.getBoundingRect().width,R=e.showSpinner?e.spinnerRadius:0,I=(n.getWidth()-R*2-(e.showSpinner&&T?10:0)-T)/2-(e.showSpinner&&T?0:5+T/2)+(e.showSpinner?0:T/2)+(T?0:R),B=n.getHeight()/2;e.showSpinner&&f.setShape({cx:I,cy:B}),c.setShape({x:I-R,y:B-R,width:R*2,height:R*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var wr=function(){function n(e,t,r,s){this._stageTaskMap=Za(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),s=this._visualHandlers=s.slice(),this._allHandlers=r.concat(s)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var s=r.overallTask;s&&s.dirty()})},n.prototype.getPerformArgs=function(e,t){if(!!e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),s=r.context,c=!t&&r.progressiveEnabled&&(!s||s.progressiveRender)&&e.__idxInPipeline>r.blockIndex,f=c?r.step:null,T=s&&s.modDataCount,R=T!=null?Math.ceil(T/f):null;return{step:f,modBy:R,modDataCount:T}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),s=e.getData(),c=s.count(),f=r.progressiveEnabled&&t.incrementalPrepareRender&&c>=r.threshold,T=e.get("large")&&c>=e.get("largeThreshold"),R=e.get("progressiveChunkMode")==="mod"?c:null;e.pipelineContext=r.context={progressiveRender:f,modDataCount:R,large:T}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=Za();e.eachSeries(function(s){var c=s.getProgressive(),f=s.uid;r.set(f,{id:f,head:null,tail:null,threshold:s.getProgressiveThreshold(),progressiveEnabled:c&&!(s.preventIncremental&&s.preventIncremental()),blockIndex:-1,step:Math.round(c||700),count:0}),t._pipe(s,s.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;At(this._allHandlers,function(s){var c=e.get(s.uid)||e.set(s.uid,{}),f="";Ln(!(s.reset&&s.overallReset),f),s.reset&&this._createSeriesStageTask(s,c,t,r),s.overallReset&&this._createOverallStageTask(s,c,t,r)},this)},n.prototype.prepareView=function(e,t,r,s){var c=e.renderTask,f=c.context;f.model=t,f.ecModel=r,f.api=s,c.__block=!e.incrementalPrepareRender,this._pipe(t,c)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,s){s=s||{};var c=!1,f=this;At(e,function(R,I){if(!(s.visualType&&s.visualType!==R.visualType)){var B=f._stageTaskMap.get(R.uid),Y=B.seriesTaskMap,q=B.overallTask;if(q){var ie,ge=q.agentStubMap;ge.each(function(Ne){T(s,Ne)&&(Ne.dirty(),ie=!0)}),ie&&q.dirty(),f.updatePayload(q,r);var Oe=f.getPerformArgs(q,s.block);ge.each(function(Ne){Ne.perform(Oe)}),q.perform(Oe)&&(c=!0)}else Y&&Y.each(function(Ne,He){T(s,Ne)&&Ne.dirty();var st=f.getPerformArgs(Ne,s.block);st.skip=!R.performRawSeries&&t.isSeriesFiltered(Ne.context.model),f.updatePayload(Ne,r),Ne.perform(st)&&(c=!0)})}});function T(R,I){return R.setDirty&&(!R.dirtyMap||R.dirtyMap.get(I.__pipeline.id))}this.unfinished=c||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,s){var c=this,f=t.seriesTaskMap,T=t.seriesTaskMap=Za(),R=e.seriesType,I=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(B):R?r.eachRawSeriesByType(R,B):I&&I(r,s).each(B);function B(Y){var q=Y.uid,ie=T.set(q,f&&f.get(q)||ib({plan:ai,reset:Ca,count:$a}));ie.context={model:Y,ecModel:r,api:s,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:c},c._pipe(Y,ie)}},n.prototype._createOverallStageTask=function(e,t,r,s){var c=this,f=t.overallTask=t.overallTask||ib({reset:ia});f.context={ecModel:r,api:s,overallReset:e.overallReset,scheduler:c};var T=f.agentStubMap,R=f.agentStubMap=Za(),I=e.seriesType,B=e.getTargetSeries,Y=!0,q=!1,ie="";Ln(!e.createOnAllSeries,ie),I?r.eachRawSeriesByType(I,ge):B?B(r,s).each(ge):(Y=!1,At(r.getSeries(),ge));function ge(Oe){var Ne=Oe.uid,He=R.set(Ne,T&&T.get(Ne)||(q=!0,ib({reset:ua,onDirty:Fa})));He.context={model:Oe,overallProgress:Y},He.agent=f,He.__block=Y,c._pipe(Oe,He)}q&&f.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,s=this._pipelineMap.get(r);!s.head&&(s.head=t),s.tail&&s.tail.pipe(t),s.tail=t,t.__idxInPipeline=s.count++,t.__pipeline=s},n.wrapStageHandler=function(e,t){return ja(e)&&(e={overallReset:e,seriesType:di(e)}),e.uid=Hy("stageHandler"),t&&(e.visualType=t),e},n}();function ia(n){n.overallReset(n.ecModel,n.api,n.payload)}function ua(n){return n.overallProgress&&ga}function ga(){this.agent.dirty(),this.getDownstream().dirty()}function Fa(){this.agent&&this.agent.dirty()}function ai(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function Ca(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=Bf(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?ar(e,function(t,r){return ci(r)}):ii}var ii=ci(0);function ci(n){return function(e,t){var r=t.data,s=t.resetDefines[n];if(s&&s.dataEach)for(var c=e.start;c<e.end;c++)s.dataEach(r,c);else s&&s.progress&&s.progress(e,r)}}function $a(n){return n.data.count()}function di(n){li=null;try{n(Wa,Ya)}catch(e){}return li}var Wa={},Ya={},li;ti(Wa,AT),ti(Ya,gk),Wa.eachSeriesByType=Wa.eachRawSeriesByType=function(n){li=n},Wa.eachComponent=function(n){n.mainType==="series"&&n.subType&&(li=n.subType)};function ti(n,e){for(var t in e.prototype)n[t]=Bo}var Ba=wr,Ni=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],ji={color:Ni,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Ni]},go="#B9B8CE",Wi="#100C2A",uo=function(){return{axisLine:{lineStyle:{color:go}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},wo=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Io={darkMode:!0,color:wo,backgroundColor:Wi,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:go}},textStyle:{color:go},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:go}},dataZoom:{borderColor:"#71708A",textStyle:{color:go},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:go}},timeline:{lineStyle:{color:go},label:{color:go},controlStyle:{color:go,borderColor:go}},calendar:{itemStyle:{color:Wi},dayLabel:{color:go},monthLabel:{color:go},yearLabel:{color:go}},timeAxis:uo(),logAxis:uo(),valueAxis:uo(),categoryAxis:uo(),line:{symbol:"circle"},graph:{color:wo},gauge:{title:{color:go},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:go},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Io.categoryAxis.splitLine.show=!1;var Vo=Io,bs=function(){function n(){}return n.prototype.normalizeQuery=function(e){var t={},r={},s={};if(ei(e)){var c=Zv(e);t.mainType=c.main||null,t.subType=c.sub||null}else{var f=["Index","Name","Id"],T={name:1,dataIndex:1,dataType:1};At(e,function(R,I){for(var B=!1,Y=0;Y<f.length;Y++){var q=f[Y],ie=I.lastIndexOf(q);if(ie>0&&ie===I.length-q.length){var ge=I.slice(0,ie);ge!=="data"&&(t.mainType=ge,t[q.toLowerCase()]=R,B=!0)}}T.hasOwnProperty(I)&&(r[I]=R,B=!0),B||(s[I]=R)})}return{cptQuery:t,dataQuery:r,otherQuery:s}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var s=r.targetEl,c=r.packedEvent,f=r.model,T=r.view;if(!f||!T)return!0;var R=t.cptQuery,I=t.dataQuery;return B(R,f,"mainType")&&B(R,f,"subType")&&B(R,f,"index","componentIndex")&&B(R,f,"name")&&B(R,f,"id")&&B(I,c,"name")&&B(I,c,"dataIndex")&&B(I,c,"dataType")&&(!T.filterForExposedEvent||T.filterForExposedEvent(e,t.otherQuery,s,c));function B(Y,q,ie,ge){return Y[ie]==null||q[ge||ie]===Y[ie]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),ts=["symbol","symbolSize","symbolRotate","symbolOffset"],Ws=ts.concat(["symbolKeepAspect"]),Al={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},s={},c=!1,f=0;f<ts.length;f++){var T=ts[f],R=n.get(T);ja(R)?(c=!0,s[T]=R):r[T]=R}if(r.symbol=r.symbol||n.defaultSymbol,t.setVisual(Ea({legendIcon:n.legendIcon||r.symbol,symbolKeepAspect:n.get("symbolKeepAspect")},r)),e.isSeriesFiltered(n))return;var I=Ua(s);function B(Y,q){for(var ie=n.getRawValue(q),ge=n.getDataParams(q),Oe=0;Oe<I.length;Oe++){var Ne=I[Oe];Y.setItemVisual(q,Ne,s[Ne](ie,ge))}}return{dataEach:c?B:null}}},Ql={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!n.hasSymbolVisual||e.isSeriesFiltered(n))return;var t=n.getData();function r(s,c){for(var f=s.getItemModel(c),T=0;T<Ws.length;T++){var R=Ws[T],I=f.getShallow(R,!0);I!=null&&s.setItemVisual(c,R,I)}}return{dataEach:t.hasItemOption?r:null}}};function zs(n,e,t){switch(t){case"color":var r=n.getItemVisual(e,"style");return r[n.getVisual("drawType")];case"opacity":return n.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(e,t);default:}}function _c(n,e){switch(e){case"color":var t=n.getVisual("style");return t[n.getVisual("drawType")];case"opacity":return n.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getVisual(e);default:}}function hc(n,e,t,r){switch(t){case"color":var s=n.ensureUniqueItemVisual(e,"style");s[n.getVisual("drawType")]=r,n.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":n.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":n.setItemVisual(e,t,r);break;default:}}function Hs(n,e){function t(r,s){var c=[];return r.eachComponent({mainType:"series",subType:n,query:s},function(f){c.push(f.seriesIndex)}),c}At([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(r){e(r[0],function(s,c,f){s=Ea({},s),f.dispatchAction(Ea(s,{type:r[1],seriesIndex:t(c,s)}))})})}function Ul(n,e,t,r,s){var c=n+e;t.isSilent(c)||r.eachComponent({mainType:"series",subType:"pie"},function(f){for(var T=f.seriesIndex,R=f.option.selectedMap,I=s.selected,B=0;B<I.length;B++)if(I[B].seriesIndex===T){var Y=f.getData(),q=Va(Y,s.fromActionPayload);t.trigger(c,{type:c,seriesId:f.id,name:La(q)?Y.getName(q[0]):Y.getName(q),selected:ei(R)?R:Ea({},R)})}})}function As(n,e,t){n.on("selectchanged",function(r){var s=t.getModel();r.isFromClick?(Ul("map","selectchanged",e,s,r),Ul("pie","selectchanged",e,s,r)):r.fromAction==="select"?(Ul("map","selected",e,s,r),Ul("pie","selected",e,s,r)):r.fromAction==="unselect"&&(Ul("map","unselected",e,s,r),Ul("pie","unselected",e,s,r))})}function Ks(n,e,t){for(var r;n&&!(e(n)&&(r=n,t));)n=n.__hostTarget||n.parent;return r}var Cc=Math.round(Math.random()*9),qc=typeof Object.defineProperty=="function",Of=function(){function n(){this._id="__ec_inner_"+Cc++}return n.prototype.get=function(e){return this._guard(e)[this._id]},n.prototype.set=function(e,t){var r=this._guard(e);return qc?Object.defineProperty(r,this._id,{value:t,enumerable:!1,configurable:!0}):r[this._id]=t,this},n.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},n.prototype.has=function(e){return!!this._guard(e)[this._id]},n.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},n}(),_f=Of,sd=Od.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var t=e.cx,r=e.cy,s=e.width/2,c=e.height/2;n.moveTo(t,r-c),n.lineTo(t+s,r+c),n.lineTo(t-s,r+c),n.closePath()}}),ud=Od.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var t=e.cx,r=e.cy,s=e.width/2,c=e.height/2;n.moveTo(t,r-c),n.lineTo(t+s,r),n.lineTo(t,r+c),n.lineTo(t-s,r),n.closePath()}}),Su=Od.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var t=e.x,r=e.y,s=e.width/5*3,c=Math.max(s,e.height),f=s/2,T=f*f/(c-f),R=r-c+f+T,I=Math.asin(T/f),B=Math.cos(I)*f,Y=Math.sin(I),q=Math.cos(I),ie=f*.6,ge=f*.7;n.moveTo(t-B,R+T),n.arc(t,R,f,Math.PI-I,Math.PI*2+I),n.bezierCurveTo(t+B-Y*ie,R+T+q*ie,t,r-ge,t,r),n.bezierCurveTo(t,r-ge,t-B+Y*ie,R+T+q*ie,t-B,R+T),n.closePath()}}),Uu=Od.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var t=e.height,r=e.width,s=e.x,c=e.y,f=r/3*2;n.moveTo(s,c),n.lineTo(s+f,c+t),n.lineTo(s,c+t/4*3),n.lineTo(s-f,c+t),n.lineTo(s,c),n.closePath()}}),mp={line:jh,rect:jd,roundRect:jd,square:jd,circle:y0,diamond:ud,pin:Su,arrow:Uu,triangle:sd},wv={line:function(n,e,t,r,s){s.x1=n,s.y1=e+r/2,s.x2=n+t,s.y2=e+r/2},rect:function(n,e,t,r,s){s.x=n,s.y=e,s.width=t,s.height=r},roundRect:function(n,e,t,r,s){s.x=n,s.y=e,s.width=t,s.height=r,s.r=Math.min(t,r)/4},square:function(n,e,t,r,s){var c=Math.min(t,r);s.x=n,s.y=e,s.width=c,s.height=c},circle:function(n,e,t,r,s){s.cx=n+t/2,s.cy=e+r/2,s.r=Math.min(t,r)/2},diamond:function(n,e,t,r,s){s.cx=n+t/2,s.cy=e+r/2,s.width=t,s.height=r},pin:function(n,e,t,r,s){s.x=n+t/2,s.y=e+r/2,s.width=t,s.height=r},arrow:function(n,e,t,r,s){s.x=n+t/2,s.y=e+r/2,s.width=t,s.height=r},triangle:function(n,e,t,r,s){s.cx=n+t/2,s.cy=e+r/2,s.width=t,s.height=r}},Au={};At(mp,function(n,e){Au[e]=new n});var qd=Od.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(n,e,t){var r=pg(n,e,t),s=this.shape;return s&&s.symbolType==="pin"&&e.position==="inside"&&(r.y=t.y+t.height*.4),r},buildPath:function(n,e,t){var r=e.symbolType;if(r!=="none"){var s=Au[r];s||(r="rect",s=Au[r]),wv[r](e.x,e.y,e.width,e.height,s.shape),s.buildPath(n,s.shape,t)}}});function Ad(n,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=n,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=n:t.fill=n,this.markRedraw()}}function ad(n,e,t,r,s,c,f){var T=n.indexOf("empty")===0;T&&(n=n.substr(5,1).toLowerCase()+n.substr(6));var R;return n.indexOf("image://")===0?R=yS(n.slice(8),new ra(e,t,r,s),f?"center":"cover"):n.indexOf("path://")===0?R=_S(n.slice(7),{},new ra(e,t,r,s),f?"center":"cover"):R=new qd({shape:{symbolType:n,x:e,y:t,width:r,height:s}}),R.__isEmptyBrush=T,R.setColor=Ad,c&&R.setColor(c),R}function fp(n){return La(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}function Tv(n,e){if(n!=null)return La(n)||(n=[n,n]),[It(n[0],e[0])||0,It(sn(n[1],n[0]),e[1])||0]}function hv(n){return isFinite(n)}function Bh(n,e,t){var r=e.x==null?0:e.x,s=e.x2==null?1:e.x2,c=e.y==null?0:e.y,f=e.y2==null?0:e.y2;e.global||(r=r*t.width+t.x,s=s*t.width+t.x,c=c*t.height+t.y,f=f*t.height+t.y),r=hv(r)?r:0,s=hv(s)?s:1,c=hv(c)?c:0,f=hv(f)?f:0;var T=n.createLinearGradient(r,c,s,f);return T}function Mh(n,e,t){var r=t.width,s=t.height,c=Math.min(r,s),f=e.x==null?.5:e.x,T=e.y==null?.5:e.y,R=e.r==null?.5:e.r;e.global||(f=f*r+t.x,T=T*s+t.y,R=R*c),f=hv(f)?f:.5,T=hv(T)?T:.5,R=R>=0&&hv(R)?R:.5;var I=n.createRadialGradient(f,T,0,f,T,R);return I}function xp(n,e,t){for(var r=e.type==="radial"?Mh(n,e,t):Bh(n,e,t),s=e.colorStops,c=0;c<s.length;c++)r.addColorStop(s[c].offset,s[c].color);return r}function Sh(n,e){if(n===e||!n&&!e)return!1;if(!n||!e||n.length!==e.length)return!0;for(var t=0;t<n.length;t++)if(n[t]!==e[t])return!0;return!1}function Qf(n){return parseInt(n,10)}function Nm(n,e,t){var r=["width","height"][e],s=["clientWidth","clientHeight"][e],c=["paddingLeft","paddingTop"][e],f=["paddingRight","paddingBottom"][e];if(t[r]!=null&&t[r]!=="auto")return parseFloat(t[r]);var T=document.defaultView.getComputedStyle(n);return(n[s]||Qf(T[r])||Qf(n.style[r]))-(Qf(T[c])||0)-(Qf(T[f])||0)|0}function av(n,e){return!n||n==="solid"||!(e>0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:yo(n)?[n]:La(n)?n:null}function yu(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&av(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var s=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;s&&s!==1&&(t=ar(t,function(c){return c/s}),r/=s)}return[t,r]}var kp=new f_(!0);function Md(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function kd(n){return typeof n=="string"&&n!=="none"}function mv(n){var e=n.fill;return e!=null&&e!=="none"}function Jp(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function iv(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function kh(n,e,t){var r=pc(e.image,e.__image,t);if(bd(r)){var s=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&s&&s.setTransform){var c=new DOMMatrix;c.translateSelf(e.x||0,e.y||0),c.rotateSelf(0,0,(e.rotation||0)*ol),c.scaleSelf(e.scaleX||1,e.scaleY||1),s.setTransform(c)}return s}}function ym(n,e,t,r){var s,c=Md(t),f=mv(t),T=t.strokePercent,R=T<1,I=!e.path;(!e.silent||R)&&I&&e.createPathProxy();var B=e.path||kp,Y=e.__dirty;if(!r){var q=t.fill,ie=t.stroke,ge=f&&!!q.colorStops,Oe=c&&!!ie.colorStops,Ne=f&&!!q.image,He=c&&!!ie.image,st=void 0,pt=void 0,Ut=void 0,pn=void 0,yn=void 0;(ge||Oe)&&(yn=e.getBoundingRect()),ge&&(st=Y?xp(n,q,yn):e.__canvasFillGradient,e.__canvasFillGradient=st),Oe&&(pt=Y?xp(n,ie,yn):e.__canvasStrokeGradient,e.__canvasStrokeGradient=pt),Ne&&(Ut=Y||!e.__canvasFillPattern?kh(n,q,e):e.__canvasFillPattern,e.__canvasFillPattern=Ut),He&&(pn=Y||!e.__canvasStrokePattern?kh(n,ie,e):e.__canvasStrokePattern,e.__canvasStrokePattern=Ut),ge?n.fillStyle=st:Ne&&(Ut?n.fillStyle=Ut:f=!1),Oe?n.strokeStyle=pt:He&&(pn?n.strokeStyle=pn:c=!1)}var jn=e.getGlobalScale();B.setScale(jn[0],jn[1],e.segmentIgnoreThreshold);var Cr,Nr;n.setLineDash&&t.lineDash&&(s=yu(e),Cr=s[0],Nr=s[1]);var Rr=!0;(I||Y&Fr)&&(B.setDPR(n.dpr),R?B.setContext(null):(B.setContext(n),Rr=!1),B.reset(),e.buildPath(B,e.shape,r),B.toStatic(),e.pathUpdated()),Rr&&B.rebuildPath(n,R?T:1),Cr&&(n.setLineDash(Cr),n.lineDashOffset=Nr),r||(t.strokeFirst?(c&&iv(n,t),f&&Jp(n,t)):(f&&Jp(n,t),c&&iv(n,t))),Cr&&n.setLineDash([])}function cm(n,e,t){var r=e.__image=pc(t.image,e.__image,e,e.onload);if(!(!r||!bd(r))){var s=t.x||0,c=t.y||0,f=e.getWidth(),T=e.getHeight(),R=r.width/r.height;if(f==null&&T!=null?f=T*R:T==null&&f!=null?T=f/R:f==null&&T==null&&(f=r.width,T=r.height),t.sWidth&&t.sHeight){var I=t.sx||0,B=t.sy||0;n.drawImage(r,I,B,t.sWidth,t.sHeight,s,c,f,T)}else if(t.sx&&t.sy){var I=t.sx,B=t.sy,Y=f-I,q=T-B;n.drawImage(r,I,B,Y,q,s,c,f,T)}else n.drawImage(r,s,c,f,T)}}function Ov(n,e,t){var r,s=t.text;if(s!=null&&(s+=""),s){n.font=t.font||Zt,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var c=void 0,f=void 0;n.setLineDash&&t.lineDash&&(r=yu(e),c=r[0],f=r[1]),c&&(n.setLineDash(c),n.lineDashOffset=f),t.strokeFirst?(Md(t)&&n.strokeText(s,t.x,t.y),mv(t)&&n.fillText(s,t.x,t.y)):(mv(t)&&n.fillText(s,t.x,t.y),Md(t)&&n.strokeText(s,t.x,t.y)),c&&n.setLineDash([])}}var rl=["shadowBlur","shadowOffsetX","shadowOffsetY"],sc=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function hf(n,e,t,r,s){var c=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){bm(n,s),c=!0;var f=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(f)?Ly.opacity:f}(r||e.blend!==t.blend)&&(c||(bm(n,s),c=!0),n.globalCompositeOperation=e.blend||Ly.blend);for(var T=0;T<rl.length;T++){var R=rl[T];(r||e[R]!==t[R])&&(c||(bm(n,s),c=!0),n[R]=n.dpr*(e[R]||0))}return(r||e.shadowColor!==t.shadowColor)&&(c||(bm(n,s),c=!0),n.shadowColor=e.shadowColor||Ly.shadowColor),c}function ld(n,e,t,r,s){var c=G0(e,s.inHover),f=r?null:t&&G0(t,s.inHover)||{};if(c===f)return!1;var T=hf(n,c,f,r,s);if((r||c.fill!==f.fill)&&(T||(bm(n,s),T=!0),kd(c.fill)&&(n.fillStyle=c.fill)),(r||c.stroke!==f.stroke)&&(T||(bm(n,s),T=!0),kd(c.stroke)&&(n.strokeStyle=c.stroke)),(r||c.opacity!==f.opacity)&&(T||(bm(n,s),T=!0),n.globalAlpha=c.opacity==null?1:c.opacity),e.hasStroke()){var R=c.lineWidth,I=R/(c.strokeNoScale&&e.getLineScale?e.getLineScale():1);n.lineWidth!==I&&(T||(bm(n,s),T=!0),n.lineWidth=I)}for(var B=0;B<sc.length;B++){var Y=sc[B],q=Y[0];(r||c[q]!==f[q])&&(T||(bm(n,s),T=!0),n[q]=c[q]||Y[1])}return T}function cp(n,e,t,r,s){return hf(n,G0(e,s.inHover),t&&G0(t,s.inHover),r,s)}function rp(n,e){var t=e.transform,r=n.dpr||1;t?n.setTransform(r*t[0],r*t[1],r*t[2],r*t[3],r*t[4],r*t[5]):n.setTransform(r,0,0,r,0,0)}function pd(n,e,t){for(var r=!1,s=0;s<n.length;s++){var c=n[s];r=r||c.isZeroArea(),rp(e,c),e.beginPath(),c.buildPath(e,c.shape),e.clip()}t.allClipped=r}function Wv(n,e){return n&&e?n[0]!==e[0]||n[1]!==e[1]||n[2]!==e[2]||n[3]!==e[3]||n[4]!==e[4]||n[5]!==e[5]:!(!n&&!e)}var Iv=1,V_=2,z_=3,Sg=4;function x0(n){var e=mv(n),t=Md(n);return!(n.lineDash||!(+e^+t)||e&&typeof n.fill!="string"||t&&typeof n.stroke!="string"||n.strokePercent<1||n.strokeOpacity<1||n.fillOpacity<1)}function bm(n,e){e.batchFill&&n.fill(),e.batchStroke&&n.stroke(),e.batchFill="",e.batchStroke=""}function G0(n,e){return e&&n.__hoverStyle||n.style}function W_(n,e){ep(n,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ep(n,e,t,r){var s=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~as,e.__isRendered=!1;return}var c=e.__clipPaths,f=t.prevElClipPaths,T=!1,R=!1;if((!f||Sh(c,f))&&(f&&f.length&&(bm(n,t),n.restore(),R=T=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),c&&c.length&&(bm(n,t),n.save(),pd(c,n,t),T=!0),t.prevElClipPaths=c),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var I=t.prevEl;I||(R=T=!0);var B=e instanceof Od&&e.autoBatch&&x0(e.style);T||Wv(s,I.transform)?(bm(n,t),rp(n,e)):B||bm(n,t);var Y=G0(e,t.inHover);e instanceof Od?(t.lastDrawType!==Iv&&(R=!0,t.lastDrawType=Iv),ld(n,e,I,R,t),(!B||!t.batchFill&&!t.batchStroke)&&n.beginPath(),ym(n,e,Y,B),B&&(t.batchFill=Y.fill||"",t.batchStroke=Y.stroke||"")):e instanceof oy?(t.lastDrawType!==z_&&(R=!0,t.lastDrawType=z_),ld(n,e,I,R,t),Ov(n,e,Y)):e instanceof wp?(t.lastDrawType!==V_&&(R=!0,t.lastDrawType=V_),cp(n,e,I,R,t),cm(n,e,Y)):e.getTemporalDisplayables&&(t.lastDrawType!==Sg&&(R=!0,t.lastDrawType=Sg),ap(n,e,t)),B&&r&&bm(n,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function ap(n,e,t){var r=e.getDisplayables(),s=e.getTemporalDisplayables();n.save();var c={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},f,T;for(f=e.getCursor(),T=r.length;f<T;f++){var R=r[f];R.beforeBrush&&R.beforeBrush(),R.innerBeforeBrush(),ep(n,R,c,f===T-1),R.innerAfterBrush(),R.afterBrush&&R.afterBrush(),c.prevEl=R}for(var I=0,B=s.length;I<B;I++){var R=s[I];R.beforeBrush&&R.beforeBrush(),R.innerBeforeBrush(),ep(n,R,c,I===B-1),R.innerAfterBrush(),R.afterBrush&&R.afterBrush(),c.prevEl=R}e.clearTemporalDisplayables(),e.notClear=!0,n.restore()}var um=new _f,x_=new Kl(100),vP=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function mb(n,e){if(n==="none")return null;var t=e.getDevicePixelRatio(),r=e.getZr(),s=r.painter.type==="svg";n.dirty&&um.delete(n);var c=um.get(n);if(c)return c;var f=Pi(n,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});f.backgroundColor==="none"&&(f.backgroundColor=null);var T={repeat:"repeat"};return R(T),T.rotation=f.rotation,T.scaleX=T.scaleY=s?1:1/t,um.set(n,T),n.dirty=!1,T;function R(I){for(var B=[t],Y=!0,q=0;q<vP.length;++q){var ie=f[vP[q]];if(ie!=null&&!La(ie)&&!ei(ie)&&!yo(ie)&&typeof ie!="boolean"){Y=!1;break}B.push(ie)}var ge;if(Y){ge=B.join(",")+(s?"-svg":"");var Oe=x_.get(ge);Oe&&(s?I.svgElement=Oe:I.image=Oe)}var Ne=mP(f.dashArrayX),He=gP(f.dashArrayY),st=hP(f.symbol),pt=Fx(Ne),Ut=j2(He),pn=!s&&Bn.createCanvas(),yn=s&&{tag:"g",attrs:{},key:"dcl",children:[]},jn=Nr(),Cr;pn&&(pn.width=jn.width*t,pn.height=jn.height*t,Cr=pn.getContext("2d")),Rr(),Y&&x_.put(ge,pn||yn),I.image=pn,I.svgElement=yn,I.svgWidth=jn.width,I.svgHeight=jn.height;function Nr(){for(var Er=1,ma=0,wa=pt.length;ma<wa;++ma)Er=Qu(Er,pt[ma]);for(var Ga=1,ma=0,wa=st.length;ma<wa;++ma)Ga=Qu(Ga,st[ma].length);Er*=Ga;var Ei=Ut*pt.length*st.length;if(!1)var Vi;return{width:Math.max(1,Math.min(Er,f.maxTileWidth)),height:Math.max(1,Math.min(Ei,f.maxTileHeight))}}function Rr(){Cr&&(Cr.clearRect(0,0,pn.width,pn.height),f.backgroundColor&&(Cr.fillStyle=f.backgroundColor,Cr.fillRect(0,0,pn.width,pn.height)));for(var Er=0,ma=0;ma<He.length;++ma)Er+=He[ma];if(Er<=0)return;for(var wa=-Ut,Ga=0,Ei=0,Vi=0;wa<jn.height;){if(Ga%2==0){for(var ns=Ei/2%st.length,zo=0,xs=0,pl=0;zo<jn.width*2;){for(var Rl=0,ma=0;ma<Ne[Vi].length;++ma)Rl+=Ne[Vi][ma];if(Rl<=0)break;if(xs%2==0){var zl=(1-f.symbolSize)*.5,Yc=zo+Ne[Vi][xs]*zl,kc=wa+He[Ga]*zl,tf=Ne[Vi][xs]*f.symbolSize,wf=He[Ga]*f.symbolSize,su=pl/2%st[ns].length;ic(Yc,kc,tf,wf,st[ns][su])}zo+=Ne[Vi][xs],++pl,++xs,xs===Ne[Vi].length&&(xs=0)}++Vi,Vi===Ne.length&&(Vi=0)}wa+=He[Ga],++Ei,++Ga,Ga===He.length&&(Ga=0)}function ic(Uc,bu,tc,nf,gd){var xd=s?1:t,lv=ad(gd,Uc*xd,bu*xd,tc*xd,nf*xd,f.color,f.symbolKeepAspect);if(s){var _p=r.painter.renderOneToVNode(lv);_p&&yn.children.push(_p)}else W_(Cr,lv)}}}}function hP(n){if(!n||n.length===0)return[["rect"]];if(ei(n))return[[n]];for(var e=!0,t=0;t<n.length;++t)if(!ei(n[t])){e=!1;break}if(e)return hP([n]);for(var r=[],t=0;t<n.length;++t)ei(n[t])?r.push([n[t]]):r.push(n[t]);return r}function mP(n){if(!n||n.length===0)return[[0,0]];if(yo(n)){var e=Math.ceil(n);return[[e,e]]}for(var t=!0,r=0;r<n.length;++r)if(!yo(n[r])){t=!1;break}if(t)return mP([n]);for(var s=[],r=0;r<n.length;++r)if(yo(n[r])){var e=Math.ceil(n[r]);s.push([e,e])}else{var e=ar(n[r],function(T){return Math.ceil(T)});e.length%2==1?s.push(e.concat(e)):s.push(e)}return s}function gP(n){if(!n||typeof n=="object"&&n.length===0)return[0,0];if(yo(n)){var e=Math.ceil(n);return[e,e]}var t=ar(n,function(r){return Math.ceil(r)});return n.length%2?t.concat(t):t}function Fx(n){return ar(n,function(e){return j2(e)})}function j2(n){for(var e=0,t=0;t<n.length;++t)e+=n[t];return n.length%2==1?e*2:e}function ES(n,e){n.eachRawSeries(function(t){if(!n.isSeriesFiltered(t)){var r=t.getData();r.hasItemVisual()&&r.each(function(f){var T=r.getItemVisual(f,"decal");if(T){var R=r.ensureUniqueItemVisual(f,"style");R.decal=mb(T,e)}});var s=r.getVisual("decal");if(s){var c=r.getVisual("style");c.decal=mb(s,e)}}})}var dI=new Nc,E_=dI,yA={};function B2(n,e){yA[n]=e}function SS(n){return yA[n]}var pI="5.4.3",a7={zrender:"5.4.4"},_P=1,U2=800,vI=900,bA=1e3,jx=2e3,gb=5e3,Sy=1e3,xA=1100,_b=2e3,Bx=3e3,Ux=4e3,S_=4500,CS=4600,Zx=5e3,yP=6e3,Z2=7e3,hI={PROCESSOR:{FILTER:bA,SERIES_FILTER:U2,STATISTIC:gb},VISUAL:{LAYOUT:Sy,PROGRESSIVE_LAYOUT:xA,GLOBAL:_b,CHART:Bx,POST_CHART_LAYOUT:CS,COMPONENT:Ux,BRUSH:Zx,CHART_ITEM:S_,ARIA:yP,DECAL:Z2}},Lm="__flagInMainProcess",$g="__pendingUpdate",V2="__needsUpdateStatus",t1=/^[a-zA-Z0-9_]+$/,z2="__connectUpdateStatus",bP=0,wS=1,W2=2;function EA(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){C_(this.id);return}return Vx(this,n,e)}}function n1(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Vx(this,n,e)}}function Vx(n,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Nc.prototype[e].apply(n,t)}var yb=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(Nc),r1=yb.prototype;r1.on=n1("on"),r1.off=n1("off");var $0,r_,H2,a1,G2,$2,SA,zx,TS,K2,Y2,X2,xP,Wx,Hx,J2,Cg,CA,bb=function(n){ze(e,n);function e(t,r,s){var c=n.call(this,new bs)||this;c._chartsViews=[],c._chartsMap={},c._componentsViews=[],c._componentsMap={},c._pendingActions=[],s=s||{},ei(r)&&(r=wA[r]),c._dom=t;var f="canvas",T="auto",R=!1;if(!1)var I,B;var Y=c._zr=ac(t,{renderer:s.renderer||f,devicePixelRatio:s.devicePixelRatio,width:s.width,height:s.height,ssr:s.ssr,useDirtyRect:sn(s.useDirtyRect,R),useCoarsePointer:sn(s.useCoarsePointer,T),pointerSize:s.pointerSize});c._ssr=s.ssr,c._throttledZrFlush=xe(Xa(Y.flush,Y),17),r=Kr(r),r&&BO(r,!0),c._theme=r,c._locale=Ve(s.locale||WC),c._coordSysMgr=new tS;var q=c._api=Hx(c);function ie(ge,Oe){return ge.__prio-Oe.__prio}return Fo(Gx,ie),Fo(E0,ie),c._scheduler=new Ba(c,q,E0,Gx),c._messageCenter=new yb,c._initEvents(),c.resize=Xa(c.resize,c),Y.animation.on("frame",c._onframe,c),K2(Y,c),Y2(Y,c),Pr(c),c}return e.prototype._onframe=function(){if(!this._disposed){CA(this);var t=this._scheduler;if(this[$g]){var r=this[$g].silent;this[Lm]=!0;try{$0(this),a1.update.call(this,null,this[$g].updateParams)}catch(R){throw this[Lm]=!1,this[$g]=null,R}this._zr.flush(),this[Lm]=!1,this[$g]=null,zx.call(this,r),TS.call(this,r)}else if(t.unfinished){var s=_P,c=this._model,f=this._api;t.unfinished=!1;do{var T=+new Date;t.performSeriesTasks(c),t.performDataProcessorTasks(c),$2(this,c),t.performVisualTasks(c),Wx(this,this._model,f,"remain",{}),s-=+new Date-T}while(s>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,s){if(!this[Lm]){if(this._disposed){C_(this.id);return}var c,f,T;if(to(r)&&(s=r.lazyUpdate,c=r.silent,f=r.replaceMerge,T=r.transition,r=r.notMerge),this[Lm]=!0,!this._model||r){var R=new _k(this._api),I=this._theme,B=this._model=new AT;B.scheduler=this._scheduler,B.ssr=this._ssr,B.init(null,null,null,I,this._locale,R)}this._model.setOption(t,{replaceMerge:f},Tg);var Y={seriesTransition:T,optionChanged:!0};if(s)this[$g]={silent:c,updateParams:Y},this[Lm]=!1,this.getZr().wakeUp();else{try{$0(this),a1.update.call(this,null,Y)}catch(q){throw this[$g]=null,this[Lm]=!1,q}this._ssr||this._zr.flush(),this[$g]=null,this[Lm]=!1,zx.call(this,c),TS.call(this,c)}}},e.prototype.setTheme=function(){BT("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ct.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(!!Ct.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return At(r,function(s){s.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){C_(this.id);return}t=t||{};var r=t.excludeComponents,s=this._model,c=[],f=this;At(r,function(R){s.eachComponent({mainType:R},function(I){var B=f._componentsMap[I.__viewId];B.group.ignore||(c.push(B),B.group.ignore=!0)})});var T=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return At(c,function(R){R.group.ignore=!1}),T},e.prototype.getConnectedDataURL=function(t){if(this._disposed){C_(this.id);return}var r=t.type==="svg",s=this.group,c=Math.min,f=Math.max,T=Infinity;if(MS[s]){var R=T,I=T,B=-T,Y=-T,q=[],ie=t&&t.pixelRatio||this.getDevicePixelRatio();At(ig,function(pt,Ut){if(pt.group===s){var pn=r?pt.getZr().painter.getSvgDom().innerHTML:pt.renderToCanvas(Kr(t)),yn=pt.getDom().getBoundingClientRect();R=c(yn.left,R),I=c(yn.top,I),B=f(yn.right,B),Y=f(yn.bottom,Y),q.push({dom:pn,left:yn.left,top:yn.top})}}),R*=ie,I*=ie,B*=ie,Y*=ie;var ge=B-R,Oe=Y-I,Ne=Bn.createCanvas(),He=ac(Ne,{renderer:r?"svg":"canvas"});if(He.resize({width:ge,height:Oe}),r){var st="";return At(q,function(pt){var Ut=pt.left-R,pn=pt.top-I;st+='<g transform="translate('+Ut+","+pn+')">'+pt.dom+"</g>"}),He.painter.getSvgRoot().innerHTML=st,t.connectedBackgroundColor&&He.painter.setBackgroundColor(t.connectedBackgroundColor),He.refreshImmediately(),He.painter.toDataURL()}else return t.connectedBackgroundColor&&He.add(new jd({shape:{x:0,y:0,width:ge,height:Oe},style:{fill:t.connectedBackgroundColor}})),At(q,function(pt){var Ut=new wp({style:{x:pt.left*ie-R,y:pt.top*ie-I,image:pt.dom}});He.add(Ut)}),He.refreshImmediately(),Ne.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return G2(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return G2(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){C_(this.id);return}var s=this._model,c,f=Vs(s,t);return At(f,function(T,R){R.indexOf("Models")>=0&&At(T,function(I){var B=I.coordinateSystem;if(B&&B.containPoint)c=c||!!B.containPoint(r);else if(R==="seriesModels"){var Y=this._chartsMap[I.__viewId];Y&&Y.containPoint&&(c=c||Y.containPoint(r,I))}},this)},this),!!c},e.prototype.getVisual=function(t,r){var s=this._model,c=Vs(s,t,{defaultMainType:"series"}),f=c.seriesModel,T=f.getData(),R=c.hasOwnProperty("dataIndexInside")?c.dataIndexInside:c.hasOwnProperty("dataIndex")?T.indexOfRawIndex(c.dataIndex):null;return R!=null?zs(T,R,r):_c(T,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;At(EP,function(r){var s=function(c){var f=t.getModel(),T=c.target,R,I=r==="globalout";if(I?R={}:T&&Ks(T,function(ge){var Oe=nu(ge);if(Oe&&Oe.dataIndex!=null){var Ne=Oe.dataModel||f.getSeriesByIndex(Oe.seriesIndex);return R=Ne&&Ne.getDataParams(Oe.dataIndex,Oe.dataType,T)||{},!0}else if(Oe.eventData)return R=Ea({},Oe.eventData),!0},!0),R){var B=R.componentType,Y=R.componentIndex;(B==="markLine"||B==="markPoint"||B==="markArea")&&(B="series",Y=R.seriesIndex);var q=B&&Y!=null&&f.getComponent(B,Y),ie=q&&t[q.mainType==="series"?"_chartsMap":"_componentsMap"][q.__viewId];R.event=c,R.type=r,t._$eventProcessor.eventInfo={targetEl:T,packedEvent:R,model:q,view:ie},t.trigger(r,R)}};s.zrEventfulCallAtLast=!0,t._zr.on(r,s,t)}),At(i1,function(r,s){t._messageCenter.on(s,function(c){this.trigger(s,c)},t)}),At(["selectchanged"],function(r){t._messageCenter.on(r,function(s){this.trigger(r,s)},t)}),As(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){C_(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){C_(this.id);return}this._disposed=!0;var t=this.getDom();t&&Xf(this.getDom(),PS,"");var r=this,s=r._api,c=r._model;At(r._componentsViews,function(f){f.dispose(c,s)}),At(r._chartsViews,function(f){f.dispose(c,s)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete ig[r.id]},e.prototype.resize=function(t){if(!this[Lm]){if(this._disposed){C_(this.id);return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var s=r.resetOption("media"),c=t&&t.silent;this[$g]&&(c==null&&(c=this[$g].silent),s=!0,this[$g]=null),this[Lm]=!0;try{s&&$0(this),a1.update.call(this,{type:"resize",animation:Ea({duration:0},t&&t.animation)})}catch(f){throw this[Lm]=!1,f}this[Lm]=!1,zx.call(this,c),TS.call(this,c)}}},e.prototype.showLoading=function(t,r){if(this._disposed){C_(this.id);return}if(to(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!TA[t]){var s=TA[t](this._api,r),c=this._zr;this._loadingFX=s,c.add(s)}},e.prototype.hideLoading=function(){if(this._disposed){C_(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=Ea({},t);return r.type=i1[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){C_(this.id);return}if(to(r)||(r={silent:!!r}),!!AS[t.type]&&!!this._model){if(this[Lm]){this._pendingActions.push(t);return}var s=r.silent;SA.call(this,t,s);var c=r.flush;c?this._zr.flush():c!==!1&&Ct.browser.weChat&&this._throttledZrFlush(),zx.call(this,s),TS.call(this,s)}},e.prototype.updateLabelLayout=function(){E_.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){C_(this.id);return}var r=t.seriesIndex,s=this.getModel(),c=s.getSeriesByIndex(r);c.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){$0=function(Y){var q=Y._scheduler;q.restorePipelines(Y._model),q.prepareStageTasks(),r_(Y,!0),r_(Y,!1),q.plan()},r_=function(Y,q){for(var ie=Y._model,ge=Y._scheduler,Oe=q?Y._componentsViews:Y._chartsViews,Ne=q?Y._componentsMap:Y._chartsMap,He=Y._zr,st=Y._api,pt=0;pt<Oe.length;pt++)Oe[pt].__alive=!1;q?ie.eachComponent(function(yn,jn){yn!=="series"&&Ut(jn)}):ie.eachSeries(Ut);function Ut(yn){var jn=yn.__requireNewView;yn.__requireNewView=!1;var Cr="_ec_"+yn.id+"_"+yn.type,Nr=!jn&&Ne[Cr];if(!Nr){var Rr=Zv(yn.type),Er=q?Eh.getClass(Rr.main,Rr.sub):vv.getClass(Rr.sub);Nr=new Er,Nr.init(ie,st),Ne[Cr]=Nr,Oe.push(Nr),He.add(Nr.group)}yn.__viewId=Nr.__id=Cr,Nr.__alive=!0,Nr.__model=yn,Nr.group.__ecComponentInfo={mainType:yn.mainType,index:yn.componentIndex},!q&&ge.prepareView(Nr,yn,ie,st)}for(var pt=0;pt<Oe.length;){var pn=Oe[pt];pn.__alive?pt++:(!q&&pn.renderTask.dispose(),He.remove(pn.group),pn.dispose(ie,st),Oe.splice(pt,1),Ne[pn.__id]===pn&&delete Ne[pn.__id],pn.__id=pn.group.__ecComponentInfo=null)}},H2=function(Y,q,ie,ge,Oe){var Ne=Y._model;if(Ne.setUpdatePayload(ie),!ge){At([].concat(Y._componentsViews).concat(Y._chartsViews),pn);return}var He={};He[ge+"Id"]=ie[ge+"Id"],He[ge+"Index"]=ie[ge+"Index"],He[ge+"Name"]=ie[ge+"Name"];var st={mainType:ge,query:He};Oe&&(st.subType=Oe);var pt=ie.excludeSeriesId,Ut;pt!=null&&(Ut=Za(),At(Bf(pt),function(yn){var jn=Ta(yn,null);jn!=null&&Ut.set(jn,!0)})),Ne&&Ne.eachComponent(st,function(yn){var jn=Ut&&Ut.get(yn.id)!=null;if(!jn)if(UC(ie))if(yn instanceof oh)ie.type===L0&&!ie.notBlur&&!yn.get(["emphasis","disabled"])&&FC(yn,ie,Y._api);else{var Cr=UE(yn.mainType,yn.componentIndex,ie.name,Y._api),Nr=Cr.focusSelf,Rr=Cr.dispatchers;ie.type===L0&&Nr&&!ie.notBlur&&Vy(yn.mainType,yn.componentIndex,Y._api),Rr&&At(Rr,function(Er){ie.type===L0?qg(Er):j0(Er)})}else cx(ie)&&yn instanceof oh&&(BC(yn,ie,Y._api),ZE(yn),Cg(Y))},Y),Ne&&Ne.eachComponent(st,function(yn){var jn=Ut&&Ut.get(yn.id)!=null;jn||pn(Y[ge==="series"?"_chartsMap":"_componentsMap"][yn.__viewId])},Y);function pn(yn){yn&&yn.__alive&&yn[q]&&yn[q](yn.__model,Ne,Y._api,ie)}},a1={prepareAndUpdate:function(Y){$0(this),a1.update.call(this,Y,{optionChanged:Y.newOption!=null})},update:function(Y,q){var ie=this._model,ge=this._api,Oe=this._zr,Ne=this._coordSysMgr,He=this._scheduler;if(!!ie){ie.setUpdatePayload(Y),He.restoreData(ie,Y),He.performSeriesTasks(ie),Ne.create(ie,ge),He.performDataProcessorTasks(ie,Y),$2(this,ie),Ne.update(ie,ge),t(ie),He.performVisualTasks(ie,Y),X2(this,ie,ge,Y,q);var st=ie.get("backgroundColor")||"transparent",pt=ie.get("darkMode");Oe.setBackgroundColor(st),pt!=null&&pt!=="auto"&&Oe.setDarkMode(pt),E_.trigger("afterupdate",ie,ge)}},updateTransform:function(Y){var q=this,ie=this._model,ge=this._api;if(!!ie){ie.setUpdatePayload(Y);var Oe=[];ie.eachComponent(function(He,st){if(He!=="series"){var pt=q.getViewOfComponentModel(st);if(pt&&pt.__alive)if(pt.updateTransform){var Ut=pt.updateTransform(st,ie,ge,Y);Ut&&Ut.update&&Oe.push(pt)}else Oe.push(pt)}});var Ne=Za();ie.eachSeries(function(He){var st=q._chartsMap[He.__viewId];if(st.updateTransform){var pt=st.updateTransform(He,ie,ge,Y);pt&&pt.update&&Ne.set(He.uid,1)}else Ne.set(He.uid,1)}),t(ie),this._scheduler.performVisualTasks(ie,Y,{setDirty:!0,dirtyMap:Ne}),Wx(this,ie,ge,Y,{},Ne),E_.trigger("afterupdate",ie,ge)}},updateView:function(Y){var q=this._model;!q||(q.setUpdatePayload(Y),vv.markUpdateMethod(Y,"updateView"),t(q),this._scheduler.performVisualTasks(q,Y,{setDirty:!0}),X2(this,q,this._api,Y,{}),E_.trigger("afterupdate",q,this._api))},updateVisual:function(Y){var q=this,ie=this._model;!ie||(ie.setUpdatePayload(Y),ie.eachSeries(function(ge){ge.getData().clearAllVisual()}),vv.markUpdateMethod(Y,"updateVisual"),t(ie),this._scheduler.performVisualTasks(ie,Y,{visualType:"visual",setDirty:!0}),ie.eachComponent(function(ge,Oe){if(ge!=="series"){var Ne=q.getViewOfComponentModel(Oe);Ne&&Ne.__alive&&Ne.updateVisual(Oe,ie,q._api,Y)}}),ie.eachSeries(function(ge){var Oe=q._chartsMap[ge.__viewId];Oe.updateVisual(ge,ie,q._api,Y)}),E_.trigger("afterupdate",ie,this._api))},updateLayout:function(Y){a1.update.call(this,Y)}},G2=function(Y,q,ie,ge){if(Y._disposed){C_(Y.id);return}for(var Oe=Y._model,Ne=Y._coordSysMgr.getCoordinateSystems(),He,st=Vs(Oe,ie),pt=0;pt<Ne.length;pt++){var Ut=Ne[pt];if(Ut[q]&&(He=Ut[q](Oe,st,ge))!=null)return He}},$2=function(Y,q){var ie=Y._chartsMap,ge=Y._scheduler;q.eachSeries(function(Oe){ge.updateStreamModes(Oe,ie[Oe.__viewId])})},SA=function(Y,q){var ie=this,ge=this.getModel(),Oe=Y.type,Ne=Y.escapeConnect,He=AS[Oe],st=He.actionInfo,pt=(st.update||"update").split(":"),Ut=pt.pop(),pn=pt[0]!=null&&Zv(pt[0]);this[Lm]=!0;var yn=[Y],jn=!1;Y.batch&&(jn=!0,yn=ar(Y.batch,function(Ga){return Ga=Pi(Ea({},Ga),Y),Ga.batch=null,Ga}));var Cr=[],Nr,Rr=cx(Y),Er=UC(Y);if(Er&&wd(this._api),At(yn,function(Ga){if(Nr=He.action(Ga,ie._model,ie._api),Nr=Nr||Ea({},Ga),Nr.type=st.event||Nr.type,Cr.push(Nr),Er){var Ei=Cs(Y),Vi=Ei.queryOptionMap,ns=Ei.mainTypeSpecified,zo=ns?Vi.keys()[0]:"series";H2(ie,Ut,Ga,zo),Cg(ie)}else Rr?(H2(ie,Ut,Ga,"series"),Cg(ie)):pn&&H2(ie,Ut,Ga,pn.main,pn.sub)}),Ut!=="none"&&!Er&&!Rr&&!pn)try{this[$g]?($0(this),a1.update.call(this,Y),this[$g]=null):a1[Ut].call(this,Y)}catch(Ga){throw this[Lm]=!1,Ga}if(jn?Nr={type:st.event||Oe,escapeConnect:Ne,batch:Cr}:Nr=Cr[0],this[Lm]=!1,!q){var ma=this._messageCenter;if(ma.trigger(Nr.type,Nr),Rr){var wa={type:"selectchanged",escapeConnect:Ne,selected:lx(ge),isFromClick:Y.isFromClick||!1,fromAction:Y.type,fromActionPayload:Y};ma.trigger(wa.type,wa)}}},zx=function(Y){for(var q=this._pendingActions;q.length;){var ie=q.shift();SA.call(this,ie,Y)}},TS=function(Y){!Y&&this.trigger("updated")},K2=function(Y,q){Y.on("rendered",function(ie){q.trigger("rendered",ie),Y.animation.isFinished()&&!q[$g]&&!q._scheduler.unfinished&&!q._pendingActions.length&&q.trigger("finished")})},Y2=function(Y,q){Y.on("mouseover",function(ie){var ge=ie.target,Oe=Ks(ge,f0);Oe&&(jC(Oe,ie,q._api),Cg(q))}).on("mouseout",function(ie){var ge=ie.target,Oe=Ks(ge,f0);Oe&&(aT(Oe,ie,q._api),Cg(q))}).on("click",function(ie){var ge=ie.target,Oe=Ks(ge,function(st){return nu(st).dataIndex!=null},!0);if(Oe){var Ne=Oe.selected?"unselect":"select",He=nu(Oe);q._api.dispatchAction({type:Ne,dataType:He.dataType,dataIndexInside:He.dataIndex,seriesIndex:He.seriesIndex,isFromClick:!0})}})};function t(Y){Y.clearColorPalette(),Y.eachSeries(function(q){q.clearColorPalette()})}function r(Y){var q=[],ie=[],ge=!1;if(Y.eachComponent(function(st,pt){var Ut=pt.get("zlevel")||0,pn=pt.get("z")||0,yn=pt.getZLevelKey();ge=ge||!!yn,(st==="series"?ie:q).push({zlevel:Ut,z:pn,idx:pt.componentIndex,type:st,key:yn})}),ge){var Oe=q.concat(ie),Ne,He;Fo(Oe,function(st,pt){return st.zlevel===pt.zlevel?st.z-pt.z:st.zlevel-pt.zlevel}),At(Oe,function(st){var pt=Y.getComponent(st.type,st.idx),Ut=st.zlevel,pn=st.key;Ne!=null&&(Ut=Math.max(Ne,Ut)),pn?(Ut===Ne&&pn!==He&&Ut++,He=pn):He&&(Ut===Ne&&Ut++,He=""),Ne=Ut,pt.setZLevel(Ut)})}}X2=function(Y,q,ie,ge,Oe){r(q),xP(Y,q,ie,ge,Oe),At(Y._chartsViews,function(Ne){Ne.__alive=!1}),Wx(Y,q,ie,ge,Oe),At(Y._chartsViews,function(Ne){Ne.__alive||Ne.remove(q,ie)})},xP=function(Y,q,ie,ge,Oe,Ne){At(Ne||Y._componentsViews,function(He){var st=He.__model;I(st,He),He.render(st,q,ie,ge),T(st,He),B(st,He)})},Wx=function(Y,q,ie,ge,Oe,Ne){var He=Y._scheduler;Oe=Ea(Oe||{},{updatedSeries:q.getSeries()}),E_.trigger("series:beforeupdate",q,ie,Oe);var st=!1;q.eachSeries(function(pt){var Ut=Y._chartsMap[pt.__viewId];Ut.__alive=!0;var pn=Ut.renderTask;He.updatePayload(pn,ge),I(pt,Ut),Ne&&Ne.get(pt.uid)&&pn.dirty(),pn.perform(He.getPerformArgs(pn))&&(st=!0),Ut.group.silent=!!pt.get("silent"),f(pt,Ut),ZE(pt)}),He.unfinished=st||He.unfinished,E_.trigger("series:layoutlabels",q,ie,Oe),E_.trigger("series:transition",q,ie,Oe),q.eachSeries(function(pt){var Ut=Y._chartsMap[pt.__viewId];T(pt,Ut),B(pt,Ut)}),c(Y,q),E_.trigger("series:afterupdate",q,ie,Oe)},Cg=function(Y){Y[V2]=!0,Y.getZr().wakeUp()},CA=function(Y){!Y[V2]||(Y.getZr().storage.traverse(function(q){d0(q)||s(q)}),Y[V2]=!1)};function s(Y){for(var q=[],ie=Y.currentStates,ge=0;ge<ie.length;ge++){var Oe=ie[ge];Oe==="emphasis"||Oe==="blur"||Oe==="select"||q.push(Oe)}Y.selected&&Y.states.select&&q.push("select"),Y.hoverState===ix&&Y.states.emphasis?q.push("emphasis"):Y.hoverState===ax&&Y.states.blur&&q.push("blur"),Y.useStates(q)}function c(Y,q){var ie=Y._zr,ge=ie.storage,Oe=0;ge.traverse(function(Ne){Ne.isGroup||Oe++}),Oe>q.get("hoverLayerThreshold")&&!Ct.node&&!Ct.worker&&q.eachSeries(function(Ne){if(!Ne.preventUsingHoverLayer){var He=Y._chartsMap[Ne.__viewId];He.__alive&&He.eachRendered(function(st){st.states.emphasis&&(st.states.emphasis.hoverLayer=!0)})}})}function f(Y,q){var ie=Y.get("blendMode")||null;q.eachRendered(function(ge){ge.isGroup||(ge.style.blend=ie)})}function T(Y,q){if(!Y.preventAutoZ){var ie=Y.get("z")||0,ge=Y.get("zlevel")||0;q.eachRendered(function(Oe){return R(Oe,ie,ge,-Infinity),!0})}}function R(Y,q,ie,ge){var Oe=Y.getTextContent(),Ne=Y.getTextGuideLine(),He=Y.isGroup;if(He)for(var st=Y.childrenRef(),pt=0;pt<st.length;pt++)ge=Math.max(R(st[pt],q,ie,ge),ge);else Y.z=q,Y.zlevel=ie,ge=Math.max(Y.z2,ge);if(Oe&&(Oe.z=q,Oe.zlevel=ie,isFinite(ge)&&(Oe.z2=ge+2)),Ne){var Ut=Y.textGuideLineConfig;Ne.z=q,Ne.zlevel=ie,isFinite(ge)&&(Ne.z2=ge+(Ut&&Ut.showAbove?1:-1))}return ge}function I(Y,q){q.eachRendered(function(ie){if(!d0(ie)){var ge=ie.getTextContent(),Oe=ie.getTextGuideLine();ie.stateTransition&&(ie.stateTransition=null),ge&&ge.stateTransition&&(ge.stateTransition=null),Oe&&Oe.stateTransition&&(Oe.stateTransition=null),ie.hasState()?(ie.prevStates=ie.currentStates,ie.clearStates()):ie.prevStates&&(ie.prevStates=null)}})}function B(Y,q){var ie=Y.getModel("stateAnimation"),ge=Y.isAnimationEnabled(),Oe=ie.get("duration"),Ne=Oe>0?{duration:Oe,delay:ie.get("delay"),easing:ie.get("easing")}:null;q.eachRendered(function(He){if(He.states&&He.states.emphasis){if(d0(He))return;if(He instanceof Od&&sT(He),He.__dirty){var st=He.prevStates;st&&He.useStates(st)}if(ge){He.stateTransition=Ne;var pt=He.getTextContent(),Ut=He.getTextGuideLine();pt&&(pt.stateTransition=Ne),Ut&&(Ut.stateTransition=Ne)}He.__dirty&&s(He)}})}Hx=function(Y){return new(function(q){ze(ie,q);function ie(){return q!==null&&q.apply(this,arguments)||this}return ie.prototype.getCoordinateSystems=function(){return Y._coordSysMgr.getCoordinateSystems()},ie.prototype.getComponentByElement=function(ge){for(;ge;){var Oe=ge.__ecComponentInfo;if(Oe!=null)return Y._model.getComponent(Oe.mainType,Oe.index);ge=ge.parent}},ie.prototype.enterEmphasis=function(ge,Oe){qg(ge,Oe),Cg(Y)},ie.prototype.leaveEmphasis=function(ge,Oe){j0(ge,Oe),Cg(Y)},ie.prototype.enterBlur=function(ge){B0(ge),Cg(Y)},ie.prototype.leaveBlur=function(ge){Uy(ge),Cg(Y)},ie.prototype.enterSelect=function(ge){sx(ge),Cg(Y)},ie.prototype.leaveSelect=function(ge){LC(ge),Cg(Y)},ie.prototype.getModel=function(){return Y.getModel()},ie.prototype.getViewOfComponentModel=function(ge){return Y.getViewOfComponentModel(ge)},ie.prototype.getViewOfSeriesModel=function(ge){return Y.getViewOfSeriesModel(ge)},ie}(gk))(Y)},J2=function(Y){function q(ie,ge){for(var Oe=0;Oe<ie.length;Oe++){var Ne=ie[Oe];Ne[z2]=ge}}At(i1,function(ie,ge){Y._messageCenter.on(ge,function(Oe){if(MS[Y.group]&&Y[z2]!==bP){if(Oe&&Oe.escapeConnect)return;var Ne=Y.makeActionFromEvent(Oe),He=[];At(ig,function(st){st!==Y&&st.group===Y.group&&He.push(st)}),q(He,bP),At(He,function(st){st[z2]!==wS&&st.dispatchAction(Ne)}),q(He,W2)}})})}}(),e}(Nc),wg=bb.prototype;wg.on=EA("on"),wg.off=EA("off"),wg.one=function(n,e,t){var r=this;BT("ECharts#one is deprecated.");function s(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];e&&e.apply&&e.apply(this,c),r.off(n,s)}this.on.call(this,n,s,t)};var EP=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function C_(n){}var AS={},i1={},E0=[],Tg=[],Gx=[],wA={},TA={},ig={},MS={},kS=+new Date-0,Q2=+new Date-0,PS="_echarts_instance_";function q2(n,e,t){var r=!(t&&t.ssr);if(r){var s=Iu(n);if(s)return s}var c=new bb(n,e,t);return c.id="ec_"+kS++,ig[c.id]=c,r&&Xf(n,PS,c.id),J2(c),E_.trigger("afterinit",c),c}function SP(n){if(isArray(n)){var e=n;n=null,each(e,function(t){t.group!=null&&(n=t.group)}),n=n||"g_"+Q2++,each(e,function(t){t.group=n})}return MS[n]=!0,n}function CP(n){MS[n]=!1}var mI=null;function Pp(n){isString(n)?n=ig[n]:n instanceof bb||(n=Iu(n)),n instanceof bb&&!n.isDisposed()&&n.dispose()}function Iu(n){return ig[pu(n,PS)]}function fd(n){return ig[n]}function Np(n,e){wA[n]=e}function Uh(n){Ui(Tg,n)<0&&Tg.push(n)}function Cy(n,e){AA(E0,n,e,jx)}function o1(n){w_("afterinit",n)}function K0(n){w_("afterupdate",n)}function w_(n,e){E_.on(n,e)}function Fm(n,e,t){ja(e)&&(t=e,e="");var r=to(n)?n.type:[n,n={event:e}][0];n.event=(n.event||r).toLowerCase(),e=n.event,!i1[e]&&(Ln(t1.test(r)&&t1.test(e)),AS[r]||(AS[r]={action:t,actionInfo:n}),i1[e]=r)}function RS(n,e){tS.register(n,e)}function T_(n){var e=CoordinateSystemManager.get(n);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function i7(n,e){AA(Gx,n,e,Sy,"layout")}function xb(n,e){AA(Gx,n,e,Bx,"visual")}var aN=[];function AA(n,e,t,r,s){if((ja(e)||to(e))&&(t=e,e=r),!(Ui(aN,t)>=0)){aN.push(t);var c=Ba.wrapStageHandler(t,s);c.__prio=e,c.__raw=t,n.push(c)}}function wP(n,e){TA[n]=e}function EW(n){setPlatformAPI({createCanvas:n})}function o7(n,e,t){var r=SS("registerMap");r&&r(n,e,t)}function SW(n){var e=getImpl("getMap");return e&&e(n)}var TP=Rk;xb(_b,On),xb(S_,nr),xb(S_,hr),xb(_b,Al),xb(S_,Ql),xb(Z2,ES),Uh(BO),Cy(vI,bk),wP("default",Mr),Fm({type:L0,event:L0,update:L0},Bo),Fm({type:ox,event:ox,update:ox},Bo),Fm({type:U1,event:U1,update:U1},Bo),Fm({type:IE,event:IE,update:IE},Bo),Fm({type:Z1,event:Z1,update:Z1},Bo),Np("light",ji),Np("dark",Vo);var CW={},iN=[],s7={registerPreprocessor:Uh,registerProcessor:Cy,registerPostInit:o1,registerPostUpdate:K0,registerUpdateLifecycle:w_,registerAction:Fm,registerCoordinateSystem:RS,registerLayout:i7,registerVisual:xb,registerTransform:TP,registerLoading:wP,registerMap:o7,registerImpl:B2,PRIORITY:hI,ComponentModel:Mp,ComponentView:Eh,SeriesModel:oh,ChartView:vv,registerComponentModel:function(n){Mp.registerClass(n)},registerComponentView:function(n){Eh.registerClass(n)},registerSeriesModel:function(n){oh.registerClass(n)},registerChartView:function(n){vv.registerClass(n)},registerSubTypeDefaulter:function(n,e){Mp.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){Go(n,e)}};function Ud(n){if(La(n)){At(n,function(e){Ud(e)});return}Ui(iN,n)>=0||(iN.push(n),ja(n)&&(n={install:n}),n.install(s7))}function wW(n){var e=ComponentModel.extend(n);return ComponentModel.registerClass(e),e}function TW(n){var e=ComponentView.extend(n);return ComponentView.registerClass(e),e}function l7(n){var e=SeriesModel.extend(n);return SeriesModel.registerClass(e),e}function oN(n){var e=ChartView.extend(n);return ChartView.registerClass(e),e}var MA=Math.PI*2,OS=f_.CMD,sN=["top","right","bottom","left"];function lN(n,e,t,r,s){var c=t.width,f=t.height;switch(n){case"top":r.set(t.x+c/2,t.y-e),s.set(0,-1);break;case"bottom":r.set(t.x+c/2,t.y+f+e),s.set(0,1);break;case"left":r.set(t.x-e,t.y+f/2),s.set(-1,0);break;case"right":r.set(t.x+c+e,t.y+f/2),s.set(1,0);break}}function cN(n,e,t,r,s,c,f,T,R){f-=n,T-=e;var I=Math.sqrt(f*f+T*T);f/=I,T/=I;var B=f*t+n,Y=T*t+e;if(Math.abs(r-s)%MA<1e-4)return R[0]=B,R[1]=Y,I-t;if(c){var q=r;r=d_(s),s=d_(q)}else r=d_(r),s=d_(s);r>s&&(s+=MA);var ie=Math.atan2(T,f);if(ie<0&&(ie+=MA),ie>=r&&ie<=s||ie+MA>=r&&ie+MA<=s)return R[0]=B,R[1]=Y,I-t;var ge=t*Math.cos(r)+n,Oe=t*Math.sin(r)+e,Ne=t*Math.cos(s)+n,He=t*Math.sin(s)+e,st=(ge-f)*(ge-f)+(Oe-T)*(Oe-T),pt=(Ne-f)*(Ne-f)+(He-T)*(He-T);return st<pt?(R[0]=ge,R[1]=Oe,Math.sqrt(st)):(R[0]=Ne,R[1]=He,Math.sqrt(pt))}function AP(n,e,t,r,s,c,f,T){var R=s-n,I=c-e,B=t-n,Y=r-e,q=Math.sqrt(B*B+Y*Y);B/=q,Y/=q;var ie=R*B+I*Y,ge=ie/q;T&&(ge=Math.min(Math.max(ge,0),1)),ge*=q;var Oe=f[0]=n+ge*B,Ne=f[1]=e+ge*Y;return Math.sqrt((Oe-s)*(Oe-s)+(Ne-c)*(Ne-c))}function uN(n,e,t,r,s,c,f){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var T=n+t,R=e+r,I=f[0]=Math.min(Math.max(s,n),T),B=f[1]=Math.min(Math.max(c,e),R);return Math.sqrt((I-s)*(I-s)+(B-c)*(B-c))}var Y0=[];function $x(n,e,t){var r=uN(e.x,e.y,e.width,e.height,n.x,n.y,Y0);return t.set(Y0[0],Y0[1]),r}function c7(n,e,t){for(var r=0,s=0,c=0,f=0,T,R,I=Infinity,B=e.data,Y=n.x,q=n.y,ie=0;ie<B.length;){var ge=B[ie++];ie===1&&(r=B[ie],s=B[ie+1],c=r,f=s);var Oe=I;switch(ge){case OS.M:c=B[ie++],f=B[ie++],r=c,s=f;break;case OS.L:Oe=AP(r,s,B[ie],B[ie+1],Y,q,Y0,!0),r=B[ie++],s=B[ie++];break;case OS.C:Oe=tr(r,s,B[ie++],B[ie++],B[ie++],B[ie++],B[ie],B[ie+1],Y,q,Y0),r=B[ie++],s=B[ie++];break;case OS.Q:Oe=pi(r,s,B[ie++],B[ie++],B[ie],B[ie+1],Y,q,Y0),r=B[ie++],s=B[ie++];break;case OS.A:var Ne=B[ie++],He=B[ie++],st=B[ie++],pt=B[ie++],Ut=B[ie++],pn=B[ie++];ie+=1;var yn=!!(1-B[ie++]);T=Math.cos(Ut)*st+Ne,R=Math.sin(Ut)*pt+He,ie<=1&&(c=T,f=R);var jn=(Y-Ne)*pt/st+Ne;Oe=cN(Ne,He,pt,Ut,Ut+pn,yn,jn,q,Y0),r=Math.cos(Ut+pn)*st+Ne,s=Math.sin(Ut+pn)*pt+He;break;case OS.R:c=r=B[ie++],f=s=B[ie++];var Cr=B[ie++],Nr=B[ie++];Oe=uN(c,f,Cr,Nr,Y,q,Y0);break;case OS.Z:Oe=AP(r,s,c,f,Y,q,Y0,!0),r=c,s=f;break}Oe<I&&(I=Oe,t.set(Y0[0],Y0[1]))}return I}var wy=new $c,Qv=new $c,xm=new $c,s1=new $c,Ty=new $c;function MP(n,e){if(!!n){var t=n.getTextGuideLine(),r=n.getTextContent();if(!!(r&&t)){var s=n.textGuideLineConfig||{},c=[[0,0],[0,0],[0,0]],f=s.candidates||sN,T=r.getBoundingRect().clone();T.applyTransform(r.getComputedTransform());var R=Infinity,I=s.anchor,B=n.getComputedTransform(),Y=B&&Gd([],B),q=e.get("length2")||0;I&&xm.copy(I);for(var ie=0;ie<f.length;ie++){var ge=f[ie];lN(ge,0,T,wy,s1),$c.scaleAndAdd(Qv,wy,s1,q),Qv.transform(Y);var Oe=n.getBoundingRect(),Ne=I?I.distance(Qv):n instanceof Od?c7(Qv,n.path,xm):$x(Qv,Oe,xm);Ne<R&&(R=Ne,Qv.transform(B),xm.transform(B),xm.toArray(c[0]),Qv.toArray(c[1]),wy.toArray(c[2]))}fN(c,e.get("minTurnAngle")),t.setShape({points:c})}}}var kP=[],A_=new $c;function fN(n,e){if(e<=180&&e>0){e=e/180*Math.PI,wy.fromArray(n[0]),Qv.fromArray(n[1]),xm.fromArray(n[2]),$c.sub(s1,wy,Qv),$c.sub(Ty,xm,Qv);var t=s1.len(),r=Ty.len();if(!(t<.001||r<.001)){s1.scale(1/t),Ty.scale(1/r);var s=s1.dot(Ty),c=Math.cos(e);if(c<s){var f=AP(Qv.x,Qv.y,xm.x,xm.y,wy.x,wy.y,kP,!1);A_.fromArray(kP),A_.scaleAndAdd(Ty,f/Math.tan(Math.PI-e));var T=xm.x!==Qv.x?(A_.x-Qv.x)/(xm.x-Qv.x):(A_.y-Qv.y)/(xm.y-Qv.y);if(isNaN(T))return;T<0?$c.copy(A_,Qv):T>1&&$c.copy(A_,xm),A_.toArray(n[1])}}}}function u7(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,wy.fromArray(n[0]),Qv.fromArray(n[1]),xm.fromArray(n[2]),$c.sub(s1,Qv,wy),$c.sub(Ty,xm,Qv);var r=s1.len(),s=Ty.len();if(!(r<.001||s<.001)){s1.scale(1/r),Ty.scale(1/s);var c=s1.dot(e),f=Math.cos(t);if(c<f){var T=AP(Qv.x,Qv.y,xm.x,xm.y,wy.x,wy.y,kP,!1);A_.fromArray(kP);var R=Math.PI/2,I=Math.acos(Ty.dot(e)),B=R+I-t;if(B>=R)$c.copy(A_,xm);else{A_.scaleAndAdd(Ty,T/Math.tan(Math.PI/2-B));var Y=xm.x!==Qv.x?(A_.x-Qv.x)/(xm.x-Qv.x):(A_.y-Qv.y)/(xm.y-Qv.y);if(isNaN(Y))return;Y<0?$c.copy(A_,Qv):Y>1&&$c.copy(A_,xm)}A_.toArray(n[1])}}}}function dN(n,e,t,r){var s=t==="normal",c=s?n:n.ensureState(t);c.ignore=e;var f=r.get("smooth");f&&f===!0&&(f=.3),c.shape=c.shape||{},f>0&&(c.shape.smooth=f);var T=r.getModel("lineStyle").getLineStyle();s?n.useStyle(T):c.style=T}function f7(n,e){var t=e.smooth,r=e.points;if(!!r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var s=of(r[0],r[1]),c=of(r[1],r[2]);if(!s||!c){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var f=Math.min(s,c)*t,T=bf([],r[1],r[0],f/s),R=bf([],r[1],r[2],f/c),I=bf([],T,R,.5);n.bezierCurveTo(T[0],T[1],T[0],T[1],I[0],I[1]),n.bezierCurveTo(R[0],R[1],R[0],R[1],r[2][0],r[2][1])}else for(var B=1;B<r.length;B++)n.lineTo(r[B][0],r[B][1])}function gI(n,e,t){var r=n.getTextGuideLine(),s=n.getTextContent();if(!s){r&&n.removeTextGuideLine();return}for(var c=e.normal,f=c.get("show"),T=s.ignore,R=0;R<L_.length;R++){var I=L_[R],B=e[I],Y=I==="normal";if(B){var q=B.get("show"),ie=Y?T:sn(s.states[I]&&s.states[I].ignore,T);if(ie||!sn(q,f)){var ge=Y?r:r&&r.states[I];ge&&(ge.ignore=!0);continue}r||(r=new ng,n.setTextGuideLine(r),!Y&&(T||!f)&&dN(r,!0,"normal",e.normal),n.stateProxy&&(r.stateProxy=n.stateProxy)),dN(r,!1,I,B)}}if(r){Pi(r.style,t),r.style.fill=null;var Oe=c.get("showAbove"),Ne=n.textGuideLineConfig=n.textGuideLineConfig||{};Ne.showAbove=Oe||!1,r.buildPath=f7}}function _I(n,e){e=e||"labelLine";for(var t={normal:n.getModel(e)},r=0;r<Wm.length;r++){var s=Wm[r];t[s]=n.getModel([s,e])}return t}function kA(n){for(var e=[],t=0;t<n.length;t++){var r=n[t];if(!r.defaultAttr.ignore){var s=r.label,c=s.getComputedTransform(),f=s.getBoundingRect(),T=!c||c[1]<1e-5&&c[2]<1e-5,R=s.style.margin||0,I=f.clone();I.applyTransform(c),I.x-=R/2,I.y-=R/2,I.width+=R,I.height+=R;var B=T?new T2(f,c):null;e.push({label:s,labelLine:r.labelLine,rect:I,localRect:f,obb:B,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:T,transform:c})}}return e}function pN(n,e,t,r,s,c){var f=n.length;if(f<2)return;n.sort(function(Nr,Rr){return Nr.rect[e]-Rr.rect[e]});for(var T=0,R,I=!1,B=[],Y=0,q=0;q<f;q++){var ie=n[q],ge=ie.rect;R=ge[e]-T,R<0&&(ge[e]-=R,ie.label[e]-=R,I=!0);var Oe=Math.max(-R,0);B.push(Oe),Y+=Oe,T=ge[e]+ge[t]}Y>0&&c&&yn(-Y/f,0,f);var Ne=n[0],He=n[f-1],st,pt;Ut(),st<0&&jn(-st,.8),pt<0&&jn(pt,.8),Ut(),pn(st,pt,1),pn(pt,st,-1),Ut(),st<0&&Cr(-st),pt<0&&Cr(pt);function Ut(){st=Ne.rect[e]-r,pt=s-He.rect[e]-He.rect[t]}function pn(Nr,Rr,Er){if(Nr<0){var ma=Math.min(Rr,-Nr);if(ma>0){yn(ma*Er,0,f);var wa=ma+Nr;wa<0&&jn(-wa*Er,1)}else jn(-Nr*Er,1)}}function yn(Nr,Rr,Er){Nr!==0&&(I=!0);for(var ma=Rr;ma<Er;ma++){var wa=n[ma],Ga=wa.rect;Ga[e]+=Nr,wa.label[e]+=Nr}}function jn(Nr,Rr){for(var Er=[],ma=0,wa=1;wa<f;wa++){var Ga=n[wa-1].rect,Ei=Math.max(n[wa].rect[e]-Ga[e]-Ga[t],0);Er.push(Ei),ma+=Ei}if(!!ma){var Vi=Math.min(Math.abs(Nr)/ma,Rr);if(Nr>0)for(var wa=0;wa<f-1;wa++){var ns=Er[wa]*Vi;yn(ns,0,wa+1)}else for(var wa=f-1;wa>0;wa--){var ns=Er[wa-1]*Vi;yn(-ns,wa,f)}}}function Cr(Nr){var Rr=Nr<0?-1:1;Nr=Math.abs(Nr);for(var Er=Math.ceil(Nr/(f-1)),ma=0;ma<f-1;ma++)if(Rr>0?yn(Er,0,ma+1):yn(-Er,f-ma-1,f),Nr-=Er,Nr<=0)return}return I}function PA(n,e,t,r){return pN(n,"x","width",e,t,r)}function vN(n,e,t,r){return pN(n,"y","height",e,t,r)}function PP(n){var e=[];n.sort(function(Oe,Ne){return Ne.priority-Oe.priority});var t=new ra(0,0,0,0);function r(Oe){if(!Oe.ignore){var Ne=Oe.ensureState("emphasis");Ne.ignore==null&&(Ne.ignore=!1)}Oe.ignore=!0}for(var s=0;s<n.length;s++){var c=n[s],f=c.axisAligned,T=c.localRect,R=c.transform,I=c.label,B=c.labelLine;t.copy(c.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var Y=c.obb,q=!1,ie=0;ie<e.length;ie++){var ge=e[ie];if(!!t.intersect(ge.rect)){if(f&&ge.axisAligned){q=!0;break}if(ge.obb||(ge.obb=new T2(ge.localRect,ge.transform)),Y||(Y=new T2(T,R)),Y.intersect(ge.obb)){q=!0;break}}}q?(r(I),B&&r(B)):(I.attr("ignore",c.defaultAttr.ignore),B&&B.attr("ignore",c.defaultAttr.labelGuideIgnore),e.push(c))}}function d7(n){if(n){for(var e=[],t=0;t<n.length;t++)e.push(n[t].slice());return e}}function p7(n,e){var t=n.label,r=e&&e.getTextGuideLine();return{dataIndex:n.dataIndex,dataType:n.dataType,seriesIndex:n.seriesModel.seriesIndex,text:n.label.style.text,rect:n.hostRect,labelRect:n.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:d7(r&&r.shape.points)}}var yI=["align","verticalAlign","width","height","fontSize"],Gm=new Bp,RA=Bi(),bI=Bi();function RP(n,e,t){for(var r=0;r<t.length;r++){var s=t[r];e[s]!=null&&(n[s]=e[s])}}var OA=["x","y","rotation"],v7=function(){function n(){this._labelList=[],this._chartViewList=[]}return n.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},n.prototype._addLabel=function(e,t,r,s,c){var f=s.style,T=s.__hostTarget,R=T.textConfig||{},I=s.getComputedTransform(),B=s.getBoundingRect().plain();ra.applyTransform(B,B,I),I?Gm.setLocalTransform(I):(Gm.x=Gm.y=Gm.rotation=Gm.originX=Gm.originY=0,Gm.scaleX=Gm.scaleY=1),Gm.rotation=d_(Gm.rotation);var Y=s.__hostTarget,q;if(Y){q=Y.getBoundingRect().plain();var ie=Y.getComputedTransform();ra.applyTransform(q,q,ie)}var ge=q&&Y.getTextGuideLine();this._labelList.push({label:s,labelLine:ge,seriesModel:r,dataIndex:e,dataType:t,layoutOption:c,computedLayoutOption:null,rect:B,hostRect:q,priority:q?q.width*q.height:0,defaultAttr:{ignore:s.ignore,labelGuideIgnore:ge&&ge.ignore,x:Gm.x,y:Gm.y,scaleX:Gm.scaleX,scaleY:Gm.scaleY,rotation:Gm.rotation,style:{x:f.x,y:f.y,align:f.align,verticalAlign:f.verticalAlign,width:f.width,height:f.height,fontSize:f.fontSize},cursor:s.cursor,attachedPos:R.position,attachedRot:R.rotation}})},n.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var r=e.__model,s=r.get("labelLayout");!(ja(s)||Ua(s).length)||e.group.traverse(function(c){if(c.ignore)return!0;var f=c.getTextContent(),T=nu(c);f&&!f.disableLabelLayout&&t._addLabel(T.dataIndex,T.dataType,r,f,s)})},n.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),r=e.getHeight();function s(pt,Ut){return function(){MP(pt,Ut)}}for(var c=0;c<this._labelList.length;c++){var f=this._labelList[c],T=f.label,R=T.__hostTarget,I=f.defaultAttr,B=void 0;ja(f.layoutOption)?B=f.layoutOption(p7(f,R)):B=f.layoutOption,B=B||{},f.computedLayoutOption=B;var Y=Math.PI/180;R&&R.setTextConfig({local:!1,position:B.x!=null||B.y!=null?null:I.attachedPos,rotation:B.rotate!=null?B.rotate*Y:I.attachedRot,offset:[B.dx||0,B.dy||0]});var q=!1;if(B.x!=null?(T.x=It(B.x,t),T.setStyle("x",0),q=!0):(T.x=I.x,T.setStyle("x",I.style.x)),B.y!=null?(T.y=It(B.y,r),T.setStyle("y",0),q=!0):(T.y=I.y,T.setStyle("y",I.style.y)),B.labelLinePoints){var ie=R.getTextGuideLine();ie&&(ie.setShape({points:B.labelLinePoints}),q=!1)}var ge=RA(T);ge.needsUpdateLabelLine=q,T.rotation=B.rotate!=null?B.rotate*Y:I.rotation,T.scaleX=I.scaleX,T.scaleY=I.scaleY;for(var Oe=0;Oe<yI.length;Oe++){var Ne=yI[Oe];T.setStyle(Ne,B[Ne]!=null?B[Ne]:I.style[Ne])}if(B.draggable){if(T.draggable=!0,T.cursor="move",R){var He=f.seriesModel;if(f.dataIndex!=null){var st=f.seriesModel.getData(f.dataType);He=st.getItemModel(f.dataIndex)}T.on("drag",s(R,He.getModel("labelLine")))}}else T.off("drag"),T.cursor=I.cursor}},n.prototype.layout=function(e){var t=e.getWidth(),r=e.getHeight(),s=kA(this._labelList),c=Yn(s,function(R){return R.layoutOption.moveOverlap==="shiftX"}),f=Yn(s,function(R){return R.layoutOption.moveOverlap==="shiftY"});PA(c,0,t),vN(f,0,r);var T=Yn(s,function(R){return R.layoutOption.hideOverlap});PP(T)},n.prototype.processLabelsOverall=function(){var e=this;At(this._chartViewList,function(t){var r=t.__model,s=t.ignoreLabelLineUpdate,c=r.isAnimationEnabled();t.group.traverse(function(f){if(f.ignore&&!f.forceLabelAnimation)return!0;var T=!s,R=f.getTextContent();!T&&R&&(T=RA(R).needsUpdateLabelLine),T&&e._updateLabelLine(f,r),c&&e._animateLabels(f,r)})})},n.prototype._updateLabelLine=function(e,t){var r=e.getTextContent(),s=nu(e),c=s.dataIndex;if(r&&c!=null){var f=t.getData(s.dataType),T=f.getItemModel(c),R={},I=f.getItemVisual(c,"style");if(I){var B=f.getVisual("drawType");R.stroke=I[B]}var Y=T.getModel("labelLine");gI(e,_I(T),R),MP(e,Y)}},n.prototype._animateLabels=function(e,t){var r=e.getTextContent(),s=e.getTextGuideLine();if(r&&(e.forceLabelAnimation||!r.ignore&&!r.invisible&&!e.disableLabelAnimation&&!d0(e))){var c=RA(r),f=c.oldLayout,T=nu(e),R=T.dataIndex,I={x:r.x,y:r.y,rotation:r.rotation},B=t.getData(T.dataType);if(f){r.attr(f);var q=e.prevStates;q&&(Ui(q,"select")>=0&&r.attr(c.oldLayoutSelect),Ui(q,"emphasis")>=0&&r.attr(c.oldLayoutEmphasis)),vp(r,I,t,R)}else if(r.attr(I),!py(r).valueAnimation){var Y=sn(r.style.opacity,1);r.style.opacity=0,Sv(r,{style:{opacity:Y}},t,R)}if(c.oldLayout=I,r.states.select){var ie=c.oldLayoutSelect={};RP(ie,I,OA),RP(ie,r.states.select,OA)}if(r.states.emphasis){var ge=c.oldLayoutEmphasis={};RP(ge,I,OA),RP(ge,r.states.emphasis,OA)}hx(r,R,B,t,t)}if(s&&!s.ignore&&!s.invisible){var c=bI(s),f=c.oldLayout,Oe={points:s.shape.points};f?(s.attr({shape:f}),vp(s,{shape:Oe},t)):(s.setShape(Oe),s.style.strokePercent=0,Sv(s,{style:{strokePercent:1}},t)),c.oldLayout=Oe}},n}(),hN=v7,xI=Bi();function h7(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var s=xI(t).labelManager;s||(s=xI(t).labelManager=new hN),s.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var s=xI(t).labelManager;r.updatedSeries.forEach(function(c){s.addLabelsOfSeries(t.getViewOfSeriesModel(c))}),s.updateLayoutConfig(t),s.layout(t),s.processLabelsOverall()})}Ud(h7);function mN(n,e,t){var r=Bn.createCanvas(),s=e.getWidth(),c=e.getHeight(),f=r.style;return f&&(f.position="absolute",f.left="0",f.top="0",f.width=s+"px",f.height=c+"px",r.setAttribute("data-zr-dom-id",n)),r.width=s*t,r.height=c*t,r}var m7=function(n){ms(e,n);function e(t,r,s){var c=n.call(this)||this;c.motionBlur=!1,c.lastFrameAlpha=.7,c.dpr=1,c.virtual=!1,c.config={},c.incremental=!1,c.zlevel=0,c.maxRepaintRectCount=5,c.__dirty=!0,c.__firstTimePaint=!0,c.__used=!1,c.__drawIndex=0,c.__startIndex=0,c.__endIndex=0,c.__prevStartIndex=null,c.__prevEndIndex=null;var f;s=s||ah,typeof t=="string"?f=mN(t,r,s):to(t)&&(f=t,t=f.id),c.id=t,c.dom=f;var T=f.style;return T&&(Eo(f),f.onselectstart=function(){return!1},T.padding="0",T.margin="0",T.borderWidth="0"),c.painter=r,c.dpr=s,c}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=mN("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,r,s,c){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var f=[],T=this.maxRepaintRectCount,R=!1,I=new ra(0,0,0,0);function B(st){if(!(!st.isFinite()||st.isZero()))if(f.length===0){var pt=new ra(0,0,0,0);pt.copy(st),f.push(pt)}else{for(var Ut=!1,pn=Infinity,yn=0,jn=0;jn<f.length;++jn){var Cr=f[jn];if(Cr.intersect(st)){var Nr=new ra(0,0,0,0);Nr.copy(Cr),Nr.union(st),f[jn]=Nr,Ut=!0;break}else if(R){I.copy(st),I.union(Cr);var Rr=st.width*st.height,Er=Cr.width*Cr.height,ma=I.width*I.height,wa=ma-Rr-Er;wa<pn&&(pn=wa,yn=jn)}}if(R&&(f[yn].union(st),Ut=!0),!Ut){var pt=new ra(0,0,0,0);pt.copy(st),f.push(pt)}R||(R=f.length>=T)}}for(var Y=this.__startIndex;Y<this.__endIndex;++Y){var q=t[Y];if(q){var ie=q.shouldBePainted(s,c,!0,!0),ge=q.__isRendered&&(q.__dirty&as||!ie)?q.getPrevPaintRect():null;ge&&B(ge);var Oe=ie&&(q.__dirty&as||!q.__isRendered)?q.getPaintRect():null;Oe&&B(Oe)}}for(var Y=this.__prevStartIndex;Y<this.__prevEndIndex;++Y){var q=r[Y],ie=q.shouldBePainted(s,c,!0,!0);if(q&&(!ie||!q.__zr)&&q.__isRendered){var ge=q.getPrevPaintRect();ge&&B(ge)}}var Ne;do{Ne=!1;for(var Y=0;Y<f.length;){if(f[Y].isZero()){f.splice(Y,1);continue}for(var He=Y+1;He<f.length;)f[Y].intersect(f[He])?(Ne=!0,f[Y].union(f[He]),f.splice(He,1)):He++;Y++}}while(Ne);return this._paintRects=f,f},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,r){var s=this.dpr,c=this.dom,f=c.style,T=this.domBack;f&&(f.width=t+"px",f.height=r+"px"),c.width=t*s,c.height=r*s,T&&(T.width=t*s,T.height=r*s,s!==1&&this.ctxBack.scale(s,s))},e.prototype.clear=function(t,r,s){var c=this.dom,f=this.ctx,T=c.width,R=c.height;r=r||this.clearColor;var I=this.motionBlur&&!t,B=this.lastFrameAlpha,Y=this.dpr,q=this;I&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(c,0,0,T/Y,R/Y));var ie=this.domBack;function ge(Oe,Ne,He,st){if(f.clearRect(Oe,Ne,He,st),r&&r!=="transparent"){var pt=void 0;if(vl(r)){var Ut=r.global||r.__width===He&&r.__height===st;pt=Ut&&r.__canvasGradient||xp(f,r,{x:0,y:0,width:He,height:st}),r.__canvasGradient=pt,r.__width=He,r.__height=st}else Ar(r)&&(r.scaleX=r.scaleX||Y,r.scaleY=r.scaleY||Y,pt=kh(f,r,{dirty:function(){q.setUnpainted(),q.__painter.refresh()}}));f.save(),f.fillStyle=pt||r,f.fillRect(Oe,Ne,He,st),f.restore()}I&&(f.save(),f.globalAlpha=B,f.drawImage(ie,Oe,Ne,He,st),f.restore())}!s||I?ge(0,0,T,R):s.length&&At(s,function(Oe){ge(Oe.x*Y,Oe.y*Y,Oe.width*Y,Oe.height*Y)})},e}(Nc),OP=m7,gN=1e5,IS=314159,IP=.01,g7=.001;function _7(n){return n?n.__builtin__?!0:!(typeof n.resize!="function"||typeof n.refresh!="function"):!1}function _N(n,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+n+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var y7=function(){function n(e,t,r,s){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var c=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=Ea({},r||{}),this.dpr=r.devicePixelRatio||ah,this._singleCanvas=c,this.root=e;var f=e.style;f&&(Eo(e),e.innerHTML=""),this.storage=t;var T=this._zlevelList;this._prevDisplayList=[];var R=this._layers;if(c){var B=e,Y=B.width,q=B.height;r.width!=null&&(Y=r.width),r.height!=null&&(q=r.height),this.dpr=r.devicePixelRatio||1,B.width=Y*this.dpr,B.height=q*this.dpr,this._width=Y,this._height=q;var ie=new OP(B,this,this.dpr);ie.__builtin__=!0,ie.initContext(),R[IS]=ie,ie.zlevel=IS,T.push(IS),this._domRoot=e}else{this._width=Nm(e,0,r),this._height=Nm(e,1,r);var I=this._domRoot=_N(this._width,this._height);e.appendChild(I)}}return n.prototype.getType=function(){return"canvas"},n.prototype.isSingleCanvas=function(){return this._singleCanvas},n.prototype.getViewportRoot=function(){return this._domRoot},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),r=this._prevDisplayList,s=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,r,e,this._redrawId);for(var c=0;c<s.length;c++){var f=s[c],T=this._layers[f];if(!T.__builtin__&&T.refresh){var R=c===0?this._backgroundColor:null;T.refresh(R)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},n.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},n.prototype._paintHoverList=function(e){var t=e.length,r=this._hoverlayer;if(r&&r.clear(),!!t){for(var s={inHover:!0,viewWidth:this._width,viewHeight:this._height},c,f=0;f<t;f++){var T=e[f];T.__inHover&&(r||(r=this._hoverlayer=this.getLayer(gN)),c||(c=r.ctx,c.save()),ep(c,T,s,f===t-1))}c&&c.restore()}},n.prototype.getHoverLayer=function(){return this.getLayer(gN)},n.prototype.paintOne=function(e,t){W_(e,t)},n.prototype._paintList=function(e,t,r,s){if(this._redrawId===s){r=r||!1,this._updateLayerStatus(e);var c=this._doPaintList(e,t,r),f=c.finished,T=c.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),T&&this._paintHoverList(e),f)this.eachLayer(function(I){I.afterBrush&&I.afterBrush()});else{var R=this;gc(function(){R._paintList(e,t,r,s)})}}},n.prototype._compositeManually=function(){var e=this.getLayer(IS).ctx,t=this._domRoot.width,r=this._domRoot.height;e.clearRect(0,0,t,r),this.eachBuiltinLayer(function(s){s.virtual&&e.drawImage(s.dom,0,0,t,r)})},n.prototype._doPaintList=function(e,t,r){for(var s=this,c=[],f=this._opts.useDirtyRect,T=0;T<this._zlevelList.length;T++){var R=this._zlevelList[T],I=this._layers[R];I.__builtin__&&I!==this._hoverlayer&&(I.__dirty||r)&&c.push(I)}for(var B=!0,Y=!1,q=function(Ne){var He=c[Ne],st=He.ctx,pt=f&&He.createRepaintRects(e,t,ie._width,ie._height),Ut=r?He.__startIndex:He.__drawIndex,pn=!r&&He.incremental&&Date.now,yn=pn&&Date.now(),jn=He.zlevel===ie._zlevelList[0]?ie._backgroundColor:null;if(He.__startIndex===He.__endIndex)He.clear(!1,jn,pt);else if(Ut===He.__startIndex){var Cr=e[Ut];(!Cr.incremental||!Cr.notClear||r)&&He.clear(!1,jn,pt)}Ut===-1&&(console.error("For some unknown reason. drawIndex is -1"),Ut=He.__startIndex);var Nr,Rr=function(Ei){var Vi={inHover:!1,allClipped:!1,prevEl:null,viewWidth:s._width,viewHeight:s._height};for(Nr=Ut;Nr<He.__endIndex;Nr++){var ns=e[Nr];if(ns.__inHover&&(Y=!0),s._doPaintEl(ns,He,f,Ei,Vi,Nr===He.__endIndex-1),pn){var zo=Date.now()-yn;if(zo>15)break}}Vi.prevElClipPaths&&st.restore()};if(pt)if(pt.length===0)Nr=He.__endIndex;else for(var Er=ie.dpr,ma=0;ma<pt.length;++ma){var wa=pt[ma];st.save(),st.beginPath(),st.rect(wa.x*Er,wa.y*Er,wa.width*Er,wa.height*Er),st.clip(),Rr(wa),st.restore()}else st.save(),Rr(),st.restore();He.__drawIndex=Nr,He.__drawIndex<He.__endIndex&&(B=!1)},ie=this,ge=0;ge<c.length;ge++)q(ge);return Ct.wxa&&At(this._layers,function(Oe){Oe&&Oe.ctx&&Oe.ctx.draw&&Oe.ctx.draw()}),{finished:B,needsRefreshHover:Y}},n.prototype._doPaintEl=function(e,t,r,s,c,f){var T=t.ctx;if(r){var R=e.getPaintRect();(!s||R&&R.intersect(s))&&(ep(T,e,c,f),e.setPrevPaintRect(R))}else ep(T,e,c,f)},n.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=IS);var r=this._layers[e];return r||(r=new OP("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?ba(r,this._layerConfig[e],!0):this._layerConfig[e-IP]&&ba(r,this._layerConfig[e-IP],!0),t&&(r.virtual=t),this.insertLayer(e,r),r.initContext()),r},n.prototype.insertLayer=function(e,t){var r=this._layers,s=this._zlevelList,c=s.length,f=this._domRoot,T=null,R=-1;if(!r[e]&&!!_7(t)){if(c>0&&e>s[0]){for(R=0;R<c-1&&!(s[R]<e&&s[R+1]>e);R++);T=r[s[R]]}if(s.splice(R+1,0,e),r[e]=t,!t.virtual)if(T){var I=T.dom;I.nextSibling?f.insertBefore(t.dom,I.nextSibling):f.appendChild(t.dom)}else f.firstChild?f.insertBefore(t.dom,f.firstChild):f.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,s=0;s<r.length;s++){var c=r[s];e.call(t,this._layers[c],c)}},n.prototype.eachBuiltinLayer=function(e,t){for(var r=this._zlevelList,s=0;s<r.length;s++){var c=r[s],f=this._layers[c];f.__builtin__&&e.call(t,f,c)}},n.prototype.eachOtherLayer=function(e,t){for(var r=this._zlevelList,s=0;s<r.length;s++){var c=r[s],f=this._layers[c];f.__builtin__||e.call(t,f,c)}},n.prototype.getLayers=function(){return this._layers},n.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(Y,q){Y.__dirty=Y.__used=!1});function t(Y){c&&(c.__endIndex!==Y&&(c.__dirty=!0),c.__endIndex=Y)}if(this._singleCanvas)for(var r=1;r<e.length;r++){var s=e[r];if(s.zlevel!==e[r-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var c=null,f=0,T,R;for(R=0;R<e.length;R++){var s=e[R],I=s.zlevel,B=void 0;T!==I&&(T=I,f=0),s.incremental?(B=this.getLayer(I+g7,this._needsManuallyCompositing),B.incremental=!0,f=1):B=this.getLayer(I+(f>0?IP:0),this._needsManuallyCompositing),B.__builtin__||Zr("ZLevel "+I+" has been used by unkown layer "+B.id),B!==c&&(B.__used=!0,B.__startIndex!==R&&(B.__dirty=!0),B.__startIndex=R,B.incremental?B.__drawIndex=-1:B.__drawIndex=R,t(R),c=B),s.__dirty&as&&!s.__inHover&&(B.__dirty=!0,B.incremental&&B.__drawIndex<0&&(B.__drawIndex=R))}t(R),this.eachBuiltinLayer(function(Y,q){!Y.__used&&Y.getElementCount()>0&&(Y.__dirty=!0,Y.__startIndex=Y.__endIndex=Y.__drawIndex=0),Y.__dirty&&Y.__drawIndex<0&&(Y.__drawIndex=Y.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,At(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?ba(r[e],t,!0):r[e]=t;for(var s=0;s<this._zlevelList.length;s++){var c=this._zlevelList[s];if(c===e||c===e+IP){var f=this._layers[c];ba(f,r[e],!0)}}}},n.prototype.delLayer=function(e){var t=this._layers,r=this._zlevelList,s=t[e];!s||(s.dom.parentNode.removeChild(s.dom),delete t[e],r.splice(Ui(r,e),1))},n.prototype.resize=function(e,t){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var s=this._opts,c=this.root;if(e!=null&&(s.width=e),t!=null&&(s.height=t),e=Nm(c,0,s),t=Nm(c,1,s),r.style.display="",this._width!==e||t!==this._height){r.style.width=e+"px",r.style.height=t+"px";for(var f in this._layers)this._layers.hasOwnProperty(f)&&this._layers[f].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(IS).resize(e,t)}return this},n.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},n.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},n.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[IS].dom;var t=new OP("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var r=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var s=t.dom.width,c=t.dom.height;this.eachLayer(function(Y){Y.__builtin__?r.drawImage(Y.dom,0,0,s,c):Y.renderToCanvas&&(r.save(),Y.renderToCanvas(r),r.restore())})}else for(var f={inHover:!1,viewWidth:this._width,viewHeight:this._height},T=this.storage.getDisplayList(!0),R=0,I=T.length;R<I;R++){var B=T[R];ep(r,B,f,R===I-1)}return t.dom},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n}(),yN=y7;function AW(n){n.registerPainter("canvas",yN)}var DP=Math.sin,EI=Math.cos,bN=Math.PI,DS=Math.PI*2,xN=180/bN,EN=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,s,c,f){this._add("C",e,t,r,s,c,f)},n.prototype.quadraticCurveTo=function(e,t,r,s){this._add("Q",e,t,r,s)},n.prototype.arc=function(e,t,r,s,c,f){this.ellipse(e,t,r,r,0,s,c,f)},n.prototype.ellipse=function(e,t,r,s,c,f,T,R){var I=T-f,B=!R,Y=Math.abs(I),q=gi(Y-DS)||(B?I>=DS:-I>=DS),ie=I>0?I%DS:I%DS+DS,ge=!1;q?ge=!0:gi(Y)?ge=!1:ge=ie>=bN==!!B;var Oe=e+r*EI(f),Ne=t+s*DP(f);this._start&&this._add("M",Oe,Ne);var He=Math.round(c*xN);if(q){var st=1/this._p,pt=(B?1:-1)*(DS-st);this._add("A",r,s,He,1,+B,e+r*EI(f+pt),t+s*DP(f+pt)),st>.01&&this._add("A",r,s,He,0,+B,Oe,Ne)}else{var Ut=e+r*EI(T),pn=t+s*DP(T);this._add("A",r,s,He,+ge,+B,Ut,pn)}},n.prototype.rect=function(e,t,r,s){this._add("M",e,t),this._add("l",r,0),this._add("l",0,s),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,s,c,f,T,R,I){for(var B=[],Y=this._p,q=1;q<arguments.length;q++){var ie=arguments[q];if(isNaN(ie)){this._invalid=!0;return}B.push(Math.round(ie*Y)/Y)}this._d.push(e+B.join(" ")),this._start=e==="Z"},n.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},n.prototype.getStr=function(){return this._str},n}(),SN=EN,IA="none",CN=Math.round;function b7(n){var e=n.fill;return e!=null&&e!==IA}function wN(n){var e=n.stroke;return e!=null&&e!==IA}var SI=["lineCap","miterLimit","lineJoin"],TN=ar(SI,function(n){return"stroke-"+n.toLowerCase()});function AN(n,e,t,r){var s=e.opacity==null?1:e.opacity;if(t instanceof wp){n("opacity",s);return}if(b7(e)){var c=pa(e.fill);n("fill",c.color);var f=e.fillOpacity!=null?e.fillOpacity*c.opacity*s:c.opacity*s;(r||f<1)&&n("fill-opacity",f)}else n("fill",IA);if(wN(e)){var T=pa(e.stroke);n("stroke",T.color);var R=e.strokeNoScale?t.getLineScale():1,I=R?(e.lineWidth||0)/R:0,B=e.strokeOpacity!=null?e.strokeOpacity*T.opacity*s:T.opacity*s,Y=e.strokeFirst;if((r||I!==1)&&n("stroke-width",I),(r||Y)&&n("paint-order",Y?"stroke":"fill"),(r||B<1)&&n("stroke-opacity",B),e.lineDash){var q=yu(t),ie=q[0],ge=q[1];ie&&(ge=CN(ge||0),n("stroke-dasharray",ie.join(",")),(ge||r)&&n("stroke-dashoffset",ge))}else r&&n("stroke-dasharray",IA);for(var Oe=0;Oe<SI.length;Oe++){var Ne=SI[Oe];if(r||e[Ne]!==p_[Ne]){var He=e[Ne]||p_[Ne];He&&n(TN[Oe],He)}}}else r&&n("stroke",IA)}var Ay="http://www.w3.org/2000/svg",CI="http://www.w3.org/1999/xlink",MN="http://www.w3.org/2000/xmlns/",kN="http://www.w3.org/XML/1998/namespace";function Kg(n){return document.createElementNS(Ay,n)}function Em(n,e,t,r,s){return{tag:n,attrs:t||{},children:r,text:s,key:e}}function ew(n,e){var t=[];if(e)for(var r in e){var s=e[r],c=r;s!==!1&&(s!==!0&&s!=null&&(c+='="'+s+'"'),t.push(c))}return"<"+n+" "+t.join(" ")+">"}function MW(n){return"</"+n+">"}function tw(n,e){e=e||{};var t=e.newline?`
|
||
`:"";function r(s){var c=s.children,f=s.tag,T=s.attrs,R=s.text;return ew(f,T)+(f!=="style"?xr(R):R||"")+(c?""+t+ar(c,function(I){return r(I)}).join(t)+t:"")+MW(f)}return r(n)}function Ag(n,e,t){t=t||{};var r=t.newline?`
|
||
`:"",s=" {"+r,c=r+"}",f=ar(Ua(n),function(R){return R+s+ar(Ua(n[R]),function(I){return I+":"+n[R][I]+";"}).join(r)+c}).join(r),T=ar(Ua(e),function(R){return"@keyframes "+R+s+ar(Ua(e[R]),function(I){return I+s+ar(Ua(e[R][I]),function(B){var Y=e[R][I][B];return B==="d"&&(Y='path("'+Y+'")'),B+":"+Y+";"}).join(r)+c}).join(r)+c}).join(r);return!f&&!T?"":["<![CDATA[",f,T,"]]>"].join(r)}function wI(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function TI(n,e,t,r){return Em("svg","root",{width:n,height:e,xmlns:Ay,"xmlns:xlink":CI,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var PN={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},H_="transform-origin";function RN(n,e,t){var r=Ea({},n.shape);Ea(r,e),n.buildPath(t,r);var s=new SN;return s.reset(Qs(n)),t.rebuildPath(s,1),s.generateStr(),s.getStr()}function ON(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[H_]=t+"px "+r+"px")}var IN={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function NP(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function DN(n,e,t){var r=n.shape.paths,s={},c,f;if(At(r,function(R){var I=wI(t.zrId);I.animation=!0,DA(R,{},I,!0);var B=I.cssAnims,Y=I.cssNodes,q=Ua(B),ie=q.length;if(!!ie){f=q[ie-1];var ge=B[f];for(var Oe in ge){var Ne=ge[Oe];s[Oe]=s[Oe]||{d:""},s[Oe].d+=Ne.d||""}for(var He in Y){var st=Y[He].animation;st.indexOf(f)>=0&&(c=st)}}}),!!c){e.d=!1;var T=NP(s,t);return c.replace(f,T)}}function Eb(n){return ei(n)?PN[n]?"cubic-bezier("+PN[n]+")":xo(n)?n:"":""}function DA(n,e,t,r){var s=n.animators,c=s.length,f=[];if(n instanceof hA){var T=DN(n,e,t);if(T)f.push(T);else if(!c)return}else if(!c)return;for(var R={},I=0;I<c;I++){var B=s[I],Y=[B.getMaxTime()/1e3+"s"],q=Eb(B.getClip().easing),ie=B.getDelay();q?Y.push(q):Y.push("linear"),ie&&Y.push(ie/1e3+"s"),B.getLoop()&&Y.push("infinite");var ge=Y.join(" ");R[ge]=R[ge]||[ge,[]],R[ge][1].push(B)}function Oe(st){var pt=st[1],Ut=pt.length,pn={},yn={},jn={},Cr="animation-timing-function";function Nr(ic,Uc,bu){for(var tc=ic.getTracks(),nf=ic.getMaxTime(),gd=0;gd<tc.length;gd++){var xd=tc[gd];if(xd.needsAnimate()){var lv=xd.keyframes,_p=xd.propName;if(bu&&(_p=bu(_p)),_p)for(var $v=0;$v<lv.length;$v++){var _v=lv[$v],yp=Math.round(_v.time/nf*100)+"%",Wd=Eb(_v.easing),vu=_v.rawValue;(ei(vu)||yo(vu))&&(Uc[yp]=Uc[yp]||{},Uc[yp][_p]=_v.rawValue,Wd&&(Uc[yp][Cr]=Wd))}}}}for(var Rr=0;Rr<Ut;Rr++){var Er=pt[Rr],ma=Er.targetName;ma?ma==="shape"&&Nr(Er,yn):!r&&Nr(Er,pn)}for(var wa in pn){var Ga={};lh(Ga,n),Ea(Ga,pn[wa]);var Ei=Hl(Ga),Vi=pn[wa][Cr];jn[wa]=Ei?{transform:Ei}:{},ON(jn[wa],Ga),Vi&&(jn[wa][Cr]=Vi)}var ns,zo=!0;for(var wa in yn){jn[wa]=jn[wa]||{};var xs=!ns,Vi=yn[wa][Cr];xs&&(ns=new f_);var pl=ns.len();ns.reset(),jn[wa].d=RN(n,yn[wa],ns);var Rl=ns.len();if(!xs&&pl!==Rl){zo=!1;break}Vi&&(jn[wa][Cr]=Vi)}if(!zo)for(var wa in jn)delete jn[wa].d;if(!r)for(var Rr=0;Rr<Ut;Rr++){var Er=pt[Rr],ma=Er.targetName;ma==="style"&&Nr(Er,jn,function(tc){return IN[tc]})}for(var zl=Ua(jn),Yc=!0,kc,Rr=1;Rr<zl.length;Rr++){var tf=zl[Rr-1],wf=zl[Rr];if(jn[tf][H_]!==jn[wf][H_]){Yc=!1;break}kc=jn[tf][H_]}if(Yc&&kc){for(var wa in jn)jn[wa][H_]&&delete jn[wa][H_];e[H_]=kc}if(Yn(zl,function(ic){return Ua(jn[ic]).length>0}).length){var su=NP(jn,t);return su+" "+st[0]+" both"}}for(var Ne in R){var T=Oe(R[Ne]);T&&f.push(T)}if(f.length){var He=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+He]={animation:f.join(",")},e.class=He}}var NS=Math.round;function AI(n){return n&&ei(n.src)}function LP(n){return n&&ja(n.toDataURL)}function LS(n,e,t,r){AN(function(s,c){var f=s==="fill"||s==="stroke";f&&qa(c)?PI(e,n,s,r):f&&Nt(c)?RI(t,n,s,r):n[s]=c},e,t,!1),zN(t,n,r)}function MI(n){return gi(n[0]-1)&&gi(n[1])&&gi(n[2])&&gi(n[3]-1)}function x7(n){return gi(n[4])&&gi(n[5])}function kI(n,e,t){if(e&&!(x7(e)&&MI(e))){var r=t?10:1e4;n.transform=MI(e)?"translate("+NS(e[4]*r)/r+" "+NS(e[5]*r)/r+")":Jo(e)}}function NN(n,e,t){for(var r=n.points,s=[],c=0;c<r.length;c++)s.push(NS(r[c][0]*t)/t),s.push(NS(r[c][1]*t)/t);e.points=s.join(" ")}function LN(n){return!n.smooth}function E7(n){var e=ar(n,function(t){return typeof t=="string"?[t,t]:t});return function(t,r,s){for(var c=0;c<e.length;c++){var f=e[c],T=t[f[0]];T!=null&&(r[f[1]]=NS(T*s)/s)}}}var FN={circle:[E7(["cx","cy","r"])],polyline:[NN,LN],polygon:[NN,LN]};function jN(n){for(var e=n.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function BN(n,e){var t=n.style,r=n.shape,s=FN[n.type],c={},f=e.animation,T="path",R=n.style.strokePercent,I=e.compress&&Qs(n)||4;if(s&&!e.willUpdate&&!(s[1]&&!s[1](r))&&!(f&&jN(n))&&!(R<1)){T=n.type;var B=Math.pow(10,I);s[0](r,c,B)}else{var Y=!n.path||n.shapeChanged();n.path||n.createPathProxy();var q=n.path;Y&&(q.beginPath(),n.buildPath(q,n.shape),n.pathUpdated());var ie=q.getVersion(),ge=n,Oe=ge.__svgPathBuilder;(ge.__svgPathVersion!==ie||!Oe||R!==ge.__svgPathStrokePercent)&&(Oe||(Oe=ge.__svgPathBuilder=new SN),Oe.reset(I),q.rebuildPath(Oe,R),Oe.generateStr(),ge.__svgPathVersion=ie,ge.__svgPathStrokePercent=R),c.d=Oe.getStr()}return kI(c,n.transform),LS(c,t,n,e),e.animation&&DA(n,c,e),Em(T,n.id+"",c)}function UN(n,e){var t=n.style,r=t.image;if(r&&!ei(r)&&(AI(r)?r=r.src:LP(r)&&(r=r.toDataURL())),!!r){var s=t.x||0,c=t.y||0,f=t.width,T=t.height,R={href:r,width:f,height:T};return s&&(R.x=s),c&&(R.y=c),kI(R,n.transform),LS(R,t,n,e),e.animation&&DA(n,R,e),Em("image",n.id+"",R)}}function ZN(n,e){var t=n.style,r=t.text;if(r!=null&&(r+=""),!(!r||isNaN(t.x)||isNaN(t.y))){var s=t.font||Zt,c=t.x||0,f=js(t.y||0,Jm(s),t.textBaseline),T=gl[t.textAlign]||t.textAlign,R={"dominant-baseline":"central","text-anchor":T};if(nx(t)){var I="",B=t.fontStyle,Y=ME(t.fontSize);if(!parseFloat(Y))return;var q=t.fontFamily||mt,ie=t.fontWeight;I+="font-size:"+Y+";font-family:"+q+";",B&&B!=="normal"&&(I+="font-style:"+B+";"),ie&&ie!=="normal"&&(I+="font-weight:"+ie+";"),R.style=I}else R.style="font: "+s;return r.match(/\s/)&&(R["xml:space"]="preserve"),c&&(R.x=c),f&&(R.y=f),kI(R,n.transform),LS(R,t,n,e),e.animation&&DA(n,R,e),Em("text",n.id+"",R,void 0,r)}}function VN(n,e){if(n instanceof Od)return BN(n,e);if(n instanceof wp)return UN(n,e);if(n instanceof oy)return ZN(n,e)}function zN(n,e,t){var r=n.style;if(Zl(r)){var s=ko(n),c=t.shadowCache,f=c[s];if(!f){var T=n.getGlobalScale(),R=T[0],I=T[1];if(!R||!I)return;var B=r.shadowOffsetX||0,Y=r.shadowOffsetY||0,q=r.shadowBlur,ie=pa(r.shadowColor),ge=ie.opacity,Oe=ie.color,Ne=q/2/R,He=q/2/I,st=Ne+" "+He;f=t.zrId+"-s"+t.shadowIdx++,t.defs[f]=Em("filter",f,{id:f,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Em("feDropShadow","",{dx:B/R,dy:Y/I,stdDeviation:st,"flood-color":Oe,"flood-opacity":ge})]),c[s]=f}e.filter=Es(f)}}function PI(n,e,t,r){var s=n[t],c,f={gradientUnits:s.global?"userSpaceOnUse":"objectBoundingBox"};if(xn(s))c="linearGradient",f.x1=s.x,f.y1=s.y,f.x2=s.x2,f.y2=s.y2;else if(Yr(s))c="radialGradient",f.cx=sn(s.x,.5),f.cy=sn(s.y,.5),f.r=sn(s.r,.5);else return;for(var T=s.colorStops,R=[],I=0,B=T.length;I<B;++I){var Y=No(T[I].offset)*100+"%",q=T[I].color,ie=pa(q),ge=ie.color,Oe=ie.opacity,Ne={offset:Y};Ne["stop-color"]=ge,Oe<1&&(Ne["stop-opacity"]=Oe),R.push(Em("stop",I+"",Ne))}var He=Em(c,"",f,R),st=tw(He),pt=r.gradientCache,Ut=pt[st];Ut||(Ut=r.zrId+"-g"+r.gradientIdx++,pt[st]=Ut,f.id=Ut,r.defs[Ut]=Em(c,Ut,f,R)),e[t]=Es(Ut)}function RI(n,e,t,r){var s=n.style[t],c=n.getBoundingRect(),f={},T=s.repeat,R=T==="no-repeat",I=T==="repeat-x",B=T==="repeat-y",Y;if(Me(s)){var q=s.imageWidth,ie=s.imageHeight,ge=void 0,Oe=s.image;if(ei(Oe)?ge=Oe:AI(Oe)?ge=Oe.src:LP(Oe)&&(ge=Oe.toDataURL()),typeof Image=="undefined"){var Ne="Image width/height must been given explictly in svg-ssr renderer.";Ln(q,Ne),Ln(ie,Ne)}else if(q==null||ie==null){var He=function(Er,ma){if(Er){var wa=Er.elm,Ga=q||ma.width,Ei=ie||ma.height;Er.tag==="pattern"&&(I?(Ei=1,Ga/=c.width):B&&(Ga=1,Ei/=c.height)),Er.attrs.width=Ga,Er.attrs.height=Ei,wa&&(wa.setAttribute("width",Ga),wa.setAttribute("height",Ei))}},st=pc(ge,null,n,function(Rr){R||He(yn,Rr),He(Y,Rr)});st&&st.width&&st.height&&(q=q||st.width,ie=ie||st.height)}Y=Em("image","img",{href:ge,width:q,height:ie}),f.width=q,f.height=ie}else s.svgElement&&(Y=Kr(s.svgElement),f.width=s.svgWidth,f.height=s.svgHeight);if(!!Y){var pt,Ut;R?pt=Ut=1:I?(Ut=1,pt=f.width/c.width):B?(pt=1,Ut=f.height/c.height):f.patternUnits="userSpaceOnUse",pt!=null&&!isNaN(pt)&&(f.width=pt),Ut!=null&&!isNaN(Ut)&&(f.height=Ut);var pn=Hl(s);pn&&(f.patternTransform=pn);var yn=Em("pattern","",f,[Y]),jn=tw(yn),Cr=r.patternCache,Nr=Cr[jn];Nr||(Nr=r.zrId+"-p"+r.patternIdx++,Cr[jn]=Nr,f.id=Nr,yn=r.defs[Nr]=Em("pattern",Nr,f,[Y])),e[t]=Es(Nr)}}function WN(n,e,t){var r=t.clipPathCache,s=t.defs,c=r[n.id];if(!c){c=t.zrId+"-c"+t.clipPathIdx++;var f={id:c};r[n.id]=c,s[c]=Em("clipPath",c,f,[BN(n,t)])}e["clip-path"]=Es(c)}function OI(n){return document.createTextNode(n)}function HN(n){return document.createComment(n)}function l1(n,e,t){n.insertBefore(e,t)}function S7(n,e){n.removeChild(e)}function II(n,e){n.appendChild(e)}function FP(n){return n.parentNode}function GN(n){return n.nextSibling}function kW(n){return n.tagName}function NA(n,e){n.textContent=e}function C7(n){return n.textContent}function w7(n){return n.nodeType===1}function PW(n){return n.nodeType===3}function RW(n){return n.nodeType===8}var DI=58,T7=120,A7=Em("","");function NI(n){return n===void 0}function c1(n){return n!==void 0}function M7(n,e,t){for(var r={},s=e;s<=t;++s){var c=n[s].key;c!==void 0&&(r[c]=s)}return r}function LA(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function FA(n){var e,t=n.children,r=n.tag;if(c1(r)){var s=n.elm=Kg(r);if(FI(A7,n),La(t))for(e=0;e<t.length;++e){var c=t[e];c!=null&&II(s,FA(c))}else c1(n.text)&&!to(n.text)&&II(s,OI(n.text))}else n.elm=OI(n.text);return n.elm}function LI(n,e,t,r,s){for(;r<=s;++r){var c=t[r];c!=null&&l1(n,FA(c),e)}}function jP(n,e,t,r){for(;t<=r;++t){var s=e[t];if(s!=null)if(c1(s.tag)){var c=FP(s.elm);S7(c,s.elm)}else S7(n,s.elm)}}function FI(n,e){var t,r=e.elm,s=n&&n.attrs||{},c=e.attrs||{};if(s!==c){for(t in c){var f=c[t],T=s[t];T!==f&&(f===!0?r.setAttribute(t,""):f===!1?r.removeAttribute(t):t.charCodeAt(0)!==T7?r.setAttribute(t,f):t==="xmlns:xlink"||t==="xmlns"?r.setAttributeNS(MN,t,f):t.charCodeAt(3)===DI?r.setAttributeNS(kN,t,f):t.charCodeAt(5)===DI?r.setAttributeNS(CI,t,f):r.setAttribute(t,f))}for(t in s)t in c||r.removeAttribute(t)}}function OW(n,e,t){for(var r=0,s=0,c=e.length-1,f=e[0],T=e[c],R=t.length-1,I=t[0],B=t[R],Y,q,ie,ge;r<=c&&s<=R;)f==null?f=e[++r]:T==null?T=e[--c]:I==null?I=t[++s]:B==null?B=t[--R]:LA(f,I)?(u1(f,I),f=e[++r],I=t[++s]):LA(T,B)?(u1(T,B),T=e[--c],B=t[--R]):LA(f,B)?(u1(f,B),l1(n,f.elm,GN(T.elm)),f=e[++r],B=t[--R]):LA(T,I)?(u1(T,I),l1(n,T.elm,f.elm),T=e[--c],I=t[++s]):(NI(Y)&&(Y=M7(e,r,c)),q=Y[I.key],NI(q)?l1(n,FA(I),f.elm):(ie=e[q],ie.tag!==I.tag?l1(n,FA(I),f.elm):(u1(ie,I),e[q]=void 0,l1(n,ie.elm,f.elm))),I=t[++s]);(r<=c||s<=R)&&(r>c?(ge=t[R+1]==null?null:t[R+1].elm,LI(n,ge,t,s,R)):jP(n,e,r,c))}function u1(n,e){var t=e.elm=n.elm,r=n.children,s=e.children;n!==e&&(FI(n,e),NI(e.text)?c1(r)&&c1(s)?r!==s&&OW(t,r,s):c1(s)?(c1(n.text)&&NA(t,""),LI(t,null,s,0,s.length-1)):c1(r)?jP(t,r,0,r.length-1):c1(n.text)&&NA(t,""):n.text!==e.text&&(c1(r)&&jP(t,r,0,r.length-1),NA(t,e.text)))}function k7(n,e){if(LA(n,e))u1(n,e);else{var t=n.elm,r=FP(t);FA(e),r!==null&&(l1(r,e.elm,GN(t)),jP(r,[n],0,0))}return e}var P7=0,jI=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=$N("refreshHover"),this.configLayer=$N("configLayer"),this.storage=t,this._opts=r=Ea({},r),this.root=e,this._id="zr"+P7++,this._oldVNode=TI(r.width,r.height),e&&!r.ssr){var s=this._viewport=document.createElement("div");s.style.cssText="position:relative;overflow:hidden";var c=this._svgDom=this._oldVNode.elm=Kg("svg");FI(null,this._oldVNode),s.appendChild(c),e.appendChild(s)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",k7(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return VN(e,wI(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,s=this._height,c=wI(this._id);c.animation=e.animation,c.willUpdate=e.willUpdate,c.compress=e.compress;var f=[],T=this._bgVNode=KN(r,s,this._backgroundColor,c);T&&f.push(T);var R=e.compress?null:this._mainVNode=Em("g","main",{},[]);this._paintList(t,c,R?R.children:f),R&&f.push(R);var I=ar(Ua(c.defs),function(q){return c.defs[q]});if(I.length&&f.push(Em("defs","defs",{},I)),e.animation){var B=Ag(c.cssNodes,c.cssAnims,{newline:!0});if(B){var Y=Em("style","stl",{},[],B);f.push(Y)}}return TI(r,s,f,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},tw(this.renderToVNode({animation:sn(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:sn(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var s=e.length,c=[],f=0,T,R,I=0,B=0;B<s;B++){var Y=e[B];if(!Y.invisible){var q=Y.__clipPaths,ie=q&&q.length||0,ge=R&&R.length||0,Oe=void 0;for(Oe=Math.max(ie-1,ge-1);Oe>=0&&!(q&&R&&q[Oe]===R[Oe]);Oe--);for(var Ne=ge-1;Ne>Oe;Ne--)f--,T=c[f-1];for(var He=Oe+1;He<ie;He++){var st={};WN(q[He],st,t);var pt=Em("g","clip-g-"+I++,st,[]);(T?T.children:r).push(pt),c[f++]=pt,T=pt}R=q;var Ut=VN(Y,t);Ut&&(T?T.children:r).push(Ut)}}},n.prototype.resize=function(e,t){var r=this._opts,s=this.root,c=this._viewport;if(e!=null&&(r.width=e),t!=null&&(r.height=t),s&&c&&(c.style.display="none",e=Nm(s,0,r),t=Nm(s,1,r),c.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,c){var f=c.style;f.width=e+"px",f.height=t+"px"}if(Nt(this._backgroundColor))this.refresh();else{var T=this._svgDom;T&&(T.setAttribute("width",e),T.setAttribute("height",t));var R=this._bgVNode&&this._bgVNode.elm;R&&(R.setAttribute("width",e),R.setAttribute("height",t))}}},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},n.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},n.prototype.toDataURL=function(e){var t=this.renderToString(),r="data:image/svg+xml;";return e?(t=Lc(t),t&&r+"base64,"+t):r+"charset=UTF-8,"+encodeURIComponent(t)},n}();function $N(n){return function(){}}function KN(n,e,t,r){var s;if(t&&t!=="none")if(s=Em("rect","bg",{width:n,height:e,x:"0",y:"0",id:"0"}),qa(t))PI({fill:t},s.attrs,"fill",r);else if(Nt(t))RI({style:{fill:t},dirty:Bo,getBoundingRect:function(){return{width:n,height:e}}},s.attrs,"fill",r);else{var c=pa(t),f=c.color,T=c.opacity;s.attrs.fill=f,T<1&&(s.attrs["fill-opacity"]=T)}return s}var YN=jI;function jA(n){n.registerPainter("svg",YN)}function FS(n){return n==null?0:n.length||1}function XN(n){return n}var JN=function(){function n(e,t,r,s,c,f){this._old=e,this._new=t,this._oldKeyGetter=r||XN,this._newKeyGetter=s||XN,this.context=c,this._diffModeMultiple=f==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},s=new Array(e.length),c=new Array(t.length);this._initIndexMap(e,null,s,"_oldKeyGetter"),this._initIndexMap(t,r,c,"_newKeyGetter");for(var f=0;f<e.length;f++){var T=s[f],R=r[T],I=FS(R);if(I>1){var B=R.shift();R.length===1&&(r[T]=R[0]),this._update&&this._update(B,f)}else I===1?(r[T]=null,this._update&&this._update(R,f)):this._remove&&this._remove(f)}this._performRestAdd(c,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},s={},c=[],f=[];this._initIndexMap(e,r,c,"_oldKeyGetter"),this._initIndexMap(t,s,f,"_newKeyGetter");for(var T=0;T<c.length;T++){var R=c[T],I=r[R],B=s[R],Y=FS(I),q=FS(B);if(Y>1&&q===1)this._updateManyToOne&&this._updateManyToOne(B,I),s[R]=null;else if(Y===1&&q>1)this._updateOneToMany&&this._updateOneToMany(B,I),s[R]=null;else if(Y===1&&q===1)this._update&&this._update(B,I),s[R]=null;else if(Y>1&&q>1)this._updateManyToMany&&this._updateManyToMany(B,I),s[R]=null;else if(Y>1)for(var ie=0;ie<Y;ie++)this._remove&&this._remove(I[ie]);else this._remove&&this._remove(I)}this._performRestAdd(f,s)},n.prototype._performRestAdd=function(e,t){for(var r=0;r<e.length;r++){var s=e[r],c=t[s],f=FS(c);if(f>1)for(var T=0;T<f;T++)this._add&&this._add(c[T]);else f===1&&this._add&&this._add(c);t[s]=null}},n.prototype._initIndexMap=function(e,t,r,s){for(var c=this._diffModeMultiple,f=0;f<e.length;f++){var T="_ec_"+this[s](e[f],f);if(c||(r[f]=T),!!t){var R=t[T],I=FS(R);I===0?(t[T]=f,c&&r.push(T)):I===1?t[T]=[R,f]:R.push(f)}}},n}(),Sb=JN,R7=function(){function n(e,t){this._encode=e,this._schema=t}return n.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},n.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},n}();function IW(n,e){var t={},r=t.encode={},s=Za(),c=[],f=[],T={};At(n.dimensions,function(q){var ie=n.getDimensionInfo(q),ge=ie.coordDim;if(ge){var Oe=ie.coordDimIndex;QN(r,ge)[Oe]=q,ie.isExtraCoord||(s.set(ge,1),O7(ie.type)&&(c[0]=q),QN(T,ge)[Oe]=n.getDimensionIndex(ie.name)),ie.defaultTooltip&&f.push(q)}xT.each(function(Ne,He){var st=QN(r,He),pt=ie.otherDims[He];pt!=null&&pt!==!1&&(st[pt]=ie.name)})});var R=[],I={};s.each(function(q,ie){var ge=r[ie];I[ie]=ge[0],R=R.concat(ge)}),t.dataDimsOnCoord=R,t.dataDimIndicesOnCoord=ar(R,function(q){return n.getDimensionInfo(q).storeDimIndex}),t.encodeFirstDimNotExtra=I;var B=r.label;B&&B.length&&(c=B.slice());var Y=r.tooltip;return Y&&Y.length?f=Y.slice():f.length||(f=c.slice()),r.defaultedLabel=c,r.defaultedTooltip=f,t.userOutput=new R7(T,e),t}function QN(n,e){return n.hasOwnProperty(e)||(n[e]=[]),n[e]}function BI(n){return n==="category"?"ordinal":n==="time"?"time":"float"}function O7(n){return!(n==="ordinal"||n==="time")}var qN=function(){function n(e){this.otherDims={},e!=null&&Ea(this,e)}return n}(),BA=qN,I7=Bi(),D7={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Cb=function(){function n(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(e){this._dimOmitted=e,!!e&&(this._dimNameMap||(this._dimNameMap=UI(this.source)))},n.prototype.getSourceDimensionIndex=function(e){return sn(this._dimNameMap.get(e),-1)},n.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},n.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=rb(this.source),r=!ZI(e),s="",c=[],f=0,T=0;f<e;f++){var R=void 0,I=void 0,B=void 0,Y=this.dimensions[T];if(Y&&Y.storeDimIndex===f)R=t?Y.name:null,I=Y.type,B=Y.ordinalMeta,T++;else{var q=this.getSourceDimension(f);q&&(R=t?q.name:null,I=q.type)}c.push({property:R,type:I,ordinalMeta:B}),t&&R!=null&&(!Y||!Y.isCalculationCoord)&&(s+=r?R.replace(/\`/g,"`1").replace(/\$/g,"`2"):R),s+="$",s+=D7[I]||"f",B&&(s+=B.uid),s+="$"}var ie=this.source,ge=[ie.seriesLayoutBy,ie.startIndex,s].join("$$");return{dimensions:c,hash:ge}},n.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,r=0;t<this._fullDimCount;t++){var s=void 0,c=this.dimensions[r];if(c&&c.storeDimIndex===t)c.isCalculationCoord||(s=c.name),r++;else{var f=this.getSourceDimension(t);f&&(s=f.name)}e.push(s)}return e},n.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},n}();function BP(n){return n instanceof Cb}function eL(n){for(var e=Za(),t=0;t<(n||[]).length;t++){var r=n[t],s=to(r)?r.name:r;s!=null&&e.get(s)==null&&e.set(s,t)}return e}function UI(n){var e=I7(n);return e.dimNameMap||(e.dimNameMap=eL(n.dimensionsDefine))}function ZI(n){return n>30}var UA=to,Kx=ar,DW=typeof Int32Array=="undefined"?Array:Int32Array,UP="e\0\0",ZP=-1,tL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],VI=["_approximateExtent"],nL,ZA,nw,rw,zI,VA,WI,NW=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,s=!1;BP(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(s=!0,r=e),r=r||["x","y"];for(var c={},f=[],T={},R=!1,I={},B=0;B<r.length;B++){var Y=r[B],q=ei(Y)?new BA({name:Y}):Y instanceof BA?Y:new BA(Y),ie=q.name;q.type=q.type||"float",q.coordDim||(q.coordDim=ie,q.coordDimIndex=0);var ge=q.otherDims=q.otherDims||{};f.push(ie),c[ie]=q,I[ie]!=null&&(R=!0),q.createInvertedIndices&&(T[ie]=[]),ge.itemName===0&&(this._nameDimIdx=B),ge.itemId===0&&(this._idDimIdx=B),s&&(q.storeDimIndex=B)}if(this.dimensions=f,this._dimInfos=c,this._initGetDimensionInfo(R),this.hostModel=t,this._invertedIndicesMap=T,this._dimOmitted){var Oe=this._dimIdxToName=Za();At(f,function(Ne){Oe.set(c[Ne].storeDimIndex,Ne)})}}return n.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var r=this._dimIdxToName.get(t);if(r!=null)return r;var s=this._schema.getSourceDimension(t);if(s)return s.name},n.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var r=this._getDimInfo(e);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},n.prototype._recognizeDimIndex=function(e){if(yo(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},n.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},n.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},n.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(r){return t.hasOwnProperty(r)?t[r]:void 0}:function(r){return t[r]}},n.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},n.prototype.mapDimension=function(e,t){var r=this._dimSummary;if(t==null)return r.encodeFirstDimNotExtra[e];var s=r.encode[e];return s?s[t]:null},n.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,r=t.encode[e];return(r||[]).slice()},n.prototype.getStore=function(){return this._store},n.prototype.initData=function(e,t,r){var s=this,c;if(e instanceof iS&&(c=e),!c){var f=this.dimensions,T=Ek(e)||Pn(e)?new o2(e,f.length):e;c=new iS;var R=Kx(f,function(I){return{type:s._dimInfos[I].type,property:I}});c.initData(T,R,r)}this._store=c,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,c.count()),this._dimSummary=IW(this,this._schema),this.userOutput=this._dimSummary.userOutput},n.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},n.prototype.appendValues=function(e,t){var r=this._store.appendValues(e,t.length),s=r.start,c=r.end,f=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var T=s;T<c;T++){var R=T-s;this._nameList[T]=t[R],f&&WI(this,T)}},n.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,r=0;r<t.length;r++){var s=this._dimInfos[t[r]];s.ordinalMeta&&e.collectOrdinalMeta(s.storeDimIndex,s.ordinalMeta)}},n.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==v0&&!e.fillStorage},n.prototype._doInit=function(e,t){if(!(e>=t)){var r=this._store,s=r.getProvider();this._updateOrdinalMeta();var c=this._nameList,f=this._idList,T=s.getSource().sourceFormat,R=T===rd;if(R&&!s.pure)for(var I=[],B=e;B<t;B++){var Y=s.getItem(B,I);if(!this.hasItemOption&&Id(Y)&&(this.hasItemOption=!0),Y){var q=Y.name;c[B]==null&&q!=null&&(c[B]=Ta(q,null));var ie=Y.id;f[B]==null&&ie!=null&&(f[B]=Ta(ie,null))}}if(this._shouldMakeIdFromName())for(var B=e;B<t;B++)WI(this,B);nL(this)}},n.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},n.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},n.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},n.prototype.setCalculationInfo=function(e,t){UA(e)?Ea(this._calculationInfo,e):this._calculationInfo[e]=t},n.prototype.getName=function(e){var t=this.getRawIndex(e),r=this._nameList[t];return r==null&&this._nameDimIdx!=null&&(r=nw(this,this._nameDimIdx,t)),r==null&&(r=""),r},n.prototype._getCategory=function(e,t){var r=this._store.get(e,t),s=this._store.getOrdinalMeta(e);return s?s.categories[r]:r},n.prototype.getId=function(e){return ZA(this,this.getRawIndex(e))},n.prototype.count=function(){return this._store.count()},n.prototype.get=function(e,t){var r=this._store,s=this._dimInfos[e];if(s)return r.get(s.storeDimIndex,t)},n.prototype.getByRawIndex=function(e,t){var r=this._store,s=this._dimInfos[e];if(s)return r.getByRawIndex(s.storeDimIndex,t)},n.prototype.getIndices=function(){return this._store.getIndices()},n.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},n.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},n.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},n.prototype.getValues=function(e,t){var r=this,s=this._store;return La(e)?s.getValues(Kx(e,function(c){return r._getStoreDimIndex(c)}),t):s.getValues(e)},n.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,r=0,s=t.length;r<s;r++)if(isNaN(this._store.get(t[r],e)))return!1;return!0},n.prototype.indexOfName=function(e){for(var t=0,r=this._store.count();t<r;t++)if(this.getName(t)===e)return t;return-1},n.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},n.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},n.prototype.rawIndexOf=function(e,t){var r=e&&this._invertedIndicesMap[e],s=r[t];return s==null||isNaN(s)?ZP:s},n.prototype.indicesOfNearest=function(e,t,r){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,r)},n.prototype.each=function(e,t,r){"use strict";ja(e)&&(r=t,t=e,e=[]);var s=r||this,c=Kx(rw(e),this._getStoreDimIndex,this);this._store.each(c,s?Xa(t,s):t)},n.prototype.filterSelf=function(e,t,r){"use strict";ja(e)&&(r=t,t=e,e=[]);var s=r||this,c=Kx(rw(e),this._getStoreDimIndex,this);return this._store=this._store.filter(c,s?Xa(t,s):t),this},n.prototype.selectRange=function(e){"use strict";var t=this,r={},s=Ua(e),c=[];return At(s,function(f){var T=t._getStoreDimIndex(f);r[T]=e[f],c.push(T)}),this._store=this._store.selectRange(r),this},n.prototype.mapArray=function(e,t,r){"use strict";ja(e)&&(r=t,t=e,e=[]),r=r||this;var s=[];return this.each(e,function(){s.push(t&&t.apply(this,arguments))},r),s},n.prototype.map=function(e,t,r,s){"use strict";var c=r||s||this,f=Kx(rw(e),this._getStoreDimIndex,this),T=VA(this);return T._store=this._store.map(f,c?Xa(t,c):t),T},n.prototype.modify=function(e,t,r,s){var c=this,f=r||s||this,T=Kx(rw(e),this._getStoreDimIndex,this);this._store.modify(T,f?Xa(t,f):t)},n.prototype.downSample=function(e,t,r,s){var c=VA(this);return c._store=this._store.downSample(this._getStoreDimIndex(e),t,r,s),c},n.prototype.lttbDownSample=function(e,t){var r=VA(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),r},n.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},n.prototype.getItemModel=function(e){var t=this.hostModel,r=this.getRawDataItem(e);return new Lv(r,t,t&&t.ecModel)},n.prototype.diff=function(e){var t=this;return new Sb(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return ZA(e,r)},function(r){return ZA(t,r)})},n.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},n.prototype.setVisual=function(e,t){this._visual=this._visual||{},UA(e)?Ea(this._visual,e):this._visual[e]=t},n.prototype.getItemVisual=function(e,t){var r=this._itemVisuals[e],s=r&&r[t];return s==null?this.getVisual(t):s},n.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,s=r[e];s||(s=r[e]={});var c=s[t];return c==null&&(c=this.getVisual(t),La(c)?c=c.slice():UA(c)&&(c=Ea({},c)),s[t]=c),c},n.prototype.setItemVisual=function(e,t,r){var s=this._itemVisuals[e]||{};this._itemVisuals[e]=s,UA(t)?Ea(s,t):s[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){UA(e)?Ea(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?Ea(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;PE(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){At(this._graphicEls,function(r,s){r&&e&&e.call(t,r,s)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Kx(this.dimensions,this._getDimInfo,this),this.hostModel)),zI(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];!ja(r)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var s=r.apply(this,arguments);return t.apply(this,[s].concat(gr(arguments)))})},n.internalField=function(){nL=function(e){var t=e._invertedIndicesMap;At(t,function(r,s){var c=e._dimInfos[s],f=c.ordinalMeta,T=e._store;if(f){r=t[s]=new DW(f.categories.length);for(var R=0;R<r.length;R++)r[R]=ZP;for(var R=0;R<T.count();R++)r[T.get(c.storeDimIndex,R)]=R}})},nw=function(e,t,r){return Ta(e._getCategory(t,r),null)},ZA=function(e,t){var r=e._idList[t];return r==null&&e._idDimIdx!=null&&(r=nw(e,e._idDimIdx,t)),r==null&&(r=UP+t),r},rw=function(e){return La(e)||(e=e!=null?[e]:[]),e},VA=function(e){var t=new n(e._schema?e._schema:Kx(e.dimensions,e._getDimInfo,e),e.hostModel);return zI(t,e),t},zI=function(e,t){At(tL.concat(t.__wrappedMethods||[]),function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e.__wrappedMethods=t.__wrappedMethods,At(VI,function(r){e[r]=Kr(t[r])}),e._calculationInfo=Ea({},t._calculationInfo)},WI=function(e,t){var r=e._nameList,s=e._idList,c=e._nameDimIdx,f=e._idDimIdx,T=r[t],R=s[t];if(T==null&&c!=null&&(r[t]=T=nw(e,c,t)),R==null&&f!=null&&(s[t]=R=nw(e,f,t)),R==null&&T!=null){var I=e._nameRepeatCount,B=I[T]=(I[T]||0)+1;R=T,B>1&&(R+="__ec__"+B),s[t]=R}}}(),n}(),M_=NW;function HI(n,e){return aw(n,e).dimensions}function aw(n,e){Ek(n)||(n=Ck(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],s=Za(),c=[],f=L7(n,t,r,e.dimensionsCount),T=e.canOmitUnusedDimensions&&ZI(f),R=r===n.dimensionsDefine,I=R?UI(n):eL(r),B=e.encodeDefine;!B&&e.encodeDefaulter&&(B=e.encodeDefaulter(n,f));for(var Y=Za(B),q=new Dk(f),ie=0;ie<q.length;ie++)q[ie]=-1;function ge(Nr){var Rr=q[Nr];if(Rr<0){var Er=r[Nr],ma=to(Er)?Er:{name:Er},wa=new BA,Ga=ma.name;Ga!=null&&I.get(Ga)!=null&&(wa.name=wa.displayName=Ga),ma.type!=null&&(wa.type=ma.type),ma.displayName!=null&&(wa.displayName=ma.displayName);var Ei=c.length;return q[Nr]=Ei,wa.storeDimIndex=Nr,c.push(wa),wa}return c[Rr]}if(!T)for(var ie=0;ie<f;ie++)ge(ie);Y.each(function(Nr,Rr){var Er=Bf(Nr).slice();if(Er.length===1&&!ei(Er[0])&&Er[0]<0){Y.set(Rr,!1);return}var ma=Y.set(Rr,[]);At(Er,function(wa,Ga){var Ei=ei(wa)?I.get(wa):wa;Ei!=null&&Ei<f&&(ma[Ga]=Ei,Ne(ge(Ei),Rr,Ga))})});var Oe=0;At(t,function(Nr){var Rr,Er,ma,wa;if(ei(Nr))Rr=Nr,wa={};else{wa=Nr,Rr=wa.name;var Ga=wa.ordinalMeta;wa.ordinalMeta=null,wa=Ea({},wa),wa.ordinalMeta=Ga,Er=wa.dimsDef,ma=wa.otherDims,wa.name=wa.coordDim=wa.coordDimIndex=wa.dimsDef=wa.otherDims=null}var Ei=Y.get(Rr);if(Ei!==!1){if(Ei=Bf(Ei),!Ei.length)for(var Vi=0;Vi<(Er&&Er.length||1);Vi++){for(;Oe<f&&ge(Oe).coordDim!=null;)Oe++;Oe<f&&Ei.push(Oe++)}At(Ei,function(ns,zo){var xs=ge(ns);if(R&&wa.type!=null&&(xs.type=wa.type),Ne(Pi(xs,wa),Rr,zo),xs.name==null&&Er){var pl=Er[zo];!to(pl)&&(pl={name:pl}),xs.name=xs.displayName=pl.name,xs.defaultTooltip=pl.defaultTooltip}ma&&Pi(xs.otherDims,ma)})}});function Ne(Nr,Rr,Er){xT.get(Rr)!=null?Nr.otherDims[Rr]=Er:(Nr.coordDim=Rr,Nr.coordDimIndex=Er,s.set(Rr,!0))}var He=e.generateCoord,st=e.generateCoordCount,pt=st!=null;st=He?st||1:0;var Ut=He||"value";function pn(Nr){Nr.name==null&&(Nr.name=Nr.coordDim)}if(T)At(c,function(Nr){pn(Nr)}),c.sort(function(Nr,Rr){return Nr.storeDimIndex-Rr.storeDimIndex});else for(var yn=0;yn<f;yn++){var jn=ge(yn),Cr=jn.coordDim;Cr==null&&(jn.coordDim=LW(Ut,s,pt),jn.coordDimIndex=0,(!He||st<=0)&&(jn.isExtraCoord=!0),st--),pn(jn),jn.type==null&&(wO(n,yn)===qm.Must||jn.isExtraCoord&&(jn.otherDims.itemName!=null||jn.otherDims.seriesName!=null))&&(jn.type="ordinal")}return N7(c),new Cb({source:n,dimensions:c,fullDimensionCount:f,dimensionOmitted:T})}function N7(n){for(var e=Za(),t=0;t<n.length;t++){var r=n[t],s=r.name,c=e.get(s)||0;c>0&&(r.name=s+(c-1)),c++,e.set(s,c)}}function L7(n,e,t,r){var s=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return At(e,function(c){var f;to(c)&&(f=c.dimsDef)&&(s=Math.max(s,f.length))}),s}function LW(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var F7=function(){function n(e){this.coordSysDims=[],this.axisMap=Za(),this.categoryAxisMap=Za(),this.coordSysName=e}return n}();function GI(n){var e=n.get("coordinateSystem"),t=new F7(e),r=$I[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var $I={cartesian2d:function(n,e,t,r){var s=n.getReferringComponents("xAxis",vs).models[0],c=n.getReferringComponents("yAxis",vs).models[0];e.coordSysDims=["x","y"],t.set("x",s),t.set("y",c),iw(s)&&(r.set("x",s),e.firstCategoryDimIndex=0),iw(c)&&(r.set("y",c),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var s=n.getReferringComponents("singleAxis",vs).models[0];e.coordSysDims=["single"],t.set("single",s),iw(s)&&(r.set("single",s),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var s=n.getReferringComponents("polar",vs).models[0],c=s.findAxisModel("radiusAxis"),f=s.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",c),t.set("angle",f),iw(c)&&(r.set("radius",c),e.firstCategoryDimIndex=0),iw(f)&&(r.set("angle",f),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var s=n.ecModel,c=s.getComponent("parallel",n.get("parallelIndex")),f=e.coordSysDims=c.dimensions.slice();At(c.parallelAxisIndex,function(T,R){var I=s.getComponent("parallelAxis",T),B=f[R];t.set(B,I),iw(I)&&(r.set(B,I),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=R))})}};function iw(n){return n.get("type")==="category"}function j7(n,e,t){t=t||{};var r=t.byIndex,s=t.stackedCoordDimension,c,f,T;f1(e)?c=e:(f=e.schema,c=f.dimensions,T=e.store);var R=!!(n&&n.get("stack")),I,B,Y,q;if(At(c,function(st,pt){ei(st)&&(c[pt]=st={name:st}),R&&!st.isExtraCoord&&(!r&&!I&&st.ordinalMeta&&(I=st),!B&&st.type!=="ordinal"&&st.type!=="time"&&(!s||s===st.coordDim)&&(B=st))}),B&&!r&&!I&&(r=!0),B){Y="__\0ecstackresult_"+n.id,q="__\0ecstackedover_"+n.id,I&&(I.createInvertedIndices=!0);var ie=B.coordDim,ge=B.type,Oe=0;At(c,function(st){st.coordDim===ie&&Oe++});var Ne={name:Y,coordDim:ie,coordDimIndex:Oe,type:ge,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:c.length},He={name:q,coordDim:q,coordDimIndex:Oe+1,type:ge,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:c.length+1};f?(T&&(Ne.storeDimIndex=T.ensureCalculationDimension(q,ge),He.storeDimIndex=T.ensureCalculationDimension(Y,ge)),f.appendCalculationDimension(Ne),f.appendCalculationDimension(He)):(c.push(Ne),c.push(He))}return{stackedDimension:B&&B.name,stackedByDimension:I&&I.name,isStackedByIndex:r,stackedOverDimension:q,stackResultDimension:Y}}function f1(n){return!BP(n.schema)}function wb(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function rL(n,e){return wb(n,e)?n.getCalculationInfo("stackResultDimension"):e}function aL(n,e){var t=n.get("coordinateSystem"),r=tS.get(t),s;return e&&e.coordSysDims&&(s=ar(e.coordSysDims,function(c){var f={name:c},T=e.axisMap.get(c);if(T){var R=T.get("type");f.type=BI(R)}return f})),s||(s=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),s}function B7(n,e,t){var r,s;return t&&At(n,function(c,f){var T=c.coordDim,R=t.categoryAxisMap.get(T);R&&(r==null&&(r=f),c.ordinalMeta=R.getOrdinalMeta(),e&&(c.createInvertedIndices=!0)),c.otherDims.itemName!=null&&(s=!0)}),!s&&r!=null&&(n[r].otherDims.itemName=0),r}function U7(n,e,t){t=t||{};var r=e.getSourceManager(),s,c=!1;n?(c=!0,s=Ck(n)):(s=r.getSource(),c=s.sourceFormat===rd);var f=GI(e),T=aL(e,f),R=t.useEncodeDefaulter,I=ja(R)?R:R?$i(ok,T,e):null,B={coordDimensions:T,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:I,canOmitUnusedDimensions:!c},Y=aw(s,B),q=B7(Y.dimensions,t.createInvertedIndices,f),ie=c?null:r.getSharedDataStore(Y),ge=j7(e,{schema:Y,store:ie}),Oe=new M_(Y,e);Oe.setCalculationInfo(ge);var Ne=q!=null&&KI(s)?function(He,st,pt,Ut){return Ut===q?pt:this.defaultDimValueGetter(He,st,pt,Ut)}:null;return Oe.hasItemOption=!1,Oe.initData(c?s:ie,null,Ne),Oe}function KI(n){if(n.sourceFormat===rd){var e=iL(n.data||[]);return!La(Nu(e))}}function iL(n){for(var e=0;e<n.length&&n[e]==null;)e++;return n[e]}var Tb=U7,Z7=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(!1)var r;return Tb(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var r=new Qi,s=ad("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);r.add(s),s.setStyle(t.lineStyle);var c=this.getData().getVisual("symbol"),f=this.getData().getVisual("symbolRotate"),T=c==="none"?"circle":c,R=t.itemHeight*.8,I=ad(T,(t.itemWidth-R)/2,(t.itemHeight-R)/2,R,R,t.itemStyle.fill);r.add(I),I.setStyle(t.itemStyle);var B=t.iconRotate==="inherit"?f:t.iconRotate||0;return I.rotation=B*Math.PI/180,I.setOrigin([t.itemWidth/2,t.itemHeight/2]),T.indexOf("empty")>-1&&(I.style.stroke=I.style.fill,I.style.fill="#fff",I.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:Infinity,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(oh),oL=Z7;function ow(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var s=Cx(n,e,t[0]);return s!=null?s+"":null}else if(r){for(var c=[],f=0;f<t.length;f++)c.push(Cx(n,e,t[f]));return c.join(" ")}}function YI(n,e){var t=n.mapDimensionsAll("defaultedLabel");if(!La(e))return e+"";for(var r=[],s=0;s<t.length;s++){var c=n.getDimensionIndex(t[s]);c>=0&&r.push(e[c])}return r.join(" ")}var sL=function(n){ze(e,n);function e(t,r,s,c){var f=n.call(this)||this;return f.updateData(t,r,s,c),f}return e.prototype._createSymbol=function(t,r,s,c,f){this.removeAll();var T=ad(t,-1,-1,2,2,null,f);T.attr({z2:100,culling:!0,scaleX:c[0]/2,scaleY:c[1]/2}),T.drift=lL,this._symbolType=t,this.add(T)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){qg(this.childAt(0))},e.prototype.downplay=function(){j0(this.childAt(0))},e.prototype.setZ=function(t,r){var s=this.childAt(0);s.zlevel=t,s.z=r},e.prototype.setDraggable=function(t,r){var s=this.childAt(0);s.draggable=t,s.cursor=!r&&t?"move":s.cursor},e.prototype.updateData=function(t,r,s,c){this.silent=!1;var f=t.getItemVisual(r,"symbol")||"circle",T=t.hostModel,R=e.getSymbolSize(t,r),I=f!==this._symbolType,B=c&&c.disableAnimation;if(I){var Y=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(f,t,r,R,Y)}else{var q=this.childAt(0);q.silent=!1;var ie={scaleX:R[0]/2,scaleY:R[1]/2};B?q.attr(ie):vp(q,ie,T,r),e_(q)}if(this._updateCommon(t,r,R,s,c),I){var q=this.childAt(0);if(!B){var ie={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:q.style.opacity}};q.scaleX=q.scaleY=0,q.style.opacity=0,Sv(q,ie,T,r)}}B&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,s,c,f){var T=this.childAt(0),R=t.hostModel,I,B,Y,q,ie,ge,Oe,Ne,He;if(c&&(I=c.emphasisItemStyle,B=c.blurItemStyle,Y=c.selectItemStyle,q=c.focus,ie=c.blurScope,Oe=c.labelStatesModels,Ne=c.hoverScale,He=c.cursorStyle,ge=c.emphasisDisabled),!c||t.hasItemOption){var st=c&&c.itemModel?c.itemModel:t.getItemModel(r),pt=st.getModel("emphasis");I=pt.getModel("itemStyle").getItemStyle(),Y=st.getModel(["select","itemStyle"]).getItemStyle(),B=st.getModel(["blur","itemStyle"]).getItemStyle(),q=pt.get("focus"),ie=pt.get("blurScope"),ge=pt.get("disabled"),Oe=bh(st),Ne=pt.getShallow("scale"),He=st.getShallow("cursor")}var Ut=t.getItemVisual(r,"symbolRotate");T.attr("rotation",(Ut||0)*Math.PI/180||0);var pn=Tv(t.getItemVisual(r,"symbolOffset"),s);pn&&(T.x=pn[0],T.y=pn[1]),He&&T.attr("cursor",He);var yn=t.getItemVisual(r,"style"),jn=yn.fill;if(T instanceof wp){var Cr=T.style;T.useStyle(Ea({image:Cr.image,x:Cr.x,y:Cr.y,width:Cr.width,height:Cr.height},yn))}else T.__isEmptyBrush?T.useStyle(Ea({},yn)):T.useStyle(yn),T.style.decal=null,T.setColor(jn,f&&f.symbolInnerColor),T.style.strokeNoScale=!0;var Nr=t.getItemVisual(r,"liftZ"),Rr=this._z2;Nr!=null?Rr==null&&(this._z2=T.z2,T.z2+=Nr):Rr!=null&&(T.z2=Rr,this._z2=null);var Er=f&&f.useNameLabel;bv(T,Oe,{labelFetcher:R,labelDataIndex:r,defaultText:ma,inheritColor:jn,defaultOpacity:yn.opacity});function ma(Ei){return Er?t.getName(Ei):ow(t,Ei)}this._sizeX=s[0]/2,this._sizeY=s[1]/2;var wa=T.ensureState("emphasis");wa.style=I,T.ensureState("select").style=Y,T.ensureState("blur").style=B;var Ga=Ne==null||Ne===!0?Math.max(1.1,3/this._sizeY):isFinite(Ne)&&Ne>0?+Ne:1;wa.scaleX=this._sizeX*Ga,wa.scaleY=this._sizeY*Ga,this.setSymbolScale(1),ih(this,q,ie,ge)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,s){var c=this.childAt(0),f=nu(this).dataIndex,T=s&&s.animation;if(this.silent=c.silent=!0,s&&s.fadeLabel){var R=c.getTextContent();R&&p0(R,{style:{opacity:0}},r,{dataIndex:f,removeOpt:T,cb:function(){c.removeTextContent()}})}else c.removeTextContent();p0(c,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:f,cb:t,removeOpt:T})},e.getSymbolSize=function(t,r){return fp(t.getItemVisual(r,"symbolSize"))},e}(Qi);function lL(n,e){this.parent.drift(n,e)}var jS=sL;function VP(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function cL(n){return n!=null&&!to(n)&&(n={isIgnore:n}),n||{}}function zP(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:bh(e),cursorStyle:e.get("cursor")}}var WP=function(){function n(e){this.group=new Qi,this._SymbolCtor=e||jS}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=cL(t);var r=this.group,s=e.hostModel,c=this._data,f=this._SymbolCtor,T=t.disableAnimation,R=zP(e),I={disableAnimation:T},B=t.getSymbolPoint||function(Y){return e.getItemLayout(Y)};c||r.removeAll(),e.diff(c).add(function(Y){var q=B(Y);if(VP(e,q,Y,t)){var ie=new f(e,Y,R,I);ie.setPosition(q),e.setItemGraphicEl(Y,ie),r.add(ie)}}).update(function(Y,q){var ie=c.getItemGraphicEl(q),ge=B(Y);if(!VP(e,ge,Y,t)){r.remove(ie);return}var Oe=e.getItemVisual(Y,"symbol")||"circle",Ne=ie&&ie.getSymbolType&&ie.getSymbolType();if(!ie||Ne&&Ne!==Oe)r.remove(ie),ie=new f(e,Y,R,I),ie.setPosition(ge);else{ie.updateData(e,Y,R,I);var He={x:ge[0],y:ge[1]};T?ie.attr(He):vp(ie,He,s)}r.add(ie),e.setItemGraphicEl(Y,ie)}).remove(function(Y){var q=c.getItemGraphicEl(Y);q&&q.fadeOut(function(){r.remove(q)},s)}).execute(),this._getSymbolPoint=B,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,s){var c=e._getSymbolPoint(s);r.setPosition(c),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=zP(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=cL(r);function s(R){R.isGroup||(R.incremental=!0,R.ensureState("emphasis").hoverLayer=!0)}for(var c=e.start;c<e.end;c++){var f=t.getItemLayout(c);if(VP(t,f,c,r)){var T=new this._SymbolCtor(t,c,this._seriesScope);T.traverse(s),T.setPosition(f),this.group.add(T),t.setItemGraphicEl(c,T),this._progressiveEls.push(T)}}},n.prototype.eachRendered=function(e){ag(this._progressiveEls||this.group,e)},n.prototype.remove=function(e){var t=this.group,r=this._data;r&&e?r.eachItemGraphicEl(function(s){s.fadeOut(function(){t.remove(s)},r.hostModel)}):t.removeAll()},n}(),Sm=WP;function HP(n,e,t){var r=n.getBaseAxis(),s=n.getOtherAxis(r),c=XI(s,t),f=r.dim,T=s.dim,R=e.mapDimension(T),I=e.mapDimension(f),B=T==="x"||T==="radius"?1:0,Y=ar(n.dimensions,function(ge){return e.mapDimension(ge)}),q=!1,ie=e.getCalculationInfo("stackResultDimension");return wb(e,Y[0])&&(q=!0,Y[0]=ie),wb(e,Y[1])&&(q=!0,Y[1]=ie),{dataDimsForPoint:Y,valueStart:c,valueAxisDim:T,baseAxisDim:f,stacked:!!q,valueDim:R,baseDim:I,baseDataOffset:B,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function XI(n,e){var t=0,r=n.scale.getExtent();return e==="start"?t=r[0]:e==="end"?t=r[1]:yo(e)&&!isNaN(e)?t=e:r[0]>0?t=r[0]:r[1]<0&&(t=r[1]),t}function V7(n,e,t,r){var s=NaN;n.stacked&&(s=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(s)&&(s=n.valueStart);var c=n.baseDataOffset,f=[];return f[c]=t.get(n.baseDim,r),f[1-c]=s,e.dataToPoint(f)}var uL=typeof Float32Array!="undefined",fL=uL?Float32Array:Array;function S0(n){return La(n)?uL?new Float32Array(n):n:new fL(n)}function d1(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,s){t.push({cmd:"=",idx:s,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function sw(n,e,t,r,s,c,f,T){for(var R=d1(n,e),I=[],B=[],Y=[],q=[],ie=[],ge=[],Oe=[],Ne=HP(s,e,f),He=n.getLayout("points")||[],st=e.getLayout("points")||[],pt=0;pt<R.length;pt++){var Ut=R[pt],pn=!0,yn=void 0,jn=void 0;switch(Ut.cmd){case"=":yn=Ut.idx*2,jn=Ut.idx1*2;var Cr=He[yn],Nr=He[yn+1],Rr=st[jn],Er=st[jn+1];(isNaN(Cr)||isNaN(Nr))&&(Cr=Rr,Nr=Er),I.push(Cr,Nr),B.push(Rr,Er),Y.push(t[yn],t[yn+1]),q.push(r[jn],r[jn+1]),Oe.push(e.getRawIndex(Ut.idx1));break;case"+":var ma=Ut.idx,wa=Ne.dataDimsForPoint,Ga=s.dataToPoint([e.get(wa[0],ma),e.get(wa[1],ma)]);jn=ma*2,I.push(Ga[0],Ga[1]),B.push(st[jn],st[jn+1]);var Ei=V7(Ne,s,e,ma);Y.push(Ei[0],Ei[1]),q.push(r[jn],r[jn+1]),Oe.push(e.getRawIndex(ma));break;case"-":pn=!1}pn&&(ie.push(Ut),ge.push(ge.length))}ge.sort(function(tf,wf){return Oe[tf]-Oe[wf]});for(var Vi=I.length,ns=S0(Vi),zo=S0(Vi),xs=S0(Vi),pl=S0(Vi),Rl=[],pt=0;pt<ge.length;pt++){var zl=ge[pt],Yc=pt*2,kc=zl*2;ns[Yc]=I[kc],ns[Yc+1]=I[kc+1],zo[Yc]=B[kc],zo[Yc+1]=B[kc+1],xs[Yc]=Y[kc],xs[Yc+1]=Y[kc+1],pl[Yc]=q[kc],pl[Yc+1]=q[kc+1],Rl[pt]=ie[zl]}return{current:ns,next:zo,stackedOnCurrent:xs,stackedOnNext:pl,status:Rl}}var Yx=Math.min,Xx=Math.max;function Jx(n,e){return isNaN(n)||isNaN(e)}function zA(n,e,t,r,s,c,f,T,R){for(var I,B,Y,q,ie,ge,Oe=t,Ne=0;Ne<r;Ne++){var He=e[Oe*2],st=e[Oe*2+1];if(Oe>=s||Oe<0)break;if(Jx(He,st)){if(R){Oe+=c;continue}break}if(Oe===t)n[c>0?"moveTo":"lineTo"](He,st),Y=He,q=st;else{var pt=He-I,Ut=st-B;if(pt*pt+Ut*Ut<.5){Oe+=c;continue}if(f>0){for(var pn=Oe+c,yn=e[pn*2],jn=e[pn*2+1];yn===He&&jn===st&&Ne<r;)Ne++,pn+=c,Oe+=c,yn=e[pn*2],jn=e[pn*2+1],He=e[Oe*2],st=e[Oe*2+1],pt=He-I,Ut=st-B;var Cr=Ne+1;if(R)for(;Jx(yn,jn)&&Cr<r;)Cr++,pn+=c,yn=e[pn*2],jn=e[pn*2+1];var Nr=.5,Rr=0,Er=0,ma=void 0,wa=void 0;if(Cr>=r||Jx(yn,jn))ie=He,ge=st;else{Rr=yn-I,Er=jn-B;var Ga=He-I,Ei=yn-He,Vi=st-B,ns=jn-st,zo=void 0,xs=void 0;if(T==="x"){zo=Math.abs(Ga),xs=Math.abs(Ei);var pl=Rr>0?1:-1;ie=He-pl*zo*f,ge=st,ma=He+pl*xs*f,wa=st}else if(T==="y"){zo=Math.abs(Vi),xs=Math.abs(ns);var Rl=Er>0?1:-1;ie=He,ge=st-Rl*zo*f,ma=He,wa=st+Rl*xs*f}else zo=Math.sqrt(Ga*Ga+Vi*Vi),xs=Math.sqrt(Ei*Ei+ns*ns),Nr=xs/(xs+zo),ie=He-Rr*f*(1-Nr),ge=st-Er*f*(1-Nr),ma=He+Rr*f*Nr,wa=st+Er*f*Nr,ma=Yx(ma,Xx(yn,He)),wa=Yx(wa,Xx(jn,st)),ma=Xx(ma,Yx(yn,He)),wa=Xx(wa,Yx(jn,st)),Rr=ma-He,Er=wa-st,ie=He-Rr*zo/xs,ge=st-Er*zo/xs,ie=Yx(ie,Xx(I,He)),ge=Yx(ge,Xx(B,st)),ie=Xx(ie,Yx(I,He)),ge=Xx(ge,Yx(B,st)),Rr=He-ie,Er=st-ge,ma=He+Rr*xs/zo,wa=st+Er*xs/zo}n.bezierCurveTo(Y,q,ie,ge,He,st),Y=ma,q=wa}else n.lineTo(He,st)}I=He,B=st,Oe+=c}return Ne}var dL=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),z7=function(n){ze(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dL},e.prototype.buildPath=function(t,r){var s=r.points,c=0,f=s.length/2;if(r.connectNulls){for(;f>0&&Jx(s[f*2-2],s[f*2-1]);f--);for(;c<f&&Jx(s[c*2],s[c*2+1]);c++);}for(;c<f;)c+=zA(t,s,c,f,f,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},e.prototype.getPointOn=function(t,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var s=this.path,c=s.data,f=f_.CMD,T,R,I=r==="x",B=[],Y=0;Y<c.length;){var q=c[Y++],ie=void 0,ge=void 0,Oe=void 0,Ne=void 0,He=void 0,st=void 0,pt=void 0;switch(q){case f.M:T=c[Y++],R=c[Y++];break;case f.L:if(ie=c[Y++],ge=c[Y++],pt=I?(t-T)/(ie-T):(t-R)/(ge-R),pt<=1&&pt>=0){var Ut=I?(ge-R)*pt+R:(ie-T)*pt+T;return I?[t,Ut]:[Ut,t]}T=ie,R=ge;break;case f.C:ie=c[Y++],ge=c[Y++],Oe=c[Y++],Ne=c[Y++],He=c[Y++],st=c[Y++];var pn=I?pf(T,ie,Oe,He,t,B):pf(R,ge,Ne,st,t,B);if(pn>0)for(var yn=0;yn<pn;yn++){var jn=B[yn];if(jn<=1&&jn>=0){var Ut=I?Gc(R,ge,Ne,st,jn):Gc(T,ie,Oe,He,jn);return I?[t,Ut]:[Ut,t]}}T=He,R=st;break}}},e}(Od),JI=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(dL),QI=function(n){ze(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new JI},e.prototype.buildPath=function(t,r){var s=r.points,c=r.stackedOnPoints,f=0,T=s.length/2,R=r.smoothMonotone;if(r.connectNulls){for(;T>0&&Jx(s[T*2-2],s[T*2-1]);T--);for(;f<T&&Jx(s[f*2],s[f*2+1]);f++);}for(;f<T;){var I=zA(t,s,f,T,T,1,r.smooth,R,r.connectNulls);zA(t,c,f+I-1,I,T,-1,r.stackedOnSmooth,R,r.connectNulls),f+=I+1,t.closePath()}},e}(Od);function qI(n,e,t,r,s){var c=n.getArea(),f=c.x,T=c.y,R=c.width,I=c.height,B=t.get(["lineStyle","width"])||2;f-=B/2,T-=B/2,R+=B,I+=B,f=Math.floor(f),R=Math.round(R);var Y=new jd({shape:{x:f,y:T,width:R,height:I}});if(e){var q=n.getBaseAxis(),ie=q.isHorizontal(),ge=q.inverse;ie?(ge&&(Y.shape.x+=R),Y.shape.width=0):(ge||(Y.shape.y+=I),Y.shape.height=0);var Oe=ja(s)?function(Ne){s(Ne,Y)}:null;Sv(Y,{shape:{width:R,height:I,x:f,y:T}},t,null,r,Oe)}return Y}function WA(n,e,t){var r=n.getArea(),s=Sn(r.r0,1),c=Sn(r.r,1),f=new eg({shape:{cx:Sn(n.cx,1),cy:Sn(n.cy,1),r0:s,r:c,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var T=n.getBaseAxis().dim==="angle";T?f.shape.endAngle=r.startAngle:f.shape.r=s,Sv(f,{shape:{endAngle:r.endAngle,r:c}},t)}return f}function HA(n,e,t,r,s){if(n){if(n.type==="polar")return WA(n,e,t);if(n.type==="cartesian2d")return qI(n,e,t,r,s)}else return null;return null}function BS(n,e){return n.type===e}function eD(n,e){if(n.length===e.length){for(var t=0;t<n.length;t++)if(n[t]!==e[t])return;return!0}}function GA(n){for(var e=Infinity,t=Infinity,r=-Infinity,s=-Infinity,c=0;c<n.length;){var f=n[c++],T=n[c++];isNaN(f)||(e=Math.min(f,e),r=Math.max(f,r)),isNaN(T)||(t=Math.min(T,t),s=Math.max(T,s))}return[[e,t],[r,s]]}function $A(n,e){var t=GA(n),r=t[0],s=t[1],c=GA(e),f=c[0],T=c[1];return Math.max(Math.abs(r[0]-f[0]),Math.abs(r[1]-f[1]),Math.abs(s[0]-T[0]),Math.abs(s[1]-T[1]))}function tD(n){return yo(n)?n:n?.5:0}function KA(n,e,t){if(!t.valueDim)return[];for(var r=e.count(),s=S0(r*2),c=0;c<r;c++){var f=V7(t,n,e,c);s[c*2]=f[0],s[c*2+1]=f[1]}return s}function Qx(n,e,t,r){var s=e.getBaseAxis(),c=s.dim==="x"||s.dim==="radius"?0:1,f=[],T=0,R=[],I=[],B=[],Y=[];if(r){for(T=0;T<n.length;T+=2)!isNaN(n[T])&&!isNaN(n[T+1])&&Y.push(n[T],n[T+1]);n=Y}for(T=0;T<n.length-2;T+=2)switch(B[0]=n[T+2],B[1]=n[T+3],I[0]=n[T],I[1]=n[T+1],f.push(I[0],I[1]),t){case"end":R[c]=B[c],R[1-c]=I[1-c],f.push(R[0],R[1]);break;case"middle":var q=(I[c]+B[c])/2,ie=[];R[c]=ie[c]=q,R[1-c]=I[1-c],ie[1-c]=B[1-c],f.push(R[0],R[1]),f.push(ie[0],ie[1]);break;default:R[c]=I[c],R[1-c]=B[1-c],f.push(R[0],R[1])}return f.push(n[T++],n[T++]),f}function pL(n,e){var t=[],r=n.length,s,c;function f(B,Y,q){var ie=B.coord,ge=(q-ie)/(Y.coord-ie),Oe=hd(ge,[B.color,Y.color]);return{coord:q,color:Oe}}for(var T=0;T<r;T++){var R=n[T],I=R.coord;if(I<0)s=R;else if(I>e){c?t.push(f(c,R,e)):s&&t.push(f(s,R,0),f(s,R,e));break}else s&&(t.push(f(s,R,0)),s=null),t.push(R),c=R}return t}function Ab(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var s,c,f=r.length-1;f>=0;f--){var T=n.getDimensionInfo(r[f].dimension);if(s=T&&T.coordDim,s==="x"||s==="y"){c=r[f];break}}if(!!c){var R=e.getAxis(s),I=ar(c.stops,function(pt){return{coord:R.toGlobalCoord(R.dataToCoord(pt.value)),color:pt.color}}),B=I.length,Y=c.outerColors.slice();B&&I[0].coord>I[B-1].coord&&(I.reverse(),Y.reverse());var q=pL(I,s==="x"?t.getWidth():t.getHeight()),ie=q.length;if(!ie&&B)return I[0].coord<0?Y[1]?Y[1]:I[B-1].color:Y[0]?Y[0]:I[0].color;var ge=10,Oe=q[0].coord-ge,Ne=q[ie-1].coord+ge,He=Ne-Oe;if(He<.001)return"transparent";At(q,function(pt){pt.offset=(pt.coord-Oe)/He}),q.push({offset:ie?q[ie-1].offset:.5,color:Y[1]||"transparent"}),q.unshift({offset:ie?q[0].offset:.5,color:Y[0]||"transparent"});var st=new pb(0,0,0,0,q,!0);return st[s]=Oe,st[s+"2"]=Ne,st}}}function W7(n,e,t){var r=n.get("showAllSymbol"),s=r==="auto";if(!(r&&!s)){var c=t.getAxesByScale("ordinal")[0];if(!!c&&!(s&&H7(c,e))){var f=e.mapDimension(c.dim),T={};return At(c.getViewLabels(),function(R){var I=c.scale.getRawOrdinalNumber(R.tickValue);T[I]=1}),function(R){return!T.hasOwnProperty(e.get(f,R))}}}}function H7(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var s=e.count(),c=Math.max(1,Math.round(s/5)),f=0;f<s;f+=c)if(jS.getSymbolSize(e,f)[n.isHorizontal()?1:0]*1.5>r)return!1;return!0}function G7(n,e){return isNaN(n)||isNaN(e)}function $7(n){for(var e=n.length/2;e>0&&G7(n[e*2-2],n[e*2-1]);e--);return e-1}function vL(n,e){return[n[e*2],n[e*2+1]]}function hL(n,e,t){for(var r=n.length/2,s=t==="x"?0:1,c,f,T=0,R=-1,I=0;I<r;I++)if(f=n[I*2+s],!(isNaN(f)||isNaN(n[I*2+1-s]))){if(I===0){c=f;continue}if(c<=e&&f>=e||c>=e&&f<=e){R=I;break}T=I,c=f}return{range:[T,R],t:(e-c)/(f-c)}}function YA(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e<Wm.length;e++)if(n.get([Wm[e],"endLabel","show"]))return!0;return!1}function nD(n,e,t,r){if(BS(e,"cartesian2d")){var s=r.getModel("endLabel"),c=s.get("valueAnimation"),f=r.getData(),T={lastFrameIndex:0},R=YA(r)?function(ie,ge){n._endLabelOnDuring(ie,ge,f,T,c,s,e)}:null,I=e.getBaseAxis().isHorizontal(),B=qI(e,t,r,function(){var ie=n._endLabel;ie&&t&&T.originalX!=null&&ie.attr({x:T.originalX,y:T.originalY})},R);if(!r.get("clip",!0)){var Y=B.shape,q=Math.max(Y.width,Y.height);I?(Y.y-=q,Y.height+=q*2):(Y.x-=q,Y.width+=q*2)}return R&&R(1,B),B}else return WA(e,t,r)}function rD(n,e){var t=e.getBaseAxis(),r=t.isHorizontal(),s=t.inverse,c=r?s?"right":"left":"center",f=r?"middle":s?"top":"bottom";return{normal:{align:n.get("align")||c,verticalAlign:n.get("verticalAlign")||f}}}var aD=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(){var t=new Qi,r=new Sm;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=t},e.prototype.render=function(t,r,s){var c=this,f=t.coordinateSystem,T=this.group,R=t.getData(),I=t.getModel("lineStyle"),B=t.getModel("areaStyle"),Y=R.getLayout("points")||[],q=f.type==="polar",ie=this._coordSys,ge=this._symbolDraw,Oe=this._polyline,Ne=this._polygon,He=this._lineGroup,st=!r.ssr&&t.isAnimationEnabled(),pt=!B.isEmpty(),Ut=B.get("origin"),pn=HP(f,R,Ut),yn=pt&&KA(f,R,pn),jn=t.get("showSymbol"),Cr=t.get("connectNulls"),Nr=jn&&!q&&W7(t,R,f),Rr=this._data;Rr&&Rr.eachItemGraphicEl(function(wf,su){wf.__temp&&(T.remove(wf),Rr.setItemGraphicEl(su,null))}),jn||ge.remove(),T.add(He);var Er=q?!1:t.get("step"),ma;f&&f.getArea&&t.get("clip",!0)&&(ma=f.getArea(),ma.width!=null?(ma.x-=.1,ma.y-=.1,ma.width+=.2,ma.height+=.2):ma.r0&&(ma.r0-=.5,ma.r+=.5)),this._clipShapeForSymbol=ma;var wa=Ab(R,f,s)||R.getVisual("style")[R.getVisual("drawType")];if(!(Oe&&ie.type===f.type&&Er===this._step))jn&&ge.updateData(R,{isIgnore:Nr,clipShape:ma,disableAnimation:!0,getSymbolPoint:function(wf){return[Y[wf*2],Y[wf*2+1]]}}),st&&this._initSymbolLabelAnimation(R,f,ma),Er&&(Y=Qx(Y,f,Er,Cr),yn&&(yn=Qx(yn,f,Er,Cr))),Oe=this._newPolyline(Y),pt?Ne=this._newPolygon(Y,yn):Ne&&(He.remove(Ne),Ne=this._polygon=null),q||this._initOrUpdateEndLabel(t,f,Gy(wa)),He.setClipPath(nD(this,f,!0,t));else{pt&&!Ne?Ne=this._newPolygon(Y,yn):Ne&&!pt&&(He.remove(Ne),Ne=this._polygon=null),q||this._initOrUpdateEndLabel(t,f,Gy(wa));var Ga=He.getClipPath();if(Ga){var Ei=nD(this,f,!1,t);Sv(Ga,{shape:Ei.shape},t)}else He.setClipPath(nD(this,f,!0,t));jn&&ge.updateData(R,{isIgnore:Nr,clipShape:ma,disableAnimation:!0,getSymbolPoint:function(wf){return[Y[wf*2],Y[wf*2+1]]}}),(!eD(this._stackedOnPoints,yn)||!eD(this._points,Y))&&(st?this._doUpdateAnimation(R,yn,f,s,Er,Ut,Cr):(Er&&(Y=Qx(Y,f,Er,Cr),yn&&(yn=Qx(yn,f,Er,Cr))),Oe.setShape({points:Y}),Ne&&Ne.setShape({points:Y,stackedOnPoints:yn})))}var Vi=t.getModel("emphasis"),ns=Vi.get("focus"),zo=Vi.get("blurScope"),xs=Vi.get("disabled");if(Oe.useStyle(Pi(I.getLineStyle(),{fill:"none",stroke:wa,lineJoin:"bevel"})),Om(Oe,t,"lineStyle"),Oe.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var pl=Oe.getState("emphasis").style;pl.lineWidth=+Oe.style.lineWidth+1}nu(Oe).seriesIndex=t.seriesIndex,ih(Oe,ns,zo,xs);var Rl=tD(t.get("smooth")),zl=t.get("smoothMonotone");if(Oe.setShape({smooth:Rl,smoothMonotone:zl,connectNulls:Cr}),Ne){var Yc=R.getCalculationInfo("stackedOnSeries"),kc=0;Ne.useStyle(Pi(B.getAreaStyle(),{fill:wa,opacity:.7,lineJoin:"bevel",decal:R.getVisual("style").decal})),Yc&&(kc=tD(Yc.get("smooth"))),Ne.setShape({smooth:Rl,stackedOnSmooth:kc,smoothMonotone:zl,connectNulls:Cr}),Om(Ne,t,"areaStyle"),nu(Ne).seriesIndex=t.seriesIndex,ih(Ne,ns,zo,xs)}var tf=function(wf){c._changePolyState(wf)};R.eachItemGraphicEl(function(wf){wf&&(wf.onHoverStateChange=tf)}),this._polyline.onHoverStateChange=tf,this._data=R,this._coordSys=f,this._stackedOnPoints=yn,this._points=Y,this._step=Er,this._valueOrigin=Ut,t.get("triggerLineEvent")&&(this.packEventData(t,Oe),Ne&&this.packEventData(t,Ne))},e.prototype.packEventData=function(t,r){nu(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,s,c){var f=t.getData(),T=Va(f,c);if(this._changePolyState("emphasis"),!(T instanceof Array)&&T!=null&&T>=0){var R=f.getLayout("points"),I=f.getItemGraphicEl(T);if(!I){var B=R[T*2],Y=R[T*2+1];if(isNaN(B)||isNaN(Y)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(B,Y))return;var q=t.get("zlevel")||0,ie=t.get("z")||0;I=new jS(f,T),I.x=B,I.y=Y,I.setZ(q,ie);var ge=I.getSymbolPath().getTextContent();ge&&(ge.zlevel=q,ge.z=ie,ge.z2=this._polyline.z2+1),I.__temp=!0,f.setItemGraphicEl(T,I),I.stopSymbolAnimation(!0),this.group.add(I)}I.highlight()}else vv.prototype.highlight.call(this,t,r,s,c)},e.prototype.downplay=function(t,r,s,c){var f=t.getData(),T=Va(f,c);if(this._changePolyState("normal"),T!=null&&T>=0){var R=f.getItemGraphicEl(T);R&&(R.__temp?(f.setItemGraphicEl(T,null),this.group.remove(R)):R.downplay())}else vv.prototype.downplay.call(this,t,r,s,c)},e.prototype._changePolyState=function(t){var r=this._polygon;jE(this._polyline,t),r&&jE(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new z7({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var s=this._polygon;return s&&this._lineGroup.remove(s),s=new QI({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(s),this._polygon=s,s},e.prototype._initSymbolLabelAnimation=function(t,r,s){var c,f,T=r.getBaseAxis(),R=T.inverse;r.type==="cartesian2d"?(c=T.isHorizontal(),f=!1):r.type==="polar"&&(c=T.dim==="angle",f=!0);var I=t.hostModel,B=I.get("animationDuration");ja(B)&&(B=B(null));var Y=I.get("animationDelay")||0,q=ja(Y)?Y(null):Y;t.eachItemGraphicEl(function(ie,ge){var Oe=ie;if(Oe){var Ne=[ie.x,ie.y],He=void 0,st=void 0,pt=void 0;if(s)if(f){var Ut=s,pn=r.pointToCoord(Ne);c?(He=Ut.startAngle,st=Ut.endAngle,pt=-pn[1]/180*Math.PI):(He=Ut.r0,st=Ut.r,pt=pn[0])}else{var yn=s;c?(He=yn.x,st=yn.x+yn.width,pt=ie.x):(He=yn.y+yn.height,st=yn.y,pt=ie.y)}var jn=st===He?0:(pt-He)/(st-He);R&&(jn=1-jn);var Cr=ja(Y)?Y(ge):B*jn+q,Nr=Oe.getSymbolPath(),Rr=Nr.getTextContent();Oe.attr({scaleX:0,scaleY:0}),Oe.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:Cr}),Rr&&Rr.animateFrom({style:{opacity:0}},{duration:300,delay:Cr}),Nr.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,s){var c=t.getModel("endLabel");if(YA(t)){var f=t.getData(),T=this._polyline,R=f.getLayout("points");if(!R){T.removeTextContent(),this._endLabel=null;return}var I=this._endLabel;I||(I=this._endLabel=new Tp({z2:200}),I.ignoreClip=!0,T.setTextContent(this._endLabel),T.disableLabelAnimation=!0);var B=$7(R);B>=0&&(bv(T,bh(t,"endLabel"),{inheritColor:s,labelFetcher:t,labelDataIndex:B,defaultText:function(Y,q,ie){return ie!=null?YI(f,ie):ow(f,Y)},enableTextSetter:!0},rD(c,r)),T.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,s,c,f,T,R){var I=this._endLabel,B=this._polyline;if(I){t<1&&c.originalX==null&&(c.originalX=I.x,c.originalY=I.y);var Y=s.getLayout("points"),q=s.hostModel,ie=q.get("connectNulls"),ge=T.get("precision"),Oe=T.get("distance")||0,Ne=R.getBaseAxis(),He=Ne.isHorizontal(),st=Ne.inverse,pt=r.shape,Ut=st?He?pt.x:pt.y+pt.height:He?pt.x+pt.width:pt.y,pn=(He?Oe:0)*(st?-1:1),yn=(He?0:-Oe)*(st?-1:1),jn=He?"x":"y",Cr=hL(Y,Ut,jn),Nr=Cr.range,Rr=Nr[1]-Nr[0],Er=void 0;if(Rr>=1){if(Rr>1&&!ie){var ma=vL(Y,Nr[0]);I.attr({x:ma[0]+pn,y:ma[1]+yn}),f&&(Er=q.getRawValue(Nr[0]))}else{var ma=B.getPointOn(Ut,jn);ma&&I.attr({x:ma[0]+pn,y:ma[1]+yn});var wa=q.getRawValue(Nr[0]),Ga=q.getRawValue(Nr[1]);f&&(Er=Vd(s,ge,wa,Ga,Cr.t))}c.lastFrameIndex=Nr[0]}else{var Ei=t===1||c.lastFrameIndex>0?Nr[0]:0,ma=vL(Y,Ei);f&&(Er=q.getRawValue(Ei)),I.attr({x:ma[0]+pn,y:ma[1]+yn})}if(f){var Vi=py(I);typeof Vi.setLabelText=="function"&&Vi.setLabelText(Er)}}},e.prototype._doUpdateAnimation=function(t,r,s,c,f,T,R){var I=this._polyline,B=this._polygon,Y=t.hostModel,q=sw(this._data,t,this._stackedOnPoints,r,this._coordSys,s,this._valueOrigin,T),ie=q.current,ge=q.stackedOnCurrent,Oe=q.next,Ne=q.stackedOnNext;if(f&&(ie=Qx(q.current,s,f,R),ge=Qx(q.stackedOnCurrent,s,f,R),Oe=Qx(q.next,s,f,R),Ne=Qx(q.stackedOnNext,s,f,R)),$A(ie,Oe)>3e3||B&&$A(ge,Ne)>3e3){I.stopAnimation(),I.setShape({points:Oe}),B&&(B.stopAnimation(),B.setShape({points:Oe,stackedOnPoints:Ne}));return}I.shape.__points=q.current,I.shape.points=ie;var He={shape:{points:Oe}};q.current!==ie&&(He.shape.__points=q.next),I.stopAnimation(),vp(I,He,Y),B&&(B.setShape({points:ie,stackedOnPoints:ge}),B.stopAnimation(),vp(B,{shape:{stackedOnPoints:Ne}},Y),I.shape.points!==B.shape.points&&(B.shape.points=I.shape.points));for(var st=[],pt=q.status,Ut=0;Ut<pt.length;Ut++){var pn=pt[Ut].cmd;if(pn==="="){var yn=t.getItemGraphicEl(pt[Ut].idx1);yn&&st.push({el:yn,ptIdx:Ut})}}I.animators&&I.animators.length&&I.animators[0].during(function(){B&&B.dirtyShape();for(var jn=I.shape.__points,Cr=0;Cr<st.length;Cr++){var Nr=st[Cr].el,Rr=st[Cr].ptIdx*2;Nr.x=jn[Rr],Nr.y=jn[Rr+1],Nr.markRedraw()}})},e.prototype.remove=function(t){var r=this.group,s=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),s&&s.eachItemGraphicEl(function(c,f){c.__temp&&(r.remove(c),s.setItemGraphicEl(f,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(vv),mL=aD;function lw(n,e){return{seriesType:n,plan:lb(),reset:function(t){var r=t.getData(),s=t.coordinateSystem,c=t.pipelineContext,f=e||c.large;if(!!s){var T=ar(s.dimensions,function(ie){return r.mapDimension(ie)}).slice(0,2),R=T.length,I=r.getCalculationInfo("stackResultDimension");wb(r,T[0])&&(T[0]=I),wb(r,T[1])&&(T[1]=I);var B=r.getStore(),Y=r.getDimensionIndex(T[0]),q=r.getDimensionIndex(T[1]);return R&&{progress:function(ie,ge){for(var Oe=ie.end-ie.start,Ne=f&&S0(Oe*R),He=[],st=[],pt=ie.start,Ut=0;pt<ie.end;pt++){var pn=void 0;if(R===1){var yn=B.get(Y,pt);pn=s.dataToPoint(yn,null,st)}else He[0]=B.get(Y,pt),He[1]=B.get(q,pt),pn=s.dataToPoint(He,null,st);f?(Ne[Ut++]=pn[0],Ne[Ut++]=pn[1]):ge.setItemLayout(pt,pn.slice())}f&&ge.setLayout("points",Ne)}}}}}}var gL={average:function(n){for(var e=0,t=0,r=0;r<n.length;r++)isNaN(n[r])||(e+=n[r],t++);return t===0?NaN:e/t},sum:function(n){for(var e=0,t=0;t<n.length;t++)e+=n[t]||0;return e},max:function(n){for(var e=-Infinity,t=0;t<n.length;t++)n[t]>e&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=Infinity,t=0;t<n.length;t++)n[t]<e&&(e=n[t]);return isFinite(e)?e:NaN},nearest:function(n){return n[0]}},iD=function(n){return Math.round(n.length/2)};function oD(n){return{seriesType:n,reset:function(e,t,r){var s=e.getData(),c=e.get("sampling"),f=e.coordinateSystem,T=s.count();if(T>10&&f.type==="cartesian2d"&&c){var R=f.getBaseAxis(),I=f.getOtherAxis(R),B=R.getExtent(),Y=r.getDevicePixelRatio(),q=Math.abs(B[1]-B[0])*(Y||1),ie=Math.round(T/q);if(isFinite(ie)&&ie>1){c==="lttb"&&e.setData(s.lttbDownSample(s.mapDimension(I.dim),1/ie));var ge=void 0;ei(c)?ge=gL[c]:ja(c)&&(ge=c),ge&&e.setData(s.downSample(s.mapDimension(I.dim),1/ie,ge,iD))}}}}}function K7(n){n.registerChartView(mL),n.registerSeriesModel(oL),n.registerLayout(lw("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,oD("line"))}var GP="__ec_stack_";function $P(n){return n.get("stack")||GP+n.seriesIndex}function sD(n){return n.dim+n.index}function Y7(n){var e=[],t=n.axis,r="axis0";if(t.type==="category"){for(var s=t.getBandWidth(),c=0;c<n.count;c++)e.push(Pi({bandWidth:s,axisKey:r,stackId:GP+c},n));for(var f=yL(e),T=[],c=0;c<n.count;c++){var R=f[r][GP+c];R.offsetCenter=R.offset+R.width/2,T.push(R)}return T}}function _L(n,e){var t=[];return e.eachSeriesByType(n,function(r){EL(r)&&t.push(r)}),t}function X7(n){var e={};At(n,function(R){var I=R.coordinateSystem,B=I.getBaseAxis();if(!(B.type!=="time"&&B.type!=="value"))for(var Y=R.getData(),q=B.dim+"_"+B.index,ie=Y.getDimensionIndex(Y.mapDimension(B.dim)),ge=Y.getStore(),Oe=0,Ne=ge.count();Oe<Ne;++Oe){var He=ge.get(ie,Oe);e[q]?e[q].push(He):e[q]=[He]}});var t={};for(var r in e)if(e.hasOwnProperty(r)){var s=e[r];if(s){s.sort(function(R,I){return R-I});for(var c=null,f=1;f<s.length;++f){var T=s[f]-s[f-1];T>0&&(c=c===null?T:Math.min(c,T))}t[r]=c}}return t}function lD(n){var e=X7(n),t=[];return At(n,function(r){var s=r.coordinateSystem,c=s.getBaseAxis(),f=c.getExtent(),T;if(c.type==="category")T=c.getBandWidth();else if(c.type==="value"||c.type==="time"){var R=c.dim+"_"+c.index,I=e[R],B=Math.abs(f[1]-f[0]),Y=c.scale.getExtent(),q=Math.abs(Y[1]-Y[0]);T=I?B/q*I:B}else{var ie=r.getData();T=Math.abs(f[1]-f[0])/ie.count()}var ge=It(r.get("barWidth"),T),Oe=It(r.get("barMaxWidth"),T),Ne=It(r.get("barMinWidth")||(cD(r)?.5:1),T),He=r.get("barGap"),st=r.get("barCategoryGap");t.push({bandWidth:T,barWidth:ge,barMaxWidth:Oe,barMinWidth:Ne,barGap:He,barCategoryGap:st,axisKey:sD(c),stackId:$P(r)})}),yL(t)}function yL(n){var e={};At(n,function(r,s){var c=r.axisKey,f=r.bandWidth,T=e[c]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},R=T.stacks;e[c]=T;var I=r.stackId;R[I]||T.autoWidthCount++,R[I]=R[I]||{width:0,maxWidth:0};var B=r.barWidth;B&&!R[I].width&&(R[I].width=B,B=Math.min(T.remainedWidth,B),T.remainedWidth-=B);var Y=r.barMaxWidth;Y&&(R[I].maxWidth=Y);var q=r.barMinWidth;q&&(R[I].minWidth=q);var ie=r.barGap;ie!=null&&(T.gap=ie);var ge=r.barCategoryGap;ge!=null&&(T.categoryGap=ge)});var t={};return At(e,function(r,s){t[s]={};var c=r.stacks,f=r.bandWidth,T=r.categoryGap;if(T==null){var R=Ua(c).length;T=Math.max(35-R*4,15)+"%"}var I=It(T,f),B=It(r.gap,1),Y=r.remainedWidth,q=r.autoWidthCount,ie=(Y-I)/(q+(q-1)*B);ie=Math.max(ie,0),At(c,function(He){var st=He.maxWidth,pt=He.minWidth;if(He.width){var Ut=He.width;st&&(Ut=Math.min(Ut,st)),pt&&(Ut=Math.max(Ut,pt)),He.width=Ut,Y-=Ut+B*Ut,q--}else{var Ut=ie;st&&st<Ut&&(Ut=Math.min(st,Y)),pt&&pt>Ut&&(Ut=pt),Ut!==ie&&(He.width=Ut,Y-=Ut+B*Ut,q--)}}),ie=(Y-I)/(q+(q-1)*B),ie=Math.max(ie,0);var ge=0,Oe;At(c,function(He,st){He.width||(He.width=ie),Oe=He,ge+=He.width*(1+B)}),Oe&&(ge-=Oe.width*B);var Ne=-ge/2;At(c,function(He,st){t[s][st]=t[s][st]||{bandWidth:f,offset:Ne,width:He.width},Ne+=He.width*(1+B)})}),t}function J7(n,e,t){if(n&&e){var r=n[sD(e)];return r!=null&&t!=null?r[$P(t)]:r}}function bL(n,e){var t=_L(n,e),r=lD(t);At(t,function(s){var c=s.getData(),f=s.coordinateSystem,T=f.getBaseAxis(),R=$P(s),I=r[sD(T)][R],B=I.offset,Y=I.width;c.setLayout({bandWidth:I.bandWidth,offset:B,size:Y})})}function xL(n){return{seriesType:n,plan:lb(),reset:function(e){if(!!EL(e)){var t=e.getData(),r=e.coordinateSystem,s=r.getBaseAxis(),c=r.getOtherAxis(s),f=t.getDimensionIndex(t.mapDimension(c.dim)),T=t.getDimensionIndex(t.mapDimension(s.dim)),R=e.get("showBackground",!0),I=t.mapDimension(c.dim),B=t.getCalculationInfo("stackResultDimension"),Y=wb(t,I)&&!!t.getCalculationInfo("stackedOnSeries"),q=c.isHorizontal(),ie=Q7(s,c),ge=cD(e),Oe=e.get("barMinHeight")||0,Ne=B&&t.getDimensionIndex(B),He=t.getLayout("size"),st=t.getLayout("offset");return{progress:function(pt,Ut){for(var pn=pt.count,yn=ge&&S0(pn*3),jn=ge&&R&&S0(pn*3),Cr=ge&&S0(pn),Nr=r.master.getRect(),Rr=q?Nr.width:Nr.height,Er,ma=Ut.getStore(),wa=0;(Er=pt.next())!=null;){var Ga=ma.get(Y?Ne:f,Er),Ei=ma.get(T,Er),Vi=ie,ns=void 0;Y&&(ns=+Ga-ma.get(f,Er));var zo=void 0,xs=void 0,pl=void 0,Rl=void 0;if(q){var zl=r.dataToPoint([Ga,Ei]);if(Y){var Yc=r.dataToPoint([ns,Ei]);Vi=Yc[0]}zo=Vi,xs=zl[1]+st,pl=zl[0]-Vi,Rl=He,Math.abs(pl)<Oe&&(pl=(pl<0?-1:1)*Oe)}else{var zl=r.dataToPoint([Ei,Ga]);if(Y){var Yc=r.dataToPoint([Ei,ns]);Vi=Yc[1]}zo=zl[0]+st,xs=Vi,pl=He,Rl=zl[1]-Vi,Math.abs(Rl)<Oe&&(Rl=(Rl<=0?-1:1)*Oe)}ge?(yn[wa]=zo,yn[wa+1]=xs,yn[wa+2]=q?pl:Rl,jn&&(jn[wa]=q?Nr.x:zo,jn[wa+1]=q?xs:Nr.y,jn[wa+2]=Rr),Cr[Er]=Er):Ut.setItemLayout(Er,{x:zo,y:xs,width:pl,height:Rl}),wa+=3}ge&&Ut.setLayout({largePoints:yn,largeDataIndices:Cr,largeBackgroundPoints:jn,valueAxisHorizontal:q})}}}}}}function EL(n){return n.coordinateSystem&&n.coordinateSystem.type==="cartesian2d"}function cD(n){return n.pipelineContext&&n.pipelineContext.large}function Q7(n,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var uD=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return Tb(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,s){var c=this.coordinateSystem;if(c&&c.clampData){var f=c.clampData(t),T=c.dataToPoint(f);if(s)At(c.getAxes(),function(q,ie){if(q.type==="category"&&r!=null){var ge=q.getTicksCoords(),Oe=f[ie],Ne=r[ie]==="x1"||r[ie]==="y1";if(Ne&&(Oe+=1),ge.length<2)return;if(ge.length===2){T[ie]=q.toGlobalCoord(q.getExtent()[Ne?1:0]);return}for(var He=void 0,st=void 0,pt=1,Ut=0;Ut<ge.length;Ut++){var pn=ge[Ut].coord,yn=Ut===ge.length-1?ge[Ut-1].tickValue+pt:ge[Ut].tickValue;if(yn===Oe){st=pn;break}else if(yn<Oe)He=pn;else if(He!=null&&yn>Oe){st=(pn+He)/2;break}Ut===1&&(pt=yn-ge[0].tickValue)}st==null&&(He?He&&(st=ge[ge.length-1].coord):st=ge[0].coord),T[ie]=q.toGlobalCoord(st)}});else{var R=this.getData(),I=R.getLayout("offset"),B=R.getLayout("size"),Y=c.getBaseAxis().isHorizontal()?0:1;T[Y]+=I+B/2}return T}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(oh);oh.registerClass(uD);var qx=uD,q7=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Tb(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,s){return s.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=U0(qx.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(qx),e9=q7,SL=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),fD=function(n){ze(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new SL},e.prototype.buildPath=function(t,r){var s=r.cx,c=r.cy,f=Math.max(r.r0||0,0),T=Math.max(r.r,0),R=(T-f)*.5,I=f+R,B=r.startAngle,Y=r.endAngle,q=r.clockwise,ie=Math.PI*2,ge=q?Y-B<ie:B-Y<ie;ge||(B=Y-(q?ie:-ie));var Oe=Math.cos(B),Ne=Math.sin(B),He=Math.cos(Y),st=Math.sin(Y);ge?(t.moveTo(Oe*f+s,Ne*f+c),t.arc(Oe*I+s,Ne*I+c,R,-Math.PI+B,B,!q)):t.moveTo(Oe*T+s,Ne*T+c),t.arc(s,c,T,B,Y,!q),t.arc(He*I+s,st*I+c,R,Y-Math.PI*2,Y-Math.PI,!q),f!==0&&t.arc(s,c,f,Y,B,q)},e}(Od),Mb=fD;function CL(n,e){e=e||{};var t=e.isRoundCap;return function(r,s,c){var f=s.position;if(!f||f instanceof Array)return pg(r,s,c);var T=n(f),R=s.distance!=null?s.distance:5,I=this.shape,B=I.cx,Y=I.cy,q=I.r,ie=I.r0,ge=(q+ie)/2,Oe=I.startAngle,Ne=I.endAngle,He=(Oe+Ne)/2,st=t?Math.abs(q-ie)/2:0,pt=Math.cos,Ut=Math.sin,pn=B+q*pt(Oe),yn=Y+q*Ut(Oe),jn="left",Cr="top";switch(T){case"startArc":pn=B+(ie-R)*pt(He),yn=Y+(ie-R)*Ut(He),jn="center",Cr="top";break;case"insideStartArc":pn=B+(ie+R)*pt(He),yn=Y+(ie+R)*Ut(He),jn="center",Cr="bottom";break;case"startAngle":pn=B+ge*pt(Oe)+US(Oe,R+st,!1),yn=Y+ge*Ut(Oe)+XA(Oe,R+st,!1),jn="right",Cr="middle";break;case"insideStartAngle":pn=B+ge*pt(Oe)+US(Oe,-R+st,!1),yn=Y+ge*Ut(Oe)+XA(Oe,-R+st,!1),jn="left",Cr="middle";break;case"middle":pn=B+ge*pt(He),yn=Y+ge*Ut(He),jn="center",Cr="middle";break;case"endArc":pn=B+(q+R)*pt(He),yn=Y+(q+R)*Ut(He),jn="center",Cr="bottom";break;case"insideEndArc":pn=B+(q-R)*pt(He),yn=Y+(q-R)*Ut(He),jn="center",Cr="top";break;case"endAngle":pn=B+ge*pt(Ne)+US(Ne,R+st,!0),yn=Y+ge*Ut(Ne)+XA(Ne,R+st,!0),jn="left",Cr="middle";break;case"insideEndAngle":pn=B+ge*pt(Ne)+US(Ne,-R+st,!0),yn=Y+ge*Ut(Ne)+XA(Ne,-R+st,!0),jn="right",Cr="middle";break;default:return pg(r,s,c)}return r=r||{},r.x=pn,r.y=yn,r.align=jn,r.verticalAlign=Cr,r}}function dD(n,e,t,r){if(yo(r)){n.setTextConfig({rotation:r});return}else if(La(e)){n.setTextConfig({rotation:0});return}var s=n.shape,c=s.clockwise?s.startAngle:s.endAngle,f=s.clockwise?s.endAngle:s.startAngle,T=(c+f)/2,R,I=t(e);switch(I){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":R=T;break;case"startAngle":case"insideStartAngle":R=c;break;case"endAngle":case"insideEndAngle":R=f;break;default:n.setTextConfig({rotation:0});return}var B=Math.PI*1.5-R;I==="middle"&&B>Math.PI/2&&B<Math.PI*1.5&&(B-=Math.PI),n.setTextConfig({rotation:B})}function US(n,e,t){return e*Math.sin(n)*(t?-1:1)}function XA(n,e,t){return e*Math.cos(n)*(t?1:-1)}function ZS(n,e,t){var r=n.get("borderRadius");if(r==null)return t?{cornerRadius:0}:null;La(r)||(r=[r,r,r,r]);var s=Math.abs(e.r||0-e.r0||0);return{cornerRadius:ar(r,function(c){return ch(c,s)})}}var cw=Math.max,JA=Math.min;function pD(n,e){var t=n.getArea&&n.getArea();if(BS(n,"cartesian2d")){var r=n.getBaseAxis();if(r.type!=="category"||!r.onBand){var s=e.getLayout("bandWidth");r.isHorizontal()?(t.x-=s,t.width+=s*2):(t.y-=s,t.height+=s*2)}}return t}var t9=function(n){ze(e,n);function e(){var t=n.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,r,s,c){this._model=t,this._removeOnRenderedListener(s),this._updateDrawMode(t);var f=t.get("coordinateSystem");(f==="cartesian2d"||f==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,r,s):this._renderNormal(t,r,s,c))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,r){this._progressiveEls=[],this._incrementalRenderLarge(t,r)},e.prototype.eachRendered=function(t){ag(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t,r,s,c){var f=this.group,T=t.getData(),R=this._data,I=t.coordinateSystem,B=I.getBaseAxis(),Y;I.type==="cartesian2d"?Y=B.isHorizontal():I.type==="polar"&&(Y=B.dim==="angle");var q=t.isAnimationEnabled()?t:null,ie=n9(t,I);ie&&this._enableRealtimeSort(ie,T,s);var ge=t.get("clip",!0)||ie,Oe=pD(I,T);f.removeClipPath();var Ne=t.get("roundCap",!0),He=t.get("showBackground",!0),st=t.getModel("backgroundStyle"),pt=st.get("borderRadius")||0,Ut=[],pn=this._backgroundEls,yn=c&&c.isInitSort,jn=c&&c.type==="changeAxisOrder";function Cr(Er){var ma=qA[I.type](T,Er),wa=kb(I,Y,ma);return wa.useStyle(st.getItemStyle()),I.type==="cartesian2d"?wa.setShape("r",pt):wa.setShape("cornerRadius",pt),Ut[Er]=wa,wa}T.diff(R).add(function(Er){var ma=T.getItemModel(Er),wa=qA[I.type](T,Er,ma);if(He&&Cr(Er),!(!T.hasValue(Er)||!vD[I.type](wa))){var Ga=!1;ge&&(Ga=wL[I.type](Oe,wa));var Ei=QA[I.type](t,T,Er,wa,Y,q,B.model,!1,Ne);ie&&(Ei.forceLabelAnimation=!0),hD(Ei,T,Er,ma,wa,t,Y,I.type==="polar"),yn?Ei.attr({shape:wa}):ie?TL(ie,q,Ei,wa,Er,Y,!1,!1):Sv(Ei,{shape:wa},t,Er),T.setItemGraphicEl(Er,Ei),f.add(Ei),Ei.ignore=Ga}}).update(function(Er,ma){var wa=T.getItemModel(Er),Ga=qA[I.type](T,Er,wa);if(He){var Ei=void 0;pn.length===0?Ei=Cr(ma):(Ei=pn[ma],Ei.useStyle(st.getItemStyle()),I.type==="cartesian2d"?Ei.setShape("r",pt):Ei.setShape("cornerRadius",pt),Ut[Er]=Ei);var Vi=qA[I.type](T,Er),ns=gD(Y,Vi,I);vp(Ei,{shape:ns},q,Er)}var zo=R.getItemGraphicEl(ma);if(!T.hasValue(Er)||!vD[I.type](Ga)){f.remove(zo);return}var xs=!1;if(ge&&(xs=wL[I.type](Oe,Ga),xs&&f.remove(zo)),zo?e_(zo):zo=QA[I.type](t,T,Er,Ga,Y,q,B.model,!!zo,Ne),ie&&(zo.forceLabelAnimation=!0),jn){var pl=zo.getTextContent();if(pl){var Rl=py(pl);Rl.prevValue!=null&&(Rl.prevValue=Rl.value)}}else hD(zo,T,Er,wa,Ga,t,Y,I.type==="polar");yn?zo.attr({shape:Ga}):ie?TL(ie,q,zo,Ga,Er,Y,!0,jn):vp(zo,{shape:Ga},t,Er,null),T.setItemGraphicEl(Er,zo),zo.ignore=xs,f.add(zo)}).remove(function(Er){var ma=R.getItemGraphicEl(Er);ma&&H1(ma,t,Er)}).execute();var Nr=this._backgroundGroup||(this._backgroundGroup=new Qi);Nr.removeAll();for(var Rr=0;Rr<Ut.length;++Rr)Nr.add(Ut[Rr]);f.add(Nr),this._backgroundEls=Ut,this._data=T},e.prototype._renderLarge=function(t,r,s){this._clear(),kL(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,r){this._removeBackground(),kL(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var r=t.get("clip",!0)&&HA(t.coordinateSystem,!1,t),s=this.group;r?s.setClipPath(r):s.removeClipPath()},e.prototype._enableRealtimeSort=function(t,r,s){var c=this;if(!!r.count()){var f=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,t,s),this._isFirstFrame=!1;else{var T=function(R){var I=r.getItemGraphicEl(R),B=I&&I.shape;return B&&Math.abs(f.isHorizontal()?B.height:B.width)||0};this._onRendered=function(){c._updateSortWithinSameData(r,T,f,s)},s.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,r,s){var c=[];return t.each(t.mapDimension(r.dim),function(f,T){var R=s(T);R=R==null?NaN:R,c.push({dataIndex:T,mappedValue:R,ordinalNumber:f})}),c.sort(function(f,T){return T.mappedValue-f.mappedValue}),{ordinalNumbers:ar(c,function(f){return f.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,r,s){for(var c=s.scale,f=t.mapDimension(s.dim),T=Number.MAX_VALUE,R=0,I=c.getOrdinalMeta().categories.length;R<I;++R){var B=t.rawIndexOf(f,c.getRawOrdinalNumber(R)),Y=B<0?Number.MIN_VALUE:r(t.indexOfRawIndex(B));if(Y>T)return!0;T=Y}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var s=r.scale,c=s.getExtent(),f=Math.max(0,c[0]),T=Math.min(c[1],s.getOrdinalMeta().categories.length-1);f<=T;++f)if(t.ordinalNumbers[f]!==s.getRawOrdinalNumber(f))return!0},e.prototype._updateSortWithinSameData=function(t,r,s,c){if(!!this._isOrderChangedWithinSameData(t,r,s)){var f=this._dataSort(t,s,r);this._isOrderDifferentInView(f,s)&&(this._removeOnRenderedListener(c),c.dispatchAction({type:"changeAxisOrder",componentType:s.dim+"Axis",axisId:s.index,sortInfo:f}))}},e.prototype._dispatchInitSort=function(t,r,s){var c=r.baseAxis,f=this._dataSort(t,c,function(T){return t.get(t.mapDimension(r.otherAxis.dim),T)});s.dispatchAction({type:"changeAxisOrder",componentType:c.dim+"Axis",isInitSort:!0,axisId:c.index,sortInfo:f})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,s=this._data;t&&t.isAnimationEnabled()&&s&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],s.eachItemGraphicEl(function(c){H1(c,t,nu(c).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(vv),wL={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var s=n.x+n.width,c=n.y+n.height,f=cw(e.x,n.x),T=JA(e.x+e.width,s),R=cw(e.y,n.y),I=JA(e.y+e.height,c),B=T<f,Y=I<R;return e.x=B&&f>s?T:f,e.y=Y&&R>c?I:R,e.width=B?0:T-f,e.height=Y?0:I-R,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),B||Y},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var s=JA(e.r,n.r),c=cw(e.r0,n.r0);e.r=s,e.r0=c;var f=s-c<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return f}},QA={cartesian2d:function(n,e,t,r,s,c,f,T,R){var I=new jd({shape:Ea({},r),z2:1});if(I.__dataIndex=t,I.name="item",c){var B=I.shape,Y=s?"height":"width";B[Y]=0}return I},polar:function(n,e,t,r,s,c,f,T,R){var I=!s&&R?Mb:eg,B=new I({shape:r,z2:1});B.name="item";var Y=ML(s);if(B.calculateTextPosition=CL(Y,{isRoundCap:I===Mb}),c){var q=B.shape,ie=s?"r":"endAngle",ge={};q[ie]=s?r.r0:r.startAngle,ge[ie]=r[ie],(T?vp:Sv)(B,{shape:ge},c)}return B}};function n9(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function TL(n,e,t,r,s,c,f,T){var R,I;c?(I={x:r.x,width:r.width},R={y:r.y,height:r.height}):(I={y:r.y,height:r.height},R={x:r.x,width:r.width}),T||(f?vp:Sv)(t,{shape:R},e,s,null);var B=e?n.baseAxis.model:null;(f?vp:Sv)(t,{shape:I},B,s)}function AL(n,e){for(var t=0;t<e.length;t++)if(!isFinite(n[e[t]]))return!0;return!1}var r9=["x","y","width","height"],a9=["cx","cy","r","startAngle","endAngle"],vD={cartesian2d:function(n){return!AL(n,r9)},polar:function(n){return!AL(n,a9)}},qA={cartesian2d:function(n,e,t){var r=n.getItemLayout(e),s=t?i9(t,r):0,c=r.width>0?1:-1,f=r.height>0?1:-1;return{x:r.x+c*s/2,y:r.y+f*s/2,width:r.width-c*s,height:r.height-f*s}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function eE(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function ML(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function hD(n,e,t,r,s,c,f,T){var R=e.getItemVisual(t,"style");if(T){if(!c.get("roundCap")){var B=n.shape,Y=ZS(r.getModel("itemStyle"),B,!0);Ea(B,Y),n.setShape(B)}}else{var I=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",I)}n.useStyle(R);var q=r.getShallow("cursor");q&&n.attr("cursor",q);var ie=T?f?s.r>=s.r0?"endArc":"startArc":s.endAngle>=s.startAngle?"endAngle":"startAngle":f?s.height>=0?"bottom":"top":s.width>=0?"right":"left",ge=bh(r);bv(n,ge,{labelFetcher:c,labelDataIndex:t,defaultText:ow(c.getData(),t),inheritColor:R.fill,defaultOpacity:R.opacity,defaultOutsidePosition:ie});var Oe=n.getTextContent();if(T&&Oe){var Ne=r.get(["label","position"]);n.textConfig.inside=Ne==="middle"?!0:null,dD(n,Ne==="outside"?ie:Ne,ML(f),r.get(["label","rotate"]))}zC(Oe,ge,c.getRawValue(t),function(st){return YI(e,st)});var He=r.getModel(["emphasis"]);ih(n,He.get("focus"),He.get("blurScope"),He.get("disabled")),Om(n,r),eE(s)&&(n.style.fill="none",n.style.stroke="none",At(n.states,function(st){st.style&&(st.style.fill=st.style.stroke="none")}))}function i9(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,s=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),c=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,s,c)}var o9=function(){function n(){}return n}(),Mg=function(n){ze(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new o9},e.prototype.buildPath=function(t,r){for(var s=r.points,c=this.baseDimIdx,f=1-this.baseDimIdx,T=[],R=[],I=this.barWidth,B=0;B<s.length;B+=3)R[c]=I,R[f]=s[B+2],T[c]=s[B+c],T[f]=s[B+f],t.rect(T[0],T[1],R[0],R[1])},e}(Od);function kL(n,e,t,r){var s=n.getData(),c=s.getLayout("valueAxisHorizontal")?1:0,f=s.getLayout("largeDataIndices"),T=s.getLayout("size"),R=n.getModel("backgroundStyle"),I=s.getLayout("largeBackgroundPoints");if(I){var B=new Mg({shape:{points:I},incremental:!!r,silent:!0,z2:0});B.baseDimIdx=c,B.largeDataIndices=f,B.barWidth=T,B.useStyle(R.getItemStyle()),e.add(B),t&&t.push(B)}var Y=new Mg({shape:{points:s.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});Y.baseDimIdx=c,Y.largeDataIndices=f,Y.barWidth=T,e.add(Y),Y.useStyle(s.getVisual("style")),nu(Y).seriesIndex=n.seriesIndex,n.get("silent")||(Y.on("mousedown",mD),Y.on("mousemove",mD)),t&&t.push(Y)}var mD=xe(function(n){var e=this,t=s9(e,n.offsetX,n.offsetY);nu(e).dataIndex=t>=0?t:null},30,!1);function s9(n,e,t){for(var r=n.baseDimIdx,s=1-r,c=n.shape.points,f=n.largeDataIndices,T=[],R=[],I=n.barWidth,B=0,Y=c.length/3;B<Y;B++){var q=B*3;if(R[r]=I,R[s]=c[q+2],T[r]=c[q+r],T[s]=c[q+s],R[s]<0&&(T[s]+=R[s],R[s]=-R[s]),e>=T[0]&&e<=T[0]+R[0]&&t>=T[1]&&t<=T[1]+R[1])return f[B]}return-1}function gD(n,e,t){if(BS(t,"cartesian2d")){var r=e,s=t.getArea();return{x:n?r.x:s.x,y:n?s.y:r.y,width:n?r.width:s.width,height:n?s.height:r.height}}else{var s=t.getArea(),c=e;return{cx:s.cx,cy:s.cy,r0:n?s.r0:c.r0,r:n?s.r:c.r,startAngle:n?c.startAngle:0,endAngle:n?c.endAngle:Math.PI*2}}}function kb(n,e,t){var r=n.type==="polar"?eg:jd;return new r({shape:gD(e,t,n),silent:!0,z2:0})}var PL=t9;function l9(n){n.registerChartView(PL),n.registerSeriesModel(e9),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,$i(bL,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,xL("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,oD("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(s){e.sortInfo&&s.axis.setCategorySortInfo(e.sortInfo)})})}var eM=Math.PI*2,ru=Math.PI/180;function c9(n,e){return mm(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function RL(n,e){var t=c9(n,e),r=n.get("center"),s=n.get("radius");La(s)||(s=[0,s]);var c=It(t.width,e.getWidth()),f=It(t.height,e.getHeight()),T=Math.min(c,f),R=It(s[0],T/2),I=It(s[1],T/2),B,Y,q=n.coordinateSystem;if(q){var ie=q.dataToPoint(r);B=ie[0]||0,Y=ie[1]||0}else La(r)||(r=[r,r]),B=It(r[0],c)+t.x,Y=It(r[1],f)+t.y;return{cx:B,cy:Y,r0:R,r:I}}function _D(n,e,t){e.eachSeriesByType(n,function(r){var s=r.getData(),c=s.mapDimension("value"),f=c9(r,t),T=RL(r,t),R=T.cx,I=T.cy,B=T.r,Y=T.r0,q=-r.get("startAngle")*ru,ie=r.get("minAngle")*ru,ge=0;s.each(c,function(Rr){!isNaN(Rr)&&ge++});var Oe=s.getSum(c),Ne=Math.PI/(Oe||ge)*2,He=r.get("clockwise"),st=r.get("roseType"),pt=r.get("stillShowZeroSum"),Ut=s.getDataExtent(c);Ut[0]=0;var pn=eM,yn=0,jn=q,Cr=He?1:-1;if(s.setLayout({viewRect:f,r:B}),s.each(c,function(Rr,Er){var ma;if(isNaN(Rr)){s.setItemLayout(Er,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:He,cx:R,cy:I,r0:Y,r:st?NaN:B});return}st!=="area"?ma=Oe===0&&pt?Ne:Rr*Ne:ma=eM/ge,ma<ie?(ma=ie,pn-=ie):yn+=Rr;var wa=jn+Cr*ma;s.setItemLayout(Er,{angle:ma,startAngle:jn,endAngle:wa,clockwise:He,cx:R,cy:I,r0:Y,r:st?yt(Rr,Ut,[Y,B]):B}),jn=wa}),pn<eM&&ge)if(pn<=.001){var Nr=eM/ge;s.each(c,function(Rr,Er){if(!isNaN(Rr)){var ma=s.getItemLayout(Er);ma.angle=Nr,ma.startAngle=q+Cr*Er*Nr,ma.endAngle=q+Cr*(Er+1)*Nr}})}else Ne=pn/yn,jn=q,s.each(c,function(Rr,Er){if(!isNaN(Rr)){var ma=s.getItemLayout(Er),wa=ma.angle===ie?ie:Rr*Ne;ma.startAngle=jn,ma.endAngle=jn+Cr*wa,jn+=Cr*wa}})})}function kg(n){return{seriesType:n,reset:function(e,t){var r=t.findComponents({mainType:"legend"});if(!(!r||!r.length)){var s=e.getData();s.filterSelf(function(c){for(var f=s.getName(c),T=0;T<r.length;T++)if(!r[T].isSelected(f))return!1;return!0})}}}}var nm=Math.PI/180;function yD(n,e,t,r,s,c,f,T,R,I){if(n.length<2)return;function B(Oe){for(var Ne=Oe.rB,He=Ne*Ne,st=0;st<Oe.list.length;st++){var pt=Oe.list[st],Ut=Math.abs(pt.label.y-t),pn=r+pt.len,yn=pn*pn,jn=Math.sqrt((1-Math.abs(Ut*Ut/He))*yn),Cr=e+(jn+pt.len2)*s,Nr=Cr-pt.label.x,Rr=pt.targetTextWidth-Nr*s;OL(pt,Rr,!0),pt.label.x=Cr}}function Y(Oe){for(var Ne={list:[],maxY:0},He={list:[],maxY:0},st=0;st<Oe.length;st++)if(Oe[st].labelAlignTo==="none"){var pt=Oe[st],Ut=pt.label.y>t?He:Ne,pn=Math.abs(pt.label.y-t);if(pn>=Ut.maxY){var yn=pt.label.x-e-pt.len2*s,jn=r+pt.len,Cr=Math.abs(yn)<jn?Math.sqrt(pn*pn/(1-yn*yn/jn/jn)):jn;Ut.rB=Cr,Ut.maxY=pn}Ut.list.push(pt)}B(Ne),B(He)}for(var q=n.length,ie=0;ie<q;ie++)if(n[ie].position==="outer"&&n[ie].labelAlignTo==="labelLine"){var ge=n[ie].label.x-I;n[ie].linePoints[1][0]+=ge,n[ie].label.x=I}vN(n,R,R+f)&&Y(n)}function u9(n,e,t,r,s,c,f,T){for(var R=[],I=[],B=Number.MAX_VALUE,Y=-Number.MAX_VALUE,q=0;q<n.length;q++){var ie=n[q].label;IL(n[q])||(ie.x<e?(B=Math.min(B,ie.x),R.push(n[q])):(Y=Math.max(Y,ie.x),I.push(n[q])))}for(var q=0;q<n.length;q++){var ge=n[q];if(!IL(ge)&&ge.linePoints){if(ge.labelStyleWidth!=null)continue;var ie=ge.label,Oe=ge.linePoints,Ne=void 0;ge.labelAlignTo==="edge"?ie.x<e?Ne=Oe[2][0]-ge.labelDistance-f-ge.edgeDistance:Ne=f+s-ge.edgeDistance-Oe[2][0]-ge.labelDistance:ge.labelAlignTo==="labelLine"?ie.x<e?Ne=B-f-ge.bleedMargin:Ne=f+s-Y-ge.bleedMargin:ie.x<e?Ne=ie.x-f-ge.bleedMargin:Ne=f+s-ie.x-ge.bleedMargin,ge.targetTextWidth=Ne,OL(ge,Ne)}}yD(I,e,t,r,1,s,c,f,T,Y),yD(R,e,t,r,-1,s,c,f,T,B);for(var q=0;q<n.length;q++){var ge=n[q];if(!IL(ge)&&ge.linePoints){var ie=ge.label,Oe=ge.linePoints,He=ge.labelAlignTo==="edge",st=ie.style.padding,pt=st?st[1]+st[3]:0,Ut=ie.style.backgroundColor?0:pt,pn=ge.rect.width+Ut,yn=Oe[1][0]-Oe[2][0];He?ie.x<e?Oe[2][0]=f+ge.edgeDistance+pn+ge.labelDistance:Oe[2][0]=f+s-ge.edgeDistance-pn-ge.labelDistance:(ie.x<e?Oe[2][0]=ie.x+ge.labelDistance:Oe[2][0]=ie.x-ge.labelDistance,Oe[1][0]=Oe[2][0]+yn),Oe[1][1]=Oe[2][1]=ie.y}}}function OL(n,e,t){if(t===void 0&&(t=!1),n.labelStyleWidth==null){var r=n.label,s=r.style,c=n.rect,f=s.backgroundColor,T=s.padding,R=T?T[1]+T[3]:0,I=s.overflow,B=c.width+(f?0:R);if(e<B||t){var Y=c.height;if(I&&I.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-R);var q=r.getBoundingRect();r.setStyle("width",Math.ceil(q.width)),r.setStyle("backgroundColor",f)}else{var ie=e-R,ge=e<B?ie:t?ie>n.unconstrainedWidth?null:ie:null;r.setStyle("width",ge)}var Oe=r.getBoundingRect();c.width=Oe.width;var Ne=(r.style.margin||0)+2.1;c.height=Oe.height+Ne,c.y-=(c.height-Y)/2}}}function IL(n){return n.position==="center"}function FW(n){var e=n.getData(),t=[],r,s,c=!1,f=(n.get("minShowLabelAngle")||0)*nm,T=e.getLayout("viewRect"),R=e.getLayout("r"),I=T.width,B=T.x,Y=T.y,q=T.height;function ie(yn){yn.ignore=!0}function ge(yn){if(!yn.ignore)return!0;for(var jn in yn.states)if(yn.states[jn].ignore===!1)return!0;return!1}e.each(function(yn){var jn=e.getItemGraphicEl(yn),Cr=jn.shape,Nr=jn.getTextContent(),Rr=jn.getTextGuideLine(),Er=e.getItemModel(yn),ma=Er.getModel("label"),wa=ma.get("position")||Er.get(["emphasis","label","position"]),Ga=ma.get("distanceToLabelLine"),Ei=ma.get("alignTo"),Vi=It(ma.get("edgeDistance"),I),ns=ma.get("bleedMargin"),zo=Er.getModel("labelLine"),xs=zo.get("length");xs=It(xs,I);var pl=zo.get("length2");if(pl=It(pl,I),Math.abs(Cr.endAngle-Cr.startAngle)<f){At(Nr.states,ie),Nr.ignore=!0,Rr&&(At(Rr.states,ie),Rr.ignore=!0);return}if(!!ge(Nr)){var Rl=(Cr.startAngle+Cr.endAngle)/2,zl=Math.cos(Rl),Yc=Math.sin(Rl),kc,tf,wf,su;r=Cr.cx,s=Cr.cy;var ic=wa==="inside"||wa==="inner";if(wa==="center")kc=Cr.cx,tf=Cr.cy,su="center";else{var Uc=(ic?(Cr.r+Cr.r0)/2*zl:Cr.r*zl)+r,bu=(ic?(Cr.r+Cr.r0)/2*Yc:Cr.r*Yc)+s;if(kc=Uc+zl*3,tf=bu+Yc*3,!ic){var tc=Uc+zl*(xs+R-Cr.r),nf=bu+Yc*(xs+R-Cr.r),gd=tc+(zl<0?-1:1)*pl,xd=nf;Ei==="edge"?kc=zl<0?B+Vi:B+I-Vi:kc=gd+(zl<0?-Ga:Ga),tf=xd,wf=[[Uc,bu],[tc,nf],[gd,xd]]}su=ic?"center":Ei==="edge"?zl>0?"right":"left":zl>0?"left":"right"}var lv=Math.PI,_p=0,$v=ma.get("rotate");if(yo($v))_p=$v*(lv/180);else if(wa==="center")_p=0;else if($v==="radial"||$v===!0){var _v=zl<0?-Rl+lv:-Rl;_p=_v}else if($v==="tangential"&&wa!=="outside"&&wa!=="outer"){var yp=Math.atan2(zl,Yc);yp<0&&(yp=lv*2+yp);var Wd=Yc>0;Wd&&(yp=lv+yp),_p=yp-lv}if(c=!!_p,Nr.x=kc,Nr.y=tf,Nr.rotation=_p,Nr.setStyle({verticalAlign:"middle"}),ic){Nr.setStyle({align:su});var Zd=Nr.states.select;Zd&&(Zd.x+=Nr.x,Zd.y+=Nr.y)}else{var vu=Nr.getBoundingRect().clone();vu.applyTransform(Nr.getComputedTransform());var Hd=(Nr.style.margin||0)+2.1;vu.y-=Hd/2,vu.height+=Hd,t.push({label:Nr,labelLine:Rr,position:wa,len:xs,len2:pl,minTurnAngle:zo.get("minTurnAngle"),maxSurfaceAngle:zo.get("maxSurfaceAngle"),surfaceNormal:new $c(zl,Yc),linePoints:wf,textAlign:su,labelDistance:Ga,labelAlignTo:Ei,edgeDistance:Vi,bleedMargin:ns,rect:vu,unconstrainedWidth:vu.width,labelStyleWidth:Nr.style.width})}jn.setTextConfig({inside:ic})}}),!c&&n.get("avoidLabelOverlap")&&u9(t,r,s,R,I,q,B,Y);for(var Oe=0;Oe<t.length;Oe++){var Ne=t[Oe],He=Ne.label,st=Ne.labelLine,pt=isNaN(He.x)||isNaN(He.y);if(He){He.setStyle({align:Ne.textAlign}),pt&&(At(He.states,ie),He.ignore=!0);var Ut=He.states.select;Ut&&(Ut.x+=He.x,Ut.y+=He.y)}if(st){var pn=Ne.linePoints;pt||!pn?(At(st.states,ie),st.ignore=!0):(fN(pn,Ne.minTurnAngle),u7(pn,Ne.surfaceNormal,Ne.maxSurfaceAngle),st.setShape({points:pn}),He.__hostTarget.textGuideLineConfig={anchor:new $c(pn[0][0],pn[0][1])})}}}var jW=function(n){ze(e,n);function e(t,r,s){var c=n.call(this)||this;c.z2=2;var f=new Tp;return c.setTextContent(f),c.updateData(t,r,s,!0),c}return e.prototype.updateData=function(t,r,s,c){var f=this,T=t.hostModel,R=t.getItemModel(r),I=R.getModel("emphasis"),B=t.getItemLayout(r),Y=Ea(ZS(R.getModel("itemStyle"),B,!0),B);if(isNaN(Y.startAngle)){f.setShape(Y);return}if(c){f.setShape(Y);var q=T.getShallow("animationType");T.ecModel.ssr?(Sv(f,{scaleX:0,scaleY:0},T,{dataIndex:r,isFrom:!0}),f.originX=Y.cx,f.originY=Y.cy):q==="scale"?(f.shape.r=B.r0,Sv(f,{shape:{r:B.r}},T,r)):s!=null?(f.setShape({startAngle:s,endAngle:s}),Sv(f,{shape:{startAngle:B.startAngle,endAngle:B.endAngle}},T,r)):(f.shape.endAngle=B.startAngle,vp(f,{shape:{endAngle:B.endAngle}},T,r))}else e_(f),vp(f,{shape:Y},T,r);f.useStyle(t.getItemVisual(r,"style")),Om(f,R);var ie=(B.startAngle+B.endAngle)/2,ge=T.get("selectedOffset"),Oe=Math.cos(ie)*ge,Ne=Math.sin(ie)*ge,He=R.getShallow("cursor");He&&f.attr("cursor",He),this._updateLabel(T,t,r),f.ensureState("emphasis").shape=Ea({r:B.r+(I.get("scale")&&I.get("scaleSize")||0)},ZS(I.getModel("itemStyle"),B)),Ea(f.ensureState("select"),{x:Oe,y:Ne,shape:ZS(R.getModel(["select","itemStyle"]),B)}),Ea(f.ensureState("blur"),{shape:ZS(R.getModel(["blur","itemStyle"]),B)});var st=f.getTextGuideLine(),pt=f.getTextContent();st&&Ea(st.ensureState("select"),{x:Oe,y:Ne}),Ea(pt.ensureState("select"),{x:Oe,y:Ne}),ih(this,I.get("focus"),I.get("blurScope"),I.get("disabled"))},e.prototype._updateLabel=function(t,r,s){var c=this,f=r.getItemModel(s),T=f.getModel("labelLine"),R=r.getItemVisual(s,"style"),I=R&&R.fill,B=R&&R.opacity;bv(c,bh(f),{labelFetcher:r.hostModel,labelDataIndex:s,inheritColor:I,defaultOpacity:B,defaultText:t.getFormattedLabel(s,"normal")||r.getName(s)});var Y=c.getTextContent();c.setTextConfig({position:null,rotation:null}),Y.attr({z2:10});var q=t.get(["label","position"]);if(q!=="outside"&&q!=="outer")c.removeTextGuideLine();else{var ie=this.getTextGuideLine();ie||(ie=new ng,this.setTextGuideLine(ie)),gI(this,_I(f),{stroke:I,opacity:Ot(T.get(["lineStyle","opacity"]),B,1)})}},e}(eg),BW=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,s,c){var f=t.getData(),T=this._data,R=this.group,I;if(!T&&f.count()>0){for(var B=f.getItemLayout(0),Y=1;isNaN(B&&B.startAngle)&&Y<f.count();++Y)B=f.getItemLayout(Y);B&&(I=B.startAngle)}if(this._emptyCircleSector&&R.remove(this._emptyCircleSector),f.count()===0&&t.get("showEmptyCircle")){var q=new eg({shape:RL(t,s)});q.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=q,R.add(q)}f.diff(T).add(function(ie){var ge=new jW(f,ie,I);f.setItemGraphicEl(ie,ge),R.add(ge)}).update(function(ie,ge){var Oe=T.getItemGraphicEl(ge);Oe.updateData(f,ie,I),Oe.off("click"),R.add(Oe),f.setItemGraphicEl(ie,Oe)}).remove(function(ie){var ge=T.getItemGraphicEl(ie);H1(ge,t,ie)}).execute(),FW(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=f)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,r){var s=r.getData(),c=s.getItemLayout(0);if(c){var f=t[0]-c.cx,T=t[1]-c.cy,R=Math.sqrt(f*f+T*T);return R<=c.r&&R>=c.r0}},e.type="pie",e}(vv),f9=BW;function uw(n,e,t){e=La(e)&&{coordDimensions:e}||Ea({encodeDefine:n.getEncode()},e);var r=n.getSource(),s=aw(r,e).dimensions,c=new M_(s,n);return c.initData(r,t),c}var d9=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}(),VS=d9,p9=Bi(),bD=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new VS(Xa(this.getData,this),Xa(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return uw(this,{coordDimensions:["value"],encodeDefaulter:$i(ET,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),s=p9(r),c=s.seats;if(!c){var f=[];r.each(r.mapDimension("value"),function(R){f.push(R)}),c=s.seats=xa(f,r.hostModel.get("percentPrecision"))}var T=n.prototype.getDataParams.call(this,t);return T.percent=c[t]||0,T.$vars.push("percent"),T},e.prototype._defaultLabelLine=function(t){cd(t,"labelLine",["show"]);var r=t.labelLine,s=t.emphasis.labelLine;r.show=r.show&&t.label.show,s.show=s.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(oh),DL=bD;function v9(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(s){var c=r.mapDimension("value"),f=r.get(c,s);return!(yo(f)&&!isNaN(f)&&f<0)})}}}function h9(n){n.registerChartView(f9),n.registerSeriesModel(DL),Hs("pie",n.registerAction),n.registerLayout($i(_D,"pie")),n.registerProcessor(kg("pie")),n.registerProcessor(v9("pie"))}var m9=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return Tb(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,r,s){return s.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(oh),tM=m9,NL=4,g9=function(){function n(){}return n}(),_9=function(n){ze(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new g9},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var s=r.points,c=r.size,f=this.symbolProxy,T=f.shape,R=t.getContext?t.getContext():t,I=R&&c[0]<NL,B=this.softClipShape,Y;if(I){this._ctx=R;return}for(this._ctx=null,Y=this._off;Y<s.length;){var q=s[Y++],ie=s[Y++];isNaN(q)||isNaN(ie)||B&&!B.contain(q,ie)||(T.x=q-c[0]/2,T.y=ie-c[1]/2,T.width=c[0],T.height=c[1],f.buildPath(t,T,!0))}this.incremental&&(this._off=Y,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,r=t.points,s=t.size,c=this._ctx,f=this.softClipShape,T;if(!!c){for(T=this._off;T<r.length;){var R=r[T++],I=r[T++];isNaN(R)||isNaN(I)||f&&!f.contain(R,I)||c.fillRect(R-s[0]/2,I-s[1]/2,s[0],s[1])}this.incremental&&(this._off=T,this.notClear=!0)}},e.prototype.findDataIndex=function(t,r){for(var s=this.shape,c=s.points,f=s.size,T=Math.max(f[0],4),R=Math.max(f[1],4),I=c.length/2-1;I>=0;I--){var B=I*2,Y=c[B]-T/2,q=c[B+1]-R/2;if(t>=Y&&r>=q&&t<=Y+T&&r<=q+R)return I}return-1},e.prototype.contain=function(t,r){var s=this.transformCoordToLocal(t,r),c=this.getBoundingRect();if(t=s[0],r=s[1],c.contain(t,r)){var f=this.hoverDataIdx=this.findDataIndex(t,r);return f>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,s=r.points,c=r.size,f=c[0],T=c[1],R=Infinity,I=Infinity,B=-Infinity,Y=-Infinity,q=0;q<s.length;){var ie=s[q++],ge=s[q++];R=Math.min(ie,R),B=Math.max(ie,B),I=Math.min(ge,I),Y=Math.max(ge,Y)}t=this._rect=new ra(R-f/2,I-T/2,B-R+f,Y-I+T)}return t},e}(Od),y9=function(){function n(){this.group=new Qi}return n.prototype.updateData=function(e,t){this._clear();var r=this._create();r.setShape({points:e.getLayout("points")}),this._setCommon(r,e,t)},n.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var s=(r.endIndex-r.startIndex)*2,c=r.startIndex*4*2;t=new Float32Array(t.buffer,c,s)}r.setShape("points",t),r.reset()})},n.prototype.incrementalPrepareUpdate=function(e){this._clear()},n.prototype.incrementalUpdate=function(e,t,r){var s=this._newAdded[0],c=t.getLayout("points"),f=s&&s.shape.points;if(f&&f.length<2e4){var T=f.length,R=new Float32Array(T+c.length);R.set(f),R.set(c,T),s.endIndex=e.end,s.setShape({points:R})}else{this._newAdded=[];var I=this._create();I.startIndex=e.start,I.endIndex=e.end,I.incremental=!0,I.setShape({points:c}),this._setCommon(I,t,r)}},n.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},n.prototype._create=function(){var e=new _9({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},n.prototype._setCommon=function(e,t,r){var s=t.hostModel;r=r||{};var c=t.getVisual("symbolSize");e.setShape("size",c instanceof Array?c:[c,c]),e.softClipShape=r.clipShape||null,e.symbolProxy=ad(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var f=e.shape.size[0]<NL;e.useStyle(s.getModel("itemStyle").getItemStyle(f?["color","shadowBlur","shadowColor"]:["color"]));var T=t.getVisual("style"),R=T&&T.fill;R&&e.setColor(R);var I=nu(e);I.seriesIndex=s.seriesIndex,e.on("mousemove",function(B){I.dataIndex=null;var Y=e.hoverDataIdx;Y>=0&&(I.dataIndex=Y+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}(),b9=y9,x9=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s){var c=t.getData(),f=this._updateSymbolDraw(c,t);f.updateData(c,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,s){var c=t.getData(),f=this._updateSymbolDraw(c,t);f.incrementalPrepareUpdate(c),this._finished=!1},e.prototype.incrementalRender=function(t,r,s){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,s){var c=t.getData();if(this.group.dirty(),!this._finished||c.count()>1e4)return{update:!0};var f=lw("").reset(t,r,s);f.progress&&f.progress({start:0,end:c.count(),count:c.count()},c),this._symbolDraw.updateLayout(c)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,s=r&&r.getArea&&r.getArea();return t.get("clip",!0)?s:null},e.prototype._updateSymbolDraw=function(t,r){var s=this._symbolDraw,c=r.pipelineContext,f=c.large;return(!s||f!==this._isLargeDraw)&&(s&&s.remove(),s=this._symbolDraw=f?new b9:new Sm,this._isLargeDraw=f,this.group.removeAll()),this.group.add(s.group),s},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(vv),E9=x9,S9=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Mp),C9=S9,nM=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),xD=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",vs).models[0]},e.type="cartesian2dAxis",e}(Mp);Kn(xD,nM);var UW=null,LL={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},ZW=ba({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},LL),ED=ba({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},LL),FL=ba({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ED),zS=Pi({logBase:10},ED),fw={category:ZW,value:ED,time:FL,log:zS},w9=0,jL=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++w9}return n.createByAxisModel=function(e){var t=e.option,r=t.data,s=r&&ar(r,T9);return new n({categories:s,needCollect:!s,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!ei(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var s=this._getOrCreateMap();return t=s.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,s.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=Za(this.categories))},n}();function T9(n){return to(n)&&n.value!=null?n.value:n+""}var SD=jL,A9={value:1,category:1,time:1,log:1};function WS(n,e,t,r){At(A9,function(s,c){var f=ba(ba({},fw[c],!0),r,!0),T=function(R){ze(I,R);function I(){var B=R!==null&&R.apply(this,arguments)||this;return B.type=e+"Axis."+c,B}return I.prototype.mergeDefaultAndTheme=function(B,Y){var q=XE(this),ie=q?JE(B):{},ge=Y.getTheme();ba(B,ge.get(c+"Axis")),ba(B,this.getDefaultOption()),B.type=CD(B),q&&Ky(B,ie,q)},I.prototype.optionUpdated=function(){var B=this.option;B.type==="category"&&(this.__ordinalMeta=SD.createByAxisModel(this))},I.prototype.getCategories=function(B){var Y=this.option;if(Y.type==="category")return B?Y.data:this.__ordinalMeta.categories},I.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},I.type=e+"Axis."+c,I.defaultOption=f,I}(t);n.registerComponentModel(T)}),n.registerSubTypeDefaulter(e+"Axis",CD)}function CD(n){return n.type||(n.data?"category":"value")}var BL=function(){function n(e){this._setting=e||{},this._extent=[Infinity,-Infinity]}return n.prototype.getSetting=function(e){return this._setting[e]},n.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Qr(BL);var Pb=BL;function VW(n){var e=Math.pow(10,quantityExponent(Math.abs(n))),t=Math.abs(n/e);return t===0||t===1||t===2||t===3||t===5}function wD(n){return n.type==="interval"||n.type==="log"}function M9(n,e,t,r){var s={},c=n[1]-n[0],f=s.interval=du(c/e,!0);t!=null&&f<t&&(f=s.interval=t),r!=null&&f>r&&(f=s.interval=r);var T=s.intervalPrecision=KP(f),R=s.niceTickExtent=[Sn(Math.ceil(n[0]/f)*f,T),Sn(Math.floor(n[1]/f)*f,T)];return UL(R,n),s}function dw(n){var e=Math.pow(10,uc(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Sn(t*e)}function KP(n){return mr(n)+2}function TD(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function UL(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),TD(n,0,e),TD(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function HS(n,e){return n>=e[0]&&n<=e[1]}function GS(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function pw(n,e){return n*(e[1]-e[0])+e[0]}var rM=function(n){ze(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var s=r.getSetting("ordinalMeta");return s||(s=new SD({})),La(s)&&(s=new SD({categories:ar(s,function(c){return to(c)?c.value:c})})),r._ordinalMeta=s,r._extent=r.getSetting("extent")||[0,s.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:ei(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),HS(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),GS(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(pw(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,s=r[0];s<=r[1];)t.push({value:s}),s++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,s=this._ordinalNumbersByTick=[],c=this._ticksByOrdinalNumber=[],f=0,T=this._ordinalMeta.categories.length,R=Math.min(T,r.length);f<R;++f){var I=r[f];s[f]=I,c[I]=f}for(var B=0;f<T;++f){for(;c[B]!=null;)B++;s.push(B),c[B]=f}},e.prototype._getTickNumber=function(t){var r=this._ticksByOrdinalNumber;return r&&t>=0&&t<r.length?r[t]:t},e.prototype.getRawOrdinalNumber=function(t){var r=this._ordinalNumbersByTick;return r&&t>=0&&t<r.length?r[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var r=this.getRawOrdinalNumber(t.value),s=this._ordinalMeta.categories[r];return s==null?"":s+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Pb);Pb.registerClass(rM);var YP=rM,tE=Sn,nE=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return HS(t,this._extent)},e.prototype.normalize=function(t){return GS(t,this._extent)},e.prototype.scale=function(t){return pw(t,this._extent)},e.prototype.setExtent=function(t,r){var s=this._extent;isNaN(t)||(s[0]=parseFloat(t)),isNaN(r)||(s[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=KP(t)},e.prototype.getTicks=function(t){var r=this._interval,s=this._extent,c=this._niceExtent,f=this._intervalPrecision,T=[];if(!r)return T;var R=1e4;s[0]<c[0]&&(t?T.push({value:tE(c[0]-r,f)}):T.push({value:s[0]}));for(var I=c[0];I<=c[1]&&(T.push({value:I}),I=tE(I+r,f),I!==T[T.length-1].value);)if(T.length>R)return[];var B=T.length?T[T.length-1].value:c[1];return s[1]>B&&(t?T.push({value:tE(B+r,f)}):T.push({value:s[1]})),T},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),s=[],c=this.getExtent(),f=1;f<r.length;f++){for(var T=r[f],R=r[f-1],I=0,B=[],Y=T.value-R.value,q=Y/t;I<t-1;){var ie=tE(R.value+(I+1)*q);ie>c[0]&&ie<c[1]&&B.push(ie),I++}s.push(B)}return s},e.prototype.getLabel=function(t,r){if(t==null)return"";var s=r&&r.precision;s==null?s=mr(t.value)||0:s==="auto"&&(s=this._intervalPrecision);var c=tE(t.value,s,!0);return pT(c)},e.prototype.calcNiceTicks=function(t,r,s){t=t||5;var c=this._extent,f=c[1]-c[0];if(!!isFinite(f)){f<0&&(f=-f,c.reverse());var T=M9(c,t,r,s);this._intervalPrecision=T.intervalPrecision,this._interval=T.interval,this._niceExtent=T.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var s=Math.abs(r[0]);t.fixMax||(r[1]+=s/2),r[0]-=s/2}else r[1]=1;var c=r[1]-r[0];isFinite(c)||(r[0]=0,r[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var f=this._interval;t.fixMin||(r[0]=tE(Math.floor(r[0]/f)*f)),t.fixMax||(r[1]=tE(Math.ceil(r[1]/f)*f))},e.prototype.setNiceExtent=function(t,r){this._niceExtent=[t,r]},e.type="interval",e}(Pb);Pb.registerClass(nE);var p1=nE,AD=function(n,e,t,r){for(;t<r;){var s=t+r>>>1;n[s][1]<e?t=s+1:r=s}return t},MD=function(n){ze(e,n);function e(t){var r=n.call(this,t)||this;return r.type="time",r}return e.prototype.getLabel=function(t){var r=this.getSetting("useUTC");return hp(t.value,vc[Ap(Qd(this._minLevelUnit))]||vc.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,r,s){var c=this.getSetting("useUTC"),f=this.getSetting("locale");return Zg(t,r,s,f,c)},e.prototype.getTicks=function(){var t=this._interval,r=this._extent,s=[];if(!t)return s;s.push({value:r[0],level:0});var c=this.getSetting("useUTC"),f=zL(this._minLevelUnit,this._approxInterval,c,r);return s=s.concat(f),s.push({value:r[1],level:0}),s},e.prototype.calcNiceExtent=function(t){var r=this._extent;if(r[0]===r[1]&&(r[0]-=bo,r[1]+=bo),r[1]===-Infinity&&r[0]===Infinity){var s=new Date;r[1]=+new Date(s.getFullYear(),s.getMonth(),s.getDate()),r[0]=r[1]-bo}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,r,s){t=t||10;var c=this._extent,f=c[1]-c[0];this._approxInterval=f/t,r!=null&&this._approxInterval<r&&(this._approxInterval=r),s!=null&&this._approxInterval>s&&(this._approxInterval=s);var T=Rb.length,R=Math.min(AD(Rb,this._approxInterval,0,T),T-1);this._interval=Rb[R][1],this._minLevelUnit=Rb[Math.max(R-1,0)][0]},e.prototype.parse=function(t){return yo(t)?t:+ys(t)},e.prototype.contain=function(t){return HS(this.parse(t),this._extent)},e.prototype.normalize=function(t){return GS(this.parse(t),this._extent)},e.prototype.scale=function(t){return pw(t,this._extent)},e.type="time",e}(p1),Rb=[["second",ha],["minute",Ka],["hour",no],["quarter-day",no*6],["half-day",no*12],["day",bo*1.2],["half-week",bo*3.5],["week",bo*7],["month",bo*31],["quarter",bo*95],["half-year",ls/2],["year",ls]];function kD(n,e,t,r){var s=ys(e),c=ys(t),f=function(ge){return mg(s,ge,r)===mg(c,ge,r)},T=function(){return f("year")},R=function(){return T()&&f("month")},I=function(){return R()&&f("day")},B=function(){return I()&&f("hour")},Y=function(){return B()&&f("minute")},q=function(){return Y()&&f("second")},ie=function(){return q()&&f("millisecond")};switch(n){case"year":return T();case"month":return R();case"day":return I();case"hour":return B();case"minute":return Y();case"second":return q();case"millisecond":return ie()}}function k9(n,e){return n/=bo,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function PD(n){var e=30*bo;return n/=e,n>6?6:n>3?3:n>2?2:1}function ZL(n){return n/=no,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function XP(n,e){return n/=e?Ka:ha,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function P9(n){return du(n,!0)}function VL(n,e,t){var r=new Date(n);switch(Qd(e)){case"year":case"month":r[YE(t)](0);case"day":r[uT(t)](1);case"hour":r[fT(t)](0);case"minute":r[dT(t)](0);case"second":r[tk(t)](0),r[nk(t)](0)}return r.getTime()}function zL(n,e,t,r){var s=1e4,c=Zf,f=0;function T(Rr,Er,ma,wa,Ga,Ei,Vi){for(var ns=new Date(Er),zo=Er,xs=ns[wa]();zo<ma&&zo<=r[1];)Vi.push({value:zo}),xs+=Rr,ns[Ga](xs),zo=ns.getTime();Vi.push({value:zo,notAdd:!0})}function R(Rr,Er,ma){var wa=[],Ga=!Er.length;if(!kD(Qd(Rr),r[0],r[1],t)){Ga&&(Er=[{value:VL(new Date(r[0]),Rr,t)},{value:r[1]}]);for(var Ei=0;Ei<Er.length-1;Ei++){var Vi=Er[Ei].value,ns=Er[Ei+1].value;if(Vi!==ns){var zo=void 0,xs=void 0,pl=void 0,Rl=!1;switch(Rr){case"year":zo=Math.max(1,Math.round(e/bo/365)),xs=xh(t),pl=_O(t);break;case"half-year":case"quarter":case"month":zo=PD(e),xs=hm(t),pl=YE(t);break;case"week":case"half-week":case"day":zo=k9(e,31),xs=gg(t),pl=uT(t),Rl=!0;break;case"half-day":case"quarter-day":case"hour":zo=ZL(e),xs=hy(t),pl=fT(t);break;case"minute":zo=XP(e,!0),xs=HC(t),pl=dT(t);break;case"second":zo=XP(e,!1),xs=GC(t),pl=tk(t);break;case"millisecond":zo=P9(e),xs=KE(t),pl=nk(t);break}T(zo,Vi,ns,xs,pl,Rl,wa),Rr==="year"&&ma.length>1&&Ei===0&&ma.unshift({value:ma[0].value-zo})}}for(var Ei=0;Ei<wa.length;Ei++)ma.push(wa[Ei]);return wa}}for(var I=[],B=[],Y=0,q=0,ie=0;ie<c.length&&f++<s;++ie){var ge=Qd(c[ie]);if(!!Td(c[ie])){R(c[ie],I[I.length-1]||[],B);var Oe=c[ie+1]?Qd(c[ie+1]):null;if(ge!==Oe){if(B.length){q=Y,B.sort(function(Rr,Er){return Rr.value-Er.value});for(var Ne=[],He=0;He<B.length;++He){var st=B[He].value;(He===0||B[He-1].value!==st)&&(Ne.push(B[He]),st>=r[0]&&st<=r[1]&&Y++)}var pt=(r[1]-r[0])/e;if(Y>pt*1.5&&q>pt/1.5||(I.push(Ne),Y>pt||n===c[ie]))break}B=[]}}}for(var Ut=Yn(ar(I,function(Rr){return Yn(Rr,function(Er){return Er.value>=r[0]&&Er.value<=r[1]&&!Er.notAdd})}),function(Rr){return Rr.length>0}),pn=[],yn=Ut.length-1,ie=0;ie<Ut.length;++ie)for(var jn=Ut[ie],Cr=0;Cr<jn.length;++Cr)pn.push({value:jn[Cr].value,level:yn-ie});pn.sort(function(Rr,Er){return Rr.value-Er.value});for(var Nr=[],ie=0;ie<pn.length;++ie)(ie===0||pn[ie].value!==pn[ie-1].value)&&Nr.push(pn[ie]);return Nr}Pb.registerClass(MD);var WL=MD,HL=Pb.prototype,aM=p1.prototype,R9=Sn,GL=Math.floor,O9=Math.ceil,G_=Math.pow,My=Math.log,RD=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new p1,t._interval=0,t}return e.prototype.getTicks=function(t){var r=this._originalScale,s=this._extent,c=r.getExtent(),f=aM.getTicks.call(this,t);return ar(f,function(T){var R=T.value,I=Sn(G_(this.base,R));return I=R===s[0]&&this._fixMin?JP(I,c[0]):I,I=R===s[1]&&this._fixMax?JP(I,c[1]):I,{value:I}},this)},e.prototype.setExtent=function(t,r){var s=My(this.base);t=My(Math.max(0,t))/s,r=My(Math.max(0,r))/s,aM.setExtent.call(this,t,r)},e.prototype.getExtent=function(){var t=this.base,r=HL.getExtent.call(this);r[0]=G_(t,r[0]),r[1]=G_(t,r[1]);var s=this._originalScale,c=s.getExtent();return this._fixMin&&(r[0]=JP(r[0],c[0])),this._fixMax&&(r[1]=JP(r[1],c[1])),r},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var r=this.base;t[0]=My(t[0])/My(r),t[1]=My(t[1])/My(r),HL.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.calcNiceTicks=function(t){t=t||10;var r=this._extent,s=r[1]-r[0];if(!(s===Infinity||s<=0)){var c=qs(s),f=t/s*c;for(f<=.5&&(c*=10);!isNaN(c)&&Math.abs(c)<1&&Math.abs(c)>0;)c*=10;var T=[Sn(O9(r[0]/c)*c),Sn(GL(r[1]/c)*c)];this._interval=c,this._niceExtent=T}},e.prototype.calcNiceExtent=function(t){aM.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=My(t)/My(this.base),HS(t,this._extent)},e.prototype.normalize=function(t){return t=My(t)/My(this.base),GS(t,this._extent)},e.prototype.scale=function(t){return t=pw(t,this._extent),G_(this.base,t)},e.type="log",e}(Pb),iM=RD.prototype;iM.getMinorTicks=aM.getMinorTicks,iM.getLabel=aM.getLabel;function JP(n,e){return R9(n,mr(e))}Pb.registerClass(RD);var I9=RD,$L=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var s=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var c=this._modelMinRaw=t.get("min",!0);ja(c)?this._modelMinNum=QP(e,c({min:r[0],max:r[1]})):c!=="dataMin"&&(this._modelMinNum=QP(e,c));var f=this._modelMaxRaw=t.get("max",!0);if(ja(f)?this._modelMaxNum=QP(e,f({min:r[0],max:r[1]})):f!=="dataMax"&&(this._modelMaxNum=QP(e,f)),s)this._axisDataLen=t.getCategories().length;else{var T=t.get("boundaryGap"),R=La(T)?T:[T||0,T||0];typeof R[0]=="boolean"||typeof R[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ch(R[0],1),ch(R[1],1)]}},n.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,r=this._dataMax,s=this._axisDataLen,c=this._boundaryGapInner,f=e?null:r-t||Math.abs(t),T=this._modelMinRaw==="dataMin"?t:this._modelMinNum,R=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,I=T!=null,B=R!=null;T==null&&(T=e?s?0:NaN:t-c[0]*f),R==null&&(R=e?s?s-1:NaN:r+c[1]*f),(T==null||!isFinite(T))&&(T=NaN),(R==null||!isFinite(R))&&(R=NaN);var Y=Sr(T)||Sr(R)||e&&!s;this._needCrossZero&&(T>0&&R>0&&!I&&(T=0),T<0&&R<0&&!B&&(R=0));var q=this._determinedMin,ie=this._determinedMax;return q!=null&&(T=q,I=!0),ie!=null&&(R=ie,B=!0),{min:T,max:R,minFixed:I,maxFixed:B,isBlank:Y}},n.prototype.modifyDataMinMax=function(e,t){this[N9[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=D9[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),D9={min:"_determinedMin",max:"_determinedMax"},N9={min:"_dataMin",max:"_dataMax"};function Ob(n,e,t){var r=n.rawExtentInfo;return r||(r=new $L(n,e,t),n.rawExtentInfo=r,r)}function QP(n,e){return e==null?null:Sr(e)?NaN:n.parse(e)}function KL(n,e){var t=n.type,r=Ob(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var s=r.min,c=r.max,f=e.ecModel;if(f&&t==="time"){var T=_L("bar",f),R=!1;if(At(T,function(Y){R=R||Y.getBaseAxis()===e.axis}),R){var I=lD(T),B=L9(s,c,e,I);s=B.min,c=B.max}}return{extent:[s,c],fixMin:r.minFixed,fixMax:r.maxFixed}}function L9(n,e,t,r){var s=t.axis.getExtent(),c=s[1]-s[0],f=J7(r,t.axis);if(f===void 0)return{min:n,max:e};var T=Infinity;At(f,function(ie){T=Math.min(ie.offset,T)});var R=-Infinity;At(f,function(ie){R=Math.max(ie.offset+ie.width,R)}),T=Math.abs(T),R=Math.abs(R);var I=T+R,B=e-n,Y=1-(T+R)/c,q=B/Y-B;return e+=q*(R/I),n-=q*(T/I),{min:n,max:e}}function vw(n,e){var t=e,r=KL(n,t),s=r.extent,c=t.get("splitNumber");n instanceof I9&&(n.base=t.get("logBase"));var f=n.type,T=t.get("interval"),R=f==="interval"||f==="time";n.setExtent(s[0],s[1]),n.calcNiceExtent({splitNumber:c,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:R?t.get("minInterval"):null,maxInterval:R?t.get("maxInterval"):null}),T!=null&&n.setInterval&&n.setInterval(T)}function qP(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new YP({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[Infinity,-Infinity]});case"time":return new WL({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(Pb.getClass(e)||p1)}}function YL(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function oM(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(s,c){return n.scale.getFormattedLabel(s,c,r)}}(e):ei(e)?function(r){return function(s){var c=n.scale.getLabel(s),f=r.replace("{value}",c!=null?c:"");return f}}(e):ja(e)?function(r){return function(s,c){return t!=null&&(c=s.value-t),r(sM(n,s),c,s.level!=null?{level:s.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function sM(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function F9(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,s,c=t.getExtent();t instanceof YP?s=t.count():(r=t.getTicks(),s=r.length);var f=n.getLabelModel(),T=oM(n),R,I=1;s>40&&(I=Math.ceil(s/40));for(var B=0;B<s;B+=I){var Y=r?r[B]:{value:c[0]+B},q=T(Y,B),ie=f.getTextRect(q),ge=XL(ie,f.get("rotate")||0);R?R.union(ge):R=ge}return R}}function XL(n,e){var t=e*Math.PI/180,r=n.width,s=n.height,c=r*Math.abs(Math.cos(t))+Math.abs(s*Math.sin(t)),f=r*Math.abs(Math.sin(t))+Math.abs(s*Math.cos(t)),T=new ra(n.x,n.y,c,f);return T}function $S(n){var e=n.get("interval");return e==null?"auto":e}function JL(n){return n.type==="category"&&$S(n.getLabelModel())===0}function eR(n,e){var t={};return At(n.mapDimensionsAll(e),function(r){t[rL(n,r)]=!0}),Ua(t)}function j9(n,e,t){e&&At(eR(e,t),function(r){var s=e.getApproximateExtent(r);s[0]<n[0]&&(n[0]=s[0]),s[1]>n[1]&&(n[1]=s[1])})}var B9=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return ar(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Yn(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}(),tR=B9,nR=["x","y"];function QL(n){return n.type==="interval"||n.type==="time"}var OD=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=nR,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!QL(t)||!QL(r))){var s=t.getExtent(),c=r.getExtent(),f=this.dataToPoint([s[0],c[0]]),T=this.dataToPoint([s[1],c[1]]),R=s[1]-s[0],I=c[1]-c[0];if(!(!R||!I)){var B=(T[0]-f[0])/R,Y=(T[1]-f[1])/I,q=f[0]-s[0]*B,ie=f[1]-c[0]*Y,ge=this._transform=[B,0,0,Y,q,ie];this._invTransform=Gd([],ge)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),s=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&s.contain(s.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var s=this.dataToPoint(t),c=this.dataToPoint(r),f=this.getArea(),T=new ra(s[0],s[1],c[0]-s[0],c[1]-s[1]);return f.intersect(T)},e.prototype.dataToPoint=function(t,r,s){s=s||[];var c=t[0],f=t[1];if(this._transform&&c!=null&&isFinite(c)&&f!=null&&isFinite(f))return Cu(s,t,this._transform);var T=this.getAxis("x"),R=this.getAxis("y");return s[0]=T.toGlobalCoord(T.dataToCoord(c,r)),s[1]=R.toGlobalCoord(R.dataToCoord(f,r)),s},e.prototype.clampData=function(t,r){var s=this.getAxis("x").scale,c=this.getAxis("y").scale,f=s.getExtent(),T=c.getExtent(),R=s.parse(t[0]),I=c.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(f[0],f[1]),R),Math.max(f[0],f[1])),r[1]=Math.min(Math.max(Math.min(T[0],T[1]),I),Math.max(T[0],T[1])),r},e.prototype.pointToData=function(t,r){var s=[];if(this._invTransform)return Cu(s,t,this._invTransform);var c=this.getAxis("x"),f=this.getAxis("y");return s[0]=c.coordToData(c.toLocalCoord(t[0]),r),s[1]=f.coordToData(f.toLocalCoord(t[1]),r),s},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),s=Math.min(t[0],t[1]),c=Math.min(r[0],r[1]),f=Math.max(t[0],t[1])-s,T=Math.max(r[0],r[1])-c;return new ra(s,c,f,T)},e}(tR),qL=OD,lM=Bi();function U9(n){return n.type==="category"?V9(n):W9(n)}function Z9(n,e){return n.type==="category"?z9(n,e):{ticks:ar(n.scale.getTicks(),function(t){return t.value})}}function V9(n){var e=n.getLabelModel(),t=e6(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function e6(n,e){var t=t6(n,"labels"),r=$S(e),s=n6(t,r);if(s)return s;var c,f;return ja(r)?c=o6(n,r):(f=r==="auto"?H9(n):r,c=ID(n,f)),r6(t,r,{labels:c,labelCategoryInterval:f})}function z9(n,e){var t=t6(n,"ticks"),r=$S(e),s=n6(t,r);if(s)return s;var c,f;if((!e.get("show")||n.scale.isBlank())&&(c=[]),ja(r))c=o6(n,r,!0);else if(r==="auto"){var T=e6(n,n.getLabelModel());f=T.labelCategoryInterval,c=ar(T.labels,function(R){return R.tickValue})}else f=r,c=ID(n,f,!0);return r6(t,r,{ticks:c,tickCategoryInterval:f})}function W9(n){var e=n.scale.getTicks(),t=oM(n);return{labels:ar(e,function(r,s){return{level:r.level,formattedLabel:t(r,s),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function t6(n,e){return lM(n)[e]||(lM(n)[e]=[])}function n6(n,e){for(var t=0;t<n.length;t++)if(n[t].key===e)return n[t].value}function r6(n,e,t){return n.push({key:e,value:t}),t}function H9(n){var e=lM(n).autoInterval;return e!=null?e:lM(n).autoInterval=n.calculateCategoryInterval()}function a6(n){var e=i6(n),t=oM(n),r=(e.axisRotate-e.labelRotate)/180*Math.PI,s=n.scale,c=s.getExtent(),f=s.count();if(c[1]-c[0]<1)return 0;var T=1;f>40&&(T=Math.max(1,Math.floor(f/40)));for(var R=c[0],I=n.dataToCoord(R+1)-n.dataToCoord(R),B=Math.abs(I*Math.cos(r)),Y=Math.abs(I*Math.sin(r)),q=0,ie=0;R<=c[1];R+=T){var ge=0,Oe=0,Ne=Mm(t({value:R}),e.font,"center","top");ge=Ne.width*1.3,Oe=Ne.height*1.3,q=Math.max(q,ge,7),ie=Math.max(ie,Oe,7)}var He=q/B,st=ie/Y;isNaN(He)&&(He=Infinity),isNaN(st)&&(st=Infinity);var pt=Math.max(0,Math.floor(Math.min(He,st))),Ut=lM(n.model),pn=n.getExtent(),yn=Ut.lastAutoInterval,jn=Ut.lastTickCount;return yn!=null&&jn!=null&&Math.abs(yn-pt)<=1&&Math.abs(jn-f)<=1&&yn>pt&&Ut.axisExtent0===pn[0]&&Ut.axisExtent1===pn[1]?pt=yn:(Ut.lastTickCount=f,Ut.lastAutoInterval=pt,Ut.axisExtent0=pn[0],Ut.axisExtent1=pn[1]),pt}function i6(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function ID(n,e,t){var r=oM(n),s=n.scale,c=s.getExtent(),f=n.getLabelModel(),T=[],R=Math.max((e||0)+1,1),I=c[0],B=s.count();I!==0&&R>1&&B/R>2&&(I=Math.round(Math.ceil(I/R)*R));var Y=JL(n),q=f.get("showMinLabel")||Y,ie=f.get("showMaxLabel")||Y;q&&I!==c[0]&&Oe(c[0]);for(var ge=I;ge<=c[1];ge+=R)Oe(ge);ie&&ge-R!==c[1]&&Oe(c[1]);function Oe(Ne){var He={value:Ne};T.push(t?Ne:{formattedLabel:r(He),rawLabel:s.getLabel(He),tickValue:Ne})}return T}function o6(n,e,t){var r=n.scale,s=oM(n),c=[];return At(r.getTicks(),function(f){var T=r.getLabel(f),R=f.value;e(f.value,T)&&c.push(t?R:{formattedLabel:s(f),rawLabel:T,tickValue:R})}),c}var v1=[0,1],zW=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),s=Math.max(t[0],t[1]);return e>=r&&e<=s},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return Ir(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,s=this.scale;return e=s.normalize(e),this.onBand&&s.type==="ordinal"&&(r=r.slice(),rR(r,s.count())),yt(e,v1,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,s=this.scale;this.onBand&&s.type==="ordinal"&&(r=r.slice(),rR(r,s.count()));var c=yt(e,r,v1,t);return this.scale.scale(c)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=Z9(this,t),s=r.ticks,c=ar(s,function(T){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(T):T),tickValue:T}},this),f=t.get("alignWithLabel");return k_(this,c,f,e.clamp),c},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),s=ar(r,function(c){return ar(c,function(f){return{coord:this.dataToCoord(f),tickValue:f}},this)},this);return s},n.prototype.getViewLabels=function(){return U9(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var s=Math.abs(e[1]-e[0]);return Math.abs(s)/r},n.prototype.calculateCategoryInterval=function(){return a6(this)},n}();function rR(n,e){var t=n[1]-n[0],r=e,s=t/r/2;n[0]+=s,n[1]-=s}function k_(n,e,t,r){var s=e.length;if(!n.onBand||t||!s)return;var c=n.getExtent(),f,T;if(s===1)e[0].coord=c[0],f=e[1]={coord:c[1]};else{var R=e[s-1].tickValue-e[0].tickValue,I=(e[s-1].coord-e[0].coord)/R;At(e,function(ie){ie.coord-=I/2});var B=n.scale.getExtent();T=1+B[1]-e[s-1].tickValue,f={coord:e[s-1].coord+I*T},e.push(f)}var Y=c[0]>c[1];q(e[0].coord,c[0])&&(r?e[0].coord=c[0]:e.shift()),r&&q(c[0],e[0].coord)&&e.unshift({coord:c[0]}),q(c[1],f.coord)&&(r?f.coord=c[1]:e.pop()),r&&q(f.coord,c[1])&&e.push({coord:c[1]});function q(ie,ge){return ie=Sn(ie),ge=Sn(ge),Y?ie>ge:ie<ge}}var Dv=zW,G9=function(n){ze(e,n);function e(t,r,s,c,f){var T=n.call(this,t,r,s)||this;return T.index=0,T.type=c||"value",T.position=f||"bottom",T}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Dv),$9=G9;function DD(n,e,t){t=t||{};var r=n.coordinateSystem,s=e.axis,c={},f=s.getAxesOnZeroOf()[0],T=s.position,R=f?"onZero":T,I=s.dim,B=r.getRect(),Y=[B.x,B.x+B.width,B.y,B.y+B.height],q={left:0,right:1,top:0,bottom:1,onZero:2},ie=e.get("offset")||0,ge=I==="x"?[Y[2]-ie,Y[3]+ie]:[Y[0]-ie,Y[1]+ie];if(f){var Oe=f.toGlobalCoord(f.dataToCoord(0));ge[q.onZero]=Math.max(Math.min(Oe,ge[1]),ge[0])}c.position=[I==="y"?ge[q[R]]:Y[0],I==="x"?ge[q[R]]:Y[3]],c.rotation=Math.PI/2*(I==="x"?0:1);var Ne={top:-1,bottom:1,left:-1,right:1};c.labelDirection=c.tickDirection=c.nameDirection=Ne[T],c.labelOffset=f?ge[q[T]]-ge[q.onZero]:0,e.get(["axisTick","inside"])&&(c.tickDirection=-c.tickDirection),nn(t.labelInside,e.get(["axisLabel","inside"]))&&(c.labelDirection=-c.labelDirection);var He=e.get(["axisLabel","rotate"]);return c.labelRotate=R==="top"?-He:He,c.z2=1,c}function K9(n){return n.get("coordinateSystem")==="cartesian2d"}function Y9(n){var e={xAxisModel:null,yAxisModel:null};return At(e,function(t,r){var s=r.replace(/Model$/,""),c=n.getReferringComponents(s,vs).models[0];e[r]=c}),e}var s6=Math.log;function X9(n,e,t){var r=p1.prototype,s=r.getTicks.call(t),c=r.getTicks.call(t,!0),f=s.length-1,T=r.getInterval.call(t),R=KL(n,e),I=R.extent,B=R.fixMin,Y=R.fixMax;if(n.type==="log"){var q=s6(n.base);I=[s6(I[0])/q,s6(I[1])/q]}n.setExtent(I[0],I[1]),n.calcNiceExtent({splitNumber:f,fixMin:B,fixMax:Y});var ie=r.getExtent.call(n);B&&(I[0]=ie[0]),Y&&(I[1]=ie[1]);var ge=r.getInterval.call(n),Oe=I[0],Ne=I[1];if(B&&Y)ge=(Ne-Oe)/f;else if(B)for(Ne=I[0]+ge*f;Ne<I[1]&&isFinite(Ne)&&isFinite(I[1]);)ge=dw(ge),Ne=I[0]+ge*f;else if(Y)for(Oe=I[1]-ge*f;Oe>I[0]&&isFinite(Oe)&&isFinite(I[0]);)ge=dw(ge),Oe=I[1]-ge*f;else{var He=n.getTicks().length-1;He>f&&(ge=dw(ge));var st=ge*f;Ne=Math.ceil(I[1]/ge)*ge,Oe=Sn(Ne-st),Oe<0&&I[0]>=0?(Oe=0,Ne=Sn(st)):Ne>0&&I[1]<=0&&(Ne=0,Oe=-Sn(st))}var pt=(s[0].value-c[0].value)/T,Ut=(s[f].value-c[f].value)/T;if(r.setExtent.call(n,Oe+ge*pt,Ne+ge*Ut),r.setInterval.call(n,ge),(pt||Ut)&&r.setNiceExtent.call(n,Oe+ge,Ne-ge),!1)var pn}var J9=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=nR,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function s(f){var T,R=Ua(f),I=R.length;if(!!I){for(var B=[],Y=I-1;Y>=0;Y--){var q=+R[Y],ie=f[q],ge=ie.model,Oe=ie.scale;wD(Oe)&&ge.get("alignTicks")&&ge.get("interval")==null?B.push(ie):(vw(Oe,ge),wD(Oe)&&(T=ie))}B.length&&(T||(T=B.pop(),vw(T.scale,T.model)),At(B,function(Ne){X9(Ne.scale,Ne.model,T.scale)}))}}s(r.x),s(r.y);var c={};At(r.x,function(f){l6(r,"y",f,c)}),At(r.y,function(f){l6(r,"x",f,c)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var s=e.getBoxLayoutParams(),c=!r&&e.get("containLabel"),f=mm(s,{width:t.getWidth(),height:t.getHeight()});this._rect=f;var T=this._axesList;R(),c&&(At(T,function(I){if(!I.model.get(["axisLabel","inside"])){var B=F9(I);if(B){var Y=I.isHorizontal()?"height":"width",q=I.model.get(["axisLabel","margin"]);f[Y]-=B[Y]+q,I.position==="top"?f.y+=B.height+q:I.position==="left"&&(f.x+=B.width+q)}}}),R()),At(this._coordsList,function(I){I.calcAffineTransform()});function R(){At(T,function(I){var B=I.isHorizontal(),Y=B?[0,f.width]:[0,f.height],q=I.inverse?1:0;I.setExtent(Y[q],Y[1-q]),Q9(I,B?f.x:f.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}to(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var s=0,c=this._coordsList;s<c.length;s++)if(c[s].getAxis("x").index===e||c[s].getAxis("y").index===t)return c[s]},n.prototype.getCartesians=function(){return this._coordsList.slice()},n.prototype.convertToPixel=function(e,t,r){var s=this._findConvertTarget(t);return s.cartesian?s.cartesian.dataToPoint(r):s.axis?s.axis.toGlobalCoord(s.axis.dataToCoord(r)):null},n.prototype.convertFromPixel=function(e,t,r){var s=this._findConvertTarget(t);return s.cartesian?s.cartesian.pointToData(r):s.axis?s.axis.coordToData(s.axis.toLocalCoord(r)):null},n.prototype._findConvertTarget=function(e){var t=e.seriesModel,r=e.xAxisModel||t&&t.getReferringComponents("xAxis",vs).models[0],s=e.yAxisModel||t&&t.getReferringComponents("yAxis",vs).models[0],c=e.gridModel,f=this._coordsList,T,R;if(t)T=t.coordinateSystem,Ui(f,T)<0&&(T=null);else if(r&&s)T=this.getCartesian(r.componentIndex,s.componentIndex);else if(r)R=this.getAxis("x",r.componentIndex);else if(s)R=this.getAxis("y",s.componentIndex);else if(c){var I=c.coordinateSystem;I===this&&(T=this._coordsList[0])}return{cartesian:T,axis:R}},n.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},n.prototype._initCartesian=function(e,t,r){var s=this,c=this,f={left:!1,right:!1,top:!1,bottom:!1},T={x:{},y:{}},R={x:0,y:0};if(t.eachComponent("xAxis",I("x"),this),t.eachComponent("yAxis",I("y"),this),!R.x||!R.y){this._axesMap={},this._axesList=[];return}this._axesMap=T,At(T.x,function(B,Y){At(T.y,function(q,ie){var ge="x"+Y+"y"+ie,Oe=new qL(ge);Oe.master=s,Oe.model=e,s._coordsMap[ge]=Oe,s._coordsList.push(Oe),Oe.addAxis(B),Oe.addAxis(q)})});function I(B){return function(Y,q){if(!!ND(Y,e)){var ie=Y.get("position");B==="x"?ie!=="top"&&ie!=="bottom"&&(ie=f.bottom?"top":"bottom"):ie!=="left"&&ie!=="right"&&(ie=f.left?"right":"left"),f[ie]=!0;var ge=new $9(B,qP(Y),[0,0],Y.get("type"),ie),Oe=ge.type==="category";ge.onBand=Oe&&Y.get("boundaryGap"),ge.inverse=Y.get("inverse"),Y.axis=ge,ge.model=Y,ge.grid=c,ge.index=q,c._axesList.push(ge),T[B][q]=ge,R[B]++}}}},n.prototype._updateScale=function(e,t){At(this._axesList,function(s){if(s.scale.setExtent(Infinity,-Infinity),s.type==="category"){var c=s.model.get("categorySortInfo");s.scale.setSortInfo(c)}}),e.eachSeries(function(s){if(K9(s)){var c=Y9(s),f=c.xAxisModel,T=c.yAxisModel;if(!ND(f,t)||!ND(T,t))return;var R=this.getCartesian(f.componentIndex,T.componentIndex),I=s.getData(),B=R.getAxis("x"),Y=R.getAxis("y");r(I,B),r(I,Y)}},this);function r(s,c){At(eR(s,c.dim),function(f){c.scale.unionExtentFromData(s,f)})}},n.prototype.getTooltipAxes=function(e){var t=[],r=[];return At(this.getCartesians(),function(s){var c=e!=null&&e!=="auto"?s.getAxis(e):s.getBaseAxis(),f=s.getOtherAxis(c);Ui(t,c)<0&&t.push(c),Ui(r,f)<0&&r.push(f)}),{baseAxes:t,otherAxes:r}},n.create=function(e,t){var r=[];return e.eachComponent("grid",function(s,c){var f=new n(s,e,t);f.name="grid_"+c,f.resize(s,t,!0),s.coordinateSystem=f,r.push(f)}),e.eachSeries(function(s){if(!!K9(s)){var c=Y9(s),f=c.xAxisModel,T=c.yAxisModel,R=f.getCoordSysModel(),I=R.coordinateSystem;s.coordinateSystem=I.getCartesian(f.componentIndex,T.componentIndex)}}),r},n.dimensions=nR,n}();function ND(n,e){return n.getCoordSysModel()===e}function l6(n,e,t,r){t.getAxesOnZeroOf=function(){return c?[c]:[]};var s=n[e],c,f=t.model,T=f.get(["axisLine","onZero"]),R=f.get(["axisLine","onZeroAxisIndex"]);if(!T)return;if(R!=null)aR(s[R])&&(c=s[R]);else for(var I in s)if(s.hasOwnProperty(I)&&aR(s[I])&&!r[B(s[I])]){c=s[I];break}c&&(r[B(c)]=!0);function B(Y){return Y.dim+"_"+Y.index}}function aR(n){return n&&n.type!=="category"&&n.type!=="time"&&YL(n)}function Q9(n,e){var t=n.getExtent(),r=t[0]+t[1];n.toGlobalCoord=n.dim==="x"?function(s){return s+e}:function(s){return r-s+e},n.toLocalCoord=n.dim==="x"?function(s){return s-e}:function(s){return r-s+e}}var LD=J9,Ib=Math.PI,KS=function(){function n(e,t){this.group=new Qi,this.opt=t,this.axisModel=e,Pi(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new Qi({x:t.position[0],y:t.position[1],rotation:t.rotation});r.updateTransform(),this._transformGroup=r}return n.prototype.hasBuilder=function(e){return!!c6[e]},n.prototype.add=function(e){c6[e](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(e,t,r){var s=Yi(t-e),c,f;return Wo(s)?(f=r>0?"top":"bottom",c="center"):Wo(s-Ib)?(f=r>0?"bottom":"top",c="center"):(f="middle",s>0&&s<Ib?c=r>0?"right":"left":c=r>0?"left":"right"),{rotation:s,textAlign:c,textVerticalAlign:f}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),c6={axisLine:function(n,e,t,r){var s=e.get(["axisLine","show"]);if(s==="auto"&&n.handleAutoShown&&(s=n.handleAutoShown("axisLine")),!!s){var c=e.axis.getExtent(),f=r.transform,T=[c[0],0],R=[c[1],0],I=T[0]>R[0];f&&(Cu(T,T,f),Cu(R,R,f));var B=Ea({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),Y=new jh({shape:{x1:T[0],y1:T[1],x2:R[0],y2:R[1]},style:B,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});Nx(Y.shape,Y.style.lineWidth),Y.anid="line",t.add(Y);var q=e.get(["axisLine","symbol"]);if(q!=null){var ie=e.get(["axisLine","symbolSize"]);ei(q)&&(q=[q,q]),(ei(ie)||yo(ie))&&(ie=[ie,ie]);var ge=Tv(e.get(["axisLine","symbolOffset"])||0,ie),Oe=ie[0],Ne=ie[1];At([{rotate:n.rotation+Math.PI/2,offset:ge[0],r:0},{rotate:n.rotation-Math.PI/2,offset:ge[1],r:Math.sqrt((T[0]-R[0])*(T[0]-R[0])+(T[1]-R[1])*(T[1]-R[1]))}],function(He,st){if(q[st]!=="none"&&q[st]!=null){var pt=ad(q[st],-Oe/2,-Ne/2,Oe,Ne,B.stroke,!0),Ut=He.r+He.offset,pn=I?R:T;pt.attr({rotation:He.rotate,x:pn[0]+Ut*Math.cos(n.rotation),y:pn[1]-Ut*Math.sin(n.rotation),silent:!0,z2:11}),t.add(pt)}})}}},axisTickLabel:function(n,e,t,r){var s=ej(t,r,e,n),c=nj(t,r,e,n);if(cM(e,c,s),tj(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var f=kA(ar(c,function(T){return{label:T,priority:T.z2,defaultAttr:{ignore:T.ignore}}}));PP(f)}},axisName:function(n,e,t,r){var s=nn(n.axisName,e.get("name"));if(!!s){var c=e.get("nameLocation"),f=n.nameDirection,T=e.getModel("nameTextStyle"),R=e.get("nameGap")||0,I=e.axis.getExtent(),B=I[0]>I[1]?-1:1,Y=[c==="start"?I[0]-B*R:c==="end"?I[1]+B*R:(I[0]+I[1])/2,f6(c)?n.labelOffset+f*R:0],q,ie=e.get("nameRotate");ie!=null&&(ie=ie*Ib/180);var ge;f6(c)?q=KS.innerTextLayout(n.rotation,ie!=null?ie:n.rotation,f):(q=q9(n.rotation,c,ie||0,I),ge=n.axisNameAvailableWidth,ge!=null&&(ge=Math.abs(ge/Math.sin(q.rotation)),!isFinite(ge)&&(ge=null)));var Oe=T.getFont(),Ne=e.get("nameTruncate",!0)||{},He=Ne.ellipsis,st=nn(n.nameTruncateMaxWidth,Ne.maxWidth,ge),pt=new Tp({x:Y[0],y:Y[1],rotation:q.rotation,silent:KS.isLabelSilent(e),style:Cv(T,{text:s,font:Oe,overflow:"truncate",width:st,ellipsis:He,fill:T.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:T.get("align")||q.textAlign,verticalAlign:T.get("verticalAlign")||q.textVerticalAlign}),z2:1});if(Lx({el:pt,componentModel:e,itemName:s}),pt.__fullText=s,pt.anid="name",e.get("triggerEvent")){var Ut=KS.makeAxisEventDataBase(e);Ut.targetType="axisName",Ut.name=s,nu(pt).eventData=Ut}r.add(pt),pt.updateTransform(),t.add(pt),pt.decomposeTransform()}}};function q9(n,e,t,r){var s=Yi(t-n),c,f,T=r[0]>r[1],R=e==="start"&&!T||e!=="start"&&T;return Wo(s-Ib/2)?(f=R?"bottom":"top",c="center"):Wo(s-Ib*1.5)?(f=R?"top":"bottom",c="center"):(f="middle",s<Ib*1.5&&s>Ib/2?c=R?"left":"right":c=R?"right":"left"),{rotation:s,textAlign:c,textVerticalAlign:f}}function cM(n,e,t){if(!JL(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),s=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var c=e[0],f=e[1],T=e[e.length-1],R=e[e.length-2],I=t[0],B=t[1],Y=t[t.length-1],q=t[t.length-2];r===!1?(X0(c),X0(I)):u6(c,f)&&(r?(X0(f),X0(B)):(X0(c),X0(I))),s===!1?(X0(T),X0(Y)):u6(R,T)&&(s?(X0(R),X0(q)):(X0(T),X0(Y)))}}function X0(n){n&&(n.ignore=!0)}function u6(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var s=Ff([]);return Wu(s,s,-n.rotation),t.applyTransform(xf([],s,n.getLocalTransform())),r.applyTransform(xf([],s,e.getLocalTransform())),t.intersect(r)}}function f6(n){return n==="middle"||n==="center"}function d6(n,e,t,r,s){for(var c=[],f=[],T=[],R=0;R<n.length;R++){var I=n[R].coord;f[0]=I,f[1]=0,T[0]=I,T[1]=t,e&&(Cu(f,f,e),Cu(T,T,e));var B=new jh({shape:{x1:f[0],y1:f[1],x2:T[0],y2:T[1]},style:r,z2:2,autoBatch:!0,silent:!0});Nx(B.shape,B.style.lineWidth),B.anid=s+"_"+n[R].tickValue,c.push(B)}return c}function ej(n,e,t,r){var s=t.axis,c=t.getModel("axisTick"),f=c.get("show");if(f==="auto"&&r.handleAutoShown&&(f=r.handleAutoShown("axisTick")),!(!f||s.scale.isBlank())){for(var T=c.getModel("lineStyle"),R=r.tickDirection*c.get("length"),I=s.getTicksCoords(),B=d6(I,e.transform,R,Pi(T.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),Y=0;Y<B.length;Y++)n.add(B[Y]);return B}}function tj(n,e,t,r){var s=t.axis,c=t.getModel("minorTick");if(!(!c.get("show")||s.scale.isBlank())){var f=s.getMinorTicksCoords();if(!!f.length)for(var T=c.getModel("lineStyle"),R=r*c.get("length"),I=Pi(T.getLineStyle(),Pi(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),B=0;B<f.length;B++)for(var Y=d6(f[B],e.transform,R,I,"minorticks_"+B),q=0;q<Y.length;q++)n.add(Y[q])}}function nj(n,e,t,r){var s=t.axis,c=nn(r.axisLabelShow,t.get(["axisLabel","show"]));if(!(!c||s.scale.isBlank())){var f=t.getModel("axisLabel"),T=f.get("margin"),R=s.getViewLabels(),I=(nn(r.labelRotate,f.get("rotate"))||0)*Ib/180,B=KS.innerTextLayout(r.rotation,I,r.labelDirection),Y=t.getCategories&&t.getCategories(!0),q=[],ie=KS.isLabelSilent(t),ge=t.get("triggerEvent");return At(R,function(Oe,Ne){var He=s.scale.type==="ordinal"?s.scale.getRawOrdinalNumber(Oe.tickValue):Oe.tickValue,st=Oe.formattedLabel,pt=Oe.rawLabel,Ut=f;if(Y&&Y[He]){var pn=Y[He];to(pn)&&pn.textStyle&&(Ut=new Lv(pn.textStyle,f,t.ecModel))}var yn=Ut.getTextColor()||t.get(["axisLine","lineStyle","color"]),jn=s.dataToCoord(He),Cr=new Tp({x:jn,y:r.labelOffset+r.labelDirection*T,rotation:B.rotation,silent:ie,z2:10+(Oe.level||0),style:Cv(Ut,{text:st,align:Ut.getShallow("align",!0)||B.textAlign,verticalAlign:Ut.getShallow("verticalAlign",!0)||Ut.getShallow("baseline",!0)||B.textVerticalAlign,fill:ja(yn)?yn(s.type==="category"?pt:s.type==="value"?He+"":He,Ne):yn})});if(Cr.anid="label_"+He,ge){var Nr=KS.makeAxisEventDataBase(t);Nr.targetType="axisLabel",Nr.value=pt,Nr.tickIndex=Ne,s.type==="category"&&(Nr.dataIndex=He),nu(Cr).eventData=Nr}e.add(Cr),Cr.updateTransform(),q.push(Cr),n.add(Cr),Cr.decomposeTransform()}),q}}var Db=KS;function rj(n,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return aj(t,n,e),t.seriesInvolved&&oj(t,n),t}function aj(n,e,t){var r=e.getComponent("tooltip"),s=e.getComponent("axisPointer"),c=s.get("link",!0)||[],f=[];At(t.getCoordinateSystems(),function(T){if(!T.axisPointerEnabled)return;var R=hw(T.model),I=n.coordSysAxesInfo[R]={};n.coordSysMap[R]=T;var B=T.model,Y=B.getModel("tooltip",r);if(At(T.getAxes(),$i(Oe,!1,null)),T.getTooltipAxes&&r&&Y.get("show")){var q=Y.get("trigger")==="axis",ie=Y.get(["axisPointer","type"])==="cross",ge=T.getTooltipAxes(Y.get(["axisPointer","axis"]));(q||ie)&&At(ge.baseAxes,$i(Oe,ie?"cross":!0,q)),ie&&At(ge.otherAxes,$i(Oe,"cross",!1))}function Oe(Ne,He,st){var pt=st.model.getModel("axisPointer",s),Ut=pt.get("show");if(!(!Ut||Ut==="auto"&&!Ne&&!$_(pt))){He==null&&(He=pt.get("triggerTooltip")),pt=Ne?ij(st,Y,s,e,Ne,He):pt;var pn=pt.get("snap"),yn=pt.get("triggerEmphasis"),jn=hw(st.model),Cr=He||pn||st.type==="category",Nr=n.axesInfo[jn]={key:jn,axis:st,coordSys:T,axisPointerModel:pt,triggerTooltip:He,triggerEmphasis:yn,involveSeries:Cr,snap:pn,useHandle:$_(pt),seriesModels:[],linkGroup:null};I[jn]=Nr,n.seriesInvolved=n.seriesInvolved||Cr;var Rr=sj(c,st);if(Rr!=null){var Er=f[Rr]||(f[Rr]={axesInfo:{}});Er.axesInfo[jn]=Nr,Er.mapper=c[Rr].mapper,Nr.linkGroup=Er}}}})}function ij(n,e,t,r,s,c){var f=e.getModel("axisPointer"),T=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],R={};At(T,function(q){R[q]=Kr(f.get(q))}),R.snap=n.type!=="category"&&!!c,f.get("type")==="cross"&&(R.type="line");var I=R.label||(R.label={});if(I.show==null&&(I.show=!1),s==="cross"){var B=f.get(["label","show"]);if(I.show=B!=null?B:!0,!c){var Y=R.lineStyle=f.get("crossStyle");Y&&Pi(I,Y.textStyle)}}return n.model.getModel("axisPointer",new Lv(R,t,r))}function oj(n,e){e.eachSeries(function(t){var r=t.coordinateSystem,s=t.get(["tooltip","trigger"],!0),c=t.get(["tooltip","show"],!0);!r||s==="none"||s===!1||s==="item"||c===!1||t.get(["axisPointer","show"],!0)===!1||At(n.coordSysAxesInfo[hw(r.model)],function(f){var T=f.axis;r.getAxis(T.dim)===T&&(f.seriesModels.push(t),f.seriesDataCount==null&&(f.seriesDataCount=0),f.seriesDataCount+=t.getData().count())})})}function sj(n,e){for(var t=e.model,r=e.dim,s=0;s<n.length;s++){var c=n[s]||{};if(p6(c[r+"AxisId"],t.id)||p6(c[r+"AxisIndex"],t.componentIndex)||p6(c[r+"AxisName"],t.name))return s}}function p6(n,e){return n==="all"||La(n)&&Ui(n,e)>=0||n===e}function FD(n){var e=Yp(n);if(!!e){var t=e.axisPointerModel,r=e.axis.scale,s=t.option,c=t.get("status"),f=t.get("value");f!=null&&(f=r.parse(f));var T=$_(t);c==null&&(s.status=T?"show":"hide");var R=r.getExtent().slice();R[0]>R[1]&&R.reverse(),(f==null||f>R[1])&&(f=R[1]),f<R[0]&&(f=R[0]),s.value=f,T&&(s.status=e.axis.scale.isBlank()?"hide":"show")}}function Yp(n){var e=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[hw(n)]}function WW(n){var e=Yp(n);return e&&e.axisPointerModel}function $_(n){return!!n.get(["handle","show"])}function hw(n){return n.type+"||"+n.id}var jD={},lj=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s,c){this.axisPointerClass&&FD(t),n.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,s,!0)},e.prototype.updateAxisPointer=function(t,r,s,c){this._doUpdateAxisPointerClass(t,s,!1)},e.prototype.remove=function(t,r){var s=this._axisPointer;s&&s.remove(r)},e.prototype.dispose=function(t,r){this._disposeAxisPointer(r),n.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,r,s){var c=e.getAxisPointerClass(this.axisPointerClass);if(!!c){var f=WW(t);f?(this._axisPointer||(this._axisPointer=new c)).render(t,f,r,s):this._disposeAxisPointer(r)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,r){jD[t]=r},e.getAxisPointerClass=function(t){return t&&jD[t]},e.type="axis",e}(Eh),YS=lj,XS=Bi();function mw(n,e,t,r){var s=t.axis;if(!s.scale.isBlank()){var c=t.getModel("splitArea"),f=c.getModel("areaStyle"),T=f.get("color"),R=r.coordinateSystem.getRect(),I=s.getTicksCoords({tickModel:c,clamp:!0});if(!!I.length){var B=T.length,Y=XS(n).splitAreaColors,q=Za(),ie=0;if(Y)for(var ge=0;ge<I.length;ge++){var Oe=Y.get(I[ge].tickValue);if(Oe!=null){ie=(Oe+(B-1)*ge)%B;break}}var Ne=s.toGlobalCoord(I[0].coord),He=f.getAreaStyle();T=La(T)?T:[T];for(var ge=1;ge<I.length;ge++){var st=s.toGlobalCoord(I[ge].coord),pt=void 0,Ut=void 0,pn=void 0,yn=void 0;s.isHorizontal()?(pt=Ne,Ut=R.y,pn=st-pt,yn=R.height,Ne=pt+pn):(pt=R.x,Ut=Ne,pn=R.width,yn=st-Ut,Ne=Ut+yn);var jn=I[ge-1].tickValue;jn!=null&&q.set(jn,ie),e.add(new jd({anid:jn!=null?"area_"+jn:null,shape:{x:pt,y:Ut,width:pn,height:yn},style:Pi({fill:T[ie]},He),autoBatch:!0,silent:!0})),ie=(ie+1)%B}XS(n).splitAreaColors=q}}}function BD(n){XS(n).splitAreaColors=null}var v6=["axisLine","axisTickLabel","axisName"],cj=["splitArea","splitLine","minorSplitLine"],UD=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,r,s,c){this.group.removeAll();var f=this._axisGroup;if(this._axisGroup=new Qi,this.group.add(this._axisGroup),!!t.get("show")){var T=t.getCoordSysModel(),R=DD(T,t),I=new Db(t,Ea({handleAutoShown:function(Y){for(var q=T.coordinateSystem.getCartesians(),ie=0;ie<q.length;ie++)if(wD(q[ie].getOtherAxis(t.axis).scale))return!0;return!1}},R));At(v6,I.add,I),this._axisGroup.add(I.getGroup()),At(cj,function(Y){t.get([Y,"show"])&&uj[Y](this,this._axisGroup,t,T)},this);var B=c&&c.type==="changeAxisOrder"&&c.isInitSort;B||hb(f,this._axisGroup,t),n.prototype.render.call(this,t,r,s,c)}},e.prototype.remove=function(){BD(this)},e.type="cartesianAxis",e}(YS),uj={splitLine:function(n,e,t,r){var s=t.axis;if(!s.scale.isBlank()){var c=t.getModel("splitLine"),f=c.getModel("lineStyle"),T=f.get("color");T=La(T)?T:[T];for(var R=r.coordinateSystem.getRect(),I=s.isHorizontal(),B=0,Y=s.getTicksCoords({tickModel:c}),q=[],ie=[],ge=f.getLineStyle(),Oe=0;Oe<Y.length;Oe++){var Ne=s.toGlobalCoord(Y[Oe].coord);I?(q[0]=Ne,q[1]=R.y,ie[0]=Ne,ie[1]=R.y+R.height):(q[0]=R.x,q[1]=Ne,ie[0]=R.x+R.width,ie[1]=Ne);var He=B++%T.length,st=Y[Oe].tickValue,pt=new jh({anid:st!=null?"line_"+Y[Oe].tickValue:null,autoBatch:!0,shape:{x1:q[0],y1:q[1],x2:ie[0],y2:ie[1]},style:Pi({stroke:T[He]},ge),silent:!0});Nx(pt.shape,ge.lineWidth),e.add(pt)}}},minorSplitLine:function(n,e,t,r){var s=t.axis,c=t.getModel("minorSplitLine"),f=c.getModel("lineStyle"),T=r.coordinateSystem.getRect(),R=s.isHorizontal(),I=s.getMinorTicksCoords();if(!!I.length)for(var B=[],Y=[],q=f.getLineStyle(),ie=0;ie<I.length;ie++)for(var ge=0;ge<I[ie].length;ge++){var Oe=s.toGlobalCoord(I[ie][ge].coord);R?(B[0]=Oe,B[1]=T.y,Y[0]=Oe,Y[1]=T.y+T.height):(B[0]=T.x,B[1]=Oe,Y[0]=T.x+T.width,Y[1]=Oe);var Ne=new jh({anid:"minor_line_"+I[ie][ge].tickValue,autoBatch:!0,shape:{x1:B[0],y1:B[1],x2:Y[0],y2:Y[1]},style:q,silent:!0});Nx(Ne.shape,q.lineWidth),e.add(Ne)}},splitArea:function(n,e,t,r){mw(n,e,t,r)}},C0=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(UD),fj=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=C0.type,t}return e.type="yAxis",e}(UD),HW=null,dj=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,r){this.group.removeAll(),t.get("show")&&this.group.add(new jd({shape:t.coordinateSystem.getRect(),style:Pi({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Eh),h6={offset:0};function m6(n){n.registerComponentView(dj),n.registerComponentModel(C9),n.registerCoordinateSystem("cartesian2d",LD),WS(n,"x",xD,h6),WS(n,"y",xD,h6),n.registerComponentView(C0),n.registerComponentView(fj),n.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function pj(n){Ud(m6),n.registerSeriesModel(tM),n.registerChartView(E9),n.registerLayout(lw("scatter"))}function vj(n){n.eachSeriesByType("radar",function(e){var t=e.getData(),r=[],s=e.coordinateSystem;if(!!s){var c=s.getIndicatorAxes();At(c,function(f,T){t.each(t.mapDimension(c[T].dim),function(R,I){r[I]=r[I]||[];var B=s.dataToPoint(R,T);r[I][T]=g6(B)?B:_6(s)})}),t.each(function(f){var T=Qa(r[f],function(R){return g6(R)})||_6(s);r[f].push(T.slice()),t.setItemLayout(f,r[f])})}})}function g6(n){return!isNaN(n[0])&&!isNaN(n[1])}function _6(n){return[n.cx,n.cy]}function hj(n){var e=n.polar;if(e){La(e)||(e=[e]);var t=[];At(e,function(r,s){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),n.radar=n.radar||[],La(n.radar)||(n.radar=[n.radar]),n.radar.push(r)):t.push(r)}),n.polar=t}At(n.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var iR=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s){var c=t.coordinateSystem,f=this.group,T=t.getData(),R=this._data;function I(q,ie){var ge=q.getItemVisual(ie,"symbol")||"circle";if(ge!=="none"){var Oe=fp(q.getItemVisual(ie,"symbolSize")),Ne=ad(ge,-1,-1,2,2),He=q.getItemVisual(ie,"symbolRotate")||0;return Ne.attr({style:{strokeNoScale:!0},z2:100,scaleX:Oe[0]/2,scaleY:Oe[1]/2,rotation:He*Math.PI/180||0}),Ne}}function B(q,ie,ge,Oe,Ne,He){ge.removeAll();for(var st=0;st<ie.length-1;st++){var pt=I(Oe,Ne);pt&&(pt.__dimIdx=st,q[st]?(pt.setPosition(q[st]),x[He?"initProps":"updateProps"](pt,{x:ie[st][0],y:ie[st][1]},t,Ne)):pt.setPosition(ie[st]),ge.add(pt))}}function Y(q){return ar(q,function(ie){return[c.cx,c.cy]})}T.diff(R).add(function(q){var ie=T.getItemLayout(q);if(!!ie){var ge=new tg,Oe=new ng,Ne={shape:{points:ie}};ge.shape.points=Y(ie),Oe.shape.points=Y(ie),Sv(ge,Ne,t,q),Sv(Oe,Ne,t,q);var He=new Qi,st=new Qi;He.add(Oe),He.add(ge),He.add(st),B(Oe.shape.points,ie,st,T,q,!0),T.setItemGraphicEl(q,He)}}).update(function(q,ie){var ge=R.getItemGraphicEl(ie),Oe=ge.childAt(0),Ne=ge.childAt(1),He=ge.childAt(2),st={shape:{points:T.getItemLayout(q)}};!st.shape.points||(B(Oe.shape.points,st.shape.points,He,T,q,!1),e_(Ne),e_(Oe),vp(Oe,st,t),vp(Ne,st,t),T.setItemGraphicEl(q,ge))}).remove(function(q){f.remove(R.getItemGraphicEl(q))}).execute(),T.eachItemGraphicEl(function(q,ie){var ge=T.getItemModel(ie),Oe=q.childAt(0),Ne=q.childAt(1),He=q.childAt(2),st=T.getItemVisual(ie,"style"),pt=st.fill;f.add(q),Oe.useStyle(Pi(ge.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:pt})),Om(Oe,ge,"lineStyle"),Om(Ne,ge,"areaStyle");var Ut=ge.getModel("areaStyle"),pn=Ut.isEmpty()&&Ut.parentModel.isEmpty();Ne.ignore=pn,At(["emphasis","select","blur"],function(Cr){var Nr=ge.getModel([Cr,"areaStyle"]),Rr=Nr.isEmpty()&&Nr.parentModel.isEmpty();Ne.ensureState(Cr).ignore=Rr&&pn}),Ne.useStyle(Pi(Ut.getAreaStyle(),{fill:pt,opacity:.7,decal:st.decal}));var yn=ge.getModel("emphasis"),jn=yn.getModel("itemStyle").getItemStyle();He.eachChild(function(Cr){if(Cr instanceof wp){var Nr=Cr.style;Cr.useStyle(Ea({image:Nr.image,x:Nr.x,y:Nr.y,width:Nr.width,height:Nr.height},st))}else Cr.useStyle(st),Cr.setColor(pt),Cr.style.strokeNoScale=!0;var Rr=Cr.ensureState("emphasis");Rr.style=Kr(jn);var Er=T.getStore().get(T.getDimensionIndex(Cr.__dimIdx),ie);(Er==null||isNaN(Er))&&(Er=""),bv(Cr,bh(ge),{labelFetcher:T.hostModel,labelDataIndex:ie,labelDimIndex:Cr.__dimIdx,defaultText:Er,inheritColor:pt,defaultOpacity:st.opacity})}),ih(q,yn.get("focus"),yn.get("blurScope"),yn.get("disabled"))}),this._data=T},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(vv),y6=iR,mj=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new VS(Xa(this.getData,this),Xa(this.getRawData,this))},e.prototype.getInitialData=function(t,r){return uw(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},e.prototype.formatTooltip=function(t,r,s){var c=this.getData(),f=this.coordinateSystem,T=f.getIndicatorAxes(),R=this.getData().getName(t),I=R===""?this.name:R,B=Zk(this,t);return em("section",{header:I,sortBlocks:!0,blocks:ar(T,function(Y){var q=c.get(c.mapDimension(Y.dim),t);return em("nameValue",{markerType:"subItem",markerColor:B,name:Y.name,value:q,sortParam:q})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var r=this.getData(),s=this.coordinateSystem,c=r.getValues(ar(s.dimensions,function(I){return r.mapDimension(I)}),t),f=0,T=c.length;f<T;f++)if(!isNaN(c[f])){var R=s.getIndicatorAxes();return s.coordToPoint(R[f].dataToCoord(c[f]),f)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(oh),gj=mj,uM=fw.value;function oR(n,e){return Pi({show:e},n)}var _j=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),r=this.get("splitNumber"),s=this.get("scale"),c=this.get("axisLine"),f=this.get("axisTick"),T=this.get("axisLabel"),R=this.get("axisName"),I=this.get(["axisName","show"]),B=this.get(["axisName","formatter"]),Y=this.get("axisNameGap"),q=this.get("triggerEvent"),ie=ar(this.get("indicator")||[],function(ge){ge.max!=null&&ge.max>0&&!ge.min?ge.min=0:ge.min!=null&&ge.min<0&&!ge.max&&(ge.max=0);var Oe=R;ge.color!=null&&(Oe=Pi({color:ge.color},R));var Ne=ba(Kr(ge),{boundaryGap:t,splitNumber:r,scale:s,axisLine:c,axisTick:f,axisLabel:T,name:ge.text,showName:I,nameLocation:"end",nameGap:Y,nameTextStyle:Oe,triggerEvent:q},!1);if(ei(B)){var He=Ne.name;Ne.name=B.replace("{value}",He!=null?He:"")}else ja(B)&&(Ne.name=B(Ne.name,Ne));var st=new Lv(Ne,null,this.ecModel);return Kn(st,nM.prototype),st.mainType="radar",st.componentIndex=this.componentIndex,st},this);this._indicatorModels=ie},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ba({lineStyle:{color:"#bbb"}},uM.axisLine),axisLabel:oR(uM.axisLabel,!1),axisTick:oR(uM.axisTick,!1),splitLine:oR(uM.splitLine,!0),splitArea:oR(uM.splitArea,!0),indicator:[]},e}(Mp),yj=_j,bj=["axisLine","axisTickLabel","axisName"],xj=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s){var c=this.group;c.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,s=r.getIndicatorAxes(),c=ar(s,function(f){var T=f.model.get("showName")?f.name:"",R=new Db(f.model,{axisName:T,position:[r.cx,r.cy],rotation:f.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return R});At(c,function(f){At(bj,f.add,f),this.group.add(f.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,s=r.getIndicatorAxes();if(!s.length)return;var c=t.get("shape"),f=t.getModel("splitLine"),T=t.getModel("splitArea"),R=f.getModel("lineStyle"),I=T.getModel("areaStyle"),B=f.get("show"),Y=T.get("show"),q=R.get("color"),ie=I.get("color"),ge=La(q)?q:[q],Oe=La(ie)?ie:[ie],Ne=[],He=[];function st(Ei,Vi,ns){var zo=ns%Vi.length;return Ei[zo]=Ei[zo]||[],zo}if(c==="circle")for(var pt=s[0].getTicksCoords(),Ut=r.cx,pn=r.cy,yn=0;yn<pt.length;yn++){if(B){var jn=st(Ne,ge,yn);Ne[jn].push(new y0({shape:{cx:Ut,cy:pn,r:pt[yn].coord}}))}if(Y&&yn<pt.length-1){var jn=st(He,Oe,yn);He[jn].push(new W0({shape:{cx:Ut,cy:pn,r0:pt[yn].coord,r:pt[yn+1].coord}}))}}else for(var Cr,Nr=ar(s,function(Ei,Vi){var ns=Ei.getTicksCoords();return Cr=Cr==null?ns.length-1:Math.min(ns.length-1,Cr),ar(ns,function(zo){return r.coordToPoint(zo.coord,Vi)})}),Rr=[],yn=0;yn<=Cr;yn++){for(var Er=[],ma=0;ma<s.length;ma++)Er.push(Nr[ma][yn]);if(Er[0]&&Er.push(Er[0].slice()),B){var jn=st(Ne,ge,yn);Ne[jn].push(new ng({shape:{points:Er}}))}if(Y&&Rr){var jn=st(He,Oe,yn-1);He[jn].push(new tg({shape:{points:Er.concat(Rr)}}))}Rr=Er.slice().reverse()}var wa=R.getLineStyle(),Ga=I.getAreaStyle();At(He,function(Ei,Vi){this.group.add(Gg(Ei,{style:Pi({stroke:"none",fill:Oe[Vi%Oe.length]},Ga),silent:!0}))},this),At(Ne,function(Ei,Vi){this.group.add(Gg(Ei,{style:Pi({fill:"none",stroke:ge[Vi%ge.length]},wa),silent:!0}))},this)},e.type="radar",e}(Eh),Ej=xj,Sj=function(n){ze(e,n);function e(t,r,s){var c=n.call(this,t,r,s)||this;return c.type="value",c.angle=0,c.name="",c}return e}(Dv),Cj=Sj,GW=function(){function n(e,t,r){this.dimensions=[],this._model=e,this._indicatorAxes=ar(e.getIndicatorModels(),function(s,c){var f="indicator_"+c,T=new Cj(f,new p1);return T.name=s.get("name"),T.model=s,s.axis=T,this.dimensions.push(f),T},this),this.resize(e,r)}return n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(e,t){var r=this._indicatorAxes[t];return this.coordToPoint(r.dataToCoord(e),t)},n.prototype.coordToPoint=function(e,t){var r=this._indicatorAxes[t],s=r.angle,c=this.cx+e*Math.cos(s),f=this.cy-e*Math.sin(s);return[c,f]},n.prototype.pointToData=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,s=Math.sqrt(t*t+r*r);t/=s,r/=s;for(var c=Math.atan2(-r,t),f=Infinity,T,R=-1,I=0;I<this._indicatorAxes.length;I++){var B=this._indicatorAxes[I],Y=Math.abs(c-B.angle);Y<f&&(T=B,R=I,f=Y)}return[R,+(T&&T.coordToData(s))]},n.prototype.resize=function(e,t){var r=e.get("center"),s=t.getWidth(),c=t.getHeight(),f=Math.min(s,c)/2;this.cx=It(r[0],s),this.cy=It(r[1],c),this.startAngle=e.get("startAngle")*Math.PI/180;var T=e.get("radius");(ei(T)||yo(T))&&(T=[0,T]),this.r0=It(T[0],f),this.r=It(T[1],f),At(this._indicatorAxes,function(R,I){R.setExtent(this.r0,this.r);var B=this.startAngle+I*Math.PI*2/this._indicatorAxes.length;B=Math.atan2(Math.sin(B),Math.cos(B)),R.angle=B},this)},n.prototype.update=function(e,t){var r=this._indicatorAxes,s=this._model;At(r,function(T){T.scale.setExtent(Infinity,-Infinity)}),e.eachSeriesByType("radar",function(T,R){if(!(T.get("coordinateSystem")!=="radar"||e.getComponent("radar",T.get("radarIndex"))!==s)){var I=T.getData();At(r,function(B){B.scale.unionExtentFromData(I,I.mapDimension(B.dim))})}},this);var c=s.get("splitNumber"),f=new p1;f.setExtent(0,c),f.setInterval(1),At(r,function(T,R){X9(T.scale,T.model,f)})},n.prototype.convertToPixel=function(e,t,r){return console.warn("Not implemented."),null},n.prototype.convertFromPixel=function(e,t,r){return console.warn("Not implemented."),null},n.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},n.create=function(e,t){var r=[];return e.eachComponent("radar",function(s){var c=new n(s,e,t);r.push(c),s.coordinateSystem=c}),e.eachSeriesByType("radar",function(s){s.get("coordinateSystem")==="radar"&&(s.coordinateSystem=r[s.get("radarIndex")||0])}),r},n.dimensions=[],n}(),wj=GW;function Tj(n){n.registerCoordinateSystem("radar",wj),n.registerComponentModel(yj),n.registerComponentView(Ej),n.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(r){t.setItemVisual(r,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function b6(n){Ud(Tj),n.registerChartView(y6),n.registerSeriesModel(gj),n.registerLayout(vj),n.registerProcessor(kg("radar")),n.registerPreprocessor(hj)}var x6="\0_ec_interaction_mutex";function Aj(n,e,t){var r=ZD(n);r[e]=t}function Mj(n,e,t){var r=ZD(n),s=r[e];s===t&&(r[e]=null)}function E6(n,e){return!!ZD(n)[e]}function ZD(n){return n[x6]||(n[x6]={})}Fm({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Bo);var kj=function(n){ze(e,n);function e(t){var r=n.call(this)||this;r._zr=t;var s=Xa(r._mousedownHandler,r),c=Xa(r._mousemoveHandler,r),f=Xa(r._mouseupHandler,r),T=Xa(r._mousewheelHandler,r),R=Xa(r._pinchHandler,r);return r.enable=function(I,B){this.disable(),this._opt=Pi(Kr(B)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),I==null&&(I=!0),(I===!0||I==="move"||I==="pan")&&(t.on("mousedown",s),t.on("mousemove",c),t.on("mouseup",f)),(I===!0||I==="scale"||I==="zoom")&&(t.on("mousewheel",T),t.on("pinch",R))},r.disable=function(){t.off("mousedown",s),t.off("mousemove",c),t.off("mouseup",f),t.off("mousewheel",T),t.off("pinch",R)},r}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!fl(t)){for(var r=t.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var s=t.offsetX,c=t.offsetY;this.pointerChecker&&this.pointerChecker(t,s,c)&&(this._x=s,this._y=c,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!fM("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||E6(this._zr,"globalPan"))){var r=t.offsetX,s=t.offsetY,c=this._x,f=this._y,T=r-c,R=s-f;this._x=r,this._y=s,this._opt.preventDefaultMouseMove&&sl(t.event),S6(this,"pan","moveOnMouseMove",t,{dx:T,dy:R,oldX:c,oldY:f,newX:r,newY:s,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){fl(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var r=fM("zoomOnMouseWheel",t,this._opt),s=fM("moveOnMouseWheel",t,this._opt),c=t.wheelDelta,f=Math.abs(c),T=t.offsetX,R=t.offsetY;if(!(c===0||!r&&!s)){if(r){var I=f>3?1.4:f>1?1.2:1.1,B=c>0?I:1/I;VD(this,"zoom","zoomOnMouseWheel",t,{scale:B,originX:T,originY:R,isAvailableBehavior:null})}if(s){var Y=Math.abs(c),q=(c>0?1:-1)*(Y>3?.4:Y>1?.15:.05);VD(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:q,originX:T,originY:R,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!E6(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;VD(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Nc);function VD(n,e,t,r,s){n.pointerChecker&&n.pointerChecker(r,s.originX,s.originY)&&(sl(r.event),S6(n,e,t,r,s))}function S6(n,e,t,r,s){s.isAvailableBehavior=Xa(fM,null,t,r),n.trigger(e,s)}function fM(n,e,t){var r=t[n];return!n||r&&(!ei(r)||e.event[r+"Key"])}var dM=kj;function zD(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function WD(n,e,t,r){var s=n.target,c=n.zoomLimit,f=n.zoom=n.zoom||1;if(f*=e,c){var T=c.min||0,R=c.max||Infinity;f=Math.max(Math.min(R,f),T)}var I=f/n.zoom;n.zoom=f,s.x-=(t-s.x)*(I-1),s.y-=(r-s.y)*(I-1),s.scaleX*=I,s.scaleY*=I,s.dirty()}var Pj={axisPointer:1,tooltip:1,brush:1};function sR(n,e,t){var r=e.getComponentByElement(n.topTarget),s=r&&r.coordinateSystem;return r&&r!==t&&!Pj.hasOwnProperty(r.mainType)&&s&&s.model!==t}function C6(n){if(ei(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var HD,lR={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},w6=Ua(lR),pM={"alignment-baseline":"textBaseline","stop-color":"stopColor"},T6=Ua(pM),Rj=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=C6(e);this._defsUsePending=[];var s=new Qi;this._root=s;var c=[],f=r.getAttribute("viewBox")||"",T=parseFloat(r.getAttribute("width")||t.width),R=parseFloat(r.getAttribute("height")||t.height);isNaN(T)&&(T=null),isNaN(R)&&(R=null),w0(r,s,null,!0,!1);for(var I=r.firstChild;I;)this._parseNode(I,s,c,null,!1,!1),I=I.nextSibling;hM(this._defs,this._defsUsePending),this._defsUsePending=[];var B,Y;if(f){var q=JS(f);q.length>=4&&(B={x:parseFloat(q[0]||0),y:parseFloat(q[1]||0),width:parseFloat(q[2]),height:parseFloat(q[3])})}if(B&&T!=null&&R!=null&&(Y=N6(B,{x:0,y:0,width:T,height:R}),!t.ignoreViewBox)){var ie=s;s=new Qi,s.add(ie),ie.scaleX=ie.scaleY=Y.scale,ie.x=Y.x,ie.y=Y.y}return!t.ignoreRootClip&&T!=null&&R!=null&&s.setClipPath(new jd({shape:{x:0,y:0,width:T,height:R}})),{root:s,width:T,height:R,viewBoxRect:B,viewBoxTransform:Y,named:c}},n.prototype._parseNode=function(e,t,r,s,c,f){var T=e.nodeName.toLowerCase(),R,I=s;if(T==="defs"&&(c=!0),T==="text"&&(f=!0),T==="defs"||T==="switch")R=t;else{if(!c){var B=HD[T];if(B&&Xi(HD,T)){R=B.call(this,e,t);var Y=e.getAttribute("name");if(Y){var q={name:Y,namedFrom:null,svgNodeTagLower:T,el:R};r.push(q),T==="g"&&(I=q)}else s&&r.push({name:s.name,namedFrom:s,svgNodeTagLower:T,el:R});t.add(R)}}var ie=A6[T];if(ie&&Xi(A6,T)){var ge=ie.call(this,e),Oe=e.getAttribute("id");Oe&&(this._defs[Oe]=ge)}}if(R&&R.isGroup)for(var Ne=e.firstChild;Ne;)Ne.nodeType===1?this._parseNode(Ne,R,r,I,c,f):Ne.nodeType===3&&f&&this._parseText(Ne,R),Ne=Ne.nextSibling},n.prototype._parseText=function(e,t){var r=new oy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});J0(t,r),w0(e,r,this._defsUsePending,!1,!1),vM(r,t);var s=r.style,c=s.fontSize;c&&c<9&&(s.fontSize=9,r.scaleX*=c/9,r.scaleY*=c/9);var f=(s.fontSize||s.fontFamily)&&[s.fontStyle,s.fontWeight,(s.fontSize||12)+"px",s.fontFamily||"sans-serif"].join(" ");s.font=f;var T=r.getBoundingRect();return this._textX+=T.width,t.add(r),r},n.internalField=function(){HD={g:function(t,r){var s=new Qi;return J0(r,s),w0(t,s,this._defsUsePending,!1,!1),s},rect:function(t,r){var s=new jd;return J0(r,s),w0(t,s,this._defsUsePending,!1,!1),s.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),s.silent=!0,s},circle:function(t,r){var s=new y0;return J0(r,s),w0(t,s,this._defsUsePending,!1,!1),s.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),s.silent=!0,s},line:function(t,r){var s=new jh;return J0(r,s),w0(t,s,this._defsUsePending,!1,!1),s.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),s.silent=!0,s},ellipse:function(t,r){var s=new Rx;return J0(r,s),w0(t,s,this._defsUsePending,!1,!1),s.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),s.silent=!0,s},polygon:function(t,r){var s=t.getAttribute("points"),c;s&&(c=P6(s));var f=new tg({shape:{points:c||[]},silent:!0});return J0(r,f),w0(t,f,this._defsUsePending,!1,!1),f},polyline:function(t,r){var s=t.getAttribute("points"),c;s&&(c=P6(s));var f=new ng({shape:{points:c||[]},silent:!0});return J0(r,f),w0(t,f,this._defsUsePending,!1,!1),f},image:function(t,r){var s=new wp;return J0(r,s),w0(t,s,this._defsUsePending,!1,!1),s.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),s.silent=!0,s},text:function(t,r){var s=t.getAttribute("x")||"0",c=t.getAttribute("y")||"0",f=t.getAttribute("dx")||"0",T=t.getAttribute("dy")||"0";this._textX=parseFloat(s)+parseFloat(f),this._textY=parseFloat(c)+parseFloat(T);var R=new Qi;return J0(r,R),w0(t,R,this._defsUsePending,!1,!0),R},tspan:function(t,r){var s=t.getAttribute("x"),c=t.getAttribute("y");s!=null&&(this._textX=parseFloat(s)),c!=null&&(this._textY=parseFloat(c));var f=t.getAttribute("dx")||"0",T=t.getAttribute("dy")||"0",R=new Qi;return J0(r,R),w0(t,R,this._defsUsePending,!1,!0),this._textX+=parseFloat(f),this._textY+=parseFloat(T),R},path:function(t,r){var s=t.getAttribute("d")||"",c=lA(s);return J0(r,c),w0(t,c,this._defsUsePending,!1,!1),c.silent=!0,c}}}(),n}(),A6={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),s=parseInt(e.getAttribute("x2")||"10",10),c=parseInt(e.getAttribute("y2")||"0",10),f=new pb(t,r,s,c);return M6(e,f),k6(e,f),f},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),s=parseInt(e.getAttribute("r")||"0",10),c=new lP(t,r,s);return M6(e,c),k6(e,c),c}};function M6(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function k6(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),s=void 0;r&&r.indexOf("%")>0?s=parseInt(r,10)/100:r?s=parseFloat(r):s=0;var c={};$D(t,c,c);var f=c.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:s,color:f})}t=t.nextSibling}}function J0(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Pi(e.__inheritedStyle,n.__inheritedStyle))}function P6(n){for(var e=JS(n),t=[],r=0;r<e.length;r+=2){var s=parseFloat(e[r]),c=parseFloat(e[r+1]);t.push([s,c])}return t}function w0(n,e,t,r,s){var c=e,f=c.__inheritedStyle=c.__inheritedStyle||{},T={};n.nodeType===1&&(Oj(n,e),$D(n,f,T),r||D6(n,f,T)),c.style=c.style||{},f.fill!=null&&(c.style.fill=R6(c,"fill",f.fill,t)),f.stroke!=null&&(c.style.stroke=R6(c,"stroke",f.stroke,t)),At(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(R){f[R]!=null&&(c.style[R]=parseFloat(f[R]))}),At(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(R){f[R]!=null&&(c.style[R]=f[R])}),s&&(c.__selfStyle=T),f.lineDash&&(c.style.lineDash=ar(JS(f.lineDash),function(R){return parseFloat(R)})),(f.visibility==="hidden"||f.visibility==="collapse")&&(c.invisible=!0),f.display==="none"&&(c.ignore=!0)}function vM(n,e){var t=e.__selfStyle;if(t){var r=t.textBaseline,s=r;!r||r==="auto"||r==="baseline"?s="alphabetic":r==="before-edge"||r==="text-before-edge"?s="top":r==="after-edge"||r==="text-after-edge"?s="bottom":(r==="central"||r==="mathematical")&&(s="middle"),n.style.textBaseline=s}var c=e.__inheritedStyle;if(c){var f=c.textAlign,T=f;f&&(f==="middle"&&(T="center"),n.style.textAlign=T)}}var $W=/^url\(\s*#(.*?)\)/;function R6(n,e,t,r){var s=t&&t.match($W);if(s){var c=Tr(s[1]);r.push([n,e,c]);return}return t==="none"&&(t=null),t}function hM(n,e){for(var t=0;t<e.length;t++){var r=e[t];r[0].style[r[1]]=n[r[2]]}}var cR=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function JS(n){return n.match(cR)||[]}var O6=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,GD=Math.PI/180;function Oj(n,e){var t=n.getAttribute("transform");if(t){t=t.replace(/,/g," ");var r=[],s=null;t.replace(O6,function(Y,q,ie){return r.push(q,ie),""});for(var c=r.length-1;c>0;c-=2){var f=r[c],T=r[c-1],R=JS(f);switch(s=s||Df(),T){case"translate":Sc(s,s,[parseFloat(R[0]),parseFloat(R[1]||"0")]);break;case"scale":Du(s,s,[parseFloat(R[0]),parseFloat(R[1]||R[0])]);break;case"rotate":Wu(s,s,-parseFloat(R[0])*GD);break;case"skewX":var I=Math.tan(parseFloat(R[0])*GD);xf(s,[1,0,I,1,0,0],s);break;case"skewY":var B=Math.tan(parseFloat(R[0])*GD);xf(s,[1,B,0,1,0,0],s);break;case"matrix":s[0]=parseFloat(R[0]),s[1]=parseFloat(R[1]),s[2]=parseFloat(R[2]),s[3]=parseFloat(R[3]),s[4]=parseFloat(R[4]),s[5]=parseFloat(R[5]);break}}e.setLocalTransform(s)}}var I6=/([^\s:;]+)\s*:\s*([^:;]+)/g;function $D(n,e,t){var r=n.getAttribute("style");if(!!r){I6.lastIndex=0;for(var s;(s=I6.exec(r))!=null;){var c=s[1],f=Xi(lR,c)?lR[c]:null;f&&(e[f]=s[2]);var T=Xi(pM,c)?pM[c]:null;T&&(t[T]=s[2])}}}function D6(n,e,t){for(var r=0;r<w6.length;r++){var s=w6[r],c=n.getAttribute(s);c!=null&&(e[lR[s]]=c)}for(var r=0;r<T6.length;r++){var s=T6[r],c=n.getAttribute(s);c!=null&&(t[pM[s]]=c)}}function N6(n,e){var t=e.width/n.width,r=e.height/n.height,s=Math.min(t,r);return{scale:s,x:-(n.x+n.width/2)*s+(e.x+e.width/2),y:-(n.y+n.height/2)*s+(e.y+e.height/2)}}function L6(n,e){var t=new Rj;return t.parse(n,e)}var F6=1e-8;function KD(n,e){return Math.abs(n-e)<F6}function h1(n,e,t){var r=0,s=n[0];if(!s)return!1;for(var c=1;c<n.length;c++){var f=n[c];r+=o0(s[0],s[1],f[0],f[1],e,t),s=f}var T=n[0];return(!KD(s[0],T[0])||!KD(s[1],T[1]))&&(r+=o0(s[0],s[1],T[0],T[1],e,t)),r!==0}var YD=[];function Pg(n,e){for(var t=0;t<n.length;t++)Cu(n[t],n[t],e)}function uR(n,e,t,r){for(var s=0;s<n.length;s++){var c=n[s];r&&(c=r.project(c)),c&&isFinite(c[0])&&isFinite(c[1])&&(rf(e,e,c),Bu(t,t,c))}}function KW(n){for(var e=0,t=0,r=0,s=n.length,c=n[s-1][0],f=n[s-1][1],T=0;T<s;T++){var R=n[T][0],I=n[T][1],B=c*I-R*f;e+=B,t+=(c+R)*B,r+=(f+I)*B,c=R,f=I}return e?[t/e/3,r/e/3,e]:[n[0][0]||0,n[0][1]||0]}var Ij=function(){function n(e){this.name=e}return n.prototype.setCenter=function(e){this._center=e},n.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},n}(),Dj=function(){function n(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return n}(),Nj=function(){function n(e){this.type="linestring",this.points=e}return n}(),Lj=function(n){ze(e,n);function e(t,r,s){var c=n.call(this,t)||this;return c.type="geoJSON",c.geometries=r,c._center=s&&[s[0],s[1]],c}return e.prototype.calcCenter=function(){for(var t=this.geometries,r,s=0,c=0;c<t.length;c++){var f=t[c],T=f.exterior,R=T&&T.length;R>s&&(r=f,s=R)}if(r)return KW(r.exterior);var I=this.getBoundingRect();return[I.x+I.width/2,I.y+I.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var s=[Infinity,Infinity],c=[-Infinity,-Infinity],f=this.geometries;return At(f,function(T){T.type==="polygon"?uR(T.exterior,s,c,t):At(T.points,function(R){uR(R,s,c,t)})}),isFinite(s[0])&&isFinite(s[1])&&isFinite(c[0])&&isFinite(c[1])||(s[0]=s[1]=c[0]=c[1]=0),r=new ra(s[0],s[1],c[0]-s[0],c[1]-s[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),s=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var c=0,f=s.length;c<f;c++){var T=s[c];if(T.type==="polygon"){var R=T.exterior,I=T.interiors;if(h1(R,t[0],t[1])){for(var B=0;B<(I?I.length:0);B++)if(h1(I[B],t[0],t[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(t,r,s,c){var f=this.getBoundingRect(),T=f.width/f.height;s?c||(c=s/T):s=T*c;for(var R=new ra(t,r,s,c),I=f.calculateTransform(R),B=this.geometries,Y=0;Y<B.length;Y++){var q=B[Y];q.type==="polygon"?(Pg(q.exterior,I),At(q.interiors,function(ie){Pg(ie,I)})):At(q.points,function(ie){Pg(ie,I)})}f=this._rect,f.copy(R),this._center=[f.x+f.width/2,f.y+f.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var r=new e(t,this.geometries,this._center);return r._rect=this._rect,r.transformTo=null,r},e}(Ij),YW=function(n){ze(e,n);function e(t,r){var s=n.call(this,t)||this;return s.type="geoSVG",s._elOnlyForCalculate=r,s}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,r=t.getBoundingRect(),s=[r.x+r.width/2,r.y+r.height/2],c=Ff(YD),f=t;f&&!f.isGeoSVGGraphicRoot;)xf(c,f.getLocalTransform(),c),f=f.parent;return Gd(c,c),Cu(s,s,c),s},e}(Ij),XW=Za(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),JW=function(){function n(e,t){this.type="geoSVG",this._usedGraphicMap=Za(),this._freedGraphics=[],this._mapName=e,this._parsedXML=C6(t)}return n.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=qW(e.named),r=t.regions,s=t.regionsMap;this._regions=r,this._regionsMap=s}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},n.prototype._buildGraphic=function(e){var t,r;try{t=e&&L6(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=t.root,Ln(r!=null)}catch(Ne){throw new Error(`Invalid svg format
|
||
`+Ne.message)}var s=new Qi;s.add(r),s.isGeoSVGGraphicRoot=!0;var c=t.width,f=t.height,T=t.viewBoxRect,R=this._boundingRect;if(!R){var I=void 0,B=void 0,Y=void 0,q=void 0;if(c!=null?(I=0,Y=c):T&&(I=T.x,Y=T.width),f!=null?(B=0,q=f):T&&(B=T.y,q=T.height),I==null||B==null){var ie=r.getBoundingRect();I==null&&(I=ie.x,Y=ie.width),B==null&&(B=ie.y,q=ie.height)}R=this._boundingRect=new ra(I,B,Y,q)}if(T){var ge=N6(T,R);r.scaleX=r.scaleY=ge.scale,r.x=ge.x,r.y=ge.y}s.setClipPath(new jd({shape:R.plain()}));var Oe=[];return At(t.named,function(Ne){XW.get(Ne.svgNodeTagLower)!=null&&(Oe.push(Ne),QW(Ne.el))}),{root:s,boundingRect:R,named:Oe}},n.prototype.useGraphic=function(e){var t=this._usedGraphicMap,r=t.get(e);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,r),r)},n.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,r=t.get(e);r&&(t.removeKey(e),this._freedGraphics.push(r))},n}();function QW(n){n.silent=!1,n.isGroup&&n.traverse(function(e){e.silent=!1})}function qW(n){var e=[],t=Za();return At(n,function(r){if(r.namedFrom==null){var s=new YW(r.name,r.el);e.push(s),t.set(r.name,s)}}),{regions:e,regionsMap:t}}function eH(n){if(!n.UTF8Encoding)return n;var e=n,t=e.UTF8Scale;t==null&&(t=1024);var r=e.features;return At(r,function(s){var c=s.geometry,f=c.encodeOffsets,T=c.coordinates;if(!!f)switch(c.type){case"LineString":c.coordinates=Fj(T,f,t);break;case"Polygon":j6(T,f,t);break;case"MultiLineString":j6(T,f,t);break;case"MultiPolygon":At(T,function(R,I){return j6(R,f[I],t)})}}),e.UTF8Encoding=!1,e}function j6(n,e,t){for(var r=0;r<n.length;r++)n[r]=Fj(n[r],e[r],t)}function Fj(n,e,t){for(var r=[],s=e[0],c=e[1],f=0;f<n.length;f+=2){var T=n.charCodeAt(f)-64,R=n.charCodeAt(f+1)-64;T=T>>1^-(T&1),R=R>>1^-(R&1),T+=s,R+=c,s=T,c=R,r.push([T/t,R/t])}return r}function og(n,e){return n=eH(n),ar(Yn(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,s=t.geometry,c=[];switch(s.type){case"Polygon":var f=s.coordinates;c.push(new Dj(f[0],f.slice(1)));break;case"MultiPolygon":At(s.coordinates,function(R){R[0]&&c.push(new Dj(R[0],R.slice(1)))});break;case"LineString":c.push(new Nj([s.coordinates]));break;case"MultiLineString":c.push(new Nj(s.coordinates))}var T=new Lj(r[e||"name"],c,r.cp);return T.properties=r,T})}for(var XD=[126,25],B6="\u5357\u6D77\u8BF8\u5C9B",Nb=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],QS=0;QS<Nb.length;QS++)for(var gw=0;gw<Nb[QS].length;gw++)Nb[QS][gw][0]/=10.5,Nb[QS][gw][1]/=-10.5/.75,Nb[QS][gw][0]+=XD[0],Nb[QS][gw][1]+=XD[1];function jj(n,e){if(n==="china"){for(var t=0;t<e.length;t++)if(e[t].name===B6)return;e.push(new Lj(B6,ar(Nb,function(r){return{type:"polygon",exterior:r}}),XD))}}var U6={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function Xp(n,e){if(n==="china"){var t=U6[e.name];if(t){var r=e.getCenter();r[0]+=t[0]/10.5,r[1]+=-t[1]/(10.5/.75),e.setCenter(r)}}}var qS=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function fR(n,e){n==="china"&&e.name==="\u53F0\u6E7E"&&e.geometries.push({type:"polygon",exterior:qS[0]})}var Bj="name",Uj=function(){function n(e,t,r){this.type="geoJSON",this._parsedMap=Za(),this._mapName=e,this._specialAreas=r,this._geoJSON=Vj(t)}return n.prototype.load=function(e,t){t=t||Bj;var r=this._parsedMap.get(t);if(!r){var s=this._parseToRegions(t);r=this._parsedMap.set(t,{regions:s,boundingRect:Zj(s)})}var c=Za(),f=[];return At(r.regions,function(T){var R=T.name;e&&Xi(e,R)&&(T=T.cloneShallow(R=e[R])),f.push(T),c.set(R,T)}),{regions:f,boundingRect:r.boundingRect||new ra(0,0,0,0),regionsMap:c}},n.prototype._parseToRegions=function(e){var t=this._mapName,r=this._geoJSON,s;try{s=r?og(r,e):[]}catch(c){throw new Error(`Invalid geoJson format
|
||
`+c.message)}return jj(t,s),At(s,function(c){var f=c.name;Xp(t,c),fR(t,c);var T=this._specialAreas&&this._specialAreas[f];T&&c.transformTo(T.left,T.top,T.width,T.height)},this),s},n.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},n}();function Zj(n){for(var e,t=0;t<n.length;t++){var r=n[t].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function Vj(n){return ei(n)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(n):new Function("return ("+n+");")():n}var gp=Za(),Lb={registerMap:function(n,e,t){if(e.svg){var r=new JW(n,e.svg);gp.set(n,r)}else{var s=e.geoJson||e.geoJSON;s&&!e.features?t=e.specialAreas:s=e;var r=new Uj(n,s,t);gp.set(n,r)}},getGeoResource:function(n){return gp.get(n)},getMapForUser:function(n){var e=gp.get(n);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(n,e,t){var r=gp.get(n);if(!!r)return r.load(e,t)}},_w=["rect","circle","line","ellipse","polygon","polyline","path"],Z6=Za(_w),zj=Za(_w.concat(["g"])),Wj=Za(_w.concat(["g"])),V6=Bi();function dR(n){var e=n.getItemStyle(),t=n.get("areaColor");return t!=null&&(e.fill=t),e}function z6(n){var e=n.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Hj=function(){function n(e){var t=new Qi;this.uid=Hy("ec_map_draw"),this._controller=new dM(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Qi),t.add(this._svgGroup=new Qi)}return n.prototype.draw=function(e,t,r,s,c){var f=e.mainType==="geo",T=e.getData&&e.getData();f&&t.eachComponent({mainType:"series",subType:"map"},function(He){!T&&He.getHostGeoModel()===e&&(T=He.getData())});var R=e.coordinateSystem,I=this._regionsGroup,B=this.group,Y=R.getTransformInfo(),q=Y.raw,ie=Y.roam,ge=!I.childAt(0)||c;ge?(B.x=ie.x,B.y=ie.y,B.scaleX=ie.scaleX,B.scaleY=ie.scaleY,B.dirty()):vp(B,ie,e);var Oe=T&&T.getVisual("visualMeta")&&T.getVisual("visualMeta").length>0,Ne={api:r,geo:R,mapOrGeoModel:e,data:T,isVisualEncodedByVisualMap:Oe,isGeo:f,transformInfoRaw:q};R.resourceType==="geoJSON"?this._buildGeoJSON(Ne):R.resourceType==="geoSVG"&&this._buildSVG(Ne),this._updateController(e,t,r),this._updateMapSelectHandler(e,I,r,s)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Za(),r=Za(),s=this._regionsGroup,c=e.transformInfoRaw,f=e.mapOrGeoModel,T=e.data,R=e.geo.projection,I=R&&R.stream;function B(ie,ge){return ge&&(ie=ge(ie)),ie&&[ie[0]*c.scaleX+c.x,ie[1]*c.scaleY+c.y]}function Y(ie){for(var ge=[],Oe=!I&&R&&R.project,Ne=0;Ne<ie.length;++Ne){var He=B(ie[Ne],Oe);He&&ge.push(He)}return ge}function q(ie){return{shape:{points:Y(ie)}}}s.removeAll(),At(e.geo.regions,function(ie){var ge=ie.name,Oe=t.get(ge),Ne=r.get(ge)||{},He=Ne.dataIdx,st=Ne.regionModel;Oe||(Oe=t.set(ge,new Qi),s.add(Oe),He=T?T.indexOfName(ge):null,st=e.isGeo?f.getRegionModel(ge):T?T.getItemModel(He):null,r.set(ge,{dataIdx:He,regionModel:st}));var pt=[],Ut=[];At(ie.geometries,function(jn){if(jn.type==="polygon"){var Cr=[jn.exterior].concat(jn.interiors||[]);I&&(Cr=G6(Cr,I)),At(Cr,function(Rr){pt.push(new tg(q(Rr)))})}else{var Nr=jn.points;I&&(Nr=G6(Nr,I,!0)),At(Nr,function(Rr){Ut.push(new ng(q(Rr)))})}});var pn=B(ie.getCenter(),R&&R.project);function yn(jn,Cr){if(!!jn.length){var Nr=new hA({culling:!0,segmentIgnoreThreshold:1,shape:{paths:jn}});Oe.add(Nr),W6(e,Nr,He,st),JD(e,Nr,ge,st,f,He,pn),Cr&&(z6(Nr),At(Nr.states,z6))}}yn(pt),yn(Ut,!0)}),t.each(function(ie,ge){var Oe=r.get(ge),Ne=Oe.dataIdx,He=Oe.regionModel;QD(e,ie,ge,He,f,Ne),H6(e,ie,ge,He,f),m1(e,ie,ge,He,f)},this)},n.prototype._buildSVG=function(e){var t=e.geo.map,r=e.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var s=this._svgDispatcherMap=Za(),c=!1;At(this._svgGraphicRecord.named,function(f){var T=f.name,R=e.mapOrGeoModel,I=e.data,B=f.svgNodeTagLower,Y=f.el,q=I?I.indexOfName(T):null,ie=R.getRegionModel(T);if(Z6.get(B)!=null&&Y instanceof Qm&&W6(e,Y,q,ie),Y instanceof Qm&&(Y.culling=!0),Y.z2EmphasisLift=0,!f.namedFrom&&(Wj.get(B)!=null&&JD(e,Y,T,ie,R,q,null),QD(e,Y,T,ie,R,q),H6(e,Y,T,ie,R),zj.get(B)!=null)){var ge=m1(e,Y,T,ie,R);ge==="self"&&(c=!0);var Oe=s.get(T)||s.set(T,[]);Oe.push(Y)}},this),this._enableBlurEntireSVG(c,e)},n.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var r=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),s=r.opacity;this._svgGraphicRecord.root.traverse(function(c){if(!c.isGroup){F0(c);var f=c.ensureState("blur").style||{};f.opacity==null&&s!=null&&(f.opacity=s),c.ensureState("emphasis")}})}},n.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},n.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var r=t.coordinateSystem;if(r.resourceType==="geoJSON"){var s=this._regionsGroupByName;if(s){var c=s.get(e);return c?[c]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},n.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},n.prototype._useSVG=function(e){var t=Lb.getGeoResource(e);if(t&&t.type==="geoSVG"){var r=t.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=e}},n.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Lb.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},n.prototype._updateController=function(e,t,r){var s=e.coordinateSystem,c=this._controller,f=this._controllerHost;f.zoomLimit=e.get("scaleLimit"),f.zoom=s.getZoom(),c.enable(e.get("roam")||!1);var T=e.mainType;function R(){var I={type:"geoRoam",componentType:T};return I[T+"Id"]=e.id,I}c.off("pan").on("pan",function(I){this._mouseDownFlag=!1,zD(f,I.dx,I.dy),r.dispatchAction(Ea(R(),{dx:I.dx,dy:I.dy,animation:{duration:0}}))},this),c.off("zoom").on("zoom",function(I){this._mouseDownFlag=!1,WD(f,I.scale,I.originX,I.originY),r.dispatchAction(Ea(R(),{zoom:I.scale,originX:I.originX,originY:I.originY,animation:{duration:0}}))},this),c.setPointerChecker(function(I,B,Y){return s.containPoint([B,Y])&&!sR(I,r,e)})},n.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=V6(t).ignore)})},n.prototype._updateMapSelectHandler=function(e,t,r,s){var c=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){c._mouseDownFlag=!0}),t.on("click",function(f){!c._mouseDownFlag||(c._mouseDownFlag=!1)}))},n}();function W6(n,e,t,r){var s=r.getModel("itemStyle"),c=r.getModel(["emphasis","itemStyle"]),f=r.getModel(["blur","itemStyle"]),T=r.getModel(["select","itemStyle"]),R=dR(s),I=dR(c),B=dR(T),Y=dR(f),q=n.data;if(q){var ie=q.getItemVisual(t,"style"),ge=q.getItemVisual(t,"decal");n.isVisualEncodedByVisualMap&&ie.fill&&(R.fill=ie.fill),ge&&(R.decal=mb(ge,n.api))}e.setStyle(R),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=I,e.ensureState("select").style=B,e.ensureState("blur").style=Y,F0(e)}function JD(n,e,t,r,s,c,f){var T=n.data,R=n.isGeo,I=T&&isNaN(T.get(T.mapDimension("value"),c)),B=T&&T.getItemLayout(c);if(R||I||B&&B.showLabel){var Y=R?t:c,q=void 0;(!T||c>=0)&&(q=s);var ie=f?{normal:{align:"center",verticalAlign:"middle"}}:null;bv(e,bh(r),{labelFetcher:q,labelDataIndex:Y,defaultText:t},ie);var ge=e.getTextContent();if(ge&&(V6(ge).ignore=ge.ignore,e.textConfig&&f)){var Oe=e.getBoundingRect().clone();e.textConfig.layoutRect=Oe,e.textConfig.position=[(f[0]-Oe.x)/Oe.width*100+"%",(f[1]-Oe.y)/Oe.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function QD(n,e,t,r,s,c){n.data?n.data.setItemGraphicEl(c,e):nu(e).eventData={componentType:"geo",componentIndex:s.componentIndex,geoIndex:s.componentIndex,name:t,region:r&&r.option||{}}}function H6(n,e,t,r,s){n.data||Lx({el:e,componentModel:s,itemName:t,itemTooltipOption:r.get("tooltip")})}function m1(n,e,t,r,s){e.highDownSilentOnTouch=!!s.get("selectedMode");var c=r.getModel("emphasis"),f=c.get("focus");return ih(e,f,c.get("blurScope"),c.get("disabled")),n.isGeo&&W1(e,s,t),f}function G6(n,e,t){var r=[],s;function c(){s=[]}function f(){s.length&&(r.push(s),s=[])}var T=e({polygonStart:c,polygonEnd:f,lineStart:c,lineEnd:f,point:function(R,I){isFinite(R)&&isFinite(I)&&s.push([R,I])},sphere:function(){}});return!t&&T.polygonStart(),At(n,function(R){T.lineStart();for(var I=0;I<R.length;I++)T.point(R[I][0],R[I][1]);T.lineEnd()}),!t&&T.polygonEnd(),r}var $6=Hj,Gj=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s,c){if(!(c&&c.type==="mapToggleSelect"&&c.from===this.uid)){var f=this.group;if(f.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&c&&c.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),c&&c.type==="geoRoam"&&c.componentType==="series"&&c.seriesId===t.id){var T=this._mapDraw;T&&f.add(T.group)}else if(t.needsDrawMap){var T=this._mapDraw||new $6(s);f.add(T.group),T.draw(t,r,s,this,c),this._mapDraw=T}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(t,r,s)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,r,s){var c=t.originalData,f=this.group;c.each(c.mapDimension("value"),function(T,R){if(!isNaN(T)){var I=c.getItemLayout(R);if(!(!I||!I.point)){var B=I.point,Y=I.offset,q=new y0({style:{fill:t.getData().getVisual("style").fill},shape:{cx:B[0]+Y*9,cy:B[1],r:3},silent:!0,z2:8+(Y?0:B1+1)});if(!Y){var ie=t.mainSeries.getData(),ge=c.getName(R),Oe=ie.indexOfName(ge),Ne=c.getItemModel(R),He=Ne.getModel("label"),st=ie.getItemGraphicEl(Oe);bv(q,bh(Ne),{labelFetcher:{getFormattedLabel:function(pt,Ut){return t.getFormattedLabel(Oe,Ut)}},defaultText:ge}),q.disableLabelAnimation=!0,He.get("position")||q.setTextConfig({position:"bottom"}),st.onHoverStateChange=function(pt){jE(q,pt)}}f.add(q)}}})},e.type="map",e}(vv),$j=Gj,Kj=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(r){if(r!=null){var s=this.getData().getName(r),c=this.coordinateSystem,f=c.getRegion(s);return f&&c.dataToPoint(f.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var r=uw(this,{coordDimensions:["value"],encodeDefaulter:$i(ET,this)}),s=Za(),c=[],f=0,T=r.count();f<T;f++){var R=r.getName(f);s.set(R,!0)}var I=Lb.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return At(I.regions,function(B){var Y=B.name;s.get(Y)||c.push(Y)}),r.appendValues([],c),r},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var r=this.getData();return r.get(r.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var r=this.getData();return r.getItemModel(r.indexOfName(t))},e.prototype.formatTooltip=function(t,r,s){for(var c=this.getData(),f=this.getRawValue(t),T=c.getName(t),R=this.seriesGroup,I=[],B=0;B<R.length;B++){var Y=R[B].originalData.indexOfName(T),q=c.mapDimension("value");isNaN(R[B].originalData.get(q,Y))||I.push(R[B].name)}return em("section",{header:I.join(", "),noHeader:!I.length,blocks:[em("nameValue",{name:T,value:f})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var r=t.icon||"roundRect",s=ad(r,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return s.setStyle(t.itemStyle),s.style.stroke="none",r.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),s},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(oh),Yj=Kj;function Xj(n,e){var t={};return At(n,function(r){r.each(r.mapDimension("value"),function(s,c){var f="ec-"+r.getName(c);t[f]=t[f]||[],isNaN(s)||t[f].push(s)})}),n[0].map(n[0].mapDimension("value"),function(r,s){for(var c="ec-"+n[0].getName(s),f=0,T=Infinity,R=-Infinity,I=t[c].length,B=0;B<I;B++)T=Math.min(T,t[c][B]),R=Math.max(R,t[c][B]),f+=t[c][B];var Y;return e==="min"?Y=T:e==="max"?Y=R:e==="average"?Y=f/I:Y=f,I===0?NaN:Y})}function yw(n){var e={};n.eachSeriesByType("map",function(t){var r=t.getHostGeoModel(),s=r?"o"+r.id:"i"+t.getMapType();(e[s]=e[s]||[]).push(t)}),At(e,function(t,r){for(var s=Xj(ar(t,function(f){return f.getData()}),t[0].get("mapValueCalculation")),c=0;c<t.length;c++)t[c].originalData=t[c].getData();for(var c=0;c<t.length;c++)t[c].seriesGroup=t,t[c].needsDrawMap=c===0&&!t[c].getHostGeoModel(),t[c].setData(s.cloneShallow()),t[c].mainSeries=t[0]})}function qD(n){var e={};n.eachSeriesByType("map",function(t){var r=t.getMapType();if(!(t.getHostGeoModel()||e[r])){var s={};At(t.seriesGroup,function(f){var T=f.coordinateSystem,R=f.originalData;f.get("showLegendSymbol")&&n.getComponent("legend")&&R.each(R.mapDimension("value"),function(I,B){var Y=R.getName(B),q=T.getRegion(Y);if(!(!q||isNaN(I))){var ie=s[Y]||0,ge=T.dataToPoint(q.getCenter());s[Y]=ie+1,R.setItemLayout(B,{point:ge,offset:ie})}})});var c=t.getData();c.each(function(f){var T=c.getName(f),R=c.getItemLayout(f)||{};R.showLabel=!s[T],c.setItemLayout(f,R)}),e[r]=!0}})}var e3=Cu,K6=function(n){ze(e,n);function e(t){var r=n.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new Bp,r._rawTransformable=new Bp,r.name=t,r}return e.prototype.setBoundingRect=function(t,r,s,c){return this._rect=new ra(t,r,s,c),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,r,s,c){this._transformTo(t,r,s,c),this._viewRect=new ra(t,r,s,c)},e.prototype._transformTo=function(t,r,s,c){var f=this.getBoundingRect(),T=this._rawTransformable;T.transform=f.calculateTransform(new ra(t,r,s,c));var R=T.parent;T.parent=null,T.decomposeTransform(),T.parent=R,this._updateTransform()},e.prototype.setCenter=function(t,r){!t||(this._center=[It(t[0],r.getWidth()),It(t[1],r.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var r=this.zoomLimit;r&&(r.max!=null&&(t=Math.min(r.max,t)),r.min!=null&&(t=Math.max(r.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),r=t.x+t.width/2,s=t.y+t.height/2;return[r,s]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,s=this.getDefaultCenter(),c=this.getCenter(),f=this.getZoom();c=Cu([],c,t),s=Cu([],s,t),r.originX=c[0],r.originY=c[1],r.x=s[0]-c[0],r.y=s[1]-c[1],r.scaleX=r.scaleY=f,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,r=this._rawTransformable;r.parent=t,t.updateTransform(),r.updateTransform(),Kf(this.transform||(this.transform=[]),r.transform||Df()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],Gd(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,r=this._roamTransformable,s=new Bp;return s.transform=r.transform,s.decomposeTransform(),{roam:{x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,r,s){var c=r?this._rawTransform:this.transform;return s=s||[],c?e3(s,t,c):Jl(s,t)},e.prototype.pointToData=function(t){var r=this.invTransform;return r?e3([],t,r):[t[0],t[1]]},e.prototype.convertToPixel=function(t,r,s){var c=mM(r);return c===this?c.dataToPoint(s):null},e.prototype.convertFromPixel=function(t,r,s){var c=mM(r);return c===this?c.pointToData(s):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(Bp);function mM(n){var e=n.seriesModel;return e?e.coordinateSystem:null}var gM=K6,Jj={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Y6=["lng","lat"],X6=function(n){ze(e,n);function e(t,r,s){var c=n.call(this,t)||this;c.dimensions=Y6,c.type="geo",c._nameCoordMap=Za(),c.map=r;var f=s.projection,T=Lb.load(r,s.nameMap,s.nameProperty),R=Lb.getGeoResource(r),I=c.resourceType=R?R.type:null,B=c.regions=T.regions,Y=Jj[R.type];c._regionsMap=T.regionsMap,c.regions=T.regions,c.projection=f;var q;if(f)for(var ie=0;ie<B.length;ie++){var ge=B[ie].getBoundingRect(f);q=q||ge.clone(),q.union(ge)}else q=T.boundingRect;return c.setBoundingRect(q.x,q.y,q.width,q.height),c.aspectScale=f?1:sn(s.aspectScale,Y.aspectScale),c._invertLongitute=f?!1:Y.invertLongitute,c}return e.prototype._transformTo=function(t,r,s,c){var f=this.getBoundingRect(),T=this._invertLongitute;f=f.clone(),T&&(f.y=-f.y-f.height);var R=this._rawTransformable;R.transform=f.calculateTransform(new ra(t,r,s,c));var I=R.parent;R.parent=null,R.decomposeTransform(),R.parent=I,T&&(R.scaleY=-R.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var r=this.regions,s=0;s<r.length;s++){var c=r[s];if(c.type==="geoJSON"&&c.contain(t))return r[s]}},e.prototype.addGeoCoord=function(t,r){this._nameCoordMap.set(t,r)},e.prototype.getGeoCoord=function(t){var r=this._regionsMap.get(t);return this._nameCoordMap.get(t)||r&&r.getCenter()},e.prototype.dataToPoint=function(t,r,s){if(ei(t)&&(t=this.getGeoCoord(t)),t){var c=this.projection;return c&&(t=c.project(t)),t&&this.projectedToPoint(t,r,s)}},e.prototype.pointToData=function(t){var r=this.projection;return r&&(t=r.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return n.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,r,s){return n.prototype.dataToPoint.call(this,t,r,s)},e.prototype.convertToPixel=function(t,r,s){var c=pR(r);return c===this?c.dataToPoint(s):null},e.prototype.convertFromPixel=function(t,r,s){var c=pR(r);return c===this?c.pointToData(s):null},e}(gM);Kn(X6,gM);function pR(n){var e=n.geoModel,t=n.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",vs).models[0]||{}).coordinateSystem:null}var J6=X6;function Q6(n,e){var t=n.get("boundingCoords");if(t!=null){var r=t[0],s=t[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(s[0])&&isFinite(s[1])){var c=this.projection;if(c){var f=r[0],T=r[1],R=s[0],I=s[1];r=[Infinity,Infinity],s=[-Infinity,-Infinity];var B=function(yn,jn,Cr,Nr){for(var Rr=Cr-yn,Er=Nr-jn,ma=0;ma<=100;ma++){var wa=ma/100,Ga=c.project([yn+Rr*wa,jn+Er*wa]);rf(r,r,Ga),Bu(s,s,Ga)}};B(f,T,R,T),B(R,T,R,I),B(R,I,f,I),B(f,I,R,T)}this.setBoundingRect(r[0],r[1],s[0]-r[0],s[1]-r[1])}}var Y=this.getBoundingRect(),q=n.get("layoutCenter"),ie=n.get("layoutSize"),ge=e.getWidth(),Oe=e.getHeight(),Ne=Y.width/Y.height*this.aspectScale,He=!1,st,pt;q&&ie&&(st=[It(q[0],ge),It(q[1],Oe)],pt=It(ie,Math.min(ge,Oe)),!isNaN(st[0])&&!isNaN(st[1])&&!isNaN(pt)&&(He=!0));var Ut;if(He)Ut={},Ne>1?(Ut.width=pt,Ut.height=pt/Ne):(Ut.height=pt,Ut.width=pt*Ne),Ut.y=st[1]-Ut.height/2,Ut.x=st[0]-Ut.width/2;else{var pn=n.getBoxLayoutParams();pn.aspect=Ne,Ut=mm(pn,{width:ge,height:Oe})}this.setViewRect(Ut.x,Ut.y,Ut.width,Ut.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function Qj(n,e){At(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var q6=function(){function n(){this.dimensions=Y6}return n.prototype.create=function(e,t){var r=[];function s(f){return{nameProperty:f.get("nameProperty"),aspectScale:f.get("aspectScale"),projection:f.get("projection")}}e.eachComponent("geo",function(f,T){var R=f.get("map"),I=new J6(R+T,R,Ea({nameMap:f.get("nameMap")},s(f)));I.zoomLimit=f.get("scaleLimit"),r.push(I),f.coordinateSystem=I,I.model=f,I.resize=Q6,I.resize(f,t)}),e.eachSeries(function(f){var T=f.get("coordinateSystem");if(T==="geo"){var R=f.get("geoIndex")||0;f.coordinateSystem=r[R]}});var c={};return e.eachSeriesByType("map",function(f){if(!f.getHostGeoModel()){var T=f.getMapType();c[T]=c[T]||[],c[T].push(f)}}),At(c,function(f,T){var R=ar(f,function(B){return B.get("nameMap")}),I=new J6(T,T,Ea({nameMap:Ri(R)},s(f[0])));I.zoomLimit=nn.apply(null,ar(f,function(B){return B.get("scaleLimit")})),r.push(I),I.resize=Q6,I.resize(f[0],t),At(f,function(B){B.coordinateSystem=I,Qj(I,B)})}),r},n.prototype.getFilledRegions=function(e,t,r,s){for(var c=(e||[]).slice(),f=Za(),T=0;T<c.length;T++)f.set(c[T].name,c[T]);var R=Lb.load(t,r,s);return At(R.regions,function(I){var B=I.name;!f.get(B)&&c.push({name:B})}),c},n}(),e5=new q6,bw=e5,t3=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,s){var c=Lb.getGeoResource(t.map);if(c&&c.type==="geoJSON"){var f=t.itemStyle=t.itemStyle||{};"color"in f||(f.color="#eee")}this.mergeDefaultAndTheme(t,s),cd(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,r=this.option;r.regions=bw.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var s={};this._optionModelMap=ta(r.regions||[],function(c,f){var T=f.name;return T&&(c.set(T,new Lv(f,t,t.ecModel)),f.selected&&(s[T]=!0)),c},Za()),r.selectedMap||(r.selectedMap=s)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Lv(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,r){var s=this.getRegionModel(t),c=r==="normal"?s.get(["label","formatter"]):s.get(["emphasis","label","formatter"]),f={name:t};if(ja(c))return f.status=r,c(f);if(ei(c))return c.replace("{a}",t!=null?t:"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var r=this.option,s=r.selectedMode;if(!!s){s!=="multiple"&&(r.selectedMap=null);var c=r.selectedMap||(r.selectedMap={});c[t]=!0}},e.prototype.unSelect=function(t){var r=this.option.selectedMap;r&&(r[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var r=this.option.selectedMap;return!!(r&&r[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(Mp),t5=t3;function vR(n,e){return n.pointToProjected?n.pointToProjected(e):n.pointToData(e)}function n3(n,e,t,r){var s=n.getZoom(),c=n.getCenter(),f=e.zoom,T=n.projectedToPoint?n.projectedToPoint(c):n.dataToPoint(c);if(e.dx!=null&&e.dy!=null&&(T[0]-=e.dx,T[1]-=e.dy,n.setCenter(vR(n,T),r)),f!=null){if(t){var R=t.min||0,I=t.max||Infinity;f=Math.max(Math.min(s*f,I),R)/s}n.scaleX*=f,n.scaleY*=f;var B=(e.originX-n.x)*(f-1),Y=(e.originY-n.y)*(f-1);n.x-=B,n.y-=Y,n.updateTransform(),n.setCenter(vR(n,T),r),n.setZoom(f*s)}return{center:n.getCenter(),zoom:n.getZoom()}}var Hv=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,r){this._api=r},e.prototype.render=function(t,r,s,c){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new $6(s));var f=this._mapDraw;f.draw(t,r,s,this,c),f.group.on("click",this._handleRegionClick,this),f.group.silent=t.get("silent"),this.group.add(f.group),this.updateSelectStatus(t,r,s)},e.prototype._handleRegionClick=function(t){var r;Ks(t.target,function(s){return(r=nu(s).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},e.prototype.updateSelectStatus=function(t,r,s){var c=this;this._mapDraw.group.traverse(function(f){var T=nu(f).eventData;if(T)return c._model.isSelected(T.name)?s.enterSelect(f):s.leaveSelect(f),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Eh),qj=Hv;function eB(n,e,t){Lb.registerMap(n,e,t)}function r3(n){n.registerCoordinateSystem("geo",bw),n.registerComponentModel(t5),n.registerComponentView(qj),n.registerImpl("registerMap",eB),n.registerImpl("getMap",function(t){return Lb.getMapForUser(t)});function e(t,r){r.update="geo:updateSelectStatus",n.registerAction(r,function(s,c){var f={},T=[];return c.eachComponent({mainType:"geo",query:s},function(R){R[t](s.name);var I=R.coordinateSystem;At(I.regions,function(Y){f[Y.name]=R.isSelected(Y.name)||!1});var B=[];At(f,function(Y,q){f[q]&&B.push(q)}),T.push({geoIndex:R.componentIndex,name:B})}),{selected:f,allSelected:T,name:s.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,r,s){var c=t.componentType||"series";r.eachComponent({mainType:c,query:t},function(f){var T=f.coordinateSystem;if(T.type==="geo"){var R=n3(T,t,f.get("scaleLimit"),s);f.setCenter&&f.setCenter(R.center),f.setZoom&&f.setZoom(R.zoom),c==="series"&&At(f.seriesGroup,function(I){I.setCenter(R.center),I.setZoom(R.zoom)})}})})}function tB(n){Ud(r3),n.registerChartView($j),n.registerSeriesModel(Yj),n.registerLayout(qD),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,yw),Hs("map",n.registerAction)}function nB(n){var e=n;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],r,s;r=t.pop();)if(s=r.children,r.isExpand&&s.length)for(var c=s.length,f=c-1;f>=0;f--){var T=s[f];T.hierNode={defaultAncestor:null,ancestor:T,prelim:0,modifier:0,change:0,shift:0,i:f,thread:null},t.push(T)}}function n5(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,s=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){Ep(n);var c=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;s?(n.hierNode.prelim=s.hierNode.prelim+e(n,s),n.hierNode.modifier=n.hierNode.prelim-c):n.hierNode.prelim=c}else s&&(n.hierNode.prelim=s.hierNode.prelim+e(n,s));n.parentNode.hierNode.defaultAncestor=iB(n,s,n.parentNode.hierNode.defaultAncestor||r[0],e)}function rB(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function hR(n){return arguments.length?n:sB}function _M(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function aB(n,e){return mm(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Ep(n){for(var e=n.children,t=e.length,r=0,s=0;--t>=0;){var c=e[t];c.hierNode.prelim+=r,c.hierNode.modifier+=r,s+=c.hierNode.change,r+=c.hierNode.shift+s}}function iB(n,e,t,r){if(e){for(var s=n,c=n,f=c.parentNode.children[0],T=e,R=s.hierNode.modifier,I=c.hierNode.modifier,B=f.hierNode.modifier,Y=T.hierNode.modifier;T=a_(T),c=a3(c),T&&c;){s=a_(s),f=a3(f),s.hierNode.ancestor=n;var q=T.hierNode.prelim+Y-c.hierNode.prelim-I+r(T,c);q>0&&(oB(r5(T,n,t),n,q),I+=q,R+=q),Y+=T.hierNode.modifier,I+=c.hierNode.modifier,R+=s.hierNode.modifier,B+=f.hierNode.modifier}T&&!a_(s)&&(s.hierNode.thread=T,s.hierNode.modifier+=Y-R),c&&!a3(f)&&(f.hierNode.thread=c,f.hierNode.modifier+=I-B,t=n)}return t}function a_(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function a3(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function r5(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function oB(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function sB(n,e){return n.parentNode===e.parentNode?1:2}var lB=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),mR=function(n){ze(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lB},e.prototype.buildPath=function(t,r){var s=r.childPoints,c=s.length,f=r.parentPoint,T=s[0],R=s[c-1];if(c===1){t.moveTo(f[0],f[1]),t.lineTo(T[0],T[1]);return}var I=r.orient,B=I==="TB"||I==="BT"?0:1,Y=1-B,q=It(r.forkPosition,1),ie=[];ie[B]=f[B],ie[Y]=f[Y]+(R[Y]-f[Y])*q,t.moveTo(f[0],f[1]),t.lineTo(ie[0],ie[1]),t.moveTo(T[0],T[1]),ie[B]=T[B],t.lineTo(ie[0],ie[1]),ie[B]=R[B],t.lineTo(ie[0],ie[1]),t.lineTo(R[0],R[1]);for(var ge=1;ge<c-1;ge++){var Oe=s[ge];t.moveTo(Oe[0],Oe[1]),ie[B]=Oe[B],t.lineTo(ie[0],ie[1])}},e}(Od),cB=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new Qi,t}return e.prototype.init=function(t,r){this._controller=new dM(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,r,s){var c=t.getData(),f=t.layoutInfo,T=this._mainGroup,R=t.get("layout");R==="radial"?(T.x=f.x+f.width/2,T.y=f.y+f.height/2):(T.x=f.x,T.y=f.y),this._updateViewCoordSys(t,s),this._updateController(t,r,s);var I=this._data;c.diff(I).add(function(B){a5(c,B)&&i5(c,B,null,T,t)}).update(function(B,Y){var q=I.getItemGraphicEl(Y);if(!a5(c,B)){q&&o5(I,Y,q,T,t);return}i5(c,B,q,T,t)}).remove(function(B){var Y=I.getItemGraphicEl(B);Y&&o5(I,B,Y,T,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&c.eachItemGraphicEl(function(B,Y){B.off("click").on("click",function(){s.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:Y})})}),this._data=c},e.prototype._updateViewCoordSys=function(t,r){var s=t.getData(),c=[];s.each(function(Y){var q=s.getItemLayout(Y);q&&!isNaN(q.x)&&!isNaN(q.y)&&c.push([+q.x,+q.y])});var f=[],T=[];Fy(c,f,T);var R=this._min,I=this._max;T[0]-f[0]==0&&(f[0]=R?R[0]:f[0]-1,T[0]=I?I[0]:T[0]+1),T[1]-f[1]==0&&(f[1]=R?R[1]:f[1]-1,T[1]=I?I[1]:T[1]+1);var B=t.coordinateSystem=new gM;B.zoomLimit=t.get("scaleLimit"),B.setBoundingRect(f[0],f[1],T[0]-f[0],T[1]-f[1]),B.setCenter(t.get("center"),r),B.setZoom(t.get("zoom")),this.group.attr({x:B.x,y:B.y,scaleX:B.scaleX,scaleY:B.scaleY}),this._min=f,this._max=T},e.prototype._updateController=function(t,r,s){var c=this,f=this._controller,T=this._controllerHost,R=this.group;f.setPointerChecker(function(I,B,Y){var q=R.getBoundingRect();return q.applyTransform(R.transform),q.contain(B,Y)&&!sR(I,s,t)}),f.enable(t.get("roam")),T.zoomLimit=t.get("scaleLimit"),T.zoom=t.coordinateSystem.getZoom(),f.off("pan").off("zoom").on("pan",function(I){zD(T,I.dx,I.dy),s.dispatchAction({seriesId:t.id,type:"treeRoam",dx:I.dx,dy:I.dy})}).on("zoom",function(I){WD(T,I.scale,I.originX,I.originY),s.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:I.scale,originX:I.originX,originY:I.originY}),c._updateNodeAndLinkScale(t),s.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var r=t.getData(),s=this._getNodeGlobalScale(t);r.eachItemGraphicEl(function(c,f){c.setSymbolScale(s)})},e.prototype._getNodeGlobalScale=function(t){var r=t.coordinateSystem;if(r.type!=="view")return 1;var s=this._nodeScaleRatio,c=r.scaleX||1,f=r.getZoom(),T=(f-1)*s+1;return T/c},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(vv);function a5(n,e){var t=n.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function i5(n,e,t,r,s){var c=!t,f=n.tree.getNodeByDataIndex(e),T=f.getModel(),R=f.getVisual("style").fill,I=f.isExpand===!1&&f.children.length!==0?R:"#fff",B=n.tree.root,Y=f.parentNode===B?f:f.parentNode||f,q=n.getItemGraphicEl(Y.dataIndex),ie=Y.getLayout(),ge=q?{x:q.__oldX,y:q.__oldY,rawX:q.__radialOldRawX,rawY:q.__radialOldRawY}:ie,Oe=f.getLayout();c?(t=new jS(n,e,null,{symbolInnerColor:I,useNameLabel:!0}),t.x=ge.x,t.y=ge.y):t.updateData(n,e,null,{symbolInnerColor:I,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=Oe.rawX,t.__radialRawY=Oe.rawY,r.add(t),n.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,vp(t,{x:Oe.x,y:Oe.y},s);var Ne=t.getSymbolPath();if(s.get("layout")==="radial"){var He=B.children[0],st=He.getLayout(),pt=He.children.length,Ut=void 0,pn=void 0;if(Oe.x===st.x&&f.isExpand===!0&&He.children.length){var yn={x:(He.children[0].getLayout().x+He.children[pt-1].getLayout().x)/2,y:(He.children[0].getLayout().y+He.children[pt-1].getLayout().y)/2};Ut=Math.atan2(yn.y-st.y,yn.x-st.x),Ut<0&&(Ut=Math.PI*2+Ut),pn=yn.x<st.x,pn&&(Ut=Ut-Math.PI)}else Ut=Math.atan2(Oe.y-st.y,Oe.x-st.x),Ut<0&&(Ut=Math.PI*2+Ut),f.children.length===0||f.children.length!==0&&f.isExpand===!1?(pn=Oe.x<st.x,pn&&(Ut=Ut-Math.PI)):(pn=Oe.x>st.x,pn||(Ut=Ut-Math.PI));var jn=pn?"left":"right",Cr=T.getModel("label"),Nr=Cr.get("rotate"),Rr=Nr*(Math.PI/180),Er=Ne.getTextContent();Er&&(Ne.setTextConfig({position:Cr.get("position")||jn,rotation:Nr==null?-Ut:Rr,origin:"center"}),Er.setStyle("verticalAlign","middle"))}var ma=T.get(["emphasis","focus"]),wa=ma==="relative"?ao(f.getAncestorsIndices(),f.getDescendantIndices()):ma==="ancestor"?f.getAncestorsIndices():ma==="descendant"?f.getDescendantIndices():null;wa&&(nu(t).focus=wa),uB(s,f,B,t,ge,ie,Oe,r),t.__edge&&(t.onHoverStateChange=function(Ga){if(Ga!=="blur"){var Ei=f.parentNode&&n.getItemGraphicEl(f.parentNode.dataIndex);Ei&&Ei.hoverState===ax||jE(t.__edge,Ga)}})}function uB(n,e,t,r,s,c,f,T){var R=e.getModel(),I=n.get("edgeShape"),B=n.get("layout"),Y=n.getOrient(),q=n.get(["lineStyle","curveness"]),ie=n.get("edgeForkPosition"),ge=R.getModel("lineStyle").getLineStyle(),Oe=r.__edge;if(I==="curve")e.parentNode&&e.parentNode!==t&&(Oe||(Oe=r.__edge=new C2({shape:o3(B,Y,q,s,s)})),vp(Oe,{shape:o3(B,Y,q,c,f)},n));else if(I==="polyline"&&B==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var Ne=e.children,He=[],st=0;st<Ne.length;st++){var pt=Ne[st].getLayout();He.push([pt.x,pt.y])}Oe||(Oe=r.__edge=new mR({shape:{parentPoint:[f.x,f.y],childPoints:[[f.x,f.y]],orient:Y,forkPosition:ie}})),vp(Oe,{shape:{parentPoint:[f.x,f.y],childPoints:He}},n)}Oe&&!(I==="polyline"&&!e.isExpand)&&(Oe.useStyle(Pi({strokeNoScale:!0,fill:null},ge)),Om(Oe,R,"lineStyle"),F0(Oe),T.add(Oe))}function gR(n,e,t,r,s){var c=e.tree.root,f=i3(c,n),T=f.source,R=f.sourceLayout,I=e.getItemGraphicEl(n.dataIndex);if(!!I){var B=e.getItemGraphicEl(T.dataIndex),Y=B.__edge,q=I.__edge||(T.isExpand===!1||T.children.length===1?Y:void 0),ie=r.get("edgeShape"),ge=r.get("layout"),Oe=r.get("orient"),Ne=r.get(["lineStyle","curveness"]);q&&(ie==="curve"?p0(q,{shape:o3(ge,Oe,Ne,R,R),style:{opacity:0}},r,{cb:function(){t.remove(q)},removeOpt:s}):ie==="polyline"&&r.get("layout")==="orthogonal"&&p0(q,{shape:{parentPoint:[R.x,R.y],childPoints:[[R.x,R.y]]},style:{opacity:0}},r,{cb:function(){t.remove(q)},removeOpt:s}))}}function i3(n,e){for(var t=e.parentNode===n?e:e.parentNode||e,r;r=t.getLayout(),r==null;)t=t.parentNode===n?t:t.parentNode||t;return{source:t,sourceLayout:r}}function o5(n,e,t,r,s){var c=n.tree.getNodeByDataIndex(e),f=n.tree.root,T=i3(f,c).sourceLayout,R={duration:s.get("animationDurationUpdate"),easing:s.get("animationEasingUpdate")};p0(t,{x:T.x+1,y:T.y+1},s,{cb:function(){r.remove(t),n.setItemGraphicEl(e,null)},removeOpt:R}),t.fadeOut(null,n.hostModel,{fadeLabel:!0,animation:R}),c.children.forEach(function(I){gR(I,n,r,s,R)}),gR(c,n,r,s,R)}function o3(n,e,t,r,s){var c,f,T,R,I,B,Y,q;if(n==="radial"){I=r.rawX,Y=r.rawY,B=s.rawX,q=s.rawY;var ie=_M(I,Y),ge=_M(I,Y+(q-Y)*t),Oe=_M(B,q+(Y-q)*t),Ne=_M(B,q);return{x1:ie.x||0,y1:ie.y||0,x2:Ne.x||0,y2:Ne.y||0,cpx1:ge.x||0,cpy1:ge.y||0,cpx2:Oe.x||0,cpy2:Oe.y||0}}else I=r.x,Y=r.y,B=s.x,q=s.y,(e==="LR"||e==="RL")&&(c=I+(B-I)*t,f=Y,T=B+(I-B)*t,R=q),(e==="TB"||e==="BT")&&(c=I,f=Y+(q-Y)*t,T=B,R=q+(Y-q)*t);return{x1:I,y1:Y,x2:B,y2:q,cpx1:c,cpy1:f,cpx2:T,cpy2:R}}var fB=cB,Q0=Bi();function s5(n){var e=n.mainData,t=n.datas;t||(t={main:e},n.datasAttr={main:"data"}),n.datas=n.mainData=null,c5(e,t,n),At(t,function(r){At(e.TRANSFERABLE_METHODS,function(s){r.wrapMethod(s,$i(dB,n))})}),e.wrapMethod("cloneShallow",$i(vB,n)),At(e.CHANGABLE_METHODS,function(r){e.wrapMethod(r,$i(pB,n))}),Ln(t[e.dataType]===e)}function dB(n,e){if(l5(this)){var t=Ea({},Q0(this).datas);t[this.dataType]=e,c5(e,t,n)}else s3(e,this.dataType,Q0(this).mainData,n);return e}function pB(n,e){return n.struct&&n.struct.update(),e}function vB(n,e){return At(Q0(e).datas,function(t,r){t!==e&&s3(t.cloneShallow(),r,e,n)}),e}function g1(n){var e=Q0(this).mainData;return n==null||e==null?e:Q0(e).datas[n]}function hB(){var n=Q0(this).mainData;return n==null?[{data:n}]:ar(Ua(Q0(n).datas),function(e){return{type:e,data:Q0(n).datas[e]}})}function l5(n){return Q0(n).mainData===n}function c5(n,e,t){Q0(n).datas={},At(e,function(r,s){s3(r,s,n,t)})}function s3(n,e,t,r){Q0(t).datas[e]=n,Q0(n).mainData=t,n.dataType=e,r.struct&&(n[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=n),n.getLinkedData=g1,n.getLinkedDataAll=hB}var u5=s5,l3=function(){function n(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return n.prototype.isRemoved=function(){return this.dataIndex<0},n.prototype.eachNode=function(e,t,r){ja(e)&&(r=t,t=e,e=null),e=e||{},ei(e)&&(e={order:e});var s=e.order||"preorder",c=this[e.attr||"children"],f;s==="preorder"&&(f=t.call(r,this));for(var T=0;!f&&T<c.length;T++)c[T].eachNode(e,t,r);s==="postorder"&&t.call(r,this)},n.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var r=0;r<this.children.length;r++){var s=this.children[r];s.updateDepthAndHeight(e+1),s.height>t&&(t=s.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,s=r.length;t<s;t++){var c=r[t].getNodeById(e);if(c)return c}},n.prototype.contains=function(e){if(e===this)return!0;for(var t=0,r=this.children,s=r.length;t<s;t++){var c=r[t].contains(e);if(c)return c}},n.prototype.getAncestors=function(e){for(var t=[],r=e?this:this.parentNode;r;)t.push(r),r=r.parentNode;return t.reverse(),t},n.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},n.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},n.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},n.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},n.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},n.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},n}(),_R=function(){function n(e){this.type="tree",this._nodes=[],this.hostModel=e}return n.prototype.eachNode=function(e,t,r){this.root.eachNode(e,t,r)},n.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},n.prototype.getNodeById=function(e){return this.root.getNodeById(e)},n.prototype.update=function(){for(var e=this.data,t=this._nodes,r=0,s=t.length;r<s;r++)t[r].dataIndex=-1;for(var r=0,s=e.count();r<s;r++)t[e.getRawIndex(r)].dataIndex=r},n.prototype.clearLayouts=function(){this.data.clearItemLayouts()},n.createTree=function(e,t,r){var s=new n(t),c=[],f=1;T(e);function T(B,Y){var q=B.value;f=Math.max(f,La(q)?q.length:1),c.push(B);var ie=new l3(Ta(B.name,""),s);Y?f5(ie,Y):s.root=ie,s._nodes.push(ie);var ge=B.children;if(ge)for(var Oe=0;Oe<ge.length;Oe++)T(ge[Oe],ie)}s.root.updateDepthAndHeight(0);var R=aw(c,{coordDimensions:["value"],dimensionsCount:f}).dimensions,I=new M_(R,t);return I.initData(c),r&&r(I),u5({mainData:I,struct:s,structAttr:"tree"}),s.update(),s},n}();function f5(n,e){var t=e.children;n.parentNode!==e&&(t.push(n),n.parentNode=e)}var c3=_R;function yM(n,e,t){if(n&&Ui(e,n.type)>=0){var r=t.getData().tree.root,s=n.targetNode;if(ei(s)&&(s=r.getNodeById(s)),s&&r.contains(s))return{node:s};var c=n.targetNodeId;if(c!=null&&(s=r.getNodeById(c)))return{node:s}}}function d5(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function yR(n,e){var t=d5(n);return Ui(t,e)>=0}function bR(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var mB=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},s=t.leaves||{},c=new Lv(s,this,this.ecModel),f=c3.createTree(r,this,T);function T(Y){Y.wrapMethod("getItemModel",function(q,ie){var ge=f.getNodeByDataIndex(ie);return ge&&ge.children.length&&ge.isExpand||(q.parentModel=c),q})}var R=0;f.eachNode("preorder",function(Y){Y.depth>R&&(R=Y.depth)});var I=t.expandAndCollapse,B=I&&t.initialTreeDepth>=0?t.initialTreeDepth:R;return f.root.eachNode("preorder",function(Y){var q=Y.hostTree.data.getRawDataItem(Y.dataIndex);Y.isExpand=q&&q.collapsed!=null?!q.collapsed:Y.depth<=B}),f.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,s){for(var c=this.getData().tree,f=c.root.children[0],T=c.getNodeByDataIndex(t),R=T.getValue(),I=T.name;T&&T!==f;)I=T.parentNode.name+"."+I,T=T.parentNode;return em("nameValue",{name:I,value:R,noValue:isNaN(R)||R==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),s=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=bR(s,this),r.collapsed=!s.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(oh),gB=mB;function _B(n,e,t){for(var r=[n],s=[],c;c=r.pop();)if(s.push(c),c.isExpand){var f=c.children;if(f.length)for(var T=0;T<f.length;T++)r.push(f[T])}for(;c=s.pop();)e(c,t)}function bM(n,e){for(var t=[n],r;r=t.pop();)if(e(r),r.isExpand){var s=r.children;if(s.length)for(var c=s.length-1;c>=0;c--)t.push(s[c])}}function yB(n,e){n.eachSeriesByType("tree",function(t){p5(t,e)})}function p5(n,e){var t=aB(n,e);n.layoutInfo=t;var r=n.get("layout"),s=0,c=0,f=null;r==="radial"?(s=2*Math.PI,c=Math.min(t.height,t.width)/2,f=hR(function(pt,Ut){return(pt.parentNode===Ut.parentNode?1:2)/pt.depth})):(s=t.width,c=t.height,f=hR());var T=n.getData().tree.root,R=T.children[0];if(R){nB(T),_B(R,n5,f),T.hierNode.modifier=-R.hierNode.prelim,bM(R,rB);var I=R,B=R,Y=R;bM(R,function(pt){var Ut=pt.getLayout().x;Ut<I.getLayout().x&&(I=pt),Ut>B.getLayout().x&&(B=pt),pt.depth>Y.depth&&(Y=pt)});var q=I===B?1:f(I,B)/2,ie=q-I.getLayout().x,ge=0,Oe=0,Ne=0,He=0;if(r==="radial")ge=s/(B.getLayout().x+q+ie),Oe=c/(Y.depth-1||1),bM(R,function(pt){Ne=(pt.getLayout().x+ie)*ge,He=(pt.depth-1)*Oe;var Ut=_M(Ne,He);pt.setLayout({x:Ut.x,y:Ut.y,rawX:Ne,rawY:He},!0)});else{var st=n.getOrient();st==="RL"||st==="LR"?(Oe=c/(B.getLayout().x+q+ie),ge=s/(Y.depth-1||1),bM(R,function(pt){He=(pt.getLayout().x+ie)*Oe,Ne=st==="LR"?(pt.depth-1)*ge:s-(pt.depth-1)*ge,pt.setLayout({x:Ne,y:He},!0)})):(st==="TB"||st==="BT")&&(ge=s/(B.getLayout().x+q+ie),Oe=c/(Y.depth-1||1),bM(R,function(pt){Ne=(pt.getLayout().x+ie)*ge,He=st==="TB"?(pt.depth-1)*Oe:c-(pt.depth-1)*Oe,pt.setLayout({x:Ne,y:He},!0)}))}}}function v5(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(s){var c=s.getModel(),f=c.getModel("itemStyle").getItemStyle(),T=t.ensureUniqueItemVisual(s.dataIndex,"style");Ea(T,f)})})}function _1(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var s=e.dataIndex,c=r.getData().tree,f=c.getNodeByDataIndex(s);f.isExpand=!f.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(s){var c=s.coordinateSystem,f=n3(c,e,void 0,r);s.setCenter&&s.setCenter(f.center),s.setZoom&&s.setZoom(f.zoom)})})}function eC(n){n.registerChartView(fB),n.registerSeriesModel(gB),n.registerLayout(yB),n.registerVisual(v5),_1(n)}var Fb=["treemapZoomToNode","treemapRender","treemapMove"];function xM(n){for(var e=0;e<Fb.length;e++)n.registerAction({type:Fb[e],update:"updateView"},Bo);n.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"treemap",query:t},s);function s(c,f){var T=["treemapZoomToNode","treemapRootToNode"],R=yM(t,T,c);if(R){var I=c.getViewRoot();I&&(t.direction=yR(I,R.node)?"rollUp":"drillDown"),c.resetViewRoot(R.node)}}})}function xw(n){var e=n.getData(),t=e.tree,r={};t.eachNode(function(s){for(var c=s;c&&c.depth>1;)c=c.parentNode;var f=TT(n.ecModel,c.name||c.dataIndex+"",r);s.setVisual("decal",f)})}var tH=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var s={name:t.name,children:t.data};bB(s);var c=t.levels||[],f=this.designatedVisualItemStyle={},T=new Lv({itemStyle:f},this,r);c=t.levels=nH(c,r);var R=ar(c||[],function(Y){return new Lv(Y,T,r)},this),I=c3.createTree(s,this,B);function B(Y){Y.wrapMethod("getItemModel",function(q,ie){var ge=I.getNodeByDataIndex(ie),Oe=ge?R[ge.depth]:null;return q.parentModel=Oe||T,q})}return I.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,s){var c=this.getData(),f=this.getRawValue(t),T=c.getName(t);return em("nameValue",{name:T,value:f})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),s=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=bR(s,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},Ea(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=Za(),this._idIndexMapCount=0);var s=r.get(t);return s==null&&r.set(t,s=this._idIndexMapCount++),s},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){xw(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(oh);function bB(n){var e=0;At(n.children,function(r){bB(r);var s=r.value;La(s)&&(s=s[0]),e+=s});var t=n.value;La(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),La(n.value)?n.value[0]=t:n.value=t}function nH(n,e){var t=Bf(e.get("color")),r=Bf(e.get(["aria","decal","decals"]));if(!!t){n=n||[];var s,c;At(n,function(T){var R=new Lv(T),I=R.get("color"),B=R.get("decal");(R.get(["itemStyle","color"])||I&&I!=="none")&&(s=!0),(R.get(["itemStyle","decal"])||B&&B!=="none")&&(c=!0)});var f=n[0]||(n[0]={});return s||(f.color=t.slice()),!c&&r&&(f.decal=r.slice()),n}}var xB=tH,EB=8,xR=8,u3=5,SB=function(){function n(e){this.group=new Qi,e.add(this.group)}return n.prototype.render=function(e,t,r,s){var c=e.getModel("breadcrumb"),f=this.group;if(f.removeAll(),!(!c.get("show")||!r)){var T=c.getModel("itemStyle"),R=c.getModel("emphasis"),I=T.getModel("textStyle"),B=R.getModel(["itemStyle","textStyle"]),Y={pos:{left:c.get("left"),right:c.get("right"),top:c.get("top"),bottom:c.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:c.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,Y,I),this._renderContent(e,Y,T,R,I,B,s),XC(f,Y.pos,Y.box)}},n.prototype._prepare=function(e,t,r){for(var s=e;s;s=s.parentNode){var c=Ta(s.getModel().get("name"),""),f=r.getTextRect(c),T=Math.max(f.width+EB*2,t.emptyItemWidth);t.totalWidth+=T+xR,t.renderList.push({node:s,text:c,width:T})}},n.prototype._renderContent=function(e,t,r,s,c,f,T){for(var R=0,I=t.emptyItemWidth,B=e.get(["breadcrumb","height"]),Y=ak(t.pos,t.box),q=t.totalWidth,ie=t.renderList,ge=s.getModel("itemStyle").getItemStyle(),Oe=ie.length-1;Oe>=0;Oe--){var Ne=ie[Oe],He=Ne.node,st=Ne.width,pt=Ne.text;q>Y.width&&(q-=st-I,st=I,pt=null);var Ut=new tg({shape:{points:jm(R,0,st,B,Oe===ie.length-1,Oe===0)},style:Pi(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new Tp({style:Cv(c,{text:pt})}),textConfig:{position:"inside"},z2:B1*1e4,onclick:$i(T,He)});Ut.disableLabelAnimation=!0,Ut.getTextContent().ensureState("emphasis").style=Cv(f,{text:pt}),Ut.ensureState("emphasis").style=ge,ih(Ut,s.get("focus"),s.get("blurScope"),s.get("disabled")),this.group.add(Ut),EM(Ut,e,He),R+=st+xR}},n.prototype.remove=function(){this.group.removeAll()},n}();function jm(n,e,t,r,s,c){var f=[[s?n:n-u3,e],[n+t,e],[n+t,e+r],[s?n:n-u3,e+r]];return!c&&f.splice(2,0,[n+t+u3,e+r/2]),!s&&f.push([n,e+r/2]),f}function EM(n,e,t){nu(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&bR(t,e)}}var CB=SB,wB=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,s,c){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:s,easing:c}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},s=0,c=this._storage.length;s<c;s++){var f=this._storage[s];f.el.animateTo(f.target,{duration:f.duration,delay:f.delay,easing:f.easing,setToFinal:!0,done:r,aborted:r})}return this},n}();function TB(){return new wB}var f3=Qi,h5=jd,d3=3,p3="label",m5="upperLabel",v3=B1*10,rE=B1*2,y1=B1*3,tC=Oa([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),h3=function(n){var e=tC(n);return e.stroke=e.fill=e.lineWidth=null,e},aE=Bi(),AB=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=SM(),t}return e.prototype.render=function(t,r,s,c){var f=r.findComponents({mainType:"series",subType:"treemap",query:c});if(!(Ui(f,t)<0)){this.seriesModel=t,this.api=s,this.ecModel=r;var T=["treemapZoomToNode","treemapRootToNode"],R=yM(c,T,t),I=c&&c.type,B=t.layoutInfo,Y=!this._oldTree,q=this._storage,ie=I==="treemapRootToNode"&&R&&q?{rootNodeGroup:q.nodeGroup[R.node.getRawIndex()],direction:c.direction}:null,ge=this._giveContainerGroup(B),Oe=t.get("animation"),Ne=this._doRender(ge,t,ie);Oe&&!Y&&(!I||I==="treemapZoomToNode"||I==="treemapRootToNode")?this._doAnimation(ge,Ne,t,ie):Ne.renderFinally(),this._resetController(s),this._renderBreadcrumb(t,s,R)}},e.prototype._giveContainerGroup=function(t){var r=this._containerGroup;return r||(r=this._containerGroup=new f3,this._initEvents(r),this.group.add(r)),r.x=t.x,r.y=t.y,r},e.prototype._doRender=function(t,r,s){var c=r.getData().tree,f=this._oldTree,T=SM(),R=SM(),I=this._storage,B=[];function Y(Ne,He,st,pt){return MB(r,R,I,s,T,B,Ne,He,st,pt)}ie(c.root?[c.root]:[],f&&f.root?[f.root]:[],t,c===f||!f,0);var q=ge(I);return this._oldTree=c,this._storage=R,{lastsForAnimation:T,willDeleteEls:q,renderFinally:Oe};function ie(Ne,He,st,pt,Ut){pt?(He=Ne,At(Ne,function(jn,Cr){!jn.isRemoved()&&yn(Cr,Cr)})):new Sb(He,Ne,pn,pn).add(yn).update(yn).remove($i(yn,null)).execute();function pn(jn){return jn.getId()}function yn(jn,Cr){var Nr=jn!=null?Ne[jn]:null,Rr=Cr!=null?He[Cr]:null,Er=Y(Nr,Rr,st,Ut);Er&&ie(Nr&&Nr.viewChildren||[],Rr&&Rr.viewChildren||[],Er,pt,Ut+1)}}function ge(Ne){var He=SM();return Ne&&At(Ne,function(st,pt){var Ut=He[pt];At(st,function(pn){pn&&(Ut.push(pn),aE(pn).willDelete=!0)})}),He}function Oe(){At(q,function(Ne){At(Ne,function(He){He.parent&&He.parent.remove(He)})}),At(B,function(Ne){Ne.invisible=!0,Ne.dirty()})}},e.prototype._doAnimation=function(t,r,s,c){var f=s.get("animationDurationUpdate"),T=s.get("animationEasing"),R=(ja(f)?0:f)||0,I=(ja(T)?null:T)||"cubicOut",B=TB();At(r.willDeleteEls,function(Y,q){At(Y,function(ie,ge){if(!ie.invisible){var Oe=ie.parent,Ne,He=aE(Oe);if(c&&c.direction==="drillDown")Ne=Oe===c.rootNodeGroup?{shape:{x:0,y:0,width:He.nodeWidth,height:He.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var st=0,pt=0;He.willDelete||(st=He.nodeWidth/2,pt=He.nodeHeight/2),Ne=q==="nodeGroup"?{x:st,y:pt,style:{opacity:0}}:{shape:{x:st,y:pt,width:0,height:0},style:{opacity:0}}}Ne&&B.add(ie,Ne,R,0,I)}})}),At(this._storage,function(Y,q){At(Y,function(ie,ge){var Oe=r.lastsForAnimation[q][ge],Ne={};!Oe||(ie instanceof Qi?Oe.oldX!=null&&(Ne.x=ie.x,Ne.y=ie.y,ie.x=Oe.oldX,ie.y=Oe.oldY):(Oe.oldShape&&(Ne.shape=Ea({},ie.shape),ie.setShape(Oe.oldShape)),Oe.fadein?(ie.setStyle("opacity",0),Ne.style={opacity:1}):ie.style.opacity!==1&&(Ne.style={opacity:1})),B.add(ie,Ne,R,0,I))})},this),this._state="animating",B.finished(Xa(function(){this._state="ready",r.renderFinally()},this)).start()},e.prototype._resetController=function(t){var r=this._controller;r||(r=this._controller=new dM(t.getZr()),r.enable(this.seriesModel.get("roam")),r.on("pan",Xa(this._onPan,this)),r.on("zoom",Xa(this._onZoom,this)));var s=new ra(0,0,t.getWidth(),t.getHeight());r.setPointerChecker(function(c,f,T){return s.contain(f,T)})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>d3||Math.abs(t.dy)>d3)){var r=this.seriesModel.getData().tree.root;if(!r)return;var s=r.getLayout();if(!s)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x+t.dx,y:s.y+t.dy,width:s.width,height:s.height}})}},e.prototype._onZoom=function(t){var r=t.originX,s=t.originY;if(this._state!=="animating"){var c=this.seriesModel.getData().tree.root;if(!c)return;var f=c.getLayout();if(!f)return;var T=new ra(f.x,f.y,f.width,f.height),R=this.seriesModel.layoutInfo;r-=R.x,s-=R.y;var I=Df();Sc(I,I,[-r,-s]),Du(I,I,[t.scale,t.scale]),Sc(I,I,[r,s]),T.applyTransform(I),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:T.x,y:T.y,width:T.width,height:T.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(s){if(r._state==="ready"){var c=r.seriesModel.get("nodeClick",!0);if(!!c){var f=r.findTarget(s.offsetX,s.offsetY);if(!!f){var T=f.node;if(T.getLayout().isLeafRoot)r._rootToNode(f);else if(c==="zoomToNode")r._zoomToNode(f);else if(c==="link"){var R=T.hostTree.data.getItemModel(T.dataIndex),I=R.get("link",!0),B=R.get("target",!0)||"blank";I&&KC(I,B)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,s){var c=this;s||(s=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),s||(s={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new CB(this.group))).render(t,r,s.node,function(f){c._state!=="animating"&&(yR(t.getViewRoot(),f)?c._rootToNode({node:f}):c._zoomToNode({node:f}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=SM(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var s,c=this.seriesModel.getViewRoot();return c.eachNode({attr:"viewChildren",order:"preorder"},function(f){var T=this._storage.background[f.getRawIndex()];if(T){var R=T.transformCoordToLocal(t,r),I=T.shape;if(I.x<=R[0]&&R[0]<=I.x+I.width&&I.y<=R[1]&&R[1]<=I.y+I.height)s={node:f,offsetX:R[0],offsetY:R[1]};else return!1}},this),s},e.type="treemap",e}(vv);function SM(){return{nodeGroup:[],background:[],content:[]}}function MB(n,e,t,r,s,c,f,T,R,I){if(!f)return;var B=f.getLayout(),Y=n.getData(),q=f.getModel();if(Y.setItemGraphicEl(f.dataIndex,null),!B||!B.isInView)return;var ie=B.width,ge=B.height,Oe=B.borderWidth,Ne=B.invisible,He=f.getRawIndex(),st=T&&T.getRawIndex(),pt=f.viewChildren,Ut=B.upperHeight,pn=pt&&pt.length,yn=q.getModel("itemStyle"),jn=q.getModel(["emphasis","itemStyle"]),Cr=q.getModel(["blur","itemStyle"]),Nr=q.getModel(["select","itemStyle"]),Rr=yn.get("borderRadius")||0,Er=kc("nodeGroup",f3);if(!Er)return;if(R.add(Er),Er.x=B.x||0,Er.y=B.y||0,Er.markRedraw(),aE(Er).nodeWidth=ie,aE(Er).nodeHeight=ge,B.isAboveViewRoot)return Er;var ma=kc("background",h5,I,rE);ma&&xs(Er,ma,pn&&B.upperLabelHeight);var wa=q.getModel("emphasis"),Ga=wa.get("focus"),Ei=wa.get("blurScope"),Vi=wa.get("disabled"),ns=Ga==="ancestor"?f.getAncestorsIndices():Ga==="descendant"?f.getDescendantIndices():Ga;if(pn)f0(Er)&&uy(Er,!1),ma&&(uy(ma,!Vi),Y.setItemGraphicEl(f.dataIndex,ma),z1(ma,ns,Ei));else{var zo=kc("content",h5,I,y1);zo&&pl(Er,zo),ma.disableMorphing=!0,ma&&f0(ma)&&uy(ma,!1),uy(Er,!Vi),Y.setItemGraphicEl(f.dataIndex,Er),z1(Er,ns,Ei)}return Er;function xs(su,ic,Uc){var bu=nu(ic);if(bu.dataIndex=f.dataIndex,bu.seriesIndex=n.seriesIndex,ic.setShape({x:0,y:0,width:ie,height:ge,r:Rr}),Ne)Rl(ic);else{ic.invisible=!1;var tc=f.getVisual("style"),nf=tc.stroke,gd=h3(yn);gd.fill=nf;var xd=tC(jn);xd.fill=jn.get("borderColor");var lv=tC(Cr);lv.fill=Cr.get("borderColor");var _p=tC(Nr);if(_p.fill=Nr.get("borderColor"),Uc){var $v=ie-2*Oe;zl(ic,nf,tc.opacity,{x:Oe,y:0,width:$v,height:Ut})}else ic.removeTextContent();ic.setStyle(gd),ic.ensureState("emphasis").style=xd,ic.ensureState("blur").style=lv,ic.ensureState("select").style=_p,F0(ic)}su.add(ic)}function pl(su,ic){var Uc=nu(ic);Uc.dataIndex=f.dataIndex,Uc.seriesIndex=n.seriesIndex;var bu=Math.max(ie-2*Oe,0),tc=Math.max(ge-2*Oe,0);if(ic.culling=!0,ic.setShape({x:Oe,y:Oe,width:bu,height:tc,r:Rr}),Ne)Rl(ic);else{ic.invisible=!1;var nf=f.getVisual("style"),gd=nf.fill,xd=h3(yn);xd.fill=gd,xd.decal=nf.decal;var lv=tC(jn),_p=tC(Cr),$v=tC(Nr);zl(ic,gd,nf.opacity,null),ic.setStyle(xd),ic.ensureState("emphasis").style=lv,ic.ensureState("blur").style=_p,ic.ensureState("select").style=$v,F0(ic)}su.add(ic)}function Rl(su){!su.invisible&&c.push(su)}function zl(su,ic,Uc,bu){var tc=q.getModel(bu?m5:p3),nf=Ta(q.get("name"),null),gd=tc.getShallow("show");bv(su,bh(q,bu?m5:p3),{defaultText:gd?nf:null,inheritColor:ic,defaultOpacity:Uc,labelFetcher:n,labelDataIndex:f.dataIndex});var xd=su.getTextContent();if(!!xd){var lv=xd.style,_p=Gr(lv.padding||0);bu&&(su.setTextConfig({layoutRect:bu}),xd.disableLabelLayout=!0),xd.beforeUpdate=function(){var _v=Math.max((bu?bu.width:su.shape.width)-_p[1]-_p[3],0),yp=Math.max((bu?bu.height:su.shape.height)-_p[0]-_p[2],0);(lv.width!==_v||lv.height!==yp)&&xd.setStyle({width:_v,height:yp})},lv.truncateMinChar=2,lv.lineOverflow="truncate",Yc(lv,bu,B);var $v=xd.getState("emphasis");Yc($v?$v.style:null,bu,B)}}function Yc(su,ic,Uc){var bu=su?su.text:null;if(!ic&&Uc.isLeafRoot&&bu!=null){var tc=n.get("drillDownIcon",!0);su.text=tc?tc+" "+bu:bu}}function kc(su,ic,Uc,bu){var tc=st!=null&&t[su][st],nf=s[su];return tc?(t[su][st]=null,tf(nf,tc)):Ne||(tc=new ic,tc instanceof Qm&&(tc.z2=kB(Uc,bu)),wf(nf,tc)),e[su][He]=tc}function tf(su,ic){var Uc=su[He]={};ic instanceof f3?(Uc.oldX=ic.x,Uc.oldY=ic.y):Uc.oldShape=Ea({},ic.shape)}function wf(su,ic){var Uc=su[He]={},bu=f.parentNode,tc=ic instanceof Qi;if(bu&&(!r||r.direction==="drillDown")){var nf=0,gd=0,xd=s.background[bu.getRawIndex()];!r&&xd&&xd.oldShape&&(nf=xd.oldShape.width,gd=xd.oldShape.height),tc?(Uc.oldX=0,Uc.oldY=gd):Uc.oldShape={x:nf,y:gd,width:0,height:0}}Uc.fadein=!tc}}function kB(n,e){return n*v3+e}var PB=AB,Ew=At,RB=to,T0=-1,m3=function(){function n(e){var t=e.mappingMethod,r=e.type,s=this.option=Kr(e);this.type=r,this.mappingMethod=t,this._normalizeData=IB[t];var c=n.visualHandlers[r];this.applyVisual=c.applyVisual,this.getColorMapper=c.getColorMapper,this._normalizedToVisual=c._normalizedToVisual[t],t==="piecewise"?(A0(s),g3(s)):t==="category"?s.categories?_3(s):A0(s,!0):(Ln(t!=="linear"||s.dataExtent),A0(s))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return Xa(this._normalizeData,this)},n.listVisualTypes=function(){return Ua(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){to(e)?At(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var s,c=La(e)?[]:to(e)?{}:(s=!0,null);return n.eachVisual(e,function(f,T){var R=t.call(r,f,T);s?c=R:c[T]=R}),c},n.retrieveVisuals=function(e){var t={},r;return e&&Ew(n.visualHandlers,function(s,c){e.hasOwnProperty(c)&&(t[c]=e[c],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(La(e))e=e.slice();else if(RB(e)){var t=[];Ew(e,function(r,s){t.push(s)}),e=t}else return[];return e.sort(function(r,s){return s==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var s,c=Infinity,f=0,T=t.length;f<T;f++){var R=t[f].value;if(R!=null){if(R===e||ei(R)&&R===e+"")return f;r&&q(R,f)}}for(var f=0,T=t.length;f<T;f++){var I=t[f],B=I.interval,Y=I.close;if(B){if(B[0]===-Infinity){if(ER(Y[1],e,B[1]))return f}else if(B[1]===Infinity){if(ER(Y[0],B[0],e))return f}else if(ER(Y[0],B[0],e)&&ER(Y[1],e,B[1]))return f;r&&q(B[0],f),r&&q(B[1],f)}}if(r)return e===Infinity?t.length-1:e===-Infinity?0:s;function q(ie,ge){var Oe=Math.abs(ie-e);Oe<c&&(c=Oe,s=ge)}},n.visualHandlers={color:{applyVisual:CM("color"),getColorMapper:function(){var e=this.option;return Xa(e.mappingMethod==="category"?function(t,r){return!r&&(t=this._normalizeData(t)),wM.call(this,t)}:function(t,r,s){var c=!!s;return!r&&(t=this._normalizeData(t)),s=np(t,e.parsedVisual,s),c?s:un(s,"rgba")},this)},_normalizedToVisual:{linear:function(e){return un(np(e,this.option.parsedVisual),"rgba")},category:wM,piecewise:function(e,t){var r=y5.call(this,t);return r==null&&(r=un(np(e,this.option.parsedVisual),"rgba")),r},fixed:Sw}},colorHue:nC(function(e,t){return dd(e,t)}),colorSaturation:nC(function(e,t){return dd(e,null,t)}),colorLightness:nC(function(e,t){return dd(e,null,null,t)}),colorAlpha:nC(function(e,t){return cr(e,t)}),decal:{applyVisual:CM("decal"),_normalizedToVisual:{linear:null,category:wM,piecewise:null,fixed:null}},opacity:{applyVisual:CM("opacity"),_normalizedToVisual:_5([0,1])},liftZ:{applyVisual:CM("liftZ"),_normalizedToVisual:{linear:Sw,category:Sw,piecewise:Sw,fixed:Sw}},symbol:{applyVisual:function(e,t,r){var s=this.mapValueToVisual(e);r("symbol",s)},_normalizedToVisual:{linear:g5,category:wM,piecewise:function(e,t){var r=y5.call(this,t);return r==null&&(r=g5.call(this,e)),r},fixed:Sw}},symbolSize:{applyVisual:CM("symbolSize"),_normalizedToVisual:_5([0,1])}},n}();function g3(n){var e=n.pieceList;n.hasSpecialVisual=!1,At(e,function(t,r){t.originIndex=r,t.visual!=null&&(n.hasSpecialVisual=!0)})}function _3(n){var e=n.categories,t=n.categoryMap={},r=n.visual;if(Ew(e,function(f,T){t[f]=T}),!La(r)){var s=[];to(r)?Ew(r,function(f,T){var R=t[T];s[R!=null?R:T0]=f}):s[T0]=r,r=OB(n,s)}for(var c=e.length-1;c>=0;c--)r[c]==null&&(delete t[e[c]],e.pop())}function A0(n,e){var t=n.visual,r=[];to(t)?Ew(t,function(c){r.push(c)}):t!=null&&r.push(t);var s={color:1,symbol:1};!e&&r.length===1&&!s.hasOwnProperty(n.type)&&(r[1]=r[0]),OB(n,r)}function nC(n){return{applyVisual:function(e,t,r){var s=this.mapValueToVisual(e);r("color",n(t("color"),s))},_normalizedToVisual:_5([0,1])}}function g5(n){var e=this.option.visual;return e[Math.round(yt(n,[0,1],[0,e.length-1],!0))]||{}}function CM(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function wM(n){var e=this.option.visual;return e[this.option.loop&&n!==T0?n%e.length:n]}function Sw(){return this.option.visual[0]}function _5(n){return{linear:function(e){return yt(e,n,this.option.visual,!0)},category:wM,piecewise:function(e,t){var r=y5.call(this,t);return r==null&&(r=yt(e,n,this.option.visual,!0)),r},fixed:Sw}}function y5(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=m3.findPieceIndex(n,t),s=t[r];if(s&&s.visual)return s.visual[this.type]}}function OB(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=ar(e,function(t){var r=Tu(t);return r||[0,0,0,1]})),e}var IB={linear:function(n){return yt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=m3.findPieceIndex(n,e,!0);if(t!=null)return yt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e==null?T0:e},fixed:Bo};function ER(n,e,t){return n?e<=t:e<t}var Yg=m3,y3="itemStyle",b5=Bi(),b3={seriesType:"treemap",reset:function(n){var e=n.getData().tree,t=e.root;t.isRemoved()||x3(t,{},n.getViewRoot().getAncestors(),n)}};function x3(n,e,t,r){var s=n.getModel(),c=n.getLayout(),f=n.hostTree.data;if(!(!c||c.invisible||!c.isInView)){var T=s.getModel(y3),R=DB(T,e,r),I=f.ensureUniqueItemVisual(n.dataIndex,"style"),B=T.get("borderColor"),Y=T.get("borderColorSaturation"),q;Y!=null&&(q=E3(R),B=NB(Y,q)),I.stroke=B;var ie=n.viewChildren;if(!ie||!ie.length)q=E3(R),I.fill=q;else{var ge=LB(n,s,c,T,R,ie);At(ie,function(Oe,Ne){if(Oe.depth>=t.length||Oe===t[Oe.depth]){var He=FB(s,R,Oe,Ne,ge,r);x3(Oe,He,t,r)}})}}}function DB(n,e,t){var r=Ea({},e),s=t.designatedVisualItemStyle;return At(["color","colorAlpha","colorSaturation"],function(c){s[c]=e[c];var f=n.get(c);s[c]=null,f!=null&&(r[c]=f)}),r}function E3(n){var e=rC(n,"color");if(e){var t=rC(n,"colorAlpha"),r=rC(n,"colorSaturation");return r&&(e=dd(e,null,null,r)),t&&(e=cr(e,t)),e}}function NB(n,e){return e!=null?dd(e,null,null,n):null}function rC(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function LB(n,e,t,r,s,c){if(!(!c||!c.length)){var f=S3(e,"color")||s.color!=null&&s.color!=="none"&&(S3(e,"colorAlpha")||S3(e,"colorSaturation"));if(!!f){var T=e.get("visualMin"),R=e.get("visualMax"),I=t.dataExtent.slice();T!=null&&T<I[0]&&(I[0]=T),R!=null&&R>I[1]&&(I[1]=R);var B=e.get("colorMappingBy"),Y={type:f.name,dataExtent:I,visual:f.range};Y.type==="color"&&(B==="index"||B==="id")?(Y.mappingMethod="category",Y.loop=!0):Y.mappingMethod="linear";var q=new Yg(Y);return b5(q).drColorMappingBy=B,q}}}function S3(n,e){var t=n.get(e);return La(t)&&t.length?{name:e,range:t}:null}function FB(n,e,t,r,s,c){var f=Ea({},e);if(s){var T=s.type,R=T==="color"&&b5(s).drColorMappingBy,I=R==="index"?r:R==="id"?c.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));f[T]=s.mapValueToVisual(I)}return f}var TM=Math.max,SR=Math.min,x5=nn,C3=At,E5=["itemStyle","borderWidth"],jB=["itemStyle","gapWidth"],BB=["upperLabel","show"],UB=["upperLabel","height"],ZB={seriesType:"treemap",reset:function(n,e,t,r){var s=t.getWidth(),c=t.getHeight(),f=n.option,T=mm(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),R=f.size||[],I=It(x5(T.width,R[0]),s),B=It(x5(T.height,R[1]),c),Y=r&&r.type,q=["treemapZoomToNode","treemapRootToNode"],ie=yM(r,q,n),ge=Y==="treemapRender"||Y==="treemapMove"?r.rootRect:null,Oe=n.getViewRoot(),Ne=d5(Oe);if(Y!=="treemapMove"){var He=Y==="treemapZoomToNode"?zB(n,ie,Oe,I,B):ge?[ge.width,ge.height]:[I,B],st=f.sort;st&&st!=="asc"&&st!=="desc"&&(st="desc");var pt={squareRatio:f.squareRatio,sort:st,leafDepth:f.leafDepth};Oe.hostTree.clearLayouts();var Ut={x:0,y:0,width:He[0],height:He[1],area:He[0]*He[1]};Oe.setLayout(Ut),S5(Oe,pt,!1,0),Ut=Oe.getLayout(),C3(Ne,function(yn,jn){var Cr=(Ne[jn+1]||Oe).getValue();yn.setLayout(Ea({dataExtent:[Cr,Cr],borderWidth:0,upperHeight:0},Ut))})}var pn=n.getData().tree.root;pn.setLayout(WB(T,ge,ie),!0),n.setLayoutInfo(T),Cw(pn,new ra(-T.x,-T.y,s,c),Ne,Oe,0)}};function S5(n,e,t,r){var s,c;if(!n.isRemoved()){var f=n.getLayout();s=f.width,c=f.height;var T=n.getModel(),R=T.get(E5),I=T.get(jB)/2,B=w3(T),Y=Math.max(R,B),q=R-I,ie=Y-I;n.setLayout({borderWidth:R,upperHeight:Y,upperLabelHeight:B},!0),s=TM(s-2*q,0),c=TM(c-q-ie,0);var ge=s*c,Oe=rH(n,T,ge,e,t,r);if(!!Oe.length){var Ne={x:q,y:ie,width:s,height:c},He=SR(s,c),st=Infinity,pt=[];pt.area=0;for(var Ut=0,pn=Oe.length;Ut<pn;){var yn=Oe[Ut];pt.push(yn),pt.area+=yn.getLayout().area;var jn=iE(pt,He,e.squareRatio);jn<=st?(Ut++,st=jn):(pt.area-=pt.pop().getLayout().area,jb(pt,He,Ne,I,!1),He=SR(Ne.width,Ne.height),pt.length=pt.area=0,st=Infinity)}if(pt.length&&jb(pt,He,Ne,I,!0),!t){var Cr=T.get("childrenVisibleMin");Cr!=null&&ge<Cr&&(t=!0)}for(var Ut=0,pn=Oe.length;Ut<pn;Ut++)S5(Oe[Ut],e,t,r+1)}}}function rH(n,e,t,r,s,c){var f=n.children||[],T=r.sort;T!=="asc"&&T!=="desc"&&(T=null);var R=r.leafDepth!=null&&r.leafDepth<=c;if(s&&!R)return n.viewChildren=[];f=Yn(f,function(ie){return!ie.isRemoved()}),AM(f,T);var I=C5(e,f,T);if(I.sum===0)return n.viewChildren=[];if(I.sum=VB(e,t,I.sum,T,f),I.sum===0)return n.viewChildren=[];for(var B=0,Y=f.length;B<Y;B++){var q=f[B].getValue()/I.sum*t;f[B].setLayout({area:q})}return R&&(f.length&&n.setLayout({isLeafRoot:!0},!0),f.length=0),n.viewChildren=f,n.setLayout({dataExtent:I.dataExtent},!0),f}function VB(n,e,t,r,s){if(!r)return t;for(var c=n.get("visibleMin"),f=s.length,T=f,R=f-1;R>=0;R--){var I=s[r==="asc"?f-R-1:R].getValue();I/t*e<c&&(T=R,t-=I)}return r==="asc"?s.splice(0,f-T):s.splice(T,f-T),t}function AM(n,e){return e&&n.sort(function(t,r){var s=e==="asc"?t.getValue()-r.getValue():r.getValue()-t.getValue();return s===0?e==="asc"?t.dataIndex-r.dataIndex:r.dataIndex-t.dataIndex:s}),n}function C5(n,e,t){for(var r=0,s=0,c=e.length;s<c;s++)r+=e[s].getValue();var f=n.get("visualDimension"),T;return!e||!e.length?T=[NaN,NaN]:f==="value"&&t?(T=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&T.reverse()):(T=[Infinity,-Infinity],C3(e,function(R){var I=R.getValue(f);I<T[0]&&(T[0]=I),I>T[1]&&(T[1]=I)})),{sum:r,dataExtent:T}}function iE(n,e,t){for(var r=0,s=Infinity,c=0,f=void 0,T=n.length;c<T;c++)f=n[c].getLayout().area,f&&(f<s&&(s=f),f>r&&(r=f));var R=n.area*n.area,I=e*e*t;return R?TM(I*r/R,R/(I*s)):Infinity}function jb(n,e,t,r,s){var c=e===t.width?0:1,f=1-c,T=["x","y"],R=["width","height"],I=t[T[c]],B=e?n.area/e:0;(s||B>t[R[f]])&&(B=t[R[f]]);for(var Y=0,q=n.length;Y<q;Y++){var ie=n[Y],ge={},Oe=B?ie.getLayout().area/B:0,Ne=ge[R[f]]=TM(B-2*r,0),He=t[T[c]]+t[R[c]]-I,st=Y===q-1||He<Oe?He:Oe,pt=ge[R[c]]=TM(st-2*r,0);ge[T[f]]=t[T[f]]+SR(r,Ne/2),ge[T[c]]=I+SR(r,pt/2),I+=st,ie.setLayout(ge,!0)}t[T[f]]+=B,t[R[f]]-=B}function zB(n,e,t,r,s){var c=(e||{}).node,f=[r,s];if(!c||c===t)return f;for(var T,R=r*s,I=R*n.option.zoomToNodeRatio;T=c.parentNode;){for(var B=0,Y=T.children,q=0,ie=Y.length;q<ie;q++)B+=Y[q].getValue();var ge=c.getValue();if(ge===0)return f;I*=B/ge;var Oe=T.getModel(),Ne=Oe.get(E5),He=Math.max(Ne,w3(Oe));I+=4*Ne*Ne+(3*Ne+He)*Math.pow(I,.5),I>Ai&&(I=Ai),c=T}I<R&&(I=R);var st=Math.pow(I/R,.5);return[r*st,s*st]}function WB(n,e,t){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!t)return r;var s=t.node,c=s.getLayout();if(!c)return r;for(var f=[c.width/2,c.height/2],T=s;T;){var R=T.getLayout();f[0]+=R.x,f[1]+=R.y,T=T.parentNode}return{x:n.width/2-f[0],y:n.height/2-f[1]}}function Cw(n,e,t,r,s){var c=n.getLayout(),f=t[s],T=f&&f===n;if(!(f&&!T||s===t.length&&n!==r)){n.setLayout({isInView:!0,invisible:!T&&!e.intersect(c),isAboveViewRoot:T},!0);var R=new ra(e.x-c.x,e.y-c.y,e.width,e.height);C3(n.viewChildren||[],function(I){Cw(I,R,t,r,s+1)})}}function w3(n){return n.get(BB)?n.get(UB):0}function w5(n){n.registerSeriesModel(xB),n.registerChartView(PB),n.registerVisual(b3),n.registerLayout(ZB),xM(n)}function T5(n){var e=n.findComponents({mainType:"legend"});!e||!e.length||n.eachSeriesByType("graph",function(t){var r=t.getCategoriesData(),s=t.getGraph(),c=s.data,f=r.mapArray(r.getName);c.filterSelf(function(T){var R=c.getItemModel(T),I=R.getShallow("category");if(I!=null){yo(I)&&(I=f[I]);for(var B=0;B<e.length;B++)if(!e[B].isSelected(I))return!1}return!0})})}function oE(n){var e={};n.eachSeriesByType("graph",function(t){var r=t.getCategoriesData(),s=t.getData(),c={};r.each(function(f){var T=r.getName(f);c["ec-"+T]=f;var R=r.getItemModel(f),I=R.getModel("itemStyle").getItemStyle();I.fill||(I.fill=t.getColorFromPalette(T,e)),r.setItemVisual(f,"style",I);for(var B=["symbol","symbolSize","symbolKeepAspect"],Y=0;Y<B.length;Y++){var q=R.getShallow(B[Y],!0);q!=null&&r.setItemVisual(f,B[Y],q)}}),r.count()&&s.each(function(f){var T=s.getItemModel(f),R=T.getShallow("category");if(R!=null){ei(R)&&(R=c["ec-"+R]);var I=r.getItemVisual(R,"style"),B=s.ensureUniqueItemVisual(f,"style");Ea(B,I);for(var Y=["symbol","symbolSize","symbolKeepAspect"],q=0;q<Y.length;q++)s.setItemVisual(f,Y[q],r.getItemVisual(R,Y[q]))}})})}function MM(n){return n instanceof Array||(n=[n,n]),n}function A5(n){n.eachSeriesByType("graph",function(e){var t=e.getGraph(),r=e.getEdgeData(),s=MM(e.get("edgeSymbol")),c=MM(e.get("edgeSymbolSize"));r.setVisual("fromSymbol",s&&s[0]),r.setVisual("toSymbol",s&&s[1]),r.setVisual("fromSymbolSize",c&&c[0]),r.setVisual("toSymbolSize",c&&c[1]),r.setVisual("style",e.getModel("lineStyle").getLineStyle()),r.each(function(f){var T=r.getItemModel(f),R=t.getEdgeByIndex(f),I=MM(T.getShallow("symbol",!0)),B=MM(T.getShallow("symbolSize",!0)),Y=T.getModel("lineStyle").getLineStyle(),q=r.ensureUniqueItemVisual(f,"style");switch(Ea(q,Y),q.stroke){case"source":{var ie=R.node1.getVisual("style");q.stroke=ie&&ie.fill;break}case"target":{var ie=R.node2.getVisual("style");q.stroke=ie&&ie.fill;break}}I[0]&&R.setVisual("fromSymbol",I[0]),I[1]&&R.setVisual("toSymbol",I[1]),B[0]&&R.setVisual("fromSymbolSize",B[0]),B[1]&&R.setVisual("toSymbolSize",B[1])})})}var T3="-->",CR=function(n){return n.get("autoCurveness")||null},wR=function(n,e){var t=CR(n),r=20,s=[];if(yo(t))r=t;else if(La(t)){n.__curvenessList=t;return}e>r&&(r=e);var c=r%2?r+2:r+3;s=[];for(var f=0;f<c;f++)s.push((f%2?f+1:f)/10*(f%2?-1:1));n.__curvenessList=s},sE=function(n,e,t){var r=[n.id,n.dataIndex].join("."),s=[e.id,e.dataIndex].join(".");return[t.uid,r,s].join(T3)},A3=function(n){var e=n.split(T3);return[e[0],e[2],e[1]].join(T3)},M5=function(n,e){var t=sE(n.node1,n.node2,e);return e.__edgeMap[t]},K_=function(n,e){var t=M3(sE(n.node1,n.node2,e),e),r=M3(sE(n.node2,n.node1,e),e);return t+r},M3=function(n,e){var t=e.__edgeMap;return t[n]?t[n].length:0};function k5(n){!CR(n)||(n.__curvenessList=[],n.__edgeMap={},wR(n))}function P5(n,e,t,r){if(!!CR(t)){var s=sE(n,e,t),c=t.__edgeMap,f=c[A3(s)];c[s]&&!f?c[s].isForward=!0:f&&c[s]&&(f.isForward=!0,c[s].isForward=!1),c[s]=c[s]||[],c[s].push(r)}}function TR(n,e,t,r){var s=CR(e),c=La(s);if(!s)return null;var f=M5(n,e);if(!f)return null;for(var T=-1,R=0;R<f.length;R++)if(f[R]===t){T=R;break}var I=K_(n,e);wR(e,I),n.lineStyle=n.lineStyle||{};var B=sE(n.node1,n.node2,e),Y=e.__curvenessList,q=c||I%2?0:1;if(f.isForward)return Y[q+T];var ie=A3(B),ge=M3(ie,e),Oe=Y[T+ge+q];return r?c?s&&s[0]===0?(ge+q)%2?Oe:-Oe:((ge%2?0:1)+q)%2?Oe:-Oe:(ge+q)%2?Oe:-Oe:Y[T+ge+q]}function k3(n){var e=n.coordinateSystem;if(!(e&&e.type!=="view")){var t=n.getGraph();t.eachNode(function(r){var s=r.getModel();r.setLayout([+s.get("x"),+s.get("y")])}),AR(t,n)}}function AR(n,e){n.eachEdge(function(t,r){var s=Ot(t.getModel().get(["lineStyle","curveness"]),-TR(t,e,r,!0),0),c=oc(t.node1.getLayout()),f=oc(t.node2.getLayout()),T=[c,f];+s&&T.push([(c[0]+f[0])/2-(c[1]-f[1])*s,(c[1]+f[1])/2-(f[0]-c[0])*s]),t.setLayout(T)})}function HB(n,e){n.eachSeriesByType("graph",function(t){var r=t.get("layout"),s=t.coordinateSystem;if(s&&s.type!=="view"){var c=t.getData(),f=[];At(s.dimensions,function(q){f=f.concat(c.mapDimensionsAll(q))});for(var T=0;T<c.count();T++){for(var R=[],I=!1,B=0;B<f.length;B++){var Y=c.get(f[B],T);isNaN(Y)||(I=!0),R.push(Y)}I?c.setItemLayout(T,s.dataToPoint(R)):c.setItemLayout(T,[NaN,NaN])}AR(c.graph,t)}else(!r||r==="none")&&k3(t)})}function lE(n){var e=n.coordinateSystem;if(e.type!=="view")return 1;var t=n.option.nodeScaleRatio,r=e.scaleX,s=e.getZoom(),c=(s-1)*t+1;return c/r}function ww(n){var e=n.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var P3=Math.PI,MR=[];function R3(n,e,t,r){var s=n.coordinateSystem;if(!(s&&s.type!=="view")){var c=s.getBoundingRect(),f=n.getData(),T=f.graph,R=c.width/2+c.x,I=c.height/2+c.y,B=Math.min(c.width,c.height)/2,Y=f.count();if(f.setLayout({cx:R,cy:I}),!!Y){if(t){var q=s.pointToData(r),ie=q[0],ge=q[1],Oe=[ie-R,ge-I];lu(Oe,Oe),jc(Oe,Oe,B),t.setLayout([R+Oe[0],I+Oe[1]],!0);var Ne=n.get(["circular","rotateLabel"]);O5(t,Ne,R,I)}R5[e](n,T,f,B,R,I,Y),T.eachEdge(function(He,st){var pt=Ot(He.getModel().get(["lineStyle","curveness"]),TR(He,n,st),0),Ut=oc(He.node1.getLayout()),pn=oc(He.node2.getLayout()),yn,jn=(Ut[0]+pn[0])/2,Cr=(Ut[1]+pn[1])/2;+pt&&(pt*=3,yn=[R*pt+jn*(1-pt),I*pt+Cr*(1-pt)]),He.setLayout([Ut,pn,yn])})}}}var R5={value:function(n,e,t,r,s,c,f){var T=0,R=t.getSum("value"),I=Math.PI*2/(R||f);e.eachNode(function(B){var Y=B.getValue("value"),q=I*(R?Y:1)/2;T+=q,B.setLayout([r*Math.cos(T)+s,r*Math.sin(T)+c]),T+=q})},symbolSize:function(n,e,t,r,s,c,f){var T=0;MR.length=f;var R=lE(n);e.eachNode(function(Y){var q=ww(Y);isNaN(q)&&(q=2),q<0&&(q=0),q*=R;var ie=Math.asin(q/2/r);isNaN(ie)&&(ie=P3/2),MR[Y.dataIndex]=ie,T+=ie*2});var I=(2*P3-T)/f/2,B=0;e.eachNode(function(Y){var q=I+MR[Y.dataIndex];B+=q,(!Y.getLayout()||!Y.getLayout().fixed)&&Y.setLayout([r*Math.cos(B)+s,r*Math.sin(B)+c]),B+=q})}};function O5(n,e,t,r){var s=n.getGraphicEl();if(!!s){var c=n.getModel(),f=c.get(["label","rotate"])||0,T=s.getSymbolPath();if(e){var R=n.getLayout(),I=Math.atan2(R[1]-r,R[0]-t);I<0&&(I=Math.PI*2+I);var B=R[0]<t;B&&(I=I-Math.PI);var Y=B?"left":"right";T.setTextConfig({rotation:-I,position:Y,origin:"center"});var q=T.ensureState("emphasis");Ea(q.textConfig||(q.textConfig={}),{position:Y})}else T.setTextConfig({rotation:f*=Math.PI/180})}}function I5(n){n.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&R3(e,"symbolSize")})}var aC=ku;function kR(n,e,t){for(var r=n,s=e,c=t.rect,f=c.width,T=c.height,R=[c.x+f/2,c.y+T/2],I=t.gravity==null?.1:t.gravity,B=0;B<r.length;B++){var Y=r[B];Y.p||(Y.p=Dc(f*(Math.random()-.5)+R[0],T*(Math.random()-.5)+R[1])),Y.pp=oc(Y.p),Y.edges=null}var q=t.friction==null?.6:t.friction,ie=q,ge,Oe;return{warmUp:function(){ie=q*.8},setFixed:function(Ne){r[Ne].fixed=!0},setUnfixed:function(Ne){r[Ne].fixed=!1},beforeStep:function(Ne){ge=Ne},afterStep:function(Ne){Oe=Ne},step:function(Ne){ge&&ge(r,s);for(var He=[],st=r.length,pt=0;pt<s.length;pt++){var Ut=s[pt];if(!Ut.ignoreForceLayout){var pn=Ut.n1,yn=Ut.n2;Zc(He,yn.p,pn.p);var jn=Zu(He)-Ut.d,Cr=yn.w/(pn.w+yn.w);isNaN(Cr)&&(Cr=0),lu(He,He),!pn.fixed&&aC(pn.p,pn.p,He,Cr*jn*ie),!yn.fixed&&aC(yn.p,yn.p,He,-(1-Cr)*jn*ie)}}for(var pt=0;pt<st;pt++){var Nr=r[pt];Nr.fixed||(Zc(He,R,Nr.p),aC(Nr.p,Nr.p,He,I*ie))}for(var pt=0;pt<st;pt++)for(var pn=r[pt],Rr=pt+1;Rr<st;Rr++){var yn=r[Rr];Zc(He,yn.p,pn.p);var jn=Zu(He);jn===0&&(xu(He,Math.random()-.5,Math.random()-.5),jn=1);var Er=(pn.rep+yn.rep)/jn/jn;!pn.fixed&&aC(pn.pp,pn.pp,He,Er),!yn.fixed&&aC(yn.pp,yn.pp,He,-Er)}for(var ma=[],pt=0;pt<st;pt++){var Nr=r[pt];Nr.fixed||(Zc(ma,Nr.p,Nr.pp),aC(Nr.p,Nr.p,ma,ie),Jl(Nr.pp,Nr.p))}ie=ie*.992;var wa=ie<.01;Oe&&Oe(r,s,wa),Ne&&Ne(wa)}}}function ky(n){n.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var r=e.preservedPoints||{},s=e.getGraph(),c=s.data,f=s.edgeData,T=e.getModel("force"),R=T.get("initLayout");e.preservedPoints?c.each(function(pt){var Ut=c.getId(pt);c.setItemLayout(pt,r[Ut]||[NaN,NaN])}):!R||R==="none"?k3(e):R==="circular"&&R3(e,"value");var I=c.getDataExtent("value"),B=f.getDataExtent("value"),Y=T.get("repulsion"),q=T.get("edgeLength"),ie=La(Y)?Y:[Y,Y],ge=La(q)?q:[q,q];ge=[ge[1],ge[0]];var Oe=c.mapArray("value",function(pt,Ut){var pn=c.getItemLayout(Ut),yn=yt(pt,I,ie);return isNaN(yn)&&(yn=(ie[0]+ie[1])/2),{w:yn,rep:yn,fixed:c.getItemModel(Ut).get("fixed"),p:!pn||isNaN(pn[0])||isNaN(pn[1])?null:pn}}),Ne=f.mapArray("value",function(pt,Ut){var pn=s.getEdgeByIndex(Ut),yn=yt(pt,B,ge);isNaN(yn)&&(yn=(ge[0]+ge[1])/2);var jn=pn.getModel(),Cr=Ot(pn.getModel().get(["lineStyle","curveness"]),-TR(pn,e,Ut,!0),0);return{n1:Oe[pn.node1.dataIndex],n2:Oe[pn.node2.dataIndex],d:yn,curveness:Cr,ignoreForceLayout:jn.get("ignoreForceLayout")}}),He=t.getBoundingRect(),st=kR(Oe,Ne,{rect:He,gravity:T.get("gravity"),friction:T.get("friction")});st.beforeStep(function(pt,Ut){for(var pn=0,yn=pt.length;pn<yn;pn++)pt[pn].fixed&&Jl(pt[pn].p,s.getNodeByIndex(pn).getLayout())}),st.afterStep(function(pt,Ut,pn){for(var yn=0,jn=pt.length;yn<jn;yn++)pt[yn].fixed||s.getNodeByIndex(yn).setLayout(pt[yn].p),r[c.getId(yn)]=pt[yn].p;for(var yn=0,jn=Ut.length;yn<jn;yn++){var Cr=Ut[yn],Nr=s.getEdgeByIndex(yn),Rr=Cr.n1.p,Er=Cr.n2.p,ma=Nr.getLayout();ma=ma?ma.slice():[],ma[0]=ma[0]||[],ma[1]=ma[1]||[],Jl(ma[0],Rr),Jl(ma[1],Er),+Cr.curveness&&(ma[2]=[(Rr[0]+Er[0])/2-(Rr[1]-Er[1])*Cr.curveness,(Rr[1]+Er[1])/2-(Er[0]-Rr[0])*Cr.curveness]),Nr.setLayout(ma)}}),e.forceLayout=st,e.preservedPoints=r,st.step()}else e.forceLayout=null})}function iC(n,e,t){var r=Ea(n.getBoxLayoutParams(),{aspect:t});return mm(r,{width:e.getWidth(),height:e.getHeight()})}function oC(n,e){var t=[];return n.eachSeriesByType("graph",function(r){var s=r.get("coordinateSystem");if(!s||s==="view"){var c=r.getData(),f=c.mapArray(function(Ne){var He=c.getItemModel(Ne);return[+He.get("x"),+He.get("y")]}),T=[],R=[];Fy(f,T,R),R[0]-T[0]==0&&(R[0]+=1,T[0]-=1),R[1]-T[1]==0&&(R[1]+=1,T[1]-=1);var I=(R[0]-T[0])/(R[1]-T[1]),B=iC(r,e,I);isNaN(I)&&(T=[B.x,B.y],R=[B.x+B.width,B.y+B.height]);var Y=R[0]-T[0],q=R[1]-T[1],ie=B.width,ge=B.height,Oe=r.coordinateSystem=new gM;Oe.zoomLimit=r.get("scaleLimit"),Oe.setBoundingRect(T[0],T[1],Y,q),Oe.setViewRect(B.x,B.y,ie,ge),Oe.setCenter(r.get("center"),e),Oe.setZoom(r.get("zoom")),t.push(Oe)}}),t}var b1=jh.prototype,sC=C2.prototype,O3=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return n}(),PR=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(O3);function I3(n){return isNaN(+n.cpx1)||isNaN(+n.cpy1)}var GB=function(n){ze(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-line",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new O3},e.prototype.buildPath=function(t,r){I3(r)?b1.buildPath.call(this,t,r):sC.buildPath.call(this,t,r)},e.prototype.pointAt=function(t){return I3(this.shape)?b1.pointAt.call(this,t):sC.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var r=this.shape,s=I3(r)?[r.x2-r.x1,r.y2-r.y1]:sC.tangentAt.call(this,t);return lu(s,s)},e}(Od),$B=GB,D3=["fromSymbol","toSymbol"];function kM(n){return"_"+n+"Type"}function D5(n,e,t){var r=e.getItemVisual(t,n);if(!r||r==="none")return r;var s=e.getItemVisual(t,n+"Size"),c=e.getItemVisual(t,n+"Rotate"),f=e.getItemVisual(t,n+"Offset"),T=e.getItemVisual(t,n+"KeepAspect"),R=fp(s),I=Tv(f||0,R);return r+R+I+(c||"")+(T||"")}function Tw(n,e,t){var r=e.getItemVisual(t,n);if(!(!r||r==="none")){var s=e.getItemVisual(t,n+"Size"),c=e.getItemVisual(t,n+"Rotate"),f=e.getItemVisual(t,n+"Offset"),T=e.getItemVisual(t,n+"KeepAspect"),R=fp(s),I=Tv(f||0,R),B=ad(r,-R[0]/2+I[0],-R[1]/2+I[1],R[0],R[1],null,T);return B.__specifiedRotation=c==null||isNaN(c)?void 0:+c*Math.PI/180||0,B.name=n,B}}function cE(n){var e=new $B({name:"line",subPixelOptimize:!0});return Y_(e.shape,n),e}function Y_(n,e){n.x1=e[0][0],n.y1=e[0][1],n.x2=e[1][0],n.y2=e[1][1],n.percent=1;var t=e[2];t?(n.cpx1=t[0],n.cpy1=t[1]):(n.cpx1=NaN,n.cpy1=NaN)}var N5=function(n){ze(e,n);function e(t,r,s){var c=n.call(this)||this;return c._createLine(t,r,s),c}return e.prototype._createLine=function(t,r,s){var c=t.hostModel,f=t.getItemLayout(r),T=cE(f);T.shape.percent=0,Sv(T,{shape:{percent:1}},c,r),this.add(T),At(D3,function(R){var I=Tw(R,t,r);this.add(I),this[kM(R)]=D5(R,t,r)},this),this._updateCommonStl(t,r,s)},e.prototype.updateData=function(t,r,s){var c=t.hostModel,f=this.childOfName("line"),T=t.getItemLayout(r),R={shape:{}};Y_(R.shape,T),vp(f,R,c,r),At(D3,function(I){var B=D5(I,t,r),Y=kM(I);if(this[Y]!==B){this.remove(this.childOfName(I));var q=Tw(I,t,r);this.add(q)}this[Y]=B},this),this._updateCommonStl(t,r,s)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,r,s){var c=t.hostModel,f=this.childOfName("line"),T=s&&s.emphasisLineStyle,R=s&&s.blurLineStyle,I=s&&s.selectLineStyle,B=s&&s.labelStatesModels,Y=s&&s.emphasisDisabled,q=s&&s.focus,ie=s&&s.blurScope;if(!s||t.hasItemOption){var ge=t.getItemModel(r),Oe=ge.getModel("emphasis");T=Oe.getModel("lineStyle").getLineStyle(),R=ge.getModel(["blur","lineStyle"]).getLineStyle(),I=ge.getModel(["select","lineStyle"]).getLineStyle(),Y=Oe.get("disabled"),q=Oe.get("focus"),ie=Oe.get("blurScope"),B=bh(ge)}var Ne=t.getItemVisual(r,"style"),He=Ne.stroke;f.useStyle(Ne),f.style.fill=null,f.style.strokeNoScale=!0,f.ensureState("emphasis").style=T,f.ensureState("blur").style=R,f.ensureState("select").style=I,At(D3,function(yn){var jn=this.childOfName(yn);if(jn){jn.setColor(He),jn.style.opacity=Ne.opacity;for(var Cr=0;Cr<Wm.length;Cr++){var Nr=Wm[Cr],Rr=f.getState(Nr);if(Rr){var Er=Rr.style||{},ma=jn.ensureState(Nr),wa=ma.style||(ma.style={});Er.stroke!=null&&(wa[jn.__isEmptyBrush?"stroke":"fill"]=Er.stroke),Er.opacity!=null&&(wa.opacity=Er.opacity)}}jn.markRedraw()}},this);var st=c.getRawValue(r);bv(this,B,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(yn,jn){return c.getFormattedLabel(yn,jn,t.dataType)}},inheritColor:He||"#000",defaultOpacity:Ne.opacity,defaultText:(st==null?t.getName(r):isFinite(st)?Sn(st):st)+""});var pt=this.getTextContent();if(pt){var Ut=B.normal;pt.__align=pt.style.align,pt.__verticalAlign=pt.style.verticalAlign,pt.__position=Ut.get("position")||"middle";var pn=Ut.get("distance");La(pn)||(pn=[pn,pn]),pt.__labelDistance=pn}this.setTextConfig({position:null,local:!0,inside:!1}),ih(this,q,ie,Y)},e.prototype.highlight=function(){qg(this)},e.prototype.downplay=function(){j0(this)},e.prototype.updateLayout=function(t,r){this.setLinePoints(t.getItemLayout(r))},e.prototype.setLinePoints=function(t){var r=this.childOfName("line");Y_(r.shape,t),r.dirty()},e.prototype.beforeUpdate=function(){var t=this,r=t.childOfName("fromSymbol"),s=t.childOfName("toSymbol"),c=t.getTextContent();if(!r&&!s&&(!c||c.ignore))return;for(var f=1,T=this.parent;T;)T.scaleX&&(f/=T.scaleX),T=T.parent;var R=t.childOfName("line");if(!this.__dirty&&!R.__dirty)return;var I=R.shape.percent,B=R.pointAt(0),Y=R.pointAt(I),q=Zc([],Y,B);lu(q,q);function ie(Rr,Er){var ma=Rr.__specifiedRotation;if(ma==null){var wa=R.tangentAt(Er);Rr.attr("rotation",(Er===1?-1:1)*Math.PI/2-Math.atan2(wa[1],wa[0]))}else Rr.attr("rotation",ma)}if(r&&(r.setPosition(B),ie(r,0),r.scaleX=r.scaleY=f*I,r.markRedraw()),s&&(s.setPosition(Y),ie(s,1),s.scaleX=s.scaleY=f*I,s.markRedraw()),c&&!c.ignore){c.x=c.y=0,c.originX=c.originY=0;var ge=void 0,Oe=void 0,Ne=c.__labelDistance,He=Ne[0]*f,st=Ne[1]*f,pt=I/2,Ut=R.tangentAt(pt),pn=[Ut[1],-Ut[0]],yn=R.pointAt(pt);pn[1]>0&&(pn[0]=-pn[0],pn[1]=-pn[1]);var jn=Ut[0]<0?-1:1;if(c.__position!=="start"&&c.__position!=="end"){var Cr=-Math.atan2(Ut[1],Ut[0]);Y[0]<B[0]&&(Cr=Math.PI+Cr),c.rotation=Cr}var Nr=void 0;switch(c.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":Nr=-st,Oe="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":Nr=st,Oe="top";break;default:Nr=0,Oe="middle"}switch(c.__position){case"end":c.x=q[0]*He+Y[0],c.y=q[1]*st+Y[1],ge=q[0]>.8?"left":q[0]<-.8?"right":"center",Oe=q[1]>.8?"top":q[1]<-.8?"bottom":"middle";break;case"start":c.x=-q[0]*He+B[0],c.y=-q[1]*st+B[1],ge=q[0]>.8?"right":q[0]<-.8?"left":"center",Oe=q[1]>.8?"bottom":q[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":c.x=He*jn+B[0],c.y=B[1]+Nr,ge=Ut[0]<0?"right":"left",c.originX=-He*jn,c.originY=-Nr;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":c.x=yn[0],c.y=yn[1]+Nr,ge="center",c.originY=-Nr;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":c.x=-He*jn+Y[0],c.y=Y[1]+Nr,ge=Ut[0]>=0?"right":"left",c.originX=He*jn,c.originY=-Nr;break}c.scaleX=c.scaleY=f,c.setStyle({verticalAlign:c.__verticalAlign||Oe,align:c.__align||ge})}},e}(Qi),RR=N5,aH=function(){function n(e){this.group=new Qi,this._LineCtor=e||RR}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,s=r.group,c=r._lineData;r._lineData=e,c||s.removeAll();var f=L5(e);e.diff(c).add(function(T){t._doAdd(e,T,f)}).update(function(T,R){t._doUpdate(c,e,R,T,f)}).remove(function(T){s.remove(c.getItemGraphicEl(T))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;!e||e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=L5(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(T){!T.isGroup&&!KB(T)&&(T.incremental=!0,T.ensureState("emphasis").hoverLayer=!0)}for(var s=e.start;s<e.end;s++){var c=t.getItemLayout(s);if(N3(c)){var f=new this._LineCtor(t,s,this._seriesScope);f.traverse(r),this.group.add(f),t.setItemGraphicEl(s,f),this._progressiveEls.push(f)}}},n.prototype.remove=function(){this.group.removeAll()},n.prototype.eachRendered=function(e){ag(this._progressiveEls||this.group,e)},n.prototype._doAdd=function(e,t,r){var s=e.getItemLayout(t);if(!!N3(s)){var c=new this._LineCtor(e,t,r);e.setItemGraphicEl(t,c),this.group.add(c)}},n.prototype._doUpdate=function(e,t,r,s,c){var f=e.getItemGraphicEl(r);if(!N3(t.getItemLayout(s))){this.group.remove(f);return}f?f.updateData(t,s,c):f=new this._LineCtor(t,s,c),t.setItemGraphicEl(s,f),this.group.add(f)},n}();function KB(n){return n.animators&&n.animators.length>0}function L5(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:bh(e)}}function F5(n){return isNaN(n[0])||isNaN(n[1])}function N3(n){return n&&!F5(n[0])&&!F5(n[1])}var L3=aH,F3=[],j3=[],OR=[],Aw=Lr,B3=zu,U3=Math.abs;function j5(n,e,t){for(var r=n[0],s=n[1],c=n[2],f=Infinity,T,R=t*t,I=.1,B=.1;B<=.9;B+=.1){F3[0]=Aw(r[0],s[0],c[0],B),F3[1]=Aw(r[1],s[1],c[1],B);var Y=U3(B3(F3,e)-R);Y<f&&(f=Y,T=B)}for(var q=0;q<32;q++){var ie=T+I;j3[0]=Aw(r[0],s[0],c[0],T),j3[1]=Aw(r[1],s[1],c[1],T),OR[0]=Aw(r[0],s[0],c[0],ie),OR[1]=Aw(r[1],s[1],c[1],ie);var Y=B3(j3,e)-R;if(U3(Y)<.01)break;var ge=B3(OR,e)-R;I/=2,Y<0?ge>=0?T=T+I:T=T-I:ge>=0?T=T-I:T=T+I}return T}function q0(n,e){var t=[],r=Ja,s=[[],[],[]],c=[[],[]],f=[];e/=2,n.eachEdge(function(T,R){var I=T.getLayout(),B=T.getVisual("fromSymbol"),Y=T.getVisual("toSymbol");I.__original||(I.__original=[oc(I[0]),oc(I[1])],I[2]&&I.__original.push(oc(I[2])));var q=I.__original;if(I[2]!=null){if(Jl(s[0],q[0]),Jl(s[1],q[2]),Jl(s[2],q[1]),B&&B!=="none"){var ie=ww(T.node1),ge=j5(s,q[0],ie*e);r(s[0][0],s[1][0],s[2][0],ge,t),s[0][0]=t[3],s[1][0]=t[4],r(s[0][1],s[1][1],s[2][1],ge,t),s[0][1]=t[3],s[1][1]=t[4]}if(Y&&Y!=="none"){var ie=ww(T.node2),ge=j5(s,q[1],ie*e);r(s[0][0],s[1][0],s[2][0],ge,t),s[1][0]=t[1],s[2][0]=t[2],r(s[0][1],s[1][1],s[2][1],ge,t),s[1][1]=t[1],s[2][1]=t[2]}Jl(I[0],s[0]),Jl(I[1],s[2]),Jl(I[2],s[1])}else{if(Jl(c[0],q[0]),Jl(c[1],q[1]),Zc(f,c[1],c[0]),lu(f,f),B&&B!=="none"){var ie=ww(T.node1);ku(c[0],c[0],f,ie*e)}if(Y&&Y!=="none"){var ie=ww(T.node2);ku(c[1],c[1],f,-ie*e)}Jl(I[0],c[0]),Jl(I[1],c[1])}})}function B5(n){return n.type==="view"}var YB=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var s=new Sm,c=new L3,f=this.group;this._controller=new dM(r.getZr()),this._controllerHost={target:f},f.add(s.group),f.add(c.group),this._symbolDraw=s,this._lineDraw=c,this._firstRender=!0},e.prototype.render=function(t,r,s){var c=this,f=t.coordinateSystem;this._model=t;var T=this._symbolDraw,R=this._lineDraw,I=this.group;if(B5(f)){var B={x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY};this._firstRender?I.attr(B):vp(I,B,t)}q0(t.getGraph(),lE(t));var Y=t.getData();T.updateData(Y);var q=t.getEdgeData();R.updateData(q),this._updateNodeAndLinkScale(),this._updateController(t,r,s),clearTimeout(this._layoutTimeout);var ie=t.forceLayout,ge=t.get(["force","layoutAnimation"]);ie&&this._startForceLayoutIteration(ie,ge);var Oe=t.get("layout");Y.graph.eachNode(function(pt){var Ut=pt.dataIndex,pn=pt.getGraphicEl(),yn=pt.getModel();if(!!pn){pn.off("drag").off("dragend");var jn=yn.get("draggable");jn&&pn.on("drag",function(Nr){switch(Oe){case"force":ie.warmUp(),!c._layouting&&c._startForceLayoutIteration(ie,ge),ie.setFixed(Ut),Y.setItemLayout(Ut,[pn.x,pn.y]);break;case"circular":Y.setItemLayout(Ut,[pn.x,pn.y]),pt.setLayout({fixed:!0},!0),R3(t,"symbolSize",pt,[Nr.offsetX,Nr.offsetY]),c.updateLayout(t);break;case"none":default:Y.setItemLayout(Ut,[pn.x,pn.y]),AR(t.getGraph(),t),c.updateLayout(t);break}}).on("dragend",function(){ie&&ie.setUnfixed(Ut)}),pn.setDraggable(jn,!!yn.get("cursor"));var Cr=yn.get(["emphasis","focus"]);Cr==="adjacency"&&(nu(pn).focus=pt.getAdjacentDataIndices())}}),Y.graph.eachEdge(function(pt){var Ut=pt.getGraphicEl(),pn=pt.getModel().get(["emphasis","focus"]);!Ut||pn==="adjacency"&&(nu(Ut).focus={edge:[pt.dataIndex],node:[pt.node1.dataIndex,pt.node2.dataIndex]})});var Ne=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),He=Y.getLayout("cx"),st=Y.getLayout("cy");Y.graph.eachNode(function(pt){O5(pt,Ne,He,st)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var s=this;(function c(){t.step(function(f){s.updateLayout(s._model),(s._layouting=!f)&&(r?s._layoutTimeout=setTimeout(c,16):c())})})()},e.prototype._updateController=function(t,r,s){var c=this,f=this._controller,T=this._controllerHost,R=this.group;if(f.setPointerChecker(function(I,B,Y){var q=R.getBoundingRect();return q.applyTransform(R.transform),q.contain(B,Y)&&!sR(I,s,t)}),!B5(t.coordinateSystem)){f.disable();return}f.enable(t.get("roam")),T.zoomLimit=t.get("scaleLimit"),T.zoom=t.coordinateSystem.getZoom(),f.off("pan").off("zoom").on("pan",function(I){zD(T,I.dx,I.dy),s.dispatchAction({seriesId:t.id,type:"graphRoam",dx:I.dx,dy:I.dy})}).on("zoom",function(I){WD(T,I.scale,I.originX,I.originY),s.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:I.scale,originX:I.originX,originY:I.originY}),c._updateNodeAndLinkScale(),q0(t.getGraph(),lE(t)),c._lineDraw.updateLayout(),s.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),s=lE(t);r.eachItemGraphicEl(function(c,f){c&&c.setSymbolScale(s)})},e.prototype.updateLayout=function(t){q0(t.getGraph(),lE(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(vv),U5=YB;function Mw(n){return"_EC_"+n}var Z3=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Mw(e)]){var s=new uE(e,t);return s.hostGraph=this,this.nodes.push(s),r[Mw(e)]=s,s}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Mw(e)]},n.prototype.addEdge=function(e,t,r){var s=this._nodesMap,c=this._edgesMap;if(yo(e)&&(e=this.nodes[e]),yo(t)&&(t=this.nodes[t]),e instanceof uE||(e=s[Mw(e)]),t instanceof uE||(t=s[Mw(t)]),!(!e||!t)){var f=e.id+"-"+t.id,T=new V3(e,t,r);return T.hostGraph=this,this._directed&&(e.outEdges.push(T),t.inEdges.push(T)),e.edges.push(T),e!==t&&t.edges.push(T),this.edges.push(T),c[f]=T,T}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof uE&&(e=e.id),t instanceof uE&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,s=r.length,c=0;c<s;c++)r[c].dataIndex>=0&&e.call(t,r[c],c)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,s=r.length,c=0;c<s;c++)r[c].dataIndex>=0&&r[c].node1.dataIndex>=0&&r[c].node2.dataIndex>=0&&e.call(t,r[c],c)},n.prototype.breadthFirstTraverse=function(e,t,r,s){if(t instanceof uE||(t=this._nodesMap[Mw(t)]),!!t){for(var c=r==="out"?"outEdges":r==="in"?"inEdges":"edges",f=0;f<this.nodes.length;f++)this.nodes[f].__visited=!1;if(!e.call(s,t,null))for(var T=[t];T.length;)for(var R=T.shift(),I=R[c],f=0;f<I.length;f++){var B=I[f],Y=B.node1===R?B.node2:B.node1;if(!Y.__visited){if(e.call(s,Y,R))return;T.push(Y),Y.__visited=!0}}}},n.prototype.update=function(){for(var e=this.data,t=this.edgeData,r=this.nodes,s=this.edges,c=0,f=r.length;c<f;c++)r[c].dataIndex=-1;for(var c=0,f=e.count();c<f;c++)r[e.getRawIndex(c)].dataIndex=c;t.filterSelf(function(T){var R=s[t.getRawIndex(T)];return R.node1.dataIndex>=0&&R.node2.dataIndex>=0});for(var c=0,f=s.length;c<f;c++)s[c].dataIndex=-1;for(var c=0,f=t.count();c<f;c++)s[t.getRawIndex(c)].dataIndex=c},n.prototype.clone=function(){for(var e=new n(this._directed),t=this.nodes,r=this.edges,s=0;s<t.length;s++)e.addNode(t[s].id,t[s].dataIndex);for(var s=0;s<r.length;s++){var c=r[s];e.addEdge(c.node1.id,c.node2.id,c.dataIndex)}return e},n}(),uE=function(){function n(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e==null?"":e,this.dataIndex=t==null?-1:t}return n.prototype.degree=function(){return this.edges.length},n.prototype.inDegree=function(){return this.inEdges.length},n.prototype.outDegree=function(){return this.outEdges.length},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var r=this.edges[t];r.dataIndex<0||(e.edge.push(r.dataIndex),e.node.push(r.node1.dataIndex,r.node2.dataIndex))}return e},n.prototype.getTrajectoryDataIndices=function(){for(var e=Za(),t=Za(),r=0;r<this.edges.length;r++){var s=this.edges[r];if(!(s.dataIndex<0)){e.set(s.dataIndex,!0);for(var c=[s.node1],f=[s.node2],T=0;T<c.length;){var R=c[T];T++,t.set(R.dataIndex,!0);for(var I=0;I<R.inEdges.length;I++)e.set(R.inEdges[I].dataIndex,!0),c.push(R.inEdges[I].node1)}for(T=0;T<f.length;){var B=f[T];T++,t.set(B.dataIndex,!0);for(var I=0;I<B.outEdges.length;I++)e.set(B.outEdges[I].dataIndex,!0),f.push(B.outEdges[I].node2)}}}return{edge:e.keys(),node:t.keys()}},n}(),V3=function(){function n(e,t,r){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=r==null?-1:r}return n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,r=t.edgeData.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},n.prototype.getTrajectoryDataIndices=function(){var e=Za(),t=Za();e.set(this.dataIndex,!0);for(var r=[this.node1],s=[this.node2],c=0;c<r.length;){var f=r[c];c++,t.set(f.dataIndex,!0);for(var T=0;T<f.inEdges.length;T++)e.set(f.inEdges[T].dataIndex,!0),r.push(f.inEdges[T].node1)}for(c=0;c<s.length;){var R=s[c];c++,t.set(R.dataIndex,!0);for(var T=0;T<R.outEdges.length;T++)e.set(R.outEdges[T].dataIndex,!0),s.push(R.outEdges[T].node2)}return{edge:e.keys(),node:t.keys()}},n}();function z3(n,e){return{getValue:function(t){var r=this[n][e];return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,r){this.dataIndex>=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}Kn(uE,z3("hostGraph","data")),Kn(V3,z3("hostGraph","edgeData"));var XB=Z3;function Z5(n,e,t,r,s){for(var c=new XB(r),f=0;f<n.length;f++)c.addNode(nn(n[f].id,n[f].name,f),f);for(var T=[],R=[],I=0,f=0;f<e.length;f++){var B=e[f],Y=B.source,q=B.target;c.addEdge(Y,q,I)&&(R.push(B),T.push(nn(Ta(B.id,null),Y+" > "+q)),I++)}var ie=t.get("coordinateSystem"),ge;if(ie==="cartesian2d"||ie==="polar")ge=Tb(n,t);else{var Oe=tS.get(ie),Ne=Oe?Oe.dimensions||[]:[];Ui(Ne,"value")<0&&Ne.concat(["value"]);var He=aw(n,{coordDimensions:Ne,encodeDefine:t.getEncode()}).dimensions;ge=new M_(He,t),ge.initData(n)}var st=new M_(["value"],t);return st.initData(R,T),s&&s(ge,st),u5({mainData:ge,struct:c,structAttr:"graph",datas:{node:ge,edge:st},datasAttr:{node:"data",edge:"edgeData"}}),c.update(),c}var IR=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function s(){return r._categoriesData}this.legendVisualProvider=new VS(s,s),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),cd(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var s=t.edges||t.links||[],c=t.data||t.nodes||[],f=this;if(c&&s){k5(this);var T=Z5(c,s,this,!0,R);return At(T.edges,function(I){P5(I.node1,I.node2,this,I.dataIndex)},this),T.data}function R(I,B){I.wrapMethod("getItemModel",function(ge){var Oe=f._categoriesModels,Ne=ge.getShallow("category"),He=Oe[Ne];return He&&(He.parentModel=ge.parentModel,ge.parentModel=He),ge});var Y=Lv.prototype.getModel;function q(ge,Oe){var Ne=Y.call(this,ge,Oe);return Ne.resolveParentPath=ie,Ne}B.wrapMethod("getItemModel",function(ge){return ge.resolveParentPath=ie,ge.getModel=q,ge});function ie(ge){if(ge&&(ge[0]==="label"||ge[1]==="label")){var Oe=ge.slice();return ge[0]==="label"?Oe[0]="edgeLabel":ge[1]==="label"&&(Oe[1]="edgeLabel"),Oe}return ge}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,s){if(s==="edge"){var c=this.getData(),f=this.getDataParams(t,s),T=c.graph.getEdgeByIndex(t),R=c.getName(T.node1.dataIndex),I=c.getName(T.node2.dataIndex),B=[];return R!=null&&B.push(R),I!=null&&B.push(I),em("nameValue",{name:B.join(" > "),value:f.value,noValue:f.value==null})}var Y=zk({series:this,dataIndex:t,multipleSeries:r});return Y},e.prototype._updateCategoriesData=function(){var t=ar(this.option.categories||[],function(s){return s.value!=null?s:Ea({value:0},s)}),r=new M_(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(s){return r.getItemModel(s)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(oh),V5=IR,W3={type:"graphRoam",event:"graphRoam",update:"none"};function H3(n){n.registerChartView(U5),n.registerSeriesModel(V5),n.registerProcessor(T5),n.registerVisual(oE),n.registerVisual(A5),n.registerLayout(HB),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,I5),n.registerLayout(ky),n.registerCoordinateSystem("graphView",{dimensions:gM.dimensions,create:oC}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Bo),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Bo),n.registerAction(W3,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(s){var c=s.coordinateSystem,f=n3(c,e,void 0,r);s.setCenter&&s.setCenter(f.center),s.setZoom&&s.setZoom(f.zoom)})})}var JB=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),lC=function(n){ze(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new JB},e.prototype.buildPath=function(t,r){var s=Math.cos,c=Math.sin,f=r.r,T=r.width,R=r.angle,I=r.x-s(R)*T*(T>=f/3?1:2),B=r.y-c(R)*T*(T>=f/3?1:2);R=r.angle-Math.PI/2,t.moveTo(I,B),t.lineTo(r.x+s(R)*T,r.y+c(R)*T),t.lineTo(r.x+s(r.angle)*f,r.y+c(r.angle)*f),t.lineTo(r.x-s(R)*T,r.y-c(R)*T),t.lineTo(I,B)},e}(Od),QB=lC;function iH(n,e){var t=n.get("center"),r=e.getWidth(),s=e.getHeight(),c=Math.min(r,s),f=It(t[0],e.getWidth()),T=It(t[1],e.getHeight()),R=It(n.get("radius"),c/2);return{cx:f,cy:T,r:R}}function PM(n,e){var t=n==null?"":n+"";return e&&(ei(e)?t=e.replace("{value}",t):ja(e)&&(t=e(n))),t}var qB=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s){this.group.removeAll();var c=t.get(["axisLine","lineStyle","color"]),f=iH(t,s);this._renderMain(t,r,s,c,f),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,s,c,f){var T=this.group,R=t.get("clockwise"),I=-t.get("startAngle")/180*Math.PI,B=-t.get("endAngle")/180*Math.PI,Y=t.getModel("axisLine"),q=Y.get("roundCap"),ie=q?Mb:eg,ge=Y.get("show"),Oe=Y.getModel("lineStyle"),Ne=Oe.get("width"),He=[I,B];qb(He,!R),I=He[0],B=He[1];for(var st=B-I,pt=I,Ut=[],pn=0;ge&&pn<c.length;pn++){var yn=Math.min(Math.max(c[pn][0],0),1);B=I+st*yn;var jn=new ie({shape:{startAngle:pt,endAngle:B,cx:f.cx,cy:f.cy,clockwise:R,r0:f.r-Ne,r:f.r},silent:!0});jn.setStyle({fill:c[pn][1]}),jn.setStyle(Oe.getLineStyle(["color","width"])),Ut.push(jn),pt=B}Ut.reverse(),At(Ut,function(Nr){return T.add(Nr)});var Cr=function(Nr){if(Nr<=0)return c[0][1];var Rr;for(Rr=0;Rr<c.length;Rr++)if(c[Rr][0]>=Nr&&(Rr===0?0:c[Rr-1][0])<Nr)return c[Rr][1];return c[Rr-1][1]};this._renderTicks(t,r,s,Cr,f,I,B,R,Ne),this._renderTitleAndDetail(t,r,s,Cr,f),this._renderAnchor(t,f),this._renderPointer(t,r,s,Cr,f,I,B,R,Ne)},e.prototype._renderTicks=function(t,r,s,c,f,T,R,I,B){for(var Y=this.group,q=f.cx,ie=f.cy,ge=f.r,Oe=+t.get("min"),Ne=+t.get("max"),He=t.getModel("splitLine"),st=t.getModel("axisTick"),pt=t.getModel("axisLabel"),Ut=t.get("splitNumber"),pn=st.get("splitNumber"),yn=It(He.get("length"),ge),jn=It(st.get("length"),ge),Cr=T,Nr=(R-T)/Ut,Rr=Nr/pn,Er=He.getModel("lineStyle").getLineStyle(),ma=st.getModel("lineStyle").getLineStyle(),wa=He.get("distance"),Ga,Ei,Vi=0;Vi<=Ut;Vi++){if(Ga=Math.cos(Cr),Ei=Math.sin(Cr),He.get("show")){var ns=wa?wa+B:B,zo=new jh({shape:{x1:Ga*(ge-ns)+q,y1:Ei*(ge-ns)+ie,x2:Ga*(ge-yn-ns)+q,y2:Ei*(ge-yn-ns)+ie},style:Er,silent:!0});Er.stroke==="auto"&&zo.setStyle({stroke:c(Vi/Ut)}),Y.add(zo)}if(pt.get("show")){var ns=pt.get("distance")+wa,xs=PM(Sn(Vi/Ut*(Ne-Oe)+Oe),pt.get("formatter")),pl=c(Vi/Ut),Rl=Ga*(ge-yn-ns)+q,zl=Ei*(ge-yn-ns)+ie,Yc=pt.get("rotate"),kc=0;Yc==="radial"?(kc=-Cr+2*Math.PI,kc>Math.PI/2&&(kc+=Math.PI)):Yc==="tangential"?kc=-Cr-Math.PI/2:yo(Yc)&&(kc=Yc*Math.PI/180),kc===0?Y.add(new Tp({style:Cv(pt,{text:xs,x:Rl,y:zl,verticalAlign:Ei<-.8?"top":Ei>.8?"bottom":"middle",align:Ga<-.4?"left":Ga>.4?"right":"center"},{inheritColor:pl}),silent:!0})):Y.add(new Tp({style:Cv(pt,{text:xs,x:Rl,y:zl,verticalAlign:"middle",align:"center"},{inheritColor:pl}),silent:!0,originX:Rl,originY:zl,rotation:kc}))}if(st.get("show")&&Vi!==Ut){var ns=st.get("distance");ns=ns?ns+B:B;for(var tf=0;tf<=pn;tf++){Ga=Math.cos(Cr),Ei=Math.sin(Cr);var wf=new jh({shape:{x1:Ga*(ge-ns)+q,y1:Ei*(ge-ns)+ie,x2:Ga*(ge-jn-ns)+q,y2:Ei*(ge-jn-ns)+ie},silent:!0,style:ma});ma.stroke==="auto"&&wf.setStyle({stroke:c((Vi+tf/pn)/Ut)}),Y.add(wf),Cr+=Rr}Cr-=Rr}else Cr+=Nr}},e.prototype._renderPointer=function(t,r,s,c,f,T,R,I,B){var Y=this.group,q=this._data,ie=this._progressEls,ge=[],Oe=t.get(["pointer","show"]),Ne=t.getModel("progress"),He=Ne.get("show"),st=t.getData(),pt=st.mapDimension("value"),Ut=+t.get("min"),pn=+t.get("max"),yn=[Ut,pn],jn=[T,R];function Cr(Rr,Er){var ma=st.getItemModel(Rr),wa=ma.getModel("pointer"),Ga=It(wa.get("width"),f.r),Ei=It(wa.get("length"),f.r),Vi=t.get(["pointer","icon"]),ns=wa.get("offsetCenter"),zo=It(ns[0],f.r),xs=It(ns[1],f.r),pl=wa.get("keepAspect"),Rl;return Vi?Rl=ad(Vi,zo-Ga/2,xs-Ei,Ga,Ei,null,pl):Rl=new QB({shape:{angle:-Math.PI/2,width:Ga,r:Ei,x:zo,y:xs}}),Rl.rotation=-(Er+Math.PI/2),Rl.x=f.cx,Rl.y=f.cy,Rl}function Nr(Rr,Er){var ma=Ne.get("roundCap"),wa=ma?Mb:eg,Ga=Ne.get("overlap"),Ei=Ga?Ne.get("width"):B/st.count(),Vi=Ga?f.r-Ei:f.r-(Rr+1)*Ei,ns=Ga?f.r:f.r-Rr*Ei,zo=new wa({shape:{startAngle:T,endAngle:Er,cx:f.cx,cy:f.cy,clockwise:I,r0:Vi,r:ns}});return Ga&&(zo.z2=pn-st.get(pt,Rr)%pn),zo}(He||Oe)&&(st.diff(q).add(function(Rr){var Er=st.get(pt,Rr);if(Oe){var ma=Cr(Rr,T);Sv(ma,{rotation:-((isNaN(+Er)?jn[0]:yt(Er,yn,jn,!0))+Math.PI/2)},t),Y.add(ma),st.setItemGraphicEl(Rr,ma)}if(He){var wa=Nr(Rr,T),Ga=Ne.get("clip");Sv(wa,{shape:{endAngle:yt(Er,yn,jn,Ga)}},t),Y.add(wa),PE(t.seriesIndex,st.dataType,Rr,wa),ge[Rr]=wa}}).update(function(Rr,Er){var ma=st.get(pt,Rr);if(Oe){var wa=q.getItemGraphicEl(Er),Ga=wa?wa.rotation:T,Ei=Cr(Rr,Ga);Ei.rotation=Ga,vp(Ei,{rotation:-((isNaN(+ma)?jn[0]:yt(ma,yn,jn,!0))+Math.PI/2)},t),Y.add(Ei),st.setItemGraphicEl(Rr,Ei)}if(He){var Vi=ie[Er],ns=Vi?Vi.shape.endAngle:T,zo=Nr(Rr,ns),xs=Ne.get("clip");vp(zo,{shape:{endAngle:yt(ma,yn,jn,xs)}},t),Y.add(zo),PE(t.seriesIndex,st.dataType,Rr,zo),ge[Rr]=zo}}).execute(),st.each(function(Rr){var Er=st.getItemModel(Rr),ma=Er.getModel("emphasis"),wa=ma.get("focus"),Ga=ma.get("blurScope"),Ei=ma.get("disabled");if(Oe){var Vi=st.getItemGraphicEl(Rr),ns=st.getItemVisual(Rr,"style"),zo=ns.fill;if(Vi instanceof wp){var xs=Vi.style;Vi.useStyle(Ea({image:xs.image,x:xs.x,y:xs.y,width:xs.width,height:xs.height},ns))}else Vi.useStyle(ns),Vi.type!=="pointer"&&Vi.setColor(zo);Vi.setStyle(Er.getModel(["pointer","itemStyle"]).getItemStyle()),Vi.style.fill==="auto"&&Vi.setStyle("fill",c(yt(st.get(pt,Rr),yn,[0,1],!0))),Vi.z2EmphasisLift=0,Om(Vi,Er),ih(Vi,wa,Ga,Ei)}if(He){var pl=ge[Rr];pl.useStyle(st.getItemVisual(Rr,"style")),pl.setStyle(Er.getModel(["progress","itemStyle"]).getItemStyle()),pl.z2EmphasisLift=0,Om(pl,Er),ih(pl,wa,Ga,Ei)}}),this._progressEls=ge)},e.prototype._renderAnchor=function(t,r){var s=t.getModel("anchor"),c=s.get("show");if(c){var f=s.get("size"),T=s.get("icon"),R=s.get("offsetCenter"),I=s.get("keepAspect"),B=ad(T,r.cx-f/2+It(R[0],r.r),r.cy-f/2+It(R[1],r.r),f,f,null,I);B.z2=s.get("showAbove")?1:0,B.setStyle(s.getModel("itemStyle").getItemStyle()),this.group.add(B)}},e.prototype._renderTitleAndDetail=function(t,r,s,c,f){var T=this,R=t.getData(),I=R.mapDimension("value"),B=+t.get("min"),Y=+t.get("max"),q=new Qi,ie=[],ge=[],Oe=t.isAnimationEnabled(),Ne=t.get(["pointer","showAbove"]);R.diff(this._data).add(function(He){ie[He]=new Tp({silent:!0}),ge[He]=new Tp({silent:!0})}).update(function(He,st){ie[He]=T._titleEls[st],ge[He]=T._detailEls[st]}).execute(),R.each(function(He){var st=R.getItemModel(He),pt=R.get(I,He),Ut=new Qi,pn=c(yt(pt,[B,Y],[0,1],!0)),yn=st.getModel("title");if(yn.get("show")){var jn=yn.get("offsetCenter"),Cr=f.cx+It(jn[0],f.r),Nr=f.cy+It(jn[1],f.r),Rr=ie[He];Rr.attr({z2:Ne?0:2,style:Cv(yn,{x:Cr,y:Nr,text:R.getName(He),align:"center",verticalAlign:"middle"},{inheritColor:pn})}),Ut.add(Rr)}var Er=st.getModel("detail");if(Er.get("show")){var ma=Er.get("offsetCenter"),wa=f.cx+It(ma[0],f.r),Ga=f.cy+It(ma[1],f.r),Ei=It(Er.get("width"),f.r),Vi=It(Er.get("height"),f.r),ns=t.get(["progress","show"])?R.getItemVisual(He,"style").fill:pn,Rr=ge[He],zo=Er.get("formatter");Rr.attr({z2:Ne?0:2,style:Cv(Er,{x:wa,y:Ga,text:PM(pt,zo),width:isNaN(Ei)?null:Ei,height:isNaN(Vi)?null:Vi,align:"center",verticalAlign:"middle"},{inheritColor:ns})}),zC(Rr,{normal:Er},pt,function(pl){return PM(pl,zo)}),Oe&&hx(Rr,He,R,t,{getFormattedLabel:function(pl,Rl,zl,Yc,kc,tf){return PM(tf?tf.interpolatedValue:pt,zo)}}),Ut.add(Rr)}q.add(Ut)}),this.group.add(q),this._titleEls=ie,this._detailEls=ge},e.type="gauge",e}(vv),eU=qB,tU=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return uw(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(oh),nU=tU;function rU(n){n.registerChartView(eU),n.registerSeriesModel(nU)}var aU=["itemStyle","opacity"],iU=function(n){ze(e,n);function e(t,r){var s=n.call(this)||this,c=s,f=new ng,T=new Tp;return c.setTextContent(T),s.setTextGuideLine(f),s.updateData(t,r,!0),s}return e.prototype.updateData=function(t,r,s){var c=this,f=t.hostModel,T=t.getItemModel(r),R=t.getItemLayout(r),I=T.getModel("emphasis"),B=T.get(aU);B=B==null?1:B,s||e_(c),c.useStyle(t.getItemVisual(r,"style")),c.style.lineJoin="round",s?(c.setShape({points:R.points}),c.style.opacity=0,Sv(c,{style:{opacity:B}},f,r)):vp(c,{style:{opacity:B},shape:{points:R.points}},f,r),Om(c,T),this._updateLabel(t,r),ih(this,I.get("focus"),I.get("blurScope"),I.get("disabled"))},e.prototype._updateLabel=function(t,r){var s=this,c=this.getTextGuideLine(),f=s.getTextContent(),T=t.hostModel,R=t.getItemModel(r),I=t.getItemLayout(r),B=I.label,Y=t.getItemVisual(r,"style"),q=Y.fill;bv(f,bh(R),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:Y.opacity,defaultText:t.getName(r)},{normal:{align:B.textAlign,verticalAlign:B.verticalAlign}}),s.setTextConfig({local:!0,inside:!!B.inside,insideStroke:q,outsideFill:q});var ie=B.linePoints;c.setShape({points:ie}),s.textGuideLineConfig={anchor:ie?new $c(ie[0][0],ie[0][1]):null},vp(f,{style:{x:B.x,y:B.y}},T,r),f.attr({rotation:B.rotation,originX:B.x,originY:B.y,z2:10}),gI(s,_I(R),{stroke:q})},e}(tg),oU=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,s){var c=t.getData(),f=this._data,T=this.group;c.diff(f).add(function(R){var I=new iU(c,R);c.setItemGraphicEl(R,I),T.add(I)}).update(function(R,I){var B=f.getItemGraphicEl(I);B.updateData(c,R),T.add(B),c.setItemGraphicEl(R,B)}).remove(function(R){var I=f.getItemGraphicEl(R);H1(I,t,R)}).execute(),this._data=c},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(vv),sU=oU,lU=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new VS(Xa(this.getData,this),Xa(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return uw(this,{coordDimensions:["value"],encodeDefaulter:$i(ET,this)})},e.prototype._defaultLabelLine=function(t){cd(t,"labelLine",["show"]);var r=t.labelLine,s=t.emphasis.labelLine;r.show=r.show&&t.label.show,s.show=s.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),s=n.prototype.getDataParams.call(this,t),c=r.mapDimension("value"),f=r.getSum(c);return s.percent=f?+(r.get(c,t)/f*100).toFixed(2):0,s.$vars.push("percent"),s},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(oh),cU=lU;function uU(n,e){return mm(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function z5(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(R){return R}),s=[],c=e==="ascending",f=0,T=n.count();f<T;f++)s[f]=f;return ja(e)?s.sort(e):e!=="none"&&s.sort(function(R,I){return c?r[R]-r[I]:r[I]-r[R]}),s}function fU(n){var e=n.hostModel,t=e.get("orient");n.each(function(r){var s=n.getItemModel(r),c=s.getModel("label"),f=c.get("position"),T=s.getModel("labelLine"),R=n.getItemLayout(r),I=R.points,B=f==="inner"||f==="inside"||f==="center"||f==="insideLeft"||f==="insideRight",Y,q,ie,ge;if(B)f==="insideLeft"?(q=(I[0][0]+I[3][0])/2+5,ie=(I[0][1]+I[3][1])/2,Y="left"):f==="insideRight"?(q=(I[1][0]+I[2][0])/2-5,ie=(I[1][1]+I[2][1])/2,Y="right"):(q=(I[0][0]+I[1][0]+I[2][0]+I[3][0])/4,ie=(I[0][1]+I[1][1]+I[2][1]+I[3][1])/4,Y="center"),ge=[[q,ie],[q,ie]];else{var Oe=void 0,Ne=void 0,He=void 0,st=void 0,pt=T.get("length");f==="left"?(Oe=(I[3][0]+I[0][0])/2,Ne=(I[3][1]+I[0][1])/2,He=Oe-pt,q=He-5,Y="right"):f==="right"?(Oe=(I[1][0]+I[2][0])/2,Ne=(I[1][1]+I[2][1])/2,He=Oe+pt,q=He+5,Y="left"):f==="top"?(Oe=(I[3][0]+I[0][0])/2,Ne=(I[3][1]+I[0][1])/2,st=Ne-pt,ie=st-5,Y="center"):f==="bottom"?(Oe=(I[1][0]+I[2][0])/2,Ne=(I[1][1]+I[2][1])/2,st=Ne+pt,ie=st+5,Y="center"):f==="rightTop"?(Oe=t==="horizontal"?I[3][0]:I[1][0],Ne=t==="horizontal"?I[3][1]:I[1][1],t==="horizontal"?(st=Ne-pt,ie=st-5,Y="center"):(He=Oe+pt,q=He+5,Y="top")):f==="rightBottom"?(Oe=I[2][0],Ne=I[2][1],t==="horizontal"?(st=Ne+pt,ie=st+5,Y="center"):(He=Oe+pt,q=He+5,Y="bottom")):f==="leftTop"?(Oe=I[0][0],Ne=t==="horizontal"?I[0][1]:I[1][1],t==="horizontal"?(st=Ne-pt,ie=st-5,Y="center"):(He=Oe-pt,q=He-5,Y="right")):f==="leftBottom"?(Oe=t==="horizontal"?I[1][0]:I[3][0],Ne=t==="horizontal"?I[1][1]:I[2][1],t==="horizontal"?(st=Ne+pt,ie=st+5,Y="center"):(He=Oe-pt,q=He-5,Y="right")):(Oe=(I[1][0]+I[2][0])/2,Ne=(I[1][1]+I[2][1])/2,t==="horizontal"?(st=Ne+pt,ie=st+5,Y="center"):(He=Oe+pt,q=He+5,Y="left")),t==="horizontal"?(He=Oe,q=He):(st=Ne,ie=st),ge=[[Oe,Ne],[He,st]]}R.label={linePoints:ge,x:q,y:ie,verticalAlign:"middle",textAlign:Y,inside:B}})}function dU(n,e){n.eachSeriesByType("funnel",function(t){var r=t.getData(),s=r.mapDimension("value"),c=t.get("sort"),f=uU(t,e),T=t.get("orient"),R=f.width,I=f.height,B=z5(r,c),Y=f.x,q=f.y,ie=T==="horizontal"?[It(t.get("minSize"),I),It(t.get("maxSize"),I)]:[It(t.get("minSize"),R),It(t.get("maxSize"),R)],ge=r.getDataExtent(s),Oe=t.get("min"),Ne=t.get("max");Oe==null&&(Oe=Math.min(ge[0],0)),Ne==null&&(Ne=ge[1]);var He=t.get("funnelAlign"),st=t.get("gap"),pt=T==="horizontal"?R:I,Ut=(pt-st*(r.count()-1))/r.count(),pn=function(Ga,Ei){if(T==="horizontal"){var Vi=r.get(s,Ga)||0,ns=yt(Vi,[Oe,Ne],ie,!0),zo=void 0;switch(He){case"top":zo=q;break;case"center":zo=q+(I-ns)/2;break;case"bottom":zo=q+(I-ns);break}return[[Ei,zo],[Ei,zo+ns]]}var xs=r.get(s,Ga)||0,pl=yt(xs,[Oe,Ne],ie,!0),Rl;switch(He){case"left":Rl=Y;break;case"center":Rl=Y+(R-pl)/2;break;case"right":Rl=Y+R-pl;break}return[[Rl,Ei],[Rl+pl,Ei]]};c==="ascending"&&(Ut=-Ut,st=-st,T==="horizontal"?Y+=R:q+=I,B=B.reverse());for(var yn=0;yn<B.length;yn++){var jn=B[yn],Cr=B[yn+1],Nr=r.getItemModel(jn);if(T==="horizontal"){var Rr=Nr.get(["itemStyle","width"]);Rr==null?Rr=Ut:(Rr=It(Rr,R),c==="ascending"&&(Rr=-Rr));var Er=pn(jn,Y),ma=pn(Cr,Y+Rr);Y+=Rr+st,r.setItemLayout(jn,{points:Er.concat(ma.slice().reverse())})}else{var wa=Nr.get(["itemStyle","height"]);wa==null?wa=Ut:(wa=It(wa,I),c==="ascending"&&(wa=-wa));var Er=pn(jn,q),ma=pn(Cr,q+wa);q+=wa+st,r.setItemLayout(jn,{points:Er.concat(ma.slice().reverse())})}}fU(r)})}function pU(n){n.registerChartView(sU),n.registerSeriesModel(cU),n.registerLayout(dU),n.registerProcessor(kg("funnel"))}var vU=.3,hU=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new Qi,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,r,s,c){this._progressiveEls=null;var f=this._dataGroup,T=t.getData(),R=this._data,I=t.coordinateSystem,B=I.dimensions,Y=DR(t);T.diff(R).add(q).update(ie).remove(ge).execute();function q(Ne){var He=W5(T,f,Ne,B,I);G3(He,T,Ne,Y)}function ie(Ne,He){var st=R.getItemGraphicEl(He),pt=RM(T,Ne,B,I);T.setItemGraphicEl(Ne,st),vp(st,{shape:{points:pt}},t,Ne),e_(st),G3(st,T,Ne,Y)}function ge(Ne){var He=R.getItemGraphicEl(Ne);f.remove(He)}if(!this._initialized){this._initialized=!0;var Oe=mU(I,t,function(){setTimeout(function(){f.removeClipPath()})});f.setClipPath(Oe)}this._data=T},e.prototype.incrementalPrepareRender=function(t,r,s){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,r,s){for(var c=r.getData(),f=r.coordinateSystem,T=f.dimensions,R=DR(r),I=this._progressiveEls=[],B=t.start;B<t.end;B++){var Y=W5(c,this._dataGroup,B,T,f);Y.incremental=!0,G3(Y,c,B,R),I.push(Y)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(vv);function mU(n,e,t){var r=n.model,s=n.getRect(),c=new jd({shape:{x:s.x,y:s.y,width:s.width,height:s.height}}),f=r.get("layout")==="horizontal"?"width":"height";return c.setShape(f,0),Sv(c,{shape:{width:s.width,height:s.height}},e,t),c}function RM(n,e,t,r){for(var s=[],c=0;c<t.length;c++){var f=t[c],T=n.get(n.mapDimension(f),e);gU(T,r.getAxis(f).type)||s.push(r.dataToPoint(T,f))}return s}function W5(n,e,t,r,s){var c=RM(n,t,r,s),f=new ng({shape:{points:c},z2:10});return e.add(f),n.setItemGraphicEl(t,f),f}function DR(n){var e=n.get("smooth",!0);return e===!0&&(e=vU),e=Ru(e),Sr(e)&&(e=0),{smooth:e}}function G3(n,e,t,r){n.useStyle(e.getItemVisual(t,"style")),n.style.fill=null,n.setShape("smooth",r.smooth);var s=e.getItemModel(t),c=s.getModel("emphasis");Om(n,s,"lineStyle"),ih(n,c.get("focus"),c.get("blurScope"),c.get("disabled"))}function gU(n,e){return e==="category"?n==null:n==null||isNaN(n)}var _U=hU,yU=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,r){return Tb(null,this,{useEncodeDefaulter:Xa(bU,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var r=this.coordinateSystem,s=this.getData(),c=[];return r.eachActiveState(s,function(f,T){t===f&&c.push(s.getRawIndex(T))}),c},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(oh);function bU(n){var e=n.ecModel.getComponent("parallel",n.get("parallelIndex"));if(!!e){var t={};return At(e.dimensions,function(r){var s=xU(r);t[r]=s}),t}}function xU(n){return+n.replace("dim","")}var EU=yU,SU=["lineStyle","opacity"],H5={seriesType:"parallel",reset:function(n,e){var t=n.coordinateSystem,r={normal:n.get(["lineStyle","opacity"]),active:n.get("activeOpacity"),inactive:n.get("inactiveOpacity")};return{progress:function(s,c){t.eachActiveState(c,function(f,T){var R=r[f];if(f==="normal"&&c.hasItemOption){var I=c.getItemModel(T).get(SU,!0);I!=null&&(R=I)}var B=c.ensureUniqueItemVisual(T,"style");B.opacity=R},s.start,s.end)}}}},CU=H5;function wU(n){TU(n),AU(n)}function TU(n){if(!n.parallel){var e=!1;At(n.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(n.parallel=[{}])}}function AU(n){var e=Bf(n.parallelAxis);At(e,function(t){if(!!to(t)){var r=t.parallelIndex||0,s=Bf(n.parallel)[r];s&&s.parallelAxisDefault&&ba(t,s.parallelAxisDefault,!1)}})}var MU=5,kU=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s){this._model=t,this._api=s,this._handlers||(this._handlers={},At(PU,function(c,f){s.getZr().on(f,this._handlers[f]=Xa(c,this))},this)),ye(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,r){Ze(this,"_throttledDispatchExpand"),At(this._handlers,function(s,c){r.getZr().off(c,s)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Ea({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Eh),PU={mousedown:function(n){cC(this,"click")&&(this._mouseDownPoint=[n.offsetX,n.offsetY])},mouseup:function(n){var e=this._mouseDownPoint;if(cC(this,"click")&&e){var t=[n.offsetX,n.offsetY],r=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(r>MU)return;var s=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);s.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:s.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!cC(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function cC(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var RU=kU,OU=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&ba(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var s=t.get("parallelIndex");return s!=null&&r.getComponent("parallel",s)===this},e.prototype.setAxisExpand=function(t){At(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],s=Yn(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(c){return(c.get("parallelIndex")||0)===this.componentIndex},this);At(s,function(c){t.push("dim"+c.get("dim")),r.push(c.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Mp),IU=OU,DU=function(n){ze(e,n);function e(t,r,s,c,f){var T=n.call(this,t,r,s)||this;return T.type=c||"value",T.axisIndex=f,T}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Dv),kw=DU;function uC(n,e,t,r,s,c){n=n||0;var f=t[1]-t[0];if(s!=null&&(s=Pw(s,[0,f])),c!=null&&(c=Math.max(c,s!=null?s:0)),r==="all"){var T=Math.abs(e[1]-e[0]);T=Pw(T,[0,f]),s=c=Pw(T,[s,c]),r=0}e[0]=Pw(e[0],t),e[1]=Pw(e[1],t);var R=$3(e,r);e[r]+=n;var I=s||0,B=t.slice();R.sign<0?B[0]+=I:B[1]-=I,e[r]=Pw(e[r],B);var Y;return Y=$3(e,r),s!=null&&(Y.sign!==R.sign||Y.span<s)&&(e[1-r]=e[r]+R.sign*s),Y=$3(e,r),c!=null&&Y.span>c&&(e[1-r]=e[r]+Y.sign*c),e}function $3(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Pw(n,e){return Math.min(e[1]!=null?e[1]:Infinity,Math.max(e[0]!=null?e[0]:-Infinity,n))}var NR=At,dh=Math.min,G5=Math.max,$5=Math.floor,NU=Math.ceil,K5=Sn,K3=Math.PI,LU=function(){function n(e,t,r){this.type="parallel",this._axesMap=Za(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var s=e.dimensions,c=e.parallelAxisIndex;NR(s,function(f,T){var R=c[T],I=t.getComponent("parallelAxis",R),B=this._axesMap.set(f,new kw(f,qP(I),[0,0],I.get("type"),R)),Y=B.type==="category";B.onBand=Y&&I.get("boundaryGap"),B.inverse=I.get("inverse"),I.axis=B,B.model=I,B.coordinateSystem=I.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,s=t.layoutBase,c=t.pixelDimIndex,f=e[1-c],T=e[c];return f>=r&&f<=r+t.axisLength&&T>=s&&T<=s+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(!!e.contains(r,t)){var s=r.getData();NR(this.dimensions,function(c){var f=this._axesMap.get(c);f.scale.unionExtentFromData(s,s.mapDimension(c)),vw(f.scale,f.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=mm(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],s=["width","height"],c=e.get("layout"),f=c==="horizontal"?0:1,T=t[s[f]],R=[0,T],I=this.dimensions.length,B=LR(e.get("axisExpandWidth"),R),Y=LR(e.get("axisExpandCount")||0,[0,I]),q=e.get("axisExpandable")&&I>3&&I>Y&&Y>1&&B>0&&T>0,ie=e.get("axisExpandWindow"),ge;if(ie)ge=LR(ie[1]-ie[0],R),ie[1]=ie[0]+ge;else{ge=LR(B*(Y-1),R);var Oe=e.get("axisExpandCenter")||$5(I/2);ie=[B*Oe-ge/2],ie[1]=ie[0]+ge}var Ne=(T-ge)/(I-Y);Ne<3&&(Ne=0);var He=[$5(K5(ie[0]/B,1))+1,NU(K5(ie[1]/B,1))-1],st=Ne/B*ie[0];return{layout:c,pixelDimIndex:f,layoutBase:t[r[f]],layoutLength:T,axisBase:t[r[1-f]],axisLength:t[s[1-f]],axisExpandable:q,axisExpandWidth:B,axisCollapseWidth:Ne,axisExpandWindow:ie,axisCount:I,winInnerIndices:He,axisExpandWindow0Pos:st}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,s=this._makeLayoutInfo(),c=s.layout;t.each(function(f){var T=[0,s.axisLength],R=f.inverse?1:0;f.setExtent(T[R],T[1-R])}),NR(r,function(f,T){var R=(s.axisExpandable?jU:FU)(T,s),I={horizontal:{x:R.position,y:s.axisLength},vertical:{x:0,y:R.position}},B={horizontal:K3/2,vertical:0},Y=[I[c].x+e.x,I[c].y+e.y],q=B[c],ie=Df();Wu(ie,ie,q),Sc(ie,ie,Y),this._axesLayout[f]={position:Y,rotation:q,transform:ie,axisNameAvailableWidth:R.axisNameAvailableWidth,axisLabelShow:R.axisLabelShow,nameTruncateMaxWidth:R.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,s){r==null&&(r=0),s==null&&(s=e.count());var c=this._axesMap,f=this.dimensions,T=[],R=[];At(f,function(Ne){T.push(e.mapDimension(Ne)),R.push(c.get(Ne).model)});for(var I=this.hasAxisBrushed(),B=r;B<s;B++){var Y=void 0;if(!I)Y="normal";else{Y="active";for(var q=e.getValues(T,B),ie=0,ge=f.length;ie<ge;ie++){var Oe=R[ie].getActiveState(q[ie]);if(Oe==="inactive"){Y="inactive";break}}}t(Y,B)}},n.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,r=!1,s=0,c=e.length;s<c;s++)t.get(e[s]).model.getActiveState()!=="normal"&&(r=!0);return r},n.prototype.axisCoordToPoint=function(e,t){var r=this._axesLayout[t];return zd([e,0],r.transform)},n.prototype.getAxisLayout=function(e){return Kr(this._axesLayout[e])},n.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),r=t.pixelDimIndex,s=t.axisExpandWindow.slice(),c=s[1]-s[0],f=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:s};var T=e[r]-t.layoutBase-t.axisExpandWindow0Pos,R,I="slide",B=t.axisCollapseWidth,Y=this._model.get("axisExpandSlideTriggerArea"),q=Y[0]!=null;if(B)q&&B&&T<c*Y[0]?(I="jump",R=T-c*Y[2]):q&&B&&T>c*(1-Y[0])?(I="jump",R=T-c*(1-Y[2])):(R=T-c*Y[1])>=0&&(R=T-c*(1-Y[1]))<=0&&(R=0),R*=t.axisExpandWidth/B,R?uC(R,s,f,"all"):I="none";else{var ie=s[1]-s[0],ge=f[1]*T/ie;s=[G5(0,ge-ie/2)],s[1]=dh(f[1],s[0]+ie),s[0]=s[1]-ie}return{axisExpandWindow:s,behavior:I}},n}();function LR(n,e){return dh(G5(n,e[0]),e[1])}function FU(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function jU(n,e){var t=e.layoutLength,r=e.axisExpandWidth,s=e.axisCount,c=e.axisCollapseWidth,f=e.winInnerIndices,T,R=c,I=!1,B;return n<f[0]?(T=n*c,B=c):n<=f[1]?(T=e.axisExpandWindow0Pos+n*r-e.axisExpandWindow[0],R=r,I=!0):(T=t-(s-1-n)*c,B=c),{position:T,axisNameAvailableWidth:R,axisLabelShow:I,nameTruncateMaxWidth:B}}var BU=LU;function UU(n,e){var t=[];return n.eachComponent("parallel",function(r,s){var c=new BU(r,n,e);c.name="parallel_"+s,c.resize(r,e),r.coordinateSystem=c,c.model=r,t.push(c)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var s=r.getReferringComponents("parallel",vs).models[0];r.coordinateSystem=s.coordinateSystem}}),t}var ZU={create:UU},Bb=ZU,Y5=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return Oa([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var r=this.activeIntervals=Kr(t);if(r)for(var s=r.length-1;s>=0;s--)In(r[s])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var s=r[0];if(s[0]<=t&&t<=s[1])return"active"}else for(var c=0,f=r.length;c<f;c++)if(r[c][0]<=t&&t<=r[c][1])return"active";return"inactive"},e}(Mp);Kn(Y5,nM);var X5=Y5,fC=!0,OM=Math.min,Rw=Math.max,VU=Math.pow,zU=1e4,WU=6,HU=6,J5="globalPan",GU={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Y3={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Q5={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},q5=0,e8=function(n){ze(e,n);function e(t){var r=n.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=t,r.group=new Qi,r._uid="brushController_"+q5++,At(BR,function(s,c){this._handlers[c]=Xa(s,this)},r),r}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var r=this._zr;this._enableGlobalPan||Aj(r,J5,this._uid),At(this._handlers,function(s,c){r.on(c,s)}),this._brushType=t.brushType,this._brushOption=ba(Kr(Q5),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;Mj(t,J5,this._uid),At(this._handlers,function(r,s){t.off(s,r)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var r=this._panels={};At(t,function(s){r[s.panelId]=Kr(s)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=r.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=ar(t,function(q){return ba(Kr(Q5),q,!0)});var r="\0-brush-index-",s=this._covers,c=this._covers=[],f=this,T=this._creatingCover;return new Sb(s,t,I,R).add(B).update(B).remove(Y).execute(),this;function R(q,ie){return(q.id!=null?q.id:r+ie)+"-"+q.brushType}function I(q,ie){return R(q.__brushOption,ie)}function B(q,ie){var ge=t[q];if(ie!=null&&s[ie]===T)c[q]=s[ie];else{var Oe=c[q]=ie!=null?(s[ie].__brushOption=ge,s[ie]):n8(f,t8(f,ge));X3(f,Oe)}}function Y(q){s[q]!==T&&f.group.remove(s[q])}},e.prototype.unmount=function(){return this.enableBrush(!1),Ph(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Nc);function t8(n,e){var t=Ow[e.brushType].createCover(n,e);return t.__brushOption=e,a8(t,e),n.group.add(t),t}function n8(n,e){var t=J3(e);return t.endCreating&&(t.endCreating(n,e),a8(e,e.__brushOption)),e}function r8(n,e){var t=e.__brushOption;J3(e).updateCoverShape(n,e,t.range,t)}function a8(n,e){var t=e.z;t==null&&(t=zU),n.traverse(function(r){r.z=t,r.z2=t})}function X3(n,e){J3(e).updateCommon(n,e),r8(n,e)}function J3(n){return Ow[n.__brushOption.brushType]}function Q3(n,e,t){var r=n._panels;if(!r)return fC;var s,c=n._transform;return At(r,function(f){f.isTargetByCursor(e,t,c)&&(s=f)}),s}function i8(n,e){var t=n._panels;if(!t)return fC;var r=e.__brushOption.panelId;return r!=null?t[r]:fC}function Ph(n){var e=n._covers,t=e.length;return At(e,function(r){n.group.remove(r)},n),e.length=0,!!t}function dC(n,e){var t=ar(n._covers,function(r){var s=r.__brushOption,c=Kr(s.range);return{brushType:s.brushType,panelId:s.panelId,range:c}});n.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function $U(n){var e=n._track;if(!e.length)return!1;var t=e[e.length-1],r=e[0],s=t[0]-r[0],c=t[1]-r[1],f=VU(s*s+c*c,.5);return f>WU}function o8(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function s8(n,e,t,r){var s=new Qi;return s.add(new jd({name:"main",style:q3(t),silent:!0,draggable:!0,cursor:"move",drift:$i(c8,n,e,s,["n","s","w","e"]),ondragend:$i(dC,e,{isEnd:!0})})),At(r,function(c){s.add(new jd({name:c.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:$i(c8,n,e,s,c),ondragend:$i(dC,e,{isEnd:!0})}))}),s}function M0(n,e,t,r){var s=r.brushStyle.lineWidth||0,c=Rw(s,HU),f=t[0][0],T=t[1][0],R=f-s/2,I=T-s/2,B=t[0][1],Y=t[1][1],q=B-c+s/2,ie=Y-c+s/2,ge=B-f,Oe=Y-T,Ne=ge+s,He=Oe+s;x1(n,e,"main",f,T,ge,Oe),r.transformable&&(x1(n,e,"w",R,I,c,He),x1(n,e,"e",q,I,c,He),x1(n,e,"n",R,I,Ne,c),x1(n,e,"s",R,ie,Ne,c),x1(n,e,"nw",R,I,c,c),x1(n,e,"ne",q,I,c,c),x1(n,e,"sw",R,ie,c,c),x1(n,e,"se",q,ie,c,c))}function FR(n,e){var t=e.__brushOption,r=t.transformable,s=e.childAt(0);s.useStyle(q3(t)),s.attr({silent:!r,cursor:r?"move":"default"}),At([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(c){var f=e.childOfName(c.join("")),T=c.length===1?IM(n,c[0]):pC(n,c);f&&f.attr({silent:!r,invisible:!r,cursor:r?Y3[T]+"-resize":null})})}function x1(n,e,t,r,s,c,f){var T=e.childOfName(t);T&&T.setShape(DM(jR(n,e,[[r,s],[r+c,s+f]])))}function q3(n){return Pi({strokeNoScale:!0},n.brushStyle)}function l8(n,e,t,r){var s=[OM(n,t),OM(e,r)],c=[Rw(n,t),Rw(e,r)];return[[s[0],c[0]],[s[1],c[1]]]}function KU(n){return vb(n.group)}function IM(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},s=Yu(t[e],KU(n));return r[s]}function pC(n,e){var t=[IM(n,e[0]),IM(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function c8(n,e,t,r,s,c){var f=t.__brushOption,T=n.toRectRange(f.range),R=Bm(e,s,c);At(r,function(I){var B=GU[I];T[B[0]][B[1]]+=R[B[0]]}),f.range=n.fromRectRange(l8(T[0][0],T[1][0],T[0][1],T[1][1])),X3(e,t),dC(e,{isEnd:!1})}function YU(n,e,t,r){var s=e.__brushOption.range,c=Bm(n,t,r);At(s,function(f){f[0]+=c[0],f[1]+=c[1]}),X3(n,e),dC(n,{isEnd:!1})}function Bm(n,e,t){var r=n.group,s=r.transformCoordToLocal(e,t),c=r.transformCoordToLocal(0,0);return[s[0]-c[0],s[1]-c[1]]}function jR(n,e,t){var r=i8(n,e);return r&&r!==fC?r.clipPath(t,n._transform):Kr(t)}function DM(n){var e=OM(n[0][0],n[1][0]),t=OM(n[0][1],n[1][1]),r=Rw(n[0][0],n[1][0]),s=Rw(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:s-t}}function XU(n,e,t){if(!(!n._brushType||oH(n,e.offsetX,e.offsetY))){var r=n._zr,s=n._covers,c=Q3(n,e,t);if(!n._dragging)for(var f=0;f<s.length;f++){var T=s[f].__brushOption;if(c&&(c===fC||T.panelId===c.panelId)&&Ow[T.brushType].contain(s[f],t[0],t[1]))return}c&&r.setCursorStyle("crosshair")}}function NM(n){var e=n.event;e.preventDefault&&e.preventDefault()}function e4(n,e,t){return n.childOfName("main").contain(e,t)}function t4(n,e,t,r){var s=n._creatingCover,c=n._creatingPanel,f=n._brushOption,T;if(n._track.push(t.slice()),$U(n)||s){if(c&&!s){f.brushMode==="single"&&Ph(n);var R=Kr(f);R.brushType=n4(R.brushType,c),R.panelId=c===fC?null:c.panelId,s=n._creatingCover=t8(n,R),n._covers.push(s)}if(s){var I=Ow[n4(n._brushType,c)],B=s.__brushOption;B.range=I.getCreatingRange(jR(n,s,n._track)),r&&(n8(n,s),I.updateCommon(n,s)),r8(n,s),T={isEnd:r}}}else r&&f.brushMode==="single"&&f.removeOnClick&&Q3(n,e,t)&&Ph(n)&&(T={isEnd:r,removeOnClick:!0});return T}function n4(n,e){return n==="auto"?e.defaultBrushType:n}var BR={mousedown:function(n){if(this._dragging)u8(this,n);else if(!n.target||!n.target.draggable){NM(n);var e=this.group.transformCoordToLocal(n.offsetX,n.offsetY);this._creatingCover=null;var t=this._creatingPanel=Q3(this,n,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(n){var e=n.offsetX,t=n.offsetY,r=this.group.transformCoordToLocal(e,t);if(XU(this,n,r),this._dragging){NM(n);var s=t4(this,n,r,!1);s&&dC(this,s)}},mouseup:function(n){u8(this,n)}};function u8(n,e){if(n._dragging){NM(e);var t=e.offsetX,r=e.offsetY,s=n.group.transformCoordToLocal(t,r),c=t4(n,e,s,!0);n._dragging=!1,n._track=[],n._creatingCover=null,c&&dC(n,c)}}function oH(n,e,t){var r=n._zr;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}var Ow={lineX:r4(0),lineY:r4(1),rect:{createCover:function(n,e){function t(r){return r}return s8({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=o8(n);return l8(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){M0(n,e,t,r)},updateCommon:FR,contain:e4},polygon:{createCover:function(n,e){var t=new Qi;return t.add(new ng({name:"main",style:q3(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new tg({name:"main",draggable:!0,drift:$i(YU,n,e),ondragend:$i(dC,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:jR(n,e,t)})},updateCommon:FR,contain:e4}};function r4(n){return{createCover:function(e,t){return s8({toRectRange:function(r){var s=[r,[0,100]];return n&&s.reverse(),s},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=o8(e),r=OM(t[0][n],t[1][n]),s=Rw(t[0][n],t[1][n]);return[r,s]},updateCoverShape:function(e,t,r,s){var c,f=i8(e,t);if(f!==fC&&f.getLinearBrushOtherExtent)c=f.getLinearBrushOtherExtent(n);else{var T=e._zr;c=[0,[T.getWidth(),T.getHeight()][1-n]]}var R=[r,c];n&&R.reverse(),M0(e,t,R,s)},updateCommon:FR,contain:e4}}var f8=e8;function LM(n){return n=ZR(n),function(e){return R2(e,n)}}function d8(n,e){return n=ZR(n),function(t){var r=e!=null?e:t,s=r?n.width:n.height,c=r?n.x:n.y;return[c,c+(s||0)]}}function UR(n,e,t){var r=ZR(n);return function(s,c){return r.contain(c[0],c[1])&&!sR(s,e,t)}}function ZR(n){return ra.create(n)}var a4=["axisLine","axisTickLabel","axisName"],VR=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new f8(r.getZr())).on("brush",Xa(this._onBrush,this))},e.prototype.render=function(t,r,s,c){if(!JU(t,r,c)){this.axisModel=t,this.api=s,this.group.removeAll();var f=this._axisGroup;if(this._axisGroup=new Qi,this.group.add(this._axisGroup),!!t.get("show")){var T=qU(t,r),R=T.coordinateSystem,I=t.getAreaSelectStyle(),B=I.width,Y=t.axis.dim,q=R.getAxisLayout(Y),ie=Ea({strokeContainThreshold:B},q),ge=new Db(t,ie);At(a4,ge.add,ge),this._axisGroup.add(ge.getGroup()),this._refreshBrushController(ie,I,t,T,B,s),hb(f,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,s,c,f,T){var R=s.axis.getExtent(),I=R[1]-R[0],B=Math.min(30,Math.abs(I)*.1),Y=ra.create({x:R[0],y:-f/2,width:I,height:f});Y.x-=B,Y.width+=2*B,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:LM(Y),isTargetByCursor:UR(Y,T,c),getLinearBrushOtherExtent:d8(Y,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(QU(s))},e.prototype._onBrush=function(t){var r=t.areas,s=this.axisModel,c=s.axis,f=ar(r,function(T){return[c.coordToData(T.range[0],!0),c.coordToData(T.range[1],!0)]});(!s.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:s.id,intervals:f})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Eh);function JU(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function QU(n){var e=n.axis;return ar(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function qU(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}var FM=VR,eZ={type:"axisAreaSelect",event:"axisAreaSelected"};function p8(n){n.registerAction(eZ,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var tZ={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function nZ(n){n.registerComponentView(RU),n.registerComponentModel(IU),n.registerCoordinateSystem("parallel",Bb),n.registerPreprocessor(wU),n.registerComponentModel(X5),n.registerComponentView(FM),WS(n,"parallel",X5,tZ),p8(n)}function zR(n){Ud(nZ),n.registerChartView(_U),n.registerSeriesModel(EU),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,CU)}var i4=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),rZ=function(n){ze(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new i4},e.prototype.buildPath=function(t,r){var s=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+s,r.y2),t.bezierCurveTo(r.cpx2+s,r.cpy2,r.cpx1+s,r.cpy1,r.x1+s,r.y1)):(t.lineTo(r.x2,r.y2+s),t.bezierCurveTo(r.cpx2,r.cpy2+s,r.cpx1,r.cpy1+s,r.x1,r.y1+s)),t.closePath()},e.prototype.highlight=function(){qg(this)},e.prototype.downplay=function(){j0(this)},e}(Od),aZ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,s){var c=this,f=t.getGraph(),T=this.group,R=t.layoutInfo,I=R.width,B=R.height,Y=t.getData(),q=t.getData("edge"),ie=t.get("orient");this._model=t,T.removeAll(),T.x=R.x,T.y=R.y,f.eachEdge(function(ge){var Oe=new rZ,Ne=nu(Oe);Ne.dataIndex=ge.dataIndex,Ne.seriesIndex=t.seriesIndex,Ne.dataType="edge";var He=ge.getModel(),st=He.getModel("lineStyle"),pt=st.get("curveness"),Ut=ge.node1.getLayout(),pn=ge.node1.getModel(),yn=pn.get("localX"),jn=pn.get("localY"),Cr=ge.node2.getLayout(),Nr=ge.node2.getModel(),Rr=Nr.get("localX"),Er=Nr.get("localY"),ma=ge.getLayout(),wa,Ga,Ei,Vi,ns,zo,xs,pl;Oe.shape.extent=Math.max(1,ma.dy),Oe.shape.orient=ie,ie==="vertical"?(wa=(yn!=null?yn*I:Ut.x)+ma.sy,Ga=(jn!=null?jn*B:Ut.y)+Ut.dy,Ei=(Rr!=null?Rr*I:Cr.x)+ma.ty,Vi=Er!=null?Er*B:Cr.y,ns=wa,zo=Ga*(1-pt)+Vi*pt,xs=Ei,pl=Ga*pt+Vi*(1-pt)):(wa=(yn!=null?yn*I:Ut.x)+Ut.dx,Ga=(jn!=null?jn*B:Ut.y)+ma.sy,Ei=Rr!=null?Rr*I:Cr.x,Vi=(Er!=null?Er*B:Cr.y)+ma.ty,ns=wa*(1-pt)+Ei*pt,zo=Ga,xs=wa*pt+Ei*(1-pt),pl=Vi),Oe.setShape({x1:wa,y1:Ga,x2:Ei,y2:Vi,cpx1:ns,cpy1:zo,cpx2:xs,cpy2:pl}),Oe.useStyle(st.getItemStyle()),v8(Oe.style,ie,ge);var Rl=""+He.get("value"),zl=bh(He,"edgeLabel");bv(Oe,zl,{labelFetcher:{getFormattedLabel:function(tf,wf,su,ic,Uc,bu){return t.getFormattedLabel(tf,wf,"edge",ic,Ot(Uc,zl.normal&&zl.normal.get("formatter"),Rl),bu)}},labelDataIndex:ge.dataIndex,defaultText:Rl}),Oe.setTextConfig({position:"inside"});var Yc=He.getModel("emphasis");Om(Oe,He,"lineStyle",function(tf){var wf=tf.getItemStyle();return v8(wf,ie,ge),wf}),T.add(Oe),q.setItemGraphicEl(ge.dataIndex,Oe);var kc=Yc.get("focus");ih(Oe,kc==="adjacency"?ge.getAdjacentDataIndices():kc==="trajectory"?ge.getTrajectoryDataIndices():kc,Yc.get("blurScope"),Yc.get("disabled"))}),f.eachNode(function(ge){var Oe=ge.getLayout(),Ne=ge.getModel(),He=Ne.get("localX"),st=Ne.get("localY"),pt=Ne.getModel("emphasis"),Ut=new jd({shape:{x:He!=null?He*I:Oe.x,y:st!=null?st*B:Oe.y,width:Oe.dx,height:Oe.dy},style:Ne.getModel("itemStyle").getItemStyle(),z2:10});bv(Ut,bh(Ne),{labelFetcher:{getFormattedLabel:function(yn,jn){return t.getFormattedLabel(yn,jn,"node")}},labelDataIndex:ge.dataIndex,defaultText:ge.id}),Ut.disableLabelAnimation=!0,Ut.setStyle("fill",ge.getVisual("color")),Ut.setStyle("decal",ge.getVisual("style").decal),Om(Ut,Ne),T.add(Ut),Y.setItemGraphicEl(ge.dataIndex,Ut),nu(Ut).dataType="node";var pn=pt.get("focus");ih(Ut,pn==="adjacency"?ge.getAdjacentDataIndices():pn==="trajectory"?ge.getTrajectoryDataIndices():pn,pt.get("blurScope"),pt.get("disabled"))}),Y.eachItemGraphicEl(function(ge,Oe){var Ne=Y.getItemModel(Oe);Ne.get("draggable")&&(ge.drift=function(He,st){c._focusAdjacencyDisabled=!0,this.shape.x+=He,this.shape.y+=st,this.dirty(),s.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:Y.getRawIndex(Oe),localX:this.shape.x/I,localY:this.shape.y/B})},ge.ondragend=function(){c._focusAdjacencyDisabled=!1},ge.draggable=!0,ge.cursor="move")}),!this._data&&t.isAnimationEnabled()&&T.setClipPath(iZ(T.getBoundingRect(),t,function(){T.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(vv);function v8(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),s=t.node2.getVisual("color");ei(r)&&ei(s)&&(n.fill=new pb(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:s,offset:1}]))}}function iZ(n,e,t){var r=new jd({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return Sv(r,{shape:{width:n.width+20}},e,t),r}var h8=aZ,m8=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var s=t.edges||t.links,c=t.data||t.nodes,f=t.levels;this.levelModels=[];for(var T=this.levelModels,R=0;R<f.length;R++)f[R].depth!=null&&f[R].depth>=0&&(T[f[R].depth]=new Lv(f[R],this,r));if(c&&s){var I=Z5(c,s,this,!0,B);return I.data}function B(Y,q){Y.wrapMethod("getItemModel",function(ie,ge){var Oe=ie.parentModel,Ne=Oe.getData().getItemLayout(ge);if(Ne){var He=Ne.depth,st=Oe.levelModels[He];st&&(ie.parentModel=st)}return ie}),q.wrapMethod("getItemModel",function(ie,ge){var Oe=ie.parentModel,Ne=Oe.getGraph().getEdgeByIndex(ge),He=Ne.node1.getLayout();if(He){var st=He.depth,pt=Oe.levelModels[st];pt&&(ie.parentModel=pt)}return ie})}},e.prototype.setNodePosition=function(t,r){var s=this.option.data||this.option.nodes,c=s[t];c.localX=r[0],c.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,s){function c(ie){return isNaN(ie)||ie==null}if(s==="edge"){var f=this.getDataParams(t,s),T=f.data,R=f.value,I=T.source+" -- "+T.target;return em("nameValue",{name:I,value:R,noValue:c(R)})}else{var B=this.getGraph().getNodeByIndex(t),Y=B.getLayout().value,q=this.getDataParams(t,s).data.name;return em("nameValue",{name:q!=null?q+"":null,value:Y,noValue:c(Y)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var s=n.prototype.getDataParams.call(this,t,r);if(s.value==null&&r==="node"){var c=this.getGraph().getNodeByIndex(t),f=c.getLayout().value;s.value=f}return s},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(oh),oZ=m8;function g8(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),s=t.get("nodeGap"),c=sZ(t,e);t.layoutInfo=c;var f=c.width,T=c.height,R=t.getGraph(),I=R.nodes,B=R.edges;cZ(I);var Y=Yn(I,function(Oe){return Oe.getLayout().value===0}),q=Y.length!==0?0:t.get("layoutIterations"),ie=t.get("orient"),ge=t.get("nodeAlign");lZ(I,B,r,s,f,T,q,ie,ge)})}function sZ(n,e){return mm(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lZ(n,e,t,r,s,c,f,T,R){uZ(n,e,t,s,c,T,R),o4(n,e,c,s,r,f,T),hZ(n,T)}function cZ(n){At(n,function(e){var t=fE(e.outEdges,HR),r=fE(e.inEdges,HR),s=e.getValue()||0,c=Math.max(t,r,s);e.setLayout({value:c},!0)})}function uZ(n,e,t,r,s,c,f){for(var T=[],R=[],I=[],B=[],Y=0,q=0;q<e.length;q++)T[q]=1;for(var q=0;q<n.length;q++)R[q]=n[q].inEdges.length,R[q]===0&&I.push(n[q]);for(var ie=-1;I.length;){for(var ge=0;ge<I.length;ge++){var Oe=I[ge],Ne=Oe.hostGraph.data.getRawDataItem(Oe.dataIndex),He=Ne.depth!=null&&Ne.depth>=0;He&&Ne.depth>ie&&(ie=Ne.depth),Oe.setLayout({depth:He?Ne.depth:Y},!0),c==="vertical"?Oe.setLayout({dy:t},!0):Oe.setLayout({dx:t},!0);for(var st=0;st<Oe.outEdges.length;st++){var pt=Oe.outEdges[st],Ut=e.indexOf(pt);T[Ut]=0;var pn=pt.node2,yn=n.indexOf(pn);--R[yn]==0&&B.indexOf(pn)<0&&B.push(pn)}}++Y,I=B,B=[]}for(var q=0;q<T.length;q++)if(T[q]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var jn=ie>Y-1?ie:Y-1;f&&f!=="left"&&sH(n,f,c,jn);var Cr=c==="vertical"?(s-t)/jn:(r-t)/jn;fZ(n,Cr,c)}function _8(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function sH(n,e,t,r){if(e==="right"){for(var s=[],c=n,f=0;c.length;){for(var T=0;T<c.length;T++){var R=c[T];R.setLayout({skNodeHeight:f},!0);for(var I=0;I<R.inEdges.length;I++){var B=R.inEdges[I];s.indexOf(B.node1)<0&&s.push(B.node1)}}c=s,s=[],++f}At(n,function(Y){_8(Y)||Y.setLayout({depth:Math.max(0,r-Y.getLayout().skNodeHeight)},!0)})}else e==="justify"&&Ub(n,r)}function Ub(n,e){At(n,function(t){!_8(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function fZ(n,e,t){At(n,function(r){var s=r.getLayout().depth*e;t==="vertical"?r.setLayout({y:s},!0):r.setLayout({x:s},!0)})}function o4(n,e,t,r,s,c,f){var T=y8(n,f);b8(T,e,t,r,s,f),WR(T,s,t,r,f);for(var R=1;c>0;c--)R*=.99,s4(T,R,f),WR(T,s,t,r,f),vZ(T,R,f),WR(T,s,t,r,f)}function y8(n,e){var t=[],r=e==="vertical"?"y":"x",s=Jf(n,function(c){return c.getLayout()[r]});return s.keys.sort(function(c,f){return c-f}),At(s.keys,function(c){t.push(s.buckets.get(c))}),t}function b8(n,e,t,r,s,c){var f=Infinity;At(n,function(T){var R=T.length,I=0;At(T,function(Y){I+=Y.getLayout().value});var B=c==="vertical"?(r-(R-1)*s)/I:(t-(R-1)*s)/I;B<f&&(f=B)}),At(n,function(T){At(T,function(R,I){var B=R.getLayout().value*f;c==="vertical"?(R.setLayout({x:I},!0),R.setLayout({dx:B},!0)):(R.setLayout({y:I},!0),R.setLayout({dy:B},!0))})}),At(e,function(T){var R=+T.getValue()*f;T.setLayout({dy:R},!0)})}function WR(n,e,t,r,s){var c=s==="vertical"?"x":"y";At(n,function(f){f.sort(function(Oe,Ne){return Oe.getLayout()[c]-Ne.getLayout()[c]});for(var T,R,I,B=0,Y=f.length,q=s==="vertical"?"dx":"dy",ie=0;ie<Y;ie++)R=f[ie],I=B-R.getLayout()[c],I>0&&(T=R.getLayout()[c]+I,s==="vertical"?R.setLayout({x:T},!0):R.setLayout({y:T},!0)),B=R.getLayout()[c]+R.getLayout()[q]+e;var ge=s==="vertical"?r:t;if(I=B-e-ge,I>0){T=R.getLayout()[c]-I,s==="vertical"?R.setLayout({x:T},!0):R.setLayout({y:T},!0),B=T;for(var ie=Y-2;ie>=0;--ie)R=f[ie],I=R.getLayout()[c]+R.getLayout()[q]+e-B,I>0&&(T=R.getLayout()[c]-I,s==="vertical"?R.setLayout({x:T},!0):R.setLayout({y:T},!0)),B=R.getLayout()[c]}})}function s4(n,e,t){At(n.slice().reverse(),function(r){At(r,function(s){if(s.outEdges.length){var c=fE(s.outEdges,dZ,t)/fE(s.outEdges,HR);if(isNaN(c)){var f=s.outEdges.length;c=f?fE(s.outEdges,pZ,t)/f:0}if(t==="vertical"){var T=s.getLayout().x+(c-Zb(s,t))*e;s.setLayout({x:T},!0)}else{var R=s.getLayout().y+(c-Zb(s,t))*e;s.setLayout({y:R},!0)}}})})}function dZ(n,e){return Zb(n.node2,e)*n.getValue()}function pZ(n,e){return Zb(n.node2,e)}function x8(n,e){return Zb(n.node1,e)*n.getValue()}function E8(n,e){return Zb(n.node1,e)}function Zb(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function HR(n){return n.getValue()}function fE(n,e,t){for(var r=0,s=n.length,c=-1;++c<s;){var f=+e(n[c],t);isNaN(f)||(r+=f)}return r}function vZ(n,e,t){At(n,function(r){At(r,function(s){if(s.inEdges.length){var c=fE(s.inEdges,x8,t)/fE(s.inEdges,HR);if(isNaN(c)){var f=s.inEdges.length;c=f?fE(s.inEdges,E8,t)/f:0}if(t==="vertical"){var T=s.getLayout().x+(c-Zb(s,t))*e;s.setLayout({x:T},!0)}else{var R=s.getLayout().y+(c-Zb(s,t))*e;s.setLayout({y:R},!0)}}})})}function hZ(n,e){var t=e==="vertical"?"x":"y";At(n,function(r){r.outEdges.sort(function(s,c){return s.node2.getLayout()[t]-c.node2.getLayout()[t]}),r.inEdges.sort(function(s,c){return s.node1.getLayout()[t]-c.node1.getLayout()[t]})}),At(n,function(r){var s=0,c=0;At(r.outEdges,function(f){f.setLayout({sy:s},!0),s+=f.getLayout().dy}),At(r.inEdges,function(f){f.setLayout({ty:c},!0),c+=f.getLayout().dy})})}function mZ(n){n.eachSeriesByType("sankey",function(e){var t=e.getGraph(),r=t.nodes,s=t.edges;if(r.length){var c=Infinity,f=-Infinity;At(r,function(T){var R=T.getLayout().value;R<c&&(c=R),R>f&&(f=R)}),At(r,function(T){var R=new Yg({type:"color",mappingMethod:"linear",dataExtent:[c,f],visual:e.get("color")}),I=R.mapValueToVisual(T.getLayout().value),B=T.getModel().get(["itemStyle","color"]);B!=null?(T.setVisual("color",B),T.setVisual("style",{fill:B})):(T.setVisual("color",I),T.setVisual("style",{fill:I}))})}s.length&&At(s,function(T){var R=T.getModel().get("lineStyle");T.setVisual("style",R)})})}function GR(n){n.registerChartView(h8),n.registerSeriesModel(oZ),n.registerLayout(g8),n.registerVisual(mZ),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var l4=function(){function n(){}return n.prototype.getInitialData=function(e,t){var r,s=t.getComponent("xAxis",this.get("xAxisIndex")),c=t.getComponent("yAxis",this.get("yAxisIndex")),f=s.get("type"),T=c.get("type"),R;f==="category"?(e.layout="horizontal",r=s.getOrdinalMeta(),R=!0):T==="category"?(e.layout="vertical",r=c.getOrdinalMeta(),R=!0):e.layout=e.layout||"horizontal";var I=["x","y"],B=e.layout==="horizontal"?0:1,Y=this._baseAxisDim=I[B],q=I[1-B],ie=[s,c],ge=ie[B].get("type"),Oe=ie[1-B].get("type"),Ne=e.data;if(Ne&&R){var He=[];At(Ne,function(Ut,pn){var yn;La(Ut)?(yn=Ut.slice(),Ut.unshift(pn)):La(Ut.value)?(yn=Ea({},Ut),yn.value=yn.value.slice(),Ut.value.unshift(pn)):yn=Ut,He.push(yn)}),e.data=He}var st=this.defaultValueDimensions,pt=[{name:Y,type:BI(ge),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:q,type:BI(Oe),dimsDef:st.slice()}];return uw(this,{coordDimensions:pt,dimensionsCount:st.length+1,encodeDefaulter:$i(ok,pt,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),c4=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(oh);Kn(c4,l4,!0);var S8=c4,gZ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s){var c=t.getData(),f=this.group,T=this._data;this._data||f.removeAll();var R=t.get("layout")==="horizontal"?1:0;c.diff(T).add(function(I){if(c.hasValue(I)){var B=c.getItemLayout(I),Y=w8(B,c,I,R,!0);c.setItemGraphicEl(I,Y),f.add(Y)}}).update(function(I,B){var Y=T.getItemGraphicEl(B);if(!c.hasValue(I)){f.remove(Y);return}var q=c.getItemLayout(I);Y?(e_(Y),T8(q,Y,c,I)):Y=w8(q,c,I,R),f.add(Y),c.setItemGraphicEl(I,Y)}).remove(function(I){var B=T.getItemGraphicEl(I);B&&f.remove(B)}).execute(),this._data=c},e.prototype.remove=function(t){var r=this.group,s=this._data;this._data=null,s&&s.eachItemGraphicEl(function(c){c&&r.remove(c)})},e.type="boxplot",e}(vv),_Z=function(){function n(){}return n}(),C8=function(n){ze(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new _Z},e.prototype.buildPath=function(t,r){var s=r.points,c=0;for(t.moveTo(s[c][0],s[c][1]),c++;c<4;c++)t.lineTo(s[c][0],s[c][1]);for(t.closePath();c<s.length;c++)t.moveTo(s[c][0],s[c][1]),c++,t.lineTo(s[c][0],s[c][1])},e}(Od);function w8(n,e,t,r,s){var c=n.ends,f=new C8({shape:{points:s?yZ(c,r,n):c}});return T8(n,f,e,t,s),f}function T8(n,e,t,r,s){var c=t.hostModel,f=x[s?"initProps":"updateProps"];f(e,{shape:{points:n.ends}},c,r),e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var T=t.getItemModel(r),R=T.getModel("emphasis");Om(e,T),ih(e,R.get("focus"),R.get("blurScope"),R.get("disabled"))}function yZ(n,e,t){return ar(n,function(r){return r=r.slice(),r[e]=t.initBaseline,r})}var $R=gZ,jM=At;function A8(n){var e=bZ(n);jM(e,function(t){var r=t.seriesModels;!r.length||(xZ(t),jM(r,function(s,c){M8(s,t.boxOffsetList[c],t.boxWidthList[c])}))})}function bZ(n){var e=[],t=[];return n.eachSeriesByType("boxplot",function(r){var s=r.getBaseAxis(),c=Ui(t,s);c<0&&(c=t.length,t[c]=s,e[c]={axis:s,seriesModels:[]}),e[c].seriesModels.push(r)}),e}function xZ(n){var e=n.axis,t=n.seriesModels,r=t.length,s=n.boxWidthList=[],c=n.boxOffsetList=[],f=[],T;if(e.type==="category")T=e.getBandWidth();else{var R=0;jM(t,function(ge){R=Math.max(R,ge.getData().count())});var I=e.getExtent();T=Math.abs(I[1]-I[0])/R}jM(t,function(ge){var Oe=ge.get("boxWidth");La(Oe)||(Oe=[Oe,Oe]),f.push([It(Oe[0],T)||0,It(Oe[1],T)||0])});var B=T*.8-2,Y=B/r*.3,q=(B-Y*(r-1))/r,ie=q/2-B/2;jM(t,function(ge,Oe){c.push(ie),ie+=Y+q,s.push(Math.min(Math.max(q,f[Oe][0]),f[Oe][1]))})}function M8(n,e,t){var r=n.coordinateSystem,s=n.getData(),c=t/2,f=n.get("layout")==="horizontal"?0:1,T=1-f,R=["x","y"],I=s.mapDimension(R[f]),B=s.mapDimensionsAll(R[T]);if(I==null||B.length<5)return;for(var Y=0;Y<s.count();Y++){var q=s.get(I,Y),ie=pt(q,B[2],Y),ge=pt(q,B[0],Y),Oe=pt(q,B[1],Y),Ne=pt(q,B[3],Y),He=pt(q,B[4],Y),st=[];Ut(st,Oe,!1),Ut(st,Ne,!0),st.push(ge,Oe,He,Ne),pn(st,ge),pn(st,He),pn(st,ie),s.setItemLayout(Y,{initBaseline:ie[T],ends:st})}function pt(yn,jn,Cr){var Nr=s.get(jn,Cr),Rr=[];Rr[f]=yn,Rr[T]=Nr;var Er;return isNaN(yn)||isNaN(Nr)?Er=[NaN,NaN]:(Er=r.dataToPoint(Rr),Er[f]+=e),Er}function Ut(yn,jn,Cr){var Nr=jn.slice(),Rr=jn.slice();Nr[f]+=c,Rr[f]-=c,Cr?yn.push(Nr,Rr):yn.push(Rr,Nr)}function pn(yn,jn){var Cr=jn.slice(),Nr=jn.slice();Cr[f]-=c,Nr[f]+=c,yn.push(Cr,Nr)}}function EZ(n,e){e=e||{};for(var t=[],r=[],s=e.boundIQR,c=s==="none"||s===0,f=0;f<n.length;f++){var T=In(n[f].slice()),R=Pc(T,.25),I=Pc(T,.5),B=Pc(T,.75),Y=T[0],q=T[T.length-1],ie=(s==null?1.5:s)*(B-R),ge=c?Y:Math.max(Y,R-ie),Oe=c?q:Math.min(q,B+ie),Ne=e.itemNameFormatter,He=ja(Ne)?Ne({value:f}):ei(Ne)?Ne.replace("{value}",f+""):f+"";t.push([He,ge,R,I,B,Oe]);for(var st=0;st<T.length;st++){var pt=T[st];if(pt<ge||pt>Oe){var Ut=[He,pt];r.push(Ut)}}}return{boxData:t,outliers:r}}var SZ={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Ah){var r="";Kp(r)}var s=EZ(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:s.boxData},{data:s.outliers}]}};function CZ(n){n.registerSeriesModel(S8),n.registerChartView($R),n.registerLayout(A8),n.registerTransform(SZ)}var wZ=["color","borderColor"],TZ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,s){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,s,c){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){ag(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),s=this._data,c=this.group,f=r.getLayout("isSimpleBox"),T=t.get("clip",!0),R=t.coordinateSystem,I=R.getArea&&R.getArea();this._data||c.removeAll(),r.diff(s).add(function(B){if(r.hasValue(B)){var Y=r.getItemLayout(B);if(T&&P8(I,Y))return;var q=u4(Y,B,!0);Sv(q,{shape:{points:Y.ends}},t,B),f4(q,r,B,f),c.add(q),r.setItemGraphicEl(B,q)}}).update(function(B,Y){var q=s.getItemGraphicEl(Y);if(!r.hasValue(B)){c.remove(q);return}var ie=r.getItemLayout(B);if(T&&P8(I,ie)){c.remove(q);return}q?(vp(q,{shape:{points:ie.ends}},t,B),e_(q)):q=u4(ie,B),f4(q,r,B,f),c.add(q),r.setItemGraphicEl(B,q)}).remove(function(B){var Y=s.getItemGraphicEl(B);Y&&c.remove(Y)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),O8(t,this.group);var r=t.get("clip",!0)?HA(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var s=r.getData(),c=s.getLayout("isSimpleBox"),f;(f=t.next())!=null;){var T=s.getItemLayout(f),R=u4(T,f);f4(R,s,f,c),R.incremental=!0,this.group.add(R),this._progressiveEls.push(R)}},e.prototype._incrementalRenderLarge=function(t,r){O8(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(vv),k8=function(){function n(){}return n}(),AZ=function(n){ze(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new k8},e.prototype.buildPath=function(t,r){var s=r.points;this.__simpleBox?(t.moveTo(s[4][0],s[4][1]),t.lineTo(s[6][0],s[6][1])):(t.moveTo(s[0][0],s[0][1]),t.lineTo(s[1][0],s[1][1]),t.lineTo(s[2][0],s[2][1]),t.lineTo(s[3][0],s[3][1]),t.closePath(),t.moveTo(s[4][0],s[4][1]),t.lineTo(s[5][0],s[5][1]),t.moveTo(s[6][0],s[6][1]),t.lineTo(s[7][0],s[7][1]))},e}(Od);function u4(n,e,t){var r=n.ends;return new AZ({shape:{points:t?R8(r,n):r},z2:100})}function P8(n,e){for(var t=!0,r=0;r<e.ends.length;r++)if(n.contain(e.ends[r][0],e.ends[r][1])){t=!1;break}return t}function f4(n,e,t,r){var s=e.getItemModel(t);n.useStyle(e.getItemVisual(t,"style")),n.style.strokeNoScale=!0,n.__simpleBox=r,Om(n,s)}function R8(n,e){return ar(n,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var MZ=function(){function n(){}return n}(),d4=function(n){ze(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new MZ},e.prototype.buildPath=function(t,r){for(var s=r.points,c=0;c<s.length;)if(this.__sign===s[c++]){var f=s[c++];t.moveTo(f,s[c++]),t.lineTo(f,s[c++])}else c+=3},e}(Od);function O8(n,e,t,r){var s=n.getData(),c=s.getLayout("largePoints"),f=new d4({shape:{points:c},__sign:1,ignoreCoarsePointer:!0});e.add(f);var T=new d4({shape:{points:c},__sign:-1,ignoreCoarsePointer:!0});e.add(T);var R=new d4({shape:{points:c},__sign:0,ignoreCoarsePointer:!0});e.add(R),KR(1,f,n,s),KR(-1,T,n,s),KR(0,R,n,s),r&&(f.incremental=!0,T.incremental=!0),t&&t.push(f,T)}function KR(n,e,t,r){var s=t.get(["itemStyle",n>0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(s=t.get(["itemStyle","borderColorDoji"]));var c=t.getModel("itemStyle").getItemStyle(wZ);e.useStyle(c),e.style.fill=null,e.style.stroke=s}var kZ=TZ,p4=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,s){var c=r.getItemLayout(t);return c&&s.rect(c.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(oh);Kn(p4,l4,!0);var PZ=p4;function RZ(n){!n||!La(n.series)||At(n.series,function(e){to(e)&&e.type==="k"&&(e.type="candlestick")})}var I8=["itemStyle","borderColor"],OZ=["itemStyle","borderColor0"],IZ=["itemStyle","borderColorDoji"],DZ=["itemStyle","color"],NZ=["itemStyle","color0"],LZ={seriesType:"candlestick",plan:lb(),performRawSeries:!0,reset:function(n,e){function t(c,f){return f.get(c>0?DZ:NZ)}function r(c,f){return f.get(c===0?IZ:c>0?I8:OZ)}if(!e.isSeriesFiltered(n)){var s=n.pipelineContext.large;return!s&&{progress:function(c,f){for(var T;(T=c.next())!=null;){var R=f.getItemModel(T),I=f.getItemLayout(T).sign,B=R.getItemStyle();B.fill=t(I,R),B.stroke=r(I,R)||B.fill;var Y=f.ensureUniqueItemVisual(T,"style");Ea(Y,B)}}}}}},FZ=LZ,jZ={seriesType:"candlestick",plan:lb(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=lH(n,t),s=0,c=1,f=["x","y"],T=t.getDimensionIndex(t.mapDimension(f[s])),R=ar(t.mapDimensionsAll(f[c]),t.getDimensionIndex,t),I=R[0],B=R[1],Y=R[2],q=R[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),T<0||R.length<4)return;return{progress:n.pipelineContext.large?ge:ie};function ie(Oe,Ne){for(var He,st=Ne.getStore();(He=Oe.next())!=null;){var pt=st.get(T,He),Ut=st.get(I,He),pn=st.get(B,He),yn=st.get(Y,He),jn=st.get(q,He),Cr=Math.min(Ut,pn),Nr=Math.max(Ut,pn),Rr=ns(Cr,pt),Er=ns(Nr,pt),ma=ns(yn,pt),wa=ns(jn,pt),Ga=[];zo(Ga,Er,0),zo(Ga,Rr,1),Ga.push(pl(wa),pl(Er),pl(ma),pl(Rr));var Ei=Ne.getItemModel(He),Vi=!!Ei.get(["itemStyle","borderColorDoji"]);Ne.setItemLayout(He,{sign:BZ(st,He,Ut,pn,B,Vi),initBaseline:Ut>pn?Er[c]:Rr[c],ends:Ga,brushRect:xs(yn,jn,pt)})}function ns(Rl,zl){var Yc=[];return Yc[s]=zl,Yc[c]=Rl,isNaN(zl)||isNaN(Rl)?[NaN,NaN]:e.dataToPoint(Yc)}function zo(Rl,zl,Yc){var kc=zl.slice(),tf=zl.slice();kc[s]=P2(kc[s]+r/2,1,!1),tf[s]=P2(tf[s]-r/2,1,!0),Yc?Rl.push(kc,tf):Rl.push(tf,kc)}function xs(Rl,zl,Yc){var kc=ns(Rl,Yc),tf=ns(zl,Yc);return kc[s]-=r/2,tf[s]-=r/2,{x:kc[0],y:kc[1],width:c?r:tf[0]-kc[0],height:c?tf[1]-kc[1]:r}}function pl(Rl){return Rl[s]=P2(Rl[s],1),Rl}}function ge(Oe,Ne){for(var He=S0(Oe.count*4),st=0,pt,Ut=[],pn=[],yn,jn=Ne.getStore(),Cr=!!n.get(["itemStyle","borderColorDoji"]);(yn=Oe.next())!=null;){var Nr=jn.get(T,yn),Rr=jn.get(I,yn),Er=jn.get(B,yn),ma=jn.get(Y,yn),wa=jn.get(q,yn);if(isNaN(Nr)||isNaN(ma)||isNaN(wa)){He[st++]=NaN,st+=3;continue}He[st++]=BZ(jn,yn,Rr,Er,B,Cr),Ut[s]=Nr,Ut[c]=ma,pt=e.dataToPoint(Ut,null,pn),He[st++]=pt?pt[0]:NaN,He[st++]=pt?pt[1]:NaN,Ut[c]=wa,pt=e.dataToPoint(Ut,null,pn),He[st++]=pt?pt[1]:NaN}Ne.setLayout("largePoints",He)}}};function BZ(n,e,t,r,s,c){var f;return t>r?f=-1:t<r?f=1:f=c?0:e>0?n.get(s,e-1)<=r?1:-1:1,f}function lH(n,e){var t=n.getBaseAxis(),r,s=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),c=It(sn(n.get("barMaxWidth"),s),s),f=It(sn(n.get("barMinWidth"),1),s),T=n.get("barWidth");return T!=null?It(T,s):Math.max(Math.min(s/2,c),f)}var cH=jZ;function uH(n){n.registerChartView(kZ),n.registerSeriesModel(PZ),n.registerPreprocessor(RZ),n.registerVisual(FZ),n.registerLayout(cH)}function D8(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var fH=function(n){ze(e,n);function e(t,r){var s=n.call(this)||this,c=new jS(t,r),f=new Qi;return s.add(c),s.add(f),s.updateData(t,r),s}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,s=t.color,c=t.rippleNumber,f=this.childAt(1),T=0;T<c;T++){var R=ad(r,-1,-1,2,2,s);R.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var I=-T/c*t.period+t.effectOffset;R.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(I).start(),R.animateStyle(!0).when(t.period,{opacity:0}).delay(I).start(),f.add(R)}D8(f,t)},e.prototype.updateEffectAnimation=function(t){for(var r=this._effectCfg,s=this.childAt(1),c=["symbolType","period","rippleScale","rippleNumber"],f=0;f<c.length;f++){var T=c[f];if(r[T]!==t[T]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}D8(s,t)},e.prototype.highlight=function(){qg(this)},e.prototype.downplay=function(){j0(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,r){var s=this,c=t.hostModel;this.childAt(0).updateData(t,r);var f=this.childAt(1),T=t.getItemModel(r),R=t.getItemVisual(r,"symbol"),I=fp(t.getItemVisual(r,"symbolSize")),B=t.getItemVisual(r,"style"),Y=B&&B.fill,q=T.getModel("emphasis");f.setScale(I),f.traverse(function(Ne){Ne.setStyle("fill",Y)});var ie=Tv(t.getItemVisual(r,"symbolOffset"),I);ie&&(f.x=ie[0],f.y=ie[1]);var ge=t.getItemVisual(r,"symbolRotate");f.rotation=(ge||0)*Math.PI/180||0;var Oe={};Oe.showEffectOn=c.get("showEffectOn"),Oe.rippleScale=T.get(["rippleEffect","scale"]),Oe.brushType=T.get(["rippleEffect","brushType"]),Oe.period=T.get(["rippleEffect","period"])*1e3,Oe.effectOffset=r/t.count(),Oe.z=c.getShallow("z")||0,Oe.zlevel=c.getShallow("zlevel")||0,Oe.symbolType=R,Oe.color=Y,Oe.rippleEffectColor=T.get(["rippleEffect","color"]),Oe.rippleNumber=T.get(["rippleEffect","number"]),Oe.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(Oe):this.startEffectAnimation(Oe),this._effectCfg=Oe):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(Ne){Ne==="emphasis"?Oe.showEffectOn!=="render"&&s.startEffectAnimation(Oe):Ne==="normal"&&Oe.showEffectOn!=="render"&&s.stopEffectAnimation()}),this._effectCfg=Oe,ih(this,q.get("focus"),q.get("blurScope"),q.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(Qi),dH=fH,UZ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Sm(dH)},e.prototype.render=function(t,r,s){var c=t.getData(),f=this._symbolDraw;f.updateData(c,{clipShape:this._getClipShape(t)}),this.group.add(f.group)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,s=r&&r.getArea&&r.getArea();return t.get("clip",!0)?s:null},e.prototype.updateTransform=function(t,r,s){var c=t.getData();this.group.dirty();var f=lw("").reset(t,r,s);f.progress&&f.progress({start:0,end:c.count(),count:c.count()},c),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var r=t.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=gf(r.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(vv),ZZ=UZ,VZ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return Tb(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,r,s){return s.point(r.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(oh),zZ=VZ;function pH(n){n.registerChartView(ZZ),n.registerSeriesModel(zZ),n.registerLayout(lw("effectScatter"))}var WZ=function(n){ze(e,n);function e(t,r,s){var c=n.call(this)||this;return c.add(c.createLine(t,r,s)),c._updateEffectSymbol(t,r),c}return e.prototype.createLine=function(t,r,s){return new RR(t,r,s)},e.prototype._updateEffectSymbol=function(t,r){var s=t.getItemModel(r),c=s.getModel("effect"),f=c.get("symbolSize"),T=c.get("symbol");La(f)||(f=[f,f]);var R=t.getItemVisual(r,"style"),I=c.get("color")||R&&R.stroke,B=this.childAt(1);this._symbolType!==T&&(this.remove(B),B=ad(T,-.5,-.5,1,1,I),B.z2=100,B.culling=!0,this.add(B)),!!B&&(B.setStyle("shadowColor",I),B.setStyle(c.getItemStyle(["color"])),B.scaleX=f[0],B.scaleY=f[1],B.setColor(I),this._symbolType=T,this._symbolScale=f,this._updateEffectAnimation(t,c,r))},e.prototype._updateEffectAnimation=function(t,r,s){var c=this.childAt(1);if(!!c){var f=t.getItemLayout(s),T=r.get("period")*1e3,R=r.get("loop"),I=r.get("roundTrip"),B=r.get("constantSpeed"),Y=nn(r.get("delay"),function(ie){return ie/t.count()*T/3});if(c.ignore=!0,this._updateAnimationPoints(c,f),B>0&&(T=this._getLineLength(c)/B*1e3),T!==this._period||R!==this._loop||I!==this._roundTrip){c.stopAnimation();var q=void 0;ja(Y)?q=Y(s):q=Y,c.__t>0&&(q=-T*c.__t),this._animateSymbol(c,T,q,R,I)}this._period=T,this._loop=R,this._roundTrip=I}},e.prototype._animateSymbol=function(t,r,s,c,f){if(r>0){t.__t=0;var T=this,R=t.animate("",c).when(f?r*2:r,{__t:f?2:1}).delay(s).during(function(){T._updateSymbolPosition(t)});c||R.done(function(){T.remove(t)}),R.start()}},e.prototype._getLineLength=function(t){return of(t.__p1,t.__cp1)+of(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,s){this.childAt(0).updateData(t,r,s),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,s=t.__p2,c=t.__cp1,f=t.__t<1?t.__t:2-t.__t,T=[t.x,t.y],R=T.slice(),I=Lr,B=sa;T[0]=I(r[0],c[0],s[0],f),T[1]=I(r[1],c[1],s[1],f);var Y=t.__t<1?B(r[0],c[0],s[0],f):B(s[0],c[0],r[0],1-f),q=t.__t<1?B(r[1],c[1],s[1],f):B(s[1],c[1],r[1],1-f);t.rotation=-Math.atan2(q,Y)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=of(R,T)*1.05,f===1&&(T[0]=R[0]+(T[0]-R[0])/2,T[1]=R[1]+(T[1]-R[1])/2)):t.__lastT===1?t.scaleY=2*of(r,T):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=T[0],t.y=T[1]},e.prototype.updateLayout=function(t,r){this.childAt(0).updateLayout(t,r);var s=t.getItemModel(r).getModel("effect");this._updateEffectAnimation(t,s,r)},e}(Qi),v4=WZ,BM=function(n){ze(e,n);function e(t,r,s){var c=n.call(this)||this;return c._createPolyline(t,r,s),c}return e.prototype._createPolyline=function(t,r,s){var c=t.getItemLayout(r),f=new ng({shape:{points:c}});this.add(f),this._updateCommonStl(t,r,s)},e.prototype.updateData=function(t,r,s){var c=t.hostModel,f=this.childAt(0),T={shape:{points:t.getItemLayout(r)}};vp(f,T,c,r),this._updateCommonStl(t,r,s)},e.prototype._updateCommonStl=function(t,r,s){var c=this.childAt(0),f=t.getItemModel(r),T=s&&s.emphasisLineStyle,R=s&&s.focus,I=s&&s.blurScope,B=s&&s.emphasisDisabled;if(!s||t.hasItemOption){var Y=f.getModel("emphasis");T=Y.getModel("lineStyle").getLineStyle(),B=Y.get("disabled"),R=Y.get("focus"),I=Y.get("blurScope")}c.useStyle(t.getItemVisual(r,"style")),c.style.fill=null,c.style.strokeNoScale=!0;var q=c.ensureState("emphasis");q.style=T,ih(this,R,I,B)},e.prototype.updateLayout=function(t,r){var s=this.childAt(0);s.setShape("points",t.getItemLayout(r))},e}(Qi),HZ=BM,N8=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,r,s){return new HZ(t,r,s)},e.prototype._updateAnimationPoints=function(t,r){this._points=r;for(var s=[0],c=0,f=1;f<r.length;f++){var T=r[f-1],R=r[f];c+=of(T,R),s.push(c)}if(c===0){this._length=0;return}for(var f=0;f<s.length;f++)s[f]/=c;this._offsets=s,this._length=c},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var r=t.__t<1?t.__t:2-t.__t,s=this._points,c=this._offsets,f=s.length;if(!!c){var T=this._lastFrame,R;if(r<this._lastFramePercent){var I=Math.min(T+1,f-1);for(R=I;R>=0&&!(c[R]<=r);R--);R=Math.min(R,f-2)}else{for(R=T;R<f&&!(c[R]>r);R++);R=Math.min(R-1,f-2)}var B=(r-c[R])/(c[R+1]-c[R]),Y=s[R],q=s[R+1];t.x=Y[0]*(1-B)+B*q[0],t.y=Y[1]*(1-B)+B*q[1];var ie=t.__t<1?q[0]-Y[0]:Y[0]-q[0],ge=t.__t<1?q[1]-Y[1]:Y[1]-q[1];t.rotation=-Math.atan2(ge,ie)-Math.PI/2,this._lastFrame=R,this._lastFramePercent=r,t.ignore=!1}},e}(v4),GZ=N8,L8=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),$Z=function(n){ze(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new L8},e.prototype.buildPath=function(t,r){var s=r.segs,c=r.curveness,f;if(r.polyline)for(f=this._off;f<s.length;){var T=s[f++];if(T>0){t.moveTo(s[f++],s[f++]);for(var R=1;R<T;R++)t.lineTo(s[f++],s[f++])}}else for(f=this._off;f<s.length;){var I=s[f++],B=s[f++],Y=s[f++],q=s[f++];if(t.moveTo(I,B),c>0){var ie=(I+Y)/2-(B-q)*c,ge=(B+q)/2-(Y-I)*c;t.quadraticCurveTo(ie,ge,Y,q)}else t.lineTo(Y,q)}this.incremental&&(this._off=f,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var s=this.shape,c=s.segs,f=s.curveness,T=this.style.lineWidth;if(s.polyline)for(var R=0,I=0;I<c.length;){var B=c[I++];if(B>0)for(var Y=c[I++],q=c[I++],ie=1;ie<B;ie++){var ge=c[I++],Oe=c[I++];if(ay(Y,q,ge,Oe,T,t,r))return R}R++}else for(var R=0,I=0;I<c.length;){var Y=c[I++],q=c[I++],ge=c[I++],Oe=c[I++];if(f>0){var Ne=(Y+ge)/2-(q-Oe)*f,He=(q+Oe)/2-(ge-Y)*f;if(CE(Y,q,Ne,He,ge,Oe,T,t,r))return R}else if(ay(Y,q,ge,Oe,T,t,r))return R;R++}return-1},e.prototype.contain=function(t,r){var s=this.transformCoordToLocal(t,r),c=this.getBoundingRect();if(t=s[0],r=s[1],c.contain(t,r)){var f=this.hoverDataIdx=this.findDataIndex(t,r);return f>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,s=r.segs,c=Infinity,f=Infinity,T=-Infinity,R=-Infinity,I=0;I<s.length;){var B=s[I++],Y=s[I++];c=Math.min(B,c),T=Math.max(B,T),f=Math.min(Y,f),R=Math.max(Y,R)}t=this._rect=new ra(c,f,T,R)}return t},e}(Od),KZ=function(){function n(){this.group=new Qi}return n.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},n.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},n.prototype.incrementalUpdate=function(e,t){var r=this._newAdded[0],s=t.getLayout("linesPoints"),c=r&&r.shape.segs;if(c&&c.length<2e4){var f=c.length,T=new Float32Array(f+s.length);T.set(c),T.set(s,f),r.setShape({segs:T})}else{this._newAdded=[];var R=this._create();R.incremental=!0,R.setShape({segs:s}),this._setCommon(R,t),R.__startIndex=e.start}},n.prototype.remove=function(){this._clear()},n.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},n.prototype._create=function(){var e=new $Z({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},n.prototype._setCommon=function(e,t,r){var s=t.hostModel;e.setShape({polyline:s.get("polyline"),curveness:s.get(["lineStyle","curveness"])}),e.useStyle(s.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var c=t.getVisual("style");c&&c.stroke&&e.setStyle("stroke",c.stroke),e.setStyle("fill",null);var f=nu(e);f.seriesIndex=s.seriesIndex,e.on("mousemove",function(T){f.dataIndex=null;var R=e.hoverDataIdx;R>0&&(f.dataIndex=R+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}(),YZ=KZ,F8={seriesType:"lines",plan:lb(),reset:function(n){var e=n.coordinateSystem;if(!!e){var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(s,c){var f=[];if(r){var T=void 0,R=s.end-s.start;if(t){for(var I=0,B=s.start;B<s.end;B++)I+=n.getLineCoordsCount(B);T=new Float32Array(R+I*2)}else T=new Float32Array(R*4);for(var Y=0,q=[],B=s.start;B<s.end;B++){var ie=n.getLineCoords(B,f);t&&(T[Y++]=ie);for(var ge=0;ge<ie;ge++)q=e.dataToPoint(f[ge],!1,q),T[Y++]=q[0],T[Y++]=q[1]}c.setLayout("linesPoints",T)}else for(var B=s.start;B<s.end;B++){var Oe=c.getItemModel(B),ie=n.getLineCoords(B,f),Ne=[];if(t)for(var He=0;He<ie;He++)Ne.push(e.dataToPoint(f[He]));else{Ne[0]=e.dataToPoint(f[0]),Ne[1]=e.dataToPoint(f[1]);var st=Oe.get(["lineStyle","curveness"]);+st&&(Ne[2]=[(Ne[0][0]+Ne[1][0])/2-(Ne[0][1]-Ne[1][1])*st,(Ne[0][1]+Ne[1][1])/2-(Ne[1][0]-Ne[0][0])*st])}c.setItemLayout(B,Ne)}}}}}},j8=F8,XZ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s){var c=t.getData(),f=this._updateLineDraw(c,t),T=t.get("zlevel"),R=t.get(["effect","trailLength"]),I=s.getZr(),B=I.painter.getType()==="svg";B||I.painter.getLayer(T).clear(!0),this._lastZlevel!=null&&!B&&I.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&R>0&&(B||I.configLayer(T,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(R/10+.9,1),0)})),f.updateData(c);var Y=t.get("clip",!0)&&HA(t.coordinateSystem,!1,t);Y?this.group.setClipPath(Y):this.group.removeClipPath(),this._lastZlevel=T,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,s){var c=t.getData(),f=this._updateLineDraw(c,t);f.incrementalPrepareUpdate(c),this._clearLayer(s),this._finished=!1},e.prototype.incrementalRender=function(t,r,s){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,s){var c=t.getData(),f=t.pipelineContext;if(!this._finished||f.large||f.progressiveRender)return{update:!0};var T=j8.reset(t,r,s);T.progress&&T.progress({start:0,end:c.count(),count:c.count()},c),this._lineDraw.updateLayout(),this._clearLayer(s)},e.prototype._updateLineDraw=function(t,r){var s=this._lineDraw,c=this._showEffect(r),f=!!r.get("polyline"),T=r.pipelineContext,R=T.large;return(!s||c!==this._hasEffet||f!==this._isPolyline||R!==this._isLargeDraw)&&(s&&s.remove(),s=this._lineDraw=R?new YZ:new L3(f?c?GZ:HZ:c?v4:RR),this._hasEffet=c,this._isPolyline=f,this._isLargeDraw=R),this.group.add(s.group),s},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),s=r.painter.getType()==="svg";!s&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(vv),JZ=XZ,QZ=typeof Uint32Array=="undefined"?Array:Uint32Array,qZ=typeof Float64Array=="undefined"?Array:Float64Array;function B8(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=ar(e,function(t){var r=[t[0].coord,t[1].coord],s={coords:r};return t[0].name&&(s.fromName=t[0].name),t[1].name&&(s.toName=t[1].name),Ri([s,t[0],t[1]])}))}var eV=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],B8(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(B8(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=ao(this._flatCoords,r.flatCoords),this._flatCoordsOffset=ao(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),s=r.option instanceof Array?r.option:r.getShallow("coords");return s},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var s=this._flatCoordsOffset[t*2],c=this._flatCoordsOffset[t*2+1],f=0;f<c;f++)r[f]=r[f]||[],r[f][0]=this._flatCoords[s+f*2],r[f][1]=this._flatCoords[s+f*2+1];return c}else{for(var T=this._getCoordsFromItemModel(t),f=0;f<T.length;f++)r[f]=r[f]||[],r[f][0]=T[f][0],r[f][1]=T[f][1];return T.length}},e.prototype._processFlatCoordsArray=function(t){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),yo(t[0])){for(var s=t.length,c=new QZ(s),f=new qZ(s),T=0,R=0,I=0,B=0;B<s;){I++;var Y=t[B++];c[R++]=T+r,c[R++]=Y;for(var q=0;q<Y;q++){var ie=t[B++],ge=t[B++];f[T++]=ie,f[T++]=ge,B>s}}return{flatCoordsOffset:new Uint32Array(c.buffer,0,R),flatCoords:f,count:I}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,r){if(!1)var s;var c=new M_(["value"],this);return c.hasItemOption=!1,c.initData(t.data,[],function(f,T,R,I){if(f instanceof Array)return NaN;c.hasItemOption=!0;var B=f.value;if(B!=null)return B instanceof Array?B[I]:B}),c},e.prototype.formatTooltip=function(t,r,s){var c=this.getData(),f=c.getItemModel(t),T=f.get("name");if(T)return T;var R=f.get("fromName"),I=f.get("toName"),B=[];return R!=null&&B.push(R),I!=null&&B.push(I),em("nameValue",{name:B.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(oh),tV=eV;function h4(n){return n instanceof Array||(n=[n,n]),n}var nV={seriesType:"lines",reset:function(n){var e=h4(n.get("symbol")),t=h4(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function s(c,f){var T=c.getItemModel(f),R=h4(T.getShallow("symbol",!0)),I=h4(T.getShallow("symbolSize",!0));R[0]&&c.setItemVisual(f,"fromSymbol",R[0]),R[1]&&c.setItemVisual(f,"toSymbol",R[1]),I[0]&&c.setItemVisual(f,"fromSymbolSize",I[0]),I[1]&&c.setItemVisual(f,"toSymbolSize",I[1])}return{dataEach:r.hasItemOption?s:null}}},vH=nV;function rV(n){n.registerChartView(JZ),n.registerSeriesModel(tV),n.registerLayout(j8),n.registerVisual(vH)}var aV=256,UM=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Bn.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,s,c,f){var T=this._getBrush(),R=this._getGradient(c,"inRange"),I=this._getGradient(c,"outOfRange"),B=this.pointSize+this.blurSize,Y=this.canvas,q=Y.getContext("2d"),ie=e.length;Y.width=t,Y.height=r;for(var ge=0;ge<ie;++ge){var Oe=e[ge],Ne=Oe[0],He=Oe[1],st=Oe[2],pt=s(st);q.globalAlpha=pt,q.drawImage(T,Ne-B,He-B)}if(!Y.width||!Y.height)return Y;for(var Ut=q.getImageData(0,0,Y.width,Y.height),pn=Ut.data,yn=0,jn=pn.length,Cr=this.minOpacity,Nr=this.maxOpacity,Rr=Nr-Cr;yn<jn;){var pt=pn[yn+3]/256,Er=Math.floor(pt*(aV-1))*4;if(pt>0){var ma=f(pt)?R:I;pt>0&&(pt=pt*Rr+Cr),pn[yn++]=ma[Er],pn[yn++]=ma[Er+1],pn[yn++]=ma[Er+2],pn[yn++]=ma[Er+3]*pt*256}else yn+=4}return q.putImageData(Ut,0,0),Y},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Bn.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var s=e.getContext("2d");return s.clearRect(0,0,r,r),s.shadowOffsetX=r,s.shadowBlur=this.blurSize,s.shadowColor="#000",s.beginPath(),s.arc(-t,t,this.pointSize,0,Math.PI*2,!0),s.closePath(),s.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,s=r[t]||(r[t]=new Uint8ClampedArray(256*4)),c=[0,0,0,0],f=0,T=0;T<256;T++)e[t](T/255,!0,c),s[f++]=c[0],s[f++]=c[1],s[f++]=c[2],s[f++]=c[3];return s},n}(),iV=UM;function oV(n,e,t){var r=n[1]-n[0];e=ar(e,function(f){return{interval:[(f.interval[0]-n[0])/r,(f.interval[1]-n[0])/r]}});var s=e.length,c=0;return function(f){var T;for(T=c;T<s;T++){var R=e[T].interval;if(R[0]<=f&&f<=R[1]){c=T;break}}if(T===s)for(T=c-1;T>=0;T--){var R=e[T].interval;if(R[0]<=f&&f<=R[1]){c=T;break}}return T>=0&&T<s&&t[T]}}function sV(n,e){var t=n[1]-n[0];return e=[(e[0]-n[0])/t,(e[1]-n[0])/t],function(r){return r>=e[0]&&r<=e[1]}}function U8(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var lV=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s){var c;r.eachComponent("visualMap",function(T){T.eachTargetSeries(function(R){R===t&&(c=T)})}),this._progressiveEls=null,this.group.removeAll();var f=t.coordinateSystem;f.type==="cartesian2d"||f.type==="calendar"?this._renderOnCartesianAndCalendar(t,s,0,t.getData().count()):U8(f)&&this._renderOnGeo(f,t,c,s)},e.prototype.incrementalPrepareRender=function(t,r,s){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,s,c){var f=r.coordinateSystem;f&&(U8(f)?this.render(r,s,c):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,c,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){ag(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,s,c,f){var T=t.coordinateSystem,R=BS(T,"cartesian2d"),I,B,Y,q;if(R){var ie=T.getAxis("x"),ge=T.getAxis("y");I=ie.getBandWidth()+.5,B=ge.getBandWidth()+.5,Y=ie.scale.getExtent(),q=ge.scale.getExtent()}for(var Oe=this.group,Ne=t.getData(),He=t.getModel(["emphasis","itemStyle"]).getItemStyle(),st=t.getModel(["blur","itemStyle"]).getItemStyle(),pt=t.getModel(["select","itemStyle"]).getItemStyle(),Ut=t.get(["itemStyle","borderRadius"]),pn=bh(t),yn=t.getModel("emphasis"),jn=yn.get("focus"),Cr=yn.get("blurScope"),Nr=yn.get("disabled"),Rr=R?[Ne.mapDimension("x"),Ne.mapDimension("y"),Ne.mapDimension("value")]:[Ne.mapDimension("time"),Ne.mapDimension("value")],Er=s;Er<c;Er++){var ma=void 0,wa=Ne.getItemVisual(Er,"style");if(R){var Ga=Ne.get(Rr[0],Er),Ei=Ne.get(Rr[1],Er);if(isNaN(Ne.get(Rr[2],Er))||isNaN(Ga)||isNaN(Ei)||Ga<Y[0]||Ga>Y[1]||Ei<q[0]||Ei>q[1])continue;var Vi=T.dataToPoint([Ga,Ei]);ma=new jd({shape:{x:Vi[0]-I/2,y:Vi[1]-B/2,width:I,height:B},style:wa})}else{if(isNaN(Ne.get(Rr[1],Er)))continue;ma=new jd({z2:1,shape:T.dataToRect([Ne.get(Rr[0],Er)]).contentShape,style:wa})}if(Ne.hasItemOption){var ns=Ne.getItemModel(Er),zo=ns.getModel("emphasis");He=zo.getModel("itemStyle").getItemStyle(),st=ns.getModel(["blur","itemStyle"]).getItemStyle(),pt=ns.getModel(["select","itemStyle"]).getItemStyle(),Ut=ns.get(["itemStyle","borderRadius"]),jn=zo.get("focus"),Cr=zo.get("blurScope"),Nr=zo.get("disabled"),pn=bh(ns)}ma.shape.r=Ut;var xs=t.getRawValue(Er),pl="-";xs&&xs[2]!=null&&(pl=xs[2]+""),bv(ma,pn,{labelFetcher:t,labelDataIndex:Er,defaultOpacity:wa.opacity,defaultText:pl}),ma.ensureState("emphasis").style=He,ma.ensureState("blur").style=st,ma.ensureState("select").style=pt,ih(ma,jn,Cr,Nr),ma.incremental=f,f&&(ma.states.emphasis.hoverLayer=!0),Oe.add(ma),Ne.setItemGraphicEl(Er,ma),this._progressiveEls&&this._progressiveEls.push(ma)}},e.prototype._renderOnGeo=function(t,r,s,c){var f=s.targetVisuals.inRange,T=s.targetVisuals.outOfRange,R=r.getData(),I=this._hmLayer||this._hmLayer||new iV;I.blurSize=r.get("blurSize"),I.pointSize=r.get("pointSize"),I.minOpacity=r.get("minOpacity"),I.maxOpacity=r.get("maxOpacity");var B=t.getViewRect().clone(),Y=t.getRoamTransform();B.applyTransform(Y);var q=Math.max(B.x,0),ie=Math.max(B.y,0),ge=Math.min(B.width+B.x,c.getWidth()),Oe=Math.min(B.height+B.y,c.getHeight()),Ne=ge-q,He=Oe-ie,st=[R.mapDimension("lng"),R.mapDimension("lat"),R.mapDimension("value")],pt=R.mapArray(st,function(jn,Cr,Nr){var Rr=t.dataToPoint([jn,Cr]);return Rr[0]-=q,Rr[1]-=ie,Rr.push(Nr),Rr}),Ut=s.getExtent(),pn=s.type==="visualMap.continuous"?sV(Ut,s.option.range):oV(Ut,s.getPieceList(),s.option.selected);I.update(pt,Ne,He,f.color.getNormalizer(),{inRange:f.color.getColorMapper(),outOfRange:T.color.getColorMapper()},pn);var yn=new wp({style:{width:Ne,height:He,x:q,y:ie,image:I.canvas},silent:!0});this.group.add(yn)},e.type="heatmap",e}(vv),cV=lV,uV=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return Tb(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=tS.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(oh),fV=uV;function dV(n){n.registerChartView(cV),n.registerSeriesModel(fV)}var pV=["itemStyle","borderWidth"],Z8=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],V8=new y0,z8=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s){var c=this.group,f=t.getData(),T=this._data,R=t.coordinateSystem,I=R.getBaseAxis(),B=I.isHorizontal(),Y=R.master.getRect(),q={ecSize:{width:s.getWidth(),height:s.getHeight()},seriesModel:t,coordSys:R,coordSysExtent:[[Y.x,Y.x+Y.width],[Y.y,Y.y+Y.height]],isHorizontal:B,valueDim:Z8[+B],categoryDim:Z8[1-+B]};return f.diff(T).add(function(ie){if(!!f.hasValue(ie)){var ge=mV(f,ie),Oe=W8(f,ie,ge,q),Ne=X8(f,q,Oe);f.setItemGraphicEl(ie,Ne),c.add(Ne),q8(Ne,q,Oe)}}).update(function(ie,ge){var Oe=T.getItemGraphicEl(ge);if(!f.hasValue(ie)){c.remove(Oe);return}var Ne=mV(f,ie),He=W8(f,ie,Ne,q),st=Q8(f,He);Oe&&st!==Oe.__pictorialShapeStr&&(c.remove(Oe),f.setItemGraphicEl(ie,null),Oe=null),Oe?J8(Oe,q,He):Oe=X8(f,q,He,!0),f.setItemGraphicEl(ie,Oe),Oe.__pictorialSymbolMeta=He,c.add(Oe),q8(Oe,q,He)}).remove(function(ie){var ge=T.getItemGraphicEl(ie);ge&&vC(T,ie,ge.__pictorialSymbolMeta.animationModel,ge)}).execute(),this._data=f,this.group},e.prototype.remove=function(t,r){var s=this.group,c=this._data;t.get("animation")?c&&c.eachItemGraphicEl(function(f){vC(c,nu(f).dataIndex,t,f)}):s.removeAll()},e.type="pictorialBar",e}(vv);function W8(n,e,t,r){var s=n.getItemLayout(e),c=t.get("symbolRepeat"),f=t.get("symbolClip"),T=t.get("symbolPosition")||"start",R=t.get("symbolRotate"),I=(R||0)*Math.PI/180||0,B=t.get("symbolPatternSize")||2,Y=t.isAnimationEnabled(),q={dataIndex:e,layout:s,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:f,symbolRepeat:c,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:B,rotation:I,animationModel:Y?t:null,hoverScale:Y&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};H8(t,c,s,r,q),G8(n,e,s,c,f,q.boundingLength,q.pxSign,B,r,q),vV(t,q.symbolScale,I,r,q);var ie=q.symbolSize,ge=Tv(t.get("symbolOffset"),ie);return $8(t,ie,s,c,f,ge,T,q.valueLineWidth,q.boundingLength,q.repeatCutLength,r,q),q}function H8(n,e,t,r,s){var c=r.valueDim,f=n.get("symbolBoundingData"),T=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),R=T.toGlobalCoord(T.dataToCoord(0)),I=1-+(t[c.wh]<=0),B;if(La(f)){var Y=[YR(T,f[0])-R,YR(T,f[1])-R];Y[1]<Y[0]&&Y.reverse(),B=Y[I]}else f!=null?B=YR(T,f)-R:e?B=r.coordSysExtent[c.index][I]-R:B=t[c.wh];s.boundingLength=B,e&&(s.repeatCutLength=t[c.wh]),s.pxSign=B>0?1:-1}function YR(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function G8(n,e,t,r,s,c,f,T,R,I){var B=R.valueDim,Y=R.categoryDim,q=Math.abs(t[Y.wh]),ie=n.getItemVisual(e,"symbolSize"),ge;La(ie)?ge=ie.slice():ie==null?ge=["100%","100%"]:ge=[ie,ie],ge[Y.index]=It(ge[Y.index],q),ge[B.index]=It(ge[B.index],r?q:Math.abs(c)),I.symbolSize=ge;var Oe=I.symbolScale=[ge[0]/T,ge[1]/T];Oe[B.index]*=(R.isHorizontal?-1:1)*f}function vV(n,e,t,r,s){var c=n.get(pV)||0;c&&(V8.attr({scaleX:e[0],scaleY:e[1],rotation:t}),V8.updateTransform(),c/=V8.getLineScale(),c*=e[r.valueDim.index]),s.valueLineWidth=c||0}function $8(n,e,t,r,s,c,f,T,R,I,B,Y){var q=B.categoryDim,ie=B.valueDim,ge=Y.pxSign,Oe=Math.max(e[ie.index]+T,0),Ne=Oe;if(r){var He=Math.abs(R),st=nn(n.get("symbolMargin"),"15%")+"",pt=!1;st.lastIndexOf("!")===st.length-1&&(pt=!0,st=st.slice(0,st.length-1));var Ut=It(st,e[ie.index]),pn=Math.max(Oe+Ut*2,0),yn=pt?0:Ut*2,jn=_d(r),Cr=jn?r:eF((He+yn)/pn),Nr=He-Cr*Oe;Ut=Nr/2/(pt?Cr:Math.max(Cr-1,1)),pn=Oe+Ut*2,yn=pt?0:Ut*2,!jn&&r!=="fixed"&&(Cr=I?eF((Math.abs(I)+yn)/pn):0),Ne=Cr*pn-yn,Y.repeatTimes=Cr,Y.symbolMargin=Ut}var Rr=ge*(Ne/2),Er=Y.pathPosition=[];Er[q.index]=t[q.wh]/2,Er[ie.index]=f==="start"?Rr:f==="end"?R-Rr:R/2,c&&(Er[0]+=c[0],Er[1]+=c[1]);var ma=Y.bundlePosition=[];ma[q.index]=t[q.xy],ma[ie.index]=t[ie.xy];var wa=Y.barRectShape=Ea({},t);wa[ie.wh]=ge*Math.max(Math.abs(t[ie.wh]),Math.abs(Er[ie.index]+Rr)),wa[q.wh]=t[q.wh];var Ga=Y.clipShape={};Ga[q.xy]=-t[q.xy],Ga[q.wh]=B.ecSize[q.wh],Ga[ie.xy]=0,Ga[ie.wh]=t[ie.wh]}function XR(n){var e=n.symbolPatternSize,t=ad(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function K8(n,e,t,r){var s=n.__pictorialBundle,c=t.symbolSize,f=t.valueLineWidth,T=t.pathPosition,R=e.valueDim,I=t.repeatTimes||0,B=0,Y=c[e.valueDim.index]+f+t.symbolMargin*2;for(m4(n,function(Oe){Oe.__pictorialAnimationIndex=B,Oe.__pictorialRepeatTimes=I,B<I?Iw(Oe,null,ge(B),t,r):Iw(Oe,null,{scaleX:0,scaleY:0},t,r,function(){s.remove(Oe)}),B++});B<I;B++){var q=XR(t);q.__pictorialAnimationIndex=B,q.__pictorialRepeatTimes=I,s.add(q);var ie=ge(B);Iw(q,{x:ie.x,y:ie.y,scaleX:0,scaleY:0},{scaleX:ie.scaleX,scaleY:ie.scaleY,rotation:ie.rotation},t,r)}function ge(Oe){var Ne=T.slice(),He=t.pxSign,st=Oe;return(t.symbolRepeatDirection==="start"?He>0:He<0)&&(st=I-1-Oe),Ne[R.index]=Y*(st-I/2+.5)+T[R.index],{x:Ne[0],y:Ne[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function hV(n,e,t,r){var s=n.__pictorialBundle,c=n.__pictorialMainPath;c?Iw(c,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(c=n.__pictorialMainPath=XR(t),s.add(c),Iw(c,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function Y8(n,e,t){var r=Ea({},e.barRectShape),s=n.__pictorialBarRect;s?Iw(s,null,{shape:r},e,t):(s=n.__pictorialBarRect=new jd({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),s.disableMorphing=!0,n.add(s))}function JR(n,e,t,r){if(t.symbolClip){var s=n.__pictorialClipPath,c=Ea({},t.clipShape),f=e.valueDim,T=t.animationModel,R=t.dataIndex;if(s)vp(s,{shape:c},T,R);else{c[f.wh]=0,s=new jd({shape:c}),n.__pictorialBundle.setClipPath(s),n.__pictorialClipPath=s;var I={};I[f.wh]=t.clipShape[f.wh],x[r?"updateProps":"initProps"](s,{shape:I},T,R)}}}function mV(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=gV,t.isAnimationEnabled=hH,t}function gV(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function hH(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function X8(n,e,t,r){var s=new Qi,c=new Qi;return s.add(c),s.__pictorialBundle=c,c.x=t.bundlePosition[0],c.y=t.bundlePosition[1],t.symbolRepeat?K8(s,e,t):hV(s,e,t),Y8(s,t,r),JR(s,e,t,r),s.__pictorialShapeStr=Q8(n,t),s.__pictorialSymbolMeta=t,s}function J8(n,e,t){var r=t.animationModel,s=t.dataIndex,c=n.__pictorialBundle;vp(c,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,s),t.symbolRepeat?K8(n,e,t,!0):hV(n,e,t,!0),Y8(n,t,!0),JR(n,e,t,!0)}function vC(n,e,t,r){var s=r.__pictorialBarRect;s&&s.removeTextContent();var c=[];m4(r,function(f){c.push(f)}),r.__pictorialMainPath&&c.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),At(c,function(f){p0(f,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function Q8(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function m4(n,e,t){At(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Iw(n,e,t,r,s,c){e&&n.attr(e),r.symbolClip&&!s?t&&n.attr(t):t&&x[s?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,c)}function q8(n,e,t){var r=t.dataIndex,s=t.itemModel,c=s.getModel("emphasis"),f=c.getModel("itemStyle").getItemStyle(),T=s.getModel(["blur","itemStyle"]).getItemStyle(),R=s.getModel(["select","itemStyle"]).getItemStyle(),I=s.getShallow("cursor"),B=c.get("focus"),Y=c.get("blurScope"),q=c.get("scale");m4(n,function(Oe){if(Oe instanceof wp){var Ne=Oe.style;Oe.useStyle(Ea({image:Ne.image,x:Ne.x,y:Ne.y,width:Ne.width,height:Ne.height},t.style))}else Oe.useStyle(t.style);var He=Oe.ensureState("emphasis");He.style=f,q&&(He.scaleX=Oe.scaleX*1.1,He.scaleY=Oe.scaleY*1.1),Oe.ensureState("blur").style=T,Oe.ensureState("select").style=R,I&&(Oe.cursor=I),Oe.z2=t.z2});var ie=e.valueDim.posDesc[+(t.boundingLength>0)],ge=n.__pictorialBarRect;bv(ge,bh(s),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:ow(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:ie}),ih(n,B,Y,c.get("disabled"))}function eF(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}var g4=z8,_V=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=U0(qx.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(qx),tF=_V;function yV(n){n.registerChartView(g4),n.registerSeriesModel(tF),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,$i(bL,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,xL("pictorialBar"))}var bV=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,s){var c=t.getData(),f=this,T=this.group,R=t.getLayerSeries(),I=c.getLayout("layoutInfo"),B=I.rect,Y=I.boundaryGap;T.x=0,T.y=B.y+Y[0];function q(Ne){return Ne.name}var ie=new Sb(this._layersSeries||[],R,q,q),ge=[];ie.add(Xa(Oe,this,"add")).update(Xa(Oe,this,"update")).remove(Xa(Oe,this,"remove")).execute();function Oe(Ne,He,st){var pt=f._layers;if(Ne==="remove"){T.remove(pt[He]);return}for(var Ut=[],pn=[],yn,jn=R[He].indices,Cr=0;Cr<jn.length;Cr++){var Nr=c.getItemLayout(jn[Cr]),Rr=Nr.x,Er=Nr.y0,ma=Nr.y;Ut.push(Rr,Er),pn.push(Rr,Er+ma),yn=c.getItemVisual(jn[Cr],"style")}var wa,Ga=c.getItemLayout(jn[0]),Ei=t.getModel("label"),Vi=Ei.get("margin"),ns=t.getModel("emphasis");if(Ne==="add"){var zo=ge[He]=new Qi;wa=new QI({shape:{points:Ut,stackedOnPoints:pn,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),zo.add(wa),T.add(zo),t.isAnimationEnabled()&&wa.setClipPath(xV(wa.getBoundingRect(),t,function(){wa.removeClipPath()}))}else{var zo=pt[st];wa=zo.childAt(0),T.add(zo),ge[He]=zo,vp(wa,{shape:{points:Ut,stackedOnPoints:pn}},t),e_(wa)}bv(wa,bh(t),{labelDataIndex:jn[Cr-1],defaultText:c.getName(jn[Cr-1]),inheritColor:yn.fill},{normal:{verticalAlign:"middle"}}),wa.setTextConfig({position:null,local:!0});var xs=wa.getTextContent();xs&&(xs.x=Ga.x-Vi,xs.y=Ga.y0+Ga.y/2),wa.useStyle(yn),c.setItemGraphicEl(He,wa),Om(wa,t),ih(wa,ns.get("focus"),ns.get("blurScope"),ns.get("disabled"))}this._layersSeries=R,this._layers=ge},e.type="themeRiver",e}(vv);function xV(n,e,t){var r=new jd({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return Sv(r,{shape:{x:n.x-50,width:n.width+100,height:n.height+20}},e,t),r}var EV=bV,_4=2,SV=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new VS(Xa(this.getData,this),Xa(this.getRawData,this))},e.prototype.fixData=function(t){var r=t.length,s={},c=Jf(t,function(q){return s.hasOwnProperty(q[0]+"")||(s[q[0]+""]=-1),q[2]}),f=[];c.buckets.each(function(q,ie){f.push({name:ie,dataList:q})});for(var T=f.length,R=0;R<T;++R){for(var I=f[R].name,B=0;B<f[R].dataList.length;++B){var Y=f[R].dataList[B][0]+"";s[Y]=R}for(var Y in s)s.hasOwnProperty(Y)&&s[Y]!==R&&(s[Y]=R,t[r]=[Y,0,I],r++)}return t},e.prototype.getInitialData=function(t,r){for(var s=this.getReferringComponents("singleAxis",vs).models[0],c=s.get("type"),f=Yn(t.data,function(ge){return ge[2]!==void 0}),T=this.fixData(f||[]),R=[],I=this.nameMap=Za(),B=0,Y=0;Y<T.length;++Y)R.push(T[Y][_4]),I.get(T[Y][_4])||(I.set(T[Y][_4],B),B++);var q=aw(T,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:BI(c)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,ie=new M_(q,this);return ie.initData(T),ie},e.prototype.getLayerSeries=function(){for(var t=this.getData(),r=t.count(),s=[],c=0;c<r;++c)s[c]=c;var f=t.mapDimension("single"),T=Jf(s,function(I){return t.get("name",I)}),R=[];return T.buckets.each(function(I,B){I.sort(function(Y,q){return t.get(f,Y)-t.get(f,q)}),R.push({name:B,indices:I})}),R},e.prototype.getAxisTooltipData=function(t,r,s){La(t)||(t=t?[t]:[]);for(var c=this.getData(),f=this.getLayerSeries(),T=[],R=f.length,I,B=0;B<R;++B){for(var Y=Number.MAX_VALUE,q=-1,ie=f[B].indices.length,ge=0;ge<ie;++ge){var Oe=c.get(t[0],f[B].indices[ge]),Ne=Math.abs(Oe-r);Ne<=Y&&(I=Oe,Y=Ne,q=f[B].indices[ge])}T.push(q)}return{dataIndices:T,nestestValue:I}},e.prototype.formatTooltip=function(t,r,s){var c=this.getData(),f=c.getName(t),T=c.get(c.mapDimension("value"),t);return em("nameValue",{name:f,value:T})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(oh),CV=SV;function wV(n,e){n.eachSeriesByType("themeRiver",function(t){var r=t.getData(),s=t.coordinateSystem,c={},f=s.getRect();c.rect=f;var T=t.get("boundaryGap"),R=s.getAxis();if(c.boundaryGap=T,R.orient==="horizontal"){T[0]=It(T[0],f.height),T[1]=It(T[1],f.height);var I=f.height-T[0]-T[1];nF(r,t,I)}else{T[0]=It(T[0],f.width),T[1]=It(T[1],f.width);var B=f.width-T[0]-T[1];nF(r,t,B)}r.setLayout("layoutInfo",c)})}function nF(n,e,t){if(!!n.count())for(var r=e.coordinateSystem,s=e.getLayerSeries(),c=n.mapDimension("single"),f=n.mapDimension("value"),T=ar(s,function(Ne){return ar(Ne.indices,function(He){var st=r.dataToPoint(n.get(c,He));return st[1]=n.get(f,He),st})}),R=TV(T),I=R.y0,B=t/R.max,Y=s.length,q=s[0].indices.length,ie,ge=0;ge<q;++ge){ie=I[ge]*B,n.setItemLayout(s[0].indices[ge],{layerIndex:0,x:T[0][ge][0],y0:ie,y:T[0][ge][1]*B});for(var Oe=1;Oe<Y;++Oe)ie+=T[Oe-1][ge][1]*B,n.setItemLayout(s[Oe].indices[ge],{layerIndex:Oe,x:T[Oe][ge][0],y0:ie,y:T[Oe][ge][1]*B})}}function TV(n){for(var e=n.length,t=n[0].length,r=[],s=[],c=0,f=0;f<t;++f){for(var T=0,R=0;R<e;++R)T+=n[R][f][1];T>c&&(c=T),r.push(T)}for(var I=0;I<t;++I)s[I]=(c-r[I])/2;c=0;for(var B=0;B<t;++B){var Y=r[B]+s[B];Y>c&&(c=Y)}return{y0:s,max:c}}function AV(n){n.registerChartView(EV),n.registerSeriesModel(CV),n.registerLayout(wV),n.registerProcessor(kg("themeRiver"))}var MV=2,kV=4,C=function(n){ze(e,n);function e(t,r,s,c){var f=n.call(this)||this;f.z2=MV,f.textConfig={inside:!0},nu(f).seriesIndex=r.seriesIndex;var T=new Tp({z2:kV,silent:t.getModel().get(["label","silent"])});return f.setTextContent(T),f.updateData(!0,t,r,s,c),f}return e.prototype.updateData=function(t,r,s,c,f){this.node=r,r.piece=this,s=s||this._seriesModel,c=c||this._ecModel;var T=this;nu(T).dataIndex=r.dataIndex;var R=r.getModel(),I=R.getModel("emphasis"),B=r.getLayout(),Y=Ea({},B);Y.label=null;var q=r.getVisual("style");q.lineJoin="bevel";var ie=r.getVisual("decal");ie&&(q.decal=mb(ie,f));var ge=ZS(R.getModel("itemStyle"),Y,!0);Ea(Y,ge),At(Wm,function(st){var pt=T.ensureState(st),Ut=R.getModel([st,"itemStyle"]);pt.style=Ut.getItemStyle();var pn=ZS(Ut,Y);pn&&(pt.shape=pn)}),t?(T.setShape(Y),T.shape.r=B.r0,Sv(T,{shape:{r:B.r}},s,r.dataIndex)):(vp(T,{shape:Y},s),e_(T)),T.useStyle(q),this._updateLabel(s);var Oe=R.getShallow("cursor");Oe&&T.attr("cursor",Oe),this._seriesModel=s||this._seriesModel,this._ecModel=c||this._ecModel;var Ne=I.get("focus"),He=Ne==="ancestor"?r.getAncestorsIndices():Ne==="descendant"?r.getDescendantIndices():Ne;ih(this,He,I.get("blurScope"),I.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,s=this.node.getModel(),c=s.getModel("label"),f=this.node.getLayout(),T=f.endAngle-f.startAngle,R=(f.startAngle+f.endAngle)/2,I=Math.cos(R),B=Math.sin(R),Y=this,q=Y.getTextContent(),ie=this.node.dataIndex,ge=c.get("minAngle")/180*Math.PI,Oe=c.get("show")&&!(ge!=null&&Math.abs(T)<ge);q.ignore=!Oe,At(L_,function(He){var st=He==="normal"?s.getModel("label"):s.getModel([He,"label"]),pt=He==="normal",Ut=pt?q:q.ensureState(He),pn=t.getFormattedLabel(ie,He);pt&&(pn=pn||r.node.name),Ut.style=Cv(st,{},null,He!=="normal",!0),pn&&(Ut.style.text=pn);var yn=st.get("show");yn!=null&&!pt&&(Ut.ignore=!yn);var jn=Ne(st,"position"),Cr=pt?Y:Y.states[He],Nr=Cr.style.fill;Cr.textConfig={outsideFill:st.get("color")==="inherit"?Nr:null,inside:jn!=="outside"};var Rr,Er=Ne(st,"distance")||0,ma=Ne(st,"align");jn==="outside"?(Rr=f.r+Er,ma=R>Math.PI/2?"right":"left"):!ma||ma==="center"?(T===2*Math.PI&&f.r0===0?Rr=0:Rr=(f.r+f.r0)/2,ma="center"):ma==="left"?(Rr=f.r0+Er,R>Math.PI/2&&(ma="right")):ma==="right"&&(Rr=f.r-Er,R>Math.PI/2&&(ma="left")),Ut.style.align=ma,Ut.style.verticalAlign=Ne(st,"verticalAlign")||"middle",Ut.x=Rr*I+f.cx,Ut.y=Rr*B+f.cy;var wa=Ne(st,"rotate"),Ga=0;wa==="radial"?(Ga=d_(-R),Ga>Math.PI/2&&Ga<Math.PI*1.5&&(Ga+=Math.PI)):wa==="tangential"?(Ga=Math.PI/2-R,Ga>Math.PI/2?Ga-=Math.PI:Ga<-Math.PI/2&&(Ga+=Math.PI)):yo(wa)&&(Ga=wa*Math.PI/180),Ut.rotation=d_(Ga)});function Ne(He,st){var pt=He.get(st);return pt==null?c.get(st):pt}q.dirtyStyle()},e}(eg),i=C,a="sunburstRootToNode",l="sunburstHighlight",u="sunburstUnhighlight";function E(n){n.registerAction({type:a,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(s,c){var f=yM(e,[a],s);if(f){var T=s.getViewRoot();T&&(e.direction=yR(T,f.node)?"rollUp":"drillDown"),s.resetViewRoot(f.node)}}}),n.registerAction({type:l,update:"none"},function(e,t,r){e=Ea({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},s);function s(c){var f=yM(e,[l],c);f&&(e.dataIndex=f.node.dataIndex)}r.dispatchAction(Ea(e,{type:"highlight"}))}),n.registerAction({type:u,update:"updateView"},function(e,t,r){e=Ea({},e),r.dispatchAction(Ea(e,{type:"downplay"}))})}var P=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s,c){var f=this;this.seriesModel=t,this.api=s,this.ecModel=r;var T=t.getData(),R=T.tree.root,I=t.getViewRoot(),B=this.group,Y=t.get("renderLabelForZeroData"),q=[];I.eachNode(function(st){q.push(st)});var ie=this._oldChildren||[];ge(q,ie),He(R,I),this._initEvents(),this._oldChildren=q;function ge(st,pt){if(st.length===0&&pt.length===0)return;new Sb(pt,st,Ut,Ut).add(pn).update(pn).remove($i(pn,null)).execute();function Ut(yn){return yn.getId()}function pn(yn,jn){var Cr=yn==null?null:st[yn],Nr=jn==null?null:pt[jn];Oe(Cr,Nr)}}function Oe(st,pt){if(!Y&&st&&!st.getValue()&&(st=null),st!==R&&pt!==R){if(pt&&pt.piece)st?(pt.piece.updateData(!1,st,t,r,s),T.setItemGraphicEl(st.dataIndex,pt.piece)):Ne(pt);else if(st){var Ut=new i(st,t,r,s);B.add(Ut),T.setItemGraphicEl(st.dataIndex,Ut)}}}function Ne(st){!st||st.piece&&(B.remove(st.piece),st.piece=null)}function He(st,pt){pt.depth>0?(f.virtualPiece?f.virtualPiece.updateData(!1,st,t,r,s):(f.virtualPiece=new i(st,t,r,s),B.add(f.virtualPiece)),pt.piece.off("click"),f.virtualPiece.on("click",function(Ut){f._rootToNode(pt.parentNode)})):f.virtualPiece&&(B.remove(f.virtualPiece),f.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var s=!1,c=t.seriesModel.getViewRoot();c.eachNode(function(f){if(!s&&f.piece&&f.piece===r.target){var T=f.getModel().get("nodeClick");if(T==="rootToNode")t._rootToNode(f);else if(T==="link"){var R=f.getModel(),I=R.get("link");if(I){var B=R.get("target",!0)||"_blank";KC(I,B)}}s=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:a,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var s=r.getData(),c=s.getItemLayout(0);if(c){var f=t[0]-c.cx,T=t[1]-c.cy,R=Math.sqrt(f*f+T*T);return R<=c.r&&R>=c.r0}},e.type="sunburst",e}(vv),j=P,H=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var s={name:t.name,children:t.data};X(s);var c=this._levelModels=ar(t.levels||[],function(R){return new Lv(R,this,r)},this),f=c3.createTree(s,this,T);function T(R){R.wrapMethod("getItemModel",function(I,B){var Y=f.getNodeByDataIndex(B),q=c[Y.depth];return q&&(I.parentModel=q),I})}return f.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),s=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=bR(s,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){xw(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(oh);function X(n){var e=0;At(n.children,function(r){X(r);var s=r.value;La(s)&&(s=s[0]),e+=s});var t=n.value;La(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),La(n.value)?n.value[0]=t:n.value=t}var ee=H,se=Math.PI/180;function Se(n,e,t){e.eachSeriesByType(n,function(r){var s=r.get("center"),c=r.get("radius");La(c)||(c=[0,c]),La(s)||(s=[s,s]);var f=t.getWidth(),T=t.getHeight(),R=Math.min(f,T),I=It(s[0],f),B=It(s[1],T),Y=It(c[0],R/2),q=It(c[1],R/2),ie=-r.get("startAngle")*se,ge=r.get("minAngle")*se,Oe=r.getData().tree.root,Ne=r.getViewRoot(),He=Ne.depth,st=r.get("sort");st!=null&&Re(Ne,st);var pt=0;At(Ne.children,function(Vi){!isNaN(Vi.getValue())&&pt++});var Ut=Ne.getValue(),pn=Math.PI/(Ut||pt)*2,yn=Ne.depth>0,jn=Ne.height-(yn?-1:1),Cr=(q-Y)/(jn||1),Nr=r.get("clockwise"),Rr=r.get("stillShowZeroSum"),Er=Nr?1:-1,ma=function(Vi,ns){if(!!Vi){var zo=ns;if(Vi!==Oe){var xs=Vi.getValue(),pl=Ut===0&&Rr?pn:xs*pn;pl<ge&&(pl=ge),zo=ns+Er*pl;var Rl=Vi.depth-He-(yn?-1:1),zl=Y+Cr*Rl,Yc=Y+Cr*(Rl+1),kc=r.getLevelModel(Vi);if(kc){var tf=kc.get("r0",!0),wf=kc.get("r",!0),su=kc.get("radius",!0);su!=null&&(tf=su[0],wf=su[1]),tf!=null&&(zl=It(tf,R/2)),wf!=null&&(Yc=It(wf,R/2))}Vi.setLayout({angle:pl,startAngle:ns,endAngle:zo,clockwise:Nr,cx:I,cy:B,r0:zl,r:Yc})}if(Vi.children&&Vi.children.length){var ic=0;At(Vi.children,function(Uc){ic+=ma(Uc,ns+ic)})}return zo-ns}};if(yn){var wa=Y,Ga=Y+Cr,Ei=Math.PI*2;Oe.setLayout({angle:Ei,startAngle:ie,endAngle:ie+Ei,clockwise:Nr,cx:I,cy:B,r0:wa,r:Ga})}ma(Ne,ie)})}function Re(n,e){var t=n.children||[];n.children=Be(t,e),t.length&&At(n.children,function(r){Re(r,e)})}function Be(n,e){if(ja(e)){var t=ar(n,function(s,c){var f=s.getValue();return{params:{depth:s.depth,height:s.height,dataIndex:s.dataIndex,getValue:function(){return f}},index:c}});return t.sort(function(s,c){return e(s.params,c.params)}),ar(t,function(s){return n[s.index]})}else{var r=e==="asc";return n.sort(function(s,c){var f=(s.getValue()-c.getValue())*(r?1:-1);return f===0?(s.dataIndex-c.dataIndex)*(r?-1:1):f})}}function Ye(n){var e={};function t(r,s,c){for(var f=r;f&&f.depth>1;)f=f.parentNode;var T=s.getColorFromPalette(f.name||f.dataIndex+"",e);return r.depth>1&&ei(T)&&(T=Gu(T,(r.depth-1)/(c-1)*.5)),T}n.eachSeriesByType("sunburst",function(r){var s=r.getData(),c=s.tree;c.eachNode(function(f){var T=f.getModel(),R=T.getModel("itemStyle").getItemStyle();R.fill||(R.fill=t(f,r,c.root.height));var I=s.ensureUniqueItemVisual(f.dataIndex,"style");Ea(I,R)})})}function ht(n){n.registerChartView(j),n.registerSeriesModel(ee),n.registerLayout($i(Se,"sunburst")),n.registerProcessor($i(kg,"sunburst")),n.registerVisual(Ye),E(n)}var Tt={color:"fill",borderColor:"stroke"},Dt={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Kt=Bi(),gn=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return Tb(null,this)},e.prototype.getDataParams=function(t,r,s){var c=n.prototype.getDataParams.call(this,t,r);return s&&(c.info=Kt(s).info),c},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(oh),bn=gn;function mn(n,e){return e=e||[0,0],ar(["x","y"],function(t,r){var s=this.getAxis(t),c=e[r],f=n[r]/2;return s.type==="category"?s.getBandWidth():Math.abs(s.dataToCoord(c-f)-s.dataToCoord(c+f))},this)}function kn(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:Xa(mn,n)}}}function sr(n,e){return e=e||[0,0],ar([0,1],function(t){var r=e[t],s=n[t]/2,c=[],f=[];return c[t]=r-s,f[t]=r+s,c[1-t]=f[1-t]=e[1-t],Math.abs(this.dataToPoint(c)[t]-this.dataToPoint(f)[t])},this)}function yr(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:Xa(sr,n)}}}function jr(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,s=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-s)-t.dataToCoord(r+s))}function zr(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:Xa(jr,n)}}}function va(n,e){return e=e||[0,0],ar(["Radius","Angle"],function(t,r){var s="get"+t+"Axis",c=this[s](),f=e[r],T=n[r]/2,R=c.type==="category"?c.getBandWidth():Math.abs(c.dataToCoord(f-T)-c.dataToCoord(f+T));return t==="Angle"&&(R=R*Math.PI/180),R},this)}function za(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(s){var c=e.dataToRadius(s[0]),f=t.dataToAngle(s[1]),T=n.coordToPoint([c,f]);return T.push(c,f*Math.PI/180),T},size:Xa(va,n)}}}function xi(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,s){return n.dataToPoint(r,s)}}}}var Di={};function Si(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||Xi(n,"text")))}function jo(n,e,t){var r=n,s,c,f;if(e==="text")f=r;else{f={},Xi(r,"text")&&(f.text=r.text),Xi(r,"rich")&&(f.rich=r.rich),Xi(r,"textFill")&&(f.fill=r.textFill),Xi(r,"textStroke")&&(f.stroke=r.textStroke),Xi(r,"fontFamily")&&(f.fontFamily=r.fontFamily),Xi(r,"fontSize")&&(f.fontSize=r.fontSize),Xi(r,"fontStyle")&&(f.fontStyle=r.fontStyle),Xi(r,"fontWeight")&&(f.fontWeight=r.fontWeight),c={type:"text",style:f,silent:!0},s={};var T=Xi(r,"textPosition");t?s.position=T?r.textPosition:"inside":T&&(s.position=r.textPosition),Xi(r,"textPosition")&&(s.position=r.textPosition),Xi(r,"textOffset")&&(s.offset=r.textOffset),Xi(r,"textRotation")&&(s.rotation=r.textRotation),Xi(r,"textDistance")&&(s.distance=r.textDistance)}return ro(f,n),At(f.rich,function(R){ro(R,R)}),{textConfig:s,textContent:c}}function ro(n,e){!e||(e.font=e.textFont||e.font,Xi(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),Xi(e,"textAlign")&&(n.align=e.textAlign),Xi(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),Xi(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),Xi(e,"textWidth")&&(n.width=e.textWidth),Xi(e,"textHeight")&&(n.height=e.textHeight),Xi(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),Xi(e,"textPadding")&&(n.padding=e.textPadding),Xi(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),Xi(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),Xi(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),Xi(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),Xi(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),Xi(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),Xi(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function hi(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var s=r.textPosition.indexOf("inside")>=0,c=n.fill||"#000";io(r,e);var f=r.textFill==null;return s?f&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=c),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(f&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,At(e.rich,function(T){io(T,T)}),r}function io(n,e){!e||(Xi(e,"fill")&&(n.textFill=e.fill),Xi(e,"stroke")&&(n.textStroke=e.fill),Xi(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),Xi(e,"font")&&(n.font=e.font),Xi(e,"fontStyle")&&(n.fontStyle=e.fontStyle),Xi(e,"fontWeight")&&(n.fontWeight=e.fontWeight),Xi(e,"fontSize")&&(n.fontSize=e.fontSize),Xi(e,"fontFamily")&&(n.fontFamily=e.fontFamily),Xi(e,"align")&&(n.textAlign=e.align),Xi(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),Xi(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),Xi(e,"width")&&(n.textWidth=e.width),Xi(e,"height")&&(n.textHeight=e.height),Xi(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),Xi(e,"padding")&&(n.textPadding=e.padding),Xi(e,"borderColor")&&(n.textBorderColor=e.borderColor),Xi(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),Xi(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),Xi(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),Xi(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),Xi(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),Xi(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),Xi(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),Xi(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),Xi(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),Xi(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}function oo(n,e){if(!1)var t}var Ki={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Ji=Ua(Ki),Ao=ta(nv,function(n,e){return n[e]=1,n},{}),ks=nv.join(", "),Lo=["","style","shape","extra"],Is=Bi();function Cl(n,e,t,r,s){var c=n+"Animation",f=fy(n,r,s)||{},T=Is(e).userDuring;return f.duration>0&&(f.during=T?Xa(af,{el:e,userDuring:T}):null,f.setToFinal=!0,f.scope=n),Ea(f,t[c]),f}function il(n,e,t,r){r=r||{};var s=r.dataIndex,c=r.isInit,f=r.clearStyle,T=t.isAnimationEnabled(),R=Is(n),I=e.style;R.userDuring=e.during;var B={},Y={};if(Wc(n,e,Y),gu("shape",e,Y),gu("extra",e,Y),!c&&T&&(Vc(n,e,B),lf("shape",n,e,B),lf("extra",n,e,B),Mu(n,e,I,B)),Y.style=I,dp(n,Y,f),gv(n,e),T)if(c){var q={};At(Lo,function(ge){var Oe=ge?e[ge]:e;Oe&&Oe.enterFrom&&(ge&&(q[ge]=q[ge]||{}),Ea(ge?q[ge]:q,Oe.enterFrom))});var ie=Cl("enter",n,e,t,s);ie.duration>0&&n.animateFrom(q,ie)}else zf(n,e,s||0,t,B);Pl(n,e),I?n.dirty():n.markRedraw()}function Pl(n,e){for(var t=Is(n).leaveToProps,r=0;r<Lo.length;r++){var s=Lo[r],c=s?e[s]:e;c&&c.leaveTo&&(t||(t=Is(n).leaveToProps={}),s&&(t[s]=t[s]||{}),Ea(s?t[s]:t,c.leaveTo))}}function lc(n,e,t,r){if(n){var s=n.parent,c=Is(n).leaveToProps;if(c){var f=Cl("update",n,e,t,0);f.done=function(){s.remove(n),r&&r()},n.animateTo(c,f)}else s.remove(n),r&&r()}}function Mc(n){return n==="all"}function dp(n,e,t){var r=e.style;if(!n.isGroup&&r){if(t){n.useStyle({});for(var s=n.animators,c=0;c<s.length;c++){var f=s[c];f.targetName==="style"&&f.changeTarget(n.style)}}n.setStyle(r)}e&&(e.style=null,e&&n.attr(e),e.style=r)}function zf(n,e,t,r,s){if(s){var c=Cl("update",n,e,r,t);c.duration>0&&n.animateFrom(s,c)}}function gv(n,e){Xi(e,"silent")&&(n.silent=e.silent),Xi(e,"ignore")&&(n.ignore=e.ignore),n instanceof Qm&&Xi(e,"invisible")&&(n.invisible=e.invisible),n instanceof Od&&Xi(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var Wf={},cu={setTransform:function(n,e){return Wf.el[n]=e,this},getTransform:function(n){return Wf.el[n]},setShape:function(n,e){var t=Wf.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=Wf.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=Wf.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=Wf.el.style;if(e)return e[n]},setExtra:function(n,e){var t=Wf.el.extra||(Wf.el.extra={});return t[n]=e,this},getExtra:function(n){var e=Wf.el.extra;if(e)return e[n]}};function kf(n){}function af(){var n=this,e=n.el;if(!!e){var t=Is(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}Wf.el=e,r(cu)}}function lf(n,e,t,r){var s=t[n];if(!!s){var c=e[n],f;if(c){var T=t.transition,R=s.transition;if(R)if(!f&&(f=r[n]={}),Mc(R))Ea(f,c);else for(var I=Bf(R),B=0;B<I.length;B++){var Y=I[B],q=c[Y];f[Y]=q}else if(Mc(T)||Ui(T,n)>=0){!f&&(f=r[n]={});for(var ie=Ua(c),B=0;B<ie.length;B++){var Y=ie[B],q=c[Y];Rc(s[Y],q)&&(f[Y]=q)}}}}}function gu(n,e,t){var r=e[n];if(!!r)for(var s=t[n]={},c=Ua(r),f=0;f<c.length;f++){var T=c[f];s[T]=Wp(r[T])}}function Vc(n,e,t){for(var r=e.transition,s=Mc(r)?nv:Bf(r||[]),c=0;c<s.length;c++){var f=s[c];if(!(f==="style"||f==="shape"||f==="extra")){var T=n[f];t[f]=T}}}function Wc(n,e,t){for(var r=0;r<Ji.length;r++){var s=Ji[r],c=Ki[s],f=e[s];f&&(t[c[0]]=f[0],t[c[1]]=f[1])}for(var r=0;r<nv.length;r++){var T=nv[r];e[T]!=null&&(t[T]=e[T])}}function Mu(n,e,t,r){if(!!t){var s=n.style,c;if(s){var f=t.transition,T=e.transition;if(f&&!Mc(f)){var R=Bf(f);!c&&(c=r.style={});for(var I=0;I<R.length;I++){var B=R[I],Y=s[B];c[B]=Y}}else if(n.getAnimationStyleProps&&(Mc(T)||Mc(f)||Ui(T,"style")>=0)){var q=n.getAnimationStyleProps(),ie=q?q.style:null;if(ie){!c&&(c=r.style={});for(var ge=Ua(t),I=0;I<ge.length;I++){var B=ge[I];if(ie[B]){var Y=s[B];c[B]=Y}}}}}}}function Rc(n,e){return Pn(n)?n!==e:n!=null&&isFinite(n)}var Nl,Oc=Bi(),au=["percent","easing","shape","style","extra"];function ef(n){n.stopAnimation("keyframe"),n.attr(Oc(n))}function ju(n,e,t){if(!(!t.isAnimationEnabled()||!e)){if(La(e)){At(e,function(T){ju(n,T,t)});return}var r=e.keyframes,s=e.duration;if(t&&s==null){var c=fy("enter",t,0);s=c&&c.duration}if(!(!r||!s)){var f=Oc(n);At(Lo,function(T){if(!(T&&!n[T])){var R,I=!1;r.sort(function(B,Y){return B.percent-Y.percent}),At(r,function(B){var Y=n.animators,q=T?B[T]:B;if(!!q){var ie=Ua(q);if(T||(ie=Yn(ie,function(Ne){return Ui(au,Ne)<0})),!!ie.length){R||(R=n.animate(T,e.loop,!0),R.scope="keyframe");for(var ge=0;ge<Y.length;ge++)Y[ge]!==R&&Y[ge].targetName===R.targetName&&Y[ge].stopTracks(ie);T&&(f[T]=f[T]||{});var Oe=T?f[T]:f;At(ie,function(Ne){Oe[Ne]=((T?n[T]:n)||{})[Ne]}),R.whenWithKeys(s*B.percent,q,ie,B.easing)}}}),!!R&&R.delay(e.delay||0).duration(s).start(e.easing)}})}}}var Gf="emphasis",ip="normal",ph="blur",Qp="select",Zh=[ip,Gf,ph,Qp],sg={normal:["itemStyle"],emphasis:[Gf,"itemStyle"],blur:[ph,"itemStyle"],select:[Qp,"itemStyle"]},qv={normal:["label"],emphasis:[Gf,"label"],blur:[ph,"label"],select:[Qp,"label"]},Cm=["x","y"],Rh="e\0\0",xv={normal:{},emphasis:{},blur:{},select:{}},ov={cartesian2d:kn,geo:yr,single:zr,polar:za,calendar:xi};function qf(n){return n instanceof Od}function Up(n){return n instanceof Qm}function eh(n,e){e.copyTransform(n),Up(e)&&Up(n)&&(e.setStyle(n.style),e.z=n.z,e.z2=n.z2,e.zlevel=n.zlevel,e.invisible=n.invisible,e.ignore=n.ignore,qf(e)&&qf(n)&&e.setShape(n.shape))}var lg=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s,c){this._progressiveEls=null;var f=this._data,T=t.getData(),R=this.group,I=cg(t,T,r,s);f||R.removeAll(),T.diff(f).add(function(Y){vh(s,null,Y,I(Y,c),t,R,T)}).remove(function(Y){var q=f.getItemGraphicEl(Y);q&&lc(q,Kt(q).option,t)}).update(function(Y,q){var ie=f.getItemGraphicEl(q);vh(s,ie,Y,I(Y,c),t,R,T)}).execute();var B=t.get("clip",!0)?HA(t.coordinateSystem,!1,t):null;B?R.setClipPath(B):R.removeClipPath(),this._data=T},e.prototype.incrementalPrepareRender=function(t,r,s){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,r,s,c,f){var T=r.getData(),R=cg(r,T,s,c),I=this._progressiveEls=[];function B(ie){ie.isGroup||(ie.incremental=!0,ie.ensureState("emphasis").hoverLayer=!0)}for(var Y=t.start;Y<t.end;Y++){var q=vh(null,null,Y,R(Y,f),r,this.group,T);q&&(q.traverse(B),I.push(q))}},e.prototype.eachRendered=function(t){ag(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,r,s,c){var f=r.element;if(f==null||s.name===f)return!0;for(;(s=s.__hostTarget||s.parent)&&s!==this.group;)if(s.name===f)return!0;return!1},e.type="custom",e}(vv),Ld=lg;function md(n){var e=n.type,t;if(e==="path"){var r=n.shape,s=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,c=rF(r);t=_S(c,null,s,r.layout||"center"),Kt(t).customPathData=c}else if(e==="image")t=new wp({}),Kt(t).customImagePath=n.style.image;else if(e==="text")t=new Tp({});else if(e==="group")t=new Qi;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var f=k2(e);if(!f){var T="";Kp(T)}t=new f}return Kt(t).customGraphicType=e,t.name=n.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function mf(n,e,t,r,s,c,f){ef(e);var T=s&&s.normal.cfg;T&&e.setTextConfig(T),r&&r.transition==null&&(r.transition=Cm);var R=r&&r.style;if(R){if(e.type==="text"){var I=R;Xi(I,"textFill")&&(I.fill=I.textFill),Xi(I,"textStroke")&&(I.stroke=I.textStroke)}var B=void 0,Y=qf(e)?R.decal:null;n&&Y&&(Y.dirty=!0,B=mb(Y,n)),R.__decalPattern=B}if(Up(e)&&R){var B=R.__decalPattern;B&&(R.decal=B)}il(e,r,c,{dataIndex:t,isInit:f,clearStyle:!0}),ju(e,r.keyframeAnimation,c)}function Av(n,e,t,r,s){var c=e.isGroup?null:e,f=s&&s[n].cfg;if(c){var T=c.ensureState(n);if(r===!1){var R=c.getState(n);R&&(R.style=null)}else T.style=r||null;f&&(T.textConfig=f),F0(c)}}function Vh(n,e,t){if(!n.isGroup){var r=n,s=t.currentZ,c=t.currentZLevel;r.z=s,r.zlevel=c;var f=e.z2;f!=null&&(r.z2=f||0);for(var T=0;T<Zh.length;T++)Gv(r,e,Zh[T])}}function Gv(n,e,t){var r=t===ip,s=r?e:J_(e,t),c=s?s.z2:null,f;c!=null&&(f=r?n:n.ensureState(t),f.z2=c||0)}function cg(n,e,t,r){var s=n.get("renderItem"),c=n.coordinateSystem,f={};c&&(f=c.prepareCustoms?c.prepareCustoms(c):ov[c.type](c));for(var T=Pi({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:Ut,style:yn,ordinalRawValue:pn,styleEmphasis:jn,visual:Rr,barLayout:Er,currentSeriesIndices:ma,font:wa},f.api||{}),R={context:{},seriesId:n.id,seriesName:n.name,seriesIndex:n.seriesIndex,coordSys:f.coordSys,dataInsideLength:e.count(),encode:Py(n.getData())},I,B,Y={},q={},ie={},ge={},Oe=0;Oe<Zh.length;Oe++){var Ne=Zh[Oe];ie[Ne]=n.getModel(sg[Ne]),ge[Ne]=n.getModel(qv[Ne])}function He(Ga){return Ga===I?B||(B=e.getItemModel(Ga)):e.getItemModel(Ga)}function st(Ga,Ei){return e.hasItemOption?Ga===I?Y[Ei]||(Y[Ei]=He(Ga).getModel(sg[Ei])):He(Ga).getModel(sg[Ei]):ie[Ei]}function pt(Ga,Ei){return e.hasItemOption?Ga===I?q[Ei]||(q[Ei]=He(Ga).getModel(qv[Ei])):He(Ga).getModel(qv[Ei]):ge[Ei]}return function(Ga,Ei){return I=Ga,B=null,Y={},q={},s&&s(Pi({dataIndexInside:Ga,dataIndex:e.getRawIndex(Ga),actionType:Ei?Ei.type:null},R),T)};function Ut(Ga,Ei){return Ei==null&&(Ei=I),e.getStore().get(e.getDimensionIndex(Ga||0),Ei)}function pn(Ga,Ei){Ei==null&&(Ei=I),Ga=Ga||0;var Vi=e.getDimensionInfo(Ga);if(!Vi){var ns=e.getDimensionIndex(Ga);return ns>=0?e.getStore().get(ns,Ei):void 0}var zo=e.get(Vi.name,Ei),xs=Vi&&Vi.ordinalMeta;return xs?xs.categories[zo]:zo}function yn(Ga,Ei){Ei==null&&(Ei=I);var Vi=e.getItemVisual(Ei,"style"),ns=Vi&&Vi.fill,zo=Vi&&Vi.opacity,xs=st(Ei,ip).getItemStyle();ns!=null&&(xs.fill=ns),zo!=null&&(xs.opacity=zo);var pl={inheritColor:ei(ns)?ns:"#000"},Rl=pt(Ei,ip),zl=Cv(Rl,null,pl,!1,!0);zl.text=Rl.getShallow("show")?sn(n.getFormattedLabel(Ei,ip),ow(e,Ei)):null;var Yc=dy(Rl,pl,!1);return Nr(Ga,xs),xs=hi(xs,zl,Yc),Ga&&Cr(xs,Ga),xs.legacy=!0,xs}function jn(Ga,Ei){Ei==null&&(Ei=I);var Vi=st(Ei,Gf).getItemStyle(),ns=pt(Ei,Gf),zo=Cv(ns,null,null,!0,!0);zo.text=ns.getShallow("show")?Ot(n.getFormattedLabel(Ei,Gf),n.getFormattedLabel(Ei,ip),ow(e,Ei)):null;var xs=dy(ns,null,!0);return Nr(Ga,Vi),Vi=hi(Vi,zo,xs),Ga&&Cr(Vi,Ga),Vi.legacy=!0,Vi}function Cr(Ga,Ei){for(var Vi in Ei)Xi(Ei,Vi)&&(Ga[Vi]=Ei[Vi])}function Nr(Ga,Ei){Ga&&(Ga.textFill&&(Ei.textFill=Ga.textFill),Ga.textPosition&&(Ei.textPosition=Ga.textPosition))}function Rr(Ga,Ei){if(Ei==null&&(Ei=I),Xi(Tt,Ga)){var Vi=e.getItemVisual(Ei,"style");return Vi?Vi[Tt[Ga]]:null}if(Xi(Dt,Ga))return e.getItemVisual(Ei,Ga)}function Er(Ga){if(c.type==="cartesian2d"){var Ei=c.getBaseAxis();return Y7(Pi({axis:Ei},Ga))}}function ma(){return t.getCurrentSeriesIndices()}function wa(Ga){return vx(Ga,t)}}function Py(n){var e={};return At(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var s=r.coordDim,c=e[s]=e[s]||[];c[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function vh(n,e,t,r,s,c,f){if(!r){c.remove(e);return}var T=X_(n,e,t,r,s,c);return T&&f.setItemGraphicEl(t,T),T&&ih(T,r.focus,r.blurScope,r.emphasisDisabled),T}function X_(n,e,t,r,s,c){var f=-1,T=e;e&&qp(e,r,s)&&(f=Ui(c.childrenRef(),e),e=null);var R=!e,I=e;I?I.clearStates():(I=md(r),T&&eh(T,I)),r.morph===!1?I.disableMorphing=!0:I.disableMorphing&&(I.disableMorphing=!1),xv.normal.cfg=xv.normal.conOpt=xv.emphasis.cfg=xv.emphasis.conOpt=xv.blur.cfg=xv.blur.conOpt=xv.select.cfg=xv.select.conOpt=null,xv.isLegacy=!1,zh(I,t,r,s,R,xv),$m(I,t,r,s,R),mf(n,I,t,r,xv,s,R),Xi(r,"info")&&(Kt(I).info=r.info);for(var B=0;B<Zh.length;B++){var Y=Zh[B];if(Y!==ip){var q=J_(r,Y),ie=Dw(r,q,Y);Av(Y,I,q,ie,xv)}}return Vh(I,r,s),r.type==="group"&&QR(n,I,t,r,s),f>=0?c.replaceAt(I,f):c.add(I),I}function qp(n,e,t){var r=Kt(n),s=e.type,c=e.shape,f=e.style;return t.isUniversalTransitionEnabled()||s!=null&&s!==r.customGraphicType||s==="path"&&RV(c)&&rF(c)!==r.customPathData||s==="image"&&Xi(f,"image")&&f.image!==r.customImagePath}function $m(n,e,t,r,s){var c=t.clipPath;if(c===!1)n&&n.getClipPath()&&n.removeClipPath();else if(c){var f=n.getClipPath();f&&qp(f,c,r)&&(f=null),f||(f=md(c),n.setClipPath(f)),mf(null,f,e,c,null,r,s)}}function zh(n,e,t,r,s,c){if(!n.isGroup){Xg(t,null,c),Xg(t,Gf,c);var f=c.normal.conOpt,T=c.emphasis.conOpt,R=c.blur.conOpt,I=c.select.conOpt;if(f!=null||T!=null||I!=null||R!=null){var B=n.getTextContent();if(f===!1)B&&n.removeTextContent();else{f=c.normal.conOpt=f||{type:"text"},B?B.clearStates():(B=md(f),n.setTextContent(B)),mf(null,B,e,f,null,r,s);for(var Y=f&&f.style,q=0;q<Zh.length;q++){var ie=Zh[q];if(ie!==ip){var ge=c[ie].conOpt;Av(ie,B,ge,Dw(f,ge,ie),null)}}Y?B.dirty():B.markRedraw()}}}}function Xg(n,e,t){var r=e?J_(n,e):n,s=e?Dw(n,r,Gf):n.style,c=n.type,f=r?r.textConfig:null,T=n.textContent,R=T?e?J_(T,e):T:null;if(s&&(t.isLegacy||Si(s,c,!!f,!!R))){t.isLegacy=!0;var I=jo(s,c,!e);!f&&I.textConfig&&(f=I.textConfig),!R&&I.textContent&&(R=I.textContent)}if(!e&&R){var B=R;!B.type&&(B.type="text")}var Y=e?t[e]:t.normal;Y.cfg=f,Y.conOpt=R}function J_(n,e){return e?n?n[e]:null:n}function Dw(n,e,t){var r=e&&e.style;return r==null&&t===Gf&&n&&(r=n.styleEmphasis),r}function QR(n,e,t,r,s){var c=r.children,f=c?c.length:0,T=r.$mergeChildren,R=T==="byName"||r.diffChildrenByName,I=T===!1;if(!(!f&&!R&&!I)){if(R){qR({api:n,oldChildren:e.children()||[],newChildren:c||[],dataIndex:t,seriesModel:s,group:e});return}I&&e.removeAll();for(var B=0;B<f;B++){var Y=c[B],q=e.childAt(B);Y?(Y.ignore==null&&(Y.ignore=!1),X_(n,q,t,Y,s,e)):q.ignore=!0}for(var ie=e.childCount()-1;ie>=B;ie--){var ge=e.childAt(ie);ZM(e,ge,s)}}}function ZM(n,e,t){e&&lc(e,Kt(n).option,t)}function qR(n){new Sb(n.oldChildren,n.newChildren,VM,VM,n).add(zM).update(zM).remove(PV).execute()}function VM(n,e){var t=n&&n.name;return t!=null?t:Rh+e}function zM(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,s=e!=null?t.oldChildren[e]:null;X_(t.api,s,t.dataIndex,r,t.seriesModel,t.group)}function PV(n){var e=this.context,t=e.oldChildren[n];t&&lc(t,Kt(t).option,e.seriesModel)}function rF(n){return n&&(n.pathData||n.d)}function RV(n){return n&&(Xi(n,"pathData")||Xi(n,"d"))}function OV(n){n.registerChartView(Ld),n.registerSeriesModel(bn)}var sv=Bi(),op=Kr,th=Xa,Wh=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,s){var c=t.get("value"),f=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!s&&this._lastValue===c&&this._lastStatus===f)){this._lastValue=c,this._lastStatus=f;var T=this._group,R=this._handle;if(!f||f==="hide"){T&&T.hide(),R&&R.hide();return}T&&T.show(),R&&R.show();var I={};this.makeElOption(I,c,e,t,r);var B=I.graphicKey;B!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=B;var Y=this._moveAnimation=this.determineAnimation(e,t);if(!T)T=this._group=new Qi,this.createPointerEl(T,I,e,t),this.createLabelEl(T,I,e,t),r.getZr().add(T);else{var q=$i(Ry,t,Y);this.updatePointerEl(T,I,q),this.updateLabelEl(T,I,q,t)}Nw(T,t,!0),this._renderHandle(c)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),s=e.axis,c=s.type==="category",f=t.get("snap");if(!f&&!c)return!1;if(r==="auto"||r==null){var T=this.animationThreshold;if(c&&s.getBandWidth()>T)return!0;if(f){var R=Yp(e).seriesDataCount,I=s.getExtent();return Math.abs(I[0]-I[1])/R>T}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,s,c){},n.prototype.createPointerEl=function(e,t,r,s){var c=t.pointer;if(c){var f=sv(e).pointerEl=new x[c.type](op(t.pointer));e.add(f)}},n.prototype.createLabelEl=function(e,t,r,s){if(t.label){var c=sv(e).labelEl=new Tp(op(t.label));e.add(c),P_(c,s)}},n.prototype.updatePointerEl=function(e,t,r){var s=sv(e).pointerEl;s&&t.pointer&&(s.setStyle(t.pointer.style),r(s,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,s){var c=sv(e).labelEl;c&&(c.setStyle(t.label.style),r(c,{x:t.label.x,y:t.label.y}),P_(c,s))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),s=this._handle,c=t.getModel("handle"),f=t.get("status");if(!c.get("show")||!f||f==="hide"){s&&r.remove(s),this._handle=null;return}var T;this._handle||(T=!0,s=this._handle=tm(c.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(I){sl(I.event)},onmousedown:th(this._onHandleDragMove,this,0,0),drift:th(this._onHandleDragMove,this),ondragend:th(this._onHandleDragEnd,this)}),r.add(s)),Nw(s,t,!1),s.setStyle(c.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var R=c.get("size");La(R)||(R=[R,R]),s.scaleX=R[0]/2,s.scaleY=R[1]/2,ye(this,"_doDispatchAxisPointer",c.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,T)}},n.prototype._moveHandleToValue=function(e,t){Ry(this._axisPointerModel,!t&&this._moveAnimation,this._handle,aF(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(!!r){this._dragging=!0;var s=this.updateHandleTransform(aF(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=s,r.stopAnimation(),r.attr(aF(s)),sv(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(!!e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(!!e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,s=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),s&&t.remove(s),this._group=null,this._handle=null,this._payloadInfo=null),Ze(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function Ry(n,e,t,r){ey(sv(t).lastProp,r)||(sv(t).lastProp=r,e?vp(t,r,n):(t.stopAnimation(),t.attr(r)))}function ey(n,e){if(to(n)&&to(e)){var t=!0;return At(e,function(r,s){t=t&&ey(n[s],r)}),!!t}else return n===e}function P_(n,e){n[e.get(["label","show"])?"show":"hide"]()}function aF(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function Nw(n,e,t){var r=e.get("z"),s=e.get("zlevel");n&&n.traverse(function(c){c.type!=="group"&&(r!=null&&(c.z=r),s!=null&&(c.zlevel=s),c.silent=t)})}var IV=Wh;function DV(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function mH(n,e,t,r,s){var c=t.get("value"),f=gH(c,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),T=t.getModel("label"),R=Z0(T.get("padding")||0),I=T.getFont(),B=Mm(f,I),Y=s.position,q=B.width+R[1]+R[3],ie=B.height+R[0]+R[2],ge=s.align;ge==="right"&&(Y[0]-=q),ge==="center"&&(Y[0]-=q/2);var Oe=s.verticalAlign;Oe==="bottom"&&(Y[1]-=ie),Oe==="middle"&&(Y[1]-=ie/2),UY(Y,q,ie,r);var Ne=T.get("backgroundColor");(!Ne||Ne==="auto")&&(Ne=e.get(["axisLine","lineStyle","color"])),n.label={x:Y[0],y:Y[1],style:Cv(T,{text:f,font:I,fill:T.getTextColor(),padding:R,backgroundColor:Ne}),z2:10}}function UY(n,e,t,r){var s=r.getWidth(),c=r.getHeight();n[0]=Math.min(n[0]+e,s)-e,n[1]=Math.min(n[1]+t,c)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function gH(n,e,t,r,s){n=e.scale.parse(n);var c=e.scale.getLabel({value:n},{precision:s.precision}),f=s.formatter;if(f){var T={value:sM(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};At(r,function(R){var I=t.getSeriesByIndex(R.seriesIndex),B=R.dataIndexInside,Y=I&&I.getDataParams(B);Y&&T.seriesData.push(Y)}),ei(f)?c=f.replace("{value}",c):ja(f)&&(c=f(T))}return c}function NV(n,e,t){var r=Df();return Wu(r,r,t.rotation),Sc(r,r,t.position),zd([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function _H(n,e,t,r,s,c){var f=Db.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=s.get(["label","margin"]),mH(e,r,s,c,{position:NV(r.axis,n,t),align:f.textAlign,verticalAlign:f.textVerticalAlign})}function LV(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function yH(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function bH(n,e,t,r,s,c){return{cx:n,cy:e,r0:t,r,startAngle:s,endAngle:c,clockwise:!0}}var ZY=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,s,c,f){var T=s.axis,R=T.grid,I=c.get("type"),B=xH(R,T).getOtherAxis(T).getGlobalExtent(),Y=T.toGlobalCoord(T.dataToCoord(r,!0));if(I&&I!=="none"){var q=DV(c),ie=VY[I](T,Y,B);ie.style=q,t.graphicKey=ie.type,t.pointer=ie}var ge=DD(R.model,s);_H(r,t,ge,s,c,f)},e.prototype.getHandleTransform=function(t,r,s){var c=DD(r.axis.grid.model,r,{labelInside:!1});c.labelMargin=s.get(["handle","margin"]);var f=NV(r.axis,t,c);return{x:f[0],y:f[1],rotation:c.rotation+(c.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,s,c){var f=s.axis,T=f.grid,R=f.getGlobalExtent(!0),I=xH(T,f).getOtherAxis(f).getGlobalExtent(),B=f.dim==="x"?0:1,Y=[t.x,t.y];Y[B]+=r[B],Y[B]=Math.min(R[1],Y[B]),Y[B]=Math.max(R[0],Y[B]);var q=(I[1]+I[0])/2,ie=[q,q];ie[B]=Y[B];var ge=[{verticalAlign:"middle"},{align:"center"}];return{x:Y[0],y:Y[1],rotation:t.rotation,cursorPoint:ie,tooltipOption:ge[B]}},e}(IV);function xH(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var VY={line:function(n,e,t){var r=LV([e,t[0]],[e,t[1]],EH(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),s=t[1]-t[0];return{type:"Rect",shape:yH([e-r/2,t[0]],[r,s],EH(n))}}};function EH(n){return n.dim==="x"?0:1}var zY=ZY,WY=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Mp),HY=WY,hC=Bi(),GY=At;function SH(n,e,t){if(!Ct.node){var r=e.getZr();hC(r).records||(hC(r).records={}),$Y(r,e);var s=hC(r).records[n]||(hC(r).records[n]={});s.handler=t}}function $Y(n,e){if(hC(n).initialized)return;hC(n).initialized=!0,t("click",$i(CH,"click")),t("mousemove",$i(CH,"mousemove")),t("globalout",YY);function t(r,s){n.on(r,function(c){var f=XY(e);GY(hC(n).records,function(T){T&&s(T,c,f.dispatchAction)}),KY(f.pendings,e)})}}function KY(n,e){var t=n.showTip.length,r=n.hideTip.length,s;t?s=n.showTip[t-1]:r&&(s=n.hideTip[r-1]),s&&(s.dispatchAction=null,e.dispatchAction(s))}function YY(n,e,t){n.handler("leave",null,t)}function CH(n,e,t,r){e.handler(n,t,r)}function XY(n){var e={showTip:[],hideTip:[]},t=function(r){var s=e[r.type];s?s.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function FV(n,e){if(!Ct.node){var t=e.getZr(),r=(hC(t).records||{})[n];r&&(hC(t).records[n]=null)}}var JY=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s){var c=r.getComponent("tooltip"),f=t.get("triggerOn")||c&&c.get("triggerOn")||"mousemove|click";SH("axisPointer",s,function(T,R,I){f!=="none"&&(T==="leave"||f.indexOf(T)>=0)&&I({type:"updateAxisPointer",currTrigger:T,x:R&&R.offsetX,y:R&&R.offsetY})})},e.prototype.remove=function(t,r){FV("axisPointer",r)},e.prototype.dispose=function(t,r){FV("axisPointer",r)},e.type="axisPointer",e}(Eh),QY=JY;function wH(n,e){var t=[],r=n.seriesIndex,s;if(r==null||!(s=e.getSeriesByIndex(r)))return{point:[]};var c=s.getData(),f=Va(c,n);if(f==null||f<0||La(f))return{point:[]};var T=c.getItemGraphicEl(f),R=s.coordinateSystem;if(s.getTooltipPosition)t=s.getTooltipPosition(f)||[];else if(R&&R.dataToPoint)if(n.isStacked){var I=R.getBaseAxis(),B=R.getOtherAxis(I),Y=B.dim,q=I.dim,ie=Y==="x"||Y==="radius"?1:0,ge=c.mapDimension(q),Oe=[];Oe[ie]=c.get(ge,f),Oe[1-ie]=c.get(c.getCalculationInfo("stackResultDimension"),f),t=R.dataToPoint(Oe)||[]}else t=R.dataToPoint(c.getValues(ar(R.dimensions,function(He){return c.mapDimension(He)}),f))||[];else if(T){var Ne=T.getBoundingRect().clone();Ne.applyTransform(T.transform),t=[Ne.x+Ne.width/2,Ne.y+Ne.height/2]}return{point:t,el:T}}var TH=Bi();function qY(n,e,t){var r=n.currTrigger,s=[n.x,n.y],c=n,f=n.dispatchAction||Xa(t.dispatchAction,t),T=e.getComponent("axisPointer").coordSysAxesInfo;if(!!T){iF(s)&&(s=wH({seriesIndex:c.seriesIndex,dataIndex:c.dataIndex},e).point);var R=iF(s),I=c.axesInfo,B=T.axesInfo,Y=r==="leave"||iF(s),q={},ie={},ge={list:[],map:{}},Oe={showPointer:$i(tX,ie),showTooltip:$i(nX,ge)};At(T.coordSysMap,function(He,st){var pt=R||He.containPoint(s);At(T.coordSysAxesInfo[st],function(Ut,pn){var yn=Ut.axis,jn=oX(I,Ut);if(!Y&&pt&&(!I||jn)){var Cr=jn&&jn.value;Cr==null&&!R&&(Cr=yn.pointToData(s)),Cr!=null&&AH(Ut,Cr,Oe,!1,q)}})});var Ne={};return At(B,function(He,st){var pt=He.linkGroup;pt&&!ie[st]&&At(pt.axesInfo,function(Ut,pn){var yn=ie[pn];if(Ut!==He&&yn){var jn=yn.value;pt.mapper&&(jn=He.axis.scale.parse(pt.mapper(jn,MH(Ut),MH(He)))),Ne[He.key]=jn}})}),At(Ne,function(He,st){AH(B[st],He,Oe,!0,q)}),rX(ie,B,q),aX(ge,s,n,f),iX(B,f,t),q}}function AH(n,e,t,r,s){var c=n.axis;if(!(c.scale.isBlank()||!c.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var f=eX(e,n),T=f.payloadBatch,R=f.snapToValue;T[0]&&s.seriesIndex==null&&Ea(s,T[0]),!r&&n.snap&&c.containData(R)&&R!=null&&(e=R),t.showPointer(n,e,T),t.showTooltip(n,f,R)}}function eX(n,e){var t=e.axis,r=t.dim,s=n,c=[],f=Number.MAX_VALUE,T=-1;return At(e.seriesModels,function(R,I){var B=R.getData().mapDimensionsAll(r),Y,q;if(R.getAxisTooltipData){var ie=R.getAxisTooltipData(B,n,t);q=ie.dataIndices,Y=ie.nestestValue}else{if(q=R.getData().indicesOfNearest(B[0],n,t.type==="category"?.5:null),!q.length)return;Y=R.getData().get(B[0],q[0])}if(!(Y==null||!isFinite(Y))){var ge=n-Y,Oe=Math.abs(ge);Oe<=f&&((Oe<f||ge>=0&&T<0)&&(f=Oe,T=ge,s=Y,c.length=0),At(q,function(Ne){c.push({seriesIndex:R.seriesIndex,dataIndexInside:Ne,dataIndex:R.getData().getRawIndex(Ne)})}))}}),{payloadBatch:c,snapToValue:s}}function tX(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function nX(n,e,t,r){var s=t.payloadBatch,c=e.axis,f=c.model,T=e.axisPointerModel;if(!(!e.triggerTooltip||!s.length)){var R=e.coordSys.model,I=hw(R),B=n.map[I];B||(B=n.map[I]={coordSysId:R.id,coordSysIndex:R.componentIndex,coordSysType:R.type,coordSysMainType:R.mainType,dataByAxis:[]},n.list.push(B)),B.dataByAxis.push({axisDim:c.dim,axisIndex:f.componentIndex,axisType:f.type,axisId:f.id,value:r,valueLabelOpt:{precision:T.get(["label","precision"]),formatter:T.get(["label","formatter"])},seriesDataIndices:s.slice()})}}function rX(n,e,t){var r=t.axesInfo=[];At(e,function(s,c){var f=s.axisPointerModel.option,T=n[c];T?(!s.useHandle&&(f.status="show"),f.value=T.value,f.seriesDataIndices=(T.payloadBatch||[]).slice()):!s.useHandle&&(f.status="hide"),f.status==="show"&&r.push({axisDim:s.axis.dim,axisIndex:s.axis.model.componentIndex,value:f.value})})}function aX(n,e,t,r){if(iF(e)||!n.list.length){r({type:"hideTip"});return}var s=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:s.dataIndexInside,dataIndex:s.dataIndex,seriesIndex:s.seriesIndex,dataByCoordSys:n.list})}function iX(n,e,t){var r=t.getZr(),s="axisPointerLastHighlights",c=TH(r)[s]||{},f=TH(r)[s]={};At(n,function(I,B){var Y=I.axisPointerModel.option;Y.status==="show"&&I.triggerEmphasis&&At(Y.seriesDataIndices,function(q){var ie=q.seriesIndex+" | "+q.dataIndex;f[ie]=q})});var T=[],R=[];At(c,function(I,B){!f[B]&&R.push(I)}),At(f,function(I,B){!c[B]&&T.push(I)}),R.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:R}),T.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:T})}function oX(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function MH(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function iF(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function y4(n){YS.registerAxisPointerClass("CartesianAxisPointer",zY),n.registerComponentModel(HY),n.registerComponentView(QY),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!La(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=rj(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},qY)}function sX(n){Ud(m6),Ud(y4)}var lX=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,s,c,f){var T=s.axis;T.dim==="angle"&&(this.animationThreshold=Math.PI/18);var R=T.polar,I=R.getOtherAxis(T),B=I.getExtent(),Y=T.dataToCoord(r),q=c.get("type");if(q&&q!=="none"){var ie=DV(c),ge=uX[q](T,R,Y,B);ge.style=ie,t.graphicKey=ge.type,t.pointer=ge}var Oe=c.get(["label","margin"]),Ne=cX(r,s,c,R,Oe);mH(t,s,c,f,Ne)},e}(IV);function cX(n,e,t,r,s){var c=e.axis,f=c.dataToCoord(n),T=r.getAngleAxis().getExtent()[0];T=T/180*Math.PI;var R=r.getRadiusAxis().getExtent(),I,B,Y;if(c.dim==="radius"){var q=Df();Wu(q,q,T),Sc(q,q,[r.cx,r.cy]),I=zd([f,-s],q);var ie=e.getModel("axisLabel").get("rotate")||0,ge=Db.innerTextLayout(T,ie*Math.PI/180,-1);B=ge.textAlign,Y=ge.textVerticalAlign}else{var Oe=R[1];I=r.coordToPoint([Oe+s,f]);var Ne=r.cx,He=r.cy;B=Math.abs(I[0]-Ne)/Oe<.3?"center":I[0]>Ne?"left":"right",Y=Math.abs(I[1]-He)/Oe<.3?"middle":I[1]>He?"top":"bottom"}return{position:I,align:B,verticalAlign:Y}}var uX={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:LV(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var s=Math.max(1,n.getBandWidth()),c=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:bH(e.cx,e.cy,r[0],r[1],(-t-s/2)*c,(-t+s/2)*c)}:{type:"Sector",shape:bH(e.cx,e.cy,t-s/2,t+s/2,0,Math.PI*2)}}},fX=lX,dX=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,s=this.ecModel;return s.eachComponent(t,function(c){c.getCoordSysModel()===this&&(r=c)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Mp),pX=dX,jV=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",vs).models[0]},e.type="polarAxis",e}(Mp);Kn(jV,nM);var vX=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(jV),hX=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(jV),BV=function(n){ze(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(Dv);BV.prototype.dataToRadius=Dv.prototype.dataToCoord,BV.prototype.radiusToData=Dv.prototype.coordToData;var mX=BV,gX=Bi(),UV=function(n){ze(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),s=t.scale,c=s.getExtent(),f=s.count();if(c[1]-c[0]<1)return 0;var T=c[0],R=t.dataToCoord(T+1)-t.dataToCoord(T),I=Math.abs(R),B=Mm(T==null?"":T+"",r.getFont(),"center","top"),Y=Math.max(B.height,7),q=Y/I;isNaN(q)&&(q=Infinity);var ie=Math.max(0,Math.floor(q)),ge=gX(t.model),Oe=ge.lastAutoInterval,Ne=ge.lastTickCount;return Oe!=null&&Ne!=null&&Math.abs(Oe-ie)<=1&&Math.abs(Ne-f)<=1&&Oe>ie?ie=Oe:(ge.lastTickCount=f,ge.lastAutoInterval=ie),ie},e}(Dv);UV.prototype.dataToAngle=Dv.prototype.dataToCoord,UV.prototype.angleToData=Dv.prototype.coordToData;var _X=UV,kH=["radius","angle"],yX=function(){function n(e){this.dimensions=kH,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new mX,this._angleAxis=new _X,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,s=this._radiusAxis;return r.scale.type===e&&t.push(r),s.scale.type===e&&t.push(s),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,s=this.getAngleAxis(),c=s.getExtent(),f=Math.min(c[0],c[1]),T=Math.max(c[0],c[1]);s.inverse?f=T-360:T=f+360;var R=Math.sqrt(t*t+r*r);t/=R,r/=R;for(var I=Math.atan2(-r,t)/Math.PI*180,B=I<f?1:-1;I<f||I>T;)I+=B*360;return[R,I]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,s=Math.cos(r)*t+this.cx,c=-Math.sin(r)*t+this.cy;return[s,c]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var s=e.getExtent(),c=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-s[0]*c,endAngle:-s[1]*c,clockwise:e.inverse,contain:function(f,T){var R=f-this.cx,I=T-this.cy,B=R*R+I*I-1e-4,Y=this.r,q=this.r0;return B<=Y*Y&&B>=q*q}}},n.prototype.convertToPixel=function(e,t,r){var s=PH(t);return s===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var s=PH(t);return s===this?this.pointToData(r):null},n}();function PH(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var bX=yX;function xX(n,e,t){var r=e.get("center"),s=t.getWidth(),c=t.getHeight();n.cx=It(r[0],s),n.cy=It(r[1],c);var f=n.getRadiusAxis(),T=Math.min(s,c)/2,R=e.get("radius");R==null?R=[0,"100%"]:La(R)||(R=[0,R]);var I=[It(R[0],T),It(R[1],T)];f.inverse?f.setExtent(I[1],I[0]):f.setExtent(I[0],I[1])}function EX(n,e){var t=this,r=t.getAngleAxis(),s=t.getRadiusAxis();if(r.scale.setExtent(Infinity,-Infinity),s.scale.setExtent(Infinity,-Infinity),n.eachSeries(function(T){if(T.coordinateSystem===t){var R=T.getData();At(eR(R,"radius"),function(I){s.scale.unionExtentFromData(R,I)}),At(eR(R,"angle"),function(I){r.scale.unionExtentFromData(R,I)})}}),vw(r.scale,r.model),vw(s.scale,s.model),r.type==="category"&&!r.onBand){var c=r.getExtent(),f=360/r.scale.count();r.inverse?c[1]+=f:c[1]-=f,r.setExtent(c[0],c[1])}}function SX(n){return n.mainType==="angleAxis"}function RH(n,e){if(n.type=e.get("type"),n.scale=qP(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),SX(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var CX={dimensions:kH,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,s){var c=new bX(s+"");c.update=EX;var f=c.getRadiusAxis(),T=c.getAngleAxis(),R=r.findAxisModel("radiusAxis"),I=r.findAxisModel("angleAxis");RH(f,R),RH(T,I),xX(c,r,e),t.push(c),r.coordinateSystem=c,c.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var s=r.getReferringComponents("polar",vs).models[0];r.coordinateSystem=s.coordinateSystem}}),t}},wX=CX,TX=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function oF(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),s=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:s[0],y2:s[1]}}function sF(n){var e=n.getRadiusAxis();return e.inverse?0:1}function OH(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var AX=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var s=t.axis,c=s.polar,f=c.getRadiusAxis().getExtent(),T=s.getTicksCoords(),R=s.getMinorTicksCoords(),I=ar(s.getViewLabels(),function(B){B=Kr(B);var Y=s.scale,q=Y.type==="ordinal"?Y.getRawOrdinalNumber(B.tickValue):B.tickValue;return B.coord=s.dataToCoord(q),B});OH(I),OH(T),At(TX,function(B){t.get([B,"show"])&&(!s.scale.isBlank()||B==="axisLine")&&MX[B](this.group,t,c,T,R,f,I)},this)}},e.type="angleAxis",e}(YS),MX={axisLine:function(n,e,t,r,s,c){var f=e.getModel(["axisLine","lineStyle"]),T=sF(t),R=T?0:1,I;c[R]===0?I=new y0({shape:{cx:t.cx,cy:t.cy,r:c[T]},style:f.getLineStyle(),z2:1,silent:!0}):I=new W0({shape:{cx:t.cx,cy:t.cy,r:c[T],r0:c[R]},style:f.getLineStyle(),z2:1,silent:!0}),I.style.fill=null,n.add(I)},axisTick:function(n,e,t,r,s,c){var f=e.getModel("axisTick"),T=(f.get("inside")?-1:1)*f.get("length"),R=c[sF(t)],I=ar(r,function(B){return new jh({shape:oF(t,[R,R+T],B.coord)})});n.add(Gg(I,{style:Pi(f.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,s,c){if(!!s.length){for(var f=e.getModel("axisTick"),T=e.getModel("minorTick"),R=(f.get("inside")?-1:1)*T.get("length"),I=c[sF(t)],B=[],Y=0;Y<s.length;Y++)for(var q=0;q<s[Y].length;q++)B.push(new jh({shape:oF(t,[I,I+R],s[Y][q].coord)}));n.add(Gg(B,{style:Pi(T.getModel("lineStyle").getLineStyle(),Pi(f.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(n,e,t,r,s,c,f){var T=e.getCategories(!0),R=e.getModel("axisLabel"),I=R.get("margin"),B=e.get("triggerEvent");At(f,function(Y,q){var ie=R,ge=Y.tickValue,Oe=c[sF(t)],Ne=t.coordToPoint([Oe+I,Y.coord]),He=t.cx,st=t.cy,pt=Math.abs(Ne[0]-He)/Oe<.3?"center":Ne[0]>He?"left":"right",Ut=Math.abs(Ne[1]-st)/Oe<.3?"middle":Ne[1]>st?"top":"bottom";if(T&&T[ge]){var pn=T[ge];to(pn)&&pn.textStyle&&(ie=new Lv(pn.textStyle,R,R.ecModel))}var yn=new Tp({silent:Db.isLabelSilent(e),style:Cv(ie,{x:Ne[0],y:Ne[1],fill:ie.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:Y.formattedLabel,align:pt,verticalAlign:Ut})});if(n.add(yn),B){var jn=Db.makeAxisEventDataBase(e);jn.targetType="axisLabel",jn.value=Y.rawLabel,nu(yn).eventData=jn}},this)},splitLine:function(n,e,t,r,s,c){var f=e.getModel("splitLine"),T=f.getModel("lineStyle"),R=T.get("color"),I=0;R=R instanceof Array?R:[R];for(var B=[],Y=0;Y<r.length;Y++){var q=I++%R.length;B[q]=B[q]||[],B[q].push(new jh({shape:oF(t,c,r[Y].coord)}))}for(var Y=0;Y<B.length;Y++)n.add(Gg(B[Y],{style:Pi({stroke:R[Y%R.length]},T.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(n,e,t,r,s,c){if(!!s.length){for(var f=e.getModel("minorSplitLine"),T=f.getModel("lineStyle"),R=[],I=0;I<s.length;I++)for(var B=0;B<s[I].length;B++)R.push(new jh({shape:oF(t,c,s[I][B].coord)}));n.add(Gg(R,{style:T.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(n,e,t,r,s,c){if(!!r.length){var f=e.getModel("splitArea"),T=f.getModel("areaStyle"),R=T.get("color"),I=0;R=R instanceof Array?R:[R];for(var B=[],Y=Math.PI/180,q=-r[0].coord*Y,ie=Math.min(c[0],c[1]),ge=Math.max(c[0],c[1]),Oe=e.get("clockwise"),Ne=1,He=r.length;Ne<=He;Ne++){var st=Ne===He?r[0].coord:r[Ne].coord,pt=I++%R.length;B[pt]=B[pt]||[],B[pt].push(new eg({shape:{cx:t.cx,cy:t.cy,r0:ie,r:ge,startAngle:q,endAngle:-st*Y,clockwise:Oe},silent:!0})),q=-st*Y}for(var Ne=0;Ne<B.length;Ne++)n.add(Gg(B[Ne],{style:Pi({fill:R[Ne%R.length]},T.getAreaStyle()),silent:!0}))}}},kX=AX,PX=["axisLine","axisTickLabel","axisName"],RX=["splitLine","splitArea","minorSplitLine"],OX=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var s=this._axisGroup,c=this._axisGroup=new Qi;this.group.add(c);var f=t.axis,T=f.polar,R=T.getAngleAxis(),I=f.getTicksCoords(),B=f.getMinorTicksCoords(),Y=R.getExtent()[0],q=f.getExtent(),ie=DX(T,t,Y),ge=new Db(t,ie);At(PX,ge.add,ge),c.add(ge.getGroup()),hb(s,c,t),At(RX,function(Oe){t.get([Oe,"show"])&&!f.scale.isBlank()&&IX[Oe](this.group,t,T,Y,q,I,B)},this)}},e.type="radiusAxis",e}(YS),IX={splitLine:function(n,e,t,r,s,c){var f=e.getModel("splitLine"),T=f.getModel("lineStyle"),R=T.get("color"),I=0;R=R instanceof Array?R:[R];for(var B=[],Y=0;Y<c.length;Y++){var q=I++%R.length;B[q]=B[q]||[],B[q].push(new y0({shape:{cx:t.cx,cy:t.cy,r:Math.max(c[Y].coord,0)}}))}for(var Y=0;Y<B.length;Y++)n.add(Gg(B[Y],{style:Pi({stroke:R[Y%R.length],fill:null},T.getLineStyle()),silent:!0}))},minorSplitLine:function(n,e,t,r,s,c,f){if(!!f.length){for(var T=e.getModel("minorSplitLine"),R=T.getModel("lineStyle"),I=[],B=0;B<f.length;B++)for(var Y=0;Y<f[B].length;Y++)I.push(new y0({shape:{cx:t.cx,cy:t.cy,r:f[B][Y].coord}}));n.add(Gg(I,{style:Pi({fill:null},R.getLineStyle()),silent:!0}))}},splitArea:function(n,e,t,r,s,c){if(!!c.length){var f=e.getModel("splitArea"),T=f.getModel("areaStyle"),R=T.get("color"),I=0;R=R instanceof Array?R:[R];for(var B=[],Y=c[0].coord,q=1;q<c.length;q++){var ie=I++%R.length;B[ie]=B[ie]||[],B[ie].push(new eg({shape:{cx:t.cx,cy:t.cy,r0:Y,r:c[q].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),Y=c[q].coord}for(var q=0;q<B.length;q++)n.add(Gg(B[q],{style:Pi({fill:R[q%R.length]},T.getAreaStyle()),silent:!0}))}}};function DX(n,e,t){return{position:[n.cx,n.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var NX=OX;function IH(n){return n.get("stack")||"__ec_stack_"+n.seriesIndex}function DH(n,e){return e.dim+n.model.componentIndex}function LX(n,e,t){var r={},s=FX(Yn(e.getSeriesByType(n),function(c){return!e.isSeriesFiltered(c)&&c.coordinateSystem&&c.coordinateSystem.type==="polar"}));e.eachSeriesByType(n,function(c){if(c.coordinateSystem.type==="polar"){var f=c.getData(),T=c.coordinateSystem,R=T.getBaseAxis(),I=DH(T,R),B=IH(c),Y=s[I][B],q=Y.offset,ie=Y.width,ge=T.getOtherAxis(R),Oe=c.coordinateSystem.cx,Ne=c.coordinateSystem.cy,He=c.get("barMinHeight")||0,st=c.get("barMinAngle")||0;r[B]=r[B]||[];for(var pt=f.mapDimension(ge.dim),Ut=f.mapDimension(R.dim),pn=wb(f,pt),yn=R.dim!=="radius"||!c.get("roundCap",!0),jn=ge.dataToCoord(0),Cr=0,Nr=f.count();Cr<Nr;Cr++){var Rr=f.get(pt,Cr),Er=f.get(Ut,Cr),ma=Rr>=0?"p":"n",wa=jn;pn&&(r[B][Er]||(r[B][Er]={p:jn,n:jn}),wa=r[B][Er][ma]);var Ga=void 0,Ei=void 0,Vi=void 0,ns=void 0;if(ge.dim==="radius"){var zo=ge.dataToCoord(Rr)-jn,xs=R.dataToCoord(Er);Math.abs(zo)<He&&(zo=(zo<0?-1:1)*He),Ga=wa,Ei=wa+zo,Vi=xs-q,ns=Vi-ie,pn&&(r[B][Er][ma]=Ei)}else{var pl=ge.dataToCoord(Rr,yn)-jn,Rl=R.dataToCoord(Er);Math.abs(pl)<st&&(pl=(pl<0?-1:1)*st),Ga=Rl+q,Ei=Ga+ie,Vi=wa,ns=wa+pl,pn&&(r[B][Er][ma]=ns)}f.setItemLayout(Cr,{cx:Oe,cy:Ne,r0:Ga,r:Ei,startAngle:-Vi*Math.PI/180,endAngle:-ns*Math.PI/180,clockwise:Vi>=ns})}}})}function FX(n){var e={};At(n,function(r,s){var c=r.getData(),f=r.coordinateSystem,T=f.getBaseAxis(),R=DH(f,T),I=T.getExtent(),B=T.type==="category"?T.getBandWidth():Math.abs(I[1]-I[0])/c.count(),Y=e[R]||{bandWidth:B,remainedWidth:B,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},q=Y.stacks;e[R]=Y;var ie=IH(r);q[ie]||Y.autoWidthCount++,q[ie]=q[ie]||{width:0,maxWidth:0};var ge=It(r.get("barWidth"),B),Oe=It(r.get("barMaxWidth"),B),Ne=r.get("barGap"),He=r.get("barCategoryGap");ge&&!q[ie].width&&(ge=Math.min(Y.remainedWidth,ge),q[ie].width=ge,Y.remainedWidth-=ge),Oe&&(q[ie].maxWidth=Oe),Ne!=null&&(Y.gap=Ne),He!=null&&(Y.categoryGap=He)});var t={};return At(e,function(r,s){t[s]={};var c=r.stacks,f=r.bandWidth,T=It(r.categoryGap,f),R=It(r.gap,1),I=r.remainedWidth,B=r.autoWidthCount,Y=(I-T)/(B+(B-1)*R);Y=Math.max(Y,0),At(c,function(Oe,Ne){var He=Oe.maxWidth;He&&He<Y&&(He=Math.min(He,I),Oe.width&&(He=Math.min(He,Oe.width)),I-=He,Oe.width=He,B--)}),Y=(I-T)/(B+(B-1)*R),Y=Math.max(Y,0);var q=0,ie;At(c,function(Oe,Ne){Oe.width||(Oe.width=Y),ie=Oe,q+=Oe.width*(1+R)}),ie&&(q-=ie.width*R);var ge=-q/2;At(c,function(Oe,Ne){t[s][Ne]=t[s][Ne]||{offset:ge,width:Oe.width},ge+=Oe.width*(1+R)})}),t}var jX=LX,BX={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},UX={splitNumber:5},ZX=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(Eh);function VX(n){Ud(y4),YS.registerAxisPointerClass("PolarAxisPointer",fX),n.registerCoordinateSystem("polar",wX),n.registerComponentModel(pX),n.registerComponentView(ZX),WS(n,"angle",vX,BX),WS(n,"radius",hX,UX),n.registerComponentView(kX),n.registerComponentView(NX),n.registerLayout($i(jX,"bar"))}function ZV(n,e){e=e||{};var t=n.coordinateSystem,r=n.axis,s={},c=r.position,f=r.orient,T=t.getRect(),R=[T.x,T.x+T.width,T.y,T.y+T.height],I={horizontal:{top:R[2],bottom:R[3]},vertical:{left:R[0],right:R[1]}};s.position=[f==="vertical"?I.vertical[c]:R[0],f==="horizontal"?I.horizontal[c]:R[3]];var B={horizontal:0,vertical:1};s.rotation=Math.PI/2*B[f];var Y={top:-1,bottom:1,right:1,left:-1};s.labelDirection=s.tickDirection=s.nameDirection=Y[c],n.get(["axisTick","inside"])&&(s.tickDirection=-s.tickDirection),nn(e.labelInside,n.get(["axisLabel","inside"]))&&(s.labelDirection=-s.labelDirection);var q=e.rotate;return q==null&&(q=n.get(["axisLabel","rotate"])),s.labelRotation=c==="top"?-q:q,s.z2=1,s}var zX=["axisLine","axisTickLabel","axisName"],WX=["splitArea","splitLine"],HX=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,r,s,c){var f=this.group;f.removeAll();var T=this._axisGroup;this._axisGroup=new Qi;var R=ZV(t),I=new Db(t,R);At(zX,I.add,I),f.add(this._axisGroup),f.add(I.getGroup()),At(WX,function(B){t.get([B,"show"])&&GX[B](this,this.group,this._axisGroup,t)},this),hb(T,this._axisGroup,t),n.prototype.render.call(this,t,r,s,c)},e.prototype.remove=function(){BD(this)},e.type="singleAxis",e}(YS),GX={splitLine:function(n,e,t,r){var s=r.axis;if(!s.scale.isBlank()){var c=r.getModel("splitLine"),f=c.getModel("lineStyle"),T=f.get("color");T=T instanceof Array?T:[T];for(var R=f.get("width"),I=r.coordinateSystem.getRect(),B=s.isHorizontal(),Y=[],q=0,ie=s.getTicksCoords({tickModel:c}),ge=[],Oe=[],Ne=0;Ne<ie.length;++Ne){var He=s.toGlobalCoord(ie[Ne].coord);B?(ge[0]=He,ge[1]=I.y,Oe[0]=He,Oe[1]=I.y+I.height):(ge[0]=I.x,ge[1]=He,Oe[0]=I.x+I.width,Oe[1]=He);var st=new jh({shape:{x1:ge[0],y1:ge[1],x2:Oe[0],y2:Oe[1]},silent:!0});Nx(st.shape,R);var pt=q++%T.length;Y[pt]=Y[pt]||[],Y[pt].push(st)}for(var Ut=f.getLineStyle(["color"]),Ne=0;Ne<Y.length;++Ne)e.add(Gg(Y[Ne],{style:Pi({stroke:T[Ne%T.length]},Ut),silent:!0}))}},splitArea:function(n,e,t,r){mw(n,t,r,r)}},$X=HX,NH=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(Mp);Kn(NH,nM.prototype);var VV=NH,KX=function(n){ze(e,n);function e(t,r,s,c,f){var T=n.call(this,t,r,s)||this;return T.type=c||"value",T.position=f||"bottom",T}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,r){return this.coordinateSystem.pointToData(t)[0]},e}(Dv),YX=KX,LH=["single"],XX=function(){function n(e,t,r){this.type="single",this.dimension="single",this.dimensions=LH,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var s=this.dimension,c=new YX(s,qP(e),[0,0],e.get("type"),e.get("position")),f=c.type==="category";c.onBand=f&&e.get("boundaryGap"),c.inverse=e.get("inverse"),c.orient=e.get("orient"),e.axis=c,c.model=e,c.coordinateSystem=this,this._axis=c},n.prototype.update=function(e,t){e.eachSeries(function(r){if(r.coordinateSystem===this){var s=r.getData();At(s.mapDimensionsAll(this.dimension),function(c){this._axis.scale.unionExtentFromData(s,c)},this),vw(this._axis.scale,this._axis.model)}},this)},n.prototype.resize=function(e,t){this._rect=mm({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},n.prototype.getRect=function(){return this._rect},n.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,r=t.isHorizontal(),s=r?[0,e.width]:[0,e.height],c=t.inverse?1:0;t.setExtent(s[c],s[1-c]),this._updateAxisTransform(t,r?e.x:e.y)},n.prototype._updateAxisTransform=function(e,t){var r=e.getExtent(),s=r[0]+r[1],c=e.isHorizontal();e.toGlobalCoord=c?function(f){return f+t}:function(f){return s-f+t},e.toLocalCoord=c?function(f){return f-t}:function(f){return s-f+t}},n.prototype.getAxis=function(){return this._axis},n.prototype.getBaseAxis=function(){return this._axis},n.prototype.getAxes=function(){return[this._axis]},n.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},n.prototype.containPoint=function(e){var t=this.getRect(),r=this.getAxis(),s=r.orient;return s==="horizontal"?r.contain(r.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),s=[],c=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),s[c]=t.toGlobalCoord(t.dataToCoord(+e)),s[1-c]=c===0?r.y+r.height/2:r.x+r.width/2,s},n.prototype.convertToPixel=function(e,t,r){var s=FH(t);return s===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var s=FH(t);return s===this?this.pointToData(r):null},n}();function FH(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var JX=XX;function QX(n,e){var t=[];return n.eachComponent("singleAxis",function(r,s){var c=new JX(r,n,e);c.name="single_"+s,c.resize(r,e),r.coordinateSystem=c,t.push(c)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var s=r.getReferringComponents("singleAxis",vs).models[0];r.coordinateSystem=s&&s.coordinateSystem}}),t}var qX={create:QX,dimensions:LH},eJ=qX,jH=["x","y"],tJ=["width","height"],nJ=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,s,c,f){var T=s.axis,R=T.coordinateSystem,I=zV(R,1-lF(T)),B=R.dataToPoint(r)[0],Y=c.get("type");if(Y&&Y!=="none"){var q=DV(c),ie=rJ[Y](T,B,I);ie.style=q,t.graphicKey=ie.type,t.pointer=ie}var ge=ZV(s);_H(r,t,ge,s,c,f)},e.prototype.getHandleTransform=function(t,r,s){var c=ZV(r,{labelInside:!1});c.labelMargin=s.get(["handle","margin"]);var f=NV(r.axis,t,c);return{x:f[0],y:f[1],rotation:c.rotation+(c.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,s,c){var f=s.axis,T=f.coordinateSystem,R=lF(f),I=zV(T,R),B=[t.x,t.y];B[R]+=r[R],B[R]=Math.min(I[1],B[R]),B[R]=Math.max(I[0],B[R]);var Y=zV(T,1-R),q=(Y[1]+Y[0])/2,ie=[q,q];return ie[R]=B[R],{x:B[0],y:B[1],rotation:t.rotation,cursorPoint:ie,tooltipOption:{verticalAlign:"middle"}}},e}(IV),rJ={line:function(n,e,t){var r=LV([e,t[0]],[e,t[1]],lF(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),s=t[1]-t[0];return{type:"Rect",shape:yH([e-r/2,t[0]],[r,s],lF(n))}}};function lF(n){return n.isHorizontal()?0:1}function zV(n,e){var t=n.getRect();return[t[jH[e]],t[jH[e]]+t[tJ[e]]]}var aJ=nJ,iJ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Eh);function oJ(n){Ud(y4),YS.registerAxisPointerClass("SingleAxisPointer",aJ),n.registerComponentView(iJ),n.registerComponentView($X),n.registerComponentModel(VV),WS(n,"single",VV,VV.defaultOption),n.registerCoordinateSystem("single",eJ)}var sJ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,s){var c=JE(t);n.prototype.init.apply(this,arguments),BH(t,c)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),BH(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Mp);function BH(n,e){var t=n.cellSize,r;La(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var s=ar([0,1],function(c){return bO(e,c)&&(r[c]="auto"),r[c]!=null&&r[c]!=="auto"});Ky(n,e,{type:"box",ignoreSize:s})}var lJ=sJ,cJ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s){var c=this.group;c.removeAll();var f=t.coordinateSystem,T=f.getRangeInfo(),R=f.getOrient(),I=r.getLocaleModel();this._renderDayRect(t,T,c),this._renderLines(t,T,R,c),this._renderYearText(t,T,R,c),this._renderMonthText(t,I,R,c),this._renderWeekText(t,I,T,R,c)},e.prototype._renderDayRect=function(t,r,s){for(var c=t.coordinateSystem,f=t.getModel("itemStyle").getItemStyle(),T=c.getCellWidth(),R=c.getCellHeight(),I=r.start.time;I<=r.end.time;I=c.getNextNDay(I,1).time){var B=c.dataToRect([I],!1).tl,Y=new jd({shape:{x:B[0],y:B[1],width:T,height:R},cursor:"default",style:f});s.add(Y)}},e.prototype._renderLines=function(t,r,s,c){var f=this,T=t.coordinateSystem,R=t.getModel(["splitLine","lineStyle"]).getLineStyle(),I=t.get(["splitLine","show"]),B=R.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var Y=r.start,q=0;Y.time<=r.end.time;q++){ge(Y.formatedDate),q===0&&(Y=T.getDateInfo(r.start.y+"-"+r.start.m));var ie=Y.date;ie.setMonth(ie.getMonth()+1),Y=T.getDateInfo(ie)}ge(T.getNextNDay(r.end.time,1).formatedDate);function ge(Oe){f._firstDayOfMonth.push(T.getDateInfo(Oe)),f._firstDayPoints.push(T.dataToRect([Oe],!1).tl);var Ne=f._getLinePointsOfOneWeek(t,Oe,s);f._tlpoints.push(Ne[0]),f._blpoints.push(Ne[Ne.length-1]),I&&f._drawSplitline(Ne,R,c)}I&&this._drawSplitline(f._getEdgesPoints(f._tlpoints,B,s),R,c),I&&this._drawSplitline(f._getEdgesPoints(f._blpoints,B,s),R,c)},e.prototype._getEdgesPoints=function(t,r,s){var c=[t[0].slice(),t[t.length-1].slice()],f=s==="horizontal"?0:1;return c[0][f]=c[0][f]-r/2,c[1][f]=c[1][f]+r/2,c},e.prototype._drawSplitline=function(t,r,s){var c=new ng({z2:20,shape:{points:t},style:r});s.add(c)},e.prototype._getLinePointsOfOneWeek=function(t,r,s){for(var c=t.coordinateSystem,f=c.getDateInfo(r),T=[],R=0;R<7;R++){var I=c.getNextNDay(f.time,R),B=c.dataToRect([I.time],!1);T[2*I.day]=B.tl,T[2*I.day+1]=B[s==="horizontal"?"bl":"tr"]}return T},e.prototype._formatterLabel=function(t,r){return ei(t)&&t?rk(t,r):ja(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,s,c,f){var T=r[0],R=r[1],I=["center","bottom"];c==="bottom"?(R+=f,I=["center","top"]):c==="left"?T-=f:c==="right"?(T+=f,I=["center","top"]):R-=f;var B=0;return(c==="left"||c==="right")&&(B=Math.PI/2),{rotation:B,x:T,y:R,style:{align:I[0],verticalAlign:I[1]}}},e.prototype._renderYearText=function(t,r,s,c){var f=t.getModel("yearLabel");if(!!f.get("show")){var T=f.get("margin"),R=f.get("position");R||(R=s!=="horizontal"?"top":"left");var I=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],B=(I[0][0]+I[1][0])/2,Y=(I[0][1]+I[1][1])/2,q=s==="horizontal"?0:1,ie={top:[B,I[q][1]],bottom:[B,I[1-q][1]],left:[I[1-q][0],Y],right:[I[q][0],Y]},ge=r.start.y;+r.end.y>+r.start.y&&(ge=ge+"-"+r.end.y);var Oe=f.get("formatter"),Ne={start:r.start.y,end:r.end.y,nameMap:ge},He=this._formatterLabel(Oe,Ne),st=new Tp({z2:30,style:Cv(f,{text:He})});st.attr(this._yearTextPositionControl(st,ie[R],s,R,T)),c.add(st)}},e.prototype._monthTextPositionControl=function(t,r,s,c,f){var T="left",R="top",I=t[0],B=t[1];return s==="horizontal"?(B=B+f,r&&(T="center"),c==="start"&&(R="bottom")):(I=I+f,r&&(R="middle"),c==="start"&&(T="right")),{x:I,y:B,align:T,verticalAlign:R}},e.prototype._renderMonthText=function(t,r,s,c){var f=t.getModel("monthLabel");if(!!f.get("show")){var T=f.get("nameMap"),R=f.get("margin"),I=f.get("position"),B=f.get("align"),Y=[this._tlpoints,this._blpoints];(!T||ei(T))&&(T&&(r=Gt(T)||r),T=r.get(["time","monthAbbr"])||[]);var q=I==="start"?0:1,ie=s==="horizontal"?0:1;R=I==="start"?-R:R;for(var ge=B==="center",Oe=0;Oe<Y[q].length-1;Oe++){var Ne=Y[q][Oe].slice(),He=this._firstDayOfMonth[Oe];if(ge){var st=this._firstDayPoints[Oe];Ne[ie]=(st[ie]+Y[0][Oe+1][ie])/2}var pt=f.get("formatter"),Ut=T[+He.m-1],pn={yyyy:He.y,yy:(He.y+"").slice(2),MM:He.m,M:+He.m,nameMap:Ut},yn=this._formatterLabel(pt,pn),jn=new Tp({z2:30,style:Ea(Cv(f,{text:yn}),this._monthTextPositionControl(Ne,ge,s,I,R))});c.add(jn)}}},e.prototype._weekTextPositionControl=function(t,r,s,c,f){var T="center",R="middle",I=t[0],B=t[1],Y=s==="start";return r==="horizontal"?(I=I+c+(Y?1:-1)*f[0]/2,T=Y?"right":"left"):(B=B+c+(Y?1:-1)*f[1]/2,R=Y?"bottom":"top"),{x:I,y:B,align:T,verticalAlign:R}},e.prototype._renderWeekText=function(t,r,s,c,f){var T=t.getModel("dayLabel");if(!!T.get("show")){var R=t.coordinateSystem,I=T.get("position"),B=T.get("nameMap"),Y=T.get("margin"),q=R.getFirstDayOfWeek();if(!B||ei(B)){B&&(r=Gt(B)||r);var ie=r.get(["time","dayOfWeekShort"]);B=ie||ar(r.get(["time","dayOfWeekAbbr"]),function(pn){return pn[0]})}var ge=R.getNextNDay(s.end.time,7-s.lweek).time,Oe=[R.getCellWidth(),R.getCellHeight()];Y=It(Y,Math.min(Oe[1],Oe[0])),I==="start"&&(ge=R.getNextNDay(s.start.time,-(7+s.fweek)).time,Y=-Y);for(var Ne=0;Ne<7;Ne++){var He=R.getNextNDay(ge,Ne),st=R.dataToRect([He.time],!1).center,pt=Ne;pt=Math.abs((Ne+q)%7);var Ut=new Tp({z2:30,style:Ea(Cv(T,{text:B[pt]}),this._weekTextPositionControl(st,c,I,Y,Oe))});f.add(Ut)}}},e.type="calendar",e}(Eh),uJ=cJ,WV=864e5,fJ=function(){function n(e,t,r){this.type="calendar",this.dimensions=n.dimensions,this.getDimensionsInfo=n.getDimensionsInfo,this._model=e}return n.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},n.prototype.getRangeInfo=function(){return this._rangeInfo},n.prototype.getModel=function(){return this._model},n.prototype.getRect=function(){return this._rect},n.prototype.getCellWidth=function(){return this._sw},n.prototype.getCellHeight=function(){return this._sh},n.prototype.getOrient=function(){return this._orient},n.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},n.prototype.getDateInfo=function(e){e=ys(e);var t=e.getFullYear(),r=e.getMonth()+1,s=r<10?"0"+r:""+r,c=e.getDate(),f=c<10?"0"+c:""+c,T=e.getDay();return T=Math.abs((T+7-this.getFirstDayOfWeek())%7),{y:t+"",m:s,d:f,day:T,time:e.getTime(),formatedDate:t+"-"+s+"-"+f,date:e}},n.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},n.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,s=["width","height"],c=this._model.getCellSize().slice(),f=this._model.getBoxLayoutParams(),T=this._orient==="horizontal"?[r,7]:[7,r];At([0,1],function(Y){B(c,Y)&&(f[s[Y]]=c[Y]*T[Y])});var R={width:t.getWidth(),height:t.getHeight()},I=this._rect=mm(f,R);At([0,1],function(Y){B(c,Y)||(c[Y]=I[s[Y]]/T[Y])});function B(Y,q){return Y[q]!=null&&Y[q]!=="auto"}this._sw=c[0],this._sh=c[1]},n.prototype.dataToPoint=function(e,t){La(e)&&(e=e[0]),t==null&&(t=!0);var r=this.getDateInfo(e),s=this._rangeInfo,c=r.formatedDate;if(t&&!(r.time>=s.start.time&&r.time<s.end.time+WV))return[NaN,NaN];var f=r.day,T=this._getRangeInfo([s.start.time,c]).nthWeek;return this._orient==="vertical"?[this._rect.x+f*this._sw+this._sw/2,this._rect.y+T*this._sh+this._sh/2]:[this._rect.x+T*this._sw+this._sw/2,this._rect.y+f*this._sh+this._sh/2]},n.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},n.prototype.dataToRect=function(e,t){var r=this.dataToPoint(e,t);return{contentShape:{x:r[0]-(this._sw-this._lineWidth)/2,y:r[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},n.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,r=Math.floor((e[1]-this._rect.y)/this._sh)+1,s=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,t-1,s):this._getDateByWeeksAndDay(t,r-1,s)},n.prototype.convertToPixel=function(e,t,r){var s=UH(t);return s===this?s.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var s=UH(t);return s===this?s.pointToData(r):null},n.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},n.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(La(e)&&e.length===1&&(e=e[0]),La(e))t=e;else{var r=e.toString();if(/^\d{4}$/.test(r)&&(t=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var s=this.getDateInfo(r),c=s.date;c.setMonth(c.getMonth()+1);var f=this.getNextNDay(c,-1);t=[s.formatedDate,f.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(t=[r,r])}if(!t)return e;var T=this._getRangeInfo(t);return T.start.time>T.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var s=Math.floor(t[1].time/WV)-Math.floor(t[0].time/WV)+1,c=new Date(t[0].time),f=c.getDate(),T=t[1].date.getDate();c.setDate(f+s-1);var R=c.getDate();if(R!==T)for(var I=c.getTime()-t[1].time>0?1:-1;(R=c.getDate())!==T&&(c.getTime()-t[1].time)*I>0;)s-=I,c.setDate(R-I);var B=Math.floor((s+t[0].day+6)/7),Y=r?-B+1:B-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:s,weeks:B,nthWeek:Y,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var s=this._getRangeInfo(r);if(e>s.weeks||e===0&&t<s.fweek||e===s.weeks&&t>s.lweek)return null;var c=(e-1)*7-s.fweek+t,f=new Date(s.start.time);return f.setDate(+s.start.d+c),this.getDateInfo(f)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(s){var c=new n(s,e,t);r.push(c),s.coordinateSystem=c}),e.eachSeries(function(s){s.get("coordinateSystem")==="calendar"&&(s.coordinateSystem=r[s.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function UH(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}var dJ=fJ;function pJ(n){n.registerComponentModel(lJ),n.registerComponentView(uJ),n.registerCoordinateSystem("calendar",dJ)}function vJ(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function ZH(n,e){var t;return At(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function hJ(n,e,t){var r=Ea({},t),s=n[e],c=t.$action||"merge";if(c==="merge")if(s){if(!1)var f;ba(s,r,!0),Ky(s,r,{ignoreSize:!0}),QE(t,s),cF(t,s),cF(t,s,"shape"),cF(t,s,"style"),cF(t,s,"extra"),t.clipPath=s.clipPath}else n[e]=r;else c==="replace"?n[e]=r:c==="remove"&&s&&(n[e]=null)}var VH=["transition","enterFrom","leaveTo"],mJ=VH.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function cF(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?VH:mJ,s=0;s<r.length;s++){var c=r[s];n[c]==null&&e[c]!=null&&(n[c]=e[c])}}function gJ(n,e){if(!!n&&(n.hv=e.hv=[ZH(e,["left","right"]),ZH(e,["top","bottom"])],n.type==="group")){var t=n,r=e;t.width==null&&(t.width=r.width=0),t.height==null&&(t.height=r.height=0)}}var _J=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,r){var s=this.option.elements;this.option.elements=null,n.prototype.mergeOption.call(this,t,r),this.option.elements=s},e.prototype.optionUpdated=function(t,r){var s=this.option,c=(r?s:t).elements,f=s.elements=r?[]:s.elements,T=[];this._flatten(c,T,null);var R=Ev(f,T,"normalMerge"),I=this._elOptionsToUpdate=[];At(R,function(B,Y){var q=B.newOption;!q||(I.push(q),vJ(B,q),hJ(f,Y,q),gJ(f[Y],q))},this),s.elements=Yn(f,function(B){return B&&delete B.$action,B!=null})},e.prototype._flatten=function(t,r,s){At(t,function(c){if(!!c){s&&(c.parentOption=s),r.push(c);var f=c.children;f&&f.length&&this._flatten(f,r,c),delete c.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(Mp),zH={path:null,compoundPath:null,group:Qi,image:wp,text:Tp},E1=Bi(),yJ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=Za()},e.prototype.render=function(t,r,s){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,s)},e.prototype._updateElements=function(t){var r=t.useElOptionsToUpdate();if(!!r){var s=this._elMap,c=this.group,f=t.get("z"),T=t.get("zlevel");At(r,function(R){var I=Ta(R.id,null),B=I!=null?s.get(I):null,Y=Ta(R.parentId,null),q=Y!=null?s.get(Y):c,ie=R.type,ge=R.style;ie==="text"&&ge&&R.hv&&R.hv[1]&&(ge.textVerticalAlign=ge.textBaseline=ge.verticalAlign=ge.align=null);var Oe=R.textContent,Ne=R.textConfig;if(ge&&Si(ge,ie,!!Ne,!!Oe)){var He=jo(ge,ie,!0);!Ne&&He.textConfig&&(Ne=R.textConfig=He.textConfig),!Oe&&He.textContent&&(Oe=He.textContent)}var st=bJ(R),pt=R.$action||"merge",Ut=pt==="merge",pn=pt==="replace";if(Ut){var yn=!B,jn=B;yn?jn=WH(I,q,R.type,s):(jn&&(E1(jn).isNew=!1),ef(jn)),jn&&(il(jn,st,t,{isInit:yn}),HH(jn,R,f,T))}else if(pn){uF(B,R,s,t);var Cr=WH(I,q,R.type,s);Cr&&(il(Cr,st,t,{isInit:!0}),HH(Cr,R,f,T))}else pt==="remove"&&(Pl(B,R),uF(B,R,s,t));var Nr=s.get(I);if(Nr&&Oe)if(Ut){var Rr=Nr.getTextContent();Rr?Rr.attr(Oe):Nr.setTextContent(new Tp(Oe))}else pn&&Nr.setTextContent(new Tp(Oe));if(Nr){var Er=R.clipPath;if(Er){var ma=Er.type,wa=void 0,yn=!1;if(Ut){var Ga=Nr.getClipPath();yn=!Ga||E1(Ga).type!==ma,wa=yn?HV(ma):Ga}else pn&&(yn=!0,wa=HV(ma));Nr.setClipPath(wa),il(wa,Er,t,{isInit:yn}),ju(wa,Er.keyframeAnimation,t)}var Ei=E1(Nr);Nr.setTextConfig(Ne),Ei.option=R,xJ(Nr,t,R),Lx({el:Nr,componentModel:t,itemName:Nr.name,itemTooltipOption:R.tooltip}),ju(Nr,R.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,r){for(var s=t.option.elements,c=this.group,f=this._elMap,T=r.getWidth(),R=r.getHeight(),I=["x","y"],B=0;B<s.length;B++){var Y=s[B],q=Ta(Y.id,null),ie=q!=null?f.get(q):null;if(!(!ie||!ie.isGroup)){var ge=ie.parent,Oe=ge===c,Ne=E1(ie),He=E1(ge);Ne.width=It(Ne.option.width,Oe?T:He.width)||0,Ne.height=It(Ne.option.height,Oe?R:He.height)||0}}for(var B=s.length-1;B>=0;B--){var Y=s[B],q=Ta(Y.id,null),ie=q!=null?f.get(q):null;if(!!ie){var ge=ie.parent,He=E1(ge),st=ge===c?{width:T,height:R}:{width:He.width,height:He.height},pt={},Ut=XC(ie,Y,st,null,{hv:Y.hv,boundingMode:Y.bounding},pt);if(!E1(ie).isNew&&Ut){for(var pn=Y.transition,yn={},jn=0;jn<I.length;jn++){var Cr=I[jn],Nr=pt[Cr];pn&&(Mc(pn)||Ui(pn,Cr)>=0)?yn[Cr]=Nr:ie[Cr]=Nr}vp(ie,yn,t,0)}else ie.attr(pt)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(s){uF(s,E1(s).option,r,t._lastGraphicModel)}),this._elMap=Za()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Eh);function HV(n){var e=Xi(zH,n)?zH[n]:k2(n),t=new e({});return E1(t).type=n,t}function WH(n,e,t,r){var s=HV(t);return e.add(s),r.set(n,s),E1(s).id=n,E1(s).isNew=!0,s}function uF(n,e,t,r){var s=n&&n.parent;s&&(n.type==="group"&&n.traverse(function(c){uF(c,e,t,r)}),lc(n,e,r),t.removeKey(E1(n).id))}function HH(n,e,t,r){n.isGroup||At([["cursor",Qm.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(s){var c=s[0];Xi(e,c)?n[c]=sn(e[c],s[1]):n[c]==null&&(n[c]=s[1])}),At(Ua(e),function(s){if(s.indexOf("on")===0){var c=e[s];n[s]=ja(c)?c:null}}),Xi(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function bJ(n){return n=Ea({},n),At(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(_T),function(e){delete n[e]}),n}function xJ(n,e,t){var r=nu(n).eventData;!n.silent&&!n.ignore&&!r&&(r=nu(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function EJ(n){n.registerComponentModel(_J),n.registerComponentView(yJ),n.registerPreprocessor(function(e){var t=e.graphic;La(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var GH=["x","y","radius","angle","single"],SJ=["cartesian2d","polar","singleAxis"];function CJ(n){var e=n.get("coordinateSystem");return Ui(SJ,e)>=0}function Lw(n){return n+"Axis"}function Xoe(n){return n+"AxisIndex"}function Joe(n){return n+"AxisId"}function wJ(n,e){var t=Za(),r=[],s=Za();n.eachComponent({mainType:"dataZoom",query:e},function(B){s.get(B.uid)||T(B)});var c;do c=!1,n.eachComponent("dataZoom",f);while(c);function f(B){!s.get(B.uid)&&R(B)&&(T(B),c=!0)}function T(B){s.set(B.uid,!0),r.push(B),I(B)}function R(B){var Y=!1;return B.eachTargetAxis(function(q,ie){var ge=t.get(q);ge&&ge[ie]&&(Y=!0)}),Y}function I(B){B.eachTargetAxis(function(Y,q){(t.get(Y)||t.set(Y,[]))[q]=!0})}return r}function $H(n){var e=n.ecModel,t={infoList:[],infoMap:Za()};return n.eachTargetAxis(function(r,s){var c=e.getComponent(Lw(r),s);if(!!c){var f=c.getCoordSysModel();if(!!f){var T=f.uid,R=t.infoMap.get(T);R||(R={model:f,axisModels:[]},t.infoList.push(R),t.infoMap.set(T,R)),R.axisModels.push(c)}}}),t}var GV=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),TJ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,s){var c=KH(t);this.settledOption=c,this.mergeDefaultAndTheme(t,s),this._doInit(c)},e.prototype.mergeOption=function(t){var r=KH(t);ba(this.option,t,!0),ba(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var s=this.settledOption;At([["start","startValue"],["end","endValue"]],function(c,f){this._rangePropMode[f]==="value"&&(r[c[0]]=s[c[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=Za(),s=this._fillSpecifiedTargetAxis(r);s?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(c){c.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return At(GH,function(s){var c=this.getReferringComponents(Lw(s),Vl);if(!!c.specified){r=!0;var f=new GV;At(c.models,function(T){f.add(T.componentIndex)}),t.set(s,f)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var s=this.ecModel,c=!0;if(c){var f=r==="vertical"?"y":"x",T=s.findComponents({mainType:f+"Axis"});R(T,f)}if(c){var T=s.findComponents({mainType:"singleAxis",filter:function(B){return B.get("orient",!0)===r}});R(T,"single")}function R(I,B){var Y=I[0];if(!!Y){var q=new GV;if(q.add(Y.componentIndex),t.set(B,q),c=!1,B==="x"||B==="y"){var ie=Y.getReferringComponents("grid",vs).models[0];ie&&At(I,function(ge){Y.componentIndex!==ge.componentIndex&&ie===ge.getReferringComponents("grid",vs).models[0]&&q.add(ge.componentIndex)})}}}c&&At(GH,function(I){if(!!c){var B=s.findComponents({mainType:Lw(I),filter:function(q){return q.get("type",!0)==="category"}});if(B[0]){var Y=new GV;Y.add(B[0].componentIndex),t.set(I,Y),c=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,s=this.get("rangeMode");At([["start","startValue"],["end","endValue"]],function(c,f){var T=t[c[0]]!=null,R=t[c[1]]!=null;T&&!R?r[f]="percent":!T&&R?r[f]="value":s?r[f]=s[f]:T&&(r[f]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,s){t==null&&(t=this.ecModel.getComponent(Lw(r),s))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(s,c){At(s.indexList,function(f){t.call(r,c,f)})})},e.prototype.getAxisProxy=function(t,r){var s=this.getAxisModel(t,r);if(s)return s.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var s=this._targetAxisInfoMap.get(t);if(s&&s.indexMap[r])return this.ecModel.getComponent(Lw(t),r)},e.prototype.setRawRange=function(t){var r=this.option,s=this.settledOption;At([["start","startValue"],["end","endValue"]],function(c){(t[c[0]]!=null||t[c[1]]!=null)&&(r[c[0]]=s[c[0]]=t[c[0]],r[c[1]]=s[c[1]]=t[c[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;At(["start","startValue","end","endValue"],function(s){r[s]=t[s]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var s=this.findRepresentativeAxisProxy();if(s)return s.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,s=this._targetAxisInfoMap.keys(),c=0;c<s.length;c++)for(var f=s[c],T=this._targetAxisInfoMap.get(f),R=0;R<T.indexList.length;R++){var I=this.getAxisProxy(f,T.indexList[R]);if(I.hostedBy(this))return I;r||(r=I)}return r},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Mp);function KH(n){var e={};return At(["start","end","startValue","endValue","throttle"],function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e}var b4=TJ,AJ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(b4),MJ=AJ,kJ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s,c){this.dataZoomModel=t,this.ecModel=r,this.api=s},e.type="dataZoom",e}(Eh),$V=kJ,PJ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}($V),RJ=PJ,eO=At,YH=In,OJ=function(){function n(e,t,r,s){this._dimName=e,this._axisIndex=t,this.ecModel=s,this._dataZoomModel=r}return n.prototype.hostedBy=function(e){return this._dataZoomModel===e},n.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},n.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},n.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(CJ(t)){var r=Lw(this._dimName),s=t.getReferringComponents(r,vs).models[0];s&&this._axisIndex===s.componentIndex&&e.push(t)}},this),e},n.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},n.prototype.getMinMaxSpan=function(){return Kr(this._minMaxSpan)},n.prototype.calculateDataWindow=function(e){var t=this._dataExtent,r=this.getAxisModel(),s=r.axis.scale,c=this._dataZoomModel.getRangePropMode(),f=[0,100],T=[],R=[],I;eO(["start","end"],function(q,ie){var ge=e[q],Oe=e[q+"Value"];c[ie]==="percent"?(ge==null&&(ge=f[ie]),Oe=s.parse(yt(ge,f,t))):(I=!0,Oe=Oe==null?t[ie]:s.parse(Oe),ge=yt(Oe,t,f)),R[ie]=Oe==null||isNaN(Oe)?t[ie]:Oe,T[ie]=ge==null||isNaN(ge)?f[ie]:ge}),YH(R),YH(T);var B=this._minMaxSpan;I?Y(R,T,t,f,!1):Y(T,R,f,t,!0);function Y(q,ie,ge,Oe,Ne){var He=Ne?"Span":"ValueSpan";uC(0,q,ge,"all",B["min"+He],B["max"+He]);for(var st=0;st<2;st++)ie[st]=yt(q[st],ge,Oe,!0),Ne&&(ie[st]=s.parse(ie[st]))}return{valueWindow:R,percentWindow:T}},n.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=IJ(this,this._dimName,t),this._updateMinMaxSpan();var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},n.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var r=this._dimName,s=this.getTargetSeriesModels(),c=e.get("filterMode"),f=this._valueWindow;if(c==="none")return;eO(s,function(R){var I=R.getData(),B=I.mapDimensionsAll(r);if(!!B.length){if(c==="weakFilter"){var Y=I.getStore(),q=ar(B,function(ie){return I.getDimensionIndex(ie)},I);I.filterSelf(function(ie){for(var ge,Oe,Ne,He=0;He<B.length;He++){var st=Y.get(q[He],ie),pt=!isNaN(st),Ut=st<f[0],pn=st>f[1];if(pt&&!Ut&&!pn)return!0;pt&&(Ne=!0),Ut&&(ge=!0),pn&&(Oe=!0)}return Ne&&ge&&Oe})}else eO(B,function(ie){if(c==="empty")R.setData(I=I.map(ie,function(Oe){return T(Oe)?Oe:NaN}));else{var ge={};ge[ie]=f,I.selectRange(ge)}});eO(B,function(ie){I.setApproximateExtent(f,ie)})}});function T(R){return R>=f[0]&&R<=f[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;eO(["min","max"],function(s){var c=t.get(s+"Span"),f=t.get(s+"ValueSpan");f!=null&&(f=this.getAxisModel().axis.scale.parse(f)),f!=null?c=yt(r[0]+f,r,[0,100],!0):c!=null&&(f=yt(c,[0,100],r,!0)-r[0]),e[s+"Span"]=c,e[s+"ValueSpan"]=f},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(!!t){var s=Ir(r,[0,500]);s=Math.min(s,20);var c=e.axis.scale.rawExtentInfo;t[0]!==0&&c.setDeterminedMinMax("min",+r[0].toFixed(s)),t[1]!==100&&c.setDeterminedMinMax("max",+r[1].toFixed(s)),c.freeze()}},n}();function IJ(n,e,t){var r=[Infinity,-Infinity];eO(t,function(f){j9(r,f.getData(),e)});var s=n.getAxisModel(),c=Ob(s.axis.scale,s,r).calculate();return[c.min,c.max]}var DJ=OJ,NJ={getTargetSeries:function(n){function e(s){n.eachComponent("dataZoom",function(c){c.eachTargetAxis(function(f,T){var R=n.getComponent(Lw(f),T);s(f,T,R,c)})})}e(function(s,c,f,T){f.__dzAxisProxy=null});var t=[];e(function(s,c,f,T){f.__dzAxisProxy||(f.__dzAxisProxy=new DJ(s,c,T,n),t.push(f.__dzAxisProxy))});var r=Za();return At(t,function(s){At(s.getTargetSeriesModels(),function(c){r.set(c.uid,c)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,s){t.getAxisProxy(r,s).reset(t)}),t.eachTargetAxis(function(r,s){t.getAxisProxy(r,s).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var s=r.getDataPercentWindow(),c=r.getDataValueWindow();t.setCalculatedRange({start:s[0],end:s[1],startValue:c[0],endValue:c[1]})}})}},LJ=NJ;function FJ(n){n.registerAction("dataZoom",function(e,t){var r=wJ(t,e);At(r,function(s){s.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var XH=!1;function KV(n){XH||(XH=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,LJ),FJ(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function jJ(n){n.registerComponentModel(MJ),n.registerComponentView(RJ),KV(n)}var S1=function(){function n(){}return n}(),JH={};function tO(n,e){JH[n]=e}function QH(n){return JH[n]}var BJ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;At(this.option.feature,function(r,s){var c=QH(s);c&&(c.getDefaultOption&&(c.defaultOption=c.getDefaultOption(t)),ba(r,c.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Mp),UJ=BJ;function ZJ(n,e,t){var r=e.getBoxLayoutParams(),s=e.get("padding"),c={width:t.getWidth(),height:t.getHeight()},f=mm(r,c,s);q1(e.get("orient"),n,e.get("itemGap"),f.width,f.height),XC(n,r,c,s)}function qH(n,e){var t=Z0(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new jd({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var VJ=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,s,c){var f=this.group;if(f.removeAll(),!t.get("show"))return;var T=+t.get("itemSize"),R=t.get("orient")==="vertical",I=t.get("feature")||{},B=this._features||(this._features={}),Y=[];At(I,function(ge,Oe){Y.push(Oe)}),new Sb(this._featureNames||[],Y).add(q).update(q).remove($i(q,null)).execute(),this._featureNames=Y;function q(ge,Oe){var Ne=Y[ge],He=Y[Oe],st=I[Ne],pt=new Lv(st,t,t.ecModel),Ut;if(c&&c.newTitle!=null&&c.featureName===Ne&&(st.title=c.newTitle),Ne&&!He){if(zJ(Ne))Ut={onclick:pt.option.onclick,featureName:Ne};else{var pn=QH(Ne);if(!pn)return;Ut=new pn}B[Ne]=Ut}else if(Ut=B[He],!Ut)return;Ut.uid=Hy("toolbox-feature"),Ut.model=pt,Ut.ecModel=r,Ut.api=s;var yn=Ut instanceof S1;if(!Ne&&He){yn&&Ut.dispose&&Ut.dispose(r,s);return}if(!pt.get("show")||yn&&Ut.unusable){yn&&Ut.remove&&Ut.remove(r,s);return}ie(pt,Ut,Ne),pt.setIconStatus=function(jn,Cr){var Nr=this.option,Rr=this.iconPaths;Nr.iconStatus=Nr.iconStatus||{},Nr.iconStatus[jn]=Cr,Rr[jn]&&(Cr==="emphasis"?qg:j0)(Rr[jn])},Ut instanceof S1&&Ut.render&&Ut.render(pt,r,s,c)}function ie(ge,Oe,Ne){var He=ge.getModel("iconStyle"),st=ge.getModel(["emphasis","iconStyle"]),pt=Oe instanceof S1&&Oe.getIcons?Oe.getIcons():ge.get("icon"),Ut=ge.get("title")||{},pn,yn;ei(pt)?(pn={},pn[Ne]=pt):pn=pt,ei(Ut)?(yn={},yn[Ne]=Ut):yn=Ut;var jn=ge.iconPaths={};At(pn,function(Cr,Nr){var Rr=tm(Cr,{},{x:-T/2,y:-T/2,width:T,height:T});Rr.setStyle(He.getItemStyle());var Er=Rr.ensureState("emphasis");Er.style=st.getItemStyle();var ma=new Tp({style:{text:yn[Nr],align:st.get("textAlign"),borderRadius:st.get("textBorderRadius"),padding:st.get("textPadding"),fill:null},ignore:!0});Rr.setTextContent(ma),Lx({el:Rr,componentModel:t,itemName:Nr,formatterParamsExtra:{title:yn[Nr]}}),Rr.__title=yn[Nr],Rr.on("mouseover",function(){var wa=st.getItemStyle(),Ga=R?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";ma.setStyle({fill:st.get("textFill")||wa.fill||wa.stroke||"#000",backgroundColor:st.get("textBackgroundColor")}),Rr.setTextConfig({position:st.get("textPosition")||Ga}),ma.ignore=!t.get("showTitle"),s.enterEmphasis(this)}).on("mouseout",function(){ge.get(["iconStatus",Nr])!=="emphasis"&&s.leaveEmphasis(this),ma.hide()}),(ge.get(["iconStatus",Nr])==="emphasis"?qg:j0)(Rr),f.add(Rr),Rr.on("click",Xa(Oe.onclick,Oe,r,s,Nr)),jn[Nr]=Rr})}ZJ(f,t,s),f.add(qH(f.getBoundingRect(),t)),R||f.eachChild(function(ge){var Oe=ge.__title,Ne=ge.ensureState("emphasis"),He=Ne.textConfig||(Ne.textConfig={}),st=ge.getTextContent(),pt=st&&st.ensureState("emphasis");if(pt&&!ja(pt)&&Oe){var Ut=pt.style||(pt.style={}),pn=Mm(Oe,Tp.makeFont(Ut)),yn=ge.x+f.x,jn=ge.y+f.y+T,Cr=!1;jn+pn.height>s.getHeight()&&(He.position="top",Cr=!0);var Nr=Cr?-5-pn.height:T+10;yn+pn.width/2>s.getWidth()?(He.position=["100%",Nr],Ut.align="right"):yn-pn.width/2<0&&(He.position=[0,Nr],Ut.align="left")}})},e.prototype.updateView=function(t,r,s,c){At(this._features,function(f){f instanceof S1&&f.updateView&&f.updateView(f.model,r,s,c)})},e.prototype.remove=function(t,r){At(this._features,function(s){s instanceof S1&&s.remove&&s.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){At(this._features,function(s){s instanceof S1&&s.dispose&&s.dispose(t,r)})},e.type="toolbox",e}(Eh);function zJ(n){return n.indexOf("my")===0}var WJ=VJ,HJ=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var s=this.model,c=s.get("name")||t.get("title.0.text")||"echarts",f=r.getZr().painter.getType()==="svg",T=f?"svg":s.get("type",!0)||"png",R=r.getConnectedDataURL({type:T,backgroundColor:s.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:s.get("connectedBackgroundColor"),excludeComponents:s.get("excludeComponents"),pixelRatio:s.get("pixelRatio")}),I=Ct.browser;if(ja(MouseEvent)&&(I.newEdge||!I.ie&&!I.edge)){var B=document.createElement("a");B.download=c+"."+T,B.target="_blank",B.href=R;var Y=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});B.dispatchEvent(Y)}else if(window.navigator.msSaveOrOpenBlob||f){var q=R.split(","),ie=q[0].indexOf("base64")>-1,ge=f?decodeURIComponent(q[1]):q[1];ie&&(ge=window.atob(ge));var Oe=c+"."+T;if(window.navigator.msSaveOrOpenBlob){for(var Ne=ge.length,He=new Uint8Array(Ne);Ne--;)He[Ne]=ge.charCodeAt(Ne);var st=new Blob([He]);window.navigator.msSaveOrOpenBlob(st,Oe)}else{var pt=document.createElement("iframe");document.body.appendChild(pt);var Ut=pt.contentWindow,pn=Ut.document;pn.open("image/svg+xml","replace"),pn.write(ge),pn.close(),Ut.focus(),pn.execCommand("SaveAs",!0,Oe),document.body.removeChild(pt)}}else{var yn=s.get("lang"),jn='<body style="margin:0;"><img src="'+R+'" style="max-width:100%;" title="'+(yn&&yn[0]||"")+'" /></body>',Cr=window.open();Cr.document.write(jn),Cr.document.title=c}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(S1),GJ=HJ,eG="__ec_magicType_stack__",Qoe=null,qoe=null,$J=[["line","bar"],["stack"]],KJ=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),s={};return At(t.get("type"),function(c){r[c]&&(s[c]=r[c])}),s},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,s){var c=this.model,f=c.get(["seriesIndex",s]);if(!!tG[s]){var T={series:[]},R=function(Y){var q=Y.subType,ie=Y.id,ge=tG[s](q,ie,Y,c);ge&&(Pi(ge,Y.option),T.series.push(ge));var Oe=Y.coordinateSystem;if(Oe&&Oe.type==="cartesian2d"&&(s==="line"||s==="bar")){var Ne=Oe.getAxesByScale("ordinal")[0];if(Ne){var He=Ne.dim,st=He+"Axis",pt=Y.getReferringComponents(st,vs).models[0],Ut=pt.componentIndex;T[st]=T[st]||[];for(var pn=0;pn<=Ut;pn++)T[st][Ut]=T[st][Ut]||{};T[st][Ut].boundaryGap=s==="bar"}}};At($J,function(Y){Ui(Y,s)>=0&&At(Y,function(q){c.setIconStatus(q,"normal")})}),c.setIconStatus(s,"emphasis"),t.eachComponent({mainType:"series",query:f==null?null:{seriesIndex:f}},R);var I,B=s;s==="stack"&&(I=ba({stack:c.option.title.tiled,tiled:c.option.title.stack},c.option.title),c.get(["iconStatus",s])!=="emphasis"&&(B="tiled")),r.dispatchAction({type:"changeMagicType",currentType:B,newOption:T,newTitle:I,featureName:"magicType"})}},e}(S1),tG={line:function(n,e,t,r){if(n==="bar")return ba({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return ba({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var s=t.get("stack")===eG;if(n==="line"||n==="bar")return r.setIconStatus("stack",s?"normal":"emphasis"),ba({id:e,stack:s?"":eG},r.get(["option","stack"])||{},!0)}};Fm({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});var YJ=KJ,fF=new Array(60).join("-"),nO=" ";function XJ(n){var e={},t=[],r=[];return n.eachRawSeries(function(s){var c=s.coordinateSystem;if(c&&(c.type==="cartesian2d"||c.type==="polar")){var f=c.getBaseAxis();if(f.type==="category"){var T=f.dim+"_"+f.index;e[T]||(e[T]={categoryAxis:f,valueAxis:c.getOtherAxis(f),series:[]},r.push({axisDim:f.dim,axisIndex:f.index})),e[T].series.push(s)}else t.push(s)}else t.push(s)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function JJ(n){var e=[];return At(n,function(t,r){var s=t.categoryAxis,c=t.valueAxis,f=c.dim,T=[" "].concat(ar(t.series,function(ie){return ie.name})),R=[s.model.getCategories()];At(t.series,function(ie){var ge=ie.getRawData();R.push(ie.getRawData().mapArray(ge.mapDimension(f),function(Oe){return Oe}))});for(var I=[T.join(nO)],B=0;B<R[0].length;B++){for(var Y=[],q=0;q<R.length;q++)Y.push(R[q][B]);I.push(Y.join(nO))}e.push(I.join(`
|
||
`))}),e.join(`
|
||
|
||
`+fF+`
|
||
|
||
`)}function QJ(n){return ar(n,function(e){var t=e.getRawData(),r=[e.name],s=[];return t.each(t.dimensions,function(){for(var c=arguments.length,f=arguments[c-1],T=t.getName(f),R=0;R<c-1;R++)s[R]=arguments[R];r.push((T?T+nO:"")+s.join(nO))}),r.join(`
|
||
`)}).join(`
|
||
|
||
`+fF+`
|
||
|
||
`)}function qJ(n){var e=XJ(n);return{value:Yn([JJ(e.seriesGroupByCategoryAxis),QJ(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
|
||
|
||
`+fF+`
|
||
|
||
`),meta:e.meta}}function dF(n){return n.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function eQ(n){var e=n.slice(0,n.indexOf(`
|
||
`));if(e.indexOf(nO)>=0)return!0}var YV=new RegExp("["+nO+"]+","g");function tQ(n){for(var e=n.split(/\n+/g),t=dF(e.shift()).split(YV),r=[],s=ar(t,function(R){return{name:R,data:[]}}),c=0;c<e.length;c++){var f=dF(e[c]).split(YV);r.push(f.shift());for(var T=0;T<f.length;T++)s[T]&&(s[T].data[c]=f[T])}return{series:s,categories:r}}function nQ(n){for(var e=n.split(/\n+/g),t=dF(e.shift()),r=[],s=0;s<e.length;s++){var c=dF(e[s]);if(!!c){var f=c.split(YV),T="",R=void 0,I=!1;isNaN(f[0])?(I=!0,T=f[0],f=f.slice(1),r[s]={name:T,value:[]},R=r[s].value):R=r[s]=[];for(var B=0;B<f.length;B++)R.push(+f[B]);R.length===1&&(I?r[s].value=R[0]:r[s]=R[0])}}return{name:t,data:r}}function rQ(n,e){var t=n.split(new RegExp(`
|
||
*`+fF+`
|
||
*`,"g")),r={series:[]};return At(t,function(s,c){if(eQ(s)){var f=tQ(s),T=e[c],R=T.axisDim+"Axis";T&&(r[R]=r[R]||[],r[R][T.axisIndex]={data:f.categories},r.series=r.series.concat(f.series))}else{var f=nQ(s);r.series.push(f)}}),r}var aQ=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var s=r.getDom(),c=this.model;this._dom&&s.removeChild(this._dom);var f=document.createElement("div");f.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",f.style.backgroundColor=c.get("backgroundColor")||"#fff";var T=document.createElement("h4"),R=c.get("lang")||[];T.innerHTML=R[0]||c.get("title"),T.style.cssText="margin:10px 20px",T.style.color=c.get("textColor");var I=document.createElement("div"),B=document.createElement("textarea");I.style.cssText="overflow:auto";var Y=c.get("optionToContent"),q=c.get("contentToOption"),ie=qJ(t);if(ja(Y)){var ge=Y(r.getOption());ei(ge)?I.innerHTML=ge:Os(ge)&&I.appendChild(ge)}else{B.readOnly=c.get("readOnly");var Oe=B.style;Oe.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",Oe.color=c.get("textColor"),Oe.borderColor=c.get("textareaBorderColor"),Oe.backgroundColor=c.get("textareaColor"),B.value=ie.value,I.appendChild(B)}var Ne=ie.meta,He=document.createElement("div");He.style.cssText="position:absolute;bottom:5px;left:0;right:0";var st="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",pt=document.createElement("div"),Ut=document.createElement("div");st+=";background-color:"+c.get("buttonColor"),st+=";color:"+c.get("buttonTextColor");var pn=this;function yn(){s.removeChild(f),pn._dom=null}yc(pt,"click",yn),yc(Ut,"click",function(){if(q==null&&Y!=null||q!=null&&Y==null){yn();return}var jn;try{ja(q)?jn=q(I,r.getOption()):jn=rQ(B.value,Ne)}catch(Cr){throw yn(),new Error("Data view format error "+Cr)}jn&&r.dispatchAction({type:"changeDataView",newOption:jn}),yn()}),pt.innerHTML=R[1],Ut.innerHTML=R[2],Ut.style.cssText=pt.style.cssText=st,!c.get("readOnly")&&He.appendChild(Ut),He.appendChild(pt),f.appendChild(T),f.appendChild(I),f.appendChild(He),I.style.height=s.clientHeight-80+"px",s.appendChild(f),this._dom=f},e.prototype.remove=function(t,r){this._dom&&r.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.getDefaultOption=function(t){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},e}(S1);function iQ(n,e){return ar(n,function(t,r){var s=e&&e[r];if(to(s)&&!La(s)){var c=to(t)&&!La(t);c||(t={value:t});var f=s.name!=null&&t.name==null;return t=Pi(t,s),f&&delete t.name,t}else return t})}Fm({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(n,e){var t=[];At(n.newOption.series,function(r){var s=e.getSeriesByName(r.name)[0];if(!s)t.push(Ea({type:"scatter"},r));else{var c=s.get("data");t.push({name:r.name,data:iQ(r.data,c)})}}),e.mergeOption(Pi({series:t},n.newOption))});var oQ=aQ,nG=At,rG=Bi();function sQ(n,e){var t=XV(n);nG(e,function(r,s){for(var c=t.length-1;c>=0;c--){var f=t[c];if(f[s])break}if(c<0){var T=n.queryComponents({mainType:"dataZoom",subType:"select",id:s})[0];if(T){var R=T.getPercentRange();t[0][s]={dataZoomId:s,start:R[0],end:R[1]}}}}),t.push(e)}function lQ(n){var e=XV(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return nG(t,function(s,c){for(var f=e.length-1;f>=0;f--)if(s=e[f][c],s){r[c]=s;break}}),r}function cQ(n){rG(n).snapshots=null}function uQ(n){return XV(n).length}function XV(n){var e=rG(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var fQ=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){cQ(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(S1);Fm({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});var dQ=fQ,pQ=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],vQ=function(){function n(e,t,r){var s=this;this._targetInfoList=[];var c=aG(t,e);At(hQ,function(f,T){(!r||!r.include||Ui(r.include,T)>=0)&&f(c,s._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,s,c){if((r.coordRanges||(r.coordRanges=[])).push(s),!r.coordRange){r.coordRange=s;var f=QV[r.brushType](0,c,s);r.__rangeOffset={offset:lG[r.brushType](f.values,r.range,[1,1]),xyMinMax:f.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){At(e,function(s){var c=this.findTargetInfo(s,t);c&&c!==!0&&At(c.coordSyses,function(f){var T=QV[s.brushType](1,f,s.range,!0);r(s,T.values,f,t)})},this)},n.prototype.setInputRanges=function(e,t){At(e,function(r){var s=this.findTargetInfo(r,t);if(r.range=r.range||[],s&&s!==!0){r.panelId=s.panelId;var c=QV[r.brushType](0,s.coordSys,r.coordRange),f=r.__rangeOffset;r.range=f?lG[r.brushType](c.values,f.offset,mQ(c.xyMinMax,f.xyMinMax)):c.values}},this)},n.prototype.makePanelOpts=function(e,t){return ar(this._targetInfoList,function(r){var s=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:LM(s),isTargetByCursor:UR(s,e,r.coordSysModel),getLinearBrushOtherExtent:d8(s)}})},n.prototype.controlSeries=function(e,t,r){var s=this.findTargetInfo(e,r);return s===!0||s&&Ui(s.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,s=aG(t,e),c=0;c<r.length;c++){var f=r[c],T=e.panelId;if(T){if(f.panelId===T)return f}else for(var R=0;R<iG.length;R++)if(iG[R](s,f))return f}return!0},n}();function JV(n){return n[0]>n[1]&&n.reverse(),n}function aG(n,e){return Vs(n,e,{includeMainTypes:pQ})}var hQ={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,s=n.gridModels,c=Za(),f={},T={};!t&&!r&&!s||(At(t,function(R){var I=R.axis.grid.model;c.set(I.id,I),f[I.id]=!0}),At(r,function(R){var I=R.axis.grid.model;c.set(I.id,I),T[I.id]=!0}),At(s,function(R){c.set(R.id,R),f[R.id]=!0,T[R.id]=!0}),c.each(function(R){var I=R.coordinateSystem,B=[];At(I.getCartesians(),function(Y,q){(Ui(t,Y.getAxis("x").model)>=0||Ui(r,Y.getAxis("y").model)>=0)&&B.push(Y)}),e.push({panelId:"grid--"+R.id,gridModel:R,coordSysModel:R,coordSys:B[0],coordSyses:B,getPanelRect:oG.grid,xAxisDeclared:f[R.id],yAxisDeclared:T[R.id]})}))},geo:function(n,e){At(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:oG.geo})})}},iG=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,s=n.gridModel;return!s&&t&&(s=t.axis.grid.model),!s&&r&&(s=r.axis.grid.model),s&&s===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],oG={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(vb(n)),e}},QV={lineX:$i(sG,0),lineY:$i(sG,1),rect:function(n,e,t,r){var s=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),c=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),f=[JV([s[0],c[0]]),JV([s[1],c[1]])];return{values:f,xyMinMax:f}},polygon:function(n,e,t,r){var s=[[Infinity,-Infinity],[Infinity,-Infinity]],c=ar(t,function(f){var T=n?e.pointToData(f,r):e.dataToPoint(f,r);return s[0][0]=Math.min(s[0][0],T[0]),s[1][0]=Math.min(s[1][0],T[1]),s[0][1]=Math.max(s[0][1],T[0]),s[1][1]=Math.max(s[1][1],T[1]),T});return{values:c,xyMinMax:s}}};function sG(n,e,t,r){var s=t.getAxis(["x","y"][n]),c=JV(ar([0,1],function(T){return e?s.coordToData(s.toLocalCoord(r[T]),!0):s.toGlobalCoord(s.dataToCoord(r[T]))})),f=[];return f[n]=c,f[1-n]=[NaN,NaN],{values:c,xyMinMax:f}}var lG={lineX:$i(cG,0),lineY:$i(cG,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return ar(n,function(r,s){return[r[0]-t[0]*e[s][0],r[1]-t[1]*e[s][1]]})}};function cG(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function mQ(n,e){var t=uG(n),r=uG(e),s=[t[0]/r[0],t[1]/r[1]];return isNaN(s[0])&&(s[0]=1),isNaN(s[1])&&(s[1]=1),s}function uG(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}var qV=vQ,ez=At,gQ=Gi("toolbox-dataZoom_"),ese=null,_Q=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,s,c){this._brushController||(this._brushController=new f8(s.getZr()),this._brushController.on("brush",Xa(this._onBrush,this)).mount()),xQ(t,r,this,c,s),bQ(t,r)},e.prototype.onclick=function(t,r,s){yQ[s].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var s={},c=this.ecModel;this._brushController.updateCovers([]);var f=new qV(tz(this.model),c,{include:["grid"]});f.matchOutputRanges(r,c,function(I,B,Y){if(Y.type==="cartesian2d"){var q=I.brushType;q==="rect"?(T("x",Y,B[0]),T("y",Y,B[1])):T({lineX:"x",lineY:"y"}[q],Y,B)}}),sQ(c,s),this._dispatchZoomAction(s);function T(I,B,Y){var q=B.getAxis(I),ie=q.model,ge=R(I,ie,c),Oe=ge.findRepresentativeAxisProxy(ie).getMinMaxSpan();(Oe.minValueSpan!=null||Oe.maxValueSpan!=null)&&(Y=uC(0,Y.slice(),q.scale.getExtent(),0,Oe.minValueSpan,Oe.maxValueSpan)),ge&&(s[ge.id]={dataZoomId:ge.id,startValue:Y[0],endValue:Y[1]})}function R(I,B,Y){var q;return Y.eachComponent({mainType:"dataZoom",subType:"select"},function(ie){var ge=ie.getAxisModel(I,B.componentIndex);ge&&(q=ie)}),q}},e.prototype._dispatchZoomAction=function(t){var r=[];ez(t,function(s,c){r.push(Kr(s))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(S1),yQ={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(lQ(this.ecModel))}};function tz(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function bQ(n,e){n.setIconStatus("back",uQ(e)>1?"emphasis":"normal")}function xQ(n,e,t,r,s){var c=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(c=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=c,n.setIconStatus("zoom",c?"emphasis":"normal");var f=new qV(tz(n),e,{include:["grid"]}),T=f.makePanelOpts(s,function(R){return R.xAxisDeclared&&!R.yAxisDeclared?"lineX":!R.xAxisDeclared&&R.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(T).enableBrush(c&&T.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}sk("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),s=[],c=tz(r),f=Vs(n,c);ez(f.xAxisModels,function(R){return T(R,"xAxis","xAxisIndex")}),ez(f.yAxisModels,function(R){return T(R,"yAxis","yAxisIndex")});function T(R,I,B){var Y=R.componentIndex,q={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:gQ+I+Y};q[B]=Y,s.push(q)}return s});var EQ=_Q;function SQ(n){n.registerComponentModel(UJ),n.registerComponentView(WJ),tO("saveAsImage",GJ),tO("magicType",YJ),tO("dataView",oQ),tO("dataZoom",EQ),tO("restore",dQ),Ud(jJ)}var CQ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Mp),wQ=CQ;function fG(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function dG(n){if(!!Ct.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t<r;t++)if(n[t]in e)return n[t]}}var pG=dG(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),TQ=dG(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function vG(n,e){if(!n)return e;e=yO(e,!0);var t=n.indexOf(e);return n=t===-1?e:"-"+n.slice(0,t)+"-"+e,n.toLowerCase()}function AQ(n,e){var t=n.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(n);return t?e?t[e]:t:null}var MQ=vG(TQ,"transition"),nz=vG(pG,"transform"),kQ="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ct.transform3dSupported?"will-change:transform;":"");function PQ(n){return n=n==="left"?"right":n==="right"?"left":n==="top"?"bottom":"top",n}function RQ(n,e,t){if(!ei(t)||t==="inside")return"";var r=n.get("backgroundColor"),s=n.get("borderWidth");e=Gy(e);var c=PQ(t),f=Math.max(Math.round(s)*1.5,6),T="",R=nz+":",I;Ui(["left","right"],c)>-1?(T+="top:50%",R+="translateY(-50%) rotate("+(I=c==="left"?-225:-45)+"deg)"):(T+="left:50%",R+="translateX(-50%) rotate("+(I=c==="top"?225:45)+"deg)");var B=I*Math.PI/180,Y=f+s,q=Y*Math.abs(Math.cos(B))+Y*Math.abs(Math.sin(B)),ie=Math.round(((q-Math.SQRT2*s)/2+Math.SQRT2*s-(q-Y)/2)*100)/100;T+=";"+c+":-"+ie+"px";var ge=e+" solid "+s+"px;",Oe=["position:absolute;width:"+f+"px;height:"+f+"px;z-index:-1;",T+";"+R+";","border-bottom:"+ge,"border-right:"+ge,"background-color:"+r+";"];return'<div style="'+Oe.join("")+'"></div>'}function OQ(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,s="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,s+=Ct.transformSupported?","+nz+r:",left"+r+",top"+r),MQ+":"+s}function hG(n,e,t){var r=n.toFixed(0)+"px",s=e.toFixed(0)+"px";if(!Ct.transformSupported)return t?"top:"+s+";left:"+r+";":[["top",s],["left",r]];var c=Ct.transform3dSupported,f="translate"+(c?"3d":"")+"("+r+","+s+(c?",0":"")+")";return t?"top:0;left:0;"+nz+":"+f+";":[["top",0],["left",0],[pG,f]]}function IQ(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var s=n.get("textShadowColor"),c=n.get("textShadowBlur")||0,f=n.get("textShadowOffsetX")||0,T=n.get("textShadowOffsetY")||0;return s&&c&&e.push("text-shadow:"+f+"px "+T+"px "+c+"px "+s),At(["decoration","align"],function(R){var I=n.get(R);I&&e.push("text-"+R+":"+I)}),e.join(";")}function DQ(n,e,t){var r=[],s=n.get("transitionDuration"),c=n.get("backgroundColor"),f=n.get("shadowBlur"),T=n.get("shadowColor"),R=n.get("shadowOffsetX"),I=n.get("shadowOffsetY"),B=n.getModel("textStyle"),Y=Vk(n,"html"),q=R+"px "+I+"px "+f+"px "+T;return r.push("box-shadow:"+q),e&&s&&r.push(OQ(s,t)),c&&r.push("background-color:"+c),At(["width","color","radius"],function(ie){var ge="border-"+ie,Oe=yO(ge),Ne=n.get(Oe);Ne!=null&&r.push(ge+":"+Ne+(ie==="color"?"":"px"))}),r.push(IQ(B)),Y!=null&&r.push("padding:"+Z0(Y).join("px ")+"px"),r.join(";")+";"}function mG(n,e,t,r,s){var c=e&&e.painter;if(t){var f=c&&c.getViewportRoot();f&&Vn(n,f,document.body,r,s)}else{n[0]=r,n[1]=s;var T=c&&c.getViewportRootOffset();T&&(n[0]+=T.offsetLeft,n[1]+=T.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var NQ=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ct.wxa)return null;var s=document.createElement("div");s.domBelongToZr=!0,this.el=s;var c=this._zr=t.getZr(),f=this._appendToBody=r&&r.appendToBody;mG(this._styleCoord,c,f,t.getWidth()/2,t.getHeight()/2),f?document.body.appendChild(s):e.appendChild(s),this._container=e;var T=this;s.onmouseenter=function(){T._enterable&&(clearTimeout(T._hideTimeout),T._show=!0),T._inContent=!0},s.onmousemove=function(R){if(R=R||window.event,!T._enterable){var I=c.handler,B=c.painter.getViewportRoot();mo(B,R,!0),I.dispatch("mousemove",R)}},s.onmouseleave=function(){T._inContent=!1,T._enterable&&T._show&&T.hideLater(T._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=AQ(t,"position"),s=t.style;s.position!=="absolute"&&r!=="absolute"&&(s.position="relative");var c=e.get("alwaysShowContent");c&&this._moveIfResized(),this._alwaysShowContent=c,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,s=r.style,c=this._styleCoord;r.innerHTML?s.cssText=kQ+DQ(e,!this._firstShow,this._longHide)+hG(c[0],c[1],!0)+("border-color:"+Gy(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):s.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,s,c){var f=this.el;if(e==null){f.innerHTML="";return}var T="";if(ei(c)&&r.get("trigger")==="item"&&!fG(r)&&(T=RQ(r,s,c)),ei(e))f.innerHTML=e+T;else if(e){f.innerHTML="",La(e)||(e=[e]);for(var R=0;R<e.length;R++)Os(e[R])&&e[R].parentNode!==f&&f.appendChild(e[R]);if(T&&f.childNodes.length){var I=document.createElement("div");I.innerHTML=T,f.appendChild(I)}}},n.prototype.setEnterable=function(e){this._enterable=e},n.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},n.prototype.moveTo=function(e,t){var r=this._styleCoord;if(mG(r,this._zr,this._appendToBody,e,t),r[0]!=null&&r[1]!=null){var s=this.el.style,c=hG(r[0],r[1]);At(c,function(f){s[f[0]]=f[1]})}},n.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},n.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",Ct.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},n.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Xa(this.hide,this),e)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},n}(),LQ=NQ,FQ=function(){function n(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),_G(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return n.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},n.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},n.prototype.setContent=function(e,t,r,s,c){var f=this;to(e)&&Kp(""),this.el&&this._zr.remove(this.el);var T=r.getModel("textStyle");this.el=new Tp({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:s,textShadowColor:T.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:Vk(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),At(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(I){f.el.style[I]=r.get(I)}),At(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(I){f.el.style[I]=T.get(I)||0}),this._zr.add(this.el);var R=this;this.el.on("mouseover",function(){R._enterable&&(clearTimeout(R._hideTimeout),R._show=!0),R._inContent=!0}),this.el.on("mouseout",function(){R._enterable&&R._show&&R.hideLater(R._hideDelay),R._inContent=!1})},n.prototype.setEnterable=function(e){this._enterable=e},n.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),r=gG(e.style);return[t.width+r.left+r.right,t.height+r.top+r.bottom]},n.prototype.moveTo=function(e,t){var r=this.el;if(r){var s=this._styleCoord;_G(s,this._zr,e,t),e=s[0],t=s[1];var c=r.style,f=Fw(c.borderWidth||0),T=gG(c);r.x=e+f+T.left,r.y=t+f+T.top,r.markRedraw()}},n.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},n.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},n.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Xa(this.hide,this),e)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this._zr.remove(this.el)},n}();function Fw(n){return Math.max(0,n)}function gG(n){var e=Fw(n.shadowBlur||0),t=Fw(n.shadowOffsetX||0),r=Fw(n.shadowOffsetY||0);return{left:Fw(e-t),right:Fw(e+t),top:Fw(e-r),bottom:Fw(e+r)}}function _G(n,e,t,r){n[0]=t,n[1]=r,n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var jQ=FQ,BQ=new jd({shape:{x:-1,y:-1,width:2,height:2}}),UQ=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){if(!(Ct.node||!r.getDom())){var s=t.getComponent("tooltip"),c=this._renderMode=sf(s.get("renderMode"));this._tooltipContent=c==="richText"?new jQ(r):new LQ(r.getDom(),r,{appendToBody:s.get("appendToBody",!0)})}},e.prototype.render=function(t,r,s){if(!(Ct.node||!s.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=r,this._api=s;var c=this._tooltipContent;c.update(t),c.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?ye(this,"_updatePosition",50,"fixRate"):Ze(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,r=t.get("triggerOn");SH("itemTooltip",this._api,Xa(function(s,c,f){r!=="none"&&(r.indexOf(s)>=0?this._tryShow(c,f):s==="leave"&&this._hide(f))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,s=this._api,c=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&c!=="none"&&c!=="click"){var f=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!s.isDisposed()&&f.manuallyShowTip(t,r,s,{x:f._lastX,y:f._lastY,dataByCoordSys:f._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,s,c){if(!(c.from===this.uid||Ct.node||!s.getDom())){var f=yG(c,s);this._ticket="";var T=c.dataByCoordSys,R=WQ(c,r,s);if(R){var I=R.el.getBoundingRect().clone();I.applyTransform(R.el.transform),this._tryShow({offsetX:I.x+I.width/2,offsetY:I.y+I.height/2,target:R.el,position:c.position,positionDefault:"bottom"},f)}else if(c.tooltip&&c.x!=null&&c.y!=null){var B=BQ;B.x=c.x,B.y=c.y,B.update(),nu(B).tooltipConfig={name:null,option:c.tooltip},this._tryShow({offsetX:c.x,offsetY:c.y,target:B},f)}else if(T)this._tryShow({offsetX:c.x,offsetY:c.y,position:c.position,dataByCoordSys:T,tooltipOption:c.tooltipOption},f);else if(c.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,s,c))return;var Y=wH(c,r),q=Y.point[0],ie=Y.point[1];q!=null&&ie!=null&&this._tryShow({offsetX:q,offsetY:ie,target:Y.el,position:c.position,positionDefault:"bottom"},f)}else c.x!=null&&c.y!=null&&(s.dispatchAction({type:"updateAxisPointer",x:c.x,y:c.y}),this._tryShow({offsetX:c.x,offsetY:c.y,position:c.position,target:s.getZr().findHover(c.x,c.y).target},f))}},e.prototype.manuallyHideTip=function(t,r,s,c){var f=this._tooltipContent;this._tooltipModel&&f.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,c.from!==this.uid&&this._hide(yG(c,s))},e.prototype._manuallyAxisShowTip=function(t,r,s,c){var f=c.seriesIndex,T=c.dataIndex,R=r.getComponent("axisPointer").coordSysAxesInfo;if(!(f==null||T==null||R==null)){var I=r.getSeriesByIndex(f);if(!!I){var B=I.getData(),Y=x4([B.getItemModel(T),I,(I.coordinateSystem||{}).model],this._tooltipModel);if(Y.get("trigger")==="axis")return s.dispatchAction({type:"updateAxisPointer",seriesIndex:f,dataIndex:T,position:c.position}),!0}}},e.prototype._tryShow=function(t,r){var s=t.target,c=this._tooltipModel;if(!!c){this._lastX=t.offsetX,this._lastY=t.offsetY;var f=t.dataByCoordSys;if(f&&f.length)this._showAxisTooltip(f,t);else if(s){this._lastDataByCoordSys=null;var T,R;Ks(s,function(I){if(nu(I).dataIndex!=null)return T=I,!0;if(nu(I).tooltipConfig!=null)return R=I,!0},!0),T?this._showSeriesItemTooltip(t,T,r):R?this._showComponentItemTooltip(t,R,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var s=t.get("showDelay");r=Xa(r,this),clearTimeout(this._showTimout),s>0?this._showTimout=setTimeout(r,s):r()},e.prototype._showAxisTooltip=function(t,r){var s=this._ecModel,c=this._tooltipModel,f=[r.offsetX,r.offsetY],T=x4([r.tooltipOption],c),R=this._renderMode,I=[],B=em("section",{blocks:[],noHeader:!0}),Y=[],q=new h2;At(t,function(st){At(st.dataByAxis,function(pt){var Ut=s.getComponent(pt.axisDim+"Axis",pt.axisIndex),pn=pt.value;if(!(!Ut||pn==null)){var yn=gH(pn,Ut.axis,s,pt.seriesDataIndices,pt.valueLabelOpt),jn=em("section",{header:yn,noHeader:!Tr(yn),sortBlocks:!0,blocks:[]});B.blocks.push(jn),At(pt.seriesDataIndices,function(Cr){var Nr=s.getSeriesByIndex(Cr.seriesIndex),Rr=Cr.dataIndexInside,Er=Nr.getDataParams(Rr);if(!(Er.dataIndex<0)){Er.axisDim=pt.axisDim,Er.axisIndex=pt.axisIndex,Er.axisType=pt.axisType,Er.axisId=pt.axisId,Er.axisValue=sM(Ut.axis,{value:pn}),Er.axisValueLabel=yn,Er.marker=q.makeTooltipMarker("item",Gy(Er.color),R);var ma=FT(Nr.formatTooltip(Rr,!0,null)),wa=ma.frag;if(wa){var Ga=x4([Nr],c).get("valueFormatter");jn.blocks.push(Ga?Ea({valueFormatter:Ga},wa):wa)}ma.text&&Y.push(ma.text),I.push(Er)}})}})}),B.blocks.reverse(),Y.reverse();var ie=r.position,ge=T.get("order"),Oe=QT(B,q,R,ge,s.get("useUTC"),T.get("textStyle"));Oe&&Y.unshift(Oe);var Ne=R==="richText"?`
|
||
|
||
`:"<br/>",He=Y.join(Ne);this._showOrMove(T,function(){this._updateContentNotChangedOnAxis(t,I)?this._updatePosition(T,ie,f[0],f[1],this._tooltipContent,I):this._showTooltipContent(T,He,I,Math.random()+"",f[0],f[1],ie,null,q)})},e.prototype._showSeriesItemTooltip=function(t,r,s){var c=this._ecModel,f=nu(r),T=f.seriesIndex,R=c.getSeriesByIndex(T),I=f.dataModel||R,B=f.dataIndex,Y=f.dataType,q=I.getData(Y),ie=this._renderMode,ge=t.positionDefault,Oe=x4([q.getItemModel(B),I,R&&(R.coordinateSystem||{}).model],this._tooltipModel,ge?{position:ge}:null),Ne=Oe.get("trigger");if(!(Ne!=null&&Ne!=="item")){var He=I.getDataParams(B,Y),st=new h2;He.marker=st.makeTooltipMarker("item",Gy(He.color),ie);var pt=FT(I.formatTooltip(B,!1,Y)),Ut=Oe.get("order"),pn=Oe.get("valueFormatter"),yn=pt.frag,jn=yn?QT(pn?Ea({valueFormatter:pn},yn):yn,st,ie,Ut,c.get("useUTC"),Oe.get("textStyle")):pt.text,Cr="item_"+I.name+"_"+B;this._showOrMove(Oe,function(){this._showTooltipContent(Oe,jn,He,Cr,t.offsetX,t.offsetY,t.position,t.target,st)}),s({type:"showTip",dataIndexInside:B,dataIndex:q.getRawIndex(B),seriesIndex:T,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,s){var c=nu(r),f=c.tooltipConfig,T=f.option||{};if(ei(T)){var R=T;T={content:R,formatter:R}}var I=[T],B=this._ecModel.getComponent(c.componentMainType,c.componentIndex);B&&I.push(B),I.push({formatter:T.content});var Y=t.positionDefault,q=x4(I,this._tooltipModel,Y?{position:Y}:null),ie=q.get("content"),ge=Math.random()+"",Oe=new h2;this._showOrMove(q,function(){var Ne=Kr(q.get("formatterParams")||{});this._showTooltipContent(q,ie,Ne,ge,t.offsetX,t.offsetY,t.position,r,Oe)}),s({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,s,c,f,T,R,I,B){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var Y=this._tooltipContent;Y.setEnterable(t.get("enterable"));var q=t.get("formatter");R=R||t.get("position");var ie=r,ge=this._getNearestPoint([f,T],s,t.get("trigger"),t.get("borderColor")),Oe=ge.color;if(q)if(ei(q)){var Ne=t.ecModel.get("useUTC"),He=La(s)?s[0]:s,st=He&&He.axisType&&He.axisType.indexOf("time")>=0;ie=q,st&&(ie=hp(He.axisValue,ie,Ne)),ie=$C(ie,s,!0)}else if(ja(q)){var pt=Xa(function(Ut,pn){Ut===this._ticket&&(Y.setContent(pn,B,t,Oe,R),this._updatePosition(t,R,f,T,Y,s,I))},this);this._ticket=c,ie=q(s,c,pt)}else ie=q;Y.setContent(ie,B,t,Oe,R),Y.show(t,Oe),this._updatePosition(t,R,f,T,Y,s,I)}},e.prototype._getNearestPoint=function(t,r,s,c){if(s==="axis"||La(r))return{color:c||(this._renderMode==="html"?"#fff":"none")};if(!La(r))return{color:c||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,s,c,f,T,R){var I=this._api.getWidth(),B=this._api.getHeight();r=r||t.get("position");var Y=f.getSize(),q=t.get("align"),ie=t.get("verticalAlign"),ge=R&&R.getBoundingRect().clone();if(R&&ge.applyTransform(R.transform),ja(r)&&(r=r([s,c],T,f.el,ge,{viewSize:[I,B],contentSize:Y.slice()})),La(r))s=It(r[0],I),c=It(r[1],B);else if(to(r)){var Oe=r;Oe.width=Y[0],Oe.height=Y[1];var Ne=mm(Oe,{width:I,height:B});s=Ne.x,c=Ne.y,q=null,ie=null}else if(ei(r)&&R){var He=zQ(r,ge,Y,t.get("borderWidth"));s=He[0],c=He[1]}else{var He=ZQ(s,c,f,I,B,q?null:20,ie?null:20);s=He[0],c=He[1]}if(q&&(s-=bG(q)?Y[0]/2:q==="right"?Y[0]:0),ie&&(c-=bG(ie)?Y[1]/2:ie==="bottom"?Y[1]:0),fG(t)){var He=VQ(s,c,f,I,B);s=He[0],c=He[1]}f.moveTo(s,c)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var s=this._lastDataByCoordSys,c=this._cbParamsList,f=!!s&&s.length===t.length;return f&&At(s,function(T,R){var I=T.dataByAxis||[],B=t[R]||{},Y=B.dataByAxis||[];f=f&&I.length===Y.length,f&&At(I,function(q,ie){var ge=Y[ie]||{},Oe=q.seriesDataIndices||[],Ne=ge.seriesDataIndices||[];f=f&&q.value===ge.value&&q.axisType===ge.axisType&&q.axisId===ge.axisId&&Oe.length===Ne.length,f&&At(Oe,function(He,st){var pt=Ne[st];f=f&&He.seriesIndex===pt.seriesIndex&&He.dataIndex===pt.dataIndex}),c&&At(q.seriesDataIndices,function(He){var st=He.seriesIndex,pt=r[st],Ut=c[st];pt&&Ut&&Ut.data!==pt.data&&(f=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!f},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){Ct.node||!r.getDom()||(Ze(this,"_updatePosition"),this._tooltipContent.dispose(),FV("itemTooltip",r))},e.type="tooltip",e}(Eh);function x4(n,e,t){var r=e.ecModel,s;t?(s=new Lv(t,r,r),s=new Lv(e.option,s,r)):s=e;for(var c=n.length-1;c>=0;c--){var f=n[c];f&&(f instanceof Lv&&(f=f.get("tooltip",!0)),ei(f)&&(f={formatter:f}),f&&(s=new Lv(f,s,r)))}return s}function yG(n,e){return n.dispatchAction||Xa(e.dispatchAction,e)}function ZQ(n,e,t,r,s,c,f){var T=t.getSize(),R=T[0],I=T[1];return c!=null&&(n+R+c+2>r?n-=R+c:n+=c),f!=null&&(e+I+f>s?e-=I+f:e+=f),[n,e]}function VQ(n,e,t,r,s){var c=t.getSize(),f=c[0],T=c[1];return n=Math.min(n+f,r)-f,e=Math.min(e+T,s)-T,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function zQ(n,e,t,r){var s=t[0],c=t[1],f=Math.ceil(Math.SQRT2*r)+8,T=0,R=0,I=e.width,B=e.height;switch(n){case"inside":T=e.x+I/2-s/2,R=e.y+B/2-c/2;break;case"top":T=e.x+I/2-s/2,R=e.y-c-f;break;case"bottom":T=e.x+I/2-s/2,R=e.y+B+f;break;case"left":T=e.x-s-f,R=e.y+B/2-c/2;break;case"right":T=e.x+I+f,R=e.y+B/2-c/2}return[T,R]}function bG(n){return n==="center"||n==="middle"}function WQ(n,e,t){var r=Cs(n).queryOptionMap,s=r.keys()[0];if(!(!s||s==="series")){var c=ou(e,s,r.get(s),{useDefault:!1,enableAll:!1,enableNone:!1}),f=c.models[0];if(!!f){var T=t.getViewOfComponentModel(f),R;if(T.group.traverse(function(I){var B=nu(I).tooltipConfig;if(B&&B.name===n.name)return R=I,!0}),R)return{componentMainType:s,componentIndex:f.componentIndex,el:R}}}}var HQ=UQ;function GQ(n){Ud(y4),n.registerComponentModel(wQ),n.registerComponentView(HQ),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Bo),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Bo)}var $Q=["rect","polygon","keep","clear"];function KQ(n,e){var t=Bf(n?n.brush:[]);if(!!t.length){var r=[];At(t,function(R){var I=R.hasOwnProperty("toolbox")?R.toolbox:[];I instanceof Array&&(r=r.concat(I))});var s=n&&n.toolbox;La(s)&&(s=s[0]),s||(s={feature:{}},n.toolbox=[s]);var c=s.feature||(s.feature={}),f=c.brush||(c.brush={}),T=f.type||(f.type=[]);T.push.apply(T,r),YQ(T),e&&!T.length&&T.push.apply(T,$Q)}}function YQ(n){var e={};At(n,function(t){e[t]=1}),n.length=0,At(e,function(t,r){n.push(r)})}var xG=At;function EG(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function rz(n,e,t){var r={};return xG(e,function(c){var f=r[c]=s();xG(n[c],function(T,R){if(!!Yg.isValidType(R)){var I={type:R,visual:T};t&&t(I,c),f[R]=new Yg(I),R==="opacity"&&(I=Kr(I),I.type="colorAlpha",f.__hidden.__alphaForOpacity=new Yg(I))}})}),r;function s(){var c=function(){};c.prototype.__hidden=c.prototype;var f=new c;return f}}function SG(n,e,t){var r;At(t,function(s){e.hasOwnProperty(s)&&EG(e[s])&&(r=!0)}),r&&At(t,function(s){e.hasOwnProperty(s)&&EG(e[s])?n[s]=Kr(e[s]):delete n[s]})}function XQ(n,e,t,r,s,c){var f={};At(n,function(Y){var q=Yg.prepareVisualTypes(e[Y]);f[Y]=q});var T;function R(Y){return zs(t,T,Y)}function I(Y,q){hc(t,T,Y,q)}c==null?t.each(B):t.each([c],B);function B(Y,q){T=c==null?Y:q;var ie=t.getRawDataItem(T);if(!(ie&&ie.visualMap===!1))for(var ge=r.call(s,Y),Oe=e[ge],Ne=f[ge],He=0,st=Ne.length;He<st;He++){var pt=Ne[He];Oe[pt]&&Oe[pt].applyVisual(Y,R,I)}}}function JQ(n,e,t,r){var s={};return At(n,function(c){var f=Yg.prepareVisualTypes(e[c]);s[c]=f}),{progress:function(f,T){var R;r!=null&&(R=T.getDimensionIndex(r));function I(pn){return zs(T,Y,pn)}function B(pn,yn){hc(T,Y,pn,yn)}for(var Y,q=T.getStore();(Y=f.next())!=null;){var ie=T.getRawDataItem(Y);if(!(ie&&ie.visualMap===!1))for(var ge=r!=null?q.get(R,Y):Y,Oe=t(ge),Ne=e[Oe],He=s[Oe],st=0,pt=He.length;st<pt;st++){var Ut=He[st];Ne[Ut]&&Ne[Ut].applyVisual(ge,I,B)}}}}}function QQ(n){var e=n.brushType,t={point:function(r){return CG[e].point(r,t,n)},rect:function(r){return CG[e].rect(r,t,n)}};return t}var CG={lineX:wG(0),lineY:wG(1),rect:{point:function(n,e,t){return n&&t.boundingRect.contain(n[0],n[1])},rect:function(n,e,t){return n&&t.boundingRect.intersect(n)}},polygon:{point:function(n,e,t){return n&&t.boundingRect.contain(n[0],n[1])&&h1(t.range,n[0],n[1])},rect:function(n,e,t){var r=t.range;if(!n||r.length<=1)return!1;var s=n.x,c=n.y,f=n.width,T=n.height,R=r[0];if(h1(r,s,c)||h1(r,s+f,c)||h1(r,s,c+T)||h1(r,s+f,c+T)||ra.create(n).contain(R[0],R[1])||e1(s,c,s+f,c,r)||e1(s,c,s,c+T,r)||e1(s+f,c,s+f,c+T,r)||e1(s,c+T,s+f,c+T,r))return!0}}};function wG(n){var e=["x","y"],t=["width","height"];return{point:function(r,s,c){if(r){var f=c.range,T=r[n];return E4(T,f)}},rect:function(r,s,c){if(r){var f=c.range,T=[r[e[n]],r[e[n]]+r[t[n]]];return T[1]<T[0]&&T.reverse(),E4(T[0],f)||E4(T[1],f)||E4(f[0],T)||E4(f[1],T)}}}}function E4(n,e){return e[0]<=n&&n<=e[1]}var tse=null,TG=["inBrush","outOfBrush"],az="__ecBrushSelect",iz="__ecInBrushSelectEvent";function AG(n){n.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new qV(e.option,n);t.setInputRanges(e.areas,n)})}function qQ(n,e,t){var r=[],s,c;n.eachComponent({mainType:"brush"},function(f){t&&t.type==="takeGlobalCursor"&&f.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),AG(n),n.eachComponent({mainType:"brush"},function(f,T){var R={brushId:f.id,brushIndex:T,brushName:f.name,areas:Kr(f.areas),selected:[]};r.push(R);var I=f.option,B=I.brushLink,Y=[],q=[],ie=[],ge=!1;T||(s=I.throttleType,c=I.throttleDelay);var Oe=ar(f.areas,function(pn){var yn=rq[pn.brushType],jn=Pi({boundingRect:yn?yn(pn):void 0},pn);return jn.selectors=QQ(jn),jn}),Ne=rz(f.option,TG,function(pn){pn.mappingMethod="fixed"});La(B)&&At(B,function(pn){Y[pn]=1});function He(pn){return B==="all"||!!Y[pn]}function st(pn){return!!pn.length}n.eachSeries(function(pn,yn){var jn=ie[yn]=[];pn.subType==="parallel"?pt(pn,yn):Ut(pn,yn,jn)});function pt(pn,yn){var jn=pn.coordinateSystem;ge=ge||jn.hasAxisBrushed(),He(yn)&&jn.eachActiveState(pn.getData(),function(Cr,Nr){Cr==="active"&&(q[Nr]=1)})}function Ut(pn,yn,jn){if(!(!pn.brushSelector||nq(f,yn))&&(At(Oe,function(Nr){f.brushTargetManager.controlSeries(Nr,pn,n)&&jn.push(Nr),ge=ge||st(jn)}),He(yn)&&st(jn))){var Cr=pn.getData();Cr.each(function(Nr){MG(pn,jn,Cr,Nr)&&(q[Nr]=1)})}}n.eachSeries(function(pn,yn){var jn={seriesId:pn.id,seriesIndex:yn,seriesName:pn.name,dataIndex:[]};R.selected.push(jn);var Cr=ie[yn],Nr=pn.getData(),Rr=He(yn)?function(Er){return q[Er]?(jn.dataIndex.push(Nr.getRawIndex(Er)),"inBrush"):"outOfBrush"}:function(Er){return MG(pn,Cr,Nr,Er)?(jn.dataIndex.push(Nr.getRawIndex(Er)),"inBrush"):"outOfBrush"};(He(yn)?ge:st(Cr))&&XQ(TG,Ne,Nr,Rr)})}),eq(e,s,c,r,t)}function eq(n,e,t,r,s){if(!!s){var c=n.getZr();if(!c[iz]){c[az]||(c[az]=tq);var f=ye(c,az,t,e);f(n,r)}}}function tq(n,e){if(!n.isDisposed()){var t=n.getZr();t[iz]=!0,n.dispatchAction({type:"brushSelect",batch:e}),t[iz]=!1}}function MG(n,e,t,r){for(var s=0,c=e.length;s<c;s++){var f=e[s];if(n.brushSelector(r,t,f.selectors,f))return!0}}function nq(n,e){var t=n.option.seriesIndex;return t!=null&&t!=="all"&&(La(t)?Ui(t,e)<0:e!==t)}var rq={rect:function(n){return kG(n.range)},polygon:function(n){for(var e,t=n.range,r=0,s=t.length;r<s;r++){e=e||[[Infinity,-Infinity],[Infinity,-Infinity]];var c=t[r];c[0]<e[0][0]&&(e[0][0]=c[0]),c[0]>e[0][1]&&(e[0][1]=c[0]),c[1]<e[1][0]&&(e[1][0]=c[1]),c[1]>e[1][1]&&(e[1][1]=c[1])}return e&&kG(e)}};function kG(n){return new ra(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var aq=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new f8(r.getZr())).on("brush",Xa(this._onBrush,this)).mount()},e.prototype.render=function(t,r,s,c){this.model=t,this._updateController(t,r,s,c)},e.prototype.updateTransform=function(t,r,s,c){AG(r),this._updateController(t,r,s,c)},e.prototype.updateVisual=function(t,r,s,c){this.updateTransform(t,r,s,c)},e.prototype.updateView=function(t,r,s,c){this._updateController(t,r,s,c)},e.prototype._updateController=function(t,r,s,c){(!c||c.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(s)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,s=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Kr(s),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Kr(s),$from:r})},e.type="brush",e}(Eh),iq=aq,oq="#ddd",sq=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var s=this.option;!r&&SG(s,t,["inBrush","outOfBrush"]);var c=s.inBrush=s.inBrush||{};s.outOfBrush=s.outOfBrush||{color:oq},c.hasOwnProperty("liftZ")||(c.liftZ=5)},e.prototype.setAreas=function(t){!t||(this.areas=ar(t,function(r){return PG(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=PG(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Mp);function PG(n,e){return ba({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Lv(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}var lq=sq,cq=["rect","polygon","lineX","lineY","keep","clear"],uq=function(n){ze(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,s){var c,f,T;r.eachComponent({mainType:"brush"},function(R){c=R.brushType,f=R.brushOption.brushMode||"single",T=T||!!R.areas.length}),this._brushType=c,this._brushMode=f,At(t.get("type",!0),function(R){t.setIconStatus(R,(R==="keep"?f==="multiple":R==="clear"?T:R===c)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,s){this.render(t,r,s)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),s={};return At(t.get("type",!0),function(c){r[c]&&(s[c]=r[c])}),s},e.prototype.onclick=function(t,r,s){var c=this._brushType,f=this._brushMode;s==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:s==="keep"?c:c===s?!1:s,brushMode:s==="keep"?f==="multiple"?"single":"multiple":f}})},e.getDefaultOption=function(t){var r={show:!0,type:cq.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(S1),fq=uq;function dq(n){n.registerComponentView(iq),n.registerComponentModel(lq),n.registerPreprocessor(KQ),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,qQ),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Bo),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Bo),tO("brush",fq)}var pq=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Mp),vq=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,s){if(this.group.removeAll(),!!t.get("show")){var c=this.group,f=t.getModel("textStyle"),T=t.getModel("subtextStyle"),R=t.get("textAlign"),I=sn(t.get("textBaseline"),t.get("textVerticalAlign")),B=new Tp({style:Cv(f,{text:t.get("text"),fill:f.getTextColor()},{disableBox:!0}),z2:10}),Y=B.getBoundingRect(),q=t.get("subtext"),ie=new Tp({style:Cv(T,{text:q,fill:T.getTextColor(),y:Y.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),ge=t.get("link"),Oe=t.get("sublink"),Ne=t.get("triggerEvent",!0);B.silent=!ge&&!Ne,ie.silent=!Oe&&!Ne,ge&&B.on("click",function(){KC(ge,"_"+t.get("target"))}),Oe&&ie.on("click",function(){KC(Oe,"_"+t.get("subtarget"))}),nu(B).eventData=nu(ie).eventData=Ne?{componentType:"title",componentIndex:t.componentIndex}:null,c.add(B),q&&c.add(ie);var He=c.getBoundingRect(),st=t.getBoxLayoutParams();st.width=He.width,st.height=He.height;var pt=mm(st,{width:s.getWidth(),height:s.getHeight()},t.get("padding"));R||(R=t.get("left")||t.get("right"),R==="middle"&&(R="center"),R==="right"?pt.x+=pt.width:R==="center"&&(pt.x+=pt.width/2)),I||(I=t.get("top")||t.get("bottom"),I==="center"&&(I="middle"),I==="bottom"?pt.y+=pt.height:I==="middle"&&(pt.y+=pt.height/2),I=I||"top"),c.x=pt.x,c.y=pt.y,c.markRedraw();var Ut={align:R,verticalAlign:I};B.setStyle(Ut),ie.setStyle(Ut),He=c.getBoundingRect();var pn=pt.margin,yn=t.getItemStyle(["color","opacity"]);yn.fill=t.get("backgroundColor");var jn=new jd({shape:{x:He.x-pn[3],y:He.y-pn[0],width:He.width+pn[1]+pn[3],height:He.height+pn[0]+pn[2],r:t.get("borderRadius")},style:yn,subPixelOptimize:!0,silent:!0});c.add(jn)}},e.type="title",e}(Eh);function hq(n){n.registerComponentModel(pq),n.registerComponentView(vq)}var mq=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,s){this.mergeDefaultAndTheme(t,s),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],s=t.axisType,c=this._names=[],f;s==="category"?(f=[],At(r,function(I,B){var Y=Ta(Nu(I),""),q;to(I)?(q=Kr(I),q.value=B):q=B,f.push(q),c.push(Y)})):f=r;var T={category:"ordinal",time:"time",value:"number"}[s]||"number",R=this._data=new M_([{name:"value",type:T}],this);R.initData(f,c)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Mp),RG=mq,OG=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=U0(RG.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(RG);Kn(OG,LT.prototype);var gq=OG,_q=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Eh),yq=_q,bq=function(n){ze(e,n);function e(t,r,s,c){var f=n.call(this,t,r,s)||this;return f.type=c||"value",f}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Dv),xq=bq,oz=Math.PI,IG=Bi(),Eq=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,s){if(this.model=t,this.api=s,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var c=this._layout(t,s),f=this._createGroup("_mainGroup"),T=this._createGroup("_labelGroup"),R=this._axis=this._createAxis(c,t);t.formatTooltip=function(I){var B=R.scale.getLabel({value:I});return em("nameValue",{noName:!0,value:B})},At(["AxisLine","AxisTick","Control","CurrentPointer"],function(I){this["_render"+I](c,f,R,t)},this),this._renderAxisLabel(c,T,R,t),this._position(c,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var s=t.get(["label","position"]),c=t.get("orient"),f=Cq(t,r),T;s==null||s==="auto"?T=c==="horizontal"?f.y+f.height/2<r.getHeight()/2?"-":"+":f.x+f.width/2<r.getWidth()/2?"+":"-":ei(s)?T={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[c][s]:T=s;var R={horizontal:"center",vertical:T>=0||T==="+"?"left":"right"},I={horizontal:T>=0||T==="+"?"top":"bottom",vertical:"middle"},B={horizontal:0,vertical:oz/2},Y=c==="vertical"?f.height:f.width,q=t.getModel("controlStyle"),ie=q.get("show",!0),ge=ie?q.get("itemSize"):0,Oe=ie?q.get("itemGap"):0,Ne=ge+Oe,He=t.get(["label","rotate"])||0;He=He*oz/180;var st,pt,Ut,pn=q.get("position",!0),yn=ie&&q.get("showPlayBtn",!0),jn=ie&&q.get("showPrevBtn",!0),Cr=ie&&q.get("showNextBtn",!0),Nr=0,Rr=Y;pn==="left"||pn==="bottom"?(yn&&(st=[0,0],Nr+=Ne),jn&&(pt=[Nr,0],Nr+=Ne),Cr&&(Ut=[Rr-ge,0],Rr-=Ne)):(yn&&(st=[Rr-ge,0],Rr-=Ne),jn&&(pt=[0,0],Nr+=Ne),Cr&&(Ut=[Rr-ge,0],Rr-=Ne));var Er=[Nr,Rr];return t.get("inverse")&&Er.reverse(),{viewRect:f,mainLength:Y,orient:c,rotation:B[c],labelRotation:He,labelPosOpt:T,labelAlign:t.get(["label","align"])||R[c],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||I[c],playPosition:st,prevBtnPosition:pt,nextBtnPosition:Ut,axisExtent:Er,controlSize:ge,controlGap:Oe}},e.prototype._position=function(t,r){var s=this._mainGroup,c=this._labelGroup,f=t.viewRect;if(t.orient==="vertical"){var T=Df(),R=f.x,I=f.y+f.height;Sc(T,T,[-R,-I]),Wu(T,T,-oz/2),Sc(T,T,[R,I]),f=f.clone(),f.applyTransform(T)}var B=st(f),Y=st(s.getBoundingRect()),q=st(c.getBoundingRect()),ie=[s.x,s.y],ge=[c.x,c.y];ge[0]=ie[0]=B[0][0];var Oe=t.labelPosOpt;if(Oe==null||ei(Oe)){var Ne=Oe==="+"?0:1;pt(ie,Y,B,1,Ne),pt(ge,q,B,1,1-Ne)}else{var Ne=Oe>=0?0:1;pt(ie,Y,B,1,Ne),ge[1]=ie[1]+Oe}s.setPosition(ie),c.setPosition(ge),s.rotation=c.rotation=t.rotation,He(s),He(c);function He(Ut){Ut.originX=B[0][0]-Ut.x,Ut.originY=B[1][0]-Ut.y}function st(Ut){return[[Ut.x,Ut.x+Ut.width],[Ut.y,Ut.y+Ut.height]]}function pt(Ut,pn,yn,jn,Cr){Ut[jn]+=yn[jn][Cr]-pn[jn][Cr]}},e.prototype._createAxis=function(t,r){var s=r.getData(),c=r.get("axisType"),f=Sq(r,c);f.getTicks=function(){return s.mapArray(["value"],function(I){return{value:I}})};var T=s.getDataExtent("value");f.setExtent(T[0],T[1]),f.calcNiceTicks();var R=new xq("value",f,t.axisExtent,c);return R.model=r,R},e.prototype._createGroup=function(t){var r=this[t]=new Qi;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,s,c){var f=s.getExtent();if(!!c.get(["lineStyle","show"])){var T=new jh({shape:{x1:f[0],y1:0,x2:f[1],y2:0},style:Ea({lineCap:"round"},c.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(T);var R=this._progressLine=new jh({shape:{x1:f[0],x2:this._currentPointer?this._currentPointer.x:f[0],y1:0,y2:0},style:Pi({lineCap:"round",lineWidth:T.style.lineWidth},c.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(R)}},e.prototype._renderAxisTick=function(t,r,s,c){var f=this,T=c.getData(),R=s.scale.getTicks();this._tickSymbols=[],At(R,function(I){var B=s.dataToCoord(I.value),Y=T.getItemModel(I.value),q=Y.getModel("itemStyle"),ie=Y.getModel(["emphasis","itemStyle"]),ge=Y.getModel(["progress","itemStyle"]),Oe={x:B,y:0,onclick:Xa(f._changeTimeline,f,I.value)},Ne=DG(Y,q,r,Oe);Ne.ensureState("emphasis").style=ie.getItemStyle(),Ne.ensureState("progress").style=ge.getItemStyle(),g_(Ne);var He=nu(Ne);Y.get("tooltip")?(He.dataIndex=I.value,He.dataModel=c):He.dataIndex=He.dataModel=null,f._tickSymbols.push(Ne)})},e.prototype._renderAxisLabel=function(t,r,s,c){var f=this,T=s.getLabelModel();if(!!T.get("show")){var R=c.getData(),I=s.getViewLabels();this._tickLabels=[],At(I,function(B){var Y=B.tickValue,q=R.getItemModel(Y),ie=q.getModel("label"),ge=q.getModel(["emphasis","label"]),Oe=q.getModel(["progress","label"]),Ne=s.dataToCoord(B.tickValue),He=new Tp({x:Ne,y:0,rotation:t.labelRotation-t.rotation,onclick:Xa(f._changeTimeline,f,Y),silent:!1,style:Cv(ie,{text:B.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});He.ensureState("emphasis").style=Cv(ge),He.ensureState("progress").style=Cv(Oe),r.add(He),g_(He),IG(He).dataIndex=Y,f._tickLabels.push(He)})}},e.prototype._renderControl=function(t,r,s,c){var f=t.controlSize,T=t.rotation,R=c.getModel("controlStyle").getItemStyle(),I=c.getModel(["emphasis","controlStyle"]).getItemStyle(),B=c.getPlayState(),Y=c.get("inverse",!0);q(t.nextBtnPosition,"next",Xa(this._changeTimeline,this,Y?"-":"+")),q(t.prevBtnPosition,"prev",Xa(this._changeTimeline,this,Y?"+":"-")),q(t.playPosition,B?"stop":"play",Xa(this._handlePlayClick,this,!B),!0);function q(ie,ge,Oe,Ne){if(!!ie){var He=ch(sn(c.get(["controlStyle",ge+"BtnSize"]),f),f),st=[0,-He/2,He,He],pt=wq(c,ge+"Icon",st,{x:ie[0],y:ie[1],originX:f/2,originY:0,rotation:Ne?-T:0,rectHover:!0,style:R,onclick:Oe});pt.ensureState("emphasis").style=I,r.add(pt),g_(pt)}}},e.prototype._renderCurrentPointer=function(t,r,s,c){var f=c.getData(),T=c.getCurrentIndex(),R=f.getItemModel(T).getModel("checkpointStyle"),I=this,B={onCreate:function(Y){Y.draggable=!0,Y.drift=Xa(I._handlePointerDrag,I),Y.ondragend=Xa(I._handlePointerDragend,I),NG(Y,I._progressLine,T,s,c,!0)},onUpdate:function(Y){NG(Y,I._progressLine,T,s,c)}};this._currentPointer=DG(R,R,this._mainGroup,{},this._currentPointer,B)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,s){this._clearTimer(),this._pointerChangeTimeline([s.offsetX,s.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var s=this._toAxisCoord(t)[0],c=this._axis,f=In(c.getExtent().slice());s>f[1]&&(s=f[1]),s<f[0]&&(s=f[0]),this._currentPointer.x=s,this._currentPointer.markRedraw();var T=this._progressLine;T&&(T.shape.x2=s,T.dirty());var R=this._findNearestTick(s),I=this.model;(r||R!==I.getCurrentIndex()&&I.get("realtime"))&&this._changeTimeline(R)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=t.model;t._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var r=this._mainGroup.getLocalTransform();return zd(t,r,!0)},e.prototype._findNearestTick=function(t){var r=this.model.getData(),s=Infinity,c,f=this._axis;return r.each(["value"],function(T,R){var I=f.dataToCoord(T),B=Math.abs(I-t);B<s&&(s=B,c=R)}),c},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var r=this.model.getCurrentIndex();t==="+"?t=r+1:t==="-"&&(t=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),r=this._tickSymbols,s=this._tickLabels;if(r)for(var c=0;c<r.length;c++)r&&r[c]&&r[c].toggleState("progress",c<t);if(s)for(var c=0;c<s.length;c++)s&&s[c]&&s[c].toggleState("progress",IG(s[c]).dataIndex<=t)},e.type="timeline.slider",e}(yq);function Sq(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new YP({ordinalMeta:n.getCategories(),extent:[Infinity,-Infinity]});case"time":return new WL({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new p1}}function Cq(n,e){return mm(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},n.get("padding"))}function wq(n,e,t,r){var s=r.style,c=tm(n.get(["controlStyle",e]),r||{},new ra(t[0],t[1],t[2],t[3]));return s&&c.setStyle(s),c}function DG(n,e,t,r,s,c){var f=e.get("color");if(s)s.setColor(f),t.add(s),c&&c.onUpdate(s);else{var T=n.get("symbol");s=ad(T,-1,-1,2,2,f),s.setStyle("strokeNoScale",!0),t.add(s),c&&c.onCreate(s)}var R=e.getItemStyle(["color"]);s.setStyle(R),r=ba({rectHover:!0,z2:100},r,!0);var I=fp(n.get("symbolSize"));r.scaleX=I[0]/2,r.scaleY=I[1]/2;var B=Tv(n.get("symbolOffset"),I);B&&(r.x=(r.x||0)+B[0],r.y=(r.y||0)+B[1]);var Y=n.get("symbolRotate");return r.rotation=(Y||0)*Math.PI/180||0,s.attr(r),s.updateTransform(),s}function NG(n,e,t,r,s,c){if(!n.dragging){var f=s.getModel("checkpointStyle"),T=r.dataToCoord(s.getData().get("value",t));if(c||!f.get("animation",!0))n.attr({x:T,y:0}),e&&e.attr({shape:{x2:T}});else{var R={duration:f.get("animationDuration",!0),easing:f.get("animationEasing",!0)};n.stopAnimation(null,!0),n.animateTo({x:T,y:0},R),e&&e.animateTo({shape:{x2:T}},R)}}}var Tq=Eq;function Aq(n){n.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,r){var s=t.getComponent("timeline");return s&&e.currentIndex!=null&&(s.setCurrentIndex(e.currentIndex),!s.get("loop",!0)&&s.isIndexMax()&&s.getPlayState()&&(s.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:s.get("replaceMerge",!0)}),Pi({currentIndex:s.option.currentIndex},e)}),n.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var r=t.getComponent("timeline");r&&e.playState!=null&&r.setPlayState(e.playState)})}function Mq(n){var e=n&&n.timeline;La(e)||(e=e?[e]:[]),At(e,function(t){!t||kq(t)})}function kq(n){var e=n.type,t={number:"value",time:"time"};if(t[e]&&(n.axisType=t[e],delete n.type),LG(n),WM(n,"controlPosition")){var r=n.controlStyle||(n.controlStyle={});WM(r,"position")||(r.position=n.controlPosition),r.position==="none"&&!WM(r,"show")&&(r.show=!1,delete r.position),delete n.controlPosition}At(n.data||[],function(s){to(s)&&!La(s)&&(!WM(s,"value")&&WM(s,"name")&&(s.value=s.name),LG(s))})}function LG(n){var e=n.itemStyle||(n.itemStyle={}),t=e.emphasis||(e.emphasis={}),r=n.label||n.label||{},s=r.normal||(r.normal={}),c={normal:1,emphasis:1};At(r,function(f,T){!c[T]&&!WM(s,T)&&(s[T]=f)}),t.label&&!WM(r,"emphasis")&&(r.emphasis=t.label,delete t.label)}function WM(n,e){return n.hasOwnProperty(e)}function Pq(n){n.registerComponentModel(gq),n.registerComponentView(Tq),n.registerSubTypeDefaulter("timeline",function(){return"slider"}),Aq(n),n.registerPreprocessor(Mq)}function sz(n,e){if(!n)return!1;for(var t=La(n)?n:[n],r=0;r<t.length;r++)if(t[r]&&t[r][e])return!0;return!1}function pF(n){cd(n,"label",["show"])}var vF=Bi(),FG=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,r,s){this.mergeDefaultAndTheme(t,s),this._mergeOption(t,s,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Ct.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,r){this._mergeOption(t,r,!1,!1)},e.prototype._mergeOption=function(t,r,s,c){var f=this.mainType;s||r.eachSeries(function(T){var R=T.get(this.mainType,!0),I=vF(T)[f];if(!R||!R.data){vF(T)[f]=null;return}I?I._mergeOption(R,r,!0):(c&&pF(R),At(R.data,function(B){B instanceof Array?(pF(B[0]),pF(B[1])):pF(B)}),I=this.createMarkerModelFromSeries(R,this,r),Ea(I,{mainType:this.mainType,seriesIndex:T.seriesIndex,name:T.name,createdBySelf:!0}),I.__hostSeries=T),vF(T)[f]=I},this)},e.prototype.formatTooltip=function(t,r,s){var c=this.getData(),f=this.getRawValue(t),T=c.getName(t);return em("section",{header:this.name,blocks:[em("nameValue",{name:T,value:f,noName:!T,noValue:f==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,r){return vF(t)[r]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Mp);Kn(FG,LT.prototype);var jw=FG,Rq=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,s){return new e(t,r,s)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(jw),Oq=Rq;function lz(n){return!(isNaN(parseFloat(n.x))&&isNaN(parseFloat(n.y)))}function Iq(n){return!isNaN(parseFloat(n.x))&&!isNaN(parseFloat(n.y))}function hF(n,e,t,r,s,c){var f=[],T=wb(e,r),R=T?e.getCalculationInfo("stackResultDimension"):r,I=uz(e,R,n),B=e.indicesOfNearest(R,I)[0];f[s]=e.get(t,B),f[c]=e.get(R,B);var Y=e.get(r,B),q=mr(e.get(r,B));return q=Math.min(q,20),q>=0&&(f[c]=+f[c].toFixed(q)),[f,Y]}var cz={min:$i(hF,"min"),max:$i(hF,"max"),average:$i(hF,"average"),median:$i(hF,"median")};function S4(n,e){if(!!e){var t=n.getData(),r=n.coordinateSystem,s=r&&r.dimensions;if(!Iq(e)&&!La(e.coord)&&La(s)){var c=jG(e,t,r,n);if(e=Kr(e),e.type&&cz[e.type]&&c.baseAxis&&c.valueAxis){var f=Ui(s,c.baseAxis.dim),T=Ui(s,c.valueAxis.dim),R=cz[e.type](t,c.baseDataDim,c.valueDataDim,f,T);e.coord=R[0],e.value=R[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!La(s))e.coord=[];else for(var I=e.coord,B=0;B<2;B++)cz[I[B]]&&(I[B]=uz(t,t.mapDimension(s[B]),I[B]));return e}}function jG(n,e,t,r){var s={};return n.valueIndex!=null||n.valueDim!=null?(s.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,s.valueAxis=t.getAxis(Dq(r,s.valueDataDim)),s.baseAxis=t.getOtherAxis(s.valueAxis),s.baseDataDim=e.mapDimension(s.baseAxis.dim)):(s.baseAxis=r.getBaseAxis(),s.valueAxis=t.getOtherAxis(s.baseAxis),s.baseDataDim=e.mapDimension(s.baseAxis.dim),s.valueDataDim=e.mapDimension(s.valueAxis.dim)),s}function Dq(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function C4(n,e){return n&&n.containData&&e.coord&&!lz(e)?n.containData(e.coord):!0}function Nq(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!lz(e)&&!lz(t)?n.containZone(e.coord,t.coord):!0}function BG(n,e){return n?function(t,r,s,c){var f=c<2?t.coord&&t.coord[c]:t.value;return gy(f,e[c])}:function(t,r,s,c){return gy(t.value,e[c])}}function uz(n,e,t){if(t==="average"){var r=0,s=0;return n.each(e,function(c,f){isNaN(c)||(r+=c,s++)}),r/s}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var fz=Bi(),Lq=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=Za()},e.prototype.render=function(t,r,s){var c=this,f=this.markerGroupMap;f.each(function(T){fz(T).keep=!1}),r.eachSeries(function(T){var R=jw.getMarkerModelFromSeries(T,c.type);R&&c.renderSeries(T,R,r,s)}),f.each(function(T){!fz(T).keep&&c.group.remove(T.group)})},e.prototype.markKeep=function(t){fz(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var s=this;At(t,function(c){var f=jw.getMarkerModelFromSeries(c,s.type);if(f){var T=f.getData();T.eachItemGraphicEl(function(R){R&&(r?B0(R):Uy(R))})}})},e.type="marker",e}(Eh),dz=Lq;function UG(n,e,t){var r=e.coordinateSystem;n.each(function(s){var c=n.getItemModel(s),f,T=It(c.get("x"),t.getWidth()),R=It(c.get("y"),t.getHeight());if(!isNaN(T)&&!isNaN(R))f=[T,R];else if(e.getMarkerPosition)f=e.getMarkerPosition(n.getValues(n.dimensions,s));else if(r){var I=n.get(r.dimensions[0],s),B=n.get(r.dimensions[1],s);f=r.dataToPoint([I,B])}isNaN(T)||(f[0]=T),isNaN(R)||(f[1]=R),n.setItemLayout(s,f)})}var Fq=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,s){r.eachSeries(function(c){var f=jw.getMarkerModelFromSeries(c,"markPoint");f&&(UG(f.getData(),c,s),this.markerGroupMap.get(c.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,s,c){var f=t.coordinateSystem,T=t.id,R=t.getData(),I=this.markerGroupMap,B=I.get(T)||I.set(T,new Sm),Y=jq(f,t,r);r.setData(Y),UG(r.getData(),t,c),Y.each(function(q){var ie=Y.getItemModel(q),ge=ie.getShallow("symbol"),Oe=ie.getShallow("symbolSize"),Ne=ie.getShallow("symbolRotate"),He=ie.getShallow("symbolOffset"),st=ie.getShallow("symbolKeepAspect");if(ja(ge)||ja(Oe)||ja(Ne)||ja(He)){var pt=r.getRawValue(q),Ut=r.getDataParams(q);ja(ge)&&(ge=ge(pt,Ut)),ja(Oe)&&(Oe=Oe(pt,Ut)),ja(Ne)&&(Ne=Ne(pt,Ut)),ja(He)&&(He=He(pt,Ut))}var pn=ie.getModel("itemStyle").getItemStyle(),yn=_c(R,"color");pn.fill||(pn.fill=yn),Y.setItemVisual(q,{symbol:ge,symbolSize:Oe,symbolRotate:Ne,symbolOffset:He,symbolKeepAspect:st,style:pn})}),B.updateData(Y),this.group.add(B.group),Y.eachItemGraphicEl(function(q){q.traverse(function(ie){nu(ie).dataModel=r})}),this.markKeep(B),B.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(dz);function jq(n,e,t){var r;n?r=ar(n&&n.dimensions,function(T){var R=e.getData().getDimensionInfo(e.getData().mapDimension(T))||{};return Ea(Ea({},R),{name:T,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var s=new M_(r,t),c=ar(t.get("data"),$i(S4,e));n&&(c=Yn(c,$i(C4,n)));var f=BG(!!n,r);return s.initData(c,null,f),s}var Bq=Fq;function Uq(n){n.registerComponentModel(Oq),n.registerComponentView(Bq),n.registerPreprocessor(function(e){sz(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var Zq=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,s){return new e(t,r,s)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(jw),Vq=Zq,mF=Bi(),zq=function(n,e,t,r){var s=n.getData(),c;if(La(r))c=r;else{var f=r.type;if(f==="min"||f==="max"||f==="average"||f==="median"||r.xAxis!=null||r.yAxis!=null){var T=void 0,R=void 0;if(r.yAxis!=null||r.xAxis!=null)T=e.getAxis(r.yAxis!=null?"y":"x"),R=nn(r.yAxis,r.xAxis);else{var I=jG(r,s,e,n);T=I.valueAxis;var B=rL(s,I.valueDataDim);R=uz(s,B,f)}var Y=T.dim==="x"?0:1,q=1-Y,ie=Kr(r),ge={coord:[]};ie.type=null,ie.coord=[],ie.coord[q]=-Infinity,ge.coord[q]=Infinity;var Oe=t.get("precision");Oe>=0&&yo(R)&&(R=+R.toFixed(Math.min(Oe,20))),ie.coord[Y]=ge.coord[Y]=R,c=[ie,ge,{type:f,valueIndex:r.valueIndex,value:R}]}else c=[]}var Ne=[S4(n,c[0]),S4(n,c[1]),Ea({},c[2])];return Ne[2].type=Ne[2].type||null,ba(Ne[2],Ne[0]),ba(Ne[2],Ne[1]),Ne};function gF(n){return!isNaN(n)&&!isFinite(n)}function ZG(n,e,t,r){var s=1-n,c=r.dimensions[n];return gF(e[s])&&gF(t[s])&&e[n]===t[n]&&r.getAxis(c).containData(e[n])}function Wq(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(ZG(1,t,r,n)||ZG(0,t,r,n)))return!0}return C4(n,e[0])&&C4(n,e[1])}function pz(n,e,t,r,s){var c=r.coordinateSystem,f=n.getItemModel(e),T,R=It(f.get("x"),s.getWidth()),I=It(f.get("y"),s.getHeight());if(!isNaN(R)&&!isNaN(I))T=[R,I];else{if(r.getMarkerPosition)T=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var B=c.dimensions,Y=n.get(B[0],e),q=n.get(B[1],e);T=c.dataToPoint([Y,q])}if(BS(c,"cartesian2d")){var ie=c.getAxis("x"),ge=c.getAxis("y"),B=c.dimensions;gF(n.get(B[0],e))?T[0]=ie.toGlobalCoord(ie.getExtent()[t?0:1]):gF(n.get(B[1],e))&&(T[1]=ge.toGlobalCoord(ge.getExtent()[t?0:1]))}isNaN(R)||(T[0]=R),isNaN(I)||(T[1]=I)}n.setItemLayout(e,T)}var Hq=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,s){r.eachSeries(function(c){var f=jw.getMarkerModelFromSeries(c,"markLine");if(f){var T=f.getData(),R=mF(f).from,I=mF(f).to;R.each(function(B){pz(R,B,!0,c,s),pz(I,B,!1,c,s)}),T.each(function(B){T.setItemLayout(B,[R.getItemLayout(B),I.getItemLayout(B)])}),this.markerGroupMap.get(c.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,s,c){var f=t.coordinateSystem,T=t.id,R=t.getData(),I=this.markerGroupMap,B=I.get(T)||I.set(T,new L3);this.group.add(B.group);var Y=Gq(f,t,r),q=Y.from,ie=Y.to,ge=Y.line;mF(r).from=q,mF(r).to=ie,r.setData(ge);var Oe=r.get("symbol"),Ne=r.get("symbolSize"),He=r.get("symbolRotate"),st=r.get("symbolOffset");La(Oe)||(Oe=[Oe,Oe]),La(Ne)||(Ne=[Ne,Ne]),La(He)||(He=[He,He]),La(st)||(st=[st,st]),Y.from.each(function(Ut){pt(q,Ut,!0),pt(ie,Ut,!1)}),ge.each(function(Ut){var pn=ge.getItemModel(Ut).getModel("lineStyle").getLineStyle();ge.setItemLayout(Ut,[q.getItemLayout(Ut),ie.getItemLayout(Ut)]),pn.stroke==null&&(pn.stroke=q.getItemVisual(Ut,"style").fill),ge.setItemVisual(Ut,{fromSymbolKeepAspect:q.getItemVisual(Ut,"symbolKeepAspect"),fromSymbolOffset:q.getItemVisual(Ut,"symbolOffset"),fromSymbolRotate:q.getItemVisual(Ut,"symbolRotate"),fromSymbolSize:q.getItemVisual(Ut,"symbolSize"),fromSymbol:q.getItemVisual(Ut,"symbol"),toSymbolKeepAspect:ie.getItemVisual(Ut,"symbolKeepAspect"),toSymbolOffset:ie.getItemVisual(Ut,"symbolOffset"),toSymbolRotate:ie.getItemVisual(Ut,"symbolRotate"),toSymbolSize:ie.getItemVisual(Ut,"symbolSize"),toSymbol:ie.getItemVisual(Ut,"symbol"),style:pn})}),B.updateData(ge),Y.line.eachItemGraphicEl(function(Ut){nu(Ut).dataModel=r,Ut.traverse(function(pn){nu(pn).dataModel=r})});function pt(Ut,pn,yn){var jn=Ut.getItemModel(pn);pz(Ut,pn,yn,t,c);var Cr=jn.getModel("itemStyle").getItemStyle();Cr.fill==null&&(Cr.fill=_c(R,"color")),Ut.setItemVisual(pn,{symbolKeepAspect:jn.get("symbolKeepAspect"),symbolOffset:sn(jn.get("symbolOffset",!0),st[yn?0:1]),symbolRotate:sn(jn.get("symbolRotate",!0),He[yn?0:1]),symbolSize:sn(jn.get("symbolSize"),Ne[yn?0:1]),symbol:sn(jn.get("symbol",!0),Oe[yn?0:1]),style:Cr})}this.markKeep(B),B.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(dz);function Gq(n,e,t){var r;n?r=ar(n&&n.dimensions,function(I){var B=e.getData().getDimensionInfo(e.getData().mapDimension(I))||{};return Ea(Ea({},B),{name:I,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var s=new M_(r,t),c=new M_(r,t),f=new M_([],t),T=ar(t.get("data"),$i(zq,e,n,t));n&&(T=Yn(T,$i(Wq,n)));var R=BG(!!n,r);return s.initData(ar(T,function(I){return I[0]}),null,R),c.initData(ar(T,function(I){return I[1]}),null,R),f.initData(ar(T,function(I){return I[2]})),f.hasItemOption=!0,{from:s,to:c,line:f}}var $q=Hq;function Kq(n){n.registerComponentModel(Vq),n.registerComponentView($q),n.registerPreprocessor(function(e){sz(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var Yq=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,s){return new e(t,r,s)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(jw),Xq=Yq,_F=Bi(),Jq=function(n,e,t,r){var s=r[0],c=r[1];if(!(!s||!c)){var f=S4(n,s),T=S4(n,c),R=f.coord,I=T.coord;R[0]=nn(R[0],-Infinity),R[1]=nn(R[1],-Infinity),I[0]=nn(I[0],Infinity),I[1]=nn(I[1],Infinity);var B=Ri([{},f,T]);return B.coord=[f.coord,T.coord],B.x0=f.x,B.y0=f.y,B.x1=T.x,B.y1=T.y,B}};function yF(n){return!isNaN(n)&&!isFinite(n)}function VG(n,e,t,r){var s=1-n;return yF(e[s])&&yF(t[s])}function Qq(n,e){var t=e.coord[0],r=e.coord[1],s={coord:t,x:e.x0,y:e.y0},c={coord:r,x:e.x1,y:e.y1};return BS(n,"cartesian2d")?t&&r&&(VG(1,t,r,n)||VG(0,t,r,n))?!0:Nq(n,s,c):C4(n,s)||C4(n,c)}function zG(n,e,t,r,s){var c=r.coordinateSystem,f=n.getItemModel(e),T,R=It(f.get(t[0]),s.getWidth()),I=It(f.get(t[1]),s.getHeight());if(!isNaN(R)&&!isNaN(I))T=[R,I];else{if(r.getMarkerPosition){var B=n.getValues(["x0","y0"],e),Y=n.getValues(["x1","y1"],e),q=c.clampData(B),ie=c.clampData(Y),ge=[];t[0]==="x0"?ge[0]=q[0]>ie[0]?Y[0]:B[0]:ge[0]=q[0]>ie[0]?B[0]:Y[0],t[1]==="y0"?ge[1]=q[1]>ie[1]?Y[1]:B[1]:ge[1]=q[1]>ie[1]?B[1]:Y[1],T=r.getMarkerPosition(ge,t,!0)}else{var Oe=n.get(t[0],e),Ne=n.get(t[1],e),He=[Oe,Ne];c.clampData&&c.clampData(He,He),T=c.dataToPoint(He,!0)}if(BS(c,"cartesian2d")){var st=c.getAxis("x"),pt=c.getAxis("y"),Oe=n.get(t[0],e),Ne=n.get(t[1],e);yF(Oe)?T[0]=st.toGlobalCoord(st.getExtent()[t[0]==="x0"?0:1]):yF(Ne)&&(T[1]=pt.toGlobalCoord(pt.getExtent()[t[1]==="y0"?0:1]))}isNaN(R)||(T[0]=R),isNaN(I)||(T[1]=I)}return T}var WG=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],qq=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,s){r.eachSeries(function(c){var f=jw.getMarkerModelFromSeries(c,"markArea");if(f){var T=f.getData();T.each(function(R){var I=ar(WG,function(Y){return zG(T,R,Y,c,s)});T.setItemLayout(R,I);var B=T.getItemGraphicEl(R);B.setShape("points",I)})}},this)},e.prototype.renderSeries=function(t,r,s,c){var f=t.coordinateSystem,T=t.id,R=t.getData(),I=this.markerGroupMap,B=I.get(T)||I.set(T,{group:new Qi});this.group.add(B.group),this.markKeep(B);var Y=eee(f,t,r);r.setData(Y),Y.each(function(q){var ie=ar(WG,function(Cr){return zG(Y,q,Cr,t,c)}),ge=f.getAxis("x").scale,Oe=f.getAxis("y").scale,Ne=ge.getExtent(),He=Oe.getExtent(),st=[ge.parse(Y.get("x0",q)),ge.parse(Y.get("x1",q))],pt=[Oe.parse(Y.get("y0",q)),Oe.parse(Y.get("y1",q))];In(st),In(pt);var Ut=!(Ne[0]>st[1]||Ne[1]<st[0]||He[0]>pt[1]||He[1]<pt[0]),pn=!Ut;Y.setItemLayout(q,{points:ie,allClipped:pn});var yn=Y.getItemModel(q).getModel("itemStyle").getItemStyle(),jn=_c(R,"color");yn.fill||(yn.fill=jn,ei(yn.fill)&&(yn.fill=cr(yn.fill,.4))),yn.stroke||(yn.stroke=jn),Y.setItemVisual(q,"style",yn)}),Y.diff(_F(B).data).add(function(q){var ie=Y.getItemLayout(q);if(!ie.allClipped){var ge=new tg({shape:{points:ie.points}});Y.setItemGraphicEl(q,ge),B.group.add(ge)}}).update(function(q,ie){var ge=_F(B).data.getItemGraphicEl(ie),Oe=Y.getItemLayout(q);Oe.allClipped?ge&&B.group.remove(ge):(ge?vp(ge,{shape:{points:Oe.points}},r,q):ge=new tg({shape:{points:Oe.points}}),Y.setItemGraphicEl(q,ge),B.group.add(ge))}).remove(function(q){var ie=_F(B).data.getItemGraphicEl(q);B.group.remove(ie)}).execute(),Y.eachItemGraphicEl(function(q,ie){var ge=Y.getItemModel(ie),Oe=Y.getItemVisual(ie,"style");q.useStyle(Y.getItemVisual(ie,"style")),bv(q,bh(ge),{labelFetcher:r,labelDataIndex:ie,defaultText:Y.getName(ie)||"",inheritColor:ei(Oe.fill)?cr(Oe.fill,1):"#000"}),Om(q,ge),ih(q,null,null,ge.get(["emphasis","disabled"])),nu(q).dataModel=r}),_F(B).data=Y,B.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(dz);function eee(n,e,t){var r,s,c=["x0","y0","x1","y1"];if(n){var f=ar(n&&n.dimensions,function(I){var B=e.getData(),Y=B.getDimensionInfo(B.mapDimension(I))||{};return Ea(Ea({},Y),{name:I,ordinalMeta:null})});s=ar(c,function(I,B){return{name:I,type:f[B%2].type}}),r=new M_(s,t)}else s=[{name:"value",type:"float"}],r=new M_(s,t);var T=ar(t.get("data"),$i(Jq,e,n,t));n&&(T=Yn(T,$i(Qq,n)));var R=n?function(I,B,Y,q){var ie=I.coord[Math.floor(q/2)][q%2];return gy(ie,s[q])}:function(I,B,Y,q){return gy(I.value,s[q])};return r.initData(T,null,R),r.hasItemOption=!0,r}var tee=qq;function nee(n){n.registerComponentModel(Xq),n.registerComponentView(tee),n.registerPreprocessor(function(e){sz(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var ree=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},aee=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,s){this.mergeDefaultAndTheme(t,s),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,s=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),La(r)&&At(r,function(c,f){ei(c)&&(c={type:c}),r[f]=ba(c,ree(s,c.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,s=0;s<t.length;s++){var c=t[s].get("name");if(this.isSelected(c)){this.select(c),r=!0;break}}!r&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var r=[],s=[];t.eachRawSeries(function(R){var I=R.name;s.push(I);var B;if(R.legendVisualProvider){var Y=R.legendVisualProvider,q=Y.getAllNames();t.isSeriesFiltered(R)||(s=s.concat(q)),q.length?r=r.concat(q):B=!0}else B=!0;B&&qi(R)&&r.push(R.name)}),this._availableNames=s;var c=this.get("data")||r,f=Za(),T=ar(c,function(R){return(ei(R)||yo(R))&&(R={name:R}),f.get(R.name)?null:(f.set(R.name,!0),new Lv(R,this,this.ecModel))},this);this._data=Yn(T,function(R){return!!R})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var r=this.option.selected,s=this.get("selectedMode");if(s==="single"){var c=this._data;At(c,function(f){r[f.get("name")]=!1})}r[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var r=this.option.selected;r.hasOwnProperty(t)||(r[t]=!0),this[r[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,r=this.option.selected;At(t,function(s){r[s.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,r=this.option.selected;At(t,function(s){var c=s.get("name",!0);r.hasOwnProperty(c)||(r[c]=!0),r[c]=!r[c]})},e.prototype.isSelected=function(t){var r=this.option.selected;return!(r.hasOwnProperty(t)&&!r[t])&&Ui(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Mp),vz=aee,rO=$i,hz=At,bF=Qi,iee=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new bF),this.group.add(this._selectorGroup=new bF),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,s){var c=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var f=t.get("align"),T=t.get("orient");(!f||f==="auto")&&(f=t.get("left")==="right"&&T==="vertical"?"right":"left");var R=t.get("selector",!0),I=t.get("selectorPosition",!0);R&&(!I||I==="auto")&&(I=T==="horizontal"?"end":"start"),this.renderInner(f,t,r,s,R,T,I);var B=t.getBoxLayoutParams(),Y={width:s.getWidth(),height:s.getHeight()},q=t.get("padding"),ie=mm(B,Y,q),ge=this.layoutInner(t,f,ie,c,R,I),Oe=mm(Pi({width:ge.width,height:ge.height},B),Y,q);this.group.x=Oe.x-ge.x,this.group.y=Oe.y-ge.y,this.group.markRedraw(),this.group.add(this._backgroundEl=qH(ge,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,s,c,f,T,R){var I=this.getContentGroup(),B=Za(),Y=r.get("selectedMode"),q=[];s.eachRawSeries(function(ie){!ie.get("legendHoverLink")&&q.push(ie.id)}),hz(r.getData(),function(ie,ge){var Oe=ie.get("name");if(!this.newlineDisabled&&(Oe===""||Oe===`
|
||
`)){var Ne=new bF;Ne.newline=!0,I.add(Ne);return}var He=s.getSeriesByName(Oe)[0];if(!B.get(Oe))if(He){var st=He.getData(),pt=st.getVisual("legendLineStyle")||{},Ut=st.getVisual("legendIcon"),pn=st.getVisual("style"),yn=this._createItem(He,Oe,ge,ie,r,t,pt,pn,Ut,Y,c);yn.on("click",rO(HG,Oe,null,c,q)).on("mouseover",rO(mz,He.name,null,c,q)).on("mouseout",rO(gz,He.name,null,c,q)),B.set(Oe,!0)}else s.eachRawSeries(function(jn){if(!B.get(Oe)&&jn.legendVisualProvider){var Cr=jn.legendVisualProvider;if(!Cr.containName(Oe))return;var Nr=Cr.indexOfName(Oe),Rr=Cr.getItemVisual(Nr,"style"),Er=Cr.getItemVisual(Nr,"legendIcon"),ma=Tu(Rr.fill);ma&&ma[3]===0&&(ma[3]=.2,Rr=Ea(Ea({},Rr),{fill:un(ma,"rgba")}));var wa=this._createItem(jn,Oe,ge,ie,r,t,{},Rr,Er,Y,c);wa.on("click",rO(HG,null,Oe,c,q)).on("mouseover",rO(mz,null,Oe,c,q)).on("mouseout",rO(gz,null,Oe,c,q)),B.set(Oe,!0)}},this)},this),f&&this._createSelector(f,r,c,T,R)},e.prototype._createSelector=function(t,r,s,c,f){var T=this.getSelectorGroup();hz(t,function(I){var B=I.type,Y=new Tp({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){s.dispatchAction({type:B==="all"?"legendAllSelect":"legendInverseSelect"})}});T.add(Y);var q=r.getModel("selectorLabel"),ie=r.getModel(["emphasis","selectorLabel"]);bv(Y,{normal:q,emphasis:ie},{defaultText:I.title}),g_(Y)})},e.prototype._createItem=function(t,r,s,c,f,T,R,I,B,Y,q){var ie=t.visualDrawType,ge=f.get("itemWidth"),Oe=f.get("itemHeight"),Ne=f.isSelected(r),He=c.get("symbolRotate"),st=c.get("symbolKeepAspect"),pt=c.get("icon");B=pt||B||"roundRect";var Ut=oee(B,c,R,I,ie,Ne,q),pn=new bF,yn=c.getModel("textStyle");if(ja(t.getLegendIcon)&&(!pt||pt==="inherit"))pn.add(t.getLegendIcon({itemWidth:ge,itemHeight:Oe,icon:B,iconRotate:He,itemStyle:Ut.itemStyle,lineStyle:Ut.lineStyle,symbolKeepAspect:st}));else{var jn=pt==="inherit"&&t.getData().getVisual("symbol")?He==="inherit"?t.getData().getVisual("symbolRotate"):He:0;pn.add(see({itemWidth:ge,itemHeight:Oe,icon:B,iconRotate:jn,itemStyle:Ut.itemStyle,lineStyle:Ut.lineStyle,symbolKeepAspect:st}))}var Cr=T==="left"?ge+5:-5,Nr=T,Rr=f.get("formatter"),Er=r;ei(Rr)&&Rr?Er=Rr.replace("{name}",r!=null?r:""):ja(Rr)&&(Er=Rr(r));var ma=Ne?yn.getTextColor():c.get("inactiveColor");pn.add(new Tp({style:Cv(yn,{text:Er,x:Cr,y:Oe/2,fill:ma,align:Nr,verticalAlign:"middle"},{inheritColor:ma})}));var wa=new jd({shape:pn.getBoundingRect(),invisible:!0}),Ga=c.getModel("tooltip");return Ga.get("show")&&Lx({el:wa,componentModel:f,itemName:r,itemTooltipOption:Ga.option}),pn.add(wa),pn.eachChild(function(Ei){Ei.silent=!0}),wa.silent=!Y,this.getContentGroup().add(pn),g_(pn),pn.__legendDataIndex=s,pn},e.prototype.layoutInner=function(t,r,s,c,f,T){var R=this.getContentGroup(),I=this.getSelectorGroup();q1(t.get("orient"),R,t.get("itemGap"),s.width,s.height);var B=R.getBoundingRect(),Y=[-B.x,-B.y];if(I.markRedraw(),R.markRedraw(),f){q1("horizontal",I,t.get("selectorItemGap",!0));var q=I.getBoundingRect(),ie=[-q.x,-q.y],ge=t.get("selectorButtonGap",!0),Oe=t.getOrient().index,Ne=Oe===0?"width":"height",He=Oe===0?"height":"width",st=Oe===0?"y":"x";T==="end"?ie[Oe]+=B[Ne]+ge:Y[Oe]+=q[Ne]+ge,ie[1-Oe]+=B[He]/2-q[He]/2,I.x=ie[0],I.y=ie[1],R.x=Y[0],R.y=Y[1];var pt={x:0,y:0};return pt[Ne]=B[Ne]+ge+q[Ne],pt[He]=Math.max(B[He],q[He]),pt[st]=Math.min(0,q[st]+ie[1-Oe]),pt}else return R.x=Y[0],R.y=Y[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Eh);function oee(n,e,t,r,s,c,f){function T(Ne,He){Ne.lineWidth==="auto"&&(Ne.lineWidth=He.lineWidth>0?2:0),hz(Ne,function(st,pt){Ne[pt]==="inherit"&&(Ne[pt]=He[pt])})}var R=e.getModel("itemStyle"),I=R.getItemStyle(),B=n.lastIndexOf("empty",0)===0?"fill":"stroke",Y=R.getShallow("decal");I.decal=!Y||Y==="inherit"?r.decal:mb(Y,f),I.fill==="inherit"&&(I.fill=r[s]),I.stroke==="inherit"&&(I.stroke=r[B]),I.opacity==="inherit"&&(I.opacity=(s==="fill"?r:t).opacity),T(I,r);var q=e.getModel("lineStyle"),ie=q.getLineStyle();if(T(ie,t),I.fill==="auto"&&(I.fill=r.fill),I.stroke==="auto"&&(I.stroke=r.fill),ie.stroke==="auto"&&(ie.stroke=r.fill),!c){var ge=e.get("inactiveBorderWidth"),Oe=I[B];I.lineWidth=ge==="auto"?r.lineWidth>0&&Oe?2:0:I.lineWidth,I.fill=e.get("inactiveColor"),I.stroke=e.get("inactiveBorderColor"),ie.stroke=q.get("inactiveColor"),ie.lineWidth=q.get("inactiveWidth")}return{itemStyle:I,lineStyle:ie}}function see(n){var e=n.icon||"roundRect",t=ad(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function HG(n,e,t,r){gz(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n!=null?n:e}),mz(n,e,t,r)}function GG(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,s=e.length;r<s&&!(t=e[r].states.emphasis);)r++;return t&&t.hoverLayer}function mz(n,e,t,r){GG(t)||t.dispatchAction({type:"highlight",seriesName:n,name:e,excludeSeriesId:r})}function gz(n,e,t,r){GG(t)||t.dispatchAction({type:"downplay",seriesName:n,name:e,excludeSeriesId:r})}var $G=iee;function lee(n){var e=n.findComponents({mainType:"legend"});e&&e.length&&n.filterSeries(function(t){for(var r=0;r<e.length;r++)if(!e[r].isSelected(t.name))return!1;return!0})}function w4(n,e,t){var r={},s=n==="toggleSelected",c;return t.eachComponent("legend",function(f){s&&c!=null?f[c?"select":"unSelect"](e.name):n==="allSelect"||n==="inverseSelect"?f[n]():(f[n](e.name),c=f.isSelected(e.name));var T=f.getData();At(T,function(R){var I=R.get("name");if(!(I===`
|
||
`||I==="")){var B=f.isSelected(I);r.hasOwnProperty(I)?r[I]=r[I]&&B:r[I]=B}})}),n==="allSelect"||n==="inverseSelect"?{selected:r}:{name:e.name,selected:r}}function cee(n){n.registerAction("legendToggleSelect","legendselectchanged",$i(w4,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",$i(w4,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",$i(w4,"inverseSelect")),n.registerAction("legendSelect","legendselected",$i(w4,"select")),n.registerAction("legendUnSelect","legendunselected",$i(w4,"unSelect"))}function KG(n){n.registerComponentModel(vz),n.registerComponentView($G),n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,lee),n.registerSubTypeDefaulter("legend",function(){return"plain"}),cee(n)}var uee=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,r,s){var c=JE(t);n.prototype.init.call(this,t,r,s),YG(this,t,c)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),YG(this,this.option,t)},e.type="legend.scroll",e.defaultOption=U0(vz.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(vz);function YG(n,e,t){var r=n.getOrient(),s=[1,1];s[r.index]=0,Ky(e,t,{type:"box",ignoreSize:!!s})}var fee=uee,XG=Qi,_z=["width","height"],yz=["x","y"],dee=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){n.prototype.init.call(this),this.group.add(this._containerGroup=new XG),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new XG)},e.prototype.resetInner=function(){n.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,r,s,c,f,T,R){var I=this;n.prototype.renderInner.call(this,t,r,s,c,f,T,R);var B=this._controllerGroup,Y=r.get("pageIconSize",!0),q=La(Y)?Y:[Y,Y];ge("pagePrev",0);var ie=r.getModel("pageTextStyle");B.add(new Tp({name:"pageText",style:{text:"xx/xx",fill:ie.getTextColor(),font:ie.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),ge("pageNext",1);function ge(Oe,Ne){var He=Oe+"DataIndex",st=tm(r.get("pageIcons",!0)[r.getOrient().name][Ne],{onclick:Xa(I._pageGo,I,He,r,c)},{x:-q[0]/2,y:-q[1]/2,width:q[0],height:q[1]});st.name=Oe,B.add(st)}},e.prototype.layoutInner=function(t,r,s,c,f,T){var R=this.getSelectorGroup(),I=t.getOrient().index,B=_z[I],Y=yz[I],q=_z[1-I],ie=yz[1-I];f&&q1("horizontal",R,t.get("selectorItemGap",!0));var ge=t.get("selectorButtonGap",!0),Oe=R.getBoundingRect(),Ne=[-Oe.x,-Oe.y],He=Kr(s);f&&(He[B]=s[B]-Oe[B]-ge);var st=this._layoutContentAndController(t,c,He,I,B,q,ie,Y);if(f){if(T==="end")Ne[I]+=st[B]+ge;else{var pt=Oe[B]+ge;Ne[I]-=pt,st[Y]-=pt}st[B]+=Oe[B]+ge,Ne[1-I]+=st[ie]+st[q]/2-Oe[q]/2,st[q]=Math.max(st[q],Oe[q]),st[ie]=Math.min(st[ie],Oe[ie]+Ne[1-I]),R.x=Ne[0],R.y=Ne[1],R.markRedraw()}return st},e.prototype._layoutContentAndController=function(t,r,s,c,f,T,R,I){var B=this.getContentGroup(),Y=this._containerGroup,q=this._controllerGroup;q1(t.get("orient"),B,t.get("itemGap"),c?s.width:null,c?null:s.height),q1("horizontal",q,t.get("pageButtonItemGap",!0));var ie=B.getBoundingRect(),ge=q.getBoundingRect(),Oe=this._showController=ie[f]>s[f],Ne=[-ie.x,-ie.y];r||(Ne[c]=B[I]);var He=[0,0],st=[-ge.x,-ge.y],pt=sn(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(Oe){var Ut=t.get("pageButtonPosition",!0);Ut==="end"?st[c]+=s[f]-ge[f]:He[c]+=ge[f]+pt}st[1-c]+=ie[T]/2-ge[T]/2,B.setPosition(Ne),Y.setPosition(He),q.setPosition(st);var pn={x:0,y:0};if(pn[f]=Oe?s[f]:ie[f],pn[T]=Math.max(ie[T],ge[T]),pn[R]=Math.min(0,ge[R]+st[1-c]),Y.__rectSize=s[f],Oe){var yn={x:0,y:0};yn[f]=Math.max(s[f]-ge[f]-pt,0),yn[T]=pn[T],Y.setClipPath(new jd({shape:yn})),Y.__rectSize=yn[f]}else q.eachChild(function(Cr){Cr.attr({invisible:!0,silent:!0})});var jn=this._getPageInfo(t);return jn.pageIndex!=null&&vp(B,{x:jn.contentPosition[0],y:jn.contentPosition[1]},Oe?t:null),this._updatePageInfoView(t,jn),pn},e.prototype._pageGo=function(t,r,s){var c=this._getPageInfo(r)[t];c!=null&&s.dispatchAction({type:"legendScroll",scrollDataIndex:c,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var s=this._controllerGroup;At(["pagePrev","pageNext"],function(B){var Y=B+"DataIndex",q=r[Y]!=null,ie=s.childOfName(B);ie&&(ie.setStyle("fill",q?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),ie.cursor=q?"pointer":"default")});var c=s.childOfName("pageText"),f=t.get("pageFormatter"),T=r.pageIndex,R=T!=null?T+1:0,I=r.pageCount;c&&f&&c.setStyle("text",ei(f)?f.replace("{current}",R==null?"":R+"").replace("{total}",I==null?"":I+""):f({current:R,total:I}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),s=this.getContentGroup(),c=this._containerGroup.__rectSize,f=t.getOrient().index,T=_z[f],R=yz[f],I=this._findTargetItemIndex(r),B=s.children(),Y=B[I],q=B.length,ie=q?1:0,ge={contentPosition:[s.x,s.y],pageCount:ie,pageIndex:ie-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!Y)return ge;var Oe=Ut(Y);ge.contentPosition[f]=-Oe.s;for(var Ne=I+1,He=Oe,st=Oe,pt=null;Ne<=q;++Ne)pt=Ut(B[Ne]),(!pt&&st.e>He.s+c||pt&&!pn(pt,He.s))&&(st.i>He.i?He=st:He=pt,He&&(ge.pageNextDataIndex==null&&(ge.pageNextDataIndex=He.i),++ge.pageCount)),st=pt;for(var Ne=I-1,He=Oe,st=Oe,pt=null;Ne>=-1;--Ne)pt=Ut(B[Ne]),(!pt||!pn(st,pt.s))&&He.i<st.i&&(st=He,ge.pagePrevDataIndex==null&&(ge.pagePrevDataIndex=He.i),++ge.pageCount,++ge.pageIndex),He=pt;return ge;function Ut(yn){if(yn){var jn=yn.getBoundingRect(),Cr=jn[R]+yn[R];return{s:Cr,e:Cr+jn[T],i:yn.__legendDataIndex}}}function pn(yn,jn){return yn.e>=jn&&yn.s<=jn+c}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,s=this.getContentGroup(),c;return s.eachChild(function(f,T){var R=f.__legendDataIndex;c==null&&R!=null&&(c=T),R===t&&(r=T)}),r!=null?r:c},e.type="legend.scroll",e}($G),pee=dee;function vee(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(s){s.setScrollDataIndex(r)})})}function hee(n){Ud(KG),n.registerComponentModel(fee),n.registerComponentView(pee),vee(n)}function mee(n){Ud(KG),Ud(hee)}var gee=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=U0(b4.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(b4),_ee=gee,bz=Bi();function yee(n,e,t){bz(n).coordSysRecordMap.each(function(r){var s=r.dataZoomInfoMap.get(e.uid);s&&(s.getRange=t)})}function bee(n,e){for(var t=bz(n).coordSysRecordMap,r=t.keys(),s=0;s<r.length;s++){var c=r[s],f=t.get(c),T=f.dataZoomInfoMap;if(T){var R=e.uid,I=T.get(R);I&&(T.removeKey(R),T.keys().length||JG(t,f))}}}function JG(n,e){if(e){n.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function xee(n,e){var t={model:e,containsPoint:$i(See,e),dispatchAction:$i(Eee,n),dataZoomInfoMap:null,controller:null},r=t.controller=new dM(n.getZr());return At(["pan","zoom","scrollMove"],function(s){r.on(s,function(c){var f=[];t.dataZoomInfoMap.each(function(T){if(!!c.isAvailableBehavior(T.model.option)){var R=(T.getRange||{})[s],I=R&&R(T.dzReferCoordSysInfo,t.model.mainType,t.controller,c);!T.model.get("disabled",!0)&&I&&f.push({dataZoomId:T.model.id,start:I[0],end:I[1]})}}),f.length&&t.dispatchAction(f)})}),t}function Eee(n,e){n.isDisposed()||n.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function See(n,e,t,r){return n.coordinateSystem.containPoint([t,r])}function Cee(n){var e,t="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},s=!0;return n.each(function(c){var f=c.model,T=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;r[t+T]>r[t+e]&&(e=T),s=s&&f.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!s}}}function wee(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=bz(t),s=r.coordSysRecordMap||(r.coordSysRecordMap=Za());s.each(function(c){c.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(c){var f=$H(c);At(f.infoList,function(T){var R=T.model.uid,I=s.get(R)||s.set(R,xee(t,T.model)),B=I.dataZoomInfoMap||(I.dataZoomInfoMap=Za());B.set(c.uid,{dzReferCoordSysInfo:T,model:c,getRange:null})})}),s.each(function(c){var f=c.controller,T,R=c.dataZoomInfoMap;if(R){var I=R.keys()[0];I!=null&&(T=R.get(I))}if(!T){JG(s,c);return}var B=Cee(R);f.enable(B.controlType,B.opt),f.setPointerChecker(c.containsPoint),ye(c,"dispatchAction",T.model.get("throttle",!0),"fixRate")})})}var Tee=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,s){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),yee(s,t,{pan:Xa(xz.pan,this),zoom:Xa(xz.zoom,this),scrollMove:Xa(xz.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){bee(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}($V),xz={zoom:function(n,e,t,r){var s=this.range,c=s.slice(),f=n.axisModels[0];if(!!f){var T=Ez[e](null,[r.originX,r.originY],f,t,n),R=(T.signal>0?T.pixelStart+T.pixelLength-T.pixel:T.pixel-T.pixelStart)/T.pixelLength*(c[1]-c[0])+c[0],I=Math.max(1/r.scale,0);c[0]=(c[0]-R)*I+R,c[1]=(c[1]-R)*I+R;var B=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(uC(0,c,[0,100],0,B.minSpan,B.maxSpan),this.range=c,s[0]!==c[0]||s[1]!==c[1])return c}},pan:QG(function(n,e,t,r,s,c){var f=Ez[r]([c.oldX,c.oldY],[c.newX,c.newY],e,s,t);return f.signal*(n[1]-n[0])*f.pixel/f.pixelLength}),scrollMove:QG(function(n,e,t,r,s,c){var f=Ez[r]([0,0],[c.scrollDelta,c.scrollDelta],e,s,t);return f.signal*(n[1]-n[0])*c.scrollDelta})};function QG(n){return function(e,t,r,s){var c=this.range,f=c.slice(),T=e.axisModels[0];if(!!T){var R=n(f,T,e,t,r,s);if(uC(R,f,[0,100],"all"),this.range=f,c[0]!==f[0]||c[1]!==f[1])return f}}}var Ez={grid:function(n,e,t,r,s){var c=t.axis,f={},T=s.model.coordinateSystem.getRect();return n=n||[0,0],c.dim==="x"?(f.pixel=e[0]-n[0],f.pixelLength=T.width,f.pixelStart=T.x,f.signal=c.inverse?1:-1):(f.pixel=e[1]-n[1],f.pixelLength=T.height,f.pixelStart=T.y,f.signal=c.inverse?-1:1),f},polar:function(n,e,t,r,s){var c=t.axis,f={},T=s.model.coordinateSystem,R=T.getRadiusAxis().getExtent(),I=T.getAngleAxis().getExtent();return n=n?T.pointToCoord(n):[0,0],e=T.pointToCoord(e),t.mainType==="radiusAxis"?(f.pixel=e[0]-n[0],f.pixelLength=R[1]-R[0],f.pixelStart=R[0],f.signal=c.inverse?1:-1):(f.pixel=e[1]-n[1],f.pixelLength=I[1]-I[0],f.pixelStart=I[0],f.signal=c.inverse?-1:1),f},singleAxis:function(n,e,t,r,s){var c=t.axis,f=s.model.coordinateSystem.getRect(),T={};return n=n||[0,0],c.orient==="horizontal"?(T.pixel=e[0]-n[0],T.pixelLength=f.width,T.pixelStart=f.x,T.signal=c.inverse?1:-1):(T.pixel=e[1]-n[1],T.pixelLength=f.height,T.pixelStart=f.y,T.signal=c.inverse?-1:1),T}},Aee=Tee;function qG(n){KV(n),n.registerComponentModel(_ee),n.registerComponentView(Aee),wee(n)}var Mee=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=U0(b4.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(b4),kee=Mee,T4=jd,e$=7,Pee=1,Sz=30,Ree=7,A4="horizontal",t$="vertical",Oee=5,Iee=["line","bar","candlestick","scatter"],Dee={easing:"cubicOut",duration:100,delay:0},Nee=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=Xa(this._onBrush,this),this._onBrushEnd=Xa(this._onBrushEnd,this)},e.prototype.render=function(t,r,s,c){if(n.prototype.render.apply(this,arguments),ye(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!c||c.type!=="dataZoom"||c.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Ze(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Qi;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,s=t.get("brushSelect"),c=s?Ree:0,f=this._findCoordRect(),T={width:r.getWidth(),height:r.getHeight()},R=this._orient===A4?{right:T.width-f.x-f.width,top:T.height-Sz-e$-c,width:f.width,height:Sz}:{right:e$,top:f.y,width:Sz,height:f.height},I=JE(t.option);At(["right","top","width","height"],function(Y){I[Y]==="ph"&&(I[Y]=R[Y])});var B=mm(I,T);this._location={x:B.x,y:B.y},this._size=[B.width,B.height],this._orient===t$&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,s=this._orient,c=this.dataZoomModel.getFirstTargetAxisModel(),f=c&&c.get("inverse"),T=this._displayables.sliderGroup,R=(this._dataShadowInfo||{}).otherAxisInverse;T.attr(s===A4&&!f?{scaleY:R?1:-1,scaleX:1}:s===A4&&f?{scaleY:R?1:-1,scaleX:-1}:s===t$&&!f?{scaleY:R?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:R?-1:1,scaleX:-1,rotation:Math.PI/2});var I=t.getBoundingRect([T]);t.x=r.x-I.x,t.y=r.y-I.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,s=this._displayables.sliderGroup,c=t.get("brushSelect");s.add(new T4({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var f=new T4({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Xa(this._onClickPanel,this)}),T=this.api.getZr();c?(f.on("mousedown",this._onBrushStart,this),f.cursor="crosshair",T.on("mousemove",this._onBrush),T.on("mouseup",this._onBrushEnd)):(T.off("mousemove",this._onBrush),T.off("mouseup",this._onBrushEnd)),s.add(f)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,s=this._shadowSize||[],c=t.series,f=c.getRawData(),T=c.getShadowDim&&c.getShadowDim(),R=T&&f.getDimensionInfo(T)?c.getShadowDim():t.otherDim;if(R==null)return;var I=this._shadowPolygonPts,B=this._shadowPolylinePts;if(f!==this._shadowData||R!==this._shadowDim||r[0]!==s[0]||r[1]!==s[1]){var Y=f.getDataExtent(R),q=(Y[1]-Y[0])*.3;Y=[Y[0]-q,Y[1]+q];var ie=[0,r[1]],ge=[0,r[0]],Oe=[[r[0],0],[0,0]],Ne=[],He=ge[1]/(f.count()-1),st=0,pt=Math.round(f.count()/r[0]),Ut;f.each([R],function(Nr,Rr){if(pt>0&&Rr%pt){st+=He;return}var Er=Nr==null||isNaN(Nr)||Nr==="",ma=Er?0:yt(Nr,Y,ie,!0);Er&&!Ut&&Rr?(Oe.push([Oe[Oe.length-1][0],0]),Ne.push([Ne[Ne.length-1][0],0])):!Er&&Ut&&(Oe.push([st,0]),Ne.push([st,0])),Oe.push([st,ma]),Ne.push([st,ma]),st+=He,Ut=Er}),I=this._shadowPolygonPts=Oe,B=this._shadowPolylinePts=Ne}this._shadowData=f,this._shadowDim=R,this._shadowSize=[r[0],r[1]];var pn=this.dataZoomModel;function yn(Nr){var Rr=pn.getModel(Nr?"selectedDataBackground":"dataBackground"),Er=new Qi,ma=new tg({shape:{points:I},segmentIgnoreThreshold:1,style:Rr.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),wa=new ng({shape:{points:B},segmentIgnoreThreshold:1,style:Rr.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return Er.add(ma),Er.add(wa),Er}for(var jn=0;jn<3;jn++){var Cr=yn(jn===1);this._displayables.sliderGroup.add(Cr),this._displayables.dataShadowSegs.push(Cr)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var s,c=this.ecModel;return t.eachTargetAxis(function(f,T){var R=t.getAxisProxy(f,T).getTargetSeriesModels();At(R,function(I){if(!s&&!(r!==!0&&Ui(Iee,I.get("type"))<0)){var B=c.getComponent(Lw(f),T).axis,Y=Lee(f),q,ie=I.coordinateSystem;Y!=null&&ie.getOtherAxis&&(q=ie.getOtherAxis(B).inverse),Y=I.getData().mapDimension(Y),s={thisAxis:B,series:I,thisDim:f,otherDim:Y,otherAxisInverse:q}}},this)},this),s}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,s=r.handles=[null,null],c=r.handleLabels=[null,null],f=this._displayables.sliderGroup,T=this._size,R=this.dataZoomModel,I=this.api,B=R.get("borderRadius")||0,Y=R.get("brushSelect"),q=r.filler=new T4({silent:Y,style:{fill:R.get("fillerColor")},textConfig:{position:"inside"}});f.add(q),f.add(new T4({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:T[0],height:T[1],r:B},style:{stroke:R.get("dataBackgroundColor")||R.get("borderColor"),lineWidth:Pee,fill:"rgba(0,0,0,0)"}})),At([0,1],function(pt){var Ut=R.get("handleIcon");!Au[Ut]&&Ut.indexOf("path://")<0&&Ut.indexOf("image://")<0&&(Ut="path://"+Ut);var pn=ad(Ut,-1,0,2,2,null,!0);pn.attr({cursor:n$(this._orient),draggable:!0,drift:Xa(this._onDragMove,this,pt),ondragend:Xa(this._onDragEnd,this),onmouseover:Xa(this._showDataInfo,this,!0),onmouseout:Xa(this._showDataInfo,this,!1),z2:5});var yn=pn.getBoundingRect(),jn=R.get("handleSize");this._handleHeight=It(jn,this._size[1]),this._handleWidth=yn.width/yn.height*this._handleHeight,pn.setStyle(R.getModel("handleStyle").getItemStyle()),pn.style.strokeNoScale=!0,pn.rectHover=!0,pn.ensureState("emphasis").style=R.getModel(["emphasis","handleStyle"]).getItemStyle(),g_(pn);var Cr=R.get("handleColor");Cr!=null&&(pn.style.fill=Cr),f.add(s[pt]=pn);var Nr=R.getModel("textStyle");t.add(c[pt]=new Tp({silent:!0,invisible:!0,style:Cv(Nr,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:Nr.getTextColor(),font:Nr.getFont()}),z2:10}))},this);var ie=q;if(Y){var ge=It(R.get("moveHandleSize"),T[1]),Oe=r.moveHandle=new jd({style:R.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:T[1]-.5,height:ge}}),Ne=ge*.8,He=r.moveHandleIcon=ad(R.get("moveHandleIcon"),-Ne/2,-Ne/2,Ne,Ne,"#fff",!0);He.silent=!0,He.y=T[1]+ge/2-.5,Oe.ensureState("emphasis").style=R.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var st=Math.min(T[1]/2,Math.max(ge,10));ie=r.moveZone=new jd({invisible:!0,shape:{y:T[1]-st,height:ge+st}}),ie.on("mouseover",function(){I.enterEmphasis(Oe)}).on("mouseout",function(){I.leaveEmphasis(Oe)}),f.add(Oe),f.add(He),f.add(ie)}ie.attr({draggable:!0,cursor:n$(this._orient),drift:Xa(this._onDragMove,this,"all"),ondragstart:Xa(this._showDataInfo,this,!0),ondragend:Xa(this._onDragEnd,this),onmouseover:Xa(this._showDataInfo,this,!0),onmouseout:Xa(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[yt(t[0],[0,100],r,!0),yt(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var s=this.dataZoomModel,c=this._handleEnds,f=this._getViewExtent(),T=s.findRepresentativeAxisProxy().getMinMaxSpan(),R=[0,100];uC(r,c,f,s.get("zoomLock")?"all":t,T.minSpan!=null?yt(T.minSpan,R,f,!0):null,T.maxSpan!=null?yt(T.maxSpan,R,f,!0):null);var I=this._range,B=this._range=In([yt(c[0],f,R,!0),yt(c[1],f,R,!0)]);return!I||I[0]!==B[0]||I[1]!==B[1]},e.prototype._updateView=function(t){var r=this._displayables,s=this._handleEnds,c=In(s.slice()),f=this._size;At([0,1],function(ie){var ge=r.handles[ie],Oe=this._handleHeight;ge.attr({scaleX:Oe/2,scaleY:Oe/2,x:s[ie]+(ie?-1:1),y:f[1]/2-Oe/2})},this),r.filler.setShape({x:c[0],y:0,width:c[1]-c[0],height:f[1]});var T={x:c[0],width:c[1]-c[0]};r.moveHandle&&(r.moveHandle.setShape(T),r.moveZone.setShape(T),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",T.x+T.width/2));for(var R=r.dataShadowSegs,I=[0,c[0],c[1],f[0]],B=0;B<R.length;B++){var Y=R[B],q=Y.getClipPath();q||(q=new jd,Y.setClipPath(q)),q.setShape({x:I[B],y:0,width:I[B+1]-I[B],height:f[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var r=this.dataZoomModel,s=this._displayables,c=s.handleLabels,f=this._orient,T=["",""];if(r.get("showDetail")){var R=r.findRepresentativeAxisProxy();if(R){var I=R.getAxisModel().axis,B=this._range,Y=t?R.calculateDataWindow({start:B[0],end:B[1]}).valueWindow:R.getDataValueWindow();T=[this._formatLabel(Y[0],I),this._formatLabel(Y[1],I)]}}var q=In(this._handleEnds.slice());ie.call(this,0),ie.call(this,1);function ie(ge){var Oe=vb(s.handles[ge].parent,this.group),Ne=Yu(ge===0?"right":"left",Oe),He=this._handleWidth/2+Oee,st=zd([q[ge]+(ge===0?-He:He),this._size[1]/2],Oe);c[ge].setStyle({x:st[0],y:st[1],verticalAlign:f===A4?"middle":Ne,align:f===A4?Ne:"center",text:T[ge]})}},e.prototype._formatLabel=function(t,r){var s=this.dataZoomModel,c=s.get("labelFormatter"),f=s.get("labelPrecision");(f==null||f==="auto")&&(f=r.getPixelPrecision());var T=t==null||isNaN(t)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(f,20));return ja(c)?c(t,T):ei(c)?c.replace("{value}",T):T},e.prototype._showDataInfo=function(t){t=this._dragging||t;var r=this._displayables,s=r.handleLabels;s[0].attr("invisible",!t),s[1].attr("invisible",!t),r.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onDragMove=function(t,r,s,c){this._dragging=!0,sl(c.event);var f=this._displayables.sliderGroup.getLocalTransform(),T=zd([r,s],f,!0),R=this._updateInterval(t,T[0]),I=this.dataZoomModel.get("realtime");this._updateView(!I),R&&I&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var r=this._size,s=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(s[0]<0||s[0]>r[0]||s[1]<0||s[1]>r[1])){var c=this._handleEnds,f=(c[0]+c[1])/2,T=this._updateInterval("all",s[0]-f);this._updateView(),T&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,s=t.offsetY;this._brushStart=new $c(r,s),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(!!this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var s=r.shape,c=+new Date;if(!(c-this._brushStartTime<200&&Math.abs(s.width)<5)){var f=this._getViewExtent(),T=[0,100];this._range=In([yt(s.x,f,T,!0),yt(s.x+s.width,f,T,!0)]),this._handleEnds=[s.x,s.x+s.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(sl(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var s=this._displayables,c=this.dataZoomModel,f=s.brushRect;f||(f=s.brushRect=new T4({silent:!0,style:c.getModel("brushStyle").getItemStyle()}),s.sliderGroup.add(f)),f.attr("ignore",!1);var T=this._brushStart,R=this._displayables.sliderGroup,I=R.transformCoordToLocal(t,r),B=R.transformCoordToLocal(T.x,T.y),Y=this._size;I[0]=Math.max(Math.min(Y[0],I[0]),0),f.setShape({x:B[0],y:0,width:I[0]-B[0],height:Y[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Dee:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=$H(this.dataZoomModel).infoList;if(!t&&r.length){var s=r[0].model.coordinateSystem;t=s.getRect&&s.getRect()}if(!t){var c=this.api.getWidth(),f=this.api.getHeight();t={x:c*.2,y:f*.2,width:c*.6,height:f*.6}}return t},e.type="dataZoom.slider",e}($V);function Lee(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function n$(n){return n==="vertical"?"ns-resize":"ew-resize"}var Fee=Nee;function r$(n){n.registerComponentModel(kee),n.registerComponentView(Fee),KV(n)}function jee(n){Ud(qG),Ud(r$)}var Bee={get:function(n,e,t){var r=Kr((Uee[n]||{})[e]);return t&&La(r)?r[r.length-1]:r}},Uee={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},a$=Bee,i$=Yg.mapVisual,Zee=Yg.eachVisual,Vee=La,o$=At,zee=In,Wee=yt,Hee=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-Infinity,Infinity],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,s){this.mergeDefaultAndTheme(t,s)},e.prototype.optionUpdated=function(t,r){var s=this.option;!r&&SG(s,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=Xa(t,this),this.controllerVisuals=rz(this.option.controller,r,t),this.targetVisuals=rz(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(s,c){r.push(c)}):r=Bf(t),r},e.prototype.eachTargetSeries=function(t,r){At(this.getTargetSeriesIndices(),function(s){var c=this.ecModel.getSeriesByIndex(s);c&&t.call(r,c)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(s){s===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,s){var c=this.option,f=c.precision,T=this.dataBound,R=c.formatter,I;s=s||["<",">"],La(t)&&(t=t.slice(),I=!0);var B=r?t:I?[Y(t[0]),Y(t[1])]:Y(t);if(ei(R))return R.replace("{value}",I?B[0]:B).replace("{value2}",I?B[1]:B);if(ja(R))return I?R(t[0],t[1]):R(t);if(I)return t[0]===T[0]?s[0]+" "+B[1]:t[1]===T[1]?s[1]+" "+B[0]:B[0]+" - "+B[1];return B;function Y(q){return q===T[0]?"min":q===T[1]?"max":(+q).toFixed(Math.min(f,20))}},e.prototype.resetExtent=function(){var t=this.option,r=zee([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var s=t.dimensions,c=s.length-1;c>=0;c--){var f=s[c],T=t.getDimensionInfo(f);if(!T.isCalculationCoord)return T.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,s={inRange:r.inRange,outOfRange:r.outOfRange},c=r.target||(r.target={}),f=r.controller||(r.controller={});ba(c,s),ba(f,s);var T=this.isCategory();R.call(this,c),R.call(this,f),I.call(this,c,"inRange","outOfRange"),B.call(this,f);function R(Y){Vee(r.color)&&!Y.inRange&&(Y.inRange={color:r.color.slice().reverse()}),Y.inRange=Y.inRange||{color:t.get("gradientColor")}}function I(Y,q,ie){var ge=Y[q],Oe=Y[ie];ge&&!Oe&&(Oe=Y[ie]={},o$(ge,function(Ne,He){if(!!Yg.isValidType(He)){var st=a$.get(He,"inactive",T);st!=null&&(Oe[He]=st,He==="color"&&!Oe.hasOwnProperty("opacity")&&!Oe.hasOwnProperty("colorAlpha")&&(Oe.opacity=[0,0]))}}))}function B(Y){var q=(Y.inRange||{}).symbol||(Y.outOfRange||{}).symbol,ie=(Y.inRange||{}).symbolSize||(Y.outOfRange||{}).symbolSize,ge=this.get("inactiveColor"),Oe=this.getItemSymbol(),Ne=Oe||"roundRect";o$(this.stateList,function(He){var st=this.itemSize,pt=Y[He];pt||(pt=Y[He]={color:T?ge:[ge]}),pt.symbol==null&&(pt.symbol=q&&Kr(q)||(T?Ne:[Ne])),pt.symbolSize==null&&(pt.symbolSize=ie&&Kr(ie)||(T?st[0]:[st[0],st[0]])),pt.symbol=i$(pt.symbol,function(yn){return yn==="none"?Ne:yn});var Ut=pt.symbolSize;if(Ut!=null){var pn=-Infinity;Zee(Ut,function(yn){yn>pn&&(pn=yn)}),pt.symbolSize=i$(Ut,function(yn){return Wee(yn,[0,pn],[0,st[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Mp),xF=Hee,s$=[20,140],Gee=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(s){s.mappingMethod="linear",s.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=s$[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=s$[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):La(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),At(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=In((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]<t[0]&&(r[0]=t[0]),r[1]<t[0]&&(r[1]=t[0]),r},e.prototype.getValueState=function(t){var r=this.option.range,s=this.getExtent();return(r[0]<=s[0]||r[0]<=t)&&(r[1]>=s[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(s){var c=[],f=s.getData();f.each(this.getDataDimensionIndex(f),function(T,R){t[0]<=T&&T<=t[1]&&c.push(R)},this),r.push({seriesId:s.id,dataIndex:c})},this),r},e.prototype.getVisualMeta=function(t){var r=l$(this,"outOfRange",this.getExtent()),s=l$(this,"inRange",this.option.range.slice()),c=[];function f(ie,ge){c.push({value:ie,color:t(ie,ge)})}for(var T=0,R=0,I=s.length,B=r.length;R<B&&(!s.length||r[R]<=s[0]);R++)r[R]<s[T]&&f(r[R],"outOfRange");for(var Y=1;T<I;T++,Y=0)Y&&c.length&&f(s[T],"outOfRange"),f(s[T],"inRange");for(var Y=1;R<B;R++)(!s.length||s[s.length-1]<r[R])&&(Y&&(c.length&&f(c[c.length-1].value,"outOfRange"),Y=0),f(r[R],"outOfRange"));var q=c.length;return{stops:c,outerColors:[q?c[0].color:"transparent",q?c[q-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=U0(xF.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(xF);function l$(n,e,t){if(t[0]===t[1])return t.slice();for(var r=200,s=(t[1]-t[0])/r,c=t[0],f=[],T=0;T<=r&&c<t[1];T++)f.push(c),c+=s;return f.push(t[1]),f}var $ee=Gee,Kee=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r},e.prototype.render=function(t,r,s,c){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,r,s,c)},e.prototype.renderBackground=function(t){var r=this.visualMapModel,s=Z0(r.get("padding")||0),c=t.getBoundingRect();t.add(new jd({z2:-1,silent:!0,shape:{x:c.x-s[3],y:c.y-s[0],width:c.width+s[3]+s[1],height:c.height+s[0]+s[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,r,s){s=s||{};var c=s.forceState,f=this.visualMapModel,T={};if(r==="color"){var R=f.get("contentColor");T.color=R}function I(ie){return T[ie]}function B(ie,ge){T[ie]=ge}var Y=f.controllerVisuals[c||f.getValueState(t)],q=Yg.prepareVisualTypes(Y);return At(q,function(ie){var ge=Y[ie];s.convertOpacityToAlpha&&ie==="opacity"&&(ie="colorAlpha",ge=Y.__alphaForOpacity),Yg.dependsOn(ie,r)&&ge&&ge.applyVisual(t,I,B)}),T[r]},e.prototype.positionGroup=function(t){var r=this.visualMapModel,s=this.api;XC(t,r.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()})},e.prototype.doRender=function(t,r,s,c){},e.type="visualMap",e}(Eh),c$=Kee,u$=[["left","right","width"],["top","bottom","height"]];function f$(n,e,t){var r=n.option,s=r.align;if(s!=null&&s!=="auto")return s;for(var c={width:e.getWidth(),height:e.getHeight()},f=r.orient==="horizontal"?1:0,T=u$[f],R=[0,null,10],I={},B=0;B<3;B++)I[u$[1-f][B]]=R[B],I[T[B]]=B===2?t[0]:r[T[B]];var Y=[["x","width",3],["y","height",0]][f],q=mm(I,c,r.padding);return T[(q.margin[Y[2]]||0)+q[Y[0]]+q[Y[1]]*.5<c[Y[1]]*.5?0:1]}function EF(n,e){return At(n||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),n}var dE=yt,Yee=At,d$=Math.min,Cz=Math.max,Xee=12,Jee=6,Qee=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.doRender=function(t,r,s,c){this._api=s,(!c||c.type!=="selectDataRange"||c.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,r=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(r);var s=t.get("text");this._renderEndsText(r,s,0),this._renderEndsText(r,s,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},e.prototype._renderEndsText=function(t,r,s){if(!!r){var c=r[1-s];c=c!=null?c+"":"";var f=this.visualMapModel,T=f.get("textGap"),R=f.itemSize,I=this._shapes.mainGroup,B=this._applyTransform([R[0]/2,s===0?-T:R[1]+T],I),Y=this._applyTransform(s===0?"bottom":"top",I),q=this._orient,ie=this.visualMapModel.textStyleModel;this.group.add(new Tp({style:Cv(ie,{x:B[0],y:B[1],verticalAlign:q==="horizontal"?"middle":Y,align:q==="horizontal"?Y:"center",text:c})}))}},e.prototype._renderBar=function(t){var r=this.visualMapModel,s=this._shapes,c=r.itemSize,f=this._orient,T=this._useHandle,R=f$(r,this.api,c),I=s.mainGroup=this._createBarGroup(R),B=new Qi;I.add(B),B.add(s.outOfRange=p$()),B.add(s.inRange=p$(null,T?h$(this._orient):null,Xa(this._dragHandle,this,"all",!1),Xa(this._dragHandle,this,"all",!0))),B.setClipPath(new jd({shape:{x:0,y:0,width:c[0],height:c[1],r:3}}));var Y=r.textStyleModel.getTextRect("\u56FD"),q=Cz(Y.width,Y.height);T&&(s.handleThumbs=[],s.handleLabels=[],s.handleLabelPoints=[],this._createHandle(r,I,0,c,q,f),this._createHandle(r,I,1,c,q,f)),this._createIndicator(r,I,c,q,f),t.add(I)},e.prototype._createHandle=function(t,r,s,c,f,T){var R=Xa(this._dragHandle,this,s,!1),I=Xa(this._dragHandle,this,s,!0),B=ch(t.get("handleSize"),c[0]),Y=ad(t.get("handleIcon"),-B/2,-B/2,B,B,null,!0),q=h$(this._orient);Y.attr({cursor:q,draggable:!0,drift:R,ondragend:I,onmousemove:function(He){sl(He.event)}}),Y.x=c[0]/2,Y.useStyle(t.getModel("handleStyle").getItemStyle()),Y.setStyle({strokeNoScale:!0,strokeFirst:!0}),Y.style.lineWidth*=2,Y.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),uy(Y,!0),r.add(Y);var ie=this.visualMapModel.textStyleModel,ge=new Tp({cursor:q,draggable:!0,drift:R,onmousemove:function(He){sl(He.event)},ondragend:I,style:Cv(ie,{x:0,y:0,text:""})});ge.ensureState("blur").style={opacity:.1},ge.stateTransition={duration:200},this.group.add(ge);var Oe=[B,0],Ne=this._shapes;Ne.handleThumbs[s]=Y,Ne.handleLabelPoints[s]=Oe,Ne.handleLabels[s]=ge},e.prototype._createIndicator=function(t,r,s,c,f){var T=ch(t.get("indicatorSize"),s[0]),R=ad(t.get("indicatorIcon"),-T/2,-T/2,T,T,null,!0);R.attr({cursor:"move",invisible:!0,silent:!0,x:s[0]/2});var I=t.getModel("indicatorStyle").getItemStyle();if(R instanceof wp){var B=R.style;R.useStyle(Ea({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},I))}else R.useStyle(I);r.add(R);var Y=this.visualMapModel.textStyleModel,q=new Tp({silent:!0,invisible:!0,style:Cv(Y,{x:0,y:0,text:""})});this.group.add(q);var ie=[(f==="horizontal"?c/2:Jee)+s[0]/2,0],ge=this._shapes;ge.indicator=R,ge.indicatorLabel=q,ge.indicatorLabelPoint=ie,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,r,s,c){if(!!this._useHandle){if(this._dragging=!r,!r){var f=this._applyTransform([s,c],this._shapes.mainGroup,!0);this._updateInterval(t,f[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():v$(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,r=this._dataInterval=t.getSelected(),s=t.getExtent(),c=[0,t.itemSize[1]];this._handleEnds=[dE(r[0],s,c,!0),dE(r[1],s,c,!0)]},e.prototype._updateInterval=function(t,r){r=r||0;var s=this.visualMapModel,c=this._handleEnds,f=[0,s.itemSize[1]];uC(r,c,f,t,0);var T=s.getExtent();this._dataInterval=[dE(c[0],f,T,!0),dE(c[1],f,T,!0)]},e.prototype._updateView=function(t){var r=this.visualMapModel,s=r.getExtent(),c=this._shapes,f=[0,r.itemSize[1]],T=t?f:this._handleEnds,R=this._createBarVisual(this._dataInterval,s,T,"inRange"),I=this._createBarVisual(s,s,f,"outOfRange");c.inRange.setStyle({fill:R.barColor}).setShape("points",R.barPoints),c.outOfRange.setStyle({fill:I.barColor}).setShape("points",I.barPoints),this._updateHandle(T,R)},e.prototype._createBarVisual=function(t,r,s,c){var f={forceState:c,convertOpacityToAlpha:!0},T=this._makeColorGradient(t,f),R=[this.getControllerVisual(t[0],"symbolSize",f),this.getControllerVisual(t[1],"symbolSize",f)],I=this._createBarPoints(s,R);return{barColor:new pb(0,0,0,1,T),barPoints:I,handlesColor:[T[0].color,T[T.length-1].color]}},e.prototype._makeColorGradient=function(t,r){var s=100,c=[],f=(t[1]-t[0])/s;c.push({color:this.getControllerVisual(t[0],"color",r),offset:0});for(var T=1;T<s;T++){var R=t[0]+f*T;if(R>t[1])break;c.push({color:this.getControllerVisual(R,"color",r),offset:T/s})}return c.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),c},e.prototype._createBarPoints=function(t,r){var s=this.visualMapModel.itemSize;return[[s[0]-r[0],t[0]],[s[0],t[0]],[s[0],t[1]],[s[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,s=this.visualMapModel.get("inverse");return new Qi(r==="horizontal"&&!s?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&s?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!s?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(!!this._useHandle){var s=this._shapes,c=this.visualMapModel,f=s.handleThumbs,T=s.handleLabels,R=c.itemSize,I=c.getExtent();Yee([0,1],function(B){var Y=f[B];Y.setStyle("fill",r.handlesColor[B]),Y.y=t[B];var q=dE(t[B],[0,R[1]],I,!0),ie=this.getControllerVisual(q,"symbolSize");Y.scaleX=Y.scaleY=ie/R[0],Y.x=R[0]-ie/2;var ge=zd(s.handleLabelPoints[B],vb(Y,this.group));T[B].setStyle({x:ge[0],y:ge[1],text:c.formatValueText(this._dataInterval[B]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",s.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,s,c){var f=this.visualMapModel,T=f.getExtent(),R=f.itemSize,I=[0,R[1]],B=this._shapes,Y=B.indicator;if(!!Y){Y.attr("invisible",!1);var q={convertOpacityToAlpha:!0},ie=this.getControllerVisual(t,"color",q),ge=this.getControllerVisual(t,"symbolSize"),Oe=dE(t,T,I,!0),Ne=R[0]-ge/2,He={x:Y.x,y:Y.y};Y.y=Oe,Y.x=Ne;var st=zd(B.indicatorLabelPoint,vb(Y,this.group)),pt=B.indicatorLabel;pt.attr("invisible",!1);var Ut=this._applyTransform("left",B.mainGroup),pn=this._orient,yn=pn==="horizontal";pt.setStyle({text:(s||"")+f.formatValueText(r),verticalAlign:yn?Ut:"middle",align:yn?"center":Ut});var jn={x:Ne,y:Oe,style:{fill:ie}},Cr={style:{x:st[0],y:st[1]}};if(f.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var Nr={duration:100,easing:"cubicInOut",additive:!0};Y.x=He.x,Y.y=He.y,Y.animateTo(jn,Nr),pt.animateTo(Cr,Nr)}else Y.attr(jn),pt.attr(Cr);this._firstShowIndicator=!1;var Rr=this._shapes.handleLabels;if(Rr)for(var Er=0;Er<Rr.length;Er++)this._api.enterBlur(Rr[Er])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(r){if(t._hovering=!0,!t._dragging){var s=t.visualMapModel.itemSize,c=t._applyTransform([r.offsetX,r.offsetY],t._shapes.mainGroup,!0,!0);c[1]=d$(Cz(0,c[1]),s[1]),t._doHoverLinkToSeries(c[1],0<=c[0]&&c[0]<=s[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,r){var s=this.visualMapModel,c=s.itemSize;if(!!s.option.hoverLink){var f=[0,c[1]],T=s.getExtent();t=d$(Cz(f[0],t),f[1]);var R=qee(s,T,f),I=[t-R,t+R],B=dE(t,f,T,!0),Y=[dE(I[0],f,T,!0),dE(I[1],f,T,!0)];I[0]<f[0]&&(Y[0]=-Infinity),I[1]>f[1]&&(Y[1]=Infinity),r&&(Y[0]===-Infinity?this._showIndicator(B,Y[1],"< ",R):Y[1]===Infinity?this._showIndicator(B,Y[0],"> ",R):this._showIndicator(B,B,"\u2248 ",R));var q=this._hoverLinkDataIndices,ie=[];(r||v$(s))&&(ie=this._hoverLinkDataIndices=s.findTargetDataIndices(Y));var ge=Zi(q,ie);this._dispatchHighDown("downplay",EF(ge[0],s)),this._dispatchHighDown("highlight",EF(ge[1],s))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(Ks(t.target,function(R){var I=nu(R);if(I.dataIndex!=null)return r=I,!0},!0),!!r){var s=this.ecModel.getSeriesByIndex(r.seriesIndex),c=this.visualMapModel;if(!!c.isTargetSeries(s)){var f=s.getData(r.dataType),T=f.getStore().get(c.getDataDimensionIndex(f),r.dataIndex);isNaN(T)||this._showIndicator(T,T)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var s=0;s<r.length;s++)this._api.leaveBlur(r[s])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",EF(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,r,s,c){var f=vb(r,c?null:this.group);return La(t)?zd(t,f,s):Yu(t,f,s)},e.prototype._dispatchHighDown=function(t,r){r&&r.length&&this.api.dispatchAction({type:t,batch:r})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(c$);function p$(n,e,t,r){return new tg({shape:{points:n},draggable:!!t,cursor:e,drift:t,onmousemove:function(s){sl(s.event)},ondragend:r})}function qee(n,e,t){var r=Xee/2,s=n.get("hoverLinkDataSize");return s&&(r=dE(s,e,t,!0)/2),r}function v$(n){var e=n.get("hoverLinkOnHandle");return!!(e==null?n.get("realtime"):e)}function h$(n){return n==="vertical"?"ns-resize":"ew-resize"}var ete=Qee,tte={type:"selectDataRange",event:"dataRangeSelected",update:"update"},nte=function(n,e){e.eachComponent({mainType:"visualMap",query:n},function(t){t.setSelected(n.selected)})},rte=[{createOnAllSeries:!0,reset:function(n,e){var t=[];return e.eachComponent("visualMap",function(r){var s=n.pipelineContext;!r.isTargetSeries(n)||s&&s.large||t.push(JQ(r.stateList,r.targetVisuals,Xa(r.getValueState,r),r.getDataDimensionIndex(n.getData())))}),t}},{createOnAllSeries:!0,reset:function(n,e){var t=n.getData(),r=[];e.eachComponent("visualMap",function(s){if(s.isTargetSeries(n)){var c=s.getVisualMeta(Xa(ate,null,n,s))||{stops:[],outerColors:[]},f=s.getDataDimensionIndex(t);f>=0&&(c.dimension=f,r.push(c))}}),n.getData().setVisual("visualMeta",r)}}];function ate(n,e,t,r){for(var s=e.targetVisuals[r],c=Yg.prepareVisualTypes(s),f={color:_c(n.getData(),"color")},T=0,R=c.length;T<R;T++){var I=c[T],B=s[I==="opacity"?"__alphaForOpacity":I];B&&B.applyVisual(t,Y,q)}return f.color;function Y(ie){return f[ie]}function q(ie,ge){f[ie]=ge}}var m$=At;function ite(n){var e=n&&n.visualMap;La(e)||(e=e?[e]:[]),m$(e,function(t){if(!!t){aO(t,"splitList")&&!aO(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var r=t.pieces;r&&La(r)&&m$(r,function(s){to(s)&&(aO(s,"start")&&!aO(s,"min")&&(s.min=s.start),aO(s,"end")&&!aO(s,"max")&&(s.max=s.end))})}})}function aO(n,e){return n&&n.hasOwnProperty&&n.hasOwnProperty(e)}var g$=!1;function _$(n){g$||(g$=!0,n.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(tte,nte),At(rte,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(ite))}function y$(n){n.registerComponentModel($ee),n.registerComponentView(ete),_$(n)}var ote=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var s=this._mode=this._determineMode();this._pieceList=[],ste[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var c=this.option.categories;this.resetVisual(function(f,T){s==="categories"?(f.mappingMethod="category",f.categories=Kr(c)):(f.dataExtent=this.getExtent(),f.mappingMethod="piecewise",f.pieceList=ar(this._pieceList,function(R){return R=Kr(R),T!=="inRange"&&(R.visual=null),R}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},s=Yg.listVisualTypes(),c=this.isCategory();At(t.pieces,function(T){At(s,function(R){T.hasOwnProperty(R)&&(r[R]=1)})}),At(r,function(T,R){var I=!1;At(this.stateList,function(B){I=I||f(t,B,R)||f(t.target,B,R)},this),!I&&At(this.stateList,function(B){(t[B]||(t[B]={}))[R]=a$.get(R,B==="inRange"?"active":"inactive",c)})},this);function f(T,R,I){return T&&T[R]&&T[R].hasOwnProperty(I)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var s=this.option,c=this._pieceList,f=(r?s:t).selected||{};if(s.selected=f,At(c,function(R,I){var B=this.getSelectedMapKey(R);f.hasOwnProperty(B)||(f[B]=!0)},this),s.selectedMode==="single"){var T=!1;At(c,function(R,I){var B=this.getSelectedMapKey(R);f[B]&&(T?f[B]=!1:T=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Kr(t)},e.prototype.getValueState=function(t){var r=Yg.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],s=this._pieceList;return this.eachTargetSeries(function(c){var f=[],T=c.getData();T.each(this.getDataDimensionIndex(T),function(R,I){var B=Yg.findPieceIndex(R,s);B===t&&f.push(I)},this),r.push({seriesId:c.id,dataIndex:f})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var s=t.interval||[];r=s[0]===-Infinity&&s[1]===Infinity?0:(s[0]+s[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],s=["",""],c=this;function f(B,Y){var q=c.getRepresentValue({interval:B});Y||(Y=c.getValueState(q));var ie=t(q,Y);B[0]===-Infinity?s[0]=ie:B[1]===Infinity?s[1]=ie:r.push({value:B[0],color:ie},{value:B[1],color:ie})}var T=this._pieceList.slice();if(!T.length)T.push({interval:[-Infinity,Infinity]});else{var R=T[0].interval[0];R!==-Infinity&&T.unshift({interval:[-Infinity,R]}),R=T[T.length-1].interval[1],R!==Infinity&&T.push({interval:[R,Infinity]})}var I=-Infinity;return At(T,function(B){var Y=B.interval;Y&&(Y[0]>I&&f([I,Y[0]],"outOfRange"),f(Y.slice()),I=Y[1])},this),{stops:r,outerColors:s}},e.type="visualMap.piecewise",e.defaultOption=U0(xF.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(xF),ste={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),s=e.splitNumber;s=Math.max(parseInt(s,10),1),e.splitNumber=s;for(var c=(r[1]-r[0])/s;+c.toFixed(t)!==c&&t<5;)t++;e.precision=t,c=+c.toFixed(t),e.minOpen&&n.push({interval:[-Infinity,r[0]],close:[0,0]});for(var f=0,T=r[0];f<s;T+=c,f++){var R=f===s-1?r[1]:T+c;n.push({interval:[T,R],close:[1,1]})}e.maxOpen&&n.push({interval:[r[1],Infinity],close:[0,0]}),Ef(n),At(n,function(I,B){I.index=B,I.text=this.formatValueText(I.interval)},this)},categories:function(n){var e=this.option;At(e.categories,function(t){n.push({text:this.formatValueText(t,!0),value:t})},this),b$(e,n)},pieces:function(n){var e=this.option;At(e.pieces,function(t,r){to(t)||(t={value:t});var s={text:"",index:r};if(t.label!=null&&(s.text=t.label),t.hasOwnProperty("value")){var c=s.value=t.value;s.interval=[c,c],s.close=[1,1]}else{for(var f=s.interval=[],T=s.close=[0,0],R=[1,0,1],I=[-Infinity,Infinity],B=[],Y=0;Y<2;Y++){for(var q=[["gte","gt","min"],["lte","lt","max"]][Y],ie=0;ie<3&&f[Y]==null;ie++)f[Y]=t[q[ie]],T[Y]=R[ie],B[Y]=ie===2;f[Y]==null&&(f[Y]=I[Y])}B[0]&&f[1]===Infinity&&(T[0]=0),B[1]&&f[0]===-Infinity&&(T[1]=0),f[0]===f[1]&&T[0]&&T[1]&&(s.value=f[0])}s.visual=Yg.retrieveVisuals(t),n.push(s)},this),b$(e,n),Ef(n),At(n,function(t){var r=t.close,s=[["<","\u2264"][r[1]],[">","\u2265"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,s)},this)}};function b$(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}var lte=ote,cte=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,s=r.get("textGap"),c=r.textStyleModel,f=c.getFont(),T=c.getTextColor(),R=this._getItemAlign(),I=r.itemSize,B=this._getViewData(),Y=B.endsText,q=nn(r.get("showLabel",!0),!Y);Y&&this._renderEndsText(t,Y[0],I,q,R),At(B.viewPieceList,function(ie){var ge=ie.piece,Oe=new Qi;Oe.onclick=Xa(this._onItemClick,this,ge),this._enableHoverLink(Oe,ie.indexInModelPieceList);var Ne=r.getRepresentValue(ge);if(this._createItemSymbol(Oe,Ne,[0,0,I[0],I[1]]),q){var He=this.visualMapModel.getValueState(Ne);Oe.add(new Tp({style:{x:R==="right"?-s:I[0]+s,y:I[1]/2,text:ge.text,verticalAlign:"middle",align:R,font:f,fill:T,opacity:He==="outOfRange"?.5:1}}))}t.add(Oe)},this),Y&&this._renderEndsText(t,Y[1],I,q,R),q1(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var s=this;t.on("mouseover",function(){return c("highlight")}).on("mouseout",function(){return c("downplay")});var c=function(f){var T=s.visualMapModel;T.option.hoverLink&&s.api.dispatchAction({type:f,batch:EF(T.findTargetDataIndices(r),T)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return f$(t,this.api,t.itemSize);var s=r.align;return(!s||s==="auto")&&(s="left"),s},e.prototype._renderEndsText=function(t,r,s,c,f){if(!!r){var T=new Qi,R=this.visualMapModel.textStyleModel;T.add(new Tp({style:Cv(R,{x:c?f==="right"?s[0]:0:s[0]/2,y:s[1]/2,verticalAlign:"middle",align:c?f:"center",text:r})})),t.add(T)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=ar(t.getPieceList(),function(T,R){return{piece:T,indexInModelPieceList:R}}),s=t.get("text"),c=t.get("orient"),f=t.get("inverse");return(c==="horizontal"?f:!f)?r.reverse():s&&(s=s.slice().reverse()),{viewPieceList:r,endsText:s}},e.prototype._createItemSymbol=function(t,r,s){t.add(ad(this.getControllerVisual(r,"symbol"),s[0],s[1],s[2],s[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,s=r.option,c=s.selectedMode;if(!!c){var f=Kr(s.selected),T=r.getSelectedMapKey(t);c==="single"||c===!0?(f[T]=!0,At(f,function(R,I){f[I]=I===T})):f[T]=!f[T],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:f})}},e.type="visualMap.piecewise",e}(c$),ute=cte;function x$(n){n.registerComponentModel(lte),n.registerComponentView(ute),_$(n)}function fte(n){Ud(y$),Ud(x$)}var dte={label:{enabled:!0},decal:{show:!1}},E$=Bi(),pte={};function vte(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Kr(dte);ba(r.label,n.getLocaleModel().get("aria"),!1),ba(t.option,r,!1),s(),c();function s(){var I=t.getModel("decal"),B=I.get("show");if(B){var Y=Za();n.eachSeries(function(q){if(!q.isColorBySeries()){var ie=Y.get(q.type);ie||(ie={},Y.set(q.type,ie)),E$(q).scope=ie}}),n.eachRawSeries(function(q){if(n.isSeriesFiltered(q))return;if(ja(q.enableAriaDecal)){q.enableAriaDecal();return}var ie=q.getData();if(q.isColorBySeries()){var st=TT(q.ecModel,q.name,pte,n.getSeriesCount()),pt=ie.getVisual("decal");ie.setVisual("decal",Ut(pt,st))}else{var ge=q.getRawData(),Oe={},Ne=E$(q).scope;ie.each(function(pn){var yn=ie.getRawIndex(pn);Oe[yn]=pn});var He=ge.count();ge.each(function(pn){var yn=Oe[pn],jn=ge.getName(pn)||pn+"",Cr=TT(q.ecModel,jn,Ne,He),Nr=ie.getItemVisual(yn,"decal");ie.setItemVisual(yn,"decal",Ut(Nr,Cr))})}function Ut(pn,yn){var jn=pn?Ea(Ea({},yn),pn):yn;return jn.dirty=!0,jn}})}}function c(){var I=n.getLocaleModel().get("aria"),B=t.getModel("label");if(B.option=Pi(B.option,I),!!B.get("enabled")){var Y=e.getZr().dom;if(B.get("description")){Y.setAttribute("aria-label",B.get("description"));return}var q=n.getSeriesCount(),ie=B.get(["data","maxCount"])||10,ge=B.get(["series","maxCount"])||10,Oe=Math.min(q,ge),Ne;if(!(q<1)){var He=T();if(He){var st=B.get(["general","withTitle"]);Ne=f(st,{title:He})}else Ne=B.get(["general","withoutTitle"]);var pt=[],Ut=q>1?B.get(["series","multiple","prefix"]):B.get(["series","single","prefix"]);Ne+=f(Ut,{seriesCount:q}),n.eachSeries(function(Cr,Nr){if(Nr<Oe){var Rr=void 0,Er=Cr.get("name"),ma=Er?"withName":"withoutName";Rr=q>1?B.get(["series","multiple",ma]):B.get(["series","single",ma]),Rr=f(Rr,{seriesId:Cr.seriesIndex,seriesName:Cr.get("name"),seriesType:R(Cr.subType)});var wa=Cr.getData();if(wa.count()>ie){var Ga=B.get(["data","partialData"]);Rr+=f(Ga,{displayCnt:ie})}else Rr+=B.get(["data","allData"]);for(var Ei=B.get(["data","separator","middle"]),Vi=B.get(["data","separator","end"]),ns=[],zo=0;zo<wa.count();zo++)if(zo<ie){var xs=wa.getName(zo),pl=wa.getValues(zo),Rl=B.get(["data",xs?"withName":"withoutName"]);ns.push(f(Rl,{name:xs,value:pl.join(Ei)}))}Rr+=ns.join(Ei)+Vi,pt.push(Rr)}});var pn=B.getModel(["series","multiple","separator"]),yn=pn.get("middle"),jn=pn.get("end");Ne+=pt.join(yn)+jn,Y.setAttribute("aria-label",Ne)}}}function f(I,B){if(!ei(I))return I;var Y=I;return At(B,function(q,ie){Y=Y.replace(new RegExp("\\{\\s*"+ie+"\\s*\\}","g"),q)}),Y}function T(){var I=n.get("title");return I&&I.length&&(I=I[0]),I&&I.text}function R(I){return n.getLocaleModel().get(["series","typeNames"])[I]||"\u81EA\u5B9A\u4E49\u56FE"}}function hte(n){if(!(!n||!n.aria)){var e=n.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},At(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function mte(n){n.registerPreprocessor(hte),n.registerVisual(n.PRIORITY.VISUAL.ARIA,vte)}var S$={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},gte=function(){function n(e){var t=this._condVal=ei(e)?new RegExp(e):Rn(e)?e:null;if(t==null){var r="";Kp(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return ei(t)?this._condVal.test(e):yo(t)?this._condVal.test(e+""):!1},n}(),_te=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),yte=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},n}(),bte=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},n}(),xte=function(){function n(){}return n.prototype.evaluate=function(){return!this.child.evaluate()},n}(),Ete=function(){function n(){}return n.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,r=t(this.valueGetterParam),s=e?this.valueParser(r):null,c=0;c<this.subCondList.length;c++)if(!this.subCondList[c].evaluate(e?s:r))return!1;return!0},n}();function wz(n,e){if(n===!0||n===!1){var t=new _te;return t.value=n,t}var r="";return w$(n)||Kp(r),n.and?C$("and",n,e):n.or?C$("or",n,e):n.not?Ste(n,e):Cte(n,e)}function C$(n,e,t){var r=e[n],s="";La(r)||Kp(s),r.length||Kp(s);var c=n==="and"?new yte:new bte;return c.children=ar(r,function(f){return wz(f,t)}),c.children.length||Kp(s),c}function Ste(n,e){var t=n.not,r="";w$(t)||Kp(r);var s=new xte;return s.child=wz(t,e),s.child||Kp(r),s}function Cte(n,e){for(var t="",r=e.prepareGetValue(n),s=[],c=Ua(n),f=n.parser,T=f?UT(f):null,R=0;R<c.length;R++){var I=c[R];if(!(I==="parser"||e.valueGetterAttrMap.get(I))){var B=Xi(S$,I)?S$[I]:I,Y=n[I],q=T?T(Y):Y,ie=WO(B,q)||B==="reg"&&new gte(q);ie||Kp(t),s.push(ie)}}s.length||Kp(t);var ge=new Ete;return ge.valueGetterParam=r,ge.valueParser=T,ge.getValue=e.getValue,ge.subCondList=s,ge}function w$(n){return to(n)&&!Pn(n)}var wte=function(){function n(e,t){this._cond=wz(e,t)}return n.prototype.evaluate=function(){return this._cond.evaluate()},n}();function Tte(n,e){return new wte(n,e)}var Ate={type:"echarts:filter",transform:function(n){for(var e=n.upstream,t,r=Tte(n.config,{valueGetterAttrMap:Za({dimension:!0}),prepareGetValue:function(T){var R="",I=T.dimension;Xi(T,"dimension")||Kp(R);var B=e.getDimensionInfo(I);return B||Kp(R),{dimIdx:B.index}},getValue:function(T){return e.retrieveValueFromItem(t,T.dimIdx)}}),s=[],c=0,f=e.count();c<f;c++)t=e.getRawDataItem(c),r.evaluate()&&s.push(t);return{data:s}}},nse="",Mte={type:"echarts:sort",transform:function(n){var e=n.upstream,t=n.config,r="",s=Bf(t);s.length||Kp(r);var c=[];At(s,function(B){var Y=B.dimension,q=B.order,ie=B.parser,ge=B.incomparable;if(Y==null&&Kp(r),q!=="asc"&&q!=="desc"&&Kp(r),ge&&ge!=="min"&&ge!=="max"){var Oe="";Kp(Oe)}if(q!=="asc"&&q!=="desc"){var Ne="";Kp(Ne)}var He=e.getDimensionInfo(Y);He||Kp(r);var st=ie?UT(ie):null;ie&&!st&&Kp(r),c.push({dimIdx:He.index,parser:st,comparator:new ZT(q,ge)})});var f=e.sourceFormat;f!==Ah&&f!==j_&&Kp(r);for(var T=[],R=0,I=e.count();R<I;R++)T.push(e.getRawDataItem(R));return T.sort(function(B,Y){for(var q=0;q<c.length;q++){var ie=c[q],ge=e.retrieveValueFromItem(B,ie.dimIdx),Oe=e.retrieveValueFromItem(Y,ie.dimIdx);ie.parser&&(ge=ie.parser(ge),Oe=ie.parser(Oe));var Ne=ie.comparator.evaluate(ge,Oe);if(Ne!==0)return Ne}return 0}),{data:T}}};function kte(n){n.registerTransform(Ate),n.registerTransform(Mte)}var Pte=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,r,s){n.prototype.init.call(this,t,r,s),this._sourceManager=new $T(this),KT(this)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),KT(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Vg},e}(Mp),Rte=function(n){ze(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Eh);function Ote(n){n.registerComponentModel(Pte),n.registerComponentView(Rte)}var pE=f_.CMD;function iO(n,e){return Math.abs(n-e)<1e-5}function Tz(n){var e=n.data,t=n.len(),r=[],s,c=0,f=0,T=0,R=0;function I(wa,Ga){s&&s.length>2&&r.push(s),s=[wa,Ga]}function B(wa,Ga,Ei,Vi){iO(wa,Ei)&&iO(Ga,Vi)||s.push(wa,Ga,Ei,Vi,Ei,Vi)}function Y(wa,Ga,Ei,Vi,ns,zo){var xs=Math.abs(Ga-wa),pl=Math.tan(xs/4)*4/3,Rl=Ga<wa?-1:1,zl=Math.cos(wa),Yc=Math.sin(wa),kc=Math.cos(Ga),tf=Math.sin(Ga),wf=zl*ns+Ei,su=Yc*zo+Vi,ic=kc*ns+Ei,Uc=tf*zo+Vi,bu=ns*pl*Rl,tc=zo*pl*Rl;s.push(wf-bu*Yc,su+tc*zl,ic+bu*tf,Uc-tc*kc,ic,Uc)}for(var q,ie,ge,Oe,Ne=0;Ne<t;){var He=e[Ne++],st=Ne===1;switch(st&&(c=e[Ne],f=e[Ne+1],T=c,R=f,(He===pE.L||He===pE.C||He===pE.Q)&&(s=[T,R])),He){case pE.M:c=T=e[Ne++],f=R=e[Ne++],I(T,R);break;case pE.L:q=e[Ne++],ie=e[Ne++],B(c,f,q,ie),c=q,f=ie;break;case pE.C:s.push(e[Ne++],e[Ne++],e[Ne++],e[Ne++],c=e[Ne++],f=e[Ne++]);break;case pE.Q:q=e[Ne++],ie=e[Ne++],ge=e[Ne++],Oe=e[Ne++],s.push(c+2/3*(q-c),f+2/3*(ie-f),ge+2/3*(q-ge),Oe+2/3*(ie-Oe),ge,Oe),c=ge,f=Oe;break;case pE.A:var pt=e[Ne++],Ut=e[Ne++],pn=e[Ne++],yn=e[Ne++],jn=e[Ne++],Cr=e[Ne++]+jn;Ne+=1;var Nr=!e[Ne++];q=Math.cos(jn)*pn+pt,ie=Math.sin(jn)*yn+Ut,st?(T=q,R=ie,I(T,R)):B(c,f,q,ie),c=Math.cos(Cr)*pn+pt,f=Math.sin(Cr)*yn+Ut;for(var Rr=(Nr?-1:1)*Math.PI/2,Er=jn;Nr?Er>Cr:Er<Cr;Er+=Rr){var ma=Nr?Math.max(Er+Rr,Cr):Math.min(Er+Rr,Cr);Y(Er,ma,pt,Ut,pn,yn)}break;case pE.R:T=c=e[Ne++],R=f=e[Ne++],q=T+e[Ne++],ie=R+e[Ne++],I(q,R),B(q,R,q,ie),B(q,ie,T,ie),B(T,ie,T,R),B(T,R,q,R);break;case pE.Z:s&&B(c,f,T,R),c=T,f=R;break}}return s&&s.length>2&&r.push(s),r}function Az(n,e,t,r,s,c,f,T,R,I){if(iO(n,t)&&iO(e,r)&&iO(s,f)&&iO(c,T)){R.push(f,T);return}var B=2/I,Y=B*B,q=f-n,ie=T-e,ge=Math.sqrt(q*q+ie*ie);q/=ge,ie/=ge;var Oe=t-n,Ne=r-e,He=s-f,st=c-T,pt=Oe*Oe+Ne*Ne,Ut=He*He+st*st;if(pt<Y&&Ut<Y){R.push(f,T);return}var pn=q*Oe+ie*Ne,yn=-q*He-ie*st,jn=pt-pn*pn,Cr=Ut-yn*yn;if(jn<Y&&pn>=0&&Cr<Y&&yn>=0){R.push(f,T);return}var Nr=[],Rr=[];dn(n,t,s,f,.5,Nr),dn(e,r,c,T,.5,Rr),Az(Nr[0],Rr[0],Nr[1],Rr[1],Nr[2],Rr[2],Nr[3],Rr[3],R,I),Az(Nr[4],Rr[4],Nr[5],Rr[5],Nr[6],Rr[6],Nr[7],Rr[7],R,I)}function Ite(n,e){var t=Tz(n),r=[];e=e||1;for(var s=0;s<t.length;s++){var c=t[s],f=[],T=c[0],R=c[1];f.push(T,R);for(var I=2;I<c.length;){var B=c[I++],Y=c[I++],q=c[I++],ie=c[I++],ge=c[I++],Oe=c[I++];Az(T,R,B,Y,q,ie,ge,Oe,f,e),T=ge,R=Oe}r.push(f)}return r}function T$(n,e,t){var r=n[e],s=n[1-e],c=Math.abs(r/s),f=Math.ceil(Math.sqrt(c*t)),T=Math.floor(t/f);T===0&&(T=1,f=t);for(var R=[],I=0;I<f;I++)R.push(T);var B=f*T,Y=t-B;if(Y>0)for(var I=0;I<Y;I++)R[I%f]+=1;return R}function A$(n,e,t){for(var r=n.r0,s=n.r,c=n.startAngle,f=n.endAngle,T=Math.abs(f-c),R=T*s,I=s-r,B=R>Math.abs(I),Y=T$([R,I],B?0:1,e),q=(B?T:I)/Y.length,ie=0;ie<Y.length;ie++)for(var ge=(B?I:T)/Y[ie],Oe=0;Oe<Y[ie];Oe++){var Ne={};B?(Ne.startAngle=c+q*ie,Ne.endAngle=c+q*(ie+1),Ne.r0=r+ge*Oe,Ne.r=r+ge*(Oe+1)):(Ne.startAngle=c+ge*Oe,Ne.endAngle=c+ge*(Oe+1),Ne.r0=r+q*ie,Ne.r=r+q*(ie+1)),Ne.clockwise=n.clockwise,Ne.cx=n.cx,Ne.cy=n.cy,t.push(Ne)}}function Dte(n,e,t){for(var r=n.width,s=n.height,c=r>s,f=T$([r,s],c?0:1,e),T=c?"width":"height",R=c?"height":"width",I=c?"x":"y",B=c?"y":"x",Y=n[T]/f.length,q=0;q<f.length;q++)for(var ie=n[R]/f[q],ge=0;ge<f[q];ge++){var Oe={};Oe[I]=q*Y,Oe[B]=ge*ie,Oe[T]=Y,Oe[R]=ie,Oe.x+=n.x,Oe.y+=n.y,t.push(Oe)}}function M$(n,e,t,r){return n*r-t*e}function Nte(n,e,t,r,s,c,f,T){var R=t-n,I=r-e,B=f-s,Y=T-c,q=M$(B,Y,R,I);if(Math.abs(q)<1e-6)return null;var ie=n-s,ge=e-c,Oe=M$(ie,ge,B,Y)/q;return Oe<0||Oe>1?null:new $c(Oe*R+n,Oe*I+e)}function Lte(n,e,t){var r=new $c;$c.sub(r,t,e),r.normalize();var s=new $c;$c.sub(s,n,e);var c=s.dot(r);return c}function oO(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function Fte(n,e,t){for(var r=n.length,s=[],c=0;c<r;c++){var f=n[c],T=n[(c+1)%r],R=Nte(f[0],f[1],T[0],T[1],e.x,e.y,t.x,t.y);R&&s.push({projPt:Lte(R,e,t),pt:R,idx:c})}if(s.length<2)return[{points:n},{points:n}];s.sort(function(Ne,He){return Ne.projPt-He.projPt});var I=s[0],B=s[s.length-1];if(B.idx<I.idx){var Y=I;I=B,B=Y}for(var q=[I.pt.x,I.pt.y],ie=[B.pt.x,B.pt.y],ge=[q],Oe=[ie],c=I.idx+1;c<=B.idx;c++)oO(ge,n[c].slice());oO(ge,ie),oO(ge,q);for(var c=B.idx+1;c<=I.idx+r;c++)oO(Oe,n[c%r].slice());return oO(Oe,q),oO(Oe,ie),[{points:ge},{points:Oe}]}function k$(n){var e=n.points,t=[],r=[];Fy(e,t,r);var s=new ra(t[0],t[1],r[0]-t[0],r[1]-t[1]),c=s.width,f=s.height,T=s.x,R=s.y,I=new $c,B=new $c;return c>f?(I.x=B.x=T+c/2,I.y=R,B.y=R+f):(I.y=B.y=R+f/2,I.x=T,B.x=T+c),Fte(e,I,B)}function SF(n,e,t,r){if(t===1)r.push(e);else{var s=Math.floor(t/2),c=n(e);SF(n,c[0],s,r),SF(n,c[1],t-s,r)}return r}function jte(n,e){for(var t=[],r=0;r<e;r++)t.push(by(n));return t}function Bte(n,e){e.setStyle(n.style),e.z=n.z,e.z2=n.z2,e.zlevel=n.zlevel}function Ute(n){for(var e=[],t=0;t<n.length;)e.push([n[t++],n[t++]]);return e}function Zte(n,e){var t=[],r=n.shape,s;switch(n.type){case"rect":Dte(r,e,t),s=jd;break;case"sector":A$(r,e,t),s=eg;break;case"circle":A$({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},e,t),s=eg;break;default:var c=n.getComputedTransform(),f=c?Math.sqrt(Math.max(c[0]*c[0]+c[1]*c[1],c[2]*c[2]+c[3]*c[3])):1,T=ar(Ite(n.getUpdatedPathProxy(),f),function(He){return Ute(He)}),R=T.length;if(R===0)SF(k$,{points:T[0]},e,t);else if(R===e)for(var I=0;I<R;I++)t.push({points:T[I]});else{var B=0,Y=ar(T,function(He){var st=[],pt=[];Fy(He,st,pt);var Ut=(pt[1]-st[1])*(pt[0]-st[0]);return B+=Ut,{poly:He,area:Ut}});Y.sort(function(He,st){return st.area-He.area});for(var q=e,I=0;I<R;I++){var ie=Y[I];if(q<=0)break;var ge=I===R-1?q:Math.ceil(ie.area/B*e);ge<0||(SF(k$,{points:ie.poly},ge,t),q-=ge)}}s=tg;break}if(!s)return jte(n,e);for(var Oe=[],I=0;I<t.length;I++){var Ne=new s;Ne.setShape(t[I]),Bte(n,Ne),Oe.push(Ne)}return Oe}function Vte(n,e){var t=n.length,r=e.length;if(t===r)return[n,e];for(var s=[],c=[],f=t<r?n:e,T=Math.min(t,r),R=Math.abs(r-t)/6,I=(T-2)/6,B=Math.ceil(R/I)+1,Y=[f[0],f[1]],q=R,ie=2;ie<T;){var ge=f[ie-2],Oe=f[ie-1],Ne=f[ie++],He=f[ie++],st=f[ie++],pt=f[ie++],Ut=f[ie++],pn=f[ie++];if(q<=0){Y.push(Ne,He,st,pt,Ut,pn);continue}for(var yn=Math.min(q,B-1)+1,jn=1;jn<=yn;jn++){var Cr=jn/yn;dn(ge,Ne,st,Ut,Cr,s),dn(Oe,He,pt,pn,Cr,c),ge=s[3],Oe=c[3],Y.push(s[1],c[1],s[2],c[2],ge,Oe),Ne=s[5],He=c[5],st=s[6],pt=c[6]}q-=yn-1}return f===n?[Y,e]:[n,Y]}function P$(n,e){for(var t=n.length,r=n[t-2],s=n[t-1],c=[],f=0;f<e.length;)c[f++]=r,c[f++]=s;return c}function zte(n,e){for(var t,r,s,c=[],f=[],T=0;T<Math.max(n.length,e.length);T++){var R=n[T],I=e[T],B=void 0,Y=void 0;R?I?(t=Vte(R,I),B=t[0],Y=t[1],r=B,s=Y):(Y=P$(s||R,R),B=R):(B=P$(r||I,I),Y=I),c.push(B),f.push(Y)}return[c,f]}function R$(n){for(var e=0,t=0,r=0,s=n.length,c=0,f=s-2;c<s;f=c,c+=2){var T=n[f],R=n[f+1],I=n[c],B=n[c+1],Y=T*B-I*R;e+=Y,t+=(T+I)*Y,r+=(R+B)*Y}return e===0?[n[0]||0,n[1]||0]:[t/e/3,r/e/3,e]}function Wte(n,e,t,r){for(var s=(n.length-2)/6,c=Infinity,f=0,T=n.length,R=T-2,I=0;I<s;I++){for(var B=I*6,Y=0,q=0;q<T;q+=2){var ie=q===0?B:(B+q-2)%R+2,ge=n[ie]-t[0],Oe=n[ie+1]-t[1],Ne=e[q]-r[0],He=e[q+1]-r[1],st=Ne-ge,pt=He-Oe;Y+=st*st+pt*pt}Y<c&&(c=Y,f=I)}return f}function Hte(n){for(var e=[],t=n.length,r=0;r<t;r+=2)e[r]=n[t-r-2],e[r+1]=n[t-r-1];return e}function Gte(n,e,t,r){for(var s=[],c,f=0;f<n.length;f++){var T=n[f],R=e[f],I=R$(T),B=R$(R);c==null&&(c=I[2]<0!=B[2]<0);var Y=[],q=[],ie=0,ge=Infinity,Oe=[],Ne=T.length;c&&(T=Hte(T));for(var He=Wte(T,R,I,B)*6,st=Ne-2,pt=0;pt<st;pt+=2){var Ut=(He+pt)%st+2;Y[pt+2]=T[Ut]-I[0],Y[pt+3]=T[Ut+1]-I[1]}if(Y[0]=T[He]-I[0],Y[1]=T[He+1]-I[1],t>0)for(var pn=r/t,yn=-r/2;yn<=r/2;yn+=pn){for(var jn=Math.sin(yn),Cr=Math.cos(yn),Nr=0,pt=0;pt<T.length;pt+=2){var Rr=Y[pt],Er=Y[pt+1],ma=R[pt]-B[0],wa=R[pt+1]-B[1],Ga=ma*Cr-wa*jn,Ei=ma*jn+wa*Cr;Oe[pt]=Ga,Oe[pt+1]=Ei;var Vi=Ga-Rr,ns=Ei-Er;Nr+=Vi*Vi+ns*ns}if(Nr<ge){ge=Nr,ie=yn;for(var zo=0;zo<Oe.length;zo++)q[zo]=Oe[zo]}}else for(var xs=0;xs<Ne;xs+=2)q[xs]=R[xs]-B[0],q[xs+1]=R[xs+1]-B[1];s.push({from:Y,to:q,fromCp:I,toCp:B,rotation:-ie})}return s}function CF(n){return n.__isCombineMorphing}function rse(n){return n.__morphT>=0}var O$="__mOriginal_";function wF(n,e,t){var r=O$+e,s=n[r]||n[e];n[r]||(n[r]=n[e]);var c=t.replace,f=t.after,T=t.before;n[e]=function(){var R=arguments,I;return T&&T.apply(this,R),c?I=c.apply(this,R):I=s.apply(this,R),f&&f.apply(this,R),I}}function M4(n,e){var t=O$+e;n[t]&&(n[e]=n[t],n[t]=null)}function I$(n,e){for(var t=0;t<n.length;t++)for(var r=n[t],s=0;s<r.length;){var c=r[s],f=r[s+1];r[s++]=e[0]*c+e[2]*f+e[4],r[s++]=e[1]*c+e[3]*f+e[5]}}function D$(n,e){var t=n.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),s=zte(Tz(t),Tz(r)),c=s[0],f=s[1],T=n.getComputedTransform(),R=e.getComputedTransform();function I(){this.transform=null}T&&I$(c,T),R&&I$(f,R),wF(e,"updateTransform",{replace:I}),e.transform=null;var B=Gte(c,f,10,Math.PI),Y=[];wF(e,"buildPath",{replace:function(ie){for(var ge=e.__morphT,Oe=1-ge,Ne=[],He=0;He<B.length;He++){var st=B[He],pt=st.from,Ut=st.to,pn=st.rotation*ge,yn=st.fromCp,jn=st.toCp,Cr=Math.sin(pn),Nr=Math.cos(pn);bf(Ne,yn,jn,ge);for(var Rr=0;Rr<pt.length;Rr+=2){var Er=pt[Rr],ma=pt[Rr+1],wa=Ut[Rr],Ga=Ut[Rr+1],Ei=Er*Oe+wa*ge,Vi=ma*Oe+Ga*ge;Y[Rr]=Ei*Nr-Vi*Cr+Ne[0],Y[Rr+1]=Ei*Cr+Vi*Nr+Ne[1]}var ns=Y[0],zo=Y[1];ie.moveTo(ns,zo);for(var Rr=2;Rr<pt.length;){var wa=Y[Rr++],Ga=Y[Rr++],xs=Y[Rr++],pl=Y[Rr++],Rl=Y[Rr++],zl=Y[Rr++];ns===wa&&zo===Ga&&xs===Rl&&pl===zl?ie.lineTo(Rl,zl):ie.bezierCurveTo(wa,Ga,xs,pl,Rl,zl),ns=Rl,zo=zl}}}})}function Mz(n,e,t){if(!n||!e)return e;var r=t.done,s=t.during;D$(n,e),e.__morphT=0;function c(){M4(e,"buildPath"),M4(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Pi({during:function(T){e.dirtyShape(),s&&s(T)},done:function(){c(),r&&r()}},t)),e}function $te(n,e,t,r,s,c){var f=16;n=s===t?0:Math.round(32767*(n-t)/(s-t)),e=c===r?0:Math.round(32767*(e-r)/(c-r));for(var T=0,R,I=(1<<f)/2;I>0;I/=2){var B=0,Y=0;(n&I)>0&&(B=1),(e&I)>0&&(Y=1),T+=I*I*(3*B^Y),Y===0&&(B===1&&(n=I-1-n,e=I-1-e),R=n,n=e,e=R)}return T}function TF(n){var e=Infinity,t=Infinity,r=-Infinity,s=-Infinity,c=ar(n,function(T){var R=T.getBoundingRect(),I=T.getComputedTransform(),B=R.x+R.width/2+(I?I[4]:0),Y=R.y+R.height/2+(I?I[5]:0);return e=Math.min(B,e),t=Math.min(Y,t),r=Math.max(B,r),s=Math.max(Y,s),[B,Y]}),f=ar(c,function(T,R){return{cp:T,z:$te(T[0],T[1],e,t,r,s),path:n[R]}});return f.sort(function(T,R){return T.z-R.z}).map(function(T){return T.path})}function N$(n){return Zte(n.path,n.count)}function kz(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Kte(n,e,t){var r=[];function s(pn){for(var yn=0;yn<pn.length;yn++){var jn=pn[yn];CF(jn)?s(jn.childrenRef()):jn instanceof Od&&r.push(jn)}}s(n);var c=r.length;if(!c)return kz();var f=t.dividePath||N$,T=f({path:e,count:c});if(T.length!==c)return console.error("Invalid morphing: unmatched splitted path"),kz();r=TF(r),T=TF(T);for(var R=t.done,I=t.during,B=t.individualDelay,Y=new Bp,q=0;q<c;q++){var ie=r[q],ge=T[q];ge.parent=e,ge.copyTransform(Y),B||D$(ie,ge)}e.__isCombineMorphing=!0,e.childrenRef=function(){return T};function Oe(pn){for(var yn=0;yn<T.length;yn++)T[yn].addSelfToZr(pn)}wF(e,"addSelfToZr",{after:function(yn){Oe(yn)}}),wF(e,"removeSelfFromZr",{after:function(yn){for(var jn=0;jn<T.length;jn++)T[jn].removeSelfFromZr(yn)}});function Ne(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,M4(e,"addSelfToZr"),M4(e,"removeSelfFromZr")}var He=T.length;if(B)for(var st=He,pt=function(){st--,st===0&&(Ne(),R&&R())},q=0;q<He;q++){var Ut=B?Pi({delay:(t.delay||0)+B(q,He,r[q],T[q]),done:pt},t):t;Mz(r[q],T[q],Ut)}else e.__morphT=0,e.animateTo({__morphT:1},Pi({during:function(yn){for(var jn=0;jn<He;jn++){var Cr=T[jn];Cr.__morphT=e.__morphT,Cr.dirtyShape()}I&&I(yn)},done:function(){Ne();for(var yn=0;yn<n.length;yn++)M4(n[yn],"updateTransform");R&&R()}},t));return e.__zr&&Oe(e.__zr),{fromIndividuals:r,toIndividuals:T,count:He}}function Yte(n,e,t){var r=e.length,s=[],c=t.dividePath||N$;function f(ie){for(var ge=0;ge<ie.length;ge++){var Oe=ie[ge];CF(Oe)?f(Oe.childrenRef()):Oe instanceof Od&&s.push(Oe)}}if(CF(n)){f(n.childrenRef());var T=s.length;if(T<r)for(var R=0,I=T;I<r;I++)s.push(by(s[R++%T]));s.length=r}else{s=c({path:n,count:r});for(var B=n.getComputedTransform(),I=0;I<s.length;I++)s[I].setLocalTransform(B);if(s.length!==r)return console.error("Invalid morphing: unmatched splitted path"),kz()}s=TF(s),e=TF(e);for(var Y=t.individualDelay,I=0;I<r;I++){var q=Y?Pi({delay:(t.delay||0)+Y(I,r,s[I],e[I])},t):t;Mz(s[I],e[I],q)}return{fromIndividuals:s,toIndividuals:e,count:e.length}}function L$(n){return La(n[0])}function F$(n,e){for(var t=[],r=n.length,s=0;s<r;s++)t.push({one:n[s],many:[]});for(var s=0;s<e.length;s++){var c=e[s].length,f=void 0;for(f=0;f<c;f++)t[f%r].many.push(e[s][f])}for(var T=0,s=r-1;s>=0;s--)if(!t[s].many.length){var R=t[T].many;if(R.length<=1)if(T)T=0;else return t;var c=R.length,I=Math.ceil(c/2);t[s].many=R.slice(I,c),t[T].many=R.slice(0,I),T++}return t}var Xte={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r<n.count;r++){var s=by(n.path);s.setStyle("opacity",t),e.push(s)}return e},split:null};function Pz(n,e,t,r,s,c){if(!n.length||!e.length)return;var f=fy("update",r,s);if(!(f&&f.duration>0))return;var T=r.getModel("universalTransition").get("delay"),R=Object.assign({setToFinal:!0},f),I,B;L$(n)&&(I=n,B=e),L$(e)&&(I=e,B=n);function Y(He,st,pt,Ut,pn){var yn=He.many,jn=He.one;if(yn.length===1&&!pn){var Cr=st?yn[0]:jn,Nr=st?jn:yn[0];if(CF(Cr))Y({many:[Cr],one:Nr},!0,pt,Ut,!0);else{var Rr=T?Pi({delay:T(pt,Ut)},R):R;Mz(Cr,Nr,Rr),c(Cr,Nr,Cr,Nr,Rr)}}else for(var Er=Pi({dividePath:Xte[t],individualDelay:T&&function(ns,zo,xs,pl){return T(ns+pt,Ut)}},R),ma=st?Kte(yn,jn,Er):Yte(jn,yn,Er),wa=ma.fromIndividuals,Ga=ma.toIndividuals,Ei=wa.length,Vi=0;Vi<Ei;Vi++){var Rr=T?Pi({delay:T(Vi,Ei)},R):R;c(wa[Vi],Ga[Vi],st?yn[Vi]:He.one,st?He.one:yn[Vi],Rr)}}for(var q=I?I===n:n.length>e.length,ie=I?F$(B,I):F$(q?e:n,[q?n:e]),ge=0,Oe=0;Oe<ie.length;Oe++)ge+=ie[Oe].many.length;for(var Ne=0,Oe=0;Oe<ie.length;Oe++)Y(ie[Oe],q,Ne,ge),Ne+=ie[Oe].many.length}function HM(n){if(!n)return[];if(La(n)){for(var e=[],t=0;t<n.length;t++)e.push(HM(n[t]));return e}var r=[];return n.traverse(function(s){s instanceof Od&&!s.disableMorphing&&!s.invisible&&!s.ignore&&r.push(s)}),r}var j$=1e4,Jte=Bi();function Qte(n){for(var e=n.dimensions,t=0;t<e.length;t++){var r=n.getDimensionInfo(e[t]);if(r&&r.otherDims.itemGroupId===0)return e[t]}}function B$(n){var e=[];return At(n,function(t){var r=t.data;if(!(r.count()>j$))for(var s=r.getIndices(),c=Qte(r),f=0;f<s.length;f++)e.push({dataGroupId:t.dataGroupId,data:r,dim:t.dim||c,divide:t.divide,dataIndex:f})}),e}function Rz(n,e,t){n.traverse(function(r){r instanceof Od&&Sv(r,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Oz(n){if(n.parent){var e=n.getComputedTransform();n.setLocalTransform(e),n.parent.remove(n)}}function sO(n){n.stopAnimation(),n.isGroup&&n.traverse(function(e){e.stopAnimation()})}function qte(n,e,t){var r=fy("update",t,e);r&&n.traverse(function(s){if(s instanceof Qm){var c=G1(s);c&&s.animateFrom({style:c},r)}})}function ene(n,e){var t=n.length;if(t!==e.length)return!1;for(var r=0;r<t;r++){var s=n[r],c=e[r];if(s.data.getId(s.dataIndex)!==c.data.getId(c.dataIndex))return!1}return!0}function U$(n,e,t){var r=B$(n),s=B$(e);function c(He,st,pt,Ut,pn){(pt||He)&&st.animateFrom({style:pt&&pt!==He?Ea(Ea({},pt.style),He.style):He.style},pn)}function f(He){for(var st=0;st<He.length;st++)if(He[st].dim)return He[st].dim}var T=f(r),R=f(s),I=!1;function B(He,st){return function(pt){var Ut=pt.data,pn=pt.dataIndex;if(st)return Ut.getId(pn);var yn=pt.dataGroupId,jn=He?T||R:R||T,Cr=jn&&Ut.getDimensionInfo(jn),Nr=Cr&&Cr.ordinalMeta;if(Cr){var Rr=Ut.get(Cr.name,pn);return Nr&&Nr.categories[Rr]||Rr+""}var Er=Ut.getRawDataItem(pn);return Er&&Er.groupId?Er.groupId+"":yn||Ut.getId(pn)}}var Y=ene(r,s),q={};if(!Y)for(var ie=0;ie<s.length;ie++){var ge=s[ie],Oe=ge.data.getItemGraphicEl(ge.dataIndex);Oe&&(q[Oe.id]=!0)}function Ne(He,st){var pt=r[st],Ut=s[He],pn=Ut.data.hostModel,yn=pt.data.getItemGraphicEl(pt.dataIndex),jn=Ut.data.getItemGraphicEl(Ut.dataIndex);if(yn===jn){jn&&qte(jn,Ut.dataIndex,pn);return}yn&&q[yn.id]||jn&&(sO(jn),yn?(sO(yn),Oz(yn),I=!0,Pz(HM(yn),HM(jn),Ut.divide,pn,He,c)):Rz(jn,pn,He))}new Sb(r,s,B(!0,Y),B(!1,Y),null,"multiple").update(Ne).updateManyToOne(function(He,st){var pt=s[He],Ut=pt.data,pn=Ut.hostModel,yn=Ut.getItemGraphicEl(pt.dataIndex),jn=Yn(ar(st,function(Cr){return r[Cr].data.getItemGraphicEl(r[Cr].dataIndex)}),function(Cr){return Cr&&Cr!==yn&&!q[Cr.id]});yn&&(sO(yn),jn.length?(At(jn,function(Cr){sO(Cr),Oz(Cr)}),I=!0,Pz(HM(jn),HM(yn),pt.divide,pn,He,c)):Rz(yn,pn,pt.dataIndex))}).updateOneToMany(function(He,st){var pt=r[st],Ut=pt.data.getItemGraphicEl(pt.dataIndex);if(!(Ut&&q[Ut.id])){var pn=Yn(ar(He,function(jn){return s[jn].data.getItemGraphicEl(s[jn].dataIndex)}),function(jn){return jn&&jn!==Ut}),yn=s[He[0]].data.hostModel;pn.length&&(At(pn,function(jn){return sO(jn)}),Ut?(sO(Ut),Oz(Ut),I=!0,Pz(HM(Ut),HM(pn),pt.divide,yn,He[0],c)):At(pn,function(jn){return Rz(jn,yn,He[0])}))}}).updateManyToMany(function(He,st){new Sb(st,He,function(pt){return r[pt].data.getId(r[pt].dataIndex)},function(pt){return s[pt].data.getId(s[pt].dataIndex)}).update(function(pt,Ut){Ne(He[pt],st[Ut])}).execute()}).execute(),I&&At(e,function(He){var st=He.data,pt=st.hostModel,Ut=pt&&t.getViewOfSeriesModel(pt),pn=fy("update",pt,0);Ut&&pt.isAnimationEnabled()&&pn&&pn.duration>0&&Ut.group.traverse(function(yn){yn instanceof Od&&!yn.animators.length&&yn.animateFrom({style:{opacity:0}},pn)})})}function Z$(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function V$(n){return La(n)?n.sort().join(","):n}function Bw(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function tne(n,e){var t=Za(),r=Za(),s=Za();At(n.oldSeries,function(f,T){var R=n.oldDataGroupIds[T],I=n.oldData[T],B=Z$(f),Y=V$(B);r.set(Y,{dataGroupId:R,data:I}),La(B)&&At(B,function(q){s.set(q,{key:Y,dataGroupId:R,data:I})})});function c(f){t.get(f)&&Mk("Duplicated seriesKey in universalTransition "+f)}return At(e.updatedSeries,function(f){if(f.isUniversalTransitionEnabled()&&f.isAnimationEnabled()){var T=f.get("dataGroupId"),R=f.getData(),I=Z$(f),B=V$(I),Y=r.get(B);if(Y)t.set(B,{oldSeries:[{dataGroupId:Y.dataGroupId,divide:Bw(Y.data),data:Y.data}],newSeries:[{dataGroupId:T,divide:Bw(R),data:R}]});else if(La(I)){var q=[];At(I,function(Oe){var Ne=r.get(Oe);Ne.data&&q.push({dataGroupId:Ne.dataGroupId,divide:Bw(Ne.data),data:Ne.data})}),q.length&&t.set(B,{oldSeries:q,newSeries:[{dataGroupId:T,data:R,divide:Bw(R)}]})}else{var ie=s.get(I);if(ie){var ge=t.get(ie.key);ge||(ge={oldSeries:[{dataGroupId:ie.dataGroupId,data:ie.data,divide:Bw(ie.data)}],newSeries:[]},t.set(ie.key,ge)),ge.newSeries.push({dataGroupId:T,data:R,divide:Bw(R)})}}}}),t}function z$(n,e){for(var t=0;t<n.length;t++){var r=e.seriesIndex!=null&&e.seriesIndex===n[t].seriesIndex||e.seriesId!=null&&e.seriesId===n[t].id;if(r)return t}}function nne(n,e,t,r){var s=[],c=[];At(Bf(n.from),function(f){var T=z$(e.oldSeries,f);T>=0&&s.push({dataGroupId:e.oldDataGroupIds[T],data:e.oldData[T],divide:Bw(e.oldData[T]),dim:f.dimension})}),At(Bf(n.to),function(f){var T=z$(t.updatedSeries,f);if(T>=0){var R=t.updatedSeries[T].getData();c.push({dataGroupId:e.oldDataGroupIds[T],data:R,divide:Bw(R),dim:f.dimension})}}),s.length>0&&c.length>0&&U$(s,c,r)}function rne(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){At(Bf(r.seriesTransition),function(s){At(Bf(s.to),function(c){for(var f=r.updatedSeries,T=0;T<f.length;T++)(c.seriesIndex!=null&&c.seriesIndex===f[T].seriesIndex||c.seriesId!=null&&c.seriesId===f[T].id)&&(f[T][n_]=!0)})})}),n.registerUpdateLifecycle("series:transition",function(e,t,r){var s=Jte(t);if(s.oldSeries&&r.updatedSeries&&r.optionChanged){var c=r.seriesTransition;if(c)At(Bf(c),function(ie){nne(ie,s,r,t)});else{var f=tne(s,r);At(f.keys(),function(ie){var ge=f.get(ie);U$(ge.oldSeries,ge.newSeries,t)})}At(r.updatedSeries,function(ie){ie[n_]&&(ie[n_]=!1)})}for(var T=e.getSeries(),R=s.oldSeries=[],I=s.oldDataGroupIds=[],B=s.oldData=[],Y=0;Y<T.length;Y++){var q=T[Y].getData();q.count()<j$&&(R.push(T[Y]),I.push(T[Y].get("dataGroupId")),B.push(q))}})}Ud([AW]),Ud([jA]),Ud([K7,l9,h9,pj,b6,tB,eC,w5,H3,rU,pU,zR,GR,CZ,uH,pH,rV,dV,yV,AV,ht,OV]),Ud(sX),Ud(VX),Ud(r3),Ud(oJ),Ud(nZ),Ud(pJ),Ud(EJ),Ud(SQ),Ud(GQ),Ud(y4),Ud(dq),Ud(hq),Ud(Pq),Ud(Uq),Ud(Kq),Ud(nee),Ud(mee),Ud(jee),Ud(qG),Ud(r$),Ud(fte),Ud(y$),Ud(x$),Ud(mte),Ud(kte),Ud(Ote),Ud(rne),Ud(h7);var ane=o(45680),Km=o.n(ane);function W$(n,e){return function(){return n.apply(e,arguments)}}var ine=Object.prototype.toString,Iz=Object.getPrototypeOf,AF=function(n){return function(e){var t=ine.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}}(Object.create(null)),vE=function(e){return e=e.toLowerCase(),function(t){return AF(t)===e}},MF=function(e){return function(t){return typeof t===e}},lO=Array.isArray,k4=MF("undefined");function one(n){return n!==null&&!k4(n)&&n.constructor!==null&&!k4(n.constructor)&&C1(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}var H$=vE("ArrayBuffer");function sne(n){var e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&H$(n.buffer),e}var lne=MF("string"),C1=MF("function"),G$=MF("number"),kF=function(e){return e!==null&&typeof e=="object"},cne=function(e){return e===!0||e===!1},PF=function(e){if(AF(e)!=="object")return!1;var t=Iz(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},une=vE("Date"),fne=vE("File"),dne=vE("Blob"),pne=vE("FileList"),vne=function(e){return kF(e)&&C1(e.pipe)},hne=function(e){var t;return e&&(typeof FormData=="function"&&e instanceof FormData||C1(e.append)&&((t=AF(e))==="formdata"||t==="object"&&C1(e.toString)&&e.toString()==="[object FormData]"))},mne=vE("URLSearchParams"),gne=function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function P4(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.allOwnKeys,s=r===void 0?!1:r;if(!(n===null||typeof n=="undefined")){var c,f;if(typeof n!="object"&&(n=[n]),lO(n))for(c=0,f=n.length;c<f;c++)e.call(null,n[c],c,n);else{var T=s?Object.getOwnPropertyNames(n):Object.keys(n),R=T.length,I;for(c=0;c<R;c++)I=T[c],e.call(null,n[I],I,n)}}}function $$(n,e){e=e.toLowerCase();for(var t=Object.keys(n),r=t.length,s;r-- >0;)if(s=t[r],e===s.toLowerCase())return s;return null}var K$=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global}(),Y$=function(e){return!k4(e)&&e!==K$};function Dz(){for(var n=Y$(this)&&this||{},e=n.caseless,t={},r=function(T,R){var I=e&&$$(t,R)||R;PF(t[I])&&PF(T)?t[I]=Dz(t[I],T):PF(T)?t[I]=Dz({},T):lO(T)?t[I]=T.slice():t[I]=T},s=0,c=arguments.length;s<c;s++)arguments[s]&&P4(arguments[s],r);return t}var _ne=function(e,t,r){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=s.allOwnKeys;return P4(t,function(f,T){r&&C1(f)?e[T]=W$(f,r):e[T]=f},{allOwnKeys:c}),e},yne=function(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e},bne=function(e,t,r,s){e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},xne=function(e,t,r,s){var c,f,T,R={};if(t=t||{},e==null)return t;do{for(c=Object.getOwnPropertyNames(e),f=c.length;f-- >0;)T=c[f],(!s||s(T,e,t))&&!R[T]&&(t[T]=e[T],R[T]=!0);e=r!==!1&&Iz(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Ene=function(e,t,r){e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;var s=e.indexOf(t,r);return s!==-1&&s===r},Sne=function(e){if(!e)return null;if(lO(e))return e;var t=e.length;if(!G$(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},Cne=function(n){return function(e){return n&&e instanceof n}}(typeof Uint8Array!="undefined"&&Iz(Uint8Array)),wne=function(e,t){for(var r=e&&e[Symbol.iterator],s=r.call(e),c;(c=s.next())&&!c.done;){var f=c.value;t.call(e,f[0],f[1])}},Tne=function(e,t){for(var r,s=[];(r=e.exec(t))!==null;)s.push(r);return s},Ane=vE("HTMLFormElement"),Mne=function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,s,c){return s.toUpperCase()+c})},X$=function(n){var e=n.hasOwnProperty;return function(t,r){return e.call(t,r)}}(Object.prototype),kne=vE("RegExp"),J$=function(e,t){var r=Object.getOwnPropertyDescriptors(e),s={};P4(r,function(c,f){var T;(T=t(c,f,e))!==!1&&(s[f]=T||c)}),Object.defineProperties(e,s)},Pne=function(e){J$(e,function(t,r){if(C1(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;var s=e[r];if(!!C1(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")})}})},Rne=function(e,t){var r={},s=function(f){f.forEach(function(T){r[T]=!0})};return lO(e)?s(e):s(String(e).split(t)),r},One=function(){},Ine=function(e,t){return e=+e,Number.isFinite(e)?e:t},Nz="abcdefghijklmnopqrstuvwxyz",Q$="0123456789",q$={DIGIT:Q$,ALPHA:Nz,ALPHA_DIGIT:Nz+Nz.toUpperCase()+Q$},Dne=function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q$.ALPHA_DIGIT,r="",s=t.length;e--;)r+=t[Math.random()*s|0];return r};function Nne(n){return!!(n&&C1(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}var Lne=function(e){var t=new Array(10),r=function s(c,f){if(kF(c)){if(t.indexOf(c)>=0)return;if(!("toJSON"in c)){t[f]=c;var T=lO(c)?[]:{};return P4(c,function(R,I){var B=s(R,f+1);!k4(B)&&(T[I]=B)}),t[f]=void 0,T}}return c};return r(e,0)},Fne=vE("AsyncFunction"),jne=function(e){return e&&(kF(e)||C1(e))&&C1(e.then)&&C1(e.catch)},ec={isArray:lO,isArrayBuffer:H$,isBuffer:one,isFormData:hne,isArrayBufferView:sne,isString:lne,isNumber:G$,isBoolean:cne,isObject:kF,isPlainObject:PF,isUndefined:k4,isDate:une,isFile:fne,isBlob:dne,isRegExp:kne,isFunction:C1,isStream:vne,isURLSearchParams:mne,isTypedArray:Cne,isFileList:pne,forEach:P4,merge:Dz,extend:_ne,trim:gne,stripBOM:yne,inherits:bne,toFlatObject:xne,kindOf:AF,kindOfTest:vE,endsWith:Ene,toArray:Sne,forEachEntry:wne,matchAll:Tne,isHTMLForm:Ane,hasOwnProperty:X$,hasOwnProp:X$,reduceDescriptors:J$,freezeMethods:Pne,toObjectSet:Rne,toCamelCase:Mne,noop:One,toFiniteNumber:Ine,findKey:$$,global:K$,isContextDefined:Y$,ALPHABET:q$,generateString:Dne,isSpecCompliantForm:Nne,toJSONObject:Lne,isAsyncFn:Fne,isThenable:jne},RF=o(69610),OF=o(54941);function cO(n,e,t,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),s&&(this.response=s)}ec.inherits(cO,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ec.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var eK=cO.prototype,tK={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(n){tK[n]={value:n}}),Object.defineProperties(cO,tK),Object.defineProperty(eK,"isAxiosError",{value:!0}),cO.from=function(n,e,t,r,s,c){var f=Object.create(eK);return ec.toFlatObject(n,f,function(R){return R!==Error.prototype},function(T){return T!=="isAxiosError"}),cO.call(f,n.message,e,t,r,s),f.cause=n,f.name=n.name,c&&Object.assign(f,c),f};var Oh=cO,nK=null,Bne=o(5783).Buffer;function Lz(n){return ec.isPlainObject(n)||ec.isArray(n)}function rK(n){return ec.endsWith(n,"[]")?n.slice(0,-2):n}function aK(n,e,t){return n?n.concat(e).map(function(s,c){return s=rK(s),!t&&c?"["+s+"]":s}).join(t?".":""):e}function Une(n){return ec.isArray(n)&&!n.some(Lz)}var Zne=ec.toFlatObject(ec,{},null,function(e){return/^is[A-Z]/.test(e)});function Vne(n,e,t){if(!ec.isObject(n))throw new TypeError("target must be an object");e=e||new(nK||FormData),t=ec.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Oe,Ne){return!ec.isUndefined(Ne[Oe])});var r=t.metaTokens,s=t.visitor||B,c=t.dots,f=t.indexes,T=t.Blob||typeof Blob!="undefined"&&Blob,R=T&&ec.isSpecCompliantForm(e);if(!ec.isFunction(s))throw new TypeError("visitor must be a function");function I(ge){if(ge===null)return"";if(ec.isDate(ge))return ge.toISOString();if(!R&&ec.isBlob(ge))throw new Oh("Blob is not supported. Use a Buffer instead.");return ec.isArrayBuffer(ge)||ec.isTypedArray(ge)?R&&typeof Blob=="function"?new Blob([ge]):Bne.from(ge):ge}function B(ge,Oe,Ne){var He=ge;if(ge&&!Ne&&typeof ge=="object"){if(ec.endsWith(Oe,"{}"))Oe=r?Oe:Oe.slice(0,-2),ge=JSON.stringify(ge);else if(ec.isArray(ge)&&Une(ge)||(ec.isFileList(ge)||ec.endsWith(Oe,"[]"))&&(He=ec.toArray(ge)))return Oe=rK(Oe),He.forEach(function(pt,Ut){!(ec.isUndefined(pt)||pt===null)&&e.append(f===!0?aK([Oe],Ut,c):f===null?Oe:Oe+"[]",I(pt))}),!1}return Lz(ge)?!0:(e.append(aK(Ne,Oe,c),I(ge)),!1)}var Y=[],q=Object.assign(Zne,{defaultVisitor:B,convertValue:I,isVisitable:Lz});function ie(ge,Oe){if(!ec.isUndefined(ge)){if(Y.indexOf(ge)!==-1)throw Error("Circular reference detected in "+Oe.join("."));Y.push(ge),ec.forEach(ge,function(He,st){var pt=!(ec.isUndefined(He)||He===null)&&s.call(e,He,ec.isString(st)?st.trim():st,Oe,q);pt===!0&&ie(He,Oe?Oe.concat(st):[st])}),Y.pop()}}if(!ec.isObject(n))throw new TypeError("data must be an object");return ie(n),e}var IF=Vne;function iK(n){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function oK(n,e){this._pairs=[],n&&IF(n,this,e)}var sK=oK.prototype;sK.append=function(e,t){this._pairs.push([e,t])},sK.toString=function(e){var t=e?function(r){return e.call(this,r,iK)}:iK;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};var lK=oK;function zne(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cK(n,e,t){if(!e)return n;var r=t&&t.encode||zne,s=t&&t.serialize,c;if(s?c=s(e,t):c=ec.isURLSearchParams(e)?e.toString():new lK(e,t).toString(r),c){var f=n.indexOf("#");f!==-1&&(n=n.slice(0,f)),n+=(n.indexOf("?")===-1?"?":"&")+c}return n}var Wne=function(){function n(){(0,RF.Z)(this,n),this.handlers=[]}return(0,OF.Z)(n,[{key:"use",value:function(t,r,s){return this.handlers.push({fulfilled:t,rejected:r,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(t){this.handlers[t]&&(this.handlers[t]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(t){ec.forEach(this.handlers,function(s){s!==null&&t(s)})}}]),n}(),uK=Wne,fK={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hne=typeof URLSearchParams!="undefined"?URLSearchParams:lK,Gne=typeof FormData!="undefined"?FormData:null,$ne=typeof Blob!="undefined"?Blob:null,Kne=function(){var n;return typeof navigator!="undefined"&&((n=navigator.product)==="ReactNative"||n==="NativeScript"||n==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}(),Yne=function(){return typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function"}(),Vb={isBrowser:!0,classes:{URLSearchParams:Hne,FormData:Gne,Blob:$ne},isStandardBrowserEnv:Kne,isStandardBrowserWebWorkerEnv:Yne,protocols:["http","https","file","blob","url","data"]};function Xne(n,e){return IF(n,new Vb.classes.URLSearchParams,Object.assign({visitor:function(r,s,c,f){return Vb.isNode&&ec.isBuffer(r)?(this.append(s,r.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},e))}function Jne(n){return ec.matchAll(/\w+|\[(\w*)]/g,n).map(function(e){return e[0]==="[]"?"":e[1]||e[0]})}function Qne(n){var e={},t=Object.keys(n),r,s=t.length,c;for(r=0;r<s;r++)c=t[r],e[c]=n[c];return e}function qne(n){function e(r,s,c,f){var T=r[f++],R=Number.isFinite(+T),I=f>=r.length;if(T=!T&&ec.isArray(c)?c.length:T,I)return ec.hasOwnProp(c,T)?c[T]=[c[T],s]:c[T]=s,!R;(!c[T]||!ec.isObject(c[T]))&&(c[T]=[]);var B=e(r,s,c[T],f);return B&&ec.isArray(c[T])&&(c[T]=Qne(c[T])),!R}if(ec.isFormData(n)&&ec.isFunction(n.entries)){var t={};return ec.forEachEntry(n,function(r,s){e(Jne(r),s,t,0)}),t}return null}var dK=qne;function ere(n,e,t){if(ec.isString(n))try{return(e||JSON.parse)(n),ec.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}var Fz={transitional:fK,adapter:Vb.isNode?"http":"xhr",transformRequest:[function(e,t){var r=t.getContentType()||"",s=r.indexOf("application/json")>-1,c=ec.isObject(e);c&&ec.isHTMLForm(e)&&(e=new FormData(e));var f=ec.isFormData(e);if(f)return s&&s?JSON.stringify(dK(e)):e;if(ec.isArrayBuffer(e)||ec.isBuffer(e)||ec.isStream(e)||ec.isFile(e)||ec.isBlob(e))return e;if(ec.isArrayBufferView(e))return e.buffer;if(ec.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();var T;if(c){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Xne(e,this.formSerializer).toString();if((T=ec.isFileList(e))||r.indexOf("multipart/form-data")>-1){var R=this.env&&this.env.FormData;return IF(T?{"files[]":e}:e,R&&new R,this.formSerializer)}}return c||s?(t.setContentType("application/json",!1),ere(e)):e}],transformResponse:[function(e){var t=this.transitional||Fz.transitional,r=t&&t.forcedJSONParsing,s=this.responseType==="json";if(e&&ec.isString(e)&&(r&&!this.responseType||s)){var c=t&&t.silentJSONParsing,f=!c&&s;try{return JSON.parse(e)}catch(T){if(f)throw T.name==="SyntaxError"?Oh.from(T,Oh.ERR_BAD_RESPONSE,this,null,this.response):T}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vb.classes.FormData,Blob:Vb.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ec.forEach(["delete","get","head","post","put","patch"],function(n){Fz.headers[n]={}});var jz=Fz,tre=ec.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),nre=function(n){var e={},t,r,s;return n&&n.split(`
|
||
`).forEach(function(f){s=f.indexOf(":"),t=f.substring(0,s).trim().toLowerCase(),r=f.substring(s+1).trim(),!(!t||e[t]&&tre[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},pK=Symbol("internals");function R4(n){return n&&String(n).trim().toLowerCase()}function DF(n){return n===!1||n==null?n:ec.isArray(n)?n.map(DF):String(n)}function rre(n){for(var e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;r=t.exec(n);)e[r[1]]=r[2];return e}var are=function(e){return/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())};function Bz(n,e,t,r,s){if(ec.isFunction(r))return r.call(this,e,t);if(s&&(e=t),!!ec.isString(e)){if(ec.isString(r))return e.indexOf(r)!==-1;if(ec.isRegExp(r))return r.test(e)}}function ire(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r})}function ore(n,e){var t=ec.toCamelCase(" "+e);["get","set","has"].forEach(function(r){Object.defineProperty(n,r+t,{value:function(c,f,T){return this[r].call(this,e,c,f,T)},configurable:!0})})}var NF=function(n,e){function t(r){(0,RF.Z)(this,t),r&&this.set(r)}return(0,OF.Z)(t,[{key:"set",value:function(s,c,f){var T=this;function R(B,Y,q){var ie=R4(Y);if(!ie)throw new Error("header name must be a non-empty string");var ge=ec.findKey(T,ie);(!ge||T[ge]===void 0||q===!0||q===void 0&&T[ge]!==!1)&&(T[ge||Y]=DF(B))}var I=function(Y,q){return ec.forEach(Y,function(ie,ge){return R(ie,ge,q)})};return ec.isPlainObject(s)||s instanceof this.constructor?I(s,c):ec.isString(s)&&(s=s.trim())&&!are(s)?I(nre(s),c):s!=null&&R(c,s,f),this}},{key:"get",value:function(s,c){if(s=R4(s),s){var f=ec.findKey(this,s);if(f){var T=this[f];if(!c)return T;if(c===!0)return rre(T);if(ec.isFunction(c))return c.call(this,T,f);if(ec.isRegExp(c))return c.exec(T);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(s,c){if(s=R4(s),s){var f=ec.findKey(this,s);return!!(f&&this[f]!==void 0&&(!c||Bz(this,this[f],f,c)))}return!1}},{key:"delete",value:function(s,c){var f=this,T=!1;function R(I){if(I=R4(I),I){var B=ec.findKey(f,I);B&&(!c||Bz(f,f[B],B,c))&&(delete f[B],T=!0)}}return ec.isArray(s)?s.forEach(R):R(s),T}},{key:"clear",value:function(s){for(var c=Object.keys(this),f=c.length,T=!1;f--;){var R=c[f];(!s||Bz(this,this[R],R,s,!0))&&(delete this[R],T=!0)}return T}},{key:"normalize",value:function(s){var c=this,f={};return ec.forEach(this,function(T,R){var I=ec.findKey(f,R);if(I){c[I]=DF(T),delete c[R];return}var B=s?ire(R):String(R).trim();B!==R&&delete c[R],c[B]=DF(T),f[B]=!0}),this}},{key:"concat",value:function(){for(var s,c=arguments.length,f=new Array(c),T=0;T<c;T++)f[T]=arguments[T];return(s=this.constructor).concat.apply(s,[this].concat(f))}},{key:"toJSON",value:function(s){var c=Object.create(null);return ec.forEach(this,function(f,T){f!=null&&f!==!1&&(c[T]=s&&ec.isArray(f)?f.join(", "):f)}),c}},{key:n,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map(function(s){var c=(0,b.Z)(s,2),f=c[0],T=c[1];return f+": "+T}).join(`
|
||
`)}},{key:e,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(s){return s instanceof this?s:new this(s)}},{key:"concat",value:function(s){for(var c=new this(s),f=arguments.length,T=new Array(f>1?f-1:0),R=1;R<f;R++)T[R-1]=arguments[R];return T.forEach(function(I){return c.set(I)}),c}},{key:"accessor",value:function(s){var c=this[pK]=this[pK]={accessors:{}},f=c.accessors,T=this.prototype;function R(I){var B=R4(I);f[B]||(ore(T,I),f[B]=!0)}return ec.isArray(s)?s.forEach(R):R(s),this}}]),t}(Symbol.iterator,Symbol.toStringTag);NF.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ec.reduceDescriptors(NF.prototype,function(n,e){var t=n.value,r=e[0].toUpperCase()+e.slice(1);return{get:function(){return t},set:function(c){this[r]=c}}}),ec.freezeMethods(NF);var mC=NF;function Uz(n,e){var t=this||jz,r=e||t,s=mC.from(r.headers),c=r.data;return ec.forEach(n,function(T){c=T.call(t,c,s.normalize(),e?e.status:void 0)}),s.normalize(),c}function vK(n){return!!(n&&n.__CANCEL__)}function hK(n,e,t){Oh.call(this,n==null?"canceled":n,Oh.ERR_CANCELED,e,t),this.name="CanceledError"}ec.inherits(hK,Oh,{__CANCEL__:!0});var LF=hK;function sre(n,e,t){var r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new Oh("Request failed with status code "+t.status,[Oh.ERR_BAD_REQUEST,Oh.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}var lre=Vb.isStandardBrowserEnv?function(){return{write:function(t,r,s,c,f,T){var R=[];R.push(t+"="+encodeURIComponent(r)),ec.isNumber(s)&&R.push("expires="+new Date(s).toGMTString()),ec.isString(c)&&R.push("path="+c),ec.isString(f)&&R.push("domain="+f),T===!0&&R.push("secure"),document.cookie=R.join("; ")},read:function(t){var r=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function cre(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function ure(n,e){return e?n.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):n}function mK(n,e){return n&&!cre(e)?ure(n,e):e}var fre=Vb.isStandardBrowserEnv?function(){var e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a"),r;function s(c){var f=c;return e&&(t.setAttribute("href",f),f=t.href),t.setAttribute("href",f),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return r=s(window.location.href),function(f){var T=ec.isString(f)?s(f):f;return T.protocol===r.protocol&&T.host===r.host}}():function(){return function(){return!0}}();function dre(n){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function pre(n,e){n=n||10;var t=new Array(n),r=new Array(n),s=0,c=0,f;return e=e!==void 0?e:1e3,function(R){var I=Date.now(),B=r[c];f||(f=I),t[s]=R,r[s]=I;for(var Y=c,q=0;Y!==s;)q+=t[Y++],Y=Y%n;if(s=(s+1)%n,s===c&&(c=(c+1)%n),!(I-f<e)){var ie=B&&I-B;return ie?Math.round(q*1e3/ie):void 0}}}var vre=pre;function gK(n,e){var t=0,r=vre(50,250);return function(s){var c=s.loaded,f=s.lengthComputable?s.total:void 0,T=c-t,R=r(T),I=c<=f;t=c;var B={loaded:c,total:f,progress:f?c/f:void 0,bytes:T,rate:R||void 0,estimated:R&&f&&I?(f-c)/R:void 0,event:s};B[e?"download":"upload"]=!0,n(B)}}var hre=typeof XMLHttpRequest!="undefined",mre=hre&&function(n){return new Promise(function(t,r){var s=n.data,c=mC.from(n.headers).normalize(),f=n.responseType,T;function R(){n.cancelToken&&n.cancelToken.unsubscribe(T),n.signal&&n.signal.removeEventListener("abort",T)}ec.isFormData(s)&&(Vb.isStandardBrowserEnv||Vb.isStandardBrowserWebWorkerEnv?c.setContentType(!1):c.setContentType("multipart/form-data;",!1));var I=new XMLHttpRequest;if(n.auth){var B=n.auth.username||"",Y=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";c.set("Authorization","Basic "+btoa(B+":"+Y))}var q=mK(n.baseURL,n.url);I.open(n.method.toUpperCase(),cK(q,n.params,n.paramsSerializer),!0),I.timeout=n.timeout;function ie(){if(!!I){var Ne=mC.from("getAllResponseHeaders"in I&&I.getAllResponseHeaders()),He=!f||f==="text"||f==="json"?I.responseText:I.response,st={data:He,status:I.status,statusText:I.statusText,headers:Ne,config:n,request:I};sre(function(Ut){t(Ut),R()},function(Ut){r(Ut),R()},st),I=null}}if("onloadend"in I?I.onloadend=ie:I.onreadystatechange=function(){!I||I.readyState!==4||I.status===0&&!(I.responseURL&&I.responseURL.indexOf("file:")===0)||setTimeout(ie)},I.onabort=function(){!I||(r(new Oh("Request aborted",Oh.ECONNABORTED,n,I)),I=null)},I.onerror=function(){r(new Oh("Network Error",Oh.ERR_NETWORK,n,I)),I=null},I.ontimeout=function(){var He=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded",st=n.transitional||fK;n.timeoutErrorMessage&&(He=n.timeoutErrorMessage),r(new Oh(He,st.clarifyTimeoutError?Oh.ETIMEDOUT:Oh.ECONNABORTED,n,I)),I=null},Vb.isStandardBrowserEnv){var ge=(n.withCredentials||fre(q))&&n.xsrfCookieName&&lre.read(n.xsrfCookieName);ge&&c.set(n.xsrfHeaderName,ge)}s===void 0&&c.setContentType(null),"setRequestHeader"in I&&ec.forEach(c.toJSON(),function(He,st){I.setRequestHeader(st,He)}),ec.isUndefined(n.withCredentials)||(I.withCredentials=!!n.withCredentials),f&&f!=="json"&&(I.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&I.addEventListener("progress",gK(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&I.upload&&I.upload.addEventListener("progress",gK(n.onUploadProgress)),(n.cancelToken||n.signal)&&(T=function(He){!I||(r(!He||He.type?new LF(null,n,I):He),I.abort(),I=null)},n.cancelToken&&n.cancelToken.subscribe(T),n.signal&&(n.signal.aborted?T():n.signal.addEventListener("abort",T)));var Oe=dre(q);if(Oe&&Vb.protocols.indexOf(Oe)===-1){r(new Oh("Unsupported protocol "+Oe+":",Oh.ERR_BAD_REQUEST,n));return}I.send(s||null)})},FF={http:nK,xhr:mre};ec.forEach(FF,function(n,e){if(n){try{Object.defineProperty(n,"name",{value:e})}catch(t){}Object.defineProperty(n,"adapterName",{value:e})}});var _K={getAdapter:function(e){e=ec.isArray(e)?e:[e];for(var t=e,r=t.length,s,c,f=0;f<r&&(s=e[f],!(c=ec.isString(s)?FF[s.toLowerCase()]:s));f++);if(!c)throw c===!1?new Oh("Adapter ".concat(s," is not supported by the environment"),"ERR_NOT_SUPPORT"):new Error(ec.hasOwnProp(FF,s)?"Adapter '".concat(s,"' is not available in the build"):"Unknown adapter '".concat(s,"'"));if(!ec.isFunction(c))throw new TypeError("adapter is not a function");return c},adapters:FF};function Zz(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new LF(null,n)}function yK(n){Zz(n),n.headers=mC.from(n.headers),n.data=Uz.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1);var e=_K.getAdapter(n.adapter||jz.adapter);return e(n).then(function(r){return Zz(n),r.data=Uz.call(n,n.transformResponse,r),r.headers=mC.from(r.headers),r},function(r){return vK(r)||(Zz(n),r&&r.response&&(r.response.data=Uz.call(n,n.transformResponse,r.response),r.response.headers=mC.from(r.response.headers))),Promise.reject(r)})}var bK=function(e){return e instanceof mC?e.toJSON():e};function uO(n,e){e=e||{};var t={};function r(I,B,Y){return ec.isPlainObject(I)&&ec.isPlainObject(B)?ec.merge.call({caseless:Y},I,B):ec.isPlainObject(B)?ec.merge({},B):ec.isArray(B)?B.slice():B}function s(I,B,Y){if(ec.isUndefined(B)){if(!ec.isUndefined(I))return r(void 0,I,Y)}else return r(I,B,Y)}function c(I,B){if(!ec.isUndefined(B))return r(void 0,B)}function f(I,B){if(ec.isUndefined(B)){if(!ec.isUndefined(I))return r(void 0,I)}else return r(void 0,B)}function T(I,B,Y){if(Y in e)return r(I,B);if(Y in n)return r(void 0,I)}var R={url:c,method:c,data:c,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:T,headers:function(B,Y){return s(bK(B),bK(Y),!0)}};return ec.forEach(Object.keys(Object.assign({},n,e)),function(B){var Y=R[B]||s,q=Y(n[B],e[B],B);ec.isUndefined(q)&&Y!==T||(t[B]=q)}),t}var xK="1.5.0",Vz={};["object","boolean","number","function","string","symbol"].forEach(function(n,e){Vz[n]=function(r){return typeof r===n||"a"+(e<1?"n ":" ")+n}});var EK={};Vz.transitional=function(e,t,r){function s(c,f){return"[Axios v"+xK+"] Transitional option '"+c+"'"+f+(r?". "+r:"")}return function(c,f,T){if(e===!1)throw new Oh(s(f," has been removed"+(t?" in "+t:"")),Oh.ERR_DEPRECATED);return t&&!EK[f]&&(EK[f]=!0,console.warn(s(f," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(c,f,T):!0}};function gre(n,e,t){if(typeof n!="object")throw new Oh("options must be an object",Oh.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(n),s=r.length;s-- >0;){var c=r[s],f=e[c];if(f){var T=n[c],R=T===void 0||f(T,c,n);if(R!==!0)throw new Oh("option "+c+" must be "+R,Oh.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Oh("Unknown option "+c,Oh.ERR_BAD_OPTION)}}var zz={assertOptions:gre,validators:Vz},Uw=zz.validators,jF=function(){function n(e){(0,RF.Z)(this,n),this.defaults=e,this.interceptors={request:new uK,response:new uK}}return(0,OF.Z)(n,[{key:"request",value:function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=uO(this.defaults,r);var s=r,c=s.transitional,f=s.paramsSerializer,T=s.headers;c!==void 0&&zz.assertOptions(c,{silentJSONParsing:Uw.transitional(Uw.boolean),forcedJSONParsing:Uw.transitional(Uw.boolean),clarifyTimeoutError:Uw.transitional(Uw.boolean)},!1),f!=null&&(ec.isFunction(f)?r.paramsSerializer={serialize:f}:zz.assertOptions(f,{encode:Uw.function,serialize:Uw.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();var R=T&&ec.merge(T.common,T[r.method]);T&&ec.forEach(["delete","get","head","post","put","patch","common"],function(pt){delete T[pt]}),r.headers=mC.concat(R,T);var I=[],B=!0;this.interceptors.request.forEach(function(Ut){typeof Ut.runWhen=="function"&&Ut.runWhen(r)===!1||(B=B&&Ut.synchronous,I.unshift(Ut.fulfilled,Ut.rejected))});var Y=[];this.interceptors.response.forEach(function(Ut){Y.push(Ut.fulfilled,Ut.rejected)});var q,ie=0,ge;if(!B){var Oe=[yK.bind(this),void 0];for(Oe.unshift.apply(Oe,I),Oe.push.apply(Oe,Y),ge=Oe.length,q=Promise.resolve(r);ie<ge;)q=q.then(Oe[ie++],Oe[ie++]);return q}ge=I.length;var Ne=r;for(ie=0;ie<ge;){var He=I[ie++],st=I[ie++];try{Ne=He(Ne)}catch(pt){st.call(this,pt);break}}try{q=yK.call(this,Ne)}catch(pt){return Promise.reject(pt)}for(ie=0,ge=Y.length;ie<ge;)q=q.then(Y[ie++],Y[ie++]);return q}},{key:"getUri",value:function(t){t=uO(this.defaults,t);var r=mK(t.baseURL,t.url);return cK(r,t.params,t.paramsSerializer)}}]),n}();ec.forEach(["delete","get","head","options"],function(e){jF.prototype[e]=function(t,r){return this.request(uO(r||{},{method:e,url:t,data:(r||{}).data}))}}),ec.forEach(["post","put","patch"],function(e){function t(r){return function(c,f,T){return this.request(uO(T||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:c,data:f}))}}jF.prototype[e]=t(),jF.prototype[e+"Form"]=t(!0)});var BF=jF,_re=function(){function n(e){if((0,RF.Z)(this,n),typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(c){t=c});var r=this;this.promise.then(function(s){if(!!r._listeners){for(var c=r._listeners.length;c-- >0;)r._listeners[c](s);r._listeners=null}}),this.promise.then=function(s){var c,f=new Promise(function(T){r.subscribe(T),c=T}).then(s);return f.cancel=function(){r.unsubscribe(c)},f},e(function(c,f,T){r.reason||(r.reason=new LF(c,f,T),t(r.reason))})}return(0,OF.Z)(n,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}},{key:"unsubscribe",value:function(t){if(!!this._listeners){var r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}}}],[{key:"source",value:function(){var t,r=new n(function(c){t=c});return{token:r,cancel:t}}}]),n}(),yre=_re;function bre(n){return function(t){return n.apply(null,t)}}function xre(n){return ec.isObject(n)&&n.isAxiosError===!0}var Wz={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Wz).forEach(function(n){var e=(0,b.Z)(n,2),t=e[0],r=e[1];Wz[r]=t});var Ere=Wz;function SK(n){var e=new BF(n),t=W$(BF.prototype.request,e);return ec.extend(t,BF.prototype,e,{allOwnKeys:!0}),ec.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return SK(uO(n,s))},t}var Rg=SK(jz);Rg.Axios=BF,Rg.CanceledError=LF,Rg.CancelToken=yre,Rg.isCancel=vK,Rg.VERSION=xK,Rg.toFormData=IF,Rg.AxiosError=Oh,Rg.Cancel=Rg.CanceledError,Rg.all=function(e){return Promise.all(e)},Rg.spread=bre,Rg.isAxiosError=xre,Rg.mergeConfig=uO,Rg.AxiosHeaders=mC,Rg.formToJSON=function(n){return dK(ec.isHTMLForm(n)?new FormData(n):n)},Rg.getAdapter=_K.getAdapter,Rg.HttpStatusCode=Ere,Rg.default=Rg;var Sre=Rg,CK=o(3531),O4=o(87240),wK=o(57535),Cre=o(56466),TK=o(95455),wre=o(43774),fO,UF;(function(n){n[n.NORMAL=0]="NORMAL",n[n.SEARCH_EXCEPTION=1]="SEARCH_EXCEPTION",n[n.EMPTY=2]="EMPTY",n[n.INVALID=3]="INVALID"})(UF||(UF={}));var Hz;(function(n){n.COMPLETED="COMPLETED",n.PENDING="PENDING",n.FAILED="FAILED"})(Hz||(Hz={}));var dO;(function(n){n.DOMAIN="DOMAIN",n.DIMENSION="DIMENSION",n.METRIC="METRIC",n.VALUE="VALUE"})(dO||(dO={})),fO={},fO[dO.DOMAIN]="\u4E3B\u9898\u57DF",fO[dO.DIMENSION]="\u7EF4\u5EA6",fO[dO.METRIC]="\u6307\u6807",fO[dO.VALUE]="\u7EF4\u5EA6\u503C";var ZF,ty;(function(n){n.None="\u65E0",n.TenThousand="\u4E07",n.EnTenThousand="w",n.OneHundredMillion="\u4EBF",n.Thousand="k",n.Million="M",n.Giga="G"})(ty||(ty={}));var AK="#446dff",Gz="rgba(153, 153, 153, 0.3)",Zw="ss-chat",MK={DAY:[{label:"\u8FD17\u5929",value:7},{label:"\u8FD130\u5929",value:30},{label:"\u8FD160\u5929",value:60},{label:"\u8FD190\u5929",value:90}],WEEK:[{label:"\u8FD14\u5468",value:4},{label:"\u8FD112\u5468",value:12},{label:"\u8FD124\u5468",value:24},{label:"\u8FD152\u5468",value:52}],MONTH:[{label:"\u8FD13\u4E2A\u6708",value:3},{label:"\u8FD16\u4E2A\u6708",value:6},{label:"\u8FD112\u4E2A\u6708",value:12},{label:"\u8FD124\u4E2A\u6708",value:24}]},Tre=["#3369FF","#36D2B8","#DB8D76","#47B359","#8545E6","#E0B18B","#7258F3","#0095FF","#52CC8F","#6675FF","#CC516E","#5CA9E6"],Are="\u667A\u80FD\u52A9\u7406\u4E0D\u592A\u61C2\u60A8\u8BF4\u4EC0\u4E48\u5450\uFF0C\u56DE\u53BB\u4E00\u5B9A\u8865\u5145\u77E5\u8BC6",VF="\u67E5\u8BE2\u51FA\u9519\u5566\uFF0C\u667A\u80FD\u52A9\u7406\u8FD8\u4E0D\u591F\u806A\u660E\uFF0C\u8BF7\u60A8\u6362\u4E2A\u8868\u8FBE\u518D\u8BD5\u8BD5";ZF={},ZF[UF.SEARCH_EXCEPTION]="\u6570\u636E\u67E5\u8BE2\u5F02\u5E38",ZF[UF.INVALID]="\u667A\u80FD\u52A9\u7406\u4E0D\u592A\u61C2\u60A8\u8BF4\u4EC0\u4E48\u5450\uFF0C\u56DE\u53BB\u4E00\u5B9A\u8865\u5145\u77E5\u8BC6";var w1="ss-chat",Mre={SUM:"\u603B\u8BA1",AVG:"\u5E73\u5747\u503C",MAX:"\u6700\u5927\u503C",MIN:"\u6700\u5C0F\u503C"};function I4(n,e){if(isNaN(+n)||e<0||e>100)return n;var t=(+n).toFixed(e);if(!/^[0-9.]+$/g.test(t))return"0";for(;t.includes(".")&&(t.endsWith(".")||t.endsWith("0"));)t=t.slice(0,-1);return t}function kK(n){if(isNaN(+n))return n;var e=n.toString().split(".");return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}function PK(n){return kK(I4(n,4))}function kre(n,e){var t=+n;if(isNaN(t)||e===ty.None)return n;var r=0;switch(e){case ty.TenThousand:case ty.EnTenThousand:r=4;break;case ty.OneHundredMillion:r=8;break;case ty.Thousand:r=3;break;case ty.Million:r=6;break;case ty.Giga:r=9;break}return t/Math.pow(10,r)}var Vw=function(n,e){if(e&&(n===void 0||+n==0))return 0;if(n===void 0)return"-";if(!isFinite(+n))return n;var t=+n>=1e8?ty.OneHundredMillion:+n>=1e4?ty.EnTenThousand:ty.None,r=kre(n,t);return r=I4(r,t===ty.OneHundredMillion?2:+n<1?3:1),r=kK(r),typeof r=="number"&&isNaN(r)||+r==0?"-":"".concat(r).concat(t===ty.None?"":t)},RK=function(n){return isNaN(n)?"-":n>=1e4?(n/1e4).toFixed(1)+"\u4E07":n},Pre=function(n,e){return n.reduce(function(t,r){var s=Q({},t),c=r[e];return s[c]||(s[c]=[]),s[c].push(r),s},{})};function Rre(n,e,t){var r=[],s=e.diff(n,t||"days"),c=t==="months"?"YYYY-MM":"YYYY-MM-DD";r.push(n.format(c));for(var f=1;f<=s;f++)r.push(n.add(1,t||"days").format(c));return r}var Ore=function(n,e,t,r,s,c){var f=Rre(Rt()(r),Rt()(s),c),T=f.map(function(R){var I,B=n.find(function(Y){return Y[e]===R});return Q(Q({},B||{}),(I={},I[e]=R,I[t]=B?B[t]:0,I))});return T},Ire=function(n,e){var t=n.map(function(r){return Rt()(r[e])});return[Rt().min(t).format("YYYY-MM-DD"),Rt().max(t).format("YYYY-MM-DD")]};function Dre(n){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function Nre(n,e){var t;if(n==null?void 0:n.includes("rgb")){var r=n.match(/\d+/g).map(Number),s=r[0],c=r[1],f=r[2],T=r[3];t={r:s,g:c,b:f,a:T}}else t=Dre(n)||{};return"rgba(".concat(t.r+e,",").concat(t.g+e,",").concat(t.b+e).concat(t.a?",".concat(t.a):"",")")}function Lre(n){return Nre(n,80)}var hE=window.navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i);function OK(){return!0}function Fre(n){localStorage.setItem("SUPERSONIC_CHAT_TOKEN",n)}function jre(){return localStorage.getItem("SUPERSONIC_CHAT_TOKEN")}var $z=function(n){var e=n.model,t=n.onApplyAuth,r="".concat(w1,"-apply-auth");return(0,D.jsxs)("div",Q({className:r},{children:["\u6682\u65E0\u6743\u9650\uFF0C",t?(0,D.jsx)("span",Q({className:"".concat(r,"-apply"),onClick:function(){t(e)}},{children:"\u70B9\u51FB\u7533\u8BF7"})):"\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650"]}))},IK=function(n){var e,t=n.model,r=n.chartType,s=n.onApplyAuth,c="".concat(Zw,"-no-permission-chart"),f=Km()("".concat(c,"-holder"),(e={},e["".concat(c,"-bar-chart-holder")]=r==="barChart",e));return(0,D.jsxs)("div",Q({className:c},{children:[(0,D.jsx)("div",{className:f}),(0,D.jsx)("div",Q({className:"".concat(c,"-no-permission")},{children:(0,D.jsx)($z,{model:t,onApplyAuth:s})}))]}))},T1=Sre.create({baseURL:"",timeout:12e4,headers:{"Content-Type":"application/json"}});T1.interceptors.request.use(function(n){var e=jre();return e&&(n==null?void 0:n.headers)&&(n.headers.Auth="Bearer ".concat(e),n.headers.Authorization="Bearer ".concat(e)),n},function(n){return Promise.reject(n)}),T1.interceptors.response.use(function(n){var e=n.headers.get("redirect");if(e==="REDIRECT"){for(var t=window;t!==t.top;)t=t.top;var r=n.headers.get("contextpath");t.location.href=(r==null?void 0:r.substring(0,r==null?void 0:r.indexOf("&")))+"&redirect_uri=".concat(encodeURIComponent("http://".concat(t.location.host)))}return n},function(n){return n.response&&n.response.status===401&&console.log("Unauthorized, please log in again."),Promise.reject(n)});var pO=0,mE="/api";function Bre(n,e,t,r){return T1.post("".concat(mE,"/chat/query/search"),{queryText:n,chatId:e||pO,modelId:t,agentId:r})}function Ure(n,e,t,r,s){return T1.post("".concat(mE,"/chat/query/parse"),{queryText:n,chatId:e||pO,modelId:t,agentId:r,queryFilters:s?{filters:s}:void 0})}function Zre(n,e,t){return T1.post("".concat(mE,"/chat/query/execute"),{queryText:n,chatId:e||pO,queryId:t.queryId,parseId:t.id})}function Vre(n,e,t){return T1.post("".concat(mE,"/chat/query/switchQuery"),{queryText:n,modelId:e,chatId:t||pO})}function DK(n){return T1.post("".concat(mE,"/chat/query/queryData"),n)}function ase(n,e){return T1.post("".concat(mE,"/chat/query/queryContext"),{queryText:n,chatId:e||pO})}function zre(n,e,t){return e===void 0&&(e=pO),t===void 0&&(t=10),T1.post("".concat(mE,"/chat/manage/pageQueryInfo?chatId=").concat(e),{current:n,pageSize:t})}function Wre(n,e){return T1.post("".concat(mE,"/chat/query/choice"),{entityId:n,modelId:e})}function NK(n,e){return T1.post("".concat(mE,"/chat/manage/updateQAFeedback?id=").concat(n,"&score=").concat(e,"&feedback="))}function Hre(n){return T1.get("".concat(mE,"/chat/recommend/metric/").concat(n))}var Gre=(0,h.createContext)({}),Kz=Gre;function A1(){return A1=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},A1.apply(this,arguments)}function $re(n){if(Array.isArray(n))return n}function Kre(n,e){var t=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,s,c,f,T=[],R=!0,I=!1;try{if(c=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;R=!1}else for(;!(R=(r=c.call(t)).done)&&(T.push(r.value),T.length!==e);R=!0);}catch(B){I=!0,s=B}finally{try{if(!R&&t.return!=null&&(f=t.return(),Object(f)!==f))return}finally{if(I)throw s}}return T}}function LK(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function Yre(n,e){if(!!n){if(typeof n=="string")return LK(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return LK(n,e)}}function Xre(){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 FK(n,e){return $re(n)||Kre(n,e)||Yre(n,e)||Xre()}function zw(n){return zw=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},zw(n)}function Jre(n,e){if(zw(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(zw(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Qre(n){var e=Jre(n,"string");return zw(e)==="symbol"?e:String(e)}function zF(n,e,t){return e=Qre(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function qre(n,e){if(n==null)return{};var t={},r=Object.keys(n),s,c;for(c=0;c<r.length;c++)s=r[c],!(e.indexOf(s)>=0)&&(t[s]=n[s]);return t}function WF(n,e){if(n==null)return{};var t=qre(n,e),r,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(n);for(s=0;s<c.length;s++)r=c[s],!(e.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(n,r)||(t[r]=n[r]))}return t}function M1(n,e){eae(n)&&(n="100%");var t=tae(n);return n=e===360?n:Math.min(e,Math.max(0,parseFloat(n))),t&&(n=parseInt(String(n*e),10)/100),Math.abs(n-e)<1e-6?1:(e===360?n=(n<0?n%e+e:n%e)/parseFloat(String(e)):n=n%e/parseFloat(String(e)),n)}function eae(n){return typeof n=="string"&&n.indexOf(".")!==-1&&parseFloat(n)===1}function tae(n){return typeof n=="string"&&n.indexOf("%")!==-1}function nae(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function HF(n){return n<=1?"".concat(Number(n)*100,"%"):n}function Yz(n){return n.length===1?"0"+n:String(n)}function rae(n,e,t){return{r:M1(n,255)*255,g:M1(e,255)*255,b:M1(t,255)*255}}function Xz(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*(6*t):t<1/2?e:t<2/3?n+(e-n)*(2/3-t)*6:n}function aae(n,e,t){var r,s,c;if(n=M1(n,360),e=M1(e,100),t=M1(t,100),e===0)s=t,c=t,r=t;else{var f=t<.5?t*(1+e):t+e-t*e,T=2*t-f;r=Xz(T,f,n+1/3),s=Xz(T,f,n),c=Xz(T,f,n-1/3)}return{r:r*255,g:s*255,b:c*255}}function iae(n,e,t){n=M1(n,255),e=M1(e,255),t=M1(t,255);var r=Math.max(n,e,t),s=Math.min(n,e,t),c=0,f=r,T=r-s,R=r===0?0:T/r;if(r===s)c=0;else{switch(r){case n:c=(e-t)/T+(e<t?6:0);break;case e:c=(t-n)/T+2;break;case t:c=(n-e)/T+4;break}c/=6}return{h:c,s:R,v:f}}function oae(n,e,t){n=M1(n,360)*6,e=M1(e,100),t=M1(t,100);var r=Math.floor(n),s=n-r,c=t*(1-e),f=t*(1-s*e),T=t*(1-(1-s)*e),R=r%6,I=[t,f,c,c,T,t][R],B=[T,t,t,f,c,c][R],Y=[c,c,T,t,t,f][R];return{r:I*255,g:B*255,b:Y*255}}function sae(n,e,t,r){var s=[Yz(Math.round(n).toString(16)),Yz(Math.round(e).toString(16)),Yz(Math.round(t).toString(16))];return r&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function jK(n){return Oy(n)/255}function Oy(n){return parseInt(n,16)}var BK={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function D4(n){var e={r:0,g:0,b:0},t=1,r=null,s=null,c=null,f=!1,T=!1;return typeof n=="string"&&(n=uae(n)),typeof n=="object"&&(gC(n.r)&&gC(n.g)&&gC(n.b)?(e=rae(n.r,n.g,n.b),f=!0,T=String(n.r).substr(-1)==="%"?"prgb":"rgb"):gC(n.h)&&gC(n.s)&&gC(n.v)?(r=HF(n.s),s=HF(n.v),e=oae(n.h,r,s),f=!0,T="hsv"):gC(n.h)&&gC(n.s)&&gC(n.l)&&(r=HF(n.s),c=HF(n.l),e=aae(n.h,r,c),f=!0,T="hsl"),Object.prototype.hasOwnProperty.call(n,"a")&&(t=n.a)),t=nae(t),{ok:f,format:n.format||T,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}var lae="[-\\+]?\\d+%?",cae="[-\\+]?\\d*\\.\\d+%?",Ww="(?:".concat(cae,")|(?:").concat(lae,")"),Jz="[\\s|\\(]+(".concat(Ww,")[,|\\s]+(").concat(Ww,")[,|\\s]+(").concat(Ww,")\\s*\\)?"),Qz="[\\s|\\(]+(".concat(Ww,")[,|\\s]+(").concat(Ww,")[,|\\s]+(").concat(Ww,")[,|\\s]+(").concat(Ww,")\\s*\\)?"),zb={CSS_UNIT:new RegExp(Ww),rgb:new RegExp("rgb"+Jz),rgba:new RegExp("rgba"+Qz),hsl:new RegExp("hsl"+Jz),hsla:new RegExp("hsla"+Qz),hsv:new RegExp("hsv"+Jz),hsva:new RegExp("hsva"+Qz),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function uae(n){if(n=n.trim().toLowerCase(),n.length===0)return!1;var e=!1;if(BK[n])n=BK[n],e=!0;else if(n==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=zb.rgb.exec(n);return t?{r:t[1],g:t[2],b:t[3]}:(t=zb.rgba.exec(n),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=zb.hsl.exec(n),t?{h:t[1],s:t[2],l:t[3]}:(t=zb.hsla.exec(n),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=zb.hsv.exec(n),t?{h:t[1],s:t[2],v:t[3]}:(t=zb.hsva.exec(n),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=zb.hex8.exec(n),t?{r:Oy(t[1]),g:Oy(t[2]),b:Oy(t[3]),a:jK(t[4]),format:e?"name":"hex8"}:(t=zb.hex6.exec(n),t?{r:Oy(t[1]),g:Oy(t[2]),b:Oy(t[3]),format:e?"name":"hex"}:(t=zb.hex4.exec(n),t?{r:Oy(t[1]+t[1]),g:Oy(t[2]+t[2]),b:Oy(t[3]+t[3]),a:jK(t[4]+t[4]),format:e?"name":"hex8"}:(t=zb.hex3.exec(n),t?{r:Oy(t[1]+t[1]),g:Oy(t[2]+t[2]),b:Oy(t[3]+t[3]),format:e?"name":"hex"}:!1)))))))))}function gC(n){return Boolean(zb.CSS_UNIT.exec(String(n)))}var GF=2,UK=.16,fae=.05,dae=.05,pae=.15,ZK=5,VK=4,vae=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function zK(n){var e=n.r,t=n.g,r=n.b,s=iae(e,t,r);return{h:s.h*360,s:s.s,v:s.v}}function $F(n){var e=n.r,t=n.g,r=n.b;return"#".concat(sae(e,t,r,!1))}function hae(n,e,t){var r=t/100,s={r:(e.r-n.r)*r+n.r,g:(e.g-n.g)*r+n.g,b:(e.b-n.b)*r+n.b};return s}function WK(n,e,t){var r;return Math.round(n.h)>=60&&Math.round(n.h)<=240?r=t?Math.round(n.h)-GF*e:Math.round(n.h)+GF*e:r=t?Math.round(n.h)+GF*e:Math.round(n.h)-GF*e,r<0?r+=360:r>=360&&(r-=360),r}function HK(n,e,t){if(n.h===0&&n.s===0)return n.s;var r;return t?r=n.s-UK*e:e===VK?r=n.s+UK:r=n.s+fae*e,r>1&&(r=1),t&&e===ZK&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function GK(n,e,t){var r;return t?r=n.v+dae*e:r=n.v-pae*e,r>1&&(r=1),Number(r.toFixed(2))}function qz(n){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],r=D4(n),s=ZK;s>0;s-=1){var c=zK(r),f=$F(D4({h:WK(c,s,!0),s:HK(c,s,!0),v:GK(c,s,!0)}));t.push(f)}t.push($F(r));for(var T=1;T<=VK;T+=1){var R=zK(r),I=$F(D4({h:WK(R,T),s:HK(R,T),v:GK(R,T)}));t.push(I)}return e.theme==="dark"?vae.map(function(B){var Y=B.index,q=B.opacity,ie=$F(hae(D4(e.backgroundColor||"#141414"),D4(t[Y]),q*100));return ie}):t}var eW={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},KF={},tW={};Object.keys(eW).forEach(function(n){KF[n]=qz(eW[n]),KF[n].primary=KF[n][5],tW[n]=qz(eW[n],{theme:"dark",backgroundColor:"#141414"}),tW[n].primary=tW[n][5]});var mae=KF.blue;function $K(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),t.push.apply(t,r)}return t}function gE(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?$K(Object(t),!0).forEach(function(r){zF(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):$K(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function gae(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function _ae(n,e){if(!n)return!1;if(n.contains)return n.contains(e);for(var t=e;t;){if(t===n)return!0;t=t.parentNode}return!1}var KK="data-rc-order",YK="data-rc-priority",yae="rc-util-key",nW=new Map;function XK(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.mark;return e?e.startsWith("data-")?e:"data-".concat(e):yae}function rW(n){if(n.attachTo)return n.attachTo;var e=document.querySelector("head");return e||document.body}function bae(n){return n==="queue"?"prependQueue":n?"prepend":"append"}function JK(n){return Array.from((nW.get(n)||n).children).filter(function(e){return e.tagName==="STYLE"})}function QK(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!gae())return null;var t=e.csp,r=e.prepend,s=e.priority,c=s===void 0?0:s,f=bae(r),T=f==="prependQueue",R=document.createElement("style");R.setAttribute(KK,f),T&&c&&R.setAttribute(YK,"".concat(c)),t!=null&&t.nonce&&(R.nonce=t==null?void 0:t.nonce),R.innerHTML=n;var I=rW(e),B=I.firstChild;if(r){if(T){var Y=JK(I).filter(function(q){if(!["prepend","prependQueue"].includes(q.getAttribute(KK)))return!1;var ie=Number(q.getAttribute(YK)||0);return c>=ie});if(Y.length)return I.insertBefore(R,Y[Y.length-1].nextSibling),R}I.insertBefore(R,B)}else I.appendChild(R);return R}function xae(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=rW(e);return JK(t).find(function(r){return r.getAttribute(XK(e))===n})}function Eae(n,e){var t=nW.get(n);if(!t||!_ae(document,t)){var r=QK("",e),s=r.parentNode;nW.set(n,s),n.removeChild(r)}}function Sae(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=rW(t);Eae(r,t);var s=xae(e,t);if(s){var c,f;if((c=t.csp)!==null&&c!==void 0&&c.nonce&&s.nonce!==((f=t.csp)===null||f===void 0?void 0:f.nonce)){var T;s.nonce=(T=t.csp)===null||T===void 0?void 0:T.nonce}return s.innerHTML!==n&&(s.innerHTML=n),s}var R=QK(n,t);return R.setAttribute(XK(t),e),R}function qK(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}function Cae(n){return qK(n)instanceof ShadowRoot}function wae(n){return Cae(n)?qK(n):null}var aW={},Tae=[],Aae=function(e){Tae.push(e)};function Mae(n,e){if(!1)var t}function kae(n,e){if(!1)var t}function Pae(){aW={}}function eY(n,e,t){!e&&!aW[t]&&(n(!1,t),aW[t]=!0)}function YF(n,e){eY(Mae,n,e)}function Rae(n,e){eY(kae,n,e)}YF.preMessage=Aae,YF.resetWarned=Pae,YF.noteOnce=Rae;function Oae(n){return n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function iW(n,e){YF(n,"[@ant-design/icons] ".concat(e))}function tY(n){return zw(n)==="object"&&typeof n.name=="string"&&typeof n.theme=="string"&&(zw(n.icon)==="object"||typeof n.icon=="function")}function nY(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(n).reduce(function(e,t){var r=n[t];switch(t){case"class":e.className=r,delete e.class;break;default:delete e[t],e[Oae(t)]=r}return e},{})}function oW(n,e,t){return t?h.createElement(n.tag,gE(gE({key:e},nY(n.attrs)),t),(n.children||[]).map(function(r,s){return oW(r,"".concat(e,"-").concat(n.tag,"-").concat(s))})):h.createElement(n.tag,gE({key:e},nY(n.attrs)),(n.children||[]).map(function(r,s){return oW(r,"".concat(e,"-").concat(n.tag,"-").concat(s))}))}function rY(n){return qz(n)[0]}function aY(n){return n?Array.isArray(n)?n:[n]:[]}var Iae={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Dae=`
|
||
.anticon {
|
||
display: inline-block;
|
||
color: inherit;
|
||
font-style: normal;
|
||
line-height: 0;
|
||
text-align: center;
|
||
text-transform: none;
|
||
vertical-align: -0.125em;
|
||
text-rendering: optimizeLegibility;
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
|
||
.anticon > * {
|
||
line-height: 1;
|
||
}
|
||
|
||
.anticon svg {
|
||
display: inline-block;
|
||
}
|
||
|
||
.anticon::before {
|
||
display: none;
|
||
}
|
||
|
||
.anticon .anticon-icon {
|
||
display: block;
|
||
}
|
||
|
||
.anticon[tabindex] {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.anticon-spin::before,
|
||
.anticon-spin {
|
||
display: inline-block;
|
||
-webkit-animation: loadingCircle 1s infinite linear;
|
||
animation: loadingCircle 1s infinite linear;
|
||
}
|
||
|
||
@-webkit-keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
@keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
`,iY=function(e){var t=(0,h.useContext)(Kz),r=t.csp,s=t.prefixCls,c=Dae;s&&(c=c.replace(/anticon/g,s)),(0,h.useEffect)(function(){var f=e.current,T=wae(f);Sae(c,"@ant-design-icons",{prepend:!0,csp:r,attachTo:T})},[])},Nae=["icon","className","onClick","style","primaryColor","secondaryColor"],N4={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Lae(n){var e=n.primaryColor,t=n.secondaryColor;N4.primaryColor=e,N4.secondaryColor=t||rY(e),N4.calculated=!!t}function Fae(){return gE({},N4)}var XF=function(e){var t=e.icon,r=e.className,s=e.onClick,c=e.style,f=e.primaryColor,T=e.secondaryColor,R=WF(e,Nae),I=h.useRef(),B=N4;if(f&&(B={primaryColor:f,secondaryColor:T||rY(f)}),iY(I),iW(tY(t),"icon should be icon definiton, but got ".concat(t)),!tY(t))return null;var Y=t;return Y&&typeof Y.icon=="function"&&(Y=gE(gE({},Y),{},{icon:Y.icon(B.primaryColor,B.secondaryColor)})),oW(Y.icon,"svg-".concat(Y.name),gE(gE({className:r,onClick:s,style:c,"data-icon":Y.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},R),{},{ref:I}))};XF.displayName="IconReact",XF.getTwoToneColors=Fae,XF.setTwoToneColors=Lae;var sW=XF;function oY(n){var e=aY(n),t=FK(e,2),r=t[0],s=t[1];return sW.setTwoToneColors({primaryColor:r,secondaryColor:s})}function jae(){var n=sW.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}var Bae=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];oY(mae.primary);var JF=h.forwardRef(function(n,e){var t,r=n.className,s=n.icon,c=n.spin,f=n.rotate,T=n.tabIndex,R=n.onClick,I=n.twoToneColor,B=WF(n,Bae),Y=h.useContext(Kz),q=Y.prefixCls,ie=q===void 0?"anticon":q,ge=Y.rootClassName,Oe=Km()(ge,ie,(t={},zF(t,"".concat(ie,"-").concat(s.name),!!s.name),zF(t,"".concat(ie,"-spin"),!!c||s.name==="loading"),t),r),Ne=T;Ne===void 0&&R&&(Ne=-1);var He=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,st=aY(I),pt=FK(st,2),Ut=pt[0],pn=pt[1];return h.createElement("span",A1({role:"img","aria-label":s.name},B,{ref:e,tabIndex:Ne,onClick:R,className:Oe}),h.createElement(sW,{icon:s,primaryColor:Ut,secondaryColor:pn,style:He}))});JF.displayName="AntdIcon",JF.getTwoToneColor=jae,JF.setTwoToneColor=oY;var vO=JF,Uae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},Zae=Uae,Vae=function(e,t){return h.createElement(vO,A1({},e,{ref:t,icon:Zae}))},lW=h.forwardRef(Vae),zae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 00-26.5-5.4H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h129.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM184 456V172h81v284h-81zm627.2 160.4H496.8l9.6 198.4c.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7a44.28 44.28 0 01-42.2-32.3L329 459.2V172h415.4a56.85 56.85 0 0133.6 51.8c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0119.6 43c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0119.6 43c0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19a56.76 56.76 0 0119.6 43c0 19.1-11 37.5-28.8 48.4z"}}]},name:"dislike",theme:"outlined"},Wae=zae,Hae=function(e,t){return h.createElement(vO,A1({},e,{ref:t,icon:Wae}))},Gae=h.forwardRef(Hae),$ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Kae=$ae,Yae=function(e,t){return h.createElement(vO,A1({},e,{ref:t,icon:Kae}))},sY=h.forwardRef(Yae),Xae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Jae=Xae,Qae=function(e,t){return h.createElement(vO,A1({},e,{ref:t,icon:Jae}))},qae=h.forwardRef(Qae),eie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},tie=eie,nie=function(e,t){return h.createElement(vO,A1({},e,{ref:t,icon:tie}))},rie=h.forwardRef(nie),aie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},iie=aie,oie=function(e,t){return h.createElement(vO,A1({},e,{ref:t,icon:iie}))},lY=h.forwardRef(oie),hh={};/** @license React v16.13.1
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var cY;function sie(){if(cY)return hh;cY=1;var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,f=n?Symbol.for("react.provider"):60109,T=n?Symbol.for("react.context"):60110,R=n?Symbol.for("react.async_mode"):60111,I=n?Symbol.for("react.concurrent_mode"):60111,B=n?Symbol.for("react.forward_ref"):60112,Y=n?Symbol.for("react.suspense"):60113,q=n?Symbol.for("react.suspense_list"):60120,ie=n?Symbol.for("react.memo"):60115,ge=n?Symbol.for("react.lazy"):60116,Oe=n?Symbol.for("react.block"):60121,Ne=n?Symbol.for("react.fundamental"):60117,He=n?Symbol.for("react.responder"):60118,st=n?Symbol.for("react.scope"):60119;function pt(pn){if(typeof pn=="object"&&pn!==null){var yn=pn.$$typeof;switch(yn){case e:switch(pn=pn.type,pn){case R:case I:case r:case c:case s:case Y:return pn;default:switch(pn=pn&&pn.$$typeof,pn){case T:case B:case ge:case ie:case f:return pn;default:return yn}}case t:return yn}}}function Ut(pn){return pt(pn)===I}return hh.AsyncMode=R,hh.ConcurrentMode=I,hh.ContextConsumer=T,hh.ContextProvider=f,hh.Element=e,hh.ForwardRef=B,hh.Fragment=r,hh.Lazy=ge,hh.Memo=ie,hh.Portal=t,hh.Profiler=c,hh.StrictMode=s,hh.Suspense=Y,hh.isAsyncMode=function(pn){return Ut(pn)||pt(pn)===R},hh.isConcurrentMode=Ut,hh.isContextConsumer=function(pn){return pt(pn)===T},hh.isContextProvider=function(pn){return pt(pn)===f},hh.isElement=function(pn){return typeof pn=="object"&&pn!==null&&pn.$$typeof===e},hh.isForwardRef=function(pn){return pt(pn)===B},hh.isFragment=function(pn){return pt(pn)===r},hh.isLazy=function(pn){return pt(pn)===ge},hh.isMemo=function(pn){return pt(pn)===ie},hh.isPortal=function(pn){return pt(pn)===t},hh.isProfiler=function(pn){return pt(pn)===c},hh.isStrictMode=function(pn){return pt(pn)===s},hh.isSuspense=function(pn){return pt(pn)===Y},hh.isValidElementType=function(pn){return typeof pn=="string"||typeof pn=="function"||pn===r||pn===I||pn===c||pn===s||pn===Y||pn===q||typeof pn=="object"&&pn!==null&&(pn.$$typeof===ge||pn.$$typeof===ie||pn.$$typeof===f||pn.$$typeof===T||pn.$$typeof===B||pn.$$typeof===Ne||pn.$$typeof===He||pn.$$typeof===st||pn.$$typeof===Oe)},hh.typeOf=pt,hh}var uY={};/** @license React v16.13.1
|
||
* react-is.development.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var fY;function ise(){return fY||(fY=1),uY}sie();function lie(n,e,t){var r=h.useRef({});return(!("value"in r.current)||t(r.current.condition,e))&&(r.current.value=n(),r.current.condition=e),r.current.value}function cie(n,e){typeof n=="function"?n(e):zw(n)==="object"&&n&&"current"in n&&(n.current=e)}function uie(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=e.filter(function(s){return s});return r.length<=1?r[0]:function(s){e.forEach(function(c){cie(c,s)})}}function fie(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return lie(function(){return uie.apply(void 0,e)},e,function(r,s){return r.length!==s.length||r.every(function(c,f){return c!==s[f]})})}var die=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],dY=h.forwardRef(function(n,e){var t=n.className,r=n.component,s=n.viewBox,c=n.spin,f=n.rotate,T=n.tabIndex,R=n.onClick,I=n.children,B=WF(n,die),Y=h.useRef(),q=fie(Y,e);iW(Boolean(r||I),"Should have `component` prop or `children`."),iY(Y);var ie=h.useContext(Kz),ge=ie.prefixCls,Oe=ge===void 0?"anticon":ge,Ne=ie.rootClassName,He=Km()(Ne,Oe,t),st=Km()(zF({},"".concat(Oe,"-spin"),!!c)),pt=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,Ut=gE(gE({},Iae),{},{className:st,style:pt,viewBox:s});s||delete Ut.viewBox;var pn=function(){return r?h.createElement(r,Ut,I):I?(iW(Boolean(s)||h.Children.count(I)===1&&h.isValidElement(I)&&h.Children.only(I).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),h.createElement("svg",A1({},Ut,{viewBox:s}),I)):null},yn=T;return yn===void 0&&R&&(yn=-1),h.createElement("span",A1({role:"img"},B,{ref:q,tabIndex:yn,onClick:R,className:He}),pn())});dY.displayName="AntdIcon";var pie=dY,vie=["type","children"],pY=new Set;function hie(n){return Boolean(typeof n=="string"&&n.length&&!pY.has(n))}function QF(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=n[e];if(hie(t)){var r=document.createElement("script");r.setAttribute("src",t),r.setAttribute("data-namespace",t),n.length>e+1&&(r.onload=function(){QF(n,e+1)},r.onerror=function(){QF(n,e+1)}),pY.add(t),document.body.appendChild(r)}}function mie(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.scriptUrl,t=n.extraCommonProps,r=t===void 0?{}:t;e&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(e)?QF(e.reverse()):QF([e]));var s=h.forwardRef(function(c,f){var T=c.type,R=c.children,I=WF(c,vie),B=null;return c.type&&(B=h.createElement("use",{xlinkHref:"#".concat(T)})),R&&(B=R),h.createElement(pie,A1({},r,I,{ref:f}),B)});return s.displayName="Iconfont",s}var gie=20,cW=function(n){var e,t=n.modelId,r=n.drillDownDimension,s=n.isMetricCard,c=n.dimensionFilters,f=n.onSelectDimension,T=(0,h.useState)([]),R=T[0],I=T[1],B=s?3:5,Y="".concat(Zw,"-drill-down-dimensions"),q=function(){return Pe(void 0,void 0,void 0,function(){var Ne;return pe(this,function(He){switch(He.label){case 0:return[4,Hre(t)];case 1:return Ne=He.sent(),I(Ne.data.data.dimensions.filter(function(st){return!(c==null?void 0:c.some(function(pt){return pt.name===st.name}))}).slice(0,gie)),[2]}})})};(0,h.useEffect)(function(){q()},[]);var ie=function(){f(void 0)},ge=R.slice(0,B),Oe=Km()("".concat(Y,"-section"),(e={},e["".concat(Y,"-metric-card")]=s,e));return(0,D.jsx)("div",Q({className:Y},{children:(0,D.jsxs)("div",Q({className:Oe},{children:[(0,D.jsx)("div",Q({className:"".concat(Y,"-title")},{children:"\u63A8\u8350\u4E0B\u94BB\u7EF4\u5EA6\uFF1A"})),(0,D.jsxs)("div",Q({className:"".concat(Y,"-content")},{children:[ge.map(function(Ne,He){var st,pt=Km()("".concat(Y,"-content-item-name"),(st={},st["".concat(Y,"-content-item-active")]=(r==null?void 0:r.id)===Ne.id,st));return(0,D.jsxs)("div",{children:[(0,D.jsx)("span",Q({className:pt,onClick:function(){f((r==null?void 0:r.id)===Ne.id?void 0:Ne)}},{children:Ne.name})),He!==ge.length-1&&(0,D.jsx)("span",{children:"\u3001"})]})}),R.length>B&&(0,D.jsxs)("div",{children:[(0,D.jsx)("span",{children:"\u3001"}),(0,D.jsx)(CK.Z,Q({menu:{items:R.slice(B).map(function(Ne){var He,st=Km()((He={},He["".concat(Y,"-menu-item-active")]=(r==null?void 0:r.id)===Ne.id,He));return{label:(0,D.jsx)("span",Q({className:st,onClick:function(){f(Ne)}},{children:Ne.name})),key:Ne.id}})}},{children:(0,D.jsxs)("span",{children:[(0,D.jsx)("span",Q({className:"".concat(Y,"-content-item-name")},{children:"\u66F4\u591A"})),(0,D.jsx)(sY,{className:"".concat(Y,"-down-arrow")})]})}))]}),r&&(0,D.jsx)("div",Q({className:"".concat(Y,"-cancel-drill-down"),onClick:ie},{children:"\u53D6\u6D88\u4E0B\u94BB"}))]}))]}))}))},_ie=function(n){var e,t=n.data,r=n.triggerResize,s=n.drillDownDimension,c=n.loading,f=n.onSelectDimension,T=n.onApplyAuth,R=(0,h.useRef)(),I=(0,h.useState)(),B=I[0],Y=I[1],q=t.queryColumns,ie=t.queryResults,ge=t.entityInfo,Oe=t.chatContext,Ne=t.queryMode,He=Oe||{};He.dateInfo,He.dimensionFilters;var st=((e=q==null?void 0:q.find(function(jn){return jn.showType==="CATEGORY"}))===null||e===void 0?void 0:e.nameEn)||"",pt=q==null?void 0:q.find(function(jn){return jn.showType==="NUMBER"}),Ut=(pt==null?void 0:pt.nameEn)||"",pn=function(){var jn;B?jn=B:(jn=q2(R.current),Y(jn));var Cr=(ie||[]).sort(function(Rr,Er){return Er[Ut]-Rr[Ut]}),Nr=Cr.map(function(Rr){return Rr[st]});jn.setOption({xAxis:{type:"category",axisTick:{show:!1},axisLine:{lineStyle:{color:Gz}},axisLabel:{width:200,overflow:"truncate",showMaxLabel:!0,hideOverlap:!1,interval:0,color:"#333",rotate:30},data:Nr},yAxis:{type:"value",splitLine:{lineStyle:{opacity:.3}},axisLabel:{formatter:function(Rr){return Rr===0?0:Vw(Rr)}}},tooltip:{trigger:"axis",formatter:function(Rr){var Er=Rr[0],ma=Rr.map(function(wa){return'<div style="margin-top: 3px;">'.concat(wa.marker,' <span style="display: inline-block; width: 70px; margin-right: 12px;">').concat(wa.seriesName,'</span><span style="display: inline-block; width: 90px; text-align: right; font-weight: 500;">').concat(Vw(wa.value),"</span></div>")}).join("");return"".concat(Er.name,"<br />").concat(ma)}},grid:{left:"2%",right:"1%",bottom:"3%",top:20,containLabel:!0},series:{type:"bar",name:pt==null?void 0:pt.name,barWidth:20,itemStyle:{borderRadius:[10,10,0,0],color:new pb(0,0,0,1,[{offset:0,color:AK},{offset:1,color:Lre(AK)}])},label:{show:!0,position:"top",formatter:function(Rr){var Er=Rr.value;return Vw(Er)}},data:Cr.map(function(Rr){return Rr[(pt==null?void 0:pt.nameEn)||""]})}}),jn.resize()};if((0,h.useEffect)(function(){ie&&ie.length>0&&(pt==null?void 0:pt.authorized)&&pn()},[ie]),(0,h.useEffect)(function(){r&&B&&B.resize()},[r]),pt&&!(pt==null?void 0:pt.authorized))return(0,D.jsx)(IK,{model:(ge==null?void 0:ge.modelInfo.name)||"",chartType:"barChart",onApplyAuth:T});var yn="".concat(w1,"-bar");return(0,D.jsxs)("div",{children:[(0,D.jsxs)("div",Q({className:"".concat(yn,"-top-bar")},{children:[(0,D.jsx)("div",Q({className:"".concat(yn,"-indicator-name")},{children:pt==null?void 0:pt.name})),s&&(0,D.jsxs)("div",Q({className:"".concat(yn,"-filter-section-wrapper")},{children:["(",(0,D.jsx)("div",Q({className:"".concat(yn,"-filter-section")},{children:s&&(0,D.jsxs)("div",Q({className:"".concat(yn,"-filter-item")},{children:[(0,D.jsx)("div",Q({className:"".concat(yn,"-filter-item-label")},{children:"\u4E0B\u94BB\u7EF4\u5EA6\uFF1A"})),(0,D.jsx)("div",Q({className:"".concat(yn,"-filter-item-value")},{children:s.name}))]}))})),")"]}))]})),(0,D.jsx)(O4.Z,Q({spinning:c},{children:(0,D.jsx)("div",{className:"".concat(yn,"-chart"),ref:R})})),Ne.includes("METRIC")&&(0,D.jsx)(cW,{modelId:Oe.modelId,drillDownDimension:s,dimensionFilters:Oe.dimensionFilters,onSelectDimension:f})]})},uW=mie({scriptUrl:"//at.alicdn.com/t/c/font_4120566_qiku6b2kol.js"}),vY=function(n){var e,t=n.title,r=n.value,s="".concat(w1,"-metric-card"),c=Km()("".concat(s,"-period-compare-item-value"),(e={},e["".concat(s,"-period-compare-item-value-up")]=!r.includes("-"),e["".concat(s,"-period-compare-item-value-down")]=r.includes("-"),e));return(0,D.jsxs)("div",Q({className:"".concat(s,"-period-compare-item")},{children:[(0,D.jsx)("div",Q({className:"".concat(s,"-period-compare-item-title")},{children:t})),(0,D.jsxs)("div",Q({className:c},{children:[(0,D.jsx)(uW,{type:r.includes("-")?"icon-xiajiang":"icon-shangsheng"}),(0,D.jsx)("div",{children:r})]}))]}))},yie=function(n){var e,t,r,s,c=n.data,f=n.drillDownDimension,T=n.loading,R=n.onSelectDimension,I=n.onApplyAuth,B=c.queryMode,Y=c.queryColumns,q=c.queryResults,ie=c.entityInfo,ge=c.aggregateInfo,Oe=c.chatContext,Ne=(ge||{}).metricInfos,He=(Oe||{}).dateInfo,st=(He||{}).startDate,pt=Y==null?void 0:Y.find(function(ma){return ma.showType==="NUMBER"}),Ut=(pt==null?void 0:pt.nameEn)||"",pn="".concat(w1,"-metric-card"),yn=Km()(pn,(e={},e["".concat(w1,"-metric-card-dsl")]=B==="DSL",e)),jn=Km()("".concat(pn,"-indicator"),(t={},t["".concat(pn,"-indicator-period-compare")]=(Ne==null?void 0:Ne.length)>0,t)),Cr=(0,h.useState)(!1),Nr=Cr[0],Rr=Cr[1],Er=function(){Rr(!Nr)};return(0,D.jsxs)("div",Q({className:yn},{children:[(0,D.jsxs)("div",Q({className:"".concat(pn,"-top-bar")},{children:[(pt==null?void 0:pt.name)?(0,D.jsx)("div",Q({className:"".concat(pn,"-indicator-name")},{children:pt==null?void 0:pt.name})):(0,D.jsx)("div",{style:{height:6}}),f&&(0,D.jsxs)("div",Q({className:"".concat(pn,"-filter-section-wrapper")},{children:["(",(0,D.jsx)("div",Q({className:"".concat(pn,"-filter-section")},{children:f&&(0,D.jsxs)("div",Q({className:"".concat(pn,"-filter-item")},{children:[(0,D.jsx)("div",Q({className:"".concat(pn,"-filter-item-label")},{children:"\u4E0B\u94BB\u7EF4\u5EA6\uFF1A"})),(0,D.jsx)("div",Q({className:"".concat(pn,"-filter-item-value")},{children:f.name}))]}))})),")"]}))]})),(0,D.jsx)(O4.Z,Q({spinning:T},{children:(0,D.jsxs)("div",Q({className:jn},{children:[(0,D.jsx)("div",Q({className:"".concat(pn,"-date-range")},{children:st})),pt&&!(pt==null?void 0:pt.authorized)?(0,D.jsx)($z,{model:(ie==null?void 0:ie.modelInfo.name)||"",onApplyAuth:I}):(0,D.jsxs)("div",Q({style:{display:"flex",alignItems:"flex-end"}},{children:[(0,D.jsx)("div",Q({className:"".concat(pn,"-indicator-value")},{children:Nr?PK((r=q==null?void 0:q[0])===null||r===void 0?void 0:r[Ut])||"-":RK(+((s=q==null?void 0:q[0])===null||s===void 0?void 0:s[Ut]))})),(0,D.jsx)("div",Q({className:"".concat(pn,"-indicator-switch")},{children:(0,D.jsx)(lY,{onClick:Er})}))]})),(Ne==null?void 0:Ne.length)>0&&(0,D.jsx)("div",Q({className:"".concat(pn,"-period-compare")},{children:Object.keys(Ne[0].statistics).map(function(ma){return(0,D.jsx)(vY,{title:ma,value:Ne[0].statistics[ma]})})}))]}))})),B.includes("METRIC")&&(0,D.jsx)("div",Q({className:"".concat(pn,"-drill-down-dimensions")},{children:(0,D.jsx)(cW,{modelId:Oe.modelId,dimensionFilters:Oe.dimensionFilters,drillDownDimension:f,onSelectDimension:R})}))]}))},bie=function(n){var e,t=n.model,r=n.dateColumnName,s=n.categoryColumnName,c=n.metricField,f=n.resultList,T=n.triggerResize,R=n.onApplyAuth,I=(0,h.useRef)(),B=(0,h.useState)(),Y=B[0],q=B[1],ie=function(){var Ne,He;Y?(He=Y,He.clear()):(He=q2(I.current),q(He));var st=c.nameEn,pt=f.map(function(Er){var ma;return Q(Q({},Er),(ma={},ma[r]=Array.isArray(Er[r])?Rt()(Er[r].join("")).format("MM-DD"):Er[r],ma))}),Ut=Pre(pt,s),pn=Ire(pt,r),yn=pn[0],jn=pn[1],Cr=Object.keys(Ut).reduce(function(Er,ma){return Er[ma]=yn&&jn&&(r.includes("date")||r.includes("month"))?Ore(Ut[ma],r,st,yn,jn,r.includes("month")?"months":"days"):Ut[ma],Er},{}),Nr=Object.keys(Cr).sort(function(Er,ma){return Cr[ma][Cr[ma].length-1][st]-Cr[Er][Cr[Er].length-1][st]}),Rr=(Ne=Cr[Nr[0]])===null||Ne===void 0?void 0:Ne.map(function(Er){var ma="".concat(Er[r]);return ma.length===10?Rt()(ma).format("MM-DD"):ma});He.setOption({legend:s&&{left:0,top:0,icon:"rect",itemWidth:15,itemHeight:5,type:"scroll"},xAxis:{type:"category",axisTick:{alignWithLabel:!0,lineStyle:{color:Gz}},axisLine:{lineStyle:{color:Gz}},axisLabel:{showMaxLabel:!0,color:"#999"},data:Rr},yAxis:{type:"value",splitLine:{lineStyle:{opacity:.3}},axisLabel:{formatter:function(Er){var ma;return Er===0?0:c.dataFormatType==="percent"?"".concat(I4(Er,((ma=c.dataFormat)===null||ma===void 0?void 0:ma.decimalPlaces)||2),"%"):Vw(Er)}}},tooltip:{trigger:"axis",formatter:function(Er){var ma=Er[0],wa=Er.sort(function(Ga,Ei){return Ei.value-Ga.value}).map(function(Ga){var Ei;return'<div style="margin-top: 3px;">'.concat(Ga.marker,' <span style="display: inline-block; width: 70px; margin-right: 12px;">').concat(Ga.seriesName,'</span><span style="display: inline-block; width: 90px; text-align: right; font-weight: 500;">').concat(Ga.value===""?"-":c.dataFormatType==="percent"?"".concat(I4(Ga.value,((Ei=c.dataFormat)===null||Ei===void 0?void 0:Ei.decimalPlaces)||2),"%"):Vw(Ga.value),"</span></div>")}).join("");return"".concat(ma.name,"<br />").concat(wa)}},grid:{left:"1%",right:"4%",bottom:"3%",top:s?45:20,containLabel:!0},series:Nr.slice(0,20).map(function(Er,ma){var wa=Cr[Er];return{type:"line",name:s?Er:c.name,symbol:"circle",showSymbol:wa.length===1,smooth:!0,data:wa.map(function(Ga){var Ei,Vi=Ga[st];return c.dataFormatType==="percent"&&((Ei=c.dataFormat)===null||Ei===void 0?void 0:Ei.needMultiply100)?Vi*100:Vi}),color:Tre[ma]}})}),He.resize()};(0,h.useEffect)(function(){c.authorized&&ie()},[f,c]),(0,h.useEffect)(function(){T&&Y&&Y.resize()},[T]);var ge="".concat(Zw,"-metric-trend"),Oe=Km()("".concat(ge,"-flow-trend-chart"),(e={},e["".concat(ge,"-flow-trend-chart-single")]=!s,e));return(0,D.jsx)("div",{children:c.authorized?(0,D.jsx)("div",{className:Oe,ref:I}):(0,D.jsx)(IK,{model:t||"",onApplyAuth:R})})},fW=function(n){var e=n.data,t=n.size,r=n.onApplyAuth,s=e.entityInfo,c=e.queryColumns,f=e.queryResults,T="".concat(Zw,"-table"),R=c.map(function(B){var Y=B.name,q=B.nameEn,ie=B.showType,ge=B.dataFormatType,Oe=B.dataFormat,Ne=B.authorized;return{dataIndex:q,key:q,title:Y||q,render:function(He){return Ne?ge==="percent"?(0,D.jsx)("div",Q({className:"".concat(T,"-formatted-value")},{children:"".concat(I4((Oe==null?void 0:Oe.needMultiply100)?+He*100:He,(Oe==null?void 0:Oe.decimalPlaces)||2),"%")})):ie==="NUMBER"?(0,D.jsx)("div",Q({className:"".concat(T,"-formatted-value")},{children:Vw(He)})):q.includes("photo")?(0,D.jsx)("div",Q({className:"".concat(T,"-photo")},{children:(0,D.jsx)("img",{width:40,height:40,src:He,alt:""})})):He:(0,D.jsx)($z,{model:(s==null?void 0:s.modelInfo.name)||"",onApplyAuth:r})}}}),I=function(B,Y){return Y%2!=0?"".concat(T,"-even-row"):""};return(0,D.jsx)("div",Q({className:T},{children:(0,D.jsx)(wK.Z,{pagination:f.length<=10?!1:{defaultPageSize:10,position:["bottomCenter"]},columns:R,dataSource:f,style:{width:"100%",overflowX:"auto"},rowClassName:I,size:t})}))},xie=function(n){var e=n.aggregateInfo,t=(e||{}).metricInfos,r=(t==null?void 0:t[0])||{},s=r||{},c=s.date,f=s.value,T=s.statistics,R="".concat(w1,"-metric-info"),I=(0,h.useState)(!1),B=I[0],Y=I[1],q=function(){Y(!B)};return(0,D.jsx)("div",Q({className:R},{children:(0,D.jsxs)("div",Q({className:"".concat(R,"-indicator")},{children:[(0,D.jsxs)("div",Q({style:{display:"flex",alignItems:"flex-end"}},{children:[(0,D.jsx)("div",Q({className:"".concat(R,"-indicator-value")},{children:B?PK(f):RK(+f)})),(0,D.jsx)("div",Q({className:"".concat(R,"-indicator-switch")},{children:(0,D.jsx)(lY,{onClick:q})}))]})),(0,D.jsxs)("div",Q({className:"".concat(R,"-bottom-section")},{children:[(0,D.jsxs)("div",Q({className:"".concat(R,"-date")},{children:["\u6700\u65B0\u6570\u636E\u65E5\u671F\uFF1A",(0,D.jsx)("span",Q({className:"".concat(R,"-date-value")},{children:c}))]})),(t==null?void 0:t.length)>0&&(0,D.jsx)("div",Q({className:"".concat(R,"-period-compare")},{children:Object.keys(T).map(function(ie){return(0,D.jsx)(vY,{title:ie,value:t[0].statistics[ie]})})}))]}))]}))}))},Eie=function(n){var e,t=n.metrics,r=n.defaultMetric,s=n.currentMetric,c=n.isMetricCard,f=n.onSelectMetric,T=hE?2:5,R="".concat(Zw,"-metric-options"),I=t.filter(function(Y){return Y.id!==(r==null?void 0:r.id)}).slice(0,T),B=Km()("".concat(R,"-section"),(e={},e["".concat(R,"-metric-card")]=c,e));return(0,D.jsx)("div",Q({className:R},{children:(0,D.jsxs)("div",Q({className:B},{children:[(0,D.jsx)("div",Q({className:"".concat(R,"-title")},{children:"\u63A8\u8350\u76F8\u5173\u6307\u6807\uFF1A"})),(0,D.jsx)("div",Q({className:"".concat(R,"-content")},{children:I.map(function(Y,q){var ie,ge=Km()("".concat(R,"-content-item-name"),(ie={},ie["".concat(R,"-content-item-active")]=(s==null?void 0:s.id)===Y.id,ie));return(0,D.jsxs)("div",{children:[(0,D.jsx)("span",Q({className:ge,onClick:function(){f((s==null?void 0:s.id)===Y.id?r:Y)}},{children:Y.name})),q!==I.length-1&&(0,D.jsx)("span",{children:"\u3001"})]})})})),(s==null?void 0:s.id)!==(r==null?void 0:r.id)&&(0,D.jsx)("div",Q({className:"".concat(R,"-cancel-select"),onClick:function(){f(r)}},{children:"\u53D6\u6D88"}))]}))}))},Sie=function(n){var e,t,r,s,c,f,T=n.data,R=n.chartIndex,I=n.triggerResize,B=n.onApplyAuth,Y=T.entityInfo,q=T.chatContext,ie=T.queryMode,ge=q||{},Oe=ge.dateInfo,Ne=ge.dimensionFilters,He=ge.elementMatches,st=Oe||{},pt=st.dateMode,Ut=st.unit,pn=MK[(e=q==null?void 0:q.dateInfo)===null||e===void 0?void 0:e.period]||MK.DAY,yn=(0,h.useState)([]),jn=yn[0],Cr=yn[1],Nr=(0,h.useState)(),Rr=Nr[0],Er=Nr[1],ma=(0,h.useState)(),wa=ma[0],Ga=ma[1],Ei=(0,h.useState)([]),Vi=Ei[0],ns=Ei[1],zo=(0,h.useState)(),xs=zo[0],pl=zo[1],Rl=(0,h.useState)(),zl=Rl[0],Yc=Rl[1],kc=(0,h.useState)(),tf=kc[0],wf=kc[1],su=(0,h.useState)(),ic=su[0],Uc=su[1],bu=(0,h.useState)(),tc=bu[0],nf=bu[1],gd=(0,h.useState)(!1),xd=gd[0],lv=gd[1],_p=jn.find(function(Zp){return Zp.showType==="DATE"||Zp.type==="DATE"}),$v=(_p==null?void 0:_p.nameEn)||"",_v=((t=jn.find(function(Zp){return Zp.showType==="CATEGORY"}))===null||t===void 0?void 0:t.nameEn)||"",yp=(Ne==null?void 0:Ne.length)>0?Ne[0].value:void 0,Wd=(s=(r=He==null?void 0:He.find(function(Zp){var Dh;return((Dh=Zp.element)===null||Dh===void 0?void 0:Dh.type)==="ID"}))===null||r===void 0?void 0:r.element)===null||s===void 0?void 0:s.name,vu=(ie==="ENTITY_LIST_FILTER"||ie==="METRIC_ENTITY")&&typeof yp=="string"&&Wd!==void 0;(0,h.useEffect)(function(){var Zp,Dh,Gh,i_=T.queryColumns,Hb=T.queryResults,Q_=T.chatContext,ug=T.aggregateInfo,_C=(Zp=pn.find(function(gW){return pt==="RECENT"&&gW.value===Ut}))===null||Zp===void 0?void 0:Zp.value;Cr(i_||[]);var t7=(Dh=Q_==null?void 0:Q_.metrics)===null||Dh===void 0?void 0:Dh[0];Er(t7),Ga(t7),ns(Hb),pl(_C),Yc(Q_==null?void 0:Q_.dimensions),wf(void 0),Uc(ug),nf((Gh=Q_==null?void 0:Q_.dateInfo)===null||Gh===void 0?void 0:Gh.dateMode)},[T]),(0,h.useEffect)(function(){var Zp,Dh;if(ie==="METRIC_GROUPBY"){var Gh=(Zp=q==null?void 0:q.dimensions)===null||Zp===void 0?void 0:Zp.find(function(i_){return i_.type==="DIMENSION"});wf(Gh),Yc((Dh=q==null?void 0:q.dimensions)===null||Dh===void 0?void 0:Dh.filter(function(i_){return i_.id!==(Gh==null?void 0:Gh.id)}))}},[]);var Hd=function(Zp){return Pe(void 0,void 0,void 0,function(){var Dh,Gh,i_,Hb;return pe(this,function(Q_){switch(Q_.label){case 0:return lv(!0),[4,DK(Q(Q({},q),Zp))];case 1:return Dh=Q_.sent().data,lv(!1),Dh.code===200&&(Cr(((Gh=Dh.data)===null||Gh===void 0?void 0:Gh.queryColumns)||[]),ns(((i_=Dh.data)===null||i_===void 0?void 0:i_.queryResults)||[]),Uc((Hb=Dh.data)===null||Hb===void 0?void 0:Hb.aggregateInfo)),[2]}})})},Zd=function(Zp){pl(Zp),nf("RECENT"),Hd({metrics:[wa],dimensions:tf?qe(qe([],zl||[],!0),[tf],!1):void 0,dateInfo:Q(Q({},q==null?void 0:q.dateInfo),{dateMode:"RECENT",unit:Zp})})},Mv=function(Zp){Ga(Zp),Hd({dateInfo:Q(Q({},q.dateInfo),{dateMode:tc,unit:xs||q.dateInfo.unit}),dimensions:tf?qe(qe([],zl||[],!0),[tf],!1):void 0,metrics:[Zp||Rr]})},Zm=function(Zp){wf(Zp),Hd({dateInfo:Q(Q({},q.dateInfo),{dateMode:tc,unit:xs||q.dateInfo.unit}),metrics:[wa],dimensions:Zp===void 0?void 0:qe(qe([],zl||[],!0),[Zp],!1)})},rm=jn.find(function(Zp){return Zp.showType==="NUMBER"});if(!rm)return null;var Hh=((c=q==null?void 0:q.metrics)===null||c===void 0?void 0:c.length)>1,k0=ie.includes("METRIC")&&!vu,Ih="".concat(Zw,"-metric-trend");return(0,D.jsx)("div",Q({className:Ih},{children:(0,D.jsxs)("div",Q({className:"".concat(Ih,"-charts")},{children:[(0,D.jsxs)("div",Q({className:"".concat(Ih,"-top-bar")},{children:[(0,D.jsx)("div",Q({className:"".concat(Ih,"-metric-fields ").concat(Ih,"-metric-field-single")},{children:wa==null?void 0:wa.name}),wa==null?void 0:wa.bizName),tf&&(0,D.jsxs)("div",Q({className:"".concat(Ih,"-filter-section-wrapper")},{children:["(",(0,D.jsx)("div",Q({className:"".concat(Ih,"-filter-section")},{children:tf&&(0,D.jsxs)("div",Q({className:"".concat(Ih,"-filter-item")},{children:[(0,D.jsx)("div",Q({className:"".concat(Ih,"-filter-item-label")},{children:"\u4E0B\u94BB\u7EF4\u5EA6\uFF1A"})),(0,D.jsx)("div",Q({className:"".concat(Ih,"-filter-item-value")},{children:tf.name}))]}))})),")"]}))]})),(0,D.jsxs)(O4.Z,Q({spinning:xd},{children:[(0,D.jsxs)("div",Q({className:"".concat(Ih,"-content")},{children:[!hE&&((f=ic==null?void 0:ic.metricInfos)===null||f===void 0?void 0:f.length)>0&&(0,D.jsx)(xie,{aggregateInfo:ic}),(0,D.jsx)("div",Q({className:"".concat(Ih,"-date-options")},{children:pn.map(function(Zp,Dh){var Gh,i_=Km()("".concat(Ih,"-date-option"),(Gh={},Gh["".concat(Ih,"-date-active")]=Zp.value===xs,Gh["".concat(Ih,"-date-mobile")]=hE,Gh));return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("div",Q({className:i_,onClick:function(){Zd(Zp.value)}},{children:[Zp.label,Zp.value===xs&&(0,D.jsx)("div",{className:"".concat(Ih,"-active-identifier")})]}),Zp.value),Dh!==pn.length-1&&(0,D.jsx)("div",{className:"".concat(Ih,"-date-option-divider")})]})})})),(Vi==null?void 0:Vi.length)===1||R%2==1?(0,D.jsx)(fW,{data:Q(Q({},T),{queryResults:Vi}),onApplyAuth:B}):(0,D.jsx)(bie,{model:Y==null?void 0:Y.modelInfo.name,dateColumnName:$v,categoryColumnName:_v,metricField:rm,resultList:Vi,triggerResize:I,onApplyAuth:B})]})),(Hh||k0)&&(0,D.jsxs)("div",Q({className:"".concat(Ih,"-bottom-tools")},{children:[Hh&&(0,D.jsx)(Eie,{metrics:q.metrics,defaultMetric:Rr,currentMetric:wa,onSelectMetric:Mv}),k0&&(0,D.jsx)(cW,{modelId:q.modelId,drillDownDimension:tf,dimensionFilters:q.dimensionFilters,onSelectDimension:Zm})]}))]}))]}))}))},Cie=function(n){var e,t,r;n.question;var s=n.data,c=n.chartIndex;n.isMobileMode;var f=n.triggerResize,T=s.queryColumns,R=s.queryResults,I=s.chatContext,B=s.queryMode,Y=(0,h.useState)(T),q=Y[0],ie=Y[1],ge=(0,h.useState)(R),Oe=ge[0],Ne=ge[1],He=(0,h.useState)(),st=He[0],pt=He[1],Ut=(0,h.useState)(!1),pn=Ut[0],yn=Ut[1],jn="".concat(w1,"-chat-msg");if((0,h.useEffect)(function(){ie(T),Ne(R)},[T,R]),!T||!R)return null;var Cr=Oe.length===1,Nr=q.find(function(Rl){return Rl.showType==="DATE"||Rl.type==="DATE"}),Rr=q.filter(function(Rl){return Rl.showType==="CATEGORY"}),Er=q.filter(function(Rl){return Rl.showType==="NUMBER"}),ma=B==="DSL"&&Cr&&Er.length===1&&q.length===1,wa=(B.includes("METRIC")||ma)&&(Cr||((t=I==null?void 0:I.dateInfo)===null||t===void 0?void 0:t.startDate)===((r=I==null?void 0:I.dateInfo)===null||r===void 0?void 0:r.endDate)),Ga=q.length===1&&q[0].showType==="CATEGORY"&&(!B.includes("METRIC")&&!B.includes("ENTITY")||B==="METRIC_INTERPRET")&&Cr,Ei=!Ga&&!wa&&(Rr.length>1||B==="ENTITY_DETAIL"||B==="ENTITY_DIMENSION"||Rr.length===1&&Er.length===0),Vi=function(Rl){return Pe(void 0,void 0,void 0,function(){var zl,Yc,kc;return pe(this,function(tf){switch(tf.label){case 0:return yn(!0),[4,DK(Q(Q({},I),Rl))];case 1:return zl=tf.sent().data,yn(!1),zl.code===200&&(ie(((Yc=zl.data)===null||Yc===void 0?void 0:Yc.queryColumns)||[]),Ne(((kc=zl.data)===null||kc===void 0?void 0:kc.queryResults)||[])),[2]}})})},ns=function(Rl){pt(Rl),Vi({dimensions:Rl===void 0?void 0:qe(qe([],I.dimensions||[],!0),[Rl],!1)})},zo=function(){var Rl,zl,Yc=Oe[0][q[0].nameEn],kc,tf=Yc.match(/```html([\s\S]*?)```/);kc=tf&&tf[1].trim(),kc&&(Yc=Yc.replace(/```html([\s\S]*?)```/,""));var wf,su;if(kc){if(su=((Rl=kc.match(/<script src="([\s\S]*?)"><\/script>/))===null||Rl===void 0?void 0:Rl[1])||"",wf=((zl=kc.match(/<script type="text\/javascript">([\s\S]*?)<\/script>/))===null||zl===void 0?void 0:zl[1])||"",su){var ic=document.createElement("script");ic.src=su,document.body.appendChild(ic)}if(wf){var Uc=document.createElement("script");Uc.innerHTML=wf,setTimeout(function(){document.body.appendChild(Uc)},1500)}}return(0,D.jsxs)("div",Q({style:{lineHeight:"24px",width:"fit-content",maxWidth:"100%",overflowX:"hidden"}},{children:[kc?(0,D.jsx)("pre",{children:Yc}):Yc,!!kc&&(0,D.jsx)("div",{dangerouslySetInnerHTML:{__html:kc}})]}))},xs=function(){return Ga?zo():wa?(0,D.jsx)(yie,{data:Q(Q({},s),{queryColumns:q,queryResults:Oe}),loading:pn,drillDownDimension:st,onSelectDimension:ns}):Ei?(0,D.jsx)(fW,{data:Q(Q({},s),{queryColumns:q,queryResults:Oe})}):Nr&&Er.length>0&&!Oe.every(function(Rl){return Rl[Nr.nameEn]===Oe[0][Nr.nameEn]})?(0,D.jsx)(Sie,{data:Q(Q({},s),{queryColumns:q,queryResults:Oe}),chartIndex:c,triggerResize:f}):(Rr==null?void 0:Rr.length)>0&&(Er==null?void 0:Er.length)>0?(0,D.jsx)(_ie,{data:Q(Q({},s),{queryColumns:q,queryResults:Oe}),triggerResize:f,loading:pn,drillDownDimension:st,onSelectDimension:ns}):(0,D.jsx)(fW,{data:Q(Q({},s),{queryColumns:q,queryResults:Oe})})},pl=Km()((e={},e[jn]=!Ei,e));return(0,D.jsx)("div",Q({className:pl},{children:xs()}))},wie=function(n){var e,t=n.entityId,r=n.modelId,s=n.modelName,c=n.onSelect,f=(0,h.useState)([]),T=f[0],R=f[1],I=(0,h.useState)(!1),B=I[0],Y=I[1],q="".concat(Zw,"-recommend-options"),ie=function(){return Pe(void 0,void 0,void 0,function(){var Ne;return pe(this,function(He){switch(He.label){case 0:return Y(!0),[4,Wre(t,r)];case 1:return Ne=He.sent(),Y(!1),R(Ne.data.data),[2]}})})};(0,h.useEffect)(function(){t&&ie()},[t]);var ge=function(){var Ne={dataIndex:"name",key:"name",title:"\u57FA\u672C\u4FE1\u606F",render:function(pt,Ut){return(0,D.jsxs)("div",Q({className:"".concat(q,"-item-name-column")},{children:[(0,D.jsx)(wre.Z,{shape:"square",icon:(0,D.jsx)(uW,{type:s==="\u827A\u4EBA\u5E93"?"icon-geshou":"icon-zhuanji"}),src:Ut.url}),(0,D.jsxs)("div",Q({className:"".concat(q,"-entity-name")},{children:[pt,Ut.ver&&Ut.ver!=="\u5B8C\u6574\u7248"&&Ut.ver!=="-"&&"(".concat(Ut.ver,")"),Ut.singerName&&" - ".concat(Ut.singerName)]}))]}))}},He=s.includes("\u6B4C\u66F2")?"tme3platAvgLogYyPlayCnt":"tme3platJsPlayCnt",st=hE?[Ne]:[Ne,s.includes("\u827A\u4EBA")?{dataIndex:"onlineSongCnt",key:"onlineSongCnt",title:"\u5728\u67B6\u6B4C\u66F2\u6570",align:"center",render:function(pt){return pt?Vw(+pt):"-"}}:{dataIndex:"publishTime",key:"publishTime",title:"\u53D1\u5E03\u65F6\u95F4",align:"center",render:function(pt){return pt?Rt()(pt).format("YYYY-MM-DD"):"-"}},{dataIndex:He,key:He,align:"center",title:s.includes("\u6B4C\u66F2")?"\u8FD17\u5929\u65E5\u5747\u8FD0\u8425\u64AD\u653E\u91CF":"\u6628\u65E5\u7ED3\u7B97\u64AD\u653E\u91CF",render:function(pt){return pt?Vw(+pt):"-"}}];return(0,D.jsx)(wK.Z,{rowKey:"id",columns:st,dataSource:T,showHeader:!hE,size:"small",pagination:!1,loading:B,className:"".concat(q,"-table"),rowClassName:"".concat(q,"-table-row"),onRow:function(pt){return{onClick:function(){c(pt.id)}}}})},Oe=Km()(q,(e={},e["".concat(q,"-mobile-mode")]=hE,e));return(0,D.jsx)("div",Q({className:Oe},{children:ge()}))},Tie=function(n){var e,t=n.entityName,r=n.chatContext,s=n.onSwitchEntity,c=(0,h.useState)(!1),f=c[0],T=c[1],R=r||{},I=R.modelId,B=R.modelName,Y=R.dimensionFilters,q="".concat(w1,"-item"),ie=function(Oe){T(!1),s(Oe)},ge=(e=Y==null?void 0:Y.find(function(Oe){return(Oe==null?void 0:Oe.bizName)==="zyqk_song_id"||(Oe==null?void 0:Oe.bizName)==="singer_id"}))===null||e===void 0?void 0:e.value;return(0,D.jsx)(Cre.Z,Q({content:(0,D.jsx)(wie,{entityId:ge,modelId:I,modelName:B,onSelect:ie}),placement:"bottomLeft",trigger:"click",open:f,onOpenChange:function(Oe){return T(Oe)}},{children:(0,D.jsxs)("div",Q({className:"".concat(q,"-tip-item-value ").concat(q,"-switch-entity")},{children:[t,(0,D.jsx)(sY,{className:"".concat(q,"-down-icon")})]}))}))},hY=function(){var n="".concat(w1,"-item");return(0,D.jsxs)("span",Q({className:"".concat(n,"-loading")},{children:[(0,D.jsx)("span",{className:"".concat(n,"-loading-dot")}),(0,D.jsx)("span",{className:"".concat(n,"-loading-dot")}),(0,D.jsx)("span",{className:"".concat(n,"-loading-dot")})]}))},L4=2,Aie=function(n){var e,t,r,s,c,f,T,R,I,B,Y=n.parseLoading,q=n.parseInfoOptions,ie=n.parseTip,ge=n.currentParseInfo,Oe=n.optionMode,Ne=n.onSelectParseInfo,He=n.onSwitchEntity,st="".concat(w1,"-item"),pt=function(Rr,Er,ma){var wa,Ga=Km()("".concat(st,"-content-container"),(wa={},wa["".concat(st,"-content-container-succeed")]=ma,wa));return(0,D.jsxs)("div",Q({className:"".concat(st,"-parse-tip")},{children:[(0,D.jsxs)("div",Q({className:"".concat(st,"-title-bar")},{children:[(0,D.jsx)(lW,{className:"".concat(st,"-step-icon")}),(0,D.jsxs)("div",Q({className:"".concat(st,"-step-title")},{children:[Rr,!Er&&(0,D.jsx)(hY,{})]}))]})),Er&&(0,D.jsx)("div",Q({className:Ga},{children:Er}))]}))};if(Y)return pt("\u610F\u56FE\u89E3\u6790\u4E2D");if(ie)return pt("\u610F\u56FE\u89E3\u6790\u5931\u8D25",ie);if(q.length===0)return null;var Ut=function(Rr,Er,ma){var wa,Ga,Ei,Vi,ns,zo,xs=Rr||{},pl=xs.modelName,Rl=xs.dateInfo,zl=xs.dimensionFilters,Yc=xs.dimensions,kc=xs.metrics,tf=xs.aggType,wf=xs.queryMode,su=xs.properties,ic=xs.entity,Uc=xs.elementMatches,bu=Rl||{},tc=bu.startDate,nf=bu.endDate,gd=Yc==null?void 0:Yc.filter(function(rm){return rm.type==="DIMENSION"}),xd=kc==null?void 0:kc[0],lv=Km()("".concat(st,"-tip-content"),(wa={},wa["".concat(st,"-tip-content-option")]=Er,wa["".concat(st,"-tip-content-option-active")]=Er&&ge&&JSON.stringify(ge)===JSON.stringify(Rr),wa["".concat(st,"-tip-content-option-disabled")]=Er&&ge!==void 0&&JSON.stringify(ge)!==JSON.stringify(Rr),wa)),_p=Km()((Ga={},Ga["".concat(st,"-tip-item-value")]=!Er,Ga["".concat(st,"-tip-item-option")]=Er,Ga)),$v=(zl==null?void 0:zl.length)>0?zl[0].value:void 0,_v=(ns=(Vi=(Ei=ic==null?void 0:ic.alias)===null||Ei===void 0?void 0:Ei[0])===null||Vi===void 0?void 0:Vi.split("."))===null||ns===void 0?void 0:ns[0],yp=(zo=Uc==null?void 0:Uc.find(function(rm){var Hh;return((Hh=rm.element)===null||Hh===void 0?void 0:Hh.type)==="ID"}))===null||zo===void 0?void 0:zo.element.name,Wd=su||{},vu=Wd.type,Hd=Wd.name,Zd=wf==="ENTITY_DETAIL"?gd==null?void 0:gd.concat(kc||[]):gd,Mv=function(rm){return(0,D.jsx)("div",Q({className:"".concat(st,"-tip-item-filter-content")},{children:rm.map(function(Hh,k0){return(0,D.jsxs)("div",Q({className:_p},{children:[(0,D.jsxs)("span",{children:[Hh.name,Hh.operator!=="="?" ".concat(Hh.operator," "):"\uFF1A"]}),(0,D.jsx)("span",{children:Array.isArray(Hh.value)?Hh.value.join("\u3001"):Hh.value}),k0!==rm.length-1&&(0,D.jsx)("span",{children:"\u3001"})]}))})}))},Zm=function(){return(0,D.jsxs)("div",Q({className:"".concat(st,"-tip-item")},{children:[(0,D.jsx)("div",Q({className:"".concat(st,"-tip-item-name")},{children:"\u7B5B\u9009\u6761\u4EF6\uFF1A"})),(0,D.jsx)(TK.Z,Q({title:zl.length>L4?Mv(zl):"",color:"#fff",overlayStyle:{maxWidth:"none"}},{children:(0,D.jsxs)("div",Q({className:"".concat(st,"-tip-item-content")},{children:[Mv(zl.slice(0,L4)),zl.length>L4&&" ..."]}))}))]}))};return(0,D.jsxs)("div",Q({className:lv,onClick:function(){Er&&ge===void 0&&Ne(Rr)}},{children:[ma!==void 0&&(0,D.jsxs)("div",{children:[ma+1,"."]}),!!vu&&wf!=="DSL"?(0,D.jsxs)("div",Q({className:"".concat(st,"-tip-item")},{children:["\u5C06\u7531",vu==="plugin"?"\u63D2\u4EF6":"\u5185\u7F6E","\u5DE5\u5177",(0,D.jsx)("span",Q({className:_p},{children:Hd})),"\u6765\u89E3\u7B54"]})):(0,D.jsxs)(D.Fragment,{children:[(wf.includes("ENTITY")||wf==="DSL")&&typeof $v=="string"&&!!_v&&!!yp?(0,D.jsxs)("div",Q({className:"".concat(st,"-tip-item")},{children:[(0,D.jsxs)("div",Q({className:"".concat(st,"-tip-item-name")},{children:[_v,"\uFF1A"]})),!Er&&(_v==="\u6B4C\u66F2"||_v==="\u827A\u4EBA")?(0,D.jsx)(Tie,{entityName:yp,chatContext:Rr,onSwitchEntity:He}):(0,D.jsx)("div",Q({className:_p},{children:yp}))]})):(0,D.jsxs)("div",Q({className:"".concat(st,"-tip-item")},{children:[(0,D.jsx)("div",Q({className:"".concat(st,"-tip-item-name")},{children:"\u4E3B\u9898\u57DF\uFF1A"})),(0,D.jsx)("div",Q({className:_p},{children:pl}))]})),wf!=="ENTITY_ID"&&xd&&(0,D.jsxs)("div",Q({className:"".concat(st,"-tip-item")},{children:[(0,D.jsx)("div",Q({className:"".concat(st,"-tip-item-name")},{children:"\u6307\u6807\uFF1A"})),(0,D.jsx)("div",Q({className:_p},{children:xd.name}))]})),!Er&&(0,D.jsxs)("div",Q({className:"".concat(st,"-tip-item")},{children:[(0,D.jsx)("div",Q({className:"".concat(st,"-tip-item-name")},{children:"\u6570\u636E\u65F6\u95F4\uFF1A"})),(0,D.jsx)("div",Q({className:_p},{children:tc===nf?tc:"".concat(tc," ~ ").concat(nf)}))]})),["METRIC_GROUPBY","METRIC_ORDERBY","ENTITY_DETAIL"].includes(wf)&&Zd&&Zd.length>0&&(0,D.jsxs)("div",Q({className:"".concat(st,"-tip-item")},{children:[(0,D.jsxs)("div",Q({className:"".concat(st,"-tip-item-name")},{children:[wf==="ENTITY_DETAIL"?"\u67E5\u8BE2\u5B57\u6BB5":"\u4E0B\u94BB\u7EF4\u5EA6","\uFF1A"]})),(0,D.jsxs)("div",Q({className:_p},{children:[Zd.slice(0,L4).map(function(rm){return rm.name}).join("\u3001"),Zd.length>L4&&"..."]}))]})),["METRIC_FILTER","METRIC_ENTITY","ENTITY_DETAIL","ENTITY_LIST_FILTER","ENTITY_ID","DSL"].includes(wf)&&zl&&(zl==null?void 0:zl.length)>0&&Zm(),wf==="METRIC_ORDERBY"&&tf&&tf!=="NONE"&&(0,D.jsxs)("div",Q({className:"".concat(st,"-tip-item")},{children:[(0,D.jsx)("div",Q({className:"".concat(st,"-tip-item-name")},{children:"\u805A\u5408\u65B9\u5F0F\uFF1A"})),(0,D.jsx)("div",Q({className:_p},{children:Mre[tf]}))]}))]})]}))},pn;if(q.length>1||Oe)pn=(0,D.jsxs)("div",Q({className:"".concat(st,"-multi-options")},{children:[(0,D.jsxs)("div",{children:["\u8FD8\u6709\u4EE5\u4E0B\u7684\u76F8\u5173\u95EE\u9898\uFF0C",(0,D.jsx)("strong",{children:"\u8BF7\u60A8\u70B9\u51FB\u63D0\u4EA4"})]}),(0,D.jsx)("div",Q({className:"".concat(st,"-options")},{children:q.map(function(Rr,Er){return Ut(Rr,!0,Er)})}))]}));else{var yn=(((e=q[0])===null||e===void 0?void 0:e.properties)||{}).type,jn=(f=(c=(s=(r=(t=q[0])===null||t===void 0?void 0:t.entity)===null||r===void 0?void 0:r.alias)===null||s===void 0?void 0:s[0])===null||c===void 0?void 0:c.split("."))===null||f===void 0?void 0:f[0],Cr=(I=(R=(T=q[0])===null||T===void 0?void 0:T.elementMatches)===null||R===void 0?void 0:R.find(function(Rr){var Er;return((Er=Rr.element)===null||Er===void 0?void 0:Er.type)==="ID"}))===null||I===void 0?void 0:I.element.name,Nr=(B=q[0])===null||B===void 0?void 0:B.queryMode;pn=(0,D.jsxs)("div",Q({className:"".concat(st,"-tip")},{children:[Ut(q[0]),(!yn||Nr==="DSL")&&jn&&Cr&&(0,D.jsxs)("div",Q({className:"".concat(st,"-switch-entity-tip")},{children:[(0,D.jsx)(qae,{}),(0,D.jsxs)("div",{children:["\u5982\u679C\u672A\u5339\u914D\u5230\u60A8\u67E5\u8BE2\u7684",jn,"\uFF0C\u53EF\u70B9\u51FB\u4E0A\u9762\u7684",jn,"\u540D\u5207\u6362"]})]}))]}))}return pt("\u610F\u56FE\u89E3\u6790\u7ED3\u679C",pn,!0)},qF=800,Mie=function(n){var e=n.id,t=n.data,r=(0,h.useState)(""),s=r[0],c=r[1],f=(0,h.useState)(qF),T=f[0],R=f[1],I=t.response||{},B=I.name,Y=I.webPage,q=Y.url,ie=Y.params,ge=(0,h.useCallback)(function(He){var st=He.data,pt=st.type,Ut=st.payload;if(pt==="changeMiniProgramContainerSize"){var pn=Ut.msgId,yn=Ut.height;"".concat(pn)==="".concat(e)&&R(yn);return}if(st==="storyResize"){var jn=document.getElementById("reportIframe_".concat(e)),Cr=jn.contentDocument||jn.document||jn.contentWindow;setTimeout(function(){R(OK()?Oe(Cr):qF)},200);return}},[]);(0,h.useEffect)(function(){return window.addEventListener("message",ge),function(){window.removeEventListener("message",ge)}},[ge]);function Oe(He){var st,pt=He.getElementById("titleArea"),Ut=Math.max((pt==null?void 0:pt.clientHeight)||0,(pt==null?void 0:pt.scrollHeight)||0),pn=(st=He.getElementsByClassName("dashboardGrid"))===null||st===void 0?void 0:st[0],yn=Math.max((pn==null?void 0:pn.clientHeight)||0,(pn==null?void 0:pn.scrollHeight)||0);return Math.max(Ut+yn+10,qF)}var Ne=function(){var He,st=((He=ie==null?void 0:ie.find(function(jn){return jn.paramType==="FORWARD"&&jn.key==="height"}))===null||He===void 0?void 0:He.value)||qF;R(st);var pt=q,Ut=(ie||[]).filter(function(jn){return jn.paramType!=="FORWARD"}).reduce(function(jn,Cr){return jn[Cr.key]=Cr.value,jn},{});if(pt.includes("?type=dashboard")||pt.includes("?type=widget")){var pn=encodeURIComponent(JSON.stringify(pt.includes("dashboard")?{global:Ut}:{local:Ut}));pt=pt.replace("?","?miniProgram=true&reportName=".concat(B,"&filterData=").concat(pn,"&")),pt=!OK()&&!pt.includes("http")?"http://s2.tmeoa.com".concat(pt):pt}else{var yn=Object.keys(Ut||{}).map(function(jn){return"".concat(jn,"=").concat(Ut[jn])});yn.length>0&&(q.includes("?")?pt=pt.replace("?","?".concat(yn.join("&"),"&")):pt="".concat(pt,"?").concat(yn.join("&")))}c(pt)};return(0,h.useEffect)(function(){Ne()},[]),(0,D.jsx)("iframe",{id:"reportIframe_".concat(e),name:"reportIframe_".concat(e),src:s,style:{width:"100%",height:T,border:"none"},title:"reportIframe",allowFullScreen:!0})},kie=function(n){var e=n.question,t=n.queryId,r=n.executeLoading,s=n.entitySwitchLoading,c=n.chartIndex,f=n.executeTip,T=n.data,R=n.isMobileMode,I=n.triggerResize;n.onChangeChart;var B="".concat(w1,"-item"),Y=function(q,ie){return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("div",Q({className:"".concat(B,"-title-bar")},{children:[(0,D.jsx)(lW,{className:"".concat(B,"-step-icon")}),(0,D.jsxs)("div",Q({className:"".concat(B,"-step-title")},{children:[q,!ie&&(0,D.jsx)(hY,{})]}))]})),ie&&(0,D.jsx)("div",Q({className:"".concat(B,"-content-container")},{children:ie}))]})};return r?Y("\u6570\u636E\u67E5\u8BE2\u4E2D"):f?Y("\u6570\u636E\u67E5\u8BE2\u5931\u8D25",f):T?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("div",Q({className:"".concat(B,"-title-bar")},{children:[(0,D.jsx)(lW,{className:"".concat(B,"-step-icon")}),(0,D.jsx)("div",Q({className:"".concat(B,"-step-title")},{children:"\u6570\u636E\u67E5\u8BE2\u7ED3\u679C"}))]})),(0,D.jsx)("div",Q({className:"".concat(B,"-content-container ").concat(B,"-last-node")},{children:(0,D.jsx)(O4.Z,Q({spinning:s},{children:(T==null?void 0:T.queryMode)==="WEB_PAGE"?(0,D.jsx)(Mie,{id:t,data:T}):(0,D.jsx)(Cie,{question:e,data:T,chartIndex:c,isMobileMode:R,triggerResize:I})}))}))]}):null},Pie=function(n){var e,t,r,s,c=n.data,f=n.scoreValue,T=n.isLastMessage,R=c||{},I=R.queryResults,B=R.queryId,Y=R.chatContext,q=R.queryMode,ie=(0,h.useState)(f||0),ge=ie[0],Oe=ie[1],Ne="".concat(Zw,"-tools"),He=(I==null?void 0:I.length)===1;q.includes("METRIC")&&(He||((r=Y==null?void 0:Y.dateInfo)===null||r===void 0||r.startDate,(s=Y==null?void 0:Y.dateInfo)===null||s===void 0||s.endDate));var st=function(){Oe(5),NK(B,5)},pt=function(){Oe(1),NK(B,1)},Ut=Km()("".concat(Ne,"-like"),(e={},e["".concat(Ne,"-feedback-active")]=ge===5,e)),pn=Km()("".concat(Ne,"-dislike"),(t={},t["".concat(Ne,"-feedback-active")]=ge===1,t));return(0,D.jsx)("div",Q({className:Ne},{children:!hE&&T&&(0,D.jsxs)("div",Q({className:"".concat(Ne,"-feedback")},{children:[(0,D.jsx)("div",{children:"\u8FD9\u4E2A\u56DE\u7B54\u6B63\u786E\u5417\uFF1F"}),(0,D.jsx)(rie,{className:Ut,onClick:st}),(0,D.jsx)(Gae,{className:pn,onClick:function(yn){yn.stopPropagation(),pt()}})]}))}))},mY=function(n){var e,t,r=n.msg,s=n.conversationId,c=n.modelId,f=n.agentId,T=n.filter,R=n.isLastMessage,I=n.isMobileMode;n.isHistory;var B=n.triggerResize,Y=n.msgData,q=n.parseOptions,ie=n.onMsgDataLoaded,ge=n.onUpdateMessageScroll,Oe=(0,h.useState)(),Ne=Oe[0],He=Oe[1],st=(0,h.useState)(!1),pt=st[0],Ut=st[1],pn=(0,h.useState)(),yn=pn[0],jn=pn[1],Cr=(0,h.useState)(q||[]),Nr=Cr[0],Rr=Cr[1],Er=(0,h.useState)(""),ma=Er[0],wa=Er[1],Ga=(0,h.useState)(!1),Ei=Ga[0],Vi=Ga[1],ns=(0,h.useState)(""),zo=ns[0],xs=ns[1],pl=(0,h.useState)(!1),Rl=pl[0],zl=pl[1],Yc=(0,h.useState)(!1),kc=Yc[0],tf=Yc[1],wf=(0,h.useState)(0),su=wf[0],ic=wf[1],Uc="".concat(w1,"-item"),bu=function(_v){if(_v.code===401||_v.code===412)return xs(_v.msg),!1;if(_v.code!==200)return xs(VF),!1;var yp=_v.data||{},Wd=yp.queryColumns,vu=yp.queryResults,Hd=yp.queryState,Zd=yp.queryMode,Mv=yp.response;return Hd!=="SUCCESS"?(xs(Mv&&typeof Mv=="string"?Mv:VF),!1):Wd&&Wd.length>0&&vu||Zd==="WEB_PAGE"?(He(_v.data),xs(""),!0):(xs(VF),!0)},tc=function(_v,yp){return Pe(void 0,void 0,void 0,function(){var Wd,vu,Hd;return pe(this,function(Zd){switch(Zd.label){case 0:zl(!0),Vi(!0),Zd.label=1;case 1:return Zd.trys.push([1,3,,4]),[4,Zre(r,s,_v)];case 2:return Wd=Zd.sent().data,Vi(!1),vu=bu(Wd),ie&&(Hd=yp||[],yp&&yp.length>1&&(yp[0].queryMode.includes("METRIC")||yp[0].queryMode.includes("ENTITY"))&&(Hd=yp.filter(function(Mv,Zm){return Zm===0||!Mv.queryMode.includes("METRIC")&&!Mv.queryMode.includes("ENTITY")})),ie(Q(Q({},Wd.data),{chatContext:_v,parseOptions:Hd.length>1?Hd.slice(1):void 0}),vu)),[3,4];case 3:return Zd.sent(),Vi(!1),xs(VF),[3,4];case 4:return[2]}})})},nf=function(){return Pe(void 0,void 0,void 0,function(){var _v,yp,Wd,vu,Hd,Zd,Mv,Zm,rm,Hh,k0,Ih,Zp;return pe(this,function(Dh){switch(Dh.label){case 0:return Ut(!0),[4,Ure(r,s,c,f,T)];case 1:return _v=Dh.sent().data,Ut(!1),yp=_v||{},Wd=yp.code,vu=yp.data,Hd=vu||{},Zd=Hd.state,Mv=Hd.selectedParses,Zm=Hd.queryId,Wd!==200||Zd===Hz.FAILED||!(Mv==null?void 0:Mv.length)||!((Ih=(k0=Mv[0])===null||k0===void 0?void 0:k0.properties)===null||Ih===void 0?void 0:Ih.type)&&!((Zp=Mv[0])===null||Zp===void 0?void 0:Zp.queryMode)?(wa(Are),[2]):(ge&&ge(),rm=Mv.map(function(Gh){return Q(Q({},Gh),{queryId:Zm})}),Rr(rm||[]),Hh=rm[0],jn(Hh),tc(Hh,rm),[2])}})})};(0,h.useEffect)(function(){Ne!==void 0||q!==void 0||zo!==""||(Y?(Rr([Y.chatContext]),zl(!0),bu({code:200,data:Y,msg:"success"})):r&&nf())},[r,Y]);var gd=function(_v){return Pe(void 0,void 0,void 0,function(){var yp,Wd,vu;return pe(this,function(Hd){switch(Hd.label){case 0:return tf(!0),[4,Vre(_v,(vu=Ne==null?void 0:Ne.chatContext)===null||vu===void 0?void 0:vu.modelId,s||0)];case 1:return yp=Hd.sent(),tf(!1),He(yp.data.data),Wd=yp.data.data.chatContext,jn(Wd),Rr([Wd]),[2]}})})},xd=function(){ic(su+1)},lv=function(_v){return Pe(void 0,void 0,void 0,function(){return pe(this,function(yp){return jn(_v),tc(_v),ge&&ge(),[2]})})},_p=Km()("".concat(Uc,"-content"),(e={},e["".concat(Uc,"-content-mobile")]=hE,e)),$v=((Ne==null?void 0:Ne.queryMode)==="METRIC_DOMAIN"||(Ne==null?void 0:Ne.queryMode)==="METRIC_FILTER")&&((t=Ne==null?void 0:Ne.queryResults)===null||t===void 0?void 0:t.length)===1;return(0,D.jsxs)("div",Q({className:Uc},{children:[!hE&&(0,D.jsx)(uW,{type:"icon-zhinengsuanfa",className:"".concat(Uc,"-avatar")}),(0,D.jsxs)("div",Q({className:hE?"".concat(Uc,"-mobile-msg-card"):"".concat(Uc,"-msg-card")},{children:[(0,D.jsxs)("div",Q({className:_p},{children:[(0,D.jsx)(Aie,{parseLoading:pt,parseInfoOptions:q||Nr.slice(0,1),parseTip:ma,currentParseInfo:yn,optionMode:q!==void 0,onSelectParseInfo:lv,onSwitchEntity:gd}),Rl&&(0,D.jsx)(kie,{question:r,queryId:yn==null?void 0:yn.queryId,executeLoading:Ei,entitySwitchLoading:kc,executeTip:zo,chartIndex:su,data:Ne,isMobileMode:I,triggerResize:B,onChangeChart:xd})]})),!$v&&Ne&&(0,D.jsx)(Pie,{data:Ne,scoreValue:void 0,isLastMessage:R})]}))]}))},Iy;(function(n){n.TEXT="text",n.QUESTION="question",n.TAG="tag",n.SUGGESTION="suggestion",n.NO_PERMISSION="no_permission",n.SEMANTIC_DETAIL="semantic_detail",n.PLUGIN="PLUGIN",n.WEB_PAGE="WEB_PAGE",n.RECOMMEND_QUESTIONS="recommend_questions",n.PARSE_OPTIONS="parse_options",n.AGENT_LIST="agent_list"})(Iy||(Iy={}));var gY;(function(n){n.INTERPRET="interpret"})(gY||(gY={}));var _Y;(function(n){n.DASHBOARD="DASHBOARD",n.WIDGET="WIDGET",n.URL="URL",n.TAG="TAG"})(_Y||(_Y={}));var Rie=o(830),Ch=o.n(Rie),hO,ose=null,_E;(function(n){n.MODEL="MODEL",n.DIMENSION="DIMENSION",n.METRIC="METRIC",n.VALUE="VALUE"})(_E||(_E={}));var yY=(hO={},(0,A.Z)(hO,_E.MODEL,"\u4E3B\u9898\u57DF"),(0,A.Z)(hO,_E.DIMENSION,"\u7EF4\u5EA6"),(0,A.Z)(hO,_E.METRIC,"\u6307\u6807"),(0,A.Z)(hO,_E.VALUE,"\u7EF4\u5EA6\u503C"),hO),e7="",dW="\u65B0\u95EE\u7B54\u5BF9\u8BDD",sse="\u95EE\u7B54\u5BF9\u8BDD",bY="\u95EE\u7B54\u5BF9\u8BDD",lse="\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898",Oie=o(92186),k1=o.n(Oie),Iie=function(e){var t=e.currentAgentName,r=e.data,s=e.copilotFullscreen,c=e.onSelectAgent,f=S()(k1().agent,(0,A.Z)({},k1().fullscreen,s));return(0,D.jsxs)("div",{className:k1().agentList,children:[(0,D.jsx)(W,{}),(0,D.jsxs)($,{position:"left",bubbleClassName:k1().agentListMsg,children:[(0,D.jsxs)("div",{className:k1().title,children:["\u60A8\u597D\uFF0C\u667A\u80FD\u52A9\u7406\u3010",t,"\u3011\u5C06\u4E0E\u60A8\u5BF9\u8BDD\uFF0C\u70B9\u51FB\u4EE5\u4E0B\u5361\u7247\u6216\u8005\u8F93\u5165\u201C/\u201D\u53EF\u5207\u6362\u52A9\u7406\uFF1A"]}),(0,D.jsx)("div",{className:k1().content,children:r.map(function(T){var R;return(0,D.jsxs)("div",{className:f,onClick:function(){c(T)},children:[(0,D.jsxs)("div",{className:k1().topBar,children:[(0,D.jsx)("div",{className:k1().agentName,children:T.name}),(0,D.jsx)("div",{className:k1().tip,children:"\u60A8\u53EF\u4EE5\u8FD9\u6837\u95EE\uFF1A"})]}),(0,D.jsx)("div",{className:k1().examples,children:((R=T.examples)===null||R===void 0?void 0:R.length)>0?T.examples.map(function(I){return(0,D.jsxs)("div",{className:k1().example,children:["\u201C",I,"\u201D"]},I)}):(0,D.jsx)("div",{className:k1().example,children:T.description})})]},T.id)})})]})]})},Die=Iie,Nie=o(25247),F4=o.n(Nie),Wb="/api";function Lie(n){return(0,_.WY)("".concat(Wb,"/chat/manage/save?chatName=").concat(n),{method:"POST"})}function Fie(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(0,_.WY)("".concat(Wb,"/chat/manage/updateChatName?chatName=").concat(n,"&chatId=").concat(e),{method:"POST"})}function jie(n){return(0,_.WY)("".concat(Wb,"/chat/manage/delete?chatId=").concat(n),{method:"POST"})}function Bie(){return(0,_.WY)("".concat(Wb,"/chat/manage/getAll"))}function cse(n,e){return request("".concat(Wb,"/chat/plugin/extend/getAvailablePlugin/").concat(n,"/").concat(e),{method:"GET",skipErrorHandler:!0})}function Uie(){return(0,_.WY)("".concat(Wb,"/chat/conf/modelList/view"),{method:"GET"})}function use(n,e){return request("".concat(Wb,"/chat/manage/updateQAFeedback?id=").concat(n,"&score=").concat(e,"&feedback="),{method:"POST"})}function fse(n){return request("".concat(Wb,"/chat/recommend/metric/").concat(n),{method:"GET"})}function dse(n){return request("".concat(Wb,"/chat/recommend/").concat(n),{method:"GET"})}function Zie(){return(0,_.WY)("".concat(Wb,"/chat/recommend/question"),{method:"GET"})}function Vie(){return(0,_.WY)("".concat(Wb,"/chat/agent/getAgentList"),{method:"GET"})}var pse=o(58210),xY=o(41827),zie=o(79154),Wie=o.n(zie),Hie=function(){return(0,D.jsx)($,{position:"left",bubbleClassName:L().typingBubble,children:(0,D.jsx)(O4.Z,{spinning:!0,indicator:(0,D.jsx)(Wie(),{color:xY.S_,size:10}),className:L().typing})})},Gie=Hie,$ie=function(e){var t=e.onSelectQuestion,r=(0,h.useState)([]),s=(0,b.Z)(r,2),c=s[0],f=s[1],T=(0,h.useState)(!1),R=(0,b.Z)(T,2),I=R[0],B=R[1],Y=function(){var q=(0,m.Z)((0,w.Z)().mark(function ie(){var ge,Oe;return(0,w.Z)().wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return B(!0),He.next=3,Zie();case 3:Oe=He.sent,B(!1),f(((ge=Oe.data)===null||ge===void 0?void 0:ge.reduce(function(st,pt){return st=[].concat((0,M.Z)(st),(0,M.Z)(pt.recommendedQuestions.slice(0,20).map(function(Ut){return Ut.question}))),st},[]))||[]);case 6:case"end":return He.stop()}},ie)}));return function(){return q.apply(this,arguments)}}();return(0,h.useEffect)(function(){Y()},[]),(0,D.jsxs)("div",{className:F4().recommendQuestions,children:[!v.tq&&(0,D.jsx)(W,{}),I?(0,D.jsx)(Gie,{}):c.length>0?(0,D.jsxs)($,{position:"left",bubbleClassName:F4().recommendQuestionsMsg,children:[(0,D.jsx)("div",{className:F4().title,children:"\u63A8\u8350\u95EE\u9898\uFF1A"}),(0,D.jsx)("div",{className:F4().content,children:c.map(function(q,ie){return(0,D.jsx)("div",{className:F4().question,onClick:function(){t(q)},children:q},"".concat(q,"_").concat(ie))})})]}):(0,D.jsx)($,{position:"left",children:"\u60A8\u597D\uFF0C\u8BF7\u95EE\u6709\u4EC0\u4E48\u6211\u53EF\u4EE5\u5E2E\u60A8\u5417\uFF1F"})]})},Kie=$ie,Yie=function(e){var t=e.id,r=e.chatId,s=e.messageList,c=e.isMobileMode,f=e.conversationCollapsed,T=e.copilotFullscreen,R=e.agentList,I=e.onClickMessageContainer,B=e.onMsgDataLoaded,Y=e.onCheckMore,q=e.onSendMsg,ie=e.onSelectAgent,ge=(0,h.useState)(!1),Oe=(0,b.Z)(ge,2),Ne=Oe[0],He=Oe[1],st=(0,h.useCallback)(function(){He(!0),setTimeout(function(){He(!1)},0)},[]);(0,h.useEffect)(function(){return window.addEventListener("resize",st),function(){window.removeEventListener("resize",st)}},[]),(0,h.useEffect)(function(){st()},[f]),(0,h.useEffect)(function(){st(),(0,v.lK)()},[T]);var pt=function(pn,yn){if(!(!pn||!yn))return[(0,y.Z)((0,y.Z)({},g.MODEL_MODEL_ENTITY_ID_FILTER_MAP[pn]),{},{value:yn})]};return(0,D.jsx)("div",{id:t,className:Ch().messageContainer,onClick:I,children:(0,D.jsx)("div",{className:Ch().messageList,children:s.map(function(Ut,pn){var yn=Ut.id,jn=Ut.modelId,Cr=Ut.agentId,Nr=Ut.entityId,Rr=Ut.type,Er=Ut.msg,ma=Ut.msgValue,wa=Ut.identityMsg,Ga=Ut.msgData,Ei=Ut.score,Vi=Ut.isHistory,ns=Ut.parseOptions;return(0,D.jsxs)("div",{id:"".concat(yn),className:Ch().messageItem,children:[Rr===Iy.TEXT&&(0,D.jsx)(z,{position:"left",data:Er}),Rr===Iy.RECOMMEND_QUESTIONS&&(0,D.jsx)(Kie,{onSelectQuestion:q}),Rr===Iy.AGENT_LIST&&(0,D.jsx)(Die,{currentAgentName:Er,data:R,copilotFullscreen:T||!c,onSelectAgent:ie}),Rr===Iy.QUESTION&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(z,{position:"right",data:Er}),wa&&(0,D.jsx)(z,{position:"left",data:wa}),(0,D.jsx)(mY,{msg:ma||Er||"",msgData:Ga,conversationId:r,modelId:jn,agentId:Cr,filter:pt(jn,Nr),isLastMessage:pn===s.length-1,isMobileMode:c,isHistory:Vi,triggerResize:Ne,onMsgDataLoaded:function(xs,pl){B(xs,yn,ma||Er||"",pl)},onUpdateMessageScroll:v.lK})]}),Rr===Iy.PARSE_OPTIONS&&(0,D.jsx)(mY,{msg:ma||Er||"",conversationId:r,modelId:jn,agentId:Cr,filter:pt(jn,Nr),isLastMessage:pn===s.length-1,isMobileMode:c,isHistory:Vi,triggerResize:Ne,parseOptions:ns,onMsgDataLoaded:function(xs,pl){B(xs,yn,ma||Er||"",pl)},onUpdateMessageScroll:v.lK})]},yn)})})})};function Xie(n,e){return!!(n.id===e.id&&(0,K.isEqual)(n.messageList,e.messageList)&&n.conversationCollapsed===e.conversationCollapsed&&n.copilotFullscreen===e.copilotFullscreen&&n.agentList===e.agentList)}var Jie=(0,h.memo)(Yie,Xie),EY=o(90472),Qie=o(23493),qie=o.n(Qie);function eoe(n){var e=(0,h.useRef)(n);return e.current=n,e}var SY=eoe,CY=o(35257),wY=o(7556),toe=function(e){wY.Z&&((0,CY.mf)(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=SY(e);(0,h.useEffect)(function(){return function(){t.current()}},[])},noe=toe;function roe(n,e){var t;wY.Z&&((0,CY.mf)(n)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof n)));var r=SY(n),s=(t=e==null?void 0:e.wait)!==null&&t!==void 0?t:1e3,c=(0,h.useMemo)(function(){return qie()(function(){for(var f=[],T=0;T<arguments.length;T++)f[T]=arguments[T];return r.current.apply(r,(0,EY.ev)([],(0,EY.CR)(f),!1))},s,e)},[]);return noe(function(){c.cancel()}),{run:c,cancel:c.cancel,flush:c.flush}}var aoe=roe,vse=o(19597),hse=o(37482),ioe=o(36707),mse=o(68137),TY=o(50532),gse=o(26780),ooe=o(51935),_se=o(67604),pW=o(72285),soe=pW.Z.Item,loe={labelCol:{span:6},wrapperCol:{span:18}},coe=function(e){var t=e.visible,r=e.editConversation,s=e.onClose,c=e.onFinish,f=pW.Z.useForm(),T=(0,b.Z)(f,1),R=T[0],I=(0,h.useState)(!1),B=(0,b.Z)(I,2),Y=B[0],q=B[1],ie=(0,h.useRef)();(0,h.useEffect)(function(){t&&(R.setFieldsValue({conversationName:r.chatName}),setTimeout(function(){ie.current.focus({cursor:"all"})},0))},[t]);var ge=function(){var Oe=(0,m.Z)((0,w.Z)().mark(function Ne(){var He;return(0,w.Z)().wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,R.validateFields();case 2:return He=pt.sent,q(!0),pt.next=6,Fie(He.conversationName,r.chatId);case 6:q(!1),c(He.conversationName);case 8:case"end":return pt.stop()}},Ne)}));return function(){return Oe.apply(this,arguments)}}();return(0,D.jsx)(ooe.Z,{title:"\u4FEE\u6539".concat(e7,"\u95EE\u7B54\u540D\u79F0"),visible:t,onCancel:s,onOk:ge,confirmLoading:Y,children:(0,D.jsx)(pW.Z,(0,y.Z)((0,y.Z)({},loe),{},{form:R,children:(0,D.jsx)(soe,{name:"conversationName",label:"\u540D\u79F0",rules:[{required:!0}],children:(0,D.jsx)(TY.Z,{placeholder:"\u8BF7\u8F93\u5165".concat(e7,"\u95EE\u7B54\u540D\u79F0"),ref:ie,onPressEnter:ge})})}))})},uoe=coe,foe=o(56051),vW=o.n(foe),doe=o(76570),poe=function(e,t){var r,s=e.currentConversation,c=e.collapsed,f=e.isCopilotMode,T=e.defaultModelName,R=e.defaultEntityFilter,I=e.triggerNewConversation,B=e.onNewConversationTriggered,Y=e.onSelectConversation,q=(0,d.TH)(),ie=q.query,ge=ie.q,Oe=ie.cid,Ne=ie.modelId,He=ie.entityId,st=(0,h.useState)([]),pt=(0,b.Z)(st,2),Ut=pt[0],pn=pt[1],yn=(0,h.useState)(!1),jn=(0,b.Z)(yn,2),Cr=jn[0],Nr=jn[1],Rr=(0,h.useState)(),Er=(0,b.Z)(Rr,2),ma=Er[0],wa=Er[1],Ga=(0,h.useState)(""),Ei=(0,b.Z)(Ga,2),Vi=Ei[0],ns=Ei[1];(0,h.useImperativeHandle)(t,function(){return{updateData:zo,onAddConversation:zl}});var zo=function(){var su=(0,m.Z)((0,w.Z)().mark(function ic(){var Uc,bu,tc;return(0,w.Z)().wrap(function(gd){for(;;)switch(gd.prev=gd.next){case 0:return gd.next=2,Bie();case 2:return Uc=gd.sent,bu=Uc.data,tc=bu||[],pn(tc.slice(0,500)),gd.abrupt("return",tc);case 7:case"end":return gd.stop()}},ic)}));return function(){return su.apply(this,arguments)}}(),xs=function(){var su=(0,m.Z)((0,w.Z)().mark(function ic(){var Uc,bu,tc;return(0,w.Z)().wrap(function(gd){for(;;)switch(gd.prev=gd.next){case 0:return gd.next=2,zo();case 2:Uc=gd.sent,Uc.length>0?(bu=localStorage.getItem("CONVERSATION_ID")||Oe,bu?(tc=Uc.find(function(xd){return xd.chatId===+bu}),Y(tc||Uc[0])):Y(Uc[0])):zl();case 4:case"end":return gd.stop()}},ic)}));return function(){return su.apply(this,arguments)}}();(0,h.useEffect)(function(){if(I){var su=R!=null&&R.entityName&&window.location.pathname.includes("detail")?R.entityName:T;zl({name:su,type:"CUSTOMIZE",modelId:R==null?void 0:R.modelId,entityId:R==null?void 0:R.entityId}),B==null||B()}},[I]),(0,h.useEffect)(function(){I||(ge&&Oe===void 0&&window.location.href.includes("/workbench/chat")?zl({name:ge,modelId:Ne?+Ne:void 0,entityId:He}):xs())},[ge]);var pl=function(){var su=(0,m.Z)((0,w.Z)().mark(function ic(Uc){return(0,w.Z)().wrap(function(tc){for(;;)switch(tc.prev=tc.next){case 0:return tc.next=2,Lie(Uc||dW);case 2:return tc.abrupt("return",zo());case 3:case"end":return tc.stop()}},ic)}));return function(Uc){return su.apply(this,arguments)}}(),Rl=function(){var su=(0,m.Z)((0,w.Z)().mark(function ic(Uc){return(0,w.Z)().wrap(function(tc){for(;;)switch(tc.prev=tc.next){case 0:return tc.next=2,jie(Uc);case 2:xs();case 3:case"end":return tc.stop()}},ic)}));return function(Uc){return su.apply(this,arguments)}}(),zl=function(){var su=(0,m.Z)((0,w.Z)().mark(function ic(){var Uc,bu,tc,nf,gd,xd,lv=arguments;return(0,w.Z)().wrap(function($v){for(;;)switch($v.prev=$v.next){case 0:return Uc=lv.length>0&&lv[0]!==void 0?lv[0]:{},bu=Uc.name,tc=Uc.modelId,nf=Uc.entityId,gd=Uc.type,$v.next=3,pl(bu);case 3:xd=$v.sent,Y(xd[0],gd||bu,tc,nf);case 5:case"end":return $v.stop()}},ic)}));return function(){return su.apply(this,arguments)}}(),Yc=function(ic,Uc){ic==="editName"?(wa(Uc),Nr(!0)):ic==="delete"&&Rl(Uc.chatId)},kc=S()(Ch().conversation,(r={},(0,A.Z)(r,Ch().collapsed,c),(0,A.Z)(r,Ch().copilotMode,f),r)),tf=function(ic){vW().locale("zh-cn");var Uc=vW()(),bu=vW()(ic),tc=Uc.diff(bu,"minutes");return tc<1?"\u521A\u521A":bu.isSame(Uc,"day")?bu.format("HH:mm"):bu.isSame(Uc.subtract(1,"day"),"day")?"\u6628\u5929":bu.format("MM/DD")},wf=function(ic){ns(ic.target.value)};return(0,D.jsxs)("div",{className:kc,children:[(0,D.jsxs)("div",{className:Ch().leftSection,children:[(0,D.jsx)("div",{className:Ch().searchConversation,children:(0,D.jsx)(TY.Z,{placeholder:"\u641C\u7D22",prefix:(0,D.jsx)(doe.Z,{className:Ch().searchIcon}),className:Ch().searchTask,value:Vi,onChange:wf,allowClear:!0})}),(0,D.jsx)("div",{className:Ch().conversationList,children:Ut.filter(function(su){return Vi===""||su.chatName.toLowerCase().includes(Vi.toLowerCase())}).map(function(su){var ic=S()(Ch().conversationItem,(0,A.Z)({},Ch().activeConversationItem,(s==null?void 0:s.chatId)===su.chatId));return(0,D.jsx)(CK.Z,{overlay:(0,D.jsx)(ioe.Z,{items:[{label:"\u4FEE\u6539\u5BF9\u8BDD\u540D\u79F0",key:"editName"},{label:"\u5220\u9664",key:"delete"}],onClick:function(bu){var tc=bu.key;Yc(tc,su)}}),trigger:["contextMenu"],children:(0,D.jsxs)("div",{className:ic,onClick:function(){Y(su)},children:[(0,D.jsx)(k.Z,{type:"icon-chat1",className:Ch().conversationIcon}),(0,D.jsxs)("div",{className:Ch().conversationContent,children:[(0,D.jsxs)("div",{className:Ch().topTitleBar,children:[(0,D.jsx)("div",{className:Ch().conversationName,children:su.chatName}),(0,D.jsx)("div",{className:Ch().conversationTime,children:tf(su.lastTime||"")})]}),(0,D.jsx)("div",{className:Ch().subTitle,children:su.lastQuestion})]})]})},su.chatId)})})]}),(0,D.jsx)(uoe,{visible:Cr,editConversation:ma,onClose:function(){Nr(!1)},onFinish:function(){Nr(!1),zo()}})]})},voe=(0,h.forwardRef)(poe),yse=o(38663),bse=o(58136),xse=o(97140),hoe=o(22122),moe=o(90484),goe=o(28481),_oe=o(83025),yoe=o(69252),boe=o(9054),j4=o(90407),AY=o(75447),hW=j4.Z.Option;function MY(n){return n&&n.type&&(n.type.isSelectOption||n.type.isSelectOptGroup)}var xoe=function(e,t){var r=e.prefixCls,s=e.className,c=e.popupClassName,f=e.dropdownClassName,T=e.children,R=e.dataSource,I=(0,_oe.Z)(T),B;if(I.length===1&&(0,AY.l$)(I[0])&&!MY(I[0])){var Y=(0,goe.Z)(I,1);B=Y[0]}var q=B?function(){return B}:void 0,ie;return I.length&&MY(I[0])?ie=T:ie=R?R.map(function(ge){if((0,AY.l$)(ge))return ge;switch((0,moe.Z)(ge)){case"string":return h.createElement(hW,{key:ge,value:ge},ge);case"object":{var Oe=ge.value;return h.createElement(hW,{key:Oe,value:Oe},ge.text)}default:return}}):[],h.createElement(boe.C,null,function(ge){var Oe=ge.getPrefixCls,Ne=Oe("select",r);return h.createElement(j4.Z,(0,hoe.Z)({ref:t},(0,yoe.Z)(e,["dataSource"]),{prefixCls:Ne,popupClassName:c||f,className:S()("".concat(Ne,"-auto-complete"),s),mode:j4.Z.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:q}),ie)})},kY=h.forwardRef(xoe);kY.Option=hW;var Eoe=kY,Ese=o(81984),Sse=o(14943),Soe=o(74356),Coe=o(72730),Um=o.n(Coe),woe=o(1351),Toe=o(76629),Aoe=j4.Z.OptGroup,PY=j4.Z.Option,mW=!1,mO=!1,RY=function(){mW=!0},OY=function(){mW=!1},Moe=function(e,t){var r,s,c=e.inputMsg,f=e.chatId,T=e.currentModel,R=e.currentAgent,I=e.defaultEntity,B=e.models,Y=e.agentList,q=e.collapsed,ie=e.isCopilotMode,ge=e.copilotFullscreen,Oe=e.onToggleCollapseBtn,Ne=e.onInputMsgChange,He=e.onSendMsg,st=e.onAddConversation,pt=e.onCancelDefaultFilter,Ut=e.onSelectAgent,pn=(0,h.useState)([]),yn=(0,b.Z)(pn,2),jn=yn[0],Cr=yn[1],Nr=(0,h.useState)({}),Rr=(0,b.Z)(Nr,2),Er=Rr[0],ma=Rr[1],wa=(0,h.useState)(!1),Ga=(0,b.Z)(wa,2),Ei=Ga[0],Vi=Ga[1],ns=(0,h.useState)(!1),zo=(0,b.Z)(ns,2),xs=zo[0],pl=zo[1],Rl=(0,h.useRef)(),zl=(0,h.useRef)(0),Yc=function(){var vu;(vu=Rl.current)===null||vu===void 0||vu.focus()},kc=function(){var vu;(vu=Rl.current)===null||vu===void 0||vu.blur()};(0,h.useImperativeHandle)(t,function(){return{inputFocus:Yc,inputBlur:kc}});var tf=function(){var vu=document.getElementById("chatInput");vu.addEventListener("compositionstart",RY),vu.addEventListener("compositionend",OY)},wf=function(){var vu=document.getElementById("chatInput");vu&&(vu.removeEventListener("compositionstart",RY),vu.removeEventListener("compositionend",OY))};(0,h.useEffect)(function(){return tf(),function(){wf()}},[]);var su=function(vu){var Hd=(0,v.pB)(vu,"modelName");return v.tq&&vu.length>6?Object.keys(Hd).slice(0,4).reduce(function(Zd,Mv){return Zd[Mv]=Hd[Mv].slice(0,Object.keys(Hd).length>2?2:Object.keys(Hd).length>1?3:6),Zd},{}):Hd},ic=function(vu,Hd){var Zd=vu,Mv;if((vu==null?void 0:vu[0])==="@"){var Zm=Hd.find(function(Hh){return vu.includes("@".concat(Hh.name))});Zd=Zm?vu.replace("@".concat(Zm.name),""):vu,Mv=Zm==null?void 0:Zm.id}else if((vu==null?void 0:vu[0])==="/"){var rm=Y.find(function(Hh){return vu.includes("/".concat(Hh.name))});Zd=rm?vu.replace("/".concat(rm.name),""):vu}return{msgValue:Zd,modelId:Mv}},Uc=(0,h.useCallback)(function(){var Wd=function(){var vu=(0,m.Z)((0,w.Z)().mark(function Hd(Zd,Mv,Zm,rm){var Hh,k0,Ih,Zp,Dh,Gh,i_,Hb;return(0,w.Z)().wrap(function(ug){for(;;)switch(ug.prev=ug.next){case 0:if(!mW){ug.next=2;break}return ug.abrupt("return");case 2:if(!(Zd===""||Zd.length===1&&Zd[0]==="@")){ug.next=4;break}return ug.abrupt("return");case 4:return zl.current+=1,Hh=zl.current,k0=ic(Zd,Mv),Ih=k0.msgValue,Zp=k0.modelId,Dh=Zp||(rm==null?void 0:rm.id),ug.next=10,Bre(Ih.trim(),Zm,Dh);case 10:if(Gh=ug.sent,Hh===zl.current){ug.next=13;break}return ug.abrupt("return");case 13:i_=Ih?Gh.data.data||[]:[],Hb=i_.map(function(_C){return _C.subRecommend}),Hb.length>0&&Hb.every(function(_C){return _C!==null})?ma(su(i_)):ma({}),Vi(i_.length>0);case 17:case"end":return ug.stop()}},Hd)}));return function(Zd,Mv,Zm,rm){return vu.apply(this,arguments)}}();return(0,K.debounce)(Wd,200)},[]),bu=(0,h.useState)(Uc),tc=(0,b.Z)(bu,1),nf=tc[0];(0,h.useEffect)(function(){if(c.length===1&&(c[0]==="@"||c[0]==="/")){Vi(!0),Cr(c[0]==="/"?Y:B),ma({});return}else Vi(!1),jn.length>0&&setTimeout(function(){Cr([])},50);!mO&&(R==null?void 0:R.name)!=="\u95EE\u77E5\u8BC6"?nf(c,B,f,T):mO=!1,c||(ma({}),zl.current=0)},[c]),(0,h.useEffect)(function(){xs||Vi(!1)},[xs]),(0,h.useEffect)(function(){var Wd=document.querySelector(".".concat(Um().autoCompleteDropdown));if(!!Wd){var vu=(0,v.mY)(c);Object.keys(Er).length>0?Wd.style.marginLeft="".concat(vu,"px"):setTimeout(function(){Wd.style.marginLeft="0px"},200)}},[Er]);var gd=function(vu){var Hd=Object.keys(Er).reduce(function(Zd,Mv){return Zd=Zd.concat(Er[Mv]),Zd},[]).find(function(Zd){return Object.keys(Er).length===1?Zd.recommend===vu:"".concat(Zd.modelName||"").concat(Zd.recommend)===vu});Hd&&mO?He(Hd.recommend,Hd.modelId):He(vu.trim())},xd=S()(Um().autoCompleteDropdown,(r={},(0,A.Z)(r,Um().mobile,v.tq),(0,A.Z)(r,Um().modelOptions,jn.length>0),r)),lv=function(vu){if(mO=!0,jn.length===0)gd(vu);else{var Hd=Y.find(function(Zd){return vu.includes(Zd.name)});Hd&&(Ut(Hd),Ne(""))}Vi(!1),setTimeout(function(){mO=!1},200)},_p=S()(Um().chatFooter,(s={},(0,A.Z)(s,Um().mobile,v.tq),(0,A.Z)(s,Um().defaultCopilotMode,ie&&!ge),s)),$v=T&&!v.tq&&(0,D.jsxs)("div",{className:Um().currentModel,children:[(0,D.jsxs)("div",{className:Um().currentModelName,children:["\u8F93\u5165\u8054\u60F3\u4E0E\u95EE\u9898\u56DE\u590D\u5C06\u9650\u5B9A\u4E8E\uFF1A\u201C",(0,D.jsxs)("span",{className:Um().quoteText,children:[!I&&(0,D.jsxs)(D.Fragment,{children:["\u4E3B\u9898\u57DF\u3010",T.name,"\u3011"]}),I&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("span",{children:"".concat(T.name.slice(0,T.name.length-1),"\u3010")}),(0,D.jsx)("span",{className:Um().entityName,title:I.entityName,children:I.entityName}),(0,D.jsx)("span",{children:"\u3011"})]})]}),"\u201D"]}),(0,D.jsx)("div",{className:Um().cancelModel,onClick:pt,children:"\u53D6\u6D88\u9650\u5B9A"})]}),_v=jn.map(function(Wd){return(0,D.jsx)(PY,{value:c[0]==="/"?"/".concat(Wd.name," "):"@".concat(Wd.name," "),className:Um().searchOption,children:Wd.name},Wd.id)}),yp=Object.keys(Er).map(function(Wd){return(0,D.jsx)(Aoe,{label:Wd,children:Er[Wd].map(function(vu){var Hd=Object.keys(Er).length===1?vu.recommend:"".concat(vu.modelName||"").concat(vu.recommend);if(c[0]==="@"){var Zd=B.find(function(Zm){return c.includes(Zm.name)});Hd=Zd?"@".concat(Zd.name," ").concat(vu.recommend):Hd}else if(c[0]==="/"){var Mv=Y.find(function(Zm){return c.includes(Zm.name)});Hd=Mv?"/".concat(Mv.name," ").concat(vu.recommend):Hd}return(0,D.jsx)(PY,{value:Hd,className:Um().searchOption,children:(0,D.jsxs)("div",{className:Um().optionContent,children:[vu.schemaElementType&&(0,D.jsx)(Soe.Z,{className:Um().semanticType,color:vu.schemaElementType===_E.DIMENSION||vu.schemaElementType===_E.MODEL?"blue":vu.schemaElementType===_E.VALUE?"geekblue":"cyan",children:yY[vu.schemaElementType]||vu.schemaElementType||"\u7EF4\u5EA6"}),vu.subRecommend]})},"".concat(vu.recommend).concat(vu.modelName?"_".concat(vu.modelName):""))})},Wd)});return(0,D.jsx)("div",{className:_p,children:(0,D.jsxs)("div",{className:Um().composer,children:[!v.tq&&(0,D.jsx)("div",{className:Um().collapseBtn,onClick:Oe,children:q?(0,D.jsx)(woe.Z,{}):(0,D.jsx)(Toe.Z,{})}),(0,D.jsx)(TK.Z,{title:"\u65B0\u5EFA\u5BF9\u8BDD",children:(0,D.jsx)(k.Z,{type:"icon-icon-add-conversation-line",className:Um().addConversation,onClick:st})}),(0,D.jsxs)("div",{className:Um().composerInputWrapper,children:[(0,D.jsx)(Eoe,{className:Um().composerInput,placeholder:R!=null&&R.name?"\u667A\u80FD\u52A9\u7406\u3010".concat(R==null?void 0:R.name,"\u3011\u5C06\u4E0E\u60A8\u5BF9\u8BDD\uFF0C\u53EF\u8F93\u5165\u201C/\u201D\u5207\u6362\u52A9\u7406"):"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898",value:c,onChange:Ne,onSelect:lv,autoFocus:!v.tq,backfill:!0,ref:Rl,id:"chatInput",onKeyDown:function(vu){if(vu.code==="Enter"||vu.code==="NumpadEnter"){var Hd=document.getElementById("chatInput");if(!mO)gd(Hd.value),Vi(!1);else{var Zd=Y.find(function(Mv){return Hd.value.includes(Mv.name)});Zd&&(Ut(Zd),Ne(""))}}},onFocus:function(){pl(!0)},onBlur:function(){pl(!1)},dropdownClassName:xd,listHeight:500,allowClear:!0,open:Ei,getPopupContainer:function(vu){return vu.parentNode},children:jn.length>0?_v:yp}),(0,D.jsx)("div",{className:S()(Um().sendBtn,(0,A.Z)({},Um().sendBtnActive,(c==null?void 0:c.length)>0)),onClick:function(){gd(c)},children:(0,D.jsx)(k.Z,{type:"icon-ios-send"})})]})]})})},koe=(0,h.forwardRef)(Moe),Poe=function(e){var t,r=e.isCopilotMode,s=e.copilotFullscreen,c=e.defaultModelName,f=e.defaultEntityFilter,T=e.copilotSendMsg,R=e.triggerNewConversation,I=e.onNewConversationTriggered,B=e.onCurrentModelChange,Y=e.onCancelCopilotFilter,q=e.onCheckMoreDetail,ie=v.tq||r,ge=(0,h.useState)([]),Oe=(0,b.Z)(ge,2),Ne=Oe[0],He=Oe[1],st=(0,h.useState)(""),pt=(0,b.Z)(st,2),Ut=pt[0],pn=pt[1],yn=(0,h.useState)(1),jn=(0,b.Z)(yn,2),Cr=jn[0],Nr=jn[1],Rr=(0,h.useState)(!1),Er=(0,b.Z)(Rr,2),ma=Er[0],wa=Er[1],Ga=(0,h.useState)(!1),Ei=(0,b.Z)(Ga,2),Vi=Ei[0],ns=Ei[1],zo=(0,h.useState)(v.tq?{chatId:0,chatName:"".concat(e7,"\u95EE\u7B54")}:void 0),xs=(0,b.Z)(zo,2),pl=xs[0],Rl=xs[1],zl=(0,h.useState)(ie),Yc=(0,b.Z)(zl,2),kc=Yc[0],tf=Yc[1],wf=(0,h.useState)([]),su=(0,b.Z)(wf,2),ic=su[0],Uc=su[1],bu=(0,h.useState)(),tc=(0,b.Z)(bu,2),nf=tc[0],gd=tc[1],xd=(0,h.useState)(),lv=(0,b.Z)(xd,2),_p=lv[0],$v=lv[1],_v=(0,h.useState)(!1),yp=(0,b.Z)(_v,2),Wd=yp[0],vu=yp[1],Hd=(0,h.useState)(""),Zd=(0,b.Z)(Hd,2),Mv=Zd[0],Zm=Zd[1],rm=(0,h.useState)(""),Hh=(0,b.Z)(rm,2),k0=Hh[0],Ih=Hh[1],Zp=(0,h.useState)([]),Dh=(0,b.Z)(Zp,2),Gh=Dh[0],i_=Dh[1],Hb=(0,h.useState)(),Q_=(0,b.Z)(Hb,2),ug=Q_[0],_C=Q_[1],t7=(0,d.TH)(),gW=(0,_.I0)(),_W=t7.query.modelName,B4=(0,h.useRef)(),yW=(0,h.useRef)(),Ooe=function(){var zp=(0,m.Z)((0,w.Z)().mark(function Pf(){var Fv,wm;return(0,w.Z)().wrap(function(Tm){for(;;)switch(Tm.prev=Tm.next){case 0:return Tm.next=2,Vie();case 2:Fv=Tm.sent,wm=(Fv.data||[]).filter(function(Ym){return Ym.status===1}),i_(wm),wm.length>0&&_C(wm[0]);case 6:case"end":return Tm.stop()}},Pf)}));return function(){return zp.apply(this,arguments)}}();(0,h.useEffect)(function(){Fre(localStorage.getItem(xY.nd)||""),Loe(),Ooe()},[]),(0,h.useEffect)(function(){ic.length>0&&k0&&!nf&&U4(ic.find(function(zp){return zp.name===k0}))},[ic]),(0,h.useEffect)(function(){_W&&Ih(_W)},[_W]),(0,h.useEffect)(function(){c!==void 0&&ic.length>0&&U4(ic.find(function(zp){return zp.name===c}))},[c]),(0,h.useEffect)(function(){if(!!pl){var zp=pl.initMsg,Pf=pl.modelId,Fv=pl.entityId;if(zp){if(Z4(),zp==="CUSTOMIZE"&&T){n7(T,[],Pf,Fv,Gh.find(function(wm){return wm.name==="\u505A\u5206\u6790"})),gW({type:"globalState/setCopilotSendMsg",payload:""});return}if(zp===dW||zp.includes("CUSTOMIZE")){IY();return}n7(zp,[],Pf,Fv);return}DY(1),Nr(1)}},[pl]),(0,h.useEffect)(function(){$v(f)},[f]),(0,h.useEffect)(function(){if(Vi){var zp=document.getElementById("messageContainer");zp==null||zp.addEventListener("scroll",NY)}return function(){var Pf=document.getElementById("messageContainer");Pf==null||Pf.removeEventListener("scroll",NY)}},[Vi]),(0,h.useEffect)(function(){Z4()},[s]);var IY=function(){He([{type:Iy.AGENT_LIST,msg:(ug==null?void 0:ug.name)||"\u67E5\u4FE1\u606F"}])},Ioe=function(Pf){return Pf.map(function(Fv){return{id:Fv.questionId,type:Iy.QUESTION,msg:Fv.queryText,msgData:Fv.queryResult,score:Fv.score,isHistory:!0}})},DY=function(){var zp=(0,m.Z)((0,w.Z)().mark(function Pf(Fv){var wm,q_,Tm,Ym,Xm,R_,Dy,ny;return(0,w.Z)().wrap(function($b){for(;;)switch($b.prev=$b.next){case 0:return $b.next=2,zre(Fv,pl.chatId,3);case 2:q_=$b.sent,Tm=((wm=q_.data)===null||wm===void 0?void 0:wm.data)||{hasNextPage:!1,list:[]},Ym=Tm.hasNextPage,Xm=Tm.list,R_=[].concat((0,M.Z)(Ioe(Xm)),(0,M.Z)(Fv===1?[]:Ne)),He(R_),wa(Ym),Fv===1?(Xm.length===0&&IY(),(0,v.lK)(),ns(!0),Z4()):(ny=document.getElementById("".concat((Dy=Ne[0])===null||Dy===void 0?void 0:Dy.id)),ny==null||ny.scrollIntoView());case 8:case"end":return $b.stop()}},Pf)}));return function(Fv){return zp.apply(this,arguments)}}(),Doe=aoe(function(zp){zp.target.scrollTop===0&&ma&&(DY(Cr+1),Nr(Cr+1))},{leading:!0,trailing:!0,wait:200}),NY=Doe.run,U4=function(Pf){gd(Pf),B&&B(Pf)},Noe=function(Pf){_C(Pf)},Loe=function(){var zp=(0,m.Z)((0,w.Z)().mark(function Pf(){var Fv,wm;return(0,w.Z)().wrap(function(Tm){for(;;)switch(Tm.prev=Tm.next){case 0:return Tm.next=2,Uie();case 2:Fv=Tm.sent,wm=(0,v.FS)(Fv.data),Uc([{id:-1,name:"\u5168\u90E8",bizName:"all",parentId:0}].concat((0,M.Z)(wm)).slice(0,11)),c!==void 0&&U4(wm.find(function(Ym){return Ym.name===c}));case 6:case"end":return Tm.stop()}},Pf)}));return function(){return zp.apply(this,arguments)}}(),Z4=function(){if(!v.tq){var Pf;(Pf=yW.current)===null||Pf===void 0||Pf.inputFocus()}},Foe=function(){var Pf;(Pf=yW.current)===null||Pf===void 0||Pf.inputBlur()},n7=function(){var zp=(0,m.Z)((0,w.Z)().mark(function Pf(Fv,wm,q_,Tm,Ym){var Xm,R_,Dy,ny,Gb,$b,Hw,V4,FY,jY;return(0,w.Z)().wrap(function(z4){for(;;)switch(z4.prev=z4.next){case 0:if(Xm=Fv||Ut,Xm.trim()!==""){z4.next=4;break}return pn(""),z4.abrupt("return");case 4:R_=ic.find(function(bW){return Xm.includes(bW.name)}),Dy=Xm[0]==="@"&&R_,ny=!1,Dy&&(Gb=R_.id===-1?void 0:R_,U4(Gb),ny=(nf==null?void 0:nf.id)!==(Gb==null?void 0:Gb.id)),$b=q_||(R_==null?void 0:R_.id)||(nf==null?void 0:nf.id),Hw=Gh.find(function(bW){return Xm.indexOf(bW.name)===1}),V4=Xm[0]==="/"&&Hw,FY=V4?Hw.id:void 0,(Ym||V4)&&Noe(Ym||Hw),jY=[].concat((0,M.Z)(wm||Ne),[{id:(0,v.Vj)(),msg:Xm,msgValue:Dy?Xm.replace("@".concat(R_.name),"").trim():V4?Xm.replace("/".concat(V4.name),"").trim():Xm,modelId:$b===-1?void 0:$b,agentId:(Ym==null?void 0:Ym.id)||FY||(ug==null?void 0:ug.id),entityId:Tm||(ny||_p==null?void 0:_p.entityId),identityMsg:Dy?Hoe(R_):void 0,type:Iy.QUESTION}]),He(jY),(0,v.lK)(),pn("");case 17:case"end":return z4.stop()}},Pf)}));return function(Fv,wm,q_,Tm,Ym){return zp.apply(this,arguments)}}(),joe=function(Pf){var Fv=Pf||"";pn(Fv)},Boe=function(Pf){Pf?Pf.chatId!==-1&&localStorage.setItem("CONVERSATION_ID","".concat(Pf.chatId)):localStorage.removeItem("CONVERSATION_ID")},Uoe=function(Pf,Fv,wm,q_){ie||window.history.replaceState("","","?q=".concat(Pf.chatName,"&cid=").concat(Pf.chatId)),Rl((0,y.Z)((0,y.Z)({},Pf),{},{initMsg:Fv,modelId:wm,entityId:q_})),Boe(Pf)},Zoe=function(Pf){var Fv,wm,q_=Pf.chatContext,Tm=q_.queryMode,Ym=q_.dimensionFilters,Xm=q_.elementMatches,R_=q_.modelName,Dy=q_.model;if(Tm==="ENTITY_LIST_FILTER"){var ny=(Ym==null?void 0:Ym.length)>0?Ym[0].value:void 0,Gb=Xm==null||(Fv=Xm.find(function($b){var Hw;return((Hw=$b.element)===null||Hw===void 0?void 0:Hw.type)==="ID"}))===null||Fv===void 0||(wm=Fv.element)===null||wm===void 0?void 0:wm.name;typeof ny=="string"&&Gb&&(gd(Dy),$v({entityId:ny,entityName:Gb,modelName:R_}))}},Voe=function(Pf,Fv,wm,q_){if(!v.tq){var Tm;B4==null||(Tm=B4.current)===null||Tm===void 0||Tm.updateData()}if(!!Pf){var Ym;if(Pf.parseOptions&&Pf.parseOptions.length>0){var Xm;Ym={id:(0,v.Vj)(),msg:(Xm=Ne[Ne.length-1])===null||Xm===void 0?void 0:Xm.msg,type:Iy.PARSE_OPTIONS,parseOptions:Pf.parseOptions}}var R_=(0,K.cloneDeep)(Ne),Dy=R_.find(function(Gb){return Gb.id===Fv});if(Dy){Dy.msgData=Pf;var ny=[].concat((0,M.Z)(R_),(0,M.Z)(Ym?[Ym]:[]));He(ny),Zoe(Pf,ny)}(0,v.lK)("".concat(Fv))}},zoe=function(Pf){He([].concat((0,M.Z)(Ne),[{id:(0,v.Vj)(),msg:Pf.response.name,type:Iy.PLUGIN,msgData:Pf}])),(0,v.lK)(),q&&q()},Woe=function(){tf(!kc),localStorage.setItem("CONVERSATION_COLLAPSED","".concat(!kc))},Hoe=function(Pf){return Pf?"\u60A8\u597D\uFF0C\u6211\u5F53\u524D\u8EAB\u4EFD\u662F\u3010".concat(Pf.name,"\u3011\u4E3B\u9898\u4E13\u5BB6\uFF0C\u6211\u5C06\u5C3D\u529B\u5E2E\u60A8\u89E3\u7B54\u76F8\u5173\u95EE\u9898\uFF5E"):"\u60A8\u597D\uFF0C\u6211\u5C06\u5C3D\u529B\u5E2E\u60A8\u89E3\u7B54\u6240\u6709\u4E3B\u9898\u76F8\u5173\u95EE\u9898\uFF5E"},Goe=function(Pf){Zm(Pf),vu(!0)},$oe=function(){var Pf;(Pf=B4.current)===null||Pf===void 0||Pf.onAddConversation(),Z4()},LY=function(Pf){_C(Pf),He([].concat((0,M.Z)(Ne),[{id:(0,v.Vj)(),type:Iy.TEXT,msg:"\u60A8\u597D\uFF0C\u667A\u80FD\u52A9\u7406\u3010".concat(Pf.name,"\u3011\u5C06\u4E0E\u60A8\u5BF9\u8BDD\uFF0C\u53EF\u8F93\u5165\u201C/\u201D\u5207\u6362\u52A9\u7406")}])),(0,v.lK)()},Koe=S()(Ch().chat,(t={},(0,A.Z)(t,Ch().mobileMode,ie),(0,A.Z)(t,Ch().mobile,v.tq),(0,A.Z)(t,Ch().copilotFullscreen,s),(0,A.Z)(t,Ch().conversationCollapsed,kc),t));return(0,D.jsxs)("div",{className:Koe,children:[!ie&&(0,D.jsx)(_.ql,{title:bY}),(0,D.jsx)("div",{className:Ch().topSection}),(0,D.jsxs)("div",{className:Ch().chatSection,children:[(0,D.jsx)(voe,{currentConversation:pl,collapsed:kc,isCopilotMode:r,defaultModelName:c,defaultEntityFilter:f,triggerNewConversation:R,onNewConversationTriggered:I,onSelectConversation:Uoe,ref:B4}),(0,D.jsx)("div",{className:Ch().chatApp,children:pl&&(0,D.jsx)("div",{className:Ch().chatBody,children:(0,D.jsxs)("div",{className:Ch().chatContent,children:[(0,D.jsx)(Jie,{id:"messageContainer",messageList:Ne,chatId:pl==null?void 0:pl.chatId,isMobileMode:ie,conversationCollapsed:kc,copilotFullscreen:s,agentList:Gh,onClickMessageContainer:Z4,onMsgDataLoaded:Voe,onCheckMore:zoe,onApplyAuth:Goe,onSendMsg:n7,onSelectAgent:LY}),(0,D.jsx)(koe,{inputMsg:Ut,chatId:pl==null?void 0:pl.chatId,models:ic,agentList:Gh,currentModel:nf,currentAgent:ug,defaultEntity:_p,collapsed:kc,isCopilotMode:r,copilotFullscreen:s,onToggleCollapseBtn:Woe,onInputMsgChange:joe,onSendMsg:function(Pf,Fv){n7(Pf,Ne,Fv),v.tq&&Foe()},onAddConversation:$oe,onCancelDefaultFilter:function(){U4(void 0),$v(void 0),Y&&Y()},onSelectAgent:LY,ref:yW})]})})})]})]})},Roe=Poe},23491:function(oe,N,o){"use strict";o.d(N,{Z:function(){return wt}});var x=o(36805),g=o(57535),A=o(13753),y=o(48429),M=o(97140),w=o(90407),m=o(43623),b=o(7523),v=o(14943),h=o(74356),d=o(14643),_=o(92909),p=o(11849),S=o(39428),k=o(3182),O=o(2824),F=o(68137),D=o(50532),Z=o(24480),W=o(49101),U=o(56051),L=o.n(U),V=o(67294),$={WEB_PAGE:"Web\u9875\u9762",WEB_SERVICE:"Web\u670D\u52A1"},G={EMBEDDING_RECALL:"\u5411\u91CF\u53EC\u56DE",FUNCTION_CALL:"\u51FD\u6570\u8C03\u7528"},z={WIDGET:"blue",DASHBOARD:"volcano",URL:"purple",TAG:"cyan"},K=o(26780),re=o(51935),ne=o(11826),Q=o(1541),ue=o(90140),he=o(32620),Ee=o(32059),ce=o(86582),ve=o(67604),fe=o(72285),we=o(7122),me;(function(Vt){Vt.WEB_PAGE="WEB_PAGE",Vt.WEB_SERVICE="WEB_SERVICE",Vt.DSL="DSL"})(me||(me={}));var Pe;(function(Vt){Vt.EMBEDDING_RECALL="EMBEDDING_RECALL",Vt.FUNCTION_CALL="FUNCTION_CALL"})(Pe||(Pe={}));var pe;(function(Vt){Vt.CUSTOM="CUSTOM",Vt.SEMANTIC="SEMANTIC",Vt.FORWARD="FORWARD"})(pe||(pe={}));var Ie=o(27818),Je=o.n(Ie),ke=o(73171),De=o(96486),Fe=o(85893),Qe=fe.Z.Item,qe=D.Z.TextArea,et=function(gt){var it=gt.detail,Le=gt.onSubmit,ct=gt.onCancel,at=(0,V.useState)([]),jt=(0,O.Z)(at,2),St=jt[0],fn=jt[1],Xt=(0,V.useState)({}),Yt=(0,O.Z)(Xt,2),Rt=Yt[0],Lt=Yt[1],ze=(0,V.useState)(!1),rt=(0,O.Z)(ze,2),tt=rt[0],de=rt[1],ot=(0,V.useState)(),Et=(0,O.Z)(ot,2),Ht=Et[0],Jt=Et[1],Qt=(0,V.useState)(),an=(0,O.Z)(Qt,2),Un=an[0],qt=an[1],rn=(0,V.useState)([]),cn=(0,O.Z)(rn,2),er=cn[0],rr=cn[1],nt=(0,V.useState)([]),lr=(0,O.Z)(nt,2),Hn=lr[0],ut=lr[1],bt=(0,V.useState)([]),We=(0,O.Z)(bt,2),be=We[0],Ae=We[1],Ue=fe.Z.useForm(),$e=(0,O.Z)(Ue,1),kt=$e[0],lt=function(){var zt=(0,k.Z)((0,S.Z)().mark(function ln(){var An;return(0,S.Z)().wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:return Gn.next=2,(0,we.fZ)();case 2:An=Gn.sent,fn([{id:-1,name:"\u9ED8\u8BA4"}].concat((0,ce.Z)((0,Z.FS)(An.data))));case 4:case"end":return Gn.stop()}},ln)}));return function(){return zt.apply(this,arguments)}}();(0,V.useEffect)(function(){lt()},[]);var vt=function(){var zt=(0,k.Z)((0,S.Z)().mark(function ln(An){var En,Gn;return(0,S.Z)().wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:return En=An.filter(function(_r){return!!_r.modelId}).map(function(_r){return _r.modelId}),pr.next=3,Promise.all(En.map(function(_r){return(0,we.dt)(_r)}));case 3:Gn=pr.sent,Lt(En.reduce(function(_r,na,$n){return _r[na]=Gn[$n].data.list,_r},{}));case 5:case"end":return pr.stop()}},ln)}));return function(An){return zt.apply(this,arguments)}}();(0,V.useEffect)(function(){if(it){var zt,ln,An=it.config||{},En=An.paramOptions,Gn=En==null||(zt=En.find(function($n){return $n.paramType==="FORWARD"&&$n.key==="height"}))===null||zt===void 0?void 0:zt.value;if(kt.setFieldsValue((0,p.Z)((0,p.Z)({},it),{},{url:(ln=it.config)===null||ln===void 0?void 0:ln.url,height:Gn})),(En==null?void 0:En.length)>0){var Bn=En.filter(function($n){return $n.paramType!==pe.FORWARD});Ae(Bn),vt(Bn)}Jt(it.type);var pr=JSON.parse(it.parseModeConfig||"{}");qt(pr.name);var _r=pr.parameters||{},na=_r.properties;rr(na?Object.keys(na).map(function($n,qr){return{id:"".concat(qr),name:$n,type:na[$n].type,description:na[$n].description}}):[]),ut(pr.examples?pr.examples.map(function($n,qr){return{id:qr,question:$n}}):[])}},[it]);var Ct={labelCol:{span:4},wrapperCol:{span:20}},Bt=function(ln){return{name:Un,description:ln,parameters:{type:"object",properties:er.filter(function(An){var En;return!!((En=An.name)!==null&&En!==void 0&&En.trim())}).reduce(function(An,En){return An[En.name||""]={type:En.type,description:En.description},An},{}),required:er.filter(function(An){var En;return!!((En=An.name)!==null&&En!==void 0&&En.trim())}).map(function(An){return An.name})},examples:Hn.filter(function(An){var En;return!!((En=An.question)!==null&&En!==void 0&&En.trim())}).map(function(An){return An.question})}},mt=function(){var zt=(0,k.Z)((0,S.Z)().mark(function ln(){var An,En,Gn;return(0,S.Z)().wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:return pr.next=2,kt.validateFields();case 2:return An=pr.sent,de(!0),En=(0,De.isArray)(be)?be==null?void 0:be.filter(function(_r){return typeof _r=="object"&&(_r.paramType!==null||_r.value!=null)}):[],En=En.concat([{paramType:pe.FORWARD,key:"height",value:An.height||void 0}]),Gn={url:An.url,paramOptions:En},pr.next=9,(0,we.iS)((0,p.Z)((0,p.Z)({},An),{},{id:it==null?void 0:it.id,modelList:(0,De.isArray)(An.modelList)?An.modelList:[An.modelList],config:JSON.stringify(Gn),parseModeConfig:JSON.stringify(Bt(An.pattern))}));case 9:de(!1),Le(An),_.default.success(it!=null&&it.id?"\u7F16\u8F91\u6210\u529F":"\u65B0\u5EFA\u6210\u529F");case 12:case"end":return pr.stop()}},ln)}));return function(){return zt.apply(this,arguments)}}(),Zt=function(){var zt=(0,k.Z)((0,S.Z)().mark(function ln(An){var En;return(0,S.Z)().wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:if(!Rt[An]){Bn.next=2;break}return Bn.abrupt("return");case 2:return Bn.next=4,(0,we.dt)(An);case 4:En=Bn.sent,Lt((0,p.Z)((0,p.Z)({},Rt),{},(0,Ee.Z)({},An,En.data.list)));case 6:case"end":return Bn.stop()}},ln)}));return function(An){return zt.apply(this,arguments)}}();return(0,Fe.jsx)(re.Z,{open:!0,title:it?"\u7F16\u8F91\u63D2\u4EF6":"\u65B0\u5EFA\u63D2\u4EF6",width:900,confirmLoading:tt,onOk:mt,onCancel:ct,children:(0,Fe.jsxs)(fe.Z,(0,p.Z)((0,p.Z)({},Ct),{},{form:kt,style:{maxWidth:820},children:[(0,Fe.jsx)(Qe,{name:"modelList",label:"\u4E3B\u9898\u57DF",children:(0,Fe.jsx)(w.Z,{placeholder:"\u8BF7\u9009\u62E9\u4E3B\u9898\u57DF",options:St.map(function(zt){return{label:zt.name,value:zt.id}}),showSearch:!0,filterOption:function(ln,An){var En;return((En=An==null?void 0:An.label)!==null&&En!==void 0?En:"").toLowerCase().includes(ln.toLowerCase())},mode:"multiple",allowClear:!0})}),(0,Fe.jsx)(Qe,{name:"name",label:"\u63D2\u4EF6\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D2\u4EF6\u540D\u79F0"}],children:(0,Fe.jsx)(D.Z,{placeholder:"\u8BF7\u8F93\u5165\u63D2\u4EF6\u540D\u79F0",allowClear:!0})}),(0,Fe.jsx)(Qe,{name:"type",label:"\u63D2\u4EF6\u7C7B\u578B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u63D2\u4EF6\u7C7B\u578B"}],children:(0,Fe.jsx)(w.Z,{placeholder:"\u8BF7\u9009\u62E9\u63D2\u4EF6\u7C7B\u578B",options:Object.keys($).map(function(zt){return{label:$[zt],value:zt}}),onChange:function(ln){Jt(ln),ln===me.DSL&&(kt.setFieldsValue({parseMode:Pe.FUNCTION_CALL}),rr([{id:(0,Z.Vj)(),name:"query_text",type:"string",description:"\u7528\u6237\u7684\u539F\u59CB\u81EA\u7136\u8BED\u8A00\u67E5\u8BE2"}]))}})}),(0,Fe.jsx)(Qe,{label:"\u51FD\u6570\u540D\u79F0",children:(0,Fe.jsx)(D.Z,{value:Un,onChange:function(ln){qt(ln.target.value)},placeholder:"\u8BF7\u8F93\u5165\u51FD\u6570\u540D\u79F0\uFF0C\u53EA\u80FD\u5305\u542B\u56E0\u4E3A\u5B57\u6BCD\u548C\u4E0B\u5212\u7EBF",allowClear:!0})}),(0,Fe.jsx)(Qe,{name:"pattern",label:"\u51FD\u6570\u63CF\u8FF0",children:(0,Fe.jsx)(qe,{placeholder:"\u8BF7\u8F93\u5165\u51FD\u6570\u63CF\u8FF0\uFF0C\u591A\u4E2A\u63CF\u8FF0\u6362\u884C\u5206\u9694",allowClear:!0})}),(0,Fe.jsx)(Qe,{name:"params",label:"\u51FD\u6570\u53C2\u6570",hidden:Ht===me.DSL,children:(0,Fe.jsxs)("div",{className:Je().paramsSection,children:[er.map(function(zt){var ln=zt.id,An=zt.name,En=zt.type,Gn=zt.description;return(0,Fe.jsxs)("div",{className:Je().filterRow,children:[(0,Fe.jsx)(D.Z,{placeholder:"\u53C2\u6570\u540D\u79F0",value:An,className:Je().filterParamName,onChange:function(pr){zt.name=pr.target.value,rr((0,ce.Z)(er))},allowClear:!0}),(0,Fe.jsx)(w.Z,{placeholder:"\u53C2\u6570\u7C7B\u578B",options:[{label:"\u5B57\u7B26\u4E32",value:"string"},{label:"\u6574\u578B",value:"int"}],className:Je().filterParamValueField,allowClear:!0,value:En,onChange:function(pr){zt.type=pr,rr((0,ce.Z)(er))}}),(0,Fe.jsx)(D.Z,{placeholder:"\u53C2\u6570\u63CF\u8FF0",value:Gn,className:Je().filterParamValueField,onChange:function(pr){zt.description=pr.target.value,rr((0,ce.Z)(er))},allowClear:!0}),(0,Fe.jsx)(ke.Z,{onClick:function(){rr(er.filter(function(pr){return pr.id!==ln}))}})]},ln)}),(0,Fe.jsxs)(y.Z,{onClick:function(){rr([].concat((0,ce.Z)(er),[{id:(0,Z.Vj)()}]))},children:[(0,Fe.jsx)(W.Z,{}),"\u65B0\u589E\u51FD\u6570\u53C2\u6570"]})]})}),(0,Fe.jsx)(Qe,{name:"exampleQuestions",label:"\u793A\u4F8B\u95EE\u9898",children:(0,Fe.jsxs)("div",{className:Je().paramsSection,children:[Hn.map(function(zt){var ln=zt.id,An=zt.question;return(0,Fe.jsxs)("div",{className:Je().filterRow,children:[(0,Fe.jsx)(D.Z,{placeholder:"\u793A\u4F8B\u95EE\u9898",value:An,className:Je().questionExample,onChange:function(Gn){zt.question=Gn.target.value,ut((0,ce.Z)(Hn))},allowClear:!0}),(0,Fe.jsx)(ke.Z,{onClick:function(){ut(Hn.filter(function(Gn){return Gn.id!==ln}))}})]},ln)}),(0,Fe.jsxs)(y.Z,{onClick:function(){ut([].concat((0,ce.Z)(Hn),[{id:(0,Z.Vj)()}]))},children:[(0,Fe.jsx)(W.Z,{}),"\u65B0\u589E\u793A\u4F8B\u95EE\u9898"]})]})}),(Ht===me.WEB_PAGE||Ht===me.WEB_SERVICE)&&(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)(Qe,{name:"url",label:"\u5730\u5740",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5730\u5740"}],children:(0,Fe.jsx)(D.Z,{placeholder:"\u8BF7\u8F93\u5165\u5730\u5740",allowClear:!0})}),(0,Fe.jsx)(Qe,{name:"params",label:"\u53C2\u6570",children:(0,Fe.jsxs)("div",{className:Je().paramsSection,children:[be.map(function(zt){return(0,Fe.jsxs)("div",{className:Je().filterRow,children:[(0,Fe.jsx)(D.Z,{placeholder:"\u53C2\u6570\u540D\u79F0",value:zt.key,className:Je().filterParamName,onChange:function(An){zt.key=An.target.value,Ae((0,ce.Z)(be))},allowClear:!0}),(0,Fe.jsxs)(he.ZP.Group,{onChange:function(An){zt.paramType=An.target.value,Ae((0,ce.Z)(be))},value:zt.paramType,children:[(0,Fe.jsx)(he.ZP,{value:pe.SEMANTIC,children:"\u7EF4\u5EA6"}),(0,Fe.jsx)(he.ZP,{value:pe.CUSTOM,children:"\u81EA\u5B9A\u4E49"})]}),zt.paramType===pe.CUSTOM&&(0,Fe.jsx)(D.Z,{placeholder:"\u8BF7\u8F93\u5165",value:zt.value,className:Je().filterParamValueField,onChange:function(An){zt.value=An.target.value,Ae((0,ce.Z)(be))},allowClear:!0}),zt.paramType===pe.SEMANTIC&&(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)(w.Z,{placeholder:"\u4E3B\u9898\u57DF",options:St.map(function(ln){return{label:ln.name,value:ln.id}}),showSearch:!0,filterOption:function(An,En){var Gn;return((Gn=En==null?void 0:En.label)!==null&&Gn!==void 0?Gn:"").toLowerCase().includes(An.toLowerCase())},className:Je().filterParamName,allowClear:!0,value:zt.modelId,onChange:function(An){zt.modelId=An,Ae((0,ce.Z)(be)),Zt(An)}}),(0,Fe.jsx)(w.Z,{placeholder:"\u8BF7\u9009\u62E9\u7EF4\u5EA6\uFF0C\u9700\u5148\u9009\u62E9\u4E3B\u9898\u57DF",options:(Rt[zt.modelId]||[]).map(function(ln){return{label:ln.name,value:"".concat(ln.id)}}),showSearch:!0,className:Je().filterParamValueField,filterOption:function(An,En){var Gn;return((Gn=En==null?void 0:En.label)!==null&&Gn!==void 0?Gn:"").toLowerCase().includes(An.toLowerCase())},allowClear:!0,value:zt.elementId,onChange:function(An){zt.elementId=An,Ae((0,ce.Z)(be))}})]}),(0,Fe.jsx)(ke.Z,{onClick:function(){Ae(be.filter(function(An){return An.id!==zt.id}))}})]},zt.id)}),(0,Fe.jsxs)(y.Z,{onClick:function(){Ae([].concat((0,ce.Z)(be),[{id:(0,Z.Vj)(),key:void 0,value:void 0}]))},children:[(0,Fe.jsx)(W.Z,{}),"\u65B0\u589E\u53C2\u6570"]})]})})]}),(0,Fe.jsx)(Qe,{name:"height",label:"\u9AD8\u5EA6",children:(0,Fe.jsx)(Q.Z,{placeholder:"\u5355\u4F4Dpx"})})]}))})},dt=et,Ke=D.Z.Search,Ge=function(){var gt=(0,V.useState)(),it=(0,O.Z)(gt,2),Le=it[0],ct=it[1],at=(0,V.useState)(),jt=(0,O.Z)(at,2),St=jt[0],fn=jt[1],Xt=(0,V.useState)(),Yt=(0,O.Z)(Xt,2),Rt=Yt[0],Lt=Yt[1],ze=(0,V.useState)(),rt=(0,O.Z)(ze,2),tt=rt[0],de=rt[1],ot=(0,V.useState)([]),Et=(0,O.Z)(ot,2),Ht=Et[0],Jt=Et[1],Qt=(0,V.useState)([]),an=(0,O.Z)(Qt,2),Un=an[0],qt=an[1],rn=(0,V.useState)(!1),cn=(0,O.Z)(rn,2),er=cn[0],rr=cn[1],nt=(0,V.useState)(),lr=(0,O.Z)(nt,2),Hn=lr[0],ut=lr[1],bt=(0,V.useState)(!1),We=(0,O.Z)(bt,2),be=We[0],Ae=We[1],Ue=function(){var ln=(0,k.Z)((0,S.Z)().mark(function An(){var En;return(0,S.Z)().wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Bn.next=2,(0,we.fZ)();case 2:En=Bn.sent,qt((0,Z.FS)(En.data));case 4:case"end":return Bn.stop()}},An)}));return function(){return ln.apply(this,arguments)}}(),$e=function(){var ln=(0,k.Z)((0,S.Z)().mark(function An(En){var Gn,Bn;return(0,S.Z)().wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return rr(!0),_r.next=3,(0,we.UV)((0,p.Z)({name:Le,type:St,pattern:Rt,model:tt},En||{}));case 3:Bn=_r.sent,rr(!1),Jt(((Gn=Bn.data)===null||Gn===void 0?void 0:Gn.map(function(na){return(0,p.Z)((0,p.Z)({},na),{},{config:JSON.parse(na.config||"{}")})}))||[]);case 6:case"end":return _r.stop()}},An)}));return function(En){return ln.apply(this,arguments)}}();(0,V.useEffect)(function(){Ue(),$e()},[]);var kt=function(An){ut(An),Ae(!0)},lt=function(){var ln=(0,k.Z)((0,S.Z)().mark(function An(En){return(0,S.Z)().wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Bn.next=2,(0,we.f$)(En.id);case 2:_.default.success("\u63D2\u4EF6\u5220\u9664\u6210\u529F"),$e();case 4:case"end":return Bn.stop()}},An)}));return function(En){return ln.apply(this,arguments)}}(),vt=[{title:"\u63D2\u4EF6\u540D\u79F0",dataIndex:"name",key:"name"},{title:"\u4E3B\u9898\u57DF",dataIndex:"modelList",key:"modelList",width:200,render:function(An){return An!=null&&An.includes(-1)?"\u9ED8\u8BA4":An?(0,Fe.jsx)("div",{className:Je().modelColumn,children:An.map(function(En,Gn){var Bn,pr=(Bn=Un.find(function(_r){return _r.id===+En}))===null||Bn===void 0?void 0:Bn.name;return pr?(0,Fe.jsx)(h.Z,{children:pr},En):null})}):"-"}},{title:"\u63D2\u4EF6\u7C7B\u578B",dataIndex:"type",key:"type",render:function(An){return(0,Fe.jsx)(h.Z,{color:An===me.WEB_PAGE?"blue":"cyan",children:$[An]})}},{title:"\u51FD\u6570\u63CF\u8FF0",dataIndex:"pattern",key:"pattern",width:450},{title:"\u66F4\u65B0\u4EBA",dataIndex:"updatedBy",key:"updatedBy",render:function(An){return An||"-"}},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updatedAt",key:"updatedAt",render:function(An){return An?L()(An).format("YYYY-MM-DD HH:mm"):"-"}},{title:"\u64CD\u4F5C",dataIndex:"x",key:"x",render:function(An,En){return(0,Fe.jsxs)("div",{className:Je().operator,children:[(0,Fe.jsx)("a",{onClick:function(){kt(En)},children:"\u7F16\u8F91"}),(0,Fe.jsx)(b.Z,{title:"\u786E\u5B9A\u5220\u9664\u5417\uFF1F",onConfirm:function(){lt(En)},children:(0,Fe.jsx)("a",{children:"\u5220\u9664"})})]})}}],Ct=function(An){de(An),$e({model:An})},Bt=function(An){fn(An),$e({type:An})},mt=function(){$e()},Zt=function(){ut(void 0),Ae(!0)},zt=function(){Ae(!1),$e()};return(0,Fe.jsxs)("div",{className:Je().pluginManage,children:[(0,Fe.jsxs)("div",{className:Je().filterSection,children:[(0,Fe.jsxs)("div",{className:Je().filterItem,children:[(0,Fe.jsx)("div",{className:Je().filterItemTitle,children:"\u4E3B\u9898\u57DF"}),(0,Fe.jsx)(w.Z,{className:Je().filterItemControl,placeholder:"\u8BF7\u9009\u62E9\u4E3B\u9898\u57DF",options:Un.map(function(ln){return{label:ln.name,value:ln.id}}),value:tt,allowClear:!0,onChange:Ct})]}),(0,Fe.jsxs)("div",{className:Je().filterItem,children:[(0,Fe.jsx)("div",{className:Je().filterItemTitle,children:"\u63D2\u4EF6\u540D\u79F0"}),(0,Fe.jsx)(Ke,{className:Je().filterItemControl,placeholder:"\u8BF7\u8F93\u5165\u63D2\u4EF6\u540D\u79F0",value:Le,onChange:function(An){ct(An.target.value)},onSearch:mt})]}),(0,Fe.jsxs)("div",{className:Je().filterItem,children:[(0,Fe.jsx)("div",{className:Je().filterItemTitle,children:"\u51FD\u6570\u63CF\u8FF0"}),(0,Fe.jsx)(Ke,{className:Je().filterItemControl,placeholder:"\u8BF7\u8F93\u5165\u51FD\u6570\u63CF\u8FF0",value:Rt,onChange:function(An){Lt(An.target.value)},onSearch:mt})]}),(0,Fe.jsxs)("div",{className:Je().filterItem,children:[(0,Fe.jsx)("div",{className:Je().filterItemTitle,children:"\u63D2\u4EF6\u7C7B\u578B"}),(0,Fe.jsx)(w.Z,{className:Je().filterItemControl,placeholder:"\u8BF7\u9009\u62E9\u63D2\u4EF6\u7C7B\u578B",options:Object.keys($).map(function(ln){return{label:$[ln],value:ln}}),value:St,allowClear:!0,onChange:Bt})]})]}),(0,Fe.jsxs)("div",{className:Je().pluginList,children:[(0,Fe.jsxs)("div",{className:Je().titleBar,children:[(0,Fe.jsx)("div",{className:Je().title,children:"\u63D2\u4EF6\u5217\u8868"}),(0,Fe.jsxs)(y.Z,{type:"primary",onClick:Zt,children:[(0,Fe.jsx)(W.Z,{}),"\u65B0\u5EFA\u63D2\u4EF6"]})]}),(0,Fe.jsx)(g.Z,{columns:vt,dataSource:Ht,size:"small",pagination:{defaultPageSize:20},loading:er})]}),be&&(0,Fe.jsx)(dt,{detail:Hn,onSubmit:zt,onCancel:function(){Ae(!1)}})]})},wt=Ge},7122:function(oe,N,o){"use strict";o.d(N,{iS:function(){return g},UV:function(){return A},f$:function(){return y},fZ:function(){return M},dt:function(){return w}});var x=o(20546);function g(m){return(0,x.WY)("/api/chat/plugin",{method:m.id?"PUT":"POST",data:m})}function A(m){return(0,x.WY)("/api/chat/plugin/query",{method:"POST",data:m})}function y(m){return(0,x.WY)("/api/chat/plugin/".concat(m),{method:"DELETE"})}function M(){return(0,x.WY)("/api/chat/conf/modelList",{method:"GET"})}function w(m){return(0,x.WY)("/api/semantic/dimension/queryDimension",{method:"POST",data:{modelIds:[m],current:1,pageSize:2e3}})}},90366:function(oe,N,o){"use strict";o.d(N,{Z:function(){return Je}});var x=o(13753),g=o(48429),A=o(68137),y=o(50532),M=o(25324),w=o(45733),m=o(39428),b=o(14643),v=o(92909),h=o(11849),d=o(3182),_=o(2824),p=o(67604),S=o(72285),k=o(6359),O=o.n(k),F=o(28991),D=o(67294),Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},W=Z,U=o(27029),L=function(De,Fe){return D.createElement(U.Z,(0,F.Z)((0,F.Z)({},De),{},{ref:Fe,icon:W}))};L.displayName="LockOutlined";var V=D.forwardRef(L),$=o(89366),G=o(26780),z=o(51935),K=o(85893),re={labelCol:{span:4},wrapperCol:{span:18}},ne=S.Z.Item,Q=function(De){var Fe=(0,D.useState)({name:"",password:""}),Qe=(0,_.Z)(Fe,2),qe=Qe[0],et=Qe[1],dt=(0,D.useState)(!1),Ke=(0,_.Z)(dt,2),Ge=Ke[0],wt=Ke[1],Vt=S.Z.useForm(),gt=(0,_.Z)(Vt,1),it=gt[0],Le=De.onSubmit,ct=De.onCancel,at=De.createModalVisible,jt=function(){var fn=(0,d.Z)((0,m.Z)().mark(function Xt(){var Yt,Rt;return(0,m.Z)().wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ze.next=2,it.validateFields();case 2:return Yt=ze.sent,et((0,h.Z)((0,h.Z)({},qe),Yt)),wt(!0),Rt=(0,h.Z)((0,h.Z)({},qe),Yt),ze.prev=6,ze.next=9,Le(Rt);case 9:wt(!1),ze.next=15;break;case 12:ze.prev=12,ze.t0=ze.catch(6),wt(!1);case 15:case"end":return ze.stop()}},Xt,null,[[6,12]])}));return function(){return fn.apply(this,arguments)}}(),St=function(){return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(g.Z,{onClick:ct,children:"\u53D6\u6D88"}),(0,K.jsx)(g.Z,{type:"primary",loading:Ge,onClick:jt,children:"\u5B8C\u6210\u6CE8\u518C"})]})};return(0,K.jsx)(z.Z,{width:600,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u7528\u6237\u6CE8\u518C",open:at,footer:St(),onCancel:ct,children:(0,K.jsxs)(S.Z,(0,h.Z)((0,h.Z)({},re),{},{form:it,initialValues:(0,h.Z)({},qe),children:[(0,K.jsx)(ne,{name:"name",rules:[{required:!0}],label:"\u8D26\u53F7",children:(0,K.jsx)(y.Z,{size:"large",placeholder:"\u8BF7\u8F93\u5165\u8D26\u53F7"})}),(0,K.jsx)(ne,{name:"password",rules:[{required:!0,min:6,max:10}],label:"\u5BC6\u7801",children:(0,K.jsx)(y.Z,{size:"large",type:"password",placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801"})})]}))})},ue=Q,he=o(3657),Ee=o(91603),ce=o(2138);function ve(ke){return(0,ce.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.AUTH_API_BASE_URL,"user/register"),{method:"POST",data:ke})}function fe(ke){return(0,ce.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.AUTH_API_BASE_URL,"user/login"),{method:"POST",data:ke})}var we=o(41827),me=o(85304),Pe=o(20546),pe=S.Z.Item,Ie=function(){var De=(0,D.useState)(!1),Fe=(0,_.Z)(De,2),Qe=Fe[0],qe=Fe[1],et=(0,Ee.cI)(),dt=(0,_.Z)(et,1),Ke=dt[0],Ge=(0,Pe.tT)("@@initialState"),wt=Ge.initialState,Vt=wt===void 0?{}:wt,gt=Ge.setInitialState,it=function(){var jt=(0,d.Z)((0,m.Z)().mark(function St(fn){var Xt,Yt,Rt,Lt,ze,rt,tt,de;return(0,m.Z)().wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return Et.next=2,fe(fn);case 2:if(Xt=Et.sent,Yt=Xt.code,Rt=Xt.data,Lt=Xt.msg,Yt!==200){Et.next=16;break}return localStorage.setItem(we.nd,Rt),Et.next=10,(0,me.P)();case 10:return ze=Et.sent,rt=ze.code,tt=ze.data,rt===200&&(de=(0,h.Z)((0,h.Z)({},tt),{},{staffName:tt.staffName||tt.name}),gt((0,h.Z)((0,h.Z)({},Vt),{},{currentUser:de}))),Pe.m8.push("/"),Et.abrupt("return");case 16:v.default.success(Lt);case 17:case"end":return Et.stop()}},St)}));return function(fn){return jt.apply(this,arguments)}}(),Le=function(){var jt=(0,d.Z)((0,m.Z)().mark(function St(){var fn,Xt;return(0,m.Z)().wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return fn=Ke.validateFields,Rt.next=3,fn();case 3:return Xt=Rt.sent,Rt.next=6,it(Xt);case 6:case"end":return Rt.stop()}},St)}));return function(){return jt.apply(this,arguments)}}(),ct=function(){var jt=(0,d.Z)((0,m.Z)().mark(function St(fn){var Xt,Yt;return(0,m.Z)().wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return Lt.next=2,ve((0,h.Z)({},fn));case 2:if(Xt=Lt.sent,Yt=Xt.code,Yt!==200){Lt.next=9;break}return v.default.success("\u6CE8\u518C\u6210\u529F"),qe(!1),Lt.next=9,it(fn);case 9:case"end":return Lt.stop()}},St)}));return function(fn){return jt.apply(this,arguments)}}(),at=function(){qe(!0)};return(0,K.jsxs)("div",{className:O().loginWarp,children:[(0,K.jsx)("div",{className:O().content,children:(0,K.jsx)("div",{className:O().formContent,children:(0,K.jsx)("div",{className:O().formBox,children:(0,K.jsx)(S.Z,{form:Ke,labelCol:{span:6},colon:!1,children:(0,K.jsxs)("div",{className:O().loginMain,children:[(0,K.jsx)("h3",{className:O().title,children:(0,K.jsxs)(w.Z,{children:[(0,K.jsx)(he.ZP,{icon:he.Wm.iconlogobiaoshi,size:30,color:"#296DF3",style:{display:"inline-block",marginTop:8}}),(0,K.jsx)("div",{children:"\u8D85\u97F3\u6570(SuperSonic)"})]})}),(0,K.jsx)(pe,{name:"name",rules:[{required:!0}],label:"",children:(0,K.jsx)(y.Z,{size:"large",placeholder:"\u7528\u6237\u540D: admin",prefix:(0,K.jsx)($.Z,{})})}),(0,K.jsx)(pe,{name:"password",rules:[{required:!0}],label:"",children:(0,K.jsx)(y.Z,{size:"large",type:"password",placeholder:"\u5BC6\u7801: admin",onPressEnter:Le,prefix:(0,K.jsx)(V,{})})}),(0,K.jsx)(g.Z,{className:O().signInBtn,type:"primary",onClick:Le,children:"\u767B\u5F55"}),(0,K.jsx)("div",{className:O().tool,children:(0,K.jsx)(g.Z,{className:O().button,onClick:at,children:"\u6CE8\u518C"})})]})})})})}),(0,K.jsx)(ue,{onCancel:function(){qe(!1)},onSubmit:ct,createModalVisible:Qe})]})},Je=Ie},86722:function(oe,N,o){"use strict";var x=o(67294),g=o(20546),A=o(10682),y=o(85893),M=function(){return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(g.ql,{title:"\u6A21\u578B\u7BA1\u7406-\u8D85\u97F3\u6570"}),(0,y.jsx)(A.Z,{mode:"chatSetting"})]})};N.Z=(0,g.$j)(function(w){var m=w.domainManger;return{domainManger:m}})(M)},35787:function(oe,N,o){"use strict";var x=o(67294),g=o(20546),A=o(10682),y=o(85893),M=function(){return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(g.ql,{title:"\u6A21\u578B\u7BA1\u7406-\u8D85\u97F3\u6570"}),(0,y.jsx)(A.Z,{mode:"domain"})]})};N.Z=(0,g.$j)(function(w){var m=w.domainManger;return{domainManger:m}})(M)},54609:function(oe,N,o){"use strict";o.d(N,{Z:function(){return ot}});var x=o(25324),g=o(45733),A=o(43623),y=o(7523),M=o(39428),w=o(14643),m=o(92909),b=o(11849),v=o(3182),h=o(2824),d=o(34008),_=o(67294),p=o(20546),S=o(98449),k=o(53167),O=o(68137),F=o(50532),D=o(67604),Z=o(72285),W=o(32059),U=o(93224),L=o(35510),V=o.n(L),$=o(11055),G=o.n($),z=o(85893),K=["title","children","last","block","grid","titleClassName"],re=function(Ht){var Jt,Qt=Ht.title,an=Ht.children,Un=Ht.last,qt=Ht.block,rn=Ht.grid,cn=Ht.titleClassName,er=(0,U.Z)(Ht,K),rr=V()(G().standardFormRow,(Jt={},(0,W.Z)(Jt,G().standardFormRowBlock,qt),(0,W.Z)(Jt,G().standardFormRowLast,Un),(0,W.Z)(Jt,G().standardFormRowGrid,rn),Jt)),nt=V()(G().label,cn);return(0,z.jsxs)("div",(0,b.Z)((0,b.Z)({className:rr},er),{},{children:[Qt&&(0,z.jsx)("div",{className:nt,children:(0,z.jsx)("span",{children:Qt})}),(0,z.jsx)("div",{className:G().content,children:an})]}))},ne=re,Q=o(86582),ue=o(14943),he=o(74356),Ee=o(58491),ce=o(57254),ve=o(90472);function fe(Et,Ht){Et===void 0&&(Et=!1);var Jt=(0,ve.CR)((0,_.useState)(Et),2),Qt=Jt[0],an=Jt[1],Un=(0,_.useMemo)(function(){var qt=Ht===void 0?!Et:Ht,rn=function(){return an(function(lr){return lr===Et?qt:Et})},cn=function(lr){return an(lr)},er=function(){return an(Et)},rr=function(){return an(qt)};return{toggle:rn,set:cn,setLeft:er,setRight:rr}},[]);return[Qt,Un]}var we=fe;function me(Et){Et===void 0&&(Et=!1);var Ht=(0,ve.CR)(we(!!Et),2),Jt=Ht[0],Qt=Ht[1],an=Qt.toggle,Un=Qt.set,qt=(0,_.useMemo)(function(){var rn=function(){return Un(!0)},cn=function(){return Un(!1)};return{toggle:an,set:function(rr){return Un(!!rr)},setTrue:rn,setFalse:cn}},[]);return[Jt,qt]}var Pe=o(35257),pe=o(7556);function Ie(Et){pe.Z&&((0,Pe.mf)(Et)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof Et)));var Ht=(0,_.useRef)(Et);Ht.current=(0,_.useMemo)(function(){return Et},[Et]);var Jt=(0,_.useRef)();return Jt.current||(Jt.current=function(){for(var Qt=[],an=0;an<arguments.length;an++)Qt[an]=arguments[an];return Ht.current.apply(this,Qt)}),Jt.current}var Je=Ie,ke=function(){var Ht=(0,ve.CR)((0,_.useState)({}),2),Jt=Ht[1];return(0,_.useCallback)(function(){return Jt({})},[])},De=ke;function Fe(Et,Ht){Et===void 0&&(Et={}),Ht===void 0&&(Ht={});var Jt=Ht.defaultValue,Qt=Ht.defaultValuePropName,an=Qt===void 0?"defaultValue":Qt,Un=Ht.valuePropName,qt=Un===void 0?"value":Un,rn=Ht.trigger,cn=rn===void 0?"onChange":rn,er=Et[qt],rr=Et.hasOwnProperty(qt),nt=(0,_.useMemo)(function(){return rr?er:Et.hasOwnProperty(an)?Et[an]:Jt},[]),lr=(0,_.useRef)(nt);rr&&(lr.current=er);var Hn=De();function ut(bt){for(var We=[],be=1;be<arguments.length;be++)We[be-1]=arguments[be];var Ae=(0,Pe.mf)(bt)?bt(lr.current):bt;rr||(lr.current=Ae,Hn()),Et[cn]&&Et[cn].apply(Et,(0,ve.ev)([Ae],(0,ve.CR)(We),!1))}return[lr.current,Je(ut)]}var Qe=Fe,qe=o(57782),et=o.n(qe),dt=he.Z.CheckableTag,Ke=function(Ht){var Jt=Ht.children,Qt=Ht.checked,an=Ht.onChange,Un=Ht.value;return(0,z.jsx)(dt,{checked:!!Qt,onChange:function(rn){return an&&an(Un,rn)},children:Jt},Un)};Ke.isTagSelectOption=!0;var Ge=function(Ht){var Jt,Qt=Ht.children,an=Ht.hideCheckAll,Un=an===void 0?!1:an,qt=Ht.className,rn=Ht.style,cn=Ht.expandable,er=Ht.actionsText,rr=er===void 0?{}:er,nt=Ht.single,lr=nt===void 0?!1:nt,Hn=Ht.disableUnCheck,ut=Hn===void 0?!1:Hn,bt=Ht.empty,We=bt===void 0?!1:bt,be=Ht.isSelectAll,Ae=be===void 0?!1:be,Ue=Ht.reverseCheckAll,$e=Ue===void 0?!1:Ue,kt=me(),lt=(0,h.Z)(kt,2),vt=lt[0],Ct=lt[1].toggle,Bt=Qe(Ht),mt=(0,h.Z)(Bt,2),Zt=mt[0],zt=mt[1];(0,_.useEffect)(function(){We&&zt([])},[We]);var ln=function(wn){return wn&&wn.type&&(wn.type.isTagSelectOption||wn.type.displayName==="TagSelectOption")},An=function(){var wn=_.Children.toArray(Qt),Fn=wn.filter(function(Or){return ln(Or)}).map(function(Or){return Or.props.value});return Fn||[]},En=function(wn){var Fn=[];if($e){zt(void 0);return}wn&&(Fn=An()),zt(Fn)};(0,_.useEffect)(function(){Ae&&En(!0)},[]);var Gn=function(wn,Fn){var Or=(0,Q.Z)(Zt||[]);lr&&Or.length>0&&(Or=[Or.join("")]);var vr=Or.indexOf(wn);Fn&&vr===-1?lr?Or=[wn]:Or.push(wn):!Fn&&vr>-1&&!ut&&Or.splice(vr,1),zt(Or.length===0?void 0:Or)},Bn=An().length===(Zt==null?void 0:Zt.length),pr=Zt===void 0?!1:(Zt==null?void 0:Zt.length)>0,_r=rr.expandText,na=_r===void 0?"\u5C55\u5F00":_r,$n=rr.collapseText,qr=$n===void 0?"\u6536\u8D77":$n,Jr=rr.selectAllText,Aa=Jr===void 0?$e?"\u4E0D\u9650":"\u5168\u90E8":Jr,ya=V()(et().tagSelect,qt,(Jt={},(0,W.Z)(Jt,et().hasExpandTag,cn),(0,W.Z)(Jt,et().expanded,vt),Jt));return(0,z.jsxs)("div",{className:ya,style:rn,children:[Un?null:(0,z.jsx)(dt,{checked:$e?!pr:Bn,onChange:En,children:Aa},"tag-select-__all__"),Qt&&_.Children.map(Qt,function($t){return ln($t)?_.cloneElement($t,{key:"tag-select-".concat($t.props.value),value:$t.props.value,checked:Zt&&Zt.indexOf($t.props.value)>-1,onChange:Gn}):$t}),cn&&(0,z.jsx)("a",{className:et().trigger,onClick:function(){Ct()},children:vt?(0,z.jsxs)(z.Fragment,{children:[qr," ",(0,z.jsx)(Ee.Z,{})]}):(0,z.jsxs)(z.Fragment,{children:[na,(0,z.jsx)(ce.Z,{})]})})]})};Ge.Option=Ke;var wt=Ge,Vt=o(76570),gt=o(37092),it=o(88037),Le=o(5963),ct=o(60277),at=o.n(ct),jt=function(Ht){var Jt=Ht.value,Qt=Ht.onChange,an=Ht.treeSelectProps,Un=an===void 0?{}:an,qt=Ht.domainList,rn=Ht.dispatch,cn=(0,_.useState)([]),er=(0,h.Z)(cn,2),rr=er[0],nt=er[1],lr=function(){var Hn=(0,v.Z)((0,M.Z)().mark(function ut(){var bt,We,be,Ae;return(0,M.Z)().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,(0,k.i7)();case 2:bt=$e.sent,We=bt.code,be=bt.data,Ae=bt.msg,We===200?rn({type:"domainManger/setDomainList",payload:{domainList:be}}):m.default.error(Ae);case 7:case"end":return $e.stop()}},ut)}));return function(){return Hn.apply(this,arguments)}}();return(0,_.useEffect)(function(){qt.length===0&&lr()},[]),(0,_.useEffect)(function(){var Hn=(0,Le.H3)((0,Le.Mf)(qt));nt(Hn)},[qt]),(0,z.jsx)("div",{className:at().domainTreeSelect,children:(0,z.jsx)(it.Z,(0,b.Z)({showSearch:!0,style:{width:"100%"},value:Jt,dropdownStyle:{maxHeight:400,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u4E3B\u9898\u57DF",allowClear:!0,multiple:!0,treeNodeFilterProp:"title",treeDefaultExpandAll:!0,onChange:Qt,treeData:rr},Un))})},St=(0,p.$j)(function(Et){var Ht=Et.domainManger,Jt=Ht.selectDomainId,Qt=Ht.selectDomainName,an=Ht.domainList;return{selectDomainId:Jt,selectDomainName:Qt,domainList:an}})(jt),fn=o(49927),Xt=o.n(fn),Yt=Z.Z.Item,Rt=function(Ht){var Jt=Ht.filterValues,Qt=Jt===void 0?{}:Jt,an=Ht.onFiltersChange,Un=Z.Z.useForm(),qt=(0,h.Z)(Un,1),rn=qt[0];(0,_.useEffect)(function(){rn.setFieldsValue((0,b.Z)({},Qt))},[rn,Qt]);var cn=function(lr,Hn){an(lr,Hn)},er=function(lr){an(lr,rn.getFieldsValue())},rr=[{title:"\u6307\u6807\u7C7B\u578B",key:"type",options:[{value:"ATOMIC",label:"\u539F\u5B50\u6307\u6807"},{value:"DERIVED",label:"\u884D\u751F\u6307\u6807"}]},{title:"\u654F\u611F\u5EA6",key:"sensitiveLevel",options:S.uc}];return(0,z.jsxs)(Z.Z,{layout:"inline",form:rn,colon:!1,onValuesChange:function(lr,Hn){lr.name||cn(lr,Hn)},children:[(0,z.jsx)(ne,{block:!0,children:(0,z.jsx)("div",{className:Xt().searchBox,children:(0,z.jsx)(Yt,{name:"key",noStyle:!0,children:(0,z.jsx)("div",{className:Xt().searchInput,children:(0,z.jsx)(F.Z.Search,{placeholder:"\u8BF7\u8F93\u5165\u9700\u8981\u67E5\u8BE2\u6307\u6807\u7684ID\u3001\u6307\u6807\u540D\u79F0\u3001\u5B57\u6BB5\u540D\u79F0",enterButton:(0,z.jsx)(Vt.Z,{style:{marginTop:5}}),onSearch:er})})})})},"search"),rr.map(function(nt){var lr=nt.title,Hn=nt.key,ut=nt.options;return(0,z.jsx)(ne,{title:lr,block:!0,children:(0,z.jsx)(Yt,{name:Hn,children:(0,z.jsx)(wt,{reverseCheckAll:!0,single:!0,children:ut.map(function(bt){return(0,z.jsx)(wt.Option,{value:bt.value,children:bt.label},bt.value)})})})},Hn)}),(0,z.jsx)(ne,{title:"\u6240\u5C5E\u4E3B\u9898\u57DF",block:!0,children:(0,z.jsx)(Yt,{name:"domainIds",children:(0,z.jsx)(St,{})})},"domainIds")]})},Lt=Rt,ze=o(66146),rt=o(56051),tt=o.n(rt),de=function(Ht){var Jt=Ht.domainManger,Qt=Ht.dispatch,an=Jt.selectDomainId,Un=(0,_.useState)(!1),qt=(0,h.Z)(Un,2),rn=qt[0],cn=qt[1],er=(0,_.useState)({current:1,pageSize:20,total:0}),rr=(0,h.Z)(er,2),nt=rr[0],lr=rr[1],Hn=(0,_.useState)(!1),ut=(0,h.Z)(Hn,2),bt=ut[0],We=ut[1],be=(0,_.useState)([]),Ae=(0,h.Z)(be,2),Ue=Ae[0],$e=Ae[1],kt=(0,_.useState)(),lt=(0,h.Z)(kt,2),vt=lt[0],Ct=lt[1],Bt=(0,_.useState)({}),mt=(0,h.Z)(Bt,2),Zt=mt[0],zt=mt[1],ln=(0,_.useRef)();(0,_.useEffect)(function(){An()},[]);var An=function(){var Bn=(0,v.Z)((0,M.Z)().mark(function pr(){var _r,na,$n,qr,Jr,Aa,ya,$t,wn,Fn,Or,vr=arguments;return(0,M.Z)().wrap(function(Zr){for(;;)switch(Zr.prev=Zr.next){case 0:return _r=vr.length>0&&vr[0]!==void 0?vr[0]:{},We(!0),Zr.next=4,(0,k.VJ)((0,b.Z)((0,b.Z)({},nt),_r));case 4:return na=Zr.sent,$n=na.code,qr=na.data,Jr=na.msg,We(!1),Aa=qr||{},ya=Aa.list,$t=Aa.pageSize,wn=Aa.current,Fn=Aa.total,Or={},$n===200?(lr({pageSize:Math.min($t,100),current:wn,total:Fn}),$e(ya),Or={data:ya||[],success:!0}):(m.default.error(Jr),$e([]),Or={data:[],total:0,success:!1}),Zr.abrupt("return",Or);case 13:case"end":return Zr.stop()}},pr)}));return function(){return Bn.apply(this,arguments)}}(),En=[{dataIndex:"id",title:"ID"},{dataIndex:"name",title:"\u6307\u6807\u540D\u79F0"},{dataIndex:"alias",title:"\u522B\u540D",search:!1},{dataIndex:"bizName",title:"\u5B57\u6BB5\u540D\u79F0"},{dataIndex:"modelName",title:"\u6240\u5C5E\u6A21\u578B"},{dataIndex:"sensitiveLevel",title:"\u654F\u611F\u5EA6",valueEnum:S.Ze},{dataIndex:"createdBy",title:"\u521B\u5EFA\u4EBA",search:!1},{dataIndex:"description",title:"\u63CF\u8FF0",search:!1},{dataIndex:"type",title:"\u6307\u6807\u7C7B\u578B",valueEnum:{ATOMIC:"\u539F\u5B50\u6307\u6807",DERIVED:"\u884D\u751F\u6307\u6807"}},{dataIndex:"updatedAt",title:"\u66F4\u65B0\u65F6\u95F4",search:!1,render:function(pr){return pr&&pr!=="-"?tt()(pr).format("YYYY-MM-DD HH:mm:ss"):"-"}},{title:"\u64CD\u4F5C",dataIndex:"x",valueType:"option",render:function(pr,_r){return(0,z.jsxs)(g.Z,{children:[(0,z.jsx)("a",{onClick:function(){Ct(_r),cn(!0)},children:"\u7F16\u8F91"},"metricEditBtn"),(0,z.jsx)(y.Z,{title:"\u786E\u8BA4\u5220\u9664\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,v.Z)((0,M.Z)().mark(function na(){var $n,qr,Jr,Aa;return(0,M.Z)().wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return $t.next=2,(0,k.vW)(_r.id);case 2:$n=$t.sent,qr=$n.code,Jr=$n.msg,qr===200?(Ct(void 0),(Aa=ln.current)===null||Aa===void 0||Aa.reload()):m.default.error(Jr);case 6:case"end":return $t.stop()}},na)})),children:(0,z.jsx)("a",{onClick:function(){Ct(_r)},children:"\u5220\u9664"},"metricDeleteBtn")})]})}}],Gn=function(){var Bn=(0,v.Z)((0,M.Z)().mark(function pr(_r){var na,$n,qr,Jr,Aa;return(0,M.Z)().wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return na=_r.sensitiveLevel,$n=_r.type,qr=(0,b.Z)({},_r),Jr=na==null?void 0:na[0],Aa=$n==null?void 0:$n[0],qr.sensitiveLevel=Jr,qr.type=Aa,zt(qr),$t.next=9,An(qr);case 9:case"end":return $t.stop()}},pr)}));return function(_r){return Bn.apply(this,arguments)}}();return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("div",{className:Xt().metricFilterWrapper,children:(0,z.jsx)(Lt,{onFiltersChange:function(pr,_r){Gn(_r)}})}),(0,z.jsx)(d.ZP,{className:"".concat(Xt().metricTable),actionRef:ln,rowKey:"id",search:!1,dataSource:Ue,columns:En,pagination:nt,tableAlertRender:function(){return!1},loading:bt,onChange:function(pr){var _r=pr.current,na=pr.pageSize,$n=pr.total,qr={current:_r,pageSize:na,total:$n};lr(qr),An((0,b.Z)((0,b.Z)({},qr),Zt))},size:"small",options:{reload:!1,density:!1,fullScreen:!1}}),rn&&(0,z.jsx)(ze.Z,{domainId:Number(an),createModalVisible:rn,metricItem:vt,onSubmit:function(){var pr;cn(!1),ln==null||(pr=ln.current)===null||pr===void 0||pr.reload(),Qt({type:"domainManger/queryMetricList",payload:{domainId:an}})},onCancel:function(){cn(!1)}})]})},ot=(0,p.$j)(function(Et){var Ht=Et.domainManger;return{domainManger:Ht}})(de)},10682:function(oe,N,o){"use strict";o.d(N,{Z:function(){return kV}});var x={};o.r(x),o.d(x,{defaultToken:function(){return ss},emptyTheme:function(){return hs},hashCode:function(){return Uo},token:function(){return jl},useToken:function(){return Gl}});var g={};o.r(g),o.d(g,{GADDI:function(){return nP},Stack:function(){return W0},breadthFirstSearch:function(){return HT},connectedComponent:function(){return Qy},cosineSimilarity:function(){return iA},default:function(){return uA},depthFirstSearch:function(){return kx},detectAllCycles:function(){return YT},detectAllDirectedCycle:function(){return v2},detectAllUndirectedCycle:function(){return oS},detectCycle:function(){return XT},detectDirectedCycle:function(){return aI},dijkstra:function(){return yy},findAllPath:function(){return QT},findShortestPath:function(){return jk},floydWarshall:function(){return sb},getAdjMatrix:function(){return ob},getDegree:function(){return aS},getInDegree:function(){return Nk},getNeighbors:function(){return Hg},getOutDegree:function(){return iS},iLouvain:function(){return oh},kCore:function(){return Eh},kMeans:function(){return Hk},labelPropagation:function(){return Bk},louvain:function(){return tA},minimumSpanningTree:function(){return Kk},nodesCosineSimilarity:function(){return g2},pageRank:function(){return fS}});var A={};o.r(A),o.d(A,{Line:function(){return b_},applyMatrix:function(){return jh},compare:function(){return iI},distance:function(){return dS},floydWarshall:function(){return C2},fractionToLine:function(){return mA},getAdjMatrix:function(){return oI},getBBoxBoundLine:function(){return xy},getCircleCenterByPoints:function(){return pA},getCircleIntersectByPoint:function(){return iP},getDegree:function(){return sI},getEllipseIntersectByPoint:function(){return dA},getLineIntersect:function(){return ng},getPointsCenter:function(){return T2},getRectIntersectByPoint:function(){return aP},intersectBBox:function(){return pb},invertMatrix:function(){return Eg},isPointInPolygon:function(){return pS},isPointsOverlap:function(){return Dx},isPolygonsIntersect:function(){return lP},itemIntersectByLine:function(){return vS},lerp:function(){return mS},lerpArray:function(){return gS},move:function(){return Ix},pointLineDistance:function(){return M2},pointLineSquareDist:function(){return cP},pointRectSquareDist:function(){return hS},rotate:function(){return hA},scale:function(){return rN},scaleMatrix:function(){return oP},squareDist:function(){return A2},translate:function(){return vA}});var y={};o.r(y),o.d(y,{cloneBesidesImg:function(){return F2},getAnimateCfgWithCallback:function(){return vv},getBBox:function(){return e1},getComboBBox:function(){return L2},getLabelPosition:function(){return I2},getLetterWidth:function(){return _A},getLoopCfgs:function(){return O2},getTextSize:function(){return pP},plainCombosToTrees:function(){return D2},reconstructTree:function(){return N2},shouldRefreshEdge:function(){return fI},traverseTree:function(){return rg},traverseTreeUp:function(){return ag},truncateLabelByLength:function(){return bS}});var M={};o.r(M),o.d(M,{catmullRomToBezier:function(){return Wt},fillPath:function(){return Ni},fillPathByDiff:function(){return uo},formatPath:function(){return Vo},intersection:function(){return Ya},parsePathArray:function(){return Mr},parsePathString:function(){return Mt},pathToAbsolute:function(){return Tn},pathToCurve:function(){return hr},rectPath:function(){return ai}});var w={};o.r(w),o.d(w,{easeBack:function(){return yI},easeBackIn:function(){return d7},easeBackInOut:function(){return yI},easeBackOut:function(){return p7},easeBounce:function(){return PA},easeBounceIn:function(){return pN},easeBounceInOut:function(){return vN},easeBounceOut:function(){return PA},easeCircle:function(){return Ty},easeCircleIn:function(){return xm},easeCircleInOut:function(){return Ty},easeCircleOut:function(){return s1},easeCubic:function(){return l7},easeCubicIn:function(){return wW},easeCubicInOut:function(){return l7},easeCubicOut:function(){return TW},easeElastic:function(){return OA},easeElasticIn:function(){return RP},easeElasticInOut:function(){return v7},easeElasticOut:function(){return OA},easeExp:function(){return Qv},easeExpIn:function(){return c7},easeExpInOut:function(){return Qv},easeExpOut:function(){return wy},easeLinear:function(){return CW},easePoly:function(){return sN},easePolyIn:function(){return MA},easePolyInOut:function(){return sN},easePolyOut:function(){return OS},easeQuad:function(){return Ud},easeQuadIn:function(){return iN},easeQuadInOut:function(){return Ud},easeQuadOut:function(){return s7},easeSin:function(){return Y0},easeSinIn:function(){return AP},easeSinInOut:function(){return Y0},easeSinOut:function(){return uN}});var m={};o.r(m),o.d(m,{calculationItemsBBox:function(){return wb},cloneEvent:function(){return iw},formatPadding:function(){return $I},isNaN:function(){return f1},isViewportChanged:function(){return j7},processParallelEdges:function(){return rL},uniqueId:function(){return GI}});var b={};o.r(b),o.d(b,{getClosedSpline:function(){return aD},getControlPoint:function(){return YA},getSpline:function(){return hL},getStarPath:function(){return K7},paddedHull:function(){return oD},pathToPoints:function(){return rD},pointsToPolygon:function(){return nD},roundedHull:function(){return iD}});var v={};o.r(v),o.d(v,{defaultSubjectColors:function(){return ML}});var h={};o.r(h),o.d(h,{isForce:function(){return hD}});var d={};o.r(d),o.d(d,{Base:function(){return G_},Circle:function(){return RD},Ellipse:function(){return I9},Image:function(){return N9},Line:function(){return KL},Marker:function(){return qP},Path:function(){return OD},Polygon:function(){return U9},Polyline:function(){return V9},Rect:function(){return t6},Text:function(){return r6}});var _={};o.r(_),o.d(_,{Base:function(){return C0},Circle:function(){return HW},Dom:function(){return h6},Ellipse:function(){return pj},Image:function(){return g6},Line:function(){return hj},Marker:function(){return gj},Path:function(){return oR},Polygon:function(){return yj},Polyline:function(){return xj},Rect:function(){return Tj},Text:function(){return ZD}});var p={};o.r(p),o.d(p,{getColorSetsBySubjectColors:function(){return QS},getColorsWithSubjectColor:function(){return Nb},mixColor:function(){return og}});var S={};o.r(S),o.d(S,{arrayToTextureData:function(){return Hj},attributesToTextureData:function(){return z6},buildTextureData:function(){return Wj},buildTextureDataWithOneEdgeAttr:function(){return V6},buildTextureDataWithTwoEdgeAttr:function(){return dR},proccessToFunc:function(){return zj},radialLayout:function(){return W6}});var k={};o.r(k),o.d(k,{gpuDetector:function(){return JD}});var O={};o.r(O),o.d(O,{getBrowserName:function(){return QD}});var F={};o.r(F),o.d(F,{assign:function(){return oE},default:function(){return R5},defaultI18n:function(){return wR},format:function(){return P3},parse:function(){return MR},setGlobalDateI18n:function(){return A3},setGlobalDateMasks:function(){return ww}});var D=o(34276),Z=o(56466),W=o(25324),U=o(45733),L=o(39428),V=o(14643),$=o(92909),G=o(3182),z=o(2824),K=o(67294),re=o.t(K,2),ne=o(2546),Q=o(20546),ue=o(87753),he=o(54943),Ee=o(5317),ce=o(87555),ve=o(81984),fe=o(95455),we=o(52222),me=o(65507),Pe=o(43623),pe=o(7523),Ie=o(11849),Je=o(93224),ke=o(68137),De=o(50532),Fe=o(49101),Qe=o(8212),qe=o(73171),et=o(57254),dt=o(53167),Ke=o(5963),Ge=o(26780),wt=o(51935),Vt=o(59560),gt=o(3114),it=o(13753),Le=o(48429),ct=o(67604),at=o(72285),jt=o(60277),St=o.n(jt),fn=function(){var i=(0,K.useRef)(!1);return(0,K.useEffect)(function(){return i.current=!0,function(){i.current=!1}},[]),function(){return i.current}},Xt=o(95161),Yt={edit:"\u7F16\u8F91",add:"\u65B0\u589E"},Rt={low:{value:1,label:"\u4F4E"},middle:{value:2,label:"\u4E2D"},height:{value:3,label:"\u9AD8"}},Lt={string:String,number:Number},ze=function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"string";return Object.keys(i).map(function(l){return{value:Lt[a](l),label:i[l]}})},rt=function(i){return Object.keys(i).map(function(a){return i[a]})},tt=function(i){var a={};return i.map(function(l){return a[l.value]=l.label,l}),a},de=o(85893),ot=at.Z.Item,Et=function(i){var a=i.basicInfo,l=i.onSubmit,u=i.onCancel,E=a.type,P=a.modelType,j=fn(),H=(0,K.useState)(a),X=(0,z.Z)(H,2),ee=X[0],se=X[1],Se=(0,K.useState)(!1),Re=(0,z.Z)(Se,2),Be=Re[0],Ye=Re[1],ht=at.Z.useForm(),Tt=(0,z.Z)(ht,1),Dt=Tt[0],Kt=function(){var mn=(0,G.Z)((0,L.Z)().mark(function kn(){var sr,yr;return(0,L.Z)().wrap(function(zr){for(;;)switch(zr.prev=zr.next){case 0:return zr.next=2,Dt.validateFields();case 2:return sr=zr.sent,yr=(0,Ie.Z)((0,Ie.Z)({},sr),{},{isUnique:1}),se((0,Ie.Z)((0,Ie.Z)({},ee),yr)),Ye(!0),zr.prev=6,zr.next=9,l((0,Ie.Z)((0,Ie.Z)({},ee),yr));case 9:j()&&Ye(!1),zr.next=16;break;case 12:zr.prev=12,zr.t0=zr.catch(6),$.default.error("\u63A5\u53E3\u8C03\u7528\u51FA\u9519"),Ye(!1);case 16:case"end":return zr.stop()}},kn,null,[[6,12]])}));return function(){return mn.apply(this,arguments)}}(),gn=(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Le.Z,{onClick:u,children:"\u53D6\u6D88"}),(0,de.jsx)(Le.Z,{type:"primary",loading:Be,onClick:Kt,children:"\u786E\u5B9A"})]}),bn=function(){var kn=Yt[P];return E==="top"?kn+="\u9876\u7EA7":P==="add"&&(kn+="\u5B50"),kn+="\u4E3B\u9898\u57DF",kn};return(0,de.jsx)(wt.Z,{width:640,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:bn(),open:!0,footer:gn,onCancel:u,children:(0,de.jsxs)(at.Z,(0,Ie.Z)((0,Ie.Z)({},Xt.c),{},{form:Dt,initialValues:(0,Ie.Z)({},ee),className:St().form,children:[E!=="top"&&P==="add"&&(0,de.jsx)(ot,{name:"parentName",label:"\u7236\u4E3B\u9898\u57DF\u540D\u79F0",children:(0,de.jsx)(De.Z,{disabled:!0,placeholder:"\u7236\u4E3B\u9898\u57DF\u540D\u79F0"})}),(0,de.jsx)(ot,{name:"name",label:"\u4E3B\u9898\u57DF\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E3B\u9898\u57DF\u540D\u79F0\uFF01"}],children:(0,de.jsx)(De.Z,{placeholder:"\u4E3B\u9898\u57DF\u540D\u79F0\u4E0D\u53EF\u91CD\u590D"})}),(0,de.jsx)(ot,{name:"bizName",label:"\u4E3B\u9898\u57DF\u82F1\u6587\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E3B\u9898\u57DF\u82F1\u6587\u540D\u79F0\uFF01"}],children:(0,de.jsx)(De.Z,{placeholder:"\u8BF7\u8F93\u5165\u4E3B\u9898\u57DF\u82F1\u6587\u540D\u79F0"})}),(0,de.jsx)(ot,{name:"description",label:"\u4E3B\u9898\u57DF\u63CF\u8FF0",hidden:!0,children:(0,de.jsx)(De.Z.TextArea,{placeholder:"\u4E3B\u9898\u57DF\u63CF\u8FF0"})}),(0,de.jsx)(ot,{name:"isUnique",label:"\u662F\u5426\u552F\u4E00",hidden:!0,children:(0,de.jsx)(gt.Z,{size:"small",checked:!0})})]}))})},Ht=Et,Jt=o(28991),Qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},an=Qt,Un=o(27029),qt=function(i,a){return K.createElement(Un.Z,(0,Jt.Z)((0,Jt.Z)({},i),{},{ref:a,icon:an}))};qt.displayName="PlusCircleOutlined";var rn=K.forwardRef(qt),cn=["children"],er=De.Z.Search,rr=function C(i,a){var l=[];return i.map(function(u){var E=u.children,P=(0,Je.Z)(u,cn);return String(u.title).includes(a)&&l.push((0,Ie.Z)({},P)),E&&E.length>0&&(l=l.concat(C(E,a))),u}),l},nt=function(i){var a=i.selectDomainId,l=i.domainList,u=i.createDomainBtnVisible,E=u===void 0?!0:u,P=i.onCreateDomainBtnClick,j=i.onTreeSelected,H=i.onTreeDataUpdate,X=i.dispatch,ee=(0,K.useState)([]),se=(0,z.Z)(ee,2),Se=se[0],Re=se[1],Be=(0,K.useState)(!1),Ye=(0,z.Z)(Be,2),ht=Ye[0],Tt=Ye[1],Dt=(0,K.useState)({}),Kt=(0,z.Z)(Dt,2),gn=Kt[0],bn=Kt[1],mn=(0,K.useState)(""),kn=(0,z.Z)(mn,2),sr=kn[0],yr=kn[1],jr=(0,K.useState)([]),zr=(0,z.Z)(jr,2),va=zr[0],za=zr[1],xi=(0,K.useState)([]),Di=(0,z.Z)(xi,2),Si=Di[0],jo=Di[1];(0,K.useEffect)(function(){var Lo=(0,Ke.H3)((0,Ke.Mf)(l));Re(Lo),jo(l),za((0,Ke.D2)(Lo))},[l]);var ro=function(Is){yr(Is)},hi=function(Is,Cl){if("".concat(Is)!=="".concat(a)){var il=Si.filter(function(Pl){return Pl.id===Is})[0];j==null||j(il)}},io=function(){var Lo=(0,G.Z)((0,L.Z)().mark(function Is(Cl){var il,Pl;return(0,L.Z)().wrap(function(Mc){for(;;)switch(Mc.prev=Mc.next){case 0:return il=(0,Ie.Z)({},Cl),Mc.next=3,(0,dt.gK)(il);case 3:Pl=Mc.sent,Pl.code===200?($.default.success("\u7F16\u8F91\u5206\u7C7B\u6210\u529F"),Tt(!1),H==null||H()):$.default.error(Pl.msg);case 5:case"end":return Mc.stop()}},Is)}));return function(Cl){return Lo.apply(this,arguments)}}(),oo=function(){var Lo=(0,G.Z)((0,L.Z)().mark(function Is(Cl){return(0,L.Z)().wrap(function(Pl){for(;;)switch(Pl.prev=Pl.next){case 0:if(Cl.modelType!=="add"){Pl.next=5;break}return Pl.next=3,(0,dt.Fj)(Cl);case 3:Pl.next=8;break;case 5:if(Cl.modelType!=="edit"){Pl.next=8;break}return Pl.next=8,io(Cl);case 8:H==null||H(),Tt(!1);case 10:case"end":return Pl.stop()}},Is)}));return function(Cl){return Lo.apply(this,arguments)}}(),Ki=function(){var Lo=(0,G.Z)((0,L.Z)().mark(function Is(Cl){var il;return(0,L.Z)().wrap(function(lc){for(;;)switch(lc.prev=lc.next){case 0:return lc.next=2,(0,dt.dj)(Cl);case 2:il=lc.sent,il.code===200?($.default.success("\u7F16\u8F91\u9879\u76EE\u6210\u529F"),Tt(!1),H==null||H()):$.default.error(il.msg);case 4:case"end":return lc.stop()}},Is)}));return function(Cl){return Lo.apply(this,arguments)}}(),Ji=function(Is){var Cl=Is,il=Cl.id,Pl=Cl.name,lc=Cl.path;return(0,de.jsxs)("div",{className:St().projectItem,children:[(0,de.jsx)("span",{className:St().title,onClick:function(){hi(il,Pl)},children:Pl}),E&&(0,de.jsxs)("span",{className:St().operation,children:[Array.isArray(lc)&&lc.length<2&&(0,de.jsx)(Fe.Z,{className:St().icon,onClick:function(){bn({modelType:"add",type:"normal",parentId:il,parentName:Pl}),Tt(!0)}}),(0,de.jsx)(Qe.Z,{className:St().icon,onClick:function(){bn((0,Ie.Z)({modelType:"edit",type:"normal"},Is)),Tt(!0)}}),(0,de.jsx)(pe.Z,{title:"\u786E\u8BA4\u5220\u9664\u5417?",onConfirm:function(){Ki(il)},okText:"\u662F",cancelText:"\u5426",children:(0,de.jsx)(qe.Z,{className:St().icon})},"popconfirm")]})]})},Ao=sr?rr(Se,sr):Se,ks=function(Is){za(Is)};return(0,de.jsxs)("div",{className:St().domainList,children:[(0,de.jsxs)(ce.Z,{children:[(0,de.jsx)(me.Z,{flex:"1 1 200px",children:(0,de.jsx)(er,{allowClear:!0,className:St().search,placeholder:"\u8BF7\u8F93\u5165\u4E3B\u9898\u57DF\u540D\u79F0\u8FDB\u884C\u67E5\u8BE2",onSearch:ro})}),E&&(0,de.jsx)(me.Z,{flex:"0 1 50px",children:(0,de.jsx)(fe.Z,{title:"\u65B0\u589E\u9876\u7EA7\u57DF",children:(0,de.jsx)(rn,{onClick:function(){bn({type:"top",modelType:"add"}),Tt(!0),P==null||P()},className:St().addBtn})})})]}),(0,de.jsx)(he.Z,{expandedKeys:va,onExpand:ks,className:St().tree,selectedKeys:[a],blockNode:!0,switcherIcon:(0,de.jsx)(et.Z,{}),defaultExpandAll:!0,treeData:Ao,titleRender:Ji}),ht&&(0,de.jsx)(Ht,{basicInfo:gn,onSubmit:oo,onCancel:function(){Tt(!1)}})]})},lr=(0,Q.$j)(function(C){var i=C.domainManger,a=i.selectDomainId,l=i.selectDomainName,u=i.domainList;return{selectDomainId:a,selectDomainName:l,domainList:u}})(nt),Hn=o(84786),ut=o(13649),bt=o(67724),We=o(23937),be=o(11826),Ae=o(1541),Ue=o(32059),$e=o(86582),kt=o(97140),lt=o(90407),vt=o(41603),Ct=o(60212),Bt=function(i){if(!(i!=null&&i.chatDefaultConfig))return{};var a=i.chatDefaultConfig,l=i.entity,u={dimensionIds:[],metricIds:[],ratioMetricIds:[]},E=a||{},P=E.dimensions,j=E.metrics,H=E.ratioMetrics;Array.isArray(P)&&(u.dimensionIds=P.map(function(Re){return Re.id})),Array.isArray(j)&&(u.metricIds=j.map(function(Re){return Re.id})),Array.isArray(H)&&(u.ratioMetricIds=H.map(function(Re){return Re.id}));var X={};if(l){var ee=l.dimItem,se=(ee==null?void 0:ee.id)||null,Se=l.names||[];X={entity:(0,Ie.Z)((0,Ie.Z)({},l),{},{entityId:se,name:Se.join(",")})}}return(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},i),X),{},{chatDefaultConfig:(0,Ie.Z)((0,Ie.Z)({},a),u)})},mt=function(i,a){return"".concat(i,"-").concat(a)},Zt=function(i){var a=i.reduce(function(l,u){var E=u.split("-"),P=(0,z.Z)(E,2),j=P[0],H=P[1];return H&&(j===Ct.Kr.DIMENSION&&l.dimensionIds.push(Number(H)),j===Ct.Kr.METRIC&&l.metricIds.push(Number(H))),l},{dimensionIds:[],metricIds:[]});return a},zt=o(14943),ln=o(74356),An=function(i){var a=i.type;return(0,de.jsx)(de.Fragment,{children:a===Ct.Z.DIMENSION?(0,de.jsx)(ln.Z,{color:"blue",children:"\u7EF4\u5EA6"}):a===Ct.Z.METRIC?(0,de.jsx)(ln.Z,{color:"orange",children:"\u6307\u6807"}):a===Ct.Z.DATASOURCE?(0,de.jsx)(ln.Z,{color:"green",children:"\u6570\u636E\u6E90"}):(0,de.jsx)(de.Fragment,{})})},En=An,Gn=at.Z.Item,Bn=lt.Z.Option,pr=function(i,a){var l=i.metricList,u=i.dimensionList,E=i.domainId,P=i.entityData,j=i.chatConfigKey,H=i.chatConfigType,X=i.onSubmit,ee=at.Z.useForm(),se=(0,z.Z)(ee,1),Se=se[0],Re=(0,K.useState)([]),Be=(0,z.Z)(Re,2),Ye=Be[0],ht=Be[1],Tt=(0,K.useState)([]),Dt=(0,z.Z)(Tt,2),Kt=Dt[0],gn=Dt[1],bn=Bt(P),mn=function(){var yr=(0,G.Z)((0,L.Z)().mark(function jr(){return(0,L.Z)().wrap(function(va){for(;;)switch(va.prev=va.next){case 0:return va.next=2,Se.validateFields();case 2:return va.abrupt("return",va.sent);case 3:case"end":return va.stop()}},jr)}));return function(){return yr.apply(this,arguments)}}();(0,K.useImperativeHandle)(a,function(){return{getFormValidateFields:mn}}),(0,K.useEffect)(function(){if(Se.resetFields(),!!(P!=null&&P.chatDefaultConfig)){var yr=bn.chatDefaultConfig,jr=bn.id;Se.setFieldsValue((0,Ie.Z)((0,Ie.Z)({},yr),{},{id:jr})),H===Ct.fs.DETAIL&&kn(yr)}},[P,Kt]);var kn=function(jr){var zr=jr.dimensionIds,va=jr.metricIds,za=zr.map(function(Di){return mt(Ct.Kr.DIMENSION,Di)}),xi=va.map(function(Di){return mt(Ct.Kr.METRIC,Di)});Se.setFieldsValue({dataItemIds:[].concat((0,$e.Z)(za),(0,$e.Z)(xi))})};(0,K.useEffect)(function(){var yr=l.map(function(jr){return{label:jr.name,value:jr.id}});ht(yr)},[l]),(0,K.useEffect)(function(){if(Array.isArray(u)&&Array.isArray(l)){var yr=u.map(function(zr){var va=zr.name,za=zr.id,xi=zr.bizName;return{name:va,label:(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(En,{type:Ct.Z.DIMENSION}),va]}),value:mt(Ct.Kr.DIMENSION,za),bizName:xi,id:za,transType:Ct.Kr.DIMENSION}}),jr=l.map(function(zr){var va=zr.name,za=zr.id,xi=zr.bizName;return{name:va,label:(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(En,{type:Ct.Z.METRIC}),va]}),value:mt(Ct.Kr.METRIC,za),bizName:xi,id:za,transType:Ct.Kr.METRIC}});gn([].concat((0,$e.Z)(yr),(0,$e.Z)(jr)))}},[u,l]);var sr=function(){var yr=(0,G.Z)((0,L.Z)().mark(function jr(){var zr,va,za,xi,Di,Si,jo,ro,hi,io,oo,Ki,Ji,Ao;return(0,L.Z)().wrap(function(Lo){for(;;)switch(Lo.prev=Lo.next){case 0:return Lo.next=2,Se.validateFields();case 2:return va=Lo.sent,za=va.id,xi=va.dataItemIds,Di={},xi&&(Si=Zt(xi),jo=Si.dimensionIds,ro=Si.metricIds,Di={dimensionIds:jo,metricIds:ro}),hi=dt.vK,za&&(hi=dt.qh),io=(0,Ie.Z)((0,Ie.Z)({},bn),{},{chatDefaultConfig:(0,Ie.Z)((0,Ie.Z)({},va),Di)}),Lo.next=11,hi((zr={},(0,Ue.Z)(zr,j,io),(0,Ue.Z)(zr,"id",za),zr));case 11:if(oo=Lo.sent,Ki=oo.code,Ji=oo.msg,Ao=oo.data,Ki!==200){Lo.next=20;break}return Se.setFieldValue("id",Ao),X==null||X(),$.default.success("\u4FDD\u5B58\u6210\u529F"),Lo.abrupt("return");case 20:$.default.error(Ji);case 21:case"end":return Lo.stop()}},jr)}));return function(){return yr.apply(this,arguments)}}();return(0,de.jsx)(de.Fragment,{children:(0,de.jsxs)(at.Z,(0,Ie.Z)((0,Ie.Z)({},Xt.c),{},{form:Se,layout:"vertical",className:St().form,initialValues:{unit:7,period:"DAY",timeMode:"LAST"},children:[(0,de.jsx)(Gn,{hidden:!0,name:"id",label:"ID",children:(0,de.jsx)(De.Z,{placeholder:"id"})}),H===Ct.fs.DETAIL&&(0,de.jsx)(Gn,{name:"dataItemIds",label:"\u5C55\u793A\u7EF4\u5EA6/\u6307\u6807",children:(0,de.jsx)(lt.Z,{mode:"multiple",allowClear:!0,style:{width:"100%"},optionLabelProp:"name",filterOption:function(jr,zr){var va=zr.name;return!!va.includes(jr)},placeholder:"\u8BF7\u9009\u62E9\u5C55\u793A\u7EF4\u5EA6/\u6307\u6807\u4FE1\u606F",options:Kt})}),H===Ct.fs.AGG&&(0,de.jsx)(de.Fragment,{}),(0,de.jsx)(Gn,{label:(0,de.jsx)(vt.Z,{title:"\u65F6\u95F4\u8303\u56F4",subTitle:"\u95EE\u7B54\u641C\u7D22\u7ED3\u679C\u9009\u62E9\u4E2D\uFF0C\u5982\u679C\u6CA1\u6709\u6307\u5B9A\u65F6\u95F4\u8303\u56F4\uFF0C\u5C06\u4F1A\u91C7\u7528\u9ED8\u8BA4\u65F6\u95F4\u8303\u56F4"}),children:(0,de.jsxs)(De.Z.Group,{compact:!0,children:[H===Ct.fs.DETAIL?(0,de.jsx)("span",{style:{display:"inline-block",lineHeight:"32px",marginRight:"8px"},children:"\u524D"}):(0,de.jsx)(de.Fragment,{children:(0,de.jsx)(Gn,{name:"timeMode",noStyle:!0,children:(0,de.jsxs)(lt.Z,{style:{width:"90px"},children:[(0,de.jsx)(Bn,{value:"LAST",children:"\u524D"}),(0,de.jsx)(Bn,{value:"RECENT",children:"\u6700\u8FD1"})]})})}),(0,de.jsx)(Gn,{name:"unit",noStyle:!0,children:(0,de.jsx)(Ae.Z,{style:{width:"120px"}})}),(0,de.jsx)(Gn,{name:"period",noStyle:!0,children:(0,de.jsxs)(lt.Z,{style:{width:"90px"},children:[(0,de.jsx)(Bn,{value:"DAY",children:"\u5929"}),(0,de.jsx)(Bn,{value:"WEEK",children:"\u5468"}),(0,de.jsx)(Bn,{value:"MONTH",children:"\u6708"}),(0,de.jsx)(Bn,{value:"YEAR",children:"\u5E74"})]})})]})}),(0,de.jsx)(Gn,{children:(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){sr()},children:"\u4FDD \u5B58"})})]}))})},_r=(0,K.forwardRef)(pr),na=o(38663),$n=o(66247),qr=o(44862),Jr=o(19597),Aa=o(93806),ya=o(91772),$t=o(96156),wn=o(85061),Fn=o(22122),Or=o(6610),vr=o(5991),Ur=o(10379),Zr=o(44144),Kr=o(35510),ba=o.n(Kr),Ri=o(9054),Ea=o(21042),Pi=o(27495),rs=o(56701),Ui=o(16980),Cn=o(16786),Kn=o(69252),Pn=o(42091),At=o(3531),ar=o(75447),ta=o(90484),Yn=o(3989),Qa=o(4381),Ua=o(21105),Fi=function(i){var a,l=i.renderedText,u=i.renderedEl,E=i.item,P=i.checked,j=i.disabled,H=i.prefixCls,X=i.onClick,ee=i.onRemove,se=i.showRemove,Se=ba()((a={},(0,$t.Z)(a,"".concat(H,"-content-item"),!0),(0,$t.Z)(a,"".concat(H,"-content-item-disabled"),j||E.disabled),(0,$t.Z)(a,"".concat(H,"-content-item-checked"),P),a)),Re;return(typeof l=="string"||typeof l=="number")&&(Re=String(l)),K.createElement(rs.Z,{componentName:"Transfer",defaultLocale:Ui.Z.Transfer},function(Be){var Ye={className:Se,title:Re},ht=K.createElement("span",{className:"".concat(H,"-content-item-text")},u);return se?K.createElement("li",(0,Fn.Z)({},Ye),ht,K.createElement(Ua.Z,{disabled:j||E.disabled,className:"".concat(H,"-content-item-remove"),"aria-label":Be.remove,onClick:function(){ee==null||ee(E)}},K.createElement(qe.Z,null))):(Ye.onClick=j||E.disabled?void 0:function(){return X(E)},K.createElement("li",(0,Fn.Z)({},Ye),K.createElement(Pn.Z,{className:"".concat(H,"-checkbox"),checked:P,disabled:j||E.disabled}),ht))})},Xa=K.memo(Fi),$i=(0,Qa.b)("handleFilter","handleClear","checkedKeys");function La(C){if(!C)return null;var i={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return(0,ta.Z)(C)==="object"?(0,Fn.Z)((0,Fn.Z)({},i),C):i}var ja=function(C){(0,Ur.Z)(a,C);var i=(0,Zr.Z)(a);function a(){var l;return(0,Or.Z)(this,a),l=i.apply(this,arguments),l.state={current:1},l.onItemSelect=function(u){var E=l.props,P=E.onItemSelect,j=E.selectedKeys,H=j.includes(u.key);P(u.key,!H)},l.onItemRemove=function(u){var E=l.props.onItemRemove;E==null||E([u.key])},l.onPageChange=function(u){l.setState({current:u})},l.getItems=function(){var u=l.state.current,E=l.props,P=E.pagination,j=E.filteredRenderItems,H=La(P),X=j;return H&&(X=j.slice((u-1)*H.pageSize,u*H.pageSize)),X},l}return(0,vr.Z)(a,[{key:"render",value:function(){var u=this,E=this.state.current,P=this.props,j=P.prefixCls,H=P.onScroll,X=P.filteredRenderItems,ee=P.selectedKeys,se=P.disabled,Se=P.showRemove,Re=P.pagination,Be=La(Re),Ye=null;return Be&&(Ye=K.createElement(Yn.Z,{simple:Be.simple,showSizeChanger:Be.showSizeChanger,showLessItems:Be.showLessItems,size:"small",disabled:se,className:"".concat(j,"-pagination"),total:X.length,pageSize:Be.pageSize,current:E,onChange:this.onPageChange})),K.createElement(K.Fragment,null,K.createElement("ul",{className:ba()("".concat(j,"-content"),(0,$t.Z)({},"".concat(j,"-content-show-remove"),Se)),onScroll:H},this.getItems().map(function(ht){var Tt=ht.renderedEl,Dt=ht.renderedText,Kt=ht.item,gn=Kt.disabled,bn=ee.includes(Kt.key);return K.createElement(Xa,{disabled:se||gn,key:Kt.key,item:Kt,renderedText:Dt,renderedEl:Tt,checked:bn,prefixCls:j,onClick:u.onItemSelect,onRemove:u.onItemRemove,showRemove:Se})})),Ye)}}],[{key:"getDerivedStateFromProps",value:function(u,E){var P=u.filteredRenderItems,j=u.pagination,H=E.current,X=La(j);if(X){var ee=Math.ceil(P.length/X.pageSize);if(H>ee)return{current:ee}}return null}}]),a}(K.Component),ei=ja,Do=o(76570);function yo(C){var i=C.placeholder,a=i===void 0?"":i,l=C.value,u=C.prefixCls,E=C.disabled,P=C.onChange,j=C.handleClear,H=K.useCallback(function(X){P==null||P(X),X.target.value===""&&(j==null||j())},[P]);return K.createElement(De.Z,{placeholder:a,className:u,value:l,onChange:H,disabled:E,allowClear:!0,prefix:K.createElement(Do.Z,null)})}var to=function(){return null};function fs(C){return!!(C&&!(0,ar.l$)(C)&&Object.prototype.toString.call(C)==="[object Object]")}function cs(C){return C.filter(function(i){return!i.disabled}).map(function(i){return i.key})}var Os=function(C){(0,Ur.Z)(a,C);var i=(0,Zr.Z)(a);function a(l){var u;return(0,Or.Z)(this,a),u=i.call(this,l),u.defaultListBodyRef=K.createRef(),u.handleFilter=function(E){var P=u.props.handleFilter,j=E.target.value;u.setState({filterValue:j}),P(E)},u.handleClear=function(){var E=u.props.handleClear;u.setState({filterValue:""}),E()},u.matchFilter=function(E,P){var j=u.state.filterValue,H=u.props.filterOption;return H?H(j,P):E.includes(j)},u.renderListBody=function(E,P){var j=E?E(P):null,H=!!j;return H||(j=K.createElement(ei,(0,Fn.Z)({ref:u.defaultListBodyRef},P))),{customize:H,bodyContent:j}},u.renderItem=function(E){var P=u.props.render,j=P===void 0?to:P,H=j(E),X=fs(H);return{renderedText:X?H.value:H,renderedEl:X?H.label:H,item:E}},u.getSelectAllLabel=function(E,P){var j=u.props,H=j.itemsUnit,X=j.itemUnit,ee=j.selectAllLabel;if(ee)return typeof ee=="function"?ee({selectedCount:E,totalCount:P}):ee;var se=P>1?H:X;return K.createElement(K.Fragment,null,(E>0?"".concat(E,"/"):"")+P," ",se)},u.state={filterValue:""},u}return(0,vr.Z)(a,[{key:"componentWillUnmount",value:function(){clearTimeout(this.triggerScrollTimer)}},{key:"getCheckStatus",value:function(u){var E=this.props.checkedKeys;return E.length===0?"none":u.every(function(P){return E.includes(P.key)||!!P.disabled})?"all":"part"}},{key:"getFilteredItems",value:function(u,E){var P=this,j=[],H=[];return u.forEach(function(X){var ee=P.renderItem(X),se=ee.renderedText;if(E&&!P.matchFilter(se,X))return null;j.push(X),H.push(ee)}),{filteredItems:j,filteredRenderItems:H}}},{key:"getListBody",value:function(u,E,P,j,H,X,ee,se,Se,Re){var Be=this,Ye=Se?K.createElement("div",{className:"".concat(u,"-body-search-wrapper")},K.createElement(yo,{prefixCls:"".concat(u,"-search"),onChange:this.handleFilter,handleClear:this.handleClear,placeholder:E,value:P,disabled:Re})):null,ht=this.renderListBody(se,(0,Fn.Z)((0,Fn.Z)({},(0,Kn.Z)(this.props,$i)),{filteredItems:j,filteredRenderItems:X,selectedKeys:ee})),Tt=ht.bodyContent,Dt=ht.customize,Kt=function(){var mn=Be.props.direction==="left"?0:1;return Array.isArray(H)?H[mn]:H},gn;return Dt?gn=K.createElement("div",{className:"".concat(u,"-body-customize-wrapper")},Tt):gn=j.length?Tt:K.createElement("div",{className:"".concat(u,"-body-not-found")},Kt()),K.createElement("div",{className:ba()(Se?"".concat(u,"-body ").concat(u,"-body-with-search"):"".concat(u,"-body"))},Ye,gn)}},{key:"getCheckBox",value:function(u){var E=u.filteredItems,P=u.onItemSelectAll,j=u.disabled,H=u.prefixCls,X=this.getCheckStatus(E),ee=X==="all",se=K.createElement(Pn.Z,{disabled:j,checked:ee,indeterminate:X==="part",className:"".concat(H,"-checkbox"),onChange:function(){P(E.filter(function(Re){return!Re.disabled}).map(function(Re){var Be=Re.key;return Be}),!ee)}});return se}},{key:"render",value:function(){var u,E=this,P=this.state.filterValue,j=this.props,H=j.prefixCls,X=j.dataSource,ee=X===void 0?[]:X,se=j.titleText,Se=se===void 0?"":se,Re=j.checkedKeys,Be=j.disabled,Ye=j.footer,ht=j.showSearch,Tt=ht===void 0?!1:ht,Dt=j.style,Kt=j.searchPlaceholder,gn=j.notFoundContent,bn=j.selectAll,mn=j.selectCurrent,kn=j.selectInvert,sr=j.removeAll,yr=j.removeCurrent,jr=j.renderList,zr=j.onItemSelectAll,va=j.onItemRemove,za=j.showSelectAll,xi=za===void 0?!0:za,Di=j.showRemove,Si=j.pagination,jo=j.direction,ro=Ye&&(Ye.length<2?Ye(this.props):Ye(this.props,{direction:jo})),hi=ba()(H,(u={},(0,$t.Z)(u,"".concat(H,"-with-pagination"),!!Si),(0,$t.Z)(u,"".concat(H,"-with-footer"),!!ro),u)),io=this.getFilteredItems(ee,P),oo=io.filteredItems,Ki=io.filteredRenderItems,Ji=this.getListBody(H,Kt,P,oo,gn,Ki,Re,jr,Tt,Be),Ao=ro?K.createElement("div",{className:"".concat(H,"-footer")},ro):null,ks=!Di&&!Si&&this.getCheckBox({filteredItems:oo,onItemSelectAll:zr,disabled:Be,prefixCls:H}),Lo;Di?Lo=[Si?{key:"removeCurrent",onClick:function(){var il,Pl=cs((((il=E.defaultListBodyRef.current)===null||il===void 0?void 0:il.getItems())||[]).map(function(lc){return lc.item}));va==null||va(Pl)},label:yr}:null,{key:"removeAll",onClick:function(){va==null||va(cs(oo))},label:sr}].filter(function(Cl){return Cl}):Lo=[{key:"selectAll",onClick:function(){var il=cs(oo);zr(il,il.length!==Re.length)},label:bn},Si?{key:"selectCurrent",onClick:function(){var il,Pl=((il=E.defaultListBodyRef.current)===null||il===void 0?void 0:il.getItems())||[];zr(cs(Pl.map(function(lc){return lc.item})),!0)},label:mn}:null,{key:"selectInvert",onClick:function(){var il,Pl;Si?Pl=cs((((il=E.defaultListBodyRef.current)===null||il===void 0?void 0:il.getItems())||[]).map(function(zf){return zf.item})):Pl=cs(oo);var lc=new Set(Re),Mc=[],dp=[];Pl.forEach(function(zf){lc.has(zf)?dp.push(zf):Mc.push(zf)}),zr(Mc,!0),zr(dp,!1)},label:kn}];var Is=K.createElement(At.Z,{className:"".concat(H,"-header-dropdown"),menu:{items:Lo},disabled:Be},K.createElement(et.Z,null));return K.createElement("div",{className:hi,style:Dt},K.createElement("div",{className:"".concat(H,"-header")},xi?K.createElement(K.Fragment,null,ks,Is):null,K.createElement("span",{className:"".concat(H,"-header-selected")},this.getSelectAllLabel(Re.length,oo.length)),K.createElement("span",{className:"".concat(H,"-header-title")},Se)),Ji,Ao)}}]),a}(K.PureComponent),vl=o(43929),Ar=function(i){var a=i.disabled,l=i.moveToLeft,u=i.moveToRight,E=i.leftArrowText,P=E===void 0?"":E,j=i.rightArrowText,H=j===void 0?"":j,X=i.leftActive,ee=i.rightActive,se=i.className,Se=i.style,Re=i.direction,Be=i.oneWay;return K.createElement("div",{className:se,style:Se},K.createElement(Le.Z,{type:"primary",size:"small",disabled:a||!ee,onClick:u,icon:Re!=="rtl"?K.createElement(vl.Z,null):K.createElement(bt.Z,null)},H),!Be&&K.createElement(Le.Z,{type:"primary",size:"small",disabled:a||!X,onClick:l,icon:Re!=="rtl"?K.createElement(bt.Z,null):K.createElement(vl.Z,null)},P))},Rn=Ar,Sr=function(C){(0,Ur.Z)(a,C);var i=(0,Zr.Z)(a);function a(l){var u;(0,Or.Z)(this,a),u=i.call(this,l),u.separatedDataSource=null,u.setStateKeys=function(X,ee){X==="left"?u.setState(function(se){var Se=se.sourceSelectedKeys;return{sourceSelectedKeys:typeof ee=="function"?ee(Se||[]):ee}}):u.setState(function(se){var Se=se.targetSelectedKeys;return{targetSelectedKeys:typeof ee=="function"?ee(Se||[]):ee}})},u.getLocale=function(X,ee){var se=u.props.locale,Se=se===void 0?{}:se;return(0,Fn.Z)((0,Fn.Z)((0,Fn.Z)({},X),{notFoundContent:ee("Transfer")}),Se)},u.moveTo=function(X){var ee=u.props,se=ee.targetKeys,Se=se===void 0?[]:se,Re=ee.dataSource,Be=Re===void 0?[]:Re,Ye=ee.onChange,ht=u.state,Tt=ht.sourceSelectedKeys,Dt=ht.targetSelectedKeys,Kt=X==="right"?Tt:Dt,gn=Kt.filter(function(kn){return!Be.some(function(sr){return!!(kn===sr.key&&sr.disabled)})}),bn=X==="right"?gn.concat(Se):Se.filter(function(kn){return!gn.includes(kn)}),mn=X==="right"?"left":"right";u.setStateKeys(mn,[]),u.handleSelectChange(mn,[]),Ye==null||Ye(bn,X,gn)},u.moveToLeft=function(){return u.moveTo("left")},u.moveToRight=function(){return u.moveTo("right")},u.onItemSelectAll=function(X,ee,se){u.setStateKeys(X,function(Se){var Re=[];return se?Re=Array.from(new Set([].concat((0,wn.Z)(Se),(0,wn.Z)(ee)))):Re=Se.filter(function(Be){return!ee.includes(Be)}),u.handleSelectChange(X,Re),Re})},u.onLeftItemSelectAll=function(X,ee){return u.onItemSelectAll("left",X,ee)},u.onRightItemSelectAll=function(X,ee){return u.onItemSelectAll("right",X,ee)},u.handleFilter=function(X,ee){var se=u.props.onSearch,Se=ee.target.value;se==null||se(X,Se)},u.handleLeftFilter=function(X){return u.handleFilter("left",X)},u.handleRightFilter=function(X){return u.handleFilter("right",X)},u.handleClear=function(X){var ee=u.props.onSearch;ee==null||ee(X,"")},u.handleLeftClear=function(){return u.handleClear("left")},u.handleRightClear=function(){return u.handleClear("right")},u.onItemSelect=function(X,ee,se){var Se=u.state,Re=Se.sourceSelectedKeys,Be=Se.targetSelectedKeys,Ye=X==="left"?(0,wn.Z)(Re):(0,wn.Z)(Be),ht=Ye.indexOf(ee);ht>-1&&Ye.splice(ht,1),se&&Ye.push(ee),u.handleSelectChange(X,Ye),u.props.selectedKeys||u.setStateKeys(X,Ye)},u.onLeftItemSelect=function(X,ee){return u.onItemSelect("left",X,ee)},u.onRightItemSelect=function(X,ee){return u.onItemSelect("right",X,ee)},u.onRightItemRemove=function(X){var ee=u.props,se=ee.targetKeys,Se=se===void 0?[]:se,Re=ee.onChange;u.setStateKeys("right",[]),Re==null||Re(Se.filter(function(Be){return!X.includes(Be)}),"left",(0,wn.Z)(X))},u.handleScroll=function(X,ee){var se=u.props.onScroll;se==null||se(X,ee)},u.handleLeftScroll=function(X){return u.handleScroll("left",X)},u.handleRightScroll=function(X){return u.handleScroll("right",X)},u.handleListStyle=function(X,ee){return typeof X=="function"?X({direction:ee}):X};var E=l.selectedKeys,P=E===void 0?[]:E,j=l.targetKeys,H=j===void 0?[]:j;return u.state={sourceSelectedKeys:P.filter(function(X){return!H.includes(X)}),targetSelectedKeys:P.filter(function(X){return H.includes(X)})},u}return(0,vr.Z)(a,[{key:"getTitles",value:function(u){var E,P;return(P=(E=this.props.titles)!==null&&E!==void 0?E:u.titles)!==null&&P!==void 0?P:[]}},{key:"handleSelectChange",value:function(u,E){var P=this.state,j=P.sourceSelectedKeys,H=P.targetSelectedKeys,X=this.props.onSelectChange;!X||(u==="left"?X(E,H):X(j,E))}},{key:"separateDataSource",value:function(){var u=this.props,E=u.dataSource,P=E===void 0?[]:E,j=u.rowKey,H=u.targetKeys,X=H===void 0?[]:H,ee=[],se=new Array(X.length);return P.forEach(function(Se){j&&(Se=(0,Fn.Z)((0,Fn.Z)({},Se),{key:j(Se)}));var Re=X.indexOf(Se.key);Re!==-1?se[Re]=Se:ee.push(Se)}),{leftDataSource:ee,rightDataSource:se}}},{key:"render",value:function(){var u=this;return K.createElement(rs.Z,{componentName:"Transfer",defaultLocale:Ui.Z.Transfer},function(E){return K.createElement(Ri.C,null,function(P){var j=P.getPrefixCls,H=P.renderEmpty,X=P.direction;return K.createElement(Pi.aM.Consumer,null,function(ee){var se,Se=ee.hasFeedback,Re=ee.status,Be=u.props,Ye=Be.prefixCls,ht=Be.className,Tt=Be.disabled,Dt=Be.operations,Kt=Dt===void 0?[]:Dt,gn=Be.showSearch,bn=gn===void 0?!1:gn,mn=Be.footer,kn=Be.style,sr=Be.listStyle,yr=sr===void 0?{}:sr,jr=Be.operationStyle,zr=Be.filterOption,va=Be.render,za=Be.children,xi=Be.showSelectAll,Di=Be.oneWay,Si=Be.pagination,jo=Be.status,ro=j("transfer",Ye),hi=u.getLocale(E,H||Ea.Z),io=u.state,oo=io.sourceSelectedKeys,Ki=io.targetSelectedKeys,Ji=(0,Cn.F)(Re,jo),Ao=!za&&Si,ks=u.separateDataSource(),Lo=ks.leftDataSource,Is=ks.rightDataSource,Cl=Ki.length>0,il=oo.length>0,Pl=ba()(ro,(se={},(0,$t.Z)(se,"".concat(ro,"-disabled"),Tt),(0,$t.Z)(se,"".concat(ro,"-customize-list"),!!za),(0,$t.Z)(se,"".concat(ro,"-rtl"),X==="rtl"),se),(0,Cn.Z)(ro,Ji,Se),ht),lc=u.getTitles(hi),Mc=u.props.selectAllLabels||[];return K.createElement("div",{className:Pl,style:kn},K.createElement(Os,(0,Fn.Z)({prefixCls:"".concat(ro,"-list"),titleText:lc==null?void 0:lc[0],dataSource:Lo,filterOption:zr,style:u.handleListStyle(yr,"left"),checkedKeys:oo,handleFilter:u.handleLeftFilter,handleClear:u.handleLeftClear,onItemSelect:u.onLeftItemSelect,onItemSelectAll:u.onLeftItemSelectAll,render:va,showSearch:bn,renderList:za,footer:mn,onScroll:u.handleLeftScroll,disabled:Tt,direction:X==="rtl"?"right":"left",showSelectAll:xi,selectAllLabel:Mc[0],pagination:Ao},hi)),K.createElement(Rn,{className:"".concat(ro,"-operation"),rightActive:il,rightArrowText:Kt[0],moveToRight:u.moveToRight,leftActive:Cl,leftArrowText:Kt[1],moveToLeft:u.moveToLeft,style:jr,disabled:Tt,direction:X,oneWay:Di}),K.createElement(Os,(0,Fn.Z)({prefixCls:"".concat(ro,"-list"),titleText:lc==null?void 0:lc[1],dataSource:Is,filterOption:zr,style:u.handleListStyle(yr,"right"),checkedKeys:Ki,handleFilter:u.handleRightFilter,handleClear:u.handleRightClear,onItemSelect:u.onRightItemSelect,onItemSelectAll:u.onRightItemSelectAll,onItemRemove:u.onRightItemRemove,render:va,showSearch:bn,renderList:za,footer:mn,onScroll:u.handleRightScroll,disabled:Tt,direction:X==="rtl"?"left":"right",showSelectAll:xi,selectAllLabel:Mc[1],showRemove:Di,pagination:Ao},hi)))})})})}}],[{key:"getDerivedStateFromProps",value:function(u){var E=u.selectedKeys,P=u.targetKeys,j=u.pagination,H=u.children;if(E){var X=P||[];return{sourceSelectedKeys:E.filter(function(ee){return!X.includes(ee)}),targetSelectedKeys:E.filter(function(ee){return X.includes(ee)})}}return null}}]),a}(K.Component);Sr.List=Os,Sr.Operation=Rn,Sr.Search=yo;var nn=Sr,sn=o(36805),Ot=o(57535),gr=o(91966),Gr=o.n(gr),Ln=o(96486),Tr=o(57719),Dn=o(86178),Pr=o(58210),fa=o(28481),ka=o(69160),Li=o(31312),zi=o(87240),Mo=o(85748),Za=o(18316),ao=function(C,i){var a={};for(var l in C)Object.prototype.hasOwnProperty.call(C,l)&&i.indexOf(l)<0&&(a[l]=C[l]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(C);u<l.length;u++)i.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(C,l[u])&&(a[l[u]]=C[l[u]]);return a},Mi=function(i){var a=i.prefixCls,l=i.className,u=i.avatar,E=i.title,P=i.description,j=ao(i,["prefixCls","className","avatar","title","description"]),H=(0,K.useContext)(Ri.E_),X=H.getPrefixCls,ee=X("list",a),se=ba()("".concat(ee,"-item-meta"),l),Se=K.createElement("div",{className:"".concat(ee,"-item-meta-content")},E&&K.createElement("h4",{className:"".concat(ee,"-item-meta-title")},E),P&&K.createElement("div",{className:"".concat(ee,"-item-meta-description")},P));return K.createElement("div",(0,Fn.Z)({},j,{className:se}),u&&K.createElement("div",{className:"".concat(ee,"-item-meta-avatar")},u),(E||P)&&Se)},Eo=function(i,a){var l=i.prefixCls,u=i.children,E=i.actions,P=i.extra,j=i.className,H=i.colStyle,X=ao(i,["prefixCls","children","actions","extra","className","colStyle"]),ee=(0,K.useContext)(Il),se=ee.grid,Se=ee.itemLayout,Re=(0,K.useContext)(Ri.E_),Be=Re.getPrefixCls,Ye=function(){var mn;return K.Children.forEach(u,function(kn){typeof kn=="string"&&(mn=!0)}),mn&&K.Children.count(u)>1},ht=function(){return Se==="vertical"?!!P:!Ye()},Tt=Be("list",l),Dt=E&&E.length>0&&K.createElement("ul",{className:"".concat(Tt,"-item-action"),key:"actions"},E.map(function(bn,mn){return K.createElement("li",{key:"".concat(Tt,"-item-action-").concat(mn)},bn,mn!==E.length-1&&K.createElement("em",{className:"".concat(Tt,"-item-action-split")}))})),Kt=se?"div":"li",gn=K.createElement(Kt,(0,Fn.Z)({},X,se?{}:{ref:a},{className:ba()("".concat(Tt,"-item"),(0,$t.Z)({},"".concat(Tt,"-item-no-flex"),!ht()),j)}),Se==="vertical"&&P?[K.createElement("div",{className:"".concat(Tt,"-item-main"),key:"content"},u,Dt),K.createElement("div",{className:"".concat(Tt,"-item-extra"),key:"extra"},P)]:[u,Dt,(0,ar.Tm)(P,{key:"extra"})]);return se?K.createElement(Za.Z,{ref:a,flex:1,style:H},gn):gn},Xi=(0,K.forwardRef)(Eo);Xi.Meta=Mi;var Bo=Xi,ol=function(C,i){var a={};for(var l in C)Object.prototype.hasOwnProperty.call(C,l)&&i.indexOf(l)<0&&(a[l]=C[l]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(C);u<l.length;u++)i.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(C,l[u])&&(a[l[u]]=C[l[u]]);return a},Il=K.createContext({}),ms=Il.Consumer;function mc(C){var i,a=C.pagination,l=a===void 0?!1:a,u=C.prefixCls,E=C.bordered,P=E===void 0?!1:E,j=C.split,H=j===void 0?!0:j,X=C.className,ee=C.children,se=C.itemLayout,Se=C.loadMore,Re=C.grid,Be=C.dataSource,Ye=Be===void 0?[]:Be,ht=C.size,Tt=C.header,Dt=C.footer,Kt=C.loading,gn=Kt===void 0?!1:Kt,bn=C.rowKey,mn=C.renderItem,kn=C.locale,sr=ol(C,["pagination","prefixCls","bordered","split","className","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),yr=l&&(0,ta.Z)(l)==="object"?l:{},jr=K.useState(yr.defaultCurrent||1),zr=(0,fa.Z)(jr,2),va=zr[0],za=zr[1],xi=K.useState(yr.defaultPageSize||10),Di=(0,fa.Z)(xi,2),Si=Di[0],jo=Di[1],ro=K.useContext(Ri.E_),hi=ro.getPrefixCls,io=ro.renderEmpty,oo=ro.direction,Ki={current:1,total:0},Ji=function(Oc){return function(au,ef){za(au),jo(ef),l&&l[Oc]&&l[Oc](au,ef)}},Ao=Ji("onChange"),ks=Ji("onShowSizeChange"),Lo=function(Oc,au){if(!mn)return null;var ef;return typeof bn=="function"?ef=bn(Oc):bn?ef=Oc[bn]:ef=Oc.key,ef||(ef="list-item-".concat(au)),K.createElement(K.Fragment,{key:ef},mn(Oc,au))},Is=function(){return!!(Se||l||Dt)},Cl=function(Oc,au){return K.createElement("div",{className:"".concat(Oc,"-empty-text")},kn&&kn.emptyText||au("List"))},il=hi("list",u),Pl=gn;typeof Pl=="boolean"&&(Pl={spinning:Pl});var lc=Pl&&Pl.spinning,Mc="";switch(ht){case"large":Mc="lg";break;case"small":Mc="sm";break;default:break}var dp=ba()(il,(i={},(0,$t.Z)(i,"".concat(il,"-vertical"),se==="vertical"),(0,$t.Z)(i,"".concat(il,"-").concat(Mc),Mc),(0,$t.Z)(i,"".concat(il,"-split"),H),(0,$t.Z)(i,"".concat(il,"-bordered"),P),(0,$t.Z)(i,"".concat(il,"-loading"),lc),(0,$t.Z)(i,"".concat(il,"-grid"),!!Re),(0,$t.Z)(i,"".concat(il,"-something-after-last-item"),Is()),(0,$t.Z)(i,"".concat(il,"-rtl"),oo==="rtl"),i),X),zf=(0,Fn.Z)((0,Fn.Z)((0,Fn.Z)({},Ki),{total:Ye.length,current:va,pageSize:Si}),l||{}),gv=Math.ceil(zf.total/zf.pageSize);zf.current>gv&&(zf.current=gv);var Wf=l?K.createElement("div",{className:"".concat(il,"-pagination")},K.createElement(Yn.Z,(0,Fn.Z)({},zf,{onChange:Ao,onShowSizeChange:ks}))):null,cu=(0,wn.Z)(Ye);l&&Ye.length>(zf.current-1)*zf.pageSize&&(cu=(0,wn.Z)(Ye).splice((zf.current-1)*zf.pageSize,zf.pageSize));var kf=Object.keys(Re||{}).some(function(Nl){return["xs","sm","md","lg","xl","xxl"].includes(Nl)}),af=(0,Li.Z)(kf),lf=K.useMemo(function(){for(var Nl=0;Nl<Mo.c4.length;Nl+=1){var Oc=Mo.c4[Nl];if(af[Oc])return Oc}},[af]),gu=K.useMemo(function(){if(!!Re){var Nl=lf&&Re[lf]?Re[lf]:Re.column;if(Nl)return{width:"".concat(100/Nl,"%"),maxWidth:"".concat(100/Nl,"%")}}},[Re==null?void 0:Re.column,lf]),Vc=lc&&K.createElement("div",{style:{minHeight:53}});if(cu.length>0){var Wc=cu.map(function(Nl,Oc){return Lo(Nl,Oc)});Vc=Re?K.createElement(ka.Z,{gutter:Re.gutter},K.Children.map(Wc,function(Nl){return K.createElement("div",{key:Nl==null?void 0:Nl.key,style:gu},Nl)})):K.createElement("ul",{className:"".concat(il,"-items")},Wc)}else!ee&&!lc&&(Vc=Cl(il,io||Ea.Z));var Mu=zf.position||"bottom",Rc=K.useMemo(function(){return{grid:Re,itemLayout:se}},[JSON.stringify(Re),se]);return K.createElement(Il.Provider,{value:Rc},K.createElement("div",(0,Fn.Z)({className:dp},sr),(Mu==="top"||Mu==="both")&&Wf,Tt&&K.createElement("div",{className:"".concat(il,"-header")},Tt),K.createElement(zi.Z,(0,Fn.Z)({},Pl),Vc,ee),Dt&&K.createElement("div",{className:"".concat(il,"-footer")},Dt),Se||(Mu==="bottom"||Mu==="both")&&Wf))}mc.Item=Bo;var Ys=mc,hl=o(50596),Rs=o(54323);function xl(C){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=[];return K.Children.forEach(C,function(l){l==null&&!i.keepEmpty||(Array.isArray(l)?a=a.concat(xl(l)):(0,Rs.isFragment)(l)&&l.props?a=a.concat(xl(l.props.children,i)):a.push(l))}),a}var Wl=o(23270),_l=o.n(Wl),Ls=o(81253),zn=o(90190),Dr=K.forwardRef(function(C,i){var a,l=C.prefixCls,u=C.forceRender,E=C.className,P=C.style,j=C.children,H=C.isActive,X=C.role,ee=K.useState(H||u),se=(0,fa.Z)(ee,2),Se=se[0],Re=se[1];return K.useEffect(function(){(u||H)&&Re(!0)},[u,H]),Se?K.createElement("div",{ref:i,className:ba()("".concat(l,"-content"),(a={},(0,$t.Z)(a,"".concat(l,"-content-active"),H),(0,$t.Z)(a,"".concat(l,"-content-inactive"),!H),a),E),style:P,role:X},K.createElement("div",{className:"".concat(l,"-content-box")},j)):null});Dr.displayName="PanelContent";var Hr=Dr,_a=["className","id","style","prefixCls","headerClass","children","isActive","destroyInactivePanel","accordion","forceRender","openMotion","extra","collapsible"],Ti=function(C){(0,Ur.Z)(a,C);var i=(0,Zr.Z)(a);function a(){var l;(0,Or.Z)(this,a);for(var u=arguments.length,E=new Array(u),P=0;P<u;P++)E[P]=arguments[P];return l=i.call.apply(i,[this].concat(E)),l.onItemClick=function(){var j=l.props,H=j.onItemClick,X=j.panelKey;typeof H=="function"&&H(X)},l.handleKeyPress=function(j){(j.key==="Enter"||j.keyCode===13||j.which===13)&&l.onItemClick()},l.renderIcon=function(){var j=l.props,H=j.showArrow,X=j.expandIcon,ee=j.prefixCls,se=j.collapsible;if(!H)return null;var Se=typeof X=="function"?X(l.props):K.createElement("i",{className:"arrow"});return Se&&K.createElement("div",{className:"".concat(ee,"-expand-icon"),onClick:se==="header"||se==="icon"?l.onItemClick:null},Se)},l.renderTitle=function(){var j=l.props,H=j.header,X=j.prefixCls,ee=j.collapsible;return K.createElement("span",{className:"".concat(X,"-header-text"),onClick:ee==="header"?l.onItemClick:null},H)},l}return(0,vr.Z)(a,[{key:"shouldComponentUpdate",value:function(u){return!_l()(this.props,u)}},{key:"render",value:function(){var u,E,P=this.props,j=P.className,H=P.id,X=P.style,ee=P.prefixCls,se=P.headerClass,Se=P.children,Re=P.isActive,Be=P.destroyInactivePanel,Ye=P.accordion,ht=P.forceRender,Tt=P.openMotion,Dt=P.extra,Kt=P.collapsible,gn=(0,Ls.Z)(P,_a),bn=Kt==="disabled",mn=Kt==="header",kn=Kt==="icon",sr=ba()((u={},(0,$t.Z)(u,"".concat(ee,"-item"),!0),(0,$t.Z)(u,"".concat(ee,"-item-active"),Re),(0,$t.Z)(u,"".concat(ee,"-item-disabled"),bn),u),j),yr=ba()("".concat(ee,"-header"),(E={},(0,$t.Z)(E,se,se),(0,$t.Z)(E,"".concat(ee,"-header-collapsible-only"),mn),(0,$t.Z)(E,"".concat(ee,"-icon-collapsible-only"),kn),E)),jr={className:yr,"aria-expanded":Re,"aria-disabled":bn,onKeyPress:this.handleKeyPress};!mn&&!kn&&(jr.onClick=this.onItemClick,jr.role=Ye?"tab":"button",jr.tabIndex=bn?-1:0);var zr=Dt!=null&&typeof Dt!="boolean";return delete gn.header,delete gn.panelKey,delete gn.onItemClick,delete gn.showArrow,delete gn.expandIcon,K.createElement("div",(0,Fn.Z)({},gn,{className:sr,style:X,id:H}),K.createElement("div",jr,this.renderIcon(),this.renderTitle(),zr&&K.createElement("div",{className:"".concat(ee,"-extra")},Dt)),K.createElement(zn.ZP,(0,Fn.Z)({visible:Re,leavedClassName:"".concat(ee,"-content-hidden")},Tt,{forceRender:ht,removeOnLeave:Be}),function(va,za){var xi=va.className,Di=va.style;return K.createElement(Hr,{ref:za,prefixCls:ee,className:xi,style:Di,isActive:Re,forceRender:ht,role:Ye?"tabpanel":null},Se)}))}}]),a}(K.Component);Ti.defaultProps={showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1};var Ci=Ti;function da(C){var i=C;if(!Array.isArray(i)){var a=(0,ta.Z)(i);i=a==="number"||a==="string"?[i]:[]}return i.map(function(l){return String(l)})}var Da=function(C){(0,Ur.Z)(a,C);var i=(0,Zr.Z)(a);function a(l){var u;(0,Or.Z)(this,a),u=i.call(this,l),u.onClickItem=function(H){var X=u.state.activeKey;if(u.props.accordion)X=X[0]===H?[]:[H];else{X=(0,wn.Z)(X);var ee=X.indexOf(H),se=ee>-1;se?X.splice(ee,1):X.push(H)}u.setActiveKey(X)},u.getNewChild=function(H,X){if(!H)return null;var ee=u.state.activeKey,se=u.props,Se=se.prefixCls,Re=se.openMotion,Be=se.accordion,Ye=se.destroyInactivePanel,ht=se.expandIcon,Tt=se.collapsible,Dt=H.key||String(X),Kt=H.props,gn=Kt.header,bn=Kt.headerClass,mn=Kt.destroyInactivePanel,kn=Kt.collapsible,sr=!1;Be?sr=ee[0]===Dt:sr=ee.indexOf(Dt)>-1;var yr=kn!=null?kn:Tt,jr={key:Dt,panelKey:Dt,header:gn,headerClass:bn,isActive:sr,prefixCls:Se,destroyInactivePanel:mn!=null?mn:Ye,openMotion:Re,accordion:Be,children:H.props.children,onItemClick:yr==="disabled"?null:u.onClickItem,expandIcon:ht,collapsible:yr};return typeof H.type=="string"?H:(Object.keys(jr).forEach(function(zr){typeof jr[zr]=="undefined"&&delete jr[zr]}),K.cloneElement(H,jr))},u.getItems=function(){var H=u.props.children;return xl(H).map(u.getNewChild)},u.setActiveKey=function(H){"activeKey"in u.props||u.setState({activeKey:H}),u.props.onChange(u.props.accordion?H[0]:H)};var E=l.activeKey,P=l.defaultActiveKey,j=P;return"activeKey"in l&&(j=E),u.state={activeKey:da(j)},u}return(0,vr.Z)(a,[{key:"shouldComponentUpdate",value:function(u,E){return!_l()(this.props,u)||!_l()(this.state,E)}},{key:"render",value:function(){var u,E=this.props,P=E.prefixCls,j=E.className,H=E.style,X=E.accordion,ee=ba()((u={},(0,$t.Z)(u,P,!0),(0,$t.Z)(u,j,!!j),u));return K.createElement("div",{className:ee,style:H,role:X?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(u){var E={};return"activeKey"in u&&(E.activeKey=da(u.activeKey)),E}}]),a}(K.Component);Da.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},Da.Panel=Ci;var mi=Da,Ho=mi,al=mi.Panel,ml=o(83025),Xs=o(31064),Ps=function(i){var a=K.useContext(Ri.E_),l=a.getPrefixCls,u=i.prefixCls,E=i.className,P=E===void 0?"":E,j=i.showArrow,H=j===void 0?!0:j,X=l("collapse",u),ee=ba()((0,$t.Z)({},"".concat(X,"-no-arrow"),!H),P);return K.createElement(Ho.Panel,(0,Fn.Z)({},i,{prefixCls:X,className:ee}))},dl=Ps,ql=function(i){var a,l=K.useContext(Ri.E_),u=l.getPrefixCls,E=l.direction,P=i.prefixCls,j=i.className,H=j===void 0?"":j,X=i.bordered,ee=X===void 0?!0:X,se=i.ghost,Se=i.expandIconPosition,Re=Se===void 0?"start":Se,Be=u("collapse",P),Ye=K.useMemo(function(){return Re==="left"?"start":Re==="right"?"end":Re},[Re]),ht=function(){var bn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},mn=i.expandIcon,kn=mn?mn(bn):K.createElement(vl.Z,{rotate:bn.isActive?90:void 0});return(0,ar.Tm)(kn,function(){return{className:ba()(kn.props.className,"".concat(Be,"-arrow"))}})},Tt=ba()("".concat(Be,"-icon-position-").concat(Ye),(a={},(0,$t.Z)(a,"".concat(Be,"-borderless"),!ee),(0,$t.Z)(a,"".concat(Be,"-rtl"),E==="rtl"),(0,$t.Z)(a,"".concat(Be,"-ghost"),!!se),a),H),Dt=(0,Fn.Z)((0,Fn.Z)({},Xs.ZP),{motionAppear:!1,leavedClassName:"".concat(Be,"-content-hidden")}),Kt=function(){var bn=i.children;return(0,ml.Z)(bn).map(function(mn,kn){var sr;if((sr=mn.props)===null||sr===void 0?void 0:sr.disabled){var yr=mn.key||String(kn),jr=mn.props,zr=jr.disabled,va=jr.collapsible,za=(0,Fn.Z)((0,Fn.Z)({},(0,Kn.Z)(mn.props,["disabled"])),{key:yr,collapsible:va!=null?va:zr?"disabled":void 0});return(0,ar.Tm)(mn,za)}return mn})};return K.createElement(Ho,(0,Fn.Z)({openMotion:Dt},i,{expandIcon:ht,prefixCls:Be,className:Tt}),Kt())};ql.Panel=dl;var Dc=ql,Jl=Dc,oc=o(24480),xu=o(89004),yf=o(33628),ku=o.n(yf),Zc=Jl.Panel,Zu=function(i){var a=i.title,l=i.defaultCollapse,u=l===void 0?!1:l,E=i.value,P=i.onChange,j=(0,K.useState)([]),H=(0,z.Z)(j,2),X=H[0],ee=H[1],se=(0,K.useState)(""),Se=(0,z.Z)(se,2),Re=Se[0],Be=Se[1],Ye=(0,K.useState)(),ht=(0,z.Z)(Ye,2),Tt=ht[0],Dt=ht[1],Kt=(0,K.useState)(),gn=(0,z.Z)(Kt,2),bn=gn[0],mn=gn[1];(0,K.useEffect)(function(){if(Array.isArray(E)){var sr=E.map(function(yr){return{id:(0,oc.Vj)(),sql:yr}});ee(sr)}},[E]);var kn=function(yr){var jr=yr.map(function(zr){return zr.sql});P==null||P(jr)};return(0,de.jsxs)("div",{className:ku().commonEditList,children:[(0,de.jsx)(Jl,{activeKey:Tt,defaultActiveKey:u?["editor"]:void 0,onChange:function(){},ghost:!0,children:(0,de.jsx)(Zc,{header:a,extra:Tt?(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){if(!bn&&!Re){Dt(void 0);return}if(bn){var yr=(0,$e.Z)(X).map(function(zr){return zr.id===bn.id?(0,Ie.Z)((0,Ie.Z)({},zr),{},{sql:Re}):zr});ee(yr),kn(yr)}else{var jr=[].concat((0,$e.Z)(X),[{id:(0,oc.Vj)(),sql:Re}]);ee(jr),kn(jr)}Dt(void 0)},children:"\u786E\u8BA4"},"saveBtn"):(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){mn(void 0),Be(""),Dt("editor")},children:"\u65B0\u589E"},"createBtn"),showArrow:!1,children:(0,de.jsx)("div",{children:(0,de.jsx)(xu.Z,{value:Re,height:"150px",onChange:function(yr){Be(yr)}})})},"editor")}),(0,de.jsx)(Ys,{itemLayout:"horizontal",dataSource:X||[],renderItem:function(yr){return(0,de.jsx)(Ys.Item,{actions:[(0,de.jsx)("a",{onClick:function(){Be(yr.sql),mn(yr),Dt("editor")},children:"\u7F16\u8F91"},"list-loadmore-edit"),(0,de.jsx)("a",{onClick:function(){var zr=(0,$e.Z)(X).filter(function(va){var za=va.id;return yr.id!==za});kn(zr),ee(zr)},children:"\u5220\u9664"},"list-loadmore-more")],children:(0,de.jsx)(Ys.Item.Meta,{title:yr.sql})})}})]})},Fc=Zu,Hc=at.Z.Item,Vu=function(i,a){var l=i.initialValues,u=at.Z.useForm(),E=(0,z.Z)(u,1),P=E[0],j=["blackList","whiteList"],H=function(){var X=(0,G.Z)((0,L.Z)().mark(function ee(){var se,Se;return(0,L.Z)().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.next=2,P.validateFields();case 2:return se=Be.sent,Se=Object.keys(se).reduce(function(Ye,ht){var Tt=se[ht];return(0,Ln.isString)(Tt)&&j.includes(ht)?Ye[ht]=Tt.split(","):Ye[ht]=Tt,Ye},{}),Be.abrupt("return",(0,Ie.Z)({},Se));case 5:case"end":return Be.stop()}},ee)}));return function(){return X.apply(this,arguments)}}();return(0,K.useEffect)(function(){if(P.resetFields(),!!l){var X=Object.keys(l).reduce(function(ee,se){var Se=l[se];return Array.isArray(Se)&&j.includes(se)?ee[se]=Se.join(","):ee[se]=Se,ee},{});P.setFieldsValue((0,Ie.Z)({},X))}},[l]),(0,K.useImperativeHandle)(a,function(){return{getFormValidateFields:H}}),(0,de.jsx)(de.Fragment,{children:(0,de.jsxs)(at.Z,(0,Ie.Z)((0,Ie.Z)({},Xt.c),{},{form:P,layout:"vertical",className:St().form,children:[(0,de.jsx)(Hc,{name:"blackList",label:"\u9ED1\u540D\u5355",children:(0,de.jsx)(De.Z,{placeholder:"\u591A\u4E2A\u7EF4\u5EA6\u503C\u7528\u82F1\u6587\u9017\u53F7\u9694\u5F00"})}),(0,de.jsx)(Hc,{name:"whiteList",label:"\u767D\u540D\u5355",children:(0,de.jsx)(De.Z,{placeholder:"\u591A\u4E2A\u7EF4\u5EA6\u503C\u7528\u82F1\u6587\u9017\u53F7\u9694\u5F00"})}),(0,de.jsx)(Hc,{name:"ruleList",children:(0,de.jsx)(Fc,{title:"\u8FC7\u6EE4\u89C4\u5219"})})]}))})},ws=(0,K.forwardRef)(Vu),fc=function(i){var a=i.initialValues,l=i.visible,u=i.onCancel,E=i.onSubmit,P=(0,K.useRef)(),j=function(){var X=(0,G.Z)((0,L.Z)().mark(function ee(){var se;return(0,L.Z)().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.next=2,P.current.getFormValidateFields();case 2:se=Re.sent,E==null||E(se);case 4:case"end":return Re.stop()}},ee)}));return function(){return X.apply(this,arguments)}}(),H=function(){return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Le.Z,{onClick:u,children:"\u53D6\u6D88"}),(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){j()},children:"\u5B8C\u6210"})]})};return(0,de.jsx)(de.Fragment,{children:(0,de.jsx)(wt.Z,{width:600,destroyOnClose:!0,title:"\u7EF4\u5EA6\u503C\u8BBE\u7F6E",maskClosable:!1,open:l,footer:H(),onCancel:u,children:(0,de.jsx)(ws,{initialValues:a,ref:P})})})},Tc=fc,jc=o(57119),lu=function(i){var a=i.title,l=i.tooltips;return(0,de.jsx)(de.Fragment,{children:(0,de.jsxs)(U.Z,{children:[(0,de.jsx)("span",{children:a}),(0,de.jsx)(fe.Z,{title:l,children:(0,de.jsx)(jc.Z,{})})]})})},hu=lu,of=["knowledgeInfosMap","onKnowledgeInfosMapChange"],uu=function(i){var a=i.knowledgeInfosMap,l=i.onKnowledgeInfosMapChange,u=(0,Je.Z)(i,of),E=(0,K.useState)(!1),P=(0,z.Z)(E,2),j=P[0],H=P[1],X=(0,K.useState)({}),ee=(0,z.Z)(X,2),se=ee[0],Se=ee[1],Re=(0,K.useState)(),Be=(0,z.Z)(Re,2),Ye=Be[0],ht=Be[1],Tt=function(bn,mn){var kn=bn.bizName,sr=bn.id,yr=(0,Ie.Z)({},a),jr=yr[kn];jr?yr[kn]=(0,Ie.Z)((0,Ie.Z)({},jr),mn):yr[kn]=(0,Ie.Z)({itemId:sr,bizName:kn},mn),l==null||l(yr)},Dt=[{dataIndex:"name",title:"\u540D\u79F0"},{dataIndex:"type",width:80,title:"\u7C7B\u578B",render:function(bn){return(0,de.jsx)(En,{type:bn})}},{dataIndex:"y",title:(0,de.jsx)(hu,{title:"\u7EF4\u5EA6\u503C\u53EF\u89C1",tooltips:"\u52FE\u9009\u53EF\u89C1\u540E\uFF0C\u7EF4\u5EA6\u503C\u5C06\u5728\u641C\u7D22\u65F6\u53EF\u4EE5\u88AB\u8054\u60F3\u51FA\u6765"}),width:120,render:function(bn,mn){var kn,sr=mn.type,yr=mn.bizName;return sr===Ct.Kr.DIMENSION?(0,de.jsx)(Pn.Z,{checked:a==null||(kn=a[yr])===null||kn===void 0?void 0:kn.searchEnable,onChange:function(zr){Tt(mn,{searchEnable:zr.target.checked})},onClick:function(zr){zr.stopPropagation()}}):(0,de.jsx)(de.Fragment,{})}},{title:"\u64CD\u4F5C",dataIndex:"x",render:function(bn,mn){var kn,sr=mn.type,yr=mn.bizName;return sr===Ct.Kr.DIMENSION?(0,de.jsx)(Le.Z,{style:{padding:0},type:"link",disabled:!(a!=null&&(kn=a[yr])!==null&&kn!==void 0&&kn.searchEnable),onClick:function(zr){var va;Se(mn),ht(a==null||(va=a[yr])===null||va===void 0?void 0:va.knowledgeAdvancedConfig),H(!0),zr.stopPropagation()},children:"\u53EF\u89C1\u7EF4\u5EA6\u503C\u8BBE\u7F6E"},"editable"):(0,de.jsx)(de.Fragment,{})}}],Kt=[{dataIndex:"name",title:"\u540D\u79F0"},{dataIndex:"type",title:"\u7C7B\u578B",render:function(bn){return(0,de.jsx)(En,{type:bn})}}];return a||(Dt=Kt),(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(nn,(0,Ie.Z)((0,Ie.Z)({},u),{},{children:function(bn){var mn=bn.direction,kn=bn.filteredItems,sr=bn.onItemSelectAll,yr=bn.onItemSelect,jr=bn.selectedKeys,zr=mn==="left"?Kt:Dt,va={onSelectAll:function(xi,Di){var Si=Di.map(function(ro){var hi=ro.key;return hi}),jo=xi?Gr()(Si,jr):Gr()(jr,Si);sr(jo,xi)},onSelect:function(xi,Di){var Si=xi.key;yr(Si,Di)},selectedRowKeys:jr};return(0,de.jsx)(Ot.Z,{rowSelection:va,columns:zr,dataSource:kn,size:"small",pagination:!1,scroll:{y:450},onRow:function(xi){var Di=xi.key;return{onClick:function(){yr(Di,!jr.includes(Di))}}}})}})),(0,de.jsx)(Tc,{visible:j,initialValues:Ye,onSubmit:function(bn){Tt(se,{knowledgeAdvancedConfig:bn}),H(!1)},onCancel:function(){H(!1)}})]})},zu=uu,cf=function(i){var a=i.knowledgeInfosMap,l=i.onKnowledgeInfosMapChange,u=i.sourceList,E=u===void 0?[]:u,P=i.targetList,j=P===void 0?[]:P,H=i.titles,X=i.transferProps,ee=X===void 0?{}:X,se=i.onChange,Se=(0,K.useState)([]),Re=(0,z.Z)(Se,2),Be=Re[0],Ye=Re[1],ht=(0,K.useState)(j),Tt=(0,z.Z)(ht,2),Dt=Tt[0],Kt=Tt[1];(0,K.useEffect)(function(){Ye(E.map(function(bn){var mn=bn.key,kn=bn.id,sr=bn.name,yr=bn.bizName,jr=bn.transType;return{key:mn,name:sr,bizName:yr,id:kn,type:jr}}))},[E]),(0,K.useEffect)(function(){Kt(j)},[j]);var gn=function(mn){Kt(mn),se==null||se(mn)};return(0,de.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,de.jsx)(zu,(0,Ie.Z)({knowledgeInfosMap:a,onKnowledgeInfosMapChange:l,dataSource:Be,showSearch:!0,titles:H||["\u4E0D\u53EF\u89C1\u7EF4\u5EA6","\u53EF\u89C1\u7EF4\u5EA6"],listStyle:{width:500,height:600},filterOption:function(mn,kn){var sr=kn.name;return!!sr.includes(mn)},targetKeys:Dt,onChange:gn},ee))})},bf=cf,Cu={blackIdListKey:"blackDimIdList",visibleIdListKey:"whiteDimIdList",modalTitle:"\u95EE\u7B54\u53EF\u89C1\u4FE1\u606F",titles:["\u4E0D\u53EF\u89C1\u7EF4\u5EA6/\u6307\u6807","\u53EF\u89C1\u7EF4\u5EA6/\u6307\u6807"]},rf=function(i){var a=i.domainId,l=i.visible,u=i.entityData,E=u===void 0?{}:u,P=i.chatConfigKey,j=i.settingSourceList,H=i.onCancel,X=i.onSubmit,ee=(0,K.useState)([]),se=(0,z.Z)(ee,2),Se=se[0],Re=se[1],Be=Cu,Ye=Bt(E),ht=(0,K.useState)({}),Tt=(0,z.Z)(ht,2),Dt=Tt[0],Kt=Tt[1],gn=(0,K.useState)("visibleSetting"),bn=(0,z.Z)(gn,2),mn=bn[0],kn=bn[1],sr=(0,K.useRef)(),yr=(0,K.useState)(),jr=(0,z.Z)(yr,2),zr=jr[0],va=jr[1];(0,K.useEffect)(function(){if(E!=null&&E.visibility&&Array.isArray(j)){var jo=E.visibility,ro=jo.whiteDimIdList,hi=jo.whiteMetricIdList,io=ro.map(function(Ji){return mt(Ct.Kr.DIMENSION,Ji)}),oo=hi.map(function(Ji){return mt(Ct.Kr.METRIC,Ji)});Re([].concat((0,$e.Z)(io),(0,$e.Z)(oo)))}if(E!=null&&E.globalKnowledgeConfig&&va(E.globalKnowledgeConfig),Array.isArray(E==null?void 0:E.knowledgeInfos)){var Ki=E.knowledgeInfos.reduce(function(Ji,Ao){var ks=Ao.bizName;return Ji[ks]=Ao,Ji},{});Kt(Ki)}},[E,j]);var za=function(){var jo=(0,G.Z)((0,L.Z)().mark(function ro(hi){var io,oo,Ki,Ji,Ao,ks,Lo,Is,Cl,il,Pl,lc,Mc,dp,zf,gv,Wf=arguments;return(0,L.Z)().wrap(function(kf){for(;;)switch(kf.prev=kf.next){case 0:return Ji=Wf.length>1&&Wf[1]!==void 0?Wf[1]:!1,Ao=hi.selectedKeyList,ks=hi.knowledgeInfosMap,kf.next=4,sr==null||(io=sr.current)===null||io===void 0||(oo=io.getFormValidateFields)===null||oo===void 0?void 0:oo.call(io);case 4:return Lo=kf.sent,Is=E.globalKnowledgeConfig,Lo&&(Is=Lo),Cl=E.id,il=dt.vK,Cl&&(il=dt.qh),Pl=j.reduce(function(af,lf){var gu=lf.id,Vc=lf.transType;return Ao.includes(mt(Vc,gu))||(Vc===Ct.Kr.DIMENSION&&af.blackDimIdList.push(gu),Vc===Ct.Kr.METRIC&&af.blackMetricIdList.push(gu)),af},{blackDimIdList:[],blackMetricIdList:[]}),lc=Object.keys(ks).reduce(function(af,lf){var gu=ks[lf];return gu.searchEnable&&af.push(gu),af},[]),Mc=(0,Ie.Z)((0,Ie.Z)({},Ye),{},{visibility:Pl,knowledgeInfos:lc},Is?{globalKnowledgeConfig:Is}:{}),kf.next=15,il((Ki={},(0,Ue.Z)(Ki,P,Mc),(0,Ue.Z)(Ki,"id",Cl),Ki));case 15:if(dp=kf.sent,zf=dp.code,gv=dp.msg,zf!==200){kf.next=22;break}return Ji||$.default.success("\u4FDD\u5B58\u6210\u529F"),X==null||X({isSilenceSubmit:Ji}),kf.abrupt("return");case 22:$.default.error(gv);case 23:case"end":return kf.stop()}},ro)}));return function(hi){return jo.apply(this,arguments)}}(),xi=function(ro){Re(ro)},Di=function(){return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Le.Z,{onClick:H,children:"\u53D6\u6D88"}),(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){za({selectedKeyList:Se,knowledgeInfosMap:Dt})},children:"\u5B8C\u6210"})]})},Si=[{label:"\u53EF\u89C1\u8BBE\u7F6E",key:"visibleSetting",children:(0,de.jsx)(bf,{onKnowledgeInfosMapChange:function(ro){Kt(ro),za({selectedKeyList:Se,knowledgeInfosMap:ro},!0)},knowledgeInfosMap:Dt,titles:Be.titles,sourceList:j,targetList:Se,onChange:function(ro){xi(ro),za({selectedKeyList:ro,knowledgeInfosMap:Dt},!0)}})},{label:"\u5168\u5C40\u7EF4\u5EA6\u503C\u8FC7\u6EE4",key:"dimensionValueFilter",children:(0,de.jsx)("div",{style:{margin:"0 auto",width:"975px"},children:(0,de.jsx)(ws,{initialValues:zr,ref:sr})})}];return(0,de.jsx)(de.Fragment,{children:(0,de.jsx)(wt.Z,{width:1200,destroyOnClose:!0,title:Be.modalTitle,maskClosable:!1,open:l,footer:mn==="visibleSetting"?!1:Di(),onCancel:H,children:(0,de.jsx)(ut.Z,{items:Si,defaultActiveKey:"visibleSetting",onChange:function(ro){kn(ro)}})})})},Bu=rf,Tf=at.Z.Item,ed=function(i){var a=i.domainId,l=i.metricList,u=i.dimensionList,E=i.entityData,P=i.chatConfigKey,j=i.onSubmit,H=(0,K.useState)(!1),X=(0,z.Z)(H,2),ee=X[0],se=X[1];return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(at.Z,(0,Ie.Z)((0,Ie.Z)({},Xt.c),{},{children:(0,de.jsx)(Tf,{label:(0,de.jsx)(vt.Z,{title:"\u53EF\u89C1\u7EF4\u5EA6/\u6307\u6807",subTitle:"\u8BBE\u7F6E\u53EF\u89C1\u540E\uFF0C\u5C06\u5141\u8BB8\u5728\u95EE\u7B54\u4E2D\u88AB\u4F7F\u7528"}),children:(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){se(!0)},children:"\u8BBE \u7F6E"})})})),ee&&(0,de.jsx)(Bu,{domainId:a,entityData:E,chatConfigKey:P,settingSourceList:[].concat((0,$e.Z)(u.map(function(Se){var Re=Ct.Kr.DIMENSION,Be=Se.id;return(0,Ie.Z)((0,Ie.Z)({},Se),{},{transType:Re,key:mt(Re,Be)})})),(0,$e.Z)(l.map(function(Se){var Re=Ct.Kr.METRIC,Be=Se.id;return(0,Ie.Z)((0,Ie.Z)({},Se),{},{transType:Re,key:mt(Re,Be)})}))),visible:ee,onCancel:function(){se(!1)},onSubmit:function(Re){j==null||j(),Re!=null&&Re.isSilenceSubmit||se(!1)}})]})},Fd=(0,K.forwardRef)(ed),Pd=function(i){var a=i.domainManger,l=i.dispatch,u=i.chatConfigType,E=u===void 0?Ct.fs.DETAIL:u,P=a.selectDomainId,j=a.selectModelId,H=a.dimensionList,X=a.metricList,ee=(0,K.useState)(),se=(0,z.Z)(ee,2),Se=se[0],Re=se[1],Be=function(){var ht=(0,G.Z)((0,L.Z)().mark(function Tt(){var Dt,Kt,gn,bn,mn,kn,sr,yr;return(0,L.Z)().wrap(function(zr){for(;;)switch(zr.prev=zr.next){case 0:return zr.next=2,(0,dt.mm)({modelId:j});case 2:if(Dt=zr.sent,Kt=Dt.code,gn=Dt.data,Kt!==200){zr.next=10;break}return bn=gn.chatAggRichConfig,mn=gn.chatDetailRichConfig,kn=gn.id,sr=gn.domainId,yr=gn.modelId,E===Ct.fs.DETAIL&&Re((0,Ie.Z)((0,Ie.Z)({},mn),{},{id:kn,domainId:sr,modelId:yr})),E===Ct.fs.AGG&&Re((0,Ie.Z)((0,Ie.Z)({},bn),{},{id:kn,domainId:sr,modelId:yr})),zr.abrupt("return");case 10:$.default.error("\u83B7\u53D6\u95EE\u7B54\u8BBE\u7F6E\u4FE1\u606F\u5931\u8D25");case 11:case"end":return zr.stop()}},Tt)}));return function(){return ht.apply(this,arguments)}}(),Ye=function(){var ht=(0,G.Z)((0,L.Z)().mark(function Tt(){return(0,L.Z)().wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:Be();case 1:case"end":return Kt.stop()}},Tt)}));return function(){return ht.apply(this,arguments)}}();return(0,K.useEffect)(function(){!j||Ye()},[j]),(0,de.jsx)("div",{style:{width:800,margin:"0 auto"},children:(0,de.jsxs)(U.Z,{direction:"vertical",style:{width:"100%"},size:20,children:[(0,de.jsx)(We.ZP,{bordered:!0,title:"\u95EE\u7B54\u53EF\u89C1",children:(0,de.jsx)(Fd,{chatConfigKey:E===Ct.fs.DETAIL?"chatDetailConfig":"chatAggConfig",entityData:Se||{},domainId:Number(P),metricList:X,dimensionList:H,onSubmit:function(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Tt.from==="dimensionSearchVisible"&&l({type:"domainManger/queryDimensionList",payload:{domainId:P}}),Be()}})}),(0,de.jsx)(We.ZP,{bordered:!0,title:"\u9ED8\u8BA4\u8BBE\u7F6E",children:(0,de.jsx)(_r,{domainId:Number(P),entityData:Se||{},chatConfigType:E,chatConfigKey:E===Ct.fs.DETAIL?"chatDetailConfig":"chatAggConfig",dimensionList:H.filter(function(ht){var Tt,Dt=Se==null||(Tt=Se.visibility)===null||Tt===void 0?void 0:Tt.blackDimIdList;return Array.isArray(Dt)?!Dt.includes(ht.id):!1}),metricList:X.filter(function(ht){var Tt,Dt=Se==null||(Tt=Se.visibility)===null||Tt===void 0?void 0:Tt.blackMetricIdList;return Array.isArray(Dt)?!Dt.includes(ht.id):!1}),onSubmit:function(){Be()}})})]})})},Nc=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(Pd),eu=Jl.Panel,If=De.Z.TextArea,$f=function(i){var a=i.title,l=i.defaultCollapse,u=l===void 0?!1:l,E=i.value,P=i.onChange,j=(0,K.useState)([]),H=(0,z.Z)(j,2),X=H[0],ee=H[1],se=(0,K.useState)(""),Se=(0,z.Z)(se,2),Re=Se[0],Be=Se[1],Ye=(0,K.useState)(),ht=(0,z.Z)(Ye,2),Tt=ht[0],Dt=ht[1],Kt=(0,K.useState)(),gn=(0,z.Z)(Kt,2),bn=gn[0],mn=gn[1];(0,K.useEffect)(function(){if(Array.isArray(E)){var sr=E.map(function(yr){return{id:(0,oc.Vj)(),sql:yr}});ee(sr)}},[E]);var kn=function(yr){var jr=yr.map(function(zr){return zr.sql});P==null||P(jr)};return(0,de.jsxs)("div",{className:ku().commonEditList,children:[(0,de.jsx)(Jl,{activeKey:Tt,defaultActiveKey:u?["editor"]:void 0,onChange:function(){},ghost:!0,children:(0,de.jsx)(eu,{header:a,extra:Tt?(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){if(!bn&&!Re){Dt(void 0);return}if(bn){var yr=(0,$e.Z)(X).map(function(zr){return zr.id===bn.id?(0,Ie.Z)((0,Ie.Z)({},zr),{},{sql:Re}):zr});ee(yr),kn(yr)}else{var jr=[].concat((0,$e.Z)(X),[{id:(0,oc.Vj)(),sql:Re}]);ee(jr),kn(jr)}Dt(void 0)},children:"\u786E\u8BA4"},"saveBtn"):(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){mn(void 0),Be(""),Dt("editor")},children:"\u65B0\u589E"},"createBtn"),showArrow:!1,children:(0,de.jsx)("div",{children:(0,de.jsx)(If,{placeholder:"\u8BF7\u8F93\u5165\u63A8\u8350\u95EE\u9898",value:Re,style:{height:150},minLength:5,onChange:function(yr){Be(yr.target.value)}})})},"editor")}),(0,de.jsx)(Ys,{itemLayout:"horizontal",dataSource:X||[],renderItem:function(yr){return(0,de.jsx)(Ys.Item,{actions:[(0,de.jsx)("a",{onClick:function(){Be(yr.sql),mn(yr),Dt("editor")},children:"\u7F16\u8F91"},"list-loadmore-edit"),(0,de.jsx)("a",{onClick:function(){var zr=(0,$e.Z)(X).filter(function(va){var za=va.id;return yr.id!==za});kn(zr),ee(zr)},children:"\u5220\u9664"},"list-loadmore-more")],children:(0,de.jsx)(Ys.Item.Meta,{title:yr.sql})})}})]})},Te=$f,_t=function(i){var a=i.domainManger,l=a.selectModelId,u=(0,K.useState)([]),E=(0,z.Z)(u,2),P=E[0],j=E[1],H=(0,K.useState)(0),X=(0,z.Z)(H,2),ee=X[0],se=X[1],Se=function(){var Ye=(0,G.Z)((0,L.Z)().mark(function ht(){var Tt,Dt,Kt,gn;return(0,L.Z)().wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return mn.next=2,(0,dt.qe)({modelId:l});case 2:if(Tt=mn.sent,Dt=Tt.code,Kt=Tt.data,Dt!==200){mn.next=9;break}return gn=(Kt==null?void 0:Kt[0])||{},Array.isArray(gn.recommendedQuestions)?(j(gn.recommendedQuestions.map(function(kn){return kn.question})),se(gn.id||0)):(j([]),se(0)),mn.abrupt("return");case 9:$.default.error("\u83B7\u53D6\u95EE\u7B54\u8BBE\u7F6E\u4FE1\u606F\u5931\u8D25");case 10:case"end":return mn.stop()}},ht)}));return function(){return Ye.apply(this,arguments)}}(),Re=function(){var Ye=(0,G.Z)((0,L.Z)().mark(function ht(Tt){var Dt,Kt,gn,bn;return(0,L.Z)().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:return Dt=dt.vK,ee&&(Dt=dt.qh),kn.next=4,Dt({recommendedQuestions:Tt.map(function(sr){return{question:sr}}),id:ee,modelId:l});case 4:if(Kt=kn.sent,gn=Kt.code,bn=Kt.msg,gn!==200){kn.next=9;break}return kn.abrupt("return");case 9:$.default.error(bn);case 10:case"end":return kn.stop()}},ht)}));return function(Tt){return Ye.apply(this,arguments)}}(),Be=function(){var Ye=(0,G.Z)((0,L.Z)().mark(function ht(){return(0,L.Z)().wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:Se();case 1:case"end":return Dt.stop()}},ht)}));return function(){return Ye.apply(this,arguments)}}();return(0,K.useEffect)(function(){!l||Be()},[l]),(0,de.jsx)("div",{style:{width:800,margin:"0 auto"},children:(0,de.jsx)(We.ZP,{bordered:!0,title:"\u95EE\u9898\u63A8\u8350\u5217\u8868",children:(0,de.jsx)(Te,{value:P,onChange:function(ht){Re(ht),j(ht)}})})})},Vn=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(_t);function br(C){var i=K.useRef();i.current=C;var a=K.useCallback(function(){for(var l,u=arguments.length,E=new Array(u),P=0;P<u;P++)E[P]=arguments[P];return(l=i.current)===null||l===void 0?void 0:l.call.apply(l,[i].concat(E))},[]);return a}function tn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Pt=tn()?K.useLayoutEffect:K.useEffect,on=function(i,a){var l=K.useRef(!0);Pt(function(){return i(l.current)},a),Pt(function(){return l.current=!1,function(){l.current=!0}},[])},_n=function(i,a){on(function(l){if(!l)return i()},a)},ir=null;function xr(C){var i=K.useRef(!1),a=K.useState(C),l=(0,fa.Z)(a,2),u=l[0],E=l[1];K.useEffect(function(){return i.current=!1,function(){i.current=!0}},[]);function P(j,H){H&&i.current||E(j)}return[u,P]}function aa(C){return C!==void 0}function oi(C,i){var a=i||{},l=a.defaultValue,u=a.value,E=a.onChange,P=a.postState,j=xr(function(){return aa(u)?u:aa(l)?typeof l=="function"?l():l:typeof C=="function"?C():C}),H=(0,fa.Z)(j,2),X=H[0],ee=H[1],se=u!==void 0?u:X,Se=P?P(se):se,Re=br(E),Be=xr([se]),Ye=(0,fa.Z)(Be,2),ht=Ye[0],Tt=Ye[1];_n(function(){var Kt=ht[0];X!==Kt&&Re(X,Kt)},[ht]),_n(function(){aa(u)||ee(u)},[u]);var Dt=br(function(Kt,gn){ee(Kt,gn),Tt([se],gn)});return[Se,Dt]}var ni=o(23799),yi=o(23040);function Zo(C,i,a){var l=React.useRef({});return(!("value"in l.current)||a(l.current.condition,i))&&(l.current.value=C(),l.current.condition=i),l.current.value}var is={},mo=[],Ml=function(i){mo.push(i)};function yc(C,i){if(!1)var a}function oa(C,i){if(!1)var a}function sl(){is={}}function fl(C,i,a){!i&&!is[a]&&(C(!1,a),is[a]=!0)}function bc(C,i){fl(yc,C,i)}function Rf(C,i){fl(oa,C,i)}bc.preMessage=Ml,bc.resetWarned=sl,bc.noteOnce=Rf;var Ms=null;function ff(C,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,l=new Set;function u(E,P){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,H=l.has(E);if(warning(!H,"Warning: There may be circular references"),H)return!1;if(E===P)return!0;if(a&&j>1)return!1;l.add(E);var X=j+1;if(Array.isArray(E)){if(!Array.isArray(P)||E.length!==P.length)return!1;for(var ee=0;ee<E.length;ee++)if(!u(E[ee],P[ee],X))return!1;return!0}if(E&&P&&_typeof(E)==="object"&&_typeof(P)==="object"){var se=Object.keys(E);return se.length!==Object.keys(P).length?!1:se.every(function(Se){return u(E[Se],P[Se],X)})}return!1}return u(C,i)}var Df=null,Ff="%",Kf=function(){function C(i){(0,Or.Z)(this,C),(0,$t.Z)(this,"instanceId",void 0),(0,$t.Z)(this,"cache",new Map),this.instanceId=i}return(0,vr.Z)(C,[{key:"get",value:function(a){return this.cache.get(a.join(Ff))||null}},{key:"update",value:function(a,l){var u=a.join(Ff),E=this.cache.get(u),P=l(E);P===null?this.cache.delete(u):this.cache.set(u,P)}}]),C}(),xf=Kf,Sc=null,Wu="data-token-hash",Du="data-css-hash",Gd="data-cache-path",gf="__cssinjs_instance__";function Vp(){var C=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var i=document.body.querySelectorAll("style[".concat(Du,"]"))||[],a=document.head.firstChild;Array.from(i).forEach(function(u){u[gf]=u[gf]||C,u[gf]===C&&document.head.insertBefore(u,a)});var l={};Array.from(document.querySelectorAll("style[".concat(Du,"]"))).forEach(function(u){var E=u.getAttribute(Du);if(l[E]){if(u[gf]===C){var P;(P=u.parentNode)===null||P===void 0||P.removeChild(u)}}else l[E]=!0})}return new xf(C)}var $c=K.createContext({hashPriority:"low",cache:Vp(),defaultCache:!0}),Yl=function(i){var a=i.children,l=_objectWithoutProperties(i,Sc),u=React.useContext($c),E=useMemo(function(){var P=_objectSpread({},u);Object.keys(l).forEach(function(H){var X=l[H];l[H]!==void 0&&(P[H]=X)});var j=l.cache;return P.cache=P.cache||Vp(),P.defaultCache=!j&&u.defaultCache,P},[u,l],function(P,j){return!isEqual(P[0],j[0],!0)||!isEqual(P[1],j[1],!0)});return React.createElement($c.Provider,{value:E},a)},Sp=$c;function tp(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function Rp(C,i){if(!C)return!1;if(C.contains)return C.contains(i);for(var a=i;a;){if(a===C)return!0;a=a.parentNode}return!1}var df="data-rc-order",uf="data-rc-priority",Af="rc-util-key",Wn=new Map;function ca(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=C.mark;return i?i.startsWith("data-")?i:"data-".concat(i):Af}function ra(C){if(C.attachTo)return C.attachTo;var i=document.querySelector("head");return i||document.body}function Na(C){return C==="queue"?"prependQueue":C?"prepend":"append"}function fi(C){return Array.from((Wn.get(C)||C).children).filter(function(i){return i.tagName==="STYLE"})}function so(C){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!tp())return null;var a=i.csp,l=i.prepend,u=i.priority,E=u===void 0?0:u,P=Na(l),j=P==="prependQueue",H=document.createElement("style");H.setAttribute(df,P),j&&E&&H.setAttribute(uf,"".concat(E)),a!=null&&a.nonce&&(H.nonce=a==null?void 0:a.nonce),H.innerHTML=C;var X=ra(i),ee=X.firstChild;if(l){if(j){var se=fi(X).filter(function(Se){if(!["prepend","prependQueue"].includes(Se.getAttribute(df)))return!1;var Re=Number(Se.getAttribute(uf)||0);return E>=Re});if(se.length)return X.insertBefore(H,se[se.length-1].nextSibling),H}X.insertBefore(H,ee)}else X.appendChild(H);return H}function vo(C){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=ra(i);return fi(a).find(function(l){return l.getAttribute(ca(i))===C})}function Ro(C){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=vo(C,i);if(a){var l=ra(i);l.removeChild(a)}}function So(C,i){var a=Wn.get(C);if(!a||!Rp(document,a)){var l=so("",i),u=l.parentNode;Wn.set(C,u),C.removeChild(l)}}function el(){Wn.clear()}function ul(C,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=ra(a);So(l,a);var u=vo(i,a);if(u){var E,P;if((E=a.csp)!==null&&E!==void 0&&E.nonce&&u.nonce!==((P=a.csp)===null||P===void 0?void 0:P.nonce)){var j;u.nonce=(j=a.csp)===null||j===void 0?void 0:j.nonce}return u.innerHTML!==C&&(u.innerHTML=C),u}var H=so(C,a);return H.setAttribute(ca(a),i),H}function Xo(C,i){if(C.length!==i.length)return!1;for(var a=0;a<C.length;a++)if(C[a]!==i[a])return!1;return!0}var lo=function(){function C(){(0,Or.Z)(this,C),(0,$t.Z)(this,"cache",void 0),(0,$t.Z)(this,"keys",void 0),(0,$t.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,vr.Z)(C,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(a){var l,u,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,P={map:this.cache};return a.forEach(function(j){if(!P)P=void 0;else{var H,X;P=(H=P)===null||H===void 0||(X=H.map)===null||X===void 0?void 0:X.get(j)}}),(l=P)!==null&&l!==void 0&&l.value&&E&&(P.value[1]=this.cacheCallTimes++),(u=P)===null||u===void 0?void 0:u.value}},{key:"get",value:function(a){var l;return(l=this.internalGet(a,!0))===null||l===void 0?void 0:l[0]}},{key:"has",value:function(a){return!!this.internalGet(a)}},{key:"set",value:function(a,l){var u=this;if(!this.has(a)){if(this.size()+1>C.MAX_CACHE_SIZE+C.MAX_CACHE_OFFSET){var E=this.keys.reduce(function(X,ee){var se=(0,fa.Z)(X,2),Se=se[1];return u.internalGet(ee)[1]<Se?[ee,u.internalGet(ee)[1]]:X},[this.keys[0],this.cacheCallTimes]),P=(0,fa.Z)(E,1),j=P[0];this.delete(j)}this.keys.push(a)}var H=this.cache;a.forEach(function(X,ee){if(ee===a.length-1)H.set(X,{value:[l,u.cacheCallTimes++]});else{var se=H.get(X);se?se.map||(se.map=new Map):H.set(X,{map:new Map}),H=H.get(X).map}})}},{key:"deleteByPath",value:function(a,l){var u=a.get(l[0]);if(l.length===1){var E;return u.map?a.set(l[0],{map:u.map}):a.delete(l[0]),(E=u.value)===null||E===void 0?void 0:E[0]}var P=this.deleteByPath(u.map,l.slice(1));return(!u.map||u.map.size===0)&&!u.value&&a.delete(l[0]),P}},{key:"delete",value:function(a){if(this.has(a))return this.keys=this.keys.filter(function(l){return!Xo(l,a)}),this.deleteByPath(this.cache,a)}}]),C}();(0,$t.Z)(lo,"MAX_CACHE_SIZE",20),(0,$t.Z)(lo,"MAX_CACHE_OFFSET",5);var Zs=0,Gs=function(){function C(i){(0,Or.Z)(this,C),(0,$t.Z)(this,"derivatives",void 0),(0,$t.Z)(this,"id",void 0),this.derivatives=Array.isArray(i)?i:[i],this.id=Zs,i.length===0&&yc(i.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Zs+=1}return(0,vr.Z)(C,[{key:"getDerivativeToken",value:function(a){return this.derivatives.reduce(function(l,u){return u(a,l)},void 0)}}]),C}(),$s=new lo;function Qn(C){var i=Array.isArray(C)?C:[C];return $s.has(i)||$s.set(i,new Gs(i)),$s.get(i)}var dr=new WeakMap;function Xr(C){var i=dr.get(C)||"";return i||(Object.keys(C).forEach(function(a){var l=C[a];i+=a,l instanceof Theme?i+=l.id:l&&_typeof(l)==="object"?i+=Xr(l):i+=l}),dr.set(C,i)),i}function la(C,i){return hash("".concat(i,"_").concat(Xr(C)))}var Ra="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),_i="_bAmBoO_";function ui(C,i,a){if(tp()){var l,u;ul(C,Ra);var E=document.createElement("div");E.style.position="fixed",E.style.left="0",E.style.top="0",i==null||i(E),document.body.appendChild(E);var P=a?a(E):(l=getComputedStyle(E).content)===null||l===void 0?void 0:l.includes(_i);return(u=E.parentNode)===null||u===void 0||u.removeChild(E),Ro(Ra),P}return!1}var ho=void 0;function Oi(){return ho===void 0&&(ho=ui("@layer ".concat(Ra," { .").concat(Ra,' { content: "').concat(_i,'"!important; } }'),function(C){C.className=Ra})),ho}var Fo=void 0;function as(){return Fo===void 0&&(Fo=ui(":where(.".concat(Ra,') { content: "').concat(_i,'"!important; }'),function(C){C.className=Ra})),Fo}var Fs=void 0;function Fr(){return Fs===void 0&&(Fs=ui(".".concat(Ra," { inset-block: 93px !important; }"),function(C){C.className=Ra},function(C){return getComputedStyle(C).bottom==="93px"})),Fs}var tl=tp()?K.useLayoutEffect:K.useEffect,Js=function(i,a){var l=K.useRef(!0);tl(function(){return i(l.current)},a),tl(function(){return l.current=!1,function(){l.current=!0}},[])},Us=function(i,a){Js(function(l){if(!l)return i()},a)},os=Js,El=(0,Jt.Z)({},re),Bs=El.useInsertionEffect,gc=function(i,a,l){K.useMemo(i,l),os(function(){return a(!0)},l)},kr=Bs?function(C,i,a){return Bs(function(){return C(),i()},a)}:gc,Sa=kr,Hi=(0,Jt.Z)({},re),Co=Hi.useInsertionEffect,Ds=function(i){var a=[],l=!1;function u(E){l||a.push(E)}return K.useEffect(function(){return l=!1,function(){l=!0,a.length&&a.forEach(function(E){return E()})}},i),u},Dl=function(){return function(i){i()}},Xc=typeof Co!="undefined"?Ds:Dl,Fl=Xc;function Eu(){return!1}var cc=!1;function Hu(){return cc}var dc=Eu;if(!1)var iu,Gc;function Jc(C,i,a,l,u){var E=K.useContext(Sp),P=E.cache,j=[C].concat((0,wn.Z)(i)),H=j.join("_"),X=Fl([H]),ee=dc(),se=function(Ye){P.update(j,function(ht){var Tt=ht||[],Dt=(0,fa.Z)(Tt,2),Kt=Dt[0],gn=Kt===void 0?0:Kt,bn=Dt[1],mn=bn,kn=mn||a(),sr=[gn,kn];return Ye?Ye(sr):sr})};K.useMemo(function(){se()},[H]);var Se=P.get(j),Re=Se[1];return Sa(function(){u==null||u(Re)},function(Be){return se(function(Ye){var ht=(0,fa.Z)(Ye,2),Tt=ht[0],Dt=ht[1];return Be&&Tt===0&&(u==null||u(Re)),[Tt+1,Dt]}),function(){P.update(j,function(Ye){var ht=Ye||[],Tt=(0,fa.Z)(ht,2),Dt=Tt[0],Kt=Dt===void 0?0:Dt,gn=Tt[1],bn=Kt-1;return bn===0?(X(function(){return l==null?void 0:l(gn,!1)}),null):[Kt-1,gn]})}},[H]),Re}var pf={},hn=null,dn=new Map;function tr(C){dn.set(C,(dn.get(C)||0)+1)}function Mn(C,i){if(typeof document!="undefined"){var a=document.querySelectorAll("style[".concat(ATTR_TOKEN,'="').concat(C,'"]'));a.forEach(function(l){if(l[CSS_IN_JS_INSTANCE]===i){var u;(u=l.parentNode)===null||u===void 0||u.removeChild(l)}})}}var Lr=0;function sa(C,i){dn.set(C,(dn.get(C)||0)-1);var a=Array.from(dn.keys()),l=a.filter(function(u){var E=dn.get(u)||0;return E<=0});a.length-l.length>Lr&&l.forEach(function(u){Mn(u,i),dn.delete(u)})}var Ma=function(i,a,l,u){var E=l.getDerivativeToken(i),P=_objectSpread(_objectSpread({},E),a);return u&&(P=u(P)),P};function Ia(C,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=useContext(StyleContext),u=l.cache.instanceId,E=a.salt,P=E===void 0?"":E,j=a.override,H=j===void 0?pf:j,X=a.formatToken,ee=a.getComputedToken,se=React.useMemo(function(){return Object.assign.apply(Object,[{}].concat(_toConsumableArray(i)))},[i]),Se=React.useMemo(function(){return flattenToken(se)},[se]),Re=React.useMemo(function(){return flattenToken(H)},[H]),Be=useGlobalCache("token",[P,C.id,Se,Re],function(){var Ye=ee?ee(se,H,C):Ma(se,H,C,X),ht=token2key(Ye,P);Ye._tokenKey=ht,tr(ht);var Tt="".concat(hn,"-").concat(hash(ht));return Ye._hashId=Tt,[Ye,Tt]},function(Ye){sa(Ye[0]._tokenKey,u)});return Be}var Ja=o(9254),pi=o(25008),fo="-ms-",us="-moz-",xo="-webkit-",Qo="comm",gs="rule",ds="decl",nl="@page",nc="@media",Kl="@import",mu="@charset",xc="@viewport",Ll="@supports",wc="@document",Xu="@namespace",_u="@keyframes",wu="@font-face",fu="@counter-style",Kc="@font-feature-values",td="@layer",Ic=Math.abs,tu=String.fromCharCode,jf=Object.assign;function Tu(C,i){return np(C,0)^45?(((i<<2^np(C,0))<<2^np(C,1))<<2^np(C,2))<<2^np(C,3):0}function Ed(C){return C.trim()}function vd(C,i){return(C=i.exec(C))?C[0]:C}function Gu(C,i,a){return C.replace(i,a)}function Op(C,i){return C.indexOf(i)}function np(C,i){return C.charCodeAt(i)|0}function $d(C,i,a){return C.slice(i,a)}function hd(C){return C.length}function Ip(C){return C.length}function dd(C,i){return i.push(C),C}function cr(C,i){return C.map(i).join("")}function un(C,i){return C.filter(function(a){return!vd(a,i)})}function Jn(C,i){for(var a="",l=0;l<C.length;l++)a+=i(C[l],l,C,i)||"";return a}function Xn(C,i,a,l){switch(C.type){case td:if(C.children.length)break;case Kl:case ds:return C.return=C.return||C.value;case Qo:return"";case _u:return C.return=C.value+"{"+Jn(C.children,l)+"}";case gs:if(!hd(C.value=C.props.join(",")))return""}return hd(a=Jn(C.children,l))?C.return=C.value+"{"+a+"}":""}var Vr=1,Zn=1,pa=0,Ha=0,gi=0,co="";function No(C,i,a,l,u,E,P,j){return{value:C,root:i,parent:a,type:l,props:u,children:E,line:Vr,column:Zn,length:P,return:"",siblings:j}}function Ko(C,i){return assign(No("",null,null,"",null,null,0,C.siblings),C,{length:-C.length},i)}function Jo(C){for(;C.root;)C=Ko(C.root,{children:[C]});append(C,C.siblings)}function gl(){return gi}function js(){return gi=Ha>0?np(co,--Ha):0,Zn--,gi===10&&(Zn=1,Vr--),gi}function Zl(){return gi=Ha<pa?np(co,Ha++):0,Zn++,gi===10&&(Zn=1,Vr++),gi}function ko(){return np(co,Ha)}function te(){return Ha}function Me(C,i){return $d(co,C,i)}function ft(C){switch(C){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Nt(C){return Vr=Zn=1,pa=hd(co=C),Ha=0,[]}function xn(C){return co="",C}function Yr(C){return Ed(Me(Ha-1,Lc(C===91?C+2:C===40?C+1:C)))}function qa(C){return xn(Qs(Nt(C)))}function Es(C){for(;(gi=ko())&&gi<33;)Zl();return ft(C)>2||ft(gi)>3?"":" "}function Qs(C){for(;Zl();)switch(ft(gi)){case 0:append(Yf(Ha-1),C);break;case 2:append(Yr(gi),C);break;default:append(from(gi),C)}return C}function Hl(C,i){for(;--i&&Zl()&&!(gi<48||gi>102||gi>57&&gi<65||gi>70&&gi<97););return Me(C,te()+(i<6&&ko()==32&&Zl()==32))}function Lc(C){for(;Zl();)switch(gi){case C:return Ha;case 34:case 39:C!==34&&C!==39&&Lc(gi);break;case 40:C===41&&Lc(C);break;case 92:Zl();break}return Ha}function Pu(C,i){for(;Zl()&&C+gi!==47+10;)if(C+gi===42+42&&ko()===47)break;return"/*"+Me(i,Ha-1)+"*"+tu(C===47?C:Zl())}function Yf(C){for(;!ft(ko());)Zl();return Me(C,Ha)}function yv(C){return xn(Cp("",null,null,null,[""],C=Nt(C),0,[0],C))}function Cp(C,i,a,l,u,E,P,j,H){for(var X=0,ee=0,se=P,Se=0,Re=0,Be=0,Ye=1,ht=1,Tt=1,Dt=0,Kt="",gn=u,bn=E,mn=l,kn=Kt;ht;)switch(Be=Dt,Dt=Zl()){case 40:if(Be!=108&&np(kn,se-1)==58){Op(kn+=Gu(Yr(Dt),"&","&\f"),"&\f")!=-1&&(Tt=-1);break}case 34:case 39:case 91:kn+=Yr(Dt);break;case 9:case 10:case 13:case 32:kn+=Es(Be);break;case 92:kn+=Hl(te()-1,7);continue;case 47:switch(ko()){case 42:case 47:dd(Nv(Pu(Zl(),te()),i,a,H),H);break;default:kn+="/"}break;case 123*Ye:j[X++]=hd(kn)*Tt;case 125*Ye:case 59:case 0:switch(Dt){case 0:case 125:ht=0;case 59+ee:Tt==-1&&(kn=Gu(kn,/\f/g,"")),Re>0&&hd(kn)-se&&dd(Re>32?Pv(kn+";",l,a,se-1,H):Pv(Gu(kn," ","")+";",l,a,se-2,H),H);break;case 59:kn+=";";default:if(dd(mn=kv(kn,i,a,X,ee,u,j,Kt,gn=[],bn=[],se,E),E),Dt===123)if(ee===0)Cp(kn,i,mn,mn,gn,E,se,j,bn);else switch(Se===99&&np(kn,3)===110?100:Se){case 100:case 108:case 109:case 115:Cp(C,mn,mn,l&&dd(kv(C,mn,mn,0,0,u,j,Kt,u,gn=[],se,bn),bn),u,bn,se,j,l?gn:bn);break;default:Cp(kn,mn,mn,mn,[""],bn,0,j,bn)}}X=ee=Re=0,Ye=Tt=1,Kt=kn="",se=P;break;case 58:se=1+hd(kn),Re=Be;default:if(Ye<1){if(Dt==123)--Ye;else if(Dt==125&&Ye++==0&&js()==125)continue}switch(kn+=tu(Dt),Dt*Ye){case 38:Tt=ee>0?1:(kn+="\f",-1);break;case 44:j[X++]=(hd(kn)-1)*Tt,Tt=1;break;case 64:ko()===45&&(kn+=Yr(Zl())),Se=ko(),ee=se=hd(Kt=kn+=Yf(te())),Dt++;break;case 45:Be===45&&hd(kn)==2&&(Ye=0)}}return E}function kv(C,i,a,l,u,E,P,j,H,X,ee,se){for(var Se=u-1,Re=u===0?E:[""],Be=Ip(Re),Ye=0,ht=0,Tt=0;Ye<l;++Ye)for(var Dt=0,Kt=$d(C,Se+1,Se=Ic(ht=P[Ye])),gn=C;Dt<Be;++Dt)(gn=Ed(ht>0?Re[Dt]+" "+Kt:Gu(Kt,/&\f/g,Re[Dt])))&&(H[Tt++]=gn);return No(C,i,a,u===0?gs:j,H,X,ee,se)}function Nv(C,i,a,l){return No(C,i,a,Qo,tu(gl()),$d(C,2,-2),0,l)}function Pv(C,i,a,l,u){return No(C,i,a,ds,$d(C,0,l),$d(C,l+1,-1),l,u)}function sp(C,i){var a=i.path,l=i.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(a?"Error in ".concat(a,": "):"").concat(C).concat(l.length?" Selector: ".concat(l.join(" | ")):""))}var Wp=function(i,a,l){if(i==="content"){var u=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,E=["normal","none","initial","inherit","unset"];(typeof a!="string"||E.indexOf(a)===-1&&!u.test(a)&&(a.charAt(0)!==a.charAt(a.length-1)||a.charAt(0)!=='"'&&a.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(a,"\"'`."),l)}},$h=null,Hf=function(i,a,l){i==="animation"&&l.hashId&&a!=="none"&&lintWarning("You seem to be using hashed animation '".concat(a,"', in which case 'animationName' with Keyframe as value is recommended."),l)},Qc=null;function bp(C){var i,a=((i=C.match(/:not\(([^)]*)\)/))===null||i===void 0?void 0:i[1])||"",l=a.split(/(\[[^[]*])|(?=[.#])/).filter(function(u){return u});return l.length>1}function cv(C){return C.parentSelectors.reduce(function(i,a){return i?a.includes("&")?a.replace(/&/g,i):"".concat(i," ").concat(a):a},"")}var nh=function(i,a,l){var u=cv(l),E=u.match(/:not\([^)]*\)/g)||[];E.length>0&&E.some(bp)&&lintWarning("Concat ':not' selector not support in legacy browsers.",l)},Kv=null,am=function(i,a,l){switch(i){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":lintWarning("You seem to be using non-logical property '".concat(i,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),l);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof a=="string"){var u=a.split(" ").map(function(j){return j.trim()});u.length===4&&u[1]!==u[3]&&lintWarning("You seem to be using '".concat(i,"' property with different left ").concat(i," and right ").concat(i,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),l)}return;case"clear":case"textAlign":(a==="left"||a==="right")&&lintWarning("You seem to be using non-logical value '".concat(a,"' of ").concat(i,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),l);return;case"borderRadius":if(typeof a=="string"){var E=a.split("/").map(function(j){return j.trim()}),P=E.reduce(function(j,H){if(j)return j;var X=H.split(" ").map(function(ee){return ee.trim()});return X.length>=2&&X[0]!==X[1]||X.length===3&&X[1]!==X[2]||X.length===4&&X[2]!==X[3]?!0:j},!1);P&&lintWarning("You seem to be using non-logical value '".concat(a,"' of ").concat(i,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),l)}return;default:}},Nh=null,Lp=function(i,a,l){l.parentSelectors.some(function(u){var E=u.split(",");return E.some(function(P){return P.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",l)},sh=null,Lh="data-ant-cssinjs-cache-path",mh="_FILE_STYLE__";function fm(C){return Object.keys(C).map(function(i){var a=C[i];return"".concat(i,":").concat(a)}).join(";")}var rh,Fp=!0;function gh(C){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;rh=C,Fp=i}function Am(){if(!rh&&(rh={},tp())){var C=document.createElement("div");C.className=Lh,C.style.position="fixed",C.style.visibility="hidden",C.style.top="-9999px",document.body.appendChild(C);var i=getComputedStyle(C).content||"";i=i.replace(/^"/,"").replace(/"$/,""),i.split(";").forEach(function(u){var E=u.split(":"),P=(0,fa.Z)(E,2),j=P[0],H=P[1];rh[j]=H});var a=document.querySelector("style[".concat(Lh,"]"));if(a){var l;Fp=!1,(l=a.parentNode)===null||l===void 0||l.removeChild(a)}document.body.removeChild(C)}}function rc(C){return Am(),!!rh[C]}function wl(C){var i=rh[C],a=null;if(i&&tp())if(Fp)a=mh;else{var l=document.querySelector("style[".concat(Du,'="').concat(rh[C],'"]'));l?a=l.innerHTML:delete rh[C]}return[a,i]}var Sl=tp(),Ac="_skip_check_",Ju="_multi_value_";function Bc(C){var i=Jn(yv(C),Xn);return i.replace(/\{%%%\:[^;];}/g,";")}function $u(C){return(0,ta.Z)(C)==="object"&&C&&(Ac in C||Ju in C)}function Nf(C,i,a){if(!i)return C;var l=".".concat(i),u=a==="low"?":where(".concat(l,")"):l,E=C.split(",").map(function(P){var j,H=P.trim().split(/\s+/),X=H[0]||"",ee=((j=X.match(/^\w+/))===null||j===void 0?void 0:j[0])||"";return X="".concat(ee).concat(u).concat(X.slice(ee.length)),[X].concat((0,wn.Z)(H.slice(1))).join(" ")});return E.join(",")}var Ou=function C(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},u=l.root,E=l.injectHash,P=l.parentSelectors,j=a.hashId,H=a.layer,X=a.path,ee=a.hashPriority,se=a.transformers,Se=se===void 0?[]:se,Re=a.linters,Be=Re===void 0?[]:Re,Ye="",ht={};function Tt(mn){var kn=mn.getName(j);if(!ht[kn]){var sr=C(mn.style,a,{root:!1,parentSelectors:P}),yr=(0,fa.Z)(sr,1),jr=yr[0];ht[kn]="@keyframes ".concat(mn.getName(j)).concat(jr)}}function Dt(mn){var kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return mn.forEach(function(sr){Array.isArray(sr)?Dt(sr,kn):sr&&kn.push(sr)}),kn}var Kt=Dt(Array.isArray(i)?i:[i]);if(Kt.forEach(function(mn){var kn=typeof mn=="string"&&!u?{}:mn;if(typeof kn=="string")Ye+="".concat(kn,`
|
||
`);else if(kn._keyframe)Tt(kn);else{var sr=Se.reduce(function(yr,jr){var zr;return(jr==null||(zr=jr.visit)===null||zr===void 0?void 0:zr.call(jr,yr))||yr},kn);Object.keys(sr).forEach(function(yr){var jr=sr[yr];if((0,ta.Z)(jr)==="object"&&jr&&(yr!=="animationName"||!jr._keyframe)&&!$u(jr)){var zr=!1,va=yr.trim(),za=!1;(u||E)&&j?va.startsWith("@")?zr=!0:va=Nf(yr,j,ee):u&&!j&&(va==="&"||va==="")&&(va="",za=!0);var xi=C(jr,a,{root:za,injectHash:zr,parentSelectors:[].concat((0,wn.Z)(P),[va])}),Di=(0,fa.Z)(xi,2),Si=Di[0],jo=Di[1];ht=(0,Jt.Z)((0,Jt.Z)({},ht),jo),Ye+="".concat(va).concat(Si)}else{var ro=function(Ki,Ji){var Ao=Ki.replace(/[A-Z]/g,function(Lo){return"-".concat(Lo.toLowerCase())}),ks=Ji;!pi.Z[Ki]&&typeof ks=="number"&&ks!==0&&(ks="".concat(ks,"px")),Ki==="animationName"&&Ji!==null&&Ji!==void 0&&Ji._keyframe&&(Tt(Ji),ks=Ji.getName(j)),Ye+="".concat(Ao,":").concat(ks,";")},hi,io=(hi=jr==null?void 0:jr.value)!==null&&hi!==void 0?hi:jr;(0,ta.Z)(jr)==="object"&&jr!==null&&jr!==void 0&&jr[Ju]&&Array.isArray(io)?io.forEach(function(oo){ro(yr,oo)}):ro(yr,io)}})}}),!u)Ye="{".concat(Ye,"}");else if(H&&Oi()){var gn=H.split(","),bn=gn[gn.length-1].trim();Ye="@layer ".concat(bn," {").concat(Ye,"}"),gn.length>1&&(Ye="@layer ".concat(H,"{%%%:%}").concat(Ye))}return[Ye,ht]};function Lf(C,i){return(0,Ja.Z)("".concat(C.join("%")).concat(i))}function Mf(){return null}function Sd(C,i){var a=C.token,l=C.path,u=C.hashId,E=C.layer,P=C.nonce,j=C.clientOnly,H=C.order,X=H===void 0?0:H,ee=K.useContext(Sp),se=ee.autoClear,Se=ee.mock,Re=ee.defaultCache,Be=ee.hashPriority,Ye=ee.container,ht=ee.ssrInline,Tt=ee.transformers,Dt=ee.linters,Kt=ee.cache,gn=a._tokenKey,bn=[gn].concat((0,wn.Z)(l)),mn=Sl,kn=Jc("style",bn,function(){var va=bn.join("|");if(rc(va)){var za=wl(va),xi=(0,fa.Z)(za,2),Di=xi[0],Si=xi[1];if(Di)return[Di,gn,Si,{},j,X]}var jo=i(),ro=Ou(jo,{hashId:u,hashPriority:Be,layer:E,path:l.join("-"),transformers:Tt,linters:Dt}),hi=(0,fa.Z)(ro,2),io=hi[0],oo=hi[1],Ki=Bc(io),Ji=Lf(bn,Ki);return[Ki,gn,Ji,oo,j,X]},function(va,za){var xi=(0,fa.Z)(va,3),Di=xi[2];(za||se)&&Sl&&Ro(Di,{mark:Du})},function(va){var za=(0,fa.Z)(va,4),xi=za[0],Di=za[1],Si=za[2],jo=za[3];if(mn&&xi!==mh){var ro={mark:Du,prepend:"queue",attachTo:Ye,priority:X},hi=typeof P=="function"?P():P;hi&&(ro.csp={nonce:hi});var io=ul(xi,Si,ro);io[gf]=Kt.instanceId,io.setAttribute(Wu,gn),Object.keys(jo).forEach(function(oo){ul(Bc(jo[oo]),"_effect-".concat(oo),ro)})}}),sr=(0,fa.Z)(kn,3),yr=sr[0],jr=sr[1],zr=sr[2];return function(va){var za;if(!ht||mn||!Re)za=K.createElement(Mf,null);else{var xi;za=K.createElement("style",(0,Fn.Z)({},(xi={},(0,$t.Z)(xi,Wu,jr),(0,$t.Z)(xi,Du,zr),xi),{dangerouslySetInnerHTML:{__html:yr}}))}return K.createElement(K.Fragment,null,za,va)}}function jv(C){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a="style%",l=Array.from(C.cache.keys()).filter(function(X){return X.startsWith(a)}),u={},E={},P="";function j(X,ee,se){var Se,Re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Be=_objectSpread(_objectSpread({},Re),{},(Se={},_defineProperty(Se,ATTR_TOKEN,ee),_defineProperty(Se,ATTR_MARK,se),Se)),Ye=Object.keys(Be).map(function(ht){var Tt=Be[ht];return Tt?"".concat(ht,'="').concat(Tt,'"'):null}).filter(function(ht){return ht}).join(" ");return i?X:"<style ".concat(Ye,">").concat(X,"</style>")}var H=l.map(function(X){var ee=X.slice(a.length).replace(/%/g,"|"),se=_slicedToArray(C.cache.get(X)[1],6),Se=se[0],Re=se[1],Be=se[2],Ye=se[3],ht=se[4],Tt=se[5];if(ht)return null;var Dt={"data-rc-order":"prependQueue","data-rc-priority":"".concat(Tt)},Kt=j(Se,Re,Be,Dt);E[ee]=Be,Ye&&Object.keys(Ye).forEach(function(bn){u[bn]||(u[bn]=!0,Kt+=j(Bc(Ye[bn]),Re,"_effect-".concat(bn),Dt))});var gn=[Tt,Kt];return gn}).filter(function(X){return X});return H.sort(function(X,ee){return X[0]-ee[0]}).forEach(function(X){var ee=_slicedToArray(X,2),se=ee[1];P+=se}),P+=j(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serializeCacheMap(E),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP)),P}var uv=function(){function C(i,a){(0,Or.Z)(this,C),(0,$t.Z)(this,"name",void 0),(0,$t.Z)(this,"style",void 0),(0,$t.Z)(this,"_keyframe",!0),this.name=i,this.style=a}return(0,vr.Z)(C,[{key:"getName",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return a?"".concat(a,"-").concat(this.name):this.name}}]),C}(),Fh=uv;function fv(C){if(typeof C=="number")return[[C],!1];var i=String(C).trim(),a=i.match(/(.*)(!important)/),l=(a?a[1]:i).trim().split(/\s+/),u="",E=0;return[l.reduce(function(P,j){return j.includes("(")?(u+=j,E+=j.split("(").length-1):j.includes(")")?(u+=j,E-=j.split(")").length-1,E===0&&(P.push(u),u="")):E>0?u+=j:P.push(j),P},[]),!!a]}function Yv(C){return C.notSplit=!0,C}var wh={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:Yv(["borderTop","borderBottom"]),borderBlockStart:Yv(["borderTop"]),borderBlockEnd:Yv(["borderBottom"]),borderInline:Yv(["borderLeft","borderRight"]),borderInlineStart:Yv(["borderLeft"]),borderInlineEnd:Yv(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function im(C,i){var a=C;return i&&(a="".concat(a," !important")),{_skip_check_:!0,value:a}}var fg={visit:function(i){var a={};return Object.keys(i).forEach(function(l){var u=i[l],E=wh[l];if(E&&(typeof u=="number"||typeof u=="string")){var P=fv(u),j=(0,fa.Z)(P,2),H=j[0],X=j[1];E.length&&E.notSplit?E.forEach(function(ee){a[ee]=im(u,X)}):E.length===1?a[E[0]]=im(u,X):E.length===2?E.forEach(function(ee,se){var Se;a[ee]=im((Se=H[se])!==null&&Se!==void 0?Se:H[0],X)}):E.length===4?E.forEach(function(ee,se){var Se,Re;a[ee]=im((Se=(Re=H[se])!==null&&Re!==void 0?Re:H[se-2])!==null&&Se!==void 0?Se:H[0],X)}):a[l]=u}else a[l]=u}),a}},_h=null,Bv=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function ah(C,i){var a=Math.pow(10,i+1),l=Math.floor(C*a);return Math.round(l/10)*10/a}var om=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=i.rootValue,l=a===void 0?16:a,u=i.precision,E=u===void 0?5:u,P=i.mediaQuery,j=P===void 0?!1:P,H=function(se,Se){if(!Se)return se;var Re=parseFloat(Se);if(Re<=1)return se;var Be=ah(Re/l,E);return"".concat(Be,"rem")},X=function(se){var Se=_objectSpread({},se);return Object.entries(se).forEach(function(Re){var Be=_slicedToArray(Re,2),Ye=Be[0],ht=Be[1];if(typeof ht=="string"&&ht.includes("px")){var Tt=ht.replace(Bv,H);Se[Ye]=Tt}!unitless[Ye]&&typeof ht=="number"&&ht!==0&&(Se[Ye]="".concat(ht,"px").replace(Bv,H));var Dt=Ye.trim();if(Dt.startsWith("@")&&Dt.includes("px")&&j){var Kt=Ye.replace(Bv,H);Se[Kt]=Se[Ye],delete Se[Ye]}}),Se};return{visit:X}},Og=null,Kh={supportModernCSS:function(){return as()&&Fr()}},Dp=null,Hp=o(84847),Yh=o(91220),ev=function(){},Kd=ev(),jp=Object,vf=function(i){return i===Kd},tv=function(i){return typeof i=="function"},Xv=function(i,a){return(0,Ie.Z)((0,Ie.Z)({},i),a)},nv=function(i){return tv(i.then)},lh=new WeakMap,Bp=0,Uv=function C(i){var a=typeof i,l=i&&i.constructor,u=l==Date,E,P;if(jp(i)===i&&!u&&l!=RegExp){if(E=lh.get(i),E)return E;if(E=++Bp+"~",lh.set(i,E),l==Array){for(E="@",P=0;P<i.length;P++)E+=C(i[P])+",";lh.set(i,E)}if(l==jp){E="#";for(var j=jp.keys(i).sort();!vf(P=j.pop());)vf(i[P])||(E+=P+":"+C(i[P])+",");lh.set(i,E)}}else E=u?i.toJSON():a=="symbol"?i.toString():a=="string"?JSON.stringify(i):""+i;return E},dv=new WeakMap,Ig={},Mm={},dg="undefined",dm=typeof window!=dg,Jm=typeof document!=dg,o_=function(){return dm&&typeof window.requestAnimationFrame!=dg},ch=function(i,a){var l=dv.get(i);return[function(){return!vf(a)&&i.get(a)||Ig},function(u){if(!vf(a)){var E=i.get(a);a in Mm||(Mm[a]=E),l[5](a,Xv(E,u),E||Ig)}},l[6],function(){return!vf(a)&&a in Mm?Mm[a]:!vf(a)&&i.get(a)||Ig}]},pg=!0,yh=function(){return pg},vg=dm&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ev,ev],Dg=(0,z.Z)(vg,2),km=Dg[0],Ng=Dg[1],O_=function(){var i=Jm&&document.visibilityState;return vf(i)||i!=="hidden"},e0=function(i){return Jm&&document.addEventListener("visibilitychange",i),km("focus",i),function(){Jm&&document.removeEventListener("visibilitychange",i),Ng("focus",i)}},pm=function(i){var a=function(){pg=!0,i()},l=function(){pg=!1};return km("online",a),km("offline",l),function(){Ng("online",a),Ng("offline",l)}},Lg={isOnline:yh,isVisible:O_},$r={initFocus:e0,initReconnect:pm},ea=!K.useId,bi=!dm||"Deno"in window,To=function(i){return o_()?window.requestAnimationFrame(i):setTimeout(i,1)},_o=bi?K.useEffect:K.useLayoutEffect,Ss=typeof navigator!="undefined"&&navigator.connection,Qi=!bi&&Ss&&(["slow-2g","2g"].includes(Ss.effectiveType)||Ss.saveData),Ns=function(i){if(tv(i))try{i=i()}catch(l){i=""}var a=i;return i=typeof i=="string"?i:(Array.isArray(i)?i.length:i)?Uv(i):"",[i,a]},kl=0,yl=function(){return++kl},Tl=0,ll=1,ac=2,Xl=3,Ol={__proto__:null,ERROR_REVALIDATE_EVENT:Xl,FOCUS_EVENT:Tl,MUTATE_EVENT:ac,RECONNECT_EVENT:ll};function es(){return Go.apply(this,arguments)}function Go(){return Go=(0,G.Z)((0,L.Z)().mark(function C(){var i,a,l,u,E,P,j,H,X,ee,se,Se,Re,Be,Ye,ht,Tt,Dt,Kt,gn,bn,mn,kn=arguments;return(0,L.Z)().wrap(function(yr){for(;;)switch(yr.prev=yr.next){case 0:for(mn=function(){return mn=(0,G.Z)((0,L.Z)().mark(function zr(va){var za,xi,Di,Si,jo,ro,hi,io,oo,Ki,Ji,Ao,ks,Lo,Is,Cl,il,Pl,lc,Mc,dp,zf,gv;return(0,L.Z)().wrap(function(cu){for(;;)switch(cu.prev=cu.next){case 0:if(za=Ns(va),xi=(0,z.Z)(za,1),Di=xi[0],Di){cu.next=3;break}return cu.abrupt("return");case 3:if(Si=ch(u,Di),jo=(0,z.Z)(Si,2),ro=jo[0],hi=jo[1],io=dv.get(u),oo=(0,z.Z)(io,4),Ki=oo[0],Ji=oo[1],Ao=oo[2],ks=oo[3],Lo=function(){var af=Ki[Di];return Se&&(delete Ao[Di],delete ks[Di],af&&af[0])?af[0](ac).then(function(){return ro().data}):ro().data},!(a.length<3)){cu.next=8;break}return cu.abrupt("return",Lo());case 8:if(Is=P,il=yl(),Ji[Di]=[il,0],Pl=!vf(se),lc=ro(),Mc=lc.data,dp=lc._c,zf=vf(dp)?Mc:dp,Pl&&(se=tv(se)?se(zf,Mc):se,hi({data:se,_c:zf})),tv(Is))try{Is=Is(zf)}catch(kf){Cl=kf}if(!(Is&&nv(Is))){cu.next=29;break}return cu.next=21,Is.catch(function(kf){Cl=kf});case 21:if(Is=cu.sent,il===Ji[Di][0]){cu.next=28;break}if(!Cl){cu.next=25;break}throw Cl;case 25:return cu.abrupt("return",Is);case 28:Cl&&Pl&&Re(Cl)&&(X=!0,hi({data:zf,_c:Kd}));case 29:if(X&&(Cl||(tv(X)?(gv=X(Is,zf),hi({data:gv,error:Kd,_c:Kd})):hi({data:Is,error:Kd,_c:Kd}))),Ji[Di][1]=yl(),Promise.resolve(Lo()).then(function(){hi({_c:Kd})}),!Cl){cu.next=36;break}if(!Be){cu.next=35;break}throw Cl;case 35:return cu.abrupt("return");case 36:return cu.abrupt("return",Is);case 37:case"end":return cu.stop()}},zr)})),mn.apply(this,arguments)},bn=function(zr){return mn.apply(this,arguments)},i=kn.length,a=new Array(i),l=0;l<i;l++)a[l]=kn[l];if(u=a[0],E=a[1],P=a[2],j=a[3],H=Xv({populateCache:!0,throwOnError:!0},typeof j=="boolean"?{revalidate:j}:j||{}),X=H.populateCache,ee=H.rollbackOnError,se=H.optimisticData,Se=H.revalidate!==!1,Re=function(zr){return typeof ee=="function"?ee(zr):ee!==!1},Be=H.throwOnError,!tv(E)){yr.next=18;break}Ye=E,ht=[],Tt=u.keys(),Dt=(0,Yh.Z)(Tt);try{for(Dt.s();!(Kt=Dt.n()).done;)gn=Kt.value,!/^\$(inf|sub)\$/.test(gn)&&Ye(u.get(gn)._k)&&ht.push(gn)}catch(jr){Dt.e(jr)}finally{Dt.f()}return yr.abrupt("return",Promise.all(ht.map(bn)));case 18:return yr.abrupt("return",bn(E));case 19:case"end":return yr.stop()}},C)})),Go.apply(this,arguments)}var Yo=function(i,a){for(var l in i)i[l][0]&&i[l][0](a)},Ec=function(i,a){if(!dv.has(i)){var l=Xv($r,a),u={},E=es.bind(Kd,i),P=ev,j={},H=function(Se,Re){var Be=j[Se]||[];return j[Se]=Be,Be.push(Re),function(){return Be.splice(Be.indexOf(Re),1)}},X=function(Se,Re,Be){i.set(Se,Re);var Ye=j[Se];if(Ye){var ht=(0,Yh.Z)(Ye),Tt;try{for(ht.s();!(Tt=ht.n()).done;){var Dt=Tt.value;Dt(Re,Be)}}catch(Kt){ht.e(Kt)}finally{ht.f()}}},ee=function(){if(!dv.has(i)&&(dv.set(i,[u,{},{},{},E,X,H]),!bi)){var Se=l.initFocus(setTimeout.bind(Kd,Yo.bind(Kd,u,Tl))),Re=l.initReconnect(setTimeout.bind(Kd,Yo.bind(Kd,u,ll)));P=function(){Se&&Se(),Re&&Re(),dv.delete(i)}}};return ee(),[i,E,ee,P]}return[i,dv.get(i)[4]]},Ft=function(i,a,l,u,E){var P=l.errorRetryCount,j=E.retryCount,H=~~((Math.random()+.5)*(1<<(j<8?j:8)))*l.errorRetryInterval;!vf(P)&&j>P||setTimeout(u,H,E)},je=function(i,a){return Uv(i)==Uv(a)},yt=Ec(new Map),It=(0,z.Z)(yt,2),Sn=It[0],In=It[1],mr=Xv({onLoadingSlow:ev,onSuccess:ev,onError:ev,onErrorRetry:Ft,onDiscarded:ev,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Qi?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Qi?5e3:3e3,compare:je,isPaused:function(){return!1},cache:Sn,mutate:In,fallback:{}},Lg),Wr=function(i,a){var l=Xv(i,a);if(a){var u=i.use,E=i.fallback,P=a.use,j=a.fallback;u&&P&&(l.use=u.concat(P)),E&&j&&(l.fallback=Xv(E,j))}return l},Ir=(0,K.createContext)({}),Br=function(i){var a=i.value,l=(0,K.useContext)(Ir),u=tv(a),E=(0,K.useMemo)(function(){return u?a(l):a},[u,l,a]),P=(0,K.useMemo)(function(){return u?E:Wr(l,E)},[u,l,E]),j=E&&E.provider,H=(0,K.useRef)(Kd);j&&!H.current&&(H.current=Ec(j(P.cache||Sn),E));var X=H.current;return X&&(P.cache=X[0],P.mutate=X[1]),_o(function(){if(X)return X[2]&&X[2](),X[3]},[]),(0,K.createElement)(Ir.Provider,Xv(i,{value:P}))},xa="$inf$",vi=dm&&window.__SWR_DEVTOOLS_USE__,Ai=vi?window.__SWR_DEVTOOLS_USE__:[],Yi=function(){vi&&(window.__SWR_DEVTOOLS_REACT__=K)},Wo=function(i){return tv(i[1])?[i[0],i[1],i[2]||{}]:[i[0],null,(i[1]===null?i[2]:i[1])||{}]},_s=function(){return Xv(mr,(0,K.useContext)(Ir))},ys=function(i,a){var l=Ns(i),u=_slicedToArray(l,2),E=u[0],P=u[1],j=dv.get(Sn),H=_slicedToArray(j,4),X=H[3];if(X[E])return X[E];var ee=a(P);return X[E]=ee,ee},qs=function(i){return function(a,l,u){var E=l&&function(){var P=Ns(a),j=(0,z.Z)(P,1),H=j[0],X=dv.get(Sn),ee=(0,z.Z)(X,4),se=ee[3];if(H.startsWith(xa))return l.apply(void 0,arguments);var Se=se[H];return vf(Se)?l.apply(void 0,arguments):(delete se[H],Se)};return i(a,E,u)}},uc=Ai.concat(qs),du=function(i){return function(){for(var l=_s(),u=arguments.length,E=new Array(u),P=0;P<u;P++)E[P]=arguments[P];for(var j=Wo(E),H=(0,z.Z)(j,3),X=H[0],ee=H[1],se=H[2],Se=Wr(l,se),Re=i,Be=Se.use,Ye=(Be||[]).concat(uc),ht=Ye.length;ht--;)Re=Ye[ht](Re);return Re(X,ee||Se.fetcher||null,Se)}},Pc=function(i,a,l){var u=a[i]||(a[i]=[]);return u.push(l),function(){var E=u.indexOf(l);E>=0&&(u[E]=u[u.length-1],u.pop())}},Ef=function(i,a){return function(){for(var l=arguments.length,u=new Array(l),E=0;E<l;E++)u[E]=arguments[E];var P=Wo(u),j=_slicedToArray(P,3),H=j[0],X=j[1],ee=j[2],se=(ee.use||[]).concat(a);return i(H,X,_objectSpread(_objectSpread({},ee),{},{use:se}))}};Yi();var Ru=function(i){return serialize(i)[0]},_d=K.use||function(C){if(C.status==="pending")throw C;if(C.status==="fulfilled")return C.value;throw C.status==="rejected"?C.reason:(C.status="pending",C.then(function(i){C.status="fulfilled",C.value=i},function(i){C.status="rejected",C.reason=i}),C)},id={dedupe:!0},yd=function(i,a,l){var u=l.cache,E=l.compare,P=l.suspense,j=l.fallbackData,H=l.revalidateOnMount,X=l.revalidateIfStale,ee=l.refreshInterval,se=l.refreshWhenHidden,Se=l.refreshWhenOffline,Re=l.keepPreviousData,Be=dv.get(u),Ye=(0,z.Z)(Be,4),ht=Ye[0],Tt=Ye[1],Dt=Ye[2],Kt=Ye[3],gn=Ns(i),bn=(0,z.Z)(gn,2),mn=bn[0],kn=bn[1],sr=(0,K.useRef)(!1),yr=(0,K.useRef)(!1),jr=(0,K.useRef)(mn),zr=(0,K.useRef)(a),va=(0,K.useRef)(l),za=function(){return va.current},xi=function(){return za().isVisible()&&za().isOnline()},Di=ch(u,mn),Si=(0,z.Z)(Di,4),jo=Si[0],ro=Si[1],hi=Si[2],io=Si[3],oo=(0,K.useRef)({}).current,Ki=vf(j)?l.fallback[mn]:j,Ji=function(Wc,Mu){for(var Rc in oo){var Nl=Rc;if(Nl==="data"){if(!E(Wc[Nl],Mu[Nl])&&(!vf(Wc[Nl])||!E(Mc,Mu[Nl])))return!1}else if(Mu[Nl]!==Wc[Nl])return!1}return!0},Ao=(0,K.useMemo)(function(){var Vc=function(){return!mn||!a?!1:vf(H)?za().isPaused()||P?!1:vf(X)?!0:X:H}(),Wc=function(ju){var Gf=Xv(ju);return delete Gf._k,Vc?(0,Ie.Z)({isValidating:!0,isLoading:!0},Gf):Gf},Mu=jo(),Rc=io(),Nl=Wc(Mu),Oc=Mu===Rc?Nl:Wc(Rc),au=Nl;return[function(){var ef=Wc(jo()),ju=Ji(ef,au);return ju?(au.data=ef.data,au.isLoading=ef.isLoading,au.isValidating=ef.isValidating,au.error=ef.error,au):(au=ef,ef)},function(){return Oc}]},[u,mn]),ks=(0,Hp.useSyncExternalStore)((0,K.useCallback)(function(Vc){return hi(mn,function(Wc,Mu){Ji(Mu,Wc)||Vc()})},[u,mn]),Ao[0],Ao[1]),Lo=!sr.current,Is=ht[mn]&&ht[mn].length>0,Cl=ks.data,il=vf(Cl)?Ki:Cl,Pl=ks.error,lc=(0,K.useRef)(il),Mc=Re?vf(Cl)?lc.current:Cl:il,dp=function(){return Is&&!vf(Pl)?!1:Lo&&!vf(H)?H:za().isPaused()?!1:P?vf(il)?!1:X:vf(il)||X}(),zf=!!(mn&&a&&Lo&&dp),gv=vf(ks.isValidating)?zf:ks.isValidating,Wf=vf(ks.isLoading)?zf:ks.isLoading,cu=(0,K.useCallback)(function(){var Vc=(0,G.Z)((0,L.Z)().mark(function Wc(Mu){var Rc,Nl,Oc,au,ef,ju,Gf,ip,ph,Qp,Zh,sg,qv,Cm,Rh,xv;return(0,L.Z)().wrap(function(qf){for(;;)switch(qf.prev=qf.next){case 0:if(Rc=zr.current,!(!mn||!Rc||yr.current||za().isPaused())){qf.next=3;break}return qf.abrupt("return",!1);case 3:return au=!0,ef=Mu||{},ju=!Dt[mn]||!ef.dedupe,Gf=function(){return ea?!yr.current&&mn===jr.current&&sr.current:mn===jr.current},ip={isValidating:!1,isLoading:!1},ph=function(){ro(ip)},Qp=function(){var eh=Dt[mn];eh&&eh[1]===Oc&&delete Dt[mn]},Zh={isValidating:!0},vf(jo().data)&&(Zh.isLoading=!0),qf.prev=12,ju&&(ro(Zh),l.loadingTimeout&&vf(jo().data)&&setTimeout(function(){au&&Gf()&&za().onLoadingSlow(mn,l)},l.loadingTimeout),Dt[mn]=[Rc(kn),yl()]),sg=(0,z.Z)(Dt[mn],2),Nl=sg[0],Oc=sg[1],qf.next=19,Nl;case 19:if(Nl=qf.sent,ju&&setTimeout(Qp,l.dedupingInterval),!(!Dt[mn]||Dt[mn][1]!==Oc)){qf.next=24;break}return ju&&Gf()&&za().onDiscarded(mn),qf.abrupt("return",!1);case 24:if(ip.error=Kd,qv=Tt[mn],!(!vf(qv)&&(Oc<=qv[0]||Oc<=qv[1]||qv[1]===0))){qf.next=30;break}return ph(),ju&&Gf()&&za().onDiscarded(mn),qf.abrupt("return",!1);case 30:Cm=jo().data,ip.data=E(Cm,Nl)?Cm:Nl,ju&&Gf()&&za().onSuccess(Nl,mn,l),qf.next=41;break;case 35:qf.prev=35,qf.t0=qf.catch(12),Qp(),Rh=za(),xv=Rh.shouldRetryOnError,Rh.isPaused()||(ip.error=qf.t0,ju&&Gf()&&(Rh.onError(qf.t0,mn,Rh),(xv===!0||tv(xv)&&xv(qf.t0))&&xi()&&Rh.onErrorRetry(qf.t0,mn,Rh,function(Up){var eh=ht[mn];eh&&eh[0]&&eh[0](Ol.ERROR_REVALIDATE_EVENT,Up)},{retryCount:(ef.retryCount||0)+1,dedupe:!0})));case 41:return au=!1,ph(),qf.abrupt("return",!0);case 44:case"end":return qf.stop()}},Wc,null,[[12,35]])}));return function(Wc){return Vc.apply(this,arguments)}}(),[mn,u]),kf=(0,K.useCallback)(function(){for(var Vc=arguments.length,Wc=new Array(Vc),Mu=0;Mu<Vc;Mu++)Wc[Mu]=arguments[Mu];return es.apply(void 0,[u,jr.current].concat(Wc))},[]);if(_o(function(){zr.current=a,va.current=l,vf(Cl)||(lc.current=Cl)}),_o(function(){if(!!mn){var Vc=cu.bind(Kd,id),Wc=0,Mu=function(Oc){var au=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Oc==Ol.FOCUS_EVENT){var ef=Date.now();za().revalidateOnFocus&&ef>Wc&&xi()&&(Wc=ef+za().focusThrottleInterval,Vc())}else if(Oc==Ol.RECONNECT_EVENT)za().revalidateOnReconnect&&xi()&&Vc();else{if(Oc==Ol.MUTATE_EVENT)return cu();if(Oc==Ol.ERROR_REVALIDATE_EVENT)return cu(au)}},Rc=Pc(mn,ht,Mu);return yr.current=!1,jr.current=mn,sr.current=!0,ro({_k:kn}),dp&&(vf(il)||bi?Vc():To(Vc)),function(){yr.current=!0,Rc()}}},[mn]),_o(function(){var Vc;function Wc(){var Rc=tv(ee)?ee(jo().data):ee;Rc&&Vc!==-1&&(Vc=setTimeout(Mu,Rc))}function Mu(){!jo().error&&(se||za().isVisible())&&(Se||za().isOnline())?cu(id).then(Wc):Wc()}return Wc(),function(){Vc&&(clearTimeout(Vc),Vc=-1)}},[ee,se,Se,mn]),(0,K.useDebugValue)(Mc),P&&vf(il)&&mn){if(!ea&&bi)throw new Error("Fallback data is required when using suspense in SSR.");zr.current=a,va.current=l,yr.current=!1;var af=Kt[mn];if(!vf(af)){var lf=kf(af);_d(lf)}if(vf(Pl)){var gu=cu(id);vf(Mc)||(gu.status="fulfilled",gu.value=!0),_d(gu)}else throw Pl}return{mutate:kf,get data(){return oo.data=!0,Mc},get error(){return oo.error=!0,Pl},get isValidating(){return oo.isValidating=!0,gv},get isLoading(){return oo.isLoading=!0,Wf}}},Qu=jp.defineProperty(Br,"defaultValue",{value:mr}),Yd=du(yd),Xd=o(11965),Sf={moneySymbol:"$",form:{lightFilter:{more:"\u0627\u0644\u0645\u0632\u064A\u062F",clear:"\u0646\u0638\u0641",confirm:"\u062A\u0623\u0643\u064A\u062F",itemUnit:"\u0639\u0646\u0627\u0635\u0631"}},tableForm:{search:"\u0627\u0628\u062D\u062B",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",submit:"\u0627\u0631\u0633\u0627\u0644",collapsed:"\u0645\u064F\u0642\u0644\u0635",expand:"\u0645\u064F\u0648\u0633\u0639",inputPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062F\u062E\u0627\u0644",selectPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062E\u062A\u064A\u0627\u0631"},alert:{clear:"\u0646\u0638\u0641",selected:"\u0645\u062D\u062F\u062F",item:"\u0639\u0646\u0635\u0631"},pagination:{total:{range:" ",total:"\u0645\u0646",item:"\u0639\u0646\u0627\u0635\u0631"}},tableToolBar:{leftPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noPin:"\u0627\u0644\u063A\u0627\u0621 \u0627\u0644\u062A\u062B\u0628\u064A\u062A",leftFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noFixedTitle:"\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0625\u0644\u0635\u0627\u0642",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",columnDisplay:"\u0627\u0644\u0623\u0639\u0645\u062F\u0629 \u0627\u0644\u0645\u0639\u0631\u0648\u0636\u0629",columnSetting:"\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A",fullScreen:"\u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",exitFullScreen:"\u0627\u0644\u062E\u0631\u0648\u062C \u0645\u0646 \u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",reload:"\u062A\u062D\u062F\u064A\u062B",density:"\u0627\u0644\u0643\u062B\u0627\u0641\u0629",densityDefault:"\u0627\u0641\u062A\u0631\u0627\u0636\u064A",densityLarger:"\u0623\u0643\u0628\u0631",densityMiddle:"\u0648\u0633\u0637",densitySmall:"\u0645\u062F\u0645\u062C"},stepsForm:{next:"\u0627\u0644\u062A\u0627\u0644\u064A",prev:"\u0627\u0644\u0633\u0627\u0628\u0642",submit:"\u0623\u0646\u0647\u0649"},loginForm:{submitText:"\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644"},editableTable:{action:{save:"\u0623\u0646\u0642\u0630",cancel:"\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0623\u0645\u0631",delete:"\u062D\u0630\u0641",add:"\u0625\u0636\u0627\u0641\u0629 \u0635\u0641 \u0645\u0646 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A"}},switch:{open:"\u0645\u0641\u062A\u0648\u062D",close:"\u063A\u0644\u0642"}},Bf={moneySymbol:"\u20AC",form:{lightFilter:{more:"M\xE9s",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col\xB7lapsar",inputPlaceholder:"Introdu\xEFu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitj\xE0",densitySmall:"Compacte"},stepsForm:{next:"Seg\xFCent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel\xB7lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},cd={moneySymbol:"K\u010D",deleteThisLine:"Smazat tento \u0159\xE1dek",copyThisLine:"Kop\xEDrovat tento \u0159\xE1dek",form:{lightFilter:{more:"V\xEDc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Polo\u017Eky"}},tableForm:{search:"Dotaz",reset:"Resetovat",submit:"Odeslat",collapsed:"Zv\u011Bt\u0161it",expand:"Zmen\u0161it",inputPlaceholder:"Zadejte pros\xEDm",selectPlaceholder:"Vyberte pros\xEDm"},alert:{clear:"Vymazat",selected:"Vybran\xFD",item:"Polo\u017Eka"},pagination:{total:{range:" ",total:"z",item:"polo\u017Eek"}},tableToolBar:{leftPin:"P\u0159ipnout doleva",rightPin:"P\u0159ipnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixov\xE1no nalevo",rightFixedTitle:"Fixov\xE1no napravo",noFixedTitle:"Neopraveno",reset:"Resetovat",columnDisplay:"Zobrazen\xED sloupc\u016F",columnSetting:"Nastaven\xED",fullScreen:"Cel\xE1 obrazovka",exitFullScreen:"Ukon\u010Dete celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"V\xFDchoz\xED",densityLarger:"V\u011Bt\u0161\xED",densityMiddle:"St\u0159edn\xED",densitySmall:"Kompaktn\xED"},stepsForm:{next:"Dal\u0161\xED",prev:"P\u0159edchoz\xED",submit:"Dokon\u010Dit"},loginForm:{submitText:"P\u0159ihl\xE1sit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden \u0159\xE1dek",action:{save:"Ulo\u017Eit",cancel:"Zru\u0161it",delete:"Vymazat",add:"p\u0159idat \u0159\xE1dek dat"}},switch:{open:"otev\u0159\xEDt",close:"zav\u0159\xEDt"}},qu={moneySymbol:"\u20AC",form:{lightFilter:{more:"Mehr",clear:"Zur\xFCcksetzen",confirm:"Best\xE4tigen",itemUnit:"Eintr\xE4ge"}},tableForm:{search:"Suchen",reset:"Zur\xFCcksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte ausw\xE4hlen"},alert:{clear:"Zur\xFCcksetzen",selected:"Ausgew\xE4hlt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Eintr\xE4gen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zur\xFCcksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Gr\xF6\xDFer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"L\xF6schen",add:"Hinzuf\xFCgen einer Datenzeile"}},switch:{open:"offen",close:"schlie\xDFen"}},Nu={moneySymbol:"\xA3",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},Id={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},Ev={moneySymbol:"\u20AC",form:{lightFilter:{more:"M\xE1s",clear:"Limpiar",confirm:"Confirmar",itemUnit:"art\xEDculos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"art\xEDculos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3n",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"a\xF1adir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},Rv={moneySymbol:"\u062A\u0648\u0645\u0627\u0646",form:{lightFilter:{more:"\u0628\u06CC\u0634\u062A\u0631",clear:"\u067E\u0627\u06A9 \u06A9\u0631\u062F\u0646",confirm:"\u062A\u0627\u06CC\u06CC\u062F",itemUnit:"\u0645\u0648\u0631\u062F"}},tableForm:{search:"\u062C\u0633\u062A\u062C\u0648",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",submit:"\u062A\u0627\u06CC\u06CC\u062F",collapsed:"\u0646\u0645\u0627\u06CC\u0634 \u0628\u06CC\u0634\u062A\u0631",expand:"\u0646\u0645\u0627\u06CC\u0634 \u06A9\u0645\u062A\u0631",inputPlaceholder:"\u067E\u06CC\u062F\u0627 \u06A9\u0646\u06CC\u062F",selectPlaceholder:"\u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F"},alert:{clear:"\u067E\u0627\u06A9 \u0633\u0627\u0632\u06CC",selected:"\u0627\u0646\u062A\u062E\u0627\u0628",item:"\u0645\u0648\u0631\u062F"},pagination:{total:{range:" ",total:"\u0627\u0632",item:"\u0645\u0648\u0631\u062F"}},tableToolBar:{leftPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0686\u067E",rightPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0631\u0627\u0633\u062A",noPin:"\u0633\u0646\u062C\u0627\u0642 \u0646\u0634\u062F\u0647",leftFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0686\u067E",rightFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0631\u0627\u0633\u062A",noFixedTitle:"\u0634\u0646\u0627\u0648\u0631",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",columnDisplay:"\u0646\u0645\u0627\u06CC\u0634 \u0647\u0645\u0647",columnSetting:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A",fullScreen:"\u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",exitFullScreen:"\u062E\u0631\u0648\u062C \u0627\u0632 \u062D\u0627\u0644\u062A \u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",reload:"\u062A\u0627\u0632\u0647 \u0633\u0627\u0632\u06CC",density:"\u062A\u0631\u0627\u06A9\u0645",densityDefault:"\u067E\u06CC\u0634 \u0641\u0631\u0636",densityLarger:"\u0628\u0632\u0631\u06AF",densityMiddle:"\u0645\u062A\u0648\u0633\u0637",densitySmall:"\u06A9\u0648\u0686\u06A9"},stepsForm:{next:"\u0628\u0639\u062F\u06CC",prev:"\u0642\u0628\u0644\u06CC",submit:"\u0627\u062A\u0645\u0627\u0645"},loginForm:{submitText:"\u0648\u0631\u0648\u062F"},editableTable:{action:{save:"\u0630\u062E\u06CC\u0631\u0647",cancel:"\u0644\u063A\u0648",delete:"\u062D\u0630\u0641",add:"\u06CC\u06A9 \u0631\u062F\u06CC\u0641 \u062F\u0627\u062F\u0647 \u0627\u0636\u0627\u0641\u0647 \u06A9\u0646\u06CC\u062F"}},switch:{open:"\u0628\u0627\u0632",close:"\u0646\u0632\u062F\u06CC\u06A9"}},s_={moneySymbol:"\u20AC",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"R\xE9initialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"R\xE9duire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"S\xE9lectionner une valeur"},alert:{clear:"R\xE9initialiser",selected:"S\xE9lectionn\xE9",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"\xE9l\xE9ments"}},tableToolBar:{leftPin:"\xC9pingler \xE0 gauche",rightPin:"\xC9pingler \xE0 gauche",noPin:"Sans \xE9pingle",leftFixedTitle:"Fixer \xE0 gauche",rightFixedTitle:"Fixer \xE0 droite",noFixedTitle:"Non fix\xE9",reset:"R\xE9initialiser",columnDisplay:"Affichage colonne",columnSetting:"R\xE9glages",fullScreen:"Plein \xE9cran",exitFullScreen:"Quitter Plein \xE9cran",reload:"Rafraichir",density:"Densit\xE9",densityDefault:"Par d\xE9faut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Pr\xE9c\xE9dente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de donn\xE9es"}},switch:{open:"ouvert",close:"pr\xE8s"}},wi={moneySymbol:"\u20AA",deleteThisLine:"\u05DE\u05D7\u05E7 \u05E9\u05D5\u05E8\u05D4 \u05D6\u05D5",copyThisLine:"\u05D4\u05E2\u05EA\u05E7 \u05E9\u05D5\u05E8\u05D4 \u05D6\u05D5",form:{lightFilter:{more:"\u05D9\u05D5\u05EA\u05E8",clear:"\u05E0\u05E7\u05D4",confirm:"\u05D0\u05D9\u05E9\u05D5\u05E8",itemUnit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD"}},tableForm:{search:"\u05D7\u05D9\u05E4\u05D5\u05E9",reset:"\u05D0\u05D9\u05E4\u05D5\u05E1",submit:"\u05E9\u05DC\u05D7",collapsed:"\u05D4\u05E8\u05D7\u05D1",expand:"\u05DB\u05D5\u05D5\u05E5",inputPlaceholder:"\u05D0\u05E0\u05D0 \u05D4\u05DB\u05E0\u05E1",selectPlaceholder:"\u05D0\u05E0\u05D0 \u05D1\u05D7\u05E8"},alert:{clear:"\u05E0\u05E7\u05D4",selected:"\u05E0\u05D1\u05D7\u05E8",item:"\u05E4\u05E8\u05D9\u05D8"},pagination:{total:{range:" ",total:"\u05DE\u05EA\u05D5\u05DA",item:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD"}},tableToolBar:{leftPin:"\u05D4\u05E6\u05DE\u05D3 \u05DC\u05E9\u05DE\u05D0\u05DC",rightPin:"\u05D4\u05E6\u05DE\u05D3 \u05DC\u05D9\u05DE\u05D9\u05DF",noPin:"\u05DC\u05D0 \u05DE\u05E6\u05D5\u05E8\u05E3",leftFixedTitle:"\u05DE\u05D5\u05E6\u05DE\u05D3 \u05DC\u05E9\u05DE\u05D0\u05DC",rightFixedTitle:"\u05DE\u05D5\u05E6\u05DE\u05D3 \u05DC\u05D9\u05DE\u05D9\u05DF",noFixedTitle:"\u05DC\u05D0 \u05DE\u05D5\u05E6\u05DE\u05D3",reset:"\u05D0\u05D9\u05E4\u05D5\u05E1",columnDisplay:"\u05EA\u05E6\u05D5\u05D2\u05EA \u05E2\u05DE\u05D5\u05D3\u05D5\u05EA",columnSetting:"\u05D4\u05D2\u05D3\u05E8\u05D5\u05EA",fullScreen:"\u05DE\u05E1\u05DA \u05DE\u05DC\u05D0",exitFullScreen:"\u05E6\u05D0 \u05DE\u05DE\u05E1\u05DA \u05DE\u05DC\u05D0",reload:"\u05E8\u05E2\u05E0\u05DF",density:"\u05E8\u05D6\u05D5\u05DC\u05D5\u05E6\u05D9\u05D4",densityDefault:"\u05D1\u05E8\u05D9\u05E8\u05EA \u05DE\u05D7\u05D3\u05DC",densityLarger:"\u05D2\u05D3\u05D5\u05DC",densityMiddle:"\u05D1\u05D9\u05E0\u05D5\u05E0\u05D9",densitySmall:"\u05E7\u05D8\u05DF"},stepsForm:{next:"\u05D4\u05D1\u05D0",prev:"\u05E7\u05D5\u05D3\u05DD",submit:"\u05E1\u05D9\u05D5\u05DD"},loginForm:{submitText:"\u05DB\u05E0\u05D9\u05E1\u05D4"},editableTable:{onlyOneLineEditor:"\u05E0\u05D9\u05EA\u05DF \u05DC\u05E2\u05E8\u05D5\u05DA \u05E8\u05E7 \u05E9\u05D5\u05E8\u05D4 \u05D0\u05D7\u05EA",action:{save:"\u05E9\u05DE\u05D5\u05E8",cancel:"\u05D1\u05D9\u05D8\u05D5\u05DC",delete:"\u05DE\u05D7\u05D9\u05E7\u05D4",add:"\u05D4\u05D5\u05E1\u05E3 \u05E9\u05D5\u05E8\u05EA \u05E0\u05EA\u05D5\u05E0\u05D9\u05DD"}},switch:{open:"\u05E4\u05EA\u05D7",close:"\u05E1\u05D2\u05D5\u05E8"}},ps={moneySymbol:"kn",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretra\u017Ei",reset:"Poni\u0161ti",submit:"Potvrdi",collapsed:"Ra\u0161iri",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"O\u010Disti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prika\u010Di lijevo",rightPin:"Prika\u010Di desno",noPin:"Bez prika\u010Denja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Iza\u0111i iz punog zaslona",reload:"Ponovno u\u010Ditaj",density:"Veli\u010Dina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljede\u0107i",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obri\u0161i",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},qo={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},zc={moneySymbol:"\u20AC",form:{lightFilter:{more:"pi\xF9",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalit\xE0 schermo intero",exitFullScreen:"Esci da modalit\xE0 schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},od={moneySymbol:"\xA5",form:{lightFilter:{more:"\u66F4\u306B",clear:"\u30AF\u30EA\u30A2",confirm:"\u78BA\u8A8D",itemUnit:"\u30A2\u30A4\u30C6\u30E0"}},tableForm:{search:"\u691C\u7D22",reset:"\u30EA\u30BB\u30C3\u30C8",submit:"\u9001\u4FE1",collapsed:"\u62E1\u5927",expand:"\u6298\u7573",inputPlaceholder:"\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",selectPlaceholder:"\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},alert:{clear:"\u30AF\u30EA\u30A2",selected:"\u9078\u629E\u3057\u305F",item:"\u30A2\u30A4\u30C6\u30E0"},pagination:{total:{range:"\u30EC\u30B3\u30FC\u30C9",total:"/\u5408\u8A08",item:" "}},tableToolBar:{leftPin:"\u5DE6\u306B\u56FA\u5B9A",rightPin:"\u53F3\u306B\u56FA\u5B9A",noPin:"\u30AD\u30E3\u30F3\u30BB\u30EB",leftFixedTitle:"\u5DE6\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",rightFixedTitle:"\u53F3\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",noFixedTitle:"\u56FA\u5B9A\u3055\u308C\u3066\u306A\u3044\u9805\u76EE",reset:"\u30EA\u30BB\u30C3\u30C8",columnDisplay:"\u8868\u793A\u5217",columnSetting:"\u5217\u8868\u793A\u8A2D\u5B9A",fullScreen:"\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3",exitFullScreen:"\u7D42\u4E86",reload:"\u66F4\u65B0",density:"\u884C\u9AD8",densityDefault:"\u30C7\u30D5\u30A9\u30EB\u30C8",densityLarger:"\u5927",densityMiddle:"\u4E2D",densitySmall:"\u5C0F"},stepsForm:{next:"\u6B21\u3078",prev:"\u524D\u3078",submit:"\u9001\u4FE1"},loginForm:{submitText:"\u30ED\u30B0\u30A4\u30F3"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",delete:"\u524A\u9664",add:"\u8FFD\u52A0"}},switch:{open:"\u958B\u304F",close:"\u9589\u3058\u308B"}},ri={moneySymbol:"\u20A9",form:{lightFilter:{more:"\uB354\uBCF4\uAE30",clear:"\uCD08\uAE30\uD654",confirm:"\uD655\uC778",itemUnit:"\uAC74\uC218"}},tableForm:{search:"\uC870\uD68C",reset:"\uCD08\uAE30\uD654",submit:"\uC81C\uCD9C",collapsed:"\uD655\uC7A5",expand:"\uB2EB\uAE30",inputPlaceholder:"\uC785\uB825\uD574 \uC8FC\uC138\uC694",selectPlaceholder:"\uC120\uD0DD\uD574 \uC8FC\uC138\uC694"},alert:{clear:"\uCDE8\uC18C",selected:"\uC120\uD0DD",item:"\uAC74"},pagination:{total:{range:" ",total:"/ \uCD1D",item:"\uAC74"}},tableToolBar:{leftPin:"\uC67C\uCABD\uC73C\uB85C \uD540",rightPin:"\uC624\uB978\uCABD\uC73C\uB85C \uD540",noPin:"\uD540 \uC81C\uAC70",leftFixedTitle:"\uC67C\uCABD\uC73C\uB85C \uACE0\uC815",rightFixedTitle:"\uC624\uB978\uCABD\uC73C\uB85C \uACE0\uC815",noFixedTitle:"\uBE44\uACE0\uC815",reset:"\uCD08\uAE30\uD654",columnDisplay:"\uCEEC\uB7FC \uD45C\uC2DC",columnSetting:"\uC124\uC815",fullScreen:"\uC804\uCCB4 \uD654\uBA74",exitFullScreen:"\uC804\uCCB4 \uD654\uBA74 \uCDE8\uC18C",reload:"\uC0C8\uB85C \uACE0\uCE68",density:"\uC5EC\uBC31",densityDefault:"\uAE30\uBCF8",densityLarger:"\uB9CE\uC740 \uC5EC\uBC31",densityMiddle:"\uC911\uAC04 \uC5EC\uBC31",densitySmall:"\uC881\uC740 \uC5EC\uBC31"},stepsForm:{next:"\uB2E4\uC74C",prev:"\uC774\uC804",submit:"\uC885\uB8CC"},loginForm:{submitText:"\uB85C\uADF8\uC778"},editableTable:{action:{save:"\uC800\uC7A5",cancel:"\uCDE8\uC18C",delete:"\uC0AD\uC81C",add:"\uB370\uC774\uD130 \uD589 \uCD94\uAC00"}},switch:{open:"\uC5F4",close:"\uAC00\uAE4C \uC6B4"}},Ta={moneySymbol:"\u20AE",form:{lightFilter:{more:"\u0418\u043B\u04AF\u04AF",clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",confirm:"\u0411\u0430\u0442\u0430\u043B\u0433\u0430\u0430\u0436\u0443\u0443\u043B\u0430\u0445",itemUnit:"\u041D\u044D\u0433\u0436\u04AF\u04AF\u0434"}},tableForm:{search:"\u0425\u0430\u0439\u0445",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",submit:"\u0418\u043B\u0433\u044D\u044D\u0445",collapsed:"\u04E8\u0440\u0433\u04E9\u0442\u0433\u04E9\u0445",expand:"\u0425\u0443\u0440\u0430\u0430\u0445",inputPlaceholder:"\u0423\u0442\u0433\u0430 \u043E\u0440\u0443\u0443\u043B\u043D\u0430 \u0443\u0443",selectPlaceholder:"\u0423\u0442\u0433\u0430 \u0441\u043E\u043D\u0433\u043E\u043D\u043E \u0443\u0443"},alert:{clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",selected:"\u0421\u043E\u043D\u0433\u043E\u0433\u0434\u0441\u043E\u043D",item:"\u041D\u044D\u0433\u0436"},pagination:{total:{range:" ",total:"\u041D\u0438\u0439\u0442",item:"\u043C\u04E9\u0440"}},tableToolBar:{leftPin:"\u0417\u04AF\u04AF\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",rightPin:"\u0411\u0430\u0440\u0443\u0443\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",noPin:"\u0411\u044D\u0445\u043B\u044D\u0445\u0433\u04AF\u0439",leftFixedTitle:"\u0417\u04AF\u04AF\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",rightFixedTitle:"\u0411\u0430\u0440\u0443\u0443\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",noFixedTitle:"\u0417\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445\u0433\u04AF\u0439",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",columnDisplay:"\u0411\u0430\u0433\u0430\u043D\u0430\u0430\u0440 \u0445\u0430\u0440\u0443\u0443\u043B\u0430\u0445",columnSetting:"\u0422\u043E\u0445\u0438\u0440\u0433\u043E\u043E",fullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446\u044D\u044D\u0440",exitFullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446 \u0446\u0443\u0446\u043B\u0430\u0445",reload:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",density:"\u0425\u044D\u043C\u0436\u044D\u044D",densityDefault:"\u0425\u044D\u0432\u0438\u0439\u043D",densityLarger:"\u0422\u043E\u043C",densityMiddle:"\u0414\u0443\u043D\u0434",densitySmall:"\u0416\u0438\u0436\u0438\u0433"},stepsForm:{next:"\u0414\u0430\u0440\u0430\u0430\u0445",prev:"\u04E8\u043C\u043D\u04E9\u0445",submit:"\u0414\u0443\u0443\u0441\u0433\u0430\u0445"},loginForm:{submitText:"\u041D\u044D\u0432\u0442\u0440\u044D\u0445"},editableTable:{action:{save:"\u0425\u0430\u0434\u0433\u0430\u043B\u0430\u0445",cancel:"\u0426\u0443\u0446\u043B\u0430\u0445",delete:"\u0423\u0441\u0442\u0433\u0430\u0445",add:"\u041C\u04E9\u0440 \u043D\u044D\u043C\u044D\u0445"}},switch:{open:"\u041D\u044D\u044D\u0445",close:"\u0425\u0430\u0430\u0445"}},eo={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},Po={moneySymbol:"z\u0142",form:{lightFilter:{more:"Wi\u0119cej",clear:"Wyczy\u015B\u0107",confirm:"Potwierd\u017A",itemUnit:"Ilo\u015B\u0107"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierd\u017A",collapsed:"Poka\u017C wiecej",expand:"Poka\u017C mniej",inputPlaceholder:"Prosz\u0119 poda\u0107",selectPlaceholder:"Prosz\u0119 wybra\u0107"},alert:{clear:"Wyczy\u015B\u0107",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpis\xF3w"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypi\u0119te do lewej",rightFixedTitle:"Przypi\u0119te do prawej",noFixedTitle:"Nieprzypi\u0119te",reset:"Reset",columnDisplay:"Wy\u015Bwietlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pe\u0142en ekran",exitFullScreen:"Zamknij pe\u0142en ekran",reload:"Od\u015Bwie\u017C",density:"Odst\u0119p",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Zaloguj si\u0119"},editableTable:{action:{save:"Zapisa\u0107",cancel:"Anuluj",delete:"Usun\u0105\u0107",add:"dodawanie wiersza danych"}},switch:{open:"otwiera\u0107",close:"zamyka\u0107"}},qi={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar \xE0 esquerda",rightPin:"Fixar \xE0 direita",noPin:"Desfixado",leftFixedTitle:"Fixado \xE0 esquerda",rightFixedTitle:"Fixado \xE0 direita",noFixedTitle:"N\xE3o fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configura\xE7\xF5es",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padr\xE3o",densityLarger:"Largo",densityMiddle:"M\xE9dio",densitySmall:"Compacto"},stepsForm:{next:"Pr\xF3ximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},Ii={moneySymbol:"\u20BD",form:{lightFilter:{more:"\u0415\u0449\u0435",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",confirm:"\u041E\u041A",itemUnit:"\u041F\u043E\u0437\u0438\u0446\u0438\u0438"}},tableForm:{search:"\u041D\u0430\u0439\u0442\u0438",reset:"\u0421\u0431\u0440\u043E\u0441",submit:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",collapsed:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",inputPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",selectPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"},alert:{clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",selected:"\u0412\u044B\u0431\u0440\u0430\u043D\u043E",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},pagination:{total:{range:" ",total:"\u0438\u0437",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"}},tableToolBar:{leftPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043B\u0435\u0432\u0430",rightPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043F\u0440\u0430\u0432\u0430",noPin:"\u041E\u0442\u043A\u0440\u0435\u043F\u0438\u0442\u044C",leftFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043B\u0435\u0432\u0430",rightFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043F\u0440\u0430\u0432\u0430",noFixedTitle:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E",reset:"\u0421\u0431\u0440\u043E\u0441",columnDisplay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0441\u0442\u043E\u043B\u0431\u0446\u0430",columnSetting:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",fullScreen:"\u041F\u043E\u043B\u043D\u044B\u0439 \u044D\u043A\u0440\u0430\u043D",exitFullScreen:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",reload:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",density:"\u0420\u0430\u0437\u043C\u0435\u0440",densityDefault:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",densityLarger:"\u0411\u043E\u043B\u044C\u0448\u043E\u0439",densityMiddle:"\u0421\u0440\u0435\u0434\u043D\u0438\u0439",densitySmall:"\u0421\u0436\u0430\u0442\u044B\u0439"},stepsForm:{next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439",submit:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C"},loginForm:{submitText:"\u0412\u0445\u043E\u0434"},editableTable:{action:{save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",add:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0440\u044F\u0434 \u0434\u0430\u043D\u043D\u044B\u0445"}},switch:{open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0439 \u0447\u0435\u043C\u043F\u0438\u043E\u043D\u0430\u0442 \u043C\u0438\u0440\u0430 \u043F\u043E \u0442\u0435\u043D\u043D\u0438\u0441\u0443",close:"\u041F\u043E \u0430\u0434\u0440\u0435\u0441\u0443:"}},Gi={moneySymbol:"\u20AC",deleteThisLine:"Odstr\xE1ni\u0165 tento riadok",copyThisLine:"Skop\xEDrujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vy\u010Disti\u0165",confirm:"Potvr\u010Fte",itemUnit:"Polo\u017Eky"}},tableForm:{search:"Vyhlada\u0165",reset:"Resetova\u0165",submit:"Odosla\u0165",collapsed:"Rozbali\u0165",expand:"Zbali\u0165",inputPlaceholder:"Pros\xEDm, zadajte",selectPlaceholder:"Pros\xEDm, vyberte"},alert:{clear:"Vy\u010Disti\u0165",selected:"Vybran\xFD",item:"Polo\u017Eka"},pagination:{total:{range:" ",total:"z",item:"polo\u017Eiek"}},tableToolBar:{leftPin:"Pripn\xFA\u0165 v\u013Eavo",rightPin:"Pripn\xFA\u0165 vpravo",noPin:"Odopnut\xE9",leftFixedTitle:"Fixovan\xE9 na \u013Eavo",rightFixedTitle:"Fixovan\xE9 na pravo",noFixedTitle:"Nefixovan\xE9",reset:"Resetova\u0165",columnDisplay:"Zobrazenie st\u013Apcov",columnSetting:"Nastavenia",fullScreen:"Cel\xE1 obrazovka",exitFullScreen:"Ukon\u010Di\u0165 cel\xFA obrazovku",reload:"Obnovi\u0165",density:"Hustota",densityDefault:"Predvolen\xE9",densityLarger:"V\xE4\u010D\u0161ie",densityMiddle:"Stredn\xE9",densitySmall:"Kompaktn\xE9"},stepsForm:{next:"\u010Eal\u0161ie",prev:"Predch\xE1dzaj\xFAce",submit:"Potvrdi\u0165"},loginForm:{submitText:"Prihl\xE1si\u0165 sa"},editableTable:{onlyOneLineEditor:"Upravova\u0165 mo\u017Eno iba jeden riadok",action:{save:"Ulo\u017Ei\u0165",cancel:"Zru\u0161i\u0165",delete:"Odstr\xE1ni\u0165",add:"prida\u0165 riadok \xFAdajov"}},switch:{open:"otvori\u0165",close:"zavrie\u0165"}},po={moneySymbol:"RSD",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Prona\u0111i",reset:"Resetuj",submit:"Po\u0161alji",collapsed:"Pro\u0161iri",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"O\u010Disti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zaka\u010Di levo",rightPin:"Zaka\u010Di desno",noPin:"Nije zaka\u010Deno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Pode\u0161avanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osve\u017Ei",density:"Veli\u010Dina",densityDefault:"Podrazumevana",densityLarger:"Ve\u0107a",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sa\u010Duvaj",cancel:"Poni\u0161ti",delete:"Obri\u0161i",add:"dodajte red podataka"}},switch:{open:"\u041E\u0442\u0432\u043E\u0440\u0438\u0442\u0435",close:"\u0417\u0430\u0442\u0432\u043E\u0440\u0438\u0442\u0435"}},si={moneySymbol:"\u0E3F",deleteThisLine:"\u0E25\u0E1A\u0E1A\u0E23\u0E23\u0E17\u0E31\u0E14\u0E19\u0E35\u0E49",copyThisLine:"\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E1A\u0E23\u0E23\u0E17\u0E31\u0E14\u0E19\u0E35\u0E49",form:{lightFilter:{more:"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",clear:"\u0E0A\u0E31\u0E14\u0E40\u0E08\u0E19",confirm:"\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19",itemUnit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}},tableForm:{search:"\u0E2A\u0E2D\u0E1A\u0E16\u0E32\u0E21",reset:"\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15",submit:"\u0E2A\u0E48\u0E07",collapsed:"\u0E02\u0E22\u0E32\u0E22",expand:"\u0E17\u0E23\u0E38\u0E14",inputPlaceholder:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E1B\u0E49\u0E2D\u0E19",selectPlaceholder:"\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E25\u0E37\u0E2D\u0E01"},alert:{clear:"\u0E0A\u0E31\u0E14\u0E40\u0E08\u0E19",selected:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27",item:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"},pagination:{total:{range:" ",total:"\u0E02\u0E2D\u0E07",item:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}},tableToolBar:{leftPin:"\u0E1B\u0E31\u0E01\u0E2B\u0E21\u0E38\u0E14\u0E44\u0E1B\u0E17\u0E32\u0E07\u0E0B\u0E49\u0E32\u0E22",rightPin:"\u0E1B\u0E31\u0E01\u0E2B\u0E21\u0E38\u0E14\u0E44\u0E1B\u0E17\u0E32\u0E07\u0E02\u0E27\u0E32",noPin:"\u0E40\u0E25\u0E34\u0E01\u0E15\u0E23\u0E36\u0E07\u0E41\u0E25\u0E49\u0E27",leftFixedTitle:"\u0E41\u0E01\u0E49\u0E44\u0E02\u0E14\u0E49\u0E32\u0E19\u0E0B\u0E49\u0E32\u0E22",rightFixedTitle:"\u0E41\u0E01\u0E49\u0E44\u0E02\u0E14\u0E49\u0E32\u0E19\u0E02\u0E27\u0E32",noFixedTitle:"\u0E44\u0E21\u0E48\u0E04\u0E07\u0E17\u0E35\u0E48",reset:"\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15",columnDisplay:"\u0E01\u0E32\u0E23\u0E41\u0E2A\u0E14\u0E07\u0E04\u0E2D\u0E25\u0E31\u0E21\u0E19\u0E4C",columnSetting:"\u0E01\u0E32\u0E23\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32",fullScreen:"\u0E40\u0E15\u0E47\u0E21\u0E08\u0E2D",exitFullScreen:"\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E42\u0E2B\u0E21\u0E14\u0E40\u0E15\u0E47\u0E21\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",reload:"\u0E23\u0E35\u0E40\u0E1F\u0E23\u0E0A",density:"\u0E04\u0E27\u0E32\u0E21\u0E2B\u0E19\u0E32\u0E41\u0E19\u0E48\u0E19",densityDefault:"\u0E04\u0E48\u0E32\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",densityLarger:"\u0E02\u0E19\u0E32\u0E14\u0E43\u0E2B\u0E0D\u0E48\u0E02\u0E36\u0E49\u0E19",densityMiddle:"\u0E01\u0E25\u0E32\u0E07",densitySmall:"\u0E01\u0E30\u0E17\u0E31\u0E14\u0E23\u0E31\u0E14"},stepsForm:{next:"\u0E16\u0E31\u0E14\u0E44\u0E1B",prev:"\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",submit:"\u0E40\u0E2A\u0E23\u0E47\u0E08"},loginForm:{submitText:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A"},editableTable:{onlyOneLineEditor:"\u0E41\u0E01\u0E49\u0E44\u0E02\u0E44\u0E14\u0E49\u0E40\u0E1E\u0E35\u0E22\u0E07\u0E1A\u0E23\u0E23\u0E17\u0E31\u0E14\u0E40\u0E14\u0E35\u0E22\u0E27\u0E40\u0E17\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19",action:{save:"\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01",cancel:"\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",delete:"\u0E25\u0E1A",add:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E41\u0E16\u0E27\u0E02\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25"}},switch:{open:"\u0E40\u0E1B\u0E34\u0E14",close:"\u0E1B\u0E34\u0E14"}},Zi={moneySymbol:"\u20BA",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"\xD6\u011Feler"}},tableForm:{search:"Filtrele",reset:"S\u0131f\u0131rla",submit:"G\xF6nder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer girin",selectPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer se\xE7in"},alert:{clear:"Temizle",selected:"Se\xE7ili",item:"\xD6\u011Fe"},pagination:{total:{range:" ",total:"Toplam",item:"\xD6\u011Fe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sa\u011Fa sabitle",noPin:"Sabitlemeyi kald\u0131r",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sa\u011Fa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"S\u0131f\u0131rla",columnDisplay:"Kolon G\xF6r\xFCn\xFCm\xFC",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan \xC7\u0131k",reload:"Yenile",density:"Kal\u0131nl\u0131k",densityDefault:"Varsay\u0131lan",densityLarger:"B\xFCy\xFCk",densityMiddle:"Orta",densitySmall:"K\xFC\xE7\xFCk"},stepsForm:{next:"S\u0131radaki",prev:"\xD6nceki",submit:"G\xF6nder"},loginForm:{submitText:"Giri\u015F Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazge\xE7",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"a\xE7\u0131k",close:"kapatmak"}},Va={moneySymbol:"\u20AB",form:{lightFilter:{more:"Nhi\u1EC1u h\u01A1n",clear:"Trong",confirm:"X\xE1c nh\u1EADn",itemUnit:"M\u1EE5c"}},tableForm:{search:"T\xECm ki\u1EBFm",reset:"L\xE0m l\u1EA1i",submit:"G\u1EEDi \u0111i",collapsed:"M\u1EDF r\u1ED9ng",expand:"Thu g\u1ECDn",inputPlaceholder:"nh\u1EADp d\u1EEF li\u1EC7u",selectPlaceholder:"Vui l\xF2ng ch\u1ECDn"},alert:{clear:"X\xF3a",selected:"\u0111\xE3 ch\u1ECDn",item:"m\u1EE5c"},pagination:{total:{range:" ",total:"tr\xEAn",item:"m\u1EB7t h\xE0ng"}},tableToolBar:{leftPin:"Ghim tr\xE1i",rightPin:"Ghim ph\u1EA3i",noPin:"B\u1ECF ghim",leftFixedTitle:"C\u1ED1 \u0111\u1ECBnh tr\xE1i",rightFixedTitle:"C\u1ED1 \u0111\u1ECBnh ph\u1EA3i",noFixedTitle:"Ch\u01B0a c\u1ED1 \u0111\u1ECBnh",reset:"L\xE0m l\u1EA1i",columnDisplay:"C\u1ED9t hi\u1EC3n th\u1ECB",columnSetting:"C\u1EA5u h\xECnh",fullScreen:"Ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",exitFullScreen:"Tho\xE1t ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",reload:"L\xE0m m\u1EDBi",density:"M\u1EADt \u0111\u1ED9 hi\u1EC3n th\u1ECB",densityDefault:"M\u1EB7c \u0111\u1ECBnh",densityLarger:"M\u1EB7c \u0111\u1ECBnh",densityMiddle:"Trung b\xECnh",densitySmall:"Ch\u1EADt"},stepsForm:{next:"Sau",prev:"Tr\u01B0\u1EDBc",submit:"K\u1EBFt th\xFAc"},loginForm:{submitText:"\u0110\u0103ng nh\u1EADp"},editableTable:{action:{save:"C\u1EE9u",cancel:"H\u1EE7y",delete:"X\xF3a",add:"th\xEAm m\u1ED9t h\xE0ng d\u1EEF li\u1EC7u"}},switch:{open:"m\u1EDF",close:"\u0111\xF3ng"}},Bi={moneySymbol:"\uFFE5",deleteThisLine:"\u5220\u9664\u6B64\u9879",copyThisLine:"\u590D\u5236\u6B64\u9879",form:{lightFilter:{more:"\u66F4\u591A\u7B5B\u9009",clear:"\u6E05\u9664",confirm:"\u786E\u8BA4",itemUnit:"\u9879"}},tableForm:{search:"\u67E5\u8BE2",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u5F00",expand:"\u6536\u8D77",inputPlaceholder:"\u8BF7\u8F93\u5165",selectPlaceholder:"\u8BF7\u9009\u62E9"},alert:{clear:"\u53D6\u6D88\u9009\u62E9",selected:"\u5DF2\u9009\u62E9",item:"\u9879"},pagination:{total:{range:"\u7B2C",total:"\u6761/\u603B\u5171",item:"\u6761"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5728\u5217\u9996",rightPin:"\u56FA\u5B9A\u5728\u5217\u5C3E",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u4FA7",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u4FA7",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8BBE\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7D27\u51D1"},stepsForm:{next:"\u4E0B\u4E00\u6B65",prev:"\u4E0A\u4E00\u6B65",submit:"\u63D0\u4EA4"},loginForm:{submitText:"\u767B\u5F55"},editableTable:{onlyOneLineEditor:"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C",action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",add:"\u6DFB\u52A0\u4E00\u884C\u6570\u636E"}},switch:{open:"\u6253\u5F00",close:"\u5173\u95ED"}},$o={moneySymbol:"NT$",deleteThisLine:"\u522A\u9664\u6B64\u9879",copyThisLine:"\u8907\u88FD\u6B64\u9879",form:{lightFilter:{more:"\u66F4\u591A\u7BE9\u9078",clear:"\u6E05\u9664",confirm:"\u78BA\u8A8D",itemUnit:"\u9805"}},tableForm:{search:"\u67E5\u8A62",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u6536\u8D77",inputPlaceholder:"\u8ACB\u8F38\u5165",selectPlaceholder:"\u8ACB\u9078\u64C7"},alert:{clear:"\u53D6\u6D88\u9078\u64C7",selected:"\u5DF2\u9078\u64C7",item:"\u9805"},pagination:{total:{range:"\u7B2C",total:"\u689D/\u7E3D\u5171",item:"\u689D"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5230\u5DE6\u908A",rightPin:"\u56FA\u5B9A\u5230\u53F3\u908A",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u5074",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u5074",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8A2D\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8A8D",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7DCA\u6E4A"},stepsForm:{next:"\u4E0B\u4E00\u6B65",prev:"\u4E0A\u4E00\u6B65",submit:"\u5B8C\u6210"},loginForm:{submitText:"\u767B\u5165"},editableTable:{onlyOneLineEditor:"\u53EA\u80FD\u540C\u6642\u7DE8\u8F2F\u4E00\u884C",action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664",add:"\u65B0\u589E\u4E00\u884C\u8CC7\u6599"}},switch:{open:"\u6253\u958B",close:"\u95DC\u9589"}};function Vs(C,i,a){var l=i.replace(/\[(\d+)\]/g,".$1").split("."),u=C,E=a,P=(0,Xd.Z)(l),j;try{for(P.s();!(j=P.n()).done;){var H=j.value;if(E=Object(u)[H],u=Object(u)[H],E===void 0)return a}}catch(X){P.e(X)}finally{P.f()}return E}var Cs=function(i,a){return{getMessage:function(u,E){return Vs(a,u,E)||E},locale:i}},vs=Cs("mn_MN",Ta),Vl=Cs("ar_EG",Sf),ou=Cs("zh_CN",Bi),Xf=Cs("en_US",Id),pu=Cs("en_GB",Nu),sf=Cs("vi_VN",Va),Jf=Cs("it_IT",zc),Vd=Cs("ja_JP",od),rv=Cs("es_ES",Ev),Jv=Cs("ca_ES",Bf),Fg=Cs("ru_RU",Ii),Zv=Cs("sr_RS",po),ry=Cs("ms_MY",eo),Xh=Cs("zh_TW",$o),P0=Cs("fr_FR",s_),t0=Cs("pt_BR",qi),le=Cs("ko_KR",ri),Ce=Cs("id_ID",qo),Xe=Cs("de_DE",qu),vn=Cs("fa_IR",Rv),or=Cs("tr_TR",Zi),Qr=Cs("pl_PL",Po),Oa=Cs("hr_",ps),ki=Cs("th_TH",si),Oo=Cs("cs_cz",cd),cl=Cs("sk_SK",Gi),Lu=Cs("he_IL",wi),Dd={"mn-MN":vs,"ar-EG":Vl,"zh-CN":ou,"en-US":Xf,"en-GB":pu,"vi-VN":sf,"it-IT":Jf,"ja-JP":Vd,"es-ES":rv,"ca-ES":Jv,"ru-RU":Fg,"sr-RS":Zv,"ms-MY":ry,"zh-TW":Xh,"fr-FR":P0,"pt-BR":t0,"ko-KR":le,"id-ID":Ce,"de-DE":Xe,"fa-IR":vn,"tr-TR":or,"pl-PL":Qr,"hr-HR":Oa,"th-TH":ki,"cs-CZ":Oo,"sk-SK":cl,"he-IL":Lu},pc=Object.keys(Dd),Uf=function(i){var a=(i||"zh-CN").toLocaleLowerCase();return pc.find(function(l){var u=l.toLocaleLowerCase();return u.includes(a)})},bd=o(9948),Cf,ss={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911",colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff7875",colorInfo:"#1677ff",colorTextBase:"#000",colorBgBase:"#fff",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInQuint:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:4,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,"blue-1":"#e6f4ff","blue-2":"#bae0ff","blue-3":"#91caff","blue-4":"#69b1ff","blue-5":"#4096ff","blue-6":"#1677ff","blue-7":"#0958d9","blue-8":"#003eb3","blue-9":"#002c8c","blue-10":"#001d66","purple-1":"#f9f0ff","purple-2":"#efdbff","purple-3":"#d3adf7","purple-4":"#b37feb","purple-5":"#9254de","purple-6":"#722ed1","purple-7":"#531dab","purple-8":"#391085","purple-9":"#22075e","purple-10":"#120338","cyan-1":"#e6fffb","cyan-2":"#b5f5ec","cyan-3":"#87e8de","cyan-4":"#5cdbd3","cyan-5":"#36cfc9","cyan-6":"#13c2c2","cyan-7":"#08979c","cyan-8":"#006d75","cyan-9":"#00474f","cyan-10":"#002329","green-1":"#f6ffed","green-2":"#d9f7be","green-3":"#b7eb8f","green-4":"#95de64","green-5":"#73d13d","green-6":"#52c41a","green-7":"#389e0d","green-8":"#237804","green-9":"#135200","green-10":"#092b00","magenta-1":"#fff0f6","magenta-2":"#ffd6e7","magenta-3":"#ffadd2","magenta-4":"#ff85c0","magenta-5":"#f759ab","magenta-6":"#eb2f96","magenta-7":"#c41d7f","magenta-8":"#9e1068","magenta-9":"#780650","magenta-10":"#520339","pink-1":"#fff0f6","pink-2":"#ffd6e7","pink-3":"#ffadd2","pink-4":"#ff85c0","pink-5":"#f759ab","pink-6":"#eb2f96","pink-7":"#c41d7f","pink-8":"#9e1068","pink-9":"#780650","pink-10":"#520339","red-1":"#fff1f0","red-2":"#ffccc7","red-3":"#ffa39e","red-4":"#ff7875","red-5":"#ff4d4f","red-6":"#f5222d","red-7":"#cf1322","red-8":"#a8071a","red-9":"#820014","red-10":"#5c0011","orange-1":"#fff7e6","orange-2":"#ffe7ba","orange-3":"#ffd591","orange-4":"#ffc069","orange-5":"#ffa940","orange-6":"#fa8c16","orange-7":"#d46b08","orange-8":"#ad4e00","orange-9":"#873800","orange-10":"#612500","yellow-1":"#feffe6","yellow-2":"#ffffb8","yellow-3":"#fffb8f","yellow-4":"#fff566","yellow-5":"#ffec3d","yellow-6":"#fadb14","yellow-7":"#d4b106","yellow-8":"#ad8b00","yellow-9":"#876800","yellow-10":"#614700","volcano-1":"#fff2e8","volcano-2":"#ffd8bf","volcano-3":"#ffbb96","volcano-4":"#ff9c6e","volcano-5":"#ff7a45","volcano-6":"#fa541c","volcano-7":"#d4380d","volcano-8":"#ad2102","volcano-9":"#871400","volcano-10":"#610b00","geekblue-1":"#f0f5ff","geekblue-2":"#d6e4ff","geekblue-3":"#adc6ff","geekblue-4":"#85a5ff","geekblue-5":"#597ef7","geekblue-6":"#2f54eb","geekblue-7":"#1d39c4","geekblue-8":"#10239e","geekblue-9":"#061178","geekblue-10":"#030852","gold-1":"#fffbe6","gold-2":"#fff1b8","gold-3":"#ffe58f","gold-4":"#ffd666","gold-5":"#ffc53d","gold-6":"#faad14","gold-7":"#d48806","gold-8":"#ad6800","gold-9":"#874d00","gold-10":"#613400","lime-1":"#fcffe6","lime-2":"#f4ffb8","lime-3":"#eaff8f","lime-4":"#d3f261","lime-5":"#bae637","lime-6":"#a0d911","lime-7":"#7cb305","lime-8":"#5b8c00","lime-9":"#3f6600","lime-10":"#254000",colorText:"rgba(0, 0, 0, 0.88)",colorTextSecondary:"rgba(0, 0, 0, 0.65)",colorTextTertiary:"rgba(0, 0, 0, 0.45)",colorTextQuaternary:"rgba(0, 0, 0, 0.25)",colorFill:"rgba(0, 0, 0, 0.15)",colorFillSecondary:"rgba(0, 0, 0, 0.06)",colorFillTertiary:"rgba(0, 0, 0, 0.04)",colorFillQuaternary:"rgba(0, 0, 0, 0.02)",colorBgLayout:"hsl(220,23%,97%)",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",colorBgSpotlight:"rgba(0, 0, 0, 0.85)",colorBorder:"#d9d9d9",colorBorderSecondary:"#f0f0f0",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryActive:"#0958d9",colorPrimaryTextHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorSuccessBg:"#f6ffed",colorSuccessBgHover:"#d9f7be",colorSuccessBorder:"#b7eb8f",colorSuccessBorderHover:"#95de64",colorSuccessHover:"#95de64",colorSuccessActive:"#389e0d",colorSuccessTextHover:"#73d13d",colorSuccessText:"#52c41a",colorSuccessTextActive:"#389e0d",colorErrorBg:"#fff2f0",colorErrorBgHover:"#fff1f0",colorErrorBorder:"#ffccc7",colorErrorBorderHover:"#ffa39e",colorErrorHover:"#ffa39e",colorErrorActive:"#d9363e",colorErrorTextHover:"#ff7875",colorErrorText:"#ff4d4f",colorErrorTextActive:"#d9363e",colorWarningBg:"#fffbe6",colorWarningBgHover:"#fff1b8",colorWarningBorder:"#ffe58f",colorWarningBorderHover:"#ffd666",colorWarningHover:"#ffd666",colorWarningActive:"#d48806",colorWarningTextHover:"#ffc53d",colorWarningText:"#faad14",colorWarningTextActive:"#d48806",colorInfoBg:"#e6f4ff",colorInfoBgHover:"#bae0ff",colorInfoBorder:"#91caff",colorInfoBorderHover:"#69b1ff",colorInfoHover:"#69b1ff",colorInfoActive:"#0958d9",colorInfoTextHover:"#4096ff",colorInfoText:"#1677ff",colorInfoTextActive:"#0958d9",colorBgMask:"rgba(0, 0, 0, 0.45)",colorWhite:"#fff",sizeXXL:48,sizeXL:32,sizeLG:24,sizeMD:20,sizeMS:16,size:16,sizeSM:12,sizeXS:8,sizeXXS:4,controlHeightSM:24,controlHeightXS:16,controlHeightLG:40,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",fontSizes:[12,14,16,20,24,30,38,46,56,68],lineHeights:[1.6666666666666667,1.5714285714285714,1.5,1.4,1.3333333333333333,1.2666666666666666,1.2105263157894737,1.173913043478261,1.1428571428571428,1.1176470588235294],lineWidthBold:2,borderRadiusXS:1,borderRadiusSM:4,borderRadiusLG:8,borderRadiusOuter:4,colorLink:"#1677ff",colorLinkHover:"#69b1ff",colorLinkActive:"#0958d9",colorFillContent:"rgba(0, 0, 0, 0.06)",colorFillContentHover:"rgba(0, 0, 0, 0.15)",colorFillAlter:"rgba(0, 0, 0, 0.02)",colorBgContainerDisabled:"rgba(0, 0, 0, 0.04)",colorBorderBg:"#ffffff",colorSplit:"rgba(5, 5, 5, 0.06)",colorTextPlaceholder:"rgba(0, 0, 0, 0.25)",colorTextDisabled:"rgba(0, 0, 0, 0.25)",colorTextHeading:"rgba(0, 0, 0, 0.88)",colorTextLabel:"rgba(0, 0, 0, 0.65)",colorTextDescription:"rgba(0, 0, 0, 0.45)",colorTextLightSolid:"#fff",colorHighlight:"#ff7875",colorBgTextHover:"rgba(0, 0, 0, 0.06)",colorBgTextActive:"rgba(0, 0, 0, 0.15)",colorIcon:"rgba(0, 0, 0, 0.45)",colorIconHover:"rgba(0, 0, 0, 0.88)",colorErrorOutline:"rgba(255, 38, 5, 0.06)",colorWarningOutline:"rgba(255, 215, 5, 0.1)",fontSizeSM:12,fontSizeLG:16,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,lineHeightHeading1:1.2105263157894737,lineHeightHeading2:1.2666666666666666,lineHeightHeading3:1.3333333333333333,lineHeightHeading4:1.4,lineHeightHeading5:1.5,controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"rgba(0, 0, 0, 0.04)",controlItemBgActive:"#e6f4ff",controlItemBgActiveHover:"#bae0ff",controlItemBgActiveDisabled:"rgba(0, 0, 0, 0.15)",controlTmpOutline:"rgba(0, 0, 0, 0.02)",controlOutline:"rgba(5, 145, 255, 0.1)",fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:4,paddingXS:8,paddingSM:12,padding:16,paddingMD:20,paddingLG:24,paddingXL:32,paddingContentHorizontalLG:24,paddingContentVerticalLG:16,paddingContentHorizontal:16,paddingContentVertical:12,paddingContentHorizontalSM:16,paddingContentVerticalSM:8,marginXXS:4,marginXS:8,marginSM:12,margin:16,marginMD:20,marginLG:24,marginXL:32,marginXXL:48,boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.03),0 1px 6px -1px rgba(0, 0, 0, 0.02),0 2px 4px 0 rgba(0, 0, 0, 0.02)",boxShadowSecondary:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)",screenXS:480,screenXSMin:480,screenXSMax:479,screenSM:576,screenSMMin:576,screenSMMax:575,screenMD:768,screenMDMin:768,screenMDMax:767,screenLG:992,screenLGMin:992,screenLGMax:991,screenXL:1200,screenXLMin:1200,screenXLMax:1199,screenXXL:1600,screenXXLMin:1600,screenXXLMax:1599,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:"0 1px 2px -2px rgba(0, 0, 0, 0.16),0 3px 6px 0 rgba(0, 0, 0, 0.12),0 5px 12px 4px rgba(0, 0, 0, 0.09)",boxShadowDrawerRight:"-6px 0 16px 0 rgba(0, 0, 0, 0.08),-3px 0 6px -4px rgba(0, 0, 0, 0.12),-9px 0 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerLeft:"6px 0 16px 0 rgba(0, 0, 0, 0.08),3px 0 6px -4px rgba(0, 0, 0, 0.12),9px 0 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerUp:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerDown:"0 -6px 16px 0 rgba(0, 0, 0, 0.08),0 -3px 6px -4px rgba(0, 0, 0, 0.12),0 -9px 28px 8px rgba(0, 0, 0, 0.05)",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",_tokenKey:"19w80ff",_hashId:"css-dev-only-do-not-override-i2zu9q"},Uo=function(i){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,l=3735928559^a,u=1103547991^a,E=0,P;E<i.length;E++)P=i.charCodeAt(E),l=Math.imul(l^P,2654435761),u=Math.imul(u^P,1597334677);return l=Math.imul(l^l>>>16,2246822507)^Math.imul(u^u>>>13,3266489909),u=Math.imul(u^u>>>16,2246822507)^Math.imul(l^l>>>13,3266489909),4294967296*(2097151&u)+(l>>>0)},hs=Qn(function(C){return C}),jl={theme:hs,token:(0,Jt.Z)((0,Jt.Z)({},ss),Dp==null||(Cf=Dp.defaultAlgorithm)===null||Cf===void 0?void 0:Cf.call(Dp,Dp==null?void 0:Dp.defaultSeed)),hashId:"pro-".concat(Uo(JSON.stringify(ss)))},Gl=function(){return jl},Jd=o(5501),Ku=o(82195),Nd=null,pp=null,Rd=function(){var i,a;return!(typeof Ku!="undefined"&&(((i="production")===null||i===void 0?void 0:i.toUpperCase())==="TEST"||((a="production")===null||a===void 0?void 0:a.toUpperCase())==="DEV"))},uh=K.createContext({intl:(0,Jt.Z)((0,Jt.Z)({},ou),{},{locale:"default"}),valueTypeMap:{},theme:hs,hashed:!0,dark:!1,token:ss}),yC=uh.Consumer,bC=function(){var i=useSWRConfig(),a=i.cache;return useEffect(function(){return function(){a.clear()}},[]),null},Ny=function(i){var a,l=i.children,u=i.dark,E=i.valueTypeMap,P=i.autoClearCache,j=P===void 0?!1:P,H=i.token,X=i.prefixCls,ee=useContext(AntdConfigProvider.ConfigContext),se=ee.locale,Se=ee.getPrefixCls,Re=_objectWithoutProperties(ee,Nd),Be=(a=proTheme.useToken)===null||a===void 0?void 0:a.call(proTheme),Ye=useContext(uh),ht=X?".".concat(X):".".concat(Se(),"-pro"),Tt="."+Se(),Dt="".concat(ht),Kt=useMemo(function(){return getLayoutDesignToken(H||{},Be.token||defaultToken)},[H,Be.token]),gn=useMemo(function(){var za,xi=se==null?void 0:se.locale,Di=findIntlKeyByAntdLocaleKey(xi),Si=xi&&((za=Ye.intl)===null||za===void 0?void 0:za.locale)==="default"?intlMap[Di]:Ye.intl||intlMap[Di];return _objectSpread(_objectSpread({},Ye),{},{dark:u!=null?u:Ye.dark,token:merge(Ye.token,Be.token,{proComponentsCls:ht,antCls:Tt,themeId:Be.theme.id,layout:Kt}),intl:Si||zhCNIntl})},[se==null?void 0:se.locale,Ye,u,Be.token,Be.theme.id,ht,Tt,Kt]),bn=_objectSpread(_objectSpread({},gn.token||{}),{},{proComponentsCls:ht}),mn=useCacheToken(Be.theme,[Be.token,bn!=null?bn:{}],{salt:Dt,override:bn}),kn=_slicedToArray(mn,2),sr=kn[0],yr=kn[1],jr=useMemo(function(){return!(i.hashed===!1||Ye.hashed===!1)},[Ye.hashed,i.hashed]),zr=useMemo(function(){return i.hashed===!1||Ye.hashed===!1||Rd()===!1?"":yr},[yr,Ye.hashed,i.hashed]);useEffect(function(){dayjs.locale((se==null?void 0:se.locale)||"zh-cn")},[se==null?void 0:se.locale]);var va=useMemo(function(){var za=_objectSpread(_objectSpread({},Re.theme),{},{hashId:zr,hashed:jr&&Rd()});return _jsx(AntdConfigProvider,_objectSpread(_objectSpread({},Re),{},{theme:_objectSpread({},za),children:_jsx(uh.Provider,{value:_objectSpread(_objectSpread({},gn),{},{valueTypeMap:E||(gn==null?void 0:gn.valueTypeMap),token:sr,theme:Be.theme,hashed:jr,hashId:zr}),children:_jsxs(_Fragment,{children:[j&&_jsx(bC,{}),l]})})}))},[j,l,Se,zr,se,gn,sr]);return j?_jsx(SWRConfig,{value:{provider:function(){return new Map}},children:va}):va},P1=function(i){var a=i.needDeps,l=i.dark,u=i.token,E=useContext(uh),P=useContext(AntdConfigProvider.ConfigContext),j=P.locale,H=P.theme,X=_objectWithoutProperties(P,pp),ee=a&&E.hashId!==void 0&&Object.keys(i).sort().join("-")==="children-needDeps";if(ee)return _jsx(_Fragment,{children:i.children});var se=function(){var Be=l!=null?l:E.dark;return Be&&!Array.isArray(H==null?void 0:H.algorithm)?[proTheme.darkAlgorithm,H==null?void 0:H.algorithm].filter(Boolean):Be&&Array.isArray(H==null?void 0:H.algorithm)?[proTheme.darkAlgorithm].concat(_toConsumableArray((H==null?void 0:H.algorithm)||[])).filter(Boolean):H==null?void 0:H.algorithm},Se=_objectSpread(_objectSpread({},X),{},{locale:j||zh_CN,theme:omitUndefined(_objectSpread(_objectSpread({},H),{},{algorithm:se()}))});return _jsx(AntdConfigProvider,_objectSpread(_objectSpread({},Se),{},{children:_jsx(Ny,_objectSpread(_objectSpread({},i),{},{token:u}))}))};function Ly(){var C=useContext(AntdConfigProvider.ConfigContext),i=C.locale,a=useContext(uh),l=a.intl;return l&&l.locale!=="default"?l||zhCNIntl:i!=null&&i.locale&&intlMap[findIntlKeyByAntdLocaleKey(i.locale)]||zhCNIntl}uh.displayName="ProProvider";var n0=uh,Pm=null,Gw=function(i,a){return new TinyColor(i).setAlpha(a).toRgbString()},xC=function(i,a){var l=new TinyColor(i);return l.lighten(a).toHexString()},yE=function(){return typeof Dp=="undefined"||!Dp?x:Dp},bE=yE(),EC=bE.useToken,Qm=function(i){return{boxSizing:"border-box",margin:0,padding:0,color:i.colorText,fontSize:i.fontSize,lineHeight:i.lineHeight,listStyle:"none"}},Rm=function(i){return{color:i.colorLink,outline:"none",cursor:"pointer",transition:"color ".concat(i.motionDurationSlow),"&:focus, &:hover":{color:i.colorLinkHover},"&:active":{color:i.colorLinkActive}}};function Jh(C,i){var a,l=(0,K.useContext)(n0),u=l.token,E=u===void 0?{}:u,P=(0,K.useContext)(n0),j=P.hashId,H=j===void 0?"":j,X=P.theme,ee=EC(),se=ee.token,Se=(0,K.useContext)(ni.ZP.ConfigContext),Re=Se.getPrefixCls;return E.layout||(E=(0,Jt.Z)({},se)),E.proComponentsCls=(a=E.proComponentsCls)!==null&&a!==void 0?a:".".concat(Re("pro")),E.antCls=".".concat(Re()),{wrapSSR:Sd({theme:X,token:E,hashId:H,path:[C]},function(){return i(E)}),hashId:H}}var xE=function(i){var a,l,u=i.componentCls,E=i.antCls;return(0,$t.Z)({},"".concat(u,"-actions"),(l={marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none",display:"flex",gap:i.marginXS,background:i.colorBgContainer,borderBlockStart:"".concat(i.lineWidth,"px ").concat(i.lineType," ").concat(i.colorSplit),minHeight:42},(0,$t.Z)(l,"& > *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:i.colorTextSecondary,transition:"color 0.3s","&:hover":{color:i.colorPrimaryHover}}),(0,$t.Z)(l,"& > li > div",{flex:1,width:"100%",marginBlock:i.marginSM,marginInline:0,color:i.colorTextSecondary,textAlign:"center",a:{color:i.colorTextSecondary,transition:"color 0.3s","&:hover":{color:i.colorPrimaryHover}},div:(a={position:"relative",display:"block",minWidth:32,fontSize:i.fontSize,lineHeight:i.lineHeight,cursor:"pointer","&:hover":{color:i.colorPrimaryHover,transition:"color 0.3s"}},(0,$t.Z)(a,"a:not(".concat(E,`-btn),
|
||
> .anticon`),{display:"inline-block",width:"100%",color:i.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:i.colorPrimaryHover}}),(0,$t.Z)(a,".anticon",{fontSize:i.cardActionIconSize,lineHeight:"22px"}),a),"&:not(:last-child)":{borderInlineEnd:"".concat(i.lineWidth,"px ").concat(i.lineType," ").concat(i.colorSplit)}}),l))};function Kb(C){return Jh("ProCardActions",function(i){var a=(0,Jt.Z)((0,Jt.Z)({},i),{},{componentCls:".".concat(C),cardActionIconSize:16});return[xE(a)]})}var R0=function(i){var a=i.actions,l=i.prefixCls,u=Kb(l),E=u.wrapSSR,P=u.hashId;return Array.isArray(a)&&a!==null&&a!==void 0&&a.length?E((0,de.jsx)("ul",{className:ba()("".concat(l,"-actions"),P),children:a.map(function(j,H){return(0,de.jsx)("li",{style:{width:"".concat(100/a.length,"%"),padding:0,margin:0},className:ba()("".concat(l,"-actions-item"),P),children:j},"action-".concat(H))})})):E((0,de.jsx)("ul",{className:ba()("".concat(l,"-actions"),P),children:a}))},lp=R0,Vm=o(3305),Yb=["prefixCls","className","style","options","loading","multiple","bordered","onChange"],Fy=function(i){var a=i.prefixCls,l="".concat(a,"-loading-block");return(0,de.jsxs)("div",{className:"".concat(a,"-loading-content"),children:[(0,de.jsx)(ce.Z,{gutter:{xs:8,sm:8,md:8,lg:12},children:(0,de.jsx)(me.Z,{span:22,children:(0,de.jsx)("div",{className:l})})}),(0,de.jsxs)(ce.Z,{gutter:8,children:[(0,de.jsx)(me.Z,{span:8,children:(0,de.jsx)("div",{className:l})}),(0,de.jsx)(me.Z,{span:14,children:(0,de.jsx)("div",{className:l})})]}),(0,de.jsxs)(ce.Z,{gutter:8,children:[(0,de.jsx)(me.Z,{span:6,children:(0,de.jsx)("div",{className:l})}),(0,de.jsx)(me.Z,{span:16,children:(0,de.jsx)("div",{className:l})})]}),(0,de.jsxs)(ce.Z,{gutter:8,children:[(0,de.jsx)(me.Z,{span:13,children:(0,de.jsx)("div",{className:l})}),(0,de.jsx)(me.Z,{span:9,children:(0,de.jsx)("div",{className:l})})]}),(0,de.jsxs)(ce.Z,{gutter:8,children:[(0,de.jsx)(me.Z,{span:4,children:(0,de.jsx)("div",{className:l})}),(0,de.jsx)(me.Z,{span:3,children:(0,de.jsx)("div",{className:l})}),(0,de.jsx)(me.Z,{span:14,children:(0,de.jsx)("div",{className:l})})]})]})},EE=(0,K.createContext)(null),SC=function(i){var a=i.prefixCls,l=i.className,u=i.style,E=i.options,P=E===void 0?[]:E,j=i.loading,H=j===void 0?!1:j,X=i.multiple,ee=X===void 0?!1:X,se=i.bordered,Se=se===void 0?!0:se,Re=i.onChange,Be=(0,Ls.Z)(i,Yb),Ye=(0,K.useContext)(ni.ZP.ConfigContext),ht=(0,K.useCallback)(function(){return P==null?void 0:P.map(function(xi){return typeof xi=="string"?{title:xi,value:xi}:xi})},[P]),Tt=Ye.getPrefixCls("pro-checkcard",a),Dt="".concat(Tt,"-group"),Kt=(0,Vm.Z)(Be,["children","defaultValue","value","disabled","size"]),gn=oi(i.defaultValue,{value:i.value,onChange:i.onChange}),bn=(0,fa.Z)(gn,2),mn=bn[0],kn=bn[1],sr=(0,K.useRef)(new Map),yr=function(Di){var Si;(Si=sr.current)===null||Si===void 0||Si.set(Di,!0)},jr=function(Di){var Si;(Si=sr.current)===null||Si===void 0||Si.delete(Di)},zr=function(Di){if(!ee){var Si;Si=mn,Si===Di.value?Si=void 0:Si=Di.value,kn==null||kn(Si)}if(ee){var jo,ro,hi=[],io=mn,oo=io==null?void 0:io.includes(Di.value);hi=(0,wn.Z)(io||[]),oo||hi.push(Di.value),oo&&(hi=hi.filter(function(Ao){return Ao!==Di.value}));var Ki=ht(),Ji=(jo=hi)===null||jo===void 0||(ro=jo.filter(function(Ao){return sr.current.has(Ao)}))===null||ro===void 0?void 0:ro.sort(function(Ao,ks){var Lo=Ki.findIndex(function(Cl){return Cl.value===Ao}),Is=Ki.findIndex(function(Cl){return Cl.value===ks});return Lo-Is});kn(Ji)}},va=(0,K.useMemo)(function(){if(H)return new Array(P.length||K.Children.toArray(i.children).length||1).fill(0).map(function(Di,Si){return(0,de.jsx)(Jg,{loading:!0},Si)});if(P&&P.length>0){var xi=mn;return ht().map(function(Di){var Si;return(0,de.jsx)(Jg,{disabled:Di.disabled,size:(Si=Di.size)!==null&&Si!==void 0?Si:i.size,value:Di.value,checked:ee?xi==null?void 0:xi.includes(Di.value):xi===Di.value,onChange:Di.onChange,title:Di.title,avatar:Di.avatar,description:Di.description,cover:Di.cover},Di.value.toString())})}return i.children},[ht,H,ee,P,i.children,i.size,mn]),za=ba()(Dt,l);return(0,de.jsx)(EE.Provider,{value:{toggleOption:zr,bordered:Se,value:mn,disabled:i.disabled,size:i.size,loading:i.loading,multiple:i.multiple,registerValue:yr,cancelValue:jr},children:(0,de.jsx)("div",(0,Jt.Z)((0,Jt.Z)({className:za,style:u},Kt),{},{children:va}))})},CC=SC,wC=function(i){return{backgroundColor:i.colorPrimaryBg,borderColor:i.colorPrimary}},SE=function(i){return(0,$t.Z)({backgroundColor:i.colorBgContainerDisabled,borderColor:i.colorBorder,cursor:"not-allowed"},i.componentCls,{"&-description":{color:i.colorTextDisabled},"&-title":{color:i.colorTextDisabled},"&-avatar":{opacity:"0.25"}})},$w=new Fh("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Gp=function(i){var a;return(0,$t.Z)({},i.componentCls,(a={position:"relative",display:"inline-block",width:"320px",marginInlineEnd:"16px",marginBlockEnd:"16px",color:i.colorText,fontSize:i.fontSize,lineHeight:i.lineHeight,verticalAlign:"top",backgroundColor:i.colorBgContainer,borderRadius:i.borderRadius,cursor:"pointer",transition:"all 0.3s","&:last-child":{marginInlineEnd:0},"& + &":{marginInlineStart:"0 !important"},"&-bordered":{border:"".concat(i.lineWidth,"px solid ").concat(i.colorBorder)},"&-group":{display:"inline-block"}},(0,$t.Z)(a,"".concat(i.componentCls,"-loading"),{overflow:"hidden",userSelect:"none","&-content":(0,$t.Z)({paddingInline:i.padding,paddingBlock:i.paddingSM,p:{marginBlock:0,marginInline:0}},"".concat(i.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",animationName:$w,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"})}),(0,$t.Z)(a,"&:focus",wC(i)),(0,$t.Z)(a,"&-checked",(0,Jt.Z)((0,Jt.Z)({},wC(i)),{},{"&:after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,border:"6px solid ".concat(i.colorPrimary),borderBlockEnd:"6px solid transparent",borderInlineStart:"6px solid transparent",borderStartEndRadius:"2px",content:"''"}})),(0,$t.Z)(a,"&-disabled",SE(i)),(0,$t.Z)(a,"&[disabled]",SE(i)),(0,$t.Z)(a,"&-checked&-disabled",{"&:after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,border:"6px solid ".concat(i.colorTextDisabled),borderBlockEnd:"6px solid transparent",borderInlineStart:"6px solid transparent",borderStartEndRadius:"2px",content:"''"}}),(0,$t.Z)(a,"&-lg",{width:440}),(0,$t.Z)(a,"&-sm",{width:212}),(0,$t.Z)(a,"&-cover",{paddingInline:i.paddingXXS,paddingBlock:i.paddingXXS,img:{width:"100%",height:"100%",overflow:"hidden",borderRadius:i.borderRadius}}),(0,$t.Z)(a,"&-content",{display:"flex",paddingInline:i.paddingSM,paddingBlock:i.padding}),(0,$t.Z)(a,"&-body",{paddingInline:i.paddingSM,paddingBlock:i.padding}),(0,$t.Z)(a,"&-avatar-header",{display:"flex",alignItems:"center"}),(0,$t.Z)(a,"&-avatar",{paddingInlineEnd:8}),(0,$t.Z)(a,"&-detail",{overflow:"hidden",width:"100%","> div:not(:last-child)":{marginBlockEnd:4}}),(0,$t.Z)(a,"&-header",{display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:i.lineHeight,"&-left":{display:"flex",alignItems:"center",gap:i.sizeSM}}),(0,$t.Z)(a,"&-title",{overflow:"hidden",color:i.colorTextHeading,fontWeight:"500",fontSize:i.fontSize,whiteSpace:"nowrap",textOverflow:"ellipsis",display:"flex",alignItems:"center",justifyContent:"space-between"}),(0,$t.Z)(a,"&-description",{color:i.colorTextSecondary}),(0,$t.Z)(a,"&:not(".concat(i.componentCls,"-disabled)"),{"&:hover":{borderColor:i.colorPrimary}}),a))};function I_(C){return Jh("CheckCard",function(i){var a=(0,Jt.Z)((0,Jt.Z)({},i),{},{componentCls:".".concat(C)});return[Gp(a)]})}var D_=["prefixCls","className","avatar","title","description","cover","extra","style"],l_=function(i){var a,l=oi(i.defaultChecked||!1,{value:i.checked,onChange:i.onChange}),u=(0,fa.Z)(l,2),E=u[0],P=u[1],j=(0,K.useContext)(EE),H=(0,K.useContext)(ni.ZP.ConfigContext),X=H.getPrefixCls,ee=function(Lo){var Is,Cl;i==null||(Is=i.onClick)===null||Is===void 0||Is.call(i,Lo);var il=!E;j==null||(Cl=j.toggleOption)===null||Cl===void 0||Cl.call(j,{value:i.value}),P==null||P(il,Lo)},se=function(Lo){return Lo==="large"?"lg":Lo==="small"?"sm":""};(0,K.useEffect)(function(){var ks;return j==null||(ks=j.registerValue)===null||ks===void 0||ks.call(j,i.value),function(){var Lo;return j==null||(Lo=j.cancelValue)===null||Lo===void 0?void 0:Lo.call(j,i.value)}},[i.value]);var Se=function(Lo,Is){return(0,de.jsx)("div",{className:"".concat(Lo,"-cover"),children:typeof Is=="string"?(0,de.jsx)("img",{src:Is,alt:"checkcard"}):Is})},Re=i.prefixCls,Be=i.className,Ye=i.avatar,ht=i.title,Tt=i.description,Dt=i.cover,Kt=i.extra,gn=i.style,bn=gn===void 0?{}:gn,mn=(0,Ls.Z)(i,D_),kn=(0,Jt.Z)({},mn),sr=X("pro-checkcard",Re),yr=I_(sr),jr=yr.wrapSSR,zr=yr.hashId;kn.checked=E;var va=!1;if(j){var za;kn.disabled=i.disabled||j.disabled,kn.loading=i.loading||j.loading,kn.bordered=i.bordered||j.bordered,va=j.multiple;var xi=j.multiple?(za=j.value)===null||za===void 0?void 0:za.includes(i.value):j.value===i.value;kn.checked=kn.loading?!1:xi,kn.size=i.size||j.size}var Di=kn.disabled,Si=Di===void 0?!1:Di,jo=kn.size,ro=kn.loading,hi=kn.bordered,io=hi===void 0?!0:hi,oo=kn.checked,Ki=se(jo),Ji=ba()(sr,Be,zr,(a={},(0,$t.Z)(a,"".concat(sr,"-loading"),ro),(0,$t.Z)(a,"".concat(sr,"-").concat(Ki),Ki),(0,$t.Z)(a,"".concat(sr,"-checked"),oo),(0,$t.Z)(a,"".concat(sr,"-multiple"),va),(0,$t.Z)(a,"".concat(sr,"-disabled"),Si),(0,$t.Z)(a,"".concat(sr,"-bordered"),io),(0,$t.Z)(a,"".concat(sr,"-ghost"),i.ghost),a)),Ao=(0,K.useMemo)(function(){if(ro)return(0,de.jsx)(Fy,{prefixCls:sr||""});if(Dt)return Se(sr||"",Dt);var ks=Ye?(0,de.jsx)("div",{className:"".concat(sr,"-avatar ").concat(zr).trim(),children:typeof Ye=="string"?(0,de.jsx)(yi.C,{size:48,shape:"square",src:Ye}):Ye}):null,Lo=(ht!=null?ht:Kt)!=null&&(0,de.jsxs)("div",{className:"".concat(sr,"-header ").concat(zr).trim(),children:[(0,de.jsxs)("div",{className:"".concat(sr,"-header-left ").concat(zr).trim(),children:[(0,de.jsx)("div",{className:"".concat(sr,"-title ").concat(zr).trim(),children:ht}),i.subTitle?(0,de.jsx)("div",{className:"".concat(sr,"-subTitle ").concat(zr).trim(),children:i.subTitle}):null]}),Kt&&(0,de.jsx)("div",{className:"".concat(sr,"-extra ").concat(zr).trim(),children:Kt})]}),Is=Tt?(0,de.jsx)("div",{className:"".concat(sr,"-description ").concat(zr).trim(),children:Tt}):null,Cl=ba()("".concat(sr,"-content"),zr,(0,$t.Z)({},"".concat(sr,"-avatar-header"),ks&&Lo&&!Is));return(0,de.jsxs)("div",{className:Cl,children:[ks,Lo||Is?(0,de.jsxs)("div",{className:"".concat(sr,"-detail ").concat(zr).trim(),children:[Lo,Is]}):null]})},[Ye,ro,Dt,Tt,Kt,zr,sr,i.subTitle,ht]);return jr((0,de.jsxs)("div",{className:Ji,style:bn,onClick:function(Lo){!ro&&!Si&&ee(Lo)},onMouseEnter:i.onMouseEnter,children:[Ao,i.children?(0,de.jsx)("div",{className:ba()("".concat(sr,"-body")),style:i.bodyStyle,children:i.children}):null,i.actions?(0,de.jsx)(lp,{actions:i.actions,prefixCls:sr}):null]}))};l_.Group=CC;var Jg=l_,c_=o(44545),Qg=o(30011),Xb=o.n(Qg),r0=at.Z.Item,a0=function(i){var a=i.basicInfo,l=i.domainId,u=i.onCancel,E=i.onSubmit,P=(0,K.useState)(a),j=(0,z.Z)(P,2),H=j[0],X=j[1],ee=(0,K.useState)(!1),se=(0,z.Z)(ee,2),Se=se[0],Re=se[1],Be=at.Z.useForm(),Ye=(0,z.Z)(Be,1),ht=Ye[0];(0,K.useEffect)(function(){ht.setFieldsValue(a)},[a]);var Tt=function(){var Kt=(0,G.Z)((0,L.Z)().mark(function gn(){var bn,mn,kn,sr,yr,jr;return(0,L.Z)().wrap(function(va){for(;;)switch(va.prev=va.next){case 0:return va.next=2,ht.validateFields();case 2:return bn=va.sent,mn=(0,Ie.Z)((0,Ie.Z)({},bn),{},{isUnique:1,domainId:l}),kn=(0,Ie.Z)((0,Ie.Z)({},H),mn),X(kn),Re(!0),va.next=9,(kn.id?dt.QB:dt.NY)(kn);case 9:sr=va.sent,yr=sr.code,jr=sr.msg,Re(!1),yr===200?E==null||E(kn):$.default.error(jr);case 14:case"end":return va.stop()}},gn)}));return function(){return Kt.apply(this,arguments)}}(),Dt=(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Le.Z,{onClick:u,children:"\u53D6\u6D88"}),(0,de.jsx)(Le.Z,{type:"primary",loading:Se,onClick:Tt,children:"\u786E\u5B9A"})]});return(0,de.jsx)(wt.Z,{width:640,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u6A21\u578B\u4FE1\u606F",open:!0,footer:Dt,onCancel:u,children:(0,de.jsxs)(at.Z,(0,Ie.Z)((0,Ie.Z)({},Xt.c),{},{form:ht,initialValues:(0,Ie.Z)({},H),className:St().form,children:[(0,de.jsx)(r0,{name:"name",label:"\u6A21\u578B\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6A21\u578B\u540D\u79F0\uFF01"}],children:(0,de.jsx)(De.Z,{placeholder:"\u6A21\u578B\u540D\u79F0\u4E0D\u53EF\u91CD\u590D"})}),(0,de.jsx)(r0,{name:"bizName",label:"\u6A21\u578B\u82F1\u6587\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6A21\u578B\u82F1\u6587\u540D\u79F0\uFF01"}],children:(0,de.jsx)(De.Z,{placeholder:"\u8BF7\u8F93\u5165\u6A21\u578B\u82F1\u6587\u540D\u79F0"})}),(0,de.jsx)(r0,{name:"description",label:"\u6A21\u578B\u63CF\u8FF0",children:(0,de.jsx)(De.Z.TextArea,{placeholder:"\u6A21\u578B\u63CF\u8FF0"})}),(0,de.jsx)(r0,{name:"isUnique",label:"\u662F\u5426\u552F\u4E00",hidden:!0,children:(0,de.jsx)(gt.Z,{size:"small",checked:!0})})]}))})},O0=a0,i0=function(i){var a=i.modelList,l=i.disabledEdit,u=l===void 0?!1:l,E=i.onModelChange,P=i.domainManger,j=P.selectDomainId,H=P.selectModelId,X=(0,K.useState)({}),ee=(0,z.Z)(X,2),se=ee[0],Se=ee[1],Re=(0,K.useState)(!1),Be=(0,z.Z)(Re,2),Ye=Be[0],ht=Be[1],Tt=function(gn){var bn=gn.metricCnt,mn=gn.dimensionCnt;return(0,de.jsxs)("div",{className:St().overviewExtraContainer,children:[(0,de.jsx)("div",{className:St().extraWrapper,children:(0,de.jsxs)("div",{className:St().extraStatistic,children:[(0,de.jsx)("div",{className:St().extraTitle,children:"\u7EF4\u5EA6\u6570"}),(0,de.jsx)("div",{className:St().extraValue,children:(0,de.jsx)("span",{className:"ant-statistic-content-value",children:(0,oc.uf)(mn||0)})})]})}),(0,de.jsx)("div",{className:St().extraWrapper,children:(0,de.jsxs)("div",{className:St().extraStatistic,children:[(0,de.jsx)("div",{className:St().extraTitle,children:"\u6307\u6807\u6570"}),(0,de.jsx)("div",{className:St().extraValue,children:(0,de.jsx)("span",{className:"ant-statistic-content-value",children:(0,oc.uf)(bn||0)})})]})})]})},Dt=function(gn){return(0,de.jsx)(At.Z,{placement:"top",menu:{onClick:function(mn){var kn=mn.key,sr=mn.domEvent;sr.stopPropagation(),kn==="edit"&&(Se(gn),ht(!0))},items:[{label:"\u7F16\u8F91",key:"edit"},{label:(0,de.jsx)(pe.Z,{title:"\u786E\u8BA4\u5220\u9664\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,G.Z)((0,L.Z)().mark(function bn(){var mn,kn,sr;return(0,L.Z)().wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:return jr.next=2,(0,dt.$s)(gn.id);case 2:mn=jr.sent,kn=mn.code,sr=mn.msg,kn===200?E==null||E():$.default.error(sr);case 6:case"end":return jr.stop()}},bn)})),children:(0,de.jsx)("a",{children:"\u5220\u9664"},"modelDeleteBtn")}),key:"delete"}]},children:(0,de.jsx)(c_.Z,{style:{fontSize:22,color:"rgba(0,0,0,0.5)"},onClick:function(mn){return mn.stopPropagation()}})})};return(0,de.jsxs)("div",{style:{padding:"0px 20px 20px"},children:[!u&&(0,de.jsx)("div",{style:{paddingBottom:"20px"},children:(0,de.jsxs)(Le.Z,{onClick:function(){ht(!0)},type:"primary",children:[(0,de.jsx)(Fe.Z,{}),"\u65B0\u589E\u6A21\u578B"]})}),(0,de.jsx)(Jg.Group,{value:H,defaultValue:H,children:a&&a.map(function(Kt){return(0,de.jsx)(Jg,{avatar:Xb(),title:"".concat(Kt.name),value:Kt.id,description:Tt(Kt),extra:!u&&Dt(Kt),onClick:function(){E==null||E(Kt)}},Kt.id)})}),Ye&&(0,de.jsx)(O0,{domainId:j,basicInfo:se,onSubmit:function(){ht(!1),E==null||E()},onCancel:function(){ht(!1)}})]})},Jb=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(i0),I0=function(i){var a=i.isModel,l=i.activeKey,u=i.modelList,E=i.handleModelChange,P=i.onBackDomainBtnClick,j=i.onMenuChange,H="metric",X=[{label:"\u6307\u6807\u6A21\u5F0F",key:"metric",children:(0,de.jsx)(Nc,{chatConfigType:Ct.fs.AGG})},{label:"\u5B9E\u4F53\u6A21\u5F0F",key:"dimenstion",children:(0,de.jsx)(Nc,{chatConfigType:Ct.fs.DETAIL})},{label:"\u63A8\u8350\u95EE\u9898",key:"recommendedQuestions",children:(0,de.jsx)(Vn,{})}],ee=[{label:"\u6A21\u578B",key:"overview",children:(0,de.jsx)(Jb,{modelList:u,disabledEdit:!0,onModelChange:function(Se){E(Se)}})}];return(0,de.jsx)(de.Fragment,{children:(0,de.jsx)(ut.Z,{className:St().tab,items:a?X:ee,activeKey:l||H,destroyInactiveTabPane:!0,tabBarExtraContent:a?(0,de.jsx)(Le.Z,{type:"primary",icon:(0,de.jsx)(bt.Z,{}),onClick:function(){P==null||P()},style:{marginRight:10},children:"\u8FD4\u56DE\u4E3B\u9898\u57DF"}):void 0,onChange:function(Se){j==null||j(Se)}})})},jy=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(I0),u_=o(34008),Qb=o(42048),qb=o(13451),TC=o(50111),f_=o(55419),ay=o(70347),GM=o(6244),CE=o(10772),AC=o(81505),d_=function(C,i){var a={};for(var l in C)Object.prototype.hasOwnProperty.call(C,l)&&i.indexOf(l)<0&&(a[l]=C[l]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(C);u<l.length;u++)i.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(C,l[u])&&(a[l[u]]=C[l[u]]);return a},R1=function(i){var a=i.prefixCls,l=i.className,u=i.hoverable,E=u===void 0?!0:u,P=d_(i,["prefixCls","className","hoverable"]);return K.createElement(Ri.C,null,function(j){var H=j.getPrefixCls,X=H("card",a),ee=ba()("".concat(X,"-grid"),l,(0,$t.Z)({},"".concat(X,"-grid-hoverable"),E));return K.createElement("div",(0,Fn.Z)({},P,{className:ee}))})},MC=R1,o0=function(C,i){var a={};for(var l in C)Object.prototype.hasOwnProperty.call(C,l)&&i.indexOf(l)<0&&(a[l]=C[l]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(C);u<l.length;u++)i.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(C,l[u])&&(a[l[u]]=C[l[u]]);return a};function D0(C){var i=C.map(function(a,l){return K.createElement("li",{style:{width:"".concat(100/C.length,"%")},key:"action-".concat(l)},K.createElement("span",null,a))});return i}var iy=K.forwardRef(function(C,i){var a,l,u=K.useContext(Ri.E_),E=u.getPrefixCls,P=u.direction,j=K.useContext(CE.Z),H=function(lc){var Mc;(Mc=C.onTabChange)===null||Mc===void 0||Mc.call(C,lc)},X=function(){var lc;return K.Children.forEach(C.children,function(Mc){Mc&&Mc.type&&Mc.type===MC&&(lc=!0)}),lc},ee=C.prefixCls,se=C.className,Se=C.extra,Re=C.headStyle,Be=Re===void 0?{}:Re,Ye=C.bodyStyle,ht=Ye===void 0?{}:Ye,Tt=C.title,Dt=C.loading,Kt=C.bordered,gn=Kt===void 0?!0:Kt,bn=C.size,mn=C.type,kn=C.cover,sr=C.actions,yr=C.tabList,jr=C.children,zr=C.activeTabKey,va=C.defaultActiveTabKey,za=C.tabBarExtraContent,xi=C.hoverable,Di=C.tabProps,Si=Di===void 0?{}:Di,jo=o0(C,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),ro=E("card",ee),hi=K.createElement(AC.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},jr),io=zr!==void 0,oo=(0,Fn.Z)((0,Fn.Z)({},Si),(a={},(0,$t.Z)(a,io?"activeKey":"defaultActiveKey",io?zr:va),(0,$t.Z)(a,"tabBarExtraContent",za),a)),Ki,Ji=yr&&yr.length?K.createElement(ut.Z,(0,Fn.Z)({size:"large"},oo,{className:"".concat(ro,"-head-tabs"),onChange:H,items:yr.map(function(Pl){var lc;return{label:Pl.tab,key:Pl.key,disabled:(lc=Pl.disabled)!==null&&lc!==void 0?lc:!1}})})):null;(Tt||Se||Ji)&&(Ki=K.createElement("div",{className:"".concat(ro,"-head"),style:Be},K.createElement("div",{className:"".concat(ro,"-head-wrapper")},Tt&&K.createElement("div",{className:"".concat(ro,"-head-title")},Tt),Se&&K.createElement("div",{className:"".concat(ro,"-extra")},Se)),Ji));var Ao=kn?K.createElement("div",{className:"".concat(ro,"-cover")},kn):null,ks=K.createElement("div",{className:"".concat(ro,"-body"),style:ht},Dt?hi:jr),Lo=sr&&sr.length?K.createElement("ul",{className:"".concat(ro,"-actions")},D0(sr)):null,Is=(0,Kn.Z)(jo,["onTabChange"]),Cl=bn||j,il=ba()(ro,(l={},(0,$t.Z)(l,"".concat(ro,"-loading"),Dt),(0,$t.Z)(l,"".concat(ro,"-bordered"),gn),(0,$t.Z)(l,"".concat(ro,"-hoverable"),xi),(0,$t.Z)(l,"".concat(ro,"-contain-grid"),X()),(0,$t.Z)(l,"".concat(ro,"-contain-tabs"),yr&&yr.length),(0,$t.Z)(l,"".concat(ro,"-").concat(Cl),Cl),(0,$t.Z)(l,"".concat(ro,"-type-").concat(mn),!!mn),(0,$t.Z)(l,"".concat(ro,"-rtl"),P==="rtl"),l),se);return K.createElement("div",(0,Fn.Z)({ref:i},Is,{className:il}),Ki,Ao,ks,Lo)}),Kw=iy,Yw=function(C,i){var a={};for(var l in C)Object.prototype.hasOwnProperty.call(C,l)&&i.indexOf(l)<0&&(a[l]=C[l]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(C);u<l.length;u++)i.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(C,l[u])&&(a[l[u]]=C[l[u]]);return a},Vv=function(i){return K.createElement(Ri.C,null,function(a){var l=a.getPrefixCls,u=i.prefixCls,E=i.className,P=i.avatar,j=i.title,H=i.description,X=Yw(i,["prefixCls","className","avatar","title","description"]),ee=l("card",u),se=ba()("".concat(ee,"-meta"),E),Se=P?K.createElement("div",{className:"".concat(ee,"-meta-avatar")},P):null,Re=j?K.createElement("div",{className:"".concat(ee,"-meta-title")},j):null,Be=H?K.createElement("div",{className:"".concat(ee,"-meta-description")},H):null,Ye=Re||Be?K.createElement("div",{className:"".concat(ee,"-meta-detail")},Re,Be):null;return K.createElement("div",(0,Fn.Z)({},X,{className:se}),Se,Ye)})},jg=Vv,wE=Kw;wE.Grid=MC,wE.Meta=jg;var s0=wE,Cd={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M275 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm613 144H768c0-39.8-32.2-72-72-72H200c-39.8 0-72 32.2-72 72v248c0 3.4.2 6.7.7 9.9-.5 7-.7 14-.7 21.1 0 176.7 143.3 320 320 320 160.1 0 292.7-117.5 316.3-271H888c39.8 0 72-32.2 72-72V497c0-39.8-32.2-72-72-72zM696 681h-1.1c.7 7.6 1.1 15.2 1.1 23 0 137-111 248-248 248S200 841 200 704c0-7.8.4-15.4 1.1-23H200V425h496v256zm192-8H776V497h112v176zM613 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm-170 0c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36z"}}]},name:"coffee",theme:"outlined"},Xw=Cd,zm=function(i,a){return K.createElement(Un.Z,(0,Jt.Z)((0,Jt.Z)({},i),{},{ref:a,icon:Xw}))};zm.displayName="CoffeeOutlined";var Th=K.forwardRef(zm),kC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z"}},{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}},{tag:"path",attrs:{d:"M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z"}}]},name:"console-sql",theme:"outlined"},p_=kC,PC=function(i,a){return K.createElement(Un.Z,(0,Jt.Z)((0,Jt.Z)({},i),{},{ref:a,icon:p_}))};PC.displayName="ConsoleSqlOutlined";var ex=K.forwardRef(PC),$M=o(8017),Od=o(17731),O1=at.Z.Item,I1=De.Z.TextArea,oy=function(i){var a=i.isEdit,l=i.dataBaseConfig,u=i.tableLoading,E=u===void 0?!1:u,P=i.mode,j=P===void 0?"normal":P,H=(0,K.useState)([]),X=(0,z.Z)(H,2),ee=X[0],se=X[1],Se=(0,K.useState)([]),Re=(0,z.Z)(Se,2),Be=Re[0],Ye=Re[1],ht=(0,K.useState)(""),Tt=(0,z.Z)(ht,2),Dt=Tt[0],Kt=Tt[1],gn=(0,K.useState)(""),bn=(0,z.Z)(gn,2),mn=bn[0],kn=bn[1],sr=function(){var jr=(0,G.Z)((0,L.Z)().mark(function zr(va){var za,xi,Di,Si,jo;return(0,L.Z)().wrap(function(hi){for(;;)switch(hi.prev=hi.next){case 0:return hi.next=2,(0,dt.He)(va);case 2:za=hi.sent,xi=za.code,Di=za.data,Si=za.msg,xi===200?(jo=(Di==null?void 0:Di.resultList)||[],se(jo)):$.default.error(Si);case 7:case"end":return hi.stop()}},zr)}));return function(va){return jr.apply(this,arguments)}}(),yr=function(){var jr=(0,G.Z)((0,L.Z)().mark(function zr(va){var za,xi,Di,Si,jo;return(0,L.Z)().wrap(function(hi){for(;;)switch(hi.prev=hi.next){case 0:return hi.next=2,(0,dt.Lk)(l.id,va);case 2:za=hi.sent,xi=za.code,Di=za.data,Si=za.msg,xi===200?(jo=(Di==null?void 0:Di.resultList)||[],Ye(jo)):$.default.error(Si);case 7:case"end":return hi.stop()}},zr)}));return function(va){return jr.apply(this,arguments)}}();return(0,K.useEffect)(function(){l!=null&&l.id&&sr(l.id)},[l]),(0,de.jsxs)(zi.Z,{spinning:E,children:[j==="fast"&&(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(O1,{name:"dbName",label:"\u6570\u636E\u5E93\u540D",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6570\u636E\u5E93/\u8868"}],children:(0,de.jsx)(lt.Z,{showSearch:!0,placeholder:"\u8BF7\u9009\u62E9\u6570\u636E\u5E93/\u8868",disabled:a,onChange:function(zr){yr(zr),Kt(zr)},children:ee.map(function(jr){return(0,de.jsx)(lt.Z.Option,{value:jr.name,children:jr.name},jr.name)})})}),(0,de.jsx)(O1,{name:"tableName",label:"\u6570\u636E\u8868\u540D",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6570\u636E\u5E93/\u8868"}],children:(0,de.jsx)(lt.Z,{placeholder:"\u8BF7\u9009\u62E9\u6570\u636E\u5E93/\u8868",disabled:a,showSearch:!0,onChange:function(zr){kn(zr)},children:Be.map(function(jr){return(0,de.jsx)(lt.Z.Option,{value:jr.name,children:jr.name},jr.name)})})})]}),(0,de.jsx)(O1,{name:"name",label:"\u6570\u636E\u6E90\u4E2D\u6587\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6570\u636E\u6E90\u4E2D\u6587\u540D"}],children:(0,de.jsx)(De.Z,{placeholder:"\u540D\u79F0\u4E0D\u53EF\u91CD\u590D"})}),(0,de.jsx)(O1,{name:"bizName",label:"\u6570\u636E\u6E90\u82F1\u6587\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6570\u636E\u6E90\u82F1\u6587\u540D"}],children:(0,de.jsx)(De.Z,{placeholder:"\u540D\u79F0\u4E0D\u53EF\u91CD\u590D",disabled:a})}),(0,de.jsx)(O1,{name:"description",label:"\u6570\u636E\u6E90\u63CF\u8FF0",children:(0,de.jsx)(I1,{placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u6E90\u63CF\u8FF0"})})]})},v_=oy,Jw=o(12966),D1=o(43732),zv=o(52697),wp=new Map([["small","250px"],["middle","300px"],["large","400px"]]),fh;(function(C){C.CATEGORICAL="categorical",C.TIME="time",C.MEASURES="measures",C.PRIMARY="primary",C.FOREIGN="foreign"})(fh||(fh={}));var By=[{label:"\u7EF4\u5EA6",value:fh.CATEGORICAL},{label:"\u65E5\u671F",value:fh.TIME},{label:"\u5EA6\u91CF",value:fh.MEASURES},{label:"\u4E3B\u952E",value:fh.PRIMARY},{label:"\u5916\u952E",value:fh.FOREIGN}],tx=[{label:"sum",value:"sum"},{label:"max",value:"max"},{label:"min",value:"min"},{label:"avg",value:"avg"},{label:"count",value:"count"},{label:"count_distinct",value:"count_distinct"}],Qw=null,l0=["YYYY-MM-DD","YYYYMMDD","YYYY-MM","YYYYMM"],qw=o(68143),pv=o.n(qw),N1=lt.Z.Option,jd=function(i){var a=[fh.CATEGORICAL,fh.TIME].includes(i)?"isCreateDimension":"isCreateMetric";return a},L1=function(i){var a=i.fields,l=i.onFieldChange,u=function(j,H,X){l(j.bizName,(0,Ie.Z)((0,Ie.Z)({},j),{},(0,Ue.Z)({},H,X)))},E=[{title:"\u5B57\u6BB5\u540D\u79F0",dataIndex:"bizName",width:100},{title:"\u6570\u636E\u7C7B\u578B",dataIndex:"sqlType",width:80},{title:"\u5B57\u6BB5\u7C7B\u578B",dataIndex:"type",width:100,render:function(j,H){var X,ee=(X=a.find(function(se){return se.bizName===H.bizName}))===null||X===void 0?void 0:X.type;return(0,de.jsx)(lt.Z,{placeholder:"\u5B57\u6BB5\u7C7B\u578B",value:ee,onChange:function(Se){var Re={};Se===fh.MEASURES?Re={agg:tx[0].value}:Se===fh.TIME?Re={dateFormat:l0[0],timeGranularity:"day"}:Re={agg:void 0,dateFormat:void 0,timeGranularity:void 0};var Be=jd(Se),Ye=(0,Ln.isUndefined)(H[Be])?!0:!!H[Be];l(H.bizName,(0,Ie.Z)((0,Ie.Z)({},H),{},(0,Ue.Z)({type:Se,name:""},Be,Ye),Re))},style:{width:"100%"},children:By.map(function(se){return(0,de.jsx)(N1,{value:se.value,children:se.label},se.label)})})}},{title:"\u6269\u5C55\u914D\u7F6E",dataIndex:"extender",width:100,render:function(j,H){var X=H.type;if(X===fh.MEASURES){var ee,se=(ee=a.find(function(Be){return Be.bizName===H.bizName}))===null||ee===void 0?void 0:ee.agg;return(0,de.jsx)(lt.Z,{placeholder:"\u5EA6\u91CF\u7B97\u5B50",value:se,onChange:function(Ye){u(H,"agg",Ye)},defaultValue:tx[0].value,style:{width:"100%"},children:tx.map(function(Be){return(0,de.jsx)(N1,{value:Be.value,children:Be.label},Be.value)})})}if(X===fh.TIME){var Se,Re=(Se=a.find(function(Be){return Be.bizName===H.bizName}))===null||Se===void 0?void 0:Se.dateFormat;return(0,de.jsxs)(U.Z,{children:[(0,de.jsx)(lt.Z,{placeholder:"\u65F6\u95F4\u683C\u5F0F",value:Re,onChange:function(Ye){u(H,"dateFormat",Ye)},defaultValue:l0[0],style:{minWidth:180},children:l0.map(function(Be){return(0,de.jsx)(N1,{value:Be,children:Be},Be)})}),(0,de.jsx)(fe.Z,{title:"\u8BF7\u9009\u62E9\u6570\u636E\u5E93\u4E2D\u65F6\u95F4\u5B57\u6BB5\u5BF9\u5E94\u683C\u5F0F",children:(0,de.jsx)(jc.Z,{})})]})}return(0,de.jsx)(de.Fragment,{})}},{title:(0,de.jsx)(hu,{title:"\u5FEB\u901F\u521B\u5EFA",tooltips:"\u82E5\u52FE\u9009\u5FEB\u901F\u521B\u5EFA\u5E76\u586B\u5199\u540D\u79F0\uFF0C\u5C06\u4F1A\u628A\u8BE5\u7EF4\u5EA6/\u6307\u6807\u76F4\u63A5\u521B\u5EFA\u5230\u7EF4\u5EA6/\u6307\u6807\u5217\u8868"}),dataIndex:"fastCreate",width:100,render:function(j,H){var X=H.type,ee=H.name;if([fh.PRIMARY,fh.FOREIGN,fh.CATEGORICAL,fh.TIME,fh.MEASURES].includes(X)){var se=jd(X),Se=(0,Ln.isUndefined)(H[se])?!0:!!H[se];return(0,de.jsx)(Pn.Z,{checked:Se,onChange:function(Be){var Ye=Be.target.checked?1:0;Ye?l(H.bizName,(0,Ie.Z)((0,Ie.Z)({},H),{},(0,Ue.Z)({checked:Ye},se,Ye))):l(H.bizName,(0,Ie.Z)((0,Ie.Z)({},H),{},(0,Ue.Z)({name:"",checked:Ye},se,Ye)))},children:(0,de.jsx)(De.Z,{className:!ee&&pv().dataSourceFieldsName,value:ee,disabled:!Se,onChange:function(Be){var Ye=Be.target.value;l(H.bizName,(0,Ie.Z)((0,Ie.Z)({},H),{},(0,Ue.Z)({name:Ye},se,1)))},placeholder:"\u8BF7\u586B\u5199\u540D\u79F0"})})}return(0,de.jsx)(de.Fragment,{})}}];return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(D1.Z,{style:{marginBottom:"10px"},banner:!0,message:(0,de.jsx)(zv.Z,{pauseOnHover:!0,gradient:!1,children:"\u4E3A\u4E86\u4FDD\u969C\u540C\u4E00\u4E2A\u4E3B\u9898\u57DF\u4E0B\u7EF4\u5EA6/\u6307\u6807\u5217\u8868\u552F\u4E00\uFF0C\u6D88\u9664\u6B67\u4E49\uFF0C\u82E5\u672C\u4E3B\u9898\u57DF\u4E0B\u7684\u591A\u4E2A\u6570\u636E\u6E90\u5B58\u5728\u76F8\u540C\u7684\u5B57\u6BB5\u540D\u5E76\u4E14\u90FD\u52FE\u9009\u4E86\u5FEB\u901F\u521B\u5EFA\uFF0C\u7CFB\u7EDF\u9ED8\u8BA4\u8FD9\u4E9B\u76F8\u540C\u5B57\u6BB5\u7684\u6307\u6807\u7EF4\u5EA6\u662F\u540C\u4E00\u4E2A\uFF0C\u540C\u65F6\u5217\u8868\u4E2D\u5C06\u53EA\u663E\u793A\u6700\u540E\u4E00\u6B21\u521B\u5EFA\u7684\u6307\u6807/\u7EF4\u5EA6\u3002"})}),(0,de.jsx)(Ot.Z,{dataSource:a,columns:E,rowKey:"bizName",pagination:!1,scroll:{y:500}})]})},RC=L1,TE=Od.Z.Step,F1={name:"",bizName:"",description:""},Bg=function(i){var a=i.domainManger,l=i.onCancel,u=i.createModalVisible,E=i.scriptColumns,P=i.sql,j=P===void 0?"":P,H=i.onSubmit,X=i.dataSourceItem,ee=i.basicInfoFormMode,se=!!(X!=null&&X.id),Se=(0,K.useState)([]),Re=(0,z.Z)(Se,2),Be=Re[0],Ye=Re[1],ht=(0,K.useState)(0),Tt=(0,z.Z)(ht,2),Dt=Tt[0],Kt=Tt[1],gn=(0,K.useState)(!1),bn=(0,z.Z)(gn,2),mn=bn[0],kn=bn[1],sr=(0,K.useState)(!1),yr=(0,z.Z)(sr,2),jr=yr[0],zr=yr[1],va=(0,K.useRef)(F1),za=at.Z.useForm(),xi=(0,z.Z)(za,1),Di=xi[0],Si=a.dataBaseConfig,jo=a.selectModelId,ro=function(cu){va.current=cu};(0,K.useEffect)(function(){var Wf=Be.some(function(cu){var kf=cu.name,af=cu.isCreateDimension,lf=cu.isCreateMetric;return!!((lf||af)&&!kf)});zr(Wf)},[Be]);var hi=(0,K.useState)(E||[]),io=(0,z.Z)(hi,2),oo=io[0],Ki=io[1];(0,K.useEffect)(function(){E&&Ki(E)},[E]);var Ji=function(){return Kt(Dt+1)},Ao=function(){return Kt(Dt-1)},ks=function(cu){var kf=cu.reduce(function(af,lf){var gu=lf.type,Vc=lf.bizName,Wc=lf.timeGranularity,Mu=lf.agg,Rc=lf.isCreateDimension,Nl=lf.name,Oc=lf.isCreateMetric,au=lf.dateFormat;switch(gu){case fh.CATEGORICAL:af.dimensions.push({bizName:Vc,type:gu,isCreateDimension:Rc,name:Nl});break;case fh.TIME:af.dimensions.push({bizName:Vc,type:gu,isCreateDimension:Rc,name:Nl,dateFormat:au,typeParams:{isPrimary:!0,timeGranularity:Wc}});break;case fh.FOREIGN:case fh.PRIMARY:af.identifiers.push({bizName:Vc,name:Nl,type:gu});break;case fh.MEASURES:af.measures.push({bizName:Vc,type:gu,agg:Mu,name:Nl,isCreateMetric:Oc});break;default:break}return af},{identifiers:[],dimensions:[],measures:[]});return kf},Lo=function(){var Wf=(0,G.Z)((0,L.Z)().mark(function cu(){var kf,af,lf,gu,Vc,Wc,Mu,Rc,Nl,Oc,au;return(0,L.Z)().wrap(function(ju){for(;;)switch(ju.prev=ju.next){case 0:return ju.next=2,Di.validateFields();case 2:if(kf=ju.sent,af=ks(Be),lf=(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},va.current),kf),af),ro(lf),!(Dt<1)){ju.next=10;break}Ji(),ju.next=26;break;case 10:return kn(!0),gu=lf.dbName,Vc=lf.tableName,Wc=(0,Ie.Z)((0,Ie.Z)({},lf),{},{sqlQuery:j,databaseId:(X==null?void 0:X.databaseId)||Si.id,queryType:ee==="fast"?"table_query":"sql_query",tableQuery:gu&&Vc?"".concat(gu,".").concat(Vc):"",modelId:jo}),Mu=se?dt.Y_:dt.HY,ju.next=16,Mu(Wc);case 16:if(Rc=ju.sent,Nl=Rc.code,Oc=Rc.msg,au=Rc.data,kn(!1),Nl!==200){ju.next=25;break}return $.default.success("\u4FDD\u5B58\u6570\u636E\u6E90\u6210\u529F\uFF01"),H==null||H((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},Wc),au),{},{resData:au})),ju.abrupt("return");case 25:$.default.error(Oc);case 26:case"end":return ju.stop()}},cu)}));return function(){return Wf.apply(this,arguments)}}(),Is=function(cu,kf){var af=kf.map(function(lf){var gu=lf.type,Vc=lf.nameEn,Wc=cu.find(function(Mu){return Mu.bizName===lf.nameEn})||{};return(0,Ie.Z)((0,Ie.Z)({},Wc),{},{bizName:Vc,sqlType:gu})});Ye(af||[])},Cl=function(){var cu=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return cu.map(function(kf){return(0,Ie.Z)((0,Ie.Z)({},kf),{},{type:fh.MEASURES})})},il=function(){var cu=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return cu.map(function(kf){var af=kf.typeParams;return(0,Ie.Z)((0,Ie.Z)({},kf),{},{timeGranularity:(af==null?void 0:af.timeGranularity)||""})})},Pl=function(){var Wf=(0,G.Z)((0,L.Z)().mark(function cu(){var kf,af,lf,gu,Vc,Wc,Mu,Rc,Nl,Oc;return(0,L.Z)().wrap(function(ef){for(;;)switch(ef.prev=ef.next){case 0:if(kf=X.datasourceDetail,af=kf.queryType,lf=kf.tableQuery,gu={},Vc=oo,af!=="table_query"){ef.next=10;break}return Wc=lf||"",Mu=Wc.split("."),Rc=(0,z.Z)(Mu,2),Nl=Rc[0],Oc=Rc[1],ef.next=8,dp(Nl,Oc);case 8:Vc=ef.sent,gu={dbName:Nl,tableName:Oc};case 10:lc(Vc,gu);case 11:case"end":return ef.stop()}},cu)}));return function(){return Wf.apply(this,arguments)}}(),lc=function(cu){var kf=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},af=X,lf=af.id,gu=af.name,Vc=af.bizName,Wc=af.description,Mu=af.datasourceDetail,Rc=Mu.dimensions,Nl=Mu.identifiers,Oc=Mu.measures,au=(0,Ie.Z)({id:lf,name:gu,bizName:Vc,description:Wc},kf),ef=(0,Ie.Z)((0,Ie.Z)({},va.current),au);ro(ef),Di.setFieldsValue(au);var ju=[].concat((0,$e.Z)(il(Rc||[])),(0,$e.Z)(Nl||[]),(0,$e.Z)(Cl(Oc||[])));Is(ju,cu)};(0,K.useEffect)(function(){se?Pl():Is([],oo)},[X]);var Mc=function(cu,kf){var af=Be.map(function(lf){return lf.bizName===cu?(0,Ie.Z)((0,Ie.Z)({},lf),kf):(0,Ie.Z)({},lf)});Ye(af)},dp=function(){var Wf=(0,G.Z)((0,L.Z)().mark(function cu(kf,af){var lf,gu,Vc,Wc,Mu,Rc;return(0,L.Z)().wrap(function(Oc){for(;;)switch(Oc.prev=Oc.next){case 0:if(Si!=null&&Si.id){Oc.next=2;break}return Oc.abrupt("return");case 2:return Oc.next=4,(0,dt.Pu)(Si.id,kf,af);case 4:if(lf=Oc.sent,gu=lf.code,Vc=lf.data,Wc=lf.msg,gu!==200){Oc.next=16;break}return Mu=(Vc==null?void 0:Vc.resultList)||[],Rc=Mu.map(function(au){var ef=au.dataType,ju=au.name;return{nameEn:ju,type:ef}}),Is([],Rc),Ki(Rc),Oc.abrupt("return",Rc);case 16:$.default.error(Wc);case 17:case"end":return Oc.stop()}},cu)}));return function(kf,af){return Wf.apply(this,arguments)}}(),zf=function(){return Dt===1?(0,de.jsx)(RC,{fields:Be,onFieldChange:Mc}):(0,de.jsx)(v_,{form:Di,isEdit:se,mode:ee,dataBaseConfig:Si})},gv=function(){return Dt===1?(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Le.Z,{style:{float:"left"},onClick:Ao,children:"\u4E0A\u4E00\u6B65"}),(0,de.jsx)(Le.Z,{onClick:l,children:"\u53D6\u6D88"}),(0,de.jsx)(Le.Z,{type:"primary",loading:mn,onClick:Lo,disabled:jr,children:"\u5B8C\u6210"})]}):(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Le.Z,{onClick:l,children:"\u53D6\u6D88"}),(0,de.jsx)(Le.Z,{type:"primary",onClick:Lo,children:"\u4E0B\u4E00\u6B65"})]})};return(0,de.jsxs)(wt.Z,{forceRender:!0,width:1300,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"".concat(se?"\u7F16\u8F91":"\u65B0\u5EFA","\u6570\u636E\u6E90"),maskClosable:!1,open:u,footer:gv(),onCancel:l,children:[(0,de.jsxs)(Od.Z,{style:{marginBottom:28},size:"small",current:Dt,children:[(0,de.jsx)(TE,{title:"\u57FA\u672C\u4FE1\u606F"}),(0,de.jsx)(TE,{title:"\u5B57\u6BB5\u4FE1\u606F"})]}),(0,de.jsx)(at.Z,(0,Ie.Z)((0,Ie.Z)({},Xt.c),{},{form:Di,initialValues:(0,Ie.Z)({},va.current),onValuesChange:function(cu,kf){var af=cu.tableName,lf=kf.dbName;af&&dp(lf,af)},className:pv().form,children:zf()}))]})},N0=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(Bg),AE=o(32295),ME=o.n(AE),OC=o(5140),nx=o.n(OC),eT=o(30604),kE=o.n(eT),N_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},up=N_,j1=function(i,a){return K.createElement(Un.Z,(0,Jt.Z)((0,Jt.Z)({},i),{},{ref:a,icon:up}))};j1.displayName="WarningOutlined";var Ug=K.forwardRef(j1),sy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"},Tp=sy,nu=function(i,a){return K.createElement(Un.Z,(0,Jt.Z)((0,Jt.Z)({},i),{},{ref:a,icon:Tp}))};nu.displayName="CloudServerOutlined";var PE=K.forwardRef(nu),RE=o(38296),h_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},OE=h_,rx=function(i,a){return K.createElement(Un.Z,(0,Jt.Z)((0,Jt.Z)({},i),{},{ref:a,icon:OE}))};rx.displayName="SwapOutlined";var ly=K.forwardRef(rx),ax={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},ix=ax,Wm=function(i,a){return K.createElement(Un.Z,(0,Jt.Z)((0,Jt.Z)({},i),{},{ref:a,icon:ix}))};Wm.displayName="PlayCircleOutlined";var L_=K.forwardRef(Wm),B1={icon:function(i,a){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:i}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm164.1 378.2L457.7 677.1a8.02 8.02 0 01-12.7-6.5V353a8 8 0 0112.7-6.5l218.4 158.8a7.9 7.9 0 010 12.9z",fill:a}},{tag:"path",attrs:{d:"M676.1 505.3L457.7 346.5A8 8 0 00445 353v317.6a8.02 8.02 0 0012.7 6.5l218.4-158.9a7.9 7.9 0 000-12.9z",fill:i}}]}},name:"play-circle",theme:"twotone"},cy=B1,L0=function(i,a){return K.createElement(Un.Z,(0,Jt.Z)((0,Jt.Z)({},i),{},{ref:a,icon:cy}))};L0.displayName="PlayCircleTwoTone";var ox=K.forwardRef(L0),U1=o(23790),IE=o(8009),Z1=o(4566),hg=o(89577),DE=o(33765),IC=function(i){var a,l=i.domainManger,u=i.dataSourceItem,E=i.onSubmitSuccess,P=i.sql,j=P===void 0?"":P,H=i.onUpdateSql,X=i.onJdbcSourceChange,ee=l.dataBaseConfig,se=l.selectModelId,Se=(0,K.useState)([]),Re=(0,z.Z)(Se,2),Be=Re[0],Ye=Re[1],ht=(0,K.useState)(!1),Tt=(0,z.Z)(ht,2),Dt=Tt[0],Kt=Tt[1],gn=(0,K.useState)([]),bn=(0,z.Z)(gn,2),mn=bn[0],kn=bn[1],sr=(0,K.useState)({current:1,pageSize:20,total:0}),yr=(0,z.Z)(sr,2),jr=yr[0],zr=yr[1],va=(0,K.useState)([]),za=(0,z.Z)(va,2),xi=za[0],Di=za[1],Si=(0,K.useState)(!1),jo=(0,z.Z)(Si,2),ro=jo[0],hi=jo[1],io=(0,K.useState)({scrollToFirstRowOnChange:!0,x:"100%",y:200}),oo=(0,z.Z)(io,2),Ki=oo[0],Ji=oo[1],Ao=(0,K.useState)(),ks=(0,z.Z)(Ao,2),Lo=ks[0],Is=ks[1],Cl=(0,K.useState)(""),il=(0,z.Z)(Cl,2),Pl=il[0],lc=il[1],Mc=(0,K.useState)(!1),dp=(0,z.Z)(Mc,2),zf=dp[0],gv=dp[1],Wf=(0,K.useState)("middle"),cu=(0,z.Z)(Wf,2),kf=cu[0],af=cu[1],lf=(0,K.useState)(!1),gu=(0,z.Z)(lf,2),Vc=gu[0],Wc=gu[1],Mu=(0,K.useState)(!1),Rc=(0,z.Z)(Mu,2),Nl=Rc[0],Oc=Rc[1],au=(0,K.useRef)(),ef=(0,K.useState)(0),ju=(0,z.Z)(ef,2),Gf=ju[0],ip=ju[1],ph=0,Qp=(0,K.useState)(""),Zh=(0,z.Z)(Qp,2),sg=Zh[0],qv=Zh[1],Cm=(0,K.useState)(!1),Rh=(0,z.Z)(Cm,2),xv=Rh[0],ov=Rh[1],qf=(0,K.useState)(!1),Up=(0,z.Z)(qf,2),eh=Up[0],lg=Up[1],Ld=(0,K.useState)([]),md=(0,z.Z)(Ld,2),mf=md[0],Av=md[1];(0,K.useEffect)(function(){Di([{label:ee==null?void 0:ee.name,key:ee==null?void 0:ee.id}]),X==null||X((ee==null?void 0:ee.id)&&Number(ee==null?void 0:ee.id))},[ee]);function Vh(sv,op){var th=document.createElement("div"),Wh=document.createElement("span");return Wh.classList.add("resultCalcItem_".concat(sv)),Wh.innerText=op,th.appendChild(Wh),th}function Gv(sv){var op={},th=document.createElement("div");return th.id="resultCalcWrap",th.style.position="fixed",th.style.left="-99999px",th.style.top="-99999px",th.style.width="19999px",th.style.fontSize="12px",sv.forEach(function(Wh,Ry){Ry===0?Object.keys(Wh).forEach(function(ey,P_){th.appendChild(Vh("".concat(P_),ey)),th.appendChild(Vh("".concat(P_),"".concat(Wh[ey])))}):Object.keys(Wh).forEach(function(ey,P_){th.appendChild(Vh("".concat(P_),"".concat(Wh[ey])))})}),document.body.appendChild(th),Object.keys(sv[0]).forEach(function(Wh,Ry){var ey=Array.from(th.querySelectorAll(".resultCalcItem_".concat(Ry))).map(function(P_){return P_.offsetWidth});op[Wh]=Math.max.apply(Math,(0,$e.Z)(ey))}),document.body.removeChild(th),op}var cg=function(op,th){if(op.length){var Wh=Gv(op),Ry=th.map(function(ey){var P_=ey.nameEn;return{key:P_,title:P_,dataIndex:P_,width:"".concat(Wh[P_]+22,"px")}});kn(Ry)}},Py=function(op){Ye(op.resultList.map(function(th,Wh){return(0,Ie.Z)((0,Ie.Z)({},th),{},{index:Wh})})),zr({current:1,pageSize:20,total:op.resultList.length}),Av(op.columns),cg(op.resultList,op.columns)},vh=function(op){zr((0,Ie.Z)((0,Ie.Z)({},jr),op))},X_=function(op){H&&(0,Ln.isFunction)(H)&&H(op)},qp=function(){var op=kE().format(j);H&&(0,Ln.isFunction)(H)&&H(op),j=op},$m=function(){var sv=(0,G.Z)((0,L.Z)().mark(function op(th){var Wh,Ry,ey,P_;return(0,L.Z)().wrap(function(Nw){for(;;)switch(Nw.prev=Nw.next){case 0:return Kt(!0),Nw.next=3,(0,dt.UY)({sql:th,modelId:se});case 3:Wh=Nw.sent,Ry=Wh.code,ey=Wh.data,P_=Wh.msg,Kt(!1),Ry===200?(Py(ey),Is(!0)):(Is(!1),lc(P_));case 9:case"end":return Nw.stop()}},op)}));return function(th){return sv.apply(this,arguments)}}(),zh=function(op){op?(ov(!0),qv(op)):ov(!1)},Xg=function(){if(!j)return $.default.error("SQL\u67E5\u8BE2\u8BED\u53E5\u4E0D\u53EF\u4EE5\u4E3A\u7A7A\uFF01");if(zf)return $.default.warning("\u8BF7\u95F4\u96945s\u518D\u91CD\u65B0\u6267\u884C\uFF01");var op=5e3;return gv(!0),setTimeout(function(){gv(!1)},op),$m(xv?sg:j)},J_=function(){hi(!0)},Dw=function(){var sv=(0,G.Z)((0,L.Z)().mark(function op(){return(0,L.Z)().wrap(function(Wh){for(;;)switch(Wh.prev=Wh.next){case 0:J_();case 1:case"end":return Wh.stop()}},op)}));return function(){return sv.apply(this,arguments)}}(),QR=function(){var op=au==null?void 0:au.current;op&&Ji({scrollToFirstRowOnChange:!0,x:"100%",y:op.clientHeight-120})},ZM=function(){var op=window.innerHeight,th=96;Ji({scrollToFirstRowOnChange:!0,x:"100%",y:op-ph-th-30})},qR=function(){Wc(!0)},VM=function(){Wc(!1)},zM=function(){Oc(!0)},PV=function(){Oc(!1)},rF=function(){lg(!eh)},RV=function(){return Lo===!1?(0,de.jsxs)(de.Fragment,{children:[(0,de.jsxs)("div",{className:pv().taskFailed,children:[(0,de.jsx)(Ug,{className:pv().resultFailIcon}),"\u4EFB\u52A1\u6267\u884C\u5931\u8D25"]}),(0,de.jsx)("div",{className:pv().sqlResultLog,dangerouslySetInnerHTML:{__html:Pl.replace(/\r\n/g,"<br/>").replace(/\t/g," ")}})]}):Lo?(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("div",{className:pv().detail}),(0,de.jsx)(Ot.Z,{loading:Dt,dataSource:Be,columns:mn,onChange:vh,pagination:jr,scroll:Ki,className:pv().resultTable,rowClassName:"resultTableRow",rowKey:"index"})]}):(0,de.jsx)("div",{className:pv().sqlResultContent,children:"\u8BF7\u70B9\u51FB\u5DE6\u4FA7\u4EFB\u52A1\u5217\u8868\u67E5\u770B\u6267\u884C\u8BE6\u60C5"})};(0,K.useEffect)(function(){Nl?ZM():QR()},[Be,Nl]),(0,K.useEffect)(function(){var sv=window.innerHeight,op="small";sv>1100?op="large":sv>850&&(op="middle"),af(op)},[]);var OV=localStorage.getItem("exploreEditorSize");return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("div",{className:pv().sqlOprBar,children:(0,de.jsxs)("div",{className:pv().sqlOprBarLeftBox,children:[(0,de.jsx)(fe.Z,{title:"\u6570\u636E\u7C7B\u578B",children:(0,de.jsx)(At.Z,{menu:{items:xi,onClick:function(op){var th=op.key,Wh=xi.filter(function(Ry){return Ry.key===Number(th)})[0];Wh&&(X==null||X(Number(th)))}},placement:"bottom",children:(0,de.jsx)(Le.Z,{style:{marginRight:"15px",minWidth:"140px"},children:(0,de.jsxs)(U.Z,{children:[(0,de.jsx)(PE,{className:pv().sqlOprIcon,style:{marginRight:0}}),(0,de.jsx)("span",{children:(a=xi[0])===null||a===void 0?void 0:a.label})]})})})}),(0,de.jsx)(fe.Z,{title:"\u5168\u5C4F",children:(0,de.jsx)(RE.Z,{className:pv().sqlOprIcon,onClick:qR})}),(0,de.jsx)(fe.Z,{title:"\u683C\u5F0F\u5316SQL\u8BED\u53E5",children:(0,de.jsx)(Qe.Z,{className:pv().sqlOprIcon,onClick:qp})}),(0,de.jsx)(fe.Z,{title:"\u6539\u53D8\u4E3B\u9898",children:(0,de.jsx)(ly,{className:pv().sqlOprIcon,onClick:rF})}),(0,de.jsx)(fe.Z,{title:"\u6267\u884C\u811A\u672C",children:(0,de.jsx)(Le.Z,{style:{lineHeight:"24px",top:"3px",position:"relative"},type:"primary",shape:"round",icon:xv?"":zf?(0,de.jsx)(L_,{}):(0,de.jsx)(ox,{}),size:"small",className:zf?"".concat(pv().disableIcon," ").concat(pv().sqlOprIcon):pv().sqlOprBtn,onClick:Xg,children:xv?"\u90E8\u5206\u8FD0\u884C":"\u8FD0\u884C"})})]})}),(0,de.jsxs)(ME(),{split:"horizontal",onChange:function(op){ip(op),localStorage.setItem("exploreEditorSize",op[0])},children:[(0,de.jsx)(nx(),{initialSize:OV||"500px",children:(0,de.jsx)("div",{className:pv().sqlMain,children:(0,de.jsx)("div",{className:pv().sqlEditorWrapper,children:(0,de.jsx)(xu.Z,{value:j,isFullScreen:Vc,triggerBackToNormal:VM,isRightTheme:eh,sizeChanged:Gf,onSqlChange:X_,onSelect:zh})})})}),(0,de.jsx)("div",{className:"".concat(pv().sqlBottmWrap," ").concat(kf),children:(0,de.jsxs)("div",{className:pv().sqlResultWrap,children:[(0,de.jsxs)("div",{className:pv().sqlToolBar,children:[(0,de.jsx)(Le.Z,{className:pv().sqlToolBtn,type:"primary",onClick:Dw,disabled:!Lo,children:"\u751F\u6210\u6570\u636E\u6E90"}),(0,de.jsx)(Le.Z,{className:pv().sqlToolBtn,type:"primary",onClick:zM,disabled:!Lo,children:"\u5168\u5C4F\u67E5\u770B"})]}),(0,de.jsx)("div",{className:pv().sqlResultPane,ref:au,children:(0,de.jsx)(U1.Z,{isFullScreen:Nl,top:"".concat(ph,"px"),triggerBackToNormal:PV,children:RV()})})]})})]}),ro&&(0,de.jsx)(N0,{sql:j,dataSourceItem:u,scriptColumns:mf,onCancel:function(){hi(!1)},onSubmit:function(op){hi(!1),E==null||E(op)},createModalVisible:ro})]})},NE=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(IC),LE=ut.Z.TabPane,Qh="list",vm=function(i){var a=i.initialValues,l=i.onSubmitSuccess,u=[{key:"\u6570\u636E\u6E90\u67E5\u8BE2",title:(a==null?void 0:a.name)||"\u6570\u636E\u6E90\u67E5\u8BE2",type:"add",isSave:!0}],E=(0,K.useState)("\u6570\u636E\u6E90\u67E5\u8BE2"),P=(0,z.Z)(E,2),j=P[0],H=P[1],X=(0,K.useState)(u),ee=(0,z.Z)(X,2),se=ee[0],Se=ee[1],Re=(0,K.useRef)(),Be=(0,K.useRef)(u),Ye=(0,K.useState)(a||{}),ht=(0,z.Z)(Ye,2),Tt=ht[0],Dt=ht[1],Kt=function(kn){Se(kn),Be.current=kn},gn=function(kn,sr){var yr=Be.current.slice(),jr=yr.findIndex(function(va){return va.key===sr}),zr=yr[jr];yr.splice(jr,1,(0,Ie.Z)((0,Ie.Z)({},zr),{},{sql:kn,isSave:!1})),Kt(yr)};(0,K.useEffect)(function(){if(a){var mn;gn((a==null||(mn=a.datasourceDetail)===null||mn===void 0?void 0:mn.sqlQuery)||"","\u6570\u636E\u6E90\u67E5\u8BE2")}},[a]);var bn=function(kn){var sr;if(H(kn),Re==null||(sr=Re.current)===null||sr===void 0||sr.upDateActiveItem(kn),kn===Qh){var yr;Re==null||(yr=Re.current)===null||yr===void 0||yr.fetchSqlList()}};return(0,de.jsx)(de.Fragment,{children:(0,de.jsx)("div",{className:pv().outside,children:(0,de.jsx)(ut.Z,{type:"editable-card",hideAdd:!0,activeKey:j,onChange:bn,className:pv().middleArea,children:se.map(function(mn){return(0,de.jsx)(LE,{tab:(0,de.jsx)("div",{className:pv().paneName,children:mn.title}),closable:!1,children:(0,de.jsx)(NE,{onSubmitSuccess:l,dataSourceItem:Tt,onUpdateSql:function(sr){gn(sr,mn.key)},onJdbcSourceChange:function(sr){Dt((0,Ie.Z)((0,Ie.Z)({},Tt),{},{databaseId:sr}))},sql:mn.sql})},mn.key)})})})})},FE=vm,DC="300px",tT=function(i){var a=i.initialValues,l=i.onSubmitSuccess,u=(0,K.useState)(!1),E=(0,z.Z)(u,2),P=E[0],j=E[1];(0,K.useEffect)(function(){var X=localStorage.getItem("exploreRightCollapsed");j(X==="true")},[]);var H=function(){var ee=!P;j(ee),localStorage.setItem("exploreRightCollapsed",String(ee));var se=ee?"0px":localStorage.getItem("exploreRightSize"),Se=parseInt(se||"0");!ee&&Se<=10&&localStorage.setItem("exploreRightSize",DC)};return(0,de.jsx)("div",{className:"".concat(pv().pageContainer," ").concat(window.location.hash.includes("external")?pv().externalPageContainer:""),children:(0,de.jsx)("div",{className:pv().main,children:(0,de.jsxs)(ME(),{split:"vertical",onChange:function(ee){localStorage.setItem("exploreRightSize",ee[1])},children:[(0,de.jsxs)("div",{className:pv().rightListSide,children:[!1,(0,de.jsx)(FE,{initialValues:a,onSubmitSuccess:l})]}),(0,de.jsx)(nx(),{initialSize:0})]})})})},NC=tT,F_=s0.Meta,jE=function(i){var a=i.open,l=i.onTypeChange,u=i.onSubmit,E=i.dataSourceItem,P=i.domainManger,j=i.onCancel,H=i.dispatch,X=P.selectDomainId,ee=P.dataBaseConfig,se=P.selectModelId,Se=(0,K.useState)(!1),Re=(0,z.Z)(Se,2),Be=Re[0],Ye=Re[1],ht=(0,K.useState)(!1),Tt=(0,z.Z)(ht,2),Dt=Tt[0],Kt=Tt[1],gn=(0,K.useState)(""),bn=(0,z.Z)(gn,2),mn=bn[0],kn=bn[1],sr=(0,K.useState)(!1),yr=(0,z.Z)(sr,2),jr=yr[0],zr=yr[1];(0,K.useEffect)(function(){var xi;if(!E||!a){zr(a);return}(E==null||(xi=E.datasourceDetail)===null||xi===void 0?void 0:xi.queryType)==="table_query"?Kt(!0):Ye(!0)},[E,a]);var va=function(Di){var Si="select * from ".concat(Di);kn(Si),H({type:"domainManger/queryDataBaseExcuteSql",payload:{sql:Si,domainId:X,tableName:Di}})},za=function(){j==null||j()};return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(wt.Z,{open:jr,onCancel:function(){zr(!1),za()},footer:null,centered:!0,closable:!1,children:ee&&ee.id?(0,de.jsxs)(ce.Z,{gutter:16,style:{marginTop:"0px"},children:[(0,de.jsx)(me.Z,{span:12,children:(0,de.jsx)(s0,{hoverable:!0,style:{height:220},onClick:function(){l==null||l("fast"),zr(!1),Kt(!0)},cover:(0,de.jsx)(Th,{width:240,style:{paddingTop:"45px",height:120,fontSize:"48px",color:"#1890ff"}}),children:(0,de.jsx)(F_,{title:"\u5FEB\u901F\u521B\u5EFA",description:"\u81EA\u52A8\u8FDB\u884C\u6570\u636E\u6E90\u53EF\u89C6\u5316\u521B\u5EFA"})})}),(0,de.jsx)(me.Z,{span:12,children:(0,de.jsx)(s0,{onClick:function(){l==null||l("normal"),zr(!1),Ye(!0)},hoverable:!0,style:{height:220},cover:(0,de.jsx)(ex,{style:{paddingTop:"45px",height:120,fontSize:"48px",color:"#1890ff"}}),children:(0,de.jsx)(F_,{title:"SQL\u811A\u672C",description:"\u81EA\u5B9A\u4E49SQL\u811A\u672C\u521B\u5EFA\u6570\u636E\u6E90"})})})]}):(0,de.jsx)(f_.ZP,{status:"warning",subTitle:"\u521B\u5EFA\u6570\u636E\u6E90\u9700\u8981\u5148\u5B8C\u6210\u6570\u636E\u5E93\u8BBE\u7F6E",extra:(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){Q.m8.replace("/semanticModel/".concat(X,"/0/dataBase")),j==null||j()},children:"\u53BB\u8BBE\u7F6E"},"console")})}),Dt&&(0,de.jsx)(N0,{sql:mn,basicInfoFormMode:"fast",domainId:Number(X),dataSourceItem:E,onCancel:function(){Kt(!1),za()},onDataBaseTableChange:function(Di){va(Di)},onSubmit:function(){Kt(!1),u==null||u()},createModalVisible:Dt}),Be&&(0,de.jsx)(qb.Z,{width:"100%",destroyOnClose:!0,title:"\u6570\u636E\u6E90\u7F16\u8F91",open:!0,onClose:function(){Ye(!1),za()},footer:null,children:(0,de.jsx)(NC,{initialValues:E,onSubmitSuccess:function(){Ye(!1),u==null||u()}})})]})},KM=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(jE),nT=o(56051),c0=o.n(nT),YM=function(i){var a=i.dispatch,l=i.domainManger,u=l.selectModelId,E=(0,K.useState)(),P=(0,z.Z)(E,2),j=P[0],H=P[1],X=(0,K.useState)(!1),ee=(0,z.Z)(X,2),se=ee[0],Se=ee[1],Re=(0,K.useRef)(),Be=[{dataIndex:"id",title:"ID"},{dataIndex:"name",title:"\u6570\u636E\u6E90\u540D\u79F0"},{dataIndex:"bizName",title:"\u82F1\u6587\u540D\u79F0"},{dataIndex:"createdBy",title:"\u521B\u5EFA\u4EBA"},{dataIndex:"description",title:"\u63CF\u8FF0",search:!1},{dataIndex:"updatedAt",title:"\u66F4\u65B0\u65F6\u95F4",search:!1,render:function(Tt){return Tt&&Tt!=="-"?c0()(Tt).format("YYYY-MM-DD HH:mm:ss"):"-"}},{title:"\u64CD\u4F5C",dataIndex:"x",valueType:"option",render:function(Tt,Dt){return(0,de.jsxs)(U.Z,{children:[(0,de.jsx)("a",{onClick:function(){H(Dt),Se(!0)},children:"\u7F16\u8F91"},"datasourceEditBtn"),(0,de.jsx)(pe.Z,{title:"\u786E\u8BA4\u5220\u9664\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,G.Z)((0,L.Z)().mark(function Kt(){var gn,bn,mn,kn;return(0,L.Z)().wrap(function(yr){for(;;)switch(yr.prev=yr.next){case 0:return yr.next=2,(0,dt.Vl)(Dt.id);case 2:gn=yr.sent,bn=gn.code,mn=gn.msg,bn===200?(H(void 0),(kn=Re.current)===null||kn===void 0||kn.reload()):$.default.error(mn);case 6:case"end":return yr.stop()}},Kt)})),children:(0,de.jsx)("a",{onClick:function(){H(Dt)},children:"\u5220\u9664"},"datasourceDeleteBtn")})]})}}],Ye=function(){var ht=(0,G.Z)((0,L.Z)().mark(function Tt(Dt){var Kt,gn,bn,mn,kn;return(0,L.Z)().wrap(function(yr){for(;;)switch(yr.prev=yr.next){case 0:return a({type:"domainManger/setPagination",payload:(0,Ie.Z)({},Dt)}),yr.next=3,(0,dt.iY)((0,Ie.Z)({},Dt));case 3:return Kt=yr.sent,gn=Kt.code,bn=Kt.data,mn=Kt.msg,kn={},gn===200?kn={data:bn||[],success:!0}:($.default.error(mn),kn={data:[],total:0,success:!1}),yr.abrupt("return",kn);case 10:case"end":return yr.stop()}},Tt)}));return function(Dt){return ht.apply(this,arguments)}}();return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(u_.ZP,{actionRef:Re,rowKey:"id",columns:Be,params:{modelId:u},request:Ye,pagination:!1,search:!1,size:"small",options:{reload:!1,density:!1,fullScreen:!1},toolBarRender:function(){return[(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){H(void 0),Se(!0)},children:"\u521B\u5EFA\u6570\u636E\u6E90"},"create")]}}),(0,de.jsx)(KM,{open:se,onCancel:function(){Se(!1)},dataSourceItem:j,onSubmit:function(){var Tt;(Tt=Re.current)===null||Tt===void 0||Tt.reload()}})]})},rT=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(YM),u0=o(98449),F0=function(i){var a=i.value,l=i.createBtnString,u=l===void 0?"\u65B0\u589E":l,E=i.onChange,P=(0,K.useState)([]),j=(0,z.Z)(P,2),H=j[0],X=j[1],ee=(0,K.useState)(!1),se=(0,z.Z)(ee,2),Se=se[0],Re=se[1],Be=(0,K.useState)(""),Ye=(0,z.Z)(Be,2),ht=Ye[0],Tt=Ye[1],Dt=(0,K.useState)(-1),Kt=(0,z.Z)(Dt,2),gn=Kt[0],bn=Kt[1],mn=(0,K.useState)(""),kn=(0,z.Z)(mn,2),sr=kn[0],yr=kn[1],jr=(0,K.useRef)(null),zr=(0,K.useRef)(null);(0,K.useEffect)(function(){Array.isArray(a)&&X((0,$e.Z)(a))},[a]);var va=function(io){E==null||E(io)};(0,K.useEffect)(function(){if(Se){var hi;(hi=jr.current)===null||hi===void 0||hi.focus()}},[Se]),(0,K.useEffect)(function(){var hi;(hi=zr.current)===null||hi===void 0||hi.focus()},[ht]);var za=function(io){var oo=H.filter(function(Ki){return Ki!==io});va==null||va(oo),X(oo)},xi=function(){Re(!0)},Di=function(io){Tt(io.target.value)},Si=function(){if(ht&&H.indexOf(ht)===-1){var io=[].concat((0,$e.Z)(H),[ht]);va==null||va(io),X(io)}Re(!1),Tt("")},jo=function(io){yr(io.target.value)},ro=function(){var io=(0,$e.Z)(H);io[gn]=sr,X(io),va==null||va(io),bn(-1),Tt("")};return(0,de.jsxs)("div",{className:St().infoTagList,children:[H.map(function(hi,io){if(gn===io)return(0,de.jsx)(De.Z,{ref:zr,size:"small",className:St().tagInput,value:sr,onChange:jo,onBlur:ro,onPressEnter:ro},hi);var oo=hi.length>20,Ki=(0,de.jsx)(ln.Z,{className:St().editTag,closable:!0,onClose:function(){return za(hi)},children:(0,de.jsx)("span",{onDoubleClick:function(Ao){bn(io),yr(hi),Ao.preventDefault()},children:oo?"".concat(hi.slice(0,20),"..."):hi})},hi);return oo?(0,de.jsx)(fe.Z,{title:hi,children:Ki},hi):Ki}),Se&&(0,de.jsx)(De.Z,{ref:jr,type:"text",size:"small",className:St().tagInput,value:ht,onChange:Di,onBlur:Si,onPressEnter:Si}),!Se&&(0,de.jsxs)(ln.Z,{className:St().siteTagPlus,onClick:xi,children:[(0,de.jsx)(Fe.Z,{})," ",u]})]})},BE=F0,m_=at.Z.Item,qg=lt.Z.Option,j0=De.Z.TextArea,B0=function(i){var a=i.modelId,l=i.onCancel,u=i.bindModalVisible,E=i.dimensionItem,P=i.dataSourceList,j=i.onSubmit,H=!!(E!=null&&E.id),X=(0,K.useState)([]),ee=(0,z.Z)(X,2),se=ee[0],Se=ee[1],Re=at.Z.useForm(),Be=(0,z.Z)(Re,1),Ye=Be[0],ht=Ye.setFieldsValue,Tt=Ye.resetFields,Dt=function(){var kn=(0,G.Z)((0,L.Z)().mark(function sr(){var yr,jr,zr,va=arguments;return(0,L.Z)().wrap(function(xi){for(;;)switch(xi.prev=xi.next){case 0:return yr=va.length>0&&va[0]!==void 0?va[0]:!1,jr=va.length>1?va[1]:void 0,xi.next=4,Ye.validateFields();case 4:return zr=xi.sent,xi.next=7,Kt((0,Ie.Z)((0,Ie.Z)({},zr),{},{dimValueMaps:jr||se}),yr);case 7:case"end":return xi.stop()}},sr)}));return function(){return kn.apply(this,arguments)}}(),Kt=function(){var kn=(0,G.Z)((0,L.Z)().mark(function sr(yr){var jr,zr,va,za,xi,Di,Si=arguments;return(0,L.Z)().wrap(function(ro){for(;;)switch(ro.prev=ro.next){case 0:return jr=Si.length>1&&Si[1]!==void 0?Si[1]:!1,zr=(0,Ie.Z)({modelId:a,type:"categorical"},yr),va=dt.q2,zr.id&&(va=dt.lV),ro.next=6,va(zr);case 6:if(za=ro.sent,xi=za.code,Di=za.msg,xi!==200){ro.next=12;break}return jr||($.default.success("\u7F16\u8F91\u7EF4\u5EA6\u6210\u529F"),j(yr)),ro.abrupt("return");case 12:$.default.error(Di);case 13:case"end":return ro.stop()}},sr)}));return function(yr){return kn.apply(this,arguments)}}(),gn=function(){ht(E)};(0,K.useEffect)(function(){var kn;E?(gn(),Array.isArray(E.dimValueMaps)?Se(E.dimValueMaps):Se([])):Tt(),!H&&Array.isArray(P)&&(kn=P[0])!==null&&kn!==void 0&&kn.id&&ht({datasourceId:P[0].id})},[E,P]);var bn=function(){return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Le.Z,{onClick:l,children:"\u53D6\u6D88"}),(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){Dt()},children:"\u5B8C\u6210"})]})},mn=function(){return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(m_,{hidden:!0,name:"id",label:"ID",children:(0,de.jsx)(De.Z,{placeholder:"id"})}),(0,de.jsx)(m_,{name:"name",label:"\u7EF4\u5EA6\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7EF4\u5EA6\u540D\u79F0"}],children:(0,de.jsx)(De.Z,{placeholder:"\u540D\u79F0\u4E0D\u53EF\u91CD\u590D"})}),(0,de.jsx)(m_,{hidden:H,name:"bizName",label:"\u5B57\u6BB5\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B57\u6BB5\u540D\u79F0"}],children:(0,de.jsx)(De.Z,{placeholder:"\u540D\u79F0\u4E0D\u53EF\u91CD\u590D",disabled:H})}),(0,de.jsx)(m_,{hidden:H,name:"datasourceId",label:"\u6240\u5C5E\u6570\u636E\u6E90",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6240\u5C5E\u6570\u636E\u6E90"}],children:(0,de.jsx)(lt.Z,{placeholder:"\u8BF7\u9009\u62E9\u6570\u636E\u6E90",disabled:H,children:P.map(function(sr){return(0,de.jsx)(qg,{value:sr.id,children:sr.name},sr.id)})})}),(0,de.jsx)(m_,{name:"alias",label:"\u522B\u540D",children:(0,de.jsx)(De.Z,{placeholder:"\u591A\u4E2A\u522B\u540D\u7528\u82F1\u6587\u9017\u53F7\u9694\u5F00"})}),(0,de.jsx)(m_,{name:"semanticType",label:"\u7C7B\u578B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7EF4\u5EA6\u7C7B\u578B"}],children:(0,de.jsx)(lt.Z,{placeholder:"\u8BF7\u9009\u62E9\u7EF4\u5EA6\u7C7B\u578B",children:["CATEGORY","ID","DATE"].map(function(sr){return(0,de.jsx)(qg,{value:sr,children:sr},sr)})})}),(0,de.jsx)(m_,{name:"sensitiveLevel",label:"\u654F\u611F\u5EA6",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u654F\u611F\u5EA6"}],children:(0,de.jsx)(lt.Z,{placeholder:"\u8BF7\u9009\u62E9\u654F\u611F\u5EA6",children:u0.uc.map(function(sr){return(0,de.jsx)(qg,{value:sr.value,children:sr.label},sr.value)})})}),(0,de.jsx)(m_,{name:"defaultValues",label:"\u9ED8\u8BA4\u503C",children:(0,de.jsx)(BE,{})}),(0,de.jsx)(m_,{name:"description",label:"\u7EF4\u5EA6\u63CF\u8FF0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7EF4\u5EA6\u63CF\u8FF0"}],children:(0,de.jsx)(j0,{placeholder:"\u8BF7\u8F93\u5165\u7EF4\u5EA6\u63CF\u8FF0"})}),(0,de.jsx)(m_,{name:"expr",label:"\u8868\u8FBE\u5F0F",tooltip:"\u8868\u8FBE\u5F0F\u4E2D\u7684\u5B57\u6BB5\u5FC5\u987B\u5728\u521B\u5EFA\u6570\u636E\u6E90\u7684\u65F6\u5019\u88AB\u6807\u8BB0\u4E3A\u65E5\u671F\u6216\u8005\u7EF4\u5EA6",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8868\u8FBE\u5F0F"}],children:(0,de.jsx)(xu.Z,{height:"150px"})})]})};return(0,de.jsx)(de.Fragment,{children:(0,de.jsx)(wt.Z,{width:800,destroyOnClose:!0,title:"\u7EF4\u5EA6\u4FE1\u606F",style:{top:48},maskClosable:!1,open:u,footer:bn(),onCancel:l,children:(0,de.jsx)(at.Z,(0,Ie.Z)((0,Ie.Z)({},Xt.c),{},{form:Ye,children:mn()}))})})},Uy=B0,sx=o(55507),LC=o(92137),Zy=o(82241),wd=o(56112),V1=o(51756),Vy=o(33219),FC=o(24863),UE=o(52003),jC=o(45861),aT=o(57490),BC=o(63134),ZE=o(99809);function lx(C,i,a,l){if(!i.length)return a;var u=(0,ZE.Z)(i),E=u[0],P=u.slice(1),j;return!C&&typeof E=="number"?j=[]:Array.isArray(C)?j=(0,wn.Z)(C):j=(0,Jt.Z)({},C),l&&a===void 0&&P.length===1?delete j[E][P[0]]:j[E]=lx(j[E],P,a,l),j}function g_(C,i,a){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return i.length&&l&&a===void 0&&!(0,BC.Z)(C,i.slice(0,-1))?C:lx(C,i,a,l)}function XM(C){return _typeof(C)==="object"&&C!==null&&Object.getPrototypeOf(C)===Object.prototype}function ih(C){return Array.isArray(C)?[]:{}}var z1=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function iT(){for(var C=arguments.length,i=new Array(C),a=0;a<C;a++)i[a]=arguments[a];var l=ih(i[0]);return i.forEach(function(u){function E(P,j){var H=new Set(j),X=get(u,P),ee=Array.isArray(X);if(ee||XM(X)){if(!H.has(X)){H.add(X);var se=get(l,P);ee?l=g_(l,P,[]):(!se||_typeof(se)!=="object")&&(l=g_(l,P,ih(X))),z1(X).forEach(function(Se){E([].concat(_toConsumableArray(P),[Se]),H)})}}else l=g_(l,P,X)}E([])}),l}var oT=o(72673),Om=["onTableChange","maxLength","formItemProps","recordCreatorProps","rowKey","controlled","defaultValue","onChange","editableFormRef"],uy=["record","position","creatorButtonText","newRecordType","parentKey","style"],f0=K.createContext(void 0);function W1(C){var i=C.children,a=C.record,l=C.position,u=C.newRecordType,E=C.parentKey,P=(0,K.useContext)(f0);return K.cloneElement(i,(0,Jt.Z)((0,Jt.Z)({},i.props),{},{onClick:function(){var j=(0,LC.Z)((0,sx.Z)().mark(function X(ee){var se,Se,Re,Be;return(0,sx.Z)().wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.next=2,(se=(Se=i.props).onClick)===null||se===void 0?void 0:se.call(Se,ee);case 2:if(Be=ht.sent,Be!==!1){ht.next=5;break}return ht.abrupt("return");case 5:P==null||(Re=P.current)===null||Re===void 0||Re.addEditRecord(a,{position:l,newRecordType:u,parentKey:E});case 6:case"end":return ht.stop()}},X)}));function H(X){return j.apply(this,arguments)}return H}()}))}function zy(C){var i,a,l=(0,V1.YB)(),u=C.onTableChange,E=C.maxLength,P=C.formItemProps,j=C.recordCreatorProps,H=C.rowKey,X=C.controlled,ee=C.defaultValue,se=C.onChange,Se=C.editableFormRef,Re=(0,Ls.Z)(C,Om),Be=(0,Vy.Z)(C.value),Ye=(0,K.useRef)(),ht=(0,K.useRef)();(0,K.useImperativeHandle)(Re.actionRef,function(){return Ye.current});var Tt=(0,aT.Z)(function(){return C.value||ee||[]},{value:C.value,onChange:C.onChange}),Dt=(0,fa.Z)(Tt,2),Kt=Dt[0],gn=Dt[1],bn=K.useMemo(function(){return typeof H=="function"?H:function(io,oo){return io[H]||oo}},[H]),mn=function(oo){if(typeof oo=="number"&&!C.name){if(oo>=Kt.length)return oo;var Ki=Kt&&Kt[oo];return bn==null?void 0:bn(Ki,oo)}if((typeof oo=="string"||oo>=Kt.length)&&C.name){var Ji=Kt.findIndex(function(Ao,ks){var Lo;return(bn==null||(Lo=bn(Ao,ks))===null||Lo===void 0?void 0:Lo.toString())===(oo==null?void 0:oo.toString())});return Ji}return oo};(0,K.useImperativeHandle)(Se,function(){var io=function(Ji){var Ao,ks;if(Ji==null)throw new Error("rowIndex is required");var Lo=mn(Ji),Is=[C.name,(Ao=Lo==null?void 0:Lo.toString())!==null&&Ao!==void 0?Ao:""].flat(1).filter(Boolean);return(ks=ht.current)===null||ks===void 0?void 0:ks.getFieldValue(Is)},oo=function(){var Ji,Ao=[C.name].flat(1).filter(Boolean);if(Array.isArray(Ao)&&Ao.length===0){var ks,Lo=(ks=ht.current)===null||ks===void 0?void 0:ks.getFieldsValue();return Array.isArray(Lo)?Lo:Object.keys(Lo).map(function(Is){return Lo[Is]})}return(Ji=ht.current)===null||Ji===void 0?void 0:Ji.getFieldValue(Ao)};return(0,Jt.Z)((0,Jt.Z)({},ht.current),{},{getRowData:io,getRowsData:oo,setRowData:function(Ji,Ao){var ks,Lo,Is,Cl;if(Ji==null)throw new Error("rowIndex is required");var il=mn(Ji),Pl=[C.name,(ks=il==null?void 0:il.toString())!==null&&ks!==void 0?ks:""].flat(1).filter(Boolean),lc=((Lo=ht.current)===null||Lo===void 0||(Is=Lo.getFieldsValue)===null||Is===void 0?void 0:Is.call(Lo))||{},Mc=g_(lc,Pl,(0,Jt.Z)((0,Jt.Z)({},io(Ji)),Ao||{}));return(Cl=ht.current)===null||Cl===void 0?void 0:Cl.setFieldsValue(Mc)}})}),(0,K.useEffect)(function(){!C.controlled||Kt.forEach(function(io,oo){var Ki;(Ki=ht.current)===null||Ki===void 0||Ki.setFieldsValue((0,$t.Z)({},bn(io,oo),io))},{})},[Kt,C.controlled]),(0,K.useEffect)(function(){if(C.name){var io;ht.current=C==null||(io=C.editable)===null||io===void 0?void 0:io.form}},[(i=C.editable)===null||i===void 0?void 0:i.form,C.name]);var kn=j||{},sr=kn.record,yr=kn.position,jr=kn.creatorButtonText,zr=kn.newRecordType,va=kn.parentKey,za=kn.style,xi=(0,Ls.Z)(kn,uy),Di=yr==="top",Si=(0,K.useMemo)(function(){return E&&E<=(Kt==null?void 0:Kt.length)?!1:j!==!1&&(0,de.jsx)(W1,{record:(0,FC.h)(sr,Kt==null?void 0:Kt.length,Kt)||{},position:yr,parentKey:(0,FC.h)(va,Kt==null?void 0:Kt.length,Kt),newRecordType:zr,children:(0,de.jsx)(Le.Z,(0,Jt.Z)((0,Jt.Z)({type:"dashed",style:(0,Jt.Z)({display:"block",margin:"10px 0",width:"100%"},za),icon:(0,de.jsx)(Fe.Z,{})},xi),{},{children:jr||l.getMessage("editableTable.action.add","\u6DFB\u52A0\u4E00\u884C\u6570\u636E")}))})},[j,E,Kt==null?void 0:Kt.length]),jo=(0,K.useMemo)(function(){return Si?Di?{components:{header:{wrapper:function(oo){var Ki,Ji=oo.className,Ao=oo.children;return(0,de.jsxs)("thead",{className:Ji,children:[Ao,(0,de.jsxs)("tr",{style:{position:"relative"},children:[(0,de.jsx)("td",{colSpan:0,style:{visibility:"hidden"},children:Si}),(0,de.jsx)("td",{style:{position:"absolute",left:0,width:"100%"},colSpan:(Ki=Re.columns)===null||Ki===void 0?void 0:Ki.length,children:Si})]})]})}}}}:{tableViewRender:function(oo,Ki){var Ji,Ao;return(0,de.jsxs)(de.Fragment,{children:[(Ji=(Ao=C.tableViewRender)===null||Ao===void 0?void 0:Ao.call(C,oo,Ki))!==null&&Ji!==void 0?Ji:Ki,Si]})}}:{}},[Di,Si]),ro=(0,Jt.Z)({},C.editable),hi=(0,UE.J)(function(io,oo){var Ki,Ji,Ao;if((Ki=C.editable)===null||Ki===void 0||(Ji=Ki.onValuesChange)===null||Ji===void 0||Ji.call(Ki,io,oo),(Ao=C.onValuesChange)===null||Ao===void 0||Ao.call(C,oo,io),C.controlled){var ks;C==null||(ks=C.onChange)===null||ks===void 0||ks.call(C,oo)}});return((C==null?void 0:C.onValuesChange)||((a=C.editable)===null||a===void 0?void 0:a.onValuesChange)||C.controlled&&(C==null?void 0:C.onChange))&&(ro.onValuesChange=hi),(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(f0.Provider,{value:Ye,children:(0,de.jsx)(oT.Z,(0,Jt.Z)((0,Jt.Z)((0,Jt.Z)({search:!1,options:!1,pagination:!1,rowKey:H,revalidateOnFocus:!1},Re),jo),{},{tableLayout:"fixed",actionRef:Ye,onChange:u,editable:(0,Jt.Z)((0,Jt.Z)({},ro),{},{formProps:(0,Jt.Z)({formRef:ht},ro.formProps)}),dataSource:Kt,onDataSourceChange:function(oo){if(gn(oo),C.name&&yr==="top"){var Ki,Ji=g_({},[C.name].flat(1).filter(Boolean),oo);(Ki=ht.current)===null||Ki===void 0||Ki.setFieldsValue(Ji)}}}))}),C.name?(0,de.jsx)(wd.Z,{name:[C.name],children:function(oo){var Ki,Ji,Ao=(0,BC.Z)(oo,[C.name].flat(1)),ks=Ao==null?void 0:Ao.find(function(Lo,Is){return!(0,jC.Z)(Lo,Be==null?void 0:Be[Is])});return ks&&Be&&(C==null||(Ki=C.editable)===null||Ki===void 0||(Ji=Ki.onValuesChange)===null||Ji===void 0||Ji.call(Ki,ks,Ao)),null}}):null]})}function cx(C){var i=Zy.ZP.useFormInstance();return C.name?(0,de.jsx)(at.Z.Item,(0,Jt.Z)((0,Jt.Z)({style:{maxWidth:"100%"}},C==null?void 0:C.formItemProps),{},{name:C.name,children:(0,de.jsx)(zy,(0,Jt.Z)((0,Jt.Z)({},C),{},{editable:(0,Jt.Z)((0,Jt.Z)({},C.editable),{},{form:i})}))})):(0,de.jsx)(zy,(0,Jt.Z)({},C))}cx.RecordCreator=W1;var UC=cx,sT=(0,K.forwardRef)(function(C,i){var a=C.title,l=C.columnList,u=C.rowKey,E=C.tableDataSource,P=C.editableProTableProps,j=P===void 0?{}:P,H=C.onDataSourceChange,X=C.extenderCtrlColumn,ee=C.editableActionRender,se=u||"editRowId",Se=(0,K.useState)(E),Re=(0,z.Z)(Se,2),Be=Re[0],Ye=Re[1],ht=(0,K.useRef)();(0,K.useImperativeHandle)(i,function(){return{getCommonEditTableDataSource:function(){return(0,$e.Z)(Be)},editTableActionRef:ht}}),(0,K.useEffect)(function(){Ye(E.map(function(bn){return(0,Ie.Z)((0,Ie.Z)({},bn),{},{editRowId:bn[se]||(Math.random()*1e6).toFixed(0)})}))},[E]);var Tt=function(mn){setTimeout(function(){H==null||H(mn)},0)},Dt=[].concat((0,$e.Z)(l),[{title:"\u64CD\u4F5C",dataIndex:"x",valueType:"option",render:function(mn,kn,sr,yr){return(0,de.jsxs)(U.Z,{children:[(0,de.jsx)("a",{onClick:function(){var zr;yr==null||(zr=yr.startEditable)===null||zr===void 0||zr.call(yr,kn.editRowId)},children:"\u7F16\u8F91"},"editable"),(0,de.jsx)("a",{onClick:function(){var zr=(0,$e.Z)(Be).filter(function(va){return va[se]!==kn[se]});Ye(zr),Tt(zr)},children:"\u5220\u9664"},"deleteBtn"),X==null?void 0:X(mn,kn,sr,yr)]})}},{dataIndex:"editRowId",hideInTable:!0}]),Kt=function(mn,kn,sr){return ee==null?void 0:ee(mn,kn,sr,ht)},gn=ee?Kt:void 0;return(0,de.jsx)(de.Fragment,{children:(0,de.jsx)(UC,(0,Ie.Z)({actionRef:ht,headerTitle:a,rowKey:se,columns:Dt,value:Be,tableAlertRender:function(){return!1},onChange:function(mn){var kn=mn;u&&(kn=mn.map(function(sr){return(0,Ie.Z)((0,Ie.Z)({},sr),{},{editRowId:sr[u]})})),Ye(kn),Tt(mn)},editable:{onSave:function(mn,kn){var sr=kn[se],yr=Be.filter(function(jr,zr){return zr!==kn.index&&jr[se]===sr});return yr[0]?($.default.error("\u5B58\u5728\u91CD\u590D\u503C"),Promise.reject()):!0},actionRender:gn},pagination:!1,size:"small",recordCreatorProps:{record:function(){return{editRowId:(Math.random()*1e6).toFixed(0)}}}},j),a)})}),VE=sT,fy=function(i){var a=i.onCancel,l=i.open,u=i.dimensionItem,E=i.dimensionValueSettingList,P=i.domainManger,j=i.onSubmit,H=(0,K.useState)([]),X=(0,z.Z)(H,2),ee=X[0],se=X[1],Se=P.selectDomainId,Re=(0,K.useState)([]),Be=(0,z.Z)(Re,2),Ye=Be[0],ht=Be[1];(0,K.useEffect)(function(){var bn=E.map(function(mn){var kn=mn.alias;return(0,Ie.Z)((0,Ie.Z)({},mn),{},{alias:Array.isArray(kn)?kn.join(","):""})});se(bn),ht(E)},[E]);var Tt=function(){var bn=(0,G.Z)((0,L.Z)().mark(function mn(){return(0,L.Z)().wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:return sr.next=2,Dt({dimValueMaps:Ye});case 2:j==null||j(Ye);case 3:case"end":return sr.stop()}},mn)}));return function(){return bn.apply(this,arguments)}}(),Dt=function(){var bn=(0,G.Z)((0,L.Z)().mark(function mn(kn){var sr,yr,jr,zr;return(0,L.Z)().wrap(function(za){for(;;)switch(za.prev=za.next){case 0:if(u!=null&&u.id){za.next=2;break}return za.abrupt("return");case 2:return sr=(0,Ie.Z)({domainId:Se,id:u.id},kn),za.next=5,(0,dt.lV)(sr);case 5:if(yr=za.sent,jr=yr.code,zr=yr.msg,jr!==200){za.next=10;break}return za.abrupt("return");case 10:$.default.error(zr);case 11:case"end":return za.stop()}},mn)}));return function(kn){return bn.apply(this,arguments)}}(),Kt=function(){return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Le.Z,{onClick:a,children:"\u53D6\u6D88"}),(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){Tt()},children:"\u5B8C\u6210"})]})},gn=[{title:"\u6280\u672F\u540D\u79F0",dataIndex:"techName",width:200,formItemProps:{fieldProps:{placeholder:"\u8BF7\u586B\u5199\u6280\u672F\u540D\u79F0"},rules:[{required:!0,whitespace:!0,message:"\u6B64\u9879\u662F\u5FC5\u586B\u9879"}]}},{title:"\u4E1A\u52A1\u540D\u79F0",dataIndex:"bizName",width:200,fieldProps:{placeholder:"\u8BF7\u586B\u5199\u4E1A\u52A1\u540D\u79F0"},formItemProps:{rules:[{required:!0,whitespace:!0,message:"\u6B64\u9879\u662F\u5FC5\u586B\u9879"}]}},{title:"\u522B\u540D",dataIndex:"alias",fieldProps:{placeholder:"\u591A\u4E2A\u522B\u540D\u7528\u82F1\u6587\u9017\u53F7\u9694\u5F00"}}];return(0,de.jsx)(wt.Z,{width:1e3,destroyOnClose:!0,title:"\u7EF4\u5EA6\u503C\u8BBE\u7F6E",style:{top:48},maskClosable:!1,open:l,footer:Kt(),onCancel:a,children:(0,de.jsx)(VE,{tableDataSource:ee,columnList:gn,onDataSourceChange:function(mn){var kn=mn.map(function(sr){return(0,Ie.Z)((0,Ie.Z)({},sr),{},{alias:sr.alias?"".concat(sr.alias).split(","):[]})});ht(kn)}})})},ux=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(fy),vp=function(i){var a=i.domainManger,l=i.dispatch,u=a.selectModelId,E=(0,K.useState)(!1),P=(0,z.Z)(E,2),j=P[0],H=P[1],X=(0,K.useState)(),ee=(0,z.Z)(X,2),se=ee[0],Se=ee[1],Re=(0,K.useState)([]),Be=(0,z.Z)(Re,2),Ye=Be[0],ht=Be[1],Tt=(0,K.useState)([]),Dt=(0,z.Z)(Tt,2),Kt=Dt[0],gn=Dt[1],bn=(0,K.useState)(!1),mn=(0,z.Z)(bn,2),kn=mn[0],sr=mn[1],yr=(0,K.useState)({current:1,pageSize:20,total:0}),jr=(0,z.Z)(yr,2),zr=jr[0],va=jr[1],za=(0,K.useRef)(),xi=function(){var jo=(0,G.Z)((0,L.Z)().mark(function ro(hi){var io,oo,Ki,Ji,Ao,ks,Lo,Is,Cl,il;return(0,L.Z)().wrap(function(lc){for(;;)switch(lc.prev=lc.next){case 0:return lc.next=2,(0,dt.dt)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},hi),zr),{},{modelId:u}));case 2:return io=lc.sent,oo=io.code,Ki=io.data,Ji=io.msg,Ao=Ki||{},ks=Ao.list,Lo=Ao.pageSize,Is=Ao.current,Cl=Ao.total,il={},oo===200?(va({pageSize:Math.min(Lo,100),current:Is,total:Cl}),il={data:ks||[],success:!0}):($.default.error(Ji),il={data:[],total:0,success:!1}),lc.abrupt("return",il);case 10:case"end":return lc.stop()}},ro)}));return function(hi){return jo.apply(this,arguments)}}(),Di=function(){var jo=(0,G.Z)((0,L.Z)().mark(function ro(){var hi,io,oo,Ki;return(0,L.Z)().wrap(function(Ao){for(;;)switch(Ao.prev=Ao.next){case 0:return Ao.next=2,(0,dt.iY)({modelId:u});case 2:hi=Ao.sent,io=hi.code,oo=hi.data,Ki=hi.msg,io===200?ht(oo):$.default.error(Ki);case 7:case"end":return Ao.stop()}},ro)}));return function(){return jo.apply(this,arguments)}}();(0,K.useEffect)(function(){Di()},[u]);var Si=[{dataIndex:"id",title:"ID",order:100},{dataIndex:"name",title:"\u7EF4\u5EA6\u540D\u79F0"},{dataIndex:"alias",title:"\u522B\u540D",search:!1},{dataIndex:"bizName",title:"\u5B57\u6BB5\u540D\u79F0",order:9},{dataIndex:"sensitiveLevel",title:"\u654F\u611F\u5EA6",valueEnum:u0.Ze},{dataIndex:"datasourceName",title:"\u6570\u636E\u6E90\u540D\u79F0",search:!1},{dataIndex:"createdBy",title:"\u521B\u5EFA\u4EBA",search:!1},{dataIndex:"description",title:"\u63CF\u8FF0",search:!1},{dataIndex:"updatedAt",title:"\u66F4\u65B0\u65F6\u95F4",search:!1,render:function(ro){return ro&&ro!=="-"?c0()(ro).format("YYYY-MM-DD HH:mm:ss"):"-"}},{title:"\u64CD\u4F5C",dataIndex:"x",valueType:"option",render:function(ro,hi){return(0,de.jsxs)(U.Z,{children:[(0,de.jsx)("a",{onClick:function(){Se(hi),H(!0)},children:"\u7F16\u8F91"},"dimensionEditBtn"),(0,de.jsx)("a",{onClick:function(){Se(hi),sr(!0),Array.isArray(hi.dimValueMaps)?gn(hi.dimValueMaps):gn([])},children:"\u7EF4\u5EA6\u503C\u8BBE\u7F6E"},"dimensionValueEditBtn"),(0,de.jsx)(pe.Z,{title:"\u786E\u8BA4\u5220\u9664\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,G.Z)((0,L.Z)().mark(function io(){var oo,Ki,Ji,Ao;return(0,L.Z)().wrap(function(Lo){for(;;)switch(Lo.prev=Lo.next){case 0:return Lo.next=2,(0,dt.BE)(hi.id);case 2:oo=Lo.sent,Ki=oo.code,Ji=oo.msg,Ki===200?(Se(void 0),(Ao=za.current)===null||Ao===void 0||Ao.reload()):$.default.error(Ji);case 6:case"end":return Lo.stop()}},io)})),children:(0,de.jsx)("a",{onClick:function(){Se(hi)},children:"\u5220\u9664"},"dimensionDeleteEditBtn")})]})}}];return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(u_.ZP,{className:"".concat(St().classTable," ").concat(St().classTableSelectColumnAlignLeft),actionRef:za,rowKey:"id",columns:Si,request:xi,pagination:zr,search:{span:4,defaultCollapsed:!1,collapseRender:function(){return(0,de.jsx)(de.Fragment,{})}},onChange:function(ro){var hi=ro.current,io=ro.pageSize,oo=ro.total;va({current:hi,pageSize:io,total:oo})},tableAlertRender:function(){return!1},size:"small",options:{reload:!1,density:!1,fullScreen:!1},toolBarRender:function(){return[(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){Se(void 0),H(!0)},children:"\u521B\u5EFA\u7EF4\u5EA6"},"create")]}}),j&&(0,de.jsx)(Uy,{modelId:u,bindModalVisible:j,dimensionItem:se,dataSourceList:Ye,onSubmit:function(){var ro;H(!1),za==null||(ro=za.current)===null||ro===void 0||ro.reload(),l({type:"domainManger/queryDimensionList",payload:{modelId:u}})},onCancel:function(){H(!1)}}),kn&&(0,de.jsx)(ux,{dimensionValueSettingList:Kt,open:kn,dimensionItem:se,onCancel:function(){sr(!1)},onSubmit:function(){var ro;za==null||(ro=za.current)===null||ro===void 0||ro.reload(),l({type:"domainManger/queryDimensionList",payload:{modelId:u}}),sr(!1)}})]})},Sv=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(vp),d0=o(66146),p0=function(i){var a=i.domainManger,l=i.dispatch,u=a.selectModelId,E=a.selectDomainId,P=(0,K.useState)(!1),j=(0,z.Z)(P,2),H=j[0],X=j[1],ee=(0,K.useState)(),se=(0,z.Z)(ee,2),Se=se[0],Re=se[1],Be=(0,K.useState)({current:1,pageSize:20,total:0}),Ye=(0,z.Z)(Be,2),ht=Ye[0],Tt=Ye[1],Dt=(0,K.useRef)(),Kt=function(){var bn=(0,G.Z)((0,L.Z)().mark(function mn(kn){var sr,yr,jr,zr,va,za,xi,Di,Si,jo;return(0,L.Z)().wrap(function(hi){for(;;)switch(hi.prev=hi.next){case 0:return hi.next=2,(0,dt.VJ)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},kn),ht),{},{modelId:u}));case 2:return sr=hi.sent,yr=sr.code,jr=sr.data,zr=sr.msg,va=jr||{},za=va.list,xi=va.pageSize,Di=va.current,Si=va.total,jo={},yr===200?(Tt({pageSize:Math.min(xi,100),current:Di,total:Si}),jo={data:za||[],success:!0}):($.default.error(zr),jo={data:[],total:0,success:!1}),hi.abrupt("return",jo);case 10:case"end":return hi.stop()}},mn)}));return function(kn){return bn.apply(this,arguments)}}(),gn=[{dataIndex:"id",title:"ID"},{dataIndex:"name",title:"\u6307\u6807\u540D\u79F0"},{dataIndex:"alias",title:"\u522B\u540D",search:!1},{dataIndex:"bizName",title:"\u5B57\u6BB5\u540D\u79F0"},{dataIndex:"sensitiveLevel",title:"\u654F\u611F\u5EA6",valueEnum:u0.Ze},{dataIndex:"createdBy",title:"\u521B\u5EFA\u4EBA",search:!1},{dataIndex:"description",title:"\u63CF\u8FF0",search:!1},{dataIndex:"type",title:"\u6307\u6807\u7C7B\u578B",valueEnum:{ATOMIC:"\u539F\u5B50\u6307\u6807",DERIVED:"\u884D\u751F\u6307\u6807"}},{dataIndex:"updatedAt",title:"\u66F4\u65B0\u65F6\u95F4",search:!1,render:function(mn){return mn&&mn!=="-"?c0()(mn).format("YYYY-MM-DD HH:mm:ss"):"-"}},{title:"\u64CD\u4F5C",dataIndex:"x",valueType:"option",render:function(mn,kn){return(0,de.jsxs)(U.Z,{children:[(0,de.jsx)("a",{onClick:function(){Re(kn),X(!0)},children:"\u7F16\u8F91"},"metricEditBtn"),(0,de.jsx)(pe.Z,{title:"\u786E\u8BA4\u5220\u9664\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,G.Z)((0,L.Z)().mark(function sr(){var yr,jr,zr,va;return(0,L.Z)().wrap(function(xi){for(;;)switch(xi.prev=xi.next){case 0:return xi.next=2,(0,dt.vW)(kn.id);case 2:yr=xi.sent,jr=yr.code,zr=yr.msg,jr===200?(Re(void 0),(va=Dt.current)===null||va===void 0||va.reload()):$.default.error(zr);case 6:case"end":return xi.stop()}},sr)})),children:(0,de.jsx)("a",{onClick:function(){Re(kn)},children:"\u5220\u9664"},"metricDeleteBtn")})]})}}];return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(u_.ZP,{className:"".concat(St().classTable," ").concat(St().classTableSelectColumnAlignLeft),actionRef:Dt,rowKey:"id",search:{span:4,defaultCollapsed:!1,collapseRender:function(){return(0,de.jsx)(de.Fragment,{})}},columns:gn,params:{modelId:u},request:Kt,pagination:ht,tableAlertRender:function(){return!1},onChange:function(mn){var kn=mn.current,sr=mn.pageSize,yr=mn.total;Tt({current:kn,pageSize:sr,total:yr})},size:"small",options:{reload:!1,density:!1,fullScreen:!1},toolBarRender:function(){return[(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){Re(void 0),X(!0)},children:"\u521B\u5EFA\u6307\u6807"},"create")]}}),H&&(0,de.jsx)(d0.Z,{domainId:E,modelId:Number(u),createModalVisible:H,metricItem:Se,onSubmit:function(){var mn;X(!1),Dt==null||(mn=Dt.current)===null||mn===void 0||mn.reload(),l({type:"domainManger/queryMetricList",payload:{modelId:u}})},onCancel:function(){X(!1)}})]})},zE=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(p0),H1=o(14082);function e_(C){return G1.apply(this,arguments)}function G1(){return G1=(0,G.Z)((0,L.Z)().mark(function C(i){return(0,L.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,Q.WY)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.AUTH_API_BASE_URL,"user/getUserByOrg/").concat(i),{method:"GET"}));case 1:case"end":return l.stop()}},C)})),G1.apply(this,arguments)}function $1(){return fx.apply(this,arguments)}function fx(){return fx=(0,G.Z)((0,L.Z)().mark(function C(){return(0,L.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,Q.WY)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.AUTH_API_BASE_URL,"user/getOrganizationTree"),{method:"GET"}));case 1:case"end":return a.stop()}},C)})),fx.apply(this,arguments)}var dx=o(2138);function bv(){return bh.apply(this,arguments)}function bh(){return bh=(0,G.Z)((0,L.Z)().mark(function C(){return(0,L.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",dx.ZP.get("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.AUTH_API_BASE_URL,"user/getUserList")));case 1:case"end":return a.stop()}},C)})),bh.apply(this,arguments)}var Cv=o(50756),dy=o(78145),K1=o(76780),Y1=2,Wy=.16,ZC=.05,px=.05,VC=.15,vx=5,py=4,zC=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function hx(C){var i=C.r,a=C.g,l=C.b,u=(0,dy.py)(i,a,l);return{h:u.h*360,s:u.s,v:u.v}}function X1(C){var i=C.r,a=C.g,l=C.b;return"#".concat((0,dy.vq)(i,a,l,!1))}function WE(C,i,a){var l=a/100,u={r:(i.r-C.r)*l+C.r,g:(i.g-C.g)*l+C.g,b:(i.b-C.b)*l+C.b};return u}function mx(C,i,a){var l;return Math.round(C.h)>=60&&Math.round(C.h)<=240?l=a?Math.round(C.h)-Y1*i:Math.round(C.h)+Y1*i:l=a?Math.round(C.h)+Y1*i:Math.round(C.h)-Y1*i,l<0?l+=360:l>=360&&(l-=360),l}function gx(C,i,a){if(C.h===0&&C.s===0)return C.s;var l;return a?l=C.s-Wy*i:i===py?l=C.s+Wy:l=C.s+ZC*i,l>1&&(l=1),a&&i===vx&&l>.1&&(l=.1),l<.06&&(l=.06),Number(l.toFixed(2))}function J1(C,i,a){var l;return a?l=C.v+px*i:l=C.v-VC*i,l>1&&(l=1),Number(l.toFixed(2))}function _x(C){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=[],l=(0,K1.uA)(C),u=vx;u>0;u-=1){var E=hx(l),P=X1((0,K1.uA)({h:mx(E,u,!0),s:gx(E,u,!0),v:J1(E,u,!0)}));a.push(P)}a.push(X1(l));for(var j=1;j<=py;j+=1){var H=hx(l),X=X1((0,K1.uA)({h:mx(H,j),s:gx(H,j),v:J1(H,j)}));a.push(X)}return i.theme==="dark"?zC.map(function(ee){var se=ee.index,Se=ee.opacity,Re=X1(WE((0,K1.uA)(i.backgroundColor||"#141414"),(0,K1.uA)(a[se]),Se*100));return Re}):a}var HE={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Im={},Q1={};Object.keys(HE).forEach(function(C){Im[C]=_x(HE[C]),Im[C].primary=Im[C][5],Q1[C]=_x(HE[C],{theme:"dark",backgroundColor:"#141414"}),Q1[C].primary=Q1[C][5]});var JM=Im.red,QM=Im.volcano,vy=Im.gold,Lv=Im.orange,qM=Im.yellow,Hy=Im.lime,lT=Im.green,ek=Im.cyan,U0=Im.blue,cT=Im.geekblue,gO=Im.purple,GE=Im.magenta,$E=Im.grey,yx=Im.grey,bx=(0,K.createContext)({}),xx=bx;function WC(C,i){if(!C)return!1;if(C.contains)return C.contains(i);for(var a=i;a;){if(a===C)return!0;a=a.parentNode}return!1}var _e="data-rc-order",Ve="data-rc-priority",Gt="rc-util-key",fr=new Map;function ha(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=C.mark;return i?i.startsWith("data-")?i:"data-".concat(i):Gt}function Ka(C){if(C.attachTo)return C.attachTo;var i=document.querySelector("head");return i||document.body}function no(C){return C==="queue"?"prependQueue":C?"prepend":"append"}function bo(C){return Array.from((fr.get(C)||C).children).filter(function(i){return i.tagName==="STYLE"})}function ls(C){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!tn())return null;var a=i.csp,l=i.prepend,u=i.priority,E=u===void 0?0:u,P=no(l),j=P==="prependQueue",H=document.createElement("style");H.setAttribute(_e,P),j&&E&&H.setAttribute(Ve,"".concat(E)),a!=null&&a.nonce&&(H.nonce=a==null?void 0:a.nonce),H.innerHTML=C;var X=Ka(i),ee=X.firstChild;if(l){if(j){var se=bo(X).filter(function(Se){if(!["prepend","prependQueue"].includes(Se.getAttribute(_e)))return!1;var Re=Number(Se.getAttribute(Ve)||0);return E>=Re});if(se.length)return X.insertBefore(H,se[se.length-1].nextSibling),H}X.insertBefore(H,ee)}else X.appendChild(H);return H}function Bl(C){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=Ka(i);return bo(a).find(function(l){return l.getAttribute(ha(i))===C})}function $l(C){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=Bl(C,i);if(a){var l=Ka(i);l.removeChild(a)}}function vc(C,i){var a=fr.get(C);if(!a||!WC(document,a)){var l=ls("",i),u=l.parentNode;fr.set(C,u),C.removeChild(l)}}function Fu(){fr.clear()}function Zf(C,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=Ka(a);vc(l,a);var u=Bl(i,a);if(u){var E,P;if((E=a.csp)!==null&&E!==void 0&&E.nonce&&u.nonce!==((P=a.csp)===null||P===void 0?void 0:P.nonce)){var j;u.nonce=(j=a.csp)===null||j===void 0?void 0:j.nonce}return u.innerHTML!==C&&(u.innerHTML=C),u}var H=ls(C,a);return H.setAttribute(ha(a),i),H}function nd(C){var i;return C==null||(i=C.getRootNode)===null||i===void 0?void 0:i.call(C)}function Qd(C){return nd(C)instanceof ShadowRoot}function Td(C){return Qd(C)?nd(C):null}var Ap={},hp=[],Zg=function(i){hp.push(i)};function Hm(C,i){if(!1)var a}function mg(C,i){if(!1)var a}function xh(){Ap={}}function hm(C,i,a){!i&&!Ap[a]&&(C(!1,a),Ap[a]=!0)}function gg(C,i){hm(Hm,C,i)}function hy(C,i){hm(mg,C,i)}gg.preMessage=Zg,gg.resetWarned=xh,gg.noteOnce=hy;var HC=gg;function GC(C){return C.replace(/-(.)/g,function(i,a){return a.toUpperCase()})}function KE(C,i){HC(C,"[@ant-design/icons] ".concat(i))}function _O(C){return(0,ta.Z)(C)==="object"&&typeof C.name=="string"&&typeof C.theme=="string"&&((0,ta.Z)(C.icon)==="object"||typeof C.icon=="function")}function YE(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(C).reduce(function(i,a){var l=C[a];switch(a){case"class":i.className=l,delete i.class;break;default:delete i[a],i[GC(a)]=l}return i},{})}function uT(C,i,a){return a?K.createElement(C.tag,(0,Jt.Z)((0,Jt.Z)({key:i},YE(C.attrs)),a),(C.children||[]).map(function(l,u){return uT(l,"".concat(i,"-").concat(C.tag,"-").concat(u))})):K.createElement(C.tag,(0,Jt.Z)({key:i},YE(C.attrs)),(C.children||[]).map(function(l,u){return uT(l,"".concat(i,"-").concat(C.tag,"-").concat(u))}))}function fT(C){return _x(C)[0]}function dT(C){return C?Array.isArray(C)?C:[C]:[]}var tk={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},nk=`
|
||
.anticon {
|
||
display: inline-block;
|
||
color: inherit;
|
||
font-style: normal;
|
||
line-height: 0;
|
||
text-align: center;
|
||
text-transform: none;
|
||
vertical-align: -0.125em;
|
||
text-rendering: optimizeLegibility;
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
|
||
.anticon > * {
|
||
line-height: 1;
|
||
}
|
||
|
||
.anticon svg {
|
||
display: inline-block;
|
||
}
|
||
|
||
.anticon::before {
|
||
display: none;
|
||
}
|
||
|
||
.anticon .anticon-icon {
|
||
display: block;
|
||
}
|
||
|
||
.anticon[tabindex] {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.anticon-spin::before,
|
||
.anticon-spin {
|
||
display: inline-block;
|
||
-webkit-animation: loadingCircle 1s infinite linear;
|
||
animation: loadingCircle 1s infinite linear;
|
||
}
|
||
|
||
@-webkit-keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
@keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
`,pT=function(i){var a=(0,K.useContext)(xx),l=a.csp,u=a.prefixCls,E=nk;u&&(E=E.replace(/anticon/g,u)),(0,K.useEffect)(function(){var P=i.current,j=Td(P);Zf(E,"@ant-design-icons",{prepend:!0,csp:l,attachTo:j})},[])},yO=["icon","className","onClick","style","primaryColor","secondaryColor"],Z0={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function vT(C){var i=C.primaryColor,a=C.secondaryColor;Z0.primaryColor=i,Z0.secondaryColor=a||fT(i),Z0.calculated=!!a}function hT(){return(0,Jt.Z)({},Z0)}var Ex=function(i){var a=i.icon,l=i.className,u=i.onClick,E=i.style,P=i.primaryColor,j=i.secondaryColor,H=(0,Ls.Z)(i,yO),X=K.useRef(),ee=Z0;if(P&&(ee={primaryColor:P,secondaryColor:j||fT(P)}),pT(X),KE(_O(a),"icon should be icon definiton, but got ".concat(a)),!_O(a))return null;var se=a;return se&&typeof se.icon=="function"&&(se=(0,Jt.Z)((0,Jt.Z)({},se),{},{icon:se.icon(ee.primaryColor,ee.secondaryColor)})),uT(se.icon,"svg-".concat(se.name),(0,Jt.Z)((0,Jt.Z)({className:l,onClick:u,style:E,"data-icon":se.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},H),{},{ref:X}))};Ex.displayName="IconReact",Ex.getTwoToneColors=hT,Ex.setTwoToneColors=vT;var $C=Ex;function rk(C){var i=dT(C),a=(0,fa.Z)(i,2),l=a[0],u=a[1];return $C.setTwoToneColors({primaryColor:l,secondaryColor:u})}function Bd(){var C=$C.getTwoToneColors();return C.calculated?[C.primaryColor,C.secondaryColor]:C.primaryColor}var mT=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];rk(U0.primary);var gT=K.forwardRef(function(C,i){var a,l=C.className,u=C.icon,E=C.spin,P=C.rotate,j=C.tabIndex,H=C.onClick,X=C.twoToneColor,ee=(0,Ls.Z)(C,mT),se=K.useContext(xx),Se=se.prefixCls,Re=Se===void 0?"anticon":Se,Be=se.rootClassName,Ye=ba()(Be,Re,(a={},(0,$t.Z)(a,"".concat(Re,"-").concat(u.name),!!u.name),(0,$t.Z)(a,"".concat(Re,"-spin"),!!E||u.name==="loading"),a),l),ht=j;ht===void 0&&H&&(ht=-1);var Tt=P?{msTransform:"rotate(".concat(P,"deg)"),transform:"rotate(".concat(P,"deg)")}:void 0,Dt=dT(X),Kt=(0,fa.Z)(Dt,2),gn=Kt[0],bn=Kt[1];return K.createElement("span",(0,Fn.Z)({role:"img","aria-label":u.name},ee,{ref:i,tabIndex:ht,onClick:H,className:Ye}),K.createElement($C,{icon:u,primaryColor:gn,secondaryColor:bn,style:Tt}))});gT.displayName="AntdIcon",gT.getTwoToneColor=Bd,gT.setTwoToneColor=rk;var Gy=gT,KC=function(i,a){return K.createElement(Gy,(0,Fn.Z)({},i,{ref:a,icon:Cv.Z}))},YC=K.forwardRef(KC),_T=o(93696),$y=function(i,a){return K.createElement(Gy,(0,Fn.Z)({},i,{ref:a,icon:_T.Z}))},yT=K.forwardRef($y),q1=function(i){return(0,$t.Z)({},i.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:i.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:i.colorTextSecondary,fontWeight:"normal",fontSize:i.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function W4(C){return Jh("LabelIconTip",function(i){var a=(0,Jt.Z)((0,Jt.Z)({},i),{},{componentCls:".".concat(C)});return[q1(a)]})}var H4=K.memo(function(C){var i=C.label,a=C.tooltip,l=C.ellipsis,u=C.subTitle,E=(0,K.useContext)(ni.ZP.ConfigContext),P=E.getPrefixCls,j=P("pro-core-label-tip"),H=W4(j),X=H.wrapSSR,ee=H.hashId;if(!a&&!u)return(0,de.jsx)(de.Fragment,{children:i});var se=typeof a=="string"||K.isValidElement(a)?{title:a}:a,Se=(se==null?void 0:se.icon)||(0,de.jsx)(yT,{});return X((0,de.jsxs)("div",{className:ba()(j,ee),onMouseDown:function(Be){return Be.stopPropagation()},onMouseLeave:function(Be){return Be.stopPropagation()},onMouseMove:function(Be){return Be.stopPropagation()},children:[(0,de.jsx)("div",{className:ba()("".concat(j,"-title"),ee,(0,$t.Z)({},"".concat(j,"-title-ellipsis"),l)),children:i}),u&&(0,de.jsx)("div",{className:"".concat(j,"-subtitle ").concat(ee).trim(),children:u}),a&&(0,de.jsx)(fe.Z,(0,Jt.Z)((0,Jt.Z)({},se),{},{children:(0,de.jsx)("span",{className:"".concat(j,"-icon ").concat(ee).trim(),children:Se})}))]}))}),ak=o(49570),mm=new Fh("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),XC=function(i){var a;return(0,$t.Z)({},i.componentCls,(a={"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},(0,$t.Z)(a,"".concat(i.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),(0,$t.Z)(a,"".concat(i.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:i.borderRadius,animationName:mm,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}),a))};function bO(C){return Jh("ProCardLoading",function(i){var a=(0,Jt.Z)((0,Jt.Z)({},i),{},{componentCls:".".concat(C)});return[XC(a)]})}var XE=function(i){var a=i.style,l=i.prefix,u=bO(l||"ant-pro-card"),E=u.wrapSSR;return E((0,de.jsxs)("div",{className:"".concat(l,"-loading-content"),style:a,children:[(0,de.jsx)(ce.Z,{gutter:8,children:(0,de.jsx)(me.Z,{span:22,children:(0,de.jsx)("div",{className:"".concat(l,"-loading-block")})})}),(0,de.jsxs)(ce.Z,{gutter:8,children:[(0,de.jsx)(me.Z,{span:8,children:(0,de.jsx)("div",{className:"".concat(l,"-loading-block")})}),(0,de.jsx)(me.Z,{span:15,children:(0,de.jsx)("div",{className:"".concat(l,"-loading-block")})})]}),(0,de.jsxs)(ce.Z,{gutter:8,children:[(0,de.jsx)(me.Z,{span:6,children:(0,de.jsx)("div",{className:"".concat(l,"-loading-block")})}),(0,de.jsx)(me.Z,{span:18,children:(0,de.jsx)("div",{className:"".concat(l,"-loading-block")})})]}),(0,de.jsxs)(ce.Z,{gutter:8,children:[(0,de.jsx)(me.Z,{span:13,children:(0,de.jsx)("div",{className:"".concat(l,"-loading-block")})}),(0,de.jsx)(me.Z,{span:9,children:(0,de.jsx)("div",{className:"".concat(l,"-loading-block")})})]}),(0,de.jsxs)(ce.Z,{gutter:8,children:[(0,de.jsx)(me.Z,{span:4,children:(0,de.jsx)("div",{className:"".concat(l,"-loading-block")})}),(0,de.jsx)(me.Z,{span:3,children:(0,de.jsx)("div",{className:"".concat(l,"-loading-block")})}),(0,de.jsx)(me.Z,{span:16,children:(0,de.jsx)("div",{className:"".concat(l,"-loading-block")})})]})]}))},Ky=XE,JE="4.24.13";function QE(C){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=[];return K.Children.forEach(C,function(l){l==null&&!i.keepEmpty||(Array.isArray(l)?a=a.concat(QE(l)):(0,Rs.isFragment)(l)&&l.props?a=a.concat(QE(l.props.children,i)):a.push(l))}),a}var xO=o(82195),eb=["tab","children"],EO=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function Mp(C){return C.filter(function(i){return i})}function SO(C,i,a){if(C)return C.map(function(u){return(0,Jt.Z)((0,Jt.Z)({},u),{},{children:(0,de.jsx)(V0,(0,Jt.Z)((0,Jt.Z)({},a==null?void 0:a.cardProps),{},{children:u.children}))})});hy(!a,"Tabs.TabPane is deprecated. Please use `items` directly.");var l=QE(i).map(function(u){if(K.isValidElement(u)){var E=u.key,P=u.props,j=P||{},H=j.tab,X=j.children,ee=(0,Ls.Z)(j,eb),se=(0,Jt.Z)((0,Jt.Z)({key:String(E)},ee),{},{children:(0,de.jsx)(V0,(0,Jt.Z)((0,Jt.Z)({},a==null?void 0:a.cardProps),{},{children:X})),label:H});return se}return null});return Mp(l)}var tb=function(i){var a=(0,K.useContext)(ni.ZP.ConfigContext),l=a.getPrefixCls;if(JE.startsWith("5"))return(0,de.jsx)(de.Fragment,{});var u=i.key,E=i.tab,P=i.tabKey,j=i.disabled,H=i.destroyInactiveTabPane,X=i.children,ee=i.className,se=i.style,Se=i.cardProps,Re=(0,Ls.Z)(i,EO),Be=l("pro-card-tabpane"),Ye=ba()(Be,ee);return(0,de.jsx)(ut.Z.TabPane,(0,Jt.Z)((0,Jt.Z)({tabKey:P,tab:E,className:Ye,style:se,disabled:j,destroyInactiveTabPane:H},Re),{},{children:(0,de.jsx)(V0,(0,Jt.Z)((0,Jt.Z)({},Se),{},{children:X}))}),u)},bT=tb,xT=function(i){return{backgroundColor:i.controlItemBgActive,borderColor:i.controlOutline}},rd=function(i){var a,l,u,E,P,j=i.componentCls;return P={},(0,$t.Z)(P,j,(0,Jt.Z)((0,Jt.Z)({position:"relative",display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,backgroundColor:i.colorBgContainer,borderRadius:i.borderRadius},Qm==null?void 0:Qm(i)),{},(l={"&-box-shadow":{boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017",borderColor:"transparent"},"&-col":{width:"100%"},"&-border":{border:"".concat(i.lineWidth,"px ").concat(i.lineType," ").concat(i.colorSplit)},"&-hoverable":(0,$t.Z)({cursor:"pointer",transition:"box-shadow 0.3s, border-color 0.3s","&:hover":{borderColor:"transparent",boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017"}},"&".concat(j,"-checked:hover"),{borderColor:i.controlOutline}),"&-checked":(0,Jt.Z)((0,Jt.Z)({},xT(i)),{},{"&::after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,border:"6px solid ".concat(i.colorPrimary),borderBlockEnd:"6px solid transparent",borderInlineStart:"6px solid transparent",borderStartEndRadius:2,content:'""'}}),"&:focus":(0,Jt.Z)({},xT(i)),"&&-ghost":(0,$t.Z)({backgroundColor:"transparent"},"> ".concat(j),{"&-header":{paddingInlineEnd:0,paddingBlockEnd:i.padding,paddingInlineStart:0},"&-body":{paddingBlock:0,paddingInline:0,backgroundColor:"transparent"}}),"&&-split > &-body":{paddingBlock:0,paddingInline:0},"&&-contain-card > &-body":{display:"flex"}},(0,$t.Z)(l,"".concat(j,"-body-direction-column"),{flexDirection:"column"}),(0,$t.Z)(l,"".concat(j,"-body-wrap"),{flexWrap:"wrap"}),(0,$t.Z)(l,"&&-collapse",(0,$t.Z)({},"> ".concat(j),{"&-header":{paddingBlockEnd:i.padding,borderBlockEnd:0},"&-body":{display:"none"}})),(0,$t.Z)(l,"".concat(j,"-header"),{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:i.paddingLG,paddingBlock:i.padding,paddingBlockEnd:0,"&-border":{"&":{paddingBlockEnd:i.padding},borderBlockEnd:"".concat(i.lineWidth,"px ").concat(i.lineType," ").concat(i.colorSplit)},"&-collapsible":{cursor:"pointer"}}),(0,$t.Z)(l,"".concat(j,"-title"),{color:i.colorText,fontWeight:500,fontSize:i.fontSizeLG,lineHeight:i.lineHeight}),(0,$t.Z)(l,"".concat(j,"-extra"),{color:i.colorText}),(0,$t.Z)(l,"".concat(j,"-type-inner"),(0,$t.Z)({},"".concat(j,"-header"),{backgroundColor:i.colorFillAlter})),(0,$t.Z)(l,"".concat(j,"-collapsible-icon"),{marginInlineEnd:i.marginXS,color:i.colorIconHover,":hover":{color:i.colorPrimaryHover},"& svg":{transition:"transform ".concat(i.motionDurationMid)}}),(0,$t.Z)(l,"".concat(j,"-body"),{display:"block",boxSizing:"border-box",height:"100%",paddingInline:i.paddingLG,paddingBlock:i.padding,"&-center":{display:"flex",alignItems:"center",justifyContent:"center"}}),(0,$t.Z)(l,"&&-size-small",(a={},(0,$t.Z)(a,j,{"&-header":{paddingInline:i.paddingSM,paddingBlock:i.paddingXS,paddingBlockEnd:0,"&-border":{paddingBlockEnd:i.paddingXS}},"&-title":{fontSize:i.fontSize},"&-body":{paddingInline:i.paddingSM,paddingBlock:i.paddingSM}}),(0,$t.Z)(a,"".concat(j,"-header").concat(j,"-header-collapsible"),{paddingBlock:i.paddingXS}),a)),l))),(0,$t.Z)(P,"".concat(j,"-col"),(u={},(0,$t.Z)(u,"&".concat(j,"-split-vertical"),{borderInlineEnd:"".concat(i.lineWidth,"px ").concat(i.lineType," ").concat(i.colorSplit)}),(0,$t.Z)(u,"&".concat(j,"-split-horizontal"),{borderBlockEnd:"".concat(i.lineWidth,"px ").concat(i.lineType," ").concat(i.colorSplit)}),u)),(0,$t.Z)(P,"".concat(j,"-tabs"),(E={},(0,$t.Z)(E,"".concat(i.antCls,"-tabs-top > ").concat(i.antCls,"-tabs-nav"),(0,$t.Z)({marginBlockEnd:0},"".concat(i.antCls,"-tabs-nav-list"),{marginBlockStart:i.marginXS,paddingInlineStart:i.padding})),(0,$t.Z)(E,"".concat(i.antCls,"-tabs-bottom > ").concat(i.antCls,"-tabs-nav"),(0,$t.Z)({marginBlockEnd:0},"".concat(i.antCls,"-tabs-nav-list"),{paddingInlineStart:i.padding})),(0,$t.Z)(E,"".concat(i.antCls,"-tabs-left"),(0,$t.Z)({},"".concat(i.antCls,"-tabs-content-holder"),(0,$t.Z)({},"".concat(i.antCls,"-tabs-content"),(0,$t.Z)({},"".concat(i.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),(0,$t.Z)(E,"".concat(i.antCls,"-tabs-left > ").concat(i.antCls,"-tabs-nav"),(0,$t.Z)({marginInlineEnd:0},"".concat(i.antCls,"-tabs-nav-list"),{paddingBlockStart:i.padding})),(0,$t.Z)(E,"".concat(i.antCls,"-tabs-right"),(0,$t.Z)({},"".concat(i.antCls,"-tabs-content-holder"),(0,$t.Z)({},"".concat(i.antCls,"-tabs-content"),(0,$t.Z)({},"".concat(i.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),(0,$t.Z)(E,"".concat(i.antCls,"-tabs-right > ").concat(i.antCls,"-tabs-nav"),(0,$t.Z)({},"".concat(i.antCls,"-tabs-nav-list"),{paddingBlockStart:i.padding})),E)),P},Ah=24,j_=function(i,a){var l=a.componentCls;return i===0?(0,$t.Z)({},"".concat(l,"-col-0"),{display:"none"}):(0,$t.Z)({},"".concat(l,"-col-").concat(i),{flexShrink:0,width:"".concat(i/Ah*100,"%")})},_g=function(i){return Array(Ah+1).fill(1).map(function(a,l){return j_(l,i)})};function v0(C){return Jh("ProCard",function(i){var a=(0,Jt.Z)((0,Jt.Z)({},i),{},{componentCls:".".concat(C)});return[rd(a),_g(a)]})}var JC=["className","style","bodyStyle","headStyle","title","subTitle","extra","tip","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","boxShadow","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],Vg=K.forwardRef(function(C,i){var a,l,u,E=C.className,P=C.style,j=C.bodyStyle,H=j===void 0?{}:j,X=C.headStyle,ee=X===void 0?{}:X,se=C.title,Se=C.subTitle,Re=C.extra,Be=C.tip,Ye=C.wrap,ht=Ye===void 0?!1:Ye,Tt=C.layout,Dt=C.loading,Kt=C.gutter,gn=Kt===void 0?0:Kt,bn=C.tooltip,mn=C.split,kn=C.headerBordered,sr=kn===void 0?!1:kn,yr=C.bordered,jr=yr===void 0?!1:yr,zr=C.boxShadow,va=zr===void 0?!1:zr,za=C.children,xi=C.size,Di=C.actions,Si=C.ghost,jo=Si===void 0?!1:Si,ro=C.hoverable,hi=ro===void 0?!1:ro,io=C.direction,oo=C.collapsed,Ki=C.collapsible,Ji=Ki===void 0?!1:Ki,Ao=C.collapsibleIconRender,ks=C.defaultCollapsed,Lo=ks===void 0?!1:ks,Is=C.onCollapse,Cl=C.checked,il=C.onChecked,Pl=C.tabs,lc=C.type,Mc=(0,Ls.Z)(C,JC),dp=(0,K.useContext)(ni.ZP.ConfigContext),zf=dp.getPrefixCls,gv=ak.ZP.useBreakpoint()||{lg:!0,md:!0,sm:!0,xl:!1,xs:!1,xxl:!1},Wf=oi(Lo,{value:oo,onChange:Is}),cu=(0,fa.Z)(Wf,2),kf=cu[0],af=cu[1],lf=["xxl","xl","lg","md","sm","xs"],gu=SO(Pl==null?void 0:Pl.items,za,Pl),Vc=function(qf){var Up=[0,0],eh=Array.isArray(qf)?qf:[qf,0];return eh.forEach(function(lg,Ld){if((0,ta.Z)(lg)==="object")for(var md=0;md<lf.length;md+=1){var mf=lf[md];if(gv[mf]&&lg[mf]!==void 0){Up[Ld]=lg[mf];break}}else Up[Ld]=lg||0}),Up},Wc=function(qf,Up){return qf?Up:{}},Mu=function(qf){var Up=qf;if((0,ta.Z)(qf)==="object")for(var eh=0;eh<lf.length;eh+=1){var lg=lf[eh];if(gv!=null&&gv[lg]&&(qf==null?void 0:qf[lg])!==void 0){Up=qf[lg];break}}var Ld=Wc(typeof Up=="string"&&/\d%|\dpx/i.test(Up),{width:Up,flexShrink:0});return{span:Up,colSpanStyle:Ld}},Rc=zf("pro-card"),Nl=v0(Rc),Oc=Nl.wrapSSR,au=Nl.hashId,ef=Vc(gn),ju=(0,fa.Z)(ef,2),Gf=ju[0],ip=ju[1],ph=!1,Qp=K.Children.toArray(za),Zh=Qp.map(function(ov,qf){var Up;if(ov!=null&&(Up=ov.type)!==null&&Up!==void 0&&Up.isProCard){var eh;ph=!0;var lg=ov.props.colSpan,Ld=Mu(lg),md=Ld.span,mf=Ld.colSpanStyle,Av=ba()(["".concat(Rc,"-col")],au,(eh={},(0,$t.Z)(eh,"".concat(Rc,"-split-vertical"),mn==="vertical"&&qf!==Qp.length-1),(0,$t.Z)(eh,"".concat(Rc,"-split-horizontal"),mn==="horizontal"&&qf!==Qp.length-1),(0,$t.Z)(eh,"".concat(Rc,"-col-").concat(md),typeof md=="number"&&md>=0&&md<=24),eh)),Vh=Oc((0,de.jsx)("div",{style:(0,Jt.Z)((0,Jt.Z)((0,Jt.Z)({},mf),Wc(Gf>0,{paddingInlineEnd:Gf/2,paddingInlineStart:Gf/2})),Wc(ip>0,{paddingBlockStart:ip/2,paddingBlockEnd:ip/2})),className:Av,children:K.cloneElement(ov)}));return K.cloneElement(Vh,{key:"pro-card-col-".concat((ov==null?void 0:ov.key)||qf)})}return ov}),sg=ba()("".concat(Rc),E,au,(a={},(0,$t.Z)(a,"".concat(Rc,"-border"),jr),(0,$t.Z)(a,"".concat(Rc,"-box-shadow"),va),(0,$t.Z)(a,"".concat(Rc,"-contain-card"),ph),(0,$t.Z)(a,"".concat(Rc,"-loading"),Dt),(0,$t.Z)(a,"".concat(Rc,"-split"),mn==="vertical"||mn==="horizontal"),(0,$t.Z)(a,"".concat(Rc,"-ghost"),jo),(0,$t.Z)(a,"".concat(Rc,"-hoverable"),hi),(0,$t.Z)(a,"".concat(Rc,"-size-").concat(xi),xi),(0,$t.Z)(a,"".concat(Rc,"-type-").concat(lc),lc),(0,$t.Z)(a,"".concat(Rc,"-collapse"),kf),(0,$t.Z)(a,"".concat(Rc,"-checked"),Cl),a)),qv=ba()("".concat(Rc,"-body"),au,(l={},(0,$t.Z)(l,"".concat(Rc,"-body-center"),Tt==="center"),(0,$t.Z)(l,"".concat(Rc,"-body-direction-column"),mn==="horizontal"||io==="column"),(0,$t.Z)(l,"".concat(Rc,"-body-wrap"),ht&&ph),l)),Cm=H,Rh=K.isValidElement(Dt)?Dt:(0,de.jsx)(Ky,{prefix:Rc,style:H.padding===0||H.padding==="0px"?{padding:24}:void 0}),xv=Ji&&oo===void 0&&(Ao?Ao({collapsed:kf}):(0,de.jsx)(YC,{rotate:kf?void 0:90,className:"".concat(Rc,"-collapsible-icon ").concat(au).trim()}));return Oc((0,de.jsxs)("div",(0,Jt.Z)((0,Jt.Z)({className:sg,style:P,ref:i,onClick:function(qf){var Up;il==null||il(qf),Mc==null||(Up=Mc.onClick)===null||Up===void 0||Up.call(Mc,qf),qf.stopPropagation()}},(0,Vm.Z)(Mc,["prefixCls","colSpan"])),{},{children:[(se||Re||xv)&&(0,de.jsxs)("div",{className:ba()("".concat(Rc,"-header"),au,(u={},(0,$t.Z)(u,"".concat(Rc,"-header-border"),sr||lc==="inner"),(0,$t.Z)(u,"".concat(Rc,"-header-collapsible"),xv),u)),style:ee,onClick:function(){xv&&af(!kf)},children:[(0,de.jsxs)("div",{className:"".concat(Rc,"-title ").concat(au).trim(),children:[xv,(0,de.jsx)(H4,{label:se,tooltip:bn||Be,subTitle:Se})]}),Re&&(0,de.jsx)("div",{className:"".concat(Rc,"-extra ").concat(au).trim(),onClick:function(qf){return qf.stopPropagation()},children:Re})]}),Pl?(0,de.jsx)("div",{className:"".concat(Rc,"-tabs ").concat(au).trim(),children:(0,de.jsx)(ut.Z,(0,Jt.Z)((0,Jt.Z)({onChange:Pl.onChange},Pl),{},{items:gu,children:Dt?Rh:za}))}):(0,de.jsx)("div",{className:qv,style:Cm,children:Dt?Rh:Zh}),Di?(0,de.jsx)(lp,{actions:Di,prefixCls:Rc}):null]})))}),V0=Vg,qm=function(i){var a=i.componentCls;return(0,$t.Z)({},a,{"&-divider":{flex:"none",width:i.lineWidth,marginInline:i.marginXS,marginBlock:i.marginLG,backgroundColor:i.colorSplit,"&-horizontal":{width:"initial",height:i.lineWidth,marginInline:i.marginLG,marginBlock:i.marginXS}},"&&-size-small &-divider":{marginBlock:i.marginLG,marginInline:i.marginXS,"&-horizontal":{marginBlock:i.marginXS,marginInline:i.marginLG}}})};function ik(C){return Jh("ProCardDivider",function(i){var a=(0,Jt.Z)((0,Jt.Z)({},i),{},{componentCls:".".concat(C)});return[qm(a)]})}var CO=function(i){var a=(0,K.useContext)(ni.ZP.ConfigContext),l=a.getPrefixCls,u=l("pro-card"),E="".concat(u,"-divider"),P=ik(u),j=P.wrapSSR,H=P.hashId,X=i.className,ee=i.style,se=ee===void 0?{}:ee,Se=i.type,Re=ba()(E,X,H,(0,$t.Z)({},"".concat(E,"-").concat(Se),Se));return j((0,de.jsx)("div",{className:Re,style:se}))},ok=CO,ET=function(i){return(0,de.jsx)(V0,(0,Jt.Z)({bodyStyle:{padding:0}},i))},Yy=V0;Yy.isProCard=!0,Yy.Divider=ok,Yy.TabPane=bT,Yy.Group=ET;var ST=Yy,wO=o(37092),CT=o(88037),qE=o(58185),sk=function(i,a){if(!i)return!1;var l=i.includes("(");return a==="selectedPerson"?!l:a==="selectedDepartment"?!!l:!0};function wT(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"id";return C.map(function(l){return{title:l.name,value:l[a],key:l[a],isLeaf:!l.subOrganizations,children:l.subOrganizations?wT(l.subOrganizations,i,a):[],disableCheckbox:sk(l.displayName,i),checkable:!sk(l.displayName,i),icon:(l.displayName||"").includes("(")&&(0,de.jsx)(qE.Z,{size:"small",staffName:l.name})}})}var lk=function(i){var a=i.type,l=a===void 0?"selectedPerson":a,u=i.value,E=i.onChange,P=i.treeSelectProps,j=P===void 0?{}:P,H=(0,K.useState)([]),X=(0,z.Z)(H,2),ee=X[0],se=X[1],Se=function(){var Tt=(0,G.Z)((0,L.Z)().mark(function Dt(){var Kt,gn,bn,mn;return(0,L.Z)().wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:return sr.next=2,$1();case 2:if(Kt=sr.sent,gn=Kt.code,bn=Kt.data,gn!==200){sr.next=9;break}return mn=wT(bn,l),se(mn),sr.abrupt("return");case 9:case"end":return sr.stop()}},Dt)}));return function(){return Tt.apply(this,arguments)}}();(0,K.useEffect)(function(){Se()},[]);var Re=function Tt(Dt,Kt,gn){return Dt.map(function(bn){if(bn.key===Kt){var mn=bn.children;return bn.children&&!bn.children.find(function(kn){var sr;return(kn==null?void 0:kn.key)===((sr=gn[0])===null||sr===void 0?void 0:sr.key)})&&(mn=[].concat((0,$e.Z)(gn),(0,$e.Z)(bn.children))),(0,Ie.Z)((0,Ie.Z)({},bn),{},{children:mn})}return bn.children.length!==0?(0,Ie.Z)((0,Ie.Z)({},bn),{},{children:Tt(bn.children,Kt,gn)}):bn})},Be=function(Dt){var Kt=Dt.key,gn=function(){var bn=(0,G.Z)((0,L.Z)().mark(function mn(){var kn,sr,yr,jr;return(0,L.Z)().wrap(function(va){for(;;)switch(va.prev=va.next){case 0:return va.next=2,e_(Kt);case 2:kn=va.sent,sr=kn.code,yr=kn.data,sr===200&&(jr=yr.reduce(function(za,xi){var Di=xi.name,Si=xi.displayName;return Di&&Si&&za.push((0,Ie.Z)({key:"".concat(Kt,"-").concat(xi.id)},xi)),za},[]),setTimeout(function(){se(function(za){return Re(za,Kt,wT(jr,l,"key"))})},300));case 6:case"end":return va.stop()}},mn)}));return function(){return bn.apply(this,arguments)}}();return new Promise(function(bn){gn().then(function(){bn()})})},Ye=function(Dt){E==null||E(Dt)},ht=function(Dt){var Kt=Dt.label,gn=function(kn){kn.preventDefault(),kn.stopPropagation()},bn=Kt.split("(")[0];return(0,de.jsxs)(ln.Z,{onMouseDown:gn,closable:!0,onClose:function(){var kn=Dt.value,sr=u.filter(function(yr){return yr!==kn});E==null||E(sr)},style:{marginRight:3,marginBottom:3},children:[l==="selectedPerson"&&(0,de.jsx)(qE.Z,{size:"small",staffName:bn}),(0,de.jsx)("span",{style:{position:"relative",top:"2px",left:"5px"},children:Kt})]})};return(0,de.jsx)(de.Fragment,{children:(0,de.jsx)(CT.Z,(0,Ie.Z)({showSearch:!0,style:{width:"100%"},value:u,loadData:Be,dropdownStyle:{maxHeight:800,overflow:"auto"},allowClear:!0,multiple:!0,onChange:Ye,treeCheckable:!0,treeIcon:!0,treeData:ee,tagRender:ht,treeNodeFilterProp:"title",listHeight:500,showCheckedStrategy:CT.Z.SHOW_PARENT},j))})},ck=lk,eS=o(91516),TT=o.n(eS);function G4(C){var i=_objectSpread({},C),a=Object.keys(i);if(a.length===0)return{};var l=a.shift();return{orderCondition:l,sort:i[l]==="ascend"?"asc":"desc"}}function TO(C,i){var a="inner:rememberTableColumnsStateMap:".concat(C),l=localStorage.getItem(a),u={};if(l)try{var E=JSON.parse(l);typeof E=="object"&&E&&(u=E)}catch(se){localStorage.removeItem(a)}else i&&(u=_objectSpread({},i));var P=useState(u),j=_slicedToArray(P,2),H=j[0],X=j[1],ee=useCallback(function(se){var Se=JSON.stringify(se);localStorage.setItem(a,Se),X(se)},[X]);return{columnsStateMap:H,handleColumnsStateChange:ee}}function AO(C,i){var a=C.fetcher,l=C.updater,u=C.cleanup,E=(0,K.useState)(!1),P=(0,z.Z)(E,2),j=P[0],H=P[1];return(0,K.useEffect)(function(){var X=!1;return H(!0),a().then(function(ee){X||l(ee)}).catch(function(){return null}).finally(function(){H(!1)}),function(){u==null||u(),X=!0}},i),{loading:j,setLoading:H}}var QC=function(i){var a=i.placeholder,l=i.value,u=i.isMultiple,E=u===void 0?!0:u,P=i.onChange,j=(0,K.useState)([]),H=(0,z.Z)(j,2),X=H[0],ee=H[1];return AO({fetcher:function(){var se=(0,G.Z)((0,L.Z)().mark(function Re(){var Be;return(0,L.Z)().wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.next=2,bv();case 2:if(Be=ht.sent,!(Be.code==200||Number(Be.code)==0)){ht.next=7;break}return ht.abrupt("return",Be.data||[]);case 7:throw $.default.error(Be.msg),new Error(Be.msg);case 9:case"end":return ht.stop()}},Re)}));function Se(){return se.apply(this,arguments)}return Se}(),updater:function(Se){ee(Se)},cleanup:function(){ee([])}},[]),(0,de.jsx)(lt.Z,{value:l,placeholder:a!=null?a:"\u8BF7\u9009\u62E9\u7528\u6237\u540D",mode:E?"multiple":void 0,allowClear:!0,showSearch:!0,onChange:P,children:X.map(function(se){return(0,de.jsxs)(lt.Z.Option,{value:se.name,children:[(0,de.jsx)(qE.Z,{size:"small",staffName:se.name}),(0,de.jsx)("span",{className:TT().userText,children:se.displayName})]},se.name)})})},Xy=QC,nb=at.Z.Item,uk=function(i,a){var l=i.permissonData,u=i.onValuesChange,E={npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.APP_TARGET,P=at.Z.useForm(),j=(0,z.Z)(P,1),H=j[0];return(0,K.useImperativeHandle)(a,function(){return{formRef:H}}),(0,K.useEffect)(function(){var X=(0,Ie.Z)({},l);X.authorizedDepartmentIds=l.authorizedDepartmentIds||[],X.authorizedUsers=l.authorizedUsers||[],H.setFieldsValue(X)},[l]),(0,de.jsx)(de.Fragment,{children:(0,K.createElement)(at.Z,(0,Ie.Z)((0,Ie.Z)({},Xt.c),{},{key:l.groupId,form:H,layout:"vertical",onValuesChange:function(ee,se){u==null||u(ee,se)},className:St().form}),(0,de.jsx)(nb,{hidden:!0,name:"groupId",label:"ID",children:(0,de.jsx)(De.Z,{placeholder:"groupId"})}),(0,de.jsx)(nb,{name:"name",label:"\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"}],children:(0,de.jsx)(De.Z,{placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"})}),E==="inner"&&(0,de.jsx)(nb,{name:"authorizedDepartmentIds",label:"\u6309\u7EC4\u7EC7",children:(0,de.jsx)(ck,{type:"selectedDepartment",treeSelectProps:{placeholder:"\u8BF7\u9009\u62E9\u9700\u8981\u6388\u6743\u7684\u90E8\u95E8"}})}),(0,de.jsx)(nb,{name:"authorizedUsers",label:"\u6309\u4E2A\u4EBA",children:(0,de.jsx)(Xy,{placeholder:"\u8BF7\u9009\u62E9\u9700\u8981\u6388\u6743\u7684\u4E2A\u4EBA"})}))})},$4=(0,K.forwardRef)(uk),fk=at.Z.Item,K4=De.Z.TextArea,dk=function(i){var a=i.domainManger,l=i.visible,u=i.permissonData,E=i.onCancel,P=i.onSubmit,j=a.dimensionList,H=a.metricList,X=a.selectModelId,ee=at.Z.useForm(),se=(0,z.Z)(ee,1),Se=se[0],Re=(0,K.useRef)(null),Be=(0,K.useState)([]),Ye=(0,z.Z)(Be,2),ht=Ye[0],Tt=Ye[1],Dt=(0,K.useState)([]),Kt=(0,z.Z)(Dt,2),gn=Kt[0],bn=Kt[1],mn=(0,K.useState)([]),kn=(0,z.Z)(mn,2),sr=kn[0],yr=kn[1],jr=function(){var va=(0,G.Z)((0,L.Z)().mark(function za(){var xi,Di,Si,jo,ro,hi,io,oo,Ki,Ji,Ao;return(0,L.Z)().wrap(function(Lo){for(;;)switch(Lo.prev=Lo.next){case 0:return Lo.next=2,Re.current.formRef.validateFields();case 2:return xi=Lo.sent,Lo.next=5,Se.validateFields();case 5:return Di=Lo.sent,Si=Di.dimensionFilters,jo=Di.dimensionFilterDescription,ro=u.authRules,hi=ro===void 0?[]:ro,io=hi==null?void 0:hi[0],io?io.dimensions=j:io={dimensions:j},u.authRules=[io],oo=dt.WT,xi.groupId&&(oo=dt.qr),Lo.next=15,oo((0,Ie.Z)((0,Ie.Z)({},xi),{},{dimensionFilters:[Si],dimensionFilterDescription:jo,authRules:[{dimensions:ht,metrics:gn}],modelId:X}));case 15:if(Ki=Lo.sent,Ji=Ki.code,Ao=Ki.msg,Ji!==200){Lo.next=22;break}return P==null||P(),$.default.success("\u4FDD\u5B58\u6210\u529F"),Lo.abrupt("return");case 22:$.default.error(Ao);case 23:case"end":return Lo.stop()}},za)}));return function(){return va.apply(this,arguments)}}();(0,K.useEffect)(function(){var va,za,xi,Di;Se.resetFields();var Si=u.dimensionFilters,jo=u.dimensionFilterDescription;Se.setFieldsValue({dimensionFilterDescription:jo,dimensionFilters:Array.isArray(Si)&&Si[0]||""});var ro=(u==null||(va=u.authRules)===null||va===void 0||(za=va[0])===null||za===void 0?void 0:za.dimensions)||[],hi=(u==null||(xi=u.authRules)===null||xi===void 0||(Di=xi[0])===null||Di===void 0?void 0:Di.metrics)||[];Tt(ro),bn(hi);var io=j.reduce(function(Ki,Ji){return ro.includes(Ji.bizName)&&Ki.push(mt(Ct.Kr.DIMENSION,Ji.id)),Ki},[]),oo=H.reduce(function(Ki,Ji){return hi.includes(Ji.bizName)&&Ki.push(mt(Ct.Kr.METRIC,Ji.id)),Ki},[]);yr([].concat((0,$e.Z)(io),(0,$e.Z)(oo)))},[u]);var zr=function(){return(0,de.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},children:(0,de.jsxs)(U.Z,{children:[(0,de.jsx)(Le.Z,{onClick:E,children:"\u53D6\u6D88"}),(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){jr()},children:"\u5B8C\u6210"})]})})};return(0,de.jsx)(de.Fragment,{children:(0,de.jsx)(qb.Z,{width:"100%",className:St().permissionDrawer,destroyOnClose:!0,title:"\u6743\u9650\u7EC4\u4FE1\u606F",maskClosable:!1,open:l,footer:zr(),onClose:E,children:(0,de.jsx)("div",{style:{overflow:"auto",margin:"0 auto",width:"1200px"},children:(0,de.jsxs)(U.Z,{direction:"vertical",style:{width:"100%"},size:20,children:[(0,de.jsx)(ST,{title:"\u57FA\u672C\u4FE1\u606F",bordered:!0,children:(0,de.jsx)($4,{ref:Re,permissonData:u})}),(0,de.jsx)(ST,{title:"\u5217\u6743\u9650",bordered:!0,tooltip:"\u4EC5\u5BF9\u654F\u611F\u5EA6\u4E3A\u9AD8\u7684\u6307\u6807/\u7EF4\u5EA6\u8FDB\u884C\u6388\u6743",children:(0,de.jsx)(bf,{titles:["\u672A\u6388\u6743\u7EF4\u5EA6/\u6307\u6807","\u5DF2\u6388\u6743\u7EF4\u5EA6/\u6307\u6807"],sourceList:[].concat((0,$e.Z)(j.map(function(va){var za=Ct.Kr.DIMENSION,xi=va.id;return(0,Ie.Z)((0,Ie.Z)({},va),{},{transType:za,key:mt(za,xi)})})),(0,$e.Z)(H.map(function(va){var za=Ct.Kr.METRIC,xi=va.id;return(0,Ie.Z)((0,Ie.Z)({},va),{},{transType:za,key:mt(za,xi)})}))),targetList:sr,onChange:function(za){yr(za);var xi=j.reduce(function(Si,jo){return za.includes(mt(Ct.Kr.DIMENSION,jo.id))&&Si.push(jo.bizName),Si},[]),Di=H.reduce(function(Si,jo){return za.includes(mt(Ct.Kr.METRIC,jo.id))&&Si.push(jo.bizName),Si},[]);Tt(xi),bn(Di)}})}),(0,de.jsx)(ST,{bordered:!0,title:"\u884C\u6743\u9650",children:(0,de.jsx)("div",{children:(0,de.jsxs)(at.Z,{form:Se,layout:"vertical",children:[(0,de.jsx)(fk,{name:"dimensionFilters",label:"\u8868\u8FBE\u5F0F",children:(0,de.jsx)(xu.Z,{height:"150px"})}),(0,de.jsx)(fk,{name:"dimensionFilterDescription",label:"\u63CF\u8FF0",children:(0,de.jsx)(K4,{placeholder:"\u884C\u6743\u9650\u63CF\u8FF0"})})]})})})]})})})})},MO=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(dk),pk=function(i){var a=i.domainManger,l={npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.APP_TARGET,u=l==="inner",E=a.dimensionList,P=a.metricList,j=a.selectModelId,H=(0,K.useState)(!1),X=(0,z.Z)(H,2),ee=X[0],se=X[1],Se=(0,K.useState)({}),Re=(0,z.Z)(Se,2),Be=Re[0],Ye=Re[1],ht=(0,K.useState)([]),Tt=(0,z.Z)(ht,2),Dt=Tt[0],Kt=Tt[1],gn=(0,K.useState)([]),bn=(0,z.Z)(gn,2),mn=bn[0],kn=bn[1],sr=(0,K.useState)([]),yr=(0,z.Z)(sr,2),jr=yr[0],zr=yr[1],va=(0,K.useState)({current:1,pageSize:20,total:0}),za=(0,z.Z)(va,2),xi=za[0],Di=za[1],Si=(0,K.useRef)(),jo=function(){var oo=(0,G.Z)((0,L.Z)().mark(function Ki(){var Ji,Ao,ks;return(0,L.Z)().wrap(function(Is){for(;;)switch(Is.prev=Is.next){case 0:return Is.next=2,(0,dt.yY)(j);case 2:if(Ji=Is.sent,Ao=Ji.code,ks=Ji.data,Ao!==200){Is.next=8;break}return Kt(ks),Is.abrupt("return");case 8:$.default.error("\u83B7\u53D6\u4E3B\u9898\u57DF\u89E3\u6790\u8BCD\u5931\u8D25");case 9:case"end":return Is.stop()}},Ki)}));return function(){return oo.apply(this,arguments)}}();(0,K.useEffect)(function(){j&&jo()},[j]);var ro=function(){var oo=(0,G.Z)((0,L.Z)().mark(function Ki(){var Ji,Ao,ks;return(0,L.Z)().wrap(function(Is){for(;;)switch(Is.prev=Is.next){case 0:return Is.next=2,$1();case 2:Ji=Is.sent,Ao=Ji.code,ks=Ji.data,(Ao===200||Ao==="0")&&kn(ks);case 6:case"end":return Is.stop()}},Ki)}));return function(){return oo.apply(this,arguments)}}(),hi=function(){var oo=(0,G.Z)((0,L.Z)().mark(function Ki(){var Ji,Ao,ks;return(0,L.Z)().wrap(function(Is){for(;;)switch(Is.prev=Is.next){case 0:return Is.next=2,bv();case 2:Ji=Is.sent,Ao=Ji.code,ks=Ji.data,(Ao===200||Number(Ao)===0)&&zr(ks);case 6:case"end":return Is.stop()}},Ki)}));return function(){return oo.apply(this,arguments)}}();(0,K.useEffect)(function(){u&&ro(),hi()},[]);var io=[{dataIndex:"groupId",title:"ID",width:50},{dataIndex:"name",title:"\u540D\u79F0",width:150},{dataIndex:"departmentPermission",title:"\u6388\u6743\u7EC4\u7EC7",ellipsis:{showTitle:!1},hideInTable:!u,width:200,render:function(Ki,Ji){var Ao=Ji.authorizedDepartmentIds,ks=Ao===void 0?[]:Ao,Lo=ks.reduce(function(Cl,il){var Pl=(0,Ke.DJ)(mn,il);return Pl&&Cl.push(Pl.name),Cl},[]),Is=Lo.join(",");return(0,de.jsx)(fe.Z,{placement:"topLeft",title:Is,children:Is})}},{dataIndex:"personPermission",title:"\u6388\u6743\u4E2A\u4EBA",ellipsis:{showTitle:!1},render:function(Ki,Ji){var Ao=Ji.authorizedUsers,ks=Ao===void 0?[]:Ao,Lo=jr.reduce(function(Cl,il){var Pl=ks.includes(il.name);return Pl&&Cl.push(il.displayName),Cl},[]),Is=Lo.join(",");return(0,de.jsx)(fe.Z,{placement:"topLeft",title:Is,children:Is})}},{dataIndex:"columnPermission",title:"\u5217\u6743\u9650",ellipsis:{showTitle:!1},render:function(Ki,Ji){var Ao=Ji.authRules,ks=Ao==null?void 0:Ao[0];if(ks){var Lo=ks.dimensions,Is=ks.metrics,Cl=[],il=[];Array.isArray(Lo)&&(Cl=E.reduce(function(lc,Mc){var dp=Mc.bizName,zf=Mc.name;return Lo.includes(dp)&&lc.push(zf),lc},[])),Array.isArray(Is)&&(il=P.reduce(function(lc,Mc){var dp=Mc.bizName,zf=Mc.name;return Is.includes(dp)&&lc.push(zf),lc},[]));var Pl=[].concat((0,$e.Z)(Cl),(0,$e.Z)(il)).join(",");return(0,de.jsx)(fe.Z,{placement:"topLeft",title:Pl,children:Pl})}return(0,de.jsx)(de.Fragment,{children:" - "})}},{title:"\u64CD\u4F5C",dataIndex:"x",valueType:"option",render:function(Ki,Ji){return(0,de.jsxs)(U.Z,{children:[(0,de.jsx)("a",{onClick:function(){Ye(Ji),se(!0)},children:"\u7F16\u8F91"},"permissionEditBtn"),(0,de.jsx)(pe.Z,{title:"\u786E\u8BA4\u5220\u9664\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,G.Z)((0,L.Z)().mark(function Ao(){var ks,Lo,Is;return(0,L.Z)().wrap(function(il){for(;;)switch(il.prev=il.next){case 0:return il.next=2,(0,dt.VK)({modelId:Ji.modelId,groupId:Ji.groupId});case 2:ks=il.sent,Lo=ks.code,Is=ks.msg,Lo===200?(Ye({}),jo()):$.default.error(Is);case 6:case"end":return il.stop()}},Ao)})),children:(0,de.jsx)("a",{onClick:function(){Ye(Ji)},children:"\u5220\u9664"},"permissionDeleteBtn")})]})}}];return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(u_.ZP,{actionRef:Si,headerTitle:"\u8D44\u6E90\u5217\u8868",rowKey:"groupId",columns:io,search:!1,dataSource:Dt,pagination:xi,onChange:function(Ki){var Ji=Ki.current,Ao=Ki.pageSize,ks=Ki.total;Di({current:Ji,pageSize:Ao,total:ks})},size:"small",options:!1,toolBarRender:function(){return[(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){Ye({}),se(!0)},children:"\u65B0\u5EFA\u6388\u6743"},"create")]}}),ee&&(0,de.jsx)(MO,{visible:ee,permissonData:Be,onSubmit:function(){jo(),se(!1)},onCancel:function(){se(!1)}})]})},kO=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(pk),qC=at.Z.Item,vk=function(i){var a=i.permissionTarget,l=i.domainManger,u=i.onValuesChange,E=at.Z.useForm(),P=(0,z.Z)(E,1),j=P[0],H=(0,K.useState)(!0),X=(0,z.Z)(H,2),ee=X[0],se=X[1],Se=(0,K.useState)({}),Re=(0,z.Z)(Se,2),Be=Re[0],Ye=Re[1],ht=l.selectModelId,Tt=l.selectDomainId,Dt={npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.APP_TARGET,Kt=function(){var bn=(0,G.Z)((0,L.Z)().mark(function mn(){var kn,sr,yr,jr,zr,va;return(0,L.Z)().wrap(function(xi){for(;;)switch(xi.prev=xi.next){case 0:return kn=a==="model"?ht:Tt,xi.next=3,(a==="model"?dt.vu:dt.lQ)({modelId:kn});case 3:if(sr=xi.sent,yr=sr.code,jr=sr.msg,zr=sr.data,yr!==200){xi.next=17;break}return Ye(zr),va=(0,Ie.Z)({},zr),va.admins=va.admins||[],va.viewers=va.viewers||[],va.viewOrgs=va.viewOrgs||[],va.isOpen=!!va.isOpen,se(va.isOpen),j.setFieldsValue(va),xi.abrupt("return");case 17:$.default.error(jr);case 18:case"end":return xi.stop()}},mn)}));return function(){return bn.apply(this,arguments)}}();(0,K.useEffect)(function(){Kt()},[ht]);var gn=function(){var bn=(0,G.Z)((0,L.Z)().mark(function mn(){var kn,sr,yr,jr,zr,va,za,xi,Di,Si,jo;return(0,L.Z)().wrap(function(hi){for(;;)switch(hi.prev=hi.next){case 0:return hi.next=2,j.validateFields();case 2:return kn=hi.sent,sr=kn.admins,yr=kn.isOpen,jr=kn.viewOrgs,zr=jr===void 0?[]:jr,va=kn.viewers,za=va===void 0?[]:va,xi=(0,Ie.Z)((0,Ie.Z)({},Be),{},{admins:sr,viewOrgs:zr,viewers:za,isOpen:yr?1:0}),hi.next=7,(a==="model"?dt.QB:dt.gK)(xi);case 7:if(Di=hi.sent,Si=Di.code,jo=Di.msg,Si!==200){hi.next=12;break}return hi.abrupt("return");case 12:$.default.error(jo);case 13:case"end":return hi.stop()}},mn)}));return function(){return bn.apply(this,arguments)}}();return(0,de.jsx)(de.Fragment,{children:(0,de.jsxs)(at.Z,{form:j,layout:"vertical",onValuesChange:function(mn,kn){var sr=mn.isOpen;sr!==void 0&&se(sr),gn(),u==null||u(mn,kn)},className:St().form,children:[(0,de.jsx)(qC,{hidden:!0,name:"groupId",label:"ID",children:(0,de.jsx)(De.Z,{placeholder:"groupId"})}),(0,de.jsx)(qC,{name:"admins",label:(0,de.jsx)(vt.Z,{title:"\u7BA1\u7406\u5458",subTitle:"\u7BA1\u7406\u5458\u5C06\u62E5\u6709\u4E3B\u9898\u57DF\u4E0B\u6240\u6709\u7F16\u8F91\u53CA\u8BBF\u95EE\u6743\u9650"}),children:(0,de.jsx)(Xy,{placeholder:"\u8BF7\u9080\u8BF7\u56E2\u961F\u6210\u5458"})}),(0,de.jsx)(at.Z.Item,{label:(0,de.jsx)(vt.Z,{title:"\u8BBE\u4E3A\u516C\u5F00",subTitle:"\u516C\u5F00\u540E,\u6240\u6709\u7528\u6237\u5C06\u53EF\u4F7F\u7528\u4E3B\u9898\u57DF\u4E0B\u4F4E/\u4E2D\u654F\u611F\u5EA6\u8D44\u6E90\uFF0C\u9AD8\u654F\u611F\u5EA6\u8D44\u6E90\u9700\u901A\u8FC7\u8D44\u6E90\u5217\u8868\u8FDB\u884C\u6388\u6743"}),name:"isOpen",valuePropName:"checked",children:(0,de.jsx)(gt.Z,{})}),!ee&&(0,de.jsxs)(de.Fragment,{children:[Dt==="inner"&&(0,de.jsx)(qC,{name:"viewOrgs",label:"\u6309\u7EC4\u7EC7",children:(0,de.jsx)(ck,{type:"selectedDepartment",treeSelectProps:{placeholder:"\u8BF7\u9009\u62E9\u9700\u8981\u6388\u6743\u7684\u90E8\u95E8"}})}),(0,de.jsx)(qC,{name:"viewers",label:"\u6309\u4E2A\u4EBA",children:(0,de.jsx)(Xy,{placeholder:"\u8BF7\u9009\u62E9\u9700\u8981\u6388\u6743\u7684\u4E2A\u4EBA"})})]})]})})},hk=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(vk),mk=function(i){var a=i.permissionTarget;return(0,de.jsx)(de.Fragment,{children:(0,de.jsx)("div",{children:(0,de.jsxs)(U.Z,{direction:"vertical",style:{width:"100%"},size:20,children:[(0,de.jsx)(H1.Z,{title:"\u9080\u8BF7\u6210\u5458",bordered:!0,children:(0,de.jsx)(hk,{permissionTarget:a})}),a==="model"&&(0,de.jsx)(kO,{})]})})})},AT=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(mk),h0=at.Z.Item,Y4=De.Z.TextArea,gk=function(i,a){var l=i.domainId,u=i.dataBaseConfig,E=i.onSubmit,P=at.Z.useForm(),j=(0,z.Z)(P,1),H=j[0],X=(0,K.useState)("h2"),ee=(0,z.Z)(X,2),se=ee[0],Se=ee[1],Re=(0,K.useState)(!1),Be=(0,z.Z)(Re,2),Ye=Be[0],ht=Be[1];(0,K.useEffect)(function(){H.resetFields(),H.setFieldsValue((0,Ie.Z)({},u)),Se(u==null?void 0:u.type)},[u]);var Tt=function(){var gn=(0,G.Z)((0,L.Z)().mark(function bn(){return(0,L.Z)().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:return kn.next=2,H.validateFields();case 2:return kn.abrupt("return",kn.sent);case 3:case"end":return kn.stop()}},bn)}));return function(){return gn.apply(this,arguments)}}();(0,K.useImperativeHandle)(a,function(){return{getFormValidateFields:Tt}});var Dt=function(){var gn=(0,G.Z)((0,L.Z)().mark(function bn(){var mn,kn,sr,yr;return(0,L.Z)().wrap(function(zr){for(;;)switch(zr.prev=zr.next){case 0:return zr.next=2,H.validateFields();case 2:return mn=zr.sent,zr.next=5,(0,dt.xN)((0,Ie.Z)((0,Ie.Z)({},mn),{},{domainId:l}));case 5:if(kn=zr.sent,sr=kn.code,yr=kn.msg,sr!==200){zr.next=12;break}return $.default.success("\u4FDD\u5B58\u6210\u529F"),E==null||E(),zr.abrupt("return");case 12:$.default.error(yr);case 13:case"end":return zr.stop()}},bn)}));return function(){return gn.apply(this,arguments)}}(),Kt=function(){var gn=(0,G.Z)((0,L.Z)().mark(function bn(){var mn,kn,sr,yr;return(0,L.Z)().wrap(function(zr){for(;;)switch(zr.prev=zr.next){case 0:return zr.next=2,H.validateFields();case 2:return mn=zr.sent,ht(!0),zr.next=6,(0,dt.$H)((0,Ie.Z)((0,Ie.Z)({},mn),{},{domainId:l}));case 6:if(kn=zr.sent,sr=kn.code,yr=kn.data,ht(!1),!(sr===200&&yr)){zr.next=13;break}return $.default.success("\u8FDE\u63A5\u6D4B\u8BD5\u901A\u8FC7"),zr.abrupt("return");case 13:$.default.error("\u8FDE\u63A5\u6D4B\u8BD5\u5931\u8D25");case 14:case"end":return zr.stop()}},bn)}));return function(){return gn.apply(this,arguments)}}();return(0,de.jsx)(de.Fragment,{children:(0,de.jsxs)(at.Z,(0,Ie.Z)((0,Ie.Z)({},Xt.c),{},{form:H,layout:"vertical",className:St().form,onValuesChange:function(bn){var mn=bn.type;mn&&Se(mn)},children:[(0,de.jsx)(h0,{name:"name",label:"\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"}],children:(0,de.jsx)(De.Z,{placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u5E93\u540D\u79F0"})}),(0,de.jsx)(h0,{name:"type",label:"\u6570\u636E\u5E93\u7C7B\u578B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6570\u636E\u5E93\u7C7B\u578B"}],children:(0,de.jsx)(lt.Z,{style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u6570\u636E\u5E93\u7C7B\u578B",options:[{value:"h2",label:"h2"},{value:"mysql",label:"mysql"},{value:"clickhouse",label:"clickhouse"}]})}),se==="h2"?(0,de.jsx)(h0,{name:"url",label:"\u94FE\u63A5",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5"}],children:(0,de.jsx)(De.Z,{placeholder:"\u8BF7\u8F93\u5165\u94FE\u63A5"})}):(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(h0,{name:"host",label:"host",rules:[{required:!0,message:"\u8BF7\u8F93\u5165IP"}],children:(0,de.jsx)(De.Z,{placeholder:"\u8BF7\u8F93\u5165IP"})}),(0,de.jsx)(h0,{name:"port",label:"port",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7AEF\u53E3\u53F7"}],children:(0,de.jsx)(De.Z,{placeholder:"\u8BF7\u8F93\u5165\u7AEF\u53E3\u53F7"})})]}),(0,de.jsx)(h0,{name:"username",label:"\u7528\u6237\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D"}],children:(0,de.jsx)(De.Z,{placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D"})}),(0,de.jsx)(h0,{name:"password",label:"\u5BC6\u7801",children:(0,de.jsx)(De.Z.Password,{placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801"})}),(0,de.jsx)(h0,{name:"database",label:"\u6570\u636E\u5E93\u540D\u79F0",children:(0,de.jsx)(De.Z,{placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u5E93\u540D\u79F0"})}),(0,de.jsx)(h0,{name:"version",label:"\u6570\u636E\u5E93\u7248\u672C",children:(0,de.jsx)(De.Z,{placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u5E93\u7248\u672C"})}),(0,de.jsx)(h0,{name:"description",label:"\u63CF\u8FF0",children:(0,de.jsx)(Y4,{placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u5E93\u63CF\u8FF0",style:{height:100}})}),(0,de.jsx)(h0,{children:(0,de.jsxs)(U.Z,{children:[(0,de.jsx)(Le.Z,{type:"primary",loading:Ye,onClick:function(){Kt()},children:"\u8FDE\u63A5\u6D4B\u8BD5"}),(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){Dt()},children:"\u4FDD \u5B58"})]})})]}))})},MT=(0,K.forwardRef)(gk),PO=function(i){var a=i.domainManger,l=i.dispatch,u=a.selectDomainId,E=a.dataBaseConfig,P=(0,K.useRef)({});return(0,de.jsx)("div",{style:{width:800,margin:"0 auto"},children:(0,de.jsx)(U.Z,{direction:"vertical",style:{width:"100%"},size:20,children:(0,de.jsx)(We.ZP,{title:"\u6570\u636E\u5E93\u8BBE\u7F6E",bordered:!0,children:(0,de.jsx)(MT,{ref:P,dataBaseConfig:E,domainId:Number(u),onSubmit:function(){l({type:"domainManger/queryDatabaseByDomainId",payload:{domainId:u}})}})})})})},tS=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(PO),e2=at.Z.Item,RO=function(i,a){var l=i.modelData,u=i.dimensionList,E=i.modelId,P=i.onSubmit,j=at.Z.useForm(),H=(0,z.Z)(j,1),X=H[0],ee=(0,K.useState)([]),se=(0,z.Z)(ee,2),Se=se[0],Re=se[1],Be=function(){var ht=(0,G.Z)((0,L.Z)().mark(function Tt(){return(0,L.Z)().wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,X.validateFields();case 2:return Kt.abrupt("return",Kt.sent);case 3:case"end":return Kt.stop()}},Tt)}));return function(){return ht.apply(this,arguments)}}();(0,K.useEffect)(function(){if(X.resetFields(),!!(l!=null&&l.entity)){var ht=l.entity;X.setFieldsValue((0,Ie.Z)((0,Ie.Z)({},ht),{},{name:ht.names.join(",")}))}},[l]),(0,K.useImperativeHandle)(a,function(){return{getFormValidateFields:Be}}),(0,K.useEffect)(function(){var ht=u.map(function(Tt){return{label:Tt.name,value:Tt.id}});Re(ht)},[u]);var Ye=function(){var ht=(0,G.Z)((0,L.Z)().mark(function Tt(){var Dt,Kt,gn,bn,mn,kn;return(0,L.Z)().wrap(function(yr){for(;;)switch(yr.prev=yr.next){case 0:return yr.next=2,X.validateFields();case 2:return Dt=yr.sent,Kt=Dt.name,yr.next=6,(0,dt.QB)((0,Ie.Z)((0,Ie.Z)({},l),{},{entity:(0,Ie.Z)((0,Ie.Z)({},Dt),{},{names:Kt.split(",")}),id:E,modelId:E}));case 6:if(gn=yr.sent,bn=gn.code,mn=gn.msg,kn=gn.data,bn!==200){yr.next=15;break}return X.setFieldValue("id",kn),P==null||P(),$.default.success("\u4FDD\u5B58\u6210\u529F"),yr.abrupt("return");case 15:$.default.error(mn);case 16:case"end":return yr.stop()}},Tt)}));return function(){return ht.apply(this,arguments)}}();return(0,de.jsx)(de.Fragment,{children:(0,de.jsxs)(at.Z,(0,Ie.Z)((0,Ie.Z)({},Xt.c),{},{form:X,layout:"vertical",className:St().form,children:[(0,de.jsx)(e2,{hidden:!0,name:"id",label:"ID",children:(0,de.jsx)(De.Z,{placeholder:"id"})}),(0,de.jsx)(e2,{name:"name",label:"\u5B9E\u4F53\u522B\u540D",children:(0,de.jsx)(De.Z,{placeholder:"\u8BF7\u8F93\u5165\u5B9E\u4F53\u522B\u540D,\u591A\u4E2A\u540D\u79F0\u4EE5\u82F1\u6587\u9017\u53F7\u5206\u9694"})}),(0,de.jsx)(e2,{name:"entityId",label:"\u552F\u4E00\u6807\u8BC6",children:(0,de.jsx)(lt.Z,{allowClear:!0,style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u4E3B\u4F53\u6807\u8BC6",options:Se})}),(0,de.jsx)(e2,{children:(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){Ye()},children:"\u4FDD \u5B58"})})]}))})},OO=(0,K.forwardRef)(RO),X4=function(i){var a=i.domainManger,l=a.dimensionList,u=a.selectModelId,E=(0,K.useState)(),P=(0,z.Z)(E,2),j=P[0],H=P[1],X=(0,K.useRef)({}),ee=function(){var Se=(0,G.Z)((0,L.Z)().mark(function Re(){var Be,Ye,ht;return(0,L.Z)().wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return Dt.next=2,(0,dt.vu)({modelId:u});case 2:if(Be=Dt.sent,Ye=Be.code,ht=Be.data,Ye!==200){Dt.next=8;break}return H(ht),Dt.abrupt("return");case 8:$.default.error("\u83B7\u53D6\u95EE\u7B54\u8BBE\u7F6E\u4FE1\u606F\u5931\u8D25");case 9:case"end":return Dt.stop()}},Re)}));return function(){return Se.apply(this,arguments)}}(),se=function(){var Se=(0,G.Z)((0,L.Z)().mark(function Re(){return(0,L.Z)().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:ee();case 1:case"end":return Ye.stop()}},Re)}));return function(){return Se.apply(this,arguments)}}();return(0,K.useEffect)(function(){se()},[u]),(0,de.jsx)("div",{style:{width:800,margin:"0 auto"},children:(0,de.jsx)(U.Z,{direction:"vertical",style:{width:"100%"},size:20,children:(0,de.jsx)(We.ZP,{title:"\u5B9E\u4F53",bordered:!0,children:(0,de.jsx)(OO,{ref:X,modelId:Number(u),modelData:j,dimensionList:l,onSubmit:function(){ee()}})})})})},IO=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(X4),DO={datasource:{type:"circle",size:10}},_k=function(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:999,u=i.reduce(function(E,P){var j=P.id;return E.push((0,Ie.Z)((0,Ie.Z)({},P),{},{nodeType:Ct.Z.DIMENSION,legendType:a,id:"".concat(a,"-").concat(Ct.Z.DIMENSION,"-").concat(j),uid:j,style:{lineWidth:2,fill:"#f0f7ff",stroke:"#a6ccff"}})),E},[]);return u.slice(0,l)},B_=function(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:999,u=i.reduce(function(E,P){var j=P.id;return E.push((0,Ie.Z)((0,Ie.Z)({},P),{},{nodeType:Ct.Z.METRIC,legendType:a,id:"".concat(a,"-").concat(Ct.Z.METRIC,"-").concat(j),uid:j,style:{lineWidth:2,fill:"#f0f7ff",stroke:"#a6ccff"}})),E},[]);return u.slice(0,l)},Sx=function(i){var a=i.type,l=i.dataSourceList,u=i.limit,E=i.showDataSourceId,P=l.reduce(function(j,H){var X=H.datasource,ee=H.dimensions,se=H.metrics,Se=X.id,Re="".concat(Ct.Z.DATASOURCE,"-").concat(Se),Be=[];if(a===Ct.Z.METRIC&&(Be=B_(se,Re,u)),a===Ct.Z.DIMENSION&&(Be=_k(ee,Re,u)),!a){var Ye=_k(ee,Re,u),ht=B_(se,Re,u);Be=[].concat((0,$e.Z)(Ye),(0,$e.Z)(ht))}return(!E||E.includes(Re))&&j.push((0,Ie.Z)((0,Ie.Z)({},X),{},{legendType:Re,id:Re,uid:Se,nodeType:Ct.Z.DATASOURCE,size:40,children:(0,$e.Z)(Be),style:{lineWidth:2,fill:"#BDEFDB",stroke:"#5AD8A6"}})),j},[]);return P},kT=function C(i){var a=i.model,l=i.parent;if((a==null?void 0:a.nodeType)===Ct.Z.DATASOURCE)return a;var u=l==null?void 0:l._cfg;return u?C(u):!1},PT=function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=i.nodeType,u={style:{fill:"#3c3c3c"}};switch(l){case Ct.Z.DATASOURCE:return(0,Ie.Z)((0,Ie.Z)({},a),{},{labelCfg:(0,Ie.Z)({position:"bottom"},u)});case Ct.Z.DIMENSION:return(0,Ie.Z)((0,Ie.Z)({},a),{},{labelCfg:(0,Ie.Z)({position:"right"},u)});case Ct.Z.METRIC:return(0,Ie.Z)((0,Ie.Z)({},a),{},{style:{lineWidth:2,fill:"#fffbe6",stroke:"#ffe58f"},labelCfg:(0,Ie.Z)({position:"right"},u)});default:return a}},yg=function(i){return i.reduce(function(a,l){var u=l.children;return Array.isArray(u)&&a.push.apply(a,(0,$e.Z)(u)),a},[])},t2=function C(i,a){var l=[],u=_createForOfIteratorHelper(a),E;try{for(u.s();!(E=u.n()).done;){var P=E.value,j=!1,H=[];P.label.includes(i)&&(j=!0),P.children&&(H=C(i,P.children),H.length>0&&(j=!0)),j&&l.push(_objectSpread(_objectSpread({},P),{},{children:H}))}}catch(X){u.e(X)}finally{u.f()}return l};/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var qh=function(i,a){return qh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var E in u)u.hasOwnProperty(E)&&(l[E]=u[E])},qh(i,a)};function zg(C,i){qh(C,i);function a(){this.constructor=C}C.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}var Ts=function(){return Ts=Object.assign||function(a){for(var l,u=1,E=arguments.length;u<E;u++){l=arguments[u];for(var P in l)Object.prototype.hasOwnProperty.call(l,P)&&(a[P]=l[P])}return a},Ts.apply(this,arguments)};function sm(C,i){var a={};for(var l in C)Object.prototype.hasOwnProperty.call(C,l)&&i.indexOf(l)<0&&(a[l]=C[l]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(C);u<l.length;u++)i.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(C,l[u])&&(a[l[u]]=C[l[u]]);return a}function NO(C,i,a,l){var u=arguments.length,E=u<3?i:l===null?l=Object.getOwnPropertyDescriptor(i,a):l,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(C,i,a,l);else for(var j=C.length-1;j>=0;j--)(P=C[j])&&(E=(u<3?P(E):u>3?P(i,a,E):P(i,a))||E);return u>3&&E&&Object.defineProperty(i,a,E),E}function J4(C,i){return function(a,l){i(a,l,C)}}function Q4(C,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(C,i)}function Dm(C,i,a,l){function u(E){return E instanceof a?E:new a(function(P){P(E)})}return new(a||(a=Promise))(function(E,P){function j(ee){try{X(l.next(ee))}catch(se){P(se)}}function H(ee){try{X(l.throw(ee))}catch(se){P(se)}}function X(ee){ee.done?E(ee.value):u(ee.value).then(j,H)}X((l=l.apply(C,i||[])).next())})}function m0(C,i){var a={label:0,sent:function(){if(E[0]&1)throw E[1];return E[1]},trys:[],ops:[]},l,u,E,P;return P={next:j(0),throw:j(1),return:j(2)},typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function j(X){return function(ee){return H([X,ee])}}function H(X){if(l)throw new TypeError("Generator is already executing.");for(;a;)try{if(l=1,u&&(E=X[0]&2?u.return:X[0]?u.throw||((E=u.return)&&E.call(u),0):u.next)&&!(E=E.call(u,X[1])).done)return E;switch(u=0,E&&(X=[X[0]&2,E.value]),X[0]){case 0:case 1:E=X;break;case 4:return a.label++,{value:X[1],done:!1};case 5:a.label++,u=X[1],X=[0];continue;case 7:X=a.ops.pop(),a.trys.pop();continue;default:if(E=a.trys,!(E=E.length>0&&E[E.length-1])&&(X[0]===6||X[0]===2)){a=0;continue}if(X[0]===3&&(!E||X[1]>E[0]&&X[1]<E[3])){a.label=X[1];break}if(X[0]===6&&a.label<E[1]){a.label=E[1],E=X;break}if(E&&a.label<E[2]){a.label=E[2],a.ops.push(X);break}E[2]&&a.ops.pop(),a.trys.pop();continue}X=i.call(C,a)}catch(ee){X=[6,ee],u=0}finally{l=E=0}if(X[0]&5)throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}}function yk(C,i,a,l){l===void 0&&(l=a),C[l]=i[a]}function q4(C,i){for(var a in C)a!=="default"&&!i.hasOwnProperty(a)&&(i[a]=C[a])}function n2(C){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&C[i],l=0;if(a)return a.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&l>=C.length&&(C=void 0),{value:C&&C[l++],done:!C}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function nS(C,i){var a=typeof Symbol=="function"&&C[Symbol.iterator];if(!a)return C;var l=a.call(C),u,E=[],P;try{for(;(i===void 0||i-- >0)&&!(u=l.next()).done;)E.push(u.value)}catch(j){P={error:j}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(P)throw P.error}}return E}function LO(){for(var C=[],i=0;i<arguments.length;i++)C=C.concat(nS(arguments[i]));return C}function FO(){for(var C=0,i=0,a=arguments.length;i<a;i++)C+=arguments[i].length;for(var l=Array(C),u=0,i=0;i<a;i++)for(var E=arguments[i],P=0,j=E.length;P<j;P++,u++)l[u]=E[P];return l}function r2(C){return this instanceof r2?(this.v=C,this):new r2(C)}function jO(C,i,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=a.apply(C,i||[]),u,E=[];return u={},P("next"),P("throw"),P("return"),u[Symbol.asyncIterator]=function(){return this},u;function P(Se){l[Se]&&(u[Se]=function(Re){return new Promise(function(Be,Ye){E.push([Se,Re,Be,Ye])>1||j(Se,Re)})})}function j(Se,Re){try{H(l[Se](Re))}catch(Be){se(E[0][3],Be)}}function H(Se){Se.value instanceof r2?Promise.resolve(Se.value.v).then(X,ee):se(E[0][2],Se)}function X(Se){j("next",Se)}function ee(Se){j("throw",Se)}function se(Se,Re){Se(Re),E.shift(),E.length&&j(E[0][0],E[0][1])}}function BO(C){var i,a;return i={},l("next"),l("throw",function(u){throw u}),l("return"),i[Symbol.iterator]=function(){return this},i;function l(u,E){i[u]=C[u]?function(P){return(a=!a)?{value:r2(C[u](P)),done:u==="return"}:E?E(P):P}:E}}function bk(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=C[Symbol.asyncIterator],a;return i?i.call(C):(C=typeof n2=="function"?n2(C):C[Symbol.iterator](),a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a);function l(E){a[E]=C[E]&&function(P){return new Promise(function(j,H){P=C[E](P),u(j,H,P.done,P.value)})}}function u(E,P,j,H){Promise.resolve(H).then(function(X){E({value:X,done:j})},P)}}function xk(C,i){return Object.defineProperty?Object.defineProperty(C,"raw",{value:i}):C.raw=i,C}function RT(C){if(C&&C.__esModule)return C;var i={};if(C!=null)for(var a in C)Object.hasOwnProperty.call(C,a)&&(i[a]=C[a]);return i.default=C,i}function Ek(C){return C&&C.__esModule?C:{default:C}}function Sk(C,i){if(!i.has(C))throw new TypeError("attempted to get private field on non-instance");return i.get(C)}function Ck(C,i,a){if(!i.has(C))throw new TypeError("attempted to set private field on non-instance");return i.set(C,a),a}var Nn=o(70234),OT={getDefaultCfg:function(){return{}},getEvents:function(){return{}},updateCfg:function(i){return Object.assign(this,i),!0},shouldBegin:function(){return!0},shouldUpdate:function(){return!0},shouldEnd:function(){return!0},bind:function(i){var a=this,l=this.events;this.graph=i,(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&i.get("canvas").set("draggable",!0),(0,Nn.each)(l,function(u,E){i.on(E,u)}),document.addEventListener("visibilitychange",function(){a.keydown=!1})},unbind:function(i){var a=this.events,l=i.get("canvas").get("draggable");(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&i.get("canvas").set("draggable",!1),(0,Nn.each)(a,function(u,E){i.off(E,u)}),i.get("canvas").set("draggable",l)},get:function(i){return this[i]},set:function(i,a){return this[i]=a,this}},a2=function(){function C(){}return C.registerBehavior=function(i,a){if(!a)throw new Error("please specify handler for this behavior: ".concat(i));var l=(0,Nn.clone)(OT);Object.assign(l,a);var u=function(P){var j=this;Object.assign(this,this.getDefaultCfg(),P);var H=this.getEvents();this.events=null;var X={};H&&((0,Nn.each)(H,function(ee,se){X[se]=(0,Nn.wrapBehavior)(j,ee)}),this.events=X)};u.prototype=l,C.types[i]=u},C.hasBehavior=function(i){return!!C.types[i]},C.getBehavior=function(i){return C.types[i]},C.types={},C}(),wk=a2,g0=wk,i2=function(i,a){return i2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var E in u)Object.prototype.hasOwnProperty.call(u,E)&&(l[E]=u[E])},i2(i,a)};function rb(C,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");i2(C,i);function a(){this.constructor=C}C.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}var bl=function(){return bl=Object.assign||function(a){for(var l,u=1,E=arguments.length;u<E;u++){l=arguments[u];for(var P in l)Object.prototype.hasOwnProperty.call(l,P)&&(a[P]=l[P])}return a},bl.apply(this,arguments)};function $p(C,i){var a={};for(var l in C)Object.prototype.hasOwnProperty.call(C,l)&&i.indexOf(l)<0&&(a[l]=C[l]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(C);u<l.length;u++)i.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(C,l[u])&&(a[l[u]]=C[l[u]]);return a}function ab(C,i,a,l){var u=arguments.length,E=u<3?i:l===null?l=Object.getOwnPropertyDescriptor(i,a):l,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(C,i,a,l);else for(var j=C.length-1;j>=0;j--)(P=C[j])&&(E=(u<3?P(E):u>3?P(i,a,E):P(i,a))||E);return u>3&&E&&Object.defineProperty(i,a,E),E}function Jy(C,i){return function(a,l){i(a,l,C)}}function UO(C,i,a,l,u,E){function P(Tt){if(Tt!==void 0&&typeof Tt!="function")throw new TypeError("Function expected");return Tt}for(var j=l.kind,H=j==="getter"?"get":j==="setter"?"set":"value",X=!i&&C?l.static?C:C.prototype:null,ee=i||(X?Object.getOwnPropertyDescriptor(X,l.name):{}),se,Se=!1,Re=a.length-1;Re>=0;Re--){var Be={};for(var Ye in l)Be[Ye]=Ye==="access"?{}:l[Ye];for(var Ye in l.access)Be.access[Ye]=l.access[Ye];Be.addInitializer=function(Tt){if(Se)throw new TypeError("Cannot add initializers after decoration has completed");E.push(P(Tt||null))};var ht=(0,a[Re])(j==="accessor"?{get:ee.get,set:ee.set}:ee[H],Be);if(j==="accessor"){if(ht===void 0)continue;if(ht===null||typeof ht!="object")throw new TypeError("Object expected");(se=P(ht.get))&&(ee.get=se),(se=P(ht.set))&&(ee.set=se),(se=P(ht.init))&&u.unshift(se)}else(se=P(ht))&&(j==="field"?u.unshift(se):ee[H]=se)}X&&Object.defineProperty(X,l.name,ee),Se=!0}function o2(C,i,a){for(var l=arguments.length>2,u=0;u<i.length;u++)a=l?i[u].call(C,a):i[u].call(C);return l?a:void 0}function IT(C){return typeof C=="symbol"?C:"".concat(C)}function eN(C,i,a){return typeof i=="symbol"&&(i=i.description?"[".concat(i.description,"]"):""),Object.defineProperty(C,"name",{configurable:!0,value:a?"".concat(a," ",i):i})}function Tk(C,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(C,i)}function Wg(C,i,a,l){function u(E){return E instanceof a?E:new a(function(P){P(E)})}return new(a||(a=Promise))(function(E,P){function j(ee){try{X(l.next(ee))}catch(se){P(se)}}function H(ee){try{X(l.throw(ee))}catch(se){P(se)}}function X(ee){ee.done?E(ee.value):u(ee.value).then(j,H)}X((l=l.apply(C,i||[])).next())})}function DT(C,i){var a={label:0,sent:function(){if(E[0]&1)throw E[1];return E[1]},trys:[],ops:[]},l,u,E,P;return P={next:j(0),throw:j(1),return:j(2)},typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function j(X){return function(ee){return H([X,ee])}}function H(X){if(l)throw new TypeError("Generator is already executing.");for(;P&&(P=0,X[0]&&(a=0)),a;)try{if(l=1,u&&(E=X[0]&2?u.return:X[0]?u.throw||((E=u.return)&&E.call(u),0):u.next)&&!(E=E.call(u,X[1])).done)return E;switch(u=0,E&&(X=[X[0]&2,E.value]),X[0]){case 0:case 1:E=X;break;case 4:return a.label++,{value:X[1],done:!1};case 5:a.label++,u=X[1],X=[0];continue;case 7:X=a.ops.pop(),a.trys.pop();continue;default:if(E=a.trys,!(E=E.length>0&&E[E.length-1])&&(X[0]===6||X[0]===2)){a=0;continue}if(X[0]===3&&(!E||X[1]>E[0]&&X[1]<E[3])){a.label=X[1];break}if(X[0]===6&&a.label<E[1]){a.label=E[1],E=X;break}if(E&&a.label<E[2]){a.label=E[2],a.ops.push(X);break}E[2]&&a.ops.pop(),a.trys.pop();continue}X=i.call(C,a)}catch(ee){X=[6,ee],u=0}finally{l=E=0}if(X[0]&5)throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}}var t_=Object.create?function(C,i,a,l){l===void 0&&(l=a);var u=Object.getOwnPropertyDescriptor(i,a);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(C,l,u)}:function(C,i,a,l){l===void 0&&(l=a),C[l]=i[a]};function s2(C,i){for(var a in C)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t_(i,C,a)}function __(C){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&C[i],l=0;if(a)return a.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&l>=C.length&&(C=void 0),{value:C&&C[l++],done:!C}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function NT(C,i){var a=typeof Symbol=="function"&&C[Symbol.iterator];if(!a)return C;var l=a.call(C),u,E=[],P;try{for(;(i===void 0||i-- >0)&&!(u=l.next()).done;)E.push(u.value)}catch(j){P={error:j}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(P)throw P.error}}return E}function l2(){for(var C=[],i=0;i<arguments.length;i++)C=C.concat(NT(arguments[i]));return C}function Cx(){for(var C=0,i=0,a=arguments.length;i<a;i++)C+=arguments[i].length;for(var l=Array(C),u=0,i=0;i<a;i++)for(var E=arguments[i],P=0,j=E.length;P<j;P++,u++)l[u]=E[P];return l}function my(C,i,a){if(a||arguments.length===2)for(var l=0,u=i.length,E;l<u;l++)(E||!(l in i))&&(E||(E=Array.prototype.slice.call(i,0,l)),E[l]=i[l]);return C.concat(E||Array.prototype.slice.call(i))}function Tx(C){return this instanceof Tx?(this.v=C,this):new Tx(C)}function LT(C,i,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=a.apply(C,i||[]),u,E=[];return u={},P("next"),P("throw"),P("return"),u[Symbol.asyncIterator]=function(){return this},u;function P(Se){l[Se]&&(u[Se]=function(Re){return new Promise(function(Be,Ye){E.push([Se,Re,Be,Ye])>1||j(Se,Re)})})}function j(Se,Re){try{H(l[Se](Re))}catch(Be){se(E[0][3],Be)}}function H(Se){Se.value instanceof Tx?Promise.resolve(Se.value.v).then(X,ee):se(E[0][2],Se)}function X(Se){j("next",Se)}function ee(Se){j("throw",Se)}function se(Se,Re){Se(Re),E.shift(),E.length&&j(E[0][0],E[0][1])}}function FT(C){var i,a;return i={},l("next"),l("throw",function(u){throw u}),l("return"),i[Symbol.iterator]=function(){return this},i;function l(u,E){i[u]=C[u]?function(P){return(a=!a)?{value:Tx(C[u](P)),done:!1}:E?E(P):P}:E}}function ib(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=C[Symbol.asyncIterator],a;return i?i.call(C):(C=typeof __=="function"?__(C):C[Symbol.iterator](),a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a);function l(E){a[E]=C[E]&&function(P){return new Promise(function(j,H){P=C[E](P),u(j,H,P.done,P.value)})}}function u(E,P,j,H){Promise.resolve(H).then(function(X){E({value:X,done:j})},P)}}function jT(C,i){return Object.defineProperty?Object.defineProperty(C,"raw",{value:i}):C.raw=i,C}var Ak=Object.create?function(C,i){Object.defineProperty(C,"default",{enumerable:!0,value:i})}:function(C,i){C.default=i};function ZO(C){if(C&&C.__esModule)return C;var i={};if(C!=null)for(var a in C)a!=="default"&&Object.prototype.hasOwnProperty.call(C,a)&&t_(i,C,a);return Ak(i,C),i}function c2(C){return C&&C.__esModule?C:{default:C}}function VO(C,i,a,l){if(a==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?C!==i||!l:!i.has(C))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?l:a==="a"?l.call(C):l?l.value:i.get(C)}function rS(C,i,a,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?C!==i||!u:!i.has(C))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(C,a):u?u.value=a:i.set(C,a),a}function gm(C,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof C=="function"?i===C:C.has(i)}function Mk(C,i,a){if(i!=null){if(typeof i!="object"&&typeof i!="function")throw new TypeError("Object expected.");var l;if(a){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");l=i[Symbol.asyncDispose]}if(l===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");l=i[Symbol.dispose]}if(typeof l!="function")throw new TypeError("Object not disposable.");C.stack.push({value:i,dispose:l,async:a})}else a&&C.stack.push({async:!0});return i}var u2=typeof SuppressedError=="function"?SuppressedError:function(C,i,a){var l=new Error(a);return l.name="SuppressedError",l.error=C,l.suppressed=i,l};function BT(C){function i(l){C.error=C.hasError?new u2(l,C.error,"An error was suppressed during disposal."):l,C.hasError=!0}function a(){for(;C.stack.length;){var l=C.stack.pop();try{var u=l.dispose&&l.dispose.call(l.value);if(l.async)return Promise.resolve(u).then(a,function(E){return i(E),a()})}catch(E){i(E)}}if(C.hasError)throw C.error}return a()}var r7={__extends:rb,__assign:bl,__rest:$p,__decorate:ab,__param:Jy,__metadata:Tk,__awaiter:Wg,__generator:DT,__createBinding:t_,__exportStar:s2,__values:__,__read:NT,__spread:l2,__spreadArrays:Cx,__spreadArray:my,__await:Tx,__asyncGenerator:LT,__asyncDelegator:FT,__asyncValues:ib,__makeTemplateObject:jT,__importStar:ZO,__importDefault:c2,__classPrivateFieldGet:VO,__classPrivateFieldSet:rS,__classPrivateFieldIn:gm,__addDisposableResource:Mk,__disposeResources:BT},tN="*",Kp=function(){function C(){this._events={}}return C.prototype.on=function(i,a,l){return this._events[i]||(this._events[i]=[]),this._events[i].push({callback:a,once:!!l}),this},C.prototype.once=function(i,a){return this.on(i,a,!0)},C.prototype.emit=function(i){for(var a=this,l=[],u=1;u<arguments.length;u++)l[u-1]=arguments[u];var E=this._events[i]||[],P=this._events[tN]||[],j=function(X){for(var ee=X.length,se=0;se<ee;se++)if(!!X[se]){var Se=X[se],Re=Se.callback,Be=Se.once;Be&&(X.splice(se,1),X.length===0&&delete a._events[i],ee--,se--),Re.apply(a,l)}};j(E),j(P)},C.prototype.off=function(i,a){if(!i)this._events={};else if(!a)delete this._events[i];else{for(var l=this._events[i]||[],u=l.length,E=0;E<u;E++)l[E].callback===a&&(l.splice(E,1),u--,E--);l.length===0&&delete this._events[i]}return this},C.prototype.getEvents=function(){return this._events},C}(),gy=Kp,lm=o(16727);function UT(C,i,a){var l=[0,0,0,0,0,0,0,0,0];return lm.fromTranslation(l,a),lm.multiply(C,l,i)}function f2(C,i,a){var l=[0,0,0,0,0,0,0,0,0];return lm.fromRotation(l,a),lm.multiply(C,l,i)}function zO(C,i,a){var l=[0,0,0,0,0,0,0,0,0];return lm.fromScaling(l,a),lm.multiply(C,l,i)}function ZT(C,i,a){return lm.multiply(C,a,i)}function U_(C,i){for(var a=C?[].concat(C):[1,0,0,0,1,0,0,0,1],l=0,u=i.length;l<u;l++){var E=i[l];switch(E[0]){case"t":UT(a,a,[E[1],E[2]]);break;case"s":zO(a,a,[E[1],E[2]]);break;case"r":f2(a,a,E[1]);break;case"m":ZT(a,a,E[1]);break;default:break}}return a}function WO(C,i){return C[0]*i[1]-i[0]*C[1]}function nN(C,i,a){var l=vec2.angle(C,i),u=WO(C,i)>=0;return a?u?Math.PI*2-l:l:u?l:Math.PI*2-l}function HO(C,i,a){return a?(C[0]=i[1],C[1]=-1*i[0]):(C[0]=-1*i[1],C[1]=i[0]),C}var VT=function(i,a){var l=i.nodes,u=i.edges,E=[],P={};if(!l)throw new Error("invalid nodes data!");return l&&l.forEach(function(j,H){P[j.id]=H;var X=[];E.push(X)}),u&&u.forEach(function(j){var H=j.source,X=j.target,ee=P[H],se=P[X];!ee&&ee!==0||!se&&se!==0||(E[ee][se]=1,a||(E[se][ee]=1))}),E},ob=VT,Ax=function(i,a){return i===a},kk=function(){function C(i,a){a===void 0&&(a=null),this.value=i,this.next=a}return C.prototype.toString=function(i){return i?i(this.value):"".concat(this.value)},C}(),Pk=function(){function C(i){i===void 0&&(i=Ax),this.head=null,this.tail=null,this.compare=i}return C.prototype.prepend=function(i){var a=new kk(i,this.head);return this.head=a,this.tail||(this.tail=a),this},C.prototype.append=function(i){var a=new kk(i);return this.head?(this.tail.next=a,this.tail=a,this):(this.head=a,this.tail=a,this)},C.prototype.delete=function(i){if(!this.head)return null;for(var a=null;this.head&&this.compare(this.head.value,i);)a=this.head,this.head=this.head.next;var l=this.head;if(l!==null)for(;l.next;)this.compare(l.next.value,i)?(a=l.next,l.next=l.next.next):l=l.next;return this.compare(this.tail.value,i)&&(this.tail=l),a},C.prototype.find=function(i){var a=i.value,l=a===void 0?void 0:a,u=i.callback,E=u===void 0?void 0:u;if(!this.head)return null;for(var P=this.head;P;){if(E&&E(P.value)||l!==void 0&&this.compare(P.value,l))return P;P=P.next}return null},C.prototype.deleteTail=function(){var i=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,i;for(var a=this.head;a.next;)a.next.next?a=a.next:a.next=null;return this.tail=a,i},C.prototype.deleteHead=function(){if(!this.head)return null;var i=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),i},C.prototype.fromArray=function(i){var a=this;return i.forEach(function(l){return a.append(l)}),this},C.prototype.toArray=function(){for(var i=[],a=this.head;a;)i.push(a),a=a.next;return i},C.prototype.reverse=function(){for(var i=this.head,a=null,l=null;i;)l=i.next,i.next=a,a=i,i=l;this.tail=this.head,this.head=a},C.prototype.toString=function(i){return i===void 0&&(i=void 0),this.toArray().map(function(a){return a.toString(i)}).toString()},C}(),Rk=Pk,Ok=function(){function C(){this.linkedList=new Rk}return C.prototype.isEmpty=function(){return!this.linkedList.head},C.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},C.prototype.enqueue=function(i){this.linkedList.append(i)},C.prototype.dequeue=function(){var i=this.linkedList.deleteHead();return i?i.value:null},C.prototype.toString=function(i){return this.linkedList.toString(i)},C}(),zT=Ok,Hg=function(i,a,l){a===void 0&&(a=[]);var u=a.filter(function(H){return H.source===i||H.target===i});if(l==="target"){var E=function(X){return X.source===i};return u.filter(E).map(function(H){return H.target})}if(l==="source"){var P=function(X){return X.target===i};return u.filter(P).map(function(H){return H.source})}var j=function(X){return X.source===i?X.target:X.source};return u.map(j)},d2=function(i,a){return a.filter(function(l){return l.source===i})},p2=function(i,a){return a.filter(function(l){return l.source===i||l.target===i})},Ik=function(i){i===void 0&&(i=0);var a="".concat(Math.random()).split(".")[1].substr(0,5),l="".concat(Math.random()).split(".")[1].substr(0,5);return"".concat(i,"-").concat(a).concat(l)};function Dk(C){C===void 0&&(C={});var i=C,a=function(){},l=function(){var u={};return function(E){var P=E.next,j=P;return u[j]?!1:(u[j]=!0,!0)}}();return i.allowTraversal=C.allowTraversal||l,i.enter=C.enter||a,i.leave=C.leave||a,i}var WT=function(i,a,l,u){u===void 0&&(u=!0);var E=Dk(l),P=new zT,j=i.edges,H=j===void 0?[]:j;P.enqueue(a);for(var X="",ee=function(){var Se=P.dequeue();E.enter({current:Se,previous:X}),Hg(Se,H,u?"target":void 0).forEach(function(Re){E.allowTraversal({previous:X,current:Se,next:Re})&&P.enqueue(Re)}),E.leave({current:Se,previous:X}),X=Se};!P.isEmpty();)ee()},HT=WT,GT=function(i){for(var a=i.nodes,l=a===void 0?[]:a,u=i.edges,E=u===void 0?[]:u,P=[],j={},H=[],X=function Re(Be){H.push(Be),j[Be.id]=!0;for(var Ye=Hg(Be.id,E),ht=function(Kt){var gn=Ye[Kt];if(!j[gn]){var bn=l.filter(function(mn){return mn.id===gn});bn.length>0&&Re(bn[0])}},Tt=0;Tt<Ye.length;++Tt)ht(Tt)},ee=0;ee<l.length;ee++){var se=l[ee];if(!j[se.id]){X(se);for(var Se=[];H.length>0;)Se.push(H.pop());P.push(Se)}}return P},Mx=function(i){for(var a=i.nodes,l=a===void 0?[]:a,u=i.edges,E=u===void 0?[]:u,P=[],j={},H={},X={},ee=[],se=0,Se=function ht(Tt){H[Tt.id]=se,X[Tt.id]=se,se+=1,P.push(Tt),j[Tt.id]=!0;for(var Dt=Hg(Tt.id,E,"target").filter(function(kn){return l.map(function(sr){return sr.id}).indexOf(kn)>-1}),Kt=function(sr){var yr=Dt[sr];if(!H[yr]&&H[yr]!==0){var jr=l.filter(function(zr){return zr.id===yr});jr.length>0&&ht(jr[0]),X[Tt.id]=Math.min(X[Tt.id],X[yr])}else j[yr]&&(X[Tt.id]=Math.min(X[Tt.id],H[yr]))},gn=0;gn<Dt.length;gn++)Kt(gn);if(X[Tt.id]===H[Tt.id]){for(var bn=[];P.length>0;){var mn=P.pop();if(j[mn.id]=!1,bn.push(mn),mn===Tt)break}bn.length>0&&ee.push(bn)}},Re=0,Be=l;Re<Be.length;Re++){var Ye=Be[Re];!H[Ye.id]&&H[Ye.id]!==0&&Se(Ye)}return ee};function Qy(C,i){return i?Mx(C):GT(C)}var _y=function(i){var a={},l=i.nodes,u=l===void 0?[]:l,E=i.edges,P=E===void 0?[]:E;return u.forEach(function(j){a[j.id]={degree:0,inDegree:0,outDegree:0}}),P.forEach(function(j){a[j.source].degree++,a[j.source].outDegree++,a[j.target].degree++,a[j.target].inDegree++}),a},aS=_y,Nk=function(i,a){var l=_y(i);return l[a]?_y(i)[a].inDegree:0},iS=function(i,a){var l=_y(i);return l[a]?_y(i)[a].outDegree:0};function $T(C){C===void 0&&(C={});var i=C,a=function(){},l=function(){var u={};return function(E){var P=E.next;return u[P]?!1:(u[P]=!0,!0)}}();return i.allowTraversal=C.allowTraversal||l,i.enter=C.enter||a,i.leave=C.leave||a,i}function KT(C,i,a,l,u){u===void 0&&(u=!0),l.enter({current:i,previous:a});var E=C.edges,P=E===void 0?[]:E;Hg(i,P,u?"target":void 0).forEach(function(j){l.allowTraversal({previous:a,current:i,next:j})&&KT(C,j,i,l,u)}),l.leave({current:i,previous:a})}function kx(C,i,a,l){l===void 0&&(l=!0),KT(C,i,"",$T(a),l)}var GO=function(i){var a=null,l=i.nodes,u=l===void 0?[]:l,E={},P={},j={},H={};u.forEach(function(se){P[se.id]=se});for(var X={enter:function(Se){var Re=Se.current,Be=Se.previous;if(j[Re]){a={};for(var Ye=Re,ht=Be;ht!==Re;)a[Ye]=ht,Ye=ht,ht=E[ht];a[Ye]=ht}else j[Re]=Re,delete P[Re],E[Re]=Be},leave:function(Se){var Re=Se.current;H[Re]=Re,delete j[Re]},allowTraversal:function(Se){var Re=Se.next;return a?!1:!H[Re]}};Object.keys(P).length;){var ee=Object.keys(P)[0];kx(i,ee,X)}return a},oS=function(i,a,l){var u,E;l===void 0&&(l=!0);for(var P=[],j=Qy(i,!1),H=0,X=j;H<X.length;H++){var ee=X[H];if(!!ee.length)for(var se=ee[0],Se=se.id,Re=[se],Be=(u={},u[Se]=se,u),Ye=(E={},E[Se]=new Set,E);Re.length>0;)for(var ht=Re.pop(),Tt=ht.id,Dt=Hg(Tt,i.edges),Kt=function(mn){var kn,sr=Dt[mn],yr=i.nodes.find(function(Di){return Di.id===sr});if(sr===Tt)P.push((kn={},kn[sr]=ht,kn));else if(!(sr in Ye))Be[sr]=ht,Re.push(yr),Ye[sr]=new Set([ht]);else if(!Ye[Tt].has(yr)){for(var jr=!0,zr=[yr,ht],va=Be[Tt];Ye[sr].size&&!Ye[sr].has(va)&&(zr.push(va),va!==Be[va.id]);)va=Be[va.id];if(zr.push(va),a&&l?(jr=!1,zr.findIndex(function(Di){return a.indexOf(Di.id)>-1})>-1&&(jr=!0)):a&&!l&&zr.findIndex(function(Di){return a.indexOf(Di.id)>-1})>-1&&(jr=!1),jr){for(var za={},xi=1;xi<zr.length;xi+=1)za[zr[xi-1].id]=zr[xi];zr.length&&(za[zr[zr.length-1].id]=zr[0]),P.push(za)}Ye[sr].add(ht)}},gn=0;gn<Dt.length;gn+=1)Kt(gn)}return P},v2=function(i,a,l){l===void 0&&(l=!0);for(var u=[],E=new Set,P=[],j=[],H={},X={},ee=function(va){for(var za=[va];za.length>0;){var xi=za.pop();E.has(xi)&&(E.delete(xi),P[xi.id].forEach(function(Di){za.push(Di)}),P[xi.id].clear())}},se=function zr(va,za,xi){var Di=!1;if(a&&l===!1&&a.indexOf(va.id)>-1)return Di;u.push(va),E.add(va);for(var Si=xi[va.id],jo=0;jo<Si.length;jo+=1){var ro=H[Si[jo]];if(ro===za){for(var hi={},io=1;io<u.length;io+=1)hi[u[io-1].id]=u[io];u.length&&(hi[u[u.length-1].id]=u[0]),j.push(hi),Di=!0}else E.has(ro)||zr(ro,za,xi)&&(Di=!0)}if(Di)ee(va);else for(var jo=0;jo<Si.length;jo+=1){var ro=H[Si[jo]];P[ro.id].has(va)||P[ro.id].add(va)}return u.pop(),Di},Se=i.nodes,Re=Se===void 0?[]:Se,Be=0;Be<Re.length;Be+=1){var Ye=Re[Be],ht=Ye.id;X[ht]=Be,H[Be]=Ye}if(a&&l)for(var Tt=function(va){var za=a[va];X[Re[va].id]=X[za],X[za]=0,H[0]=Re.find(function(xi){return xi.id===za}),H[X[Re[va].id]]=Re[va]},Be=0;Be<a.length;Be++)Tt(Be);for(var Dt=function(va){for(var za,xi,Di=Infinity,Si=0;Si<va.length;Si+=1)for(var jo=va[Si],ro=0;ro<jo.length;ro++){var hi=X[jo[ro].id];hi<Di&&(Di=hi,xi=Si)}for(var io=va[xi],oo=[],Si=0;Si<io.length;Si+=1){var Ki=io[Si];oo[Ki.id]=[];for(var Ji=0,Ao=Hg(Ki.id,i.edges,"target").filter(function(Is){return io.map(function(Cl){return Cl.id}).indexOf(Is)>-1});Ji<Ao.length;Ji++){var ks=Ao[Ji];ks===Ki.id&&!(l===!1&&a.indexOf(Ki.id)>-1)?j.push((za={},za[Ki.id]=Ki,za)):oo[Ki.id].push(X[ks])}}return{component:io,adjList:oo,minIdx:Di}},Kt=0;Kt<Re.length;){var gn=Re.filter(function(zr){return X[zr.id]>=Kt}),bn=Mx({nodes:gn,edges:i.edges}).filter(function(zr){return zr.length>1});if(bn.length===0)break;var mn=Dt(bn),kn=mn.minIdx,sr=mn.adjList,yr=mn.component;if(yr.length>1){yr.forEach(function(zr){P[zr.id]=new Set});var jr=H[kn];if(a&&l&&a.indexOf(jr.id)===-1)return j;se(jr,jr,sr),Kt=kn+1}else break}return j},YT=function(i,a,l,u){return u===void 0&&(u=!0),a?v2(i,l,u):oS(i,l,u)},XT=GO,em=o(88788),JT=function(i,a,l){for(var u=Infinity,E,P=0;P<a.length;P++){var j=a[P].id;!l[j]&&i[j]<=u&&(u=i[j],E=a[P])}return E},Lk=function(i,a,l,u){var E=i.nodes,P=E===void 0?[]:E,j=i.edges,H=j===void 0?[]:j,X=[],ee={},se={},Se={};P.forEach(function(Kt,gn){var bn=Kt.id;X.push(bn),se[bn]=Infinity,bn===a&&(se[bn]=0)});for(var Re=P.length,Be=function(gn){var bn=JT(se,P,ee),mn=bn.id;if(ee[mn]=!0,se[mn]===Infinity)return"continue";var kn=[];l?kn=d2(mn,H):kn=p2(mn,H),kn.forEach(function(sr){var yr=sr.target,jr=sr.source,zr=yr===mn?jr:yr,va=u&&sr[u]?sr[u]:1;se[zr]>se[bn.id]+va?(se[zr]=se[bn.id]+va,Se[zr]=[bn.id]):se[zr]===se[bn.id]+va&&Se[zr].push(bn.id)})},Ye=0;Ye<Re;Ye++)Be(Ye);Se[a]=[a];var ht={};for(var Tt in se)se[Tt]!==Infinity&&Fk(a,Tt,Se,ht);var Dt={};for(var Tt in ht)Dt[Tt]=ht[Tt][0];return{length:se,path:Dt,allPath:ht}},yy=Lk;function Fk(C,i,a,l){if(C===i)return[C];if(l[i])return l[i];for(var u=[],E=0,P=a[i];E<P.length;E++){var j=P[E],H=Fk(C,j,a,l);if(!H)return;for(var X=0,ee=H;X<ee.length;X++){var se=ee[X];(0,Nn.isArray)(se)?u.push((0,em.__spreadArray)((0,em.__spreadArray)([],se,!0),[i],!1)):u.push([se,i])}}return l[i]=u,l[i]}var jk=function(i,a,l,u,E){var P=yy(i,a,u,E),j=P.length,H=P.path,X=P.allPath;return{length:j[l],path:H[l],allPath:X[l]}},QT=function(i,a,l,u){var E;if(a===l)return[[a]];var P=i.edges,j=P===void 0?[]:P,H=[a],X=(E={},E[a]=!0,E),ee=[],se=[],Se=u?Hg(a,j,"target"):Hg(a,j);for(ee.push(Se);H.length>0&&ee.length>0;){var Re=ee[ee.length-1];if(Re.length){var Be=Re.shift();Be&&(H.push(Be),X[Be]=!0,Se=u?Hg(Be,j,"target"):Hg(Be,j),ee.push(Se.filter(function(Tt){return!X[Tt]})))}else{var Ye=H.pop();X[Ye]=!1,ee.pop();continue}if(H[H.length-1]===l){var ht=H.map(function(Dt){return Dt});se.push(ht);var Ye=H.pop();X[Ye]=!1,ee.pop()}}return se},$O=function(i,a){for(var l=ob(i,a),u=[],E=l.length,P=0;P<E;P+=1){u[P]=[];for(var j=0;j<E;j+=1)P===j?u[P][j]=0:l[P][j]===0||!l[P][j]?u[P][j]=Infinity:u[P][j]=l[P][j]}for(var H=0;H<E;H+=1)for(var P=0;P<E;P+=1)for(var j=0;j<E;j+=1)u[P][j]>u[P][H]+u[H][j]&&(u[P][j]=u[P][H]+u[H][j]);return u},sb=$O,KO=function(i,a,l,u){a===void 0&&(a=!1),l===void 0&&(l="weight"),u===void 0&&(u=1e3);var E=i.nodes,P=E===void 0?[]:E,j=i.edges,H=j===void 0?[]:j,X={},ee={};P.forEach(function(gn,bn){var mn=Ik();gn.clusterId=mn,X[mn]={id:mn,nodes:[gn]},ee[gn.id]={node:gn,idx:bn}});var se=ob(i,a),Se=[],Re={};se.forEach(function(gn,bn){var mn=0,kn=P[bn].id;Re[kn]={},gn.forEach(function(sr,yr){if(!!sr){mn+=sr;var jr=P[yr].id;Re[kn][jr]=sr}}),Se.push(mn)});for(var Be=0,Ye=function(){var bn=!1;if(P.forEach(function(mn){var kn={};Object.keys(Re[mn.id]).forEach(function(Di){var Si=Re[mn.id][Di],jo=ee[Di].node,ro=jo.clusterId;kn[ro]||(kn[ro]=0),kn[ro]+=Si});var sr=-Infinity,yr=[];if(Object.keys(kn).forEach(function(Di){sr<kn[Di]?(sr=kn[Di],yr=[Di]):sr===kn[Di]&&yr.push(Di)}),!(yr.length===1&&yr[0]===mn.clusterId)){var jr=yr.indexOf(mn.clusterId);if(jr>=0&&yr.splice(jr,1),yr&&yr.length){bn=!0;var zr=X[mn.clusterId],va=zr.nodes.indexOf(mn);zr.nodes.splice(va,1);var za=Math.floor(Math.random()*yr.length),xi=X[yr[za]];xi.nodes.push(mn),mn.clusterId=xi.id}}}),!bn)return"break";Be++};Be<u;){var ht=Ye();if(ht==="break")break}Object.keys(X).forEach(function(gn){var bn=X[gn];(!bn.nodes||!bn.nodes.length)&&delete X[gn]});var Tt=[],Dt={};H.forEach(function(gn){var bn=gn.source,mn=gn.target,kn=gn[l]||1,sr=ee[bn].node.clusterId,yr=ee[mn].node.clusterId,jr="".concat(sr,"---").concat(yr);if(Dt[jr])Dt[jr].weight+=kn,Dt[jr].count++;else{var zr={source:sr,target:yr,weight:kn,count:1};Dt[jr]=zr,Tt.push(zr)}});var Kt=[];return Object.keys(X).forEach(function(gn){Kt.push(X[gn])}),{clusters:Kt,clusterEdges:Tt}},Bk=KO,Uk=function(){function C(i){this.arr=i}return C.prototype.getArr=function(){return this.arr||[]},C.prototype.add=function(i){var a,l=i.arr;if(!((a=this.arr)===null||a===void 0?void 0:a.length))return new C(l);if(!(l==null?void 0:l.length))return new C(this.arr);if(this.arr.length===l.length){var u=[];for(var E in this.arr)u[E]=this.arr[E]+l[E];return new C(u)}},C.prototype.subtract=function(i){var a,l=i.arr;if(!((a=this.arr)===null||a===void 0?void 0:a.length))return new C(l);if(!(l==null?void 0:l.length))return new C(this.arr);if(this.arr.length===l.length){var u=[];for(var E in this.arr)u[E]=this.arr[E]-l[E];return new C(u)}},C.prototype.avg=function(i){var a=[];if(i!==0)for(var l in this.arr)a[l]=this.arr[l]/i;return new C(a)},C.prototype.negate=function(){var i=[];for(var a in this.arr)i[a]=-this.arr[a];return new C(i)},C.prototype.squareEuclideanDistance=function(i){var a,l=i.arr;if(!((a=this.arr)===null||a===void 0?void 0:a.length)||!(l==null?void 0:l.length))return 0;if(this.arr.length===l.length){var u=0;for(var E in this.arr)u+=Math.pow(this.arr[E]-i.arr[E],2);return u}},C.prototype.euclideanDistance=function(i){var a,l=i.arr;if(!((a=this.arr)===null||a===void 0?void 0:a.length)||!(l==null?void 0:l.length))return 0;if(this.arr.length===l.length){var u=0;for(var E in this.arr)u+=Math.pow(this.arr[E]-i.arr[E],2);return Math.sqrt(u)}else console.error("The two vectors are unequal in length.")},C.prototype.normalize=function(){var i=[],a=(0,Nn.clone)(this.arr);a.sort(function(P,j){return P-j});var l=a[a.length-1],u=a[0];for(var E in this.arr)i[E]=(this.arr[E]-u)/(l-u);return new C(i)},C.prototype.norm2=function(){var i;if(!((i=this.arr)===null||i===void 0?void 0:i.length))return 0;var a=0;for(var l in this.arr)a+=Math.pow(this.arr[l],2);return Math.sqrt(a)},C.prototype.dot=function(i){var a,l=i.arr;if(!((a=this.arr)===null||a===void 0?void 0:a.length)||!(l==null?void 0:l.length))return 0;if(this.arr.length===l.length){var u=0;for(var E in this.arr)u+=this.arr[E]*i.arr[E];return u}else console.error("The two vectors are unequal in length.")},C.prototype.equal=function(i){var a,l=i.arr;if(((a=this.arr)===null||a===void 0?void 0:a.length)!==(l==null?void 0:l.length))return!1;for(var u in this.arr)if(this.arr[u]!==l[u])return!1;return!0},C}(),Z_=Uk,Zk=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/,Vk=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/,h2=function(i,a){i===void 0&&(i=[]),a===void 0&&(a=100);var l={};i.forEach(function(E){!E.properties||Object.keys(E.properties).forEach(function(P){if(P==="id"||!"".concat(E.properties[P]).match(Zk)&&!"".concat(E.properties[P]).match(Vk)&&isNaN(Number(E.properties[P]))){l.hasOwnProperty(P)&&delete l[P];return}l.hasOwnProperty(P)?l[P]+=1:l[P]=1})});var u=Object.keys(l).sort(function(E,P){return l[P]-l[E]});return u.length<a?u:u.slice(0,a)},zk=function(i,a){return a.map(function(l){return i.hasOwnProperty(l)?i[l]:0})},YO=function(i){for(var a=h2(i),l=[],u=0;u<i.length;u++)l[u]=zk(i[u].properties,a);return l},_0=function(i,a){a===void 0&&(a=void 0);var l=[];return i.forEach(function(u){a===void 0&&l.push(u),u[a]!==void 0&&l.push(u[a])}),l},m2={getAllSortProperties:h2,getPropertyWeight:YO,getAllProperties:_0},n_;(function(C){C.EuclideanDistance="euclideanDistance"})(n_||(n_={}));var sS=function(i,a,l){var u=[];(a==null?void 0:a.length)?u=a:(i.forEach(function(P){u=u.concat(Object.keys(P))}),u=(0,Nn.uniq)(u));var E={};return u.forEach(function(P){var j=[];i.forEach(function(H){H[P]!==void 0&&H[P]!==""&&j.push(H[P])}),j.length&&!(l==null?void 0:l.includes(P))&&(E[P]=(0,Nn.uniq)(j))}),E},lS=function(i,a,l){var u=sS(i,a,l),E=[];if(!Object.keys(u).length)return E;var P=Object.values(u),j=P.every(function(H){return H.every(function(X){return typeof X=="number"})});return i.forEach(function(H,X){var ee=[];Object.keys(u).forEach(function(se){var Se=H[se],Re=u[se],Be=Re.findIndex(function(Tt){return Se===Tt}),Ye=[];if(j)Ye.push(Se);else for(var ht=0;ht<Re.length;ht++)ht===Be?Ye.push(1):Ye.push(0);ee=ee.concat(Ye)}),E[X]=ee}),E},qT=function(i,a,l,u){l===void 0&&(l=n_.EuclideanDistance);var E=0;switch(l){case n_.EuclideanDistance:E=new Z_(i).euclideanDistance(new Z_(a));break;default:break}return E},XO={getAllKeyValueMap:sS,oneHot:lS,getDistance:qT},JO=function(i,a,l,u){for(var E=a.length,P=2*u,j=0,H=0;H<E;H++)for(var X=i[H].clusterId,ee=0;ee<E;ee++){var se=i[ee].clusterId;if(X===se){var Se=a[H][ee]||0,Re=l[H]||0,Be=l[ee]||0;j+=Se-Re*Be/P}}return j*=1/P,j},eA=function(i,a){i===void 0&&(i=[]);for(var l=i.length,u=new Z_([]),E=0;E<l;E++)u=u.add(new Z_(a[E]));var P=u.avg(l);P.normalize();for(var j=0,E=0;E<l;E++){var H=new Z_(a[E]),X=H.squareEuclideanDistance(P);j+=X}var ee=[];i.forEach(function(){ee.push([])});for(var E=0;E<l;E++){var H=new Z_(a[E]);i[E].clusterInertial=0;for(var se=0;se<l;se++){if(E===se){ee[E][se]=0;continue}var Se=new Z_(a[se]);ee[E][se]=H.squareEuclideanDistance(Se),i[E].clusterInertial+=ee[E][se]}}for(var Re=0,Be=2*l*j,E=0;E<l;E++)for(var Ye=i[E].clusterId,se=0;se<l;se++){var ht=i[se].clusterId;if(!(E===se||Ye!==ht)){var Tt=i[E].clusterInertial*i[se].clusterInertial/Math.pow(Be,2)-ee[E][se]/Be;Re+=Tt}}return Number(Re.toFixed(4))},Wk=function(i,a,l,u,E,P,j,H,X){a===void 0&&(a=!1),l===void 0&&(l="weight"),u===void 0&&(u=1e-4),E===void 0&&(E=!1),P===void 0&&(P=void 0),j===void 0&&(j=[]),H===void 0&&(H=["id"]),X===void 0&&(X=1);var ee=i.nodes,se=ee===void 0?[]:ee,Se=i.edges,Re=Se===void 0?[]:Se,Be=[];if(E){se.forEach(function(hi,io){hi.properties=hi.properties||{},hi.originIndex=io});var Ye=[];se.every(function(hi){return hi.hasOwnProperty("nodeType")})&&(Ye=Array.from(new Set(se.map(function(hi){return hi.nodeType}))),se.forEach(function(hi){hi.properties.nodeType=Ye.findIndex(function(io){return io===hi.nodeType})}));var ht=_0(se,P);Be=lS(ht,j,H)}var Tt=1,Dt={},Kt={};se.forEach(function(hi,io){var oo=String(Tt++);hi.clusterId=oo,Dt[oo]={id:oo,nodes:[hi]},Kt[hi.id]={node:hi,idx:io}});var gn=ob(i,a),bn=[],mn={},kn=0;gn.forEach(function(hi,io){var oo=0,Ki=se[io].id;mn[Ki]={},hi.forEach(function(Ji,Ao){if(!!Ji){oo+=Ji;var ks=se[Ao].id;mn[Ki][ks]=Ji,kn+=Ji}}),bn.push(oo)}),kn/=2;for(var sr=Infinity,yr=Infinity,jr=0,zr=[],va={};;){E&&se.every(function(hi){return hi.hasOwnProperty("properties")})?sr=JO(se,gn,bn,kn)+eA(se,Be)*X:sr=JO(se,gn,bn,kn),jr===0&&(yr=sr,zr=se,va=Dt);var za=sr>0&&sr>yr&&sr-yr<u;if(sr>yr&&(zr=se.map(function(hi){return{node:hi,clusterId:hi.clusterId}}),va=(0,Nn.clone)(Dt),yr=sr),za||jr>100)break;jr++,Object.keys(Dt).forEach(function(hi){var io=0;Re.forEach(function(oo){var Ki=oo.source,Ji=oo.target,Ao=Kt[Ki].node.clusterId,ks=Kt[Ji].node.clusterId;(Ao===hi&&ks!==hi||ks===hi&&Ao!==hi)&&(io=io+(oo[l]||1))}),Dt[hi].sumTot=io}),se.forEach(function(hi,io){var oo=Dt[hi.clusterId],Ki=0,Ji,Ao=bn[io]/(2*kn),ks=0,Lo=oo.nodes;Lo.forEach(function(Wf){var cu=Kt[Wf.id].idx;ks+=gn[io][cu]||0});var Is=ks-oo.sumTot*Ao,Cl=Lo.filter(function(Wf){return Wf.id!==hi.id}),il=[];Cl.forEach(function(Wf,cu){il[cu]=Be[Wf.originIndex]});var Pl=eA(Cl,Be)*X,lc=mn[hi.id];if(Object.keys(lc).forEach(function(Wf){var cu=Kt[Wf].node,kf=cu.clusterId;if(kf!==hi.clusterId){var af=Dt[kf],lf=af.nodes;if(!(!lf||!lf.length)){var gu=0;lf.forEach(function(Oc){var au=Kt[Oc.id].idx;gu+=gn[io][au]||0});var Vc=gu-af.sumTot*Ao,Wc=lf.concat([hi]),Mu=[];Wc.forEach(function(Oc,au){Mu[au]=Be[Oc.originIndex]});var Rc=eA(Wc,Be)*X,Nl=Vc-Is;E&&(Nl=Vc+Rc-(Is+Pl)),Nl>Ki&&(Ki=Nl,Ji=af)}}}),Ki>0){Ji.nodes.push(hi);var Mc=hi.clusterId;hi.clusterId=Ji.id;var dp=oo.nodes.indexOf(hi);oo.nodes.splice(dp,1);var zf=0,gv=0;Re.forEach(function(Wf){var cu=Wf.source,kf=Wf.target,af=Kt[cu].node.clusterId,lf=Kt[kf].node.clusterId;(af===Ji.id&&lf!==Ji.id||lf===Ji.id&&af!==Ji.id)&&(zf=zf+(Wf[l]||1)),(af===Mc&&lf!==Mc||lf===Mc&&af!==Mc)&&(gv=gv+(Wf[l]||1))}),Ji.sumTot=zf,oo.sumTot=gv}})}var xi={},Di=0;Object.keys(va).forEach(function(hi){var io=va[hi];if(!io.nodes||!io.nodes.length){delete va[hi];return}var oo=String(Di+1);oo!==hi&&(io.id=oo,io.nodes=io.nodes.map(function(Ki){return{id:Ki.id,clusterId:oo}}),va[oo]=io,xi[hi]=oo,delete va[hi],Di++)}),zr.forEach(function(hi){var io=hi.node,oo=hi.clusterId;!io||(io.clusterId=oo,io.clusterId&&xi[io.clusterId]&&(io.clusterId=xi[io.clusterId]))});var Si=[],jo={};Re.forEach(function(hi){var io=hi.source,oo=hi.target,Ki=hi[l]||1,Ji=Kt[io].node.clusterId,Ao=Kt[oo].node.clusterId;if(!(!Ji||!Ao)){var ks="".concat(Ji,"---").concat(Ao);if(jo[ks])jo[ks].weight+=Ki,jo[ks].count++;else{var Lo={source:Ji,target:Ao,weight:Ki,count:1};jo[ks]=Lo,Si.push(Lo)}}});var ro=[];return Object.keys(va).forEach(function(hi){ro.push(va[hi])}),{clusters:ro,clusterEdges:Si}},tA=Wk,nA=function(i,a,l,u,E,P,j,H){return a===void 0&&(a=!1),l===void 0&&(l="weight"),u===void 0&&(u=1e-4),E===void 0&&(E=void 0),P===void 0&&(P=[]),j===void 0&&(j=["id"]),H===void 0&&(H=1),tA(i,a,l,u,!0,E,P,j,H)},oh=nA,rA=function(i,a){var l;a===void 0&&(a=1);for(var u=(0,Nn.clone)(i),E=u.nodes,P=E===void 0?[]:E,j=u.edges,H=j===void 0?[]:j,X=function(){var Se=aS({nodes:P,edges:H}),Re=Object.keys(Se);Re.sort(function(ht,Tt){var Dt,Kt;return((Dt=Se[ht])===null||Dt===void 0?void 0:Dt.degree)-((Kt=Se[Tt])===null||Kt===void 0?void 0:Kt.degree)});var Be=Re[0];if(!P.length||((l=Se[Be])===null||l===void 0?void 0:l.degree)>=a)return"break";var Ye=P.findIndex(function(ht){return ht.id===Be});P.splice(Ye,1),H=H.filter(function(ht){return!(ht.source===Be||ht.target===Be)})};;){var ee=X();if(ee==="break")break}return{nodes:P,edges:H}},Eh=rA,lb=function(i,a,l){var u=[];switch(i){case n_.EuclideanDistance:u=a[l];break;default:u=[];break}return u},Px=function(i,a,l,u,E,P){a===void 0&&(a=3),l===void 0&&(l=void 0),u===void 0&&(u=[]),E===void 0&&(E=["id"]),P===void 0&&(P=n_.EuclideanDistance);var j=i.nodes,H=j===void 0?[]:j,X=i.edges,ee=X===void 0?[]:X,se={clusters:[{id:"0",nodes:H}],clusterEdges:[]};if(P===n_.EuclideanDistance&&!H.every(function(oo){return oo.hasOwnProperty(l)}))return se;var Se=[],Re=[];if(P===n_.EuclideanDistance&&(Se=_0(H,l),Re=lS(Se,u,E)),!Re.length)return se;for(var Be=(0,Nn.uniq)(Re.map(function(oo){return oo.join("")})),Ye=Math.min(a,H.length,Be.length),ht=0;ht<H.length;ht++)H[ht].originIndex=ht;for(var Tt=[],Dt=[],Kt=[],ht=0;ht<Ye;ht++)if(ht===0){var gn=Math.floor(Math.random()*H.length);switch(P){case n_.EuclideanDistance:Tt[ht]=Re[gn];break;default:Tt[ht]=[];break}Dt.push(gn),Kt[ht]=[H[gn]],H[gn].clusterId=String(ht)}else{for(var bn=-Infinity,mn=0,kn=function(Ji){if(!Dt.includes(Ji)){for(var Ao=0,ks=0;ks<Tt.length;ks++){var Lo=0;switch(P){case n_.EuclideanDistance:Lo=qT(Re[H[Ji].originIndex],Tt[ks],P);break;default:break}Ao+=Lo}var Is=Ao/Tt.length;Is>bn&&!Tt.find(function(Cl){return(0,Nn.isEqual)(Cl,lb(P,Re,H[Ji].originIndex))})&&(bn=Is,mn=Ji)}},sr=0;sr<H.length;sr++)kn(sr);Tt[ht]=lb(P,Re,mn),Dt.push(mn),Kt[ht]=[H[mn]],H[mn].clusterId=String(ht)}for(var yr=0;;){for(var ht=0;ht<H.length;ht++){var jr=0,zr=Infinity;if(!(yr===0&&Dt.includes(ht))){for(var va=0;va<Tt.length;va++){var za=0;switch(P){case n_.EuclideanDistance:za=qT(Re[ht],Tt[va],P);break;default:break}za<zr&&(zr=za,jr=va)}if(H[ht].clusterId!==void 0)for(var xi=Kt[Number(H[ht].clusterId)].length-1;xi>=0;xi--)Kt[Number(H[ht].clusterId)][xi].id===H[ht].id&&Kt[Number(H[ht].clusterId)].splice(xi,1);H[ht].clusterId=String(jr),Kt[jr].push(H[ht])}}for(var Di=!1,ht=0;ht<Kt.length;ht++){for(var Si=Kt[ht],jo=new Z_([]),va=0;va<Si.length;va++)jo=jo.add(new Z_(Re[Si[va].originIndex]));var ro=jo.avg(Si.length);ro.equal(new Z_(Tt[ht]))||(Di=!0,Tt[ht]=ro.getArr())}if(yr++,H.every(function(oo){return oo.clusterId!==void 0})&&Di||yr>=1e3)break}var hi=[],io={};return ee.forEach(function(oo){var Ki,Ji,Ao=oo.source,ks=oo.target,Lo=(Ki=H.find(function(Pl){return Pl.id===Ao}))===null||Ki===void 0?void 0:Ki.clusterId,Is=(Ji=H.find(function(Pl){return Pl.id===ks}))===null||Ji===void 0?void 0:Ji.clusterId,Cl="".concat(Lo,"---").concat(Is);if(io[Cl])io[Cl].count++;else{var il={source:Lo,target:Is,count:1};io[Cl]=il,hi.push(il)}}),{clusters:Kt,clusterEdges:hi}},Hk=Px,aA=function(i,a){var l=new Z_(a),u=l.norm2(),E=new Z_(i),P=E.norm2(),j=l.dot(E),H=u*P,X=H?j/H:0;return X},iA=aA,Gk=function(i,a,l,u,E){i===void 0&&(i=[]),l===void 0&&(l=void 0),u===void 0&&(u=[]),E===void 0&&(E=[]);var P=(0,Nn.clone)(i.filter(function(Se){return Se.id!==a.id})),j=i.findIndex(function(Se){return Se.id===a.id}),H=_0(i,l),X=lS(H,u,E),ee=X[j],se=[];return P.forEach(function(Se,Re){if(Se.id!==a.id){var Be=X[Re],Ye=iA(Be,ee);se.push(Ye),Se.cosineSimilarity=Ye}}),P.sort(function(Se,Re){return Re.cosineSimilarity-Se.cosineSimilarity}),{allCosineSimilarity:se,similarNodes:P}},g2=Gk,cS=function(){function C(i){this.count=i.length,this.parent={};for(var a=0,l=i;a<l.length;a++){var u=l[a];this.parent[u]=u}}return C.prototype.find=function(i){for(;this.parent[i]!==i;)i=this.parent[i];return i},C.prototype.union=function(i,a){var l=this.find(i),u=this.find(a);l!==u&&(l<u?(this.parent[a]!==a&&this.union(this.parent[a],i),this.parent[a]=this.parent[i]):(this.parent[i]!==i&&this.union(this.parent[i],a),this.parent[i]=this.parent[a]))},C.prototype.connected=function(i,a){return this.find(i)===this.find(a)},C}(),uS=cS,cb=function(i,a){return i-a},_2=function(){function C(i){i===void 0&&(i=cb),this.compareFn=i,this.list=[]}return C.prototype.getLeft=function(i){return 2*i+1},C.prototype.getRight=function(i){return 2*i+2},C.prototype.getParent=function(i){return i===0?null:Math.floor((i-1)/2)},C.prototype.isEmpty=function(){return this.list.length<=0},C.prototype.top=function(){return this.isEmpty()?void 0:this.list[0]},C.prototype.delMin=function(){var i=this.top(),a=this.list.pop();return this.list.length>0&&(this.list[0]=a,this.moveDown(0)),i},C.prototype.insert=function(i){if(i!==null){this.list.push(i);var a=this.list.length-1;return this.moveUp(a),!0}return!1},C.prototype.moveUp=function(i){for(var a=this.getParent(i);i&&i>0&&this.compareFn(this.list[a],this.list[i])>0;){var l=this.list[a];this.list[a]=this.list[i],this.list[i]=l,i=a,a=this.getParent(i)}},C.prototype.moveDown=function(i){var a,l=i,u=this.getLeft(i),E=this.getRight(i),P=this.list.length;u!==null&&u<P&&this.compareFn(this.list[l],this.list[u])>0?l=u:E!==null&&E<P&&this.compareFn(this.list[l],this.list[E])>0&&(l=E),i!==l&&(a=[this.list[l],this.list[i]],this.list[i]=a[0],this.list[l]=a[1],this.moveDown(l))},C}(),oA=_2,$k=function(i,a){var l=[],u=i.nodes,E=u===void 0?[]:u,P=i.edges,j=P===void 0?[]:P;if(E.length===0)return l;var H=E[0],X=new Set;X.add(H);var ee=function(ht,Tt){return a?ht.weight-Tt.weight:0},se=new oA(ee);for(p2(H.id,j).forEach(function(Ye){se.insert(Ye)});!se.isEmpty();){var Se=se.delMin(),Re=Se.source,Be=Se.target;X.has(Re)&&X.has(Be)||(l.push(Se),X.has(Re)||(X.add(Re),p2(Re,j).forEach(function(Ye){se.insert(Ye)})),X.has(Be)||(X.add(Be),p2(Be,j).forEach(function(Ye){se.insert(Ye)})))}return l},sA=function(i,a){var l=[],u=i.nodes,E=u===void 0?[]:u,P=i.edges,j=P===void 0?[]:P;if(E.length===0)return l;var H=j.map(function(Re){return Re});a&&H.sort(function(Re,Be){return Re.weight-Be.weight});for(var X=new uS(E.map(function(Re){return Re.id}));H.length>0;){var ee=H.shift(),se=ee.source,Se=ee.target;X.connected(se,Se)||(l.push(ee),X.union(se,Se))}return l},QO=function(i,a,l){var u={prim:$k,kruskal:sA};return l?u[l](i,a):sA(i,a)},Kk=QO,Yk=function(i,a,l){typeof a!="number"&&(a=1e-6),typeof l!="number"&&(l=.85);for(var u=1,E=0,P=1e3,j=i.nodes,H=j===void 0?[]:j,X=i.edges,ee=X===void 0?[]:X,se=H.length,Se,Re={},Be={},Ye=0;Ye<se;++Ye){var ht=H[Ye],Tt=ht.id;Re[Tt]=1/se,Be[Tt]=1/se}for(var Dt=aS(i);P>0&&u>a;){E=0;for(var Ye=0;Ye<se;++Ye){var ht=H[Ye],Tt=ht.id;if(Se=0,Dt[ht.id].inDegree===0)Re[Tt]=0;else{for(var Kt=Hg(Tt,ee,"source"),gn=0;gn<Kt.length;++gn){var bn=Kt[gn],mn=Dt[bn].outDegree;mn>0&&(Se+=Be[bn]/mn)}Re[Tt]=l*Se,E+=Re[Tt]}}E=(1-E)/se,u=0;for(var Ye=0;Ye<se;++Ye){var ht=H[Ye],Tt=ht.id;Se=Re[Tt]+E,u+=Math.abs(Se-Be[Tt]),Be[Tt]=Se}P-=1}return Be},fS=Yk,y2=-1,b2=-1,lA="-1",z0="-1",Xk=-1,by="-1",qO=function(){function C(i,a,l,u){i===void 0&&(i=y2),a===void 0&&(a=b2),l===void 0&&(l=b2),u===void 0&&(u=lA),this.id=i,this.from=a,this.to=l,this.label=u}return C}(),Jk=function(){function C(i,a){i===void 0&&(i=b2),a===void 0&&(a=z0),this.id=i,this.label=a,this.edges=[],this.edgeMap={}}return C.prototype.addEdge=function(i){this.edges.push(i),this.edgeMap[i.id]=i},C}(),y0=function(){function C(i,a,l){i===void 0&&(i=b2),a===void 0&&(a=!0),l===void 0&&(l=!1),this.id=i,this.edgeIdAutoIncrease=a,this.edges=[],this.nodes=[],this.nodeMap={},this.edgeMap={},this.nodeLabelMap={},this.edgeLabelMap={},this.counter=0,this.directed=l}return C.prototype.getNodeNum=function(){return this.nodes.length},C.prototype.addNode=function(i,a){if(!this.nodeMap[i]){var l=new Jk(i,a);this.nodes.push(l),this.nodeMap[i]=l,this.nodeLabelMap[a]||(this.nodeLabelMap[a]=[]),this.nodeLabelMap[a].push(i)}},C.prototype.addEdge=function(i,a,l,u){if((this.edgeIdAutoIncrease||i===void 0)&&(i=this.counter++),!(this.nodeMap[a]&&this.nodeMap[l]&&this.nodeMap[l].edgeMap[i])){var E=new qO(i,a,l,u);if(this.edges.push(E),this.edgeMap[i]=E,this.nodeMap[a].addEdge(E),this.edgeLabelMap[u]||(this.edgeLabelMap[u]=[]),this.edgeLabelMap[u].push(E),!this.directed){var P=new qO(i,l,a,u);this.nodeMap[l].addEdge(P),this.edgeLabelMap[u].push(P)}}},C}(),ub=function(){function C(i,a,l,u,E){this.fromNode=i,this.toNode=a,this.nodeEdgeNodeLabel={nodeLabel1:l||z0,edgeLabel:u||lA,nodeLabel2:E||z0}}return C.prototype.equalTo=function(i){return this.fromNode===i.formNode&&this.toNode===i.toNode&&this.nodeEdgeNodeLabel===i.nodeEdgeNodeLabel},C.prototype.notEqualTo=function(i){return!this.equalTo(i)},C}(),x2=function(){function C(){this.rmpath=[],this.dfsEdgeList=[]}return C.prototype.equalTo=function(i){var a=this.dfsEdgeList.length,l=i.length;if(a!==l)return!1;for(var u=0;u<a;u++)if(this.dfsEdgeList[u]!==i[u])return!1;return!0},C.prototype.notEqualTo=function(i){return!this.equalTo(i)},C.prototype.pushBack=function(i,a,l,u,E){return this.dfsEdgeList.push(new ub(i,a,l,u,E)),this.dfsEdgeList},C.prototype.toGraph=function(i,a){i===void 0&&(i=Xk),a===void 0&&(a=!1);var l=new y0(i,!0,a);return this.dfsEdgeList.forEach(function(u){var E=u.fromNode,P=u.toNode,j=u.nodeEdgeNodeLabel,H=j.nodeLabel1,X=j.edgeLabel,ee=j.nodeLabel2;H!==z0&&l.addNode(E,H),ee!==z0&&l.addNode(P,ee),H!==z0&&ee!==H&&l.addEdge(void 0,E,P,X)}),l},C.prototype.buildRmpath=function(){this.rmpath=[];for(var i=void 0,a=this.dfsEdgeList.length,l=a-1;l>=0;l--){var u=this.dfsEdgeList[l],E=u.fromNode,P=u.toNode;E<P&&(i===void 0||P===i)&&(this.rmpath.push(l),i=E)}return this.rmpath},C.prototype.getNodeNum=function(){var i={};return this.dfsEdgeList.forEach(function(a){i[a.fromNode]||(i[a.fromNode]=!0),i[a.toNode]||(i[a.toNode]=!0)}),Object.keys(i).length},C}(),Rx=function(){function C(i){if(this.his={},this.nodesUsed={},this.edgesUsed={},this.edges=[],!!i){for(;i;){var a=i.edge;this.edges.push(a),this.nodesUsed[a.from]=1,this.nodesUsed[a.to]=1,this.edgesUsed[a.id]=1,i=i.preNode}this.edges=this.edges.reverse()}}return C.prototype.hasNode=function(i){return this.nodesUsed[i.id]===1},C.prototype.hasEdge=function(i){return this.edgesUsed[i.id]===1},C}(),Qk=function(){function C(i){var a=i.graphs,l=i.minSupport,u=l===void 0?2:l,E=i.minNodeNum,P=E===void 0?1:E,j=i.maxNodeNum,H=j===void 0?4:j,X=i.top,ee=X===void 0?10:X,se=i.directed,Se=se===void 0?!1:se,Re=i.verbose,Be=Re===void 0?!1:Re;this.graphs=a,this.dfsCode=new x2,this.support=0,this.frequentSize1Subgraphs=[],this.frequentSubgraphs=[],this.minSupport=u,this.top=ee,this.directed=Se,this.counter=0,this.maxNodeNum=H,this.minNodeNum=P,this.verbose=Be,this.maxNodeNum<this.minNodeNum&&(this.maxNodeNum=this.minNodeNum),this.reportDF=[]}return C.prototype.findForwardRootEdges=function(i,a){var l=this,u=[],E=i.nodeMap;return a.edges.forEach(function(P){(l.directed||a.label<=E[P.to].label)&&u.push(P)}),u},C.prototype.findBackwardEdge=function(i,a,l,u){if(!this.directed&&a===l)return null;for(var E=i.nodeMap,P=E[l.to],j=P.edges,H=j.length,X=0;X<H;X++){var ee=j[X];if(!(u.hasEdge(ee)||ee.to!==a.from)){if(this.directed){if(E[a.from].label<E[l.to].label||E[a.from].label===E[l.to].label&&a.label<=ee.label)return ee}else if(a.label<ee.label||a.label===ee.label&&E[a.to].label<=E[l.to].label)return ee}}return null},C.prototype.findForwardPureEdges=function(i,a,l,u){for(var E=[],P=a.to,j=i.nodeMap[P].edges,H=j.length,X=0;X<H;X++){var ee=j[X],se=i.nodeMap[ee.to];l<=se.label&&!u.hasNode(se)&&E.push(ee)}return E},C.prototype.findForwardRmpathEdges=function(i,a,l,u){for(var E=[],P=i.nodeMap,j=P[a.to].label,H=P[a.from],X=H.edges,ee=X.length,se=0;se<ee;se++){var Se=X[se],Re=P[Se.to].label;a.to===Se.to||l>Re||u.hasNode(P[Se.to])||(a.label<Se.label||a.label===Se.label&&j<=Re)&&E.push(Se)}return E},C.prototype.getSupport=function(i){var a={};return i.forEach(function(l){a[l.graphId]||(a[l.graphId]=!0)}),Object.keys(a).length},C.prototype.findMinLabel=function(i){var a=void 0;return Object.keys(i).forEach(function(l){var u=i[l],E=u.nodeLabel1,P=u.edgeLabel,j=u.nodeLabel2;if(!a){a={nodeLabel1:E,edgeLabel:P,nodeLabel2:j};return}(E<a.nodeLabel1||E===a.nodeLabel1&&P<a.edgeLabel||E===a.nodeLabel1&&P===a.edgeLabel&&j<a.nodeLabel2)&&(a={nodeLabel1:E,edgeLabel:P,nodeLabel2:j})}),a},C.prototype.isMin=function(){var i=this,a=this.dfsCode;if(this.verbose&&console.log("isMin checking",a),a.dfsEdgeList.length===1)return!0;var l=this.directed,u=a.toGraph(Xk,l),E=u.nodeMap,P=new x2,j={};u.nodes.forEach(function(se){var Se=i.findForwardRootEdges(u,se);Se.forEach(function(Re){var Be=E[Re.to],Ye="".concat(se.label,"-").concat(Re.label,"-").concat(Be.label);j[Ye]||(j[Ye]={projected:[],nodeLabel1:se.label,edgeLabel:Re.label,nodeLabel2:Be.label});var ht={graphId:u.id,edge:Re,preNode:null};j[Ye].projected.push(ht)})});var H=this.findMinLabel(j);if(!!H){P.dfsEdgeList.push(new ub(0,1,H.nodeLabel1,H.edgeLabel,H.nodeLabel2));var X=function se(Se){for(var Re=P.buildRmpath(),Be=P.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,Ye=P.dfsEdgeList[Re[0]].toNode,ht={},Tt=!1,Dt=0,Kt=l?-1:0,gn=function(jo){if(Tt)return"break";Se.forEach(function(ro){var hi=new Rx(ro),io=i.findBackwardEdge(u,hi.edges[Re[jo]],hi.edges[Re[0]],hi);io&&(ht[io.label]||(ht[io.label]={projected:[],edgeLabel:io.label}),ht[io.label].projected.push({graphId:u.id,edge:ht,preNode:ro}),Dt=P.dfsEdgeList[Re[jo]].fromNode,Tt=!0)})},bn=Re.length-1;bn>Kt;bn--){var mn=gn(bn);if(mn==="break")break}if(Tt){var kn=i.findMinLabel(ht);P.dfsEdgeList.push(new ub(Ye,Dt,z0,kn.edgeLabel,z0));var sr=P.dfsEdgeList.length-1;return i.dfsCode.dfsEdgeList[sr]!==P.dfsEdgeList[sr]?!1:se(ht[kn.edgeLabel].projected)}var yr={};Tt=!1;var jr=0;Se.forEach(function(Si){var jo=new Rx(Si),ro=i.findForwardPureEdges(u,jo.edges[Re[0]],Be,jo);ro.length>0&&(Tt=!0,jr=Ye,ro.forEach(function(hi){var io="".concat(hi.label,"-").concat(E[hi.to].label);yr[io]||(yr[io]={projected:[],edgeLabel:hi.label,nodeLabel2:E[hi.to].label}),yr[io].projected.push({graphId:u.id,edge:hi,preNode:Si})}))});for(var zr=Re.length,va=function(jo){if(Tt)return"break";var ro=Re[jo];Se.forEach(function(hi){var io=new Rx(hi),oo=i.findForwardRmpathEdges(u,io.edges[ro],Be,io);oo.length>0&&(Tt=!0,jr=P.dfsEdgeList[ro].fromNode,oo.forEach(function(Ki){var Ji="".concat(Ki.label,"-").concat(E[Ki.to].label);yr[Ji]||(yr[Ji]={projected:[],edgeLabel:Ki.label,nodeLabel2:E[Ki.to].label}),yr[Ji].projected.push({graphId:u.id,edge:Ki,preNode:hi})}))})},bn=0;bn<zr;bn++){var za=va(bn);if(za==="break")break}if(!Tt)return!0;var xi=i.findMinLabel(yr);P.dfsEdgeList.push(new ub(jr,Ye+1,z0,xi.edgeLabel,xi.nodeLabel2));var Di=P.dfsEdgeList.length-1;return a.dfsEdgeList[Di]!==P.dfsEdgeList[Di]?!1:se(yr["".concat(xi.edgeLabel,"-").concat(xi.nodeLabel2)].projected)},ee="".concat(H.nodeLabel1,"-").concat(H.edgeLabel,"-").concat(H.nodeLabel2);return X(j[ee].projected)}},C.prototype.report=function(){if(!(this.dfsCode.getNodeNum()<this.minNodeNum)){this.counter++;var i=this.dfsCode.toGraph(this.counter,this.directed);this.frequentSubgraphs.push((0,Nn.clone)(i))}},C.prototype.subGraphMining=function(i){var a=this,l=this.getSupport(i);if(!(l<this.minSupport)&&!!this.isMin()){this.report();var u=this.dfsCode.getNodeNum(),E=this.dfsCode.buildRmpath(),P=this.dfsCode.dfsEdgeList[E[0]].toNode,j=this.dfsCode.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,H={},X={};i.forEach(function(ee){for(var se=a.graphs[ee.graphId],Se=se.nodeMap,Re=new Rx(ee),Be=E.length-1;Be>=0;Be--){var Ye=a.findBackwardEdge(se,Re.edges[E[Be]],Re.edges[E[0]],Re);if(Ye){var ht="".concat(a.dfsCode.dfsEdgeList[E[Be]].fromNode,"-").concat(Ye.label);X[ht]||(X[ht]={projected:[],toNodeId:a.dfsCode.dfsEdgeList[E[Be]].fromNode,edgeLabel:Ye.label}),X[ht].projected.push({graphId:ee.graphId,edge:Ye,preNode:ee})}}if(!(u>=a.maxNodeNum)){var Tt=a.findForwardPureEdges(se,Re.edges[E[0]],j,Re);Tt.forEach(function(Kt){var gn="".concat(P,"-").concat(Kt.label,"-").concat(Se[Kt.to].label);H[gn]||(H[gn]={projected:[],fromNodeId:P,edgeLabel:Kt.label,nodeLabel2:Se[Kt.to].label}),H[gn].projected.push({graphId:ee.graphId,edge:Kt,preNode:ee})});for(var Dt=function(gn){var bn=a.findForwardRmpathEdges(se,Re.edges[E[gn]],j,Re);bn.forEach(function(mn){var kn="".concat(a.dfsCode.dfsEdgeList[E[gn]].fromNode,"-").concat(mn.label,"-").concat(Se[mn.to].label);H[kn]||(H[kn]={projected:[],fromNodeId:a.dfsCode.dfsEdgeList[E[gn]].fromNode,edgeLabel:mn.label,nodeLabel2:Se[mn.to].label}),H[kn].projected.push({graphId:ee.graphId,edge:mn,preNode:ee})})},Be=0;Be<E.length;Be++)Dt(Be)}}),Object.keys(X).forEach(function(ee){var se=X[ee],Se=se.toNodeId,Re=se.edgeLabel;a.dfsCode.dfsEdgeList.push(new ub(P,Se,"-1",Re,"-1")),a.subGraphMining(X[ee].projected),a.dfsCode.dfsEdgeList.pop()}),Object.keys(H).forEach(function(ee){var se=H[ee],Se=se.fromNodeId,Re=se.edgeLabel,Be=se.nodeLabel2;a.dfsCode.dfsEdgeList.push(new ub(Se,P+1,z0,Re,Be)),a.subGraphMining(H[ee].projected),a.dfsCode.dfsEdgeList.pop()})}},C.prototype.generate1EdgeFrequentSubGraphs=function(){var i=this.graphs,a=this.directed,l=this.minSupport,u=this.frequentSize1Subgraphs,E={},P={},j={},H={};return Object.keys(i).forEach(function(X){var ee=i[X],se=ee.nodeMap;ee.nodes.forEach(function(Se,Re){var Be=Se.label,Ye="".concat(X,"-").concat(Be);if(!j[Ye]){var ht=E[Be]||0;ht++,E[Be]=ht}j[Ye]={graphKey:X,label:Be},Se.edges.forEach(function(Tt){var Dt=Be,Kt=se[Tt.to].label;if(!a&&Dt>Kt){var gn=Kt;Kt=Dt,Dt=gn}var bn=Tt.label,mn="".concat(X,"-").concat(Dt,"-").concat(bn,"-").concat(Kt),kn="".concat(Dt,"-").concat(bn,"-").concat(Kt);if(!P[kn]){var sr=P[kn]||0;sr++,P[kn]=sr}H[mn]={graphId:X,nodeLabel1:Dt,edgeLabel:bn,nodeLabel2:Kt}})})}),Object.keys(E).forEach(function(X){var ee=E[X];if(!(ee<l)){var se={nodes:[],edges:[]};se.nodes.push({id:"0",label:X}),u.push(se)}}),u},C.prototype.run=function(){var i=this;if(this.frequentSize1Subgraphs=this.generate1EdgeFrequentSubGraphs(),!(this.maxNodeNum<2)){var a=this.graphs,l=this.directed,u={};Object.keys(a).forEach(function(E){var P=a[E],j=P.nodeMap;P.nodes.forEach(function(H){var X=i.findForwardRootEdges(P,H);X.forEach(function(ee){var se=j[ee.to],Se="".concat(H.label,"-").concat(ee.label,"-").concat(se.label);u[Se]||(u[Se]={projected:[],nodeLabel1:H.label,edgeLabel:ee.label,nodeLabel2:se.label});var Re={graphId:E,edge:ee,preNode:null};u[Se].projected.push(Re)})})}),Object.keys(u).forEach(function(E){var P=u[E],j=P.projected,H=P.nodeLabel1,X=P.edgeLabel,ee=P.nodeLabel2;i.dfsCode.dfsEdgeList.push(new ub(0,1,H,X,ee)),i.subGraphMining(j),i.dfsCode.dfsEdgeList.pop()})}},C}(),cA=function(i,a,l,u){var E={};return Object.keys(i).forEach(function(P,j){var H=i[P],X=new y0(j,!0,a),ee={};H.nodes.forEach(function(se,Se){X.addNode(Se,se[l]),ee[se.id]=Se}),H.edges.forEach(function(se,Se){var Re=ee[se.source],Be=ee[se.target];X.addEdge(-1,Re,Be,se[u])}),X&&X.getNodeNum()&&(E[X.id]=X)}),E},qy=function(i,a,l){var u=[];return i.forEach(function(E){var P={nodes:[],edges:[]};E.nodes.forEach(function(j){var H;P.nodes.push((H={id:"".concat(j.id)},H[a]=j.label,H))}),E.edges.forEach(function(j){var H;P.edges.push((H={source:"".concat(j.from),target:"".concat(j.to)},H[l]=j.label,H))}),u.push(P)}),u},fb="cluster",eI=function(i){var a=i.graphs,l=i.directed,u=l===void 0?!1:l,E=i.nodeLabelProp,P=E===void 0?fb:E,j=i.edgeLabelProp,H=j===void 0?fb:j,X=cA(a,u,P,H),ee=i.minSupport,se=i.maxNodeNum,Se=i.minNodeNum,Re=i.verbose,Be=i.top,Ye={graphs:X,minSupport:ee,maxNodeNum:se,minNodeNum:Se,top:Be,verbose:Re,directed:u},ht=new Qk(Ye);ht.run();var Tt=qy(ht.frequentSubgraphs,P,H);return Tt},bg=eI,E2=function(i,a,l,u){l===void 0&&(l="cluster"),u===void 0&&(u=2);var E=[],P=i.nodes;return a.forEach(function(j,H){E.push(Ox(P,j,H,l,u))}),E},Ox=function(i,a,l,u,E){var P=[l],j=[],H={};return a.forEach(function(X,ee){if(X<=E&&l!==ee){P.push(ee),j.push(i[ee]);var se=i[ee][u];H[se]?(H[se].count++,H[se].dists.push(X)):H[se]={count:1,dists:[X]}}}),Object.keys(H).forEach(function(X){H[X].dists=H[X].dists.sort(function(ee,se){return ee-se})}),{nodeIdx:l,nodeId:i[l].id,nodeIdxs:P,neighbors:j,neighborNum:P.length-1,nodeLabelCountMap:H}},S2=function(i,a,l,u,E){var P=Math.ceil(l/a),j={},H=0;return u.forEach(function(X,ee){for(var se=0,Se=0,Re=X.nodeIdxs,Be=X.neighborNum-1;se<P;){for(var Ye=Re[1+Math.floor(Math.random()*Be)],ht=0;(j["".concat(ee,"-").concat(Ye)]||j["".concat(Ye,"-").concat(ee)])&&(Ye=Math.floor(Math.random()*a),ht++,!(ht>2*a)););if(ht<2*a&&(j["".concat(ee,"-").concat(Ye)]={start:ee,end:Ye,distance:E[ee][Ye]},se++,H++,H>=l))return j;if(Se++,Se>2*a)break}if(se<P){var Tt=P-se;P=(P+Tt)/(a-ee-1)}}),j},y_=function(i,a,l,u){var E=l.nodes;return u||(u={}),Object.keys(i).forEach(function(P){var j,H;if(!(u&&u[P])){u[P]={nodes:[],edges:[]};var X=i[P],ee=(j=a[X.start])===null||j===void 0?void 0:j.nodeIdxs,se=(H=a[X.end])===null||H===void 0?void 0:H.nodeIdxs;if(!(!ee||!se)){var Se=new Set(se),Re=ee.filter(function(Dt){return Se.has(Dt)});if(!(!Re||!Re.length)){for(var Be={},Ye=Re.length,ht=0;ht<Ye;ht++){var Tt=E[Re[ht]];u[P].nodes.push(Tt),Be[Tt.id]=!0}l.edges.forEach(function(Dt){Be[Dt.source]&&Be[Dt.target]&&u[P].edges.push(Dt)})}}}}),u},xg=function(i,a,l,u){var E,P,j={};i.nodes.forEach(function(X){j[X.id]=X});var H=0;return!((E=a==null?void 0:a.edges)===null||E===void 0?void 0:E.length)||((P=a==null?void 0:a.nodes)===null||P===void 0?void 0:P.length)<2?0:(i.edges.forEach(function(X){var ee=j[X.source][l],se=j[X.target][l],Se=a==null?void 0:a.nodes[0][l],Re=a==null?void 0:a.nodes[1][l],Be=a==null?void 0:a.edges[0][u];X[u]===Be&&(ee===Se&&se===Re||ee===Re&&se===Se)&&H++}),H)},tI=function(i,a,l){for(var u=Infinity,E=0,P=function(X){var ee=i[X],se=Object.keys(ee).sort(function(Dt,Kt){return ee[Dt]-ee[Kt]}),Se=10,Re=[];se.forEach(function(Dt,Kt){Re[Kt%Se]||(Re[Kt%Se]={graphs:[],totalCount:0,aveCount:0}),Re[Kt%Se].graphs.push(Dt),Re[Kt%Se].totalCount+=ee[Dt]});var Be=0,Ye=[];Re.forEach(function(Dt){var Kt=Dt.totalCount/Dt.graphs.length;Dt.aveCount=Kt,Ye.push(Kt);var gn=0,bn=Dt.length;Dt.graphs.forEach(function(mn,kn){var sr=ee[mn];Dt.graphs.forEach(function(yr,jr){kn!==jr&&(gn+=Math.abs(sr-ee[yr]))})}),gn/=bn*(bn-1)/2,Be+=gn}),Be/=Re.length;var ht=0;Ye.forEach(function(Dt,Kt){Ye.forEach(function(gn,bn){Kt!==bn&&(ht+=Math.abs(Dt-gn))}),ht/=Ye.length*(Ye.length-1)/2});var Tt=ht-Be;u<Tt&&(u=Tt,E=X)},j=0;j<a;j++)P(j);return{structure:l[E],structureCountMap:i[E]}},db=function(i,a){var l={},u={};return i.forEach(function(E,P){l[E.id]={idx:P,node:E,degree:0,inDegree:0,outDegree:0};var j=E[a];u[j]||(u[j]=[]),u[j].push(E)}),{nodeMap:l,nodeLabelMap:u}},qk=function(i,a,l){var u={},E={};return i.forEach(function(P,j){u["".concat(Ik)]={idx:j,edge:P};var H=P[a];E[H]||(E[H]=[]),E[H].push(P);var X=l[P.source];X&&(X.degree++,X.outDegree++);var ee=l[P.target];ee&&(ee.degree++,ee.inDegree++)}),{edgeMap:u,edgeLabelMap:E}},eP=function(i,a,l){var u=a.length,E={};return a.forEach(function(P,j){for(var H=l?0:j+1,X=i[j].id,ee=H;ee<u;ee++)if(j!==ee){var se=i[ee].id,Se=P[ee];E["".concat(X,"-").concat(se)]=Se,l||(E["".concat(se,"-").concat(X)]=Se)}}),E},nI=function(i,a,l,u,E,P,j,H,X,ee,se){var Se,Re="".concat(a.id,"-").concat(l.id);if(ee&&ee[Re])return ee[Re];var Be=se?se[Re]:void 0;if(!Be){var Ye=(Se={},Se[Re]={start:u[a.id].idx,end:u[l.id].idx,distance:E},Se);se=y_(Ye,P,i,se),Be=se[Re]}return xg(Be,j,H,X)},tP=function(i,a,l,u){var E,P,j,H=(E=i[a])===null||E===void 0?void 0:E.degree,X=(P=i[a])===null||P===void 0?void 0:P.inDegree,ee=(j=i[a])===null||j===void 0?void 0:j.outDegree;return i[a]===void 0&&(H=Infinity,X=Infinity,ee=Infinity,u[a].forEach(function(se){var Se=l[se.id].degree;H>Se&&(H=Se);var Re=l[se.id].inDegree;X>Re&&(X=Re);var Be=l[se.id].outDegree;ee>Be&&(ee=Be)}),i[a]={degree:H,inDegree:X,outDegree:ee}),{minPatternNodeLabelDegree:H,minPatternNodeLabelInDegree:X,minPatternNodeLabelOutDegree:ee}},eg=function(i,a,l,u,E,P,j){var H;if(l===void 0&&(l=!1),P===void 0&&(P="cluster"),j===void 0&&(j="cluster"),!(!i||!i.nodes)){var X=i.nodes.length;if(!!X){var ee=sb(i,l),se=sb(a,l),Se=eP(i.nodes,ee,l),Re=eP(a.nodes,se,l),Be=db(i.nodes,P),Ye=Be.nodeMap,ht=Be.nodeLabelMap,Tt=db(a.nodes,P),Dt=Tt.nodeMap,Kt=Tt.nodeLabelMap;qk(i.edges,j,Ye);var gn=qk(a.edges,j,Dt).edgeLabelMap,bn=[];se==null||se.forEach(function(gu){bn=bn.concat(gu)}),E||(E=Math.max.apply(Math,(0,em.__spreadArray)((0,em.__spreadArray)([],bn,!1),[2],!1))),u||(u=E);var mn=E2(i,ee,P,u),kn=E2(a,se,P,u),sr=Math.min(100,X*(X-1)/2),yr=S2(u,X,sr,mn,ee),jr=y_(yr,mn,i),zr=10,va=1,za=1,xi=4,Di={graphs:jr,nodeLabelProp:P,edgeLabelProp:j,minSupport:va,minNodeNum:za,maxNodeNum:xi,directed:l},Si=bg(Di).slice(0,zr),jo=Si.length,ro=[];Si.forEach(function(gu,Vc){ro[Vc]={},Object.keys(jr).forEach(function(Wc){var Mu=jr[Wc],Rc=xg(Mu,gu,P,j);ro[Vc][Wc]=Rc})});var hi=tI(ro,jo,Si),io=hi.structure,oo=hi.structureCountMap,Ki=a.nodes[0],Ji=[],Ao=(H=a.nodes[0])===null||H===void 0?void 0:H[P],ks=-Infinity;a.nodes.forEach(function(gu){var Vc=gu[P],Wc=ht[Vc];(Wc==null?void 0:Wc.length)>ks&&(ks=Wc.length,Ji=Wc,Ao=Vc,Ki=gu)});var Lo={},Is={},Cl={},il={},Pl={},lc={};Object.keys(Kt).forEach(function(gu,Vc){Pl[gu]=[],l&&(lc[gu]=[]);var Wc=-Infinity,Mu=Kt[gu],Rc={};Mu.forEach(function(ju){var Gf=Re["".concat(Ki.id,"-").concat(ju.id)];if(Gf&&Pl[gu].push(Gf),Wc<Gf&&(Wc=Gf),Rc["".concat(Ki.id,"-").concat(ju.id)]={start:0,end:Dt[ju.id].idx,distance:Gf},l){var ip=Re["".concat(ju.id,"-").concat(Ki.id)];ip&&lc[gu].push(ip)}}),Pl[gu]=Pl[gu].sort(function(ju,Gf){return ju-Gf}),l&&(lc[gu]=lc[gu].sort(function(ju,Gf){return ju-Gf})),Is=y_(Rc,kn,a,Is);var Nl=[];if(Object.keys(Rc).forEach(function(ju){if(Cl[ju]){Nl.push(Cl[ju]);return}var Gf=Is[ju];Cl[ju]=xg(Gf,io,P,j),Nl.push(Cl[ju])}),Nl=Nl.sort(function(ju,Gf){return Gf-ju}),il["".concat(Ki.id,"-").concat(gu)]=Nl,gu!==Ao)for(var Oc=(Ji==null?void 0:Ji.length)||0,au=function(Gf){var ip=Ji[Gf],ph=mn[Ye[ip.id].idx],Qp=ph.nodeLabelCountMap[gu],Zh=Kt[gu].length;if(!Qp||Qp.count<Zh)return Ji.splice(Gf,1),"continue";for(var sg=!1,qv=0;qv<Zh;qv++)if(Qp.dists[qv]>Pl[gu][qv]){sg=!0;break}if(sg)return Ji.splice(Gf,1),"continue";var Cm={};ph.neighbors.forEach(function(ov){var qf=Se["".concat(ip.id,"-").concat(ov.id)];Cm["".concat(ip.id,"-").concat(ov.id)]={start:Ye[ip.id].idx,end:Ye[ov.id].idx,distance:qf}}),jr=y_(Cm,mn,i,jr);var Rh=[];Object.keys(Cm).forEach(function(ov){if(oo[ov]){Rh.push(oo[ov]);return}var qf=jr[ov];oo[ov]=xg(qf,io,P,j),Rh.push(oo[ov])}),Rh=Rh.sort(function(ov,qf){return qf-ov});for(var xv=!1,qv=0;qv<Zh;qv++)if(Rh[qv]<Nl[qv]){xv=!0;break}if(xv)return Ji.splice(Gf,1),"continue"},ef=Oc-1;ef>=0;ef--)au(ef)});var Mc=[];Ji==null||Ji.forEach(function(gu){for(var Vc=Ye[gu.id].idx,Wc=Ox(i.nodes,ee[Vc],Vc,P,E),Mu=Wc.neighbors,Rc=Mu.length,Nl=!1,Oc=Rc-1;Oc>=0;Oc--){if(Mu.length+1<a.nodes.length){Nl=!0;return}var au=Mu[Oc],ef=au[P];if(!Kt[ef]||!Kt[ef].length){Mu.splice(Oc,1);continue}if(!Pl[ef]||!Pl[ef].length){Mu.splice(Oc,1);continue}var ju="".concat(gu.id,"-").concat(au.id),Gf=Se[ju],ip=Pl[ef].length-1,ph=Pl[ef][ip];if(Gf>ph){Mu.splice(Oc,1);continue}if(l){var Qp="".concat(au.id,"-").concat(gu.id),Zh=Se[Qp];ip=lc[ef].length-1;var sg=lc[ef][ip];if(Zh>sg){Mu.splice(Oc,1);continue}}var qv=oo[ju]?oo[ju]:nI(i,gu,au,Ye,Gf,mn,io,P,j,oo,jr),Cm="".concat(Ki.id,"-").concat(ef),Rh=il[Cm][il[Cm].length-1];if(qv<Rh){Mu.splice(Oc,1);continue}var xv=tP(Lo,ef,Dt,Kt),ov=xv.minPatternNodeLabelDegree,qf=xv.minPatternNodeLabelInDegree,Up=xv.minPatternNodeLabelOutDegree;if(Ye[au.id].degree<ov){Mu.splice(Oc,1);continue}}Nl||Mc.push({nodes:[gu].concat(Mu)})});var dp=yy(a,Ki.id,!1).length,zf={};l?(Object.keys(dp).forEach(function(gu){var Vc=Dt[gu].node[P];zf[Vc]?zf[Vc].push(dp[gu]):zf[Vc]=[dp[gu]]}),Object.keys(zf).forEach(function(gu){zf[gu].sort(function(Vc,Wc){return Vc-Wc})})):zf=Pl;for(var gv=Mc.length,Wf=function(Vc){var Wc=Mc[Vc],Mu=Wc.nodes[0],Rc={},Nl={};Wc.nodes.forEach(function(qp,$m){Nl[qp.id]={idx:$m,node:qp,degree:0,inDegree:0,outDegree:0};var zh=qp[P];Rc[zh]?Rc[zh]++:Rc[zh]=1});var Oc=[],au={};i.edges.forEach(function(qp){Nl[qp.source]&&Nl[qp.target]&&(Oc.push(qp),au[qp[j]]?au[qp[j]]++:au[qp[j]]=1,Nl[qp.source].degree++,Nl[qp.target].degree++,Nl[qp.source].outDegree++,Nl[qp.target].inDegree++)});for(var ef=Object.keys(gn).length,ju=!1,Gf=0;Gf<ef;Gf++){var ip=Object.keys(gn)[Gf];if(!au[ip]||au[ip]<gn[ip].length){ju=!0;break}}if(ju)return Mc.splice(Vc,1),"continue";var ph=Oc.length;if(ph<a.edges.length)return Mc.splice(Vc,1),"break";for(var Qp=!1,Zh=function($m){var zh=Oc[$m],Xg=zh[j],J_=gn[Xg];if(!J_||!J_.length)return au[Xg]--,J_&&au[Xg]<J_.length?(Qp=!0,"break"):(Oc.splice($m,1),Nl[zh.source].degree--,Nl[zh.target].degree--,Nl[zh.source].outDegree--,Nl[zh.target].inDegree--,"continue");var Dw=Nl[zh.source].node[P],QR=Nl[zh.target].node[P],ZM=!1;if(J_.forEach(function(qR){var VM=Dt[qR.source].node,zM=Dt[qR.target].node;VM[P]===Dw&&zM[P]===QR&&(ZM=!0),!l&&VM[P]===QR&&zM[P]===Dw&&(ZM=!0)}),!ZM)return au[Xg]--,J_&&au[Xg]<J_.length?(Qp=!0,"break"):(Oc.splice($m,1),Nl[zh.source].degree--,Nl[zh.target].degree--,Nl[zh.source].outDegree--,Nl[zh.target].inDegree--,"continue")},Gf=ph-1;Gf>=0;Gf--){var sg=Zh(Gf);if(sg==="break")break}if(Qp)return Mc.splice(Vc,1),"continue";Wc.edges=Oc;var qv=yy(Wc,Wc.nodes[0].id,!1).length;if(Object.keys(qv).reverse().forEach(function(qp){if(!(qp===Wc.nodes[0].id||Qp)){if(qv[qp]===Infinity){var $m=Nl[qp].node[P];if(Rc[$m]--,Rc[$m]<Kt[$m].length){Qp=!0;return}var zh=Wc.nodes.indexOf(Nl[qp].node);Wc.nodes.splice(zh,1),Nl[qp]=void 0;return}var Xg=Ye[qp].node[P];if(!zf[Xg]||!zf[Xg].length||qv[qp]>zf[Xg][zf[Xg].length-1]){var $m=Nl[qp].node[P];if(Rc[$m]--,Rc[$m]<Kt[$m].length){Qp=!0;return}var zh=Wc.nodes.indexOf(Nl[qp].node);Wc.nodes.splice(zh,1),Nl[qp]=void 0}}}),Qp)return Mc.splice(Vc,1),"continue";for(var Cm=!0,Rh=0;Cm&&!Qp;){Cm=!1;var xv=l?Nl[Mu.id].degree<Dt[Ki.id].degree||Nl[Mu.id].inDegree<Dt[Ki.id].inDegree||Nl[Mu.id].outDegree<Dt[Ki.id].outDegree:Nl[Mu.id].degree<Dt[Ki.id].degree;if(xv){Qp=!0;break}if(Rc[Mu[P]]<Kt[Mu[P]].length){Qp=!0;break}for(var ov=Wc.nodes.length,qf=ov-1;qf>=0;qf--){var Up=Wc.nodes[qf],eh=Nl[Up.id].degree,lg=Nl[Up.id].inDegree,Ld=Nl[Up.id].outDegree,md=Up[P],mf=tP(Lo,md,Dt,Kt),Av=mf.minPatternNodeLabelDegree,Vh=mf.minPatternNodeLabelInDegree,Gv=mf.minPatternNodeLabelOutDegree,cg=l?eh<Av||lg<Vh||Ld<Gv:eh<Av;if(cg){if(Rc[Up[P]]--,Rc[Up[P]]<Kt[Up[P]].length){Qp=!0;break}Wc.nodes.splice(qf,1),Nl[Up.id]=void 0,Cm=!0}}if(Qp||!Cm&&Rh!==0)break;ph=Oc.length;for(var Py=ph-1;Py>=0;Py--){var vh=Oc[Py];if(!Nl[vh.source]||!Nl[vh.target]){Oc.splice(Py,1);var X_=vh[j];if(au[X_]--,Nl[vh.source]&&(Nl[vh.source].degree--,Nl[vh.source].outDegree--),Nl[vh.target]&&(Nl[vh.target].degree--,Nl[vh.target].inDegree--),gn[X_]&&au[X_]<gn[X_].length){Qp=!0;break}Cm=!0}}Rh++}if(Qp||Qp||Wc.nodes.length<a.nodes.length||Oc.length<a.edges.length)return Mc.splice(Vc,1),"continue"},cu=gv-1;cu>=0;cu--){var kf=Wf(cu);if(kf==="break")break}for(var af=Mc.length,lf=function(Vc){var Wc=Mc[Vc],Mu={};Wc.edges.forEach(function(Oc){var au="".concat(Oc.source,"-").concat(Oc.target,"-").concat(Oc.label);Mu[au]?Mu[au]++:Mu[au]=1});for(var Rc=function(au){var ef=Mc[au],ju={};ef.edges.forEach(function(ip){var ph="".concat(ip.source,"-").concat(ip.target,"-").concat(ip.label);ju[ph]?ju[ph]++:ju[ph]=1});var Gf=!0;Object.keys(ju).length!==Object.keys(Mu).length?Gf=!1:Object.keys(Mu).forEach(function(ip){ju[ip]!==Mu[ip]&&(Gf=!1)}),Gf&&Mc.splice(au,1)},Nl=af-1;Nl>Vc;Nl--)Rc(Nl);af=Mc.length},cu=0;cu<=af-1;cu++)lf(cu);return Mc}}},nP=eg,rI=function(){function C(i){i===void 0&&(i=10),this.linkedList=new Rk,this.maxStep=i}return Object.defineProperty(C.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),C.prototype.isEmpty=function(){return!this.linkedList.head},C.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},C.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},C.prototype.push=function(i){this.linkedList.prepend(i),this.length>this.maxStep&&this.linkedList.deleteTail()},C.prototype.pop=function(){var i=this.linkedList.deleteHead();return i?i.value:null},C.prototype.toArray=function(){return this.linkedList.toArray().map(function(i){return i.value})},C.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},C}(),W0=rI,aI=XT,uA={getAdjMatrix:ob,breadthFirstSearch:HT,connectedComponent:Qy,getDegree:aS,getInDegree:Nk,getOutDegree:iS,detectCycle:XT,detectDirectedCycle:aI,detectAllCycles:YT,detectAllDirectedCycle:v2,detectAllUndirectedCycle:oS,depthFirstSearch:kx,dijkstra:yy,findAllPath:QT,findShortestPath:jk,floydWarshall:sb,labelPropagation:Bk,louvain:tA,iLouvain:oh,kCore:Eh,kMeans:Hk,cosineSimilarity:iA,nodesCosineSimilarity:g2,minimumSpanningTree:Kk,pageRank:fS,getNeighbors:Hg,Stack:W0,GADDI:nP},rP=o(84039),Vf=o(66119),tg=U_,iI=function(i){return function(a,l){return a[i]-l[i]}},fA=function(i,a,l){return i>=a&&i<=l},ng=function(i,a,l,u){var E=1e-4,P={x:l.x-i.x,y:l.y-i.y},j={x:a.x-i.x,y:a.y-i.y},H={x:u.x-l.x,y:u.y-l.y},X=j.x*H.y-j.y*H.x,ee=X*X,se=1/X,Se=j.x*j.x+j.y*j.y,Re=H.x*H.x+H.y*H.y;if(ee>E*Se*Re){var Be=(P.x*H.y-P.y*H.x)*se,Ye=(P.x*j.y-P.y*j.x)*se;return!fA(Be,0,1)||!fA(Ye,0,1)?null:{x:i.x+Be*j.x,y:i.y+Be*j.y}}return null},aP=function(i,a){var l=i.x,u=i.y,E=i.width,P=i.height,j=l+E/2,H=u+P/2,X=[],ee={x:j,y:H};X.push({x:l,y:u}),X.push({x:l+E,y:u}),X.push({x:l+E,y:u+P}),X.push({x:l,y:u+P}),X.push({x:l,y:u});for(var se=null,Se=1;Se<X.length&&(se=ng(X[Se-1],X[Se],ee,a),!se);Se++);return se},iP=function(i,a){var l=i.x,u=i.y,E=i.r,P=a.x,j=a.y,H=P-l,X=j-u;if(H*H+X*X<E*E)return null;var ee=Math.atan(X/H);return{x:l+Math.abs(E*Math.cos(ee))*Math.sign(H),y:u+Math.abs(E*Math.sin(ee))*Math.sign(X)}},dA=function(i,a){var l=i.rx,u=i.ry,E=i.x,P=i.y,j=a.x-E,H=a.y-P,X=Math.atan2(H/u,j/l);return X<0&&(X+=2*Math.PI),{x:E+l*Math.cos(X),y:P+u*Math.sin(X)}},jh=function(i,a,l){l===void 0&&(l=1);var u=[i.x,i.y,l];return(!a||isNaN(a[0]))&&(a=[1,0,0,0,1,0,0,0,1]),rP.transformMat3(u,u,a),{x:u[0],y:u[1]}},Eg=function(i,a,l){l===void 0&&(l=1),(!a||isNaN(a[0]))&&(a=[1,0,0,0,1,0,0,0,1]);var u=lm.invert([1,0,0,0,1,0,0,0,1],a);u||(u=[1,0,0,0,1,0,0,0,1]);var E=[i.x,i.y,l];return rP.transformMat3(E,E,u),{x:E[0],y:E[1]}},pA=function(i,a,l){var u=i.x-a.x,E=i.y-a.y,P=i.x-l.x,j=i.y-l.y,H=(i.x*i.x-a.x*a.x-a.y*a.y+i.y*i.y)/2,X=(i.x*i.x-l.x*l.x-l.y*l.y+i.y*i.y)/2,ee=E*P-u*j;return{x:-(j*H-E*X)/ee,y:-(u*X-P*H)/ee}},dS=function(i,a){var l=i.x-a.x,u=i.y-a.y;return Math.sqrt(l*l+u*u)},oP=function(i,a){var l=[];return i.forEach(function(u){var E=[];u.forEach(function(P){E.push(P*a)}),l.push(E)}),l},C2=function(i){for(var a=[],l=i.length,u=0;u<l;u+=1){a[u]=[];for(var E=0;E<l;E+=1)u===E?a[u][E]=0:i[u][E]===0||!i[u][E]?a[u][E]=Infinity:a[u][E]=i[u][E]}for(var P=0;P<l;P+=1)for(var u=0;u<l;u+=1)for(var E=0;E<l;E+=1)a[u][E]>a[u][P]+a[P][E]&&(a[u][E]=a[u][P]+a[P][E]);return a},oI=function(i,a){var l=i.nodes,u=i.edges,E=[],P={};if(!l)throw new Error("invalid nodes data!");return l&&l.forEach(function(j,H){P[j.id]=H;var X=[];E.push(X)}),u&&u.forEach(function(j){var H=j.source,X=j.target,ee=P[H],se=P[X];E[ee][se]=1,a||(E[se][ee]=1)}),E},vA=function(i,a){i.translate(a.x,a.y)},Ix=function(i,a,l,u){u===void 0&&(u={duration:500});var E=i.getMatrix();E||(E=[1,0,0,0,1,0,0,0,1]);var P=i.getCanvasBBox(),j=a.x-P.minX,H=a.y-P.minY;if(l){var X=j*E[0],ee=H*E[4],se=0,Se=0,Re=0,Be=0;i.animate(function(ht){return Re=X*ht,Be=ee*ht,E=tg(E,[["t",Re-se,Be-Se]]),se=Re,Se=Be,{matrix:E}},u)}else{var Ye=tg(E,[["t",j,H]]);i.setMatrix(Ye)}},rN=function(i,a){var l=i.getMatrix();l||(l=[1,0,0,0,1,0,0,0,1]);var u=a;(0,Nn.isArray)(a)||(u=[a,a]),(0,Nn.isArray)(a)&&a.length===1&&(u=[a[0],a[0]]),l=tg(l,[["s",u[0],u[1]]]),i.setMatrix(l)},hA=function(i,a){var l=i.getMatrix();l||(l=[1,0,0,0,1,0,0,0,1]),l=tg(l,[["r",a]]),i.setMatrix(l)},sI=function(i,a,l){for(var u=[],E=0;E<i;E++)u[E]=0;return l.forEach(function(P){P.source&&(u[a[P.source]]+=1),P.target&&(u[a[P.target]]+=1)}),u};function sP(C,i,a){return(a[0]-C[0])*(i[1]-C[1])==(i[0]-C[0])*(a[1]-C[1])&&Math.min(C[0],i[0])<=a[0]&&a[0]<=Math.max(C[0],i[0])&&Math.min(C[1],i[1])<=a[1]&&a[1]<=Math.max(C[1],i[1])}var pS=function(i,a,l){var u=!1,E=i.length,P=1e-6;function j(se){return Math.abs(se)<P?0:se<0?-1:1}if(E<=2)return!1;for(var H=0;H<E;H++){var X=i[H],ee=i[(H+1)%E];if(sP(X,ee,[a,l]))return!0;j(X[1]-l)>0!=j(ee[1]-l)>0&&j(a-(l-X[1])*(X[0]-ee[0])/(X[1]-ee[1])-X[0])<0&&(u=!u)}return u},pb=function(i,a){return!(a.minX>i.maxX||a.maxX<i.minX||a.minY>i.maxY||a.maxY<i.minY)},lI=function(i,a){var l=!1;return(0,Nn.each)(i,function(u){if(ng(u.from,u.to,a.from,a.to))return l=!0,!1}),l},lP=function(i,a){var l=function(Se){var Re=Se.map(function(Ye){return Ye[0]}),Be=Se.map(function(Ye){return Ye[1]});return{minX:Math.min.apply(null,Re),maxX:Math.max.apply(null,Re),minY:Math.min.apply(null,Be),maxY:Math.max.apply(null,Be)}},u=function(Se){for(var Re=[],Be=Se.length,Ye=0;Ye<Be-1;Ye++){var ht=Se[Ye],Tt=Se[Ye+1];Re.push({from:{x:ht[0],y:ht[1]},to:{x:Tt[0],y:Tt[1]}})}if(Re.length>1){var Dt=Se[0],Kt=Se[Be-1];Re.push({from:{x:Kt[0],y:Kt[1]},to:{x:Dt[0],y:Dt[1]}})}return Re};if(i.length<2||a.length<2)return!1;var E=l(i),P=l(a);if(!pb(E,P))return!1;var j=!1;if((0,Nn.each)(a,function(se){if(pS(i,se[0],se[1]))return j=!0,!1}),j||((0,Nn.each)(i,function(se){if(pS(a,se[0],se[1]))return j=!0,!1}),j))return!0;var H=u(i),X=u(a),ee=!1;return(0,Nn.each)(X,function(se){if(lI(H,se))return ee=!0,!1}),ee},b_=function(){function C(i,a,l,u){this.x1=i,this.y1=a,this.x2=l,this.y2=u}return C.prototype.getBBox=function(){var i=Math.min(this.x1,this.x2),a=Math.min(this.y1,this.y2),l=Math.max(this.x1,this.x2),u=Math.max(this.y1,this.y2),E={x:i,y:a,minX:i,minY:a,maxX:l,maxY:u,width:l-i,height:u-a};return E},C}(),xy=function(i,a){var l={top:[i.minX,i.minY,i.maxX,i.minY],left:[i.minX,i.minY,i.minX,i.maxY],bottom:[i.minX,i.maxY,i.maxX,i.maxY],right:[i.maxX,i.minY,i.maxX,i.maxY]};return l[a]},w2=function(i,a){var l=(a.x2-a.x1)*(i.y1-a.y1)-(a.y2-a.y1)*(i.x1-a.x1),u=(i.x2-i.x1)*(i.y1-a.y1)-(i.y2-i.y1)*(i.x1-a.x1),E=(a.y2-a.y1)*(i.x2-i.x1)-(a.x2-a.x1)*(i.y2-i.y1);if(E){var P=l/E,j=u/E;if(P>=0&&P<=1&&j>=0&&j<=1)return P}return Number.POSITIVE_INFINITY},vS=function(i,a){for(var l=["top","left","bottom","right"],u=i.getBBox(),E=0,P=[],j=0;j<4;j++){var H=xy(u,l[j]),X=H[0],ee=H[1],se=H[2],Se=H[3];P[j]=ng({x:a.x1,y:a.y1},{x:a.x2,y:a.y2},{x:X,y:ee},{x:se,y:Se}),P[j]&&(E+=1)}return[P,E]},mA=function(i,a){for(var l=["top","left","bottom","right"],u=i.getBBox(),E=Number.POSITIVE_INFINITY,P=0,j=0;j<4;j++){var H=xy(u,l[j]),X=H[0],ee=H[1],se=H[2],Se=H[3],Re=w2(a,new b_(X,ee,se,Se));Re=Math.abs(Re-.5),Re>=0&&Re<=1&&(P+=1,E=Re<E?Re:E)}return P===0?-1:E},T2=function(i){var a=0,l=0;if(i.length>0){for(var u=0,E=i;u<E.length;u++){var P=E[u];a+=P.x,l+=P.y}a/=i.length,l/=i.length}return{x:a,y:l}},A2=function(i,a){return Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2)},cP=function(i,a){var l=a.x1,u=a.y1,E=a.x2-l,P=a.y2-u,j=i.x-l,H=i.y-u,X=j*E+H*P,ee;X<=0?ee=0:(j=E-j,H=P-H,X=j*E+H*P,X<=0?ee=0:ee=X*X/(E*E+P*P));var se=j*j+H*H-ee;return se<0&&(se=0),se},Dx=function(i,a,l){return l===void 0&&(l=.001),Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2)<Math.pow(l,2)},hS=function(i,a){var l=i.x<a.x,u=i.x>a.x+a.width,E=i.y>a.y+a.height,P=i.y<a.y,j=l||u||E||P;if(!j)return 0;if(E&&!l&&!u)return Math.pow(a.y+a.height-i.y,2);if(P&&!l&&!u)return Math.pow(i.y-a.y,2);if(l&&!E&&!P)return Math.pow(a.x-i.x,2);if(u&&!E&&!P)return Math.pow(a.x+a.width-i.x,2);var H=Math.min(Math.abs(a.x-i.x),Math.abs(a.x+a.width-i.x)),X=Math.min(Math.abs(a.y-i.y),Math.abs(a.y+a.height-i.y));return H*H+X*X},M2=function(i,a){var l=i[0],u=i[1],E=i[2],P=i[3],j=a.x,H=a.y,X=[E-l,P-u];if(Vf.exactEquals(X,[0,0]))return NaN;var ee=[-X[1],X[0]];Vf.normalize(ee,ee);var se=[j-l,H-u];return Math.abs(Vf.dot(se,ee))},mS=function(i,a,l){return i+(a-i)*l},gS=function(i,a,l){for(var u=Math.min(i.length,a.length),E=new Array(u),P=0;P<u;P++)E[P]=mS(i[P],a[P],l);return E},Ey="rgb(95, 149, 255)",cI="rgb(255, 255, 255)",b0="rgb(0, 0, 0)",k2="rgb(247, 250, 255)",_S="rgb(239, 244, 255)",yS="rgb(253, 253, 253)",uP="rgb(250, 250, 250)",Gg="rgb(224, 224, 224)",gA="rgb(234, 234, 234)",Nx="rgb(245, 245, 245)",uI="rgb(191, 213, 255)",P2="#4572d9",vb="rgb(223, 234, 255)",zd={mainStroke:Ey,mainFill:_S,activeStroke:Ey,activeFill:k2,inactiveStroke:uI,inactiveFill:k2,selectedStroke:Ey,selectedFill:cI,highlightStroke:P2,highlightFill:vb,disableStroke:Gg,disableFill:uP,edgeMainStroke:Gg,edgeActiveStroke:Ey,edgeInactiveStroke:gA,edgeSelectedStroke:Ey,edgeHighlightStroke:Ey,edgeDisableStroke:Nx,comboMainStroke:Gg,comboMainFill:yS,comboActiveStroke:Ey,comboActiveFill:k2,comboInactiveStroke:Gg,comboInactiveFill:yS,comboSelectedStroke:Ey,comboSelectedFill:yS,comboHighlightStroke:P2,comboHighlightFill:yS,comboDisableStroke:gA,comboDisableFill:uP},Yu={version:"0.8.21",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:zd.mainStroke,fill:_S},size:20,color:zd.mainStroke,linkPoints:{size:8,lineWidth:1,fill:zd.activeFill,stroke:zd.activeStroke}},nodeStateStyles:{active:{fill:zd.activeFill,stroke:zd.activeStroke,lineWidth:2,shadowColor:zd.mainStroke,shadowBlur:10},selected:{fill:zd.selectedFill,stroke:zd.selectedStroke,lineWidth:4,shadowColor:zd.selectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:zd.highlightFill,stroke:zd.highlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:zd.inactiveFill,stroke:zd.inactiveStroke,lineWidth:1},disable:{fill:zd.disableFill,stroke:zd.disableStroke,lineWidth:1}},edgeLabel:{style:{fill:b0,textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:zd.edgeMainStroke,lineAppendWidth:2},color:zd.edgeMainStroke},edgeStateStyles:{active:{stroke:zd.edgeActiveStroke,lineWidth:1},selected:{stroke:zd.edgeSelectedStroke,lineWidth:2,shadowColor:zd.edgeSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:zd.edgeHighlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:zd.edgeInactiveStroke,lineWidth:1},disable:{stroke:zd.edgeDisableStroke,lineWidth:1}},comboLabel:{style:{fill:b0,textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:zd.comboMainFill,lineWidth:1,stroke:zd.comboMainStroke,r:5,width:20,height:10},size:[20,5],color:zd.comboMainStroke,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:zd.comboActiveStroke,lineWidth:1,fill:zd.comboActiveFill},selected:{stroke:zd.comboSelectedStroke,lineWidth:2,fill:zd.comboSelectedFill,shadowColor:zd.comboSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:zd.comboHighlightStroke,lineWidth:2,fill:zd.comboHighlightFill,"text-shape":{fontWeight:500}},inactive:{stroke:zd.comboInactiveStroke,fill:zd.comboInactiveFill,lineWidth:1},disable:{stroke:zd.comboDisableStroke,fill:zd.comboDisableFill,lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},windowFontFamily:typeof window!="undefined"&&window.getComputedStyle&&document.body&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif"},fP={" ":.3329986572265625,a:.5589996337890625,A:.6569992065429687,b:.58599853515625,B:.6769989013671875,c:.5469985961914062,C:.7279998779296875,d:.58599853515625,D:.705999755859375,e:.554998779296875,E:.63699951171875,f:.37299957275390627,F:.5769989013671875,g:.5909988403320312,G:.7479995727539063,h:.555999755859375,H:.7199996948242188,i:.255999755859375,I:.23699951171875,j:.26699981689453123,J:.5169998168945312,k:.5289993286132812,K:.6899993896484375,l:.23499908447265624,L:.5879989624023437,m:.854998779296875,M:.8819992065429687,n:.5589996337890625,N:.7189987182617188,o:.58599853515625,O:.7669998168945312,p:.58599853515625,P:.6419998168945312,q:.58599853515625,Q:.7669998168945312,r:.3649993896484375,R:.6759994506835938,s:.504998779296875,S:.6319992065429687,t:.354998779296875,T:.6189987182617187,u:.5599990844726562,U:.7139999389648437,v:.48199920654296874,V:.6389999389648438,w:.754998779296875,W:.929998779296875,x:.5089996337890625,X:.63699951171875,y:.4959991455078125,Y:.66199951171875,z:.48699951171875,Z:.6239990234375,"0":.6,"1":.40099945068359377,"2":.6,"3":.6,"4":.6,"5":.6,"6":.6,"7":.5469985961914062,"8":.6,"9":.6,"[":.3329986572265625,"]":.3329986572265625,",":.26399993896484375,".":.26399993896484375,";":.26399993896484375,":":.26399993896484375,"{":.3329986572265625,"}":.3329986572265625,"\\":.5,"|":.19499969482421875,"=":.604998779296875,"+":.604998779296875,"-":.604998779296875,_:.5,"`":.3329986572265625," ~":.8329986572265625,"!":.3329986572265625,"@":.8579986572265625,"#":.6,$:.6,"%":.9699996948242188,"^":.517999267578125,"&":.7259994506835937,"*":.505999755859375,"(":.3329986572265625,")":.3329986572265625,"<":.604998779296875,">":.604998779296875,"/":.5,"?":.53699951171875},H0=Math.PI,hb=Math.sin,R2=Math.cos,_m=hb(H0/8),tm=R2(H0/8),e1=function(i,a){var l=i.getBBox(),u={x:l.minX,y:l.minY},E={x:l.maxX,y:l.maxY};if(a){var P=a.getMatrix();P||(P=[1,0,0,0,1,0,0,0,1]),u=jh(u,P),E=jh(E,P)}var j=u.x,H=u.y,X=E.x,ee=E.y;return{x:j,y:H,minX:j,minY:H,maxX:X,maxY:ee,width:X-j,height:ee-H}},O2=function(i){var a=i.sourceNode||i.targetNode,l=a.get("group"),u=l.getMatrix();u||(u=[1,0,0,0,1,0,0,0,1]);var E=a.getKeyShape(),P=E.getBBox(),j=i.loopCfg||{},H=j.dist||Math.max(P.width,P.height)*2,X=j.position||Yu.defaultLoopPosition,ee=[(P.minX+P.maxX)/2+u[6],(P.minY+P.maxY)/2+u[7]],se=[i.startPoint.x,i.startPoint.y],Se=[i.endPoint.x,i.endPoint.y],Re=P.height/2,Be=P.width/2,Ye=Re,ht=Re,Tt=Ye*_m,Dt=Ye*tm,Kt=ht*_m,gn=ht*tm,bn=E.get("type"),mn=Math.min(Re/2,Be/2),kn=Math.min(Re,Be),sr=(j==null?void 0:j.pointPadding)?Math.min(kn,j==null?void 0:j.pointPadding):mn;if(se[0]===Se[0]&&se[1]===Se[1]){switch(X){case"top":bn==="circle"?(se=[ee[0]-Tt,ee[1]-Dt],Se=[ee[0]+Kt,ee[1]-gn]):(se=[ee[0]-sr,ee[1]-Re],Se=[ee[0]+sr,ee[1]-Re]);break;case"top-right":Ye=Re,ht=Be,bn==="circle"?(Tt=Ye*_m,Dt=Ye*tm,Kt=ht*_m,gn=ht*tm,se=[ee[0]+Tt,ee[1]-Dt],Se=[ee[0]+gn,ee[1]-Kt]):(se=[ee[0]+Be-sr,ee[1]-Re],Se=[ee[0]+Be,ee[1]-Re+sr]);break;case"right":Ye=Be,ht=Be,bn==="circle"?(Tt=Ye*_m,Dt=Ye*tm,Kt=ht*_m,gn=ht*tm,se=[ee[0]+Dt,ee[1]-Tt],Se=[ee[0]+gn,ee[1]+Kt]):(se=[ee[0]+Be,ee[1]-sr],Se=[ee[0]+Be,ee[1]+sr]);break;case"bottom-right":Ye=Be,ht=Re,bn==="circle"?(Tt=Ye*_m,Dt=Ye*tm,Kt=ht*_m,gn=ht*tm,se=[ee[0]+Dt,ee[1]+Tt],Se=[ee[0]+Kt,ee[1]+gn]):(se=[ee[0]+Be,ee[1]+Re-sr],Se=[ee[0]+Be-sr,ee[1]+Re]);break;case"bottom":Ye=Re,ht=Re,bn==="circle"?(Tt=Ye*_m,Dt=Ye*tm,Kt=ht*_m,gn=ht*tm,se=[ee[0]+Tt,ee[1]+Dt],Se=[ee[0]-Kt,ee[1]+gn]):(se=[ee[0]-sr,ee[1]+Re],Se=[ee[0]+sr,ee[1]+Re]);break;case"bottom-left":Ye=Re,ht=Be,bn==="circle"?(Tt=Ye*_m,Dt=Ye*tm,Kt=ht*_m,gn=ht*tm,se=[ee[0]-Tt,ee[1]+Dt],Se=[ee[0]-gn,ee[1]+Kt]):(se=[ee[0]-Be,ee[1]+Re-sr],Se=[ee[0]-Be+sr,ee[1]+Re]);break;case"left":Ye=Be,ht=Be,bn==="circle"?(Tt=Ye*_m,Dt=Ye*tm,Kt=ht*_m,gn=ht*tm,se=[ee[0]-Dt,ee[1]+Tt],Se=[ee[0]-gn,ee[1]-Kt]):(se=[ee[0]-Be,ee[1]-sr],Se=[ee[0]-Be,ee[1]+sr]);break;case"top-left":Ye=Be,ht=Re,bn==="circle"?(Tt=Ye*_m,Dt=Ye*tm,Kt=ht*_m,gn=ht*tm,se=[ee[0]-Dt,ee[1]-Tt],Se=[ee[0]-Kt,ee[1]-gn]):(se=[ee[0]-Be+sr,ee[1]-Re],Se=[ee[0]-Be,ee[1]-Re+sr]);break;default:Ye=Be,ht=Be,Tt=Ye*_m,Dt=Ye*tm,Kt=ht*_m,gn=ht*tm,se=[ee[0]-Tt,ee[1]-Dt],Se=[ee[0]+Kt,ee[1]-gn]}if(j.clockwise===!1){var yr=[se[0],se[1]];se=[Se[0],Se[1]],Se=[yr[0],yr[1]]}}var jr=[se[0]-ee[0],se[1]-ee[1]],zr=(Ye+H)/Ye,va=(ht+H)/ht;j.clockwise===!1&&(zr=(ht+H)/ht,va=(Ye+H)/Ye);var za=Vf.scale([0,0],jr,zr),xi=[ee[0]+za[0],ee[1]+za[1]],Di=[Se[0]-ee[0],Se[1]-ee[1]],Si=Vf.scale([0,0],Di,va),jo=[ee[0]+Si[0],ee[1]+Si[1]];return i.startPoint={x:se[0],y:se[1]},i.endPoint={x:Se[0],y:Se[1]},i.controlPoints=[{x:xi[0],y:xi[1]},{x:jo[0],y:jo[1]}],i},I2=function(i,a,l,u,E){var P=1e-4,j=[],H=i==null?void 0:i.getPoint(a);if(!H)return{x:0,y:0,angle:0};if(a<P)j=i.getStartTangent().reverse();else if(a>1-P)j=i.getEndTangent();else{var X=i==null?void 0:i.getPoint(a+P);j.push([H.x,H.y]),j.push([X.x,X.y])}var ee=Math.atan2(j[1][1]-j[0][1],j[1][0]-j[0][0]);if(ee<0&&(ee+=H0*2),l&&(H.x+=R2(ee)*l,H.y+=hb(ee)*l),u){var se=ee-H0/2;ee>1/2*H0&&ee<3*1/2*H0&&(se-=H0),H.x+=R2(se)*u,H.y+=hb(se)*u}var Se={x:H.x,y:H.y,angle:ee};return E?(ee>.5*H0&&ee<1.5*H0&&(ee-=H0),bl({rotate:ee},Se)):Se},dP=function C(i,a,l,u){if(u(i,a,l)===!1)return!1;if(i&&i.children){for(var E=i.children.length-1;E>=0;E--)if(!C(i.children[E],i,E,u))return!1}return!0},Lx=function C(i,a,l,u){if(i&&i.children){for(var E=i.children.length-1;E>=0;E--)if(!C(i.children[E],i,E,u))return}return u(i,a,l)!==!1},rg=function(i,a){typeof a=="function"&&dP(i,null,-1,a)},ag=function(i,a){typeof a=="function"&&Lx(i,null,-1,a)},_A=function(i,a){return a*(fP[i]||1)},pP=function(i,a){var l=0,u=new RegExp("[\u4E00-\u9FA5]+");return i.split("").forEach(function(E){u.test(E)?l+=a:l+=_A(E,a)}),[l,a]},bS=function(i,a){return typeof a!="number"||a<=0||a>=i.length?i:i.substring(0,a)+"..."},D2=function(i,a){var l=[],u={},E={};i.forEach(function(H){E[H.id]=H}),i.forEach(function(H,X){var ee=(0,Nn.clone)(H);ee.itemType="combo",ee.children=void 0,ee.parentId===ee.id?(console.warn("The parentId for combo ".concat(ee.id," can not be the same as the combo's id")),delete ee.parentId):ee.parentId&&!E[ee.parentId]&&(console.warn("The parent combo for combo ".concat(ee.id," does not exist!")),delete ee.parentId);var se=u[ee.id];if(se){if(ee.children=se.children,u[ee.id]=ee,se=ee,!se.parentId){l.push(se);return}var Se=u[se.parentId];if(Se)Se.children?Se.children.push(ee):Se.children=[ee];else{var Re={id:se.parentId,children:[se]};u[se.parentId]=Re,u[ee.id]=ee}return}if((0,Nn.isString)(H.parentId)){var Be=u[H.parentId];if(Be)Be.children?Be.children.push(ee):Be.children=[ee],u[ee.id]=ee;else{var Ye={id:H.parentId,children:[ee]};u[Ye.id]=Ye,u[ee.id]=ee}}else l.push(ee),u[ee.id]=ee});var P={};(a||[]).forEach(function(H){P[H.id]=H;var X=u[H.comboId];if(X){var ee={id:H.id,comboId:H.comboId};X.children?X.children.push(ee):X.children=[ee],ee.itemType="node",u[H.id]=ee}});var j=0;return l.forEach(function(H){H.depth=j+10,rg(H,function(X){var ee,se=u[X.id].itemType;se==="node"?ee=u[X.comboId]:ee=u[X.parentId],ee&&se==="node"?X.depth=j+1:X.depth=j+10,j<X.depth&&(j=X.depth);var Se=P[X.id];return Se&&(Se.depth=X.depth),!0})}),l},N2=function(i,a,l){var u,E=i,P,j={root:{children:i}},H=!1,X="root";(i||[]).forEach(function(Be){if(!H){if(Be.id===a){P=Be,Be.itemType==="combo"?P.parentId=l:P.comboId=l,H=!0;return}rg(Be,function(Ye){var ht;return j[Ye.id]={children:(Ye==null?void 0:Ye.children)||[]},E=(ht=j[Ye.parentId||Ye.comboId||"root"])===null||ht===void 0?void 0:ht.children,Ye&&(Ye.removed||a===Ye.id)&&E?(X=Ye.parentId||Ye.comboId||"root",P=Ye,Ye.itemType==="combo"?P.parentId=l:P.comboId=l,H=!0,!1):!0})}}),E=(u=j[X])===null||u===void 0?void 0:u.children;var ee=E?E.indexOf(P):-1;if(ee>-1&&E.splice(ee,1),H||(P={id:a,itemType:"node",comboId:l},j[a]={children:void 0}),a){var se=!1;if(l){var Se=0;(i||[]).forEach(function(Be){se||rg(Be,function(Ye){return l===Ye.id?(se=!0,Ye.children?Ye.children.push(P):Ye.children=[P],Se=Ye.depth,P.itemType==="node"?P.depth=Se+2:P.depth=Se+1,!1):!0})})}else(!l||!se)&&P.itemType!=="node"&&i.push(P);var Re=P.depth;rg(P,function(Be){return Be.itemType==="node"?Re+=2:Re+=1,Be.depth=Re,!0})}return i},L2=function(i,a,l){var u={minX:Infinity,minY:Infinity,maxX:-Infinity,maxY:-Infinity,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};if(!i||i.length===0){var E=l==null?void 0:l.getModel(),P=E||{},j=P.x,H=P.y,X=P.fixSize,ee=P.collapsed,se=P.fixCollapseSize,Se=ee?se:X,Re=(0,Nn.isArray)(Se)?Se:[Se,Se],Be=Re[0],Ye=Re[1],ht=[Be/2,Ye/2];return{minX:j-ht[0],minY:H-ht[1],maxX:j+ht[0],maxY:H+ht[1],x:j,y:H,width:Be,height:Ye}}return i.forEach(function(Tt){var Dt=a.findById(Tt.id);if(!(!Dt||!Dt.isVisible())){Dt.set("bboxCanvasCache",void 0);var Kt=Dt.getCanvasBBox();Kt.x&&u.minX>Kt.minX&&(u.minX=Kt.minX),Kt.y&&u.minY>Kt.minY&&(u.minY=Kt.minY),Kt.x&&u.maxX<Kt.maxX&&(u.maxX=Kt.maxX),Kt.y&&u.maxY<Kt.maxY&&(u.maxY=Kt.maxY)}}),u.x=(u.minX+u.maxX)/2,u.y=(u.minY+u.maxY)/2,u.width=u.maxX-u.minX,u.height=u.maxY-u.minY,u.centerX=(u.minX+u.maxX)/2,u.centerY=(u.minY+u.maxY)/2,(l==null?void 0:l.getKeyShape().get("type"))==="circle"&&(u.width=Math.hypot(u.height,u.width),u.height=u.width),Object.keys(u).forEach(function(Tt){(u[Tt]===Infinity||u[Tt]===-Infinity)&&(u[Tt]=void 0)}),u},fI=function(i){var a=(0,Nn.isNumber)(i.x)||(0,Nn.isNumber)(i.y)||i.type||i.anchorPoints||i.size;return i.style&&(a=a||(0,Nn.isNumber)(i.style.r)||(0,Nn.isNumber)(i.style.width)||(0,Nn.isNumber)(i.style.height)||(0,Nn.isNumber)(i.style.rx)||(0,Nn.isNumber)(i.style.ry)),a},F2=function(i){var a={};return Object.keys(i).forEach(function(l){var u=i[l];if(!(l==="img"&&!(0,Nn.isString)(u)))if((0,Nn.isObject)(u)&&!(0,Nn.isArray)(u)){var E={};Object.keys(u).forEach(function(P){var j=u[P];P==="img"&&!(0,Nn.isString)(j)||(E[P]=(0,Nn.clone)(j))}),a[l]=E}else a[l]=(0,Nn.clone)(u)}),a},vv=function(i){var a=i.animateCfg,l=i.callback,u;if(!a)u={duration:500,callback:l};else if(u=(0,Nn.clone)(a),a.callback){var E=a.callback;u.callback=function(){l(),E()}}else u.callback=l;return u},xS=function(i){if(!i)return console.error("G6 Error Tips: the data must be defined"),!1;var a=i.nodes,l=i.edges,u=i.combos,E=u===void 0?[]:u;if(!a&&!l){var P=!0;return rg(i,function(Se){return(0,Nn.isString)(Se.id)?!0:(P=!1,!1)}),P}var j=(a||[]).find(function(Se){return!(0,Nn.isString)(Se.id)});if(j)return console.warn("G6 Warning Tips: missing 'id' property, or %c".concat(j.id,"%c is not a string."),"font-size: 20px; color: red;",""),!1;var H=(a||[]).map(function(Se){return Se.id}),X=E==null?void 0:E.map(function(Se){return Se.id}),ee=my(my([],H,!0),X,!0),se=(l||[]).find(function(Se){return!ee.includes(Se.source)||!ee.includes(Se.target)});return se?(console.warn("G6 Warning Tips: The source %c".concat(se.source,"%c or the target %c").concat(se.target,"%c of the edge do not exist in the nodes or combos."),"font-size: 20px; color: red;","","font-size: 20px; color: red;",""),!1):!0},ae=function(i,a){if(i==="node"||i==="combo"){if(a.id&&!(0,Nn.isString)(a.id))return console.warn("G6 Warning Tips: missing 'id' property, or the 'id' %c".concat(a.id,"%c is not a string."),"font-size: 20px; color: red;",""),!1}else if(i==="edge"&&(!a.source||!a.target))return console.warn("G6 Warning Tips: missing 'source' or 'target' for the edge."),!1;return!0},J=function(){function C(i){this.graph=i,this.destroyed=!1,this.modes=i.get("modes")||{default:[]},this.formatModes(),this.mode=i.get("defaultMode")||"default",this.currentBehaves=[],this.setMode(this.mode)}return C.prototype.formatModes=function(){var i=this.modes;(0,Nn.each)(i,function(a){(0,Nn.each)(a,function(l,u){(0,Nn.isString)(l)&&(a[u]={type:l})})})},C.prototype.setBehaviors=function(i){var a=this.graph,l=this.modes[i],u=[],E;(0,Nn.each)(l||[],function(P){var j=wk.getBehavior(P.type||P);!j||(E=new j(P),E&&(E.bind(a),u.push(E)))}),this.currentBehaves=u},C.mergeBehaviors=function(i,a){return(0,Nn.each)(a,function(l){i.indexOf(l)<0&&((0,Nn.isString)(l)&&(l={type:l}),i.push(l))}),i},C.filterBehaviors=function(i,a){var l=[];return i.forEach(function(u){var E="";(0,Nn.isString)(u)?E=u:E=u.type,a.indexOf(E)<0&&l.push(u)}),l},C.prototype.setMode=function(i){var a=this,l=a.modes,u=a.graph,E=i,P=l[E];!P||(u.emit("beforemodechange",{mode:i}),(0,Nn.each)(this.currentBehaves,function(j){j.delegate&&j.delegate.remove(),j.unbind(u)}),this.setBehaviors(E),u.emit("aftermodechange",{mode:i}),this.mode=i)},C.prototype.getMode=function(){return this.mode},C.prototype.manipulateBehaviors=function(i,a,l){var u=this,E;if((0,Nn.isArray)(i)?E=i:E=[i],(0,Nn.isArray)(a))return(0,Nn.each)(a,function(j){u.modes[j]?l?u.modes[j]=C.mergeBehaviors(u.modes[j]||[],E):u.modes[j]=C.filterBehaviors(u.modes[j]||[],E):l&&(u.modes[j]=E)}),this;var P=a;return a||(P=this.mode),this.modes[P]||l&&(this.modes[P]=E),l?this.modes[P]=C.mergeBehaviors(this.modes[P]||[],E):this.modes[P]=C.filterBehaviors(this.modes[P]||[],E),this.formatModes(),this.setMode(this.mode),this},C.prototype.updateBehavior=function(i,a,l){(0,Nn.isString)(i)&&(i={type:i});var u=[];if(!l||l===this.mode||l==="default"){if(u=this.currentBehaves,!u||!u.length)return console.warn("Update behavior failed! There is no behaviors in this mode on the graph."),this;for(var E=u.length,P=0;P<E;P++){var j=u[P];if(j.type===i.type)return j.updateCfg(a),this;P===E-1&&console.warn("Update behavior failed! There is no such behavior in the mode")}}else{if(u=this.modes[l],!u||!u.length)return console.warn("Update behavior failed! There is no behaviors in this mode on the graph."),this;for(var H=u.length,P=0;P<H;P++){var j=u[P];if(j.type===i.type||j===i.type)return j===i.type&&(j={type:j}),Object.assign(j,a),u[P]=j,this;P===H-1&&console.warn("Update behavior failed! There is no such behavior in the mode")}}return this},C.prototype.destroy=function(){this.graph=null,this.modes=null,this.currentBehaves=null,this.destroyed=!0},C}(),xe=J,ye=`
|
||
\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,Ze=new RegExp("([a-z])["+ye+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+ye+"]*,?["+ye+"]*)+)","ig"),xt=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+ye+"]*,?["+ye+"]*","ig"),Mt=function(i){if(!i)return null;if((0,Nn.isArray)(i))return i;var a={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},l=[];return String(i).replace(Ze,function(u,E,P){var j=[],H=E.toLowerCase();if(P.replace(xt,function(X,ee){ee&&j.push(+ee)}),H==="m"&&j.length>2&&(l.push([E].concat(j.splice(0,2))),H="l",E=E==="m"?"l":"L"),H==="o"&&j.length===1&&l.push([E,j[0]]),H==="r")l.push([E].concat(j));else for(;j.length>=a[H]&&(l.push([E].concat(j.splice(0,a[H]))),!!a[H]););return i}),l},Wt=function(i,a){for(var l=[],u=0,E=i.length;E-2*!a>u;u+=2){var P=[{x:+i[u-2],y:+i[u-1]},{x:+i[u],y:+i[u+1]},{x:+i[u+2],y:+i[u+3]},{x:+i[u+4],y:+i[u+5]}];a?u?E-4===u?P[3]={x:+i[0],y:+i[1]}:E-2===u&&(P[2]={x:+i[0],y:+i[1]},P[3]={x:+i[2],y:+i[3]}):P[0]={x:+i[E-2],y:+i[E-1]}:E-4===u?P[3]=P[2]:u||(P[0]={x:+i[u],y:+i[u+1]}),l.push(["C",(-P[0].x+6*P[1].x+P[2].x)/6,(-P[0].y+6*P[1].y+P[2].y)/6,(P[1].x+6*P[2].x-P[3].x)/6,(P[1].y+6*P[2].y-P[3].y)/6,P[2].x,P[2].y])}return l},en=function(i,a,l,u,E){var P=[];if(E===null&&u===null&&(u=l),i=+i,a=+a,l=+l,u=+u,E!==null){var j=Math.PI/180,H=i+l*Math.cos(-u*j),X=i+l*Math.cos(-E*j),ee=a+l*Math.sin(-u*j),se=a+l*Math.sin(-E*j);P=[["M",H,ee],["A",l,l,0,+(E-u>180),0,X,se]]}else P=[["M",i,a],["m",0,-u],["a",l,u,0,1,1,0,2*u],["a",l,u,0,1,1,0,-2*u],["z"]];return P},Tn=function(i){if(i=Mt(i),!i||!i.length)return[["M",0,0]];var a=[],l=0,u=0,E=0,P=0,j=0,H,X;i[0][0]==="M"&&(l=+i[0][1],u=+i[0][2],E=l,P=u,j++,a[0]=["M",l,u]);for(var ee=i.length===3&&i[0][0]==="M"&&i[1][0].toUpperCase()==="R"&&i[2][0].toUpperCase()==="Z",se=void 0,Se=void 0,Re=j,Be=i.length;Re<Be;Re++){if(a.push(se=[]),Se=i[Re],H=Se[0],H!==H.toUpperCase())switch(se[0]=H.toUpperCase(),se[0]){case"A":se[1]=Se[1],se[2]=Se[2],se[3]=Se[3],se[4]=Se[4],se[5]=Se[5],se[6]=+Se[6]+l,se[7]=+Se[7]+u;break;case"V":se[1]=+Se[1]+u;break;case"H":se[1]=+Se[1]+l;break;case"R":X=[l,u].concat(Se.slice(1));for(var Ye=2,ht=X.length;Ye<ht;Ye++)X[Ye]=+X[Ye]+l,X[++Ye]=+X[Ye]+u;a.pop(),a=a.concat(Wt(X,ee));break;case"O":a.pop(),X=en(l,u,Se[1],Se[2]),X.push(X[0]),a=a.concat(X);break;case"U":a.pop(),a=a.concat(en(l,u,Se[1],Se[2],Se[3])),se=["U"].concat(a[a.length-1].slice(-2));break;case"M":E=+Se[1]+l,P=+Se[2]+u;break;default:for(var Ye=1,ht=Se.length;Ye<ht;Ye++)se[Ye]=+Se[Ye]+(Ye%2?l:u)}else if(H==="R")X=[l,u].concat(Se.slice(1)),a.pop(),a=a.concat(Wt(X,ee)),se=["R"].concat(Se.slice(-2));else if(H==="O")a.pop(),X=en(l,u,Se[1],Se[2]),X.push(X[0]),a=a.concat(X);else if(H==="U")a.pop(),a=a.concat(en(l,u,Se[1],Se[2],Se[3])),se=["U"].concat(a[a.length-1].slice(-2));else for(var Tt=0,Dt=Se.length;Tt<Dt;Tt++)se[Tt]=Se[Tt];if(H=H.toUpperCase(),H!=="O")switch(se[0]){case"Z":l=+E,u=+P;break;case"H":l=se[1];break;case"V":u=se[1];break;case"M":E=se[se.length-2],P=se[se.length-1];break;default:l=se[se.length-2],u=se[se.length-1]}}return a},On=function(i,a,l,u){return[i,a,l,u,l,u]},qn=function(i,a,l,u,E,P){var j=1/3,H=2/3;return[j*i+H*l,j*a+H*u,j*E+H*l,j*P+H*u,E,P]},nr=function C(i,a,l,u,E,P,j,H,X,ee){l===u&&(l+=1);var se=Math.PI*120/180,Se=Math.PI/180*(+E||0),Re=[],Be,Ye,ht,Tt,Dt,Kt=function(il,Pl,lc){var Mc=il*Math.cos(lc)-Pl*Math.sin(lc),dp=il*Math.sin(lc)+Pl*Math.cos(lc);return{x:Mc,y:dp}};if(ee)Ye=ee[0],ht=ee[1],Tt=ee[2],Dt=ee[3];else{Be=Kt(i,a,-Se),i=Be.x,a=Be.y,Be=Kt(H,X,-Se),H=Be.x,X=Be.y,i===H&&a===X&&(H+=1,X+=1);var gn=(i-H)/2,bn=(a-X)/2,mn=gn*gn/(l*l)+bn*bn/(u*u);mn>1&&(mn=Math.sqrt(mn),l=mn*l,u=mn*u);var kn=l*l,sr=u*u,yr=(P===j?-1:1)*Math.sqrt(Math.abs((kn*sr-kn*bn*bn-sr*gn*gn)/(kn*bn*bn+sr*gn*gn)));Tt=yr*l*bn/u+(i+H)/2,Dt=yr*-u*gn/l+(a+X)/2,Ye=Math.asin(((a-Dt)/u).toFixed(9)),ht=Math.asin(((X-Dt)/u).toFixed(9)),Ye=i<Tt?Math.PI-Ye:Ye,ht=H<Tt?Math.PI-ht:ht,Ye<0&&(Ye=Math.PI*2+Ye),ht<0&&(ht=Math.PI*2+ht),j&&Ye>ht&&(Ye=Ye-Math.PI*2),!j&&ht>Ye&&(ht=ht-Math.PI*2)}var jr=ht-Ye;if(Math.abs(jr)>se){var zr=ht,va=H,za=X;ht=Ye+se*(j&&ht>Ye?1:-1),H=Tt+l*Math.cos(ht),X=Dt+u*Math.sin(ht),Re=C(H,X,l,u,E,0,j,va,za,[ht,zr,Tt,Dt])}jr=ht-Ye;var xi=Math.cos(Ye),Di=Math.sin(Ye),Si=Math.cos(ht),jo=Math.sin(ht),ro=Math.tan(jr/4),hi=4/3*l*ro,io=4/3*u*ro,oo=[i,a],Ki=[i+hi*Di,a-io*xi],Ji=[H+hi*jo,X-io*Si],Ao=[H,X];if(Ki[0]=2*oo[0]-Ki[0],Ki[1]=2*oo[1]-Ki[1],ee)return[Ki,Ji,Ao].concat(Re);Re=[Ki,Ji,Ao].concat(Re).join().split(",");for(var ks=[],Lo=0,Is=Re.length;Lo<Is;Lo++)ks[Lo]=Lo%2?Kt(Re[Lo-1],Re[Lo],Se).y:Kt(Re[Lo],Re[Lo+1],Se).x;return ks},hr=function(i,a){var l=Tn(i),u=a&&Tn(a),E={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},P={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},j=[],H=[],X="",ee="",se,Se=function(bn,mn,kn){var sr,yr;if(!bn)return["C",mn.x,mn.y,mn.x,mn.y,mn.x,mn.y];switch(!(bn[0]in{T:1,Q:1})&&(mn.qx=mn.qy=null),bn[0]){case"M":mn.X=bn[1],mn.Y=bn[2];break;case"A":bn=["C"].concat(nr.apply(0,[mn.x,mn.y].concat(bn.slice(1))));break;case"S":kn==="C"||kn==="S"?(sr=mn.x*2-mn.bx,yr=mn.y*2-mn.by):(sr=mn.x,yr=mn.y),bn=["C",sr,yr].concat(bn.slice(1));break;case"T":kn==="Q"||kn==="T"?(mn.qx=mn.x*2-mn.qx,mn.qy=mn.y*2-mn.qy):(mn.qx=mn.x,mn.qy=mn.y),bn=["C"].concat(qn(mn.x,mn.y,mn.qx,mn.qy,bn[1],bn[2]));break;case"Q":mn.qx=bn[1],mn.qy=bn[2],bn=["C"].concat(qn(mn.x,mn.y,bn[1],bn[2],bn[3],bn[4]));break;case"L":bn=["C"].concat(On(mn.x,mn.y,bn[1],bn[2]));break;case"H":bn=["C"].concat(On(mn.x,mn.y,bn[1],mn.y));break;case"V":bn=["C"].concat(On(mn.x,mn.y,mn.x,bn[1]));break;case"Z":bn=["C"].concat(On(mn.x,mn.y,mn.X,mn.Y));break;default:break}return bn},Re=function(bn,mn){if(bn[mn].length>7){bn[mn].shift();for(var kn=bn[mn];kn.length;)j[mn]="A",u&&(H[mn]="A"),bn.splice(mn++,0,["C"].concat(kn.splice(0,6)));bn.splice(mn,1),se=Math.max(l.length,u&&u.length||0)}},Be=function(bn,mn,kn,sr,yr){bn&&mn&&bn[yr][0]==="M"&&mn[yr][0]!=="M"&&(mn.splice(yr,0,["M",sr.x,sr.y]),kn.bx=0,kn.by=0,kn.x=bn[yr][1],kn.y=bn[yr][2],se=Math.max(l.length,u&&u.length||0))};se=Math.max(l.length,u&&u.length||0);for(var Ye=0;Ye<se;Ye++){l[Ye]&&(X=l[Ye][0]),X!=="C"&&(j[Ye]=X,Ye&&(ee=j[Ye-1])),l[Ye]=Se(l[Ye],E,ee),j[Ye]!=="A"&&X==="C"&&(j[Ye]="C"),Re(l,Ye),u&&(u[Ye]&&(X=u[Ye][0]),X!=="C"&&(H[Ye]=X,Ye&&(ee=H[Ye-1])),u[Ye]=Se(u[Ye],P,ee),H[Ye]!=="A"&&X==="C"&&(H[Ye]="C"),Re(u,Ye)),Be(l,u,E,P,Ye),Be(u,l,P,E,Ye);var ht=l[Ye],Tt=u&&u[Ye],Dt=ht.length,Kt=u&&Tt.length;E.x=ht[Dt-2],E.y=ht[Dt-1],E.bx=parseFloat(ht[Dt-4])||E.x,E.by=parseFloat(ht[Dt-3])||E.y,P.bx=u&&(parseFloat(Tt[Kt-4])||P.x),P.by=u&&(parseFloat(Tt[Kt-3])||P.y),P.x=u&&Tt[Kt-2],P.y=u&&Tt[Kt-1]}return u?[l,u]:l},ur=/,?([a-z]),?/gi,Mr=function(i){return i.join(",").replace(ur,"$1")},wr=function(i,a,l,u,E){var P=-3*a+9*l-9*u+3*E,j=i*P+6*a-12*l+6*u;return i*j-3*a+3*l},ia=function(i,a,l,u,E,P,j,H,X){X===null&&(X=1),X=X>1?1:X<0?0:X;for(var ee=X/2,se=12,Se=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],Re=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],Be=0,Ye=0;Ye<se;Ye++){var ht=ee*Se[Ye]+ee,Tt=wr(ht,i,l,E,j),Dt=wr(ht,a,u,P,H),Kt=Tt*Tt+Dt*Dt;Be+=Re[Ye]*Math.sqrt(Kt)}return ee*Be},ua=function(i,a,l,u,E,P,j,H){for(var X=[],ee=[[],[]],se,Se,Re,Be,Ye=0;Ye<2;++Ye){if(Ye===0?(Se=6*i-12*l+6*E,se=-3*i+9*l-9*E+3*j,Re=3*l-3*i):(Se=6*a-12*u+6*P,se=-3*a+9*u-9*P+3*H,Re=3*u-3*a),Math.abs(se)<1e-12){if(Math.abs(Se)<1e-12)continue;Be=-Re/Se,Be>0&&Be<1&&X.push(Be);continue}var ht=Se*Se-4*Re*se,Tt=Math.sqrt(ht);if(!(ht<0)){var Dt=(-Se+Tt)/(2*se);Dt>0&&Dt<1&&X.push(Dt);var Kt=(-Se-Tt)/(2*se);Kt>0&&Kt<1&&X.push(Kt)}}for(var gn=X.length,bn=gn,mn;gn--;)Be=X[gn],mn=1-Be,ee[0][gn]=mn*mn*mn*i+3*mn*mn*Be*l+3*mn*Be*Be*E+Be*Be*Be*j,ee[1][gn]=mn*mn*mn*a+3*mn*mn*Be*u+3*mn*Be*Be*P+Be*Be*Be*H;return ee[0][bn]=i,ee[1][bn]=a,ee[0][bn+1]=j,ee[1][bn+1]=H,ee[0].length=ee[1].length=bn+2,{min:{x:Math.min.apply(0,ee[0]),y:Math.min.apply(0,ee[1])},max:{x:Math.max.apply(0,ee[0]),y:Math.max.apply(0,ee[1])}}},ga=function(i,a,l,u,E,P,j,H){if(!(Math.max(i,l)<Math.min(E,j)||Math.min(i,l)>Math.max(E,j)||Math.max(a,u)<Math.min(P,H)||Math.min(a,u)>Math.max(P,H))){var X=(i*u-a*l)*(E-j)-(i-l)*(E*H-P*j),ee=(i*u-a*l)*(P-H)-(a-u)*(E*H-P*j),se=(i-l)*(P-H)-(a-u)*(E-j);if(!!se){var Se=X/se,Re=ee/se,Be=+Se.toFixed(2),Ye=+Re.toFixed(2);if(!(Be<+Math.min(i,l).toFixed(2)||Be>+Math.max(i,l).toFixed(2)||Be<+Math.min(E,j).toFixed(2)||Be>+Math.max(E,j).toFixed(2)||Ye<+Math.min(a,u).toFixed(2)||Ye>+Math.max(a,u).toFixed(2)||Ye<+Math.min(P,H).toFixed(2)||Ye>+Math.max(P,H).toFixed(2)))return{x:Se,y:Re}}}},Fa=function(i,a,l){return a>=i.x&&a<=i.x+i.width&&l>=i.y&&l<=i.y+i.height},ai=function(i,a,l,u,E){if(E)return[["M",+i+ +E,a],["l",l-E*2,0],["a",E,E,0,0,1,E,E],["l",0,u-E*2],["a",E,E,0,0,1,-E,E],["l",E*2-l,0],["a",E,E,0,0,1,-E,-E],["l",0,E*2-u],["a",E,E,0,0,1,E,-E],["z"]];var P=[["M",i,a],["l",l,0],["l",0,u],["l",-l,0],["z"]];return P.parsePathArray=Mr,P},Ca=function(i,a,l,u){return i===null&&(i=a=l=u=0),a===null&&(a=i.y,l=i.width,u=i.height,i=i.x),{x:i,y:a,width:l,w:l,height:u,h:u,x2:i+l,y2:a+u,cx:i+l/2,cy:a+u/2,r1:Math.min(l,u)/2,r2:Math.max(l,u)/2,r0:Math.sqrt(l*l+u*u)/2,path:ai(i,a,l,u),vb:[i,a,l,u].join(" ")}},ii=function(i,a){return i=Ca(i),a=Ca(a),Fa(a,i.x,i.y)||Fa(a,i.x2,i.y)||Fa(a,i.x,i.y2)||Fa(a,i.x2,i.y2)||Fa(i,a.x,a.y)||Fa(i,a.x2,a.y)||Fa(i,a.x,a.y2)||Fa(i,a.x2,a.y2)||(i.x<a.x2&&i.x>a.x||a.x<i.x2&&a.x>i.x)&&(i.y<a.y2&&i.y>a.y||a.y<i.y2&&a.y>i.y)},ci=function(i,a,l,u,E,P,j,H){(0,Nn.isArray)(i)||(i=[i,a,l,u,E,P,j,H]);var X=ua.apply(null,i);return Ca(X.min.x,X.min.y,X.max.x-X.min.x,X.max.y-X.min.y)},$a=function(i,a,l,u,E,P,j,H,X){var ee=1-X,se=Math.pow(ee,3),Se=Math.pow(ee,2),Re=X*X,Be=Re*X,Ye=se*i+Se*3*X*l+ee*3*X*X*E+Be*j,ht=se*a+Se*3*X*u+ee*3*X*X*P+Be*H,Tt=i+2*X*(l-i)+Re*(E-2*l+i),Dt=a+2*X*(u-a)+Re*(P-2*u+a),Kt=l+2*X*(E-l)+Re*(j-2*E+l),gn=u+2*X*(P-u)+Re*(H-2*P+u),bn=ee*i+X*l,mn=ee*a+X*u,kn=ee*E+X*j,sr=ee*P+X*H,yr=90-Math.atan2(Tt-Kt,Dt-gn)*180/Math.PI;return{x:Ye,y:ht,m:{x:Tt,y:Dt},n:{x:Kt,y:gn},start:{x:bn,y:mn},end:{x:kn,y:sr},alpha:yr}},di=function(i,a,l){var u=ci(i),E=ci(a);if(!ii(u,E))return l?0:[];for(var P=ia.apply(0,i),j=ia.apply(0,a),H=~~(P/8),X=~~(j/8),ee=[],se=[],Se={},Re=l?0:[],Be=0;Be<H+1;Be++){var Ye=$a.apply(0,i.concat(Be/H));ee.push({x:Ye.x,y:Ye.y,t:Be/H})}for(var Be=0;Be<X+1;Be++){var Ye=$a.apply(0,a.concat(Be/X));se.push({x:Ye.x,y:Ye.y,t:Be/X})}for(var Be=0;Be<H;Be++)for(var ht=0;ht<X;ht++){var Tt=ee[Be],Dt=ee[Be+1],Kt=se[ht],gn=se[ht+1],bn=Math.abs(Dt.x-Tt.x)<.001?"y":"x",mn=Math.abs(gn.x-Kt.x)<.001?"y":"x",kn=ga(Tt.x,Tt.y,Dt.x,Dt.y,Kt.x,Kt.y,gn.x,gn.y);if(kn){if(Se[kn.x.toFixed(4)]===kn.y.toFixed(4))continue;Se[kn.x.toFixed(4)]=kn.y.toFixed(4);var sr=Tt.t+Math.abs((kn[bn]-Tt[bn])/(Dt[bn]-Tt[bn]))*(Dt.t-Tt.t),yr=Kt.t+Math.abs((kn[mn]-Kt[mn])/(gn[mn]-Kt[mn]))*(gn.t-Kt.t);sr>=0&&sr<=1&&yr>=0&&yr<=1&&(l?Re+=1:Re.push({x:kn.x,y:kn.y,t1:sr,t2:yr}))}}return Re},Wa=function(i,a,l){i=hr(i),a=hr(a);for(var u,E,P,j,H,X,ee,se,Se,Re,Be=l?0:[],Ye=0,ht=i.length;Ye<ht;Ye++){var Tt=i[Ye];if(Tt[0]==="M")u=H=Tt[1],E=X=Tt[2];else{Tt[0]==="C"?(Se=[u,E].concat(Tt.slice(1)),u=Se[6],E=Se[7]):(Se=[u,E,u,E,H,X,H,X],u=H,E=X);for(var Dt=0,Kt=a.length;Dt<Kt;Dt++){var gn=a[Dt];if(gn[0]==="M")P=ee=gn[1],j=se=gn[2];else{gn[0]==="C"?(Re=[P,j].concat(gn.slice(1)),P=Re[6],j=Re[7]):(Re=[P,j,P,j,ee,se,ee,se],P=ee,j=se);var bn=di(Se,Re,l);if(l)Be+=bn;else{for(var mn=0,kn=bn.length;mn<kn;mn++)bn[mn].segment1=Ye,bn[mn].segment2=Dt,bn[mn].bez1=Se,bn[mn].bez2=Re;Be=Be.concat(bn)}}}}}return Be},Ya=function(i,a){return Wa(i,a)};function li(C,i){var a=[],l=[];function u(E,P){if(E.length===1)a.push(E[0]),l.push(E[0]);else{for(var j=[],H=0;H<E.length-1;H++)H===0&&a.push(E[0]),H===E.length-2&&l.push(E[H+1]),j[H]=[(1-P)*E[H][0]+P*E[H+1][0],(1-P)*E[H][1]+P*E[H+1][1]];u(j,P)}}return C.length&&u(C,i),{left:a,right:l.reverse()}}function ti(C,i,a){var l=[[C[1],C[2]]];a=a||2;var u=[];i[0]==="A"?(l.push(i[6]),l.push(i[7])):i[0]==="C"?(l.push([i[1],i[2]]),l.push([i[3],i[4]]),l.push([i[5],i[6]])):i[0]==="S"||i[0]==="Q"?(l.push([i[1],i[2]]),l.push([i[3],i[4]])):l.push([i[1],i[2]]);for(var E=l,P=1/a,j=0;j<a-1;j++){var H=P/(1-P*j),X=li(E,H);u.push(X.left),E=X.right}u.push(E);var ee=u.map(function(se){var Se=[];return se.length===4&&(Se.push("C"),Se=Se.concat(se[2])),se.length>=3&&(se.length===3&&Se.push("Q"),Se=Se.concat(se[1])),se.length===2&&Se.push("L"),Se=Se.concat(se[se.length-1]),Se});return ee}var Ba=function(i,a,l){if(l===1)return[[].concat(i)];var u=[];if(a[0]==="L"||a[0]==="C"||a[0]==="Q")u=u.concat(ti(i,a,l));else{var E=[].concat(i);E[0]==="M"&&(E[0]="L");for(var P=0;P<=l-1;P++)u.push(E)}return u},Ni=function(i,a){if(i.length===1)return i;var l=i.length-1,u=a.length-1,E=l/u,P=[];if(i.length===1&&i[0][0]==="M"){for(var j=0;j<u-l;j++)i.push(i[0]);return i}for(var j=0;j<u;j++){var H=Math.floor(E*j);P[H]=(P[H]||0)+1}var X=P.reduce(function(ee,se,Se){return Se===l?ee.concat(i[l]):ee.concat(Ba(i[Se],i[Se+1],se))},[]);return X.unshift(i[0]),(a[u]==="Z"||a[u]==="z")&&X.push("Z"),X},ji=function(i,a){if(i.length!==a.length)return!1;var l=!0;return(0,Nn.each)(i,function(u,E){if(u!==a[E])return l=!1,!1}),l};function go(C,i,a){var l=null,u=a;return i<u&&(u=i,l="add"),C<u&&(u=C,l="del"),{type:l,min:u}}var Wi=function(i,a){var l=i.length,u=a.length,E,P,j=0;if(l===0||u===0)return null;for(var H=[],X=0;X<=l;X++)H[X]=[],H[X][0]={min:X};for(var ee=0;ee<=u;ee++)H[0][ee]={min:ee};for(var X=1;X<=l;X++){E=i[X-1];for(var ee=1;ee<=u;ee++){P=a[ee-1],ji(E,P)?j=0:j=1;var se=H[X-1][ee].min+1,Se=H[X][ee-1].min+1,Re=H[X-1][ee-1].min+j;H[X][ee]=go(se,Se,Re)}}return H},uo=function(i,a){var l=Wi(i,a),u=i.length,E=a.length,P=[],j=1,H=1;if(l[u][E].min!==u){for(var X=1;X<=u;X++){var ee=l[X][X].min;H=X;for(var se=j;se<=E;se++)l[X][se].min<ee&&(ee=l[X][se].min,H=se);j=H,l[X][j].type&&P.push({index:X-1,type:l[X][j].type})}for(var X=P.length-1;X>=0;X--)j=P[X].index,P[X].type==="add"?i.splice(j,0,[].concat(i[j])):i.splice(j,1)}u=i.length;var Se=E-u;if(u<E)for(var X=0;X<Se;X++)i[u-1][0]==="z"||i[u-1][0]==="Z"?i.splice(u-2,0,i[u-2]):i.push(i[u-1]),u+=1;return i};function wo(C,i,a){for(var l=[].concat(C),u,E=1/(a+1),P=Io(i)[0],j=1;j<=a;j++)E*=j,u=Math.floor(C.length*E),u===0?l.unshift([P[0]*E+C[u][0]*(1-E),P[1]*E+C[u][1]*(1-E)]):l.splice(u,0,[P[0]*E+C[u][0]*(1-E),P[1]*E+C[u][1]*(1-E)]);return l}function Io(C){var i=[];switch(C[0]){case"M":i.push([C[1],C[2]]);break;case"L":i.push([C[1],C[2]]);break;case"A":i.push([C[6],C[7]]);break;case"Q":i.push([C[3],C[4]]),i.push([C[1],C[2]]);break;case"T":i.push([C[1],C[2]]);break;case"C":i.push([C[5],C[6]]),i.push([C[1],C[2]]),i.push([C[3],C[4]]);break;case"S":i.push([C[3],C[4]]),i.push([C[1],C[2]]);break;case"H":i.push([C[1],C[1]]);break;case"V":i.push([C[1],C[1]]);break;default:}return i}var Vo=function(i,a){if(i.length<=1)return i;for(var l,u=0;u<a.length;u++)if(i[u][0]!==a[u][0])switch(l=Io(i[u]),a[u][0]){case"M":i[u]=["M"].concat(l[0]);break;case"L":i[u]=["L"].concat(l[0]);break;case"A":i[u]=[].concat(a[u]),i[u][6]=l[0][0],i[u][7]=l[0][1];break;case"Q":if(l.length<2)if(u>0)l=wo(l,i[u-1],1);else{i[u]=a[u];break}i[u]=["Q"].concat(l.reduce(function(E,P){return E.concat(P)},[]));break;case"T":i[u]=["T"].concat(l[0]);break;case"C":if(l.length<3)if(u>0)l=wo(l,i[u-1],2);else{i[u]=a[u];break}i[u]=["C"].concat(l.reduce(function(E,P){return E.concat(P)},[]));break;case"S":if(l.length<2)if(u>0)l=wo(l,i[u-1],1);else{i[u]=a[u];break}i[u]=["S"].concat(l.reduce(function(E,P){return E.concat(P)},[]));break;default:i[u]=a[u]}return i},bs=function(){function C(i,a){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=i,this.name=i,this.originalEvent=a,this.timeStamp=a.timeStamp}return C.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},C.prototype.stopPropagation=function(){this.propagationStopped=!0},C.prototype.toString=function(){var i=this.type;return"[Event (type="+i+")]"},C.prototype.save=function(){},C.prototype.restore=function(){},C}(),ts=bs,Ws=function(i,a){return Ws=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var E in u)Object.prototype.hasOwnProperty.call(u,E)&&(l[E]=u[E])},Ws(i,a)};function Al(C,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");Ws(C,i);function a(){this.constructor=C}C.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}var Ql=function(){return Ql=Object.assign||function(a){for(var l,u=1,E=arguments.length;u<E;u++){l=arguments[u];for(var P in l)Object.prototype.hasOwnProperty.call(l,P)&&(a[P]=l[P])}return a},Ql.apply(this,arguments)};function zs(C,i){var a={};for(var l in C)Object.prototype.hasOwnProperty.call(C,l)&&i.indexOf(l)<0&&(a[l]=C[l]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(C);u<l.length;u++)i.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(C,l[u])&&(a[l[u]]=C[l[u]]);return a}function _c(C,i,a,l){var u=arguments.length,E=u<3?i:l===null?l=Object.getOwnPropertyDescriptor(i,a):l,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(C,i,a,l);else for(var j=C.length-1;j>=0;j--)(P=C[j])&&(E=(u<3?P(E):u>3?P(i,a,E):P(i,a))||E);return u>3&&E&&Object.defineProperty(i,a,E),E}function hc(C,i){return function(a,l){i(a,l,C)}}function Hs(C,i,a,l,u,E){function P(Tt){if(Tt!==void 0&&typeof Tt!="function")throw new TypeError("Function expected");return Tt}for(var j=l.kind,H=j==="getter"?"get":j==="setter"?"set":"value",X=!i&&C?l.static?C:C.prototype:null,ee=i||(X?Object.getOwnPropertyDescriptor(X,l.name):{}),se,Se=!1,Re=a.length-1;Re>=0;Re--){var Be={};for(var Ye in l)Be[Ye]=Ye==="access"?{}:l[Ye];for(var Ye in l.access)Be.access[Ye]=l.access[Ye];Be.addInitializer=function(Tt){if(Se)throw new TypeError("Cannot add initializers after decoration has completed");E.push(P(Tt||null))};var ht=(0,a[Re])(j==="accessor"?{get:ee.get,set:ee.set}:ee[H],Be);if(j==="accessor"){if(ht===void 0)continue;if(ht===null||typeof ht!="object")throw new TypeError("Object expected");(se=P(ht.get))&&(ee.get=se),(se=P(ht.set))&&(ee.set=se),(se=P(ht.init))&&u.unshift(se)}else(se=P(ht))&&(j==="field"?u.unshift(se):ee[H]=se)}X&&Object.defineProperty(X,l.name,ee),Se=!0}function Ul(C,i,a){for(var l=arguments.length>2,u=0;u<i.length;u++)a=l?i[u].call(C,a):i[u].call(C);return l?a:void 0}function As(C){return typeof C=="symbol"?C:"".concat(C)}function Ks(C,i,a){return typeof i=="symbol"&&(i=i.description?"[".concat(i.description,"]"):""),Object.defineProperty(C,"name",{configurable:!0,value:a?"".concat(a," ",i):i})}function Cc(C,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(C,i)}function qc(C,i,a,l){function u(E){return E instanceof a?E:new a(function(P){P(E)})}return new(a||(a=Promise))(function(E,P){function j(ee){try{X(l.next(ee))}catch(se){P(se)}}function H(ee){try{X(l.throw(ee))}catch(se){P(se)}}function X(ee){ee.done?E(ee.value):u(ee.value).then(j,H)}X((l=l.apply(C,i||[])).next())})}function Of(C,i){var a={label:0,sent:function(){if(E[0]&1)throw E[1];return E[1]},trys:[],ops:[]},l,u,E,P;return P={next:j(0),throw:j(1),return:j(2)},typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function j(X){return function(ee){return H([X,ee])}}function H(X){if(l)throw new TypeError("Generator is already executing.");for(;P&&(P=0,X[0]&&(a=0)),a;)try{if(l=1,u&&(E=X[0]&2?u.return:X[0]?u.throw||((E=u.return)&&E.call(u),0):u.next)&&!(E=E.call(u,X[1])).done)return E;switch(u=0,E&&(X=[X[0]&2,E.value]),X[0]){case 0:case 1:E=X;break;case 4:return a.label++,{value:X[1],done:!1};case 5:a.label++,u=X[1],X=[0];continue;case 7:X=a.ops.pop(),a.trys.pop();continue;default:if(E=a.trys,!(E=E.length>0&&E[E.length-1])&&(X[0]===6||X[0]===2)){a=0;continue}if(X[0]===3&&(!E||X[1]>E[0]&&X[1]<E[3])){a.label=X[1];break}if(X[0]===6&&a.label<E[1]){a.label=E[1],E=X;break}if(E&&a.label<E[2]){a.label=E[2],a.ops.push(X);break}E[2]&&a.ops.pop(),a.trys.pop();continue}X=i.call(C,a)}catch(ee){X=[6,ee],u=0}finally{l=E=0}if(X[0]&5)throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}}var _f=Object.create?function(C,i,a,l){l===void 0&&(l=a);var u=Object.getOwnPropertyDescriptor(i,a);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(C,l,u)}:function(C,i,a,l){l===void 0&&(l=a),C[l]=i[a]};function sd(C,i){for(var a in C)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&_f(i,C,a)}function ud(C){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&C[i],l=0;if(a)return a.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&l>=C.length&&(C=void 0),{value:C&&C[l++],done:!C}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function Su(C,i){var a=typeof Symbol=="function"&&C[Symbol.iterator];if(!a)return C;var l=a.call(C),u,E=[],P;try{for(;(i===void 0||i-- >0)&&!(u=l.next()).done;)E.push(u.value)}catch(j){P={error:j}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(P)throw P.error}}return E}function Uu(){for(var C=[],i=0;i<arguments.length;i++)C=C.concat(Su(arguments[i]));return C}function mp(){for(var C=0,i=0,a=arguments.length;i<a;i++)C+=arguments[i].length;for(var l=Array(C),u=0,i=0;i<a;i++)for(var E=arguments[i],P=0,j=E.length;P<j;P++,u++)l[u]=E[P];return l}function wv(C,i,a){if(a||arguments.length===2)for(var l=0,u=i.length,E;l<u;l++)(E||!(l in i))&&(E||(E=Array.prototype.slice.call(i,0,l)),E[l]=i[l]);return C.concat(E||Array.prototype.slice.call(i))}function Au(C){return this instanceof Au?(this.v=C,this):new Au(C)}function qd(C,i,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=a.apply(C,i||[]),u,E=[];return u={},P("next"),P("throw"),P("return"),u[Symbol.asyncIterator]=function(){return this},u;function P(Se){l[Se]&&(u[Se]=function(Re){return new Promise(function(Be,Ye){E.push([Se,Re,Be,Ye])>1||j(Se,Re)})})}function j(Se,Re){try{H(l[Se](Re))}catch(Be){se(E[0][3],Be)}}function H(Se){Se.value instanceof Au?Promise.resolve(Se.value.v).then(X,ee):se(E[0][2],Se)}function X(Se){j("next",Se)}function ee(Se){j("throw",Se)}function se(Se,Re){Se(Re),E.shift(),E.length&&j(E[0][0],E[0][1])}}function Ad(C){var i,a;return i={},l("next"),l("throw",function(u){throw u}),l("return"),i[Symbol.iterator]=function(){return this},i;function l(u,E){i[u]=C[u]?function(P){return(a=!a)?{value:Au(C[u](P)),done:!1}:E?E(P):P}:E}}function ad(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=C[Symbol.asyncIterator],a;return i?i.call(C):(C=typeof ud=="function"?ud(C):C[Symbol.iterator](),a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a);function l(E){a[E]=C[E]&&function(P){return new Promise(function(j,H){P=C[E](P),u(j,H,P.done,P.value)})}}function u(E,P,j,H){Promise.resolve(H).then(function(X){E({value:X,done:j})},P)}}function fp(C,i){return Object.defineProperty?Object.defineProperty(C,"raw",{value:i}):C.raw=i,C}var Tv=Object.create?function(C,i){Object.defineProperty(C,"default",{enumerable:!0,value:i})}:function(C,i){C.default=i};function hv(C){if(C&&C.__esModule)return C;var i={};if(C!=null)for(var a in C)a!=="default"&&Object.prototype.hasOwnProperty.call(C,a)&&_f(i,C,a);return Tv(i,C),i}function Bh(C){return C&&C.__esModule?C:{default:C}}function Mh(C,i,a,l){if(a==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?C!==i||!l:!i.has(C))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?l:a==="a"?l.call(C):l?l.value:i.get(C)}function xp(C,i,a,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?C!==i||!u:!i.has(C))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(C,a):u?u.value=a:i.set(C,a),a}function Sh(C,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof C=="function"?i===C:C.has(i)}function Qf(C,i,a){if(i!=null){if(typeof i!="object"&&typeof i!="function")throw new TypeError("Object expected.");var l;if(a){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");l=i[Symbol.asyncDispose]}if(l===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");l=i[Symbol.dispose]}if(typeof l!="function")throw new TypeError("Object not disposable.");C.stack.push({value:i,dispose:l,async:a})}else a&&C.stack.push({async:!0});return i}var Nm=typeof SuppressedError=="function"?SuppressedError:function(C,i,a){var l=new Error(a);return l.name="SuppressedError",l.error=C,l.suppressed=i,l};function av(C){function i(l){C.error=C.hasError?new Nm(l,C.error,"An error was suppressed during disposal."):l,C.hasError=!0}function a(){for(;C.stack.length;){var l=C.stack.pop();try{var u=l.dispose&&l.dispose.call(l.value);if(l.async)return Promise.resolve(u).then(a,function(E){return i(E),a()})}catch(E){i(E)}}if(C.hasError)throw C.error}return a()}var yu={__extends:Al,__assign:Ql,__rest:zs,__decorate:_c,__param:hc,__metadata:Cc,__awaiter:qc,__generator:Of,__createBinding:_f,__exportStar:sd,__values:ud,__read:Su,__spread:Uu,__spreadArrays:mp,__spreadArray:wv,__await:Au,__asyncGenerator:qd,__asyncDelegator:Ad,__asyncValues:ad,__makeTemplateObject:fp,__importStar:hv,__importDefault:Bh,__classPrivateFieldGet:Mh,__classPrivateFieldSet:xp,__classPrivateFieldIn:Sh,__addDisposableResource:Qf,__disposeResources:av};function kp(C,i){var a=C.indexOf(i);a!==-1&&C.splice(a,1)}var Md=typeof window!="undefined"&&typeof window.document!="undefined";function kd(C,i){if(C.isCanvas())return!0;for(var a=i.getParent(),l=!1;a;){if(a===C){l=!0;break}a=a.getParent()}return l}function mv(C){return C.cfg.visible&&C.cfg.capture}var Jp=function(C){Al(i,C);function i(a){var l=C.call(this)||this;l.destroyed=!1;var u=l.getDefaultCfg();return l.cfg=(0,Nn.mix)(u,a),l}return i.prototype.getDefaultCfg=function(){return{}},i.prototype.get=function(a){return this.cfg[a]},i.prototype.set=function(a,l){this.cfg[a]=l},i.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},i}(gy),iv=Jp,kh=o(82195),ym=function(C,i,a){if(a||arguments.length===2)for(var l=0,u=i.length,E;l<u;l++)(E||!(l in i))&&(E||(E=Array.prototype.slice.call(i,0,l)),E[l]=i[l]);return C.concat(E||Array.prototype.slice.call(i))},cm=function(){function C(i,a,l){this.name=i,this.version=a,this.os=l,this.type="browser"}return C}(),Ov=function(){function C(i){this.version=i,this.type="node",this.name="node",this.os=kh.platform}return C}(),rl=function(){function C(i,a,l,u){this.name=i,this.version=a,this.os=l,this.bot=u,this.type="bot-device"}return C}(),sc=function(){function C(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return C}(),hf=function(){function C(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return C}(),ld=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,cp=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,rp=3,pd=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",ld]],Wv=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Iv(C){return C?Sg(C):typeof document=="undefined"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"?new hf:typeof navigator!="undefined"?Sg(navigator.userAgent):bm()}function V_(C){return C!==""&&pd.reduce(function(i,a){var l=a[0],u=a[1];if(i)return i;var E=u.exec(C);return!!E&&[l,E]},!1)}function z_(C){var i=V_(C);return i?i[0]:null}function Sg(C){var i=V_(C);if(!i)return null;var a=i[0],l=i[1];if(a==="searchbot")return new sc;var u=l[1]&&l[1].split(".").join("_").split("_").slice(0,3);u?u.length<rp&&(u=ym(ym([],u,!0),G0(rp-u.length),!0)):u=[];var E=u.join("."),P=x0(C),j=cp.exec(C);return j&&j[1]?new rl(a,E,P,j[1]):new cm(a,E,P)}function x0(C){for(var i=0,a=Wv.length;i<a;i++){var l=Wv[i],u=l[0],E=l[1],P=E.exec(C);if(P)return u}return null}function bm(){var C=typeof kh!="undefined"&&kh.version;return C?new Ov(kh.version.slice(1)):null}function G0(C){for(var i=[],a=0;a<C;a++)i.push("0");return i}function W_(C,i){var a=[],l=C[0],u=C[1],E=C[2],P=C[3],j=C[4],H=C[5],X=C[6],ee=C[7],se=C[8],Se=i[0],Re=i[1],Be=i[2],Ye=i[3],ht=i[4],Tt=i[5],Dt=i[6],Kt=i[7],gn=i[8];return a[0]=Se*l+Re*P+Be*X,a[1]=Se*u+Re*j+Be*ee,a[2]=Se*E+Re*H+Be*se,a[3]=Ye*l+ht*P+Tt*X,a[4]=Ye*u+ht*j+Tt*ee,a[5]=Ye*E+ht*H+Tt*se,a[6]=Dt*l+Kt*P+gn*X,a[7]=Dt*u+Kt*j+gn*ee,a[8]=Dt*E+Kt*H+gn*se,a}function ep(C,i){var a=[],l=i[0],u=i[1];return a[0]=C[0]*l+C[3]*u+C[6],a[1]=C[1]*l+C[4]*u+C[7],a}function ap(C){var i=[],a=C[0],l=C[1],u=C[2],E=C[3],P=C[4],j=C[5],H=C[6],X=C[7],ee=C[8],se=ee*P-j*X,Se=-ee*E+j*H,Re=X*E-P*H,Be=a*se+l*Se+u*Re;return Be?(Be=1/Be,i[0]=se*Be,i[1]=(-ee*l+u*X)*Be,i[2]=(j*l-u*P)*Be,i[3]=Se*Be,i[4]=(ee*a-u*H)*Be,i[5]=(-j*a+u*E)*Be,i[6]=Re*Be,i[7]=(-X*a+l*H)*Be,i[8]=(P*a-l*E)*Be,i):null}var um=U_,x_="matrix",vP=["zIndex","capture","visible","type"],mb=["repeat"],hP=":",mP="*";function gP(C){for(var i=[],a=0;a<C.length;a++)(0,Nn.isArray)(C[a])?i.push([].concat(C[a])):i.push(C[a]);return i}function Fx(C,i){var a={},l=i.attrs;for(var u in C)a[u]=l[u];return a}function j2(C,i){var a={},l=i.attr();return(0,Nn.each)(C,function(u,E){mb.indexOf(E)===-1&&!(0,Nn.isEqual)(l[E],u)&&(a[E]=u)}),a}function ES(C,i){if(i.onFrame)return C;var a=i.startTime,l=i.delay,u=i.duration,E=Object.prototype.hasOwnProperty;return(0,Nn.each)(C,function(P){a+l<P.startTime+P.delay+P.duration&&u>P.delay&&(0,Nn.each)(i.toAttrs,function(j,H){E.call(P.toAttrs,H)&&(delete P.toAttrs[H],delete P.fromAttrs[H])})}),C}var dI=function(C){Al(i,C);function i(a){var l=C.call(this,a)||this;l.attrs={};var u=l.getDefaultAttrs();return(0,Nn.mix)(u,a.attrs),l.attrs=u,l.initAttrs(u),l.initAnimate(),l}return i.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},i.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},i.prototype.onCanvasChange=function(a){},i.prototype.initAttrs=function(a){},i.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},i.prototype.isGroup=function(){return!1},i.prototype.getParent=function(){return this.get("parent")},i.prototype.getCanvas=function(){return this.get("canvas")},i.prototype.attr=function(){for(var a,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var E=l[0],P=l[1];if(!E)return this.attrs;if((0,Nn.isObject)(E)){for(var j in E)this.setAttr(j,E[j]);return this.afterAttrsChange(E),this}return l.length===2?(this.setAttr(E,P),this.afterAttrsChange((a={},a[E]=P,a)),this):this.attrs[E]},i.prototype.isClipped=function(a,l){var u=this.getClip();return u&&!u.isHit(a,l)},i.prototype.setAttr=function(a,l){var u=this.attrs[a];u!==l&&(this.attrs[a]=l,this.onAttrChange(a,l,u))},i.prototype.onAttrChange=function(a,l,u){a==="matrix"&&this.set("totalMatrix",null)},i.prototype.afterAttrsChange=function(a){if(this.cfg.isClipShape){var l=this.cfg.applyTo;l&&l.onCanvasChange("clip")}else this.onCanvasChange("attr")},i.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},i.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},i.prototype.setZIndex=function(a){this.set("zIndex",a);var l=this.getParent();return l&&l.sort(),this},i.prototype.toFront=function(){var a=this.getParent();if(!!a){var l=a.getChildren(),u=this.get("el"),E=l.indexOf(this);l.splice(E,1),l.push(this),this.onCanvasChange("zIndex")}},i.prototype.toBack=function(){var a=this.getParent();if(!!a){var l=a.getChildren(),u=this.get("el"),E=l.indexOf(this);l.splice(E,1),l.unshift(this),this.onCanvasChange("zIndex")}},i.prototype.remove=function(a){a===void 0&&(a=!0);var l=this.getParent();l?(kp(l.getChildren(),this),l.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),a&&this.destroy()},i.prototype.resetMatrix=function(){this.attr(x_,this.getDefaultMatrix()),this.onCanvasChange("matrix")},i.prototype.getMatrix=function(){return this.attr(x_)},i.prototype.setMatrix=function(a){this.attr(x_,a),this.onCanvasChange("matrix")},i.prototype.getTotalMatrix=function(){var a=this.cfg.totalMatrix;if(!a){var l=this.attr("matrix"),u=this.cfg.parentMatrix;u&&l?a=W_(u,l):a=l||u,this.set("totalMatrix",a)}return a},i.prototype.applyMatrix=function(a){var l=this.attr("matrix"),u=null;a&&l?u=W_(a,l):u=l||a,this.set("totalMatrix",u),this.set("parentMatrix",a)},i.prototype.getDefaultMatrix=function(){return null},i.prototype.applyToMatrix=function(a){var l=this.attr("matrix");return l?ep(l,a):a},i.prototype.invertFromMatrix=function(a){var l=this.attr("matrix");if(l){var u=ap(l);if(u)return ep(u,a)}return a},i.prototype.setClip=function(a){var l=this.getCanvas(),u=null;if(a){var E=this.getShapeBase(),P=(0,Nn.upperFirst)(a.type),j=E[P];j&&(u=new j({type:a.type,isClipShape:!0,applyTo:this,attrs:a.attrs,canvas:l}))}return this.set("clipShape",u),this.onCanvasChange("clip"),u},i.prototype.getClip=function(){var a=this.cfg.clipShape;return a||null},i.prototype.clone=function(){var a=this,l=this.attrs,u={};(0,Nn.each)(l,function(j,H){(0,Nn.isArray)(l[H])?u[H]=gP(l[H]):u[H]=l[H]});var E=this.constructor,P=new E({attrs:u});return(0,Nn.each)(vP,function(j){P.set(j,a.get(j))}),P},i.prototype.destroy=function(){var a=this.destroyed;a||(this.attrs={},C.prototype.destroy.call(this))},i.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},i.prototype.animate=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];if(!(!this.get("timeline")&&!this.get("canvas"))){this.set("animating",!0);var u=this.get("timeline");u||(u=this.get("canvas").get("timeline"),this.set("timeline",u));var E=this.get("animations")||[];u.timer||u.initTimer();var P=a[0],j=a[1],H=a[2],X=H===void 0?"easeLinear":H,ee=a[3],se=ee===void 0?Nn.noop:ee,Se=a[4],Re=Se===void 0?0:Se,Be,Ye,ht,Tt,Dt;(0,Nn.isFunction)(P)?(Be=P,P={}):(0,Nn.isObject)(P)&&P.onFrame&&(Be=P.onFrame,Ye=P.repeat),(0,Nn.isObject)(j)?(Dt=j,j=Dt.duration,X=Dt.easing||"easeLinear",Re=Dt.delay||0,Ye=Dt.repeat||Ye||!1,se=Dt.callback||Nn.noop,ht=Dt.pauseCallback||Nn.noop,Tt=Dt.resumeCallback||Nn.noop):((0,Nn.isNumber)(se)&&(Re=se,se=null),(0,Nn.isFunction)(X)?(se=X,X="easeLinear"):X=X||"easeLinear");var Kt=j2(P,this),gn={fromAttrs:Fx(Kt,this),toAttrs:Kt,duration:j,easing:X,repeat:Ye,callback:se,pauseCallback:ht,resumeCallback:Tt,delay:Re,startTime:u.getTime(),id:(0,Nn.uniqueId)(),onFrame:Be,pathFormatted:!1};E.length>0?E=ES(E,gn):u.addAnimator(this),E.push(gn),this.set("animations",E),this.set("_pause",{isPaused:!1})}},i.prototype.stopAnimate=function(a){var l=this;a===void 0&&(a=!0);var u=this.get("animations");(0,Nn.each)(u,function(E){a&&(E.onFrame?l.attr(E.onFrame(1)):l.attr(E.toAttrs)),E.callback&&E.callback()}),this.set("animating",!1),this.set("animations",[])},i.prototype.pauseAnimate=function(){var a=this.get("timeline"),l=this.get("animations"),u=a.getTime();return(0,Nn.each)(l,function(E){E._paused=!0,E._pauseTime=u,E.pauseCallback&&E.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:u}),this},i.prototype.resumeAnimate=function(){var a=this.get("timeline"),l=a.getTime(),u=this.get("animations"),E=this.get("_pause").pauseTime;return(0,Nn.each)(u,function(P){P.startTime=P.startTime+(l-E),P._paused=!1,P._pauseTime=null,P.resumeCallback&&P.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",u),this},i.prototype.emitDelegation=function(a,l){var u=this,E=l.propagationPath,P=this.getEvents(),j;a==="mouseenter"?j=l.fromShape:a==="mouseleave"&&(j=l.toShape);for(var H=function(Re){var Be=E[Re],Ye=Be.get("name");if(Ye){if((Be.isGroup()||Be.isCanvas&&Be.isCanvas())&&j&&kd(Be,j))return"break";(0,Nn.isArray)(Ye)?(0,Nn.each)(Ye,function(ht){u.emitDelegateEvent(Be,ht,l)}):X.emitDelegateEvent(Be,Ye,l)}},X=this,ee=0;ee<E.length;ee++){var se=H(ee);if(se==="break")break}},i.prototype.emitDelegateEvent=function(a,l,u){var E=this.getEvents(),P=l+hP+u.type;(E[P]||E[mP])&&(u.name=P,u.currentTarget=a,u.delegateTarget=this,u.delegateObject=a.get("delegateObject"),this.emit(P,u))},i.prototype.translate=function(a,l){a===void 0&&(a=0),l===void 0&&(l=0);var u=this.getMatrix(),E=um(u,[["t",a,l]]);return this.setMatrix(E),this},i.prototype.move=function(a,l){var u=this.attr("x")||0,E=this.attr("y")||0;return this.translate(a-u,l-E),this},i.prototype.moveTo=function(a,l){return this.move(a,l)},i.prototype.scale=function(a,l){var u=this.getMatrix(),E=um(u,[["s",a,l||a]]);return this.setMatrix(E),this},i.prototype.rotate=function(a){var l=this.getMatrix(),u=um(l,[["r",a]]);return this.setMatrix(u),this},i.prototype.rotateAtStart=function(a){var l=this.attr(),u=l.x,E=l.y,P=this.getMatrix(),j=um(P,[["t",-u,-E],["r",a],["t",u,E]]);return this.setMatrix(j),this},i.prototype.rotateAtPoint=function(a,l,u){var E=this.getMatrix(),P=um(E,[["t",-a,-l],["r",u],["t",a,l]]);return this.setMatrix(P),this},i}(iv),E_=dI,yA={},B2="_INDEX";function SS(C,i){if(C.set("canvas",i),C.isGroup()){var a=C.get("children");a.length&&a.forEach(function(l){SS(l,i)})}}function pI(C,i){if(C.set("timeline",i),C.isGroup()){var a=C.get("children");a.length&&a.forEach(function(l){pI(l,i)})}}function a7(C,i){var a=C.getChildren();return a.indexOf(i)>=0}function _P(C,i,a){a===void 0&&(a=!0),a?i.destroy():(i.set("parent",null),i.set("canvas",null)),kp(C.getChildren(),i)}function U2(C){return function(i,a){var l=C(i,a);return l===0?i[B2]-a[B2]:l}}var vI=function(C){Al(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.isCanvas=function(){return!1},i.prototype.getBBox=function(){var a=Infinity,l=-Infinity,u=Infinity,E=-Infinity,P=this.getChildren().filter(function(H){return H.get("visible")&&(!H.isGroup()||H.isGroup()&&H.getChildren().length>0)});P.length>0?(0,Nn.each)(P,function(H){var X=H.getBBox(),ee=X.minX,se=X.maxX,Se=X.minY,Re=X.maxY;ee<a&&(a=ee),se>l&&(l=se),Se<u&&(u=Se),Re>E&&(E=Re)}):(a=0,l=0,u=0,E=0);var j={x:a,y:u,minX:a,minY:u,maxX:l,maxY:E,width:l-a,height:E-u};return j},i.prototype.getCanvasBBox=function(){var a=Infinity,l=-Infinity,u=Infinity,E=-Infinity,P=this.getChildren().filter(function(H){return H.get("visible")&&(!H.isGroup()||H.isGroup()&&H.getChildren().length>0)});P.length>0?(0,Nn.each)(P,function(H){var X=H.getCanvasBBox(),ee=X.minX,se=X.maxX,Se=X.minY,Re=X.maxY;ee<a&&(a=ee),se>l&&(l=se),Se<u&&(u=Se),Re>E&&(E=Re)}):(a=0,l=0,u=0,E=0);var j={x:a,y:u,minX:a,minY:u,maxX:l,maxY:E,width:l-a,height:E-u};return j},i.prototype.getDefaultCfg=function(){var a=C.prototype.getDefaultCfg.call(this);return a.children=[],a},i.prototype.onAttrChange=function(a,l,u){if(C.prototype.onAttrChange.call(this,a,l,u),a==="matrix"){var E=this.getTotalMatrix();this._applyChildrenMarix(E)}},i.prototype.applyMatrix=function(a){var l=this.getTotalMatrix();C.prototype.applyMatrix.call(this,a);var u=this.getTotalMatrix();u!==l&&this._applyChildrenMarix(u)},i.prototype._applyChildrenMarix=function(a){var l=this.getChildren();(0,Nn.each)(l,function(u){u.applyMatrix(a)})},i.prototype.addShape=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var u=a[0],E=a[1];(0,Nn.isObject)(u)?E=u:E.type=u;var P=yA[E.type];P||(P=(0,Nn.upperFirst)(E.type),yA[E.type]=P);var j=this.getShapeBase(),H=new j[P](E);return this.add(H),H},i.prototype.addGroup=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var u=a[0],E=a[1],P;if((0,Nn.isFunction)(u))E?P=new u(E):P=new u({parent:this});else{var j=u||{},H=this.getGroupBase();P=new H(j)}return this.add(P),P},i.prototype.getCanvas=function(){var a;return this.isCanvas()?a=this:a=this.get("canvas"),a},i.prototype.getShape=function(a,l,u){if(!mv(this))return null;var E=this.getChildren(),P;if(this.isCanvas())P=this._findShape(E,a,l,u);else{var j=[a,l,1];j=this.invertFromMatrix(j),this.isClipped(j[0],j[1])||(P=this._findShape(E,j[0],j[1],u))}return P},i.prototype._findShape=function(a,l,u,E){for(var P=null,j=a.length-1;j>=0;j--){var H=a[j];if(mv(H)&&(H.isGroup()?P=H.getShape(l,u,E):H.isHit(l,u)&&(P=H)),P)break}return P},i.prototype.add=function(a){var l=this.getCanvas(),u=this.getChildren(),E=this.get("timeline"),P=a.getParent();P&&_P(P,a,!1),a.set("parent",this),l&&SS(a,l),E&&pI(a,E),u.push(a),a.onCanvasChange("add"),this._applyElementMatrix(a)},i.prototype._applyElementMatrix=function(a){var l=this.getTotalMatrix();l&&a.applyMatrix(l)},i.prototype.getChildren=function(){return this.get("children")},i.prototype.sort=function(){var a=this.getChildren();(0,Nn.each)(a,function(l,u){return l[B2]=u,l}),a.sort(U2(function(l,u){return l.get("zIndex")-u.get("zIndex")})),this.onCanvasChange("sort")},i.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var a=this.getChildren(),l=a.length-1;l>=0;l--)a[l].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},i.prototype.destroy=function(){this.get("destroyed")||(this.clear(),C.prototype.destroy.call(this))},i.prototype.getFirst=function(){return this.getChildByIndex(0)},i.prototype.getLast=function(){var a=this.getChildren();return this.getChildByIndex(a.length-1)},i.prototype.getChildByIndex=function(a){var l=this.getChildren();return l[a]},i.prototype.getCount=function(){var a=this.getChildren();return a.length},i.prototype.contain=function(a){var l=this.getChildren();return l.indexOf(a)>-1},i.prototype.removeChild=function(a,l){l===void 0&&(l=!0),this.contain(a)&&a.remove(l)},i.prototype.findAll=function(a){var l=[],u=this.getChildren();return(0,Nn.each)(u,function(E){a(E)&&l.push(E),E.isGroup()&&(l=l.concat(E.findAll(a)))}),l},i.prototype.find=function(a){var l=null,u=this.getChildren();return(0,Nn.each)(u,function(E){if(a(E)?l=E:E.isGroup()&&(l=E.find(a)),l)return!1}),l},i.prototype.findById=function(a){return this.find(function(l){return l.get("id")===a})},i.prototype.findByClassName=function(a){return this.find(function(l){return l.get("className")===a})},i.prototype.findAllByName=function(a){return this.findAll(function(l){return l.get("name")===a})},i}(E_),bA=vI,jx=0,gb=0,Sy=0,xA=1e3,_b,Bx,Ux=0,S_=0,CS=0,Zx=typeof performance=="object"&&performance.now?performance:Date,yP=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(C){setTimeout(C,17)};function Z2(){return S_||(yP(hI),S_=Zx.now()+CS)}function hI(){S_=0}function Lm(){this._call=this._time=this._next=null}Lm.prototype=$g.prototype={constructor:Lm,restart:function(i,a,l){if(typeof i!="function")throw new TypeError("callback is not a function");l=(l==null?Z2():+l)+(a==null?0:+a),!this._next&&Bx!==this&&(Bx?Bx._next=this:_b=this,Bx=this),this._call=i,this._time=l,wS()},stop:function(){this._call&&(this._call=null,this._time=Infinity,wS())}};function $g(C,i,a){var l=new Lm;return l.restart(C,i,a),l}function V2(){Z2(),++jx;for(var C=_b,i;C;)(i=S_-C._time)>=0&&C._call.call(null,i),C=C._next;--jx}function t1(){S_=(Ux=Zx.now())+CS,jx=gb=0;try{V2()}finally{jx=0,bP(),S_=0}}function z2(){var C=Zx.now(),i=C-Ux;i>xA&&(CS-=i,Ux=C)}function bP(){for(var C,i=_b,a,l=Infinity;i;)i._call?(l>i._time&&(l=i._time),C=i,i=i._next):(a=i._next,i._next=null,i=C?C._next=a:_b=a);Bx=C,wS(l)}function wS(C){if(!jx){gb&&(gb=clearTimeout(gb));var i=C-S_;i>24?(C<Infinity&&(gb=setTimeout(t1,C-Zx.now()-CS)),Sy&&(Sy=clearInterval(Sy))):(Sy||(Ux=Zx.now(),Sy=setInterval(z2,xA)),jx=1,yP(t1))}}function W2(C,i,a){C.prototype=i.prototype=a,a.constructor=C}function EA(C,i){var a=Object.create(C.prototype);for(var l in i)a[l]=i[l];return a}function n1(){}var Vx=.7,yb=1/Vx,r1="\\s*([+-]?\\d+)\\s*",$0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",r_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",H2=/^#([0-9a-f]{3,8})$/,a1=new RegExp("^rgb\\(".concat(r1,",").concat(r1,",").concat(r1,"\\)$")),G2=new RegExp("^rgb\\(".concat(r_,",").concat(r_,",").concat(r_,"\\)$")),$2=new RegExp("^rgba\\(".concat(r1,",").concat(r1,",").concat(r1,",").concat($0,"\\)$")),SA=new RegExp("^rgba\\(".concat(r_,",").concat(r_,",").concat(r_,",").concat($0,"\\)$")),zx=new RegExp("^hsl\\(".concat($0,",").concat(r_,",").concat(r_,"\\)$")),TS=new RegExp("^hsla\\(".concat($0,",").concat(r_,",").concat(r_,",").concat($0,"\\)$")),K2={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};W2(n1,Hx,{copy:function(i){return Object.assign(new this.constructor,this,i)},displayable:function(){return this.rgb().displayable()},hex:Y2,formatHex:Y2,formatHex8:X2,formatHsl:xP,formatRgb:Wx,toString:Wx});function Y2(){return this.rgb().formatHex()}function X2(){return this.rgb().formatHex8()}function xP(){return wA(this).formatHsl()}function Wx(){return this.rgb().formatRgb()}function Hx(C){var i,a;return C=(C+"").trim().toLowerCase(),(i=H2.exec(C))?(a=i[1].length,i=parseInt(i[1],16),a===6?J2(i):a===3?new wg(i>>8&15|i>>4&240,i>>4&15|i&240,(i&15)<<4|i&15,1):a===8?Cg(i>>24&255,i>>16&255,i>>8&255,(i&255)/255):a===4?Cg(i>>12&15|i>>8&240,i>>8&15|i>>4&240,i>>4&15|i&240,((i&15)<<4|i&15)/255):null):(i=a1.exec(C))?new wg(i[1],i[2],i[3],1):(i=G2.exec(C))?new wg(i[1]*255/100,i[2]*255/100,i[3]*255/100,1):(i=$2.exec(C))?Cg(i[1],i[2],i[3],i[4]):(i=SA.exec(C))?Cg(i[1]*255/100,i[2]*255/100,i[3]*255/100,i[4]):(i=zx.exec(C))?Gx(i[1],i[2]/100,i[3]/100,1):(i=TS.exec(C))?Gx(i[1],i[2]/100,i[3]/100,i[4]):K2.hasOwnProperty(C)?J2(K2[C]):C==="transparent"?new wg(NaN,NaN,NaN,0):null}function J2(C){return new wg(C>>16&255,C>>8&255,C&255,1)}function Cg(C,i,a,l){return l<=0&&(C=i=a=NaN),new wg(C,i,a,l)}function CA(C){return C instanceof n1||(C=Hx(C)),C?(C=C.rgb(),new wg(C.r,C.g,C.b,C.opacity)):new wg}function bb(C,i,a,l){return arguments.length===1?CA(C):new wg(C,i,a,l==null?1:l)}function wg(C,i,a,l){this.r=+C,this.g=+i,this.b=+a,this.opacity=+l}W2(wg,bb,EA(n1,{brighter:function(i){return i=i==null?yb:Math.pow(yb,i),new wg(this.r*i,this.g*i,this.b*i,this.opacity)},darker:function(i){return i=i==null?Vx:Math.pow(Vx,i),new wg(this.r*i,this.g*i,this.b*i,this.opacity)},rgb:function(){return this},clamp:function(){return new wg(E0(this.r),E0(this.g),E0(this.b),i1(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:EP,formatHex:EP,formatHex8:C_,formatRgb:AS,toString:AS}));function EP(){return"#".concat(Tg(this.r)).concat(Tg(this.g)).concat(Tg(this.b))}function C_(){return"#".concat(Tg(this.r)).concat(Tg(this.g)).concat(Tg(this.b)).concat(Tg((isNaN(this.opacity)?1:this.opacity)*255))}function AS(){var C=i1(this.opacity);return"".concat(C===1?"rgb(":"rgba(").concat(E0(this.r),", ").concat(E0(this.g),", ").concat(E0(this.b)).concat(C===1?")":", ".concat(C,")"))}function i1(C){return isNaN(C)?1:Math.max(0,Math.min(1,C))}function E0(C){return Math.max(0,Math.min(255,Math.round(C)||0))}function Tg(C){return C=E0(C),(C<16?"0":"")+C.toString(16)}function Gx(C,i,a,l){return l<=0?C=i=a=NaN:a<=0||a>=1?C=i=NaN:i<=0&&(C=NaN),new ig(C,i,a,l)}function wA(C){if(C instanceof ig)return new ig(C.h,C.s,C.l,C.opacity);if(C instanceof n1||(C=Hx(C)),!C)return new ig;if(C instanceof ig)return C;C=C.rgb();var i=C.r/255,a=C.g/255,l=C.b/255,u=Math.min(i,a,l),E=Math.max(i,a,l),P=NaN,j=E-u,H=(E+u)/2;return j?(i===E?P=(a-l)/j+(a<l)*6:a===E?P=(l-i)/j+2:P=(i-a)/j+4,j/=H<.5?E+u:2-E-u,P*=60):j=H>0&&H<1?0:P,new ig(P,j,H,C.opacity)}function TA(C,i,a,l){return arguments.length===1?wA(C):new ig(C,i,a,l==null?1:l)}function ig(C,i,a,l){this.h=+C,this.s=+i,this.l=+a,this.opacity=+l}W2(ig,TA,EA(n1,{brighter:function(i){return i=i==null?yb:Math.pow(yb,i),new ig(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?Vx:Math.pow(Vx,i),new ig(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=this.h%360+(this.h<0)*360,a=isNaN(i)||isNaN(this.s)?0:this.s,l=this.l,u=l+(l<.5?l:1-l)*a,E=2*l-u;return new wg(Q2(i>=240?i-240:i+120,E,u),Q2(i,E,u),Q2(i<120?i+240:i-120,E,u),this.opacity)},clamp:function(){return new ig(MS(this.h),kS(this.s),kS(this.l),i1(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var i=i1(this.opacity);return"".concat(i===1?"hsl(":"hsla(").concat(MS(this.h),", ").concat(kS(this.s)*100,"%, ").concat(kS(this.l)*100,"%").concat(i===1?")":", ".concat(i,")"))}}));function MS(C){return C=(C||0)%360,C<0?C+360:C}function kS(C){return Math.max(0,Math.min(1,C||0))}function Q2(C,i,a){return(C<60?i+(a-i)*C/60:C<180?a:C<240?i+(a-i)*(240-C)/60:i)*255}function PS(C,i,a,l,u){var E=C*C,P=E*C;return((1-3*C+3*E-P)*i+(4-6*E+3*P)*a+(1+3*C+3*E-3*P)*l+P*u)/6}function q2(C){var i=C.length-1;return function(a){var l=a<=0?a=0:a>=1?(a=1,i-1):Math.floor(a*i),u=C[l],E=C[l+1],P=l>0?C[l-1]:2*u-E,j=l<i-1?C[l+2]:2*E-u;return PS((a-l/i)*i,P,u,E,j)}}function SP(C){var i=C.length;return function(a){var l=Math.floor(((a%=1)<0?++a:a)*i),u=C[(l+i-1)%i],E=C[l%i],P=C[(l+1)%i],j=C[(l+2)%i];return PS((a-l/i)*i,u,E,P,j)}}var CP=function(C){return function(){return C}};function mI(C,i){return function(a){return C+a*i}}function Pp(C,i,a){return C=Math.pow(C,a),i=Math.pow(i,a)-C,a=1/a,function(l){return Math.pow(C+l*i,a)}}function Iu(C,i){var a=i-C;return a?mI(C,a>180||a<-180?a-360*Math.round(a/360):a):constant(isNaN(C)?i:C)}function fd(C){return(C=+C)==1?Np:function(i,a){return a-i?Pp(i,a,C):CP(isNaN(i)?a:i)}}function Np(C,i){var a=i-C;return a?mI(C,a):CP(isNaN(C)?i:C)}var Uh=function C(i){var a=fd(i);function l(u,E){var P=a((u=bb(u)).r,(E=bb(E)).r),j=a(u.g,E.g),H=a(u.b,E.b),X=Np(u.opacity,E.opacity);return function(ee){return u.r=P(ee),u.g=j(ee),u.b=H(ee),u.opacity=X(ee),u+""}}return l.gamma=C,l}(1);function Cy(C){return function(i){var a=i.length,l=new Array(a),u=new Array(a),E=new Array(a),P,j;for(P=0;P<a;++P)j=bb(i[P]),l[P]=j.r||0,u[P]=j.g||0,E[P]=j.b||0;return l=C(l),u=C(u),E=C(E),j.opacity=1,function(H){return j.r=l(H),j.g=u(H),j.b=E(H),j+""}}}var o1=Cy(q2),K0=Cy(SP);function w_(C,i){i||(i=[]);var a=C?Math.min(i.length,C.length):0,l=i.slice(),u;return function(E){for(u=0;u<a;++u)l[u]=C[u]*(1-E)+i[u]*E;return l}}function Fm(C){return ArrayBuffer.isView(C)&&!(C instanceof DataView)}function RS(C,i){return(Fm(i)?w_:T_)(C,i)}function T_(C,i){var a=i?i.length:0,l=C?Math.min(a,C.length):0,u=new Array(l),E=new Array(a),P;for(P=0;P<l;++P)u[P]=TP(C[P],i[P]);for(;P<a;++P)E[P]=i[P];return function(j){for(P=0;P<l;++P)E[P]=u[P](j);return E}}function i7(C,i){var a=new Date;return C=+C,i=+i,function(l){return a.setTime(C*(1-l)+i*l),a}}function xb(C,i){return C=+C,i=+i,function(a){return C*(1-a)+i*a}}function aN(C,i){var a={},l={},u;(C===null||typeof C!="object")&&(C={}),(i===null||typeof i!="object")&&(i={});for(u in i)u in C?a[u]=TP(C[u],i[u]):l[u]=i[u];return function(E){for(u in a)l[u]=a[u](E);return l}}var AA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wP=new RegExp(AA.source,"g");function EW(C){return function(){return C}}function o7(C){return function(i){return C(i)+""}}function SW(C,i){var a=AA.lastIndex=wP.lastIndex=0,l,u,E,P=-1,j=[],H=[];for(C=C+"",i=i+"";(l=AA.exec(C))&&(u=wP.exec(i));)(E=u.index)>a&&(E=i.slice(a,E),j[P]?j[P]+=E:j[++P]=E),(l=l[0])===(u=u[0])?j[P]?j[P]+=u:j[++P]=u:(j[++P]=null,H.push({i:P,x:xb(l,u)})),a=wP.lastIndex;return a<i.length&&(E=i.slice(a),j[P]?j[P]+=E:j[++P]=E),j.length<2?H[0]?o7(H[0].x):EW(i):(i=H.length,function(X){for(var ee=0,se;ee<i;++ee)j[(se=H[ee]).i]=se.x(X);return j.join("")})}function TP(C,i){var a=typeof i,l;return i==null||a==="boolean"?CP(i):(a==="number"?xb:a==="string"?(l=Hx(i))?(i=l,Uh):SW:i instanceof Hx?Uh:i instanceof Date?i7:Fm(i)?w_:Array.isArray(i)?T_:typeof i.valueOf!="function"&&typeof i.toString!="function"||isNaN(i)?aN:xb)(C,i)}function CW(C){return+C}function iN(C){return C*C}function s7(C){return C*(2-C)}function Ud(C){return((C*=2)<=1?C*C:--C*(2-C)+1)/2}function wW(C){return C*C*C}function TW(C){return--C*C*C+1}function l7(C){return((C*=2)<=1?C*C*C:(C-=2)*C*C+2)/2}var oN=3,MA=function C(i){i=+i;function a(l){return Math.pow(l,i)}return a.exponent=C,a}(oN),OS=function C(i){i=+i;function a(l){return 1-Math.pow(1-l,i)}return a.exponent=C,a}(oN),sN=function C(i){i=+i;function a(l){return((l*=2)<=1?Math.pow(l,i):2-Math.pow(2-l,i))/2}return a.exponent=C,a}(oN),lN=Math.PI,cN=lN/2;function AP(C){return+C==1?1:1-Math.cos(C*cN)}function uN(C){return Math.sin(C*cN)}function Y0(C){return(1-Math.cos(lN*C))/2}function $x(C){return(Math.pow(2,-10*C)-.0009765625)*1.0009775171065494}function c7(C){return $x(1-+C)}function wy(C){return 1-$x(C)}function Qv(C){return((C*=2)<=1?$x(1-C):2-$x(C-1))/2}function xm(C){return 1-Math.sqrt(1-C*C)}function s1(C){return Math.sqrt(1- --C*C)}function Ty(C){return((C*=2)<=1?1-Math.sqrt(1-C*C):Math.sqrt(1-(C-=2)*C)+1)/2}var MP=4/11,kP=6/11,A_=8/11,fN=3/4,u7=9/11,dN=10/11,f7=15/16,gI=21/22,_I=63/64,kA=1/MP/MP;function pN(C){return 1-PA(1-C)}function PA(C){return(C=+C)<MP?kA*C*C:C<A_?kA*(C-=kP)*C+fN:C<dN?kA*(C-=u7)*C+f7:kA*(C-=gI)*C+_I}function vN(C){return((C*=2)<=1?1-PA(1-C):PA(C-1)+1)/2}var PP=1.70158,d7=function C(i){i=+i;function a(l){return(l=+l)*l*(i*(l-1)+l)}return a.overshoot=C,a}(PP),p7=function C(i){i=+i;function a(l){return--l*l*((l+1)*i+l)+1}return a.overshoot=C,a}(PP),yI=function C(i){i=+i;function a(l){return((l*=2)<1?l*l*((i+1)*l-i):(l-=2)*l*((i+1)*l+i)+2)/2}return a.overshoot=C,a}(PP),Gm=2*Math.PI,RA=1,bI=.3,RP=function C(i,a){var l=Math.asin(1/(i=Math.max(1,i)))*(a/=Gm);function u(E){return i*$x(- --E)*Math.sin((l-E)/a)}return u.amplitude=function(E){return C(E,a*Gm)},u.period=function(E){return C(i,E)},u}(RA,bI),OA=function C(i,a){var l=Math.asin(1/(i=Math.max(1,i)))*(a/=Gm);function u(E){return 1-i*$x(E=+E)*Math.sin((E+l)/a)}return u.amplitude=function(E){return C(E,a*Gm)},u.period=function(E){return C(i,E)},u}(RA,bI),v7=function C(i,a){var l=Math.asin(1/(i=Math.max(1,i)))*(a/=Gm);function u(E){return((E=E*2-1)<0?i*$x(-E)*Math.sin((l-E)/a):2-i*$x(E)*Math.sin((l+E)/a))/2}return u.amplitude=function(E){return C(E,a*Gm)},u.period=function(E){return C(i,E)},u}(RA,bI),hN={};function xI(C){return hN[C.toLowerCase()]||w[C]}function h7(C,i){hN[C.toLowerCase()]=i}var mN=function(i){return["fill","stroke","fillStyle","strokeStyle"].includes(i)},m7=function(i){return/^[r,R,L,l]{1}[\s]*\(/.test(i)},OP=[1,0,0,0,1,0,0,0,1];function gN(C,i,a){var l={},u=i.fromAttrs,E=i.toAttrs;if(!C.destroyed){var P;for(var j in E)if(!(0,Nn.isEqual)(u[j],E[j]))if(j==="path"){var H=E[j],X=u[j];H.length>X.length?(H=Mt(E[j]),X=Mt(u[j]),X=uo(X,H),X=Vo(X,H),i.fromAttrs.path=X,i.toAttrs.path=H):i.pathFormatted||(H=Mt(E[j]),X=Mt(u[j]),X=Vo(X,H),i.fromAttrs.path=X,i.toAttrs.path=H,i.pathFormatted=!0),l[j]=[];for(var ee=0;ee<H.length;ee++){for(var se=H[ee],Se=X[ee],Re=[],Be=0;Be<se.length;Be++)(0,Nn.isNumber)(se[Be])&&Se&&(0,Nn.isNumber)(Se[Be])?(P=TP(Se[Be],se[Be]),Re.push(P(a))):Re.push(se[Be]);l[j].push(Re)}}else if(j==="matrix"){var Ye=RS(u[j]||OP,E[j]||OP),ht=Ye(a);l[j]=ht}else mN(j)&&m7(E[j])?l[j]=E[j]:(0,Nn.isFunction)(E[j])||(P=TP(u[j],E[j]),l[j]=P(a));C.attr(l)}}function IS(C,i,a){var l=i.startTime,u=i.delay;if(a<l+u||i._paused)return!1;var E,P=i.duration,j=i.easing,H=xI(j);if(a=a-l-i.delay,i.repeat)E=a%P/P,E=H(E);else if(E=a/P,E<1)E=H(E);else return i.onFrame?C.attr(i.onFrame(1)):C.attr(i.toAttrs),!0;if(i.onFrame){var X=i.onFrame(E);C.attr(X)}else gN(C,i,E);return!1}var IP=function(){function C(i){this.animators=[],this.current=0,this.timer=null,this.canvas=i}return C.prototype.initTimer=function(){var i=this,a=!1,l,u,E;this.timer=$g(function(P){if(i.current=P,i.animators.length>0){for(var j=i.animators.length-1;j>=0;j--){if(l=i.animators[j],l.destroyed){i.removeAnimator(j);continue}if(!l.isAnimatePaused()){u=l.get("animations");for(var H=u.length-1;H>=0;H--)E=u[H],a=IS(l,E,P),a&&(u.splice(H,1),a=!1,E.callback&&E.callback())}u.length===0&&i.removeAnimator(j)}var X=i.canvas.get("autoDraw");X||i.canvas.draw()}})},C.prototype.addAnimator=function(i){this.animators.push(i)},C.prototype.removeAnimator=function(i){this.animators.splice(i,1)},C.prototype.isAnimating=function(){return!!this.animators.length},C.prototype.stop=function(){this.timer&&this.timer.stop()},C.prototype.stopAllAnimations=function(i){i===void 0&&(i=!0),this.animators.forEach(function(a){a.stopAnimate(i)}),this.animators=[],this.canvas.draw()},C.prototype.getTime=function(){return this.current},C}(),g7=IP,_7=40,_N=0,y7=":",yN=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function AW(C,i){for(var a in C)if(C.hasOwnProperty(a)&&a.indexOf(y7+i)>=0)return!0;return!1}function DP(C,i,a){a.name=i,a.target=C,a.currentTarget=C,a.delegateTarget=C,C.emit(i,a)}function EI(C,i,a){if(a.bubbles){var l=void 0,u=!1;if(i==="mouseenter"?(l=a.fromShape,u=!0):i==="mouseleave"&&(u=!0,l=a.toShape),C.isCanvas()&&u)return;if(l&&kd(C,l)){a.bubbles=!1;return}a.name=i,a.currentTarget=C,a.delegateTarget=C,C.emit(i,a)}}var bN=function(){function C(i){var a=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(l){var u=l.type;a._triggerEvent(u,l)},this._onDocumentMove=function(l){var u=a.canvas,E=u.get("el");if(E!==l.target&&(a.dragging||a.currentShape)){var P=a._getPointInfo(l);a.dragging&&a._emitEvent("drag",l,P,a.draggingShape)}},this._onDocumentMouseUp=function(l){var u=a.canvas,E=u.get("el");if(E!==l.target&&a.dragging){var P=a._getPointInfo(l);a.draggingShape&&a._emitEvent("drop",l,P,null),a._emitEvent("dragend",l,P,a.draggingShape),a._afterDrag(a.draggingShape,P,l)}},this.canvas=i.canvas}return C.prototype.init=function(){this._bindEvents()},C.prototype._bindEvents=function(){var i=this,a=this.canvas.get("el");(0,Nn.each)(yN,function(l){a.addEventListener(l,i._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},C.prototype._clearEvents=function(){var i=this,a=this.canvas.get("el");(0,Nn.each)(yN,function(l){a.removeEventListener(l,i._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},C.prototype._getEventObj=function(i,a,l,u,E,P){var j=new ts(i,a);return j.fromShape=E,j.toShape=P,j.x=l.x,j.y=l.y,j.clientX=l.clientX,j.clientY=l.clientY,j.propagationPath.push(u),j},C.prototype._getShape=function(i,a){return this.canvas.getShape(i.x,i.y,a)},C.prototype._getPointInfo=function(i){var a=this.canvas,l=a.getClientByEvent(i),u=a.getPointByEvent(i);return{x:u.x,y:u.y,clientX:l.x,clientY:l.y}},C.prototype._triggerEvent=function(i,a){var l=this._getPointInfo(a),u=this._getShape(l,a),E=this["_on"+i],P=!1;if(E)E.call(this,l,u,a);else{var j=this.currentShape;i==="mouseenter"||i==="dragenter"||i==="mouseover"?(this._emitEvent(i,a,l,null,null,u),u&&this._emitEvent(i,a,l,u,null,u),i==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",a,l,null)):i==="mouseleave"||i==="dragleave"||i==="mouseout"?(P=!0,j&&this._emitEvent(i,a,l,j,j,null),this._emitEvent(i,a,l,null,j,null),i==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",a,l,null)):this._emitEvent(i,a,l,u,null,null)}if(P||(this.currentShape=u),u&&!u.get("destroyed")){var H=this.canvas,X=H.get("el");X.style.cursor=u.attr("cursor")||H.get("cursor")}},C.prototype._onmousedown=function(i,a,l){l.button===_N&&(this.mousedownShape=a,this.mousedownPoint=i,this.mousedownTimeStamp=l.timeStamp),this._emitEvent("mousedown",l,i,a,null,null)},C.prototype._emitMouseoverEvents=function(i,a,l,u){var E=this.canvas.get("el");l!==u&&(l&&(this._emitEvent("mouseout",i,a,l,l,u),this._emitEvent("mouseleave",i,a,l,l,u),(!u||u.get("destroyed"))&&(E.style.cursor=this.canvas.get("cursor"))),u&&(this._emitEvent("mouseover",i,a,u,l,u),this._emitEvent("mouseenter",i,a,u,l,u)))},C.prototype._emitDragoverEvents=function(i,a,l,u,E){u?(u!==l&&(l&&this._emitEvent("dragleave",i,a,l,l,u),this._emitEvent("dragenter",i,a,u,l,u)),E||this._emitEvent("dragover",i,a,u)):l&&this._emitEvent("dragleave",i,a,l,l,u),E&&this._emitEvent("dragover",i,a,u)},C.prototype._afterDrag=function(i,a,l){i&&(i.set("capture",!0),this.draggingShape=null),this.dragging=!1;var u=this._getShape(a,l);u!==i&&this._emitMouseoverEvents(l,a,i,u),this.currentShape=u},C.prototype._onmouseup=function(i,a,l){if(l.button===_N){var u=this.draggingShape;this.dragging?(u&&this._emitEvent("drop",l,i,a),this._emitEvent("dragend",l,i,u),this._afterDrag(u,i,l)):(this._emitEvent("mouseup",l,i,a),a===this.mousedownShape&&this._emitEvent("click",l,i,a),this.mousedownShape=null,this.mousedownPoint=null)}},C.prototype._ondragover=function(i,a,l){l.preventDefault();var u=this.currentShape;this._emitDragoverEvents(l,i,u,a,!0)},C.prototype._onmousemove=function(i,a,l){var u=this.canvas,E=this.currentShape,P=this.draggingShape;if(this.dragging)P&&this._emitDragoverEvents(l,i,E,a,!1),this._emitEvent("drag",l,i,P);else{var j=this.mousedownPoint;if(j){var H=this.mousedownShape,X=l.timeStamp,ee=X-this.mousedownTimeStamp,se=j.clientX-i.clientX,Se=j.clientY-i.clientY,Re=se*se+Se*Se;ee>120||Re>_7?H&&H.get("draggable")?(P=this.mousedownShape,P.set("capture",!1),this.draggingShape=P,this.dragging=!0,this._emitEvent("dragstart",l,i,P),this.mousedownShape=null,this.mousedownPoint=null):!H&&u.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",l,i,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(l,i,E,a),this._emitEvent("mousemove",l,i,a)):(this._emitMouseoverEvents(l,i,E,a),this._emitEvent("mousemove",l,i,a))}else this._emitMouseoverEvents(l,i,E,a),this._emitEvent("mousemove",l,i,a)}},C.prototype._emitEvent=function(i,a,l,u,E,P){var j=this._getEventObj(i,a,l,u,E,P);if(u){j.shape=u,DP(u,i,j);for(var H=u.getParent();H;)H.emitDelegation(i,j),j.propagationStopped||EI(H,i,j),j.propagationPath.push(H),H=H.getParent()}else{var X=this.canvas;DP(X,i,j)}},C.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},C}(),DS=bN,xN="px",EN=Iv(),SN=EN&&EN.name==="firefox",IA=function(C){Al(i,C);function i(a){var l=C.call(this,a)||this;return l.initContainer(),l.initDom(),l.initEvents(),l.initTimeline(),l}return i.prototype.getDefaultCfg=function(){var a=C.prototype.getDefaultCfg.call(this);return a.cursor="default",a.supportCSSTransform=!1,a},i.prototype.initContainer=function(){var a=this.get("container");(0,Nn.isString)(a)&&(a=document.getElementById(a),this.set("container",a))},i.prototype.initDom=function(){var a=this.createDom();this.set("el",a);var l=this.get("container");l.appendChild(a),this.setDOMSize(this.get("width"),this.get("height"))},i.prototype.initEvents=function(){var a=new DS({canvas:this});a.init(),this.set("eventController",a)},i.prototype.initTimeline=function(){var a=new g7(this);this.set("timeline",a)},i.prototype.setDOMSize=function(a,l){var u=this.get("el");Md&&(u.style.width=a+xN,u.style.height=l+xN)},i.prototype.changeSize=function(a,l){this.setDOMSize(a,l),this.set("width",a),this.set("height",l),this.onCanvasChange("changeSize")},i.prototype.getRenderer=function(){return this.get("renderer")},i.prototype.getCursor=function(){return this.get("cursor")},i.prototype.setCursor=function(a){this.set("cursor",a);var l=this.get("el");Md&&l&&(l.style.cursor=a)},i.prototype.getPointByEvent=function(a){var l=this.get("supportCSSTransform");if(l){if(SN&&!(0,Nn.isNil)(a.layerX)&&a.layerX!==a.offsetX)return{x:a.layerX,y:a.layerY};if(!(0,Nn.isNil)(a.offsetX))return{x:a.offsetX,y:a.offsetY}}var u=this.getClientByEvent(a),E=u.x,P=u.y;return this.getPointByClient(E,P)},i.prototype.getClientByEvent=function(a){var l=a;return a.touches&&(a.type==="touchend"?l=a.changedTouches[0]:l=a.touches[0]),{x:l.clientX,y:l.clientY}},i.prototype.getPointByClient=function(a,l){var u=this.get("el"),E=u.getBoundingClientRect();return{x:a-E.left,y:l-E.top}},i.prototype.getClientByPoint=function(a,l){var u=this.get("el"),E=u.getBoundingClientRect();return{x:a+E.left,y:l+E.top}},i.prototype.draw=function(){},i.prototype.removeDom=function(){var a=this.get("el");a.parentNode.removeChild(a)},i.prototype.clearEvents=function(){var a=this.get("eventController");a.destroy()},i.prototype.isCanvas=function(){return!0},i.prototype.getParent=function(){return null},i.prototype.destroy=function(){var a=this.get("timeline");this.get("destroyed")||(this.clear(),a&&a.stop(),this.clearEvents(),this.removeDom(),C.prototype.destroy.call(this))},i}(bA),CN=IA,b7=function(C){Al(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.isGroup=function(){return!0},i.prototype.isEntityGroup=function(){return!1},i.prototype.clone=function(){for(var a=C.prototype.clone.call(this),l=this.getChildren(),u=0;u<l.length;u++){var E=l[u];a.add(E.clone())}return a},i}(bA),wN=b7,SI=function(C){Al(i,C);function i(a){return C.call(this,a)||this}return i.prototype._isInBBox=function(a,l){var u=this.getBBox();return u.minX<=a&&u.maxX>=a&&u.minY<=l&&u.maxY>=l},i.prototype.afterAttrsChange=function(a){C.prototype.afterAttrsChange.call(this,a),this.clearCacheBBox()},i.prototype.getBBox=function(){var a=this.cfg.bbox;return a||(a=this.calculateBBox(),this.set("bbox",a)),a},i.prototype.getCanvasBBox=function(){var a=this.cfg.canvasBBox;return a||(a=this.calculateCanvasBBox(),this.set("canvasBBox",a)),a},i.prototype.applyMatrix=function(a){C.prototype.applyMatrix.call(this,a),this.set("canvasBBox",null)},i.prototype.calculateCanvasBBox=function(){var a=this.getBBox(),l=this.getTotalMatrix(),u=a.minX,E=a.minY,P=a.maxX,j=a.maxY;if(l){var H=ep(l,[a.minX,a.minY]),X=ep(l,[a.maxX,a.minY]),ee=ep(l,[a.minX,a.maxY]),se=ep(l,[a.maxX,a.maxY]);u=Math.min(H[0],X[0],ee[0],se[0]),P=Math.max(H[0],X[0],ee[0],se[0]),E=Math.min(H[1],X[1],ee[1],se[1]),j=Math.max(H[1],X[1],ee[1],se[1])}var Se=this.attrs;if(Se.shadowColor){var Re=Se.shadowBlur,Be=Re===void 0?0:Re,Ye=Se.shadowOffsetX,ht=Ye===void 0?0:Ye,Tt=Se.shadowOffsetY,Dt=Tt===void 0?0:Tt,Kt=u-Be+ht,gn=P+Be+ht,bn=E-Be+Dt,mn=j+Be+Dt;u=Math.min(u,Kt),P=Math.max(P,gn),E=Math.min(E,bn),j=Math.max(j,mn)}return{x:u,y:E,minX:u,minY:E,maxX:P,maxY:j,width:P-u,height:j-E}},i.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},i.prototype.isClipShape=function(){return this.get("isClipShape")},i.prototype.isInShape=function(a,l){return!1},i.prototype.isOnlyHitBox=function(){return!1},i.prototype.isHit=function(a,l){var u=this.get("startArrowShape"),E=this.get("endArrowShape"),P=[a,l,1];P=this.invertFromMatrix(P);var j=P[0],H=P[1],X=this._isInBBox(j,H);return this.isOnlyHitBox()?X:!!(X&&!this.isClipped(j,H)&&(this.isInShape(j,H)||u&&u.isHit(j,H)||E&&E.isHit(j,H)))},i}(E_),TN=SI,AN=new Map;function Ay(C,i){AN.set(C,i)}function CI(C){return AN.get(C)}function MN(C){var i=C.attr(),a=i.x,l=i.y,u=i.width,E=i.height;return{x:a,y:l,width:u,height:E}}function kN(C){var i=C.attr(),a=i.x,l=i.y,u=i.r;return{x:a-u,y:l-u,width:u*2,height:u*2}}function Kg(C,i,a,l){var u=C-a,E=i-l;return Math.sqrt(u*u+E*E)}function Em(C,i){return Math.abs(C-i)<.001}function ew(C,i){var a=(0,Nn.min)(C),l=(0,Nn.min)(i),u=(0,Nn.max)(C),E=(0,Nn.max)(i);return{x:a,y:l,width:u-a,height:E-l}}function MW(C,i,a,l){return{minX:(0,Nn.min)([C,a]),maxX:(0,Nn.max)([C,a]),minY:(0,Nn.min)([i,l]),maxY:(0,Nn.max)([i,l])}}function tw(C){return(C+Math.PI*2)%(Math.PI*2)}var Ag={box:function(i,a,l,u){return ew([i,l],[a,u])},length:function(i,a,l,u){return Kg(i,a,l,u)},pointAt:function(i,a,l,u,E){return{x:(1-E)*i+E*l,y:(1-E)*a+E*u}},pointDistance:function(i,a,l,u,E,P){var j=(l-i)*(E-i)+(u-a)*(P-a);if(j<0)return Kg(i,a,E,P);var H=(l-i)*(l-i)+(u-a)*(u-a);return j>H?Kg(l,u,E,P):this.pointToLine(i,a,l,u,E,P)},pointToLine:function(i,a,l,u,E,P){var j=[l-i,u-a];if(Vf.exactEquals(j,[0,0]))return Math.sqrt((E-i)*(E-i)+(P-a)*(P-a));var H=[-j[1],j[0]];Vf.normalize(H,H);var X=[E-i,P-a];return Math.abs(Vf.dot(X,H))},tangentAngle:function(i,a,l,u){return Math.atan2(u-a,l-i)}},wI=1e-4;function TI(C,i,a,l,u,E){var P,j=Infinity,H=[a,l],X=20;E&&E>200&&(X=E/10);for(var ee=1/X,se=ee/10,Se=0;Se<=X;Se++){var Re=Se*ee,Be=[u.apply(null,C.concat([Re])),u.apply(null,i.concat([Re]))],Ye=Kg(H[0],H[1],Be[0],Be[1]);Ye<j&&(P=Re,j=Ye)}if(P===0)return{x:C[0],y:i[0]};if(P===1){var ht=C.length;return{x:C[ht-1],y:i[ht-1]}}j=Infinity;for(var Se=0;Se<32&&!(se<wI);Se++){var Tt=P-se,Dt=P+se,Be=[u.apply(null,C.concat([Tt])),u.apply(null,i.concat([Tt]))],Ye=Kg(H[0],H[1],Be[0],Be[1]);if(Tt>=0&&Ye<j)P=Tt,j=Ye;else{var Kt=[u.apply(null,C.concat([Dt])),u.apply(null,i.concat([Dt]))],gn=Kg(H[0],H[1],Kt[0],Kt[1]);Dt<=1&&gn<j?(P=Dt,j=gn):se*=.5}}return{x:u.apply(null,C.concat([P])),y:u.apply(null,i.concat([P]))}}function PN(C,i){for(var a=0,l=C.length,u=0;u<l;u++){var E=C[u],P=i[u],j=C[(u+1)%l],H=i[(u+1)%l];a+=Kg(E,P,j,H)}return a/2}function H_(C,i,a,l){var u=1-l;return u*u*C+2*l*u*i+l*l*a}function RN(C,i,a){var l=C+a-2*i;if(Em(l,0))return[.5];var u=(C-i)/l;return u<=1&&u>=0?[u]:[]}function ON(C,i,a,l){return 2*(1-l)*(i-C)+2*l*(a-i)}function IN(C,i,a,l,u,E,P){var j=H_(C,a,u,P),H=H_(i,l,E,P),X=Ag.pointAt(C,i,a,l,P),ee=Ag.pointAt(a,l,u,E,P);return[[C,i,X.x,X.y,j,H],[j,H,ee.x,ee.y,u,E]]}function NP(C,i,a,l,u,E,P){if(P===0)return(Kg(C,i,a,l)+Kg(a,l,u,E)+Kg(C,i,u,E))/2;var j=IN(C,i,a,l,u,E,.5),H=j[0],X=j[1];return H.push(P-1),X.push(P-1),NP.apply(null,H)+NP.apply(null,X)}var DN={box:function(i,a,l,u,E,P){var j=RN(i,l,E)[0],H=RN(a,u,P)[0],X=[i,E],ee=[a,P];return j!==void 0&&X.push(H_(i,l,E,j)),H!==void 0&&ee.push(H_(a,u,P,H)),ew(X,ee)},length:function(i,a,l,u,E,P){return NP(i,a,l,u,E,P,3)},nearestPoint:function(i,a,l,u,E,P,j,H){return TI([i,l,E],[a,u,P],j,H,H_)},pointDistance:function(i,a,l,u,E,P,j,H){var X=this.nearestPoint(i,a,l,u,E,P,j,H);return Kg(X.x,X.y,j,H)},interpolationAt:H_,pointAt:function(i,a,l,u,E,P,j){return{x:H_(i,l,E,j),y:H_(a,u,P,j)}},divide:function(i,a,l,u,E,P,j){return IN(i,a,l,u,E,P,j)},tangentAngle:function(i,a,l,u,E,P,j){var H=ON(i,l,E,j),X=ON(a,u,P,j),ee=Math.atan2(X,H);return tw(ee)}};function Eb(C,i,a,l,u){var E=1-u;return E*E*E*C+3*i*u*E*E+3*a*u*u*E+l*u*u*u}function DA(C,i,a,l,u){var E=1-u;return 3*(E*E*(i-C)+2*E*u*(a-i)+u*u*(l-a))}function NS(C,i,a,l){var u=-3*C+9*i-9*a+3*l,E=6*C-12*i+6*a,P=3*i-3*C,j=[],H,X,ee;if(Em(u,0))Em(E,0)||(H=-P/E,H>=0&&H<=1&&j.push(H));else{var se=E*E-4*u*P;Em(se,0)?j.push(-E/(2*u)):se>0&&(ee=Math.sqrt(se),H=(-E+ee)/(2*u),X=(-E-ee)/(2*u),H>=0&&H<=1&&j.push(H),X>=0&&X<=1&&j.push(X))}return j}function AI(C,i,a,l,u,E,P,j,H){var X=Eb(C,a,u,P,H),ee=Eb(i,l,E,j,H),se=Ag.pointAt(C,i,a,l,H),Se=Ag.pointAt(a,l,u,E,H),Re=Ag.pointAt(u,E,P,j,H),Be=Ag.pointAt(se.x,se.y,Se.x,Se.y,H),Ye=Ag.pointAt(Se.x,Se.y,Re.x,Re.y,H);return[[C,i,se.x,se.y,Be.x,Be.y,X,ee],[X,ee,Ye.x,Ye.y,Re.x,Re.y,P,j]]}function LP(C,i,a,l,u,E,P,j,H){if(H===0)return PN([C,a,u,P],[i,l,E,j]);var X=AI(C,i,a,l,u,E,P,j,.5),ee=X[0],se=X[1];return ee.push(H-1),se.push(H-1),LP.apply(null,ee)+LP.apply(null,se)}var LS={extrema:NS,box:function(i,a,l,u,E,P,j,H){for(var X=[i,j],ee=[a,H],se=NS(i,l,E,j),Se=NS(a,u,P,H),Re=0;Re<se.length;Re++)X.push(Eb(i,l,E,j,se[Re]));for(var Re=0;Re<Se.length;Re++)ee.push(Eb(a,u,P,H,Se[Re]));return ew(X,ee)},length:function(i,a,l,u,E,P,j,H){return LP(i,a,l,u,E,P,j,H,3)},nearestPoint:function(i,a,l,u,E,P,j,H,X,ee,se){return TI([i,l,E,j],[a,u,P,H],X,ee,Eb,se)},pointDistance:function(i,a,l,u,E,P,j,H,X,ee,se){var Se=this.nearestPoint(i,a,l,u,E,P,j,H,X,ee,se);return Kg(Se.x,Se.y,X,ee)},interpolationAt:Eb,pointAt:function(i,a,l,u,E,P,j,H,X){return{x:Eb(i,l,E,j,X),y:Eb(a,u,P,H,X)}},divide:function(i,a,l,u,E,P,j,H,X){return AI(i,a,l,u,E,P,j,H,X)},tangentAngle:function(i,a,l,u,E,P,j,H,X){var ee=DA(i,l,E,j,X),se=DA(a,u,P,H,X);return tw(Math.atan2(se,ee))}};function MI(C,i){var a=Math.abs(C);return i>0?a:a*-1}var x7={box:function(i,a,l,u){return{x:i-l,y:a-u,width:l*2,height:u*2}},length:function(i,a,l,u){return Math.PI*(3*(l+u)-Math.sqrt((3*l+u)*(l+3*u)))},nearestPoint:function(i,a,l,u,E,P){var j=l,H=u;if(j===0||H===0)return{x:i,y:a};for(var X=E-i,ee=P-a,se=Math.abs(X),Se=Math.abs(ee),Re=j*j,Be=H*H,Ye=Math.PI/4,ht,Tt,Dt=0;Dt<4;Dt++){ht=j*Math.cos(Ye),Tt=H*Math.sin(Ye);var Kt=(Re-Be)*Math.pow(Math.cos(Ye),3)/j,gn=(Be-Re)*Math.pow(Math.sin(Ye),3)/H,bn=ht-Kt,mn=Tt-gn,kn=se-Kt,sr=Se-gn,yr=Math.hypot(mn,bn),jr=Math.hypot(sr,kn),zr=yr*Math.asin((bn*sr-mn*kn)/(yr*jr)),va=zr/Math.sqrt(Re+Be-ht*ht-Tt*Tt);Ye+=va,Ye=Math.min(Math.PI/2,Math.max(0,Ye))}return{x:i+MI(ht,X),y:a+MI(Tt,ee)}},pointDistance:function(i,a,l,u,E,P){var j=this.nearestPoint(i,a,l,u,E,P);return Kg(j.x,j.y,E,P)},pointAt:function(i,a,l,u,E){var P=2*Math.PI*E;return{x:i+l*Math.cos(P),y:a+u*Math.sin(P)}},tangentAngle:function(i,a,l,u,E){var P=2*Math.PI*E,j=Math.atan2(u*Math.cos(P),-l*Math.sin(P));return tw(j)}};function kI(C,i,a,l,u,E,P,j){return-1*a*Math.cos(u)*Math.sin(j)-l*Math.sin(u)*Math.cos(j)}function NN(C,i,a,l,u,E,P,j){return-1*a*Math.sin(u)*Math.sin(j)+l*Math.cos(u)*Math.cos(j)}function LN(C,i,a){return Math.atan(-i/C*Math.tan(a))}function E7(C,i,a){return Math.atan(i/(C*Math.tan(a)))}function FN(C,i,a,l,u,E){return a*Math.cos(u)*Math.cos(E)-l*Math.sin(u)*Math.sin(E)+C}function jN(C,i,a,l,u,E){return a*Math.sin(u)*Math.cos(E)+l*Math.cos(u)*Math.sin(E)+i}function BN(C,i,a,l){var u=Math.atan2(l*C,a*i);return(u+Math.PI*2)%(Math.PI*2)}function UN(C,i,a){return{x:C*Math.cos(a),y:i*Math.sin(a)}}function ZN(C,i,a){var l=Math.cos(a),u=Math.sin(a);return[C*l-i*u,C*u+i*l]}var VN={box:function(i,a,l,u,E,P,j){for(var H=LN(l,u,E),X=Infinity,ee=-Infinity,se=[P,j],Se=-Math.PI*2;Se<=Math.PI*2;Se+=Math.PI){var Re=H+Se;P<j?P<Re&&Re<j&&se.push(Re):j<Re&&Re<P&&se.push(Re)}for(var Se=0;Se<se.length;Se++){var Be=FN(i,a,l,u,E,se[Se]);Be<X&&(X=Be),Be>ee&&(ee=Be)}for(var Ye=E7(l,u,E),ht=Infinity,Tt=-Infinity,Dt=[P,j],Se=-Math.PI*2;Se<=Math.PI*2;Se+=Math.PI){var Kt=Ye+Se;P<j?P<Kt&&Kt<j&&Dt.push(Kt):j<Kt&&Kt<P&&Dt.push(Kt)}for(var Se=0;Se<Dt.length;Se++){var gn=jN(i,a,l,u,E,Dt[Se]);gn<ht&&(ht=gn),gn>Tt&&(Tt=gn)}return{x:X,y:ht,width:ee-X,height:Tt-ht}},length:function(i,a,l,u,E,P,j){},nearestPoint:function(i,a,l,u,E,P,j,H,X){var ee=ZN(H-i,X-a,-E),se=ee[0],Se=ee[1],Re=x7.nearestPoint(0,0,l,u,se,Se),Be=BN(l,u,Re.x,Re.y);Be<P?Re=UN(l,u,P):Be>j&&(Re=UN(l,u,j));var Ye=ZN(Re.x,Re.y,E);return{x:Ye[0]+i,y:Ye[1]+a}},pointDistance:function(i,a,l,u,E,P,j,H,X){var ee=this.nearestPoint(i,a,l,u,H,X);return Kg(ee.x,ee.y,H,X)},pointAt:function(i,a,l,u,E,P,j,H){var X=(j-P)*H+P;return{x:FN(i,a,l,u,E,X),y:jN(i,a,l,u,E,X)}},tangentAngle:function(i,a,l,u,E,P,j,H){var X=(j-P)*H+P,ee=kI(i,a,l,u,E,P,j,X),se=NN(i,a,l,u,E,P,j,X);return tw(Math.atan2(se,ee))}};function zN(C){for(var i=0,a=[],l=0;l<C.length-1;l++){var u=C[l],E=C[l+1],P=Kg(u[0],u[1],E[0],E[1]),j={from:u,to:E,length:P};a.push(j),i+=P}return{segments:a,totalLength:i}}function PI(C){if(C.length<2)return 0;for(var i=0,a=0;a<C.length-1;a++){var l=C[a],u=C[a+1];i+=Kg(l[0],l[1],u[0],u[1])}return i}function RI(C,i){if(i>1||i<0||C.length<2)return null;var a=zN(C),l=a.segments,u=a.totalLength;if(u===0)return{x:C[0][0],y:C[0][1]};for(var E=0,P=null,j=0;j<l.length;j++){var H=l[j],X=H.from,ee=H.to,se=H.length/u;if(i>=E&&i<=E+se){var Se=(i-E)/se;P=Ag.pointAt(X[0],X[1],ee[0],ee[1],Se);break}E+=se}return P}function WN(C,i){if(i>1||i<0||C.length<2)return 0;for(var a=zN(C),l=a.segments,u=a.totalLength,E=0,P=0,j=0;j<l.length;j++){var H=l[j],X=H.from,ee=H.to,se=H.length/u;if(i>=E&&i<=E+se){P=Math.atan2(ee[1]-X[1],ee[0]-X[0]);break}E+=se}return P}function OI(C,i,a){for(var l=Infinity,u=0;u<C.length-1;u++){var E=C[u],P=C[u+1],j=Ag.pointDistance(E[0],E[1],P[0],P[1],i,a);j<l&&(l=j)}return l}var HN={box:function(i){for(var a=[],l=[],u=0;u<i.length;u++){var E=i[u];a.push(E[0]),l.push(E[1])}return ew(a,l)},length:function(i){return PI(i)},pointAt:function(i,a){return RI(i,a)},pointDistance:function(i,a,l){return OI(i,a,l)},tangentAngle:function(i,a){return WN(i,a)}};function l1(C){var i=C.slice(0);return C.length&&i.push(C[0]),i}var S7={box:function(i){return HN.box(i)},length:function(i){return PI(l1(i))},pointAt:function(i,a){return RI(l1(i),a)},pointDistance:function(i,a,l){return OI(l1(i),a,l)},tangentAngle:function(i,a){return WN(l1(i),a)}};function II(C,i){return!C||!i?C||i:{minX:Math.min(C.minX,i.minX),minY:Math.min(C.minY,i.minY),maxX:Math.max(C.maxX,i.maxX),maxY:Math.max(C.maxY,i.maxY)}}function FP(C,i){var a=C.get("startArrowShape"),l=C.get("endArrowShape"),u=null,E=null;return a&&(u=a.getCanvasBBox(),i=II(i,u)),l&&(E=l.getCanvasBBox(),i=II(i,E)),i}function GN(C){for(var i=C.attr(),a=i.points,l=[],u=[],E=0;E<a.length;E++){var P=a[E];l.push(P[0]),u.push(P[1])}var j=ew(l,u),H=j.x,X=j.y,ee=j.width,se=j.height,Se={minX:H,minY:X,maxX:H+ee,maxY:X+se};return Se=FP(C,Se),{x:Se.minX,y:Se.minY,width:Se.maxX-Se.minX,height:Se.maxY-Se.minY}}function kW(C){for(var i=C.attr(),a=i.points,l=[],u=[],E=0;E<a.length;E++){var P=a[E];l.push(P[0]),u.push(P[1])}return ew(l,u)}var NA=null;function C7(){if(!NA){var C=document.createElement("canvas");C.width=1,C.height=1,NA=C.getContext("2d")}return NA}function w7(C,i,a){var l=1;if((0,Nn.isString)(C)&&(l=C.split(`
|
||
`).length),l>1){var u=PW(i,a);return i*l+u*(l-1)}return i}function PW(C,i){return i?i-C:C*.14}function RW(C,i){var a=C7(),l=0;if((0,Nn.isNil)(C)||C==="")return l;if(a.save(),a.font=i,(0,Nn.isString)(C)&&C.includes(`
|
||
`)){var u=C.split(`
|
||
`);(0,Nn.each)(u,function(E){var P=a.measureText(E).width;l<P&&(l=P)})}else l=a.measureText(C).width;return a.restore(),l}function DI(C){var i=C.fontSize,a=C.fontFamily,l=C.fontWeight,u=C.fontStyle,E=C.fontVariant;return[u,E,l,i+"px",a].join(" ").trim()}function T7(C){var i=C.attr(),a=i.x,l=i.y,u=i.text,E=i.fontSize,P=i.lineHeight,j=i.font;j||(j=DI(i));var H=RW(u,j),X;if(!H)X={x:a,y:l,width:0,height:0};else{var ee=i.textAlign,se=i.textBaseline,Se=w7(u,E,P),Re={x:a,y:l-Se};ee&&(ee==="end"||ee==="right"?Re.x-=H:ee==="center"&&(Re.x-=H/2)),se&&(se==="top"?Re.y+=Se:se==="middle"&&(Re.y+=Se/2)),X={x:Re.x,y:Re.y,width:H,height:Se}}return X}var A7=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,NI=/[^\s\,]+/ig;function c1(C){var i=C||[];if((0,Nn.isArray)(i))return i;if((0,Nn.isString)(i))return i=i.match(A7),(0,Nn.each)(i,function(a,l){if(a=a.match(NI),a[0].length>1){var u=a[0].charAt(0);a.splice(1,0,a[0].substr(1)),a[0]=u}(0,Nn.each)(a,function(E,P){isNaN(E)||(a[P]=+E)}),i[l]=a}),i}var M7=c1;function LA(C,i,a,l){var u=[],E=!!l,P,j,H,X,ee,se,Se;if(E){H=l[0],X=l[1];for(var Re=0,Be=C.length;Re<Be;Re+=1){var Ye=C[Re];H=Vf.min([0,0],H,Ye),X=Vf.max([0,0],X,Ye)}}for(var Re=0,ht=C.length;Re<ht;Re+=1){var Ye=C[Re];if(Re===0&&!a)Se=Ye;else if(Re===ht-1&&!a)se=Ye,u.push(Se),u.push(se);else{var Tt=[Re?Re-1:ht-1,Re-1][a?0:1];P=C[Tt],j=C[a?(Re+1)%ht:Re+1];var Dt=[0,0];Dt=Vf.sub(Dt,j,P),Dt=Vf.scale(Dt,Dt,i);var Kt=Vf.distance(Ye,P),gn=Vf.distance(Ye,j),bn=Kt+gn;bn!==0&&(Kt/=bn,gn/=bn);var mn=Vf.scale([0,0],Dt,-Kt),kn=Vf.scale([0,0],Dt,gn);se=Vf.add([0,0],Ye,mn),ee=Vf.add([0,0],Ye,kn),ee=Vf.min([0,0],ee,Vf.max([0,0],j,Ye)),ee=Vf.max([0,0],ee,Vf.min([0,0],j,Ye)),mn=Vf.sub([0,0],ee,Ye),mn=Vf.scale([0,0],mn,-Kt/gn),se=Vf.add([0,0],Ye,mn),se=Vf.min([0,0],se,Vf.max([0,0],P,Ye)),se=Vf.max([0,0],se,Vf.min([0,0],P,Ye)),kn=Vf.sub([0,0],Ye,se),kn=Vf.scale([0,0],kn,gn/Kt),ee=Vf.add([0,0],Ye,kn),E&&(se=Vf.max([0,0],se,H),se=Vf.min([0,0],se,X),ee=Vf.max([0,0],ee,H),ee=Vf.min([0,0],ee,X)),u.push(Se),u.push(se),Se=ee}}return a&&u.push(u.shift()),u}function FA(C,i,a){i===void 0&&(i=!1),a===void 0&&(a=[[0,0],[1,1]]);for(var l=!!i,u=[],E=0,P=C.length;E<P;E+=2)u.push([C[E],C[E+1]]);for(var j=LA(u,.4,l,a),H=u.length,X=[],ee,se,Se,E=0;E<H-1;E+=1)ee=j[E*2],se=j[E*2+1],Se=u[E+1],X.push(["C",ee[0],ee[1],se[0],se[1],Se[0],Se[1]]);return l&&(ee=j[H],se=j[H+1],Se=u[0],X.push(["C",ee[0],ee[1],se[0],se[1],Se[0],Se[1]])),X}var LI=FA;function jP(C,i,a){var l=null,u=a;return i<u&&(u=i,l="add"),C<u&&(u=C,l="del"),{type:l,min:u}}var FI=function(i,a){var l=i.length,u=a.length,E,P,j=0;if(l===0||u===0)return null;for(var H=[],X=0;X<=l;X++)H[X]=[],H[X][0]={min:X};for(var ee=0;ee<=u;ee++)H[0][ee]={min:ee};for(var X=1;X<=l;X++){E=i[X-1];for(var ee=1;ee<=u;ee++){P=a[ee-1],isEqual(E,P)?j=0:j=1;var se=H[X-1][ee].min+1,Se=H[X][ee-1].min+1,Re=H[X-1][ee-1].min+j;H[X][ee]=jP(se,Se,Re)}}return H};function OW(C,i){var a=FI(C,i),l=C.length,u=i.length,E=[],P=1,j=1;if(a[l][u]!==l){for(var H=1;H<=l;H++){var X=a[H][H].min;j=H;for(var ee=P;ee<=u;ee++)a[H][ee].min<X&&(X=a[H][ee].min,j=ee);P=j,a[H][P].type&&E.push({index:H-1,type:a[H][P].type})}for(var H=E.length-1;H>=0;H--)P=E[H].index,E[H].type==="add"?C.splice(P,0,[].concat(C[P])):C.splice(P,1)}if(l=C.length,l<u)for(var H=0;H<u-l;H++)C[l-1][0]==="z"||C[l-1][0]==="Z"?C.splice(l-2,0,C[l-2]):C.push(C[l-1]);return C}var u1=`
|
||
\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,k7=new RegExp("([a-z])["+u1+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+u1+"]*,?["+u1+"]*)+)","ig"),P7=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+u1+"]*,?["+u1+"]*","ig");function jI(C){if(!C)return null;if((0,Nn.isArray)(C))return C;var i={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},a=[];return String(C).replace(k7,function(l,u,E){var P=[],j=u.toLowerCase();if(E.replace(P7,function(H,X){X&&P.push(+X)}),j==="m"&&P.length>2&&(a.push([u].concat(P.splice(0,2))),j="l",u=u==="m"?"l":"L"),j==="o"&&P.length===1&&a.push([u,P[0]]),j==="r")a.push([u].concat(P));else for(;P.length>=i[j]&&(a.push([u].concat(P.splice(0,i[j]))),!!i[j]););return""}),a}var $N=/[a-z]/;function KN(C,i){return[i[0]+(i[0]-C[0]),i[1]+(i[1]-C[1])]}function YN(C){var i=jI(C);if(!i||!i.length)return[["M",0,0]];for(var a=!1,l=0;l<i.length;l++){var u=i[l][0];if($N.test(u)||["V","H","T","S"].indexOf(u)>=0){a=!0;break}}if(!a)return i;var E=[],P=0,j=0,H=0,X=0,ee=0,se,Se,Re=i[0];(Re[0]==="M"||Re[0]==="m")&&(P=+Re[1],j=+Re[2],H=P,X=j,ee++,E[0]=["M",P,j]);for(var l=ee,Be=i.length;l<Be;l++){var Ye=i[l],ht=E[l-1],Tt=[],u=Ye[0],Dt=u.toUpperCase();if(u!==Dt)switch(Tt[0]=Dt,Dt){case"A":Tt[1]=Ye[1],Tt[2]=Ye[2],Tt[3]=Ye[3],Tt[4]=Ye[4],Tt[5]=Ye[5],Tt[6]=+Ye[6]+P,Tt[7]=+Ye[7]+j;break;case"V":Tt[1]=+Ye[1]+j;break;case"H":Tt[1]=+Ye[1]+P;break;case"M":H=+Ye[1]+P,X=+Ye[2]+j,Tt[1]=H,Tt[2]=X;break;default:for(var Kt=1,gn=Ye.length;Kt<gn;Kt++)Tt[Kt]=+Ye[Kt]+(Kt%2?P:j)}else Tt=i[l];switch(Dt){case"Z":P=+H,j=+X;break;case"H":P=Tt[1],Tt=["L",P,j];break;case"V":j=Tt[1],Tt=["L",P,j];break;case"T":P=Tt[1],j=Tt[2];var bn=KN([ht[1],ht[2]],[ht[3],ht[4]]);Tt=["Q",bn[0],bn[1],P,j];break;case"S":P=Tt[Tt.length-2],j=Tt[Tt.length-1];var mn=ht.length,kn=KN([ht[mn-4],ht[mn-3]],[ht[mn-2],ht[mn-1]]);Tt=["C",kn[0],kn[1],Tt[1],Tt[2],P,j];break;case"M":H=Tt[Tt.length-2],X=Tt[Tt.length-1];break;default:P=Tt[Tt.length-2],j=Tt[Tt.length-1]}E.push(Tt)}return E}var jA=Math.PI*2,FS=function(i,a,l,u,E,P,j){var H=i.x,X=i.y;H*=a,X*=l;var ee=u*H-E*X,se=E*H+u*X;return{x:ee+P,y:se+j}},XN=function(i,a){var l=a===1.5707963267948966?.551915024494:a===-1.5707963267948966?-.551915024494:4/3*Math.tan(a/4),u=Math.cos(i),E=Math.sin(i),P=Math.cos(i+a),j=Math.sin(i+a);return[{x:u-E*l,y:E+u*l},{x:P+j*l,y:j-P*l},{x:P,y:j}]},JN=function(i,a,l,u){var E=i*u-a*l<0?-1:1,P=i*l+a*u;return P>1&&(P=1),P<-1&&(P=-1),E*Math.acos(P)},Sb=function(i,a,l,u,E,P,j,H,X,ee,se,Se){var Re=Math.pow(E,2),Be=Math.pow(P,2),Ye=Math.pow(se,2),ht=Math.pow(Se,2),Tt=Re*Be-Re*ht-Be*Ye;Tt<0&&(Tt=0),Tt/=Re*ht+Be*Ye,Tt=Math.sqrt(Tt)*(j===H?-1:1);var Dt=Tt*E/P*Se,Kt=Tt*-P/E*se,gn=ee*Dt-X*Kt+(i+l)/2,bn=X*Dt+ee*Kt+(a+u)/2,mn=(se-Dt)/E,kn=(Se-Kt)/P,sr=(-se-Dt)/E,yr=(-Se-Kt)/P,jr=JN(1,0,mn,kn),zr=JN(mn,kn,sr,yr);return H===0&&zr>0&&(zr-=jA),H===1&&zr<0&&(zr+=jA),[gn,bn,jr,zr]},R7=function(i){var a=i.px,l=i.py,u=i.cx,E=i.cy,P=i.rx,j=i.ry,H=i.xAxisRotation,X=H===void 0?0:H,ee=i.largeArcFlag,se=ee===void 0?0:ee,Se=i.sweepFlag,Re=Se===void 0?0:Se,Be=[];if(P===0||j===0)return[{x1:0,y1:0,x2:0,y2:0,x:u,y:E}];var Ye=Math.sin(X*jA/360),ht=Math.cos(X*jA/360),Tt=ht*(a-u)/2+Ye*(l-E)/2,Dt=-Ye*(a-u)/2+ht*(l-E)/2;if(Tt===0&&Dt===0)return[{x1:0,y1:0,x2:0,y2:0,x:u,y:E}];P=Math.abs(P),j=Math.abs(j);var Kt=Math.pow(Tt,2)/Math.pow(P,2)+Math.pow(Dt,2)/Math.pow(j,2);Kt>1&&(P*=Math.sqrt(Kt),j*=Math.sqrt(Kt));var gn=Sb(a,l,u,E,P,j,se,Re,Ye,ht,Tt,Dt),bn=gn[0],mn=gn[1],kn=gn[2],sr=gn[3],yr=Math.abs(sr)/(jA/4);Math.abs(1-yr)<1e-7&&(yr=1);var jr=Math.max(Math.ceil(yr),1);sr/=jr;for(var zr=0;zr<jr;zr++)Be.push(XN(kn,sr)),kn+=sr;return Be.map(function(va){var za=FS(va[0],P,j,ht,Ye,bn,mn),xi=za.x,Di=za.y,Si=FS(va[1],P,j,ht,Ye,bn,mn),jo=Si.x,ro=Si.y,hi=FS(va[2],P,j,ht,Ye,bn,mn),io=hi.x,oo=hi.y;return{x1:xi,y1:Di,x2:jo,y2:ro,x:io,y:oo}})};function IW(C,i,a,l,u,E,P,j,H){var X=R7({px:C,py:i,cx:j,cy:H,rx:a,ry:l,xAxisRotation:u,largeArcFlag:E,sweepFlag:P});return X.reduce(function(ee,se){var Se=se.x1,Re=se.y1,Be=se.x2,Ye=se.y2,ht=se.x,Tt=se.y;return ee.push(Se,Re,Be,Ye,ht,Tt),ee},[])}function QN(C,i){"TQ".indexOf(C[0])<0&&(i.qx=null,i.qy=null);var a=C.slice(1),l=a[0],u=a[1];switch(C[0]){case"M":return i.x=l,i.y=u,C;case"A":return["C"].concat(arcToCubic.apply(0,[i.x1,i.y1].concat(C.slice(1))));case"Q":return i.qx=l,i.qy=u,["C"].concat(quadToCubic.apply(0,[i.x1,i.y1].concat(C.slice(1))));case"L":return["C"].concat(lineToCubic(i.x1,i.y1,C[1],C[2]));case"H":return["C"].concat(lineToCubic(i.x1,i.y1,C[1],i.y1));case"V":return["C"].concat(lineToCubic(i.x1,i.y1,i.x1,C[1]));case"Z":return["C"].concat(lineToCubic(i.x1,i.y1,i.x,i.y));default:}return C}function BI(C,i){i===void 0&&(i=!1);for(var a=path2Absolute(C),l={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},u=[],E="",P=a.length,j,H,X=[],ee=0;ee<P;ee+=1)a[ee]&&(E=a[ee][0]),u[ee]=E,a[ee]=segmentToCubic(a[ee],l),O7(a,u,ee),P=a.length,E==="Z"&&X.push(ee),j=a[ee],H=j.length,l.x1=+j[H-2],l.y1=+j[H-1],l.x2=+j[H-4]||l.x1,l.y2=+j[H-3]||l.y1;return i?[a,X]:a}function O7(C,i,a){if(C[a].length>7){C[a].shift();for(var l=C[a],u=a;l.length;)i[a]="A",C.splice(u+=1,0,["C"].concat(l.splice(0,6)));C.splice(a,1)}}var qN=function(i,a,l,u,E){var P=-3*a+9*l-9*u+3*E,j=i*P+6*a-12*l+6*u;return i*j-3*a+3*l},BA=function(i,a,l,u,E,P,j,H,X){X===null&&(X=1),X=X>1?1:X<0?0:X;for(var ee=X/2,se=12,Se=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],Re=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],Be=0,Ye=0;Ye<se;Ye++){var ht=ee*Se[Ye]+ee,Tt=qN(ht,i,l,E,j),Dt=qN(ht,a,u,P,H),Kt=Tt*Tt+Dt*Dt;Be+=Re[Ye]*Math.sqrt(Kt)}return ee*Be},I7=function(i,a,l,u,E,P,j,H){for(var X=[],ee=[[],[]],se,Se,Re,Be,Ye=0;Ye<2;++Ye){if(Ye===0?(Se=6*i-12*l+6*E,se=-3*i+9*l-9*E+3*j,Re=3*l-3*i):(Se=6*a-12*u+6*P,se=-3*a+9*u-9*P+3*H,Re=3*u-3*a),Math.abs(se)<1e-12){if(Math.abs(Se)<1e-12)continue;Be=-Re/Se,Be>0&&Be<1&&X.push(Be);continue}var ht=Se*Se-4*Re*se,Tt=Math.sqrt(ht);if(!(ht<0)){var Dt=(-Se+Tt)/(2*se);Dt>0&&Dt<1&&X.push(Dt);var Kt=(-Se-Tt)/(2*se);Kt>0&&Kt<1&&X.push(Kt)}}for(var gn=X.length,bn=gn,mn;gn--;)Be=X[gn],mn=1-Be,ee[0][gn]=mn*mn*mn*i+3*mn*mn*Be*l+3*mn*Be*Be*E+Be*Be*Be*j,ee[1][gn]=mn*mn*mn*a+3*mn*mn*Be*u+3*mn*Be*Be*P+Be*Be*Be*H;return ee[0][bn]=i,ee[1][bn]=a,ee[0][bn+1]=j,ee[1][bn+1]=H,ee[0].length=ee[1].length=bn+2,{min:{x:Math.min.apply(0,ee[0]),y:Math.min.apply(0,ee[1])},max:{x:Math.max.apply(0,ee[0]),y:Math.max.apply(0,ee[1])}}},D7=function(i,a,l,u,E,P,j,H){if(!(Math.max(i,l)<Math.min(E,j)||Math.min(i,l)>Math.max(E,j)||Math.max(a,u)<Math.min(P,H)||Math.min(a,u)>Math.max(P,H))){var X=(i*u-a*l)*(E-j)-(i-l)*(E*H-P*j),ee=(i*u-a*l)*(P-H)-(a-u)*(E*H-P*j),se=(i-l)*(P-H)-(a-u)*(E-j);if(!!se){var Se=X/se,Re=ee/se,Be=+Se.toFixed(2),Ye=+Re.toFixed(2);if(!(Be<+Math.min(i,l).toFixed(2)||Be>+Math.max(i,l).toFixed(2)||Be<+Math.min(E,j).toFixed(2)||Be>+Math.max(E,j).toFixed(2)||Ye<+Math.min(a,u).toFixed(2)||Ye>+Math.max(a,u).toFixed(2)||Ye<+Math.min(P,H).toFixed(2)||Ye>+Math.max(P,H).toFixed(2)))return{x:Se,y:Re}}}},Cb=function(i,a,l){return a>=i.x&&a<=i.x+i.width&&l>=i.y&&l<=i.y+i.height},BP=function(i,a,l,u){return i===null&&(i=a=l=u=0),a===null&&(a=i.y,l=i.width,u=i.height,i=i.x),{x:i,y:a,width:l,w:l,height:u,h:u,x2:i+l,y2:a+u,cx:i+l/2,cy:a+u/2,r1:Math.min(l,u)/2,r2:Math.max(l,u)/2,r0:Math.sqrt(l*l+u*u)/2,path:rectPath(i,a,l,u),vb:[i,a,l,u].join(" ")}},eL=function(i,a){return i=BP(i),a=BP(a),Cb(a,i.x,i.y)||Cb(a,i.x2,i.y)||Cb(a,i.x,i.y2)||Cb(a,i.x2,i.y2)||Cb(i,a.x,a.y)||Cb(i,a.x2,a.y)||Cb(i,a.x,a.y2)||Cb(i,a.x2,a.y2)||(i.x<a.x2&&i.x>a.x||a.x<i.x2&&a.x>i.x)&&(i.y<a.y2&&i.y>a.y||a.y<i.y2&&a.y>i.y)},UI=function(i,a,l,u,E,P,j,H){isArray(i)||(i=[i,a,l,u,E,P,j,H]);var X=I7.apply(null,i);return BP(X.min.x,X.min.y,X.max.x-X.min.x,X.max.y-X.min.y)},ZI=function(i,a,l,u,E,P,j,H,X){var ee=1-X,se=Math.pow(ee,3),Se=Math.pow(ee,2),Re=X*X,Be=Re*X,Ye=se*i+Se*3*X*l+ee*3*X*X*E+Be*j,ht=se*a+Se*3*X*u+ee*3*X*X*P+Be*H,Tt=i+2*X*(l-i)+Re*(E-2*l+i),Dt=a+2*X*(u-a)+Re*(P-2*u+a),Kt=l+2*X*(E-l)+Re*(j-2*E+l),gn=u+2*X*(P-u)+Re*(H-2*P+u),bn=ee*i+X*l,mn=ee*a+X*u,kn=ee*E+X*j,sr=ee*P+X*H,yr=90-Math.atan2(Tt-Kt,Dt-gn)*180/Math.PI;return{x:Ye,y:ht,m:{x:Tt,y:Dt},n:{x:Kt,y:gn},start:{x:bn,y:mn},end:{x:kn,y:sr},alpha:yr}},UA=function(i,a,l){var u=UI(i),E=UI(a);if(!eL(u,E))return l?0:[];for(var P=BA.apply(0,i),j=BA.apply(0,a),H=~~(P/8),X=~~(j/8),ee=[],se=[],Se={},Re=l?0:[],Be=0;Be<H+1;Be++){var Ye=ZI.apply(0,i.concat(Be/H));ee.push({x:Ye.x,y:Ye.y,t:Be/H})}for(var Be=0;Be<X+1;Be++){var Ye=ZI.apply(0,a.concat(Be/X));se.push({x:Ye.x,y:Ye.y,t:Be/X})}for(var Be=0;Be<H;Be++)for(var ht=0;ht<X;ht++){var Tt=ee[Be],Dt=ee[Be+1],Kt=se[ht],gn=se[ht+1],bn=Math.abs(Dt.x-Tt.x)<.001?"y":"x",mn=Math.abs(gn.x-Kt.x)<.001?"y":"x",kn=D7(Tt.x,Tt.y,Dt.x,Dt.y,Kt.x,Kt.y,gn.x,gn.y);if(kn){if(Se[kn.x.toFixed(4)]===kn.y.toFixed(4))continue;Se[kn.x.toFixed(4)]=kn.y.toFixed(4);var sr=Tt.t+Math.abs((kn[bn]-Tt[bn])/(Dt[bn]-Tt[bn]))*(Dt.t-Tt.t),yr=Kt.t+Math.abs((kn[mn]-Kt[mn])/(gn[mn]-Kt[mn]))*(gn.t-Kt.t);sr>=0&&sr<=1&&yr>=0&&yr<=1&&(l?Re++:Re.push({x:kn.x,y:kn.y,t1:sr,t2:yr}))}}return Re},Kx=function(i,a,l){i=path2Curve(i),a=path2Curve(a);for(var u,E,P,j,H,X,ee,se,Se,Re,Be=l?0:[],Ye=0,ht=i.length;Ye<ht;Ye++){var Tt=i[Ye];if(Tt[0]==="M")u=H=Tt[1],E=X=Tt[2];else{Tt[0]==="C"?(Se=[u,E].concat(Tt.slice(1)),u=Se[6],E=Se[7]):(Se=[u,E,u,E,H,X,H,X],u=H,E=X);for(var Dt=0,Kt=a.length;Dt<Kt;Dt++){var gn=a[Dt];if(gn[0]==="M")P=ee=gn[1],j=se=gn[2];else{gn[0]==="C"?(Re=[P,j].concat(gn.slice(1)),P=Re[6],j=Re[7]):(Re=[P,j,P,j,ee,se,ee,se],P=ee,j=se);var bn=UA(Se,Re,l);if(l)Be+=bn;else{for(var mn=0,kn=bn.length;mn<kn;mn++)bn[mn].segment1=Ye,bn[mn].segment2=Dt,bn[mn].bez1=Se,bn[mn].bez2=Re;Be=Be.concat(bn)}}}}}return Be};function DW(C,i){return Kx(C,i)}function UP(C){return Math.sqrt(C[0]*C[0]+C[1]*C[1])}function ZP(C,i){return UP(C)*UP(i)?(C[0]*i[0]+C[1]*i[1])/(UP(C)*UP(i)):1}function tL(C,i){return(C[0]*i[1]<C[1]*i[0]?-1:1)*Math.acos(ZP(C,i))}function VI(C,i){return C[0]===i[0]&&C[1]===i[1]}function nL(C,i){var a=i[1],l=i[2],u=(0,Nn.mod)((0,Nn.toRadian)(i[3]),Math.PI*2),E=i[4],P=i[5],j=C[0],H=C[1],X=i[6],ee=i[7],se=Math.cos(u)*(j-X)/2+Math.sin(u)*(H-ee)/2,Se=-1*Math.sin(u)*(j-X)/2+Math.cos(u)*(H-ee)/2,Re=se*se/(a*a)+Se*Se/(l*l);Re>1&&(a*=Math.sqrt(Re),l*=Math.sqrt(Re));var Be=a*a*(Se*Se)+l*l*(se*se),Ye=Be?Math.sqrt((a*a*(l*l)-Be)/Be):1;E===P&&(Ye*=-1),isNaN(Ye)&&(Ye=0);var ht=l?Ye*a*Se/l:0,Tt=a?Ye*-l*se/a:0,Dt=(j+X)/2+Math.cos(u)*ht-Math.sin(u)*Tt,Kt=(H+ee)/2+Math.sin(u)*ht+Math.cos(u)*Tt,gn=[(se-ht)/a,(Se-Tt)/l],bn=[(-1*se-ht)/a,(-1*Se-Tt)/l],mn=tL([1,0],gn),kn=tL(gn,bn);return ZP(gn,bn)<=-1&&(kn=Math.PI),ZP(gn,bn)>=1&&(kn=0),P===0&&kn>0&&(kn=kn-2*Math.PI),P===1&&kn<0&&(kn=kn+2*Math.PI),{cx:Dt,cy:Kt,rx:VI(C,[X,ee])?0:a,ry:VI(C,[X,ee])?0:l,startAngle:mn,endAngle:mn+kn,xRotation:u,arcFlag:E,sweepFlag:P}}function ZA(C,i){return[i[0]+(i[0]-C[0]),i[1]+(i[1]-C[1])]}function nw(C){C=M7(C);for(var i=[],a=null,l=null,u=null,E=0,P=C.length,j=0;j<P;j++){var H=C[j];l=C[j+1];var X=H[0],ee={command:X,prePoint:a,params:H,startTangent:null,endTangent:null};switch(X){case"M":u=[H[1],H[2]],E=j;break;case"A":var se=nL(a,H);ee.arcParams=se;break;default:break}if(X==="Z")a=u,l=C[E+1];else{var Se=H.length;a=[H[Se-2],H[Se-1]]}l&&l[0]==="Z"&&(l=C[E],i[E]&&(i[E].prePoint=a)),ee.currentPoint=a,i[E]&&VI(a,i[E].currentPoint)&&(i[E].prePoint=ee.prePoint);var Re=l?[l[l.length-2],l[l.length-1]]:null;ee.nextPoint=Re;var Be=ee.prePoint;if(["L","H","V"].includes(X))ee.startTangent=[Be[0]-a[0],Be[1]-a[1]],ee.endTangent=[a[0]-Be[0],a[1]-Be[1]];else if(X==="Q"){var Ye=[H[1],H[2]];ee.startTangent=[Be[0]-Ye[0],Be[1]-Ye[1]],ee.endTangent=[a[0]-Ye[0],a[1]-Ye[1]]}else if(X==="T"){var ht=i[j-1],Ye=ZA(ht.currentPoint,Be);ht.command==="Q"?(ee.command="Q",ee.startTangent=[Be[0]-Ye[0],Be[1]-Ye[1]],ee.endTangent=[a[0]-Ye[0],a[1]-Ye[1]]):(ee.command="TL",ee.startTangent=[Be[0]-a[0],Be[1]-a[1]],ee.endTangent=[a[0]-Be[0],a[1]-Be[1]])}else if(X==="C"){var Tt=[H[1],H[2]],Dt=[H[3],H[4]];ee.startTangent=[Be[0]-Tt[0],Be[1]-Tt[1]],ee.endTangent=[a[0]-Dt[0],a[1]-Dt[1]],ee.startTangent[0]===0&&ee.startTangent[1]===0&&(ee.startTangent=[Tt[0]-Dt[0],Tt[1]-Dt[1]]),ee.endTangent[0]===0&&ee.endTangent[1]===0&&(ee.endTangent=[Dt[0]-Tt[0],Dt[1]-Tt[1]])}else if(X==="S"){var ht=i[j-1],Tt=ZA(ht.currentPoint,Be),Dt=[H[1],H[2]];ht.command==="C"?(ee.command="C",ee.startTangent=[Be[0]-Tt[0],Be[1]-Tt[1]],ee.endTangent=[a[0]-Dt[0],a[1]-Dt[1]]):(ee.command="SQ",ee.startTangent=[Be[0]-Dt[0],Be[1]-Dt[1]],ee.endTangent=[a[0]-Dt[0],a[1]-Dt[1]])}else if(X==="A"){var Kt=.001,gn=ee.arcParams||{},bn=gn.cx,mn=bn===void 0?0:bn,kn=gn.cy,sr=kn===void 0?0:kn,yr=gn.rx,jr=yr===void 0?0:yr,zr=gn.ry,va=zr===void 0?0:zr,za=gn.sweepFlag,xi=za===void 0?0:za,Di=gn.startAngle,Si=Di===void 0?0:Di,jo=gn.endAngle,ro=jo===void 0?0:jo;xi===0&&(Kt*=-1);var hi=jr*Math.cos(Si-Kt)+mn,io=va*Math.sin(Si-Kt)+sr;ee.startTangent=[hi-u[0],io-u[1]];var oo=jr*Math.cos(Si+ro+Kt)+mn,Ki=va*Math.sin(Si+ro-Kt)+sr;ee.endTangent=[Be[0]-oo,Be[1]-Ki]}i.push(ee)}return i}function rw(C){for(var i=[],a=C.length,l=0;l<a-1;l++){var u=C[l],E=C[l+1];i.push({from:{x:u[0],y:u[1]},to:{x:E[0],y:E[1]}})}if(i.length>1){var P=C[0],j=C[a-1];i.push({from:{x:j[0],y:j[1]},to:{x:P[0],y:P[1]}})}return i}function zI(C,i){var a=!1;return each(C,function(l){if(getLineIntersect(l.from,l.to,i.from,i.to))return a=!0,!1}),a}function VA(C){var i=C.map(function(l){return l[0]}),a=C.map(function(l){return l[1]});return{minX:Math.min.apply(null,i),maxX:Math.max.apply(null,i),minY:Math.min.apply(null,a),maxY:Math.max.apply(null,a)}}function WI(C,i){return!(i.minX>C.maxX||i.maxX<C.minX||i.minY>C.maxY||i.maxY<C.minY)}function NW(C,i){if(C.length<2||i.length<2)return!1;var a=VA(C),l=VA(i);if(!WI(a,l))return!1;var u=!1;if(each(i,function(H){if(isPointInPolygon(C,H[0],H[1]))return u=!0,!1}),u||(each(C,function(H){if(isPointInPolygon(i,H[0],H[1]))return u=!0,!1}),u))return!0;var E=rw(C),P=rw(i),j=!1;return each(P,function(H){if(zI(E,H))return j=!0,!1}),j}function M_(C,i){for(var a=[],l=[],u=[],E=0;E<C.length;E++){var P=C[E],j=P.currentPoint,H=P.params,X=P.prePoint,ee=void 0;switch(P.command){case"Q":ee=DN.box(X[0],X[1],H[1],H[2],H[3],H[4]);break;case"C":ee=LS.box(X[0],X[1],H[1],H[2],H[3],H[4],H[5],H[6]);break;case"A":var se=P.arcParams;ee=VN.box(se.cx,se.cy,se.rx,se.ry,se.xRotation,se.startAngle,se.endAngle);break;default:a.push(j[0]),l.push(j[1]);break}ee&&(P.box=ee,a.push(ee.x,ee.x+ee.width),l.push(ee.y,ee.y+ee.height)),i&&(P.command==="L"||P.command==="M")&&P.prePoint&&P.nextPoint&&u.push(P)}a=a.filter(function(Tt){return!Number.isNaN(Tt)&&Tt!==Infinity&&Tt!==-Infinity}),l=l.filter(function(Tt){return!Number.isNaN(Tt)&&Tt!==Infinity&&Tt!==-Infinity});var Se=(0,Nn.min)(a),Re=(0,Nn.min)(l),Be=(0,Nn.max)(a),Ye=(0,Nn.max)(l);if(u.length===0)return{x:Se,y:Re,width:Be-Se,height:Ye-Re};for(var E=0;E<u.length;E++){var P=u[E],j=P.currentPoint,ht=void 0;j[0]===Se?(ht=HI(P,i),Se=Se-ht.xExtra):j[0]===Be&&(ht=HI(P,i),Be=Be+ht.xExtra),j[1]===Re?(ht=HI(P,i),Re=Re-ht.yExtra):j[1]===Ye&&(ht=HI(P,i),Ye=Ye+ht.yExtra)}return{x:Se,y:Re,width:Be-Se,height:Ye-Re}}function HI(C,i){var a=C.prePoint,l=C.currentPoint,u=C.nextPoint,E=Math.pow(l[0]-a[0],2)+Math.pow(l[1]-a[1],2),P=Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2),j=Math.pow(a[0]-u[0],2)+Math.pow(a[1]-u[1],2),H=Math.acos((E+P-j)/(2*Math.sqrt(E)*Math.sqrt(P)));if(!H||Math.sin(H)===0||(0,Nn.isNumberEqual)(H,0))return{xExtra:0,yExtra:0};var X=Math.abs(Math.atan2(u[1]-l[1],u[0]-l[0])),ee=Math.abs(Math.atan2(u[0]-l[0],u[1]-l[1]));X=X>Math.PI/2?Math.PI-X:X,ee=ee>Math.PI/2?Math.PI-ee:ee;var se={xExtra:Math.cos(H/2-X)*(i/2*(1/Math.sin(H/2)))-i/2||0,yExtra:Math.cos(ee-H/2)*(i/2*(1/Math.sin(H/2)))-i/2||0};return se}function aw(C){var i=C.attr(),a=i.path,l=i.stroke,u=l?i.lineWidth:0,E=C.get("segments")||nw(a),P=M_(E,u),j=P.x,H=P.y,X=P.width,ee=P.height,se={minX:j,minY:H,maxX:j+X,maxY:H+ee};return se=FP(C,se),{x:se.minX,y:se.minY,width:se.maxX-se.minX,height:se.maxY-se.minY}}function N7(C){var i=C.attr(),a=i.x1,l=i.y1,u=i.x2,E=i.y2,P=Math.min(a,u),j=Math.max(a,u),H=Math.min(l,E),X=Math.max(l,E),ee={minX:P,maxX:j,minY:H,maxY:X};return ee=FP(C,ee),{x:ee.minX,y:ee.minY,width:ee.maxX-ee.minX,height:ee.maxY-ee.minY}}function L7(C){var i=C.attr(),a=i.x,l=i.y,u=i.rx,E=i.ry;return{x:a-u,y:l-E,width:u*2,height:E*2}}Ay("rect",MN),Ay("image",MN),Ay("circle",kN),Ay("marker",kN),Ay("polyline",GN),Ay("polygon",kW),Ay("text",T7),Ay("path",aw),Ay("line",N7),Ay("ellipse",L7);var LW="0.5.11",F7=function(C){rb(i,C);function i(a,l){var u=C.call(this,a,l)||this;return u.item=l.item,u.canvasX=l.canvasX,u.canvasY=l.canvasY,u.wheelDelta=l.wheelDelta,u.detail=l.detail,u}return i}(ts),GI=function(i){return"".concat(i,"-").concat(Math.random()).concat(Date.now())},$I=function(i){if((0,Nn.isArray)(i))switch(i.length){case 4:return i;case 3:return i.push(i[1]),i;case 2:return i.concat(i);case 1:return[i[0],i[0],i[0],i[0]];default:return[0,0,0,0]}if((0,Nn.isNumber)(i))return[i,i,i,i];if((0,Nn.isString)(i)){var a=parseInt(i,10);return[a,a,a,a]}return[0,0,0,0]},iw=function(i){var a=new F7(i.type,i);return a.clientX=i.clientX,a.clientY=i.clientY,a.x=i.x,a.y=i.y,a.target=i.target,a.currentTarget=i.currentTarget,a.bubbles=!0,a.item=i.item,a},j7=function(i){if(!i)return!1;for(var a=9,l=[1,0,0,0,1,0,0,0,1],u=0;u<a;u++)if(i[u]!==l[u])return!0;return!1},f1=function(i){return Number.isNaN(Number(i))},wb=function(i){for(var a=Infinity,l=-Infinity,u=Infinity,E=-Infinity,P=0;P<i.length;P++){var j=i[P],H=j.getBBox(),X=H.minX,ee=H.minY,se=H.maxX,Se=H.maxY;X<a&&(a=X),ee<u&&(u=ee),se>l&&(l=se),Se>E&&(E=Se)}var Re=Math.floor(a),Be=Math.floor(u),Ye=Math.ceil(l)-Math.floor(a),ht=Math.ceil(E)-Math.floor(u);return{x:Re,y:Be,width:Ye,height:ht,minX:a,minY:u,maxX:l,maxY:E}},rL=function(i,a,l,u,E){a===void 0&&(a=15),l===void 0&&(l="quadratic"),u===void 0&&(u=void 0),E===void 0&&(E=void 0);for(var P=i.length,j=a*2,H=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],X={},ee=[],se={},Se=0;Se<P;Se++){var Re=i[Se],Be=Re.source,Ye=Re.target,ht="".concat(Be,"-").concat(Ye);if(!ee[Se]){X[ht]||(X[ht]=[]),ee[Se]=!0,X[ht].push(Re);for(var Tt=0;Tt<P;Tt++)if(Se!==Tt){var Dt=i[Tt],Kt=Dt.source,gn=Dt.target;ee[Tt]||(Be===gn&&Ye===Kt?(X[ht].push(Dt),ee[Tt]=!0,se["".concat(Kt,"|").concat(gn,"|").concat(X[ht].length-1)]=!0):Be===Kt&&Ye===gn&&(X[ht].push(Dt),ee[Tt]=!0))}}}for(var bn in X)for(var mn=X[bn],kn=mn.length,sr=0;sr<kn;sr++){var yr=mn[sr];if(yr.source===yr.target){E&&(yr.type=E),yr.loopCfg={position:H[sr%8],dist:Math.floor(sr/8)*20+50};continue}if(kn===1&&u&&yr.source!==yr.target){yr.type=u;continue}yr.type=l;var jr=(sr%2==0?1:-1)*(se["".concat(yr.source,"|").concat(yr.target,"|").concat(sr)]?-1:1);kn%2==1?yr.curveOffset=jr*Math.ceil(sr/2)*j:yr.curveOffset=jr*(Math.floor(sr/2)*j+a)}return i},aL=o(18558),B7=function(){function C(i){this.destroyed=!1,this.graph=i,this.destroyed=!1}return C.prototype.getViewCenter=function(){var i=this.getFormatPadding(),a=this.graph,l=this.graph.get("width"),u=a.get("height");return{x:(l-i[1]-i[3])/2+i[3],y:(u-i[0]-i[2])/2+i[0]}},C.prototype.fitCenter=function(i,a){var l=this.graph,u=l.get("group"),E,P=l.getNodes();if(P.length>l.get("optimizeThreshold")){var j=Infinity,H=Infinity,X=-Infinity,ee=-Infinity;P.forEach(function(gn){var bn=gn.getModel(),mn=bn.x,kn=bn.y;j>mn&&(j=mn),H>kn&&(H=kn),X<mn&&(X=mn),ee<kn&&(ee=kn)});var se=u.getMatrix()||[1,0,0,0,1,0,0,0,1],Se=jh({x:j,y:H},se),Re=Se.x,Be=Se.y,Ye=jh({x:X,y:ee},se),ht=Ye.x,Tt=Ye.y;E={minX:Re,maxX:ht,minY:Be,maxY:Tt,width:ht-Re,height:Tt-Be,x:Re,y:Be}}else E=u.getCanvasBBox();if(!(E.width===0||E.height===0)){var Dt=this.getViewCenter(),Kt={x:E.x+E.width/2,y:E.y+E.height/2};l.translate(Dt.x-Kt.x,Dt.y-Kt.y,i,a)}},C.prototype.animatedFitView=function(i,a,l,u,E,P,j,H){var X=this.graph;l=l||{duration:500,easing:"easeCubic"};var ee=[1,0,0,0,1,0,0,0,1],se=u.x+E.x-P.x-u.minX,Se=u.y+E.y-P.y-u.minY;if(!(f1(se)||f1(Se))){var Re=(0,aL.vs)(ee,[["t",se,Se]]);if(!H){var Be=vv({animateCfg:l,callback:function(){X.emit("viewportchange",{action:"translate",matrix:Re})}});i.animate(function(gn){return{matrix:gS(a,Re,gn)}},Be);return}var Ye=X.get("minZoom"),ht=X.get("maxZoom"),Tt=j;Ye&&j<Ye?(Tt=Ye,console.warn("fitview failed, ratio out of range, ratio: %f",j,"graph minzoom has been used instead")):ht&&j>ht&&(Tt=ht,console.warn("fitview failed, ratio out of range, ratio: %f",j,"graph maxzoom has been used instead"));var Dt=(0,aL.vs)(Re,[["t",-E.x,-E.y],["s",Tt,Tt],["t",E.x,E.y]]),Kt=vv({animateCfg:l,callback:function(){i.setMatrix(Dt),X.emit("viewportchange",{action:"translate",matrix:Re}),X.emit("viewportchange",{action:"zoom",matrix:Dt})}});i.stopAnimate(),i.setMatrix(a),i.animate(function(gn){return{matrix:gS(a,Dt,gn)}},Kt)}},C.prototype.fitView=function(i,a){var l=this.graph,u=this.getFormatPadding(),E=l.get("width"),P=l.get("height"),j=l.get("group"),H=j.getMatrix()||[1,0,0,0,1,0,0,0,1];j.resetMatrix();var X,ee=l.getNodes();if(ee.length>l.get("optimizeThreshold")){var se=Infinity,Se=Infinity,Re=-Infinity,Be=-Infinity;ee.forEach(function(mn){var kn=mn.getModel(),sr=kn.x,yr=kn.y;se>sr&&(se=sr),Se>yr&&(Se=yr),Re<sr&&(Re=sr),Be<yr&&(Be=yr)}),X={minX:se,maxX:Re,minY:Se,maxY:Be,width:Re-se,height:Be-Se,x:se,y:Se}}else X=j.getCanvasBBox();if(!(X.width===0||X.height===0)){var Ye=this.getViewCenter(),ht={x:X.x+X.width/2,y:X.y+X.height/2},Tt=(E-u[1]-u[3])/X.width,Dt=(P-u[0]-u[2])/X.height,Kt=Tt;if(Tt>Dt&&(Kt=Dt),i)this.animatedFitView(j,H,a,X,Ye,ht,Kt,!0);else{var gn=Ye.x-ht.x,bn=Ye.y-ht.y;if(f1(gn)||f1(bn))return;l.translate(gn,bn),l.zoom(Kt,Ye)||console.warn("zoom failed, ratio out of range, ratio: %f",Kt)}}},C.prototype.fitViewByRules=function(i,a,l){var u=i.onlyOutOfViewPort,E=u===void 0?!1:u,P=i.direction,j=P===void 0?"both":P,H=i.ratioRule,X=H===void 0?"min":H,ee=this.graph,se=this.getFormatPadding(),Se=ee.get("width"),Re=ee.get("height"),Be=ee.get("group"),Ye=Be.getMatrix()||[1,0,0,0,1,0,0,0,1];Be.resetMatrix();var ht,Tt=ee.getNodes();if(Tt.length>ee.get("optimizeThreshold")){var Dt=Infinity,Kt=Infinity,gn=-Infinity,bn=-Infinity;Tt.forEach(function(xi){var Di=xi.getModel(),Si=Di.x,jo=Di.y;Dt>Si&&(Dt=Si),Kt>jo&&(Kt=jo),gn<Si&&(gn=Si),bn<jo&&(bn=jo)}),ht={minX:Dt,maxX:gn,minY:Kt,maxY:bn,width:gn-Dt,height:bn-Kt,x:Dt,y:Kt}}else ht=Be.getCanvasBBox();if(!(ht.width===0||ht.height===0)){var mn=this.getViewCenter(),kn={x:ht.x+ht.width/2,y:ht.y+ht.height/2},sr=(Se-se[1]-se[3])/ht.width,yr=(Re-se[0]-se[2])/ht.height,jr;if(j==="x"?jr=sr:j==="y"?jr=yr:jr=X==="max"?Math.max(sr,yr):Math.min(sr,yr),E&&(jr=jr<1?jr:1),a)this.animatedFitView(Be,Ye,l,ht,mn,kn,jr,!0);else{var zr=ee.getZoom(),va=zr*jr,za=ee.get("minZoom");va<za&&(va=za,console.warn("fitview failed, ratio out of range, ratio: %f",jr,"graph minzoom has been used instead")),ee.translate(mn.x-kn.x,mn.y-kn.y),ee.zoomTo(va,mn)}}},C.prototype.getFormatPadding=function(){var i=this.graph.get("fitViewPadding");return $I(i)},C.prototype.focusPoint=function(i,a,l){var u=this,E=this.getViewCenter(),P=this.getPointByCanvas(E.x,E.y),j=this.graph.get("group").getMatrix();if(j||(j=[1,0,0,0,1,0,0,0,1]),a){var H=(P.x-i.x)*j[0],X=(P.y-i.y)*j[4],ee=0,se=0,Se=0,Re=0;this.graph.get("canvas").animate(function(Be){Se=H*Be,Re=X*Be,u.graph.translate(Se-ee,Re-se),ee=Se,se=Re},bl({},l))}else this.graph.translate((P.x-i.x)*j[0],(P.y-i.y)*j[4])},C.prototype.getPointByCanvas=function(i,a){var l=this.graph.get("group").getMatrix();l||(l=[1,0,0,0,1,0,0,0,1]);var u=Eg({x:i,y:a},l);return u},C.prototype.getPointByClient=function(i,a){var l=this.graph.get("canvas"),u=l.getPointByClient(i,a);return this.getPointByCanvas(u.x,u.y)},C.prototype.getClientByPoint=function(i,a){var l=this.graph.get("canvas"),u=this.getCanvasByPoint(i,a),E=l.getClientByPoint(u.x,u.y);return{x:E.x,y:E.y}},C.prototype.getCanvasByPoint=function(i,a){var l=this.graph.get("group").getMatrix();return l||(l=[1,0,0,0,1,0,0,0,1]),jh({x:i,y:a},l)},C.prototype.focus=function(i,a,l){if((0,Nn.isString)(i)&&(i=this.graph.findById(i)),i){var u=0,E=0;if(i.getType&&i.getType()==="edge"){var P=i.getSource().get("group").getMatrix(),j=i.getTarget().get("group").getMatrix();P&&j?(u=(P[6]+j[6])/2,E=(P[7]+j[7])/2):(P||j)&&(u=P?P[6]:j[6],E=P?P[7]:j[7])}else{var H=i.get("group"),X=H.getMatrix();X||(X=[1,0,0,0,1,0,0,0,1]),u=X[6],E=X[7]}this.focusPoint({x:u,y:E},a,l)}},C.prototype.focusItems=function(i,a,l,u){if(!!i.length){var E=this.graph,P=this.getFormatPadding(),j=E.get("width"),H=E.get("height"),X=E.get("group"),ee=X.getMatrix()||[1,0,0,0,1,0,0,0,1];X.resetMatrix();for(var se={x:0,y:0,minX:Number.MAX_SAFE_INTEGER,minY:Number.MAX_SAFE_INTEGER,maxX:Number.MIN_SAFE_INTEGER,maxY:Number.MIN_SAFE_INTEGER,width:0,height:0},Se=0,Re=i;Se<Re.length;Se++){var Be=Re[Se],Ye=Be.getBBox();Ye.minX<se.minX&&(se.minX=Ye.minX),Ye.minY<se.minY&&(se.minY=Ye.minY),Ye.maxX>se.maxX&&(se.maxX=Ye.maxX),Ye.maxY>se.maxY&&(se.maxY=Ye.maxY)}if(se.x=se.minX,se.y=se.minY,se.width=se.maxX-se.minX,se.height=se.maxY-se.minY,!(se.width===0||se.height===0)){var ht=this.getViewCenter(),Tt={x:se.x+se.width/2,y:se.y+se.height/2},Dt=(j-P[1]-P[3])/se.width,Kt=(H-P[0]-P[2])/se.height,gn=Dt;Dt>Kt&&(gn=Kt),l?this.animatedFitView(X,ee,u,se,ht,Tt,gn,a):(E.translate(ht.x-Tt.x,ht.y-Tt.y),a&&!E.zoom(gn,ht)&&console.warn("zoom failed, ratio out of range, ratio: %f",gn))}}},C.prototype.changeSize=function(i,a){var l=this.graph;if(!(0,Nn.isNumber)(i)||!(0,Nn.isNumber)(a))throw Error("invalid canvas width & height, please make sure width & height type is number");l.set({width:i,height:a});var u=l.get("canvas");u.changeSize(i,a);var E=l.get("plugins");E.forEach(function(P){P.get("gridContainer")&&P.positionInit()})},C.prototype.destroy=function(){this.graph=null,this.destroyed=!1},C}(),U7=B7;function KI(C){return KI=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},KI(C)}function iL(C){if(typeof C!="string")return C;var i=function(kn){if(typeof kn!="string")return kn;try{return JSON.parse(kn.trim())}catch(sr){return kn.trim()}},a=i(C);if(typeof a!="string")return a;for(var l=function(kn){return kn[kn.length-1]},u=C.trim(),E=[],P=[],j=function(){for(var kn=[],sr=0;sr<arguments.length;sr++)kn[sr]=arguments[sr];return kn.some(function(yr){return l(P)===yr})},H=function(){return l(E)},X=null,ee=0,se="";ee<u.length;){var Se=u[ee],Re=j('"',"'");if(!Re&&!Se.trim()){ee+=1;continue}var Be=u[ee-1]==="\\",Ye=j("}"),ht=j("]"),Tt=j(","),Dt=H();if(Re)if(l(P)===Se&&!Be){P.pop();var Kt=i(se);Dt.push(Kt),X=Kt,se=""}else se+=Se;else if(ht&&Se===",")se&&(Dt.push(i(se)),se="");else if(Ye&&Se===":")P.push(","),se&&(Dt.push(se),se="");else if(Tt&&Se===",")se&&(Dt.push(i(se)),se=""),P.pop();else if(Se==="}"&&(Ye||Tt)){se&&(Dt.push(i(se)),se=""),Tt&&P.pop();for(var gn={},bn=1;bn<Dt.length;bn+=2)gn[Dt[bn-1]]=Dt[bn];E.pop(),E.length&&l(E).push(gn),P.pop(),X=gn}else Se==="]"&&ht?(se&&(Dt.push(i(se)),se=""),E.pop(),E.length&&l(E).push(Dt),P.pop(),X=Dt):Se==="{"?(E.push([]),P.push("}")):Se==="["?(E.push([]),P.push("]")):Se==='"'?P.push('"'):Se==="'"?P.push("'"):se+=Se;ee+=1}return X||se}var Tb=function(i){return i.split("-").reduce(function(a,l){return a+l.charAt(0).toUpperCase()+l.slice(1)})},Z7=function(i){return function(a){for(var l=i.length,u=[],E=0,P="";E<l;)if(i[E]==="{"&&i[E+1]==="{")u.push(P),P="",E+=2;else if(i[E]==="}"&&i[E+1]==="}"){if(u.length){var j=u.pop();P=(0,Nn.get)(a,P,j.endsWith("=")?'"{'.concat(P,'}"'):P),u.push(j+P)}E+=2,P=""}else P+=i[E],E+=1;return u.push(P),u.map(function(H,X){return u[X-1]&&u[X-1].endsWith("=")?'"{'.concat(H,'}"'):H}).join("")}};function oL(C,i){var a={},l=C.getAttributeNames&&C.getAttributeNames()||[],u=C.children&&Array.from(C.children).map(function(j){return oL(j,i)}),E={},P=C.tagName?C.tagName.toLowerCase():"group";return P==="text"&&(a.text=C.innerText),E.type=P,P==="img"&&(E.type="image"),Array.from(l).forEach(function(j){var H=Tb(j),X=C.getAttribute(j);try{if(H==="style"||H==="attrs"){var ee=iL(X);a=bl(bl({},a),ee)}else E[H]=iL(X)}catch(se){if(H==="style")throw se;E[H]=X}}),E.attrs=a,i&&i.style&&E.name&&KI(i.style[E.name])==="object"&&(E.attrs=bl(bl({},E.attrs),i.style[E.name])),i&&i.style&&E.keyshape&&(E.attrs=bl(bl({},E.attrs),i.style)),u.length&&(E.children=u),E}function ow(C,i,a){var l=C.attrs,u=l===void 0?{}:l,E={x:i.x||0,y:i.y||0,width:a.width||0,height:a.height||0},P,j;switch(C.type){case"maker":case"circle":u.r&&(j=2*u.r,P=2*u.r);break;case"text":u.text&&(j=pP(u.text,u.fontSize||12)[0],P=16,E.y+=P,E.height=P,E.width=j,C.attrs=bl({fontSize:12,fill:"#000"},u));break;default:u.width&&(j=u.width),u.height&&(P=u.height)}return P>=0&&(E.height=P),j>=0&&(E.width=j),u.marginTop&&(E.y+=u.marginTop),u.marginLeft&&(E.x+=u.marginLeft),E}function YI(C,i){var a;i===void 0&&(i={x:0,y:0});var l=bl({x:0,y:0,width:0,height:0},i);if((a=C.children)===null||a===void 0?void 0:a.length){var u=C.attrs,E=u===void 0?{}:u,P=E.marginTop,j=bl({},i);P&&(j.y+=P);for(var H=0;H<C.children.length;H++){C.children[H].attrs.key="".concat(E.key||"root"," -").concat(H," ");var X=YI(C.children[H],j);if(X.bbox){var ee=X.bbox;X.attrs.next==="inline"?j.x+=X.bbox.width:j.y+=X.bbox.height,ee.width+ee.x>l.width&&(l.width=ee.width+ee.x),ee.height+ee.y>l.height&&(l.height=ee.height+ee.y)}}}return C.bbox=ow(C,i,l),C.attrs=bl(bl({},C.attrs),C.bbox),C}function sL(C,i){var a,l,u,E,P=(C||{}).type,j=((i==null?void 0:i.attrs)||{}).key;if(j&&C&&(C.attrs.key=j),!C&&i)return{action:"delete",val:i,type:P,key:j};if(C&&!i)return{action:"add",val:C,type:P};if(!C&&!i)return{action:"same",type:P};var H=[];if(((a=C.children)===null||a===void 0?void 0:a.length)>0||((l=i.children)===null||l===void 0?void 0:l.length)>0)for(var X=Math.max((u=C.children)===null||u===void 0?void 0:u.length,(E=i.children)===null||E===void 0?void 0:E.length),ee=i.children||[],se=C.children||[],Se=0;Se<X;Se+=1)H.push(sL(se[Se],ee[Se]));var Re=Object.keys(i.attrs),Be=Object.keys(C.attrs);return i.type!==C.type?{action:"restructure",nowTarget:C,formerTarget:i,key:j,children:H}:Re.filter(function(Ye){return Ye!=="children"}).some(function(Ye){return C.attrs[Ye]!==i.attrs[Ye]||!Be.includes(Ye)})?{action:"change",val:C,children:H,type:P,key:j}:{action:"same",children:H,type:P,key:j}}function lL(C){var i={},a=function(u){var E=typeof C=="function"?C(u):C,P=Z7(E)(u),j=document.createElement("div");j.innerHTML=P;var H=j.children[0],X=YI(oL(H,u));return j.remove(),X};return{draw:function(u,E){var P=a(u),j=E,H=function X(ee){var se=ee.attrs,Se=se===void 0?{}:se,Re=ee.bbox,Be=ee.type,Ye=ee.children,ht=$p(ee,["attrs","bbox","type","children"]);if(ee.type!=="group"){var Tt=E.addShape(ee.type,bl({attrs:Se,origin:{bbox:Re,type:Be,children:Ye}},ht));ee.keyshape&&(j=Tt)}ee.children&&ee.children.forEach(function(Dt){return X(Dt)})};return H(P),i[u.id]=[P],j},update:function(u,E){i[u.id]||(i[u.id]=[]);var P=E.getContainer(),j=P.get("children"),H=a(u),X=i[u.id].pop(),ee=sL(H,X),se=function Be(Ye){var ht;Ye.type!=="group"&&P.addShape(Ye.type,{attrs:Ye.attrs}),((ht=Ye.children)===null||ht===void 0?void 0:ht.length)&&Ye.children.map(function(Tt){return Be(Tt)})},Se=function Be(Ye){var ht,Tt=j.find(function(Dt){return Dt.attrs.key===Ye.attrs.key});Tt&&P.removeChild(Tt),((ht=Ye.children)===null||ht===void 0?void 0:ht.length)&&Ye.children.map(function(Dt){return Be(Dt)})},Re=function Be(Ye){var ht=Ye.key;if(Ye.type!=="group"){var Tt=j.find(function(Kt){return Kt.attrs.key===ht});switch(Ye.action){case"change":if(Tt){var Dt=Ye.val.keyshape?E.getOriginStyle():{};Tt.attr(bl(bl({},Dt),Ye.val.attrs))}break;case"add":se(Ye.val);break;case"delete":Se(Ye.val);break;case"restructure":Se(Ye.formerTarget),se(Ye.nowTarget);break;default:break}}Ye.children&&Ye.children.forEach(function(Kt){return Be(Kt)})};Re(ee),i[u.id].push(H)},getAnchorPoints:function(){return[[0,.5],[1,.5],[.5,1],[.5,0]]}}}var jS={};function VP(C){return jS[C]||(jS[C]=(0,Nn.upperFirst)(C)),jS[C]}var cL={defaultShapeType:"defaultType",className:null,getShape:function(i){var a=this,l=a[i]||a[a.defaultShapeType]||a["simple-circle"];return l},draw:function(i,a,l){var u=this.getShape(i);l.shapeMap={};var E=u.draw(a,l);return u.afterDraw&&u.afterDraw(a,l,E),E},baseUpdate:function(i,a,l,u){var E,P,j=this.getShape(i);j.update&&(j.mergeStyle=(E=j.getOptions)===null||E===void 0?void 0:E.call(j,a,u),(P=j.update)===null||P===void 0||P.call(j,a,l,u)),j.afterUpdate&&j.afterUpdate(a,l)},setState:function(i,a,l,u){var E=this.getShape(i);E.setState(a,l,u)},shouldUpdate:function(i){var a=this.getShape(i);return!!a.update},getControlPoints:function(i,a){var l=this.getShape(i);return l.getControlPoints(a)},getAnchorPoints:function(i,a){var l=this.getShape(i);return l.getAnchorPoints(a)}},zP={options:{},draw:function(i,a){return this.drawShape(i,a)},drawShape:function(){},afterDraw:function(){},afterUpdate:function(){},setState:function(){},getControlPoints:function(i){return i.controlPoints},getAnchorPoints:function(i){var a=this.options.anchorPoints,l=i.anchorPoints||a;return l}},WP=function(){function C(){}return C.registerFactory=function(i,a){var l=VP(i),u=cL,E=bl(bl({},u),a);return C[l]=E,E.className=l,E},C.getFactory=function(i){var a=VP(i);return C[a]},C.registerNode=function(i,a,l){var u=C.Node,E;if(typeof a=="string"||typeof a=="function"){var P=lL(a);E=bl(bl({},u.getShape("single-node")),P)}else if(a.jsx){var j=a.jsx,P=lL(j);E=bl(bl(bl({},u.getShape("single-node")),P),a)}else{u.getShape(l);var H=l?u.getShape(l):zP;E=bl(bl({},H),a)}return E.type=i,E.itemType="node",u[i]=E,E},C.registerEdge=function(i,a,l){var u=C.Edge,E=l?u.getShape(l):zP,P=bl(bl({},E),a);return P.type=i,P.itemType="edge",u[i]=P,P},C.registerCombo=function(i,a,l){var u=C.Combo,E=l?u.getShape(l):zP,P=bl(bl({},E),a);return P.type=i,P.itemType="combo",u[i]=P,P},C}(),Sm=WP;WP.registerFactory("node",{defaultShapeType:"circle"}),WP.registerFactory("edge",{defaultShapeType:"line"}),WP.registerFactory("combo",{defaultShapeType:"circle"});var HP="bboxCache",XI="bboxCanvasCache",V7=null,uL=function(){function C(i){this._cfg={},this.destroyed=!1,this.optimize=!1;var a={id:void 0,type:"item",model:{},group:void 0,animate:!1,visible:!0,locked:!1,event:!0,keyShape:void 0,states:[]};this._cfg=Object.assign(a,this.getDefaultCfg(),i);var l=this.get("model"),u=l.id,E=this.get("type");typeof u=="undefined"?u=GI(E):typeof u!="string"&&(u=String(u)),this.get("model").id=u,this.set("id",u);var P=i.group;P&&(P.set("item",this),P.set("id",u)),this.init(),this.draw();var j=l.shape||l.type||(E==="edge"?"line":"circle"),H=this.get("shapeFactory");if(H&&H[j]){var X=H[j].options;if(X&&X.stateStyles){var ee=this.get("styles")||l.stateStyles;ee=(0,Nn.deepMix)({},X.stateStyles,ee),this.set("styles",ee)}}}return C.prototype.calculateBBox=function(){var i=this.get("keyShape"),a=this.get("group"),l=e1(i,a);return l.x=l.minX,l.y=l.minY,l.width=l.maxX-l.minX,l.height=l.maxY-l.minY,l.centerX=(l.minX+l.maxX)/2,l.centerY=(l.minY+l.maxY)/2,l},C.prototype.calculateCanvasBBox=function(){var i=this.get("keyShape"),a=this.get("group"),l=e1(i,a);return l.x=l.minX,l.y=l.minY,l.width=l.maxX-l.minX,l.height=l.maxY-l.minY,l.centerX=(l.minX+l.maxX)/2,l.centerY=(l.minY+l.maxY)/2,l},C.prototype.drawInner=function(){var i=this,a=i.get("shapeFactory"),l=i.get("group"),u=i.get("model");l.clear();var E=u.visible;if(E!==void 0&&!E&&i.changeVisibility(E),!!a){i.updatePosition(u);var P=i.getShapeCfg(u),j=P.type,H=a.draw(j,P,l);H&&(i.set("keyShape",H),H.set("isKeyShape",!0),H.set("draggable",!0)),this.setOriginStyle(),this.set("currentShape",j),this.restoreStates(a,j)}},C.prototype.setOriginStyle=function(){var i=this.get("group"),a=i.get("children"),l=this.getKeyShape(),u=this,E=l.get("name");if(this.get("originStyle")){var Re=this.get("originStyle");E&&!Re[E]&&(Re[E]={});for(var Be=this.getCurrentStatesStyle(),Ye=function(Tt){var Dt=a[Tt],Kt=Dt.get("name"),gn=Dt.attr();if(Kt&&Kt!==E){var bn=Be[Kt];Re[Kt]||(Re[Kt]={}),bn?Object.keys(gn).forEach(function(sr){var yr=gn[sr];yr!==bn[sr]&&(Re[Kt][sr]=yr)}):Re[Kt]=Dt.get("type")!=="image"?(0,Nn.clone)(gn):u.getShapeStyleByName(Kt)}else{var mn=Dt.attr(),kn={};Object.keys(Be).forEach(function(sr){var yr=Be[sr];(sr===E||!(0,Nn.isPlainObject)(yr))&&(kn[sr]=yr)}),Object.keys(mn).forEach(function(sr){var yr=mn[sr];kn[sr]!==yr&&(E?Re[E][sr]=yr:Re[sr]=yr)})}},j=0;j<a.length;j++)Ye(j);delete Re.path,delete Re.matrix,delete Re.x,delete Re.y,Re[E]&&(delete Re[E].x,delete Re[E].y,delete Re[E].matrix,delete Re[E].path),u.set("originStyle",Re)}else{for(var P={},j=0;j<a.length;j++){var H=a[j],X=H.get("type"),ee=H.get("name");if(ee&&ee!==E)P[ee]=X!=="image"?(0,Nn.clone)(H.attr()):u.getShapeStyleByName(ee),X==="text"&&P[ee]&&(delete P[ee].x,delete P[ee].y,delete P[ee].matrix);else{var se=u.getShapeStyleByName();if(delete se.path,delete se.matrix,!E)Object.assign(P,se);else if(ee)P[E]=se;else{var Se=GI("shape");H.set("name",Se),i.shapeMap[Se]=H,P[Se]=X!=="image"?(0,Nn.clone)(H.attr()):u.getShapeStyleByName(ee)}}}u.set("originStyle",P)}},C.prototype.restoreStates=function(i,a){var l=this,u=l.get("states");(0,Nn.each)(u,function(E){i.setState(a,E,!0,l)})},C.prototype.init=function(){var i=Sm.getFactory(this.get("type"));this.set("shapeFactory",i)},C.prototype.get=function(i){return this._cfg[i]},C.prototype.set=function(i,a){(0,Nn.isPlainObject)(i)?this._cfg=bl(bl({},this._cfg),i):this._cfg[i]=a},C.prototype.getDefaultCfg=function(){return{}},C.prototype.clearCache=function(){this.set(HP,null),this.set(XI,null)},C.prototype.beforeDraw=function(){},C.prototype.afterDraw=function(){},C.prototype.afterUpdate=function(){},C.prototype.draw=function(){this.beforeDraw(),this.drawInner(),this.afterDraw()},C.prototype.getShapeStyleByName=function(i){var a=this.get("group"),l;if(i?l=a.shapeMap[i]||a.find(function(E){return E.get("name")===i}):l=this.getKeyShape(),l){var u={};return(0,Nn.each)(l.attr(),function(E,P){(P!=="img"||(0,Nn.isString)(E))&&(u[P]=E)}),u}return{}},C.prototype.getShapeCfg=function(i,a){var l=this.get("styles");if(l){var u=i;return u.style=bl(bl({},l),i.style),u}return i},C.prototype.getStateStyle=function(i){var a=this.get("styles"),l=a&&a[i];return l},C.prototype.getOriginStyle=function(){return this.get("originStyle")},C.prototype.getCurrentStatesStyle=function(){var i=this,a={},l=i.getStates();return!l||!l.length?this.get("originStyle"):((0,Nn.each)(i.getStates(),function(u){a=Object.assign(a,i.getStateStyle(u))}),a)},C.prototype.setState=function(i,a){var l=this.get("states"),u=this.get("shapeFactory"),E=i,P=i;(0,Nn.isString)(a)&&(E="".concat(i,":").concat(a),P="".concat(i,":"));var j=l;if((0,Nn.isBoolean)(a)){var H=l.indexOf(P);if(a){if(H>-1)return;l.push(E)}else H>-1&&l.splice(H,1)}else if((0,Nn.isString)(a)){var X=l.filter(function(Se){return Se.includes(P)});X.length>0&&this.clearStates(X),j=j.filter(function(Se){return!Se.includes(P)}),j.push(E),this.set("states",j)}if(u){var ee=this.get("model"),se=ee.type;u.setState(se,i,a,this)}},C.prototype.clearStates=function(i){var a=this,l=a.getStates(),u=a.get("shapeFactory"),E=a.get("model"),P=E.type;i||(i=l),(0,Nn.isString)(i)&&(i=[i]);var j=l.filter(function(H){return i.indexOf(H)===-1});a.set("states",j),i.forEach(function(H){u.setState(P,H,!1,a)})},C.prototype.setOptimize=function(i){this.optimize=i},C.prototype.getContainer=function(){return this.get("group")},C.prototype.getKeyShape=function(){return this.get("keyShape")},C.prototype.getModel=function(){return this.get("model")},C.prototype.getType=function(){return this.get("type")},C.prototype.getID=function(){return this.get("id")},C.prototype.isItem=function(){return!0},C.prototype.getStates=function(){return this.get("states")},C.prototype.hasState=function(i){var a=this.getStates();return a.indexOf(i)>=0},C.prototype.refresh=function(i){var a=this.get("model");this.updatePosition(a),this.updateShape(i),this.afterUpdate(),this.clearCache()},C.prototype.getUpdateType=function(i){},C.prototype.update=function(i,a){a===void 0&&(a=void 0);var l=this.get("model");if(a==="move")this.updatePosition(i);else{var u=l.visible,E=i.visible;u!==E&&E!==void 0&&this.changeVisibility(E);var P={x:l.x,y:l.y};i.x=isNaN(+i.x)?l.x:+i.x,i.y=isNaN(+i.y)?l.y:+i.y;var j=this.get("styles");if(i.stateStyles){var H=i.stateStyles;(0,Nn.mix)(j,H),delete i.stateStyles}Object.assign(l,i),(P.x!==i.x||P.y!==i.y)&&this.updatePosition(i),this.updateShape(a)}this.afterUpdate(),this.clearCache()},C.prototype.updateShape=function(i){var a=this.get("shapeFactory"),l=this.get("model"),u=l.type;if(a.shouldUpdate(u)&&u===this.get("currentShape")){var E=this.getShapeCfg(l,i);a.baseUpdate(u,E,this,i),i!=="move"&&this.setOriginStyle()}else this.draw();this.restoreStates(a,u)},C.prototype.updatePosition=function(i){var a=this.get("model"),l=isNaN(+i.x)?+a.x:+i.x,u=isNaN(+i.y)?+a.y:+i.y,E=this.get("group");if(isNaN(l)||isNaN(u))return!1;a.x=l,a.y=u;var P=E.getMatrix();return P&&P[6]===l&&P[7]===u?!1:(E.resetMatrix(),vA(E,{x:l,y:u}),this.clearCache(),!0)},C.prototype.getBBox=function(){var i=this.get(HP);return i||(i=this.calculateBBox(),this.set(HP,i)),i},C.prototype.getCanvasBBox=function(){var i=this.get(XI);return i||(i=this.calculateCanvasBBox(),this.set(XI,i)),i},C.prototype.toFront=function(){var i=this.get("group");i.toFront()},C.prototype.toBack=function(){var i=this.get("group");i.toBack()},C.prototype.show=function(){this.changeVisibility(!0)},C.prototype.hide=function(){this.changeVisibility(!1)},C.prototype.changeVisibility=function(i){var a=this.get("group");i?a.show():a.hide(),this.set("visible",i)},C.prototype.isVisible=function(){return this.get("visible")},C.prototype.enableCapture=function(i){var a=this.get("group");a&&a.set("capture",i)},C.prototype.destroy=function(){if(!this.destroyed){var i=this.get("animate"),a=this.get("group");i&&a.stopAnimate(),a.shapeMap={},this.clearCache(),a.remove(),this._cfg=null,this.destroyed=!0}},C}(),fL=uL,S0={source:"start",target:"end"},d1="Node",sw="Point",Yx="Anchor",Xx=function(C){rb(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},i.prototype.setEnd=function(a,l){var u=S0[a]+sw,E=a+d1,P=this.get(E);P&&!P.destroyed&&P.removeEdge(this),(0,Nn.isPlainObject)(l)?(this.set(u,l),this.set(E,null)):l&&(l.addEdge(this),this.set(E,l),this.set(u,null))},i.prototype.getLinkPoint=function(a,l,u){var E=S0[a]+sw,P=a+d1,j=this.get(E);if(!j){var H=this.get(P),X=a+Yx,ee=this.getPrePoint(a,u),se=l[X];(0,Nn.isNil)(se)||(j=H.getLinkPointByAnchor(se)),j=j||H.getLinkPoint(ee),(0,Nn.isNil)(j.index)||this.set("".concat(a,"AnchorIndex"),j.index)}return j},i.prototype.getPrePoint=function(a,l){if(l&&l.length){var u=a==="source"?0:l.length-1;return l[u]}var E=a==="source"?"target":"source";return this.getEndPoint(E)},i.prototype.getEndPoint=function(a){var l=a+d1,u=S0[a]+sw,E=this.get(l);return E&&!E.destroyed?E.get("model"):this.get(u)},i.prototype.getControlPointsByCenter=function(a){var l=this.getEndPoint("source"),u=this.getEndPoint("target"),E=this.get("shapeFactory"),P=a.type;return E.getControlPoints(P,{startPoint:l,endPoint:u})},i.prototype.getEndCenter=function(a){var l=a+d1,u=S0[a]+sw,E=this.get(l);if(E){var P=E.getBBox();return{x:P.centerX,y:P.centerY}}return this.get(u)},i.prototype.init=function(){C.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},i.prototype.getShapeCfg=function(a,l){var u=this,E=u.get("linkCenter"),P=(l==null?void 0:l.includes("move"))?a:C.prototype.getShapeCfg.call(this,a);if(E)P.startPoint=u.getEndCenter("source"),P.endPoint=u.getEndCenter("target");else{var j=P.controlPoints||u.getControlPointsByCenter(P);P.startPoint=u.getLinkPoint("source",a,j),P.endPoint=u.getLinkPoint("target",a,j)}return P.sourceNode=u.get("sourceNode"),P.targetNode=u.get("targetNode"),P},i.prototype.getModel=function(){var a=this.get("model"),l=this.get("source".concat(d1)),u=this.get("target".concat(d1));return l?delete a["source".concat(d1)]:a.source=this.get("start".concat(sw)),u?delete a["target".concat(d1)]:a.target=this.get("end".concat(sw)),!(0,Nn.isString)(a.source)&&!(0,Nn.isPlainObject)(a.source)&&(a.source=a.source.getID()),!(0,Nn.isString)(a.target)&&!(0,Nn.isPlainObject)(a.target)&&(a.target=a.target.getID()),a},i.prototype.setSource=function(a){this.setEnd("source",a),this.set("source",a)},i.prototype.setTarget=function(a){this.setEnd("target",a),this.set("target",a)},i.prototype.getSource=function(){return this.get("source")},i.prototype.getTarget=function(){return this.get("target")},i.prototype.updatePosition=function(){return!1},i.prototype.update=function(a,l){l===void 0&&(l=void 0);var u=this.get("model"),E=u.visible,P=a.visible;E!==P&&P!==void 0&&this.changeVisibility(P);var j=this.get("source"),H=this.get("target");if(!(!j||j.destroyed||!H||H.destroyed)){var X=this.get("styles");if(a.stateStyles){var ee=a.stateStyles;(0,Nn.mix)(X,ee),delete a.stateStyles}Object.assign(u,a),this.updateShape(l),this.afterUpdate(),this.clearCache()}},i.prototype.destroy=function(){var a=this.get("source".concat(d1)),l=this.get("target".concat(d1));a&&!a.destroyed&&a.removeEdge(this),l&&!l.destroyed&&l.removeEdge(this),C.prototype.destroy.call(this)},i}(fL),Jx=Xx,zA="anchorPointsCache",dL="bboxCache",z7=function(C){rb(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.getNearestPoint=function(a,l){for(var u=0,E=a[0],P=dS(a[0],l),j=0;j<a.length;j++){var H=a[j],X=dS(H,l);X<P&&(E=H,P=X,u=j)}return E.anchorIndex=u,E},i.prototype.getDefaultCfg=function(){return{type:"node",edges:[]}},i.prototype.getEdges=function(){return this.get("edges")},i.prototype.getInEdges=function(){var a=this;return this.get("edges").filter(function(l){return l.get("target")===a})},i.prototype.getOutEdges=function(){var a=this;return this.get("edges").filter(function(l){return l.get("source")===a})},i.prototype.getNeighbors=function(a){var l=this,u=this.get("edges");if(a==="target"){var E=function(X){return X.getSource()===l};return u.filter(E).map(function(H){return H.getTarget()})}if(a==="source"){var P=function(X){return X.getTarget()===l};return u.filter(P).map(function(H){return H.getSource()})}var j=function(X){return X.getSource()===l?X.getTarget():X.getSource()};return u.map(j)},i.prototype.getLinkPointByAnchor=function(a){var l=this.getAnchorPoints();return l[a]},i.prototype.getLinkPoint=function(a){var l=this.get("keyShape"),u=l.get("type"),E=this.get("type"),P,j,H=this.getBBox();E==="combo"?(P=H.centerX||(H.maxX+H.minX)/2,j=H.centerY||(H.maxY+H.minY)/2):(P=H.centerX,j=H.centerY);var X=this.getAnchorPoints(),ee;switch(u){case"circle":ee=iP({x:P,y:j,r:H.width/2},a);break;case"ellipse":ee=dA({x:P,y:j,rx:H.width/2,ry:H.height/2},a);break;default:ee=aP(H,a)}var se=ee;return X.length&&(se||(se=a),se=this.getNearestPoint(X,se)),se||(se={x:P,y:j}),se},i.prototype.getAnchorPoints=function(){var a=this.get(zA);if(!a){a=[];var l=this.get("shapeFactory"),u=this.getBBox(),E=this.get("model"),P=this.getShapeCfg(E),j=E.type,H=l.getAnchorPoints(j,P)||[];(0,Nn.each)(H,function(X,ee){var se={x:u.minX+X[0]*u.width,y:u.minY+X[1]*u.height,anchorIndex:ee};a.push(se)}),this.set(zA,a)}return a},i.prototype.addEdge=function(a){this.get("edges").push(a)},i.prototype.lock=function(){this.set("locked",!0)},i.prototype.unlock=function(){this.set("locked",!1)},i.prototype.hasLocked=function(){return this.get("locked")},i.prototype.removeEdge=function(a){var l=this.getEdges(),u=l.indexOf(a);u>-1&&l.splice(u,1)},i.prototype.clearCache=function(){this.set(dL,null),this.set(zA,null)},i.prototype.getUpdateType=function(a){var l,u,E,P,j;if(!!a){var H=!(0,Nn.isNil)(a.x),X=!(0,Nn.isNil)(a.y),ee=Object.keys(a);if(ee.length===1&&(H||X)||ee.length===2&&H&&X)return"move";if((0,Nn.isNumber)(a.x)||(0,Nn.isNumber)(a.y)||a.type||a.anchorPoints||a.size||(a==null?void 0:a.style)&&(((l=a==null?void 0:a.style)===null||l===void 0?void 0:l.r)||((u=a==null?void 0:a.style)===null||u===void 0?void 0:u.width)||((E=a==null?void 0:a.style)===null||E===void 0?void 0:E.height)||((P=a==null?void 0:a.style)===null||P===void 0?void 0:P.rx)||((j=a==null?void 0:a.style)===null||j===void 0?void 0:j.ry)))return"bbox|label";var se=ee.includes("label")||ee.includes("labelCfg");return se?"style|label":"style"}},i.prototype.setState=function(a,l){var u=this;if(this.optimize){C.prototype.setState.call(this,a,l);return}this.runWithBBoxAffected(function(){return C.prototype.setState.call(u,a,l)})},i.prototype.clearStates=function(a){var l=this;if(this.optimize){C.prototype.clearStates.call(this,a);return}this.runWithBBoxAffected(function(){return C.prototype.clearStates.call(l,a)})},i.prototype.runWithBBoxAffected=function(a){var l=["r","width","height","rx","ry","lineWidth"],u=this.getKeyShape().attr(),E={};Object.keys(this.getKeyShape().attr()).forEach(function(X){l.includes(X)&&(E[X]=u[X])}),a();for(var P=this.getKeyShape().attr(),j=0;j<l.length;j++){var H=l[j];if(P[H]!==E[H]){this.clearCache(),this.getEdges().forEach(function(X){return X.refresh()});break}}},i}(fL),JI=z7,QI="bboxCache",qI="bboxCanvasCache",WA="sizeCache",HA="anchorPointsCache",BS=function(C){rb(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.getDefaultCfg=function(){return{type:"combo",nodes:[],edges:[],combos:[]}},i.prototype.getShapeCfg=function(a){var l=this.get("styles"),u=this.get("bbox");if(l&&u){var E=a,P=(0,Nn.isNumber)(a.size)?[a.size,a.size]:a.size,j=(0,Nn.isNumber)(a.fixSize)?[a.fixSize,a.fixSize]:a.fixSize,H=P||j||Yu.defaultCombo.size,X={r:(Math.max(u.width,u.height)||Math.max(H[0],H[1]))/2,width:u.width||H[0],height:u.height||H[1]};E.style=bl(bl(bl({},l),a.style),X);var ee=a.padding||Yu.defaultCombo.padding;return(0,Nn.isNumber)(ee)?(X.r+=ee,X.width+=ee*2,X.height+=ee*2):(X.r=X.r+Math.max.apply(Math,ee),X.width+=ee[1]+ee[3]||ee[1]*2,X.height+=ee[0]+ee[2]||ee[0]*2),this.set(WA,X),E}return a},i.prototype.calculateCanvasBBox=function(){if(!this.destroyed){var a=this.get("keyShape"),l=this.get("group"),u=this.get(QI)||{},E=u.x,P=u.x,j=this.get(WA),H=e1(a,l);if(H.centerX=(H.minX+H.maxX)/2,H.centerY=(H.minY+H.maxY)/2,j){j.width=Math.max(j.width,H.width),j.height=Math.max(j.height,H.height),this.set(WA,j);var X=a.get("type");X==="circle"?(H.width=j.r*2,H.height=j.r*2):(H.width=j.width,H.height=j.height),H.minX=H.centerX-H.width/2,H.minY=H.centerY-H.height/2,H.maxX=H.centerX+H.width/2,H.maxY=H.centerY+H.height/2}else H.width=H.maxX-H.minX,H.height=H.maxY-H.minY,H.centerX=(H.minX+H.maxX)/2,H.centerY=(H.minY+H.maxY)/2;return H.x=H.minX,H.y=H.minY,(H.x!==E||H.y!==P)&&this.set(HA,null),H}},i.prototype.getChildren=function(){var a=this;return{nodes:a.getNodes(),combos:a.getCombos()}},i.prototype.getNodes=function(){var a=this;return a.get("nodes")},i.prototype.getCombos=function(){var a=this;return a.get("combos")},i.prototype.addChild=function(a){var l=this,u=a.getType();switch(u){case"node":l.addNode(a);break;case"combo":l.addCombo(a);break;default:return console.warn("Only node or combo items are allowed to be added into a combo"),!1}return!0},i.prototype.addCombo=function(a){var l=this;return l.get("combos").push(a),!0},i.prototype.addNode=function(a){var l=this;return l.get("nodes").push(a),!0},i.prototype.removeChild=function(a){var l=this,u=a.getType();switch(u){case"node":l.removeNode(a);break;case"combo":l.removeCombo(a);break;default:return console.warn("Only node or combo items are allowed to be added into a combo"),!1}return!0},i.prototype.removeCombo=function(a){if(!!a){var l=this.getCombos(),u=l.indexOf(a);return u>-1?(l.splice(u,1),!0):!1}},i.prototype.removeNode=function(a){if(!!a){var l=this.getNodes(),u=l.indexOf(a);return u>-1?(l.splice(u,1),!0):!1}},i.prototype.getUpdateType=function(a){},i.prototype.getBBox=function(){this.set(qI,null);var a=this.calculateCanvasBBox();return a},i.prototype.clearCache=function(){this.set(QI,null),this.set(qI,null),this.set(HA,null)},i.prototype.destroy=function(){if(!this.destroyed){var a=this.get("animate"),l=this.get("group");a&&l.stopAnimate(),l.shapeMap={},this.clearCache(),this.set(WA,null),this.set("bbox",null),l.remove(),this._cfg=null,this.destroyed=!0}},i}(JI),eD=BS,GA="node",$A="edge",tD="vedge",KA="combo",Qx="default",pL="Mapper",Ab="stateStyles",W7=function(){function C(i){var a=this;this.edgeToBeUpdateMap={},this.throttleRefresh=(0,Nn.throttle)(function(l){var u=a.graph;if(!(!u||u.get("destroyed"))){var E=a.edgeToBeUpdateMap;if(!!E){var P=Object.values(E);!P.length||(P.forEach(function(j){var H=j.edge;if(!(!H||H.destroyed)){var X=H.getSource(),ee=H.getTarget();!X||X.destroyed||!ee||ee.destroyed||H.refresh(j.updateType)}}),a.edgeToBeUpdateMap={})}}},16,{trailing:!0,leading:!0}),this.graph=i,this.destroyed=!1}return C.prototype.addItem=function(i,a){var l=this.graph,u=i===tD?$A:i,E=l.get("".concat(u,"Group"))||l.get("group"),P=(0,Nn.upperFirst)(u),j=null,H=l.get(u+(0,Nn.upperFirst)(Ab))||{},X=l.get(Qx+P);a[Ab]&&(H=a[Ab]),X&&(0,Nn.each)(X,function(mn,kn){(0,Nn.isObject)(mn)&&!(0,Nn.isArray)(mn)?a[kn]=(0,Nn.deepMix)({},mn,a[kn]):(0,Nn.isArray)(mn)?a[kn]=a[kn]||(0,Nn.clone)(X[kn]):a[kn]=a[kn]||X[kn]});var ee=l.get(u+pL);if(ee){var se=ee(a);se[Ab]&&(H=se[Ab],delete se[Ab]),(0,Nn.each)(se,function(mn,kn){(0,Nn.isObject)(mn)&&!(0,Nn.isArray)(mn)?a[kn]=(0,Nn.deepMix)({},a[kn],mn):a[kn]=se[kn]||a[kn]})}if(l.emit("beforeadditem",{type:i,model:a}),i===$A||i===tD){var Se=void 0,Re=void 0;if(Se=a.source,Re=a.target,Se&&(0,Nn.isString)(Se)&&(Se=l.findById(Se)),Re&&(0,Nn.isString)(Re)&&(Re=l.findById(Re)),!Se||!Re){console.warn("The source or target node of edge ".concat(a.id," does not exist!"));return}Se.getType&&Se.getType()==="combo"&&(a.isComboEdge=!0),Re.getType&&Re.getType()==="combo"&&(a.isComboEdge=!0),j=new Jx({model:a,source:Se,target:Re,styles:H,linkCenter:l.get("linkCenter"),group:E.addGroup()})}else if(i===GA)j=new JI({model:a,styles:H,group:E.addGroup()});else if(i===KA){var Be=a.children,Ye=L2(Be,l),ht=void 0,Tt=void 0;if(isNaN(Ye.x)?isNaN(a.x)&&(ht=Math.random()*100):ht=Ye.x,isNaN(Ye.y)?isNaN(a.y)&&(Tt=Math.random()*100):Tt=Ye.y,isNaN(a.x)||isNaN(a.y))a.x=ht,a.y=Tt;else{var Dt=a.x-ht,Kt=a.y-Tt;this.updateComboSucceeds(a.id,Dt,Kt,Be)}var gn=E.addGroup();gn.setZIndex(a.depth),j=new eD({model:a,styles:H,animate:l.get("animate"),bbox:a.collapsed?L2([],l):Ye,group:gn}),!a.collapsed&&j.getKeyShape().get("type")==="circle"&&(Ye.width=Math.hypot(Ye.height,Ye.width),Ye.height=Ye.width,j.set("bbox",Ye),j.refresh());var bn=j.getModel();(Be||[]).forEach(function(mn){var kn=l.findById(mn.id);j.addChild(kn),mn.depth=bn.depth+2})}if(j)return j.setOptimize(l.getNodes().length>l.get("optimizeThreshold")),l.get("".concat(i,"s")).push(j),l.get("itemMap")[j.get("id")]=j,l.emit("afteradditem",{item:j,model:a}),j},C.prototype.updateItem=function(i,a){var l=this,u,E,P=this.graph;if((0,Nn.isString)(i)&&(i=P.findById(i)),!(!i||i.destroyed)){var j="";i.getType&&(j=i.getType());var H=P.get(j+pL),X=i.getModel(),ee=X.x,se=X.y,Se=i.getUpdateType(a);if(H){var Re=(0,Nn.deepMix)({},X,a),Be=H(Re),Ye=(0,Nn.deepMix)({},X,Be,a);Be[Ab]&&(i.set("styles",Ye[Ab]),delete Ye[Ab]),(0,Nn.each)(Ye,function(jr,zr){a[zr]=jr})}else(0,Nn.each)(a,function(jr,zr){X[zr]&&(0,Nn.isObject)(jr)&&!(0,Nn.isArray)(jr)&&(a[zr]=bl(bl({},X[zr]),a[zr]))});if(P.emit("beforeupdateitem",{item:i,cfg:a}),j===$A){if(a.source){var ht=a.source;(0,Nn.isString)(ht)&&(ht=P.findById(ht)),i.setSource(ht)}if(a.target){var Tt=a.target;(0,Nn.isString)(Tt)&&(Tt=P.findById(Tt)),i.setTarget(Tt)}i.update(a)}else if(j===GA){i.update(a,Se);var Dt=i.getEdges();Se==="move"?(0,Nn.each)(Dt,function(jr){l.edgeToBeUpdateMap[jr.getID()]={edge:jr,updateType:Se},l.throttleRefresh()}):(Se==null?void 0:Se.includes("bbox"))&&(0,Nn.each)(Dt,function(jr){jr.refresh(Se)})}else if(j===KA){if(i.update(a,Se),!isNaN(a.x)||!isNaN(a.y)){var Kt=a.x-ee||0,gn=a.y-se||0;this.updateComboSucceeds(X.id,Kt,gn)}var bn=i.getEdges(),mn=(Se==null?void 0:Se.includes("bbox"))||Se==="move";if(mn&&j===KA){var kn=i.get("shapeFactory"),sr=X.type||"circle",yr=X.animate===void 0||a.animate===void 0?(E=(u=kn[sr])===null||u===void 0?void 0:u.options)===null||E===void 0?void 0:E.animate:X.animate||a.animate;yr?setTimeout(function(){if(!(!i||i.destroyed)){var jr=i.getKeyShape();!jr||jr.destroyed||(0,Nn.each)(bn,function(zr){zr&&!zr.destroyed&&zr.refresh()})}},201):(0,Nn.each)(bn,function(jr){jr.refresh()})}}i.setOptimize(P.getNodes().length>P.get("optimizeThreshold")),P.emit("afterupdateitem",{item:i,cfg:a})}},C.prototype.updateCombo=function(i,a,l){var u=this,E,P,j=this.graph;if((0,Nn.isString)(i)&&(i=j.findById(i)),!(!i||i.destroyed)){var H=i.getModel(),X=L2(a,j,i),ee=X.x,se=X.y;i.set("bbox",X);var Se=ee,Re=se;l?(Se=isNaN(H.x)?ee:H.x,Re=isNaN(H.y)?se:H.y):(Se=isNaN(ee)?H.x:ee,Re=isNaN(se)?H.y:se),i.update({x:Se,y:Re});var Be=i.get("shapeFactory"),Ye=H.type||"circle",ht=H.animate===void 0?(P=(E=Be[Ye])===null||E===void 0?void 0:E.options)===null||P===void 0?void 0:P.animate:H.animate;ht?setTimeout(function(){if(!(!i||i.destroyed)){var Tt=i.getKeyShape();!Tt||Tt.destroyed||(i.getShapeCfg(H),u.updateComboEdges(i))}},201):this.updateComboEdges(i)}},C.prototype.updateComboEdges=function(i){for(var a,l,u=i.getEdges()||[],E=0;E<u.length;E++){var P=u[E];!(P==null?void 0:P.destroyed)&&!((a=P==null?void 0:P.getSource())===null||a===void 0?void 0:a.destroyed)&&!((l=P==null?void 0:P.getTarget())===null||l===void 0?void 0:l.destroyed)&&P.refresh()}},C.prototype.collapseCombo=function(i,a){a===void 0&&(a=!0);var l=this.graph;(0,Nn.isString)(i)&&(i=l.findById(i));var u=i.getChildren();u.nodes.forEach(function(E){l.hideItem(E,a)}),u.combos.forEach(function(E){l.hideItem(E,a)})},C.prototype.updateComboSucceeds=function(i,a,l,u){var E=this;u===void 0&&(u=[]);var P=this.graph;if(!(!a&&!l)){var j=u;if(!(j==null?void 0:j.length)){var H=P.get("comboTrees");H==null||H.forEach(function(X){rg(X,function(ee){return ee.id===i?(j=ee.children,!1):!0})})}j==null||j.forEach(function(X){var ee=P.findById(X.id);if(ee){var se=ee.getModel();E.updateItem(X.id,{x:(se.x||0)+a,y:(se.y||0)+l})}})}},C.prototype.expandCombo=function(i,a){a===void 0&&(a=!0);var l=this.graph;(0,Nn.isString)(i)&&(i=l.findById(i));var u=i.getChildren(),E=new Set;u.nodes.forEach(function(P){l.showItem(P,a),P.getEdges().forEach(function(j){return E.add(j)})}),u.combos.forEach(function(P){P.getModel().collapsed?P.show():l.showItem(P,a),P.getEdges().forEach(function(j){return E.add(j)})}),E.forEach(function(P){return P.refresh()})},C.prototype.removeItem=function(i){var a=this,l=this.graph;if((0,Nn.isString)(i)&&(i=l.findById(i)),!(!i||i.destroyed)){var u=(0,Nn.clone)(i.getModel()),E="";i.getType&&(E=i.getType()),l.emit("beforeremoveitem",{item:u,type:E});var P=l.get("".concat(E,"s")),j=P.indexOf(i);if(j>-1&&P.splice(j,1),E===$A){var H=l.get("v".concat(E,"s")),X=H.indexOf(i);X>-1&&H.splice(X,1)}var ee=i.get("id"),se=l.get("itemMap");delete se[ee];var Se=l.get("comboTrees"),Re=i.get("id");if(E===GA){var Be=i.getModel().comboId;if(Se&&Be){var Ye=Se,ht=!1;Se.forEach(function(mn){ht||rg(mn,function(kn){if(kn.id===Re&&Ye){var sr=Ye.indexOf(kn);return Ye.splice(sr,1),ht=!0,!1}return Ye=kn.children,!0})})}for(var Tt=i.getEdges(),Dt=Tt.length-1;Dt>=0;Dt--)l.removeItem(Tt[Dt],!1);Be&&l.updateCombo(Be)}else if(E===KA){var Kt=i.getModel().parentId,gn,bn=!1;(Se||[]).forEach(function(kn){bn||rg(kn,function(sr){return sr.id===Re?(gn=sr,bn=!0,!1):!0})}),gn.removed=!0,gn&&gn.children&&gn.children.forEach(function(kn){a.removeItem(kn.id)});for(var Tt=i.getEdges(),Dt=Tt.length;Dt>=0;Dt--)l.removeItem(Tt[Dt],!1);Kt&&l.updateCombo(Kt)}i.destroy(),l.emit("afterremoveitem",{item:u,type:E})}},C.prototype.setItemState=function(i,a,l){var u=this.graph,E=a;(0,Nn.isString)(l)&&(E="".concat(a,":").concat(l)),!(i.hasState(E)===l&&l||(0,Nn.isString)(l)&&i.hasState(E))&&(u.emit("beforeitemstatechange",{item:i,state:E,enabled:l}),i.setState(a,l),u.autoPaint(),u.emit("afteritemstatechange",{item:i,state:E,enabled:l}))},C.prototype.priorityState=function(i,a){var l=this.graph,u=i;(0,Nn.isString)(i)&&(u=l.findById(i)),this.setItemState(u,a,!1),this.setItemState(u,a,!0)},C.prototype.clearItemStates=function(i,a){var l=this.graph;(0,Nn.isString)(i)&&(i=l.findById(i)),l.emit("beforeitemstatesclear",{item:i,states:a}),i.clearStates(a),l.emit("afteritemstatesclear",{item:i,states:a})},C.prototype.refreshItem=function(i){var a=this.graph;(0,Nn.isString)(i)&&(i=a.findById(i)),a.emit("beforeitemrefresh",{item:i}),i.refresh(),a.emit("afteritemrefresh",{item:i})},C.prototype.addCombos=function(i,a){var l=this,u=this.graph;(i||[]).forEach(function(P){ag(P,function(j){var H;return a.forEach(function(X){X.id===j.id&&(X.children=j.children,X.depth=j.depth,H=X)}),H&&l.addItem("combo",H),!0})});var E=u.get("comboGroup");E&&E.sort()},C.prototype.changeItemVisibility=function(i,a){var l=this,u=this.graph;if((0,Nn.isString)(i)&&(i=u.findById(i)),!i){console.warn("The item to be shown or hidden does not exist!");return}if(u.emit("beforeitemvisibilitychange",{item:i,visible:a}),i.changeVisibility(a),i.getType&&i.getType()===GA){var E=i.getEdges();(0,Nn.each)(E,function(ee){a&&!(ee.get("source").isVisible()&&ee.get("target").isVisible())||l.changeItemVisibility(ee,a)})}else if(i.getType&&i.getType()===KA){var P=u.get("comboTrees"),j=i.get("id"),H=[],X=!1;(P||[]).forEach(function(se){X||!se.children||se.children.length===0||rg(se,function(Se){return Se.id===j?(H=Se.children,X=!0,!1):!0})}),H&&(!a||a&&!i.getModel().collapsed)&&H.forEach(function(se){var Se=u.findById(se.id);l.changeItemVisibility(Se,a)});var E=i.getEdges();(0,Nn.each)(E,function(se){a&&!(se.get("source").isVisible()&&se.get("target").isVisible())||l.changeItemVisibility(se,a)})}return u.emit("afteritemvisibilitychange",{item:i,visible:a}),i},C.prototype.destroy=function(){this.graph=null,this.destroyed=!0},C}(),H7=W7,G7=function(){function C(i){this.graph=i,this.destroyed=!1}return C.prototype.updateState=function(i,a,l){var u=this.graph.get("states"),E=a;(0,Nn.isString)(l)&&(E="".concat(a,":").concat(l)),u[E]||(u[E]=[]),l?u[E].push(i):u[E]=u[E].filter(function(P){return P!==i}),this.graph.set("states",u),this.graph.emit("graphstatechange",{states:u})},C.prototype.updateStates=function(i,a,l){var u=this.graph.get("states"),E=(0,Nn.isString)(a)?[a]:a;E.forEach(function(P){var j=P;u[j]||(u[j]=[]),(0,Nn.isString)(l)&&(j="".concat(P,":").concat(l)),l?u[j].push(i):u[j]=u[j].filter(function(H){return H!==i})}),this.graph.set("states",u),this.graph.emit("graphstatechange",{states:a})},C.prototype.destroy=function(){this.graph=null,this.destroyed=!0},C}(),$7=G7,vL=function(i,a){return!i||!a?i:i.replace(/\\?\{([^{}]+)\}/g,function(l,u){if(l.charAt(0)==="\\")return l.slice(1);var E=a[u];return E===0&&(E="0"),E||""})},hL=function(i){var a=[];if(i.length<2)throw new Error("point length must largn than 2, now it's ".concat(i.length));for(var l=0,u=i;l<u.length;l++){var E=u[l],P=E.x,j=E.y;a.push(P),a.push(j)}var H=LI(a);return H.unshift(["M",i[0].x,i[0].y]),H},YA=function(i,a,l,u){l===void 0&&(l=0),u===void 0&&(u=0);var E={x:(1-l)*i.x+l*a.x,y:(1-l)*i.y+l*a.y},P=[0,0];Vf.normalize(P,[a.x-i.x,a.y-i.y]),(!P||!P[0]&&!P[1])&&(P=[0,0]);var j=[-P[1]*u,P[0]*u];return E.x+=j[0],E.y+=j[1],E},nD=function(i,a){var l=i.length;if(!l)return"";for(var u="",E="",P=0;P<l;P++){var j=i[P];P===0?E="M{x} {y}":E="L{x} {y}",u+=vL(E,j)}return a&&(u+="Z"),u},rD=function(i){var a=[];return i.forEach(function(l){var u=l[0];if(u!=="A")for(var E=1;E<l.length;E=E+2)a.push([l[E],l[E+1]]);else{var P=l.length;a.push([l[P-2],l[P-1]])}}),a},aD=function(i){if(i.length<2)throw new Error("point length must largn than 2, now it's ".concat(i.length));var a=i[0],l=i[1],u=i[i.length-1],E=i[i.length-2];i.unshift(u),i.unshift(E),i.push(a),i.push(l);for(var P=[],j=1;j<i.length-2;j+=1){var H=i[j-1].x,X=i[j-1].y,ee=i[j].x,se=i[j].y,Se=i[j+1].x,Re=i[j+1].y,Be=j!==i.length-2?i[j+2].x:Se,Ye=j!==i.length-2?i[j+2].y:Re,ht=ee+(Se-H)/6,Tt=se+(Re-X)/6,Dt=Se-(Be-ee)/6,Kt=Re-(Ye-se)/6;P.push(["C",ht,Tt,Dt,Kt,Se,Re])}return P.unshift(["M",u.x,u.y]),P},mL=function(i,a){return Vf.scale([0,0],Vf.normalize([0,0],i),a)},lw=function(i,a){var l=[i[1]-a[1],a[0]-i[0]],u=Math.sqrt(l[0]*l[0]+l[1]*l[1]);if(u===0)throw new Error("p0 should not be equal to p1");return[l[0]/u,l[1]/u]},gL=function(i,a){return[a[0]-i[0],a[1]-i[1]]};function iD(C,i){var a=function(se){var Se=[se[0][0],se[0][1]-i],Re=[se[0][0],se[0][1]+i];return"M ".concat(Se," A ").concat(i,",").concat(i,",0,0,0,").concat(Re," A ").concat(i,",").concat(i,",0,0,0,").concat(Se)},l=function(se){var Se=Vf.scale([0,0],lw(se[0],se[1]),i),Re=Vf.scale([0,0],Se,-1),Be=Vf.add([0,0],se[0],Se),Ye=Vf.add([0,0],se[1],Se),ht=Vf.add([0,0],se[1],Re),Tt=Vf.add([0,0],se[0],Re);return"M ".concat(Be," L ").concat(Ye," A ").concat([i,i,"0,0,0",ht].join(",")," L ").concat(Tt," A ").concat([i,i,"0,0,0",Be].join(","))};if(!C||C.length<1)return"";if(C.length===1)return a(C);if(C.length===2)return l(C);for(var u=new Array(C.length),E=0;E<u.length;++E){var P=E===0?C[C.length-1]:C[E-1],j=C[E],H=Vf.scale([0,0],lw(P,j),i);u[E]=[Vf.add([0,0],P,H),Vf.add([0,0],j,H)]}var X="A ".concat([i,i,"0,0,0,"].join(","));return u=u.map(function(ee,se){var Se="";return se===0&&(Se="M ".concat(u[u.length-1][1]," ")),Se+="".concat(X+ee[0]," L ").concat(ee[1]),Se}),u.join(" ")}function oD(C,i){var a=C.length,l=function(ee){var se=[ee[0][0],ee[0][1]-i],Se=[ee[0][0],ee[0][1]+i];return"M ".concat(se," A ").concat([i,i,"0,0,0",Se].join(",")," A ").concat([i,i,"0,0,0",se].join(","))},u=function(ee){var se=gL(ee[0],ee[1]),Se=mL(se,i),Re=Vf.add([0,0],ee[0],Vf.scale([0,0],Se,-1)),Be=Vf.add([0,0],ee[1],Se),Ye=1.2*i,ht=mL(Vf.normalize([0,0],se),Ye),Tt=Vf.scale([0,0],ht,-1),Dt=Vf.add([0,0],Re,Tt),Kt=Vf.add([0,0],Be,Tt),gn=Vf.add([0,0],Re,ht);return"M ".concat(Re," C ").concat([Dt,Kt,Be].join(",")," S ").concat([gn,Re].join(",")," Z")};if(!C||a<1)return"";if(a===1)return l(C);if(a===2)return u(C);for(var E=C.map(function(X,ee){var se=C[(ee+1)%a];return{p:X,v:Vf.normalize([0,0],gL(X,se))}}),P=0;P<E.length;++P){var j=P>0?P-1:a-1,H=Vf.normalize([0,0],Vf.add([0,0],E[j].v,Vf.scale([0,0],E[P].v,-1)));E[P].p=Vf.add([0,0],E[P].p,Vf.scale([0,0],H,i))}return E.map(function(X){var ee=X.p;return{x:ee[0],y:ee[1]}})}var K7=function(i,a){for(var l=[],u=0;u<5;u++){var E=Math.cos((18+72*u)/180*Math.PI)*i,P=Math.sin((18+72*u)/180*Math.PI)*i,j=Math.cos((54+72*u)/180*Math.PI)*a,H=Math.sin((54+72*u)/180*Math.PI)*a;u===0?l.push(["M",E,-P]):l.push(["L",E,-P]),l.push(["L",j,-H])}return l.push(["Z"]),l},GP=function(i,a,l){return(i.y-l.y)*(a.x-l.x)-(i.x-l.x)*(a.y-l.y)},$P=function(i){var a=i.map(function(se){return{x:se.getModel().x,y:se.getModel().y}});a.sort(function(se,Se){return se.x===Se.x?se.y-Se.y:se.x-Se.x});for(var l={},u=a.length-1;u>=0;u--){var E=a[u],P=E.x,j=E.y;l["".concat(P,"-").concat(j)]&&a.splice(u,1),l["".concat(P,"-").concat(j)]=!0}if(a.length===1)return a;for(var H=[],u=0;u<a.length;u++){for(;H.length>=2&&GP(H[H.length-2],H[H.length-1],a[u])<=0;)H.pop();H.push(a[u])}for(var X=[],u=a.length-1;u>=0;u--){for(;X.length>=2&&GP(X[X.length-2],X[X.length-1],a[u])<=0;)X.pop();X.push(a[u])}X.pop(),H.pop();var ee=H.concat(X);return ee},sD={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function Y7(C,i,a){var l=!1,u=function(H,X){return i.cells[H+X*i.width]},E=function(H,X){var ee=0;return u(H-1,X-1)>=a&&(ee+=1),u(H,X-1)>a&&(ee+=2),u(H-1,X)>a&&(ee+=4),u(H,X)>a&&(ee+=8),ee},P=function(H,X){for(var ee=H,se=X,Se,Re,Be=0;Be<i.width*i.height;Be++){if(Se=ee,Re=se,C.findIndex(function(ht){return ht.x===ee&&ht.y===se})>-1){if(!(C[0].x!==ee||C[0].y!==se))return!0}else C.push({x:ee,y:se});var Ye=E(ee,se);switch(Ye){case-1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:ee++;break;case 12:case 14:case 4:ee--;break;case 6:Se===0&&(Re===-1?ee-=1:ee+=1);break;case 1:case 13:case 5:se--;break;case 9:Se===1&&(Re===0?se-=1:se+=1);break;case 10:case 8:case 11:se++;break;default:return console.warn("Marching squares invalid state: ".concat(Ye)),!0}}};this.march=function(){for(var j=0;j<i.width&&!l;j+=1)for(var H=0;H<i.height&&!l;H+=1)u(j,H)>a&&E(j,H)!==15&&(l=P(j,H));return l}}var _L=function(i,a,l){var u=Math.ceil(i/l),E=Math.ceil(a/l),P=new Float32Array(Math.max(0,u*E)).fill(0);return{cells:P,width:u,height:E}},X7=function(i,a,l){var u=null,E=Number.POSITIVE_INFINITY;return a.forEach(function(P){var j={x:i.getModel().x,y:i.getModel().y},H={x:P.getModel().x,y:P.getModel().y},X=A2(j,H),ee=new b_(j.x,j.y,H.x,H.y),se=l.reduce(function(Se,Re){return mA(Re,ee)>0?Se+1:Se},0);X*Math.pow(se+1,2)<E&&(u=P,E=X*Math.pow(se+1,2))}),u},lD=function(i,a){var l=Number.POSITIVE_INFINITY,u=null;return i.forEach(function(E){var P=mA(E,a);P>=0&&P<l&&(u=E,l=P)}),u},yL=function(i,a,l,u){var E=[],P=[];P.push(i);for(var j=!0,H=0,X=function(Re,Be){var Ye=!1;return Be.forEach(function(ht){Ye||(Dx(Re,{x:ht.x1,y:ht.y1})||Dx(Re,{x:ht.x2,y:ht.y2}))&&(Ye=!0)}),Ye},ee=function(Re,Be){for(var Ye=0,ht=Be;Ye<ht.length;Ye++){var Tt=ht[Ye],Dt=Tt.getBBox(),Kt=[[Dt.x,Dt.y],[Dt.x+Dt.width,Dt.y],[Dt.x,Dt.y+Dt.height],[Dt.x+Dt.width,Dt.y+Dt.height]];if(pS(Kt,Re.x,Re.y))return!0}return!1};j&&H<l;){j=!1;for(var se=function(){var Re=P.pop(),Be=lD(a,Re);if(Be){var Ye=vS(Be,Re),ht=Ye[0],Tt=Ye[1];if(Tt===2){var Dt=function(gn){for(var bn=u,mn=cD(Be,bn,ht,gn),kn=X(mn,P)||X(mn,E),sr=ee(mn,a);!kn&&sr&&bn>=1;)bn/=1.5,mn=cD(Be,bn,ht,gn),kn=X(mn,P)||X(mn,E),sr=ee(mn,a);mn&&!kn&&(!gn||!sr)&&(P.push(new b_(Re.x1,Re.y1,mn.x,mn.y)),P.push(new b_(mn.x,mn.y,Re.x2,Re.y2)),j=!0)};Dt(!0),j||Dt(!1)}}j||E.push(Re),H+=1};!j&&P.length;)se()}for(;P.length;)E.push(P.pop());return E};function J7(C,i,a,l,u){var E=X7(C,a,i);if(E===null)return[];var P=function(se){for(var Se=[];se.length>0;){var Re=se.pop();if(se.length===0){Se.push(Re);break}var Be=se.pop(),Ye=new b_(Re.x1,Re.y1,Be.x2,Be.y2),ht=lD(i,Ye);ht?(Se.push(Re),se.push(Be)):se.push(Ye)}return Se},j=new b_(C.getModel().x,C.getModel().y,E.getModel().x,E.getModel().y),H=yL(j,i,l,u),X=P(H);return X}var bL=function(i,a,l){var u=Object.assign(sD,l),E=T2(i.map(function(Dt){return{x:Dt.getModel().x,y:Dt.getModel().y}}));i=i.sort(function(Dt,Kt){return A2({x:Dt.getModel().x,y:Dt.getModel().y},E)-A2({x:Kt.getModel().x,y:Kt.getModel().y},E)});var P=[],j=[];i.forEach(function(Dt){var Kt=J7(Dt,a,P,u.maxRoutingIterations,u.morphBuffer);Kt.forEach(function(gn){j.push(gn)}),P.push(Dt)});for(var H=xL(i,j,u.nodeR0),X=_L(H.width,H.height,u.pixelGroupSize),ee=[],se=[],Se=0;Se<u.maxMarchingIterations;Se++)if(EL(i,a,j,H,X,u),ee=[],se=[],!!new Y7(ee,X,u.threshold).march()){var Re=ee.map(function(Dt){return{x:Math.round(Dt.x*u.pixelGroupSize+H.minX),y:Math.round(Dt.y*u.pixelGroupSize+H.minY)}});if(Re){var Be=Re.length;if(u.skip>1)for(Be=Math.floor(Re.length/u.skip);Be<3&&u.skip>1;)u.skip-=1,Be=Math.floor(Re.length/u.skip);for(var Ye=0,ht=0;ht<Be;ht+=1,Ye+=u.skip)se.push({x:Re[Ye].x,y:Re[Ye].y})}var Tt=function(){for(var Kt=0,gn=i;Kt<gn.length;Kt++){var bn=gn[Kt],mn=se.map(function(kn){return[kn.x,kn.y]});if(!pS(mn,bn.getBBox().centerX,bn.getBBox().centerY))return!1}return!0};if(se&&Tt())return se;if(u.threshold*=.9,Se<=u.maxMarchingIterations*.5)u.memberInfluenceFactor*=1.2,u.edgeInfluenceFactor*=1.2;else if(u.nonMemberInfluenceFactor!==0&&a.length>0)u.nonMemberInfluenceFactor*=.8;else break}return se};function xL(C,i,a){var l={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},u=[];C.forEach(function(H){u.push(H.getBBox())}),i.forEach(function(H){u.push(H.getBBox())});for(var E=0,P=u;E<P.length;E++){var j=P[E];l.minX=(j.minX<l.minX?j.minX:l.minX)-a,l.minY=(j.minY<l.minY?j.minY:l.minY)-a,l.maxX=(j.maxX>l.maxX?j.maxX:l.maxX)+a,l.maxY=(j.maxY>l.maxY?j.maxY:l.maxY)+a}return l.width=l.maxX-l.minX,l.height=l.maxY-l.minY,l.x=l.minX,l.y=l.minY,l}function EL(C,i,a,l,u,E){function P(Re,Be){var Ye=Math.floor((Re-Be)/E.pixelGroupSize);return Ye<0?0:Ye}function j(Re,Be){return Re*E.pixelGroupSize+Be}var H=(E.nodeR0-E.nodeR1)*(E.nodeR0-E.nodeR1),X=(E.edgeR0-E.edgeR1)*(E.edgeR0-E.edgeR1),ee=function(Be,Ye){var ht=Math.min(P(Be.minX,Ye+l.minX),u.width),Tt=Math.min(P(Be.minY,Ye+l.minY),u.height),Dt=Math.min(P(Be.maxX,-Ye+l.minX),u.width),Kt=Math.min(P(Be.maxY,-Ye+l.minY),u.height);return[ht,Tt,Dt,Kt]},se=function(Be,Ye){for(var ht=Be.getBBox(),Tt=ee(ht,E.nodeR1),Dt=Tt[0],Kt=Tt[1],gn=Tt[2],bn=Tt[3],mn=Kt;mn<bn;mn+=1)for(var kn=Dt;kn<gn;kn+=1)if(!(Ye<0&&u[kn+mn*u.width]<=0)){var sr=j(kn,l.minX),yr=j(mn,l.minY),jr=hS({x:sr,y:yr},{x:ht.minX,y:ht.minY,width:ht.width,height:ht.height});if(jr<Math.pow(E.nodeR1,2)){var zr=Math.sqrt(jr)-E.nodeR1;u.cells[kn+mn*u.width]+=Ye*zr*zr}}},Se=function(Be,Ye){for(var ht=Be.getBBox(),Tt=ee(ht,E.edgeR1),Dt=Tt[0],Kt=Tt[1],gn=Tt[2],bn=Tt[3],mn=Kt;mn<bn;mn+=1)for(var kn=Dt;kn<gn;kn+=1)if(!(Ye<0&&u.cells[kn+mn*u.width]<=0)){var sr=j(kn,l.minX),yr=j(mn,l.minY),jr=cP({x:sr,y:yr},Be);if(jr<Math.pow(E.edgeR1,2)){var zr=Math.sqrt(jr)-E.edgeR1;u.cells[kn+mn*u.width]+=Ye*zr*zr}}};E.nodeInfluenceFactor&&C.forEach(function(Re){se(Re,E.nodeInfluenceFactor/H)}),E.edgeInfluenceFactor&&a.forEach(function(Re){Se(Re,E.edgeInfluenceFactor/X)}),E.negativeNodeInfluenceFactor&&i.forEach(function(Re){se(Re,E.negativeNodeInfluenceFactor/H)})}function cD(C,i,a,l){var u=C.getBBox(),E=a[0],P=a[1],j=a[2],H=a[3],X={topLeft:{x:u.minX-i,y:u.minY-i},topRight:{x:u.maxX+i,y:u.minY-i},bottomLeft:{x:u.minX-i,y:u.maxY+i},bottomRight:{x:u.maxX+i,y:u.maxY+i}},ee=u.height*u.width;function se(Be,Ye){return u.width*((Be.y-u.minY+(Ye.y-u.minY))*.5)}if(P){if(E)return l?X.topLeft:X.bottomRight;if(j)return l?X.bottomLeft:X.topRight;var Se=se(P,H);return Se<ee*.5?P.y>H.y?l?X.topLeft:X.bottomRight:l?X.topRight:X.bottomLeft:P.y<H.y?l?X.bottomLeft:X.topRight:l?X.bottomRight:X.topLeft}if(H){if(E)return l?X.topRight:X.bottomLeft;if(j)return l?X.bottomRight:X.topLeft}var Re=se(E,j);return Re<ee*.5?E.x>j.x?l?X.topLeft:X.bottomRight:l?X.bottomLeft:X.topRight:E.x<j.x?l?X.topRight:X.bottomLeft:l?X.bottomRight:X.topLeft}var Q7=function(){function C(i,a){this.cfg=(0,Nn.deepMix)(this.getDefaultCfg(),a),this.graph=i,this.id=this.cfg.id,this.group=this.cfg.group,this.members=this.cfg.members.map(function(l){return(0,Nn.isString)(l)?i.findById(l):l}),this.nonMembers=this.cfg.nonMembers.map(function(l){return(0,Nn.isString)(l)?i.findById(l):l}),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()}return C.prototype.getDefaultCfg=function(){return{id:"g6-hull",type:"round-convex",members:[],nonMembers:[],style:{fill:"lightblue",stroke:"blue",opacity:.2},padding:10}},C.prototype.setPadding=function(){var i=this.members.length&&this.members[0].getKeyShape().getCanvasBBox().width/2;this.padding=this.cfg.padding>0?this.cfg.padding+i:10+i,this.cfg.bubbleCfg={nodeR0:this.padding-i,nodeR1:this.padding-i,morphBuffer:this.padding-i}},C.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),this.type!=="round-convex"&&this.type!=="smooth-convex"&&this.type!=="bubble"&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex")},C.prototype.calcPath=function(i,a){var l,u,E;switch(this.type){case"round-convex":l=$P(i),E=iD(l.map(function(P){return[P.x,P.y]}),this.padding),u=jI(E);break;case"smooth-convex":l=$P(i),l.length===2?(E=iD(l.map(function(P){return[P.x,P.y]}),this.padding),u=jI(E)):l.length>2&&(E=oD(l.map(function(P){return[P.x,P.y]}),this.padding),u=aD(E));break;case"bubble":l=bL(i,a,this.cfg.bubbleCfg),u=l.length>=2&&aD(l);break;default:}return u},C.prototype.render=function(){this.group.addShape("path",{attrs:bl({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id,capture:!1}),this.group.toBack()},C.prototype.addMember=function(i){if(!!i){(0,Nn.isString)(i)&&(i=this.graph.findById(i)),this.members.push(i);var a=this.nonMembers.indexOf(i);return a>-1&&this.nonMembers.splice(a,1),this.updateData(this.members,this.nonMembers),!0}},C.prototype.addNonMember=function(i){if(!!i){(0,Nn.isString)(i)&&(i=this.graph.findById(i)),this.nonMembers.push(i);var a=this.members.indexOf(i);return a>-1&&this.members.splice(a,1),this.updateData(this.members,this.nonMembers),!0}},C.prototype.removeMember=function(i){if(!!i){(0,Nn.isString)(i)&&(i=this.graph.findById(i));var a=this.members.indexOf(i);return a>-1?(this.members.splice(a,1),this.updateData(this.members,this.nonMembers),!0):!1}},C.prototype.removeNonMember=function(i){if(!!i){(0,Nn.isString)(i)&&(i=this.graph.findById(i));var a=this.nonMembers.indexOf(i);return a>-1?(this.nonMembers.splice(a,1),this.updateData(this.members,this.nonMembers),!0):!1}},C.prototype.updateData=function(i,a){var l=this;this.group.findById(this.id).remove(),i&&(this.members=i.map(function(u){return(0,Nn.isString)(u)?l.graph.findById(u):u})),a&&(this.nonMembers=a.map(function(u){return(0,Nn.isString)(u)?l.graph.findById(u):u})),this.path=this.calcPath(this.members,this.nonMembers),this.render()},C.prototype.updateStyle=function(i){var a=this.group.findById(this.id);a.attr(bl({},i))},C.prototype.updateCfg=function(i){var a=this;this.cfg=(0,Nn.deepMix)(this.cfg,i),this.id=this.cfg.id,this.group=this.cfg.group,i.members&&(this.members=this.cfg.members.map(function(l){return(0,Nn.isString)(l)?a.graph.findById(l):l})),i.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map(function(l){return(0,Nn.isString)(l)?a.graph.findById(l):l})),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()},C.prototype.contain=function(i){var a=this,l;(0,Nn.isString)(i)?l=this.graph.findById(i):l=i;var u,E=l.getKeyShape();if(l.get("type")==="path")u=rD(E.attr("path"));else{var P=E.getCanvasBBox();u=[[P.minX,P.minY],[P.maxX,P.minY],[P.maxX,P.maxY],[P.minX,P.maxY]]}return u=u.map(function(j){var H=a.graph.getPointByCanvas(j[0],j[1]);return[H.x,H.y]}),lP(u,rD(this.path))},C.prototype.destroy=function(){this.group.remove(),this.cfg=null},C}(),uD=Q7,qx=U_,q7="node",e9=function(C){rb(i,C);function i(a){var l=C.call(this)||this;return l.sortCombos=(0,Nn.debounce)(function(){var u=l.get("comboSorted");if(!(!l||l.destroyed||u)){l.set("comboSorted",!0);var E=[],P={},j=l.get("comboTrees");(j||[]).forEach(function(X){rg(X,function(ee){return E[ee.depth]?E[ee.depth].push(ee.id):E[ee.depth]=[ee.id],P[ee.id]=ee.depth,!0})});var H=l.getEdges().concat(l.get("vedges"));(H||[]).forEach(function(X){var ee=X.getModel(),se=P[ee.source]||0,Se=P[ee.target]||0,Re=Math.max(se,Se);E[Re]?E[Re].push(ee.id):E[Re]=[ee.id]}),E.forEach(function(X){if(!(!X||!X.length))for(var ee=X.length-1;ee>=0;ee--){var se=l.findById(X[ee]);se&&se.toFront()}})}},500,!1),l.cfg=(0,Nn.deepMix)(l.getDefaultCfg(),a),l.init(),l.animating=!1,l.destroyed=!1,l.cfg.enabledStack&&(l.undoStack=new W0(l.cfg.maxStep),l.redoStack=new W0(l.cfg.maxStep)),l}return i.prototype.init=function(){this.initCanvas();var a=new U7(this),l=new xe(this),u=new H7(this),E=new $7(this);this.set({viewController:a,modeController:l,itemController:u,stateController:E}),this.initLayoutController(),this.initEventController(),this.initGroups(),this.initPlugins()},i.prototype.initGroups=function(){var a=this.get("canvas");if(!!a){var l=a.get("el"),u=(l||{}).id,E=u===void 0?"g6":u,P=a.addGroup({id:"".concat(E,"-root"),className:Yu.rootContainerClassName});if(this.get("groupByTypes")){var j=P.addGroup({id:"".concat(E,"-edge"),className:Yu.edgeContainerClassName}),H=P.addGroup({id:"".concat(E,"-node"),className:Yu.nodeContainerClassName}),X=P.addGroup({id:"".concat(E,"-combo"),className:Yu.comboContainerClassName});X.toBack(),this.set({nodeGroup:H,edgeGroup:j,comboGroup:X})}var ee=P.addGroup({id:"".concat(E,"-delegate"),className:Yu.delegateContainerClassName});this.set({delegateGroup:ee}),this.set("group",P)}},i.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.02,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,enabledStack:!1,maxStep:10,tooltips:[],optimizeThreshold:1e3}},i.prototype.set=function(a,l){return(0,Nn.isPlainObject)(a)?this.cfg=bl(bl({},this.cfg),a):this.cfg[a]=l,a==="enabledStack"&&l&&!this.undoStack&&!this.redoStack&&(this.undoStack=new W0(this.cfg.maxStep),this.redoStack=new W0(this.cfg.maxStep)),this},i.prototype.get=function(a){var l;return(l=this.cfg)===null||l===void 0?void 0:l[a]},i.prototype.getGroup=function(){return this.get("group")},i.prototype.getContainer=function(){return this.get("container")},i.prototype.getMinZoom=function(){return this.get("minZoom")},i.prototype.setMinZoom=function(a){return this.set("minZoom",a)},i.prototype.getMaxZoom=function(){return this.get("maxZoom")},i.prototype.setMaxZoom=function(a){return this.set("maxZoom",a)},i.prototype.getWidth=function(){return this.get("width")},i.prototype.getHeight=function(){return this.get("height")},i.prototype.clearItemStates=function(a,l){(0,Nn.isString)(a)&&(a=this.findById(a));var u=this.get("itemController");l||(l=a.get("states")),u.clearItemStates(a,l);var E=this.get("stateController");E.updateStates(a,l,!1)},i.prototype.node=function(a){typeof a=="function"&&this.set("nodeMapper",a)},i.prototype.edge=function(a){typeof a=="function"&&this.set("edgeMapper",a)},i.prototype.combo=function(a){typeof a=="function"&&this.set("comboMapper",a)},i.prototype.findById=function(a){return this.get("itemMap")[a]},i.prototype.find=function(a,l){var u,E=this.get("".concat(a,"s"));return(0,Nn.each)(E,function(P,j){if(l(P,j))return u=P,u}),u},i.prototype.findAll=function(a,l){var u=[];return(0,Nn.each)(this.get("".concat(a,"s")),function(E,P){l(E,P)&&u.push(E)}),u},i.prototype.findAllByState=function(a,l,u){return u?this.findAll(a,function(E){return E.hasState(l)&&u(E)}):this.findAll(a,function(E){return E.hasState(l)})},i.prototype.translate=function(a,l,u,E){var P=this,j=this.get("group"),H=(0,Nn.clone)(j.getMatrix());if(H||(H=[1,0,0,0,1,0,0,0,1]),u){var X=vv({animateCfg:E,callback:function(){return P.emit("viewportchange",{action:"translate",matrix:j.getMatrix()})}});Ix(j,{x:j.getCanvasBBox().x+a,y:j.getCanvasBBox().y+l},u,X||{duration:500,easing:"easeCubic"})}else H=qx(H,[["t",a,l]]),j.setMatrix(H),this.emit("viewportchange",{action:"translate",matrix:H}),this.autoPaint()},i.prototype.moveTo=function(a,l,u,E){var P=this.get("group");Ix(P,{x:a,y:l},u,E||{duration:500,easing:"easeCubic"}),this.emit("viewportchange",{action:"move",matrix:P.getMatrix()})},i.prototype.fitView=function(a,l,u,E){a&&this.set("fitViewPadding",a);var P=this.get("viewController");l?P.fitViewByRules(l,u,E):P.fitView(u,E),this.autoPaint()},i.prototype.fitCenter=function(a,l){var u=this.get("viewController");u.fitCenter(a,l),this.autoPaint()},i.prototype.addBehaviors=function(a,l){var u=this.get("modeController");return u.manipulateBehaviors(a,l,!0),this},i.prototype.removeBehaviors=function(a,l){var u=this.get("modeController");return u.manipulateBehaviors(a,l,!1),this},i.prototype.updateBehavior=function(a,l,u){var E=this.get("modeController");return E.updateBehavior(a,l,u),this},i.prototype.zoom=function(a,l,u,E){var P=this,j=this.get("group"),H=(0,Nn.clone)(j.getMatrix())||[1,0,0,0,1,0,0,0,1],X=this.get("minZoom"),ee=this.get("maxZoom"),se=this.getZoom()||1,Se=se*a,Re=a,Be=!1;if(X&&Se<X?(Re=X/se,Be=!0):ee&&Se>ee&&(Re=ee/se,Be=!0),l?H=qx(H,[["t",-l.x,-l.y],["s",Re,Re],["t",l.x,l.y]]):H=qx(H,[["s",Re,Re]]),u){var Ye=(0,Nn.clone)(j.getMatrix());Ye||(Ye=[1,0,0,0,1,0,0,0,1]);var ht=Ye[0],Tt=ht*Re,Dt=vv({animateCfg:E,callback:function(){return P.emit("viewportchange",{action:"zoom",matrix:j.getMatrix()})}});j.animate(function(Kt){if(Kt===1)Ye=H;else{var gn=mS(ht,Tt,Kt)/Ye[0];l?Ye=qx(Ye,[["t",-l.x,-l.y],["s",gn,gn],["t",l.x,l.y]]):Ye=qx(Ye,[["s",gn,gn]])}return{matrix:Ye}},Dt)}else j.setMatrix(H),this.emit("viewportchange",{action:"zoom",matrix:H}),this.autoPaint();return!Be},i.prototype.zoomTo=function(a,l,u,E){var P=a/this.getZoom();return this.zoom(P,l,u,E)},i.prototype.focusItem=function(a,l,u){var E=this.get("viewController"),P=!1;l?P=!0:l===void 0&&(P=this.get("animate"));var j={};u?j=u:u===void 0&&(j=this.get("animateCfg")),E.focus(a,P,j),this.autoPaint()},i.prototype.focusItems=function(a,l,u,E){var P=this.get("viewController");P.focusItems(a,l,u,E)},i.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},i.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},i.prototype.getPointByClient=function(a,l){var u=this.get("viewController");return u.getPointByClient(a,l)},i.prototype.getClientByPoint=function(a,l){var u=this.get("viewController");return u.getClientByPoint(a,l)},i.prototype.getPointByCanvas=function(a,l){var u=this.get("viewController");return u.getPointByCanvas(a,l)},i.prototype.getCanvasByPoint=function(a,l){var u=this.get("viewController");return u.getCanvasByPoint(a,l)},i.prototype.getGraphCenterPoint=function(){var a=this.get("group").getCanvasBBox();return{x:(a.minX+a.maxX)/2,y:(a.minY+a.maxY)/2}},i.prototype.getViewPortCenterPoint=function(){return this.getPointByCanvas(this.get("width")/2,this.get("height")/2)},i.prototype.showItem=function(a,l){l===void 0&&(l=!0);var u=this.get("itemController"),E=u.changeItemVisibility(a,!0);if(l&&this.get("enabledStack")){var P=E.getID(),j=E.getType(),H={},X={};switch(j){case"node":H.nodes=[{id:P,visible:!1}],X.nodes=[{id:P,visible:!0}];break;case"edge":H.nodes=[{id:P,visible:!1}],X.edges=[{id:P,visible:!0}];break;case"combo":H.nodes=[{id:P,visible:!1}],X.combos=[{id:P,visible:!0}];break;default:break}this.pushStack("visible",{before:H,after:X})}},i.prototype.hideItem=function(a,l){l===void 0&&(l=!0);var u=this.get("itemController"),E=u.changeItemVisibility(a,!1);if(l&&this.get("enabledStack")){var P=E.getID(),j=E.getType(),H={},X={};switch(j){case"node":H.nodes=[{id:P,visible:!0}],X.nodes=[{id:P,visible:!1}];break;case"edge":H.nodes=[{id:P,visible:!0}],X.edges=[{id:P,visible:!1}];break;case"combo":H.nodes=[{id:P,visible:!0}],X.combos=[{id:P,visible:!1}];break;default:break}this.pushStack("visible",{before:H,after:X})}},i.prototype.refreshItem=function(a){var l=this.get("itemController");l.refreshItem(a)},i.prototype.setAutoPaint=function(a){var l=this;l.set("autoPaint",a);var u=l.get("canvas");u.set("autoDraw",a)},i.prototype.remove=function(a,l){l===void 0&&(l=!0),this.removeItem(a,l)},i.prototype.removeItem=function(a,l){l===void 0&&(l=!0);var u=a;if((0,Nn.isString)(a)&&(u=this.findById(a)),!u&&(0,Nn.isString)(a))console.warn("The item ".concat(a," to be removed does not exist!"));else if(u){var E="";if(u.getType&&(E=u.getType()),l&&this.get("enabledStack")){var P=bl(bl({},u.getModel()),{itemType:E}),j={};switch(E){case"node":{j.nodes=[P],j.edges=[];for(var H=u.getEdges(),X=H.length-1;X>=0;X--)j.edges.push(bl(bl({},H[X].getModel()),{itemType:"edge"}));break}case"edge":j.edges=[P];break;case"combo":j.combos=[P];break;default:break}this.pushStack("delete",{before:j,after:{}})}if(E==="node"){var ee=u.getModel();ee.comboId&&this.updateComboTree(u,void 0,!1)}var se=this.get("itemController");if(se.removeItem(u),E==="combo"){var Se=N2(this.get("comboTrees"));this.set("comboTrees",Se)}}},i.prototype.innerAddItem=function(a,l,u){if(!ae(a,l))return!1;if(l.id&&this.findById(l.id)){console.warn("This item exists already. Be sure the id %c".concat(l.id,"%c is unique."),"font-size: 20px; color: red;","");return}var E,P=this.get("comboTrees")||[];if(a==="combo"){var j=this.get("itemMap"),H=!1;if(P.forEach(function(Be){H||ag(Be,function(Ye){if(l.parentId===Ye.id){H=!0;var ht=bl({id:l.id,depth:Ye.depth+2},l);Ye.children?Ye.children.push(ht):Ye.children=[ht],l.depth=ht.depth,E=u.addItem(a,l)}var Tt=j[Ye.id];return H&&Tt&&Tt.getType&&Tt.getType()==="combo"&&u.updateCombo(Tt,Ye.children),!0})}),!H){var X=bl({id:l.id,depth:0},l);l.depth=X.depth,P.push(X),E=u.addItem(a,l)}this.set("comboTrees",P),l.collapsed&&(this.collapseCombo(E,!1),this.updateCombo(E))}else if(a==="node"&&(0,Nn.isString)(l.comboId)&&P){var ee=this.findById(l.comboId);ee&&ee.getType&&ee.getType()!=="combo"&&console.warn("'".concat(l.comboId,"' is not a id of a combo in the graph, the node will be added without combo.")),E=u.addItem(a,l);var se=this.get("itemMap"),Se=!1,Re=!1;P.forEach(function(Be){Re||Se||ag(Be,function(Ye){if(Ye.id===l.id)return Re=!0,!1;if(l.comboId===Ye.id&&!Re){Se=!0;var ht=(0,Nn.clone)(l);ht.itemType="node",Ye.children?Ye.children.push(ht):Ye.children=[ht],ht.depth=Ye.depth+1}return Se&&se[Ye.id].getType&&se[Ye.id].getType()==="combo"&&u.updateCombo(se[Ye.id],Ye.children),!0})})}else E=u.addItem(a,l);if(a==="node"&&l.comboId||a==="combo"&&l.parentId){var ee=this.findById(l.comboId||l.parentId);ee&&ee.getType&&ee.getType()==="combo"&&ee.addChild(E)}return E},i.prototype.addItem=function(a,l,u,E){u===void 0&&(u=!0),E===void 0&&(E=!0);var P=this.get("comboSorted");this.set("comboSorted",P&&!E);var j=this.get("itemController"),H=this.innerAddItem(a,l,j);if(H===!1||H===!0)return H;var X=this.get("combos");if(X&&X.length>0&&this.sortCombos(),this.autoPaint(),u&&this.get("enabledStack")){var ee=bl(bl({},H.getModel()),{itemType:a}),se={};switch(a){case"node":se.nodes=[ee];break;case"edge":se.edges=[ee];break;case"combo":se.combos=[ee];break;default:break}this.pushStack("add",{before:{},after:se})}return H},i.prototype.addItems=function(a,l,u){a===void 0&&(a=[]),l===void 0&&(l=!0),u===void 0&&(u=!0);var E=this.get("comboSorted");this.set("comboSorted",E&&!u);for(var P=this.get("itemController"),j=[],H=0;H<a.length;H++){var X=a[H];X.type!=="edge"&&X.type!=="vedge"?j.push(this.innerAddItem(X.type,X.model,P)):j.push(void 0)}for(var H=0;H<a.length;H++){var X=a[H];(X.type==="edge"||X.type==="vedge")&&(j[H]=this.innerAddItem(X.type,X.model,P))}if(u){var ee=this.get("combos");ee&&ee.length>0&&this.sortCombos()}if(this.autoPaint(),l&&this.get("enabledStack")){for(var se={nodes:[],edges:[],combos:[]},H=0;H<a.length;H++){var Se=a[H].type,Re=j[H];if(!!Re&&Re!==!0){var Be=bl(bl({},Re.getModel()),{itemType:Se});switch(Se){case"node":se.nodes.push(Be);break;case"edge":se.edges.push(Be);break;case"combo":se.combos.push(Be);break;default:break}}}this.pushStack("addItems",{before:{},after:se})}return j},i.prototype.add=function(a,l,u,E){return u===void 0&&(u=!0),E===void 0&&(E=!0),this.addItem(a,l,u,E)},i.prototype.updateItem=function(a,l,u){var E=this;u===void 0&&(u=!0);var P=this.get("itemController"),j;(0,Nn.isString)(a)?j=this.findById(a):j=a;var H=u&&this.get("enabledStack"),X;H&&(X=(0,Nn.clone)(j.getModel()));var ee="";j.getType&&(ee=j.getType());var se=my([],j.getStates(),!0);if(ee==="combo"&&(0,Nn.each)(se,function(Ye){return E.setItemState(j,Ye,!1)}),P.updateItem(j,l),ee==="combo"&&(0,Nn.each)(se,function(Ye){return E.setItemState(j,Ye,!0)}),H){var Se={nodes:[],edges:[],combos:[]},Re={nodes:[],edges:[],combos:[]},Be=bl({id:X.id},l);switch(ee){case"node":Se.nodes.push(X),Re.nodes.push(Be);break;case"edge":Se.edges.push(X),Re.edges.push(Be);break;case"combo":Se.combos.push(X),Re.combos.push(Be);break;default:break}this.pushStack("update",{before:Se,after:Re})}},i.prototype.update=function(a,l,u){u===void 0&&(u=!0),this.updateItem(a,l,u)},i.prototype.setItemState=function(a,l,u){(0,Nn.isString)(a)&&(a=this.findById(a));var E=this.get("itemController");E.setItemState(a,l,u);var P=this.get("stateController");P.updateState(a,l,u)},i.prototype.priorityState=function(a,l){var u=this.get("itemController");u.priorityState(a,l)},i.prototype.data=function(a){xS(a),this.set("data",a)},i.prototype.render=function(){var a=this;this.set("comboSorted",!1);var l=this.get("data");if(this.get("enabledStack")&&this.clearStack(),!l)throw new Error("data must be defined first");var u=l.nodes,E=u===void 0?[]:u,P=l.edges,j=P===void 0?[]:P,H=l.combos,X=H===void 0?[]:H;if(this.clear(!0),this.emit("beforerender"),a.addItems(E.map(function(ht){return{type:"node",model:ht}}),!1,!1),(X==null?void 0:X.length)!==0){var ee=D2(X,E);this.set("comboTrees",ee),a.addCombos(X)}a.addItems(j.map(function(ht){return{type:"edge",model:ht}}),!1,!1);var se=a.get("animate");(a.get("fitView")||a.get("fitCenter"))&&a.set("animate",!1);var Se=a.get("layoutController");if(Se){if(Se.layout(Re),this.destroyed)return}else Re();function Re(){(a.get("comboTrees")||[]).forEach(function(ht){ag(ht,function(Tt){var Dt=a.findById(Tt.id);return Dt.getType()==="combo"&&Tt.collapsed&&(a.collapseCombo(Tt.id,!1),a.updateCombo(Dt)),!0})}),a.get("fitView")?a.fitView():a.get("fitCenter")&&a.fitCenter(),a.autoPaint(),a.emit("afterrender"),(a.get("fitView")||a.get("fitCenter"))&&a.set("animate",se),setTimeout(function(){var ht;(ht=a.getCombos())===null||ht===void 0||ht.forEach(function(Tt){Tt.set("animate",!0)})},0)}if(!this.get("groupByTypes"))if(X&&X.length!==0)this.sortCombos();else if(l.nodes&&l.edges&&l.nodes.length<l.edges.length){var Be=this.getNodes();Be.forEach(function(ht){ht.toFront()})}else{var Ye=this.getEdges();Ye.forEach(function(ht){ht.toBack()})}},i.prototype.read=function(a){this.data(a),this.render()},i.prototype.diffItems=function(a,l,u){var E=this,P,j=this.get("itemMap");(0,Nn.each)(u,function(H){if(P=j[H.id],P){if(E.get("animate")&&a===q7){var X=P.getContainer().getMatrix();X||(X=[1,0,0,0,1,0,0,0,1]),P.set("originAttrs",{x:X[6],y:X[7]})}E.updateItem(P,H,!1)}else P=E.addItem(a,H,!1);P&&l["".concat(a,"s")].push(P)})},i.prototype.changeData=function(a,l){var u=this,E;l===void 0&&(l=!0);var P=this,j=a||P.get("data");if(!xS(j))return this;this.emit("beforechangedata"),l&&this.get("enabledStack")&&this.pushStack("changedata",{before:P.save(),after:j}),this.set("comboSorted",!1),this.removeHulls(),this.getNodes().map(function(gn){return P.clearItemStates(gn)}),this.getEdges().map(function(gn){return P.clearItemStates(gn)});var H=this.get("canvas"),X=H.get("localRefresh");H.set("localRefresh",!1),P.get("data")||(P.data(j),P.render());var ee=this.get("itemMap"),se={nodes:[],edges:[]},Se=j.combos;if(Se){var Re=D2(Se,j.nodes);this.set("comboTrees",Re)}else this.set("comboTrees",[]);this.diffItems("node",se,j.nodes),(0,Nn.each)(ee,function(gn,bn){ee[bn].getModel().depth=0,!(gn.getType&&gn.getType()==="edge")&&(gn.getType&&gn.getType()==="combo"?(delete ee[bn],gn.destroy()):se.nodes.indexOf(gn)<0&&(delete ee[bn],P.remove(gn,!1)))});for(var Be=this.getCombos(),Ye=Be.length,ht=Ye-1;ht>=0;ht--)Be[ht].destroyed&&Be.splice(ht,1);Se&&(P.addCombos(Se),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",se,j.edges),(0,Nn.each)(ee,function(gn,bn){gn.getType&&(gn.getType()==="node"||gn.getType()==="combo")||se.edges.indexOf(gn)<0&&(delete ee[bn],P.remove(gn,!1))}),(this.get("comboTrees")||[]).forEach(function(gn){ag(gn,function(bn){var mn=u.findById(bn.id);return mn.getType()==="combo"&&bn.collapsed&&u.collapseCombo(bn.id,!1),!0})}),this.set({nodes:se.nodes,edges:se.edges});var Tt=(this.get("layout")||{}).relayoutAtChangeData,Dt=Tt===void 0?!0:Tt,Kt=this.get("layoutController");return Dt&&Kt&&(Kt.changeData(function(){setTimeout(function(){var gn;(gn=P.getCombos())===null||gn===void 0||gn.forEach(function(bn){bn.set("animate",!0)})},0)}),P.get("animate")&&!Kt.getLayoutType()?(P.positionsAnimate(),(E=P.getCombos())===null||E===void 0||E.forEach(function(gn){return gn.set("animate",!0)})):P.autoPaint()),setTimeout(function(){H.set("localRefresh",X)},16),this.set("data",j),this.emit("afterchangedata"),this},i.prototype.addCombos=function(a){var l=this,u=l.get("comboTrees"),E=this.get("itemController");E.addCombos(u,a)},i.prototype.createCombo=function(a,l,u){var E=this;u===void 0&&(u=!0);var P=this.get("itemController");this.set("comboSorted",!1);var j="",H;if(!!a){if((0,Nn.isString)(a))j=a,H={id:a};else{if(j=a.id,!j){console.warn("Create combo failed. Please assign a unique string id for the adding combo.");return}H=a}var X=u&&this.get("enabledStack"),ee={nodes:[],combos:[]};X&&l.forEach(function(Tt){var Dt=E.findById(Tt),Kt=Dt.getType();if(!(Kt!=="node"&&Kt!=="combo")){var gn=Dt.getModel();ee["".concat(Kt,"s")].push({id:Tt,parentId:Kt==="node"?gn.comboId:gn.parentId})}});var se=this.get("comboTrees"),Se=new Set(l),Re=new Map;se&&(se.forEach(function(Tt){ag(Tt,function(Dt,Kt,gn){if(Se.has(Dt.id)){if(Kt){var bn=E.findById(Kt.id),mn=E.findById(Dt.id);Kt.children.splice(gn,1),bn.removeChild(mn),P.updateCombo(bn,Kt.children)}Dt.itemType==="combo"&&Re.set(Dt.id,Dt)}return!0})}),se=se.filter(function(Tt){return!Se.has(Tt.id)}),this.set("comboTrees",se));var Be={nodes:[],combos:[]},Ye=l.map(function(Tt){var Dt=E.findById(Tt),Kt=Dt.getModel(),gn="";Dt.getType&&(gn=Dt.getType());var bn=Re.get(Tt)||{id:Dt.getID(),itemType:gn};return gn==="combo"?(bn.parentId=j,Kt.parentId=j):gn==="node"&&(bn.comboId=j,Kt.comboId=j),X&&Be["".concat(gn,"s")].push({id:Kt.id,parentId:j}),bn});H.children=Ye,this.addItem("combo",H,!1),this.set("comboSorted",!1),se&&(se.forEach(function(Tt){rg(Tt,function(Dt){return Dt.id===j?(Dt.itemType="combo",Dt.children=Ye,!1):!0})}),this.sortCombos()),X&&(Be.combos.push(H),this.pushStack("createCombo",{before:ee,after:Be}));var ht=this.findById(j);!ht.getModel().parentId&&ht.getChildren().combos.length&&this.updateComboTree(ht,void 0,!1),setTimeout(function(){ht.set("animate",!0)},0)}},i.prototype.uncombo=function(a,l){var u=this,E,P;l===void 0&&(l=!0);var j=this,H=a;if((0,Nn.isString)(a)&&(H=this.findById(a)),!H||H.getType&&H.getType()!=="combo"){console.warn("The item is not a combo!");return}var X=H.getModel(),ee=H.getModel().parentId,se=j.get("comboTrees");se||(se=[]);var Se=this.get("itemMap"),Re=H.get("id"),Be,Ye=[],ht=this.get("combos"),Tt=this.findById(ee),Dt=l&&this.get("enabledStack"),Kt={};if(Dt&&(Kt=(0,Nn.clone)(X),Kt.children=[]),se.forEach(function(kn){Be||ag(kn,function(sr){var yr;if(sr.id===Re){Be=sr;var jr=H.getEdges().map(function(za){return za.getID()});jr.forEach(function(za){u.removeItem(za,!1)});var zr=ht.indexOf(H);ht.splice(zr,1),delete Se[Re];var va=(0,Nn.clone)(H.getModel());H.destroy(),u.emit("afterremoveitem",{item:va,type:"combo"})}if(ee&&Be&&sr.id===ee){Tt.removeCombo(H),Ye=sr.children;var zr=Ye.indexOf(Be);return zr!==-1&&Ye.splice(zr,1),(yr=Be.children)===null||yr===void 0||yr.forEach(function(xi){var Di=u.findById(xi.id),Si=Di.getModel();Di.getType&&Di.getType()==="combo"?(xi.parentId=ee,delete xi.comboId,Si.parentId=ee,delete Si.comboId):Di.getType&&Di.getType()==="node"&&(xi.comboId=ee,Si.comboId=ee),Tt.addChild(Di),Ye.push(xi)}),u.updateCombo(Tt),!1}return!0})}),!ee&&Be){var gn=se.indexOf(Be);se.splice(gn,1),(E=Be.children)===null||E===void 0||E.forEach(function(kn){kn.parentId=void 0;var sr=u.findById(kn.id).getModel();delete sr.parentId,delete sr.comboId,kn.itemType!=="node"&&se.push(kn)})}if(Dt){var bn={nodes:[],combos:[]},mn={nodes:[],combos:[]};(P=Be.children)===null||P===void 0||P.forEach(function(kn){var sr=u.findById(kn.id),yr=sr.getType();yr!=="node"&&yr!=="combo"||(bn["".concat(yr,"s")].push({id:kn.id,parentId:Re}),mn["".concat(yr,"s")].push({id:kn.id,parentId:ee}))}),bn.combos.push(Kt),this.pushStack("uncombo",{before:bn,after:mn})}},i.prototype.updateCombos=function(a){var l=this;a===void 0&&(a=!1);var u=this,E=this.get("comboTrees"),P=u.get("itemController"),j=u.get("itemMap");(E||[]).forEach(function(H){ag(H,function(X){var ee;if(!X)return!0;var se=j[X.id];if(((ee=se==null?void 0:se.getType)===null||ee===void 0?void 0:ee.call(se))==="combo"){var Se=my([],se.getStates(),!0);(0,Nn.each)(Se,function(Re){return l.setItemState(se,Re,!1)}),P.updateCombo(se,X.children,a),(0,Nn.each)(Se,function(Re){return l.setItemState(se,Re,!0)})}return!0})}),u.sortCombos()},i.prototype.updateCombo=function(a){var l=this,u=this,E=a,P;if((0,Nn.isString)(a)&&(E=this.findById(a)),!E||E.getType&&E.getType()!=="combo"){console.warn("The item to be updated is not a combo!");return}P=E.get("id");var j=this.get("comboTrees"),H=u.get("itemController"),X=u.get("itemMap");(j||[]).forEach(function(ee){ag(ee,function(se){if(!se)return!0;var Se=X[se.id];if(P===se.id&&Se&&Se.getType&&Se.getType()==="combo"){var Re=my([],Se.getStates(),!0);(0,Nn.each)(Re,function(Be){Se.getStateStyle(Be)&&l.setItemState(Se,Be,!1)}),H.updateCombo(Se,se.children),(0,Nn.each)(Re,function(Be){Se.getStateStyle(Be)&&l.setItemState(Se,Be,!0)}),P&&(P=se.parentId)}return!0})})},i.prototype.updateComboTree=function(a,l,u){u===void 0&&(u=!0);var E=this;this.set("comboSorted",!1);var P;(0,Nn.isString)(a)?P=E.findById(a):P=a;var j=P.getModel(),H=j.comboId||j.parentId,X="";if(P.getType&&(X=P.getType()),l&&X==="combo"){var ee=this.get("comboTrees"),se=!0,Se;if((ee||[]).forEach(function(Dt){Se||rg(Dt,function(Kt){if(!Se)return Kt.id===P.getID()&&(Se=Kt),!0})}),rg(Se,function(Dt){return Dt.id===l?(se=!1,!1):!0}),!se){console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!");return}}if(u&&this.get("enabledStack")){var Re={},Be={};X==="combo"?(Re.combos=[{id:j.id,parentId:j.parentId}],Be.combos=[{id:j.id,parentId:l}]):X==="node"&&(Re.nodes=[{id:j.id,parentId:j.comboId}],Be.nodes=[{id:j.id,parentId:l}]),this.pushStack("updateComboTree",{before:Re,after:Be})}if(j.parentId||j.comboId){var Ye=this.findById(j.parentId||j.comboId);Ye&&Ye.removeChild(P)}if(X==="combo"?j.parentId=l:X==="node"&&(j.comboId=l),l){var ht=this.findById(l);ht&&ht.addChild(P)}if(H){var ht=this.findById(H);ht&&ht.removeChild(P)}var Tt=N2(this.get("comboTrees"),j.id,l);this.set("comboTrees",Tt),this.updateCombos()},i.prototype.save=function(){var a=[],l=[],u=[];return(0,Nn.each)(this.get("nodes"),function(E){a.push(E.getModel())}),(0,Nn.each)(this.get("edges"),function(E){l.push(E.getModel())}),(0,Nn.each)(this.get("combos"),function(E){u.push(E.getModel())}),{nodes:a,edges:l,combos:u}},i.prototype.changeSize=function(a,l){var u=this.get("viewController");return u.changeSize(a,l),this},i.prototype.refresh=function(){var a=this;if(a.emit("beforegraphrefresh"),a.get("animate"))a.positionsAnimate();else{var l=a.get("nodes"),u=a.get("edges"),E=a.get("edges");(0,Nn.each)(l,function(P){P.refresh()}),(0,Nn.each)(u,function(P){P.refresh()}),(0,Nn.each)(E,function(P){P.refresh()})}a.emit("aftergraphrefresh"),a.autoPaint()},i.prototype.getNodes=function(){return this.get("nodes")},i.prototype.getEdges=function(){return this.get("edges")},i.prototype.getCombos=function(){return this.get("combos")},i.prototype.getComboChildren=function(a){if((0,Nn.isString)(a)&&(a=this.findById(a)),!a||a.getType&&a.getType()!=="combo"){console.warn("The combo does not exist!");return}return a.getChildren()},i.prototype.positionsAnimate=function(a){var l=this;l.emit("beforeanimate");var u=l.get("animateCfg"),E=u.onFrame,P=a?l.getNodes().concat(l.getCombos()):l.getNodes(),j=P.map(function(X){var ee=X.getModel();return{id:ee.id,x:ee.x,y:ee.y}});l.stopAnimate();var H=l.get("canvas");l.animating=!0,setTimeout(function(){H.animate(function(X){(0,Nn.each)(j,function(ee){var se=l.findById(ee.id);if(!(!se||se.destroyed)){var Se=se.get("originAttrs"),Re=se.get("model"),Be=se.getContainer().getMatrix();if(Se==null&&(Be&&(Se={x:Be[6],y:Be[7]}),se.set("originAttrs",Se||0)),E){var Ye=E(se,X,ee,Se||{x:0,y:0});se.set("model",Object.assign(Re,Ye))}else Se?(Re.x=Se.x+(ee.x-Se.x)*X,Re.y=Se.y+(ee.y-Se.y)*X):(Re.x=ee.x,Re.y=ee.y)}}),l.refreshPositions(a)},{duration:u.duration,easing:u.easing,callback:function(){(0,Nn.each)(P,function(ee){ee.set("originAttrs",null)}),u.callback&&u.callback(),l.emit("afteranimate"),l.animating=!1}})},0)},i.prototype.refreshPositions=function(a){var l=this;l.emit("beforegraphrefreshposition");var u=l.get("nodes"),E=l.get("edges"),P=l.get("vedges"),j=l.get("combos"),H,X={},ee=function(Se){(0,Nn.each)(Se,function(Re){H=Re.getModel();var Be=Re.get("originAttrs");if(!(Be&&H.x===Be.x&&H.y===Be.y)){var Ye=Re.updatePosition({x:H.x,y:H.y});X[H.id]=Ye,H.comboId&&(X[H.comboId]=X[H.comboId]||Ye),H.parentId&&(X[H.parentId]=X[H.parentId]||Ye)}})};ee(j),ee(u),j&&j.length!==0&&(a&&ee(j),l.updateCombos()),(0,Nn.each)(E,function(se){var Se=se.getSource().getModel(),Re=se.getTarget();if(!(0,Nn.isPlainObject)(Re)){var Be=Re.getModel();(X[Se.id]||X[Be.id]||se.getModel().isComboEdge)&&se.refresh()}}),(0,Nn.each)(P,function(se){se.refresh()}),l.emit("aftergraphrefreshposition"),l.autoPaint()},i.prototype.stopAnimate=function(){var a=this.get("canvas"),l=a.cfg.timeline;l&&l.stopAllAnimations()},i.prototype.isAnimating=function(){return this.animating},i.prototype.getZoom=function(){var a=this.get("group").getMatrix();return a?a[0]:1},i.prototype.getCurrentMode=function(){var a=this.get("modeController");return a.getMode()},i.prototype.setMode=function(a){var l=this.get("modeController");return l.setMode(a),this},i.prototype.clear=function(a){var l;return a===void 0&&(a=!1),(l=this.get("canvas"))===null||l===void 0||l.clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],vedges:[],groups:[],combos:[],comboTrees:[]}),a||this.emit("afterrender"),this},i.prototype.updateLayout=function(a,l,u,E){var P=this;a===void 0&&(a={}),E===void 0&&(E=!0);var j=this.get("layoutController");if((0,Nn.isString)(a)&&(a={type:a}),l){var H=u;H||(l==="begin"?H={x:0,y:0}:H={x:this.getWidth()/2,y:this.getHeight()/2}),H=this.getPointByCanvas(H.x,H.y);var X=["force","gForce","fruchterman","force2"];X.includes(a.type)||!a.type&&X.includes(j==null?void 0:j.layoutType)?a.center=[H.x,H.y]:this.once("afterlayout",function(Se){var Re=P.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];H.x=H.x*Re[0]+Re[6],H.y=H.y*Re[0]+Re[7];var Be=P.getGroup().getCanvasBBox(),Ye=Be.minX,ht=Be.maxX,Tt=Be.minY,Dt=Be.maxY,Kt={x:(Ye+ht)/2,y:(Tt+Dt)/2};l==="begin"&&(Kt.x=Ye,Kt.y=Tt),P.translate(H.x-Kt.x,H.y-Kt.y)})}var ee=bl({},this.get("layout")),se={};Object.assign(se,ee,a),a.pipes&&!a.type?delete se.type:!a.pipes&&se.type&&delete se.pipes,this.set("layout",se),!!j&&(j.isLayoutTypeSame(se)&&se.gpuEnabled===ee.gpuEnabled?j.updateLayoutCfg(se):j.changeLayout(se),E&&this.get("enabledStack")&&this.pushStack("layout",{before:ee,after:se}))},i.prototype.destroyLayout=function(){var a=this.get("layoutController");a==null||a.destroyLayout()},i.prototype.layout=function(){var a,l=this.get("layoutController"),u=this.get("layout");if(!(!u||!l)){if(u.workerEnabled){l.layout();return}((a=l.layoutMethods)===null||a===void 0?void 0:a.length)?l.relayout(!0):l.layout()}},i.prototype.collapseCombo=function(a,l){var u=this;if(l===void 0&&(l=!0),!this.destroyed){if((0,Nn.isString)(a)&&(a=this.findById(a)),!a){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"collapse",item:a});var E=a.getModel(),P=this.get("itemController");P.collapseCombo(a,l),E.collapsed=!0;var j=this.getEdges().concat(this.get("vedges")),H=[],X=this.get("comboTrees"),ee=!1;(X||[]).forEach(function(Se){ee||rg(Se,function(Re){if(ee&&Re.depth<=E.depth)return!1;if(E.id===Re.id&&(ee=!0),ee){var Be=u.findById(Re.id);Be&&Be.getType&&Be.getType()==="combo"&&(H=H.concat(Be.getNodes()),H=H.concat(Be.getCombos()))}return!0})});var se={};j.forEach(function(Se){var Re=Se.getModel(),Be=Re.isVEdge,Ye=Re.size,ht=Ye===void 0?1:Ye;if(!(Se.isVisible()&&!Be)){var Tt=Se.getSource(),Dt=Se.getTarget(),Kt=null,gn;if(Tt.getModel().id===E.id||H.includes(Tt)&&!H.includes(Dt)?(Kt=Dt,gn=!1):(Dt.getModel().id===E.id||!H.includes(Tt)&&H.includes(Dt))&&(Kt=Tt,gn=!0),Kt){if(Be){u.removeItem(Se,!1);return}for(var bn=Kt.getModel();!Kt.isVisible();){var mn=bn.parentId,kn=bn.comboId,sr=mn||kn;if(Kt=u.findById(sr),!Kt||!sr)return;bn=Kt.getModel()}var yr=bn.id,jr=gn?{source:yr,target:E.id,size:ht,isVEdge:!0}:{source:E.id,target:yr,size:ht,isVEdge:!0},zr="".concat(jr.source,"-").concat(jr.target);if(se[zr]){se[zr].size+=ht;return}se[zr]=jr}}}),this.addItems(Object.values(se).map(function(Se){return{type:"vedge",model:Se}}),!1),this.emit("aftercollapseexpandcombo",{action:"collapse",item:a})}},i.prototype.expandCombo=function(a,l){var u=this;if(l===void 0&&(l=!0),(0,Nn.isString)(a)&&(a=this.findById(a)),!a||a.getType&&a.getType()!=="combo"){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"expand",item:a});var E=a.getModel(),P=this.get("itemController");P.expandCombo(a,l),E.collapsed=!1;var j=this.getEdges().concat(this.get("vedges")),H=[],X=this.get("comboTrees"),ee=!1;(X||[]).forEach(function(Se){ee||rg(Se,function(Re){if(ee&&Re.depth<=E.depth)return!1;if(E.id===Re.id&&(ee=!0),ee){var Be=u.findById(Re.id);Be&&Be.getType&&Be.getType()==="combo"&&(H=H.concat(Be.getNodes()),H=H.concat(Be.getCombos()))}return!0})});var se={};j.forEach(function(Se){if(!(Se.isVisible()&&!Se.getModel().isVEdge)){var Re=Se.getSource(),Be=Se.getTarget(),Ye=Re.get("id"),ht=Be.get("id"),Tt=null,Dt;if(Ye===E.id||H.includes(Re)&&!H.includes(Be)?(Tt=Be,Dt=!1):ht===E.id||!H.includes(Re)&&H.includes(Be)?(Tt=Re,Dt=!0):H.includes(Re)&&H.includes(Be)&&Re.isVisible()&&Be.isVisible()&&Se.show(),Tt){var Kt=Se.getModel(),gn=Kt.isVEdge,bn=Kt.size,mn=bn===void 0?1:bn;if(gn){u.removeItem(Se,!1);return}for(var kn=Tt.getModel();!Tt.isVisible();){var sr=kn.parentId,yr=kn.comboId,jr=sr||yr;if(Tt=u.findById(jr),!Tt||!jr)return;kn=Tt.getModel()}for(var zr=kn.id,va=Dt?Be:Re,za=va.getModel();!va.isVisible();){var xi=za.parentId,Di=za.comboId,Si=xi||Di;if(va=u.findById(Si),!va||!Si)return;if(za.comboId===E.id||za.parentId===E.id)break;za=va.getModel()}var jo=za.id;if(zr){var ro=Dt?{source:zr,target:jo,isVEdge:!0,size:mn}:{source:jo,target:zr,isVEdge:!0,size:mn},hi="".concat(ro.source,"-").concat(ro.target);if(se[hi]){se[hi].size+=mn;return}se[hi]=ro}}}}),this.addItems(Object.values(se).map(function(Se){return{type:"vedge",model:Se}}),!1),this.emit("aftercollapseexpandcombo",{action:"expand",item:a})},i.prototype.collapseExpandCombo=function(a,l){if(l===void 0&&(l=!0),(0,Nn.isString)(a)&&(a=this.findById(a)),!(!a||a.getType&&a.getType()!=="combo")){for(var u=a.getModel(),E=this.findById(u.parentId);E;){var P=E.getModel();if(P.collapsed){console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),E=void 0;return}E=this.findById(P.parentId)}var j=u.collapsed;j?this.expandCombo(a,l):this.collapseCombo(a,l),this.updateCombo(a)}},i.prototype.getNeighbors=function(a,l){var u=a;return(0,Nn.isString)(a)&&(u=this.findById(a)),u.getNeighbors(l)},i.prototype.getNodeDegree=function(a,l,u){l===void 0&&(l=void 0),u===void 0&&(u=!1);var E=a;(0,Nn.isString)(a)&&(E=this.findById(a));var P=this.get("degrees");(!P||u)&&(P=aS(this.save()),this.set("degrees",P));var j=P[E.getID()],H=0;if(!j)return 0;switch(l){case"in":H=j.inDegree;break;case"out":H=j.outDegree;break;case"all":H=j;break;default:H=j.degree;break}return H},i.prototype.getUndoStack=function(){return this.undoStack},i.prototype.getRedoStack=function(){return this.redoStack},i.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null},i.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear(),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack}))},i.prototype.pushStack=function(a,l,u){if(a===void 0&&(a="update"),u===void 0&&(u="undo"),!this.get("enabledStack")){console.warn("\u8BF7\u5148\u542F\u7528 undo & redo \u529F\u80FD\uFF0C\u5728\u5B9E\u4F8B\u5316 Graph \u65F6\u5019\u914D\u7F6E enabledStack: true !");return}var E=l?(0,Nn.clone)(l):{before:{},after:(0,Nn.clone)(this.save())};u==="redo"?this.redoStack.push({action:a,data:E}):this.undoStack.push({action:a,data:E}),this.emit("stackchange",{action:a,stackType:u,undoStack:this.undoStack,redoStack:this.redoStack})},i.prototype.getAdjMatrix=function(a,l){a===void 0&&(a=!0),l===void 0&&(l=this.get("directed"));var u=this.get("adjMatrix");return(!u||!a)&&(u=ob(this.save(),l),this.set("adjMatrix",u)),u},i.prototype.getShortestPathMatrix=function(a,l){a===void 0&&(a=!0),l===void 0&&(l=this.get("directed"));var u=this.get("adjMatrix"),E=this.get("shortestPathMatrix");return(!u||!a)&&(u=ob(this.save(),l),this.set("adjMatrix",u)),(!E||!a)&&(E=sb(this.save(),l),this.set("shortestPathMatrix",E)),E},i.prototype.on=function(a,l,u){return C.prototype.on.call(this,a,l,u)},i.prototype.destroy=function(){var a,l,u,E,P;this.emit("beforedestroy"),this.clear(),this.clearStack(),(a=this.get("itemController"))===null||a===void 0||a.destroy(),(l=this.get("modeController"))===null||l===void 0||l.destroy(),(u=this.get("viewController"))===null||u===void 0||u.destroy(),(E=this.get("stateController"))===null||E===void 0||E.destroy(),(P=this.get("canvas"))===null||P===void 0||P.destroy(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null,this.emit("afterdestroy")},i.prototype.createHull=function(a){if(!a.members||a.members.length<1){console.warn("Create hull failed! The members is empty.");return}var l=this.get("hullGroup"),u=this.get("hullMap");if(u||(u={},this.set("hullMap",u)),(!l||l.get("destroyed"))&&(l=this.get("group").addGroup({id:"hullGroup"}),l.toBack(),this.set("hullGroup",l)),u[a.id])return console.warn("Existed hull id."),u[a.id];var E=l.addGroup({id:"".concat(a.id,"-container")}),P=new uD(this,bl(bl({},a),{group:E})),j=P.id;return u[j]=P,P},i.prototype.getHulls=function(){return this.get("hullMap")},i.prototype.getHullById=function(a){return this.get("hullMap")[a]},i.prototype.removeHull=function(a){var l,u;(0,Nn.isString)(a)?u=this.getHullById(a):u=a,(l=this.get("hullMap"))===null||l===void 0||delete l[u.id],u.destroy()},i.prototype.removeHulls=function(){var a=this.getHulls();!a||!Object.keys(a).length||(Object.keys(a).forEach(function(l){var u=a[l];u.destroy()}),this.set("hullMap",{}))},i}(gy),SL=e9;function fD(C){return fD=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},fD(C)}var Mb=U_,CL="-shape",dD="-label",US=["startArrow","endArrow"],XA={lineWidth:1,stroke:void 0,fill:void 0,lineAppendWidth:1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,x:0,y:0,r:10,width:20,height:20,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},ZS={lineWidth:1,stroke:"#000",lineDash:void 0,startArrow:!1,endArrow:!1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},cw={edge:ZS,node:XA,combo:XA},JA="-label-bg",pD={options:{labelCfg:{style:{fontFamily:Yu.windowFontFamily}},descriptionCfg:{style:{fontFamily:Yu.windowFontFamily}}},itemType:"",type:"",getCustomConfig:function(i){return{}},getOptions:function(i,a){return a==="move"||(a==null?void 0:a.includes("bbox"))?i:(0,Nn.deepMix)({},this.options,this.getCustomConfig(i)||{},i)},draw:function(i,a){a.shapeMap={},this.mergeStyle=this.getOptions(i);var l=this.drawShape(i,a);if(l.set("className",this.itemType+CL),a.shapeMap[this.itemType+CL]=l,i.label){var u=this.drawLabel(i,a);u.set("className",this.itemType+dD),a.shapeMap[this.itemType+dD]=u}return l},afterDraw:function(i,a,l){},drawShape:function(i,a){return null},drawLabel:function(i,a){var l=(this.mergeStyle||this.getOptions(i)||{}).labelCfg,u=l||{},E=this.getLabelStyle(i,u,a),P=E.rotate;delete E.rotate;var j=a.addShape("text",{attrs:E,draggable:!0,className:"text-shape",name:"text-shape",labelRelated:!0});if(a.shapeMap["text-shape"]=j,!isNaN(P)&&P!==""){var H=j.getBBox(),X=[1,0,0,0,1,0,0,0,1];if(E.rotateCenter)switch(E.rotateCenter){case"center":X=Mb(X,[["t",-H.width/2,-H.height/2],["r",P],["t",H.width/2,H.height/2]]);break;case"lefttop":X=Mb(X,[["t",-E.x,-E.y],["r",P],["t",E.x,E.y]]);break;case"leftcenter":X=Mb(X,[["t",-E.x,-E.y-H.height/2],["r",P],["t",E.x,E.y+H.height/2]]);break;default:X=Mb(X,[["t",-H.width/2,-H.height/2],["r",P],["t",H.width/2,H.height/2]]);break}else X=Mb(X,[["t",-E.x,-E.y-H.height/2],["r",P],["t",E.x,E.y+H.height/2]]);j.setMatrix(X)}if(E.background){var ee=this.drawLabelBg(i,a,j),se=this.itemType+JA;ee.set("classname",se),a.shapeMap[se]=ee,j.toFront()}return j},drawLabelBg:function(i,a,l){var u=this.options.labelCfg,E=(0,Nn.mix)({},u,i.labelCfg),P=this.getLabelBgStyleByPosition(l,E),j=a.addShape("rect",{name:"text-bg-shape",attrs:P,labelRelated:!0});return a.shapeMap["text-bg-shape"]=j,j},getLabelStyleByPosition:function(i,a,l){return{text:i.label}},getLabelBgStyleByPosition:function(i,a){return{}},getLabelStyle:function(i,a,l){var u=this.getLabelStyleByPosition(i,a,l),E="".concat(this.itemType,"Label"),P=Yu[E]?Yu[E].style:null;return bl(bl(bl({},P),u),a.style)},getShapeStyle:function(i){return i.style},update:function(i,a,l){this.updateShapeStyle(i,a,l),this.updateLabel(i,a,l)},updateShapeStyle:function(i,a,l){var u,E=a.getContainer(),P=a.getKeyShape(),j=(0,Nn.mix)({},P.attr(),i.style),H=function(se){var Se,Re=j[se];if((0,Nn.isPlainObject)(Re)){var Be=((u=E.shapeMap)===null||u===void 0?void 0:u[se])||E.find(function(Ye){return Ye.get("name")===se});Be==null||Be.attr(Re)}else P.attr((Se={},Se[se]=Re,Se))};for(var X in j)H(X)},updateLabel:function(i,a,l){var u,E,P=a.getContainer(),j=(this.mergeStyle||this.getOptions({},l)||{}).labelCfg,H=j===void 0?{}:j,X=this.itemType+dD,ee=P.shapeMap[X]||P.find(function(gn){return gn.get("className")===X}),se=this.itemType+JA,Se=P.shapeMap[se]||P.find(function(gn){return gn.get("className")===se});if(ee&&i.label===void 0&&(P.removeChild(ee),delete P.shapeMap[X],Se&&(P.removeChild(Se),delete P.shapeMap[se])),i.label||i.label==="")if(ee){(!l||l==="bbox|label"||this.itemType==="edge"&&l!=="style")&&(H=(0,Nn.deepMix)(H,i.labelCfg));var Be=this.getLabelStyleByPosition(i,H,P),Ye=(u=i.labelCfg)===null||u===void 0?void 0:u.style,ht=bl(bl({},Be),Ye),Tt=ht.rotate;if(delete ht.rotate,!isNaN(Tt)&&Tt!==""){var Dt=[1,0,0,0,1,0,0,0,1];Dt=Mb(Dt,[["t",-ht.x,-ht.y],["r",Tt],["t",ht.x,ht.y]]),ht.matrix=Dt,ee.attr(ht)}else((E=ee.getMatrix())===null||E===void 0?void 0:E[4])!==1&&ee.resetMatrix(),ee.attr(ht);if(!Se)ht.background&&(Se=this.drawLabelBg(i,P,ee),Se.set("classname",se),P.shapeMap[se]=Se,ee.toFront());else if(ht.background){var Kt=this.getLabelBgStyleByPosition(ee,H);Se.attr(Kt)}else P.removeChild(Se)}else{var Re=this.drawLabel(i,P);Re.set("className",X),P.shapeMap[X]=Re}},afterUpdate:function(i,a){},setState:function(i,a,l){var u,E,P,j=l.get("keyShape");if(!(!j||j.destroyed)){var H=l.getType(),X=(0,Nn.isBoolean)(a)?i:"".concat(i,":").concat(a),ee=this.getStateStyle(X,l),se=l.getStateStyle(X);if(!(!se&&!ee)){var Se=(0,Nn.mix)({},se||ee),Re=l.getContainer(),Be={x:1,y:1,cx:1,cy:1,matrix:1};if(H==="combo"&&(Be.r=1,Be.width=1,Be.height=1),a){var Ye=function(Si){var jo,ro=Se[Si];if((0,Nn.isPlainObject)(ro)&&!US.includes(Si)){var hi=((P=Re.shapeMap)===null||P===void 0?void 0:P[Si])||Re.find(function(io){return io.get("name")===Si});hi==null||hi.attr(ro)}else j.attr((jo={},jo[Si]=ro,jo))};for(var ht in Se)Ye(ht)}else{var Tt=F2(l.getCurrentStatesStyle()),Dt=l.getModel(),Kt=(0,Nn.mix)({},Dt.style,F2(l.getOriginStyle())),gn=j.get("name"),bn=j.attr(),mn={};Object.keys(bn).forEach(function(Di){if(Di!=="img"){var Si=bn[Di];Si&&fD(Si)==="object"?mn[Di]=(0,Nn.clone)(Si):mn[Di]=Si}});var kn={},sr=function(Si){var jo=Se[Si];if((0,Nn.isPlainObject)(jo)&&!US.includes(Si)){var ro=Re.shapeMap[Si]||Re.find(function(oo){return oo.get("name")===Si});if(ro){var hi=F2(ro.attr());(0,Nn.each)(jo,function(oo,Ki){if(Si===gn&&mn[Ki]&&!Be[Ki]){delete mn[Ki];var Ji=Kt[Si][Ki]||cw[H][Ki];j.attr(Ki,Ji)}else if(hi[Ki]||hi[Ki]===0){delete hi[Ki];var Ao=Kt[Si][Ki]||cw[H][Ki];ro.attr(Ki,Ao)}}),kn[Si]=hi}}else if(mn[Si]&&!Be[Si]){delete mn[Si];var io=Kt[Si]||(Kt[gn]?Kt[gn][Si]:void 0)||cw[H][Si];j.attr(Si,io)}};for(var yr in Se)sr(yr);gn?kn[gn]=mn:(0,Nn.mix)(kn,mn);for(var ht in Tt)if(!Be[ht]){var jr=Tt[ht];(!(0,Nn.isPlainObject)(jr)||US.includes(ht))&&(gn?((0,Nn.mix)(Kt[gn],(E={},E[ht]=jr,E)),delete Kt[ht]):(0,Nn.mix)(Kt,(u={},u[ht]=jr,u)),delete Tt[ht])}var zr={};(0,Nn.deepMix)(zr,Kt,kn,Tt);var va=!1,za=function(Si){var jo,ro,hi=zr[Si];if((0,Nn.isPlainObject)(hi)&&!US.includes(Si)){var io=Re.shapeMap[Si]||Re.find(function(Ki){return Ki.get("name")===Si});io&&((io.get("type")==="text"||io.get("labelRelated"))&&(delete hi.x,delete hi.y,delete hi.matrix),Si===gn&&(H==="combo"&&(delete hi.r,delete hi.width,delete hi.height),va=!0),io.attr(hi))}else if(!va){var oo=hi||cw[H][Si];H==="combo"?gn||j.attr((jo={},jo[Si]=oo,jo)):j.attr((ro={},ro[Si]=oo,ro))}};for(var xi in zr)za(xi)}}}},getStateStyle:function(i,a){var l=a.getModel(),u=a.getType(),E=this.getOptions(l),P=E.stateStyles,j=E.style,H=j===void 0?{}:j,X=l.stateStyles?l.stateStyles[i]:P&&P[i];return u==="combo"?(0,Nn.clone)(X):(0,Nn.mix)({},H,X)},getControlPoints:function(i){return i.controlPoints},getAnchorPoints:function(i){var a,l,u=(i==null?void 0:i.anchorPoints)||((a=this.getCustomConfig(i))===null||a===void 0?void 0:a.anchorPoints)||((l=this.options)===null||l===void 0?void 0:l.anchorPoints);return u}},t9={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:Yu.nodeLabel.offset,getSize:function(i){var a,l=((a=this.mergeStyle)===null||a===void 0?void 0:a.size)||i.size||this.getOptions({}).size||Yu.defaultNode.size;return(0,Nn.isArray)(l)&&l.length===1&&(l=[l[0],l[0]]),(0,Nn.isArray)(l)||(l=[l,l]),l},getLabelStyleByPosition:function(i,a){var l=a.maxLength,u=i.label;l&&(u=bS(u,l));var E=a.position||this.labelPosition;if(E==="center")return{x:0,y:0,text:u,textBaseline:"middle",textAlign:"center"};var P=a.offset;(0,Nn.isNil)(P)&&(P=this.offset);var j=this.getSize(i),H;switch(E){case"top":H={x:0,y:-j[1]/2-P,textBaseline:"bottom",textAlign:"center"};break;case"bottom":H={x:0,y:j[1]/2+P,textBaseline:"top",textAlign:"center"};break;case"left":H={x:-j[0]/2-P,y:0,textBaseline:"middle",textAlign:"right"};break;default:H={x:j[0]/2+P,y:0,textBaseline:"middle",textAlign:"left"};break}return H.text=u,H},getLabelBgStyleByPosition:function(i,a){var l;if(!i)return{};var u=(l=a.style)===null||l===void 0?void 0:l.background;if(!u)return{};var E=i.getBBox(),P=$I(u.padding),j=E.width+P[1]+P[3],H=E.height+P[0]+P[2];return bl(bl({x:E.minX-P[3],y:E.minY-P[0]},u),{width:j,height:H})},drawShape:function(i,a){var l=this.shapeType,u=this.getShapeStyle(i),E=a.addShape(l,{attrs:u,draggable:!0,name:"node-shape"});return a.shapeMap["node-shape"]=E,E},updateLinkPoints:function(i,a){var l=(this.mergeStyle||this.getOptions(i)).linkPoints,u=a.shapeMap["link-point-left"]||a.find(function(zr){return zr.get("className")==="link-point-left"}),E=a.shapeMap["link-point-right"]||a.find(function(zr){return zr.get("className")==="link-point-right"}),P=a.shapeMap["link-point-top"]||a.find(function(zr){return zr.get("className")==="link-point-top"}),j=a.shapeMap["link-point-bottom"]||a.find(function(zr){return zr.get("className")==="link-point-bottom"}),H;u&&(H=u.attr()),E&&!H&&(H=E.attr()),P&&!H&&(H=P.attr()),j&&!H&&(H=j.attr()),H||(H=l);var X=(0,Nn.mix)({},H,i.linkPoints),ee=X.fill,se=X.stroke,Se=X.lineWidth,Re=X.size/2;Re||(Re=X.r);var Be=i.linkPoints?i.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},Ye=Be.left,ht=Be.right,Tt=Be.top,Dt=Be.bottom,Kt=this.getSize(i),gn=Kt[0],bn=Kt[1],mn={r:Re,fill:ee,stroke:se,lineWidth:Se};if(u)!Ye&&Ye!==void 0?(u.remove(),delete a.shapeMap["link-point-left"]):u.attr(bl(bl({},mn),{x:-gn/2,y:0}));else if(Ye){var kn="link-point-left";a.shapeMap[kn]=a.addShape("circle",{attrs:bl(bl({},mn),{x:-gn/2,y:0}),className:kn,name:kn,isAnchorPoint:!0})}if(E)!ht&&ht!==void 0&&(E.remove(),delete a.shapeMap["link-point-right"]),E.attr(bl(bl({},mn),{x:gn/2,y:0}));else if(ht){var sr="link-point-right";a.shapeMap[sr]=a.addShape("circle",{attrs:bl(bl({},mn),{x:gn/2,y:0}),className:sr,name:sr,isAnchorPoint:!0})}if(P)!Tt&&Tt!==void 0&&(P.remove(),delete a.shapeMap["link-point-top"]),P.attr(bl(bl({},mn),{x:0,y:-bn/2}));else if(Tt){var yr="link-point-top";a.shapeMap[yr]=a.addShape("circle",{attrs:bl(bl({},mn),{x:0,y:-bn/2}),className:yr,name:yr,isAnchorPoint:!0})}if(j)!Dt&&Dt!==void 0?(j.remove(),delete a.shapeMap["link-point-bottom"]):j.attr(bl(bl({},mn),{x:0,y:bn/2}));else if(Dt){var jr="link-point-bottom";a.shapeMap[jr]=a.addShape("circle",{attrs:bl(bl({},mn),{x:0,y:bn/2}),className:jr,name:jr,isAnchorPoint:!0})}},updateShape:function(i,a,l,u,E){var P=a.get("keyShape");P.attr(bl({},l)),this.updateLabel(i,a,E),u&&this.updateIcon(i,a)},updateIcon:function(i,a){var l=this,u=a.getContainer(),E=(this.mergeStyle||this.getOptions(i)).icon,P=i.icon?i.icon:{show:void 0,text:void 0},j=P.show,H=P.text,X=u.shapeMap["".concat(this.type,"-icon")]||u.find(function(Tt){return Tt.get("name")==="".concat(l.type,"-icon")});if(X)if(j||j===void 0){var ee=(0,Nn.mix)({},X.attr(),E),se=ee.width,Se=se===void 0?20:se,Re=ee.height,Be=Re===void 0?20:Re;(ee.fontFamily==="iconfont"||ee.hasOwnProperty("text"))&&(Se=0,Be=0),X.attr(bl(bl({},ee),{x:-Se/2,y:-Be/2}))}else X.remove(),delete u.shapeMap["".concat(this.type,"-icon")];else if(j){var Ye="".concat(this.type,"-icon");if(H)u.shapeMap[Ye]=u.addShape("text",{attrs:bl({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},E),className:Ye,name:Ye});else{var Se=E.width,Be=E.height;u.shapeMap[Ye]=u.addShape("image",{attrs:bl(bl({},E),{x:-Se/2,y:-Be/2}),className:Ye,name:Ye})}var ht=u.shapeMap["node-label"]||u.find(function(Tt){return Tt.get("name")==="node-label"});ht&&ht.toFront()}}},wL=bl(bl({},pD),t9);Sm.registerNode("single-node",wL);var QA="edge-shape";function n9(C){var i=C;return C==="start"?i="end":C==="end"&&(i="start"),i}var TL={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:Yu.defaultEdge.size,style:{x:0,y:0,stroke:Yu.defaultEdge.style.stroke,lineAppendWidth:Yu.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:Yu.edgeLabel.style.fill,fontSize:Yu.edgeLabel.style.fontSize,fontFamily:Yu.windowFontFamily}},stateStyles:bl({},Yu.edgeStateStyles)},getPath:function(i){var a=[];return(0,Nn.each)(i,function(l,u){u===0?a.push(["M",l.x,l.y]):a.push(["L",l.x,l.y])}),a},getShapeStyle:function(i){var a=this.options.style,l={stroke:i.color},u=(0,Nn.mix)({},a,l,i.style),E=i.size||Yu.defaultEdge.size;i=this.getPathPoints(i);var P=i.startPoint,j=i.endPoint,H=this.getControlPoints(i),X=[P];H&&(X=X.concat(H)),X.push(j);var ee=this.getPath(X),se=(0,Nn.mix)({},Yu.defaultEdge.style,{stroke:Yu.defaultEdge.color,lineWidth:E,path:ee},u);return se},updateShapeStyle:function(i,a,l){var u,E=a.getContainer(),P=((u=a.getKeyShape)===null||u===void 0?void 0:u.call(a))||E.shapeMap["edge-shape"],j=i.size;i=this.getPathPoints(i);var H=i.startPoint,X=i.endPoint,ee=this.getControlPoints(i),se=[H];ee&&(se=se.concat(ee)),se.push(X);var Se=P.attr(),Re=i.style||{};Re.stroke===void 0&&(Re.stroke=i.color);var Be=i.sourceNode,Ye=i.targetNode,ht={radius:Re.radius};ee||(ht={source:Be,target:Ye,offset:Re.offset,radius:Re.radius});var Tt=this.getPath(se,ht),Dt={};l==="move"?Dt={path:Tt}:(Se.endArrow&&Re.endArrow===!1&&(i.style.endArrow={path:""}),Se.startArrow&&Re.startArrow===!1&&(i.style.startArrow={path:""}),Dt=bl({},i.style),Dt.lineWidth===void 0&&(Dt.lineWdith=((0,Nn.isNumber)(j)?j:j==null?void 0:j[0])||Se.lineWidth),Dt.path===void 0&&(Dt.path=Tt),Dt.stroke===void 0&&(Dt.stroke=Se.stroke||i.color)),P&&P.attr(Dt)},getLabelStyleByPosition:function(i,a,l){var u=a.position||this.labelPosition,E={},P=l==null?void 0:l.shapeMap[QA],j;u==="start"?j=0:u==="end"?j=1:j=.5;var H=a.refX||this.refX,X=a.refY||this.refY;if(i.startPoint.x===i.endPoint.x&&i.startPoint.y===i.endPoint.y)return E.x=i.startPoint.x+H,E.y=i.startPoint.y+X,E.text=i.label,E;var ee;(0,Nn.isNil)(a.autoRotate)?ee=this.labelAutoRotate:ee=a.autoRotate;var se=I2(P,j,H,X,ee);return E.x=se.x,E.y=se.y,E.rotate=se.rotate,E.textAlign=this._getTextAlign(u,se.angle),E.text=i.label,E},getLabelBgStyleByPosition:function(i,a){if(!i)return{};var l=i.getBBox(),u=a.style&&a.style.background;if(!u)return{};var E=u.padding,P=l.width+E[1]+E[3],j=l.height+E[0]+E[2],H=bl(bl({},u),{width:P,height:j,x:l.minX-E[3],y:l.minY-E[0],matrix:[1,0,0,0,1,0,0,0,1]}),X;return(0,Nn.isNil)(a.autoRotate)?X=this.labelAutoRotate:X=a.autoRotate,X&&(H.matrix=i.attr("matrix")||[1,0,0,0,1,0,0,0,1]),H},_getTextAlign:function(i,a){var l="center";return a?(a=a%(Math.PI*2),i!=="center"&&(a>=0&&a<=Math.PI/2||a>=3/2*Math.PI&&a<2*Math.PI?l=i:l=n9(i)),l):i},getControlPoints:function(i){return i.controlPoints},getPathPoints:function(i){return i},drawShape:function(i,a){var l=this.getShapeStyle(i),u=a.addShape("path",{className:QA,name:QA,attrs:l});return a.shapeMap[QA]=u,u},drawLabel:function(i,a){var l=this.options.labelCfg,u=(0,Nn.deepMix)({},l,i.labelCfg),E=this.getLabelStyle(i,u,a),P=E.rotate;delete E.rotate;var j=a.addShape("text",{attrs:E,name:"text-shape",labelRelated:!0,draggable:!0});if(a.shapeMap["text-shape"]=j,!isNaN(P)&&P!==""&&j.rotateAtStart(P),E.background){var H=this.drawLabelBg(i,a,j,E,P),X=this.itemType+JA;H.set("classname",X),a.shapeMap[X]=H,j.toFront()}return j},drawLabelBg:function(i,a,l,u,E){var P=this.options.labelCfg,j=(0,Nn.deepMix)({},P,i.labelCfg),H=this.getLabelBgStyleByPosition(l,j),X=a.addShape("rect",{name:"text-bg-shape",attrs:H,labelRelated:!0});return a.shapeMap["text-bg-shape"]=X,X}},AL=bl(bl({},pD),TL);Sm.registerEdge("single-edge",AL),Sm.registerEdge("line",{getControlPoints:function(){}},"single-edge"),Sm.registerEdge("spline",{getPath:function(i){var a=hL(i);return a}},"single-edge"),Sm.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(i){var a=i.startPoint,l=i.endPoint,u={x:(a.x+l.x)/2,y:(a.y+l.y)/2},E,P;if(i.controlPoints!==void 0){if(P=i.controlPoints[0],E=pA(a,P,l),a.x<=l.x&&a.y>l.y?this.clockwise=E.x>P.x?0:1:a.x<=l.x&&a.y<l.y?this.clockwise=E.x>P.x?1:0:a.x>l.x&&a.y<=l.y?this.clockwise=E.y<P.y?0:1:this.clockwise=E.y<P.y?1:0,(P.x-a.x)/(P.y-a.y)==(l.x-a.x)/(l.y-a.y))return[]}else{i.curveOffset===void 0&&(i.curveOffset=this.curveOffset),(0,Nn.isArray)(i.curveOffset)&&(i.curveOffset=i.curveOffset[0]),i.curveOffset<0?this.clockwise=0:this.clockwise=1;var j={x:l.x-a.x,y:l.y-a.y},H=Math.atan2(j.y,j.x);P={x:i.curveOffset*Math.cos(-Math.PI/2+H)+u.x,y:i.curveOffset*Math.sin(-Math.PI/2+H)+u.y},E=pA(a,P,l)}var X=dS(a,E),ee=[{x:X,y:X}];return ee},getPath:function(i){var a=[];return a.push(["M",i[0].x,i[0].y]),i.length===2?a.push(["L",i[1].x,i[1].y]):a.push(["A",i[1].x,i[1].y,0,0,this.clockwise,i[2].x,i[2].y]),a}},"single-edge"),Sm.registerEdge("quadratic",{curvePosition:.5,curveOffset:-20,getControlPoints:function(i){var a=i.controlPoints;if(!a||!a.length){var l=i.startPoint,u=i.endPoint;i.curveOffset===void 0&&(i.curveOffset=this.curveOffset),i.curvePosition===void 0&&(i.curvePosition=this.curvePosition),(0,Nn.isArray)(i.curveOffset)&&(i.curveOffset=i.curveOffset[0]),(0,Nn.isArray)(i.curvePosition)&&(i.curvePosition=i.curveOffset[0]);var E=YA(l,u,i.curvePosition,i.curveOffset);a=[E]}return a},getPath:function(i){var a=[];return a.push(["M",i[0].x,i[0].y]),a.push(["Q",i[1].x,i[1].y,i[2].x,i[2].y]),a}},"single-edge"),Sm.registerEdge("cubic",{curvePosition:[1/2,1/2],curveOffset:[-20,20],getControlPoints:function(i){var a=i.controlPoints;if(i.curveOffset===void 0&&(i.curveOffset=this.curveOffset),i.curvePosition===void 0&&(i.curvePosition=this.curvePosition),(0,Nn.isNumber)(i.curveOffset)&&(i.curveOffset=[i.curveOffset,-i.curveOffset]),(0,Nn.isNumber)(i.curvePosition)&&(i.curvePosition=[i.curvePosition,1-i.curvePosition]),!a||!a.length||a.length<2){var l=i.startPoint,u=i.endPoint,E=YA(l,u,i.curvePosition[0],i.curveOffset[0]),P=YA(l,u,i.curvePosition[1],i.curveOffset[1]);a=[E,P]}return a},getPath:function(i){var a=[];return a.push(["M",i[0].x,i[0].y]),a.push(["C",i[1].x,i[1].y,i[2].x,i[2].y,i[3].x,i[3].y]),a}},"single-edge"),Sm.registerEdge("cubic-vertical",{curvePosition:[1/2,1/2],minCurveOffset:[0,0],curveOffset:void 0,getControlPoints:function(i){var a=i.startPoint,l=i.endPoint;i.curvePosition===void 0&&(i.curvePosition=this.curvePosition),i.curveOffset===void 0&&(i.curveOffset=this.curveOffset),i.minCurveOffset===void 0&&(i.minCurveOffset=this.minCurveOffset),(0,Nn.isNumber)(i.curveOffset)&&(i.curveOffset=[i.curveOffset,-i.curveOffset]),(0,Nn.isNumber)(i.minCurveOffset)&&(i.minCurveOffset=[i.minCurveOffset,-i.minCurveOffset]),(0,Nn.isNumber)(i.curvePosition)&&(i.curvePosition=[i.curvePosition,1-i.curvePosition]);var u=l.y-a.y,E=[0,0];i.curveOffset?E=i.curveOffset:Math.abs(u)<Math.abs(i.minCurveOffset[0])&&(E=i.minCurveOffset);var P={x:a.x,y:a.y+u*this.curvePosition[0]+E[0]},j={x:l.x,y:l.y-u*this.curvePosition[1]+E[1]};return[P,j]}},"cubic"),Sm.registerEdge("cubic-horizontal",{curvePosition:[1/2,1/2],minCurveOffset:[0,0],curveOffset:void 0,getControlPoints:function(i){var a=i.startPoint,l=i.endPoint;i.curvePosition===void 0&&(i.curvePosition=this.curvePosition),i.curveOffset===void 0&&(i.curveOffset=this.curveOffset),i.minCurveOffset===void 0&&(i.minCurveOffset=this.minCurveOffset),(0,Nn.isNumber)(i.curveOffset)&&(i.curveOffset=[i.curveOffset,-i.curveOffset]),(0,Nn.isNumber)(i.minCurveOffset)&&(i.minCurveOffset=[i.minCurveOffset,-i.minCurveOffset]),(0,Nn.isNumber)(i.curvePosition)&&(i.curvePosition=[i.curvePosition,1-i.curvePosition]);var u=l.x-a.x,E=[0,0];i.curveOffset?E=i.curveOffset:Math.abs(u)<Math.abs(i.minCurveOffset[0])&&(E=i.minCurveOffset);var P={x:a.x+u*this.curvePosition[0]+E[0],y:a.y},j={x:l.x-u*this.curvePosition[1]+E[1],y:l.y},H=[P,j];return H}},"cubic"),Sm.registerEdge("loop",{getPathPoints:function(i){return O2(i)},getControlPoints:function(i){return i.controlPoints},afterDraw:function(i){i.controlPoints=void 0},afterUpdate:function(i){i.controlPoints=void 0}},"cubic");var r9={itemType:"combo",shapeType:"single-combo",labelPosition:"top",refX:Yu.comboLabel.refX,refY:Yu.comboLabel.refY,options:{style:{stroke:Yu.defaultCombo.style.stroke,fill:Yu.defaultCombo.style.fill,lineWidth:Yu.defaultCombo.style.lineWidth},labelCfg:{style:{fill:Yu.comboLabel.style.fill,fontSize:Yu.comboLabel.style.fontSize,fontFamily:Yu.windowFontFamily}},stateStyles:bl({},Yu.comboStateStyles),collapsedSubstituteIcon:{show:!1,img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*RsnHRqLfJn4AAAAAAAAAAAAAARQnAQ"}},getSize:function(i){var a=(0,Nn.clone)(i.size||this.options.size||Yu.defaultCombo.size);return(0,Nn.isArray)(a)&&a.length===1&&(a=[a[0],a[0]]),(0,Nn.isArray)(a)||(a=[a,a]),a},getLabelStyleByPosition:function(i,a){var l=a.position||this.labelPosition,u=i.style,E=i.padding||this.options.padding;(0,Nn.isArray)(E)&&(E=Math.max.apply(Math,E));var P=a.refX,j=a.refY;(0,Nn.isNil)(P)&&(P=this.refX),(0,Nn.isNil)(j)&&(j=this.refY);var H=this.getSize(i),X=Math.max(u.r,H[0]/2)||H[0]/2,ee=X+E,se;switch(l){case"top":se={x:0,y:-ee-j,textBaseline:"bottom",textAlign:"center"};break;case"bottom":se={x:0,y:ee+j,textBaseline:"bottom",textAlign:"center"};break;case"left":se={x:-ee+P,y:0,textAlign:"left"};break;case"center":se={x:0,y:0,text:i.label,textAlign:"center"};break;default:se={x:ee+P,y:0,textAlign:"right"};break}return se.text=i.label,se},drawShape:function(i,a){var l=this.shapeType,u=this.getShapeStyle(i),E=a.addShape(l,{attrs:u,draggable:!0,name:"combo-shape"});return E},updateCollapsedIcon:function(i,a,l){var u=i.collapsed,E=i.collapsedSubstituteIcon,P=E===void 0?{}:E,j=Object.assign({},this.options.collapsedSubstituteIcon,P),H=j.show,X=j.img,ee=j.width,se=j.height,Se=a.getContainer(),Re=Se.find(function(Tt){return Tt.get("name")==="combo-collapsed-substitute-icon"}),Be=Re&&!Re.destroyed,Ye=a.get("keyShape");if(u&&H){if(Be)Re.show();else{var ht={width:ee||l.r*2||l.width,height:se||l.r*2||l.height};Re=Se.addShape("image",{attrs:bl({img:X,x:-ht.width/2,y:-ht.height/2},ht),name:"combo-collapsed-substitute-icon",draggable:!0})}Ye.hide()}else Be&&(Re.hide(),Ye.show())},updateShape:function(i,a,l){var u=this,E=a.get("keyShape"),P=a.get("animate"),j=P&&(i.animate===void 0?this.options.animate:i.animate);j&&E.animate?(i.collapsed||this.updateCollapsedIcon(i,a,l),E.animate(l,{duration:200,easing:"easeLinear",callback:function(){i.collapsed&&u.updateCollapsedIcon(i,a,l)}})):(E.attr(bl({},l)),this.updateCollapsedIcon(i,a,l)),this.updateLabel(i,a)}},a9=bl(bl({},pD),r9);Sm.registerCombo("single-combo",a9),Sm.registerCombo("circle",{options:{size:[Yu.defaultCombo.size[0],Yu.defaultCombo.size[0]],padding:Math.max.apply(Math,Yu.defaultCombo.padding),animate:!0,style:{stroke:Yu.defaultCombo.style.stroke,fill:Yu.defaultCombo.style.fill,lineWidth:Yu.defaultCombo.style.lineWidth},labelCfg:{style:{fill:Yu.comboLabel.style.fill,fontSize:Yu.comboLabel.style.fontSize},refX:0,refY:0},stateStyles:bl({},Yu.comboStateStyles),collapsedSubstituteIcon:{show:!1,img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*RsnHRqLfJn4AAAAAAAAAAAAAARQnAQ"}},shapeType:"circle",labelPosition:"top",drawShape:function(i,a){var l=this.getShapeStyle(i);delete l.height,delete l.width;var u=a.addShape("circle",{attrs:l,className:"circle-combo",name:"circle-combo",draggable:!0});return u},getShapeStyle:function(i){var a=this.options.style,l=i.padding||this.options.padding;(0,Nn.isArray)(l)&&(l=Math.max.apply(Math,l));var u={stroke:i.color},E=(0,Nn.mix)({},a,u,i.style),P=i.collapsed&&i.fixCollapseSize?i.fixCollapseSize:i.fixSize,j;if(P)j=(0,Nn.isNumber)(P)?P/2:P[0]/2;else{var H=this.getSize(i);!(0,Nn.isNumber)(E.r)||isNaN(E.r)?j=H[0]/2||Yu.defaultCombo.style.r:j=Math.max(E.r,H[0]/2)||H[0]/2}E.r=j+l;var X=bl({x:0,y:0},E);return i.style?i.style.r=j:i.style={r:j},X},update:function(i,a){var l=this.getSize(i),u=i.padding||this.options.padding;(0,Nn.isArray)(u)&&(u=Math.max.apply(Math,u));var E=(0,Nn.clone)(i.style),P=i.collapsed&&i.fixCollapseSize?i.fixCollapseSize:i.fixSize,j;P?j=(0,Nn.isNumber)(P)?P/2:P[0]/2:j=Math.max(E.r,l[0]/2)||l[0]/2,E.r=j+u;var H=a.get("sizeCache");H&&(H.r=E.r);var X={stroke:i.color},ee=a.get("keyShape"),se=(0,Nn.mix)({},ee.attr(),X,E);i.style?i.style.r=j:i.style={r:j},this.updateShape(i,a,se,!0)}},"single-combo"),Sm.registerCombo("rect",{options:{size:[40,5],padding:[25,20,15,20],animate:!0,style:{radius:0,stroke:Yu.defaultCombo.style.stroke,fill:Yu.defaultCombo.style.fill,lineWidth:Yu.defaultCombo.style.lineWidth},labelCfg:{style:{fill:Yu.comboLabel.style.fill,fontSize:Yu.comboLabel.style.fontSize,fontFamily:Yu.windowFontFamily}},anchorPoints:[[0,.5],[1,.5]],stateStyles:bl({},Yu.comboStateStyles),collapsedSubstituteIcon:{show:!1,img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*RsnHRqLfJn4AAAAAAAAAAAAAARQnAQ"}},shapeType:"rect",labelPosition:"top",drawShape:function(i,a){var l=this.getShapeStyle(i),u=a.addShape("rect",{attrs:l,className:"rect-combo",name:"rect-combo",draggable:!0});return u},getLabelStyleByPosition:function(i,a){var l=a.position||this.labelPosition,u=i.style,E=i.padding||this.options.padding;(0,Nn.isNumber)(E)&&(E=[E,E,E,E]);var P=a.refX,j=a.refY;(0,Nn.isNil)(P)&&(P=this.refX),(0,Nn.isNil)(j)&&(j=this.refY);var H=-u.width/2-E[3],X=u.width/2+E[1],ee=-u.height/2-E[0],se=u.height/2+E[2],Se;switch(l){case"top":Se={x:H+P,y:ee+j,textBaseline:"top",textAlign:"left"};break;case"bottom":Se={x:0,y:se+j,textBaseline:"top",textAlign:"center"};break;case"left":Se={x:H+j,y:0,textAlign:"left"};break;case"center":Se={x:0,y:0,text:i.label,textAlign:"center"};break;case"top-center":Se={x:0,y:ee+j,textBaseline:"top",textAlign:"center"};break;default:Se={x:X+P,y:0,textAlign:"right"};break}return Se.text=i.label,Se},getShapeStyle:function(i){var a=this.options.style,l=i.padding||this.options.padding;(0,Nn.isNumber)(l)&&(l=[l,l,l,l]);var u={stroke:i.color},E=(0,Nn.mix)({},a,u,i.style),P=this.getSize(i),j,H,X=i.collapsed&&i.fixCollapseSize?i.fixCollapseSize:i.fixSize;X?(0,Nn.isNumber)(X)?(j=X,H=X):(j=X[0],H=X[1]):(!(0,Nn.isNumber)(E.width)||isNaN(E.width)?j=P[0]||Yu.defaultCombo.style.width:j=Math.max(E.width,P[0])||P[0],!(0,Nn.isNumber)(E.height)||isNaN(E.height)?H=P[1]||Yu.defaultCombo.style.height:H=Math.max(E.height,P[1])||P[1]);var ee=-j/2-l[3],se=-H/2-l[0];E.width=j+l[1]+l[3],E.height=H+l[0]+l[2];var Se=bl({x:ee,y:se},E);return i.style?(i.style.width=j,i.style.height=H):i.style={width:j,height:H},Se},update:function(i,a){var l=this.getSize(i),u=i.padding||this.options.padding;(0,Nn.isNumber)(u)&&(u=[u,u,u,u]);var E=(0,Nn.clone)(i.style),P,j,H=i.collapsed&&i.fixCollapseSize?i.fixCollapseSize:i.fixSize;H?(0,Nn.isNumber)(H)?(P=H,j=H):(P=H[0],j=H[1]):(P=Math.max(E.width,l[0])||l[0],j=Math.max(E.height,l[1])||l[1]),E.width=P+u[1]+u[3],E.height=j+u[0]+u[2];var X=a.get("sizeCache");X&&(X.width=E.width,X.height=E.height),E.x=-P/2-u[3],E.y=-j/2-u[0];var ee={stroke:i.color},se=a.get("keyShape"),Se=(0,Nn.mix)({},se.attr(),ee,E);i.style?(i.style.width=P,i.style.height=j):i.style={width:P,height:j},this.updateShape(i,a,Se,!1)}},"single-combo"),Sm.registerNode("simple-circle",{options:{size:Yu.defaultNode.size,style:{x:0,y:0,stroke:Yu.defaultNode.style.stroke,fill:Yu.defaultNode.style.fill,lineWidth:Yu.defaultNode.style.lineWidth},labelCfg:{style:{fill:Yu.nodeLabel.style.fill,fontSize:Yu.nodeLabel.style.fontSize,fontFamily:Yu.windowFontFamily}},stateStyles:bl({},Yu.nodeStateStyles)},shapeType:"simple-circle",labelPosition:"center",shapeMap:{},drawShape:function(i,a){var l=this.getShapeStyle(i),u="".concat(this.type,"-keyShape"),E=a.addShape("circle",{attrs:l,className:"".concat(this.type,"-keyShape"),name:u,draggable:!0});return a.shapeMap[u]=E,E},getShapeStyle:function(i){var a=(this.mergeStyle||this.getOptions(i)).style,l={stroke:i.color},u=(0,Nn.deepMix)({},a,l),E=this.getSize(i),P=E[0]/2,j=bl({x:0,y:0,r:P},u);return j},update:function(i,a,l){var u=this.getSize(i),E={stroke:i.color,r:u[0]/2},P=a.get("keyShape"),j=(0,Nn.deepMix)({},P.attr(),E,i.style);this.updateShape(i,a,j,!0,l)}},"single-node"),Sm.registerNode("simple-rect",{options:{size:[100,30],style:{radius:0,stroke:Yu.defaultNode.style.stroke,fill:Yu.defaultNode.style.fill,lineWidth:Yu.defaultNode.style.lineWidth},labelCfg:{style:{fill:Yu.nodeLabel.style.fill,fontSize:Yu.nodeLabel.style.fontSize,fontFamily:Yu.windowFontFamily}},anchorPoints:[[0,.5],[1,.5]],stateStyles:bl({},Yu.nodeStateStyles)},shapeType:"simple-rect",labelPosition:"center",drawShape:function(i,a){var l=this.getShapeStyle(i),u=a.addShape("rect",{attrs:l,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return u},getShapeStyle:function(i){var a=(this.mergeStyle||this.getOptions(i)).style,l={stroke:i.color},u=(0,Nn.mix)({},a,l),E=this.getSize(i),P=u.width||E[0],j=u.height||E[1],H=bl({x:-P/2,y:-j/2,width:P,height:j},u);return H},update:function(i,a,l){var u=a.getContainer(),E=(this.mergeStyle||this.getOptions(i)).style,P=this.getSize(i),j=a.get("keyShape");i.size||(P[0]=j.attr("width")||E.width,P[1]=j.attr("height")||E.height);var H={stroke:i.color,x:-P[0]/2,y:-P[1]/2,width:P[0],height:P[1]},X=(0,Nn.mix)({},E,j.attr(),H);X=(0,Nn.mix)(X,i.style),this.updateShape(i,a,X,!1,l)}},"single-node"),Sm.registerNode("image",{options:{img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*eD7nT6tmYgAAAAAAAAAAAABkARQnAQ",size:200,labelCfg:{style:{fontFamily:Yu.windowFontFamily}},clipCfg:{show:!1,type:"circle",r:50,rx:50,ry:35,width:50,height:35,points:[[30,12],[12,30],[30,48],[48,30]],path:[["M",25,25],["L",50,25],["A",12.5,12.5,0,1,1,50,50],["A",12.5,12.5,0,1,0,50,50],["L",25,75],["Z"]],x:0,y:0}},shapeType:"image",labelPosition:"bottom",drawShape:function(i,a){var l=this.shapeType,u=this.getShapeStyle(i);delete u.fill;var E=a.addShape(l,{attrs:u,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return this.drawClip(i,E),E},drawClip:function(i,a){var l=(this.mergeStyle||this.getOptions(i)).clipCfg;if(!!l.show){var u=l.type,E=l.x,P=l.y,j=l.style;if(u==="circle"){var H=l.r;a.setClip({type:"circle",attrs:bl({r:H,x:E,y:P},j)})}else if(u==="rect"){var X=l.width,ee=l.height,se=E-X/2,Se=P-ee/2;a.setClip({type:"rect",attrs:bl({x:se,y:Se,width:X,height:ee},j)})}else if(u==="ellipse"){var Re=l.rx,Be=l.ry;a.setClip({type:"ellipse",attrs:bl({x:E,y:P,rx:Re,ry:Be},j)})}else if(u==="polygon"){var Ye=l.points;a.setClip({type:"polygon",attrs:bl({points:Ye},j)})}else if(u==="path"){var ht=l.path;a.setClip({type:"path",attrs:bl({path:ht},j)})}}},getShapeStyle:function(i){var a=this.mergeStyle||this.getOptions(i),l=a.style,u=a.img,E=this.getSize(i),P=E[0],j=E[1];l&&(P=l.width||E[0],j=l.height||E[1]);var H=bl({x:-P/2,y:-j/2,width:P,height:j,img:u},l);return H},updateShapeStyle:function(i,a){var l=a.getContainer(),u="".concat(this.itemType,"-shape"),E=l.shapeMap[u]||l.find(function(j){return j.get("className")===u})||a.getKeyShape(),P=this.getShapeStyle(i);E&&!E.destroyed&&E.attr(P)}},"single-node");var vD={triangle:function(i,a,l){i===void 0&&(i=10),a===void 0&&(a=15),l===void 0&&(l=0);var u=l*2,E="M ".concat(u,",0 L ").concat(u+a,",-").concat(i/2," L ").concat(u+a,",").concat(i/2," Z");return E},vee:function(i,a,l){i===void 0&&(i=15),a===void 0&&(a=20),l===void 0&&(l=0);var u=l*2,E="M ".concat(u,",0 L ").concat(u+a,",-").concat(i/2,`
|
||
L `).concat(u+2*a/3,",0 L ").concat(u+a,",").concat(i/2," Z");return E},circle:function(i,a){i===void 0&&(i=5),a===void 0&&(a=0);var l=a*2,u="M ".concat(l,`, 0
|
||
a `).concat(i,",").concat(i," 0 1,0 ").concat(i*2,`,0
|
||
a `).concat(i,",").concat(i," 0 1,0 ").concat(-i*2,",0");return u},rect:function(i,a,l){i===void 0&&(i=10),a===void 0&&(a=10),l===void 0&&(l=0);var u=l*2,E="M ".concat(u,",").concat(-i/2,`
|
||
L `).concat(u+a,",").concat(-i/2,`
|
||
L `).concat(u+a,",").concat(i/2,`
|
||
L `).concat(u,",").concat(i/2," Z");return E},diamond:function(i,a,l){i===void 0&&(i=15),a===void 0&&(a=15),l===void 0&&(l=0);var u=l*2,E="M ".concat(u,`,0
|
||
L `).concat(u+a/2,",").concat(-i/2,`
|
||
L `).concat(u+a,`,0
|
||
L `).concat(u+a/2,",").concat(i/2," Z");return E},triangleRect:function(i,a,l,u,E,P){i===void 0&&(i=15),a===void 0&&(a=15),l===void 0&&(l=15),u===void 0&&(u=3),E===void 0&&(E=5),P===void 0&&(P=0);var j=P*2,H=j+a+E,X="M ".concat(j,",0 L ").concat(j+a,",-").concat(i/2," L ").concat(j+a,",").concat(i/2,` Z
|
||
M `).concat(H,", -").concat(l/2,`
|
||
L `).concat(H+u," -").concat(l/2,`
|
||
L `).concat(H+u," ").concat(l/2,`
|
||
L `).concat(H," ").concat(l/2,`
|
||
Z`);return X}},qA={collapse:function(i,a,l){return[["M",i-l,a],["a",l,l,0,1,0,l*2,0],["a",l,l,0,1,0,-l*2,0],["M",i-l+4,a],["L",i+l-4,a]]},expand:function(i,a,l){return[["M",i-l,a],["a",l,l,0,1,0,l*2,0],["a",l,l,0,1,0,-l*2,0],["M",i-l+4,a],["L",i-l+2*l-4,a],["M",i-l+l,a-l+4],["L",i,a+l-4]]},upTriangle:function(i,a,l){var u=l*Math.cos(Math.PI/6),E=l*Math.sin(Math.PI/6);return[["M",i-u,a+E],["L",i+u,a+E],["L",i,a-l],["Z"]]},downTriangle:function(i,a,l){var u=l*Math.cos(Math.PI/6),E=l*Math.sin(Math.PI/6);return[["M",i-u,a-E],["L",i+u,a-E],["L",i,a+l],["Z"]]}},eE=Sm,ML=["#5F95FF","#61DDAA","#65789B","#F6BD16","#7262FD","#78D3F8","#9661BC","#F6903D","#008685","#F08BB4"],hD=function(i){return i==="force"||i==="g6force"||i==="gForce"||i==="force2"},i9=U_,o9=bl(bl(bl(bl(bl(bl(bl({},m),y),b),A),v),h),{transform:i9,mat3:lm}),Mg=o9,kL=function(){function C(i){this.graph=i,this.layoutCfg=i.get("layout")||{},this.layoutType=this.getLayoutType(),this.layoutMethods=[],this.initLayout()}return C.prototype.initLayout=function(){},C.prototype.getLayoutType=function(){return this.getLayoutCfgType(this.layoutCfg)},C.prototype.getLayoutCfgType=function(i){var a=i.type;if(a)return a;var l=i.pipes;return Array.isArray(l)?l.map(function(u){return(u==null?void 0:u.type)||""}):null},C.prototype.isLayoutTypeSame=function(i){var a=this.getLayoutCfgType(i),l=Array.isArray(this.layoutType),u=Array.isArray(a);return l&&u?this.layoutType.every(function(E,P){return E===a[P]}):Array.isArray(a)||Array.isArray(this.layoutType)?!1:(i==null?void 0:i.type)===this.layoutType},C.prototype.refreshLayout=function(){var i=this,a=i.graph,l=i.layoutType,u=i.layoutCfg,E=u===void 0?{}:u;if(!!a){var P=E.animate,j=P===void 0&&(l==="force"||l==="force2"),H=hD(l)&&(P||j);a.get("animate")&&!H?a.positionsAnimate(l==="comboCombined"):a.refreshPositions(l==="comboCombined")}},C.prototype.changeLayout=function(i){var a=i.disableTriggerLayout,l=$p(i,["disableTriggerLayout"]);this.layoutCfg=l,this.layoutType=l.type||this.layoutType,!a&&this.layout()},C.prototype.changeData=function(i){this.layout(i)},C.prototype.destoryLayoutMethods=function(){var i=this.layoutMethods,a=[];return i==null||i.forEach(function(l){var u,E=(u=l.getType)===null||u===void 0?void 0:u.call(l);E&&a.push(E),l.destroy()}),this.layoutMethods=[],a},C.prototype.destroyLayout=function(){this.destoryLayoutMethods();var i=this.graph;i&&!i.get("destroyed")&&i.set("layout",void 0),this.layoutCfg=void 0,this.layoutType=void 0,this.layoutMethods=void 0},C.prototype.setDataFromGraph=function(){for(var i,a=[],l=[],u=[],E=[],P=[],j=[],H=[],X=this.graph.getNodes(),ee=this.graph.getEdges(),se=this.graph.getCombos(),Se=X.length,Re=0;Re<Se;Re++){var Be=X[Re];if(!(!Be||Be.destroyed)){var Ye=Be.getModel();if(!Be.isVisible()){l.push(Ye);continue}a.push(Ye)}}for(var ht=ee.length,Re=0;Re<ht;Re++){var Tt=ee[Re];if(!(!Tt||Tt.destroyed)){var Ye=Tt.getModel();if(!Tt.isVisible()){E.push(Ye);continue}Ye.isComboEdge?P.push(Ye):u.push(Ye)}}for(var Dt=se.length,Re=0;Re<Dt;Re++){var Kt=se[Re];if(!Kt.destroyed){var Ye=Kt.getModel();if(!Kt.isVisible()){H.push(Ye);continue}j.push(Ye)}}return{nodes:a,hiddenNodes:l,edges:u,hiddenEdges:E,combos:j,hiddenCombos:H,comboEdges:P,vedges:(i=this.graph.get("vedges"))===null||i===void 0?void 0:i.map(function(gn){return gn.getModel()})}},C.prototype.relayout=function(i){var a=this,l=this,u=l.graph,E=l.layoutMethods,P=l.layoutCfg;if(!(!u||u.get("destroyed"))){var j=Promise.resolve();if(i){this.data=this.setDataFromGraph();var H=this.data.nodes;if(!H)return!1;j=this.initPositions(P.center,H)}u.emit("beforelayout"),E==null||E.forEach(function(X,ee){var se=P[ee]||P;j=j.then(function(){var Se,Re=a.execLayoutMethod(se,ee);return ee===E.length-1&&((Se=P.onAllLayoutEnd)===null||Se===void 0||Se.call(P)),Re})})}},C.prototype.filterLayoutData=function(i,a){var l=i.nodes,u=i.edges,E=$p(i,["nodes","edges"]);if(!l)return i;var P,j;(0,Nn.isFunction)(a==null?void 0:a.nodesFilter)?P=a.nodesFilter:P=function(){return!0};var H=l.filter(P);if((0,Nn.isFunction)(a==null?void 0:a.edgesFilter))j=a.edgesFilter;else{var X=H.reduce(function(ee,se){return ee[se.id]=!0,ee},{});j=function(se){return X[se.source]&&X[se.target]}}return bl({nodes:H,edges:u.filter(j)},E)},C.prototype.getLayoutBBox=function(i){var a=this.graph,l=(0,Nn.groupBy)(a.getNodes(),function(P){return P.getModel().layoutOrder}),u=Object.values(l).map(function(P){var j=wb(P);return j.size=[j.width,j.height],j}),E=Object.values((0,Nn.groupBy)(i,"layoutOrder"));return{groupNodes:E,layoutNodes:u}},C.prototype.layoutAnimate=function(){},C.prototype.moveToZero=function(){var i=this.graph,a=i.get("data"),l=a.nodes;if(!(l[0].x===void 0||l[0].x===null||f1(l[0].x))){for(var u=[0,0],E=l.length,P=0;P<E;P++){var j=l[P];u[0]+=j.x,u[1]+=j.y}u[0]/=l.length,u[1]/=l.length;for(var P=0;P<E;P++){var j=l[P];j.x-=u[0],j.y-=u[1]}}},C.prototype.initPositions=function(i,a){var l;return Wg(this,void 0,void 0,function(){var u,E,P;return DT(this,function(j){return u=this.graph,(a==null?void 0:a.length)?(E=a.filter(function(H){return f1(H.x)||f1(H.y)}),P=E?E.length:0,P?[2,(l=this.initWithPreset)===null||l===void 0?void 0:l.call(this,function(){},function(){var H=u.get("width")*.85,X=u.get("height")*.85,ee=Math.ceil(Math.sqrt(P)*(H/X)),se=Math.ceil(P/ee),Se=H/(ee-1),Re=X/(se-1);(!isFinite(Se)||!Se)&&(Se=0),(!isFinite(Re)||!Se)&&(Re=0);for(var Be=i[0]-H/2,Ye=i[1]-X/2,ht=!0,Tt=0;Tt<P;Tt++){var Dt=E[Tt];f1(+Dt.x)&&(ht=!1,Dt.x=Tt%ee*Se+Be),f1(+Dt.y)&&(ht=!1,Dt.y=Math.floor(Tt/ee)*Re+Ye)}})]:[2]):[2,Promise.resolve()]})})},C.prototype.destroy=function(){this.graph=null,this.destoryLayoutMethods(),this.destroyed=!0},C}(),mD=kL,s9=function(){function C(i){this.graph=i,this.destroyed=!1,this.initEvents()}return C}(),gD=s9,kb=eE.registerNode,PL=eE.registerEdge,l9=eE.registerCombo,eM=g0.registerBehavior,ru=Yu,c9={version:Yu.version,AbstractGraph:SL,BaseGlobal:ru,Util:Mg,Shape:eE,Node:JI,Edge:Jx,Combo:eD,Hull:uD,registerNode:eE.registerNode,registerEdge:eE.registerEdge,registerCombo:eE.registerCombo,registerBehavior:g0.registerBehavior,Arrow:vD,Marker:qA,AbstractLayout:mD,AbstractEvent:gD},RL=o(88958),_D=function(i,a){return _D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var E in u)Object.prototype.hasOwnProperty.call(u,E)&&(l[E]=u[E])},_D(i,a)};function kg(C,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");_D(C,i);function a(){this.constructor=C}C.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}var nm=function(){return nm=Object.assign||function(a){for(var l,u=1,E=arguments.length;u<E;u++){l=arguments[u];for(var P in l)Object.prototype.hasOwnProperty.call(l,P)&&(a[P]=l[P])}return a},nm.apply(this,arguments)};function yD(C,i){var a={};for(var l in C)Object.prototype.hasOwnProperty.call(C,l)&&i.indexOf(l)<0&&(a[l]=C[l]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(C);u<l.length;u++)i.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(C,l[u])&&(a[l[u]]=C[l[u]]);return a}function u9(C,i,a,l){var u=arguments.length,E=u<3?i:l===null?l=Object.getOwnPropertyDescriptor(i,a):l,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(C,i,a,l);else for(var j=C.length-1;j>=0;j--)(P=C[j])&&(E=(u<3?P(E):u>3?P(i,a,E):P(i,a))||E);return u>3&&E&&Object.defineProperty(i,a,E),E}function OL(C,i){return function(a,l){i(a,l,C)}}function IL(C,i,a,l,u,E){function P(Tt){if(Tt!==void 0&&typeof Tt!="function")throw new TypeError("Function expected");return Tt}for(var j=l.kind,H=j==="getter"?"get":j==="setter"?"set":"value",X=!i&&C?l.static?C:C.prototype:null,ee=i||(X?Object.getOwnPropertyDescriptor(X,l.name):{}),se,Se=!1,Re=a.length-1;Re>=0;Re--){var Be={};for(var Ye in l)Be[Ye]=Ye==="access"?{}:l[Ye];for(var Ye in l.access)Be.access[Ye]=l.access[Ye];Be.addInitializer=function(Tt){if(Se)throw new TypeError("Cannot add initializers after decoration has completed");E.push(P(Tt||null))};var ht=(0,a[Re])(j==="accessor"?{get:ee.get,set:ee.set}:ee[H],Be);if(j==="accessor"){if(ht===void 0)continue;if(ht===null||typeof ht!="object")throw new TypeError("Object expected");(se=P(ht.get))&&(ee.get=se),(se=P(ht.set))&&(ee.set=se),(se=P(ht.init))&&u.unshift(se)}else(se=P(ht))&&(j==="field"?u.unshift(se):ee[H]=se)}X&&Object.defineProperty(X,l.name,ee),Se=!0}function FW(C,i,a){for(var l=arguments.length>2,u=0;u<i.length;u++)a=l?i[u].call(C,a):i[u].call(C);return l?a:void 0}function jW(C){return typeof C=="symbol"?C:"".concat(C)}function BW(C,i,a){return typeof i=="symbol"&&(i=i.description?"[".concat(i.description,"]"):""),Object.defineProperty(C,"name",{configurable:!0,value:a?"".concat(a," ",i):i})}function f9(C,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(C,i)}function uw(C,i,a,l){function u(E){return E instanceof a?E:new a(function(P){P(E)})}return new(a||(a=Promise))(function(E,P){function j(ee){try{X(l.next(ee))}catch(se){P(se)}}function H(ee){try{X(l.throw(ee))}catch(se){P(se)}}function X(ee){ee.done?E(ee.value):u(ee.value).then(j,H)}X((l=l.apply(C,i||[])).next())})}function d9(C,i){var a={label:0,sent:function(){if(E[0]&1)throw E[1];return E[1]},trys:[],ops:[]},l,u,E,P;return P={next:j(0),throw:j(1),return:j(2)},typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function j(X){return function(ee){return H([X,ee])}}function H(X){if(l)throw new TypeError("Generator is already executing.");for(;P&&(P=0,X[0]&&(a=0)),a;)try{if(l=1,u&&(E=X[0]&2?u.return:X[0]?u.throw||((E=u.return)&&E.call(u),0):u.next)&&!(E=E.call(u,X[1])).done)return E;switch(u=0,E&&(X=[X[0]&2,E.value]),X[0]){case 0:case 1:E=X;break;case 4:return a.label++,{value:X[1],done:!1};case 5:a.label++,u=X[1],X=[0];continue;case 7:X=a.ops.pop(),a.trys.pop();continue;default:if(E=a.trys,!(E=E.length>0&&E[E.length-1])&&(X[0]===6||X[0]===2)){a=0;continue}if(X[0]===3&&(!E||X[1]>E[0]&&X[1]<E[3])){a.label=X[1];break}if(X[0]===6&&a.label<E[1]){a.label=E[1],E=X;break}if(E&&a.label<E[2]){a.label=E[2],a.ops.push(X);break}E[2]&&a.ops.pop(),a.trys.pop();continue}X=i.call(C,a)}catch(ee){X=[6,ee],u=0}finally{l=E=0}if(X[0]&5)throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}}var VS=Object.create?function(C,i,a,l){l===void 0&&(l=a);var u=Object.getOwnPropertyDescriptor(i,a);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(C,l,u)}:function(C,i,a,l){l===void 0&&(l=a),C[l]=i[a]};function p9(C,i){for(var a in C)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&VS(i,C,a)}function bD(C){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&C[i],l=0;if(a)return a.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&l>=C.length&&(C=void 0),{value:C&&C[l++],done:!C}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function DL(C,i){var a=typeof Symbol=="function"&&C[Symbol.iterator];if(!a)return C;var l=a.call(C),u,E=[],P;try{for(;(i===void 0||i-- >0)&&!(u=l.next()).done;)E.push(u.value)}catch(j){P={error:j}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(P)throw P.error}}return E}function v9(){for(var C=[],i=0;i<arguments.length;i++)C=C.concat(DL(arguments[i]));return C}function h9(){for(var C=0,i=0,a=arguments.length;i<a;i++)C+=arguments[i].length;for(var l=Array(C),u=0,i=0;i<a;i++)for(var E=arguments[i],P=0,j=E.length;P<j;P++,u++)l[u]=E[P];return l}function m9(C,i,a){if(a||arguments.length===2)for(var l=0,u=i.length,E;l<u;l++)(E||!(l in i))&&(E||(E=Array.prototype.slice.call(i,0,l)),E[l]=i[l]);return C.concat(E||Array.prototype.slice.call(i))}function tM(C){return this instanceof tM?(this.v=C,this):new tM(C)}function NL(C,i,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=a.apply(C,i||[]),u,E=[];return u={},P("next"),P("throw"),P("return"),u[Symbol.asyncIterator]=function(){return this},u;function P(Se){l[Se]&&(u[Se]=function(Re){return new Promise(function(Be,Ye){E.push([Se,Re,Be,Ye])>1||j(Se,Re)})})}function j(Se,Re){try{H(l[Se](Re))}catch(Be){se(E[0][3],Be)}}function H(Se){Se.value instanceof tM?Promise.resolve(Se.value.v).then(X,ee):se(E[0][2],Se)}function X(Se){j("next",Se)}function ee(Se){j("throw",Se)}function se(Se,Re){Se(Re),E.shift(),E.length&&j(E[0][0],E[0][1])}}function g9(C){var i,a;return i={},l("next"),l("throw",function(u){throw u}),l("return"),i[Symbol.iterator]=function(){return this},i;function l(u,E){i[u]=C[u]?function(P){return(a=!a)?{value:tM(C[u](P)),done:!1}:E?E(P):P}:E}}function _9(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=C[Symbol.asyncIterator],a;return i?i.call(C):(C=typeof bD=="function"?bD(C):C[Symbol.iterator](),a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a);function l(E){a[E]=C[E]&&function(P){return new Promise(function(j,H){P=C[E](P),u(j,H,P.done,P.value)})}}function u(E,P,j,H){Promise.resolve(H).then(function(X){E({value:X,done:j})},P)}}function y9(C,i){return Object.defineProperty?Object.defineProperty(C,"raw",{value:i}):C.raw=i,C}var b9=Object.create?function(C,i){Object.defineProperty(C,"default",{enumerable:!0,value:i})}:function(C,i){C.default=i};function x9(C){if(C&&C.__esModule)return C;var i={};if(C!=null)for(var a in C)a!=="default"&&Object.prototype.hasOwnProperty.call(C,a)&&VS(i,C,a);return b9(i,C),i}function E9(C){return C&&C.__esModule?C:{default:C}}function S9(C,i,a,l){if(a==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?C!==i||!l:!i.has(C))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?l:a==="a"?l.call(C):l?l.value:i.get(C)}function C9(C,i,a,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?C!==i||!u:!i.has(C))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(C,a):u?u.value=a:i.set(C,a),a}function nM(C,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof C=="function"?i===C:C.has(i)}function xD(C,i,a){if(i!=null){if(typeof i!="object"&&typeof i!="function")throw new TypeError("Object expected.");var l;if(a){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");l=i[Symbol.asyncDispose]}if(l===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");l=i[Symbol.dispose]}if(typeof l!="function")throw new TypeError("Object not disposable.");C.stack.push({value:i,dispose:l,async:a})}else a&&C.stack.push({async:!0});return i}var UW=typeof SuppressedError=="function"?SuppressedError:function(C,i,a){var l=new Error(a);return l.name="SuppressedError",l.error=C,l.suppressed=i,l};function LL(C){function i(l){C.error=C.hasError?new UW(l,C.error,"An error was suppressed during disposal."):l,C.hasError=!0}function a(){for(;C.stack.length;){var l=C.stack.pop();try{var u=l.dispose&&l.dispose.call(l.value);if(l.async)return Promise.resolve(u).then(a,function(E){return i(E),a()})}catch(E){i(E)}}if(C.hasError)throw C.error}return a()}var ZW={__extends:kg,__assign:nm,__rest:yD,__decorate:u9,__param:OL,__metadata:f9,__awaiter:uw,__generator:d9,__createBinding:VS,__exportStar:p9,__values:bD,__read:DL,__spread:v9,__spreadArrays:h9,__spreadArray:m9,__await:tM,__asyncGenerator:NL,__asyncDelegator:g9,__asyncValues:_9,__makeTemplateObject:y9,__importStar:x9,__importDefault:E9,__classPrivateFieldGet:S9,__classPrivateFieldSet:C9,__classPrivateFieldIn:nM,__addDisposableResource:xD,__disposeResources:LL};function ED(){return window?window.devicePixelRatio:1}function FL(C,i,a,l){var u=C-a,E=i-l;return Math.sqrt(u*u+E*E)}function zS(C,i,a,l,u,E){return u>=C&&u<=C+a&&E>=i&&E<=i+l}function fw(C,i){return!(i.minX>C.maxX||i.maxX<C.minX||i.minY>C.maxY||i.maxY<C.minY)}function w9(C,i){return!C||!i?C||i:{minX:Math.min(C.minX,i.minX),minY:Math.min(C.minY,i.minY),maxX:Math.max(C.maxX,i.maxX),maxY:Math.max(C.maxY,i.maxY)}}function jL(C,i){return C[0]===i[0]&&C[1]===i[1]}var T9=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,SD=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,A9=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,WS=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function CD(C,i){var a=C.match(WS);(0,Nn.each)(a,function(l){var u=l.split(":");i.addColorStop(u[0],u[1])})}function BL(C,i,a){var l=T9.exec(a),u=parseFloat(l[1])%360*(Math.PI/180),E=l[2],P=i.getBBox(),j,H;u>=0&&u<1/2*Math.PI?(j={x:P.minX,y:P.minY},H={x:P.maxX,y:P.maxY}):1/2*Math.PI<=u&&u<Math.PI?(j={x:P.maxX,y:P.minY},H={x:P.minX,y:P.maxY}):Math.PI<=u&&u<3/2*Math.PI?(j={x:P.maxX,y:P.maxY},H={x:P.minX,y:P.minY}):(j={x:P.minX,y:P.maxY},H={x:P.maxX,y:P.minY});var X=Math.tan(u),ee=X*X,se=(H.x-j.x+X*(H.y-j.y))/(ee+1)+j.x,Se=X*(H.x-j.x+X*(H.y-j.y))/(ee+1)+j.y,Re=C.createLinearGradient(j.x,j.y,se,Se);return CD(E,Re),Re}function Pb(C,i,a){var l=SD.exec(a),u=parseFloat(l[1]),E=parseFloat(l[2]),P=parseFloat(l[3]),j=l[4];if(P===0){var H=j.match(WS);return H[H.length-1].split(":")[1]}var X=i.getBBox(),ee=X.maxX-X.minX,se=X.maxY-X.minY,Se=Math.sqrt(ee*ee+se*se)/2,Re=C.createRadialGradient(X.minX+ee*u,X.minY+se*E,0,X.minX+ee/2,X.minY+se/2,P*Se);return CD(j,Re),Re}function VW(C,i,a){if(i.get("patternSource")&&i.get("patternSource")===a)return i.get("pattern");var l,u,E=A9.exec(a),P=E[1],j=E[2];function H(){l=C.createPattern(u,P),i.set("pattern",l),i.set("patternSource",a)}switch(P){case"a":P="repeat";break;case"x":P="repeat-x";break;case"y":P="repeat-y";break;case"n":P="no-repeat";break;default:P="no-repeat"}return u=new Image,j.match(/^data:/i)||(u.crossOrigin="Anonymous"),u.src=j,u.complete?H():(u.onload=H,u.src=u.src),l}function wD(C,i,a){var l=i.getBBox();if(isNaN(l.x)||isNaN(l.y)||isNaN(l.width)||isNaN(l.height))return a;if((0,Nn.isString)(a)){if(a[1]==="("||a[2]==="("){if(a[0]==="l")return BL(C,i,a);if(a[0]==="r")return Pb(C,i,a);if(a[0]==="p")return VW(C,i,a)}return a}if(a instanceof CanvasPattern)return a}function M9(C){var i=0,a=0,l=0,u=0;return(0,Nn.isArray)(C)?C.length===1?i=a=l=u=C[0]:C.length===2?(i=l=C[0],a=u=C[1]):C.length===3?(i=C[0],a=u=C[1],l=C[2]):(i=C[0],a=C[1],l=C[2],u=C[3]):i=a=l=u=C,[i,a,l,u]}function dw(C){return Math.sqrt(C[0]*C[0]+C[1]*C[1])}function KP(C,i){return dw(C)*dw(i)?(C[0]*i[0]+C[1]*i[1])/(dw(C)*dw(i)):1}function TD(C,i){return(C[0]*i[1]<C[1]*i[0]?-1:1)*Math.acos(KP(C,i))}function UL(C,i){var a=i[1],l=i[2],u=(0,Nn.mod)((0,Nn.toRadian)(i[3]),Math.PI*2),E=i[4],P=i[5],j=C[0],H=C[1],X=i[6],ee=i[7],se=Math.cos(u)*(j-X)/2+Math.sin(u)*(H-ee)/2,Se=-1*Math.sin(u)*(j-X)/2+Math.cos(u)*(H-ee)/2,Re=se*se/(a*a)+Se*Se/(l*l);Re>1&&(a*=Math.sqrt(Re),l*=Math.sqrt(Re));var Be=a*a*(Se*Se)+l*l*(se*se),Ye=Be?Math.sqrt((a*a*(l*l)-Be)/Be):1;E===P&&(Ye*=-1),isNaN(Ye)&&(Ye=0);var ht=l?Ye*a*Se/l:0,Tt=a?Ye*-l*se/a:0,Dt=(j+X)/2+Math.cos(u)*ht-Math.sin(u)*Tt,Kt=(H+ee)/2+Math.sin(u)*ht+Math.cos(u)*Tt,gn=[(se-ht)/a,(Se-Tt)/l],bn=[(-1*se-ht)/a,(-1*Se-Tt)/l],mn=TD([1,0],gn),kn=TD(gn,bn);return KP(gn,bn)<=-1&&(kn=Math.PI),KP(gn,bn)>=1&&(kn=0),P===0&&kn>0&&(kn=kn-2*Math.PI),P===1&&kn<0&&(kn=kn+2*Math.PI),{cx:Dt,cy:Kt,rx:jL(C,[X,ee])?0:a,ry:jL(C,[X,ee])?0:l,startAngle:mn,endAngle:mn+kn,xRotation:u,arcFlag:E,sweepFlag:P}}var HS=Math.sin,GS=Math.cos,pw=Math.atan2,rM=Math.PI;function YP(C,i,a,l,u,E,P){var j=i.stroke,H=i.lineWidth,X=a-u,ee=l-E,se=pw(ee,X),Se=new OD({type:"path",canvas:C.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*GS(rM/6)+","+10*HS(rM/6)+" L0,0 L"+10*GS(rM/6)+",-"+10*HS(rM/6),stroke:j,lineWidth:H}});Se.translate(u,E),Se.rotateAtPoint(u,E,se),C.set(P?"startArrowShape":"endArrowShape",Se)}function tE(C,i,a,l,u,E,P){var j=i.startArrow,H=i.endArrow,X=i.stroke,ee=i.lineWidth,se=P?j:H,Se=se.d,Re=se.fill,Be=se.stroke,Ye=se.lineWidth,ht=yD(se,["d","fill","stroke","lineWidth"]),Tt=a-u,Dt=l-E,Kt=pw(Dt,Tt);Se&&(u=u-GS(Kt)*Se,E=E-HS(Kt)*Se);var gn=new OD({type:"path",canvas:C.get("canvas"),isArrowShape:!0,attrs:nm(nm({},ht),{stroke:Be||X,lineWidth:Ye||ee,fill:Re})});gn.translate(u,E),gn.rotateAtPoint(u,E,Kt),C.set(P?"startArrowShape":"endArrowShape",gn)}function nE(C,i,a,l,u){var E=pw(l-i,a-C);return{dx:GS(E)*u,dy:HS(E)*u}}function p1(C,i,a,l,u,E){typeof i.startArrow=="object"?tE(C,i,a,l,u,E,!0):i.startArrow?YP(C,i,a,l,u,E,!0):C.set("startArrowShape",null)}function AD(C,i,a,l,u,E){typeof i.endArrow=="object"?tE(C,i,a,l,u,E,!1):i.endArrow?YP(C,i,a,l,u,E,!1):C.set("startArrowShape",null)}var MD={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function Rb(C,i){var a=i.attr();for(var l in a){var u=a[l],E=MD[l]?MD[l]:l;E==="matrix"&&u?C.transform(u[0],u[1],u[3],u[4],u[6],u[7]):E==="lineDash"&&C.setLineDash?(0,Nn.isArray)(u)&&C.setLineDash(u):(E==="strokeStyle"||E==="fillStyle"?u=wD(C,i,u):E==="globalAlpha"&&(u=u*C.globalAlpha),C[E]=u)}}function kD(C,i,a){for(var l=0;l<i.length;l++){var u=i[l];u.cfg.visible?u.draw(C,a):u.skipDraw()}}function k9(C,i,a){var l=C.get("refreshElements");(0,Nn.each)(l,function(u){if(u!==C)for(var E=u.cfg.parent;E&&E!==C&&!E.cfg.refresh;)E.cfg.refresh=!0,E=E.cfg.parent}),l[0]===C?XP(i,a):PD(i,a)}function PD(C,i){for(var a=0;a<C.length;a++){var l=C[a];if(l.cfg.visible)if(l.cfg.hasChanged)l.cfg.refresh=!0,l.isGroup()&&XP(l.cfg.children,i);else if(l.cfg.refresh)l.isGroup()&&PD(l.cfg.children,i);else{var u=P9(l,i);l.cfg.refresh=u,u&&l.isGroup()&&PD(l.cfg.children,i)}}}function ZL(C){for(var i=0;i<C.length;i++){var a=C[i];a.cfg.hasChanged=!1,a.isGroup()&&!a.destroyed&&ZL(a.cfg.children)}}function XP(C,i){for(var a=0;a<C.length;a++){var l=C[a];!l.cfg.visible||(l.cfg.refresh=!0,l.isGroup()&&XP(l.get("children"),i))}}function P9(C,i){var a=C.cfg.cacheCanvasBBox,l=C.cfg.isInView&&a&&fw(a,i);return l}function VL(C,i,a,l){var u=a.path,E=a.startArrow,P=a.endArrow;if(!!u){var j=[0,0],H=[0,0],X={dx:0,dy:0};i.beginPath();for(var ee=0;ee<u.length;ee++){var se=u[ee],Se=se[0];if(ee===0&&E&&E.d){var Re=C.getStartTangent();X=nE(Re[0][0],Re[0][1],Re[1][0],Re[1][1],E.d)}else if(ee===u.length-2&&u[ee+1][0]==="Z"&&P&&P.d){var Be=u[ee+1];if(Be[0]==="Z"){var Re=C.getEndTangent();X=nE(Re[0][0],Re[0][1],Re[1][0],Re[1][1],P.d)}}else if(ee===u.length-1&&P&&P.d&&u[0]!=="Z"){var Re=C.getEndTangent();X=nE(Re[0][0],Re[0][1],Re[1][0],Re[1][1],P.d)}var Ye=X.dx,ht=X.dy;switch(Se){case"M":i.moveTo(se[1]-Ye,se[2]-ht),H=[se[1],se[2]];break;case"L":i.lineTo(se[1]-Ye,se[2]-ht);break;case"Q":i.quadraticCurveTo(se[1],se[2],se[3]-Ye,se[4]-ht);break;case"C":i.bezierCurveTo(se[1],se[2],se[3],se[4],se[5]-Ye,se[6]-ht);break;case"A":{var Tt=void 0;l?(Tt=l[ee],Tt||(Tt=UL(j,se),l[ee]=Tt)):Tt=UL(j,se);var Dt=Tt.cx,Kt=Tt.cy,gn=Tt.rx,bn=Tt.ry,mn=Tt.startAngle,kn=Tt.endAngle,sr=Tt.xRotation,yr=Tt.sweepFlag;if(i.ellipse)i.ellipse(Dt,Kt,gn,bn,sr,mn,kn,1-yr);else{var jr=gn>bn?gn:bn,zr=gn>bn?1:gn/bn,va=gn>bn?bn/gn:1;i.translate(Dt,Kt),i.rotate(sr),i.scale(zr,va),i.arc(0,0,jr,mn,kn,1-yr),i.scale(1/zr,1/va),i.rotate(-sr),i.translate(-Dt,-Kt)}break}case"Z":i.closePath();break;default:break}if(Se==="Z")j=H;else{var za=se.length;j=[se[za-2],se[za-1]]}}}}function zL(C,i){var a=C.get("canvas");a&&(i==="remove"&&(C._cacheCanvasBBox=C.get("cacheCanvasBBox")),C.get("hasChanged")||(C.set("hasChanged",!0),C.cfg.parent&&C.cfg.parent.get("hasChanged")||(a.refreshElement(C,i,a),a.get("autoDraw")&&a.draw())))}function WL(C){var i;if(C.destroyed)i=C._cacheCanvasBBox;else{var a=C.get("cacheCanvasBBox"),l=a&&!!(a.width&&a.height),u=C.getCanvasBBox(),E=u&&!!(u.width&&u.height);l&&E?i=w9(a,u):l?i=a:E&&(i=u)}return i}function HL(C){if(!C.length)return null;var i=[],a=[],l=[],u=[];return(0,Nn.each)(C,function(E){var P=WL(E);P&&(i.push(P.minX),a.push(P.minY),l.push(P.maxX),u.push(P.maxY))}),{minX:(0,Nn.min)(i),minY:(0,Nn.min)(a),maxX:(0,Nn.max)(l),maxY:(0,Nn.max)(u)}}function aM(C,i){return!C||!i||!fw(C,i)?null:{minX:Math.max(C.minX,i.minX),minY:Math.max(C.minY,i.minY),maxX:Math.min(C.maxX,i.maxX),maxY:Math.min(C.maxY,i.maxY)}}var R9=function(C){kg(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.onCanvasChange=function(a){zL(this,a)},i.prototype.getShapeBase=function(){return d},i.prototype.getGroupBase=function(){return i},i.prototype._applyClip=function(a,l){l&&(a.save(),Rb(a,l),l.createPath(a),a.restore(),a.clip(),l._afterDraw())},i.prototype.cacheCanvasBBox=function(){var a=this.cfg.children,l=[],u=[];(0,Nn.each)(a,function(Se){var Re=Se.cfg.cacheCanvasBBox;Re&&Se.cfg.isInView&&(l.push(Re.minX,Re.maxX),u.push(Re.minY,Re.maxY))});var E=null;if(l.length){var P=(0,Nn.min)(l),j=(0,Nn.max)(l),H=(0,Nn.min)(u),X=(0,Nn.max)(u);E={minX:P,minY:H,x:P,y:H,maxX:j,maxY:X,width:j-P,height:X-H};var ee=this.cfg.canvas;if(ee){var se=ee.getViewRange();this.set("isInView",fw(E,se))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",E)},i.prototype.draw=function(a,l){var u=this.cfg.children,E=l?this.cfg.refresh:!0;u.length&&E&&(a.save(),Rb(a,this),this._applyClip(a,this.getClip()),kD(a,u,l),a.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},i.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},i}(wN),GL=R9,O9=function(C){kg(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return nm(nm({},a),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},i.prototype.getShapeBase=function(){return d},i.prototype.getGroupBase=function(){return GL},i.prototype.onCanvasChange=function(a){zL(this,a)},i.prototype.calculateBBox=function(){var a=this.get("type"),l=this.getHitLineWidth(),u=CI(a),E=u(this),P=l/2,j=E.x-P,H=E.y-P,X=E.x+E.width+P,ee=E.y+E.height+P;return{x:j,minX:j,y:H,minY:H,width:E.width+l,height:E.height+l,maxX:X,maxY:ee}},i.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},i.prototype.isStroke=function(){return!!this.attrs.stroke},i.prototype._applyClip=function(a,l){l&&(a.save(),Rb(a,l),l.createPath(a),a.restore(),a.clip(),l._afterDraw())},i.prototype.draw=function(a,l){var u=this.cfg.clipShape;if(l){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var E=this.getCanvasBBox();if(!fw(l,E)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}a.save(),Rb(a,this),this._applyClip(a,u),this.drawPath(a),a.restore(),this._afterDraw()},i.prototype.getCanvasViewBox=function(){var a=this.cfg.canvas;return a?a.getViewRange():null},i.prototype.cacheCanvasBBox=function(){var a=this.getCanvasViewBox();if(a){var l=this.getCanvasBBox(),u=fw(l,a);this.set("isInView",u),u?this.set("cacheCanvasBBox",l):this.set("cacheCanvasBBox",null)}},i.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},i.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},i.prototype.drawPath=function(a){this.createPath(a),this.strokeAndFill(a),this.afterDrawPath(a)},i.prototype.fill=function(a){a.fill()},i.prototype.stroke=function(a){a.stroke()},i.prototype.strokeAndFill=function(a){var l=this.attrs,u=l.lineWidth,E=l.opacity,P=l.strokeOpacity,j=l.fillOpacity;this.isFill()&&(!(0,Nn.isNil)(j)&&j!==1?(a.globalAlpha=j,this.fill(a),a.globalAlpha=E):this.fill(a)),this.isStroke()&&u>0&&(!(0,Nn.isNil)(P)&&P!==1&&(a.globalAlpha=P),this.stroke(a)),this.afterDrawPath(a)},i.prototype.createPath=function(a){},i.prototype.afterDrawPath=function(a){},i.prototype.isInShape=function(a,l){var u=this.isStroke(),E=this.isFill(),P=this.getHitLineWidth();return this.isInStrokeOrPath(a,l,u,E,P)},i.prototype.isInStrokeOrPath=function(a,l,u,E,P){return!1},i.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var a=this.attrs;return a.lineWidth+a.lineAppendWidth},i}(TN),G_=O9,My=function(C){kg(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return nm(nm({},a),{x:0,y:0,r:0})},i.prototype.isInStrokeOrPath=function(a,l,u,E,P){var j=this.attr(),H=j.x,X=j.y,ee=j.r,se=P/2,Se=FL(H,X,a,l);return E&&u?Se<=ee+se:E?Se<=ee:u?Se>=ee-se&&Se<=ee+se:!1},i.prototype.createPath=function(a){var l=this.attr(),u=l.x,E=l.y,P=l.r;a.beginPath(),a.arc(u,E,P,0,Math.PI*2,!1),a.closePath()},i}(G_),RD=My;function iM(C,i,a,l){return C/(a*a)+i/(l*l)}var JP=function(C){kg(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return nm(nm({},a),{x:0,y:0,rx:0,ry:0})},i.prototype.isInStrokeOrPath=function(a,l,u,E,P){var j=this.attr(),H=P/2,X=j.x,ee=j.y,se=j.rx,Se=j.ry,Re=(a-X)*(a-X),Be=(l-ee)*(l-ee);return E&&u?iM(Re,Be,se+H,Se+H)<=1:E?iM(Re,Be,se,Se)<=1:u?iM(Re,Be,se-H,Se-H)>=1&&iM(Re,Be,se+H,Se+H)<=1:!1},i.prototype.createPath=function(a){var l=this.attr(),u=l.x,E=l.y,P=l.rx,j=l.ry;if(a.beginPath(),a.ellipse)a.ellipse(u,E,P,j,0,0,Math.PI*2,!1);else{var H=P>j?P:j,X=P>j?1:P/j,ee=P>j?j/P:1;a.save(),a.translate(u,E),a.scale(X,ee),a.arc(0,0,H,0,Math.PI*2),a.restore(),a.closePath()}},i}(G_),I9=JP;function $L(C){return C instanceof HTMLElement&&(0,Nn.isString)(C.nodeName)&&C.nodeName.toUpperCase()==="CANVAS"}var D9=function(C){kg(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return nm(nm({},a),{x:0,y:0,width:0,height:0})},i.prototype.initAttrs=function(a){this._setImage(a.img)},i.prototype.isStroke=function(){return!1},i.prototype.isOnlyHitBox=function(){return!0},i.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var a=this.get("canvas");a?a.draw():this.createPath(this.get("context"))}},i.prototype._setImage=function(a){var l=this,u=this.attrs;if((0,Nn.isString)(a)){var E=new Image;E.onload=function(){if(l.destroyed)return!1;l.attr("img",E),l.set("loading",!1),l._afterLoading();var P=l.get("callback");P&&P.call(l)},E.crossOrigin="Anonymous",E.src=a,this.set("loading",!0)}else a instanceof Image?(u.width||(u.width=a.width),u.height||(u.height=a.height)):$L(a)&&(u.width||(u.width=Number(a.getAttribute("width"))),u.height||(u.height,Number(a.getAttribute("height"))))},i.prototype.onAttrChange=function(a,l,u){C.prototype.onAttrChange.call(this,a,l,u),a==="img"&&this._setImage(l)},i.prototype.createPath=function(a){if(this.get("loading")){this.set("toDraw",!0),this.set("context",a);return}var l=this.attr(),u=l.x,E=l.y,P=l.width,j=l.height,H=l.sx,X=l.sy,ee=l.swidth,se=l.sheight,Se=l.img;(Se instanceof Image||$L(Se))&&(!(0,Nn.isNil)(H)&&!(0,Nn.isNil)(X)&&!(0,Nn.isNil)(ee)&&!(0,Nn.isNil)(se)?a.drawImage(Se,H,X,ee,se,u,E,P,j):a.drawImage(Se,u,E,P,j))},i}(G_),N9=D9;function Ob(C,i,a,l,u,E,P){var j=Math.min(C,a),H=Math.max(C,a),X=Math.min(i,l),ee=Math.max(i,l),se=u/2;return E>=j-se&&E<=H+se&&P>=X-se&&P<=ee+se?Ag.pointToLine(C,i,a,l,E,P)<=u/2:!1}var QP=function(C){kg(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return nm(nm({},a),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},i.prototype.initAttrs=function(a){this.setArrow()},i.prototype.onAttrChange=function(a,l,u){C.prototype.onAttrChange.call(this,a,l,u),this.setArrow()},i.prototype.setArrow=function(){var a=this.attr(),l=a.x1,u=a.y1,E=a.x2,P=a.y2,j=a.startArrow,H=a.endArrow;j&&p1(this,a,E,P,l,u),H&&AD(this,a,l,u,E,P)},i.prototype.isInStrokeOrPath=function(a,l,u,E,P){if(!u||!P)return!1;var j=this.attr(),H=j.x1,X=j.y1,ee=j.x2,se=j.y2;return Ob(H,X,ee,se,P,a,l)},i.prototype.createPath=function(a){var l=this.attr(),u=l.x1,E=l.y1,P=l.x2,j=l.y2,H=l.startArrow,X=l.endArrow,ee={dx:0,dy:0},se={dx:0,dy:0};H&&H.d&&(ee=nE(u,E,P,j,l.startArrow.d)),X&&X.d&&(se=nE(u,E,P,j,l.endArrow.d)),a.beginPath(),a.moveTo(u+ee.dx,E+ee.dy),a.lineTo(P-se.dx,j-se.dy)},i.prototype.afterDrawPath=function(a){var l=this.get("startArrowShape"),u=this.get("endArrowShape");l&&l.draw(a),u&&u.draw(a)},i.prototype.getTotalLength=function(){var a=this.attr(),l=a.x1,u=a.y1,E=a.x2,P=a.y2;return Ag.length(l,u,E,P)},i.prototype.getPoint=function(a){var l=this.attr(),u=l.x1,E=l.y1,P=l.x2,j=l.y2;return Ag.pointAt(u,E,P,j,a)},i}(G_),KL=QP,L9={circle:function(i,a,l){return[["M",i-l,a],["A",l,l,0,1,0,i+l,a],["A",l,l,0,1,0,i-l,a]]},square:function(i,a,l){return[["M",i-l,a-l],["L",i+l,a-l],["L",i+l,a+l],["L",i-l,a+l],["Z"]]},diamond:function(i,a,l){return[["M",i-l,a],["L",i,a-l],["L",i+l,a],["L",i,a+l],["Z"]]},triangle:function(i,a,l){var u=l*Math.sin(1/3*Math.PI);return[["M",i-l,a+u],["L",i,a-u],["L",i+l,a+u],["Z"]]},"triangle-down":function(i,a,l){var u=l*Math.sin(1/3*Math.PI);return[["M",i-l,a-u],["L",i+l,a-u],["L",i,a+u],["Z"]]}},vw=function(C){kg(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.initAttrs=function(a){this._resetParamsCache()},i.prototype._resetParamsCache=function(){this.set("paramsCache",{})},i.prototype.onAttrChange=function(a,l,u){C.prototype.onAttrChange.call(this,a,l,u),["symbol","x","y","r","radius"].indexOf(a)!==-1&&this._resetParamsCache()},i.prototype.isOnlyHitBox=function(){return!0},i.prototype._getR=function(a){return(0,Nn.isNil)(a.r)?a.radius:a.r},i.prototype._getPath=function(){var a=this.attr(),l=a.x,u=a.y,E=a.symbol||"circle",P=this._getR(a),j,H;if((0,Nn.isFunction)(E))j=E,H=j(l,u,P),H=YN(H);else{if(j=i.Symbols[E],!j)return console.warn(E+" marker is not supported."),null;H=j(l,u,P)}return H},i.prototype.createPath=function(a){var l=this._getPath(),u=this.get("paramsCache");VL(this,a,{path:l},u)},i.Symbols=L9,i}(G_),qP=vw;function YL(C,i,a){var l=C7();return C.createPath(l),l.isPointInPath(i,a)}var oM=1e-6;function sM(C){return Math.abs(C)<oM?0:C<0?-1:1}function F9(C,i,a){return(a[0]-C[0])*(i[1]-C[1])==(i[0]-C[0])*(a[1]-C[1])&&Math.min(C[0],i[0])<=a[0]&&a[0]<=Math.max(C[0],i[0])&&Math.min(C[1],i[1])<=a[1]&&a[1]<=Math.max(C[1],i[1])}function XL(C,i,a){var l=!1,u=C.length;if(u<=2)return!1;for(var E=0;E<u;E++){var P=C[E],j=C[(E+1)%u];if(F9(P,j,[i,a]))return!0;sM(P[1]-a)>0!=sM(j[1]-a)>0&&sM(i-(a-P[1])*(P[0]-j[0])/(P[1]-j[1])-P[0])<0&&(l=!l)}return l}function $S(C,i,a,l,u,E,P,j){var H=(Math.atan2(j-i,P-C)+Math.PI*2)%(Math.PI*2);if(H<l||H>u)return!1;var X={x:C+a*Math.cos(H),y:i+a*Math.sin(H)};return FL(X.x,X.y,P,j)<=E/2}var JL=U_;function eR(C){for(var i=!1,a=C.length,l=0;l<a;l++){var u=C[l],E=u[0];if(E==="C"||E==="A"||E==="Q"){i=!0;break}}return i}function j9(C,i,a,l,u){for(var E=!1,P=i/2,j=0;j<C.length;j++){var H=C[j],X=H.currentPoint,ee=H.params,se=H.prePoint,Se=H.box;if(!(Se&&!zS(Se.x-P,Se.y-P,Se.width+i,Se.height+i,a,l))){switch(H.command){case"L":case"Z":E=Ob(se[0],se[1],X[0],X[1],i,a,l);break;case"Q":var Re=DN.pointDistance(se[0],se[1],ee[1],ee[2],ee[3],ee[4],a,l);E=Re<=i/2;break;case"C":var Be=LS.pointDistance(se[0],se[1],ee[1],ee[2],ee[3],ee[4],ee[5],ee[6],a,l,u);E=Be<=i/2;break;case"A":var Ye=H.arcParams,ht=Ye.cx,Tt=Ye.cy,Dt=Ye.rx,Kt=Ye.ry,gn=Ye.startAngle,bn=Ye.endAngle,mn=Ye.xRotation,kn=[a,l,1],sr=Dt>Kt?Dt:Kt,yr=Dt>Kt?1:Dt/Kt,jr=Dt>Kt?Kt/Dt:1,zr=JL(null,[["t",-ht,-Tt],["r",-mn],["s",1/yr,1/jr]]);rP.transformMat3(kn,kn,zr),E=$S(0,0,sr,gn,bn,i,kn[0],kn[1]);break;default:break}if(E)break}}return E}function B9(C){for(var i=C.length,a=[],l=[],u=[],E=0;E<i;E++){var P=C[E],j=P[0];j==="M"?(u.length&&(l.push(u),u=[]),u.push([P[1],P[2]])):j==="Z"?u.length&&(a.push(u),u=[]):u.push([P[1],P[2]])}return u.length>0&&l.push(u),{polygons:a,polylines:l}}var tR=nm({hasArc:eR,extractPolygons:B9,isPointInStroke:j9},M);function nR(C,i,a){for(var l=!1,u=0;u<C.length;u++){var E=C[u];if(l=XL(E,i,a),l)break}return l}var QL=function(C){kg(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return nm(nm({},a),{startArrow:!1,endArrow:!1})},i.prototype.initAttrs=function(a){this._setPathArr(a.path),this.setArrow()},i.prototype.onAttrChange=function(a,l,u){C.prototype.onAttrChange.call(this,a,l,u),a==="path"&&this._setPathArr(l),this.setArrow()},i.prototype._setPathArr=function(a){this.attrs.path=YN(a);var l=tR.hasArc(a);this.set("hasArc",l),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},i.prototype.getSegments=function(){var a=this.get("segements");return a||(a=nw(this.attr("path")),this.set("segments",a)),a},i.prototype.setArrow=function(){var a=this.attr(),l=a.startArrow,u=a.endArrow;if(l){var E=this.getStartTangent();p1(this,a,E[0][0],E[0][1],E[1][0],E[1][1])}if(u){var E=this.getEndTangent();AD(this,a,E[0][0],E[0][1],E[1][0],E[1][1])}},i.prototype.isInStrokeOrPath=function(a,l,u,E,P){var j=this.getSegments(),H=this.get("hasArc"),X=!1;if(u){var ee=this.getTotalLength();X=tR.isPointInStroke(j,P,a,l,ee)}if(!X&&E)if(H)X=YL(this,a,l);else{var se=this.attr("path"),Se=tR.extractPolygons(se);X=nR(Se.polygons,a,l)||nR(Se.polylines,a,l)}return X},i.prototype.createPath=function(a){var l=this.attr(),u=this.get("paramsCache");VL(this,a,l,u)},i.prototype.afterDrawPath=function(a){var l=this.get("startArrowShape"),u=this.get("endArrowShape");l&&l.draw(a),u&&u.draw(a)},i.prototype.getTotalLength=function(){var a=this.get("totalLength");return(0,Nn.isNil)(a)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):a},i.prototype.getPoint=function(a){var l=this.get("tCache");l||(this._calculateCurve(),this._setTcache(),l=this.get("tCache"));var u,E,P=this.get("curve");if(!l||l.length===0)return P?{x:P[0][1],y:P[0][2]}:null;(0,Nn.each)(l,function(ee,se){a>=ee[0]&&a<=ee[1]&&(u=(a-ee[0])/(ee[1]-ee[0]),E=se)});var j=P[E];if((0,Nn.isNil)(j)||(0,Nn.isNil)(E))return null;var H=j.length,X=P[E+1];return LS.pointAt(j[H-2],j[H-1],X[1],X[2],X[3],X[4],X[5],X[6],u)},i.prototype._calculateCurve=function(){var a=this.attr().path;this.set("curve",tR.pathToCurve(a))},i.prototype._setTcache=function(){var a=0,l=0,u=[],E,P,j,H,X=this.get("curve");if(!!X){if((0,Nn.each)(X,function(ee,se){j=X[se+1],H=ee.length,j&&(a+=LS.length(ee[H-2],ee[H-1],j[1],j[2],j[3],j[4],j[5],j[6])||0)}),this.set("totalLength",a),a===0){this.set("tCache",[]);return}(0,Nn.each)(X,function(ee,se){j=X[se+1],H=ee.length,j&&(E=[],E[0]=l/a,P=LS.length(ee[H-2],ee[H-1],j[1],j[2],j[3],j[4],j[5],j[6]),l+=P||0,E[1]=l/a,u.push(E))}),this.set("tCache",u)}},i.prototype.getStartTangent=function(){var a=this.getSegments(),l;if(a.length>1){var u=a[0].currentPoint,E=a[1].currentPoint,P=a[1].startTangent;l=[],P?(l.push([u[0]-P[0],u[1]-P[1]]),l.push([u[0],u[1]])):(l.push([E[0],E[1]]),l.push([u[0],u[1]]))}return l},i.prototype.getEndTangent=function(){var a=this.getSegments(),l=a.length,u;if(l>1){var E=a[l-2].currentPoint,P=a[l-1].currentPoint,j=a[l-1].endTangent;u=[],j?(u.push([P[0]-j[0],P[1]-j[1]]),u.push([P[0],P[1]])):(u.push([E[0],E[1]]),u.push([P[0],P[1]]))}return u},i}(G_),OD=QL;function qL(C,i,a,l,u){var E=C.length;if(E<2)return!1;for(var P=0;P<E-1;P++){var j=C[P][0],H=C[P][1],X=C[P+1][0],ee=C[P+1][1];if(Ob(j,H,X,ee,i,a,l))return!0}if(u){var se=C[0],Se=C[E-1];if(Ob(se[0],se[1],Se[0],Se[1],i,a,l))return!0}return!1}var lM=function(C){kg(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.isInStrokeOrPath=function(a,l,u,E,P){var j=this.attr().points,H=!1;return u&&(H=qL(j,P,a,l,!0)),!H&&E&&(H=XL(j,a,l)),H},i.prototype.createPath=function(a){var l=this.attr(),u=l.points;if(!(u.length<2)){a.beginPath();for(var E=0;E<u.length;E++){var P=u[E];E===0?a.moveTo(P[0],P[1]):a.lineTo(P[0],P[1])}a.closePath()}},i}(G_),U9=lM,Z9=function(C){kg(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return nm(nm({},a),{startArrow:!1,endArrow:!1})},i.prototype.initAttrs=function(a){this.setArrow()},i.prototype.onAttrChange=function(a,l,u){C.prototype.onAttrChange.call(this,a,l,u),this.setArrow(),["points"].indexOf(a)!==-1&&this._resetCache()},i.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},i.prototype.setArrow=function(){var a=this.attr(),l=this.attrs,u=l.points,E=l.startArrow,P=l.endArrow,j=u.length,H=u[0][0],X=u[0][1],ee=u[j-1][0],se=u[j-1][1];E&&p1(this,a,u[1][0],u[1][1],H,X),P&&AD(this,a,u[j-2][0],u[j-2][1],ee,se)},i.prototype.isFill=function(){return!1},i.prototype.isInStrokeOrPath=function(a,l,u,E,P){if(!u||!P)return!1;var j=this.attr().points;return qL(j,P,a,l,!1)},i.prototype.isStroke=function(){return!0},i.prototype.createPath=function(a){var l=this.attr(),u=l.points,E=l.startArrow,P=l.endArrow,j=u.length;if(!(u.length<2)){var H=u[0][0],X=u[0][1],ee=u[j-1][0],se=u[j-1][1];if(E&&E.d){var Se=nE(H,X,u[1][0],u[1][1],E.d);H+=Se.dx,X+=Se.dy}if(P&&P.d){var Se=nE(u[j-2][0],u[j-2][1],ee,se,P.d);ee-=Se.dx,se-=Se.dy}a.beginPath(),a.moveTo(H,X);for(var Re=0;Re<j-1;Re++){var Be=u[Re];a.lineTo(Be[0],Be[1])}a.lineTo(ee,se)}},i.prototype.afterDrawPath=function(a){var l=this.get("startArrowShape"),u=this.get("endArrowShape");l&&l.draw(a),u&&u.draw(a)},i.prototype.getTotalLength=function(){var a=this.attr().points,l=this.get("totalLength");return(0,Nn.isNil)(l)?(this.set("totalLength",HN.length(a)),this.get("totalLength")):l},i.prototype.getPoint=function(a){var l=this.attr().points,u=this.get("tCache");u||(this._setTcache(),u=this.get("tCache"));var E,P;return(0,Nn.each)(u,function(j,H){a>=j[0]&&a<=j[1]&&(E=(a-j[0])/(j[1]-j[0]),P=H)}),Ag.pointAt(l[P][0],l[P][1],l[P+1][0],l[P+1][1],E)},i.prototype._setTcache=function(){var a=this.attr().points;if(!(!a||a.length===0)){var l=this.getTotalLength();if(!(l<=0)){var u=0,E=[],P,j;(0,Nn.each)(a,function(H,X){a[X+1]&&(P=[],P[0]=u/l,j=Ag.length(H[0],H[1],a[X+1][0],a[X+1][1]),u+=j,P[1]=u/l,E.push(P))}),this.set("tCache",E)}}},i.prototype.getStartTangent=function(){var a=this.attr().points,l=[];return l.push([a[1][0],a[1][1]]),l.push([a[0][0],a[0][1]]),l},i.prototype.getEndTangent=function(){var a=this.attr().points,l=a.length-1,u=[];return u.push([a[l-1][0],a[l-1][1]]),u.push([a[l][0],a[l][1]]),u},i}(G_),V9=Z9;function e6(C,i,a,l,u,E,P){var j=u/2;return zS(C-j,i-j,a,u,E,P)||zS(C+a-j,i-j,u,l,E,P)||zS(C+j,i+l-j,a,u,E,P)||zS(C-j,i+j,u,l,E,P)}function z9(C,i,a,l,u,E,P,j){var H=E/2;return Ob(C+u,i,C+a-u,i,E,P,j)||Ob(C+a,i+u,C+a,i+l-u,E,P,j)||Ob(C+a-u,i+l,C+u,i+l,E,P,j)||Ob(C,i+l-u,C,i+u,E,P,j)||$S(C+a-u,i+u,u,1.5*Math.PI,2*Math.PI,E,P,j)||$S(C+a-u,i+l-u,u,0,.5*Math.PI,E,P,j)||$S(C+u,i+l-u,u,.5*Math.PI,Math.PI,E,P,j)||$S(C+u,i+u,u,Math.PI,1.5*Math.PI,E,P,j)}var W9=function(C){kg(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return nm(nm({},a),{x:0,y:0,width:0,height:0,radius:0})},i.prototype.isInStrokeOrPath=function(a,l,u,E,P){var j=this.attr(),H=j.x,X=j.y,ee=j.width,se=j.height,Se=j.radius;if(Se){var Be=!1;return u&&(Be=z9(H,X,ee,se,Se,P,a,l)),!Be&&E&&(Be=YL(this,a,l)),Be}else{var Re=P/2;if(E&&u)return zS(H-Re,X-Re,ee+Re,se+Re,a,l);if(E)return zS(H,X,ee,se,a,l);if(u)return e6(H,X,ee,se,P,a,l)}},i.prototype.createPath=function(a){var l=this.attr(),u=l.x,E=l.y,P=l.width,j=l.height,H=l.radius;if(a.beginPath(),H===0)a.rect(u,E,P,j);else{var X=M9(H),ee=X[0],se=X[1],Se=X[2],Re=X[3];a.moveTo(u+ee,E),a.lineTo(u+P-se,E),se!==0&&a.arc(u+P-se,E+se,se,-Math.PI/2,0),a.lineTo(u+P,E+j-Se),Se!==0&&a.arc(u+P-Se,E+j-Se,Se,0,Math.PI/2),a.lineTo(u+Re,E+j),Re!==0&&a.arc(u+Re,E+j-Re,Re,Math.PI/2,Math.PI),a.lineTo(u,E+ee),ee!==0&&a.arc(u+ee,E+ee,ee,Math.PI,Math.PI*1.5),a.closePath()}},i}(G_),t6=W9,n6=function(C){kg(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return nm(nm({},a),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},i.prototype.isOnlyHitBox=function(){return!0},i.prototype.initAttrs=function(a){this._assembleFont(),a.text&&this._setText(a.text)},i.prototype._assembleFont=function(){var a=this.attrs;a.font=DI(a)},i.prototype._setText=function(a){var l=null;(0,Nn.isString)(a)&&a.indexOf(`
|
||
`)!==-1&&(l=a.split(`
|
||
`)),this.set("textArr",l)},i.prototype.onAttrChange=function(a,l,u){C.prototype.onAttrChange.call(this,a,l,u),a.startsWith("font")&&this._assembleFont(),a==="text"&&this._setText(l)},i.prototype._getSpaceingY=function(){var a=this.attrs,l=a.lineHeight,u=a.fontSize*1;return l?l-u:u*.14},i.prototype._drawTextArr=function(a,l,u){var E=this.attrs,P=E.textBaseline,j=E.x,H=E.y,X=E.fontSize*1,ee=this._getSpaceingY(),se=w7(E.text,E.fontSize,E.lineHeight),Se;(0,Nn.each)(l,function(Re,Be){Se=H+Be*(ee+X)-se+X,P==="middle"&&(Se+=se-X-(se-X)/2),P==="top"&&(Se+=se-X),(0,Nn.isNil)(Re)||(u?a.fillText(Re,j,Se):a.strokeText(Re,j,Se))})},i.prototype._drawText=function(a,l){var u=this.attr(),E=u.x,P=u.y,j=this.get("textArr");if(j)this._drawTextArr(a,j,l);else{var H=u.text;(0,Nn.isNil)(H)||(l?a.fillText(H,E,P):a.strokeText(H,E,P))}},i.prototype.strokeAndFill=function(a){var l=this.attrs,u=l.lineWidth,E=l.opacity,P=l.strokeOpacity,j=l.fillOpacity;this.isStroke()&&u>0&&(!(0,Nn.isNil)(P)&&P!==1&&(a.globalAlpha=E),this.stroke(a)),this.isFill()&&(!(0,Nn.isNil)(j)&&j!==1?(a.globalAlpha=j,this.fill(a),a.globalAlpha=E):this.fill(a)),this.afterDrawPath(a)},i.prototype.fill=function(a){this._drawText(a,!0)},i.prototype.stroke=function(a){this._drawText(a,!1)},i}(G_),r6=n6;function H9(C,i){if(i){var a=ap(i);return ep(a,C)}return C}function a6(C,i,a){var l=C.getTotalMatrix();if(l){var u=H9([i,a,1],l),E=u[0],P=u[1];return[E,P]}return[i,a]}function i6(C,i,a){if(C.isCanvas&&C.isCanvas())return!0;if(!mv(C)||C.cfg.isInView===!1)return!1;if(C.cfg.clipShape){var l=a6(C,i,a),u=l[0],E=l[1];if(C.isClipped(u,E))return!1}var P=C.cfg.cacheCanvasBBox||C.getCanvasBBox();return i>=P.minX&&i<=P.maxX&&a>=P.minY&&a<=P.maxY}function ID(C,i,a){if(!i6(C,i,a))return null;for(var l=null,u=C.getChildren(),E=u.length,P=E-1;P>=0;P--){var j=u[P];if(j.isGroup())l=ID(j,i,a);else if(i6(j,i,a)){var H=j,X=a6(j,i,a),ee=X[0],se=X[1];H.isInShape(ee,se)&&(l=j)}if(l)break}return l}var o6=function(C){kg(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.getDefaultCfg=function(){var a=C.prototype.getDefaultCfg.call(this);return a.renderer="canvas",a.autoDraw=!0,a.localRefresh=!0,a.refreshElements=[],a.clipView=!0,a.quickHit=!1,a},i.prototype.onCanvasChange=function(a){(a==="attr"||a==="sort"||a==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},i.prototype.getShapeBase=function(){return d},i.prototype.getGroupBase=function(){return GL},i.prototype.getPixelRatio=function(){var a=this.get("pixelRatio")||ED();return a>=1?Math.ceil(a):1},i.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},i.prototype.createDom=function(){var a=document.createElement("canvas"),l=a.getContext("2d");return this.set("context",l),a},i.prototype.setDOMSize=function(a,l){C.prototype.setDOMSize.call(this,a,l);var u=this.get("context"),E=this.get("el"),P=this.getPixelRatio();E.width=P*a,E.height=P*l,P>1&&u.scale(P,P)},i.prototype.clear=function(){C.prototype.clear.call(this),this._clearFrame();var a=this.get("context"),l=this.get("el");a.clearRect(0,0,l.width,l.height)},i.prototype.getShape=function(a,l){var u;return this.get("quickHit")?u=ID(this,a,l):u=C.prototype.getShape.call(this,a,l,null),u},i.prototype._getRefreshRegion=function(){var a=this.get("refreshElements"),l=this.getViewRange(),u;if(a.length&&a[0]===this)u=l;else if(u=HL(a),u){u.minX=Math.floor(u.minX),u.minY=Math.floor(u.minY),u.maxX=Math.ceil(u.maxX),u.maxY=Math.ceil(u.maxY),u.maxY+=1;var E=this.get("clipView");E&&(u=aM(u,l))}return u},i.prototype.refreshElement=function(a){var l=this.get("refreshElements");l.push(a)},i.prototype._clearFrame=function(){var a=this.get("drawFrame");a&&((0,Nn.clearAnimationFrame)(a),this.set("drawFrame",null),this.set("refreshElements",[]))},i.prototype.draw=function(){var a=this.get("drawFrame");this.get("autoDraw")&&a||this._startDraw()},i.prototype._drawAll=function(){var a=this.get("context"),l=this.get("el"),u=this.getChildren();a.clearRect(0,0,l.width,l.height),Rb(a,this),kD(a,u),this.set("refreshElements",[])},i.prototype._drawRegion=function(){var a=this.get("context"),l=this.get("refreshElements"),u=this.getChildren(),E=this._getRefreshRegion();E?(a.clearRect(E.minX,E.minY,E.maxX-E.minX,E.maxY-E.minY),a.save(),a.beginPath(),a.rect(E.minX,E.minY,E.maxX-E.minX,E.maxY-E.minY),a.clip(),Rb(a,this),k9(this,u,E),kD(a,u,E),a.restore()):l.length&&ZL(l),(0,Nn.each)(l,function(P){P.get("hasChanged")&&P.set("hasChanged",!1)}),this.set("refreshElements",[])},i.prototype._startDraw=function(){var a=this,l=this.get("drawFrame");l||(l=(0,Nn.requestAnimationFrame)(function(){a.get("localRefresh")?a._drawRegion():a._drawAll(),a.set("drawFrame",null)}),this.set("drawFrame",l))},i.prototype.skipDraw=function(){},i.prototype.removeDom=function(){var a=this.get("el");a.width=0,a.height=0,a.parentNode.removeChild(a)},i}(CN),v1=o6,zW="0.5.12",rR=function(i,a){return rR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var E in u)Object.prototype.hasOwnProperty.call(u,E)&&(l[E]=u[E])},rR(i,a)};function k_(C,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");rR(C,i);function a(){this.constructor=C}C.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}var Dv=function(){return Dv=Object.assign||function(a){for(var l,u=1,E=arguments.length;u<E;u++){l=arguments[u];for(var P in l)Object.prototype.hasOwnProperty.call(l,P)&&(a[P]=l[P])}return a},Dv.apply(this,arguments)};function G9(C,i){var a={};for(var l in C)Object.prototype.hasOwnProperty.call(C,l)&&i.indexOf(l)<0&&(a[l]=C[l]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(C);u<l.length;u++)i.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(C,l[u])&&(a[l[u]]=C[l[u]]);return a}function $9(C,i,a,l){var u=arguments.length,E=u<3?i:l===null?l=Object.getOwnPropertyDescriptor(i,a):l,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(C,i,a,l);else for(var j=C.length-1;j>=0;j--)(P=C[j])&&(E=(u<3?P(E):u>3?P(i,a,E):P(i,a))||E);return u>3&&E&&Object.defineProperty(i,a,E),E}function DD(C,i){return function(a,l){i(a,l,C)}}function K9(C,i,a,l,u,E){function P(Tt){if(Tt!==void 0&&typeof Tt!="function")throw new TypeError("Function expected");return Tt}for(var j=l.kind,H=j==="getter"?"get":j==="setter"?"set":"value",X=!i&&C?l.static?C:C.prototype:null,ee=i||(X?Object.getOwnPropertyDescriptor(X,l.name):{}),se,Se=!1,Re=a.length-1;Re>=0;Re--){var Be={};for(var Ye in l)Be[Ye]=Ye==="access"?{}:l[Ye];for(var Ye in l.access)Be.access[Ye]=l.access[Ye];Be.addInitializer=function(Tt){if(Se)throw new TypeError("Cannot add initializers after decoration has completed");E.push(P(Tt||null))};var ht=(0,a[Re])(j==="accessor"?{get:ee.get,set:ee.set}:ee[H],Be);if(j==="accessor"){if(ht===void 0)continue;if(ht===null||typeof ht!="object")throw new TypeError("Object expected");(se=P(ht.get))&&(ee.get=se),(se=P(ht.set))&&(ee.set=se),(se=P(ht.init))&&u.unshift(se)}else(se=P(ht))&&(j==="field"?u.unshift(se):ee[H]=se)}X&&Object.defineProperty(X,l.name,ee),Se=!0}function Y9(C,i,a){for(var l=arguments.length>2,u=0;u<i.length;u++)a=l?i[u].call(C,a):i[u].call(C);return l?a:void 0}function s6(C){return typeof C=="symbol"?C:"".concat(C)}function X9(C,i,a){return typeof i=="symbol"&&(i=i.description?"[".concat(i.description,"]"):""),Object.defineProperty(C,"name",{configurable:!0,value:a?"".concat(a," ",i):i})}function J9(C,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(C,i)}function ND(C,i,a,l){function u(E){return E instanceof a?E:new a(function(P){P(E)})}return new(a||(a=Promise))(function(E,P){function j(ee){try{X(l.next(ee))}catch(se){P(se)}}function H(ee){try{X(l.throw(ee))}catch(se){P(se)}}function X(ee){ee.done?E(ee.value):u(ee.value).then(j,H)}X((l=l.apply(C,i||[])).next())})}function l6(C,i){var a={label:0,sent:function(){if(E[0]&1)throw E[1];return E[1]},trys:[],ops:[]},l,u,E,P;return P={next:j(0),throw:j(1),return:j(2)},typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function j(X){return function(ee){return H([X,ee])}}function H(X){if(l)throw new TypeError("Generator is already executing.");for(;P&&(P=0,X[0]&&(a=0)),a;)try{if(l=1,u&&(E=X[0]&2?u.return:X[0]?u.throw||((E=u.return)&&E.call(u),0):u.next)&&!(E=E.call(u,X[1])).done)return E;switch(u=0,E&&(X=[X[0]&2,E.value]),X[0]){case 0:case 1:E=X;break;case 4:return a.label++,{value:X[1],done:!1};case 5:a.label++,u=X[1],X=[0];continue;case 7:X=a.ops.pop(),a.trys.pop();continue;default:if(E=a.trys,!(E=E.length>0&&E[E.length-1])&&(X[0]===6||X[0]===2)){a=0;continue}if(X[0]===3&&(!E||X[1]>E[0]&&X[1]<E[3])){a.label=X[1];break}if(X[0]===6&&a.label<E[1]){a.label=E[1],E=X;break}if(E&&a.label<E[2]){a.label=E[2],a.ops.push(X);break}E[2]&&a.ops.pop(),a.trys.pop();continue}X=i.call(C,a)}catch(ee){X=[6,ee],u=0}finally{l=E=0}if(X[0]&5)throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}}var aR=Object.create?function(C,i,a,l){l===void 0&&(l=a);var u=Object.getOwnPropertyDescriptor(i,a);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(C,l,u)}:function(C,i,a,l){l===void 0&&(l=a),C[l]=i[a]};function Q9(C,i){for(var a in C)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&aR(i,C,a)}function LD(C){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&C[i],l=0;if(a)return a.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&l>=C.length&&(C=void 0),{value:C&&C[l++],done:!C}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ib(C,i){var a=typeof Symbol=="function"&&C[Symbol.iterator];if(!a)return C;var l=a.call(C),u,E=[],P;try{for(;(i===void 0||i-- >0)&&!(u=l.next()).done;)E.push(u.value)}catch(j){P={error:j}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(P)throw P.error}}return E}function KS(){for(var C=[],i=0;i<arguments.length;i++)C=C.concat(Ib(arguments[i]));return C}function c6(){for(var C=0,i=0,a=arguments.length;i<a;i++)C+=arguments[i].length;for(var l=Array(C),u=0,i=0;i<a;i++)for(var E=arguments[i],P=0,j=E.length;P<j;P++,u++)l[u]=E[P];return l}function q9(C,i,a){if(a||arguments.length===2)for(var l=0,u=i.length,E;l<u;l++)(E||!(l in i))&&(E||(E=Array.prototype.slice.call(i,0,l)),E[l]=i[l]);return C.concat(E||Array.prototype.slice.call(i))}function cM(C){return this instanceof cM?(this.v=C,this):new cM(C)}function X0(C,i,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=a.apply(C,i||[]),u,E=[];return u={},P("next"),P("throw"),P("return"),u[Symbol.asyncIterator]=function(){return this},u;function P(Se){l[Se]&&(u[Se]=function(Re){return new Promise(function(Be,Ye){E.push([Se,Re,Be,Ye])>1||j(Se,Re)})})}function j(Se,Re){try{H(l[Se](Re))}catch(Be){se(E[0][3],Be)}}function H(Se){Se.value instanceof cM?Promise.resolve(Se.value.v).then(X,ee):se(E[0][2],Se)}function X(Se){j("next",Se)}function ee(Se){j("throw",Se)}function se(Se,Re){Se(Re),E.shift(),E.length&&j(E[0][0],E[0][1])}}function u6(C){var i,a;return i={},l("next"),l("throw",function(u){throw u}),l("return"),i[Symbol.iterator]=function(){return this},i;function l(u,E){i[u]=C[u]?function(P){return(a=!a)?{value:cM(C[u](P)),done:!1}:E?E(P):P}:E}}function f6(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=C[Symbol.asyncIterator],a;return i?i.call(C):(C=typeof LD=="function"?LD(C):C[Symbol.iterator](),a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a);function l(E){a[E]=C[E]&&function(P){return new Promise(function(j,H){P=C[E](P),u(j,H,P.done,P.value)})}}function u(E,P,j,H){Promise.resolve(H).then(function(X){E({value:X,done:j})},P)}}function d6(C,i){return Object.defineProperty?Object.defineProperty(C,"raw",{value:i}):C.raw=i,C}var ej=Object.create?function(C,i){Object.defineProperty(C,"default",{enumerable:!0,value:i})}:function(C,i){C.default=i};function tj(C){if(C&&C.__esModule)return C;var i={};if(C!=null)for(var a in C)a!=="default"&&Object.prototype.hasOwnProperty.call(C,a)&&aR(i,C,a);return ej(i,C),i}function nj(C){return C&&C.__esModule?C:{default:C}}function Db(C,i,a,l){if(a==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?C!==i||!l:!i.has(C))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?l:a==="a"?l.call(C):l?l.value:i.get(C)}function rj(C,i,a,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?C!==i||!u:!i.has(C))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(C,a):u?u.value=a:i.set(C,a),a}function aj(C,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof C=="function"?i===C:C.has(i)}function ij(C,i,a){if(i!=null){if(typeof i!="object"&&typeof i!="function")throw new TypeError("Object expected.");var l;if(a){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");l=i[Symbol.asyncDispose]}if(l===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");l=i[Symbol.dispose]}if(typeof l!="function")throw new TypeError("Object not disposable.");C.stack.push({value:i,dispose:l,async:a})}else a&&C.stack.push({async:!0});return i}var oj=typeof SuppressedError=="function"?SuppressedError:function(C,i,a){var l=new Error(a);return l.name="SuppressedError",l.error=C,l.suppressed=i,l};function sj(C){function i(l){C.error=C.hasError?new oj(l,C.error,"An error was suppressed during disposal."):l,C.hasError=!0}function a(){for(;C.stack.length;){var l=C.stack.pop();try{var u=l.dispose&&l.dispose.call(l.value);if(l.async)return Promise.resolve(u).then(a,function(E){return i(E),a()})}catch(E){i(E)}}if(C.hasError)throw C.error}return a()}var p6={__extends:k_,__assign:Dv,__rest:G9,__decorate:$9,__param:DD,__metadata:J9,__awaiter:ND,__generator:l6,__createBinding:aR,__exportStar:Q9,__values:LD,__read:Ib,__spread:KS,__spreadArrays:c6,__spreadArray:q9,__await:cM,__asyncGenerator:X0,__asyncDelegator:u6,__asyncValues:f6,__makeTemplateObject:d6,__importStar:tj,__importDefault:nj,__classPrivateFieldGet:Db,__classPrivateFieldSet:rj,__classPrivateFieldIn:aj,__addDisposableResource:ij,__disposeResources:sj},FD={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},Yp={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},WW=null;function $_(C){return document.createElementNS("http://www.w3.org/2000/svg",C)}function hw(C){var i=FD[C.type],a=C.getParent();if(!i)throw new Error("the type "+C.type+" is not supported by svg");var l=$_(i);if(C.get("id")&&(l.id=C.get("id")),C.set("el",l),C.set("attrs",{}),a){var u=a.get("el");u||(u=a.createDom(),a.set("el",u)),u.appendChild(l)}return l}function jD(C,i){var a=C.get("el"),l=(0,Nn.toArray)(a.children).sort(i),u=document.createDocumentFragment();l.forEach(function(E){u.appendChild(E)}),a.appendChild(u)}function lj(C,i){var a=C.parentNode,l=Array.from(a.childNodes).filter(function(j){return j.nodeType===1&&j.nodeName.toLowerCase()!=="defs"}),u=l[i],E=l.indexOf(C);if(u){if(E>i)a.insertBefore(C,u);else if(E<i){var P=l[i+1];P?a.insertBefore(C,P):a.appendChild(C)}}else a.appendChild(C)}function YS(C,i){var a=C.cfg.el,l=C.attr(),u={dx:l.shadowOffsetX,dy:l.shadowOffsetY,blur:l.shadowBlur,color:l.shadowColor};if(!u.dx&&!u.dy&&!u.blur&&!u.color)a.removeAttribute("filter");else{var E=i.find("filter",u);E||(E=i.addShadow(u)),a.setAttribute("filter","url(#"+E+")")}}function XS(C){var i=C.attr().matrix;if(i){for(var a=C.cfg.el,l=[],u=0;u<9;u+=3)l.push(i[u]+","+i[u+1]);l=l.join(","),l.indexOf("NaN")===-1?a.setAttribute("transform","matrix("+l+")"):console.warn("invalid matrix:",i)}}function mw(C,i){var a=C.getClip(),l=C.get("el");if(!a)l.removeAttribute("clip-path");else if(a&&!l.hasAttribute("clip-path")){hw(a),a.createPath(i);var u=i.addClip(a);l.setAttribute("clip-path","url(#"+u+")")}}function BD(C,i){i.forEach(function(a){a.draw(C)})}function v6(C,i){var a=C.get("canvas");if(a&&a.get("autoDraw")){var l=a.get("context"),u=C.getParent(),E=u?u.getChildren():[a],P=C.get("el");if(i==="remove"){var j=C.get("isClipShape");if(j){var H=P&&P.parentNode,X=H&&H.parentNode;H&&X&&X.removeChild(H)}else P&&P.parentNode&&P.parentNode.removeChild(P)}else if(i==="show")P.setAttribute("visibility","visible");else if(i==="hide")P.setAttribute("visibility","hidden");else if(i==="zIndex")lj(P,E.indexOf(C));else if(i==="sort"){var ee=C.get("children");ee&&ee.length&&jD(C,function(se,Se){return ee.indexOf(se)-ee.indexOf(Se)?1:0})}else i==="clear"?P&&(P.innerHTML=""):i==="matrix"?XS(C):i==="clip"?mw(C,l):i==="attr"||i==="add"&&C.draw(l)}}var cj=function(C){k_(i,C);function i(){return C!==null&&C.apply(this,arguments)||this}return i.prototype.isEntityGroup=function(){return!0},i.prototype.createDom=function(){var a=$_("g");this.set("el",a);var l=this.getParent();if(l){var u=l.get("el");u||(u=l.createDom(),l.set("el",u)),u.appendChild(a)}return a},i.prototype.afterAttrsChange=function(a){C.prototype.afterAttrsChange.call(this,a);var l=this.get("canvas");if(l&&l.get("autoDraw")){var u=l.get("context");this.createPath(u,a)}},i.prototype.onCanvasChange=function(a){v6(this,a)},i.prototype.getShapeBase=function(){return _},i.prototype.getGroupBase=function(){return i},i.prototype.draw=function(a){var l=this.getChildren(),u=this.get("el");this.get("destroyed")?u&&u.parentNode.removeChild(u):(u||this.createDom(),mw(this,a),this.createPath(a),l.length&&BD(a,l))},i.prototype.createPath=function(a,l){var u=this.attr(),E=this.get("el");(0,Nn.each)(l||u,function(P,j){Yp[j]&&E.setAttribute(Yp[j],P)}),XS(this)},i}(wN),UD=cj,uj=function(C){k_(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="svg",a.canFill=!1,a.canStroke=!1,a}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return Dv(Dv({},a),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},i.prototype.afterAttrsChange=function(a){C.prototype.afterAttrsChange.call(this,a);var l=this.get("canvas");if(l&&l.get("autoDraw")){var u=l.get("context");this.draw(u,a)}},i.prototype.getShapeBase=function(){return _},i.prototype.getGroupBase=function(){return UD},i.prototype.onCanvasChange=function(a){v6(this,a)},i.prototype.calculateBBox=function(){var a=this.get("el"),l=null;if(a)l=a.getBBox();else{var u=CI(this.get("type"));u&&(l=u(this))}if(l){var E=l.x,P=l.y,j=l.width,H=l.height,X=this.getHitLineWidth(),ee=X/2,se=E-ee,Se=P-ee,Re=E+j+ee,Be=P+H+ee;return{x:se,y:Se,minX:se,minY:Se,maxX:Re,maxY:Be,width:j+X,height:H+X}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},i.prototype.isFill=function(){var a=this.attr(),l=a.fill,u=a.fillStyle;return(l||u||this.isClipShape())&&this.canFill},i.prototype.isStroke=function(){var a=this.attr(),l=a.stroke,u=a.strokeStyle;return(l||u)&&this.canStroke},i.prototype.draw=function(a,l){var u=this.get("el");this.get("destroyed")?u&&u.parentNode.removeChild(u):(u||hw(this),mw(this,a),this.createPath(a,l),this.shadow(a,l),this.strokeAndFill(a,l),this.transform(l))},i.prototype.createPath=function(a,l){},i.prototype.strokeAndFill=function(a,l){var u=l||this.attr(),E=u.fill,P=u.fillStyle,j=u.stroke,H=u.strokeStyle,X=u.fillOpacity,ee=u.strokeOpacity,se=u.lineWidth,Se=this.get("el");this.canFill&&(l?"fill"in u?this._setColor(a,"fill",E):"fillStyle"in u&&this._setColor(a,"fill",P):this._setColor(a,"fill",E||P),X&&Se.setAttribute(Yp.fillOpacity,X)),this.canStroke&&se>0&&(l?"stroke"in u?this._setColor(a,"stroke",j):"strokeStyle"in u&&this._setColor(a,"stroke",H):this._setColor(a,"stroke",j||H),ee&&Se.setAttribute(Yp.strokeOpacity,ee),se&&Se.setAttribute(Yp.lineWidth,se))},i.prototype._setColor=function(a,l,u){var E=this.get("el");if(!u){E.setAttribute(Yp[l],"none");return}if(u=u.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(u)){var P=a.find("gradient",u);P||(P=a.addGradient(u)),E.setAttribute(Yp[l],"url(#"+P+")")}else if(/^[p,P]{1}[\s]*\(/.test(u)){var P=a.find("pattern",u);P||(P=a.addPattern(u)),E.setAttribute(Yp[l],"url(#"+P+")")}else E.setAttribute(Yp[l],u)},i.prototype.shadow=function(a,l){var u=this.attr(),E=l||u,P=E.shadowOffsetX,j=E.shadowOffsetY,H=E.shadowBlur,X=E.shadowColor;(P||j||H||X)&&YS(this,a)},i.prototype.transform=function(a){var l=this.attr(),u=(a||l).matrix;u&&XS(this)},i.prototype.isInShape=function(a,l){return this.isPointInPath(a,l)},i.prototype.isPointInPath=function(a,l){var u=this.get("el"),E=this.get("canvas"),P=E.get("el").getBoundingClientRect(),j=a+P.left,H=l+P.top,X=document.elementFromPoint(j,H);return!!(X&&X.isEqualNode(u))},i.prototype.getHitLineWidth=function(){var a=this.attrs,l=a.lineWidth,u=a.lineAppendWidth;return this.isStroke()?l+u:0},i}(TN),C0=uj,fj=function(C){k_(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="circle",a.canFill=!0,a.canStroke=!0,a}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return Dv(Dv({},a),{x:0,y:0,r:0})},i.prototype.createPath=function(a,l){var u=this.attr(),E=this.get("el");(0,Nn.each)(l||u,function(P,j){j==="x"||j==="y"?E.setAttribute("c"+j,P):Yp[j]&&E.setAttribute(Yp[j],P)})},i}(C0),HW=fj,dj=function(C){k_(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="dom",a.canFill=!1,a.canStroke=!1,a}return i.prototype.createPath=function(a,l){var u=this.attr(),E=this.get("el");if((0,Nn.each)(l||u,function(X,ee){Yp[ee]&&E.setAttribute(Yp[ee],X)}),typeof u.html=="function"){var P=u.html.call(this,u);if(P instanceof Element||P instanceof HTMLDocument){for(var j=E.childNodes,H=j.length-1;H>=0;H--)E.removeChild(j[H]);E.appendChild(P)}else E.innerHTML=P}else E.innerHTML=u.html},i}(C0),h6=dj,m6=function(C){k_(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="ellipse",a.canFill=!0,a.canStroke=!0,a}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return Dv(Dv({},a),{x:0,y:0,rx:0,ry:0})},i.prototype.createPath=function(a,l){var u=this.attr(),E=this.get("el");(0,Nn.each)(l||u,function(P,j){j==="x"||j==="y"?E.setAttribute("c"+j,P):Yp[j]&&E.setAttribute(Yp[j],P)})},i}(C0),pj=m6,vj=function(C){k_(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="image",a.canFill=!1,a.canStroke=!1,a}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return Dv(Dv({},a),{x:0,y:0,width:0,height:0})},i.prototype.createPath=function(a,l){var u=this,E=this.attr(),P=this.get("el");(0,Nn.each)(l||E,function(j,H){H==="img"?u._setImage(E.img):Yp[H]&&P.setAttribute(Yp[H],j)})},i.prototype.setAttr=function(a,l){this.attrs[a]=l,a==="img"&&this._setImage(l)},i.prototype._setImage=function(a){var l=this.attr(),u=this.get("el");if((0,Nn.isString)(a))u.setAttribute("href",a);else if(a instanceof window.Image)l.width||(u.setAttribute("width",a.width),this.attr("width",a.width)),l.height||(u.setAttribute("height",a.height),this.attr("height",a.height)),u.setAttribute("href",a.src);else if(a instanceof HTMLElement&&(0,Nn.isString)(a.nodeName)&&a.nodeName.toUpperCase()==="CANVAS")u.setAttribute("href",a.toDataURL());else if(a instanceof ImageData){var E=document.createElement("canvas");E.setAttribute("width",""+a.width),E.setAttribute("height",""+a.height),E.getContext("2d").putImageData(a,0,0),l.width||(u.setAttribute("width",""+a.width),this.attr("width",a.width)),l.height||(u.setAttribute("height",""+a.height),this.attr("height",a.height)),u.setAttribute("href",E.toDataURL())}},i}(C0),g6=vj,_6=function(C){k_(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="line",a.canFill=!1,a.canStroke=!0,a}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return Dv(Dv({},a),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},i.prototype.createPath=function(a,l){var u=this.attr(),E=this.get("el");(0,Nn.each)(l||u,function(P,j){if(j==="startArrow"||j==="endArrow")if(P){var H=(0,Nn.isObject)(P)?a.addArrow(u,Yp[j]):a.getDefaultArrow(u,Yp[j]);E.setAttribute(Yp[j],"url(#"+H+")")}else E.removeAttribute(Yp[j]);else Yp[j]&&E.setAttribute(Yp[j],P)})},i.prototype.getTotalLength=function(){var a=this.attr(),l=a.x1,u=a.y1,E=a.x2,P=a.y2;return Ag.length(l,u,E,P)},i.prototype.getPoint=function(a){var l=this.attr(),u=l.x1,E=l.y1,P=l.x2,j=l.y2;return Ag.pointAt(u,E,P,j,a)},i}(C0),hj=_6,iR={circle:function(i,a,l){return[["M",i,a],["m",-l,0],["a",l,l,0,1,0,l*2,0],["a",l,l,0,1,0,-l*2,0]]},square:function(i,a,l){return[["M",i-l,a-l],["L",i+l,a-l],["L",i+l,a+l],["L",i-l,a+l],["Z"]]},diamond:function(i,a,l){return[["M",i-l,a],["L",i,a-l],["L",i+l,a],["L",i,a+l],["Z"]]},triangle:function(i,a,l){var u=l*Math.sin(1/3*Math.PI);return[["M",i-l,a+u],["L",i,a-u],["L",i+l,a+u],["z"]]},triangleDown:function(i,a,l){var u=l*Math.sin(1/3*Math.PI);return[["M",i-l,a-u],["L",i+l,a-u],["L",i,a+u],["Z"]]}},y6={get:function(i){return iR[i]},register:function(i,a){iR[i]=a},remove:function(i){delete iR[i]},getAll:function(){return iR}},mj=function(C){k_(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="marker",a.canFill=!0,a.canStroke=!0,a}return i.prototype.createPath=function(a){var l=this.get("el");l.setAttribute("d",this._assembleMarker())},i.prototype._assembleMarker=function(){var a=this._getPath();return(0,Nn.isArray)(a)?a.map(function(l){return l.join(" ")}).join(""):a},i.prototype._getPath=function(){var a=this.attr(),l=a.x,u=a.y,E=a.r||a.radius,P=a.symbol||"circle",j;return(0,Nn.isFunction)(P)?j=P:j=y6.get(P),j?j(l,u,E):(console.warn(j+" symbol is not exist."),null)},i.symbolsFactory=y6,i}(C0),gj=mj,uM=function(C){k_(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="path",a.canFill=!0,a.canStroke=!0,a}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return Dv(Dv({},a),{startArrow:!1,endArrow:!1})},i.prototype.createPath=function(a,l){var u=this,E=this.attr(),P=this.get("el");(0,Nn.each)(l||E,function(j,H){if(H==="path"&&(0,Nn.isArray)(j))P.setAttribute("d",u._formatPath(j));else if(H==="startArrow"||H==="endArrow")if(j){var X=(0,Nn.isObject)(j)?a.addArrow(E,Yp[H]):a.getDefaultArrow(E,Yp[H]);P.setAttribute(Yp[H],"url(#"+X+")")}else P.removeAttribute(Yp[H]);else Yp[H]&&P.setAttribute(Yp[H],j)})},i.prototype._formatPath=function(a){var l=a.map(function(u){return u.join(" ")}).join("");return~l.indexOf("NaN")?"":l},i.prototype.getTotalLength=function(){var a=this.get("el");return a?a.getTotalLength():null},i.prototype.getPoint=function(a){var l=this.get("el"),u=this.getTotalLength();if(u===0)return null;var E=l?l.getPointAtLength(a*u):null;return E?{x:E.x,y:E.y}:null},i}(C0),oR=uM,_j=function(C){k_(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="polygon",a.canFill=!0,a.canStroke=!0,a}return i.prototype.createPath=function(a,l){var u=this.attr(),E=this.get("el");(0,Nn.each)(l||u,function(P,j){j==="points"&&(0,Nn.isArray)(P)&&P.length>=2?E.setAttribute("points",P.map(function(H){return H[0]+","+H[1]}).join(" ")):Yp[j]&&E.setAttribute(Yp[j],P)})},i}(C0),yj=_j,bj=function(C){k_(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="polyline",a.canFill=!0,a.canStroke=!0,a}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return Dv(Dv({},a),{startArrow:!1,endArrow:!1})},i.prototype.onAttrChange=function(a,l,u){C.prototype.onAttrChange.call(this,a,l,u),["points"].indexOf(a)!==-1&&this._resetCache()},i.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},i.prototype.createPath=function(a,l){var u=this.attr(),E=this.get("el");(0,Nn.each)(l||u,function(P,j){j==="points"&&(0,Nn.isArray)(P)&&P.length>=2?E.setAttribute("points",P.map(function(H){return H[0]+","+H[1]}).join(" ")):Yp[j]&&E.setAttribute(Yp[j],P)})},i.prototype.getTotalLength=function(){var a=this.attr().points,l=this.get("totalLength");return(0,Nn.isNil)(l)?(this.set("totalLength",HN.length(a)),this.get("totalLength")):l},i.prototype.getPoint=function(a){var l=this.attr().points,u=this.get("tCache");u||(this._setTcache(),u=this.get("tCache"));var E,P;return(0,Nn.each)(u,function(j,H){a>=j[0]&&a<=j[1]&&(E=(a-j[0])/(j[1]-j[0]),P=H)}),Ag.pointAt(l[P][0],l[P][1],l[P+1][0],l[P+1][1],E)},i.prototype._setTcache=function(){var a=this.attr().points;if(!(!a||a.length===0)){var l=this.getTotalLength();if(!(l<=0)){var u=0,E=[],P,j;(0,Nn.each)(a,function(H,X){a[X+1]&&(P=[],P[0]=u/l,j=Ag.length(H[0],H[1],a[X+1][0],a[X+1][1]),u+=j,P[1]=u/l,E.push(P))}),this.set("tCache",E)}}},i.prototype.getStartTangent=function(){var a=this.attr().points,l=[];return l.push([a[1][0],a[1][1]]),l.push([a[0][0],a[0][1]]),l},i.prototype.getEndTangent=function(){var a=this.attr().points,l=a.length-1,u=[];return u.push([a[l-1][0],a[l-1][1]]),u.push([a[l][0],a[l][1]]),u},i}(C0),xj=bj,Ej=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,Sj=/[^\s,]+/gi;function Cj(C){var i=0,a=0,l=0,u=0;return(0,Nn.isArray)(C)?C.length===1?i=a=l=u=C[0]:C.length===2?(i=l=C[0],a=u=C[1]):C.length===3?(i=C[0],a=u=C[1],l=C[2]):(i=C[0],a=C[1],l=C[2],u=C[3]):i=a=l=u=C,{r1:i,r2:a,r3:l,r4:u}}function GW(C){if(C=C||[],isArray(C))return C;if(isString(C))return C=C.match(Ej),each(C,function(i,a){if(i=i.match(Sj),i[0].length>1){var l=i[0].charAt(0);i.splice(1,0,i[0].substr(1)),i[0]=l}each(i,function(u,E){isNaN(u)||(i[E]=+u)}),C[a]=i}),C}var wj=function(C){k_(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="rect",a.canFill=!0,a.canStroke=!0,a}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return Dv(Dv({},a),{x:0,y:0,width:0,height:0,radius:0})},i.prototype.createPath=function(a,l){var u=this,E=this.attr(),P=this.get("el"),j=!1,H=["x","y","width","height","radius"];(0,Nn.each)(l||E,function(X,ee){H.indexOf(ee)!==-1&&!j?(P.setAttribute("d",u._assembleRect(E)),j=!0):H.indexOf(ee)===-1&&Yp[ee]&&P.setAttribute(Yp[ee],X)})},i.prototype._assembleRect=function(a){var l=a.x,u=a.y,E=a.width,P=a.height,j=a.radius;if(!j)return"M "+l+","+u+" l "+E+",0 l 0,"+P+" l"+-E+" 0 z";var H=Cj(j);(0,Nn.isArray)(j)?j.length===1?H.r1=H.r2=H.r3=H.r4=j[0]:j.length===2?(H.r1=H.r3=j[0],H.r2=H.r4=j[1]):j.length===3?(H.r1=j[0],H.r2=H.r4=j[1],H.r3=j[2]):(H.r1=j[0],H.r2=j[1],H.r3=j[2],H.r4=j[3]):H.r1=H.r2=H.r3=H.r4=j;var X=[["M "+(l+H.r1)+","+u],["l "+(E-H.r1-H.r2)+",0"],["a "+H.r2+","+H.r2+",0,0,1,"+H.r2+","+H.r2],["l 0,"+(P-H.r2-H.r3)],["a "+H.r3+","+H.r3+",0,0,1,"+-H.r3+","+H.r3],["l "+(H.r3+H.r4-E)+",0"],["a "+H.r4+","+H.r4+",0,0,1,"+-H.r4+","+-H.r4],["l 0,"+(H.r4+H.r1-P)],["a "+H.r1+","+H.r1+",0,0,1,"+H.r1+","+-H.r1],["z"]];return X.join(" ")},i}(C0),Tj=wj,b6=.3,x6={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},Aj={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},Mj={left:"left",start:"left",center:"middle",right:"end",end:"end"},E6=function(C){k_(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="text",a.canFill=!0,a.canStroke=!0,a}return i.prototype.getDefaultAttrs=function(){var a=C.prototype.getDefaultAttrs.call(this);return Dv(Dv({},a),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},i.prototype.createPath=function(a,l){var u=this,E=this.attr(),P=this.get("el");this._setFont(),(0,Nn.each)(l||E,function(j,H){H==="text"?u._setText(""+j):H==="matrix"&&j?XS(u):Yp[H]&&P.setAttribute(Yp[H],j)}),P.setAttribute("paint-order","stroke"),P.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},i.prototype._setFont=function(){var a=this.get("el"),l=this.attr(),u=l.textBaseline,E=l.textAlign,P=Iv();P&&P.name==="firefox"?a.setAttribute("dominant-baseline",Aj[u]||"alphabetic"):a.setAttribute("alignment-baseline",x6[u]||"baseline"),a.setAttribute("text-anchor",Mj[E]||"left")},i.prototype._setText=function(a){var l=this.get("el"),u=this.attr(),E=u.x,P=u.textBaseline,j=P===void 0?"bottom":P;if(!a)l.innerHTML="";else if(~a.indexOf(`
|
||
`)){var H=a.split(`
|
||
`),X=H.length-1,ee="";(0,Nn.each)(H,function(se,Se){Se===0?j==="alphabetic"?ee+='<tspan x="'+E+'" dy="'+-X+'em">'+se+"</tspan>":j==="top"?ee+='<tspan x="'+E+'" dy="0.9em">'+se+"</tspan>":j==="middle"?ee+='<tspan x="'+E+'" dy="'+-(X-1)/2+'em">'+se+"</tspan>":j==="bottom"?ee+='<tspan x="'+E+'" dy="-'+(X+b6)+'em">'+se+"</tspan>":j==="hanging"&&(ee+='<tspan x="'+E+'" dy="'+(-(X-1)-b6)+'em">'+se+"</tspan>"):ee+='<tspan x="'+E+'" dy="1em">'+se+"</tspan>"}),l.innerHTML=ee}else l.innerHTML=a},i}(C0),ZD=E6,kj=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,VD=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,S6=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function fM(C){var i=C.match(S6);if(!i)return"";var a="";return i.sort(function(l,u){return l=l.split(":"),u=u.split(":"),Number(l[0])-Number(u[0])}),(0,Nn.each)(i,function(l){l=l.split(":"),a+='<stop offset="'+l[0]+'" stop-color="'+l[1]+'"></stop>'}),a}function dM(C,i){var a=kj.exec(C),l=(0,Nn.mod)((0,Nn.toRadian)(parseFloat(a[1])),Math.PI*2),u=a[2],E,P;l>=0&&l<.5*Math.PI?(E={x:0,y:0},P={x:1,y:1}):.5*Math.PI<=l&&l<Math.PI?(E={x:1,y:0},P={x:0,y:1}):Math.PI<=l&&l<1.5*Math.PI?(E={x:1,y:1},P={x:0,y:0}):(E={x:0,y:1},P={x:1,y:0});var j=Math.tan(l),H=j*j,X=(P.x-E.x+j*(P.y-E.y))/(H+1)+E.x,ee=j*(P.x-E.x+j*(P.y-E.y))/(H+1)+E.y;i.setAttribute("x1",E.x),i.setAttribute("y1",E.y),i.setAttribute("x2",X),i.setAttribute("y2",ee),i.innerHTML=fM(u)}function zD(C,i){var a=VD.exec(C),l=parseFloat(a[1]),u=parseFloat(a[2]),E=parseFloat(a[3]),P=a[4];i.setAttribute("cx",l),i.setAttribute("cy",u),i.setAttribute("r",E),i.innerHTML=fM(P)}var WD=function(){function C(i){this.cfg={};var a=null,l=(0,Nn.uniqueId)("gradient_");return i.toLowerCase()[0]==="l"?(a=$_("linearGradient"),dM(i,a)):(a=$_("radialGradient"),zD(i,a)),a.setAttribute("id",l),this.el=a,this.id=l,this.cfg=i,this}return C.prototype.match=function(i,a){return this.cfg===a},C}(),Pj=WD,sR={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},C6={x:"-40%",y:"-40%",width:"200%",height:"200%"},HD=function(){function C(i){this.type="filter",this.cfg={},this.type="filter";var a=$_("filter");return(0,Nn.each)(C6,function(l,u){a.setAttribute(u,l)}),this.el=a,this.id=(0,Nn.uniqueId)("filter_"),this.el.id=this.id,this.cfg=i,this._parseShadow(i,a),this}return C.prototype.match=function(i,a){if(this.type!==i)return!1;var l=!0,u=this.cfg;return(0,Nn.each)(Object.keys(u),function(E){if(u[E]!==a[E])return l=!1,!1}),l},C.prototype.update=function(i,a){var l=this.cfg;return l[sR[i]]=a,this._parseShadow(l,this.el),this},C.prototype._parseShadow=function(i,a){var l=`<feDropShadow
|
||
dx="`+(i.dx||0)+`"
|
||
dy="`+(i.dy||0)+`"
|
||
stdDeviation="`+(i.blur?i.blur/10:0)+`"
|
||
flood-color="`+(i.color?i.color:"#000")+`"
|
||
flood-opacity="`+(i.opacity?i.opacity:1)+`"
|
||
/>`;a.innerHTML=l},C}(),lR=HD,w6=function(){function C(i,a){this.cfg={};var l=$_("marker"),u=(0,Nn.uniqueId)("marker_");l.setAttribute("id",u);var E=$_("path");E.setAttribute("stroke",i.stroke||"none"),E.setAttribute("fill",i.fill||"none"),l.appendChild(E),l.setAttribute("overflow","visible"),l.setAttribute("orient","auto-start-reverse"),this.el=l,this.child=E,this.id=u;var P=i[a==="marker-start"?"startArrow":"endArrow"];return this.stroke=i.stroke||"#000",P===!0?this._setDefaultPath(a,E):(this.cfg=P,this._setMarker(i.lineWidth,E)),this}return C.prototype.match=function(){return!1},C.prototype._setDefaultPath=function(i,a){var l=this.el;a.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),l.setAttribute("refX",""+10*Math.cos(Math.PI/6)),l.setAttribute("refY",""+5)},C.prototype._setMarker=function(i,a){var l=this.el,u=this.cfg.path,E=this.cfg.d;(0,Nn.isArray)(u)&&(u=u.map(function(P){return P.join(" ")}).join("")),a.setAttribute("d",u),l.appendChild(a),E&&l.setAttribute("refX",""+E/i)},C.prototype.update=function(i){var a=this.child;a.attr?a.attr("fill",i):a.setAttribute("fill",i)},C}(),pM=w6,T6=function(){function C(i){this.type="clip",this.cfg={};var a=$_("clipPath");this.el=a,this.id=(0,Nn.uniqueId)("clip_"),a.id=this.id;var l=i.cfg.el;return a.appendChild(l),this.cfg=i,this}return C.prototype.match=function(){return!1},C.prototype.remove=function(){var i=this.el;i.parentNode.removeChild(i)},C}(),Rj=T6,A6=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,M6=function(){function C(i){this.cfg={};var a=$_("pattern");a.setAttribute("patternUnits","userSpaceOnUse");var l=$_("image");a.appendChild(l);var u=(0,Nn.uniqueId)("pattern_");a.id=u,this.el=a,this.id=u,this.cfg=i;var E=A6.exec(i),P=E[2];l.setAttribute("href",P);var j=new Image;P.match(/^data:/i)||(j.crossOrigin="Anonymous"),j.src=P;function H(){a.setAttribute("width",""+j.width),a.setAttribute("height",""+j.height)}return j.complete?H():(j.onload=H,j.src=j.src),this}return C.prototype.match=function(i,a){return this.cfg===a},C}(),k6=M6,J0=function(){function C(i){var a=$_("defs"),l=(0,Nn.uniqueId)("defs_");a.id=l,i.appendChild(a),this.children=[],this.defaultArrow={},this.el=a,this.canvas=i}return C.prototype.find=function(i,a){for(var l=this.children,u=null,E=0;E<l.length;E++)if(l[E].match(i,a)){u=l[E].id;break}return u},C.prototype.findById=function(i){for(var a=this.children,l=null,u=0;u<a.length;u++)if(a[u].id===i){l=a[u];break}return l},C.prototype.add=function(i){this.children.push(i),i.canvas=this.canvas,i.parent=this},C.prototype.getDefaultArrow=function(i,a){var l=i.stroke||i.strokeStyle;if(this.defaultArrow[l])return this.defaultArrow[l].id;var u=new pM(i,a);return this.defaultArrow[l]=u,this.el.appendChild(u.el),this.add(u),u.id},C.prototype.addGradient=function(i){var a=new Pj(i);return this.el.appendChild(a.el),this.add(a),a.id},C.prototype.addArrow=function(i,a){var l=new pM(i,a);return this.el.appendChild(l.el),this.add(l),l.id},C.prototype.addShadow=function(i){var a=new lR(i);return this.el.appendChild(a.el),this.add(a),a.id},C.prototype.addPattern=function(i){var a=new k6(i);return this.el.appendChild(a.el),this.add(a),a.id},C.prototype.addClip=function(i){var a=new Rj(i);return this.el.appendChild(a.el),this.add(a),a.id},C}(),P6=J0,w0=function(C){k_(i,C);function i(a){return C.call(this,Dv(Dv({},a),{autoDraw:!0,renderer:"svg"}))||this}return i.prototype.getShapeBase=function(){return _},i.prototype.getGroupBase=function(){return UD},i.prototype.getShape=function(a,l,u){var E=u.target||u.srcElement;if(!FD[E.tagName]){for(var P=E.parentNode;P&&!FD[P.tagName];)P=P.parentNode;E=P}return this.find(function(j){return j.get("el")===E})},i.prototype.createDom=function(){var a=$_("svg"),l=new P6(a);return a.setAttribute("width",""+this.get("width")),a.setAttribute("height",""+this.get("height")),this.set("context",l),a},i.prototype.onCanvasChange=function(a){var l=this.get("context"),u=this.get("el");if(a==="sort"){var E=this.get("children");E&&E.length&&jD(this,function(j,H){return E.indexOf(j)-E.indexOf(H)?1:0})}else if(a==="clear"){if(u){u.innerHTML="";var P=l.el;P.innerHTML="",u.appendChild(P)}}else a==="matrix"?XS(this):a==="clip"?mw(this,l):a==="changeSize"&&(u.setAttribute("width",""+this.get("width")),u.setAttribute("height",""+this.get("height")))},i.prototype.draw=function(){var a=this.get("context"),l=this.getChildren();mw(this,a),l.length&&BD(a,l)},i}(CN),vM=w0,$W="0.5.6",R6=o(65276),hM=o.n(R6),cR=o(45582),JS=2,O6=.16,GD=.05,Oj=.05,I6=.15,$D=5,D6=4,N6=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function L6(C,i,a){var l;return Math.round(C.h)>=60&&Math.round(C.h)<=240?l=a?Math.round(C.h)-JS*i:Math.round(C.h)+JS*i:l=a?Math.round(C.h)+JS*i:Math.round(C.h)-JS*i,l<0?l+=360:l>=360&&(l-=360),l}function F6(C,i,a){if(C.h===0&&C.s===0)return C.s;var l;return a?l=C.s-O6*i:i===D6?l=C.s+O6:l=C.s+GD*i,l>1&&(l=1),a&&i===$D&&l>.1&&(l=.1),l<.06&&(l=.06),Number(l.toFixed(2))}function KD(C,i,a){var l;return a?l=C.v+Oj*i:l=C.v-I6*i,l>1&&(l=1),Number(l.toFixed(2))}function h1(C){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=[],l=(0,cR.Z)(C),u=$D;u>0;u-=1){var E=l.toHsv(),P=(0,cR.Z)({h:L6(E,u,!0),s:F6(E,u,!0),v:KD(E,u,!0)}).toHexString();a.push(P)}a.push(l.toHexString());for(var j=1;j<=D6;j+=1){var H=l.toHsv(),X=(0,cR.Z)({h:L6(H,j),s:F6(H,j),v:KD(H,j)}).toHexString();a.push(X)}return i.theme==="dark"?N6.map(function(ee){var se=ee.index,Se=ee.opacity,Re=cR.Z.mix(i.backgroundColor||"#141414",a[se],Se*100).toHexString();return Re}):a}var YD={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Pg={},uR={};Object.keys(YD).forEach(function(C){Pg[C]=h1(YD[C]),Pg[C].primary=Pg[C][5],uR[C]=h1(YD[C],{theme:"dark",backgroundColor:"#141414"}),uR[C].primary=uR[C][5]});var KW=Pg.red,Ij=Pg.volcano,Dj=Pg.gold,Nj=Pg.orange,Lj=Pg.yellow,YW=Pg.lime,XW=Pg.green,JW=Pg.cyan,QW=Pg.blue,qW=Pg.geekblue,eH=Pg.purple,j6=Pg.magenta,Fj=Pg.grey,og=function(i,a,l){var u=hM()(i),E=hM()(a);return hM()([(1-l)*u.red()+l*E.red(),(1-l)*u.green()+l*E.green(),(1-l)*u.blue()+l*E.blue()]).rgb()},XD=function(i,a,l){a===void 0&&(a="#fff"),l===void 0&&(l="rgb(150, 150, 150)");var u=og(a,i,.05).rgb().toString(),E=og(a,i,.1).rgb().toString(),P=og(a,i,.2).rgb().toString(),j=og(a,i,.4).rgb().toString(),H=og(a,l,.02).rgb().toString(),X=og(a,l,.05).rgb().toString(),ee=og(a,l,.1).rgb().toString(),se=og(a,l,.2).rgb().toString(),Se=og(a,l,.3).rgb().toString(),Re=h1(i,{theme:"default",backgroundColor:a}),Be=hM()(i).hex().toLowerCase(),Ye=Re.indexOf(Be),ht=i;return Ye!==-1&&(ht=Re[Ye+1]),{mainStroke:i,mainFill:E,activeStroke:i,activeFill:u,inactiveStroke:j,inactiveFill:u,selectedStroke:i,selectedFill:a,highlightStroke:ht,highlightFill:P,disableStroke:Se,disableFill:X,edgeMainStroke:Se,edgeActiveStroke:i,edgeInactiveStroke:se,edgeSelectedStroke:i,edgeHighlightStroke:i,edgeDisableStroke:ee,comboMainStroke:Se,comboMainFill:H,comboActiveStroke:i,comboActiveFill:u,comboInactiveStroke:Se,comboInactiveFill:H,comboSelectedStroke:i,comboSelectedFill:H,comboHighlightStroke:ht,comboHighlightFill:H,comboDisableStroke:se,comboDisableFill:X}},B6=function(i,a,l){a===void 0&&(a="#fff"),l===void 0&&(l="#777");var u=og(a,i,.2).rgb().toString(),E=og(a,i,.3).rgb().toString(),P=og(a,i,.6).rgb().toString(),j=og(a,i,.8).rgb().toString(),H=og(a,l,.2).rgb().toString(),X=og(a,l,.25).rgb().toString(),ee=og(a,l,.3).rgb().toString(),se=og(a,l,.4).rgb().toString(),Se=og(a,l,.5).rgb().toString(),Re=h1(i,{theme:"dark",backgroundColor:a}),Be=hM()(i).hex().toLowerCase(),Ye=Re.indexOf(Be),ht=i;return Ye!==-1&&(ht=Re[Ye+1]),{mainStroke:j,mainFill:u,activeStroke:i,activeFill:E,inactiveStroke:j,inactiveFill:u,selectedStroke:i,selectedFill:u,highlightStroke:i,highlightFill:P,disableStroke:Se,disableFill:X,edgeMainStroke:l,edgeActiveStroke:i,edgeInactiveStroke:l,edgeSelectedStroke:i,edgeHighlightStroke:i,edgeDisableStroke:ee,comboMainStroke:se,comboMainFill:X,comboActiveStroke:i,comboActiveFill:H,comboInactiveStroke:se,comboInactiveFill:X,comboSelectedStroke:i,comboSelectedFill:H,comboHighlightStroke:ht,comboHighlightFill:X,comboDisableStroke:se,comboDisableFill:H}},Nb=function(i,a,l,u){return a===void 0&&(a="#fff"),l===void 0&&(l="default"),u===void 0&&(u="rgb(150, 150, 150)"),l==="default"?XD(i,a,"rgb(150, 150, 150)"):B6(i,a,"#777")},QS=function(i,a,l,u){a===void 0&&(a="#fff"),l===void 0&&(l="default"),u===void 0&&(u="rgb(150, 150, 150)");var E=[];return i.forEach(function(P){E.push(Nb(P,a,l,u))}),E},gw="rgb(95, 149, 255)",jj="rgb(255, 255, 255)",U6="rgb(0, 0, 0)",Xp=Nb(gw,jj),qS={version:"0.8.21",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:Xp.mainStroke,fill:Xp.mainFill},size:20,color:Xp.mainStroke,linkPoints:{size:8,lineWidth:1,fill:Xp.activeFill,stroke:Xp.activeStroke}},nodeStateStyles:{active:{fill:Xp.activeFill,stroke:Xp.activeStroke,lineWidth:2,shadowColor:Xp.mainStroke,shadowBlur:10},selected:{fill:Xp.selectedFill,stroke:Xp.selectedStroke,lineWidth:4,shadowColor:Xp.selectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:Xp.highlightFill,stroke:Xp.highlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:Xp.inactiveFill,stroke:Xp.inactiveStroke,lineWidth:1},disable:{fill:Xp.disableFill,stroke:Xp.disableStroke,lineWidth:1}},edgeLabel:{style:{fill:U6,textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:Xp.edgeMainStroke,lineAppendWidth:2},color:Xp.edgeMainStroke},edgeStateStyles:{active:{stroke:Xp.edgeActiveStroke,lineWidth:1},selected:{stroke:Xp.edgeSelectedStroke,lineWidth:2,shadowColor:Xp.edgeSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:Xp.edgeHighlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:Xp.edgeInactiveStroke,lineWidth:1},disable:{stroke:Xp.edgeDisableStroke,lineWidth:1}},comboLabel:{style:{fill:U6,textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:Xp.comboMainFill,lineWidth:1,stroke:Xp.comboMainStroke,r:5,width:20,height:10},size:[20,5],color:Xp.comboMainStroke,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:Xp.comboActiveStroke,lineWidth:1,fill:Xp.comboActiveFill},selected:{stroke:Xp.comboSelectedStroke,lineWidth:2,fill:Xp.comboSelectedFill,shadowColor:Xp.comboSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:Xp.comboHighlightStroke,lineWidth:2,fill:Xp.comboHighlightFill,"text-shape":{fontWeight:500}},inactive:{stroke:Xp.comboInactiveStroke,fill:Xp.comboInactiveFill,lineWidth:1},disable:{stroke:Xp.comboDisableStroke,fill:Xp.comboDisableFill,lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"};function fR(C,i,a){if(C){if(typeof C.addEventListener=="function")return C.addEventListener(i,a,!1),{remove:function(){C.removeEventListener(i,a,!1)}};if(typeof C.attachEvent=="function")return C.attachEvent("on"+i,a),{remove:function(){C.detachEvent("on"+i,a)}}}}var Bj=Mg.cloneEvent,Uj=Mg.isViewportChanged,Zj=function(C){zg(i,C);function i(a){var l=C.call(this,a)||this;return l.extendEvents=[],l.dragging=!1,l.mousedown=!1,l.preItem=null,l.destroy(),l.graph=a,l.destroyed=!1,l.initEvents(),l}return i.prototype.initEvents=function(){var a=this,l=a.graph,u=a.extendEvents,E=u===void 0?[]:u,P=l.get("canvas"),j=P.get("el"),H=(0,Nn.wrapBehavior)(this,"onCanvasEvents"),X=(0,Nn.wrapBehavior)(this,"onExtendEvents"),ee=(0,Nn.wrapBehavior)(this,"onWheelEvent");P.off("*").on("*",H),this.canvasHandler=H,E.push(fR(j,"wheel",ee)),typeof window!="undefined"&&(E.push(fR(window,"keydown",X)),E.push(fR(window,"keyup",X)),E.push(fR(window,"focus",X))),this.resetHandler&&l.off("afterchangedata",this.resetHandler),this.resetHandler=(0,Nn.wrapBehavior)(this,"resetStatus"),l.on("afterchangedata",this.resetHandler)},i.getItemRoot=function(a){for(;a&&!a.get("item");)a=a.get("parent");return a},i.prototype.onCanvasEvents=function(a){var l=this,u=this.graph,E=u.get("canvas"),P=a.target,j=a.type;switch(j){case"drag":this.onCanvasEvents(Object.assign({},a,{type:"mousemove"}));break;case"dragend":this.onCanvasEvents(Object.assign({},a,{type:"mouseup"}));break;case"mousedown":this.mousedown=!0;break;case"dragend":case"mouseup":setTimeout(function(){return l.mousedown=!1});break;case"click":if(!this.mousedown)return;break;default:break}a.canvasX=a.x,a.canvasY=a.y;var H={x:a.canvasX,y:a.canvasY},X=u.get("group"),ee=X.getMatrix();if(ee||(ee=[1,0,0,0,1,0,0,0,1]),Uj(ee)&&(H=u.getPointByClient(a.clientX,a.clientY)),a.x=H.x,a.y=H.y,a.currentTarget=u,P===E){(j==="mousemove"||j==="mouseleave")&&this.handleMouseMove(a,"canvas"),a.target=E,a.item=null,u.emit(j,a),u.emit("canvas:".concat(j),a);return}var se=i.getItemRoot(P);if(!se){u.emit(j,a);return}var Se=se.get("item");if(!Se.destroyed){var Re=Se.getType();if(a.target=P,a.item=Se,a.canvasX===a.x&&a.canvasY===a.y){var Be=u.getCanvasByPoint(a.x,a.y);a.canvasX=Be.x,a.canvasY=Be.y}a.name&&!a.name.includes(":")?(u.emit("".concat(Re,":").concat(j),a),u.emit(j,a)):a.name&&u.emit(a.name,a),j==="dragstart"&&(this.dragging=!0),j==="dragend"&&(this.dragging=!1),j==="mousemove"&&this.handleMouseMove(a,Re)}},i.prototype.onExtendEvents=function(a){this.graph.emit(a.type,a)},i.prototype.onWheelEvent=function(a){(0,Nn.isNil)(a.wheelDelta)&&(a.wheelDelta=-a.detail),this.graph.emit("wheel",a)},i.prototype.handleMouseMove=function(a,l){var u=this,E=u.graph,P=u.preItem,j=E.get("canvas"),H=a.target===j?null:a.item;a=Bj(a),P&&P!==H&&!P.destroyed&&(a.item=P,this.emitCustomEvent(P.getType(),"mouseleave",a),this.dragging&&this.emitCustomEvent(P.getType(),"dragleave",a)),H&&P!==H&&(a.item=H,this.emitCustomEvent(l,"mouseenter",a),this.dragging&&this.emitCustomEvent(l,"dragenter",a)),this.preItem=H},i.prototype.emitCustomEvent=function(a,l,u){u.type=l,this.graph.emit("".concat(a,":").concat(l),u)},i.prototype.resetStatus=function(){this.mousedown=!1,this.dragging=!1,this.preItem=null},i.prototype.destroy=function(){var a=this,l=a.graph,u=a.canvasHandler,E=a.extendEvents,P=l.get("canvas");P.off("*",u),(0,Nn.each)(E,function(j){j.remove()}),this.resetStatus(),this.extendEvents.length=0,this.canvasHandler=null,this.resetHandler=null,this.destroyed=!0},i}(gD),Vj=Zj,gp=o(33682),Lb=o(40009),_w=o.n(Lb),Z6=Mg.traverseTree,zj=function(i,a){var l;return i?(0,Nn.isNumber)(i)?l=function(E){return i}:l=i:l=function(E){return a||1},l},Wj=function(i,a){var l=[],u=[],E={},P=0;for(P=0;P<i.length;P++){var j=i[P];E[j.id]=P,l.push(j.x),l.push(j.y),l.push(0),l.push(0),u.push([])}for(P=0;P<a.length;P++){var H=a[P];u[E[H.source]].push(E[H.target]),u[E[H.target]].push(E[H.source])}var X=0;for(P=0;P<i.length;P++){var ee=l.length,se=u[P],Se=se.length;l[P*4+2]=ee,l[P*4+3]=se.length,X=Math.max(X,se.length);for(var Re=0;Re<Se;++Re){var Be=se[Re];l.push(+Be)}}for(;l.length%4!=0;)l.push(0);return{array:new Float32Array(l),maxEdgePerVetex:X}},V6=function(i,a,l){var u=[],E=[],P={},j=0;for(j=0;j<i.length;j++){var H=i[j];P[H.id]=j,u.push(H.x),u.push(H.y),u.push(0),u.push(0),E.push([])}for(j=0;j<a.length;j++){var X=a[j];E[P[X.source]].push(P[X.target]),E[P[X.source]].push(l(X)),E[P[X.target]].push(P[X.source]),E[P[X.target]].push(l(X))}var ee=0;for(j=0;j<i.length;j++){var se=u.length,Se=E[j],Re=Se.length;u[j*4+2]=se,u[j*4+3]=Re/2,ee=Math.max(ee,Re/2);for(var Be=0;Be<Re;++Be){var Ye=Se[Be];u.push(+Ye)}}for(;u.length%4!=0;)u.push(0);return{array:new Float32Array(u),maxEdgePerVetex:ee}},dR=function(i,a,l,u){var E=[],P=[],j={},H=0;for(H=0;H<i.length;H++){var X=i[H];j[X.id]=H,E.push(X.x),E.push(X.y),E.push(0),E.push(0),P.push([])}for(H=0;H<a.length;H++){var ee=a[H];P[j[ee.source]].push(j[ee.target]),P[j[ee.source]].push(l(ee)),P[j[ee.source]].push(u(ee)),P[j[ee.source]].push(0),P[j[ee.target]].push(j[ee.source]),P[j[ee.target]].push(l(ee)),P[j[ee.target]].push(u(ee)),P[j[ee.target]].push(0)}var se=0;for(H=0;H<i.length;H++){var Se=E.length,Re=P[H],Be=Re.length;E[H*4+2]=Se+1048576*Be/4,E[H*4+3]=0,se=Math.max(se,Be/4);for(var Ye=0;Ye<Be;++Ye){var ht=Re[Ye];E.push(+ht)}}for(;E.length%4!=0;)E.push(0);return{array:new Float32Array(E),maxEdgePerVetex:se}},z6=function(i,a){var l=[],u=i.length,E={};return a.forEach(function(P){i.forEach(function(j,H){if(E[P[j]]===void 0&&(E[P[j]]=Object.keys(E).length),l.push(E[P[j]]),H===u-1)for(;l.length%4!=0;)l.push(0)})}),{array:new Float32Array(l),count:Object.keys(E).length}},Hj=function(i){for(var a=[],l=i.length,u=i[0].length,E=function(H){i.forEach(function(X,ee){if(a.push(X[H]),ee===l-1)for(;a.length%4!=0;)a.push(0)})},P=0;P<u;P++)E(P);return new Float32Array(a)},W6=function(i,a){var l=["V","TB","BT"],u={x:Infinity,y:Infinity},E={x:-Infinity,y:-Infinity},P="x",j="y";a&&l.indexOf(a)>=0&&(j="x",P="y");var H=0;Z6(i,function(se){return H++,se.x>E.x&&(E.x=se.x),se.x<u.x&&(u.x=se.x),se.y>E.y&&(E.y=se.y),se.y<u.y&&(u.y=se.y),!0});var X=Math.PI*2/H,ee=E[j]-u[j];return ee===0||Z6(i,function(se){var Se=(se[j]-u[j])/ee*(Math.PI*2-X)+X,Re=Math.abs(P==="x"?se.x-i.x:se.y-i.y);return se.x=Re*Math.cos(Se),se.y=Re*Math.sin(Se),!0}),i},JD=function C(){return typeof window=="undefined"||typeof document=="undefined"?{}:{canvas:!!window.CanvasRenderingContext2D,webgl:function(){try{var i=document.createElement("canvas");return!!(window.WebGLRenderingContext&&(i.getContext("webgl")||i.getContext("experimental-webgl")))}catch(a){return!1}}(),workers:!!window.Worker,fileapi:window.File&&window.FileReader&&window.FileList&&window.Blob,getWebGLErrorMessage:function(){var a=document.createElement("div");return a.id="webgl-error-message",a.style.fontFamily="monospace",a.style.fontSize="13px",a.style.fontWeight="normal",a.style.textAlign="center",a.style.background="#fff",a.style.color="#000",a.style.padding="1.5em",a.style.width="400px",a.style.margin="5em auto 0",this.webgl||(a.innerHTML=window.WebGLRenderingContext?['Your graphics card does not seem to support <a href="http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation" rel="external nofollow" rel="external nofollow" style="color:#000">WebGL</a>.<br />','Find out how to get it <a href="http://get.webgl.org/" rel="external nofollow" rel="external nofollow" style="color:#000">here</a>.'].join(`
|
||
`):['Your browser does not seem to support <a href="http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation" rel="external nofollow" rel="external nofollow" style="color:#000">WebGL</a>.<br/>','Find out how to get it <a href="http://get.webgl.org/" rel="external nofollow" rel="external nofollow" style="color:#000">here</a>.'].join(`
|
||
`)),a},addGetWebGLMessage:function(a){a=a||{};var l=a.parent!==void 0?a.parent:document.body,u=a.id!==void 0?a.id:"oldie",E=C().getWebGLErrorMessage();E.id=u,l.appendChild(E)}}},QD=function(){var i=navigator.userAgent.toLowerCase();return i.indexOf("firefox")>-1?"firefox":i.indexOf("safari")>-1?"safari":i.indexOf("opr")>-1?"opera":i.indexOf("chrome")>-1?"chrome":i.indexOf("trident")>-1?"ie 11":i.indexOf("ie")>-1?"ie":"unknown"},H6=Ts(Ts(Ts(Ts(Ts({},Mg),p),S),k),O),m1=H6,G6=m1.radialLayout,$6=function(){function C(i){this.type=i.type,this.radial=i.radial,this.config=i}return C.prototype.init=function(i){var a=this;if(this.data=i,this.radial){this.layoutMethod=function(l){var u=_w()[a.type](l,a.config);return G6(u),u};return}this.layoutMethod=function(l){return _w()[a.type](l,a.config)}},C.prototype.execute=function(){return this.layoutMethod(this.data,this.config)},C.prototype.layout=function(i){return this.init(i),this.execute()},C}(),Gj=$6;(0,gp.registerLayout)("grid",gp.GridLayout),(0,gp.registerLayout)("random",gp.RandomLayout),(0,gp.registerLayout)("force",gp.ForceLayout),(0,gp.registerLayout)("circular",gp.CircularLayout),(0,gp.registerLayout)("dagre",gp.DagreLayout),(0,gp.registerLayout)("dagreCompound",gp.DagreCompoundLayout),(0,gp.registerLayout)("radial",gp.RadialLayout),(0,gp.registerLayout)("concentric",gp.ConcentricLayout),(0,gp.registerLayout)("mds",gp.MDSLayout),(0,gp.registerLayout)("fruchterman",gp.FruchtermanLayout),(0,gp.registerLayout)("fruchterman-gpu",gp.FruchtermanGPULayout),(0,gp.registerLayout)("gForce",gp.GForceLayout),(0,gp.registerLayout)("force2",gp.Force2Layout),(0,gp.registerLayout)("gForce-gpu",gp.GForceGPULayout),(0,gp.registerLayout)("comboForce",gp.ComboForceLayout),(0,gp.registerLayout)("comboCombined",gp.ComboCombinedLayout),(0,gp.registerLayout)("forceAtlas2",gp.ForceAtlas2Layout);var $j=function(i,a){a.isCustomLayout=!0,gp.Layouts[i]=(0,gp.registerLayout)(i,a)},Kj=function(){function C(i,a){var l=i.toString(),u=new Blob(["importScripts('".concat(a,"');(").concat(l,")()")],{type:"text/javascript"});return new Worker(URL.createObjectURL(u))}return C}(),Yj=Kj,Xj=function(i){i===void 0&&(i="https://unpkg.com/@antv/layout@0.3.23/dist/layout.min.js");function a(){var u={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};layout.registerLayout("grid",layout.GridLayout),layout.registerLayout("random",layout.RandomLayout),layout.registerLayout("force",layout.ForceLayout),layout.registerLayout("force2",layout.Force2Layout),layout.registerLayout("circular",layout.CircularLayout),layout.registerLayout("dagre",layout.DagreLayout),layout.registerLayout("dagreCompound",layout.DagreCompoundLayout),layout.registerLayout("radial",layout.RadialLayout),layout.registerLayout("concentric",layout.ConcentricLayout),layout.registerLayout("mds",layout.MDSLayout),layout.registerLayout("fruchterman",layout.FruchtermanLayout),layout.registerLayout("fruchterman-gpu",layout.FruchtermanGPULayout),layout.registerLayout("gForce",layout.GForceLayout),layout.registerLayout("gForce-gpu",layout.GForceGPULayout),layout.registerLayout("comboForce",layout.ComboForceLayout),layout.registerLayout("comboCombined",layout.ComboCombinedLayout),layout.registerLayout("forceAtlas2",layout.ForceAtlas2Layout);function E(j){var H=j.data.type;return H===u.RUN||H===u.GPURUN}function P(j){var H=this,X=j.data.type;switch(X){case u.RUN:{var ee=j.data,se=ee.nodes,Se=ee.edges,Re=ee.layoutCfg,Be=Re===void 0?{}:Re,Ye=Be.type,ht=layout.getLayoutByName(Ye);if(!ht){this.postMessage({type:u.ERROR,message:"layout ".concat(Ye," not found")});break}var Tt;Be.onLayoutEnd=function(){H.postMessage({type:u.END,nodes:se}),Tt==null||Tt.destroy()},Tt=new ht(Be),Tt.init({nodes:se,edges:Se}),Tt.execute();break}case u.GPURUN:{var Dt=j.data,Kt=Dt.nodes,Se=Dt.edges,gn=Dt.layoutCfg,Be=gn===void 0?{}:gn,bn=Dt.canvas,Ye=Be.type,ht=layout.getLayoutByName(Ye);if(!ht){this.postMessage({type:u.ERROR,message:"layout ".concat(Ye," not found")});break}if(Ye.split("-")[1]!=="gpu"){this.postMessage({type:u.ERROR,message:"layout ".concat(Ye," does not support GPU")});break}var mn=new ht(Be);mn.init({nodes:Kt,edges:Se}),mn.executeWithWorker(bn,this);break}default:break}}onmessage=function(H){E(H)&&P(H)}}var l=new Yj(a,i);return l},yw={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};function qD(C){return qD=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},qD(C)}var e3=function(i){return setTimeout(i,16)},K6=function(i){return clearTimeout(i)},mM={requestAnimationFrame:function(i){var a=typeof window!="undefined"&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||e3;return a(i)},cancelAnimationFrame:function(i){var a=typeof window!="undefined"&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||K6;return a(i)}},gM=["fruchterman","gForce"],Jj=["force","grid","circular"],Y6=function(C){zg(i,C);function i(a){var l=C.call(this,a)||this;return l.graph=a,l.layoutCfg=a.get("layout")||{},l.layoutType=l.getLayoutType(),l.worker=null,l.workerData={},l.initLayout(),l}return i.prototype.initLayout=function(){},i.prototype.getWorker=function(){return this.worker?this.worker:(typeof Worker=="undefined"?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=Xj(this.layoutCfg.workerScriptURL),this.worker)},i.prototype.stopWorker=function(){var a=this.workerData;!this.worker||(this.worker.terminate(),this.worker=null,a.requestId&&(mM.cancelAnimationFrame(a.requestId),a.requestId=null),a.requestId2&&(mM.cancelAnimationFrame(a.requestId2),a.requestId2=null))},i.prototype.execLayoutMethod=function(a,l){var u=this;return new Promise(function(E,P){return Dm(u,void 0,void 0,function(){var j,H,X,ee,se,Se,Re,Be,Ye,Se,ht;return m0(this,function(Tt){switch(Tt.label){case 0:if(j=this.graph,!j||j.get("destroyed"))return[2];H=a.type,a.onLayoutEnd=function(){j.emit("aftersublayout",{type:H}),E()},H&&this.isGPU&&(q6(H)?H="".concat(H,"-gpu"):console.warn("The '".concat(H,"' layout does not support GPU calculation for now, it will run in CPU."))),Mg.isForce(H)?(X=a.onTick,ee=a.animate,se=ee===void 0&&(H==="force"||H==="force2"),Se=function(){X&&X(),(ee||se)&&j.refreshPositions()},a.tick=Se):(H==="comboForce"||H==="comboCombined")&&(a.comboTrees=j.get("comboTrees")),Re=!1;try{Be=new gp.Layouts[H](a),this.layoutMethods[l]&&this.layoutMethods[l].destroy(),this.layoutMethods[l]=Be}catch(Dt){console.warn("The layout method: '".concat(H,"' does not exist! Please specify it first.")),P()}return Re=Be.enableTick,Re&&(Ye=a.onTick,Se=function(){Ye&&Ye(),j.refreshPositions()},Be.tick=Se),ht=this.filterLayoutData(this.data,a),Qj(ht,l),Be.init(ht),j.emit("beforesublayout",{type:H}),[4,Be.execute()];case 1:return Tt.sent(),Be.isCustomLayout&&a.onLayoutEnd&&a.onLayoutEnd(),[2]}})})})},i.prototype.updateLayoutMethod=function(a,l){var u=this;return new Promise(function(E,P){return Dm(u,void 0,void 0,function(){var j,H,X,ee,se,Se,Re;return m0(this,function(Be){switch(Be.label){case 0:return j=this.graph,H=l==null?void 0:l.type,l.onLayoutEnd=function(){j.emit("aftersublayout",{type:H}),E()},Mg.isForce(H)&&(X=l.onTick,ee=l.animate,se=ee===void 0&&(H==="force"||H==="force2"),Se=function(){X==null||X(),(ee||se)&&j.refreshPositions()},l.tick=Se),Re=this.filterLayoutData(this.data,l),a.init(Re),a.updateCfg(l),j.emit("beforesublayout",{type:H}),[4,a.execute()];case 1:return Be.sent(),a.isCustomLayout&&l.onLayoutEnd&&l.onLayoutEnd(),[2]}})})})},i.prototype.layout=function(a){var l=this,u,E=this.graph;if(!(!E||E.get("destroyed"))){this.data=this.setDataFromGraph();var P=this.data,j=P.nodes,H=P.hiddenNodes;if(!j)return!1;var X=E.get("width"),ee=E.get("height"),se={};Object.assign(se,{width:X,height:ee,center:[X/2,ee/2]},this.layoutCfg),this.layoutCfg=se;var Se=se.type,Re=!1;(u=this.layoutMethods)===null||u===void 0||u.forEach(function(bn){var mn;return Re=!!((mn=bn.nodes)===null||mn===void 0?void 0:mn.length)||Re});var Be=this.destoryLayoutMethods();E.emit("beforelayout");var Ye=Promise.resolve();Re&&Se&&(Be==null?void 0:Be.length)===1&&Be[0]===Se?this.tweakInit():Ye=this.initPositions(se.center,j);var ht=this.initPositions(se.center,H);ht.then(),this.isGPU=e5(se,Se);var Tt=se.onLayoutEnd,Dt=se.layoutEndFormatted,Kt=se.adjust;if(Dt||(se.layoutEndFormatted=!0,se.onAllLayoutEnd=function(){return Dm(l,void 0,void 0,function(){return m0(this,function(bn){switch(bn.label){case 0:return Tt&&Tt(j),this.refreshLayout(),Kt&&se.pipes?[4,this.adjustPipesBox(this.data,Kt)]:[3,2];case 1:bn.sent(),this.refreshLayout(),bn.label=2;case 2:return E.emit("afterlayout"),[2]}})})}),this.stopWorker(),se.workerEnabled&&this.layoutWithWorker(this.data,a))return!0;var gn=!1;return se.type?(gn=!0,Ye=Ye.then(function(){return Dm(l,void 0,void 0,function(){return m0(this,function(bn){switch(bn.label){case 0:return[4,this.execLayoutMethod(se,0)];case 1:return[2,bn.sent()]}})})})):se.pipes&&(gn=!0,se.pipes.forEach(function(bn,mn){Ye=Ye.then(function(){return Dm(l,void 0,void 0,function(){return m0(this,function(kn){switch(kn.label){case 0:return[4,this.execLayoutMethod(bn,mn)];case 1:return[2,kn.sent()]}})})})})),gn?Ye.then(function(){se.onAllLayoutEnd&&se.onAllLayoutEnd(),a&&a()}).catch(function(bn){console.warn("graph layout failed,",bn)}):(E.refreshPositions(),a==null||a()),!1}},i.prototype.tweakInit=function(){var a=this,l=a.data,u=a.graph,E=l.nodes,P=l.edges;if(!!(E==null?void 0:E.length)){var j={};E.forEach(function(ee){var se=ee.x,Se=ee.y;!isNaN(se)&&!isNaN(Se)&&(j[ee.id]={x:se,y:Se},ee.mass=ee.mass||2)}),P.forEach(function(ee){var se=ee.source,Se=ee.target,Re=j[se],Be=j[Se];!Re&&Be?j[se]={x:Be.x+(Math.random()-.5)*80,y:Be.y+(Math.random()-.5)*80}:!Be&&Re&&(j[Se]={x:Re.x+(Math.random()-.5)*80,y:Re.y+(Math.random()-.5)*80})});var H=u.get("width"),X=u.get("height");E.forEach(function(ee){var se=j[ee.id]||{x:H/2+(Math.random()-.5)*20,y:X/2+(Math.random()-.5)*20};ee.x=se.x,ee.y=se.y})}},i.prototype.initWithPreset=function(a,l){var u=this;return new Promise(function(E,P){return Dm(u,void 0,void 0,function(){var j,H,X,ee,se,Se,Re;return m0(this,function(Be){switch(Be.label){case 0:return j=this,H=j.layoutCfg,X=j.data,ee=H.preset,!(ee==null?void 0:ee.type)||!gp.Layouts[ee==null?void 0:ee.type]?(l==null||l(),E(),[2,!1]):(se=e5(ee,ee.type),Se=se?"".concat(ee.type,"-gpu"):ee.type,Re=new gp.Layouts[Se](ee),delete H.preset,Re.init(X),[4,Re.execute()]);case 1:return Be.sent(),a==null||a(),E(),[2,!0]}})})})},i.prototype.layoutWithWorker=function(a,l){var u=this,E=this,P=E.layoutCfg,j=E.graph,H=this.getWorker(),X=this.workerData;if(!H)return!1;X.requestId=null,X.requestId2=null,X.currentTick=null,X.currentTickData=null,j.emit("beforelayout");var ee=Promise.resolve(),se=!1;if(P.type)se=!0,ee=ee.then(function(){return u.runWebworker(H,a,P)});else if(P.pipes){se=!0;for(var Se=function(Tt){ee=ee.then(function(){return u.runWebworker(H,a,Tt)})},Re=0,Be=P.pipes;Re<Be.length;Re++){var Ye=Be[Re];Se(Ye)}}return se&&ee.then(function(){P.onAllLayoutEnd&&P.onAllLayoutEnd(),l==null||l()}).catch(function(ht){console.error("layout failed",ht)}),!0},i.prototype.runWebworker=function(a,l,u){var E=this,P=this.isGPU,j=this.filterLayoutData(l,u),H=j.nodes,X=j.edges,ee=document.createElement("canvas"),se=P&&typeof window!="undefined"&&window.navigator&&!navigator.gpu&&"OffscreenCanvas"in window&&"transferControlToOffscreen"in ee,Se=J6(u,function(Be){return typeof Be!="function"});if(!se)a.postMessage({type:yw.RUN,nodes:H,edges:X,layoutCfg:Se});else{var Re=ee.transferControlToOffscreen();Se.type="".concat(Se.type,"-gpu"),a.postMessage({type:yw.GPURUN,nodes:H,edges:X,layoutCfg:Se,canvas:Re},[Re])}return new Promise(function(Be,Ye){a.onmessage=function(ht){E.handleWorkerMessage(Be,Ye,ht,j,u)}})},i.prototype.handleWorkerMessage=function(a,l,u,E,P){var j=this,H=j.graph,X=j.workerData,ee=u.data,se=ee.type,Se=function(){P.onTick&&P.onTick()};switch(se){case yw.TICK:X.currentTick=ee.currentTick,X.currentTickData=ee,X.requestId||(X.requestId=mM.requestAnimationFrame(function(){pR(E,ee),H.refreshPositions(),Se(),ee.currentTick===ee.totalTicks?a():X.currentTick===ee.totalTicks&&(X.requestId2=mM.requestAnimationFrame(function(){pR(E,X.currentTickData),H.refreshPositions(),X.requestId2=null,Se(),a()})),X.requestId=null}));break;case yw.END:X.currentTick==null&&(pR(E,ee),a());break;case yw.GPUEND:X.currentTick==null&&(Q6(E,ee),a());break;case yw.ERROR:console.warn("Web-Worker layout error!",ee.message),l();break;default:l();break}},i.prototype.updateLayoutCfg=function(a){var l=this,u=this,E=u.graph,P=u.layoutMethods;if(!(!E||E.get("destroyed"))){var j=a.disableTriggerLayout,H=sm(a,["disableTriggerLayout"]),X=(0,Nn.mix)({},this.layoutCfg,H);if(this.layoutCfg=X,!j){if(!(P==null?void 0:P.length)){this.layout();return}if(this.data=this.setDataFromGraph(),this.stopWorker(),!(H.workerEnabled&&this.layoutWithWorker(this.data,null))){E.emit("beforelayout");var ee=Promise.resolve(),se=!1;(P==null?void 0:P.length)===1?(se=!0,ee=ee.then(function(){return Dm(l,void 0,void 0,function(){return m0(this,function(Se){switch(Se.label){case 0:return[4,this.updateLayoutMethod(P[0],X)];case 1:return[2,Se.sent()]}})})})):(P==null?void 0:P.length)&&(se=!0,P.forEach(function(Se,Re){var Be=X.pipes[Re];ee=ee.then(function(){return Dm(l,void 0,void 0,function(){return m0(this,function(Ye){switch(Ye.label){case 0:return[4,this.updateLayoutMethod(Se,Be)];case 1:return[2,Ye.sent()]}})})})})),se&&ee.then(function(){X.onAllLayoutEnd&&X.onAllLayoutEnd()}).catch(function(Se){console.warn("layout failed",Se)})}}}},i.prototype.adjustPipesBox=function(a,l){var u=this;return new Promise(function(E){var P=a.nodes;(P==null?void 0:P.length)||E(),Jj.includes(l)||(console.warn("The adjust type ".concat(l," is not supported yet, please assign it with 'force', 'grid', or 'circular'.")),E());var j={center:u.layoutCfg.center,nodeSize:function(Be){return Math.max(Be.height,Be.width)},preventOverlap:!0,onLayoutEnd:function(){}},H=u.getLayoutBBox(P),X=H.groupNodes,ee=H.layoutNodes,se=(0,Nn.clone)(ee);j.onLayoutEnd=function(){ee==null||ee.forEach(function(Re,Be){var Ye,ht,Tt,Dt=Re.x-((Ye=se[Be])===null||Ye===void 0?void 0:Ye.x),Kt=Re.y-((ht=se[Be])===null||ht===void 0?void 0:ht.y);(Tt=X[Be])===null||Tt===void 0||Tt.forEach(function(gn){gn.x+=Dt,gn.y+=Kt})}),E()};var Se=new gp.Layouts[l](j);Se.layout({nodes:ee})})},i.prototype.destroy=function(){this.destoryLayoutMethods();var a=this.worker;a&&(a.terminate(),this.worker=null),this.destroyed=!0,this.graph.set("layout",void 0),this.layoutCfg=void 0,this.layoutType=void 0,this.layoutMethods=void 0,this.graph=null},i}(mD),X6=Y6;function pR(C,i){for(var a=C.nodes,l=i.nodes,u=a.length,E=0;E<u;E++){var P=a[E];P.x=l[E].x,P.y=l[E].y}}function J6(C,i){var a={};return C&&qD(C)==="object"?(Object.keys(C).forEach(function(l){C.hasOwnProperty(l)&&i(C[l])&&(a[l]=C[l])}),a):C}function Q6(C,i){for(var a=C.nodes,l=i.vertexEdgeData,u=a.length,E=0;E<u;E++){var P=a[E],j=l[4*E],H=l[4*E+1];P.x=j,P.y=H}}function Qj(C,i){var a;if(!!((a=C==null?void 0:C.nodes)===null||a===void 0?void 0:a.length)){var l=C.nodes;l.forEach(function(u){u.layoutOrder=i})}}function q6(C){return gM.includes(C)}function e5(C,i){var a=i;i&&i.split("-")[1]==="gpu"&&(a=i.split("-")[0],C.gpuEnabled=!0);var l=!1;return C.gpuEnabled&&(l=!0,JD().webgl||(console.warn("Your browser does not support webGL or GPGPU. The layout will run in CPU."),l=!1)),l&&!q6(a)&&(console.warn("The '".concat(a,"' layout does not support GPU calculation for now, it will run in CPU.")),l=!1),l}var bw,t3,t5,vR;function n3(){bw=document.createElement("table"),t3=document.createElement("tr"),t5=/^\s*<(\w+|!)[^>]*>/,vR={tr:document.createElement("tbody"),tbody:bw,thead:bw,tfoot:bw,td:t3,th:t3,"*":document.createElement("div")}}function Hv(C){bw||n3();var i=t5.test(C)&&RegExp.$1;(!i||!(i in vR))&&(i="*");var a=vR[i];C=typeof C=="string"?C.replace(/(^\s*)|(\s*$)/g,""):C,a.innerHTML=""+C;var l=a.childNodes[0];return l&&a.contains(l)&&a.removeChild(l),l}var qj=function(i){var a=i.clone();return eB(i,a),a},eB=function C(i,a){var l;i.isGroup()&&a.isGroup()&&((l=i.get("children"))===null||l===void 0||l.forEach(function(j,H){var X=a.get("children")[H];C(j,X)}));var u=i.get("type"),E=a.get("type");if(!(u!=="image"||E!=="image")){var P=i.get("clipShape");P&&a.setClip({type:P.get("type"),attrs:P.attr()})}},r3=U_,tB="svg",nB=function(C){zg(i,C);function i(a){var l=C.call(this,a)||this,u=l.get("defaultNode");return u||l.set("defaultNode",{type:"circle"}),u.type||(u.type="circle",l.set("defaultNode",u)),l.destroyed=!1,l}return i.prototype.initLayoutController=function(){var a=new X6(this);this.set({layoutController:a})},i.prototype.initEventController=function(){var a=new Vj(this);this.set({eventController:a})},i.prototype.initCanvas=function(){var a=this.get("container");if(typeof a=="string"&&(a=document.getElementById(a),this.set("container",a)),!a)throw new Error("invalid container");var l=a.clientWidth,u=a.clientHeight,E=this.get("width")||l,P=this.get("height")||u;!this.get("width")&&!this.get("height")&&(this.set("width",l),this.set("height",u));var j=this.get("renderer"),H;if(j===tB)H=new vM({container:a,width:E,height:P});else{var X={container:a,width:E,height:P},ee=this.get("pixelRatio");ee&&(X.pixelRatio=ee,window.devicePixelRatio=ee),H=new v1(X)}this.set("canvas",H)},i.prototype.initPlugins=function(){var a=this;(0,Nn.each)(a.get("plugins"),function(l){!l.destroyed&&l.initPlugin&&l.initPlugin(a)})},i.prototype.downloadImageWatermark=function(a,l,u,E){return Dm(this,void 0,void 0,function(){var P,j,H;return m0(this,function(X){switch(X.label){case 0:return P=a.style.backgroundImage,j=P.slice(5,P.length-2),H=new Image,H.src=j,[4,new Promise(function(ee){H.onload=function(){var se=l.createPattern(H,"repeat");l.rect(0,0,u,E),l.fillStyle=se,l.fill(),ee("")}})];case 1:return X.sent(),[2]}})})},i.prototype.asyncToDataUrl=function(a,l,u,E,P,j){var H=this,X=document.querySelector(".g6-graph-watermarker"),ee=this.get("canvas"),se=ee.getRenderer(),Se=j||ee.get("el"),Re="";a||(a="image/png"),setTimeout(function(){return Dm(H,void 0,void 0,function(){var Be,Ye,ht,Tt,Dt,Kt,gn,bn,mn,kn;return m0(this,function(sr){switch(sr.label){case 0:return se!=="svg"?[3,1]:(Be=Se.cloneNode(!0),Ye=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),ht=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",Ye),ht.replaceChild(Be,ht.documentElement),Tt=new XMLSerializer().serializeToString(ht),Re="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(Tt)),[3,4]);case 1:return Dt=void 0,Kt=Se.getContext("2d"),gn=E||this.get("width"),bn=P||this.get("height"),mn=void 0,X?[4,this.downloadImageWatermark(X,Kt,gn,bn)]:[3,3];case 2:sr.sent(),sr.label=3;case 3:if(l){kn=typeof window!="undefined"?window.devicePixelRatio:1;try{Dt=Kt.getImageData(0,0,gn*kn,bn*kn),mn=Kt.globalCompositeOperation,Kt.globalCompositeOperation="destination-over",Kt.fillStyle=l,Kt.fillRect(0,0,gn,bn)}catch(yr){console.error("Download image failed. Out of memory at ImageData creation")}}Re=Se.toDataURL(a),l&&(Kt.clearRect(0,0,gn,bn),Kt.putImageData(Dt,0,0),Kt.globalCompositeOperation=mn),sr.label=4;case 4:return u&&u(Re),[2]}})})},16)},i.prototype.toDataURL=function(a,l){var u=this.get("canvas"),E=u.getRenderer(),P=u.get("el");a||(a="image/png");var j="";if(E==="svg"){var H=P.cloneNode(!0),X=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),ee=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",X);ee.replaceChild(H,ee.documentElement);var se=new XMLSerializer().serializeToString(ee);j="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(se))}else{var Se=void 0,Re=P.getContext("2d"),Be=Math.max(this.get("width"),500),Ye=Math.max(this.get("height"),500),ht=void 0;if(l){var Tt=typeof window!="undefined"&&window.devicePixelRatio||1;try{Se=Re.getImageData(0,0,Be*Tt,Ye*Tt),ht=Re.globalCompositeOperation,Re.globalCompositeOperation="destination-over",Re.fillStyle=l,Re.fillRect(0,0,Be,Ye)}catch(Dt){console.error("Download image failed. Out of memory at ImageData creation")}}j=P.toDataURL(a),l&&(Re.clearRect(0,0,Be,Ye),Re.putImageData(Se,0,0),Re.globalCompositeOperation=ht)}return j},i.prototype.toFullDataURL=function(a,l,u){var E=this.get("group").getCanvasBBox(),P=E.height,j=E.width,H=this.get("renderer"),X=Hv('<div id="virtual-image"></div>'),ee=u?u.backgroundColor:void 0,se=u?u.padding:void 0;se?(0,Nn.isNumber)(se)&&(se=[se,se,se,se]):se=[0,0,0,0];var Se=P+se[0]+se[2],Re=j+se[1]+se[3],Be={container:X,height:Se,width:Re,quickHit:!0},Ye=H==="svg"?new vM(Be):new v1(Be),ht=this.get("group"),Tt=ht.clone(),Dt=(0,Nn.clone)(Tt.getMatrix());Dt||(Dt=[1,0,0,0,1,0,0,0,1]);var Kt=(E.maxX+E.minX)/2,gn=(E.maxY+E.minY)/2;Dt=r3(Dt,[["t",-Kt,-gn],["t",j/2+se[3],P/2+se[0]]]),Tt.resetMatrix(),Tt.setMatrix(Dt),Ye.add(Tt);var bn=Ye.get("el"),mn="";l||(l="image/png"),setTimeout(function(){if(H==="svg"){var kn=bn.cloneNode(!0),sr=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),yr=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",sr);yr.replaceChild(kn,yr.documentElement);var jr=new XMLSerializer().serializeToString(yr);mn="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(jr))}else{var zr=void 0,va=bn.getContext("2d"),za=void 0;if(ee){var xi=typeof window!="undefined"?window.devicePixelRatio:1;try{zr=va.getImageData(0,0,Re*xi,Se*xi),za=va.globalCompositeOperation,va.globalCompositeOperation="destination-over",va.fillStyle=ee,va.fillRect(0,0,Re,Se)}catch(Di){console.error("Download image failed. Out of memory at ImageData creation")}}mn=bn.toDataURL(l),ee&&(va.clearRect(0,0,Re,Se),va.putImageData(zr,0,0),va.globalCompositeOperation=za)}a&&a(mn)},16)},i.prototype.downloadFullImage=function(a,l,u){var E=this,P=this.get("group").getCanvasBBox(),j=P.height,H=P.width,X=this.get("renderer"),ee=Hv('<div id="virtual-image"></div>'),se=document.querySelector(".g6-graph-watermarker"),Se=u?u.backgroundColor:void 0,Re=u?u.padding:void 0;Re?(0,Nn.isNumber)(Re)&&(Re=[Re,Re,Re,Re]):Re=[0,0,0,0];var Be=j+Re[0]+Re[2],Ye=H+Re[1]+Re[3];if(se){var ht=this.get("graphWaterMarker").cfg||{},Tt=ht.width,Dt=ht.height;Be=Math.ceil(Be/Dt)*Dt,Ye=Math.ceil(Ye/Tt)*Tt}var Kt={container:ee,height:Be,width:Ye},gn=X==="svg"?new vM(Kt):new v1(Kt),bn=this.get("group"),mn=qj(bn),kn=(0,Nn.clone)(mn.getMatrix());kn||(kn=[1,0,0,0,1,0,0,0,1]);var sr=(P.maxX+P.minX)/2,yr=(P.maxY+P.minY)/2;kn=r3(kn,[["t",-sr,-yr],["t",H/2+Re[3],j/2+Re[0]]]),mn.resetMatrix(),mn.setMatrix(kn),gn.add(mn);var jr=gn.get("el");l||(l="image/png"),this.asyncToDataUrl(l,Se,function(zr){var va=document.createElement("a"),za=(a||"graph")+(X==="svg"?".svg":".".concat(l.split("/")[1]));E.dataURLToImage(zr,X,va,za);var xi=document.createEvent("MouseEvents");xi.initEvent("click",!1,!1),va.dispatchEvent(xi)},Ye,Be,jr)},i.prototype.downloadImage=function(a,l,u){var E=this,P=this;P.stopAnimate();var j=P.get("canvas"),H=j.getRenderer();l||(l="image/png");var X=(a||"graph")+(H==="svg"?".svg":l.split("/")[1]),ee=document.createElement("a");P.asyncToDataUrl(l,u,function(se){E.dataURLToImage(se,H,ee,X);var Se=document.createEvent("MouseEvents");Se.initEvent("click",!1,!1),ee.dispatchEvent(Se)})},i.prototype.dataURLToImage=function(a,l,u,E){if(!a||a==="data:"){console.error("Download image failed. The graph is too large or there is invalid attribute values in graph items");return}if(typeof window!="undefined")if(window.Blob&&window.URL&&l!=="svg"){var P=a.split(","),j="";if(P&&P.length>0){var H=P[0].match(/:(.*?);/);H&&H.length>=2&&(j=H[1])}for(var X=atob(P[1]),ee=X.length,se=new Uint8Array(ee);ee--;)se[ee]=X.charCodeAt(ee);var Se=new Blob([se],{type:j});window.navigator.msSaveBlob?window.navigator.msSaveBlob(Se,E):u.addEventListener("click",function(){u.download=E,u.href=window.URL.createObjectURL(Se)})}else u.addEventListener("click",function(){u.download=E,u.href=a})},i.prototype.addPlugin=function(a){var l=this;a.destroyed||(l.get("plugins").push(a),a.initPlugin(l))},i.prototype.removePlugin=function(a){var l=this.get("plugins"),u=l.indexOf(a);u>=0&&(a.destroyPlugin(),l.splice(u,1))},i.prototype.setImageWaterMarker=function(a,l){a===void 0&&(a=qS.waterMarkerImage);var u=this.get("container");(0,Nn.isString)(u)&&(u=document.getElementById(u)),u.style.position||(u.style.position="relative");var E=this.get("graphWaterMarker"),P=(0,Nn.deepMix)({},qS.imageWaterMarkerConfig,l),j=P.width,H=P.height,X=P.compatible,ee=P.image;if(!a){var se=X?u:document.querySelector(".g6-graph-watermarker");se&&(se.style.cssText=void 0),E&&E.clear();return}if(E)E.clear();else{var Se={container:u,width:j,height:H,capture:!1},Re=this.get("pixelRatio");Re&&(Se.pixelRatio=Re,window.devicePixelRatio=Re),E=new v1(Se),this.set("graphWaterMarker",E)}E.get("el").style.display="none";var Be=E.get("context"),Ye=ee.rotate,ht=ee.x,Tt=ee.y;Be.rotate(-Ye*Math.PI/180);var Dt=new Image;Dt.crossOrigin="anonymous",Dt.src=a,Dt.onload=function(){if(Be.drawImage(Dt,ht,Tt,ee.width,ee.height),Be.rotate(Ye*Math.PI/180),X)u.style.cssText="background-image: url(".concat(E.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var Kt=document.querySelector(".g6-graph-watermarker");Kt||(Kt=document.createElement("div"),Kt.className="g6-graph-watermarker"),Kt.className="g6-graph-watermarker",E.destroyed||(Kt.style.cssText="background-image: url(".concat(E.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;"),u.appendChild(Kt))}}},i.prototype.setTextWaterMarker=function(a,l){var u=this.get("container");(0,Nn.isString)(u)&&(u=document.getElementById(u)),u.style.position||(u.style.position="relative");var E=this.get("graphWaterMarker"),P=(0,Nn.deepMix)({},qS.textWaterMarkerConfig,l),j=P.width,H=P.height,X=P.compatible,ee=P.text;if(!(a==null?void 0:a.length)){var se=X?u:document.querySelector(".g6-graph-watermarker");se&&(se.style.cssText=void 0),E&&E.clear();return}if(E)E.clear();else{var Se={container:u,width:j,height:H,capture:!1},Re=this.get("pixelRatio");Re&&(Se.pixelRatio=Re,window.devicePixelRatio=Re),E=new v1(Se),this.set("graphWaterMarker",E)}E.get("el").style.display="none";var Be=E.get("context"),Ye=ee.rotate,ht=ee.fill,Tt=ee.fontFamily,Dt=ee.fontSize,Kt=ee.baseline,gn=ee.x,bn=ee.y,mn=ee.lineHeight;Be.rotate(-Ye*Math.PI/180),Be.font="".concat(Dt,"px ").concat(Tt),Be.fillStyle=ht,Be.textBaseline=Kt;for(var kn=(0,Nn.isString)(a)?[a]:a,sr=kn.length-1;sr>=0;sr--)Be.fillText(kn[sr],gn,bn+sr*mn);if(Be.rotate(Ye*Math.PI/180),X)u.style.cssText="background-image: url(".concat(E.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var yr=document.querySelector(".g6-graph-watermarker");yr||(yr=document.createElement("div"),yr.className="g6-graph-watermarker"),yr.style.cssText="background-image: url(".concat(E.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;"),u.appendChild(yr)}},i.prototype.destroy=function(){var a,l,u,E;(0,Nn.each)(this.get("plugins"),function(ee){ee.destroyPlugin()});var P=this.get("tooltips");if(P)for(var j=0;j<P.length;j++){var H=P[j];if(!!H){var X=H.parentElement;!X||X.removeChild(H)}}(a=this.get("eventController"))===null||a===void 0||a.destroy(),(l=this.get("layoutController"))===null||l===void 0||l.destroy(),(u=this.get("graphWaterMarker"))===null||u===void 0||u.destroy(),(E=document.querySelector(".g6-graph-watermarker"))===null||E===void 0||E.remove(),C.prototype.destroy.call(this)},i}(SL),n5=nB,rB=m1.radialLayout,hR=m1.traverseTree,_M=function(C){zg(i,C);function i(a){var l=C.call(this,a)||this;return l.layoutAnimating=!1,l.set("removeList",[]),l.set("layoutMethod",l.getLayout()),l}return i.prototype.getLayout=function(){var a=this.get("layout");return a?typeof a=="function"?a:(a.type||(a.type="dendrogram"),a.direction||(a.direction=a.type==="indented"?"LR":"TB"),a.radial?function(l){var u=_w()[a.type](l,a);return rB(u),u}:function(l){return _w()[a.type](l,a)}):null},i.indexOfChild=function(a,l){var u=-1;return(0,Nn.each)(a,function(E,P){if(l===E.id)return u=P,!1}),u},i.prototype.getDefaultCfg=function(){var a=C.prototype.getDefaultCfg.call(this);return a.animate=!0,a},i.prototype.innerAddChild=function(a,l,u){var E=this,P=a.data;P&&(P.x=a.x,P.y=a.y,P.depth=a.depth);var j=E.addItem("node",P,!1);if(l){if(j.set("parent",l),u){var H=l.get("originAttrs");if(H)j.set("originAttrs",H);else{var X=l.getModel();j.set("originAttrs",{x:X.x,y:X.y})}}var ee=l.get("children");ee?ee.push(j):l.set("children",[j]),E.addItem("edge",{source:l.get("id"),target:j.get("id"),id:"".concat(l.get("id"),":").concat(j.get("id"))},!1)}return(0,Nn.each)(a.children||[],function(se){E.innerAddChild(se,j,u)}),E.emit("afteraddchild",{item:j,parent:l}),j},i.prototype.innerUpdateChild=function(a,l,u){var E=this,P=E.findById(a.id);if(!P){E.innerAddChild(a,l,u);return}(0,Nn.each)(a.children||[],function(Be){E.innerUpdateChild(Be,P,u)});var j=P.get("children");if(j){var H=j.length;if(H>0)for(var X=j.length-1;X>=0;X--){var ee=j[X].getModel();i.indexOfChild(a.children||[],ee.id)===-1&&(E.innerRemoveChild(ee.id,{x:a.x,y:a.y},u),j.splice(X,1))}}var se,Se;P.get("originAttrs")&&(se=P.get("originAttrs").x,Se=P.get("originAttrs").y);var Re=P.getModel();u&&P.set("originAttrs",{x:Re.x,y:Re.y}),P.set("model",Object.assign(Re,a.data)),(se!==a.x||Se!==a.y)&&P.updatePosition({x:a.x,y:a.y})},i.prototype.innerRemoveChild=function(a,l,u){var E=this,P=E.findById(a);if(!!P)if((0,Nn.each)(P.get("children"),function(H){E.innerRemoveChild(H.getModel().id,l,u)}),u){var j=P.getModel();P.set("to",l),P.set("originAttrs",{x:j.x,y:j.y}),E.get("removeList").push(P)}else E.removeItem(P,!1)},i.prototype.changeData=function(a,l){l===void 0&&(l=!0);var u=this;this.getNodes().map(function(E){return u.clearItemStates(E)}),this.getEdges().map(function(E){return u.clearItemStates(E)}),l&&this.get("enabledStack")&&this.pushStack("changedata",{before:u.get("originData"),after:a||u.get("data")}),a?(u.data(a),u.render(!1)):u.layout(this.get("fitView"))},i.prototype.changeLayout=function(a){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon");var l=this;l.updateLayout(a)},i.prototype.updateLayout=function(a,l,u,E){E===void 0&&(E=!0);var P=this;if(!a){console.warn("layout cannot be null");return}if(E&&this.get("enabledStack")&&this.pushStack("layout",{before:P.get("layout"),after:a}),P.set("layout",a),P.set("layoutMethod",P.getLayout()),P.layout(),l){var j=u;j||(l==="begin"?j={x:0,y:0}:j={x:this.getWidth()/2,y:this.getHeight()/2}),j=this.getPointByCanvas(j.x,j.y);var H=this.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];j.x=j.x*H[0]+H[6],j.y=j.y*H[0]+H[7];var X=this.getGroup().getCanvasBBox(),ee=X.minX,se=X.maxX,Se=X.minY,Re=X.maxY,Be={x:(ee+se)/2,y:(Se+Re)/2};l==="begin"&&(Be.x=ee,Be.y=Se),this.translate(j.x-Be.x,j.y-Be.y)}},i.prototype.refreshLayout=function(a){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon");var l=this;l.layout(a)},i.prototype.layout=function(a){var l=this,u=this,E=u.get("data"),P=u.get("layoutMethod"),j=u.get("layout"),H=E;if(j==null?void 0:j.excludeInvisibles){E=(0,Nn.clone)(u.get("data"));var X={};hR(E,function(Se){var Re=Se.children;if(!(Re==null?void 0:Re.length))return!0;for(var Be=Re.length-1;Be>=0;Be--){var Ye=l.findById(Re[Be].id),ht=Ye?!Ye.isVisible():Re[Be].visible===!1;ht&&(X[Se.id]=X[Se.id]||[],X[Se.id].push({idx:Be,child:Re.splice(Be,1)[0]}))}}),H=P?P(E,u.get("layout")):E,hR(H,function(Se){var Re=X[Se.id];if(Re==null?void 0:Re.length)for(var Be=Re.length-1;Be>=0;Be--){var Ye=Re[Be],ht=Ye.idx,Tt=Ye.child;Se.children.splice(ht,0,Tt)}})}else H=P?P(E,u.get("layout")):E;var ee=u.get("animate");if(u.emit("beforerefreshlayout",{data:E,layoutData:H}),u.emit("beforelayout"),u.innerUpdateChild(H,void 0,ee),a){var se=u.get("viewController");se.fitView()}ee?u.layoutAnimate(H):(u.refresh(),u.paint()),u.emit("afterrefreshlayout",{data:E,layoutData:H}),u.emit("afterlayout")},i.prototype.addChild=function(a,l,u){u===void 0&&(u=!0);var E=this;E.emit("beforeaddchild",{model:a,parent:l}),(0,Nn.isString)(l)||(l=l.get("id"));var P=E.findDataById(l);if(P){P.children||(P.children=[]),P.children.push(a);var j=E.findById(l);j.refresh(),E.changeData(void 0,u)}},i.prototype.updateChildren=function(a,l,u){u===void 0&&(u=!0);var E=this,P=E.findById(l);if(!l||!P){console.warn("Update children failed! There is no node with id '".concat(l,"'"));return}var j=E.findDataById(l);j.children=a,P.refresh(),E.changeData(void 0,u)},i.prototype.updateChild=function(a,l,u){u===void 0&&(u=!0);var E=this;if(!l||!E.findById(l)){E.changeData(a,u);return}var P=E.findDataById(l),j=E.findById(a.id);if(P.children||(P.children=[]),!j)P.children.push(a);else{var H=i.indexOfChild(P.children,a.id);H>-1&&(P.children[H]=a)}var X=E.findById(l);X==null||X.refresh(),E.changeData(void 0,u)},i.prototype.removeChild=function(a,l){l===void 0&&(l=!0);var u=this,E=u.findById(a),P;if(E?P=E==null?void 0:E.get("parent"):P=u.getNodes().find(function(se){var Se=se.getModel().children||[];return!!Se.find(function(Re){return Re.id===a})}),P&&!P.destroyed){var j=P.get("id"),H=u.findDataById(j),X=H&&H.children||[],ee=i.indexOfChild(X,a);X.splice(ee,1),P.refresh()}u.changeData(void 0,l)},i.prototype.findDataById=function(a,l){var u=this;if(l||(l=u.get("data")),a===l.id)return l;var E=null;return(0,Nn.each)(l.children||[],function(P){if(P.id===a)return E=P,!1;if(E=u.findDataById(a,P),E)return!1}),E},i.prototype.layoutAnimate=function(a,l){var u=this,E=this.get("animateCfg");u.emit("beforeanimate",{data:a}),u.getEdges().forEach(function(P){var j=P.get("model");j.sourceAnchor||(j.sourceAnchor=P.get("sourceAnchorIndex"))}),this.get("canvas").animate(function(P){hR(a,function(j){var H=u.findById(j.id);if(H){var X=H.get("originAttrs"),ee=H.get("model");if(X||(X={x:ee.x,y:ee.y},H.set("originAttrs",X)),l){var se=l(H,P,X,a);H.set("model",Object.assign(ee,se))}else ee.x=X.x+(j.x-X.x)*P,ee.y=X.y+(j.y-X.y)*P}return!0}),(0,Nn.each)(u.get("removeList"),function(j){var H=j.getModel(),X=j.get("originAttrs"),ee=j.get("to");H.x=X.x+(ee.x-X.x)*P,H.y=X.y+(ee.y-X.y)*P}),u.refreshPositions()},{duration:E.duration,easing:E.ease,callback:function(){(0,Nn.each)(u.getNodes(),function(j){j.set("originAttrs",null)}),(0,Nn.each)(u.get("removeList"),function(j){u.removeItem(j,!1)}),u.set("removeList",[]),E.callback&&E.callback(),u.emit("afteranimate",{data:a})},delay:E.delay})},i.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},i.prototype.isLayoutAnimating=function(){return this.layoutAnimating},i.prototype.render=function(a){a===void 0&&(a=!0);var l=this,u=l.get("data");if(!u||!(0,Nn.isObject)(u)||!Object.keys(u).length)throw new Error("data must be defined first");l.clear(),a&&this.get("enabledStack")&&this.clearStack(),l.emit("beforerender"),l.layout(this.get("fitView")),l.emit("afterrender")},i.prototype.save=function(){return this.get("data")},i.prototype.data=function(a){C.prototype.data.call(this,a),this.set("originData",JSON.parse(JSON.stringify(a)))},i}(n5),aB=_M;function Ep(C,i){if(C)for(var a in i)i.hasOwnProperty(a)&&(C.style[a]=i[a]);return C}var iB=function(){function C(i){this._cfgs=(0,Nn.deepMix)(this.getDefaultCfgs(),i),this._events={},this.destroyed=!1}return C.prototype.getDefaultCfgs=function(){return{}},C.prototype.initPlugin=function(i){var a=this;a.set("graph",i);var l=a.getEvents(),u={};(0,Nn.each)(l,function(E,P){var j=(0,Nn.wrapBehavior)(a,E);u[P]=j,i.on(P,j)}),this._events=u,this.init()},C.prototype.getEvents=function(){return{}},C.prototype.get=function(i){var a;return(a=this._cfgs)===null||a===void 0?void 0:a[i]},C.prototype.set=function(i,a){this._cfgs[i]=a},C.prototype.destroy=function(){},C.prototype.destroyPlugin=function(){this.destroy();var i=this.get("graph"),a=this._events;(0,Nn.each)(a,function(l,u){i.off(u,l)}),this._events=null,this._cfgs=null,this.destroyed=!0},C}(),a_=iB,a3=function(){var C=function(a,l){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,E){u.__proto__=E}||function(u,E){for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(u[P]=E[P])},C(a,l)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");C(i,a);function l(){this.constructor=i}i.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),r5="url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2UwZTBlMCIgb3BhY2l0eT0iMC4yIiBzdHJva2Utd2lkdGg9IjEiLz48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=)",oB=function(C){a3(i,C);function i(a){return C.call(this,a)||this}return i.prototype.getDefaultCfgs=function(){return{img:r5,follow:!0}},i.prototype.init=function(){var a=this.get("graph"),l=a.get("container"),u=a.get("canvas").get("el"),E=this.get("img")||r5;E.includes("url(")||(E='url("'.concat(E,'")'));var P=Hv(`<div class='g6-grid-container' style="position:absolute;overflow:hidden;z-index: -1;"></div>`),j=Hv(`<div
|
||
class='g6-grid'
|
||
style='position:absolute;
|
||
background-image: `.concat(E,`;
|
||
user-select: none
|
||
'></div>`));this.set("container",P),this.set("gridContainer",j),this.positionInit(),P.appendChild(j),l.insertBefore(P,u)},i.prototype.positionInit=function(){var a=this.get("graph"),l=a.get("minZoom"),u=a.get("width"),E=a.get("height");Ep(this.get("container"),{width:"".concat(u,"px"),height:"".concat(E,"px")});var P=u*80/l,j=E*80/l;Ep(this.get("gridContainer"),{width:"".concat(P,"px"),height:"".concat(j,"px"),left:"-".concat(P/2,"px"),top:"-".concat(j/2,"px")})},i.prototype.getEvents=function(){return{viewportchange:"updateGrid"}},i.prototype.updateGrid=function(a){var l=this.get("gridContainer"),u=a.matrix;u||(u=[1,0,0,0,1,0,0,0,1]);var E=this.get("follow"),P="matrix(".concat(u[0],", ").concat(u[1],", ").concat(u[3],", ").concat(u[4],", ").concat(E?u[6]:"0",", ").concat(E?u[7]:"0",")");Ep(l,{transform:P})},i.prototype.getContainer=function(){return this.get("container")},i.prototype.destroy=function(){var a=this.get("graph"),l=a.get("container"),u=this.get("container");l.removeChild(u)},i}(a_),sB=oB,lB=o(8645),mR=o.n(lB),cB=function(){var C=function(a,l){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,E){u.__proto__=E}||function(u,E){for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(u[P]=E[P])},C(a,l)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");C(i,a);function l(){this.constructor=i}i.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();typeof document!="undefined"&&mR()(`
|
||
.g6-component-contextmenu {
|
||
border: 1px solid #e2e2e2;
|
||
border-radius: 4px;
|
||
font-size: 12px;
|
||
color: #545454;
|
||
background-color: rgba(255, 255, 255, 0.9);
|
||
padding: 10px 8px;
|
||
box-shadow: rgb(174, 174, 174) 0px 0px 10px;
|
||
}
|
||
.g6-contextmenu-ul {
|
||
padding: 0;
|
||
margin: 0;
|
||
list-style: none;
|
||
}
|
||
|
||
`);var a5=function(C){cB(i,C);function i(a){return C.call(this,a)||this}return i.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,handleMenuClick:void 0,getContent:function(l){return`
|
||
<ul class='g6-contextmenu-ul'>
|
||
<li>\u83DC\u5355\u98791</li>
|
||
<li>\u83DC\u5355\u98792</li>
|
||
</ul>
|
||
`},shouldBegin:function(l){return!0},onHide:function(){return!0},itemTypes:["node","edge","combo"],trigger:"contextmenu"}},i.prototype.getEvents=function(){return this.get("trigger")==="click"?{click:"onMenuShow",touchend:"onMenuShow"}:{contextmenu:"onMenuShow"}},i.prototype.init=function(){var a=this.get("className"),l=Hv("<div class=".concat(a||"g6-component-contextmenu","></div>"));Ep(l,{top:"0px",position:"absolute",visibility:"hidden"});var u=this.get("container");u||(u=this.get("graph").get("container")),(0,Nn.isString)(u)&&(u=document.getElementById(u)),u.appendChild(l),this.set("menu",l)},i.prototype.onMenuShow=function(a){var l=this;a.preventDefault();var u=this.get("itemTypes");if(a.item){if(a.item&&a.item.getType&&u.indexOf(a.item.getType())===-1){l.onMenuHide();return}}else if(u.indexOf("canvas")===-1){l.onMenuHide();return}var E=this.get("shouldBegin");if(!!E(a)){var P=this.get("menu"),j=this.get("getContent"),H=this.get("graph"),X=j(a,H);(0,Nn.isString)(X)?P.innerHTML=X:P.innerHTML=X.outerHTML,this.removeMenuEventListener();var ee=this.get("handleMenuClick");if(ee){var se=function(sr){ee(sr.target,a.item,H)};this.set("handleMenuClickWrapper",se),P.addEventListener("click",se)}var Se=H.get("width"),Re=H.get("height"),Be=P.getBoundingClientRect(),Ye=this.get("offsetX")||0,ht=this.get("offsetY")||0,Tt=H.getContainer().offsetTop,Dt=H.getContainer().offsetLeft,Kt=a.canvasX+Dt+Ye,gn=a.canvasY+Tt+ht;Kt+Be.width>Se&&(Kt=a.canvasX-Be.width-Ye+Dt),gn+Be.height>Re&&(gn=a.canvasY-Be.height-ht+Tt),Ep(P,{top:"".concat(gn,"px"),left:"".concat(Kt,"px"),visibility:"visible"});var bn=this.get("trigger")==="click",mn=function(sr){if(bn){bn=!1;return}l.onMenuHide()};document.body.addEventListener("click",mn),this.set("handler",mn)}},i.prototype.removeMenuEventListener=function(){var a=this.get("handleMenuClickWrapper"),l=this.get("handler");if(a){var u=this.get("menu");u.removeEventListener("click",a),this.set("handleMenuClickWrapper",null)}l&&document.body.removeEventListener("click",l)},i.prototype.onMenuHide=function(){var a=this.get("menu");a&&Ep(a,{visibility:"hidden"}),this.removeMenuEventListener()},i.prototype.destroy=function(){var a=this.get("menu");if(this.removeMenuEventListener(),a){var l=this.get("container");l||(l=this.get("graph").get("container")),(0,Nn.isString)(l)&&(l=document.getElementById(l)),l.removeChild(a)}},i}(a_),i5=a5,uB=function(){var C=function(a,l){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,E){u.__proto__=E}||function(u,E){for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(u[P]=E[P])},C(a,l)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");C(i,a);function l(){this.constructor=i}i.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),gR=function(){return gR=Object.assign||function(C){for(var i,a=1,l=arguments.length;a<l;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(C[u]=i[u])}return C},gR.apply(this,arguments)},i3=Math.max,o5=U_,o3="default",fB="keyShape",Q0="delegate",s5="svg",dB=function(C){uB(i,C);function i(a){var l=C.call(this,a)||this;return l.handleUpdateCanvas=(0,Nn.debounce)(function(u){var E=l;E.destroyed||E.updateCanvas()},100,!1),l}return i.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",type:"default",padding:50,size:[200,120],delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0,hideEdge:!1}},i.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"}},i.prototype.disableRefresh=function(){this.set("refresh",!1)},i.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas()},i.prototype.disableOneRefresh=function(){this.set("viewportChange",!0)},i.prototype.initViewport=function(){var a=this,l=this._cfgs,u=l.size,E=l.graph;if(!this.destroyed){var P=this.get("canvas"),j=P.get("container"),H=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,X=navigator.userAgent.toLowerCase().indexOf("safari")>-1,ee=Hv(`
|
||
<div
|
||
class=`.concat(l.viewportClassName,`
|
||
style='position:absolute;
|
||
left:0;
|
||
top:0;
|
||
box-sizing:border-box;
|
||
outline: 2px solid #1980ff;
|
||
cursor:move'
|
||
draggable=`).concat(!(X||H),`
|
||
</div>`)),se=0,Se=0,Re=!1,Be=0,Ye=0,ht=0,Tt=0,Dt=0,Kt=0,gn=X||H?"mousedown":"dragstart";ee.addEventListener(gn,function(sr){var yr,jr;if(sr.dataTransfer){var zr=new Image;zr.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' %3E%3Cpath /%3E%3C/svg%3E",(jr=(yr=sr.dataTransfer).setDragImage)===null||jr===void 0||jr.call(yr,zr,0,0);try{sr.dataTransfer.setData("text/html","view-port-minimap")}catch(za){sr.dataTransfer.setData("text","view-port-minimap")}}if(l.refresh=!1,sr.target===ee){var va=ee.style;Be=parseInt(va.left,10),Ye=parseInt(va.top,10),ht=parseInt(va.width,10),Tt=parseInt(va.height,10),!(ht>u[0]||Tt>u[1])&&(Kt=E.getZoom(),Dt=a.get("ratio"),Re=!0,se=sr.clientX,Se=sr.clientY)}},!1);var bn=function(yr){if(!(!Re||(0,Nn.isNil)(yr.clientX)||(0,Nn.isNil)(yr.clientY))){var jr=se-yr.clientX,zr=Se-yr.clientY;(Be-jr<0||Be-jr+ht>=u[0])&&(jr=0),(Ye-zr<0||Ye-zr+Tt>=u[1])&&(zr=0),Be-=jr,Ye-=zr,Ep(ee,{left:"".concat(Be,"px"),top:"".concat(Ye,"px")}),E.translate(jr*Kt/Dt,zr*Kt/Dt),se=yr.clientX,Se=yr.clientY}};!X&&!H&&ee.addEventListener("drag",bn,!1);var mn=function(){Re=!1,l.refresh=!0},kn=X||H?"mouseup":"dragend";ee.addEventListener(kn,mn,!1),j.addEventListener("mouseleave",mn),j.addEventListener("mouseup",mn),(X||H)&&j.addEventListener("mousemove",bn,!1),this.set("viewport",ee),j.appendChild(ee)}},i.prototype.updateViewport=function(){if(!this.destroyed){var a=this.get("ratio"),l=this.get("totaldx"),u=this.get("totaldy"),E=this.get("graph"),P=this.get("size"),j=E.get("canvas").get("el"),H=E.get("width")||j.scrollWidth||500,X=E.get("height")||j.scrollHeight||500,ee=E.getPointByCanvas(0,0),se=E.getPointByCanvas(H,X),Se=this.get("viewport");Se||this.initViewport();var Re=(se.x-ee.x)*a,Be=(se.y-ee.y)*a,Ye=ee.x*a+l,ht=ee.y*a+u,Tt=Ye+Re,Dt=ht+Be;Ye<0&&(Re+=Ye,Ye=0),Tt>P[0]&&(Re=Re-(Tt-P[0])),ht<0&&(Be+=ht,ht=0),Dt>P[1]&&(Be=Be-(Dt-P[1])),this.set("ratio",a);var Kt="".concat(Ye,"px"),gn="".concat(ht,"px");Ep(Se,{left:Kt,top:gn,width:"".concat(Re,"px"),height:"".concat(Be,"px")})}},i.prototype.updateGraphShapes=function(){var a=this._cfgs.graph,l=this.get("canvas"),u=a.get("group");if(!u.destroyed){l.clear();var E;this.get("hideEdge")?(E=l.addGroup(),u.get("children").forEach(function(j){j.get("id").includes("-edge")||E.add(j.clone())})):(E=u.clone(),E.resetMatrix(),l.add(E));var P=a.get("renderer");P===s5&&this.updateVisible(E)}},i.prototype.updateVisible=function(a){var l=this;if(!a.isGroup()&&!a.get("visible"))a.hide();else{var u=a.get("children");if(!u||!u.length)return;u.forEach(function(E){E.get("visible")||E.hide(),l.updateVisible(E)})}},i.prototype.updateKeyShapes=function(){var a=this,l=this._cfgs.graph,u=this.get("canvas"),E=u.get("children")[0]||u.addGroup();this.get("hideEdge")||(0,Nn.each)(l.getEdges(),function(H){a.updateOneEdgeKeyShape(H,E)}),(0,Nn.each)(l.getNodes(),function(H){a.updateOneNodeKeyShape(H,E)});var P=l.getCombos();if(P&&P.length){var j=E.find(function(H){return H.get("name")==="comboGroup"})||E.addGroup({name:"comboGroup"});setTimeout(function(){a.destroyed||((0,Nn.each)(P,function(H){a.updateOneComboKeyShape(H,j)}),j==null||j.sort(),j==null||j.toBack(),a.updateCanvas())},250)}this.clearDestroyedShapes()},i.prototype.updateOneComboKeyShape=function(a,l){if(!this.destroyed){var u=this.get("itemMap")||{},E=u[a.get("id")],P=a.getBBox(),j=a.get("keyShape").clone(),H=j.attr(),X={x:P.centerX,y:P.centerY};E?X=Object.assign(H,X):(E=j,l.add(E));var ee=E.get("type");(ee==="rect"||ee==="image")&&(X.x=P.minX,X.y=P.minY),E.attr(X),a.isVisible()?E.show():E.hide(),E.exist=!0;var se=a.getModel().depth;isNaN(se)||E.set("zIndex",se),u[a.get("id")]=E,this.set("itemMap",u)}},i.prototype.updateOneNodeKeyShape=function(a,l){var u=this.get("itemMap")||{},E=u[a.get("id")],P=a.getBBox(),j=a.get("keyShape").clone(),H=j.attr(),X={x:P.centerX,y:P.centerY};E?(X=Object.assign(H,X),E.toFront()):(E=j,l.add(E));var ee=E.get("type");(ee==="rect"||ee==="image")&&(X.x=P.minX,X.y=P.minY),E.attr(X),a.isVisible()?E.show():E.hide(),E.exist=!0;var se=a.getModel().depth;isNaN(se)||E.set("zIndex",se),u[a.get("id")]=E,this.set("itemMap",u)},i.prototype.updateDelegateShapes=function(){var a=this,l=this._cfgs.graph,u=this.get("canvas"),E=u.get("children")[0]||u.addGroup();this.get("hideEdge")||(0,Nn.each)(l.getEdges(),function(H){a.updateOneEdgeKeyShape(H,E)}),(0,Nn.each)(l.getNodes(),function(H){a.updateOneNodeDelegateShape(H,E)});var P=l.getCombos();if(P&&P.length){var j=E.find(function(H){return H.get("name")==="comboGroup"})||E.addGroup({name:"comboGroup"});setTimeout(function(){a.destroyed||((0,Nn.each)(P,function(H){a.updateOneComboKeyShape(H,j)}),j==null||j.sort(),j==null||j.toBack(),a.updateCanvas())},250)}this.clearDestroyedShapes()},i.prototype.clearDestroyedShapes=function(){var a=this.get("itemMap")||{},l=Object.keys(a);if(!(!l||l.length===0))for(var u=l.length-1;u>=0;u--){var E=a[l[u]],P=E.exist;E.exist=!1,P||(E.remove(),delete a[l[u]])}},i.prototype.updateOneEdgeKeyShape=function(a,l){var u=this.get("itemMap")||{},E=u[a.get("id")];if(E){var P=a.get("keyShape").attr("path");E.attr("path",P)}else E=a.get("keyShape").clone(),l.add(E);a.isVisible()?E.show():E.hide(),E.exist=!0,u[a.get("id")]=E,this.set("itemMap",u)},i.prototype.updateOneNodeDelegateShape=function(a,l){var u=this.get("delegateStyle"),E=this.get("itemMap")||{},P=E[a.get("id")],j=a.getBBox();if(P){var H={x:j.minX,y:j.minY,width:j.width,height:j.height};P.attr(H),P.toFront()}else P=l.addShape("rect",{attrs:gR({x:j.minX,y:j.minY,width:j.width,height:j.height},u),name:"minimap-node-shape"});a.isVisible()?P.show():P.hide(),P.exist=!0,E[a.get("id")]=P,this.set("itemMap",E)},i.prototype.init=function(){this.initContainer(),this.get("graph").on("afterupdateitem",this.handleUpdateCanvas),this.get("graph").on("afteritemstatechange",this.handleUpdateCanvas),this.get("graph").on("afteradditem",this.handleUpdateCanvas),this.get("graph").on("afterremoveitem",this.handleUpdateCanvas),this.get("graph").on("afterrender",this.handleUpdateCanvas),this.get("graph").on("afterlayout",this.handleUpdateCanvas)},i.prototype.initContainer=function(){var a=this,l=a.get("graph"),u=a.get("size"),E=a.get("className"),P=a.get("container"),j=Hv("<div class='".concat(E,"' style='width: ").concat(u[0],"px; height: ").concat(u[1],"px; overflow: hidden'></div>"));(0,Nn.isString)(P)&&(P=document.getElementById(P)),P?P.appendChild(j):l.get("container").appendChild(j),a.set("container",j);var H=Hv('<div class="g6-minimap-container" style="position: relative;"></div>');j.appendChild(H),H.addEventListener("dragenter",function(se){se.preventDefault()}),H.addEventListener("dragover",function(se){se.preventDefault()});var X,ee=l.get("renderer");ee===s5?X=new vM({container:H,width:u[0],height:u[1]}):X=new v1({container:H,width:u[0],height:u[1]}),a.set("canvas",X),a.updateCanvas()},i.prototype.updateCanvas=function(){if(!this.destroyed){var a=this.get("refresh");if(!!a){var l=this.get("graph");if(!l.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var u=this.get("size"),E=this.get("canvas"),P=this.get("type"),j=this.get("padding");if(!E.destroyed){switch(P){case o3:this.updateGraphShapes();break;case fB:this.updateKeyShapes();break;case Q0:this.updateDelegateShapes();break;default:break}var H=E.get("children")[0];if(!!H){H.resetMatrix();var X=H.getCanvasBBox(),ee=l.get("canvas").getCanvasBBox(),se=l.getZoom()||1,Se=ee.width/se,Re=ee.height/se;Number.isFinite(X.width)&&(Se=i3(X.width,Se),Re=i3(X.height,Re)),Se+=2*j,Re+=2*j;var Be=Math.min(u[0]/Se,u[1]/Re),Ye=[1,0,0,0,1,0,0,0,1],ht=0,Tt=0;Number.isFinite(X.minX)&&(ht=-X.minX),Number.isFinite(X.minY)&&(Tt=-X.minY);var Dt=(u[0]-(Se-2*j)*Be)/2,Kt=(u[1]-(Re-2*j)*Be)/2;Ye=o5(Ye,[["t",ht,Tt],["s",Be,Be],["t",Dt,Kt]]),H.setMatrix(Ye),this.set("ratio",Be),this.set("totaldx",Dt+ht*Be),this.set("totaldy",Kt+Tt*Be),this.set("dx",Dt),this.set("dy",Kt),this.updateViewport()}}}}}},i.prototype.getCanvas=function(){return this.get("canvas")},i.prototype.getViewport=function(){return this.get("viewport")},i.prototype.getContainer=function(){return this.get("container")},i.prototype.destroy=function(){var a;(a=this.get("canvas"))===null||a===void 0||a.destroy();var l=this.get("container");(l==null?void 0:l.parentNode)&&l.parentNode.removeChild(l)},i}(a_),pB=dB,vB=function(){var C=function(a,l){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,E){u.__proto__=E}||function(u,E){for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(u[P]=E[P])},C(a,l)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");C(i,a);function l(){this.constructor=i}i.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();function g1(C,i,a){var l=C.x-i.x,u=C.y-i.y;return!a||Math.abs(l)>a||Math.abs(u)>a?Math.sqrt(l*l+u*u):a}function hB(C,i){return C.x*i.x+C.y*i.y}function l5(C,i){var a=(i.source.y-i.target.y)/(i.source.x-i.target.x),l=(a*a*i.source.x+a*(C.y-i.source.y)+C.x)/(a*a+1),u=a*(l-i.source.x)+i.source.y;return{x:l,y:u}}var c5=function(C){vB(i,C);function i(a){return C.call(this,a)||this}return i.prototype.getDefaultCfgs=function(){return{edgeBundles:[],edgePoints:[],K:.1,lambda:.1,divisions:1,divRate:2,cycles:6,iterations:90,iterRate:.6666667,bundleThreshold:.6,eps:1e-6,onLayoutEnd:function(){},onTick:function(){}}},i.prototype.init=function(){var a=this.get("graph"),l=this.get("onTick"),u=function(){l&&l(),a.refreshPositions()};this.set("tick",u)},i.prototype.bundling=function(a){var l=this;if(l.set("data",a),!l.isTicking()){var u=a.edges||[],E=a.nodes||[],P={},j=!1;if(E.forEach(function(gn){(gn.x===null||!gn.y===null||gn.x===void 0||!gn.y===void 0)&&(j=!0),P[gn.id]=gn}),j)throw new Error("please layout the graph or assign x and y for nodes first");l.set("nodeIdMap",P);var H=l.get("divisions"),X=l.get("divRate"),ee=l.divideEdges(H);l.set("edgePoints",ee);var se=l.getEdgeBundles();l.set("edgeBundles",se);for(var Se=l.get("cycles"),Re=l.get("iterations"),Be=l.get("iterRate"),Ye=l.get("lambda"),ht=0;ht<Se;ht++){for(var Tt=function(bn){var mn=[];u.forEach(function(kn,sr){if(kn.source!==kn.target){var yr=P[kn.source],jr=P[kn.target];mn[sr]=l.getEdgeForces({source:yr,target:jr},sr,H,Ye);for(var zr=0;zr<H+1;zr++)ee[sr][zr].x+=mn[sr][zr].x,ee[sr][zr].y+=mn[sr][zr].y}})},Dt=0;Dt<Re;Dt++)Tt(Dt);Ye=Ye/2,H*=X,Re*=Be,ee=l.divideEdges(H),l.set("edgePoints",ee)}u.forEach(function(gn,bn){gn.source!==gn.target&&(gn.type="polyline",gn.controlPoints=ee[bn].slice(1,ee[bn].length-1))});var Kt=l.get("graph");Kt.refresh()}},i.prototype.updateBundling=function(a){var l=this,u=a.data;if(u&&l.set("data",u),l.get("ticking")&&l.set("ticking",!1),Object.keys(a).forEach(function(P){l.set(P,a[P])}),a.onTick){var E=this.get("graph");l.set("tick",function(){a.onTick(),E.refresh()})}l.bundling(u)},i.prototype.divideEdges=function(a){var l=this,u=l.get("data").edges,E=l.get("nodeIdMap"),P=l.get("edgePoints");return(!P||P===void 0)&&(P=[]),u.forEach(function(j,H){var X;(!P[H]||P[H]===void 0)&&(P[H]=[]);var ee=E[j.source],se=E[j.target];if(a===1)P[H].push({x:ee.x,y:ee.y}),P[H].push({x:.5*(ee.x+se.x),y:.5*(ee.y+se.y)}),P[H].push({x:se.x,y:se.y});else{var Se=0;((X=P[H])===null||X===void 0?void 0:X.length)?Se=l.getEdgeLength(P[H]):Se=g1({x:ee.x,y:ee.y},{x:se.x,y:se.y});var Re=Se/(a+1),Be=Re,Ye=[{x:ee.x,y:ee.y}];P[H].forEach(function(ht,Tt){if(Tt!==0){for(var Dt=g1(ht,P[H][Tt-1]);Dt>Be;){var Kt=Be/Dt,gn={x:P[H][Tt-1].x,y:P[H][Tt-1].y};gn.x+=Kt*(ht.x-P[H][Tt-1].x),gn.y+=Kt*(ht.y-P[H][Tt-1].y),Ye.push(gn),Dt-=Be,Be=Re}Be-=Dt}}),Ye.push({x:se.x,y:se.y}),P[H]=Ye}}),P},i.prototype.getEdgeLength=function(a){var l=0;return a.forEach(function(u,E){E!==0&&(l+=g1(u,a[E-1]))}),l},i.prototype.getEdgeBundles=function(){var a=this,l=a.get("data"),u=l.edges||[],E=a.get("bundleThreshold"),P=a.get("nodeIdMap"),j=a.get("edgeBundles");return j||(j=[]),u.forEach(function(H,X){(!j[X]||j[X]===void 0)&&(j[X]=[])}),u.forEach(function(H,X){var ee=P[H.source],se=P[H.target];u.forEach(function(Se,Re){if(!(Re<=X)){var Be=P[Se.source],Ye=P[Se.target],ht=a.getBundleScore({source:ee,target:se},{source:Be,target:Ye});ht>=E&&(j[X].push(Re),j[Re].push(X))}})}),j},i.prototype.getBundleScore=function(a,l){var u=this;a.vx=a.target.x-a.source.x,a.vy=a.target.y-a.source.y,l.vx=l.target.x-l.source.x,l.vy=l.target.y-l.source.y,a.length=g1({x:a.source.x,y:a.source.y},{x:a.target.x,y:a.target.y}),l.length=g1({x:l.source.x,y:l.source.y},{x:l.target.x,y:l.target.y});var E=u.getAngleScore(a,l),P=u.getScaleScore(a,l),j=u.getPositionScore(a,l),H=u.getVisibilityScore(a,l);return E*P*j*H},i.prototype.getAngleScore=function(a,l){var u=hB({x:a.vx,y:a.vy},{x:l.vx,y:l.vy});return u/(a.length*l.length)},i.prototype.getScaleScore=function(a,l){var u=(a.length+l.length)/2,E=2/(u/Math.min(a.length,l.length)+Math.max(a.length,l.length)/u);return E},i.prototype.getPositionScore=function(a,l){var u=(a.length+l.length)/2,E={x:(a.source.x+a.target.x)/2,y:(a.source.y+a.target.y)/2},P={x:(l.source.x+l.target.x)/2,y:(l.source.y+l.target.y)/2},j=g1(E,P);return u/(u+j)},i.prototype.getVisibilityScore=function(a,l){var u=this.getEdgeVisibility(a,l),E=this.getEdgeVisibility(l,a);return u<E?u:E},i.prototype.getEdgeVisibility=function(a,l){var u=l5(l.source,a),E=l5(l.target,a),P={x:(u.x+E.x)/2,y:(u.y+E.y)/2},j={x:(a.source.x+a.target.x)/2,y:(a.source.y+a.target.y)/2};return Math.max(0,1-2*g1(P,j)/g1(u,E))},i.prototype.getEdgeForces=function(a,l,u,E){for(var P=this,j=P.get("edgePoints"),H=P.get("K"),X=H/(g1(a.source,a.target)*(u+1)),ee=[{x:0,y:0}],se=1;se<u;se++){var Se={x:0,y:0},Re=P.getSpringForce({pre:j[l][se-1],cur:j[l][se],next:j[l][se+1]},X),Be=P.getElectrostaticForce(se,l);Se.x=E*(Re.x+Be.x),Se.y=E*(Re.y+Be.y),ee.push(Se)}return ee.push({x:0,y:0}),ee},i.prototype.getSpringForce=function(a,l){var u=a.pre.x+a.next.x-2*a.cur.x,E=a.pre.y+a.next.y-2*a.cur.y;return u*=l,E*=l,{x:u,y:E}},i.prototype.getElectrostaticForce=function(a,l){var u=this,E=u.get("eps"),P=u.get("edgeBundles"),j=u.get("edgePoints"),H=P[l],X={x:0,y:0};return H.forEach(function(ee){var se={x:j[ee][a].x-j[l][a].x,y:j[ee][a].y-j[l][a].y};if(Math.abs(se.x)>E||Math.abs(se.y)>E){var Se=g1(j[ee][a],j[l][a]),Re=1/Se;X.x+=se.x*Re,X.y+=se.y*Re}}),X},i.prototype.isTicking=function(){return this.get("ticking")},i.prototype.getSimulation=function(){return this.get("forceSimulation")},i.prototype.destroy=function(){this.get("ticking")&&this.getSimulation().stop(),C.prototype.destroy.call(this)},i}(a_),s3=c5,u5=function(){var C=function(a,l){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,E){u.__proto__=E}||function(u,E){for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(u[P]=E[P])},C(a,l)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");C(i,a);function l(){this.constructor=i}i.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),l3=function(){return l3=Object.assign||function(C){for(var i,a=1,l=arguments.length;a<l;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(C[u]=i[u])}return C},l3.apply(this,arguments)},_R=.05,f5={stroke:"#000",strokeOpacity:.8,lineWidth:2,fillOpacity:.1,fill:"#ccc"},c3=function(C){u5(i,C);function i(a){return C.call(this,a)||this}return i.prototype.getDefaultCfgs=function(){return{trigger:"mousemove",d:1.5,r:300,delegateStyle:(0,Nn.clone)(f5),showLabel:!1,maxD:5,minD:0,scaleRBy:"unset",scaleDBy:"unset",showDPercent:!0}},i.prototype.getEvents=function(){var a;switch(this.get("trigger")){case"click":a={click:"magnify"};break;case"drag":a={click:"createDelegate"};break;default:a={mousemove:"magnify"};break}return a},i.prototype.init=function(){var a=this,l=a.get("r");a.set("cachedMagnifiedModels",[]),a.set("cachedOriginPositions",{}),a.set("r2",l*l);var u=a.get("d");a.set("molecularParam",(u+1)*l)},i.prototype.createDelegate=function(a){var l=this,u=this,E=u.get("delegate");(!E||E.destroyed)&&(u.magnify(a),E=u.get("delegate"),E.on("dragstart",function(P){u.set("delegateCenterDiff",{x:E.attr("x")-P.x,y:E.attr("y")-P.y})}),E.on("drag",function(P){u.magnify(P)}),this.get("scaleDBy")==="wheel"&&E.on("mousewheel",function(P){l.scaleDByWheel(P)}),this.get("scaleRBy")==="wheel"&&E.on("mousewheel",function(P){u.scaleRByWheel(P)}))},i.prototype.scaleRByWheel=function(a){var l=this;if(!(!a||!a.originalEvent)){a.preventDefault&&a.preventDefault();var u=l.get("graph"),E,P=l.get("delegate"),j=P?{x:P.attr("x"),y:P.attr("y")}:void 0,H=j||u.getPointByClient(a.clientX,a.clientY);a.originalEvent.wheelDelta<0?E=1-_R:E=1/(1-_R);var X=l.get("maxR"),ee=l.get("minR"),se=l.get("r");(se>(X||u.get("height"))&&E>1||se<(ee||u.get("height")*.05)&&E<1)&&(E=1),se*=E,l.set("r",se),l.set("r2",se*se);var Se=l.get("d");l.set("molecularParam",(Se+1)*se),l.set("delegateCenterDiff",void 0),l.magnify(a,H)}},i.prototype.scaleRByDrag=function(a){var l=this;if(!!a){var u=l.get("dragPrePos"),E=l.get("graph"),P,j=E.getPointByClient(a.clientX,a.clientY);a.x-u.x<0?P=1-_R:P=1/(1-_R);var H=l.get("maxR"),X=l.get("minR"),ee=l.get("r");(ee>(H||E.get("height"))&&P>1||ee<(X||E.get("height")*.05)&&P<1)&&(P=1),ee*=P,l.set("r",ee),l.set("r2",ee*ee);var se=l.get("d");l.set("molecularParam",(se+1)*ee),l.magnify(a,j),l.set("dragPrePos",{x:a.x,y:a.y})}},i.prototype.scaleDByWheel=function(a){var l=this;if(!(!a&&!a.originalEvent)){a.preventDefault&&a.preventDefault();var u=0;a.originalEvent.wheelDelta<0?u=-.1:u=.1;var E=l.get("d"),P=E+u,j=l.get("maxD"),H=l.get("minD");if(P<j&&P>H){l.set("d",P);var X=l.get("r");l.set("molecularParam",(P+1)*X);var ee=l.get("delegate"),se=ee?{x:ee.attr("x"),y:ee.attr("y")}:void 0;l.set("delegateCenterDiff",void 0),l.magnify(a,se)}}},i.prototype.scaleDByDrag=function(a){var l=this,u=l.get("dragPrePos"),E=a.x-u.x>0?.1:-.1,P=l.get("d"),j=P+E,H=l.get("maxD"),X=l.get("minD");if(j<H&&j>X){l.set("d",j);var ee=l.get("r");l.set("molecularParam",(j+1)*ee),l.magnify(a)}l.set("dragPrePos",{x:a.x,y:a.y})},i.prototype.magnify=function(a,l){var u=this;u.restoreCache();var E=u.get("graph"),P=u.get("cachedMagnifiedModels"),j=u.get("cachedOriginPositions"),H=u.get("showLabel"),X=u.get("r"),ee=u.get("r2"),se=u.get("d"),Se=u.get("molecularParam"),Re=E.getNodes(),Be=Re.length,Ye=l?{x:l.x,y:l.y}:{x:a.x,y:a.y};u.get("dragging")&&(u.get("trigger")==="mousemove"||u.get("trigger")==="click")&&(Ye=u.get("cacheCenter"));var ht=u.get("delegateCenterDiff");ht&&(Ye.x+=ht.x,Ye.y+=ht.y),u.updateDelegate(Ye,X);for(var Tt=0;Tt<Be;Tt++){var Dt=Re[Tt].getModel(),Kt=Dt.x,gn=Dt.y;if(!(isNaN(Kt)||isNaN(gn))){var bn=(Kt-Ye.x)*(Kt-Ye.x)+(gn-Ye.y)*(gn-Ye.y);if(!isNaN(bn)&&bn<ee&&bn!==0){var mn=Math.sqrt(bn),kn=Se*mn/(se*mn+X),sr=(Kt-Ye.x)/mn,yr=(gn-Ye.y)/mn;if(Dt.x=sr*kn+Ye.x,Dt.y=yr*kn+Ye.y,j[Dt.id]||(j[Dt.id]={x:Kt,y:gn,texts:[]}),P.push(Dt),H&&2*mn<X)for(var jr=Re[Tt],zr=jr.getContainer(),va=zr.getChildren(),za=va.length,xi=0;xi<za;xi++){var Di=va[xi];Di.get("type")==="text"&&(j[Dt.id].texts.push({visible:Di.get("visible"),shape:Di}),Di.set("visible",!0))}}}}E.refreshPositions()},i.prototype.restoreCache=function(){for(var a=this,l=a.get("cachedMagnifiedModels"),u=a.get("cachedOriginPositions"),E=l.length,P=0;P<E;P++){var j=l[P],H=j.id,X=u[H];j.x=X.x,j.y=X.y;for(var ee=X.texts.length,se=0;se<ee;se++){var Se=X.texts[se];Se.shape.set("visible",Se.visible)}}a.set("cachedMagnifiedModels",[]),a.set("cachedOriginPositions",{})},i.prototype.updateParams=function(a){var l=this,u=a.r,E=a.d,P=a.trigger,j=a.minD,H=a.maxD,X=a.minR,ee=a.maxR,se=a.scaleDBy,Se=a.scaleRBy;isNaN(a.r)||(l.set("r",u),l.set("r2",u*u)),isNaN(E)||l.set("d",E),isNaN(H)||l.set("maxD",H),isNaN(j)||l.set("minD",j),isNaN(ee)||l.set("maxR",ee),isNaN(X)||l.set("minR",X);var Re=l.get("d"),Be=l.get("r");if(l.set("molecularParam",(Re+1)*Be),(P==="mousemove"||P==="click"||P==="drag")&&l.set("trigger",P),se==="drag"||se==="wheel"||se==="unset"){l.set("scaleDBy",se),l.get("delegate").remove(),l.get("delegate").destroy();var Ye=l.get("dPercentText");Ye&&(Ye.remove(),Ye.destroy())}if(Se==="drag"||Se==="wheel"||Se==="unset"){l.set("scaleRBy",Se),l.get("delegate").remove(),l.get("delegate").destroy();var Ye=l.get("dPercentText");Ye&&(Ye.remove(),Ye.destroy())}},i.prototype.updateDelegate=function(a,l){var u=this,E=this,P=E.get("graph"),j=E.get("delegate");if(!j||j.destroyed){var H=P.get("group"),X=E.get("delegateStyle")||f5;j=H.addShape("circle",{attrs:l3({r:l/1.5,x:a.x,y:a.y},X),name:"lens-shape",draggable:!0}),this.get("trigger")!=="drag"&&(this.get("scaleRBy")==="wheel"?j.on("mousewheel",function(Be){E.scaleRByWheel(Be)}):this.get("scaleRBy")==="drag"&&(j.on("dragstart",function(Be){E.set("dragging",!0),E.set("cacheCenter",{x:Be.x,y:Be.y}),E.set("dragPrePos",{x:Be.x,y:Be.y})}),j.on("drag",function(Be){E.scaleRByDrag(Be)}),j.on("dragend",function(Be){E.set("dragging",!1)})),this.get("scaleDBy")==="wheel"?j.on("mousewheel",function(Be){u.scaleDByWheel(Be)}):this.get("scaleDBy")==="drag"&&(j.on("dragstart",function(Be){E.set("dragging",!0),E.set("cacheCenter",{x:Be.x,y:Be.y}),E.set("dragPrePos",{x:Be.x,y:Be.y})}),j.on("drag",function(Be){u.scaleDByDrag(Be)}),j.on("dragend",function(Be){E.set("dragging",!1)})))}else j.attr({x:a.x,y:a.y,r:l/1.5});if(E.get("showDPercent")){var ee=Math.round((E.get("d")-E.get("minD"))/(E.get("maxD")-E.get("minD"))*100),se=E.get("dPercentText"),Se=a.y+l/1.5+16;if(!se||se.destroyed){var Re=P.get("group");se=Re.addShape("text",{attrs:{text:"".concat(ee,"%"),x:a.x,y:Se,fill:"#aaa",stroke:"#fff",lineWidth:1,fontSize:12}}),E.set("dPercentText",se)}else se.attr({text:"".concat(ee,"%"),x:a.x,y:Se})}E.set("delegate",j)},i.prototype.clear=function(){var a=this.get("graph");this.restoreCache(),a.refreshPositions();var l=this.get("delegate");l&&!l.destroyed&&(l.remove(),l.destroy());var u=this.get("dPercentText");u&&!u.destroyed&&(u.remove(),u.destroy())},i.prototype.destroy=function(){this.clear()},i}(a_),yM=c3,d5=function(){var C=function(a,l){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,E){u.__proto__=E}||function(u,E){for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(u[P]=E[P])},C(a,l)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");C(i,a);function l(){this.constructor=i}i.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),yR=.05;typeof document!="undefined"&&mR()(`
|
||
.g6-component-toolbar {
|
||
position: absolute;
|
||
list-style-type: none;
|
||
padding: 6px;
|
||
left: 0px;
|
||
top: 0px;
|
||
background-color: rgba(255, 255, 255, 0.9);
|
||
border: 1px solid #e2e2e2;
|
||
border-radius: 4px;
|
||
font-size: 12px;
|
||
color: #545454;
|
||
margin: 0;
|
||
}
|
||
.g6-component-toolbar li {
|
||
float: left;
|
||
text-align: center;
|
||
width: 35px;
|
||
height: 24px;
|
||
cursor: pointer;
|
||
list-style-type:none;
|
||
list-style: none;
|
||
margin-left: 0px;
|
||
}
|
||
.g6-component-toolbar li .icon {
|
||
opacity: 0.7;
|
||
}
|
||
.g6-component-toolbar li .icon:hover {
|
||
opacity: 1;
|
||
}
|
||
`);var bR=function(i){if(!i)return[];if(i.composedPath)return i.composedPath();for(var a=[],l=i.target;l;){if(a.push(l),l.tagName==="HTML")return a.push(document,window),a;l=l.parentElement}return a},mB=function(C){d5(i,C);function i(a){return C.call(this,a)||this}return i.prototype.getDefaultCfgs=function(){return{handleClick:void 0,getContent:function(l){return`
|
||
<ul class='g6-component-toolbar'>
|
||
<li code='redo'>
|
||
<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">
|
||
<path d="M256 682.666667c0-102.741333 66.730667-213.333333 213.333333-213.333334 107.008 0 190.762667 56.576 230.570667 125.354667L611.968 682.666667H853.333333v-241.365334l-91.562666 91.562667C704.768 448.469333 601.130667 384 469.333333 384c-196.096 0-298.666667 150.229333-298.666666 298.666667h85.333333z" fill="" p-id="2041"></path>
|
||
</svg>
|
||
</li>
|
||
<li code='undo'>
|
||
<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">
|
||
<path d="M170.666667 682.666667h241.365333l-87.936-87.978667C363.904 525.909333 447.658667 469.333333 554.666667 469.333333c146.602667 0 213.333333 110.592 213.333333 213.333334h85.333333c0-148.437333-102.570667-298.666667-298.666666-298.666667-131.797333 0-235.392 64.469333-292.48 148.821333L170.666667 441.301333V682.666667z" fill="" p-id="2764"></path>
|
||
</svg>
|
||
</li>
|
||
<li code='zoomOut'>
|
||
<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">
|
||
<path d="M658.432 428.736a33.216 33.216 0 0 1-33.152 33.152H525.824v99.456a33.216 33.216 0 0 1-66.304 0V461.888H360.064a33.152 33.152 0 0 1 0-66.304H459.52V296.128a33.152 33.152 0 0 1 66.304 0V395.52H625.28c18.24 0 33.152 14.848 33.152 33.152z m299.776 521.792a43.328 43.328 0 0 1-60.864-6.912l-189.248-220.992a362.368 362.368 0 0 1-215.36 70.848 364.8 364.8 0 1 1 364.8-364.736 363.072 363.072 0 0 1-86.912 235.968l192.384 224.64a43.392 43.392 0 0 1-4.8 61.184z m-465.536-223.36a298.816 298.816 0 0 0 298.432-298.432 298.816 298.816 0 0 0-298.432-298.432A298.816 298.816 0 0 0 194.24 428.8a298.816 298.816 0 0 0 298.432 298.432z"></path>
|
||
</svg>
|
||
</li>
|
||
<li code='zoomIn'>
|
||
<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">
|
||
<path d="M639.936 416a32 32 0 0 1-32 32h-256a32 32 0 0 1 0-64h256a32 32 0 0 1 32 32z m289.28 503.552a41.792 41.792 0 0 1-58.752-6.656l-182.656-213.248A349.76 349.76 0 0 1 480 768 352 352 0 1 1 832 416a350.4 350.4 0 0 1-83.84 227.712l185.664 216.768a41.856 41.856 0 0 1-4.608 59.072zM479.936 704c158.784 0 288-129.216 288-288S638.72 128 479.936 128a288.32 288.32 0 0 0-288 288c0 158.784 129.216 288 288 288z" p-id="3853"></path>
|
||
</svg>
|
||
</li>
|
||
<li code='realZoom'>
|
||
<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="24">
|
||
<path d="M384 320v384H320V320h64z m256 0v384H576V320h64zM512 576v64H448V576h64z m0-192v64H448V384h64z m355.968 576H92.032A28.16 28.16 0 0 1 64 931.968V28.032C64 12.608 76.608 0 95.168 0h610.368L896 192v739.968a28.16 28.16 0 0 1-28.032 28.032zM704 64v128h128l-128-128z m128 192h-190.464V64H128v832h704V256z"></path>
|
||
</svg>
|
||
</li>
|
||
<li code='autoZoom'>
|
||
<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="24">
|
||
<path d="M684.288 305.28l0.128-0.64-0.128-0.64V99.712c0-19.84 15.552-35.904 34.496-35.712a35.072 35.072 0 0 1 34.56 35.776v171.008h170.944c19.648 0 35.84 15.488 35.712 34.432a35.072 35.072 0 0 1-35.84 34.496h-204.16l-0.64-0.128a32.768 32.768 0 0 1-20.864-7.552c-1.344-1.024-2.816-1.664-3.968-2.816-0.384-0.32-0.512-0.768-0.832-1.088a33.472 33.472 0 0 1-9.408-22.848zM305.28 64a35.072 35.072 0 0 0-34.56 35.776v171.008H99.776A35.072 35.072 0 0 0 64 305.216c0 18.944 15.872 34.496 35.84 34.496h204.16l0.64-0.128a32.896 32.896 0 0 0 20.864-7.552c1.344-1.024 2.816-1.664 3.904-2.816 0.384-0.32 0.512-0.768 0.768-1.088a33.024 33.024 0 0 0 9.536-22.848l-0.128-0.64 0.128-0.704V99.712A35.008 35.008 0 0 0 305.216 64z m618.944 620.288h-204.16l-0.64 0.128-0.512-0.128c-7.808 0-14.72 3.2-20.48 7.68-1.28 1.024-2.752 1.664-3.84 2.752-0.384 0.32-0.512 0.768-0.832 1.088a33.664 33.664 0 0 0-9.408 22.912l0.128 0.64-0.128 0.704v204.288c0 19.712 15.552 35.904 34.496 35.712a35.072 35.072 0 0 0 34.56-35.776V753.28h170.944c19.648 0 35.84-15.488 35.712-34.432a35.072 35.072 0 0 0-35.84-34.496z m-593.92 11.52c-0.256-0.32-0.384-0.768-0.768-1.088-1.088-1.088-2.56-1.728-3.84-2.688a33.088 33.088 0 0 0-20.48-7.68l-0.512 0.064-0.64-0.128H99.84a35.072 35.072 0 0 0-35.84 34.496 35.072 35.072 0 0 0 35.712 34.432H270.72v171.008c0 19.84 15.552 35.84 34.56 35.776a35.008 35.008 0 0 0 34.432-35.712V720l-0.128-0.64 0.128-0.704a33.344 33.344 0 0 0-9.472-22.848zM512 374.144a137.92 137.92 0 1 0 0.128 275.84A137.92 137.92 0 0 0 512 374.08z"></path>
|
||
</svg>
|
||
</li>
|
||
</ul>
|
||
`},zoomSensitivity:2}},i.prototype.init=function(){var a=this,l=this.get("graph"),u=this.get("getContent"),E=u(l),P=E;(0,Nn.isString)(E)&&(P=Hv(E));var j=this.get("className");P.setAttribute("class",j||"g6-component-toolbar");var H=this.get("container");H||(H=this.get("graph").get("container")),(0,Nn.isString)(H)&&(H=document.getElementById(H)),H.appendChild(P),this.set("toolBar",P);var X=this.get("handleClick");P.addEventListener("click",function(se){var Se=bR(se).filter(function(Be){return Be.nodeName==="LI"});if(Se.length!==0){var Re=Se[0].getAttribute("code");!Re||(X?X(Re,l):a.handleDefaultOperator(Re))}});var ee=this.get("position");ee&&Ep(P,{top:"".concat(ee.y,"px"),left:"".concat(ee.x,"px")}),this.bindUndoRedo()},i.prototype.bindUndoRedo=function(){var a=this.get("graph"),l=document.querySelector('.g6-component-toolbar li[code="undo"]'),u=document.querySelector('.g6-component-toolbar li[code="undo"] svg'),E=document.querySelector('.g6-component-toolbar li[code="redo"]'),P=document.querySelector('.g6-component-toolbar li[code="redo"] svg');!l||!u||!E||!P||(l.setAttribute("style","cursor: not-allowed"),u.setAttribute("style","opacity: 0.4"),E.setAttribute("style","cursor: not-allowed"),P.setAttribute("style","opacity: 0.4"),a.on("stackchange",function(j){var H=j.undoStack,X=j.redoStack,ee=H.length,se=X.length;ee===0?(l.setAttribute("style","cursor: not-allowed"),u.setAttribute("style","opacity: 0.4")):(l.removeAttribute("style"),u.removeAttribute("style")),se===0?(E.setAttribute("style","cursor: not-allowed"),P.setAttribute("style","opacity: 0.4")):(E.removeAttribute("style"),P.removeAttribute("style"))}))},i.prototype.undo=function(){var a=this.get("graph"),l=a.getUndoStack();if(!(!l||l.length===0)){var u=l.pop();if(u){var E=u.action;a.pushStack(E,(0,Nn.clone)(u.data),"redo");var P=u.data.before;if(E==="add"&&(P=u.data.after),!P)return;switch(E){case"visible":{Object.keys(P).forEach(function(se){var Se=P[se];!Se||Se.forEach(function(Re){var Be=a.findById(Re.id);Re.visible?a.showItem(Be,!1):a.hideItem(Be,!1)})});break}case"render":case"update":Object.keys(P).forEach(function(se){var Se=P[se];!Se||Se.forEach(function(Re){var Be=a.findById(Re.id);delete Re.id,a.updateItem(Be,Re,!1),Be.getType()==="combo"&&a.updateCombo(Be)})});break;case"changedata":a.changeData(P,!1);break;case"delete":{Object.keys(P).forEach(function(se){var Se=P[se];!Se||Se.forEach(function(Re){var Be=Re.itemType;delete Re.itemType,a.addItem(Be,Re,!1)})});break}case"add":Object.keys(P).forEach(function(se){var Se=P[se];!Se||Se.forEach(function(Re){a.removeItem(Re.id,!1)})});break;case"updateComboTree":Object.keys(P).forEach(function(se){var Se=P[se];!Se||Se.forEach(function(Re){a.updateComboTree(Re.id,Re.parentId,!1)})});break;case"createCombo":var j=u.data.after.combos,H=j[j.length-1];Object.keys(P).forEach(function(se){var Se=P[se];!Se||Se.forEach(function(Re){a.updateComboTree(Re.id,Re.parentId,!1)})}),a.removeItem(H.id,!1);break;case"uncombo":var X=P.combos[P.combos.length-1],ee=P.nodes.concat(P.combos).map(function(se){return se.id}).filter(function(se){return se!==X.id});a.createCombo(X,ee,!1);break;case"layout":a.updateLayout(P,void 0,void 0,!1);break;default:}}}},i.prototype.redo=function(){var a=this.get("graph"),l=a.getRedoStack();if(!(!l||l.length===0)){var u=l.pop();if(u){var E=u.action,P=u.data.after;if(a.pushStack(E,(0,Nn.clone)(u.data)),E==="delete"&&(P=u.data.before),!P)return;switch(E){case"visible":{Object.keys(P).forEach(function(ee){var se=P[ee];!se||se.forEach(function(Se){var Re=a.findById(Se.id);Se.visible?a.showItem(Re,!1):a.hideItem(Re,!1)})});break}case"render":case"update":Object.keys(P).forEach(function(ee){var se=P[ee];!se||se.forEach(function(Se){var Re=a.findById(Se.id);delete Se.id,a.updateItem(Re,Se,!1),Re.getType()==="combo"&&a.updateCombo(Re)})});break;case"changedata":a.changeData(P,!1);break;case"delete":P.edges&&P.edges.forEach(function(ee){a.removeItem(ee.id,!1)}),P.nodes&&P.nodes.forEach(function(ee){a.removeItem(ee.id,!1)}),P.combos&&P.combos.forEach(function(ee){a.removeItem(ee.id,!1)});break;case"add":{Object.keys(P).forEach(function(ee){var se=P[ee];!se||se.forEach(function(Se){var Re=Se.itemType;delete Se.itemType,a.addItem(Re,Se,!1)})});break}case"updateComboTree":Object.keys(P).forEach(function(ee){var se=P[ee];!se||se.forEach(function(Se){a.updateComboTree(Se.id,Se.parentId,!1)})});break;case"createCombo":var j=P.combos[P.combos.length-1];a.createCombo(j,j.children.map(function(ee){return ee.id}),!1);break;case"uncombo":var H=u.data.before.combos,X=H[H.length-1];a.uncombo(X.id,!1);break;case"layout":a.updateLayout(P,void 0,void 0,!1);break;default:}}}},i.prototype.zoomOut=function(){var a=this.get("graph"),l=a.getZoom(),u=1/(1-yR*this.get("zoomSensitivity")),E=this.get("maxZoom")||a.get("maxZoom");u*l>E||a.zoomTo(l*u)},i.prototype.zoomIn=function(){var a=this.get("graph"),l=a.getZoom(),u=1-yR*this.get("zoomSensitivity"),E=this.get("minZoom")||a.get("minZoom");u*l<E||a.zoomTo(l*u)},i.prototype.realZoom=function(){var a=this.get("graph");a.zoomTo(1)},i.prototype.autoZoom=function(){var a=this.get("graph");a.fitView([20,20])},i.prototype.handleDefaultOperator=function(a){switch(a){case"redo":this.redo();break;case"undo":this.undo();break;case"zoomOut":this.zoomOut();break;case"zoomIn":this.zoomIn();break;case"realZoom":this.realZoom();break;case"autoZoom":this.autoZoom();break;default:}},i.prototype.destroy=function(){var a=this.get("toolBar");if(a){var l=this.get("container");l||(l=this.get("graph").get("container")),(0,Nn.isString)(l)&&(l=document.getElementById(l)),l.removeChild(a)}var u=this.get("handleClick");u&&a.removeEventListener("click",u)},i}(a_),gB=mB,_B=function(){var C=function(a,l){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,E){u.__proto__=E}||function(u,E){for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(u[P]=E[P])},C(a,l)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");C(i,a);function l(){this.constructor=i}i.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();typeof document!="undefined"&&mR()(`
|
||
.g6-component-tooltip {
|
||
border: 1px solid #e2e2e2;
|
||
border-radius: 4px;
|
||
font-size: 12px;
|
||
color: #545454;
|
||
background-color: rgba(255, 255, 255, 0.9);
|
||
padding: 10px 8px;
|
||
box-shadow: rgb(174, 174, 174) 0px 0px 10px;
|
||
}
|
||
.tooltip-type {
|
||
padding: 0;
|
||
margin: 0;
|
||
}
|
||
.tooltip-id {
|
||
color: #531dab;
|
||
}
|
||
`);var bM=function(C){_B(i,C);function i(a){return C.call(this,a)||this}return i.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,getContent:function(l){return`
|
||
<h4 class='tooltip-type'>\u7C7B\u578B\uFF1A`.concat(l.item.getType(),`</h4>
|
||
<span class='tooltip-id'>ID\uFF1A`).concat(l.item.getID(),`</span>
|
||
`)},shouldBegin:function(l){return!0},itemTypes:["node","edge","combo"],trigger:"mouseenter",fixToNode:void 0}},i.prototype.getEvents=function(){return this.get("trigger")==="click"?{"node:click":"onClick","edge:click":"onClick","combo:click":"onClick","canvas:click":"onMouseLeave",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave",drag:"onMouseLeave"}:{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove","edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove","combo:mouseenter":"onMouseEnter","combo:mouseleave":"onMouseLeave","combo:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave","node:drag":"onMouseLeave"}},i.prototype.init=function(){var a=this,l=a.get("className")||"g6-component-tooltip",u=Hv("<div class='".concat(l,"'></div>")),E=a.get("container");E||(E=a.get("graph").get("container")),(0,Nn.isString)(E)&&(E=document.getElementById(E)),Ep(u,{position:"absolute",visibility:"hidden",display:"none"}),E.appendChild(u),a.get("trigger")!=="click"&&(u.addEventListener("mouseenter",function(P){Ep(u,{visibility:"visible",display:"unset"})}),u.addEventListener("mouseleave",function(P){a.hideTooltip()})),a.set("tooltip",u)},i.prototype.onClick=function(a){var l=this.get("itemTypes");if(!(a.item&&a.item.getType&&l.indexOf(a.item.getType())===-1)){var u=a.item,E=this.get("graph");this.currentTarget===u?(this.currentTarget=null,this.hideTooltip(),E.emit("tooltipchange",{item:a.item,action:"hide"})):(this.currentTarget=u,this.showTooltip(a),E.emit("tooltipchange",{item:a.item,action:"show"}))}},i.prototype.onMouseEnter=function(a){var l=this.get("itemTypes");if(!(a.item&&a.item.getType&&l.indexOf(a.item.getType())===-1)){var u=a.item,E=this.get("graph");this.currentTarget=u,this.showTooltip(a),E.emit("tooltipchange",{item:a.item,action:"show"})}},i.prototype.onMouseMove=function(a){var l=this.get("itemTypes");a.item&&a.item.getType&&l.indexOf(a.item.getType())===-1||!this.currentTarget||a.item!==this.currentTarget||this.showTooltip(a)},i.prototype.onMouseLeave=function(){this.hideTooltip();var a=this.get("graph");a.emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null},i.prototype.clearContainer=function(){var a=this.get("tooltip");a&&(a.innerHTML="")},i.prototype.showTooltip=function(a){if(!!a.item){var l=this.get("itemTypes");if(!(a.item.getType&&l.indexOf(a.item.getType())===-1)){var u=this.get("tooltip"),E=this.get("getContent"),P=E(a);(0,Nn.isString)(P)?u.innerHTML=P:(this.clearContainer(),u.appendChild(P)),this.updatePosition(a)}}},i.prototype.hideTooltip=function(){var a=this.get("tooltip");a&&Ep(a,{visibility:"hidden",display:"none"})},i.prototype.updatePosition=function(a){var l=this.get("shouldBegin"),u=this.get("tooltip");if(!l(a)){Ep(u,{visibility:"hidden",display:"none"});return}var E=this.get("graph"),P=E.get("width"),j=E.get("height"),H=this.get("offsetX")||0,X=this.get("offsetY")||0,ee=E.getPointByClient(a.clientX,a.clientY),se=this.get("fixToNode"),Se=a.item;if(Se.getType&&Se.getType()==="node"&&se&&(0,Nn.isArray)(se)&&se.length>=2){var Re=Se.getBBox();ee={x:Re.minX+Re.width*se[0],y:Re.minY+Re.height*se[1]}}var Be=E.getCanvasByPoint(ee.x,ee.y),Ye=Be.x,ht=Be.y,Tt=E.getContainer(),Dt={x:Ye+Tt.offsetLeft+H,y:ht+Tt.offsetTop+X};Ep(u,{visibility:"visible",display:"unset"});var Kt=u.getBoundingClientRect();Ye+Kt.width+H>P&&(Dt.x-=Kt.width+H),ht+Kt.height+X>j&&(Dt.y-=Kt.height+X,Dt.y<0&&(Dt.y=0)),Ep(u,{left:"".concat(Dt.x,"px"),top:"".concat(Dt.y,"px")})},i.prototype.hide=function(){this.onMouseLeave()},i.prototype.destroy=function(){var a=this.get("tooltip");if(a){var l=this.get("container");l||(l=this.get("graph").get("container")),(0,Nn.isString)(l)&&(l=document.getElementById(l)),l.removeChild(a)}},i}(a_),yB=bM,p5="timebarstartplay",v5="timebarendplay",_1="valuechange",eC="timebarConfigChanged",Fb="playPauseBtn",xM="nextStepBtn",xw="preStepBtn",tH={opacity:.5,fill:"#000"},bB={opacity:.5,fill:"#000",r:5},nH={fill:"#fff",fontSize:12},xB=function(){function C(i){var a=i.x,l=a===void 0?0:a,u=i.y,E=u===void 0?0:u,P=i.container,j=i.text,H=i.padding,X=H===void 0?[4,4,4,4]:H,ee=i.className,se=ee===void 0?"g6-component-timebar-tooltip":ee,Se=i.backgroundColor,Re=Se===void 0?"#000":Se,Be=i.textColor,Ye=Be===void 0?"#fff":Be,ht=i.opacity,Tt=ht===void 0?.8:ht,Dt=i.fontSize,Kt=Dt===void 0?12:Dt;this.container=P,this.className=se,this.backgroundColor=Re,this.textColor=Ye,this.x=l,this.y=E,this.text=j,this.padding=X,this.opacity=Tt,this.fontSize=Kt,this.render()}return C.prototype.render=function(){var i=this,a=i.className,l=i.x,u=i.y,E=i.backgroundColor,P=i.textColor,j=i.text,H=i.padding,X=i.opacity,ee=i.fontSize,se=i.container,Se=Hv("<div class='".concat(a,`' style="position: absolute; width: fit-content; height: fit-content; opacity: `).concat(X,'"></div>'));(0,Nn.isString)(se)&&(se=document.getElementById(se)),se.appendChild(Se),i.parentHeight=se.offsetHeight,i.parentWidth=se.offsetWidth,Ep(Se,{visibility:"hidden",top:0,left:0});var Re=Hv(`
|
||
<div style='position: absolute; white-space:nowrap; background-color: `.concat(E,"; font-size: ").concat(ee,"px; border-radius: 4px; width: fit-content; height: fit-content; color: ").concat(P,"; padding: ").concat(H[0],"px ").concat(H[1],"px ").concat(H[2],"px ").concat(H[3],"px'></div>"));Re.innerHTML=j,Se.appendChild(Re),i.backgroundDOM=Re;var Be=Hv("<div style='position: absolute; width: 0px; height: 0px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 10px solid ".concat(E,"'></div>"));Se.appendChild(Be),i.arrowDOM=Be,i.container=Se},C.prototype.show=function(i){var a=this,l=i.text,u=i.x,E=i.y,P=i.clientX,j=i.clientY;a.backgroundDOM.innerHTML=l;var H=a.backgroundDOM.offsetWidth,X=a.backgroundDOM.offsetHeight,ee=a.arrowDOM.offsetWidth,se=a.arrowDOM.offsetHeight;Ep(a.container,{top:"".concat(-X-se,"px"),left:"".concat(u,"px"),visibility:"visible"}),Ep(a.backgroundDOM,{marginLeft:"".concat(-H/2,"px")}),Ep(a.arrowDOM,{marginLeft:"".concat(-ee/2,"px"),top:"".concat(X,"px")});var Se=u-H/2,Re=u+H/2;Se<0?Ep(a.backgroundDOM,{marginLeft:"".concat(-H/2-Se,"px")}):Re>a.parentWidth&&Ep(a.backgroundDOM,{marginLeft:"".concat(-H/2-Re+a.parentWidth+12,"px")})},C.prototype.hide=function(){Ep(this.container,{top:0,left:0,visibility:"hidden"})},C}(),EB=xB,xR=function(){return xR=Object.assign||function(C){for(var i,a=1,l=arguments.length;a<l;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(C[u]=i[u])}return C},xR.apply(this,arguments)},u3=function(){function C(i){this.config=(0,Nn.deepMix)({},i),this.init()}return C.prototype.update=function(i){this.config=(0,Nn.deepMix)({},this.config,i),this.updateElement(),this.renderMarker()},C.prototype.init=function(){this.initElement(),this.renderMarker()},C.prototype.initElement=function(){var i=this.config,a=i.group,l=i.style,u=l.scale,E=u===void 0?1:u,P=l.offsetX,j=P===void 0?0:P,H=l.offsetY,X=H===void 0?0:H,ee=this.config.x+j,se=this.config.y+X,Se=a.addGroup({name:Fb});this.startMarkerGroup=Se.addGroup({name:Fb}),this.circle=a.addShape("circle",{attrs:xR({x:ee,y:se,r:this.config.r*E},l),name:Fb}),this.startMarker=this.startMarkerGroup.addShape("path",{attrs:{path:this.getStartMarkerPath(ee,se,E),fill:l.stroke||"#aaa"},name:"start-marker"}),this.pauseMarkerGroup=Se.addGroup({name:Fb});var Re=.25*this.config.r*E,Be=.5*this.config.r*Math.sqrt(3)*E;this.pauseLeftMarker=this.pauseMarkerGroup.addShape("rect",{attrs:{x:ee-.375*this.config.r*E,y:se-Be/2,width:Re,height:Be,fill:l.stroke||"#aaa",lineWidth:0}}),this.pauseRightMarker=this.pauseMarkerGroup.addShape("rect",{attrs:{x:ee+1/8*this.config.r*E,y:se-Be/2,width:Re,height:Be,fill:l.stroke||"#aaa",lineWidth:0}})},C.prototype.updateElement=function(){var i=this.config.style,a=i.scale,l=a===void 0?1:a,u=i.offsetX,E=u===void 0?0:u,P=i.offsetY,j=P===void 0?0:P,H=this.config.x+E,X=this.config.y+j;this.circle.attr("x",H),this.circle.attr("y",X),this.circle.attr("r",this.config.r*l),this.startMarker.attr("path",this.getStartMarkerPath(H,X,l));var ee=.25*this.config.r*l,se=.5*this.config.r*Math.sqrt(3)*l;this.pauseLeftMarker.attr("x",H-(1/4+1/8)*this.config.r*l),this.pauseLeftMarker.attr("y",X-se/2),this.pauseLeftMarker.attr("width",ee),this.pauseLeftMarker.attr("height",se),this.pauseRightMarker.attr("x",H+1/8*this.config.r*l),this.pauseRightMarker.attr("y",X-se/2),this.pauseRightMarker.attr("width",ee),this.pauseRightMarker.attr("height",se)},C.prototype.renderMarker=function(){this.config.isPlay?(this.startMarkerGroup.hide(),this.pauseMarkerGroup.show()):(this.startMarkerGroup.show(),this.pauseMarkerGroup.hide())},C.prototype.getStartMarkerPath=function(i,a,l){var u=.5*this.config.r*Math.sqrt(3)*l;return[["M",i-u/Math.sqrt(3)/2,a-u/2],["L",i+u/Math.sqrt(3),a],["L",i-u/Math.sqrt(3)/2,a+u/2]]},C}(),SB=u3,jm=function(){return jm=Object.assign||function(C){for(var i,a=1,l=arguments.length;a<l;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(C[u]=i[u])}return C},jm.apply(this,arguments)},EM=U_,CB="#aaa",wB="green",TB={fill:"#aaa",fillOpacity:.35,stroke:"#aaa"},f3={fill:"#fff"},h5={fill:"green"},d3={pointer:{fill:"#aaa",lineWidth:0},scroller:{stroke:"#aaa",fill:"#aaa",lineWidth:1,lineAppendWidth:5,cursor:"pointer"},text:{fill:"#aaa",textBaseline:"top"}},p3={check:{stroke:"green",lineWidth:3},box:{fill:"#fff",stroke:"#aaa",lineWidth:2,radius:3,width:12,height:12},text:{fill:"#aaa",fontSize:12,textBaseline:"top"}},m5={speed:1,loop:!1,fill:"#fff",stroke:"#fff",hideTimeTypeController:!1,preBtnStyle:{fill:"#aaa",stroke:"#aaa"},nextBtnStyle:{fill:"#aaa",stroke:"#aaa"},playBtnStyle:{fill:"#aaa",stroke:"#aaa",fillOpacity:.05},speedControllerStyle:d3,timeTypeControllerStyle:p3},v3=110,rE=50,y1={SINGLE:"single",RANGE:"range"},tC=function(){function C(i){this.controllerCfg=(0,Nn.deepMix)({},m5,i),this.group=i.group,this.controllerGroup=this.group.addGroup({name:"controller-group"}),this.speedAxisY=[],this.currentSpeed=this.controllerCfg.speed,this.currentType=this.controllerCfg.defaultTimeType||y1.RANGE,this.fontFamily=i.fontFamily||"Arial, sans-serif",this.init()}return C.prototype.init=function(){this.renderPlayButton()},C.prototype.getNextMarkerPath=function(i,a,l){return[["M",i,a-l],["L",i+l,a],["L",i,a+l],["Z",i,a-l],["M",i,a],["L",i-l,a-l],["L",i-l,a+l],["Z"]]},C.prototype.getPreMarkerPath=function(i,a,l){return[["M",i,a-l],["L",i-l,a],["L",i,a+l],["L",i,a-l],["M",i,a],["L",i+l,a-l],["L",i+l,a+l],["Z"]]},C.prototype.renderPlayButton=function(){var i=this.controllerCfg,a=i.width,l=i.height,u=i.x,E=i.y,P=i.hideTimeTypeController,j=i.fill,H=j===void 0?CB:j,X=i.stroke,ee=X===void 0?wB:X,se=i.containerStyle,Se=se===void 0?{}:se,Re=jm(jm({},TB),i.playBtnStyle||{}),Be=jm(jm({},f3),i.preBtnStyle||{}),Ye=jm(jm({},h5),i.nextBtnStyle||{}),ht=l/2-5,Tt=E+10,Dt=this.controllerGroup.addShape("rect",{attrs:jm({x:u,y:Tt,width:a,height:l,stroke:ee,fill:H},Se),name:"container-rect"});this.playButton?this.playButton.update({x:a/2,y:Tt,r:ht}):this.playButton=new SB({group:this.controllerGroup,x:a/2,y:Tt+ht+5,r:ht,isPlay:this.isPlay,style:Re});var Kt=Be.offsetX||0,gn=Be.offsetY||0,bn=(Be.scale||1)*ht;this.controllerGroup.addShape("path",{attrs:jm({path:this.getPreMarkerPath(a/2-5*ht+Kt,Tt+ht+5+gn,bn*.5)},Be),name:xw});var mn=Ye.offsetX||0,kn=Ye.offsetY||0,sr=(Ye.scale||1)*ht;this.controllerGroup.addShape("path",{attrs:jm({path:this.getNextMarkerPath(a/2+5*ht+mn,Tt+ht+5+kn,sr*.5)},Ye),name:xM}),Dt.toBack(),this.renderSpeedBtn(),P||this.renderToggleTime(),this.bindEvent();var yr=this.controllerCfg.scale,jr=yr===void 0?1:yr,zr=this.controllerGroup.getCanvasBBox(),va=(zr.maxX+zr.minX)/2,za=(zr.maxY+zr.minY)/2,xi=EM([1,0,0,0,1,0,0,0,1],[["t",-va,-za],["s",jr,jr],["t",va,za]]);this.controllerGroup.setMatrix(xi)},C.prototype.renderSpeedBtn=function(){var i=this.controllerCfg,a=i.y,l=i.width,u=i.hideTimeTypeController,E=jm(jm({},d3),this.controllerCfg.speedControllerStyle||{}),P=E.scroller,j=P===void 0?{}:P,H=E.text,X=H===void 0?{}:H,ee=E.pointer,se=ee===void 0?{}:ee,Se=E.scale,Re=Se===void 0?1:Se,Be=E.offsetX,Ye=Be===void 0?0:Be,ht=E.offsetY,Tt=ht===void 0?0:ht,Dt=this.controllerGroup.addGroup({name:"speed-group"});this.speedGroup=Dt;var Kt=[],gn=5;this.speedAxisY=[19,22,26,32,39];for(var bn=0;bn<5;bn++){var mn=a+this.speedAxisY[bn],kn=l-(u?rE:v3);Dt.addShape("line",{attrs:jm({x1:kn,x2:kn+15,y1:mn,y2:mn},j),speed:gn,name:"speed-rect"}),this.speedAxisY[bn]=mn,Kt.push(gn),gn=gn-1}this.speedText=Dt.addShape("text",{attrs:jm({x:l-(u?rE:v3)+20,y:this.speedAxisY[0]+4,text:"1.0X",fontFamily:this.fontFamily||"Arial, sans-serif"},X),name:"speed-text"}),this.speedPoint=Dt.addShape("path",{attrs:jm({path:this.getPointerPath(l-(u?rE:v3),0),matrix:[1,0,0,0,1,0,0,this.speedAxisY[4],1]},se),name:"speed-pointer"});var sr=this.speedGroup.getCanvasBBox(),yr=(sr.maxX+sr.minX)/2,jr=(sr.maxY+sr.minY)/2,zr=this.speedGroup.getMatrix()||[1,0,0,0,1,0,0,0,1];zr=EM(zr,[["t",-yr,-jr],["s",Re,Re],["t",yr+Ye*Re,jr+Tt*Re]]),this.speedGroup.setMatrix(zr)},C.prototype.getPointerPath=function(i,a){return[["M",i,a],["L",i-10,a-4],["L",i-10,a+4],["Z"]]},C.prototype.renderToggleTime=function(){var i,a,l=this.controllerCfg,u=l.width,E=l.defaultTimeType,P=jm(jm({},p3),this.controllerCfg.timeTypeControllerStyle||{}),j=P.scale,H=j===void 0?1:j,X=P.offsetX,ee=X===void 0?0:X,se=P.offsetY,Se=se===void 0?0:se,Re=P.box,Be=Re===void 0?{}:Re,Ye=P.check,ht=Ye===void 0?{}:Ye,Tt=P.text,Dt=Tt===void 0?{}:Tt;this.toggleGroup=this.controllerGroup.addGroup({name:"toggle-group"});var Kt=E===y1.SINGLE;this.toggleGroup.addShape("rect",{attrs:jm({x:u-rE,y:this.speedAxisY[0]+3.5},Be),isChecked:Kt,name:"toggle-model"}),this.checkedIcon=this.toggleGroup.addShape("path",{attrs:jm({path:[["M",u-rE+3,this.speedAxisY[1]+6],["L",u-rE+7,this.speedAxisY[1]+10],["L",u-rE+12,this.speedAxisY[1]+4]]},ht),capture:!1,name:"check-icon"}),Kt||this.checkedIcon.hide(),this.checkedText=this.toggleGroup.addShape("text",{attrs:jm({text:Kt?((i=this.controllerCfg)===null||i===void 0?void 0:i.timeRangeControllerText)||"\u65F6\u95F4\u8303\u56F4":((a=this.controllerCfg)===null||a===void 0?void 0:a.timePointControllerText)||"\u5355\u4E00\u65F6\u95F4",x:u-rE+15,y:this.speedAxisY[0]+4,fontFamily:typeof window!="undefined"&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif"},Dt),name:"checked-text"});var gn=this.toggleGroup.getCanvasBBox(),bn=(gn.maxX+gn.minX)/2,mn=(gn.maxY+gn.minY)/2,kn=this.toggleGroup.getMatrix()||[1,0,0,0,1,0,0,0,1];kn=EM(kn,[["t",-bn,-mn],["s",H,H],["t",bn+ee*H,mn+Se*H]]),this.toggleGroup.setMatrix(kn)},C.prototype.bindEvent=function(){var i=this;this.speedGroup.on("speed-rect:click",function(a){var l=a.target.attr("y1"),u=i.speedPoint.attr("matrix"),E=i.speedAxisY.indexOf(u[7]||0),P=i.speedAxisY.indexOf(l),j=i.speedAxisY[P]-i.speedAxisY[E];u=EM(u,[["t",0,j]]),i.speedPoint.setMatrix(u),i.currentSpeed=i.speedAxisY.length-P,i.speedText.attr("text","".concat(i.currentSpeed,".0X")),i.group.emit(eC,{speed:i.currentSpeed,type:i.currentType})}),this.speedGroup.on("mousewheel",function(a){a.preventDefault();var l=i.speedPoint.attr("matrix")||[1,0,0,0,1,0,0,0,1],u=l[7],E=i.speedAxisY.indexOf(u);if(E===-1){var P=Infinity;i.speedAxisY.forEach(function(H,X){var ee=Math.abs(H-u);P>ee&&(P=ee,E=X)})}a.originalEvent.deltaY>0?E=Math.max(0,E-1):E=Math.min(i.speedAxisY.length-1,E+1);var j=i.speedAxisY[E]-u;l=EM(l,[["t",0,j]]),i.speedPoint.setMatrix(l),i.currentSpeed=i.speedAxisY.length-E,i.speedText.attr("text","".concat(i.currentSpeed,".0X")),i.group.emit(eC,{speed:i.currentSpeed,type:i.currentType})}),this.toggleGroup&&this.toggleGroup.on("toggle-model:click",function(a){var l,u,E=a.target.get("isChecked");E?(i.checkedIcon.hide(),i.checkedText.attr("text",((u=i.controllerCfg)===null||u===void 0?void 0:u.timePointControllerText)||"\u5355\u4E00\u65F6\u95F4"),i.currentType=y1.RANGE):(i.checkedIcon.show(),i.checkedText.attr("text",((l=i.controllerCfg)===null||l===void 0?void 0:l.timeRangeControllerText)||"\u65F6\u95F4\u8303\u56F4"),i.currentType=y1.SINGLE),a.target.set("isChecked",!E),i.group.emit(eC,{type:i.currentType,speed:i.currentSpeed})})},C.prototype.destroy=function(){this.speedGroup.off("speed-rect:click"),this.toggleGroup&&(this.toggleGroup.off("toggle-model:click"),this.toggleGroup.destroy()),this.speedGroup.destroy()},C}(),h3=tC,aE=function(){return aE=Object.assign||function(C){for(var i,a=1,l=arguments.length;a<l;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(C[u]=i[u])}return C},aE.apply(this,arguments)},AB=U_,SM={fill:"#5B8FF9"},MB={fill:"#e6e8e9"},kB=function(){function C(i){this.frameCount=0,this.fontFamily="Arial, sans-serif";var a=i.graph,l=i.canvas,u=i.group,E=i.width,P=i.height,j=i.padding,H=i.data,X=i.start,ee=i.end,se=i.x,Se=se===void 0?0:se,Re=i.y,Be=Re===void 0?0:Re,Ye=i.tickLabelFormatter,ht=i.selectedTickStyle,Tt=ht===void 0?SM:ht,Dt=i.unselectedTickStyle,Kt=Dt===void 0?MB:Dt,gn=i.tooltipBackgroundColor,bn=i.tooltipFomatter,mn=i.tickLabelStyle,kn=i.controllerCfg,sr=kn===void 0?{speed:1}:kn;this.graph=a,this.group=u,this.sliceGroup=u.addGroup({name:"slice-group"}),this.canvas=l,this.width=E,this.height=P,this.padding=j,this.data=H,this.start=X,this.end=ee,this.tickLabelFormatter=Ye,this.tickLabelStyle=mn||{},this.selectedTickStyle=Tt,this.unselectedTickStyle=Kt,this.controllerCfg=sr,this.currentSpeed=sr.speed||1,this.x=Se,this.y=Be,this.tooltipBackgroundColor=gn,this.tooltipFomatter=bn,this.fontFamily=typeof window!="undefined"&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif",this.renderSlices(),this.initEvent()}return C.prototype.renderSlices=function(){var i=this,a=this,l=a.width,u=a.height,E=a.padding,P=a.data,j=a.start,H=a.end,X=a.tickLabelFormatter,ee=a.selectedTickStyle,se=a.unselectedTickStyle,Se=a.tickLabelStyle,Re=l-2*E,Be=10,Ye=4,ht=3*E+Ye+Be,Tt=u-ht-2*E,Dt=2,Kt=P.length,gn=(Re-Dt*(Kt-1))/Kt;this.tickWidth=gn;var bn=this.sliceGroup,mn=[],kn=[],sr=Math.round(Kt*j),yr=Math.round(Kt*H);this.startTickRectId=sr,this.endTickRectId=yr;var jr=Se.rotate;delete Se.rotate,P.forEach(function(va,za){var xi=za>=sr&&za<=yr,Di=xi?ee:se,Si=bn.addShape("rect",{attrs:aE({x:E+za*(gn+Dt),y:E,width:gn,height:Tt},Di),draggable:!0,name:"tick-rect-".concat(za)}),jo=bn.addShape("rect",{attrs:{x:E+za*gn+Dt*(2*za-1)/2,y:E,width:za===0||za===Kt-1?gn+Dt/2:gn+Dt,height:Tt,fill:"#fff",opacity:0},draggable:!0,name:"pick-rect-".concat(za)});jo.toFront();var ro=Si.getBBox(),hi=(ro.minX+ro.maxX)/2;mn.push({rect:Si,pickRect:jo,value:va.date,x:hi,y:ro.minY});var io;if(X?(io=X(va),!(0,Nn.isString)(io)&&io&&(io=va.date)):za%Math.round(Kt/10)==0&&(io=va.date),io){kn.push(io);var oo=ro.maxY+E*2;bn.addShape("line",{attrs:{stroke:"#BFBFBF",x1:hi,y1:oo,x2:hi,y2:oo+Ye},name:"tick-line"});var Ki=oo+Ye+E,Ji=bn.addShape("text",{attrs:aE({fill:"#8c8c8c",stroke:"#fff",lineWidth:1,x:hi,y:Ki,textAlign:"center",text:io,textBaseline:"top",fontSize:10,fontFamily:i.fontFamily||"Arial, sans-serif"},Se),capture:!1,name:"tick-label"}),Ao=Ji.getBBox();if(Ao.maxX>l?Ji.attr("textAlign","right"):Ao.minX<0&&Ji.attr("textAlign","left"),(0,Nn.isNumber)(jr)&&kn.length!==10){var ks=AB([1,0,0,0,1,0,0,0,1],[["t",-hi,-Ki],["r",jr],["t",hi-5,Ki+2]]);Ji.attr({textAlign:"left",matrix:ks})}kn.length===1?Ji.attr({textAlign:"left"}):kn.length===10&&Ji.attr({textAlign:"right"})}}),this.tickRects=mn;var zr=this.group;this.currentSpeed=1,this.controllerBtnGroup=new h3(aE({group:zr,x:this.x,y:this.y+u+5,width:l,height:40,hideTimeTypeController:!0,speed:this.currentSpeed,fontFamily:this.fontFamily||"Arial, sans-serif"},this.controllerCfg))},C.prototype.initEvent=function(){var i=this,a=this.sliceGroup;a.on("click",function(ee){var se=ee.target;if(!(se.get("type")!=="rect"||!se.get("name"))){var Se=parseInt(se.get("name").split("-")[2],10);if(!isNaN(Se)){var Re=i.tickRects,Be=i.unselectedTickStyle;Re.forEach(function(Dt){Dt.rect.attr(Be)});var Ye=i.selectedTickStyle;Re[Se].rect.attr(Ye),i.startTickRectId=Se,i.endTickRectId=Se;var ht=Re.length,Tt=Se/ht;i.graph.emit(_1,{value:[Tt,Tt]})}}}),a.on("dragstart",function(ee){var se=i.tickRects,Se=i.unselectedTickStyle;se.forEach(function(Dt){Dt.rect.attr(Se)});var Re=ee.target,Be=parseInt(Re.get("name").split("-")[2],10),Ye=i.selectedTickStyle;se[Be].rect.attr(Ye),i.startTickRectId=Be;var ht=se.length,Tt=Be/ht;i.graph.emit(_1,{value:[Tt,Tt]}),i.dragging=!0}),a.on("dragover",function(ee){if(!!i.dragging&&ee.target.get("type")==="rect"){for(var se=parseInt(ee.target.get("name").split("-")[2],10),Se=i.startTickRectId,Re=i.tickRects,Be=i.selectedTickStyle,Ye=i.unselectedTickStyle,ht=0;ht<Re.length;ht++){var Tt=ht>=Se&&ht<=se?Be:Ye;Re[ht].rect.attr(Tt)}var Dt=Re.length;i.endTickRectId=se;var Kt=Se/Dt,gn=se/Dt;i.graph.emit(_1,{value:[Kt,gn]})}}),a.on("drop",function(ee){if(!!i.dragging&&(i.dragging=!1,ee.target.get("type")==="rect")){var se=i.startTickRectId,Se=parseInt(ee.target.get("name").split("-")[2],10);if(!(Se<se)){var Re=i.selectedTickStyle,Be=i.tickRects;Be[Se].rect.attr(Re),i.endTickRectId=Se;var Ye=Be.length,ht=se/Ye,Tt=Se/Ye;i.graph.emit(_1,{value:[ht,Tt]})}}});var l=this,u=l.tooltipBackgroundColor,E=l.tooltipFomatter,P=l.canvas,j=new EB({container:P.get("container"),backgroundColor:u}),H=this.tickRects;H.forEach(function(ee){var se=ee.pickRect;se.on("mouseenter",function(Se){var Re=Se.target;if(Re.get("type")==="rect"){var Be=parseInt(Re.get("name").split("-")[2],10),Ye=P.getClientByPoint(H[Be].x,H[Be].y);j.show({x:H[Be].x,y:H[Be].y,clientX:Ye.x,clientY:Ye.y,text:E?E(H[Be].value):H[Be].value})}}),se.on("mouseleave",function(Se){j.hide()})});var X=this.group;X.on("".concat(Fb,":click"),function(){i.isPlay=!i.isPlay,i.changePlayStatus()}),X.on("".concat(xM,":click"),function(){i.updateStartEnd(1)}),X.on("".concat(xw,":click"),function(){i.updateStartEnd(-1)}),X.on(eC,function(ee){var se=ee.type,Se=ee.speed;i.currentSpeed=Se})},C.prototype.changePlayStatus=function(i){i===void 0&&(i=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit(p5,null)):this.playHandler&&(typeof window!="undefined"&&window.cancelAnimationFrame(this.playHandler),i&&this.graph.emit(v5,null))},C.prototype.startPlay=function(){var i=this;return typeof window!="undefined"?window.requestAnimationFrame(function(){var a=i.currentSpeed;i.frameCount%(60/a)==0&&(i.frameCount=0,i.updateStartEnd(1)),i.frameCount++,i.isPlay&&(i.playHandler=i.startPlay())}):void 0},C.prototype.updateStartEnd=function(i){var a=this,l=this.tickRects,u=l.length,E=this.unselectedTickStyle,P=this.selectedTickStyle,j=a.endTickRectId;if(i>0?a.endTickRectId++:(l[a.endTickRectId].rect.attr(E),a.endTickRectId--),j!==a.startTickRectId)a.endTickRectId<a.startTickRectId&&(a.startTickRectId=a.endTickRectId);else{for(var H=a.startTickRectId;H<=a.endTickRectId-1;H++)l[H].rect.attr(E);a.startTickRectId=a.endTickRectId}if(l[a.endTickRectId]){l[a.endTickRectId].rect.attr(P);var X=a.startTickRectId/u,ee=a.endTickRectId/u;this.graph.emit(_1,{value:[X,ee]})}},C.prototype.destory=function(){var i=this.sliceGroup;i.off("click"),i.off("dragstart"),i.off("dragover"),i.off("drop"),this.tickRects.forEach(function(a){var l=a.pickRect;l.off("mouseenter"),l.off("mouseleave")}),this.tickRects.length=0,i.off("".concat(Fb,":click")),i.off("".concat(xM,":click")),i.off("".concat(xw,":click")),i.off(eC),this.sliceGroup.destroy()},C}(),PB=kB,Ew={};function RB(C){return Ew[C]}function T0(C,i){Ew[C]=i}var m3=function(){function C(i){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=i,this.initCfg(),this.init()}return C.prototype.translate=function(i){return i},C.prototype.change=function(i){(0,Nn.assign)(this.__cfg__,i),this.init()},C.prototype.clone=function(){return this.constructor(this.__cfg__)},C.prototype.getTicks=function(){var i=this;return(0,Nn.map)(this.ticks,function(a,l){return(0,Nn.isObject)(a)?a:{text:i.getText(a,l),tickValue:a,value:i.scale(a)}})},C.prototype.getText=function(i,a){var l=this.formatter,u=l?l(i,a):i;return(0,Nn.isNil)(u)||!(0,Nn.isFunction)(u.toString)?"":u.toString()},C.prototype.getConfig=function(i){return this.__cfg__[i]},C.prototype.init=function(){(0,Nn.assign)(this,this.__cfg__),this.setDomain(),(0,Nn.isEmpty)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},C.prototype.initCfg=function(){},C.prototype.setDomain=function(){},C.prototype.calculateTicks=function(){var i=this.tickMethod,a=[];if((0,Nn.isString)(i)){var l=RB(i);if(!l)throw new Error("There is no method to to calculate ticks!");a=l(this)}else(0,Nn.isFunction)(i)&&(a=i(this));return a},C.prototype.rangeMin=function(){return this.range[0]},C.prototype.rangeMax=function(){return this.range[1]},C.prototype.calcPercent=function(i,a,l){return(0,Nn.isNumber)(i)?(i-a)/(l-a):NaN},C.prototype.calcValue=function(i,a,l){return a+i*(l-a)},C}(),g3=m3,_3=function(i,a){return _3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var E in u)Object.prototype.hasOwnProperty.call(u,E)&&(l[E]=u[E])},_3(i,a)};function A0(C,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");_3(C,i);function a(){this.constructor=C}C.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}var nC=function(){return nC=Object.assign||function(a){for(var l,u=1,E=arguments.length;u<E;u++){l=arguments[u];for(var P in l)Object.prototype.hasOwnProperty.call(l,P)&&(a[P]=l[P])}return a},nC.apply(this,arguments)};function g5(C,i){var a={};for(var l in C)Object.prototype.hasOwnProperty.call(C,l)&&i.indexOf(l)<0&&(a[l]=C[l]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(C);u<l.length;u++)i.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(C,l[u])&&(a[l[u]]=C[l[u]]);return a}function CM(C,i,a,l){var u=arguments.length,E=u<3?i:l===null?l=Object.getOwnPropertyDescriptor(i,a):l,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(C,i,a,l);else for(var j=C.length-1;j>=0;j--)(P=C[j])&&(E=(u<3?P(E):u>3?P(i,a,E):P(i,a))||E);return u>3&&E&&Object.defineProperty(i,a,E),E}function wM(C,i){return function(a,l){i(a,l,C)}}function Sw(C,i,a,l,u,E){function P(Tt){if(Tt!==void 0&&typeof Tt!="function")throw new TypeError("Function expected");return Tt}for(var j=l.kind,H=j==="getter"?"get":j==="setter"?"set":"value",X=!i&&C?l.static?C:C.prototype:null,ee=i||(X?Object.getOwnPropertyDescriptor(X,l.name):{}),se,Se=!1,Re=a.length-1;Re>=0;Re--){var Be={};for(var Ye in l)Be[Ye]=Ye==="access"?{}:l[Ye];for(var Ye in l.access)Be.access[Ye]=l.access[Ye];Be.addInitializer=function(Tt){if(Se)throw new TypeError("Cannot add initializers after decoration has completed");E.push(P(Tt||null))};var ht=(0,a[Re])(j==="accessor"?{get:ee.get,set:ee.set}:ee[H],Be);if(j==="accessor"){if(ht===void 0)continue;if(ht===null||typeof ht!="object")throw new TypeError("Object expected");(se=P(ht.get))&&(ee.get=se),(se=P(ht.set))&&(ee.set=se),(se=P(ht.init))&&u.unshift(se)}else(se=P(ht))&&(j==="field"?u.unshift(se):ee[H]=se)}X&&Object.defineProperty(X,l.name,ee),Se=!0}function _5(C,i,a){for(var l=arguments.length>2,u=0;u<i.length;u++)a=l?i[u].call(C,a):i[u].call(C);return l?a:void 0}function y5(C){return typeof C=="symbol"?C:"".concat(C)}function OB(C,i,a){return typeof i=="symbol"&&(i=i.description?"[".concat(i.description,"]"):""),Object.defineProperty(C,"name",{configurable:!0,value:a?"".concat(a," ",i):i})}function IB(C,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(C,i)}function ER(C,i,a,l){function u(E){return E instanceof a?E:new a(function(P){P(E)})}return new(a||(a=Promise))(function(E,P){function j(ee){try{X(l.next(ee))}catch(se){P(se)}}function H(ee){try{X(l.throw(ee))}catch(se){P(se)}}function X(ee){ee.done?E(ee.value):u(ee.value).then(j,H)}X((l=l.apply(C,i||[])).next())})}function Yg(C,i){var a={label:0,sent:function(){if(E[0]&1)throw E[1];return E[1]},trys:[],ops:[]},l,u,E,P;return P={next:j(0),throw:j(1),return:j(2)},typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function j(X){return function(ee){return H([X,ee])}}function H(X){if(l)throw new TypeError("Generator is already executing.");for(;P&&(P=0,X[0]&&(a=0)),a;)try{if(l=1,u&&(E=X[0]&2?u.return:X[0]?u.throw||((E=u.return)&&E.call(u),0):u.next)&&!(E=E.call(u,X[1])).done)return E;switch(u=0,E&&(X=[X[0]&2,E.value]),X[0]){case 0:case 1:E=X;break;case 4:return a.label++,{value:X[1],done:!1};case 5:a.label++,u=X[1],X=[0];continue;case 7:X=a.ops.pop(),a.trys.pop();continue;default:if(E=a.trys,!(E=E.length>0&&E[E.length-1])&&(X[0]===6||X[0]===2)){a=0;continue}if(X[0]===3&&(!E||X[1]>E[0]&&X[1]<E[3])){a.label=X[1];break}if(X[0]===6&&a.label<E[1]){a.label=E[1],E=X;break}if(E&&a.label<E[2]){a.label=E[2],a.ops.push(X);break}E[2]&&a.ops.pop(),a.trys.pop();continue}X=i.call(C,a)}catch(ee){X=[6,ee],u=0}finally{l=E=0}if(X[0]&5)throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}}var y3=Object.create?function(C,i,a,l){l===void 0&&(l=a);var u=Object.getOwnPropertyDescriptor(i,a);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(C,l,u)}:function(C,i,a,l){l===void 0&&(l=a),C[l]=i[a]};function b5(C,i){for(var a in C)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&y3(i,C,a)}function b3(C){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&C[i],l=0;if(a)return a.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&l>=C.length&&(C=void 0),{value:C&&C[l++],done:!C}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function x3(C,i){var a=typeof Symbol=="function"&&C[Symbol.iterator];if(!a)return C;var l=a.call(C),u,E=[],P;try{for(;(i===void 0||i-- >0)&&!(u=l.next()).done;)E.push(u.value)}catch(j){P={error:j}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(P)throw P.error}}return E}function DB(){for(var C=[],i=0;i<arguments.length;i++)C=C.concat(x3(arguments[i]));return C}function E3(){for(var C=0,i=0,a=arguments.length;i<a;i++)C+=arguments[i].length;for(var l=Array(C),u=0,i=0;i<a;i++)for(var E=arguments[i],P=0,j=E.length;P<j;P++,u++)l[u]=E[P];return l}function NB(C,i,a){if(a||arguments.length===2)for(var l=0,u=i.length,E;l<u;l++)(E||!(l in i))&&(E||(E=Array.prototype.slice.call(i,0,l)),E[l]=i[l]);return C.concat(E||Array.prototype.slice.call(i))}function rC(C){return this instanceof rC?(this.v=C,this):new rC(C)}function LB(C,i,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=a.apply(C,i||[]),u,E=[];return u={},P("next"),P("throw"),P("return"),u[Symbol.asyncIterator]=function(){return this},u;function P(Se){l[Se]&&(u[Se]=function(Re){return new Promise(function(Be,Ye){E.push([Se,Re,Be,Ye])>1||j(Se,Re)})})}function j(Se,Re){try{H(l[Se](Re))}catch(Be){se(E[0][3],Be)}}function H(Se){Se.value instanceof rC?Promise.resolve(Se.value.v).then(X,ee):se(E[0][2],Se)}function X(Se){j("next",Se)}function ee(Se){j("throw",Se)}function se(Se,Re){Se(Re),E.shift(),E.length&&j(E[0][0],E[0][1])}}function S3(C){var i,a;return i={},l("next"),l("throw",function(u){throw u}),l("return"),i[Symbol.iterator]=function(){return this},i;function l(u,E){i[u]=C[u]?function(P){return(a=!a)?{value:rC(C[u](P)),done:!1}:E?E(P):P}:E}}function FB(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=C[Symbol.asyncIterator],a;return i?i.call(C):(C=typeof b3=="function"?b3(C):C[Symbol.iterator](),a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a);function l(E){a[E]=C[E]&&function(P){return new Promise(function(j,H){P=C[E](P),u(j,H,P.done,P.value)})}}function u(E,P,j,H){Promise.resolve(H).then(function(X){E({value:X,done:j})},P)}}function TM(C,i){return Object.defineProperty?Object.defineProperty(C,"raw",{value:i}):C.raw=i,C}var SR=Object.create?function(C,i){Object.defineProperty(C,"default",{enumerable:!0,value:i})}:function(C,i){C.default=i};function x5(C){if(C&&C.__esModule)return C;var i={};if(C!=null)for(var a in C)a!=="default"&&Object.prototype.hasOwnProperty.call(C,a)&&y3(i,C,a);return SR(i,C),i}function C3(C){return C&&C.__esModule?C:{default:C}}function E5(C,i,a,l){if(a==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?C!==i||!l:!i.has(C))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?l:a==="a"?l.call(C):l?l.value:i.get(C)}function jB(C,i,a,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?C!==i||!u:!i.has(C))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(C,a):u?u.value=a:i.set(C,a),a}function BB(C,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof C=="function"?i===C:C.has(i)}function UB(C,i,a){if(i!=null){if(typeof i!="object"&&typeof i!="function")throw new TypeError("Object expected.");var l;if(a){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");l=i[Symbol.asyncDispose]}if(l===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");l=i[Symbol.dispose]}if(typeof l!="function")throw new TypeError("Object not disposable.");C.stack.push({value:i,dispose:l,async:a})}else a&&C.stack.push({async:!0});return i}var ZB=typeof SuppressedError=="function"?SuppressedError:function(C,i,a){var l=new Error(a);return l.name="SuppressedError",l.error=C,l.suppressed=i,l};function S5(C){function i(l){C.error=C.hasError?new ZB(l,C.error,"An error was suppressed during disposal."):l,C.hasError=!0}function a(){for(;C.stack.length;){var l=C.stack.pop();try{var u=l.dispose&&l.dispose.call(l.value);if(l.async)return Promise.resolve(u).then(a,function(E){return i(E),a()})}catch(E){i(E)}}if(C.hasError)throw C.error}return a()}var rH={__extends:A0,__assign:nC,__rest:g5,__decorate:CM,__param:wM,__metadata:IB,__awaiter:ER,__generator:Yg,__createBinding:y3,__exportStar:b5,__values:b3,__read:x3,__spread:DB,__spreadArrays:E3,__spreadArray:NB,__await:rC,__asyncGenerator:LB,__asyncDelegator:S3,__asyncValues:FB,__makeTemplateObject:TM,__importStar:x5,__importDefault:C3,__classPrivateFieldGet:E5,__classPrivateFieldSet:jB,__classPrivateFieldIn:BB,__addDisposableResource:UB,__disposeResources:S5},VB=function(C){A0(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="cat",a.isCategory=!0,a}return i.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var a=0;a<this.values.length;a++)this.translateIndexMap.set(this.values[a],a)}},i.prototype.translate=function(a){this.buildIndexMap();var l=this.translateIndexMap.get(a);return l===void 0&&(l=(0,Nn.isNumber)(a)?a:NaN),l},i.prototype.scale=function(a){var l=this.translate(a),u=this.calcPercent(l,this.min,this.max);return this.calcValue(u,this.rangeMin(),this.rangeMax())},i.prototype.invert=function(a){var l=this.max-this.min,u=this.calcPercent(a,this.rangeMin(),this.rangeMax()),E=Math.round(l*u)+this.min;return E<this.min||E>this.max?NaN:this.values[E]},i.prototype.getText=function(a){for(var l=[],u=1;u<arguments.length;u++)l[u-1]=arguments[u];var E=a;return(0,Nn.isNumber)(a)&&!this.values.includes(a)&&(E=this.values[E]),C.prototype.getText.apply(this,E3([E],l))},i.prototype.initCfg=function(){this.tickMethod="cat"},i.prototype.setDomain=function(){if((0,Nn.isNil)(this.getConfig("min"))&&(this.min=0),(0,Nn.isNil)(this.getConfig("max"))){var a=this.values.length;this.max=a>1?a-1:a}this.translateIndexMap&&(this.translateIndexMap=void 0)},i}(g3),AM=VB,C5=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,iE="\\d\\d?",jb="\\d\\d",zB="\\d{3}",WB="\\d{4}",Cw="[^\\s]+",w3=/\[([^]*?)\]/gm;function w5(C,i){for(var a=[],l=0,u=C.length;l<u;l++)a.push(C[l].substr(0,i));return a}var T5=function(i){return function(a,l){var u=l[i].map(function(P){return P.toLowerCase()}),E=u.indexOf(a.toLowerCase());return E>-1?E:null}};function oE(C){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];for(var l=0,u=i;l<u.length;l++){var E=u[l];for(var P in E)C[P]=E[P]}return C}var MM=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],A5=["January","February","March","April","May","June","July","August","September","October","November","December"],T3=w5(A5,3),CR=w5(MM,3),wR={dayNamesShort:CR,dayNames:MM,monthNamesShort:T3,monthNames:A5,amPm:["am","pm"],DoFn:function(i){return i+["th","st","nd","rd"][i%10>3?0:(i-i%10!=10?1:0)*i%10]}},sE=oE({},wR),A3=function(i){return sE=oE(sE,i)},M5=function(i){return i.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},K_=function(i,a){for(a===void 0&&(a=2),i=String(i);i.length<a;)i="0"+i;return i},M3={D:function(i){return String(i.getDate())},DD:function(i){return K_(i.getDate())},Do:function(i,a){return a.DoFn(i.getDate())},d:function(i){return String(i.getDay())},dd:function(i){return K_(i.getDay())},ddd:function(i,a){return a.dayNamesShort[i.getDay()]},dddd:function(i,a){return a.dayNames[i.getDay()]},M:function(i){return String(i.getMonth()+1)},MM:function(i){return K_(i.getMonth()+1)},MMM:function(i,a){return a.monthNamesShort[i.getMonth()]},MMMM:function(i,a){return a.monthNames[i.getMonth()]},YY:function(i){return K_(String(i.getFullYear()),4).substr(2)},YYYY:function(i){return K_(i.getFullYear(),4)},h:function(i){return String(i.getHours()%12||12)},hh:function(i){return K_(i.getHours()%12||12)},H:function(i){return String(i.getHours())},HH:function(i){return K_(i.getHours())},m:function(i){return String(i.getMinutes())},mm:function(i){return K_(i.getMinutes())},s:function(i){return String(i.getSeconds())},ss:function(i){return K_(i.getSeconds())},S:function(i){return String(Math.round(i.getMilliseconds()/100))},SS:function(i){return K_(Math.round(i.getMilliseconds()/10),2)},SSS:function(i){return K_(i.getMilliseconds(),3)},a:function(i,a){return i.getHours()<12?a.amPm[0]:a.amPm[1]},A:function(i,a){return i.getHours()<12?a.amPm[0].toUpperCase():a.amPm[1].toUpperCase()},ZZ:function(i){var a=i.getTimezoneOffset();return(a>0?"-":"+")+K_(Math.floor(Math.abs(a)/60)*100+Math.abs(a)%60,4)},Z:function(i){var a=i.getTimezoneOffset();return(a>0?"-":"+")+K_(Math.floor(Math.abs(a)/60),2)+":"+K_(Math.abs(a)%60,2)}},k5=function(i){return+i-1},P5=[null,iE],TR=[null,Cw],k3=["isPm",Cw,function(C,i){var a=C.toLowerCase();return a===i.amPm[0]?0:a===i.amPm[1]?1:null}],AR=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(C){var i=(C+"").match(/([+-]|\d\d)/gi);if(i){var a=+i[1]*60+parseInt(i[2],10);return i[0]==="+"?a:-a}return 0}],HB={D:["day",iE],DD:["day",jb],Do:["day",iE+Cw,function(C){return parseInt(C,10)}],M:["month",iE,k5],MM:["month",jb,k5],YY:["year",jb,function(C){var i=new Date,a=+(""+i.getFullYear()).substr(0,2);return+(""+(+C>68?a-1:a)+C)}],h:["hour",iE,void 0,"isPm"],hh:["hour",jb,void 0,"isPm"],H:["hour",iE],HH:["hour",jb],m:["minute",iE],mm:["minute",jb],s:["second",iE],ss:["second",jb],YYYY:["year",WB],S:["millisecond","\\d",function(C){return+C*100}],SS:["millisecond",jb,function(C){return+C*10}],SSS:["millisecond",zB],d:P5,dd:P5,ddd:TR,dddd:TR,MMM:["month",Cw,T5("monthNamesShort")],MMMM:["month",Cw,T5("monthNames")],a:k3,A:k3,ZZ:AR,Z:AR},lE={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},ww=function(i){return oE(lE,i)},P3=function(i,a,l){if(a===void 0&&(a=lE.default),l===void 0&&(l={}),typeof i=="number"&&(i=new Date(i)),Object.prototype.toString.call(i)!=="[object Date]"||isNaN(i.getTime()))throw new Error("Invalid Date pass to format");a=lE[a]||a;var u=[];a=a.replace(w3,function(P,j){return u.push(j),"@@@"});var E=oE(oE({},sE),l);return a=a.replace(C5,function(P){return M3[P](i,E)}),a.replace(/@@@/g,function(){return u.shift()})};function MR(C,i,a){if(a===void 0&&(a={}),typeof i!="string")throw new Error("Invalid format in fecha parse");if(i=lE[i]||i,C.length>1e3)return null;var l=new Date,u={year:l.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},E=[],P=[],j=i.replace(w3,function(gn,bn){return P.push(M5(bn)),"@@@"}),H={},X={};j=M5(j).replace(C5,function(gn){var bn=HB[gn],mn=bn[0],kn=bn[1],sr=bn[3];if(H[mn])throw new Error("Invalid format. "+mn+" specified twice in format");return H[mn]=!0,sr&&(X[sr]=!0),E.push(bn),"("+kn+")"}),Object.keys(X).forEach(function(gn){if(!H[gn])throw new Error("Invalid format. "+gn+" is required in specified format")}),j=j.replace(/@@@/g,function(){return P.shift()});var ee=C.match(new RegExp(j,"i"));if(!ee)return null;for(var se=oE(oE({},sE),a),Se=1;Se<ee.length;Se++){var Re=E[Se-1],Be=Re[0],Ye=Re[2],ht=Ye?Ye(ee[Se],se):+ee[Se];if(ht==null)return null;u[Be]=ht}u.isPm===1&&u.hour!=null&&+u.hour!=12?u.hour=+u.hour+12:u.isPm===0&&+u.hour==12&&(u.hour=0);var Tt;if(u.timezoneOffset==null){Tt=new Date(u.year,u.month,u.day,u.hour,u.minute,u.second,u.millisecond);for(var Dt=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],Se=0,Kt=Dt.length;Se<Kt;Se++)if(H[Dt[Se][0]]&&u[Dt[Se][0]]!==Tt[Dt[Se][1]]())return null}else if(Tt=new Date(Date.UTC(u.year,u.month,u.day,u.hour,u.minute-u.timezoneOffset,u.second,u.millisecond)),u.month>11||u.month<0||u.day>31||u.day<1||u.hour>23||u.hour<0||u.minute>59||u.minute<0||u.second>59||u.second<0)return null;return Tt}var R3={format:P3,parse:MR,defaultI18n:wR,setGlobalDateI18n:A3,setGlobalDateMasks:ww},R5=R3;function O5(C){return function(i,a,l,u){for(var E=(0,Nn.isNil)(l)?0:l,P=(0,Nn.isNil)(u)?i.length:u;E<P;){var j=E+P>>>1;C(i[j])>a?P=j:E=j+1}return E}}var I5="format";function aC(C,i){var a=F[I5]||R5[I5];return a(C,i)}function kR(C){return(0,Nn.isString)(C)&&(C.indexOf("T")>0?C=new Date(C).getTime():C=new Date(C.replace(/-/gi,"/")).getTime()),(0,Nn.isDate)(C)&&(C=C.getTime()),C}var ky=1e3,iC=60*ky,oC=60*iC,b1=24*oC,sC=b1*31,O3=b1*365,PR=[["HH:mm:ss",ky],["HH:mm:ss",ky*10],["HH:mm:ss",ky*30],["HH:mm",iC],["HH:mm",iC*10],["HH:mm",iC*30],["HH",oC],["HH",oC*6],["HH",oC*12],["YYYY-MM-DD",b1],["YYYY-MM-DD",b1*4],["YYYY-WW",b1*7],["YYYY-MM",sC],["YYYY-MM",sC*4],["YYYY-MM",sC*6],["YYYY",b1*380]];function I3(C,i,a){var l=(i-C)/a,u=O5(function(P){return P[1]})(PR,l)-1,E=PR[u];return u<0?E=PR[0]:u>=PR.length&&(E=(0,Nn.last)(PR)),E}var GB=function(C){A0(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="timeCat",a}return i.prototype.translate=function(a){a=kR(a);var l=this.values.indexOf(a);return l===-1&&((0,Nn.isNumber)(a)&&a<this.values.length?l=a:l=NaN),l},i.prototype.getText=function(a,l){var u=this.translate(a);if(u>-1){var E=this.values[u],P=this.formatter;return E=P?P(E,l):aC(E,this.mask),E}return a},i.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},i.prototype.setDomain=function(){var a=this.values;(0,Nn.each)(a,function(l,u){a[u]=kR(l)}),a.sort(function(l,u){return l-u}),C.prototype.setDomain.call(this)},i}(AM),$B=GB,D3=function(C){A0(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.isContinuous=!0,a}return i.prototype.scale=function(a){if((0,Nn.isNil)(a))return NaN;var l=this.rangeMin(),u=this.rangeMax(),E=this.max,P=this.min;if(E===P)return l;var j=this.getScalePercent(a);return l+j*(u-l)},i.prototype.init=function(){C.prototype.init.call(this);var a=this.ticks,l=(0,Nn.head)(a),u=(0,Nn.last)(a);l<this.min&&(this.min=l),u>this.max&&(this.max=u),(0,Nn.isNil)(this.minLimit)||(this.min=l),(0,Nn.isNil)(this.maxLimit)||(this.max=u)},i.prototype.setDomain=function(){var a=(0,Nn.getRange)(this.values),l=a.min,u=a.max;(0,Nn.isNil)(this.min)&&(this.min=l),(0,Nn.isNil)(this.max)&&(this.max=u),this.min>this.max&&(this.min=l,this.max=u)},i.prototype.calculateTicks=function(){var a=this,l=C.prototype.calculateTicks.call(this);return this.nice||(l=(0,Nn.filter)(l,function(u){return u>=a.min&&u<=a.max})),l},i.prototype.getScalePercent=function(a){var l=this.max,u=this.min;return(a-u)/(l-u)},i.prototype.getInvertPercent=function(a){return(a-this.rangeMin())/(this.rangeMax()-this.rangeMin())},i}(g3),kM=D3,D5=function(C){A0(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="linear",a.isLinear=!0,a}return i.prototype.invert=function(a){var l=this.getInvertPercent(a);return this.min+l*(this.max-this.min)},i.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},i}(kM),Tw=D5;function cE(C,i){var a=Math.E,l;return i>=0?l=Math.pow(a,Math.log(i)/C):l=Math.pow(a,Math.log(-i)/C)*-1,l}function Y_(C,i){return C===1?1:Math.log(i)/Math.log(C)}function N5(C,i,a){(0,Nn.isNil)(a)&&(a=Math.max.apply(null,C));var l=a;return(0,Nn.each)(C,function(u){u>0&&u<l&&(l=u)}),l===a&&(l=a/i),l>1&&(l=1),l}function RR(C){var i=C.toString().split(/[eE]/),a=(i[0].split(".")[1]||"").length-+(i[1]||0);return a>0?a:0}function aH(C,i){var a=RR(C),l=RR(i),u=Math.pow(10,Math.max(a,l));return(C*u+i*u)/u}var KB=function(C){A0(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="log",a}return i.prototype.invert=function(a){var l=this.base,u=Y_(l,this.max),E=this.rangeMin(),P=this.rangeMax()-E,j,H=this.positiveMin;if(H){if(a===0)return 0;j=Y_(l,H/l);var X=1/(u-j)*P;if(a<X)return a/X*H}else j=Y_(l,this.min);var ee=(a-E)/P,se=ee*(u-j)+j;return Math.pow(l,se)},i.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},i.prototype.setDomain=function(){C.prototype.setDomain.call(this);var a=this.min;if(a<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");a===0&&(this.positiveMin=N5(this.values,this.base,this.max))},i.prototype.getScalePercent=function(a){var l=this.max,u=this.min;if(l===u||a<=0)return 0;var E=this.base,P=this.positiveMin;P&&(u=P*1/E);var j;return a<P?j=a/P/(Y_(E,l)-Y_(E,u)):j=(Y_(E,a)-Y_(E,u))/(Y_(E,l)-Y_(E,u)),j},i}(kM),L5=KB,F5=function(C){A0(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="pow",a}return i.prototype.invert=function(a){var l=this.getInvertPercent(a),u=this.exponent,E=cE(u,this.max),P=cE(u,this.min),j=l*(E-P)+P,H=j>=0?1:-1;return Math.pow(j,u)*H},i.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},i.prototype.getScalePercent=function(a){var l=this.max,u=this.min;if(l===u)return 0;var E=this.exponent,P=(cE(E,a)-cE(E,u))/(cE(E,l)-cE(E,u));return P},i}(kM),N3=F5,L3=function(C){A0(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="time",a}return i.prototype.getText=function(a,l){var u=this.translate(a),E=this.formatter;return E?E(u,l):aC(u,this.mask)},i.prototype.scale=function(a){var l=a;return((0,Nn.isString)(l)||(0,Nn.isDate)(l))&&(l=this.translate(l)),C.prototype.scale.call(this,l)},i.prototype.translate=function(a){return kR(a)},i.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},i.prototype.setDomain=function(){var a=this.values,l=this.getConfig("min"),u=this.getConfig("max");if((!(0,Nn.isNil)(l)||!(0,Nn.isNumber)(l))&&(this.min=this.translate(this.min)),(!(0,Nn.isNil)(u)||!(0,Nn.isNumber)(u))&&(this.max=this.translate(this.max)),a&&a.length){var E=[],P=Infinity,j=P,H=0;(0,Nn.each)(a,function(X){var ee=kR(X);if(isNaN(ee))throw new TypeError("Invalid Time: "+X+" in time scale!");P>ee?(j=P,P=ee):j>ee&&(j=ee),H<ee&&(H=ee),E.push(ee)}),a.length>1&&(this.minTickInterval=j-P),(0,Nn.isNil)(l)&&(this.min=P),(0,Nn.isNil)(u)&&(this.max=H)}},i}(Tw),F3=L3,j3=function(C){A0(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="quantize",a}return i.prototype.invert=function(a){var l=this.ticks,u=l.length,E=this.getInvertPercent(a),P=Math.floor(E*(u-1));if(P>=u-1)return(0,Nn.last)(l);if(P<0)return(0,Nn.head)(l);var j=l[P],H=l[P+1],X=P/(u-1),ee=(P+1)/(u-1);return j+(E-X)/(ee-X)*(H-j)},i.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},i.prototype.calculateTicks=function(){var a=C.prototype.calculateTicks.call(this);return this.nice||((0,Nn.last)(a)!==this.max&&a.push(this.max),(0,Nn.head)(a)!==this.min&&a.unshift(this.min)),a},i.prototype.getScalePercent=function(a){var l=this.ticks;if(a<(0,Nn.head)(l))return 0;if(a>(0,Nn.last)(l))return 1;var u=0;return(0,Nn.each)(l,function(E,P){if(a>=E)u=P;else return!1}),u/(l.length-1)},i}(kM),OR=j3,Aw=function(C){A0(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="quantile",a}return i.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},i}(OR),B3=Aw,U3={};function j5(C){return U3[C]}function q0(C,i){if(j5(C))throw new Error("type '"+C+"' existed.");U3[C]=i}var B5=function(C){A0(i,C);function i(){var a=C!==null&&C.apply(this,arguments)||this;return a.type="identity",a.isIdentity=!0,a}return i.prototype.calculateTicks=function(){return this.values},i.prototype.scale=function(a){return this.values[0]!==a&&(0,Nn.isNumber)(a)?a:this.range[0]},i.prototype.invert=function(a){var l=this.range;return a<l[0]||a>l[1]?NaN:this.values[0]},i}(g3),YB=B5;function U5(C){var i=C.values,a=C.tickInterval,l=C.tickCount,u=C.showLast;if((0,Nn.isNumber)(a)){var E=(0,Nn.filter)(i,function(Be,Ye){return Ye%a==0}),P=(0,Nn.last)(i);return u&&(0,Nn.last)(E)!==P&&E.push(P),E}var j=i.length,H=C.min,X=C.max;if((0,Nn.isNil)(H)&&(H=0),(0,Nn.isNil)(X)&&(X=i.length-1),!(0,Nn.isNumber)(l)||l>=j)return i.slice(H,X+1);if(l<=0||X<=0)return[];for(var ee=l===1?j:Math.floor(j/(l-1)),se=[],Se=H,Re=0;Re<l&&!(Se>=X);Re++)Se=Math.min(H+Re*ee,X),Re===l-1&&u?se.push(i[X]):se.push(i[Se]);return se}function Mw(C){var i=C.min,a=C.max,l=C.nice,u=C.tickCount,E=new XB;return E.domain([i,a]),l&&E.nice(u),E.ticks(u)}var Z3=5,uE=Math.sqrt(50),V3=Math.sqrt(10),z3=Math.sqrt(2),XB=function(){function C(){this._domain=[0,1]}return C.prototype.domain=function(i){return i?(this._domain=Array.from(i,Number),this):this._domain.slice()},C.prototype.nice=function(i){var a,l;i===void 0&&(i=Z3);var u=this._domain.slice(),E=0,P=this._domain.length-1,j=this._domain[E],H=this._domain[P],X;return H<j&&(a=[H,j],j=a[0],H=a[1],l=[P,E],E=l[0],P=l[1]),X=IR(j,H,i),X>0?(j=Math.floor(j/X)*X,H=Math.ceil(H/X)*X,X=IR(j,H,i)):X<0&&(j=Math.ceil(j*X)/X,H=Math.floor(H*X)/X,X=IR(j,H,i)),X>0?(u[E]=Math.floor(j/X)*X,u[P]=Math.ceil(H/X)*X,this.domain(u)):X<0&&(u[E]=Math.ceil(j*X)/X,u[P]=Math.floor(H*X)/X,this.domain(u)),this},C.prototype.ticks=function(i){return i===void 0&&(i=Z3),Z5(this._domain[0],this._domain[this._domain.length-1],i||Z3)},C}();function Z5(C,i,a){var l,u=-1,E,P,j;if(i=+i,C=+C,a=+a,C===i&&a>0)return[C];if((l=i<C)&&(E=C,C=i,i=E),(j=IR(C,i,a))===0||!isFinite(j))return[];if(j>0)for(C=Math.ceil(C/j),i=Math.floor(i/j),P=new Array(E=Math.ceil(i-C+1));++u<E;)P[u]=(C+u)*j;else for(C=Math.floor(C*j),i=Math.ceil(i*j),P=new Array(E=Math.ceil(C-i+1));++u<E;)P[u]=(C-u)/j;return l&&P.reverse(),P}function IR(C,i,a){var l=(i-C)/Math.max(0,a),u=Math.floor(Math.log(l)/Math.LN10),E=l/Math.pow(10,u);return u>=0?(E>=uE?10:E>=V3?5:E>=z3?2:1)*Math.pow(10,u):-Math.pow(10,-u)/(E>=uE?10:E>=V3?5:E>=z3?2:1)}function V5(C,i,a){var l;return a==="ceil"?l=Math.ceil(C/i):a==="floor"?l=Math.floor(C/i):l=Math.round(C/i),l*i}function W3(C,i,a){var l=V5(C,a,"floor"),u=V5(i,a,"ceil");l=(0,Nn.fixedBase)(l,a),u=(0,Nn.fixedBase)(u,a);for(var E=[],P=Math.max((u-l)/(Math.pow(2,12)-1),a),j=l;j<=u;j=j+P){var H=(0,Nn.fixedBase)(j,P);E.push(H)}return{min:l,max:u,ticks:E}}function H3(C,i,a){var l,u=C.minLimit,E=C.maxLimit,P=C.min,j=C.max,H=C.tickCount,X=H===void 0?5:H,ee=(0,Nn.isNil)(u)?(0,Nn.isNil)(i)?P:i:u,se=(0,Nn.isNil)(E)?(0,Nn.isNil)(a)?j:a:E;if(ee>se&&(l=[ee,se],se=l[0],ee=l[1]),X<=2)return[ee,se];for(var Se=(se-ee)/(X-1),Re=[],Be=0;Be<X;Be++)Re.push(ee+Se*Be);return Re}function JB(C){var i=C.min,a=C.max,l=C.tickInterval,u=C.minLimit,E=C.maxLimit,P=Mw(C);return!(0,Nn.isNil)(u)||!(0,Nn.isNil)(E)?H3(C,(0,Nn.head)(P),(0,Nn.last)(P)):l?W3(i,a,l).ticks:P}function lC(C){return Math.abs(C)<1e-15?C:parseFloat(C.toFixed(15))}var QB=[1,5,2,2.5,4,3],iH=null,PM=Number.EPSILON*100;function qB(C,i){return(C%i+i)%i}function eU(C){return Math.round(C*1e12)/1e12}function tU(C,i,a,l,u,E){var P=(0,Nn.size)(i),j=(0,Nn.indexOf)(i,C),H=0,X=qB(l,E);return(X<PM||E-X<PM)&&l<=0&&u>=0&&(H=1),1-j/(P-1)-a+H}function nU(C,i,a){var l=(0,Nn.size)(i),u=(0,Nn.indexOf)(i,C),E=1;return 1-u/(l-1)-a+E}function rU(C,i,a,l,u,E){var P=(C-1)/(E-u),j=(i-1)/(Math.max(E,l)-Math.min(a,u));return 2-Math.max(P/j,j/P)}function aU(C,i){return C>=i?2-(C-1)/(i-1):1}function iU(C,i,a,l){var u=i-C;return 1-.5*(Math.pow(i-l,2)+Math.pow(C-a,2))/Math.pow(.1*u,2)}function oU(C,i,a){var l=i-C;if(a>l){var u=(a-l)/2;return 1-Math.pow(u,2)/Math.pow(.1*l,2)}return 1}function sU(){return 1}function lU(C,i,a,l,u,E){a===void 0&&(a=5),l===void 0&&(l=!0),u===void 0&&(u=QB),E===void 0&&(E=[.25,.2,.5,.05]);var P=a<0?0:Math.round(a);if(Number.isNaN(C)||Number.isNaN(i)||typeof C!="number"||typeof i!="number"||!P)return{min:0,max:0,ticks:[]};if(i-C<1e-15||P===1)return{min:C,max:i,ticks:[C]};if(i-C>1e148){var j=a||5,H=(i-C)/j;return{min:C,max:i,ticks:Array(j).fill(null).map(function(oo,Ki){return lC(C+H*Ki)})}}for(var X={score:-2,lmin:0,lmax:0,lstep:0},ee=1;ee<Infinity;){for(var se=0;se<u.length;se+=1){var Se=u[se],Re=nU(Se,u,ee);if(E[0]*Re+E[1]+E[2]+E[3]<X.score){ee=Infinity;break}for(var Be=2;Be<Infinity;){var Ye=aU(Be,P);if(E[0]*Re+E[1]+E[2]*Ye+E[3]<X.score)break;for(var ht=(i-C)/(Be+1)/ee/Se,Tt=Math.ceil(Math.log10(ht));Tt<Infinity;){var Dt=ee*Se*Math.pow(10,Tt),Kt=oU(C,i,Dt*(Be-1));if(E[0]*Re+E[1]*Kt+E[2]*Ye+E[3]<X.score)break;var gn=Math.floor(i/Dt)*ee-(Be-1)*ee,bn=Math.ceil(C/Dt)*ee;if(gn<=bn)for(var j=bn-gn,mn=0;mn<=j;mn+=1){var kn=gn+mn,sr=kn*(Dt/ee),yr=sr+Dt*(Be-1),jr=Dt,zr=tU(Se,u,ee,sr,yr,jr),va=iU(C,i,sr,yr),za=rU(Be,P,C,i,sr,yr),xi=sU(),Di=E[0]*zr+E[1]*va+E[2]*za+E[3]*xi;Di>X.score&&(!l||sr<=C&&yr>=i)&&(X.lmin=sr,X.lmax=yr,X.lstep=jr,X.score=Di)}Tt+=1}Be+=1}}ee+=1}var Si=lC(X.lmax),jo=lC(X.lmin),ro=lC(X.lstep),hi=Math.floor(eU((Si-jo)/ro))+1,io=new Array(hi);io[0]=lC(jo);for(var se=1;se<hi;se++)io[se]=lC(io[se-1]+ro);return{min:Math.min(C,(0,Nn.head)(io)),max:Math.max(i,(0,Nn.last)(io)),ticks:io}}function cU(C){var i=C.min,a=C.max,l=C.tickCount,u=C.nice,E=C.tickInterval,P=C.minLimit,j=C.maxLimit,H=lU(i,a,l,u).ticks;return!(0,Nn.isNil)(P)||!(0,Nn.isNil)(j)?H3(C,(0,Nn.head)(H),(0,Nn.last)(H)):E?W3(i,a,E).ticks:H}function uU(C){var i=C.base,a=C.tickCount,l=C.min,u=C.max,E=C.values,P,j=Y_(i,u);if(l>0)P=Math.floor(Y_(i,l));else{var H=N5(E,i,u);P=Math.floor(Y_(i,H))}for(var X=j-P,ee=Math.ceil(X/a),se=[],Se=P;Se<j+ee;Se=Se+ee)se.push(Math.pow(i,Se));return l<=0&&se.unshift(0),se}function z5(C,i,a){if(a===void 0&&(a=5),C===i)return{max:i,min:C,ticks:[C]};var l=a<0?0:Math.round(a);if(l===0)return{max:i,min:C,ticks:[]};var u=1.5,E=.5+1.5*u,P=i-C,j=P/l,H=Math.pow(10,Math.floor(Math.log10(j))),X=H;2*H-j<u*(j-X)&&(X=2*H,5*H-j<E*(j-X)&&(X=5*H,10*H-j<u*(j-X)&&(X=10*H)));for(var ee=Math.ceil(i/X),se=Math.floor(C/X),Se=Math.max(ee*X,i),Re=Math.min(se*X,C),Be=Math.floor((Se-Re)/X)+1,Ye=new Array(Be),ht=0;ht<Be;ht++)Ye[ht]=lC(Re+ht*X);return{min:Re,max:Se,ticks:Ye}}function fU(C){var i=C.exponent,a=C.tickCount,l=Math.ceil(cE(i,C.max)),u=Math.floor(cE(i,C.min)),E=z5(u,l,a).ticks;return E.map(function(P){var j=P>=0?1:-1;return Math.pow(P,i)*j})}function dU(C,i){var a=C.length*i;return i===1?C[C.length-1]:i===0?C[0]:a%1!=0?C[Math.ceil(a)-1]:C.length%2==0?(C[a-1]+C[a])/2:C[a]}function pU(C){var i=C.tickCount,a=C.values;if(!a||!a.length)return[];for(var l=a.slice().sort(function(j,H){return j-H}),u=[],E=0;E<i;E++){var P=E/(i-1);u.push(dU(l,P))}return u}function vU(C){var i=C.min,a=C.max,l=C.tickCount,u=C.tickInterval,E=C.minLimit,P=C.maxLimit,j=z5(i,a,l).ticks;return!(0,Nn.isNil)(E)||!(0,Nn.isNil)(P)?H3(C,(0,Nn.head)(j),(0,Nn.last)(j)):u?W3(i,a,u).ticks:j}function hU(C){var i=C.min,a=C.max,l=C.minTickInterval,u=C.tickInterval,E=C.tickCount;if(u)E=Math.ceil((a-i)/u);else{u=I3(i,a,E)[1];var P=(a-i)/u,j=P/E;j>1&&(u=u*Math.ceil(j)),l&&u<l&&(u=l)}u=Math.max(Math.floor((a-i)/(Math.pow(2,12)-1)),u);for(var H=[],X=i;X<a+u;X+=u)H.push(X);return H}function mU(C){var i=U5(nC({showLast:!0},C));return i}function RM(C){return new Date(C).getFullYear()}function W5(C){return new Date(C,0,1).getTime()}function DR(C){return new Date(C).getMonth()}function G3(C,i){var a=RM(C),l=RM(i),u=DR(C),E=DR(i);return(l-a)*12+(E-u)%12}function gU(C,i){return new Date(C,i,1).getTime()}function _U(C,i){return Math.ceil((i-C)/b1)}function yU(C,i){return Math.ceil((i-C)/oC)}function bU(C,i){return Math.ceil((i-C)/(60*1e3))}function xU(C){var i=C.min,a=C.max,l=C.minTickInterval,u=C.tickCount,E=C.tickInterval,P=[];E||(E=(a-i)/u,l&&E<l&&(E=l)),E=Math.max(Math.floor((a-i)/(Math.pow(2,12)-1)),E);var j=RM(i);if(E>O3)for(var H=RM(a),X=Math.ceil(E/O3),ee=j;ee<=H+X;ee=ee+X)P.push(W5(ee));else if(E>sC)for(var se=Math.ceil(E/sC),Se=DR(i),Re=G3(i,a),ee=0;ee<=Re+se;ee=ee+se)P.push(gU(j,ee+Se));else if(E>b1)for(var Be=new Date(i),Ye=Be.getFullYear(),ht=Be.getMonth(),Tt=Be.getDate(),Dt=Math.ceil(E/b1),Kt=_U(i,a),ee=0;ee<Kt+Dt;ee=ee+Dt)P.push(new Date(Ye,ht,Tt+ee).getTime());else if(E>oC)for(var Be=new Date(i),Ye=Be.getFullYear(),ht=Be.getMonth(),Dt=Be.getDate(),gn=Be.getHours(),bn=Math.ceil(E/oC),mn=yU(i,a),ee=0;ee<=mn+bn;ee=ee+bn)P.push(new Date(Ye,ht,Dt,gn+ee).getTime());else if(E>iC)for(var kn=bU(i,a),sr=Math.ceil(E/iC),ee=0;ee<=kn+sr;ee=ee+sr)P.push(i+ee*iC);else{var yr=E;yr<ky&&(yr=ky);for(var jr=Math.floor(i/ky)*ky,zr=Math.ceil((a-i)/ky),va=Math.ceil(yr/ky),ee=0;ee<zr+va;ee=ee+va)P.push(jr+ee*ky)}return P.length>=512&&console.warn("Notice: current ticks length("+P.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+E+") is too small, increase the value to solve the problem!"),P}T0("cat",U5),T0("time-cat",mU),T0("wilkinson-extended",cU),T0("r-pretty",vU),T0("time",hU),T0("time-pretty",xU),T0("log",uU),T0("pow",fU),T0("quantile",pU),T0("d3-linear",JB),q0("cat",AM),q0("category",AM),q0("identity",YB),q0("linear",Tw),q0("log",L5),q0("pow",N3),q0("time",F3),q0("timeCat",$B),q0("quantize",OR),q0("quantile",B3);var EU=function(C,i,a){if(a||arguments.length===2)for(var l=0,u=i.length,E;l<u;l++)(E||!(l in i))&&(E||(E=Array.prototype.slice.call(i,0,l)),E[l]=i[l]);return C.concat(E||Array.prototype.slice.call(i))};function SU(C){return(0,Nn.map)(C,function(i,a){var l=a===0?"M":"L",u=i[0],E=i[1];return[l,u,E]})}function H5(C){return SU(C)}function CU(C){if(C.length<=2)return H5(C);var i=[];(0,Nn.each)(C,function(P){(0,Nn.isEqual)(P,i.slice(i.length-2))||i.push(P[0],P[1])});var a=LI(i,!1),l=(0,Nn.head)(C),u=l[0],E=l[1];return a.unshift(["M",u,E]),a}function wU(C,i,a,l){l===void 0&&(l=!0);var u=new Tw({values:C}),E=new AM({values:(0,Nn.map)(C,function(j,H){return H})}),P=(0,Nn.map)(C,function(j,H){return[E.scale(H)*i,a-u.scale(j)*a]});return l?CU(P):H5(P)}function TU(C,i,a,l){l===void 0&&(l=5);for(var u=new Tw({values:C}),E=new AM({values:(0,Nn.map)(C,function(Se,Re){return Re})}),P=(0,Nn.map)(C,function(Se,Re){return[E.scale(Re)*i,a-u.scale(Se)*a]}),j=[],H=0;H<P.length;H++){var X=P[H],ee={x:X[0],y:X[1],y0:a,size:l},se=kU(ee);j.push.apply(j,se)}return PU(j)}function AU(C,i){var a=new Tw({values:C}),l=Math.max(0,a.min);return i-a.scale(l)*i}function MU(C,i,a,l){var u=EU([],C,!0),E=AU(l,a);return u.push(["L",i,E]),u.push(["L",0,E]),u.push(["Z"]),u}function kU(C){var i=C.x,a=C.y,l=C.y0,u=C.size,E,P;(0,Nn.isArray)(a)?(E=a[0],P=a[1]):(E=l,P=a);var j,H;(0,Nn.isArray)(i)?(j=i[0],H=i[1]):(j=i-u/2,H=i+u/2);var X=[{x:j,y:E},{x:j,y:P}];return X.push({x:H,y:P},{x:H,y:E}),X}function PU(C,i){i===void 0&&(i=!0);var a=[],l=C[0];a.push(["M",l.x,l.y]);for(var u=1,E=C.length;u<E;u++)a.push(["L",C[u].x,C[u].y]);return i&&(a.push(["L",l.x,l.y]),a.push(["z"])),a}var cC=function(){return cC=Object.assign||function(C){for(var i,a=1,l=arguments.length;a<l;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(C[u]=i[u])}return C},cC.apply(this,arguments)},RU={stroke:"#C5C5C5",strokeOpacity:.85},OU={fill:"#CACED4",opacity:.85},IU=function(){function C(i){var a=i.x,l=a===void 0?0:a,u=i.y,E=u===void 0?0:u,P=i.width,j=P===void 0?200:P,H=i.height,X=H===void 0?26:H,ee=i.smooth,se=ee===void 0?!0:ee,Se=i.isArea,Re=Se===void 0?!1:Se,Be=i.data,Ye=Be===void 0?[]:Be,ht=i.lineStyle,Tt=i.areaStyle,Dt=i.group,Kt=i.interval,gn=Kt===void 0?null:Kt;this.group=Dt,this.x=l,this.y=E,this.width=j,this.height=X,this.data=Ye,this.smooth=se,this.isArea=Re,this.lineStyle=Object.assign({},RU,ht),this.areaStyle=Object.assign({},OU,Tt),this.intervalConfig=gn,this.renderLine()}return C.prototype.renderLine=function(){var i=this,a=i.x,l=i.y,u=i.width,E=i.height,P=i.barWidth,j=i.data,H=i.smooth,X=i.isArea,ee=i.lineStyle,se=i.areaStyle,Se=this.group.addGroup({name:"trend-group"});if(j){var Re=wU(j,u,E,H);if(Se.addShape("path",{attrs:cC({path:Re},ee),name:"trend-line"}),X){var Be=MU(Re,u,E,j);Se.addShape("path",{attrs:cC({path:Be},se),name:"trend-area"})}}this.intervalConfig&&Se.addShape("path",{attrs:cC({path:TU(this.intervalConfig.data,u,E,this.intervalConfig.style.barWidth)},this.intervalConfig.style),name:"trend-interval"}),Se.move(a,l)},C.prototype.destory=function(){this.group.destroy()},C}(),DU=IU,kw=function(){return kw=Object.assign||function(C){for(var i,a=1,l=arguments.length;a<l;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(C[u]=i[u])}return C},kw.apply(this,arguments)},uC={fill:"#1890ff",stroke:"#1890ff",type:"trend",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#0050b3"},$3={fill:"#fff",stroke:"#1890ff",radius:2,opacity:1,cursor:"ew-resize"},Pw=function(){function C(i){var a=i.group,l=i.name,u=i.type,E=i.x,P=E===void 0?0:E,j=i.y,H=j===void 0?0:j,X=i.width,ee=X===void 0?2:X,se=i.height,Se=se===void 0?24:se,Re=i.style,Be=Re===void 0?{}:Re;this.group=a,this.name=l,this.handleType=u,this.x=P,this.y=H,this.width=ee,this.height=Se,u==="trend"?this.style=kw(kw({},uC),Be):u==="simple"&&(this.style=kw(kw({},$3),Be)),this.renderHandle()}return C.prototype.setX=function(i){this.setXY(i,void 0)},C.prototype.setY=function(i){this.setXY(void 0,i)},C.prototype.setXY=function(i,a){(0,Nn.isNumber)(i)&&(this.x=i),(0,Nn.isNumber)(a)&&(this.y=a),this.updateXY()},C.prototype.renderHandle=function(){var i=this,a=i.width,l=i.height,u=i.style,E=i.name,P=u.fill,j=u.stroke,H=u.radius,X=u.opacity,ee=u.cursor;this.handleGroup=this.group.addGroup(),this.handleType==="trend"?(this.verticalLine=this.handleGroup.addShape("rect",{attrs:{x:0,y:0,width:a,height:l,fill:P,stroke:j,radius:H,opacity:X,cursor:ee},name:"".concat(E,"-handler")}),this.topCircle=this.handleGroup.addShape("circle",{attrs:{x:a/2,y:0,r:2*a,fill:P,stroke:j,radius:H,opacity:X,cursor:ee,lineAppendWidth:12},name:"".concat(E,"-handler")}),this.bottomCircle=this.handleGroup.addShape("circle",{attrs:{x:a/2,y:l,r:2*a,fill:P,stroke:j,radius:H,opacity:X,cursor:ee},name:"".concat(E,"-handler")})):this.handleType==="simple"&&(this.topCircle=this.handleGroup.addShape("circle",{attrs:{x:a/2,y:l/2,r:2*a,fill:P,stroke:j,radius:H,opacity:X,cursor:ee,lineWidth:2},name:"".concat(E,"-handler")})),this.updateXY(),this.handleType==="trend"?this.bindTrendEvents():this.handleType==="simple"&&this.bindSimpleEvents()},C.prototype.bindSimpleEvents=function(){var i=this,a=this.name;this.handleGroup.on("".concat(a,"-handler:mouseenter"),function(){var l=i.style.highLightFill;i.topCircle.attr("fill",l)}),this.handleGroup.on("".concat(a,"-handler:mouseleave"),function(){var l=i.style.fill;i.topCircle.attr("fill",l)})},C.prototype.bindTrendEvents=function(){var i=this,a=this.name;this.handleGroup.on("".concat(a,"-handler:mouseenter"),function(){var l=i.style.highLightFill;i.verticalLine.attr("fill",l),i.topCircle.attr("fill",l),i.bottomCircle.attr("fill",l)}),this.handleGroup.on("".concat(a,"-handler:mouseleave"),function(){var l=i.style.fill;i.verticalLine.attr("fill",l),i.topCircle.attr("fill",l),i.bottomCircle.attr("fill",l)})},C.prototype.show=function(){this.handleGroup.show()},C.prototype.hide=function(){this.handleGroup.hide()},C.prototype.updateXY=function(){this.handleGroup.setMatrix([1,0,0,0,1,0,this.x,this.y,1])},C}(),NR=Pw,dh=function(){return dh=Object.assign||function(C){for(var i,a=1,l=arguments.length;a<l;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(C[u]=i[u])}return C},dh.apply(this,arguments)},G5=U_,$5={fill:"#416180",opacity:.05},NU={fill:"#416180",opacity:.15,radius:5},K5={fill:"#5B8FF9",opacity:.3,cursor:"grab"},K3=2,LU={width:K3,height:24},LR={textBaseline:"middle",fill:"#000",opacity:.45},FU={textAlign:"center",textBaseline:"top",fill:"#607889",opacity:.35},jU={lineWidth:1,stroke:"#ccc"},BU=function(){function C(i){var a=this;this.prevX=0,this.onMouseDown=function(oo){return function(Ki){a.currentHandler=oo;var Ji=Ki.originalEvent;Ji.stopPropagation(),Ji.preventDefault(),a.prevX=(0,Nn.get)(Ji,"touches.0.pageX",Ji.pageX);var Ao=a.canvas.get("container");Ao.addEventListener("mousemove",a.onMouseMove),Ao.addEventListener("mouseup",a.onMouseUp),Ao.addEventListener("mouseleave",a.onMouseUp),Ao.addEventListener("touchmove",a.onMouseMove),Ao.addEventListener("touchend",a.onMouseUp),Ao.addEventListener("touchcancel",a.onMouseUp)}},this.onMouseMove=function(oo){oo.stopPropagation(),oo.preventDefault();var Ki=(0,Nn.get)(oo,"touches.0.pageX",oo.pageX),Ji=Ki-a.prevX,Ao=a.adjustOffsetRange(Ji/a.width);a.updateStartEnd(Ao),a.updateUI(),a.prevX=Ki},this.onMouseUp=function(){a.currentHandler&&(a.currentHandler=void 0);var oo=a.canvas.get("container");oo&&(oo.removeEventListener("mousemove",a.onMouseMove),oo.removeEventListener("mouseup",a.onMouseUp),oo.removeEventListener("mouseleave",a.onMouseUp),oo.removeEventListener("touchmove",a.onMouseMove),oo.removeEventListener("touchend",a.onMouseUp),oo.removeEventListener("touchcancel",a.onMouseUp))};var l=i.x,u=l===void 0?0:l,E=i.y,P=E===void 0?0:E,j=i.width,H=j===void 0?100:j,X=i.height,ee=i.padding,se=ee===void 0?10:ee,Se=i.trendCfg,Re=i.controllerCfg,Be=Re===void 0?{speed:1}:Re,Ye=i.backgroundStyle,ht=Ye===void 0?{}:Ye,Tt=i.foregroundStyle,Dt=Tt===void 0?{}:Tt,Kt=i.handlerStyle,gn=Kt===void 0?{}:Kt,bn=i.textStyle,mn=bn===void 0?{}:bn,kn=i.start,sr=kn===void 0?0:kn,yr=i.end,jr=yr===void 0?1:yr,zr=i.minText,va=zr===void 0?"":zr,za=i.maxText,xi=za===void 0?"":za,Di=i.group,Si=i.graph,jo=i.canvas,ro=i.tick,hi=ro===void 0?{tickLabelStyle:{},tickLineStyle:{},tickLabelFormatter:function(Ki){return Ki},ticks:[]}:ro,io=i.type;this.graph=Si,this.canvas=jo,this.group=Di,this.timeBarType=io,this.x=u,this.y=P,this.width=H,this.height=X,this.padding=se,this.ticks=hi.ticks,this.trendCfg=Se,this.controllerCfg=Be,this.currentSpeed=Be.speed||1,this.tickLabelFormatter=hi.tickLabelFormatter,io==="trend"?this.backgroundStyle=dh(dh({},$5),ht):io==="simple"&&(this.backgroundStyle=dh(dh({},NU),ht)),this.foregroundStyle=dh(dh({},K5),Dt),this.handlerStyle=dh(dh({},LU),gn),this.textStyle=dh(dh({},LR),mn),this.tickLabelStyle=dh(dh({},FU),hi.tickLabelStyle),this.tickLineStyle=dh(dh({},jU),hi.tickLineStyle),this.currentMode=Be.defaultTimeType||y1.RANGE,this.start=sr,this.end=jr,this.minText=va,this.maxText=xi,this.fontFamily=typeof window!="undefined"&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif",this.renderSlider()}return C.prototype.update=function(i){var a=i.x,l=i.y,u=i.width,E=i.height,P=i.minText,j=i.maxText,H=i.start,X=i.end;this.start=Math.min(1,Math.max(H,0)),this.end=Math.min(1,Math.max(X,0)),(0,Nn.assign)(this,{x:a,y:l,width:u,height:E,minText:P,maxText:j}),this.updateUI()},C.prototype.setText=function(i,a){this.minTextShape.attr("text",i),this.maxTextShape.attr("text",a)},C.prototype.renderSlider=function(){var i=this,a=this,l=a.width,u=a.height,E=a.timeBarType;if(E==="trend"&&(0,Nn.size)((0,Nn.get)(this.trendCfg,"data"))){var P=new DU(dh(dh({x:this.x,y:this.y,width:l,height:u},this.trendCfg),{group:this.group}));this.trendComponent=P}var j=this.group.addGroup({name:"slider-group"});j.addShape("rect",{attrs:dh({x:0,y:0,width:l,height:u},this.backgroundStyle),name:"background"});var H=this.group.addGroup();E==="trend"?(this.minTextShape=H.addShape("text",{attrs:dh({x:0,y:u/2+this.y,textAlign:"right",text:this.minText,silent:!1,fontFamily:this.fontFamily||"Arial, sans-serif",stroke:"#fff",lineWidth:5},this.textStyle),capture:!1,name:"min-text-shape"}),this.maxTextShape=H.addShape("text",{attrs:dh({y:u/2+this.y,textAlign:"left",text:this.maxText,silent:!1,fontFamily:this.fontFamily||"Arial, sans-serif",stroke:"#fff",lineWidth:5},this.textStyle),capture:!1,name:"max-text-shape"})):(this.minTextShape=H.addShape("text",{attrs:dh({x:0,y:this.y-10,textAlign:"center",text:this.minText,silent:!1,fontFamily:this.fontFamily||"Arial, sans-serif",stroke:"#fff",lineWidth:5},this.textStyle),capture:!1,name:"min-text-shape"}),this.maxTextShape=H.addShape("text",{attrs:dh({y:this.y-10,textAlign:"center",text:this.maxText,silent:!1,fontFamily:this.fontFamily||"Arial, sans-serif",stroke:"#fff",lineWidth:5},this.textStyle),capture:!1,name:"max-text-shape"})),this.foregroundShape=this.group.addGroup().addShape("rect",{attrs:dh({x:0,y:this.y,height:u},this.foregroundStyle),name:"foreground-shape"}),this.foregroundShape.on("mousedown",function(Tt){Tt.target.attr("cursor","grabbing")}),this.foregroundShape.on("mouseup",function(Tt){Tt.target.attr("cursor",i.foregroundStyle.cursor||"grab")});var X=(0,Nn.get)(this.handlerStyle,"width",2),ee=(0,Nn.get)(this.handlerStyle,"height",24),se=this.group.addGroup({name:"minHandlerShape"});this.minHandlerShape=new NR({name:"minHandlerShape",group:se,type:E,x:this.x,y:this.y,width:X,height:ee,style:this.handlerStyle});var Se=this.group.addGroup({name:"maxHandlerShape"});this.maxHandlerShape=new NR({name:"maxHandlerShape",group:Se,type:E,x:this.x,y:this.y,width:X,height:ee,style:this.handlerStyle});var Re=this.ticks,Be=l/(Re.length-1);this.tickPosList=[],this.textList&&this.textList.length&&this.textList.forEach(function(Tt){Tt.destroy()});var Ye=-Infinity,ht=this.tickLabelStyle.rotate;delete this.tickLabelStyle.rotate,this.textList=Re.map(function(Tt,Dt){i.tickPosList.push(i.x+Dt*Be);var Kt;i.tickLabelFormatter?(Kt=i.tickLabelFormatter(Tt),!(0,Nn.isString)(Kt)&&Kt&&(Kt=Tt.date)):Kt=Tt.date;var gn=i.x+Dt*Be,bn=i.y+u+5,mn=i.group.addShape("text",{attrs:dh({x:gn,y:bn,text:Kt,fontFamily:i.fontFamily||"Arial, sans-serif"},i.tickLabelStyle),name:"tick-label"});if((0,Nn.isNumber)(ht)&&Dt!==Re.length-1){var kn=G5([1,0,0,0,1,0,0,0,1],[["t",-gn,-bn],["r",ht],["t",gn-5,bn+2]]);mn.attr({textAlign:"left",matrix:kn})}Dt===0?mn.attr({textAlign:"left"}):Dt!==Re.length-1&&mn.attr({textAlign:"right"});var sr=i.group.addShape("line",{attrs:dh({x1:i.x+Dt*Be,y1:i.y+u+2,x2:i.x+Dt*Be,y2:i.y+u+6},i.tickLineStyle),name:"tick-line"});sr.toBack();var yr=mn.getBBox();return yr.minX>Ye?(mn.show(),sr.show(),Ye=yr.minX+yr.width+10):(mn.hide(),sr.hide()),mn}),this.controllerBtnGroup=new h3(dh({group:this.group,x:this.x,y:this.y+u+25,width:l,height:35},this.controllerCfg)),this.updateStartEnd(0),this.updateUI(),j.move(this.x,this.y),this.bindEvents(),this.currentMode===y1.SINGLE&&(this.minHandlerShape.hide(),this.foregroundShape.hide(),this.minTextShape.hide())},C.prototype.bindEvents=function(){var i=this,a=this.group.find(function(u){return u.get("name")==="minHandlerShape"});a&&(a.on("minHandlerShape-handler:mousedown",this.onMouseDown(this.minHandlerShape)),a.on("minHandlerShape-handler:touchstart",this.onMouseDown(this.minHandlerShape)));var l=this.group.find(function(u){return u.get("name")==="maxHandlerShape"});l&&(l.on("maxHandlerShape-handler:mousedown",this.onMouseDown(this.maxHandlerShape)),l.on("maxHandlerShape-handler:touchstart",this.onMouseDown(this.maxHandlerShape))),this.foregroundShape.on("mousedown",this.onMouseDown(this.foregroundShape)),this.foregroundShape.on("touchstart",this.onMouseDown(this.foregroundShape)),this.group.on("".concat(Fb,":click"),function(){i.isPlay=!i.isPlay,i.currentHandler=i.maxHandlerShape,i.changePlayStatus()}),this.group.on("".concat(xM,":click"),function(){i.currentHandler=i.maxHandlerShape,i.updateStartEnd(.01),i.updateUI()}),this.group.on("".concat(xw,":click"),function(){i.currentHandler=i.maxHandlerShape,i.updateStartEnd(-.01),i.updateUI()}),this.group.on(eC,function(u){var E=u.type,P=u.speed;i.currentSpeed=P,i.currentMode=E,E===y1.SINGLE?(i.minHandlerShape.hide(),i.foregroundShape.hide(),i.minTextShape.hide()):E===y1.RANGE&&(i.minHandlerShape.show(),i.foregroundShape.show(),i.minTextShape.show())})},C.prototype.adjustTickIndex=function(i){for(var a=0;a<this.tickPosList.length-1;a++)if(this.tickPosList[a]<=i&&i<=this.tickPosList[a+1])return Math.abs(this.tickPosList[a]-i)<Math.abs(i-this.tickPosList[a+1])?a:a+1;return 0},C.prototype.adjustOffsetRange=function(i){switch(this.currentHandler){case this.minHandlerShape:{var a=0-this.start,l=1-this.start;return Math.min(l,Math.max(a,i))}case this.maxHandlerShape:{var a=0-this.end,l=1-this.end;return Math.min(l,Math.max(a,i))}case this.foregroundShape:{var a=0-this.start,l=1-this.end;return Math.min(l,Math.max(a,i))}default:return 0}},C.prototype.updateStartEnd=function(i){var a=this.ticks[this.adjustTickIndex(this.start*this.width)],l=this.ticks[this.adjustTickIndex(this.end*this.width)];if(!this.currentHandler){this.minText=this.tickLabelFormatter?this.tickLabelFormatter(a):a==null?void 0:a.date,this.maxText=this.tickLabelFormatter?this.tickLabelFormatter(l):l==null?void 0:l.date;return}switch(this.currentHandler){case this.minHandlerShape:this.maxText=this.maxTextShape.attr("text"),this.start+=i,this.minText=this.tickLabelFormatter?this.tickLabelFormatter(a):a.date;break;case this.maxHandlerShape:this.minText=this.minTextShape.attr("text"),this.end+=i,this.maxText=this.tickLabelFormatter?this.tickLabelFormatter(l):l.date;break;case this.foregroundShape:this.start+=i,this.end+=i,this.minText=this.tickLabelFormatter?this.tickLabelFormatter(a):a.date,this.maxText=this.tickLabelFormatter?this.tickLabelFormatter(l):l.date;break;default:break}},C.prototype.updateUI=function(){var i=this;this.start<0&&(this.start=0),this.start>1&&(this.start=1),this.end>1&&(this.end=1),this.end<0&&(this.end=0);var a=this.x+this.start*this.width,l=this.x+this.end*this.width;this.foregroundShape.attr("x",a),this.foregroundShape.attr("width",l-a);var u=(0,Nn.get)(this.handlerStyle,"width",K3);this.setText(this.minText,this.maxText);var E=this.dodgeText([a,l]),P=E[0],j=E[1];this.minHandlerShape.setX(a-u/2),(0,Nn.each)(P,function(H,X){return i.minTextShape.attr(X,H)}),this.maxHandlerShape.setX(l-u/2),(0,Nn.each)(j,function(H,X){return i.maxTextShape.attr(X,H)}),this.currentMode===y1.RANGE?this.graph.emit(_1,{value:[this.start,this.end].sort()}):this.currentMode===y1.SINGLE&&this.graph.emit(_1,{value:[this.end,this.end]})},C.prototype.dodgeText=function(i){var a,l,u=2,E=(0,Nn.get)(this.handlerStyle,"width",K3),P=this.minTextShape,j=this.maxTextShape,H=i[0],X=i[1],ee=!1;H>X&&(a=[X,H],H=a[0],X=a[1],l=[j,P],P=l[0],j=l[1],ee=!0);var se=P.getBBox(),Se=j.getBBox(),Re=null,Be=null;return this.timeBarType==="trend"?(Re=H-se.width<this.x+u?{x:H+E/2+u,textAlign:"left"}:{x:H-E/2-u,textAlign:"right"},Be=X+Se.width>this.x+this.width?{x:X-E/2-u,textAlign:"right"}:{x:X+E/2+u,textAlign:"left"}):this.timeBarType==="simple"&&(Re=P.attr("x")>se.width?{x:H,textAlign:"center"}:{x:H,textAlign:"left"},Be=j.attr("x")>this.width-Se.width?{x:X,textAlign:"right"}:{x:X,textAlign:"center"}),ee?[Be,Re]:[Re,Be]},C.prototype.startPlay=function(){var i=this;return typeof window!="undefined"?window.requestAnimationFrame(function(){var a=i,l=a.ticks,u=a.width,E=i.currentSpeed,P=u/l.length,j=P/((10-E)*1e3/60),H=i.adjustOffsetRange(j/i.width);i.updateStartEnd(H),i.updateUI(),i.isPlay&&(i.playHandler=i.startPlay())}):void 0},C.prototype.changePlayStatus=function(i){i===void 0&&(i=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit(p5,null)):this.playHandler&&(typeof window!="undefined"&&window.cancelAnimationFrame(this.playHandler),i&&this.graph.emit(v5,null))},C.prototype.destory=function(){this.graph.off(_1,function(){});var i=this.group,a=i.find(function(u){return u.get("name")==="minHandlerShape"});a&&(a.off("minHandlerShape-handler:mousedown"),a.off("minHandlerShape-handler:touchstart"),a.destroy());var l=i.find(function(u){return u.get("name")==="maxHandlerShape"});l&&(l.off("maxHandlerShape-handler:mousedown"),l.off("maxHandlerShape-handler:touchstart"),l.destroy()),this.foregroundShape.off("mousedown"),this.foregroundShape.off("touchstart"),this.foregroundShape.destroy(),i.off("".concat(Fb,":click")),i.off("".concat(xM,":click")),i.off("".concat(xw,":click")),i.off(eC),i.destroy(),this.trendComponent&&this.trendComponent.destory()},C}(),UU=BU,ZU=function(){var C=function(a,l){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,E){u.__proto__=E}||function(u,E){for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(u[P]=E[P])},C(a,l)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");C(i,a);function l(){this.constructor=i}i.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Bb=function(){return Bb=Object.assign||function(C){for(var i,a=1,l=arguments.length;a<l;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(C[u]=i[u])}return C},Bb.apply(this,arguments)},Y5=function(C,i){var a={};for(var l in C)Object.prototype.hasOwnProperty.call(C,l)&&i.indexOf(l)<0&&(a[l]=C[l]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(C);u<l.length;u++)i.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(C,l[u])&&(a[l[u]]=C[l[u]]);return a},X5=4,fC=26,OM=function(C){ZU(i,C);function i(a){var l=C.call(this,a)||this;return l.afterrenderListener=function(u){return l.filterData({})},l.valueChangeListener=(0,Nn.throttle)(function(u){return l.filterData(u)},200,{trailing:!0,leading:!0}),l.changeData=function(u){var E=l.get("graph");l.cacheGraphData=E.get("data"),l.filterData({})},l}return i.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-component-timebar",padding:10,type:"trend",trend:{data:[],isArea:!1,smooth:!0},controllerCfg:{speed:1,loop:!1},slider:{start:.1,end:.9,minText:"min",maxText:"max"},tick:{start:.1,end:.9,data:[]},textStyle:{},filterEdge:!1,filterItemTypes:["node"],containerCSS:{},putInGraphContainer:!0}},i.prototype.initContainer=function(){var a=this.get("graph"),l=this._cfgs,u=l.width,E=l.height,P=l.putInGraphContainer,j=this.get("className")||"g6-component-timebar",H=this.get("container"),X;if(H?((0,Nn.isString)(H)&&(H=document.getElementById(H)),X=H):(X=Hv("<div class='".concat(j,"'></div>")),Ep(X,{position:"relative"})),P){var ee=this.get("graph").get("container");ee.appendChild(X)}this.set("timeBarContainer",X);var se,Se=a.get("renderer");Se==="SVG"?se=new vM({container:X,width:u,height:E}):se=new v1({container:X,width:u,height:E}),this.get("containerCSS")&&Ep(X,this.get("containerCSS")),this.set("canvas",se)},i.prototype.init=function(){this.initContainer();var a=this.get("canvas"),l=a.addGroup({name:"timebar-group"});this.set("timeBarGroup",l),this.renderTrend(),this.initEvent();var u=typeof window!="undefined"&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif";this.set("fontFamily",u)},i.prototype.play=function(){this.togglePlay(!0)},i.prototype.pause=function(){this.togglePlay(!1)},i.prototype.togglePlay=function(a){var l=this.get("timebar");!l||(l.isPlay=!!a,l.changePlayStatus())},i.prototype.renderTrend=function(){var a=this,l=this._cfgs,u=l.width,E=l.x,P=l.y,j=l.padding,H=l.type,X=l.trend,ee=l.slider,se=l.controllerCfg,Se=l.textStyle,Re=l.tick,Be=l.backgroundStyle,Ye=l.foregroundStyle,ht=X.data,Tt=Y5(X,["data"]),Dt=u-2*j,Kt=H==="trend"?fC:X5,gn=this.get("graph"),bn=this.get("timeBarGroup"),mn=this.get("canvas"),kn=null;if(H==="trend"||H==="simple"){var sr=this.get("getValue");kn=new UU(Bb(Bb({graph:gn,canvas:mn,group:bn,type:H,x:E+j,y:H==="trend"?P+j:P+j+15,width:Dt,height:Kt,padding:j,backgroundStyle:Be,foregroundStyle:Ye,trendCfg:Bb(Bb({},Tt),{data:ht.map(function(jr){return(sr==null?void 0:sr(jr))||jr.value})})},ee),{tick:{ticks:ht,tickLabelFormatter:Re.tickLabelFormatter,tickLabelStyle:Re.tickLabelStyle,tickLineStyle:Re.tickLineStyle},handlerStyle:Bb(Bb({},ee.handlerStyle),{height:ee.height||Kt}),controllerCfg:se,textStyle:Se}))}else H==="tick"&&(kn=new PB(Bb({graph:gn,canvas:mn,group:bn,x:E+j,y:P+j,width:u,height:42,padding:2,controllerCfg:se},Re)));var yr=function jr(){var zr=a.get("timebar");zr.draggingHandler=!1,zr.isPlay&&(zr.isPlay=!1,zr.currentHandler=zr.maxHandlerShape,zr.changePlayStatus()),document.removeEventListener("mouseup",jr)};mn.on("mousedown",function(jr){(jr.target.get("name")==="maxHandlerShape-handler"||jr.target.get("name")==="minHandlerShape-handler"||jr.target===kn.foregroundShape)&&document.addEventListener("mouseup",yr)}),this.set("timebar",kn)},i.prototype.filterData=function(a){var l,u=a.value;if(!u){u=[];var E=this._cfgs.type;!E||E==="trend"||E==="simple"?(u[0]=this._cfgs.slider.start,u[1]=this._cfgs.slider.end):E==="tick"&&(u[0]=this._cfgs.tick.start,u[1]=this._cfgs.tick.end)}var P=null,j=this._cfgs.type;if(j==="trend"||j==="simple"?P=this._cfgs.trend.data:j==="tick"&&(P=this._cfgs.tick.data),!P||P.length===0){console.warn("\u8BF7\u914D\u7F6E TimeBar \u7EC4\u4EF6\u7684\u6570\u636E");return}var H=this.get("rangeChange"),X=this.get("graph"),ee=Math.round(P.length*u[0]),se=Math.round(P.length*u[1]);se=se>=P.length?P.length-1:se,ee=ee>=P.length?P.length-1:ee;var Se=(l=this._cfgs.tick)===null||l===void 0?void 0:l.tickLabelFormatter,Re=Se?Se(P[ee]):P[ee].date,Be=Se?Se(P[se]):P[se].date;if(j!=="tick"){var Ye=this.get("timebar");Ye.setText(Re,Be)}if(H)H(X,Re,Be);else{(!this.cacheGraphData||this.cacheGraphData.nodes&&this.cacheGraphData.nodes.length===0)&&(this.cacheGraphData=X.get("data"));var ht=this.get("filterItemTypes"),Tt=this.get("changeData"),Dt=this.get("getDate"),Kt=this.get("shouldIgnore"),gn=P[ee].date,bn=P[se].date;if(Tt||Tt===void 0){var mn=this.cacheGraphData.nodes,kn=this.cacheGraphData.edges,sr={},yr={};X.getNodes().forEach(function(jr){return sr[jr.getID()]=!0}),X.getEdges().forEach(function(jr){return yr[jr.getID()]=!0}),ht.includes("node")&&(mn==null||mn.forEach(function(jr){var zr=+((Dt==null?void 0:Dt(jr))||jr.date),va=zr>=gn&&zr<=bn||(Kt==null?void 0:Kt("node",jr,{min:gn,max:bn})),za=sr[jr.id];za&&!va?(X.removeItem(jr.id),sr[jr.id]=!1):!za&&va&&(X.addItem("node",jr),sr[jr.id]=!0)}),kn==null||kn.forEach(function(jr){var zr=sr[jr.source]&&sr[jr.target]||(Kt==null?void 0:Kt("edge",jr,{min:gn,max:bn})),va=!!X.findById(jr.id);va&&!zr?(X.removeItem(jr.id),yr[jr.id]=!1):!va&&zr?(X.addItem("edge",jr),yr[jr.id]=!0):va||(yr[jr.id]=!1)})),(this.get("filterEdge")||ht.includes("edge"))&&(kn==null||kn.filter(function(jr){var zr=+((Dt==null?void 0:Dt(jr))||jr.date),va=zr>=gn&&zr<=bn||(Kt==null?void 0:Kt("edge",jr,{min:gn,max:bn})),za=sr[jr.source]&&sr[jr.target],xi=va&&za,Di=yr[jr.id];Di&&!xi?(yr[jr.id]=!1,X.removeItem(jr.id)):!Di&&xi&&(yr[jr.id]=!0,X.addItem("edge",jr))}))}else ht.includes("node")&&X.getNodes().forEach(function(jr){var zr=jr.getModel();if(!(Kt==null?void 0:Kt("node",zr,{min:gn,max:bn}))){var va=+((Dt==null?void 0:Dt(zr))||zr.date);va<gn||va>bn?X.hideItem(jr):X.showItem(jr)}}),(this.get("filterEdge")||ht.includes("edge"))&&X.getEdges().forEach(function(jr){var zr=jr.getModel();if(!(Kt==null?void 0:Kt("edge",zr,{min:P[ee].date,max:P[se].date}))){var va=+((Dt==null?void 0:Dt(zr))||zr.date);if(va<P[ee].date||va>P[se].date)X.hideItem(jr);else{var za=jr.getSource().isVisible(),xi=jr.getTarget().isVisible();za&&xi&&X.showItem(jr)}}})}},i.prototype.initEvent=function(){var a=this.get("graph");a.on("afterchangedata",this.changeData),a.on("afterrender",this.afterrenderListener),a.on(_1,this.valueChangeListener)},i.prototype.destroy=function(){var a=this.get("graph");a.off("afterchangedata",this.changeData),a.off("afterrender",this.afterrenderListener),a.off(_1,this.valueChangeListener);var l=this.get("timebar");l&&l.destory&&l.destory(),C.prototype.destroy.call(this);var u=this.get("timeBarContainer");if(u){var E=this.get("container");E||(E=this.get("graph").get("container")),(0,Nn.isString)(E)&&(E=document.getElementById(E)),E===u&&(E=E.parentElement),E.removeChild(u)}},i}(a_),Rw=OM,VU=function(){var C=function(a,l){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,E){u.__proto__=E}||function(u,E){for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(u[P]=E[P])},C(a,l)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");C(i,a);function l(){this.constructor=i}i.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),zU=Mg.applyMatrix;function WU(C,i){var a,l;if(C.naturalWidth)a=C.naturalWidth,l=C.naturalHeight;else{var u=new Image;u.src=C.src,u.onload=function(){i&&i(u.width,u.height)}}return[a,l]}var HU=function(C){VU(i,C);function i(a){return C.call(this,a)||this}return i.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",width:200,delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0}},i.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"}},i.prototype.disableRefresh=function(){this.set("refresh",!1)},i.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas()},i.prototype.disableOneRefresh=function(){this.set("viewportChange",!0)},i.prototype.initViewport=function(){var a=this,l=this._cfgs,u=l.graph;if(!this.destroyed){var E=this.get("container");(0,Nn.isString)(E)&&(E=document.getElementById(E));var P=Hv("<div class=".concat(l.viewportClassName,`
|
||
style='position:absolute;
|
||
left:0;
|
||
top:0;
|
||
box-sizing:border-box;
|
||
border: 2px solid #1980ff;
|
||
cursor:move'
|
||
</div>`)),j=0,H=0,X=!1,ee=0,se=0,Se=0,Re=0,Be=0,Ye=0;E.addEventListener("mousedown",function(ht){if(l.refresh=!1,ht.target===P){var Tt=P.style;Se=parseInt(Tt.width,10),Re=parseInt(Tt.height,10);var Dt=a.get("width"),Kt=a.get("height");Se>Dt||Re>Kt||(Ye=u.getZoom(),Be=a.get("ratio"),X=!0,j=ht.clientX,H=ht.clientY)}},!1),E.addEventListener("mousemove",function(ht){if(!(!X||(0,Nn.isNil)(ht.clientX)||(0,Nn.isNil)(ht.clientY))){var Tt=a.get("width"),Dt=a.get("height"),Kt=P.style;ee=parseInt(Kt.left,10),se=parseInt(Kt.top,10),Se=parseInt(Kt.width,10),Re=parseInt(Kt.height,10);var gn=j-ht.clientX,bn=H-ht.clientY;ee-gn<0?gn=ee:ee-gn+Se>=Tt&&(gn=0),se-bn<0?bn=se:se-bn+Re>=Dt&&(bn=0),ee-=gn,se-=bn,Ep(P,{left:"".concat(ee,"px"),top:"".concat(se,"px")}),u.translate(gn*Ye/Be,bn*Ye/Be),j=ht.clientX,H=ht.clientY}},!1),E.addEventListener("mouseleave",function(){X=!1,l.refresh=!0},!1),E.addEventListener("mouseup",function(){X=!1,l.refresh=!0},!1),this.set("viewport",P),E.appendChild(P)}},i.prototype.updateViewport=function(){if(!this.destroyed){var a=this.get("ratio"),l=this.get("width"),u=this.get("height"),E=this.get("graph"),P=E.get("width"),j=E.get("height"),H=P/j,X=E.getGroup(),ee=X.getCanvasBBox(),se=[(ee.minX+ee.maxX)/2,(ee.minY+ee.maxY)/2],Se=[ee.maxX-ee.minX,ee.maxY-ee.minY],Re={centerX:se[0],centerY:se[1],width:0,height:0,minX:0,minY:0};ee[0]/ee[1]>H?(Re.width=Se[0],Re.height=Re.width/H):(Re.height=Se[1],Re.width=Re.height*H),Re.minX=se[0]-Re.width/2,Re.minY=se[1]-Re.height/2;var Be=X.getMatrix();Be||(Be=[1,0,0,0,1,0,0,0,1]);var Ye=lm.invert([1,0,0,0,1,0,0,0,1],Be),ht=zU({x:Re.minX,y:Re.minY},Ye),Tt=E.getCanvasByPoint(ht.x,ht.y),Dt=this.get("viewport");Dt||this.initViewport();var Kt=P/Re.width,gn=Kt*l,bn=Kt*u,mn=l*-Tt.x/Re.width,kn=u*-Tt.y/Re.height,sr=mn+gn,yr=kn+bn;mn<0&&(gn+=mn,mn=0),sr>l&&(gn=gn-(sr-l)),kn<0&&(bn+=kn,kn=0),yr>u&&(bn=bn-(yr-u)),this.set("ratio",a);var jr="".concat(mn,"px"),zr="".concat(kn,"px");Ep(Dt,{left:jr,top:zr,width:"".concat(gn,"px"),height:"".concat(bn,"px")})}},i.prototype.init=function(){this.initContainer()},i.prototype.initContainer=function(){var a=this,l=a.get("graph"),u=l.get("width"),E=l.get("height"),P=E/u,j=a.get("className"),H=a.get("container"),X=a.get("width"),ee=a.get("height");!X&&!ee&&(X=200),X?(ee=P*X,a.set("height",ee)):(X=1/P*ee,a.set("width",X));var se=Hv("<div class='".concat(j,"' style='width: ").concat(X,"px; height: ").concat(ee,"px; overflow: hidden; position: relative;'></div>"));(0,Nn.isString)(H)&&(H=document.getElementById(H)),H?H.appendChild(se):l.get("container").appendChild(se),a.set("container",se);var Se=Hv('<div class="g6-minimap-container" style="position: relative; width: 100%; height: 100%; text-align: center; display: table;"></div>');se.appendChild(Se);var Re=Hv('<span style="display: table-cell; vertical-align: middle; "></span>');Se.appendChild(Re),a.set("containerDOM",Se),a.set("containerSpan",Re);var Be=Hv('<img alt="" src="'.concat(this.get("graphImg"),'" style="display: inline-block; user-select: none;" draggable="false" />'));a.set("imgDOM",Be),a.updateImgSize(),Re.appendChild(Be),a.updateCanvas()},i.prototype.updateImgSize=function(){var a=this,l=a.get("imgDOM"),u=a.get("width"),E=a.get("height");l.onload=function(){var P=WU(l);P[0]>P[1]?l.width=u:l.height=E}},i.prototype.updateCanvas=function(){var a=this.get("refresh");if(!!a){var l=this.get("graph");if(!l.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var u=this.get("width"),E=l.get("canvas").getCanvasBBox(),P=E.width,j=u/P;this.set("ratio",j),this.updateViewport()}}},i.prototype.getViewport=function(){return this.get("viewport")},i.prototype.getContainer=function(){return this.get("container")},i.prototype.updateGraphImg=function(a){var l=this,u=l.get("imgDOM");u.remove(),l.set("graphImg",a);var E=Hv('<img alt="" src="'.concat(a,'" style="display: inline-block;" ondragstart="return false;" onselectstart="return false;"/>'));l.set("imgDOM",E),E.src=a,l.updateImgSize();var P=l.get("containerSpan");P.appendChild(E),l.updateCanvas()},i.prototype.destroy=function(){var a=this.get("container");a.parentNode.removeChild(a)},i}(a_),J5=HU,GU=function(){var C=function(a,l){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,E){u.__proto__=E}||function(u,E){for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(u[P]=E[P])},C(a,l)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");C(i,a);function l(){this.constructor=i}i.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Y3=function(){return Y3=Object.assign||function(C){for(var i,a=1,l=arguments.length;a<l;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(C[u]=i[u])}return C},Y3.apply(this,arguments)},Q5=Mg.distance,q5=.05,e8={stroke:"#000",strokeOpacity:.8,lineWidth:2,fillOpacity:1,fill:"#fff"},t8=function(C){GU(i,C);function i(a){return C.call(this,a)||this}return i.prototype.getDefaultCfgs=function(){return{type:"both",trigger:"mousemove",r:60,delegateStyle:(0,Nn.clone)(e8),showLabel:"edge",scaleRBy:"wheel"}},i.prototype.getEvents=function(){var a;switch(this.get("trigger")){case"click":a={click:"filter"};break;case"drag":a={click:"createDelegate"};break;default:a={mousemove:"filter"};break}return a},i.prototype.init=function(){var a=this,l=a.get("showLabel"),u=l==="node"||l==="both",E=l==="edge"||l==="both";a.set("showNodeLabel",u),a.set("showEdgeLabel",E);var P=a.get("shouldShow");P||a.set("shouldShow",function(){return!0})},i.prototype.createDelegate=function(a){var l=this,u=l.get("delegate");(!u||u.destroyed)&&(l.filter(a),u=l.get("delegate"),u.on("dragstart",function(E){}),u.on("drag",function(E){l.filter(E)}),this.get("scaleRBy")==="wheel"&&u.on("mousewheel",function(E){l.scaleRByWheel(E)}))},i.prototype.scaleRByWheel=function(a){var l=this;if(!(!a||!a.originalEvent)){a.preventDefault&&a.preventDefault();var u=l.get("graph"),E,P=l.get("delegate"),j=P?{x:P.attr("x"),y:P.attr("y")}:void 0,H=j||u.getPointByClient(a.clientX,a.clientY);a.originalEvent.wheelDelta<0?E=1-q5:E=1/(1-q5);var X=l.get("maxR"),ee=l.get("minR"),se=l.get("r");(se>(X||u.get("height"))&&E>1||se<(ee||u.get("height")*.05)&&E<1)&&(E=1),se*=E,l.set("r",se),l.filter(a)}},i.prototype.filter=function(a){var l=this,u=l.get("graph"),E=u.getNodes(),P={},j=l.get("r"),H=l.get("type"),X={x:a.x,y:a.y};l.updateDelegate(X,j);var ee=l.get("shouldShow"),se=l.get("vShapes");se&&se.forEach(function(Tt){Tt.remove(),Tt.destroy()}),se=[],E.forEach(function(Tt){var Dt=Tt.getModel(),Kt=Dt.x,gn=Dt.y;Q5({x:Kt,y:gn},X)<j&&(P[Dt.id]=Tt)});var Se=u.getEdges(),Re=[];Se.forEach(function(Tt){var Dt=Tt.getModel(),Kt=Dt.source,gn=Dt.target;ee(Dt)&&(H==="only-source"||H==="one"?P[Kt]&&!P[gn]&&Re.push(Tt):H==="only-target"||H==="one"?P[gn]&&!P[Kt]&&Re.push(Tt):H==="both"&&P[Kt]&&P[gn]&&Re.push(Tt))});var Be=l.get("showNodeLabel"),Ye=l.get("showEdgelabel"),ht=u.get("group");Re.forEach(function(Tt){var Dt=Tt.get("group").get("children");Dt.forEach(function(Kt){var gn=Kt.get("type"),bn=ht.addShape(gn,{attrs:Kt.attr()});se.push(bn),Be&&gn==="text"&&bn.set("visible",!0)})}),Object.keys(P).forEach(function(Tt){var Dt=P[Tt],Kt=Dt.get("group").clone();if(ht.add(Kt),se.push(Kt),Ye)for(var gn=Kt.get("children"),bn=0;bn<gn.length;bn++){var mn=gn[bn];mn.get("type")==="text"&&mn.set("visible",!0)}}),l.set("vShapes",se)},i.prototype.updateParams=function(a){var l=this,u=a.r,E=a.trigger,P=a.minR,j=a.maxR,H=a.scaleRBy,X=a.showLabel,ee=a.shouldShow;if(isNaN(a.r)||l.set("r",u),isNaN(j)||l.set("maxR",j),isNaN(P)||l.set("minR",P),(E==="mousemove"||E==="click")&&l.set("trigger",E),H==="wheel"||H==="unset"){l.set("scaleRBy",H),l.get("delegate").remove(),l.get("delegate").destroy();var se=l.get("dPercentText");se&&(se.remove(),se.destroy())}(X==="node"||X==="both")&&l.set("showNodeLabel",!0),(X==="edge"||X==="both")&&l.set("showEdgeLabel",!0),ee&&l.set("shouldShow",ee)},i.prototype.updateDelegate=function(a,l){var u=this,E=u.get("graph"),P=u.get("delegate");if(!P||P.destroyed){var j=E.get("group"),H=u.get("delegateStyle")||e8;P=j.addShape("circle",{attrs:Y3({r:l,x:a.x,y:a.y},H),name:"lens-shape",draggable:!0}),this.get("trigger")!=="drag"&&this.get("scaleRBy")==="wheel"&&P.on("mousewheel",function(X){u.scaleRByWheel(X)})}else P.attr({x:a.x,y:a.y,r:l});u.set("delegate",P)},i.prototype.clear=function(){var a=this,l=a.get("vShapes");l&&l.forEach(function(E){E.remove(),E.destroy()}),l=[],a.set("vShapes",l);var u=a.get("delegate");u&&!u.destroyed&&(u.remove(),u.destroy())},i.prototype.destroy=function(){this.clear()},i}(a_),n8=t8,r8=function(){var C=function(a,l){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,E){u.__proto__=E}||function(u,E){for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(u[P]=E[P])},C(a,l)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");C(i,a);function l(){this.constructor=i}i.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),a8=Mg.pointLineDistance,X3={stroke:"#FA8C16",lineWidth:1},J3=function(C){r8(i,C);function i(a){return C.call(this,a)||this}return i.prototype.getDefaultCfgs=function(){return{line:X3,itemAlignType:"center",tolerance:5,horizontalLines:{},verticalLines:{},alignLines:[]}},i.prototype.init=function(){},i.prototype.getEvents=function(){return{"node:dragstart":"onDragStart","node:drag":"onDrag","node:dragend":"onDragEnd"}},i.prototype.onDragStart=function(){this.initBoxLine()},i.prototype.onDrag=function(a){var l=a.item,u=l.get("delegateShape")||l,E=u.getBBox(),P=l.getModel(),j=P.x-E.x,H=P.y-E.y;this.show({x:E.minX+j,y:E.minY+H},{width:E.width,height:E.height})},i.prototype.onDragEnd=function(){this.destory()},i.prototype.initBoxLine=function(){var a=this._cfgs,l=a.horizontalLines,u=a.verticalLines,E=a.itemAlignType,P=this.get("graph"),j=P.getNodes();j.forEach(function(H){var X=H.getBBox(),ee=H.get("id");E===!0||E==="horizontal"?(l["".concat(ee,"tltr")]=[X.minX,X.minY,X.maxX,X.minY,H],l["".concat(ee,"lcrc")]=[X.minX,X.centerY,X.maxX,X.centerY,H],l["".concat(ee,"blbr")]=[X.minX,X.maxY,X.maxX,X.maxY,H]):E==="center"&&(l["".concat(ee,"lcrc")]=[X.minX,X.centerY,X.maxX,X.centerY,H]),E===!0||E==="vertical"?(u["".concat(ee,"tlbl")]=[X.minX,X.minY,X.minX,X.maxY,H],u["".concat(ee,"tcbc")]=[X.centerX,X.minY,X.centerX,X.maxY,H],u["".concat(ee,"trbr")]=[X.maxX,X.minY,X.maxX,X.maxY,H]):E==="center"&&(u["".concat(ee,"tcbc")]=[X.centerX,X.minY,X.centerX,X.maxY,H])})},i.prototype.show=function(a,l){var u=(0,Nn.mix)({},a);return this.itemAlign(a,l,u),a},i.prototype.itemAlign=function(a,l,u){var E=this,P=this._cfgs,j=P.horizontalLines,H=P.verticalLines,X=P.tolerance,ee={x:u.x+l.width/2,y:u.y},se={x:u.x+l.width/2,y:u.y+l.height/2},Se={x:u.x+l.width/2,y:u.y+l.height},Re={x:u.x,y:u.y+l.height/2},Be={x:u.x+l.width,y:u.y+l.height/2},Ye=[],ht=[],Tt=null;if(this.clearAlignLine(),(0,Nn.each)(j,function(Kt){Kt[4].isVisible&&(Ye.push(E.getLineDisObject(Kt,ee)),Ye.push(E.getLineDisObject(Kt,se)),Ye.push(E.getLineDisObject(Kt,Se)))}),(0,Nn.each)(H,function(Kt){Kt[4].isVisible&&(ht.push(E.getLineDisObject(Kt,Re)),ht.push(E.getLineDisObject(Kt,se)),ht.push(E.getLineDisObject(Kt,Be)))}),Ye.sort(function(Kt,gn){return Kt.dis-gn.dis}),ht.sort(function(Kt,gn){return Kt.dis-gn.dis}),Ye.length!==0&&Ye[0].dis<X){a.y=Ye[0].line[1]-Ye[0].point.y+u.y,Tt={type:"item",horizontals:[Ye[0]]};for(var Dt=1;Dt<3;Dt++)Ye[0].dis===Ye[Dt].dis&&Tt.horizontals.push(Ye[Dt])}if(ht.length!==0&&ht[0].dis<X){a.x=ht[0].line[0]-ht[0].point.x+u.x,Tt?Tt.verticals=[ht[0]]:Tt={type:"item",verticals:[ht[0]]};for(var Dt=1;Dt<3;Dt++)ht[0].dis===ht[Dt].dis&&Tt.verticals.push(ht[Dt])}Tt&&(Tt.bbox=l,this.addAlignLine(Tt))},i.prototype.addAlignLine=function(a){var l=a.bbox,u=a.type,E=a.horizontals,P=a.verticals,j=this._cfgs,H=j.line,X=j.alignLines,ee=this.get("graph"),se=ee.get("group");u==="item"&&(E&&(0,Nn.each)(E,function(Se){var Re=Se.line,Be=Se.point,Ye=(Re[0]+Re[2])/2,ht,Tt;Be.x<Ye?(ht=Be.x-l.width/2,Tt=Math.max(Re[0],Re[2])):(ht=Be.x+l.width/2,Tt=Math.min(Re[0],Re[2]));var Dt=(0,Nn.mix)({x1:ht,y1:Re[1],x2:Tt,y2:Re[1]},H),Kt=se.addShape("line",{attrs:Dt,capture:!1});X.push(Kt)}),P&&(0,Nn.each)(P,function(Se){var Re=Se.line,Be=Se.point,Ye=(Re[1]+Re[3])/2,ht,Tt;Be.y<Ye?(ht=Be.y-l.height/2,Tt=Math.max(Re[1],Re[3])):(ht=Be.y+l.height/2,Tt=Math.min(Re[1],Re[3]));var Dt=(0,Nn.mix)({x1:Re[0],y1:ht,x2:Re[0],y2:Tt},H),Kt=se.addShape("line",{attrs:Dt,capture:!1});X.push(Kt)}))},i.prototype.getLineDisObject=function(a,l){return{line:a,point:l,dis:a8(a,l)}},i.prototype.getContainer=function(){return this.get("container")},i.prototype.clearAlignLine=function(){var a=this._cfgs.alignLines;(0,Nn.each)(a,function(l){l.remove()}),a.length=0},i.prototype.destory=function(){var a=this._cfgs,l=a.horizontalLines,u=a.verticalLines,E=this.get("graph"),P=E.getNodes();P.forEach(function(j){var H=j.get("id");delete l["".concat(H,"tltr")],delete l["".concat(H,"lcrc")],delete l["".concat(H,"blbr")],delete u["".concat(H,"tlbl")],delete u["".concat(H,"tcbc")],delete u["".concat(H,"trbr")]}),this.clearAlignLine()},i}(a_),Q3=J3,i8=function(){var C=function(a,l){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,E){u.__proto__=E}||function(u,E){for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(u[P]=E[P])},C(a,l)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");C(i,a);function l(){this.constructor=i}i.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Ph=function(){return Ph=Object.assign||function(C){for(var i,a=1,l=arguments.length;a<l;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(C[u]=i[u])}return C},Ph.apply(this,arguments)},dC=["click","mouseenter"],$U=function(C){i8(i,C);function i(a){return C.call(this,a)||this}return i.prototype.getDefaultCfgs=function(){return{data:{},position:"top",padding:8,margin:8,offsetX:0,offsetY:0,layout:"horizontal",flipPage:!1,containerStyle:{},align:void 0,horiSep:8,vertiSep:8,filter:{enable:!1,trigger:"click"}}},i.prototype.init=function(){this.formatArray("padding"),this.formatArray("margin");var a=this.get("filter")||{},l=a.multiple;l&&a.trigger==="mouseenter"&&this.set("multiple",!1);var u=this.get("align");if(!u){var E=this.get("position").split("-");E.includes("left")&&(u="left"),E.includes("right")?u="right":u="center",this.set("align",u)}var P=this.get("graph"),j=P.get("container"),H=Hv(`<div class='g6-legend-container' style="position: absolute;"></div>`);j.appendChild(H),this.set("container",H);var X=this.render();Ep(H,this.getContainerPos(X)),this.bindEvents()},i.prototype.getContainerPos=function(a){a===void 0&&(a=[0,0]);var l=this,u=l.get("graph"),E=this.get("offsetX"),P=this.get("offsetY"),j=this.get("margin"),H=this.get("position").split("-"),X={top:0,right:1,bottom:2,left:3},ee=0,se=0,Se={left:(u.getWidth()-a[0])/2+ee,top:(u.getHeight()-a[1])/2+se};return H.forEach(function(Re){var Be=j[X[Re]],Ye=Re;switch(Re){case"top":Be+=se;break;case"left":Be+=ee;break;case"bottom":Be=u.getHeight()-a[1]-Be+se,Ye="top";break;default:Be=u.getWidth()-a[0]-Be+ee,Ye="left";break}Se[Ye]=Be}),Se.top+=P+u.getContainer().offsetTop,Se.left+=E+u.getContainer().offsetLeft,Object.keys(Se).forEach(function(Re){Se[Re]="".concat(Se[Re],"px")}),Se},i.prototype.bindEvents=function(){var a=this,l=a.get("filter");if(!(!l||!l.enable)){var u=l.trigger||"click";dC.includes(u)||(console.warn("Trigger for legend filterling must be 'click' or 'mouseenter', 'click' will take effect by default."),u="click");var E=a.get("legendCanvas");u==="mouseenter"?(E.on("node-container:mouseenter",function(P){return a.filterData(P)}),E.on("node-container:mouseleave",function(P){a.clearFilter(),a.clearActiveLegend()})):(E.on("node-container:click",function(P){return a.filterData(P)}),E.on("click",function(P){P.target&&P.target.isCanvas&&P.target.isCanvas()&&(a.clearFilter(),a.clearActiveLegend())}))}},i.prototype.changeData=function(a){this.set("data",a);var l=this.render();Ep(this.get("container"),this.getContainerPos(l))},i.prototype.activateLegend=function(a){var l=this.get("filter"),u=l==null?void 0:l.multiple;u||this.clearActiveLegend();var E=a.get("parent");E.get("active")?(E.set("active",!1),this.findLegendItemsByState("active").length&&E.set("inactive",!0)):(E.set("inactive",!1),E.set("active",!0)),this.findLegendItemsByState("active").length?this.findLegendItemsByState("active","all",!1).forEach(function(se){se.set("inactive",!0)}):this.clearActiveLegend();var P=(l==null?void 0:l.legendStateStyles)||{},j=(P==null?void 0:P.inactive)||{opacity:.5,"text-shape":{opacity:.5}},H=j["text-shape"]||{};this.findLegendItemsByState("inactive").forEach(function(se){var Se=se.get("children"),Re=Se[0],Be=Se[1];Re.attr(Ph(Ph({},Re.get("oriAttrs")),j)),Be.attr(Ph(Ph({},Be.get("oriAttrs")),H))});var X=(P==null?void 0:P.active)||{stroke:"#000",lineWidth:2,"text-shape":{fontWeight:"bold"}},ee=X["text-shape"]||{};this.findLegendItemsByState("active").forEach(function(se){var Se=se.get("children"),Re=Se[0],Be=Se[1];Re.attr(Ph(Ph({},Re.get("oriAttrs")),X)),Be.attr(Ph(Ph({},Be.get("oriAttrs")),ee))})},i.prototype.findLegendItemsByState=function(a,l,u){l===void 0&&(l="all"),u===void 0&&(u=!0);var E=this.get("legendCanvas").find(function(H){return H.get("name")==="root"}),P=E.find(function(H){return H.get("name")==="node-group"}),j=E.find(function(H){return H.get("name")==="edge-group"});return l==="node"?P.get("children").filter(function(H){return!!H.get(a)===u}):l==="edge"?j.get("children").filter(function(H){return!!H.get(a)===u}):P.get("children").filter(function(H){return!!H.get(a)===u}).concat(j.get("children").filter(function(H){return!!H.get(a)===u}))},i.prototype.clearActiveLegend=function(){var a=this.get("legendCanvas"),l=a.find(function(E){return E.get("name")==="root"}),u=[l.find(function(E){return E.get("name")==="node-group"}),l.find(function(E){return E.get("name")==="edge-group"})];u.forEach(function(E){E.get("children").forEach(function(P){P.set("active",!1),P.set("inactive",!1);var j=P.get("children"),H=j[0],X=j[1];H.attr(H.get("oriAttrs")),X.attr(X.get("oriAttrs"))})})},i.prototype.filterData=function(a){var l=this.get("filter"),u=l==null?void 0:l.filterFunctions;if(!(!l||!u)){var E=this.get("legendCanvas"),P=this.get("graph"),j=l.graphActiveState||"active",H=l.graphInactiveState||"inactive",X=l.multiple;this.clearFilter(),X||this.clearActiveLegend(),this.activateLegend(a.target);var ee=E.find(function(Tt){return Tt.get("name")==="root"}),se=ee.find(function(Tt){return Tt.get("name")==="node-group"}),Se=ee.find(function(Tt){return Tt.get("name")==="edge-group"}),Re=se.get("children").filter(function(Tt){return Tt.get("active")}),Be=Se.get("children").filter(function(Tt){return Tt.get("active")}),Ye=0,ht=["getNodes","getEdges"];ht.forEach(function(Tt){P[Tt]().forEach(function(Dt){var Kt=!1,gn=Tt==="getNodes"?Re:Be;gn.forEach(function(bn){var mn=u[bn.get("id")];Kt=Kt||mn(Dt.getModel())}),Kt?(P.setItemState(Dt,H,!1),P.setItemState(Dt,j,!0),Ye++):(P.setItemState(Dt,j,!1),P.setItemState(Dt,H,!0))})}),Ye||ht.forEach(function(Tt){P[Tt]().forEach(function(Dt){P.clearItemStates(Dt,[H])})})}},i.prototype.clearFilter=function(){var a=this.get("graph"),l=this.get("filter");if(!!l){var u=l.graphActiveState||"active",E=l.graphInactiveState||"inactive";a.getNodes().forEach(function(P){a.clearItemStates(P,[u,E])}),a.getEdges().forEach(function(P){a.clearItemStates(P,[u,E])})}},i.prototype.render=function(){var a=this;this.processData();var l=this.get("legendCanvas");l?l.clear():l=new v1({container:this.get("container"),width:200,height:200});var u=l.addGroup({name:"root"}),E=u.addGroup({name:"node-group"}),P=u.addGroup({name:"edge-group"});this.set("legendCanvas",l);var j=this.get("itemsData"),H=["nodes","edges"],X=[E,P];H.forEach(function(Si,jo){j[Si].forEach(function(ro){var hi,io=X[jo].addGroup({id:ro.id,name:"node-container"}),oo,Ki=ro.type,Ji=a.getShapeSize(ro),Ao=Ji.width,ks=Ji.height,Lo=Ji.r,Is=a.getStyle(Si.substr(0,4),ro);switch(ro.type){case"circle":oo={r:Lo,x:0,y:0};break;case"rect":oo={width:Ao,height:ks,x:-Ao/2,y:-ks/2};break;case"ellipse":oo={rx:Ao,ry:ks,x:0,y:0},Ki="ellipse";break;case"line":oo={x1:-Ao/2,y1:0,x2:Ao/2,y2:0},Ki="line";break;case"quadratic":oo={path:[["M",-Ao/2,0],["Q",0,Ao/2,Ao/2,0]]},Ki="path";break;case"cubic":oo={path:[["M",-Ao/2,0],["C",-Ao/6,Ao/2,Ao/6,-Ao/2,Ao/2,0]]},Ki="path";break;case"diamond":oo={path:[["M",0,-ks],["L",Ao,0],["L",0,ks],["L",-Ao,0],["Z"]]},Ki="path";break;case"triangle":oo={path:[["M",-Ao,ks],["L",0,-ks],["L",Ao,ks],["Z"]]},Ki="path";break;case"star":oo={path:Mg.getStarPath(Lo*3,Lo*1.2)},Ki="path";break;default:oo={r:Lo,x:0,y:0};break}var Cl=io.addShape(Ki,{attrs:Ph(Ph({},oo),Is),name:"".concat(ro.type,"-node-keyShape"),oriAttrs:Ph({opacity:1},Is)});if(ro.label){var il=Cl.getBBox(),Pl=((hi=ro.labelCfg)===null||hi===void 0?void 0:hi.style)||{},lc=Ph({textAlign:"begin",fontSize:12,textBaseline:"middle",fill:"#000",opacity:1,fontWeight:"normal"},Pl);io.addShape("text",{attrs:Ph({x:il.maxX+4,y:0,text:ro.label},lc),className:"legend-label",name:"".concat(ro.type,"-node-text"),oriAttrs:lc})}})});var ee=this.get("padding"),se,Se=u.find(function(Si){return Si.get("name")==="title-container"}),Re={height:0,maxY:0,width:0};if(this.get("title")){Se||(Se=u.addGroup({name:"title-container"}));var Be={fontSize:20,fontFamily:"Arial",fontWeight:300,textBaseline:"top",textAlign:"center",fill:"#000",x:0,y:ee[0]},Ye=this.get("titleConfig")||{},ht=Object.assign(Be,Ye.style||{});se=Se.addShape("text",{attrs:Ph({text:this.get("title")},ht)}),Re=Se.getCanvasBBox(),Se.setMatrix([1,0,0,0,1,0,Ye.offsetX,Ye.offsetY,1])}this.layoutItems();var Tt=u.getCanvasBBox(),Dt=E.getCanvasBBox(),Kt=Dt.minX<0?Math.abs(Dt.minX)+ee[3]:ee[3],gn=Re.maxY<Dt.minY?Math.abs(Re.maxY-Dt.minY)+ee[0]:Re.maxY+ee[0],bn=[1,0,0,0,1,0,Kt,gn,1];E.setMatrix(bn),Tt=u.getCanvasBBox();var mn=[Tt.minX+Tt.width+ee[1],Tt.minY+Tt.height+ee[2]];if(se){var Ye=Ph({position:"center",offsetX:0,offsetY:0},this.get("titleConfig"));Re=Se.getCanvasBBox();var kn=Se.getMatrix()||[1,0,0,0,1,0,0,0,1];Ye.position==="center"?kn[6]=mn[0]/2+Ye.offsetX:Ye.position==="right"?(kn[6]=mn[0]-ee[3]+Ye.offsetX,se.attr({textAlign:"right"})):(kn[6]=ee[3]+Ye.offsetX,se.attr({textAlign:"left"})),Se.setMatrix(kn),Re=Se.getCanvasBBox(),Kt=Dt.minX<0?Math.abs(Dt.minX)+ee[3]:ee[3],gn=Dt.minY<Re.maxY?Math.abs(Re.maxY-Dt.minY)+ee[0]:Re.maxY+ee[0],bn=[1,0,0,0,1,0,Kt,gn,1],E.setMatrix(bn);var sr=[1,0,0,0,1,0,Kt,gn,1];this.get("layout")==="vertical"?sr[6]+=Dt.maxX+this.get("horiSep"):sr[7]+=Dt.maxY+this.get("vertiSep"),P.setMatrix(sr)}else{Dt=E.getCanvasBBox();var yr=[1,0,0,0,1,0,0,0,1];this.get("layout")==="vertical"?yr[6]+=bn[6]+Dt.maxX+this.get("horiSep"):yr[7]+=bn[7]+Dt.maxY+this.get("vertiSep"),P.setMatrix(yr)}Tt=u.getCanvasBBox(),Dt=E.getCanvasBBox(),bn=E.getMatrix()||[1,0,0,0,1,0,0,0,1];var jr=P.getMatrix()||[1,0,0,0,1,0,0,0,1],zr=P.getCanvasBBox();mn=[Math.max(Dt.width+bn[6],zr.width+jr[6])+ee[1],Math.max(Dt.height+bn[7],zr.height+jr[7])+ee[2]],l.changeSize(mn[0],mn[1]);var va=this.get("containerStyle"),za=u.getMatrix()||[1,0,0,0,1,0,0,0,1],xi=Mg.invertMatrix({x:0,y:0},za),Di=u.addShape("rect",{attrs:Ph({x:xi.x+(va.lineWidth||1),y:xi.y+(va.lineWidth||1),width:mn[0]-2*(va.lineWidth||1),height:mn[1]-2*(va.lineWidth||1),fill:"#f00",stroke:"#000",lineWidth:1,opacity:.5},va),name:"legend-back-rect",capture:!1});return Di.toBack(),mn},i.prototype.layoutItems=function(){var a=this.get("legendCanvas"),l=this.get("horiSep"),u=this.get("vertiSep"),E=this.get("layout"),P=this.get("align"),j=[0,0],H=a.find(function(gn){return gn.get("name")==="root"}),X=H.find(function(gn){return gn.get("name")==="node-group"}),ee=H.find(function(gn){return gn.get("name")==="edge-group"}),se={min:0,max:-Infinity},Se=-Infinity;X.get("children").forEach(function(gn,bn){bn===0&&(se.min=j[0]);var mn=gn.get("children")[0],kn=gn.getCanvasBBox(),sr=mn.getBBox(),yr=sr.width,jr=sr.height,zr=0,va=0,za=0;E==="vertical"?(va=j[1],za=j[0]+yr/2,j[0]=za+kn.height+u,zr=kn.maxX+va+yr/2):(va=j[0]+yr/2,za=j[1],j[0]=va+kn.width+l,zr=kn.maxY+za+jr/2),j[0]>se.max&&(se.max=j[0]),zr>Se&&(Se=zr),gn.setMatrix([1,0,0,0,1,0,va,za,1])});var Re=se.max-se.min,Be={min:0,max:-Infinity},Ye=X.getCanvasBBox();j[0]=0,j[1]=E==="vertical"?Ye.maxX+l:Ye.maxY+u,ee.get("children").forEach(function(gn,bn){bn===0&&(Be.min=j[0]);var mn=gn.get("children")[0],kn=gn.getCanvasBBox(),sr=mn.getBBox(),yr=sr.width,jr=sr.height,zr=0,va=0;E==="vertical"?(zr=j[1],va=j[0],j[0]=va+kn.height+u,gn.setMatrix([1,0,0,0,1,0,0,va+jr/2,1])):(zr=j[0],va=j[1],j[0]=zr+kn.width+l,gn.setMatrix([1,0,0,0,1,0,zr+yr/2,0,1])),j[0]>Be.max&&(Be.max=j[0])});var ht=Be.max-Be.min;if(P&&P!==""&&P!=="left"){var Tt=Re-ht,Dt=P==="center"?Math.abs(Tt)/2:Math.abs(Tt),Kt=Tt<0?X:ee;Kt.get("children").forEach(function(gn){var bn=gn.getMatrix()||[1,0,0,0,1,0,0,0,1];E==="vertical"?bn[7]+=Dt:bn[6]+=Dt,gn.setMatrix(bn)})}},i.prototype.processData=function(){var a=this.get("data"),l={nodes:[],edges:[]};a.nodes&&(a.nodes.sort(function(u,E){return u.order-E.order}),a.nodes.forEach(function(u){var E,P,j,H,X,ee=u.size||[((E=u.style)===null||E===void 0?void 0:E.width)||((P=u.style)===null||P===void 0?void 0:P.r)||8,((j=u.style)===null||j===void 0?void 0:j.height)||((H=u.style)===null||H===void 0?void 0:H.r)||8],se=((X=u.labelCfg)===null||X===void 0?void 0:X.style)||{};l.nodes.push({id:u.id||(0,Nn.uniqueId)(),type:u.type||"circle",style:Ph({},u.style),order:u.order,label:u.label,itemType:"node",size:ee,labelCfg:{position:"right",style:Ph({fontFamily:"Arial"},se)}})})),a.edges&&(a.edges.sort(function(u,E){return u.order-E.order}),a.edges.forEach(function(u){var E,P,j=u.type||"line";u.type==="cubic-horizontal"&&(j="cubic");var H=((E=u.labelCfg)===null||E===void 0?void 0:E.style)||{},X=u.size||[((P=u.style)===null||P===void 0?void 0:P.width)||8,1];l.edges.push({id:u.id||(0,Nn.uniqueId)(),type:j,size:X,style:Ph({lineWidth:(0,Nn.isArray)(X)?X[1]:1},u.style),order:u.order,label:u.label,itemType:"edge",labelCfg:{position:"right",style:Ph({fontFamily:"Arial"},H)}})})),this.set("itemsData",l)},i.prototype.getContainer=function(){return this.get("container")},i.prototype.formatArray=function(a){var l=this.get(a);if((0,Nn.isNumber)(l))this.set(a,[l,l,l,l]);else if((0,Nn.isArray)(l))switch(l.length){case 0:this.set(a,[0,0,0,0]);break;case 1:this.set(a,[l[0],l[0],l[0],l[0]]);break;case 2:this.set(a,[l[0],l[1],l[0],l[1]]);break;case 3:this.set(a,[l[0],l[1],l[2],l[1]]);break;default:break}return this.get(a)},i.prototype.getShapeSize=function(a){var l,u,E;return a.size&&((0,Nn.isArray)(a.size)?(l=a.size[0],u=a.size[1]||a.size[0],E=a.size[0]/2):(0,Nn.isNumber)(a.size)&&(l=a.size,u=a.size,E=a.size/2)),a.style&&(a.style.width&&(l=a.style.width),a.style.height&&(u=a.style.height),a.style.r&&(E=a.style.r)),E||(E=5),l||(l=E),u||(u=E),{width:l,height:u,r:E}},i.prototype.getStyle=function(a,l){var u=a==="node"?{fill:"#ccc",lineWidth:0}:{stroke:"#000",lineWidth:1};return Ph(Ph({},u),l.style||{})},i.prototype.destroy=function(){var a=this.get("legendCanvas");a==null||a.destroy();var l=this.get("graph"),u=l.get("container"),E=this.get("container");u.removeChild(E)},i}(a_),o8=$U,s8=function(){var C=function(a,l){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,E){u.__proto__=E}||function(u,E){for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(u[P]=E[P])},C(a,l)};return function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");C(i,a);function l(){this.constructor=i}i.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),M0=function(){return M0=Object.assign||function(C){for(var i,a=1,l=arguments.length;a<l;a++){i=arguments[a];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(C[u]=i[u])}return C},M0.apply(this,arguments)},FR=function(C,i){var a={};for(var l in C)Object.prototype.hasOwnProperty.call(C,l)&&i.indexOf(l)<0&&(a[l]=C[l]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(C);u<l.length;u++)i.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(C,l[u])&&(a[l[u]]=C[l[u]]);return a};typeof document!="undefined"&&mR()(`
|
||
.g6-annotation-container {
|
||
background-color: rgba(255, 255, 255, 0.3);
|
||
padding: 8px;
|
||
}
|
||
.g6-annotation-wrapper {
|
||
background-color: #fff;
|
||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.85);
|
||
}
|
||
.g6-annotation-header-wapper {
|
||
height: fit-content;
|
||
width: 100%;
|
||
background-color: #5B8FF9;
|
||
display: inline-flex;
|
||
cursor: move;
|
||
}
|
||
.g6-annotation-title {
|
||
margin: 4px 40px 4px 8px;
|
||
cursor: text;
|
||
min-width: 32px;
|
||
}
|
||
.g6-annotation-collapse {
|
||
margin: 4px;
|
||
cursor: pointer;
|
||
}
|
||
.g6-annotation-expand {
|
||
margin: 4px;
|
||
cursor: pointer;
|
||
}
|
||
.g6-annotation-close {
|
||
margin: 4px 8px 4px 0;
|
||
cursor: pointer;
|
||
}
|
||
.g6-annotation-content {
|
||
padding: 8px;
|
||
width: fit-content;
|
||
cursor: text;
|
||
word-break: break-all;
|
||
min-width: 32px;
|
||
}
|
||
.g6-annotation-title-input-wrapper {
|
||
margin: 4px 40px 4px 8px;
|
||
}
|
||
.g6-annotation-content-input {
|
||
height: 100%;
|
||
word-break: break-all;
|
||
}
|
||
.g6-annotation-content-input-wrapper {
|
||
margin: 8px;
|
||
height: 100%;
|
||
}
|
||
`);var x1="canvas-annotation",q3=function(C){s8(i,C);function i(a){return C.call(this,a)||this}return i.prototype.getDefaultCfgs=function(){return{trigger:"click",editable:!0,itemHighlightState:"highlight",linkHighlightStyle:{shadowColor:"#5B8FF9",shadowBlur:10},cardCfg:{minHeight:60,width:"fit-content",height:"fit-content",collapseType:"minimize",closeType:"hide",borderRadius:5,maxTitleLength:20}}},i.prototype.getEvents=function(){var a={viewportchange:"updateLinks",afterlayout:"updateLinks",aftergraphrefreshposition:"updateLinks",afterupdateitem:"updateLink",afterchangedata:"onGraphDataChange",afteritemvisibilitychange:"onGraphItemVisibilityChange"};switch(this.get("trigger")){case"click":a=M0(M0({},a),{"node:click":"showAnnotation","edge:click":"showAnnotation"})}return a},i.prototype.getDOMContent=function(a){if(!this.destroyed){var l=a.collapsed,u=a.maxWidth,E=a.title,P=E===void 0?"":E,j=a.content,H=j===void 0?"":j,X=a.borderRadius,ee=X===void 0?5:X,se=l?"<p class='g6-annotation-expand'>+</p>":"<p class='g6-annotation-collapse'>-</p>",Se=l?"":" <p class='g6-annotation-content'>".concat(H,"</p>"),Re="<p class='g6-annotation-close'>x</p>",Be=l?"".concat(ee,"px"):"".concat(ee,"px ").concat(ee,"px 0 0");return'<div class="g6-annotation-wrapper" style="border-radius: '.concat(ee,"px; max-width: ").concat(u,`px">
|
||
<div
|
||
class="g6-annotation-header-wapper"
|
||
style="border-radius: `).concat(Be,`;"
|
||
>
|
||
<h4 class='g6-annotation-title'>`).concat(P,`</h4>
|
||
`).concat(se,`
|
||
`).concat(Re,`
|
||
</div>
|
||
`).concat(Se,`
|
||
</div>`)}},i.prototype.init=function(){var a=this;if(!a.destroyed){var l=a.get("graph"),u=l.getContainer(),E=a.get("container"),P=this.get("containerCfg");P?(E=this.createContainer(),u.appendChild(E)):E=u,this.set("container",E);var j=u.getBoundingClientRect(),H=new v1({container:u,width:j.right-j.left,height:j.bottom-j.top});Ep(H.get("el"),{position:"absolute",top:0,left:0,pointerEvents:"none"}),window.addEventListener("resize",(0,Nn.debounce)(function(){return a.resizeCanvas(a)},100));var X=H.addGroup({id:"annotation-link-group"});a.set("linkGroup",X),a.set("canvas",H),a.get("getTitle")||a.set("getTitle",function(se){var Se,Re=((Se=se==null?void 0:se.getModel)===null||Se===void 0?void 0:Se.call(se))||{},Be=Re.label,Ye=Re.id;return Be||Ye||"-"}),a.get("getContent")||a.set("getContent",function(se){var Se,Re;if(!se)return"-";var Be=((Se=se.getModel)===null||Se===void 0?void 0:Se.call(se))||{},Ye=Be.label,ht=Be.id,Tt=(Re=se.getType)===null||Re===void 0?void 0:Re.call(se),Dt=Tt?"".concat(Tt,": "):"";return"".concat(Dt).concat(Ye||ht||"")});var ee=a.get("defaultData");ee&&this.readData(ee)}},i.prototype.createContainer=function(){var a=this;if(!this.destroyed){var l=this.get("containerCfg"),u=this.get("graph"),E=u.getContainer(),P=E.getBoundingClientRect(),j=P.left,H=P.right,X=P.top,ee=P.bottom,se=ee-X,Se=H-j,Re=l.position,Be=Re===void 0?"top":Re,Ye=l.offsetX,ht=Ye===void 0?0:Ye,Tt=l.offsetY,Dt=Tt===void 0?0:Tt,Kt=FR(l,["position","offsetX","offsetY"]),gn=l.height,bn=gn===void 0?"fit-content":gn,mn=l.width,kn=mn===void 0?u.getWidth():mn;bn==="100%"&&(bn=se),kn==="100%"&&(kn=Se);var sr="unset",yr="unset",jr={};switch(Be){case"right":sr="".concat(se,"px"),jr={top:0,right:0},jr.right+=j+ht,jr.top+=X+Dt;break;case"bottom":yr="".concat(Se,"px"),jr={bottom:0,left:0},jr.left+=j+ht,jr.bottom+=X+Dt;break;case"top":yr="".concat(Se,"px");case"left":sr="".concat(se,"px");default:jr={top:0,left:0},jr.left+=j+ht,jr.top+=X+Dt;break}Object.keys(jr).forEach(function(va){jr[va]="".concat(jr[va],"px")});var zr=Hv("<div class='".concat(l.className," g6-annotation-container'></div>"));return Ep(zr,M0(M0({position:"absolute",display:Be==="top"||Be==="bottom"?"inline-flex":"unset",width:(0,Nn.isNumber)(kn)?"".concat(kn,"px"):kn,height:(0,Nn.isNumber)(bn)?"".concat(bn,"px"):bn,maxHeight:sr,maxWidth:yr,overflow:"scroll"},jr),Kt)),E.appendChild(zr),zr.addEventListener("scroll",function(va){a.updateLinks()}),zr}},i.prototype.resizeCanvas=function(a){clearTimeout(a.resizeTimer),a.resizeTimer=setTimeout(function(){if(!(!a||a.destroyed)){var l=a.get("container").getBoundingClientRect(),u=l.right-l.left,E=l.bottom-l.top;a.get("canvas").changeSize(u,E),a.updateOutsideCards(a)}},250)},i.prototype.updateOutsideCards=function(a){var l=a||this,u=l.get("cardInfoMap")||{},E=l.get("graph"),P=E.getPointByCanvas(0,0),j=E.getPointByCanvas(E.getWidth(),E.getHeight()),H=E.getClientByPoint(P.x,P.y),X=H.x,ee=H.y,se=E.getClientByPoint(j.x,j.y),Se=se.x,Re=se.y;Object.values(u).forEach(function(Be){var Ye=Be.card;if(!!Ye){var ht=Ye.style,Tt=pC(ht.left),Dt=pC(ht.top),Kt=Ye.getBoundingClientRect(),gn=Kt.width,bn=Kt.height,mn=Tt,kn=Dt;Tt+gn>Se-X&&(mn=Se-X-gn),Tt<0&&(mn=0),Dt+bn>Re-ee&&(kn=Re-ee-bn),Dt<0&&(kn=0),Ep(Ye,{left:"".concat(mn,"px"),top:"".concat(kn,"px")})}}),l.updateLinks()},i.prototype.showAnnotation=function(a){if(!this.destroyed){var l=a.item;this.toggleAnnotation(l)}},i.prototype.hideCards=function(){var a=this;if(!a.destroyed){var l=a.get("cardInfoMap")||{};Object.keys(l).forEach(function(u){a.hideCard(u)})}},i.prototype.toggleAnnotation=function(a,l){var u,E;l===void 0&&(l={});var P=this;if(!P.destroyed){var j=P.get("cardInfoMap")||{},H=P.get("graph"),X=P.get("container"),ee=P.get("containerCfg"),se=Object.assign({},P.get("cardCfg")||{},l),Se=se.minHeight,Re=se.minWidth,Be=se.width,Ye=se.height,ht=se.collapsed,Tt=ht===void 0?!1:ht,Dt=se.x,Kt=se.y,gn=se.title,bn=se.content,mn=se.maxTitleLength,kn=se.defaultBegin,sr=FR(se,["minHeight","minWidth","width","height","collapsed","x","y","title","content","maxTitleLength","defaultBegin"]),yr=P.get("linkGroup"),jr=this.get("rows")||[[]],zr=(u=a.isCanvas)===null||u===void 0?void 0:u.call(a),va=zr?x1:a.getID(),za=j[va]||{},xi=za.card,Di=za.link,Si=za.x,jo=za.y,ro=za.title,hi=za.content,io=this.get("getTitle"),oo=this.get("getContent"),Ki=this.get("getContentPlaceholder")||function(){return""},Ji=this.get("getTitlePlaceHolder")||function(){return""},Ao=Ki(a),ks=Ji(a),Lo=Hv(this.getDOMContent(M0({itemId:va,collapsed:Tt,title:((E=ro||gn||(io==null?void 0:io(a)))===null||E===void 0?void 0:E.substr(0,mn))||ks,content:hi||bn||(oo==null?void 0:oo(a))||Ao},sr))),Is=(0,Nn.isNumber)(Se)?"".concat(Se,"px"):Se;Ep(Lo,{minHeight:Tt?"unset":Is,minWidth:(0,Nn.isNumber)(Re)?"".concat(Re,"px"):Re,height:Ye,width:Be});var Cl=!!xi;Cl?(Di==null||Di.remove(!0),X.replaceChild(Lo,xi)):X.appendChild(Lo);var il;if(!ee){if(il=X.getBoundingClientRect()||{},Dt!==void 0&&Kt!==void 0)Si=Dt,jo=Kt;else if(!Cl&&!zr){var Pl=il.top,lc=kn||{},Mc=lc.left,dp=lc.right,zf=dp===void 0?16:dp,gv=lc.top,Wf=gv===void 0?8:gv,cu=lc.bottom,kf=zf,af=Wf;isNaN(Mc)||(kf=X.scrollWidth-Mc),isNaN(cu)||(af=X.scrollHeight-cu);var lf=(0,Nn.isNumber)(Re)?Re:100;Si=X.scrollWidth-Lo.scrollWidth-(jr.length-1)*lf-kf;var gu=jr[jr.length-1],Vc=(gu[gu.length-1]||{}).bbox;jo=(Vc==null?void 0:Vc.bottom)-Pl||af}Ep(Lo,{position:"absolute",left:"".concat(Si,"px"),top:"".concat(jo,"px"),cusor:ee?"unset":"move"})}this.bindListener(Lo,va);var Wc=Lo.getBoundingClientRect();if(!zr){var Mu=IM(a,Wc,H,this.get("canvas")),Rc=this.get("linkStyle");Di=yr.addShape("path",{attrs:M0({lineWidth:1,lineDash:[5,5],stroke:"#ccc",path:Mu},Rc)})}if(j[va]=M0(M0({},j[va]||{}),{id:va,collapsed:Tt,card:Lo,link:Di,x:Si,y:jo,cardBBox:Wc,content:hi||bn,title:ro||gn,contentPlaceholder:Ao,titlePlaceholder:ks,isCanvas:zr}),P.set("cardInfoMap",j),ee)this.updateCardPositionsInConatainer(),this.updateLinks();else{var Nl=!isNaN(Dt)&&!isNaN(Kt);if(!Cl&&!zr&&!Nl){var Oc=il.bottom,au=Oc===void 0?0:Oc,Pl=il.top;jr[jr.length-1].push({id:va,bbox:Wc}),Wc.top>au-Pl-Wc.height-16&&jr.push([]),this.set("rows",jr)}}this.updateCardSize(va);var ef=this.get("onAnnotationChange");ef==null||ef(j[va],Cl?"update":"create")}},i.prototype.updateCardPositionsInConatainer=function(){if(!this.destroyed){var a=this.get("cardInfoMap");if(!!a){var l=this.get("container"),u=this.get("containerCfg").position,E=l.getBoundingClientRect().width,P=getComputedStyle(l),j=pC(P.paddingLeft)+pC(P.paddingRight);E-=j,Object.values(a).forEach(function(H){var X=H.card,ee=X.getBoundingClientRect().width;switch(u){case"right":Ep(X,{marginLeft:E?"".concat(E-ee,"px"):"0px"});break;case"top":case"bottom":Ep(X,{marginLeft:"8px"});default:break}})}}},i.prototype.handleExpandCollapseCard=function(a){if(!this.destroyed){var l=this.get("graph"),u=this.get("cardInfoMap");if(!!u){var E=u[a].collapsed,P=l.findById(a);if(!!P){var j=this.get("cardCfg").collapseType;j==="hide"&&!E?this.hideCard(a):this.toggleAnnotation(P,{collapsed:!E}),u[a]=M0(M0({},u[a]),{collapsed:!E})}}}},i.prototype.hideCard=function(a){if(!this.destroyed){var l=this.get("cardInfoMap");if(!(!l||!l[a])){var u=l[a],E=u.card,P=u.link;Ep(E,{display:"none"}),P==null||P.hide();var j=this.get("onAnnotationChange");j(l[a],"hide")}}},i.prototype.removeCard=function(a){if(!this.destroyed){var l=this.get("cardInfoMap");if(!!l){var u=l[a],E=u.card,P=u.link,j=this.get("container");j.removeChild(E),P==null||P.remove(!0),delete l[a];var H=this.get("onAnnotationChange");H(u,"remove")}}},i.prototype.bindListener=function(a,l){var u=this;if(!this.destroyed){a.addEventListener("mousemove",function(H){var X;if(H.target.className==="g6-annotation-collapse"?X="collapse":H.target.className==="g6-annotation-expand"?X="expand":H.target.className==="g6-annotation-close"&&(X="close"),X){var ee=u.get("cardCfg").onMouseEnterIcon,se=ee===void 0?function(){}:ee;se(H,l,X)}}),a.addEventListener("mouseout",function(H){var X;if(H.target.className==="g6-annotation-collapse"?X="collapse":H.target.className==="g6-annotation-expand"?X="expand":H.target.className==="g6-annotation-close"&&(X="close"),X){var ee=u.get("cardCfg").onMouseLeaveIcon,se=ee===void 0?function(){}:ee;se(H,l,X)}}),a.addEventListener("mouseenter",function(H){var X=u.get("cardInfoMap");if(!!X){var ee=u.get("graph"),se=ee.findById(l);if(se){var Se=u.get("itemHighlightState");ee.setItemState(se,Se,!0)}var Re=X[l].link;if(Re){var Be=u.get("linkHighlightStyle")||{};Re.attr(Be)}}}),a.addEventListener("mouseleave",function(H){var X=u.get("cardInfoMap");if(!!X){var ee=u.get("graph"),se=ee.findById(l);if(se){var Se=u.get("itemHighlightState");ee.setItemState(se,Se,!1)}var Re=X[l].link;if(Re){var Be=u.get("linkHighlightStyle")||{};Object.keys(Be).forEach(function(ht){Re.attr(ht,void 0),Re.attr(ht,void 0)});var Ye=u.get("linkStyle");Re.attr(Ye)}}}),a.addEventListener("click",function(H){var X=(u.get("cardCfg")||{}).onClickIcon;if(H.target.className==="g6-annotation-collapse"||H.target.className==="g6-annotation-expand"){var ee=u.get("cardCfg").collapseType;ee==="hide"?u.hideCard(l):u.handleExpandCollapseCard(l),X==null||X(H,l,H.target.className==="g6-annotation-collapse"?"collapse":"expand")}else if(H.target.className==="g6-annotation-close"){var se=u.get("cardCfg").closeType;se==="remove"?u.removeCard(l):u.hideCard(l),X==null||X(H,l,"close")}});var E=this.get("editable");E&&a.addEventListener("dblclick",function(H){var X=u.get("cardInfoMap"),ee=(u.get("cardCfg")||{}).maxTitleLength,se=ee===void 0?20:ee;if(!!X){var Se=H.target,Re=Se.className;if(!(Re!=="g6-annotation-title"&&Re!=="g6-annotation-content")){var Be=Re==="g6-annotation-title"?Se.getBoundingClientRect():Se.parentNode.getBoundingClientRect(),Ye=Be.width,ht=Be.height,Tt=getComputedStyle(Se),Dt=Re==="g6-annotation-title"?"input":"textarea",Kt=Hv("<".concat(Dt,' class="').concat(Re,'-input" type="textarea" style="width:').concat(Ye,"px; height: ").concat(ht,'px; min-width: 16px;"/>')),gn=Hv('<div class="'.concat(Re,'-input-wrapper" style="width: ').concat(Ye,"px; height: ").concat(ht,"px; min-width: 16px; margin-right: ").concat(Tt.marginRight,'" />'));gn.appendChild(Kt),Se.parentNode.replaceChild(gn,Se);var bn=X[l],mn=bn.contentPlaceholder,kn=bn.titlePlaceholder,sr=bn.content,yr=bn.title,jr=sr;Re==="g6-annotation-title"?(Kt.name="title",Kt.maxLength=se,jr=yr):Kt.name="content",jr?(Kt.innerHTML=Se.innerHTML,Kt.value=Se.innerHTML):Kt.placeholder=Re==="g6-annotation-title"?kn:mn,Kt.focus(),Kt.addEventListener("blur",function(zr){Kt.value&&(Se.innerHTML=Kt.value,bn[Kt.name||"title"]=Kt.value),gn.parentNode.replaceChild(Se,gn),u.updateCardSize(l);var va=u.get("onAnnotationChange");va==null||va(bn,"update")})}}});var P=["g6-annotation-title","g6-annotation-content","g6-annotation-title-input","g6-annotation-content-input"];a.draggable=!0,a.addEventListener("dragstart",function(H){var X=H.target.className;if(!P.includes(X)){var ee=a.style;u.set("dragging",{card:a,x:H.clientX,y:H.clientY,left:pC(ee.left),top:pC(ee.top)})}}),a.addEventListener("drag",function(H){H.preventDefault();var X=u.get("cardInfoMap");if(!!X){var ee=H.clientX,se=H.clientY,Se=u.get("dragging");if(!(isNaN(ee)||isNaN(se)||!Se)){var Re=Se.x,Be=Se.y,Ye=Se.left,ht=Se.top,Tt=Se.card,Dt=ee-Re,Kt=se-Be;Ye+=Dt,ht+=Kt;var gn=u.get("graph"),bn=gn.getPointByCanvas(0,0),mn=gn.getPointByCanvas(gn.getWidth(),gn.getHeight()),kn=gn.getClientByPoint(bn.x,bn.y),sr=kn.x,yr=kn.y,jr=gn.getClientByPoint(mn.x,mn.y),zr=jr.x,va=jr.y,za=Tt.getBoundingClientRect(),xi=za.right-za.left,Di=za.bottom-za.top;(Ye>zr-sr-xi&&Dt>0||Ye<0&&Dt<0)&&(Ye-=Dt),(ht>va-yr-Di&&Kt>0||ht<0&&Kt<0)&&(ht-=Kt),Ep(Tt,{left:"".concat(Ye,"px"),top:"".concat(ht,"px"),visibility:"hidden"}),Re=ee,Be=se;var Si=(X[l]||{}).link;if(Si){var jo=gn.findById(l);Si.attr("path",IM(jo,za,gn,u.get("canvas")))}u.set("dragging",{x:Re,y:Be,left:Ye,top:ht,card:Tt})}}});var j=function(X){var ee=u.get("cardInfoMap");if(!!ee){var se=u.get("dragging");if(se){var Se=se.left,Re=se.top,Be=se.card;ee[l].x=Se,ee[l].y=Re,Ep(Be,{visibility:"visible"}),u.set("dragging",!1);var Ye=u.get("rows");Ye==null||Ye.forEach(function(Tt){for(var Dt=Tt.length-1;Dt>=0;Dt--)Tt[Dt].id===l&&Tt.splice(Dt,1)});var ht=u.get("onAnnotationChange");ht==null||ht(ee[l],"update")}}};a.addEventListener("dragend",j)}},i.prototype.updateCardSize=function(a){var l=this.get("cardInfoMap");if(!!l){var u=l[a].card,E=u.getBoundingClientRect().width,P=u.getElementsByClassName("g6-annotation-title")[0];if(P){var j=getComputedStyle(P),H=pC(j.marginLeft),X=P.getBoundingClientRect().width;Ep(P,{marginRight:"".concat(E-H-24-16-X,"px")})}}},i.prototype.updateLink=function(a){var l=a.item;if(!!l){var u=this.get("cardInfoMap");if(!!u){var E=this.get("canvas"),P=this.get("graph"),j=l.getID(),H=u[j]||{},X=H.link,ee=H.card;if(X){var se=IM(l,ee.getBoundingClientRect(),P,E);X.attr("path",se)}}}},i.prototype.updateLinks=function(){var a=this;if(!this.destroyed){var l=this.get("cardInfoMap");if(!!l){var u=this.get("graph");Object.values(l).forEach(function(E){var P=E.id,j=u.findById(P);a.updateLink({item:j})})}}},i.prototype.onGraphDataChange=function(){var a=this,l=this.get("cardInfoMap");if(!!l){var u=this.get("graph");Object.values(l).forEach(function(E){var P=E.id,j=E.card,H=E.isCanvas;if(!(!j||H||j.style.display==="none")){var X=u.findById(P);X&&X.isVisible()?a.toggleAnnotation(X):a.hideCard(P)}})}},i.prototype.onGraphItemVisibilityChange=function(a){var l=a.item,u=a.visible;if(!(!l||l.destroyed)){var E=this.get("cardInfoMap");if(!!E){var P=l.getID();!E[P]||u||this.hideCard(P)}}},i.prototype.saveData=function(a){a===void 0&&(a=!1);var l=this.get("cardInfoMap");if(!!l){var u=this.get("graph"),E=this.get("getTitle"),P=this.get("getContent"),j=[];return Object.values(l).forEach(function(H){var X=H.title,ee=H.content,se=H.x,Se=H.y,Re=H.id,Be=H.collapsed,Ye=H.card;if(!(Ye&&Ye.style.display==="none"&&!a)){var ht=u.findById(Re)||u.get("canvas");j.push({id:Re,x:se,y:Se,collapsed:Be,title:X||(E==null?void 0:E(ht)),content:ee||(P==null?void 0:P(ht)),visible:Ye&&Ye.style.display!=="none"})}}),j}},i.prototype.readData=function(a){var l=this,u=this.get("graph");a.forEach(function(E){var P=E.id,j=E.x,H=E.y,X=E.title,ee=E.content,se=E.collapsed,Se=E.visible,Re=u.findById(P);if(!Re&&P===x1&&(Re=u.get("canvas")),!Re){var Be=l.get("cardInfoMap")||{};Be[P]=E,l.set("cardInfoMap",Be);return}l.toggleAnnotation(Re,{x:j,y:H,title:X,content:ee,collapsed:se}),Se||l.hideCard(P)})},i.prototype.clear=function(){var a=this.get("cardInfoMap");if(!!a){var l=this.get("container");Object.values(a).forEach(function(u){var E=u.card,P=u.link;l.removeChild(E),P==null||P.remove(!0)}),this.set("cardInfoMap",{})}},i.prototype.destroy=function(){var a;this.clear(),(a=this.get("canvas"))===null||a===void 0||a.destroy();var l=this.get("graph");!l||l.destroyed||(this.get("containerCfg")&&l.getContainer().removeChild(this.get("container")),this.destroyed=!0)},i}(a_),l8=q3,KU=function(i,a){var l,u,E,P=Infinity;Object.keys(i).forEach(function(X){var ee=i[X];Object.keys(a).forEach(function(se){var Se=a[se],Re=ee.x-Se.x,Be=ee.y-Se.y,Ye=Re*Re+Be*Be;P>Ye&&(P=Ye,l=ee,u=Se,E=[X,se])})});var j=20,H=Mg.getControlPoint(l,u,.5,j);return[["M",l.x,l.y],["Q",H.x,H.y,u.x,u.y]]},IM=function(i,a,l,u){var E,P,j=i.getType();if(j==="edge")P=[i.getKeyShape().getPoint(.5)];else{var H=(E=i.getKeyShape)===null||E===void 0?void 0:E.call(i).getBBox(),X=H.minX,ee=H.minY,se=H.maxX,Se=H.maxY,Re=i.getModel(),Be=Re.x,Ye=Re.y;X+=Be,ee+=Ye,se+=Be,Se+=Ye,P={left:{x:X,y:(ee+Se)/2},right:{x:se,y:(ee+Se)/2},top:{x:(X+se)/2,y:ee},bottom:{x:(X+se)/2,y:Se}}}Object.keys(P).forEach(function(yr){var jr=P[yr],zr=jr.x,va=jr.y,za=l.getClientByPoint(zr,va);P[yr]=u.getPointByClient(za.x,za.y)});var ht=a.top,Tt=ht===void 0?0:ht,Dt=a.left,Kt=Dt===void 0?0:Dt,gn=a.right,bn=gn===void 0?0:gn,mn=a.bottom,kn=mn===void 0?0:mn,sr={left:u.getPointByClient(Kt,(Tt+kn)/2),right:u.getPointByClient(bn,(Tt+kn)/2),top:u.getPointByClient((Kt+bn)/2,Tt),bottom:u.getPointByClient((Kt+bn)/2,kn)};return KU(P,sr)},pC=function(i){return Number(i.replace(/\s+|px/gi,""))||0},c8={PluginBase:a_,Menu:i5,Grid:sB,Minimap:pB,Bundling:s3,ToolBar:gB,Tooltip:yB,Fisheye:yM,TimeBar:Rw,ImageMinimap:J5,EdgeFilterLens:n8,SnapLine:Q3,Legend:o8,Annotation:l8},YU=c8,Bm=YU;kb("circle",{options:{size:ru.defaultNode.size,style:{x:0,y:0,stroke:ru.defaultNode.style.stroke,fill:ru.defaultNode.style.fill,lineWidth:ru.defaultNode.style.lineWidth},labelCfg:{style:{fill:ru.nodeLabel.style.fill,fontSize:ru.nodeLabel.style.fontSize,fontFamily:ru.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:ru.defaultNode.linkPoints.size,lineWidth:ru.defaultNode.linkPoints.lineWidth,fill:ru.defaultNode.linkPoints.fill,stroke:ru.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Ts({},ru.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(i,a){var l=(this.mergeStyle||this.getOptions(i)).icon,u=l===void 0?{}:l,E=this.getShapeStyle(i),P=(0,Nn.deepMix)({},u,i.icon),j="".concat(this.type,"-keyShape"),H=a.addShape("circle",{attrs:E,className:j,name:j,draggable:!0});a.shapeMap[j]=H;var X=P.width,ee=P.height,se=P.show,Se=P.text;if(se){var Re="".concat(this.type,"-icon");Se?a.shapeMap[Re]=a.addShape("text",{attrs:Ts({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},P),className:Re,name:Re,draggable:!0}):a.shapeMap[Re]=a.addShape("image",{attrs:Ts({x:-X/2,y:-ee/2},P),className:Re,name:Re,draggable:!0})}return this.drawLinkPoints(i,a),H},drawLinkPoints:function(i,a){var l=(this.mergeStyle||this.getOptions(i)).linkPoints;if(!!l){var u=l||{},E=u.top,P=u.left,j=u.right,H=u.bottom,X=u.size,ee=u.r,se=sm(u,["top","left","right","bottom","size","r"]),Se=this.getSize(i),Re=Se[0]/2;if(P){var Be="link-point-left";a.shapeMap[Be]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:-Re,y:0,r:X/2||ee||5}),className:Be,name:Be,isAnchorPoint:!0})}if(j){var Ye="link-point-right";a.shapeMap[Ye]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:Re,y:0,r:X/2||ee||5}),className:Ye,name:Ye,isAnchorPoint:!0})}if(E){var ht="link-point-top";a.shapeMap[ht]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:0,y:-Re,r:X/2||ee||5}),className:ht,name:ht,isAnchorPoint:!0})}if(H){var Tt="link-point-bottom";a.shapeMap[Tt]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:0,y:Re,r:X/2||ee||5}),className:Tt,name:Tt,isAnchorPoint:!0})}}},getShapeStyle:function(i){var a=(this.mergeStyle||this.getOptions(i)).style,l={stroke:i.color},u=(0,Nn.deepMix)({},a,l),E=this.getSize(i),P=E[0]/2,j=Ts({x:0,y:0,r:P},u);return j},update:function(i,a,l){var u=a.getContainer(),E=this.getSize(i),P=Ts({},i.style);i.style.stroke===void 0&&i.color&&(P.stroke=i.color),i.style.r===void 0&&!isNaN(E[0])&&(P.r=E[0]/2),this.updateShape(i,a,P,!0,l),this.updateLinkPoints(i,u)}},"single-node"),kb("rect",{options:{size:[100,30],style:{radius:0,stroke:ru.defaultNode.style.stroke,fill:ru.defaultNode.style.fill,lineWidth:ru.defaultNode.style.lineWidth},labelCfg:{style:{fill:ru.nodeLabel.style.fill,fontSize:ru.nodeLabel.style.fontSize,fontFamily:ru.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:ru.defaultNode.linkPoints.size,lineWidth:ru.defaultNode.linkPoints.lineWidth,fill:ru.defaultNode.linkPoints.fill,stroke:ru.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:Ts({},ru.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(i,a){var l=this.getShapeStyle(i),u=a.addShape("rect",{attrs:l,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return a.shapeMap["".concat(this.type,"-keyShape")]=u,this.drawLinkPoints(i,a),u},drawLinkPoints:function(i,a){var l=(this.mergeStyle||this.getOptions(i)).linkPoints,u=l===void 0?{}:l,E=u.top,P=u.left,j=u.right,H=u.bottom,X=u.size,ee=u.r,se=sm(u,["top","left","right","bottom","size","r"]),Se=this.getSize(i),Re=Se[0],Be=Se[1];P&&(a.shapeMap["link-point-left"]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:-Re/2,y:0,r:X/2||ee||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),j&&(a.shapeMap["link-point-right"]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:Re/2,y:0,r:X/2||ee||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),E&&(a.shapeMap["link-point-top"]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:0,y:-Be/2,r:X/2||ee||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),H&&(a.shapeMap["link-point-bottom"]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:0,y:Be/2,r:X/2||ee||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(i){var a=(this.mergeStyle||this.getOptions(i)).style,l={stroke:i.color},u=(0,Nn.mix)({},a,l),E=this.getSize(i),P=u.width||E[0],j=u.height||E[1],H=Ts({x:-P/2,y:-j/2,width:P,height:j},u);return H},update:function(i,a,l){var u=a.getContainer(),E=this.getOptions({}).style,P=this.getSize(i),j=a.get("keyShape");i.size||(P[0]=j.attr("width")||E.width,P[1]=j.attr("height")||E.height);var H={stroke:i.color,x:-P[0]/2,y:-P[1]/2,width:P[0],height:P[1]},X=(0,Nn.mix)({},E,j.attr(),H);X=(0,Nn.mix)(X,i.style),this.updateShape(i,a,X,!1,l),this.updateLinkPoints(i,u)}},"single-node"),kb("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:ru.defaultNode.style.stroke,fill:ru.defaultNode.style.fill,lineWidth:ru.defaultNode.style.lineWidth},labelCfg:{style:{fill:ru.nodeLabel.style.fill,fontSize:ru.nodeLabel.style.fontSize,fontFamily:ru.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:ru.defaultNode.linkPoints.size,lineWidth:ru.defaultNode.linkPoints.lineWidth,fill:ru.defaultNode.linkPoints.fill,stroke:ru.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Ts({},ru.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(i,a){var l=(this.mergeStyle||this.getOptions(i)).icon,u=l===void 0?{}:l,E=this.getShapeStyle(i),P=a.addShape("ellipse",{attrs:E,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0});a.shapeMap["ellipse-keyShape"]=P;var j=u.width,H=u.height,X=u.show,ee=u.text;return X&&(ee?a.shapeMap["".concat(this.type,"-icon")]=a.addShape("text",{attrs:Ts({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},u),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):a.shapeMap["".concat(this.type,"-icon")]=a.addShape("image",{attrs:Ts({x:-j/2,y:-H/2},u),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(i,a),P},drawLinkPoints:function(i,a){var l=(this.mergeStyle||this.getOptions(i)).linkPoints,u=l===void 0?{}:l,E=u.top,P=u.left,j=u.right,H=u.bottom,X=u.size,ee=u.r,se=sm(u,["top","left","right","bottom","size","r"]),Se=this.getSize(i),Re=Se[0]/2,Be=Se[1]/2;P&&(a.shapeMap["link-point-left"]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:-Re,y:0,r:X/2||ee||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),j&&(a.shapeMap["link-point-right"]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:Re,y:0,r:X/2||ee||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),E&&(a.shapeMap["link-point-top"]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:0,y:-Be,r:X/2||ee||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),H&&(a.shapeMap["link-point-bottom"]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:0,y:Be,r:X/2||ee||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(i){var a=(this.mergeStyle||this.getOptions(i)).style,l={stroke:i.color},u=(0,Nn.mix)({},a,l),E=this.getSize(i),P=E[0]/2,j=E[1]/2,H=Ts({x:0,y:0,rx:P,ry:j},u);return H},update:function(i,a,l){var u=a.getContainer(),E=this.getOptions({}).style,P=this.getSize(i),j={stroke:i.color,rx:P[0]/2,ry:P[1]/2},H=a.get("keyShape"),X=(0,Nn.mix)({},E,H.attr(),j);X=(0,Nn.mix)(X,i.style),this.updateShape(i,a,X,!0,l),this.updateLinkPoints(i,u)}},"single-node"),kb("diamond",{options:{size:[80,80],style:{stroke:ru.defaultNode.style.stroke,fill:ru.defaultNode.style.fill,lineWidth:ru.defaultNode.style.lineWidth},labelCfg:{style:{fill:ru.nodeLabel.style.fill,fontSize:ru.nodeLabel.style.fontSize,fontFamily:ru.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:ru.defaultNode.linkPoints.size,lineWidth:ru.defaultNode.linkPoints.lineWidth,fill:ru.defaultNode.linkPoints.fill,stroke:ru.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Ts({},ru.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(i,a){var l=(this.mergeStyle||this.getOptions(i)).icon,u=l===void 0?{}:l,E=this.getShapeStyle(i),P=a.addShape("path",{attrs:E,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});a.shapeMap["".concat(this.type,"-keyShape")]=P;var j=u.width,H=u.height,X=u.show,ee=u.text;return X&&(ee?a.shapeMap["".concat(this.type,"-icon")]=a.addShape("text",{attrs:Ts({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},u),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):a.shapeMap["".concat(this.type,"-icon")]=a.addShape("image",{attrs:Ts({x:-j/2,y:-H/2},u),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(i,a),P},drawLinkPoints:function(i,a){var l=(this.mergeStyle||this.getOptions(i)).linkPoints,u=l===void 0?{}:l,E=u.top,P=u.left,j=u.right,H=u.bottom,X=u.size,ee=u.r,se=sm(u,["top","left","right","bottom","size","r"]),Se=this.getSize(i),Re=Se[0],Be=Se[1];P&&(a.shapeMap["link-point-left"]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:-Re/2,y:0,r:X/2||ee||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),j&&(a.shapeMap["link-point-right"]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:Re/2,y:0,r:X/2||ee||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),E&&(a.shapeMap["link-point-top"]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:0,y:-Be/2,r:X/2||ee||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),H&&(a.shapeMap["link-point-bottom"]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:0,y:Be/2,r:X/2||ee||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getPath:function(i){var a=this.getSize(i),l=a[0],u=a[1],E=[["M",0,-u/2],["L",l/2,0],["L",0,u/2],["L",-l/2,0],["Z"]];return E},getShapeStyle:function(i){var a=(this.mergeStyle||this.getOptions(i)).style,l={stroke:i.color},u=(0,Nn.mix)({},a,l),E=this.getPath(i),P=Ts({path:E},u);return P},update:function(i,a,l){var u=a.getContainer(),E=this.getOptions({}).style,P=this.getPath(i),j={stroke:i.color,path:P},H=a.get("keyShape"),X=(0,Nn.mix)({},E,H.attr(),j);X=(0,Nn.mix)(X,i.style),this.updateShape(i,a,X,!0,l),this.updateLinkPoints(i,u)}},"single-node"),kb("triangle",{options:{size:40,direction:"up",style:{stroke:ru.defaultNode.style.stroke,fill:ru.defaultNode.style.fill,lineWidth:ru.defaultNode.style.lineWidth},labelCfg:{style:{fill:ru.nodeLabel.style.fill,fontSize:ru.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:ru.defaultNode.linkPoints.size,lineWidth:ru.defaultNode.linkPoints.lineWidth,fill:ru.defaultNode.linkPoints.fill,stroke:ru.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:Ts({},ru.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(i,a){var l=this.mergeStyle||this.getOptions(i),u=l.icon,E=u===void 0?{}:u,P=l.direction,j=this.getShapeStyle(i),H=i.direction||P,X=a.addShape("path",{attrs:j,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});a.shapeMap["".concat(this.type,"-keyShape")]=X;var ee=E.width,se=E.height,Se=E.show,Re=E.offset,Be=E.text;if(Se)if(Be)a.shapeMap["".concat(this.type,"-icon")]=a.addShape("text",{attrs:Ts({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},E),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0});else{var Ye=-ee/2,ht=-se/2;(H==="up"||H==="down")&&(ht+=Re),(H==="left"||H==="right")&&(Ye+=Re),a.shapeMap["".concat(this.type,"-icon")]=a.addShape("image",{attrs:Ts({x:Ye,y:ht},E),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})}return this.drawLinkPoints(i,a),X},drawLinkPoints:function(i,a){var l=this.mergeStyle||this.getOptions(i),u=l.linkPoints,E=u===void 0?{}:u,P=l.direction,j=i.direction||P,H=E.top,X=E.left,ee=E.right,se=E.bottom,Se=E.size,Re=E.r,Be=sm(E,["top","left","right","bottom","size","r"]),Ye=this.getSize(i),ht=Ye[0];if(X){var Tt=null,Dt=ht*Math.sin(1/3*Math.PI),Kt=ht*Math.sin(1/3*Math.PI);j==="up"?Tt=[-Kt,Dt]:j==="down"?Tt=[-Kt,-Dt]:j==="left"&&(Tt=[-Kt,Kt-Dt]),Tt&&(a.shapeMap["link-point-left"]=a.addShape("circle",{attrs:Ts(Ts({},Be),{x:Tt[0],y:Tt[1],r:Se/2||Re||5}),className:"link-point-left",name:"link-point-left"}))}if(ee){var gn=null,Dt=ht*Math.sin(1/3*Math.PI),Kt=ht*Math.sin(1/3*Math.PI);j==="up"?gn=[Kt,Dt]:j==="down"?gn=[Kt,-Dt]:j==="right"&&(gn=[Kt,Kt-Dt]),gn&&(a.shapeMap["link-point-right"]=a.addShape("circle",{attrs:Ts(Ts({},Be),{x:gn[0],y:gn[1],r:Se/2||Re||5}),className:"link-point-right",name:"link-point-right"}))}if(H){var bn=null,Dt=ht*Math.sin(1/3*Math.PI),Kt=ht*Math.sin(1/3*Math.PI);j==="up"?bn=[Kt-Dt,-Dt]:j==="left"?bn=[Kt,-Dt]:j==="right"&&(bn=[-Kt,-Dt]),bn&&(a.shapeMap["link-point-top"]=a.addShape("circle",{attrs:Ts(Ts({},Be),{x:bn[0],y:bn[1],r:Se/2||Re||5}),className:"link-point-top",name:"link-point-top"}))}if(se){var mn=null,Dt=ht*Math.sin(1/3*Math.PI),Kt=ht*Math.sin(1/3*Math.PI);j==="down"?mn=[-Kt+Dt,Dt]:j==="left"?mn=[Kt,Dt]:j==="right"&&(mn=[-Kt,Dt]),mn&&(a.shapeMap["link-point-bottom"]=a.addShape("circle",{attrs:Ts(Ts({},Be),{x:mn[0],y:mn[1],r:Se/2||Re||5}),className:"link-point-bottom",name:"link-point-bottom"}))}},getPath:function(i){var a=(this.mergeStyle||this.getOptions(i)).direction,l=i.direction||a,u=this.getSize(i),E=u[0],P=E*Math.sin(1/3*Math.PI),j=E*Math.sin(1/3*Math.PI),H=[["M",-j,P],["L",0,-P],["L",j,P],["Z"]];return l==="down"?H=[["M",-j,-P],["L",j,-P],["L",0,P],["Z"]]:l==="left"?H=[["M",-j,j-P],["L",j,-j],["L",j,j],["Z"]]:l==="right"&&(H=[["M",j,j-P],["L",-j,j],["L",-j,-j],["Z"]]),H},getShapeStyle:function(i){var a=(this.mergeStyle||this.getOptions(i)).style,l={stroke:i.color},u=(0,Nn.mix)({},a,l),E=this.getPath(i),P=Ts({path:E},u);return P},update:function(i,a,l){var u=a.getContainer(),E=this.getOptions({}).style,P=this.getPath(i),j={stroke:i.color,path:P},H=a.get("keyShape"),X=(0,Nn.mix)({},E,H.attr(),j);X=(0,Nn.mix)(X,i.style),this.updateShape(i,a,X,!0,l),this.updateLinkPoints(i,u)},updateLinkPoints:function(i,a){var l=this.getOptions({}),u=l.linkPoints,E=l.direction,P=i.direction||E,j=a.shapeMap["link-point-left"]||a.find(function(Si){return Si.get("className")==="link-point-left"}),H=a.shapeMap["link-point-right"]||a.find(function(Si){return Si.get("className")==="link-point-right"}),X=a.shapeMap["link-point-top"]||a.find(function(Si){return Si.get("className")==="link-point-top"}),ee=a.shapeMap["link-point-bottom"]||a.find(function(Si){return Si.get("className")==="link-point-bottom"}),se=u,Se=j||H||X||ee;Se&&(se=Se.attr());var Re=(0,Nn.mix)({},se,i.linkPoints),Be=Re.fill,Ye=Re.stroke,ht=Re.lineWidth,Tt=Re.size/2;Tt||(Tt=Re.r);var Dt=i.linkPoints?i.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},Kt=Dt.left,gn=Dt.right,bn=Dt.top,mn=Dt.bottom,kn=this.getSize(i),sr=kn[0],yr={r:Tt,fill:Be,stroke:Ye,lineWidth:ht},jr=null,zr=sr*Math.sin(1/3*Math.PI),va=sr*Math.sin(1/3*Math.PI);P==="up"?jr=[-va,zr]:P==="down"?jr=[-va,-zr]:P==="left"&&(jr=[-va,va-zr]),jr&&(j?!Kt&&Kt!==void 0?(j.remove(),delete a.shapeMap["link-point-left"]):j.attr(Ts(Ts({},yr),{x:jr[0],y:jr[1]})):Kt&&(a.shapeMap["link-point-left"]=a.addShape("circle",{attrs:Ts(Ts({},yr),{x:jr[0],y:jr[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})));var za=null;P==="up"?za=[va,zr]:P==="down"?za=[va,-zr]:P==="right"&&(za=[va,va-zr]),za&&(H?!gn&&gn!==void 0?(H.remove(),delete a.shapeMap["link-point-right"]):H.attr(Ts(Ts({},yr),{x:za[0],y:za[1]})):gn&&(a.shapeMap["link-point-right"]=a.addShape("circle",{attrs:Ts(Ts({},yr),{x:za[0],y:za[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})));var xi=null;P==="up"?xi=[va-zr,-zr]:P==="left"?xi=[va,-zr]:P==="right"&&(xi=[-va,-zr]),xi&&(X?!bn&&bn!==void 0?(X.remove(),delete a.shapeMap["link-point-top"]):X.attr(Ts(Ts({},yr),{x:xi[0],y:xi[1]})):bn&&(a.shapeMap["link-point-top"]=a.addShape("circle",{attrs:Ts(Ts({},yr),{x:xi[0],y:xi[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})));var Di=null;P==="down"?Di=[-va+zr,zr]:P==="left"?Di=[va,zr]:P==="right"&&(Di=[-va,zr]),Di&&(ee?!mn&&mn!==void 0?(ee.remove(),delete a.shapeMap["link-point-bottom"]):ee.attr(Ts(Ts({},yr),{x:Di[0],y:Di[1]})):mn&&(a.shapeMap["link-point-bottom"]=a.addShape("circle",{attrs:Ts(Ts({},yr),{x:Di[0],y:Di[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})))}},"single-node"),kb("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:ru.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14,fontFamily:ru.windowFontFamily},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf",fontFamily:ru.windowFontFamily},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(i,a){var l=(this.mergeStyle||this.getOptions(i)).preRect,u=l===void 0?{}:l,E=this.getShapeStyle(i),P=this.getSize(i),j=P[0],H=P[1],X=a.addShape("rect",{attrs:E,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});a.shapeMap["".concat(this.type,"-keyShape")]=X;var ee=u.show,se=sm(u,["show"]);return ee&&(a.shapeMap["pre-rect"]=a.addShape("rect",{attrs:Ts({x:-j/2,y:-H/2,height:H},se),className:"pre-rect",name:"pre-rect",draggable:!0})),this.drawLogoIcon(i,a),this.drawStateIcon(i,a),this.drawLinkPoints(i,a),X},drawLogoIcon:function(i,a){var l=(this.mergeStyle||this.getOptions(i)).logoIcon,u=l===void 0?{}:l,E=this.getSize(i),P=E[0];if(u.show){var j=u.width,H=u.height,X=u.x,ee=u.y,se=u.offset,Se=u.text,Re=sm(u,["width","height","x","y","offset","text"]);Se?a.shapeMap["rect-logo-icon"]=a.addShape("text",{attrs:Ts({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},Re),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0}):a.shapeMap["rect-logo-icon"]=a.addShape("image",{attrs:Ts(Ts({},Re),{x:X||-P/2+j+se,y:ee||-H/2,width:j,height:H}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(i,a){var l=(this.mergeStyle||this.getOptions(i)).stateIcon,u=l===void 0?{}:l,E=this.getSize(i),P=E[0];if(u.show){var j=u.width,H=u.height,X=u.x,ee=u.y,se=u.offset,Se=u.text,Re=sm(u,["width","height","x","y","offset","text"]);Se?a.shapeMap["rect-state-icon"]=a.addShape("text",{attrs:Ts({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},Re),className:"rect-state-icon",name:"rect-state-icon",draggable:!0}):a.shapeMap["rect-state-icon"]=a.addShape("image",{attrs:Ts(Ts({},Re),{x:X||P/2-j+se,y:ee||-H/2,width:j,height:H}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(i,a){var l=(this.mergeStyle||this.getOptions(i)).linkPoints,u=l===void 0?{}:l,E=u.top,P=u.left,j=u.right,H=u.bottom,X=u.size,ee=u.r,se=sm(u,["top","left","right","bottom","size","r"]),Se=this.getSize(i),Re=Se[0],Be=Se[1];P&&(a.shapeMap["link-point-left"]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:-Re/2,y:0,r:X/2||ee||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),j&&(a.shapeMap["link-point-right"]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:Re/2,y:0,r:X/2||ee||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),E&&(a.shapeMap["link-point-top"]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:0,y:-Be/2,r:X/2||ee||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),H&&(a.shapeMap["link-point-bottom"]=a.addShape("circle",{attrs:Ts(Ts({},se),{x:0,y:Be/2,r:X/2||ee||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},drawLabel:function(i,a){var l=this.getOptions(i),u=l.labelCfg,E=u===void 0?{}:u,P=l.logoIcon,j=P===void 0?{}:P,H=l.descriptionCfg,X=H===void 0?{}:H,ee=this.getSize(i),se=ee[0],Se=null,Re=j.show,Be=j.width,Ye=-se/2+E.offset;Re&&(Ye=-se/2+Be+E.offset);var ht=E.style,Tt=X.style,Dt=X.paddingTop;return(0,Nn.isString)(i.description)?(Se=a.addShape("text",{attrs:Ts(Ts({},ht),{x:Ye,y:-5,text:i.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),a.shapeMap["text-shape"]=Se,a.shapeMap["rect-description"]=a.addShape("text",{attrs:Ts(Ts({},Tt),{x:Ye,y:17+(Dt||0),text:i.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})):(Se=a.addShape("text",{attrs:Ts(Ts({},ht),{x:Ye,y:7,text:i.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),a.shapeMap["text-shape"]=Se),Se},getShapeStyle:function(i){var a=(this.mergeStyle||this.getOptions(i)).style,l={stroke:i.color},u=(0,Nn.mix)({},a,l),E=this.getSize(i),P=u.width||E[0],j=u.height||E[1],H=Ts({x:-P/2,y:-j/2,width:P,height:j},u);return H},update:function(i,a){var l=this.mergeStyle||this.getOptions(i),u=l.style,E=u===void 0?{}:u,P=l.labelCfg,j=P===void 0?{}:P,H=l.descriptionCfg,X=H===void 0?{}:H,ee=this.getSize(i),se=ee[0],Se=ee[1],Re=a.get("keyShape");Re.attr(Ts(Ts({},E),{x:-se/2,y:-Se/2,width:se,height:Se}));var Be=a.getContainer(),Ye=Be.shapeMap["rect-logo-icon"]||Be.find(function(Lo){return Lo.get("className")==="rect-logo-icon"}),ht=Ye?Ye.attr():{},Tt=(0,Nn.mix)({},ht,i.logoIcon),Dt=Tt.width;Dt===void 0&&(Dt=this.options.logoIcon.width);var Kt=i.logoIcon?i.logoIcon.show:void 0,gn=j.offset,bn=-se/2+Dt+gn;!Kt&&Kt!==void 0&&(bn=-se/2+gn);var mn=Be.shapeMap["node-label"]||Be.find(function(Lo){return Lo.get("className")==="node-label"}),kn=Be.shapeMap["rect-description"]||Be.find(function(Lo){return Lo.get("className")==="rect-description"});if(i.label)if(!mn)Be.shapeMap["node-label"]=Be.addShape("text",{attrs:Ts(Ts({},j.style),{x:bn,y:i.description?-5:7,text:i.label}),className:"node-label",name:"node-label",draggable:!0,labelRelated:!0});else{var sr=i.labelCfg?i.labelCfg.style:{},yr=(0,Nn.mix)({},mn.attr(),sr);i.label&&(yr.text=i.label),yr.x=bn,(0,Nn.isString)(i.description)&&(yr.y=-5),kn&&(kn.resetMatrix(),kn.attr({x:bn})),mn.resetMatrix(),mn.attr(yr)}if((0,Nn.isString)(i.description)){var jr=X.paddingTop;if(!kn)Be.shapeMap["rect-description"]=Be.addShape("text",{attrs:Ts(Ts({},X.style),{x:bn,y:17+(jr||0),text:i.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0});else{var sr=i.descriptionCfg?i.descriptionCfg.style:{},zr=(0,Nn.mix)({},kn.attr(),sr);(0,Nn.isString)(i.description)&&(zr.text=i.description),zr.x=bn,kn.resetMatrix(),kn.attr(Ts(Ts({},zr),{y:17+(jr||0)}))}}var va=Be.shapeMap["pre-rect"]||Be.find(function(Lo){return Lo.get("className")==="pre-rect"});if(va&&!va.destroyed){var za=(0,Nn.mix)({},va.attr(),i.preRect);va.attr(Ts(Ts({},za),{x:-se/2,y:-Se/2,height:Se}))}if(Ye&&!Ye.destroyed)if(!Kt&&Kt!==void 0)Ye.remove(),delete Be.shapeMap["pre-rect"];else{var xi=Tt.width,Di=Tt.height,Si=Tt.x,jo=Tt.y,ro=Tt.offset,hi=sm(Tt,["width","height","x","y","offset"]);Ye.attr(Ts(Ts({},hi),{x:Si||-se/2+xi+ro,y:jo||-Di/2,width:xi,height:Di}))}else Kt&&this.drawLogoIcon(i,Be);var io=Be.shapeMap["rect-state-icon"]||Be.find(function(Lo){return Lo.get("className")==="rect-state-icon"}),oo=io?io.attr():{},Ki=(0,Nn.mix)({},oo,i.stateIcon);if(io){!Ki.show&&Ki.show!==void 0&&(io.remove(),delete Be.shapeMap["rect-state-icon"]);var Ji=Ki.width,Di=Ki.height,Si=Ki.x,jo=Ki.y,Ao=Ki.offset,ks=sm(Ki,["width","height","x","y","offset"]);io.attr(Ts(Ts({},ks),{x:Si||se/2-Ji+Ao,y:jo||-Di/2,width:Ji,height:Di}))}else Ki.show&&this.drawStateIcon(i,Be);this.updateLinkPoints(i,Be)},getOptions:function(i,a){return a==="move"?i:(0,Nn.deepMix)({},this.options,this.getCustomConfig(i)||{},i)}},"single-node"),kb("star",{options:{size:60,style:{stroke:ru.defaultNode.style.stroke,fill:ru.defaultNode.style.fill,lineWidth:ru.defaultNode.style.lineWidth},labelCfg:{style:{fill:ru.nodeLabel.style.fill,fontSize:ru.nodeLabel.style.fontSize,fontFamily:ru.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:ru.defaultNode.linkPoints.size,lineWidth:ru.defaultNode.linkPoints.lineWidth,fill:ru.defaultNode.linkPoints.fill,stroke:ru.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Ts({},ru.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(i,a){var l=(this.mergeStyle||this.getOptions(i)).icon,u=l===void 0?{}:l,E=this.getShapeStyle(i),P=a.addShape("path",{attrs:E,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});a.shapeMap["".concat(this.type,"-keyShape")]=P;var j=u.width,H=u.height,X=u.show,ee=u.text;return X&&(ee?a.shapeMap["".concat(this.type,"-icon")]=a.addShape("text",{attrs:Ts({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},u),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):a.shapeMap["".concat(this.type,"-icon")]=a.addShape("image",{attrs:Ts({x:-j/2,y:-H/2},u),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(i,a),P},drawLinkPoints:function(i,a){var l=(this.mergeStyle||this.getOptions(i)).linkPoints,u=l===void 0?{}:l,E=u.top,P=u.left,j=u.right,H=u.leftBottom,X=u.rightBottom,ee=u.size,se=u.r,Se=sm(u,["top","left","right","leftBottom","rightBottom","size","r"]),Re=this.getSize(i),Be=Re[0];if(j){var Ye=Math.cos((18+72*0)/180*Math.PI)*Be,ht=Math.sin((18+72*0)/180*Math.PI)*Be;a.shapeMap["link-point-right"]=a.addShape("circle",{attrs:Ts(Ts({},Se),{x:Ye,y:-ht,r:ee/2||se||5}),className:"link-point-right",name:"link-point-right"})}if(E){var Ye=Math.cos((18+72*1)/180*Math.PI)*Be,ht=Math.sin((18+72*1)/180*Math.PI)*Be;a.shapeMap["link-point-top"]=a.addShape("circle",{attrs:Ts(Ts({},Se),{x:Ye,y:-ht,r:ee/2||se||5}),className:"link-point-top",name:"link-point-top"})}if(P){var Ye=Math.cos((18+72*2)/180*Math.PI)*Be,ht=Math.sin((18+72*2)/180*Math.PI)*Be;a.shapeMap["link-point-left"]=a.addShape("circle",{attrs:Ts(Ts({},Se),{x:Ye,y:-ht,r:ee/2||se||5}),className:"link-point-left",name:"link-point-left"})}if(H){var Ye=Math.cos((18+72*3)/180*Math.PI)*Be,ht=Math.sin((18+72*3)/180*Math.PI)*Be;a.shapeMap["link-point-bottom"]=a.addShape("circle",{attrs:Ts(Ts({},Se),{x:Ye,y:-ht,r:ee/2||se||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(X){var Ye=Math.cos((18+72*4)/180*Math.PI)*Be,ht=Math.sin((18+72*4)/180*Math.PI)*Be;a.shapeMap["link-point-right-bottom"]=a.addShape("circle",{attrs:Ts(Ts({},Se),{x:Ye,y:-ht,r:ee/2||se||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(i){var a=this.getSize(i),l=a[0],u=l*3/8,E=i.innerR||u;return Mg.getStarPath(l,E)},getShapeStyle:function(i){var a=(this.mergeStyle||this.getOptions(i)).style,l={stroke:i.color},u=(0,Nn.mix)({},a,l),E=this.getPath(i),P=Ts({path:E},u);return P},update:function(i,a,l){var u=a.getContainer(),E=this.getOptions({}).style,P=this.getPath(i),j={stroke:i.color,path:P},H=a.get("keyShape"),X=(0,Nn.mix)({},E,H.attr(),j);X=(0,Nn.mix)(X,i.style),this.updateShape(i,a,X,!0,l),this.updateLinkPoints(i,u)},updateLinkPoints:function(i,a){var l=this.getOptions({}).linkPoints,u=a.shapeMap["link-point-left"]||a.find(function(zr){return zr.get("className")==="link-point-left"}),E=a.shapeMap["link-point-right"]||a.find(function(zr){return zr.get("className")==="link-point-right"}),P=a.shapeMap["link-point-top"]||a.find(function(zr){return zr.get("className")==="link-point-top"}),j=a.shapeMap["link-point-left-bottom"]||a.find(function(zr){return zr.get("className")==="link-point-left-bottom"}),H=a.shapeMap["link-point-left-bottom"]||a.find(function(zr){return zr.get("className")==="link-point-right-bottom"}),X=l,ee=u||E||P||j||H;ee&&(X=ee.attr());var se=(0,Nn.mix)({},X,i.linkPoints),Se=se.fill,Re=se.stroke,Be=se.lineWidth,Ye=se.size/2;Ye||(Ye=se.r);var ht=i.linkPoints?i.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},Tt=ht.left,Dt=ht.right,Kt=ht.top,gn=ht.leftBottom,bn=ht.rightBottom,mn=this.getSize(i),kn=mn[0],sr={r:Ye,fill:Se,stroke:Re,lineWidth:Be},yr=Math.cos((18+72*0)/180*Math.PI)*kn,jr=Math.sin((18+72*0)/180*Math.PI)*kn;E?!Dt&&Dt!==void 0?(E.remove(),delete a.shapeMap["link-point-right"]):E.attr(Ts(Ts({},sr),{x:yr,y:-jr})):Dt&&(a.shapeMap["link-point-right"]=a.addShape("circle",{attrs:Ts(Ts({},sr),{x:yr,y:-jr}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),yr=Math.cos((18+72*1)/180*Math.PI)*kn,jr=Math.sin((18+72*1)/180*Math.PI)*kn,P?!Kt&&Kt!==void 0?(P.remove(),delete a.shapeMap["link-point-top"]):P.attr(Ts(Ts({},sr),{x:yr,y:-jr})):Kt&&(a.shapeMap["link-point-top"]=a.addShape("circle",{attrs:Ts(Ts({},sr),{x:yr,y:-jr}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),yr=Math.cos((18+72*2)/180*Math.PI)*kn,jr=Math.sin((18+72*2)/180*Math.PI)*kn,u?!Tt&&Tt!==void 0?(u.remove(),delete a.shapeMap["link-point-left"]):u.attr(Ts(Ts({},sr),{x:yr,y:-jr})):Tt&&(a.shapeMap["link-point-left"]=a.addShape("circle",{attrs:Ts(Ts({},sr),{x:yr,y:-jr}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),yr=Math.cos((18+72*3)/180*Math.PI)*kn,jr=Math.sin((18+72*3)/180*Math.PI)*kn,j?!gn&&gn!==void 0?(j.remove(),delete a.shapeMap["link-point-left-bottom"]):j.attr(Ts(Ts({},sr),{x:yr,y:-jr})):gn&&(a.shapeMap["link-point-left-bottom"]=a.addShape("circle",{attrs:Ts(Ts({},sr),{x:yr,y:-jr}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0})),yr=Math.cos((18+72*4)/180*Math.PI)*kn,jr=Math.sin((18+72*4)/180*Math.PI)*kn,H?!bn&&bn!==void 0?(H.remove(),delete a.shapeMap["link-point-right-bottom"]):H.attr(Ts(Ts({},sr),{x:yr,y:-jr})):bn&&(a.shapeMap["link-point-right-bottom"]=a.addShape("circle",{attrs:Ts(Ts({},sr),{x:yr,y:-jr}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0}))}},"single-node");var jR=Mg.defaultSubjectColors,DM="fan-shape-";kb("donut",{options:{size:ru.defaultNode.size,style:{x:0,y:0,stroke:ru.defaultNode.style.stroke,fill:ru.defaultNode.style.fill,lineWidth:ru.defaultNode.style.lineWidth},labelCfg:{style:{fill:ru.nodeLabel.style.fill,fontSize:ru.nodeLabel.style.fontSize,fontFamily:ru.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:ru.defaultNode.linkPoints.size,lineWidth:ru.defaultNode.linkPoints.lineWidth,fill:ru.defaultNode.linkPoints.fill,stroke:ru.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Ts({},ru.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(i,a){var l=(this.mergeStyle||this.getOptions(i)).icon,u=l===void 0?{}:l,E=this.getShapeStyle(i),P=(0,Nn.deepMix)({},u,i.icon),j=a.addShape("circle",{attrs:E,className:"".concat(this.type,"-keyShape"),draggable:!0,name:"".concat(this.type,"-keyShape")});a.shapeMap["".concat(this.type,"-keyShape")]=j;var H=P.width,X=P.height,ee=P.show,se=P.text;return ee&&(se?a.shapeMap["".concat(this.type,"-icon")]=a.addShape("text",{attrs:Ts({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},P),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):a.shapeMap["".concat(this.type,"-icon")]=a.addShape("image",{attrs:Ts({x:-H/2,y:-X/2},P),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),XU(i,a,j),this.drawLinkPoints(i,a),j},updateShape:function(i,a,l,u,E){var P=a.get("keyShape");P.attr(Ts({},l)),e4(i,a,P),this.updateLabel(i,a,E),u&&this.updateIcon(i,a)}},"circle");var XU=function(i,a,l){var u=i.donutAttrs,E=u===void 0?{}:u,P=i.donutColorMap,j=P===void 0?{}:P,H=Object.keys(E).length;if(E&&H>1){var X=t4(E,j),ee=X.configs,se=X.totalValue;if(se){var Se=n4(l),Re=Se.lineWidth,Be=Se.arcR,Ye=[Be,0],ht=0;if(H===1){NM(a,{arcR:Be,arcBegin:Ye,beginAngle:ht,config:ee[0],fanIndex:0,lineWidth:Re,totalValue:se,drawWhole:!0});return}for(var Tt=0;Tt<ee.length;Tt++){var Dt=NM(a,{arcR:Be,arcBegin:Ye,beginAngle:ht,config:ee[Tt],fanIndex:Tt,lineWidth:Re,totalValue:se});if(Dt.shouldEnd)return;Ye=Dt.arcBegin,ht=Dt.beginAngle}}}},NM=function(i,a){var l=a.arcR,u=a.arcBegin,E=a.beginAngle,P=a.config,j=a.fanIndex,H=a.lineWidth,X=a.totalValue,ee=a.drawWhole,se=ee===void 0?!1:ee,Se=a.updateShape,Re=Se===void 0?void 0:Se,Be=P.value/X;if(Be<.001)return{beginAngle:E,arcBegin:u,shape:void 0,shouldEnd:!1};var Ye,ht,Tt;if(se||Be>.999)Ye=[l,1e-4],Tt=1;else{var Dt=Be*Math.PI*2;ht=E+Dt,Ye=[l*Math.cos(ht),-l*Math.sin(ht)],Tt=Dt>Math.PI?1:0}var Kt={path:[["M",u[0],u[1]],["A",l,l,0,Tt,0,Ye[0],Ye[1]]],stroke:P.color||(Re==null?void 0:Re.attr("stroke"))||jR[j%jR.length],lineWidth:H};return Re?Re.attr(Kt):i.shapeMap["".concat(DM).concat(j)]=i.addShape("path",{attrs:Kt,name:"".concat(DM).concat(j),draggable:!0}),{beginAngle:ht,arcBegin:Ye,shape:i.shapeMap["".concat(DM).concat(j)],shouldEnd:se||Be>.999}},e4=function(i,a,l){var u=i.donutAttrs,E=i.donutColorMap,P=E===void 0?{}:E,j={},H=a.getContainer();if(u){var X=t4(u,P),ee=X.configs,se=X.totalValue;if(se)for(var Se=n4(l),Re=Se.lineWidth,Be=Se.arcR,Ye=[Be,0],ht=0,Tt=0;Tt<ee.length;Tt++){var Dt="".concat(DM).concat(Tt),Kt=NM(H,{arcR:Be,arcBegin:Ye,beginAngle:ht,config:ee[Tt],fanIndex:Tt,lineWidth:Re,totalValue:se,drawWhole:ee.length===1,updateShape:H.shapeMap[Dt]});if(Kt.shape&&(j[Dt]=!0),Kt.shouldEnd)break;Ye=Kt.arcBegin,ht=Kt.beginAngle}}var gn=Object.keys(H.shapeMap).filter(function(bn){return bn.includes(DM)});gn.forEach(function(bn){j[bn]||(H.shapeMap[bn].remove(!0),delete H.shapeMap[bn])})},t4=function(i,a){var l=0,u=[];return Object.keys(i).forEach(function(E){var P=+i[E];isNaN(P)||(u.push({key:E,value:P,color:a[E]}),l+=P)}),{totalValue:l,configs:u}},n4=function(i){var a=i.attr("r"),l=.6*a,u=(a+l)/2,E=a-l;return{lineWidth:E,arcR:u}},BR=function(i){var a=i.x,l=i.y;return{x:a,y:l,centerX:a,centerY:l,minX:a,minY:l,maxX:a,maxY:l,height:0,width:0}},u8=function(i){i===void 0&&(i=[]);var a=[],l=[];i.forEach(function(H){a.push(H.x),l.push(H.y)});var u=Math.min.apply(Math,a),E=Math.max.apply(Math,a),P=Math.min.apply(Math,l),j=Math.max.apply(Math,l);return{centerX:(u+E)/2,centerY:(P+j)/2,maxX:E,maxY:j,minX:u,minY:P,height:j-P,width:E-u}},oH=function(i,a){return Math.abs(i.centerX-a.centerX)*2<i.width+a.width&&Math.abs(i.centerY-a.centerY)*2<i.height+a.height},Ow=function(i){for(var a=[],l={},u=i.length,E=u-1;E>=0;E--){var P=i[E];P.id="".concat(P.x,"|||").concat(P.y),l[P.id]||(l[P.id]=P,a.push(P))}return a},r4=function(i){return Ow(i)},f8=function(i,a){return[i,{x:i.x,y:a.y},a]},LM=function(i,a){return i.width||i.height?{centerX:i.centerX,centerY:i.centerY,minX:i.minX-a,minY:i.minY-a,maxX:i.maxX+a,maxY:i.maxY+a,height:i.height+2*a,width:i.width+2*a}:i},d8=function(i,a){var l=Math.abs(i.x-a.centerX),u=Math.abs(i.y-a.centerY);return l===0&&u===0?0:l/a.width>u/a.height},UR=function(i,a,l){var u=d8(a,i);if(u===0){var E=i.centerX,P=i.centerY;return l.y<a.y?P=i.minY:l.x>a.x?E=i.maxX:l.x<a.x?E=i.minX:l.x===a.x&&(P=i.maxY),{x:E,y:P}}return u?{x:a.x>i.centerX?i.maxX:i.minX,y:a.y}:{x:a.x,y:a.y>i.centerY?i.maxY:i.minY}},ZR=function(i,a){var l=Math.min(i.minX,a.minX),u=Math.min(i.minY,a.minY),E=Math.max(i.maxX,a.maxX),P=Math.max(i.maxY,a.maxY);return{centerX:(l+E)/2,centerY:(u+P)/2,minX:l,minY:u,maxX:E,maxY:P,height:P-u,width:E-l}},a4=function(i){return[{x:i.minX,y:i.minY},{x:i.maxX,y:i.minY},{x:i.maxX,y:i.maxY},{x:i.minX,y:i.maxY}]},VR=function(i,a){var l=i.x,u=i.y;return l<a.minX||l>a.maxX||u<a.minY||u>a.maxY},JU=function(i,a){return a<i.minX||a>i.maxX?[]:[{x:a,y:i.minY},{x:a,y:i.maxY}]},QU=function(i,a){return a<i.minY||a>i.maxY?[]:[{x:i.minX,y:a},{x:i.maxX,y:a}]},qU=function(i,a){return JU(i,a.x).concat(QU(i,a.y))},FM=function(i,a){return Math.abs(i.x-a.x)+Math.abs(i.y-a.y)},eZ=function(i,a){var l=-2,u=0;return a.forEach(function(E){E&&(i.x===E.x&&(u+=l),i.y===E.y&&(u+=l))}),u},p8=function(i,a,l,u,E){return FM(i,a)+FM(i,l)+eZ(i,[a,l,u,E])},tZ=function C(i,a,l,u,E){E===void 0&&(E=0),i.unshift(a[u]),l[u]&&l[u]!==u&&E<=100&&C(i,a,l,l[u],E+1)},nZ=function(i,a){var l=i.indexOf(a);l>-1&&i.splice(l,1)},zR=function(i,a,l,u){var E=l.x-i.x,P=l.y-i.y,j=u.x-i.x,H=u.y-i.y,X=l.x-a.x,ee=l.y-a.y,se=u.x-a.x,Se=u.y-a.y,Re=E*H-P*j,Be=X*Se-ee*se,Ye=E*ee-P*X,ht=j*Se-H*se;return Re*Be<=0&&Ye*ht<=0},i4=function(i,a,l){if(l.width||l.height){var u=a4(l),E=u[0],P=u[1],j=u[2],H=u[3];return zR(i,a,E,P)||zR(i,a,E,H)||zR(i,a,P,j)||zR(i,a,j,H)}return!1},rZ=function(i,a,l,u){var E=[];return i.forEach(function(P){if(P!==a&&(P.x===a.x||P.y===a.y)){if(i4(P,a,l)||i4(P,a,u))return;E.push(P)}}),Ow(E)},aZ=function(i,a,l,u,E,P,j){var H,X=[],ee=(H={},H[a.id]=a,H),se={},Se={},Re={};Se[a.id]=0,Re[a.id]=p8(a,l,a);var Be=new g8;Be.add({id:a.id,value:Re[a.id]});var Ye={};i.forEach(function(bn){Ye[bn.id]=bn});for(var ht;Object.keys(ee).length;){var Tt=Be.minId(!1);if(Tt)ht=ee[Tt];else break;if(ht===l){var Dt=[];return tZ(Dt,Ye,se,l.id),Dt}delete ee[ht.id],Be.remove(ht.id),X.push(ht);var Kt=rZ(i,ht,u,E),gn=function(mn){mn.forEach(function(kn){if(X.indexOf(kn)===-1){var sr=kn.id;ee[sr]||(ee[sr]=kn);var yr=Re[ht.id]+FM(ht,kn);if(Se[sr]&&yr>=Se[sr]){Be.add({id:sr,value:Re[sr]});return}se[sr]=ht.id,Se[sr]=yr,Re[sr]=Se[sr]+p8(kn,l,a,P,j),Be.add({id:sr,value:Re[sr]})}})};gn(Kt)}return[a,l]},v8=function(i,a,l){return!(i.x===a.x&&a.x===l.x||i.y===a.y&&a.y===l.y)},iZ=function(i,a,l,u){var E=FM(i,a),P=FM(l,a);E<u&&(u=E),P<u&&(u=P);var j={x:a.x-u/E*(a.x-i.x),y:a.y-u/E*(a.y-i.y)},H={x:a.x-u/P*(a.x-l.x),y:a.y-u/P*(a.y-l.y)};return[j,H]},h8=function(i,a){var l=[],u=i[0];return l.push("M".concat(u.x," ").concat(u.y)),i.forEach(function(E,P){var j=i[P+1],H=i[P+2];if(j&&H)if(v8(E,j,H)){var X=iZ(E,j,H,a),ee=X[0],se=X[1];l.push("L".concat(ee.x," ").concat(ee.y)),l.push("Q".concat(j.x," ").concat(j.y," ").concat(se.x," ").concat(se.y)),l.push("L".concat(se.x," ").concat(se.y))}else l.push("L".concat(j.x," ").concat(j.y));else j&&l.push("L".concat(j.x," ").concat(j.y))}),l.join("")},m8=function(i,a,l,u,E){var P,j;if(!l||!l.getType())P=BR(i);else if(l.getType()==="combo"){var H=l.getKeyShape().getBBox();if(H){var X=l.getModel(),ee=X.x,se=X.y;P={x:ee,y:se,width:H.width,height:H.height,minX:H.minX+ee,maxX:H.maxX+ee,minY:H.minY+se,maxY:H.maxY+se},P.centerX=(P.minX+P.maxX)/2,P.centerY=(P.minY+P.maxY)/2}else P=BR(i)}else P=l&&l.getBBox();if(!u||!u.getType())j=BR(a);else if(u.getType()==="combo"){var Se=u.getKeyShape().getBBox();if(Se){var Re=u.getModel(),Be=Re.x,Ye=Re.y;j={x:Be,y:Ye,width:Se.width,height:Se.height,minX:Se.minX+Be,maxX:Se.maxX+Be,minY:Se.minY+Ye,maxY:Se.maxY+Ye},j.centerX=(j.minX+j.maxX)/2,j.centerY=(j.minY+j.maxY)/2}else j=BR(a)}else j=u&&u.getBBox();var ht=LM(P,E),Tt=LM(j,E),Dt=UR(ht,i,a),Kt=UR(Tt,a,i),gn=u8([Dt,Kt]),bn=ZR(ht,gn),mn=ZR(Tt,gn),kn=[];kn=kn.concat(a4(bn)).concat(a4(mn));var sr={x:(i.x+a.x)/2,y:(i.y+a.y)/2};[gn,bn,mn].forEach(function(jr){kn=kn.concat(qU(jr,sr).filter(function(zr){return VR(zr,ht)&&VR(zr,Tt)}))}),[{x:Dt.x,y:Kt.y},{x:Kt.x,y:Dt.y}].forEach(function(jr){VR(jr,ht)&&VR(jr,Tt)&&kn.push(jr)}),kn.unshift(Dt),kn.push(Kt),kn=Ow(kn);var yr=aZ(kn,Dt,Kt,P,j,i,a);return yr.unshift(i),yr.push(a),r4(yr)},oZ=function(i){if(!(i==null?void 0:i.length))return i;for(var a=i[i.length-1],l={x:a.x,y:a.y},u=[a],E=[a],P=i.length-2;P>=0;P--){var j=i[P];if(j.x===l.x?u.push(j):(u=[j],l.x=j.x),j.y===l.y?E.push(j):(E=[j],l.y=j.y),u.length>2){var H=i.indexOf(u[1]);H>-1&&i.splice(H,1);continue}if(E.length>2){var H=i.indexOf(E[1]);H>-1&&i.splice(H,1)}}return i},g8=function(){function C(){this.arr=[],this.map={},this.arr=[],this.map={}}return C.prototype._innerAdd=function(i,a){for(var l=[0,a-1];l[1]-l[0]>1;){var u=Math.floor((l[0]+l[1])/2);if(this.arr[u].value>i.value)l[1]=u;else if(this.arr[u].value<i.value)l[0]=u;else{this.arr.splice(u,0,i),this.map[i.id]=!0;return}}this.arr.splice(l[1],0,i),this.map[i.id]=!0},C.prototype.add=function(i){delete this.map[i.id];var a=this.arr.length;if(!a){this.arr.push(i),this.map[i.id]=!0;return}if(this.arr[a-1].value<i.value){this.arr.push(i),this.map[i.id]=!0;return}this._innerAdd(i,a)},C.prototype.remove=function(i){!this.map[i]||delete this.map[i]},C.prototype._clearAndGetMinId=function(){for(var i,a=this.arr.length-1;a>=0;a--)this.map[this.arr[a].id]?i=this.arr[a].id:this.arr.splice(a,1);return i},C.prototype._findFirstId=function(){for(;this.arr.length;){var i=this.arr.shift();if(this.map[i.id])return i.id}},C.prototype.minId=function(i){return i?this._clearAndGetMinId():this._findFirstId()},C}(),sZ=function(i,a){return Math.abs(i.x-a.x)+Math.abs(i.y-a.y)},lZ=function(i,a){return Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2))},cZ=function(i,a){return[i,a]},uZ=function(i,a,l,u,E){return r4(m8(i,a,l,u,E.offset))},_8={offset:20,maxAllowedDirectionChange:Math.PI/2,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2}},distFunc:sZ,fallbackRoute:uZ},sH={maxAllowedDirectionChange:Math.PI/4,directions:[{stepX:1,stepY:0},{stepX:1,stepY:1},{stepX:0,stepY:1},{stepX:-1,stepY:1},{stepX:-1,stepY:0},{stepX:-1,stepY:-1},{stepX:0,stepY:-1},{stepX:1,stepY:-1}],distFunc:lZ,fallbackRoute:cZ},Ub=function(i,a){var l=Math.round(Math.abs(i/a)),u=i<0?-1:1;return l<0?0:u*l},fZ=function(i,a,l){var u={};return i.forEach(function(E){if(!!E)for(var P=LM(E.getBBox(),l),j=Ub(P.minX,a);j<=Ub(P.maxX,a);j+=1)for(var H=Ub(P.minY,a);H<=Ub(P.maxY,a);H+=1)u["".concat(j,"|||").concat(H)]=!0}),u},o4=function(i,a){var l=a.x-i.x,u=a.y-i.y;return l||u?Math.atan2(u,l):0},y8=function(i,a){var l=Math.abs(i-a);return l>Math.PI?2*Math.PI-l:l},b8=function(i,a,l){for(var u=Infinity,E=0,P=a.length;E<P;E++){var j=l(i,a[E]);j<u&&(u=j)}return u},WR=function(i,a,l,u,E){var P=[];if(!l)return[i];var j=E.directions,H=E.offset,X=l.getBBox(),ee=a.x>X.minX&&a.x<X.maxX&&a.y>X.minY&&a.y<X.maxY,se=LM(X,H);for(var Se in se)se[Se]=Ub(se[Se],E.gridSize);if(ee){for(var Re=0,Be=j;Re<Be.length;Re++)for(var Ye=Be[Re],ht=[[{x:se.minX,y:se.minY},{x:se.maxX,y:se.minY}],[{x:se.minX,y:se.minY},{x:se.minX,y:se.maxY}],[{x:se.maxX,y:se.minY},{x:se.maxX,y:se.maxY}],[{x:se.minX,y:se.maxY},{x:se.maxX,y:se.maxY}]],Se=0;Se<4;Se++){var Tt=ht[Se],Dt=Mg.getLineIntersect(i,{x:i.x+Ye.stepX*se.width,y:i.y+Ye.stepY*se.height},Tt[0],Tt[1]);Dt&&!i4(i,Dt,X)&&(Dt.id="".concat(Dt.x,"|||").concat(Dt.y),P.push(Dt))}return P}var Kt=UR(se,i,u);return Kt.id="".concat(Kt.x,"|||").concat(Kt.y),[Kt]},s4=function(i,a,l,u){var E=o4(i,a),P=l[i.id];if(!P){var j=o4(u,i);return y8(j,E)}var H=o4({x:P.x,y:P.y},i);return y8(H,E)},dZ=function(i,a,l,u,E,P,j){var H=[u],X=u,ee=i.id,se=i.x,Se=i.y,Re={x:se,y:Se,id:ee};s4(Re,P,a,l)&&(X={x:P.x===u.x?u.x:Re.x*j,y:P.y===u.y?u.y:Re.y*j},H.unshift(X));for(var Be=a[ee];Be&&Be.id!==ee;){var Ye={x:se,y:Se,id:ee},ht={x:Be.x,y:Be.y,id:Be.id},Tt=s4(ht,Ye,a,l);Tt&&(X={x:ht.x===Ye.x?X.x:ht.x*j,y:ht.y===Ye.y?X.y:ht.y*j},H.unshift(X)),ee=ht.id,se=ht.x,Se=ht.y,Be=a[ee]}return H[0].x=se===l.x?E.x:X.x,H[0].y=Se===l.y?E.y:X.y,H.unshift(E),H},pZ=function(i,a,l,u,E){if(isNaN(i.x)||isNaN(a.x))return[];var P=(0,Nn.deepMix)(_8,E);P.obstacles=P.obstacles||[];var j=P.penalties,H=P.gridSize,X=fZ(P.obstacles.concat([l,u]),H,P.offset),ee={x:Ub(i.x,H),y:Ub(i.y,H)},se={x:Ub(a.x,H),y:Ub(a.y,H)};i.id="".concat(ee.x,"|||").concat(ee.y),a.id="".concat(se.x,"|||").concat(se.y);var Se=WR(ee,i,l,se,P),Re=WR(se,a,u,ee,P);Se.forEach(function(hi){delete X[hi.id]}),Re.forEach(function(hi){delete X[hi.id]});for(var Be={},Ye={},ht={},Tt={},Dt={},Kt=new g8,gn=0;gn<Se.length;gn++){var bn=Se[gn];Be[bn.id]=bn,Tt[bn.id]=0,Dt[bn.id]=b8(bn,Re,P.distFunc),Kt.add({id:bn.id,value:Dt[bn.id]})}var mn=P.maximumLoops,kn,sr,yr,jr,zr,va,za=Infinity,xi={};for(Re.forEach(function(hi){xi["".concat(hi.x,"|||").concat(hi.y)]=!0}),Object.keys(Be).forEach(function(hi){var io=Be[hi].id;Dt[io]<=za&&(za=Dt[io],kn=Be[io])});Object.keys(Be).length>0&&mn>0;){var Di=Kt.minId((mn+1)%30==0);if(Di)kn=Be[Di];else break;if(xi["".concat(kn.x,"|||").concat(kn.y)])return dZ(kn,ht,ee,a,i,se,H);delete Be[kn.id],Kt.remove(kn.id),Ye[kn.id]=!0;for(var gn=0;gn<P.directions.length;gn++){sr=P.directions[gn];var Si="".concat(Math.round(kn.x)+sr.stepX,"|||").concat(Math.round(kn.y)+sr.stepY);if(yr={x:kn.x+sr.stepX,y:kn.y+sr.stepY,id:Si},!Ye[Si]&&(va=s4(kn,yr,ht,ee),!(va>P.maxAllowedDirectionChange)&&!X[Si])){Be[Si]||(Be[Si]=yr);var jo=j[va];jr=P.distFunc(kn,yr)+(isNaN(jo)?H:jo),zr=Tt[kn.id]+jr;var ro=Tt[Si];ro&&zr>=ro||(ht[Si]=kn,Tt[Si]=zr,Dt[Si]=zr+b8(yr,Re,P.distFunc),Kt.add({id:Si,value:Dt[Si]}))}}mn-=1}return P.fallbackRoute(i,a,l,u,P)};PL("polyline",{options:{color:ru.defaultEdge.color,size:ru.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:ru.defaultEdge.style.stroke,lineAppendWidth:ru.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:ru.edgeLabel.style.fill,fontSize:ru.edgeLabel.style.fontSize,fontFamily:ru.windowFontFamily}},routeCfg:{obstacles:[],maxAllowedDirectionChange:Math.PI,maximumLoops:500,gridSize:10},stateStyles:Ts({},ru.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(i,a){var l=this.getShapeStyle(i);l.radius===0&&delete l.radius;var u=a.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:l});return a.shapeMap["edge-shape"]=u,u},getShapeStyle:function(i){var a=this.options.style,l={stroke:i.color},u=(0,Nn.mix)({},a,l,i.style);i=this.getPathPoints(i),this.radius=u.radius,this.offset=u.offset;var E=i.startPoint,P=i.endPoint,j=this.getControlPoints(i),H=[E];j&&(H=H.concat(j)),H.push(P);var X=i.sourceNode,ee=i.targetNode,se=u.radius,Se=this.options.routeCfg,Re=(0,Nn.mix)({},Se,i.routeCfg);Re.offset=u.offset;var Be=this.getPath(H,X,ee,se,Re,!Boolean(j));((0,Nn.isArray)(Be)&&Be.length<=1||(0,Nn.isString)(Be)&&Be.indexOf("L")===-1)&&(Be="M0 0, L0 0"),(isNaN(E.x)||isNaN(E.y)||isNaN(P.x)||isNaN(P.y))&&(Be="M0 0, L0 0");var Ye=(0,Nn.mix)({},ru.defaultEdge.style,u,{lineWidth:i.size,path:Be});return Ye},updateShapeStyle:function(i,a){var l=a.getContainer();if(!!a.isVisible()){var u={stroke:i.color},E=l.shapeMap["edge-shape"]||l.find(function(gn){return gn.get("className")==="edge-shape"})||a.getKeyShape(),P=i.size;i=this.getPathPoints(i);var j=i.startPoint,H=i.endPoint,X=this.getControlPoints(i),ee=[j];X&&(ee=ee.concat(X)),ee.push(H);var se=E.attr(),Se=(0,Nn.mix)({},u,se,i.style),Re=i.sourceNode,Be=i.targetNode,Ye=Se.radius,ht=this.options.routeCfg,Tt=(0,Nn.mix)({},ht,i.routeCfg);Tt.offset=Se.offset;var Dt=this.getPath(ee,Re,Be,Ye,Tt,!Boolean(X));((0,Nn.isArray)(Dt)&&Dt.length<=1||(0,Nn.isString)(Dt)&&Dt.indexOf("L")===-1)&&(Dt="M0 0, L0 0"),(isNaN(j.x)||isNaN(j.y)||isNaN(H.x)||isNaN(H.y))&&(Dt="M0 0, L0 0"),se.endArrow&&Se.endArrow===!1&&(i.style.endArrow={path:""}),se.startArrow&&Se.startArrow===!1&&(i.style.startArrow={path:""});var Kt=(0,Nn.mix)(u,E.attr(),{lineWidth:P,path:Dt},i.style);E&&E.attr(Kt)}},getPath:function(i,a,l,u,E,P){var j=E.offset,H=E.obstacles,X=E.simple;if(!j||i.length>2||P===!1){if(u)return h8(i,u);var ee=[];return(0,Nn.each)(i,function(Be,Ye){Ye===0?ee.push(["M",Be.x,Be.y]):ee.push(["L",Be.x,Be.y])}),ee}X!==!1&&!(H==null?void 0:H.length)&&(X=!0);var se=X?m8(i[i.length-1],i[0],l,a,j):pZ(i[0],i[i.length-1],a,l,E);if(!se||!se.length)return"M0 0, L0 0";if(u){var Se=h8(se,u);return Se}se=oZ(se);var Re=Mg.pointsToPolygon(se);return Re}},"single-edge");var x8=m1.cloneEvent,E8=m1.isNaN,Zb=Math.abs,HR=10,fE=["shift","ctrl","alt","control"],vZ={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0,allowDragOnItem:!1}},getEvents:function(){return{mousedown:"onMouseDown",drag:"onDragMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onMouseUp"}},updateViewport:function(i){var a=this.origin,l=+i.clientX,u=+i.clientY;if(!(E8(l)||E8(u))){var E=l-a.x,P=u-a.y;this.get("direction")==="x"?P=0:this.get("direction")==="y"&&(E=0),this.origin={x:l,y:u};var j=this.graph.get("width"),H=this.graph.get("height"),X=this.graph.get("canvas").getCanvasBBox(),ee=this.scalableRange,se=this.scalableRange;ee<1&&ee>-1&&(ee=j*ee,se=H*se),(X.minX<=j+ee&&X.minX+E>j+ee||X.maxX+ee>=0&&X.maxX+ee+E<0)&&(E=0),(X.minY<=H+se&&X.minY+P>H+se||X.maxY+se>=0&&X.maxY+se+P<0)&&(P=0),this.graph.translate(E,P)}},onTouchStart:function(i){var a=this,l=i.originalEvent.touches,u=l[0],E=l[1];u&&E||(i.preventDefault(),this.mousedown=!0,a.onDragStart(i))},onMouseDown:function(i){this.mousedown=!0},onDragMove:function(i){!this.mousedown||(this.dragstart?this.onDrag(i):(this.dragstart=!0,this.onDragStart(i)))},onDragStart:function(i){var a=this,l=i.originalEvent;if(!(l&&i.name!=="touchstart"&&l.button!==0)&&!(i.name!=="touchstart"&&typeof window!="undefined"&&window.event&&!window.event.buttons&&!window.event.button)&&!!this.shouldBegin(i,this)&&!a.keydown&&!!this.allowDrag(i)){if(a.origin={x:i.clientX,y:i.clientY},a.dragging=!1,this.enableOptimize){for(var u=this.graph,E=u.getEdges(),P=0,j=E.length;P<j;P++){var H=E[P].get("group").get("children");!H||H.forEach(function(Kt){Kt.set("ori-visibility",Kt.get("ori-visibility")||Kt.get("visible")),Kt.hide()})}for(var X=u.getNodes(),ee=0,se=X.length;ee<se;ee++)for(var Se=X[ee].getContainer(),Re=Se.get("children"),Be=0,Ye=Re;Be<Ye.length;Be++){var ht=Ye[Be],Tt=ht.get("isKeyShape");Tt||(ht.set("ori-visibility",ht.get("ori-visibility")||ht.get("visible")),ht.hide())}}if(typeof window!="undefined"){var Dt=this;this.handleDOMContextMenu=function(Kt){return Dt.onMouseUp(Kt)},document.body.addEventListener("contextmenu",this.handleDOMContextMenu)}}},onTouchMove:function(i){var a=this,l=i.originalEvent.touches,u=l[0],E=l[1];if(u&&E){this.onMouseUp(i);return}i.preventDefault(),a.onDrag(i)},onDrag:function(i){if(!!this.mousedown){var a=this.graph;if(!this.keydown&&!!this.allowDrag(i)&&(i=x8(i),!!this.origin)){if(this.dragging)i.type="drag",a.emit("canvas:drag",i);else{if(Zb(this.origin.x-i.clientX)+Zb(this.origin.y-i.clientY)<HR)return;this.shouldBegin(i,this)&&(i.type="dragstart",a.emit("canvas:dragstart",i),this.originPosition={x:i.clientX,y:i.clientY},this.dragging=!0)}this.shouldUpdate(i,this)&&this.updateViewport(i)}}},onMouseUp:function(i){var a,l;this.mousedown=!1,this.dragstart=!1;var u=this.graph;if(!this.keydown){var E=u.getZoom(),P=u.get("modeController"),j=(l=(a=P==null?void 0:P.modes[P.mode])===null||a===void 0?void 0:a.filter(function(kn){return kn.type==="zoom-canvas"}))===null||l===void 0?void 0:l[0],H=j?j.optimizeZoom||.1:0;if(this.enableOptimize){for(var X=u.getEdges(),ee=0,se=X.length;ee<se;ee++){var Se=X[ee].get("group").get("children");!Se||Se.forEach(function(kn){var sr=kn.get("ori-visibility");kn.set("ori-visibility",void 0),sr&&kn.show()})}if(E>H)for(var Re=u.getNodes(),Be=0,Ye=Re.length;Be<Ye;Be++)for(var ht=Re[Be].getContainer(),Tt=ht.get("children"),Dt=0,Kt=Tt;Dt<Kt.length;Dt++){var gn=Kt[Dt],bn=gn.get("isKeyShape");if(!bn){var mn=gn.get("ori-visibility");gn.set("ori-visibility",void 0),mn&&gn.show()}}}if(!this.dragging){this.origin=null;return}i=x8(i),this.shouldEnd(i,this)&&this.updateViewport(i),i.type="dragend",i.dx=i.clientX-this.originPosition.x,i.dy=i.clientY-this.originPosition.y,u.emit("canvas:dragend",i),this.endDrag(),typeof window!="undefined"&&document.body.removeEventListener("contextmenu",this.handleDOMContextMenu)}},endDrag:function(){this.origin=null,this.dragging=!1,this.dragbegin=!1,this.mousedown=!1,this.dragstart=!1},onKeyDown:function(i){var a=this,l=i.key;!l||(fE.indexOf(l.toLowerCase())>-1?a.keydown=!0:a.keydown=!1)},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1},allowDrag:function(i){var a,l,u=i.target,E=u&&u.isCanvas&&u.isCanvas();if((0,Nn.isBoolean)(this.allowDragOnItem)&&!this.allowDragOnItem&&!E)return!1;if((0,Nn.isObject)(this.allowDragOnItem)){var P=this.allowDragOnItem,j=P.node,H=P.edge,X=P.combo,ee=(l=(a=i.item)===null||a===void 0?void 0:a.getType)===null||l===void 0?void 0:l.call(a);if(!j&&ee==="node"||!H&&ee==="edge"||!X&&ee==="combo")return!1}return!0}},hZ={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected",enableOptimize:!1,enableDebounce:!1,enableStack:!0}},getEvents:function(){return{"node:mousedown":"onMouseDown",drag:"onDragMove",dragend:"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onDragEnd",afterchangedata:"onDragEnd"}},validationCombo:function(i){if(!this.origin||!i||i.destroyed)return!1;var a=i.getType();return a==="combo"},onTouchStart:function(i){if(!!i.item){var a=this;try{var l=i.originalEvent.touches,u=l[0],E=l[1];if(u&&E)return;i.preventDefault()}catch(P){console.warn("Touch original event not exist!")}this.mousedown={item:i.item,target:i.target,origin:{x:i.x,y:i.y}},this.dragstart=!0,a.onDragStart(i)}},onTouchMove:function(i){var a=this;try{var l=i.originalEvent.touches,u=l[0],E=l[1];if(u&&E){a.onDragEnd(i);return}i.preventDefault()}catch(P){console.warn("Touch original event not exist!")}a.onDrag(i)},onMouseDown:function(i){this.mousedown={item:i.item,target:i.target,origin:{x:i.x,y:i.y}},typeof window!="undefined"&&!this.windowEventBinded&&(this.windowEventBinded=!0,document.body.addEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.addEventListener("mouseup",this.onDragEnd.bind(this)))},onDragMove:function(i){var a,l;if(((l=(a=i.item)===null||a===void 0?void 0:a.getType)===null||l===void 0?void 0:l.call(a))!=="node"){this.onDragEnd();return}!this.mousedown||(this.dragstart?this.onDrag(Ts(Ts({},i),this.mousedown)):(this.dragstart=!0,this.onDragStart(i)))},onDragStart:function(i){var a=this;if(this.currentShouldEnd=!0,!!this.shouldBegin(Ts(Ts({},i),this.mousedown),this)){var l=this.mousedown,u=l.item,E=l.target;if(!(!u||u.destroyed||u.hasLocked())){var P=u.getContainer();if(P.set("capture",!1),this.cachedCaptureItems||(this.cachedCaptureItems=[]),this.cachedCaptureItems.push(u),E){var j=E.get("isAnchorPoint");if(j)return}var H=this.graph;this.targets=[],this.targetCombo=null;var X=H.findAllByState("node",this.selectedState),ee=u.get("id"),se=X.filter(function(Re){var Be=Re.get("id");return ee===Be});if(se.length===0?this.targets.push(u):X.length>1?X.forEach(function(Re){var Be=Re.hasLocked();Be||a.targets.push(Re)}):this.targets.push(u),this.graph.get("enabledStack")&&this.enableStack){var Se=[];this.targets.forEach(function(Re){var Be=Re.getModel(),Ye=Be.x,ht=Be.y,Tt=Be.id;Se.push({x:Ye,y:ht,id:Tt})}),this.set("beforeDragNodes",Se)}this.hidenEdge={},this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(Re){var Be=Re.getEdges();Be.forEach(function(Ye){!Ye.isVisible()||(a.hidenEdge[Ye.getID()]=!0,Ye.hide())})}),this.origin=this.mousedown.origin,this.point={},this.originPoint={}}}},onDrag:function(i){var a=this;if(!(!this.mousedown||!this.origin)&&!!this.shouldUpdate(i,this))if(this.get("enableDelegate"))this.updateDelegate(i);else if(this.enableDebounce)this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:i,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos});else{var l={};this.targets.map(function(u){a.update(u,i);var E=u.getModel().comboId;E&&(l[E]=a.graph.findById(E))}),this.onlyChangeComboSize&&this.updateParentCombos()}},onDragEnd:function(i){var a=this,l;if(this.mousedown=!1,this.dragstart=!1,typeof window!="undefined"&&this.windowEventBinded&&(this.windowEventBinded=!1,document.body.removeEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.removeEventListener("mouseup",this.onDragEnd.bind(this))),!!this.origin){(l=this.cachedCaptureItems)===null||l===void 0||l.forEach(function(P){var j=P.getContainer();j.set("capture",!0)}),this.cachedCaptureItems=[],this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(P){var j=P.getEdges();j.forEach(function(H){a.hidenEdge[H.getID()]&&H.show(),H.refresh()})}),this.hidenEdge={};var u=this.graph;if(u.get("enabledStack")&&this.enableStack){var E={before:{nodes:[],edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.get("beforeDragNodes").forEach(function(P){E.before.nodes.push(P)}),this.targets.forEach(function(P){var j=P.getModel(),H=j.x,X=j.y,ee=j.id;E.after.nodes.push({x:H,y:X,id:ee})}),u.pushStack("update",(0,Nn.clone)(E))}u.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null}},onDropCombo:function(i){var a=i.item;if(this.currentShouldEnd=this.shouldEnd(i,a,this),this.updatePositions(i,!this.currentShouldEnd),!(!this.currentShouldEnd||!this.validationCombo(a))){var l=this.graph;if(this.comboActiveState&&l.setItemState(a,this.comboActiveState,!1),this.targetCombo=a,this.onlyChangeComboSize)l.updateCombos();else{var u=a.getModel();this.targets.map(function(E){var P=E.getModel();P.comboId!==u.id&&l.updateComboTree(E,u.id)}),l.updateCombo(a)}l.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo})}},onDropCanvas:function(i){var a=this.graph;this.currentShouldEnd=this.shouldEnd(i,void 0,this),this.updatePositions(i,!this.currentShouldEnd),!(!this.targets||this.targets.length===0||!this.currentShouldEnd)&&(this.onlyChangeComboSize?this.updateParentCombos():this.targets.map(function(l){var u=l.getModel();u.comboId&&a.updateComboTree(l)}))},onDropNode:function(i){if(!(!this.targets||this.targets.length===0)){var a=this,l=i.item,u=a.graph,E=l.getModel().comboId,P=E?u.findById(E):void 0;if(this.currentShouldEnd=this.shouldEnd(i,P,this),this.updatePositions(i,!this.currentShouldEnd),!!this.currentShouldEnd){if(this.onlyChangeComboSize)this.updateParentCombos();else if(E){var j=u.findById(E);a.comboActiveState&&u.setItemState(j,a.comboActiveState,!1),this.targets.map(function(H){var X=H.getModel();E!==X.comboId&&u.updateComboTree(H,E)}),u.updateCombo(j)}else this.targets.map(function(H){var X=H.getModel();X.comboId&&u.updateComboTree(H)});u.emit("dragnodeend",{items:this.targets,targetItem:l})}}},onDragEnter:function(i){var a=i.item;if(!!this.validationCombo(a)){var l=this.graph;this.comboActiveState&&l.setItemState(a,this.comboActiveState,!0)}},onDragLeave:function(i){var a=i.item;if(!!this.validationCombo(a)){var l=this.graph;this.comboActiveState&&l.setItemState(a,this.comboActiveState,!1)}},updatePositions:function(i,a){var l=this;!this.targets||this.targets.length===0||(this.get("enableDelegate")?this.enableDebounce?this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:i,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos}):a||this.targets.map(function(u){return l.update(u,i)}):this.targets.map(function(u){return l.update(u,i,a)}))},update:function(i,a,l){var u=this.origin,E=i.get("model"),P=i.get("id");this.point[P]||(this.point[P]={x:E.x||0,y:E.y||0});var j=a.x-u.x+this.point[P].x,H=a.y-u.y+this.point[P].y;l&&(j+=u.x-a.x,H+=u.y-a.y);var X={x:j,y:H};this.get("updateEdge")?this.graph.updateItem(i,X,!1):i.updatePosition(X)},debounceUpdate:(0,Nn.debounce)(function(C){var i=C.targets,a=C.graph,l=C.point,u=C.origin,E=C.evt,P=C.updateEdge,j=C.onlyChangeComboSize,H=C.updateParentCombos;i.map(function(X){var ee=X.get("model"),se=X.get("id");l[se]||(l[se]={x:ee.x||0,y:ee.y||0});var Se=E.x-u.x+l[se].x,Re=E.y-u.y+l[se].y,Be={x:Se,y:Re};P?a.updateItem(X,Be,!1):X.updatePosition(Be)}),j&&H(a,i)},50,!0),updateDelegate:function(i){var a=this.graph;if(this.delegateRect){var Se=i.x-this.origin.x+this.originPoint.minX,Re=i.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:Se,y:Re})}else{var l=a.get("group"),u=(0,Nn.deepMix)({},qS.delegateStyle,this.delegateStyle),E=this.calculationGroupPosition(i),P=E.x,j=E.y,H=E.width,X=E.height,ee=E.minX,se=E.minY;this.originPoint={x:P,y:j,width:H,height:X,minX:ee,minY:se},this.delegateRect=l.addShape("rect",{attrs:Ts({width:H,height:X,x:P,y:j},u),name:"rect-delegate-shape"}),this.delegate=this.delegateRect,this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(i){var a=this.targets;a.length===0&&a.push(i.item);for(var l=Infinity,u=-Infinity,E=Infinity,P=-Infinity,j=0;j<a.length;j++){var H=a[j],X=H.getBBox(),ee=X.minX,se=X.minY,Se=X.maxX,Re=X.maxY;ee<l&&(l=ee),se<E&&(E=se),Se>u&&(u=Se),Re>P&&(P=Re)}var Be=Math.floor(l),Ye=Math.floor(E),ht=Math.ceil(u)-Math.floor(l),Tt=Math.ceil(P)-Math.floor(E);return{x:Be,y:Ye,width:ht,height:Tt,minX:l,minY:E}},updateParentCombos:function(i,a){var l=i||this.graph,u=a||this.targets,E={};u==null||u.forEach(function(P){var j=P.getModel().comboId;j&&(E[j]=l.findById(j))}),Object.values(E).forEach(function(P){P&&l.updateCombo(P)})}},mZ={getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return this.get("trigger")==="mouseenter"?{"node:mouseenter":"setAllItemStates","combo:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState","combo:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","combo:click":"setAllItemStates","canvas:click":"clearActiveState","node:touchstart":"setOnTouchStart","combo:touchstart":"setOnTouchStart","canvas:touchstart":"clearOnTouchStart"}},setOnTouchStart:function(i){var a=this;try{var l=i.originalEvent.touches,u=l[0],E=l[1];if(u&&E)return;i.preventDefault()}catch(P){console.warn("Touch original event not exist!")}a.setAllItemStates(i)},clearOnTouchStart:function(i){var a=this;try{var l=i.originalEvent.touches,u=l[0],E=l[1];if(u&&E)return;i.preventDefault()}catch(P){console.warn("Touch original event not exist!")}a.clearActiveState(i)},setAllItemStates:function(i){clearTimeout(this.timer),this.throttleSetAllItemStates(i,this)},clearActiveState:function(i){var a=this;this.timer=setTimeout(function(){a.throttleClearActiveState(i,a)},50)},throttleSetAllItemStates:(0,Nn.throttle)(function(C,i){var a=C.item,l=i.graph;if(!(!l||l.destroyed)&&(i.item=a,!!i.shouldUpdate(C.item,{event:C,action:"activate"},i))){for(var u=i.activeState,E=i.inactiveState,P=l.getNodes(),j=l.getCombos(),H=l.getEdges(),X=l.get("vedges"),ee=P.length,se=j.length,Se=H.length,Re=X.length,Be=i.inactiveItems||{},Ye=i.activeItems||{},ht=0;ht<ee;ht++){var Tt=P[ht],Dt=Tt.getID(),Kt=Tt.hasState("selected");i.resetSelected&&Kt&&l.setItemState(Tt,"selected",!1),Ye[Dt]&&(l.setItemState(Tt,u,!1),delete Ye[Dt]),E&&!Be[Dt]&&(l.setItemState(Tt,E,!0),Be[Dt]=Tt)}for(var ht=0;ht<se;ht++){var gn=j[ht],bn=gn.getID(),Kt=gn.hasState("selected");i.resetSelected&&Kt&&l.setItemState(gn,"selected",!1),Ye[bn]&&(l.setItemState(gn,u,!1),delete Ye[bn]),E&&!Be[bn]&&(l.setItemState(gn,E,!0),Be[bn]=gn)}for(var ht=0;ht<Se;ht++){var mn=H[ht],kn=mn.getID();Ye[kn]&&(l.setItemState(mn,u,!1),delete Ye[kn]),E&&!Be[kn]&&(l.setItemState(mn,E,!0),Be[kn]=mn)}for(var ht=0;ht<Re;ht++){var sr=X[ht],yr=sr.getID();Ye[yr]&&(l.setItemState(sr,u,!1),delete Ye[yr]),E&&!Be[yr]&&(l.setItemState(sr,E,!0),Be[yr]=sr)}if(a&&!a.destroyed){E&&(l.setItemState(a,E,!1),delete Be[a.getID()]),Ye[a.getID()]||(l.setItemState(a,u,!0),Ye[a.getID()]=a);for(var jr=a.getEdges(),zr=jr.length,ht=0;ht<zr;ht++){var mn=jr[ht],kn=mn.getID(),va=void 0;mn.getSource()===a?va=mn.getTarget():va=mn.getSource();var za=va.getID();E&&Be[za]&&(l.setItemState(va,E,!1),delete Be[za]),Ye[za]||(l.setItemState(va,u,!0),Ye[za]=va),Be[kn]&&(l.setItemState(mn,E,!1),delete Be[kn]),Ye[kn]||(l.setItemState(mn,u,!0),Ye[kn]=mn),mn.toFront()}}i.activeItems=Ye,i.inactiveItems=Be,l.emit("afteractivaterelations",{item:C.item,action:"activate"})}},50,{trailing:!0,leading:!0}),throttleClearActiveState:(0,Nn.throttle)(function(C,i){var a=i.get("graph");if(!(!a||a.destroyed)&&!!i.shouldUpdate(C.item,{event:C,action:"deactivate"},i)){var l=i.activeState,u=i.inactiveState,E=i.activeItems||{},P=i.inactiveItems||{};Object.values(E).filter(function(j){return!j.destroyed}).forEach(function(j){a.clearItemStates(j,l)}),Object.values(P).filter(function(j){return!j.destroyed}).forEach(function(j){a.clearItemStates(j,u)}),i.activeItems={},i.inactiveItems={},a.emit("afteractivaterelations",{item:C.item||i.get("item"),action:"deactivate"})}},50,{trailing:!0,leading:!0})},GR=Math.min,l4=Math.max,c4=Math.abs,S8="shift",gZ=["drag","shift","ctrl","alt","control"],_Z={getDefaultCfg:function(){return{brushStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},selectedState:"selected",trigger:S8,includeEdges:!0,includeCombos:!1,selectedEdges:[],selectedNodes:[],selectedCombos:[]}},getEvents:function(){return gZ.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=S8,console.warn("Behavior brush-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),this.trigger==="drag"?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(i){var a=i.item,l=this.brush;a||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates(),l||(l=this.createBrush()),this.originPoint={x:i.canvasX,y:i.canvasY},l.attr({width:0,height:0}),l.show(),this.dragging=!0)},onMouseMove:function(i){!this.dragging||this.trigger!=="drag"&&!this.keydown||this.updateBrush(i)},onMouseUp:function(i){var a=this.graph;!this.brush&&!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(i),this.dragging=!1)},clearStates:function(){var i=this,a=i.graph,l=i.selectedState,u=a.findAllByState("node",l),E=a.findAllByState("edge",l),P=a.findAllByState("combo",l);u.forEach(function(j){return a.setItemState(j,l,!1)}),E.forEach(function(j){return a.setItemState(j,l,!1)}),P.forEach(function(j){return a.setItemState(j,l,!1)}),this.selectedNodes=[],this.selectedEdges=[],this.selectedCombos=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges,this.selectedCombos),a.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},isBBoxCenterInRect:function(i,a,l,u,E){var P=i.getBBox();return P.centerX>=a&&P.centerX<=l&&P.centerY>=u&&P.centerY<=E},getSelectedNodes:function(i){var a=this,l=this,u=l.graph,E=l.originPoint,P=l.shouldUpdate,j=l.isBBoxCenterInRect,H=this.selectedState,X={x:i.x,y:i.y},ee=u.getPointByCanvas(E.x,E.y),se=GR(X.x,ee.x),Se=l4(X.x,ee.x),Re=GR(X.y,ee.y),Be=l4(X.y,ee.y),Ye=[],ht=[];u.getNodes().forEach(function(Kt){if(Kt.isVisible()&&j(Kt,se,Se,Re,Be)&&P(Kt,"select",a)){Ye.push(Kt);var gn=Kt.getModel();ht.push(gn.id),u.setItemState(Kt,H,!0)}});var Tt=[];this.includeEdges&&Ye.forEach(function(Kt){var gn=Kt.getOutEdges();gn.forEach(function(bn){if(!!bn.isVisible()){var mn=bn.getModel(),kn=mn.source,sr=mn.target;ht.includes(kn)&&ht.includes(sr)&&P(bn,"select",a)&&(Tt.push(bn),u.setItemState(bn,a.selectedState,!0))}})});var Dt=[];this.includeCombos&&u.getCombos().forEach(function(Kt){if(Kt.isVisible()&&j(Kt,se,Se,Re,Be)&&P(Kt,"select",a)){Dt.push(Kt);var gn=Kt.getModel();ht.push(gn.id),u.setItemState(Kt,H,!0)}}),this.selectedEdges=Tt,this.selectedNodes=Ye,this.selectedCombos=Dt,this.onSelect&&this.onSelect(Ye,Tt,Dt),u.emit("nodeselectchange",{selectedItems:{nodes:Ye,edges:Tt,combos:Dt},select:!0})},createBrush:function(){var i=this,a=i.graph.get("canvas").addShape("rect",{attrs:i.brushStyle,capture:!1,name:"brush-shape"});return this.brush=a,this.delegate=a,a},updateBrush:function(i){var a=this.originPoint;this.brush.attr({width:c4(i.canvasX-a.x),height:c4(i.canvasY-a.y),x:GR(i.canvasX,a.x),y:GR(i.canvasY,a.y)})},onKeyDown:function(i){var a=i.key;if(!!a){var l=this.trigger.toLowerCase(),u=a.toLowerCase();u===l||u==="control"&&l==="ctrl"||u==="ctrl"&&l==="control"?this.keydown=!0:this.keydown=!1}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}},C8="shift",w8=["shift","ctrl","alt","control"],T8={getDefaultCfg:function(){return{multiple:!0,trigger:C8,selectedState:"selected",selectNode:!0,selectEdge:!1,selectCombo:!0}},getEvents:function(){var i=this;return w8.indexOf(i.trigger.toLowerCase())>-1||(i.trigger=C8,console.warn("Behavior click-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),i.multiple?{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(i){var a=this,l=i.item;if(!(!l||l.destroyed)){var u=l.getType(),E=a.graph,P=a.keydown,j=a.multiple,H=a.shouldUpdate,X=a.shouldBegin;if(!!X(i,a)){if(!P||!j){var ee=E.findAllByState("node",a.selectedState).concat(E.findAllByState("edge",a.selectedState)).concat(E.findAllByState("combo",a.selectedState));(0,Nn.each)(ee,function(Ye){Ye!==l&&E.setItemState(Ye,a.selectedState,!1)})}var se=function(){switch(u){case"node":return a.selectNode;case"edge":return a.selectEdge;case"combo":return a.selectCombo;default:return!1}}();if(!se){var Se=E.findAllByState("node",a.selectedState),Re=E.findAllByState("edge",a.selectedState),Be=E.findAllByState("combo",a.selectedState);E.emit("nodeselectchange",{selectedItems:{nodes:Se,edges:Re,combos:Be},select:!1});return}if(l.hasState(a.selectedState)){H(i,a)&&E.setItemState(l,a.selectedState,!1);var Se=E.findAllByState("node",a.selectedState),Re=E.findAllByState("edge",a.selectedState),Be=E.findAllByState("combo",a.selectedState);E.emit("nodeselectchange",{target:l,selectedItems:{nodes:Se,edges:Re,combos:Be},select:!1})}else{H(i,a)&&E.setItemState(l,a.selectedState,!0);var Se=E.findAllByState("node",a.selectedState),Re=E.findAllByState("edge",a.selectedState),Be=E.findAllByState("combo",a.selectedState);E.emit("nodeselectchange",{target:l,selectedItems:{nodes:Se,edges:Re,combos:Be},select:!0})}}}},onCanvasClick:function(i){var a=this,l=this,u=l.graph,E=l.shouldBegin;if(!!E(i,this)){var P=u.findAllByState("node",this.selectedState);(0,Nn.each)(P,function(X){u.setItemState(X,a.selectedState,!1)});var j=u.findAllByState("edge",this.selectedState);(0,Nn.each)(j,function(X){u.setItemState(X,a.selectedState,!1)});var H=u.findAllByState("combo",this.selectedState);(0,Nn.each)(H,function(X){u.setItemState(X,a.selectedState,!1)}),u.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})}},onKeyDown:function(i){var a=this,l=i.key;!l||(l.toLowerCase()===this.trigger.toLowerCase()||l.toLowerCase()==="control"?a.keydown=!0:a.keydown=!1)},onKeyUp:function(){var i=this;i.keydown=!1}},yZ=U_,$R=.05,jM={getDefaultCfg:function(){return this.isFireFox=QD()==="firefox",{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.1,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"},animate:!1,animateCfg:{duration:500}}},getEvents:function(){var i=this.fixSelectedItems;return i.fixState||(i.fixState="selected"),i.fixAll&&(i.fixLineWidth=!0,i.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"}},onTouchStart:function(i){var a=i.originalEvent.touches,l=a[0],u=a[1];i.preventDefault(),!!u&&(this.shouldBegin&&!this.shouldBegin(i,this)||(this.startPoint={pageX:l.pageX,pageY:l.pageY},this.moveable=!0,u&&(this.endPoint={pageX:u.pageX,pageY:u.pageY}),this.originScale=this.graph.getZoom()||this.currentScale||1))},onTouchMove:function(i){if(!!this.moveable){i.preventDefault();var a=i.originalEvent.touches,l=a[0],u=a[1];if(!!u){this.endPoint||(this.endPoint={pageX:u.pageX,pageY:u.pageY});var E=function(Ye,ht){return Math.hypot(ht.x-Ye.x,ht.y-Ye.y)},P=E({x:l.pageX,y:l.pageY},{x:u.pageX,y:u.pageY})/E({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),j=this.originScale*P;this.currentScale=j;var H=this.get("minZoom")||this.graph.get("minZoom"),X=this.get("maxZoom")||this.graph.get("maxZoom");if(!(j>X||j<H)){var ee=this.get("animate"),se=this.get("animateCfg"),Se=this.graph.get("canvas"),Re=Se.getPointByClient(i.clientX,i.clientY);this.graph.zoomTo(j,{x:Re.x,y:Re.y},ee,se),this.graph.emit("wheelzoom",i)}}}},onTouchEnd:function(){this.moveable=!1,this.endPoint=null},onWheel:function(i){var a=this,l=this,u=l.graph,E=l.fixSelectedItems;if(!(this.shouldBegin&&!this.shouldBegin(i,this))&&!!this.shouldUpdate(i,this)){i.preventDefault();var P=u.get("canvas"),j=P.getPointByClient(i.clientX,i.clientY),H=this.get("sensitivity"),X=u.getZoom(),ee=X,se=X;this.isFireFox?i.deltaY>0||i.wheelDelta<0?ee=1-$R*H:ee=1/(1-$R*H):i.wheelDelta<0?ee=1-$R*H:ee=1/(1-$R*H),se=X*ee;var Se=this.get("minZoom")||u.get("minZoom"),Re=this.get("maxZoom")||u.get("maxZoom");se>Re?se=Re:se<Se&&(se=Se);var Be=this.get("enableOptimize");if(Be){var Ye=this.get("optimizeZoom"),ht=this.get("optimized"),Tt=u.getNodes(),Dt=u.getEdges(),Kt=Tt.length,gn=Dt.length;if(!ht){for(var bn=0;bn<Kt;bn++){var mn=Tt[bn];if(!mn.destroyed)for(var kn=mn.get("group").get("children"),sr=kn.length,yr=0;yr<sr;yr++){var jr=kn[yr];!jr.destoryed&&!jr.get("isKeyShape")&&(jr.set("ori-visibility",jr.get("ori-visibility")||jr.get("visible")),jr.hide())}}for(var zr=0;zr<gn;zr++)for(var va=Dt[zr],kn=va.get("group").get("children"),sr=kn.length,yr=0;yr<sr;yr++){var jr=kn[yr];jr.set("ori-visibility",jr.get("ori-visibility")||jr.get("visible")),jr.hide()}this.set("optimized",!0)}clearTimeout(this.get("timeout"));var za=setTimeout(function(){var gu=u.getZoom(),Vc=a.get("optimized");if(Vc){a.set("optimized",!1);for(var Wc=0;Wc<Kt;Wc++){var Mu=Tt[Wc],Rc=Mu.get("group").get("children"),Nl=Rc.length;if(gu<Ye){var Oc=Mu.getKeyShape(),au=Oc.get("ori-visibility");Oc.set("ori-visibility",void 0),au&&Oc.show()}else for(var ef=0;ef<Nl;ef++){var ju=Rc[ef],au=ju.get("ori-visibility");ju.set("ori-visibility",void 0),!ju.get("visible")&&au&&au&&ju.show()}}for(var Gf=0;Gf<gn;Gf++){var ip=Dt[Gf],Rc=ip.get("group").get("children"),Nl=Rc.length;if(gu<Ye){var Oc=ip.getKeyShape(),au=Oc.get("ori-visibility");Oc.set("ori-visibility",void 0),au&&Oc.show()}else for(var ef=0;ef<Nl;ef++){var ju=Rc[ef];if(!ju.get("visible")){var au=ju.get("ori-visibility");ju.set("ori-visibility",void 0),au&&ju.show()}}}}},100);this.set("timeout",za)}if(X<=1){var xi=void 0,Di=void 0;if(E.fixAll||E.fixLineWidth||E.fixLabel){xi=u.findAllByState("node",E.fixState),Di=u.findAllByState("edge",E.fixState);for(var Si=X/se,jo=xi.length,ro=0;ro<jo;ro++){var mn=xi[ro],hi=mn.getContainer(),io=mn.getModel(),oo=mn.getOriginStyle(),Ki=mn.getStateStyle(E.fixState),Ji=mn.get("shapeFactory").getShape(io.type).getStateStyle(E.fixState,mn)[E.fixState];if(E.fixAll){if(se<=1){var Ao=(0,Nn.clone)(hi.getMatrix());Ao||(Ao=[1,0,0,0,1,0,0,0,1]);var ks=mn.getModel(),Lo=ks.x,Is=ks.y;Ao=yZ(Ao,[["t",-Lo,-Is],["s",Si,Si],["t",Lo,Is]]),hi.setMatrix(Ao)}}else for(var kn=hi.get("children"),sr=kn.length,yr=0;yr<sr;yr++){var jr=kn[yr],Cl=void 0,il=void 0;if(E.fixLabel){var Pl=jr.get("type");if(Pl==="text"){Cl=jr.attr("fontSize")||12;var lc=Ki[jr.get("name")],Mc=Ji[jr.get("name")],dp=lc?lc.fontSize:12,zf=Mc?Mc.fontSize:12,gv=dp||zf||12;if(se<=1&&jr.attr("fontSize",gv/se),il)break}}if(E.fixLineWidth&&jr.get("isKeyShape")){il=jr.attr("lineWidth")||0;var Wf=Ki.lineWidth||Ji.lineWidth||oo.lineWidth||0;if(se<=1&&jr.attr("lineWidth",Wf/se),Cl)break}}}for(var cu=Di.length,kf=0;kf<cu;kf++)for(var va=Di[kf],hi=va.getContainer(),kn=hi.get("children"),io=va.getModel(),Ki=va.getStateStyle(E.fixState),Ji=va.get("shapeFactory").getShape(io.type).getStateStyle(E.fixState,va)[E.fixState],sr=kn.length,yr=0;yr<sr;yr++){var jr=kn[yr],Cl=void 0,il=void 0;if(E.fixLabel||E.fixAll){var Pl=jr.get("type");if(Pl==="text"){Cl=jr.attr("fontSize")||12;var lc=Ki[jr.get("name")],Mc=Ji[jr.get("name")],dp=lc?lc.fontSize:12,zf=Mc?Mc.fontSize:12,gv=dp||zf||12;if(se<=1&&jr.attr("fontSize",gv/se),il)break}}if((E.fixLineWidth||E.fixAll)&&jr.get("isKeyShape")){il=jr.attr("lineWidth")||0;var Wf=Ki.lineWidth||Ji.lineWidth||1;if(se<=1&&jr.attr("lineWidth",Wf/se),Cl)break}}}}var af=this.get("animate"),lf=this.get("animateCfg");u.zoomTo(se,{x:j.x,y:j.y},af,lf),u.emit("wheelzoom",i)}}},A8={onMouseEnter:function(i){var a=i.item;this.currentTarget=a,this.showTooltip(i),this.graph.emit("tooltipchange",{item:i.item,action:"show"})},onMouseMove:function(i){if(!this.shouldUpdate(i,this)){this.hideTooltip();return}!this.currentTarget||i.item!==this.currentTarget||this.updatePosition(i)},onMouseLeave:function(i){!this.shouldEnd(i,this)||(this.hideTooltip(),this.graph.emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null)},showTooltip:function(i){var a=this.container;if(!(!i.item||i.item.destroyed)){a||(a=this.createTooltip(this.graph.get("canvas")),this.container=a);var l=this.formatText(i.item.get("model"),i);a.innerHTML=l,Ep(this.container,{visibility:"visible"}),this.updatePosition(i)}},hideTooltip:function(){Ep(this.container,{visibility:"hidden"})},updatePosition:function(i){var a=this.get("shouldBegin"),l=this,u=l.width,E=l.height,P=l.container,j=l.graph;if(!a(i,this)){Ep(P,{visibility:"hidden"});return}var H=j.getPointByClient(i.clientX,i.clientY),X=j.getCanvasByPoint(H.x,H.y),ee=X.x,se=X.y,Se=P.getBoundingClientRect();ee>u/2?ee-=Se.width:ee+=this.offset,se>E/2?se-=Se.height:se+=this.offset;var Re="".concat(ee,"px"),Be="".concat(se,"px");Ep(this.container,{left:Re,top:Be,visibility:"visible"})},createTooltip:function(i){var a=i.get("el");a.style.position="relative";var l=Hv('<div class="g6-tooltip g6-'.concat(this.item,'-tooltip"></div>'));return a.parentNode.appendChild(l),Ep(l,{position:"absolute",visibility:"visible"}),this.width=i.get("width"),this.height=i.get("height"),this.container=l,this.graph.get("tooltips").push(l),l}},bZ=Ts({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(a){return a.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},A8),xZ=Ts({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(a){return"source: ".concat(a.source," target: ").concat(a.target)}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},A8),M8="click",EZ=["click","dblclick"],SZ={getDefaultCfg:function(){return{trigger:M8,onChange:function(){}}},getEvents:function(){var i,a;return EZ.includes(this.trigger)?a=this.trigger:(a=M8,console.warn("Behavior collapse-expand \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click' \u6216 'dblclick'")),i={},i["node:".concat(a)]="onNodeClick",i.touchstart="onNodeClick",i},onNodeClick:function(i){var a=this;if(this.trigger==="click"){if(this.timer){clearTimeout(this.timer),this.timer=0;return}this.timer=setTimeout(function(){a.toggle(i),clearTimeout(a.timer),a.timer=0},200)}else this.toggle(i)},toggle:function(i){var a=i.item;if(!!a){var l=this.graph.findDataById(a.get("id"));if(!!l){var u=l.children;if(!(!u||u.length===0)){var E=!l.collapsed;!this.shouldBegin(i,E,this)||(l.collapsed=E,a.getModel().collapsed=E,this.graph.emit("itemcollapsed",{item:i.item,collapsed:E}),!!this.shouldUpdate(i,E,this)&&(this.onChange(a,E,this),this.graph.layout()))}}}}},CZ=m1.calculationItemsBBox,wZ=function C(i,a){if(a(i)!==!1&&i){var l=i.get("combos");if(l.length===0)return!1;(0,Nn.each)(l,function(u){C(u,a)})}},TZ={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected",enableStack:!0}},getEvents:function(){return{"combo:mousedown":"onMouseDown","combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(i){var a=i.item;if(!a||a.destroyed||!this.shouldUpdate(i,this))return!1;var l=a.getType();return l==="combo"},onMouseDown:function(i){this.origin={x:i.x,y:i.y}},onDragStart:function(i){var a=this,l=this.graph,u=i.item;if(this.currentShouldEnd=!0,!!this.validationCombo(i)){this.targets=[];var E=l.findAllByState("combo",this.selectedState),P=u.get("id"),j=E.filter(function(X){var ee=X.get("id");return P===ee});j.length===0?this.targets.push(u):this.targets=E;var H=[];this.targets.forEach(function(X){var ee=X.getModel(),se=ee.x,Se=ee.y,Re=ee.id;H.push({x:se,y:Se,id:Re})}),this.set("beforeDragItems",H),this.activeState&&this.targets.map(function(X){var ee=X.getModel();if(ee.parentId){var se=l.findById(ee.parentId);se&&l.setItemState(se,a.activeState,!0)}}),this.point={},this.originPoint={},this.currentItemChildCombos=[],wZ(u,function(X){if(X.destroyed)return!1;var ee=X.getModel();return a.currentItemChildCombos.push(ee.id),!0})}},onDrag:function(i){var a=this;if(!!this.origin&&!!this.validationCombo(i))if(this.enableDelegate)this.updateDelegate(i);else{if(this.activeState){var l=this.graph,u=i.item,E=u.getModel(),P=l.getCombos(),j=u.getBBox(),H=j.centerX,X=j.centerY,ee=j.width,se=P.filter(function(Se){var Re=Se.getModel();return E.parentId,Re.id!==E.id&&!a.currentItemChildCombos.includes(Re.id)});se.map(function(Se){var Re=Se.getBBox(),Be=Re.centerX,Ye=Re.centerY,ht=Re.width,Tt=H-Be,Dt=X-Ye,Kt=2*Math.sqrt(Tt*Tt+Dt*Dt);ee+ht-Kt>.8*ee?l.setItemState(Se,a.activeState,!0):l.setItemState(Se,a.activeState,!1)})}(0,Nn.each)(this.targets,function(Se){a.updateCombo(Se,i)}),this.onlyChangeComboSize&&this.updateParentCombos()}},updatePositions:function(i,a){var l=this;(this.enableDelegate||a)&&(0,Nn.each)(this.targets,function(u){l.updateCombo(u,i,a)})},onDrop:function(i){var a=this,l=i.item;if(this.currentShouldEnd=this.shouldEnd(i,l,this),this.updatePositions(i,!this.currentShouldEnd),!(!this.currentShouldEnd||!l||!this.targets||l.destroyed)){var u=this.graph,E=l.getModel();this.targets.map(function(P){var j=P.getModel();j.parentId!==E.id?(a.activeState&&u.setItemState(l,a.activeState,!1),a.onlyChangeComboSize?u.updateCombo(P):u.updateComboTree(P,E.id,!1)):u.updateCombo(l)}),this.end(l,i),this.endComparison=!0}},onNodeDrop:function(i){var a=this;if(!(!this.targets||this.targets.length===0)){var l=this.graph,u=i.item,E=u.getModel().comboId,P=E?l.findById(E):void 0;if(this.currentShouldEnd=this.shouldEnd(i,P,this),this.updatePositions(i,!this.currentShouldEnd),!!this.currentShouldEnd){var j;if(E){if(this.activeState){var H=l.findById(E);l.setItemState(H,this.activeState,!1)}this.targets.map(function(X){a.onlyChangeComboSize?l.updateCombo(X):E!==X.getID()&&(j=l.findById(E),E!==X.getModel().parentId&&l.updateComboTree(X,E,!1))})}else this.targets.map(function(X){if(a.onlyChangeComboSize)l.updateCombo(X);else{var ee=X.getModel();ee.comboId&&l.updateComboTree(X,void 0,!1)}});this.endComparison=!0,this.end(j,i)}}},onDragEnter:function(i){if(!!this.origin&&!!this.validationCombo(i)){var a=i.item,l=this.graph;this.activeState&&l.setItemState(a,this.activeState,!0)}},onDragLeave:function(i){if(!!this.origin&&!!this.validationCombo(i)){var a=i.item,l=this.graph;this.activeState&&l.setItemState(a,this.activeState,!1)}},onDragEnd:function(i){if(!(!this.targets||this.targets.length===0)){var a=i.item;this.currentShouldEnd&&this.updatePositions(i);var l=this.getParentCombo(a.getModel().parentId),u=this.graph;l&&this.activeState&&u.setItemState(l,this.activeState,!1),this.end(void 0,i)}},end:function(i,a){var l=this;if(!!this.origin){var u=this.graph;if(this.delegateShape){var E=u.get("delegateGroup");E.clear(),this.delegateShape=null}if(i&&this.activeState&&u.setItemState(i,this.activeState,!1),!i){var P=u.get("enabledStack")&&this.enableStack,j={before:{nodes:[],edges:[],combos:[].concat(this.get("beforeDragItems"))},after:{nodes:[],edges:[],combos:[]}};this.targets.map(function(H){if(!l.onlyChangeComboSize)u.updateComboTree(H,void 0,P);else{u.updateCombo(H);var X=H.getModel(),ee=X.x,se=X.y,Se=X.id;j.after.combos.push({x:ee,y:se,id:Se}),u.pushStack("update",j)}})}this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0}},traverse:function(i,a,l){var u=this;if(l===void 0&&(l={}),a(i,l)!==!1&&i){var E=i.get("combos");(0,Nn.each)(E,function(j){u.traverse(j,a,l)});var P=i.get("nodes");(0,Nn.each)(P,function(j){u.traverse(j,a,l)})}},updateCombo:function(i,a,l){this.updateSingleItem(i,a,l);var u={};this.traverse(i,function(E,P){return E.destroyed?!1:(E.getEdges().forEach(function(j){return P[j.getID()]=j}),!0)},u),Object.values(u).forEach(function(E){return E.refresh()})},updateSingleItem:function(i,a,l){var u=this.origin,E=this.graph,P=i.getModel(),j=i.get("id");this.point[j]||(this.point[j]={x:P.x,y:P.y});var H=a.x-u.x+this.point[j].x,X=a.y-u.y+this.point[j].y;l&&(H+=u.x-a.x,X+=u.y-a.y),E.updateItem(i,{x:H,y:X},!1)},getParentCombo:function(i){var a=this.graph;if(!!i){var l=a.findById(i);if(!!l)return l}},updateDelegate:function(i){var a=this.graph;if(this.delegateShape){var Se=i.x-this.origin.x+this.originPoint.minX,Re=i.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:Se,y:Re})}else{var l=a.get("delegateGroup"),u=null;this.targets.length>1?u=CZ(this.targets):u=this.targets[0].getBBox();var E=u.x,P=u.y,j=u.width,H=u.height,X=u.minX,ee=u.minY;this.originPoint={x:E,y:P,width:j,height:H,minX:X,minY:ee};var se=Ts(Ts({},qS.delegateStyle),this.delegateStyle);this.delegateShape=l.addShape("rect",{attrs:Ts({width:u.width,height:u.height,x:u.x,y:u.y},se),name:"combo-delegate-shape"}),this.delegateShape.set("capture",!1),this.delegate=this.delegateShape}},updateParentCombos:function(){var i=this,a=i.graph,l=i.targets,u={};l==null||l.forEach(function(E){var P=E.getModel().parentId;P&&(u[P]=a.findById(P))}),Object.values(u).forEach(function(E){E&&a.updateCombo(E)})}},k8="dblclick",AZ=["click","dblclick"],u4={getDefaultCfg:function(){return{trigger:k8,relayout:!0}},getEvents:function(){var i,a;return AZ.includes(this.trigger)?a=this.trigger:(a=k8,console.warn("Behavior collapse-expand-group \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click' \u6216 'dblclick'")),i={},i["combo:".concat(a)]="onComboClick",i},onComboClick:function(i){var a=i.item,l=this,u=l.graph,E=l.relayout;if(!(!a||a.destroyed||a.getType()!=="combo")){var P=a.getModel(),j=P.id;!j||(u.collapseExpandCombo(j),E&&u.get("layout")?u.layout():u.refreshPositions())}}},P8=m1.isPolygonsIntersect,f4=m1.pathToPoints,R8="shift",MZ=["drag","shift","ctrl","alt","control"],d4=function(i,a){var l,u=i.getKeyShape();if(i.get("type")==="path")l=f4(u.attr("path"));else{var E=u.getCanvasBBox();l=[[E.minX,E.minY],[E.maxX,E.minY],[E.maxX,E.maxY],[E.minX,E.maxY]]}return P8(a,l)},O8={getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},shouldDeselect:void 0,selectedState:"selected",trigger:R8,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return MZ.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=R8,console.warn("Behavior lasso-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),this.trigger==="drag"?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"}},onDragStart:function(i){var a=this.lasso,l=i.item;l||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates("dragstart"),a||(a=this.createLasso()),this.dragging=!0,this.originPoint={x:i.x,y:i.y},this.points.push(this.originPoint),a.show())},onDragMove:function(i){!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push({x:i.x,y:i.y}),this.updateLasso(i))},onDragEnd:function(i){!this.lasso&&!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1)},getLassoPath:function(){var i=this.points,a=[];return i.length&&(i.forEach(function(l,u){u===0?a.push(["M",l.x,l.y]):a.push(["L",l.x,l.y])}),a.push(["L",i[0].x,i[0].y])),a},clearStates:function(i){i===void 0&&(i="canvas:click");var a=this,l=a.graph,u=a.selectedState,E=a.shouldDeselect,P=l.findAllByState("node",u),j=l.findAllByState("edge",u);(!E||E({action:i,nodes:P,edges:j}))&&(P.forEach(function(H){return l.setItemState(H,u,!1)}),j.forEach(function(H){return l.setItemState(H,u,!1)})),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],l.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var i=this,a=this,l=a.graph,u=a.shouldUpdate,E=this.points.map(function(ee){return[l.getCanvasByPoint(ee.x,ee.y).x,l.getCanvasByPoint(ee.x,ee.y).y]}),P=this.selectedState,j=[],H=[];l.getNodes().forEach(function(ee){if(!!ee.isVisible()&&d4(ee,E)&&u(ee,"select",i)){j.push(ee);var se=ee.getModel();H.push(se.id),l.setItemState(ee,P,!0)}});var X=[];this.includeEdges&&j.forEach(function(ee){var se=ee.getOutEdges();se.forEach(function(Se){if(!!Se.isVisible()){var Re=Se.getModel(),Be=Re.source,Ye=Re.target;H.includes(Be)&&H.includes(Ye)&&u(Se,"select",i)&&(X.push(Se),l.setItemState(Se,i.selectedState,!0))}})}),this.selectedEdges=X,this.selectedNodes=j,this.onSelect&&this.onSelect(j,X),l.emit("nodeselectchange",{selectedItems:{nodes:j,edges:X},select:!0})},createLasso:function(){var i=this,a=i.graph.get("delegateGroup").addShape("path",{attrs:Ts({path:[]},i.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=a,this.delegate=a,this.points=[],a},updateLasso:function(i){var a=this;this.lasso.attr({path:a.getLassoPath()})},onKeyDown:function(i){var a=i.key;!a||(a.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1}},KR="click",kZ=["click","drag"],p4=void 0,PZ=["shift","ctrl","control","alt","meta",void 0],RZ={getDefaultCfg:function(){return{trigger:KR,key:p4,edgeConfig:{},getEdgeConfig:void 0}},getEvents:function(){var i=this;kZ.indexOf(i.trigger.toLowerCase())>-1||(i.trigger=KR,console.warn("Behavior create-edge \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click'\uFF0C'drag'")),i.key&&PZ.indexOf(i.key.toLowerCase())===-1&&(i.trigger=p4,console.warn("Behavior create-edge \u7684 key \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'shift'\uFF0C'ctrl'\uFF0C'alt'\uFF0C'control'\uFF0C\u6216 undefined"));var a;return i.trigger==="drag"?a={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:i.trigger==="click"&&(a={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),i.key&&(a.keydown="onKeyDown",a.keyup="onKeyUp"),a},onDragEnd:function(i){var a=this;if(!(a.key&&!a.keydown)){var l=i.item;(!l||l.getID()===a.source||l.getType()!=="node")&&a.cancelCreating({item:a.edge,x:i.x,y:i.y})}},onClick:function(i){var a=this;if(!(a.key&&!a.keydown)){var l=i.item,u=a.graph,E=l.getModel(),P=a.getEdgeConfig;if(a.addingEdge&&a.edge){if(!a.shouldEnd(i,a))return;var j=void 0;P&&(0,Nn.isFunction)(P)?j=P({source:a.source,target:E.id},a):j=a.edgeConfig;var H=Ts({target:E.id},j);if(a.source===E.id&&(H.type="loop"),u.emit("beforecreateedge",{}),u.updateItem(a.edge,H,!1),u.get("enabledStack")){var X=Ts(Ts({},a.edge.getModel()),{itemType:"edge"}),ee={};ee.edges=[X],u.pushStack("add",{before:{},after:ee})}u.emit("aftercreateedge",{edge:a.edge}),a.edge.getKeyShape().set("capture",!0),a.edge=null,a.addingEdge=!1}else{if(!a.shouldBegin(i,a))return;var j=void 0;P&&(0,Nn.isFunction)(P)?j=P({source:E.id,target:E.id},a):j=a.edgeConfig,a.edge=u.addItem("edge",Ts({source:E.id,target:E.id},j),!1),a.source=E.id,a.addingEdge=!0,a.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(i){var a=this;if(!(a.key&&!a.keydown)){a.edge&&a.edge.destroyed&&a.cancelCreating({item:a.edge});var l={x:i.x,y:i.y};if(!a.graph.findById(a.source)){a.addingEdge=!1;return}a.addingEdge&&a.edge&&a.graph.updateItem(a.edge,{target:l},!1)}},cancelCreating:function(i){var a,l,u=this;if(!(u.key&&!u.keydown)){var E=u.graph,P=i.item;if(u.addingEdge&&(u.edge===P||((l=(a=i.target)===null||a===void 0?void 0:a.isCanvas)===null||l===void 0?void 0:l.call(a)))){u.edge&&!u.edge.destroyed&&E.removeItem(u.edge,!1),u.edge=null,u.addingEdge=!1;return}}},onKeyDown:function(i){var a=this,l=i.key;!l||(l.toLowerCase()===a.key.toLowerCase()?a.keydown=!0:a.keydown=!1)},onKeyUp:function(){var i=this;i.addingEdge&&i.edge&&(i.graph.removeItem(i.edge,!1),i.addingEdge=!1,i.edge=null),this.keydown=!1}},I8="ctrl",OZ=["shift","ctrl","alt","control"],IZ="1",DZ={getDefaultCfg:function(){return{trigger:I8,combinedKey:IZ,functionName:"fitView",functionParams:[]}},getEvents:function(){return OZ.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=I8,console.warn("Behavior shortcuts-fit-view \u7684 trigger \u53C2\u6570 '".concat(this.trigger,"' \u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'"))),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"}},onKeyDown:function(i){var a=i.key;if(!!a){var l=this.trigger.toLowerCase(),u=a.toLowerCase();this.triggerKeydown||(u===l||u==="control"&&l==="ctrl"||u==="ctrl"&&l==="control"?this.triggerKeydown=!0:this.triggerKeydown=!1);var E=this.graph;if(!E[this.functionName])return console.warn("Behavior shortcuts-fit-view \u7684 functionName \u53C2\u6570 '".concat(this.functionName,"' \u4E0D\u5408\u6CD5\uFF0C\u5B83\u4E0D\u662F Graph \u7684\u4E00\u4E2A\u51FD\u6570\u540D")),{};if(this.triggerKeydown&&!this.combinedKey){this.functionParams&&this.functionParams.length?E[this.functionName].apply(E,this.functionParams):E[this.functionName]();return}var P=this.combinedKey.toLowerCase();this.triggerKeydown&&(u===P||u==="control"&&P==="ctrl"||u==="ctrl"&&P==="control")&&(this.functionParams&&this.functionParams.length?E[this.functionName].apply(E,this.functionParams):E[this.functionName]())}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1}},NZ=["shift","ctrl","alt","control","meta"],LZ={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,zoomKey:"ctrl",scalableRange:0,allowDragOnItem:!0}},getEvents:function(){return(!this.zoomKey||NZ.indexOf(this.zoomKey)===-1)&&(this.zoomKey="ctrl"),{wheel:"onWheel"}},onWheel:function(i){var a=this;if(!!this.allowDrag(i)){var l=this.graph,u=Array.isArray(this.zoomKey)?[].concat(this.zoomKey):[this.zoomKey];u.includes("control")&&u.push("ctrl");var E=u.some(function(io){return i["".concat(io,"Key")]});if(E){var P=l.get("canvas"),j=P.getPointByClient(i.clientX,i.clientY),H=l.getZoom();i.wheelDelta>0?H=H+H*.05:H=H-H*.05,l.zoomTo(H,{x:j.x,y:j.y})}else{var X=i.deltaX||i.movementX,ee=i.deltaY||i.movementY;!ee&&navigator.userAgent.indexOf("Firefox")>-1&&(ee=-i.wheelDelta*125/3);var se=this.graph.get("width"),Se=this.graph.get("height"),Re=this.graph.get("canvas").getCanvasBBox(),Be=this.scalableRange,Ye=this.scalableRange;Be<1&&Be>-1&&(Be=se*Be,Ye=Se*Ye);var ht=Re.minX,Tt=Re.maxX,Dt=Re.minY,Kt=Re.maxY;X>0?Tt<-Be?X=0:Tt-X<-Be&&(X=Tt+Be):X<0&&(ht>se+Be?X=0:ht-X>se+Be&&(X=ht-(se+Be))),ee>0?Kt<-Ye?ee=0:Kt-ee<-Ye&&(ee=Kt+Ye):ee<0&&(Dt>Se+Ye?ee=0:Dt-ee>Se+Ye&&(ee=Dt-(Se+Ye))),this.get("direction")==="x"?ee=0:this.get("direction")==="y"&&(X=0),l.translate(-X,-ee)}i.preventDefault();var gn=this.get("enableOptimize");if(gn){var bn=this.get("optimizeZoom"),mn=this.get("optimized"),kn=l.getNodes(),sr=l.getEdges(),yr=kn.length,jr=sr.length;if(!mn){for(var zr=0;zr<yr;zr++){var va=kn[zr];if(!va.destroyed)for(var za=va.get("group").get("children"),xi=za.length,Di=0;Di<xi;Di++){var Si=za[Di];!Si.destoryed&&!Si.get("isKeyShape")&&(Si.set("ori-visibility",Si.get("ori-visibility")||Si.get("visible")),Si.hide())}}for(var jo=0;jo<jr;jo++)for(var ro=sr[jo],za=ro.get("group").get("children"),xi=za.length,Di=0;Di<xi;Di++){var Si=za[Di];Si.set("ori-visibility",Si.get("ori-visibility")||Si.get("visible")),Si.hide()}this.set("optimized",!0)}clearTimeout(this.get("timeout"));var hi=setTimeout(function(){var io=l.getZoom(),oo=a.get("optimized");if(oo){a.set("optimized",!1);for(var Ki=0;Ki<yr;Ki++){var Ji=kn[Ki],Ao=Ji.get("group").get("children"),ks=Ao.length;if(io<bn){var Lo=Ji.getKeyShape(),Is=Lo.get("ori-visibility");Is&&Lo.show()}else for(var Cl=0;Cl<ks;Cl++){var il=Ao[Cl],Is=il.get("ori-visibility");!il.get("visible")&&Is&&Is&&il.show()}}for(var Pl=0;Pl<jr;Pl++){var lc=sr[Pl],Ao=lc.get("group").get("children"),ks=Ao.length;if(io<bn){var Lo=lc.getKeyShape(),Is=Lo.get("ori-visibility");Is&&Lo.show()}else for(var Cl=0;Cl<ks;Cl++){var il=Ao[Cl];if(!il.get("visible")){var Is=il.get("ori-visibility");Is&&il.show()}}}}},100);this.set("timeout",hi)}}},allowDrag:function(i){var a,l,u=i.target,E=u&&u.isCanvas&&u.isCanvas();if((0,Nn.isBoolean)(this.allowDragOnItem)&&!this.allowDragOnItem&&!E)return!1;if((0,Nn.isObject)(this.allowDragOnItem)){var P=this.allowDragOnItem,j=P.node,H=P.edge,X=P.combo,ee=(l=(a=i.item)===null||a===void 0?void 0:a.getType)===null||l===void 0?void 0:l.call(a);if(!j&&ee==="node"||!H&&ee==="edge"||!X&&ee==="combo")return!1}return!0}},FZ={"drag-canvas":vZ,"zoom-canvas":jM,"drag-node":hZ,"activate-relations":mZ,"brush-select":_Z,"click-select":T8,"lasso-select":O8,tooltip:bZ,"edge-tooltip":xZ,"collapse-expand":SZ,"drag-combo":TZ,"collapse-expand-combo":u4,"create-edge":RZ,"shortcuts-call":DZ,"scroll-canvas":LZ};(0,Nn.each)(FZ,function(C,i){eM(i,C)});var jZ=Ts(Ts({},g),RL),BZ=Bm.Grid,lH=Bm.Minimap,cH=Bm.Bundling,uH=Bm.Menu,D8=Bm.Fisheye,fH=Bm.ToolBar,dH=Bm.Tooltip,UZ=Bm.TimeBar,ZZ=Bm.ImageMinimap,VZ=Bm.EdgeFilterLens,zZ=Bm.SnapLine,pH=Bm.Legend,WZ=Bm.Annotation,v4={version:qS.version,Graph:n5,TreeGraph:aB,Util:m1,Layout:gp.Layouts,TreeLayout:Gj,registerLayout:$j,Global:qS,registerBehavior:eM,registerCombo:l9,registerEdge:PL,registerNode:kb,Minimap:Bm.Minimap,Grid:Bm.Grid,Bundling:Bm.Bundling,Menu:Bm.Menu,ToolBar:Bm.ToolBar,Tooltip:Bm.Tooltip,Legend:Bm.Legend,TimeBar:UZ,SnapLine:zZ,Fisheye:D8,ImageMinimap:ZZ,EdgeFilterLens:VZ,Annotation:WZ,Algorithm:jZ,Arrow:vD,Marker:qA,Shape:eE};v4.version="4.8.21";var BM=v4,HZ="4.8.21",N8='<path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" />',GZ='<path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8s0 .1.1.1a36.18 36.18 0 015.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8 0 0 0 .1-.1.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7zM620 539v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8v.1a36.18 36.18 0 015.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8v.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7z"></path>',L8=function(i,a){var l=document.getElementById("toolBarSearchInput"),u=l.value.trim();a==null||a(u)},$Z=function(i,a){var l='<input placeholder="\u8BF7\u8F93\u5165\u6307\u6807/\u7EF4\u5EA6\u540D\u79F0" class="ant-input" id="toolBarSearchInput" type="text" value="" />',u=Hv(l);return u.addEventListener("keydown",function(E){E.key==="Enter"&&L8(i,a)}),u},KZ=function(i,a){var l=`<button
|
||
id="toolBarSearchBtn"
|
||
type="button"
|
||
class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button"
|
||
>
|
||
<span role="img" aria-label="search" class="anticon anticon-search">
|
||
<svg
|
||
viewBox="64 64 896 896"
|
||
focusable="false"
|
||
data-icon="search"
|
||
width="1em"
|
||
height="1em"
|
||
fill="currentColor"
|
||
aria-hidden="true"
|
||
>
|
||
`.concat(N8,`
|
||
</svg>
|
||
</span>
|
||
</button>`),u=Hv(l);return u.addEventListener("click",function(){L8(i,a)}),u},YZ=function(i,a){var l=$Z(i,a),u=KZ(i,a),E=`
|
||
<div id="searchInputContent" class="g6-component-toolbar-search-input" style="position: absolute;top: 38px;width: 190px;left: 0;">
|
||
<span class="ant-input-group-wrapper ant-input-search" >
|
||
<span class="ant-input-wrapper ant-input-group" id="toolBarSearchWrapper">
|
||
<span class="ant-input-group-addon"></span>
|
||
</span>
|
||
</span>
|
||
</div>`,P=Hv(E),j=P.querySelector("#toolBarSearchWrapper");return j.insertBefore(l,j.firstChild),j.querySelector(".ant-input-group-addon").appendChild(u),P};function F8(C,i){var a=C.get("width"),l=C.get("height"),u=a/2,E=l/2;C.zoom(i,{x:u,y:E})}var j8=function(i){var a=i.onSearch,l=i.onClick,u=new BM.ToolBar,E=u._cfgs,P=E.getContent(),j=Hv(P),H=j.querySelectorAll('li[code="redo"], li[code="undo"], li[code="realZoom"]');H.forEach(function(Re){Re.remove()});var X=`<li code="search">
|
||
<svg
|
||
viewBox="64 64 896 896"
|
||
class="icon"
|
||
data-icon="search"
|
||
width="24"
|
||
height="24"
|
||
fill="currentColor"
|
||
aria-hidden="true"
|
||
>
|
||
`.concat(N8,`
|
||
</svg>
|
||
</li>`),ee=`<li code="visibleMode">
|
||
<svg
|
||
viewBox="64 64 896 896"
|
||
class="icon"
|
||
data-icon="visibleMode"
|
||
width="24"
|
||
height="24"
|
||
fill="currentColor"
|
||
aria-hidden="true"
|
||
>
|
||
`.concat(GZ,`
|
||
</svg>
|
||
</li>`);j.insertAdjacentHTML("afterbegin","".concat(X).concat(ee));var se=!0,Se=new BM.ToolBar({position:{x:20,y:20},className:"semantic-graph-toolbar",getContent:function(Be){var Ye=YZ(Be,a),ht='<div class="g6-component-toolbar-content">'.concat(j.outerHTML,"</div>"),Tt=Hv(ht);return Tt.addEventListener("click",function(Dt){return Dt.preventDefault(),Dt.stopPropagation(),!1}),Tt.addEventListener("dblclick",function(Dt){return Dt.preventDefault(),Dt.stopPropagation(),!1}),Tt.appendChild(Ye),Tt},handleClick:function(Be,Ye){if(Be==="search"){var ht=document.getElementById("searchInputContent");if(ht){var Tt=se?"none":"block";ht.style.display=Tt,se=!se}}else if(Be==="visibleMode"){var Dt=document.getElementById("searchInputContent");if(Dt){var Kt="none";Dt.style.display=Kt,se=!1}}else if(Be.includes("zoom")){var gn=.1,bn=1-gn,mn=1+gn;Be==="zoomIn"?F8(Ye,bn):Be==="zoomOut"&&F8(Ye,mn)}else u._cfgs.graph=Ye,u.handleDefaultOperator(Be);l==null||l(Be,Ye)}});return Se},XZ=j8,JZ=function(){var i=new BM.Tooltip({offsetX:10,offsetY:10,fixToNode:[1,.5],itemTypes:["node"],getContent:function(l){var u=document.createElement("div");u.style.width="fit-content",u.style.height="fit-content";var E=l.item.getModel(),P=E.name,j=E.bizName,H=E.createdBy,X=E.updatedAt,ee=E.description,se=[{label:"\u540D\u79F0:",value:P},{label:"\u5B57\u6BB5:",value:j},{label:"\u521B\u5EFA\u4EBA:",value:H},{label:"\u66F4\u65B0\u65F6\u95F4:",value:X?c0()(X).format("YYYY-MM-DD HH:mm:ss"):""},{label:"\u63CF\u8FF0:",value:ee}],Se=se.reduce(function(Be,Ye){var ht=Ye.label,Tt=Ye.value;return Tt&&(Be+=`<p style="margin-bottom:0">
|
||
<span>`.concat(ht,` </span>
|
||
<span>`).concat(Tt,`</span>
|
||
</p>`)),Be},""),Re=`<div>
|
||
`.concat(Se,`
|
||
</div>`);return l.item.getType()==="node"&&(u.innerHTML=Re),u}});return i},QZ=JZ,qZ=function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"blue";return'<span class="ant-tag ant-tag-'.concat(a,'">').concat(i,"</span>")},B8=function(i){var a=i||{},l=a.onMenuClick;return{getContent:function(E){var P,j,H=E==null||(P=E.item)===null||P===void 0||(j=P._cfg)===null||j===void 0?void 0:j.model,X=H,ee=X.name,se=X.nodeType;if(H){var Se=u0.iw[se]||{},Re=`
|
||
<li title='\u7F16\u8F91' key='edit' >\u7F16\u8F91</li>
|
||
<li title='\u5220\u9664' key='delete' >\u5220\u9664</li>
|
||
`;se===Ct.Z.DATASOURCE&&(Re=`
|
||
<li title='\u65B0\u589E\u7EF4\u5EA6' key='createDimension' >\u65B0\u589E\u7EF4\u5EA6</li>
|
||
<li title='\u65B0\u589E\u6307\u6807' key='createMetric' >\u65B0\u589E\u6307\u6807</li>
|
||
<li title='\u7F16\u8F91' key='editDatasource' >\u7F16\u8F91</li>
|
||
<li title='\u5220\u9664' key='deleteDatasource' >\u5220\u9664</li>
|
||
`);var Be="".concat(ee);return`<div class="g6ContextMenuContainer">
|
||
<h3>`.concat(qZ(Se.label,Se.color)).concat(Be,`</h3>
|
||
<ul>
|
||
`).concat(Re,`
|
||
</ul>
|
||
</div>`)}return"<div>\u5F53\u524D\u8282\u70B9\u4FE1\u606F\u83B7\u53D6\u5931\u8D25</div>"},handleMenuClick:function(E,P){var j=E.getAttribute("key")||"";l==null||l(j,P)},offsetX:16+10,offsetY:0,itemTypes:["node"]}},eV=function(i){var a=B8(i),l=new BM.Menu(a);return l},tV=eV,h4=o(77111),nV=o(49194),vH=o(11116),rV=o(35840),aV=o(80647),UM=o.n(aV),iV=["nodeData","domainManger","onNodeChange","onEditBtnClick"],oV=rV.Z.Paragraph,sV=function(i){var a=i.title,l=i.content;return(0,de.jsx)("div",{style:{marginBottom:7,fontSize:14},children:(0,de.jsxs)(U.Z,{children:[(0,de.jsxs)("span",{style:{width:"max-content"},children:[a,":"]}),l]})})},U8=function(i){var a=i.nodeData,l=i.domainManger,u=i.onNodeChange,E=i.onEditBtnClick,P=(0,Je.Z)(i,iV),j=(0,K.useState)([]),H=(0,z.Z)(j,2),X=H[0],ee=H[1],se=l.selectDomainName;(0,K.useEffect)(function(){if(!!a){var Be=a.alias,Ye=a.fullPath,ht=a.bizName,Tt=a.createdBy,Dt=a.createdAt,Kt=a.updatedAt,gn=a.description,bn=a.domainName,mn=a.sensitiveLevel,kn=a.type,sr=a.nodeType,yr=[{title:"\u57FA\u672C\u4FE1\u606F",children:[{label:"\u5B57\u6BB5\u540D\u79F0",value:ht},{label:"\u522B\u540D",hideItem:!Be,value:Be||"-"},{label:"\u6240\u5C5E\u4E3B\u9898\u57DF",value:bn,content:(0,de.jsx)(ln.Z,{children:bn||se})},{label:"\u63CF\u8FF0",value:gn}]},{title:"\u5E94\u7528\u4FE1\u606F",children:[{label:"\u5168\u8DEF\u5F84",value:Ye,content:(0,de.jsx)(oV,{style:{width:275,margin:0},ellipsis:{tooltip:Ye},children:Ye})},{label:"\u654F\u611F\u5EA6",value:u0.Ze[mn]},{label:"\u6307\u6807\u7C7B\u578B",value:Ct.Io[kn],hideItem:sr!==Ct.Z.METRIC}]},{title:"\u521B\u5EFA\u4FE1\u606F",children:[{label:"\u521B\u5EFA\u4EBA",value:Tt},{label:"\u521B\u5EFA\u65F6\u95F4",value:Dt?c0()(Dt).format("YYYY-MM-DD HH:mm:ss"):""},{label:"\u66F4\u65B0\u65F6\u95F4",value:Kt?c0()(Kt).format("YYYY-MM-DD HH:mm:ss"):""}]}],jr=[{title:"\u57FA\u672C\u4FE1\u606F",children:[{label:"\u82F1\u6587\u540D\u79F0",value:ht},{label:"\u6240\u5C5E\u4E3B\u9898\u57DF",value:bn,content:(0,de.jsx)(ln.Z,{children:bn||se})},{label:"\u63CF\u8FF0",value:gn}]},{title:"\u521B\u5EFA\u4FE1\u606F",children:[{label:"\u521B\u5EFA\u4EBA",value:Tt},{label:"\u521B\u5EFA\u65F6\u95F4",value:Dt?c0()(Dt).format("YYYY-MM-DD HH:mm:ss"):""},{label:"\u66F4\u65B0\u65F6\u95F4",value:Kt?c0()(Kt).format("YYYY-MM-DD HH:mm:ss"):""}]}];ee(sr===Ct.Z.DATASOURCE?jr:yr)}},[a]);var Se=function(){var Be=(0,G.Z)((0,L.Z)().mark(function Ye(){var ht,Tt,Dt,Kt;return(0,L.Z)().wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:if((a==null?void 0:a.nodeType)===Ct.Z.METRIC&&(ht=dt.vW),(a==null?void 0:a.nodeType)===Ct.Z.DIMENSION&&(ht=dt.BE),(a==null?void 0:a.nodeType)===Ct.Z.DATASOURCE&&(ht=dt.Vl),ht){bn.next=5;break}return bn.abrupt("return");case 5:return bn.next=7,ht(a==null?void 0:a.uid);case 7:Tt=bn.sent,Dt=Tt.code,Kt=Tt.msg,Dt===200?u==null||u({eventName:a==null?void 0:a.nodeType}):$.default.error(Kt);case 11:case"end":return bn.stop()}},Ye)}));return function(){return Be.apply(this,arguments)}}(),Re=(0,de.jsx)("div",{className:"ant-drawer-extra",children:(0,de.jsxs)(U.Z,{children:[(0,de.jsx)(Le.Z,{type:"primary",onClick:function(){E==null||E(a)},children:"\u7F16\u8F91"},"editBtn"),(0,de.jsx)(pe.Z,{title:"\u786E\u8BA4\u5220\u9664\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){Se()},children:(0,de.jsx)(Le.Z,{danger:!0,children:"\u5220\u9664"},"deleteBtn")})]})});return(0,de.jsx)(de.Fragment,{children:(0,de.jsxs)(qb.Z,(0,Ie.Z)((0,Ie.Z)({title:(0,de.jsxs)(U.Z,{children:[a==null?void 0:a.name,(0,de.jsx)(En,{type:a==null?void 0:a.nodeType})]}),placement:"right",mask:!1,getContainer:!1,footer:!1},P),{},{children:[(0,de.jsx)("div",{className:UM().nodeInfoDrawerContent,children:X.map(function(Be){var Ye=Be.children,ht=Be.title;return(0,de.jsxs)("div",{style:{display:Be.hideItem?"none":"block"},children:[(0,de.jsx)("p",{className:UM().title,children:ht}),Ye.map(function(Tt){return(0,de.jsx)(ce.Z,{style:{marginBottom:10,display:Tt.hideItem?"none":"flex"},children:(0,de.jsx)(me.Z,{span:24,children:(0,de.jsx)(sV,{title:Tt.label,content:Tt.content||Tt.value})})},"".concat(Tt.label,"-").concat(Tt.value))}),(0,de.jsx)(nV.Z,{})]},ht)})},a==null?void 0:a.id),Re]}))})},lV=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(U8),cV=function(i){var a=i.nodeData,l=i.onOkClick,u=i.onCancelClick,E=i.open,P=E===void 0?!1:E,j=(0,K.useState)(!1),H=(0,z.Z)(j,2),X=H[0],ee=H[1],se=function(){var Re=(0,G.Z)((0,L.Z)().mark(function Be(){var Ye,ht,Tt,Dt,Kt,gn;return(0,L.Z)().wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:if(Ye=a.id,ht=a.nodeType,ht===Ct.Z.DIMENSION&&(Tt=dt.BE),ht===Ct.Z.METRIC&&(Tt=dt.vW),ht===Ct.Z.DATASOURCE&&(Tt=dt.Vl),Tt){mn.next=7;break}return $.default.error("\u5F53\u524D\u8282\u70B9\u7C7B\u578B\u4E0D\u662F\u7EF4\u5EA6\uFF0C\u6307\u6807\uFF0C\u6570\u636E\u6E90\u4E2D\u7684\u4E00\u79CD\uFF0C\u8BF7\u786E\u8BA4\u8282\u70B9\u6570\u636E"),mn.abrupt("return");case 7:return ee(!0),mn.next=10,Tt(Ye);case 10:Dt=mn.sent,Kt=Dt.code,gn=Dt.msg,ee(!1),Kt===200?(l(),$.default.success("\u5220\u9664\u6210\u529F!")):$.default.error(gn);case 15:case"end":return mn.stop()}},Be)}));return function(){return Re.apply(this,arguments)}}(),Se=function(){se()};return(0,de.jsx)(de.Fragment,{children:(0,de.jsx)(wt.Z,{title:"\u5220\u9664\u786E\u8BA4",open:P,onOk:Se,confirmLoading:X,onCancel:u,children:(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("span",{style:{color:"#296DF3",fontWeight:"bold"},children:a==null?void 0:a.name}),"\u5C06\u88AB\u5220\u9664\uFF0C\u662F\u5426\u786E\u8BA4\uFF1F"]})})})},uV=cV,fV=function(i){var a=i.onClick;return(0,de.jsx)("div",{style:{padding:0,backgroundColor:"#fff",display:"flex",justifyContent:"end",position:"absolute",top:20,right:20,zIndex:1},children:(0,de.jsxs)(U.Z,{children:[(0,de.jsx)(Le.Z,{icon:(0,de.jsx)(Fe.Z,{}),size:"small",onClick:function(){a==null||a({eventName:"createDatabase"})},children:"\u65B0\u5EFA\u6570\u636E\u6E90"},"createDatabaseBtn"),(0,de.jsx)(Le.Z,{icon:(0,de.jsx)(Fe.Z,{}),size:"small",onClick:function(){a==null||a({eventName:"createDimension"})},children:"\u65B0\u5EFA\u7EF4\u5EA6"},"createDimensionBtn"),(0,de.jsx)(Le.Z,{icon:(0,de.jsx)(Fe.Z,{}),size:"small",onClick:function(){a==null||a({eventName:"createMetric"})},children:"\u65B0\u5EFA\u6307\u6807"},"createMetricBtn")]})})},dV=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(fV),pV=function(i){var a=i.legendOptions,l=i.value,u=i.defaultCheckAll,E=u===void 0?!1:u,P=i.onChange,j=(0,K.useState)(l||[]),H=(0,z.Z)(j,2),X=H[0],ee=H[1];(0,K.useEffect)(function(){if(!!E){if(!Array.isArray(a)){ee([]);return}ee(a.map(function(Se){return Se.id}))}},[a]),(0,K.useEffect)(function(){if(!Array.isArray(l)){ee([]);return}ee(l)},[l]);var se=function(Re){ee(Re),P==null||P(Re)};return(0,de.jsx)("div",{className:UM().graphLegend,children:(0,de.jsx)(Pn.Z.Group,{style:{width:"100%"},onChange:se,value:X,children:(0,de.jsxs)("div",{style:{width:"100%",maxWidth:"450px"},children:[(0,de.jsx)("div",{className:UM().title,children:"\u53EF\u89C1\u6570\u636E\u6E90"}),(0,de.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,de.jsx)(U.Z,{wrap:!0,size:[8,16],children:a.map(function(Se){return(0,de.jsx)(Pn.Z,{value:Se.id,style:{transform:"scale(0.85)"},children:Se.label},Se.id)})})})]})})})},Z8=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(pV),V8=o(99210);function z8(C){var i=K.useRef();i.current=C;var a=K.useCallback(function(){for(var l,u=arguments.length,E=new Array(u),P=0;P<u;P++)E[P]=arguments[P];return(l=i.current)===null||l===void 0?void 0:l.call.apply(l,[i].concat(E))},[]);return a}function W8(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var H8=W8()?K.useLayoutEffect:K.useEffect,YR=function(i,a){var l=K.useRef(!0);H8(function(){return i(l.current)},a),H8(function(){return l.current=!1,function(){l.current=!0}},[])},G8=function(i,a){YR(function(l){if(!l)return i()},a)},vV=YR;function $8(C){var i=K.useRef(!1),a=K.useState(C),l=(0,fa.Z)(a,2),u=l[0],E=l[1];K.useEffect(function(){return i.current=!1,function(){i.current=!0}},[]);function P(j,H){H&&i.current||E(j)}return[u,P]}function XR(C){return C!==void 0}function K8(C,i){var a=i||{},l=a.defaultValue,u=a.value,E=a.onChange,P=a.postState,j=$8(function(){return XR(u)?u:XR(l)?typeof l=="function"?l():l:typeof C=="function"?C():C}),H=(0,fa.Z)(j,2),X=H[0],ee=H[1],se=u!==void 0?u:X,Se=P?P(se):se,Re=z8(E),Be=$8([se]),Ye=(0,fa.Z)(Be,2),ht=Ye[0],Tt=Ye[1];G8(function(){var Kt=ht[0];X!==Kt&&Re(X,Kt)},[ht]),G8(function(){XR(u)||ee(u)},[u]);var Dt=z8(function(Kt,gn){ee(Kt,gn),Tt([se],gn)});return[Se,Dt]}function hV(C,i,a){var l=React.useRef({});return(!("value"in l.current)||a(l.current.condition,i))&&(l.current.value=C(),l.current.condition=i),l.current.value}function Y8(C,i){typeof C=="function"?C(i):(0,ta.Z)(C)==="object"&&C&&"current"in C&&(C.current=i)}function JR(){for(var C=arguments.length,i=new Array(C),a=0;a<C;a++)i[a]=arguments[a];var l=i.filter(function(u){return u});return l.length<=1?l[0]:function(u){i.forEach(function(E){Y8(E,u)})}}function mV(){for(var C=arguments.length,i=new Array(C),a=0;a<C;a++)i[a]=arguments[a];return useMemo(function(){return JR.apply(void 0,i)},i,function(l,u){return l.length!==u.length||l.every(function(E,P){return E!==u[P]})})}function gV(C){var i,a,l=isMemo(C)?C.type.type:C.type;return!(typeof l=="function"&&!((i=l.prototype)!==null&&i!==void 0&&i.render)||typeof C=="function"&&!((a=C.prototype)!==null&&a!==void 0&&a.render))}function hH(C){return!isValidElement(C)||isFragment(C)?!1:gV(C)}function X8(C,i){var a=(0,Jt.Z)({},C);return Array.isArray(i)&&i.forEach(function(l){delete a[l]}),a}var J8=function(i){return i?{left:i.offsetLeft,right:i.parentElement.clientWidth-i.clientWidth-i.offsetLeft,width:i.clientWidth}:null},vC=function(i){return i!==void 0?"".concat(i,"px"):void 0};function Q8(C){var i=C.prefixCls,a=C.containerRef,l=C.value,u=C.getValueIndex,E=C.motionName,P=C.onMotionStart,j=C.onMotionEnd,H=C.direction,X=K.useRef(null),ee=K.useState(l),se=(0,fa.Z)(ee,2),Se=se[0],Re=se[1],Be=function(za){var xi,Di=u(za),Si=(xi=a.current)===null||xi===void 0?void 0:xi.querySelectorAll(".".concat(i,"-item"))[Di];return(Si==null?void 0:Si.offsetParent)&&Si},Ye=K.useState(null),ht=(0,fa.Z)(Ye,2),Tt=ht[0],Dt=ht[1],Kt=K.useState(null),gn=(0,fa.Z)(Kt,2),bn=gn[0],mn=gn[1];vV(function(){if(Se!==l){var va=Be(Se),za=Be(l),xi=J8(va),Di=J8(za);Re(l),Dt(xi),mn(Di),va&&za?P():j()}},[l]);var kn=K.useMemo(function(){return vC(H==="rtl"?-(Tt==null?void 0:Tt.right):Tt==null?void 0:Tt.left)},[H,Tt]),sr=K.useMemo(function(){return vC(H==="rtl"?-(bn==null?void 0:bn.right):bn==null?void 0:bn.left)},[H,bn]),yr=function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},jr=function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},zr=function(){Dt(null),mn(null),j()};return!Tt||!bn?null:K.createElement(zn.ZP,{visible:!0,motionName:E,motionAppear:!0,onAppearStart:yr,onAppearActive:jr,onAppearEnd:zr},function(va,za){var xi=va.className,Di=va.style,Si=(0,Jt.Z)((0,Jt.Z)({},Di),{},{"--thumb-start-left":kn,"--thumb-start-width":vC(Tt==null?void 0:Tt.width),"--thumb-active-left":sr,"--thumb-active-width":vC(bn==null?void 0:bn.width)}),jo={ref:JR(X,za),style:Si,className:ba()("".concat(i,"-thumb"),xi)};return K.createElement("div",jo)})}var m4=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function Iw(C){if(typeof C.title!="undefined")return C.title;if((0,ta.Z)(C.label)!=="object"){var i;return(i=C.label)===null||i===void 0?void 0:i.toString()}}function q8(C){return C.map(function(i){if((0,ta.Z)(i)==="object"&&i!==null){var a=Iw(i);return(0,Jt.Z)((0,Jt.Z)({},i),{},{title:a})}return{label:i==null?void 0:i.toString(),title:i==null?void 0:i.toString(),value:i}})}var eF=function(i){var a=i.prefixCls,l=i.className,u=i.disabled,E=i.checked,P=i.label,j=i.title,H=i.value,X=i.onChange,ee=function(Se){u||X(Se,H)};return K.createElement("label",{className:ba()(l,(0,$t.Z)({},"".concat(a,"-item-disabled"),u))},K.createElement("input",{className:"".concat(a,"-item-input"),type:"radio",disabled:u,checked:E,onChange:ee}),K.createElement("div",{className:"".concat(a,"-item-label"),title:j},P))},g4=K.forwardRef(function(C,i){var a,l,u=C.prefixCls,E=u===void 0?"rc-segmented":u,P=C.direction,j=C.options,H=C.disabled,X=C.defaultValue,ee=C.value,se=C.onChange,Se=C.className,Re=Se===void 0?"":Se,Be=C.motionName,Ye=Be===void 0?"thumb-motion":Be,ht=(0,Ls.Z)(C,m4),Tt=K.useRef(null),Dt=K.useMemo(function(){return JR(Tt,i)},[Tt,i]),Kt=K.useMemo(function(){return q8(j)},[j]),gn=K8((a=Kt[0])===null||a===void 0?void 0:a.value,{value:ee,defaultValue:X}),bn=(0,fa.Z)(gn,2),mn=bn[0],kn=bn[1],sr=K.useState(!1),yr=(0,fa.Z)(sr,2),jr=yr[0],zr=yr[1],va=function(Di,Si){H||(kn(Si),se==null||se(Si))},za=X8(ht,["children"]);return K.createElement("div",(0,Fn.Z)({},za,{className:ba()(E,(l={},(0,$t.Z)(l,"".concat(E,"-rtl"),P==="rtl"),(0,$t.Z)(l,"".concat(E,"-disabled"),H),l),Re),ref:Dt}),K.createElement("div",{className:"".concat(E,"-group")},K.createElement(Q8,{prefixCls:E,value:mn,containerRef:Tt,motionName:"".concat(E,"-").concat(Ye),direction:P,getValueIndex:function(Di){return Kt.findIndex(function(Si){return Si.value===Di})},onMotionStart:function(){zr(!0)},onMotionEnd:function(){zr(!1)}}),Kt.map(function(xi){return K.createElement(eF,(0,Fn.Z)({key:xi.value,prefixCls:E,className:ba()(xi.className,"".concat(E,"-item"),(0,$t.Z)({},"".concat(E,"-item-selected"),xi.value===mn&&!jr)),checked:xi.value===mn,onChange:va},xi,{disabled:!!H||!!xi.disabled}))})))});g4.displayName="Segmented",g4.defaultProps={options:[]};var _V=g4,tF=function(C,i){var a={};for(var l in C)Object.prototype.hasOwnProperty.call(C,l)&&i.indexOf(l)<0&&(a[l]=C[l]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(C);u<l.length;u++)i.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(C,l[u])&&(a[l[u]]=C[l[u]]);return a};function yV(C){return(0,ta.Z)(C)==="object"&&!!(C==null?void 0:C.icon)}var bV=K.forwardRef(function(C,i){var a,l=C.prefixCls,u=C.className,E=C.block,P=C.options,j=P===void 0?[]:P,H=C.size,X=H===void 0?"middle":H,ee=tF(C,["prefixCls","className","block","options","size"]),se=K.useContext(Ri.E_),Se=se.getPrefixCls,Re=se.direction,Be=Se("segmented",l),Ye=K.useContext(CE.Z),ht=X||Ye,Tt=K.useMemo(function(){return j.map(function(Dt){if(yV(Dt)){var Kt=Dt.icon,gn=Dt.label,bn=tF(Dt,["icon","label"]);return(0,Fn.Z)((0,Fn.Z)({},bn),{label:K.createElement(K.Fragment,null,K.createElement("span",{className:"".concat(Be,"-item-icon")},Kt),gn&&K.createElement("span",null,gn))})}return Dt})},[j,Be]);return K.createElement(_V,(0,Fn.Z)({},ee,{className:ba()(u,(a={},(0,$t.Z)(a,"".concat(Be,"-block"),E),(0,$t.Z)(a,"".concat(Be,"-sm"),ht==="small"),(0,$t.Z)(a,"".concat(Be,"-lg"),ht==="large"),a)),options:Tt,ref:i,prefixCls:Be,direction:Re}))}),xV=bV,EV=function(i){var a=i.value,l=i.onChange;return(0,de.jsx)("div",{className:UM().graphLegendVisibleModeItem,children:(0,de.jsx)(xV,{size:"small",block:!0,value:a,onChange:function(E){l==null||l(E)},options:[{value:"",label:"\u5168\u90E8"},{value:Ct.Z.DIMENSION,label:"\u4EC5\u7EF4\u5EA6"},{value:Ct.Z.METRIC,label:"\u4EC5\u6307\u6807"}]})})},_4=EV,SV=function(i){var a=i.domainManger,l=i.dispatch,u=(0,K.useRef)(null),E=(0,K.useRef)([]),P=(0,K.useState)(),j=(0,z.Z)(P,2),H=j[0],X=j[1],ee=(0,K.useState)(!1),se=(0,z.Z)(ee,2),Se=se[0],Re=se[1],Be=(0,K.useState)(!1),Ye=(0,z.Z)(Be,2),ht=Ye[0],Tt=Ye[1],Dt=(0,K.useState)(!1),Kt=(0,z.Z)(Dt,2),gn=Kt[0],bn=Kt[1],mn=(0,K.useState)(),kn=(0,z.Z)(mn,2),sr=kn[0],yr=kn[1],jr=(0,K.useRef)([]),zr=(0,K.useRef)(null),va=(0,K.useState)(),za=(0,z.Z)(va,2),xi=za[0],Di=za[1],Si=(0,K.useState)(),jo=(0,z.Z)(Si,2),ro=jo[0],hi=jo[1],io=(0,K.useState)(),oo=(0,z.Z)(io,2),Ki=oo[0],Ji=oo[1],Ao=(0,K.useState)([]),ks=(0,z.Z)(Ao,2),Lo=ks[0],Is=ks[1],Cl=a.dimensionList,il=a.metricList,Pl=a.selectModelId,lc=a.selectDomainId,Mc=(0,K.useRef)([]),dp=(0,K.useRef)([]),zf=(0,K.useState)(!1),gv=(0,z.Z)(zf,2),Wf=gv[0],cu=gv[1],kf=(0,K.useState)(!1),af=(0,z.Z)(kf,2),lf=af[0],gu=af[1],Vc=(0,K.useRef)(!1),Wc=(0,K.useState)(!1),Mu=(0,z.Z)(Wc,2),Rc=Mu[0],Nl=Mu[1],Oc=(0,K.useRef)(),au=(0,K.useState)(),ef=(0,z.Z)(au,2),ju=ef[0],Gf=ef[1],ip=(0,K.useRef)();(0,K.useEffect)(function(){Mc.current=Cl,dp.current=il},[Cl,il]);var ph=function(md){var mf=E.current.reduce(function(Vh,Gv){var cg=Gv.dimensions,Py=Gv.metrics,vh=cg.filter(function(qp){return qp.name.includes(md)}),X_=Py.filter(function(qp){return qp.name.includes(md)});return Vh.push((0,Ie.Z)((0,Ie.Z)({},Gv),{},{dimensions:vh,metrics:X_})),Vh},[]),Av=Qp(mf);lg(Av)},Qp=function(md){var mf=Sx({dataSourceList:md,type:Oc.current,limit:20,showDataSourceId:ip.current}),Av={id:"root",name:a.selectDomainName,children:mf};return Av},Zh=function(md){var mf,Av=md==null||(mf=md.children)===null||mf===void 0?void 0:mf.map(function(Vh){var Gv=Vh.id,cg=Vh.name;return(0,Ie.Z)({id:Gv,label:cg,order:4},DO.datasource)});jr.current=Av},sg=function(){var Ld=(0,G.Z)((0,L.Z)().mark(function md(mf){var Av,Vh,Gv,cg;return(0,L.Z)().wrap(function(vh){for(;;)switch(vh.prev=vh.next){case 0:return vh.next=2,(0,dt.V2)(mf.modelId);case 2:if(Av=vh.sent,Vh=Av.code,Gv=Av.data,Vh!==200){vh.next=16;break}if(!Gv){vh.next=13;break}return Is(Gv.map(function(X_){return X_.datasource})),cg=Qp(Gv),E.current=Gv,Zh(cg),X(cg),vh.abrupt("return",cg);case 13:return vh.abrupt("return",!1);case 16:return vh.abrupt("return",!1);case 17:case"end":return vh.stop()}},md)}));return function(mf){return Ld.apply(this,arguments)}}();(0,K.useEffect)(function(){ip.current=void 0,zr.current=null,sg({modelId:Pl})},[Pl]);var qv=function(md){var mf=md.model;if(!!mf){var Av=kT(md);if(Av&&Ji((0,Ie.Z)((0,Ie.Z)({},Av),{},{id:Av.uid})),mf.nodeType===Ct.Z.DATASOURCE){gu(!0);return}if(mf.nodeType===Ct.Z.DIMENSION){var Vh=Mc.current.find(function(cg){return cg.id===mf.uid});Vh?(Di((0,Ie.Z)({},Vh)),Re(!0)):$.default.error("\u83B7\u53D6\u7EF4\u5EA6\u521D\u59CB\u5316\u6570\u636E\u5931\u8D25");return}if(mf.nodeType===Ct.Z.METRIC){var Gv=dp.current.find(function(cg){return cg.id===mf.uid});Gv?(hi((0,Ie.Z)({},Gv)),Tt(!0)):$.default.error("\u83B7\u53D6\u6307\u6807\u521D\u59CB\u5316\u6570\u636E\u5931\u8D25");return}}},Cm=function(md,mf){var Av=md.model;!Av||(Ji((0,Ie.Z)((0,Ie.Z)({},Av),{},{id:Av.uid})),mf==="createDimension"&&Re(!0),mf==="createMetric"&&Tt(!0),Di(void 0),hi(void 0))},Rh=function(md){var mf=md.model;if(!!mf){if(mf.nodeType===Ct.Z.DATASOURCE){yr((0,Ie.Z)((0,Ie.Z)({},mf),{},{id:mf.uid})),cu(!0);return}if(mf.nodeType===Ct.Z.DIMENSION){var Av=Mc.current.find(function(Gv){return Gv.id===mf.uid});Av?(yr((0,Ie.Z)((0,Ie.Z)({},mf),Av)),cu(!0)):$.default.error("\u83B7\u53D6\u7EF4\u5EA6\u521D\u59CB\u5316\u6570\u636E\u5931\u8D25")}if(mf.nodeType===Ct.Z.METRIC){var Vh=dp.current.find(function(Gv){return Gv.id===mf.uid});Vh?(yr((0,Ie.Z)((0,Ie.Z)({},mf),Vh)),cu(!0)):$.default.error("\u83B7\u53D6\u6307\u6807\u521D\u59CB\u5316\u6570\u636E\u5931\u8D25")}}},xv=function(md,mf){if(!!(mf!=null&&mf._cfg))switch(md){case"edit":case"editDatasource":qv(mf._cfg);break;case"delete":case"deleteDatasource":Rh(mf._cfg);break;case"createDimension":case"createMetric":Cm(mf._cfg,md);break;default:break}},ov=function(md){yr(md),bn(!0)},qf={dendrogram:{defaultEdge:{type:"cubic-horizontal"},layout:{type:"dendrogram",direction:"LR",animate:!1,nodeSep:200,rankSep:300,radial:!0}},mindmap:{defaultEdge:{type:"polyline"},layout:{type:"mindmap",animate:!1,direction:"H",getHeight:function(){return 50},getWidth:function(){return 50},getVGap:function(){return 10},getHGap:function(){return 50}}}};function Up(Ld){if(Ld==="visibleMode"){Vc.current=!Vc.current,Nl(Vc.current);return}Vc.current=!1,Nl(!1)}(0,K.useEffect)(function(){if(!!Array.isArray(H==null?void 0:H.children)){var Ld=document.getElementById("semanticGraph"),md=Ld.scrollWidth,mf=Ld.scrollHeight||500,Av=zr.current;if(!Av&&H){var Vh=yg(H.children),Gv=Vh.length>20?"dendrogram":"mindmap",cg=XZ({onSearch:ph,onClick:Up}),Py=QZ(),vh=tV({onMenuClick:xv});zr.current=new BM.TreeGraph({container:"semanticGraph",width:md,height:mf,modes:{default:["drag-node","drag-canvas",{type:"zoom-canvas",sensitivity:.3},{type:"activate-relations",trigger:"mouseenter",resetSelected:!0}]},defaultNode:{size:26,anchorPoints:[[0,.5],[1,.5]],labelCfg:{position:"right",offset:5,style:{stroke:"#fff",lineWidth:4}}},defaultEdge:{type:qf[Gv].defaultEdge.type},layout:(0,Ie.Z)({},qf[Gv].layout),plugins:[Py,cg,vh]}),zr.current.set("initGraphData",H),zr.current.set("initDataSource",E.current),zr.current.node(function(qp){return PT(qp,{label:qp.name})}),zr.current.data(H),zr.current.render(),zr.current.fitView([80,80]),zr.current.on("node:click",function(qp){var $m,zh=qp.item,Xg=zh==null||($m=zh._cfg)===null||$m===void 0?void 0:$m.model;if(Xg){var J_=Xg.nodeType;if([Ct.Z.DIMENSION,Ct.Z.METRIC,Ct.Z.DATASOURCE].includes(J_)){ov(Xg);return}}}),zr.current.on("canvas:click",function(){bn(!1)});var X_=zr.current.findById("root");zr.current.hideItem(X_),typeof window!="undefined"&&(window.onresize=function(){!zr.current||zr.current.get("destroyed")||!Ld||!Ld.scrollWidth||!Ld.scrollHeight||zr.current.changeSize(Ld.scrollWidth,Ld.scrollHeight)})}}},[H]);var eh=function(){var Ld=(0,G.Z)((0,L.Z)().mark(function md(mf){var Av;return(0,L.Z)().wrap(function(Gv){for(;;)switch(Gv.prev=Gv.next){case 0:return Gv.next=2,sg({modelId:Pl,graphShowType:mf==null?void 0:mf.graphShowType});case 2:Av=Gv.sent,Av&&lg(Av);case 4:case"end":return Gv.stop()}},md)}));return function(mf){return Ld.apply(this,arguments)}}(),lg=function(md){zr.current.changeData(md);var mf=zr.current.findById("root");zr.current.hideItem(mf),zr.current.fitView()};return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Z8,{legendOptions:jr.current,defaultCheckAll:!0,onChange:function(md){ip.current=md;var mf=Qp(E.current);lg(mf)}}),Rc&&(0,de.jsx)(_4,{value:ju,onChange:function(md){Oc.current=md,Gf(md);var mf=Qp(E.current);lg(mf)}}),(0,de.jsx)(dV,{onClick:function(md){var mf=md.eventName;Ji(void 0),mf==="createDatabase"&&gu(!0),mf==="createDimension"&&(Re(!0),Di(void 0)),mf==="createMetric"&&(Tt(!0),hi(void 0))}}),(0,de.jsx)("div",{ref:u,id:"semanticGraph",style:{width:"100%",height:"calc(100vh - 175px)",position:"relative"}},"".concat(Pl)),(0,de.jsx)(lV,{nodeData:sr,placement:"right",onClose:function(){bn(!1)},open:gn,mask:!1,getContainer:!1,onEditBtnClick:function(md){qv({model:md}),bn(!1)},onNodeChange:function(md){var mf=md.eventName;eh(),bn(!1),mf===Ct.Z.METRIC&&l({type:"domainManger/queryMetricList",payload:{modelId:Pl}}),mf===Ct.Z.DIMENSION&&l({type:"domainManger/queryDimensionList",payload:{modelId:Pl}})}}),Se&&(0,de.jsx)(Uy,{modelId:Pl,bindModalVisible:Se,dimensionItem:xi,dataSourceList:Ki?[Ki]:Lo,onSubmit:function(){Re(!1),eh(),l({type:"domainManger/queryDimensionList",payload:{modelId:Pl}})},onCancel:function(){Re(!1)}}),ht&&(0,de.jsx)(d0.Z,{domainId:lc,modelId:Pl,datasourceId:Ki==null?void 0:Ki.id,createModalVisible:ht,metricItem:ro,onSubmit:function(){Tt(!1),eh(),l({type:"domainManger/queryMetricList",payload:{modelId:Pl}})},onCancel:function(){Tt(!1)}},ro==null?void 0:ro.id),(0,de.jsx)(KM,{open:lf,onCancel:function(){Ji(void 0),gu(!1)},dataSourceItem:Ki,onSubmit:function(){eh()}}),(0,de.jsx)(uV,{open:Wf,onOkClick:function(){cu(!1),eh(),ju===Ct.Z.DIMENSION?l({type:"domainManger/queryDimensionList",payload:{modelId:Pl}}):l({type:"domainManger/queryMetricList",payload:{modelId:Pl}})},onCancelClick:function(){cu(!1)},nodeData:sr})]})},CV=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(SV),wV=function(i){var a=i.domainManger,l=a.selectDomainId;return(0,de.jsx)("div",{className:St().semanticGraphCanvas,children:(0,de.jsx)("div",{className:St().canvasContainer,children:(0,de.jsx)("div",{style:{width:"100%"},children:(0,de.jsx)(CV,{})})})})},nF=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(wV),TV=function(i){var a=i.isModel,l=i.activeKey,u=i.modelList,E=i.handleModelChange,P=i.onBackDomainBtnClick,j=i.onMenuChange,H="xflow",X=[{label:"\u6A21\u578B",key:"overview",children:(0,de.jsx)(Jb,{modelList:u,onModelChange:function(Se){E(Se)}})},{label:"\u6570\u636E\u5E93",key:"dataBase",children:(0,de.jsx)(tS,{})},{label:"\u6743\u9650\u7BA1\u7406",key:"permissonSetting",children:(0,de.jsx)(AT,{permissionTarget:"domain"})}],ee=[{label:"\u753B\u5E03",key:"xflow",children:(0,de.jsx)("div",{style:{width:"100%",marginTop:-20},children:(0,de.jsx)(nF,{})})},{label:"\u6570\u636E\u6E90",key:"dataSource",children:(0,de.jsx)(rT,{})},{label:"\u7EF4\u5EA6",key:"dimenstion",children:(0,de.jsx)(Sv,{})},{label:"\u6307\u6807",key:"metric",children:(0,de.jsx)(zE,{})},{label:"\u5B9E\u4F53",key:"entity",children:(0,de.jsx)(IO,{})},{label:"\u6743\u9650\u7BA1\u7406",key:"permissonSetting",children:(0,de.jsx)(AT,{permissionTarget:"model"})}];return(0,de.jsx)(de.Fragment,{children:(0,de.jsx)(ut.Z,{className:St().tab,items:a?ee:X,activeKey:l||H,destroyInactiveTabPane:!0,tabBarExtraContent:a?(0,de.jsx)(Le.Z,{type:"primary",icon:(0,de.jsx)(bt.Z,{}),onClick:function(){P==null||P()},style:{marginRight:10},children:"\u8FD4\u56DE\u4E3B\u9898\u57DF"}):void 0,onChange:function(Se){j==null||j(Se)}})})},AV=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(TV),MV=function(i){var a=i.mode,l=i.domainManger,u=i.dispatch,E=(0,ne.UO)(),P=E.domainId,j=E.modelId,H=E.menuKey?E.menuKey:Number(j)?"":"overview",X=l.selectDomainId,ee=l.selectModelId,se=l.selectDomainName,Se=l.selectModelName,Re=l.domainList,Be=(0,K.useState)([]),Ye=(0,z.Z)(Be,2),ht=Ye[0],Tt=Ye[1],Dt=(0,K.useState)(!1),Kt=(0,z.Z)(Dt,2),gn=Kt[0],bn=Kt[1],mn=(0,K.useState)(!1),kn=(0,z.Z)(mn,2),sr=kn[0],yr=kn[1],jr=(0,K.useState)(H),zr=(0,z.Z)(jr,2),va=zr[0],za=zr[1],xi=function(Ji){yr(Ji)},Di=function(Ji){var Ao=Ji.filter(function(Pl){return"".concat(Pl.id)===P})[0];if(Ao){var Cl=Ao.id,il=Ao.name;u({type:"domainManger/setSelectDomain",selectDomainId:Cl,selectDomainName:il,domainData:Ao})}else{var ks=Ji.filter(function(Pl){return Pl.parentId===0})[0];if(ks){var Lo=ks.id,Is=ks.name;u({type:"domainManger/setSelectDomain",selectDomainId:Lo,selectDomainName:Is,domainData:ks}),za(H),hi(Lo,0,H)}}},Si=function(){var Ki=(0,G.Z)((0,L.Z)().mark(function Ji(){var Ao,ks,Lo,Is;return(0,L.Z)().wrap(function(il){for(;;)switch(il.prev=il.next){case 0:return il.next=2,(0,dt.i7)();case 2:Ao=il.sent,ks=Ao.code,Lo=Ao.data,Is=Ao.msg,ks===200?(Di(Lo),u({type:"domainManger/setDomainList",payload:{domainList:Lo}})):$.default.error(Is);case 7:case"end":return il.stop()}},Ji)}));return function(){return Ki.apply(this,arguments)}}();(0,K.useEffect)(function(){Si()},[]),(0,K.useEffect)(function(){!X||(jo(),u({type:"domainManger/queryDatabaseByDomainId",payload:{domainId:X}}))},[X]);var jo=function(){var Ki=(0,G.Z)((0,L.Z)().mark(function Ji(){var Ao,ks,Lo,Is,Cl,il;return(0,L.Z)().wrap(function(lc){for(;;)switch(lc.prev=lc.next){case 0:return lc.next=2,(0,dt.fZ)(X);case 2:Ao=lc.sent,ks=Ao.code,Lo=Ao.data,ks===200?(Tt(Lo),Is=Lo.filter(function(Mc){return"".concat(Mc.id)===j})[0],Is&&(Cl=Is.id,il=Is.name,u({type:"domainManger/setSelectModel",selectModelId:Cl,selectModelName:il,modelData:Is}),za(H),bn(!0),hi(X,Cl,H))):$.default.error("\u83B7\u53D6\u6A21\u578B\u5217\u8868\u5931\u8D25!");case 6:case"end":return lc.stop()}},Ji)}));return function(){return Ki.apply(this,arguments)}}();(0,K.useEffect)(function(){!X||(bn(!1),za(H))},[Re,X]);var ro=function(){bn(!0);var Ji=H==="overview"?"":H;hi(X,ee,Ji),za(Ji)};(0,K.useEffect)(function(){!ee||(ro(),u({type:"domainManger/queryDimensionList",payload:{modelId:ee}}),u({type:"domainManger/queryMetricList",payload:{modelId:ee}}))},[ee]);var hi=function(Ji,Ao,ks){var Lo=a==="domain"?"semanticModel":"chatSetting";Q.m8.push("/".concat(Lo,"/model/").concat(Ji,"/").concat(Ao||0,"/").concat(ks))},io=function(Ji){if(jo(),!!Ji){"".concat(Ji.id)==="".concat(ee)&&ro();var Ao=Ji.id,ks=Ji.name;u({type:"domainManger/setSelectModel",selectModelId:Ao,selectModelName:ks,modelData:Ji})}},oo=function(Ji){bn(!1),hi(Ji,0,"overview"),za("overview"),u({type:"domainManger/setSelectModel",selectModelId:0,selectModelName:"",modelData:void 0})};return(0,de.jsxs)("div",{className:St().projectBody,children:[(0,de.jsx)(Q.ql,{title:"\u6A21\u578B\u7BA1\u7406-\u8D85\u97F3\u6570"}),(0,de.jsxs)("div",{className:St().projectManger,children:[(0,de.jsx)("h2",{className:St().title,children:(0,de.jsx)(Z.Z,{zIndex:1e3,overlayInnerStyle:{overflow:"scroll",maxHeight:"800px"},content:(0,de.jsx)(lr,{createDomainBtnVisible:a==="domain",onTreeSelected:function(Ji){yr(!1);var Ao=Ji.id,ks=Ji.name;oo(Ao),u({type:"domainManger/setSelectDomain",selectDomainId:Ao,selectDomainName:ks,domainData:Ji})},onTreeDataUpdate:function(){Si()}}),trigger:"click",open:sr,onOpenChange:xi,children:(0,de.jsxs)("div",{className:St().domainSelector,children:[(0,de.jsx)("span",{className:St().domainTitle,children:(0,de.jsxs)(U.Z,{children:[se?"\u5F53\u524D\u4E3B\u9898\u57DF\uFF1A".concat(se):"\u4E3B\u9898\u57DF\u4FE1\u606F",Se&&(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("span",{style:{position:"relative",top:"-2px"},children:" | "}),(0,de.jsx)("span",{style:{fontSize:16,color:"#296DF3"},children:Se})]})]})}),(0,de.jsx)("span",{className:St().downIcon,children:(0,de.jsx)(et.Z,{})})]})})}),X?(0,de.jsx)(de.Fragment,{children:a==="domain"?(0,de.jsx)(AV,{isModel:gn,activeKey:va,modelList:ht,handleModelChange:function(Ji){io(Ji)},onBackDomainBtnClick:function(){oo(X)},onMenuChange:function(Ji){za(Ji),hi(X,ee,Ji)}}):(0,de.jsx)(jy,{isModel:gn,activeKey:va,modelList:ht,handleModelChange:function(Ji){io(Ji)},onBackDomainBtnClick:function(){oo(X)},onMenuChange:function(Ji){za(Ji),hi(X,ee,Ji)}})}):(0,de.jsx)("h2",{className:St().mainTip,children:"\u8BF7\u9009\u62E9\u9879\u76EE"})]})]})},kV=(0,Q.$j)(function(C){var i=C.domainManger;return{domainManger:i}})(MV)},66146:function(oe,N,o){"use strict";o.d(N,{Z:function(){return wt}});var x=o(26780),g=o(51935),A=o(50111),y=o(55419),M=o(13753),w=o(48429),m=o(11826),b=o(1541),v=o(59560),h=o(3114),d=o(86582),_=o(14643),p=o(92909),S=o(11849),k=o(39428),O=o(3182),F=o(2824),D=o(97140),Z=o(90407),W=o(68137),U=o(50532),L=o(67604),V=o(72285),$=o(8017),G=o(17731),z=o(67294),K=o(25324),re=o(45733),ne=o(34008),Q=o(23937),ue=o(89004),he=o(20546),Ee=o(85893),ce=function(gt){var it=gt.measuresList,Le=gt.selectedMeasuresList,ct=Le===void 0?[]:Le,at=gt.onSubmit,jt=gt.onCancel,St=gt.createModalVisible,fn=gt.projectManger,Xt=fn||{},Yt=Xt.searchParams,Rt=Yt===void 0?{}:Yt,Lt=(0,z.useRef)(),ze=(0,z.useState)(function(){return ct.map(function(cn){return cn.bizName})}),rt=(0,F.Z)(ze,2),tt=rt[0],de=rt[1],ot=(0,z.useState)([]),Et=(0,F.Z)(ot,2),Ht=Et[0],Jt=Et[1],Qt=function(){var cn=(0,O.Z)((0,k.Z)().mark(function er(){return(0,k.Z)().wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:at==null||at(Ht);case 1:case"end":return nt.stop()}},er)}));return function(){return cn.apply(this,arguments)}}(),an=function(er){return it.find(function(rr){return rr.bizName===er})};(0,z.useEffect)(function(){var cn=tt.map(function(er){var rr=an(er);return rr});Jt((0,d.Z)(cn))},[tt]),(0,z.useEffect)(function(){},[]);var Un=[{dataIndex:"bizName",title:"\u5EA6\u91CF\u540D\u79F0"},{dataIndex:"alias",title:"\u522B\u540D"},{dataIndex:"agg",title:"\u7B97\u5B50\u7C7B\u578B"},{dataIndex:"datasourceName",title:"\u6240\u5C5E\u6570\u636E\u6E90"}],qt=function(){return(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsx)(w.Z,{onClick:jt,children:"\u53D6\u6D88"}),(0,Ee.jsx)(w.Z,{type:"primary",onClick:Qt,children:"\u5C06\u9009\u4E2D\u5EA6\u91CF\u6DFB\u52A0\u5230\u6307\u6807"})]})},rn={selectedRowKeys:tt,onChange:function(er){de((0,d.Z)(er))}};return(0,Ee.jsx)(g.Z,{width:800,destroyOnClose:!0,title:"\u5EA6\u91CF\u6DFB\u52A0",open:St,footer:qt(),onCancel:function(){jt()},children:(0,Ee.jsx)(ne.ZP,{actionRef:Lt,rowKey:"bizName",rowSelection:rn,columns:Un,params:(0,S.Z)({},Rt),pagination:!1,dataSource:it,size:"small",search:!1,options:!1,scroll:{y:800}})})},ve=(0,he.$j)(function(Vt){var gt=Vt.projectManger;return{projectManger:gt}})(ce),fe=function(gt){var it=gt.title,Le=gt.labelStyles,ct=Le===void 0?{}:Le;return(0,Ee.jsx)(Ee.Fragment,{children:(0,Ee.jsx)("div",{className:"ant-col ant-form-item-label",children:(0,Ee.jsx)("label",{htmlFor:"description",className:"ant-form-item-required",title:it,style:(0,S.Z)({fontSize:"16px"},ct),children:it})})})},we=fe,me=U.Z.TextArea,Pe=function(gt){var it=gt.datasourceId,Le=gt.typeParams,ct=gt.measuresList,at=gt.onFieldChange,jt=gt.onSqlChange,St=(0,z.useRef)(),fn=(0,z.useState)(!1),Xt=(0,F.Z)(fn,2),Yt=Xt[0],Rt=Xt[1],Lt=(0,z.useState)(Le||{expr:"",measures:[]}),ze=(0,F.Z)(Lt,2),rt=ze[0],tt=ze[1];(0,z.useEffect)(function(){tt((0,S.Z)({},Le))},[Le]);var de=(0,z.useState)((Le==null?void 0:Le.expr)||""),ot=(0,F.Z)(de,2),Et=ot[0],Ht=ot[1],Jt=[{dataIndex:"bizName",title:"\u5EA6\u91CF\u540D\u79F0"},{dataIndex:"constraint",title:"\u9650\u5B9A\u6761\u4EF6",tooltip:'\u8BE5\u9650\u5B9A\u6761\u4EF6\u7528\u4E8E\u5728\u8BA1\u7B97\u6307\u6807\u65F6\u9650\u5B9A\u53E3\u5F84\uFF0C\u4F5C\u7528\u4E8E\u5EA6\u91CF\uFF0C\u6240\u7528\u4E8E\u8FC7\u6EE4\u7684\u7EF4\u5EA6\u5FC5\u987B\u5728\u521B\u5EFA\u6570\u636E\u6E90\u7684\u65F6\u5019\u88AB\u6807\u8BB0\u4E3A\u65E5\u671F\u6216\u8005\u7EF4\u5EA6\uFF0C\u4E0D\u9700\u8981\u52A0where\u5173\u952E\u5B57\u3002\u6BD4\u5982\uFF1A\u7EF4\u5EA6A="\u503C1" and \u7EF4\u5EA6B="\u503C2"',render:function(an,Un){var qt=Un.constraint,rn=Un.name,cn=rt.measures;return(0,Ee.jsx)(me,{placeholder:"\u8BF7\u8F93\u5165\u9650\u5B9A\u6761\u4EF6",value:qt,onChange:function(rr){var nt=rr.target.value,lr=cn.map(function(Hn){return Hn.name===rn?(0,S.Z)((0,S.Z)({},Hn),{},{constraint:nt}):Hn});at==null||at(lr)}})}},{title:"\u64CD\u4F5C",dataIndex:"x",valueType:"option",render:function(an,Un){var qt=Un.name;return(0,Ee.jsx)(re.Z,{children:(0,Ee.jsx)("a",{onClick:function(){var cn=rt.measures,er=cn.filter(function(rr){return rr.name!==qt});at==null||at(er)},children:"\u5220\u9664"},"deleteBtn")})}}];return(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsxs)(re.Z,{direction:"vertical",style:{width:"100%"},children:[(0,Ee.jsx)(ne.ZP,{actionRef:St,headerTitle:(0,Ee.jsx)(we,{title:"\u5EA6\u91CF\u5217\u8868"}),tooltip:"\u57FA\u4E8E\u672C\u4E3B\u9898\u57DF\u4E0B\u6240\u6709\u6570\u636E\u6E90\u7684\u5EA6\u91CF\u6765\u521B\u5EFA\u6307\u6807\uFF0C\u4E14\u8BE5\u5217\u8868\u7684\u5EA6\u91CF\u4E3A\u4E86\u52A0\u4EE5\u533A\u5206\uFF0C\u5747\u5DF2\u52A0\u4E0A\u6570\u636E\u6E90\u540D\u79F0\u4F5C\u4E3A\u524D\u7F00\uFF0C\u9009\u4E2D\u5EA6\u91CF\u540E\uFF0C\u53EF\u57FA\u4E8E\u8FD9\u51E0\u4E2A\u5EA6\u91CF\u6765\u5199\u8868\u8FBE\u5F0F\uFF0C\u82E5\u662F\u9009\u4E2D\u7684\u5EA6\u91CF\u6765\u81EA\u4E0D\u540C\u7684\u6570\u636E\u6E90\uFF0C\u7CFB\u7EDF\u5C06\u4F1A\u81EA\u52A8join\u6765\u8BA1\u7B97\u8BE5\u6307\u6807",rowKey:"name",columns:Jt,dataSource:(rt==null?void 0:rt.measures)||[],pagination:!1,search:!1,size:"small",options:!1,toolBarRender:function(){return[(0,Ee.jsx)(w.Z,{type:"primary",onClick:function(){Rt(!0)},children:"\u589E\u52A0\u5EA6\u91CF"},"create")]}}),(0,Ee.jsx)(Q.ZP,{title:(0,Ee.jsx)(we,{title:"\u5EA6\u91CF\u8868\u8FBE\u5F0F"}),tooltip:"\u5EA6\u91CF\u8868\u8FBE\u5F0F\u7531\u4E0A\u9762\u9009\u62E9\u7684\u5EA6\u91CF\u7EC4\u6210\uFF0C\u5982\u9009\u62E9\u4E86\u5EA6\u91CFA\u548CB\uFF0C\u5219\u53EF\u5C06\u8868\u8FBE\u5F0F\u5199\u6210A+B",children:(0,Ee.jsx)(ue.Z,{value:Et,onChange:function(an){var Un=an;Ht(Un),jt==null||jt(Un)},height:"150px"})})]}),Yt&&(0,Ee.jsx)(ve,{measuresList:it&&Array.isArray(ct)?ct.filter(function(Qt){return Qt.datasourceId===it}):ct,selectedMeasuresList:(rt==null?void 0:rt.measures)||[],onSubmit:function(){var Qt=(0,O.Z)((0,k.Z)().mark(function an(Un){var qt;return(0,k.Z)().wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:qt=Un.map(function(er){var rr=er.bizName,nt=er.name,lr=er.expr,Hn=er.datasourceId;return{bizName:rr,name:nt,expr:lr,datasourceId:Hn}}),at==null||at(qt),Rt(!1);case 3:case"end":return cn.stop()}},an)}));return function(an){return Qt.apply(this,arguments)}}(),onCancel:function(){Rt(!1)},createModalVisible:Yt})]})},pe=Pe,Ie=o(98449),Je=o(95161),ke=o(41603),De=o(60277),Fe=o.n(De),Qe=o(53167),qe=G.Z.Step,et=V.Z.Item,dt=U.Z.TextArea,Ke=Z.Z.Option,Ge=function(gt){var it=gt.datasourceId,Le=gt.domainId,ct=gt.modelId,at=gt.onCancel,jt=gt.createModalVisible,St=gt.metricItem,fn=gt.onSubmit,Xt=!!(St!=null&&St.id),Yt=(0,z.useState)(0),Rt=(0,F.Z)(Yt,2),Lt=Rt[0],ze=Rt[1],rt=(0,z.useRef)({}),tt=V.Z.useForm(),de=(0,F.Z)(tt,1),ot=de[0],Et=function(An){rt.current=An},Ht=(0,z.useState)([]),Jt=(0,F.Z)(Ht,2),Qt=Jt[0],an=Jt[1],Un=(0,z.useState)([]),qt=(0,F.Z)(Un,2),rn=qt[0],cn=qt[1],er=(0,z.useState)(""),rr=(0,F.Z)(er,2),nt=rr[0],lr=rr[1],Hn=(0,z.useState)(!1),ut=(0,F.Z)(Hn,2),bt=ut[0],We=ut[1],be=(0,z.useState)(!0),Ae=(0,F.Z)(be,2),Ue=Ae[0],$e=Ae[1],kt=function(){return ze(Lt+1)},lt=function(){return ze(Lt-1)},vt=function(){var ln=(0,O.Z)((0,k.Z)().mark(function An(){var En,Gn,Bn,pr;return(0,k.Z)().wrap(function(na){for(;;)switch(na.prev=na.next){case 0:return na.next=2,(0,Qe.Ke)(ct);case 2:if(En=na.sent,Gn=En.code,Bn=En.data,Gn!==200){na.next=9;break}return an(Bn),it&&(pr=Bn.some(function($n){return $n.datasourceId===it}),$e(pr)),na.abrupt("return");case 9:an([]);case 10:case"end":return na.stop()}},An)}));return function(){return ln.apply(this,arguments)}}();(0,z.useEffect)(function(){vt()},[]);var Ct=function(){var ln=(0,O.Z)((0,k.Z)().mark(function An(){var En,Gn;return(0,k.Z)().wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:return pr.next=2,ot.validateFields();case 2:if(En=pr.sent,Gn=(0,S.Z)((0,S.Z)((0,S.Z)({},rt.current),En),{},{typeParams:{expr:nt,measures:rn},dataFormatType:bt?"percent":""}),Et(Gn),!(Lt<1)){pr.next=9;break}kt(),pr.next=11;break;case 9:return pr.next=11,mt(Gn);case 11:case"end":return pr.stop()}},An)}));return function(){return ln.apply(this,arguments)}}(),Bt=function(){var An=St,En=An.id,Gn=An.name,Bn=An.bizName,pr=An.description,_r=An.sensitiveLevel,na=An.typeParams,$n=An.dataFormat,qr=An.dataFormatType,Jr=An.alias,Aa=qr==="percent",ya={id:En,name:Gn,bizName:Bn,sensitiveLevel:_r,description:pr,isPercent:Aa,alias:Jr,dataFormat:$n||{decimalPlaces:2,needMultiply100:!1}},$t=(0,S.Z)((0,S.Z)({},rt.current),ya);Et($t),ot.setFieldsValue(ya),cn(na.measures),lr(na.expr),We(Aa)};(0,z.useEffect)(function(){Xt&&Bt()},[St]);var mt=function(){var ln=(0,O.Z)((0,k.Z)().mark(function An(En){var Gn,Bn,pr,_r,na,$n;return(0,k.Z)().wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:if(Gn=(0,S.Z)({modelId:ct},En),Bn=Gn.typeParams,Bn!=null&&Bn.expr){Jr.next=5;break}return p.default.error("\u8BF7\u8F93\u5165\u5EA6\u91CF\u8868\u8FBE\u5F0F"),Jr.abrupt("return");case 5:if(Array.isArray(Bn==null?void 0:Bn.measures)&&Bn.measures.length>0){Jr.next=8;break}return p.default.error("\u8BF7\u6DFB\u52A0\u4E00\u4E2A\u5EA6\u91CF"),Jr.abrupt("return");case 8:return pr=Qe.bU,Gn.id&&(pr=Qe.Wp),Jr.next=12,pr(Gn);case 12:if(_r=Jr.sent,na=_r.code,$n=_r.msg,na!==200){Jr.next=19;break}return p.default.success("\u7F16\u8F91\u6307\u6807\u6210\u529F"),fn==null||fn(Gn),Jr.abrupt("return");case 19:p.default.error($n);case 20:case"end":return Jr.stop()}},An)}));return function(En){return ln.apply(this,arguments)}}(),Zt=function(){return Lt===1?(0,Ee.jsx)(pe,{datasourceId:it,typeParams:{measures:rn,expr:nt},measuresList:Qt,onFieldChange:function(En){cn((0,d.Z)(En))},onSqlChange:function(En){lr(En)}}):(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsx)(et,{hidden:!0,name:"id",label:"ID",children:(0,Ee.jsx)(U.Z,{placeholder:"id"})}),(0,Ee.jsx)(et,{name:"name",label:"\u6307\u6807\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6307\u6807\u540D\u79F0"}],children:(0,Ee.jsx)(U.Z,{placeholder:"\u540D\u79F0\u4E0D\u53EF\u91CD\u590D"})}),(0,Ee.jsx)(et,{name:"bizName",label:"\u5B57\u6BB5\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B57\u6BB5\u540D\u79F0"}],children:(0,Ee.jsx)(U.Z,{placeholder:"\u540D\u79F0\u4E0D\u53EF\u91CD\u590D",disabled:Xt})}),(0,Ee.jsx)(et,{name:"alias",label:"\u522B\u540D",children:(0,Ee.jsx)(U.Z,{placeholder:"\u591A\u4E2A\u522B\u540D\u7528\u82F1\u6587\u9017\u53F7\u9694\u5F00"})}),(0,Ee.jsx)(et,{name:"sensitiveLevel",label:"\u654F\u611F\u5EA6",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u654F\u611F\u5EA6"}],children:(0,Ee.jsx)(Z.Z,{placeholder:"\u8BF7\u9009\u62E9\u654F\u611F\u5EA6",children:Ie.uc.map(function(An){return(0,Ee.jsx)(Ke,{value:An.value,children:An.label},An.value)})})}),(0,Ee.jsx)(et,{name:"description",label:"\u6307\u6807\u63CF\u8FF0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6307\u6807\u63CF\u8FF0"}],children:(0,Ee.jsx)(dt,{placeholder:"\u8BF7\u8F93\u5165\u6307\u6807\u63CF\u8FF0"})}),(0,Ee.jsx)(et,{label:(0,Ee.jsx)(ke.Z,{title:"\u662F\u5426\u5C55\u793A\u4E3A\u767E\u5206\u6BD4",subTitle:"\u5F00\u542F\u540E\uFF0C\u6307\u6807\u6570\u636E\u5C55\u793A\u65F6\u4F1A\u6839\u636E\u914D\u7F6E\u8FDB\u884C\u683C\u5F0F\u5316\uFF0C\u59820.02 -> 2%"}),name:"isPercent",valuePropName:"checked",children:(0,Ee.jsx)(h.Z,{onChange:function(En){ot.setFieldValue(["dataFormat","needMultiply100"],En)}})}),bt&&(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsx)(et,{label:(0,Ee.jsx)(ke.Z,{title:"\u5C0F\u6570\u4F4D\u6570",subTitle:"\u5BF9\u5C0F\u6570\u4F4D\u6570\u8FDB\u884C\u8BBE\u7F6E\uFF0C\u5982\u4FDD\u7559\u4E24\u4F4D\uFF0C0.021252 -> 2.12%"}),name:["dataFormat","decimalPlaces"],children:(0,Ee.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u9700\u8981\u4FDD\u7559\u5C0F\u6570\u4F4D\u6570",style:{width:"300px"}})}),(0,Ee.jsx)(et,{label:(0,Ee.jsx)(ke.Z,{title:"\u539F\u59CB\u503C\u662F\u5426\u4E58\u4EE5100",subTitle:"\u5982 \u539F\u59CB\u503C0.001 ->\u5C55\u793A\u503C0.1% "}),name:["dataFormat","needMultiply100"],valuePropName:"checked",children:(0,Ee.jsx)(h.Z,{})})]})]})},zt=function(){return Ue?Lt===1?(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsx)(w.Z,{style:{float:"left"},onClick:lt,children:"\u4E0A\u4E00\u6B65"}),(0,Ee.jsx)(w.Z,{onClick:at,children:"\u53D6\u6D88"}),(0,Ee.jsx)(w.Z,{type:"primary",onClick:Ct,children:"\u5B8C\u6210"})]}):(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsx)(w.Z,{onClick:at,children:"\u53D6\u6D88"}),(0,Ee.jsx)(w.Z,{type:"primary",onClick:Ct,children:"\u4E0B\u4E00\u6B65"})]}):(0,Ee.jsx)(w.Z,{onClick:at,children:"\u53D6\u6D88"})};return(0,Ee.jsx)(g.Z,{forceRender:!0,width:1300,style:{top:48},bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"".concat(Xt?"\u7F16\u8F91":"\u65B0\u5EFA","\u6307\u6807"),maskClosable:!1,open:jt,footer:zt(),onCancel:at,children:Ue?(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsxs)(G.Z,{style:{marginBottom:28},size:"small",current:Lt,children:[(0,Ee.jsx)(qe,{title:"\u57FA\u672C\u4FE1\u606F"}),(0,Ee.jsx)(qe,{title:"\u5EA6\u91CF\u4FE1\u606F"})]}),(0,Ee.jsx)(V.Z,(0,S.Z)((0,S.Z)({},Je.c),{},{form:ot,initialValues:(0,S.Z)({},rt.current),onValuesChange:function(An){var En=An.isPercent;En!==void 0&&We(En)},className:Fe().form,children:Zt()}))]}):(0,Ee.jsx)(y.ZP,{status:"warning",subTitle:"\u5F53\u524D\u6570\u636E\u6E90\u7F3A\u5C11\u5EA6\u91CF\uFF0C\u65E0\u6CD5\u521B\u5EFA\u6307\u6807\u3002\u8BF7\u524D\u5F80\u6570\u636E\u6E90\u914D\u7F6E\u4E2D\uFF0C\u5C06\u5B57\u6BB5\u8BBE\u7F6E\u4E3A\u5EA6\u91CF",extra:(0,Ee.jsx)(w.Z,{type:"primary",onClick:function(){he.m8.replace("/semanticModel/".concat(Le,"/").concat(ct,"/dataSource")),at==null||at()},children:"\u53BB\u521B\u5EFA"},"console")})})},wt=Ge},98449:function(oe,N,o){"use strict";o.d(N,{uc:function(){return y},Ze:function(){return M},iw:function(){return w}});var x=o(32059),g=o(60212),A,y=[{label:"\u4F4E",value:0},{label:"\u4E2D",value:1},{label:"\u9AD8",value:2}],M=y.reduce(function(m,b){var v=b.label,h=b.value;return m[h]=v,m},{}),w=(A={},(0,x.Z)(A,g.Z.DATASOURCE,{label:"\u6570\u636E\u6E90",value:g.Z.DATASOURCE,color:"cyan"}),(0,x.Z)(A,g.Z.DIMENSION,{label:"\u7EF4\u5EA6",value:g.Z.DIMENSION,color:"blue"}),(0,x.Z)(A,g.Z.METRIC,{label:"\u6307\u6807",value:g.Z.METRIC,color:"orange"}),A)},60212:function(oe,N,o){"use strict";o.d(N,{fs:function(){return x},Kr:function(){return g},Z:function(){return A},Io:function(){return y}});var x;(function(M){M.DETAIL="detail",M.AGG="agg"})(x||(x={}));var g;(function(M){M.DIMENSION="dimension",M.METRIC="metric"})(g||(g={}));var A;(function(M){M.DATASOURCE="datasource",M.DIMENSION="dimension",M.METRIC="metric"})(A||(A={}));var y;(function(M){M.ATOMIC="\u539F\u5B50\u6307\u6807",M.DERIVED="\u884D\u751F\u6307\u6807"})(y||(y={}))},4856:function(oe,N,o){"use strict";var x=o(32059),g=o(11849),A=o(39428),y=o(14643),M=o(92909),w=o(53167),m={current:1,pageSize:20,selectDomainId:0,selectModelId:0,modelData:void 0,selectDomainName:"",selectModelName:"",searchParams:{},dimensionList:[],metricList:[],domainData:void 0,dataBaseResultColsMap:{},dataBaseConfig:{},domainList:[]},b={namespace:"domainManger",state:m,effects:{queryDimensionList:(0,A.Z)().mark(function v(h,d){var _,p,S,k,O,F,D;return(0,A.Z)().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return _=h.payload,p=d.call,S=d.put,W.next=4,p(w.dt,_);case 4:if(k=W.sent,O=k.code,F=k.data,D=k.msg,O!==200){W.next=13;break}return W.next=11,S({type:"setDimensionList",payload:{dimensionList:F.list}});case 11:W.next=14;break;case 13:M.default.error(D);case 14:case"end":return W.stop()}},v)}),queryMetricList:(0,A.Z)().mark(function v(h,d){var _,p,S,k,O,F,D;return(0,A.Z)().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return _=h.payload,p=d.call,S=d.put,W.next=4,p(w.VJ,_);case 4:if(k=W.sent,O=k.code,F=k.data,D=k.msg,O!==200){W.next=13;break}return W.next=11,S({type:"setMetricList",payload:{metricList:F.list}});case 11:W.next=14;break;case 13:M.default.error(D);case 14:case"end":return W.stop()}},v)}),queryDataBaseExcuteSql:(0,A.Z)().mark(function v(h,d){var _,p,S,k,O,F,D,Z,W,U,L,V;return(0,A.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(_=h.payload,p=d.call,S=d.put,k=d.select,O=_.tableName,O){G.next=5;break}return G.abrupt("return");case 5:return G.next=7,k(function(z){return z.domainManger.dataBaseResultColsMap[O]});case 7:if(F=G.sent,!F){G.next=10;break}return G.abrupt("return");case 10:return G.next=12,p(w.UY,_);case 12:if(D=G.sent,Z=D.code,W=D.data,U=D.msg,Z!==200){G.next=23;break}return L=W.resultList.map(function(z,K){return(0,g.Z)((0,g.Z)({},z),{},{index:K})}),V=W.columns,G.next=21,S({type:"setDataBaseScriptColumn",payload:{resultList:L,scriptColumns:V,tableName:O}});case 21:G.next=24;break;case 23:M.default.error(U);case 24:case"end":return G.stop()}},v)}),queryDatabaseByDomainId:(0,A.Z)().mark(function v(h,d){var _,p,S,k,O,F,D,Z;return(0,A.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return _=h.payload,p=d.call,S=d.put,k=_.domainId,U.next=5,p(w.nI,k);case 5:if(O=U.sent,F=O.code,D=O.data,Z=O.msg,F!==200){U.next=14;break}return U.next=12,S({type:"setDataBaseConfig",payload:{dataBaseConfig:D}});case 12:U.next=15;break;case 14:M.default.error(Z);case 15:case"end":return U.stop()}},v)})},reducers:{setSelectDomain:function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m,d=arguments.length>1?arguments[1]:void 0;return(0,g.Z)((0,g.Z)({},h),{},{selectDomainId:d.selectDomainId,selectDomainName:d.selectDomainName,domainData:d.domainData})},setSelectModel:function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m,d=arguments.length>1?arguments[1]:void 0;return(0,g.Z)((0,g.Z)({},h),{},{selectModelId:d.selectModelId,selectModelName:d.selectModelName,modelData:d.modelData})},setDomainList:function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m,d=arguments.length>1?arguments[1]:void 0;return(0,g.Z)((0,g.Z)({},h),d.payload)},setPagination:function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m,d=arguments.length>1?arguments[1]:void 0;return(0,g.Z)((0,g.Z)({},h),d.payload)},setDimensionList:function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m,d=arguments.length>1?arguments[1]:void 0;return(0,g.Z)((0,g.Z)({},h),d.payload)},setMetricList:function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m,d=arguments.length>1?arguments[1]:void 0;return(0,g.Z)((0,g.Z)({},h),d.payload)},setDataBaseScriptColumn:function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m,d=arguments.length>1?arguments[1]:void 0;return(0,g.Z)((0,g.Z)({},h),{},{dataBaseResultColsMap:(0,g.Z)((0,g.Z)({},h.dataBaseResultColsMap),{},(0,x.Z)({},d.payload.tableName,(0,g.Z)({},d.payload)))})},setDataBaseConfig:function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m,d=arguments.length>1?arguments[1]:void 0;return(0,g.Z)((0,g.Z)({},h),d.payload)},reset:function(){return m}}};N.Z=b},53167:function(oe,N,o){"use strict";o.d(N,{i7:function(){return w},iY:function(){return m},lQ:function(){return b},Fj:function(){return v},gK:function(){return h},HY:function(){return d},Y_:function(){return _},dt:function(){return p},q2:function(){return S},lV:function(){return k},VJ:function(){return O},bU:function(){return F},Wp:function(){return D},Ke:function(){return Z},Vl:function(){return W},BE:function(){return U},vW:function(){return L},dj:function(){return V},yY:function(){return $},WT:function(){return G},qr:function(){return z},VK:function(){return K},vK:function(){return re},qh:function(){return ne},qe:function(){return Q},mm:function(){return ue},nI:function(){return we},V2:function(){return me},xN:function(){return Pe},$H:function(){return pe},UY:function(){return Ie},He:function(){return ke},Lk:function(){return De},Pu:function(){return Fe},fZ:function(){return Qe},NY:function(){return qe},QB:function(){return et},$s:function(){return dt},vu:function(){return Ke}});var x=o(39428),g=o(3182),A=o(11849),y=o(2138),M=function(){return window.location.pathname.includes("/chatSetting/")?"chat":"semantic"};function w(){return M()==="chat"?y.ZP.get("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.CHAT_API_BASE_URL,"conf/domainList")):y.ZP.get("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"domain/getDomainList"))}function m(Ge){return y.ZP.get("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"datasource/getDatasourceList/").concat(Ge.modelId))}function b(Ge){return y.ZP.get("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"domain/getDomain/").concat(Ge.modelId))}function v(Ge){return y.ZP.post("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"domain/createDomain"),{data:Ge})}function h(Ge){return y.ZP.post("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"domain/updateDomain"),{data:Ge})}function d(Ge){return y.ZP.post("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"datasource/createDatasource"),{data:Ge})}function _(Ge){return y.ZP.post("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"datasource/updateDatasource"),{data:Ge})}function p(Ge){var wt=Ge.domainId,Vt=Ge.modelId,gt={data:(0,A.Z)((0,A.Z)((0,A.Z)({current:1,pageSize:999999},Ge),wt?{domainIds:[wt]}:{}),Vt?{modelIds:[Vt]}:{})};return M()==="chat"?y.ZP.post("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.CHAT_API_BASE_URL,"conf/dimension/page"),gt):y.ZP.post("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"dimension/queryDimension"),gt)}function S(Ge){return y.ZP.post("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"dimension/createDimension"),{data:Ge})}function k(Ge){return y.ZP.post("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"dimension/updateDimension"),{data:Ge})}function O(Ge){var wt=Ge.domainId,Vt=Ge.modelId,gt={data:(0,A.Z)((0,A.Z)((0,A.Z)({current:1,pageSize:999999},Ge),wt?{domainIds:[wt]}:{}),Vt?{modelIds:[Vt]}:{})};return M()==="chat"?y.ZP.post("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.CHAT_API_BASE_URL,"conf/metric/page"),gt):y.ZP.post("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"metric/queryMetric"),gt)}function F(Ge){return y.ZP.post("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"metric/creatExprMetric"),{data:Ge})}function D(Ge){return y.ZP.post("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"metric/updateExprMetric"),{data:Ge})}function Z(Ge){return y.ZP.get("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"datasource/getMeasureListOfModel/").concat(Ge))}function W(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"datasource/deleteDatasource/").concat(Ge),{method:"DELETE"})}function U(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"dimension/deleteDimension/").concat(Ge),{method:"DELETE"})}function L(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"metric/deleteMetric/").concat(Ge),{method:"DELETE"})}function V(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"domain/deleteDomain/").concat(Ge),{method:"DELETE"})}function $(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.AUTH_API_BASE_URL,"queryGroup"),{method:"GET",params:{modelId:Ge}})}function G(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.AUTH_API_BASE_URL,"createGroup"),{method:"POST",data:Ge})}function z(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.AUTH_API_BASE_URL,"updateGroup"),{method:"POST",data:Ge})}function K(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.AUTH_API_BASE_URL,"removeGroup"),{method:"POST",data:Ge})}function re(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.CHAT_API_BASE_URL,"conf"),{method:"POST",data:Ge})}function ne(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.CHAT_API_BASE_URL,"conf"),{method:"PUT",data:Ge})}function Q(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.CHAT_API_BASE_URL,"conf/search"),{method:"POST",data:Ge})}function ue(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.CHAT_API_BASE_URL,"conf/richDesc/").concat(Ge.modelId),{method:"GET"})}function he(Ge){return request("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"datasource/getDatasourceRelaList/").concat(Ge),{method:"GET"})}function Ee(Ge){return request("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"viewInfo/createOrUpdateDatasourceRela"),{method:"POST",data:Ge})}function ce(Ge){return request("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"viewInfo/createOrUpdateViewInfo"),{method:"POST",data:Ge})}function ve(Ge){return request("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"viewInfo/getViewInfoList/").concat(Ge),{method:"GET"})}function fe(Ge){return request("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"viewInfo/deleteDatasourceRela/").concat(Ge),{method:"DELETE"})}function we(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"database/getDatabaseByDomainId/").concat(Ge),{method:"GET"})}function me(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"viewInfo/getDomainSchemaRela/").concat(Ge),{method:"GET"})}function Pe(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"database/createOrUpdateDatabase"),{method:"POST",data:Ge})}function pe(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"database/testConnect"),{method:"POST",data:Ge})}function Ie(Ge){return Je.apply(this,arguments)}function Je(){return Je=(0,g.Z)((0,x.Z)().mark(function Ge(wt){var Vt;return(0,x.Z)().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return Vt=(0,A.Z)({},wt),it.abrupt("return",y.ZP.post("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"database/executeSql"),{data:Vt}));case 2:case"end":return it.stop()}},Ge)})),Je.apply(this,arguments)}function ke(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"database/getDbNames/").concat(Ge),{method:"GET"})}function De(Ge,wt){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"database/getTables/").concat(Ge,"/").concat(wt),{method:"GET"})}function Fe(Ge,wt,Vt){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"database/getColumns/").concat(Ge,"/").concat(wt,"/").concat(Vt),{method:"GET"})}function Qe(Ge){return M()==="chat"?(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.CHAT_API_BASE_URL,"conf/modelList/").concat(Ge),{method:"GET"}):(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"model/getModelList/").concat(Ge),{method:"GET"})}function qe(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"model/createModel"),{method:"POST",data:Ge})}function et(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"model/updateModel"),{method:"POST",data:Ge})}function dt(Ge){return(0,y.ZP)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"model/deleteModel/").concat(Ge),{method:"DELETE"})}function Ke(Ge){return y.ZP.get("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"model/getModel/").concat(Ge.modelId))}},5963:function(oe,N,o){"use strict";o.d(N,{H3:function(){return A},Mf:function(){return y},D2:function(){return M},DJ:function(){return w}});var x=o(11849),g=function v(h,d){return h.map(function(_){var p=_objectSpread(_objectSpread({},_),{},{key:_.id,disabled:d,children:_.children?v(_.children,d):[]});return p})},A=function v(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return h.map(function(_){var p=_.children,S=_.parentId,k=S===void 0?[]:S,O=d.slice();return O.push(k),p?(0,x.Z)((0,x.Z)({},_),{},{path:O,children:v(p,O)}):(0,x.Z)((0,x.Z)({},_),{},{path:O})})},y=function v(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=h.reduce(function(p,S){if(S.parentId==d){var k=v(h,S.id);k.length&&(S.children=k),S.key=S.id,S.value=S.id,S.title=S.name,p.push(S)}return p},[]);return _},M=function v(h){var d=[];return h.forEach(function(_){_.children&&_.children.length>0&&(d.push(_.id),d=d.concat(v(_.children)))}),d},w=function v(h,d){if(h.length===0)return[];var _=[],p=h.find(function(S){return S.subOrganizations&&(_=_.concat(S.subOrganizations)),S.id===d});return p||v(_,d)},m=function v(h,d,_){if(h.parentId===d)return!0;var p=_.find(function(S){return S.id===h.parentId});return p?v(p,d,_):!1},b=function(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_=[],p=_createForOfIteratorHelper(h),S;try{for(p.s();!(S=p.n()).done;){var k=S.value,O=!0,F=_createForOfIteratorHelper(h),D;try{for(F.s();!(D=F.n()).done;){var Z=D.value;if(Z.parentId===k.id){O=!1;break}}}catch(W){F.e(W)}finally{F.f()}O&&(d===null||m(k,d,h))&&_.push(k)}}catch(W){p.e(W)}finally{p.f()}return _}},85304:function(oe,N,o){"use strict";o.d(N,{P:function(){return w}});var x=o(39428),g=o(3182),A=o(20546);function y(){return M.apply(this,arguments)}function M(){return M=_asyncToGenerator(_regeneratorRuntime().mark(function b(){return _regeneratorRuntime().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",request("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.API_BASE_URL,"users")));case 1:case"end":return h.stop()}},b)})),M.apply(this,arguments)}function w(){return m.apply(this,arguments)}function m(){return m=(0,g.Z)((0,x.Z)().mark(function b(){return(0,x.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,A.WY)("".concat({npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.AUTH_API_BASE_URL,"user/getCurrentUser")));case 1:case"end":return h.stop()}},b)})),m.apply(this,arguments)}},24480:function(oe,N,o){"use strict";o.d(N,{wT:function(){return F},uf:function(){return W},Vj:function(){return $},tq:function(){return G},lK:function(){return z},pB:function(){return K},mY:function(){return ne},FS:function(){return fe},$4:function(){return we}});var x=o(11849),g=o(14643),A=o(41827),y=o(88348),M=o.n(y),w=o(36378),m=o.n(w),b=o(96486),v=o.n(b),h=/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/,d=function(pe){return h.test(pe)};function _(Pe){return copy(Pe),_message.success("\u590D\u5236\u6210\u529F")}function p(Pe){return _toConsumableArray(Pe).map(function(pe){return{value:pe[0],label:pe[1]}})}function S(Pe){return Object.keys(Pe).map(function(pe){return{value:pe,label:Pe[pe]}})}function k(Pe,pe){var Ie=[];return Pe.forEach(function(Je){if(Je.parentId===pe){var ke=_objectSpread({},Je),De=Pe.filter(function(Fe){return Fe.id!==ke.id});ke.children=k(De,ke.id),Ie.push(ke)}}),Ie}function O(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",pe;Pe?pe=decodeURIComponent(Pe):pe=decodeURIComponent(window.location.href);var Ie=pe.indexOf("?");if(Ie===-1)return{};var Je=pe.substr(Ie+1),ke=Je.split("&"),De={};return ke.forEach(function(Fe){var Qe=Fe.split("="),qe=Qe[0],et=Qe[1];Array.isArray(De[qe])?De[qe].push(et):De[qe]?De[qe]=[De[qe],et]:De[qe]=et||!0}),De}function F(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",Ie=new RegExp("[\\&\\?]".concat(pe,"=([^&#]+)"),"g");return Pe.replace(Ie,"")}function D(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pe=arguments.length>1?arguments[1]:void 0,Ie="EDIT";return Pe.map(function(Je){var ke,De=_objectSpread({},Je);return typeof pe=="function"?De.disabled=pe(De.authCodes):((ke=De.authCodes)!==null&&ke!==void 0?ke:[]).includes(Ie)||(De.disabled=!0),De.children&&(De.children=D(De.children,pe)),De})}function Z(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Pe.map(function(pe){var Ie=_objectSpread({},pe);return Ie.value=Ie.projectIncreId,Ie.children&&(Ie.children=Z(Ie.children)),Ie})}function W(Pe){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0,0";return M()(Pe).format(pe)}function U(){return localStorage.getItem(AUTH_TOKEN_KEY)}function L(Pe){if(Pe.children.length===0)return Pe;var pe=_createForOfIteratorHelper(Pe.children),Ie;try{for(pe.s();!(Ie=pe.n()).done;){var Je=Ie.value;if(Je.children.length===0)return Je;var ke=L(Je);if(ke)return ke}}catch(De){pe.e(De)}finally{pe.f()}return null}function V(Pe,pe){if(!isString(Pe))return Pe;if(!Pe)return pe;try{return JSON.parse(Pe)}catch(Ie){return console.log(Ie),pe}}var $=function(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8,Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:62,Je="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),ke=[],De;if(pe)for(De=0;De<pe;De++)ke[De]=Je[Math.floor(Math.random()*Ie)];else{var Fe;for(ke[8]=ke[13]=ke[18]=ke[23]="-",ke[14]="4",De=0;De<36;De++)ke[De]||(Fe=Math.floor(Math.random()*16),ke[De]=Je[De===19?Fe%4%8+8:Fe])}return ke.join("")},G=window.navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i),z=function(pe,Ie){setTimeout(function(){var Je=document.getElementById("messageContainer");Je&&Je.scrollHeight>Je.clientHeight&&(Je.scrollTop=pe?Je.scrollTop+Je.clientHeight-(Ie||130):Je.scrollHeight)},100)},K=function(pe,Ie){return pe.reduce(function(Je,ke){var De=(0,x.Z)({},Je),Fe=ke[Ie];return De[Fe]||(De[Fe]=[]),De[Fe].push(ke),De},{})},re=null,ne=function(pe){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"16px",Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal",ke=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"DINPro Medium",De=re||(re=document.createElement("canvas")),Fe=De.getContext("2d");Fe.font="".concat(Je," ").concat(Ie," ").concat(ke);var Qe=Fe.measureText(pe);return Math.ceil(Qe.width)};function Q(Pe,pe){if(isNaN(+Pe)||pe<0||pe>100)return Pe;var Ie=(+Pe).toFixed(pe);if(!/^[0-9.]+$/g.test(Ie))return"0";for(;Ie.includes(".")&&(Ie.endsWith(".")||Ie.endsWith("0"));)Ie=Ie.slice(0,-1);return Ie}function ue(Pe){if(isNaN(+Pe))return Pe;var pe=Pe.toString().split(".");pe[0]=pe[0].replace(/\B(?=(\d{3})+(?!\d))/g,",");var Ie=pe.join(".");return Ie}function he(Pe,pe){var Ie=+Pe;if(isNaN(Ie)||pe===NumericUnit.None)return Pe;var Je=0;switch(pe){case NumericUnit.TenThousand:case NumericUnit.EnTenThousand:Je=4;break;case NumericUnit.OneHundredMillion:Je=8;break;case NumericUnit.Thousand:Je=3;break;case NumericUnit.Million:Je=6;break;case NumericUnit.Giga:Je=9;break}return Ie/Math.pow(10,Je)}var Ee=function(pe,Ie){if(Ie&&(pe===void 0||+pe==0))return 0;if(pe===void 0)return"-";if(!isFinite(+pe))return pe;var Je=pe>=1e8?NumericUnit.OneHundredMillion:pe>=1e4?NumericUnit.EnTenThousand:NumericUnit.None,ke=he(pe,Je);return ke=Q(ke,Je===NumericUnit.OneHundredMillion?2:pe<1?3:1),ke=ue(ke),typeof ke=="number"&&isNaN(ke)||+ke==0?"-":"".concat(ke).concat(Je===NumericUnit.None?"":Je)};function ce(Pe){var pe=[];function Ie(Je){!Je.children||Je.children.length===0?pe.push(Je):Je.children.forEach(function(ke){return Ie(ke)})}return Pe.forEach(function(Je){return Ie(Je)}),pe}function ve(Pe){var pe={},Ie=[];return Pe.forEach(function(Je){pe[Je.id]=Je,Je.children=[]}),Pe.forEach(function(Je){if(Je.parentId){var ke=pe[Je.parentId];ke&&ke.children.push(Je)}else Ie.push(Je)}),Ie}function fe(Pe){var pe=ve(Pe),Ie=ce(pe);return Ie}function we(Pe,pe){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(!Array.isArray(Pe))return Ie;for(var Je=0;Je<Pe.length;Je++){var ke=Pe[Je];if((ke.envEnableList&&(ke.envEnableList.includes(pe)||ke.envEnableList.length===0)||!ke.envEnableList)&&Ie.push(ke),ke.envRedirect&&(ke.redirect=ke.envRedirect[pe]),ke.routes){var De=we(ke.routes,pe);Array.isArray(De)&&De.length>0&&Ie.push((0,x.Z)((0,x.Z)({},ke),{},{routes:De}))}}return Ie}function me(){return!0}},45680:function(oe,N){var o,x;/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/(function(){"use strict";var g={}.hasOwnProperty,A="[native code]";function y(){for(var M=[],w=0;w<arguments.length;w++){var m=arguments[w];if(!!m){var b=typeof m;if(b==="string"||b==="number")M.push(m);else if(Array.isArray(m)){if(m.length){var v=y.apply(null,m);v&&M.push(v)}}else if(b==="object"){if(m.toString!==Object.prototype.toString&&!m.toString.toString().includes("[native code]")){M.push(m.toString());continue}for(var h in m)g.call(m,h)&&m[h]&&M.push(h)}}}return M.join(" ")}oe.exports?(y.default=y,oe.exports=y):(o=[],x=function(){return y}.apply(N,o),x!==void 0&&(oe.exports=x))})()},38279:function(oe,N,o){oe=o.nmd(oe);//! moment.js
|
||
//! version : 2.29.4
|
||
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||
//! license : MIT
|
||
//! momentjs.com
|
||
(function(x,g){oe.exports=g()})(this,function(){"use strict";var x;function g(){return x.apply(null,arguments)}function A(te){x=te}function y(te){return te instanceof Array||Object.prototype.toString.call(te)==="[object Array]"}function M(te){return te!=null&&Object.prototype.toString.call(te)==="[object Object]"}function w(te,Me){return Object.prototype.hasOwnProperty.call(te,Me)}function m(te){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(te).length===0;var Me;for(Me in te)if(w(te,Me))return!1;return!0}function b(te){return te===void 0}function v(te){return typeof te=="number"||Object.prototype.toString.call(te)==="[object Number]"}function h(te){return te instanceof Date||Object.prototype.toString.call(te)==="[object Date]"}function d(te,Me){var ft=[],Nt,xn=te.length;for(Nt=0;Nt<xn;++Nt)ft.push(Me(te[Nt],Nt));return ft}function _(te,Me){for(var ft in Me)w(Me,ft)&&(te[ft]=Me[ft]);return w(Me,"toString")&&(te.toString=Me.toString),w(Me,"valueOf")&&(te.valueOf=Me.valueOf),te}function p(te,Me,ft,Nt){return Vu(te,Me,ft,Nt,!0).utc()}function S(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function k(te){return te._pf==null&&(te._pf=S()),te._pf}var O;Array.prototype.some?O=Array.prototype.some:O=function(Me){var ft=Object(this),Nt=ft.length>>>0,xn;for(xn=0;xn<Nt;xn++)if(xn in ft&&Me.call(this,ft[xn],xn,ft))return!0;return!1};function F(te){if(te._isValid==null){var Me=k(te),ft=O.call(Me.parsedDateParts,function(xn){return xn!=null}),Nt=!isNaN(te._d.getTime())&&Me.overflow<0&&!Me.empty&&!Me.invalidEra&&!Me.invalidMonth&&!Me.invalidWeekday&&!Me.weekdayMismatch&&!Me.nullInput&&!Me.invalidFormat&&!Me.userInvalidated&&(!Me.meridiem||Me.meridiem&&ft);if(te._strict&&(Nt=Nt&&Me.charsLeftOver===0&&Me.unusedTokens.length===0&&Me.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(te))te._isValid=Nt;else return Nt}return te._isValid}function D(te){var Me=p(NaN);return te!=null?_(k(Me),te):k(Me).userInvalidated=!0,Me}var Z=g.momentProperties=[],W=!1;function U(te,Me){var ft,Nt,xn,Yr=Z.length;if(b(Me._isAMomentObject)||(te._isAMomentObject=Me._isAMomentObject),b(Me._i)||(te._i=Me._i),b(Me._f)||(te._f=Me._f),b(Me._l)||(te._l=Me._l),b(Me._strict)||(te._strict=Me._strict),b(Me._tzm)||(te._tzm=Me._tzm),b(Me._isUTC)||(te._isUTC=Me._isUTC),b(Me._offset)||(te._offset=Me._offset),b(Me._pf)||(te._pf=k(Me)),b(Me._locale)||(te._locale=Me._locale),Yr>0)for(ft=0;ft<Yr;ft++)Nt=Z[ft],xn=Me[Nt],b(xn)||(te[Nt]=xn);return te}function L(te){U(this,te),this._d=new Date(te._d!=null?te._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),W===!1&&(W=!0,g.updateOffset(this),W=!1)}function V(te){return te instanceof L||te!=null&&te._isAMomentObject!=null}function $(te){g.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+te)}function G(te,Me){var ft=!0;return _(function(){if(g.deprecationHandler!=null&&g.deprecationHandler(null,te),ft){var Nt=[],xn,Yr,qa,Es=arguments.length;for(Yr=0;Yr<Es;Yr++){if(xn="",typeof arguments[Yr]=="object"){xn+=`
|
||
[`+Yr+"] ";for(qa in arguments[0])w(arguments[0],qa)&&(xn+=qa+": "+arguments[0][qa]+", ");xn=xn.slice(0,-2)}else xn=arguments[Yr];Nt.push(xn)}$(te+`
|
||
Arguments: `+Array.prototype.slice.call(Nt).join("")+`
|
||
`+new Error().stack),ft=!1}return Me.apply(this,arguments)},Me)}var z={};function K(te,Me){g.deprecationHandler!=null&&g.deprecationHandler(te,Me),z[te]||($(Me),z[te]=!0)}g.suppressDeprecationWarnings=!1,g.deprecationHandler=null;function re(te){return typeof Function!="undefined"&&te instanceof Function||Object.prototype.toString.call(te)==="[object Function]"}function ne(te){var Me,ft;for(ft in te)w(te,ft)&&(Me=te[ft],re(Me)?this[ft]=Me:this["_"+ft]=Me);this._config=te,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Q(te,Me){var ft=_({},te),Nt;for(Nt in Me)w(Me,Nt)&&(M(te[Nt])&&M(Me[Nt])?(ft[Nt]={},_(ft[Nt],te[Nt]),_(ft[Nt],Me[Nt])):Me[Nt]!=null?ft[Nt]=Me[Nt]:delete ft[Nt]);for(Nt in te)w(te,Nt)&&!w(Me,Nt)&&M(te[Nt])&&(ft[Nt]=_({},ft[Nt]));return ft}function ue(te){te!=null&&this.set(te)}var he;Object.keys?he=Object.keys:he=function(Me){var ft,Nt=[];for(ft in Me)w(Me,ft)&&Nt.push(ft);return Nt};var Ee={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ce(te,Me,ft){var Nt=this._calendar[te]||this._calendar.sameElse;return re(Nt)?Nt.call(Me,ft):Nt}function ve(te,Me,ft){var Nt=""+Math.abs(te),xn=Me-Nt.length,Yr=te>=0;return(Yr?ft?"+":"":"-")+Math.pow(10,Math.max(0,xn)).toString().substr(1)+Nt}var fe=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,we=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,me={},Pe={};function pe(te,Me,ft,Nt){var xn=Nt;typeof Nt=="string"&&(xn=function(){return this[Nt]()}),te&&(Pe[te]=xn),Me&&(Pe[Me[0]]=function(){return ve(xn.apply(this,arguments),Me[1],Me[2])}),ft&&(Pe[ft]=function(){return this.localeData().ordinal(xn.apply(this,arguments),te)})}function Ie(te){return te.match(/\[[\s\S]/)?te.replace(/^\[|\]$/g,""):te.replace(/\\/g,"")}function Je(te){var Me=te.match(fe),ft,Nt;for(ft=0,Nt=Me.length;ft<Nt;ft++)Pe[Me[ft]]?Me[ft]=Pe[Me[ft]]:Me[ft]=Ie(Me[ft]);return function(xn){var Yr="",qa;for(qa=0;qa<Nt;qa++)Yr+=re(Me[qa])?Me[qa].call(xn,te):Me[qa];return Yr}}function ke(te,Me){return te.isValid()?(Me=De(Me,te.localeData()),me[Me]=me[Me]||Je(Me),me[Me](te)):te.localeData().invalidDate()}function De(te,Me){var ft=5;function Nt(xn){return Me.longDateFormat(xn)||xn}for(we.lastIndex=0;ft>=0&&we.test(te);)te=te.replace(we,Nt),we.lastIndex=0,ft-=1;return te}var Fe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Qe(te){var Me=this._longDateFormat[te],ft=this._longDateFormat[te.toUpperCase()];return Me||!ft?Me:(this._longDateFormat[te]=ft.match(fe).map(function(Nt){return Nt==="MMMM"||Nt==="MM"||Nt==="DD"||Nt==="dddd"?Nt.slice(1):Nt}).join(""),this._longDateFormat[te])}var qe="Invalid date";function et(){return this._invalidDate}var dt="%d",Ke=/\d{1,2}/;function Ge(te){return this._ordinal.replace("%d",te)}var wt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Vt(te,Me,ft,Nt){var xn=this._relativeTime[ft];return re(xn)?xn(te,Me,ft,Nt):xn.replace(/%d/i,te)}function gt(te,Me){var ft=this._relativeTime[te>0?"future":"past"];return re(ft)?ft(Me):ft.replace(/%s/i,Me)}var it={};function Le(te,Me){var ft=te.toLowerCase();it[ft]=it[ft+"s"]=it[Me]=te}function ct(te){return typeof te=="string"?it[te]||it[te.toLowerCase()]:void 0}function at(te){var Me={},ft,Nt;for(Nt in te)w(te,Nt)&&(ft=ct(Nt),ft&&(Me[ft]=te[Nt]));return Me}var jt={};function St(te,Me){jt[te]=Me}function fn(te){var Me=[],ft;for(ft in te)w(te,ft)&&Me.push({unit:ft,priority:jt[ft]});return Me.sort(function(Nt,xn){return Nt.priority-xn.priority}),Me}function Xt(te){return te%4==0&&te%100!=0||te%400==0}function Yt(te){return te<0?Math.ceil(te)||0:Math.floor(te)}function Rt(te){var Me=+te,ft=0;return Me!==0&&isFinite(Me)&&(ft=Yt(Me)),ft}function Lt(te,Me){return function(ft){return ft!=null?(rt(this,te,ft),g.updateOffset(this,Me),this):ze(this,te)}}function ze(te,Me){return te.isValid()?te._d["get"+(te._isUTC?"UTC":"")+Me]():NaN}function rt(te,Me,ft){te.isValid()&&!isNaN(ft)&&(Me==="FullYear"&&Xt(te.year())&&te.month()===1&&te.date()===29?(ft=Rt(ft),te._d["set"+(te._isUTC?"UTC":"")+Me](ft,te.month(),na(ft,te.month()))):te._d["set"+(te._isUTC?"UTC":"")+Me](ft))}function tt(te){return te=ct(te),re(this[te])?this[te]():this}function de(te,Me){if(typeof te=="object"){te=at(te);var ft=fn(te),Nt,xn=ft.length;for(Nt=0;Nt<xn;Nt++)this[ft[Nt].unit](te[ft[Nt].unit])}else if(te=ct(te),re(this[te]))return this[te](Me);return this}var ot=/\d/,Et=/\d\d/,Ht=/\d{3}/,Jt=/\d{4}/,Qt=/[+-]?\d{6}/,an=/\d\d?/,Un=/\d\d\d\d?/,qt=/\d\d\d\d\d\d?/,rn=/\d{1,3}/,cn=/\d{1,4}/,er=/[+-]?\d{1,6}/,rr=/\d+/,nt=/[+-]?\d+/,lr=/Z|[+-]\d\d:?\d\d/gi,Hn=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[+-]?\d+(\.\d{1,3})?/,bt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,We;We={};function be(te,Me,ft){We[te]=re(Me)?Me:function(Nt,xn){return Nt&&ft?ft:Me}}function Ae(te,Me){return w(We,te)?We[te](Me._strict,Me._locale):new RegExp(Ue(te))}function Ue(te){return $e(te.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(Me,ft,Nt,xn,Yr){return ft||Nt||xn||Yr}))}function $e(te){return te.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var kt={};function lt(te,Me){var ft,Nt=Me,xn;for(typeof te=="string"&&(te=[te]),v(Me)&&(Nt=function(qa,Es){Es[Me]=Rt(qa)}),xn=te.length,ft=0;ft<xn;ft++)kt[te[ft]]=Nt}function vt(te,Me){lt(te,function(ft,Nt,xn,Yr){xn._w=xn._w||{},Me(ft,xn._w,xn,Yr)})}function Ct(te,Me,ft){Me!=null&&w(kt,te)&&kt[te](Me,ft._a,ft,te)}var Bt=0,mt=1,Zt=2,zt=3,ln=4,An=5,En=6,Gn=7,Bn=8;function pr(te,Me){return(te%Me+Me)%Me}var _r;Array.prototype.indexOf?_r=Array.prototype.indexOf:_r=function(Me){var ft;for(ft=0;ft<this.length;++ft)if(this[ft]===Me)return ft;return-1};function na(te,Me){if(isNaN(te)||isNaN(Me))return NaN;var ft=pr(Me,12);return te+=(Me-ft)/12,ft===1?Xt(te)?29:28:31-ft%7%2}pe("M",["MM",2],"Mo",function(){return this.month()+1}),pe("MMM",0,0,function(te){return this.localeData().monthsShort(this,te)}),pe("MMMM",0,0,function(te){return this.localeData().months(this,te)}),Le("month","M"),St("month",8),be("M",an),be("MM",an,Et),be("MMM",function(te,Me){return Me.monthsShortRegex(te)}),be("MMMM",function(te,Me){return Me.monthsRegex(te)}),lt(["M","MM"],function(te,Me){Me[mt]=Rt(te)-1}),lt(["MMM","MMMM"],function(te,Me,ft,Nt){var xn=ft._locale.monthsParse(te,Nt,ft._strict);xn!=null?Me[mt]=xn:k(ft).invalidMonth=te});var $n="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),qr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Jr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Aa=bt,ya=bt;function $t(te,Me){return te?y(this._months)?this._months[te.month()]:this._months[(this._months.isFormat||Jr).test(Me)?"format":"standalone"][te.month()]:y(this._months)?this._months:this._months.standalone}function wn(te,Me){return te?y(this._monthsShort)?this._monthsShort[te.month()]:this._monthsShort[Jr.test(Me)?"format":"standalone"][te.month()]:y(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Fn(te,Me,ft){var Nt,xn,Yr,qa=te.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Nt=0;Nt<12;++Nt)Yr=p([2e3,Nt]),this._shortMonthsParse[Nt]=this.monthsShort(Yr,"").toLocaleLowerCase(),this._longMonthsParse[Nt]=this.months(Yr,"").toLocaleLowerCase();return ft?Me==="MMM"?(xn=_r.call(this._shortMonthsParse,qa),xn!==-1?xn:null):(xn=_r.call(this._longMonthsParse,qa),xn!==-1?xn:null):Me==="MMM"?(xn=_r.call(this._shortMonthsParse,qa),xn!==-1?xn:(xn=_r.call(this._longMonthsParse,qa),xn!==-1?xn:null)):(xn=_r.call(this._longMonthsParse,qa),xn!==-1?xn:(xn=_r.call(this._shortMonthsParse,qa),xn!==-1?xn:null))}function Or(te,Me,ft){var Nt,xn,Yr;if(this._monthsParseExact)return Fn.call(this,te,Me,ft);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),Nt=0;Nt<12;Nt++){if(xn=p([2e3,Nt]),ft&&!this._longMonthsParse[Nt]&&(this._longMonthsParse[Nt]=new RegExp("^"+this.months(xn,"").replace(".","")+"$","i"),this._shortMonthsParse[Nt]=new RegExp("^"+this.monthsShort(xn,"").replace(".","")+"$","i")),!ft&&!this._monthsParse[Nt]&&(Yr="^"+this.months(xn,"")+"|^"+this.monthsShort(xn,""),this._monthsParse[Nt]=new RegExp(Yr.replace(".",""),"i")),ft&&Me==="MMMM"&&this._longMonthsParse[Nt].test(te))return Nt;if(ft&&Me==="MMM"&&this._shortMonthsParse[Nt].test(te))return Nt;if(!ft&&this._monthsParse[Nt].test(te))return Nt}}function vr(te,Me){var ft;if(!te.isValid())return te;if(typeof Me=="string"){if(/^\d+$/.test(Me))Me=Rt(Me);else if(Me=te.localeData().monthsParse(Me),!v(Me))return te}return ft=Math.min(te.date(),na(te.year(),Me)),te._d["set"+(te._isUTC?"UTC":"")+"Month"](Me,ft),te}function Ur(te){return te!=null?(vr(this,te),g.updateOffset(this,!0),this):ze(this,"Month")}function Zr(){return na(this.year(),this.month())}function Kr(te){return this._monthsParseExact?(w(this,"_monthsRegex")||Ri.call(this),te?this._monthsShortStrictRegex:this._monthsShortRegex):(w(this,"_monthsShortRegex")||(this._monthsShortRegex=Aa),this._monthsShortStrictRegex&&te?this._monthsShortStrictRegex:this._monthsShortRegex)}function ba(te){return this._monthsParseExact?(w(this,"_monthsRegex")||Ri.call(this),te?this._monthsStrictRegex:this._monthsRegex):(w(this,"_monthsRegex")||(this._monthsRegex=ya),this._monthsStrictRegex&&te?this._monthsStrictRegex:this._monthsRegex)}function Ri(){function te(qa,Es){return Es.length-qa.length}var Me=[],ft=[],Nt=[],xn,Yr;for(xn=0;xn<12;xn++)Yr=p([2e3,xn]),Me.push(this.monthsShort(Yr,"")),ft.push(this.months(Yr,"")),Nt.push(this.months(Yr,"")),Nt.push(this.monthsShort(Yr,""));for(Me.sort(te),ft.sort(te),Nt.sort(te),xn=0;xn<12;xn++)Me[xn]=$e(Me[xn]),ft[xn]=$e(ft[xn]);for(xn=0;xn<24;xn++)Nt[xn]=$e(Nt[xn]);this._monthsRegex=new RegExp("^("+Nt.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+ft.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+Me.join("|")+")","i")}pe("Y",0,0,function(){var te=this.year();return te<=9999?ve(te,4):"+"+te}),pe(0,["YY",2],0,function(){return this.year()%100}),pe(0,["YYYY",4],0,"year"),pe(0,["YYYYY",5],0,"year"),pe(0,["YYYYYY",6,!0],0,"year"),Le("year","y"),St("year",1),be("Y",nt),be("YY",an,Et),be("YYYY",cn,Jt),be("YYYYY",er,Qt),be("YYYYYY",er,Qt),lt(["YYYYY","YYYYYY"],Bt),lt("YYYY",function(te,Me){Me[Bt]=te.length===2?g.parseTwoDigitYear(te):Rt(te)}),lt("YY",function(te,Me){Me[Bt]=g.parseTwoDigitYear(te)}),lt("Y",function(te,Me){Me[Bt]=parseInt(te,10)});function Ea(te){return Xt(te)?366:365}g.parseTwoDigitYear=function(te){return Rt(te)+(Rt(te)>68?1900:2e3)};var Pi=Lt("FullYear",!0);function rs(){return Xt(this.year())}function Ui(te,Me,ft,Nt,xn,Yr,qa){var Es;return te<100&&te>=0?(Es=new Date(te+400,Me,ft,Nt,xn,Yr,qa),isFinite(Es.getFullYear())&&Es.setFullYear(te)):Es=new Date(te,Me,ft,Nt,xn,Yr,qa),Es}function Cn(te){var Me,ft;return te<100&&te>=0?(ft=Array.prototype.slice.call(arguments),ft[0]=te+400,Me=new Date(Date.UTC.apply(null,ft)),isFinite(Me.getUTCFullYear())&&Me.setUTCFullYear(te)):Me=new Date(Date.UTC.apply(null,arguments)),Me}function Kn(te,Me,ft){var Nt=7+Me-ft,xn=(7+Cn(te,0,Nt).getUTCDay()-Me)%7;return-xn+Nt-1}function Pn(te,Me,ft,Nt,xn){var Yr=(7+ft-Nt)%7,qa=Kn(te,Nt,xn),Es=1+7*(Me-1)+Yr+qa,Qs,Hl;return Es<=0?(Qs=te-1,Hl=Ea(Qs)+Es):Es>Ea(te)?(Qs=te+1,Hl=Es-Ea(te)):(Qs=te,Hl=Es),{year:Qs,dayOfYear:Hl}}function At(te,Me,ft){var Nt=Kn(te.year(),Me,ft),xn=Math.floor((te.dayOfYear()-Nt-1)/7)+1,Yr,qa;return xn<1?(qa=te.year()-1,Yr=xn+ar(qa,Me,ft)):xn>ar(te.year(),Me,ft)?(Yr=xn-ar(te.year(),Me,ft),qa=te.year()+1):(qa=te.year(),Yr=xn),{week:Yr,year:qa}}function ar(te,Me,ft){var Nt=Kn(te,Me,ft),xn=Kn(te+1,Me,ft);return(Ea(te)-Nt+xn)/7}pe("w",["ww",2],"wo","week"),pe("W",["WW",2],"Wo","isoWeek"),Le("week","w"),Le("isoWeek","W"),St("week",5),St("isoWeek",5),be("w",an),be("ww",an,Et),be("W",an),be("WW",an,Et),vt(["w","ww","W","WW"],function(te,Me,ft,Nt){Me[Nt.substr(0,1)]=Rt(te)});function ta(te){return At(te,this._week.dow,this._week.doy).week}var Yn={dow:0,doy:6};function Qa(){return this._week.dow}function Ua(){return this._week.doy}function Fi(te){var Me=this.localeData().week(this);return te==null?Me:this.add((te-Me)*7,"d")}function Xa(te){var Me=At(this,1,4).week;return te==null?Me:this.add((te-Me)*7,"d")}pe("d",0,"do","day"),pe("dd",0,0,function(te){return this.localeData().weekdaysMin(this,te)}),pe("ddd",0,0,function(te){return this.localeData().weekdaysShort(this,te)}),pe("dddd",0,0,function(te){return this.localeData().weekdays(this,te)}),pe("e",0,0,"weekday"),pe("E",0,0,"isoWeekday"),Le("day","d"),Le("weekday","e"),Le("isoWeekday","E"),St("day",11),St("weekday",11),St("isoWeekday",11),be("d",an),be("e",an),be("E",an),be("dd",function(te,Me){return Me.weekdaysMinRegex(te)}),be("ddd",function(te,Me){return Me.weekdaysShortRegex(te)}),be("dddd",function(te,Me){return Me.weekdaysRegex(te)}),vt(["dd","ddd","dddd"],function(te,Me,ft,Nt){var xn=ft._locale.weekdaysParse(te,Nt,ft._strict);xn!=null?Me.d=xn:k(ft).invalidWeekday=te}),vt(["d","e","E"],function(te,Me,ft,Nt){Me[Nt]=Rt(te)});function $i(te,Me){return typeof te!="string"?te:isNaN(te)?(te=Me.weekdaysParse(te),typeof te=="number"?te:null):parseInt(te,10)}function La(te,Me){return typeof te=="string"?Me.weekdaysParse(te)%7||7:isNaN(te)?null:te}function ja(te,Me){return te.slice(Me,7).concat(te.slice(0,Me))}var ei="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Do="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yo="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),to=bt,fs=bt,cs=bt;function Os(te,Me){var ft=y(this._weekdays)?this._weekdays:this._weekdays[te&&te!==!0&&this._weekdays.isFormat.test(Me)?"format":"standalone"];return te===!0?ja(ft,this._week.dow):te?ft[te.day()]:ft}function vl(te){return te===!0?ja(this._weekdaysShort,this._week.dow):te?this._weekdaysShort[te.day()]:this._weekdaysShort}function Ar(te){return te===!0?ja(this._weekdaysMin,this._week.dow):te?this._weekdaysMin[te.day()]:this._weekdaysMin}function Rn(te,Me,ft){var Nt,xn,Yr,qa=te.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Nt=0;Nt<7;++Nt)Yr=p([2e3,1]).day(Nt),this._minWeekdaysParse[Nt]=this.weekdaysMin(Yr,"").toLocaleLowerCase(),this._shortWeekdaysParse[Nt]=this.weekdaysShort(Yr,"").toLocaleLowerCase(),this._weekdaysParse[Nt]=this.weekdays(Yr,"").toLocaleLowerCase();return ft?Me==="dddd"?(xn=_r.call(this._weekdaysParse,qa),xn!==-1?xn:null):Me==="ddd"?(xn=_r.call(this._shortWeekdaysParse,qa),xn!==-1?xn:null):(xn=_r.call(this._minWeekdaysParse,qa),xn!==-1?xn:null):Me==="dddd"?(xn=_r.call(this._weekdaysParse,qa),xn!==-1||(xn=_r.call(this._shortWeekdaysParse,qa),xn!==-1)?xn:(xn=_r.call(this._minWeekdaysParse,qa),xn!==-1?xn:null)):Me==="ddd"?(xn=_r.call(this._shortWeekdaysParse,qa),xn!==-1||(xn=_r.call(this._weekdaysParse,qa),xn!==-1)?xn:(xn=_r.call(this._minWeekdaysParse,qa),xn!==-1?xn:null)):(xn=_r.call(this._minWeekdaysParse,qa),xn!==-1||(xn=_r.call(this._weekdaysParse,qa),xn!==-1)?xn:(xn=_r.call(this._shortWeekdaysParse,qa),xn!==-1?xn:null))}function Sr(te,Me,ft){var Nt,xn,Yr;if(this._weekdaysParseExact)return Rn.call(this,te,Me,ft);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),Nt=0;Nt<7;Nt++){if(xn=p([2e3,1]).day(Nt),ft&&!this._fullWeekdaysParse[Nt]&&(this._fullWeekdaysParse[Nt]=new RegExp("^"+this.weekdays(xn,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[Nt]=new RegExp("^"+this.weekdaysShort(xn,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[Nt]=new RegExp("^"+this.weekdaysMin(xn,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[Nt]||(Yr="^"+this.weekdays(xn,"")+"|^"+this.weekdaysShort(xn,"")+"|^"+this.weekdaysMin(xn,""),this._weekdaysParse[Nt]=new RegExp(Yr.replace(".",""),"i")),ft&&Me==="dddd"&&this._fullWeekdaysParse[Nt].test(te))return Nt;if(ft&&Me==="ddd"&&this._shortWeekdaysParse[Nt].test(te))return Nt;if(ft&&Me==="dd"&&this._minWeekdaysParse[Nt].test(te))return Nt;if(!ft&&this._weekdaysParse[Nt].test(te))return Nt}}function nn(te){if(!this.isValid())return te!=null?this:NaN;var Me=this._isUTC?this._d.getUTCDay():this._d.getDay();return te!=null?(te=$i(te,this.localeData()),this.add(te-Me,"d")):Me}function sn(te){if(!this.isValid())return te!=null?this:NaN;var Me=(this.day()+7-this.localeData()._week.dow)%7;return te==null?Me:this.add(te-Me,"d")}function Ot(te){if(!this.isValid())return te!=null?this:NaN;if(te!=null){var Me=La(te,this.localeData());return this.day(this.day()%7?Me:Me-7)}else return this.day()||7}function gr(te){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||Tr.call(this),te?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=to),this._weekdaysStrictRegex&&te?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gr(te){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||Tr.call(this),te?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=fs),this._weekdaysShortStrictRegex&&te?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ln(te){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||Tr.call(this),te?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=cs),this._weekdaysMinStrictRegex&&te?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Tr(){function te(Lc,Pu){return Pu.length-Lc.length}var Me=[],ft=[],Nt=[],xn=[],Yr,qa,Es,Qs,Hl;for(Yr=0;Yr<7;Yr++)qa=p([2e3,1]).day(Yr),Es=$e(this.weekdaysMin(qa,"")),Qs=$e(this.weekdaysShort(qa,"")),Hl=$e(this.weekdays(qa,"")),Me.push(Es),ft.push(Qs),Nt.push(Hl),xn.push(Es),xn.push(Qs),xn.push(Hl);Me.sort(te),ft.sort(te),Nt.sort(te),xn.sort(te),this._weekdaysRegex=new RegExp("^("+xn.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Nt.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+ft.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Me.join("|")+")","i")}function Dn(){return this.hours()%12||12}function Pr(){return this.hours()||24}pe("H",["HH",2],0,"hour"),pe("h",["hh",2],0,Dn),pe("k",["kk",2],0,Pr),pe("hmm",0,0,function(){return""+Dn.apply(this)+ve(this.minutes(),2)}),pe("hmmss",0,0,function(){return""+Dn.apply(this)+ve(this.minutes(),2)+ve(this.seconds(),2)}),pe("Hmm",0,0,function(){return""+this.hours()+ve(this.minutes(),2)}),pe("Hmmss",0,0,function(){return""+this.hours()+ve(this.minutes(),2)+ve(this.seconds(),2)});function fa(te,Me){pe(te,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),Me)})}fa("a",!0),fa("A",!1),Le("hour","h"),St("hour",13);function ka(te,Me){return Me._meridiemParse}be("a",ka),be("A",ka),be("H",an),be("h",an),be("k",an),be("HH",an,Et),be("hh",an,Et),be("kk",an,Et),be("hmm",Un),be("hmmss",qt),be("Hmm",Un),be("Hmmss",qt),lt(["H","HH"],zt),lt(["k","kk"],function(te,Me,ft){var Nt=Rt(te);Me[zt]=Nt===24?0:Nt}),lt(["a","A"],function(te,Me,ft){ft._isPm=ft._locale.isPM(te),ft._meridiem=te}),lt(["h","hh"],function(te,Me,ft){Me[zt]=Rt(te),k(ft).bigHour=!0}),lt("hmm",function(te,Me,ft){var Nt=te.length-2;Me[zt]=Rt(te.substr(0,Nt)),Me[ln]=Rt(te.substr(Nt)),k(ft).bigHour=!0}),lt("hmmss",function(te,Me,ft){var Nt=te.length-4,xn=te.length-2;Me[zt]=Rt(te.substr(0,Nt)),Me[ln]=Rt(te.substr(Nt,2)),Me[An]=Rt(te.substr(xn)),k(ft).bigHour=!0}),lt("Hmm",function(te,Me,ft){var Nt=te.length-2;Me[zt]=Rt(te.substr(0,Nt)),Me[ln]=Rt(te.substr(Nt))}),lt("Hmmss",function(te,Me,ft){var Nt=te.length-4,xn=te.length-2;Me[zt]=Rt(te.substr(0,Nt)),Me[ln]=Rt(te.substr(Nt,2)),Me[An]=Rt(te.substr(xn))});function Li(te){return(te+"").toLowerCase().charAt(0)==="p"}var zi=/[ap]\.?m?\.?/i,Mo=Lt("Hours",!0);function Za(te,Me,ft){return te>11?ft?"pm":"PM":ft?"am":"AM"}var ao={calendar:Ee,longDateFormat:Fe,invalidDate:qe,ordinal:dt,dayOfMonthOrdinalParse:Ke,relativeTime:wt,months:$n,monthsShort:qr,week:Yn,weekdays:ei,weekdaysMin:yo,weekdaysShort:Do,meridiemParse:zi},Mi={},Eo={},Xi;function Bo(te,Me){var ft,Nt=Math.min(te.length,Me.length);for(ft=0;ft<Nt;ft+=1)if(te[ft]!==Me[ft])return ft;return Nt}function ol(te){return te&&te.toLowerCase().replace("_","-")}function Il(te){for(var Me=0,ft,Nt,xn,Yr;Me<te.length;){for(Yr=ol(te[Me]).split("-"),ft=Yr.length,Nt=ol(te[Me+1]),Nt=Nt?Nt.split("-"):null;ft>0;){if(xn=mc(Yr.slice(0,ft).join("-")),xn)return xn;if(Nt&&Nt.length>=ft&&Bo(Yr,Nt)>=ft-1)break;ft--}Me++}return Xi}function ms(te){return te.match("^[^/\\\\]*$")!=null}function mc(te){var Me=null,ft;if(Mi[te]===void 0&&!0&&oe&&oe.exports&&ms(te))try{Me=Xi._abbr,ft=void 0,Object(function(){var xn=new Error("Cannot find module 'undefined'");throw xn.code="MODULE_NOT_FOUND",xn}()),Ys(Me)}catch(Nt){Mi[te]=null}return Mi[te]}function Ys(te,Me){var ft;return te&&(b(Me)?ft=xl(te):ft=hl(te,Me),ft?Xi=ft:typeof console!="undefined"&&console.warn&&console.warn("Locale "+te+" not found. Did you forget to load it?")),Xi._abbr}function hl(te,Me){if(Me!==null){var ft,Nt=ao;if(Me.abbr=te,Mi[te]!=null)K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),Nt=Mi[te]._config;else if(Me.parentLocale!=null)if(Mi[Me.parentLocale]!=null)Nt=Mi[Me.parentLocale]._config;else if(ft=mc(Me.parentLocale),ft!=null)Nt=ft._config;else return Eo[Me.parentLocale]||(Eo[Me.parentLocale]=[]),Eo[Me.parentLocale].push({name:te,config:Me}),null;return Mi[te]=new ue(Q(Nt,Me)),Eo[te]&&Eo[te].forEach(function(xn){hl(xn.name,xn.config)}),Ys(te),Mi[te]}else return delete Mi[te],null}function Rs(te,Me){if(Me!=null){var ft,Nt,xn=ao;Mi[te]!=null&&Mi[te].parentLocale!=null?Mi[te].set(Q(Mi[te]._config,Me)):(Nt=mc(te),Nt!=null&&(xn=Nt._config),Me=Q(xn,Me),Nt==null&&(Me.abbr=te),ft=new ue(Me),ft.parentLocale=Mi[te],Mi[te]=ft),Ys(te)}else Mi[te]!=null&&(Mi[te].parentLocale!=null?(Mi[te]=Mi[te].parentLocale,te===Ys()&&Ys(te)):Mi[te]!=null&&delete Mi[te]);return Mi[te]}function xl(te){var Me;if(te&&te._locale&&te._locale._abbr&&(te=te._locale._abbr),!te)return Xi;if(!y(te)){if(Me=mc(te),Me)return Me;te=[te]}return Il(te)}function Wl(){return he(Mi)}function _l(te){var Me,ft=te._a;return ft&&k(te).overflow===-2&&(Me=ft[mt]<0||ft[mt]>11?mt:ft[Zt]<1||ft[Zt]>na(ft[Bt],ft[mt])?Zt:ft[zt]<0||ft[zt]>24||ft[zt]===24&&(ft[ln]!==0||ft[An]!==0||ft[En]!==0)?zt:ft[ln]<0||ft[ln]>59?ln:ft[An]<0||ft[An]>59?An:ft[En]<0||ft[En]>999?En:-1,k(te)._overflowDayOfYear&&(Me<Bt||Me>Zt)&&(Me=Zt),k(te)._overflowWeeks&&Me===-1&&(Me=Gn),k(te)._overflowWeekday&&Me===-1&&(Me=Bn),k(te).overflow=Me),te}var Ls=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,zn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Dr=/Z|[+-]\d\d(?::?\d\d)?/,Hr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_a=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ti=/^\/?Date\((-?\d+)/i,Ci=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,da={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Da(te){var Me,ft,Nt=te._i,xn=Ls.exec(Nt)||zn.exec(Nt),Yr,qa,Es,Qs,Hl=Hr.length,Lc=_a.length;if(xn){for(k(te).iso=!0,Me=0,ft=Hl;Me<ft;Me++)if(Hr[Me][1].exec(xn[1])){qa=Hr[Me][0],Yr=Hr[Me][2]!==!1;break}if(qa==null){te._isValid=!1;return}if(xn[3]){for(Me=0,ft=Lc;Me<ft;Me++)if(_a[Me][1].exec(xn[3])){Es=(xn[2]||" ")+_a[Me][0];break}if(Es==null){te._isValid=!1;return}}if(!Yr&&Es!=null){te._isValid=!1;return}if(xn[4])if(Dr.exec(xn[4]))Qs="Z";else{te._isValid=!1;return}te._f=qa+(Es||"")+(Qs||""),xu(te)}else te._isValid=!1}function mi(te,Me,ft,Nt,xn,Yr){var qa=[Ho(te),qr.indexOf(Me),parseInt(ft,10),parseInt(Nt,10),parseInt(xn,10)];return Yr&&qa.push(parseInt(Yr,10)),qa}function Ho(te){var Me=parseInt(te,10);return Me<=49?2e3+Me:Me<=999?1900+Me:Me}function al(te){return te.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ml(te,Me,ft){if(te){var Nt=Do.indexOf(te),xn=new Date(Me[0],Me[1],Me[2]).getDay();if(Nt!==xn)return k(ft).weekdayMismatch=!0,ft._isValid=!1,!1}return!0}function Xs(te,Me,ft){if(te)return da[te];if(Me)return 0;var Nt=parseInt(ft,10),xn=Nt%100,Yr=(Nt-xn)/100;return Yr*60+xn}function Ps(te){var Me=Ci.exec(al(te._i)),ft;if(Me){if(ft=mi(Me[4],Me[3],Me[2],Me[5],Me[6],Me[7]),!ml(Me[1],ft,te))return;te._a=ft,te._tzm=Xs(Me[8],Me[9],Me[10]),te._d=Cn.apply(null,te._a),te._d.setUTCMinutes(te._d.getUTCMinutes()-te._tzm),k(te).rfc2822=!0}else te._isValid=!1}function dl(te){var Me=Ti.exec(te._i);if(Me!==null){te._d=new Date(+Me[1]);return}if(Da(te),te._isValid===!1)delete te._isValid;else return;if(Ps(te),te._isValid===!1)delete te._isValid;else return;te._strict?te._isValid=!1:g.createFromInputFallback(te)}g.createFromInputFallback=G("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(te){te._d=new Date(te._i+(te._useUTC?" UTC":""))});function ql(te,Me,ft){return te!=null?te:Me!=null?Me:ft}function Dc(te){var Me=new Date(g.now());return te._useUTC?[Me.getUTCFullYear(),Me.getUTCMonth(),Me.getUTCDate()]:[Me.getFullYear(),Me.getMonth(),Me.getDate()]}function Jl(te){var Me,ft,Nt=[],xn,Yr,qa;if(!te._d){for(xn=Dc(te),te._w&&te._a[Zt]==null&&te._a[mt]==null&&oc(te),te._dayOfYear!=null&&(qa=ql(te._a[Bt],xn[Bt]),(te._dayOfYear>Ea(qa)||te._dayOfYear===0)&&(k(te)._overflowDayOfYear=!0),ft=Cn(qa,0,te._dayOfYear),te._a[mt]=ft.getUTCMonth(),te._a[Zt]=ft.getUTCDate()),Me=0;Me<3&&te._a[Me]==null;++Me)te._a[Me]=Nt[Me]=xn[Me];for(;Me<7;Me++)te._a[Me]=Nt[Me]=te._a[Me]==null?Me===2?1:0:te._a[Me];te._a[zt]===24&&te._a[ln]===0&&te._a[An]===0&&te._a[En]===0&&(te._nextDay=!0,te._a[zt]=0),te._d=(te._useUTC?Cn:Ui).apply(null,Nt),Yr=te._useUTC?te._d.getUTCDay():te._d.getDay(),te._tzm!=null&&te._d.setUTCMinutes(te._d.getUTCMinutes()-te._tzm),te._nextDay&&(te._a[zt]=24),te._w&&typeof te._w.d!="undefined"&&te._w.d!==Yr&&(k(te).weekdayMismatch=!0)}}function oc(te){var Me,ft,Nt,xn,Yr,qa,Es,Qs,Hl;Me=te._w,Me.GG!=null||Me.W!=null||Me.E!=null?(Yr=1,qa=4,ft=ql(Me.GG,te._a[Bt],At(ws(),1,4).year),Nt=ql(Me.W,1),xn=ql(Me.E,1),(xn<1||xn>7)&&(Qs=!0)):(Yr=te._locale._week.dow,qa=te._locale._week.doy,Hl=At(ws(),Yr,qa),ft=ql(Me.gg,te._a[Bt],Hl.year),Nt=ql(Me.w,Hl.week),Me.d!=null?(xn=Me.d,(xn<0||xn>6)&&(Qs=!0)):Me.e!=null?(xn=Me.e+Yr,(Me.e<0||Me.e>6)&&(Qs=!0)):xn=Yr),Nt<1||Nt>ar(ft,Yr,qa)?k(te)._overflowWeeks=!0:Qs!=null?k(te)._overflowWeekday=!0:(Es=Pn(ft,Nt,xn,Yr,qa),te._a[Bt]=Es.year,te._dayOfYear=Es.dayOfYear)}g.ISO_8601=function(){},g.RFC_2822=function(){};function xu(te){if(te._f===g.ISO_8601){Da(te);return}if(te._f===g.RFC_2822){Ps(te);return}te._a=[],k(te).empty=!0;var Me=""+te._i,ft,Nt,xn,Yr,qa,Es=Me.length,Qs=0,Hl,Lc;for(xn=De(te._f,te._locale).match(fe)||[],Lc=xn.length,ft=0;ft<Lc;ft++)Yr=xn[ft],Nt=(Me.match(Ae(Yr,te))||[])[0],Nt&&(qa=Me.substr(0,Me.indexOf(Nt)),qa.length>0&&k(te).unusedInput.push(qa),Me=Me.slice(Me.indexOf(Nt)+Nt.length),Qs+=Nt.length),Pe[Yr]?(Nt?k(te).empty=!1:k(te).unusedTokens.push(Yr),Ct(Yr,Nt,te)):te._strict&&!Nt&&k(te).unusedTokens.push(Yr);k(te).charsLeftOver=Es-Qs,Me.length>0&&k(te).unusedInput.push(Me),te._a[zt]<=12&&k(te).bigHour===!0&&te._a[zt]>0&&(k(te).bigHour=void 0),k(te).parsedDateParts=te._a.slice(0),k(te).meridiem=te._meridiem,te._a[zt]=yf(te._locale,te._a[zt],te._meridiem),Hl=k(te).era,Hl!==null&&(te._a[Bt]=te._locale.erasConvertYear(Hl,te._a[Bt])),Jl(te),_l(te)}function yf(te,Me,ft){var Nt;return ft==null?Me:te.meridiemHour!=null?te.meridiemHour(Me,ft):(te.isPM!=null&&(Nt=te.isPM(ft),Nt&&Me<12&&(Me+=12),!Nt&&Me===12&&(Me=0)),Me)}function ku(te){var Me,ft,Nt,xn,Yr,qa,Es=!1,Qs=te._f.length;if(Qs===0){k(te).invalidFormat=!0,te._d=new Date(NaN);return}for(xn=0;xn<Qs;xn++)Yr=0,qa=!1,Me=U({},te),te._useUTC!=null&&(Me._useUTC=te._useUTC),Me._f=te._f[xn],xu(Me),F(Me)&&(qa=!0),Yr+=k(Me).charsLeftOver,Yr+=k(Me).unusedTokens.length*10,k(Me).score=Yr,Es?Yr<Nt&&(Nt=Yr,ft=Me):(Nt==null||Yr<Nt||qa)&&(Nt=Yr,ft=Me,qa&&(Es=!0));_(te,ft||Me)}function Zc(te){if(!te._d){var Me=at(te._i),ft=Me.day===void 0?Me.date:Me.day;te._a=d([Me.year,Me.month,ft,Me.hour,Me.minute,Me.second,Me.millisecond],function(Nt){return Nt&&parseInt(Nt,10)}),Jl(te)}}function Zu(te){var Me=new L(_l(Fc(te)));return Me._nextDay&&(Me.add(1,"d"),Me._nextDay=void 0),Me}function Fc(te){var Me=te._i,ft=te._f;return te._locale=te._locale||xl(te._l),Me===null||ft===void 0&&Me===""?D({nullInput:!0}):(typeof Me=="string"&&(te._i=Me=te._locale.preparse(Me)),V(Me)?new L(_l(Me)):(h(Me)?te._d=Me:y(ft)?ku(te):ft?xu(te):Hc(te),F(te)||(te._d=null),te))}function Hc(te){var Me=te._i;b(Me)?te._d=new Date(g.now()):h(Me)?te._d=new Date(Me.valueOf()):typeof Me=="string"?dl(te):y(Me)?(te._a=d(Me.slice(0),function(ft){return parseInt(ft,10)}),Jl(te)):M(Me)?Zc(te):v(Me)?te._d=new Date(Me):g.createFromInputFallback(te)}function Vu(te,Me,ft,Nt,xn){var Yr={};return(Me===!0||Me===!1)&&(Nt=Me,Me=void 0),(ft===!0||ft===!1)&&(Nt=ft,ft=void 0),(M(te)&&m(te)||y(te)&&te.length===0)&&(te=void 0),Yr._isAMomentObject=!0,Yr._useUTC=Yr._isUTC=xn,Yr._l=ft,Yr._i=te,Yr._f=Me,Yr._strict=Nt,Zu(Yr)}function ws(te,Me,ft,Nt){return Vu(te,Me,ft,Nt,!1)}var fc=G("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var te=ws.apply(null,arguments);return this.isValid()&&te.isValid()?te<this?this:te:D()}),Tc=G("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var te=ws.apply(null,arguments);return this.isValid()&&te.isValid()?te>this?this:te:D()});function jc(te,Me){var ft,Nt;if(Me.length===1&&y(Me[0])&&(Me=Me[0]),!Me.length)return ws();for(ft=Me[0],Nt=1;Nt<Me.length;++Nt)(!Me[Nt].isValid()||Me[Nt][te](ft))&&(ft=Me[Nt]);return ft}function lu(){var te=[].slice.call(arguments,0);return jc("isBefore",te)}function hu(){var te=[].slice.call(arguments,0);return jc("isAfter",te)}var of=function(){return Date.now?Date.now():+new Date},uu=["year","quarter","month","week","day","hour","minute","second","millisecond"];function zu(te){var Me,ft=!1,Nt,xn=uu.length;for(Me in te)if(w(te,Me)&&!(_r.call(uu,Me)!==-1&&(te[Me]==null||!isNaN(te[Me]))))return!1;for(Nt=0;Nt<xn;++Nt)if(te[uu[Nt]]){if(ft)return!1;parseFloat(te[uu[Nt]])!==Rt(te[uu[Nt]])&&(ft=!0)}return!0}function cf(){return this._isValid}function bf(){return oi(NaN)}function Cu(te){var Me=at(te),ft=Me.year||0,Nt=Me.quarter||0,xn=Me.month||0,Yr=Me.week||Me.isoWeek||0,qa=Me.day||0,Es=Me.hour||0,Qs=Me.minute||0,Hl=Me.second||0,Lc=Me.millisecond||0;this._isValid=zu(Me),this._milliseconds=+Lc+Hl*1e3+Qs*6e4+Es*1e3*60*60,this._days=+qa+Yr*7,this._months=+xn+Nt*3+ft*12,this._data={},this._locale=xl(),this._bubble()}function rf(te){return te instanceof Cu}function Bu(te){return te<0?Math.round(-1*te)*-1:Math.round(te)}function Tf(te,Me,ft){var Nt=Math.min(te.length,Me.length),xn=Math.abs(te.length-Me.length),Yr=0,qa;for(qa=0;qa<Nt;qa++)(ft&&te[qa]!==Me[qa]||!ft&&Rt(te[qa])!==Rt(Me[qa]))&&Yr++;return Yr+xn}function ed(te,Me){pe(te,0,0,function(){var ft=this.utcOffset(),Nt="+";return ft<0&&(ft=-ft,Nt="-"),Nt+ve(~~(ft/60),2)+Me+ve(~~ft%60,2)})}ed("Z",":"),ed("ZZ",""),be("Z",Hn),be("ZZ",Hn),lt(["Z","ZZ"],function(te,Me,ft){ft._useUTC=!0,ft._tzm=Pd(Hn,te)});var Fd=/([\+\-]|\d\d)/gi;function Pd(te,Me){var ft=(Me||"").match(te),Nt,xn,Yr;return ft===null?null:(Nt=ft[ft.length-1]||[],xn=(Nt+"").match(Fd)||["-",0,0],Yr=+(xn[1]*60)+Rt(xn[2]),Yr===0?0:xn[0]==="+"?Yr:-Yr)}function Nc(te,Me){var ft,Nt;return Me._isUTC?(ft=Me.clone(),Nt=(V(te)||h(te)?te.valueOf():ws(te).valueOf())-ft.valueOf(),ft._d.setTime(ft._d.valueOf()+Nt),g.updateOffset(ft,!1),ft):ws(te).local()}function eu(te){return-Math.round(te._d.getTimezoneOffset())}g.updateOffset=function(){};function If(te,Me,ft){var Nt=this._offset||0,xn;if(!this.isValid())return te!=null?this:NaN;if(te!=null){if(typeof te=="string"){if(te=Pd(Hn,te),te===null)return this}else Math.abs(te)<16&&!ft&&(te=te*60);return!this._isUTC&&Me&&(xn=eu(this)),this._offset=te,this._isUTC=!0,xn!=null&&this.add(xn,"m"),Nt!==te&&(!Me||this._changeInProgress?mo(this,oi(te-Nt,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,g.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?Nt:eu(this)}function $f(te,Me){return te!=null?(typeof te!="string"&&(te=-te),this.utcOffset(te,Me),this):-this.utcOffset()}function Te(te){return this.utcOffset(0,te)}function _t(te){return this._isUTC&&(this.utcOffset(0,te),this._isUTC=!1,te&&this.subtract(eu(this),"m")),this}function Vn(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var te=Pd(lr,this._i);te!=null?this.utcOffset(te):this.utcOffset(0,!0)}return this}function br(te){return this.isValid()?(te=te?ws(te).utcOffset():0,(this.utcOffset()-te)%60==0):!1}function tn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Pt(){if(!b(this._isDSTShifted))return this._isDSTShifted;var te={},Me;return U(te,this),te=Fc(te),te._a?(Me=te._isUTC?p(te._a):ws(te._a),this._isDSTShifted=this.isValid()&&Tf(te._a,Me.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function on(){return this.isValid()?!this._isUTC:!1}function _n(){return this.isValid()?this._isUTC:!1}function ir(){return this.isValid()?this._isUTC&&this._offset===0:!1}var xr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,aa=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function oi(te,Me){var ft=te,Nt=null,xn,Yr,qa;return rf(te)?ft={ms:te._milliseconds,d:te._days,M:te._months}:v(te)||!isNaN(+te)?(ft={},Me?ft[Me]=+te:ft.milliseconds=+te):(Nt=xr.exec(te))?(xn=Nt[1]==="-"?-1:1,ft={y:0,d:Rt(Nt[Zt])*xn,h:Rt(Nt[zt])*xn,m:Rt(Nt[ln])*xn,s:Rt(Nt[An])*xn,ms:Rt(Bu(Nt[En]*1e3))*xn}):(Nt=aa.exec(te))?(xn=Nt[1]==="-"?-1:1,ft={y:ni(Nt[2],xn),M:ni(Nt[3],xn),w:ni(Nt[4],xn),d:ni(Nt[5],xn),h:ni(Nt[6],xn),m:ni(Nt[7],xn),s:ni(Nt[8],xn)}):ft==null?ft={}:typeof ft=="object"&&("from"in ft||"to"in ft)&&(qa=Zo(ws(ft.from),ws(ft.to)),ft={},ft.ms=qa.milliseconds,ft.M=qa.months),Yr=new Cu(ft),rf(te)&&w(te,"_locale")&&(Yr._locale=te._locale),rf(te)&&w(te,"_isValid")&&(Yr._isValid=te._isValid),Yr}oi.fn=Cu.prototype,oi.invalid=bf;function ni(te,Me){var ft=te&&parseFloat(te.replace(",","."));return(isNaN(ft)?0:ft)*Me}function yi(te,Me){var ft={};return ft.months=Me.month()-te.month()+(Me.year()-te.year())*12,te.clone().add(ft.months,"M").isAfter(Me)&&--ft.months,ft.milliseconds=+Me-+te.clone().add(ft.months,"M"),ft}function Zo(te,Me){var ft;return te.isValid()&&Me.isValid()?(Me=Nc(Me,te),te.isBefore(Me)?ft=yi(te,Me):(ft=yi(Me,te),ft.milliseconds=-ft.milliseconds,ft.months=-ft.months),ft):{milliseconds:0,months:0}}function is(te,Me){return function(ft,Nt){var xn,Yr;return Nt!==null&&!isNaN(+Nt)&&(K(Me,"moment()."+Me+"(period, number) is deprecated. Please use moment()."+Me+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Yr=ft,ft=Nt,Nt=Yr),xn=oi(ft,Nt),mo(this,xn,te),this}}function mo(te,Me,ft,Nt){var xn=Me._milliseconds,Yr=Bu(Me._days),qa=Bu(Me._months);!te.isValid()||(Nt=Nt==null?!0:Nt,qa&&vr(te,ze(te,"Month")+qa*ft),Yr&&rt(te,"Date",ze(te,"Date")+Yr*ft),xn&&te._d.setTime(te._d.valueOf()+xn*ft),Nt&&g.updateOffset(te,Yr||qa))}var Ml=is(1,"add"),yc=is(-1,"subtract");function oa(te){return typeof te=="string"||te instanceof String}function sl(te){return V(te)||h(te)||oa(te)||v(te)||bc(te)||fl(te)||te===null||te===void 0}function fl(te){var Me=M(te)&&!m(te),ft=!1,Nt=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],xn,Yr,qa=Nt.length;for(xn=0;xn<qa;xn+=1)Yr=Nt[xn],ft=ft||w(te,Yr);return Me&&ft}function bc(te){var Me=y(te),ft=!1;return Me&&(ft=te.filter(function(Nt){return!v(Nt)&&oa(te)}).length===0),Me&&ft}function Rf(te){var Me=M(te)&&!m(te),ft=!1,Nt=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],xn,Yr;for(xn=0;xn<Nt.length;xn+=1)Yr=Nt[xn],ft=ft||w(te,Yr);return Me&&ft}function Ms(te,Me){var ft=te.diff(Me,"days",!0);return ft<-6?"sameElse":ft<-1?"lastWeek":ft<0?"lastDay":ft<1?"sameDay":ft<2?"nextDay":ft<7?"nextWeek":"sameElse"}function ff(te,Me){arguments.length===1&&(arguments[0]?sl(arguments[0])?(te=arguments[0],Me=void 0):Rf(arguments[0])&&(Me=arguments[0],te=void 0):(te=void 0,Me=void 0));var ft=te||ws(),Nt=Nc(ft,this).startOf("day"),xn=g.calendarFormat(this,Nt)||"sameElse",Yr=Me&&(re(Me[xn])?Me[xn].call(this,ft):Me[xn]);return this.format(Yr||this.localeData().calendar(xn,this,ws(ft)))}function Df(){return new L(this)}function Ff(te,Me){var ft=V(te)?te:ws(te);return this.isValid()&&ft.isValid()?(Me=ct(Me)||"millisecond",Me==="millisecond"?this.valueOf()>ft.valueOf():ft.valueOf()<this.clone().startOf(Me).valueOf()):!1}function Kf(te,Me){var ft=V(te)?te:ws(te);return this.isValid()&&ft.isValid()?(Me=ct(Me)||"millisecond",Me==="millisecond"?this.valueOf()<ft.valueOf():this.clone().endOf(Me).valueOf()<ft.valueOf()):!1}function xf(te,Me,ft,Nt){var xn=V(te)?te:ws(te),Yr=V(Me)?Me:ws(Me);return this.isValid()&&xn.isValid()&&Yr.isValid()?(Nt=Nt||"()",(Nt[0]==="("?this.isAfter(xn,ft):!this.isBefore(xn,ft))&&(Nt[1]===")"?this.isBefore(Yr,ft):!this.isAfter(Yr,ft))):!1}function Sc(te,Me){var ft=V(te)?te:ws(te),Nt;return this.isValid()&&ft.isValid()?(Me=ct(Me)||"millisecond",Me==="millisecond"?this.valueOf()===ft.valueOf():(Nt=ft.valueOf(),this.clone().startOf(Me).valueOf()<=Nt&&Nt<=this.clone().endOf(Me).valueOf())):!1}function Wu(te,Me){return this.isSame(te,Me)||this.isAfter(te,Me)}function Du(te,Me){return this.isSame(te,Me)||this.isBefore(te,Me)}function Gd(te,Me,ft){var Nt,xn,Yr;if(!this.isValid())return NaN;if(Nt=Nc(te,this),!Nt.isValid())return NaN;switch(xn=(Nt.utcOffset()-this.utcOffset())*6e4,Me=ct(Me),Me){case"year":Yr=gf(this,Nt)/12;break;case"month":Yr=gf(this,Nt);break;case"quarter":Yr=gf(this,Nt)/3;break;case"second":Yr=(this-Nt)/1e3;break;case"minute":Yr=(this-Nt)/6e4;break;case"hour":Yr=(this-Nt)/36e5;break;case"day":Yr=(this-Nt-xn)/864e5;break;case"week":Yr=(this-Nt-xn)/6048e5;break;default:Yr=this-Nt}return ft?Yr:Yt(Yr)}function gf(te,Me){if(te.date()<Me.date())return-gf(Me,te);var ft=(Me.year()-te.year())*12+(Me.month()-te.month()),Nt=te.clone().add(ft,"months"),xn,Yr;return Me-Nt<0?(xn=te.clone().add(ft-1,"months"),Yr=(Me-Nt)/(Nt-xn)):(xn=te.clone().add(ft+1,"months"),Yr=(Me-Nt)/(xn-Nt)),-(ft+Yr)||0}g.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",g.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Vp(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function $c(te){if(!this.isValid())return null;var Me=te!==!0,ft=Me?this.clone().utc():this;return ft.year()<0||ft.year()>9999?ke(ft,Me?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):re(Date.prototype.toISOString)?Me?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ke(ft,"Z")):ke(ft,Me?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Yl(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var te="moment",Me="",ft,Nt,xn,Yr;return this.isLocal()||(te=this.utcOffset()===0?"moment.utc":"moment.parseZone",Me="Z"),ft="["+te+'("]',Nt=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",xn="-MM-DD[T]HH:mm:ss.SSS",Yr=Me+'[")]',this.format(ft+Nt+xn+Yr)}function Sp(te){te||(te=this.isUtc()?g.defaultFormatUtc:g.defaultFormat);var Me=ke(this,te);return this.localeData().postformat(Me)}function tp(te,Me){return this.isValid()&&(V(te)&&te.isValid()||ws(te).isValid())?oi({to:this,from:te}).locale(this.locale()).humanize(!Me):this.localeData().invalidDate()}function Rp(te){return this.from(ws(),te)}function df(te,Me){return this.isValid()&&(V(te)&&te.isValid()||ws(te).isValid())?oi({from:this,to:te}).locale(this.locale()).humanize(!Me):this.localeData().invalidDate()}function uf(te){return this.to(ws(),te)}function Af(te){var Me;return te===void 0?this._locale._abbr:(Me=xl(te),Me!=null&&(this._locale=Me),this)}var Wn=G("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(te){return te===void 0?this.localeData():this.locale(te)});function ca(){return this._locale}var ra=1e3,Na=60*ra,fi=60*Na,so=(365*400+97)*24*fi;function vo(te,Me){return(te%Me+Me)%Me}function Ro(te,Me,ft){return te<100&&te>=0?new Date(te+400,Me,ft)-so:new Date(te,Me,ft).valueOf()}function So(te,Me,ft){return te<100&&te>=0?Date.UTC(te+400,Me,ft)-so:Date.UTC(te,Me,ft)}function el(te){var Me,ft;if(te=ct(te),te===void 0||te==="millisecond"||!this.isValid())return this;switch(ft=this._isUTC?So:Ro,te){case"year":Me=ft(this.year(),0,1);break;case"quarter":Me=ft(this.year(),this.month()-this.month()%3,1);break;case"month":Me=ft(this.year(),this.month(),1);break;case"week":Me=ft(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":Me=ft(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":Me=ft(this.year(),this.month(),this.date());break;case"hour":Me=this._d.valueOf(),Me-=vo(Me+(this._isUTC?0:this.utcOffset()*Na),fi);break;case"minute":Me=this._d.valueOf(),Me-=vo(Me,Na);break;case"second":Me=this._d.valueOf(),Me-=vo(Me,ra);break}return this._d.setTime(Me),g.updateOffset(this,!0),this}function ul(te){var Me,ft;if(te=ct(te),te===void 0||te==="millisecond"||!this.isValid())return this;switch(ft=this._isUTC?So:Ro,te){case"year":Me=ft(this.year()+1,0,1)-1;break;case"quarter":Me=ft(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":Me=ft(this.year(),this.month()+1,1)-1;break;case"week":Me=ft(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":Me=ft(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":Me=ft(this.year(),this.month(),this.date()+1)-1;break;case"hour":Me=this._d.valueOf(),Me+=fi-vo(Me+(this._isUTC?0:this.utcOffset()*Na),fi)-1;break;case"minute":Me=this._d.valueOf(),Me+=Na-vo(Me,Na)-1;break;case"second":Me=this._d.valueOf(),Me+=ra-vo(Me,ra)-1;break}return this._d.setTime(Me),g.updateOffset(this,!0),this}function Xo(){return this._d.valueOf()-(this._offset||0)*6e4}function lo(){return Math.floor(this.valueOf()/1e3)}function Zs(){return new Date(this.valueOf())}function Gs(){var te=this;return[te.year(),te.month(),te.date(),te.hour(),te.minute(),te.second(),te.millisecond()]}function $s(){var te=this;return{years:te.year(),months:te.month(),date:te.date(),hours:te.hours(),minutes:te.minutes(),seconds:te.seconds(),milliseconds:te.milliseconds()}}function Qn(){return this.isValid()?this.toISOString():null}function dr(){return F(this)}function Xr(){return _({},k(this))}function la(){return k(this).overflow}function Ra(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}pe("N",0,0,"eraAbbr"),pe("NN",0,0,"eraAbbr"),pe("NNN",0,0,"eraAbbr"),pe("NNNN",0,0,"eraName"),pe("NNNNN",0,0,"eraNarrow"),pe("y",["y",1],"yo","eraYear"),pe("y",["yy",2],0,"eraYear"),pe("y",["yyy",3],0,"eraYear"),pe("y",["yyyy",4],0,"eraYear"),be("N",Us),be("NN",Us),be("NNN",Us),be("NNNN",os),be("NNNNN",El),lt(["N","NN","NNN","NNNN","NNNNN"],function(te,Me,ft,Nt){var xn=ft._locale.erasParse(te,Nt,ft._strict);xn?k(ft).era=xn:k(ft).invalidEra=te}),be("y",rr),be("yy",rr),be("yyy",rr),be("yyyy",rr),be("yo",Bs),lt(["y","yy","yyy","yyyy"],Bt),lt(["yo"],function(te,Me,ft,Nt){var xn;ft._locale._eraYearOrdinalRegex&&(xn=te.match(ft._locale._eraYearOrdinalRegex)),ft._locale.eraYearOrdinalParse?Me[Bt]=ft._locale.eraYearOrdinalParse(te,xn):Me[Bt]=parseInt(te,10)});function _i(te,Me){var ft,Nt,xn,Yr=this._eras||xl("en")._eras;for(ft=0,Nt=Yr.length;ft<Nt;++ft){switch(typeof Yr[ft].since){case"string":xn=g(Yr[ft].since).startOf("day"),Yr[ft].since=xn.valueOf();break}switch(typeof Yr[ft].until){case"undefined":Yr[ft].until=Infinity;break;case"string":xn=g(Yr[ft].until).startOf("day").valueOf(),Yr[ft].until=xn.valueOf();break}}return Yr}function ui(te,Me,ft){var Nt,xn,Yr=this.eras(),qa,Es,Qs;for(te=te.toUpperCase(),Nt=0,xn=Yr.length;Nt<xn;++Nt)if(qa=Yr[Nt].name.toUpperCase(),Es=Yr[Nt].abbr.toUpperCase(),Qs=Yr[Nt].narrow.toUpperCase(),ft)switch(Me){case"N":case"NN":case"NNN":if(Es===te)return Yr[Nt];break;case"NNNN":if(qa===te)return Yr[Nt];break;case"NNNNN":if(Qs===te)return Yr[Nt];break}else if([qa,Es,Qs].indexOf(te)>=0)return Yr[Nt]}function ho(te,Me){var ft=te.since<=te.until?1:-1;return Me===void 0?g(te.since).year():g(te.since).year()+(Me-te.offset)*ft}function Oi(){var te,Me,ft,Nt=this.localeData().eras();for(te=0,Me=Nt.length;te<Me;++te)if(ft=this.clone().startOf("day").valueOf(),Nt[te].since<=ft&&ft<=Nt[te].until||Nt[te].until<=ft&&ft<=Nt[te].since)return Nt[te].name;return""}function Fo(){var te,Me,ft,Nt=this.localeData().eras();for(te=0,Me=Nt.length;te<Me;++te)if(ft=this.clone().startOf("day").valueOf(),Nt[te].since<=ft&&ft<=Nt[te].until||Nt[te].until<=ft&&ft<=Nt[te].since)return Nt[te].narrow;return""}function as(){var te,Me,ft,Nt=this.localeData().eras();for(te=0,Me=Nt.length;te<Me;++te)if(ft=this.clone().startOf("day").valueOf(),Nt[te].since<=ft&&ft<=Nt[te].until||Nt[te].until<=ft&&ft<=Nt[te].since)return Nt[te].abbr;return""}function Fs(){var te,Me,ft,Nt,xn=this.localeData().eras();for(te=0,Me=xn.length;te<Me;++te)if(ft=xn[te].since<=xn[te].until?1:-1,Nt=this.clone().startOf("day").valueOf(),xn[te].since<=Nt&&Nt<=xn[te].until||xn[te].until<=Nt&&Nt<=xn[te].since)return(this.year()-g(xn[te].since).year())*ft+xn[te].offset;return this.year()}function Fr(te){return w(this,"_erasNameRegex")||gc.call(this),te?this._erasNameRegex:this._erasRegex}function tl(te){return w(this,"_erasAbbrRegex")||gc.call(this),te?this._erasAbbrRegex:this._erasRegex}function Js(te){return w(this,"_erasNarrowRegex")||gc.call(this),te?this._erasNarrowRegex:this._erasRegex}function Us(te,Me){return Me.erasAbbrRegex(te)}function os(te,Me){return Me.erasNameRegex(te)}function El(te,Me){return Me.erasNarrowRegex(te)}function Bs(te,Me){return Me._eraYearOrdinalRegex||rr}function gc(){var te=[],Me=[],ft=[],Nt=[],xn,Yr,qa=this.eras();for(xn=0,Yr=qa.length;xn<Yr;++xn)Me.push($e(qa[xn].name)),te.push($e(qa[xn].abbr)),ft.push($e(qa[xn].narrow)),Nt.push($e(qa[xn].name)),Nt.push($e(qa[xn].abbr)),Nt.push($e(qa[xn].narrow));this._erasRegex=new RegExp("^("+Nt.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+Me.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+te.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+ft.join("|")+")","i")}pe(0,["gg",2],0,function(){return this.weekYear()%100}),pe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function kr(te,Me){pe(0,[te,te.length],0,Me)}kr("gggg","weekYear"),kr("ggggg","weekYear"),kr("GGGG","isoWeekYear"),kr("GGGGG","isoWeekYear"),Le("weekYear","gg"),Le("isoWeekYear","GG"),St("weekYear",1),St("isoWeekYear",1),be("G",nt),be("g",nt),be("GG",an,Et),be("gg",an,Et),be("GGGG",cn,Jt),be("gggg",cn,Jt),be("GGGGG",er,Qt),be("ggggg",er,Qt),vt(["gggg","ggggg","GGGG","GGGGG"],function(te,Me,ft,Nt){Me[Nt.substr(0,2)]=Rt(te)}),vt(["gg","GG"],function(te,Me,ft,Nt){Me[Nt]=g.parseTwoDigitYear(te)});function Sa(te){return Fl.call(this,te,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Hi(te){return Fl.call(this,te,this.isoWeek(),this.isoWeekday(),1,4)}function Co(){return ar(this.year(),1,4)}function Ds(){return ar(this.isoWeekYear(),1,4)}function Dl(){var te=this.localeData()._week;return ar(this.year(),te.dow,te.doy)}function Xc(){var te=this.localeData()._week;return ar(this.weekYear(),te.dow,te.doy)}function Fl(te,Me,ft,Nt,xn){var Yr;return te==null?At(this,Nt,xn).year:(Yr=ar(te,Nt,xn),Me>Yr&&(Me=Yr),Eu.call(this,te,Me,ft,Nt,xn))}function Eu(te,Me,ft,Nt,xn){var Yr=Pn(te,Me,ft,Nt,xn),qa=Cn(Yr.year,0,Yr.dayOfYear);return this.year(qa.getUTCFullYear()),this.month(qa.getUTCMonth()),this.date(qa.getUTCDate()),this}pe("Q",0,"Qo","quarter"),Le("quarter","Q"),St("quarter",7),be("Q",ot),lt("Q",function(te,Me){Me[mt]=(Rt(te)-1)*3});function cc(te){return te==null?Math.ceil((this.month()+1)/3):this.month((te-1)*3+this.month()%3)}pe("D",["DD",2],"Do","date"),Le("date","D"),St("date",9),be("D",an),be("DD",an,Et),be("Do",function(te,Me){return te?Me._dayOfMonthOrdinalParse||Me._ordinalParse:Me._dayOfMonthOrdinalParseLenient}),lt(["D","DD"],Zt),lt("Do",function(te,Me){Me[Zt]=Rt(te.match(an)[0])});var Hu=Lt("Date",!0);pe("DDD",["DDDD",3],"DDDo","dayOfYear"),Le("dayOfYear","DDD"),St("dayOfYear",4),be("DDD",rn),be("DDDD",Ht),lt(["DDD","DDDD"],function(te,Me,ft){ft._dayOfYear=Rt(te)});function dc(te){var Me=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return te==null?Me:this.add(te-Me,"d")}pe("m",["mm",2],0,"minute"),Le("minute","m"),St("minute",14),be("m",an),be("mm",an,Et),lt(["m","mm"],ln);var iu=Lt("Minutes",!1);pe("s",["ss",2],0,"second"),Le("second","s"),St("second",15),be("s",an),be("ss",an,Et),lt(["s","ss"],An);var Gc=Lt("Seconds",!1);pe("S",0,0,function(){return~~(this.millisecond()/100)}),pe(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),pe(0,["SSS",3],0,"millisecond"),pe(0,["SSSS",4],0,function(){return this.millisecond()*10}),pe(0,["SSSSS",5],0,function(){return this.millisecond()*100}),pe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),pe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),pe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),pe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Le("millisecond","ms"),St("millisecond",16),be("S",rn,ot),be("SS",rn,Et),be("SSS",rn,Ht);var Jc,pf;for(Jc="SSSS";Jc.length<=9;Jc+="S")be(Jc,rr);function hn(te,Me){Me[En]=Rt(("0."+te)*1e3)}for(Jc="S";Jc.length<=9;Jc+="S")lt(Jc,hn);pf=Lt("Milliseconds",!1),pe("z",0,0,"zoneAbbr"),pe("zz",0,0,"zoneName");function dn(){return this._isUTC?"UTC":""}function tr(){return this._isUTC?"Coordinated Universal Time":""}var Mn=L.prototype;Mn.add=Ml,Mn.calendar=ff,Mn.clone=Df,Mn.diff=Gd,Mn.endOf=ul,Mn.format=Sp,Mn.from=tp,Mn.fromNow=Rp,Mn.to=df,Mn.toNow=uf,Mn.get=tt,Mn.invalidAt=la,Mn.isAfter=Ff,Mn.isBefore=Kf,Mn.isBetween=xf,Mn.isSame=Sc,Mn.isSameOrAfter=Wu,Mn.isSameOrBefore=Du,Mn.isValid=dr,Mn.lang=Wn,Mn.locale=Af,Mn.localeData=ca,Mn.max=Tc,Mn.min=fc,Mn.parsingFlags=Xr,Mn.set=de,Mn.startOf=el,Mn.subtract=yc,Mn.toArray=Gs,Mn.toObject=$s,Mn.toDate=Zs,Mn.toISOString=$c,Mn.inspect=Yl,typeof Symbol!="undefined"&&Symbol.for!=null&&(Mn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Mn.toJSON=Qn,Mn.toString=Vp,Mn.unix=lo,Mn.valueOf=Xo,Mn.creationData=Ra,Mn.eraName=Oi,Mn.eraNarrow=Fo,Mn.eraAbbr=as,Mn.eraYear=Fs,Mn.year=Pi,Mn.isLeapYear=rs,Mn.weekYear=Sa,Mn.isoWeekYear=Hi,Mn.quarter=Mn.quarters=cc,Mn.month=Ur,Mn.daysInMonth=Zr,Mn.week=Mn.weeks=Fi,Mn.isoWeek=Mn.isoWeeks=Xa,Mn.weeksInYear=Dl,Mn.weeksInWeekYear=Xc,Mn.isoWeeksInYear=Co,Mn.isoWeeksInISOWeekYear=Ds,Mn.date=Hu,Mn.day=Mn.days=nn,Mn.weekday=sn,Mn.isoWeekday=Ot,Mn.dayOfYear=dc,Mn.hour=Mn.hours=Mo,Mn.minute=Mn.minutes=iu,Mn.second=Mn.seconds=Gc,Mn.millisecond=Mn.milliseconds=pf,Mn.utcOffset=If,Mn.utc=Te,Mn.local=_t,Mn.parseZone=Vn,Mn.hasAlignedHourOffset=br,Mn.isDST=tn,Mn.isLocal=on,Mn.isUtcOffset=_n,Mn.isUtc=ir,Mn.isUTC=ir,Mn.zoneAbbr=dn,Mn.zoneName=tr,Mn.dates=G("dates accessor is deprecated. Use date instead.",Hu),Mn.months=G("months accessor is deprecated. Use month instead",Ur),Mn.years=G("years accessor is deprecated. Use year instead",Pi),Mn.zone=G("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",$f),Mn.isDSTShifted=G("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Pt);function Lr(te){return ws(te*1e3)}function sa(){return ws.apply(null,arguments).parseZone()}function Ma(te){return te}var Ia=ue.prototype;Ia.calendar=ce,Ia.longDateFormat=Qe,Ia.invalidDate=et,Ia.ordinal=Ge,Ia.preparse=Ma,Ia.postformat=Ma,Ia.relativeTime=Vt,Ia.pastFuture=gt,Ia.set=ne,Ia.eras=_i,Ia.erasParse=ui,Ia.erasConvertYear=ho,Ia.erasAbbrRegex=tl,Ia.erasNameRegex=Fr,Ia.erasNarrowRegex=Js,Ia.months=$t,Ia.monthsShort=wn,Ia.monthsParse=Or,Ia.monthsRegex=ba,Ia.monthsShortRegex=Kr,Ia.week=ta,Ia.firstDayOfYear=Ua,Ia.firstDayOfWeek=Qa,Ia.weekdays=Os,Ia.weekdaysMin=Ar,Ia.weekdaysShort=vl,Ia.weekdaysParse=Sr,Ia.weekdaysRegex=gr,Ia.weekdaysShortRegex=Gr,Ia.weekdaysMinRegex=Ln,Ia.isPM=Li,Ia.meridiem=Za;function Ja(te,Me,ft,Nt){var xn=xl(),Yr=p().set(Nt,Me);return xn[ft](Yr,te)}function pi(te,Me,ft){if(v(te)&&(Me=te,te=void 0),te=te||"",Me!=null)return Ja(te,Me,ft,"month");var Nt,xn=[];for(Nt=0;Nt<12;Nt++)xn[Nt]=Ja(te,Nt,ft,"month");return xn}function fo(te,Me,ft,Nt){typeof te=="boolean"?(v(Me)&&(ft=Me,Me=void 0),Me=Me||""):(Me=te,ft=Me,te=!1,v(Me)&&(ft=Me,Me=void 0),Me=Me||"");var xn=xl(),Yr=te?xn._week.dow:0,qa,Es=[];if(ft!=null)return Ja(Me,(ft+Yr)%7,Nt,"day");for(qa=0;qa<7;qa++)Es[qa]=Ja(Me,(qa+Yr)%7,Nt,"day");return Es}function us(te,Me){return pi(te,Me,"months")}function xo(te,Me){return pi(te,Me,"monthsShort")}function Qo(te,Me,ft){return fo(te,Me,ft,"weekdays")}function gs(te,Me,ft){return fo(te,Me,ft,"weekdaysShort")}function ds(te,Me,ft){return fo(te,Me,ft,"weekdaysMin")}Ys("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(Me){var ft=Me%10,Nt=Rt(Me%100/10)===1?"th":ft===1?"st":ft===2?"nd":ft===3?"rd":"th";return Me+Nt}}),g.lang=G("moment.lang is deprecated. Use moment.locale instead.",Ys),g.langData=G("moment.langData is deprecated. Use moment.localeData instead.",xl);var nl=Math.abs;function nc(){var te=this._data;return this._milliseconds=nl(this._milliseconds),this._days=nl(this._days),this._months=nl(this._months),te.milliseconds=nl(te.milliseconds),te.seconds=nl(te.seconds),te.minutes=nl(te.minutes),te.hours=nl(te.hours),te.months=nl(te.months),te.years=nl(te.years),this}function Kl(te,Me,ft,Nt){var xn=oi(Me,ft);return te._milliseconds+=Nt*xn._milliseconds,te._days+=Nt*xn._days,te._months+=Nt*xn._months,te._bubble()}function mu(te,Me){return Kl(this,te,Me,1)}function xc(te,Me){return Kl(this,te,Me,-1)}function Ll(te){return te<0?Math.floor(te):Math.ceil(te)}function wc(){var te=this._milliseconds,Me=this._days,ft=this._months,Nt=this._data,xn,Yr,qa,Es,Qs;return te>=0&&Me>=0&&ft>=0||te<=0&&Me<=0&&ft<=0||(te+=Ll(_u(ft)+Me)*864e5,Me=0,ft=0),Nt.milliseconds=te%1e3,xn=Yt(te/1e3),Nt.seconds=xn%60,Yr=Yt(xn/60),Nt.minutes=Yr%60,qa=Yt(Yr/60),Nt.hours=qa%24,Me+=Yt(qa/24),Qs=Yt(Xu(Me)),ft+=Qs,Me-=Ll(_u(Qs)),Es=Yt(ft/12),ft%=12,Nt.days=Me,Nt.months=ft,Nt.years=Es,this}function Xu(te){return te*4800/146097}function _u(te){return te*146097/4800}function wu(te){if(!this.isValid())return NaN;var Me,ft,Nt=this._milliseconds;if(te=ct(te),te==="month"||te==="quarter"||te==="year")switch(Me=this._days+Nt/864e5,ft=this._months+Xu(Me),te){case"month":return ft;case"quarter":return ft/3;case"year":return ft/12}else switch(Me=this._days+Math.round(_u(this._months)),te){case"week":return Me/7+Nt/6048e5;case"day":return Me+Nt/864e5;case"hour":return Me*24+Nt/36e5;case"minute":return Me*1440+Nt/6e4;case"second":return Me*86400+Nt/1e3;case"millisecond":return Math.floor(Me*864e5)+Nt;default:throw new Error("Unknown unit "+te)}}function fu(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Rt(this._months/12)*31536e6:NaN}function Kc(te){return function(){return this.as(te)}}var td=Kc("ms"),Ic=Kc("s"),tu=Kc("m"),jf=Kc("h"),Tu=Kc("d"),Ed=Kc("w"),vd=Kc("M"),Gu=Kc("Q"),Op=Kc("y");function np(){return oi(this)}function $d(te){return te=ct(te),this.isValid()?this[te+"s"]():NaN}function hd(te){return function(){return this.isValid()?this._data[te]:NaN}}var Ip=hd("milliseconds"),dd=hd("seconds"),cr=hd("minutes"),un=hd("hours"),Jn=hd("days"),Xn=hd("months"),Vr=hd("years");function Zn(){return Yt(this.days()/7)}var pa=Math.round,Ha={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function gi(te,Me,ft,Nt,xn){return xn.relativeTime(Me||1,!!ft,te,Nt)}function co(te,Me,ft,Nt){var xn=oi(te).abs(),Yr=pa(xn.as("s")),qa=pa(xn.as("m")),Es=pa(xn.as("h")),Qs=pa(xn.as("d")),Hl=pa(xn.as("M")),Lc=pa(xn.as("w")),Pu=pa(xn.as("y")),Yf=Yr<=ft.ss&&["s",Yr]||Yr<ft.s&&["ss",Yr]||qa<=1&&["m"]||qa<ft.m&&["mm",qa]||Es<=1&&["h"]||Es<ft.h&&["hh",Es]||Qs<=1&&["d"]||Qs<ft.d&&["dd",Qs];return ft.w!=null&&(Yf=Yf||Lc<=1&&["w"]||Lc<ft.w&&["ww",Lc]),Yf=Yf||Hl<=1&&["M"]||Hl<ft.M&&["MM",Hl]||Pu<=1&&["y"]||["yy",Pu],Yf[2]=Me,Yf[3]=+te>0,Yf[4]=Nt,gi.apply(null,Yf)}function No(te){return te===void 0?pa:typeof te=="function"?(pa=te,!0):!1}function Ko(te,Me){return Ha[te]===void 0?!1:Me===void 0?Ha[te]:(Ha[te]=Me,te==="s"&&(Ha.ss=Me-1),!0)}function Jo(te,Me){if(!this.isValid())return this.localeData().invalidDate();var ft=!1,Nt=Ha,xn,Yr;return typeof te=="object"&&(Me=te,te=!1),typeof te=="boolean"&&(ft=te),typeof Me=="object"&&(Nt=Object.assign({},Ha,Me),Me.s!=null&&Me.ss==null&&(Nt.ss=Me.s-1)),xn=this.localeData(),Yr=co(this,!ft,Nt,xn),ft&&(Yr=xn.pastFuture(+this,Yr)),xn.postformat(Yr)}var gl=Math.abs;function js(te){return(te>0)-(te<0)||+te}function Zl(){if(!this.isValid())return this.localeData().invalidDate();var te=gl(this._milliseconds)/1e3,Me=gl(this._days),ft=gl(this._months),Nt,xn,Yr,qa,Es=this.asSeconds(),Qs,Hl,Lc,Pu;return Es?(Nt=Yt(te/60),xn=Yt(Nt/60),te%=60,Nt%=60,Yr=Yt(ft/12),ft%=12,qa=te?te.toFixed(3).replace(/\.?0+$/,""):"",Qs=Es<0?"-":"",Hl=js(this._months)!==js(Es)?"-":"",Lc=js(this._days)!==js(Es)?"-":"",Pu=js(this._milliseconds)!==js(Es)?"-":"",Qs+"P"+(Yr?Hl+Yr+"Y":"")+(ft?Hl+ft+"M":"")+(Me?Lc+Me+"D":"")+(xn||Nt||te?"T":"")+(xn?Pu+xn+"H":"")+(Nt?Pu+Nt+"M":"")+(te?Pu+qa+"S":"")):"P0D"}var ko=Cu.prototype;ko.isValid=cf,ko.abs=nc,ko.add=mu,ko.subtract=xc,ko.as=wu,ko.asMilliseconds=td,ko.asSeconds=Ic,ko.asMinutes=tu,ko.asHours=jf,ko.asDays=Tu,ko.asWeeks=Ed,ko.asMonths=vd,ko.asQuarters=Gu,ko.asYears=Op,ko.valueOf=fu,ko._bubble=wc,ko.clone=np,ko.get=$d,ko.milliseconds=Ip,ko.seconds=dd,ko.minutes=cr,ko.hours=un,ko.days=Jn,ko.weeks=Zn,ko.months=Xn,ko.years=Vr,ko.humanize=Jo,ko.toISOString=Zl,ko.toString=Zl,ko.toJSON=Zl,ko.locale=Af,ko.localeData=ca,ko.toIsoString=G("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zl),ko.lang=Wn,pe("X",0,0,"unix"),pe("x",0,0,"valueOf"),be("x",nt),be("X",ut),lt("X",function(te,Me,ft){ft._d=new Date(parseFloat(te)*1e3)}),lt("x",function(te,Me,ft){ft._d=new Date(Rt(te))});//! moment.js
|
||
return g.version="2.29.4",A(ws),g.fn=Mn,g.min=lu,g.max=hu,g.now=of,g.utc=p,g.unix=Lr,g.months=us,g.isDate=h,g.locale=Ys,g.invalid=D,g.duration=oi,g.isMoment=V,g.weekdays=Qo,g.parseZone=sa,g.localeData=xl,g.isDuration=rf,g.monthsShort=xo,g.weekdaysMin=ds,g.defineLocale=hl,g.updateLocale=Rs,g.locales=Wl,g.weekdaysShort=gs,g.normalizeUnits=ct,g.relativeTimeRounding=No,g.relativeTimeThreshold=Ko,g.calendarFormat=Ms,g.prototype=Mn,g.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},g})},51277:function(oe,N,o){"use strict";o.r(N),o.d(N,{blue:function(){return ne},cyan:function(){return re},geekblue:function(){return Q},generate:function(){return F},gold:function(){return V},green:function(){return K},grey:function(){return Ee},lime:function(){return z},magenta:function(){return he},orange:function(){return $},presetDarkPalettes:function(){return W},presetPalettes:function(){return Z},presetPrimaryColors:function(){return D},purple:function(){return ue},red:function(){return U},volcano:function(){return L},yellow:function(){return G}});var x=o(78145),g=o(76780),A=2,y=.16,M=.05,w=.05,m=.15,b=5,v=4,h=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function d(ce){var ve=ce.r,fe=ce.g,we=ce.b,me=(0,x.py)(ve,fe,we);return{h:me.h*360,s:me.s,v:me.v}}function _(ce){var ve=ce.r,fe=ce.g,we=ce.b;return"#".concat((0,x.vq)(ve,fe,we,!1))}function p(ce,ve,fe){var we=fe/100,me={r:(ve.r-ce.r)*we+ce.r,g:(ve.g-ce.g)*we+ce.g,b:(ve.b-ce.b)*we+ce.b};return me}function S(ce,ve,fe){var we;return Math.round(ce.h)>=60&&Math.round(ce.h)<=240?we=fe?Math.round(ce.h)-A*ve:Math.round(ce.h)+A*ve:we=fe?Math.round(ce.h)+A*ve:Math.round(ce.h)-A*ve,we<0?we+=360:we>=360&&(we-=360),we}function k(ce,ve,fe){if(ce.h===0&&ce.s===0)return ce.s;var we;return fe?we=ce.s-y*ve:ve===v?we=ce.s+y:we=ce.s+M*ve,we>1&&(we=1),fe&&ve===b&&we>.1&&(we=.1),we<.06&&(we=.06),Number(we.toFixed(2))}function O(ce,ve,fe){var we;return fe?we=ce.v+w*ve:we=ce.v-m*ve,we>1&&(we=1),Number(we.toFixed(2))}function F(ce){for(var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=[],we=(0,g.uA)(ce),me=b;me>0;me-=1){var Pe=d(we),pe=_((0,g.uA)({h:S(Pe,me,!0),s:k(Pe,me,!0),v:O(Pe,me,!0)}));fe.push(pe)}fe.push(_(we));for(var Ie=1;Ie<=v;Ie+=1){var Je=d(we),ke=_((0,g.uA)({h:S(Je,Ie),s:k(Je,Ie),v:O(Je,Ie)}));fe.push(ke)}return ve.theme==="dark"?h.map(function(De){var Fe=De.index,Qe=De.opacity,qe=_(p((0,g.uA)(ve.backgroundColor||"#141414"),(0,g.uA)(fe[Fe]),Qe*100));return qe}):fe}var D={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Z={},W={};Object.keys(D).forEach(function(ce){Z[ce]=F(D[ce]),Z[ce].primary=Z[ce][5],W[ce]=F(D[ce],{theme:"dark",backgroundColor:"#141414"}),W[ce].primary=W[ce][5]});var U=Z.red,L=Z.volcano,V=Z.gold,$=Z.orange,G=Z.yellow,z=Z.lime,K=Z.green,re=Z.cyan,ne=Z.blue,Q=Z.geekblue,ue=Z.purple,he=Z.magenta,Ee=Z.grey},57611:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=o;function o(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},6979:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=o;function o(x,g){if(!x)return!1;if(x.contains)return x.contains(g);for(var A=g;A;){if(A===x)return!0;A=A.parentNode}return!1}},20756:function(oe,N,o){"use strict";var x=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.clearContainerCache=O,N.injectCSS=_,N.removeCSS=S,N.updateCSS=F;var g=x(o(57611)),A=x(o(6979)),y="data-rc-order",M="data-rc-priority",w="rc-util-key",m=new Map;function b(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Z=D.mark;return Z?Z.startsWith("data-")?Z:"data-".concat(Z):w}function v(D){if(D.attachTo)return D.attachTo;var Z=document.querySelector("head");return Z||document.body}function h(D){return D==="queue"?"prependQueue":D?"prepend":"append"}function d(D){return Array.from((m.get(D)||D).children).filter(function(Z){return Z.tagName==="STYLE"})}function _(D){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,g.default)())return null;var W=Z.csp,U=Z.prepend,L=Z.priority,V=L===void 0?0:L,$=h(U),G=$==="prependQueue",z=document.createElement("style");z.setAttribute(y,$),G&&V&&z.setAttribute(M,"".concat(V)),W!=null&&W.nonce&&(z.nonce=W==null?void 0:W.nonce),z.innerHTML=D;var K=v(Z),re=K.firstChild;if(U){if(G){var ne=d(K).filter(function(Q){if(!["prepend","prependQueue"].includes(Q.getAttribute(y)))return!1;var ue=Number(Q.getAttribute(M)||0);return V>=ue});if(ne.length)return K.insertBefore(z,ne[ne.length-1].nextSibling),z}K.insertBefore(z,re)}else K.appendChild(z);return z}function p(D){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=v(Z);return d(W).find(function(U){return U.getAttribute(b(Z))===D})}function S(D){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=p(D,Z);if(W){var U=v(Z);U.removeChild(W)}}function k(D,Z){var W=m.get(D);if(!W||!(0,A.default)(document,W)){var U=_("",Z),L=U.parentNode;m.set(D,L),D.removeChild(U)}}function O(){m.clear()}function F(D,Z){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},U=v(W);k(U,W);var L=p(Z,W);if(L){var V,$;if((V=W.csp)!==null&&V!==void 0&&V.nonce&&L.nonce!==(($=W.csp)===null||$===void 0?void 0:$.nonce)){var G;L.nonce=(G=W.csp)===null||G===void 0?void 0:G.nonce}return L.innerHTML!==D&&(L.innerHTML=D),L}var z=_(D,W);return z.setAttribute(b(W),Z),z}},62829:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.call=w,N.default=void 0,N.note=y,N.noteOnce=b,N.preMessage=void 0,N.resetWarned=M,N.warning=A,N.warningOnce=m;var o={},x=[],g=function(d){x.push(d)};N.preMessage=g;function A(h,d){if(!1)var _}function y(h,d){if(!1)var _}function M(){o={}}function w(h,d,_){!d&&!o[_]&&(h(!1,_),o[_]=!0)}function m(h,d){w(A,h,d)}function b(h,d){w(y,h,d)}m.preMessage=g,m.resetWarned=M,m.noteOnce=b;var v=m;N.default=v},14082:function(oe,N,o){"use strict";o.d(N,{Z:function(){return rt}});var x=o(28991),g=o(85893),A=o(84786),y=o(13649),M=o(96156),w=o(90484),m=o(28481),b=o(35635),v=o(23799),h=o(81253),d=o(86178),_=o(49570),p=o(43929),S=o(64370),k=o(35510),O=o.n(k),F=o(3305),D=o(67294),Z=o(54323);function W(tt){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ot=[];return D.Children.forEach(tt,function(Et){Et==null&&!de.keepEmpty||(Array.isArray(Et)?ot=ot.concat(W(Et)):(0,Z.isFragment)(Et)&&Et.props?ot=ot.concat(W(Et.props.children,de)):ot.push(Et))}),ot}var U={},L=[],V=function(de){L.push(de)};function $(tt,de){if(!1)var ot}function G(tt,de){if(!1)var ot}function z(){U={}}function K(tt,de,ot){!de&&!U[ot]&&(tt(!1,ot),U[ot]=!0)}function re(tt,de){K($,tt,de)}function ne(tt,de){K(G,tt,de)}re.preMessage=V,re.resetWarned=z,re.noteOnce=ne;var Q=null,ue=o(7391),he=["tab","children"],Ee=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function ce(tt){return tt.filter(function(de){return de})}function ve(tt,de,ot){if(tt)return tt.map(function(Ht){return(0,x.Z)((0,x.Z)({},Ht),{},{children:(0,g.jsx)(fn,(0,x.Z)((0,x.Z)({},ot==null?void 0:ot.cardProps),{},{children:Ht.children}))})});ne(!ot,"Tabs.TabPane is deprecated. Please use `items` directly.");var Et=W(de).map(function(Ht){if(D.isValidElement(Ht)){var Jt=Ht.key,Qt=Ht.props,an=Qt||{},Un=an.tab,qt=an.children,rn=(0,h.Z)(an,he),cn=(0,x.Z)((0,x.Z)({key:String(Jt)},rn),{},{children:(0,g.jsx)(fn,(0,x.Z)((0,x.Z)({},ot==null?void 0:ot.cardProps),{},{children:qt})),label:Un});return cn}return null});return ce(Et)}var fe=function(de){var ot=de.key,Et=de.tab,Ht=de.tabKey,Jt=de.disabled,Qt=de.destroyInactiveTabPane,an=de.children,Un=de.className,qt=de.style,rn=de.cardProps,cn=(0,h.Z)(de,Ee),er=(0,D.useContext)(v.ZP.ConfigContext),rr=er.getPrefixCls,nt=rr("pro-card-tabpane"),lr=O()(nt,Un);return(0,g.jsx)(y.Z.TabPane,(0,x.Z)((0,x.Z)({tabKey:Ht,tab:Et,className:lr,style:qt,disabled:Jt,destroyInactiveTabPane:Qt},cn),{},{children:(0,g.jsx)(fn,(0,x.Z)((0,x.Z)({},rn),{},{children:an}))}),ot)},we=fe;function me(tt){var de=D.useRef();de.current=tt;var ot=D.useCallback(function(){for(var Et,Ht=arguments.length,Jt=new Array(Ht),Qt=0;Qt<Ht;Qt++)Jt[Qt]=arguments[Qt];return(Et=de.current)===null||Et===void 0?void 0:Et.call.apply(Et,[de].concat(Jt))},[]);return ot}function Pe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var pe=Pe()?D.useLayoutEffect:D.useEffect,Ie=function(de,ot){var Et=D.useRef(!0);pe(function(){return de(Et.current)},ot),pe(function(){return Et.current=!1,function(){Et.current=!0}},[])},Je=function(de,ot){Ie(function(Et){if(!Et)return de()},ot)},ke=null;function De(tt){var de=D.useRef(!1),ot=D.useState(tt),Et=(0,m.Z)(ot,2),Ht=Et[0],Jt=Et[1];D.useEffect(function(){return de.current=!1,function(){de.current=!0}},[]);function Qt(an,Un){Un&&de.current||Jt(an)}return[Ht,Qt]}function Fe(tt){return tt!==void 0}function Qe(tt,de){var ot=de||{},Et=ot.defaultValue,Ht=ot.value,Jt=ot.onChange,Qt=ot.postState,an=De(function(){return Fe(Ht)?Ht:Fe(Et)?typeof Et=="function"?Et():Et:typeof tt=="function"?tt():tt}),Un=(0,m.Z)(an,2),qt=Un[0],rn=Un[1],cn=Ht!==void 0?Ht:qt,er=Qt?Qt(cn):cn,rr=me(Jt),nt=De([cn]),lr=(0,m.Z)(nt,2),Hn=lr[0],ut=lr[1];Je(function(){var We=Hn[0];qt!==We&&rr(qt,We)},[Hn]),Je(function(){Fe(Ht)||rn(Ht)},[Ht]);var bt=me(function(We,be){rn(We,be),ut([cn],be)});return[er,bt]}var qe=o(57084),et=function(de){var ot=de.actions,Et=de.prefixCls;return Array.isArray(ot)&&(ot==null?void 0:ot.length)?(0,g.jsx)("ul",{className:"".concat(Et,"-actions"),children:ot.map(function(Ht,Jt){return(0,g.jsx)("li",{style:{width:"".concat(100/ot.length,"%")},children:(0,g.jsx)("span",{children:Ht})},"action-".concat(Jt))})}):ot?(0,g.jsx)("ul",{className:"".concat(Et,"-actions"),children:ot}):null},dt=et,Ke=o(52222),Ge=o(65507),wt=o(5317),Vt=o(87555),gt=o(16152),it=function(de){var ot=de.style,Et=de.prefix;return(0,g.jsxs)("div",{className:"".concat(Et,"-loading-content"),style:ot,children:[(0,g.jsx)(Vt.Z,{gutter:8,children:(0,g.jsx)(Ge.Z,{span:22,children:(0,g.jsx)("div",{className:"".concat(Et,"-loading-block")})})}),(0,g.jsxs)(Vt.Z,{gutter:8,children:[(0,g.jsx)(Ge.Z,{span:8,children:(0,g.jsx)("div",{className:"".concat(Et,"-loading-block")})}),(0,g.jsx)(Ge.Z,{span:15,children:(0,g.jsx)("div",{className:"".concat(Et,"-loading-block")})})]}),(0,g.jsxs)(Vt.Z,{gutter:8,children:[(0,g.jsx)(Ge.Z,{span:6,children:(0,g.jsx)("div",{className:"".concat(Et,"-loading-block")})}),(0,g.jsx)(Ge.Z,{span:18,children:(0,g.jsx)("div",{className:"".concat(Et,"-loading-block")})})]}),(0,g.jsxs)(Vt.Z,{gutter:8,children:[(0,g.jsx)(Ge.Z,{span:13,children:(0,g.jsx)("div",{className:"".concat(Et,"-loading-block")})}),(0,g.jsx)(Ge.Z,{span:9,children:(0,g.jsx)("div",{className:"".concat(Et,"-loading-block")})})]}),(0,g.jsxs)(Vt.Z,{gutter:8,children:[(0,g.jsx)(Ge.Z,{span:4,children:(0,g.jsx)("div",{className:"".concat(Et,"-loading-block")})}),(0,g.jsx)(Ge.Z,{span:3,children:(0,g.jsx)("div",{className:"".concat(Et,"-loading-block")})}),(0,g.jsx)(Ge.Z,{span:16,children:(0,g.jsx)("div",{className:"".concat(Et,"-loading-block")})})]})]})},Le=it,ct=o(98305),at=["className","style","bodyStyle","headStyle","title","subTitle","extra","tip","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],jt=_.ZP.useBreakpoint,St=D.forwardRef(function(tt,de){var ot,Et,Ht,Jt=tt.className,Qt=tt.style,an=tt.bodyStyle,Un=an===void 0?{}:an,qt=tt.headStyle,rn=qt===void 0?{}:qt,cn=tt.title,er=tt.subTitle,rr=tt.extra,nt=tt.tip,lr=tt.wrap,Hn=lr===void 0?!1:lr,ut=tt.layout,bt=tt.loading,We=tt.gutter,be=We===void 0?0:We,Ae=tt.tooltip,Ue=tt.split,$e=tt.headerBordered,kt=$e===void 0?!1:$e,lt=tt.bordered,vt=lt===void 0?!1:lt,Ct=tt.children,Bt=tt.size,mt=tt.actions,Zt=tt.ghost,zt=Zt===void 0?!1:Zt,ln=tt.hoverable,An=ln===void 0?!1:ln,En=tt.direction,Gn=tt.collapsed,Bn=tt.collapsible,pr=Bn===void 0?!1:Bn,_r=tt.collapsibleIconRender,na=tt.defaultCollapsed,$n=na===void 0?!1:na,qr=tt.onCollapse,Jr=tt.checked,Aa=tt.onChecked,ya=tt.tabs,$t=tt.type,wn=(0,h.Z)(tt,at),Fn=(0,D.useContext)(v.ZP.ConfigContext),Or=Fn.getPrefixCls,vr=jt(),Ur=Qe($n,{value:Gn,onChange:qr}),Zr=(0,m.Z)(Ur,2),Kr=Zr[0],ba=Zr[1],Ri=["xxl","xl","lg","md","sm","xs"],Ea=ve(ya==null?void 0:ya.items,Ct,ya),Pi=function(ei){var Do=[0,0],yo=Array.isArray(ei)?ei:[ei,0];return yo.forEach(function(to,fs){if((0,w.Z)(to)==="object")for(var cs=0;cs<Ri.length;cs+=1){var Os=Ri[cs];if(vr[Os]&&to[Os]!==void 0){Do[fs]=to[Os];break}}else Do[fs]=to||0}),Do},rs=function(ei,Do){return ei?Do:{}},Ui=function(ei){var Do=ei;if((0,w.Z)(ei)==="object")for(var yo=0;yo<Ri.length;yo+=1){var to=Ri[yo];if(vr[to]&&ei[to]!==void 0){Do=ei[to];break}}var fs=rs(typeof Do=="string"&&/\d%|\dpx/i.test(Do),{width:Do,flexShrink:0});return{span:Do,colSpanStyle:fs}},Cn=Or("pro-card"),Kn=Pi(be),Pn=(0,m.Z)(Kn,2),At=Pn[0],ar=Pn[1],ta=!1,Yn=D.Children.toArray(Ct),Qa=Yn.map(function(ja,ei){var Do;if(ja==null||(Do=ja.type)===null||Do===void 0?void 0:Do.isProCard){var yo;ta=!0;var to=ja.props.colSpan,fs=Ui(to),cs=fs.span,Os=fs.colSpanStyle,vl=O()(["".concat(Cn,"-col")],(yo={},(0,M.Z)(yo,"".concat(Cn,"-split-vertical"),Ue==="vertical"&&ei!==Yn.length-1),(0,M.Z)(yo,"".concat(Cn,"-split-horizontal"),Ue==="horizontal"&&ei!==Yn.length-1),(0,M.Z)(yo,"".concat(Cn,"-col-").concat(cs),typeof cs=="number"&&cs>=0&&cs<=24),yo));return(0,g.jsx)("div",{style:(0,x.Z)((0,x.Z)((0,x.Z)({},Os),rs(At>0,{paddingRight:At/2,paddingLeft:At/2})),rs(ar>0,{paddingTop:ar/2,paddingBottom:ar/2})),className:vl,children:D.cloneElement(ja)},"pro-card-col-".concat((ja==null?void 0:ja.key)||ei))}return ja}),Ua=O()("".concat(Cn),Jt,(ot={},(0,M.Z)(ot,"".concat(Cn,"-border"),vt),(0,M.Z)(ot,"".concat(Cn,"-contain-card"),ta),(0,M.Z)(ot,"".concat(Cn,"-loading"),bt),(0,M.Z)(ot,"".concat(Cn,"-split"),Ue==="vertical"||Ue==="horizontal"),(0,M.Z)(ot,"".concat(Cn,"-ghost"),zt),(0,M.Z)(ot,"".concat(Cn,"-hoverable"),An),(0,M.Z)(ot,"".concat(Cn,"-size-").concat(Bt),Bt),(0,M.Z)(ot,"".concat(Cn,"-type-").concat($t),$t),(0,M.Z)(ot,"".concat(Cn,"-collapse"),Kr),(0,M.Z)(ot,"".concat(Cn,"-checked"),Jr),ot)),Fi=O()("".concat(Cn,"-body"),(Et={},(0,M.Z)(Et,"".concat(Cn,"-body-center"),ut==="center"),(0,M.Z)(Et,"".concat(Cn,"-body-direction-column"),Ue==="horizontal"||En==="column"),(0,M.Z)(Et,"".concat(Cn,"-body-wrap"),Hn&&ta),Et)),Xa=(0,x.Z)((0,x.Z)((0,x.Z)({},rs(At>0,{marginRight:-At/2,marginLeft:-At/2})),rs(ar>0,{marginTop:-ar/2,marginBottom:-ar/2})),Un),$i=D.isValidElement(bt)?bt:(0,g.jsx)(Le,{prefix:Cn,style:Un.padding===0||Un.padding==="0px"?{padding:24}:void 0}),La=pr&&Gn===void 0&&(_r?_r({collapsed:Kr}):(0,g.jsx)(p.Z,{rotate:Kr?void 0:90,className:"".concat(Cn,"-collapsible-icon")}));return(0,g.jsxs)("div",(0,x.Z)((0,x.Z)({className:Ua,style:Qt,ref:de,onClick:function(ei){var Do;Aa==null||Aa(ei),wn==null||(Do=wn.onClick)===null||Do===void 0||Do.call(wn,ei)}},(0,F.Z)(wn,["prefixCls","colSpan"])),{},{children:[(cn||rr||La)&&(0,g.jsxs)("div",{className:O()("".concat(Cn,"-header"),(Ht={},(0,M.Z)(Ht,"".concat(Cn,"-header-border"),kt||$t==="inner"),(0,M.Z)(Ht,"".concat(Cn,"-header-collapsible"),La),Ht)),style:rn,onClick:function(){La&&ba(!Kr)},children:[(0,g.jsxs)("div",{className:"".concat(Cn,"-title"),children:[La,(0,g.jsx)(S.Z,{label:cn,tooltip:Ae||nt,subTitle:er})]}),rr&&(0,g.jsx)("div",{className:"".concat(Cn,"-extra"),children:rr})]}),ya?(0,g.jsx)("div",{className:"".concat(Cn,"-tabs"),children:(0,g.jsx)(y.Z,(0,x.Z)((0,x.Z)({onChange:ya.onChange},ya),{},{items:Ea,children:bt?$i:Ct}))}):(0,g.jsx)("div",{className:Fi,style:Xa,children:bt?$i:Qa}),(0,g.jsx)(dt,{actions:mt,prefixCls:Cn})]}))}),fn=St,Xt=o(99509),Yt=function(de){var ot=(0,D.useContext)(v.ZP.ConfigContext),Et=ot.getPrefixCls,Ht=Et("pro-card-divider"),Jt=de.className,Qt=de.style,an=Qt===void 0?{}:Qt,Un=de.type,qt=O()(Ht,Jt,(0,M.Z)({},"".concat(Ht,"-").concat(Un),Un));return(0,g.jsx)("div",{className:qt,style:an})},Rt=Yt,Lt=function(de){return(0,g.jsx)(fn,(0,x.Z)({bodyStyle:{padding:0}},de))},ze=fn;ze.isProCard=!0,ze.Divider=Rt,ze.TabPane=we,ze.Group=Lt;var rt=ze},23937:function(oe,N,o){"use strict";var x=o(14082);N.ZP=x.Z},50400:function(oe,N,o){"use strict";o.d(N,{I:function(){return fn}});var x=o(58210),g=o(87240),A=o(28481),y=o(96156),M=o(28991),w=o(55507),m=o(92137),b=o(35635),v=o(23799),h=o(67604),d=o(72285),_=o(81253),p=o(85893),S=o(51756),k=o(67294),O=o(76568),F=0;function D(Xt){var Yt=(0,k.useState)(function(){return Xt.proFieldKey?Xt.proFieldKey.toString():(F+=1,F.toString())}),Rt=(0,A.Z)(Yt,1),Lt=Rt[0],ze=(0,k.useRef)(Lt),rt=function(){var Et=(0,m.Z)((0,w.Z)().mark(function Ht(){var Jt,Qt;return(0,w.Z)().wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:return Un.next=2,(Jt=Xt.request)===null||Jt===void 0?void 0:Jt.call(Xt,Xt.params,Xt);case 2:return Qt=Un.sent,Un.abrupt("return",Qt);case 4:case"end":return Un.stop()}},Ht)}));return function(){return Et.apply(this,arguments)}}();(0,k.useEffect)(function(){return function(){F+=1}},[]);var tt=(0,O.ZP)([ze.current,Xt.params],rt,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),de=tt.data,ot=tt.error;return[de||ot]}var Z=D,W=o(85061),U=o(90484),L=o(14527),V=o(89539),$=o(49272),G=o(68450);function z(Xt){return(0,U.Z)(Xt)!=="object"?!1:Xt===null?!0:!(k.isValidElement(Xt)||Xt.constructor===RegExp||Xt instanceof Map||Xt instanceof Set||Xt instanceof HTMLElement||Xt instanceof Blob||Xt instanceof File||Array.isArray(Xt))}var K=function(Yt,Rt){var Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,ze=Object.keys(Rt).reduce(function(de,ot){var Et=Rt[ot];return(0,$.Z)(Et)||(de[ot]=Et),de},{});if(Object.keys(ze).length<1||typeof window=="undefined"||(0,U.Z)(Yt)!=="object"||(0,$.Z)(Yt)||Yt instanceof Blob)return Yt;var rt=Array.isArray(Yt)?[]:{},tt=function de(ot,Et){var Ht=Array.isArray(ot),Jt=Ht?[]:{};return ot==null||ot===void 0?Jt:(Object.keys(ot).forEach(function(Qt){var an=Et?[Et,Qt].flat(1):[Qt].flat(1),Un=ot[Qt],qt=(0,L.Z)(ze,an),rn=function rr(nt){return Array.isArray(nt)&&nt.forEach(function(lr,Hn){!lr||(typeof lr=="function"&&(Un[Hn]=lr(Un,Qt,ot)),(0,U.Z)(lr)==="object"&&!Array.isArray(lr)&&Object.keys(lr).forEach(function(ut){if(typeof lr[ut]=="function"){var bt=lr[ut](ot[Qt][Hn][ut],Qt,ot);Un[Hn][ut]=(0,U.Z)(bt)==="object"?bt[ut]:bt}}),(0,U.Z)(lr)==="object"&&Array.isArray(lr)&&rr(lr))}),Qt},cn=function(){var nt=typeof qt=="function"?qt==null?void 0:qt(Un,Qt,ot):rn(qt);if(Array.isArray(nt)){Jt=(0,V.Z)(Jt,nt,Un);return}(0,U.Z)(nt)==="object"&&!Array.isArray(rt)?rt=(0,M.Z)((0,M.Z)({},rt),nt):(0,U.Z)(nt)==="object"&&Array.isArray(rt)?Jt=(0,M.Z)((0,M.Z)({},Jt),nt):nt&&(Jt=(0,V.Z)(Jt,[nt],Un))};if(qt&&typeof qt=="function"&&cn(),typeof window!="undefined"){if(z(Un)){var er=de(Un,an);if(Object.keys(er).length<1)return;Jt=(0,V.Z)(Jt,[Qt],er);return}cn()}}),Lt?Jt:ot)};return rt=Array.isArray(Yt)&&Array.isArray(rt)?(0,W.Z)(tt(Yt)):(0,G.T)({},tt(Yt),rt),rt},re=K,ne=o(24863),Q=o(52003),ue=o(33219),he=o(45861),Ee=o(88264),ce=o(69270),ve=o(63746),fe=o(8800),we=function(){return we=Object.assign||function(Xt){for(var Yt,Rt=1,Lt=arguments.length;Rt<Lt;Rt++){Yt=arguments[Rt];for(var ze in Yt)Object.prototype.hasOwnProperty.call(Yt,ze)&&(Xt[ze]=Yt[ze])}return Xt},we.apply(this,arguments)};function me(Xt){var Yt,Rt=(typeof window!="undefined"?window:{}).URL,Lt=new Rt((Yt=window==null?void 0:window.location)===null||Yt===void 0?void 0:Yt.href);return Object.keys(Xt).forEach(function(ze){var rt=Xt[ze];rt!=null?Array.isArray(rt)?(Lt.searchParams.delete(ze),rt.forEach(function(tt){Lt.searchParams.append(ze,tt)})):rt instanceof Date?Number.isNaN(rt.getTime())||Lt.searchParams.set(ze,rt.toISOString()):typeof rt=="object"?Lt.searchParams.set(ze,JSON.stringify(rt)):Lt.searchParams.set(ze,rt):Lt.searchParams.delete(ze)}),Lt}function Pe(Xt,Yt){var Rt;Xt===void 0&&(Xt={}),Yt===void 0&&(Yt={disabled:!1});var Lt=(0,k.useState)(),ze=Lt[1],rt=typeof window!="undefined"&&((Rt=window==null?void 0:window.location)===null||Rt===void 0?void 0:Rt.search),tt=(0,k.useMemo)(function(){return Yt.disabled?{}:new URLSearchParams(rt||{})},[Yt.disabled,rt]),de=(0,k.useMemo)(function(){if(Yt.disabled)return{};if(typeof window=="undefined"||!window.URL)return{};var Ht=[];tt.forEach(function(Qt,an){Ht.push({key:an,value:Qt})}),Ht=Ht.reduce(function(Qt,an){return(Qt[an.key]=Qt[an.key]||[]).push(an),Qt},{}),Ht=Object.keys(Ht).map(function(Qt){var an=Ht[Qt];return an.length===1?[Qt,an[0].value]:[Qt,an.map(function(Un){var qt=Un.value;return qt})]});var Jt=we({},Xt);return Ht.forEach(function(Qt){var an=Qt[0],Un=Qt[1];Jt[an]=Ie(an,Un,{},Xt)}),Jt},[Yt.disabled,Xt,tt]);function ot(Ht){if(!(typeof window=="undefined"||!window.URL)){var Jt=me(Ht);window.location.search!==Jt.search&&window.history.replaceState({},"",Jt.toString()),tt.toString()!==Jt.searchParams.toString()&&ze({})}}(0,k.useEffect)(function(){Yt.disabled||typeof window=="undefined"||!window.URL||ot(we(we({},Xt),de))},[Yt.disabled,de]);var Et=function(Jt){ot(Jt)};return(0,k.useEffect)(function(){if(Yt.disabled)return function(){};if(typeof window=="undefined"||!window.URL)return function(){};var Ht=function(){ze({})};return window.addEventListener("popstate",Ht),function(){window.removeEventListener("popstate",Ht)}},[Yt.disabled]),[de,Et]}var pe={true:!0,false:!1};function Ie(Xt,Yt,Rt,Lt){if(!Rt)return Yt;var ze=Rt[Xt],rt=Yt===void 0?Lt[Xt]:Yt;return ze===Number?Number(rt):ze===Boolean||Yt==="true"||Yt==="false"?pe[rt]:Array.isArray(ze)?ze.find(function(tt){return tt==rt})||Lt[Xt]:rt}var Je=o(3305),ke=o(34970),De=o(93789),Fe=o(86862),Qe=o(25324),qe=o(45733),et=o(13753),dt=o(48429),Ke=function(Yt){var Rt=(0,S.YB)(),Lt=d.Z.useFormInstance();if(Yt.render===!1)return null;var ze=Yt.onSubmit,rt=Yt.render,tt=Yt.onReset,de=Yt.searchConfig,ot=de===void 0?{}:de,Et=Yt.submitButtonProps,Ht=Yt.resetButtonProps,Jt=Ht===void 0?{}:Ht,Qt=function(){Lt.submit(),ze==null||ze()},an=function(){Lt.resetFields(),tt==null||tt()},Un=ot.submitText,qt=Un===void 0?Rt.getMessage("tableForm.submit","\u63D0\u4EA4"):Un,rn=ot.resetText,cn=rn===void 0?Rt.getMessage("tableForm.reset","\u91CD\u7F6E"):rn,er=[];Jt!==!1&&er.push((0,k.createElement)(dt.Z,(0,M.Z)((0,M.Z)({},(0,Je.Z)(Jt,["preventDefault"])),{},{key:"rest",onClick:function(lr){var Hn;(Jt==null?void 0:Jt.preventDefault)||an(),Jt==null||(Hn=Jt.onClick)===null||Hn===void 0||Hn.call(Jt,lr)}}),cn)),Et!==!1&&er.push((0,k.createElement)(dt.Z,(0,M.Z)((0,M.Z)({type:"primary"},(0,Je.Z)(Et||{},["preventDefault"])),{},{key:"submit",onClick:function(lr){var Hn;(Et==null?void 0:Et.preventDefault)||Qt(),Et==null||(Hn=Et.onClick)===null||Hn===void 0||Hn.call(Et,lr)}}),qt));var rr=rt?rt((0,M.Z)((0,M.Z)({},Yt),{},{form:Lt,submit:Qt,reset:an}),er):er;return rr?Array.isArray(rr)?(rr==null?void 0:rr.length)<1?null:(rr==null?void 0:rr.length)===1?rr[0]:(0,p.jsx)(qe.Z,{wrap:!0,children:rr}):rr:null},Ge=Ke,wt=o(43107),Vt=o(13592),gt=o(47260),it=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],Le=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly"],ct=function(Yt,Rt,Lt){return Yt===!0?Rt:(0,ne.h)(Yt,Rt,Lt)},at=function(Yt){return!Yt||Array.isArray(Yt)?Yt:[Yt]};function jt(Xt){var Yt=Xt.children,Rt=Xt.contentRender,Lt=Xt.submitter,ze=Xt.fieldProps,rt=Xt.formItemProps,tt=Xt.groupProps,de=Xt.transformKey,ot=Xt.formRef,Et=Xt.onInit,Ht=Xt.form,Jt=Xt.loading,Qt=Xt.formComponentType,an=Xt.extraUrlParams,Un=an===void 0?{}:an,qt=Xt.syncToUrl,rn=Xt.onUrlSearchChange,cn=Xt.onReset,er=Xt.omitNil,rr=er===void 0?!0:er,nt=Xt.isKeyPressSubmit,lr=Xt.autoFocusFirstInput,Hn=lr===void 0?!0:lr,ut=Xt.grid,bt=Xt.rowProps,We=Xt.colProps,be=(0,_.Z)(Xt,it),Ae=d.Z.useFormInstance(),Ue=(0,k.useContext)(v.ZP.SizeContext),$e=(0,k.useRef)(Ht||Ae),kt=(0,Vt.zx)({grid:ut,rowProps:bt}),lt=kt.RowWrapper,vt=(0,Q.J)(function(){return Ae}),Ct=(0,k.useMemo)(function(){return{getFieldsFormatValue:function(En){var Gn;return de((Gn=vt())===null||Gn===void 0?void 0:Gn.getFieldsValue(En),rr)},getFieldFormatValue:function(){var En,Gn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Bn=at(Gn);if(!Bn)throw new Error("nameList is require");var pr=(En=vt())===null||En===void 0?void 0:En.getFieldValue(Bn),_r=Bn?(0,De.Z)({},Bn,pr):pr;return(0,ke.Z)(de(_r,rr,Bn),Bn)},getFieldFormatValueObject:function(En){var Gn,Bn=at(En),pr=(Gn=vt())===null||Gn===void 0?void 0:Gn.getFieldValue(Bn),_r=Bn?(0,De.Z)({},Bn,pr):pr;return de(_r,rr,Bn)},validateFieldsReturnFormatValue:function(){var An=(0,m.Z)((0,w.Z)().mark(function Gn(Bn){var pr,_r,na;return(0,w.Z)().wrap(function(qr){for(;;)switch(qr.prev=qr.next){case 0:if(!(!Array.isArray(Bn)&&Bn)){qr.next=2;break}throw new Error("nameList must be array");case 2:return qr.next=4,(pr=vt())===null||pr===void 0?void 0:pr.validateFields(Bn);case 4:return _r=qr.sent,na=de(_r,rr),qr.abrupt("return",na||{});case 7:case"end":return qr.stop()}},Gn)}));function En(Gn){return An.apply(this,arguments)}return En}(),formRef:$e}},[rr,de]),Bt=(0,k.useMemo)(function(){return k.Children.toArray(Yt).map(function(An,En){return En===0&&k.isValidElement(An)&&Hn?k.cloneElement(An,(0,M.Z)((0,M.Z)({},An.props),{},{autoFocus:Hn})):An})},[Hn,Yt]),mt=(0,k.useMemo)(function(){return typeof Lt=="boolean"||!Lt?{}:Lt},[Lt]);(0,k.useImperativeHandle)(ot,function(){return(0,M.Z)((0,M.Z)({},Ae),Ct)},[Ct,Ae]);var Zt=(0,k.useMemo)(function(){if(Lt!==!1)return(0,p.jsx)(Ge,(0,M.Z)((0,M.Z)({},mt),{},{onReset:function(){var En,Gn,Bn=de((En=$e.current)===null||En===void 0?void 0:En.getFieldsValue(),rr);if(mt==null||(Gn=mt.onReset)===null||Gn===void 0||Gn.call(mt,Bn),cn==null||cn(Bn),qt){var pr,_r=Object.keys(de((pr=$e.current)===null||pr===void 0?void 0:pr.getFieldsValue(),!1)).reduce(function(na,$n){return(0,M.Z)((0,M.Z)({},na),{},(0,y.Z)({},$n,Bn[$n]||void 0))},Un);rn(ct(qt,_r,"set"))}},submitButtonProps:(0,M.Z)({loading:Jt},mt.submitButtonProps)}),"submitter")},[Lt,mt,Jt,de,rr,cn,qt,Un,rn]),zt=(0,k.useMemo)(function(){var An=ut?(0,p.jsx)(lt,{children:Bt}):Bt;return Rt?Rt(An,Zt,$e.current):An},[ut,lt,Bt,Rt,Zt]),ln=(0,ue.Z)(Xt.initialValues);return(0,k.useEffect)(function(){if(!(qt||!Xt.initialValues||!ln||be.request)){var An=(0,he.Z)(Xt.initialValues,ln);(0,Fe.ET)(An,"initialValues \u53EA\u5728 form \u521D\u59CB\u5316\u65F6\u751F\u6548\uFF0C\u5982\u679C\u4F60\u9700\u8981\u5F02\u6B65\u52A0\u8F7D\u63A8\u8350\u4F7F\u7528 request\uFF0C\u6216\u8005 initialValues ? <Form/> : null "),(0,Fe.ET)(An,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? <Form/> : null ")}},[Xt.initialValues]),(0,k.useEffect)(function(){var An,En,Gn=de((An=$e.current)===null||An===void 0||(En=An.getFieldsValue)===null||En===void 0?void 0:En.call(An,!0),rr);Et==null||Et(Gn,$e.current)},[]),(0,p.jsx)(Ee.Z.Provider,{value:Ct,children:(0,p.jsx)(v.ZP.SizeContext.Provider,{value:be.size||Ue,children:(0,p.jsxs)(Vt._p.Provider,{value:{grid:ut,colProps:We},children:[be.component!==!1&&(0,p.jsx)("input",{type:"text",style:{display:"none"}}),zt]})})})}var St=0;function fn(Xt){var Yt=Xt.extraUrlParams,Rt=Yt===void 0?{}:Yt,Lt=Xt.syncToUrl,ze=Xt.isKeyPressSubmit,rt=Xt.syncToUrlAsImportant,tt=rt===void 0?!1:rt,de=Xt.syncToInitialValues,ot=de===void 0?!0:de,Et=Xt.children,Ht=Xt.contentRender,Jt=Xt.submitter,Qt=Xt.fieldProps,an=Xt.formItemProps,Un=Xt.groupProps,qt=Xt.dateFormatter,rn=qt===void 0?"string":qt,cn=Xt.formRef,er=Xt.onInit,rr=Xt.form,nt=Xt.formComponentType,lr=Xt.onReset,Hn=Xt.grid,ut=Xt.rowProps,bt=Xt.colProps,We=Xt.omitNil,be=We===void 0?!0:We,Ae=Xt.request,Ue=Xt.params,$e=Xt.initialValues,kt=Xt.formKey,lt=kt===void 0?St:kt,vt=Xt.readonly,Ct=(0,_.Z)(Xt,Le),Bt=(0,k.useRef)({}),mt=(0,ce.Z)(!1),Zt=(0,A.Z)(mt,2),zt=Zt[0],ln=Zt[1],An=Pe({},{disabled:!Lt}),En=(0,A.Z)(An,2),Gn=En[0],Bn=En[1],pr=(0,k.useRef)((0,ve.x)());(0,k.useEffect)(function(){St+=0},[]);var _r=Z({request:Ae,params:Ue,proFieldKey:lt}),na=(0,A.Z)(_r,1),$n=na[0],qr=(0,k.useState)(function(){return Lt?ct(Lt,Gn,"get"):{}}),Jr=(0,A.Z)(qr,2),Aa=Jr[0],ya=Jr[1],$t=(0,k.useRef)({}),wn=(0,k.useRef)({}),Fn=(0,k.useCallback)(function(Ur,Zr,Kr){return re((0,fe.ZP)(Ur,rn,wn.current,Zr,Kr),$t.current,Zr)},[rn]);(0,k.useEffect)(function(){ot||ya({})},[ot]),(0,k.useEffect)(function(){!Lt||Bn((0,M.Z)((0,M.Z)({},Gn),Rt))},[Rt,Lt]);var Or=(0,k.useMemo)(function(){if(typeof window!="undefined"&&nt&&["DrawerForm"].includes(nt))return function(Ur){return Ur.parentNode||document.body}},[nt]),vr=(0,Q.J)((0,m.Z)((0,w.Z)().mark(function Ur(){var Zr,Kr,ba,Ri,Ea,Pi;return(0,w.Z)().wrap(function(Ui){for(;;)switch(Ui.prev=Ui.next){case 0:if(Ct.onFinish){Ui.next=2;break}return Ui.abrupt("return");case 2:if(!zt){Ui.next=4;break}return Ui.abrupt("return");case 4:return ln(!0),Ui.prev=5,ba=Bt==null||(Zr=Bt.current)===null||Zr===void 0||(Kr=Zr.getFieldsFormatValue)===null||Kr===void 0?void 0:Kr.call(Zr),Ui.next=9,Ct.onFinish(ba);case 9:Lt&&(Pi=Object.keys(Bt==null||(Ri=Bt.current)===null||Ri===void 0||(Ea=Ri.getFieldsFormatValue)===null||Ea===void 0?void 0:Ea.call(Ri,void 0,!1)).reduce(function(Cn,Kn){var Pn;return(0,M.Z)((0,M.Z)({},Cn),{},(0,y.Z)({},Kn,(Pn=ba[Kn])!==null&&Pn!==void 0?Pn:void 0))},Rt),Object.keys(Gn).forEach(function(Cn){Pi[Cn]!==!1&&Pi[Cn]!==0&&!Pi[Cn]&&(Pi[Cn]=void 0)}),Bn(ct(Lt,Pi,"set"))),ln(!1),Ui.next=16;break;case 13:Ui.prev=13,Ui.t0=Ui.catch(5),ln(!1);case 16:case"end":return Ui.stop()}},Ur,null,[[5,13]])})));return(0,k.useImperativeHandle)(cn,function(){return Bt.current},[!$n]),!$n&&Xt.request?(0,p.jsx)("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:(0,p.jsx)(g.Z,{})}):(0,p.jsx)(gt.A.Provider,{value:{mode:Xt.readonly?"read":"edit"},children:(0,p.jsx)(S.oK,{children:(0,p.jsx)(wt.Z.Provider,{value:{formRef:Bt,fieldProps:Qt,formItemProps:an,groupProps:Un,formComponentType:nt,getPopupContainer:Or,formKey:pr.current,setFieldValueType:function(Zr,Kr){var ba=Kr.valueType,Ri=ba===void 0?"text":ba,Ea=Kr.dateFormat,Pi=Kr.transform;!Array.isArray(Zr)||($t.current=(0,De.Z)($t.current,Zr,Pi),wn.current=(0,De.Z)(wn.current,Zr,{valueType:Ri,dateFormat:Ea}))}},children:(0,p.jsx)(d.Z,(0,M.Z)((0,M.Z)({onKeyPress:function(Zr){if(!!ze&&Zr.key==="Enter"){var Kr;(Kr=Bt.current)===null||Kr===void 0||Kr.submit()}},autoComplete:"off",form:rr},(0,Je.Z)(Ct,["autoFocusFirstInput"])),{},{initialValues:tt?(0,M.Z)((0,M.Z)((0,M.Z)({},$n),$e),Aa):(0,M.Z)((0,M.Z)((0,M.Z)({},Aa),$n),$e),onValuesChange:function(Zr,Kr){var ba;Ct==null||(ba=Ct.onValuesChange)===null||ba===void 0||ba.call(Ct,Fn(Zr,!!be),Fn(Kr,!!be))},onFinish:vr,children:(0,p.jsx)(jt,(0,M.Z)((0,M.Z)({transformKey:Fn,autoComplete:"off",loading:zt,onUrlSearchChange:Bn},Xt),{},{formRef:Bt,initialValues:(0,M.Z)((0,M.Z)({},$e),$n)}))}))})})})}},47260:function(oe,N,o){"use strict";o.d(N,{A:function(){return g}});var x=o(67294),g=x.createContext({mode:"edit"})},43107:function(oe,N,o){"use strict";o.d(N,{z:function(){return g}});var x=o(67294),g=x.createContext({});N.Z=g},56112:function(oe,N,o){"use strict";var x=o(28991),g=o(67604),A=o(72285),y=o(81253),M=o(85893),w=o(88264),m=o(45861),b=o(68450),v=o(34970),h=o(93789),d=o(67294),_=o(29059),p=["name","children","ignoreFormListField"],S=function(O){var F=O.name,D=O.children,Z=O.ignoreFormListField,W=(0,y.Z)(O,p),U=(0,d.useContext)(w.Z),L=(0,d.useContext)(_.J),V=(0,d.useMemo)(function(){return F.map(function($){var G,z=[$];return!Z&&L.name!==void 0&&((G=L.listName)===null||G===void 0?void 0:G.length)&&z.unshift(L.listName),z.flat(1)})},[L.listName,L.name,Z,F]);return(0,M.jsx)(A.Z.Item,(0,x.Z)((0,x.Z)({},W),{},{noStyle:!0,shouldUpdate:function(G,z,K){if(typeof W.shouldUpdate=="boolean")return W.shouldUpdate;if(typeof W.shouldUpdate=="function"){var re;return(re=W.shouldUpdate)===null||re===void 0?void 0:re.call(W,G,z,K)}return V.some(function(ne){return!(0,m.Z)((0,v.Z)(G,ne),(0,v.Z)(z,ne))})},children:function(G){for(var z={},K=0;K<F.length;K++){var re,ne=V[K],Q=F[K],ue=[Q].flat(1),he=(re=U.getFieldFormatValueObject)===null||re===void 0?void 0:re.call(U,ne);if(he&&Object.keys(he).length)z=(0,b.T)({},z,he),(0,v.Z)(he,ne)&&(z=(0,h.Z)(z,ue,(0,v.Z)(he,ne),!1));else{var Ee;he=(Ee=G.getFieldValue)===null||Ee===void 0?void 0:Ee.call(G,ne),typeof he!="undefined"&&(z=(0,h.Z)(z,ue,he,!1))}}return D==null?void 0:D(z,(0,x.Z)((0,x.Z)({},G),U))}}))};N.Z=S},77181:function(oe,N,o){"use strict";o.d(N,{Z:function(){return we}});var x=o(35635),g=o(23799),A=o(67604),y=o(72285),M=o(96156),w=o(28991),m=o(81253),b=o(67294),v=o(85893),h=function(Pe){var pe=!1;return(typeof Pe=="string"&&Pe.startsWith("date")&&!Pe.endsWith("Range")||Pe==="select"||Pe==="time")&&(pe=!0),pe},d=h,_=o(78904),p=o(28481),S=o(69270),k=o(56051),O=o.n(k),F=function(Pe,pe){return typeof pe=="function"?pe(O()(Pe)):O()(Pe).format(pe)},D=function(Pe,pe){var Ie=Array.isArray(Pe)?Pe:[],Je=(0,p.Z)(Ie,2),ke=Je[0],De=Je[1],Fe,Qe;Array.isArray(pe)?(Fe=pe[0],Qe=pe[1]):(Fe=pe,Qe=pe);var qe=ke?F(ke,Fe):"",et=De?F(De,Qe):"",dt=qe&&et?"".concat(qe," ~ ").concat(et):"";return dt},Z=D,W=o(8800),U=o(15049),L=o(55502),V=o(35510),$=o.n(V),G=o(11913),z=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],K=function(Pe){var pe,Ie=Pe.label,Je=Pe.size,ke=Pe.disabled,De=Pe.onChange,Fe=Pe.className,Qe=Pe.style,qe=Pe.children,et=Pe.valuePropName,dt=Pe.placeholder,Ke=Pe.labelFormatter,Ge=Pe.bordered,wt=Pe.footerRender,Vt=Pe.allowClear,gt=Pe.otherFieldProps,it=Pe.valueType,Le=Pe.placement,ct=(0,m.Z)(Pe,z),at=(0,b.useContext)(g.ZP.ConfigContext),jt=at.getPrefixCls,St=jt("pro-field-light-wrapper"),fn=(0,b.useState)(Pe[et]),Xt=(0,p.Z)(fn,2),Yt=Xt[0],Rt=Xt[1],Lt=(0,S.Z)(!1),ze=(0,p.Z)(Lt,2),rt=ze[0],tt=ze[1],de=function(){for(var Jt,Qt=arguments.length,an=new Array(Qt),Un=0;Un<Qt;Un++)an[Un]=arguments[Un];gt==null||(Jt=gt.onChange)===null||Jt===void 0||Jt.call.apply(Jt,[gt].concat(an)),De==null||De.apply(void 0,an)},ot=Pe[et],Et=(0,b.useMemo)(function(){var Ht;return(it==null||(Ht=it.toLowerCase())===null||Ht===void 0?void 0:Ht.endsWith("range"))&&!Ke?Z(ot,W.Cl[it]||"YYYY-MM-DD"):ot},[ot,it,Ke]);return(0,v.jsx)(U.Z,{disabled:ke,onVisibleChange:tt,placement:Le,visible:rt,label:(0,v.jsx)(L.Z,{ellipsis:!0,size:Je,onClear:function(){de==null||de(),Rt(void 0)},bordered:Ge,style:Qe,className:Fe,label:Ie,placeholder:dt,value:Et,disabled:ke,expanded:rt,formatter:Ke,allowClear:Vt}),footer:{onClear:function(){return Rt(void 0)},onConfirm:function(){de==null||de(Yt),tt(!1)}},footerRender:wt,children:(0,v.jsx)("div",{className:$()("".concat(St,"-container"),Fe),style:Qe,children:b.cloneElement(qe,(0,w.Z)((0,w.Z)({},ct),{},(pe={},(0,M.Z)(pe,et,Yt),(0,M.Z)(pe,"onChange",function(Jt){Rt((Jt==null?void 0:Jt.target)?Jt.target.value:Jt)}),pe),qe.props))})})},re=o(43107),ne=o(29059),Q=["children","onChange","onBlur","ignoreFormItem","valuePropName"],ue=["children","addonAfter","addonBefore","valuePropName","convertValue"],he=["valueType","transform","dataFormat","ignoreFormItem","lightProps","children"],Ee=b.createContext({}),ce=function(Pe){var pe=Pe.children,Ie=Pe.onChange,Je=Pe.onBlur,ke=Pe.ignoreFormItem,De=Pe.valuePropName,Fe=De===void 0?"value":De,Qe=(0,m.Z)(Pe,Q),qe=(0,b.useCallback)(function(){for(var Ge,wt,Vt,gt,it,Le,ct=arguments.length,at=new Array(ct),jt=0;jt<ct;jt++)at[jt]=arguments[jt];Ie==null||Ie.apply(void 0,at),(pe==null||(Ge=pe.type)===null||Ge===void 0?void 0:Ge.displayName)==="ProFormComponent"&&(!b.isValidElement(pe)||(pe==null||(wt=pe.props)===null||wt===void 0||(Vt=wt.onChange)===null||Vt===void 0||Vt.call.apply(Vt,[wt].concat(at)),pe==null||(gt=pe.props)===null||gt===void 0||(it=gt.fieldProps)===null||it===void 0||(Le=it.onChange)===null||Le===void 0||Le.call.apply(Le,[it].concat(at))))},[pe,Ie]),et=(0,b.useCallback)(function(){var Ge,wt,Vt,gt,it,Le;if((pe==null||(Ge=pe.type)===null||Ge===void 0?void 0:Ge.displayName)==="ProFormComponent"&&!!b.isValidElement(pe)){for(var ct=arguments.length,at=new Array(ct),jt=0;jt<ct;jt++)at[jt]=arguments[jt];Je==null||Je.apply(void 0,at),pe==null||(wt=pe.props)===null||wt===void 0||(Vt=wt.onBlur)===null||Vt===void 0||Vt.call.apply(Vt,[wt].concat(at)),pe==null||(gt=pe.props)===null||gt===void 0||(it=gt.fieldProps)===null||it===void 0||(Le=it.onBlur)===null||Le===void 0||Le.call.apply(Le,[it].concat(at))}},[pe,Je]),dt=(0,b.useMemo)(function(){var Ge,wt;if((pe==null||(Ge=pe.type)===null||Ge===void 0?void 0:Ge.displayName)==="ProFormComponent"&&!!b.isValidElement(pe))return(0,_.Z)((0,w.Z)((0,w.Z)((0,M.Z)({id:Qe.id},Fe,Pe[Fe]),(pe==null||(wt=pe.props)===null||wt===void 0?void 0:wt.fieldProps)||{}),{},{onBlur:et,onChange:qe}))},[pe,Pe,et,qe,Qe.id,Fe]),Ke=(0,b.useMemo)(function(){if(!dt&&!!b.isValidElement(pe))return function(){for(var Ge,wt,Vt=arguments.length,gt=new Array(Vt),it=0;it<Vt;it++)gt[it]=arguments[it];Ie==null||Ie.apply(void 0,gt),pe==null||(Ge=pe.props)===null||Ge===void 0||(wt=Ge.onChange)===null||wt===void 0||wt.call.apply(wt,[Ge].concat(gt))}},[dt,pe,Ie]);return b.isValidElement(pe)?b.cloneElement(pe,(0,_.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},Qe),{},(0,M.Z)({},Fe,Pe[Fe]),pe.props),{},{onChange:Ke,fieldProps:dt}))):(0,v.jsx)(v.Fragment,{children:pe})},ve=function(Pe){var pe=Pe.children,Ie=Pe.addonAfter,Je=Pe.addonBefore,ke=Pe.valuePropName,De=Pe.convertValue,Fe=(0,m.Z)(Pe,ue),Qe=(0,b.useMemo)(function(){var qe=function(dt){var Ke,Ge=(Ke=De==null?void 0:De(dt,Fe.name))!==null&&Ke!==void 0?Ke:dt;return Fe.getValueProps?Fe.getValueProps(Ge):(0,M.Z)({},ke||"value",Ge)};return!De&&!Fe.getValueProps&&(qe=void 0),!Ie&&!Je?(0,v.jsx)(y.Z.Item,(0,w.Z)((0,w.Z)({},Fe),{},{valuePropName:ke,getValueProps:qe,children:pe})):(0,v.jsx)(y.Z.Item,(0,w.Z)((0,w.Z)({_internalItemRender:{mark:"pro_table_render",render:function(dt,Ke){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[Je?(0,v.jsx)("div",{style:{marginRight:8},children:Je}):null,Ke.input,Ie?(0,v.jsx)("div",{style:{marginLeft:8},children:Ie}):null]}),Ke.extra,Ke.errorList]})}}},Fe),{},{getValueProps:qe,children:pe}))},[Ie,Je,pe,De==null?void 0:De.toString(),Fe]);return(0,v.jsx)(Ee.Provider,{value:{name:Fe.name,label:Fe.label},children:Qe})},fe=function(Pe){var pe,Ie,Je,ke=(0,b.useContext)(g.ZP.SizeContext),De=Pe.valueType,Fe=Pe.transform,Qe=Pe.dataFormat,qe=Pe.ignoreFormItem,et=Pe.lightProps,dt=et===void 0?{}:et,Ke=Pe.children,Ge=(0,m.Z)(Pe,he),wt=(0,b.useContext)(ne.J),Vt=(0,b.useMemo)(function(){return wt.name!==void 0?[wt.name,Pe.name].flat(1):Pe.name},[wt.name,Pe.name]),gt=b.useContext(re.Z),it=gt.setFieldValueType,Le=gt.formItemProps;(0,b.useEffect)(function(){!it||!Pe.name||it([wt.listName,Pe.name].flat(1).filter(function(Xt){return Xt!==void 0}),{valueType:De||"text",dateFormat:Qe,transform:Fe})},[wt.listName,Vt,Qe,Pe.name,it,Fe,De]);var ct=b.isValidElement(Pe.children)&&d(De||Pe.children.props.valueType),at=(0,b.useMemo)(function(){return!!(!dt.light||dt.customLightMode||ct)},[dt.customLightMode,ct,dt.light]);if(typeof Pe.children=="function"){var jt;return(0,b.createElement)(ve,(0,w.Z)((0,w.Z)({},Ge),{},{name:Vt,key:Ge.proFormFieldKey||((jt=Ge.name)===null||jt===void 0?void 0:jt.toString())}),Pe.children)}var St=(0,v.jsx)(ce,{valuePropName:Pe.valuePropName,children:Pe.children},Ge.proFormFieldKey||((pe=Ge.name)===null||pe===void 0?void 0:pe.toString())),fn=at?St:(0,b.createElement)(K,(0,w.Z)((0,w.Z)({},dt),{},{key:Ge.proFormFieldKey||((Ie=Ge.name)===null||Ie===void 0?void 0:Ie.toString()),size:ke}),St);return qe?(0,v.jsx)(v.Fragment,{children:fn}):(0,v.jsx)(ve,(0,w.Z)((0,w.Z)((0,w.Z)({},Le),Ge),{},{name:Vt,isListField:wt.name!==void 0,children:fn}),Ge.proFormFieldKey||((Je=Ge.name)===null||Je===void 0?void 0:Je.toString()))},we=fe},29059:function(oe,N,o){"use strict";o.d(N,{J:function(){return we},u:function(){return me}});var x=o(67604),g=o(72285),A=o(85061),y=o(28991),M=o(81253),w=o(35635),m=o(23799),b=o(85893),v=o(99165),h=o(73171),d=o(51756),_=o(88264),p=o(86862),S=o(67294),k=o(13592),O=o(76229),F=o(13753),D=o(48429),Z=o(55507),W=o(92137),U=o(28481),L=o(49101),V=o(63746),$=o(24863),G=o(3305),z=o(58210),K=o(87240),re=o(81984),ne=o(95455),Q=o(54487),ue=o(93789),he=["creatorButtonProps","deleteIconProps","copyIconProps","itemContainerRender","itemRender","alwaysShowItemLabel","prefixCls","creatorRecord","action","actionGuard","children","actionRender","fields","meta","field","index","formInstance","originName","min","max","count"],Ee=function(pe){return Array.isArray(pe)?pe:typeof pe=="function"?[pe]:(0,Q.Z)(pe)},ce=function(pe){var Ie,Je=pe.creatorButtonProps,ke=pe.deleteIconProps,De=pe.copyIconProps,Fe=pe.itemContainerRender,Qe=pe.itemRender,qe=pe.alwaysShowItemLabel,et=pe.prefixCls,dt=pe.creatorRecord,Ke=pe.action,Ge=pe.actionGuard,wt=pe.children,Vt=pe.actionRender,gt=pe.fields,it=pe.meta,Le=pe.field,ct=pe.index,at=pe.formInstance,jt=pe.originName,St=pe.min,fn=pe.max,Xt=pe.count,Yt=(0,M.Z)(pe,he),Rt=(0,S.useContext)(we),Lt=(0,S.useRef)(!1),ze=(0,S.useState)(!1),rt=(0,U.Z)(ze,2),tt=rt[0],de=rt[1],ot=(0,S.useState)(!1),Et=(0,U.Z)(ot,2),Ht=Et[0],Jt=Et[1];(0,S.useEffect)(function(){return function(){Lt.current=!0}},[]);var Qt=function(){return at.getFieldValue([Rt.listName,jt,ct==null?void 0:ct.toString()].flat(1).filter(function(be){return be!=null}))},an={getCurrentRowData:Qt,setCurrentRowData:function(be){var Ae,Ue=(at==null||(Ae=at.getFieldsValue)===null||Ae===void 0?void 0:Ae.call(at))||{},$e=[Rt.listName,jt,ct==null?void 0:ct.toString()].flat(1).filter(function(lt){return lt!=null}),kt=(0,ue.Z)(Ue,$e,(0,y.Z)((0,y.Z)({},Qt()),be||{}));return at.setFieldsValue(kt)}},Un=Ee(wt).map(function(We){return typeof We=="function"?We==null?void 0:We(Le,ct,(0,y.Z)((0,y.Z)({},Ke),an),Xt):We}).map(function(We,be){if(S.isValidElement(We)){var Ae;return S.cloneElement(We,(0,y.Z)({key:We.key||(We==null||(Ae=We.props)===null||Ae===void 0?void 0:Ae.name)||be},We==null?void 0:We.props))}return We}),qt=(0,S.useMemo)(function(){if(De===!1||fn===Xt)return null;var We=De.Icon,be=We===void 0?v.Z:We,Ae=De.tooltipText;return(0,b.jsx)(ne.Z,{title:Ae,children:(0,b.jsx)(K.Z,{spinning:Ht,children:(0,b.jsx)(be,{className:"".concat(et,"-action-icon action-copy"),onClick:function(){var Ue=(0,W.Z)((0,Z.Z)().mark(function kt(){return(0,Z.Z)().wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:return Jt(!0),vt.next=3,Ke.add(at==null?void 0:at.getFieldValue([Rt.listName,Yt.name,Le.name].filter(function(Ct){return Ct!==void 0}).flat(1)));case 3:Jt(!1);case 4:case"end":return vt.stop()}},kt)}));function $e(){return Ue.apply(this,arguments)}return $e}()})})},"copy")},[De,fn,Xt,Ht,et,Ke,at,Rt.listName,Yt.name,Le.name]),rn=(0,S.useMemo)(function(){if(ke===!1||St===Xt)return null;var We=ke.Icon,be=We===void 0?h.Z:We,Ae=ke.tooltipText;return(0,b.jsx)(ne.Z,{title:Ae,children:(0,b.jsx)(K.Z,{spinning:tt,children:(0,b.jsx)(be,{className:"".concat(et,"-action-icon action-remove"),onClick:function(){var Ue=(0,W.Z)((0,Z.Z)().mark(function kt(){return(0,Z.Z)().wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:return de(!0),vt.next=3,Ke.remove(Le.name);case 3:Lt.current||de(!1);case 4:case"end":return vt.stop()}},kt)}));function $e(){return Ue.apply(this,arguments)}return $e}()})})},"delete")},[ke,St,Xt,tt,et,de,Ke,Le.name]),cn=(0,S.useMemo)(function(){return[qt,rn].filter(function(We){return We!=null})},[qt,rn]),er=(Vt==null?void 0:Vt(Le,Ke,cn,Xt))||cn,rr=er.length>0?(0,b.jsx)("div",{className:"".concat(et,"-action"),children:er}):null,nt={name:Yt.name,field:Le,index:ct,record:at==null||(Ie=at.getFieldValue)===null||Ie===void 0?void 0:Ie.call(at,[Rt.listName,Yt.name,Le.name].filter(function(We){return We!==void 0}).flat(1)),fields:gt,operation:Ke,meta:it},lr=(0,k.zx)(),Hn=lr.grid,ut=(Fe==null?void 0:Fe(Un,nt))||Un,bt=(Qe==null?void 0:Qe({listDom:(0,b.jsx)("div",{className:"".concat(et,"-container"),style:{width:Hn?"100%":void 0},children:ut}),action:rr},nt))||(0,b.jsxs)("div",{className:"".concat(et,"-item ").concat(qe?"".concat(et,"-item-show-label"):""),style:{display:"flex",alignItems:"flex-end"},children:[(0,b.jsx)("div",{className:"".concat(et,"-container"),style:{width:Hn?"100%":void 0},children:ut}),rr]});return(0,b.jsx)(we.Provider,{value:(0,y.Z)((0,y.Z)({},Le),{},{listName:[Rt.listName,jt,Le.name].filter(function(We){return We!==void 0}).flat(1)}),children:bt})},ve=function(pe){var Ie=(0,d.YB)(),Je=pe.creatorButtonProps,ke=pe.prefixCls,De=pe.children,Fe=pe.creatorRecord,Qe=pe.action,qe=pe.fields,et=pe.actionGuard,dt=pe.max,Ke=pe.fieldExtraRender,Ge=pe.meta,wt=pe.containerClassName,Vt=pe.containerStyle,gt=pe.onAfterAdd,it=pe.onAfterRemove,Le=(0,S.useRef)(new Map),ct=(0,S.useState)(!1),at=(0,U.Z)(ct,2),jt=at[0],St=at[1],fn=(0,S.useMemo)(function(){return qe.map(function(Lt){var ze,rt;if(!((ze=Le.current)===null||ze===void 0?void 0:ze.has(Lt.key.toString()))){var tt;(tt=Le.current)===null||tt===void 0||tt.set(Lt.key.toString(),(0,V.x)())}var de=(rt=Le.current)===null||rt===void 0?void 0:rt.get(Lt.key.toString());return(0,y.Z)((0,y.Z)({},Lt),{},{uuid:de})})},[qe]),Xt=(0,S.useMemo)(function(){var Lt=(0,y.Z)({},Qe),ze=fn.length;return(et==null?void 0:et.beforeAddRow)?Lt.add=(0,W.Z)((0,Z.Z)().mark(function rt(){var tt,de,ot,Et,Ht,Jt=arguments;return(0,Z.Z)().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:for(tt=Jt.length,de=new Array(tt),ot=0;ot<tt;ot++)de[ot]=Jt[ot];return an.next=3,et.beforeAddRow.apply(et,de.concat([ze]));case 3:if(Et=an.sent,!Et){an.next=8;break}return Ht=Qe.add.apply(Qe,de),gt==null||gt.apply(void 0,de.concat([ze+1])),an.abrupt("return",Ht);case 8:return an.abrupt("return",!1);case 9:case"end":return an.stop()}},rt)})):Lt.add=(0,W.Z)((0,Z.Z)().mark(function rt(){var tt,de,ot,Et,Ht=arguments;return(0,Z.Z)().wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:for(tt=Ht.length,de=new Array(tt),ot=0;ot<tt;ot++)de[ot]=Ht[ot];return Et=Qe.add.apply(Qe,de),gt==null||gt.apply(void 0,de.concat([ze+1])),Qt.abrupt("return",Et);case 4:case"end":return Qt.stop()}},rt)})),(et==null?void 0:et.beforeRemoveRow)?Lt.remove=(0,W.Z)((0,Z.Z)().mark(function rt(){var tt,de,ot,Et,Ht,Jt=arguments;return(0,Z.Z)().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:for(tt=Jt.length,de=new Array(tt),ot=0;ot<tt;ot++)de[ot]=Jt[ot];return an.next=3,et.beforeRemoveRow.apply(et,de.concat([ze]));case 3:if(Et=an.sent,!Et){an.next=8;break}return Ht=Qe.remove.apply(Qe,de),it==null||it.apply(void 0,de.concat([ze-1])),an.abrupt("return",Ht);case 8:return an.abrupt("return",!1);case 9:case"end":return an.stop()}},rt)})):Lt.remove=(0,W.Z)((0,Z.Z)().mark(function rt(){var tt,de,ot,Et,Ht=arguments;return(0,Z.Z)().wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:for(tt=Ht.length,de=new Array(tt),ot=0;ot<tt;ot++)de[ot]=Ht[ot];return Et=Qe.remove.apply(Qe,de),it==null||it.apply(void 0,de.concat([ze-1])),Qt.abrupt("return",Et);case 4:case"end":return Qt.stop()}},rt)})),Lt},[Qe,et==null?void 0:et.beforeAddRow,et==null?void 0:et.beforeRemoveRow,gt,it,fn.length]),Yt=(0,S.useMemo)(function(){if(Je===!1||fn.length===dt)return null;var Lt=Je||{},ze=Lt.position,rt=ze===void 0?"bottom":ze,tt=Lt.creatorButtonText,de=tt===void 0?Ie.getMessage("editableTable.action.add","\u6DFB\u52A0\u4E00\u884C\u6570\u636E"):tt;return(0,b.jsx)(D.Z,(0,y.Z)((0,y.Z)({className:"".concat(ke,"-creator-button-").concat(rt),type:"dashed",loading:jt,block:!0,icon:(0,b.jsx)(L.Z,{})},(0,G.Z)(Je||{},["position","creatorButtonText"])),{},{onClick:function(){var ot=(0,W.Z)((0,Z.Z)().mark(function Ht(){var Jt;return(0,Z.Z)().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:return St(!0),Jt=fn.length,rt==="top"&&(Jt=0),an.next=5,Xt.add((0,$.h)(Fe)||{},Jt);case 5:St(!1);case 6:case"end":return an.stop()}},Ht)}));function Et(){return ot.apply(this,arguments)}return Et}(),children:de}))},[Je,fn.length,dt,Ie,ke,jt,Xt,Fe]),Rt=(0,y.Z)({width:"max-content",maxWidth:"100%",minWidth:"100%"},Vt);return(0,b.jsxs)("div",{style:Rt,className:wt,children:[Je!==!1&&(Je==null?void 0:Je.position)==="top"&&Yt,fn.map(function(Lt,ze){return(0,S.createElement)(ce,(0,y.Z)((0,y.Z)({},pe),{},{key:Lt.uuid,field:Lt,index:ze,action:Xt,count:fn.length}),De)}),Ke&&Ke(Xt,Ge),Je!==!1&&(Je==null?void 0:Je.position)!=="top"&&Yt]})},fe=["actionRender","creatorButtonProps","label","alwaysShowItemLabel","tooltip","creatorRecord","itemRender","rules","itemContainerRender","fieldExtraRender","copyIconProps","children","deleteIconProps","actionRef","style","prefixCls","actionGuard","min","max","colProps","rowProps","onAfterAdd","onAfterRemove","isValidateList","emptyListMessage"],we=S.createContext({});function me(Pe){var pe=(0,S.useRef)(),Ie=(0,S.useContext)(m.ZP.ConfigContext),Je=(0,S.useContext)(we),ke=Ie.getPrefixCls("pro-form-list"),De=(0,d.YB)(),Fe=Pe.actionRender,Qe=Pe.creatorButtonProps,qe=Pe.label,et=Pe.alwaysShowItemLabel,dt=Pe.tooltip,Ke=Pe.creatorRecord,Ge=Pe.itemRender,wt=Pe.rules,Vt=Pe.itemContainerRender,gt=Pe.fieldExtraRender,it=Pe.copyIconProps,Le=it===void 0?{Icon:v.Z,tooltipText:De.getMessage("copyThisLine","\u590D\u5236\u6B64\u884C")}:it,ct=Pe.children,at=Pe.deleteIconProps,jt=at===void 0?{Icon:h.Z,tooltipText:De.getMessage("deleteThisLine","\u5220\u9664\u6B64\u884C")}:at,St=Pe.actionRef,fn=Pe.style,Xt=Pe.prefixCls,Yt=Pe.actionGuard,Rt=Pe.min,Lt=Pe.max,ze=Pe.colProps,rt=Pe.rowProps,tt=Pe.onAfterAdd,de=Pe.onAfterRemove,ot=Pe.isValidateList,Et=ot===void 0?!1:ot,Ht=Pe.emptyListMessage,Jt=Ht===void 0?"\u5217\u8868\u4E0D\u80FD\u4E3A\u7A7A":Ht,Qt=(0,M.Z)(Pe,fe),an=(0,k.zx)({colProps:ze,rowProps:rt}),Un=an.ColWrapper,qt=an.RowWrapper,rn=(0,S.useContext)(_.Z),cn=(0,S.useMemo)(function(){return Je.name===void 0?[Qt.name].flat(1):[Je.name,Qt.name].flat(1)},[Je.name,Qt.name]);return(0,S.useImperativeHandle)(St,function(){return(0,y.Z)((0,y.Z)({},pe.current),{},{get:function(rr){return rn.formRef.current.getFieldValue([].concat((0,A.Z)(cn),[rr]))},getList:function(){return rn.formRef.current.getFieldValue((0,A.Z)(cn))}})},[cn,rn.formRef]),(0,S.useEffect)(function(){(0,p.ET)(!!rn.formRef,"ProFormList \u5FC5\u987B\u8981\u653E\u5230 ProForm \u4E2D,\u5426\u5219\u4F1A\u9020\u6210\u884C\u4E3A\u5F02\u5E38\u3002"),(0,p.ET)(!!rn.formRef,"Proformlist must be placed in ProForm, otherwise it will cause abnormal behavior.")},[rn.formRef]),rn.formRef?(0,b.jsx)(Un,{children:(0,b.jsx)("div",{className:ke,style:fn,children:(0,b.jsx)(g.Z.Item,(0,y.Z)((0,y.Z)({label:qe,prefixCls:Xt,tooltip:dt,style:fn},Qt),{},{name:Et?cn:void 0,rules:Et?[{validator:function(rr,nt){return!nt||nt.length===0?Promise.reject(new Error(Jt)):Promise.resolve()},required:!0}]:void 0,children:(0,b.jsx)(g.Z.List,(0,y.Z)((0,y.Z)({rules:wt},Qt),{},{name:cn,children:function(rr,nt,lr){return pe.current=nt,(0,b.jsxs)(qt,{children:[(0,b.jsx)(ve,{name:cn,originName:Qt.name,copyIconProps:Le,deleteIconProps:jt,formInstance:rn.formRef.current,prefixCls:ke,meta:lr,fields:rr,itemContainerRender:Vt,itemRender:Ge,fieldExtraRender:gt,creatorButtonProps:Qe,creatorRecord:Ke,actionRender:Fe,action:nt,actionGuard:Yt,alwaysShowItemLabel:et,min:Rt,max:Lt,count:rr.length,onAfterAdd:function(ut,bt,We){Et&&rn.formRef.current.validateFields([cn]),tt==null||tt(ut,bt,We)},onAfterRemove:function(ut,bt){Et&&bt===0&&rn.formRef.current.validateFields([cn]),de==null||de(ut,bt)},children:ct}),(0,b.jsx)(g.Z.ErrorList,{errors:lr.errors})]})}}))}))})}):null}},13592:function(oe,N,o){"use strict";o.d(N,{_p:function(){return _},zx:function(){return S}});var x=o(90484),g=o(52222),A=o(65507),y=o(28991),M=o(5317),w=o(87555),m=o(81253),b=o(85893),v=o(67294),h=["children","Wrapper"],d=["children","Wrapper"],_=(0,v.createContext)({grid:!1,colProps:void 0,rowProps:void 0}),p=function(O){var F=O.grid,D=O.rowProps,Z=O.colProps;return{grid:!!F,RowWrapper:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=U.children,V=U.Wrapper,$=(0,m.Z)(U,h);return F?(0,b.jsx)(w.Z,(0,y.Z)((0,y.Z)((0,y.Z)({gutter:8},D),$),{},{children:L})):V?(0,b.jsx)(V,{children:L}):L},ColWrapper:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=U.children,V=U.Wrapper,$=(0,m.Z)(U,d),G=(0,v.useMemo)(function(){var z=(0,y.Z)((0,y.Z)({},Z),$);return typeof z.span=="undefined"&&typeof z.xs=="undefined"&&(z.xs=24),z},[$]);return F?(0,b.jsx)(A.Z,(0,y.Z)((0,y.Z)({},G),{},{children:L})):V?(0,b.jsx)(V,{children:L}):L}}},S=function(O){var F=(0,v.useMemo)(function(){return(0,x.Z)(O)==="object"?O:{grid:O}},[O]),D=(0,v.useContext)(_),Z=D.grid,W=D.colProps;return(0,v.useMemo)(function(){return p({grid:!!(Z||F.grid),rowProps:F==null?void 0:F.rowProps,colProps:(F==null?void 0:F.colProps)||W,Wrapper:F==null?void 0:F.Wrapper})},[F==null?void 0:F.Wrapper,F.grid,Z,JSON.stringify([W,F==null?void 0:F.colProps,F==null?void 0:F.rowProps])])}},82241:function(oe,N,o){"use strict";var x=o(56640),g=o.n(x),A=o(79847);N.ZP=A.A},79847:function(oe,N,o){"use strict";o.d(N,{A:function(){return $}});var x=o(67604),g=o(72285),A=o(28991),y=o(85893),M=o(50400),w=o(96156),m=o(25324),b=o(45733),v=o(35635),h=o(23799),d=o(28481),_=o(43929),p=o(69270),S=o(64370),k=o(35510),O=o.n(k),F=o(67294),D=o(43107),Z=o(13592),W=o(96138),U=F.forwardRef(function(G,z){var K=F.useContext(D.Z),re=K.groupProps,ne=(0,A.Z)((0,A.Z)({},re),G),Q=ne.children,ue=ne.collapsible,he=ne.defaultCollapsed,Ee=ne.style,ce=ne.labelLayout,ve=ne.title,fe=ve===void 0?G.label:ve,we=ne.tooltip,me=ne.align,Pe=me===void 0?"start":me,pe=ne.direction,Ie=ne.size,Je=Ie===void 0?32:Ie,ke=ne.titleStyle,De=ne.titleRender,Fe=ne.spaceProps,Qe=ne.extra,qe=ne.autoFocus,et=(0,p.Z)(function(){return he||!1},{value:G.collapsed,onChange:G.onCollapse}),dt=(0,d.Z)(et,2),Ke=dt[0],Ge=dt[1],wt=(0,F.useContext)(h.ZP.ConfigContext),Vt=wt.getPrefixCls,gt=(0,Z.zx)(G),it=gt.ColWrapper,Le=gt.RowWrapper,ct=Vt("pro-form-group"),at=ue&&(0,y.jsx)(_.Z,{style:{marginRight:8},rotate:Ke?void 0:90}),jt=(0,y.jsx)(S.Z,{label:at?(0,y.jsxs)("div",{children:[at,fe]}):fe,tooltip:we}),St=(0,F.useCallback)(function(ze){var rt=ze.children;return(0,y.jsx)(b.Z,(0,A.Z)((0,A.Z)({},Fe),{},{className:O()("".concat(ct,"-container"),Fe==null?void 0:Fe.className),size:Je,align:Pe,direction:pe,style:(0,A.Z)({rowGap:0},Fe==null?void 0:Fe.style),children:rt}))},[Pe,ct,pe,Je,Fe]),fn=De?De(jt,G):jt,Xt=(0,F.useMemo)(function(){var ze=[],rt=F.Children.toArray(Q).map(function(tt,de){var ot;return F.isValidElement(tt)&&(tt==null||(ot=tt.props)===null||ot===void 0?void 0:ot.hidden)?(ze.push(tt),null):de===0&&F.isValidElement(tt)&&qe?F.cloneElement(tt,(0,A.Z)((0,A.Z)({},tt.props),{},{autoFocus:qe})):tt});return[(0,y.jsx)(Le,{Wrapper:St,children:rt},"children"),ze.length>0?(0,y.jsx)("div",{style:{display:"none"},children:ze}):null]},[Q,Le,St,qe]),Yt=(0,d.Z)(Xt,2),Rt=Yt[0],Lt=Yt[1];return(0,y.jsx)(it,{children:(0,y.jsxs)("div",{className:O()(ct,(0,w.Z)({},"".concat(ct,"-twoLine"),ce==="twoLine")),style:Ee,ref:z,children:[Lt,(fe||we||Qe)&&(0,y.jsx)("div",{className:"".concat(ct,"-title"),style:ke,onClick:function(){Ge(!Ke)},children:Qe?(0,y.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[fn,(0,y.jsx)("span",{onClick:function(rt){return rt.stopPropagation()},children:Qe})]}):fn}),ue&&Ke?null:Rt]})})});U.displayName="ProForm-Group";var L=U,V=o(77181);function $(G){return(0,y.jsx)(M.I,(0,A.Z)({layout:"vertical",submitter:{render:function(K,re){return re.reverse()}},contentRender:function(K,re){return(0,y.jsxs)(y.Fragment,{children:[K,re]})}},G))}$.Group=L,$.useForm=g.Z.useForm,$.Item=V.Z,$.useWatch=g.Z.useWatch,$.ErrorList=g.Z.ErrorList,$.Provider=g.Z.Provider,$.useFormInstance=g.Z.useFormInstance},54487:function(oe,N,o){"use strict";o.d(N,{Z:function(){return A}});var x=o(67294),g=o(54323);function A(y){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=[];return x.Children.forEach(y,function(m){m==null&&!M.keepEmpty||(Array.isArray(m)?w=w.concat(A(m)):(0,g.isFragment)(m)&&m.props?w=w.concat(A(m.props.children,M)):w.push(m))}),w}},34970:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g,A){for(var y=g,M=0;M<A.length;M+=1){if(y==null)return;y=y[A[M]]}return y}},93789:function(oe,N,o){"use strict";o.d(N,{Z:function(){return w}});var x=o(28991),g=o(85061),A=o(99809),y=o(34970);function M(d,_,p,S){if(!_.length)return p;var k=(0,A.Z)(_),O=k[0],F=k.slice(1),D;return!d&&typeof O=="number"?D=[]:Array.isArray(d)?D=(0,g.Z)(d):D=(0,x.Z)({},d),S&&p===void 0&&F.length===1?delete D[O][F[0]]:D[O]=M(D[O],F,p,S),D}function w(d,_,p){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return _.length&&S&&p===void 0&&!(0,y.Z)(d,_.slice(0,-1))?d:M(d,_,p,S)}function m(d){return _typeof(d)==="object"&&d!==null&&Object.getPrototypeOf(d)===Object.prototype}function b(d){return Array.isArray(d)?[]:{}}var v=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function h(){for(var d=arguments.length,_=new Array(d),p=0;p<d;p++)_[p]=arguments[p];var S=b(_[0]);return _.forEach(function(k){function O(F,D){var Z=new Set(D),W=get(k,F),U=Array.isArray(W);if(U||m(W)){if(!Z.has(W)){Z.add(W);var L=get(S,F);U?S=w(S,F,[]):(!L||_typeof(L)!=="object")&&(S=w(S,F,b(W))),v(W).forEach(function(V){O([].concat(_toConsumableArray(F),[V]),Z)})}}else S=w(S,F,W)}O([])}),S}},86862:function(oe,N,o){"use strict";o.d(N,{ET:function(){return v}});var x={},g=[],A=function(_){g.push(_)};function y(d,_){if(!1)var p}function M(d,_){if(!1)var p}function w(){x={}}function m(d,_,p){!_&&!x[p]&&(d(!1,p),x[p]=!0)}function b(d,_){m(y,d,_)}function v(d,_){m(M,d,_)}b.preMessage=A,b.resetWarned=w,b.noteOnce=v;var h=null},51756:function(oe,N,o){"use strict";o.d(N,{oK:function(){return Rt},ZP:function(){return rt},Go:function(){return ct},YB:function(){return Lt}});var x=o(35635),g=o(23799),A=o(28991),y=o(11965),M=o(85893),w=o(9364),m=o(67294),b=o(76568),v={moneySymbol:"$",form:{lightFilter:{more:"\u0627\u0644\u0645\u0632\u064A\u062F",clear:"\u0646\u0638\u0641",confirm:"\u062A\u0623\u0643\u064A\u062F",itemUnit:"\u0639\u0646\u0627\u0635\u0631"}},tableForm:{search:"\u0627\u0628\u062D\u062B",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",submit:"\u0627\u0631\u0633\u0627\u0644",collapsed:"\u0645\u064F\u0642\u0644\u0635",expand:"\u0645\u064F\u0648\u0633\u0639",inputPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062F\u062E\u0627\u0644",selectPlaceholder:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u062E\u062A\u064A\u0627\u0631"},alert:{clear:"\u0646\u0638\u0641",selected:"\u0645\u062D\u062F\u062F",item:"\u0639\u0646\u0635\u0631"},pagination:{total:{range:" ",total:"\u0645\u0646",item:"\u0639\u0646\u0627\u0635\u0631"}},tableToolBar:{leftPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightPin:"\u062B\u0628\u062A \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noPin:"\u0627\u0644\u063A\u0627\u0621 \u0627\u0644\u062A\u062B\u0628\u064A\u062A",leftFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631",rightFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",noFixedTitle:"\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0625\u0644\u0635\u0627\u0642",reset:"\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",columnDisplay:"\u0627\u0644\u0623\u0639\u0645\u062F\u0629 \u0627\u0644\u0645\u0639\u0631\u0648\u0636\u0629",columnSetting:"\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A",fullScreen:"\u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",exitFullScreen:"\u0627\u0644\u062E\u0631\u0648\u062C \u0645\u0646 \u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",reload:"\u062A\u062D\u062F\u064A\u062B",density:"\u0627\u0644\u0643\u062B\u0627\u0641\u0629",densityDefault:"\u0627\u0641\u062A\u0631\u0627\u0636\u064A",densityLarger:"\u0623\u0643\u0628\u0631",densityMiddle:"\u0648\u0633\u0637",densitySmall:"\u0645\u062F\u0645\u062C"},stepsForm:{next:"\u0627\u0644\u062A\u0627\u0644\u064A",prev:"\u0627\u0644\u0633\u0627\u0628\u0642",submit:"\u0623\u0646\u0647\u0649"},loginForm:{submitText:"\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644"},editableTable:{action:{save:"\u0623\u0646\u0642\u0630",cancel:"\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0623\u0645\u0631",delete:"\u062D\u0630\u0641",add:"\u0625\u0636\u0627\u0641\u0629 \u0635\u0641 \u0645\u0646 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A"}},switch:{open:"\u0645\u0641\u062A\u0648\u062D",close:"\u063A\u0644\u0642"}},h={moneySymbol:"\u20AC",form:{lightFilter:{more:"M\xE1is",clear:"Limpar",confirm:"Confirmar",itemUnit:"Elementos"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col\xB7lapsar",inputPlaceholder:"Introdu\xEFu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitj\xE0",densitySmall:"Compacte"},stepsForm:{next:"Seg\xFCent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Gardar",cancel:"Cancelar",delete:"Eliminar",add:"engadir unha fila de datos"}},switch:{open:"aberto",close:"pechar"}},d={moneySymbol:"\u20AC",form:{lightFilter:{more:"Mehr",clear:"Zur\xFCcksetzen",confirm:"Best\xE4tigen",itemUnit:"Eintr\xE4ge"}},tableForm:{search:"Suchen",reset:"Zur\xFCcksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte ausw\xE4hlen"},alert:{clear:"Zur\xFCcksetzen",selected:"Ausgew\xE4hlt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Eintr\xE4gen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zur\xFCcksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Gr\xF6\xDFer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"L\xF6schen",add:"Hinzuf\xFCgen einer Datenzeile"}},switch:{open:"offen",close:"schlie\xDFen"}},_={moneySymbol:"\xA3",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},p={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed the left",rightFixedTitle:"Fixed the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},S={moneySymbol:"\u20AC",form:{lightFilter:{more:"M\xE1s",clear:"Limpiar",confirm:"Confirmar",itemUnit:"art\xEDculos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"art\xEDculos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xF3n",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"a\xF1adir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},k={moneySymbol:"\u062A\u0648\u0645\u0627\u0646",form:{lightFilter:{more:"\u0628\u06CC\u0634\u062A\u0631",clear:"\u067E\u0627\u06A9 \u06A9\u0631\u062F\u0646",confirm:"\u062A\u0627\u06CC\u06CC\u062F",itemUnit:"\u0645\u0648\u0631\u062F"}},tableForm:{search:"\u062C\u0633\u062A\u062C\u0648",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",submit:"\u062A\u0627\u06CC\u06CC\u062F",collapsed:"\u0646\u0645\u0627\u06CC\u0634 \u0628\u06CC\u0634\u062A\u0631",expand:"\u0646\u0645\u0627\u06CC\u0634 \u06A9\u0645\u062A\u0631",inputPlaceholder:"\u067E\u06CC\u062F\u0627 \u06A9\u0646\u06CC\u062F",selectPlaceholder:"\u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F"},alert:{clear:"\u067E\u0627\u06A9 \u0633\u0627\u0632\u06CC",selected:"\u0627\u0646\u062A\u062E\u0627\u0628",item:"\u0645\u0648\u0631\u062F"},pagination:{total:{range:" ",total:"\u0627\u0632",item:"\u0645\u0648\u0631\u062F"}},tableToolBar:{leftPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0686\u067E",rightPin:"\u0633\u0646\u062C\u0627\u0642 \u0628\u0647 \u0631\u0627\u0633\u062A",noPin:"\u0633\u0646\u062C\u0627\u0642 \u0646\u0634\u062F\u0647",leftFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0686\u067E",rightFixedTitle:"\u062B\u0627\u0628\u062A \u0634\u062F\u0647 \u062F\u0631 \u0631\u0627\u0633\u062A",noFixedTitle:"\u0634\u0646\u0627\u0648\u0631",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC",columnDisplay:"\u0646\u0645\u0627\u06CC\u0634 \u0647\u0645\u0647",columnSetting:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A",fullScreen:"\u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",exitFullScreen:"\u062E\u0631\u0648\u062C \u0627\u0632 \u062D\u0627\u0644\u062A \u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647",reload:"\u062A\u0627\u0632\u0647 \u0633\u0627\u0632\u06CC",density:"\u062A\u0631\u0627\u06A9\u0645",densityDefault:"\u067E\u06CC\u0634 \u0641\u0631\u0636",densityLarger:"\u0628\u0632\u0631\u06AF",densityMiddle:"\u0645\u062A\u0648\u0633\u0637",densitySmall:"\u06A9\u0648\u0686\u06A9"},stepsForm:{next:"\u0628\u0639\u062F\u06CC",prev:"\u0642\u0628\u0644\u06CC",submit:"\u0627\u062A\u0645\u0627\u0645"},loginForm:{submitText:"\u0648\u0631\u0648\u062F"},editableTable:{action:{save:"\u0630\u062E\u06CC\u0631\u0647",cancel:"\u0644\u063A\u0648",delete:"\u062D\u0630\u0641",add:"\u06CC\u06A9 \u0631\u062F\u06CC\u0641 \u062F\u0627\u062F\u0647 \u0627\u0636\u0627\u0641\u0647 \u06A9\u0646\u06CC\u062F"}},switch:{open:"\u0628\u0627\u0632",close:"\u0646\u0632\u062F\u06CC\u06A9"}},O={moneySymbol:"\u20AC",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"R\xE9initialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"R\xE9duire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"S\xE9lectionner une valeur"},alert:{clear:"R\xE9initialiser",selected:"S\xE9lectionn\xE9",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"\xE9l\xE9ments"}},tableToolBar:{leftPin:"\xC9pingler \xE0 gauche",rightPin:"\xC9pingler \xE0 gauche",noPin:"Sans \xE9pingle",leftFixedTitle:"Fixer \xE0 gauche",rightFixedTitle:"Fixer \xE0 droite",noFixedTitle:"Non fix\xE9",reset:"R\xE9initialiser",columnDisplay:"Affichage colonne",columnSetting:"R\xE9glages",fullScreen:"Plein \xE9cran",exitFullScreen:"Quitter Plein \xE9cran",reload:"Rafraichir",density:"Densit\xE9",densityDefault:"Par d\xE9faut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Pr\xE9c\xE9dente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de donn\xE9es"}},switch:{open:"ouvert",close:"pr\xE8s"}},F={moneySymbol:"kn",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretra\u017Ei",reset:"Poni\u0161ti",submit:"Potvrdi",collapsed:"Ra\u0161iri",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"O\u010Disti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prika\u010Di lijevo",rightPin:"Prika\u010Di desno",noPin:"Bez prika\u010Denja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Iza\u0111i iz punog zaslona",reload:"Ponovno u\u010Ditaj",density:"Veli\u010Dina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljede\u0107i",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obri\u0161i",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},D={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},Z={moneySymbol:"\u20AC",form:{lightFilter:{more:"pi\xF9",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalit\xE0 schermo intero",exitFullScreen:"Esci da modalit\xE0 schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},W={moneySymbol:"\xA5",form:{lightFilter:{more:"\u3082\u3063\u3068",clear:"\u660E\u78BA",confirm:"\u78BA\u8A8D",itemUnit:"\u9805\u76EE"}},tableForm:{search:"\u691C\u7D22",reset:"\u30EA\u30BB\u30C3\u30C8",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u53CE\u7D0D",inputPlaceholder:"\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",selectPlaceholder:"\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},alert:{clear:"\u30AF\u30EA\u30A2",selected:"\u9078\u629E\u3057\u305F",item:"\u9805\u76EE"},pagination:{total:{range:"\u8A18\u4E8B",total:"/\u5408\u8A08",item:" "}},tableToolBar:{leftPin:"\u5DE6\u306B\u56FA\u5B9A",rightPin:"\u53F3\u306B\u56FA\u5B9A",noPin:"\u30AD\u30E3\u30F3\u30BB\u30EB",leftFixedTitle:"\u5DE6\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",rightFixedTitle:"\u53F3\u306B\u56FA\u5B9A\u3055\u308C\u305F\u9805\u76EE",noFixedTitle:"\u56FA\u5B9A\u3055\u308C\u3066\u306A\u3044\u9805\u76EE",reset:"\u30EA\u30BB\u30C3\u30C8",columnDisplay:"\u8868\u793A\u5217",columnSetting:"\u5217\u8868\u793A\u8A2D\u5B9A",fullScreen:"\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3",exitFullScreen:"\u7D42\u4E86",reload:"\u66F4\u65B0",density:"\u884C\u9AD8",densityDefault:"\u30C7\u30D5\u30A9\u30EB\u30C8",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D",densitySmall:"\u5C0F"},stepsForm:{next:"\u6B21\u306E\u30B9\u30C6\u30C3\u30D7",prev:"\u524D",submit:"\u9001\u4FE1"},loginForm:{submitText:"\u30ED\u30B0\u30A4\u30F3"},editableTable:{action:{save:"\u6551\u3046",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",delete:"\u524A\u9664",add:"1\u884C\u306E\u30C7\u30FC\u30BF\u3092\u8FFD\u52A0\u3057\u307E\u3059"}},switch:{open:"\u30AA\u30FC\u30D7\u30F3",close:"\u8FD1\u3044"}},U={moneySymbol:"\u20A9",form:{lightFilter:{more:"\uB354\uBCF4\uAE30",clear:"\uCDE8\uC18C",confirm:"\uD655\uC778",itemUnit:"\uAC74\uC218"}},tableForm:{search:"\uC870\uD68C",reset:"\uCD08\uAE30\uD654",submit:"\uC81C\uCD9C",collapsed:"\uD655\uC7A5",expand:"\uB2EB\uAE30",inputPlaceholder:"\uC785\uB825\uD574 \uC8FC\uC138\uC694",selectPlaceholder:"\uC120\uD0DD\uD574 \uC8FC\uC138\uC694"},alert:{clear:"\uCDE8\uC18C",selected:"\uC120\uD0DD",item:"\uAC74"},pagination:{total:{range:" ",total:"/ \uCD1D",item:"\uAC74"}},tableToolBar:{leftPin:"\uC67C\uCABD\uC73C\uB85C \uD540",rightPin:"\uC624\uB978\uCABD\uC73C\uB85C \uD540",noPin:"\uD540 \uC81C\uAC70",leftFixedTitle:"\uC67C\uCABD\uC73C\uB85C \uACE0\uC815",rightFixedTitle:"\uC624\uB978\uCABD\uC73C\uB85C \uACE0\uC815",noFixedTitle:"\uBE44\uACE0\uC815",reset:"\uCD08\uAE30\uD654",columnDisplay:"\uCEEC\uB7FC \uD45C\uC2DC",columnSetting:"\uC124\uC815",fullScreen:"\uC804\uCCB4 \uD654\uBA74",exitFullScreen:"\uC804\uCCB4 \uD654\uBA74 \uCDE8\uC18C",reload:"\uB2E4\uC2DC \uC77D\uAE30",density:"\uC5EC\uBC31",densityDefault:"\uAE30\uBCF8",densityLarger:"\uB9CE\uC740 \uC5EC\uBC31",densityMiddle:"\uC911\uAC04 \uC5EC\uBC31",densitySmall:"\uC881\uC740 \uC5EC\uBC31"},stepsForm:{next:"\uB2E4\uC74C",prev:"\uC774\uC804",submit:"\uC885\uB8CC"},loginForm:{submitText:"\uB85C\uADF8\uC778"},editableTable:{action:{save:"\uC800\uC7A5",cancel:"\uCDE8\uC18C",delete:"\uC0AD\uC81C",add:"\uB370\uC774\uD130 \uD589 \uCD94\uAC00"}},switch:{open:"\uC5F4",close:"\uAC00\uAE4C \uC6B4"}},L={moneySymbol:"\u20AE",form:{lightFilter:{more:"\u0418\u043B\u04AF\u04AF",clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",confirm:"\u0411\u0430\u0442\u0430\u043B\u0433\u0430\u0430\u0436\u0443\u0443\u043B\u0430\u0445",itemUnit:"\u041D\u044D\u0433\u0436\u04AF\u04AF\u0434"}},tableForm:{search:"\u0425\u0430\u0439\u0445",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",submit:"\u0418\u043B\u0433\u044D\u044D\u0445",collapsed:"\u04E8\u0440\u0433\u04E9\u0442\u0433\u04E9\u0445",expand:"\u0425\u0443\u0440\u0430\u0430\u0445",inputPlaceholder:"\u0423\u0442\u0433\u0430 \u043E\u0440\u0443\u0443\u043B\u043D\u0430 \u0443\u0443",selectPlaceholder:"\u0423\u0442\u0433\u0430 \u0441\u043E\u043D\u0433\u043E\u043D\u043E \u0443\u0443"},alert:{clear:"\u0426\u044D\u0432\u044D\u0440\u043B\u044D\u0445",selected:"\u0421\u043E\u043D\u0433\u043E\u0433\u0434\u0441\u043E\u043D",item:"\u041D\u044D\u0433\u0436"},pagination:{total:{range:" ",total:"\u041D\u0438\u0439\u0442",item:"\u043C\u04E9\u0440"}},tableToolBar:{leftPin:"\u0417\u04AF\u04AF\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",rightPin:"\u0411\u0430\u0440\u0443\u0443\u043D \u0442\u0438\u0439\u0448 \u0431\u044D\u0445\u043B\u044D\u0445",noPin:"\u0411\u044D\u0445\u043B\u044D\u0445\u0433\u04AF\u0439",leftFixedTitle:"\u0417\u04AF\u04AF\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",rightFixedTitle:"\u0411\u0430\u0440\u0443\u0443\u043D \u0437\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445",noFixedTitle:"\u0417\u044D\u0440\u044D\u0433\u0446\u04AF\u04AF\u043B\u044D\u0445\u0433\u04AF\u0439",reset:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",columnDisplay:"\u0411\u0430\u0433\u0430\u043D\u0430\u0430\u0440 \u0445\u0430\u0440\u0443\u0443\u043B\u0430\u0445",columnSetting:"\u0422\u043E\u0445\u0438\u0440\u0433\u043E\u043E",fullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446\u044D\u044D\u0440",exitFullScreen:"\u0411\u04AF\u0442\u044D\u043D \u0434\u044D\u043B\u0433\u044D\u0446 \u0446\u0443\u0446\u043B\u0430\u0445",reload:"\u0428\u0438\u043D\u044D\u0447\u043B\u044D\u0445",density:"\u0425\u044D\u043C\u0436\u044D\u044D",densityDefault:"\u0425\u044D\u0432\u0438\u0439\u043D",densityLarger:"\u0422\u043E\u043C",densityMiddle:"\u0414\u0443\u043D\u0434",densitySmall:"\u0416\u0438\u0436\u0438\u0433"},stepsForm:{next:"\u0414\u0430\u0440\u0430\u0430\u0445",prev:"\u04E8\u043C\u043D\u04E9\u0445",submit:"\u0414\u0443\u0443\u0441\u0433\u0430\u0445"},loginForm:{submitText:"\u041D\u044D\u0432\u0442\u0440\u044D\u0445"},editableTable:{action:{save:"\u0425\u0430\u0434\u0433\u0430\u043B\u0430\u0445",cancel:"\u0426\u0443\u0446\u043B\u0430\u0445",delete:"\u0423\u0441\u0442\u0433\u0430\u0445",add:"\u041C\u04E9\u0440 \u043D\u044D\u043C\u044D\u0445"}},switch:{open:"\u041D\u044D\u044D\u0445",close:"\u0425\u0430\u0430\u0445"}},V={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},$={moneySymbol:"z\u0142",form:{lightFilter:{more:"Wi\u0119cej",clear:"Wyczy\u015B\u0107",confirm:"Potwierd\u017A",itemUnit:"Ilo\u015B\u0107"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierd\u017A",collapsed:"Poka\u017C wiecej",expand:"Poka\u017C mniej",inputPlaceholder:"Prosz\u0119 poda\u0107",selectPlaceholder:"Prosz\u0119 wybra\u0107"},alert:{clear:"Wyczy\u015B\u0107",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpis\xF3w"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypi\u0119te do lewej",rightFixedTitle:"Przypi\u0119te do prawej",noFixedTitle:"Nieprzypi\u0119te",reset:"Reset",columnDisplay:"Wy\u015Bwietlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pe\u0142en ekran",exitFullScreen:"Zamknij pe\u0142en ekran",reload:"Od\u015Bwie\u017C",density:"Odst\u0119p",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zur\xFCck",submit:"Abschlie\xDFen"},loginForm:{submitText:"Zaloguj si\u0119"},editableTable:{action:{save:"Zapisa\u0107",cancel:"Anuluj",delete:"Usun\u0105\u0107",add:"dodawanie wiersza danych"}},switch:{open:"otwiera\u0107",close:"zamyka\u0107"}},G={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar \xE0 esquerda",rightPin:"Fixar \xE0 direita",noPin:"Desfixado",leftFixedTitle:"Fixado \xE0 esquerda",rightFixedTitle:"Fixado \xE0 direita",noFixedTitle:"N\xE3o fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configura\xE7\xF5es",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padr\xE3o",densityLarger:"Largo",densityMiddle:"M\xE9dio",densitySmall:"Compacto"},stepsForm:{next:"Pr\xF3ximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},z={moneySymbol:"\u20BD",form:{lightFilter:{more:"\u0415\u0449\u0435",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",confirm:"\u041E\u041A",itemUnit:"\u041F\u043E\u0437\u0438\u0446\u0438\u0438"}},tableForm:{search:"\u041D\u0430\u0439\u0442\u0438",reset:"\u0421\u0431\u0440\u043E\u0441",submit:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",collapsed:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",inputPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",selectPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"},alert:{clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",selected:"\u0412\u044B\u0431\u0440\u0430\u043D\u043E",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},pagination:{total:{range:" ",total:"\u0438\u0437",item:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"}},tableToolBar:{leftPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043B\u0435\u0432\u0430",rightPin:"\u0417\u0430\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0441\u043F\u0440\u0430\u0432\u0430",noPin:"\u041E\u0442\u043A\u0440\u0435\u043F\u0438\u0442\u044C",leftFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043B\u0435\u0432\u0430",rightFixedTitle:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E \u0441\u043F\u0440\u0430\u0432\u0430",noFixedTitle:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0435\u043D\u043E",reset:"\u0421\u0431\u0440\u043E\u0441",columnDisplay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0441\u0442\u043E\u043B\u0431\u0446\u0430",columnSetting:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",fullScreen:"\u041F\u043E\u043B\u043D\u044B\u0439 \u044D\u043A\u0440\u0430\u043D",exitFullScreen:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",reload:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",density:"\u0420\u0430\u0437\u043C\u0435\u0440",densityDefault:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",densityLarger:"\u0411\u043E\u043B\u044C\u0448\u043E\u0439",densityMiddle:"\u0421\u0440\u0435\u0434\u043D\u0438\u0439",densitySmall:"\u0421\u0436\u0430\u0442\u044B\u0439"},stepsForm:{next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439",submit:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C"},loginForm:{submitText:"\u0412\u0445\u043E\u0434"},editableTable:{action:{save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",add:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0440\u044F\u0434 \u0434\u0430\u043D\u043D\u044B\u0445"}},switch:{open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0439 \u0447\u0435\u043C\u043F\u0438\u043E\u043D\u0430\u0442 \u043C\u0438\u0440\u0430 \u043F\u043E \u0442\u0435\u043D\u043D\u0438\u0441\u0443",close:"\u041F\u043E \u0430\u0434\u0440\u0435\u0441\u0443:"}},K={moneySymbol:"RSD",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010Disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Prona\u0111i",reset:"Resetuj",submit:"Po\u0161alji",collapsed:"Pro\u0161iri",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"O\u010Disti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zaka\u010Di levo",rightPin:"Zaka\u010Di desno",noPin:"Nije zaka\u010Deno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Pode\u0161avanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osve\u017Ei",density:"Veli\u010Dina",densityDefault:"Podrazumevana",densityLarger:"Ve\u0107a",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sa\u010Duvaj",cancel:"Poni\u0161ti",delete:"Obri\u0161i",add:"dodajte red podataka"}},switch:{open:"\u041E\u0442\u0432\u043E\u0440\u0438\u0442\u0435",close:"\u0417\u0430\u0442\u0432\u043E\u0440\u0438\u0442\u0435"}},re={moneySymbol:"\u20BA",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"\xD6\u011Feler"}},tableForm:{search:"Filtrele",reset:"S\u0131f\u0131rla",submit:"G\xF6nder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer girin",selectPlaceholder:"Filtrelemek i\xE7in bir de\u011Fer se\xE7in"},alert:{clear:"Temizle",selected:"Se\xE7ili",item:"\xD6\u011Fe"},pagination:{total:{range:" ",total:"Toplam",item:"\xD6\u011Fe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sa\u011Fa sabitle",noPin:"Sabitlemeyi kald\u0131r",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sa\u011Fa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"S\u0131f\u0131rla",columnDisplay:"Kolon G\xF6r\xFCn\xFCm\xFC",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan \xC7\u0131k",reload:"Yenile",density:"Kal\u0131nl\u0131k",densityDefault:"Varsay\u0131lan",densityLarger:"B\xFCy\xFCk",densityMiddle:"Orta",densitySmall:"K\xFC\xE7\xFCk"},stepsForm:{next:"S\u0131radaki",prev:"\xD6nceki",submit:"G\xF6nder"},loginForm:{submitText:"Giri\u015F Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazge\xE7",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"a\xE7\u0131k",close:"kapatmak"}},ne={moneySymbol:"\u20AB",form:{lightFilter:{more:"Nhi\u1EC1u h\u01A1n",clear:"Trong",confirm:"X\xE1c nh\u1EADn",itemUnit:"M\u1EE5c"}},tableForm:{search:"T\xECm ki\u1EBFm",reset:"L\xE0m l\u1EA1i",submit:"G\u1EEDi \u0111i",collapsed:"M\u1EDF r\u1ED9ng",expand:"Thu g\u1ECDn",inputPlaceholder:"nh\u1EADp d\u1EEF li\u1EC7u",selectPlaceholder:"Vui l\xF2ng ch\u1ECDn"},alert:{clear:"X\xF3a",selected:"\u0111\xE3 ch\u1ECDn",item:"m\u1EE5c"},pagination:{total:{range:" ",total:"tr\xEAn",item:"m\u1EB7t h\xE0ng"}},tableToolBar:{leftPin:"Ghim tr\xE1i",rightPin:"Ghim ph\u1EA3i",noPin:"B\u1ECF ghim",leftFixedTitle:"C\u1ED1 \u0111\u1ECBnh tr\xE1i",rightFixedTitle:"C\u1ED1 \u0111\u1ECBnh ph\u1EA3i",noFixedTitle:"Ch\u01B0a c\u1ED1 \u0111\u1ECBnh",reset:"L\xE0m l\u1EA1i",columnDisplay:"C\u1ED9t hi\u1EC3n th\u1ECB",columnSetting:"C\u1EA5u h\xECnh",fullScreen:"Ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",exitFullScreen:"Tho\xE1t ch\u1EBF \u0111\u1ED9 to\xE0n m\xE0n h\xECnh",reload:"L\xE0m m\u1EDBi",density:"M\u1EADt \u0111\u1ED9 hi\u1EC3n th\u1ECB",densityDefault:"M\u1EB7c \u0111\u1ECBnh",densityLarger:"M\u1EB7c \u0111\u1ECBnh",densityMiddle:"Trung b\xECnh",densitySmall:"Ch\u1EADt"},stepsForm:{next:"Sau",prev:"Tr\u01B0\u1EDBc",submit:"K\u1EBFt th\xFAc"},loginForm:{submitText:"\u0110\u0103ng nh\u1EADp"},editableTable:{action:{save:"C\u1EE9u",cancel:"H\u1EE7y",delete:"X\xF3a",add:"th\xEAm m\u1ED9t h\xE0ng d\u1EEF li\u1EC7u"}},switch:{open:"m\u1EDF",close:"\u0111\xF3ng"}},Q={moneySymbol:"\uFFE5",deleteThisLine:"\u5220\u9664\u6B64\u884C",copyThisLine:"\u590D\u5236\u6B64\u884C",form:{lightFilter:{more:"\u66F4\u591A\u7B5B\u9009",clear:"\u6E05\u9664",confirm:"\u786E\u8BA4",itemUnit:"\u9879"}},tableForm:{search:"\u67E5\u8BE2",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u5F00",expand:"\u6536\u8D77",inputPlaceholder:"\u8BF7\u8F93\u5165",selectPlaceholder:"\u8BF7\u9009\u62E9"},alert:{clear:"\u53D6\u6D88\u9009\u62E9",selected:"\u5DF2\u9009\u62E9",item:"\u9879"},pagination:{total:{range:"\u7B2C",total:"\u6761/\u603B\u5171",item:"\u6761"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5728\u5217\u9996",rightPin:"\u56FA\u5B9A\u5728\u5217\u5C3E",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u4FA7",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u4FA7",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8BBE\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8BA4",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7D27\u51D1"},stepsForm:{next:"\u4E0B\u4E00\u6B65",prev:"\u4E0A\u4E00\u6B65",submit:"\u63D0\u4EA4"},loginForm:{submitText:"\u767B\u5F55"},editableTable:{onlyOneLineEditor:"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C",action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",add:"\u6DFB\u52A0\u4E00\u884C\u6570\u636E"}},switch:{open:"\u6253\u5F00",close:"\u5173\u95ED"}},ue={moneySymbol:"NT$",form:{lightFilter:{more:"\u66F4\u591A\u7BE9\u9078",clear:"\u6E05\u9664",confirm:"\u78BA\u8A8D",itemUnit:"\u9805"}},tableForm:{search:"\u67E5\u8A62",reset:"\u91CD\u7F6E",submit:"\u63D0\u4EA4",collapsed:"\u5C55\u958B",expand:"\u6536\u8D77",inputPlaceholder:"\u8ACB\u8F38\u5165",selectPlaceholder:"\u8ACB\u9078\u64C7"},alert:{clear:"\u53D6\u6D88\u9078\u64C7",selected:"\u5DF2\u9078\u64C7",item:"\u9805"},pagination:{total:{range:"\u7B2C",total:"\u689D/\u7E3D\u5171",item:"\u689D"}},tableToolBar:{leftPin:"\u56FA\u5B9A\u5230\u5DE6\u908A",rightPin:"\u56FA\u5B9A\u5230\u53F3\u908A",noPin:"\u4E0D\u56FA\u5B9A",leftFixedTitle:"\u56FA\u5B9A\u5728\u5DE6\u5074",rightFixedTitle:"\u56FA\u5B9A\u5728\u53F3\u5074",noFixedTitle:"\u4E0D\u56FA\u5B9A",reset:"\u91CD\u7F6E",columnDisplay:"\u5217\u5C55\u793A",columnSetting:"\u5217\u8A2D\u7F6E",fullScreen:"\u5168\u5C4F",exitFullScreen:"\u9000\u51FA\u5168\u5C4F",reload:"\u5237\u65B0",density:"\u5BC6\u5EA6",densityDefault:"\u6B63\u5E38",densityLarger:"\u9ED8\u8A8D",densityMiddle:"\u4E2D\u7B49",densitySmall:"\u7DCA\u6E4A"},stepsForm:{next:"\u4E0B\u4E00\u500B",prev:"\u4EE5\u524D\u7684",submit:"\u5B8C\u6210"},loginForm:{submitText:"\u767B\u5165"},editableTable:{action:{save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664",add:"\u6DFB\u52A0\u4E00\u884C\u6578\u64DA"}},switch:{open:"\u6253\u958B",close:"\u95DC\u9589"}};function he(tt,de,ot){var Et=de.replace(/\[(\d+)\]/g,".$1").split("."),Ht=tt,Jt=ot,Qt=(0,y.Z)(Et),an;try{for(Qt.s();!(an=Qt.n()).done;){var Un=an.value;if(Jt=Object(Ht)[Un],Ht=Object(Ht)[Un],Jt===void 0)return ot}}catch(qt){Qt.e(qt)}finally{Qt.f()}return Jt}var Ee=function(de,ot){return{getMessage:function(Ht,Jt){return he(ot,Ht,Jt)||Jt},locale:de}},ce=Ee("mn_MN",L),ve=Ee("ar_EG",v),fe=Ee("zh_CN",Q),we=Ee("en_US",p),me=Ee("en_GB",_),Pe=Ee("vi_VN",ne),pe=Ee("it_IT",Z),Ie=Ee("ja_JP",W),Je=Ee("es_ES",S),ke=Ee("ca_ES",h),De=Ee("ru_RU",z),Fe=Ee("sr_RS",K),Qe=Ee("ms_MY",V),qe=Ee("zh_TW",ue),et=Ee("fr_FR",O),dt=Ee("pt_BR",G),Ke=Ee("ko_KR",U),Ge=Ee("id_ID",D),wt=Ee("de_DE",d),Vt=Ee("fa_IR",k),gt=Ee("tr_TR",re),it=Ee("pl_PL",$),Le=Ee("hr_",F),ct={"mn-MN":ce,"ar-EG":ve,"zh-CN":fe,"en-US":we,"en-GB":me,"vi-VN":Pe,"it-IT":pe,"ja-JP":Ie,"es-ES":Je,"ca-ES":ke,"ru-RU":De,"sr-RS":Fe,"ms-MY":Qe,"zh-TW":qe,"fr-FR":et,"pt-BR":dt,"ko-KR":Ke,"id-ID":Ge,"de-DE":wt,"fa-IR":Vt,"tr-TR":gt,"pl-PL":it,"hr-HR":Le},at=Object.keys(ct),jt=m.createContext({intl:(0,A.Z)((0,A.Z)({},fe),{},{locale:"default"}),valueTypeMap:{}}),St=jt.Consumer,fn=jt.Provider,Xt=function(de){if(!de)return"zh-CN";var ot=de.toLocaleLowerCase();return at.find(function(Et){var Ht=Et.toLocaleLowerCase();return Ht.includes(ot)})},Yt=function(){var de=(0,b.kY)(),ot=de.cache;return(0,m.useEffect)(function(){return function(){ot.clear()}},[]),null},Rt=function(de){var ot=de.children,Et=de.autoClearCache,Ht=Et===void 0?!1:Et,Jt=(0,m.useContext)(g.ZP.ConfigContext),Qt=Jt.locale,an=Qt===void 0?g.ZP:m.Fragment,Un=(0,M.jsx)(St,{children:function(rn){var cn,er=Qt==null?void 0:Qt.locale,rr=Xt(er),nt=er&&((cn=rn.intl)===null||cn===void 0?void 0:cn.locale)==="default"?ct[rr]:rn.intl||ct[rr],lr=Qt===void 0?{locale:w.Z}:{};return(0,M.jsx)(an,(0,A.Z)((0,A.Z)({},lr),{},{children:(0,M.jsx)(fn,{value:(0,A.Z)((0,A.Z)({},rn),{},{intl:nt||fe}),children:(0,M.jsxs)(M.Fragment,{children:[Ht&&(0,M.jsx)(Yt,{}),ot]})})}))}});return Ht?(0,M.jsx)(b.J$,{value:{provider:function(){return new Map}},children:Un}):Un};function Lt(){var tt=(0,m.useContext)(g.ZP.ConfigContext),de=tt.locale,ot=(0,m.useContext)(jt),Et=ot.intl;return Et&&Et.locale!=="default"?Et:(de==null?void 0:de.locale)?ct[Xt(de.locale)]:fe}var ze=null,rt=jt},72673:function(oe,N,o){"use strict";o.d(N,{Z:function(){return xS}});var x=o(55507),g=o(92137),A=o(90484),y=o(28481),M=o(35635),w=o(23799),m=o(36805),b=o(57535),v=o(96156),h=o(85061),d=o(28991),_=o(81253),p=o(67294),S=o(85893),k=o(23937),O=o(82241),F=o(51756),D=o(14643),Z=o(92909),W=o(43623),U=o(7523),L=o(99809),V=o(67604),$=o(72285),G=o(7085),z=o(36889),K=o(65208),re=o(14527),ne=o(89539),Q={},ue=[],he=function(J){ue.push(J)};function Ee(ae,J){if(!1)var xe}function ce(ae,J){if(!1)var xe}function ve(){Q={}}function fe(ae,J,xe){!J&&!Q[xe]&&(ae(!1,xe),Q[xe]=!0)}function we(ae,J){fe(Ee,ae,J)}function me(ae,J){fe(ce,ae,J)}we.preMessage=he,we.resetWarned=ve,we.noteOnce=me;var Pe=null,pe=o(52003),Ie=o(60250),Je=o(88264),ke=o(45861),De=function(J,xe,ye){return(0,ke.Z)(J,xe,ye)};function Fe(ae,J){var xe=(0,p.useRef)();return De(ae,xe.current,J)||(xe.current=ae),xe.current}function Qe(ae,J,xe){(0,p.useEffect)(ae,Fe(J||[],xe))}function qe(ae,J,xe,ye){var Ze=(0,Ie.Z)((0,g.Z)((0,x.Z)().mark(function xt(){return(0,x.Z)().wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:ae();case 1:case"end":return Wt.stop()}},xt)})),ye||16);(0,p.useEffect)(function(){Ze.run()},Fe(J||[],xe))}var et=Qe,dt=o(33219),Ke=o(68450),Ge=o(69270),wt=["map_row_parentKey"],Vt=["map_row_parentKey","map_row_key"],gt=["map_row_key"],it=function(J){return Array.isArray(J)?J.join(","):J};function Le(ae,J){var xe,ye=ae.getRowKey,Ze=ae.row,xt=ae.data,Mt=ae.childrenColumnName,Wt=(xe=it(ae.key))===null||xe===void 0?void 0:xe.toString(),en=new Map;function Tn(qn,nr,hr){qn.forEach(function(ur,Mr){var wr=(hr||0)*10+Mr,ia=ye(ur,wr).toString();ur&&(0,A.Z)(ur)==="object"&&Mt in ur&&Tn(ur[Mt]||[],ia,wr);var ua=(0,d.Z)((0,d.Z)({},ur),{},{map_row_key:ia,children:void 0,map_row_parentKey:nr});delete ua.children,nr||delete ua.map_row_parentKey,en.set(ia,ua)})}J==="top"&&en.set(Wt,(0,d.Z)((0,d.Z)({},en.get(Wt)),Ze)),Tn(xt),J==="update"&&en.set(Wt,(0,d.Z)((0,d.Z)({},en.get(Wt)),Ze)),J==="delete"&&en.delete(Wt);var On=function(nr){var hr=new Map,ur=[],Mr=function(){nr.forEach(function(ia){if(ia.map_row_parentKey&&!ia.map_row_key){var ua=ia.map_row_parentKey,ga=(0,_.Z)(ia,wt);hr.set(ua,[].concat((0,h.Z)(hr.get(ua)||[]),[ga]))}})};return J==="top"&&Mr(),nr.forEach(function(wr){if(wr.map_row_parentKey&&wr.map_row_key){var ia=wr.map_row_parentKey,ua=wr.map_row_key,ga=(0,_.Z)(wr,Vt);hr.has(ua)&&(ga[Mt]=hr.get(ua)),hr.set(ia,[].concat((0,h.Z)(hr.get(ia)||[]),[ga]))}}),J==="update"&&Mr(),nr.forEach(function(wr){if(!wr.map_row_parentKey){var ia=wr.map_row_key,ua=(0,_.Z)(wr,gt);if(ia&&hr.has(ia)){var ga=(0,d.Z)((0,d.Z)({},ua),{},(0,v.Z)({},Mt,hr.get(ia)));ur.push(ga);return}ur.push(ua)}}),ur};return On(en)}function ct(ae){var J=ae.recordKey,xe=ae.onSave,ye=ae.row,Ze=ae.children,xt=ae.newLineConfig,Mt=ae.editorType,Wt=ae.tableName,en=(0,p.useContext)(Je.Z),Tn=$.Z.useFormInstance(),On=(0,Ge.Z)(!1),qn=(0,y.Z)(On,2),nr=qn[0],hr=qn[1];return(0,S.jsxs)("a",{onClick:function(){var ur=(0,g.Z)((0,x.Z)().mark(function wr(ia){var ua,ga,Fa,ai,Ca,ii,ci,$a,di;return(0,x.Z)().wrap(function(Ya){for(;;)switch(Ya.prev=Ya.next){case 0:return ia.stopPropagation(),ia.preventDefault(),Ya.prev=2,ga=Mt==="Map",Fa=[Wt,Array.isArray(J)?J[0]:J].map(function(li){return li==null?void 0:li.toString()}).flat(1).filter(Boolean),hr(!0),Ya.next=8,Tn.validateFields(Fa,{recursive:!0});case 8:return ai=((ua=en.getFieldFormatValue)===null||ua===void 0?void 0:ua.call(en,Fa))||Tn.getFieldValue(Fa),Array.isArray(J)&&J.length>1&&(Ca=(0,L.Z)(J),ii=Ca.slice(1),ci=(0,re.Z)(ai,ii),(0,ne.Z)(ai,ii,ci)),$a=ga?(0,ne.Z)({},Fa,ai,!0):ai,Ya.next=13,xe==null?void 0:xe(J,(0,Ke.T)({},ye,$a),ye,xt);case 13:return di=Ya.sent,hr(!1),Ya.abrupt("return",di);case 18:return Ya.prev=18,Ya.t0=Ya.catch(2),console.log(Ya.t0),hr(!1),Ya.abrupt("return",null);case 23:case"end":return Ya.stop()}},wr,null,[[2,18]])}));function Mr(wr){return ur.apply(this,arguments)}return Mr}(),children:[nr?(0,S.jsx)(G.Z,{style:{marginRight:8}}):null,Ze||"\u4FDD\u5B58"]},"save")}var at=function(J){var xe=J.recordKey,ye=J.onDelete,Ze=J.row,xt=J.children,Mt=J.deletePopconfirmMessage,Wt=(0,Ge.Z)(function(){return!1}),en=(0,y.Z)(Wt,2),Tn=en[0],On=en[1],qn=(0,pe.J)((0,g.Z)((0,x.Z)().mark(function nr(){var hr;return(0,x.Z)().wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:return Mr.prev=0,On(!0),Mr.next=4,ye==null?void 0:ye(xe,Ze);case 4:return hr=Mr.sent,On(!1),Mr.abrupt("return",hr);case 9:return Mr.prev=9,Mr.t0=Mr.catch(0),console.log(Mr.t0),On(!1),Mr.abrupt("return",null);case 14:case"end":return Mr.stop()}},nr,null,[[0,9]])})));return xt!==!1?(0,S.jsx)(U.Z,{title:Mt,onConfirm:function(){return qn()},children:(0,S.jsxs)("a",{children:[Tn?(0,S.jsx)(G.Z,{style:{marginRight:8}}):null,xt||"\u5220\u9664"]})},"delete"):null},jt=function(J){var xe=J.recordKey,ye=J.tableName,Ze=J.newLineConfig,xt=J.editorType,Mt=J.onCancel,Wt=J.cancelEditable,en=J.row,Tn=J.cancelText,On=(0,p.useContext)(Je.Z),qn=$.Z.useFormInstance();return(0,S.jsx)("a",{onClick:function(){var nr=(0,g.Z)((0,x.Z)().mark(function ur(Mr){var wr,ia,ua,ga,Fa,ai;return(0,x.Z)().wrap(function(ii){for(;;)switch(ii.prev=ii.next){case 0:return Mr.stopPropagation(),Mr.preventDefault(),ia=xt==="Map",ua=[ye,xe].flat(1).filter(Boolean),ga=((wr=On.getFieldFormatValue)===null||wr===void 0?void 0:wr.call(On,ua))||qn.getFieldValue(ua),Fa=ia?(0,ne.Z)({},ua,ga):ga,ii.next=8,Mt==null?void 0:Mt(xe,Fa,en,Ze);case 8:return ai=ii.sent,Wt(xe),qn.setFieldsValue((0,v.Z)({},xe,ia?(0,re.Z)(en,ua):en)),ii.abrupt("return",ai);case 12:case"end":return ii.stop()}},ur)}));function hr(ur){return nr.apply(this,arguments)}return hr}(),children:Tn||"\u53D6\u6D88"},"cancel")};function St(ae,J){var xe=J.recordKey,ye=J.newLineConfig,Ze=J.saveText,xt=J.deleteText;return[(0,S.jsx)(ct,(0,d.Z)((0,d.Z)({},J),{},{row:ae,children:Ze}),"save"+xe),(ye==null?void 0:ye.options.recordKey)!==xe?(0,S.jsx)(at,(0,d.Z)((0,d.Z)({},J),{},{row:ae,children:xt}),"delete"+xe):null,(0,S.jsx)(jt,(0,d.Z)((0,d.Z)({},J),{},{row:ae}),"cancel"+xe)]}function fn(ae){var J=(0,p.useState)(void 0),xe=(0,y.Z)(J,2),ye=xe[0],Ze=xe[1],xt=(0,p.useRef)(new Map),Mt=(0,p.useRef)(void 0);qe(function(){var Ba=new Map,Ni=function ji(go,Wi){go==null||go.forEach(function(uo,wo){var Io,Vo=Wi==null?wo.toString():Wi+"_"+wo.toString();Ba.set(Vo,it(ae.getRowKey(uo,-1))),Ba.set((Io=it(ae.getRowKey(uo,-1)))===null||Io===void 0?void 0:Io.toString(),Vo),ae.childrenColumnName&&uo[ae.childrenColumnName]&&ji(uo[ae.childrenColumnName],Vo)})};Ni(ae.dataSource),xt.current=Ba},[ae.dataSource]),Mt.current=ye;var Wt=ae.type||"single",en=(0,z.Z)(ae.dataSource,"children",ae.getRowKey),Tn=(0,y.Z)(en,1),On=Tn[0],qn=(0,K.Z)([],{value:ae.editableKeys,onChange:ae.onChange?function(Ba){var Ni;ae==null||(Ni=ae.onChange)===null||Ni===void 0||Ni.call(ae,Ba.filter(function(ji){return ji!==void 0}),Ba.map(function(ji){return On(ji)}).filter(function(ji){return ji!==void 0}))}:void 0}),nr=(0,y.Z)(qn,2),hr=nr[0],ur=nr[1],Mr=(0,p.useMemo)(function(){var Ba=Wt==="single"?hr==null?void 0:hr.slice(0,1):hr;return new Set(Ba)},[(hr||[]).join(","),Wt]),wr=(0,dt.Z)(hr),ia=(0,pe.J)(function(Ba){var Ni,ji,go,Wi,uo=(Ni=ae.getRowKey(Ba,Ba.index))===null||Ni===void 0||(ji=Ni.toString)===null||ji===void 0?void 0:ji.call(Ni),wo=(go=ae.getRowKey(Ba,-1))===null||go===void 0||(Wi=go.toString)===null||Wi===void 0?void 0:Wi.call(go),Io=hr.map(function(ts){return ts==null?void 0:ts.toString()}),Vo=(wr==null?void 0:wr.map(function(ts){return ts==null?void 0:ts.toString()}))||[],bs=ae.tableName&&!!(Vo==null?void 0:Vo.includes(wo))||!!(Vo==null?void 0:Vo.includes(uo));return{recordKey:wo,isEditable:ae.tableName&&(Io==null?void 0:Io.includes(wo))||(Io==null?void 0:Io.includes(uo)),preIsEditable:bs}}),ua=(0,pe.J)(function(Ba){return Mr.size>0&&Wt==="single"&&ae.onlyOneLineEditorAlertMessage!==!1?(Z.default.warn(ae.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):(Mr.add(Ba),ur(Array.from(Mr)),!0)}),ga=(0,pe.J)(function(){var Ba=(0,g.Z)((0,x.Z)().mark(function Ni(ji,go){var Wi,uo;return(0,x.Z)().wrap(function(Io){for(;;)switch(Io.prev=Io.next){case 0:if(Wi=it(ji).toString(),uo=xt.current.get(Wi),!(!Mr.has(Wi)&&uo&&(go!=null?go:!0)&&ae.tableName)){Io.next=5;break}return ga(uo,!1),Io.abrupt("return");case 5:return ye&&ye.options.recordKey===ji&&Ze(void 0),Mr.delete(Wi),Mr.delete(it(ji)),ur(Array.from(Mr)),Io.abrupt("return",!0);case 10:case"end":return Io.stop()}},Ni)}));return function(Ni,ji){return Ba.apply(this,arguments)}}()),Fa=(0,Ie.Z)((0,g.Z)((0,x.Z)().mark(function Ba(){var Ni,ji,go,Wi,uo=arguments;return(0,x.Z)().wrap(function(Io){for(;;)switch(Io.prev=Io.next){case 0:for(ji=uo.length,go=new Array(ji),Wi=0;Wi<ji;Wi++)go[Wi]=uo[Wi];(Ni=ae.onValuesChange)===null||Ni===void 0||Ni.call.apply(Ni,[ae].concat(go));case 2:case"end":return Io.stop()}},Ba)})),64),ai=(0,pe.J)(function(Ba,Ni){var ji;if(!!ae.onValuesChange){var go=ae.dataSource;hr.forEach(function(Vo){if((ye==null?void 0:ye.options.recordKey)!==Vo){var bs=Vo.toString(),ts=(0,re.Z)(Ni,[ae.tableName||"",bs].flat(1).filter(function(Ws){return Ws||Ws===0}));!ts||(go=Le({data:go,getRowKey:ae.getRowKey,row:ts,key:bs,childrenColumnName:ae.childrenColumnName||"children"},"update"))}});var Wi=ae.tableName?(0,re.Z)(Ba,[ae.tableName||""].flat(1)):Ba,uo=(ji=Object.keys(Wi||{}).pop())===null||ji===void 0?void 0:ji.toString(),wo=(0,d.Z)((0,d.Z)({},ye==null?void 0:ye.defaultValue),(0,re.Z)(Ni,[ae.tableName||"",uo.toString()].flat(1).filter(function(Vo){return Vo||Vo===0}))),Io=xt.current.has(it(uo))?go.find(function(Vo,bs){var ts,Ws=(ts=ae.getRowKey(Vo,bs))===null||ts===void 0?void 0:ts.toString();return Ws===uo}):wo;Fa.run(Io||wo,go)}}),Ca=(0,pe.J)(function(Ba,Ni){if((Ni==null?void 0:Ni.parentKey)&&!xt.current.has(it(Ni==null?void 0:Ni.parentKey).toString()))return console.warn("can't find record by key",Ni==null?void 0:Ni.parentKey),!1;if(Mt.current&&ae.onlyAddOneLineAlertMessage!==!1)return Z.default.warn(ae.onlyAddOneLineAlertMessage||"\u53EA\u80FD\u65B0\u589E\u4E00\u884C"),!1;if(Mr.size>0&&Wt==="single"&&ae.onlyOneLineEditorAlertMessage!==!1)return Z.default.warn(ae.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1;var ji=ae.getRowKey(Ba,-1);if(!ji)throw me(!!ji,`\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key
|
||
https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if(Mr.add(ji),ur(Array.from(Mr)),(Ni==null?void 0:Ni.newRecordType)==="dataSource"||ae.tableName){var go,Wi={data:ae.dataSource,getRowKey:ae.getRowKey,row:(0,d.Z)((0,d.Z)({},Ba),{},{map_row_parentKey:(Ni==null?void 0:Ni.parentKey)?(go=it(Ni==null?void 0:Ni.parentKey))===null||go===void 0?void 0:go.toString():void 0}),key:ji,childrenColumnName:ae.childrenColumnName||"children"};ae.setDataSource(Le(Wi,(Ni==null?void 0:Ni.position)==="top"?"top":"update"))}else Ze({defaultValue:Ba,options:(0,d.Z)((0,d.Z)({},Ni),{},{recordKey:ji})});return!0}),ii=(0,F.YB)(),ci=(ae==null?void 0:ae.saveText)||ii.getMessage("editableTable.action.save","\u4FDD\u5B58"),$a=(ae==null?void 0:ae.deleteText)||ii.getMessage("editableTable.action.delete","\u5220\u9664"),di=(ae==null?void 0:ae.cancelText)||ii.getMessage("editableTable.action.cancel","\u53D6\u6D88"),Wa=(0,pe.J)(function(){var Ba=(0,g.Z)((0,x.Z)().mark(function Ni(ji,go,Wi,uo){var wo,Io,Vo,bs,ts,Ws,Al;return(0,x.Z)().wrap(function(zs){for(;;)switch(zs.prev=zs.next){case 0:return bs=uo||Mt.current||{},ts=bs.options,zs.next=3,ae==null||(wo=ae.onSave)===null||wo===void 0?void 0:wo.call(ae,ji,go,Wi,uo);case 3:if(Ws=zs.sent,ga(ji),!(!(ts==null?void 0:ts.parentKey)&&(ts==null?void 0:ts.recordKey)===ji)){zs.next=8;break}return(ts==null?void 0:ts.position)==="top"?ae.setDataSource([go].concat((0,h.Z)(ae.dataSource))):ae.setDataSource([].concat((0,h.Z)(ae.dataSource),[go])),zs.abrupt("return",Ws);case 8:return Al={data:ae.dataSource,getRowKey:ae.getRowKey,row:ts?(0,d.Z)((0,d.Z)({},go),{},{map_row_parentKey:(Io=it((Vo=ts==null?void 0:ts.parentKey)!==null&&Vo!==void 0?Vo:""))===null||Io===void 0?void 0:Io.toString()}):go,key:ji,childrenColumnName:ae.childrenColumnName||"children"},ae.setDataSource(Le(Al,(ts==null?void 0:ts.position)==="top"?"top":"update")),zs.abrupt("return",Ws);case 11:case"end":return zs.stop()}},Ni)}));return function(Ni,ji,go,Wi){return Ba.apply(this,arguments)}}()),Ya=(0,pe.J)(function(){var Ba=(0,g.Z)((0,x.Z)().mark(function Ni(ji,go){var Wi,uo,wo;return(0,x.Z)().wrap(function(Vo){for(;;)switch(Vo.prev=Vo.next){case 0:return uo={data:ae.dataSource,getRowKey:ae.getRowKey,row:go,key:ji,childrenColumnName:ae.childrenColumnName||"children"},Vo.next=3,ae==null||(Wi=ae.onDelete)===null||Wi===void 0?void 0:Wi.call(ae,ji,go);case 3:return wo=Vo.sent,Vo.next=6,ga(ji);case 6:return ae.setDataSource(Le(uo,"delete")),Vo.abrupt("return",wo);case 8:case"end":return Vo.stop()}},Ni)}));return function(Ni,ji){return Ba.apply(this,arguments)}}()),li=(0,pe.J)(function(){var Ba=(0,g.Z)((0,x.Z)().mark(function Ni(ji,go,Wi,uo){var wo,Io;return(0,x.Z)().wrap(function(bs){for(;;)switch(bs.prev=bs.next){case 0:return bs.next=2,ae==null||(wo=ae.onCancel)===null||wo===void 0?void 0:wo.call(ae,ji,go,Wi,uo);case 2:return Io=bs.sent,bs.abrupt("return",Io);case 4:case"end":return bs.stop()}},Ni)}));return function(Ni,ji,go,Wi){return Ba.apply(this,arguments)}}()),ti=function(Ni){var ji=ae.getRowKey(Ni,Ni.index),go={saveText:ci,cancelText:di,deleteText:$a,addEditRecord:Ca,recordKey:ji,cancelEditable:ga,index:Ni.index,tableName:ae.tableName,newLineConfig:ye,onCancel:li,onDelete:Ya,onSave:Wa,editableKeys:hr,setEditableRowKeys:ur,deletePopconfirmMessage:ae.deletePopconfirmMessage||"".concat(ii.getMessage("deleteThisLine","\u5220\u9664\u6B64\u884C"),"?")},Wi=St(Ni,go);return ae.actionRender?ae.actionRender(Ni,go,{save:Wi[0],delete:Wi[1],cancel:Wi[2]}):Wi};return{editableKeys:hr,setEditableRowKeys:ur,isEditable:ia,actionRender:ti,startEditable:ua,cancelEditable:ga,addEditRecord:Ca,newLineRecord:ye,preEditableKeys:wr,onValuesChange:ai}}var Xt=fn,Yt=o(78904),Rt=o(8230),Lt=o(35510),ze=o.n(Lt);function rt(ae){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rt=function(xe){return typeof xe}:rt=function(xe){return xe&&typeof Symbol=="function"&&xe.constructor===Symbol&&xe!==Symbol.prototype?"symbol":typeof xe},rt(ae)}var tt=function(){var J=new WeakSet;return function(xe,ye){if(rt(ye)==="object"&&ye!==null){if(J.has(ye))return;J.add(ye)}return ye}},de=function(J){return JSON.stringify(J,tt())},ot=function(J,xe){try{return de(J)===de(xe)}catch(ye){}return!1};function Et(ae){var J=useRef("");return ot(ae,J.current)||(J.current=JSON.stringify(ae,tt())),J.current}function Ht(ae,J){useEffect(ae,[Et(J)])}var Jt=null,Qt=o(12966),an=o(43732),Un=o(25324),qt=o(45733),rn=o(60870),cn=function(J){var xe=J.intl,ye=J.onCleanSelected;return[(0,S.jsx)("a",{onClick:ye,children:xe.getMessage("alert.clear","\u6E05\u7A7A")},"0")]};function er(ae){var J=ae.selectedRowKeys,xe=J===void 0?[]:J,ye=ae.onCleanSelected,Ze=ae.alwaysShowAlert,xt=ae.selectedRows,Mt=ae.alertInfoRender,Wt=Mt===void 0?function(wr){var ia=wr.intl;return(0,S.jsxs)(qt.Z,{children:[ia.getMessage("alert.selected","\u5DF2\u9009\u62E9"),xe.length,ia.getMessage("alert.item","\u9879"),"\xA0\xA0"]})}:Mt,en=ae.alertOptionRender,Tn=en===void 0?cn:en,On=(0,F.YB)(),qn=Tn&&Tn({onCleanSelected:ye,selectedRowKeys:xe,selectedRows:xt,intl:On}),nr=(0,p.useContext)(w.ZP.ConfigContext),hr=nr.getPrefixCls,ur=hr("pro-table-alert");if(Wt===!1)return null;var Mr=Wt({intl:On,selectedRowKeys:xe,selectedRows:xt,onCleanSelected:ye});return Mr===!1||xe.length<1&&!Ze?null:(0,S.jsx)("div",{className:ur,children:(0,S.jsx)(an.Z,{message:(0,S.jsxs)("div",{className:"".concat(ur,"-info"),children:[(0,S.jsx)("div",{className:"".concat(ur,"-info-content"),children:Mr}),qn?(0,S.jsx)("div",{className:"".concat(ur,"-info-option"),children:qn}):null]}),type:"info"})})}var rr=er,nt=o(5991),lr=o(6610),Hn=o(10379),ut=o(44144),bt=o(3305),We=function(J){return J!=null};function be(ae,J,xe){var ye,Ze;if(ae===!1)return!1;var xt=J.total,Mt=J.current,Wt=J.pageSize,en=J.setPageInfo,Tn=(0,A.Z)(ae)==="object"?ae:{};return(0,d.Z)((0,d.Z)({showTotal:function(qn,nr){return"".concat(xe.getMessage("pagination.total.range","\u7B2C")," ").concat(nr[0],"-").concat(nr[1]," ").concat(xe.getMessage("pagination.total.total","\u6761/\u603B\u5171")," ").concat(qn," ").concat(xe.getMessage("pagination.total.item","\u6761"))},total:xt},Tn),{},{current:ae!==!0&&ae&&(ye=ae.current)!==null&&ye!==void 0?ye:Mt,pageSize:ae!==!0&&ae&&(Ze=ae.pageSize)!==null&&Ze!==void 0?Ze:Wt,onChange:function(qn,nr){var hr=ae.onChange;hr==null||hr(qn,nr||20),(nr!==Wt||Mt!==qn)&&en({pageSize:nr,current:qn})}})}function Ae(ae,J,xe){var ye=(0,d.Z)((0,d.Z)({},xe.editableUtils),{},{pageInfo:J.pageInfo,reload:function(){var Ze=(0,g.Z)((0,x.Z)().mark(function Mt(Wt){return(0,x.Z)().wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:if(!Wt){Tn.next=3;break}return Tn.next=3,J.setPageInfo({current:1});case 3:J==null||J.reload();case 4:case"end":return Tn.stop()}},Mt)}));function xt(Mt){return Ze.apply(this,arguments)}return xt}(),reloadAndRest:function(){var Ze=(0,g.Z)((0,x.Z)().mark(function Mt(){return(0,x.Z)().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:return xe.onCleanSelected(),en.next=3,J.setPageInfo({current:1});case 3:return en.next=5,J==null?void 0:J.reload();case 5:case"end":return en.stop()}},Mt)}));function xt(){return Ze.apply(this,arguments)}return xt}(),reset:function(){var Ze=(0,g.Z)((0,x.Z)().mark(function Mt(){var Wt;return(0,x.Z)().wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return Tn.next=2,xe.resetAll();case 2:return Tn.next=4,J==null||(Wt=J.reset)===null||Wt===void 0?void 0:Wt.call(J);case 4:return Tn.next=6,J==null?void 0:J.reload();case 6:case"end":return Tn.stop()}},Mt)}));function xt(){return Ze.apply(this,arguments)}return xt}(),fullScreen:function(){return xe.fullScreen()},clearSelected:function(){return xe.onCleanSelected()},setPageInfo:function(xt){return J.setPageInfo(xt)}});ae.current=ye}function Ue(ae,J){return J.filter(function(xe){return xe}).length<1?ae:J.reduce(function(xe,ye){return ye(xe)},ae)}var $e=function(J,xe){return xe===void 0?!1:typeof xe=="boolean"?xe:xe[J]},kt=function(J){var xe;return J&&(0,A.Z)(J)==="object"&&(J==null||(xe=J.props)===null||xe===void 0?void 0:xe.colSpan)},lt=function(J,xe){return J?Array.isArray(J)?J.join("-"):J.toString():"".concat(xe)};function vt(ae){return Array.isArray(ae)?ae.join(","):ae==null?void 0:ae.toString()}function Ct(ae){var J={},xe={};return ae.forEach(function(ye){var Ze=vt(ye.dataIndex);if(!!Ze){if(ye.filters){var xt=ye.defaultFilteredValue;xt===void 0?J[Ze]=null:J[Ze]=ye.defaultFilteredValue}ye.sorter&&ye.defaultSortOrder&&(xe[Ze]=ye.defaultSortOrder)}}),{sort:xe,filter:J}}function Bt(ae,J){var xe=ae.oldIndex,ye=ae.newIndex;if(xe!==ye){var Ze=arrayMoveImmutable(_toConsumableArray(J||[]),xe,ye).filter(function(xt){return!!xt});return _toConsumableArray(Ze)}return null}var mt=function(J){var xe=(0,p.useRef)(J);return xe.current=J,xe},Zt=mt,zt=o(24863),ln=o(64370),An=o(42048),En=o(13451),Gn=o(36903),Bn=o.n(Gn);function pr(ae){var J=p.useRef();J.current=ae;var xe=p.useCallback(function(){for(var ye,Ze=arguments.length,xt=new Array(Ze),Mt=0;Mt<Ze;Mt++)xt[Mt]=arguments[Mt];return(ye=J.current)===null||ye===void 0?void 0:ye.call.apply(ye,[J].concat(xt))},[]);return xe}function _r(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var na=_r()?p.useLayoutEffect:p.useEffect,$n=function(J,xe){var ye=p.useRef(!0);na(function(){return J(ye.current)},xe),na(function(){return ye.current=!1,function(){ye.current=!0}},[])},qr=function(J,xe){$n(function(ye){if(!ye)return J()},xe)},Jr=null;function Aa(ae){var J=p.useRef(!1),xe=p.useState(ae),ye=(0,y.Z)(xe,2),Ze=ye[0],xt=ye[1];p.useEffect(function(){return J.current=!1,function(){J.current=!0}},[]);function Mt(Wt,en){en&&J.current||xt(Wt)}return[Ze,Mt]}function ya(ae){return ae!==void 0}function $t(ae,J){var xe=J||{},ye=xe.defaultValue,Ze=xe.value,xt=xe.onChange,Mt=xe.postState,Wt=Aa(function(){return ya(Ze)?Ze:ya(ye)?typeof ye=="function"?ye():ye:typeof ae=="function"?ae():ae}),en=(0,y.Z)(Wt,2),Tn=en[0],On=en[1],qn=Ze!==void 0?Ze:Tn,nr=Mt?Mt(qn):qn,hr=pr(xt),ur=Aa([qn]),Mr=(0,y.Z)(ur,2),wr=Mr[0],ia=Mr[1];qr(function(){var ga=wr[0];Tn!==ga&&hr(Tn,ga)},[wr]),qr(function(){ya(Ze)||On(Ze)},[Ze]);var ua=pr(function(ga,Fa){On(ga,Fa),ia([qn],Fa)});return[nr,ua]}var wn=o(86862),Fn=o(73935),Or=o(50400),vr=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","visible"];function Ur(ae){var J,xe,ye,Ze,xt=ae.children,Mt=ae.trigger,Wt=ae.onVisibleChange,en=ae.drawerProps,Tn=ae.onFinish,On=ae.submitTimeout,qn=ae.title,nr=ae.width,hr=ae.visible,ur=(0,_.Z)(ae,vr);(0,wn.ET)(!ur.footer||!(en==null?void 0:en.footer),"DrawerForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var Mr=(0,p.useContext)(w.ZP.ConfigContext),wr=(0,p.useState)([]),ia=(0,y.Z)(wr,2),ua=ia[1],ga=(0,p.useState)(!1),Fa=(0,y.Z)(ga,2),ai=Fa[0],Ca=Fa[1],ii=$t(!!hr,{value:hr,onChange:Wt}),ci=(0,y.Z)(ii,2),$a=ci[0],di=ci[1],Wa=(0,p.useRef)(null),Ya=(0,p.useCallback)(function(Wi){Wa.current===null&&Wi&&ua([]),Wa.current=Wi},[]),li=(0,p.useRef)(),ti=(0,p.useCallback)(function(){var Wi,uo,wo,Io=(Wi=(uo=(wo=ur.formRef)===null||wo===void 0?void 0:wo.current)!==null&&uo!==void 0?uo:ur.form)!==null&&Wi!==void 0?Wi:li.current;Io&&(en==null?void 0:en.destroyOnClose)&&Io.resetFields()},[en==null?void 0:en.destroyOnClose,ur.form,ur.formRef]);(0,p.useEffect)(function(){$a&&hr&&(Wt==null||Wt(!0))},[hr,$a]);var Ba=(0,p.useMemo)(function(){return Mt?p.cloneElement(Mt,(0,d.Z)((0,d.Z)({key:"trigger"},Mt.props),{},{onClick:function(){var Wi=(0,g.Z)((0,x.Z)().mark(function wo(Io){var Vo,bs;return(0,x.Z)().wrap(function(Ws){for(;;)switch(Ws.prev=Ws.next){case 0:di(!$a),(Vo=Mt.props)===null||Vo===void 0||(bs=Vo.onClick)===null||bs===void 0||bs.call(Vo,Io);case 2:case"end":return Ws.stop()}},wo)}));function uo(wo){return Wi.apply(this,arguments)}return uo}()})):null},[di,Mt,$a]),Ni=(0,p.useMemo)(function(){var Wi,uo,wo,Io,Vo,bs;return ur.submitter===!1?!1:Bn()({searchConfig:{submitText:(Wi=(uo=Mr.locale)===null||uo===void 0||(wo=uo.Modal)===null||wo===void 0?void 0:wo.okText)!==null&&Wi!==void 0?Wi:"\u786E\u8BA4",resetText:(Io=(Vo=Mr.locale)===null||Vo===void 0||(bs=Vo.Modal)===null||bs===void 0?void 0:bs.cancelText)!==null&&Io!==void 0?Io:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:On?ai:void 0,onClick:function(Ws){var Al;di(!1),ti(),en==null||(Al=en.onClose)===null||Al===void 0||Al.call(en,Ws)}}},ur.submitter)},[ur.submitter,(J=Mr.locale)===null||J===void 0||(xe=J.Modal)===null||xe===void 0?void 0:xe.okText,(ye=Mr.locale)===null||ye===void 0||(Ze=ye.Modal)===null||Ze===void 0?void 0:Ze.cancelText,On,ai,di,ti,en]),ji=(0,p.useCallback)(function(Wi,uo){return(0,S.jsxs)(S.Fragment,{children:[Wi,Wa.current&&uo?(0,Fn.createPortal)(uo,Wa.current):uo]})},[]),go=(0,pe.J)(function(){var Wi=(0,g.Z)((0,x.Z)().mark(function uo(wo){var Io,Vo,bs;return(0,x.Z)().wrap(function(Ws){for(;;)switch(Ws.prev=Ws.next){case 0:return Io=Tn==null?void 0:Tn(wo),On&&Io instanceof Promise&&(Ca(!0),Vo=setTimeout(function(){return Ca(!1)},On),Io.finally(function(){clearTimeout(Vo),Ca(!1)})),Ws.next=4,Io;case 4:return bs=Ws.sent,bs&&di(!1),Ws.abrupt("return",bs);case 7:case"end":return Ws.stop()}},uo)}));return function(uo){return Wi.apply(this,arguments)}}());return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(En.Z,(0,d.Z)((0,d.Z)({title:qn,width:nr||800},en),{},{visible:$a,onClose:function(uo){var wo;On&&ai||(ti(),di(!1),en==null||(wo=en.onClose)===null||wo===void 0||wo.call(en,uo))},afterVisibleChange:function(uo){var wo;uo||ti(),en==null||(wo=en.afterVisibleChange)===null||wo===void 0||wo.call(en,uo)},footer:ur.submitter!==!1&&(0,S.jsx)("div",{ref:Ya,style:{display:"flex",justifyContent:"flex-end"}}),children:(0,S.jsx)(S.Fragment,{children:(0,S.jsx)(Or.I,(0,d.Z)((0,d.Z)({formComponentType:"DrawerForm",layout:"vertical",formRef:li},ur),{},{submitter:Ni,onFinish:function(){var Wi=(0,g.Z)((0,x.Z)().mark(function wo(Io){var Vo;return(0,x.Z)().wrap(function(ts){for(;;)switch(ts.prev=ts.next){case 0:return ts.next=2,go(Io);case 2:return Vo=ts.sent,Vo===!0&&ti(),ts.abrupt("return",Vo);case 5:case"end":return ts.stop()}},wo)}));function uo(wo){return Wi.apply(this,arguments)}return uo}(),contentRender:ji,children:xt}))})})),Ba]})}var Zr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},Kr=Zr,ba=o(27029),Ri=function(J,xe){return p.createElement(ba.Z,(0,d.Z)((0,d.Z)({},J),{},{ref:xe,icon:Kr}))};Ri.displayName="FilterOutlined";var Ea=p.forwardRef(Ri),Pi=o(55502),rs=o(15049),Ui=o(29504),Cn=["size","collapse","collapseLabel","initialValues","onValuesChange","form","placement","formRef","bordered","ignoreRules","footerRender"],Kn=function(J){var xe=J.items,ye=J.prefixCls,Ze=J.size,xt=Ze===void 0?"middle":Ze,Mt=J.collapse,Wt=J.collapseLabel,en=J.onValuesChange,Tn=J.bordered,On=J.values,qn=J.footerRender,nr=J.placement,hr=(0,F.YB)(),ur="".concat(ye,"-light-filter"),Mr=(0,p.useState)(!1),wr=(0,y.Z)(Mr,2),ia=wr[0],ua=wr[1],ga=(0,p.useState)(function(){return(0,d.Z)({},On)}),Fa=(0,y.Z)(ga,2),ai=Fa[0],Ca=Fa[1];(0,p.useEffect)(function(){Ca((0,d.Z)({},On))},[On]);var ii=(0,p.useMemo)(function(){var Wa=[],Ya=[];return xe.forEach(function(li){var ti=li.props||{},Ba=ti.secondary;Ba||Mt?Wa.push(li):Ya.push(li)}),{collapseItems:Wa,outsideItems:Ya}},[J.items]),ci=ii.collapseItems,$a=ii.outsideItems,di=function(){return Wt||(Mt?(0,S.jsx)(Ea,{className:"".concat(ur,"-collapse-icon")}):(0,S.jsx)(Pi.Z,{size:xt,label:hr.getMessage("form.lightFilter.more","\u66F4\u591A\u7B5B\u9009"),expanded:ia}))};return(0,S.jsx)("div",{className:ze()(ur,"".concat(ur,"-").concat(xt),(0,v.Z)({},"".concat(ur,"-effective"),Object.keys(On).some(function(Wa){return On[Wa]}))),children:(0,S.jsxs)("div",{className:"".concat(ur,"-container"),children:[$a.map(function(Wa,Ya){var li=Wa.key,ti=Wa.props.fieldProps,Ba=(ti==null?void 0:ti.placement)?ti==null?void 0:ti.placement:nr;return(0,S.jsx)("div",{className:"".concat(ur,"-item"),children:p.cloneElement(Wa,{fieldProps:(0,d.Z)((0,d.Z)({},Wa.props.fieldProps),{},{placement:Ba}),proFieldProps:{light:!0,label:Wa.props.label,bordered:Tn},bordered:Tn})},li||Ya)}),ci.length?(0,S.jsx)("div",{className:"".concat(ur,"-item"),children:(0,S.jsx)(rs.Z,{padding:24,onVisibleChange:ua,visible:ia,placement:nr,label:di(),footerRender:qn,footer:{onConfirm:function(){en((0,d.Z)({},ai)),ua(!1)},onClear:function(){var Ya={};ci.forEach(function(li){var ti=li.props.name;Ya[ti]=void 0}),en(Ya)}},children:ci.map(function(Wa){var Ya=Wa.key,li=Wa.props,ti=li.name,Ba=li.fieldProps,Ni=(0,d.Z)((0,d.Z)({},Ba),{},{onChange:function(Wi){return Ca((0,d.Z)((0,d.Z)({},ai),{},(0,v.Z)({},ti,(Wi==null?void 0:Wi.target)?Wi.target.value:Wi))),!1}});ai.hasOwnProperty(ti)&&(Ni[Wa.props.valuePropName||"value"]=ai[ti]);var ji=(Ba==null?void 0:Ba.placement)?Ba==null?void 0:Ba.placement:nr;return(0,S.jsx)("div",{className:"".concat(ur,"-line"),children:p.cloneElement(Wa,{fieldProps:(0,d.Z)((0,d.Z)({},Ni),{},{placement:ji})})},Ya)})})},"more"):null]})})};function Pn(ae){var J=ae.size,xe=ae.collapse,ye=ae.collapseLabel,Ze=ae.initialValues,xt=ae.onValuesChange,Mt=ae.form,Wt=ae.placement,en=ae.formRef,Tn=ae.bordered,On=ae.ignoreRules,qn=ae.footerRender,nr=(0,_.Z)(ae,Cn),hr=(0,p.useContext)(w.ZP.ConfigContext),ur=hr.getPrefixCls,Mr=ur("pro-form"),wr=(0,p.useState)(function(){return(0,d.Z)({},Ze)}),ia=(0,y.Z)(wr,2),ua=ia[0],ga=ia[1],Fa=(0,p.useRef)();return(0,p.useImperativeHandle)(en,function(){return Fa.current}),(0,S.jsx)(Or.I,(0,d.Z)((0,d.Z)({size:J,initialValues:Ze,form:Mt,contentRender:function(Ca){return(0,S.jsx)(Kn,{prefixCls:Mr,items:Ca.flatMap(function(ii){return(ii==null?void 0:ii.type.displayName)==="ProForm-Group"?ii.props.children:ii}),size:J,bordered:Tn,collapse:xe,collapseLabel:ye,placement:Wt,values:ua||{},footerRender:qn,onValuesChange:function(ci){var $a,di,Wa=(0,d.Z)((0,d.Z)({},ua),ci);ga(Wa),($a=Fa.current)===null||$a===void 0||$a.setFieldsValue(Wa),(di=Fa.current)===null||di===void 0||di.submit(),xt&&xt(ci,Wa)}})},formRef:Fa,formItemProps:{colon:!1,labelAlign:"left"},fieldProps:{style:{width:void 0}}},(0,bt.Z)(nr,["labelWidth"])),{},{onValuesChange:function(Ca,ii){var ci;ga(ii),xt==null||xt(Ca,ii),(ci=Fa.current)===null||ci===void 0||ci.submit()}}))}var At=o(26780),ar=o(51935),ta=["children","trigger","onVisibleChange","modalProps","onFinish","submitTimeout","title","width","visible"];function Yn(ae){var J,xe,ye,Ze,xt=ae.children,Mt=ae.trigger,Wt=ae.onVisibleChange,en=ae.modalProps,Tn=ae.onFinish,On=ae.submitTimeout,qn=ae.title,nr=ae.width,hr=ae.visible,ur=(0,_.Z)(ae,ta);(0,wn.ET)(!ur.footer||!(en==null?void 0:en.footer),"ModalForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var Mr=(0,p.useContext)(w.ZP.ConfigContext),wr=(0,p.useState)([]),ia=(0,y.Z)(wr,2),ua=ia[1],ga=(0,p.useState)(!1),Fa=(0,y.Z)(ga,2),ai=Fa[0],Ca=Fa[1],ii=$t(!!hr,{value:hr,onChange:Wt}),ci=(0,y.Z)(ii,2),$a=ci[0],di=ci[1],Wa=(0,p.useRef)(null),Ya=(0,p.useCallback)(function(Wi){Wa.current===null&&Wi&&ua([]),Wa.current=Wi},[]),li=(0,p.useRef)(),ti=(0,p.useCallback)(function(){var Wi,uo,wo,Io=(Wi=(uo=ur.form)!==null&&uo!==void 0?uo:(wo=ur.formRef)===null||wo===void 0?void 0:wo.current)!==null&&Wi!==void 0?Wi:li.current;Io&&(en==null?void 0:en.destroyOnClose)&&Io.resetFields()},[en==null?void 0:en.destroyOnClose,ur.form,ur.formRef]);(0,p.useEffect)(function(){$a&&hr&&(Wt==null||Wt(!0))},[hr,$a]);var Ba=(0,p.useMemo)(function(){return Mt?p.cloneElement(Mt,(0,d.Z)((0,d.Z)({key:"trigger"},Mt.props),{},{onClick:function(){var Wi=(0,g.Z)((0,x.Z)().mark(function wo(Io){var Vo,bs;return(0,x.Z)().wrap(function(Ws){for(;;)switch(Ws.prev=Ws.next){case 0:di(!$a),(Vo=Mt.props)===null||Vo===void 0||(bs=Vo.onClick)===null||bs===void 0||bs.call(Vo,Io);case 2:case"end":return Ws.stop()}},wo)}));function uo(wo){return Wi.apply(this,arguments)}return uo}()})):null},[di,Mt,$a]),Ni=(0,p.useMemo)(function(){var Wi,uo,wo,Io,Vo,bs,ts,Ws;return ur.submitter===!1?!1:Bn()({searchConfig:{submitText:(Wi=(uo=en==null?void 0:en.okText)!==null&&uo!==void 0?uo:(wo=Mr.locale)===null||wo===void 0||(Io=wo.Modal)===null||Io===void 0?void 0:Io.okText)!==null&&Wi!==void 0?Wi:"\u786E\u8BA4",resetText:(Vo=(bs=en==null?void 0:en.cancelText)!==null&&bs!==void 0?bs:(ts=Mr.locale)===null||ts===void 0||(Ws=ts.Modal)===null||Ws===void 0?void 0:Ws.cancelText)!==null&&Vo!==void 0?Vo:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:On?ai:void 0,onClick:function(Ql){var zs;di(!1),ti(),en==null||(zs=en.onCancel)===null||zs===void 0||zs.call(en,Ql)}}},ur.submitter)},[(J=Mr.locale)===null||J===void 0||(xe=J.Modal)===null||xe===void 0?void 0:xe.cancelText,(ye=Mr.locale)===null||ye===void 0||(Ze=ye.Modal)===null||Ze===void 0?void 0:Ze.okText,en,ur.submitter,di,ai,On,ti]),ji=(0,p.useCallback)(function(Wi,uo){return(0,S.jsxs)(S.Fragment,{children:[Wi,Wa.current&&uo?(0,Fn.createPortal)(uo,Wa.current):uo]})},[]),go=(0,p.useCallback)(function(){var Wi=(0,g.Z)((0,x.Z)().mark(function uo(wo){var Io,Vo,bs;return(0,x.Z)().wrap(function(Ws){for(;;)switch(Ws.prev=Ws.next){case 0:return Io=Tn==null?void 0:Tn(wo),On&&Io instanceof Promise&&(Ca(!0),Vo=setTimeout(function(){return Ca(!1)},On),Io.finally(function(){clearTimeout(Vo),Ca(!1)})),Ws.next=4,Io;case 4:return bs=Ws.sent,bs&&di(!1),Ws.abrupt("return",bs);case 7:case"end":return Ws.stop()}},uo)}));return function(uo){return Wi.apply(this,arguments)}}(),[Tn,di,On]);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(ar.Z,(0,d.Z)((0,d.Z)({title:qn,width:nr||800},en),{},{visible:$a,onCancel:function(uo){var wo;On&&ai||(di(!1),en==null||(wo=en.onCancel)===null||wo===void 0||wo.call(en,uo))},afterClose:function(){var uo;ti(),en==null||(uo=en.afterClose)===null||uo===void 0||uo.call(en)},footer:ur.submitter!==!1&&(0,S.jsx)("div",{ref:Ya,style:{display:"flex",justifyContent:"flex-end"}}),children:(0,S.jsx)(Or.I,(0,d.Z)((0,d.Z)({formComponentType:"ModalForm",layout:"vertical",formRef:li},ur),{},{submitter:Ni,onFinish:function(){var Wi=(0,g.Z)((0,x.Z)().mark(function wo(Io){var Vo;return(0,x.Z)().wrap(function(ts){for(;;)switch(ts.prev=ts.next){case 0:return ts.next=2,go(Io);case 2:return Vo=ts.sent,Vo===!0&&ti(),ts.abrupt("return",Vo);case 5:case"end":return ts.stop()}},wo)}));function uo(wo){return Wi.apply(this,arguments)}return uo}(),contentRender:ji,children:xt}))})),Ba]})}var Qa=o(79847),Ua=o(5317),Fi=o(87555),Xa=o(77111),$i=o(49194),La=o(52222),ja=o(65507),ei=o(6797),Do=o(50279),yo=o(57254),to=function(J){if(J&&J!==!0)return J},fs=to,cs=function(J,xe,ye,Ze){return J?(0,S.jsxs)(S.Fragment,{children:[ye.getMessage("tableForm.collapsed","\u5C55\u5F00"),Ze&&"(".concat(Ze,")"),(0,S.jsx)(yo.Z,{style:{marginLeft:"0.5em",transition:"0.3s all",transform:"rotate(".concat(J?0:.5,"turn)")}})]}):(0,S.jsxs)(S.Fragment,{children:[ye.getMessage("tableForm.expand","\u6536\u8D77"),(0,S.jsx)(yo.Z,{style:{marginLeft:"0.5em",transition:"0.3s all",transform:"rotate(".concat(J?0:.5,"turn)")}})]})},Os=function(J){var xe=J.setCollapsed,ye=J.collapsed,Ze=ye===void 0?!1:ye,xt=J.submitter,Mt=J.style,Wt=J.hiddenNum,en=(0,p.useContext)(w.ZP.ConfigContext),Tn=en.getPrefixCls,On=(0,F.YB)(),qn=fs(J.collapseRender)||cs;return(0,S.jsxs)(qt.Z,{style:Mt,size:16,children:[xt,J.collapseRender!==!1&&(0,S.jsx)("a",{className:Tn("pro-form-collapse-button"),onClick:function(){return xe(!Ze)},children:qn==null?void 0:qn(Ze,J,On,Wt)})]})},vl=Os,Ar=["collapsed","layout","defaultCollapsed","defaultColsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum"],Rn,Sr,nn={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:Infinity},sn={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[Infinity,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[Infinity,4,"horizontal"]]},Ot=function(J,xe,ye){if(ye&&typeof ye=="number")return{span:ye,layout:J};var Ze=ye?["xs","sm","md","lg","xl","xxl"].map(function(Mt){return[nn[Mt],24/ye[Mt],"horizontal"]}):sn[J||"default"],xt=(Ze||sn.default).find(function(Mt){return xe<Mt[0]+16});return{span:24/xt[1],layout:xt[2]}},gr=function(J,xe){return J.flatMap(function(ye){var Ze;if((ye==null?void 0:ye.type.displayName)==="ProForm-Group"&&!((Ze=ye.props)===null||Ze===void 0?void 0:Ze.title))return ye.props.children;if(xe&&p.isValidElement(ye)){var xt;return p.cloneElement(ye,(0,d.Z)((0,d.Z)({},ye.props),{},{formItemProps:(0,d.Z)((0,d.Z)({},(xt=ye.props)===null||xt===void 0?void 0:xt.formItemProps),{},{rules:[]})}))}return ye})},Gr=function(J){var xe=(0,F.YB)(),ye=J.resetText||xe.getMessage("tableForm.reset","\u91CD\u7F6E"),Ze=J.searchText||xe.getMessage("tableForm.search","\u641C\u7D22"),xt=$t(function(){return J.defaultCollapsed&&!!J.submitter},{value:J.collapsed,onChange:J.onCollapse}),Mt=(0,y.Z)(xt,2),Wt=Mt[0],en=Mt[1],Tn=J.optionRender,On=J.collapseRender,qn=J.split,nr=J.items,hr=J.spanSize,ur=J.showLength,Mr=J.searchGutter,wr=J.showHiddenNum,ia=(0,p.useMemo)(function(){return!J.submitter||Tn===!1?null:p.cloneElement(J.submitter,(0,d.Z)({searchConfig:{resetText:ye,submitText:Ze},render:Tn&&function(Ya,li){return Tn((0,d.Z)((0,d.Z)({},J),{},{resetText:ye,searchText:Ze}),J,li)}},J.submitter.props))},[J,ye,Ze,Tn]),ua=0,ga=0,Fa=!1,ai=0,Ca=0,ii=gr(nr,J.ignoreRules).map(function(Ya,li){var ti,Ba,Ni,ji,go=p.isValidElement(Ya)&&(ti=Ya==null||(Ba=Ya.props)===null||Ba===void 0?void 0:Ba.colSize)!==null&&ti!==void 0?ti:1,Wi=Math.min(hr.span*(go||1),24);if(ua+=Wi,ai+=go,li===0){var uo;Fa=Wi===24&&!(Ya==null||(uo=Ya.props)===null||uo===void 0?void 0:uo.hidden)}var wo=(Ya==null||(Ni=Ya.props)===null||Ni===void 0?void 0:Ni.hidden)||Wt&&(Fa||ai>ur-1)&&!!li&&ua>=24;ga+=1;var Io=p.isValidElement(Ya)&&(Ya.key||"".concat((ji=Ya.props)===null||ji===void 0?void 0:ji.name))||li;return p.isValidElement(Ya)&&wo?J.preserve?{itemDom:p.cloneElement(Ya,{hidden:!0,key:Io||li}),hidden:!0,colSpan:Wi}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:Ya,colSpan:Wi,hidden:!1}}),ci=ii.map(function(Ya,li){var ti,Ba,Ni=Ya.itemDom,ji=Ya.colSpan,go=Ni==null||(ti=Ni.props)===null||ti===void 0?void 0:ti.hidden;if(go)return Ni;var Wi=p.isValidElement(Ni)&&(Ni.key||"".concat((Ba=Ni.props)===null||Ba===void 0?void 0:Ba.name))||li;24-Ca%24<ji&&(ua+=24-Ca%24,Ca+=24-Ca%24),Ca+=ji;var uo=(0,S.jsx)(ja.Z,{span:ji,children:Ni},Wi);return qn&&Ca%24==0&&li<ga-1?[uo,(0,S.jsx)(ja.Z,{span:"24",children:(0,S.jsx)($i.Z,{style:{marginTop:-8,marginBottom:16},dashed:!0})},"line")]:uo}),$a=wr&&ii.filter(function(Ya){return Ya.hidden}).length,di=(0,p.useMemo)(function(){return!(ua<24||ai<=ur)},[ai,ur,ua]),Wa=(0,p.useMemo)(function(){var Ya=Ca%24+hr.span;return 24-Ya},[Ca,hr.span]);return(0,S.jsxs)(Fi.Z,{gutter:Mr,justify:"start",children:[ci,ia&&(0,S.jsx)(ja.Z,{span:hr.span,offset:Wa,style:{textAlign:"right"},children:(0,S.jsx)($.Z.Item,{label:" ",colon:!1,className:"pro-form-query-filter-actions",children:(0,S.jsx)(vl,{hiddenNum:$a,collapsed:Wt,collapseRender:di?On:!1,submitter:ia,setCollapsed:en},"pro-form-query-filter-actions")})},"submitter")]},"resize-observer-row")},Ln=(0,ei.Z)()?(Rn=document)===null||Rn===void 0||(Sr=Rn.body)===null||Sr===void 0?void 0:Sr.clientWidth:1024;function Tr(ae){var J=ae.collapsed,xe=ae.layout,ye=ae.defaultCollapsed,Ze=ye===void 0?!0:ye,xt=ae.defaultColsNumber,Mt=ae.span,Wt=ae.searchGutter,en=Wt===void 0?24:Wt,Tn=ae.searchText,On=ae.resetText,qn=ae.optionRender,nr=ae.collapseRender,hr=ae.onReset,ur=ae.onCollapse,Mr=ae.labelWidth,wr=Mr===void 0?"80":Mr,ia=ae.style,ua=ae.split,ga=ae.preserve,Fa=ga===void 0?!0:ga,ai=ae.ignoreRules,Ca=ae.showHiddenNum,ii=Ca===void 0?!1:Ca,ci=(0,_.Z)(ae,Ar),$a=(0,p.useContext)(w.ZP.ConfigContext),di=$a.getPrefixCls("pro-form-query-filter"),Wa=(0,Ge.Z)(function(){return typeof(ia==null?void 0:ia.width)=="number"?ia==null?void 0:ia.width:Ln}),Ya=(0,y.Z)(Wa,2),li=Ya[0],ti=Ya[1],Ba=(0,p.useMemo)(function(){return Ot(xe,li+16,Mt)},[xe,li,Mt]),Ni=(0,p.useMemo)(function(){return xt!==void 0?xt-1:Math.max(1,24/Ba.span-1)},[xt,Ba.span]),ji=(0,p.useMemo)(function(){if(wr&&Ba.layout!=="vertical"&&wr!=="auto")return{labelCol:{flex:"0 0 ".concat(wr,"px")},wrapperCol:{style:{maxWidth:"calc(100% - ".concat(wr,"px)")}},style:{flexWrap:"nowrap"}}},[Ba.layout,wr]);return(0,S.jsx)(Do.default,{onResize:function(Wi){li!==Wi.width&&Wi.width>17&&ti(Wi.width)},children:(0,S.jsx)(Or.I,(0,d.Z)((0,d.Z)({isKeyPressSubmit:!0,preserve:Fa},ci),{},{className:ze()(di,ci.className),onReset:hr,style:ia,layout:Ba.layout,fieldProps:{style:{width:"100%"}},formItemProps:ji,groupProps:{titleStyle:{display:"inline-block",marginRight:16}},contentRender:function(Wi,uo,wo){return(0,S.jsx)(Gr,{spanSize:Ba,collapsed:J,form:wo,collapseRender:nr,defaultCollapsed:Ze,onCollapse:ur,optionRender:qn,submitter:uo,items:Wi,split:ua,resetText:ae.resetText,searchText:ae.searchText,searchGutter:en,preserve:Fa,ignoreRules:ai,showLength:Ni,showHiddenNum:ii})}}))},"resize-observer")}var Dn=o(13753),Pr=o(48429),fa=o(8017),ka=o(17731),Li=o(54487),zi=o(161),Mo=["onFinish","step","formRef","title","stepProps"];function Za(ae){var J=(0,p.useRef)(),xe=(0,p.useContext)(Eo),ye=ae.onFinish,Ze=ae.step,xt=ae.formRef,Mt=ae.title,Wt=ae.stepProps,en=(0,_.Z)(ae,Mo);return(0,wn.ET)(!en.submitter,"StepForm \u4E0D\u5305\u542B\u63D0\u4EA4\u6309\u94AE\uFF0C\u8BF7\u5728 StepsForm \u4E0A"),(0,p.useImperativeHandle)(xt,function(){return J.current}),(0,p.useEffect)(function(){if(!!(ae.name||ae.step)){var Tn=(ae.name||ae.step).toString();return xe==null||xe.regForm(Tn,ae),function(){xe==null||xe.unRegForm(Tn)}}},[]),xe&&(xe==null?void 0:xe.formArrayRef)&&(xe.formArrayRef.current[Ze||0]=J),(0,S.jsx)(Or.I,(0,d.Z)({formRef:J,onFinish:function(){var Tn=(0,g.Z)((0,x.Z)().mark(function qn(nr){var hr;return(0,x.Z)().wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:if(en.name&&(xe==null||xe.onFormFinish(en.name,nr)),!ye){Mr.next=9;break}return xe==null||xe.setLoading(!0),Mr.next=5,ye==null?void 0:ye(nr);case 5:return hr=Mr.sent,hr&&(xe==null||xe.next()),xe==null||xe.setLoading(!1),Mr.abrupt("return");case 9:(xe==null?void 0:xe.lastStep)||xe==null||xe.next();case 10:case"end":return Mr.stop()}},qn)}));function On(qn){return Tn.apply(this,arguments)}return On}(),layout:"vertical"},en))}var ao=Za,Mi=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef"],Eo=p.createContext(void 0),Xi={horizontal:function(J){var xe=J.stepsDom,ye=J.formDom;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Fi.Z,{gutter:{xs:8,sm:16,md:24},children:(0,S.jsx)(ja.Z,{span:24,children:xe})}),(0,S.jsx)(Fi.Z,{gutter:{xs:8,sm:16,md:24},children:(0,S.jsx)(ja.Z,{span:24,children:ye})})]})},vertical:function(J){var xe=J.stepsDom,ye=J.formDom;return(0,S.jsxs)(Fi.Z,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[(0,S.jsx)(ja.Z,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:p.cloneElement(xe,{style:{height:"100%"}})}),(0,S.jsx)(ja.Z,{children:(0,S.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:ye})})]})}};function Bo(ae){var J=(0,p.useContext)(w.ZP.ConfigContext),xe=J.getPrefixCls,ye=xe("pro-steps-form"),Ze=ae.current,xt=ae.onCurrentChange,Mt=ae.submitter,Wt=ae.stepsFormRender,en=ae.stepsRender,Tn=ae.stepFormRender,On=ae.stepsProps,qn=ae.onFinish,nr=ae.formProps,hr=ae.containerStyle,ur=ae.formRef,Mr=ae.formMapRef,wr=(0,_.Z)(ae,Mi),ia=(0,p.useRef)(new Map),ua=(0,p.useRef)(new Map),ga=(0,p.useRef)([]),Fa=(0,p.useState)([]),ai=(0,y.Z)(Fa,2),Ca=ai[0],ii=ai[1],ci=(0,p.useState)(!1),$a=(0,y.Z)(ci,2),di=$a[0],Wa=$a[1],Ya=(0,F.YB)(),li=$t(0,{value:ae.current,onChange:ae.onCurrentChange}),ti=(0,y.Z)(li,2),Ba=ti[0],Ni=ti[1],ji=(0,p.useMemo)(function(){return Xi[(On==null?void 0:On.direction)||"horizontal"]},[On==null?void 0:On.direction]),go=(0,p.useMemo)(function(){return Ba===Ca.length-1},[Ca.length,Ba]),Wi=(0,p.useCallback)(function(As,Ks){ua.current.has(As)||ii(function(Cc){return[].concat((0,h.Z)(Cc),[As])}),ua.current.set(As,Ks)},[]),uo=(0,p.useCallback)(function(As){ii(function(Ks){return Ks.filter(function(Cc){return Cc!==As})}),ua.current.delete(As),ia.current.delete(As)},[]);(0,p.useImperativeHandle)(Mr,function(){return ga.current}),(0,p.useImperativeHandle)(ur,function(){var As;return(As=ga.current[Ba||0])===null||As===void 0?void 0:As.current},[Ba]);var wo=(0,p.useCallback)(function(){var As=(0,g.Z)((0,x.Z)().mark(function Ks(Cc,qc){var Of,_f;return(0,x.Z)().wrap(function(ud){for(;;)switch(ud.prev=ud.next){case 0:if(ia.current.set(Cc,qc),!(!go||!qn)){ud.next=3;break}return ud.abrupt("return");case 3:return Wa(!0),Of=Ke.T.apply(void 0,[{}].concat((0,h.Z)(Array.from(ia.current.values())))),ud.prev=5,ud.next=8,qn(Of);case 8:_f=ud.sent,_f&&(Ni(0),ga.current.forEach(function(Su){var Uu;return(Uu=Su.current)===null||Uu===void 0?void 0:Uu.resetFields()})),ud.next=15;break;case 12:ud.prev=12,ud.t0=ud.catch(5),console.log(ud.t0);case 15:return ud.prev=15,Wa(!1),ud.finish(15);case 18:case"end":return ud.stop()}},Ks,null,[[5,12,15,18]])}));return function(Ks,Cc){return As.apply(this,arguments)}}(),[go,qn,Wa,Ni]),Io=(0,p.useMemo)(function(){return(0,S.jsx)("div",{className:"".concat(ye,"-steps-container"),style:{maxWidth:Math.min(Ca.length*320,1160)},children:(0,S.jsx)(ka.Z,(0,d.Z)((0,d.Z)({},On),{},{current:Ba,onChange:void 0,children:Ca.map(function(As){var Ks=ua.current.get(As);return(0,S.jsx)(ka.Z.Step,(0,d.Z)({title:Ks==null?void 0:Ks.title},Ks==null?void 0:Ks.stepProps),As)})}))})},[Ca,ye,Ba,On]),Vo=(0,pe.J)(function(){var As,Ks=ga.current[Ba];(As=Ks.current)===null||As===void 0||As.submit()}),bs=(0,pe.J)(function(){Ba<1||Ni(Ba-1)}),ts=(0,p.useMemo)(function(){return Mt!==!1&&(0,S.jsx)(Pr.Z,(0,d.Z)((0,d.Z)({type:"primary",loading:di},Mt==null?void 0:Mt.submitButtonProps),{},{onClick:function(){var Ks;Mt==null||(Ks=Mt.onSubmit)===null||Ks===void 0||Ks.call(Mt),Vo()},children:Ya.getMessage("stepsForm.next","\u4E0B\u4E00\u6B65")}),"next")},[Ya,di,Vo,Mt]),Ws=(0,p.useMemo)(function(){return Mt!==!1&&(0,S.jsx)(Pr.Z,(0,d.Z)((0,d.Z)({},Mt==null?void 0:Mt.resetButtonProps),{},{onClick:function(){var Ks;bs(),Mt==null||(Ks=Mt.onReset)===null||Ks===void 0||Ks.call(Mt)},children:Ya.getMessage("stepsForm.prev","\u4E0A\u4E00\u6B65")}),"pre")},[Ya,bs,Mt]),Al=(0,p.useMemo)(function(){return Mt!==!1&&(0,S.jsx)(Pr.Z,(0,d.Z)((0,d.Z)({type:"primary",loading:di},Mt==null?void 0:Mt.submitButtonProps),{},{onClick:function(){var Ks;Mt==null||(Ks=Mt.onSubmit)===null||Ks===void 0||Ks.call(Mt),Vo()},children:Ya.getMessage("stepsForm.submit","\u63D0\u4EA4")}),"submit")},[Ya,di,Vo,Mt]),Ql=(0,pe.J)(function(){Ba>Ca.length-2||Ni(Ba+1)}),zs=(0,p.useMemo)(function(){var As=[],Ks=Ba||0;if(Ks<1?As.push(ts):Ks+1===Ca.length?As.push(Ws,Al):As.push(Ws,ts),As=As.filter(p.isValidElement),Mt&&Mt.render){var Cc,qc={form:(Cc=ga.current[Ba])===null||Cc===void 0?void 0:Cc.current,onSubmit:Vo,step:Ba,onPre:bs};return Mt.render(qc,As)}return Mt&&(Mt==null?void 0:Mt.render)===!1?null:As},[Ca.length,ts,Vo,Ws,bs,Ba,Al,Mt]),_c=(0,p.useMemo)(function(){return(0,Li.Z)(ae.children).map(function(As,Ks){var Cc=As.props,qc=Cc.name||"".concat(Ks),Of=Ba===Ks,_f=Of?{contentRender:Tn,submitter:!1}:{};return(0,S.jsx)("div",{className:ze()("".concat(ye,"-step"),(0,v.Z)({},"".concat(ye,"-step-active"),Of)),children:p.cloneElement(As,(0,d.Z)((0,d.Z)((0,d.Z)((0,d.Z)({},_f),nr),Cc),{},{name:qc,step:Ks,key:qc}))},qc)})},[nr,ye,ae.children,Ba,Tn]),hc=(0,p.useMemo)(function(){return en?en(Ca.map(function(As){var Ks;return{key:As,title:(Ks=ua.current.get(As))===null||Ks===void 0?void 0:Ks.title}}),Io):Io},[Ca,Io,en]),Hs=(0,p.useMemo)(function(){return(0,S.jsxs)("div",{className:"".concat(ye,"-container"),style:hr,children:[_c,Wt?null:(0,S.jsx)(qt.Z,{children:zs})]})},[hr,_c,ye,Wt,zs]),Ul=(0,p.useMemo)(function(){var As={stepsDom:hc,formDom:Hs};return Wt?Wt(ji(As),zs):ji(As)},[hc,Hs,ji,Wt,zs]);return(0,S.jsx)("div",{className:ye,children:(0,S.jsx)($.Z.Provider,(0,d.Z)((0,d.Z)({},wr),{},{children:(0,S.jsx)(Eo.Provider,{value:{loading:di,setLoading:Wa,regForm:Wi,keyArray:Ca,next:Ql,formArrayRef:ga,formMapRef:ua,lastStep:go,unRegForm:uo,onFormFinish:wo},children:Ul})}))})}function ol(ae){return(0,S.jsx)(F.oK,{children:(0,S.jsx)(Bo,(0,d.Z)({},ae))})}ol.StepForm=ao,ol.useForm=$.Z.useForm;var Il=["steps","columns","forceUpdate","grid"],ms=function(J){var xe=J.steps,ye=J.columns,Ze=J.forceUpdate,xt=J.grid,Mt=(0,_.Z)(J,Il),Wt=Zt(Mt),en=(0,p.useCallback)(function(On){var qn,nr;(qn=(nr=Wt.current).onCurrentChange)===null||qn===void 0||qn.call(nr,On),Ze([])},[Ze,Wt]),Tn=(0,p.useMemo)(function(){return xe==null?void 0:xe.map(function(On,qn){return(0,p.createElement)(XO,(0,d.Z)((0,d.Z)({grid:xt},On),{},{key:qn,layoutType:"StepForm",columns:ye[qn]}))})},[ye,xt,xe]);return(0,S.jsx)(ol,(0,d.Z)((0,d.Z)({},Mt),{},{onCurrentChange:en,children:Tn}))},mc=ms,Ys=function(J){var xe=J.children;return(0,S.jsx)(S.Fragment,{children:xe})},hl=Ys,Rs=o(56112),xl=function(J,xe){var ye=xe.genItems;if(J.valueType==="dependency"){var Ze,xt,Mt,Wt=(Ze=J.getFieldProps)===null||Ze===void 0?void 0:Ze.call(J);return(0,wn.ET)(Array.isArray((xt=J.name)!==null&&xt!==void 0?xt:Wt==null?void 0:Wt.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),(0,wn.ET)(typeof J.columns=="function",'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray((Mt=J.name)!==null&&Mt!==void 0?Mt:Wt==null?void 0:Wt.name)?(0,p.createElement)(Rs.Z,(0,d.Z)((0,d.Z)({name:J.name},Wt),{},{key:J.key}),function(en){return!J.columns||typeof J.columns!="function"?null:ye(J.columns(en))}):null}return!0},Wl=function(J){if(J.valueType==="divider"){var xe;return(0,p.createElement)($i.Z,(0,d.Z)((0,d.Z)({},(xe=J.getFieldProps)===null||xe===void 0?void 0:xe.call(J)),{},{key:J.key}))}return!0},_l=o(90930),Ls=o(23040),zn="valueType request plain renderFormItem render text formItemProps valueEnum",Dr="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function Hr(ae){var J="".concat(zn," ").concat(Dr).split(/[\s\n]+/),xe={};return Object.keys(ae||{}).forEach(function(ye){J.includes(ye)||(xe[ye]=ae[ye])}),xe}var _a=o(38663),Ti=o(3519),Ci=o(93806),da=o(97140),Da=o(22122),mi=o(67724),Ho=o(43929),al=o(25281),ml=o(32455),Xs=o(57725);function Ps(ae){var J=p.useRef();J.current=ae;var xe=p.useCallback(function(){for(var ye,Ze=arguments.length,xt=new Array(Ze),Mt=0;Mt<Ze;Mt++)xt[Mt]=arguments[Mt];return(ye=J.current)===null||ye===void 0?void 0:ye.call.apply(ye,[J].concat(xt))},[]);return xe}function dl(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ql=dl()?p.useLayoutEffect:p.useEffect,Dc=function(J,xe){var ye=p.useRef(!0);ql(function(){return J(ye.current)},xe),ql(function(){return ye.current=!1,function(){ye.current=!0}},[])},Jl=function(J,xe){Dc(function(ye){if(!ye)return J()},xe)},oc=null;function xu(ae){var J=p.useRef(!1),xe=p.useState(ae),ye=(0,y.Z)(xe,2),Ze=ye[0],xt=ye[1];p.useEffect(function(){return J.current=!1,function(){J.current=!0}},[]);function Mt(Wt,en){en&&J.current||xt(Wt)}return[Ze,Mt]}function yf(ae){return ae!==void 0}function ku(ae,J){var xe=J||{},ye=xe.defaultValue,Ze=xe.value,xt=xe.onChange,Mt=xe.postState,Wt=xu(function(){return yf(Ze)?Ze:yf(ye)?typeof ye=="function"?ye():ye:typeof ae=="function"?ae():ae}),en=(0,y.Z)(Wt,2),Tn=en[0],On=en[1],qn=Ze!==void 0?Ze:Tn,nr=Mt?Mt(qn):qn,hr=Ps(xt),ur=xu([qn]),Mr=(0,y.Z)(ur,2),wr=Mr[0],ia=Mr[1];Jl(function(){var ga=wr[0];Tn!==ga&&hr(Tn,ga)},[wr]),Jl(function(){yf(Ze)||On(Ze)},[Ze]);var ua=Ps(function(ga,Fa){On(ga,Fa),ia([qn],Fa)});return[nr,ua]}var Zc=p.createContext(null),Zu=Zc,Fc="__RC_CASCADER_SPLIT__",Hc="SHOW_PARENT",Vu="SHOW_CHILD";function ws(ae){return ae.join(Fc)}function fc(ae){return ae.map(ws)}function Tc(ae){return ae.split(Fc)}function jc(ae){var J=ae||{},xe=J.label,ye=J.value,Ze=J.children,xt=ye||"value";return{label:xe||"label",value:xt,key:xt,children:Ze||"children"}}function lu(ae,J){var xe,ye;return(xe=ae.isLeaf)!==null&&xe!==void 0?xe:!((ye=ae[J.children])===null||ye===void 0?void 0:ye.length)}function hu(ae){var J=ae.parentElement;if(!!J){var xe=ae.offsetTop-J.offsetTop;xe-J.scrollTop<0?J.scrollTo({top:xe}):xe+ae.offsetHeight-J.scrollTop>J.offsetHeight&&J.scrollTo({top:xe+ae.offsetHeight-J.offsetHeight})}}function of(ae,J,xe){var ye=new Set(ae),Ze=J();return ae.filter(function(xt){var Mt=Ze[xt],Wt=Mt?Mt.parent:null,en=Mt?Mt.children:null;return xe===Vu?!(en&&en.some(function(Tn){return Tn.key&&ye.has(Tn.key)})):!(Wt&&!Wt.node.disabled&&ye.has(Wt.key))})}function uu(ae,J,xe){for(var ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Ze=J,xt=[],Mt=function(){var Tn,On,qn,nr=ae[Wt],hr=(Tn=Ze)===null||Tn===void 0?void 0:Tn.findIndex(function(Mr){var wr=Mr[xe.value];return ye?String(wr)===String(nr):wr===nr}),ur=hr!==-1?(On=Ze)===null||On===void 0?void 0:On[hr]:null;xt.push({value:(qn=ur==null?void 0:ur[xe.value])!==null&&qn!==void 0?qn:nr,index:hr,option:ur}),Ze=ur==null?void 0:ur[xe.children]},Wt=0;Wt<ae.length;Wt+=1)Mt();return xt}var zu=function(ae,J,xe,ye,Ze){return p.useMemo(function(){var xt=Ze||function(Mt){var Wt=ye?Mt.slice(-1):Mt,en=" / ";return Wt.every(function(Tn){return["string","number"].includes((0,A.Z)(Tn))})?Wt.join(en):Wt.reduce(function(Tn,On,qn){var nr=p.isValidElement(On)?p.cloneElement(On,{key:qn}):On;return qn===0?[nr]:[].concat((0,h.Z)(Tn),[en,nr])},[])};return ae.map(function(Mt){var Wt,en,Tn=uu(Mt,J,xe),On=xt(Tn.map(function(nr){var hr,ur=nr.option,Mr=nr.value;return(hr=ur==null?void 0:ur[xe.label])!==null&&hr!==void 0?hr:Mr}),Tn.map(function(nr){var hr=nr.option;return hr})),qn=ws(Mt);return{label:On,value:qn,key:qn,valueCells:Mt,disabled:(Wt=Tn[Tn.length-1])===null||Wt===void 0||(en=Wt.option)===null||en===void 0?void 0:en.disabled}})},[ae,J,xe,Ze,ye])},cf=o(93254),bf=function(ae,J){var xe=p.useRef({options:null,info:null}),ye=p.useCallback(function(){return xe.current.options!==ae&&(xe.current.options=ae,xe.current.info=(0,cf.I8)(ae,{fieldNames:J,initWrapper:function(xt){return(0,d.Z)((0,d.Z)({},xt),{},{pathKeyEntities:{}})},processEntity:function(xt,Mt){var Wt=xt.nodes.map(function(en){return en[J.value]}).join(Fc);Mt.pathKeyEntities[Wt]=xt,xt.key=Wt}})),xe.current.info.pathKeyEntities},[J,ae]);return ye},Cu=function(ae,J){return p.useCallback(function(xe){var ye=[],Ze=[];return xe.forEach(function(xt){var Mt=uu(xt,ae,J);Mt.every(function(Wt){return Wt.option})?Ze.push(xt):ye.push(xt)}),[Ze,ye]},[ae,J])};function rf(ae){var J=p.useRef();J.current=ae;var xe=p.useCallback(function(){return J.current.apply(J,arguments)},[]);return xe}var Bu={},Tf=[],ed=function(J){Tf.push(J)};function Fd(ae,J){if(!1)var xe}function Pd(ae,J){if(!1)var xe}function Nc(){Bu={}}function eu(ae,J,xe){!J&&!Bu[xe]&&(ae(!1,xe),Bu[xe]=!0)}function If(ae,J){eu(Fd,ae,J)}function $f(ae,J){eu(Pd,ae,J)}If.preMessage=ed,If.resetWarned=Nc,If.noteOnce=$f;var Te=null;function _t(ae){return p.useMemo(function(){if(!ae)return[!1,{}];var J={matchInputWidth:!0,limit:50};return ae&&(0,A.Z)(ae)==="object"&&(J=(0,d.Z)((0,d.Z)({},J),ae)),J.limit<=0&&delete J.limit,[!0,J]},[ae])}var Vn="__rc_cascader_search_mark__",br=function(J,xe,ye){var Ze=ye.label;return xe.some(function(xt){return String(xt[Ze]).toLowerCase().includes(J.toLowerCase())})},tn=function(J,xe,ye,Ze){return xe.map(function(xt){return xt[Ze.label]}).join(" / ")},Pt=function(ae,J,xe,ye,Ze,xt){var Mt=Ze.filter,Wt=Mt===void 0?br:Mt,en=Ze.render,Tn=en===void 0?tn:en,On=Ze.limit,qn=On===void 0?50:On,nr=Ze.sort;return p.useMemo(function(){var hr=[];if(!ae)return[];function ur(Mr,wr){Mr.forEach(function(ia){if(!(!nr&&qn>0&&hr.length>=qn)){var ua=[].concat((0,h.Z)(wr),[ia]),ga=ia[xe.children];if((!ga||ga.length===0||xt)&&Wt(ae,ua,{label:xe.label})){var Fa;hr.push((0,d.Z)((0,d.Z)({},ia),{},(Fa={},(0,v.Z)(Fa,xe.label,Tn(ae,ua,ye,xe)),(0,v.Z)(Fa,Vn,ua),(0,v.Z)(Fa,xe.children,void 0),Fa)))}ga&&ur(ia[xe.children],ua)}})}return ur(J,[]),nr&&hr.sort(function(Mr,wr){return nr(Mr[Vn],wr[Vn],ae,xe)}),qn>0?hr.slice(0,qn):hr},[ae,J,xe,ye,Tn,xt,Wt,nr,qn])};function on(ae){var J,xe=ae.prefixCls,ye=ae.checked,Ze=ae.halfChecked,xt=ae.disabled,Mt=ae.onClick,Wt=p.useContext(Zu),en=Wt.checkable,Tn=typeof en!="boolean"?en:null;return p.createElement("span",{className:ze()("".concat(xe),(J={},(0,v.Z)(J,"".concat(xe,"-checked"),ye),(0,v.Z)(J,"".concat(xe,"-indeterminate"),!ye&&Ze),(0,v.Z)(J,"".concat(xe,"-disabled"),xt),J)),onClick:Mt},Tn)}var _n="__cascader_fix_label__";function ir(ae){var J=ae.prefixCls,xe=ae.multiple,ye=ae.options,Ze=ae.activeValue,xt=ae.prevValuePath,Mt=ae.onToggleOpen,Wt=ae.onSelect,en=ae.onActive,Tn=ae.checkedSet,On=ae.halfCheckedSet,qn=ae.loadingKeys,nr=ae.isSelectable,hr="".concat(J,"-menu"),ur="".concat(J,"-menu-item"),Mr=p.useContext(Zu),wr=Mr.fieldNames,ia=Mr.changeOnSelect,ua=Mr.expandTrigger,ga=Mr.expandIcon,Fa=Mr.loadingIcon,ai=Mr.dropdownMenuColumnStyle,Ca=ua==="hover",ii=p.useMemo(function(){return ye.map(function(ci){var $a,di=ci.disabled,Wa=ci[Vn],Ya=($a=ci[_n])!==null&&$a!==void 0?$a:ci[wr.label],li=ci[wr.value],ti=lu(ci,wr),Ba=Wa?Wa.map(function(uo){return uo[wr.value]}):[].concat((0,h.Z)(xt),[li]),Ni=ws(Ba),ji=qn.includes(Ni),go=Tn.has(Ni),Wi=On.has(Ni);return{disabled:di,label:Ya,value:li,isLeaf:ti,isLoading:ji,checked:go,halfChecked:Wi,option:ci,fullPath:Ba,fullPathKey:Ni}})},[ye,Tn,wr,On,qn,xt]);return p.createElement("ul",{className:hr,role:"menu"},ii.map(function(ci){var $a,di=ci.disabled,Wa=ci.label,Ya=ci.value,li=ci.isLeaf,ti=ci.isLoading,Ba=ci.checked,Ni=ci.halfChecked,ji=ci.option,go=ci.fullPath,Wi=ci.fullPathKey,uo=function(){if(!di){var bs=(0,h.Z)(go);Ca&&li&&bs.pop(),en(bs)}},wo=function(){nr(ji)&&Wt(go,li)},Io;return typeof ji.title=="string"?Io=ji.title:typeof Wa=="string"&&(Io=Wa),p.createElement("li",{key:Wi,className:ze()(ur,($a={},(0,v.Z)($a,"".concat(ur,"-expand"),!li),(0,v.Z)($a,"".concat(ur,"-active"),Ze===Ya),(0,v.Z)($a,"".concat(ur,"-disabled"),di),(0,v.Z)($a,"".concat(ur,"-loading"),ti),$a)),style:ai,role:"menuitemcheckbox",title:Io,"aria-checked":Ba,"data-path-key":Wi,onClick:function(){uo(),(!xe||li)&&wo()},onDoubleClick:function(){ia&&Mt(!1)},onMouseEnter:function(){Ca&&uo()},onMouseDown:function(bs){bs.preventDefault()}},xe&&p.createElement(on,{prefixCls:"".concat(J,"-checkbox"),checked:Ba,halfChecked:Ni,disabled:di,onClick:function(bs){bs.stopPropagation(),wo()}}),p.createElement("div",{className:"".concat(ur,"-content")},Wa),!ti&&ga&&!li&&p.createElement("div",{className:"".concat(ur,"-expand-icon")},ga),ti&&Fa&&p.createElement("div",{className:"".concat(ur,"-loading-icon")},Fa))}))}var xr=function(){var ae=(0,al.lk)(),J=ae.multiple,xe=ae.open,ye=p.useContext(Zu),Ze=ye.values,xt=p.useState([]),Mt=(0,y.Z)(xt,2),Wt=Mt[0],en=Mt[1];return p.useEffect(function(){if(xe&&!J){var Tn=Ze[0];en(Tn||[])}},[xe]),[Wt,en]},aa={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(J){var xe=J.keyCode;if(J.altKey&&!J.ctrlKey||J.metaKey||xe>=aa.F1&&xe<=aa.F12)return!1;switch(xe){case aa.ALT:case aa.CAPS_LOCK:case aa.CONTEXT_MENU:case aa.CTRL:case aa.DOWN:case aa.END:case aa.ESC:case aa.HOME:case aa.INSERT:case aa.LEFT:case aa.MAC_FF_META:case aa.META:case aa.NUMLOCK:case aa.NUM_CENTER:case aa.PAGE_DOWN:case aa.PAGE_UP:case aa.PAUSE:case aa.PRINT_SCREEN:case aa.RIGHT:case aa.SHIFT:case aa.UP:case aa.WIN_KEY:case aa.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(J){if(J>=aa.ZERO&&J<=aa.NINE||J>=aa.NUM_ZERO&&J<=aa.NUM_MULTIPLY||J>=aa.A&&J<=aa.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&J===0)return!0;switch(J){case aa.SPACE:case aa.QUESTION_MARK:case aa.NUM_PLUS:case aa.NUM_MINUS:case aa.NUM_PERIOD:case aa.NUM_DIVISION:case aa.SEMICOLON:case aa.DASH:case aa.EQUALS:case aa.COMMA:case aa.PERIOD:case aa.SLASH:case aa.APOSTROPHE:case aa.SINGLE_QUOTE:case aa.OPEN_SQUARE_BRACKET:case aa.BACKSLASH:case aa.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},oi=aa,ni=function(ae,J,xe,ye,Ze,xt){var Mt=(0,al.lk)(),Wt=Mt.direction,en=Mt.searchValue,Tn=Mt.toggleOpen,On=Mt.open,qn=Wt==="rtl",nr=p.useMemo(function(){for(var ai=-1,Ca=J,ii=[],ci=[],$a=ye.length,di=function(Ni){var ji=Ca.findIndex(function(go){return go[xe.value]===ye[Ni]});if(ji===-1)return"break";ai=ji,ii.push(ai),ci.push(ye[Ni]),Ca=Ca[ai][xe.children]},Wa=0;Wa<$a&&Ca;Wa+=1){var Ya=di(Wa);if(Ya==="break")break}for(var li=J,ti=0;ti<ii.length-1;ti+=1)li=li[ii[ti]][xe.children];return[ci,ai,li]},[ye,xe,J]),hr=(0,y.Z)(nr,3),ur=hr[0],Mr=hr[1],wr=hr[2],ia=function(Ca){Ze(Ca)},ua=function(Ca){var ii=wr.length,ci=Mr;ci===-1&&Ca<0&&(ci=ii);for(var $a=0;$a<ii;$a+=1){ci=(ci+Ca+ii)%ii;var di=wr[ci];if(di&&!di.disabled){var Wa=di[xe.value],Ya=ur.slice(0,-1).concat(Wa);ia(Ya);return}}},ga=function(){if(ur.length>1){var Ca=ur.slice(0,-1);ia(Ca)}else Tn(!1)},Fa=function(){var Ca,ii=((Ca=wr[Mr])===null||Ca===void 0?void 0:Ca[xe.children])||[],ci=ii.find(function(di){return!di.disabled});if(ci){var $a=[].concat((0,h.Z)(ur),[ci[xe.value]]);ia($a)}};p.useImperativeHandle(ae,function(){return{onKeyDown:function(Ca){var ii=Ca.which;switch(ii){case oi.UP:case oi.DOWN:{var ci=0;ii===oi.UP?ci=-1:ii===oi.DOWN&&(ci=1),ci!==0&&ua(ci);break}case oi.LEFT:{if(en)break;qn?Fa():ga();break}case oi.RIGHT:{if(en)break;qn?ga():Fa();break}case oi.BACKSPACE:{en||ga();break}case oi.ENTER:{if(ur.length){var $a=wr[Mr],di=($a==null?void 0:$a[Vn])||[];di.length?xt(di.map(function(Wa){return Wa[xe.value]}),di[di.length-1]):xt(ur,wr[Mr])}break}case oi.ESC:Tn(!1),On&&Ca.stopPropagation()}},onKeyUp:function(){}}})},yi=p.forwardRef(function(ae,J){var xe,ye,Ze,xt,Mt=(0,al.lk)(),Wt=Mt.prefixCls,en=Mt.multiple,Tn=Mt.searchValue,On=Mt.toggleOpen,qn=Mt.notFoundContent,nr=Mt.direction,hr=p.useRef(),ur=nr==="rtl",Mr=p.useContext(Zu),wr=Mr.options,ia=Mr.values,ua=Mr.halfValues,ga=Mr.fieldNames,Fa=Mr.changeOnSelect,ai=Mr.onSelect,Ca=Mr.searchOptions,ii=Mr.dropdownPrefixCls,ci=Mr.loadData,$a=Mr.expandTrigger,di=ii||Wt,Wa=p.useState([]),Ya=(0,y.Z)(Wa,2),li=Ya[0],ti=Ya[1],Ba=function(As){if(!(!ci||Tn)){var Ks=uu(As,wr,ga),Cc=Ks.map(function(_f){var sd=_f.option;return sd}),qc=Cc[Cc.length-1];if(qc&&!lu(qc,ga)){var Of=ws(As);ti(function(_f){return[].concat((0,h.Z)(_f),[Of])}),ci(Cc)}}};p.useEffect(function(){li.length&&li.forEach(function(Ul){var As=Tc(Ul),Ks=uu(As,wr,ga,!0).map(function(qc){var Of=qc.option;return Of}),Cc=Ks[Ks.length-1];(!Cc||Cc[ga.children]||lu(Cc,ga))&&ti(function(qc){return qc.filter(function(Of){return Of!==Ul})})})},[wr,li,ga]);var Ni=p.useMemo(function(){return new Set(fc(ia))},[ia]),ji=p.useMemo(function(){return new Set(fc(ua))},[ua]),go=xr(),Wi=(0,y.Z)(go,2),uo=Wi[0],wo=Wi[1],Io=function(As){wo(As),Ba(As)},Vo=function(As){var Ks=As.disabled,Cc=lu(As,ga);return!Ks&&(Cc||Fa||en)},bs=function(As,Ks){var Cc=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ai(As),!en&&(Ks||Fa&&($a==="hover"||Cc))&&On(!1)},ts=p.useMemo(function(){return Tn?Ca:wr},[Tn,Ca,wr]),Ws=p.useMemo(function(){for(var Ul=[{options:ts}],As=ts,Ks=function(){var _f=uo[Cc],sd=As.find(function(Su){return Su[ga.value]===_f}),ud=sd==null?void 0:sd[ga.children];if(!(ud==null?void 0:ud.length))return"break";As=ud,Ul.push({options:ud})},Cc=0;Cc<uo.length;Cc+=1){var qc=Ks();if(qc==="break")break}return Ul},[ts,uo,ga]),Al=function(As,Ks){Vo(Ks)&&bs(As,lu(Ks,ga),!0)};ni(J,ts,ga,uo,Io,Al),p.useEffect(function(){for(var Ul=0;Ul<uo.length;Ul+=1){var As,Ks=uo.slice(0,Ul+1),Cc=ws(Ks),qc=(As=hr.current)===null||As===void 0?void 0:As.querySelector('li[data-path-key="'.concat(Cc.replace(/\\{0,2}"/g,'\\"'),'"]'));qc&&hu(qc)}},[uo]);var Ql=!((xe=Ws[0])===null||xe===void 0||(ye=xe.options)===null||ye===void 0?void 0:ye.length),zs=[(Ze={},(0,v.Z)(Ze,ga.value,"__EMPTY__"),(0,v.Z)(Ze,_n,qn),(0,v.Z)(Ze,"disabled",!0),Ze)],_c=(0,d.Z)((0,d.Z)({},ae),{},{multiple:!Ql&&en,onSelect:bs,onActive:Io,onToggleOpen:On,checkedSet:Ni,halfCheckedSet:ji,loadingKeys:li,isSelectable:Vo}),hc=Ql?[{options:zs}]:Ws,Hs=hc.map(function(Ul,As){var Ks=uo.slice(0,As),Cc=uo[As];return p.createElement(ir,(0,Da.Z)({key:As},_c,{prefixCls:di,options:Ul.options,prevValuePath:Ks,activeValue:Cc}))});return p.createElement("div",{className:ze()("".concat(di,"-menus"),(xt={},(0,v.Z)(xt,"".concat(di,"-menu-empty"),Ql),(0,v.Z)(xt,"".concat(di,"-rtl"),ur),xt)),ref:hr},Hs)}),Zo=yi;function is(ae){var J=ae.onPopupVisibleChange,xe=ae.popupVisible,ye=ae.popupClassName,Ze=ae.popupPlacement;warning(!J,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(xe===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(ye===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Ze===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function mo(ae,J){if(ae){var xe=function ye(Ze){for(var xt=0;xt<Ze.length;xt++){var Mt=Ze[xt];if(Mt[J==null?void 0:J.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Mt[J==null?void 0:J.children])&&ye(Mt[J==null?void 0:J.children]))return!0}};xe(ae)}}var Ml=null,yc=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function oa(ae){return Array.isArray(ae)&&Array.isArray(ae[0])}function sl(ae){return ae?oa(ae)?ae:(ae.length===0?[]:[ae]).map(function(J){return Array.isArray(J)?J:[J]}):[]}var fl=p.forwardRef(function(ae,J){var xe=ae.id,ye=ae.prefixCls,Ze=ye===void 0?"rc-cascader":ye,xt=ae.fieldNames,Mt=ae.defaultValue,Wt=ae.value,en=ae.changeOnSelect,Tn=ae.onChange,On=ae.displayRender,qn=ae.checkable,nr=ae.searchValue,hr=ae.onSearch,ur=ae.showSearch,Mr=ae.expandTrigger,wr=ae.options,ia=ae.dropdownPrefixCls,ua=ae.loadData,ga=ae.popupVisible,Fa=ae.open,ai=ae.popupClassName,Ca=ae.dropdownClassName,ii=ae.dropdownMenuColumnStyle,ci=ae.popupPlacement,$a=ae.placement,di=ae.onDropdownVisibleChange,Wa=ae.onPopupVisibleChange,Ya=ae.expandIcon,li=Ya===void 0?">":Ya,ti=ae.loadingIcon,Ba=ae.children,Ni=ae.dropdownMatchSelectWidth,ji=Ni===void 0?!1:Ni,go=ae.showCheckedStrategy,Wi=go===void 0?Hc:go,uo=(0,_.Z)(ae,yc),wo=(0,ml.ZP)(xe),Io=!!qn,Vo=ku(Mt,{value:Wt,postState:sl}),bs=(0,y.Z)(Vo,2),ts=bs[0],Ws=bs[1],Al=p.useMemo(function(){return jc(xt)},[JSON.stringify(xt)]),Ql=p.useMemo(function(){return wr||[]},[wr]),zs=bf(Ql,Al),_c=p.useCallback(function(av){var yu=zs();return av.map(function(kp){var Md=yu[kp].nodes;return Md.map(function(kd){return kd[Al.value]})})},[zs,Al]),hc=ku("",{value:nr,postState:function(yu){return yu||""}}),Hs=(0,y.Z)(hc,2),Ul=Hs[0],As=Hs[1],Ks=function(yu,kp){As(yu),kp.source!=="blur"&&hr&&hr(yu)},Cc=_t(ur),qc=(0,y.Z)(Cc,2),Of=qc[0],_f=qc[1],sd=Pt(Ul,Ql,Al,ia||Ze,_f,en),ud=Cu(Ql,Al),Su=p.useMemo(function(){var av=ud(ts),yu=(0,y.Z)(av,2),kp=yu[0],Md=yu[1];if(!Io||!ts.length)return[kp,[],Md];var kd=fc(kp),mv=zs(),Jp=(0,Xs.S)(kd,!0,mv),iv=Jp.checkedKeys,kh=Jp.halfCheckedKeys;return[_c(iv),_c(kh),Md]},[Io,ts,zs,_c,ud]),Uu=(0,y.Z)(Su,3),mp=Uu[0],wv=Uu[1],Au=Uu[2],qd=p.useMemo(function(){var av=fc(mp),yu=of(av,zs,Wi);return[].concat((0,h.Z)(Au),(0,h.Z)(_c(yu)))},[mp,zs,_c,Au,Wi]),Ad=zu(qd,Ql,Al,Io,On),ad=rf(function(av){if(Ws(av),Tn){var yu=sl(av),kp=yu.map(function(mv){return uu(mv,Ql,Al).map(function(Jp){return Jp.option})}),Md=Io?yu:yu[0],kd=Io?kp:kp[0];Tn(Md,kd)}}),fp=rf(function(av){if(As(""),!Io)ad(av);else{var yu=ws(av),kp=fc(mp),Md=fc(wv),kd=kp.includes(yu),mv=Au.some(function(hf){return ws(hf)===yu}),Jp=mp,iv=Au;if(mv&&!kd)iv=Au.filter(function(hf){return ws(hf)!==yu});else{var kh=kd?kp.filter(function(hf){return hf!==yu}):[].concat((0,h.Z)(kp),[yu]),ym=zs(),cm;if(kd){var Ov=(0,Xs.S)(kh,{checked:!1,halfCheckedKeys:Md},ym);cm=Ov.checkedKeys}else{var rl=(0,Xs.S)(kh,!0,ym);cm=rl.checkedKeys}var sc=of(cm,zs,Wi);Jp=_c(sc)}ad([].concat((0,h.Z)(iv),(0,h.Z)(Jp)))}}),Tv=function(yu,kp){if(kp.type==="clear"){ad([]);return}var Md=kp.values[0].valueCells;fp(Md)},hv=Fa!==void 0?Fa:ga,Bh=Ca||ai,Mh=$a||ci,xp=function(yu){di==null||di(yu),Wa==null||Wa(yu)},Sh=p.useMemo(function(){return{options:Ql,fieldNames:Al,values:mp,halfValues:wv,changeOnSelect:en,onSelect:fp,checkable:qn,searchOptions:sd,dropdownPrefixCls:ia,loadData:ua,expandTrigger:Mr,expandIcon:li,loadingIcon:ti,dropdownMenuColumnStyle:ii}},[Ql,Al,mp,wv,en,fp,qn,sd,ia,ua,Mr,li,ti,ii]),Qf=!(Ul?sd:Ql).length,Nm=Ul&&_f.matchInputWidth||Qf?{}:{minWidth:"auto"};return p.createElement(Zu.Provider,{value:Sh},p.createElement(al.Ac,(0,Da.Z)({},uo,{ref:J,id:wo,prefixCls:Ze,dropdownMatchSelectWidth:ji,dropdownStyle:Nm,displayValues:Ad,onDisplayValuesChange:Tv,mode:Io?"multiple":void 0,searchValue:Ul,onSearch:Ks,showSearch:Of,OptionList:Zo,emptyOptions:Qf,open:hv,dropdownClassName:Bh,placement:Mh,onDropdownVisibleChange:xp,getRawInputElement:function(){return Ba}})))});fl.SHOW_PARENT=Hc,fl.SHOW_CHILD=Vu;var bc=fl,Rf=bc,Ms=o(69252),ff=o(9054),Df=o(21042),Ff=o(99469),Kf=o(10772),xf=o(1358),Sc=o(27495),Wu=o(23827),Du=o(31064),Gd=o(16786),gf=function(ae,J){var xe={};for(var ye in ae)Object.prototype.hasOwnProperty.call(ae,ye)&&J.indexOf(ye)<0&&(xe[ye]=ae[ye]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ye=Object.getOwnPropertySymbols(ae);Ze<ye.length;Ze++)J.indexOf(ye[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ae,ye[Ze])&&(xe[ye[Ze]]=ae[ye[Ze]]);return xe},Vp=Rf.SHOW_CHILD,$c=Rf.SHOW_PARENT;function Yl(ae,J,xe){var ye=ae.toLowerCase().split(J).reduce(function(Mt,Wt,en){return en===0?[Wt]:[].concat((0,h.Z)(Mt),[J,Wt])},[]),Ze=[],xt=0;return ye.forEach(function(Mt,Wt){var en=xt+Mt.length,Tn=ae.slice(xt,en);xt=en,Wt%2==1&&(Tn=p.createElement("span",{className:"".concat(xe,"-menu-item-keyword"),key:"seperator-".concat(Wt)},Tn)),Ze.push(Tn)}),Ze}var Sp=function(J,xe,ye,Ze){var xt=[],Mt=J.toLowerCase();return xe.forEach(function(Wt,en){en!==0&&xt.push(" / ");var Tn=Wt[Ze.label],On=(0,A.Z)(Tn);(On==="string"||On==="number")&&(Tn=Yl(String(Tn),Mt,ye)),xt.push(Tn)}),xt},tp=p.forwardRef(function(ae,J){var xe,ye=ae.prefixCls,Ze=ae.size,xt=ae.disabled,Mt=ae.className,Wt=ae.multiple,en=ae.bordered,Tn=en===void 0?!0:en,On=ae.transitionName,qn=ae.choiceTransitionName,nr=qn===void 0?"":qn,hr=ae.popupClassName,ur=ae.dropdownClassName,Mr=ae.expandIcon,wr=ae.placement,ia=ae.showSearch,ua=ae.allowClear,ga=ua===void 0?!0:ua,Fa=ae.notFoundContent,ai=ae.direction,Ca=ae.getPopupContainer,ii=ae.status,ci=ae.showArrow,$a=gf(ae,["prefixCls","size","disabled","className","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow"]),di=(0,Ms.Z)($a,["suffixIcon"]),Wa=(0,p.useContext)(ff.E_),Ya=Wa.getPopupContainer,li=Wa.getPrefixCls,ti=Wa.renderEmpty,Ba=Wa.direction,Ni=ai||Ba,ji=Ni==="rtl",go=(0,p.useContext)(Sc.aM),Wi=go.status,uo=go.hasFeedback,wo=go.isFormItemInput,Io=go.feedbackIcon,Vo=(0,Gd.F)(Wi,ii),bs=Fa||(ti||Df.Z)("Cascader"),ts=li(),Ws=li("select",ye),Al=li("cascader",ye),Ql=(0,xf.ri)(Ws,ai),zs=Ql.compactSize,_c=Ql.compactItemClassnames,hc=ze()(hr||ur,"".concat(Al,"-dropdown"),(0,v.Z)({},"".concat(Al,"-dropdown-rtl"),Ni==="rtl")),Hs=p.useMemo(function(){if(!ia)return ia;var Au={render:Sp};return(0,A.Z)(ia)==="object"&&(Au=(0,Da.Z)((0,Da.Z)({},Au),ia)),Au},[ia]),Ul=p.useContext(Kf.Z),As=zs||Ze||Ul,Ks=p.useContext(Ff.Z),Cc=xt!=null?xt:Ks,qc=Mr;Mr||(qc=ji?p.createElement(mi.Z,null):p.createElement(Ho.Z,null));var Of=p.createElement("span",{className:"".concat(Ws,"-menu-item-loading-icon")},p.createElement(G.Z,{spin:!0})),_f=p.useMemo(function(){return Wt?p.createElement("span",{className:"".concat(Al,"-checkbox-inner")}):!1},[Wt]),sd=ci!==void 0?ci:ae.loading||!Wt,ud=(0,Wu.Z)((0,Da.Z)((0,Da.Z)({},ae),{hasFeedback:uo,feedbackIcon:Io,showArrow:sd,multiple:Wt,prefixCls:Ws})),Su=ud.suffixIcon,Uu=ud.removeIcon,mp=ud.clearIcon,wv=function(){return wr!==void 0?wr:ai==="rtl"?"bottomRight":"bottomLeft"};return p.createElement(Rf,(0,Da.Z)({prefixCls:Ws,className:ze()(!ye&&Al,(xe={},(0,v.Z)(xe,"".concat(Ws,"-lg"),As==="large"),(0,v.Z)(xe,"".concat(Ws,"-sm"),As==="small"),(0,v.Z)(xe,"".concat(Ws,"-rtl"),ji),(0,v.Z)(xe,"".concat(Ws,"-borderless"),!Tn),(0,v.Z)(xe,"".concat(Ws,"-in-form-item"),wo),xe),(0,Gd.Z)(Ws,Vo,uo),_c,Mt),disabled:Cc},di,{direction:Ni,placement:wv(),notFoundContent:bs,allowClear:ga,showSearch:Hs,expandIcon:qc,inputIcon:Su,removeIcon:Uu,clearIcon:mp,loadingIcon:Of,checkable:_f,dropdownClassName:hc,dropdownPrefixCls:ye||Al,choiceTransitionName:(0,Du.mL)(ts,"",nr),transitionName:(0,Du.mL)(ts,(0,Du.q0)(wr),On),getPopupContainer:Ca||Ya,ref:J,showArrow:uo||ci}))});tp.SHOW_PARENT=$c,tp.SHOW_CHILD=Vp;var Rp=tp,df=o(58210),uf=o(87240),Af=o(63746);function Wn(ae){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,xe=arguments.length>2?arguments[2]:void 0,ye=(0,p.useState)(ae),Ze=(0,y.Z)(ye,2),xt=Ze[0],Mt=Ze[1],Wt=Zt(ae);return(0,p.useEffect)(function(){var en=setTimeout(function(){Mt(Wt.current)},J);return function(){return clearTimeout(en)}},xe?[J].concat((0,h.Z)(xe)):void 0),xt}var ca=o(76568),ra=o(80341),Na=o(90190),fi=o(75447),so=o(89591);function vo(ae){return so.Y.includes(ae)}var Ro=function(J){var xe,ye=J.className,Ze=J.prefixCls,xt=J.style,Mt=J.color,Wt=J.children,en=J.text,Tn=J.placement,On=Tn===void 0?"end":Tn,qn=p.useContext(ff.E_),nr=qn.getPrefixCls,hr=qn.direction,ur=nr("ribbon",Ze),Mr=vo(Mt),wr=ze()(ur,"".concat(ur,"-placement-").concat(On),(xe={},(0,v.Z)(xe,"".concat(ur,"-rtl"),hr==="rtl"),(0,v.Z)(xe,"".concat(ur,"-color-").concat(Mt),Mr),xe),ye),ia={},ua={};return Mt&&!Mr&&(ia.background=Mt,ua.color=Mt),p.createElement("div",{className:"".concat(ur,"-wrapper")},Wt,p.createElement("div",{className:wr,style:(0,Da.Z)((0,Da.Z)({},ia),xt)},p.createElement("span",{className:"".concat(ur,"-text")},en),p.createElement("div",{className:"".concat(ur,"-corner"),style:ua})))},So=Ro;function el(ae){var J=ae.prefixCls,xe=ae.value,ye=ae.current,Ze=ae.offset,xt=Ze===void 0?0:Ze,Mt;return xt&&(Mt={position:"absolute",top:"".concat(xt,"00%"),left:0}),p.createElement("span",{style:Mt,className:ze()("".concat(J,"-only-unit"),{current:ye})},xe)}function ul(ae,J,xe){for(var ye=ae,Ze=0;(ye+10)%10!==J;)ye+=xe,Ze+=xe;return Ze}function Xo(ae){var J=ae.prefixCls,xe=ae.count,ye=ae.value,Ze=Number(ye),xt=Math.abs(xe),Mt=p.useState(Ze),Wt=(0,y.Z)(Mt,2),en=Wt[0],Tn=Wt[1],On=p.useState(xt),qn=(0,y.Z)(On,2),nr=qn[0],hr=qn[1],ur=function(){Tn(Ze),hr(xt)};p.useEffect(function(){var Ca=setTimeout(function(){ur()},1e3);return function(){clearTimeout(Ca)}},[Ze]);var Mr,wr;if(en===Ze||Number.isNaN(Ze)||Number.isNaN(en))Mr=[p.createElement(el,(0,Da.Z)({},ae,{key:Ze,current:!0}))],wr={transition:"none"};else{Mr=[];for(var ia=Ze+10,ua=[],ga=Ze;ga<=ia;ga+=1)ua.push(ga);var Fa=ua.findIndex(function(Ca){return Ca%10===en});Mr=ua.map(function(Ca,ii){var ci=Ca%10;return p.createElement(el,(0,Da.Z)({},ae,{key:Ca,value:ci,offset:ii-Fa,current:ii===Fa}))});var ai=nr<xt?1:-1;wr={transform:"translateY(".concat(-ul(en,Ze,ai),"00%)")}}return p.createElement("span",{className:"".concat(J,"-only"),style:wr,onTransitionEnd:ur},Mr)}var lo=function(ae,J){var xe={};for(var ye in ae)Object.prototype.hasOwnProperty.call(ae,ye)&&J.indexOf(ye)<0&&(xe[ye]=ae[ye]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ye=Object.getOwnPropertySymbols(ae);Ze<ye.length;Ze++)J.indexOf(ye[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ae,ye[Ze])&&(xe[ye[Ze]]=ae[ye[Ze]]);return xe},Zs=function(J){var xe=J.prefixCls,ye=J.count,Ze=J.className,xt=J.motionClassName,Mt=J.style,Wt=J.title,en=J.show,Tn=J.component,On=Tn===void 0?"sup":Tn,qn=J.children,nr=lo(J,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),hr=p.useContext(ff.E_),ur=hr.getPrefixCls,Mr=ur("scroll-number",xe),wr=(0,Da.Z)((0,Da.Z)({},nr),{"data-show":en,style:Mt,className:ze()(Mr,Ze,xt),title:Wt}),ia=ye;if(ye&&Number(ye)%1==0){var ua=String(ye).split("");ia=ua.map(function(ga,Fa){return p.createElement(Xo,{prefixCls:Mr,count:Number(ye),value:ga,key:ua.length-Fa})})}return Mt&&Mt.borderColor&&(wr.style=(0,Da.Z)((0,Da.Z)({},Mt),{boxShadow:"0 0 0 1px ".concat(Mt.borderColor," inset")})),qn?(0,fi.Tm)(qn,function(ga){return{className:ze()("".concat(Mr,"-custom-component"),ga==null?void 0:ga.className,xt)}}):p.createElement(On,wr,ia)},Gs=Zs,$s=function(ae,J){var xe={};for(var ye in ae)Object.prototype.hasOwnProperty.call(ae,ye)&&J.indexOf(ye)<0&&(xe[ye]=ae[ye]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ye=Object.getOwnPropertySymbols(ae);Ze<ye.length;Ze++)J.indexOf(ye[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ae,ye[Ze])&&(xe[ye[Ze]]=ae[ye[Ze]]);return xe},Qn=function(J){var xe,ye,Ze=J.prefixCls,xt=J.scrollNumberPrefixCls,Mt=J.children,Wt=J.status,en=J.text,Tn=J.color,On=J.count,qn=On===void 0?null:On,nr=J.overflowCount,hr=nr===void 0?99:nr,ur=J.dot,Mr=ur===void 0?!1:ur,wr=J.size,ia=wr===void 0?"default":wr,ua=J.title,ga=J.offset,Fa=J.style,ai=J.className,Ca=J.showZero,ii=Ca===void 0?!1:Ca,ci=$s(J,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),$a=p.useContext(ff.E_),di=$a.getPrefixCls,Wa=$a.direction,Ya=di("badge",Ze),li=qn>hr?"".concat(hr,"+"):qn,ti=li==="0"||li===0,Ba=qn===null||ti&&!ii,Ni=(Wt!=null||Tn!=null)&&Ba,ji=Mr&&!ti,go=ji?"":li,Wi=(0,p.useMemo)(function(){var Ul=go==null||go==="";return(Ul||ti&&!ii)&&!ji},[go,ti,ii,ji]),uo=(0,p.useRef)(qn);Wi||(uo.current=qn);var wo=uo.current,Io=(0,p.useRef)(go);Wi||(Io.current=go);var Vo=Io.current,bs=(0,p.useRef)(ji);Wi||(bs.current=ji);var ts=(0,p.useMemo)(function(){if(!ga)return(0,Da.Z)({},Fa);var Ul={marginTop:ga[1]};return Wa==="rtl"?Ul.left=parseInt(ga[0],10):Ul.right=-parseInt(ga[0],10),(0,Da.Z)((0,Da.Z)({},Ul),Fa)},[Wa,ga,Fa]),Ws=ua!=null?ua:typeof wo=="string"||typeof wo=="number"?wo:void 0,Al=Wi||!en?null:p.createElement("span",{className:"".concat(Ya,"-status-text")},en),Ql=!wo||(0,A.Z)(wo)!=="object"?void 0:(0,fi.Tm)(wo,function(Ul){return{style:(0,Da.Z)((0,Da.Z)({},ts),Ul.style)}}),zs=ze()((xe={},(0,v.Z)(xe,"".concat(Ya,"-status-dot"),Ni),(0,v.Z)(xe,"".concat(Ya,"-status-").concat(Wt),!!Wt),(0,v.Z)(xe,"".concat(Ya,"-status-").concat(Tn),vo(Tn)),xe)),_c={};Tn&&!vo(Tn)&&(_c.background=Tn);var hc=ze()(Ya,(ye={},(0,v.Z)(ye,"".concat(Ya,"-status"),Ni),(0,v.Z)(ye,"".concat(Ya,"-not-a-wrapper"),!Mt),(0,v.Z)(ye,"".concat(Ya,"-rtl"),Wa==="rtl"),ye),ai);if(!Mt&&Ni){var Hs=ts.color;return p.createElement("span",(0,Da.Z)({},ci,{className:hc,style:ts}),p.createElement("span",{className:zs,style:_c}),en&&p.createElement("span",{style:{color:Hs},className:"".concat(Ya,"-status-text")},en))}return p.createElement("span",(0,Da.Z)({},ci,{className:hc}),Mt,p.createElement(Na.ZP,{visible:!Wi,motionName:"".concat(Ya,"-zoom"),motionAppear:!1,motionDeadline:1e3},function(Ul){var As,Ks=Ul.className,Cc=di("scroll-number",xt),qc=bs.current,Of=ze()((As={},(0,v.Z)(As,"".concat(Ya,"-dot"),qc),(0,v.Z)(As,"".concat(Ya,"-count"),!qc),(0,v.Z)(As,"".concat(Ya,"-count-sm"),ia==="small"),(0,v.Z)(As,"".concat(Ya,"-multiple-words"),!qc&&Vo&&Vo.toString().length>1),(0,v.Z)(As,"".concat(Ya,"-status-").concat(Wt),!!Wt),(0,v.Z)(As,"".concat(Ya,"-status-").concat(Tn),vo(Tn)),As)),_f=(0,Da.Z)({},ts);return Tn&&!vo(Tn)&&(_f=_f||{},_f.background=Tn),p.createElement(Gs,{prefixCls:Cc,show:!Wi,motionClassName:Ks,className:Of,count:Vo,title:Ws,style:_f,key:"scrollNumber"},Ql)}),Al)};Qn.Ribbon=So;var dr=Qn,Xr=o(52436),la={Success:function(J){var xe=J.children;return(0,S.jsx)(dr,{status:"success",text:xe})},Error:function(J){var xe=J.children;return(0,S.jsx)(dr,{status:"error",text:xe})},Default:function(J){var xe=J.children;return(0,S.jsx)(dr,{status:"default",text:xe})},Processing:function(J){var xe=J.children;return(0,S.jsx)(dr,{status:"processing",text:xe})},Warning:function(J){var xe=J.children;return(0,S.jsx)(dr,{status:"warning",text:xe})},success:function(J){var xe=J.children;return(0,S.jsx)(dr,{status:"success",text:xe})},error:function(J){var xe=J.children;return(0,S.jsx)(dr,{status:"error",text:xe})},default:function(J){var xe=J.children;return(0,S.jsx)(dr,{status:"default",text:xe})},processing:function(J){var xe=J.children;return(0,S.jsx)(dr,{status:"processing",text:xe})},warning:function(J){var xe=J.children;return(0,S.jsx)(dr,{status:"warning",text:xe})}},Ra=function(J){var xe=J.color,ye=J.children;return(0,S.jsx)(dr,{color:xe,text:ye})},_i=la,ui=o(78848),ho=o(68137),Oi=o(50532),Fo=o(90407),as=o(76570),Fs=o(59949),Fr=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger"],tl=function(J,xe){return(0,A.Z)(xe)!=="object"?J[xe]||xe:J[xe==null?void 0:xe.value]||xe.label},Js=function(J,xe){var ye=J.label,Ze=J.prefixCls,xt=J.onChange,Mt=J.value,Wt=J.mode,en=J.children,Tn=J.defaultValue,On=J.size,qn=J.showSearch,nr=J.disabled,hr=J.style,ur=J.className,Mr=J.bordered,wr=J.options,ia=J.onSearch,ua=J.allowClear,ga=J.labelInValue,Fa=J.fieldNames,ai=J.lightLabel,Ca=J.labelTrigger,ii=(0,_.Z)(J,Fr),ci=J.placeholder,$a=ci===void 0?ye:ci,di=Fa||{},Wa=di.label,Ya=Wa===void 0?"label":Wa,li=di.value,ti=li===void 0?"value":li,Ba=(0,p.useContext)(w.ZP.ConfigContext),Ni=Ba.getPrefixCls,ji=Ni("pro-field-select-light-select"),go=(0,p.useState)(!1),Wi=(0,y.Z)(go,2),uo=Wi[0],wo=Wi[1],Io=(0,p.useState)(""),Vo=(0,y.Z)(Io,2),bs=Vo[0],ts=Vo[1],Ws=(0,p.useMemo)(function(){var Ql={};return wr==null||wr.forEach(function(zs){var _c=zs[Ya],hc=zs[ti];Ql[hc]=_c||hc}),Ql},[Ya,wr,ti]),Al=Array.isArray(Mt)?Mt.map(function(Ql){return tl(Ws,Ql)}):tl(Ws,Mt);return(0,S.jsxs)("div",{className:ze()(ji,(0,v.Z)({},"".concat(ji,"-searchable"),qn),ur),style:hr,onClick:function(zs){var _c,hc,Hs;if(!nr){var Ul=ai==null||(_c=ai.current)===null||_c===void 0||(hc=_c.labelRef)===null||hc===void 0||(Hs=hc.current)===null||Hs===void 0?void 0:Hs.contains(zs.target);wo(Ul?!uo:!0)}},children:[(0,S.jsx)(Fo.Z,(0,d.Z)((0,d.Z)({},ii),{},{allowClear:ua,value:Mt,mode:Wt,labelInValue:ga,size:On,disabled:nr,onChange:function(zs,_c){xt==null||xt(zs,_c),Wt!=="multiple"&&setTimeout(function(){wo(!1)},0)},bordered:Mr,showSearch:qn,onSearch:ia,style:hr,dropdownRender:function(zs){return(0,S.jsxs)("div",{ref:xe,children:[qn&&(0,S.jsx)("div",{style:{margin:"4px 8px"},children:(0,S.jsx)(Oi.Z,{value:bs,allowClear:ua,onChange:function(hc){ts(hc.target.value.toLowerCase()),ia==null||ia(hc.target.value)},onKeyDown:function(hc){hc.stopPropagation()},style:{width:"100%"},prefix:(0,S.jsx)(as.Z,{})})}),zs]})},open:uo,onDropdownVisibleChange:function(zs){zs||setTimeout(function(){ts("")},0),Ca||wo(zs)},prefixCls:Ze,options:bs?wr==null?void 0:wr.filter(function(Ql){var zs,_c,hc,Hs,Ul;return((zs=String(Ql[Ya]))===null||zs===void 0||(_c=zs.toLowerCase())===null||_c===void 0?void 0:_c.includes(bs))||((hc=Ql[ti])===null||hc===void 0||(Hs=hc.toString())===null||Hs===void 0||(Ul=Hs.toLowerCase())===null||Ul===void 0?void 0:Ul.includes(bs))}):wr})),(0,S.jsx)(Pi.Z,{ellipsis:!0,size:On,label:ye,placeholder:$a,disabled:nr,expanded:uo,bordered:Mr,allowClear:ua,value:Al||(Mt==null?void 0:Mt.label)||Mt,onClear:function(){xt==null||xt(void 0,void 0)},ref:ai})]})},Us=p.forwardRef(Js),os=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames"],El=Fo.Z.Option,Bs=Fo.Z.OptGroup,gc=function(J,xe){var ye=J.optionItemRender,Ze=J.mode,xt=J.onSearch,Mt=J.onFocus,Wt=J.onChange,en=J.autoClearSearchValue,Tn=J.searchOnFocus,On=Tn===void 0?!1:Tn,qn=J.resetAfterSelect,nr=qn===void 0?!1:qn,hr=J.fetchDataOnSearch,ur=hr===void 0?!0:hr,Mr=J.optionFilterProp,wr=Mr===void 0?"label":Mr,ia=J.optionLabelProp,ua=ia===void 0?"label":ia,ga=J.className,Fa=J.disabled,ai=J.options,Ca=J.fetchData,ii=J.resetData,ci=J.prefixCls,$a=J.onClear,di=J.searchValue,Wa=J.showSearch,Ya=J.fieldNames,li=(0,_.Z)(J,os),ti=Ya||{},Ba=ti.label,Ni=Ba===void 0?"label":Ba,ji=ti.value,go=ji===void 0?"value":ji,Wi=ti.options,uo=Wi===void 0?"options":Wi,wo=(0,p.useState)(di),Io=(0,y.Z)(wo,2),Vo=Io[0],bs=Io[1],ts=(0,p.useRef)();(0,p.useImperativeHandle)(xe,function(){return ts.current}),(0,p.useEffect)(function(){if(li.autoFocus){var Hs;ts==null||(Hs=ts.current)===null||Hs===void 0||Hs.focus()}},[li.autoFocus]),(0,p.useEffect)(function(){bs(di)},[di]);var Ws=(0,p.useContext)(w.ZP.ConfigContext),Al=Ws.getPrefixCls,Ql=Al("pro-filed-search-select",ci),zs=ze()(Ql,ga,(0,v.Z)({},"".concat(Ql,"-disabled"),Fa)),_c=function(Ul,As){return Array.isArray(Ul)&&Ul.length>0?Ul.map(function(Ks,Cc){var qc=As==null?void 0:As[Cc],Of=(qc==null?void 0:qc["data-item"])||{};return(0,d.Z)((0,d.Z)({},Of),Ks)}):[]},hc=function Hs(Ul){return Ul.map(function(As){var Ks,Cc=As.disabled,qc=As.className,Of=As.optionType,_f=As[Ni],sd=As[go],ud=(Ks=As[uo])!==null&&Ks!==void 0?Ks:[];return Of==="optGroup"||As.options?(0,S.jsx)(Bs,{label:_f,children:Hs(ud)},sd):(0,p.createElement)(El,(0,d.Z)((0,d.Z)({},As),{},{value:sd,key:sd||(_f==null?void 0:_f.toString()),disabled:Cc,"data-item":As,className:"".concat(Ql,"-option ").concat(qc||""),label:_f}),(ye==null?void 0:ye(As))||_f)})};return(0,S.jsx)(Fo.Z,(0,d.Z)((0,d.Z)({ref:ts,className:zs,allowClear:!0,autoClearSearchValue:en,disabled:Fa,mode:Ze,showSearch:Wa,searchValue:Vo,optionFilterProp:wr,optionLabelProp:ua,onClear:function(){$a==null||$a(),Ca(""),Wa&&bs("")}},li),{},{onSearch:Wa?function(Hs){ur&&Ca(Hs),xt==null||xt(Hs),bs(Hs)}:void 0,onChange:function(Ul,As){Wa&&en&&(Vo||Ca(""),xt==null||xt(""),bs(""));for(var Ks=arguments.length,Cc=new Array(Ks>2?Ks-2:0),qc=2;qc<Ks;qc++)Cc[qc-2]=arguments[qc];if(!J.labelInValue){Wt==null||Wt.apply(void 0,[Ul,As].concat(Cc));return}if(Ze!=="multiple"){var Of=As&&As["data-item"];!Ul||!Of?Wt==null||Wt.apply(void 0,[Ul,As].concat(Cc)):Wt==null||Wt.apply(void 0,[(0,d.Z)((0,d.Z)({},Ul),Of),As].concat(Cc));return}var _f=_c(Ul,As);Wt==null||Wt.apply(void 0,[_f,As].concat(Cc)),nr&&ii()},onFocus:function(Ul){On&&Ca(""),Mt==null||Mt(Ul)},children:hc(ai||[])}))},kr=p.forwardRef(gc),Sa=["value","text"],Hi=["mode","valueEnum","render","renderFormItem","request","fieldProps","plain","children","light","proFieldKey","params","label","bordered","id","lightLabel","labelTrigger"],Co=function(J){return Xc(J)==="map"?J:new Map(Object.entries(J||{}))},Ds=function ae(J,xe){if(Array.isArray(J))return(0,S.jsx)(qt.Z,{split:",",size:2,children:J.map(function(en){return ae(en,xe)})});var ye=Co(xe);if(!ye.has(J)&&!ye.has("".concat(J)))return(J==null?void 0:J.label)||J;var Ze=ye.get(J)||ye.get("".concat(J));if(!Ze)return(J==null?void 0:J.label)||J;var xt=Ze.status,Mt=Ze.color,Wt=_i[xt||"Init"];return Wt?(0,S.jsx)(Wt,{children:Ze.text}):Mt?(0,S.jsx)(Ra,{color:Mt,children:Ze.text}):Ze.text||Ze},Dl=function(J){for(var xe=J.label,ye=J.words,Ze=(0,p.useContext)(w.ZP.ConfigContext),xt=Ze.getPrefixCls,Mt=xt("pro-select-item-option-content-light"),Wt=xt("pro-select-item-option-content"),en=new RegExp(ye.map(function(ur){return ur.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}).join("|"),"gi"),Tn=xe,On=[];Tn.length;){var qn=en.exec(Tn);if(!qn){On.push(Tn);break}var nr=qn.index,hr=qn[0].length+nr;On.push(Tn.slice(0,nr),p.createElement("span",{className:Mt},Tn.slice(nr,hr))),Tn=Tn.slice(hr)}return p.createElement.apply(p,["div",{className:Wt}].concat(On))};function Xc(ae){var J=Object.prototype.toString.call(ae).match(/^\[object (.*)\]$/)[1].toLowerCase();return J==="string"&&(0,A.Z)(ae)==="object"?"object":ae===null?"null":ae===void 0?"undefined":J}function Fl(ae,J){var xe,ye;if(!J||(ae==null||(xe=ae.label)===null||xe===void 0?void 0:xe.toString().toLowerCase().includes(J.toLowerCase()))||(ae==null||(ye=ae.value)===null||ye===void 0?void 0:ye.toString().toLowerCase().includes(J.toLowerCase())))return!0;if(ae.children||ae.options){var Ze=[].concat((0,h.Z)(ae.children||[]),[ae.options||[]]).find(function(xt){return Fl(xt,J)});if(Ze)return!0}return!1}var Eu=function(J){var xe=[],ye=Co(J);return ye.forEach(function(Ze,xt){var Mt=ye.get(xt)||ye.get("".concat(xt));if(!!Mt){if((0,A.Z)(Mt)==="object"&&(Mt==null?void 0:Mt.text)){xe.push({text:Mt==null?void 0:Mt.text,value:xt,label:Mt==null?void 0:Mt.text,disabled:Mt.disabled});return}xe.push({text:Mt,value:xt})}}),xe},cc=function(J){var xe,ye,Ze,xt,Mt=J.cacheForSwr,Wt=J.fieldProps,en=(0,p.useState)(J.defaultKeyWords),Tn=(0,y.Z)(en,2),On=Tn[0],qn=Tn[1],nr=(0,p.useState)(function(){return J.proFieldKey?J.proFieldKey.toString():J.request?(0,Af.x)():"no-fetch"}),hr=(0,y.Z)(nr,1),ur=hr[0],Mr=(0,p.useRef)(ur),wr=(0,p.useCallback)(function(Ya){return Eu(Co(Ya)).map(function(li){var ti=li.value,Ba=li.text,Ni=(0,_.Z)(li,Sa);return(0,d.Z)({label:Ba,value:ti,key:ti},Ni)})},[]),ia=(0,p.useMemo)(function(){if(!!Wt){var Ya=(Wt==null?void 0:Wt.options)||(Wt==null?void 0:Wt.treeData);if(!!Ya){var li=Wt.fieldNames||{},ti=li.children,Ba=li.label,Ni=li.value,ji=function go(Wi,uo){if(!!(Wi==null?void 0:Wi.length))for(var wo=Wi.length,Io=0;Io<wo;){var Vo=Wi[Io++];(Vo[ti]||Vo[Ba]||Vo[Ni])&&(Vo[uo]=Vo[uo==="children"?ti:uo==="label"?Ba:Ni],go(Vo[ti],uo))}};return ti&&ji(Ya,"children"),Ba&&ji(Ya,"label"),Ni&&ji(Ya,"value"),Ya}}},[Wt]),ua=(0,Ge.Z)(function(){return J.valueEnum?wr(J.valueEnum):[]},{value:ia}),ga=(0,y.Z)(ua,2),Fa=ga[0],ai=ga[1];et(function(){var Ya,li;!J.valueEnum||((Ya=J.fieldProps)===null||Ya===void 0?void 0:Ya.options)||((li=J.fieldProps)===null||li===void 0?void 0:li.treeData)||ai(wr(J.valueEnum))},[J.valueEnum]);var Ca=Wn([Mr.current,J.params,On],(xe=(ye=J.debounceTime)!==null&&ye!==void 0?ye:J==null||(Ze=J.fieldProps)===null||Ze===void 0?void 0:Ze.debounceTime)!==null&&xe!==void 0?xe:0,[J.params,On]),ii=(0,ca.ZP)(function(){return J.request?Ca:null},function(Ya,li,ti){return J.request((0,d.Z)((0,d.Z)({},li),{},{keyWords:ti}),J)},{revalidateIfStale:!Mt,revalidateOnReconnect:Mt,shouldRetryOnError:!1,revalidateOnFocus:!1}),ci=ii.data,$a=ii.mutate,di=ii.isValidating,Wa=(0,p.useMemo)(function(){var Ya,li,ti=Fa==null?void 0:Fa.map(function(Ba){if(typeof Ba=="string")return{label:Ba,value:Ba};if(Ba.children||Ba.options){var Ni=[].concat((0,h.Z)(Ba.children||[]),(0,h.Z)(Ba.options||[])).filter(function(ji){return Fl(ji,On)});return(0,d.Z)((0,d.Z)({},Ba),{},{children:Ni,options:Ni})}return Ba});return((Ya=J.fieldProps)===null||Ya===void 0?void 0:Ya.filterOption)===!0||((li=J.fieldProps)===null||li===void 0?void 0:li.filterOption)===void 0?ti==null?void 0:ti.filter(function(Ba){return Ba?On?Fl(Ba,On):!0:!1}):ti},[Fa,On,(xt=J.fieldProps)===null||xt===void 0?void 0:xt.filterOption]);return[di,J.request?ci:Wa,function(Ya){qn(Ya)},function(){qn(void 0),$a([],!1)}]},Hu=function(J,xe){var ye=J.mode,Ze=J.valueEnum,xt=J.render,Mt=J.renderFormItem,Wt=J.request,en=J.fieldProps,Tn=J.plain,On=J.children,qn=J.light,nr=J.proFieldKey,hr=J.params,ur=J.label,Mr=J.bordered,wr=J.id,ia=J.lightLabel,ua=J.labelTrigger,ga=(0,_.Z)(J,Hi),Fa=(0,p.useRef)(),ai=(0,F.YB)(),Ca=(0,p.useRef)(""),ii=en.fieldNames;(0,p.useEffect)(function(){Ca.current=en==null?void 0:en.searchValue},[en==null?void 0:en.searchValue]);var ci=cc(J),$a=(0,y.Z)(ci,4),di=$a[0],Wa=$a[1],Ya=$a[2],li=$a[3],ti=(0,p.useContext)(w.ZP.SizeContext);(0,p.useImperativeHandle)(xe,function(){return(0,d.Z)((0,d.Z)({},Fa.current||{}),{},{fetchData:function(){return Ya()}})});var Ba=(0,p.useMemo)(function(){if(ye==="read"){var Wi=ii||{},uo=Wi.label,wo=uo===void 0?"label":uo,Io=Wi.value,Vo=Io===void 0?"value":Io,bs=Wi.options,ts=bs===void 0?"options":bs,Ws=new Map,Al=function Ql(zs){if(!(zs==null?void 0:zs.length))return Ws;for(var _c=zs.length,hc=0;hc<_c;){var Hs=zs[hc++];Ws.set(Hs[Vo],Hs[wo]),Ql(Hs[ts])}return Ws};return Al(Wa)}},[ii,ye,Wa]);if(ye==="read"){var Ni=(0,S.jsx)(S.Fragment,{children:Ds(ga.text,Co(Ze||Ba))});return xt?xt(ga.text,(0,d.Z)({mode:ye},en),Ni)||null:Ni}if(ye==="edit"||ye==="update"){var ji=function(){return qn?(0,S.jsx)(Us,(0,d.Z)({bordered:Mr,id:wr,loading:di,ref:Fa,allowClear:!0,size:ti,options:Wa,label:ur,placeholder:ai.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),lightLabel:ia,labelTrigger:ua},en)):(0,S.jsx)(kr,(0,d.Z)((0,d.Z)({className:ga.className,style:(0,d.Z)({minWidth:100},ga.style),bordered:Mr,id:wr,loading:di,ref:Fa,allowClear:!0,notFoundContent:di?(0,S.jsx)(uf.Z,{size:"small"}):en==null?void 0:en.notFoundContent,fetchData:function(wo){Ca.current=wo,Ya(wo)},resetData:li,optionItemRender:function(wo){return typeof wo.label=="string"&&Ca.current?(0,S.jsx)(Dl,{label:wo.label,words:[Ca.current]}):wo.label},placeholder:ai.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),label:ur},en),{},{options:Wa}),"SearchSelect")},go=ji();return Mt?Mt(ga.text,(0,d.Z)((0,d.Z)({mode:ye},en),{},{options:Wa}),go)||null:go}return null},dc=p.forwardRef(Hu),iu=["radioType","renderFormItem","mode","render","label","light"],Gc=function(J,xe){var ye,Ze=J.radioType,xt=J.renderFormItem,Mt=J.mode,Wt=J.render,en=J.label,Tn=J.light,On=(0,_.Z)(J,iu),qn=(0,p.useContext)(w.ZP.ConfigContext),nr=qn.getPrefixCls,hr=nr("pro-field-cascader"),ur=cc(On),Mr=(0,y.Z)(ur,3),wr=Mr[0],ia=Mr[1],ua=Mr[2],ga=(0,F.YB)(),Fa=(0,p.useRef)(),ai=(0,p.useContext)(w.ZP.SizeContext),Ca=(0,p.useState)(!1),ii=(0,y.Z)(Ca,2),ci=ii[0],$a=ii[1];(0,p.useImperativeHandle)(xe,function(){return(0,d.Z)((0,d.Z)({},Fa.current||{}),{},{fetchData:function(){return ua()}})});var di=(0,p.useMemo)(function(){var go;if(Mt==="read"){var Wi=((go=On.fieldProps)===null||go===void 0?void 0:go.fieldNames)||{},uo=Wi.value,wo=uo===void 0?"value":uo,Io=Wi.label,Vo=Io===void 0?"label":Io,bs=Wi.children,ts=bs===void 0?"children":bs,Ws=new Map,Al=function Ql(zs){if(!(zs==null?void 0:zs.length))return Ws;for(var _c=zs.length,hc=0;hc<_c;){var Hs=zs[hc++];Ws.set(Hs[wo],Hs[Vo]),Ql(Hs[ts])}return Ws};return Al(ia)}},[Mt,ia,(ye=On.fieldProps)===null||ye===void 0?void 0:ye.fieldNames]);if(Mt==="read"){var Wa=(0,S.jsx)(S.Fragment,{children:Ds(On.text,Co(On.valueEnum||di))});return Wt?Wt(On.text,(0,d.Z)({mode:Mt},On.fieldProps),Wa)||null:Wa}if(Mt==="edit"){var Ya,li=(0,S.jsx)(Rp,(0,d.Z)((0,d.Z)({bordered:!Tn,ref:Fa,open:ci,onDropdownVisibleChange:$a,suffixIcon:wr?(0,S.jsx)(G.Z,{}):Tn?null:void 0,placeholder:ga.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),allowClear:Tn?!1:void 0},On.fieldProps),{},{className:ze()((Ya=On.fieldProps)===null||Ya===void 0?void 0:Ya.className,hr),options:ia}));if(xt&&(li=xt(On.text,(0,d.Z)({mode:Mt},On.fieldProps),li)||null),Tn){var ti=On.fieldProps,Ba=ti.disabled,Ni=ti.allowClear,ji=ti.placeholder;return(0,S.jsx)(Pi.Z,{label:en,disabled:Ba,placeholder:ji,size:ai,allowClear:Ni,bordered:On.bordered,value:li,onLabelClick:function(){return $a(!ci)},onClear:function(){var Wi,uo;return(Wi=On.fieldProps)===null||Wi===void 0||(uo=Wi.onChange)===null||uo===void 0?void 0:uo.call(Wi,void 0,void 0,{})}})}return li}return null},Jc=p.forwardRef(Gc),pf=o(44862),hn=o(42091),dn=o(32517),tr=["layout","renderFormItem","mode","render"],Mn=function(J,xe){var ye=J.layout,Ze=ye===void 0?"horizontal":ye,xt=J.renderFormItem,Mt=J.mode,Wt=J.render,en=(0,_.Z)(J,tr),Tn=(0,p.useContext)(w.ZP.ConfigContext),On=Tn.getPrefixCls,qn=On("pro-field-checkbox"),nr=cc(en),hr=(0,y.Z)(nr,3),ur=hr[0],Mr=hr[1],wr=hr[2],ia=(0,p.useRef)();if((0,p.useImperativeHandle)(xe,function(){return(0,d.Z)((0,d.Z)({},ia.current||{}),{},{fetchData:function(){return wr()}})}),ur)return(0,S.jsx)(uf.Z,{size:"small"});if(Mt==="read"){var ua=(Mr==null?void 0:Mr.length)?Mr==null?void 0:Mr.reduce(function(Ca,ii){var ci;return(0,d.Z)((0,d.Z)({},Ca),{},(0,v.Z)({},(ci=ii.value)!==null&&ci!==void 0?ci:"",ii.label))},{}):void 0,ga=Ds(en.text,Co(en.valueEnum||ua));return Wt?Wt(en.text,(0,d.Z)({mode:Mt},en.fieldProps),(0,S.jsx)(S.Fragment,{children:ga}))||null:(0,S.jsx)(qt.Z,{children:ga})}if(Mt==="edit"){var Fa,ai=(0,S.jsx)(hn.Z.Group,(0,d.Z)((0,d.Z)({},en.fieldProps),{},{className:ze()((Fa=en.fieldProps)===null||Fa===void 0?void 0:Fa.className,"".concat(qn,"-").concat(Ze)),options:Mr}));return xt?xt(en.text,(0,d.Z)({mode:Mt},en.fieldProps),ai)||null:ai}return null},Lr=p.forwardRef(Mn),sa=function(J,xe){if(typeof J!="string")return J;try{if(xe==="json")return JSON.stringify(JSON.parse(J),null,2)}catch(ye){}return J},Ma=function(J,xe){var ye=J.text,Ze=J.mode,xt=J.render,Mt=J.language,Wt=Mt===void 0?"text":Mt,en=J.renderFormItem,Tn=J.plain,On=J.fieldProps,qn=sa(ye,Wt);if(Ze==="read"){var nr=(0,S.jsx)("pre",(0,d.Z)((0,d.Z)({ref:xe},On),{},{style:(0,d.Z)({padding:16,overflow:"auto",fontSize:"85%",lineHeight:1.45,backgroundColor:"#f6f8fa",borderRadius:3,width:"min-content"},On.style),children:(0,S.jsx)("code",{children:qn})}));return xt?xt(qn,(0,d.Z)((0,d.Z)({mode:Ze},On),{},{ref:xe}),nr):nr}if(Ze==="edit"||Ze==="update"){var hr=(0,S.jsx)(Oi.Z.TextArea,(0,d.Z)((0,d.Z)({rows:5},On),{},{ref:xe}));return Tn&&(hr=(0,S.jsx)(Oi.Z,(0,d.Z)((0,d.Z)({},On),{},{ref:xe}))),en?en(qn,(0,d.Z)((0,d.Z)({mode:Ze},On),{},{ref:xe}),hr):hr}return null},Ia=p.forwardRef(Ma),Ja=o(34276),pi=o(56466),fo=o(31147),us=o(82492),xo=o.n(us),Qo=function(J,xe,ye,Ze,xt){var Mt=xt.clientWidth,Wt=xt.clientHeight,en=typeof J.pageX=="number"?J.pageX:J.touches[0].pageX,Tn=typeof J.pageY=="number"?J.pageY:J.touches[0].pageY,On=en-(xt.getBoundingClientRect().left+window.pageXOffset),qn=Tn-(xt.getBoundingClientRect().top+window.pageYOffset);if(ye==="vertical"){var nr;if(qn<0?nr=0:qn>Wt?nr=1:nr=Math.round(qn*100/Wt)/100,xe.a!==nr)return{h:xe.h,s:xe.s,l:xe.l,a:nr,source:"rgb"}}else{var hr;if(On<0?hr=0:On>Mt?hr=1:hr=Math.round(On*100/Mt)/100,Ze!==hr)return{h:xe.h,s:xe.s,l:xe.l,a:hr,source:"rgb"}}return null},gs={},ds=function(J,xe,ye,Ze){if(typeof document=="undefined"&&!Ze)return null;var xt=Ze?new Ze:document.createElement("canvas");xt.width=ye*2,xt.height=ye*2;var Mt=xt.getContext("2d");return Mt?(Mt.fillStyle=J,Mt.fillRect(0,0,xt.width,xt.height),Mt.fillStyle=xe,Mt.fillRect(0,0,ye,ye),Mt.translate(ye,ye),Mt.fillRect(0,0,ye,ye),xt.toDataURL()):null},nl=function(J,xe,ye,Ze){var xt="".concat(J,"-").concat(xe,"-").concat(ye).concat(Ze?"-server":"");if(gs[xt])return gs[xt];var Mt=ds(J,xe,ye,Ze);return gs[xt]=Mt,Mt};function nc(ae){return nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},nc(ae)}function Kl(ae,J){var xe=Object.keys(ae);if(Object.getOwnPropertySymbols){var ye=Object.getOwnPropertySymbols(ae);J&&(ye=ye.filter(function(Ze){return Object.getOwnPropertyDescriptor(ae,Ze).enumerable})),xe.push.apply(xe,ye)}return xe}function mu(ae){for(var J=1;J<arguments.length;J++){var xe=arguments[J]!=null?arguments[J]:{};J%2?Kl(Object(xe),!0).forEach(function(ye){xc(ae,ye,xe[ye])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ae,Object.getOwnPropertyDescriptors(xe)):Kl(Object(xe)).forEach(function(ye){Object.defineProperty(ae,ye,Object.getOwnPropertyDescriptor(xe,ye))})}return ae}function xc(ae,J,xe){return J=Ll(J),J in ae?Object.defineProperty(ae,J,{value:xe,enumerable:!0,configurable:!0,writable:!0}):ae[J]=xe,ae}function Ll(ae){var J=wc(ae,"string");return nc(J)==="symbol"?J:String(J)}function wc(ae,J){if(nc(ae)!=="object"||ae===null)return ae;var xe=ae[Symbol.toPrimitive];if(xe!==void 0){var ye=xe.call(ae,J||"default");if(nc(ye)!=="object")return ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(ae)}var Xu=function(J){var xe=J.white,ye=J.grey,Ze=J.size,xt=J.renderers,Mt=J.borderRadius,Wt=J.boxShadow,en=J.children,Tn=(0,fo.ZP)({default:{grid:{borderRadius:Mt,boxShadow:Wt,absolute:"0px 0px 0px 0px",background:"url(".concat(nl(xe,ye,Ze,xt.canvas),") center left")}}});return(0,p.isValidElement)(en)?p.cloneElement(en,mu(mu({},en.props),{},{style:mu(mu({},en.props.style),Tn.grid)})):p.createElement("div",{style:Tn.grid})};Xu.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var _u=Xu;function wu(ae){return wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},wu(ae)}function fu(ae,J){var xe=Object.keys(ae);if(Object.getOwnPropertySymbols){var ye=Object.getOwnPropertySymbols(ae);J&&(ye=ye.filter(function(Ze){return Object.getOwnPropertyDescriptor(ae,Ze).enumerable})),xe.push.apply(xe,ye)}return xe}function Kc(ae){for(var J=1;J<arguments.length;J++){var xe=arguments[J]!=null?arguments[J]:{};J%2?fu(Object(xe),!0).forEach(function(ye){td(ae,ye,xe[ye])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ae,Object.getOwnPropertyDescriptors(xe)):fu(Object(xe)).forEach(function(ye){Object.defineProperty(ae,ye,Object.getOwnPropertyDescriptor(xe,ye))})}return ae}function td(ae,J,xe){return J=Tu(J),J in ae?Object.defineProperty(ae,J,{value:xe,enumerable:!0,configurable:!0,writable:!0}):ae[J]=xe,ae}function Ic(ae,J){if(!(ae instanceof J))throw new TypeError("Cannot call a class as a function")}function tu(ae,J){for(var xe=0;xe<J.length;xe++){var ye=J[xe];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(ae,Tu(ye.key),ye)}}function jf(ae,J,xe){return J&&tu(ae.prototype,J),xe&&tu(ae,xe),Object.defineProperty(ae,"prototype",{writable:!1}),ae}function Tu(ae){var J=Ed(ae,"string");return wu(J)==="symbol"?J:String(J)}function Ed(ae,J){if(wu(ae)!=="object"||ae===null)return ae;var xe=ae[Symbol.toPrimitive];if(xe!==void 0){var ye=xe.call(ae,J||"default");if(wu(ye)!=="object")return ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(ae)}function vd(ae,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function");ae.prototype=Object.create(J&&J.prototype,{constructor:{value:ae,writable:!0,configurable:!0}}),Object.defineProperty(ae,"prototype",{writable:!1}),J&&Gu(ae,J)}function Gu(ae,J){return Gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ye,Ze){return ye.__proto__=Ze,ye},Gu(ae,J)}function Op(ae){var J=hd();return function(){var ye=Ip(ae),Ze;if(J){var xt=Ip(this).constructor;Ze=Reflect.construct(ye,arguments,xt)}else Ze=ye.apply(this,arguments);return np(this,Ze)}}function np(ae,J){if(J&&(wu(J)==="object"||typeof J=="function"))return J;if(J!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $d(ae)}function $d(ae){if(ae===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae}function hd(){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(ae){return!1}}function Ip(ae){return Ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(xe){return xe.__proto__||Object.getPrototypeOf(xe)},Ip(ae)}var dd=function(ae){vd(xe,ae);var J=Op(xe);function xe(){var ye;Ic(this,xe);for(var Ze=arguments.length,xt=new Array(Ze),Mt=0;Mt<Ze;Mt++)xt[Mt]=arguments[Mt];return ye=J.call.apply(J,[this].concat(xt)),ye.handleChange=function(Wt){var en=Qo(Wt,ye.props.hsl,ye.props.direction,ye.props.a,ye.container);en&&typeof ye.props.onChange=="function"&&ye.props.onChange(en,Wt)},ye.handleMouseDown=function(Wt){ye.handleChange(Wt),window.addEventListener("mousemove",ye.handleChange),window.addEventListener("mouseup",ye.handleMouseUp)},ye.handleMouseUp=function(){ye.unbindEventListeners()},ye.unbindEventListeners=function(){window.removeEventListener("mousemove",ye.handleChange),window.removeEventListener("mouseup",ye.handleMouseUp)},ye}return jf(xe,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var Ze=this,xt=this.props.rgb,Mt=(0,fo.ZP)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba(".concat(xt.r,",").concat(xt.g,",").concat(xt.b,`, 0) 0%,
|
||
rgba(`).concat(xt.r,",").concat(xt.g,",").concat(xt.b,", 1) 100%)"),boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:"".concat(xt.a*100,"%")},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba(".concat(xt.r,",").concat(xt.g,",").concat(xt.b,`, 0) 0%,
|
||
rgba(`).concat(xt.r,",").concat(xt.g,",").concat(xt.b,", 1) 100%)")},pointer:{left:0,top:"".concat(xt.a*100,"%")}},overwrite:Kc({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return p.createElement("div",{style:Mt.alpha},p.createElement("div",{style:Mt.checkboard},p.createElement(_u,{renderers:this.props.renderers})),p.createElement("div",{style:Mt.gradient}),p.createElement("div",{style:Mt.container,ref:function(en){return Ze.container=en},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},p.createElement("div",{style:Mt.pointer},this.props.pointer?p.createElement(this.props.pointer,this.props):p.createElement("div",{style:Mt.slider}))))}}]),xe}(p.PureComponent||p.Component),cr=dd,un=function(J,xe,ye,Ze){var xt=Ze.clientWidth,Mt=Ze.clientHeight,Wt=typeof J.pageX=="number"?J.pageX:J.touches[0].pageX,en=typeof J.pageY=="number"?J.pageY:J.touches[0].pageY,Tn=Wt-(Ze.getBoundingClientRect().left+window.pageXOffset),On=en-(Ze.getBoundingClientRect().top+window.pageYOffset);if(xe==="vertical"){var qn;if(On<0)qn=359;else if(On>Mt)qn=0;else{var nr=-(On*100/Mt)+100;qn=360*nr/100}if(ye.h!==qn)return{h:qn,s:ye.s,l:ye.l,a:ye.a,source:"hsl"}}else{var hr;if(Tn<0)hr=0;else if(Tn>xt)hr=359;else{var ur=Tn*100/xt;hr=360*ur/100}if(ye.h!==hr)return{h:hr,s:ye.s,l:ye.l,a:ye.a,source:"hsl"}}return null};function Jn(ae){return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},Jn(ae)}function Xn(ae,J){if(!(ae instanceof J))throw new TypeError("Cannot call a class as a function")}function Vr(ae,J){for(var xe=0;xe<J.length;xe++){var ye=J[xe];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(ae,pa(ye.key),ye)}}function Zn(ae,J,xe){return J&&Vr(ae.prototype,J),xe&&Vr(ae,xe),Object.defineProperty(ae,"prototype",{writable:!1}),ae}function pa(ae){var J=Ha(ae,"string");return Jn(J)==="symbol"?J:String(J)}function Ha(ae,J){if(Jn(ae)!=="object"||ae===null)return ae;var xe=ae[Symbol.toPrimitive];if(xe!==void 0){var ye=xe.call(ae,J||"default");if(Jn(ye)!=="object")return ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(ae)}function gi(ae,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function");ae.prototype=Object.create(J&&J.prototype,{constructor:{value:ae,writable:!0,configurable:!0}}),Object.defineProperty(ae,"prototype",{writable:!1}),J&&co(ae,J)}function co(ae,J){return co=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ye,Ze){return ye.__proto__=Ze,ye},co(ae,J)}function No(ae){var J=gl();return function(){var ye=js(ae),Ze;if(J){var xt=js(this).constructor;Ze=Reflect.construct(ye,arguments,xt)}else Ze=ye.apply(this,arguments);return Ko(this,Ze)}}function Ko(ae,J){if(J&&(Jn(J)==="object"||typeof J=="function"))return J;if(J!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jo(ae)}function Jo(ae){if(ae===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae}function gl(){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(ae){return!1}}function js(ae){return js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(xe){return xe.__proto__||Object.getPrototypeOf(xe)},js(ae)}var Zl=function(ae){gi(xe,ae);var J=No(xe);function xe(){var ye;Xn(this,xe);for(var Ze=arguments.length,xt=new Array(Ze),Mt=0;Mt<Ze;Mt++)xt[Mt]=arguments[Mt];return ye=J.call.apply(J,[this].concat(xt)),ye.handleChange=function(Wt){var en=un(Wt,ye.props.direction,ye.props.hsl,ye.container);en&&typeof ye.props.onChange=="function"&&ye.props.onChange(en,Wt)},ye.handleMouseDown=function(Wt){ye.handleChange(Wt),window.addEventListener("mousemove",ye.handleChange),window.addEventListener("mouseup",ye.handleMouseUp)},ye.handleMouseUp=function(){ye.unbindEventListeners()},ye}return Zn(xe,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var Ze=this,xt=this.props.direction,Mt=xt===void 0?"horizontal":xt,Wt=(0,fo.ZP)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:"".concat(this.props.hsl.h*100/360,"%")},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:"".concat(-(this.props.hsl.h*100/360)+100,"%")}}},{vertical:Mt==="vertical"});return p.createElement("div",{style:Wt.hue},p.createElement("div",{className:"hue-".concat(Mt),style:Wt.container,ref:function(Tn){return Ze.container=Tn},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},p.createElement("style",null,`
|
||
.hue-horizontal {
|
||
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
||
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
background: -webkit-linear-gradient(to right, #f00 0%, #ff0
|
||
17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
}
|
||
|
||
.hue-vertical {
|
||
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
|
||
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
||
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
}
|
||
`),p.createElement("div",{style:Wt.pointer},this.props.pointer?p.createElement(this.props.pointer,this.props):p.createElement("div",{style:Wt.slider}))))}}]),xe}(p.PureComponent||p.Component),ko=Zl,te=o(23493),Me=o.n(te),ft=function(J,xe,ye){var Ze=ye.getBoundingClientRect(),xt=Ze.width,Mt=Ze.height,Wt=typeof J.pageX=="number"?J.pageX:J.touches[0].pageX,en=typeof J.pageY=="number"?J.pageY:J.touches[0].pageY,Tn=Wt-(ye.getBoundingClientRect().left+window.pageXOffset),On=en-(ye.getBoundingClientRect().top+window.pageYOffset);Tn<0?Tn=0:Tn>xt&&(Tn=xt),On<0?On=0:On>Mt&&(On=Mt);var qn=Tn/xt,nr=1-On/Mt;return{h:xe.h,s:qn,v:nr,a:xe.a,source:"hsv"}};function Nt(ae){return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},Nt(ae)}function xn(ae,J){if(!(ae instanceof J))throw new TypeError("Cannot call a class as a function")}function Yr(ae,J){for(var xe=0;xe<J.length;xe++){var ye=J[xe];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(ae,Es(ye.key),ye)}}function qa(ae,J,xe){return J&&Yr(ae.prototype,J),xe&&Yr(ae,xe),Object.defineProperty(ae,"prototype",{writable:!1}),ae}function Es(ae){var J=Qs(ae,"string");return Nt(J)==="symbol"?J:String(J)}function Qs(ae,J){if(Nt(ae)!=="object"||ae===null)return ae;var xe=ae[Symbol.toPrimitive];if(xe!==void 0){var ye=xe.call(ae,J||"default");if(Nt(ye)!=="object")return ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(ae)}function Hl(ae,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function");ae.prototype=Object.create(J&&J.prototype,{constructor:{value:ae,writable:!0,configurable:!0}}),Object.defineProperty(ae,"prototype",{writable:!1}),J&&Lc(ae,J)}function Lc(ae,J){return Lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ye,Ze){return ye.__proto__=Ze,ye},Lc(ae,J)}function Pu(ae){var J=Cp();return function(){var ye=kv(ae),Ze;if(J){var xt=kv(this).constructor;Ze=Reflect.construct(ye,arguments,xt)}else Ze=ye.apply(this,arguments);return Yf(this,Ze)}}function Yf(ae,J){if(J&&(Nt(J)==="object"||typeof J=="function"))return J;if(J!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yv(ae)}function yv(ae){if(ae===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae}function Cp(){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(ae){return!1}}function kv(ae){return kv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(xe){return xe.__proto__||Object.getPrototypeOf(xe)},kv(ae)}var Nv=function(ae){Hl(xe,ae);var J=Pu(xe);function xe(ye){var Ze;return xn(this,xe),Ze=J.call(this,ye),Ze.handleChange=function(xt){typeof Ze.props.onChange=="function"&&Ze.throttle(Ze.props.onChange,ft(xt,Ze.props.hsl,Ze.container),xt)},Ze.handleMouseDown=function(xt){Ze.handleChange(xt);var Mt=Ze.getContainerRenderWindow();Mt.addEventListener("mousemove",Ze.handleChange),Mt.addEventListener("mouseup",Ze.handleMouseUp)},Ze.handleMouseUp=function(){Ze.unbindEventListeners()},Ze.throttle=Me()(function(xt,Mt,Wt){xt(Mt,Wt)},50),Ze}return qa(xe,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var Ze=this.container,xt=window;!xt.document.contains(Ze)&&xt.parent!==xt;)xt=xt.parent;return xt}},{key:"unbindEventListeners",value:function(){var Ze=this.getContainerRenderWindow();Ze.removeEventListener("mousemove",this.handleChange),Ze.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var Ze=this,xt=this.props.style||{},Mt=xt.color,Wt=xt.white,en=xt.black,Tn=xt.pointer,On=xt.circle,qn=(0,fo.ZP)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-(this.props.hsv.v*100)+100,"%"),left:"".concat(this.props.hsv.s*100,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
||
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:Mt,white:Wt,black:en,pointer:Tn,circle:On}},{custom:!!this.props.style});return p.createElement("div",{style:qn.color,ref:function(hr){return Ze.container=hr},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},p.createElement("style",null,`
|
||
.saturation-white {
|
||
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||
}
|
||
.saturation-black {
|
||
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
||
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
||
}
|
||
`),p.createElement("div",{style:qn.white,className:"saturation-white"},p.createElement("div",{style:qn.black,className:"saturation-black"}),p.createElement("div",{style:qn.pointer},this.props.pointer?p.createElement(this.props.pointer,this.props):p.createElement("div",{style:qn.circle}))))}}]),xe}(p.PureComponent||p.Component),Pv=Nv,sp=o(23279),Wp=o.n(sp),$h=o(66073),Hf=o.n($h),Qc=o(45582),bp=function(J){var xe=["r","g","b","a","h","s","l","v"],ye=0,Ze=0;return Hf()(xe,function(xt){if(J[xt]&&(ye+=1,isNaN(J[xt])||(Ze+=1),xt==="s"||xt==="l")){var Mt=/^\d+%$/;Mt.test(J[xt])&&(Ze+=1)}}),ye===Ze?J:!1},cv=function(J,xe){var ye=J.hex?(0,Qc.Z)(J.hex):(0,Qc.Z)(J),Ze=ye.toHsl(),xt=ye.toHsv(),Mt=ye.toRgb(),Wt=ye.toHex();Ze.s===0&&(Ze.h=xe||0,xt.h=xe||0);var en=Wt==="000000"&&Mt.a===0;return{hsl:Ze,hex:en?"transparent":"#".concat(Wt),rgb:Mt,hsv:xt,oldHue:J.h||xe||Ze.h,source:J.source}},nh=function(J){if(J==="transparent")return!0;var xe=String(J).charAt(0)==="#"?1:0;return J.length!==4+xe&&J.length<7+xe&&(0,Qc.Z)(J).isValid()},Kv=function(J){if(!J)return"#fff";var xe=cv(J);if(xe.hex==="transparent")return"rgba(0,0,0,0.4)";var ye=(xe.rgb.r*299+xe.rgb.g*587+xe.rgb.b*114)/1e3;return ye>=128?"#000":"#fff"},am={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},Nh=function(J,xe){var ye=J.replace("\xB0","");return tinycolor("".concat(xe," (").concat(ye,")"))._ok};function Lp(ae){return Lp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},Lp(ae)}function sh(){return sh=Object.assign?Object.assign.bind():function(ae){for(var J=1;J<arguments.length;J++){var xe=arguments[J];for(var ye in xe)Object.prototype.hasOwnProperty.call(xe,ye)&&(ae[ye]=xe[ye])}return ae},sh.apply(this,arguments)}function Lh(ae,J){var xe=Object.keys(ae);if(Object.getOwnPropertySymbols){var ye=Object.getOwnPropertySymbols(ae);J&&(ye=ye.filter(function(Ze){return Object.getOwnPropertyDescriptor(ae,Ze).enumerable})),xe.push.apply(xe,ye)}return xe}function mh(ae){for(var J=1;J<arguments.length;J++){var xe=arguments[J]!=null?arguments[J]:{};J%2?Lh(Object(xe),!0).forEach(function(ye){fm(ae,ye,xe[ye])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ae,Object.getOwnPropertyDescriptors(xe)):Lh(Object(xe)).forEach(function(ye){Object.defineProperty(ae,ye,Object.getOwnPropertyDescriptor(xe,ye))})}return ae}function fm(ae,J,xe){return J=Am(J),J in ae?Object.defineProperty(ae,J,{value:xe,enumerable:!0,configurable:!0,writable:!0}):ae[J]=xe,ae}function rh(ae,J){if(!(ae instanceof J))throw new TypeError("Cannot call a class as a function")}function Fp(ae,J){for(var xe=0;xe<J.length;xe++){var ye=J[xe];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(ae,Am(ye.key),ye)}}function gh(ae,J,xe){return J&&Fp(ae.prototype,J),xe&&Fp(ae,xe),Object.defineProperty(ae,"prototype",{writable:!1}),ae}function Am(ae){var J=rc(ae,"string");return Lp(J)==="symbol"?J:String(J)}function rc(ae,J){if(Lp(ae)!=="object"||ae===null)return ae;var xe=ae[Symbol.toPrimitive];if(xe!==void 0){var ye=xe.call(ae,J||"default");if(Lp(ye)!=="object")return ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(ae)}function wl(ae,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function");ae.prototype=Object.create(J&&J.prototype,{constructor:{value:ae,writable:!0,configurable:!0}}),Object.defineProperty(ae,"prototype",{writable:!1}),J&&Sl(ae,J)}function Sl(ae,J){return Sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ye,Ze){return ye.__proto__=Ze,ye},Sl(ae,J)}function Ac(ae){var J=$u();return function(){var ye=Nf(ae),Ze;if(J){var xt=Nf(this).constructor;Ze=Reflect.construct(ye,arguments,xt)}else Ze=ye.apply(this,arguments);return Ju(this,Ze)}}function Ju(ae,J){if(J&&(Lp(J)==="object"||typeof J=="function"))return J;if(J!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bc(ae)}function Bc(ae){if(ae===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae}function $u(){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(ae){return!1}}function Nf(ae){return Nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(xe){return xe.__proto__||Object.getPrototypeOf(xe)},Nf(ae)}var Ou=function(J){var xe=function(ye){wl(xt,ye);var Ze=Ac(xt);function xt(Mt){var Wt;return rh(this,xt),Wt=Ze.call(this),Wt.handleChange=function(en,Tn){var On=bp(en);if(On){var qn=cv(en,en.h||Wt.state.oldHue);Wt.setState(qn),Wt.props.onChangeComplete&&Wt.debounce(Wt.props.onChangeComplete,qn,Tn),Wt.props.onChange&&Wt.props.onChange(qn,Tn)}},Wt.handleSwatchHover=function(en,Tn){var On=bp(en);if(On){var qn=cv(en,en.h||Wt.state.oldHue);Wt.props.onSwatchHover&&Wt.props.onSwatchHover(qn,Tn)}},Wt.state=mh({},cv(Mt.color,0)),Wt.debounce=Wp()(function(en,Tn,On){en(Tn,On)},100),Wt}return gh(xt,[{key:"render",value:function(){var Wt={};return this.props.onSwatchHover&&(Wt.onSwatchHover=this.handleSwatchHover),p.createElement(J,sh({},this.props,this.state,{onChange:this.handleChange},Wt))}}],[{key:"getDerivedStateFromProps",value:function(Wt,en){return mh({},cv(Wt.color,en.oldHue))}}]),xt}(p.PureComponent||p.Component);return xe.propTypes=mh({},J.propTypes),xe.defaultProps=mh(mh({},J.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),xe},Lf=Ou;function Mf(ae){return Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},Mf(ae)}function Sd(ae,J,xe){return J=fv(J),J in ae?Object.defineProperty(ae,J,{value:xe,enumerable:!0,configurable:!0,writable:!0}):ae[J]=xe,ae}function jv(ae,J){if(!(ae instanceof J))throw new TypeError("Cannot call a class as a function")}function uv(ae,J){for(var xe=0;xe<J.length;xe++){var ye=J[xe];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(ae,fv(ye.key),ye)}}function Fh(ae,J,xe){return J&&uv(ae.prototype,J),xe&&uv(ae,xe),Object.defineProperty(ae,"prototype",{writable:!1}),ae}function fv(ae){var J=Yv(ae,"string");return Mf(J)==="symbol"?J:String(J)}function Yv(ae,J){if(Mf(ae)!=="object"||ae===null)return ae;var xe=ae[Symbol.toPrimitive];if(xe!==void 0){var ye=xe.call(ae,J||"default");if(Mf(ye)!=="object")return ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(ae)}function wh(ae,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function");ae.prototype=Object.create(J&&J.prototype,{constructor:{value:ae,writable:!0,configurable:!0}}),Object.defineProperty(ae,"prototype",{writable:!1}),J&&im(ae,J)}function im(ae,J){return im=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ye,Ze){return ye.__proto__=Ze,ye},im(ae,J)}function fg(ae){var J=ah();return function(){var ye=om(ae),Ze;if(J){var xt=om(this).constructor;Ze=Reflect.construct(ye,arguments,xt)}else Ze=ye.apply(this,arguments);return _h(this,Ze)}}function _h(ae,J){if(J&&(Mf(J)==="object"||typeof J=="function"))return J;if(J!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bv(ae)}function Bv(ae){if(ae===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae}function ah(){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(ae){return!1}}function om(ae){return om=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(xe){return xe.__proto__||Object.getPrototypeOf(xe)},om(ae)}var Og=1,Kh=38,Dp=40,Hp=[Kh,Dp],Yh=function(J){return Hp.indexOf(J)>-1},ev=function(J){return Number(String(J).replace(/%/g,""))},Kd=1,jp=function(ae){wh(xe,ae);var J=fg(xe);function xe(ye){var Ze;return jv(this,xe),Ze=J.call(this),Ze.handleBlur=function(){Ze.state.blurValue&&Ze.setState({value:Ze.state.blurValue,blurValue:null})},Ze.handleChange=function(xt){Ze.setUpdatedValue(xt.target.value,xt)},Ze.handleKeyDown=function(xt){var Mt=ev(xt.target.value);if(!isNaN(Mt)&&Yh(xt.keyCode)){var Wt=Ze.getArrowOffset(),en=xt.keyCode===Kh?Mt+Wt:Mt-Wt;Ze.setUpdatedValue(en,xt)}},Ze.handleDrag=function(xt){if(Ze.props.dragLabel){var Mt=Math.round(Ze.props.value+xt.movementX);Mt>=0&&Mt<=Ze.props.dragMax&&Ze.props.onChange&&Ze.props.onChange(Ze.getValueObjectWithLabel(Mt),xt)}},Ze.handleMouseDown=function(xt){Ze.props.dragLabel&&(xt.preventDefault(),Ze.handleDrag(xt),window.addEventListener("mousemove",Ze.handleDrag),window.addEventListener("mouseup",Ze.handleMouseUp))},Ze.handleMouseUp=function(){Ze.unbindEventListeners()},Ze.unbindEventListeners=function(){window.removeEventListener("mousemove",Ze.handleDrag),window.removeEventListener("mouseup",Ze.handleMouseUp)},Ze.state={value:String(ye.value).toUpperCase(),blurValue:String(ye.value).toUpperCase()},Ze.inputId="rc-editable-input-".concat(Kd++),Ze}return Fh(xe,[{key:"componentDidUpdate",value:function(Ze,xt){this.props.value!==this.state.value&&(Ze.value!==this.props.value||xt.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(Ze){return Sd({},this.props.label,Ze)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Og}},{key:"setUpdatedValue",value:function(Ze,xt){var Mt=this.props.label?this.getValueObjectWithLabel(Ze):Ze;this.props.onChange&&this.props.onChange(Mt,xt),this.setState({value:Ze})}},{key:"render",value:function(){var Ze=this,xt=(0,fo.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return p.createElement("div",{style:xt.wrap},p.createElement("input",{id:this.inputId,style:xt.input,ref:function(Wt){return Ze.input=Wt},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?p.createElement("label",{htmlFor:this.inputId,style:xt.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),xe}(p.PureComponent||p.Component),vf=jp;function tv(ae){return tv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},tv(ae)}function Xv(){return Xv=Object.assign?Object.assign.bind():function(ae){for(var J=1;J<arguments.length;J++){var xe=arguments[J];for(var ye in xe)Object.prototype.hasOwnProperty.call(xe,ye)&&(ae[ye]=xe[ye])}return ae},Xv.apply(this,arguments)}function nv(ae,J){if(!(ae instanceof J))throw new TypeError("Cannot call a class as a function")}function lh(ae,J){for(var xe=0;xe<J.length;xe++){var ye=J[xe];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(ae,Uv(ye.key),ye)}}function Bp(ae,J,xe){return J&&lh(ae.prototype,J),xe&&lh(ae,xe),Object.defineProperty(ae,"prototype",{writable:!1}),ae}function Uv(ae){var J=dv(ae,"string");return tv(J)==="symbol"?J:String(J)}function dv(ae,J){if(tv(ae)!=="object"||ae===null)return ae;var xe=ae[Symbol.toPrimitive];if(xe!==void 0){var ye=xe.call(ae,J||"default");if(tv(ye)!=="object")return ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(ae)}function Ig(ae,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function");ae.prototype=Object.create(J&&J.prototype,{constructor:{value:ae,writable:!0,configurable:!0}}),Object.defineProperty(ae,"prototype",{writable:!1}),J&&Mm(ae,J)}function Mm(ae,J){return Mm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ye,Ze){return ye.__proto__=Ze,ye},Mm(ae,J)}function dg(ae){var J=o_();return function(){var ye=ch(ae),Ze;if(J){var xt=ch(this).constructor;Ze=Reflect.construct(ye,arguments,xt)}else Ze=ye.apply(this,arguments);return dm(this,Ze)}}function dm(ae,J){if(J&&(tv(J)==="object"||typeof J=="function"))return J;if(J!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jm(ae)}function Jm(ae){if(ae===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae}function o_(){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(ae){return!1}}function ch(ae){return ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(xe){return xe.__proto__||Object.getPrototypeOf(xe)},ch(ae)}var pg=function(J){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(ye){Ig(xt,ye);var Ze=dg(xt);function xt(){var Mt;nv(this,xt);for(var Wt=arguments.length,en=new Array(Wt),Tn=0;Tn<Wt;Tn++)en[Tn]=arguments[Tn];return Mt=Ze.call.apply(Ze,[this].concat(en)),Mt.state={focus:!1},Mt.handleFocus=function(){return Mt.setState({focus:!0})},Mt.handleBlur=function(){return Mt.setState({focus:!1})},Mt}return Bp(xt,[{key:"render",value:function(){return p.createElement(xe,{onFocus:this.handleFocus,onBlur:this.handleBlur},p.createElement(J,Xv({},this.props,this.state)))}}]),xt}(p.Component)};function yh(ae){return yh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},yh(ae)}function vg(){return vg=Object.assign?Object.assign.bind():function(ae){for(var J=1;J<arguments.length;J++){var xe=arguments[J];for(var ye in xe)Object.prototype.hasOwnProperty.call(xe,ye)&&(ae[ye]=xe[ye])}return ae},vg.apply(this,arguments)}function Dg(ae,J){var xe=Object.keys(ae);if(Object.getOwnPropertySymbols){var ye=Object.getOwnPropertySymbols(ae);J&&(ye=ye.filter(function(Ze){return Object.getOwnPropertyDescriptor(ae,Ze).enumerable})),xe.push.apply(xe,ye)}return xe}function km(ae){for(var J=1;J<arguments.length;J++){var xe=arguments[J]!=null?arguments[J]:{};J%2?Dg(Object(xe),!0).forEach(function(ye){Ng(ae,ye,xe[ye])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ae,Object.getOwnPropertyDescriptors(xe)):Dg(Object(xe)).forEach(function(ye){Object.defineProperty(ae,ye,Object.getOwnPropertyDescriptor(xe,ye))})}return ae}function Ng(ae,J,xe){return J=O_(J),J in ae?Object.defineProperty(ae,J,{value:xe,enumerable:!0,configurable:!0,writable:!0}):ae[J]=xe,ae}function O_(ae){var J=e0(ae,"string");return yh(J)==="symbol"?J:String(J)}function e0(ae,J){if(yh(ae)!=="object"||ae===null)return ae;var xe=ae[Symbol.toPrimitive];if(xe!==void 0){var ye=xe.call(ae,J||"default");if(yh(ye)!=="object")return ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(ae)}var pm=13,Lg=function(J){var xe=J.color,ye=J.style,Ze=J.onClick,xt=Ze===void 0?function(){}:Ze,Mt=J.onHover,Wt=J.title,en=Wt===void 0?xe:Wt,Tn=J.children,On=J.focus,qn=J.focusStyle,nr=qn===void 0?{}:qn,hr=xe==="transparent",ur=(0,fo.ZP)({default:{swatch:km(km({background:xe,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},ye),On?nr:{})}}),Mr=function(Fa){return xt(xe,Fa)},wr=function(Fa){return Fa.keyCode===pm&&xt(xe,Fa)},ia=function(Fa){return Mt(xe,Fa)},ua={};return Mt&&(ua.onMouseOver=ia),p.createElement("div",vg({style:ur.swatch,onClick:Mr,title:en,tabIndex:0,onKeyDown:wr},ua),Tn,hr&&p.createElement(_u,{borderRadius:ur.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))},$r=pg(Lg),ea=function(J){var xe=J.onChange,ye=J.rgb,Ze=J.hsl,xt=J.hex,Mt=J.disableAlpha,Wt=(0,fo.ZP)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:Mt}),en=function(On,qn){On.hex?nh(On.hex)&&(xe==null||xe({hex:On.hex,source:"hex"},qn)):On.r||On.g||On.b?xe==null||xe({r:On.r||(ye==null?void 0:ye.r),g:On.g||(ye==null?void 0:ye.g),b:On.b||(ye==null?void 0:ye.b),a:ye==null?void 0:ye.a,source:"rgb"},qn):On.a&&(On.a<0?On.a=0:On.a>100&&(On.a=100),On.a/=100,xe==null||xe({h:Ze==null?void 0:Ze.h,s:Ze==null?void 0:Ze.s,l:Ze==null?void 0:Ze.l,a:On.a,source:"rgb"},qn))};return p.createElement("div",{style:Wt.fields,className:"flexbox-fix"},p.createElement("div",{style:Wt.double},p.createElement(vf,{style:{input:Wt.input,label:Wt.label},label:"hex",value:xt==null?void 0:xt.replace("#",""),onChange:en})),p.createElement("div",{style:Wt.single},p.createElement(vf,{style:{input:Wt.input,label:Wt.label},label:"r",value:ye==null?void 0:ye.r,onChange:en,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:Wt.single},p.createElement(vf,{style:{input:Wt.input,label:Wt.label},label:"g",value:ye==null?void 0:ye.g,onChange:en,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:Wt.single},p.createElement(vf,{style:{input:Wt.input,label:Wt.label},label:"b",value:ye==null?void 0:ye.b,onChange:en,dragLabel:"true",dragMax:"255"})),p.createElement("div",{style:Wt.alpha},p.createElement(vf,{style:{input:Wt.input,label:Wt.label},label:"a",value:Math.round(((ye==null?void 0:ye.a)||0)*100),onChange:en,dragLabel:"true",dragMax:"100"})))},bi=ea;function To(ae){return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},To(ae)}function _o(ae,J){var xe=Object.keys(ae);if(Object.getOwnPropertySymbols){var ye=Object.getOwnPropertySymbols(ae);J&&(ye=ye.filter(function(Ze){return Object.getOwnPropertyDescriptor(ae,Ze).enumerable})),xe.push.apply(xe,ye)}return xe}function Ss(ae){for(var J=1;J<arguments.length;J++){var xe=arguments[J]!=null?arguments[J]:{};J%2?_o(Object(xe),!0).forEach(function(ye){Qi(ae,ye,xe[ye])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ae,Object.getOwnPropertyDescriptors(xe)):_o(Object(xe)).forEach(function(ye){Object.defineProperty(ae,ye,Object.getOwnPropertyDescriptor(xe,ye))})}return ae}function Qi(ae,J,xe){return J=Ns(J),J in ae?Object.defineProperty(ae,J,{value:xe,enumerable:!0,configurable:!0,writable:!0}):ae[J]=xe,ae}function Ns(ae){var J=kl(ae,"string");return To(J)==="symbol"?J:String(J)}function kl(ae,J){if(To(ae)!=="object"||ae===null)return ae;var xe=ae[Symbol.toPrimitive];if(xe!==void 0){var ye=xe.call(ae,J||"default");if(To(ye)!=="object")return ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(ae)}var yl=function(J){var xe=J.colors,ye=J.onClick,Ze=ye===void 0?function(){}:ye,xt=J.onSwatchHover,Mt={colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{msBorderRadius:"3px",MozBorderRadius:"3px",OBorderRadius:"3px",WebkitBorderRadius:"3px",borderRadius:"3px",msBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",MozBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",OBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",WebkitBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},Wt=function(Tn,On){Ze==null||Ze({hex:Tn,source:"hex"},On)};return p.createElement("div",{style:Mt.colors,className:"flexbox-fix"},xe==null?void 0:xe.map(function(en){var Tn=typeof en=="string"?{color:en,title:void 0}:en,On="".concat(Tn.color).concat((Tn==null?void 0:Tn.title)||"");return p.createElement("div",{key:On,style:Mt.swatchWrap},p.createElement($r,Ss(Ss({},Tn),{},{style:Mt.swatch,onClick:Wt,onHover:xt,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ".concat(Tn.color)}})))}))},Tl=yl;function ll(ae){return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},ll(ae)}function ac(ae,J){var xe=Object.keys(ae);if(Object.getOwnPropertySymbols){var ye=Object.getOwnPropertySymbols(ae);J&&(ye=ye.filter(function(Ze){return Object.getOwnPropertyDescriptor(ae,Ze).enumerable})),xe.push.apply(xe,ye)}return xe}function Xl(ae){for(var J=1;J<arguments.length;J++){var xe=arguments[J]!=null?arguments[J]:{};J%2?ac(Object(xe),!0).forEach(function(ye){Ol(ae,ye,xe[ye])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ae,Object.getOwnPropertyDescriptors(xe)):ac(Object(xe)).forEach(function(ye){Object.defineProperty(ae,ye,Object.getOwnPropertyDescriptor(xe,ye))})}return ae}function Ol(ae,J,xe){return J=es(J),J in ae?Object.defineProperty(ae,J,{value:xe,enumerable:!0,configurable:!0,writable:!0}):ae[J]=xe,ae}function es(ae){var J=Go(ae,"string");return ll(J)==="symbol"?J:String(J)}function Go(ae,J){if(ll(ae)!=="object"||ae===null)return ae;var xe=ae[Symbol.toPrimitive];if(xe!==void 0){var ye=xe.call(ae,J||"default");if(ll(ye)!=="object")return ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(ae)}var Yo=function(J){var xe=J.width,ye=J.rgb,Ze=J.hex,xt=J.hsv,Mt=J.hsl,Wt=J.onChange,en=J.onSwatchHover,Tn=J.disableAlpha,On=J.presetColors,qn=J.renderers,nr=J.styles,hr=nr===void 0?{}:nr,ur=J.className,Mr=ur===void 0?"":ur,wr=(0,fo.ZP)(xo()({default:Xl({picker:{width:xe,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba(".concat(ye.r,",").concat(ye.g,",").concat(ye.b,",").concat(ye.a,")"),boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},hr),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},hr),{disableAlpha:Tn});return p.createElement("div",{style:wr.picker,className:"sketch-picker ".concat(Mr)},p.createElement("div",{style:wr.saturation},p.createElement(Pv,{style:wr.Saturation,hsl:Mt,hsv:xt,onChange:Wt})),p.createElement("div",{style:wr.controls,className:"flexbox-fix"},p.createElement("div",{style:wr.sliders},p.createElement("div",{style:wr.hue},p.createElement(ko,{style:wr.Hue,hsl:Mt,onChange:Wt})),p.createElement("div",{style:wr.alpha},p.createElement(cr,{style:wr.Alpha,rgb:ye,hsl:Mt,renderers:qn,onChange:Wt}))),p.createElement("div",{style:wr.color},p.createElement(_u,null),p.createElement("div",{style:wr.activeColor}))),p.createElement(bi,{rgb:ye,hsl:Mt,hex:Ze,onChange:Wt,disableAlpha:Tn}),p.createElement(Tl,{colors:On,onClick:Wt,onSwatchHover:en}))};Yo.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};var Ec=Lf(Yo),Ft=["mode","popoverProps"],je=["#FF9D4E","#5BD8A6","#5B8FF9","#F7664E","#FF86B7","#2B9E9D","#9270CA","#6DC8EC","#667796","#F6BD16"],yt=function(J){var xe=J.mode,ye=J.popoverProps,Ze=(0,_.Z)(J,Ft),xt=(0,p.useContext)(w.ZP.ConfigContext),Mt=xt.getPrefixCls,Wt=Mt("pro-field-color-picker"),en=$t("#1890ff",{value:Ze.value,onChange:Ze.onChange}),Tn=(0,y.Z)(en,2),On=Tn[0],qn=Tn[1],nr=(0,S.jsx)("div",{className:Wt,style:{padding:5,width:48,border:"1px solid #ddd",borderRadius:"2px",cursor:"pointer"},children:(0,S.jsx)("div",{style:{backgroundColor:On,width:36,height:14,borderRadius:"2px"}})});return xe==="read"?nr:(0,S.jsx)(pi.Z,(0,d.Z)((0,d.Z)({trigger:"click",placement:"right"},ye),{},{content:(0,S.jsx)("div",{style:{margin:"-12px -16px"},children:(0,S.jsx)(Ec,(0,d.Z)((0,d.Z)({},Ze),{},{presetColors:Ze.colors||Ze.presetColors||je,color:On,onChange:function(ur){var Mr=ur.hex,wr=ur.rgb,ia=wr.r,ua=wr.g,ga=wr.b,Fa=wr.a;if(Fa&&Fa<1){qn("rgba(".concat(ia,", ").concat(ua,", ").concat(ga,", ").concat(Fa,")"));return}qn(Mr)}}))}),children:nr}))},It=function(J){var xe=J.text,ye=J.mode,Ze=J.render,xt=J.renderFormItem,Mt=J.fieldProps;if(ye==="read"){var Wt=(0,S.jsx)(yt,{value:xe,mode:"read"});return Ze?Ze(xe,(0,d.Z)({mode:ye},Mt),Wt):Wt}if(ye==="edit"||ye==="update"){var en=(0,S.jsx)(yt,(0,d.Z)({},Mt));return xt?xt(xe,(0,d.Z)({mode:ye},Mt),en):en}return null},Sn=It,In=o(86591),mr=o(14943),Wr=o(56051),Ir=o.n(Wr),Br={},xa=[],vi=function(J){xa.push(J)};function Ai(ae,J){if(!1)var xe}function Yi(ae,J){if(!1)var xe}function Wo(){Br={}}function _s(ae,J,xe){!J&&!Br[xe]&&(ae(!1,xe),Br[xe]=!0)}function ys(ae,J){_s(Ai,ae,J)}function qs(ae,J){_s(Yi,ae,J)}ys.preMessage=vi,ys.resetWarned=Wo,ys.noteOnce=qs;var uc=ys,du={getNow:function(){return Ir()()},getFixedDate:function(J){return Ir()(J,"YYYY-MM-DD")},getEndDate:function(J){var xe=J.clone();return xe.endOf("month")},getWeekDay:function(J){var xe=J.clone().locale("en_US");return xe.weekday()+xe.localeData().firstDayOfWeek()},getYear:function(J){return J.year()},getMonth:function(J){return J.month()},getDate:function(J){return J.date()},getHour:function(J){return J.hour()},getMinute:function(J){return J.minute()},getSecond:function(J){return J.second()},addYear:function(J,xe){var ye=J.clone();return ye.add(xe,"year")},addMonth:function(J,xe){var ye=J.clone();return ye.add(xe,"month")},addDate:function(J,xe){var ye=J.clone();return ye.add(xe,"day")},setYear:function(J,xe){var ye=J.clone();return ye.year(xe)},setMonth:function(J,xe){var ye=J.clone();return ye.month(xe)},setDate:function(J,xe){var ye=J.clone();return ye.date(xe)},setHour:function(J,xe){var ye=J.clone();return ye.hour(xe)},setMinute:function(J,xe){var ye=J.clone();return ye.minute(xe)},setSecond:function(J,xe){var ye=J.clone();return ye.second(xe)},isAfter:function(J,xe){return J.isAfter(xe)},isValidate:function(J){return J.isValid()},locale:{getWeekFirstDay:function(J){var xe=Ir()().locale(J);return xe.localeData().firstDayOfWeek()},getWeekFirstDate:function(J,xe){var ye=xe.clone(),Ze=ye.locale(J);return Ze.weekday(0)},getWeek:function(J,xe){var ye=xe.clone(),Ze=ye.locale(J);return Ze.week()},getShortWeekDays:function(J){var xe=Ir()().locale(J);return xe.localeData().weekdaysMin()},getShortMonths:function(J){var xe=Ir()().locale(J);return xe.localeData().monthsShort()},format:function(J,xe,ye){var Ze=xe.clone(),xt=Ze.locale(J);return xt.format(ye)},parse:function(J,xe,ye){for(var Ze=[],xt=0;xt<ye.length;xt+=1){var Mt=ye[xt],Wt=xe;if(Mt.includes("wo")||Mt.includes("Wo")){Mt=Mt.replace(/wo/g,"w").replace(/Wo/g,"W");var en=Mt.match(/[-YyMmDdHhSsWwGg]+/g),Tn=Wt.match(/[-\d]+/g);en&&Tn?(Mt=en.join(""),Wt=Tn.join("")):Ze.push(Mt.replace(/o/g,""))}var On=Ir()(Wt,Mt,J,!0);if(On.isValid())return On}for(var qn=0;qn<Ze.length;qn+=1){var nr=Ir()(xe,Ze[qn],J,!1);if(nr.isValid())return qs(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),nr}return null}}},Pc=du,Ef=o(4381);function Ru(ae){return p.createElement(Pr.Z,(0,Da.Z)({size:"small",type:"primary"},ae))}var _d=o(74356);function id(ae){return p.createElement(_d.Z,(0,Da.Z)({color:"blue"},ae))}var yd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Qu=yd,Yd=function(J,xe){return p.createElement(ba.Z,(0,d.Z)((0,d.Z)({},J),{},{ref:xe,icon:Qu}))};Yd.displayName="CalendarOutlined";var Xd=p.forwardRef(Yd),Sf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Bf=Sf,cd=function(J,xe){return p.createElement(ba.Z,(0,d.Z)((0,d.Z)({},J),{},{ref:xe,icon:Bf}))};cd.displayName="ClockCircleOutlined";var qu=p.forwardRef(cd),Nu=o(43061),Id={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},Ev=Id,Rv=function(J,xe){return p.createElement(ba.Z,(0,d.Z)((0,d.Z)({},J),{},{ref:xe,icon:Ev}))};Rv.displayName="SwapRightOutlined";var s_=p.forwardRef(Rv);function wi(ae){var J=p.useRef();J.current=ae;var xe=p.useCallback(function(){for(var ye,Ze=arguments.length,xt=new Array(Ze),Mt=0;Mt<Ze;Mt++)xt[Mt]=arguments[Mt];return(ye=J.current)===null||ye===void 0?void 0:ye.call.apply(ye,[J].concat(xt))},[]);return xe}function ps(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var qo=ps()?p.useLayoutEffect:p.useEffect,zc=function(J,xe){var ye=p.useRef(!0);qo(function(){return J(ye.current)},xe),qo(function(){return ye.current=!1,function(){ye.current=!0}},[])},od=function(J,xe){zc(function(ye){if(!ye)return J()},xe)},ri=null;function Ta(ae){var J=p.useRef(!1),xe=p.useState(ae),ye=(0,y.Z)(xe,2),Ze=ye[0],xt=ye[1];p.useEffect(function(){return J.current=!1,function(){J.current=!0}},[]);function Mt(Wt,en){en&&J.current||xt(Wt)}return[Ze,Mt]}function eo(ae){return ae!==void 0}function Po(ae,J){var xe=J||{},ye=xe.defaultValue,Ze=xe.value,xt=xe.onChange,Mt=xe.postState,Wt=Ta(function(){return eo(Ze)?Ze:eo(ye)?typeof ye=="function"?ye():ye:typeof ae=="function"?ae():ae}),en=(0,y.Z)(Wt,2),Tn=en[0],On=en[1],qn=Ze!==void 0?Ze:Tn,nr=Mt?Mt(qn):qn,hr=wi(xt),ur=Ta([qn]),Mr=(0,y.Z)(ur,2),wr=Mr[0],ia=Mr[1];od(function(){var ga=wr[0];Tn!==ga&&hr(Tn,ga)},[wr]),od(function(){eo(Ze)||On(Ze)},[Ze]);var ua=wi(function(ga,Fa){On(ga,Fa),ia([qn],Fa)});return[nr,ua]}var qi={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(J){var xe=J.keyCode;if(J.altKey&&!J.ctrlKey||J.metaKey||xe>=qi.F1&&xe<=qi.F12)return!1;switch(xe){case qi.ALT:case qi.CAPS_LOCK:case qi.CONTEXT_MENU:case qi.CTRL:case qi.DOWN:case qi.END:case qi.ESC:case qi.HOME:case qi.INSERT:case qi.LEFT:case qi.MAC_FF_META:case qi.META:case qi.NUMLOCK:case qi.NUM_CENTER:case qi.PAGE_DOWN:case qi.PAGE_UP:case qi.PAUSE:case qi.PRINT_SCREEN:case qi.RIGHT:case qi.SHIFT:case qi.UP:case qi.WIN_KEY:case qi.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(J){if(J>=qi.ZERO&&J<=qi.NINE||J>=qi.NUM_ZERO&&J<=qi.NUM_MULTIPLY||J>=qi.A&&J<=qi.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&J===0)return!0;switch(J){case qi.SPACE:case qi.QUESTION_MARK:case qi.NUM_PLUS:case qi.NUM_MINUS:case qi.NUM_PERIOD:case qi.NUM_DIVISION:case qi.SEMICOLON:case qi.DASH:case qi.EQUALS:case qi.COMMA:case qi.PERIOD:case qi.SLASH:case qi.APOSTROPHE:case qi.SINGLE_QUOTE:case qi.OPEN_SQUARE_BRACKET:case qi.BACKSLASH:case qi.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ii=qi,Gi=p.createContext({}),po=Gi,si={visibility:"hidden"};function Zi(ae){var J=ae.prefixCls,xe=ae.prevIcon,ye=xe===void 0?"\u2039":xe,Ze=ae.nextIcon,xt=Ze===void 0?"\u203A":Ze,Mt=ae.superPrevIcon,Wt=Mt===void 0?"\xAB":Mt,en=ae.superNextIcon,Tn=en===void 0?"\xBB":en,On=ae.onSuperPrev,qn=ae.onSuperNext,nr=ae.onPrev,hr=ae.onNext,ur=ae.children,Mr=p.useContext(po),wr=Mr.hideNextBtn,ia=Mr.hidePrevBtn;return p.createElement("div",{className:J},On&&p.createElement("button",{type:"button",onClick:On,tabIndex:-1,className:"".concat(J,"-super-prev-btn"),style:ia?si:{}},Wt),nr&&p.createElement("button",{type:"button",onClick:nr,tabIndex:-1,className:"".concat(J,"-prev-btn"),style:ia?si:{}},ye),p.createElement("div",{className:"".concat(J,"-view")},ur),hr&&p.createElement("button",{type:"button",onClick:hr,tabIndex:-1,className:"".concat(J,"-next-btn"),style:wr?si:{}},xt),qn&&p.createElement("button",{type:"button",onClick:qn,tabIndex:-1,className:"".concat(J,"-super-next-btn"),style:wr?si:{}},Tn))}var Va=Zi;function Bi(ae){var J=ae.prefixCls,xe=ae.generateConfig,ye=ae.viewDate,Ze=ae.onPrevDecades,xt=ae.onNextDecades,Mt=p.useContext(po),Wt=Mt.hideHeader;if(Wt)return null;var en="".concat(J,"-header"),Tn=xe.getYear(ye),On=Math.floor(Tn/ss)*ss,qn=On+ss-1;return p.createElement(Va,(0,Da.Z)({},ae,{prefixCls:en,onSuperPrev:Ze,onSuperNext:xt}),On,"-",qn)}var $o=Bi;function Vs(ae,J,xe,ye,Ze){var xt=ae.setHour(J,xe);return xt=ae.setMinute(xt,ye),xt=ae.setSecond(xt,Ze),xt}function Cs(ae,J,xe){if(!xe)return J;var ye=J;return ye=ae.setHour(ye,ae.getHour(xe)),ye=ae.setMinute(ye,ae.getMinute(xe)),ye=ae.setSecond(ye,ae.getSecond(xe)),ye}function vs(ae,J,xe,ye,Ze,xt){var Mt=Math.floor(ae/ye)*ye;if(Mt<ae)return[Mt,60-Ze,60-xt];var Wt=Math.floor(J/Ze)*Ze;if(Wt<J)return[Mt,Wt,60-xt];var en=Math.floor(xe/xt)*xt;return[Mt,Wt,en]}function Vl(ae,J){var xe=ae.getYear(J),ye=ae.getMonth(J)+1,Ze=ae.getEndDate(ae.getFixedDate("".concat(xe,"-").concat(ye,"-01"))),xt=ae.getDate(Ze),Mt=ye<10?"0".concat(ye):"".concat(ye);return"".concat(xe,"-").concat(Mt,"-").concat(xt)}function ou(ae){for(var J=ae.prefixCls,xe=ae.disabledDate,ye=ae.onSelect,Ze=ae.picker,xt=ae.rowNum,Mt=ae.colNum,Wt=ae.prefixColumn,en=ae.rowClassName,Tn=ae.baseDate,On=ae.getCellClassName,qn=ae.getCellText,nr=ae.getCellNode,hr=ae.getCellDate,ur=ae.generateConfig,Mr=ae.titleCell,wr=ae.headerCells,ia=p.useContext(po),ua=ia.onDateMouseEnter,ga=ia.onDateMouseLeave,Fa=ia.mode,ai="".concat(J,"-cell"),Ca=[],ii=0;ii<xt;ii+=1){for(var ci=[],$a=void 0,di=function(){var li,ti=ii*Mt+Wa,Ba=hr(Tn,ti),Ni=xC({cellDate:Ba,mode:Fa,disabledDate:xe,generateConfig:ur});Wa===0&&($a=Ba,Wt&&ci.push(Wt($a)));var ji=Mr&&Mr(Ba);ci.push(p.createElement("td",{key:Wa,title:ji,className:ze()(ai,(0,d.Z)((li={},(0,v.Z)(li,"".concat(ai,"-disabled"),Ni),(0,v.Z)(li,"".concat(ai,"-start"),qn(Ba)===1||Ze==="year"&&Number(ji)%10==0),(0,v.Z)(li,"".concat(ai,"-end"),ji===Vl(ur,Ba)||Ze==="year"&&Number(ji)%10==9),li),On(Ba))),onClick:function(){Ni||ye(Ba)},onMouseEnter:function(){!Ni&&ua&&ua(Ba)},onMouseLeave:function(){!Ni&&ga&&ga(Ba)}},nr?nr(Ba):p.createElement("div",{className:"".concat(ai,"-inner")},qn(Ba))))},Wa=0;Wa<Mt;Wa+=1)di();Ca.push(p.createElement("tr",{key:ii,className:en&&en($a)},ci))}return p.createElement("div",{className:"".concat(J,"-body")},p.createElement("table",{className:"".concat(J,"-content")},wr&&p.createElement("thead",null,p.createElement("tr",null,wr)),p.createElement("tbody",null,Ca)))}var Xf=3,pu=4;function sf(ae){var J=Cf-1,xe=ae.prefixCls,ye=ae.viewDate,Ze=ae.generateConfig,xt="".concat(xe,"-cell"),Mt=Ze.getYear(ye),Wt=Math.floor(Mt/Cf)*Cf,en=Math.floor(Mt/ss)*ss,Tn=en+ss-1,On=Ze.setYear(ye,en-Math.ceil((Xf*pu*Cf-ss)/2)),qn=function(hr){var ur,Mr=Ze.getYear(hr),wr=Mr+J;return ur={},(0,v.Z)(ur,"".concat(xt,"-in-view"),en<=Mr&&wr<=Tn),(0,v.Z)(ur,"".concat(xt,"-selected"),Mr===Wt),ur};return p.createElement(ou,(0,Da.Z)({},ae,{rowNum:pu,colNum:Xf,baseDate:On,getCellText:function(hr){var ur=Ze.getYear(hr);return"".concat(ur,"-").concat(ur+J)},getCellClassName:qn,getCellDate:function(hr,ur){return Ze.addYear(hr,ur*Cf)}}))}var Jf=sf,Vd=function(J){return+setTimeout(J,16)},rv=function(J){return clearTimeout(J)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Vd=function(J){return window.requestAnimationFrame(J)},rv=function(J){return window.cancelAnimationFrame(J)});var Jv=0,Fg=new Map;function Zv(ae){Fg.delete(ae)}var ry=function(J){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Jv+=1;var ye=Jv;function Ze(xt){if(xt===0)Zv(ye),J();else{var Mt=Vd(function(){Ze(xt-1)});Fg.set(ye,Mt)}}return Ze(xe),ye};ry.cancel=function(ae){var J=Fg.get(ae);return Zv(J),rv(J)};var Xh=ry,P0=function(ae){if(!ae)return!1;if(ae instanceof Element){if(ae.offsetParent)return!0;if(ae.getBBox){var J=ae.getBBox(),xe=J.width,ye=J.height;if(xe||ye)return!0}if(ae.getBoundingClientRect){var Ze=ae.getBoundingClientRect(),xt=Ze.width,Mt=Ze.height;if(xt||Mt)return!0}}return!1},t0=new Map;function le(ae,J){var xe;function ye(){P0(ae)?J():xe=Xh(function(){ye()})}return ye(),function(){Xh.cancel(xe)}}function Ce(ae,J,xe){if(t0.get(ae)&&cancelAnimationFrame(t0.get(ae)),xe<=0){t0.set(ae,requestAnimationFrame(function(){ae.scrollTop=J}));return}var ye=J-ae.scrollTop,Ze=ye/xe*10;t0.set(ae,requestAnimationFrame(function(){ae.scrollTop+=Ze,ae.scrollTop!==J&&Ce(ae,J,xe-10)}))}function Xe(ae,J){var xe=J.onLeftRight,ye=J.onCtrlLeftRight,Ze=J.onUpDown,xt=J.onPageUpDown,Mt=J.onEnter,Wt=ae.which,en=ae.ctrlKey,Tn=ae.metaKey;switch(Wt){case Ii.LEFT:if(en||Tn){if(ye)return ye(-1),!0}else if(xe)return xe(-1),!0;break;case Ii.RIGHT:if(en||Tn){if(ye)return ye(1),!0}else if(xe)return xe(1),!0;break;case Ii.UP:if(Ze)return Ze(-1),!0;break;case Ii.DOWN:if(Ze)return Ze(1),!0;break;case Ii.PAGE_UP:if(xt)return xt(-1),!0;break;case Ii.PAGE_DOWN:if(xt)return xt(1),!0;break;case Ii.ENTER:if(Mt)return Mt(),!0;break}return!1}function vn(ae,J,xe,ye){var Ze=ae;if(!Ze)switch(J){case"time":Ze=ye?"hh:mm:ss a":"HH:mm:ss";break;case"week":Ze="gggg-wo";break;case"month":Ze="YYYY-MM";break;case"quarter":Ze="YYYY-[Q]Q";break;case"year":Ze="YYYY";break;default:Ze=xe?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Ze}function or(ae,J,xe){var ye=ae==="time"?8:10,Ze=typeof J=="function"?J(xe.getNow()).length:J.length;return Math.max(ye,Ze)+2}var Qr=null,Oa=new Set;function ki(ae){return!Qr&&typeof window!="undefined"&&window.addEventListener&&(Qr=function(xe){(0,h.Z)(Oa).forEach(function(ye){ye(xe)})},window.addEventListener("mousedown",Qr)),Oa.add(ae),function(){Oa.delete(ae),Oa.size===0&&(window.removeEventListener("mousedown",Qr),Qr=null)}}function Oo(ae){var J=ae.target;if(ae.composed&&J.shadowRoot){var xe;return((xe=ae.composedPath)===null||xe===void 0?void 0:xe.call(ae)[0])||J}return J}var cl=function(J){return J==="month"||J==="date"?"year":J},Lu=function(J){return J==="date"?"month":J},Dd=function(J){return J==="month"||J==="date"?"quarter":J},pc=function(J){return J==="date"?"week":J},Uf={year:cl,month:Lu,quarter:Dd,week:pc,time:null,date:null};function bd(ae,J){return ae.some(function(xe){return xe&&xe.contains(J)})}var Cf=10,ss=Cf*10;function Uo(ae){var J=ae.prefixCls,xe=ae.onViewDateChange,ye=ae.generateConfig,Ze=ae.viewDate,xt=ae.operationRef,Mt=ae.onSelect,Wt=ae.onPanelChange,en="".concat(J,"-decade-panel");xt.current={onKeyDown:function(nr){return Xe(nr,{onLeftRight:function(ur){Mt(ye.addYear(Ze,ur*Cf),"key")},onCtrlLeftRight:function(ur){Mt(ye.addYear(Ze,ur*ss),"key")},onUpDown:function(ur){Mt(ye.addYear(Ze,ur*Cf*Xf),"key")},onEnter:function(){Wt("year",Ze)}})}};var Tn=function(nr){var hr=ye.addYear(Ze,nr*ss);xe(hr),Wt(null,hr)},On=function(nr){Mt(nr,"mouse"),Wt("year",nr)};return p.createElement("div",{className:en},p.createElement($o,(0,Da.Z)({},ae,{prefixCls:J,onPrevDecades:function(){Tn(-1)},onNextDecades:function(){Tn(1)}})),p.createElement(Jf,(0,Da.Z)({},ae,{prefixCls:J,onSelect:On})))}var hs=Uo,jl=7;function Gl(ae,J){if(!ae&&!J)return!0;if(!ae||!J)return!1}function Jd(ae,J,xe){var ye=Gl(J,xe);if(typeof ye=="boolean")return ye;var Ze=Math.floor(ae.getYear(J)/10),xt=Math.floor(ae.getYear(xe)/10);return Ze===xt}function Ku(ae,J,xe){var ye=Gl(J,xe);return typeof ye=="boolean"?ye:ae.getYear(J)===ae.getYear(xe)}function Nd(ae,J){var xe=Math.floor(ae.getMonth(J)/3);return xe+1}function pp(ae,J,xe){var ye=Gl(J,xe);return typeof ye=="boolean"?ye:Ku(ae,J,xe)&&Nd(ae,J)===Nd(ae,xe)}function Rd(ae,J,xe){var ye=Gl(J,xe);return typeof ye=="boolean"?ye:Ku(ae,J,xe)&&ae.getMonth(J)===ae.getMonth(xe)}function uh(ae,J,xe){var ye=Gl(J,xe);return typeof ye=="boolean"?ye:ae.getYear(J)===ae.getYear(xe)&&ae.getMonth(J)===ae.getMonth(xe)&&ae.getDate(J)===ae.getDate(xe)}function yC(ae,J,xe){var ye=Gl(J,xe);return typeof ye=="boolean"?ye:ae.getHour(J)===ae.getHour(xe)&&ae.getMinute(J)===ae.getMinute(xe)&&ae.getSecond(J)===ae.getSecond(xe)}function bC(ae,J,xe,ye){var Ze=Gl(xe,ye);return typeof Ze=="boolean"?Ze:Ku(ae,xe,ye)&&ae.locale.getWeek(J,xe)===ae.locale.getWeek(J,ye)}function Ny(ae,J,xe){return uh(ae,J,xe)&&yC(ae,J,xe)}function P1(ae,J,xe,ye){return!J||!xe||!ye?!1:!uh(ae,J,ye)&&!uh(ae,xe,ye)&&ae.isAfter(ye,J)&&ae.isAfter(xe,ye)}function Ly(ae,J,xe){var ye=J.locale.getWeekFirstDay(ae),Ze=J.setDate(xe,1),xt=J.getWeekDay(Ze),Mt=J.addDate(Ze,ye-xt);return J.getMonth(Mt)===J.getMonth(xe)&&J.getDate(Mt)>1&&(Mt=J.addDate(Mt,-7)),Mt}function n0(ae,J,xe){var ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(J){case"year":return xe.addYear(ae,ye*10);case"quarter":case"month":return xe.addYear(ae,ye);default:return xe.addMonth(ae,ye)}}function Pm(ae,J){var xe=J.generateConfig,ye=J.locale,Ze=J.format;return typeof Ze=="function"?Ze(ae):xe.locale.format(ye.locale,ae,Ze)}function Gw(ae,J){var xe=J.generateConfig,ye=J.locale,Ze=J.formatList;return!ae||typeof Ze[0]=="function"?null:xe.locale.parse(ye.locale,ae,Ze)}function xC(ae){var J=ae.cellDate,xe=ae.mode,ye=ae.disabledDate,Ze=ae.generateConfig;if(!ye)return!1;var xt=function(ur,Mr,wr){for(var ia=Mr;ia<=wr;){var ua=void 0;switch(ur){case"date":{if(ua=Ze.setDate(J,ia),!ye(ua))return!1;break}case"month":{if(ua=Ze.setMonth(J,ia),!xC({cellDate:ua,mode:"month",generateConfig:Ze,disabledDate:ye}))return!1;break}case"year":{if(ua=Ze.setYear(J,ia),!xC({cellDate:ua,mode:"year",generateConfig:Ze,disabledDate:ye}))return!1;break}}ia+=1}return!0};switch(xe){case"date":case"week":return ye(J);case"month":{var Mt=1,Wt=Ze.getDate(Ze.getEndDate(J));return xt("date",Mt,Wt)}case"quarter":{var en=Math.floor(Ze.getMonth(J)/3)*3,Tn=en+2;return xt("month",en,Tn)}case"year":return xt("month",0,11);case"decade":{var On=Ze.getYear(J),qn=Math.floor(On/Cf)*Cf,nr=qn+Cf-1;return xt("year",qn,nr)}}}function yE(ae){var J=p.useContext(po),xe=J.hideHeader;if(xe)return null;var ye=ae.prefixCls,Ze=ae.generateConfig,xt=ae.locale,Mt=ae.value,Wt=ae.format,en="".concat(ye,"-header");return p.createElement(Va,{prefixCls:en},Mt?Pm(Mt,{locale:xt,format:Wt,generateConfig:Ze}):"\xA0")}var bE=yE;function EC(ae,J,xe){var ye=p.useRef({});return(!("value"in ye.current)||xe(ye.current.condition,J))&&(ye.current.value=ae(),ye.current.condition=J),ye.current.value}function Qm(ae){var J=ae.prefixCls,xe=ae.units,ye=ae.onSelect,Ze=ae.value,xt=ae.active,Mt=ae.hideDisabledOptions,Wt="".concat(J,"-cell"),en=p.useContext(po),Tn=en.open,On=(0,p.useRef)(null),qn=(0,p.useRef)(new Map),nr=(0,p.useRef)();return(0,p.useLayoutEffect)(function(){var hr=qn.current.get(Ze);hr&&Tn!==!1&&Ce(On.current,hr.offsetTop,120)},[Ze]),(0,p.useLayoutEffect)(function(){if(Tn){var hr=qn.current.get(Ze);hr&&(nr.current=le(hr,function(){Ce(On.current,hr.offsetTop,0)}))}return function(){var ur;(ur=nr.current)===null||ur===void 0||ur.call(nr)}},[Tn]),p.createElement("ul",{className:ze()("".concat(J,"-column"),(0,v.Z)({},"".concat(J,"-column-active"),xt)),ref:On,style:{position:"relative"}},xe.map(function(hr){var ur;return Mt&&hr.disabled?null:p.createElement("li",{key:hr.value,ref:function(wr){qn.current.set(hr.value,wr)},className:ze()(Wt,(ur={},(0,v.Z)(ur,"".concat(Wt,"-disabled"),hr.disabled),(0,v.Z)(ur,"".concat(Wt,"-selected"),Ze===hr.value),ur)),onClick:function(){hr.disabled||ye(hr.value)}},p.createElement("div",{className:"".concat(Wt,"-inner")},hr.label))}))}var Rm=Qm;function Jh(ae,J){for(var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",ye=String(ae);ye.length<J;)ye="".concat(xe).concat(ae);return ye}var xE=function(){for(var J=arguments.length,xe=new Array(J),ye=0;ye<J;ye++)xe[ye]=arguments[ye];return xe};function Kb(ae){return ae==null?[]:Array.isArray(ae)?ae:[ae]}function R0(ae){var J={};return Object.keys(ae).forEach(function(xe){(xe.substr(0,5)==="data-"||xe.substr(0,5)==="aria-"||xe==="role"||xe==="name")&&xe.substr(0,7)!=="data-__"&&(J[xe]=ae[xe])}),J}function lp(ae,J){return ae?ae[J]:null}function Vm(ae,J,xe){var ye=[lp(ae,0),lp(ae,1)];return ye[xe]=typeof J=="function"?J(ye[xe]):J,!ye[0]&&!ye[1]?null:ye}function Yb(ae,J){if(ae.length!==J.length)return!0;for(var xe=0;xe<ae.length;xe+=1)if(ae[xe].disabled!==J[xe].disabled)return!0;return!1}function Fy(ae,J,xe,ye){for(var Ze=[],xt=xe>=1?xe|0:1,Mt=ae;Mt<=J;Mt+=xt)Ze.push({label:Jh(Mt,2),value:Mt,disabled:(ye||[]).includes(Mt)});return Ze}function EE(ae){var J=ae.generateConfig,xe=ae.prefixCls,ye=ae.operationRef,Ze=ae.activeColumnIndex,xt=ae.value,Mt=ae.showHour,Wt=ae.showMinute,en=ae.showSecond,Tn=ae.use12Hours,On=ae.hourStep,qn=On===void 0?1:On,nr=ae.minuteStep,hr=nr===void 0?1:nr,ur=ae.secondStep,Mr=ur===void 0?1:ur,wr=ae.disabledHours,ia=ae.disabledMinutes,ua=ae.disabledSeconds,ga=ae.disabledTime,Fa=ae.hideDisabledOptions,ai=ae.onSelect,Ca=[],ii="".concat(xe,"-content"),ci="".concat(xe,"-time-panel"),$a,di=xt?J.getHour(xt):-1,Wa=di,Ya=xt?J.getMinute(xt):-1,li=xt?J.getSecond(xt):-1,ti=J.getNow(),Ba=p.useMemo(function(){if(ga){var Hs=ga(ti);return[Hs.disabledHours,Hs.disabledMinutes,Hs.disabledSeconds]}return[wr,ia,ua]},[wr,ia,ua,ga,ti]),Ni=(0,y.Z)(Ba,3),ji=Ni[0],go=Ni[1],Wi=Ni[2],uo=function(Ul,As,Ks,Cc){var qc=xt||J.getNow(),Of=Math.max(0,As),_f=Math.max(0,Ks),sd=Math.max(0,Cc);return qc=Vs(J,qc,!Tn||!Ul?Of:Of+12,_f,sd),qc},wo=Fy(0,23,qn,ji&&ji()),Io=EC(function(){return wo},wo,Yb);Tn&&($a=Wa>=12,Wa%=12);var Vo=p.useMemo(function(){if(!Tn)return[!1,!1];var Hs=[!0,!0];return Io.forEach(function(Ul){var As=Ul.disabled,Ks=Ul.value;As||(Ks>=12?Hs[1]=!1:Hs[0]=!1)}),Hs},[Tn,Io]),bs=(0,y.Z)(Vo,2),ts=bs[0],Ws=bs[1],Al=p.useMemo(function(){return Tn?Io.filter($a?function(Hs){return Hs.value>=12}:function(Hs){return Hs.value<12}).map(function(Hs){var Ul=Hs.value%12,As=Ul===0?"12":Jh(Ul,2);return(0,d.Z)((0,d.Z)({},Hs),{},{label:As,value:Ul})}):Io},[Tn,$a,Io]),Ql=Fy(0,59,hr,go&&go(di)),zs=Fy(0,59,Mr,Wi&&Wi(di,Ya));ye.current={onUpDown:function(Ul){var As=Ca[Ze];if(As)for(var Ks=As.units.findIndex(function(_f){return _f.value===As.value}),Cc=As.units.length,qc=1;qc<Cc;qc+=1){var Of=As.units[(Ks+Ul*qc+Cc)%Cc];if(Of.disabled!==!0){As.onSelect(Of.value);break}}}};function _c(Hs,Ul,As,Ks,Cc){Hs!==!1&&Ca.push({node:p.cloneElement(Ul,{prefixCls:ci,value:As,active:Ze===Ca.length,onSelect:Cc,units:Ks,hideDisabledOptions:Fa}),onSelect:Cc,value:As,units:Ks})}_c(Mt,p.createElement(Rm,{key:"hour"}),Wa,Al,function(Hs){ai(uo($a,Hs,Ya,li),"mouse")}),_c(Wt,p.createElement(Rm,{key:"minute"}),Ya,Ql,function(Hs){ai(uo($a,Wa,Hs,li),"mouse")}),_c(en,p.createElement(Rm,{key:"second"}),li,zs,function(Hs){ai(uo($a,Wa,Ya,Hs),"mouse")});var hc=-1;return typeof $a=="boolean"&&(hc=$a?1:0),_c(Tn===!0,p.createElement(Rm,{key:"12hours"}),hc,[{label:"AM",value:0,disabled:ts},{label:"PM",value:1,disabled:Ws}],function(Hs){ai(uo(!!Hs,Wa,Ya,li),"mouse")}),p.createElement("div",{className:ii},Ca.map(function(Hs){var Ul=Hs.node;return Ul}))}var SC=EE,CC=function(J){return J.filter(function(xe){return xe!==!1}).length};function wC(ae){var J=ae.generateConfig,xe=ae.format,ye=xe===void 0?"HH:mm:ss":xe,Ze=ae.prefixCls,xt=ae.active,Mt=ae.operationRef,Wt=ae.showHour,en=ae.showMinute,Tn=ae.showSecond,On=ae.use12Hours,qn=On===void 0?!1:On,nr=ae.onSelect,hr=ae.value,ur="".concat(Ze,"-time-panel"),Mr=p.useRef(),wr=p.useState(-1),ia=(0,y.Z)(wr,2),ua=ia[0],ga=ia[1],Fa=CC([Wt,en,Tn,qn]);return Mt.current={onKeyDown:function(Ca){return Xe(Ca,{onLeftRight:function(ci){ga((ua+ci+Fa)%Fa)},onUpDown:function(ci){ua===-1?ga(0):Mr.current&&Mr.current.onUpDown(ci)},onEnter:function(){nr(hr||J.getNow(),"key"),ga(-1)}})},onBlur:function(){ga(-1)}},p.createElement("div",{className:ze()(ur,(0,v.Z)({},"".concat(ur,"-active"),xt))},p.createElement(bE,(0,Da.Z)({},ae,{format:ye,prefixCls:Ze})),p.createElement(SC,(0,Da.Z)({},ae,{prefixCls:Ze,activeColumnIndex:ua,operationRef:Mr})))}var SE=wC,$w=p.createContext({}),Gp=$w;function I_(ae){var J=ae.cellPrefixCls,xe=ae.generateConfig,ye=ae.rangedValue,Ze=ae.hoverRangedValue,xt=ae.isInView,Mt=ae.isSameCell,Wt=ae.offsetCell,en=ae.today,Tn=ae.value;function On(qn){var nr,hr=Wt(qn,-1),ur=Wt(qn,1),Mr=lp(ye,0),wr=lp(ye,1),ia=lp(Ze,0),ua=lp(Ze,1),ga=P1(xe,ia,ua,qn);function Fa(di){return Mt(Mr,di)}function ai(di){return Mt(wr,di)}var Ca=Mt(ia,qn),ii=Mt(ua,qn),ci=(ga||ii)&&(!xt(hr)||ai(hr)),$a=(ga||Ca)&&(!xt(ur)||Fa(ur));return nr={},(0,v.Z)(nr,"".concat(J,"-in-view"),xt(qn)),(0,v.Z)(nr,"".concat(J,"-in-range"),P1(xe,Mr,wr,qn)),(0,v.Z)(nr,"".concat(J,"-range-start"),Fa(qn)),(0,v.Z)(nr,"".concat(J,"-range-end"),ai(qn)),(0,v.Z)(nr,"".concat(J,"-range-start-single"),Fa(qn)&&!wr),(0,v.Z)(nr,"".concat(J,"-range-end-single"),ai(qn)&&!Mr),(0,v.Z)(nr,"".concat(J,"-range-start-near-hover"),Fa(qn)&&(Mt(hr,ia)||P1(xe,ia,ua,hr))),(0,v.Z)(nr,"".concat(J,"-range-end-near-hover"),ai(qn)&&(Mt(ur,ua)||P1(xe,ia,ua,ur))),(0,v.Z)(nr,"".concat(J,"-range-hover"),ga),(0,v.Z)(nr,"".concat(J,"-range-hover-start"),Ca),(0,v.Z)(nr,"".concat(J,"-range-hover-end"),ii),(0,v.Z)(nr,"".concat(J,"-range-hover-edge-start"),ci),(0,v.Z)(nr,"".concat(J,"-range-hover-edge-end"),$a),(0,v.Z)(nr,"".concat(J,"-range-hover-edge-start-near-range"),ci&&Mt(hr,wr)),(0,v.Z)(nr,"".concat(J,"-range-hover-edge-end-near-range"),$a&&Mt(ur,Mr)),(0,v.Z)(nr,"".concat(J,"-today"),Mt(en,qn)),(0,v.Z)(nr,"".concat(J,"-selected"),Mt(Tn,qn)),nr}return On}function D_(ae){var J=ae.prefixCls,xe=ae.generateConfig,ye=ae.prefixColumn,Ze=ae.locale,xt=ae.rowCount,Mt=ae.viewDate,Wt=ae.value,en=ae.dateRender,Tn=p.useContext(Gp),On=Tn.rangedValue,qn=Tn.hoverRangedValue,nr=Ly(Ze.locale,xe,Mt),hr="".concat(J,"-cell"),ur=xe.locale.getWeekFirstDay(Ze.locale),Mr=xe.getNow(),wr=[],ia=Ze.shortWeekDays||(xe.locale.getShortWeekDays?xe.locale.getShortWeekDays(Ze.locale):[]);ye&&wr.push(p.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var ua=0;ua<jl;ua+=1)wr.push(p.createElement("th",{key:ua},ia[(ua+ur)%jl]));var ga=I_({cellPrefixCls:hr,today:Mr,value:Wt,generateConfig:xe,rangedValue:ye?null:On,hoverRangedValue:ye?null:qn,isSameCell:function(Ca,ii){return uh(xe,Ca,ii)},isInView:function(Ca){return Rd(xe,Ca,Mt)},offsetCell:function(Ca,ii){return xe.addDate(Ca,ii)}}),Fa=en?function(ai){return en(ai,Mr)}:void 0;return p.createElement(ou,(0,Da.Z)({},ae,{rowNum:xt,colNum:jl,baseDate:nr,getCellNode:Fa,getCellText:xe.getDate,getCellClassName:ga,getCellDate:xe.addDate,titleCell:function(Ca){return Pm(Ca,{locale:Ze,format:"YYYY-MM-DD",generateConfig:xe})},headerCells:wr}))}var l_=D_;function Jg(ae){var J=ae.prefixCls,xe=ae.generateConfig,ye=ae.locale,Ze=ae.viewDate,xt=ae.onNextMonth,Mt=ae.onPrevMonth,Wt=ae.onNextYear,en=ae.onPrevYear,Tn=ae.onYearClick,On=ae.onMonthClick,qn=p.useContext(po),nr=qn.hideHeader;if(nr)return null;var hr="".concat(J,"-header"),ur=ye.shortMonths||(xe.locale.getShortMonths?xe.locale.getShortMonths(ye.locale):[]),Mr=xe.getMonth(Ze),wr=p.createElement("button",{type:"button",key:"year",onClick:Tn,tabIndex:-1,className:"".concat(J,"-year-btn")},Pm(Ze,{locale:ye,format:ye.yearFormat,generateConfig:xe})),ia=p.createElement("button",{type:"button",key:"month",onClick:On,tabIndex:-1,className:"".concat(J,"-month-btn")},ye.monthFormat?Pm(Ze,{locale:ye,format:ye.monthFormat,generateConfig:xe}):ur[Mr]),ua=ye.monthBeforeYear?[ia,wr]:[wr,ia];return p.createElement(Va,(0,Da.Z)({},ae,{prefixCls:hr,onSuperPrev:en,onPrev:Mt,onNext:xt,onSuperNext:Wt}),ua)}var c_=Jg,Qg=6;function Xb(ae){var J=ae.prefixCls,xe=ae.panelName,ye=xe===void 0?"date":xe,Ze=ae.keyboardConfig,xt=ae.active,Mt=ae.operationRef,Wt=ae.generateConfig,en=ae.value,Tn=ae.viewDate,On=ae.onViewDateChange,qn=ae.onPanelChange,nr=ae.onSelect,hr="".concat(J,"-").concat(ye,"-panel");Mt.current={onKeyDown:function(ia){return Xe(ia,(0,d.Z)({onLeftRight:function(ga){nr(Wt.addDate(en||Tn,ga),"key")},onCtrlLeftRight:function(ga){nr(Wt.addYear(en||Tn,ga),"key")},onUpDown:function(ga){nr(Wt.addDate(en||Tn,ga*jl),"key")},onPageUpDown:function(ga){nr(Wt.addMonth(en||Tn,ga),"key")}},Ze))}};var ur=function(ia){var ua=Wt.addYear(Tn,ia);On(ua),qn(null,ua)},Mr=function(ia){var ua=Wt.addMonth(Tn,ia);On(ua),qn(null,ua)};return p.createElement("div",{className:ze()(hr,(0,v.Z)({},"".concat(hr,"-active"),xt))},p.createElement(c_,(0,Da.Z)({},ae,{prefixCls:J,value:en,viewDate:Tn,onPrevYear:function(){ur(-1)},onNextYear:function(){ur(1)},onPrevMonth:function(){Mr(-1)},onNextMonth:function(){Mr(1)},onMonthClick:function(){qn("month",Tn)},onYearClick:function(){qn("year",Tn)}})),p.createElement(l_,(0,Da.Z)({},ae,{onSelect:function(ia){return nr(ia,"mouse")},prefixCls:J,value:en,viewDate:Tn,rowCount:Qg})))}var r0=Xb,a0=xE("date","time");function O0(ae){var J=ae.prefixCls,xe=ae.operationRef,ye=ae.generateConfig,Ze=ae.value,xt=ae.defaultValue,Mt=ae.disabledTime,Wt=ae.showTime,en=ae.onSelect,Tn="".concat(J,"-datetime-panel"),On=p.useState(null),qn=(0,y.Z)(On,2),nr=qn[0],hr=qn[1],ur=p.useRef({}),Mr=p.useRef({}),wr=(0,A.Z)(Wt)==="object"?(0,d.Z)({},Wt):{};function ia(ai){var Ca=a0.indexOf(nr)+ai,ii=a0[Ca]||null;return ii}var ua=function(Ca){Mr.current.onBlur&&Mr.current.onBlur(Ca),hr(null)};xe.current={onKeyDown:function(Ca){if(Ca.which===Ii.TAB){var ii=ia(Ca.shiftKey?-1:1);return hr(ii),ii&&Ca.preventDefault(),!0}if(nr){var ci=nr==="date"?ur:Mr;return ci.current&&ci.current.onKeyDown&&ci.current.onKeyDown(Ca),!0}return[Ii.LEFT,Ii.RIGHT,Ii.UP,Ii.DOWN].includes(Ca.which)?(hr("date"),!0):!1},onBlur:ua,onClose:ua};var ga=function(Ca,ii){var ci=Ca;ii==="date"&&!Ze&&wr.defaultValue?(ci=ye.setHour(ci,ye.getHour(wr.defaultValue)),ci=ye.setMinute(ci,ye.getMinute(wr.defaultValue)),ci=ye.setSecond(ci,ye.getSecond(wr.defaultValue))):ii==="time"&&!Ze&&xt&&(ci=ye.setYear(ci,ye.getYear(xt)),ci=ye.setMonth(ci,ye.getMonth(xt)),ci=ye.setDate(ci,ye.getDate(xt))),en&&en(ci,"mouse")},Fa=Mt?Mt(Ze||null):{};return p.createElement("div",{className:ze()(Tn,(0,v.Z)({},"".concat(Tn,"-active"),nr))},p.createElement(r0,(0,Da.Z)({},ae,{operationRef:ur,active:nr==="date",onSelect:function(Ca){ga(Cs(ye,Ca,!Ze&&(0,A.Z)(Wt)==="object"?Wt.defaultValue:null),"date")}})),p.createElement(SE,(0,Da.Z)({},ae,{format:void 0},wr,Fa,{disabledTime:null,defaultValue:void 0,operationRef:Mr,active:nr==="time",onSelect:function(Ca){ga(Ca,"time")}})))}var i0=O0;function Jb(ae){var J=ae.prefixCls,xe=ae.generateConfig,ye=ae.locale,Ze=ae.value,xt="".concat(J,"-cell"),Mt=function(On){return p.createElement("td",{key:"week",className:ze()(xt,"".concat(xt,"-week"))},xe.locale.getWeek(ye.locale,On))},Wt="".concat(J,"-week-panel-row"),en=function(On){return ze()(Wt,(0,v.Z)({},"".concat(Wt,"-selected"),bC(xe,ye.locale,Ze,On)))};return p.createElement(r0,(0,Da.Z)({},ae,{panelName:"week",prefixColumn:Mt,rowClassName:en,keyboardConfig:{onLeftRight:null}}))}var I0=Jb;function jy(ae){var J=ae.prefixCls,xe=ae.generateConfig,ye=ae.locale,Ze=ae.viewDate,xt=ae.onNextYear,Mt=ae.onPrevYear,Wt=ae.onYearClick,en=p.useContext(po),Tn=en.hideHeader;if(Tn)return null;var On="".concat(J,"-header");return p.createElement(Va,(0,Da.Z)({},ae,{prefixCls:On,onSuperPrev:Mt,onSuperNext:xt}),p.createElement("button",{type:"button",onClick:Wt,className:"".concat(J,"-year-btn")},Pm(Ze,{locale:ye,format:ye.yearFormat,generateConfig:xe})))}var u_=jy,Qb=3,qb=4;function TC(ae){var J=ae.prefixCls,xe=ae.locale,ye=ae.value,Ze=ae.viewDate,xt=ae.generateConfig,Mt=ae.monthCellRender,Wt=p.useContext(Gp),en=Wt.rangedValue,Tn=Wt.hoverRangedValue,On="".concat(J,"-cell"),qn=I_({cellPrefixCls:On,value:ye,generateConfig:xt,rangedValue:en,hoverRangedValue:Tn,isSameCell:function(wr,ia){return Rd(xt,wr,ia)},isInView:function(){return!0},offsetCell:function(wr,ia){return xt.addMonth(wr,ia)}}),nr=xe.shortMonths||(xt.locale.getShortMonths?xt.locale.getShortMonths(xe.locale):[]),hr=xt.setMonth(Ze,0),ur=Mt?function(Mr){return Mt(Mr,xe)}:void 0;return p.createElement(ou,(0,Da.Z)({},ae,{rowNum:qb,colNum:Qb,baseDate:hr,getCellNode:ur,getCellText:function(wr){return xe.monthFormat?Pm(wr,{locale:xe,format:xe.monthFormat,generateConfig:xt}):nr[xt.getMonth(wr)]},getCellClassName:qn,getCellDate:xt.addMonth,titleCell:function(wr){return Pm(wr,{locale:xe,format:"YYYY-MM",generateConfig:xt})}}))}var f_=TC;function ay(ae){var J=ae.prefixCls,xe=ae.operationRef,ye=ae.onViewDateChange,Ze=ae.generateConfig,xt=ae.value,Mt=ae.viewDate,Wt=ae.onPanelChange,en=ae.onSelect,Tn="".concat(J,"-month-panel");xe.current={onKeyDown:function(nr){return Xe(nr,{onLeftRight:function(ur){en(Ze.addMonth(xt||Mt,ur),"key")},onCtrlLeftRight:function(ur){en(Ze.addYear(xt||Mt,ur),"key")},onUpDown:function(ur){en(Ze.addMonth(xt||Mt,ur*Qb),"key")},onEnter:function(){Wt("date",xt||Mt)}})}};var On=function(nr){var hr=Ze.addYear(Mt,nr);ye(hr),Wt(null,hr)};return p.createElement("div",{className:Tn},p.createElement(u_,(0,Da.Z)({},ae,{prefixCls:J,onPrevYear:function(){On(-1)},onNextYear:function(){On(1)},onYearClick:function(){Wt("year",Mt)}})),p.createElement(f_,(0,Da.Z)({},ae,{prefixCls:J,onSelect:function(nr){en(nr,"mouse"),Wt("date",nr)}})))}var GM=ay;function CE(ae){var J=ae.prefixCls,xe=ae.generateConfig,ye=ae.locale,Ze=ae.viewDate,xt=ae.onNextYear,Mt=ae.onPrevYear,Wt=ae.onYearClick,en=p.useContext(po),Tn=en.hideHeader;if(Tn)return null;var On="".concat(J,"-header");return p.createElement(Va,(0,Da.Z)({},ae,{prefixCls:On,onSuperPrev:Mt,onSuperNext:xt}),p.createElement("button",{type:"button",onClick:Wt,className:"".concat(J,"-year-btn")},Pm(Ze,{locale:ye,format:ye.yearFormat,generateConfig:xe})))}var AC=CE,d_=4,R1=1;function MC(ae){var J=ae.prefixCls,xe=ae.locale,ye=ae.value,Ze=ae.viewDate,xt=ae.generateConfig,Mt=p.useContext(Gp),Wt=Mt.rangedValue,en=Mt.hoverRangedValue,Tn="".concat(J,"-cell"),On=I_({cellPrefixCls:Tn,value:ye,generateConfig:xt,rangedValue:Wt,hoverRangedValue:en,isSameCell:function(hr,ur){return pp(xt,hr,ur)},isInView:function(){return!0},offsetCell:function(hr,ur){return xt.addMonth(hr,ur*3)}}),qn=xt.setDate(xt.setMonth(Ze,0),1);return p.createElement(ou,(0,Da.Z)({},ae,{rowNum:R1,colNum:d_,baseDate:qn,getCellText:function(hr){return Pm(hr,{locale:xe,format:xe.quarterFormat||"[Q]Q",generateConfig:xt})},getCellClassName:On,getCellDate:function(hr,ur){return xt.addMonth(hr,ur*3)},titleCell:function(hr){return Pm(hr,{locale:xe,format:"YYYY-[Q]Q",generateConfig:xt})}}))}var o0=MC;function D0(ae){var J=ae.prefixCls,xe=ae.operationRef,ye=ae.onViewDateChange,Ze=ae.generateConfig,xt=ae.value,Mt=ae.viewDate,Wt=ae.onPanelChange,en=ae.onSelect,Tn="".concat(J,"-quarter-panel");xe.current={onKeyDown:function(nr){return Xe(nr,{onLeftRight:function(ur){en(Ze.addMonth(xt||Mt,ur*3),"key")},onCtrlLeftRight:function(ur){en(Ze.addYear(xt||Mt,ur),"key")},onUpDown:function(ur){en(Ze.addYear(xt||Mt,ur),"key")}})}};var On=function(nr){var hr=Ze.addYear(Mt,nr);ye(hr),Wt(null,hr)};return p.createElement("div",{className:Tn},p.createElement(AC,(0,Da.Z)({},ae,{prefixCls:J,onPrevYear:function(){On(-1)},onNextYear:function(){On(1)},onYearClick:function(){Wt("year",Mt)}})),p.createElement(o0,(0,Da.Z)({},ae,{prefixCls:J,onSelect:function(nr){en(nr,"mouse")}})))}var iy=D0;function Kw(ae){var J=ae.prefixCls,xe=ae.generateConfig,ye=ae.viewDate,Ze=ae.onPrevDecade,xt=ae.onNextDecade,Mt=ae.onDecadeClick,Wt=p.useContext(po),en=Wt.hideHeader;if(en)return null;var Tn="".concat(J,"-header"),On=xe.getYear(ye),qn=Math.floor(On/Cd)*Cd,nr=qn+Cd-1;return p.createElement(Va,(0,Da.Z)({},ae,{prefixCls:Tn,onSuperPrev:Ze,onSuperNext:xt}),p.createElement("button",{type:"button",onClick:Mt,className:"".concat(J,"-decade-btn")},qn,"-",nr))}var Yw=Kw,Vv=3,jg=4;function wE(ae){var J=ae.prefixCls,xe=ae.value,ye=ae.viewDate,Ze=ae.locale,xt=ae.generateConfig,Mt=p.useContext(Gp),Wt=Mt.rangedValue,en=Mt.hoverRangedValue,Tn="".concat(J,"-cell"),On=xt.getYear(ye),qn=Math.floor(On/Cd)*Cd,nr=qn+Cd-1,hr=xt.setYear(ye,qn-Math.ceil((Vv*jg-Cd)/2)),ur=function(ia){var ua=xt.getYear(ia);return qn<=ua&&ua<=nr},Mr=I_({cellPrefixCls:Tn,value:xe,generateConfig:xt,rangedValue:Wt,hoverRangedValue:en,isSameCell:function(ia,ua){return Ku(xt,ia,ua)},isInView:ur,offsetCell:function(ia,ua){return xt.addYear(ia,ua)}});return p.createElement(ou,(0,Da.Z)({},ae,{rowNum:jg,colNum:Vv,baseDate:hr,getCellText:xt.getYear,getCellClassName:Mr,getCellDate:xt.addYear,titleCell:function(ia){return Pm(ia,{locale:Ze,format:"YYYY",generateConfig:xt})}}))}var s0=wE,Cd=10;function Xw(ae){var J=ae.prefixCls,xe=ae.operationRef,ye=ae.onViewDateChange,Ze=ae.generateConfig,xt=ae.value,Mt=ae.viewDate,Wt=ae.sourceMode,en=ae.onSelect,Tn=ae.onPanelChange,On="".concat(J,"-year-panel");xe.current={onKeyDown:function(hr){return Xe(hr,{onLeftRight:function(Mr){en(Ze.addYear(xt||Mt,Mr),"key")},onCtrlLeftRight:function(Mr){en(Ze.addYear(xt||Mt,Mr*Cd),"key")},onUpDown:function(Mr){en(Ze.addYear(xt||Mt,Mr*Vv),"key")},onEnter:function(){Tn(Wt==="date"?"date":"month",xt||Mt)}})}};var qn=function(hr){var ur=Ze.addYear(Mt,hr*10);ye(ur),Tn(null,ur)};return p.createElement("div",{className:On},p.createElement(Yw,(0,Da.Z)({},ae,{prefixCls:J,onPrevDecade:function(){qn(-1)},onNextDecade:function(){qn(1)},onDecadeClick:function(){Tn("decade",Mt)}})),p.createElement(s0,(0,Da.Z)({},ae,{prefixCls:J,onSelect:function(hr){Tn(Wt==="date"?"date":"month",hr),en(hr,"mouse")}})))}var zm=Xw;function Th(ae,J,xe){return xe?p.createElement("div",{className:"".concat(ae,"-footer-extra")},xe(J)):null}function kC(ae){var J=ae.prefixCls,xe=ae.rangeList,ye=xe===void 0?[]:xe,Ze=ae.components,xt=Ze===void 0?{}:Ze,Mt=ae.needConfirmButton,Wt=ae.onNow,en=ae.onOk,Tn=ae.okDisabled,On=ae.showNow,qn=ae.locale,nr,hr;if(ye.length){var ur=xt.rangeItem||"span";nr=p.createElement(p.Fragment,null,ye.map(function(wr){var ia=wr.label,ua=wr.onClick,ga=wr.onMouseEnter,Fa=wr.onMouseLeave;return p.createElement("li",{key:ia,className:"".concat(J,"-preset")},p.createElement(ur,{onClick:ua,onMouseEnter:ga,onMouseLeave:Fa},ia))}))}if(Mt){var Mr=xt.button||"button";Wt&&!nr&&On!==!1&&(nr=p.createElement("li",{className:"".concat(J,"-now")},p.createElement("a",{className:"".concat(J,"-now-btn"),onClick:Wt},qn.now))),hr=Mt&&p.createElement("li",{className:"".concat(J,"-ok")},p.createElement(Mr,{disabled:Tn,onClick:en},qn.ok))}return!nr&&!hr?null:p.createElement("ul",{className:"".concat(J,"-ranges")},nr,hr)}var p_=["date","month"];function PC(ae){var J,xe=ae.prefixCls,ye=xe===void 0?"rc-picker":xe,Ze=ae.className,xt=ae.style,Mt=ae.locale,Wt=ae.generateConfig,en=ae.value,Tn=ae.defaultValue,On=ae.pickerValue,qn=ae.defaultPickerValue,nr=ae.disabledDate,hr=ae.mode,ur=ae.picker,Mr=ur===void 0?"date":ur,wr=ae.tabIndex,ia=wr===void 0?0:wr,ua=ae.showNow,ga=ae.showTime,Fa=ae.showToday,ai=ae.renderExtraFooter,Ca=ae.hideHeader,ii=ae.onSelect,ci=ae.onChange,$a=ae.onPanelChange,di=ae.onMouseDown,Wa=ae.onPickerValueChange,Ya=ae.onOk,li=ae.components,ti=ae.direction,Ba=ae.hourStep,Ni=Ba===void 0?1:Ba,ji=ae.minuteStep,go=ji===void 0?1:ji,Wi=ae.secondStep,uo=Wi===void 0?1:Wi,wo=Mr==="date"&&!!ga||Mr==="time",Io=24%Ni==0,Vo=60%go==0,bs=60%uo==0,ts=p.useContext(po),Ws=ts.operationRef,Al=ts.panelRef,Ql=ts.onSelect,zs=ts.hideRanges,_c=ts.defaultOpenValue,hc=p.useContext(Gp),Hs=hc.inRange,Ul=hc.panelPosition,As=hc.rangedValue,Ks=hc.hoverRangedValue,Cc=p.useRef({}),qc=p.useRef(!0),Of=Po(null,{value:en,defaultValue:Tn,postState:function(rl){return!rl&&_c&&Mr==="time"?_c:rl}}),_f=(0,y.Z)(Of,2),sd=_f[0],ud=_f[1],Su=Po(null,{value:On,defaultValue:qn||sd,postState:function(rl){var sc=Wt.getNow();if(!rl)return sc;if(!sd&&ga){var hf=(0,A.Z)(ga)==="object"?ga.defaultValue:Tn;return Cs(Wt,Array.isArray(rl)?rl[0]:rl,hf||sc)}return Array.isArray(rl)?rl[0]:rl}}),Uu=(0,y.Z)(Su,2),mp=Uu[0],wv=Uu[1],Au=function(rl){wv(rl),Wa&&Wa(rl)},qd=function(rl){var sc=Uf[Mr];return sc?sc(rl):rl},Ad=Po(function(){return Mr==="time"?"time":qd("date")},{value:hr}),ad=(0,y.Z)(Ad,2),fp=ad[0],Tv=ad[1];p.useEffect(function(){Tv(Mr)},[Mr]);var hv=p.useState(function(){return fp}),Bh=(0,y.Z)(hv,2),Mh=Bh[0],xp=Bh[1],Sh=function(rl,sc){var hf=qd(rl||fp);xp(fp),Tv(hf),$a&&(fp!==hf||Ny(Wt,mp,mp))&&$a(sc,hf)},Qf=function(rl,sc){var hf=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(fp===Mr||hf)&&(ud(rl),ii&&ii(rl),Ql&&Ql(rl,sc),ci&&!Ny(Wt,rl,sd)&&!(nr==null?void 0:nr(rl))&&ci(rl))},Nm=function(rl){if(p_.includes(fp)){var sc,hf,ld=fp==="date";switch(rl===Ii.PAGE_UP||rl===Ii.PAGE_DOWN?hf=ld?Wt.addMonth:Wt.addYear:hf=ld?Wt.addDate:Wt.addMonth,rl){case Ii.LEFT:case Ii.PAGE_UP:sc=hf(mp,-1);break;case Ii.RIGHT:case Ii.PAGE_DOWN:sc=hf(mp,1);break;case Ii.UP:case Ii.DOWN:sc=hf(mp,Number("".concat(rl===Ii.UP?"-":"").concat(ld?jl:Qb)));break}if(sc)return!(nr==null?void 0:nr(sc))}return!0},av=function(rl){if(Cc.current&&Cc.current.onKeyDown){var sc=!0,hf=rl.which;if([Ii.LEFT,Ii.RIGHT,Ii.UP,Ii.DOWN,Ii.PAGE_UP,Ii.PAGE_DOWN,Ii.ENTER].includes(hf)&&(rl.preventDefault(),hf!==Ii.ENTER&&ia===0&&(sc=Nm(hf))),sc)return Cc.current.onKeyDown(rl)}return uc(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},yu=function(rl){Cc.current&&Cc.current.onBlur&&Cc.current.onBlur(rl)};Ws&&Ul!=="right"&&(Ws.current={onKeyDown:av,onClose:function(){Cc.current&&Cc.current.onClose&&Cc.current.onClose()}}),p.useEffect(function(){en&&!qc.current&&wv(en)},[en]),p.useEffect(function(){qc.current=!1},[]);var kp,Md=(0,d.Z)((0,d.Z)({},ae),{},{operationRef:Cc,prefixCls:ye,viewDate:mp,value:sd,onViewDateChange:Au,sourceMode:Mh,onPanelChange:Sh,disabledDate:nr});switch(delete Md.onChange,delete Md.onSelect,fp){case"decade":kp=p.createElement(hs,(0,Da.Z)({},Md,{onSelect:function(rl,sc){Au(rl),Qf(rl,sc)}}));break;case"year":kp=p.createElement(zm,(0,Da.Z)({},Md,{onSelect:function(rl,sc){Au(rl),Qf(rl,sc)}}));break;case"month":kp=p.createElement(GM,(0,Da.Z)({},Md,{onSelect:function(rl,sc){Au(rl),Qf(rl,sc)}}));break;case"quarter":kp=p.createElement(iy,(0,Da.Z)({},Md,{onSelect:function(rl,sc){Au(rl),Qf(rl,sc)}}));break;case"week":kp=p.createElement(I0,(0,Da.Z)({},Md,{onSelect:function(rl,sc){Au(rl),Qf(rl,sc)}}));break;case"time":delete Md.showTime,kp=p.createElement(SE,(0,Da.Z)({},Md,(0,A.Z)(ga)==="object"?ga:null,{onSelect:function(rl,sc){Au(rl),Qf(rl,sc)}}));break;default:ga?kp=p.createElement(i0,(0,Da.Z)({},Md,{onSelect:function(rl,sc){Au(rl),Qf(rl,sc)}})):kp=p.createElement(r0,(0,Da.Z)({},Md,{onSelect:function(rl,sc){Au(rl),Qf(rl,sc)}}))}var kd,mv,Jp=function(){var rl=Wt.getNow(),sc=vs(Wt.getHour(rl),Wt.getMinute(rl),Wt.getSecond(rl),Io?Ni:1,Vo?go:1,bs?uo:1),hf=Vs(Wt,rl,sc[0],sc[1],sc[2]);Qf(hf,"submit")};zs||(kd=Th(ye,fp,ai),mv=kC({prefixCls:ye,components:li,needConfirmButton:wo,okDisabled:!sd||nr&&nr(sd),locale:Mt,showNow:ua,onNow:wo&&Jp,onOk:function(){sd&&(Qf(sd,"submit",!0),Ya&&Ya(sd))}}));var iv;if(Fa&&fp==="date"&&Mr==="date"&&!ga){var kh=Wt.getNow(),ym="".concat(ye,"-today-btn"),cm=nr&&nr(kh);iv=p.createElement("a",{className:ze()(ym,cm&&"".concat(ym,"-disabled")),"aria-disabled":cm,onClick:function(){cm||Qf(kh,"mouse",!0)}},Mt.today)}return p.createElement(po.Provider,{value:(0,d.Z)((0,d.Z)({},ts),{},{mode:fp,hideHeader:"hideHeader"in ae?Ca:ts.hideHeader,hidePrevBtn:Hs&&Ul==="right",hideNextBtn:Hs&&Ul==="left"})},p.createElement("div",{tabIndex:ia,className:ze()("".concat(ye,"-panel"),Ze,(J={},(0,v.Z)(J,"".concat(ye,"-panel-has-range"),As&&As[0]&&As[1]),(0,v.Z)(J,"".concat(ye,"-panel-has-range-hover"),Ks&&Ks[0]&&Ks[1]),(0,v.Z)(J,"".concat(ye,"-panel-rtl"),ti==="rtl"),J)),style:xt,onKeyDown:av,onBlur:yu,onMouseDown:di,ref:Al},kp,kd||mv||iv?p.createElement("div",{className:"".concat(ye,"-footer")},kd,mv,iv):null))}var ex=PC,$M=o(39971),Od={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function O1(ae){var J,xe=ae.prefixCls,ye=ae.popupElement,Ze=ae.popupStyle,xt=ae.visible,Mt=ae.dropdownClassName,Wt=ae.dropdownAlign,en=ae.transitionName,Tn=ae.getPopupContainer,On=ae.children,qn=ae.range,nr=ae.popupPlacement,hr=ae.direction,ur="".concat(xe,"-dropdown"),Mr=function(){return nr!==void 0?nr:hr==="rtl"?"bottomRight":"bottomLeft"};return p.createElement($M.Z,{showAction:[],hideAction:[],popupPlacement:Mr(),builtinPlacements:Od,prefixCls:ur,popupTransitionName:en,popup:ye,popupAlign:Wt,popupVisible:xt,popupClassName:ze()(Mt,(J={},(0,v.Z)(J,"".concat(ur,"-range"),qn),(0,v.Z)(J,"".concat(ur,"-rtl"),hr==="rtl"),J)),popupStyle:Ze,getPopupContainer:Tn},On)}var I1=O1;function oy(ae){var J=ae.open,xe=ae.value,ye=ae.isClickOutside,Ze=ae.triggerOpen,xt=ae.forwardKeyDown,Mt=ae.onKeyDown,Wt=ae.blurToCancel,en=ae.onSubmit,Tn=ae.onCancel,On=ae.onFocus,qn=ae.onBlur,nr=ae.currentFocusedKey,hr=ae.key,ur=hr===void 0?"start":hr,Mr=(0,p.useState)(!1),wr=(0,y.Z)(Mr,2),ia=wr[0],ua=wr[1],ga=(0,p.useState)(!1),Fa=(0,y.Z)(ga,2),ai=Fa[0],Ca=Fa[1],ii=(0,p.useRef)(),ci=(0,p.useRef)(!1),$a=(0,p.useRef)(!1),di=(0,p.useRef)(!1),Wa={onMouseDown:function(){ua(!0),Ze(!0)},onKeyDown:function(li){var ti=function(){di.current=!0};if(Mt(li,ti),!di.current){switch(li.which){case Ii.ENTER:{J?en()!==!1&&ua(!0):Ze(!0),li.preventDefault();return}case Ii.TAB:{ia&&J&&!li.shiftKey?(ua(!1),li.preventDefault()):!ia&&J&&!xt(li)&&li.shiftKey&&(ua(!0),li.preventDefault());return}case Ii.ESC:{ua(!0),Tn();return}}!J&&![Ii.SHIFT].includes(li.which)?Ze(!0):ia||xt(li)}},onFocus:function(li){ua(!0),Ca(!0),nr&&(nr.current=ur),clearTimeout(ii.current),On&&On(li)},onBlur:function(li){if(ci.current||!ye(document.activeElement)){ci.current=!1;return}Wt?setTimeout(function(){for(var ti=document,Ba=ti.activeElement;Ba&&Ba.shadowRoot;)Ba=Ba.shadowRoot.activeElement;ye(Ba)&&Tn()},0):J&&(Ze(!1),$a.current&&en()),Ca(!1),nr?(nr.current="",ii.current=setTimeout(function(){nr.current||qn==null||qn(li)},100)):qn==null||qn(li)}};return(0,p.useEffect)(function(){$a.current=!1},[J]),(0,p.useEffect)(function(){$a.current=!0},[xe]),(0,p.useEffect)(function(){return ki(function(Ya){var li=Oo(Ya),ti=ye(li);J?ti?(!ai||ti)&&Ze(!1):(ci.current=!0,requestAnimationFrame(function(){ci.current=!1})):ai&&!ti&&(ci.current=!0)})}),(0,p.useEffect)(function(){return function(){return clearTimeout(ii.current)}},[]),[Wa,{focused:ai,typing:ia}]}function v_(ae){var J=ae.valueTexts,xe=ae.onTextChange,ye=p.useState(""),Ze=(0,y.Z)(ye,2),xt=Ze[0],Mt=Ze[1],Wt=p.useRef([]);Wt.current=J;function en(On){Mt(On),xe(On)}function Tn(){Mt(Wt.current[0])}return p.useEffect(function(){J.every(function(On){return On!==xt})&&Tn()},[J.join("||")]),[xt,en,Tn]}var Jw=o(23270),D1=o.n(Jw);function zv(ae,J){var xe=J.formatList,ye=J.generateConfig,Ze=J.locale;return EC(function(){if(!ae)return[[""],""];for(var xt="",Mt=[],Wt=0;Wt<xe.length;Wt+=1){var en=xe[Wt],Tn=Pm(ae,{generateConfig:ye,locale:Ze,format:en});Mt.push(Tn),Wt===0&&(xt=Tn)}return[Mt,xt]},[ae,xe],function(xt,Mt){return xt[0]!==Mt[0]||!D1()(xt[1],Mt[1])})}function wp(ae,J){var xe=J.formatList,ye=J.generateConfig,Ze=J.locale,xt=(0,p.useState)(null),Mt=(0,y.Z)(xt,2),Wt=Mt[0],en=Mt[1],Tn=(0,p.useRef)(null);function On(wr){var ia=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Tn.current),ia){en(wr);return}Tn.current=requestAnimationFrame(function(){en(wr)})}var qn=zv(Wt,{formatList:xe,generateConfig:ye,locale:Ze}),nr=(0,y.Z)(qn,2),hr=nr[1];function ur(wr){On(wr)}function Mr(){var wr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;On(null,wr)}return(0,p.useEffect)(function(){Mr(!0)},[ae]),(0,p.useEffect)(function(){return function(){return cancelAnimationFrame(Tn.current)}},[]),[hr,ur,Mr]}function fh(ae){var J=ae.picker,xe=ae.disabledHours,ye=ae.disabledMinutes,Ze=ae.disabledSeconds;J==="time"&&(xe||ye||Ze)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function By(ae){var J,xe=ae.prefixCls,ye=xe===void 0?"rc-picker":xe,Ze=ae.id,xt=ae.tabIndex,Mt=ae.style,Wt=ae.className,en=ae.dropdownClassName,Tn=ae.dropdownAlign,On=ae.popupStyle,qn=ae.transitionName,nr=ae.generateConfig,hr=ae.locale,ur=ae.inputReadOnly,Mr=ae.allowClear,wr=ae.autoFocus,ia=ae.showTime,ua=ae.picker,ga=ua===void 0?"date":ua,Fa=ae.format,ai=ae.use12Hours,Ca=ae.value,ii=ae.defaultValue,ci=ae.open,$a=ae.defaultOpen,di=ae.defaultOpenValue,Wa=ae.suffixIcon,Ya=ae.clearIcon,li=ae.disabled,ti=ae.disabledDate,Ba=ae.placeholder,Ni=ae.getPopupContainer,ji=ae.pickerRef,go=ae.panelRender,Wi=ae.onChange,uo=ae.onOpenChange,wo=ae.onFocus,Io=ae.onBlur,Vo=ae.onMouseDown,bs=ae.onMouseUp,ts=ae.onMouseEnter,Ws=ae.onMouseLeave,Al=ae.onContextMenu,Ql=ae.onClick,zs=ae.onKeyDown,_c=ae.onSelect,hc=ae.direction,Hs=ae.autoComplete,Ul=Hs===void 0?"off":Hs,As=ae.inputRender,Ks=p.useRef(null),Cc=ga==="date"&&!!ia||ga==="time",qc=Kb(vn(Fa,ga,ia,ai)),Of=p.useRef(null),_f=p.useRef(null),sd=p.useRef(null),ud=Po(null,{value:Ca,defaultValue:ii}),Su=(0,y.Z)(ud,2),Uu=Su[0],mp=Su[1],wv=p.useState(Uu),Au=(0,y.Z)(wv,2),qd=Au[0],Ad=Au[1],ad=p.useRef(null),fp=Po(!1,{value:ci,defaultValue:$a,postState:function(ap){return li?!1:ap},onChange:function(ap){uo&&uo(ap),!ap&&ad.current&&ad.current.onClose&&ad.current.onClose()}}),Tv=(0,y.Z)(fp,2),hv=Tv[0],Bh=Tv[1],Mh=zv(qd,{formatList:qc,generateConfig:nr,locale:hr}),xp=(0,y.Z)(Mh,2),Sh=xp[0],Qf=xp[1],Nm=v_({valueTexts:Sh,onTextChange:function(ap){var um=Gw(ap,{locale:hr,formatList:qc,generateConfig:nr});um&&(!ti||!ti(um))&&Ad(um)}}),av=(0,y.Z)(Nm,3),yu=av[0],kp=av[1],Md=av[2],kd=function(ap){Ad(ap),mp(ap),Wi&&!Ny(nr,Uu,ap)&&Wi(ap,ap?Pm(ap,{generateConfig:nr,locale:hr,format:qc[0]}):"")},mv=function(ap){li&&ap||Bh(ap)},Jp=function(ap){return hv&&ad.current&&ad.current.onKeyDown?ad.current.onKeyDown(ap):(uc(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},iv=function(){for(var ap=arguments.length,um=new Array(ap),x_=0;x_<ap;x_++)um[x_]=arguments[x_];Ql==null||Ql.apply(void 0,um),Ks.current&&(Ks.current.focus(),mv(!0))},kh=oy({blurToCancel:Cc,open:hv,value:yu,triggerOpen:mv,forwardKeyDown:Jp,isClickOutside:function(ap){return!bd([Of.current,_f.current,sd.current],ap)},onSubmit:function(){return!qd||ti&&ti(qd)?!1:(kd(qd),mv(!1),Md(),!0)},onCancel:function(){mv(!1),Ad(Uu),Md()},onKeyDown:function(ap,um){zs==null||zs(ap,um)},onFocus:wo,onBlur:Io}),ym=(0,y.Z)(kh,2),cm=ym[0],Ov=ym[1],rl=Ov.focused,sc=Ov.typing;p.useEffect(function(){hv||(Ad(Uu),!Sh.length||Sh[0]===""?kp(""):Qf!==yu&&Md())},[hv,Sh]),p.useEffect(function(){hv||Md()},[ga]),p.useEffect(function(){Ad(Uu)},[Uu]),ji&&(ji.current={focus:function(){Ks.current&&Ks.current.focus()},blur:function(){Ks.current&&Ks.current.blur()}});var hf=wp(yu,{formatList:qc,generateConfig:nr,locale:hr}),ld=(0,y.Z)(hf,3),cp=ld[0],rp=ld[1],pd=ld[2],Wv=(0,d.Z)((0,d.Z)({},ae),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Iv=p.createElement(ex,(0,Da.Z)({},Wv,{generateConfig:nr,className:ze()((0,v.Z)({},"".concat(ye,"-panel-focused"),!sc)),value:qd,locale:hr,tabIndex:-1,onSelect:function(ap){_c==null||_c(ap),Ad(ap)},direction:hc,onPanelChange:function(ap,um){var x_=ae.onPanelChange;pd(!0),x_==null||x_(ap,um)}}));go&&(Iv=go(Iv));var V_=p.createElement("div",{className:"".concat(ye,"-panel-container"),onMouseDown:function(ap){ap.preventDefault()}},Iv),z_;Wa&&(z_=p.createElement("span",{className:"".concat(ye,"-suffix")},Wa));var Sg;Mr&&Uu&&!li&&(Sg=p.createElement("span",{onMouseDown:function(ap){ap.preventDefault(),ap.stopPropagation()},onMouseUp:function(ap){ap.preventDefault(),ap.stopPropagation(),kd(null),mv(!1)},className:"".concat(ye,"-clear"),role:"button"},Ya||p.createElement("span",{className:"".concat(ye,"-clear-btn")})));var x0=(0,d.Z)((0,d.Z)((0,d.Z)({id:Ze,tabIndex:xt,disabled:li,readOnly:ur||typeof qc[0]=="function"||!sc,value:cp||yu,onChange:function(ap){kp(ap.target.value)},autoFocus:wr,placeholder:Ba,ref:Ks,title:yu},cm),{},{size:or(ga,qc[0],nr)},R0(ae)),{},{autoComplete:Ul}),bm=As?As(x0):p.createElement("input",x0),G0=function(ap,um){(um==="submit"||um!=="key"&&!Cc)&&(kd(ap),mv(!1))},W_=hc==="rtl"?"bottomRight":"bottomLeft";return p.createElement(po.Provider,{value:{operationRef:ad,hideHeader:ga==="time",panelRef:Of,onSelect:G0,open:hv,defaultOpenValue:di,onDateMouseEnter:rp,onDateMouseLeave:pd}},p.createElement(I1,{visible:hv,popupElement:V_,popupStyle:On,prefixCls:ye,dropdownClassName:en,dropdownAlign:Tn,getPopupContainer:Ni,transitionName:qn,popupPlacement:W_,direction:hc},p.createElement("div",{ref:sd,className:ze()(ye,Wt,(J={},(0,v.Z)(J,"".concat(ye,"-disabled"),li),(0,v.Z)(J,"".concat(ye,"-focused"),rl),(0,v.Z)(J,"".concat(ye,"-rtl"),hc==="rtl"),J)),style:Mt,onMouseDown:Vo,onMouseUp:bs,onMouseEnter:ts,onMouseLeave:Ws,onContextMenu:Al,onClick:iv},p.createElement("div",{className:ze()("".concat(ye,"-input"),(0,v.Z)({},"".concat(ye,"-input-placeholder"),!!cp)),ref:_f},bm,z_,Sg))))}var tx=function(ae){(0,Hn.Z)(xe,ae);var J=(0,ut.Z)(xe);function xe(){var ye;(0,lr.Z)(this,xe);for(var Ze=arguments.length,xt=new Array(Ze),Mt=0;Mt<Ze;Mt++)xt[Mt]=arguments[Mt];return ye=J.call.apply(J,[this].concat(xt)),ye.pickerRef=p.createRef(),ye.focus=function(){ye.pickerRef.current&&ye.pickerRef.current.focus()},ye.blur=function(){ye.pickerRef.current&&ye.pickerRef.current.blur()},ye}return(0,nt.Z)(xe,[{key:"render",value:function(){return p.createElement(By,(0,Da.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),xe}(p.Component),Qw=tx;function l0(ae,J,xe){var ye=ae.picker,Ze=ae.locale,xt=ae.selectedValue,Mt=ae.disabledDate,Wt=ae.disabled,en=ae.generateConfig,Tn=lp(xt,0),On=lp(xt,1);function qn(wr){return en.locale.getWeekFirstDate(Ze.locale,wr)}function nr(wr){var ia=en.getYear(wr),ua=en.getMonth(wr);return ia*100+ua}function hr(wr){var ia=en.getYear(wr),ua=Nd(en,wr);return ia*10+ua}var ur=p.useCallback(function(wr){if(Mt&&Mt(wr))return!0;if(Wt[1]&&On)return!uh(en,wr,On)&&en.isAfter(wr,On);if(J&&On)switch(ye){case"quarter":return hr(wr)>hr(On);case"month":return nr(wr)>nr(On);case"week":return qn(wr)>qn(On);default:return!uh(en,wr,On)&&en.isAfter(wr,On)}return!1},[Mt,Wt[1],On,J]),Mr=p.useCallback(function(wr){if(Mt&&Mt(wr))return!0;if(Wt[0]&&Tn)return!uh(en,wr,On)&&en.isAfter(Tn,wr);if(xe&&Tn)switch(ye){case"quarter":return hr(wr)<hr(Tn);case"month":return nr(wr)<nr(Tn);case"week":return qn(wr)<qn(Tn);default:return!uh(en,wr,Tn)&&en.isAfter(Tn,wr)}return!1},[Mt,Wt[0],Tn,xe]);return[ur,Mr]}function qw(ae,J,xe,ye){var Ze=n0(ae,xe,ye,1);function xt(Mt){return Mt(ae,J)?"same":Mt(Ze,J)?"closing":"far"}switch(xe){case"year":return xt(function(Mt,Wt){return Jd(ye,Mt,Wt)});case"quarter":case"month":return xt(function(Mt,Wt){return Ku(ye,Mt,Wt)});default:return xt(function(Mt,Wt){return Rd(ye,Mt,Wt)})}}function pv(ae,J,xe,ye){var Ze=lp(ae,0),xt=lp(ae,1);if(J===0)return Ze;if(Ze&&xt){var Mt=qw(Ze,xt,xe,ye);switch(Mt){case"same":return Ze;case"closing":return Ze;default:return n0(xt,xe,ye,-1)}}return Ze}function N1(ae){var J=ae.values,xe=ae.picker,ye=ae.defaultDates,Ze=ae.generateConfig,xt=p.useState(function(){return[lp(ye,0),lp(ye,1)]}),Mt=(0,y.Z)(xt,2),Wt=Mt[0],en=Mt[1],Tn=p.useState(null),On=(0,y.Z)(Tn,2),qn=On[0],nr=On[1],hr=lp(J,0),ur=lp(J,1);function Mr(ia){return Wt[ia]?Wt[ia]:lp(qn,ia)||pv(J,ia,xe,Ze)||hr||ur||Ze.getNow()}function wr(ia,ua){if(ia){var ga=Vm(qn,ia,ua);en(Vm(Wt,null,ua)||[null,null]);var Fa=(ua+1)%2;lp(J,Fa)||(ga=Vm(ga,ia,Fa)),nr(ga)}else(hr||ur)&&nr(null)}return[Mr,wr]}function jd(ae,J){return ae&&ae[0]&&ae[1]&&J.isAfter(ae[0],ae[1])?[ae[1],ae[0]]:ae}function L1(ae,J,xe,ye){return!!(ae||ye&&ye[J]||xe[(J+1)%2])}function RC(ae){var J,xe,ye,Ze=ae.prefixCls,xt=Ze===void 0?"rc-picker":Ze,Mt=ae.id,Wt=ae.style,en=ae.className,Tn=ae.popupStyle,On=ae.dropdownClassName,qn=ae.transitionName,nr=ae.dropdownAlign,hr=ae.getPopupContainer,ur=ae.generateConfig,Mr=ae.locale,wr=ae.placeholder,ia=ae.autoFocus,ua=ae.disabled,ga=ae.format,Fa=ae.picker,ai=Fa===void 0?"date":Fa,Ca=ae.showTime,ii=ae.use12Hours,ci=ae.separator,$a=ci===void 0?"~":ci,di=ae.value,Wa=ae.defaultValue,Ya=ae.defaultPickerValue,li=ae.open,ti=ae.defaultOpen,Ba=ae.disabledDate,Ni=ae.disabledTime,ji=ae.dateRender,go=ae.panelRender,Wi=ae.ranges,uo=ae.allowEmpty,wo=ae.allowClear,Io=ae.suffixIcon,Vo=ae.clearIcon,bs=ae.pickerRef,ts=ae.inputReadOnly,Ws=ae.mode,Al=ae.renderExtraFooter,Ql=ae.onChange,zs=ae.onOpenChange,_c=ae.onPanelChange,hc=ae.onCalendarChange,Hs=ae.onFocus,Ul=ae.onBlur,As=ae.onMouseDown,Ks=ae.onMouseUp,Cc=ae.onMouseEnter,qc=ae.onMouseLeave,Of=ae.onClick,_f=ae.onOk,sd=ae.onKeyDown,ud=ae.components,Su=ae.order,Uu=ae.direction,mp=ae.activePickerIndex,wv=ae.autoComplete,Au=wv===void 0?"off":wv,qd=ai==="date"&&!!Ca||ai==="time",Ad=(0,p.useRef)({}),ad=(0,p.useRef)(null),fp=(0,p.useRef)(null),Tv=(0,p.useRef)(null),hv=(0,p.useRef)(null),Bh=(0,p.useRef)(null),Mh=(0,p.useRef)(null),xp=(0,p.useRef)(null),Sh=(0,p.useRef)(null),Qf=Kb(vn(ga,ai,Ca,ii)),Nm=Po(0,{value:mp}),av=(0,y.Z)(Nm,2),yu=av[0],kp=av[1],Md=(0,p.useRef)(null),kd=p.useMemo(function(){return Array.isArray(ua)?ua:[ua||!1,ua||!1]},[ua]),mv=Po(null,{value:di,defaultValue:Wa,postState:function(Iu){return ai==="time"&&!Su?Iu:jd(Iu,ur)}}),Jp=(0,y.Z)(mv,2),iv=Jp[0],kh=Jp[1],ym=N1({values:iv,picker:ai,defaultDates:Ya,generateConfig:ur}),cm=(0,y.Z)(ym,2),Ov=cm[0],rl=cm[1],sc=Po(iv,{postState:function(Iu){var fd=Iu;if(kd[0]&&kd[1])return fd;for(var Np=0;Np<2;Np+=1)kd[Np]&&!fd&&!lp(fd,Np)&&!lp(uo,Np)&&(fd=Vm(fd,ur.getNow(),Np));return fd}}),hf=(0,y.Z)(sc,2),ld=hf[0],cp=hf[1],rp=Po([ai,ai],{value:Ws}),pd=(0,y.Z)(rp,2),Wv=pd[0],Iv=pd[1];(0,p.useEffect)(function(){Iv([ai,ai])},[ai]);var V_=function(Iu,fd){Iv(Iu),_c&&_c(fd,Iu)},z_=l0({picker:ai,selectedValue:ld,locale:Mr,disabled:kd,disabledDate:Ba,generateConfig:ur},Ad.current[1],Ad.current[0]),Sg=(0,y.Z)(z_,2),x0=Sg[0],bm=Sg[1],G0=Po(!1,{value:li,defaultValue:ti,postState:function(Iu){return kd[yu]?!1:Iu},onChange:function(Iu){zs&&zs(Iu),!Iu&&Md.current&&Md.current.onClose&&Md.current.onClose()}}),W_=(0,y.Z)(G0,2),ep=W_[0],ap=W_[1],um=ep&&yu===0,x_=ep&&yu===1,vP=(0,p.useState)(0),mb=(0,y.Z)(vP,2),hP=mb[0],mP=mb[1];(0,p.useEffect)(function(){!ep&&ad.current&&mP(ad.current.offsetWidth)},[ep]);var gP=p.useRef();function Fx(Pp,Iu){if(Pp)clearTimeout(gP.current),Ad.current[Iu]=!0,kp(Iu),ap(Pp),ep||rl(null,Iu);else if(yu===Iu){ap(Pp);var fd=Ad.current;gP.current=setTimeout(function(){fd===Ad.current&&(Ad.current={})})}}function j2(Pp){Fx(!0,Pp),setTimeout(function(){var Iu=[Mh,xp][Pp];Iu.current&&Iu.current.focus()},0)}function ES(Pp,Iu){var fd=Pp,Np=lp(fd,0),Uh=lp(fd,1);Np&&Uh&&ur.isAfter(Np,Uh)&&(ai==="week"&&!bC(ur,Mr.locale,Np,Uh)||ai==="quarter"&&!pp(ur,Np,Uh)||ai!=="week"&&ai!=="quarter"&&ai!=="time"&&!uh(ur,Np,Uh)?(Iu===0?(fd=[Np,null],Uh=null):(Np=null,fd=[null,Uh]),Ad.current=(0,v.Z)({},Iu,!0)):(ai!=="time"||Su!==!1)&&(fd=jd(fd,ur))),cp(fd);var Cy=fd&&fd[0]?Pm(fd[0],{generateConfig:ur,locale:Mr,format:Qf[0]}):"",o1=fd&&fd[1]?Pm(fd[1],{generateConfig:ur,locale:Mr,format:Qf[0]}):"";if(hc){var K0={range:Iu===0?"start":"end"};hc(fd,[Cy,o1],K0)}var w_=L1(Np,0,kd,uo),Fm=L1(Uh,1,kd,uo),RS=fd===null||w_&&Fm;RS&&(kh(fd),Ql&&(!Ny(ur,lp(iv,0),Np)||!Ny(ur,lp(iv,1),Uh))&&Ql(fd,[Cy,o1]));var T_=null;Iu===0&&!kd[1]?T_=1:Iu===1&&!kd[0]&&(T_=0),T_!==null&&T_!==yu&&(!Ad.current[T_]||!lp(fd,T_))&&lp(fd,Iu)?j2(T_):Fx(!1,Iu)}var dI=function(Iu){return ep&&Md.current&&Md.current.onKeyDown?Md.current.onKeyDown(Iu):(uc(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},E_={formatList:Qf,generateConfig:ur,locale:Mr},yA=zv(lp(ld,0),E_),B2=(0,y.Z)(yA,2),SS=B2[0],pI=B2[1],a7=zv(lp(ld,1),E_),_P=(0,y.Z)(a7,2),U2=_P[0],vI=_P[1],bA=function(Iu,fd){var Np=Gw(Iu,{locale:Mr,formatList:Qf,generateConfig:ur}),Uh=fd===0?x0:bm;Np&&!Uh(Np)&&(cp(Vm(ld,Np,fd)),rl(Np,fd))},jx=v_({valueTexts:SS,onTextChange:function(Iu){return bA(Iu,0)}}),gb=(0,y.Z)(jx,3),Sy=gb[0],xA=gb[1],_b=gb[2],Bx=v_({valueTexts:U2,onTextChange:function(Iu){return bA(Iu,1)}}),Ux=(0,y.Z)(Bx,3),S_=Ux[0],CS=Ux[1],Zx=Ux[2],yP=(0,p.useState)(null),Z2=(0,y.Z)(yP,2),hI=Z2[0],Lm=Z2[1],$g=(0,p.useState)(null),V2=(0,y.Z)($g,2),t1=V2[0],z2=V2[1],bP=wp(Sy,{formatList:Qf,generateConfig:ur,locale:Mr}),wS=(0,y.Z)(bP,3),W2=wS[0],EA=wS[1],n1=wS[2],Vx=wp(S_,{formatList:Qf,generateConfig:ur,locale:Mr}),yb=(0,y.Z)(Vx,3),r1=yb[0],$0=yb[1],r_=yb[2],H2=function(Iu){z2(Vm(ld,Iu,yu)),yu===0?EA(Iu):$0(Iu)},a1=function(){z2(Vm(ld,null,yu)),yu===0?n1():r_()},G2=function(Iu,fd){return{blurToCancel:qd,forwardKeyDown:dI,onBlur:Ul,isClickOutside:function(Uh){return!bd([fp.current,Tv.current,hv.current,ad.current],Uh)},onFocus:function(Uh){kp(Iu),Hs&&Hs(Uh)},triggerOpen:function(Uh){Fx(Uh,Iu)},onSubmit:function(){if(!ld||Ba&&Ba(ld[Iu]))return!1;ES(ld,Iu),fd()},onCancel:function(){Fx(!1,Iu),cp(iv),fd()}}},$2=(0,p.useRef)(""),SA=oy((0,d.Z)((0,d.Z)({},G2(0,_b)),{},{open:um,value:Sy,currentFocusedKey:$2,key:"start",onKeyDown:function(Iu,fd){sd==null||sd(Iu,fd)}})),zx=(0,y.Z)(SA,2),TS=zx[0],K2=zx[1],Y2=K2.focused,X2=K2.typing,xP=oy((0,d.Z)((0,d.Z)({},G2(1,Zx)),{},{open:x_,value:S_,currentFocusedKey:$2,key:"end",onKeyDown:function(Iu,fd){sd==null||sd(Iu,fd)}})),Wx=(0,y.Z)(xP,2),Hx=Wx[0],J2=Wx[1],Cg=J2.focused,CA=J2.typing,bb=function(Iu){Of&&Of(Iu),!ep&&!Mh.current.contains(Iu.target)&&!xp.current.contains(Iu.target)&&(kd[0]?kd[1]||j2(1):j2(0))},wg=function(Iu){As&&As(Iu),ep&&(Y2||Cg)&&!Mh.current.contains(Iu.target)&&!xp.current.contains(Iu.target)&&Iu.preventDefault()},EP=iv&&iv[0]?Pm(iv[0],{locale:Mr,format:"YYYYMMDDHHmmss",generateConfig:ur}):"",C_=iv&&iv[1]?Pm(iv[1],{locale:Mr,format:"YYYYMMDDHHmmss",generateConfig:ur}):"";(0,p.useEffect)(function(){ep||(cp(iv),!SS.length||SS[0]===""?xA(""):pI!==Sy&&_b(),!U2.length||U2[0]===""?CS(""):vI!==S_&&Zx())},[ep,SS,U2]),(0,p.useEffect)(function(){cp(iv)},[EP,C_]),bs&&(bs.current={focus:function(){Mh.current&&Mh.current.focus()},blur:function(){Mh.current&&Mh.current.blur(),xp.current&&xp.current.blur()}});var AS=Object.keys(Wi||{}),i1=AS.map(function(Pp){var Iu=Wi[Pp],fd=typeof Iu=="function"?Iu():Iu;return{label:Pp,onClick:function(){ES(fd,null),Fx(!1,yu)},onMouseEnter:function(){Lm(fd)},onMouseLeave:function(){Lm(null)}}});function E0(){var Pp=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Iu=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fd=null;ep&&t1&&t1[0]&&t1[1]&&ur.isAfter(t1[1],t1[0])&&(fd=t1);var Np=Ca;if(Ca&&(0,A.Z)(Ca)==="object"&&Ca.defaultValue){var Uh=Ca.defaultValue;Np=(0,d.Z)((0,d.Z)({},Ca),{},{defaultValue:lp(Uh,yu)||void 0})}var Cy=null;return ji&&(Cy=function(K0,w_){return ji(K0,w_,{range:yu?"end":"start"})}),p.createElement(Gp.Provider,{value:{inRange:!0,panelPosition:Pp,rangedValue:hI||ld,hoverRangedValue:fd}},p.createElement(ex,(0,Da.Z)({},ae,Iu,{dateRender:Cy,showTime:Np,mode:Wv[yu],generateConfig:ur,style:void 0,direction:Uu,disabledDate:yu===0?x0:bm,disabledTime:function(K0){return Ni?Ni(K0,yu===0?"start":"end"):!1},className:ze()((0,v.Z)({},"".concat(xt,"-panel-focused"),yu===0?!X2:!CA)),value:lp(ld,yu),locale:Mr,tabIndex:-1,onPanelChange:function(K0,w_){yu===0&&n1(!0),yu===1&&r_(!0),V_(Vm(Wv,w_,yu),Vm(ld,K0,yu));var Fm=K0;Pp==="right"&&Wv[yu]===w_&&(Fm=n0(Fm,w_,ur,-1)),rl(Fm,yu)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:yu===0?lp(ld,1):lp(ld,0)})))}var Tg=0,Gx=0;if(yu&&Tv.current&&Bh.current&&fp.current){Tg=Tv.current.offsetWidth+Bh.current.offsetWidth;var wA=Sh.current.offsetLeft>Tg?Sh.current.offsetLeft-Tg:Sh.current.offsetLeft;fp.current.offsetWidth&&Sh.current.offsetWidth&&Tg>fp.current.offsetWidth-Sh.current.offsetWidth-(Uu==="rtl"?0:wA)&&(Gx=Tg)}var TA=Uu==="rtl"?{right:Tg}:{left:Tg};function ig(){var Pp,Iu=Th(xt,Wv[yu],Al),fd=kC({prefixCls:xt,components:ud,needConfirmButton:qd,okDisabled:!lp(ld,yu)||Ba&&Ba(ld[yu]),locale:Mr,rangeList:i1,onOk:function(){lp(ld,yu)&&(ES(ld,yu),_f&&_f(ld))}});if(ai!=="time"&&!Ca){var Np=Ov(yu),Uh=n0(Np,ai,ur),Cy=Wv[yu],o1=Cy===ai,K0=E0(o1?"left":!1,{pickerValue:Np,onPickerValueChange:function(T_){rl(T_,yu)}}),w_=E0("right",{pickerValue:Uh,onPickerValueChange:function(T_){rl(n0(T_,ai,ur,-1),yu)}});Uu==="rtl"?Pp=p.createElement(p.Fragment,null,w_,o1&&K0):Pp=p.createElement(p.Fragment,null,K0,o1&&w_)}else Pp=E0();var Fm=p.createElement(p.Fragment,null,p.createElement("div",{className:"".concat(xt,"-panels")},Pp),(Iu||fd)&&p.createElement("div",{className:"".concat(xt,"-footer")},Iu,fd));return go&&(Fm=go(Fm)),p.createElement("div",{className:"".concat(xt,"-panel-container"),style:{marginLeft:Gx},ref:fp,onMouseDown:function(T_){T_.preventDefault()}},Fm)}var MS=p.createElement("div",{className:ze()("".concat(xt,"-range-wrapper"),"".concat(xt,"-").concat(ai,"-range-wrapper")),style:{minWidth:hP}},p.createElement("div",{ref:Sh,className:"".concat(xt,"-range-arrow"),style:TA}),ig()),kS;Io&&(kS=p.createElement("span",{className:"".concat(xt,"-suffix")},Io));var Q2;wo&&(lp(iv,0)&&!kd[0]||lp(iv,1)&&!kd[1])&&(Q2=p.createElement("span",{onMouseDown:function(Iu){Iu.preventDefault(),Iu.stopPropagation()},onMouseUp:function(Iu){Iu.preventDefault(),Iu.stopPropagation();var fd=iv;kd[0]||(fd=Vm(fd,null,0)),kd[1]||(fd=Vm(fd,null,1)),ES(fd,null),Fx(!1,yu)},className:"".concat(xt,"-clear")},Vo||p.createElement("span",{className:"".concat(xt,"-clear-btn")})));var PS={size:or(ai,Qf[0],ur)},q2=0,SP=0;Tv.current&&hv.current&&Bh.current&&(yu===0?SP=Tv.current.offsetWidth:(q2=Tg,SP=hv.current.offsetWidth));var CP=Uu==="rtl"?{right:q2}:{left:q2},mI=function(Iu,fd){var Np=Vm(ld,Iu,yu);fd==="submit"||fd!=="key"&&!qd?(ES(Np,yu),yu===0?n1():r_()):cp(Np)};return p.createElement(po.Provider,{value:{operationRef:Md,hideHeader:ai==="time",onDateMouseEnter:H2,onDateMouseLeave:a1,hideRanges:!0,onSelect:mI,open:ep}},p.createElement(I1,{visible:ep,popupElement:MS,popupStyle:Tn,prefixCls:xt,dropdownClassName:On,dropdownAlign:nr,getPopupContainer:hr,transitionName:qn,range:!0,direction:Uu},p.createElement("div",(0,Da.Z)({ref:ad,className:ze()(xt,"".concat(xt,"-range"),en,(J={},(0,v.Z)(J,"".concat(xt,"-disabled"),kd[0]&&kd[1]),(0,v.Z)(J,"".concat(xt,"-focused"),yu===0?Y2:Cg),(0,v.Z)(J,"".concat(xt,"-rtl"),Uu==="rtl"),J)),style:Wt,onClick:bb,onMouseEnter:Cc,onMouseLeave:qc,onMouseDown:wg,onMouseUp:Ks},R0(ae)),p.createElement("div",{className:ze()("".concat(xt,"-input"),(xe={},(0,v.Z)(xe,"".concat(xt,"-input-active"),yu===0),(0,v.Z)(xe,"".concat(xt,"-input-placeholder"),!!W2),xe)),ref:Tv},p.createElement("input",(0,Da.Z)({id:Mt,disabled:kd[0],readOnly:ts||typeof Qf[0]=="function"||!X2,value:W2||Sy,onChange:function(Iu){xA(Iu.target.value)},autoFocus:ia,placeholder:lp(wr,0)||"",ref:Mh},TS,PS,{autoComplete:Au}))),p.createElement("div",{className:"".concat(xt,"-range-separator"),ref:Bh},$a),p.createElement("div",{className:ze()("".concat(xt,"-input"),(ye={},(0,v.Z)(ye,"".concat(xt,"-input-active"),yu===1),(0,v.Z)(ye,"".concat(xt,"-input-placeholder"),!!r1),ye)),ref:hv},p.createElement("input",(0,Da.Z)({disabled:kd[1],readOnly:ts||typeof Qf[0]=="function"||!CA,value:r1||S_,onChange:function(Iu){CS(Iu.target.value)},placeholder:lp(wr,1)||"",ref:xp},Hx,PS,{autoComplete:Au}))),p.createElement("div",{className:"".concat(xt,"-active-bar"),style:(0,d.Z)((0,d.Z)({},CP),{},{width:SP,position:"absolute"})}),kS,Q2)))}var TE=function(ae){(0,Hn.Z)(xe,ae);var J=(0,ut.Z)(xe);function xe(){var ye;(0,lr.Z)(this,xe);for(var Ze=arguments.length,xt=new Array(Ze),Mt=0;Mt<Ze;Mt++)xt[Mt]=arguments[Mt];return ye=J.call.apply(J,[this].concat(xt)),ye.pickerRef=p.createRef(),ye.focus=function(){ye.pickerRef.current&&ye.pickerRef.current.focus()},ye.blur=function(){ye.pickerRef.current&&ye.pickerRef.current.blur()},ye}return(0,nt.Z)(xe,[{key:"render",value:function(){return p.createElement(RC,(0,Da.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),xe}(p.Component),F1=TE,Bg=Qw,N0=o(56701),AE=o(25832);function ME(ae,J,xe){return xe!==void 0?xe:ae==="year"&&J.lang.yearPlaceholder?J.lang.yearPlaceholder:ae==="quarter"&&J.lang.quarterPlaceholder?J.lang.quarterPlaceholder:ae==="month"&&J.lang.monthPlaceholder?J.lang.monthPlaceholder:ae==="week"&&J.lang.weekPlaceholder?J.lang.weekPlaceholder:ae==="time"&&J.timePickerLocale.placeholder?J.timePickerLocale.placeholder:J.lang.placeholder}function OC(ae,J,xe){return xe!==void 0?xe:ae==="year"&&J.lang.yearPlaceholder?J.lang.rangeYearPlaceholder:ae==="quarter"&&J.lang.quarterPlaceholder?J.lang.rangeQuarterPlaceholder:ae==="month"&&J.lang.monthPlaceholder?J.lang.rangeMonthPlaceholder:ae==="week"&&J.lang.weekPlaceholder?J.lang.rangeWeekPlaceholder:ae==="time"&&J.timePickerLocale.placeholder?J.timePickerLocale.rangePlaceholder:J.lang.rangePlaceholder}function nx(ae,J){var xe={adjustX:1,adjustY:1};switch(J){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:xe};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:xe};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:xe};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:xe};default:return{points:ae==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:xe}}}var eT=function(ae,J){var xe={};for(var ye in ae)Object.prototype.hasOwnProperty.call(ae,ye)&&J.indexOf(ye)<0&&(xe[ye]=ae[ye]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ye=Object.getOwnPropertySymbols(ae);Ze<ye.length;Ze++)J.indexOf(ye[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ae,ye[Ze])&&(xe[ye[Ze]]=ae[ye[Ze]]);return xe};function kE(ae){var J=(0,p.forwardRef)(function(xe,ye){var Ze=xe.prefixCls,xt=xe.getPopupContainer,Mt=xe.className,Wt=xe.placement,en=xe.size,Tn=xe.disabled,On=xe.bordered,qn=On===void 0?!0:On,nr=xe.placeholder,hr=xe.popupClassName,ur=xe.dropdownClassName,Mr=xe.status,wr=eT(xe,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status"]),ia=p.useRef(null),ua=(0,p.useContext)(ff.E_),ga=ua.getPrefixCls,Fa=ua.direction,ai=ua.getPopupContainer,Ca=ga("picker",Ze),ii=(0,xf.ri)(Ca,Fa),ci=ii.compactSize,$a=ii.compactItemClassnames,di=xe.format,Wa=xe.showTime,Ya=xe.picker,li=ga(),ti={};ti=(0,Da.Z)((0,Da.Z)((0,Da.Z)({},ti),Wa?sy((0,Da.Z)({format:di,picker:Ya},Wa)):{}),Ya==="time"?sy((0,Da.Z)((0,Da.Z)({format:di},xe),{picker:Ya})):{});var Ba=p.useContext(Kf.Z),Ni=ci||en||Ba,ji=p.useContext(Ff.Z),go=Tn!=null?Tn:ji,Wi=(0,p.useContext)(Sc.aM),uo=Wi.hasFeedback,wo=Wi.status,Io=Wi.feedbackIcon,Vo=p.createElement(p.Fragment,null,Ya==="time"?p.createElement(qu,null):p.createElement(Xd,null),uo&&Io);return(0,p.useImperativeHandle)(ye,function(){return{focus:function(){var ts;return(ts=ia.current)===null||ts===void 0?void 0:ts.focus()},blur:function(){var ts;return(ts=ia.current)===null||ts===void 0?void 0:ts.blur()}}}),p.createElement(N0.Z,{componentName:"DatePicker",defaultLocale:AE.Z},function(bs){var ts,Ws=(0,Da.Z)((0,Da.Z)({},bs),xe.locale);return p.createElement(F1,(0,Da.Z)({separator:p.createElement("span",{"aria-label":"to",className:"".concat(Ca,"-separator")},p.createElement(s_,null)),disabled:go,ref:ia,dropdownAlign:nx(Fa,Wt),placeholder:OC(Ya,Ws,nr),suffixIcon:Vo,clearIcon:p.createElement(Nu.Z,null),prevIcon:p.createElement("span",{className:"".concat(Ca,"-prev-icon")}),nextIcon:p.createElement("span",{className:"".concat(Ca,"-next-icon")}),superPrevIcon:p.createElement("span",{className:"".concat(Ca,"-super-prev-icon")}),superNextIcon:p.createElement("span",{className:"".concat(Ca,"-super-next-icon")}),allowClear:!0,transitionName:"".concat(li,"-slide-up")},wr,ti,{className:ze()((ts={},(0,v.Z)(ts,"".concat(Ca,"-").concat(Ni),Ni),(0,v.Z)(ts,"".concat(Ca,"-borderless"),!qn),ts),(0,Gd.Z)(Ca,(0,Gd.F)(wo,Mr),uo),$a,Mt),locale:Ws.lang,prefixCls:Ca,getPopupContainer:xt||ai,generateConfig:ae,components:j1,direction:Fa,dropdownClassName:hr||ur}))})});return J}var N_=function(ae,J){var xe={};for(var ye in ae)Object.prototype.hasOwnProperty.call(ae,ye)&&J.indexOf(ye)<0&&(xe[ye]=ae[ye]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ye=Object.getOwnPropertySymbols(ae);Ze<ye.length;Ze++)J.indexOf(ye[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ae,ye[Ze])&&(xe[ye[Ze]]=ae[ye[Ze]]);return xe};function up(ae){function J(en,Tn){var On=(0,p.forwardRef)(function(qn,nr){var hr=qn.prefixCls,ur=qn.getPopupContainer,Mr=qn.className,wr=qn.size,ia=qn.bordered,ua=ia===void 0?!0:ia,ga=qn.placement,Fa=qn.placeholder,ai=qn.popupClassName,Ca=qn.dropdownClassName,ii=qn.disabled,ci=qn.status,$a=N_(qn,["prefixCls","getPopupContainer","className","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status"]),di=(0,p.useContext)(ff.E_),Wa=di.getPrefixCls,Ya=di.direction,li=di.getPopupContainer,ti=Wa("picker",hr),Ba=(0,xf.ri)(ti,Ya),Ni=Ba.compactSize,ji=Ba.compactItemClassnames,go=p.useRef(null),Wi=qn.format,uo=qn.showTime;(0,p.useImperativeHandle)(nr,function(){return{focus:function(){var Ks;return(Ks=go.current)===null||Ks===void 0?void 0:Ks.focus()},blur:function(){var Ks;return(Ks=go.current)===null||Ks===void 0?void 0:Ks.blur()}}});var wo={showToday:!0},Io={};en&&(Io.picker=en);var Vo=en||qn.picker;Io=(0,Da.Z)((0,Da.Z)((0,Da.Z)({},Io),uo?sy((0,Da.Z)({format:Wi,picker:Vo},uo)):{}),Vo==="time"?sy((0,Da.Z)((0,Da.Z)({format:Wi},qn),{picker:Vo})):{});var bs=Wa(),ts=p.useContext(Kf.Z),Ws=Ni||wr||ts,Al=p.useContext(Ff.Z),Ql=ii!=null?ii:Al,zs=(0,p.useContext)(Sc.aM),_c=zs.hasFeedback,hc=zs.status,Hs=zs.feedbackIcon,Ul=p.createElement(p.Fragment,null,Vo==="time"?p.createElement(qu,null):p.createElement(Xd,null),_c&&Hs);return p.createElement(N0.Z,{componentName:"DatePicker",defaultLocale:AE.Z},function(As){var Ks,Cc=(0,Da.Z)((0,Da.Z)({},As),qn.locale);return p.createElement(Bg,(0,Da.Z)({ref:go,placeholder:ME(Vo,Cc,Fa),suffixIcon:Ul,dropdownAlign:nx(Ya,ga),clearIcon:p.createElement(Nu.Z,null),prevIcon:p.createElement("span",{className:"".concat(ti,"-prev-icon")}),nextIcon:p.createElement("span",{className:"".concat(ti,"-next-icon")}),superPrevIcon:p.createElement("span",{className:"".concat(ti,"-super-prev-icon")}),superNextIcon:p.createElement("span",{className:"".concat(ti,"-super-next-icon")}),allowClear:!0,transitionName:"".concat(bs,"-slide-up")},wo,$a,Io,{locale:Cc.lang,className:ze()((Ks={},(0,v.Z)(Ks,"".concat(ti,"-").concat(Ws),Ws),(0,v.Z)(Ks,"".concat(ti,"-borderless"),!ua),Ks),(0,Gd.Z)(ti,(0,Gd.F)(hc,ci),_c),ji,Mr),prefixCls:ti,getPopupContainer:ur||li,generateConfig:ae,components:j1,direction:Ya,disabled:Ql,dropdownClassName:ai||Ca}))})});return Tn&&(On.displayName=Tn),On}var xe=J(),ye=J("week","WeekPicker"),Ze=J("month","MonthPicker"),xt=J("year","YearPicker"),Mt=J("time","TimePicker"),Wt=J("quarter","QuarterPicker");return{DatePicker:xe,WeekPicker:ye,MonthPicker:Ze,YearPicker:xt,TimePicker:Mt,QuarterPicker:Wt}}var j1={button:Ru,rangeItem:id};function Ug(ae){return ae?Array.isArray(ae)?ae:[ae]:[]}function sy(ae){var J=ae.format,xe=ae.picker,ye=ae.showHour,Ze=ae.showMinute,xt=ae.showSecond,Mt=ae.use12Hours,Wt=Ug(J)[0],en=(0,Da.Z)({},ae);return Wt&&typeof Wt=="string"&&(!Wt.includes("s")&&xt===void 0&&(en.showSecond=!1),!Wt.includes("m")&&Ze===void 0&&(en.showMinute=!1),!Wt.includes("H")&&!Wt.includes("h")&&ye===void 0&&(en.showHour=!1),(Wt.includes("a")||Wt.includes("A"))&&Mt===void 0&&(en.use12Hours=!0)),xe==="time"?en:(typeof Wt=="function"&&delete en.format,{showTime:en})}var Tp=(0,Ef.b)("bottomLeft","bottomRight","topLeft","topRight");function nu(ae){var J=up(ae),xe=J.DatePicker,ye=J.WeekPicker,Ze=J.MonthPicker,xt=J.YearPicker,Mt=J.TimePicker,Wt=J.QuarterPicker,en=kE(ae),Tn=xe;return Tn.WeekPicker=ye,Tn.MonthPicker=Ze,Tn.YearPicker=xt,Tn.RangePicker=en,Tn.TimePicker=Mt,Tn.QuarterPicker=Wt,Tn}var PE=nu,RE=PE(Pc),h_=RE,OE=o(49272),rx=function ae(J,xe){return(0,OE.Z)(J)||Ir().isMoment(J)?J:Array.isArray(J)?J.map(function(ye){return ae(ye,xe)}):typeof J=="number"?Ir()(J):Ir()(J,xe)},ly=rx,ax=o(9822),ix=function(J,xe){return J?typeof xe=="function"?xe(Ir()(J)):Ir()(J).format(xe||"YYYY-MM-DD"):"-"},Wm=function(J,xe){var ye=J.text,Ze=J.mode,xt=J.format,Mt=J.label,Wt=J.light,en=J.render,Tn=J.renderFormItem,On=J.plain,qn=J.showTime,nr=J.fieldProps,hr=J.picker,ur=J.bordered,Mr=J.lightLabel,wr=J.labelTrigger,ia=(0,F.YB)(),ua=(0,p.useContext)(w.ZP.SizeContext),ga=(0,p.useContext)(w.ZP.ConfigContext),Fa=ga.getPrefixCls,ai=Fa("pro-field-date-picker"),Ca=(0,p.useState)(!1),ii=(0,y.Z)(Ca,2),ci=ii[0],$a=ii[1];if(Ze==="read"){var di=ix(ye,nr.format||xt);return en?en(ye,(0,d.Z)({mode:Ze},nr),(0,S.jsx)(S.Fragment,{children:di})):(0,S.jsx)(S.Fragment,{children:di})}if(Ze==="edit"||Ze==="update"){var Wa,Ya=nr.disabled,li=nr.value,ti=nr.onChange,Ba=nr.allowClear,Ni=nr.placeholder,ji=Ni===void 0?ia.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"):Ni,go=ly(li);if(Wt){var Wi=go&&go.format(xt)||"";Wa=(0,S.jsxs)("div",{className:"".concat(ai,"-light"),onClick:function(wo){var Io,Vo,bs,ts=Mr==null||(Io=Mr.current)===null||Io===void 0||(Vo=Io.labelRef)===null||Vo===void 0||(bs=Vo.current)===null||bs===void 0?void 0:bs.contains(wo.target);$a(ts?!ci:!0)},children:[(0,S.jsx)(h_,(0,d.Z)((0,d.Z)({picker:hr,showTime:qn,format:xt,ref:xe},nr),{},{value:go,onChange:function(wo){ti==null||ti(wo),setTimeout(function(){$a(!1)},0)},onOpenChange:function(wo){wr||$a(wo)},open:ci})),(0,S.jsx)(Pi.Z,{label:Mt,disabled:Ya,placeholder:ji,size:ua,value:Wi,onClear:function(){ti==null||ti(null)},allowClear:Ba,bordered:ur,expanded:ci,ref:Mr})]})}else Wa=(0,S.jsx)(h_,(0,d.Z)((0,d.Z)({picker:hr,showTime:qn,format:xt,placeholder:ji,bordered:On===void 0?!0:!On,ref:xe},nr),{},{value:go}));return Tn?Tn(ye,(0,d.Z)({mode:Ze},nr),Wa):Wa}return null},L_=p.forwardRef(Wm),B1=o(11826),cy=o(1541),L0=function(J,xe){var ye=J.text,Ze=J.mode,xt=J.render,Mt=J.placeholder,Wt=J.renderFormItem,en=J.fieldProps,Tn=(0,p.useCallback)(function(Mr){var wr,ia=Mr!=null?Mr:void 0;if(typeof Mr=="string"&&(ia=Number(ia)),typeof ia=="number"){if(en.precision){var ua,ga,Fa;ia=(ua=ia)===null||ua===void 0||(ga=ua.toFixed)===null||ga===void 0?void 0:ga.call(ua,(Fa=en.precision)!==null&&Fa!==void 0?Fa:0)}ia=Number(ia)}return en==null||(wr=en.onChange)===null||wr===void 0?void 0:wr.call(en,ia)},[en]);if(Ze==="read"){var On,qn={};(en==null?void 0:en.precision)&&(qn={minimumFractionDigits:Number(en.precision),maximumFractionDigits:Number(en.precision)});var nr=new Intl.NumberFormat(void 0,(0,d.Z)((0,d.Z)({},qn),(en==null?void 0:en.intlProps)||{})).format(Number(ye)),hr=(0,S.jsx)("span",{ref:xe,children:(en==null||(On=en.formatter)===null||On===void 0?void 0:On.call(en,nr))||nr});return xt?xt(ye,(0,d.Z)({mode:Ze},en),hr):hr}if(Ze==="edit"||Ze==="update"){var ur=(0,S.jsx)(cy.Z,(0,d.Z)((0,d.Z)({ref:xe,min:0,placeholder:Mt},(0,bt.Z)(en,["onChange"])),{},{onChange:Tn}));return Wt?Wt(ye,(0,d.Z)({mode:Ze},en),ur):ur}return null},ox=p.forwardRef(L0),U1=function(J,xe){var ye=J.text,Ze=J.mode,xt=J.render,Mt=J.placeholder,Wt=J.renderFormItem,en=J.fieldProps,Tn=J.separator,On=Tn===void 0?"~":Tn,qn=J.separatorWidth,nr=qn===void 0?30:qn,hr=en.value,ur=en.defaultValue,Mr=en.onChange,wr=en.id,ia=$t(function(){return ur},{value:hr,onChange:Mr}),ua=(0,y.Z)(ia,2),ga=ua[0],Fa=ua[1];if(Ze==="read"){var ai=function(Ya){var li,ti=new Intl.NumberFormat(void 0,(0,d.Z)({minimumSignificantDigits:2},(en==null?void 0:en.intlProps)||{})).format(Number(Ya));return(en==null||(li=en.formatter)===null||li===void 0?void 0:li.call(en,ti))||ti},Ca=(0,S.jsxs)("span",{ref:xe,children:[ai(ye[0])," ",On," ",ai(ye[1])]});return xt?xt(ye,(0,d.Z)({mode:Ze},en),Ca):Ca}if(Ze==="edit"||Ze==="update"){var ii=function(){if(Array.isArray(ga)){var Ya=(0,y.Z)(ga,2),li=Ya[0],ti=Ya[1];typeof li=="number"&&typeof ti=="number"&&li>ti?Fa([ti,li]):li===void 0&&ti===void 0&&Fa(void 0)}},ci=function(Ya,li){var ti=(0,h.Z)(ga||[]);ti[Ya]=li===null?void 0:li,Fa(ti)},$a=(en==null?void 0:en.placeholder)||Mt,di=(0,S.jsxs)(Oi.Z.Group,{compact:!0,onBlur:ii,children:[(0,S.jsx)(cy.Z,(0,d.Z)((0,d.Z)({},en),{},{placeholder:Array.isArray($a)?$a[0]:$a,id:wr!=null?wr:"".concat(wr,"-0"),style:{width:"calc((100% - ".concat(nr,"px) / 2)")},value:ga==null?void 0:ga[0],defaultValue:ur==null?void 0:ur[0],onChange:function(Ya){return ci(0,Ya)}})),(0,S.jsx)(Oi.Z,{style:{width:nr,textAlign:"center",borderLeft:0,borderRight:0,pointerEvents:"none",backgroundColor:"#FFF"},placeholder:On,disabled:!0}),(0,S.jsx)(cy.Z,(0,d.Z)((0,d.Z)({},en),{},{placeholder:Array.isArray($a)?$a[1]:$a,id:wr!=null?wr:"".concat(wr,"-1"),style:{width:"calc((100% - ".concat(nr,"px) / 2)"),borderLeft:0},value:ga==null?void 0:ga[1],defaultValue:ur==null?void 0:ur[1],onChange:function(Ya){return ci(1,Ya)}}))]});return Wt?Wt(ye,(0,d.Z)({mode:Ze},en),di):di}return null},IE=p.forwardRef(U1),Z1=o(81984),hg=o(95455),DE=function(J){var xe=J.text,ye=J.mode,Ze=J.render,xt=J.renderFormItem,Mt=J.format,Wt=J.fieldProps,en=(0,F.YB)();if(ye==="read"){var Tn=(0,S.jsx)(hg.Z,{title:Ir()(xe).format((Wt==null?void 0:Wt.format)||Mt||"YYYY-MM-DD HH:mm:ss"),children:Ir()(xe).fromNow()});return Ze?Ze(xe,(0,d.Z)({mode:ye},Wt),(0,S.jsx)(S.Fragment,{children:Tn})):(0,S.jsx)(S.Fragment,{children:Tn})}if(ye==="edit"||ye==="update"){var On=en.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),qn=ly(Wt.value),nr=(0,S.jsx)(h_,(0,d.Z)((0,d.Z)({placeholder:On,showTime:!0},Wt),{},{value:qn}));return xt?xt(xe,(0,d.Z)({mode:ye},Wt),nr):nr}return null},IC=DE,NE=o(53469),LE=o(95357),Qh=/margin|padding|width|height|max|min|offset/,vm={left:!0,top:!0},FE={cssFloat:1,styleFloat:1,float:1};function DC(ae){return ae.nodeType===1?ae.ownerDocument.defaultView.getComputedStyle(ae,null):{}}function tT(ae,J,xe){if(J=J.toLowerCase(),xe==="auto"){if(J==="height")return ae.offsetHeight;if(J==="width")return ae.offsetWidth}return J in vm||(vm[J]=Qh.test(J)),vm[J]?parseFloat(xe)||0:xe}function NC(ae,J){var xe=arguments.length,ye=DC(ae);return J=FE[J]?"cssFloat"in ae.style?"cssFloat":"styleFloat":J,xe===1?ye:tT(ae,J,ye[J]||ae.style[J])}function F_(ae,J,xe){var ye=arguments.length;if(J=FE[J]?"cssFloat"in ae.style?"cssFloat":"styleFloat":J,ye===3)return typeof xe=="number"&&Qh.test(J)&&(xe="".concat(xe,"px")),ae.style[J]=xe,xe;for(var Ze in J)J.hasOwnProperty(Ze)&&F_(ae,Ze,J[Ze]);return DC(ae)}function jE(ae){return ae===document.body?document.documentElement.clientWidth:ae.offsetWidth}function KM(ae){return ae===document.body?window.innerHeight||document.documentElement.clientHeight:ae.offsetHeight}function nT(){var ae=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),J=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ae,height:J}}function c0(){var ae=document.documentElement.clientWidth,J=window.innerHeight||document.documentElement.clientHeight;return{width:ae,height:J}}function YM(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function rT(ae){var J=ae.getBoundingClientRect(),xe=document.documentElement;return{left:J.left+(window.pageXOffset||xe.scrollLeft)-(xe.clientLeft||document.body.clientLeft||0),top:J.top+(window.pageYOffset||xe.scrollTop)-(xe.clientTop||document.body.clientTop||0)}}function u0(ae){var J=p.useRef();J.current=ae;var xe=p.useCallback(function(){for(var ye,Ze=arguments.length,xt=new Array(Ze),Mt=0;Mt<Ze;Mt++)xt[Mt]=arguments[Mt];return(ye=J.current)===null||ye===void 0?void 0:ye.call.apply(ye,[J].concat(xt))},[]);return xe}function F0(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var BE=F0()?p.useLayoutEffect:p.useEffect,m_=function(J,xe){var ye=p.useRef(!0);BE(function(){return J(ye.current)},xe),BE(function(){return ye.current=!1,function(){ye.current=!0}},[])},qg=function(J,xe){m_(function(ye){if(!ye)return J()},xe)},j0=null;function B0(ae){var J=p.useRef(!1),xe=p.useState(ae),ye=(0,y.Z)(xe,2),Ze=ye[0],xt=ye[1];p.useEffect(function(){return J.current=!1,function(){J.current=!0}},[]);function Mt(Wt,en){en&&J.current||xt(Wt)}return[Ze,Mt]}function Uy(ae){return ae!==void 0}function sx(ae,J){var xe=J||{},ye=xe.defaultValue,Ze=xe.value,xt=xe.onChange,Mt=xe.postState,Wt=B0(function(){return Uy(Ze)?Ze:Uy(ye)?typeof ye=="function"?ye():ye:typeof ae=="function"?ae():ae}),en=(0,y.Z)(Wt,2),Tn=en[0],On=en[1],qn=Ze!==void 0?Ze:Tn,nr=Mt?Mt(qn):qn,hr=u0(xt),ur=B0([qn]),Mr=(0,y.Z)(ur,2),wr=Mr[0],ia=Mr[1];qg(function(){var ga=wr[0];Tn!==ga&&hr(Tn,ga)},[wr]),qg(function(){Uy(Ze)||On(Ze)},[Ze]);var ua=u0(function(ga,Fa){On(ga,Fa),ia([qn],Fa)});return[nr,ua]}var LC=o(95277);function Zy(ae,J,xe,ye){var Ze=Fn.unstable_batchedUpdates?function(Mt){Fn.unstable_batchedUpdates(xe,Mt)}:xe;return ae!=null&&ae.addEventListener&&ae.addEventListener(J,Ze,ye),{remove:function(){ae!=null&&ae.removeEventListener&&ae.removeEventListener(J,Ze,ye)}}}var wd={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(J){var xe=J.keyCode;if(J.altKey&&!J.ctrlKey||J.metaKey||xe>=wd.F1&&xe<=wd.F12)return!1;switch(xe){case wd.ALT:case wd.CAPS_LOCK:case wd.CONTEXT_MENU:case wd.CTRL:case wd.DOWN:case wd.END:case wd.ESC:case wd.HOME:case wd.INSERT:case wd.LEFT:case wd.MAC_FF_META:case wd.META:case wd.NUMLOCK:case wd.NUM_CENTER:case wd.PAGE_DOWN:case wd.PAGE_UP:case wd.PAUSE:case wd.PRINT_SCREEN:case wd.RIGHT:case wd.SHIFT:case wd.UP:case wd.WIN_KEY:case wd.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(J){if(J>=wd.ZERO&&J<=wd.NINE||J>=wd.NUM_ZERO&&J<=wd.NUM_MULTIPLY||J>=wd.A&&J<=wd.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&J===0)return!0;switch(J){case wd.SPACE:case wd.QUESTION_MARK:case wd.NUM_PLUS:case wd.NUM_MINUS:case wd.NUM_PERIOD:case wd.NUM_DIVISION:case wd.SEMICOLON:case wd.DASH:case wd.EQUALS:case wd.COMMA:case wd.PERIOD:case wd.SLASH:case wd.APOSTROPHE:case wd.SINGLE_QUOTE:case wd.OPEN_SQUARE_BRACKET:case wd.BACKSLASH:case wd.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},V1=wd,Vy={},FC=[],UE=function(J){FC.push(J)};function jC(ae,J){if(!1)var xe}function aT(ae,J){if(!1)var xe}function BC(){Vy={}}function ZE(ae,J,xe){!J&&!Vy[xe]&&(ae(!1,xe),Vy[xe]=!0)}function lx(ae,J){ZE(jC,ae,J)}function g_(ae,J){ZE(aT,ae,J)}lx.preMessage=UE,lx.resetWarned=BC,lx.noteOnce=g_;var XM=null,ih=["visible","onVisibleChange","getContainer","current","countRender"],z1=p.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}},rootClassName:""}),iT=z1.Provider,oT=function(J){var xe=J.previewPrefixCls,ye=xe===void 0?"rc-image-preview":xe,Ze=J.children,xt=J.icons,Mt=xt===void 0?{}:xt,Wt=J.preview,en=(0,A.Z)(Wt)==="object"?Wt:{},Tn=en.visible,On=Tn===void 0?void 0:Tn,qn=en.onVisibleChange,nr=qn===void 0?void 0:qn,hr=en.getContainer,ur=hr===void 0?void 0:hr,Mr=en.current,wr=Mr===void 0?0:Mr,ia=en.countRender,ua=ia===void 0?void 0:ia,ga=(0,_.Z)(en,ih),Fa=(0,p.useState)(new Map),ai=(0,y.Z)(Fa,2),Ca=ai[0],ii=ai[1],ci=(0,p.useState)(),$a=(0,y.Z)(ci,2),di=$a[0],Wa=$a[1],Ya=sx(!!On,{value:On,onChange:nr}),li=(0,y.Z)(Ya,2),ti=li[0],Ba=li[1],Ni=(0,p.useState)(null),ji=(0,y.Z)(Ni,2),go=ji[0],Wi=ji[1],uo=On!==void 0,wo=Array.from(Ca.keys()),Io=wo[wr],Vo=new Map(Array.from(Ca).filter(function(Ws){var Al=(0,y.Z)(Ws,2),Ql=Al[1].canPreview;return!!Ql}).map(function(Ws){var Al=(0,y.Z)(Ws,2),Ql=Al[0],zs=Al[1].url;return[Ql,zs]})),bs=function(Al,Ql){var zs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,_c=function(){ii(function(Hs){var Ul=new Map(Hs),As=Ul.delete(Al);return As?Ul:Hs})};return ii(function(hc){return new Map(hc).set(Al,{url:Ql,canPreview:zs})}),_c},ts=function(Al){Al.stopPropagation(),Ba(!1),Wi(null)};return p.useEffect(function(){Wa(Io)},[Io]),p.useEffect(function(){!ti&&uo&&Wa(Io)},[Io,uo,ti]),p.createElement(iT,{value:{isPreviewGroup:!0,previewUrls:Vo,setPreviewUrls:ii,current:di,setCurrent:Wa,setShowPreview:Ba,setMousePosition:Wi,registerImage:bs}},Ze,p.createElement(dx,(0,Da.Z)({"aria-hidden":!ti,visible:ti,prefixCls:ye,onClose:ts,mousePosition:go,src:Vo.get(di),icons:Mt,getContainer:ur,countRender:ua},ga)))},Om=oT,uy=o(57196),f0=1,W1=50,zy=1,cx=.2,UC=function(J){var xe,ye=J.visible,Ze=J.maskTransitionName,xt=J.getContainer,Mt=J.prefixCls,Wt=J.rootClassName,en=J.icons,Tn=J.countRender,On=J.showSwitch,qn=J.showProgress,nr=J.current,hr=J.count,ur=J.scale,Mr=J.onSwitchLeft,wr=J.onSwitchRight,ia=J.onClose,ua=J.onZoomIn,ga=J.onZoomOut,Fa=J.onRotateRight,ai=J.onRotateLeft,Ca=en.rotateLeft,ii=en.rotateRight,ci=en.zoomIn,$a=en.zoomOut,di=en.close,Wa=en.left,Ya=en.right,li="".concat(Mt,"-operations-operation"),ti="".concat(Mt,"-operations-icon"),Ba=[{icon:di,onClick:ia,type:"close"},{icon:ci,onClick:ua,type:"zoomIn",disabled:ur===W1},{icon:$a,onClick:ga,type:"zoomOut",disabled:ur===f0},{icon:ii,onClick:Fa,type:"rotateRight"},{icon:Ca,onClick:ai,type:"rotateLeft"}],Ni=p.createElement(p.Fragment,null,On&&p.createElement(p.Fragment,null,p.createElement("div",{className:ze()("".concat(Mt,"-switch-left"),(0,v.Z)({},"".concat(Mt,"-switch-left-disabled"),nr===0)),onClick:Mr},Wa),p.createElement("div",{className:ze()("".concat(Mt,"-switch-right"),(0,v.Z)({},"".concat(Mt,"-switch-right-disabled"),nr===hr-1)),onClick:wr},Ya)),p.createElement("ul",{className:"".concat(Mt,"-operations")},qn&&p.createElement("li",{className:"".concat(Mt,"-operations-progress")},(xe=Tn==null?void 0:Tn(nr+1,hr))!==null&&xe!==void 0?xe:"".concat(nr+1," / ").concat(hr)),Ba.map(function(ji){var go,Wi=ji.icon,uo=ji.onClick,wo=ji.type,Io=ji.disabled;return p.createElement("li",{className:ze()(li,(go={},(0,v.Z)(go,"".concat(Mt,"-operations-operation-").concat(wo),!0),(0,v.Z)(go,"".concat(Mt,"-operations-operation-disabled"),!!Io),go)),onClick:uo,key:wo},p.isValidElement(Wi)?p.cloneElement(Wi,{className:ti}):Wi)})));return p.createElement(Na.ZP,{visible:ye,motionName:Ze},function(ji){var go=ji.className,Wi=ji.style;return p.createElement(uy.Z,{open:!0,getContainer:xt!=null?xt:document.body},p.createElement("div",{className:ze()("".concat(Mt,"-operations-wrapper"),go,Wt),style:Wi},Ni))})},sT=UC,VE=function(J){return+setTimeout(J,16)},fy=function(J){return clearTimeout(J)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(VE=function(J){return window.requestAnimationFrame(J)},fy=function(J){return window.cancelAnimationFrame(J)});var ux=0,vp=new Map;function Sv(ae){vp.delete(ae)}var d0=function(J){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ux+=1;var ye=ux;function Ze(xt){if(xt===0)Sv(ye),J();else{var Mt=VE(function(){Ze(xt-1)});vp.set(ye,Mt)}}return Ze(xe),ye};d0.cancel=function(ae){var J=vp.get(ae);return Sv(J),fy(J)};var p0=d0,zE={x:0,y:0,rotate:0,scale:1};function H1(ae){var J=(0,p.useRef)(null),xe=(0,p.useRef)([]),ye=(0,p.useState)(zE),Ze=(0,y.Z)(ye,2),xt=Ze[0],Mt=Ze[1],Wt=function(){Mt(zE)},en=function(qn){J.current===null&&(xe.current=[],J.current=p0(function(){Mt(function(nr){var hr=nr;return xe.current.forEach(function(ur){hr=(0,d.Z)((0,d.Z)({},hr),ur)}),J.current=null,hr})})),xe.current.push((0,d.Z)((0,d.Z)({},xt),qn))},Tn=function(qn,nr,hr){var ur=ae.current,Mr=ur.width,wr=ur.height,ia=ur.offsetWidth,ua=ur.offsetHeight,ga=ur.offsetLeft,Fa=ur.offsetTop,ai=qn,Ca=xt.scale*qn;Ca>W1?(ai=W1/xt.scale,Ca=W1):Ca<f0&&(ai=f0/xt.scale,Ca=f0);var ii=nr!=null?nr:innerWidth/2,ci=hr!=null?hr:innerHeight/2,$a=ai-1,di=$a*Mr*.5,Wa=$a*wr*.5,Ya=$a*(ii-xt.x-ga),li=$a*(ci-xt.y-Fa),ti=xt.x-(Ya-di),Ba=xt.y-(li-Wa);if(qn<1&&Ca===1){var Ni=ia*Ca,ji=ua*Ca,go=c0(),Wi=go.width,uo=go.height;Ni<=Wi&&ji<=uo&&(ti=0,Ba=0)}en({x:ti,y:Ba,scale:Ca})};return{transform:xt,resetTransform:Wt,updateTransform:en,dispatchZoonChange:Tn}}function e_(ae,J,xe,ye){var Ze=J+xe,xt=(xe-ye)/2;if(xe>ye){if(J>0)return(0,v.Z)({},ae,xt);if(J<0&&Ze<ye)return(0,v.Z)({},ae,-xt)}else if(J<0||Ze>ye)return(0,v.Z)({},ae,J<0?xt:-xt);return{}}function G1(ae,J,xe,ye){var Ze=c0(),xt=Ze.width,Mt=Ze.height,Wt=null;return ae<=xt&&J<=Mt?Wt={x:0,y:0}:(ae>xt||J>Mt)&&(Wt=(0,d.Z)((0,d.Z)({},e_("x",xe,ae,xt)),e_("y",ye,J,Mt))),Wt}var $1=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","getContainer","countRender","scaleStep","transitionName","maskTransitionName"],fx=function(J){var xe=J.prefixCls,ye=J.src,Ze=J.alt,xt=J.onClose,Mt=J.afterClose,Wt=J.visible,en=J.icons,Tn=en===void 0?{}:en,On=J.rootClassName,qn=J.getContainer,nr=J.countRender,hr=J.scaleStep,ur=hr===void 0?.5:hr,Mr=J.transitionName,wr=Mr===void 0?"zoom":Mr,ia=J.maskTransitionName,ua=ia===void 0?"fade":ia,ga=(0,_.Z)(J,$1),Fa=(0,p.useRef)(),ai=(0,p.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),Ca=(0,p.useState)(!1),ii=(0,y.Z)(Ca,2),ci=ii[0],$a=ii[1],di=(0,p.useContext)(z1),Wa=di.previewUrls,Ya=di.current,li=di.isPreviewGroup,ti=di.setCurrent,Ba=Wa.size,Ni=Array.from(Wa.keys()),ji=Ni.indexOf(Ya),go=li?Wa.get(Ya):ye,Wi=li&&Ba>1,uo=li&&Ba>=1,wo=H1(Fa),Io=wo.transform,Vo=wo.resetTransform,bs=wo.updateTransform,ts=wo.dispatchZoonChange,Ws=Io.rotate,Al=Io.scale,Ql=ze()((0,v.Z)({},"".concat(xe,"-moving"),ci)),zs=function(){Vo()},_c=function(){ts(zy+ur)},hc=function(){ts(zy-ur)},Hs=function(){bs({rotate:Ws+90})},Ul=function(){bs({rotate:Ws-90})},As=function(Uu){Uu.preventDefault(),Uu.stopPropagation(),ji>0&&ti(Ni[ji-1])},Ks=function(Uu){Uu.preventDefault(),Uu.stopPropagation(),ji<Ba-1&&ti(Ni[ji+1])},Cc=function(){if(Wt&&ci){$a(!1);var Uu=ai.current,mp=Uu.transformX,wv=Uu.transformY,Au=Io.x!==mp&&Io.y!==wv;if(!Au)return;var qd=Fa.current.offsetWidth*Al,Ad=Fa.current.offsetHeight*Al,ad=Fa.current.getBoundingClientRect(),fp=ad.left,Tv=ad.top,hv=Ws%180!=0,Bh=G1(hv?Ad:qd,hv?qd:Ad,fp,Tv);Bh&&bs((0,d.Z)({},Bh))}},qc=function(Uu){Uu.button===0&&(Uu.preventDefault(),Uu.stopPropagation(),ai.current={deltaX:Uu.pageX-Io.x,deltaY:Uu.pageY-Io.y,transformX:Io.x,transformY:Io.y},$a(!0))},Of=function(Uu){Wt&&ci&&bs({x:Uu.pageX-ai.current.deltaX,y:Uu.pageY-ai.current.deltaY})},_f=function(Uu){if(!(!Wt||Uu.deltaY==0)){var mp=Math.abs(Uu.deltaY/100),wv=Math.min(mp,cx),Au=zy+wv*ur;Uu.deltaY>0&&(Au=zy/Au),ts(Au,Uu.clientX,Uu.clientY)}},sd=(0,p.useCallback)(function(Su){!Wt||!Wi||(Su.keyCode===V1.LEFT?ji>0&&ti(Ni[ji-1]):Su.keyCode===V1.RIGHT&&ji<Ba-1&&ti(Ni[ji+1]))},[ji,Ba,Ni,ti,Wi,Wt]),ud=function(Uu){Wt&&(Al!==1?bs({x:0,y:0,scale:1}):ts(zy+ur,Uu.clientX,Uu.clientY))};return(0,p.useEffect)(function(){var Su,Uu,mp=Zy(window,"mouseup",Cc,!1),wv=Zy(window,"mousemove",Of,!1),Au=Zy(window,"keydown",sd,!1);try{window.top!==window.self&&(Su=Zy(window.top,"mouseup",Cc,!1),Uu=Zy(window.top,"mousemove",Of,!1))}catch(qd){jC(!1,"[rc-image] ".concat(qd))}return function(){var qd,Ad;mp.remove(),wv.remove(),Au.remove(),(qd=Su)===null||qd===void 0||qd.remove(),(Ad=Uu)===null||Ad===void 0||Ad.remove()}},[Wt,ci,sd]),p.createElement(p.Fragment,null,p.createElement(LC.Z,(0,Da.Z)({transitionName:wr,maskTransitionName:ua,closable:!1,keyboard:!0,prefixCls:xe,onClose:xt,afterClose:zs,visible:Wt,wrapClassName:Ql,rootClassName:On,getContainer:qn},ga),p.createElement("div",{className:"".concat(xe,"-img-wrapper")},p.createElement("img",{width:J.width,height:J.height,onWheel:_f,onMouseDown:qc,onDoubleClick:ud,ref:Fa,className:"".concat(xe,"-img"),src:go,alt:Ze,style:{transform:"translate3d(".concat(Io.x,"px, ").concat(Io.y,"px, 0) scale3d(").concat(Al,", ").concat(Al,", 1) rotate(").concat(Ws,"deg)")}}))),p.createElement(sT,{visible:Wt,maskTransitionName:ua,getContainer:qn,prefixCls:xe,rootClassName:On,icons:Tn,countRender:nr,showSwitch:Wi,showProgress:uo,current:ji,count:Ba,scale:Al,onSwitchLeft:As,onSwitchRight:Ks,onZoomIn:_c,onZoomOut:hc,onRotateRight:Hs,onRotateLeft:Ul,onClose:xt}))},dx=fx,bv=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","useMap","draggable"],bh=["src","visible","onVisibleChange","getContainer","mask","maskClassName","icons","scaleStep"],Cv=0,dy=function(J){var xe,ye=J.src,Ze=J.alt,xt=J.onPreviewClose,Mt=J.prefixCls,Wt=Mt===void 0?"rc-image":Mt,en=J.previewPrefixCls,Tn=en===void 0?"".concat(Wt,"-preview"):en,On=J.placeholder,qn=J.fallback,nr=J.width,hr=J.height,ur=J.style,Mr=J.preview,wr=Mr===void 0?!0:Mr,ia=J.className,ua=J.onClick,ga=J.onError,Fa=J.wrapperClassName,ai=J.wrapperStyle,Ca=J.rootClassName,ii=J.crossOrigin,ci=J.decoding,$a=J.loading,di=J.referrerPolicy,Wa=J.sizes,Ya=J.srcSet,li=J.useMap,ti=J.draggable,Ba=(0,_.Z)(J,bv),Ni=On&&On!==!0,ji=(0,A.Z)(wr)==="object"?wr:{},go=ji.src,Wi=ji.visible,uo=Wi===void 0?void 0:Wi,wo=ji.onVisibleChange,Io=wo===void 0?xt:wo,Vo=ji.getContainer,bs=Vo===void 0?void 0:Vo,ts=ji.mask,Ws=ji.maskClassName,Al=ji.icons,Ql=ji.scaleStep,zs=(0,_.Z)(ji,bh),_c=go!=null?go:ye,hc=uo!==void 0,Hs=sx(!!uo,{value:uo,onChange:Io}),Ul=(0,y.Z)(Hs,2),As=Ul[0],Ks=Ul[1],Cc=(0,p.useState)(Ni?"loading":"normal"),qc=(0,y.Z)(Cc,2),Of=qc[0],_f=qc[1],sd=(0,p.useState)(null),ud=(0,y.Z)(sd,2),Su=ud[0],Uu=ud[1],mp=Of==="error",wv=p.useContext(z1),Au=wv.isPreviewGroup,qd=wv.setCurrent,Ad=wv.setShowPreview,ad=wv.setMousePosition,fp=wv.registerImage,Tv=p.useState(function(){return Cv+=1,Cv}),hv=(0,y.Z)(Tv,1),Bh=hv[0],Mh=!!wr,xp=p.useRef(!1),Sh=function(){_f("normal")},Qf=function(Jp){ga&&ga(Jp),_f("error")},Nm=function(Jp){if(!hc){var iv=rT(Jp.target),kh=iv.left,ym=iv.top;Au?(qd(Bh),ad({x:kh,y:ym})):Uu({x:kh,y:ym})}Au?Ad(!0):Ks(!0),ua&&ua(Jp)},av=function(Jp){Jp.stopPropagation(),Ks(!1),hc||Uu(null)},yu=function(Jp){xp.current=!1,Of==="loading"&&Jp!=null&&Jp.complete&&(Jp.naturalWidth||Jp.naturalHeight)&&(xp.current=!0,Sh())};p.useEffect(function(){var mv=fp(Bh,_c);return mv},[]),p.useEffect(function(){fp(Bh,_c,Mh)},[_c,Mh]),p.useEffect(function(){mp&&_f("normal"),Ni&&!xp.current&&_f("loading")},[ye]);var kp=ze()(Wt,Fa,Ca,(0,v.Z)({},"".concat(Wt,"-error"),mp)),Md=mp&&qn?qn:_c,kd={crossOrigin:ii,decoding:ci,draggable:ti,loading:$a,referrerPolicy:di,sizes:Wa,srcSet:Ya,useMap:li,alt:Ze,className:ze()("".concat(Wt,"-img"),(0,v.Z)({},"".concat(Wt,"-img-placeholder"),On===!0),ia),style:(0,d.Z)({height:hr},ur)};return p.createElement(p.Fragment,null,p.createElement("div",(0,Da.Z)({},Ba,{className:kp,onClick:Mh?Nm:ua,style:(0,d.Z)({width:nr,height:hr},ai)}),p.createElement("img",(0,Da.Z)({},kd,{ref:yu},mp&&qn?{src:qn}:{onLoad:Sh,onError:Qf,src:ye},{width:nr,height:hr})),Of==="loading"&&p.createElement("div",{"aria-hidden":"true",className:"".concat(Wt,"-placeholder")},On),ts&&Mh&&p.createElement("div",{className:ze()("".concat(Wt,"-mask"),Ws),style:{display:((xe=kd.style)===null||xe===void 0?void 0:xe.display)==="none"?"none":void 0}},ts)),!Au&&Mh&&p.createElement(dx,(0,Da.Z)({"aria-hidden":!As,visible:As,prefixCls:Tn,onClose:av,mousePosition:Su,src:Md,alt:Ze,getContainer:bs,icons:Al,scaleStep:Ql,rootClassName:Ca},zs)))};dy.PreviewGroup=Om,dy.displayName="Image";var K1=dy,Y1=K1,Wy=o(24002),ZC=o(54549),px={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},VC=px,vx=function(J,xe){return p.createElement(ba.Z,(0,d.Z)((0,d.Z)({},J),{},{ref:xe,icon:VC}))};vx.displayName="RotateLeftOutlined";var py=p.forwardRef(vx),zC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},hx=zC,X1=function(J,xe){return p.createElement(ba.Z,(0,d.Z)((0,d.Z)({},J),{},{ref:xe,icon:hx}))};X1.displayName="RotateRightOutlined";var WE=p.forwardRef(X1),mx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},gx=mx,J1=function(J,xe){return p.createElement(ba.Z,(0,d.Z)((0,d.Z)({},J),{},{ref:xe,icon:gx}))};J1.displayName="ZoomInOutlined";var _x=p.forwardRef(J1),HE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Im=HE,Q1=function(J,xe){return p.createElement(ba.Z,(0,d.Z)((0,d.Z)({},J),{},{ref:xe,icon:Im}))};Q1.displayName="ZoomOutOutlined";var JM=p.forwardRef(Q1),QM=function(ae,J){var xe={};for(var ye in ae)Object.prototype.hasOwnProperty.call(ae,ye)&&J.indexOf(ye)<0&&(xe[ye]=ae[ye]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ye=Object.getOwnPropertySymbols(ae);Ze<ye.length;Ze++)J.indexOf(ye[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ae,ye[Ze])&&(xe[ye[Ze]]=ae[ye[Ze]]);return xe},vy={rotateLeft:p.createElement(py,null),rotateRight:p.createElement(WE,null),zoomIn:p.createElement(_x,null),zoomOut:p.createElement(JM,null),close:p.createElement(ZC.Z,null),left:p.createElement(mi.Z,null),right:p.createElement(Ho.Z,null)},Lv=function(J){var xe=J.previewPrefixCls,ye=J.preview,Ze=QM(J,["previewPrefixCls","preview"]),xt=p.useContext(ff.E_),Mt=xt.getPrefixCls,Wt=Mt("image-preview",xe),en=Mt(),Tn=p.useMemo(function(){if(ye===!1)return ye;var On=(0,A.Z)(ye)==="object"?ye:{};return(0,Da.Z)((0,Da.Z)({},On),{transitionName:(0,Du.mL)(en,"zoom",On.transitionName),maskTransitionName:(0,Du.mL)(en,"fade",On.maskTransitionName)})},[ye]);return p.createElement(Y1.PreviewGroup,(0,Da.Z)({preview:Tn,previewPrefixCls:Wt,icons:vy},Ze))},qM=Lv,Hy=function(ae,J){var xe={};for(var ye in ae)Object.prototype.hasOwnProperty.call(ae,ye)&&J.indexOf(ye)<0&&(xe[ye]=ae[ye]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ye=Object.getOwnPropertySymbols(ae);Ze<ye.length;Ze++)J.indexOf(ye[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ae,ye[Ze])&&(xe[ye[Ze]]=ae[ye[Ze]]);return xe},lT=function(J){var xe=J.prefixCls,ye=J.preview,Ze=Hy(J,["prefixCls","preview"]),xt=(0,p.useContext)(ff.E_),Mt=xt.getPrefixCls,Wt=xt.locale,en=Wt===void 0?Wy.Z:Wt,Tn=xt.getPopupContainer,On=Mt("image",xe),qn=Mt(),nr=en.Image||Wy.Z.Image,hr=p.useMemo(function(){if(ye===!1)return ye;var ur=(0,A.Z)(ye)==="object"?ye:{},Mr=ur.getContainer,wr=Hy(ur,["getContainer"]);return(0,Da.Z)((0,Da.Z)({mask:p.createElement("div",{className:"".concat(On,"-mask-info")},p.createElement(LE.Z,null),nr==null?void 0:nr.preview),icons:vy},wr),{getContainer:Mr||Tn,transitionName:(0,Du.mL)(qn,"zoom",ur.transitionName),maskTransitionName:(0,Du.mL)(qn,"fade",ur.maskTransitionName)})},[ye,nr]);return p.createElement(Y1,(0,Da.Z)({prefixCls:On,preview:hr},Ze))};lT.PreviewGroup=qM;var ek=lT,U0=p.forwardRef(function(ae,J){var xe=ae.text,ye=ae.mode,Ze=ae.render,xt=ae.renderFormItem,Mt=ae.fieldProps,Wt=ae.placeholder,en=ae.width;if(ye==="read"){var Tn=(0,S.jsx)(ek,(0,d.Z)({ref:J,width:en||32,src:xe},Mt));return Ze?Ze(xe,(0,d.Z)({mode:ye},Mt),Tn):Tn}if(ye==="edit"||ye==="update"){var On=(0,S.jsx)(Oi.Z,(0,d.Z)({ref:J,placeholder:Wt},Mt));return xt?xt(xe,(0,d.Z)({mode:ye},Mt),On):On}return null}),cT=U0,gO=o(98849),GE=function(J,xe){var ye,Ze=J.border,xt=Ze===void 0?!1:Ze,Mt=J.children,Wt=(0,p.useContext)(w.ZP.ConfigContext),en=Wt.getPrefixCls,Tn=en("pro-field-index-column");return(0,S.jsx)("div",{ref:xe,className:ze()(Tn,(ye={},(0,v.Z)(ye,"".concat(Tn,"-border"),xt),(0,v.Z)(ye,"top-three",Mt>3),ye)),children:Mt})},$E=p.forwardRef(GE),yx=["content","numberFormatOptions","numberPopoverRender"],bx=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],xx=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),WC={style:"currency",currency:"USD"},_e={style:"currency",currency:"RUB"},Ve={style:"currency",currency:"RSD"},Gt={style:"currency",currency:"MYR"},fr={style:"currency",currency:"BRL"},ha={default:xx,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":WC,"ru-RU":_e,"ms-MY":Gt,"sr-RS":Ve,"pt-BR":fr},Ka=function(J,xe,ye,Ze){var xt=xe;return typeof xt=="string"&&(xt=Number(xt)),!xt&&xt!==0?"":new Intl.NumberFormat(J||"zh-Hans-CN",(0,d.Z)((0,d.Z)({},J===!1?{}:ha[J||"zh-Hans-CN"]||ha["zh-Hans-CN"]),{},{maximumFractionDigits:ye},Ze)).format(xt)},no=2,bo=p.forwardRef(function(ae,J){var xe=ae.content,ye=ae.numberFormatOptions,Ze=ae.numberPopoverRender,xt=(0,_.Z)(ae,yx),Mt=$t(function(){return xt.defaultValue},{value:xt.value,onChange:xt.onChange}),Wt=(0,y.Z)(Mt,2),en=Wt[0],Tn=Wt[1],On=xe==null?void 0:xe((0,d.Z)((0,d.Z)({},xt),{},{value:en})),qn={visible:On?xt.visible:!1};return(0,S.jsx)(pi.Z,(0,d.Z)((0,d.Z)({placement:"topLeft"},qn),{},{trigger:["focus","click"],content:On,getPopupContainer:function(hr){return(hr==null?void 0:hr.parentElement)||document.body},children:(0,S.jsx)(cy.Z,(0,d.Z)((0,d.Z)({ref:J},xt),{},{value:en,onChange:Tn}))}))}),ls=function(J,xe){var ye,Ze,xt=J.text,Mt=J.mode,Wt=J.render,en=J.renderFormItem,Tn=J.fieldProps,On=J.proFieldKey,qn=J.plain,nr=J.valueEnum,hr=J.placeholder,ur=J.locale,Mr=ur===void 0?(ye=Tn.customSymbol)!==null&&ye!==void 0?ye:"zh-Hans-CN":ur,wr=J.customSymbol,ia=wr===void 0?Tn.customSymbol:wr,ua=J.numberFormatOptions,ga=ua===void 0?Tn==null?void 0:Tn.numberFormatOptions:ua,Fa=J.numberPopoverRender,ai=Fa===void 0?(Tn==null?void 0:Tn.numberPopoverRender)||!1:Fa,Ca=(0,_.Z)(J,bx),ii=(Ze=Tn==null?void 0:Tn.precision)!==null&&Ze!==void 0?Ze:no,ci=(0,F.YB)();Mr&&F.Go[Mr]&&(ci=F.Go[Mr]);var $a=(0,p.useMemo)(function(){if(ia)return ia;var li=ci.getMessage("moneySymbol","\uFFE5");if(!(Ca.moneySymbol===!1||Tn.moneySymbol===!1))return li},[ia,Tn.moneySymbol,ci,Ca.moneySymbol]);if(Mt==="read"){var di=(0,S.jsx)("span",{ref:xe,children:Ka($a?Mr:!1,xt,ii,ga!=null?ga:Tn.numberFormatOptions)});return Wt?Wt(xt,(0,d.Z)({mode:Mt},Tn),di):di}if(Mt==="edit"||Mt==="update"){var Wa=function(ti){var Ba=new RegExp("\\B(?=(\\d{".concat(3+Math.max(ii-no,0),"})+(?!\\d))"),"g"),Ni=String(ti).split("."),ji=(0,y.Z)(Ni,2),go=ji[0],Wi=ji[1],uo=go.replace(Ba,","),wo="";return Wi&&ii>0&&(wo=".".concat(Wi.slice(0,ii===void 0?no:ii))),"".concat(uo).concat(wo)},Ya=(0,S.jsx)(bo,(0,d.Z)({content:function(ti){if(ai!==!1&&!!ti.value){var Ba=Ka($a?Mr:!1,"".concat(Wa(ti.value)),ii,(0,d.Z)((0,d.Z)({},ga),{},{notation:"compact"}));return typeof ai=="function"?ai==null?void 0:ai(ti,Ba):Ba}},ref:xe,precision:ii,formatter:function(ti){return ti&&$a?"".concat($a," ").concat(Wa(ti)):ti==null?void 0:ti.toString()},parser:function(ti){return $a&&ti?ti.replace(new RegExp("\\".concat($a,"\\s?|(,*)"),"g"),""):ti},placeholder:hr},(0,bt.Z)(Tn,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible"])));return en?en(xt,(0,d.Z)({mode:Mt},Tn),Ya):Ya}return null},Bl=p.forwardRef(ls),$l=function(J){return J.map(function(xe,ye){return p.isValidElement(xe)?p.cloneElement(xe,(0,d.Z)({key:ye},xe==null?void 0:xe.props)):(0,S.jsx)(p.Fragment,{children:xe},ye)})},vc=function(J,xe){var ye=J.text,Ze=J.mode,xt=J.render,Mt=J.fieldProps,Wt=(0,p.useContext)(w.ZP.ConfigContext),en=Wt.getPrefixCls,Tn=en("pro-field-option");if((0,p.useImperativeHandle)(xe,function(){return{}}),xt){var On=xt(ye,(0,d.Z)({mode:Ze},Mt),(0,S.jsx)(S.Fragment,{}));return!On||(On==null?void 0:On.length)<1||!Array.isArray(On)?null:(0,S.jsx)(qt.Z,{size:16,className:Tn,children:$l(On)})}return!ye||!Array.isArray(ye)?p.isValidElement(ye)?ye:null:(0,S.jsx)(qt.Z,{size:16,className:Tn,children:$l(ye)})},Fu=p.forwardRef(vc),Zf=o(88633),nd=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],Qd=function(J,xe){var ye=J.text,Ze=J.mode,xt=J.render,Mt=J.renderFormItem,Wt=J.fieldProps,en=J.proFieldKey,Tn=(0,_.Z)(J,nd),On=(0,F.YB)(),qn=$t(function(){return Tn.visible||!1},{value:Tn.visible,onChange:Tn.onVisible}),nr=(0,y.Z)(qn,2),hr=nr[0],ur=nr[1];if(Ze==="read"){var Mr=(0,S.jsx)(S.Fragment,{children:"-"});return ye&&(Mr=(0,S.jsxs)(qt.Z,{children:[(0,S.jsx)("span",{ref:xe,children:hr?ye:"\uFF0A \uFF0A \uFF0A \uFF0A \uFF0A"}),(0,S.jsx)("a",{onClick:function(){return ur(!hr)},children:hr?(0,S.jsx)(LE.Z,{}):(0,S.jsx)(Zf.Z,{})})]})),xt?xt(ye,(0,d.Z)({mode:Ze},Wt),Mr):Mr}if(Ze==="edit"||Ze==="update"){var wr=(0,S.jsx)(Oi.Z.Password,(0,d.Z)({placeholder:On.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ref:xe},Wt));return Mt?Mt(ye,(0,d.Z)({mode:Ze},Wt),wr):wr}return null},Td=p.forwardRef(Qd),Ap=o(79302),hp=o.n(Ap);function Zg(ae){return ae===0?null:ae>0?"+":"-"}function Hm(ae){return ae===0?"#595959":ae>0?"#ff4d4f":"#52c41a"}function mg(ae){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return J>=0?ae==null?void 0:ae.toFixed(J):ae}var xh=function(J,xe){var ye=J.text,Ze=J.prefix,xt=J.precision,Mt=J.suffix,Wt=Mt===void 0?"%":Mt,en=J.mode,Tn=J.showColor,On=Tn===void 0?!1:Tn,qn=J.render,nr=J.renderFormItem,hr=J.fieldProps,ur=J.placeholder,Mr=J.showSymbol,wr=(0,p.useMemo)(function(){return typeof ye=="string"&&ye.includes("%")?hp()(ye.replace("%","")):hp()(ye)},[ye]),ia=(0,p.useMemo)(function(){return typeof Mr=="function"?Mr==null?void 0:Mr(ye):Mr},[Mr,ye]);if(en==="read"){var ua=On?{color:Hm(wr)}:{},ga=(0,S.jsxs)("span",{style:ua,ref:xe,children:[Ze&&(0,S.jsx)("span",{children:Ze}),ia&&(0,S.jsxs)(p.Fragment,{children:[Zg(wr)," "]}),mg(Math.abs(wr),xt),Wt&&Wt]});return qn?qn(ye,(0,d.Z)((0,d.Z)({mode:en},hr),{},{prefix:Ze,precision:xt,showSymbol:ia,suffix:Wt}),ga):ga}if(en==="edit"||en==="update"){var Fa=(0,S.jsx)(cy.Z,(0,d.Z)({ref:xe,formatter:function(Ca){return Ca&&Ze?"".concat(Ze," ").concat(Ca).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):Ca},parser:function(Ca){return Ca?Ca.replace(/.*\s|,/g,""):""},placeholder:ur},hr));return nr?nr(ye,(0,d.Z)({mode:en},hr),Fa):Fa}return null},hm=p.forwardRef(xh),gg=o(55939),hy=o(45154);function HC(ae){return ae===100?"success":ae<0?"exception":ae<100?"active":"normal"}var GC=function(J,xe){var ye=J.text,Ze=J.mode,xt=J.render,Mt=J.plain,Wt=J.renderFormItem,en=J.fieldProps,Tn=J.placeholder,On=(0,p.useMemo)(function(){return typeof ye=="string"&&ye.includes("%")?hp()(ye.replace("%","")):hp()(ye)},[ye]);if(Ze==="read"){var qn=(0,S.jsx)(hy.Z,(0,d.Z)({ref:xe,size:"small",style:{minWidth:100,maxWidth:320},percent:On,steps:Mt?10:void 0,status:HC(On)},en));return xt?xt(On,(0,d.Z)({mode:Ze},en),qn):qn}if(Ze==="edit"||Ze==="update"){var nr=(0,S.jsx)(cy.Z,(0,d.Z)({ref:xe,placeholder:Tn},en));return Wt?Wt(ye,(0,d.Z)({mode:Ze},en),nr):nr}return null},KE=p.forwardRef(GC),_O=o(90140),YE=o(32620),uT=o(877),fT=["radioType","renderFormItem","mode","render"],dT=function(J,xe){var ye=J.radioType,Ze=J.renderFormItem,xt=J.mode,Mt=J.render,Wt=(0,_.Z)(J,fT),en=(0,p.useContext)(w.ZP.ConfigContext),Tn=en.getPrefixCls,On=Tn("pro-field-radio"),qn=cc(Wt),nr=(0,y.Z)(qn,3),hr=nr[0],ur=nr[1],Mr=nr[2],wr=(0,p.useRef)();if((0,p.useImperativeHandle)(xe,function(){return(0,d.Z)((0,d.Z)({},wr.current||{}),{},{fetchData:function(){return Mr()}})}),hr)return(0,S.jsx)(uf.Z,{size:"small"});if(xt==="read"){var ia=(ur==null?void 0:ur.length)?ur==null?void 0:ur.reduce(function(Ca,ii){var ci;return(0,d.Z)((0,d.Z)({},Ca),{},(0,v.Z)({},(ci=ii.value)!==null&&ci!==void 0?ci:"",ii.label))},{}):void 0,ua=(0,S.jsx)(S.Fragment,{children:Ds(Wt.text,Co(Wt.valueEnum||ia))});return Mt?Mt(Wt.text,(0,d.Z)({mode:xt},Wt.fieldProps),ua)||null:ua}if(xt==="edit"){var ga,Fa=ye==="button"?YE.ZP.Button:YE.ZP,ai=(0,S.jsx)(YE.ZP.Group,(0,d.Z)((0,d.Z)({ref:wr},Wt.fieldProps),{},{className:ze()((ga=Wt.fieldProps)===null||ga===void 0?void 0:ga.className,"".concat(On,"-").concat(Wt.fieldProps.layout||"horizontal")),options:void 0,children:ur==null?void 0:ur.map(function(Ca){return(0,S.jsx)(Fa,(0,d.Z)((0,d.Z)({},Ca),{},{children:Ca.label}),Ca.value)})}));return Ze?Ze(Wt.text,(0,d.Z)({mode:xt},Wt.fieldProps),ai)||null:ai}return null},tk=p.forwardRef(dT),nk=function(J,xe){var ye=J.text,Ze=J.mode,xt=J.format,Mt=J.render,Wt=J.renderFormItem,en=J.plain,Tn=J.showTime,On=J.fieldProps,qn=(0,F.YB)(),nr=Array.isArray(ye)?ye:[],hr=(0,y.Z)(nr,2),ur=hr[0],Mr=hr[1],wr=(0,p.useCallback)(function(Ca){if(typeof(On==null?void 0:On.format)=="function"){var ii;return On==null||(ii=On.format)===null||ii===void 0?void 0:ii.call(On,Ca)}return(On==null?void 0:On.format)||xt||"YYYY-MM-DD"},[On,xt]),ia=ur?Ir()(ur).format(wr(Ir()(ur))):"",ua=Mr?Ir()(Mr).format(wr(Ir()(Mr))):"";if(Ze==="read"){var ga=(0,S.jsxs)("div",{ref:xe,children:[(0,S.jsx)("div",{children:ia||"-"}),(0,S.jsx)("div",{children:ua||"-"})]});return Mt?Mt(ye,(0,d.Z)({mode:Ze},On),(0,S.jsx)("span",{children:ga})):ga}if(Ze==="edit"||Ze==="update"){var Fa=ly(On.value),ai=(0,S.jsx)(h_.RangePicker,(0,d.Z)((0,d.Z)({ref:xe,format:xt,showTime:Tn,placeholder:[qn.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),qn.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")],bordered:en===void 0?!0:!en},On),{},{value:Fa}));return Wt?Wt(ye,(0,d.Z)({mode:Ze},On),ai):ai}return null},pT=p.forwardRef(nk),yO=o(67178),Z0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},vT=Z0,hT=function(J,xe){return p.createElement(ba.Z,(0,d.Z)((0,d.Z)({},J),{},{ref:xe,icon:vT}))};hT.displayName="StarFilled";var Ex=p.forwardRef(hT);function $C(ae){return ae instanceof HTMLElement||ae instanceof SVGElement}function rk(ae){return $C(ae)?ae:ae instanceof p.Component?Fn.findDOMNode(ae):null}var Bd={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(J){var xe=J.keyCode;if(J.altKey&&!J.ctrlKey||J.metaKey||xe>=Bd.F1&&xe<=Bd.F12)return!1;switch(xe){case Bd.ALT:case Bd.CAPS_LOCK:case Bd.CONTEXT_MENU:case Bd.CTRL:case Bd.DOWN:case Bd.END:case Bd.ESC:case Bd.HOME:case Bd.INSERT:case Bd.LEFT:case Bd.MAC_FF_META:case Bd.META:case Bd.NUMLOCK:case Bd.NUM_CENTER:case Bd.PAGE_DOWN:case Bd.PAGE_UP:case Bd.PAUSE:case Bd.PRINT_SCREEN:case Bd.RIGHT:case Bd.SHIFT:case Bd.UP:case Bd.WIN_KEY:case Bd.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(J){if(J>=Bd.ZERO&&J<=Bd.NINE||J>=Bd.NUM_ZERO&&J<=Bd.NUM_MULTIPLY||J>=Bd.A&&J<=Bd.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&J===0)return!0;switch(J){case Bd.SPACE:case Bd.QUESTION_MARK:case Bd.NUM_PLUS:case Bd.NUM_MINUS:case Bd.NUM_PERIOD:case Bd.NUM_DIVISION:case Bd.SEMICOLON:case Bd.DASH:case Bd.EQUALS:case Bd.COMMA:case Bd.PERIOD:case Bd.SLASH:case Bd.APOSTROPHE:case Bd.SINGLE_QUOTE:case Bd.OPEN_SQUARE_BRACKET:case Bd.BACKSLASH:case Bd.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},mT=Bd;function gT(ae){var J=ae.pageXOffset,xe="scrollLeft";if(typeof J!="number"){var ye=ae.document;J=ye.documentElement[xe],typeof J!="number"&&(J=ye.body[xe])}return J}function Gy(ae){var J,xe,ye=ae.ownerDocument,Ze=ye.body,xt=ye&&ye.documentElement,Mt=ae.getBoundingClientRect();return J=Mt.left,xe=Mt.top,J-=xt.clientLeft||Ze.clientLeft||0,xe-=xt.clientTop||Ze.clientTop||0,{left:J,top:xe}}function KC(ae){var J=Gy(ae),xe=ae.ownerDocument,ye=xe.defaultView||xe.parentWindow;return J.left+=gT(ye),J.left}var YC=function(ae){(0,Hn.Z)(xe,ae);var J=(0,ut.Z)(xe);function xe(){var ye;(0,lr.Z)(this,xe);for(var Ze=arguments.length,xt=new Array(Ze),Mt=0;Mt<Ze;Mt++)xt[Mt]=arguments[Mt];return ye=J.call.apply(J,[this].concat(xt)),ye.onHover=function(Wt){var en=ye.props,Tn=en.onHover,On=en.index;Tn(Wt,On)},ye.onClick=function(Wt){var en=ye.props,Tn=en.onClick,On=en.index;Tn(Wt,On)},ye.onKeyDown=function(Wt){var en=ye.props,Tn=en.onClick,On=en.index;Wt.keyCode===13&&Tn(Wt,On)},ye}return(0,nt.Z)(xe,[{key:"getClassName",value:function(){var Ze=this.props,xt=Ze.prefixCls,Mt=Ze.index,Wt=Ze.value,en=Ze.allowHalf,Tn=Ze.focused,On=Mt+1,qn=xt;return Wt===0&&Mt===0&&Tn?qn+=" ".concat(xt,"-focused"):en&&Wt+.5>=On&&Wt<On?(qn+=" ".concat(xt,"-half ").concat(xt,"-active"),Tn&&(qn+=" ".concat(xt,"-focused"))):(qn+=On<=Wt?" ".concat(xt,"-full"):" ".concat(xt,"-zero"),On===Wt&&Tn&&(qn+=" ".concat(xt,"-focused"))),qn}},{key:"render",value:function(){var Ze=this.onHover,xt=this.onClick,Mt=this.onKeyDown,Wt=this.props,en=Wt.disabled,Tn=Wt.prefixCls,On=Wt.character,qn=Wt.characterRender,nr=Wt.index,hr=Wt.count,ur=Wt.value,Mr=typeof On=="function"?On(this.props):On,wr=p.createElement("li",{className:this.getClassName()},p.createElement("div",{onClick:en?null:xt,onKeyDown:en?null:Mt,onMouseMove:en?null:Ze,role:"radio","aria-checked":ur>nr?"true":"false","aria-posinset":nr+1,"aria-setsize":hr,tabIndex:en?-1:0},p.createElement("div",{className:"".concat(Tn,"-first")},Mr),p.createElement("div",{className:"".concat(Tn,"-second")},Mr)));return qn&&(wr=qn(wr,this.props)),wr}}]),xe}(p.Component);function _T(){}var $y=function(ae){(0,Hn.Z)(xe,ae);var J=(0,ut.Z)(xe);function xe(ye){var Ze;(0,lr.Z)(this,xe),Ze=J.call(this,ye),Ze.stars=void 0,Ze.rate=void 0,Ze.onHover=function(Mt,Wt){var en=Ze.props.onHoverChange,Tn=Ze.getStarValue(Wt,Mt.pageX),On=Ze.state.cleanedValue;Tn!==On&&Ze.setState({hoverValue:Tn,cleanedValue:null}),en(Tn)},Ze.onMouseLeave=function(){var Mt=Ze.props.onHoverChange;Ze.setState({hoverValue:void 0,cleanedValue:null}),Mt(void 0)},Ze.onClick=function(Mt,Wt){var en=Ze.props.allowClear,Tn=Ze.state.value,On=Ze.getStarValue(Wt,Mt.pageX),qn=!1;en&&(qn=On===Tn),Ze.onMouseLeave(),Ze.changeValue(qn?0:On),Ze.setState({cleanedValue:qn?On:null})},Ze.onFocus=function(){var Mt=Ze.props.onFocus;Ze.setState({focused:!0}),Mt&&Mt()},Ze.onBlur=function(){var Mt=Ze.props.onBlur;Ze.setState({focused:!1}),Mt&&Mt()},Ze.onKeyDown=function(Mt){var Wt=Mt.keyCode,en=Ze.props,Tn=en.count,On=en.allowHalf,qn=en.onKeyDown,nr=en.direction,hr=nr==="rtl",ur=Ze.state.value;Wt===mT.RIGHT&&ur<Tn&&!hr?(On?ur+=.5:ur+=1,Ze.changeValue(ur),Mt.preventDefault()):Wt===mT.LEFT&&ur>0&&!hr||Wt===mT.RIGHT&&ur>0&&hr?(On?ur-=.5:ur-=1,Ze.changeValue(ur),Mt.preventDefault()):Wt===mT.LEFT&&ur<Tn&&hr&&(On?ur+=.5:ur+=1,Ze.changeValue(ur),Mt.preventDefault()),qn&&qn(Mt)},Ze.saveRef=function(Mt){return function(Wt){Ze.stars[Mt]=Wt}},Ze.saveRate=function(Mt){Ze.rate=Mt};var xt=ye.value;return xt===void 0&&(xt=ye.defaultValue),Ze.stars={},Ze.state={value:xt,focused:!1,cleanedValue:null},Ze}return(0,nt.Z)(xe,[{key:"componentDidMount",value:function(){var Ze=this.props,xt=Ze.autoFocus,Mt=Ze.disabled;xt&&!Mt&&this.focus()}},{key:"getStarDOM",value:function(Ze){return rk(this.stars[Ze])}},{key:"getStarValue",value:function(Ze,xt){var Mt=this.props,Wt=Mt.allowHalf,en=Mt.direction,Tn=en==="rtl",On=Ze+1;if(Wt){var qn=this.getStarDOM(Ze),nr=KC(qn),hr=qn.clientWidth;(Tn&&xt-nr>hr/2||!Tn&&xt-nr<hr/2)&&(On-=.5)}return On}},{key:"focus",value:function(){var Ze=this.props.disabled;Ze||this.rate.focus()}},{key:"blur",value:function(){var Ze=this.props.disabled;Ze||this.rate.blur()}},{key:"changeValue",value:function(Ze){var xt=this.props.onChange;"value"in this.props||this.setState({value:Ze}),xt(Ze)}},{key:"render",value:function(){for(var Ze=this.props,xt=Ze.count,Mt=Ze.allowHalf,Wt=Ze.style,en=Ze.id,Tn=Ze.prefixCls,On=Ze.disabled,qn=Ze.className,nr=Ze.character,hr=Ze.characterRender,ur=Ze.tabIndex,Mr=Ze.direction,wr=this.state,ia=wr.value,ua=wr.hoverValue,ga=wr.focused,Fa=[],ai=On?"".concat(Tn,"-disabled"):"",Ca=0;Ca<xt;Ca+=1)Fa.push(p.createElement(YC,{ref:this.saveRef(Ca),index:Ca,count:xt,disabled:On,prefixCls:"".concat(Tn,"-star"),allowHalf:Mt,value:ua===void 0?ia:ua,onClick:this.onClick,onHover:this.onHover,key:Ca,character:nr,characterRender:hr,focused:ga}));var ii=ze()(Tn,ai,qn,(0,v.Z)({},"".concat(Tn,"-rtl"),Mr==="rtl"));return p.createElement("ul",{className:ii,style:Wt,id:en,onMouseLeave:On?null:this.onMouseLeave,tabIndex:On?-1:ur,onFocus:On?null:this.onFocus,onBlur:On?null:this.onBlur,onKeyDown:On?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},Fa)}}],[{key:"getDerivedStateFromProps",value:function(Ze,xt){return"value"in Ze&&Ze.value!==void 0?(0,d.Z)((0,d.Z)({},xt),{},{value:Ze.value}):xt}}]),xe}(p.Component);$y.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:_T,character:"\u2605",onHoverChange:_T,tabIndex:0,direction:"ltr"};var yT=$y,q1=yT,W4=function(ae,J){var xe={};for(var ye in ae)Object.prototype.hasOwnProperty.call(ae,ye)&&J.indexOf(ye)<0&&(xe[ye]=ae[ye]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ye=Object.getOwnPropertySymbols(ae);Ze<ye.length;Ze++)J.indexOf(ye[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ae,ye[Ze])&&(xe[ye[Ze]]=ae[ye[Ze]]);return xe},H4=p.forwardRef(function(ae,J){var xe=ae.prefixCls,ye=ae.tooltips,Ze=ae.character,xt=Ze===void 0?p.createElement(Ex,null):Ze,Mt=W4(ae,["prefixCls","tooltips","character"]),Wt=function(hr,ur){var Mr=ur.index;return ye?p.createElement(hg.Z,{title:ye[Mr]},hr):hr},en=p.useContext(ff.E_),Tn=en.getPrefixCls,On=en.direction,qn=Tn("rate",xe);return p.createElement(q1,(0,Da.Z)({ref:J,character:xt,characterRender:Wt},Mt,{prefixCls:qn,direction:On}))}),ak=H4,mm=function(J,xe){var ye=J.text,Ze=J.mode,xt=J.render,Mt=J.renderFormItem,Wt=J.fieldProps;if(Ze==="read"){var en=(0,S.jsx)(ak,(0,d.Z)((0,d.Z)({allowHalf:!0,disabled:!0,ref:xe},Wt),{},{value:ye}));return xt?xt(ye,(0,d.Z)({mode:Ze},Wt),(0,S.jsx)(S.Fragment,{children:en})):en}if(Ze==="edit"||Ze==="update"){var Tn=(0,S.jsx)(ak,(0,d.Z)({allowHalf:!0,ref:xe},Wt));return Mt?Mt(ye,(0,d.Z)({mode:Ze},Wt),Tn):Tn}return null},XC=p.forwardRef(mm);function bO(ae){var J="",xe=Math.floor(ae/(3600*24)),ye=Math.floor(ae/3600),Ze=Math.floor(ae/60%60),xt=Math.floor(ae%60);return J="".concat(xt,"\u79D2"),Ze>0&&(J="".concat(Ze,"\u5206\u949F").concat(J)),ye>0&&(J="".concat(ye,"\u5C0F\u65F6").concat(J)),xe>0&&(J="".concat(xe,"\u5929").concat(J)),J}var XE=function(J,xe){var ye=J.text,Ze=J.mode,xt=J.render,Mt=J.renderFormItem,Wt=J.fieldProps,en=J.placeholder;if(Ze==="read"){var Tn=bO(Number(ye)),On=(0,S.jsx)("span",{ref:xe,children:Tn});return xt?xt(ye,(0,d.Z)({mode:Ze},Wt),On):On}if(Ze==="edit"||Ze==="update"){var qn=(0,S.jsx)(cy.Z,(0,d.Z)({ref:xe,min:0,style:{width:"100%"},placeholder:en},Wt));return Mt?Mt(ye,(0,d.Z)({mode:Ze},Wt),qn):qn}return null},Ky=p.forwardRef(XE),JE=o(34294);function QE(ae){var J=p.useRef();J.current=ae;var xe=p.useCallback(function(){for(var ye,Ze=arguments.length,xt=new Array(Ze),Mt=0;Mt<Ze;Mt++)xt[Mt]=arguments[Mt];return(ye=J.current)===null||ye===void 0?void 0:ye.call.apply(ye,[J].concat(xt))},[]);return xe}function xO(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var eb=xO()?p.useLayoutEffect:p.useEffect,EO=function(J,xe){var ye=p.useRef(!0);eb(function(){return J(ye.current)},xe),eb(function(){return ye.current=!1,function(){ye.current=!0}},[])},Mp=function(J,xe){EO(function(ye){if(!ye)return J()},xe)},SO=null;function tb(ae){var J=p.useRef(!1),xe=p.useState(ae),ye=(0,y.Z)(xe,2),Ze=ye[0],xt=ye[1];p.useEffect(function(){return J.current=!1,function(){J.current=!0}},[]);function Mt(Wt,en){en&&J.current||xt(Wt)}return[Ze,Mt]}function bT(ae){return ae!==void 0}function xT(ae,J){var xe=J||{},ye=xe.defaultValue,Ze=xe.value,xt=xe.onChange,Mt=xe.postState,Wt=tb(function(){return bT(Ze)?Ze:bT(ye)?typeof ye=="function"?ye():ye:typeof ae=="function"?ae():ae}),en=(0,y.Z)(Wt,2),Tn=en[0],On=en[1],qn=Ze!==void 0?Ze:Tn,nr=Mt?Mt(qn):qn,hr=QE(xt),ur=tb([qn]),Mr=(0,y.Z)(ur,2),wr=Mr[0],ia=Mr[1];Mp(function(){var ga=wr[0];Tn!==ga&&hr(Tn,ga)},[wr]),Mp(function(){bT(Ze)||On(Ze)},[Ze]);var ua=QE(function(ga,Fa){On(ga,Fa),ia([qn],Fa)});return[nr,ua]}var rd={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(J){var xe=J.keyCode;if(J.altKey&&!J.ctrlKey||J.metaKey||xe>=rd.F1&&xe<=rd.F12)return!1;switch(xe){case rd.ALT:case rd.CAPS_LOCK:case rd.CONTEXT_MENU:case rd.CTRL:case rd.DOWN:case rd.END:case rd.ESC:case rd.HOME:case rd.INSERT:case rd.LEFT:case rd.MAC_FF_META:case rd.META:case rd.NUMLOCK:case rd.NUM_CENTER:case rd.PAGE_DOWN:case rd.PAGE_UP:case rd.PAUSE:case rd.PRINT_SCREEN:case rd.RIGHT:case rd.SHIFT:case rd.UP:case rd.WIN_KEY:case rd.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(J){if(J>=rd.ZERO&&J<=rd.NINE||J>=rd.NUM_ZERO&&J<=rd.NUM_MULTIPLY||J>=rd.A&&J<=rd.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&J===0)return!0;switch(J){case rd.SPACE:case rd.QUESTION_MARK:case rd.NUM_PLUS:case rd.NUM_MINUS:case rd.NUM_PERIOD:case rd.NUM_DIVISION:case rd.SEMICOLON:case rd.DASH:case rd.EQUALS:case rd.COMMA:case rd.PERIOD:case rd.SLASH:case rd.APOSTROPHE:case rd.SINGLE_QUOTE:case rd.OPEN_SQUARE_BRACKET:case rd.BACKSLASH:case rd.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ah=rd,j_=p.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0}),_g=j_;function v0(ae,J,xe){return(ae-J)/(xe-J)}function JC(ae,J,xe,ye){var Ze=v0(J,xe,ye),xt={};switch(ae){case"rtl":xt.right="".concat(Ze*100,"%"),xt.transform="translateX(50%)";break;case"btt":xt.bottom="".concat(Ze*100,"%"),xt.transform="translateY(50%)";break;case"ttb":xt.top="".concat(Ze*100,"%"),xt.transform="translateY(-50%)";break;default:xt.left="".concat(Ze*100,"%"),xt.transform="translateX(-50%)";break}return xt}function Vg(ae,J){return Array.isArray(ae)?ae[J]:ae}var V0=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],qm=p.forwardRef(function(ae,J){var xe,ye,Ze=ae.prefixCls,xt=ae.value,Mt=ae.valueIndex,Wt=ae.onStartMove,en=ae.style,Tn=ae.render,On=ae.dragging,qn=ae.onOffsetChange,nr=(0,_.Z)(ae,V0),hr=p.useContext(_g),ur=hr.min,Mr=hr.max,wr=hr.direction,ia=hr.disabled,ua=hr.range,ga=hr.tabIndex,Fa=hr.ariaLabelForHandle,ai=hr.ariaLabelledByForHandle,Ca=hr.ariaValueTextFormatterForHandle,ii="".concat(Ze,"-handle"),ci=function(li){ia||Wt(li,Mt)},$a=function(li){if(!ia){var ti=null;switch(li.which||li.keyCode){case Ah.LEFT:ti=wr==="ltr"||wr==="btt"?-1:1;break;case Ah.RIGHT:ti=wr==="ltr"||wr==="btt"?1:-1;break;case Ah.UP:ti=wr!=="ttb"?1:-1;break;case Ah.DOWN:ti=wr!=="ttb"?-1:1;break;case Ah.HOME:ti="min";break;case Ah.END:ti="max";break;case Ah.PAGE_UP:ti=2;break;case Ah.PAGE_DOWN:ti=-2;break}ti!==null&&(li.preventDefault(),qn(ti,Mt))}},di=JC(wr,xt,ur,Mr),Wa=p.createElement("div",(0,Da.Z)({ref:J,className:ze()(ii,(xe={},(0,v.Z)(xe,"".concat(ii,"-").concat(Mt+1),ua),(0,v.Z)(xe,"".concat(ii,"-dragging"),On),xe)),style:(0,d.Z)((0,d.Z)({},di),en),onMouseDown:ci,onTouchStart:ci,onKeyDown:$a,tabIndex:ia?null:Vg(ga,Mt),role:"slider","aria-valuemin":ur,"aria-valuemax":Mr,"aria-valuenow":xt,"aria-disabled":ia,"aria-label":Vg(Fa,Mt),"aria-labelledby":Vg(ai,Mt),"aria-valuetext":(ye=Vg(Ca,Mt))===null||ye===void 0?void 0:ye(xt)},nr));return Tn&&(Wa=Tn(Wa,{index:Mt,prefixCls:Ze,value:xt,dragging:On})),Wa}),ik=qm,CO=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],ok=p.forwardRef(function(ae,J){var xe=ae.prefixCls,ye=ae.style,Ze=ae.onStartMove,xt=ae.onOffsetChange,Mt=ae.values,Wt=ae.handleRender,en=ae.draggingIndex,Tn=(0,_.Z)(ae,CO),On=p.useRef({});return p.useImperativeHandle(J,function(){return{focus:function(nr){var hr;(hr=On.current[nr])===null||hr===void 0||hr.focus()}}}),p.createElement(p.Fragment,null,Mt.map(function(qn,nr){return p.createElement(ik,(0,Da.Z)({ref:function(ur){ur?On.current[nr]=ur:delete On.current[nr]},dragging:en===nr,prefixCls:xe,style:Vg(ye,nr),key:nr,value:qn,valueIndex:nr,onStartMove:Ze,onOffsetChange:xt,render:Wt},Tn))}))}),ET=ok;function Yy(ae){var J="touches"in ae?ae.touches[0]:ae;return{pageX:J.pageX,pageY:J.pageY}}function ST(ae,J,xe,ye,Ze,xt,Mt,Wt,en){var Tn=p.useState(null),On=(0,y.Z)(Tn,2),qn=On[0],nr=On[1],hr=p.useState(-1),ur=(0,y.Z)(hr,2),Mr=ur[0],wr=ur[1],ia=p.useState(xe),ua=(0,y.Z)(ia,2),ga=ua[0],Fa=ua[1],ai=p.useState(xe),Ca=(0,y.Z)(ai,2),ii=Ca[0],ci=Ca[1],$a=p.useRef(null),di=p.useRef(null);p.useEffect(function(){Mr===-1&&Fa(xe)},[xe,Mr]),p.useEffect(function(){return function(){document.removeEventListener("mousemove",$a.current),document.removeEventListener("mouseup",di.current),document.removeEventListener("touchmove",$a.current),document.removeEventListener("touchend",di.current)}},[]);var Wa=function(ji,go){ga.some(function(Wi,uo){return Wi!==ji[uo]})&&(go!==void 0&&nr(go),Fa(ji),Mt(ji))},Ya=function(ji,go){if(ji===-1){var Wi=ii[0],uo=ii[ii.length-1],wo=ye-Wi,Io=Ze-uo,Vo=go*(Ze-ye);Vo=Math.max(Vo,wo),Vo=Math.min(Vo,Io);var bs=xt(Wi+Vo);Vo=bs-Wi;var ts=ii.map(function(zs){return zs+Vo});Wa(ts)}else{var Ws=(Ze-ye)*go,Al=(0,h.Z)(ga);Al[ji]=ii[ji];var Ql=en(Al,Ws,ji,"dist");Wa(Ql.values,Ql.value)}},li=p.useRef(Ya);li.current=Ya;var ti=function(ji,go){ji.stopPropagation();var Wi=xe[go];wr(go),nr(Wi),ci(xe);var uo=Yy(ji),wo=uo.pageX,Io=uo.pageY,Vo=function(Ws){Ws.preventDefault();var Al=Yy(Ws),Ql=Al.pageX,zs=Al.pageY,_c=Ql-wo,hc=zs-Io,Hs=ae.current.getBoundingClientRect(),Ul=Hs.width,As=Hs.height,Ks;switch(J){case"btt":Ks=-hc/As;break;case"ttb":Ks=hc/As;break;case"rtl":Ks=-_c/Ul;break;default:Ks=_c/Ul}li.current(go,Ks)},bs=function ts(Ws){Ws.preventDefault(),document.removeEventListener("mouseup",ts),document.removeEventListener("mousemove",Vo),document.removeEventListener("touchend",ts),document.removeEventListener("touchmove",Vo),$a.current=null,di.current=null,wr(-1),Wt()};document.addEventListener("mouseup",bs),document.addEventListener("mousemove",Vo),document.addEventListener("touchend",bs),document.addEventListener("touchmove",Vo),$a.current=Vo,di.current=bs},Ba=p.useMemo(function(){var Ni=(0,h.Z)(xe).sort(function(go,Wi){return go-Wi}),ji=(0,h.Z)(ga).sort(function(go,Wi){return go-Wi});return Ni.every(function(go,Wi){return go===ji[Wi]})?ga:xe},[xe,ga]);return[Mr,qn,Ba,ti]}function wO(ae){var J=ae.prefixCls,xe=ae.style,ye=ae.start,Ze=ae.end,xt=ae.index,Mt=ae.onStartMove,Wt=p.useContext(_g),en=Wt.direction,Tn=Wt.min,On=Wt.max,qn=Wt.disabled,nr=Wt.range,hr="".concat(J,"-track"),ur=v0(ye,Tn,On),Mr=v0(Ze,Tn,On),wr=function(ga){!qn&&Mt&&Mt(ga,-1)},ia={};switch(en){case"rtl":ia.right="".concat(ur*100,"%"),ia.width="".concat(Mr*100-ur*100,"%");break;case"btt":ia.bottom="".concat(ur*100,"%"),ia.height="".concat(Mr*100-ur*100,"%");break;case"ttb":ia.top="".concat(ur*100,"%"),ia.height="".concat(Mr*100-ur*100,"%");break;default:ia.left="".concat(ur*100,"%"),ia.width="".concat(Mr*100-ur*100,"%")}return p.createElement("div",{className:ze()(hr,nr&&"".concat(hr,"-").concat(xt+1)),style:(0,d.Z)((0,d.Z)({},ia),xe),onMouseDown:wr,onTouchStart:wr})}function CT(ae){var J=ae.prefixCls,xe=ae.style,ye=ae.values,Ze=ae.startPoint,xt=ae.onStartMove,Mt=p.useContext(_g),Wt=Mt.included,en=Mt.range,Tn=Mt.min,On=p.useMemo(function(){if(!en){if(ye.length===0)return[];var qn=Ze!=null?Ze:Tn,nr=ye[0];return[{start:Math.min(qn,nr),end:Math.max(qn,nr)}]}for(var hr=[],ur=0;ur<ye.length-1;ur+=1)hr.push({start:ye[ur],end:ye[ur+1]});return hr},[ye,en,Ze,Tn]);return Wt?On.map(function(qn,nr){var hr=qn.start,ur=qn.end;return p.createElement(wO,{index:nr,prefixCls:J,style:Vg(xe,nr),start:hr,end:ur,key:nr,onStartMove:xt})}):null}function qE(ae){var J=ae.prefixCls,xe=ae.style,ye=ae.children,Ze=ae.value,xt=ae.onClick,Mt=p.useContext(_g),Wt=Mt.min,en=Mt.max,Tn=Mt.direction,On=Mt.includedStart,qn=Mt.includedEnd,nr=Mt.included,hr="".concat(J,"-text"),ur=JC(Tn,Ze,Wt,en);return p.createElement("span",{className:ze()(hr,(0,v.Z)({},"".concat(hr,"-active"),nr&&On<=Ze&&Ze<=qn)),style:(0,d.Z)((0,d.Z)({},ur),xe),onMouseDown:function(wr){wr.stopPropagation()},onClick:function(){xt(Ze)}},ye)}function sk(ae){var J=ae.prefixCls,xe=ae.marks,ye=ae.onClick,Ze="".concat(J,"-mark");return xe.length?p.createElement("div",{className:Ze},xe.map(function(xt){var Mt=xt.value,Wt=xt.style,en=xt.label;return p.createElement(qE,{key:Mt,prefixCls:Ze,style:Wt,value:Mt,onClick:ye},en)})):null}function wT(ae){var J=ae.prefixCls,xe=ae.value,ye=ae.style,Ze=ae.activeStyle,xt=p.useContext(_g),Mt=xt.min,Wt=xt.max,en=xt.direction,Tn=xt.included,On=xt.includedStart,qn=xt.includedEnd,nr="".concat(J,"-dot"),hr=Tn&&On<=xe&&xe<=qn,ur=(0,d.Z)((0,d.Z)({},JC(en,xe,Mt,Wt)),typeof ye=="function"?ye(xe):ye);return hr&&(ur=(0,d.Z)((0,d.Z)({},ur),typeof Ze=="function"?Ze(xe):Ze)),p.createElement("span",{className:ze()(nr,(0,v.Z)({},"".concat(nr,"-active"),hr)),style:ur})}function lk(ae){var J=ae.prefixCls,xe=ae.marks,ye=ae.dots,Ze=ae.style,xt=ae.activeStyle,Mt=p.useContext(_g),Wt=Mt.min,en=Mt.max,Tn=Mt.step,On=p.useMemo(function(){var qn=new Set;if(xe.forEach(function(hr){qn.add(hr.value)}),ye&&Tn!==null)for(var nr=Wt;nr<=en;)qn.add(nr),nr+=Tn;return Array.from(qn)},[Wt,en,Tn,ye,xe]);return p.createElement("div",{className:"".concat(J,"-step")},On.map(function(qn){return p.createElement(wT,{prefixCls:J,key:qn,value:qn,style:Ze,activeStyle:xt})}))}function ck(ae,J,xe,ye,Ze,xt){var Mt=p.useCallback(function(hr){var ur=isFinite(hr)?hr:ae;return ur=Math.min(J,hr),ur=Math.max(ae,ur),ur},[ae,J]),Wt=p.useCallback(function(hr){if(xe!==null){var ur=ae+Math.round((Mt(hr)-ae)/xe)*xe,Mr=function(ga){return(String(ga).split(".")[1]||"").length},wr=Math.max(Mr(xe),Mr(J),Mr(ae)),ia=Number(ur.toFixed(wr));return ae<=ia&&ia<=J?ia:null}return null},[xe,ae,J,Mt]),en=p.useCallback(function(hr){var ur=Mt(hr),Mr=ye.map(function(ua){return ua.value});xe!==null&&Mr.push(Wt(hr)),Mr.push(ae,J);var wr=Mr[0],ia=J-ae;return Mr.forEach(function(ua){var ga=Math.abs(ur-ua);ga<=ia&&(wr=ua,ia=ga)}),wr},[ae,J,ye,xe,Mt,Wt]),Tn=function hr(ur,Mr,wr){var ia=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof Mr=="number"){var ua,ga=ur[wr],Fa=ga+Mr,ai=[];ye.forEach(function(di){ai.push(di.value)}),ai.push(ae,J),ai.push(Wt(ga));var Ca=Mr>0?1:-1;ia==="unit"?ai.push(Wt(ga+Ca*xe)):ai.push(Wt(Fa)),ai=ai.filter(function(di){return di!==null}).filter(function(di){return Mr<0?di<=ga:di>=ga}),ia==="unit"&&(ai=ai.filter(function(di){return di!==ga}));var ii=ia==="unit"?ga:Fa;ua=ai[0];var ci=Math.abs(ua-ii);if(ai.forEach(function(di){var Wa=Math.abs(di-ii);Wa<ci&&(ua=di,ci=Wa)}),ua===void 0)return Mr<0?ae:J;if(ia==="dist")return ua;if(Math.abs(Mr)>1){var $a=(0,h.Z)(ur);return $a[wr]=ua,hr($a,Mr-Ca,wr,ia)}return ua}else{if(Mr==="min")return ae;if(Mr==="max")return J}},On=function(ur,Mr,wr){var ia=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",ua=ur[wr],ga=Tn(ur,Mr,wr,ia);return{value:ga,changed:ga!==ua}},qn=function(ur){return xt===null&&ur===0||typeof xt=="number"&&ur<xt},nr=function(ur,Mr,wr){var ia=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",ua=ur.map(en),ga=ua[wr],Fa=Tn(ua,Mr,wr,ia);if(ua[wr]=Fa,Ze===!1){var ai=xt||0;wr>0&&ua[wr-1]!==ga&&(ua[wr]=Math.max(ua[wr],ua[wr-1]+ai)),wr<ua.length-1&&ua[wr+1]!==ga&&(ua[wr]=Math.min(ua[wr],ua[wr+1]-ai))}else if(typeof xt=="number"||xt===null){for(var Ca=wr+1;Ca<ua.length;Ca+=1)for(var ii=!0;qn(ua[Ca]-ua[Ca-1])&ⅈ){var ci=On(ua,1,Ca);ua[Ca]=ci.value,ii=ci.changed}for(var $a=wr;$a>0;$a-=1)for(var di=!0;qn(ua[$a]-ua[$a-1])&&di;){var Wa=On(ua,-1,$a-1);ua[$a-1]=Wa.value,di=Wa.changed}for(var Ya=ua.length-1;Ya>0;Ya-=1)for(var li=!0;qn(ua[Ya]-ua[Ya-1])&&li;){var ti=On(ua,-1,Ya-1);ua[Ya-1]=ti.value,li=ti.changed}for(var Ba=0;Ba<ua.length-1;Ba+=1)for(var Ni=!0;qn(ua[Ba+1]-ua[Ba])&&Ni;){var ji=On(ua,1,Ba+1);ua[Ba+1]=ji.value,Ni=ji.changed}}return{value:ua[wr],values:ua}};return[en,nr]}var eS={},TT=[],G4=function(J){TT.push(J)};function TO(ae,J){if(!1)var xe}function AO(ae,J){if(!1)var xe}function QC(){eS={}}function Xy(ae,J,xe){!J&&!eS[xe]&&(ae(!1,xe),eS[xe]=!0)}function nb(ae,J){Xy(TO,ae,J)}function uk(ae,J){Xy(AO,ae,J)}nb.preMessage=G4,nb.resetWarned=QC,nb.noteOnce=uk;var $4=null,fk=p.forwardRef(function(ae,J){var xe,ye=ae.prefixCls,Ze=ye===void 0?"rc-slider":ye,xt=ae.className,Mt=ae.style,Wt=ae.disabled,en=Wt===void 0?!1:Wt,Tn=ae.autoFocus,On=ae.onFocus,qn=ae.onBlur,nr=ae.min,hr=nr===void 0?0:nr,ur=ae.max,Mr=ur===void 0?100:ur,wr=ae.step,ia=wr===void 0?1:wr,ua=ae.value,ga=ae.defaultValue,Fa=ae.range,ai=ae.count,Ca=ae.onChange,ii=ae.onBeforeChange,ci=ae.onAfterChange,$a=ae.allowCross,di=$a===void 0?!0:$a,Wa=ae.pushable,Ya=Wa===void 0?!1:Wa,li=ae.draggableTrack,ti=ae.reverse,Ba=ae.vertical,Ni=ae.included,ji=Ni===void 0?!0:Ni,go=ae.startPoint,Wi=ae.trackStyle,uo=ae.handleStyle,wo=ae.railStyle,Io=ae.dotStyle,Vo=ae.activeDotStyle,bs=ae.marks,ts=ae.dots,Ws=ae.handleRender,Al=ae.tabIndex,Ql=Al===void 0?0:Al,zs=ae.ariaLabelForHandle,_c=ae.ariaLabelledByForHandle,hc=ae.ariaValueTextFormatterForHandle,Hs=p.useRef(),Ul=p.useRef(),As=p.useMemo(function(){return Ba?ti?"ttb":"btt":ti?"rtl":"ltr"},[ti,Ba]),Ks=p.useMemo(function(){return isFinite(hr)?hr:0},[hr]),Cc=p.useMemo(function(){return isFinite(Mr)?Mr:100},[Mr]),qc=p.useMemo(function(){return ia!==null&&ia<=0?1:ia},[ia]),Of=p.useMemo(function(){return Ya===!0?qc:Ya>=0?Ya:!1},[Ya,qc]),_f=p.useMemo(function(){var cp=Object.keys(bs||{});return cp.map(function(rp){var pd=bs[rp],Wv={value:Number(rp)};return pd&&(0,A.Z)(pd)==="object"&&!p.isValidElement(pd)&&("label"in pd||"style"in pd)?(Wv.style=pd.style,Wv.label=pd.label):Wv.label=pd,Wv}).filter(function(rp){var pd=rp.label;return pd||typeof pd=="number"}).sort(function(rp,pd){return rp.value-pd.value})},[bs]),sd=ck(Ks,Cc,qc,_f,di,Of),ud=(0,y.Z)(sd,2),Su=ud[0],Uu=ud[1],mp=xT(ga,{value:ua}),wv=(0,y.Z)(mp,2),Au=wv[0],qd=wv[1],Ad=p.useMemo(function(){var cp=Au==null?[]:Array.isArray(Au)?Au:[Au],rp=(0,y.Z)(cp,1),pd=rp[0],Wv=pd===void 0?Ks:pd,Iv=Au===null?[]:[Wv];if(Fa){if(Iv=(0,h.Z)(cp),ai||Au===void 0){var V_=ai>=0?ai+1:2;for(Iv=Iv.slice(0,V_);Iv.length<V_;){var z_;Iv.push((z_=Iv[Iv.length-1])!==null&&z_!==void 0?z_:Ks)}}Iv.sort(function(Sg,x0){return Sg-x0})}return Iv.forEach(function(Sg,x0){Iv[x0]=Su(Sg)}),Iv},[Au,Fa,Ks,ai,Su]),ad=p.useRef(Ad);ad.current=Ad;var fp=function(rp){return Fa?rp:rp[0]},Tv=function(rp){var pd=(0,h.Z)(rp).sort(function(Wv,Iv){return Wv-Iv});Ca&&!D1()(pd,ad.current)&&Ca(fp(pd)),qd(pd)},hv=function(rp){if(!en){var pd=0,Wv=Cc-Ks;Ad.forEach(function(V_,z_){var Sg=Math.abs(rp-V_);Sg<=Wv&&(Wv=Sg,pd=z_)});var Iv=(0,h.Z)(Ad);Iv[pd]=rp,Fa&&!Ad.length&&ai===void 0&&Iv.push(rp),ii==null||ii(fp(Iv)),Tv(Iv),ci==null||ci(fp(Iv))}},Bh=function(rp){rp.preventDefault();var pd=Ul.current.getBoundingClientRect(),Wv=pd.width,Iv=pd.height,V_=pd.left,z_=pd.top,Sg=pd.bottom,x0=pd.right,bm=rp.clientX,G0=rp.clientY,W_;switch(As){case"btt":W_=(Sg-G0)/Iv;break;case"ttb":W_=(G0-z_)/Iv;break;case"rtl":W_=(x0-bm)/Wv;break;default:W_=(bm-V_)/Wv}var ep=Ks+W_*(Cc-Ks);hv(Su(ep))},Mh=p.useState(null),xp=(0,y.Z)(Mh,2),Sh=xp[0],Qf=xp[1],Nm=function(rp,pd){if(!en){var Wv=Uu(Ad,rp,pd);ii==null||ii(fp(Ad)),Tv(Wv.values),ci==null||ci(fp(Wv.values)),Qf(Wv.value)}};p.useEffect(function(){if(Sh!==null){var cp=Ad.indexOf(Sh);cp>=0&&Hs.current.focus(cp)}Qf(null)},[Sh]);var av=p.useMemo(function(){return li&&qc===null?!1:li},[li,qc]),yu=function(){ci==null||ci(fp(ad.current))},kp=ST(Ul,As,Ad,Ks,Cc,Su,Tv,yu,Uu),Md=(0,y.Z)(kp,4),kd=Md[0],mv=Md[1],Jp=Md[2],iv=Md[3],kh=function(rp,pd){iv(rp,pd),ii==null||ii(fp(ad.current))},ym=kd!==-1;p.useEffect(function(){if(!ym){var cp=Ad.lastIndexOf(mv);Hs.current.focus(cp)}},[ym]);var cm=p.useMemo(function(){return(0,h.Z)(Jp).sort(function(cp,rp){return cp-rp})},[Jp]),Ov=p.useMemo(function(){return Fa?[cm[0],cm[cm.length-1]]:[Ks,cm[0]]},[cm,Fa,Ks]),rl=(0,y.Z)(Ov,2),sc=rl[0],hf=rl[1];p.useImperativeHandle(J,function(){return{focus:function(){Hs.current.focus(0)},blur:function(){var rp=document,pd=rp.activeElement;Ul.current.contains(pd)&&(pd==null||pd.blur())}}}),p.useEffect(function(){Tn&&Hs.current.focus(0)},[]);var ld=p.useMemo(function(){return{min:Ks,max:Cc,direction:As,disabled:en,step:qc,included:ji,includedStart:sc,includedEnd:hf,range:Fa,tabIndex:Ql,ariaLabelForHandle:zs,ariaLabelledByForHandle:_c,ariaValueTextFormatterForHandle:hc}},[Ks,Cc,As,en,qc,ji,sc,hf,Fa,Ql,zs,_c,hc]);return p.createElement(_g.Provider,{value:ld},p.createElement("div",{ref:Ul,className:ze()(Ze,xt,(xe={},(0,v.Z)(xe,"".concat(Ze,"-disabled"),en),(0,v.Z)(xe,"".concat(Ze,"-vertical"),Ba),(0,v.Z)(xe,"".concat(Ze,"-horizontal"),!Ba),(0,v.Z)(xe,"".concat(Ze,"-with-marks"),_f.length),xe)),style:Mt,onMouseDown:Bh},p.createElement("div",{className:"".concat(Ze,"-rail"),style:wo}),p.createElement(CT,{prefixCls:Ze,style:Wi,values:cm,startPoint:go,onStartMove:av?kh:null}),p.createElement(lk,{prefixCls:Ze,marks:_f,dots:ts,style:Io,activeStyle:Vo}),p.createElement(ET,{ref:Hs,prefixCls:Ze,style:uo,values:Jp,draggingIndex:kd,onStartMove:kh,onOffsetChange:Nm,onFocus:On,onBlur:qn,handleRender:Ws}),p.createElement(sk,{prefixCls:Ze,marks:_f,onClick:hv})))}),K4=fk,dk=K4,MO=o(28101),pk=o(99182),kO=p.forwardRef(function(ae,J){var xe=ae.open,ye=(0,p.useRef)(null),Ze=(0,p.useRef)(null);function xt(){MO.Z.cancel(Ze.current),Ze.current=null}function Mt(){Ze.current=(0,MO.Z)(function(){var Wt;(Wt=ye.current)===null||Wt===void 0||Wt.forcePopupAlign(),Ze.current=null})}return p.useEffect(function(){return xe?Mt():xt(),xt},[xe,ae.title]),p.createElement(hg.Z,(0,Da.Z)({ref:(0,pk.sQ)(ye,J)},ae))}),qC=kO,vk=function(ae,J){var xe={};for(var ye in ae)Object.prototype.hasOwnProperty.call(ae,ye)&&J.indexOf(ye)<0&&(xe[ye]=ae[ye]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ye=Object.getOwnPropertySymbols(ae);Ze<ye.length;Ze++)J.indexOf(ye[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ae,ye[Ze])&&(xe[ye[Ze]]=ae[ye[Ze]]);return xe},hk=p.forwardRef(function(ae,J){var xe=p.useContext(ff.E_),ye=xe.getPrefixCls,Ze=xe.direction,xt=xe.getPopupContainer,Mt=p.useState({}),Wt=(0,y.Z)(Mt,2),en=Wt[0],Tn=Wt[1],On=function(ci,$a){Tn(function(di){return(0,Da.Z)((0,Da.Z)({},di),(0,v.Z)({},ci,$a))})},qn=function(ci,$a){return ci||($a?Ze==="rtl"?"left":"right":"top")},nr=ae.prefixCls,hr=ae.range,ur=ae.className,Mr=vk(ae,["prefixCls","range","className"]),wr=ye("slider",nr),ia=ze()(ur,(0,v.Z)({},"".concat(wr,"-rtl"),Ze==="rtl"));Ze==="rtl"&&!Mr.vertical&&(Mr.reverse=!Mr.reverse);var ua=p.useMemo(function(){return hr?(0,A.Z)(hr)==="object"?[!0,hr.draggableTrack]:[!0,!1]:[!1]},[hr]),ga=(0,y.Z)(ua,2),Fa=ga[0],ai=ga[1],Ca=function(ci,$a){var di,Wa=$a.index,Ya=$a.dragging,li=ye(),ti=ae.tooltip,Ba=ti===void 0?{}:ti,Ni=ae.vertical,ji=(0,Da.Z)({formatter:(di=ae.tipFormatter)!==null&&di!==void 0?di:function(Al){return typeof Al=="number"?Al.toString():""},open:ae.tooltipVisible,placement:ae.tooltipPlacement,getPopupContainer:ae.getTooltipPopupContainer},Ba),go=ji.open,Wi=ji.placement,uo=ji.getPopupContainer,wo=ji.prefixCls,Io=ji.formatter,Vo=Io?en[Wa]||Ya:!1,bs=go||go===void 0&&Vo,ts=(0,Da.Z)((0,Da.Z)({},ci.props),{onMouseEnter:function(){return On(Wa,!0)},onMouseLeave:function(){return On(Wa,!1)}}),Ws=ye("tooltip",wo);return p.createElement(qC,{prefixCls:Ws,title:Io?Io($a.value):"",open:bs,placement:qn(Wi,Ni),transitionName:"".concat(li,"-zoom-down"),key:Wa,overlayClassName:"".concat(wr,"-tooltip"),getPopupContainer:uo||xt},p.cloneElement(ci,ts))};return p.createElement(dk,(0,Da.Z)({},Mr,{step:Mr.step,range:Fa,draggableTrack:ai,className:ia,ref:J,prefixCls:wr,handleRender:Ca}))}),mk=hk,AT=function(J,xe){var ye=J.text,Ze=J.mode,xt=J.render,Mt=J.renderFormItem,Wt=J.fieldProps;if(Ze==="read"){var en=ye;return xt?xt(ye,(0,d.Z)({mode:Ze},Wt),(0,S.jsx)(S.Fragment,{children:en})):(0,S.jsx)(S.Fragment,{children:en})}if(Ze==="edit"||Ze==="update"){var Tn=(0,S.jsx)(mk,(0,d.Z)({ref:xe},Wt));return Mt?Mt(ye,(0,d.Z)({mode:Ze},Wt),Tn):Tn}return null},h0=p.forwardRef(AT),Y4=o(59560),gk=o(3114),MT=function(J,xe){var ye=J.text,Ze=J.mode,xt=J.render,Mt=J.renderFormItem,Wt=J.fieldProps,en=(0,F.YB)(),Tn=(0,p.useMemo)(function(){var nr,hr;return ye==null||"".concat(ye).length<1?"-":ye?(nr=Wt==null?void 0:Wt.checkedChildren)!==null&&nr!==void 0?nr:en.getMessage("switch.open","\u6253\u5F00"):(hr=Wt==null?void 0:Wt.unCheckedChildren)!==null&&hr!==void 0?hr:en.getMessage("switch.close","\u5173\u95ED")},[Wt==null?void 0:Wt.checkedChildren,Wt==null?void 0:Wt.unCheckedChildren,ye]);if(Ze==="read")return xt?xt(ye,(0,d.Z)({mode:Ze},Wt),(0,S.jsx)(S.Fragment,{children:Tn})):Tn!=null?Tn:"-";if(Ze==="edit"||Ze==="update"){var On,qn=(0,S.jsx)(gk.Z,(0,d.Z)((0,d.Z)({ref:xe},(0,bt.Z)(Wt,["value"])),{},{checked:(On=Wt==null?void 0:Wt.checked)!==null&&On!==void 0?On:Wt==null?void 0:Wt.value}));return Mt?Mt(ye,(0,d.Z)({mode:Ze},Wt),qn):qn}return null},PO=p.forwardRef(MT),tS=function(J,xe){var ye=J.text,Ze=J.mode,xt=J.render,Mt=J.renderFormItem,Wt=J.fieldProps,en=J.emptyText,Tn=en===void 0?"-":en,On=Wt||{},qn=On.autoFocus,nr=On.prefix,hr=nr===void 0?"":nr,ur=On.suffix,Mr=ur===void 0?"":ur,wr=(0,F.YB)(),ia=(0,p.useRef)();if((0,p.useImperativeHandle)(xe,function(){return ia.current}),(0,p.useEffect)(function(){if(qn){var Ca;(Ca=ia.current)===null||Ca===void 0||Ca.focus()}},[qn]),Ze==="read"){var ua=(0,S.jsxs)(S.Fragment,{children:[hr,ye!=null?ye:Tn,Mr]});if(xt){var ga;return(ga=xt(ye,(0,d.Z)({mode:Ze},Wt),ua))!==null&&ga!==void 0?ga:Tn}return ua}if(Ze==="edit"||Ze==="update"){var Fa=wr.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ai=(0,S.jsx)(Oi.Z,(0,d.Z)({ref:ia,placeholder:Fa,allowClear:!0},Wt));return Mt?Mt(ye,(0,d.Z)({mode:Ze},Wt),ai):ai}return null},e2=p.forwardRef(tS),RO=function(J,xe){var ye=J.text,Ze=J.mode,xt=J.render,Mt=J.renderFormItem,Wt=J.fieldProps,en=(0,F.YB)();if(Ze==="read"){var Tn=(0,S.jsx)("span",{ref:xe,children:ye!=null?ye:"-"});return xt?xt(ye,(0,d.Z)({mode:Ze},Wt),Tn):Tn}if(Ze==="edit"||Ze==="update"){var On=(0,S.jsx)(Oi.Z.TextArea,(0,d.Z)({ref:xe,rows:3,onKeyPress:function(nr){nr.key==="Enter"&&nr.stopPropagation()},placeholder:en.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165")},Wt));return Mt?Mt(ye,(0,d.Z)({mode:Ze},Wt),On):On}return null},OO=p.forwardRef(RO),X4=o(92801),IO=function(ae,J){var xe={};for(var ye in ae)Object.prototype.hasOwnProperty.call(ae,ye)&&J.indexOf(ye)<0&&(xe[ye]=ae[ye]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ye=Object.getOwnPropertySymbols(ae);Ze<ye.length;Ze++)J.indexOf(ye[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ae,ye[Ze])&&(xe[ye[Ze]]=ae[ye[Ze]]);return xe},DO=h_.TimePicker,_k=h_.RangePicker,B_=p.forwardRef(function(ae,J){var xe=ae.dropdownClassName,ye=ae.popupClassName;return p.createElement(_k,(0,Da.Z)({},ae,{dropdownClassName:xe,popupClassName:ye,picker:"time",mode:void 0,ref:J}))}),Sx=p.forwardRef(function(ae,J){var xe=ae.addon,ye=ae.renderExtraFooter,Ze=ae.popupClassName,xt=ae.dropdownClassName,Mt=IO(ae,["addon","renderExtraFooter","popupClassName","dropdownClassName"]),Wt=p.useMemo(function(){if(ye)return ye;if(xe)return xe},[xe,ye]);return p.createElement(DO,(0,Da.Z)({dropdownClassName:xt,popupClassName:Ze},Mt,{mode:void 0,ref:J,renderExtraFooter:Wt}))});Sx.RangePicker=B_;var kT=Sx,PT=function(J,xe){var ye=J.text,Ze=J.mode,xt=J.light,Mt=J.label,Wt=J.format,en=J.render,Tn=J.renderFormItem,On=J.plain,qn=J.fieldProps,nr=J.lightLabel,hr=J.labelTrigger,ur=(0,p.useState)(!1),Mr=(0,y.Z)(ur,2),wr=Mr[0],ia=Mr[1],ua=(0,p.useContext)(w.ZP.SizeContext),ga=(0,p.useContext)(w.ZP.ConfigContext),Fa=ga.getPrefixCls,ai=Fa("pro-field-date-picker"),Ca=(qn==null?void 0:qn.format)||Wt||"HH:mm:ss",ii=Ir().isMoment(ye)||typeof ye=="number";if(Ze==="read"){var ci=(0,S.jsx)("span",{ref:xe,children:ye?Ir()(ye,ii?void 0:Ca).format(Ca):"-"});return en?en(ye,(0,d.Z)({mode:Ze},qn),(0,S.jsx)("span",{children:ci})):ci}if(Ze==="edit"||Ze==="update"){var $a,di=qn.disabled,Wa=qn.onChange,Ya=qn.placeholder,li=qn.allowClear,ti=qn.value,Ba=ly(ti,Ca);if(xt){var Ni=Ba&&Ba.format(Ca)||"";$a=(0,S.jsxs)("div",{className:"".concat(ai,"-light"),onClick:function(go){var Wi,uo,wo,Io=nr==null||(Wi=nr.current)===null||Wi===void 0||(uo=Wi.labelRef)===null||uo===void 0||(wo=uo.current)===null||wo===void 0?void 0:wo.contains(go.target);ia(Io?!wr:!0)},children:[(0,S.jsx)(kT,(0,d.Z)((0,d.Z)({value:Ba,format:Wt,ref:xe},qn),{},{onChange:function(go){Wa==null||Wa(go),setTimeout(function(){ia(!1)},0)},onOpenChange:function(go){hr||ia(go)},open:wr})),(0,S.jsx)(Pi.Z,{label:Mt,disabled:di,placeholder:Ya,size:ua,value:Ni,allowClear:li,onClear:function(){return Wa==null?void 0:Wa(null)},expanded:wr,ref:nr})]})}else $a=(0,S.jsx)(h_.TimePicker,(0,d.Z)((0,d.Z)({ref:xe,format:Wt,bordered:On===void 0?!0:!On},qn),{},{value:Ba}));return Tn?Tn(ye,(0,d.Z)({mode:Ze},qn),$a):$a}return null},yg=function(J){var xe=J.text,ye=J.mode,Ze=J.format,xt=J.render,Mt=J.renderFormItem,Wt=J.plain,en=J.fieldProps,Tn=(en==null?void 0:en.format)||Ze||"HH:mm:ss",On=Array.isArray(xe)?xe:[],qn=(0,y.Z)(On,2),nr=qn[0],hr=qn[1],ur=Ir().isMoment(nr)||typeof nr=="number",Mr=Ir().isMoment(hr)||typeof hr=="number",wr=nr?Ir()(nr,ur?void 0:Tn).format(Tn):"",ia=hr?Ir()(hr,Mr?void 0:Tn).format(Tn):"";if(ye==="read"){var ua=(0,S.jsxs)("div",{children:[(0,S.jsx)("div",{children:wr||"-"}),(0,S.jsx)("div",{children:ia||"-"})]});return xt?xt(xe,(0,d.Z)({mode:ye},en),(0,S.jsx)("span",{children:ua})):ua}if(ye==="edit"||ye==="update"){var ga=en.value,Fa=ly(ga,Tn),ai=(0,S.jsx)(kT.RangePicker,(0,d.Z)((0,d.Z)({format:Ze,bordered:Wt===void 0?!0:!Wt},en),{},{value:Fa}));return Mt?Mt(xe,(0,d.Z)({mode:ye},en),ai):ai}return null},t2=p.forwardRef(PT),qh=o(37092),zg=o(88037),Ts=["radioType","renderFormItem","mode","light","label","render"],sm=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","searchValue"],NO=function(J,xe){var ye=J.radioType,Ze=J.renderFormItem,xt=J.mode,Mt=J.light,Wt=J.label,en=J.render,Tn=(0,_.Z)(J,Ts),On=(0,p.useContext)(w.ZP.ConfigContext),qn=On.getPrefixCls,nr=qn("pro-field-tree-select"),hr=(0,p.useRef)(null),ur=(0,p.useState)(!1),Mr=(0,y.Z)(ur,2),wr=Mr[0],ia=Mr[1],ua=Tn.fieldProps||{},ga=ua.onSearch,Fa=ua.onClear,ai=ua.onChange,Ca=ua.onBlur,ii=ua.showSearch,ci=ua.autoClearSearchValue,$a=ua.treeData,di=ua.searchValue,Wa=(0,_.Z)(ua,sm),Ya=(0,p.useContext)(w.ZP.SizeContext),li=cc((0,d.Z)((0,d.Z)({},Tn),{},{defaultKeyWords:di})),ti=(0,y.Z)(li,3),Ba=ti[0],Ni=ti[1],ji=ti[2],go=$t("",{onChange:ga,value:di}),Wi=(0,y.Z)(go,2),uo=Wi[0],wo=Wi[1];(0,p.useImperativeHandle)(xe,function(){return(0,d.Z)((0,d.Z)({},hr.current||{}),{},{fetchData:function(){return ji()}})});var Io=(0,p.useMemo)(function(){if(xt==="read"){var hc=(Wa==null?void 0:Wa.fieldNames)||{},Hs=hc.value,Ul=Hs===void 0?"value":Hs,As=hc.label,Ks=As===void 0?"label":As,Cc=hc.children,qc=Cc===void 0?"children":Cc,Of=new Map,_f=function sd(ud){if(!(ud==null?void 0:ud.length))return Of;for(var Su=ud.length,Uu=0;Uu<Su;){var mp=ud[Uu++];Of.set(mp[Ul],mp[Ks]),sd(mp[qc])}return Of};return _f(Ni)}},[Wa==null?void 0:Wa.fieldNames,xt,Ni]),Vo=function(Hs,Ul,As){ii&&ci&&(ji(""),wo("")),ai==null||ai(Hs,Ul,As)};if(xt==="read"){var bs=(0,S.jsx)(S.Fragment,{children:Ds(Tn.text,Co(Tn.valueEnum||Io))});return en?en(Tn.text,(0,d.Z)({mode:xt},Wa),bs)||null:bs}if(xt==="edit"){var ts,Ws=Array.isArray(Wa==null?void 0:Wa.value)?Wa==null||(ts=Wa.value)===null||ts===void 0?void 0:ts.length:0,Al=(0,S.jsx)(uf.Z,{spinning:Ba,children:(0,S.jsx)(zg.Z,(0,d.Z)((0,d.Z)({open:wr,onDropdownVisibleChange:ia,ref:hr,dropdownMatchSelectWidth:!Mt,tagRender:Mt?function(hc){var Hs;if(Ws<2)return(0,S.jsx)(S.Fragment,{children:hc.label});var Ul=Wa==null||(Hs=Wa.value)===null||Hs===void 0?void 0:Hs.findIndex(function(As){return As===hc.value||As.value===hc.value});return(0,S.jsxs)(S.Fragment,{children:[hc.label," ",Ul<Ws-1?",":""]})}:void 0},Wa),{},{bordered:!Mt,treeData:Ni,showSearch:ii,style:(0,d.Z)({minWidth:60},Wa.style),searchValue:uo,autoClearSearchValue:ci,onClear:function(){Fa==null||Fa(),ji(""),ii&&wo("")},onChange:Vo,onSearch:function(Hs){ji(Hs),wo(Hs)},onBlur:function(Hs){wo(""),ji(""),Ca==null||Ca(Hs)},className:ze()(Wa==null?void 0:Wa.className,nr)}))});if(Ze&&(Al=Ze(Tn.text,(0,d.Z)({mode:xt},Wa),Al)||null),Mt){var Ql=Wa.disabled,zs=Wa.allowClear,_c=Wa.placeholder;return(0,S.jsx)(Pi.Z,{label:Wt,disabled:Ql,placeholder:_c,size:Ya,onLabelClick:function(){return ia(!wr)},allowClear:zs,bordered:Tn.bordered,value:Al,onClear:function(){return ai==null?void 0:ai(void 0,[],{})}})}return Al}return null},J4=p.forwardRef(NO);function Q4(ae){var J=(0,p.useState)(!1),xe=(0,y.Z)(J,2),ye=xe[0],Ze=xe[1],xt=(0,p.useRef)(null),Mt=(0,p.useCallback)(function(Tn){var On,qn,nr,hr,ur,Mr,wr=(On=xt.current)===null||On===void 0||(qn=On.labelRef)===null||qn===void 0||(nr=qn.current)===null||nr===void 0?void 0:nr.contains(Tn.target),ia=(hr=xt.current)===null||hr===void 0||(ur=hr.clearRef)===null||ur===void 0||(Mr=ur.current)===null||Mr===void 0?void 0:Mr.contains(Tn.target);return wr&&!ia},[xt]),Wt=function(On){Mt(On)&&Ze(!0)},en=function(){Ze(!1)};return ae.isLight?(0,S.jsx)("div",{onMouseDown:Wt,onMouseUp:en,children:p.cloneElement(ae.children,{labelTrigger:ye,lightLabel:xt})}):(0,S.jsx)(S.Fragment,{children:ae.children})}var Dm=Q4,m0=["text","valueType","mode","onChange","renderFormItem","value","readonly"],yk=["select","radio","radioButton","checkbook"],q4=function(J,xe,ye){var Ze=Hr(ye.fieldProps);return xe.type==="progress"?(0,S.jsx)(KE,(0,d.Z)((0,d.Z)({},ye),{},{text:J,fieldProps:(0,d.Z)({status:xe.status?xe.status:void 0},Ze)})):xe.type==="money"?(0,S.jsx)(Bl,(0,d.Z)((0,d.Z)({locale:xe.locale},ye),{},{fieldProps:Ze,text:J,moneySymbol:xe.moneySymbol})):xe.type==="percent"?(0,S.jsx)(hm,(0,d.Z)((0,d.Z)({},ye),{},{text:J,showSymbol:xe.showSymbol,precision:xe.precision,fieldProps:Ze,showColor:xe.showColor})):xe.type==="image"?(0,S.jsx)(cT,(0,d.Z)((0,d.Z)({},ye),{},{text:J,width:xe.width})):J},n2=function(J,xe,ye,Ze){var xt,Mt=ye.mode,Wt=Mt===void 0?"read":Mt,en=ye.emptyText,Tn=en===void 0?"-":en;if(Tn!==!1&&Wt==="read"&&xe!=="option"&&xe!=="switch"&&typeof J!="boolean"&&typeof J!="number"&&!J){var On=ye.fieldProps,qn=ye.render;return qn?qn(J,(0,d.Z)({mode:Wt},On),(0,S.jsx)(S.Fragment,{children:Tn})):(0,S.jsx)(S.Fragment,{children:Tn})}if(delete ye.emptyText,(0,A.Z)(xe)==="object")return q4(J,xe,ye);var nr=Ze&&Ze[xe];if(nr){if(delete ye.ref,Wt==="read"){var hr;return(hr=nr.render)===null||hr===void 0?void 0:hr.call(nr,J,(0,d.Z)((0,d.Z)({text:J},ye),{},{mode:Wt||"read"}),(0,S.jsx)(S.Fragment,{children:J}))}if(Wt==="update"||Wt==="edit"){var ur;return(ur=nr.renderFormItem)===null||ur===void 0?void 0:ur.call(nr,J,(0,d.Z)({text:J},ye),(0,S.jsx)(S.Fragment,{children:J}))}}var Mr=yk.includes(xe),wr=!!(ye.valueEnum||ye.request||ye.options||((xt=ye.fieldProps)===null||xt===void 0?void 0:xt.options));return(0,wn.ET)(!Mr||wr,"\u5982\u679C\u8BBE\u7F6E\u4E86 valueType \u4E3A ".concat(yk.join(","),"\u4E2D\u4EFB\u610F\u4E00\u4E2A\uFF0C\u5219\u9700\u8981\u914D\u7F6Eoptions\uFF0Crequest, valueEnum \u5176\u4E2D\u4E4B\u4E00\uFF0C\u5426\u5219\u65E0\u6CD5\u751F\u6210\u9009\u9879\u3002")),(0,wn.ET)(!Mr||wr,"If you set valueType to any of ".concat(yk.join(","),", you need to configure options, request or valueEnum.")),xe==="money"?(0,S.jsx)(Bl,(0,d.Z)((0,d.Z)({},ye),{},{text:J})):xe==="date"?(0,S.jsx)(Dm,{isLight:ye.light,children:(0,S.jsx)(L_,(0,d.Z)({text:J,format:"YYYY-MM-DD"},ye))}):xe==="dateWeek"?(0,S.jsx)(Dm,{isLight:ye.light,children:(0,S.jsx)(L_,(0,d.Z)({text:J,format:"YYYY-wo",picker:"week"},ye))}):xe==="dateMonth"?(0,S.jsx)(Dm,{isLight:ye.light,children:(0,S.jsx)(L_,(0,d.Z)({text:J,format:"YYYY-MM",picker:"month"},ye))}):xe==="dateQuarter"?(0,S.jsx)(Dm,{isLight:ye.light,children:(0,S.jsx)(L_,(0,d.Z)({text:J,format:"YYYY-\\QQ",picker:"quarter"},ye))}):xe==="dateYear"?(0,S.jsx)(Dm,{isLight:ye.light,children:(0,S.jsx)(L_,(0,d.Z)({text:J,format:"YYYY",picker:"year"},ye))}):xe==="dateRange"?(0,S.jsx)(pT,(0,d.Z)({text:J,format:"YYYY-MM-DD"},ye)):xe==="dateTime"?(0,S.jsx)(Dm,{isLight:ye.light,children:(0,S.jsx)(L_,(0,d.Z)({text:J,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},ye))}):xe==="dateTimeRange"?(0,S.jsx)(Dm,{isLight:ye.light,children:(0,S.jsx)(pT,(0,d.Z)({text:J,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},ye))}):xe==="time"?(0,S.jsx)(Dm,{isLight:ye.light,children:(0,S.jsx)(t2,(0,d.Z)({text:J,format:"HH:mm:ss"},ye))}):xe==="timeRange"?(0,S.jsx)(Dm,{isLight:ye.light,children:(0,S.jsx)(yg,(0,d.Z)({text:J,format:"HH:mm:ss"},ye))}):xe==="fromNow"?(0,S.jsx)(IC,(0,d.Z)({text:J},ye)):xe==="index"?(0,S.jsx)($E,{children:J+1}):xe==="indexBorder"?(0,S.jsx)($E,{border:!0,children:J+1}):xe==="progress"?(0,S.jsx)(KE,(0,d.Z)((0,d.Z)({},ye),{},{text:J})):xe==="percent"?(0,S.jsx)(hm,(0,d.Z)({text:J},ye)):xe==="avatar"&&typeof J=="string"&&ye.mode==="read"?(0,S.jsx)(Ls.C,{src:J,size:22,shape:"circle"}):xe==="code"?(0,S.jsx)(Ia,(0,d.Z)({text:J},ye)):xe==="jsonCode"?(0,S.jsx)(Ia,(0,d.Z)({text:J,language:"json"},ye)):xe==="textarea"?(0,S.jsx)(OO,(0,d.Z)({text:J},ye)):xe==="digit"?(0,S.jsx)(ox,(0,d.Z)({text:J},ye)):xe==="digitRange"?(0,S.jsx)(IE,(0,d.Z)({text:J},ye)):xe==="second"?(0,S.jsx)(Ky,(0,d.Z)({text:J},ye)):xe==="select"||xe==="text"&&(ye.valueEnum||ye.request)?(0,S.jsx)(Dm,{isLight:ye.light,children:(0,S.jsx)(dc,(0,d.Z)({text:J},ye))}):xe==="checkbox"?(0,S.jsx)(Lr,(0,d.Z)({text:J},ye)):xe==="radio"?(0,S.jsx)(tk,(0,d.Z)({text:J},ye)):xe==="radioButton"?(0,S.jsx)(tk,(0,d.Z)({radioType:"button",text:J},ye)):xe==="rate"?(0,S.jsx)(XC,(0,d.Z)({text:J},ye)):xe==="slider"?(0,S.jsx)(h0,(0,d.Z)({text:J},ye)):xe==="switch"?(0,S.jsx)(PO,(0,d.Z)({text:J},ye)):xe==="option"?(0,S.jsx)(Fu,(0,d.Z)({text:J},ye)):xe==="password"?(0,S.jsx)(Td,(0,d.Z)({text:J},ye)):xe==="image"?(0,S.jsx)(cT,(0,d.Z)({text:J},ye)):xe==="cascader"?(0,S.jsx)(Jc,(0,d.Z)({text:J},ye)):xe==="treeSelect"?(0,S.jsx)(J4,(0,d.Z)({text:J},ye)):xe==="color"?(0,S.jsx)(Sn,(0,d.Z)({text:J},ye)):(0,S.jsx)(e2,(0,d.Z)({text:J},ye))},nS=function(J,xe){var ye,Ze,xt,Mt=J.text,Wt=J.valueType,en=Wt===void 0?"text":Wt,Tn=J.mode,On=Tn===void 0?"read":Tn,qn=J.onChange,nr=J.renderFormItem,hr=J.value,ur=J.readonly,Mr=(0,_.Z)(J,m0),wr=(0,F.YB)(),ia=(0,p.useContext)(F.ZP),ua=(hr!==void 0||qn||(Mr==null?void 0:Mr.fieldProps))&&(0,d.Z)((0,d.Z)({value:hr},(0,Yt.Z)(Mr==null?void 0:Mr.fieldProps)),{},{onChange:function(){for(var Fa,ai,Ca=arguments.length,ii=new Array(Ca),ci=0;ci<Ca;ci++)ii[ci]=arguments[ci];Mr==null||(Fa=Mr.fieldProps)===null||Fa===void 0||(ai=Fa.onChange)===null||ai===void 0||ai.call.apply(ai,[Fa].concat(ii)),qn==null||qn.apply(void 0,ii)}});return(0,S.jsx)(p.Fragment,{children:n2(On==="edit"?(ye=(Ze=ua==null?void 0:ua.value)!==null&&Ze!==void 0?Ze:Mt)!==null&&ye!==void 0?ye:"":(xt=Mt!=null?Mt:ua==null?void 0:ua.value)!==null&&xt!==void 0?xt:"",en||"text",(0,d.Z)((0,d.Z)({ref:xe},Mr),{},{mode:ur?"read":On,renderFormItem:nr?function(){var ga=nr.apply(void 0,arguments);return p.isValidElement(ga)?p.cloneElement(ga,(0,d.Z)((0,d.Z)({placeholder:Mr.placeholder||wr.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165")},ua),ga.props||{})):ga}:void 0,placeholder:Mr.placeholder||wr.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),fieldProps:Hr(ua)}),ia.valueTypeMap)})},LO=p.forwardRef(nS),FO=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter"];function r2(ae){var J={};return FO.forEach(function(xe){ae[xe]!==void 0&&(J[xe]=ae[xe])}),J}var jO=o(63349),BO=o(54323);function bk(ae){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xe=[];return p.Children.forEach(ae,function(ye){ye==null&&!J.keepEmpty||(Array.isArray(ye)?xe=xe.concat(bk(ye)):(0,BO.isFragment)(ye)&&ye.props?xe=xe.concat(bk(ye.props.children,J)):xe.push(ye))}),xe}var xk={},RT=[],Ek=function(J){RT.push(J)};function Sk(ae,J){if(!1)var xe}function Ck(ae,J){if(!1)var xe}function Nn(){xk={}}function OT(ae,J,xe){!J&&!xk[xe]&&(ae(!1,xe),xk[xe]=!0)}function a2(ae,J){OT(Sk,ae,J)}function wk(ae,J){OT(Ck,ae,J)}a2.preMessage=Ek,a2.resetWarned=Nn,a2.noteOnce=wk;var g0=a2;function i2(ae,J){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ye=new Set;function Ze(xt,Mt){var Wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,en=ye.has(xt);if(g0(!en,"Warning: There may be circular references"),en)return!1;if(xt===Mt)return!0;if(xe&&Wt>1)return!1;ye.add(xt);var Tn=Wt+1;if(Array.isArray(xt)){if(!Array.isArray(Mt)||xt.length!==Mt.length)return!1;for(var On=0;On<xt.length;On++)if(!Ze(xt[On],Mt[On],Tn))return!1;return!0}if(xt&&Mt&&(0,A.Z)(xt)==="object"&&(0,A.Z)(Mt)==="object"){var qn=Object.keys(xt);return qn.length!==Object.keys(Mt).length?!1:qn.every(function(nr){return Ze(xt[nr],Mt[nr],Tn)})}return!1}return Ze(ae,J)}var rb=i2,bl="RC_FORM_INTERNAL_HOOKS",$p=function(){g0(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ab=p.createContext({getFieldValue:$p,getFieldsValue:$p,getFieldError:$p,getFieldWarning:$p,getFieldsError:$p,isFieldsTouched:$p,isFieldTouched:$p,isFieldValidating:$p,isFieldsValidating:$p,resetFields:$p,setFields:$p,setFieldValue:$p,setFieldsValue:$p,validateFields:$p,submit:$p,getInternalHooks:function(){return $p(),{dispatch:$p,initEntityValue:$p,registerField:$p,useSubscribe:$p,setInitialValues:$p,destroyForm:$p,setCallbacks:$p,registerWatch:$p,getFields:$p,setValidateMessages:$p,setPreserve:$p,getInitialValue:$p}}}),Jy=ab,UO=p.createContext(null),o2=UO;function IT(ae){return ae==null?[]:Array.isArray(ae)?ae:[ae]}function eN(ae){return ae&&!!ae._init}var Tk=o(86566),Wg="'${name}' is not a valid ${type}",DT={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Wg,method:Wg,array:Wg,object:Wg,number:Wg,date:Wg,boolean:Wg,integer:Wg,float:Wg,regexp:Wg,email:Wg,url:Wg,hex:Wg},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};function t_(ae,J){for(var xe=ae,ye=0;ye<J.length;ye+=1){if(xe==null)return;xe=xe[J[ye]]}return xe}function s2(ae,J,xe,ye){if(!J.length)return xe;var Ze=(0,L.Z)(J),xt=Ze[0],Mt=Ze.slice(1),Wt;return!ae&&typeof xt=="number"?Wt=[]:Array.isArray(ae)?Wt=(0,h.Z)(ae):Wt=(0,d.Z)({},ae),ye&&xe===void 0&&Mt.length===1?delete Wt[xt][Mt[0]]:Wt[xt]=s2(Wt[xt],Mt,xe,ye),Wt}function __(ae,J,xe){var ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return J.length&&ye&&xe===void 0&&!t_(ae,J.slice(0,-1))?ae:s2(ae,J,xe,ye)}function NT(ae){return(0,A.Z)(ae)==="object"&&ae!==null&&Object.getPrototypeOf(ae)===Object.prototype}function l2(ae){return Array.isArray(ae)?[]:{}}var Cx=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function my(){for(var ae=arguments.length,J=new Array(ae),xe=0;xe<ae;xe++)J[xe]=arguments[xe];var ye=l2(J[0]);return J.forEach(function(Ze){function xt(Mt,Wt){var en=new Set(Wt),Tn=t_(Ze,Mt),On=Array.isArray(Tn);if(On||NT(Tn)){if(!en.has(Tn)){en.add(Tn);var qn=t_(ye,Mt);On?ye=__(ye,Mt,[]):(!qn||(0,A.Z)(qn)!=="object")&&(ye=__(ye,Mt,l2(Tn))),Cx(Tn).forEach(function(nr){xt([].concat((0,h.Z)(Mt),[nr]),en)})}}else ye=__(ye,Mt,Tn)}xt([])}),ye}var Tx=Tk.Z;function LT(ae,J){return ae.replace(/\$\{\w+\}/g,function(xe){var ye=xe.slice(2,-1);return J[ye]})}var FT="CODE_LOGIC_ERROR";function ib(ae,J,xe,ye,Ze){return jT.apply(this,arguments)}function jT(){return jT=(0,g.Z)((0,x.Z)().mark(function ae(J,xe,ye,Ze,xt){var Mt,Wt,en,Tn,On,qn,nr,hr,ur;return(0,x.Z)().wrap(function(wr){for(;;)switch(wr.prev=wr.next){case 0:return Mt=(0,d.Z)({},ye),delete Mt.ruleIndex,Tx.warning=function(){},Mt.validator&&(Wt=Mt.validator,Mt.validator=function(){try{return Wt.apply(void 0,arguments)}catch(ia){return console.error(ia),Promise.reject(FT)}}),en=null,Mt&&Mt.type==="array"&&Mt.defaultField&&(en=Mt.defaultField,delete Mt.defaultField),Tn=new Tx((0,v.Z)({},J,[Mt])),On=my(DT,Ze.validateMessages),Tn.messages(On),qn=[],wr.prev=10,wr.next=13,Promise.resolve(Tn.validate((0,v.Z)({},J,xe),(0,d.Z)({},Ze)));case 13:wr.next=18;break;case 15:wr.prev=15,wr.t0=wr.catch(10),wr.t0.errors&&(qn=wr.t0.errors.map(function(ia,ua){var ga=ia.message,Fa=ga===FT?On.default:ga;return p.isValidElement(Fa)?p.cloneElement(Fa,{key:"error_".concat(ua)}):Fa}));case 18:if(!(!qn.length&&en)){wr.next=23;break}return wr.next=21,Promise.all(xe.map(function(ia,ua){return ib("".concat(J,".").concat(ua),ia,en,Ze,xt)}));case 21:return nr=wr.sent,wr.abrupt("return",nr.reduce(function(ia,ua){return[].concat((0,h.Z)(ia),(0,h.Z)(ua))},[]));case 23:return hr=(0,d.Z)((0,d.Z)({},ye),{},{name:J,enum:(ye.enum||[]).join(", ")},xt),ur=qn.map(function(ia){return typeof ia=="string"?LT(ia,hr):ia}),wr.abrupt("return",ur);case 26:case"end":return wr.stop()}},ae,null,[[10,15]])})),jT.apply(this,arguments)}function Ak(ae,J,xe,ye,Ze,xt){var Mt=ae.join("."),Wt=xe.map(function(On,qn){var nr=On.validator,hr=(0,d.Z)((0,d.Z)({},On),{},{ruleIndex:qn});return nr&&(hr.validator=function(ur,Mr,wr){var ia=!1,ua=function(){for(var ai=arguments.length,Ca=new Array(ai),ii=0;ii<ai;ii++)Ca[ii]=arguments[ii];Promise.resolve().then(function(){g0(!ia,"Your validator function has already return a promise. `callback` will be ignored."),ia||wr.apply(void 0,Ca)})},ga=nr(ur,Mr,ua);ia=ga&&typeof ga.then=="function"&&typeof ga.catch=="function",g0(ia,"`callback` is deprecated. Please return a promise instead."),ia&&ga.then(function(){wr()}).catch(function(Fa){wr(Fa||" ")})}),hr}).sort(function(On,qn){var nr=On.warningOnly,hr=On.ruleIndex,ur=qn.warningOnly,Mr=qn.ruleIndex;return!!nr==!!ur?hr-Mr:nr?1:-1}),en;if(Ze===!0)en=new Promise(function(){var On=(0,g.Z)((0,x.Z)().mark(function qn(nr,hr){var ur,Mr,wr;return(0,x.Z)().wrap(function(ua){for(;;)switch(ua.prev=ua.next){case 0:ur=0;case 1:if(!(ur<Wt.length)){ua.next=12;break}return Mr=Wt[ur],ua.next=5,ib(Mt,J,Mr,ye,xt);case 5:if(wr=ua.sent,!wr.length){ua.next=9;break}return hr([{errors:wr,rule:Mr}]),ua.abrupt("return");case 9:ur+=1,ua.next=1;break;case 12:nr([]);case 13:case"end":return ua.stop()}},qn)}));return function(qn,nr){return On.apply(this,arguments)}}());else{var Tn=Wt.map(function(On){return ib(Mt,J,On,ye,xt).then(function(qn){return{errors:qn,rule:On}})});en=(Ze?VO(Tn):ZO(Tn)).then(function(On){return Promise.reject(On)})}return en.catch(function(On){return On}),en}function ZO(ae){return c2.apply(this,arguments)}function c2(){return c2=(0,g.Z)((0,x.Z)().mark(function ae(J){return(0,x.Z)().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",Promise.all(J).then(function(Ze){var xt,Mt=(xt=[]).concat.apply(xt,(0,h.Z)(Ze));return Mt}));case 1:case"end":return ye.stop()}},ae)})),c2.apply(this,arguments)}function VO(ae){return rS.apply(this,arguments)}function rS(){return rS=(0,g.Z)((0,x.Z)().mark(function ae(J){var xe;return(0,x.Z)().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return xe=0,Ze.abrupt("return",new Promise(function(xt){J.forEach(function(Mt){Mt.then(function(Wt){Wt.errors.length&&xt([Wt]),xe+=1,xe===J.length&&xt([])})})}));case 2:case"end":return Ze.stop()}},ae)})),rS.apply(this,arguments)}function gm(ae){return IT(ae)}function Mk(ae,J){var xe={};return J.forEach(function(ye){var Ze=t_(ae,ye);xe=__(xe,ye,Ze)}),xe}function u2(ae,J){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return ae&&ae.some(function(ye){return BT(J,ye,xe)})}function BT(ae,J){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!ae||!J||!xe&&ae.length!==J.length?!1:J.every(function(ye,Ze){return ae[Ze]===ye})}function r7(ae,J){if(ae===J)return!0;if(!ae&&J||ae&&!J||!ae||!J||(0,A.Z)(ae)!=="object"||(0,A.Z)(J)!=="object")return!1;var xe=Object.keys(ae),ye=Object.keys(J),Ze=new Set([].concat(xe,ye));return(0,h.Z)(Ze).every(function(xt){var Mt=ae[xt],Wt=J[xt];return typeof Mt=="function"&&typeof Wt=="function"?!0:Mt===Wt})}function tN(ae){var J=arguments.length<=1?void 0:arguments[1];return J&&J.target&&(0,A.Z)(J.target)==="object"&&ae in J.target?J.target[ae]:J}function Kp(ae,J,xe){var ye=ae.length;if(J<0||J>=ye||xe<0||xe>=ye)return ae;var Ze=ae[J],xt=J-xe;return xt>0?[].concat((0,h.Z)(ae.slice(0,xe)),[Ze],(0,h.Z)(ae.slice(xe,J)),(0,h.Z)(ae.slice(J+1,ye))):xt<0?[].concat((0,h.Z)(ae.slice(0,J)),(0,h.Z)(ae.slice(J+1,xe+1)),[Ze],(0,h.Z)(ae.slice(xe+1,ye))):ae}var gy=["name"],lm=[];function UT(ae,J,xe,ye,Ze,xt){return typeof ae=="function"?ae(J,xe,"source"in xt?{source:xt.source}:{}):ye!==Ze}var f2=function(ae){(0,Hn.Z)(xe,ae);var J=(0,ut.Z)(xe);function xe(ye){var Ze;if((0,lr.Z)(this,xe),Ze=J.call(this,ye),Ze.state={resetCount:0},Ze.cancelRegisterFunc=null,Ze.mounted=!1,Ze.touched=!1,Ze.dirty=!1,Ze.validatePromise=void 0,Ze.prevValidating=void 0,Ze.errors=lm,Ze.warnings=lm,Ze.cancelRegister=function(){var en=Ze.props,Tn=en.preserve,On=en.isListField,qn=en.name;Ze.cancelRegisterFunc&&Ze.cancelRegisterFunc(On,Tn,gm(qn)),Ze.cancelRegisterFunc=null},Ze.getNamePath=function(){var en=Ze.props,Tn=en.name,On=en.fieldContext,qn=On.prefixName,nr=qn===void 0?[]:qn;return Tn!==void 0?[].concat((0,h.Z)(nr),(0,h.Z)(Tn)):[]},Ze.getRules=function(){var en=Ze.props,Tn=en.rules,On=Tn===void 0?[]:Tn,qn=en.fieldContext;return On.map(function(nr){return typeof nr=="function"?nr(qn):nr})},Ze.refresh=function(){!Ze.mounted||Ze.setState(function(en){var Tn=en.resetCount;return{resetCount:Tn+1}})},Ze.metaCache=null,Ze.triggerMetaEvent=function(en){var Tn=Ze.props.onMetaChange;if(Tn){var On=(0,d.Z)((0,d.Z)({},Ze.getMeta()),{},{destroy:en});rb(Ze.metaCache,On)||Tn(On),Ze.metaCache=On}else Ze.metaCache=null},Ze.onStoreChange=function(en,Tn,On){var qn=Ze.props,nr=qn.shouldUpdate,hr=qn.dependencies,ur=hr===void 0?[]:hr,Mr=qn.onReset,wr=On.store,ia=Ze.getNamePath(),ua=Ze.getValue(en),ga=Ze.getValue(wr),Fa=Tn&&u2(Tn,ia);switch(On.type==="valueUpdate"&&On.source==="external"&&ua!==ga&&(Ze.touched=!0,Ze.dirty=!0,Ze.validatePromise=null,Ze.errors=lm,Ze.warnings=lm,Ze.triggerMetaEvent()),On.type){case"reset":if(!Tn||Fa){Ze.touched=!1,Ze.dirty=!1,Ze.validatePromise=void 0,Ze.errors=lm,Ze.warnings=lm,Ze.triggerMetaEvent(),Mr==null||Mr(),Ze.refresh();return}break;case"remove":{if(nr){Ze.reRender();return}break}case"setField":{if(Fa){var ai=On.data;"touched"in ai&&(Ze.touched=ai.touched),"validating"in ai&&!("originRCField"in ai)&&(Ze.validatePromise=ai.validating?Promise.resolve([]):null),"errors"in ai&&(Ze.errors=ai.errors||lm),"warnings"in ai&&(Ze.warnings=ai.warnings||lm),Ze.dirty=!0,Ze.triggerMetaEvent(),Ze.reRender();return}if(nr&&!ia.length&&UT(nr,en,wr,ua,ga,On)){Ze.reRender();return}break}case"dependenciesUpdate":{var Ca=ur.map(gm);if(Ca.some(function(ii){return u2(On.relatedFields,ii)})){Ze.reRender();return}break}default:if(Fa||(!ur.length||ia.length||nr)&&UT(nr,en,wr,ua,ga,On)){Ze.reRender();return}break}nr===!0&&Ze.reRender()},Ze.validateRules=function(en){var Tn=Ze.getNamePath(),On=Ze.getValue(),qn=en||{},nr=qn.triggerName,hr=qn.validateOnly,ur=hr===void 0?!1:hr,Mr=Promise.resolve().then(function(){if(!Ze.mounted)return[];var wr=Ze.props,ia=wr.validateFirst,ua=ia===void 0?!1:ia,ga=wr.messageVariables,Fa=Ze.getRules();nr&&(Fa=Fa.filter(function(Ca){return Ca}).filter(function(Ca){var ii=Ca.validateTrigger;if(!ii)return!0;var ci=IT(ii);return ci.includes(nr)}));var ai=Ak(Tn,On,Fa,en,ua,ga);return ai.catch(function(Ca){return Ca}).then(function(){var Ca=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lm;if(Ze.validatePromise===Mr){var ii;Ze.validatePromise=null;var ci=[],$a=[];(ii=Ca.forEach)===null||ii===void 0||ii.call(Ca,function(di){var Wa=di.rule.warningOnly,Ya=di.errors,li=Ya===void 0?lm:Ya;Wa?$a.push.apply($a,(0,h.Z)(li)):ci.push.apply(ci,(0,h.Z)(li))}),Ze.errors=ci,Ze.warnings=$a,Ze.triggerMetaEvent(),Ze.reRender()}}),ai});return ur||(Ze.validatePromise=Mr,Ze.dirty=!0,Ze.errors=lm,Ze.warnings=lm,Ze.triggerMetaEvent(),Ze.reRender()),Mr},Ze.isFieldValidating=function(){return!!Ze.validatePromise},Ze.isFieldTouched=function(){return Ze.touched},Ze.isFieldDirty=function(){if(Ze.dirty||Ze.props.initialValue!==void 0)return!0;var en=Ze.props.fieldContext,Tn=en.getInternalHooks(bl),On=Tn.getInitialValue;return On(Ze.getNamePath())!==void 0},Ze.getErrors=function(){return Ze.errors},Ze.getWarnings=function(){return Ze.warnings},Ze.isListField=function(){return Ze.props.isListField},Ze.isList=function(){return Ze.props.isList},Ze.isPreserve=function(){return Ze.props.preserve},Ze.getMeta=function(){Ze.prevValidating=Ze.isFieldValidating();var en={touched:Ze.isFieldTouched(),validating:Ze.prevValidating,errors:Ze.errors,warnings:Ze.warnings,name:Ze.getNamePath(),validated:Ze.validatePromise===null};return en},Ze.getOnlyChild=function(en){if(typeof en=="function"){var Tn=Ze.getMeta();return(0,d.Z)((0,d.Z)({},Ze.getOnlyChild(en(Ze.getControlled(),Tn,Ze.props.fieldContext))),{},{isFunction:!0})}var On=bk(en);return On.length!==1||!p.isValidElement(On[0])?{child:On,isFunction:!1}:{child:On[0],isFunction:!1}},Ze.getValue=function(en){var Tn=Ze.props.fieldContext.getFieldsValue,On=Ze.getNamePath();return t_(en||Tn(!0),On)},Ze.getControlled=function(){var en=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Tn=Ze.props,On=Tn.trigger,qn=Tn.validateTrigger,nr=Tn.getValueFromEvent,hr=Tn.normalize,ur=Tn.valuePropName,Mr=Tn.getValueProps,wr=Tn.fieldContext,ia=qn!==void 0?qn:wr.validateTrigger,ua=Ze.getNamePath(),ga=wr.getInternalHooks,Fa=wr.getFieldsValue,ai=ga(bl),Ca=ai.dispatch,ii=Ze.getValue(),ci=Mr||function(Ya){return(0,v.Z)({},ur,Ya)},$a=en[On],di=(0,d.Z)((0,d.Z)({},en),ci(ii));di[On]=function(){Ze.touched=!0,Ze.dirty=!0,Ze.triggerMetaEvent();for(var Ya,li=arguments.length,ti=new Array(li),Ba=0;Ba<li;Ba++)ti[Ba]=arguments[Ba];nr?Ya=nr.apply(void 0,ti):Ya=tN.apply(void 0,[ur].concat(ti)),hr&&(Ya=hr(Ya,ii,Fa(!0))),Ca({type:"updateValue",namePath:ua,value:Ya}),$a&&$a.apply(void 0,ti)};var Wa=IT(ia||[]);return Wa.forEach(function(Ya){var li=di[Ya];di[Ya]=function(){li&&li.apply(void 0,arguments);var ti=Ze.props.rules;ti&&ti.length&&Ca({type:"validateField",namePath:ua,triggerName:Ya})}}),di},ye.fieldContext){var xt=ye.fieldContext.getInternalHooks,Mt=xt(bl),Wt=Mt.initEntityValue;Wt((0,jO.Z)(Ze))}return Ze}return(0,nt.Z)(xe,[{key:"componentDidMount",value:function(){var Ze=this.props,xt=Ze.shouldUpdate,Mt=Ze.fieldContext;if(this.mounted=!0,Mt){var Wt=Mt.getInternalHooks,en=Wt(bl),Tn=en.registerField;this.cancelRegisterFunc=Tn(this)}xt===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){!this.mounted||this.forceUpdate()}},{key:"render",value:function(){var Ze=this.state.resetCount,xt=this.props.children,Mt=this.getOnlyChild(xt),Wt=Mt.child,en=Mt.isFunction,Tn;return en?Tn=Wt:p.isValidElement(Wt)?Tn=p.cloneElement(Wt,this.getControlled(Wt.props)):(g0(!Wt,"`children` of Field is not validate ReactElement."),Tn=Wt),p.createElement(p.Fragment,{key:Ze},Tn)}}]),xe}(p.Component);f2.contextType=Jy,f2.defaultProps={trigger:"onChange",valuePropName:"value"};function zO(ae){var J=ae.name,xe=(0,_.Z)(ae,gy),ye=p.useContext(Jy),Ze=p.useContext(o2),xt=J!==void 0?gm(J):void 0,Mt="keep";return xe.isListField||(Mt="_".concat((xt||[]).join("_"))),p.createElement(f2,(0,Da.Z)({key:Mt,name:xt,isListField:!!Ze},xe,{fieldContext:ye}))}var ZT=zO;function U_(ae){var J=ae.name,xe=ae.initialValue,ye=ae.children,Ze=ae.rules,xt=ae.validateTrigger,Mt=ae.isListField,Wt=p.useContext(Jy),en=p.useContext(o2),Tn=p.useRef({keys:[],id:0}),On=Tn.current,qn=p.useMemo(function(){var Mr=gm(Wt.prefixName)||[];return[].concat((0,h.Z)(Mr),(0,h.Z)(gm(J)))},[Wt.prefixName,J]),nr=p.useMemo(function(){return(0,d.Z)((0,d.Z)({},Wt),{},{prefixName:qn})},[Wt,qn]),hr=p.useMemo(function(){return{getKey:function(wr){var ia=qn.length,ua=wr[ia];return[On.keys[ua],wr.slice(ia+1)]}}},[qn]);if(typeof ye!="function")return g0(!1,"Form.List only accepts function as children."),null;var ur=function(wr,ia,ua){var ga=ua.source;return ga==="internal"?!1:wr!==ia};return p.createElement(o2.Provider,{value:hr},p.createElement(Jy.Provider,{value:nr},p.createElement(ZT,{name:[],shouldUpdate:ur,rules:Ze,validateTrigger:xt,initialValue:xe,isList:!0,isListField:Mt!=null?Mt:!!en},function(Mr,wr){var ia=Mr.value,ua=ia===void 0?[]:ia,ga=Mr.onChange,Fa=Wt.getFieldValue,ai=function(){var $a=Fa(qn||[]);return $a||[]},Ca={add:function($a,di){var Wa=ai();di>=0&&di<=Wa.length?(On.keys=[].concat((0,h.Z)(On.keys.slice(0,di)),[On.id],(0,h.Z)(On.keys.slice(di))),ga([].concat((0,h.Z)(Wa.slice(0,di)),[$a],(0,h.Z)(Wa.slice(di))))):(On.keys=[].concat((0,h.Z)(On.keys),[On.id]),ga([].concat((0,h.Z)(Wa),[$a]))),On.id+=1},remove:function($a){var di=ai(),Wa=new Set(Array.isArray($a)?$a:[$a]);Wa.size<=0||(On.keys=On.keys.filter(function(Ya,li){return!Wa.has(li)}),ga(di.filter(function(Ya,li){return!Wa.has(li)})))},move:function($a,di){if($a!==di){var Wa=ai();$a<0||$a>=Wa.length||di<0||di>=Wa.length||(On.keys=Kp(On.keys,$a,di),ga(Kp(Wa,$a,di)))}}},ii=ua||[];return Array.isArray(ii)||(ii=[]),ye(ii.map(function(ci,$a){var di=On.keys[$a];return di===void 0&&(On.keys[$a]=On.id,di=On.keys[$a],On.id+=1),{name:$a,key:di,isListField:!0}}),Ca,wr)})))}var WO=U_;function nN(ae){var J=!1,xe=ae.length,ye=[];return ae.length?new Promise(function(Ze,xt){ae.forEach(function(Mt,Wt){Mt.catch(function(en){return J=!0,en}).then(function(en){xe-=1,ye[Wt]=en,!(xe>0)&&(J&&xt(ye),Ze(ye))})})}):Promise.resolve([])}var HO="__@field_split__";function VT(ae){return ae.map(function(J){return"".concat((0,A.Z)(J),":").concat(J)}).join(HO)}var ob=function(){function ae(){(0,lr.Z)(this,ae),this.kvs=new Map}return(0,nt.Z)(ae,[{key:"set",value:function(xe,ye){this.kvs.set(VT(xe),ye)}},{key:"get",value:function(xe){return this.kvs.get(VT(xe))}},{key:"update",value:function(xe,ye){var Ze=this.get(xe),xt=ye(Ze);xt?this.set(xe,xt):this.delete(xe)}},{key:"delete",value:function(xe){this.kvs.delete(VT(xe))}},{key:"map",value:function(xe){return(0,h.Z)(this.kvs.entries()).map(function(ye){var Ze=(0,y.Z)(ye,2),xt=Ze[0],Mt=Ze[1],Wt=xt.split(HO);return xe({key:Wt.map(function(en){var Tn=en.match(/^([^:]*):(.*)$/),On=(0,y.Z)(Tn,3),qn=On[1],nr=On[2];return qn==="number"?Number(nr):nr}),value:Mt})})}},{key:"toJSON",value:function(){var xe={};return this.map(function(ye){var Ze=ye.key,xt=ye.value;return xe[Ze.join(".")]=xt,null}),xe}}]),ae}(),Ax=ob,kk=["name"],Pk=(0,nt.Z)(function ae(J){var xe=this;(0,lr.Z)(this,ae),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:xe.getFieldValue,getFieldsValue:xe.getFieldsValue,getFieldError:xe.getFieldError,getFieldWarning:xe.getFieldWarning,getFieldsError:xe.getFieldsError,isFieldsTouched:xe.isFieldsTouched,isFieldTouched:xe.isFieldTouched,isFieldValidating:xe.isFieldValidating,isFieldsValidating:xe.isFieldsValidating,resetFields:xe.resetFields,setFields:xe.setFields,setFieldValue:xe.setFieldValue,setFieldsValue:xe.setFieldsValue,validateFields:xe.validateFields,submit:xe.submit,_init:!0,getInternalHooks:xe.getInternalHooks}},this.getInternalHooks=function(ye){return ye===bl?(xe.formHooked=!0,{dispatch:xe.dispatch,initEntityValue:xe.initEntityValue,registerField:xe.registerField,useSubscribe:xe.useSubscribe,setInitialValues:xe.setInitialValues,destroyForm:xe.destroyForm,setCallbacks:xe.setCallbacks,setValidateMessages:xe.setValidateMessages,getFields:xe.getFields,setPreserve:xe.setPreserve,getInitialValue:xe.getInitialValue,registerWatch:xe.registerWatch}):(g0(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(ye){xe.subscribable=ye},this.prevWithoutPreserves=null,this.setInitialValues=function(ye,Ze){if(xe.initialValues=ye||{},Ze){var xt,Mt=my(ye,xe.store);(xt=xe.prevWithoutPreserves)===null||xt===void 0||xt.map(function(Wt){var en=Wt.key;Mt=__(Mt,en,t_(ye,en))}),xe.prevWithoutPreserves=null,xe.updateStore(Mt)}},this.destroyForm=function(){var ye=new Ax;xe.getFieldEntities(!0).forEach(function(Ze){xe.isMergedPreserve(Ze.isPreserve())||ye.set(Ze.getNamePath(),!0)}),xe.prevWithoutPreserves=ye},this.getInitialValue=function(ye){var Ze=t_(xe.initialValues,ye);return ye.length?my(Ze):Ze},this.setCallbacks=function(ye){xe.callbacks=ye},this.setValidateMessages=function(ye){xe.validateMessages=ye},this.setPreserve=function(ye){xe.preserve=ye},this.watchList=[],this.registerWatch=function(ye){return xe.watchList.push(ye),function(){xe.watchList=xe.watchList.filter(function(Ze){return Ze!==ye})}},this.notifyWatch=function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(xe.watchList.length){var Ze=xe.getFieldsValue(),xt=xe.getFieldsValue(!0);xe.watchList.forEach(function(Mt){Mt(Ze,xt,ye)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(ye){xe.store=ye},this.getFieldEntities=function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return ye?xe.fieldEntities.filter(function(Ze){return Ze.getNamePath().length}):xe.fieldEntities},this.getFieldsMap=function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ze=new Ax;return xe.getFieldEntities(ye).forEach(function(xt){var Mt=xt.getNamePath();Ze.set(Mt,xt)}),Ze},this.getFieldEntitiesForNamePathList=function(ye){if(!ye)return xe.getFieldEntities(!0);var Ze=xe.getFieldsMap(!0);return ye.map(function(xt){var Mt=gm(xt);return Ze.get(Mt)||{INVALIDATE_NAME_PATH:gm(xt)}})},this.getFieldsValue=function(ye,Ze){xe.warningUnhooked();var xt,Mt,Wt;if(ye===!0||Array.isArray(ye)?(xt=ye,Mt=Ze):ye&&(0,A.Z)(ye)==="object"&&(Wt=ye.strict,Mt=ye.filter),xt===!0&&!Mt)return xe.store;var en=xe.getFieldEntitiesForNamePathList(Array.isArray(xt)?xt:null),Tn=[];return en.forEach(function(On){var qn,nr="INVALIDATE_NAME_PATH"in On?On.INVALIDATE_NAME_PATH:On.getNamePath();if(Wt){var hr;if((hr=On.isList)===null||hr===void 0?void 0:hr.call(On))return}else if(!xt&&((qn=On.isListField)===null||qn===void 0?void 0:qn.call(On)))return;if(!Mt)Tn.push(nr);else{var ur="getMeta"in On?On.getMeta():null;Mt(ur)&&Tn.push(nr)}}),Mk(xe.store,Tn.map(gm))},this.getFieldValue=function(ye){xe.warningUnhooked();var Ze=gm(ye);return t_(xe.store,Ze)},this.getFieldsError=function(ye){xe.warningUnhooked();var Ze=xe.getFieldEntitiesForNamePathList(ye);return Ze.map(function(xt,Mt){return xt&&!("INVALIDATE_NAME_PATH"in xt)?{name:xt.getNamePath(),errors:xt.getErrors(),warnings:xt.getWarnings()}:{name:gm(ye[Mt]),errors:[],warnings:[]}})},this.getFieldError=function(ye){xe.warningUnhooked();var Ze=gm(ye),xt=xe.getFieldsError([Ze])[0];return xt.errors},this.getFieldWarning=function(ye){xe.warningUnhooked();var Ze=gm(ye),xt=xe.getFieldsError([Ze])[0];return xt.warnings},this.isFieldsTouched=function(){xe.warningUnhooked();for(var ye=arguments.length,Ze=new Array(ye),xt=0;xt<ye;xt++)Ze[xt]=arguments[xt];var Mt=Ze[0],Wt=Ze[1],en,Tn=!1;Ze.length===0?en=null:Ze.length===1?Array.isArray(Mt)?(en=Mt.map(gm),Tn=!1):(en=null,Tn=Mt):(en=Mt.map(gm),Tn=Wt);var On=xe.getFieldEntities(!0),qn=function(wr){return wr.isFieldTouched()};if(!en)return Tn?On.every(qn):On.some(qn);var nr=new Ax;en.forEach(function(Mr){nr.set(Mr,[])}),On.forEach(function(Mr){var wr=Mr.getNamePath();en.forEach(function(ia){ia.every(function(ua,ga){return wr[ga]===ua})&&nr.update(ia,function(ua){return[].concat((0,h.Z)(ua),[Mr])})})});var hr=function(wr){return wr.some(qn)},ur=nr.map(function(Mr){var wr=Mr.value;return wr});return Tn?ur.every(hr):ur.some(hr)},this.isFieldTouched=function(ye){return xe.warningUnhooked(),xe.isFieldsTouched([ye])},this.isFieldsValidating=function(ye){xe.warningUnhooked();var Ze=xe.getFieldEntities();if(!ye)return Ze.some(function(Mt){return Mt.isFieldValidating()});var xt=ye.map(gm);return Ze.some(function(Mt){var Wt=Mt.getNamePath();return u2(xt,Wt)&&Mt.isFieldValidating()})},this.isFieldValidating=function(ye){return xe.warningUnhooked(),xe.isFieldsValidating([ye])},this.resetWithFieldInitialValue=function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ze=new Ax,xt=xe.getFieldEntities(!0);xt.forEach(function(en){var Tn=en.props.initialValue,On=en.getNamePath();if(Tn!==void 0){var qn=Ze.get(On)||new Set;qn.add({entity:en,value:Tn}),Ze.set(On,qn)}});var Mt=function(Tn){Tn.forEach(function(On){var qn=On.props.initialValue;if(qn!==void 0){var nr=On.getNamePath(),hr=xe.getInitialValue(nr);if(hr!==void 0)g0(!1,"Form already set 'initialValues' with path '".concat(nr.join("."),"'. Field can not overwrite it."));else{var ur=Ze.get(nr);if(ur&&ur.size>1)g0(!1,"Multiple Field with path '".concat(nr.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(ur){var Mr=xe.getFieldValue(nr);(!ye.skipExist||Mr===void 0)&&xe.updateStore(__(xe.store,nr,(0,h.Z)(ur)[0].value))}}}})},Wt;ye.entities?Wt=ye.entities:ye.namePathList?(Wt=[],ye.namePathList.forEach(function(en){var Tn=Ze.get(en);if(Tn){var On;(On=Wt).push.apply(On,(0,h.Z)((0,h.Z)(Tn).map(function(qn){return qn.entity})))}})):Wt=xt,Mt(Wt)},this.resetFields=function(ye){xe.warningUnhooked();var Ze=xe.store;if(!ye){xe.updateStore(my(xe.initialValues)),xe.resetWithFieldInitialValue(),xe.notifyObservers(Ze,null,{type:"reset"}),xe.notifyWatch();return}var xt=ye.map(gm);xt.forEach(function(Mt){var Wt=xe.getInitialValue(Mt);xe.updateStore(__(xe.store,Mt,Wt))}),xe.resetWithFieldInitialValue({namePathList:xt}),xe.notifyObservers(Ze,xt,{type:"reset"}),xe.notifyWatch(xt)},this.setFields=function(ye){xe.warningUnhooked();var Ze=xe.store,xt=[];ye.forEach(function(Mt){var Wt=Mt.name,en=(0,_.Z)(Mt,kk),Tn=gm(Wt);xt.push(Tn),"value"in en&&xe.updateStore(__(xe.store,Tn,en.value)),xe.notifyObservers(Ze,[Tn],{type:"setField",data:Mt})}),xe.notifyWatch(xt)},this.getFields=function(){var ye=xe.getFieldEntities(!0),Ze=ye.map(function(xt){var Mt=xt.getNamePath(),Wt=xt.getMeta(),en=(0,d.Z)((0,d.Z)({},Wt),{},{name:Mt,value:xe.getFieldValue(Mt)});return Object.defineProperty(en,"originRCField",{value:!0}),en});return Ze},this.initEntityValue=function(ye){var Ze=ye.props.initialValue;if(Ze!==void 0){var xt=ye.getNamePath(),Mt=t_(xe.store,xt);Mt===void 0&&xe.updateStore(__(xe.store,xt,Ze))}},this.isMergedPreserve=function(ye){var Ze=ye!==void 0?ye:xe.preserve;return Ze!=null?Ze:!0},this.registerField=function(ye){xe.fieldEntities.push(ye);var Ze=ye.getNamePath();if(xe.notifyWatch([Ze]),ye.props.initialValue!==void 0){var xt=xe.store;xe.resetWithFieldInitialValue({entities:[ye],skipExist:!0}),xe.notifyObservers(xt,[ye.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(Mt,Wt){var en=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(xe.fieldEntities=xe.fieldEntities.filter(function(qn){return qn!==ye}),!xe.isMergedPreserve(Wt)&&(!Mt||en.length>1)){var Tn=Mt?void 0:xe.getInitialValue(Ze);if(Ze.length&&xe.getFieldValue(Ze)!==Tn&&xe.fieldEntities.every(function(qn){return!BT(qn.getNamePath(),Ze)})){var On=xe.store;xe.updateStore(__(On,Ze,Tn,!0)),xe.notifyObservers(On,[Ze],{type:"remove"}),xe.triggerDependenciesUpdate(On,Ze)}}xe.notifyWatch([Ze])}},this.dispatch=function(ye){switch(ye.type){case"updateValue":{var Ze=ye.namePath,xt=ye.value;xe.updateValue(Ze,xt);break}case"validateField":{var Mt=ye.namePath,Wt=ye.triggerName;xe.validateFields([Mt],{triggerName:Wt});break}default:}},this.notifyObservers=function(ye,Ze,xt){if(xe.subscribable){var Mt=(0,d.Z)((0,d.Z)({},xt),{},{store:xe.getFieldsValue(!0)});xe.getFieldEntities().forEach(function(Wt){var en=Wt.onStoreChange;en(ye,Ze,Mt)})}else xe.forceRootUpdate()},this.triggerDependenciesUpdate=function(ye,Ze){var xt=xe.getDependencyChildrenFields(Ze);return xt.length&&xe.validateFields(xt),xe.notifyObservers(ye,xt,{type:"dependenciesUpdate",relatedFields:[Ze].concat((0,h.Z)(xt))}),xt},this.updateValue=function(ye,Ze){var xt=gm(ye),Mt=xe.store;xe.updateStore(__(xe.store,xt,Ze)),xe.notifyObservers(Mt,[xt],{type:"valueUpdate",source:"internal"}),xe.notifyWatch([xt]);var Wt=xe.triggerDependenciesUpdate(Mt,xt),en=xe.callbacks.onValuesChange;if(en){var Tn=Mk(xe.store,[xt]);en(Tn,xe.getFieldsValue())}xe.triggerOnFieldsChange([xt].concat((0,h.Z)(Wt)))},this.setFieldsValue=function(ye){xe.warningUnhooked();var Ze=xe.store;if(ye){var xt=my(xe.store,ye);xe.updateStore(xt)}xe.notifyObservers(Ze,null,{type:"valueUpdate",source:"external"}),xe.notifyWatch()},this.setFieldValue=function(ye,Ze){xe.setFields([{name:ye,value:Ze}])},this.getDependencyChildrenFields=function(ye){var Ze=new Set,xt=[],Mt=new Ax;xe.getFieldEntities().forEach(function(en){var Tn=en.props.dependencies;(Tn||[]).forEach(function(On){var qn=gm(On);Mt.update(qn,function(){var nr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return nr.add(en),nr})})});var Wt=function en(Tn){var On=Mt.get(Tn)||new Set;On.forEach(function(qn){if(!Ze.has(qn)){Ze.add(qn);var nr=qn.getNamePath();qn.isFieldDirty()&&nr.length&&(xt.push(nr),en(nr))}})};return Wt(ye),xt},this.triggerOnFieldsChange=function(ye,Ze){var xt=xe.callbacks.onFieldsChange;if(xt){var Mt=xe.getFields();if(Ze){var Wt=new Ax;Ze.forEach(function(Tn){var On=Tn.name,qn=Tn.errors;Wt.set(On,qn)}),Mt.forEach(function(Tn){Tn.errors=Wt.get(Tn.name)||Tn.errors})}var en=Mt.filter(function(Tn){var On=Tn.name;return u2(ye,On)});en.length&&xt(en,Mt)}},this.validateFields=function(ye,Ze){var xt;xe.warningUnhooked();var Mt,Wt;Array.isArray(ye)||typeof ye=="string"||typeof Ze=="string"?(Mt=ye,Wt=Ze):Wt=ye;var en=!!Mt,Tn=en?Mt.map(gm):[],On=[],qn=String(Date.now()),nr=new Set,hr=(xt=Wt)===null||xt===void 0?void 0:xt.recursive;xe.getFieldEntities(!0).forEach(function(ia){if(en||Tn.push(ia.getNamePath()),!(!ia.props.rules||!ia.props.rules.length)){var ua=ia.getNamePath();if(nr.add(ua.join(qn)),!en||u2(Tn,ua,hr)){var ga=ia.validateRules((0,d.Z)({validateMessages:(0,d.Z)((0,d.Z)({},DT),xe.validateMessages)},Wt));On.push(ga.then(function(){return{name:ua,errors:[],warnings:[]}}).catch(function(Fa){var ai,Ca=[],ii=[];return(ai=Fa.forEach)===null||ai===void 0||ai.call(Fa,function(ci){var $a=ci.rule.warningOnly,di=ci.errors;$a?ii.push.apply(ii,(0,h.Z)(di)):Ca.push.apply(Ca,(0,h.Z)(di))}),Ca.length?Promise.reject({name:ua,errors:Ca,warnings:ii}):{name:ua,errors:Ca,warnings:ii}}))}}});var ur=nN(On);xe.lastValidatePromise=ur,ur.catch(function(ia){return ia}).then(function(ia){var ua=ia.map(function(ga){var Fa=ga.name;return Fa});xe.notifyObservers(xe.store,ua,{type:"validateFinish"}),xe.triggerOnFieldsChange(ua,ia)});var Mr=ur.then(function(){return xe.lastValidatePromise===ur?Promise.resolve(xe.getFieldsValue(Tn)):Promise.reject([])}).catch(function(ia){var ua=ia.filter(function(ga){return ga&&ga.errors.length});return Promise.reject({values:xe.getFieldsValue(Tn),errorFields:ua,outOfDate:xe.lastValidatePromise!==ur})});Mr.catch(function(ia){return ia});var wr=Tn.filter(function(ia){return nr.has(ia.join(qn))});return xe.triggerOnFieldsChange(wr),Mr},this.submit=function(){xe.warningUnhooked(),xe.validateFields().then(function(ye){var Ze=xe.callbacks.onFinish;if(Ze)try{Ze(ye)}catch(xt){console.error(xt)}}).catch(function(ye){var Ze=xe.callbacks.onFinishFailed;Ze&&Ze(ye)})},this.forceRootUpdate=J});function Rk(ae){var J=p.useRef(),xe=p.useState({}),ye=(0,y.Z)(xe,2),Ze=ye[1];if(!J.current)if(ae)J.current=ae;else{var xt=function(){Ze({})},Mt=new Pk(xt);J.current=Mt.getForm()}return[J.current]}var Ok=Rk,zT=p.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Hg=function(J){var xe=J.validateMessages,ye=J.onFormChange,Ze=J.onFormFinish,xt=J.children,Mt=p.useContext(zT),Wt=p.useRef({});return p.createElement(zT.Provider,{value:(0,d.Z)((0,d.Z)({},Mt),{},{validateMessages:(0,d.Z)((0,d.Z)({},Mt.validateMessages),xe),triggerFormChange:function(Tn,On){ye&&ye(Tn,{changedFields:On,forms:Wt.current}),Mt.triggerFormChange(Tn,On)},triggerFormFinish:function(Tn,On){Ze&&Ze(Tn,{values:On,forms:Wt.current}),Mt.triggerFormFinish(Tn,On)},registerForm:function(Tn,On){Tn&&(Wt.current=(0,d.Z)((0,d.Z)({},Wt.current),{},(0,v.Z)({},Tn,On))),Mt.registerForm(Tn,On)},unregisterForm:function(Tn){var On=(0,d.Z)({},Wt.current);delete On[Tn],Wt.current=On,Mt.unregisterForm(Tn)}})},xt)},d2=zT,p2=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Ik=function(J,xe){var ye=J.name,Ze=J.initialValues,xt=J.fields,Mt=J.form,Wt=J.preserve,en=J.children,Tn=J.component,On=Tn===void 0?"form":Tn,qn=J.validateMessages,nr=J.validateTrigger,hr=nr===void 0?"onChange":nr,ur=J.onValuesChange,Mr=J.onFieldsChange,wr=J.onFinish,ia=J.onFinishFailed,ua=(0,_.Z)(J,p2),ga=p.useContext(d2),Fa=Ok(Mt),ai=(0,y.Z)(Fa,1),Ca=ai[0],ii=Ca.getInternalHooks(bl),ci=ii.useSubscribe,$a=ii.setInitialValues,di=ii.setCallbacks,Wa=ii.setValidateMessages,Ya=ii.setPreserve,li=ii.destroyForm;p.useImperativeHandle(xe,function(){return Ca}),p.useEffect(function(){return ga.registerForm(ye,Ca),function(){ga.unregisterForm(ye)}},[ga,Ca,ye]),Wa((0,d.Z)((0,d.Z)({},ga.validateMessages),qn)),di({onValuesChange:ur,onFieldsChange:function(Io){if(ga.triggerFormChange(ye,Io),Mr){for(var Vo=arguments.length,bs=new Array(Vo>1?Vo-1:0),ts=1;ts<Vo;ts++)bs[ts-1]=arguments[ts];Mr.apply(void 0,[Io].concat(bs))}},onFinish:function(Io){ga.triggerFormFinish(ye,Io),wr&&wr(Io)},onFinishFailed:ia}),Ya(Wt);var ti=p.useRef(null);$a(Ze,!ti.current),ti.current||(ti.current=!0),p.useEffect(function(){return li},[]);var Ba,Ni=typeof en=="function";if(Ni){var ji=Ca.getFieldsValue(!0);Ba=en(ji,Ca)}else Ba=en;ci(!Ni);var go=p.useRef();p.useEffect(function(){r7(go.current||[],xt||[])||Ca.setFields(xt||[]),go.current=xt},[xt,Ca]);var Wi=p.useMemo(function(){return(0,d.Z)((0,d.Z)({},Ca),{},{validateTrigger:hr})},[Ca,hr]),uo=p.createElement(o2.Provider,{value:null},p.createElement(Jy.Provider,{value:Wi},Ba));return On===!1?uo:p.createElement(On,(0,Da.Z)({},ua,{onSubmit:function(Io){Io.preventDefault(),Io.stopPropagation(),Ca.submit()},onReset:function(Io){var Vo;Io.preventDefault(),Ca.resetFields(),(Vo=ua.onReset)===null||Vo===void 0||Vo.call(ua,Io)}}),uo)},Dk=Ik;function WT(ae){try{return JSON.stringify(ae)}catch(J){return Math.random()}}var HT=function(){};function GT(){for(var ae=arguments.length,J=new Array(ae),xe=0;xe<ae;xe++)J[xe]=arguments[xe];var ye=J[0],Ze=ye===void 0?[]:ye,xt=J[1],Mt=xt===void 0?{}:xt,Wt=eN(Mt)?{form:Mt}:Mt,en=Wt.form,Tn=(0,p.useState)(),On=(0,y.Z)(Tn,2),qn=On[0],nr=On[1],hr=(0,p.useMemo)(function(){return WT(qn)},[qn]),ur=(0,p.useRef)(hr);ur.current=hr;var Mr=(0,p.useContext)(Jy),wr=en||Mr,ia=wr&&wr._init,ua=gm(Ze),ga=(0,p.useRef)(ua);return ga.current=ua,HT(ua),(0,p.useEffect)(function(){if(!!ia){var Fa=wr.getFieldsValue,ai=wr.getInternalHooks,Ca=ai(bl),ii=Ca.registerWatch,ci=ii(function(di,Wa){var Ya=t_(Wt.preserve?Wa:di,ga.current),li=WT(Ya);ur.current!==li&&(ur.current=li,nr(Ya))}),$a=t_(Wt.preserve?Fa(!0):Fa(),ga.current);return nr($a),ci}},[ia]),qn}var Mx=GT,Qy=p.forwardRef(Dk),_y=Qy;_y.FormProvider=Hg,_y.Field=ZT,_y.List=WO,_y.useForm=Ok,_y.useWatch=Mx;var aS=null,Nk=o(77181),iS=o(43107),$T=o(13592),KT=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],kx=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],GO=Symbol("ProFormComponent"),oS={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},v2=["switch","radioButton","radio","rate"];function YT(ae,J){ae.displayName="ProFormComponent";var xe=function(xt){var Mt=(0,d.Z)((0,d.Z)({},xt==null?void 0:xt.filedConfig),J)||{},Wt=Mt.valueType,en=Mt.customLightMode,Tn=Mt.lightFilterLabelFormatter,On=Mt.valuePropName,qn=On===void 0?"value":On,nr=Mt.ignoreWidth,hr=Mt.defaultProps,ur=(0,_.Z)(Mt,KT),Mr=(0,d.Z)((0,d.Z)({},hr),xt),wr=Mr.label,ia=Mr.tooltip,ua=Mr.placeholder,ga=Mr.width,Fa=Mr.bordered,ai=Mr.messageVariables,Ca=Mr.ignoreFormItem,ii=Mr.transform,ci=Mr.convertValue,$a=Mr.readonly,di=Mr.allowClear,Wa=Mr.colSize,Ya=Mr.getFormItemProps,li=Mr.getFieldProps,ti=Mr.filedConfig,Ba=Mr.cacheForSwr,Ni=Mr.proFieldProps,ji=(0,_.Z)(Mr,kx),go=Wt||ji.valueType,Wi=(0,p.useMemo)(function(){return nr||v2.includes(go)},[nr,go]),uo=(0,p.useState)(),wo=(0,y.Z)(uo,2),Io=wo[1],Vo=(0,p.useState)(),bs=(0,y.Z)(Vo,2),ts=bs[0],Ws=bs[1],Al=p.useContext(iS.Z),Ql=(0,p.useMemo)(function(){return{formItemProps:Ya==null?void 0:Ya(),fieldProps:li==null?void 0:li()}},[li,Ya,ji.dependenciesValues,ts]),zs=(0,p.useMemo)(function(){var Au=(0,d.Z)((0,d.Z)((0,d.Z)((0,d.Z)({},Ca?(0,Yt.Z)({value:ji.value}):{}),{},{placeholder:ua,disabled:xt.disabled},Al.fieldProps),Ql.fieldProps),ji.fieldProps);return Au.style=(0,Yt.Z)(Au==null?void 0:Au.style),Au},[Ca,ji.value,ji.fieldProps,ua,xt.disabled,Al.fieldProps,Ql.fieldProps]),_c=r2(ji),hc=(0,p.useMemo)(function(){return(0,d.Z)((0,d.Z)((0,d.Z)((0,d.Z)({},Al.formItemProps),_c),Ql.formItemProps),ji.formItemProps)},[Ql.formItemProps,Al.formItemProps,ji.formItemProps,_c]),Hs=(0,p.useMemo)(function(){return(0,d.Z)((0,d.Z)({messageVariables:ai},ur),hc)},[ur,hc,ai]);(0,wn.ET)(!ji.defaultValue,"\u8BF7\u4E0D\u8981\u5728 Form \u4E2D\u4F7F\u7528 defaultXXX\u3002\u5982\u679C\u9700\u8981\u9ED8\u8BA4\u503C\u8BF7\u4F7F\u7528 initialValues \u548C initialValue\u3002");var Ul=(0,p.useContext)(Jy),As=Ul.prefixName,Ks=(0,p.useMemo)(function(){var Au,qd=Hs==null?void 0:Hs.name;Array.isArray(qd)&&(qd=qd.join("_")),Array.isArray(As)&&qd&&(qd="".concat(As.join("."),".").concat(qd));var Ad=qd&&"form-".concat((Au=Al.formKey)!==null&&Au!==void 0?Au:"","-field-").concat(qd);return Ad},[de(Hs==null?void 0:Hs.name),As,Al.formKey]),Cc=(0,dt.Z)(ji),qc=(0,p.useCallback)(function(){var Au;Ya||li?Ws([]):ji.renderFormItem&&Io([]);for(var qd=arguments.length,Ad=new Array(qd),ad=0;ad<qd;ad++)Ad[ad]=arguments[ad];zs==null||(Au=zs.onChange)===null||Au===void 0||Au.call.apply(Au,[zs].concat(Ad))},[li,Ya,zs,ji.renderFormItem]),Of=(0,p.useMemo)(function(){var Au=(0,d.Z)({width:ga&&!oS[ga]?ga:Al.grid?"100%":void 0},zs==null?void 0:zs.style);return Wi&&Reflect.deleteProperty(Au,"width"),(0,Yt.Z)(Au)},[de(zs==null?void 0:zs.style),Al.grid,Wi,ga]),_f=(0,p.useMemo)(function(){var Au=ga&&oS[ga];return ze()(zs==null?void 0:zs.className,(0,v.Z)({"pro-field":Au},"pro-field-".concat(ga),Au&&!Wi))||void 0},[ga,zs==null?void 0:zs.className,Wi]),sd=(0,p.useMemo)(function(){return(0,Yt.Z)((0,d.Z)({mode:ji==null?void 0:ji.mode,readonly:$a,params:ji.params,proFieldKey:Ks,cacheForSwr:Ba},Ni))},[ji==null?void 0:ji.mode,ji.params,$a,Ks,Ba,Ni]),ud=(0,p.useMemo)(function(){return(0,d.Z)((0,d.Z)({onChange:qc,allowClear:di},zs),{},{style:Of,className:_f})},[di,_f,qc,zs,Of]),Su=(0,p.useMemo)(function(){return(0,S.jsx)(ae,(0,d.Z)((0,d.Z)({},ji),{},{fieldProps:ud,proFieldProps:sd,ref:xt==null?void 0:xt.fieldRef}),xt.proFormFieldKey||xt.name)},[sd,ud,(0,ke.Z)(Cc,ji,["onChange","onBlur","onFocus","record"])?void 0:{}]),Uu=(0,p.useMemo)(function(){var Au,qd,Ad,ad;return(0,S.jsx)(Nk.Z,(0,d.Z)((0,d.Z)({label:wr&&(Ni==null?void 0:Ni.light)!==!0?wr:void 0,tooltip:(Ni==null?void 0:Ni.light)!==!0&&ia,valuePropName:qn},Hs),{},{ignoreFormItem:Ca,transform:ii,dataFormat:zs==null?void 0:zs.format,valueType:go,messageVariables:(0,d.Z)({label:wr||""},Hs==null?void 0:Hs.messageVariables),convertValue:ci,lightProps:(0,Yt.Z)((0,d.Z)((0,d.Z)((0,d.Z)({},zs),{},{valueType:go,bordered:Fa,allowClear:(Au=Su==null||(qd=Su.props)===null||qd===void 0?void 0:qd.allowClear)!==null&&Au!==void 0?Au:di,light:Ni==null?void 0:Ni.light,label:wr,customLightMode:en,labelFormatter:Tn,valuePropName:qn,footerRender:Su==null||(Ad=Su.props)===null||Ad===void 0?void 0:Ad.footerRender},ji.lightProps),Hs.lightProps)),children:Su}),xt.proFormFieldKey||((ad=Hs.name)===null||ad===void 0?void 0:ad.toString()))},[wr,Ni==null?void 0:Ni.light,ia,qn,xt.proFormFieldKey,Hs,Ca,ii,zs,go,ci,Fa,Su,di,en,Tn,ji.lightProps]),mp=(0,$T.zx)(ji),wv=mp.ColWrapper;return(0,S.jsx)(wv,{children:Uu})},ye=function(xt){var Mt=xt.dependencies;return Mt?(0,S.jsx)(Rs.Z,{name:Mt,children:function(en){return(0,S.jsx)(xe,(0,d.Z)({dependenciesValues:en,dependencies:Mt},xt))}}):(0,S.jsx)(xe,(0,d.Z)({dependencies:Mt},xt))};return ye}var XT=o(47260),em=["fieldProps","children","labelCol","label","autoFocus","isDefaultDom","render","proFieldProps","renderFormItem","valueType","initialValue","onChange","valueEnum","params","name","dependenciesValues","cacheForSwr","valuePropName"],JT=function(J){var xe=J.fieldProps,ye=J.children,Ze=J.labelCol,xt=J.label,Mt=J.autoFocus,Wt=J.isDefaultDom,en=J.render,Tn=J.proFieldProps,On=J.renderFormItem,qn=J.valueType,nr=J.initialValue,hr=J.onChange,ur=J.valueEnum,Mr=J.params,wr=J.name,ia=J.dependenciesValues,ua=J.cacheForSwr,ga=ua===void 0?!1:ua,Fa=J.valuePropName,ai=Fa===void 0?"value":Fa,Ca=(0,_.Z)(J,em),ii=(0,p.useContext)(XT.A),ci=(0,p.useMemo)(function(){return ia&&Ca.request?(0,d.Z)((0,d.Z)({},Mr),ia||{}):Mr},[ia,Mr,Ca.request]),$a=(0,p.useMemo)(function(){if(ye)return p.isValidElement(ye)?p.cloneElement(ye,(0,d.Z)((0,d.Z)({},Ca),{},{onChange:function(){for(var Wa=arguments.length,Ya=new Array(Wa),li=0;li<Wa;li++)Ya[li]=arguments[li];if(xe==null?void 0:xe.onChange){var ti;xe==null||(ti=xe.onChange)===null||ti===void 0||ti.call.apply(ti,[xe].concat(Ya));return}hr==null||hr.apply(void 0,Ya)}},ye.props)):(0,S.jsx)(S.Fragment,{children:ye})},[ye,xe==null?void 0:xe.onChange,hr,Ca]);return $a||(0,S.jsx)(LO,(0,d.Z)((0,d.Z)((0,d.Z)({text:xe==null?void 0:xe[ai],render:en,renderFormItem:On,valueType:qn||"text",cacheForSwr:ga,fieldProps:(0,d.Z)((0,d.Z)({autoFocus:Mt},xe),{},{onChange:function(){if(xe==null?void 0:xe.onChange){for(var Wa,Ya=arguments.length,li=new Array(Ya),ti=0;ti<Ya;ti++)li[ti]=arguments[ti];xe==null||(Wa=xe.onChange)===null||Wa===void 0||Wa.call.apply(Wa,[xe].concat(li));return}}}),valueEnum:(0,zt.h)(ur)},Tn),Ca),{},{mode:(Tn==null?void 0:Tn.mode)||ii.mode||"edit",params:ci}))},Lk=YT((0,p.memo)(JT,function(ae,J){return(0,ke.Z)(J,ae,["onChange","onBlur"])})),yy=Lk,Fk=function(J,xe){var ye=xe.action,Ze=xe.formRef,xt=xe.type,Mt=xe.originItem,Wt=(0,d.Z)((0,d.Z)({},(0,bt.Z)(J,["dataIndex","width","render","renderFormItem","renderText","title"])),{},{name:J.dataIndex,width:J.width,render:(J==null?void 0:J.render)?function(qn,nr,hr){var ur,Mr,wr;return J==null||(ur=J.render)===null||ur===void 0?void 0:ur.call(J,qn,nr,hr,ye==null?void 0:ye.current,(0,d.Z)((0,d.Z)({type:xt},J),{},{formItemProps:(Mr=J.getFormItemProps)===null||Mr===void 0?void 0:Mr.call(J),fieldProps:(wr=J.getFieldProps)===null||wr===void 0?void 0:wr.call(J)}))}:void 0}),en=function(){return(0,S.jsx)(yy,(0,d.Z)((0,d.Z)({},Wt),{},{ignoreFormItem:!0}))},Tn=(J==null?void 0:J.renderFormItem)?function(qn,nr){var hr,ur,Mr,wr=(0,Yt.Z)((0,d.Z)((0,d.Z)({},nr),{},{onChange:void 0}));return J==null||(hr=J.renderFormItem)===null||hr===void 0?void 0:hr.call(J,(0,d.Z)((0,d.Z)({type:xt},J),{},{formItemProps:(ur=J.getFormItemProps)===null||ur===void 0?void 0:ur.call(J),fieldProps:(Mr=J.getFieldProps)===null||Mr===void 0?void 0:Mr.call(J),originProps:Mt}),(0,d.Z)((0,d.Z)({},wr),{},{defaultRender:en,type:xt}),Ze.current)}:void 0;if(J==null?void 0:J.renderFormItem){var On=Tn==null?void 0:Tn(null,{});if(!On||J.ignoreFormItem)return On}return(0,p.createElement)(yy,(0,d.Z)((0,d.Z)({},Wt),{},{key:"".concat(J.key,"-").concat(J.index),renderFormItem:Tn}))},jk=o(29059),QT=function(J,xe){var ye=xe.genItems;if(J.valueType==="formList"&&J.dataIndex){var Ze,xt,Mt,Wt,en,Tn,On,qn,nr,hr,ur;return!J.columns||!Array.isArray(J.columns)?null:(0,S.jsx)(jk.u,(0,d.Z)((0,d.Z)({name:J.dataIndex,label:J.label,initialValue:J.initialValue,colProps:J.colProps,rowProps:J.rowProps},(Ze=J.getFieldProps)===null||Ze===void 0?void 0:Ze.call(J)),{},{isValidateList:(xt=((en=J.getFormItemProps)===null||en===void 0?void 0:en.call(J))||((Tn=J.getFieldProps)===null||Tn===void 0?void 0:Tn.call(J)))===null||xt===void 0||(Mt=xt.rules)===null||Mt===void 0||(Wt=Mt[0])===null||Wt===void 0?void 0:Wt.required,emptyListMessage:(On=((hr=J.getFormItemProps)===null||hr===void 0?void 0:hr.call(J))||((ur=J.getFieldProps)===null||ur===void 0?void 0:ur.call(J)))===null||On===void 0||(qn=On.rules)===null||qn===void 0||(nr=qn[0])===null||nr===void 0?void 0:nr.message,children:ye(J.columns)}),J.key)}return!0},$O=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue"],sb=["children","space","valuePropName"],KO={space:qt.Z,group:Oi.Z.Group};function Bk(ae){var J=arguments.length<=1?void 0:arguments[1];return J&&J.target&&ae in J.target?J.target[ae]:J}var Uk=function(J){var xe=J.children,ye=J.value,Ze=ye===void 0?[]:ye,xt=J.valuePropName,Mt=J.onChange,Wt=J.fieldProps,en=J.space,Tn=J.type,On=Tn===void 0?"space":Tn,qn=J.transform,nr=J.convertValue,hr=(0,_.Z)(J,$O),ur=(0,pe.J)(function(Ca,ii){var ci,$a=(0,h.Z)(Ze);$a[ii]=Bk(xt||"value",Ca),Mt==null||Mt($a),Wt==null||(ci=Wt.onChange)===null||ci===void 0||ci.call(Wt,$a)}),Mr=-1,wr=(0,Li.Z)(xe).map(function(Ca){if(p.isValidElement(Ca)){var ii,ci,$a;Mr+=1;var di=Mr,Wa=(Ca==null||(ii=Ca.type)===null||ii===void 0?void 0:ii.displayName)==="ProFormComponent"||(Ca==null||(ci=Ca.props)===null||ci===void 0?void 0:ci.readonly),Ya=Wa?(0,d.Z)((0,d.Z)({key:di,ignoreFormItem:!0},Ca.props||{}),{},{fieldProps:(0,d.Z)((0,d.Z)({},Ca==null||($a=Ca.props)===null||$a===void 0?void 0:$a.fieldProps),{},{onChange:function(){ur(arguments.length<=0?void 0:arguments[0],di)}}),value:Ze==null?void 0:Ze[di],onChange:void 0}):(0,d.Z)((0,d.Z)({key:di},Ca.props||{}),{},{value:Ze==null?void 0:Ze[di],onChange:function(ti){var Ba,Ni;ur(ti,di),(Ba=(Ni=Ca.props).onChange)===null||Ba===void 0||Ba.call(Ni,ti)}});return p.cloneElement(Ca,Ya)}return Ca}),ia=KO[On],ua=(0,$T.zx)(hr),ga=ua.RowWrapper,Fa=(0,p.useMemo)(function(){return(0,d.Z)({},On==="group"?{compact:!0}:{})},[On]),ai=(0,p.useCallback)(function(Ca){var ii=Ca.children;return(0,S.jsx)(ia,(0,d.Z)((0,d.Z)((0,d.Z)({},Fa),en),{},{align:"start",children:ii}))},[ia,en,Fa]);return(0,S.jsx)(ga,{Wrapper:ai,children:wr})},Z_=p.forwardRef(function(ae,J){var xe=ae.children,ye=ae.space,Ze=ae.valuePropName,xt=(0,_.Z)(ae,sb);return(0,p.useImperativeHandle)(J,function(){return{}}),(0,S.jsx)(Uk,(0,d.Z)((0,d.Z)((0,d.Z)({space:ye,valuePropName:Ze},xt.fieldProps),{},{onChange:void 0},xt),{},{children:xe}))}),Zk=YT(Z_),Vk=Zk,h2=function(J,xe){var ye=xe.genItems;if(J.valueType==="formSet"&&J.dataIndex){var Ze,xt;return!J.columns||!Array.isArray(J.columns)?null:(0,p.createElement)(Vk,(0,d.Z)((0,d.Z)({},(Ze=J.getFormItemProps)===null||Ze===void 0?void 0:Ze.call(J)),{},{key:J.key,initialValue:J.initialValue,name:J.dataIndex,label:J.label,colProps:J.colProps,rowProps:J.rowProps},(xt=J.getFieldProps)===null||xt===void 0?void 0:xt.call(J)),ye(J.columns))}return!0},zk=Qa.A.Group,YO=function(J,xe){var ye=xe.genItems;if(J.valueType==="group"){var Ze;return!J.columns||!Array.isArray(J.columns)?null:(0,S.jsx)(zk,(0,d.Z)((0,d.Z)({label:J.label,colProps:J.colProps,rowProps:J.rowProps},(Ze=J.getFieldProps)===null||Ze===void 0?void 0:Ze.call(J)),{},{children:ye(J.columns)}),J.key)}return!0},_0=function(J){return J.valueType&&typeof J.valueType=="string"&&["index","indexBorder","option"].includes(J==null?void 0:J.valueType)?null:!0},m2=[_0,YO,QT,h2,Wl,xl],n_=function(J,xe){for(var ye=0;ye<m2.length;ye++){var Ze=m2[ye],xt=Ze(J,xe);if(xt!==!0)return xt}return Fk(J,xe)},sS=["columns","layoutType","type","action","shouldUpdate"],lS={DrawerForm:Ur,QueryFilter:Tr,LightFilter:Pn,StepForm:ol.StepForm,StepsForm:mc,ModalForm:Yn,Embed:hl};function qT(ae){var J=ae.columns,xe=ae.layoutType,ye=xe===void 0?"Form":xe,Ze=ae.type,xt=Ze===void 0?"form":Ze,Mt=ae.action,Wt=ae.shouldUpdate,en=Wt===void 0?!0:Wt,Tn=(0,_.Z)(ae,sS),On=lS[ye]||Qa.A,qn=$.Z.useForm(),nr=(0,y.Z)(qn,1),hr=nr[0],ur=$.Z.useFormInstance(),Mr=(0,p.useState)([]),wr=(0,y.Z)(Mr,2),ia=wr[1],ua=(0,p.useState)([]),ga=(0,y.Z)(ua,2),Fa=ga[0],ai=ga[1],Ca=(0,p.useMemo)(function(){return(0,bt.Z)(Tn,["formRef"])},[Tn]),ii=(0,p.useRef)(ae.form||ur||hr),ci=(0,p.useRef)(),$a=Zt(ae);(0,p.useImperativeHandle)(Tn.formRef,function(){return ii.current});var di=(0,p.useCallback)(function(ti){return ti.filter(function(Ba){return!(Ba.hideInForm&&xt==="form")}).sort(function(Ba,Ni){return Ni.order||Ba.order?(Ni.order||0)-(Ba.order||0):(Ni.index||0)-(Ba.index||0)}).map(function(Ba,Ni){var ji,go=(0,zt.h)(Ba.title,Ba,"form",(0,S.jsx)(ln.Z,{label:Ba.title,tooltip:Ba.tooltip||Ba.tip})),Wi=(0,Yt.Z)({title:go,label:go,name:Ba.name,valueType:(0,zt.h)(Ba.valueType,{}),key:Ba.key,columns:Ba.columns,valueEnum:Ba.valueEnum,dataIndex:Ba.key||Ba.dataIndex,initialValue:Ba.initialValue,width:Ba.width,index:Ba.index,readonly:Ba.readonly,colSize:Ba.colSize,colProps:Ba.colProps,rowProps:Ba.rowProps,className:Ba.className,tooltip:Ba.tooltip||Ba.tip,dependencies:Ba.dependencies,proFieldProps:Ba.proFieldProps,ignoreFormItem:Ba.ignoreFormItem,getFieldProps:Ba.fieldProps?function(){return(0,zt.h)(Ba.fieldProps,ii.current,Ba)}:void 0,getFormItemProps:Ba.formItemProps?function(){return(0,zt.h)(Ba.formItemProps,ii.current,Ba)}:void 0,render:Ba.render,renderFormItem:Ba.renderFormItem,renderText:Ba.renderText,request:Ba.request,params:Ba.params,transform:Ba.transform,convertValue:Ba.convertValue});return Wi.key=Wi.key||((ji=Wi.dataIndex)===null||ji===void 0?void 0:ji.toString())||Ni,n_(Wi,{action:Mt,type:xt,originItem:Ba,formRef:ii,genItems:di})}).filter(function(Ba){return Boolean(Ba)})},[Mt,ii,xt]),Wa=(0,p.useCallback)(function(ti,Ba){var Ni=$a.current.onValuesChange;(en===!0||typeof en=="function"&&en(Ba,ci.current))&&ai([]),ci.current=Ba,Ni==null||Ni(ti,Ba)},[$a,en]),Ya=(0,p.useMemo)(function(){if(!!ii.current&&!(J.length&&Array.isArray(J[0])))return di(J)},[J,di,Fa]),li=(0,p.useMemo)(function(){return ye==="StepsForm"?{forceUpdate:ia,columns:J}:{}},[J,ye]);return(0,S.jsx)(On,(0,d.Z)((0,d.Z)((0,d.Z)({},li),Ca),{},{form:ae.form||hr,formRef:ii,onValuesChange:Wa,children:Ya}))}var XO=qT,JO=o(85378);function eA(ae){var J=ae.replace(/[A-Z]/g,function(xe){return"-".concat(xe.toLowerCase())});return J.startsWith("-")&&(J=J.slice(1)),J}var Wk=function(J,xe){return!J&&xe!==!1?(xe==null?void 0:xe.filterType)==="light"?"LightFilter":"QueryFilter":"Form"},tA=function(J,xe,ye){return!J&&ye==="LightFilter"?(0,bt.Z)((0,d.Z)({},xe),["labelWidth","defaultCollapsed","filterType"]):J?{}:(0,bt.Z)((0,d.Z)({labelWidth:xe?xe==null?void 0:xe.labelWidth:void 0,defaultCollapsed:!0},xe),["filterType"])},nA=function(J,xe){return J?(0,bt.Z)(xe,["ignoreRules"]):(0,d.Z)({ignoreRules:!0},xe)},oh=function(J){var xe,ye=J.onSubmit,Ze=J.formRef,xt=J.dateFormatter,Mt=xt===void 0?"string":xt,Wt=J.type,en=J.columns,Tn=J.action,On=J.ghost,qn=J.manualRequest,nr=J.onReset,hr=J.submitButtonLoading,ur=J.search,Mr=J.form,wr=J.bordered,ia=Wt==="form",ua=function(){var di=(0,g.Z)((0,x.Z)().mark(function Wa(Ya,li){return(0,x.Z)().wrap(function(Ba){for(;;)switch(Ba.prev=Ba.next){case 0:ye&&ye(Ya,li);case 1:case"end":return Ba.stop()}},Wa)}));return function(Ya,li){return di.apply(this,arguments)}}(),ga=(0,p.useContext)(w.ZP.ConfigContext),Fa=ga.getPrefixCls,ai=(0,p.useMemo)(function(){return en.filter(function(di){return!(di===b.Z.EXPAND_COLUMN||di===b.Z.SELECTION_COLUMN||(di.hideInSearch||di.search===!1)&&Wt!=="form"||Wt==="form"&&di.hideInForm)}).map(function(di){var Wa,Ya=!di.valueType||["textarea","jsonCode","code"].includes(di==null?void 0:di.valueType)&&Wt==="table"?"text":di==null?void 0:di.valueType,li=(di==null?void 0:di.key)||(di==null||(Wa=di.dataIndex)===null||Wa===void 0?void 0:Wa.toString());return(0,d.Z)((0,d.Z)((0,d.Z)({},di),{},{width:void 0},di.search?di.search:{}),{},{valueType:Ya,proFieldProps:(0,d.Z)((0,d.Z)({},di.proFieldProps),{},{proFieldKey:li?"table-field-".concat(li):void 0})})})},[en,Wt]),Ca=Fa("pro-table-search"),ii=Fa("pro-table-form"),ci=(0,p.useMemo)(function(){return Wk(ia,ur)},[ur,ia]),$a=(0,p.useMemo)(function(){return{submitter:{submitButtonProps:{loading:hr}}}},[hr]);return(0,S.jsx)("div",{className:ze()((xe={},(0,v.Z)(xe,Fa("pro-card"),!0),(0,v.Z)(xe,"".concat(Fa("pro-card"),"-border"),!!wr),(0,v.Z)(xe,"".concat(Fa("pro-card"),"-bordered"),!!wr),(0,v.Z)(xe,"".concat(Fa("pro-card"),"-ghost"),!!On),(0,v.Z)(xe,Ca,!0),(0,v.Z)(xe,ii,ia),(0,v.Z)(xe,Fa("pro-table-search-".concat(eA(ci))),!0),(0,v.Z)(xe,"".concat(Ca,"-ghost"),On),(0,v.Z)(xe,ur==null?void 0:ur.className,ur!==!1&&(ur==null?void 0:ur.className)),xe)),children:(0,S.jsx)(XO,(0,d.Z)((0,d.Z)((0,d.Z)((0,d.Z)({layoutType:ci,columns:ai,type:Wt},$a),tA(ia,ur,ci)),nA(ia,Mr||{})),{},{formRef:Ze,action:Tn,dateFormatter:Mt,onInit:function(Wa){if(Wt!=="form"){var Ya,li,ti,Ba=(Ya=Tn.current)===null||Ya===void 0?void 0:Ya.pageInfo,Ni=Wa.current,ji=Ni===void 0?Ba==null?void 0:Ba.current:Ni,go=Wa.pageSize,Wi=go===void 0?Ba==null?void 0:Ba.pageSize:go;if((li=Tn.current)===null||li===void 0||(ti=li.setPageInfo)===null||ti===void 0||ti.call(li,(0,d.Z)((0,d.Z)({},Ba),{},{current:parseInt(ji,10),pageSize:parseInt(Wi,10)})),qn)return;ua(Wa,!0)}},onReset:function(Wa){nr==null||nr(Wa)},onFinish:function(Wa){ua(Wa,!1)},initialValues:Mr==null?void 0:Mr.initialValues}))})},rA=oh,Eh=function(ae){(0,Hn.Z)(xe,ae);var J=(0,ut.Z)(xe);function xe(){var ye;(0,lr.Z)(this,xe);for(var Ze=arguments.length,xt=new Array(Ze),Mt=0;Mt<Ze;Mt++)xt[Mt]=arguments[Mt];return ye=J.call.apply(J,[this].concat(xt)),ye.onSubmit=function(Wt,en){var Tn=ye.props,On=Tn.pagination,qn=Tn.beforeSearchSubmit,nr=qn===void 0?function(ai){return ai}:qn,hr=Tn.action,ur=Tn.onSubmit,Mr=Tn.onFormSearchSubmit,wr=On?(0,Yt.Z)({current:On.current,pageSize:On.pageSize}):{},ia=(0,d.Z)((0,d.Z)({},Wt),{},{_timestamp:Date.now()},wr),ua=(0,bt.Z)(nr(ia),Object.keys(wr));if(Mr(ua),!en){var ga,Fa;(ga=hr.current)===null||ga===void 0||(Fa=ga.setPageInfo)===null||Fa===void 0||Fa.call(ga,{current:1})}ur&&!en&&(ur==null||ur(Wt))},ye.onReset=function(Wt){var en,Tn,On=ye.props,qn=On.pagination,nr=On.beforeSearchSubmit,hr=nr===void 0?function(ga){return ga}:nr,ur=On.action,Mr=On.onFormSearchSubmit,wr=On.onReset,ia=qn?(0,Yt.Z)({current:qn.current,pageSize:qn.pageSize}):{},ua=(0,bt.Z)(hr((0,d.Z)((0,d.Z)({},Wt),ia)),Object.keys(ia));Mr(ua),(en=ur.current)===null||en===void 0||(Tn=en.setPageInfo)===null||Tn===void 0||Tn.call(en,{current:1}),wr==null||wr()},ye.isEqual=function(Wt){var en=ye.props,Tn=en.columns,On=en.loading,qn=en.formRef,nr=en.type,hr=en.cardBordered,ur=en.dateFormatter,Mr=en.form,wr=en.search,ia=en.manualRequest,ua={columns:Tn,loading:On,formRef:qn,type:nr,cardBordered:hr,dateFormatter:ur,form:Mr,search:wr,manualRequest:ia};return!(0,ke.Z)(ua,{columns:Wt.columns,formRef:Wt.formRef,loading:Wt.loading,type:Wt.type,cardBordered:Wt.cardBordered,dateFormatter:Wt.dateFormatter,form:Wt.form,search:Wt.search,manualRequest:Wt.manualRequest})},ye.shouldComponentUpdate=function(Wt){return ye.isEqual(Wt)},ye.render=function(){var Wt=ye.props,en=Wt.columns,Tn=Wt.loading,On=Wt.formRef,qn=Wt.type,nr=Wt.action,hr=Wt.cardBordered,ur=Wt.dateFormatter,Mr=Wt.form,wr=Wt.search,ia=Wt.pagination,ua=Wt.ghost,ga=Wt.manualRequest,Fa=ia?(0,Yt.Z)({current:ia.current,pageSize:ia.pageSize}):{};return(0,S.jsx)(rA,{submitButtonLoading:Tn,columns:en,type:qn,ghost:ua,formRef:On,onSubmit:ye.onSubmit,manualRequest:ga,onReset:ye.onReset,dateFormatter:ur,search:wr,form:(0,d.Z)((0,d.Z)({autoFocusFirstInput:!1},Mr),{},{extraUrlParams:(0,d.Z)((0,d.Z)({},Fa),Mr==null?void 0:Mr.extraUrlParams)}),action:nr,bordered:$e("search",hr)})},ye}return(0,nt.Z)(xe)}(p.Component),lb=Eh,Px={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},Hk=Px,aA=function(J,xe){return p.createElement(ba.Z,(0,d.Z)((0,d.Z)({},J),{},{ref:xe,icon:Hk}))};aA.displayName="ReloadOutlined";var iA=p.forwardRef(aA),Gk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},g2=Gk,cS=function(J,xe){return p.createElement(ba.Z,(0,d.Z)((0,d.Z)({},J),{},{ref:xe,icon:g2}))};cS.displayName="SettingOutlined";var uS=p.forwardRef(cS),cb=o(57490),_2={},oA=[],$k=function(J){oA.push(J)};function sA(ae,J){if(!1)var xe}function QO(ae,J){if(!1)var xe}function Kk(){_2={}}function Yk(ae,J,xe){!J&&!_2[xe]&&(ae(!1,xe),_2[xe]=!0)}function fS(ae,J){Yk(sA,ae,J)}function y2(ae,J){Yk(QO,ae,J)}fS.preMessage=$k,fS.resetWarned=Kk,fS.noteOnce=y2;var b2=null,lA=o(32321);function z0(){var ae,J,xe,ye,Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},xt=(0,p.useRef)(),Mt=(0,p.useRef)(null),Wt=(0,p.useRef)(),en=(0,p.useRef)(),Tn=(0,p.useState)(""),On=(0,y.Z)(Tn,2),qn=On[0],nr=On[1],hr=(0,p.useRef)([]),ur=(0,cb.Z)(function(){return Ze.size||Ze.defaultSize||"middle"},{value:Ze.size,onChange:Ze.onSizeChange}),Mr=(0,y.Z)(ur,2),wr=Mr[0],ia=Mr[1],ua=(0,p.useMemo)(function(){var $a,di={};return($a=Ze.columns)===null||$a===void 0||$a.forEach(function(Wa,Ya){var li=Wa.key,ti=Wa.dataIndex,Ba=Wa.fixed,Ni=Wa.disable,ji=lt(li!=null?li:ti,Ya);ji&&(di[ji]={show:!0,fixed:Ba,disable:Ni})}),di},[Ze.columns]),ga=(0,cb.Z)(function(){var $a,di,Wa=Ze.columnsState||{},Ya=Wa.persistenceType,li=Wa.persistenceKey;if(li&&Ya&&typeof window!="undefined"){var ti=window[Ya];try{var Ba=ti==null?void 0:ti.getItem(li);if(Ba)return JSON.parse(Ba)}catch(Ni){console.warn(Ni)}}return Ze.columnsStateMap||(($a=Ze.columnsState)===null||$a===void 0?void 0:$a.value)||((di=Ze.columnsState)===null||di===void 0?void 0:di.defaultValue)||ua},{value:((ae=Ze.columnsState)===null||ae===void 0?void 0:ae.value)||Ze.columnsStateMap,onChange:((J=Ze.columnsState)===null||J===void 0?void 0:J.onChange)||Ze.onColumnsStateChange}),Fa=(0,y.Z)(ga,2),ai=Fa[0],Ca=Fa[1];(0,p.useLayoutEffect)(function(){var $a=Ze.columnsState||{},di=$a.persistenceType,Wa=$a.persistenceKey;if(Wa&&di&&typeof window!="undefined"){var Ya=window[di];try{var li=Ya==null?void 0:Ya.getItem(Wa);Ca(li?JSON.parse(li):ua)}catch(ti){console.warn(ti)}}},[Ze.columnsState,ua,Ca]),y2(!Ze.columnsStateMap,"columnsStateMap\u5DF2\u7ECF\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 columnsState.value \u66FF\u6362"),y2(!Ze.columnsStateMap,"columnsStateMap has been discarded, please use columnSstate.value replacement");var ii=(0,p.useCallback)(function(){var $a=Ze.columnsState||{},di=$a.persistenceType,Wa=$a.persistenceKey;if(!(!Wa||!di||typeof window=="undefined")){var Ya=window[di];try{Ya==null||Ya.removeItem(Wa)}catch(li){console.error(li)}}},[Ze.columnsState]);(0,p.useEffect)(function(){var $a,di;if(!(!(($a=Ze.columnsState)===null||$a===void 0?void 0:$a.persistenceKey)||!((di=Ze.columnsState)===null||di===void 0?void 0:di.persistenceType))&&typeof window!="undefined"){var Wa=Ze.columnsState,Ya=Wa.persistenceType,li=Wa.persistenceKey,ti=window[Ya];try{ti==null||ti.setItem(li,JSON.stringify(ai))}catch(Ba){console.error(Ba)}}},[(xe=Ze.columnsState)===null||xe===void 0?void 0:xe.persistenceKey,ai,(ye=Ze.columnsState)===null||ye===void 0?void 0:ye.persistenceType]);var ci={action:xt.current,setAction:function(di){xt.current=di},sortKeyColumns:hr.current,setSortKeyColumns:function(di){hr.current=di},propsRef:en,columnsMap:ai,keyWords:qn,setKeyWords:function(di){return nr(di)},setTableSize:ia,tableSize:wr,prefixName:Wt.current,setPrefixName:function(di){Wt.current=di},setColumnsMap:Ca,columns:Ze.columns,rootDomRef:Mt,clearPersistenceStorage:ii};return Object.defineProperty(ci,"prefixName",{get:function(){return Wt.current}}),Object.defineProperty(ci,"sortKeyColumns",{get:function(){return hr.current}}),Object.defineProperty(ci,"action",{get:function(){return xt.current}}),ci}var Xk=(0,lA.f)(z0),by=Xk,qO=o(87753),Jk=o(54943),y0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},ub=y0,x2=function(J,xe){return p.createElement(ba.Z,(0,d.Z)((0,d.Z)({},J),{},{ref:xe,icon:ub}))};x2.displayName="VerticalAlignTopOutlined";var Rx=p.forwardRef(x2),Qk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 00-11.3 0L405.6 752.3a7.23 7.23 0 005.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z"}}]},name:"vertical-align-middle",theme:"outlined"},cA=Qk,qy=function(J,xe){return p.createElement(ba.Z,(0,d.Z)((0,d.Z)({},J),{},{ref:xe,icon:cA}))};qy.displayName="VerticalAlignMiddleOutlined";var fb=p.forwardRef(qy),eI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z"}}]},name:"vertical-align-bottom",theme:"outlined"},bg=eI,E2=function(J,xe){return p.createElement(ba.Z,(0,d.Z)((0,d.Z)({},J),{},{ref:xe,icon:bg}))};E2.displayName="VerticalAlignBottomOutlined";var Ox=p.forwardRef(E2),S2=o(16089),y_=["key","dataIndex","children"],xg=function(J){var xe=J.title,ye=J.show,Ze=J.children,xt=J.columnKey,Mt=J.fixed,Wt=by.useContainer(),en=Wt.columnsMap,Tn=Wt.setColumnsMap;return ye?(0,S.jsx)(hg.Z,{title:xe,children:(0,S.jsx)("span",{onClick:function(qn){qn.stopPropagation(),qn.preventDefault();var nr=en[xt]||{},hr=typeof nr.disable=="boolean"&&nr.disable;if(!hr){var ur=(0,d.Z)((0,d.Z)({},en),{},(0,v.Z)({},xt,(0,d.Z)((0,d.Z)({},nr),{},{fixed:Mt})));Tn(ur)}},children:Ze})}):null},tI=function(J){var xe=J.columnKey,ye=J.isLeaf,Ze=J.title,xt=J.className,Mt=J.fixed,Wt=(0,F.YB)(),en=(0,S.jsxs)("span",{className:"".concat(xt,"-list-item-option"),children:[(0,S.jsx)(xg,{columnKey:xe,fixed:"left",title:Wt.getMessage("tableToolBar.leftPin","\u56FA\u5B9A\u5728\u5217\u9996"),show:Mt!=="left",children:(0,S.jsx)(Rx,{})}),(0,S.jsx)(xg,{columnKey:xe,fixed:void 0,title:Wt.getMessage("tableToolBar.noPin","\u4E0D\u56FA\u5B9A"),show:!!Mt,children:(0,S.jsx)(fb,{})}),(0,S.jsx)(xg,{columnKey:xe,fixed:"right",title:Wt.getMessage("tableToolBar.rightPin","\u56FA\u5B9A\u5728\u5217\u5C3E"),show:Mt!=="right",children:(0,S.jsx)(Ox,{})})]});return(0,S.jsxs)("span",{className:"".concat(xt,"-list-item"),children:[(0,S.jsx)("div",{className:"".concat(xt,"-list-item-title"),children:Ze}),ye?null:en]},xe)},db=function(J){var xe,ye,Ze=J.list,xt=J.draggable,Mt=J.checkable,Wt=J.className,en=J.showTitle,Tn=en===void 0?!0:en,On=J.title,qn=J.listHeight,nr=qn===void 0?280:qn,hr=by.useContainer(),ur=hr.columnsMap,Mr=hr.setColumnsMap,wr=hr.sortKeyColumns,ia=hr.setSortKeyColumns,ua=Ze&&Ze.length>0,ga=(0,p.useMemo)(function(){if(!ua)return{};var ii=[],ci=function $a(di,Wa){return di.map(function(Ya){var li,ti=Ya.key,Ba=Ya.dataIndex,Ni=Ya.children,ji=(0,_.Z)(Ya,y_),go=lt(ti,ji.index),Wi=ur[go||"null"]||{show:!0};Wi.show!==!1&&(Wa==null?void 0:Wa.show)!==!1&&!Ni&&ii.push(go);var uo=(0,d.Z)((0,d.Z)({key:go},(0,bt.Z)(ji,["className"])),{},{selectable:!1,disabled:Wi.disable===!0,disableCheckbox:typeof Wi.disable=="boolean"?Wi.disable:(li=Wi.disable)===null||li===void 0?void 0:li.checkbox,isLeaf:Wa?!0:void 0});return Ni&&(uo.children=$a(Ni,Wi)),uo})};return{list:ci(Ze),keys:ii}},[ur,Ze,ua]),Fa=(0,pe.J)(function(ii,ci,$a){var di=(0,d.Z)({},ur),Wa=(0,h.Z)(wr),Ya=Wa.findIndex(function(Ni){return Ni===ii}),li=Wa.findIndex(function(Ni){return Ni===ci}),ti=$a>li;if(!(Ya<0)){var Ba=Wa[Ya];Wa.splice(Ya,1),$a===0?Wa.unshift(Ba):Wa.splice(ti?li:li+1,0,Ba),Wa.forEach(function(Ni,ji){di[Ni]=(0,d.Z)((0,d.Z)({},di[Ni]||{}),{},{order:ji})}),Mr(di),ia(Wa)}}),ai=(0,pe.J)(function(ii){var ci=ii.node.key,$a=(0,d.Z)({},ur[ci]);$a.show=ii.checked,Mr((0,d.Z)((0,d.Z)({},ur),{},(0,v.Z)({},ci,$a)))});if(!ua)return null;var Ca=(0,S.jsx)(Jk.Z,{itemHeight:24,draggable:xt&&!!((xe=ga.list)===null||xe===void 0?void 0:xe.length)&&((ye=ga.list)===null||ye===void 0?void 0:ye.length)>1,checkable:Mt,onDrop:function(ci){var $a=ci.node.key,di=ci.dragNode.key,Wa=ci.dropPosition,Ya=ci.dropToGap,li=Wa===-1||!Ya?Wa+1:Wa;Fa(di,$a,li)},blockNode:!0,onCheck:function(ci,$a){return ai($a)},checkedKeys:ga.keys,showLine:!1,titleRender:function(ci){var $a=(0,d.Z)((0,d.Z)({},ci),{},{children:void 0});return(0,S.jsx)(tI,(0,d.Z)((0,d.Z)({className:Wt},$a),{},{title:(0,zt.h)($a.title,$a),columnKey:$a.key}))},height:nr,treeData:ga.list});return(0,S.jsxs)(S.Fragment,{children:[Tn&&(0,S.jsx)("span",{className:"".concat(Wt,"-list-title"),children:On}),Ca]})},qk=function(J){var xe=J.localColumns,ye=J.className,Ze=J.draggable,xt=J.checkable,Mt=J.listsHeight,Wt=[],en=[],Tn=[],On=(0,F.YB)();xe.forEach(function(hr){if(!hr.hideInSetting){var ur=hr.fixed;if(ur==="left"){en.push(hr);return}if(ur==="right"){Wt.push(hr);return}Tn.push(hr)}});var qn=Wt&&Wt.length>0,nr=en&&en.length>0;return(0,S.jsxs)("div",{className:ze()("".concat(ye,"-list"),(0,v.Z)({},"".concat(ye,"-list-group"),qn||nr)),children:[(0,S.jsx)(db,{title:On.getMessage("tableToolBar.leftFixedTitle","\u56FA\u5B9A\u5728\u5DE6\u4FA7"),list:en,draggable:Ze,checkable:xt,className:ye,listHeight:Mt}),(0,S.jsx)(db,{list:Tn,draggable:Ze,checkable:xt,title:On.getMessage("tableToolBar.noFixedTitle","\u4E0D\u56FA\u5B9A"),showTitle:nr||qn,className:ye,listHeight:Mt}),(0,S.jsx)(db,{title:On.getMessage("tableToolBar.rightFixedTitle","\u56FA\u5B9A\u5728\u53F3\u4FA7"),list:Wt,draggable:Ze,checkable:xt,className:ye,listHeight:Mt})]})};function eP(ae){var J,xe,ye=(0,p.useRef)({}),Ze=by.useContainer(),xt=ae.columns,Mt=ae.checkedReset,Wt=Mt===void 0?!0:Mt,en=Ze.columnsMap,Tn=Ze.setColumnsMap,On=Ze.clearPersistenceStorage;(0,p.useEffect)(function(){var Fa,ai;if((Fa=Ze.propsRef.current)===null||Fa===void 0||(ai=Fa.columnsState)===null||ai===void 0?void 0:ai.value){var Ca,ii;ye.current=JSON.parse(JSON.stringify(((Ca=Ze.propsRef.current)===null||Ca===void 0||(ii=Ca.columnsState)===null||ii===void 0?void 0:ii.value)||{}))}},[]);var qn=(0,pe.J)(function(){var Fa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,ai={},Ca=function ii(ci){ci.forEach(function($a){var di=$a.key,Wa=$a.fixed,Ya=$a.index,li=$a.children,ti=lt(di,Ya);ti&&(ai[ti]={show:Fa,fixed:Wa}),li&&ii(li)})};Ca(xt),Tn(ai)}),nr=(0,pe.J)(function(Fa){Fa.target.checked?qn():qn(!1)}),hr=(0,pe.J)(function(){On==null||On(),Tn(ye.current)}),ur=Object.values(en).filter(function(Fa){return!Fa||Fa.show===!1}),Mr=ur.length>0&&ur.length!==xt.length,wr=(0,F.YB)(),ia=(0,p.useContext)(w.ZP.ConfigContext),ua=ia.getPrefixCls,ga=ua("pro-table-column-setting");return(0,S.jsx)(pi.Z,{arrowPointAtCenter:!0,title:(0,S.jsxs)("div",{className:"".concat(ga,"-title"),children:[(0,S.jsx)(hn.Z,{indeterminate:Mr,checked:ur.length===0&&ur.length!==xt.length,onChange:function(ai){return nr(ai)},children:wr.getMessage("tableToolBar.columnDisplay","\u5217\u5C55\u793A")}),Wt?(0,S.jsx)("a",{onClick:hr,className:"".concat(ga,"-action-rest-button"),children:wr.getMessage("tableToolBar.reset","\u91CD\u7F6E")}):null,(ae==null?void 0:ae.extra)?(0,S.jsx)(qt.Z,{size:12,align:"center",children:ae.extra}):null]}),overlayClassName:"".concat(ga,"-overlay"),trigger:"click",placement:"bottomRight",content:(0,S.jsx)(qk,{checkable:(J=ae.checkable)!==null&&J!==void 0?J:!0,draggable:(xe=ae.draggable)!==null&&xe!==void 0?xe:!0,className:ga,localColumns:xt,listsHeight:ae.listsHeight}),children:ae.children||(0,S.jsx)(hg.Z,{title:wr.getMessage("tableToolBar.columnSetting","\u5217\u8BBE\u7F6E"),children:(0,S.jsx)(uS,{})})})}var nI=eP,tP=o(84786),eg=o(13649),nP=o(93234),rI=o(37482),W0=o(36707),aI=o(19597),uA=o(3531),rP=o(36003),Vf=["label","key"],tg=function(J){var xe=J.items,ye=xe===void 0?[]:xe,Ze=J.type,xt=Ze===void 0?"inline":Ze,Mt=J.prefixCls,Wt=J.activeKey,en=(0,cb.Z)(Wt,{value:Wt,onChange:J.onChange}),Tn=(0,y.Z)(en,2),On=Tn[0],qn=Tn[1];if(ye.length<1)return null;var nr=ye.find(function(hr){return hr.key===On})||ye[0];return xt==="inline"?(0,S.jsx)("div",{className:ze()("".concat(Mt,"-menu"),"".concat(Mt,"-inline-menu")),children:ye.map(function(hr,ur){return(0,S.jsx)("div",{onClick:function(){qn(hr.key)},className:ze()("".concat(Mt,"-inline-menu-item"),nr.key===hr.key?"".concat(Mt,"-inline-menu-item-active"):void 0),children:hr.label},hr.key||ur)})}):xt==="tab"?(0,S.jsx)(eg.Z,{activeKey:nr.key,onTabClick:function(ur){return qn(ur)},children:ye.map(function(hr,ur){var Mr=hr.label,wr=hr.key,ia=(0,_.Z)(hr,Vf);return(0,S.jsx)(eg.Z.TabPane,(0,d.Z)({tab:Mr},ia),wr||ur)})}):(0,S.jsx)("div",{className:ze()("".concat(Mt,"-menu"),"".concat(Mt,"-dropdownmenu")),children:(0,S.jsx)(uA.Z,{trigger:["click"],overlay:(0,S.jsx)(W0.Z,{selectedKeys:[nr.key],onClick:function(ur){qn(ur.key)},items:ye.map(function(hr,ur){return{key:hr.key||ur,disabled:hr.disabled,label:hr.label}})}),children:(0,S.jsxs)(qt.Z,{className:"".concat(Mt,"-dropdownmenu-label"),children:[nr.label,(0,S.jsx)(yo.Z,{})]})})})},iI=tg;function fA(ae){if(p.isValidElement(ae))return ae;if(ae){var J=ae,xe=J.icon,ye=J.tooltip,Ze=J.onClick,xt=J.key;return xe&&ye?(0,S.jsx)(hg.Z,{title:ye,children:(0,S.jsx)("span",{onClick:function(){Ze&&Ze(xt)},children:xe},xt)}):xe}return null}var ng=function(J){var xe=J.prefixCls,ye=J.tabs,Ze=ye===void 0?{}:ye,xt=J.multipleLine,Mt=J.filtersNode;return xt?(0,S.jsx)("div",{className:"".concat(xe,"-extra-line"),children:Ze.items&&Ze.items.length?(0,S.jsx)(eg.Z,{activeKey:Ze.activeKey,onChange:Ze.onChange,tabBarExtraContent:Mt,children:Ze.items.map(function(Wt,en){return(0,S.jsx)(eg.Z.TabPane,(0,d.Z)({},Wt),Wt.key||en)})}):Mt}):null},aP=function(J){var xe=J.prefixCls,ye=J.title,Ze=J.subTitle,xt=J.tooltip,Mt=J.className,Wt=J.style,en=J.search,Tn=J.onSearch,On=J.multipleLine,qn=On===void 0?!1:On,nr=J.filter,hr=J.actions,ur=hr===void 0?[]:hr,Mr=J.settings,wr=Mr===void 0?[]:Mr,ia=J.tabs,ua=ia===void 0?{}:ia,ga=J.menu,Fa=(0,F.YB)(),ai=(0,nP.ZP)(),Ca=ai==="sm"||ai==="xs",ii=Fa.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ci=(0,p.useMemo)(function(){return en?p.isValidElement(en)?en:(0,S.jsx)(Oi.Z.Search,(0,d.Z)((0,d.Z)({style:{width:200},placeholder:ii},en),{},{onSearch:function(){for(var wo,Io=arguments.length,Vo=new Array(Io),bs=0;bs<Io;bs++)Vo[bs]=arguments[bs];Tn==null||Tn(Vo==null?void 0:Vo[0]),(wo=en.onSearch)===null||wo===void 0||wo.call.apply(wo,[en].concat(Vo))}})):null},[ii,Tn,en]),$a=(0,p.useContext)(w.ZP.ConfigContext),di=$a.getPrefixCls,Wa=di("pro-table-list-toolbar",xe),Ya=(0,p.useMemo)(function(){return nr?(0,S.jsx)("div",{className:"".concat(Wa,"-filter"),children:nr}):null},[nr,Wa]),li=(0,p.useMemo)(function(){return ga||ye||Ze||xt},[ga,Ze,ye,xt]),ti=(0,p.useMemo)(function(){return Array.isArray(ur)?ur.length<1?null:(0,S.jsx)(qt.Z,{align:"center",children:ur.map(function(uo,wo){return p.isValidElement(uo)?p.cloneElement(uo,(0,d.Z)({key:wo},uo==null?void 0:uo.props)):(0,S.jsx)(p.Fragment,{children:uo},wo)})}):ur},[ur]),Ba=(0,p.useMemo)(function(){return li&&ci||!qn&&Ya||ti||(wr==null?void 0:wr.length)},[ti,Ya,li,qn,ci,wr==null?void 0:wr.length]),Ni=(0,p.useMemo)(function(){return xt||ye||Ze||ga||!li&&ci},[li,ga,ci,Ze,ye,xt]),ji=(0,p.useMemo)(function(){return!Ni&&Ba?(0,S.jsx)("div",{className:"".concat(Wa,"-left")}):!ga&&(li||!ci)?(0,S.jsx)("div",{className:"".concat(Wa,"-left"),children:(0,S.jsx)("div",{className:"".concat(Wa,"-title"),children:(0,S.jsx)(ln.Z,{tooltip:xt,label:ye,subTitle:Ze})})}):(0,S.jsxs)(qt.Z,{className:"".concat(Wa,"-left"),children:[li&&!ga&&(0,S.jsx)("div",{className:"".concat(Wa,"-title"),children:(0,S.jsx)(ln.Z,{tooltip:xt,label:ye,subTitle:Ze})}),ga&&(0,S.jsx)(iI,(0,d.Z)((0,d.Z)({},ga),{},{prefixCls:Wa})),!li&&ci?(0,S.jsx)("div",{className:"".concat(Wa,"-search"),children:ci}):null]})},[Ni,Ba,li,ga,Wa,ci,Ze,ye,xt]),go=(0,p.useMemo)(function(){return Ba?(0,S.jsxs)(qt.Z,{className:"".concat(Wa,"-right"),direction:Ca?"vertical":"horizontal",size:16,align:Ca?"end":"center",children:[li&&ci?(0,S.jsx)("div",{className:"".concat(Wa,"-search"),children:ci}):null,qn?null:Ya,ti,(wr==null?void 0:wr.length)?(0,S.jsx)(qt.Z,{size:12,align:"center",className:"".concat(Wa,"-setting-items"),children:wr.map(function(uo,wo){var Io=fA(uo);return(0,S.jsx)("div",{className:"".concat(Wa,"-setting-item"),children:Io},wo)})}):null]}):null},[ti,Ca,Ya,Ba,li,qn,Wa,ci,wr]),Wi=(0,p.useMemo)(function(){if(!Ba&&!Ni)return null;var uo=ze()("".concat(Wa,"-container"),(0,v.Z)({},"".concat(Wa,"-container-mobile"),Ca));return(0,S.jsxs)("div",{className:uo,children:[ji,go]})},[Ni,Ba,Ca,ji,Wa,go]);return(0,S.jsxs)("div",{style:Wt,className:ze()("".concat(Wa),Mt),children:[Wi,(0,S.jsx)(ng,{filtersNode:Ya,prefixCls:Wa,tabs:ua,multipleLine:qn})]})},iP=aP,dA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 00-11.3 0L403.6 366.3a7.23 7.23 0 005.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z"}}]},name:"column-height",theme:"outlined"},jh=dA,Eg=function(J,xe){return p.createElement(ba.Z,(0,d.Z)((0,d.Z)({},J),{},{ref:xe,icon:jh}))};Eg.displayName="ColumnHeightOutlined";var pA=p.forwardRef(Eg),dS=function(){var J=by.useContainer(),xe=(0,F.YB)();return(0,S.jsx)(uA.Z,{overlay:(0,S.jsx)(W0.Z,{selectedKeys:[J.tableSize],onClick:function(Ze){var xt,Mt=Ze.key;(xt=J.setTableSize)===null||xt===void 0||xt.call(J,Mt)},style:{width:80},items:[{key:"large",label:xe.getMessage("tableToolBar.densityLarger","\u9ED8\u8BA4")},{key:"middle",label:xe.getMessage("tableToolBar.densityMiddle","\u4E2D\u7B49")},{key:"small",label:xe.getMessage("tableToolBar.densitySmall","\u7D27\u51D1")}]}),trigger:["click"],children:(0,S.jsx)(hg.Z,{title:xe.getMessage("tableToolBar.density","\u8868\u683C\u5BC6\u5EA6"),children:(0,S.jsx)(pA,{})})})},oP=p.memo(dS),C2=o(21444),oI=o(38296),vA=function(){var J=(0,F.YB)(),xe=(0,p.useState)(!1),ye=(0,y.Z)(xe,2),Ze=ye[0],xt=ye[1];return(0,p.useEffect)(function(){!(0,ei.Z)()||(document.onfullscreenchange=function(){xt(!!document.fullscreenElement)})},[]),Ze?(0,S.jsx)(hg.Z,{title:J.getMessage("tableToolBar.exitFullScreen","\u5168\u5C4F"),children:(0,S.jsx)(C2.Z,{})}):(0,S.jsx)(hg.Z,{title:J.getMessage("tableToolBar.fullScreen","\u5168\u5C4F"),children:(0,S.jsx)(oI.Z,{})})},Ix=p.memo(vA),rN=o(96106),hA=["headerTitle","tooltip","toolBarRender","action","options","selectedRowKeys","selectedRows","toolbar","onSearch","columns"];function sI(ae){var J=ae.intl;return{reload:{text:J.getMessage("tableToolBar.reload","\u5237\u65B0"),icon:(0,S.jsx)(iA,{})},density:{text:J.getMessage("tableToolBar.density","\u8868\u683C\u5BC6\u5EA6"),icon:(0,S.jsx)(oP,{})},setting:{text:J.getMessage("tableToolBar.columnSetting","\u5217\u8BBE\u7F6E"),icon:(0,S.jsx)(uS,{})},fullScreen:{text:J.getMessage("tableToolBar.fullScreen","\u5168\u5C4F"),icon:(0,S.jsx)(Ix,{})}}}function sP(ae,J,xe,ye){return Object.keys(ae).filter(function(Ze){return Ze}).map(function(Ze){var xt=ae[Ze];if(!xt)return null;var Mt=xt===!0?J[Ze]:function(en){return xt==null?void 0:xt(en,xe.current)};if(typeof Mt!="function"&&(Mt=function(){}),Ze==="setting")return(0,p.createElement)(nI,(0,d.Z)((0,d.Z)({},ae[Ze]),{},{columns:ye,key:Ze}));if(Ze==="fullScreen")return(0,S.jsx)("span",{onClick:Mt,children:(0,S.jsx)(Ix,{})},Ze);var Wt=sI(J)[Ze];return Wt?(0,S.jsx)("span",{onClick:Mt,children:(0,S.jsx)(hg.Z,{title:Wt.text,children:Wt.icon})},Ze):null}).filter(function(Ze){return Ze})}function pS(ae){var J=ae.headerTitle,xe=ae.tooltip,ye=ae.toolBarRender,Ze=ae.action,xt=ae.options,Mt=ae.selectedRowKeys,Wt=ae.selectedRows,en=ae.toolbar,Tn=ae.onSearch,On=ae.columns,qn=(0,_.Z)(ae,hA),nr=by.useContainer(),hr=(0,F.YB)(),ur=(0,p.useMemo)(function(){var ia={reload:function(){var Fa;return Ze==null||(Fa=Ze.current)===null||Fa===void 0?void 0:Fa.reload()},density:!0,setting:!0,search:!1,fullScreen:function(){var Fa,ai;return Ze==null||(Fa=Ze.current)===null||Fa===void 0||(ai=Fa.fullScreen)===null||ai===void 0?void 0:ai.call(Fa)}};if(xt===!1)return[];var ua=(0,d.Z)((0,d.Z)({},ia),{},{fullScreen:!1},xt);return sP(ua,(0,d.Z)((0,d.Z)({},ia),{},{intl:hr}),Ze,On)},[Ze,On,hr,xt]),Mr=ye?ye(Ze==null?void 0:Ze.current,{selectedRowKeys:Mt,selectedRows:Wt}):[],wr=(0,p.useMemo)(function(){if(!xt||!xt.search)return!1;var ia={value:nr.keyWords,onChange:function(ga){return nr.setKeyWords(ga.target.value)}};return xt.search===!0?ia:(0,d.Z)((0,d.Z)({},ia),xt.search)},[nr,xt]);return(0,p.useEffect)(function(){nr.keyWords===void 0&&(Tn==null||Tn(""))},[nr.keyWords,Tn]),(0,S.jsx)(iP,(0,d.Z)({title:J,tooltip:xe||qn.tip,search:wr,onSearch:Tn,actions:Mr,settings:ur},en))}var pb=function(ae){(0,Hn.Z)(xe,ae);var J=(0,ut.Z)(xe);function xe(){var ye;(0,lr.Z)(this,xe);for(var Ze=arguments.length,xt=new Array(Ze),Mt=0;Mt<Ze;Mt++)xt[Mt]=arguments[Mt];return ye=J.call.apply(J,[this].concat(xt)),ye.onSearch=function(Wt){var en,Tn,On,qn,nr=ye.props,hr=nr.options,ur=nr.onFormSearchSubmit,Mr=nr.actionRef;if(!(!hr||!hr.search)){var wr=hr.search===!0?{}:hr.search,ia=wr.name,ua=ia===void 0?"keyword":ia,ga=(en=hr.search)===null||en===void 0||(Tn=en.onSearch)===null||Tn===void 0?void 0:Tn.call(en,Wt);ga!==!1&&(Mr==null||(On=Mr.current)===null||On===void 0||(qn=On.setPageInfo)===null||qn===void 0||qn.call(On,{current:1}),ur((0,Yt.Z)((0,v.Z)({_timestamp:Date.now()},ua,Wt))))}},ye.isEquals=function(Wt){var en=ye.props,Tn=en.hideToolbar,On=en.tableColumn,qn=en.options,nr=en.tooltip,hr=en.toolbar,ur=en.selectedRows,Mr=en.selectedRowKeys,wr=en.headerTitle,ia=en.actionRef,ua=en.toolBarRender;return(0,ke.Z)({hideToolbar:Tn,tableColumn:On,options:qn,tooltip:nr,toolbar:hr,selectedRows:ur,selectedRowKeys:Mr,headerTitle:wr,actionRef:ia,toolBarRender:ua},{hideToolbar:Wt.hideToolbar,tableColumn:Wt.tableColumn,options:Wt.options,tooltip:Wt.tooltip,toolbar:Wt.toolbar,selectedRows:Wt.selectedRows,selectedRowKeys:Wt.selectedRowKeys,headerTitle:Wt.headerTitle,actionRef:Wt.actionRef,toolBarRender:Wt.toolBarRender},["render","renderFormItem"])},ye.shouldComponentUpdate=function(Wt){return Wt.searchNode?!0:!ye.isEquals(Wt)},ye.render=function(){var Wt=ye.props,en=Wt.hideToolbar,Tn=Wt.tableColumn,On=Wt.options,qn=Wt.searchNode,nr=Wt.tooltip,hr=Wt.toolbar,ur=Wt.selectedRows,Mr=Wt.selectedRowKeys,wr=Wt.headerTitle,ia=Wt.actionRef,ua=Wt.toolBarRender;return en?null:(0,S.jsx)(pS,{tooltip:nr,columns:Tn,options:On,headerTitle:wr,action:ia,onSearch:ye.onSearch,selectedRows:ur,selectedRowKeys:Mr,toolBarRender:ua,toolbar:(0,d.Z)({filter:qn},hr)})},ye}return(0,nt.Z)(xe)}(p.Component),lI=pb,lP=o(45282),b_=["data","success","total"],xy=function(J){var xe=J.pageInfo;if(xe){var ye=xe.current,Ze=xe.defaultCurrent,xt=xe.pageSize,Mt=xe.defaultPageSize;return{current:ye||Ze||1,total:0,pageSize:xt||Mt||20}}return{current:1,total:0,pageSize:20}},w2=function(J,xe,ye){var Ze=(0,p.useRef)(!1),xt=ye||{},Mt=xt.onLoad,Wt=xt.manual,en=xt.polling,Tn=xt.onRequestError,On=xt.debounceTime,qn=On===void 0?20:On,nr=(0,p.useRef)(Wt),hr=(0,p.useRef)(),ur=(0,Ge.Z)(xe,{value:ye==null?void 0:ye.dataSource,onChange:ye==null?void 0:ye.onDataSourceChange}),Mr=(0,y.Z)(ur,2),wr=Mr[0],ia=Mr[1],ua=(0,Ge.Z)(!1,{value:ye==null?void 0:ye.loading,onChange:ye==null?void 0:ye.onLoadingChange}),ga=(0,y.Z)(ua,2),Fa=ga[0],ai=ga[1],Ca=(0,p.useRef)(!1),ii=(0,Ge.Z)(function(){return xy(ye)},{onChange:ye==null?void 0:ye.onPageInfoChange}),ci=(0,y.Z)(ii,2),$a=ci[0],di=ci[1],Wa=(0,pe.J)(function(Ws){(Ws.current!==$a.current||Ws.pageSize!==$a.pageSize||Ws.total!==$a.total)&&di(Ws)}),Ya=(0,Ge.Z)(!1),li=(0,y.Z)(Ya,2),ti=li[0],Ba=li[1],Ni=function(Al,Ql){ia(Al),($a==null?void 0:$a.total)!==Ql&&Wa((0,d.Z)((0,d.Z)({},$a),{},{total:Ql||Al.length}))},ji=(0,dt.Z)($a==null?void 0:$a.current),go=(0,dt.Z)($a==null?void 0:$a.pageSize),Wi=(0,dt.Z)(en),uo=ye||{},wo=uo.effects,Io=wo===void 0?[]:wo,Vo=(0,pe.J)(function(){(0,A.Z)(Fa)==="object"?ai((0,d.Z)((0,d.Z)({},Fa),{},{spinning:!1})):ai(!1),Ba(!1)}),bs=function(){var Ws=(0,g.Z)((0,x.Z)().mark(function Al(Ql){var zs,_c,hc,Hs,Ul,As,Ks,Cc,qc,Of,_f,sd;return(0,x.Z)().wrap(function(Su){for(;;)switch(Su.prev=Su.next){case 0:if(!(Fa&&typeof Fa=="boolean"||Ca.current||!J)){Su.next=2;break}return Su.abrupt("return",[]);case 2:if(!nr.current){Su.next=5;break}return nr.current=!1,Su.abrupt("return",[]);case 5:return Ql?Ba(!0):(0,A.Z)(Fa)==="object"?ai((0,d.Z)((0,d.Z)({},Fa),{},{spinning:!0})):ai(!0),Ca.current=!0,zs=$a||{},_c=zs.pageSize,hc=zs.current,Su.prev=8,Hs=(ye==null?void 0:ye.pageInfo)!==!1?{current:hc,pageSize:_c}:void 0,Su.next=12,J(Hs);case 12:if(Su.t0=Su.sent,Su.t0){Su.next=15;break}Su.t0={};case 15:if(Ul=Su.t0,As=Ul.data,Ks=As===void 0?[]:As,Cc=Ul.success,qc=Ul.total,Of=qc===void 0?0:qc,_f=(0,_.Z)(Ul,b_),Cc!==!1){Su.next=24;break}return Su.abrupt("return",[]);case 24:return sd=Ue(Ks,[ye.postData].filter(function(Uu){return Uu})),Ni(sd,Of),Mt==null||Mt(sd,_f),Su.abrupt("return",sd);case 30:if(Su.prev=30,Su.t1=Su.catch(8),Tn!==void 0){Su.next=34;break}throw new Error(Su.t1);case 34:wr===void 0&&ia([]),Tn(Su.t1);case 36:return Su.prev=36,Ca.current=!1,Vo(),Su.finish(36);case 40:return Su.abrupt("return",[]);case 41:case"end":return Su.stop()}},Al,null,[[8,30,36,40]])}));return function(Ql){return Ws.apply(this,arguments)}}(),ts=(0,Ie.Z)(function(){var Ws=(0,g.Z)((0,x.Z)().mark(function Al(Ql){var zs,_c;return(0,x.Z)().wrap(function(Hs){for(;;)switch(Hs.prev=Hs.next){case 0:return hr.current&&clearTimeout(hr.current),Hs.next=3,bs(Ql);case 3:return zs=Hs.sent,_c=(0,zt.h)(en,zs),_c&&!Ze.current&&(hr.current=setTimeout(function(){ts.run(_c)},Math.max(_c,2e3))),Hs.abrupt("return",zs);case 7:case"end":return Hs.stop()}},Al)}));return function(Al){return Ws.apply(this,arguments)}}(),qn||10);return(0,p.useEffect)(function(){return en||clearTimeout(hr.current),!Wi&&en&&ts.run(!0),function(){clearTimeout(hr.current)}},[en]),(0,p.useLayoutEffect)(function(){return Ze.current=!1,function(){Ze.current=!0}},[]),(0,p.useEffect)(function(){var Ws=$a||{},Al=Ws.current,Ql=Ws.pageSize;(!ji||ji===Al)&&(!go||go===Ql)||ye.pageInfo&&wr&&(wr==null?void 0:wr.length)>Ql||Al!==void 0&&wr&&wr.length<=Ql&&ts.run(!1)},[$a==null?void 0:$a.current]),(0,p.useEffect)(function(){!go||ts.run(!1)},[$a==null?void 0:$a.pageSize]),et(function(){return ts.run(!1),Wt||(nr.current=!1),function(){ts.cancel()}},[].concat((0,h.Z)(Io),[Wt])),{dataSource:wr,setDataSource:ia,loading:Fa,reload:function(){var Ws=(0,g.Z)((0,x.Z)().mark(function Ql(){return(0,x.Z)().wrap(function(_c){for(;;)switch(_c.prev=_c.next){case 0:return _c.next=2,ts.run(!1);case 2:case"end":return _c.stop()}},Ql)}));function Al(){return Ws.apply(this,arguments)}return Al}(),pageInfo:$a,pollingLoading:ti,reset:function(){var Ws=(0,g.Z)((0,x.Z)().mark(function Ql(){var zs,_c,hc,Hs,Ul,As,Ks,Cc;return(0,x.Z)().wrap(function(Of){for(;;)switch(Of.prev=Of.next){case 0:zs=ye||{},_c=zs.pageInfo,hc=_c||{},Hs=hc.defaultCurrent,Ul=Hs===void 0?1:Hs,As=hc.defaultPageSize,Ks=As===void 0?20:As,Cc={current:Ul,total:0,pageSize:Ks},Wa(Cc);case 4:case"end":return Of.stop()}},Ql)}));function Al(){return Ws.apply(this,arguments)}return Al}(),setPageInfo:function(){var Ws=(0,g.Z)((0,x.Z)().mark(function Ql(zs){return(0,x.Z)().wrap(function(hc){for(;;)switch(hc.prev=hc.next){case 0:Wa((0,d.Z)((0,d.Z)({},$a),zs));case 1:case"end":return hc.stop()}},Ql)}));function Al(Ql){return Ws.apply(this,arguments)}return Al}()}},vS=w2,mA=function(J){return function(xe,ye){var Ze,xt,Mt=xe.fixed,Wt=xe.index,en=ye.fixed,Tn=ye.index;if(Mt==="left"&&en!=="left"||en==="right"&&Mt!=="right")return-2;if(en==="left"&&Mt!=="left"||Mt==="right"&&en!=="right")return 2;var On=xe.key||"".concat(Wt),qn=ye.key||"".concat(Tn);if(((Ze=J[On])===null||Ze===void 0?void 0:Ze.order)||((xt=J[qn])===null||xt===void 0?void 0:xt.order)){var nr,hr;return(((nr=J[On])===null||nr===void 0?void 0:nr.order)||0)-(((hr=J[qn])===null||hr===void 0?void 0:hr.order)||0)}return(xe.index||0)-(ye.index||0)}},T2=o(71578),A2=null,cP=null,Dx=function(J){return mS(J)==="map"?J:new Map(Object.entries(J||{}))},hS=function ae(J,xe){if(Array.isArray(J))return _jsx(_Space,{split:",",size:2,children:J.map(function(en){return ae(en,xe)})});var ye=Dx(xe);if(!ye.has(J)&&!ye.has("".concat(J)))return(J==null?void 0:J.label)||J;var Ze=ye.get(J)||ye.get("".concat(J));if(!Ze)return(J==null?void 0:J.label)||J;var xt=Ze.status,Mt=Ze.color,Wt=TableStatus[xt||"Init"];return Wt?_jsx(Wt,{children:Ze.text}):Mt?_jsx(ProFieldBadgeColor,{color:Mt,children:Ze.text}):Ze.text||Ze},M2=function(J){for(var xe=J.label,ye=J.words,Ze=useContext(_ConfigProvider.ConfigContext),xt=Ze.getPrefixCls,Mt=xt("pro-select-item-option-content-light"),Wt=xt("pro-select-item-option-content"),en=new RegExp(ye.map(function(ur){return ur.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}).join("|"),"gi"),Tn=xe,On=[];Tn.length;){var qn=en.exec(Tn);if(!qn){On.push(Tn);break}var nr=qn.index,hr=qn[0].length+nr;On.push(Tn.slice(0,nr),React.createElement("span",{className:Mt},Tn.slice(nr,hr))),Tn=Tn.slice(hr)}return React.createElement.apply(React,["div",{className:Wt}].concat(On))};function mS(ae){var J=Object.prototype.toString.call(ae).match(/^\[object (.*)\]$/)[1].toLowerCase();return J==="string"&&(0,A.Z)(ae)==="object"?"object":ae===null?"null":ae===void 0?"undefined":J}function gS(ae,J){var xe,ye;if(!J||(ae==null||(xe=ae.label)===null||xe===void 0?void 0:xe.toString().toLowerCase().includes(J.toLowerCase()))||(ae==null||(ye=ae.value)===null||ye===void 0?void 0:ye.toString().toLowerCase().includes(J.toLowerCase())))return!0;if(ae.children||ae.options){var Ze=[].concat(_toConsumableArray(ae.children||[]),[ae.options||[]]).find(function(xt){return gS(xt,J)});if(Ze)return!0}return!1}var Ey=function(J){var xe=[],ye=Dx(J);return ye.forEach(function(Ze,xt){var Mt=ye.get(xt)||ye.get("".concat(xt));if(!!Mt){if((0,A.Z)(Mt)==="object"&&(Mt==null?void 0:Mt.text)){xe.push({text:Mt==null?void 0:Mt.text,value:xt,label:Mt==null?void 0:Mt.text,disabled:Mt.disabled});return}xe.push({text:Mt,value:xt})}}),xe},cI=function(J){var xe,ye,Ze,xt,Mt=J.cacheForSwr,Wt=J.fieldProps,en=useState(J.defaultKeyWords),Tn=_slicedToArray(en,2),On=Tn[0],qn=Tn[1],nr=useState(function(){return J.proFieldKey?J.proFieldKey.toString():J.request?nanoid():"no-fetch"}),hr=_slicedToArray(nr,1),ur=hr[0],Mr=useRef(ur),wr=useCallback(function(Ya){return Ey(Dx(Ya)).map(function(li){var ti=li.value,Ba=li.text,Ni=_objectWithoutProperties(li,A2);return _objectSpread({label:Ba,value:ti,key:ti},Ni)})},[]),ia=useMemo(function(){if(!!Wt){var Ya=(Wt==null?void 0:Wt.options)||(Wt==null?void 0:Wt.treeData);if(!!Ya){var li=Wt.fieldNames||{},ti=li.children,Ba=li.label,Ni=li.value,ji=function go(Wi,uo){if(!!(Wi==null?void 0:Wi.length))for(var wo=Wi.length,Io=0;Io<wo;){var Vo=Wi[Io++];(Vo[ti]||Vo[Ba]||Vo[Ni])&&(Vo[uo]=Vo[uo==="children"?ti:uo==="label"?Ba:Ni],go(Vo[ti],uo))}};return ti&&ji(Ya,"children"),Ba&&ji(Ya,"label"),Ni&&ji(Ya,"value"),Ya}}},[Wt]),ua=useMountMergeState(function(){return J.valueEnum?wr(J.valueEnum):[]},{value:ia}),ga=_slicedToArray(ua,2),Fa=ga[0],ai=ga[1];useDeepCompareEffect(function(){var Ya,li;!J.valueEnum||((Ya=J.fieldProps)===null||Ya===void 0?void 0:Ya.options)||((li=J.fieldProps)===null||li===void 0?void 0:li.treeData)||ai(wr(J.valueEnum))},[J.valueEnum]);var Ca=useDebounceValue([Mr.current,J.params,On],(xe=(ye=J.debounceTime)!==null&&ye!==void 0?ye:J==null||(Ze=J.fieldProps)===null||Ze===void 0?void 0:Ze.debounceTime)!==null&&xe!==void 0?xe:0,[J.params,On]),ii=useSWR(function(){return J.request?Ca:null},function(Ya,li,ti){return J.request(_objectSpread(_objectSpread({},li),{},{keyWords:ti}),J)},{revalidateIfStale:!Mt,revalidateOnReconnect:Mt,shouldRetryOnError:!1,revalidateOnFocus:!1}),ci=ii.data,$a=ii.mutate,di=ii.isValidating,Wa=useMemo(function(){var Ya,li,ti=Fa==null?void 0:Fa.map(function(Ba){if(typeof Ba=="string")return{label:Ba,value:Ba};if(Ba.children||Ba.options){var Ni=[].concat(_toConsumableArray(Ba.children||[]),_toConsumableArray(Ba.options||[])).filter(function(ji){return gS(ji,On)});return _objectSpread(_objectSpread({},Ba),{},{children:Ni,options:Ni})}return Ba});return((Ya=J.fieldProps)===null||Ya===void 0?void 0:Ya.filterOption)===!0||((li=J.fieldProps)===null||li===void 0?void 0:li.filterOption)===void 0?ti==null?void 0:ti.filter(function(Ba){return Ba?On?gS(Ba,On):!0:!1}):ti},[Fa,On,(xt=J.fieldProps)===null||xt===void 0?void 0:xt.filterOption]);return[di,J.request?ci:Wa,function(Ya){qn(Ya)},function(){qn(void 0),$a([],!1)}]},b0=function(J,xe){var ye=J.mode,Ze=J.valueEnum,xt=J.render,Mt=J.renderFormItem,Wt=J.request,en=J.fieldProps,Tn=J.plain,On=J.children,qn=J.light,nr=J.proFieldKey,hr=J.params,ur=J.label,Mr=J.bordered,wr=J.id,ia=J.lightLabel,ua=J.labelTrigger,ga=_objectWithoutProperties(J,cP),Fa=useRef(),ai=useIntl(),Ca=useRef(""),ii=en.fieldNames;useEffect(function(){Ca.current=en==null?void 0:en.searchValue},[en==null?void 0:en.searchValue]);var ci=cI(J),$a=_slicedToArray(ci,4),di=$a[0],Wa=$a[1],Ya=$a[2],li=$a[3],ti=useContext(_ConfigProvider.SizeContext);useImperativeHandle(xe,function(){return _objectSpread(_objectSpread({},Fa.current||{}),{},{fetchData:function(){return Ya()}})});var Ba=useMemo(function(){if(ye==="read"){var Wi=ii||{},uo=Wi.label,wo=uo===void 0?"label":uo,Io=Wi.value,Vo=Io===void 0?"value":Io,bs=Wi.options,ts=bs===void 0?"options":bs,Ws=new Map,Al=function Ql(zs){if(!(zs==null?void 0:zs.length))return Ws;for(var _c=zs.length,hc=0;hc<_c;){var Hs=zs[hc++];Ws.set(Hs[Vo],Hs[wo]),Ql(Hs[ts])}return Ws};return Al(Wa)}},[ii,ye,Wa]);if(ye==="read"){var Ni=_jsx(_Fragment,{children:hS(ga.text,Dx(Ze||Ba))});return xt?xt(ga.text,_objectSpread({mode:ye},en),Ni)||null:Ni}if(ye==="edit"||ye==="update"){var ji=function(){return qn?_jsx(LightSelect,_objectSpread({bordered:Mr,id:wr,loading:di,ref:Fa,allowClear:!0,size:ti,options:Wa,label:ur,placeholder:ai.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),lightLabel:ia,labelTrigger:ua},en)):_jsx(SearchSelect,_objectSpread(_objectSpread({className:ga.className,style:_objectSpread({minWidth:100},ga.style),bordered:Mr,id:wr,loading:di,ref:Fa,allowClear:!0,notFoundContent:di?_jsx(_Spin,{size:"small"}):en==null?void 0:en.notFoundContent,fetchData:function(wo){Ca.current=wo,Ya(wo)},resetData:li,optionItemRender:function(wo){return typeof wo.label=="string"&&Ca.current?_jsx(M2,{label:wo.label,words:[Ca.current]}):wo.label},placeholder:ai.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),label:ur},en),{},{options:Wa}),"SearchSelect")},go=ji();return Mt?Mt(ga.text,_objectSpread(_objectSpread({mode:ye},en),{},{options:Wa}),go)||null:go}return null},k2=null,_S=function(J){var xe={};return Object.keys(J||{}).forEach(function(ye){var Ze;Array.isArray(J[ye])&&((Ze=J[ye])===null||Ze===void 0?void 0:Ze.length)===0||J[ye]!==void 0&&(xe[ye]=J[ye])}),xe},yS=_S,uP=o(11116),Gg=o(35840),gA=function(J){var xe;return!!((J==null||(xe=J.valueType)===null||xe===void 0?void 0:xe.toString().startsWith("date"))||(J==null?void 0:J.valueType)==="select"||(J==null?void 0:J.valueEnum))},Nx=function(J,xe,ye){if(xe.copyable||xe.ellipsis){var Ze=xe.copyable&&ye?{text:ye,tooltips:["",""]}:void 0,xt=gA(xe),Mt=xe.ellipsis&&ye?{tooltip:xt?(0,S.jsx)("div",{className:"pro-table-tooltip-text",children:J}):ye}:!1;return(0,S.jsx)(Gg.Z.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:Ze,ellipsis:Mt,children:J})}return J},uI=o(63134),P2=o(25394),vb=["label","rules","name","children","popoverProps"],zd=["errorType","rules","name","popoverProps","children"],Yu={marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},fP=function(J){var xe=J.inputProps,ye=J.input,Ze=J.extra,xt=J.errorList,Mt=J.popoverProps,Wt=(0,p.useState)(!1),en=(0,y.Z)(Wt,2),Tn=en[0],On=en[1],qn=(0,p.useState)([]),nr=(0,y.Z)(qn,2),hr=nr[0],ur=nr[1],Mr=(0,p.useContext)(w.ZP.ConfigContext),wr=Mr.getPrefixCls;(0,p.useEffect)(function(){xe.validateStatus!=="validating"&&ur(xe.errors)},[xe.errors,xe.validateStatus]);var ia=wr();return(0,S.jsx)(pi.Z,(0,d.Z)((0,d.Z)({trigger:(Mt==null?void 0:Mt.trigger)||"focus",placement:(Mt==null?void 0:Mt.placement)||"topRight",visible:hr.length<1?!1:Tn,onVisibleChange:function(ga){ga!==Tn&&On(ga)},getPopupContainer:Mt==null?void 0:Mt.getPopupContainer,getTooltipContainer:Mt==null?void 0:Mt.getTooltipContainer,content:(0,S.jsxs)("div",{className:"".concat(ia,"-form-item-with-help"),children:[xe.validateStatus==="validating"?(0,S.jsx)(G.Z,{}):null,xt]})},Mt),{},{children:(0,S.jsxs)("div",{children:[ye,Ze]})}),"popover")},H0=function(J){var xe=J.label,ye=J.rules,Ze=J.name,xt=J.children,Mt=J.popoverProps,Wt=(0,_.Z)(J,vb);return(0,S.jsx)($.Z.Item,(0,d.Z)((0,d.Z)({preserve:!1,name:Ze,rules:ye,hasFeedback:!0,_internalItemRender:{mark:"pro_table_render",render:function(Tn,On){return(0,S.jsx)(fP,(0,d.Z)({inputProps:Tn,popoverProps:Mt},On))}}},Wt),{},{style:(0,d.Z)((0,d.Z)({},Yu),Wt==null?void 0:Wt.style),children:xt}))},hb=function(ae){var J=ae.errorType,xe=ae.rules,ye=ae.name,Ze=ae.popoverProps,xt=ae.children,Mt=(0,_.Z)(ae,zd);return ye&&(xe==null?void 0:xe.length)&&J==="popover"?(0,S.jsx)(H0,(0,d.Z)((0,d.Z)({name:ye,rules:xe,popoverProps:Ze},Mt),{},{children:xt})):(0,S.jsx)($.Z.Item,(0,d.Z)((0,d.Z)({rules:xe},Mt),{},{style:(0,d.Z)((0,d.Z)({},Yu),Mt.style),name:ye,children:xt}))},R2=function(J,xe,ye){return xe===void 0?J:(0,zt.h)(J,xe,ye)},_m=R2,tm=["children"],e1=["",null,void 0],O2=function(){for(var J=arguments.length,xe=new Array(J),ye=0;ye<J;ye++)xe[ye]=arguments[ye];return xe.filter(function(Ze){return Ze!==void 0}).map(function(Ze){return typeof Ze=="number"?Ze.toString():Ze}).flat(1)},I2=function(J){var xe=(0,p.useContext)(iS.z),ye=J.columnProps,Ze=J.prefixName,xt=J.text,Mt=J.counter,Wt=J.rowData,en=J.index,Tn=J.recordKey,On=J.subName,qn=J.proFieldProps,nr=Qa.A.useFormInstance(),hr=Tn||en,ur=(0,p.useState)(function(){var Ca,ii;return O2(Ze,Ze?On:[],Ze?en:hr,(Ca=(ii=ye==null?void 0:ye.key)!==null&&ii!==void 0?ii:ye==null?void 0:ye.dataIndex)!==null&&Ca!==void 0?Ca:en)}),Mr=(0,y.Z)(ur,2),wr=Mr[0],ia=Mr[1],ua=(0,p.useMemo)(function(){return wr.slice(0,-1)},[wr]);(0,p.useEffect)(function(){var Ca,ii,ci=O2(Ze,Ze?On:[],Ze?en:hr,(Ca=(ii=ye==null?void 0:ye.key)!==null&&ii!==void 0?ii:ye==null?void 0:ye.dataIndex)!==null&&Ca!==void 0?Ca:en);ci.join("-")!==wr.join("-")&&ia(ci)},[ye==null?void 0:ye.dataIndex,ye==null?void 0:ye.key,en,Tn,Ze,hr,On,wr]);var ga=(0,p.useMemo)(function(){return[nr,(0,d.Z)((0,d.Z)({},ye),{},{rowKey:ua,rowIndex:en,isEditable:!0})]},[ye,nr,en,ua]),Fa=(0,p.useCallback)(function(Ca){var ii=Ca.children,ci=(0,_.Z)(Ca,tm);return(0,S.jsx)(hb,(0,d.Z)((0,d.Z)({popoverProps:{getPopupContainer:xe.getPopupContainer||function(){return Mt.rootDomRef.current||document.body}},errorType:"popover",name:wr},ci),{},{children:ii}),hr)},[hr,wr]),ai=(0,p.useCallback)(function(){var Ca,ii,ci=(0,d.Z)({},_m.apply(void 0,[ye==null?void 0:ye.formItemProps].concat((0,h.Z)(ga))));ci.messageVariables=(0,d.Z)({label:(ye==null?void 0:ye.title)||"\u6B64\u9879",type:(ye==null?void 0:ye.valueType)||"\u6587\u672C"},ci==null?void 0:ci.messageVariables),ci.initialValue=(Ca=(ii=Ze?null:xt)!==null&&ii!==void 0?ii:ci==null?void 0:ci.initialValue)!==null&&Ca!==void 0?Ca:ye==null?void 0:ye.initialValue;var $a=(0,S.jsx)(yy,(0,d.Z)({cacheForSwr:!0,name:wr,proFormFieldKey:hr,ignoreFormItem:!0,fieldProps:_m.apply(void 0,[ye==null?void 0:ye.fieldProps].concat((0,h.Z)(ga)))},qn),wr.join("-"));return(ye==null?void 0:ye.renderFormItem)&&($a=ye.renderFormItem((0,d.Z)((0,d.Z)({},ye),{},{index:en,isEditable:!0,type:"table"}),{defaultRender:function(){return(0,S.jsx)(Fa,(0,d.Z)((0,d.Z)({},ci),{},{children:$a}))},type:"form",recordKey:Tn,record:(0,d.Z)((0,d.Z)({},Wt),nr==null?void 0:nr.getFieldValue([hr])),isEditable:!0},nr,J.editableUtils),ye.ignoreFormItem)?(0,S.jsx)(S.Fragment,{children:$a}):(0,S.jsx)(Fa,(0,d.Z)((0,d.Z)({},ci),{},{children:$a}),wr.join("-"))},[ye,ga,Ze,xt,hr,wr,qn,Fa,en,Tn,Wt,nr,J.editableUtils]);return wr.length===0?null:typeof(ye==null?void 0:ye.renderFormItem)=="function"||typeof(ye==null?void 0:ye.fieldProps)=="function"||typeof(ye==null?void 0:ye.formItemProps)=="function"?(0,S.jsx)(Rs.Z,{name:[ua],children:function(){return ai()}}):ai()};function dP(ae){var J,xe=ae.text,ye=ae.valueType,Ze=ae.rowData,xt=ae.columnProps;if((!ye||["textarea","text"].includes(ye.toString()))&&!(xt==null?void 0:xt.valueEnum)&&ae.mode==="read")return e1.includes(xe)?ae.columnEmptyText:xe;if(typeof ye=="function"&&Ze)return dP((0,d.Z)((0,d.Z)({},ae),{},{valueType:ye(Ze,ae.type)||"text"}));var Mt=(xt==null?void 0:xt.key)||(xt==null||(J=xt.dataIndex)===null||J===void 0?void 0:J.toString()),Wt={valueEnum:(0,zt.h)(xt==null?void 0:xt.valueEnum,Ze),request:xt==null?void 0:xt.request,params:(0,zt.h)(xt==null?void 0:xt.params,Ze,xt),readonly:xt==null?void 0:xt.readonly,text:ye==="index"||ye==="indexBorder"?ae.index:xe,mode:ae.mode,renderFormItem:void 0,valueType:ye,record:Ze,proFieldProps:{emptyText:ae.columnEmptyText,proFieldKey:Mt?"table-field-".concat(Mt):void 0}};return ae.mode!=="edit"?(0,S.jsx)(yy,(0,d.Z)({mode:"read",ignoreFormItem:!0,fieldProps:_m(xt==null?void 0:xt.fieldProps,null,xt)},Wt)):(0,S.jsx)(I2,(0,d.Z)((0,d.Z)({},ae),{},{proFieldProps:Wt}),ae.recordKey)}var Lx=dP,rg=function(J){var xe,ye=J.title,Ze=typeof(J==null?void 0:J.ellipsis)=="boolean"?J==null?void 0:J.ellipsis:J==null||(xe=J.ellipsis)===null||xe===void 0?void 0:xe.showTitle;return ye&&typeof ye=="function"?ye(J,"table",(0,S.jsx)(ln.Z,{label:null,tooltip:J.tooltip||J.tip})):(0,S.jsx)(ln.Z,{label:ye,tooltip:J.tooltip||J.tip,ellipsis:Ze})};function ag(ae,J,xe,ye){return typeof ye=="boolean"?ye===!1:(ye==null?void 0:ye(ae,J,xe))===!1}var _A=function(J,xe,ye){var Ze=Array.isArray(ye)?(0,uI.Z)(xe,ye):xe[ye],xt=String(Ze);return String(xt)===String(J)};function pP(ae){var J=ae.columnProps,xe=ae.text,ye=ae.rowData,Ze=ae.index,xt=ae.columnEmptyText,Mt=ae.counter,Wt=ae.type,en=ae.subName,Tn=ae.editableUtils,On=Mt.action,qn=Mt.prefixName,nr=Tn.isEditable((0,d.Z)((0,d.Z)({},ye),{},{index:Ze})),hr=nr.isEditable,ur=nr.recordKey,Mr=J.renderText,wr=Mr===void 0?function(ii){return ii}:Mr,ia=wr(xe,ye,Ze,On),ua=hr&&!ag(xe,ye,Ze,J==null?void 0:J.editable)?"edit":"read",ga=Lx({text:ia,valueType:J.valueType||"text",index:Ze,rowData:ye,subName:en,columnProps:(0,d.Z)((0,d.Z)({},J),{},{entry:ye,entity:ye}),counter:Mt,columnEmptyText:xt,type:Wt,recordKey:ur,mode:ua,prefixName:qn,editableUtils:Tn}),Fa=ua==="edit"?ga:Nx(ga,J,ia);if(ua==="edit")return J.valueType==="option"?(0,S.jsx)(qt.Z,{children:Tn.actionRender((0,d.Z)((0,d.Z)({},ye),{},{index:J.index||Ze}))}):Fa;if(!J.render){var ai=p.isValidElement(Fa)||["string","number"].includes((0,A.Z)(Fa));return!(0,OE.Z)(Fa)&&ai?Fa:null}var Ca=J.render(Fa,ye,Ze,(0,d.Z)((0,d.Z)({},On),Tn),(0,d.Z)((0,d.Z)({},J),{},{isEditable:hr,type:"table"}));return kt(Ca)?Ca:Ca&&J.valueType==="option"&&Array.isArray(Ca)?(0,S.jsx)(qt.Z,{size:16,children:Ca}):Ca}function bS(ae){var J,xe=ae.columns,ye=ae.counter,Ze=ae.columnEmptyText,xt=ae.type,Mt=ae.editableUtils,Wt=ae.rowKey,en=Wt===void 0?"id":Wt,Tn=ae.childrenColumnName,On=Tn===void 0?"children":Tn,qn=new Map;return xe==null||(J=xe.map(function(nr,hr){var ur=nr.key,Mr=nr.dataIndex,wr=nr.valueEnum,ia=nr.valueType,ua=ia===void 0?"text":ia,ga=nr.children,Fa=nr.onFilter,ai=nr.filters,Ca=ai===void 0?[]:ai,ii=lt(ur||(Mr==null?void 0:Mr.toString()),hr),ci=!wr&&!ua&&!ga;if(ci)return(0,d.Z)({index:hr},nr);var $a=nr===b.Z.EXPAND_COLUMN||nr===b.Z.SELECTION_COLUMN;if($a)return{index:hr,isExtraColumns:!0,hideInSearch:!0,hideInTable:!1,hideInForm:!0,hideInSetting:!0,extraColumn:nr};var di=ye.columnsMap[ii]||{fixed:nr.fixed},Wa=function(){return Fa===!0?function(Ba,Ni){return _A(Ba,Ni,Mr)}:fs(Fa)},Ya=en,li=(0,d.Z)((0,d.Z)({index:hr,key:ii},nr),{},{title:rg(nr),valueEnum:wr,filters:Ca===!0?Ey((0,zt.h)(wr,void 0)).filter(function(ti){return ti&&ti.value!=="all"}):Ca,onFilter:Wa(),fixed:di.fixed,width:nr.width||(nr.fixed?200:void 0),children:nr.children?bS((0,d.Z)((0,d.Z)({},ae),{},{columns:nr==null?void 0:nr.children})):void 0,render:function(Ba,Ni,ji){typeof en=="function"&&(Ya=en(Ni,ji));var go;if(Reflect.has(Ni,Ya)){var Wi;go=Ni[Ya];var uo=qn.get(go)||[];(Wi=Ni[On])===null||Wi===void 0||Wi.forEach(function(Io){var Vo=Io[Ya];qn.has(Vo)||qn.set(Vo,uo.concat([ji,On]))})}var wo={columnProps:nr,text:Ba,rowData:Ni,index:ji,columnEmptyText:Ze,counter:ye,type:xt,subName:qn.get(go),editableUtils:Mt};return pP(wo)}});return yS(li)}))===null||J===void 0?void 0:J.filter(function(nr){return!nr.hideInTable})}var D2=["rowKey","tableClassName","action","tableColumn","type","pagination","rowSelection","size","defaultSize","tableStyle","toolbarDom","searchNode","style","cardProps","alertDom","name","onSortChange","onFilterChange","options","isLightFilter","className","cardBordered","editableUtils","getRowKey"],N2=["cardBordered","request","className","params","defaultData","headerTitle","postData","ghost","pagination","actionRef","columns","toolBarRender","onLoad","onRequestError","style","cardProps","tableStyle","tableClassName","columnsStateMap","onColumnsStateChange","options","search","name","onLoadingChange","rowSelection","beforeSearchSubmit","tableAlertRender","defaultClassName","formRef","type","columnEmptyText","toolbar","rowKey","manualRequest","polling","tooltip","revalidateOnFocus"];function L2(ae){var J=ae.rowKey,xe=ae.tableClassName,ye=ae.action,Ze=ae.tableColumn,xt=ae.type,Mt=ae.pagination,Wt=ae.rowSelection,en=ae.size,Tn=ae.defaultSize,On=ae.tableStyle,qn=ae.toolbarDom,nr=ae.searchNode,hr=ae.style,ur=ae.cardProps,Mr=ae.alertDom,wr=ae.name,ia=ae.onSortChange,ua=ae.onFilterChange,ga=ae.options,Fa=ae.isLightFilter,ai=ae.className,Ca=ae.cardBordered,ii=ae.editableUtils,ci=ae.getRowKey,$a=(0,_.Z)(ae,D2),di=by.useContainer(),Wa=(0,p.useMemo)(function(){var wo=function Io(Vo){return Vo.map(function(bs){var ts=lt(bs.key,bs.index),Ws=di.columnsMap[ts];return Ws&&Ws.show===!1?!1:bs.children?(0,d.Z)((0,d.Z)({},bs),{},{children:Io(bs.children)}):bs}).filter(Boolean)};return wo(Ze)},[di.columnsMap,Ze]),Ya=(0,p.useMemo)(function(){return Wa==null?void 0:Wa.every(function(wo){return wo.filters===!0&&wo.onFilter===!0||wo.filters===void 0&&wo.onFilter===void 0})},[Wa]),li=function(Io){var Vo=ii.newLineRecord||{},bs=Vo.options,ts=Vo.defaultValue;if(bs==null?void 0:bs.parentKey){var Ws,Al,Ql={data:Io,getRowKey:ci,row:(0,d.Z)((0,d.Z)({},ts),{},{map_row_parentKey:(Ws=it(bs==null?void 0:bs.parentKey))===null||Ws===void 0?void 0:Ws.toString()}),key:bs==null?void 0:bs.recordKey,childrenColumnName:((Al=ae.expandable)===null||Al===void 0?void 0:Al.childrenColumnName)||"children"};return Le(Ql,bs.position==="top"?"top":"update")}if((bs==null?void 0:bs.position)==="top")return[ts].concat((0,h.Z)(ye.dataSource));if(Mt&&(Mt==null?void 0:Mt.current)&&(Mt==null?void 0:Mt.pageSize)){var zs=(0,h.Z)(ye.dataSource);return(Mt==null?void 0:Mt.pageSize)>zs.length?(zs.push(ts),zs):(zs.splice((Mt==null?void 0:Mt.current)*(Mt==null?void 0:Mt.pageSize)-1,0,ts),zs)}return[].concat((0,h.Z)(ye.dataSource),[ts])},ti=function(){return(0,d.Z)((0,d.Z)({},$a),{},{size:en,rowSelection:Wt===!1?void 0:Wt,className:xe,style:On,columns:Wa.map(function(Io){return Io.isExtraColumns?Io.extraColumn:Io}),loading:ye.loading,dataSource:ii.newLineRecord?li(ye.dataSource):ye.dataSource,pagination:Mt,onChange:function(Vo,bs,ts,Ws){var Al;if((Al=$a.onChange)===null||Al===void 0||Al.call($a,Vo,bs,ts,Ws),Ya||ua((0,Yt.Z)(bs)),Array.isArray(ts)){var Ql=ts.reduce(function(Hs,Ul){return(0,d.Z)((0,d.Z)({},Hs),{},(0,v.Z)({},"".concat(Ul.field),Ul.order))},{});ia((0,Yt.Z)(Ql))}else{var zs,_c=(zs=ts.column)===null||zs===void 0?void 0:zs.sorter,hc=(_c==null?void 0:_c.toString())===_c;ia((0,Yt.Z)((0,v.Z)({},"".concat(hc?_c:ts.field),ts.order))||{})}}})},Ba=(0,S.jsx)(b.Z,(0,d.Z)((0,d.Z)({},ti()),{},{rowKey:J})),Ni=ae.tableViewRender?ae.tableViewRender((0,d.Z)((0,d.Z)({},ti()),{},{rowSelection:Wt!==!1?Wt:void 0}),Ba):Ba,ji=(0,p.useMemo)(function(){if(ae.editable&&!ae.name){var wo,Io,Vo,bs;return(0,S.jsxs)(S.Fragment,{children:[qn,Mr,(0,p.createElement)(O.ZP,(0,d.Z)((0,d.Z)({},(wo=ae.editable)===null||wo===void 0?void 0:wo.formProps),{},{formRef:(Io=ae.editable)===null||Io===void 0||(Vo=Io.formProps)===null||Vo===void 0?void 0:Vo.formRef,component:!1,form:(bs=ae.editable)===null||bs===void 0?void 0:bs.form,onValuesChange:ii.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:ae.dateFormatter}),Ni)]})}return(0,S.jsxs)(S.Fragment,{children:[qn,Mr,Ni]})},[Mr,ae.loading,!!ae.editable,Ni,qn]),go=ur===!1||!!ae.name?ji:(0,S.jsx)(k.ZP,(0,d.Z)((0,d.Z)({ghost:ae.ghost,bordered:$e("table",Ca),bodyStyle:qn?{paddingTop:0}:{padding:0}},ur),{},{children:ji})),Wi=function(){return ae.tableRender?ae.tableRender(ae,go,{toolbar:qn||void 0,alert:Mr||void 0,table:Ni||void 0}):go},uo=(0,S.jsxs)("div",{className:ze()(ai,(0,v.Z)({},"".concat(ai,"-polling"),ye.pollingLoading)),style:hr,ref:di.rootDomRef,children:[Fa?null:nr,xt!=="form"&&ae.tableExtraRender&&(0,S.jsx)("div",{className:"".concat(ai,"-extra"),children:ae.tableExtraRender(ae,ye.dataSource||[])}),xt!=="form"&&Wi()]});return!ga||!(ga==null?void 0:ga.fullScreen)?uo:(0,S.jsx)(w.ZP,{getPopupContainer:function(){return di.rootDomRef.current||document.body},children:uo})}var fI={},F2=function(J){var xe,ye=J.cardBordered,Ze=J.request,xt=J.className,Mt=J.params,Wt=Mt===void 0?fI:Mt,en=J.defaultData,Tn=J.headerTitle,On=J.postData,qn=J.ghost,nr=J.pagination,hr=J.actionRef,ur=J.columns,Mr=ur===void 0?[]:ur,wr=J.toolBarRender,ia=J.onLoad,ua=J.onRequestError,ga=J.style,Fa=J.cardProps,ai=J.tableStyle,Ca=J.tableClassName,ii=J.columnsStateMap,ci=J.onColumnsStateChange,$a=J.options,di=J.search,Wa=J.name,Ya=J.onLoadingChange,li=J.rowSelection,ti=li===void 0?!1:li,Ba=J.beforeSearchSubmit,Ni=J.tableAlertRender,ji=J.defaultClassName,go=J.formRef,Wi=J.type,uo=Wi===void 0?"table":Wi,wo=J.columnEmptyText,Io=wo===void 0?"-":wo,Vo=J.toolbar,bs=J.rowKey,ts=J.manualRequest,Ws=J.polling,Al=J.tooltip,Ql=J.revalidateOnFocus,zs=Ql===void 0?!1:Ql,_c=(0,_.Z)(J,N2),hc=ze()(ji,xt),Hs=(0,p.useRef)(),Ul=(0,p.useRef)(),As=go||Ul;(0,p.useImperativeHandle)(hr,function(){return Hs.current});var Ks=(0,Ge.Z)(ti?(ti==null?void 0:ti.defaultSelectedRowKeys)||[]:void 0,{value:ti?ti.selectedRowKeys:void 0}),Cc=(0,y.Z)(Ks,2),qc=Cc[0],Of=Cc[1],_f=(0,p.useRef)([]),sd=(0,p.useCallback)(function(rl,sc){Of(rl),(!ti||!(ti==null?void 0:ti.selectedRowKeys))&&(_f.current=sc)},[Of]),ud=(0,Ge.Z)(function(){if(!(ts||di!==!1))return{}}),Su=(0,y.Z)(ud,2),Uu=Su[0],mp=Su[1],wv=(0,Ge.Z)({}),Au=(0,y.Z)(wv,2),qd=Au[0],Ad=Au[1],ad=(0,Ge.Z)({}),fp=(0,y.Z)(ad,2),Tv=fp[0],hv=fp[1];(0,p.useEffect)(function(){var rl=Ct(Mr),sc=rl.sort,hf=rl.filter;Ad(hf),hv(sc)},[]);var Bh=(0,F.YB)(),Mh=(0,A.Z)(nr)==="object"?nr:{defaultCurrent:1,defaultPageSize:20,pageSize:20,current:1},xp=by.useContainer(),Sh=(0,p.useMemo)(function(){if(!!Ze)return function(){var rl=(0,g.Z)((0,x.Z)().mark(function sc(hf){var ld,cp;return(0,x.Z)().wrap(function(pd){for(;;)switch(pd.prev=pd.next){case 0:return ld=(0,d.Z)((0,d.Z)((0,d.Z)({},hf||{}),Uu),Wt),delete ld._timestamp,pd.next=4,Ze(ld,Tv,qd);case 4:return cp=pd.sent,pd.abrupt("return",cp);case 6:case"end":return pd.stop()}},sc)}));return function(sc){return rl.apply(this,arguments)}}()},[Uu,Wt,qd,Tv,Ze]),Qf=vS(Sh,en,{pageInfo:nr===!1?!1:Mh,loading:J.loading,dataSource:J.dataSource,onDataSourceChange:J.onDataSourceChange,onLoad:ia,onLoadingChange:Ya,onRequestError:ua,postData:On,revalidateOnFocus:zs,manual:Uu===void 0,polling:Ws,effects:[de(Wt),de(Uu),de(qd),de(Tv)],debounceTime:J.debounceTime,onPageInfoChange:function(sc){var hf,ld;uo==="list"||!nr||!Sh||(nr==null||(hf=nr.onChange)===null||hf===void 0||hf.call(nr,sc.current,sc.pageSize),nr==null||(ld=nr.onShowSizeChange)===null||ld===void 0||ld.call(nr,sc.current,sc.pageSize))}});(0,p.useEffect)(function(){var rl;if(!(J.manualRequest||!J.request||!zs||((rl=J.form)===null||rl===void 0?void 0:rl.ignoreRules))){var sc=function(){document.visibilityState==="visible"&&Qf.reload()};return document.addEventListener("visibilitychange",sc),function(){return document.removeEventListener("visibilitychange",sc)}}},[]);var Nm=p.useRef(new Map),av=p.useMemo(function(){return typeof bs=="function"?bs:function(rl,sc){var hf;return sc===-1?rl==null?void 0:rl[bs]:J.name?sc==null?void 0:sc.toString():(hf=rl==null?void 0:rl[bs])!==null&&hf!==void 0?hf:sc==null?void 0:sc.toString()}},[J.name,bs]);(0,p.useMemo)(function(){var rl;if((rl=Qf.dataSource)===null||rl===void 0?void 0:rl.length){var sc=new Map,hf=Qf.dataSource.map(function(ld){var cp=av(ld,-1);return sc.set(cp,ld),cp});return Nm.current=sc,hf}return[]},[Qf.dataSource,av]),(0,p.useEffect)(function(){_f.current=qc==null?void 0:qc.map(function(rl){var sc;return(sc=Nm.current)===null||sc===void 0?void 0:sc.get(rl)})},[qc]);var yu=(0,p.useMemo)(function(){var rl=nr===!1?!1:(0,d.Z)({},nr),sc=(0,d.Z)((0,d.Z)({},Qf.pageInfo),{},{setPageInfo:function(ld){var cp=ld.pageSize,rp=ld.current,pd=Qf.pageInfo;if(cp===pd.pageSize||pd.current===1){Qf.setPageInfo({pageSize:cp,current:rp});return}Ze&&Qf.setDataSource([]),Qf.setPageInfo({pageSize:cp,current:uo==="list"?rp:1})}});return Ze&&rl&&(delete rl.onChange,delete rl.onShowSizeChange),be(rl,sc,Bh)},[nr,Qf,Bh]);et(function(){var rl;J.request&&Wt&&Qf.dataSource&&(Qf==null||(rl=Qf.pageInfo)===null||rl===void 0?void 0:rl.current)!==1&&Qf.setPageInfo({current:1})},[Wt]),xp.setPrefixName(J.name);var kp=(0,p.useCallback)(function(){ti&&ti.onChange&&ti.onChange([],[],{type:"none"}),sd([],[])},[ti,sd]);xp.setAction(Hs.current),xp.propsRef.current=J;var Md=Xt((0,d.Z)((0,d.Z)({},J.editable),{},{tableName:J.name,getRowKey:av,childrenColumnName:((xe=J.expandable)===null||xe===void 0?void 0:xe.childrenColumnName)||"children",dataSource:Qf.dataSource||[],setDataSource:function(sc){var hf,ld;(hf=J.editable)===null||hf===void 0||(ld=hf.onValuesChange)===null||ld===void 0||ld.call(hf,void 0,sc),Qf.setDataSource(sc)}}));Ae(Hs,Qf,{fullScreen:function(){var sc;if(!(!((sc=xp.rootDomRef)===null||sc===void 0?void 0:sc.current)||!document.fullscreenEnabled))if(document.fullscreenElement)document.exitFullscreen();else{var hf;(hf=xp.rootDomRef)===null||hf===void 0||hf.current.requestFullscreen()}},onCleanSelected:function(){kp()},resetAll:function(){var sc;kp(),Ad({}),hv({}),xp.setKeyWords(void 0),Qf.setPageInfo({current:1}),As==null||(sc=As.current)===null||sc===void 0||sc.resetFields(),mp({})},editableUtils:Md}),hr&&(hr.current=Hs.current);var kd=(0,p.useMemo)(function(){var rl;return bS({columns:Mr,counter:xp,columnEmptyText:Io,type:uo,editableUtils:Md,rowKey:bs,childrenColumnName:(rl=J.expandable)===null||rl===void 0?void 0:rl.childrenColumnName}).sort(mA(xp.columnsMap))},[Mr,xp==null?void 0:xp.sortKeyColumns,xp==null?void 0:xp.columnsMap,Io,uo,Md.editableKeys&&Md.editableKeys.join(",")]);qe(function(){if(kd&&kd.length>0){var rl=kd.map(function(sc){return lt(sc.key,sc.index)});xp.setSortKeyColumns(rl)}},[kd],["render","renderFormItem"],100),et(function(){var rl=Qf.pageInfo,sc=nr||{},hf=sc.current,ld=hf===void 0?rl==null?void 0:rl.current:hf,cp=sc.pageSize,rp=cp===void 0?rl==null?void 0:rl.pageSize:cp;nr&&(ld||rp)&&(rp!==(rl==null?void 0:rl.pageSize)||ld!==(rl==null?void 0:rl.current))&&Qf.setPageInfo({pageSize:rp||rl.pageSize,current:ld||rl.current})},[nr&&nr.pageSize,nr&&nr.current]);var mv=(0,d.Z)((0,d.Z)({selectedRowKeys:qc},ti),{},{onChange:function(sc,hf,ld){ti&&ti.onChange&&ti.onChange(sc,hf,ld),sd(sc,hf)}}),Jp=di!==!1&&(di==null?void 0:di.filterType)==="light",iv=function(sc){if($a&&$a.search){var hf,ld,cp=$a.search===!0?{}:$a.search,rp=cp.name,pd=rp===void 0?"keyword":rp,Wv=(hf=$a.search)===null||hf===void 0||(ld=hf.onSearch)===null||ld===void 0?void 0:ld.call(hf,xp.keyWords);if(Wv!==!1){mp((0,d.Z)((0,d.Z)({},sc),{},(0,v.Z)({},pd,xp.keyWords)));return}}mp(sc)},kh=(0,p.useMemo)(function(){if((0,A.Z)(Qf.loading)==="object"){var rl;return((rl=Qf.loading)===null||rl===void 0?void 0:rl.spinning)||!1}return Qf.loading},[Qf.loading]),ym=di===!1&&uo!=="form"?null:(0,S.jsx)(lb,{pagination:yu,beforeSearchSubmit:Ba,action:Hs,columns:Mr,onFormSearchSubmit:function(sc){iv(sc)},ghost:qn,onReset:J.onReset,onSubmit:J.onSubmit,loading:!!kh,manualRequest:ts,search:di,form:J.form,formRef:As,type:J.type||"table",cardBordered:J.cardBordered,dateFormatter:J.dateFormatter}),cm=wr===!1?null:(0,S.jsx)(lI,{headerTitle:Tn,hideToolbar:$a===!1&&!Tn&&!wr&&!Vo&&!Jp,selectedRows:_f.current,selectedRowKeys:qc,tableColumn:kd,tooltip:Al,toolbar:Vo,onFormSearchSubmit:function(sc){mp((0,d.Z)((0,d.Z)({},Uu),sc))},searchNode:Jp?ym:null,options:$a,actionRef:Hs,toolBarRender:wr}),Ov=ti!==!1?(0,S.jsx)(rr,{selectedRowKeys:qc,selectedRows:_f.current,onCleanSelected:kp,alertOptionRender:_c.tableAlertOptionRender,alertInfoRender:Ni,alwaysShowAlert:ti==null?void 0:ti.alwaysShowAlert}):null;return(0,S.jsx)(L2,(0,d.Z)((0,d.Z)({},J),{},{name:Wa,size:xp.tableSize,onSizeChange:xp.setTableSize,pagination:yu,searchNode:ym,rowSelection:ti!==!1?mv:void 0,className:hc,tableColumn:kd,isLightFilter:Jp,action:Qf,alertDom:Ov,toolbarDom:cm,onSortChange:hv,onFilterChange:Ad,editableUtils:Md,getRowKey:av}))},vv=function(J){var xe=(0,p.useContext)(w.ZP.ConfigContext),ye=xe.getPrefixCls,Ze=J.ErrorBoundary===!1?p.Fragment:J.ErrorBoundary||Rt.Z;return(0,S.jsx)(by.Provider,{initialState:J,children:(0,S.jsx)(F.oK,{children:(0,S.jsx)(Ze,{children:(0,S.jsx)(F2,(0,d.Z)({defaultClassName:ye("pro-table")},J))})})})};vv.Summary=b.Z.Summary;var xS=vv},34008:function(oe,N,o){"use strict";var x=o(51756),g=o(72673);N.ZP=g.Z},57490:function(oe,N,o){"use strict";o.d(N,{Z:function(){return d}});var x=o(28481),g=o(67294);function A(_){var p=g.useRef();p.current=_;var S=g.useCallback(function(){for(var k,O=arguments.length,F=new Array(O),D=0;D<O;D++)F[D]=arguments[D];return(k=p.current)===null||k===void 0?void 0:k.call.apply(k,[p].concat(F))},[]);return S}function y(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var M=y()?g.useLayoutEffect:g.useEffect,w=function(p,S){var k=g.useRef(!0);M(function(){return p(k.current)},S),M(function(){return k.current=!1,function(){k.current=!0}},[])},m=function(p,S){w(function(k){if(!k)return p()},S)},b=null;function v(_){var p=g.useRef(!1),S=g.useState(_),k=(0,x.Z)(S,2),O=k[0],F=k[1];g.useEffect(function(){return p.current=!1,function(){p.current=!0}},[]);function D(Z,W){W&&p.current||F(Z)}return[O,D]}function h(_){return _!==void 0}function d(_,p){var S=p||{},k=S.defaultValue,O=S.value,F=S.onChange,D=S.postState,Z=v(function(){return h(O)?O:h(k)?typeof k=="function"?k():k:typeof _=="function"?_():_}),W=(0,x.Z)(Z,2),U=W[0],L=W[1],V=O!==void 0?O:U,$=D?D(V):V,G=A(F),z=v([V]),K=(0,x.Z)(z,2),re=K[0],ne=K[1];m(function(){var ue=re[0];U!==ue&&G(U,ue)},[re]),m(function(){h(O)||L(O)},[O]);var Q=A(function(ue,he){L(ue,he),ne([V],he)});return[$,Q]}},63134:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g,A){for(var y=g,M=0;M<A.length;M+=1){if(y==null)return;y=y[A[M]]}return y}},8230:function(oe,N,o){"use strict";var x=o(50111),g=o(55419),A=o(6610),y=o(5991),M=o(10379),w=o(44144),m=o(85893),b=o(67294),v=function(h){(0,M.Z)(_,h);var d=(0,w.Z)(_);function _(){var p;(0,A.Z)(this,_);for(var S=arguments.length,k=new Array(S),O=0;O<S;O++)k[O]=arguments[O];return p=d.call.apply(d,[this].concat(k)),p.state={hasError:!1,errorInfo:""},p}return(0,y.Z)(_,[{key:"componentDidCatch",value:function(S,k){console.log(S,k)}},{key:"render",value:function(){return this.state.hasError?(0,m.jsx)(g.ZP,{status:"error",title:"Something went wrong.",extra:this.state.errorInfo}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(S){return{hasError:!0,errorInfo:S.message}}}]),_}(b.Component);N.Z=v},55502:function(oe,N,o){"use strict";var x=o(96156),g=o(35635),A=o(23799),y=o(85893),M=o(54549),w=o(57254),m=o(51756),b=o(35510),v=o.n(b),h=o(67294),d=o(83931),_=o.n(d),p=function(k,O){var F,D=k.label,Z=k.onClear,W=k.value,U=k.size,L=U===void 0?"middle":U,V=k.disabled,$=k.onLabelClick,G=k.ellipsis,z=k.placeholder,K=k.className,re=k.style,ne=k.formatter,Q=k.bordered,ue=k.allowClear,he=ue===void 0?!0:ue,Ee=(0,h.useContext)(A.ZP.ConfigContext),ce=Ee.getPrefixCls,ve=ce("pro-core-field-label"),fe=(0,m.YB)(),we=(0,h.useRef)(null),me=(0,h.useRef)(null);(0,h.useImperativeHandle)(O,function(){return{labelRef:me,clearRef:we}});var Pe=function(Je){return ne?ne(Je):Array.isArray(Je)?Je.join(","):Je},pe=function(Je,ke){if(ke!=null&&ke!==""&&(!Array.isArray(ke)||ke.length)){var De,Fe,Qe=Je?(0,y.jsxs)("span",{onClick:$,className:"".concat(ve,"-text"),children:[Je,": "]}):"",qe=Pe(ke);if(!G)return(0,y.jsxs)("span",{style:{display:"inline-flex",alignItems:"center"},children:[Qe,Pe(ke)]});var et=41,dt=function(){var wt=Array.isArray(ke)&&ke.length>1,Vt=fe.getMessage("form.lightFilter.itemUnit","\u9879");return typeof qe=="string"&&qe.length>et&&wt?"...".concat(ke.length).concat(Vt):""},Ke=dt();return(0,y.jsxs)("span",{title:typeof qe=="string"?qe:void 0,style:{display:"inline-flex",alignItems:"center"},children:[Qe,(0,y.jsx)("span",{style:{paddingLeft:4},children:typeof qe=="string"?qe==null||(De=qe.toString())===null||De===void 0||(Fe=De.substr)===null||Fe===void 0?void 0:Fe.call(De,0,et):qe}),Ke]})}return Je||z};return(0,y.jsxs)("span",{className:v()(ve,"".concat(ve,"-").concat(L),(F={},(0,x.Z)(F,"".concat(ve,"-active"),!!W||W===0),(0,x.Z)(F,"".concat(ve,"-disabled"),V),(0,x.Z)(F,"".concat(ve,"-bordered"),Q),(0,x.Z)(F,"".concat(ve,"-allow-clear"),he),F),K),style:re,ref:me,children:[pe(D,W),(W||W===0)&&he&&(0,y.jsx)(M.Z,{role:"button",title:"\u6E05\u9664",className:v()("".concat(ve,"-icon"),"".concat(ve,"-close")),onClick:function(Je){Z&&!V&&Z(),Je.stopPropagation()},ref:we}),(0,y.jsx)(w.Z,{className:v()("".concat(ve,"-icon"),"".concat(ve,"-arrow"))})]})};N.Z=h.forwardRef(p)},15049:function(oe,N,o){"use strict";o.d(N,{Z:function(){return O}});var x=o(28991),g=o(19597),A=o(3531),y=o(35635),M=o(23799),w=o(85893),m=o(67294),b=o(13753),v=o(48429),h=o(51756),d=o(93562),_=function(D){var Z=(0,h.YB)(),W=D.onClear,U=D.onConfirm,L=D.disabled,V=D.footerRender,$=(0,m.useContext)(M.ZP.ConfigContext),G=$.getPrefixCls,z=G("pro-core-dropdown-footer"),K=[(0,w.jsx)(v.Z,{style:{visibility:W?"visible":"hidden"},type:"link",size:"small",disabled:L,onClick:function(Q){W&&W(Q),Q.stopPropagation()},children:Z.getMessage("form.lightFilter.clear","\u6E05\u9664")},"clear"),(0,w.jsx)(v.Z,{"data-type":"confirm",type:"primary",size:"small",onClick:U,disabled:L,children:Z.getMessage("form.lightFilter.confirm","\u786E\u8BA4")},"confirm")];if(V===!1||(V==null?void 0:V(U,W))===!1)return null;var re=(V==null?void 0:V(U,W))||K;return(0,w.jsx)("div",{className:z,onClick:function(Q){return Q.target.getAttribute("data-type")!=="confirm"&&Q.stopPropagation()},children:re})},p=_,S=o(28152),k=function(D){var Z=D.children,W=D.label,U=D.footer,L=D.disabled,V=D.onVisibleChange,$=D.visible,G=D.footerRender,z=D.placement,K=(0,m.useContext)(M.ZP.ConfigContext),re=K.getPrefixCls,ne=re("pro-core-field-dropdown");return(0,w.jsx)(A.Z,{disabled:L,placement:z,trigger:["click"],visible:$,onVisibleChange:V,overlay:(0,w.jsxs)("div",{className:"".concat(ne,"-overlay"),children:[(0,w.jsx)("div",{className:"".concat(ne,"-content"),children:Z}),U&&(0,w.jsx)(p,(0,x.Z)({disabled:L,footerRender:G},U))]}),children:(0,w.jsx)("span",{className:"".concat(ne,"-label"),children:W})})},O=k},64370:function(oe,N,o){"use strict";var x=o(28991),g=o(81984),A=o(95455),y=o(96156),M=o(35635),w=o(23799),m=o(85893),b=o(56717),v=o(35510),h=o.n(v),d=o(67294),_=o(47369),p=o.n(_),S=function(O){var F=O.label,D=O.tooltip,Z=O.ellipsis,W=O.subTitle,U=(0,d.useContext)(w.ZP.ConfigContext),L=U.getPrefixCls;if(!D&&!W)return(0,m.jsx)(m.Fragment,{children:F});var V=L("pro-core-label-tip"),$=typeof D=="string"||d.isValidElement(D)?{title:D}:D,G=($==null?void 0:$.icon)||(0,m.jsx)(b.Z,{});return(0,m.jsxs)("div",{className:V,onMouseDown:function(K){return K.stopPropagation()},onMouseLeave:function(K){return K.stopPropagation()},onMouseMove:function(K){return K.stopPropagation()},children:[(0,m.jsx)("div",{className:h()("".concat(V,"-title"),(0,y.Z)({},"".concat(V,"-title-ellipsis"),Z)),children:F}),W&&(0,m.jsx)("div",{className:"".concat(V,"-subtitle"),children:W}),D&&(0,m.jsx)(A.Z,(0,x.Z)((0,x.Z)({},$),{},{children:(0,m.jsx)("span",{className:"".concat(V,"-icon"),children:G})}))]})};N.Z=d.memo(S)},88264:function(oe,N,o){"use strict";var x=o(67294),g=x.createContext({});N.Z=g},8800:function(oe,N,o){"use strict";o.d(N,{Cl:function(){return w}});var x=o(90484),g=o(56051),A=o.n(g),y=o(14527),M=o(49272),w={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-\\QQ",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function m(d){return Object.prototype.toString.call(d)==="[object Object]"}function b(d){if(m(d)===!1)return!1;var _=d.constructor;if(_===void 0)return!0;var p=_.prototype;return!(m(p)===!1||p.hasOwnProperty("isPrototypeOf")===!1)}var v=function(_,p,S){if(!p)return _;if(A().isMoment(_)){if(p==="number")return _.valueOf();if(p==="string")return _.format(w[S]||"YYYY-MM-DD HH:mm:ss");if(typeof p=="string"&&p!=="string")return _.format(p);if(typeof p=="function")return p(_,S)}return _},h=function d(_,p,S,k,O){var F={};return typeof window=="undefined"||(0,x.Z)(_)!=="object"||(0,M.Z)(_)||_ instanceof Blob||Array.isArray(_)?_:(Object.keys(_).forEach(function(D){var Z=O?[O,D].flat(1):[D],W=(0,y.Z)(S,Z)||"text",U="text",L;typeof W=="string"?U=W:W&&(U=W.valueType,L=W.dateFormat);var V=_[D];if(!((0,M.Z)(V)&&k)){if(b(V)&&!Array.isArray(V)&&!A().isMoment(V)){F[D]=d(V,p,S,k,[D]);return}if(Array.isArray(V)){F[D]=V.map(function($,G){return A().isMoment($)?v($,L||p,U):d($,p,S,k,[D,"".concat(G)])});return}F[D]=v(V,L||p,U)}}),F)};N.ZP=h},60250:function(oe,N,o){"use strict";var x=o(55507),g=o(92137),A=o(67294),y=o(52003);function M(w,m){var b=(0,y.J)(w),v=(0,A.useRef)(),h=(0,A.useCallback)(function(){v.current&&(clearTimeout(v.current),v.current=null)},[]),d=(0,A.useCallback)((0,g.Z)((0,x.Z)().mark(function _(){var p,S,k,O=arguments;return(0,x.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:for(p=O.length,S=new Array(p),k=0;k<p;k++)S[k]=O[k];if(!(m===0||m===void 0)){D.next=3;break}return D.abrupt("return",b.apply(void 0,S));case 3:return h(),D.abrupt("return",new Promise(function(Z){v.current=setTimeout((0,g.Z)((0,x.Z)().mark(function W(){return(0,x.Z)().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.t0=Z,L.next=3,b.apply(void 0,S);case 3:L.t1=L.sent,(0,L.t0)(L.t1);case 5:case"end":return L.stop()}},W)})),m)}));case 5:case"end":return D.stop()}},_)})),[b,h,m]);return(0,A.useEffect)(function(){return h},[h]),{run:d,cancel:h}}N.Z=M},33219:function(oe,N,o){"use strict";var x=o(67294),g=function(y){var M=(0,x.useRef)();return(0,x.useEffect)(function(){M.current=y}),M.current};N.Z=g},52003:function(oe,N,o){"use strict";o.d(N,{J:function(){return g}});var x=o(67294),g=function(y){var M=(0,x.useRef)(null);return M.current=y,(0,x.useCallback)(function(){for(var w,m=arguments.length,b=new Array(m),v=0;v<m;v++)b[v]=arguments[v];return(w=M.current)===null||w===void 0?void 0:w.call.apply(w,[M].concat(b))},[])}},6797:function(oe,N,o){"use strict";var x=o(82195),g=typeof x!="undefined"&&x.versions!=null&&x.versions.node!=null,A=function(){return typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.matchMedia!="undefined"&&!g};N.Z=A},45861:function(oe,N,o){"use strict";var x=o(11965),g=o(90484);function A(y,M,w,m){if(y===M)return!0;if(y&&M&&(0,g.Z)(y)==="object"&&(0,g.Z)(M)==="object"){if(y.constructor!==M.constructor)return!1;var b,v,h;if(Array.isArray(y)){if(b=y.length,b!=M.length)return!1;for(v=b;v--!=0;)if(!A(y[v],M[v],w,m))return!1;return!0}if(y instanceof Map&&M instanceof Map){if(y.size!==M.size)return!1;var d=(0,x.Z)(y.entries()),_;try{for(d.s();!(_=d.n()).done;)if(v=_.value,!M.has(v[0]))return!1}catch(D){d.e(D)}finally{d.f()}var p=(0,x.Z)(y.entries()),S;try{for(p.s();!(S=p.n()).done;)if(v=S.value,!A(v[1],M.get(v[0]),w,m))return!1}catch(D){p.e(D)}finally{p.f()}return!0}if(y instanceof Set&&M instanceof Set){if(y.size!==M.size)return!1;var k=(0,x.Z)(y.entries()),O;try{for(k.s();!(O=k.n()).done;)if(v=O.value,!M.has(v[0]))return!1}catch(D){k.e(D)}finally{k.f()}return!0}if(ArrayBuffer.isView(y)&&ArrayBuffer.isView(M)){if(b=y.length,b!=M.length)return!1;for(v=b;v--!=0;)if(y[v]!==M[v])return!1;return!0}if(y.constructor===RegExp)return y.source===M.source&&y.flags===M.flags;if(y.valueOf!==Object.prototype.valueOf&&y.valueOf)return y.valueOf()===M.valueOf();if(y.toString!==Object.prototype.toString&&y.toString)return y.toString()===M.toString();if(h=Object.keys(y),b=h.length,b!==Object.keys(M).length)return!1;for(v=b;v--!=0;)if(!Object.prototype.hasOwnProperty.call(M,h[v]))return!1;for(v=b;v--!=0;){var F=h[v];if(!(w==null?void 0:w.includes(F))&&!(F==="_owner"&&y.$$typeof)&&!A(y[F],M[F],w,m))return m&&console.log(F),!1}return!0}return y!==y&&M!==M}N.Z=A},49272:function(oe,N){"use strict";var o=function(g){return g==null};N.Z=o},68450:function(oe,N,o){"use strict";o.d(N,{T:function(){return A}});var x=o(28991),g=o(90484),A=function(){for(var M={},w=arguments.length,m=new Array(w),b=0;b<w;b++)m[b]=arguments[b];for(var v=m.length,h,d=0;d<v;d+=1)for(h in m[d])m[d].hasOwnProperty(h)&&((0,g.Z)(M[h])==="object"&&(0,g.Z)(m[d][h])==="object"&&M[h]!==void 0&&M[h]!==null&&!Array.isArray(M[h])&&!Array.isArray(m[d][h])?M[h]=(0,x.Z)((0,x.Z)({},M[h]),m[d][h]):M[h]=m[d][h]);return M}},63746:function(oe,N,o){"use strict";o.d(N,{x:function(){return A}});var x=0,g=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window=="undefined"||!window.crypto)return(x+=1).toFixed(0);for(var w="",m=crypto.getRandomValues(new Uint8Array(M));M--;){var b=63&m[M];w+=b<36?b.toString(36):b<62?(b-26).toString(36).toUpperCase():b<63?"_":"-"}return w},A=function(){return typeof window=="undefined"?g():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():g()}},78904:function(oe,N){"use strict";var o=function(g){var A={};if(Object.keys(g||{}).forEach(function(y){g[y]!==void 0&&(A[y]=g[y])}),!(Object.keys(A).length<1))return A};N.Z=o},24863:function(oe,N,o){"use strict";o.d(N,{h:function(){return x}});function x(g){if(typeof g=="function"){for(var A=arguments.length,y=new Array(A>1?A-1:0),M=1;M<A;M++)y[M-1]=arguments[M];return g.apply(void 0,y)}return g}},69270:function(oe,N,o){"use strict";var x=o(28481),g=o(65208);function A(y,M){var w=(0,g.Z)(y,M),m=(0,x.Z)(w,2),b=m[0],v=m[1];return[b,v]}N.Z=A},65208:function(oe,N,o){"use strict";o.d(N,{Z:function(){return d}});var x=o(28481),g=o(67294);function A(_){var p=g.useRef();p.current=_;var S=g.useCallback(function(){for(var k,O=arguments.length,F=new Array(O),D=0;D<O;D++)F[D]=arguments[D];return(k=p.current)===null||k===void 0?void 0:k.call.apply(k,[p].concat(F))},[]);return S}function y(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var M=y()?g.useLayoutEffect:g.useEffect,w=function(p,S){var k=g.useRef(!0);M(function(){return p(k.current)},S),M(function(){return k.current=!1,function(){k.current=!0}},[])},m=function(p,S){w(function(k){if(!k)return p()},S)},b=null;function v(_){var p=g.useRef(!1),S=g.useState(_),k=(0,x.Z)(S,2),O=k[0],F=k[1];g.useEffect(function(){return p.current=!1,function(){p.current=!0}},[]);function D(Z,W){W&&p.current||F(Z)}return[O,D]}function h(_){return _!==void 0}function d(_,p){var S=p||{},k=S.defaultValue,O=S.value,F=S.onChange,D=S.postState,Z=v(function(){return h(O)?O:h(k)?typeof k=="function"?k():k:typeof _=="function"?_():_}),W=(0,x.Z)(Z,2),U=W[0],L=W[1],V=O!==void 0?O:U,$=D?D(V):V,G=A(F),z=v([V]),K=(0,x.Z)(z,2),re=K[0],ne=K[1];m(function(){var ue=re[0];U!==ue&&G(U,ue)},[re]),m(function(){h(O)||L(O)},[O]);var Q=A(function(ue,he){L(ue,he),ne([V],he)});return[$,Q]}},14527:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g,A){for(var y=g,M=0;M<A.length;M+=1){if(y==null)return;y=y[A[M]]}return y}},89539:function(oe,N,o){"use strict";o.d(N,{Z:function(){return w}});var x=o(28991),g=o(85061),A=o(99809),y=o(14527);function M(d,_,p,S){if(!_.length)return p;var k=(0,A.Z)(_),O=k[0],F=k.slice(1),D;return!d&&typeof O=="number"?D=[]:Array.isArray(d)?D=(0,g.Z)(d):D=(0,x.Z)({},d),S&&p===void 0&&F.length===1?delete D[O][F[0]]:D[O]=M(D[O],F,p,S),D}function w(d,_,p){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return _.length&&S&&p===void 0&&!(0,y.Z)(d,_.slice(0,-1))?d:M(d,_,p,S)}function m(d){return _typeof(d)==="object"&&d!==null&&Object.getPrototypeOf(d)===Object.prototype}function b(d){return Array.isArray(d)?[]:{}}var v=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function h(){for(var d=arguments.length,_=new Array(d),p=0;p<d;p++)_[p]=arguments[p];var S=b(_[0]);return _.forEach(function(k){function O(F,D){var Z=new Set(D),W=get(k,F),U=Array.isArray(W);if(U||m(W)){if(!Z.has(W)){Z.add(W);var L=get(S,F);U?S=w(S,F,[]):(!L||_typeof(L)!=="object")&&(S=w(S,F,b(W))),v(W).forEach(function(V){O([].concat(_toConsumableArray(F),[V]),Z)})}}else S=w(S,F,W)}O([])}),S}},98480:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var o=function(A,y){var M=A.nodes,w=A.edges,m=[],b={};if(!M)throw new Error("invalid nodes data!");return M&&M.forEach(function(v,h){b[v.id]=h;var d=[];m.push(d)}),w&&w.forEach(function(v){var h=v.source,d=v.target,_=b[h],p=b[d];!_&&_!==0||!p&&p!==0||(m[_][p]=1,y||(m[p][_]=1))}),m},x=o;N.default=x},88958:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),Object.defineProperty(N,"GADDIAsync",{enumerable:!0,get:function(){return x.GADDIAsync}}),Object.defineProperty(N,"connectedComponentAsync",{enumerable:!0,get:function(){return x.connectedComponentAsync}}),N.default=void 0,Object.defineProperty(N,"detectAllCyclesAsync",{enumerable:!0,get:function(){return x.detectAllCyclesAsync}}),Object.defineProperty(N,"detectAllDirectedCycleAsync",{enumerable:!0,get:function(){return x.detectAllDirectedCycleAsync}}),Object.defineProperty(N,"detectAllUndirectedCycleAsync",{enumerable:!0,get:function(){return x.detectAllUndirectedCycleAsync}}),Object.defineProperty(N,"detectCycleAsync",{enumerable:!0,get:function(){return x.detectCycleAsync}}),N.detectDirectedCycleAsync=void 0,Object.defineProperty(N,"dijkstraAsync",{enumerable:!0,get:function(){return x.dijkstraAsync}}),Object.defineProperty(N,"findAllPathAsync",{enumerable:!0,get:function(){return x.findAllPathAsync}}),Object.defineProperty(N,"findShortestPathAsync",{enumerable:!0,get:function(){return x.findShortestPathAsync}}),Object.defineProperty(N,"floydWarshallAsync",{enumerable:!0,get:function(){return x.floydWarshallAsync}}),Object.defineProperty(N,"getAdjMatrixAsync",{enumerable:!0,get:function(){return x.getAdjMatrixAsync}}),Object.defineProperty(N,"getDegreeAsync",{enumerable:!0,get:function(){return x.getDegreeAsync}}),Object.defineProperty(N,"getInDegreeAsync",{enumerable:!0,get:function(){return x.getInDegreeAsync}}),Object.defineProperty(N,"getNeighborsAsync",{enumerable:!0,get:function(){return x.getNeighborsAsync}}),Object.defineProperty(N,"getOutDegreeAsync",{enumerable:!0,get:function(){return x.getOutDegreeAsync}}),Object.defineProperty(N,"labelPropagationAsync",{enumerable:!0,get:function(){return x.labelPropagationAsync}}),Object.defineProperty(N,"louvainAsync",{enumerable:!0,get:function(){return x.louvainAsync}}),Object.defineProperty(N,"minimumSpanningTreeAsync",{enumerable:!0,get:function(){return x.minimumSpanningTreeAsync}}),Object.defineProperty(N,"pageRankAsync",{enumerable:!0,get:function(){return x.pageRankAsync}});var x=o(63052),g=x.detectCycleAsync;N.detectDirectedCycleAsync=g;var A={getAdjMatrixAsync:x.getAdjMatrixAsync,connectedComponentAsync:x.connectedComponentAsync,getDegreeAsync:x.getDegreeAsync,getInDegreeAsync:x.getInDegreeAsync,getOutDegreeAsync:x.getOutDegreeAsync,detectCycleAsync:x.detectCycleAsync,detectDirectedCycleAsync:g,detectAllCyclesAsync:x.detectAllCyclesAsync,detectAllDirectedCycleAsync:x.detectAllDirectedCycleAsync,detectAllUndirectedCycleAsync:x.detectAllUndirectedCycleAsync,dijkstraAsync:x.dijkstraAsync,findAllPathAsync:x.findAllPathAsync,findShortestPathAsync:x.findShortestPathAsync,floydWarshallAsync:x.floydWarshallAsync,labelPropagationAsync:x.labelPropagationAsync,louvainAsync:x.louvainAsync,minimumSpanningTreeAsync:x.minimumSpanningTreeAsync,pageRankAsync:x.pageRankAsync,getNeighborsAsync:x.getNeighborsAsync,GADDIAsync:x.GADDIAsync};N.default=A},60353:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=A(o(69372)),g=o(23301);function A(m){return m&&m.__esModule?m:{default:m}}function y(m){m===void 0&&(m={});var b=m,v=function(){},h=function(){var d={};return function(_){var p=_.next,S=p;return d[S]?!1:(d[S]=!0,!0)}}();return b.allowTraversal=m.allowTraversal||h,b.enter=m.enter||v,b.leave=m.leave||v,b}var M=function(b,v,h,d){d===void 0&&(d=!0);var _=y(h),p=new x.default,S=b.edges,k=S===void 0?[]:S;p.enqueue(v);for(var O="",F=function(){var Z=p.dequeue();_.enter({current:Z,previous:O}),(0,g.getNeighbors)(Z,k,d?"target":void 0).forEach(function(W){_.allowTraversal({previous:O,current:Z,next:W})&&p.enqueue(W)}),_.leave({current:Z,previous:O}),O=Z};!p.isEmpty();)F()},w=M;N.default=w},38519:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=y,N.detectStrongConnectComponents=N.detectConnectedComponents=void 0;var x=o(23301),g=function(w){for(var m=w.nodes,b=m===void 0?[]:m,v=w.edges,h=v===void 0?[]:v,d=[],_={},p=[],S=function D(Z){p.push(Z),_[Z.id]=!0;for(var W=(0,x.getNeighbors)(Z.id,h),U=function($){var G=W[$];if(!_[G]){var z=b.filter(function(K){return K.id===G});z.length>0&&D(z[0])}},L=0;L<W.length;++L)U(L)},k=0;k<b.length;k++){var O=b[k];if(!_[O.id]){S(O);for(var F=[];p.length>0;)F.push(p.pop());d.push(F)}}return d};N.detectConnectedComponents=g;var A=function(w){for(var m=w.nodes,b=m===void 0?[]:m,v=w.edges,h=v===void 0?[]:v,d=[],_={},p={},S={},k=[],O=0,F=function U(L){p[L.id]=O,S[L.id]=O,O+=1,d.push(L),_[L.id]=!0;for(var V=(0,x.getNeighbors)(L.id,h,"target").filter(function(re){return b.map(function(ne){return ne.id}).indexOf(re)>-1}),$=function(ne){var Q=V[ne];if(!p[Q]&&p[Q]!==0){var ue=b.filter(function(he){return he.id===Q});ue.length>0&&U(ue[0]),S[L.id]=Math.min(S[L.id],S[Q])}else _[Q]&&(S[L.id]=Math.min(S[L.id],p[Q]))},G=0;G<V.length;G++)$(G);if(S[L.id]===p[L.id]){for(var z=[];d.length>0;){var K=d.pop();if(_[K.id]=!1,z.push(K),K===L)break}z.length>0&&k.push(z)}},D=0,Z=b;D<Z.length;D++){var W=Z[D];!p[W.id]&&p[W.id]!==0&&F(W)}return k};N.detectStrongConnectComponents=A;function y(M,w){return w?A(M):g(M)}},33129:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.secondReg=N.dateReg=void 0;var o=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/;N.secondReg=o;var x=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/;N.dateReg=x},28789:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.getOutDegree=N.getInDegree=N.default=void 0;var o=function(M){var w={},m=M.nodes,b=m===void 0?[]:m,v=M.edges,h=v===void 0?[]:v;return b.forEach(function(d){w[d.id]={degree:0,inDegree:0,outDegree:0}}),h.forEach(function(d){w[d.source].degree++,w[d.source].outDegree++,w[d.target].degree++,w[d.target].inDegree++}),w},x=o;N.default=x;var g=function(M,w){var m=o(M);return m[w]?o(M)[w].inDegree:0};N.getInDegree=g;var A=function(M,w){var m=o(M);return m[w]?o(M)[w].outDegree:0};N.getOutDegree=A},59691:function(oe,N,o){"use strict";function x(p){return x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},x(p)}Object.defineProperty(N,"__esModule",{value:!0}),N.detectAllUndirectedCycle=N.detectAllDirectedCycle=N.detectAllCycles=N.default=void 0;var g=m(o(44860)),A=w(o(38519)),y=o(23301);function M(p){if(typeof WeakMap!="function")return null;var S=new WeakMap,k=new WeakMap;return(M=function(F){return F?k:S})(p)}function w(p,S){if(!S&&p&&p.__esModule)return p;if(p===null||x(p)!=="object"&&typeof p!="function")return{default:p};var k=M(S);if(k&&k.has(p))return k.get(p);var O={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in p)if(D!=="default"&&Object.prototype.hasOwnProperty.call(p,D)){var Z=F?Object.getOwnPropertyDescriptor(p,D):null;Z&&(Z.get||Z.set)?Object.defineProperty(O,D,Z):O[D]=p[D]}return O.default=p,k&&k.set(p,O),O}function m(p){return p&&p.__esModule?p:{default:p}}var b=function(S){var k=null,O=S.nodes,F=O===void 0?[]:O,D={},Z={},W={},U={};F.forEach(function($){Z[$.id]=$});for(var L={enter:function(G){var z=G.current,K=G.previous;if(W[z]){k={};for(var re=z,ne=K;ne!==z;)k[re]=ne,re=ne,ne=D[ne];k[re]=ne}else W[z]=z,delete Z[z],D[z]=K},leave:function(G){var z=G.current;U[z]=z,delete W[z]},allowTraversal:function(G){var z=G.next;return k?!1:!U[z]}};Object.keys(Z).length;){var V=Object.keys(Z)[0];(0,g.default)(S,V,L)}return k},v=function(S,k,O){var F,D;O===void 0&&(O=!0);for(var Z=[],W=(0,A.default)(S,!1),U=0,L=W;U<L.length;U++){var V=L[U];if(!!V.length)for(var $=V[0],G=$.id,z=[$],K=(F={},F[G]=$,F),re=(D={},D[G]=new Set,D);z.length>0;)for(var ne=z.pop(),Q=ne.id,ue=(0,y.getNeighbors)(Q,S.edges),he=function(ve){var fe,we=ue[ve],me=S.nodes.find(function(De){return De.id===we});if(we===Q)Z.push((fe={},fe[we]=ne,fe));else if(!(we in re))K[we]=ne,z.push(me),re[we]=new Set([ne]);else if(!re[Q].has(me)){for(var Pe=!0,pe=[me,ne],Ie=K[Q];re[we].size&&!re[we].has(Ie)&&(pe.push(Ie),Ie!==K[Ie.id]);)Ie=K[Ie.id];if(pe.push(Ie),k&&O?(Pe=!1,pe.findIndex(function(De){return k.indexOf(De.id)>-1})>-1&&(Pe=!0)):k&&!O&&pe.findIndex(function(De){return k.indexOf(De.id)>-1})>-1&&(Pe=!1),Pe){for(var Je={},ke=1;ke<pe.length;ke+=1)Je[pe[ke-1].id]=pe[ke];pe.length&&(Je[pe[pe.length-1].id]=pe[0]),Z.push(Je)}re[we].add(ne)}},Ee=0;Ee<ue.length;Ee+=1)he(Ee)}return Z};N.detectAllUndirectedCycle=v;var h=function(S,k,O){O===void 0&&(O=!0);for(var F=[],D=new Set,Z=[],W=[],U={},L={},V=function(Ie){for(var Je=[Ie];Je.length>0;){var ke=Je.pop();D.has(ke)&&(D.delete(ke),Z[ke.id].forEach(function(De){Je.push(De)}),Z[ke.id].clear())}},$=function pe(Ie,Je,ke){var De=!1;if(k&&O===!1&&k.indexOf(Ie.id)>-1)return De;F.push(Ie),D.add(Ie);for(var Fe=ke[Ie.id],Qe=0;Qe<Fe.length;Qe+=1){var qe=U[Fe[Qe]];if(qe===Je){for(var et={},dt=1;dt<F.length;dt+=1)et[F[dt-1].id]=F[dt];F.length&&(et[F[F.length-1].id]=F[0]),W.push(et),De=!0}else D.has(qe)||pe(qe,Je,ke)&&(De=!0)}if(De)V(Ie);else for(var Qe=0;Qe<Fe.length;Qe+=1){var qe=U[Fe[Qe]];Z[qe.id].has(Ie)||Z[qe.id].add(Ie)}return F.pop(),De},G=S.nodes,z=G===void 0?[]:G,K=0;K<z.length;K+=1){var re=z[K],ne=re.id;L[ne]=K,U[K]=re}if(k&&O)for(var Q=function(Ie){var Je=k[Ie];L[z[Ie].id]=L[Je],L[Je]=0,U[0]=z.find(function(ke){return ke.id===Je}),U[L[z[Ie].id]]=z[Ie]},K=0;K<k.length;K++)Q(K);for(var ue=function(Ie){for(var Je,ke,De=Infinity,Fe=0;Fe<Ie.length;Fe+=1)for(var Qe=Ie[Fe],qe=0;qe<Qe.length;qe++){var et=L[Qe[qe].id];et<De&&(De=et,ke=Fe)}for(var dt=Ie[ke],Ke=[],Fe=0;Fe<dt.length;Fe+=1){var Ge=dt[Fe];Ke[Ge.id]=[];for(var wt=0,Vt=(0,y.getNeighbors)(Ge.id,S.edges,"target").filter(function(Le){return dt.map(function(ct){return ct.id}).indexOf(Le)>-1});wt<Vt.length;wt++){var gt=Vt[wt];gt===Ge.id&&!(O===!1&&k.indexOf(Ge.id)>-1)?W.push((Je={},Je[Ge.id]=Ge,Je)):Ke[Ge.id].push(L[gt])}}return{component:dt,adjList:Ke,minIdx:De}},he=0;he<z.length;){var Ee=z.filter(function(pe){return L[pe.id]>=he}),ce=(0,A.detectStrongConnectComponents)({nodes:Ee,edges:S.edges}).filter(function(pe){return pe.length>1});if(ce.length===0)break;var ve=ue(ce),fe=ve.minIdx,we=ve.adjList,me=ve.component;if(me.length>1){me.forEach(function(pe){Z[pe.id]=new Set});var Pe=U[fe];if(k&&O&&k.indexOf(Pe.id)===-1)return W;$(Pe,Pe,we),he=fe+1}else break}return W};N.detectAllDirectedCycle=h;var d=function(S,k,O,F){return F===void 0&&(F=!0),k?h(S,O,F):v(S,O,F)};N.detectAllCycles=d;var _=b;N.default=_},44860:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=y;var x=o(23301);function g(M){M===void 0&&(M={});var w=M,m=function(){},b=function(){var v={};return function(h){var d=h.next;return v[d]?!1:(v[d]=!0,!0)}}();return w.allowTraversal=M.allowTraversal||b,w.enter=M.enter||m,w.leave=M.leave||m,w}function A(M,w,m,b,v){v===void 0&&(v=!0),b.enter({current:w,previous:m});var h=M.edges,d=h===void 0?[]:h;(0,x.getNeighbors)(w,d,v?"target":void 0).forEach(function(_){b.allowTraversal({previous:m,current:w,next:_})&&A(M,_,w,b,v)}),b.leave({current:w,previous:m})}function y(M,w,m,b){b===void 0&&(b=!0),A(M,w,"",g(m),b)}},39396:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=o(88788),g=o(70234),A=o(23301),y=function(v,h,d){for(var _=Infinity,p,S=0;S<h.length;S++){var k=h[S].id;!d[k]&&v[k]<=_&&(_=v[k],p=h[S])}return p},M=function(v,h,d,_){var p=v.nodes,S=p===void 0?[]:p,k=v.edges,O=k===void 0?[]:k,F=[],D={},Z={},W={};S.forEach(function(K,re){var ne=K.id;F.push(ne),Z[ne]=Infinity,ne===h&&(Z[ne]=0)});for(var U=S.length,L=function(re){var ne=y(Z,S,D),Q=ne.id;if(D[Q]=!0,Z[Q]===Infinity)return"continue";var ue=[];d?ue=(0,A.getOutEdgesNodeId)(Q,O):ue=(0,A.getEdgesByNodeId)(Q,O),ue.forEach(function(he){var Ee=he.target,ce=he.source,ve=Ee===Q?ce:Ee,fe=_&&he[_]?he[_]:1;Z[ve]>Z[ne.id]+fe?(Z[ve]=Z[ne.id]+fe,W[ve]=[ne.id]):Z[ve]===Z[ne.id]+fe&&W[ve].push(ne.id)})},V=0;V<U;V++)L(V);W[h]=[h];var $={};for(var G in Z)Z[G]!==Infinity&&m(h,G,W,$);var z={};for(var G in $)z[G]=$[G][0];return{length:Z,path:z,allPath:$}},w=M;N.default=w;function m(b,v,h,d){if(b===v)return[b];if(d[v])return d[v];for(var _=[],p=0,S=h[v];p<S.length;p++){var k=S[p],O=m(b,k,h,d);if(!O)return;for(var F=0,D=O;F<D.length;F++){var Z=D[F];(0,g.isArray)(Z)?_.push((0,x.__spreadArray)((0,x.__spreadArray)([],Z,!0),[v],!1)):_.push([Z,v])}}return d[v]=_,d[v]}},58813:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.findShortestPath=N.findAllPath=void 0;var x=A(o(39396)),g=o(23301);function A(w){return w&&w.__esModule?w:{default:w}}var y=function(m,b,v,h,d){var _=(0,x.default)(m,b,h,d),p=_.length,S=_.path,k=_.allPath;return{length:p[v],path:S[v],allPath:k[v]}};N.findShortestPath=y;var M=function(m,b,v,h){var d;if(b===v)return[[b]];var _=m.edges,p=_===void 0?[]:_,S=[b],k=(d={},d[b]=!0,d),O=[],F=[],D=h?(0,g.getNeighbors)(b,p,"target"):(0,g.getNeighbors)(b,p);for(O.push(D);S.length>0&&O.length>0;){var Z=O[O.length-1];if(Z.length){var W=Z.shift();W&&(S.push(W),k[W]=!0,D=h?(0,g.getNeighbors)(W,p,"target"):(0,g.getNeighbors)(W,p),O.push(D.filter(function(V){return!k[V]})))}else{var U=S.pop();k[U]=!1,O.pop();continue}if(S[S.length-1]===v){var L=S.map(function($){return $});F.push(L);var U=S.pop();k[U]=!1,O.pop()}}return F};N.findAllPath=M},75966:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=g(o(98480));function g(M){return M&&M.__esModule?M:{default:M}}var A=function(w,m){for(var b=(0,x.default)(w,m),v=[],h=b.length,d=0;d<h;d+=1){v[d]=[];for(var _=0;_<h;_+=1)d===_?v[d][_]=0:b[d][_]===0||!b[d][_]?v[d][_]=Infinity:v[d][_]=b[d][_]}for(var p=0;p<h;p+=1)for(var d=0;d<h;d+=1)for(var _=0;_<h;_+=1)v[d][_]>v[d][p]+v[p][_]&&(v[d][_]=v[d][p]+v[p][_]);return v},y=A;N.default=y},88145:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=o(70234),g=o(85425),A=function(){function _(p,S,k,O,F){this.fromNode=p,this.toNode=S,this.nodeEdgeNodeLabel={nodeLabel1:k||g.VACANT_NODE_LABEL,edgeLabel:O||g.VACANT_EDGE_LABEL,nodeLabel2:F||g.VACANT_NODE_LABEL}}return _.prototype.equalTo=function(p){return this.fromNode===p.formNode&&this.toNode===p.toNode&&this.nodeEdgeNodeLabel===p.nodeEdgeNodeLabel},_.prototype.notEqualTo=function(p){return!this.equalTo(p)},_}(),y=function(){function _(){this.rmpath=[],this.dfsEdgeList=[]}return _.prototype.equalTo=function(p){var S=this.dfsEdgeList.length,k=p.length;if(S!==k)return!1;for(var O=0;O<S;O++)if(this.dfsEdgeList[O]!==p[O])return!1;return!0},_.prototype.notEqualTo=function(p){return!this.equalTo(p)},_.prototype.pushBack=function(p,S,k,O,F){return this.dfsEdgeList.push(new A(p,S,k,O,F)),this.dfsEdgeList},_.prototype.toGraph=function(p,S){p===void 0&&(p=g.VACANT_GRAPH_ID),S===void 0&&(S=!1);var k=new g.Graph(p,!0,S);return this.dfsEdgeList.forEach(function(O){var F=O.fromNode,D=O.toNode,Z=O.nodeEdgeNodeLabel,W=Z.nodeLabel1,U=Z.edgeLabel,L=Z.nodeLabel2;W!==g.VACANT_NODE_LABEL&&k.addNode(F,W),L!==g.VACANT_NODE_LABEL&&k.addNode(D,L),W!==g.VACANT_NODE_LABEL&&L!==W&&k.addEdge(void 0,F,D,U)}),k},_.prototype.buildRmpath=function(){this.rmpath=[];for(var p=void 0,S=this.dfsEdgeList.length,k=S-1;k>=0;k--){var O=this.dfsEdgeList[k],F=O.fromNode,D=O.toNode;F<D&&(p===void 0||D===p)&&(this.rmpath.push(k),p=F)}return this.rmpath},_.prototype.getNodeNum=function(){var p={};return this.dfsEdgeList.forEach(function(S){p[S.fromNode]||(p[S.fromNode]=!0),p[S.toNode]||(p[S.toNode]=!0)}),Object.keys(p).length},_}(),M=function(){function _(p){if(this.his={},this.nodesUsed={},this.edgesUsed={},this.edges=[],!!p){for(;p;){var S=p.edge;this.edges.push(S),this.nodesUsed[S.from]=1,this.nodesUsed[S.to]=1,this.edgesUsed[S.id]=1,p=p.preNode}this.edges=this.edges.reverse()}}return _.prototype.hasNode=function(p){return this.nodesUsed[p.id]===1},_.prototype.hasEdge=function(p){return this.edgesUsed[p.id]===1},_}(),w=function(){function _(p){var S=p.graphs,k=p.minSupport,O=k===void 0?2:k,F=p.minNodeNum,D=F===void 0?1:F,Z=p.maxNodeNum,W=Z===void 0?4:Z,U=p.top,L=U===void 0?10:U,V=p.directed,$=V===void 0?!1:V,G=p.verbose,z=G===void 0?!1:G;this.graphs=S,this.dfsCode=new y,this.support=0,this.frequentSize1Subgraphs=[],this.frequentSubgraphs=[],this.minSupport=O,this.top=L,this.directed=$,this.counter=0,this.maxNodeNum=W,this.minNodeNum=D,this.verbose=z,this.maxNodeNum<this.minNodeNum&&(this.maxNodeNum=this.minNodeNum),this.reportDF=[]}return _.prototype.findForwardRootEdges=function(p,S){var k=this,O=[],F=p.nodeMap;return S.edges.forEach(function(D){(k.directed||S.label<=F[D.to].label)&&O.push(D)}),O},_.prototype.findBackwardEdge=function(p,S,k,O){if(!this.directed&&S===k)return null;for(var F=p.nodeMap,D=F[k.to],Z=D.edges,W=Z.length,U=0;U<W;U++){var L=Z[U];if(!(O.hasEdge(L)||L.to!==S.from)){if(this.directed){if(F[S.from].label<F[k.to].label||F[S.from].label===F[k.to].label&&S.label<=L.label)return L}else if(S.label<L.label||S.label===L.label&&F[S.to].label<=F[k.to].label)return L}}return null},_.prototype.findForwardPureEdges=function(p,S,k,O){for(var F=[],D=S.to,Z=p.nodeMap[D].edges,W=Z.length,U=0;U<W;U++){var L=Z[U],V=p.nodeMap[L.to];k<=V.label&&!O.hasNode(V)&&F.push(L)}return F},_.prototype.findForwardRmpathEdges=function(p,S,k,O){for(var F=[],D=p.nodeMap,Z=D[S.to].label,W=D[S.from],U=W.edges,L=U.length,V=0;V<L;V++){var $=U[V],G=D[$.to].label;S.to===$.to||k>G||O.hasNode(D[$.to])||(S.label<$.label||S.label===$.label&&Z<=G)&&F.push($)}return F},_.prototype.getSupport=function(p){var S={};return p.forEach(function(k){S[k.graphId]||(S[k.graphId]=!0)}),Object.keys(S).length},_.prototype.findMinLabel=function(p){var S=void 0;return Object.keys(p).forEach(function(k){var O=p[k],F=O.nodeLabel1,D=O.edgeLabel,Z=O.nodeLabel2;if(!S){S={nodeLabel1:F,edgeLabel:D,nodeLabel2:Z};return}(F<S.nodeLabel1||F===S.nodeLabel1&&D<S.edgeLabel||F===S.nodeLabel1&&D===S.edgeLabel&&Z<S.nodeLabel2)&&(S={nodeLabel1:F,edgeLabel:D,nodeLabel2:Z})}),S},_.prototype.isMin=function(){var p=this,S=this.dfsCode;if(this.verbose&&console.log("isMin checking",S),S.dfsEdgeList.length===1)return!0;var k=this.directed,O=S.toGraph(g.VACANT_GRAPH_ID,k),F=O.nodeMap,D=new y,Z={};O.nodes.forEach(function(V){var $=p.findForwardRootEdges(O,V);$.forEach(function(G){var z=F[G.to],K="".concat(V.label,"-").concat(G.label,"-").concat(z.label);Z[K]||(Z[K]={projected:[],nodeLabel1:V.label,edgeLabel:G.label,nodeLabel2:z.label});var re={graphId:O.id,edge:G,preNode:null};Z[K].projected.push(re)})});var W=this.findMinLabel(Z);if(!!W){D.dfsEdgeList.push(new A(0,1,W.nodeLabel1,W.edgeLabel,W.nodeLabel2));var U=function V($){for(var G=D.buildRmpath(),z=D.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,K=D.dfsEdgeList[G[0]].toNode,re={},ne=!1,Q=0,ue=k?-1:0,he=function(Fe){if(ne)return"break";$.forEach(function(Qe){var qe=new M(Qe),et=p.findBackwardEdge(O,qe.edges[G[Fe]],qe.edges[G[0]],qe);et&&(re[et.label]||(re[et.label]={projected:[],edgeLabel:et.label}),re[et.label].projected.push({graphId:O.id,edge:re,preNode:Qe}),Q=D.dfsEdgeList[G[Fe]].fromNode,ne=!0)})},Ee=G.length-1;Ee>ue;Ee--){var ce=he(Ee);if(ce==="break")break}if(ne){var ve=p.findMinLabel(re);D.dfsEdgeList.push(new A(K,Q,g.VACANT_NODE_LABEL,ve.edgeLabel,g.VACANT_NODE_LABEL));var fe=D.dfsEdgeList.length-1;return p.dfsCode.dfsEdgeList[fe]!==D.dfsEdgeList[fe]?!1:V(re[ve.edgeLabel].projected)}var we={};ne=!1;var me=0;$.forEach(function(De){var Fe=new M(De),Qe=p.findForwardPureEdges(O,Fe.edges[G[0]],z,Fe);Qe.length>0&&(ne=!0,me=K,Qe.forEach(function(qe){var et="".concat(qe.label,"-").concat(F[qe.to].label);we[et]||(we[et]={projected:[],edgeLabel:qe.label,nodeLabel2:F[qe.to].label}),we[et].projected.push({graphId:O.id,edge:qe,preNode:De})}))});for(var Pe=G.length,pe=function(Fe){if(ne)return"break";var Qe=G[Fe];$.forEach(function(qe){var et=new M(qe),dt=p.findForwardRmpathEdges(O,et.edges[Qe],z,et);dt.length>0&&(ne=!0,me=D.dfsEdgeList[Qe].fromNode,dt.forEach(function(Ke){var Ge="".concat(Ke.label,"-").concat(F[Ke.to].label);we[Ge]||(we[Ge]={projected:[],edgeLabel:Ke.label,nodeLabel2:F[Ke.to].label}),we[Ge].projected.push({graphId:O.id,edge:Ke,preNode:qe})}))})},Ee=0;Ee<Pe;Ee++){var Ie=pe(Ee);if(Ie==="break")break}if(!ne)return!0;var Je=p.findMinLabel(we);D.dfsEdgeList.push(new A(me,K+1,g.VACANT_NODE_LABEL,Je.edgeLabel,Je.nodeLabel2));var ke=D.dfsEdgeList.length-1;return S.dfsEdgeList[ke]!==D.dfsEdgeList[ke]?!1:V(we["".concat(Je.edgeLabel,"-").concat(Je.nodeLabel2)].projected)},L="".concat(W.nodeLabel1,"-").concat(W.edgeLabel,"-").concat(W.nodeLabel2);return U(Z[L].projected)}},_.prototype.report=function(){if(!(this.dfsCode.getNodeNum()<this.minNodeNum)){this.counter++;var p=this.dfsCode.toGraph(this.counter,this.directed);this.frequentSubgraphs.push((0,x.clone)(p))}},_.prototype.subGraphMining=function(p){var S=this,k=this.getSupport(p);if(!(k<this.minSupport)&&!!this.isMin()){this.report();var O=this.dfsCode.getNodeNum(),F=this.dfsCode.buildRmpath(),D=this.dfsCode.dfsEdgeList[F[0]].toNode,Z=this.dfsCode.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,W={},U={};p.forEach(function(L){for(var V=S.graphs[L.graphId],$=V.nodeMap,G=new M(L),z=F.length-1;z>=0;z--){var K=S.findBackwardEdge(V,G.edges[F[z]],G.edges[F[0]],G);if(K){var re="".concat(S.dfsCode.dfsEdgeList[F[z]].fromNode,"-").concat(K.label);U[re]||(U[re]={projected:[],toNodeId:S.dfsCode.dfsEdgeList[F[z]].fromNode,edgeLabel:K.label}),U[re].projected.push({graphId:L.graphId,edge:K,preNode:L})}}if(!(O>=S.maxNodeNum)){var ne=S.findForwardPureEdges(V,G.edges[F[0]],Z,G);ne.forEach(function(ue){var he="".concat(D,"-").concat(ue.label,"-").concat($[ue.to].label);W[he]||(W[he]={projected:[],fromNodeId:D,edgeLabel:ue.label,nodeLabel2:$[ue.to].label}),W[he].projected.push({graphId:L.graphId,edge:ue,preNode:L})});for(var Q=function(he){var Ee=S.findForwardRmpathEdges(V,G.edges[F[he]],Z,G);Ee.forEach(function(ce){var ve="".concat(S.dfsCode.dfsEdgeList[F[he]].fromNode,"-").concat(ce.label,"-").concat($[ce.to].label);W[ve]||(W[ve]={projected:[],fromNodeId:S.dfsCode.dfsEdgeList[F[he]].fromNode,edgeLabel:ce.label,nodeLabel2:$[ce.to].label}),W[ve].projected.push({graphId:L.graphId,edge:ce,preNode:L})})},z=0;z<F.length;z++)Q(z)}}),Object.keys(U).forEach(function(L){var V=U[L],$=V.toNodeId,G=V.edgeLabel;S.dfsCode.dfsEdgeList.push(new A(D,$,"-1",G,"-1")),S.subGraphMining(U[L].projected),S.dfsCode.dfsEdgeList.pop()}),Object.keys(W).forEach(function(L){var V=W[L],$=V.fromNodeId,G=V.edgeLabel,z=V.nodeLabel2;S.dfsCode.dfsEdgeList.push(new A($,D+1,g.VACANT_NODE_LABEL,G,z)),S.subGraphMining(W[L].projected),S.dfsCode.dfsEdgeList.pop()})}},_.prototype.generate1EdgeFrequentSubGraphs=function(){var p=this.graphs,S=this.directed,k=this.minSupport,O=this.frequentSize1Subgraphs,F={},D={},Z={},W={};return Object.keys(p).forEach(function(U){var L=p[U],V=L.nodeMap;L.nodes.forEach(function($,G){var z=$.label,K="".concat(U,"-").concat(z);if(!Z[K]){var re=F[z]||0;re++,F[z]=re}Z[K]={graphKey:U,label:z},$.edges.forEach(function(ne){var Q=z,ue=V[ne.to].label;if(!S&&Q>ue){var he=ue;ue=Q,Q=he}var Ee=ne.label,ce="".concat(U,"-").concat(Q,"-").concat(Ee,"-").concat(ue),ve="".concat(Q,"-").concat(Ee,"-").concat(ue);if(!D[ve]){var fe=D[ve]||0;fe++,D[ve]=fe}W[ce]={graphId:U,nodeLabel1:Q,edgeLabel:Ee,nodeLabel2:ue}})})}),Object.keys(F).forEach(function(U){var L=F[U];if(!(L<k)){var V={nodes:[],edges:[]};V.nodes.push({id:"0",label:U}),O.push(V)}}),O},_.prototype.run=function(){var p=this;if(this.frequentSize1Subgraphs=this.generate1EdgeFrequentSubGraphs(),!(this.maxNodeNum<2)){var S=this.graphs,k=this.directed,O={};Object.keys(S).forEach(function(F){var D=S[F],Z=D.nodeMap;D.nodes.forEach(function(W){var U=p.findForwardRootEdges(D,W);U.forEach(function(L){var V=Z[L.to],$="".concat(W.label,"-").concat(L.label,"-").concat(V.label);O[$]||(O[$]={projected:[],nodeLabel1:W.label,edgeLabel:L.label,nodeLabel2:V.label});var G={graphId:F,edge:L,preNode:null};O[$].projected.push(G)})})}),Object.keys(O).forEach(function(F){var D=O[F],Z=D.projected,W=D.nodeLabel1,U=D.edgeLabel,L=D.nodeLabel2;p.dfsCode.dfsEdgeList.push(new A(0,1,W,U,L)),p.subGraphMining(Z),p.dfsCode.dfsEdgeList.pop()})}},_}(),m=function(p,S,k,O){var F={};return Object.keys(p).forEach(function(D,Z){var W=p[D],U=new g.Graph(Z,!0,S),L={};W.nodes.forEach(function(V,$){U.addNode($,V[k]),L[V.id]=$}),W.edges.forEach(function(V,$){var G=L[V.source],z=L[V.target];U.addEdge(-1,G,z,V[O])}),U&&U.getNodeNum()&&(F[U.id]=U)}),F},b=function(p,S,k){var O=[];return p.forEach(function(F){var D={nodes:[],edges:[]};F.nodes.forEach(function(Z){var W;D.nodes.push((W={id:"".concat(Z.id)},W[S]=Z.label,W))}),F.edges.forEach(function(Z){var W;D.edges.push((W={source:"".concat(Z.from),target:"".concat(Z.to)},W[k]=Z.label,W))}),O.push(D)}),O},v="cluster",h=function(p){var S=p.graphs,k=p.directed,O=k===void 0?!1:k,F=p.nodeLabelProp,D=F===void 0?v:F,Z=p.edgeLabelProp,W=Z===void 0?v:Z,U=m(S,O,D,W),L=p.minSupport,V=p.maxNodeNum,$=p.minNodeNum,G=p.verbose,z=p.top,K={graphs:U,minSupport:L,maxNodeNum:V,minNodeNum:$,top:z,verbose:G,directed:O},re=new w(K);re.run();var ne=b(re.frequentSubgraphs,D,W);return ne},d=h;N.default=d},85425:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.VACANT_NODE_LABEL=N.VACANT_NODE_ID=N.VACANT_GRAPH_ID=N.VACANT_EDGE_LABEL=N.VACANT_EDGE_ID=N.Node=N.Graph=N.Edge=N.AUTO_EDGE_ID=void 0;var o=-1;N.VACANT_EDGE_ID=o;var x=-1;N.VACANT_NODE_ID=x;var g="-1";N.VACANT_EDGE_LABEL=g;var A="-1";N.VACANT_NODE_LABEL=A;var y=-1;N.VACANT_GRAPH_ID=y;var M="-1";N.AUTO_EDGE_ID=M;var w=function(){function v(h,d,_,p){h===void 0&&(h=o),d===void 0&&(d=x),_===void 0&&(_=x),p===void 0&&(p=g),this.id=h,this.from=d,this.to=_,this.label=p}return v}();N.Edge=w;var m=function(){function v(h,d){h===void 0&&(h=x),d===void 0&&(d=A),this.id=h,this.label=d,this.edges=[],this.edgeMap={}}return v.prototype.addEdge=function(h){this.edges.push(h),this.edgeMap[h.id]=h},v}();N.Node=m;var b=function(){function v(h,d,_){h===void 0&&(h=x),d===void 0&&(d=!0),_===void 0&&(_=!1),this.id=h,this.edgeIdAutoIncrease=d,this.edges=[],this.nodes=[],this.nodeMap={},this.edgeMap={},this.nodeLabelMap={},this.edgeLabelMap={},this.counter=0,this.directed=_}return v.prototype.getNodeNum=function(){return this.nodes.length},v.prototype.addNode=function(h,d){if(!this.nodeMap[h]){var _=new m(h,d);this.nodes.push(_),this.nodeMap[h]=_,this.nodeLabelMap[d]||(this.nodeLabelMap[d]=[]),this.nodeLabelMap[d].push(h)}},v.prototype.addEdge=function(h,d,_,p){if((this.edgeIdAutoIncrease||h===void 0)&&(h=this.counter++),!(this.nodeMap[d]&&this.nodeMap[_]&&this.nodeMap[_].edgeMap[h])){var S=new w(h,d,_,p);if(this.edges.push(S),this.edgeMap[h]=S,this.nodeMap[d].addEdge(S),this.edgeLabelMap[p]||(this.edgeLabelMap[p]=[]),this.edgeLabelMap[p].push(S),!this.directed){var k=new w(h,_,d,p);this.nodeMap[_].addEdge(k),this.edgeLabelMap[p].push(k)}}},v}();N.Graph=b},44318:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=o(88788),g=w(o(75966)),A=w(o(88145)),y=w(o(39396)),M=o(23301);function w(W){return W&&W.__esModule?W:{default:W}}var m=function(U,L,V,$){V===void 0&&(V="cluster"),$===void 0&&($=2);var G=[],z=U.nodes;return L.forEach(function(K,re){G.push(b(z,K,re,V,$))}),G},b=function(U,L,V,$,G){var z=[V],K=[],re={};return L.forEach(function(ne,Q){if(ne<=G&&V!==Q){z.push(Q),K.push(U[Q]);var ue=U[Q][$];re[ue]?(re[ue].count++,re[ue].dists.push(ne)):re[ue]={count:1,dists:[ne]}}}),Object.keys(re).forEach(function(ne){re[ne].dists=re[ne].dists.sort(function(Q,ue){return Q-ue})}),{nodeIdx:V,nodeId:U[V].id,nodeIdxs:z,neighbors:K,neighborNum:z.length-1,nodeLabelCountMap:re}},v=function(U,L,V,$,G){var z=Math.ceil(V/L),K={},re=0;return $.forEach(function(ne,Q){for(var ue=0,he=0,Ee=ne.nodeIdxs,ce=ne.neighborNum-1;ue<z;){for(var ve=Ee[1+Math.floor(Math.random()*ce)],fe=0;(K["".concat(Q,"-").concat(ve)]||K["".concat(ve,"-").concat(Q)])&&(ve=Math.floor(Math.random()*L),fe++,!(fe>2*L)););if(fe<2*L&&(K["".concat(Q,"-").concat(ve)]={start:Q,end:ve,distance:G[Q][ve]},ue++,re++,re>=V))return K;if(he++,he>2*L)break}if(ue<z){var we=z-ue;z=(z+we)/(L-Q-1)}}),K},h=function(U,L,V,$){var G=V.nodes;return $||($={}),Object.keys(U).forEach(function(z){var K,re;if(!($&&$[z])){$[z]={nodes:[],edges:[]};var ne=U[z],Q=(K=L[ne.start])===null||K===void 0?void 0:K.nodeIdxs,ue=(re=L[ne.end])===null||re===void 0?void 0:re.nodeIdxs;if(!(!Q||!ue)){var he=new Set(ue),Ee=Q.filter(function(me){return he.has(me)});if(!(!Ee||!Ee.length)){for(var ce={},ve=Ee.length,fe=0;fe<ve;fe++){var we=G[Ee[fe]];$[z].nodes.push(we),ce[we.id]=!0}V.edges.forEach(function(me){ce[me.source]&&ce[me.target]&&$[z].edges.push(me)})}}}}),$},d=function(U,L,V,$){var G,z,K={};U.nodes.forEach(function(ne){K[ne.id]=ne});var re=0;return!((G=L==null?void 0:L.edges)===null||G===void 0?void 0:G.length)||((z=L==null?void 0:L.nodes)===null||z===void 0?void 0:z.length)<2?0:(U.edges.forEach(function(ne){var Q=K[ne.source][V],ue=K[ne.target][V],he=L==null?void 0:L.nodes[0][V],Ee=L==null?void 0:L.nodes[1][V],ce=L==null?void 0:L.edges[0][$];ne[$]===ce&&(Q===he&&ue===Ee||Q===Ee&&ue===he)&&re++}),re)},_=function(U,L,V){for(var $=Infinity,G=0,z=function(ne){var Q=U[ne],ue=Object.keys(Q).sort(function(me,Pe){return Q[me]-Q[Pe]}),he=10,Ee=[];ue.forEach(function(me,Pe){Ee[Pe%he]||(Ee[Pe%he]={graphs:[],totalCount:0,aveCount:0}),Ee[Pe%he].graphs.push(me),Ee[Pe%he].totalCount+=Q[me]});var ce=0,ve=[];Ee.forEach(function(me){var Pe=me.totalCount/me.graphs.length;me.aveCount=Pe,ve.push(Pe);var pe=0,Ie=me.length;me.graphs.forEach(function(Je,ke){var De=Q[Je];me.graphs.forEach(function(Fe,Qe){ke!==Qe&&(pe+=Math.abs(De-Q[Fe]))})}),pe/=Ie*(Ie-1)/2,ce+=pe}),ce/=Ee.length;var fe=0;ve.forEach(function(me,Pe){ve.forEach(function(pe,Ie){Pe!==Ie&&(fe+=Math.abs(me-pe))}),fe/=ve.length*(ve.length-1)/2});var we=fe-ce;$<we&&($=we,G=ne)},K=0;K<L;K++)z(K);return{structure:V[G],structureCountMap:U[G]}},p=function(U,L){var V={},$={};return U.forEach(function(G,z){V[G.id]={idx:z,node:G,degree:0,inDegree:0,outDegree:0};var K=G[L];$[K]||($[K]=[]),$[K].push(G)}),{nodeMap:V,nodeLabelMap:$}},S=function(U,L,V){var $={},G={};return U.forEach(function(z,K){$["".concat(M.uniqueId)]={idx:K,edge:z};var re=z[L];G[re]||(G[re]=[]),G[re].push(z);var ne=V[z.source];ne&&(ne.degree++,ne.outDegree++);var Q=V[z.target];Q&&(Q.degree++,Q.inDegree++)}),{edgeMap:$,edgeLabelMap:G}},k=function(U,L,V){var $=L.length,G={};return L.forEach(function(z,K){for(var re=V?0:K+1,ne=U[K].id,Q=re;Q<$;Q++)if(K!==Q){var ue=U[Q].id,he=z[Q];G["".concat(ne,"-").concat(ue)]=he,V||(G["".concat(ue,"-").concat(ne)]=he)}}),G},O=function(U,L,V,$,G,z,K,re,ne,Q,ue){var he,Ee="".concat(L.id,"-").concat(V.id);if(Q&&Q[Ee])return Q[Ee];var ce=ue?ue[Ee]:void 0;if(!ce){var ve=(he={},he[Ee]={start:$[L.id].idx,end:$[V.id].idx,distance:G},he);ue=h(ve,z,U,ue),ce=ue[Ee]}return d(ce,K,re,ne)},F=function(U,L,V,$){var G,z,K,re=(G=U[L])===null||G===void 0?void 0:G.degree,ne=(z=U[L])===null||z===void 0?void 0:z.inDegree,Q=(K=U[L])===null||K===void 0?void 0:K.outDegree;return U[L]===void 0&&(re=Infinity,ne=Infinity,Q=Infinity,$[L].forEach(function(ue){var he=V[ue.id].degree;re>he&&(re=he);var Ee=V[ue.id].inDegree;ne>Ee&&(ne=Ee);var ce=V[ue.id].outDegree;Q>ce&&(Q=ce)}),U[L]={degree:re,inDegree:ne,outDegree:Q}),{minPatternNodeLabelDegree:re,minPatternNodeLabelInDegree:ne,minPatternNodeLabelOutDegree:Q}},D=function(U,L,V,$,G,z,K){var re;if(V===void 0&&(V=!1),z===void 0&&(z="cluster"),K===void 0&&(K="cluster"),!(!U||!U.nodes)){var ne=U.nodes.length;if(!!ne){var Q=(0,g.default)(U,V),ue=(0,g.default)(L,V),he=k(U.nodes,Q,V),Ee=k(L.nodes,ue,V),ce=p(U.nodes,z),ve=ce.nodeMap,fe=ce.nodeLabelMap,we=p(L.nodes,z),me=we.nodeMap,Pe=we.nodeLabelMap;S(U.edges,K,ve);var pe=S(L.edges,K,me).edgeLabelMap,Ie=[];ue==null||ue.forEach(function(qt){Ie=Ie.concat(qt)}),G||(G=Math.max.apply(Math,(0,x.__spreadArray)((0,x.__spreadArray)([],Ie,!1),[2],!1))),$||($=G);var Je=m(U,Q,z,$),ke=m(L,ue,z,$),De=Math.min(100,ne*(ne-1)/2),Fe=v($,ne,De,Je,Q),Qe=h(Fe,Je,U),qe=10,et=1,dt=1,Ke=4,Ge={graphs:Qe,nodeLabelProp:z,edgeLabelProp:K,minSupport:et,minNodeNum:dt,maxNodeNum:Ke,directed:V},wt=(0,A.default)(Ge).slice(0,qe),Vt=wt.length,gt=[];wt.forEach(function(qt,rn){gt[rn]={},Object.keys(Qe).forEach(function(cn){var er=Qe[cn],rr=d(er,qt,z,K);gt[rn][cn]=rr})});var it=_(gt,Vt,wt),Le=it.structure,ct=it.structureCountMap,at=L.nodes[0],jt=[],St=(re=L.nodes[0])===null||re===void 0?void 0:re[z],fn=-Infinity;L.nodes.forEach(function(qt){var rn=qt[z],cn=fe[rn];(cn==null?void 0:cn.length)>fn&&(fn=cn.length,jt=cn,St=rn,at=qt)});var Xt={},Yt={},Rt={},Lt={},ze={},rt={};Object.keys(Pe).forEach(function(qt,rn){ze[qt]=[],V&&(rt[qt]=[]);var cn=-Infinity,er=Pe[qt],rr={};er.forEach(function(bt){var We=Ee["".concat(at.id,"-").concat(bt.id)];if(We&&ze[qt].push(We),cn<We&&(cn=We),rr["".concat(at.id,"-").concat(bt.id)]={start:0,end:me[bt.id].idx,distance:We},V){var be=Ee["".concat(bt.id,"-").concat(at.id)];be&&rt[qt].push(be)}}),ze[qt]=ze[qt].sort(function(bt,We){return bt-We}),V&&(rt[qt]=rt[qt].sort(function(bt,We){return bt-We})),Yt=h(rr,ke,L,Yt);var nt=[];if(Object.keys(rr).forEach(function(bt){if(Rt[bt]){nt.push(Rt[bt]);return}var We=Yt[bt];Rt[bt]=d(We,Le,z,K),nt.push(Rt[bt])}),nt=nt.sort(function(bt,We){return We-bt}),Lt["".concat(at.id,"-").concat(qt)]=nt,qt!==St)for(var lr=(jt==null?void 0:jt.length)||0,Hn=function(We){var be=jt[We],Ae=Je[ve[be.id].idx],Ue=Ae.nodeLabelCountMap[qt],$e=Pe[qt].length;if(!Ue||Ue.count<$e)return jt.splice(We,1),"continue";for(var kt=!1,lt=0;lt<$e;lt++)if(Ue.dists[lt]>ze[qt][lt]){kt=!0;break}if(kt)return jt.splice(We,1),"continue";var vt={};Ae.neighbors.forEach(function(mt){var Zt=he["".concat(be.id,"-").concat(mt.id)];vt["".concat(be.id,"-").concat(mt.id)]={start:ve[be.id].idx,end:ve[mt.id].idx,distance:Zt}}),Qe=h(vt,Je,U,Qe);var Ct=[];Object.keys(vt).forEach(function(mt){if(ct[mt]){Ct.push(ct[mt]);return}var Zt=Qe[mt];ct[mt]=d(Zt,Le,z,K),Ct.push(ct[mt])}),Ct=Ct.sort(function(mt,Zt){return Zt-mt});for(var Bt=!1,lt=0;lt<$e;lt++)if(Ct[lt]<nt[lt]){Bt=!0;break}if(Bt)return jt.splice(We,1),"continue"},ut=lr-1;ut>=0;ut--)Hn(ut)});var tt=[];jt==null||jt.forEach(function(qt){for(var rn=ve[qt.id].idx,cn=b(U.nodes,Q[rn],rn,z,G),er=cn.neighbors,rr=er.length,nt=!1,lr=rr-1;lr>=0;lr--){if(er.length+1<L.nodes.length){nt=!0;return}var Hn=er[lr],ut=Hn[z];if(!Pe[ut]||!Pe[ut].length){er.splice(lr,1);continue}if(!ze[ut]||!ze[ut].length){er.splice(lr,1);continue}var bt="".concat(qt.id,"-").concat(Hn.id),We=he[bt],be=ze[ut].length-1,Ae=ze[ut][be];if(We>Ae){er.splice(lr,1);continue}if(V){var Ue="".concat(Hn.id,"-").concat(qt.id),$e=he[Ue];be=rt[ut].length-1;var kt=rt[ut][be];if($e>kt){er.splice(lr,1);continue}}var lt=ct[bt]?ct[bt]:O(U,qt,Hn,ve,We,Je,Le,z,K,ct,Qe),vt="".concat(at.id,"-").concat(ut),Ct=Lt[vt][Lt[vt].length-1];if(lt<Ct){er.splice(lr,1);continue}var Bt=F(Xt,ut,me,Pe),mt=Bt.minPatternNodeLabelDegree,Zt=Bt.minPatternNodeLabelInDegree,zt=Bt.minPatternNodeLabelOutDegree;if(ve[Hn.id].degree<mt){er.splice(lr,1);continue}}nt||tt.push({nodes:[qt].concat(er)})});var de=(0,y.default)(L,at.id,!1).length,ot={};V?(Object.keys(de).forEach(function(qt){var rn=me[qt].node[z];ot[rn]?ot[rn].push(de[qt]):ot[rn]=[de[qt]]}),Object.keys(ot).forEach(function(qt){ot[qt].sort(function(rn,cn){return rn-cn})})):ot=ze;for(var Et=tt.length,Ht=function(rn){var cn=tt[rn],er=cn.nodes[0],rr={},nt={};cn.nodes.forEach(function(ya,$t){nt[ya.id]={idx:$t,node:ya,degree:0,inDegree:0,outDegree:0};var wn=ya[z];rr[wn]?rr[wn]++:rr[wn]=1});var lr=[],Hn={};U.edges.forEach(function(ya){nt[ya.source]&&nt[ya.target]&&(lr.push(ya),Hn[ya[K]]?Hn[ya[K]]++:Hn[ya[K]]=1,nt[ya.source].degree++,nt[ya.target].degree++,nt[ya.source].outDegree++,nt[ya.target].inDegree++)});for(var ut=Object.keys(pe).length,bt=!1,We=0;We<ut;We++){var be=Object.keys(pe)[We];if(!Hn[be]||Hn[be]<pe[be].length){bt=!0;break}}if(bt)return tt.splice(rn,1),"continue";var Ae=lr.length;if(Ae<L.edges.length)return tt.splice(rn,1),"break";for(var Ue=!1,$e=function($t){var wn=lr[$t],Fn=wn[K],Or=pe[Fn];if(!Or||!Or.length)return Hn[Fn]--,Or&&Hn[Fn]<Or.length?(Ue=!0,"break"):(lr.splice($t,1),nt[wn.source].degree--,nt[wn.target].degree--,nt[wn.source].outDegree--,nt[wn.target].inDegree--,"continue");var vr=nt[wn.source].node[z],Ur=nt[wn.target].node[z],Zr=!1;if(Or.forEach(function(Kr){var ba=me[Kr.source].node,Ri=me[Kr.target].node;ba[z]===vr&&Ri[z]===Ur&&(Zr=!0),!V&&ba[z]===Ur&&Ri[z]===vr&&(Zr=!0)}),!Zr)return Hn[Fn]--,Or&&Hn[Fn]<Or.length?(Ue=!0,"break"):(lr.splice($t,1),nt[wn.source].degree--,nt[wn.target].degree--,nt[wn.source].outDegree--,nt[wn.target].inDegree--,"continue")},We=Ae-1;We>=0;We--){var kt=$e(We);if(kt==="break")break}if(Ue)return tt.splice(rn,1),"continue";cn.edges=lr;var lt=(0,y.default)(cn,cn.nodes[0].id,!1).length;if(Object.keys(lt).reverse().forEach(function(ya){if(!(ya===cn.nodes[0].id||Ue)){if(lt[ya]===Infinity){var $t=nt[ya].node[z];if(rr[$t]--,rr[$t]<Pe[$t].length){Ue=!0;return}var wn=cn.nodes.indexOf(nt[ya].node);cn.nodes.splice(wn,1),nt[ya]=void 0;return}var Fn=ve[ya].node[z];if(!ot[Fn]||!ot[Fn].length||lt[ya]>ot[Fn][ot[Fn].length-1]){var $t=nt[ya].node[z];if(rr[$t]--,rr[$t]<Pe[$t].length){Ue=!0;return}var wn=cn.nodes.indexOf(nt[ya].node);cn.nodes.splice(wn,1),nt[ya]=void 0}}}),Ue)return tt.splice(rn,1),"continue";for(var vt=!0,Ct=0;vt&&!Ue;){vt=!1;var Bt=V?nt[er.id].degree<me[at.id].degree||nt[er.id].inDegree<me[at.id].inDegree||nt[er.id].outDegree<me[at.id].outDegree:nt[er.id].degree<me[at.id].degree;if(Bt){Ue=!0;break}if(rr[er[z]]<Pe[er[z]].length){Ue=!0;break}for(var mt=cn.nodes.length,Zt=mt-1;Zt>=0;Zt--){var zt=cn.nodes[Zt],ln=nt[zt.id].degree,An=nt[zt.id].inDegree,En=nt[zt.id].outDegree,Gn=zt[z],Bn=F(Xt,Gn,me,Pe),pr=Bn.minPatternNodeLabelDegree,_r=Bn.minPatternNodeLabelInDegree,na=Bn.minPatternNodeLabelOutDegree,$n=V?ln<pr||An<_r||En<na:ln<pr;if($n){if(rr[zt[z]]--,rr[zt[z]]<Pe[zt[z]].length){Ue=!0;break}cn.nodes.splice(Zt,1),nt[zt.id]=void 0,vt=!0}}if(Ue||!vt&&Ct!==0)break;Ae=lr.length;for(var qr=Ae-1;qr>=0;qr--){var Jr=lr[qr];if(!nt[Jr.source]||!nt[Jr.target]){lr.splice(qr,1);var Aa=Jr[K];if(Hn[Aa]--,nt[Jr.source]&&(nt[Jr.source].degree--,nt[Jr.source].outDegree--),nt[Jr.target]&&(nt[Jr.target].degree--,nt[Jr.target].inDegree--),pe[Aa]&&Hn[Aa]<pe[Aa].length){Ue=!0;break}vt=!0}}Ct++}if(Ue||Ue||cn.nodes.length<L.nodes.length||lr.length<L.edges.length)return tt.splice(rn,1),"continue"},Jt=Et-1;Jt>=0;Jt--){var Qt=Ht(Jt);if(Qt==="break")break}for(var an=tt.length,Un=function(rn){var cn=tt[rn],er={};cn.edges.forEach(function(lr){var Hn="".concat(lr.source,"-").concat(lr.target,"-").concat(lr.label);er[Hn]?er[Hn]++:er[Hn]=1});for(var rr=function(Hn){var ut=tt[Hn],bt={};ut.edges.forEach(function(be){var Ae="".concat(be.source,"-").concat(be.target,"-").concat(be.label);bt[Ae]?bt[Ae]++:bt[Ae]=1});var We=!0;Object.keys(bt).length!==Object.keys(er).length?We=!1:Object.keys(er).forEach(function(be){bt[be]!==er[be]&&(We=!1)}),We&&tt.splice(Hn,1)},nt=an-1;nt>rn;nt--)rr(nt);an=tt.length},Jt=0;Jt<=an-1;Jt++)Un(Jt);return tt}}},Z=D;N.default=Z},46562:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=A(o(98480)),g=o(23301);function A(w){return w&&w.__esModule?w:{default:w}}var y=function(m,b,v,h){b===void 0&&(b=!1),v===void 0&&(v="weight"),h===void 0&&(h=1e3);var d=m.nodes,_=d===void 0?[]:d,p=m.edges,S=p===void 0?[]:p,k={},O={};_.forEach(function(z,K){var re=(0,g.uniqueId)();z.clusterId=re,k[re]={id:re,nodes:[z]},O[z.id]={node:z,idx:K}});var F=(0,x.default)(m,b),D=[],Z={};F.forEach(function(z,K){var re=0,ne=_[K].id;Z[ne]={},z.forEach(function(Q,ue){if(!!Q){re+=Q;var he=_[ue].id;Z[ne][he]=Q}}),D.push(re)});for(var W=0,U=function(){var K=!1;if(_.forEach(function(re){var ne={};Object.keys(Z[re.id]).forEach(function(we){var me=Z[re.id][we],Pe=O[we].node,pe=Pe.clusterId;ne[pe]||(ne[pe]=0),ne[pe]+=me});var Q=-Infinity,ue=[];if(Object.keys(ne).forEach(function(we){Q<ne[we]?(Q=ne[we],ue=[we]):Q===ne[we]&&ue.push(we)}),!(ue.length===1&&ue[0]===re.clusterId)){var he=ue.indexOf(re.clusterId);if(he>=0&&ue.splice(he,1),ue&&ue.length){K=!0;var Ee=k[re.clusterId],ce=Ee.nodes.indexOf(re);Ee.nodes.splice(ce,1);var ve=Math.floor(Math.random()*ue.length),fe=k[ue[ve]];fe.nodes.push(re),re.clusterId=fe.id}}}),!K)return"break";W++};W<h;){var L=U();if(L==="break")break}Object.keys(k).forEach(function(z){var K=k[z];(!K.nodes||!K.nodes.length)&&delete k[z]});var V=[],$={};S.forEach(function(z){var K=z.source,re=z.target,ne=z[v]||1,Q=O[K].node.clusterId,ue=O[re].node.clusterId,he="".concat(Q,"---").concat(ue);if($[he])$[he].weight+=ne,$[he].count++;else{var Ee={source:Q,target:ue,weight:ne,count:1};$[he]=Ee,V.push(Ee)}});var G=[];return Object.keys(k).forEach(function(z){G.push(k[z])}),{clusters:G,clusterEdges:V}},M=y;N.default=M},38337:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=o(70234),g=w(o(98480)),A=w(o(52987)),y=o(17579),M=o(25346);function w(d){return d&&d.__esModule?d:{default:d}}var m=function(_,p,S,k){for(var O=p.length,F=2*k,D=0,Z=0;Z<O;Z++)for(var W=_[Z].clusterId,U=0;U<O;U++){var L=_[U].clusterId;if(W===L){var V=p[Z][U]||0,$=S[Z]||0,G=S[U]||0;D+=V-$*G/F}}return D*=1/F,D},b=function(_,p){_===void 0&&(_=[]);for(var S=_.length,k=new A.default([]),O=0;O<S;O++)k=k.add(new A.default(p[O]));var F=k.avg(S);F.normalize();for(var D=0,O=0;O<S;O++){var Z=new A.default(p[O]),W=Z.squareEuclideanDistance(F);D+=W}var U=[];_.forEach(function(){U.push([])});for(var O=0;O<S;O++){var Z=new A.default(p[O]);_[O].clusterInertial=0;for(var L=0;L<S;L++){if(O===L){U[O][L]=0;continue}var V=new A.default(p[L]);U[O][L]=Z.squareEuclideanDistance(V),_[O].clusterInertial+=U[O][L]}}for(var $=0,G=2*S*D,O=0;O<S;O++)for(var z=_[O].clusterId,L=0;L<S;L++){var K=_[L].clusterId;if(!(O===L||z!==K)){var re=_[O].clusterInertial*_[L].clusterInertial/Math.pow(G,2)-U[O][L]/G;$+=re}}return Number($.toFixed(4))},v=function(_,p,S,k,O,F,D,Z,W){p===void 0&&(p=!1),S===void 0&&(S="weight"),k===void 0&&(k=1e-4),O===void 0&&(O=!1),F===void 0&&(F=void 0),D===void 0&&(D=[]),Z===void 0&&(Z=["id"]),W===void 0&&(W=1);var U=_.nodes,L=U===void 0?[]:U,V=_.edges,$=V===void 0?[]:V,G=[];if(O){L.forEach(function(Qe,qe){Qe.properties=Qe.properties||{},Qe.originIndex=qe});var z=[];L.every(function(Qe){return Qe.hasOwnProperty("nodeType")})&&(z=Array.from(new Set(L.map(function(Qe){return Qe.nodeType}))),L.forEach(function(Qe){Qe.properties.nodeType=z.findIndex(function(qe){return qe===Qe.nodeType})}));var K=(0,y.getAllProperties)(L,F);G=(0,M.oneHot)(K,D,Z)}var re=1,ne={},Q={};L.forEach(function(Qe,qe){var et=String(re++);Qe.clusterId=et,ne[et]={id:et,nodes:[Qe]},Q[Qe.id]={node:Qe,idx:qe}});var ue=(0,g.default)(_,p),he=[],Ee={},ce=0;ue.forEach(function(Qe,qe){var et=0,dt=L[qe].id;Ee[dt]={},Qe.forEach(function(Ke,Ge){if(!!Ke){et+=Ke;var wt=L[Ge].id;Ee[dt][wt]=Ke,ce+=Ke}}),he.push(et)}),ce/=2;for(var ve=Infinity,fe=Infinity,we=0,me=[],Pe={};;){O&&L.every(function(Qe){return Qe.hasOwnProperty("properties")})?ve=m(L,ue,he,ce)+b(L,G)*W:ve=m(L,ue,he,ce),we===0&&(fe=ve,me=L,Pe=ne);var pe=ve>0&&ve>fe&&ve-fe<k;if(ve>fe&&(me=L.map(function(Qe){return{node:Qe,clusterId:Qe.clusterId}}),Pe=(0,x.clone)(ne),fe=ve),pe||we>100)break;we++,Object.keys(ne).forEach(function(Qe){var qe=0;$.forEach(function(et){var dt=et.source,Ke=et.target,Ge=Q[dt].node.clusterId,wt=Q[Ke].node.clusterId;(Ge===Qe&&wt!==Qe||wt===Qe&&Ge!==Qe)&&(qe=qe+(et[S]||1))}),ne[Qe].sumTot=qe}),L.forEach(function(Qe,qe){var et=ne[Qe.clusterId],dt=0,Ke,Ge=he[qe]/(2*ce),wt=0,Vt=et.nodes;Vt.forEach(function(Yt){var Rt=Q[Yt.id].idx;wt+=ue[qe][Rt]||0});var gt=wt-et.sumTot*Ge,it=Vt.filter(function(Yt){return Yt.id!==Qe.id}),Le=[];it.forEach(function(Yt,Rt){Le[Rt]=G[Yt.originIndex]});var ct=b(it,G)*W,at=Ee[Qe.id];if(Object.keys(at).forEach(function(Yt){var Rt=Q[Yt].node,Lt=Rt.clusterId;if(Lt!==Qe.clusterId){var ze=ne[Lt],rt=ze.nodes;if(!(!rt||!rt.length)){var tt=0;rt.forEach(function(Qt){var an=Q[Qt.id].idx;tt+=ue[qe][an]||0});var de=tt-ze.sumTot*Ge,ot=rt.concat([Qe]),Et=[];ot.forEach(function(Qt,an){Et[an]=G[Qt.originIndex]});var Ht=b(ot,G)*W,Jt=de-gt;O&&(Jt=de+Ht-(gt+ct)),Jt>dt&&(dt=Jt,Ke=ze)}}}),dt>0){Ke.nodes.push(Qe);var jt=Qe.clusterId;Qe.clusterId=Ke.id;var St=et.nodes.indexOf(Qe);et.nodes.splice(St,1);var fn=0,Xt=0;$.forEach(function(Yt){var Rt=Yt.source,Lt=Yt.target,ze=Q[Rt].node.clusterId,rt=Q[Lt].node.clusterId;(ze===Ke.id&&rt!==Ke.id||rt===Ke.id&&ze!==Ke.id)&&(fn=fn+(Yt[S]||1)),(ze===jt&&rt!==jt||rt===jt&&ze!==jt)&&(Xt=Xt+(Yt[S]||1))}),Ke.sumTot=fn,et.sumTot=Xt}})}var Ie={},Je=0;Object.keys(Pe).forEach(function(Qe){var qe=Pe[Qe];if(!qe.nodes||!qe.nodes.length){delete Pe[Qe];return}var et=String(Je+1);et!==Qe&&(qe.id=et,qe.nodes=qe.nodes.map(function(dt){return{id:dt.id,clusterId:et}}),Pe[et]=qe,Ie[Qe]=et,delete Pe[Qe],Je++)}),me.forEach(function(Qe){var qe=Qe.node,et=Qe.clusterId;!qe||(qe.clusterId=et,qe.clusterId&&Ie[qe.clusterId]&&(qe.clusterId=Ie[qe.clusterId]))});var ke=[],De={};$.forEach(function(Qe){var qe=Qe.source,et=Qe.target,dt=Qe[S]||1,Ke=Q[qe].node.clusterId,Ge=Q[et].node.clusterId;if(!(!Ke||!Ge)){var wt="".concat(Ke,"---").concat(Ge);if(De[wt])De[wt].weight+=dt,De[wt].count++;else{var Vt={source:Ke,target:Ge,weight:dt,count:1};De[wt]=Vt,ke.push(Vt)}}});var Fe=[];return Object.keys(Pe).forEach(function(Qe){Fe.push(Pe[Qe])}),{clusters:Fe,clusterEdges:ke}},h=v;N.default=h},47001:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=y(o(64129)),g=y(o(66935)),A=o(23301);function y(v){return v&&v.__esModule?v:{default:v}}var M=function(h,d){var _=[],p=h.nodes,S=p===void 0?[]:p,k=h.edges,O=k===void 0?[]:k;if(S.length===0)return _;var F=S[0],D=new Set;D.add(F);var Z=function(G,z){return d?G.weight-z.weight:0},W=new g.default(Z);for((0,A.getEdgesByNodeId)(F.id,O).forEach(function($){W.insert($)});!W.isEmpty();){var U=W.delMin(),L=U.source,V=U.target;D.has(L)&&D.has(V)||(_.push(U),D.has(L)||(D.add(L),(0,A.getEdgesByNodeId)(L,O).forEach(function($){W.insert($)})),D.has(V)||(D.add(V),(0,A.getEdgesByNodeId)(V,O).forEach(function($){W.insert($)})))}return _},w=function(h,d){var _=[],p=h.nodes,S=p===void 0?[]:p,k=h.edges,O=k===void 0?[]:k;if(S.length===0)return _;var F=O.map(function(L){return L});d&&F.sort(function(L,V){return L.weight-V.weight});for(var D=new x.default(S.map(function(L){return L.id}));F.length>0;){var Z=F.shift(),W=Z.source,U=Z.target;D.connected(W,U)||(_.push(Z),D.union(W,U))}return _},m=function(h,d,_){var p={prim:M,kruskal:w};return _?p[_](h,d):w(h,d)},b=m;N.default=b},11083:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=A(o(28789)),g=o(23301);function A(w){return w&&w.__esModule?w:{default:w}}var y=function(m,b,v){typeof b!="number"&&(b=1e-6),typeof v!="number"&&(v=.85);for(var h=1,d=0,_=1e3,p=m.nodes,S=p===void 0?[]:p,k=m.edges,O=k===void 0?[]:k,F=S.length,D,Z={},W={},U=0;U<F;++U){var L=S[U],V=L.id;Z[V]=1/F,W[V]=1/F}for(var $=(0,x.default)(m);_>0&&h>b;){d=0;for(var U=0;U<F;++U){var L=S[U],V=L.id;if(D=0,$[L.id].inDegree===0)Z[V]=0;else{for(var G=(0,g.getNeighbors)(V,O,"source"),z=0;z<G.length;++z){var K=G[z],re=$[K].outDegree;re>0&&(D+=W[K]/re)}Z[V]=v*D,d+=Z[V]}}d=(1-d)/F,h=0;for(var U=0;U<F;++U){var L=S[U],V=L.id;D=Z[V]+d,h+=Math.abs(D-W[V]),W[V]=D}_-=1}return W},M=y;N.default=M},66935:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var o=function(y,M){return y-M},x=function(){function A(y){y===void 0&&(y=o),this.compareFn=y,this.list=[]}return A.prototype.getLeft=function(y){return 2*y+1},A.prototype.getRight=function(y){return 2*y+2},A.prototype.getParent=function(y){return y===0?null:Math.floor((y-1)/2)},A.prototype.isEmpty=function(){return this.list.length<=0},A.prototype.top=function(){return this.isEmpty()?void 0:this.list[0]},A.prototype.delMin=function(){var y=this.top(),M=this.list.pop();return this.list.length>0&&(this.list[0]=M,this.moveDown(0)),y},A.prototype.insert=function(y){if(y!==null){this.list.push(y);var M=this.list.length-1;return this.moveUp(M),!0}return!1},A.prototype.moveUp=function(y){for(var M=this.getParent(y);y&&y>0&&this.compareFn(this.list[M],this.list[y])>0;){var w=this.list[M];this.list[M]=this.list[y],this.list[y]=w,y=M,M=this.getParent(y)}},A.prototype.moveDown=function(y){var M,w=y,m=this.getLeft(y),b=this.getRight(y),v=this.list.length;m!==null&&m<v&&this.compareFn(this.list[w],this.list[m])>0?w=m:b!==null&&b<v&&this.compareFn(this.list[w],this.list[b])>0&&(w=b),y!==w&&(M=[this.list[w],this.list[y]],this.list[y]=M[0],this.list[w]=M[1],this.moveDown(w))},A}(),g=x;N.default=g},19015:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=N.LinkedListNode=void 0;var o=function(M,w){return M===w},x=function(){function y(M,w){w===void 0&&(w=null),this.value=M,this.next=w}return y.prototype.toString=function(M){return M?M(this.value):"".concat(this.value)},y}();N.LinkedListNode=x;var g=function(){function y(M){M===void 0&&(M=o),this.head=null,this.tail=null,this.compare=M}return y.prototype.prepend=function(M){var w=new x(M,this.head);return this.head=w,this.tail||(this.tail=w),this},y.prototype.append=function(M){var w=new x(M);return this.head?(this.tail.next=w,this.tail=w,this):(this.head=w,this.tail=w,this)},y.prototype.delete=function(M){if(!this.head)return null;for(var w=null;this.head&&this.compare(this.head.value,M);)w=this.head,this.head=this.head.next;var m=this.head;if(m!==null)for(;m.next;)this.compare(m.next.value,M)?(w=m.next,m.next=m.next.next):m=m.next;return this.compare(this.tail.value,M)&&(this.tail=m),w},y.prototype.find=function(M){var w=M.value,m=w===void 0?void 0:w,b=M.callback,v=b===void 0?void 0:b;if(!this.head)return null;for(var h=this.head;h;){if(v&&v(h.value)||m!==void 0&&this.compare(h.value,m))return h;h=h.next}return null},y.prototype.deleteTail=function(){var M=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,M;for(var w=this.head;w.next;)w.next.next?w=w.next:w.next=null;return this.tail=w,M},y.prototype.deleteHead=function(){if(!this.head)return null;var M=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),M},y.prototype.fromArray=function(M){var w=this;return M.forEach(function(m){return w.append(m)}),this},y.prototype.toArray=function(){for(var M=[],w=this.head;w;)M.push(w),w=w.next;return M},y.prototype.reverse=function(){for(var M=this.head,w=null,m=null;M;)m=M.next,M.next=w,w=M,M=m;this.tail=this.head,this.head=w},y.prototype.toString=function(M){return M===void 0&&(M=void 0),this.toArray().map(function(w){return w.toString(M)}).toString()},y}(),A=g;N.default=A},69372:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=g(o(19015));function g(M){return M&&M.__esModule?M:{default:M}}var A=function(){function M(){this.linkedList=new x.default}return M.prototype.isEmpty=function(){return!this.linkedList.head},M.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},M.prototype.enqueue=function(w){this.linkedList.append(w)},M.prototype.dequeue=function(){var w=this.linkedList.deleteHead();return w?w.value:null},M.prototype.toString=function(w){return this.linkedList.toString(w)},M}(),y=A;N.default=y},64129:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var o=function(){function g(A){this.count=A.length,this.parent={};for(var y=0,M=A;y<M.length;y++){var w=M[y];this.parent[w]=w}}return g.prototype.find=function(A){for(;this.parent[A]!==A;)A=this.parent[A];return A},g.prototype.union=function(A,y){var M=this.find(A),w=this.find(y);M!==w&&(M<w?(this.parent[y]!==y&&this.union(this.parent[y],A),this.parent[y]=this.parent[A]):(this.parent[A]!==A&&this.union(this.parent[A],y),this.parent[A]=this.parent[y]))},g.prototype.connected=function(A,y){return this.find(A)===this.find(y)},g}(),x=o;N.default=x},86104:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.DistanceType=void 0;var o;N.DistanceType=o,function(x){x.EuclideanDistance="euclideanDistance"}(o||(N.DistanceType=o={}))},23301:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.uniqueId=N.getOutEdgesNodeId=N.getNeighbors=N.getEdgesByNodeId=void 0;var o=function(M,w,m){w===void 0&&(w=[]);var b=w.filter(function(_){return _.source===M||_.target===M});if(m==="target"){var v=function(p){return p.source===M};return b.filter(v).map(function(_){return _.target})}if(m==="source"){var h=function(p){return p.target===M};return b.filter(h).map(function(_){return _.source})}var d=function(p){return p.source===M?p.target:p.source};return b.map(d)};N.getNeighbors=o;var x=function(M,w){return w.filter(function(m){return m.source===M})};N.getOutEdgesNodeId=x;var g=function(M,w){return w.filter(function(m){return m.source===M||m.target===M})};N.getEdgesByNodeId=g;var A=function(M){M===void 0&&(M=0);var w="".concat(Math.random()).split(".")[1].substr(0,5),m="".concat(Math.random()).split(".")[1].substr(0,5);return"".concat(M,"-").concat(w).concat(m)};N.uniqueId=A},25346:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.oneHot=N.getDistance=N.getAllKeyValueMap=N.default=void 0;var x=o(70234),g=o(86104),A=y(o(52987));function y(v){return v&&v.__esModule?v:{default:v}}var M=function(h,d,_){var p=[];(d==null?void 0:d.length)?p=d:(h.forEach(function(k){p=p.concat(Object.keys(k))}),p=(0,x.uniq)(p));var S={};return p.forEach(function(k){var O=[];h.forEach(function(F){F[k]!==void 0&&F[k]!==""&&O.push(F[k])}),O.length&&!(_==null?void 0:_.includes(k))&&(S[k]=(0,x.uniq)(O))}),S};N.getAllKeyValueMap=M;var w=function(h,d,_){var p=M(h,d,_),S=[];if(!Object.keys(p).length)return S;var k=Object.values(p),O=k.every(function(F){return F.every(function(D){return typeof D=="number"})});return h.forEach(function(F,D){var Z=[];Object.keys(p).forEach(function(W){var U=F[W],L=p[W],V=L.findIndex(function(z){return U===z}),$=[];if(O)$.push(U);else for(var G=0;G<L.length;G++)G===V?$.push(1):$.push(0);Z=Z.concat($)}),S[D]=Z}),S};N.oneHot=w;var m=function(h,d,_,p){_===void 0&&(_=g.DistanceType.EuclideanDistance);var S=0;switch(_){case g.DistanceType.EuclideanDistance:S=new A.default(h).euclideanDistance(new A.default(d));break;default:break}return S};N.getDistance=m;var b={getAllKeyValueMap:M,oneHot:w,getDistance:m};N.default=b},17579:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.getPropertyWeight=N.getAllSortProperties=N.getAllProperties=N.default=void 0;var x=o(33129),g=function(b,v){b===void 0&&(b=[]),v===void 0&&(v=100);var h={};b.forEach(function(_){!_.properties||Object.keys(_.properties).forEach(function(p){if(p==="id"||!"".concat(_.properties[p]).match(x.secondReg)&&!"".concat(_.properties[p]).match(x.dateReg)&&isNaN(Number(_.properties[p]))){h.hasOwnProperty(p)&&delete h[p];return}h.hasOwnProperty(p)?h[p]+=1:h[p]=1})});var d=Object.keys(h).sort(function(_,p){return h[p]-h[_]});return d.length<v?d:d.slice(0,v)};N.getAllSortProperties=g;var A=function(b,v){return v.map(function(h){return b.hasOwnProperty(h)?b[h]:0})},y=function(b){for(var v=g(b),h=[],d=0;d<b.length;d++)h[d]=A(b[d].properties,v);return h};N.getPropertyWeight=y;var M=function(b,v){v===void 0&&(v=void 0);var h=[];return b.forEach(function(d){v===void 0&&h.push(d),d[v]!==void 0&&h.push(d[v])}),h};N.getAllProperties=M;var w={getAllSortProperties:g,getPropertyWeight:y,getAllProperties:M};N.default=w},52987:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=o(70234),g=function(){function y(M){this.arr=M}return y.prototype.getArr=function(){return this.arr||[]},y.prototype.add=function(M){var w,m=M.arr;if(!((w=this.arr)===null||w===void 0?void 0:w.length))return new y(m);if(!(m==null?void 0:m.length))return new y(this.arr);if(this.arr.length===m.length){var b=[];for(var v in this.arr)b[v]=this.arr[v]+m[v];return new y(b)}},y.prototype.subtract=function(M){var w,m=M.arr;if(!((w=this.arr)===null||w===void 0?void 0:w.length))return new y(m);if(!(m==null?void 0:m.length))return new y(this.arr);if(this.arr.length===m.length){var b=[];for(var v in this.arr)b[v]=this.arr[v]-m[v];return new y(b)}},y.prototype.avg=function(M){var w=[];if(M!==0)for(var m in this.arr)w[m]=this.arr[m]/M;return new y(w)},y.prototype.negate=function(){var M=[];for(var w in this.arr)M[w]=-this.arr[w];return new y(M)},y.prototype.squareEuclideanDistance=function(M){var w,m=M.arr;if(!((w=this.arr)===null||w===void 0?void 0:w.length)||!(m==null?void 0:m.length))return 0;if(this.arr.length===m.length){var b=0;for(var v in this.arr)b+=Math.pow(this.arr[v]-M.arr[v],2);return b}},y.prototype.euclideanDistance=function(M){var w,m=M.arr;if(!((w=this.arr)===null||w===void 0?void 0:w.length)||!(m==null?void 0:m.length))return 0;if(this.arr.length===m.length){var b=0;for(var v in this.arr)b+=Math.pow(this.arr[v]-M.arr[v],2);return Math.sqrt(b)}else console.error("The two vectors are unequal in length.")},y.prototype.normalize=function(){var M=[],w=(0,x.clone)(this.arr);w.sort(function(h,d){return h-d});var m=w[w.length-1],b=w[0];for(var v in this.arr)M[v]=(this.arr[v]-b)/(m-b);return new y(M)},y.prototype.norm2=function(){var M;if(!((M=this.arr)===null||M===void 0?void 0:M.length))return 0;var w=0;for(var m in this.arr)w+=Math.pow(this.arr[m],2);return Math.sqrt(w)},y.prototype.dot=function(M){var w,m=M.arr;if(!((w=this.arr)===null||w===void 0?void 0:w.length)||!(m==null?void 0:m.length))return 0;if(this.arr.length===m.length){var b=0;for(var v in this.arr)b+=this.arr[v]*M.arr[v];return b}else console.error("The two vectors are unequal in length.")},y.prototype.equal=function(M){var w,m=M.arr;if(((w=this.arr)===null||w===void 0?void 0:w.length)!==(m==null?void 0:m.length))return!1;for(var b in this.arr)if(this.arr[b]!==m[b])return!1;return!0},y}(),A=g;N.default=A},36150:function(oe,N,o){"use strict";function x(W){return x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},x(W)}Object.defineProperty(N,"__esModule",{value:!0}),Object.defineProperty(N,"GADDI",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(N,"breadthFirstSearch",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(N,"connectedComponent",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(N,"depthFirstSearch",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(N,"detectCycle",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(N,"dijkstra",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(N,"findAllPath",{enumerable:!0,get:function(){return v.findAllPath}}),Object.defineProperty(N,"findShortestPath",{enumerable:!0,get:function(){return v.findShortestPath}}),Object.defineProperty(N,"floydWarshall",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(N,"getAdjMatrix",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(N,"getDegree",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(N,"getInDegree",{enumerable:!0,get:function(){return M.getInDegree}}),Object.defineProperty(N,"getNeighbors",{enumerable:!0,get:function(){return O.getNeighbors}}),Object.defineProperty(N,"getOutDegree",{enumerable:!0,get:function(){return M.getOutDegree}}),Object.defineProperty(N,"labelPropagation",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(N,"louvain",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(N,"minimumSpanningTree",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(N,"pageRank",{enumerable:!0,get:function(){return S.default}});var g=Z(o(98480)),A=Z(o(60353)),y=Z(o(38519)),M=D(o(28789)),w=Z(o(59691)),m=Z(o(44860)),b=Z(o(39396)),v=o(58813),h=Z(o(75966)),d=Z(o(46562)),_=Z(o(38337)),p=Z(o(47001)),S=Z(o(11083)),k=Z(o(44318)),O=o(23301);function F(W){if(typeof WeakMap!="function")return null;var U=new WeakMap,L=new WeakMap;return(F=function($){return $?L:U})(W)}function D(W,U){if(!U&&W&&W.__esModule)return W;if(W===null||x(W)!=="object"&&typeof W!="function")return{default:W};var L=F(U);if(L&&L.has(W))return L.get(W);var V={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var G in W)if(G!=="default"&&Object.prototype.hasOwnProperty.call(W,G)){var z=$?Object.getOwnPropertyDescriptor(W,G):null;z&&(z.get||z.set)?Object.defineProperty(V,G,z):V[G]=W[G]}return V.default=W,L&&L.set(W,V),V}function Z(W){return W&&W.__esModule?W:{default:W}}},42448:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.MESSAGE=N.ALGORITHM=void 0;var o={pageRank:"pageRank",breadthFirstSearch:"breadthFirstSearch",connectedComponent:"connectedComponent",depthFirstSearch:"depthFirstSearch",detectCycle:"detectCycle",detectDirectedCycle:"detectDirectedCycle",detectAllCycles:"detectAllCycles",detectAllDirectedCycle:"detectAllDirectedCycle",detectAllUndirectedCycle:"detectAllUndirectedCycle",dijkstra:"dijkstra",findAllPath:"findAllPath",findShortestPath:"findShortestPath",floydWarshall:"floydWarshall",getAdjMatrix:"getAdjMatrix",getDegree:"getDegree",getInDegree:"getInDegree",getNeighbors:"getNeighbors",getOutDegree:"getOutDegree",labelPropagation:"labelPropagation",louvain:"louvain",GADDI:"GADDI",minimumSpanningTree:"minimumSpanningTree",SUCCESS:"SUCCESS",FAILURE:"FAILURE"};N.ALGORITHM=o;var x={SUCCESS:"SUCCESS",FAILURE:"FAILURE"};N.MESSAGE=x},44603:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=o(42448),g=A(o(6780));function A(w){return w&&w.__esModule?w:{default:w}}var y=function(m){return function(){for(var b=[],v=0;v<arguments.length;v++)b[v]=arguments[v];return new Promise(function(h,d){var _=new g.default;_.postMessage({_algorithmType:m,data:b}),_.onmessage=function(p){var S=p.data,k=S.data,O=S._algorithmType;x.MESSAGE.SUCCESS===O?h(k):d(),_.terminate()}})}},M=y;N.default=M},63052:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.pageRankAsync=N.minimumSpanningTreeAsync=N.louvainAsync=N.labelPropagationAsync=N.getOutDegreeAsync=N.getNeighborsAsync=N.getInDegreeAsync=N.getDegreeAsync=N.getAdjMatrixAsync=N.floydWarshallAsync=N.findShortestPathAsync=N.findAllPathAsync=N.dijkstraAsync=N.detectCycleAsync=N.detectAllUndirectedCycleAsync=N.detectAllDirectedCycleAsync=N.detectAllCyclesAsync=N.connectedComponentAsync=N.GADDIAsync=void 0;var x=A(o(44603)),g=o(42448);function A(V){return V&&V.__esModule?V:{default:V}}var y=function($,G){return(0,x.default)(g.ALGORITHM.getAdjMatrix).apply(void 0,[$,G])};N.getAdjMatrixAsync=y;var M=function($,G){return(0,x.default)(g.ALGORITHM.connectedComponent).apply(void 0,[$,G])};N.connectedComponentAsync=M;var w=function($){return(0,x.default)(g.ALGORITHM.getDegree)($)};N.getDegreeAsync=w;var m=function($,G){return(0,x.default)(g.ALGORITHM.getInDegree)($,G)};N.getInDegreeAsync=m;var b=function($,G){return(0,x.default)(g.ALGORITHM.getOutDegree)($,G)};N.getOutDegreeAsync=b;var v=function($){return(0,x.default)(g.ALGORITHM.detectCycle)($)};N.detectCycleAsync=v;var h=function($){return(0,x.default)(g.ALGORITHM.detectAllCycles)($)};N.detectAllCyclesAsync=h;var d=function($){return(0,x.default)(g.ALGORITHM.detectAllDirectedCycle)($)};N.detectAllDirectedCycleAsync=d;var _=function($){return(0,x.default)(g.ALGORITHM.detectAllUndirectedCycle)($)};N.detectAllUndirectedCycleAsync=_;var p=function($,G,z,K){return(0,x.default)(g.ALGORITHM.dijkstra).apply(void 0,[$,G,z,K])};N.dijkstraAsync=p;var S=function($,G,z,K){return(0,x.default)(g.ALGORITHM.findAllPath).apply(void 0,[$,G,z,K])};N.findAllPathAsync=S;var k=function($,G,z,K,re){return(0,x.default)(g.ALGORITHM.findShortestPath).apply(void 0,[$,G,z,K,re])};N.findShortestPathAsync=k;var O=function($,G){return(0,x.default)(g.ALGORITHM.floydWarshall).apply(void 0,[$,G])};N.floydWarshallAsync=O;var F=function($,G,z,K){return K===void 0&&(K=1e3),(0,x.default)(g.ALGORITHM.labelPropagation)($,G,z,K)};N.labelPropagationAsync=F;var D=function($,G,z,K){return(0,x.default)(g.ALGORITHM.louvain)($,G,z,K)};N.louvainAsync=D;var Z=function($,G,z){return(0,x.default)(g.ALGORITHM.minimumSpanningTree).apply(void 0,[$,G,z])};N.minimumSpanningTreeAsync=Z;var W=function($,G,z){return(0,x.default)(g.ALGORITHM.pageRank).apply(void 0,[$,G,z])};N.pageRankAsync=W;var U=function($,G,z){return(0,x.default)(g.ALGORITHM.getNeighbors).apply(void 0,[$,G,z])};N.getNeighborsAsync=U;var L=function($,G,z,K,re,ne,Q){return z===void 0&&(z=!1),ne===void 0&&(ne="cluster"),Q===void 0&&(Q="cluster"),(0,x.default)(g.ALGORITHM.GADDI).apply(void 0,[$,G,z,K,re,ne,Q])};N.GADDIAsync=L},6780:function(oe,N,o){"use strict";function x(b){return x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},x(b)}Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var g=M(o(36150)),A=o(42448);function y(b){if(typeof WeakMap!="function")return null;var v=new WeakMap,h=new WeakMap;return(y=function(_){return _?h:v})(b)}function M(b,v){if(!v&&b&&b.__esModule)return b;if(b===null||x(b)!=="object"&&typeof b!="function")return{default:b};var h=y(v);if(h&&h.has(b))return h.get(b);var d={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in b)if(p!=="default"&&Object.prototype.hasOwnProperty.call(b,p)){var S=_?Object.getOwnPropertyDescriptor(b,p):null;S&&(S.get||S.set)?Object.defineProperty(d,p,S):d[p]=b[p]}return d.default=b,h&&h.set(b,d),d}var w=typeof self!="undefined"?self:{};w.onmessage=function(b){var v=b.data,h=v._algorithmType,d=v.data;if(!!h){if(typeof g[h]=="function"){var _=g[h].apply(g,d);w.postMessage({_algorithmType:A.MESSAGE.SUCCESS,data:_});return}w.postMessage({_algorithmType:A.MESSAGE.FAILURE})}};var m=null;N.default=m},88788:function(oe,N,o){"use strict";o.r(N),o.d(N,{__extends:function(){return g},__assign:function(){return A},__rest:function(){return y},__decorate:function(){return M},__param:function(){return w},__esDecorate:function(){return m},__runInitializers:function(){return b},__propKey:function(){return v},__setFunctionName:function(){return h},__metadata:function(){return d},__awaiter:function(){return _},__generator:function(){return p},__createBinding:function(){return S},__exportStar:function(){return k},__values:function(){return O},__read:function(){return F},__spread:function(){return D},__spreadArrays:function(){return Z},__spreadArray:function(){return W},__await:function(){return U},__asyncGenerator:function(){return L},__asyncDelegator:function(){return V},__asyncValues:function(){return $},__makeTemplateObject:function(){return G},__importStar:function(){return K},__importDefault:function(){return re},__classPrivateFieldGet:function(){return ne},__classPrivateFieldSet:function(){return Q},__classPrivateFieldIn:function(){return ue},__addDisposableResource:function(){return he},__disposeResources:function(){return ce}});var x=function(fe,we){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,Pe){me.__proto__=Pe}||function(me,Pe){for(var pe in Pe)Object.prototype.hasOwnProperty.call(Pe,pe)&&(me[pe]=Pe[pe])},x(fe,we)};function g(ve,fe){if(typeof fe!="function"&&fe!==null)throw new TypeError("Class extends value "+String(fe)+" is not a constructor or null");x(ve,fe);function we(){this.constructor=ve}ve.prototype=fe===null?Object.create(fe):(we.prototype=fe.prototype,new we)}var A=function(){return A=Object.assign||function(we){for(var me,Pe=1,pe=arguments.length;Pe<pe;Pe++){me=arguments[Pe];for(var Ie in me)Object.prototype.hasOwnProperty.call(me,Ie)&&(we[Ie]=me[Ie])}return we},A.apply(this,arguments)};function y(ve,fe){var we={};for(var me in ve)Object.prototype.hasOwnProperty.call(ve,me)&&fe.indexOf(me)<0&&(we[me]=ve[me]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,me=Object.getOwnPropertySymbols(ve);Pe<me.length;Pe++)fe.indexOf(me[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ve,me[Pe])&&(we[me[Pe]]=ve[me[Pe]]);return we}function M(ve,fe,we,me){var Pe=arguments.length,pe=Pe<3?fe:me===null?me=Object.getOwnPropertyDescriptor(fe,we):me,Ie;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(ve,fe,we,me);else for(var Je=ve.length-1;Je>=0;Je--)(Ie=ve[Je])&&(pe=(Pe<3?Ie(pe):Pe>3?Ie(fe,we,pe):Ie(fe,we))||pe);return Pe>3&&pe&&Object.defineProperty(fe,we,pe),pe}function w(ve,fe){return function(we,me){fe(we,me,ve)}}function m(ve,fe,we,me,Pe,pe){function Ie(wt){if(wt!==void 0&&typeof wt!="function")throw new TypeError("Function expected");return wt}for(var Je=me.kind,ke=Je==="getter"?"get":Je==="setter"?"set":"value",De=!fe&&ve?me.static?ve:ve.prototype:null,Fe=fe||(De?Object.getOwnPropertyDescriptor(De,me.name):{}),Qe,qe=!1,et=we.length-1;et>=0;et--){var dt={};for(var Ke in me)dt[Ke]=Ke==="access"?{}:me[Ke];for(var Ke in me.access)dt.access[Ke]=me.access[Ke];dt.addInitializer=function(wt){if(qe)throw new TypeError("Cannot add initializers after decoration has completed");pe.push(Ie(wt||null))};var Ge=(0,we[et])(Je==="accessor"?{get:Fe.get,set:Fe.set}:Fe[ke],dt);if(Je==="accessor"){if(Ge===void 0)continue;if(Ge===null||typeof Ge!="object")throw new TypeError("Object expected");(Qe=Ie(Ge.get))&&(Fe.get=Qe),(Qe=Ie(Ge.set))&&(Fe.set=Qe),(Qe=Ie(Ge.init))&&Pe.unshift(Qe)}else(Qe=Ie(Ge))&&(Je==="field"?Pe.unshift(Qe):Fe[ke]=Qe)}De&&Object.defineProperty(De,me.name,Fe),qe=!0}function b(ve,fe,we){for(var me=arguments.length>2,Pe=0;Pe<fe.length;Pe++)we=me?fe[Pe].call(ve,we):fe[Pe].call(ve);return me?we:void 0}function v(ve){return typeof ve=="symbol"?ve:"".concat(ve)}function h(ve,fe,we){return typeof fe=="symbol"&&(fe=fe.description?"[".concat(fe.description,"]"):""),Object.defineProperty(ve,"name",{configurable:!0,value:we?"".concat(we," ",fe):fe})}function d(ve,fe){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(ve,fe)}function _(ve,fe,we,me){function Pe(pe){return pe instanceof we?pe:new we(function(Ie){Ie(pe)})}return new(we||(we=Promise))(function(pe,Ie){function Je(Fe){try{De(me.next(Fe))}catch(Qe){Ie(Qe)}}function ke(Fe){try{De(me.throw(Fe))}catch(Qe){Ie(Qe)}}function De(Fe){Fe.done?pe(Fe.value):Pe(Fe.value).then(Je,ke)}De((me=me.apply(ve,fe||[])).next())})}function p(ve,fe){var we={label:0,sent:function(){if(pe[0]&1)throw pe[1];return pe[1]},trys:[],ops:[]},me,Pe,pe,Ie;return Ie={next:Je(0),throw:Je(1),return:Je(2)},typeof Symbol=="function"&&(Ie[Symbol.iterator]=function(){return this}),Ie;function Je(De){return function(Fe){return ke([De,Fe])}}function ke(De){if(me)throw new TypeError("Generator is already executing.");for(;Ie&&(Ie=0,De[0]&&(we=0)),we;)try{if(me=1,Pe&&(pe=De[0]&2?Pe.return:De[0]?Pe.throw||((pe=Pe.return)&&pe.call(Pe),0):Pe.next)&&!(pe=pe.call(Pe,De[1])).done)return pe;switch(Pe=0,pe&&(De=[De[0]&2,pe.value]),De[0]){case 0:case 1:pe=De;break;case 4:return we.label++,{value:De[1],done:!1};case 5:we.label++,Pe=De[1],De=[0];continue;case 7:De=we.ops.pop(),we.trys.pop();continue;default:if(pe=we.trys,!(pe=pe.length>0&&pe[pe.length-1])&&(De[0]===6||De[0]===2)){we=0;continue}if(De[0]===3&&(!pe||De[1]>pe[0]&&De[1]<pe[3])){we.label=De[1];break}if(De[0]===6&&we.label<pe[1]){we.label=pe[1],pe=De;break}if(pe&&we.label<pe[2]){we.label=pe[2],we.ops.push(De);break}pe[2]&&we.ops.pop(),we.trys.pop();continue}De=fe.call(ve,we)}catch(Fe){De=[6,Fe],Pe=0}finally{me=pe=0}if(De[0]&5)throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}}var S=Object.create?function(ve,fe,we,me){me===void 0&&(me=we);var Pe=Object.getOwnPropertyDescriptor(fe,we);(!Pe||("get"in Pe?!fe.__esModule:Pe.writable||Pe.configurable))&&(Pe={enumerable:!0,get:function(){return fe[we]}}),Object.defineProperty(ve,me,Pe)}:function(ve,fe,we,me){me===void 0&&(me=we),ve[me]=fe[we]};function k(ve,fe){for(var we in ve)we!=="default"&&!Object.prototype.hasOwnProperty.call(fe,we)&&S(fe,ve,we)}function O(ve){var fe=typeof Symbol=="function"&&Symbol.iterator,we=fe&&ve[fe],me=0;if(we)return we.call(ve);if(ve&&typeof ve.length=="number")return{next:function(){return ve&&me>=ve.length&&(ve=void 0),{value:ve&&ve[me++],done:!ve}}};throw new TypeError(fe?"Object is not iterable.":"Symbol.iterator is not defined.")}function F(ve,fe){var we=typeof Symbol=="function"&&ve[Symbol.iterator];if(!we)return ve;var me=we.call(ve),Pe,pe=[],Ie;try{for(;(fe===void 0||fe-- >0)&&!(Pe=me.next()).done;)pe.push(Pe.value)}catch(Je){Ie={error:Je}}finally{try{Pe&&!Pe.done&&(we=me.return)&&we.call(me)}finally{if(Ie)throw Ie.error}}return pe}function D(){for(var ve=[],fe=0;fe<arguments.length;fe++)ve=ve.concat(F(arguments[fe]));return ve}function Z(){for(var ve=0,fe=0,we=arguments.length;fe<we;fe++)ve+=arguments[fe].length;for(var me=Array(ve),Pe=0,fe=0;fe<we;fe++)for(var pe=arguments[fe],Ie=0,Je=pe.length;Ie<Je;Ie++,Pe++)me[Pe]=pe[Ie];return me}function W(ve,fe,we){if(we||arguments.length===2)for(var me=0,Pe=fe.length,pe;me<Pe;me++)(pe||!(me in fe))&&(pe||(pe=Array.prototype.slice.call(fe,0,me)),pe[me]=fe[me]);return ve.concat(pe||Array.prototype.slice.call(fe))}function U(ve){return this instanceof U?(this.v=ve,this):new U(ve)}function L(ve,fe,we){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var me=we.apply(ve,fe||[]),Pe,pe=[];return Pe={},Ie("next"),Ie("throw"),Ie("return"),Pe[Symbol.asyncIterator]=function(){return this},Pe;function Ie(qe){me[qe]&&(Pe[qe]=function(et){return new Promise(function(dt,Ke){pe.push([qe,et,dt,Ke])>1||Je(qe,et)})})}function Je(qe,et){try{ke(me[qe](et))}catch(dt){Qe(pe[0][3],dt)}}function ke(qe){qe.value instanceof U?Promise.resolve(qe.value.v).then(De,Fe):Qe(pe[0][2],qe)}function De(qe){Je("next",qe)}function Fe(qe){Je("throw",qe)}function Qe(qe,et){qe(et),pe.shift(),pe.length&&Je(pe[0][0],pe[0][1])}}function V(ve){var fe,we;return fe={},me("next"),me("throw",function(Pe){throw Pe}),me("return"),fe[Symbol.iterator]=function(){return this},fe;function me(Pe,pe){fe[Pe]=ve[Pe]?function(Ie){return(we=!we)?{value:U(ve[Pe](Ie)),done:!1}:pe?pe(Ie):Ie}:pe}}function $(ve){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe=ve[Symbol.asyncIterator],we;return fe?fe.call(ve):(ve=typeof O=="function"?O(ve):ve[Symbol.iterator](),we={},me("next"),me("throw"),me("return"),we[Symbol.asyncIterator]=function(){return this},we);function me(pe){we[pe]=ve[pe]&&function(Ie){return new Promise(function(Je,ke){Ie=ve[pe](Ie),Pe(Je,ke,Ie.done,Ie.value)})}}function Pe(pe,Ie,Je,ke){Promise.resolve(ke).then(function(De){pe({value:De,done:Je})},Ie)}}function G(ve,fe){return Object.defineProperty?Object.defineProperty(ve,"raw",{value:fe}):ve.raw=fe,ve}var z=Object.create?function(ve,fe){Object.defineProperty(ve,"default",{enumerable:!0,value:fe})}:function(ve,fe){ve.default=fe};function K(ve){if(ve&&ve.__esModule)return ve;var fe={};if(ve!=null)for(var we in ve)we!=="default"&&Object.prototype.hasOwnProperty.call(ve,we)&&S(fe,ve,we);return z(fe,ve),fe}function re(ve){return ve&&ve.__esModule?ve:{default:ve}}function ne(ve,fe,we,me){if(we==="a"&&!me)throw new TypeError("Private accessor was defined without a getter");if(typeof fe=="function"?ve!==fe||!me:!fe.has(ve))throw new TypeError("Cannot read private member from an object whose class did not declare it");return we==="m"?me:we==="a"?me.call(ve):me?me.value:fe.get(ve)}function Q(ve,fe,we,me,Pe){if(me==="m")throw new TypeError("Private method is not writable");if(me==="a"&&!Pe)throw new TypeError("Private accessor was defined without a setter");if(typeof fe=="function"?ve!==fe||!Pe:!fe.has(ve))throw new TypeError("Cannot write private member to an object whose class did not declare it");return me==="a"?Pe.call(ve,we):Pe?Pe.value=we:fe.set(ve,we),we}function ue(ve,fe){if(fe===null||typeof fe!="object"&&typeof fe!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof ve=="function"?fe===ve:ve.has(fe)}function he(ve,fe,we){if(fe!=null){if(typeof fe!="object"&&typeof fe!="function")throw new TypeError("Object expected.");var me;if(we){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");me=fe[Symbol.asyncDispose]}if(me===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");me=fe[Symbol.dispose]}if(typeof me!="function")throw new TypeError("Object not disposable.");ve.stack.push({value:fe,dispose:me,async:we})}else we&&ve.stack.push({async:!0});return fe}var Ee=typeof SuppressedError=="function"?SuppressedError:function(ve,fe,we){var me=new Error(we);return me.name="SuppressedError",me.error=ve,me.suppressed=fe,me};function ce(ve){function fe(me){ve.error=ve.hasError?new Ee(me,ve.error,"An error was suppressed during disposal."):me,ve.hasError=!0}function we(){for(;ve.stack.length;){var me=ve.stack.pop();try{var Pe=me.dispose&&me.dispose.call(me.value);if(me.async)return Promise.resolve(Pe).then(we,function(pe){return fe(pe),we()})}catch(pe){fe(pe)}}if(ve.hasError)throw ve.error}return we()}N.default={__extends:g,__assign:A,__rest:y,__decorate:M,__param:w,__metadata:d,__awaiter:_,__generator:p,__createBinding:S,__exportStar:k,__values:O,__read:F,__spread:D,__spreadArrays:Z,__spreadArray:W,__await:U,__asyncGenerator:L,__asyncDelegator:V,__asyncValues:$,__makeTemplateObject:G,__importStar:K,__importDefault:re,__classPrivateFieldGet:ne,__classPrivateFieldSet:Q,__classPrivateFieldIn:ue,__addDisposableResource:he,__disposeResources:ce}},96181:function(oe,N,o){"use strict";o.r(N),o.d(N,{Graph:function(){return V},GraphWithEvent:function(){return we},algorithm:function(){return x},comparision:function(){return A},essence:function(){return g},generate:function(){return y}});var x={};o.r(x),o.d(x,{components:function(){return Fe},dfs:function(){return et},dijkstra:function(){return at},dijkstraAll:function(){return St},findCycles:function(){return Rt},floydWarshall:function(){return $e},isAcyclic:function(){return lr},postorder:function(){return ut},preorder:function(){return We},prim:function(){return ke},tarjan:function(){return Xt},topsort:function(){return rr}});var g={};o.r(g),o.d(g,{hasSelfLoop:function(){return Jr},isGraph:function(){return na},isNullGraph:function(){return qr},isSimpleGraph:function(){return $n}});var A={};o.r(A),o.d(A,{containAllSameEdges:function(){return Zt},containAllSameNodes:function(){return mt},containSameEdges:function(){return lt},containSameNodes:function(){return kt},getSameEdges:function(){return Ct},getSameNodes:function(){return vt},isGraphComplement:function(){return Aa},isGraphContainsAnother:function(){return ln},isGraphOptionSame:function(){return Bt},isGraphSame:function(){return zt}});var y={};o.r(y),o.d(y,{getGraphComplement:function(){return ya}});var M;(function($t){$t.DEFAULT_EDGE_NAME="\0",$t.GRAPH_NODE="\0",$t.EDGE_KEY_DELIM=""})(M||(M={}));function w($t,wn){var Fn=$t.get(wn)||0;$t.set(wn,Fn+1)}function m($t,wn){var Fn=$t.get(wn);Fn!==void 0&&(Fn=Fn-1,Fn>0?$t.set(wn,Fn):$t.delete(wn))}function b($t,wn,Fn,Or){var vr=String(wn),Ur=String(Fn);if(!$t&&vr>Ur){var Zr=vr;vr=Ur,Ur=Zr}return vr+M.EDGE_KEY_DELIM+Ur+M.EDGE_KEY_DELIM+(Or===void 0?M.DEFAULT_EDGE_NAME:Or)}function v($t,wn,Fn,Or){var vr=String(wn),Ur=String(Fn),Zr={v:wn,w:Fn};if(!$t&&vr>Ur){var Kr=Zr.v;Zr.v=Zr.w,Zr.w=Kr}return Or!==void 0&&(Zr.name=Or),Zr}function h($t,wn){return b($t,wn.v,wn.w,wn.name)}function d($t){return typeof $t=="function"}var _=function(wn){return wn.nodes().map(function(Fn){var Or=wn.node(Fn),vr=wn.parent(Fn),Ur={id:Fn,value:Or,parent:vr};return Ur.value===void 0&&delete Ur.value,Ur.parent===void 0&&delete Ur.parent,Ur})},p=function(wn){return wn.edges().map(function(Fn){var Or=wn.edge(Fn),vr={v:Fn.v,w:Fn.w,value:Or,name:Fn.name};return vr.name===void 0&&delete vr.name,vr.value===void 0&&delete vr.value,vr})},S=function(wn){var Fn={options:{directed:wn.isDirected(),multigraph:wn.isMultigraph(),compound:wn.isCompound()},nodes:_(wn),edges:p(wn),value:wn.graph()};return Fn.value===void 0&&delete Fn.value,Fn},k=function(wn){var Fn=new V(wn.options);return wn.value!==void 0&&Fn.setGraph(wn.value),wn.nodes.forEach(function(Or){Fn.setNode(Or.id,Or.value),Or.parent&&Fn.setParent(Or.id,Or.parent)}),wn.edges.forEach(function(Or){Fn.setEdge(Or.v,Or.w,Or.value,Or.name)}),Fn};function O($t,wn){var Fn=Object.keys($t);if(Object.getOwnPropertySymbols){var Or=Object.getOwnPropertySymbols($t);wn&&(Or=Or.filter(function(vr){return Object.getOwnPropertyDescriptor($t,vr).enumerable})),Fn.push.apply(Fn,Or)}return Fn}function F($t){for(var wn=1;wn<arguments.length;wn++){var Fn=arguments[wn]!=null?arguments[wn]:{};wn%2?O(Object(Fn),!0).forEach(function(Or){D($t,Or,Fn[Or])}):Object.getOwnPropertyDescriptors?Object.defineProperties($t,Object.getOwnPropertyDescriptors(Fn)):O(Object(Fn)).forEach(function(Or){Object.defineProperty($t,Or,Object.getOwnPropertyDescriptor(Fn,Or))})}return $t}function D($t,wn,Fn){return wn in $t?Object.defineProperty($t,wn,{value:Fn,enumerable:!0,configurable:!0,writable:!0}):$t[wn]=Fn,$t}function Z($t,wn){if(!($t instanceof wn))throw new TypeError("Cannot call a class as a function")}function W($t,wn){for(var Fn=0;Fn<wn.length;Fn++){var Or=wn[Fn];Or.enumerable=Or.enumerable||!1,Or.configurable=!0,"value"in Or&&(Or.writable=!0),Object.defineProperty($t,Or.key,Or)}}function U($t,wn,Fn){return wn&&W($t.prototype,wn),Fn&&W($t,Fn),Object.defineProperty($t,"prototype",{writable:!1}),$t}var L={compound:!1,multigraph:!1,directed:!0},V=function(){function $t(){var wn=this,Fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Z(this,$t),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=M.GRAPH_NODE,this.label=void 0,this.nodeCountNum=0,this.edgeCountNum=0,this.defaultNodeLabelFn=function(){},this.defaultEdgeLabelFn=function(){},this.parentMap=void 0,this.childrenMap=void 0,this.nodesLabelMap=new Map,this.inEdgesMap=new Map,this.outEdgesMap=new Map,this.predecessorsMap=new Map,this.successorsMap=new Map,this.edgesMap=new Map,this.edgesLabelsMap=new Map,this.isDirected=function(){return wn.directed},this.isMultigraph=function(){return wn.multigraph},this.isCompound=function(){return wn.compound},this.setGraph=function(vr){return wn.label=vr,wn},this.graph=function(){return wn.label},this.setDefaultNodeLabel=function(vr){return d(vr)?wn.defaultNodeLabelFn=vr:wn.defaultNodeLabelFn=function(){return vr},wn},this.nodeCount=function(){return wn.nodeCountNum},this.node=function(vr){return wn.nodesLabelMap.get(vr)},this.nodes=function(){return Array.from(wn.nodesLabelMap.keys())},this.sources=function(){return wn.nodes().filter(function(vr){var Ur;return!((Ur=wn.inEdgesMap.get(vr))===null||Ur===void 0?void 0:Ur.size)})},this.sinks=function(){return wn.nodes().filter(function(vr){var Ur;return!((Ur=wn.outEdgesMap.get(vr))===null||Ur===void 0?void 0:Ur.size)})},this.setNodes=function(vr,Ur){return vr.map(function(Zr){return wn.setNode(Zr,Ur)}),wn},this.hasNode=function(vr){return wn.nodesLabelMap.has(vr)},this.checkCompound=function(){if(!wn.isCompound())throw new Error("Cannot construct parent-children relations in a non-compound graph")},this.parent=function(vr){if(wn.isCompound()){var Ur,Zr=(Ur=wn.parentMap)===null||Ur===void 0?void 0:Ur.get(vr);if(Zr!==wn.GRAPH_NODE)return Zr}},this.removeFromParentsChildList=function(vr){var Ur=wn.parentMap.get(vr);wn.childrenMap.get(Ur).delete(vr)},this.setParent=function(vr,Ur){var Zr,Kr;wn.checkCompound();for(var ba=Ur===void 0?wn.GRAPH_NODE:Ur,Ri=wn.parent(ba);Ri;){if(vr===Ri)throw new Error("Setting "+Ur+" as parent of "+vr+" would create a cycle");Ri=wn.parent(Ri)}Ur&&wn.setNode(Ur),wn.setNode(vr),wn.removeFromParentsChildList(vr),(Zr=wn.parentMap)===null||Zr===void 0||Zr.set(vr,ba);var Ea=wn.childrenMap.get(ba);return Ea.set(vr,!0),(Kr=wn.childrenMap)===null||Kr===void 0||Kr.set(ba,Ea),wn},this.children=function(vr){var Ur=vr===void 0?wn.GRAPH_NODE:vr;if(wn.isCompound()){var Zr,Kr=(Zr=wn.childrenMap)===null||Zr===void 0?void 0:Zr.get(Ur);return Kr?Array.from(Kr.keys()):void 0}if(Ur===wn.GRAPH_NODE)return wn.nodes();if(vr&&wn.hasNode(vr))return[]},this.predecessors=function(vr){var Ur=wn.predecessorsMap.get(vr);return Ur?Array.from(Ur.keys()):void 0},this.successors=function(vr){var Ur=wn.successorsMap.get(vr);return Ur?Array.from(Ur.keys()):void 0},this.neighbors=function(vr){var Ur;if(!!wn.hasNode(vr))return Array.from(new Set((Ur=wn.predecessors(vr))===null||Ur===void 0?void 0:Ur.concat(wn.successors(vr))))},this.isLeaf=function(vr){var Ur;if(wn.isDirected()){var Zr;return!((Zr=wn.successors(vr))===null||Zr===void 0?void 0:Zr.length)}return!((Ur=wn.neighbors(vr))===null||Ur===void 0?void 0:Ur.length)},this.filterNodes=function(vr){var Ur=wn.directed,Zr=wn.multigraph,Kr=wn.compound,ba=new $t({directed:Ur,multigraph:Zr,compound:Kr});if(ba.setGraph(wn.graph()),wn.nodes().forEach(function(Ea){vr(Ea)&&ba.setNode(Ea,wn.node(Ea))}),wn.edges().forEach(function(Ea){ba.hasNode(Ea.v)&&ba.hasNode(Ea.w)&&ba.setEdgeObj(Ea,wn.edge(Ea))}),Kr){var Ri=function(Pi){for(var rs=wn.parent(Pi);rs!==void 0&&!ba.hasNode(rs);)rs=wn.parent(rs);return rs};ba.nodes().forEach(function(Ea){ba.setParent(Ea,Ri(Ea))})}return ba},this.setDefaultEdgeLabel=function(vr){return d(vr)?wn.defaultEdgeLabelFn=vr:wn.defaultEdgeLabelFn=function(){return vr},wn},this.edgeCount=function(){return wn.edgeCountNum},this.setEdgeObj=function(vr,Ur){return wn.setEdge(vr.v,vr.w,Ur,vr.name)},this.setPath=function(vr,Ur){return vr.reduce(function(Zr,Kr){return wn.setEdge(Zr,Kr,Ur),Kr}),wn},this.edgeFromArgs=function(vr,Ur,Zr){return wn.edge({v:vr,w:Ur,name:Zr})},this.edge=function(vr){return wn.edgesLabelsMap.get(h(wn.isDirected(),vr))},this.hasEdge=function(vr,Ur,Zr){return wn.edgesLabelsMap.has(h(wn.isDirected(),{v:vr,w:Ur,name:Zr}))},this.removeEdgeObj=function(vr){var Ur=vr.v,Zr=vr.w,Kr=vr.name;return wn.removeEdge(Ur,Zr,Kr)},this.edges=function(){return Array.from(wn.edgesMap.values())},this.inEdges=function(vr,Ur){var Zr=wn.inEdgesMap.get(vr);if(Zr)return Array.from(Zr.values()).filter(function(Kr){return!Ur||Kr.v===Ur})},this.outEdges=function(vr,Ur){var Zr=wn.outEdgesMap.get(vr);if(Zr)return Array.from(Zr.values()).filter(function(Kr){return!Ur||Kr.w===Ur})},this.nodeEdges=function(vr,Ur){var Zr;if(!!wn.hasNode(vr))return(Zr=wn.inEdges(vr,Ur))===null||Zr===void 0?void 0:Zr.concat(wn.outEdges(vr,Ur))},this.toJSON=function(){return S(wn)},this.nodeInDegree=function(vr){var Ur=wn.inEdgesMap.get(vr);return Ur?Ur.size:0},this.nodeOutDegree=function(vr){var Ur=wn.outEdgesMap.get(vr);return Ur?Ur.size:0},this.nodeDegree=function(vr){return wn.nodeInDegree(vr)+wn.nodeOutDegree(vr)},this.source=function(vr){return vr.v},this.target=function(vr){return vr.w};var Or=F(F({},L),Fn);this.compound=Or.compound,this.directed=Or.directed,this.multigraph=Or.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}return U($t,[{key:"setNode",value:function(Fn,Or){var vr=this.nodesLabelMap,Ur=this.defaultNodeLabelFn,Zr=this.isCompound,Kr=this.parentMap,ba=this.childrenMap,Ri=this.inEdgesMap,Ea=this.outEdgesMap,Pi=this.predecessorsMap,rs=this.successorsMap;if(vr.has(Fn))return Or!==void 0&&vr.set(Fn,Or),this;if(vr.set(Fn,Or||Ur(Fn)),Zr()){var Ui;Kr==null||Kr.set(Fn,this.GRAPH_NODE),ba==null||ba.set(Fn,new Map),(ba==null?void 0:ba.has(this.GRAPH_NODE))||ba==null||ba.set(this.GRAPH_NODE,new Map),ba==null||(Ui=ba.get(this.GRAPH_NODE))===null||Ui===void 0||Ui.set(Fn,!0)}return[Ri,Ea,Pi,rs].forEach(function(Cn){return Cn.set(Fn,new Map)}),this.nodeCountNum+=1,this}},{key:"removeNode",value:function(Fn){var Or=this;if(this.hasNode(Fn)){var vr=function(Pn){Or.removeEdge(Pn.v,Pn.w,Pn.name)},Ur=this.inEdgesMap,Zr=this.outEdgesMap,Kr=this.predecessorsMap,ba=this.successorsMap,Ri=this.nodesLabelMap;if(this.isCompound()){var Ea,Pi,rs;this.removeFromParentsChildList(Fn),(Ea=this.parentMap)===null||Ea===void 0||Ea.delete(Fn),(Pi=this.children(Fn))===null||Pi===void 0||Pi.forEach(function(Kn){return Or.setParent(Kn)}),(rs=this.childrenMap)===null||rs===void 0||rs.delete(Fn)}var Ui=Ur.get(Fn),Cn=Zr.get(Fn);Array.from(Ui.values()).forEach(function(Kn){return vr(Kn)}),Array.from(Cn.values()).forEach(function(Kn){return vr(Kn)}),Ri.delete(Fn),Ur.delete(Fn),Zr.delete(Fn),Kr.delete(Fn),ba.delete(Fn),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(Fn,Or,vr,Ur){var Zr,Kr,ba=v(this.isDirected(),Fn,Or,Ur),Ri=h(this.isDirected(),ba),Ea=ba.v,Pi=ba.w;if(this.edgesLabelsMap.has(Ri))return this.edgesLabelsMap.set(Ri,vr),this;if(Ur!==void 0&&!this.isMultigraph())throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(Ea),this.setNode(Pi),this.edgesLabelsMap.set(Ri,vr||this.defaultEdgeLabelFn(Ea,Pi,Ur)),Object.freeze(ba),this.edgesMap.set(Ri,ba);var rs=this.predecessorsMap.get(Pi),Ui=this.successorsMap.get(Ea);return w(rs,Ea),w(Ui,Pi),(Zr=this.inEdgesMap.get(Pi))===null||Zr===void 0||Zr.set(Ri,ba),(Kr=this.outEdgesMap.get(Ea))===null||Kr===void 0||Kr.set(Ri,ba),this.edgeCountNum+=1,this}},{key:"removeEdge",value:function(Fn,Or,vr){var Ur=b(this.isDirected(),Fn,Or,vr),Zr=this.edgesMap.get(Ur);if(Zr){var Kr=v(this.isDirected(),Fn,Or,vr),ba=Kr.v,Ri=Kr.w;this.edgesLabelsMap.delete(Ur),this.edgesMap.delete(Ur);var Ea=this.predecessorsMap.get(Ri),Pi=this.successorsMap.get(ba);m(Ea,ba),m(Pi,Ri),this.inEdgesMap.get(Ri).delete(Ur),this.outEdgesMap.get(ba).delete(Ur),this.edgeCountNum-=1}return this}}]),$t}();V.fromJSON=k;function $($t){return $=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(wn){return typeof wn}:function(wn){return wn&&typeof Symbol=="function"&&wn.constructor===Symbol&&wn!==Symbol.prototype?"symbol":typeof wn},$($t)}function G($t,wn){if(!($t instanceof wn))throw new TypeError("Cannot call a class as a function")}function z($t,wn){for(var Fn=0;Fn<wn.length;Fn++){var Or=wn[Fn];Or.enumerable=Or.enumerable||!1,Or.configurable=!0,"value"in Or&&(Or.writable=!0),Object.defineProperty($t,Or.key,Or)}}function K($t,wn,Fn){return wn&&z($t.prototype,wn),Fn&&z($t,Fn),Object.defineProperty($t,"prototype",{writable:!1}),$t}function re(){return typeof Reflect!="undefined"&&Reflect.get?re=Reflect.get:re=function(wn,Fn,Or){var vr=ne(wn,Fn);if(!!vr){var Ur=Object.getOwnPropertyDescriptor(vr,Fn);return Ur.get?Ur.get.call(arguments.length<3?wn:Or):Ur.value}},re.apply(this,arguments)}function ne($t,wn){for(;!Object.prototype.hasOwnProperty.call($t,wn)&&($t=fe($t),$t!==null););return $t}function Q($t,wn){if(typeof wn!="function"&&wn!==null)throw new TypeError("Super expression must either be null or a function");$t.prototype=Object.create(wn&&wn.prototype,{constructor:{value:$t,writable:!0,configurable:!0}}),Object.defineProperty($t,"prototype",{writable:!1}),wn&&ue($t,wn)}function ue($t,wn){return ue=Object.setPrototypeOf||function(Or,vr){return Or.__proto__=vr,Or},ue($t,wn)}function he($t){var wn=ve();return function(){var Or=fe($t),vr;if(wn){var Ur=fe(this).constructor;vr=Reflect.construct(Or,arguments,Ur)}else vr=Or.apply(this,arguments);return Ee(this,vr)}}function Ee($t,wn){if(wn&&($(wn)==="object"||typeof wn=="function"))return wn;if(wn!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ce($t)}function ce($t){if($t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $t}function ve(){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 fe($t){return fe=Object.setPrototypeOf?Object.getPrototypeOf:function(Fn){return Fn.__proto__||Object.getPrototypeOf(Fn)},fe($t)}var we=function($t){Q(Fn,$t);var wn=he(Fn);function Fn(){var Or;G(this,Fn);for(var vr=arguments.length,Ur=new Array(vr),Zr=0;Zr<vr;Zr++)Ur[Zr]=arguments[Zr];return Or=wn.call.apply(wn,[this].concat(Ur)),Or.eventPool={},Or}return K(Fn,[{key:"appendEvent",value:function(vr,Ur){this.eventPool[vr]||(this.eventPool[vr]=[]),this.eventPool[vr].push(Ur)}},{key:"removeEvent",value:function(vr,Ur){if(!!this.eventPool[vr]){var Zr=this.eventPool[vr].indexOf(Ur);Zr>-1&&this.eventPool[vr].splice(Zr,1)}}},{key:"emitEvent",value:function(vr){for(var Ur=arguments.length,Zr=new Array(Ur>1?Ur-1:0),Kr=1;Kr<Ur;Kr++)Zr[Kr-1]=arguments[Kr];!this.eventPool[vr]||this.eventPool[vr].forEach(function(ba){ba.apply(void 0,Zr)})}},{key:"setNode",value:function(vr,Ur){return re(fe(Fn.prototype),"setNode",this).call(this,vr,Ur),this.emitEvent("nodeAdd",vr,Ur),this}},{key:"removeNode",value:function(vr){return re(fe(Fn.prototype),"removeNode",this).call(this,vr),this.emitEvent("nodeRemove",vr),this}},{key:"setEdge",value:function(vr,Ur,Zr,Kr){return re(fe(Fn.prototype),"setEdge",this).call(this,vr,Ur,Zr,Kr),this.emitEvent("edgeAdd",vr,Ur,Zr,Kr),this}},{key:"removeEdge",value:function(vr,Ur,Zr){return re(fe(Fn.prototype),"removeEdge",this).call(this,vr,Ur,Zr),this.emitEvent("edgeRemove",vr,Ur,Zr),this}}]),Fn}(V);function me($t,wn){for(var Fn=0;Fn<wn.length;Fn++){var Or=wn[Fn];Or.enumerable=Or.enumerable||!1,Or.configurable=!0,"value"in Or&&(Or.writable=!0),Object.defineProperty($t,Or.key,Or)}}function Pe($t,wn,Fn){return wn&&me($t.prototype,wn),Fn&&me($t,Fn),Object.defineProperty($t,"prototype",{writable:!1}),$t}function pe($t,wn){if(!($t instanceof wn))throw new TypeError("Cannot call a class as a function")}var Ie=Pe(function $t(){var wn=this;pe(this,$t),this.arr=[],this.keyIndice=new Map,this.size=function(){return wn.arr.length},this.keys=function(){return wn.arr.map(function(Fn){return Fn.key})},this.has=function(Fn){return wn.keyIndice.has(Fn)},this.priority=function(Fn){var Or=wn.keyIndice.get(Fn);if(Or!==void 0)return wn.arr[Or].priority},this.swap=function(Fn,Or){var vr=wn.arr,Ur=wn.keyIndice,Zr=[vr[Fn],vr[Or]],Kr=Zr[0],ba=Zr[1];vr[Fn]=ba,vr[Or]=Kr,Ur.set(Kr.key,Or),Ur.set(ba.key,Fn)},this.innerDecrease=function(Fn){for(var Or=wn.arr,vr=Or[Fn].priority,Ur,Zr=Fn;Zr!==0;){var Kr;if(Ur=Zr>>1,((Kr=Or[Ur])===null||Kr===void 0?void 0:Kr.priority)<vr)break;wn.swap(Zr,Ur),Zr=Ur}},this.heapify=function(Fn){var Or=wn.arr,vr=Fn<<1,Ur=vr+1,Zr=Fn;vr<Or.length&&(Zr=Or[vr].priority<Or[Zr].priority?vr:Zr,Ur<Or.length&&(Zr=Or[Ur].priority<Or[Zr].priority?Ur:Zr),Zr!==Fn&&(wn.swap(Fn,Zr),wn.heapify(Zr)))},this.min=function(){if(wn.size()===0)throw new Error("Queue underflow");return wn.arr[0].key},this.add=function(Fn,Or){var vr=wn.keyIndice,Ur=wn.arr;if(!vr.has(Fn)){var Zr=Ur.length;return vr.set(Fn,Zr),Ur.push({key:Fn,priority:Or}),wn.innerDecrease(Zr),!0}return!1},this.removeMin=function(){wn.swap(0,wn.arr.length-1);var Fn=wn.arr.pop();return wn.keyIndice.delete(Fn.key),wn.heapify(0),Fn.key},this.decrease=function(Fn,Or){if(!wn.has(Fn))throw new Error("There's no key named ".concat(Fn));var vr=wn.keyIndice.get(Fn);if(Or>wn.arr[vr].priority)throw new Error("New priority is greater than current priority.Key: ".concat(Fn," Old: + ").concat(wn.arr[vr].priority," New: ").concat(Or));wn.arr[vr].priority=Or,wn.innerDecrease(vr)}}),Je=function(wn,Fn){var Or=new V,vr=new Map,Ur=new Ie,Zr;function Kr(Ea){var Pi=Ea.v===Zr?Ea.w:Ea.v,rs=Ur.priority(Pi);if(rs!==void 0){var Ui=Fn(Ea);Ui<rs&&(vr.set(Pi,Zr),Ur.decrease(Pi,Ui))}}if(wn.nodeCount()===0)return Or;wn.nodes().forEach(function(Ea){Ur.add(Ea,Number.POSITIVE_INFINITY),Or.setNode(Ea)}),Ur.decrease(wn.nodes()[0],0);for(var ba=!1;Ur.size()>0;){var Ri;if(Zr=Ur.removeMin(),vr.has(Zr))Or.setEdge(Zr,vr.get(Zr));else{if(ba)throw new Error("Input graph is not connected: "+wn.graph());ba=!0}(Ri=wn.nodeEdges(Zr))===null||Ri===void 0||Ri.forEach(Kr)}return Or},ke=Je,De=function(wn){var Fn=new Set,Or=[],vr=wn.nodes();return vr.forEach(function(Ur){for(var Zr=[],Kr=[Ur];Kr.length>0;){var ba=Kr.pop();if(!Fn.has(ba)){var Ri,Ea;Fn.add(ba),Zr.push(ba),(Ri=wn.successors(ba))===null||Ri===void 0||Ri.forEach(function(Pi){return Kr.push(Pi)}),(Ea=wn.predecessors(ba))===null||Ea===void 0||Ea.forEach(function(Pi){return Kr.push(Pi)})}}Zr.length&&Or.push(Zr)}),Or},Fe=De,Qe=function $t(wn,Fn,Or,vr,Ur,Zr){vr.includes(Fn)||(vr.push(Fn),Or||Zr.push(Fn),Ur(Fn).forEach(function(Kr){return $t(wn,Kr,Or,vr,Ur,Zr)}),Or&&Zr.push(Fn))},qe=function(wn,Fn,Or){var vr=Array.isArray(Fn)?Fn:[Fn],Ur=function(Ri){return wn.isDirected()?wn.successors(Ri):wn.neighbors(Ri)},Zr=[],Kr=[];return vr.forEach(function(ba){if(wn.hasNode(ba))Qe(wn,ba,Or==="post",Kr,Ur,Zr);else throw new Error("Graph does not have node: "+ba)}),Zr},et=qe;function dt($t,wn){return gt($t)||Vt($t,wn)||Ge($t,wn)||Ke()}function Ke(){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 Ge($t,wn){if(!!$t){if(typeof $t=="string")return wt($t,wn);var Fn=Object.prototype.toString.call($t).slice(8,-1);if(Fn==="Object"&&$t.constructor&&(Fn=$t.constructor.name),Fn==="Map"||Fn==="Set")return Array.from($t);if(Fn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Fn))return wt($t,wn)}}function wt($t,wn){(wn==null||wn>$t.length)&&(wn=$t.length);for(var Fn=0,Or=new Array(wn);Fn<wn;Fn++)Or[Fn]=$t[Fn];return Or}function Vt($t,wn){var Fn=$t==null?null:typeof Symbol!="undefined"&&$t[Symbol.iterator]||$t["@@iterator"];if(Fn!=null){var Or=[],vr=!0,Ur=!1,Zr,Kr;try{for(Fn=Fn.call($t);!(vr=(Zr=Fn.next()).done)&&(Or.push(Zr.value),!(wn&&Or.length===wn));vr=!0);}catch(ba){Ur=!0,Kr=ba}finally{try{!vr&&Fn.return!=null&&Fn.return()}finally{if(Ur)throw Kr}}return Or}}function gt($t){if(Array.isArray($t))return $t}var it=function(){return 1},Le=function(wn,Fn,Or,vr){return ct(wn,Fn,Or||it,vr||function(Ur){return wn.outEdges(Ur)})},ct=function(wn,Fn,Or,vr){var Ur=new Map,Zr=new Ie,Kr,ba,Ri=function(rs){var Ui=rs.v!==Kr?rs.v:rs.w,Cn=Ur.get(Ui),Kn=Or(rs),Pn=ba.distance+Kn;if(Kn<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+rs+" Weight: "+Kn);Pn<Cn.distance&&(Cn.distance=Pn,Cn.predecessor=Kr,Zr.decrease(Ui,Pn))};for(wn.nodes().forEach(function(Pi){var rs=Pi===Fn?0:Number.POSITIVE_INFINITY;Ur.set(Pi,{distance:rs}),Zr.add(Pi,rs)});Zr.size()>0&&(Kr=Zr.removeMin(),ba=Ur.get(Kr),!(ba&&ba.distance===Number.POSITIVE_INFINITY));)vr(Kr).forEach(Ri);var Ea={};return Array.from(Ur.entries()).forEach(function(Pi){var rs=dt(Pi,2),Ui=rs[0],Cn=rs[1];return Ea[String(Ui)]=Cn,Ea}),Ea},at=Le,jt=function(wn,Fn,Or){var vr={};return wn.nodes().forEach(function(Ur){return vr[String(Ur)]=at(wn,Ur,Fn,Or),vr}),vr},St=jt,fn=function(wn){var Fn=0,Or=[],vr=new Map,Ur=[];function Zr(Kr){var ba,Ri={onStack:!0,lowlink:Fn,index:Fn};if(vr.set(Kr,Ri),Fn+=1,Or.push(Kr),(ba=wn.successors(Kr))===null||ba===void 0||ba.forEach(function(Ui){var Cn;if(vr.has(Ui)){if((Cn=vr.get(Ui))===null||Cn===void 0?void 0:Cn.onStack){var Pn=vr.get(Ui);Ri.lowlink=Math.min(Ri.lowlink,Pn.index)}}else{Zr(Ui);var Kn=vr.get(Ui);Ri.lowlink=Math.min(Ri.lowlink,Kn.lowlink)}}),Ri.lowlink===Ri.index){var Ea=[],Pi;do{Pi=Or.pop();var rs=vr.get(Pi);rs.onStack=!1,Ea.push(Pi)}while(Kr!==Pi);Ur.push(Ea)}}return wn.nodes().forEach(function(Kr){vr.has(Kr)||Zr(Kr)}),Ur},Xt=fn,Yt=function(wn){return Xt(wn).filter(function(Fn){return Fn.length>1||Fn.length===1&&wn.hasEdge(Fn[0],Fn[0])})},Rt=Yt;function Lt($t){return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(wn){return typeof wn}:function(wn){return wn&&typeof Symbol=="function"&&wn.constructor===Symbol&&wn!==Symbol.prototype?"symbol":typeof wn},Lt($t)}function ze($t,wn){for(var Fn=0;Fn<wn.length;Fn++){var Or=wn[Fn];Or.enumerable=Or.enumerable||!1,Or.configurable=!0,"value"in Or&&(Or.writable=!0),Object.defineProperty($t,Or.key,Or)}}function rt($t,wn,Fn){return wn&&ze($t.prototype,wn),Fn&&ze($t,Fn),Object.defineProperty($t,"prototype",{writable:!1}),$t}function tt($t,wn){if(!($t instanceof wn))throw new TypeError("Cannot call a class as a function")}function de($t,wn){if(typeof wn!="function"&&wn!==null)throw new TypeError("Super expression must either be null or a function");$t.prototype=Object.create(wn&&wn.prototype,{constructor:{value:$t,writable:!0,configurable:!0}}),Object.defineProperty($t,"prototype",{writable:!1}),wn&&qt($t,wn)}function ot($t){var wn=an();return function(){var Or=rn($t),vr;if(wn){var Ur=rn(this).constructor;vr=Reflect.construct(Or,arguments,Ur)}else vr=Or.apply(this,arguments);return Et(this,vr)}}function Et($t,wn){if(wn&&(Lt(wn)==="object"||typeof wn=="function"))return wn;if(wn!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ht($t)}function Ht($t){if($t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $t}function Jt($t){var wn=typeof Map=="function"?new Map:void 0;return Jt=function(Or){if(Or===null||!Un(Or))return Or;if(typeof Or!="function")throw new TypeError("Super expression must either be null or a function");if(typeof wn!="undefined"){if(wn.has(Or))return wn.get(Or);wn.set(Or,vr)}function vr(){return Qt(Or,arguments,rn(this).constructor)}return vr.prototype=Object.create(Or.prototype,{constructor:{value:vr,enumerable:!1,writable:!0,configurable:!0}}),qt(vr,Or)},Jt($t)}function Qt($t,wn,Fn){return an()?Qt=Reflect.construct:Qt=function(vr,Ur,Zr){var Kr=[null];Kr.push.apply(Kr,Ur);var ba=Function.bind.apply(vr,Kr),Ri=new ba;return Zr&&qt(Ri,Zr.prototype),Ri},Qt.apply(null,arguments)}function an(){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 Un($t){return Function.toString.call($t).indexOf("[native code]")!==-1}function qt($t,wn){return qt=Object.setPrototypeOf||function(Or,vr){return Or.__proto__=vr,Or},qt($t,wn)}function rn($t){return rn=Object.setPrototypeOf?Object.getPrototypeOf:function(Fn){return Fn.__proto__||Object.getPrototypeOf(Fn)},rn($t)}var cn=function($t){de(Fn,$t);var wn=ot(Fn);function Fn(){return tt(this,Fn),wn.apply(this,arguments)}return rt(Fn)}(Jt(Error));function er($t){var wn=new Set,Fn=new Set,Or=[];function vr(Ur){if(Fn.has(Ur))throw new cn;if(!wn.has(Ur)){var Zr;Fn.add(Ur),wn.add(Ur),(Zr=$t.predecessors(Ur))===null||Zr===void 0||Zr.forEach(vr),Fn.delete(Ur),Or.push(Ur)}}if($t.sinks().forEach(vr),wn.size!==$t.nodeCount())throw new cn;return Or}var rr=er,nt=function(wn){try{rr(wn)}catch(Fn){if(Fn instanceof cn)return!1;throw Fn}return!0},lr=nt,Hn=function(wn,Fn){return et(wn,Fn,"post")},ut=Hn,bt=function(wn,Fn){return et(wn,Fn,"pre")},We=bt,be=function(){return 1};function Ae($t,wn,Fn){return Ue($t,wn||be,Fn||function(Or){return $t.outEdges(Or)})}function Ue($t,wn,Fn){var Or={},vr=$t.nodes();return vr.forEach(function(Ur){var Zr=String(Ur);Or[Zr]={},Or[Zr][Zr]={distance:0},vr.forEach(function(Kr){Ur!==Kr&&(Or[Zr][String(Kr)]={distance:Number.POSITIVE_INFINITY})}),Fn(Ur).forEach(function(Kr){var ba=Kr.v===Ur?Kr.w:Kr.v,Ri=wn(Kr);Or[Zr][String(ba)]={distance:Ri,predecessor:Ur}})}),vr.forEach(function(Ur){var Zr=String(Ur),Kr=Or[Zr];vr.forEach(function(ba){var Ri=String(ba),Ea=Or[Ri];vr.forEach(function(Pi){var rs=String(Pi),Ui=Ea[Zr],Cn=Kr[rs],Kn=Ea[rs],Pn=Ui.distance+Cn.distance;Pn<Kn.distance&&(Kn.distance=Pn,Kn.predecessor=Cn.predecessor)})})}),Or}var $e=Ae,kt=function(wn,Fn){for(var Or=wn.nodes(),vr=0;vr<Or.length;vr++){var Ur=Or[vr];if(Fn.hasNode(Ur))return!0}return!1},lt=function(wn,Fn){for(var Or=wn.edges(),vr=0;vr<Or.length;vr++){var Ur=Or[vr];if(Fn.hasEdge(Ur.v,Ur.w,Ur.name))return!0}return!1},vt=function(wn,Fn){var Or=wn.nodes(),vr=Or.filter(function(Ur){return Fn.hasNode(Ur)});return vr},Ct=function(wn,Fn){var Or=wn.edges(),vr=Or.filter(function(Ur){return Fn.hasEdge(Ur.v,Ur.w,Ur.name)});return vr},Bt=function(wn,Fn){return wn.isCompound()===Fn.isCompound()&&wn.isDirected()===Fn.isDirected()&&wn.isMultigraph()===Fn.isMultigraph()},mt=function(wn,Fn){var Or=vt(wn,Fn);return Or.length===wn.nodes().length},Zt=function(wn,Fn){var Or=Ct(wn,Fn);return Or.length===wn.edges().length},zt=function(wn,Fn){return Bt(wn,Fn)&&wn.nodeCount()===Fn.nodeCount()&&mt(wn,Fn)&&wn.edgeCount()===Fn.edgeCount()&&Zt(wn,Fn)},ln=function(wn,Fn){return mt(wn,Fn)&&Zt(wn,Fn)};function An($t,wn){return _r($t)||pr($t,wn)||Gn($t,wn)||En()}function En(){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 Gn($t,wn){if(!!$t){if(typeof $t=="string")return Bn($t,wn);var Fn=Object.prototype.toString.call($t).slice(8,-1);if(Fn==="Object"&&$t.constructor&&(Fn=$t.constructor.name),Fn==="Map"||Fn==="Set")return Array.from($t);if(Fn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Fn))return Bn($t,wn)}}function Bn($t,wn){(wn==null||wn>$t.length)&&(wn=$t.length);for(var Fn=0,Or=new Array(wn);Fn<wn;Fn++)Or[Fn]=$t[Fn];return Or}function pr($t,wn){var Fn=$t==null?null:typeof Symbol!="undefined"&&$t[Symbol.iterator]||$t["@@iterator"];if(Fn!=null){var Or=[],vr=!0,Ur=!1,Zr,Kr;try{for(Fn=Fn.call($t);!(vr=(Zr=Fn.next()).done)&&(Or.push(Zr.value),!(wn&&Or.length===wn));vr=!0);}catch(ba){Ur=!0,Kr=ba}finally{try{!vr&&Fn.return!=null&&Fn.return()}finally{if(Ur)throw Kr}}return Or}}function _r($t){if(Array.isArray($t))return $t}function na($t){return $t instanceof V}function $n($t){if($t.isMultigraph())return!1;for(var wn=$t.edges(),Fn=new Map,Or=0;Or<wn.length;Or++){var vr=wn[Or];if(vr.v===vr.w)return!1;var Ur=[vr.v,vr.w].sort(),Zr=An(Ur,2),Kr=Zr[0],ba=Zr[1],Ri="".concat(Kr,"-").concat(ba);if(Fn.has(Ri))return!1;Fn.set(Ri,!0)}return!0}function qr($t){return $t.nodes().length===0}function Jr($t){for(var wn=$t.edges(),Fn=0;Fn<wn.length;Fn++){var Or=wn[Fn];if(Or.v===Or.w)return!0}return!1}var Aa=function(wn,Fn){if(!$n(wn)||!$n(Fn)||!mt(wn,Fn)||lt(wn,Fn))return!1;var Or=wn.nodeCount();return wn.edgeCount()+Fn.edgeCount()===Or*(Or-1)/2},ya=function(wn){if(!$n(wn))return null;for(var Fn=wn.nodeCount(),Or=new V({compound:wn.isCompound(),directed:wn.isDirected(),multigraph:wn.isMultigraph()}),vr=wn.nodes(),Ur=0;Ur<Fn;Ur++){var Zr=vr[Ur];Or.setNode(Zr,wn.node(Zr));for(var Kr=Ur+1;Kr<Fn;Kr++){var ba=vr[Kr];wn.hasEdge(Zr,ba)||Or.setEdge(Zr,ba)}}return Or}},40009:function(oe){(function(o,x){oe.exports=x()})(typeof self!="undefined"?self:this,function(){return function(N){var o={};function x(g){if(o[g])return o[g].exports;var A=o[g]={i:g,l:!1,exports:{}};return N[g].call(A.exports,A,A.exports,x),A.l=!0,A.exports}return x.m=N,x.c=o,x.d=function(g,A,y){x.o(g,A)||Object.defineProperty(g,A,{configurable:!1,enumerable:!0,get:y})},x.n=function(g){var A=g&&g.__esModule?function(){return g.default}:function(){return g};return x.d(A,"a",A),A},x.o=function(g,A){return Object.prototype.hasOwnProperty.call(g,A)},x.p="",x(x.s=36)}([function(N,o,x){"use strict";var g=x(3);o.a=function(A){return Array.isArray?Array.isArray(A):Object(g.a)(A,"Array")}},function(N,o,x){"use strict";var g=function(y){return y!==null&&typeof y!="function"&&isFinite(y.length)};o.a=g},function(N,o,x){"use strict";var g=x(3);o.a=function(A){return Object(g.a)(A,"Function")}},function(N,o,x){"use strict";var g={}.toString,A=function(M,w){return g.call(M)==="[object "+w+"]"};o.a=A},function(N,o,x){"use strict";var g=x(3);o.a=function(A){return Object(g.a)(A,"String")}},function(N,o,x){"use strict";var g=x(3),A=function(M){return Object(g.a)(M,"Number")};o.a=A},function(N,o,x){var g=x(38),A=g.mix;function y(M,w,m,b){return b===void 0&&(b="height"),m==="center"?(M[b]+w[b])/2:M.height}N.exports={assign:A,getHeight:y}},function(N,o,x){"use strict";var g=function(y){return y==null};o.a=g},function(N,o,x){"use strict";var g=x(0),A=x(12);function y(M,w){if(!!M){var m;if(Object(g.a)(M))for(var b=0,v=M.length;b<v&&(m=w(M[b],b),m!==!1);b++);else if(Object(A.a)(M)){for(var h in M)if(M.hasOwnProperty(h)&&(m=w(M[h],h),m===!1))break}}}o.a=y},function(N,o,x){"use strict";var g=x(7);o.a=function(A){return Object(g.a)(A)?"":A.toString()}},function(N,o,x){"use strict";var g=x(14),A=x(3),y=function(w){if(!Object(g.a)(w)||!Object(A.a)(w,"Object"))return!1;if(Object.getPrototypeOf(w)===null)return!0;for(var m=w;Object.getPrototypeOf(m)!==null;)m=Object.getPrototypeOf(m);return Object.getPrototypeOf(w)===m};o.a=y},function(N,o,x){var g=x(18),A=function(){function y(w,m){m===void 0&&(m={});var b=this;b.options=m,b.rootNode=g(w,m)}var M=y.prototype;return M.execute=function(){throw new Error("please override this method")},y}();N.exports=A},function(N,o,x){"use strict";o.a=function(g){var A=typeof g;return g!==null&&A==="object"||A==="function"}},function(N,o,x){"use strict";var g=x(1),A=function(M,w){return Object(g.a)(M)?M.indexOf(w)>-1:!1};o.a=A},function(N,o,x){"use strict";var g=function(y){return typeof y=="object"&&y!==null};o.a=g},function(N,o,x){"use strict";var g=x(8),A=x(2),y=Object.values?function(M){return Object.values(M)}:function(M){var w=[];return Object(g.a)(M,function(m,b){Object(A.a)(M)&&b==="prototype"||w.push(m)}),w};o.a=y},function(N,o,x){"use strict";o.a=A;function g(y,M){for(var w in M)M.hasOwnProperty(w)&&w!=="constructor"&&M[w]!==void 0&&(y[w]=M[w])}function A(y,M,w,m){return M&&g(y,M),w&&g(y,w),m&&g(y,m),y}},function(N,o,x){var g=x(35),A=["LR","RL","TB","BT","H","V"],y=["LR","RL","H"],M=function(b){return y.indexOf(b)>-1},w=A[0];N.exports=function(m,b,v){var h=b.direction||w;if(b.isHorizontal=M(h),h&&A.indexOf(h)===-1)throw new TypeError("Invalid direction: "+h);if(h===A[0])v(m,b);else if(h===A[1])v(m,b),m.right2left();else if(h===A[2])v(m,b);else if(h===A[3])v(m,b),m.bottom2top();else if(h===A[4]||h===A[5]){var d=g(m,b),_=d.left,p=d.right;v(_,b),v(p,b),b.isHorizontal?_.right2left():_.bottom2top(),p.translate(_.x-p.x,_.y-p.y),m.x=_.x,m.y=p.y;var S=m.getBoundingBox();b.isHorizontal?S.top<0&&m.translate(0,-S.top):S.left<0&&m.translate(-S.left,0)}var k=b.fixedRoot;return k===void 0&&(k=!0),k&&m.translate(-(m.x+m.width/2+m.hgap),-(m.y+m.height/2+m.vgap)),m}},function(N,o,x){var g=x(6),A=18,y=A*2,M=A,w={getId:function(h){return h.id||h.name},getPreH:function(h){return h.preH||0},getPreV:function(h){return h.preV||0},getHGap:function(h){return h.hgap||M},getVGap:function(h){return h.vgap||M},getChildren:function(h){return h.children},getHeight:function(h){return h.height||y},getWidth:function(h){var d=h.label||" ";return h.width||d.split("").length*A}};function m(v,h){var d=this;if(d.vgap=d.hgap=0,v instanceof m)return v;d.data=v;var _=h.getHGap(v),p=h.getVGap(v);return d.preH=h.getPreH(v),d.preV=h.getPreV(v),d.width=h.getWidth(v),d.height=h.getHeight(v),d.width+=d.preH,d.height+=d.preV,d.id=h.getId(v),d.x=d.y=0,d.depth=0,d.children||(d.children=[]),d.addGap(_,p),d}g.assign(m.prototype,{isRoot:function(){return this.depth===0},isLeaf:function(){return this.children.length===0},addGap:function(h,d){var _=this;_.hgap+=h,_.vgap+=d,_.width+=2*h,_.height+=2*d},eachNode:function(h){for(var d=this,_=[d],p;p=_.shift();)h(p),_=p.children.concat(_)},DFTraverse:function(h){this.eachNode(h)},BFTraverse:function(h){for(var d=this,_=[d],p;p=_.shift();)h(p),_=_.concat(p.children)},getBoundingBox:function(){var h={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(d){h.left=Math.min(h.left,d.x),h.top=Math.min(h.top,d.y),h.width=Math.max(h.width,d.x+d.width),h.height=Math.max(h.height,d.y+d.height)}),h},translate:function(h,d){h===void 0&&(h=0),d===void 0&&(d=0),this.eachNode(function(_){_.x+=h,_.y+=d,_.x+=_.preH,_.y+=_.preV})},right2left:function(){var h=this,d=h.getBoundingBox();h.eachNode(function(_){_.x=_.x-(_.x-d.left)*2-_.width}),h.translate(d.width,0)},bottom2top:function(){var h=this,d=h.getBoundingBox();h.eachNode(function(_){_.y=_.y-(_.y-d.top)*2-_.height}),h.translate(0,d.height)}});function b(v,h,d){h===void 0&&(h={}),h=g.assign({},w,h);var _=new m(v,h),p=[_],S;if(!d&&!v.collapsed){for(;S=p.shift();)if(!S.data.collapsed){var k=h.getChildren(S.data),O=k?k.length:0;if(S.children=new Array(O),k&&O)for(var F=0;F<O;F++){var D=new m(k[F],h);S.children[F]=D,p.push(D),D.parent=S,D.depth=S.depth+1}}}return _}N.exports=b},function(N,o,x){"use strict";var g=x(1),A=function(M,w){if(!Object(g.a)(M))return M;for(var m=[],b=0;b<M.length;b++){var v=M[b];w(v,b)&&m.push(v)}return m};o.a=A},function(N,o,x){"use strict";var g=x(7),A=x(21);function y(M,w){var m=Object(A.a)(w),b=m.length;if(Object(g.a)(M))return!b;for(var v=0;v<b;v+=1){var h=m[v];if(w[h]!==M[h]||!(h in M))return!1}return!0}o.a=y},function(N,o,x){"use strict";var g=x(8),A=x(2),y=Object.keys?function(M){return Object.keys(M)}:function(M){var w=[];return Object(g.a)(M,function(m,b){Object(A.a)(M)&&b==="prototype"||w.push(b)}),w};o.a=y},function(N,o,x){"use strict";var g=x(0);o.a=function(A){if(!!Object(g.a)(A))return A.reduce(function(y,M){return Math.max(y,M)},A[0])}},function(N,o,x){"use strict";var g=x(0);o.a=function(A){if(!!Object(g.a)(A))return A.reduce(function(y,M){return Math.min(y,M)},A[0])}},function(N,o,x){"use strict";var g=x(1),A=Array.prototype.splice,y=function(w,m){if(!Object(g.a)(w))return[];for(var b=w?m.length:0,v=b-1;b--;){var h=void 0,d=m[b];(b===v||d!==h)&&(h=d,A.call(w,d,1))}return w};o.a=y},function(N,o,x){"use strict";var g=x(8),A=x(0),y=x(10),M=function(m,b,v){if(!Object(A.a)(m)&&!Object(y.a)(m))return m;var h=v;return Object(g.a)(m,function(d,_){h=b(h,d,_)}),h};o.a=M},function(N,o,x){"use strict";o.a=g;function g(A,y){y===void 0&&(y=new Map);var M=[];if(Array.isArray(A))for(var w=0,m=A.length;w<m;w++){var b=A[w];y.has(b)||(M.push(b),y.set(b,!0))}return M}},function(N,o,x){"use strict";o.a=M;var g=x(0),A=x(2),y=x(28);function M(w,m){if(!m)return{0:w};if(!Object(A.a)(m)){var b=Object(g.a)(m)?m:m.replace(/\s+/g,"").split("*");m=function(h){for(var d="_",_=0,p=b.length;_<p;_++)d+=h[b[_]]&&h[b[_]].toString();return d}}return Object(y.a)(w,m)}},function(N,o,x){"use strict";var g=x(0),A=x(2),y=Object.prototype.hasOwnProperty;function M(w,m){if(!m||!Object(g.a)(w))return{};for(var b={},v=Object(A.a)(m)?m:function(p){return p[m]},h,d=0;d<w.length;d++){var _=w[d];h=v(_),y.call(b,h)?b[h].push(_):b[h]=[_]}return b}o.a=M},function(N,o,x){"use strict";o.a=function(g,A){return g.hasOwnProperty(A)}},function(N,o,x){"use strict";var g={}.toString,A=function(M){return g.call(M).replace(/^\[object /,"").replace(/]$/,"")};o.a=A},function(N,o,x){"use strict";var g=Object.prototype,A=function(M){var w=M&&M.constructor,m=typeof w=="function"&&w.prototype||g;return M===m};o.a=A},function(N,o,x){"use strict";var g=x(2);o.a=function(A,y){if(!Object(g.a)(A))throw new TypeError("Expected a function");var M=function w(){for(var m=[],b=0;b<arguments.length;b++)m[b]=arguments[b];var v=y?y.apply(this,m):m[0],h=w.cache;if(h.has(v))return h.get(v);var d=A.apply(this,m);return h.set(v,d),d};return M.cache=new Map,M}},function(N,o,x){"use strict";var g=x(14),A=x(1),y=x(4),M=function w(m,b){if(m===b)return!0;if(!m||!b||Object(y.a)(m)||Object(y.a)(b))return!1;if(Object(A.a)(m)||Object(A.a)(b)){if(m.length!==b.length)return!1;for(var v=!0,h=0;h<m.length&&(v=w(m[h],b[h]),!!v);h++);return v}if(Object(g.a)(m)||Object(g.a)(b)){var d=Object.keys(m),_=Object.keys(b);if(d.length!==_.length)return!1;for(var v=!0,h=0;h<d.length&&(v=w(m[d[h]],b[d[h]]),!!v);h++);return v}return!1};o.a=M},function(N,o,x){"use strict";var g=x(116),A=x(15),y=x(32),M=x(4),w;o.a=Object(y.a)(function(m,b){b===void 0&&(b={});var v=b.fontSize,h=b.fontFamily,d=b.fontWeight,_=b.fontStyle,p=b.fontVariant;return w||(w=document.createElement("canvas").getContext("2d")),w.font=[_,p,d,v+"px",h].join(" "),w.measureText(Object(M.a)(m)?m:"").width},function(m,b){return b===void 0&&(b={}),Object(g.a)([m],Object(A.a)(b)).join("")})},function(N,o,x){var g=x(18);N.exports=function(A,y){for(var M=g(A.data,y,!0),w=g(A.data,y,!0),m=A.children.length,b=Math.round(m/2),v=y.getSide||function(p,S){return S<b?"right":"left"},h=0;h<m;h++){var d=A.children[h],_=v(d,h);_==="right"?w.children.push(d):M.children.push(d)}return M.eachNode(function(p){p.isRoot()||(p.side="left")}),w.eachNode(function(p){p.isRoot()||(p.side="right")}),{left:M,right:w}}},function(N,o,x){var g={compactBox:x(37),dendrogram:x(120),indented:x(122),mindmap:x(124)};N.exports=g},function(N,o,x){function g(d,_){d.prototype=Object.create(_.prototype),d.prototype.constructor=d,A(d,_)}function A(d,_){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,k){return S.__proto__=k,S},A(d,_)}var y=x(11),M=x(119),w=x(17),m=x(6),b=function(d){g(_,d);function _(){return d.apply(this,arguments)||this}var p=_.prototype;return p.execute=function(){var k=this;return w(k.rootNode,k.options,M)},_}(y),v={};function h(d,_){return _=m.assign({},v,_),new b(d,_).execute()}N.exports=h},function(N,o,x){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var g=x(13);x.d(o,"contains",function(){return g.a}),x.d(o,"includes",function(){return g.a});var A=x(39);x.d(o,"difference",function(){return A.a});var y=x(40);x.d(o,"find",function(){return y.a});var M=x(41);x.d(o,"findIndex",function(){return M.a});var w=x(42);x.d(o,"firstValue",function(){return w.a});var m=x(43);x.d(o,"flatten",function(){return m.a});var b=x(44);x.d(o,"flattenDeep",function(){return b.a});var v=x(45);x.d(o,"getRange",function(){return v.a});var h=x(46);x.d(o,"pull",function(){return h.a});var d=x(24);x.d(o,"pullAt",function(){return d.a});var _=x(25);x.d(o,"reduce",function(){return _.a});var p=x(47);x.d(o,"remove",function(){return p.a});var S=x(48);x.d(o,"sortBy",function(){return S.a});var k=x(49);x.d(o,"union",function(){return k.a});var O=x(26);x.d(o,"uniq",function(){return O.a});var F=x(50);x.d(o,"valuesOfKey",function(){return F.a});var D=x(51);x.d(o,"head",function(){return D.a});var Z=x(52);x.d(o,"last",function(){return Z.a});var W=x(53);x.d(o,"startsWith",function(){return W.a});var U=x(54);x.d(o,"endsWith",function(){return U.a});var L=x(19);x.d(o,"filter",function(){return L.a});var V=x(55);x.d(o,"every",function(){return V.a});var $=x(56);x.d(o,"some",function(){return $.a});var G=x(57);x.d(o,"group",function(){return G.a});var z=x(28);x.d(o,"groupBy",function(){return z.a});var K=x(27);x.d(o,"groupToMap",function(){return K.a});var re=x(58);x.d(o,"getWrapBehavior",function(){return re.a});var ne=x(59);x.d(o,"wrapBehavior",function(){return ne.a});var Q=x(60);x.d(o,"number2color",function(){return Q.a});var ue=x(61);x.d(o,"parseRadius",function(){return ue.a});var he=x(62);x.d(o,"clamp",function(){return he.a});var Ee=x(63);x.d(o,"fixedBase",function(){return Ee.a});var ce=x(64);x.d(o,"isDecimal",function(){return ce.a});var ve=x(65);x.d(o,"isEven",function(){return ve.a});var fe=x(66);x.d(o,"isInteger",function(){return fe.a});var we=x(67);x.d(o,"isNegative",function(){return we.a});var me=x(68);x.d(o,"isNumberEqual",function(){return me.a});var Pe=x(69);x.d(o,"isOdd",function(){return Pe.a});var pe=x(70);x.d(o,"isPositive",function(){return pe.a});var Ie=x(22);x.d(o,"max",function(){return Ie.a});var Je=x(71);x.d(o,"maxBy",function(){return Je.a});var ke=x(23);x.d(o,"min",function(){return ke.a});var De=x(72);x.d(o,"minBy",function(){return De.a});var Fe=x(73);x.d(o,"mod",function(){return Fe.a});var Qe=x(74);x.d(o,"toDegree",function(){return Qe.a});var qe=x(75);x.d(o,"toInteger",function(){return qe.a});var et=x(76);x.d(o,"toRadian",function(){return et.a});var dt=x(77);x.d(o,"forIn",function(){return dt.a});var Ke=x(29);x.d(o,"has",function(){return Ke.a});var Ge=x(78);x.d(o,"hasKey",function(){return Ge.a});var wt=x(79);x.d(o,"hasValue",function(){return wt.a});var Vt=x(21);x.d(o,"keys",function(){return Vt.a});var gt=x(20);x.d(o,"isMatch",function(){return gt.a});var it=x(15);x.d(o,"values",function(){return it.a});var Le=x(80);x.d(o,"lowerCase",function(){return Le.a});var ct=x(81);x.d(o,"lowerFirst",function(){return ct.a});var at=x(82);x.d(o,"substitute",function(){return at.a});var jt=x(83);x.d(o,"upperCase",function(){return jt.a});var St=x(84);x.d(o,"upperFirst",function(){return St.a});var fn=x(30);x.d(o,"getType",function(){return fn.a});var Xt=x(85);x.d(o,"isArguments",function(){return Xt.a});var Yt=x(0);x.d(o,"isArray",function(){return Yt.a});var Rt=x(1);x.d(o,"isArrayLike",function(){return Rt.a});var Lt=x(86);x.d(o,"isBoolean",function(){return Lt.a});var ze=x(87);x.d(o,"isDate",function(){return ze.a});var rt=x(88);x.d(o,"isError",function(){return rt.a});var tt=x(2);x.d(o,"isFunction",function(){return tt.a});var de=x(89);x.d(o,"isFinite",function(){return de.a});var ot=x(7);x.d(o,"isNil",function(){return ot.a});var Et=x(90);x.d(o,"isNull",function(){return Et.a});var Ht=x(5);x.d(o,"isNumber",function(){return Ht.a});var Jt=x(12);x.d(o,"isObject",function(){return Jt.a});var Qt=x(14);x.d(o,"isObjectLike",function(){return Qt.a});var an=x(10);x.d(o,"isPlainObject",function(){return an.a});var Un=x(31);x.d(o,"isPrototype",function(){return Un.a});var qt=x(91);x.d(o,"isRegExp",function(){return qt.a});var rn=x(4);x.d(o,"isString",function(){return rn.a});var cn=x(3);x.d(o,"isType",function(){return cn.a});var er=x(92);x.d(o,"isUndefined",function(){return er.a});var rr=x(93);x.d(o,"isElement",function(){return rr.a});var nt=x(94);x.d(o,"requestAnimationFrame",function(){return nt.a});var lr=x(95);x.d(o,"clearAnimationFrame",function(){return lr.a});var Hn=x(96);x.d(o,"augment",function(){return Hn.a});var ut=x(97);x.d(o,"clone",function(){return ut.a});var bt=x(98);x.d(o,"debounce",function(){return bt.a});var We=x(32);x.d(o,"memoize",function(){return We.a});var be=x(99);x.d(o,"deepMix",function(){return be.a});var Ae=x(8);x.d(o,"each",function(){return Ae.a});var Ue=x(100);x.d(o,"extend",function(){return Ue.a});var $e=x(101);x.d(o,"indexOf",function(){return $e.a});var kt=x(102);x.d(o,"isEmpty",function(){return kt.a});var lt=x(33);x.d(o,"isEqual",function(){return lt.a});var vt=x(103);x.d(o,"isEqualWith",function(){return vt.a});var Ct=x(104);x.d(o,"map",function(){return Ct.a});var Bt=x(105);x.d(o,"mapValues",function(){return Bt.a});var mt=x(16);x.d(o,"mix",function(){return mt.a}),x.d(o,"assign",function(){return mt.a});var Zt=x(106);x.d(o,"get",function(){return Zt.a});var zt=x(107);x.d(o,"set",function(){return zt.a});var ln=x(108);x.d(o,"pick",function(){return ln.a});var An=x(109);x.d(o,"omit",function(){return An.a});var En=x(110);x.d(o,"throttle",function(){return En.a});var Gn=x(111);x.d(o,"toArray",function(){return Gn.a});var Bn=x(9);x.d(o,"toString",function(){return Bn.a});var pr=x(112);x.d(o,"uniqueId",function(){return pr.a});var _r=x(113);x.d(o,"noop",function(){return _r.a});var na=x(114);x.d(o,"identity",function(){return na.a});var $n=x(115);x.d(o,"size",function(){return $n.a});var qr=x(34);x.d(o,"measureTextWidth",function(){return qr.a});var Jr=x(117);x.d(o,"getEllipsisText",function(){return Jr.a});var Aa=x(118);x.d(o,"Cache",function(){return Aa.a})},function(N,o,x){"use strict";var g=x(19),A=x(13),y=function(w,m){return m===void 0&&(m=[]),Object(g.a)(w,function(b){return!Object(A.a)(m,b)})};o.a=y},function(N,o,x){"use strict";var g=x(2),A=x(20),y=x(0),M=x(10);function w(m,b){if(!Object(y.a)(m))return null;var v;if(Object(g.a)(b)&&(v=b),Object(M.a)(b)&&(v=function(_){return Object(A.a)(_,b)}),v){for(var h=0;h<m.length;h+=1)if(v(m[h]))return m[h]}return null}o.a=w},function(N,o,x){"use strict";function g(A,y,M){M===void 0&&(M=0);for(var w=M;w<A.length;w++)if(y(A[w],w))return w;return-1}o.a=g},function(N,o,x){"use strict";var g=x(7),A=x(0),y=function(w,m){for(var b=null,v=0;v<w.length;v++){var h=w[v],d=h[m];if(!Object(g.a)(d)){Object(A.a)(d)?b=d[0]:b=d;break}}return b};o.a=y},function(N,o,x){"use strict";var g=x(0),A=function(M){if(!Object(g.a)(M))return[];for(var w=[],m=0;m<M.length;m++)w=w.concat(M[m]);return w};o.a=A},function(N,o,x){"use strict";var g=x(0),A=function y(M,w){if(w===void 0&&(w=[]),!Object(g.a)(M))w.push(M);else for(var m=0;m<M.length;m+=1)y(M[m],w);return w};o.a=A},function(N,o,x){"use strict";var g=x(0),A=x(22),y=x(23),M=function(m){var b=m.filter(function(p){return!isNaN(p)});if(!b.length)return{min:0,max:0};if(Object(g.a)(m[0])){for(var v=[],h=0;h<m.length;h++)v=v.concat(m[h]);b=v}var d=Object(A.a)(b),_=Object(y.a)(b);return{min:_,max:d}};o.a=M},function(N,o,x){"use strict";var g=Array.prototype,A=g.splice,y=g.indexOf,M=function(m){for(var b=[],v=1;v<arguments.length;v++)b[v-1]=arguments[v];for(var h=0;h<b.length;h++)for(var d=b[h],_=-1;(_=y.call(m,d))>-1;)A.call(m,_,1);return m};o.a=M},function(N,o,x){"use strict";var g=x(1),A=x(24),y=function(w,m){var b=[];if(!Object(g.a)(w))return b;for(var v=-1,h=[],d=w.length;++v<d;){var _=w[v];m(_,v,w)&&(b.push(_),h.push(v))}return Object(A.a)(w,h),b};o.a=y},function(N,o,x){"use strict";var g=x(0),A=x(4),y=x(2);function M(w,m){var b;if(Object(y.a)(m))b=function(d,_){return m(d)-m(_)};else{var v=[];Object(A.a)(m)?v.push(m):Object(g.a)(m)&&(v=m),b=function(d,_){for(var p=0;p<v.length;p+=1){var S=v[p];if(d[S]>_[S])return 1;if(d[S]<_[S])return-1}return 0}}return w.sort(b),w}o.a=M},function(N,o,x){"use strict";var g=x(26),A=function(){for(var M=[],w=0;w<arguments.length;w++)M[w]=arguments[w];return Object(g.a)([].concat.apply([],M))};o.a=A},function(N,o,x){"use strict";var g=x(0),A=x(7);o.a=function(y,M){for(var w=[],m={},b=0;b<y.length;b++){var v=y[b],h=v[M];if(!Object(A.a)(h)){Object(g.a)(h)||(h=[h]);for(var d=0;d<h.length;d++){var _=h[d];m[_]||(w.push(_),m[_]=!0)}}}return w}},function(N,o,x){"use strict";o.a=A;var g=x(1);function A(y){if(Object(g.a)(y))return y[0]}},function(N,o,x){"use strict";o.a=A;var g=x(1);function A(y){if(Object(g.a)(y)){var M=y;return M[M.length-1]}}},function(N,o,x){"use strict";var g=x(0),A=x(4);function y(M,w){return Object(g.a)(M)||Object(A.a)(M)?M[0]===w:!1}o.a=y},function(N,o,x){"use strict";var g=x(0),A=x(4);function y(M,w){return Object(g.a)(M)||Object(A.a)(M)?M[M.length-1]===w:!1}o.a=y},function(N,o,x){"use strict";var g=function(y,M){for(var w=0;w<y.length;w++)if(!M(y[w],w))return!1;return!0};o.a=g},function(N,o,x){"use strict";var g=function(y,M){for(var w=0;w<y.length;w++)if(M(y[w],w))return!0;return!1};o.a=g},function(N,o,x){"use strict";var g=x(27);o.a=function(A,y){if(!y)return[A];var M=Object(g.a)(A,y),w=[];for(var m in M)w.push(M[m]);return w}},function(N,o,x){"use strict";function g(A,y){return A["_wrap_"+y]}o.a=g},function(N,o,x){"use strict";function g(A,y){if(A["_wrap_"+y])return A["_wrap_"+y];var M=function(m){A[y](m)};return A["_wrap_"+y]=M,M}o.a=g},function(N,o,x){"use strict";var g={};function A(y){var M=g[y];if(!M){for(var w=y.toString(16),m=w.length;m<6;m++)w="0"+w;M="#"+w,g[y]=M}return M}o.a=A},function(N,o,x){"use strict";var g=x(0);function A(y){var M=0,w=0,m=0,b=0;return Object(g.a)(y)?y.length===1?M=w=m=b=y[0]:y.length===2?(M=m=y[0],w=b=y[1]):y.length===3?(M=y[0],w=b=y[1],m=y[2]):(M=y[0],w=y[1],m=y[2],b=y[3]):M=w=m=b=y,{r1:M,r2:w,r3:m,r4:b}}o.a=A},function(N,o,x){"use strict";var g=function(y,M,w){return y<M?M:y>w?w:y};o.a=g},function(N,o,x){"use strict";var g=function(y,M){var w=M.toString(),m=w.indexOf(".");if(m===-1)return Math.round(y);var b=w.substr(m+1).length;return b>20&&(b=20),parseFloat(y.toFixed(b))};o.a=g},function(N,o,x){"use strict";var g=x(5),A=function(M){return Object(g.a)(M)&&M%1!=0};o.a=A},function(N,o,x){"use strict";var g=x(5),A=function(M){return Object(g.a)(M)&&M%2==0};o.a=A},function(N,o,x){"use strict";var g=x(5),A=Number.isInteger?Number.isInteger:function(y){return Object(g.a)(y)&&y%1==0};o.a=A},function(N,o,x){"use strict";var g=x(5),A=function(M){return Object(g.a)(M)&&M<0};o.a=A},function(N,o,x){"use strict";o.a=A;var g=1e-5;function A(y,M,w){return w===void 0&&(w=g),Math.abs(y-M)<w}},function(N,o,x){"use strict";var g=x(5),A=function(M){return Object(g.a)(M)&&M%2!=0};o.a=A},function(N,o,x){"use strict";var g=x(5),A=function(M){return Object(g.a)(M)&&M>0};o.a=A},function(N,o,x){"use strict";var g=x(0),A=x(2);o.a=function(y,M){if(!!Object(g.a)(y)){for(var w,m=-Infinity,b=0;b<y.length;b++){var v=y[b],h=Object(A.a)(M)?M(v):v[M];h>m&&(w=v,m=h)}return w}}},function(N,o,x){"use strict";var g=x(0),A=x(2);o.a=function(y,M){if(!!Object(g.a)(y)){for(var w,m=Infinity,b=0;b<y.length;b++){var v=y[b],h=Object(A.a)(M)?M(v):v[M];h<m&&(w=v,m=h)}return w}}},function(N,o,x){"use strict";var g=function(y,M){return(y%M+M)%M};o.a=g},function(N,o,x){"use strict";var g=180/Math.PI,A=function(M){return g*M};o.a=A},function(N,o,x){"use strict";o.a=parseInt},function(N,o,x){"use strict";var g=Math.PI/180,A=function(M){return g*M};o.a=A},function(N,o,x){"use strict";var g=x(8);o.a=g.a},function(N,o,x){"use strict";var g=x(29);o.a=g.a},function(N,o,x){"use strict";var g=x(13),A=x(15);o.a=function(y,M){return Object(g.a)(Object(A.a)(y),M)}},function(N,o,x){"use strict";var g=x(9),A=function(M){return Object(g.a)(M).toLowerCase()};o.a=A},function(N,o,x){"use strict";var g=x(9),A=function(M){var w=Object(g.a)(M);return w.charAt(0).toLowerCase()+w.substring(1)};o.a=A},function(N,o,x){"use strict";function g(A,y){return!A||!y?A:A.replace(/\\?\{([^{}]+)\}/g,function(M,w){return M.charAt(0)==="\\"?M.slice(1):y[w]===void 0?"":y[w]})}o.a=g},function(N,o,x){"use strict";var g=x(9),A=function(M){return Object(g.a)(M).toUpperCase()};o.a=A},function(N,o,x){"use strict";var g=x(9),A=function(M){var w=Object(g.a)(M);return w.charAt(0).toUpperCase()+w.substring(1)};o.a=A},function(N,o,x){"use strict";var g=x(3),A=function(M){return Object(g.a)(M,"Arguments")};o.a=A},function(N,o,x){"use strict";var g=x(3),A=function(M){return Object(g.a)(M,"Boolean")};o.a=A},function(N,o,x){"use strict";var g=x(3),A=function(M){return Object(g.a)(M,"Date")};o.a=A},function(N,o,x){"use strict";var g=x(3),A=function(M){return Object(g.a)(M,"Error")};o.a=A},function(N,o,x){"use strict";var g=x(5);o.a=function(A){return Object(g.a)(A)&&isFinite(A)}},function(N,o,x){"use strict";var g=function(y){return y===null};o.a=g},function(N,o,x){"use strict";var g=x(3),A=function(M){return Object(g.a)(M,"RegExp")};o.a=A},function(N,o,x){"use strict";var g=function(y){return y===void 0};o.a=g},function(N,o,x){"use strict";var g=function(y){return y instanceof Element||y instanceof HTMLDocument};o.a=g},function(N,o,x){"use strict";o.a=g;function g(A){var y=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(M){return setTimeout(M,16)};return y(A)}},function(N,o,x){"use strict";o.a=g;function g(A){var y=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;y(A)}},function(N,o,x){"use strict";var g=x(16),A=x(2),y=function(){for(var w=[],m=0;m<arguments.length;m++)w[m]=arguments[m];for(var b=w[0],v=1;v<w.length;v++){var h=w[v];Object(A.a)(h)&&(h=h.prototype),Object(g.a)(b.prototype,h)}};o.a=y},function(N,o,x){"use strict";var g=x(0),A=function y(M){if(typeof M!="object"||M===null)return M;var w;if(Object(g.a)(M)){w=[];for(var m=0,b=M.length;m<b;m++)typeof M[m]=="object"&&M[m]!=null?w[m]=y(M[m]):w[m]=M[m]}else{w={};for(var v in M)typeof M[v]=="object"&&M[v]!=null?w[v]=y(M[v]):w[v]=M[v]}return w};o.a=A},function(N,o,x){"use strict";function g(A,y,M){var w;return function(){var m=this,b=arguments,v=function(){w=null,M||A.apply(m,b)},h=M&&!w;clearTimeout(w),w=setTimeout(v,y),h&&A.apply(m,b)}}o.a=g},function(N,o,x){"use strict";var g=x(0),A=x(10),y=5;function M(m,b,v,h){v=v||0,h=h||y;for(var d in b)if(b.hasOwnProperty(d)){var _=b[d];_!==null&&Object(A.a)(_)?(Object(A.a)(m[d])||(m[d]={}),v<h?M(m[d],_,v+1,h):m[d]=b[d]):Object(g.a)(_)?(m[d]=[],m[d]=m[d].concat(_)):_!==void 0&&(m[d]=_)}}var w=function(b){for(var v=[],h=1;h<arguments.length;h++)v[h-1]=arguments[h];for(var d=0;d<v.length;d+=1)M(b,v[d]);return b};o.a=w},function(N,o,x){"use strict";var g=x(16),A=x(2),y=function(w,m,b,v){Object(A.a)(m)||(b=m,m=w,w=function(){});var h=Object.create?function(_,p){return Object.create(_,{constructor:{value:p}})}:function(_,p){function S(){}S.prototype=_;var k=new S;return k.constructor=p,k},d=h(m.prototype,w);return w.prototype=Object(g.a)(d,w.prototype),w.superclass=h(m.prototype,m),Object(g.a)(d,b),Object(g.a)(w,v),w};o.a=y},function(N,o,x){"use strict";var g=x(1),A=function(M,w){if(!Object(g.a)(M))return-1;var m=Array.prototype.indexOf;if(m)return m.call(M,w);for(var b=-1,v=0;v<M.length;v++)if(M[v]===w){b=v;break}return b};o.a=A},function(N,o,x){"use strict";var g=x(7),A=x(1),y=x(30),M=x(31),w=Object.prototype.hasOwnProperty;function m(b){if(Object(g.a)(b))return!0;if(Object(A.a)(b))return!b.length;var v=Object(y.a)(b);if(v==="Map"||v==="Set")return!b.size;if(Object(M.a)(b))return!Object.keys(b).length;for(var h in b)if(w.call(b,h))return!1;return!0}o.a=m},function(N,o,x){"use strict";var g=x(2),A=x(33);o.a=function(y,M,w){return Object(g.a)(w)?!!w(y,M):Object(A.a)(y,M)}},function(N,o,x){"use strict";var g=x(1),A=function(M,w){if(!Object(g.a)(M))return M;for(var m=[],b=0;b<M.length;b++){var v=M[b];m.push(w(v,b))}return m};o.a=A},function(N,o,x){"use strict";var g=x(7),A=x(12),y=function(w){return w};o.a=function(M,w){w===void 0&&(w=y);var m={};return Object(A.a)(M)&&!Object(g.a)(M)&&Object.keys(M).forEach(function(b){m[b]=w(M[b],b)}),m}},function(N,o,x){"use strict";var g=x(4);o.a=function(A,y,M){for(var w=0,m=Object(g.a)(y)?y.split("."):y;A&&w<m.length;)A=A[m[w++]];return A===void 0||w<m.length?M:A}},function(N,o,x){"use strict";var g=x(12),A=x(4),y=x(5);o.a=function(M,w,m){var b=M,v=Object(A.a)(w)?w.split("."):w;return v.forEach(function(h,d){d<v.length-1?(Object(g.a)(b[h])||(b[h]=Object(y.a)(v[d+1])?[]:{}),b=b[h]):b[h]=m}),M}},function(N,o,x){"use strict";var g=x(8),A=x(10),y=Object.prototype.hasOwnProperty;o.a=function(M,w){if(M===null||!Object(A.a)(M))return{};var m={};return Object(g.a)(w,function(b){y.call(M,b)&&(m[b]=M[b])}),m}},function(N,o,x){"use strict";var g=x(25);o.a=function(A,y){return Object(g.a)(A,function(M,w,m){return y.includes(m)||(M[m]=w),M},{})}},function(N,o,x){"use strict";o.a=function(g,A,y){var M,w,m,b,v=0;y||(y={});var h=function(){v=y.leading===!1?0:Date.now(),M=null,b=g.apply(w,m),M||(w=m=null)},d=function(){var p=Date.now();!v&&y.leading===!1&&(v=p);var S=A-(p-v);return w=this,m=arguments,S<=0||S>A?(M&&(clearTimeout(M),M=null),v=p,b=g.apply(w,m),M||(w=m=null)):!M&&y.trailing!==!1&&(M=setTimeout(h,S)),b};return d.cancel=function(){clearTimeout(M),v=0,M=w=m=null},d}},function(N,o,x){"use strict";var g=x(1);o.a=function(A){return Object(g.a)(A)?Array.prototype.slice.call(A):[]}},function(N,o,x){"use strict";var g={};o.a=function(A){return A=A||"g",g[A]?g[A]+=1:g[A]=1,A+g[A]}},function(N,o,x){"use strict";o.a=function(){}},function(N,o,x){"use strict";o.a=function(g){return g}},function(N,o,x){"use strict";o.a=y;var g=x(7),A=x(1);function y(M){return Object(g.a)(M)?0:Object(A.a)(M)?M.length:Object.keys(M).length}},function(N,o,x){"use strict";o.a=W;var g=function(ce,ve){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,we){fe.__proto__=we}||function(fe,we){for(var me in we)Object.prototype.hasOwnProperty.call(we,me)&&(fe[me]=we[me])},g(ce,ve)};function A(Ee,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Class extends value "+String(ce)+" is not a constructor or null");g(Ee,ce);function ve(){this.constructor=Ee}Ee.prototype=ce===null?Object.create(ce):(ve.prototype=ce.prototype,new ve)}var y=function(){return y=Object.assign||function(ve){for(var fe,we=1,me=arguments.length;we<me;we++){fe=arguments[we];for(var Pe in fe)Object.prototype.hasOwnProperty.call(fe,Pe)&&(ve[Pe]=fe[Pe])}return ve},y.apply(this,arguments)};function M(Ee,ce){var ve={};for(var fe in Ee)Object.prototype.hasOwnProperty.call(Ee,fe)&&ce.indexOf(fe)<0&&(ve[fe]=Ee[fe]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,fe=Object.getOwnPropertySymbols(Ee);we<fe.length;we++)ce.indexOf(fe[we])<0&&Object.prototype.propertyIsEnumerable.call(Ee,fe[we])&&(ve[fe[we]]=Ee[fe[we]]);return ve}function w(Ee,ce,ve,fe){var we=arguments.length,me=we<3?ce:fe===null?fe=Object.getOwnPropertyDescriptor(ce,ve):fe,Pe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(Ee,ce,ve,fe);else for(var pe=Ee.length-1;pe>=0;pe--)(Pe=Ee[pe])&&(me=(we<3?Pe(me):we>3?Pe(ce,ve,me):Pe(ce,ve))||me);return we>3&&me&&Object.defineProperty(ce,ve,me),me}function m(Ee,ce){return function(ve,fe){ce(ve,fe,Ee)}}function b(Ee,ce,ve,fe,we,me){function Pe(Ke){if(Ke!==void 0&&typeof Ke!="function")throw new TypeError("Function expected");return Ke}for(var pe=fe.kind,Ie=pe==="getter"?"get":pe==="setter"?"set":"value",Je=!ce&&Ee?fe.static?Ee:Ee.prototype:null,ke=ce||(Je?Object.getOwnPropertyDescriptor(Je,fe.name):{}),De,Fe=!1,Qe=ve.length-1;Qe>=0;Qe--){var qe={};for(var et in fe)qe[et]=et==="access"?{}:fe[et];for(var et in fe.access)qe.access[et]=fe.access[et];qe.addInitializer=function(Ke){if(Fe)throw new TypeError("Cannot add initializers after decoration has completed");me.push(Pe(Ke||null))};var dt=(0,ve[Qe])(pe==="accessor"?{get:ke.get,set:ke.set}:ke[Ie],qe);if(pe==="accessor"){if(dt===void 0)continue;if(dt===null||typeof dt!="object")throw new TypeError("Object expected");(De=Pe(dt.get))&&(ke.get=De),(De=Pe(dt.set))&&(ke.set=De),(De=Pe(dt.init))&&we.push(De)}else(De=Pe(dt))&&(pe==="field"?we.push(De):ke[Ie]=De)}Je&&Object.defineProperty(Je,fe.name,ke),Fe=!0}function v(Ee,ce,ve){for(var fe=arguments.length>2,we=0;we<ce.length;we++)ve=fe?ce[we].call(Ee,ve):ce[we].call(Ee);return fe?ve:void 0}function h(Ee){return typeof Ee=="symbol"?Ee:"".concat(Ee)}function d(Ee,ce,ve){return typeof ce=="symbol"&&(ce=ce.description?"[".concat(ce.description,"]"):""),Object.defineProperty(Ee,"name",{configurable:!0,value:ve?"".concat(ve," ",ce):ce})}function _(Ee,ce){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Ee,ce)}function p(Ee,ce,ve,fe){function we(me){return me instanceof ve?me:new ve(function(Pe){Pe(me)})}return new(ve||(ve=Promise))(function(me,Pe){function pe(ke){try{Je(fe.next(ke))}catch(De){Pe(De)}}function Ie(ke){try{Je(fe.throw(ke))}catch(De){Pe(De)}}function Je(ke){ke.done?me(ke.value):we(ke.value).then(pe,Ie)}Je((fe=fe.apply(Ee,ce||[])).next())})}function S(Ee,ce){var ve={label:0,sent:function(){if(me[0]&1)throw me[1];return me[1]},trys:[],ops:[]},fe,we,me,Pe;return Pe={next:pe(0),throw:pe(1),return:pe(2)},typeof Symbol=="function"&&(Pe[Symbol.iterator]=function(){return this}),Pe;function pe(Je){return function(ke){return Ie([Je,ke])}}function Ie(Je){if(fe)throw new TypeError("Generator is already executing.");for(;Pe&&(Pe=0,Je[0]&&(ve=0)),ve;)try{if(fe=1,we&&(me=Je[0]&2?we.return:Je[0]?we.throw||((me=we.return)&&me.call(we),0):we.next)&&!(me=me.call(we,Je[1])).done)return me;switch(we=0,me&&(Je=[Je[0]&2,me.value]),Je[0]){case 0:case 1:me=Je;break;case 4:return ve.label++,{value:Je[1],done:!1};case 5:ve.label++,we=Je[1],Je=[0];continue;case 7:Je=ve.ops.pop(),ve.trys.pop();continue;default:if(me=ve.trys,!(me=me.length>0&&me[me.length-1])&&(Je[0]===6||Je[0]===2)){ve=0;continue}if(Je[0]===3&&(!me||Je[1]>me[0]&&Je[1]<me[3])){ve.label=Je[1];break}if(Je[0]===6&&ve.label<me[1]){ve.label=me[1],me=Je;break}if(me&&ve.label<me[2]){ve.label=me[2],ve.ops.push(Je);break}me[2]&&ve.ops.pop(),ve.trys.pop();continue}Je=ce.call(Ee,ve)}catch(ke){Je=[6,ke],we=0}finally{fe=me=0}if(Je[0]&5)throw Je[1];return{value:Je[0]?Je[1]:void 0,done:!0}}}var k=Object.create?function(Ee,ce,ve,fe){fe===void 0&&(fe=ve);var we=Object.getOwnPropertyDescriptor(ce,ve);(!we||("get"in we?!ce.__esModule:we.writable||we.configurable))&&(we={enumerable:!0,get:function(){return ce[ve]}}),Object.defineProperty(Ee,fe,we)}:function(Ee,ce,ve,fe){fe===void 0&&(fe=ve),Ee[fe]=ce[ve]};function O(Ee,ce){for(var ve in Ee)ve!=="default"&&!Object.prototype.hasOwnProperty.call(ce,ve)&&k(ce,Ee,ve)}function F(Ee){var ce=typeof Symbol=="function"&&Symbol.iterator,ve=ce&&Ee[ce],fe=0;if(ve)return ve.call(Ee);if(Ee&&typeof Ee.length=="number")return{next:function(){return Ee&&fe>=Ee.length&&(Ee=void 0),{value:Ee&&Ee[fe++],done:!Ee}}};throw new TypeError(ce?"Object is not iterable.":"Symbol.iterator is not defined.")}function D(Ee,ce){var ve=typeof Symbol=="function"&&Ee[Symbol.iterator];if(!ve)return Ee;var fe=ve.call(Ee),we,me=[],Pe;try{for(;(ce===void 0||ce-- >0)&&!(we=fe.next()).done;)me.push(we.value)}catch(pe){Pe={error:pe}}finally{try{we&&!we.done&&(ve=fe.return)&&ve.call(fe)}finally{if(Pe)throw Pe.error}}return me}function Z(){for(var Ee=[],ce=0;ce<arguments.length;ce++)Ee=Ee.concat(D(arguments[ce]));return Ee}function W(){for(var Ee=0,ce=0,ve=arguments.length;ce<ve;ce++)Ee+=arguments[ce].length;for(var fe=Array(Ee),we=0,ce=0;ce<ve;ce++)for(var me=arguments[ce],Pe=0,pe=me.length;Pe<pe;Pe++,we++)fe[we]=me[Pe];return fe}function U(Ee,ce,ve){if(ve||arguments.length===2)for(var fe=0,we=ce.length,me;fe<we;fe++)(me||!(fe in ce))&&(me||(me=Array.prototype.slice.call(ce,0,fe)),me[fe]=ce[fe]);return Ee.concat(me||Array.prototype.slice.call(ce))}function L(Ee){return this instanceof L?(this.v=Ee,this):new L(Ee)}function V(Ee,ce,ve){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe=ve.apply(Ee,ce||[]),we,me=[];return we={},Pe("next"),Pe("throw"),Pe("return"),we[Symbol.asyncIterator]=function(){return this},we;function Pe(Fe){fe[Fe]&&(we[Fe]=function(Qe){return new Promise(function(qe,et){me.push([Fe,Qe,qe,et])>1||pe(Fe,Qe)})})}function pe(Fe,Qe){try{Ie(fe[Fe](Qe))}catch(qe){De(me[0][3],qe)}}function Ie(Fe){Fe.value instanceof L?Promise.resolve(Fe.value.v).then(Je,ke):De(me[0][2],Fe)}function Je(Fe){pe("next",Fe)}function ke(Fe){pe("throw",Fe)}function De(Fe,Qe){Fe(Qe),me.shift(),me.length&&pe(me[0][0],me[0][1])}}function $(Ee){var ce,ve;return ce={},fe("next"),fe("throw",function(we){throw we}),fe("return"),ce[Symbol.iterator]=function(){return this},ce;function fe(we,me){ce[we]=Ee[we]?function(Pe){return(ve=!ve)?{value:L(Ee[we](Pe)),done:!1}:me?me(Pe):Pe}:me}}function G(Ee){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ce=Ee[Symbol.asyncIterator],ve;return ce?ce.call(Ee):(Ee=typeof F=="function"?F(Ee):Ee[Symbol.iterator](),ve={},fe("next"),fe("throw"),fe("return"),ve[Symbol.asyncIterator]=function(){return this},ve);function fe(me){ve[me]=Ee[me]&&function(Pe){return new Promise(function(pe,Ie){Pe=Ee[me](Pe),we(pe,Ie,Pe.done,Pe.value)})}}function we(me,Pe,pe,Ie){Promise.resolve(Ie).then(function(Je){me({value:Je,done:pe})},Pe)}}function z(Ee,ce){return Object.defineProperty?Object.defineProperty(Ee,"raw",{value:ce}):Ee.raw=ce,Ee}var K=Object.create?function(Ee,ce){Object.defineProperty(Ee,"default",{enumerable:!0,value:ce})}:function(Ee,ce){Ee.default=ce};function re(Ee){if(Ee&&Ee.__esModule)return Ee;var ce={};if(Ee!=null)for(var ve in Ee)ve!=="default"&&Object.prototype.hasOwnProperty.call(Ee,ve)&&k(ce,Ee,ve);return K(ce,Ee),ce}function ne(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}function Q(Ee,ce,ve,fe){if(ve==="a"&&!fe)throw new TypeError("Private accessor was defined without a getter");if(typeof ce=="function"?Ee!==ce||!fe:!ce.has(Ee))throw new TypeError("Cannot read private member from an object whose class did not declare it");return ve==="m"?fe:ve==="a"?fe.call(Ee):fe?fe.value:ce.get(Ee)}function ue(Ee,ce,ve,fe,we){if(fe==="m")throw new TypeError("Private method is not writable");if(fe==="a"&&!we)throw new TypeError("Private accessor was defined without a setter");if(typeof ce=="function"?Ee!==ce||!we:!ce.has(Ee))throw new TypeError("Cannot write private member to an object whose class did not declare it");return fe==="a"?we.call(Ee,ve):we?we.value=ve:ce.set(Ee,ve),ve}function he(Ee,ce){if(ce===null||typeof ce!="object"&&typeof ce!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof Ee=="function"?ce===Ee:Ee.has(ce)}},function(N,o,x){"use strict";var g=x(4),A=x(9),y=x(34);o.a=function(M,w,m,b){b===void 0&&(b="...");var v=16,h=Object(y.a)(b,m),d=Object(g.a)(M)?M:Object(A.a)(M),_=w,p=[],S,k;if(Object(y.a)(M,m)<=w)return M;for(;S=d.substr(0,v),k=Object(y.a)(S,m),!(k+h>_&&k>_);)if(p.push(S),_-=k,d=d.substr(v),!d)return p.join("");for(;S=d.substr(0,1),k=Object(y.a)(S,m),!(k+h>_);)if(p.push(S),_-=k,d=d.substr(1),!d)return p.join("");return""+p.join("")+b}},function(N,o,x){"use strict";var g=function(){function A(){this.map={}}return A.prototype.has=function(y){return this.map[y]!==void 0},A.prototype.get=function(y,M){var w=this.map[y];return w===void 0?M:w},A.prototype.set=function(y,M){this.map[y]=M},A.prototype.clear=function(){this.map={}},A.prototype.delete=function(y){delete this.map[y]},A.prototype.size=function(){return Object.keys(this.map).length},A}();o.a=g},function(N,o){function x(m,b,v,h){h===void 0&&(h=[]);var d=this;d.w=m||0,d.h=b||0,d.y=v||0,d.x=0,d.c=h||[],d.cs=h.length,d.prelim=0,d.mod=0,d.shift=0,d.change=0,d.tl=null,d.tr=null,d.el=null,d.er=null,d.msel=0,d.mser=0}x.fromNode=function(m,b){if(!m)return null;var v=[];return m.children.forEach(function(h){v.push(x.fromNode(h,b))}),b?new x(m.height,m.width,m.x,v):new x(m.width,m.height,m.y,v)};function g(m,b,v){v?m.y+=b:m.x+=b,m.children.forEach(function(h){g(h,b,v)})}function A(m,b){var v=b?m.y:m.x;return m.children.forEach(function(h){v=Math.min(A(h,b),v)}),v}function y(m,b){var v=A(m,b);g(m,-v,b)}function M(m,b,v){v?b.y=m.x:b.x=m.x,m.c.forEach(function(h,d){M(h,b.children[d],v)})}function w(m,b,v){v===void 0&&(v=0),b?(m.x=v,v+=m.width):(m.y=v,v+=m.height),m.children.forEach(function(h){w(h,b,v)})}N.exports=function(m,b){b===void 0&&(b={});var v=b.isHorizontal;function h(G){if(G.cs===0){d(G);return}h(G.c[0]);for(var z=V(O(G.c[0].el),0,null),K=1;K<G.cs;++K){h(G.c[K]);var re=O(G.c[K].er);_(G,K,z),z=V(re,K,z)}Z(G),d(G)}function d(G){G.cs===0?(G.el=G,G.er=G,G.msel=G.mser=0):(G.el=G.c[0].el,G.msel=G.c[0].msel,G.er=G.c[G.cs-1].er,G.mser=G.c[G.cs-1].mser)}function _(G,z,K){for(var re=G.c[z-1],ne=re.mod,Q=G.c[z],ue=Q.mod;re!==null&&Q!==null;){O(re)>K.low&&(K=K.nxt);var he=ne+re.prelim+re.w-(ue+Q.prelim);he>0&&(ue+=he,p(G,z,K.index,he));var Ee=O(re),ce=O(Q);Ee<=ce&&(re=k(re),re!==null&&(ne+=re.mod)),Ee>=ce&&(Q=S(Q),Q!==null&&(ue+=Q.mod))}!re&&!!Q?F(G,z,Q,ue):!!re&&!Q&&D(G,z,re,ne)}function p(G,z,K,re){G.c[z].mod+=re,G.c[z].msel+=re,G.c[z].mser+=re,U(G,z,K,re)}function S(G){return G.cs===0?G.tl:G.c[0]}function k(G){return G.cs===0?G.tr:G.c[G.cs-1]}function O(G){return G.y+G.h}function F(G,z,K,re){var ne=G.c[0].el;ne.tl=K;var Q=re-K.mod-G.c[0].msel;ne.mod+=Q,ne.prelim-=Q,G.c[0].el=G.c[z].el,G.c[0].msel=G.c[z].msel}function D(G,z,K,re){var ne=G.c[z].er;ne.tr=K;var Q=re-K.mod-G.c[z].mser;ne.mod+=Q,ne.prelim-=Q,G.c[z].er=G.c[z-1].er,G.c[z].mser=G.c[z-1].mser}function Z(G){G.prelim=(G.c[0].prelim+G.c[0].mod+G.c[G.cs-1].mod+G.c[G.cs-1].prelim+G.c[G.cs-1].w)/2-G.w/2}function W(G,z){z+=G.mod,G.x=G.prelim+z,L(G);for(var K=0;K<G.cs;K++)W(G.c[K],z)}function U(G,z,K,re){if(K!==z-1){var ne=z-K;G.c[K+1].shift+=re/ne,G.c[z].shift-=re/ne,G.c[z].change-=re-re/ne}}function L(G){for(var z=0,K=0,re=0;re<G.cs;re++)z+=G.c[re].shift,K+=z+G.c[re].change,G.c[re].mod+=K}function V(G,z,K){for(;K!==null&&G>=K.low;)K=K.nxt;return{low:G,index:z,nxt:K}}w(m,v);var $=x.fromNode(m,v);return h($),W($,0),M($,m,v),y(m,v),m}},function(N,o,x){function g(d,_){d.prototype=Object.create(_.prototype),d.prototype.constructor=d,A(d,_)}function A(d,_){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,k){return S.__proto__=k,S},A(d,_)}var y=x(11),M=x(121),w=x(17),m=x(6),b=function(d){g(_,d);function _(){return d.apply(this,arguments)||this}var p=_.prototype;return p.execute=function(){var k=this;return k.rootNode.width=0,w(k.rootNode,k.options,M)},_}(y),v={};function h(d,_){return _=m.assign({},v,_),new b(d,_).execute()}N.exports=h},function(N,o,x){var g=x(6);function A(w,m){w===void 0&&(w=0),m===void 0&&(m=[]);var b=this;b.x=b.y=0,b.leftChild=b.rightChild=null,b.height=0,b.children=m}var y={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function M(w,m,b){b?(m.x=w.x,m.y=w.y):(m.x=w.y,m.y=w.x),w.children.forEach(function(v,h){M(v,m.children[h],b)})}N.exports=function(w,m){m===void 0&&(m={}),m=g.assign({},y,m);var b=0;function v(S){if(!S)return null;S.width=0,S.depth&&S.depth>b&&(b=S.depth);var k=S.children,O=k.length,F=new A(S.height,[]);return k.forEach(function(D,Z){var W=v(D);F.children.push(W),Z===0&&(F.leftChild=W),Z===O-1&&(F.rightChild=W)}),F.originNode=S,F.isLeaf=S.isLeaf(),F}function h(S){if(S.isLeaf||S.children.length===0)S.drawingDepth=b;else{var k=S.children.map(function(F){return h(F)}),O=Math.min.apply(null,k);S.drawingDepth=O-1}return S.drawingDepth}var d;function _(S){S.x=S.drawingDepth*m.rankSep,S.isLeaf?(S.y=0,d&&(S.y=d.y+d.height+m.nodeSep,S.originNode.parent!==d.originNode.parent&&(S.y+=m.subTreeSep)),d=S):(S.children.forEach(function(k){_(k)}),S.y=(S.leftChild.y+S.rightChild.y)/2)}var p=v(w);return h(p),_(p),M(p,w,m.isHorizontal),w}},function(N,o,x){function g(p,S){p.prototype=Object.create(S.prototype),p.prototype.constructor=p,A(p,S)}function A(p,S){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,F){return O.__proto__=F,O},A(p,S)}var y=x(11),M=x(123),w=x(35),m=x(6),b=["LR","RL","H"],v=b[0],h=function(p){g(S,p);function S(){return p.apply(this,arguments)||this}var k=S.prototype;return k.execute=function(){var F=this,D=F.options,Z=F.rootNode;D.isHorizontal=!0;var W=D.indent,U=W===void 0?20:W,L=D.dropCap,V=L===void 0?!0:L,$=D.direction,G=$===void 0?v:$,z=D.align;if(G&&b.indexOf(G)===-1)throw new TypeError("Invalid direction: "+G);if(G===b[0])M(Z,U,V,z);else if(G===b[1])M(Z,U,V,z),Z.right2left();else if(G===b[2]){var K=w(Z,D),re=K.left,ne=K.right;M(re,U,V,z),re.right2left(),M(ne,U,V,z);var Q=re.getBoundingBox();ne.translate(Q.width,0),Z.x=ne.x-Z.width/2}return Z},S}(y),d={};function _(p,S){return S=m.assign({},d,S),new h(p,S).execute()}N.exports=_},function(N,o,x){var g=x(6);function A(y,M,w,m,b){var v=typeof w=="function"?w(y):w*y.depth;if(!m)try{if(y.id===y.parent.children[0].id){y.x+=v,y.y=M?M.y:0;return}}catch(_){}if(y.x+=v,M){if(y.y=M.y+g.getHeight(M,y,b),M.parent&&y.parent.id!==M.parent.id){var h=M.parent,d=h.y+g.getHeight(h,y,b);y.y=d>y.y?d:y.y}}else y.y=0}N.exports=function(y,M,w,m){var b=null;y.eachNode(function(v){A(v,b,M,w,m),b=v})}},function(N,o,x){function g(d,_){d.prototype=Object.create(_.prototype),d.prototype.constructor=d,A(d,_)}function A(d,_){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,k){return S.__proto__=k,S},A(d,_)}var y=x(11),M=x(125),w=x(17),m=x(6),b=function(d){g(_,d);function _(){return d.apply(this,arguments)||this}var p=_.prototype;return p.execute=function(){var k=this;return w(k.rootNode,k.options,M)},_}(y),v={};function h(d,_){return _=m.assign({},v,_),new b(d,_).execute()}N.exports=h},function(N,o,x){var g=x(6);function A(w,m){var b=0;return w.children.length?w.children.forEach(function(v){b+=A(v,m)}):b=w.height,w._subTreeSep=m.getSubTreeSep(w.data),w.totalHeight=Math.max(w.height,b)+2*w._subTreeSep,w.totalHeight}function y(w){var m=w.children,b=m.length;if(b){m.forEach(function(S){y(S)});var v=m[0],h=m[b-1],d=h.y-v.y+h.height,_=0;if(m.forEach(function(S){_+=S.totalHeight}),d>w.height)w.y=v.y+d/2-w.height/2;else if(m.length!==1||w.height>_){var p=w.y+(w.height-d)/2-v.y;m.forEach(function(S){S.translate(0,p)})}else w.y=(v.y+v.height/2+h.y+h.height/2)/2-w.height/2}}var M={getSubTreeSep:function(){return 0}};N.exports=function(w,m){m===void 0&&(m={}),m=g.assign({},M,m),w.parent={x:0,width:0,height:0,y:0},w.BFTraverse(function(b){b.x=b.parent.x+b.parent.width}),w.parent=null,A(w,m),w.startY=0,w.y=w.totalHeight/2-w.height/2,w.eachNode(function(b){var v=b.children,h=v.length;if(h){var d=v[0];if(d.startY=b.startY+b._subTreeSep,h===1)d.y=b.y+b.height/2-d.height/2;else{d.y=d.startY+d.totalHeight/2-d.height/2;for(var _=1;_<h;_++){var p=v[_];p.startY=v[_-1].startY+v[_-1].totalHeight,p.y=p.startY+p.totalHeight/2-p.height/2}}}}),y(w)}}])})},33682:function(oe,N,o){"use strict";var x=this&&this.__createBinding||(Object.create?function(y,M,w,m){m===void 0&&(m=w);var b=Object.getOwnPropertyDescriptor(M,w);(!b||("get"in b?!M.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return M[w]}}),Object.defineProperty(y,m,b)}:function(y,M,w,m){m===void 0&&(m=w),y[m]=M[w]}),g=this&&this.__exportStar||function(y,M){for(var w in y)w!=="default"&&!Object.prototype.hasOwnProperty.call(M,w)&&x(M,y,w)};Object.defineProperty(N,"__esModule",{value:!0}),N.getLayoutByName=N.unRegisterLayout=N.registerLayout=void 0;var A=o(41769);Object.defineProperty(N,"registerLayout",{enumerable:!0,get:function(){return A.registerLayout}}),Object.defineProperty(N,"unRegisterLayout",{enumerable:!0,get:function(){return A.unRegisterLayout}}),Object.defineProperty(N,"getLayoutByName",{enumerable:!0,get:function(){return A.getLayoutByName}}),g(o(92946),N)},15383:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.Base=void 0;var o=function(){function x(){this.nodes=[],this.edges=[],this.combos=[],this.comboEdges=[],this.hiddenNodes=[],this.hiddenEdges=[],this.hiddenCombos=[],this.vedges=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){}}return x.prototype.layout=function(g){return this.init(g),this.execute(!0)},x.prototype.init=function(g){this.nodes=g.nodes||[],this.edges=g.edges||[],this.combos=g.combos||[],this.comboEdges=g.comboEdges||[],this.hiddenNodes=g.hiddenNodes||[],this.hiddenEdges=g.hiddenEdges||[],this.hiddenCombos=g.hiddenCombos||[],this.vedges=g.vedges||[]},x.prototype.execute=function(g){},x.prototype.executeWithWorker=function(){},x.prototype.getDefaultCfg=function(){return{}},x.prototype.updateCfg=function(g){g&&Object.assign(this,g)},x.prototype.getType=function(){return"base"},x.prototype.destroy=function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0},x}();N.Base=o},59998:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var b=function(h,d){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,p){_.__proto__=p}||function(_,p){for(var S in p)Object.prototype.hasOwnProperty.call(p,S)&&(_[S]=p[S])},b(h,d)};return function(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");b(v,h);function d(){this.constructor=v}v.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}}();Object.defineProperty(N,"__esModule",{value:!0}),N.CircularLayout=void 0;var g=o(15383),A=o(74788);function y(b,v,h,d){b.forEach(function(_,p){b[p].children=[],b[p].parent=[]}),d?v.forEach(function(_){var p=(0,A.getEdgeTerminal)(_,"source"),S=(0,A.getEdgeTerminal)(_,"target"),k=0;p&&(k=h[p]);var O=0;S&&(O=h[S]);var F=b[k].children,D=b[O].parent;F.push(b[O].id),D.push(b[k].id)}):v.forEach(function(_){var p=(0,A.getEdgeTerminal)(_,"source"),S=(0,A.getEdgeTerminal)(_,"target"),k=0;p&&(k=h[p]);var O=0;S&&(O=h[S]);var F=b[k].children,D=b[O].children;F.push(b[O].id),D.push(b[k].id)})}function M(b,v,h){for(var d=h.length,_=0;_<d;_++){var p=(0,A.getEdgeTerminal)(h[_],"source"),S=(0,A.getEdgeTerminal)(h[_],"target");if(b.id===p&&v.id===S||v.id===p&&b.id===S)return!0}return!1}function w(b,v){var h=b.degree,d=v.degree;return h<d?-1:h>d?1:0}var m=function(b){x(v,b);function v(h){var d=b.call(this)||this;return d.radius=null,d.nodeSize=void 0,d.startRadius=null,d.endRadius=null,d.startAngle=0,d.endAngle=2*Math.PI,d.clockwise=!0,d.divisions=1,d.ordering=null,d.angleRatio=1,d.nodes=[],d.edges=[],d.nodeMap={},d.degrees=[],d.width=300,d.height=300,d.updateCfg(h),d}return v.prototype.getDefaultCfg=function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},v.prototype.execute=function(){var h,d=this,_=d.nodes,p=d.edges,S=_.length;if(S===0){d.onLayoutEnd&&d.onLayoutEnd();return}!d.width&&typeof window!="undefined"&&(d.width=window.innerWidth),!d.height&&typeof window!="undefined"&&(d.height=window.innerHeight),d.center||(d.center=[d.width/2,d.height/2]);var k=d.center;if(S===1){_[0].x=k[0],_[0].y=k[1],d.onLayoutEnd&&d.onLayoutEnd();return}var O=d.radius,F=d.startRadius,D=d.endRadius,Z=d.divisions,W=d.startAngle,U=d.endAngle,L=d.angleRatio,V=d.ordering,$=d.clockwise,G=d.nodeSpacing,z=d.nodeSize,K=(U-W)/S,re={};_.forEach(function(pe,Ie){re[pe.id]=Ie}),d.nodeMap=re;var ne=(0,A.getDegree)(_.length,re,p);if(d.degrees=ne,G){var Q=(0,A.getFuncByUnknownType)(10,G),ue=(0,A.getFuncByUnknownType)(10,z),he=-Infinity;_.forEach(function(pe){var Ie=ue(pe);he<Ie&&(he=Ie)});var Ee=0;_.forEach(function(pe,Ie){Ie===0?Ee+=he||10:Ee+=(Q(pe)||0)+(he||10)}),O=Ee/(2*Math.PI)}else!O&&!F&&!D?O=d.height>d.width?d.width/2:d.height/2:!F&&D?F=D:F&&!D&&(D=F);var ce=K*L,ve=[];V==="topology"?ve=d.topologyOrdering():V==="topology-directed"?ve=d.topologyOrdering(!0):V==="degree"?ve=d.degreeOrdering():ve=_;for(var fe=Math.ceil(S/Z),we=0;we<S;++we){var me=O;!me&&F!==null&&D!==null&&(me=F+we*(D-F)/(S-1)),me||(me=10+we*100/(S-1));var Pe=W+we%fe*ce+2*Math.PI/Z*Math.floor(we/fe);$||(Pe=U-we%fe*ce-2*Math.PI/Z*Math.floor(we/fe)),ve[we].x=k[0]+Math.cos(Pe)*me,ve[we].y=k[1]+Math.sin(Pe)*me,ve[we].weight=ne[we].all}return(h=d.onLayoutEnd)===null||h===void 0||h.call(d),{nodes:ve,edges:this.edges}},v.prototype.topologyOrdering=function(h){h===void 0&&(h=!1);var d=this,_=d.degrees,p=d.edges,S=d.nodes,k=(0,A.clone)(S),O=d.nodeMap,F=[k[0]],D=[S[0]],Z=[],W=S.length;Z[0]=!0,y(k,p,O,h);var U=0;return k.forEach(function(L,V){if(V!==0)if((V===W-1||_[V].all!==_[V+1].all||M(F[U],L,p))&&!Z[V])F.push(L),D.push(S[O[L.id]]),Z[V]=!0,U++;else{for(var $=F[U].children,G=!1,z=0;z<$.length;z++){var K=O[$[z]];if(_[K].all===_[V].all&&!Z[K]){F.push(k[K]),D.push(S[O[k[K].id]]),Z[K]=!0,G=!0;break}}for(var re=0;!G&&(Z[re]||(F.push(k[re]),D.push(S[O[k[re].id]]),Z[re]=!0,G=!0),re++,re!==W););}}),D},v.prototype.degreeOrdering=function(){var h=this,d=h.nodes,_=[],p=h.degrees;return d.forEach(function(S,k){S.degree=p[k].all,_.push(S)}),_.sort(w),_},v.prototype.getType=function(){return"circular"},v}(g.Base);N.CircularLayout=m},57064:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var b=function(h,d){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,p){_.__proto__=p}||function(_,p){for(var S in p)Object.prototype.hasOwnProperty.call(p,S)&&(_[S]=p[S])},b(h,d)};return function(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");b(v,h);function d(){this.constructor=v}v.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}}(),g=this&&this.__assign||function(){return g=Object.assign||function(b){for(var v,h=1,d=arguments.length;h<d;h++){v=arguments[h];for(var _ in v)Object.prototype.hasOwnProperty.call(v,_)&&(b[_]=v[_])}return b},g.apply(this,arguments)};Object.defineProperty(N,"__esModule",{value:!0}),N.ComboCombinedLayout=void 0;var A=o(30135),y=o(15383),M=o(74788),w=o(92946),m=function(b){x(v,b);function v(h){var d=b.call(this)||this;return d.center=[0,0],d.nodes=[],d.edges=[],d.combos=[],d.comboEdges=[],d.comboPadding=10,d.comboTrees=[],d.updateCfg(h),d}return v.prototype.getDefaultCfg=function(){return{}},v.prototype.execute=function(){var h=this,d=h.nodes,_=h.center;if(!d||d.length===0){h.onLayoutEnd&&h.onLayoutEnd();return}if(d.length===1){d[0].x=_[0],d[0].y=_[1],h.onLayoutEnd&&h.onLayoutEnd();return}h.initVals(),h.run(),h.onLayoutEnd&&h.onLayoutEnd()},v.prototype.run=function(){var h,d=this,_=d.nodes,p=d.edges,S=d.combos,k=d.comboEdges,O=d.center,F={};_.forEach(function(he){F[he.id]=he});var D={};S.forEach(function(he){D[he.id]=he});var Z=d.getInnerGraphs(F),W=[],U=[],L={},V=!0;this.comboTrees.forEach(function(he){var Ee=Z[he.id],ce=g(g({},he),{x:Ee.x||D[he.id].x,y:Ee.y||D[he.id].y,fx:Ee.fx||D[he.id].fx,fy:Ee.fy||D[he.id].fy,mass:Ee.mass||D[he.id].mass,size:Ee.size});U.push(ce),!isNaN(ce.x)&&ce.x!==0&&!isNaN(ce.y)&&ce.y!==0?V=!1:(ce.x=Math.random()*100,ce.y=Math.random()*100),W.push(he.id),(0,M.traverseTreeUp)(he,function(ve){return ve.id!==he.id&&(L[ve.id]=he.id),!0})}),_.forEach(function(he){if(!(he.comboId&&D[he.comboId])){var Ee=g({},he);U.push(Ee),!isNaN(Ee.x)&&Ee.x!==0&&!isNaN(Ee.y)&&Ee.y!==0?V=!1:(Ee.x=Math.random()*100,Ee.y=Math.random()*100),W.push(he.id)}});var $=[];if(p.concat(k).forEach(function(he){var Ee=L[he.source]||he.source,ce=L[he.target]||he.target;Ee!==ce&&W.includes(Ee)&&W.includes(ce)&&$.push({source:Ee,target:ce})}),U==null?void 0:U.length){if(U.length===1)U[0].x=O[0],U[0].y=O[1];else{var G={nodes:U,edges:$},z=this.outerLayout||new w.GForceLayout({gravity:1,factor:4,linkDistance:function(Ee,ce,ve){var fe,we,me=((((fe=ce.size)===null||fe===void 0?void 0:fe[0])||30)+(((we=ve.size)===null||we===void 0?void 0:we[0])||30))/2;return Math.min(me*1.5,700)}}),K=(h=z.getType)===null||h===void 0?void 0:h.call(z);if(z.updateCfg({center:O,kg:5,preventOverlap:!0,animate:!1}),V&&A.FORCE_LAYOUT_TYPE_MAP[K]){var re=U.length<100?new w.MDSLayout:new w.GridLayout;re.layout(G)}z.layout(G)}U.forEach(function(he){var Ee=Z[he.id];if(!Ee){var ce=F[he.id];ce&&(ce.x=he.x,ce.y=he.y);return}Ee.visited=!0,Ee.x=he.x,Ee.y=he.y,Ee.nodes.forEach(function(ve){ve.x+=he.x,ve.y+=he.y})})}for(var ne=Object.keys(Z),Q=function(Ee){var ce=ne[Ee],ve=Z[ce];if(!ve)return"continue";ve.nodes.forEach(function(fe){ve.visited||(fe.x+=ve.x||0,fe.y+=ve.y||0),F[fe.id]&&(F[fe.id].x=fe.x,F[fe.id].y=fe.y)}),D[ce]&&(D[ce].x=ve.x,D[ce].y=ve.y)},ue=ne.length-1;ue>=0;ue--)Q(ue);return{nodes:_,edges:p,combos:S,comboEdges:k}},v.prototype.getInnerGraphs=function(h){var d=this,_=d.comboTrees,p=d.nodeSize,S=d.edges,k=d.comboPadding,O=d.spacing,F={},D=this.innerLayout||new w.ConcentricLayout({type:"concentric",sortBy:"id"});return D.center=[0,0],D.preventOverlap=!0,D.nodeSpacing=O,(_||[]).forEach(function(Z){(0,M.traverseTreeUp)(Z,function(W){var U,L=(k==null?void 0:k(W))||10;if((0,M.isArray)(L)&&(L=Math.max.apply(Math,L)),(U=W.children)===null||U===void 0?void 0:U.length){var $=W.children.map(function(fe){if(fe.itemType==="combo")return F[fe.id];var we=h[fe.id]||{};return g(g({},we),fe)}),G=$.map(function(fe){return fe.id}),z={nodes:$,edges:S.filter(function(fe){return G.includes(fe.source)&&G.includes(fe.target)})},K=Infinity;$.forEach(function(fe){var we;fe.size||(fe.size=((we=F[fe.id])===null||we===void 0?void 0:we.size)||(p==null?void 0:p(fe))||[30,30]),(0,M.isNumber)(fe.size)&&(fe.size=[fe.size,fe.size]),K>fe.size[0]&&(K=fe.size[0]),K>fe.size[1]&&(K=fe.size[1])}),D.layout(z);var re=(0,M.getLayoutBBox)($),ne=re.minX,Q=re.minY,ue=re.maxX,he=re.maxY,Ee={x:(ue+ne)/2,y:(he+Q)/2};z.nodes.forEach(function(fe){fe.x-=Ee.x,fe.y-=Ee.y});var ce=Math.max(ue-ne,K)+L*2,ve=Math.max(he-Q,K)+L*2;F[W.id]={id:W.id,nodes:$,size:[ce,ve]}}else if(W.itemType==="combo"){var V=L?[L*2,L*2]:[30,30];F[W.id]={id:W.id,nodes:[],size:V}}return!0})}),F},v.prototype.initVals=function(){var h=this,d=h.nodeSize,_=h.spacing,p,S;if((0,M.isNumber)(_)?S=function(){return _}:(0,M.isFunction)(_)?S=_:S=function(){return 0},this.spacing=S,!d)p=function(U){var L=S(U);if(U.size){if((0,M.isArray)(U.size)){var V=U.size[0]>U.size[1]?U.size[0]:U.size[1];return(V+L)/2}if((0,M.isObject)(U.size)){var V=U.size.width>U.size.height?U.size.width:U.size.height;return(V+L)/2}return(U.size+L)/2}return 10+L/2};else if((0,M.isFunction)(d))p=function(U){var L=d(U),V=S(U);if((0,M.isArray)(U.size)){var $=U.size[0]>U.size[1]?U.size[0]:U.size[1];return($+V)/2}return((L||10)+V)/2};else if((0,M.isArray)(d)){var k=d[0]>d[1]?d[0]:d[1],O=k/2;p=function(U){return O+S(U)/2}}else{var F=d/2;p=function(U){return F+S(U)/2}}this.nodeSize=p;var D=h.comboPadding,Z;(0,M.isNumber)(D)?Z=function(){return D}:(0,M.isArray)(D)?Z=function(){return Math.max.apply(null,D)}:(0,M.isFunction)(D)?Z=D:Z=function(){return 0},this.comboPadding=Z},v.prototype.getType=function(){return"comboCombined"},v}(y.Base);N.ComboCombinedLayout=m},73560:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var M=function(m,b){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,h){v.__proto__=h}||function(v,h){for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(v[d]=h[d])},M(m,b)};return function(w,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");M(w,m);function b(){this.constructor=w}w.prototype=m===null?Object.create(m):(b.prototype=m.prototype,new b)}}();Object.defineProperty(N,"__esModule",{value:!0}),N.ComboForceLayout=void 0;var g=o(15383),A=o(74788),y=function(M){x(w,M);function w(m){var b=M.call(this)||this;return b.center=[0,0],b.maxIteration=100,b.gravity=10,b.comboGravity=10,b.linkDistance=10,b.alpha=1,b.alphaMin=.001,b.alphaDecay=1-Math.pow(b.alphaMin,1/300),b.alphaTarget=0,b.velocityDecay=.6,b.edgeStrength=.6,b.nodeStrength=30,b.preventOverlap=!1,b.preventNodeOverlap=!1,b.preventComboOverlap=!1,b.collideStrength=void 0,b.nodeCollideStrength=.5,b.comboCollideStrength=.5,b.comboSpacing=20,b.comboPadding=10,b.optimizeRangeFactor=1,b.onTick=function(){},b.onLayoutEnd=function(){},b.depthAttractiveForceScale=1,b.depthRepulsiveForceScale=2,b.nodes=[],b.edges=[],b.combos=[],b.comboTrees=[],b.width=300,b.height=300,b.bias=[],b.nodeMap={},b.oriComboMap={},b.indexMap={},b.comboMap={},b.previousLayouted=!1,b.updateCfg(m),b}return w.prototype.getDefaultCfg=function(){return{maxIteration:100,center:[0,0],gravity:10,speed:1,comboGravity:30,preventOverlap:!1,preventComboOverlap:!0,preventNodeOverlap:!0,nodeSpacing:void 0,collideStrength:void 0,nodeCollideStrength:.5,comboCollideStrength:.5,comboSpacing:20,comboPadding:10,edgeStrength:.6,nodeStrength:30,linkDistance:10}},w.prototype.execute=function(){var m=this,b=m.nodes,v=m.center;if(m.comboTree={id:"comboTreeRoot",depth:-1,children:m.comboTrees},!b||b.length===0){m.onLayoutEnd&&m.onLayoutEnd();return}if(b.length===1){b[0].x=v[0],b[0].y=v[1],m.onLayoutEnd&&m.onLayoutEnd();return}m.initVals(),m.run(),m.onLayoutEnd&&m.onLayoutEnd()},w.prototype.run=function(){var m=this,b=m.nodes,v=m.previousLayouted?m.maxIteration/5:m.maxIteration;!m.width&&typeof window!="undefined"&&(m.width=window.innerWidth),!m.height&&typeof window!="undefined"&&(m.height=window.innerHeight);var h=m.center,d=m.velocityDecay,_=m.comboMap;m.previousLayouted||m.initPos(_);for(var p=function(D){var Z=[];b.forEach(function(W,U){Z[U]={x:0,y:0}}),m.applyCalculate(Z),m.applyComboCenterForce(Z),b.forEach(function(W,U){!(0,A.isNumber)(W.x)||!(0,A.isNumber)(W.y)||(W.x+=Z[U].x*d,W.y+=Z[U].y*d)}),m.alpha+=(m.alphaTarget-m.alpha)*m.alphaDecay,m.onTick()},S=0;S<v;S++)p(S);var k=[0,0];b.forEach(function(F){!(0,A.isNumber)(F.x)||!(0,A.isNumber)(F.y)||(k[0]+=F.x,k[1]+=F.y)}),k[0]/=b.length,k[1]/=b.length;var O=[h[0]-k[0],h[1]-k[1]];b.forEach(function(F,D){!(0,A.isNumber)(F.x)||!(0,A.isNumber)(F.y)||(F.x+=O[0],F.y+=O[1])}),m.combos.forEach(function(F){var D=_[F.id];D&&D.empty&&(F.x=D.cx||F.x,F.y=D.cy||F.y)}),m.previousLayouted=!0},w.prototype.initVals=function(){var m=this,b=m.edges,v=m.nodes,h=m.combos,d={},_={},p={};v.forEach(function(me,Pe){_[me.id]=me,p[me.id]=Pe}),m.nodeMap=_,m.indexMap=p;var S={};h.forEach(function(me){S[me.id]=me}),m.oriComboMap=S,m.comboMap=m.getComboMap();var k=m.preventOverlap;m.preventComboOverlap=m.preventComboOverlap||k,m.preventNodeOverlap=m.preventNodeOverlap||k;var O=m.collideStrength;O&&(m.comboCollideStrength=O,m.nodeCollideStrength=O),m.comboCollideStrength=m.comboCollideStrength?m.comboCollideStrength:0,m.nodeCollideStrength=m.nodeCollideStrength?m.nodeCollideStrength:0;for(var F=0;F<b.length;++F){var D=(0,A.getEdgeTerminal)(b[F],"source"),Z=(0,A.getEdgeTerminal)(b[F],"target");d[D]?d[D]++:d[D]=1,d[Z]?d[Z]++:d[Z]=1}for(var W=[],F=0;F<b.length;++F){var D=(0,A.getEdgeTerminal)(b[F],"source"),Z=(0,A.getEdgeTerminal)(b[F],"target");W[F]=d[D]/(d[D]+d[Z])}this.bias=W;var U=m.nodeSize,L=m.nodeSpacing,V,$;if((0,A.isNumber)(L)?$=function(){return L}:(0,A.isFunction)(L)?$=L:$=function(){return 0},this.nodeSpacing=$,!U)V=function(Pe){if(Pe.size){if((0,A.isArray)(Pe.size)){var pe=Pe.size[0]>Pe.size[1]?Pe.size[0]:Pe.size[1];return pe/2}if((0,A.isObject)(Pe.size)){var pe=Pe.size.width>Pe.size.height?Pe.size.width:Pe.size.height;return pe/2}return Pe.size/2}return 10};else if((0,A.isFunction)(U))V=function(Pe){return U(Pe)};else if((0,A.isArray)(U)){var G=U[0]>U[1]?U[0]:U[1],z=G/2;V=function(Pe){return z}}else{var K=U/2;V=function(Pe){return K}}this.nodeSize=V;var re=m.comboSpacing,ne;(0,A.isNumber)(re)?ne=function(){return re}:(0,A.isFunction)(re)?ne=re:ne=function(){return 0},this.comboSpacing=ne;var Q=m.comboPadding,ue;(0,A.isNumber)(Q)?ue=function(){return Q}:(0,A.isArray)(Q)?ue=function(){return Math.max.apply(null,Q)}:(0,A.isFunction)(Q)?ue=Q:ue=function(){return 0},this.comboPadding=ue;var he=this.linkDistance,Ee;he||(he=10),(0,A.isNumber)(he)?Ee=function(Pe){return he}:Ee=he,this.linkDistance=Ee;var ce=this.edgeStrength,ve;ce||(ce=1),(0,A.isNumber)(ce)?ve=function(Pe){return ce}:ve=ce,this.edgeStrength=ve;var fe=this.nodeStrength,we;fe||(fe=30),(0,A.isNumber)(fe)?we=function(Pe){return fe}:we=fe,this.nodeStrength=we},w.prototype.initPos=function(m){var b=this,v=b.nodes;v.forEach(function(h,d){var _=h.comboId,p=m[_];_&&p?(h.x=p.cx+100/(d+1),h.y=p.cy+100/(d+1)):(h.x=100/(d+1),h.y=100/(d+1))})},w.prototype.getComboMap=function(){var m=this,b=m.nodeMap,v=m.comboTrees,h=m.oriComboMap,d={};return(v||[]).forEach(function(_){var p=[];(0,A.traverseTreeUp)(_,function(S){if(S.itemType==="node"||!h[S.id])return!0;if(d[S.id]===void 0){var k={id:S.id,name:S.id,cx:0,cy:0,count:0,depth:m.oriComboMap[S.id].depth||0,children:[]};d[S.id]=k}var O=S.children;O&&O.forEach(function(Z){if(!d[Z.id]&&!b[Z.id])return!0;p.push(Z)});var F=d[S.id];if(F.cx=0,F.cy=0,p.length===0){F.empty=!0;var D=h[S.id];F.cx=D.x,F.cy=D.y}return p.forEach(function(Z){if(F.count++,Z.itemType!=="node"){var W=d[Z.id];(0,A.isNumber)(W.cx)&&(F.cx+=W.cx),(0,A.isNumber)(W.cy)&&(F.cy+=W.cy);return}var U=b[Z.id];!U||((0,A.isNumber)(U.x)&&(F.cx+=U.x),(0,A.isNumber)(U.y)&&(F.cy+=U.y))}),F.cx/=F.count||1,F.cy/=F.count||1,F.children=p,!0})}),d},w.prototype.applyComboCenterForce=function(m){var b=this,v=b.gravity,h=b.comboGravity||v,d=this.alpha,_=b.comboTrees,p=b.indexMap,S=b.nodeMap,k=b.comboMap;(_||[]).forEach(function(O){(0,A.traverseTreeUp)(O,function(F){if(F.itemType==="node")return!0;var D=k[F.id];if(!D)return!0;var Z=k[F.id],W=(Z.depth+1)/10*.5,U=Z.cx,L=Z.cy;return Z.cx=0,Z.cy=0,Z.children.forEach(function(V){if(V.itemType!=="node"){var $=k[V.id];$&&(0,A.isNumber)($.cx)&&(Z.cx+=$.cx),$&&(0,A.isNumber)($.cy)&&(Z.cy+=$.cy);return}var G=S[V.id],z=G.x-U||.005,K=G.y-L||.005,re=Math.sqrt(z*z+K*K),ne=p[G.id],Q=h*d/re*W;m[ne].x-=z*Q,m[ne].y-=K*Q,(0,A.isNumber)(G.x)&&(Z.cx+=G.x),(0,A.isNumber)(G.y)&&(Z.cy+=G.y)}),Z.cx/=Z.count||1,Z.cy/=Z.count||1,!0})})},w.prototype.applyCalculate=function(m){var b=this,v=b.comboMap,h=b.nodes,d={};h.forEach(function(p,S){h.forEach(function(k,O){if(!(S<O)){var F=p.x-k.x||.005,D=p.y-k.y||.005,Z=F*F+D*D,W=Math.sqrt(Z);Z<1&&(Z=W),d["".concat(p.id,"-").concat(k.id)]={vx:F,vy:D,vl2:Z,vl:W},d["".concat(k.id,"-").concat(p.id)]={vl2:Z,vl:W,vx:-F,vy:-D}}})}),b.updateComboSizes(v),b.calRepulsive(m,d),b.calAttractive(m,d);var _=b.preventComboOverlap;_&&b.comboNonOverlapping(m,v)},w.prototype.updateComboSizes=function(m){var b=this,v=b.comboTrees,h=b.nodeMap,d=b.nodeSize,_=b.comboSpacing,p=b.comboPadding;(v||[]).forEach(function(S){var k=[];(0,A.traverseTreeUp)(S,function(O){if(O.itemType==="node")return!0;var F=m[O.id];if(!F)return!1;var D=O.children;D&&D.forEach(function(U){!m[U.id]&&!h[U.id]||k.push(U)}),F.minX=Infinity,F.minY=Infinity,F.maxX=-Infinity,F.maxY=-Infinity,k.forEach(function(U){if(U.itemType!=="node")return!0;var L=h[U.id];if(!L)return!0;var V=d(L),$=L.x-V,G=L.y-V,z=L.x+V,K=L.y+V;F.minX>$&&(F.minX=$),F.minY>G&&(F.minY=G),F.maxX<z&&(F.maxX=z),F.maxY<K&&(F.maxY=K)});var Z=b.oriComboMap[O.id].size||10;(0,A.isArray)(Z)&&(Z=Z[0]);var W=Math.max(F.maxX-F.minX,F.maxY-F.minY,Z);return F.r=W/2+_(F)/2+p(F),!0})})},w.prototype.comboNonOverlapping=function(m,b){var v=this,h=v.comboTree,d=v.comboCollideStrength,_=v.indexMap,p=v.nodeMap;(0,A.traverseTreeUp)(h,function(S){if(!b[S.id]&&!p[S.id]&&S.id!=="comboTreeRoot")return!1;var k=S.children;return k&&k.length>1&&k.forEach(function(O,F){if(O.itemType==="node")return!1;var D=b[O.id];!D||k.forEach(function(Z,W){if(F<=W||Z.itemType==="node")return!1;var U=b[Z.id];if(!U)return!1;var L=D.cx-U.cx||.005,V=D.cy-U.cy||.005,$=L*L+V*V,G=D.r||1,z=U.r||1,K=G+z,re=z*z,ne=G*G;if($<K*K){var Q=O.children;if(!Q||Q.length===0)return!1;var ue=Z.children;if(!ue||ue.length===0)return!1;var he=Math.sqrt($),Ee=(K-he)/he*d,ce=L*Ee,ve=V*Ee,fe=re/(ne+re),we=1-fe;Q.forEach(function(me){if(me.itemType!=="node")return!1;if(!!p[me.id]){var Pe=_[me.id];ue.forEach(function(pe){if(pe.itemType!=="node"||!p[pe.id])return!1;var Ie=_[pe.id];m[Pe].x+=ce*fe,m[Pe].y+=ve*fe,m[Ie].x-=ce*we,m[Ie].y-=ve*we})}})}})}),!0})},w.prototype.calRepulsive=function(m,b){var v=this,h=v.nodes,d=v.width*v.optimizeRangeFactor,_=v.nodeStrength,p=v.alpha,S=v.nodeCollideStrength,k=v.preventNodeOverlap,O=v.nodeSize,F=v.nodeSpacing,D=v.depthRepulsiveForceScale,Z=v.center;h.forEach(function(W,U){if(!(!W.x||!W.y)){if(Z){var L=v.gravity,V=W.x-Z[0]||.005,$=W.y-Z[1]||.005,G=Math.sqrt(V*V+$*$);m[U].x-=V*L*p/G,m[U].y-=$*L*p/G}h.forEach(function(z,K){if(U!==K&&!(!z.x||!z.y)){var re=b["".concat(W.id,"-").concat(z.id)],ne=re.vl2,Q=re.vl;if(!(Q>d)){var ue=b["".concat(W.id,"-").concat(z.id)],he=ue.vx,Ee=ue.vy,ce=Math.log(Math.abs(z.depth-W.depth)/10)+1||1;ce=ce<1?1:ce,z.comboId!==W.comboId&&(ce+=1);var ve=ce?Math.pow(D,ce):1,fe=_(z)*p/ne*ve;if(m[U].x+=he*fe,m[U].y+=Ee*fe,U<K&&k){var we=O(W)+F(W)||1,me=O(z)+F(z)||1,Pe=we+me;if(ne<Pe*Pe){var pe=(Pe-Q)/Q*S,Ie=me*me,Je=Ie/(we*we+Ie),ke=he*pe,De=Ee*pe;m[U].x+=ke*Je,m[U].y+=De*Je,Je=1-Je,m[K].x-=ke*Je,m[K].y-=De*Je}}}}})}})},w.prototype.calAttractive=function(m,b){var v=this,h=v.edges,d=v.linkDistance,_=v.alpha,p=v.edgeStrength,S=v.bias,k=v.depthAttractiveForceScale;h.forEach(function(O,F){var D=(0,A.getEdgeTerminal)(O,"source"),Z=(0,A.getEdgeTerminal)(O,"target");if(!(!D||!Z||D===Z)){var W=v.indexMap[D],U=v.indexMap[Z],L=v.nodeMap[D],V=v.nodeMap[Z];if(!(!L||!V)){var $=L.depth===V.depth?0:Math.log(Math.abs(L.depth-V.depth)/10);L.comboId===V.comboId&&($=$/2);var G=$?Math.pow(k,$):1;if(L.comboId!==V.comboId&&G===1?G=k/2:L.comboId===V.comboId&&(G=2),!(!(0,A.isNumber)(V.x)||!(0,A.isNumber)(L.x)||!(0,A.isNumber)(V.y)||!(0,A.isNumber)(L.y))){var z=b["".concat(Z,"-").concat(D)],K=z.vl,re=z.vx,ne=z.vy,Q=(K-d(O))/K*_*p(O)*G,ue=re*Q,he=ne*Q,Ee=S[F];m[U].x-=ue*Ee,m[U].y-=he*Ee,m[W].x+=ue*(1-Ee),m[W].y+=he*(1-Ee)}}}})},w.prototype.getType=function(){return"comboForce"},w}(g.Base);N.ComboForceLayout=y},98741:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var M=function(m,b){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,h){v.__proto__=h}||function(v,h){for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(v[d]=h[d])},M(m,b)};return function(w,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");M(w,m);function b(){this.constructor=w}w.prototype=m===null?Object.create(m):(b.prototype=m.prototype,new b)}}();Object.defineProperty(N,"__esModule",{value:!0}),N.ConcentricLayout=void 0;var g=o(74788),A=o(15383),y=function(M){x(w,M);function w(m){var b=M.call(this)||this;return b.nodeSize=30,b.minNodeSpacing=10,b.nodeSpacing=10,b.preventOverlap=!1,b.equidistant=!1,b.startAngle=3/2*Math.PI,b.clockwise=!0,b.sortBy="degree",b.nodes=[],b.edges=[],b.width=300,b.height=300,b.onLayoutEnd=function(){},b.updateCfg(m),b}return w.prototype.getDefaultCfg=function(){return{nodeSize:30,minNodeSpacing:10,nodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:3/2*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"}},w.prototype.execute=function(){var m,b,v=this,h=v.nodes,d=v.edges,_=h.length;if(_===0){(m=v.onLayoutEnd)===null||m===void 0||m.call(v);return}!v.width&&typeof window!="undefined"&&(v.width=window.innerWidth),!v.height&&typeof window!="undefined"&&(v.height=window.innerHeight),v.center||(v.center=[v.width/2,v.height/2]);var p=v.center;if(_===1){h[0].x=p[0],h[0].y=p[1],(b=v.onLayoutEnd)===null||b===void 0||b.call(v);return}var S=v.nodeSize,k=v.nodeSpacing,O=[],F,D=0;(0,g.isArray)(S)?F=Math.max(S[0],S[1]):F=S,(0,g.isArray)(k)?D=Math.max(k[0],k[1]):(0,g.isNumber)(k)&&(D=k),h.forEach(function(ce){O.push(ce);var ve=F;(0,g.isArray)(ce.size)?ve=Math.max(ce.size[0],ce.size[1]):(0,g.isNumber)(ce.size)?ve=ce.size:(0,g.isObject)(ce.size)&&(ve=Math.max(ce.size.width,ce.size.height)),F=Math.max(F,ve),(0,g.isFunction)(k)&&(D=Math.max(k(ce),D))}),v.clockwise=v.counterclockwise!==void 0?!v.counterclockwise:v.clockwise;var Z={},W={};if(O.forEach(function(ce,ve){Z[ce.id]=ce,W[ce.id]=ve}),(v.sortBy==="degree"||!(0,g.isString)(v.sortBy)||O[0][v.sortBy]===void 0)&&(v.sortBy="degree",!(0,g.isNumber)(h[0].degree))){var U=(0,g.getDegree)(h.length,W,d);O.forEach(function(ce,ve){ce.degree=U[ve].all})}O.sort(function(ce,ve){return ve[v.sortBy]-ce[v.sortBy]}),v.maxValueNode=O[0],v.maxLevelDiff=v.maxLevelDiff||v.maxValueNode[v.sortBy]/4;var L=[[]],V=L[0];O.forEach(function(ce){if(V.length>0){var ve=Math.abs(V[0][v.sortBy]-ce[v.sortBy]);v.maxLevelDiff&&ve>=v.maxLevelDiff&&(V=[],L.push(V))}V.push(ce)});var $=F+(D||v.minNodeSpacing);if(!v.preventOverlap){var G=L.length>0&&L[0].length>1,z=Math.min(v.width,v.height)/2-$,K=z/(L.length+(G?1:0));$=Math.min($,K)}var re=0;if(L.forEach(function(ce){var ve=v.sweep;ve===void 0&&(ve=2*Math.PI-2*Math.PI/ce.length);var fe=ce.dTheta=ve/Math.max(1,ce.length-1);if(ce.length>1&&v.preventOverlap){var we=Math.cos(fe)-Math.cos(0),me=Math.sin(fe)-Math.sin(0),Pe=Math.sqrt($*$/(we*we+me*me));re=Math.max(Pe,re)}ce.r=re,re+=$}),v.equidistant){for(var ne=0,Q=0,ue=0;ue<L.length;ue++){var he=L[ue],Ee=he.r-Q;ne=Math.max(ne,Ee)}Q=0,L.forEach(function(ce,ve){ve===0&&(Q=ce.r),ce.r=Q,Q+=ne})}return L.forEach(function(ce){var ve=ce.dTheta,fe=ce.r;ce.forEach(function(we,me){var Pe=v.startAngle+(v.clockwise?1:-1)*ve*me;we.x=p[0]+fe*Math.cos(Pe),we.y=p[1]+fe*Math.sin(Pe)})}),v.onLayoutEnd&&v.onLayoutEnd(),{nodes:h,edges:d}},w.prototype.getType=function(){return"concentric"},w}(A.Base);N.ConcentricLayout=y},30135:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.FORCE_LAYOUT_TYPE_MAP=N.LAYOUT_MESSAGE=void 0,N.LAYOUT_MESSAGE={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"},N.FORCE_LAYOUT_TYPE_MAP={gForce:!0,force2:!0,fruchterman:!0,forceAtlas2:!0,force:!0,"graphin-force":!0}},47130:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var v=function(d,_){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,S){p.__proto__=S}||function(p,S){for(var k in S)Object.prototype.hasOwnProperty.call(S,k)&&(p[k]=S[k])},v(d,_)};return function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");v(h,d);function _(){this.constructor=h}h.prototype=d===null?Object.create(d):(_.prototype=d.prototype,new _)}}(),g=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(N,"__esModule",{value:!0}),N.DagreLayout=void 0;var A=g(o(52451)),y=o(74788),M=o(15383),w=o(97434),m=function(v){x(h,v);function h(d){var _=v.call(this)||this;return _.rankdir="TB",_.nodesep=50,_.ranksep=50,_.controlPoints=!1,_.sortByCombo=!1,_.edgeLabelSpace=!0,_.radial=!1,_.nodes=[],_.edges=[],_.onLayoutEnd=function(){},_.layoutNode=function(p){var S=_,k=S.nodes,O=k.find(function(D){return D.id===p});if(O){var F=O.layout!==!1;return F}return!0},_.updateCfg(d),_}return h.prototype.getDefaultCfg=function(){return{rankdir:"TB",align:void 0,nodeSize:void 0,nodesepFunc:void 0,ranksepFunc:void 0,nodesep:50,ranksep:50,controlPoints:!1,radial:!1,focusNode:null}},h.prototype.execute=function(){var d=this,_,p,S,k,O=this,F=O.nodes,D=O.nodeSize,Z=O.rankdir,W=O.combos,U=O.begin,L=O.radial,V=O.comboEdges,$=V===void 0?[]:V,G=O.vedges,z=G===void 0?[]:G;if(!!F){var K=O.edges||[],re=new w.Graph({multigraph:!0,compound:!0});O.nodeMap={};var ne={};F.forEach(function(rt){O.nodeMap[rt.id]=rt,!!rt.comboId&&(ne[rt.comboId]=ne[rt.comboId]||[],ne[rt.comboId].push(rt.id))});var Q=[],ue={};((_=O.nodeOrder)===null||_===void 0?void 0:_.length)?(O.nodeOrder.forEach(function(rt){ue[rt]=!0,Q.push(O.nodeMap[rt])}),F.forEach(function(rt){ue[rt.id]||Q.push(rt)})):Q=F;var he;D?(0,y.isArray)(D)?he=function(){return D}:he=function(){return[D,D]}:he=function(tt){return tt.size?(0,y.isArray)(tt.size)?tt.size:(0,y.isObject)(tt.size)?[tt.size.width||40,tt.size.height||40]:[tt.size,tt.size]:[40,40]};var Ee=(0,y.getFunc)(O.ranksep,50,O.ranksepFunc),ce=(0,y.getFunc)(O.nodesep,50,O.nodesepFunc),ve=ce,fe=Ee;(Z==="LR"||Z==="RL")&&(ve=Ee,fe=ce),re.setDefaultEdgeLabel(function(){return{}}),re.setGraph(O);var we={};this.sortByCombo&&W&&W.forEach(function(rt){if(we[rt.id]=rt,rt.collapsed){var tt=he(rt),de=fe(rt),ot=ve(rt),Et=tt[0]+2*ot,Ht=tt[1]+2*de;re.setNode(rt.id,{width:Et,height:Ht})}!rt.parentId||(we[rt.parentId]||re.setNode(rt.parentId,{}),re.setParent(rt.id,rt.parentId))}),Q.filter(function(rt){return rt.layout!==!1}).forEach(function(rt){var tt=he(rt),de=fe(rt),ot=ve(rt),Et=tt[0]+2*ot,Ht=tt[1]+2*de,Jt=rt.layer;(0,y.isNumber)(Jt)?re.setNode(rt.id,{width:Et,height:Ht,layer:Jt}):re.setNode(rt.id,{width:Et,height:Ht}),d.sortByCombo&&rt.comboId&&(we[rt.comboId]||(we[rt.comboId]={id:rt.comboId},re.setNode(rt.comboId,{})),re.setParent(rt.id,rt.comboId))}),K.forEach(function(rt){var tt=(0,y.getEdgeTerminal)(rt,"source"),de=(0,y.getEdgeTerminal)(rt,"target");d.layoutNode(tt)&&d.layoutNode(de)&&re.setEdge(tt,de,{weight:rt.weight||1})}),(p=$==null?void 0:$.concat(z||[]))===null||p===void 0||p.forEach(function(rt){var tt,de,ot=rt.source,Et=rt.target,Ht=((tt=we[ot])===null||tt===void 0?void 0:tt.collapsed)?[ot]:ne[ot]||[ot],Jt=((de=we[Et])===null||de===void 0?void 0:de.collapsed)?[Et]:ne[Et]||[Et];Ht.forEach(function(Qt){Jt.forEach(function(an){re.setEdge(Qt,an,{weight:rt.weight||1})})})});var me=void 0;((S=O.preset)===null||S===void 0?void 0:S.nodes)&&(me=new w.Graph({multigraph:!0,compound:!0}),O.preset.nodes.forEach(function(rt){me==null||me.setNode(rt.id,rt)})),A.default.layout(re,{prevGraph:me,edgeLabelSpace:O.edgeLabelSpace,keepNodeOrder:Boolean(!!O.nodeOrder),nodeOrder:O.nodeOrder});var Pe=[0,0];if(U){var pe=Infinity,Ie=Infinity;re.nodes().forEach(function(rt){var tt=re.node(rt);pe>tt.x&&(pe=tt.x),Ie>tt.y&&(Ie=tt.y)}),re.edges().forEach(function(rt){var tt,de=re.edge(rt);(tt=de.points)===null||tt===void 0||tt.forEach(function(ot){pe>ot.x&&(pe=ot.x),Ie>ot.y&&(Ie=ot.y)})}),Pe[0]=U[0]-pe,Pe[1]=U[1]-Ie}var Je=Z==="LR"||Z==="RL";if(L){var ke=this,De=ke.focusNode,Fe=ke.ranksep,Qe=ke.getRadialPos,qe=(0,y.isString)(De)?De:De==null?void 0:De.id,et=qe?(k=re.node(qe))===null||k===void 0?void 0:k._rank:0,dt=[],Ke=Je?"y":"x",Ge=Je?"height":"width",wt=Infinity,Vt=-Infinity;re.nodes().forEach(function(rt){var tt=re.node(rt);if(!!O.nodeMap[rt]){var de=ce(O.nodeMap[rt]);if(et===0)dt[tt._rank]||(dt[tt._rank]={nodes:[],totalWidth:0,maxSize:-Infinity}),dt[tt._rank].nodes.push(rt),dt[tt._rank].totalWidth+=de*2+tt[Ge],dt[tt._rank].maxSize<Math.max(tt.width,tt.height)&&(dt[tt._rank].maxSize=Math.max(tt.width,tt.height));else{var ot=tt._rank-et;if(ot===0)dt[ot]||(dt[ot]={nodes:[],totalWidth:0,maxSize:-Infinity}),dt[ot].nodes.push(rt),dt[ot].totalWidth+=de*2+tt[Ge],dt[ot].maxSize<Math.max(tt.width,tt.height)&&(dt[ot].maxSize=Math.max(tt.width,tt.height));else{var Et=Math.abs(ot);dt[Et]||(dt[Et]={left:[],right:[],totalWidth:0,maxSize:-Infinity}),dt[Et].totalWidth+=de*2+tt[Ge],dt[Et].maxSize<Math.max(tt.width,tt.height)&&(dt[Et].maxSize=Math.max(tt.width,tt.height)),ot<0?dt[Et].left.push(rt):dt[Et].right.push(rt)}}var Ht=tt[Ke]-tt[Ge]/2-de,Jt=tt[Ke]+tt[Ge]/2+de;Ht<wt&&(wt=Ht),Jt>Vt&&(Vt=Jt)}});var gt=Fe||50,it={},Le=(Vt-wt)/.9,ct=[(wt+Vt-Le)*.5,(wt+Vt+Le)*.5],at=function(tt,de,ot,Et){ot===void 0&&(ot=-Infinity),Et===void 0&&(Et=[0,1]);var Ht=ot;return tt.forEach(function(Jt){var Qt=re.node(Jt);it[Jt]=de;var an=Qe(Qt[Ke],ct,Le,de,Et),Un=an.x,qt=an.y;if(!!O.nodeMap[Jt]){O.nodeMap[Jt].x=Un+Pe[0],O.nodeMap[Jt].y=qt+Pe[1],O.nodeMap[Jt]._order=Qt._order;var rn=Ee(O.nodeMap[Jt]);Ht<rn&&(Ht=rn)}}),Ht},jt=!0,St=0;dt.forEach(function(rt){var tt,de,ot,Et,Ht,Jt,Qt;if(!(!((tt=rt==null?void 0:rt.nodes)===null||tt===void 0?void 0:tt.length)&&!((de=rt==null?void 0:rt.left)===null||de===void 0?void 0:de.length)&&!((ot=rt==null?void 0:rt.right)===null||ot===void 0?void 0:ot.length))){if(jt&&rt.nodes.length===1){var an=rt.nodes[0];if(!O.nodeMap[an])return;O.nodeMap[an].x=Pe[0],O.nodeMap[an].y=Pe[1],it[rt.nodes[0]]=0,gt=Ee(O.nodeMap[an]),jt=!1;return}gt=Math.max(gt,rt.totalWidth/(2*Math.PI));var Un=-Infinity;if(et===0||((Et=rt.nodes)===null||Et===void 0?void 0:Et.length))Un=at(rt.nodes,gt,Un,[0,1]);else{var qt=((Ht=rt.left)===null||Ht===void 0?void 0:Ht.length)/(((Jt=rt.left)===null||Jt===void 0?void 0:Jt.length)+((Qt=rt.right)===null||Qt===void 0?void 0:Qt.length));Un=at(rt.left,gt,Un,[0,qt]),Un=at(rt.right,gt,Un,[qt+.05,1])}gt+=Un,jt=!1,St-rt.maxSize}}),re.edges().forEach(function(rt){var tt,de,ot,Et=re.edge(rt),Ht=K.findIndex(function(er){var rr=(0,y.getEdgeTerminal)(er,"source"),nt=(0,y.getEdgeTerminal)(er,"target");return rr===rt.v&&nt===rt.w});if(!(Ht<=-1)&&O.edgeLabelSpace&&O.controlPoints&&K[Ht].type!=="loop"){var Jt=Ke==="x"?"y":"x",Qt=(tt=Et==null?void 0:Et.points)===null||tt===void 0?void 0:tt.slice(1,Et.points.length-1),an=[],Un=(de=re.node(rt.v))===null||de===void 0?void 0:de[Jt],qt=Un-((ot=re.node(rt.w))===null||ot===void 0?void 0:ot[Jt]),rn=it[rt.v],cn=rn-it[rt.w];Qt==null||Qt.forEach(function(er){var rr=(er[Jt]-Un)/qt*cn+rn,nt=Qe(er[Ke],ct,Le,rr);an.push({x:nt.x+Pe[0],y:nt.y+Pe[1]})}),K[Ht].controlPoints=an}})}else{var fn=new Set,Xt=Z==="BT"||Z==="RL",Yt=Xt?function(rt,tt){return tt-rt}:function(rt,tt){return rt-tt};re.nodes().forEach(function(rt){var tt=re.node(rt);if(!!tt){var de=d.nodeMap[rt];de||(de=W==null?void 0:W.find(function(ot){return ot.id===rt})),!!de&&(de.x=tt.x+Pe[0],de.y=tt.y+Pe[1],de._order=tt._order,fn.add(Je?de.x:de.y))}});var Rt=Array.from(fn).sort(Yt),Lt=Je?function(rt,tt){return rt.x!==tt.x}:function(rt,tt){return rt.y!==tt.y},ze=Je?function(rt,tt,de){var ot=Math.max(tt.y,de.y),Et=Math.min(tt.y,de.y);return rt.filter(function(Ht){return Ht.y<=ot&&Ht.y>=Et})}:function(rt,tt,de){var ot=Math.max(tt.x,de.x),Et=Math.min(tt.x,de.x);return rt.filter(function(Ht){return Ht.x<=ot&&Ht.x>=Et})};re.edges().forEach(function(rt){var tt,de=re.edge(rt),ot=K.findIndex(function(Jt){var Qt=(0,y.getEdgeTerminal)(Jt,"source"),an=(0,y.getEdgeTerminal)(Jt,"target");return Qt===rt.v&&an===rt.w});if(!(ot<=-1)&&O.edgeLabelSpace&&O.controlPoints&&K[ot].type!=="loop"){(tt=de==null?void 0:de.points)===null||tt===void 0||tt.forEach(function(Jt){Jt.x+=Pe[0],Jt.y+=Pe[1]});var Et=O.nodeMap[rt.v],Ht=O.nodeMap[rt.w];K[ot].controlPoints=b(de==null?void 0:de.points,Et,Ht,Rt,Je,Lt,ze)}})}return O.onLayoutEnd&&O.onLayoutEnd(),{nodes:F,edges:K}}},h.prototype.getRadialPos=function(d,_,p,S,k){k===void 0&&(k=[0,1]);var O=(d-_[0])/p;O=O*(k[1]-k[0])+k[0];var F=O*2*Math.PI;return{x:Math.cos(F)*S,y:Math.sin(F)*S}},h.prototype.getType=function(){return"dagre"},h}(M.Base);N.DagreLayout=m;var b=function(h,d,_,p,S,k,O){var F=(h==null?void 0:h.slice(1,h.length-1))||[];if(d&&_){var D=d.x,Z=d.y,W=_.x,U=_.y;if(S&&(D=d.y,Z=d.x,W=_.y,U=_.x),U!==Z&&D!==W){var L=p.indexOf(Z),V=p[L+1];if(V){var $=F[0],G=S?{x:(Z+V)/2,y:($==null?void 0:$.y)||W}:{x:($==null?void 0:$.x)||W,y:(Z+V)/2};(!$||k($,G))&&F.unshift(G)}var z=p.indexOf(U),K=Math.abs(z-L);if(K===1)F=O(F,d,_),F.length||F.push(S?{x:(Z+U)/2,y:D}:{x:D,y:(Z+U)/2});else if(K>1){var re=p[z-1];if(re){var ne=F[F.length-1],Q=S?{x:(U+re)/2,y:(ne==null?void 0:ne.y)||W}:{x:(ne==null?void 0:ne.x)||D,y:(U+re)/2};(!ne||k(ne,Q))&&F.push(Q)}}}}return F}},97434:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var y=function(w,m){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&(b[h]=v[h])},y(w,m)};return function(M,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");y(M,w);function m(){this.constructor=M}M.prototype=w===null?Object.create(w):(m.prototype=w.prototype,new m)}}();Object.defineProperty(N,"__esModule",{value:!0}),N.Graph=void 0;var g=o(96181),A=function(y){x(M,y);function M(){return y!==null&&y.apply(this,arguments)||this}return M}(g.Graph);N.Graph=A},52451:function(oe,N,o){"use strict";var x=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(N,"__esModule",{value:!0});var g=x(o(9211)),A=o(28963);N.default={layout:g.default,util:{time:A.time,notime:A.notime}}},61258:function(oe,N,o){"use strict";var x=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(N,"__esModule",{value:!0});var g=x(o(78379)),A=function(m){var b=function(d){return function(_){var p;return((p=d.edge(_))===null||p===void 0?void 0:p.weight)||1}},v=m.graph().acyclicer==="greedy"?(0,g.default)(m,b(m)):y(m);v==null||v.forEach(function(h){var d=m.edge(h);m.removeEdgeObj(h),d.forwardName=h.name,d.reversed=!0,m.setEdge(h.w,h.v,d,"rev-".concat(Math.random()))})},y=function(m){var b=[],v={},h={},d=function _(p){var S;h[p]||(h[p]=!0,v[p]=!0,(S=m.outEdges(p))===null||S===void 0||S.forEach(function(k){v[k.w]?b.push(k):_(k.w)}),delete v[p])};return m.nodes().forEach(d),b},M=function(m){m.edges().forEach(function(b){var v=m.edge(b);if(v.reversed){m.removeEdgeObj(b);var h=v.forwardName;delete v.reversed,delete v.forwardName,m.setEdge(b.w,b.v,v,h)}})};N.default={run:A,undo:M}},74385:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var x=o(28963),g=function(M){var w,m=function b(v){var h=M.children(v),d=M.node(v);if((h==null?void 0:h.length)&&h.forEach(function(S){return b(S)}),d.hasOwnProperty("minRank")){d.borderLeft=[],d.borderRight=[];for(var _=d.minRank,p=d.maxRank+1;_<p;_+=1)A(M,"borderLeft","_bl",v,d,_),A(M,"borderRight","_br",v,d,_)}};(w=M.children())===null||w===void 0||w.forEach(function(b){return m(b)})},A=function(M,w,m,b,v,h){var d={rank:h,borderType:w,width:0,height:0},_=v[w][h-1],p=(0,x.addDummyNode)(M,"border",d,m);v[w][h]=p,M.setParent(p,b),_&&M.setEdge(_,p,{weight:1})};N.default=g},96439:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o=function(v){var h,d=(h=v.graph().rankdir)===null||h===void 0?void 0:h.toLowerCase();(d==="lr"||d==="rl")&&g(v)},x=function(v){var h,d=(h=v.graph().rankdir)===null||h===void 0?void 0:h.toLowerCase();(d==="bt"||d==="rl")&&y(v),(d==="lr"||d==="rl")&&(w(v),g(v))},g=function(v){v.nodes().forEach(function(h){A(v.node(h))}),v.edges().forEach(function(h){A(v.edge(h))})},A=function(v){var h=v.width;v.width=v.height,v.height=h},y=function(v){v.nodes().forEach(function(h){M(v.node(h))}),v.edges().forEach(function(h){var d,_=v.edge(h);(d=_.points)===null||d===void 0||d.forEach(function(p){return M(p)}),_.hasOwnProperty("y")&&M(_)})},M=function(v){(v==null?void 0:v.y)&&(v.y=-v.y)},w=function(v){v.nodes().forEach(function(h){m(v.node(h))}),v.edges().forEach(function(h){var d,_=v.edge(h);(d=_.points)===null||d===void 0||d.forEach(function(p){return m(p)}),_.hasOwnProperty("x")&&m(_)})},m=function(v){var h=v.x;v.x=v.y,v.y=h};N.default={adjust:o,undo:x}},93714:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o=function(y,M){if(y!=="next"&&y!=="prev")return M},x=function(y){y.prev.next=y.next,y.next.prev=y.prev,delete y.next,delete y.prev},g=function(){function A(){var y={};y.prev=y,y.next=y.prev,this.shortcut=y}return A.prototype.dequeue=function(){var y=this.shortcut,M=y.prev;if(M&&M!==y)return x(M),M},A.prototype.enqueue=function(y){var M=this.shortcut;y.prev&&y.next&&x(y),y.next=M.next,M.next.prev=y,M.next=y,y.prev=M},A.prototype.toString=function(){for(var y=[],M=this.shortcut,w=M.prev;w!==M;)y.push(JSON.stringify(w,o)),w=w==null?void 0:w.prev;return"[".concat(y.join(", "),"]")},A}();N.default=g},78379:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var p=function(k,O){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,D){F.__proto__=D}||function(F,D){for(var Z in D)Object.prototype.hasOwnProperty.call(D,Z)&&(F[Z]=D[Z])},p(k,O)};return function(S,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");p(S,k);function O(){this.constructor=S}S.prototype=k===null?Object.create(k):(O.prototype=k.prototype,new O)}}(),g=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(N,"__esModule",{value:!0});var A=g(o(93714)),y=o(96181),M=function(p){x(S,p);function S(){return p!==null&&p.apply(this,arguments)||this}return S}(A.default),w=function(p){x(S,p);function S(){return p!==null&&p.apply(this,arguments)||this}return S}(y.Graph),m=function(){return 1},b=function(S,k){var O;if(S.nodeCount()<=1)return[];var F=d(S,k||m),D=v(F.graph,F.buckets,F.zeroIdx);return(O=D.map(function(Z){return S.outEdges(Z.v,Z.w)}))===null||O===void 0?void 0:O.flat()},v=function(S,k,O){for(var F=[],D=k[k.length-1],Z=k[0],W;S.nodeCount();){for(;W=Z.dequeue();)h(S,k,O,W);for(;W=D.dequeue();)h(S,k,O,W);if(S.nodeCount()){for(var U=k.length-2;U>0;--U)if(W=k[U].dequeue(),W){F=F.concat(h(S,k,O,W,!0));break}}}return F},h=function(S,k,O,F,D){var Z,W,U=[];return(Z=S.inEdges(F.v))===null||Z===void 0||Z.forEach(function(L){var V=S.edge(L),$=S.node(L.v);D&&U.push({v:L.v,w:L.w,in:0,out:0}),$.out===void 0&&($.out=0),$.out-=V,_(k,O,$)}),(W=S.outEdges(F.v))===null||W===void 0||W.forEach(function(L){var V=S.edge(L),$=L.w,G=S.node($);G.in===void 0&&(G.in=0),G.in-=V,_(k,O,G)}),S.removeNode(F.v),D?U:void 0},d=function(S,k){var O=new w,F=0,D=0;S.nodes().forEach(function(V){O.setNode(V,{v:V,in:0,out:0})}),S.edges().forEach(function(V){var $=O.edge(V)||0,G=(k==null?void 0:k(V))||1,z=$+G;O.setEdge(V.v,V.w,z),D=Math.max(D,O.node(V.v).out+=G),F=Math.max(F,O.node(V.w).in+=G)});for(var Z=[],W=D+F+3,U=0;U<W;U++)Z.push(new M);var L=F+1;return O.nodes().forEach(function(V){_(Z,L,O.node(V))}),{buckets:Z,zeroIdx:L,graph:O}},_=function(S,k,O){O.out?O.in?S[O.out-O.in+k].enqueue(O):S[S.length-1].enqueue(O):S[0].enqueue(O)};N.default=b},9211:function(oe,N,o){"use strict";var x=this&&this.__assign||function(){return x=Object.assign||function(Je){for(var ke,De=1,Fe=arguments.length;De<Fe;De++){ke=arguments[De];for(var Qe in ke)Object.prototype.hasOwnProperty.call(ke,Qe)&&(Je[Qe]=ke[Qe])}return Je},x.apply(this,arguments)},g=this&&this.__importDefault||function(Je){return Je&&Je.__esModule?Je:{default:Je}};Object.defineProperty(N,"__esModule",{value:!0});var A=g(o(61258)),y=g(o(81365)),M=g(o(80117)),w=o(28963),m=g(o(36033)),b=g(o(90497)),v=g(o(74385)),h=g(o(96439)),d=g(o(32270)),_=g(o(81041)),p=g(o(48245)),S=o(97434),k=function(ke,De){var Fe=De&&De.debugTiming?w.time:w.notime;Fe("layout",function(){De&&!De.keepNodeOrder&&De.prevGraph&&Fe(" inheritOrder",function(){F(ke,De.prevGraph)});var Qe=Fe(" buildLayoutGraph",function(){return K(ke)});De&&De.edgeLabelSpace===!1||Fe(" makeSpaceForEdgeLabels",function(){re(Qe)});try{Fe(" runLayout",function(){O(Qe,Fe,De)})}catch(qe){if(qe.message==="Not possible to find intersection inside of the rectangle"){console.error(`The following error may be caused by improper layer setting, please make sure your manual layer setting does not violate the graph's structure:
|
||
`,qe);return}throw qe}Fe(" updateInputGraph",function(){D(ke,Qe)})})},O=function(ke,De,Fe){De(" removeSelfEdges",function(){we(ke)}),De(" acyclic",function(){A.default.run(ke)}),De(" nestingGraph.run",function(){b.default.run(ke)}),De(" rank",function(){(0,M.default)((0,w.asNonCompoundGraph)(ke))}),De(" injectEdgeLabelProxies",function(){ne(ke)}),De(" removeEmptyRanks",function(){(0,w.removeEmptyRanks)(ke)}),De(" nestingGraph.cleanup",function(){b.default.cleanup(ke)}),De(" normalizeRanks",function(){(0,w.normalizeRanks)(ke)}),De(" assignRankMinMax",function(){Q(ke)}),De(" removeEdgeLabelProxies",function(){ue(ke)}),De(" normalize.run",function(){y.default.run(ke)}),De(" parentDummyChains",function(){(0,m.default)(ke)}),De(" addBorderSegments",function(){(0,v.default)(ke)}),Fe&&Fe.keepNodeOrder&&De(" initDataOrder",function(){(0,p.default)(ke,Fe.nodeOrder)}),De(" order",function(){(0,d.default)(ke,Fe==null?void 0:Fe.keepNodeOrder)}),De(" insertSelfEdges",function(){me(ke)}),De(" adjustCoordinateSystem",function(){h.default.adjust(ke)}),De(" position",function(){(0,_.default)(ke)}),De(" positionSelfEdges",function(){Pe(ke)}),De(" removeBorderNodes",function(){fe(ke)}),De(" normalize.undo",function(){y.default.undo(ke)}),De(" fixupEdgeLabelCoords",function(){ce(ke)}),De(" undoCoordinateSystem",function(){h.default.undo(ke)}),De(" translateGraph",function(){he(ke)}),De(" assignNodeIntersects",function(){Ee(ke)}),De(" reversePoints",function(){ve(ke)}),De(" acyclic.undo",function(){A.default.undo(ke)})},F=function(ke,De){ke.nodes().forEach(function(Fe){var Qe=ke.node(Fe),qe=De.node(Fe);qe!==void 0?(Qe.fixorder=qe._order,delete qe._order):delete Qe.fixorder})},D=function(ke,De){ke.nodes().forEach(function(Fe){var Qe,qe=ke.node(Fe);if(qe){var et=De.node(Fe);qe.x=et.x,qe.y=et.y,qe._order=et.order,qe._rank=et.rank,((Qe=De.children(Fe))===null||Qe===void 0?void 0:Qe.length)&&(qe.width=et.width,qe.height=et.height)}}),ke.edges().forEach(function(Fe){var Qe=ke.edge(Fe),qe=De.edge(Fe);Qe.points=qe?qe.points:[],qe&&qe.hasOwnProperty("x")&&(Qe.x=qe.x,Qe.y=qe.y)}),ke.graph().width=De.graph().width,ke.graph().height=De.graph().height},Z=["nodesep","edgesep","ranksep","marginx","marginy"],W={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},U=["acyclicer","ranker","rankdir","align"],L=["width","height","layer","fixorder"],V={width:0,height:0},$=["minlen","weight","width","height","labeloffset"],G={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},z=["labelpos"],K=function(ke){var De=new S.Graph({multigraph:!0,compound:!0}),Fe=Ie(ke.graph()),Qe={};return U==null||U.forEach(function(qe){Fe[qe]!==void 0&&(Qe[qe]=Fe[qe])}),De.setGraph(Object.assign({},W,pe(Fe,Z),Qe)),ke.nodes().forEach(function(qe){var et=Ie(ke.node(qe)),dt=x(x({},V),et),Ke=pe(dt,L);De.setNode(qe,Ke),De.setParent(qe,ke.parent(qe))}),ke.edges().forEach(function(qe){var et=Ie(ke.edge(qe)),dt={};z==null||z.forEach(function(Ke){et[Ke]!==void 0&&(dt[Ke]=et[Ke])}),De.setEdgeObj(qe,Object.assign({},G,pe(et,$),dt))}),De},re=function(ke){var De=ke.graph();De.ranksep||(De.ranksep=0),De.ranksep/=2,ke.nodes().forEach(function(Fe){var Qe=ke.node(Fe);isNaN(Qe.layer)||Qe.layer||(Qe.layer=0)}),ke.edges().forEach(function(Fe){var Qe,qe=ke.edge(Fe);qe.minlen*=2,((Qe=qe.labelpos)===null||Qe===void 0?void 0:Qe.toLowerCase())!=="c"&&(De.rankdir==="TB"||De.rankdir==="BT"?qe.width+=qe.labeloffset:qe.height+=qe.labeloffset)})},ne=function(ke){ke.edges().forEach(function(De){var Fe=ke.edge(De);if(Fe.width&&Fe.height){var Qe=ke.node(De.v),qe=ke.node(De.w),et={e:De,rank:(qe.rank-Qe.rank)/2+Qe.rank};(0,w.addDummyNode)(ke,"edge-proxy",et,"_ep")}})},Q=function(ke){var De=0;ke.nodes().forEach(function(Fe){var Qe,qe,et=ke.node(Fe);et.borderTop&&(et.minRank=(Qe=ke.node(et.borderTop))===null||Qe===void 0?void 0:Qe.rank,et.maxRank=(qe=ke.node(et.borderBottom))===null||qe===void 0?void 0:qe.rank,De=Math.max(De,et.maxRank||-Infinity))}),ke.graph().maxRank=De},ue=function(ke){ke.nodes().forEach(function(De){var Fe=ke.node(De);Fe.dummy==="edge-proxy"&&(ke.edge(Fe.e).labelRank=Fe.rank,ke.removeNode(De))})},he=function(ke){var De,Fe=0,Qe,qe=0,et=ke.graph(),dt=et.marginx||0,Ke=et.marginy||0,Ge=function(Vt){if(!!Vt){var gt=Vt.x,it=Vt.y,Le=Vt.width,ct=Vt.height;!isNaN(gt)&&!isNaN(Le)&&(De===void 0&&(De=gt-Le/2),De=Math.min(De,gt-Le/2),Fe=Math.max(Fe,gt+Le/2)),!isNaN(it)&&!isNaN(ct)&&(Qe===void 0&&(Qe=it-ct/2),Qe=Math.min(Qe,it-ct/2),qe=Math.max(qe,it+ct/2))}};ke.nodes().forEach(function(wt){Ge(ke.node(wt))}),ke.edges().forEach(function(wt){var Vt=ke.edge(wt);(Vt==null?void 0:Vt.hasOwnProperty("x"))&&Ge(Vt)}),De-=dt,Qe-=Ke,ke.nodes().forEach(function(wt){var Vt=ke.node(wt);Vt&&(Vt.x-=De,Vt.y-=Qe)}),ke.edges().forEach(function(wt){var Vt,gt=ke.edge(wt);(Vt=gt.points)===null||Vt===void 0||Vt.forEach(function(it){it.x-=De,it.y-=Qe}),gt.hasOwnProperty("x")&&(gt.x-=De),gt.hasOwnProperty("y")&&(gt.y-=Qe)}),et.width=Fe-De+dt,et.height=qe-Qe+Ke},Ee=function(ke){ke.edges().forEach(function(De){var Fe=ke.edge(De),Qe=ke.node(De.v),qe=ke.node(De.w),et,dt;Fe.points?(et=Fe.points[0],dt=Fe.points[Fe.points.length-1]):(Fe.points=[],et=qe,dt=Qe),Fe.points.unshift((0,w.intersectRect)(Qe,et)),Fe.points.push((0,w.intersectRect)(qe,dt))})},ce=function(ke){ke.edges().forEach(function(De){var Fe=ke.edge(De);if(Fe==null?void 0:Fe.hasOwnProperty("x"))switch((Fe.labelpos==="l"||Fe.labelpos==="r")&&(Fe.width-=Fe.labeloffset),Fe.labelpos){case"l":Fe.x-=Fe.width/2+Fe.labeloffset;break;case"r":Fe.x+=Fe.width/2+Fe.labeloffset;break}})},ve=function(ke){ke.edges().forEach(function(De){var Fe,Qe=ke.edge(De);Qe.reversed&&((Fe=Qe.points)===null||Fe===void 0||Fe.reverse())})},fe=function(ke){ke.nodes().forEach(function(De){var Fe,Qe,qe;if((Fe=ke.children(De))===null||Fe===void 0?void 0:Fe.length){var et=ke.node(De),dt=ke.node(et.borderTop),Ke=ke.node(et.borderBottom),Ge=ke.node(et.borderLeft[((Qe=et.borderLeft)===null||Qe===void 0?void 0:Qe.length)-1]),wt=ke.node(et.borderRight[((qe=et.borderRight)===null||qe===void 0?void 0:qe.length)-1]);et.width=Math.abs((wt==null?void 0:wt.x)-(Ge==null?void 0:Ge.x))||10,et.height=Math.abs((Ke==null?void 0:Ke.y)-(dt==null?void 0:dt.y))||10,et.x=((Ge==null?void 0:Ge.x)||0)+et.width/2,et.y=((dt==null?void 0:dt.y)||0)+et.height/2}}),ke.nodes().forEach(function(De){var Fe;((Fe=ke.node(De))===null||Fe===void 0?void 0:Fe.dummy)==="border"&&ke.removeNode(De)})},we=function(ke){ke.edges().forEach(function(De){if(De.v===De.w){var Fe=ke.node(De.v);Fe.selfEdges||(Fe.selfEdges=[]),Fe.selfEdges.push({e:De,label:ke.edge(De)}),ke.removeEdgeObj(De)}})},me=function(ke){var De=(0,w.buildLayerMatrix)(ke);De==null||De.forEach(function(Fe){var Qe=0;Fe==null||Fe.forEach(function(qe,et){var dt,Ke=ke.node(qe);Ke.order=et+Qe,(dt=Ke.selfEdges)===null||dt===void 0||dt.forEach(function(Ge){(0,w.addDummyNode)(ke,"selfedge",{width:Ge.label.width,height:Ge.label.height,rank:Ke.rank,order:et+ ++Qe,e:Ge.e,label:Ge.label},"_se")}),delete Ke.selfEdges})})},Pe=function(ke){ke.nodes().forEach(function(De){var Fe=ke.node(De);if(Fe.dummy==="selfedge"){var Qe=ke.node(Fe.e.v),qe=Qe.x+Qe.width/2,et=Qe.y,dt=Fe.x-qe,Ke=Qe.height/2;ke.setEdgeObj(Fe.e,Fe.label),ke.removeNode(De),Fe.label.points=[{x:qe+2*dt/3,y:et-Ke},{x:qe+5*dt/6,y:et-Ke},{y:et,x:qe+dt},{x:qe+5*dt/6,y:et+Ke},{x:qe+2*dt/3,y:et+Ke}],Fe.label.x=Fe.x,Fe.label.y=Fe.y}})},pe=function(ke,De){var Fe={};return De==null||De.forEach(function(Qe){ke[Qe]!==void 0&&(Fe[Qe]=+ke[Qe])}),Fe},Ie=function(ke){ke===void 0&&(ke={});var De={};return Object.keys(ke).forEach(function(Fe){De[Fe.toLowerCase()]=ke[Fe]}),De};N.default=k},90497:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var x=o(28963),g=function(b){var v,h=(0,x.addDummyNode)(b,"root",{},"_root"),d=y(b),_=Math.max.apply(Math,Object.values(d));Math.abs(_)===Infinity&&(_=1);var p=_-1,S=2*p+1;b.graph().nestingRoot=h,b.edges().forEach(function(O){b.edge(O).minlen*=S});var k=M(b)+1;(v=b.children())===null||v===void 0||v.forEach(function(O){A(b,h,S,k,p,d,O)}),b.graph().nodeRankFactor=S},A=function m(b,v,h,d,_,p,S){var k=b.children(S);if(!(k==null?void 0:k.length)){S!==v&&b.setEdge(v,S,{weight:0,minlen:h});return}var O=(0,x.addBorderNode)(b,"_bt"),F=(0,x.addBorderNode)(b,"_bb"),D=b.node(S);b.setParent(O,S),D.borderTop=O,b.setParent(F,S),D.borderBottom=F,k==null||k.forEach(function(Z){m(b,v,h,d,_,p,Z);var W=b.node(Z),U=W.borderTop?W.borderTop:Z,L=W.borderBottom?W.borderBottom:Z,V=W.borderTop?d:2*d,$=U!==L?1:_-p[S]+1;b.setEdge(O,U,{minlen:$,weight:V,nestingEdge:!0}),b.setEdge(L,F,{minlen:$,weight:V,nestingEdge:!0})}),b.parent(S)||b.setEdge(v,O,{weight:0,minlen:_+p[S]})},y=function(b){var v,h={},d=function _(p,S){var k=b.children(p);k==null||k.forEach(function(O){return _(O,S+1)}),h[p]=S};return(v=b.children())===null||v===void 0||v.forEach(function(_){return d(_,1)}),h},M=function(b){var v=0;return b.edges().forEach(function(h){v+=b.edge(h).weight}),v},w=function(b){var v=b.graph();v.nestingRoot&&b.removeNode(v.nestingRoot),delete v.nestingRoot,b.edges().forEach(function(h){var d=b.edge(h);d.nestingEdge&&b.removeEdgeObj(h)})};N.default={run:g,cleanup:w}},81365:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var x=o(28963),g=function(w){w.graph().dummyChains=[],w.edges().forEach(function(m){return A(w,m)})},A=function(w,m){var b=m.v,v=w.node(b).rank,h=m.w,d=w.node(h).rank,_=m.name,p=w.edge(m),S=p.labelRank;if(d!==v+1){w.removeEdgeObj(m);var k=w.graph(),O,F,D;for(D=0,++v;v<d;++D,++v)p.points=[],F={edgeLabel:p,width:0,height:0,edgeObj:m,rank:v},O=(0,x.addDummyNode)(w,"edge",F,"_d"),v===S&&(F.width=p.width,F.height=p.height,F.dummy="edge-label",F.labelpos=p.labelpos),w.setEdge(b,O,{weight:p.weight},_),D===0&&(k.dummyChains||(k.dummyChains=[]),k.dummyChains.push(O)),b=O;w.setEdge(b,h,{weight:p.weight},_)}},y=function(w){var m;(m=w.graph().dummyChains)===null||m===void 0||m.forEach(function(b){var v=w.node(b),h=v.edgeLabel,d;v.edgeObj&&w.setEdgeObj(v.edgeObj,h);for(var _=b;v.dummy;)d=w.successors(_)[0],w.removeNode(_),h.points.push({x:v.x,y:v.y}),v.dummy==="edge-label"&&(h.x=v.x,h.y=v.y,h.width=v.width,h.height=v.height),_=d,v=w.node(_)})};N.default={run:g,undo:y}},79427:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o=function(g,A,y){var M={},w;y==null||y.forEach(function(m){for(var b=g.parent(m),v,h;b;){if(v=g.parent(b),v?(h=M[v],M[v]=b):(h=w,w=b),h&&h!==b){A.setEdge(h,b);return}b=v}})};N.default=o},34366:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o=function(g,A){return A.map(function(y){var M=g.inEdges(y);if(!(M==null?void 0:M.length))return{v:y};{var w={sum:0,weight:0};return M==null||M.forEach(function(m){var b=g.edge(m),v=g.node(m.v);w.sum+=b.weight*v.order,w.weight+=b.weight}),{v:y,barycenter:w.sum/w.weight,weight:w.weight}}})};N.default=o},46167:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var x=o(97434),g=function(M,w,m){var b=A(M),v=new x.Graph({compound:!0}).setGraph({root:b}).setDefaultNodeLabel(function(h){return M.node(h)});return M.nodes().forEach(function(h){var d,_=M.node(h),p=M.parent(h);(_.rank===w||_.minRank<=w&&w<=_.maxRank)&&(v.setNode(h),v.setParent(h,p||b),(d=M[m](h))===null||d===void 0||d.forEach(function(S){var k=S.v===h?S.w:S.v,O=v.edgeFromArgs(k,h),F=O!==void 0?O.weight:0;v.setEdge(k,h,{weight:M.edge(S).weight+F})}),_.hasOwnProperty("minRank")&&v.setNode(h,{borderLeft:_.borderLeft[w],borderRight:_.borderRight[w]}))}),v},A=function(M){for(var w;M.hasNode(w="_root".concat(Math.random())););return w};N.default=g},76318:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var x=o(28963),g=function(M,w,m){for(var b=(0,x.zipObject)(m,m.map(function(k,O){return O})),v=w.map(function(k){var O,F=(O=M.outEdges(k))===null||O===void 0?void 0:O.map(function(D){return{pos:b[D.w]||0,weight:M.edge(D).weight}});return F==null?void 0:F.sort(function(D,Z){return D.pos-Z.pos})}),h=v.flat().filter(function(k){return k!==void 0}),d=1;d<m.length;)d<<=1;var _=2*d-1;d-=1;var p=Array(_).fill(0,0,_),S=0;return h==null||h.forEach(function(k){if(k){var O=k.pos+d;p[O]+=k.weight;for(var F=0;O>0;)O%2&&(F+=p[O+1]),O=O-1>>1,p[O]+=k.weight;S+=k.weight*F}}),S},A=function(M,w){for(var m=0,b=1;b<(w==null?void 0:w.length);b+=1)m+=g(M,w[b-1],w[b]);return m};N.default=A},32270:function(oe,N,o){"use strict";var x=this&&this.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(N,"__esModule",{value:!0});var g=x(o(93762)),A=x(o(76318)),y=x(o(46167)),M=x(o(79427)),w=x(o(82897)),m=o(74788),b=o(97434),v=o(28963),h=function(k,O){for(var F=(0,v.maxRank)(k),D=[],Z=[],W=1;W<F+1;W++)D.push(W);for(var W=F-1;W>-1;W--)Z.push(W);var U=d(k,D,"inEdges"),L=d(k,Z,"outEdges"),V=(0,g.default)(k);p(k,V);for(var $=Number.POSITIVE_INFINITY,G,W=0,z=0;z<4;++W,++z){_(W%2?U:L,W%4>=2,!1,O),V=(0,v.buildLayerMatrix)(k);var K=(0,A.default)(k,V);K<$&&(z=0,G=(0,m.clone)(V),$=K)}V=(0,g.default)(k),p(k,V);for(var W=0,z=0;z<4;++W,++z){_(W%2?U:L,W%4>=2,!0,O),V=(0,v.buildLayerMatrix)(k);var K=(0,A.default)(k,V);K<$&&(z=0,G=(0,m.clone)(V),$=K)}p(k,G)},d=function(k,O,F){return O.map(function(D){return(0,y.default)(k,D,F)})},_=function(k,O,F,D){var Z=new b.Graph;k==null||k.forEach(function(W){for(var U,L=W.graph().root,V=(0,w.default)(W,L,Z,O,F,D),$=0;$<((U=V.vs)===null||U===void 0?void 0:U.length);$++){var G=W.node(V.vs[$]);G&&(G.order=$)}(0,M.default)(W,Z,V.vs)})},p=function(k,O){O==null||O.forEach(function(F){F==null||F.forEach(function(D,Z){k.node(D).order=Z})})};N.default=h},48245:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o=function(g,A){for(var y=g.nodes().filter(function(v){var h;return!((h=g.children(v))===null||h===void 0?void 0:h.length)}),M=y.map(function(v){return g.node(v).rank}),w=Math.max.apply(Math,M),m=[],b=0;b<w+1;b++)m[b]=[];A==null||A.forEach(function(v){var h=g.node(v);!h||(h==null?void 0:h.dummy)||isNaN(h.rank)||(h.fixorder=m[h.rank].length,m[h.rank].push(v))})};N.default=o},93762:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var x=o(73696),g=function(y){for(var M={},w=y.nodes().filter(function(k){var O;return!((O=y.children(k))===null||O===void 0?void 0:O.length)}),m=w.map(function(k){return y.node(k).rank}),b=(0,x.max)(m),v=[],h=0;h<b+1;h++)v.push([]);var d=function k(O){var F;if(!M.hasOwnProperty(O)){M[O]=!0;var D=y.node(O);isNaN(D.rank)||v[D.rank].push(O),(F=y.successors(O))===null||F===void 0||F.forEach(function(Z){return k(Z)})}},_=w.sort(function(k,O){return y.node(k).rank-y.node(O).rank}),p=_.filter(function(k){return y.node(k).fixorder!==void 0}),S=p.sort(function(k,O){return y.node(k).fixorder-y.node(O).fixorder});return S==null||S.forEach(function(k){isNaN(y.node(k).rank)||v[y.node(k).rank].push(k),M[k]=!0}),_==null||_.forEach(d),v};N.default=g},49118:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o=function(y,M){var w,m,b,v={};y==null||y.forEach(function(d,_){v[d.v]={i:_,indegree:0,in:[],out:[],vs:[d.v]};var p=v[d.v];d.barycenter!==void 0&&(p.barycenter=d.barycenter,p.weight=d.weight)}),(w=M.edges())===null||w===void 0||w.forEach(function(d){var _=v[d.v],p=v[d.w];_!==void 0&&p!==void 0&&(p.indegree++,_.out.push(v[d.w]))});var h=(b=(m=Object.values(v)).filter)===null||b===void 0?void 0:b.call(m,function(d){return!d.indegree});return x(h)},x=function(y){for(var M,w,m=[],b=function(S){return function(k){k.merged||(k.barycenter===void 0||S.barycenter===void 0||k.barycenter>=S.barycenter)&&g(S,k)}},v=function(S){return function(k){k.in.push(S),--k.indegree==0&&y.push(k)}},h=function(){var S=y.pop();m.push(S),(M=S.in.reverse())===null||M===void 0||M.forEach(function(k){return b(S)(k)}),(w=S.out)===null||w===void 0||w.forEach(function(k){return v(S)(k)})};y==null?void 0:y.length;)h();var d=m.filter(function(p){return!p.merged}),_=["vs","i","barycenter","weight"];return d.map(function(p){var S={};return _==null||_.forEach(function(k){p[k]!==void 0&&(S[k]=p[k])}),S})},g=function(y,M){var w,m=0,b=0;y.weight&&(m+=y.barycenter*y.weight,b+=y.weight),M.weight&&(m+=M.barycenter*M.weight,b+=M.weight),y.vs=(w=M.vs)===null||w===void 0?void 0:w.concat(y.vs),y.barycenter=m/b,y.weight=b,y.i=Math.min(M.i,y.i),M.merged=!0};N.default=o},82897:function(oe,N,o){"use strict";var x=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(N,"__esModule",{value:!0});var g=x(o(34366)),A=x(o(49118)),y=x(o(14895)),M=function b(v,h,d,_,p,S){var k,O,F,D,Z=v.children(h),W=v.node(h),U=W?W.borderLeft:void 0,L=W?W.borderRight:void 0,V={};U&&(Z=Z==null?void 0:Z.filter(function(ne){return ne!==U&&ne!==L}));var $=(0,g.default)(v,Z||[]);$==null||$.forEach(function(ne){var Q;if((Q=v.children(ne.v))===null||Q===void 0?void 0:Q.length){var ue=b(v,ne.v,d,_,S);V[ne.v]=ue,ue.hasOwnProperty("barycenter")&&m(ne,ue)}});var G=(0,A.default)($,d);w(G,V),(k=G.filter(function(ne){return ne.vs.length>0}))===null||k===void 0||k.forEach(function(ne){var Q=v.node(ne.vs[0]);Q&&(ne.fixorder=Q.fixorder,ne.order=Q.order)});var z=(0,y.default)(G,_,p,S);if(U&&(z.vs=[U,z.vs,L].flat(),(O=v.predecessors(U))===null||O===void 0?void 0:O.length)){var K=v.node(((F=v.predecessors(U))===null||F===void 0?void 0:F[0])||""),re=v.node(((D=v.predecessors(L))===null||D===void 0?void 0:D[0])||"");z.hasOwnProperty("barycenter")||(z.barycenter=0,z.weight=0),z.barycenter=(z.barycenter*z.weight+K.order+re.order)/(z.weight+2),z.weight+=2}return z},w=function(v,h){v==null||v.forEach(function(d){var _,p=(_=d.vs)===null||_===void 0?void 0:_.map(function(S){return h[S]?h[S].vs:S});d.vs=p.flat()})},m=function(v,h){v.barycenter!==void 0?(v.barycenter=(v.barycenter*v.weight+h.barycenter*h.weight)/(v.weight+h.weight),v.weight+=h.weight):(v.barycenter=h.barycenter,v.weight=h.weight)};N.default=M},14895:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var x=o(28963),g=function(w,m,b,v){var h=(0,x.partition)(w,function(D){var Z=D.hasOwnProperty("fixorder")&&!isNaN(D.fixorder);return v?!Z&&D.hasOwnProperty("barycenter"):Z||D.hasOwnProperty("barycenter")}),d=h.lhs,_=h.rhs.sort(function(D,Z){return-D.i- -Z.i}),p=[],S=0,k=0,O=0;d==null||d.sort(y(!!m,!!b)),O=A(p,_,O),d==null||d.forEach(function(D){var Z;O+=(Z=D.vs)===null||Z===void 0?void 0:Z.length,p.push(D.vs),S+=D.barycenter*D.weight,k+=D.weight,O=A(p,_,O)});var F={vs:p.flat()};return k&&(F.barycenter=S/k,F.weight=k),F},A=function(w,m,b){for(var v=b,h;m.length&&(h=m[m.length-1]).i<=v;)m.pop(),w==null||w.push(h.vs),v++;return v},y=function(w,m){return function(b,v){if(b.fixorder!==void 0&&v.fixorder!==void 0)return b.fixorder-v.fixorder;if(b.barycenter<v.barycenter)return-1;if(b.barycenter>v.barycenter)return 1;if(m&&b.order!==void 0&&v.order!==void 0){if(b.order<v.order)return-1;if(b.order>v.order)return 1}return w?v.i-b.i:b.i-v.i}};N.default=g},36033:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o=function(y){var M,w={},m=0,b=function v(h){var d,_=m;(d=y.children(h))===null||d===void 0||d.forEach(v),w[h]={low:_,lim:m++}};return(M=y.children())===null||M===void 0||M.forEach(b),w},x=function(y,M,w,m){var b=[],v=[],h=Math.min(M[w].low,M[m].low),d=Math.max(M[w].lim,M[m].lim),_,p;_=w;do _=y.parent(_),b.push(_);while(_&&(M[_].low>h||d>M[_].lim));for(p=_,_=m;_&&_!==p;)v.push(_),_=y.parent(_);return{lca:p,path:b.concat(v.reverse())}},g=function(y){var M,w=o(y);(M=y.graph().dummyChains)===null||M===void 0||M.forEach(function(m){var b,v,h=m,d=y.node(h),_=d.edgeObj;if(!!_)for(var p=x(y,w,_.v,_.w),S=p.path,k=p.lca,O=0,F=S[O],D=!0;h!==_.w;){if(d=y.node(h),D){for(;F!==k&&((b=y.node(F))===null||b===void 0?void 0:b.maxRank)<d.rank;)O++,F=S[O];F===k&&(D=!1)}if(!D){for(;O<S.length-1&&((v=y.node(S[O+1]))===null||v===void 0?void 0:v.minRank)<=d.rank;)O++;F=S[O]}y.setParent(h,F),h=y.successors(h)[0]}})};N.default=g},6760:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var W=function(L,V){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,G){$.__proto__=G}||function($,G){for(var z in G)Object.prototype.hasOwnProperty.call(G,z)&&($[z]=G[z])},W(L,V)};return function(U,L){if(typeof L!="function"&&L!==null)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");W(U,L);function V(){this.constructor=U}U.prototype=L===null?Object.create(L):(V.prototype=L.prototype,new V)}}();Object.defineProperty(N,"__esModule",{value:!0}),N.width=N.sep=N.positionX=N.balance=N.alignCoordinates=N.findSmallestWidthAlignment=N.buildBlockGraph=N.horizontalCompaction=N.verticalAlignment=N.hasConflict=N.addConflict=N.findOtherInnerSegmentNode=N.findType2Conflicts=N.findType1Conflicts=void 0;var g=o(96181),A=o(73696),y=o(28963),M=function(W){x(U,W);function U(){return W!==null&&W.apply(this,arguments)||this}return U}(g.Graph),w=function(U,L){var V={},$=function(z,K){var re=0,ne=0,Q=z.length,ue=K==null?void 0:K[(K==null?void 0:K.length)-1];return K==null||K.forEach(function(he,Ee){var ce,ve=(0,N.findOtherInnerSegmentNode)(U,he),fe=ve?U.node(ve).order:Q;(ve||he===ue)&&((ce=K.slice(ne,Ee+1))===null||ce===void 0||ce.forEach(function(we){var me;(me=U.predecessors(we))===null||me===void 0||me.forEach(function(Pe){var pe,Ie=U.node(Pe),Je=Ie.order;(Je<re||fe<Je)&&!(Ie.dummy&&((pe=U.node(we))===null||pe===void 0?void 0:pe.dummy))&&(0,N.addConflict)(V,Pe,we)})}),ne=Ee+1,re=fe)}),K};return(L==null?void 0:L.length)&&L.reduce($),V};N.findType1Conflicts=w;var m=function(U,L){var V={};function $(re,ne,Q,ue,he){for(var Ee,ce,ve,fe=ne;fe<Q;fe++)ve=re[fe],((Ee=U.node(ve))===null||Ee===void 0?void 0:Ee.dummy)&&((ce=U.predecessors(ve))===null||ce===void 0||ce.forEach(function(we){var me=U.node(we);me.dummy&&(me.order<ue||me.order>he)&&(0,N.addConflict)(V,we,ve)}))}function G(re){return JSON.stringify(re.slice(1))}function z(re,ne){var Q=G(re);ne.get(Q)||($.apply(void 0,re),ne.set(Q,!0))}var K=function(ne,Q){var ue=-1,he,Ee=0,ce=new Map;return Q==null||Q.forEach(function(ve,fe){var we;if(((we=U.node(ve))===null||we===void 0?void 0:we.dummy)==="border"){var me=U.predecessors(ve)||[];me.length&&(he=U.node(me[0]).order,z([Q,Ee,fe,ue,he],ce),Ee=fe,ue=he)}z([Q,Ee,Q.length,he,ne.length],ce)}),Q};return(L==null?void 0:L.length)&&L.reduce(K),V};N.findType2Conflicts=m;var b=function(U,L){var V,$;if((V=U.node(L))===null||V===void 0?void 0:V.dummy)return($=U.predecessors(L))===null||$===void 0?void 0:$.find(function(G){return U.node(G).dummy})};N.findOtherInnerSegmentNode=b;var v=function(U,L,V){var $=L,G=V;if($>G){var z=$;$=G,G=z}var K=U[$];K||(U[$]=K={}),K[G]=!0};N.addConflict=v;var h=function(U,L,V){var $=L,G=V;if($>G){var z=L;$=G,G=z}return!!U[$]};N.hasConflict=h;var d=function(U,L,V,$){var G={},z={},K={};return L==null||L.forEach(function(re){re==null||re.forEach(function(ne,Q){G[ne]=ne,z[ne]=ne,K[ne]=Q})}),L==null||L.forEach(function(re){var ne=-1;re==null||re.forEach(function(Q){var ue=$(Q);if(ue.length){ue=ue.sort(function(fe,we){return K[fe]-K[we]});for(var he=(ue.length-1)/2,Ee=Math.floor(he),ce=Math.ceil(he);Ee<=ce;++Ee){var ve=ue[Ee];z[Q]===Q&&ne<K[ve]&&!(0,N.hasConflict)(V,Q,ve)&&(z[ve]=Q,z[Q]=G[Q]=G[ve],ne=K[ve])}}})}),{root:G,align:z}};N.verticalAlignment=d;var _=function(U,L,V,$,G){var z,K={},re=(0,N.buildBlockGraph)(U,L,V,G),ne=G?"borderLeft":"borderRight",Q=function(ce,ve){for(var fe=re.nodes(),we=fe.pop(),me={};we;)me[we]?ce(we):(me[we]=!0,fe.push(we),fe=fe.concat(ve(we))),we=fe.pop()},ue=function(ce){K[ce]=(re.inEdges(ce)||[]).reduce(function(ve,fe){return Math.max(ve,(K[fe.v]||0)+re.edge(fe))},0)},he=function(ce){var ve=(re.outEdges(ce)||[]).reduce(function(we,me){return Math.min(we,(K[me.w]||0)-re.edge(me))},Number.POSITIVE_INFINITY),fe=U.node(ce);ve!==Number.POSITIVE_INFINITY&&fe.borderType!==ne&&(K[ce]=Math.max(K[ce],ve))};return Q(ue,re.predecessors.bind(re)),Q(he,re.successors.bind(re)),(z=Object.values($))===null||z===void 0||z.forEach(function(Ee){K[Ee]=K[V[Ee]]}),K};N.horizontalCompaction=_;var p=function(U,L,V,$){var G=new M,z=U.graph(),K=(0,N.sep)(z.nodesep,z.edgesep,$);return L==null||L.forEach(function(re){var ne;re==null||re.forEach(function(Q){var ue=V[Q];if(G.setNode(ue),ne){var he=V[ne],Ee=G.edgeFromArgs(he,ue);G.setEdge(he,ue,Math.max(K(U,Q,ne),Ee||0))}ne=Q})}),G};N.buildBlockGraph=p;var S=function(U,L){return(0,y.minBy)(Object.values(L),function(V){var $,G=Number.NEGATIVE_INFINITY,z=Number.POSITIVE_INFINITY;return($=Object.keys(V))===null||$===void 0||$.forEach(function(K){var re=V[K],ne=(0,N.width)(U,K)/2;G=Math.max(re+ne,G),z=Math.min(re-ne,z)}),G-z})};N.findSmallestWidthAlignment=S;function k(W,U){var L=Object.values(U),V=(0,A.min)(L),$=(0,A.max)(L);["u","d"].forEach(function(G){["l","r"].forEach(function(z){var K=G+z,re=W[K],ne;if(re!==U){var Q=Object.values(re);ne=z==="l"?V-(0,A.min)(Q):$-(0,A.max)(Q),ne&&(W[K]={},Object.keys(re).forEach(function(ue){W[K][ue]=re[ue]+ne}))}})})}N.alignCoordinates=k;var O=function(U,L){var V={};return Object.keys(U.ul).forEach(function($){if(L)V[$]=U[L.toLowerCase()][$];else{var G=Object.values(U).map(function(z){return z[$]});V[$]=(G[0]+G[1])/2}}),V};N.balance=O;var F=function(U){var L=(0,y.buildLayerMatrix)(U),V=Object.assign((0,N.findType1Conflicts)(U,L),(0,N.findType2Conflicts)(U,L)),$={},G;["u","d"].forEach(function(K){G=K==="u"?L:Object.values(L).reverse(),["l","r"].forEach(function(re){re==="r"&&(G=G.map(function(he){return Object.values(he).reverse()}));var ne=(K==="u"?U.predecessors:U.successors).bind(U),Q=(0,N.verticalAlignment)(U,G,V,ne),ue=(0,N.horizontalCompaction)(U,G,Q.root,Q.align,re==="r");re==="r"&&Object.keys(ue).forEach(function(he){ue[he]=-ue[he]}),$[K+re]=ue})});var z=(0,N.findSmallestWidthAlignment)(U,$);return k($,z),(0,N.balance)($,U.graph().align)};N.positionX=F;var D=function(U,L,V){return function($,G,z){var K=$.node(G),re=$.node(z),ne=0,Q;if(ne+=K.width/2,K.hasOwnProperty("labelpos"))switch((K.labelpos||"").toLowerCase()){case"l":Q=-K.width/2;break;case"r":Q=K.width/2;break}if(Q&&(ne+=V?Q:-Q),Q=0,ne+=(K.dummy?L:U)/2,ne+=(re.dummy?L:U)/2,ne+=re.width/2,re.labelpos)switch((re.labelpos||"").toLowerCase()){case"l":Q=re.width/2;break;case"r":Q=-re.width/2;break}return Q&&(ne+=V?Q:-Q),Q=0,ne}};N.sep=D;var Z=function(U,L){return U.node(L).width||0};N.width=Z},81041:function(oe,N,o){"use strict";var x=this&&this.__spreadArray||function(m,b,v){if(v||arguments.length===2)for(var h=0,d=b.length,_;h<d;h++)(_||!(h in b))&&(_||(_=Array.prototype.slice.call(b,0,h)),_[h]=b[h]);return m.concat(_||Array.prototype.slice.call(b))};Object.defineProperty(N,"__esModule",{value:!0});var g=o(28963),A=o(6760),y=function(b){var v=(0,g.buildLayerMatrix)(b),h=b.graph().ranksep,d=0;v==null||v.forEach(function(_){var p=_.map(function(k){return b.node(k).height}),S=Math.max.apply(Math,x(x([],p,!1),[0],!1));_==null||_.forEach(function(k){b.node(k).y=d+S/2}),d+=S+h})},M=function(b){var v=(0,g.buildLayerMatrix)(b),h=Object.assign((0,A.findType1Conflicts)(b,v),(0,A.findType2Conflicts)(b,v)),d={},_=[];["u","d"].forEach(function(S){_=S==="u"?v:Object.values(v).reverse(),["l","r"].forEach(function(k){k==="r"&&(_=_.map(function(Z){return Object.values(Z).reverse()}));var O=(S==="u"?b.predecessors:b.successors).bind(b),F=(0,A.verticalAlignment)(b,_,h,O),D=(0,A.horizontalCompaction)(b,_,F.root,F.align,k==="r");k==="r"&&Object.keys(D).forEach(function(Z){return D[Z]=-D[Z]}),d[S+k]=D})});var p=(0,A.findSmallestWidthAlignment)(b,d);return p&&(0,A.alignCoordinates)(d,p),(0,A.balance)(d,b.graph().align)},w=function(b){var v,h=(0,g.asNonCompoundGraph)(b);y(h);var d=M(h);(v=Object.keys(d))===null||v===void 0||v.forEach(function(_){h.node(_).x=d[_]})};N.default=w},61981:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.feasibleTreeWithLayer=N.feasibleTree=void 0;var x=o(4222),g=o(28963),A=o(97434),y=function(d){var _=new A.Graph({directed:!1}),p=d.nodes()[0],S=d.nodeCount();_.setNode(p,{});for(var k,O;M(_,d)<S;)k=b(_,d),O=_.hasNode(k.v)?(0,x.slack)(d,k):-(0,x.slack)(d,k),v(_,d,O);return _};N.feasibleTree=y;var M=function(d,_){var p=function S(k){_.nodeEdges(k).forEach(function(O){var F=O.v,D=k===F?O.w:F;!d.hasNode(D)&&!(0,x.slack)(_,O)&&(d.setNode(D,{}),d.setEdge(k,D,{}),S(D))})};return d.nodes().forEach(p),d.nodeCount()},w=function(d){var _=new A.Graph({directed:!1}),p=d.nodes()[0],S=d.nodes().filter(function(F){return!!d.node(F)}).length;_.setNode(p,{});for(var k,O;m(_,d)<S;)k=b(_,d),O=_.hasNode(k.v)?(0,x.slack)(d,k):-(0,x.slack)(d,k),v(_,d,O);return _};N.feasibleTreeWithLayer=w;var m=function(d,_){var p=function S(k){var O;(O=_.nodeEdges(k))===null||O===void 0||O.forEach(function(F){var D=F.v,Z=k===D?F.w:D;!d.hasNode(Z)&&(_.node(Z).layer!==void 0||!(0,x.slack)(_,F))&&(d.setNode(Z,{}),d.setEdge(k,Z,{}),S(Z))})};return d.nodes().forEach(p),d.nodeCount()},b=function(d,_){return(0,g.minBy)(_.edges(),function(p){return d.hasNode(p.v)!==d.hasNode(p.w)?(0,x.slack)(_,p):Infinity})},v=function(d,_,p){d.nodes().forEach(function(S){_.node(S).rank||(_.node(S).rank=0),_.node(S).rank+=p})};N.default={feasibleTree:y,feasibleTreeWithLayer:w}},80117:function(oe,N,o){"use strict";var x=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(N,"__esModule",{value:!0});var g=o(4222),A=o(61981),y=x(o(6467)),M=function(h){switch(h.graph().ranker){case"network-simplex":b(h);break;case"tight-tree":m(h);break;case"longest-path":w(h);break;default:m(h)}},w=g.longestPath,m=function(h){(0,g.longestPathWithLayer)(h),(0,A.feasibleTreeWithLayer)(h)},b=function(h){(0,y.default)(h)};N.default=M},6467:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.exchangeEdges=N.enterEdge=N.leaveEdge=N.initLowLimValues=N.calcCutValue=N.initCutValues=void 0;var x=o(61981),g=o(4222),A=o(28963),y=o(96181),M=y.algorithm.preorder,w=y.algorithm.postorder,m=function(W){var U=(0,A.simplify)(W);(0,g.longestPath)(U);var L=(0,x.feasibleTree)(U);(0,N.initLowLimValues)(L),(0,N.initCutValues)(L,U);for(var V,$;V=(0,N.leaveEdge)(L);)$=(0,N.enterEdge)(L,U,V),(0,N.exchangeEdges)(L,U,V,$)},b=function(W,U){var L=w(W,W.nodes());L=L==null?void 0:L.slice(0,(L==null?void 0:L.length)-1),L==null||L.forEach(function(V){v(W,U,V)})};N.initCutValues=b;var v=function(W,U,L){var V=W.node(L),$=V.parent;W.edgeFromArgs(L,$).cutvalue=(0,N.calcCutValue)(W,U,L)},h=function(W,U,L){var V,$=W.node(L),G=$.parent,z=!0,K=U.edgeFromArgs(L,G),re=0;return K||(z=!1,K=U.edgeFromArgs(G,L)),re=K.weight,(V=U.nodeEdges(L))===null||V===void 0||V.forEach(function(ne){var Q=ne.v===L,ue=Q?ne.w:ne.v;if(ue!==G){var he=Q===z,Ee=U.edge(ne).weight;if(re+=he?Ee:-Ee,F(W,L,ue)){var ce=W.edgeFromArgs(L,ue).cutvalue;re+=he?-ce:ce}}}),re};N.calcCutValue=h;var d=function(W,U){U===void 0&&(U=W.nodes()[0]),_(W,{},1,U)};N.initLowLimValues=d;var _=function Z(W,U,L,V,$){var G,z=L,K=L,re=W.node(V);return U[V]=!0,(G=W.neighbors(V))===null||G===void 0||G.forEach(function(ne){U[ne]||(K=Z(W,U,K,ne,V))}),re.low=z,re.lim=K++,$?re.parent=$:delete re.parent,K},p=function(W){return W.edges().find(function(U){return W.edge(U).cutvalue<0})};N.leaveEdge=p;var S=function(W,U,L){var V=L.v,$=L.w;U.hasEdge(V,$)||(V=L.w,$=L.v);var G=W.node(V),z=W.node($),K=G,re=!1;G.lim>z.lim&&(K=z,re=!0);var ne=U.edges().filter(function(Q){return re===D(W,W.node(Q.v),K)&&re!==D(W,W.node(Q.w),K)});return(0,A.minBy)(ne,function(Q){return(0,g.slack)(U,Q)})};N.enterEdge=S;var k=function(W,U,L,V){var $=L.v,G=L.w;W.removeEdge($,G),W.setEdge(V.v,V.w,{}),(0,N.initLowLimValues)(W),(0,N.initCutValues)(W,U),O(W,U)};N.exchangeEdges=k;var O=function(W,U){var L=W.nodes().find(function($){var G;return!((G=U.node($))===null||G===void 0?void 0:G.parent)}),V=M(W,L);V=V==null?void 0:V.slice(1),V==null||V.forEach(function($){var G=W.node($).parent,z=U.edgeFromArgs($,G),K=!1;z||(z=U.edgeFromArgs(G,$),K=!0),U.node($).rank=U.node(G).rank+(K?z.minlen:-z.minlen)})},F=function(W,U,L){return W.hasEdge(U,L)},D=function(W,U,L){return L.low<=U.lim&&U.lim<=L.lim};N.default=m},4222:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.slack=N.longestPathWithLayer=N.longestPath=void 0;var o=function(y){var M,w={},m=function b(v){var h,d=y.node(v);if(!d)return 0;if(w[v])return d.rank;w[v]=!0;var _;return(h=y.outEdges(v))===null||h===void 0||h.forEach(function(p){var S=b(p.w),k=y.edge(p).minlen,O=S-k;O&&(_===void 0||O<_)&&(_=O)}),_||(_=0),d.rank=_,_};(M=y.sources())===null||M===void 0||M.forEach(function(b){return m(b)})};N.longestPath=o;var x=function(y){var M,w={},m,b=function d(_){var p,S=y.node(_);if(!S)return 0;if(w[_])return S.rank;w[_]=!0;var k;return(p=y.outEdges(_))===null||p===void 0||p.forEach(function(O){var F=d(O.w),D=y.edge(O).minlen,Z=F-D;Z&&(k===void 0||Z<k)&&(k=Z)}),k||(k=0),(m===void 0||k<m)&&(m=k),S.rank=k,k};(M=y.sources())===null||M===void 0||M.forEach(function(d){y.node(d)&&b(d)}),m===void 0&&(m=0);var v={},h=function d(_,p){var S,k=y.node(_),O=isNaN(k.layer)?p:k.layer;(k.rank===void 0||k.rank<O)&&(k.rank=O),!v[_]&&(v[_]=!0,(S=y.outEdges(_))===null||S===void 0||S.map(function(F){d(F.w,O+y.edge(F).minlen)}))};y.nodes().forEach(function(d){var _=y.node(d);!_||(isNaN(_.layer)?_.rank-=m:h(d,_.layer))})};N.longestPathWithLayer=x;var g=function(y,M){return y.node(M.w).rank-y.node(M.v).rank-y.edge(M).minlen};N.slack=g,N.default={longestPath:o,longestPathWithLayer:x,slack:g}},28963:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.minBy=N.notime=N.time=N.partition=N.maxRank=N.addBorderNode=N.removeEmptyRanks=N.normalizeRanks=N.buildLayerMatrix=N.intersectRect=N.predecessorWeights=N.successorWeights=N.zipObject=N.asNonCompoundGraph=N.simplify=N.addDummyNode=void 0;var x=o(74788),g=o(97434),A=function(U,L){return Number(U)-Number(L)},y=function(U,L,V,$){var G;do G="".concat($).concat(Math.random());while(U.hasNode(G));return V.dummy=L,U.setNode(G,V),G};N.addDummyNode=y;var M=function(U){var L=new g.Graph().setGraph(U.graph());return U.nodes().forEach(function(V){L.setNode(V,U.node(V))}),U.edges().forEach(function(V){var $=L.edgeFromArgs(V.v,V.w)||{weight:0,minlen:1},G=U.edge(V);L.setEdge(V.v,V.w,{weight:$.weight+G.weight,minlen:Math.max($.minlen,G.minlen)})}),L};N.simplify=M;var w=function(U){var L=new g.Graph({multigraph:U.isMultigraph()}).setGraph(U.graph());return U.nodes().forEach(function(V){var $;(($=U.children(V))===null||$===void 0?void 0:$.length)||L.setNode(V,U.node(V))}),U.edges().forEach(function(V){L.setEdgeObj(V,U.edge(V))}),L};N.asNonCompoundGraph=w;var m=function(U,L){return U==null?void 0:U.reduce(function(V,$,G){return V[$]=L[G],V},{})};N.zipObject=m;var b=function(U){var L={};return U.nodes().forEach(function(V){var $,G={};($=U.outEdges(V))===null||$===void 0||$.forEach(function(z){var K;G[z.w]=(G[z.w]||0)+(((K=U.edge(z))===null||K===void 0?void 0:K.weight)||0)}),L[V]=G}),L};N.successorWeights=b;var v=function(U){var L=U.nodes(),V=L.map(function($){var G,z={};return(G=U.inEdges($))===null||G===void 0||G.forEach(function(K){z[K.v]=(z[K.v]||0)+U.edge(K).weight}),z});return(0,N.zipObject)(L,V)};N.predecessorWeights=v;var h=function(U,L){var V=Number(U.x),$=Number(U.y),G=Number(L.x)-V,z=Number(L.y)-$,K=Number(U.width)/2,re=Number(U.height)/2;if(!G&&!z)return{x:0,y:0};var ne,Q;return Math.abs(z)*K>Math.abs(G)*re?(z<0&&(re=-re),ne=re*G/z,Q=re):(G<0&&(K=-K),ne=K,Q=K*z/G),{x:V+ne,y:$+Q}};N.intersectRect=h;var d=function(U){for(var L=[],V=(0,N.maxRank)(U)+1,$=0;$<V;$++)L.push([]);U.nodes().forEach(function(G){var z=U.node(G);if(!!z){var K=z.rank;K!==void 0&&L[K]&&L[K].push(G)}});for(var $=0;$<V;$++)L[$]=L[$].sort(function(z,K){var re,ne;return A((re=U.node(z))===null||re===void 0?void 0:re.order,(ne=U.node(K))===null||ne===void 0?void 0:ne.order)});return L};N.buildLayerMatrix=d;var _=function(U){var L=U.nodes().filter(function($){var G;return((G=U.node($))===null||G===void 0?void 0:G.rank)!==void 0}).map(function($){return U.node($).rank}),V=Math.min.apply(Math,L);U.nodes().forEach(function($){var G=U.node($);G.hasOwnProperty("rank")&&V!==Infinity&&(G.rank-=V)})};N.normalizeRanks=_;var p=function(U){var L=U.nodes(),V=L.filter(function(Q){var ue;return((ue=U.node(Q))===null||ue===void 0?void 0:ue.rank)!==void 0}).map(function(Q){return U.node(Q).rank}),$=Math.min.apply(Math,V),G=[];L.forEach(function(Q){var ue,he=(((ue=U.node(Q))===null||ue===void 0?void 0:ue.rank)||0)-$;G[he]||(G[he]=[]),G[he].push(Q)});for(var z=0,K=U.graph().nodeRankFactor||0,re=0;re<G.length;re++){var ne=G[re];ne===void 0?re%K!=0&&(z-=1):z&&(ne==null||ne.forEach(function(Q){var ue=U.node(Q);ue&&(ue.rank=ue.rank||0,ue.rank+=z)}))}};N.removeEmptyRanks=p;var S=function(U,L,V,$){var G={width:0,height:0};return(0,x.isNumber)(V)&&(0,x.isNumber)($)&&(G.rank=V,G.order=$),(0,N.addDummyNode)(U,"border",G,L)};N.addBorderNode=S;var k=function(U){var L;return U.nodes().forEach(function(V){var $,G=($=U.node(V))===null||$===void 0?void 0:$.rank;G!==void 0&&(L===void 0||G>L)&&(L=G)}),L||(L=0),L};N.maxRank=k;var O=function(U,L){var V={lhs:[],rhs:[]};return U==null||U.forEach(function($){L($)?V.lhs.push($):V.rhs.push($)}),V};N.partition=O;var F=function(U,L){var V=Date.now();try{return L()}finally{console.log("".concat(U," time: ").concat(Date.now()-V,"ms"))}};N.time=F;var D=function(U,L){return L()};N.notime=D;var Z=function(U,L){return U.reduce(function(V,$){var G=L(V),z=L($);return G>z?$:V})};N.minBy=Z},67117:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var b=function(h,d){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,p){_.__proto__=p}||function(_,p){for(var S in p)Object.prototype.hasOwnProperty.call(p,S)&&(_[S]=p[S])},b(h,d)};return function(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");b(v,h);function d(){this.constructor=v}v.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}}(),g=this&&this.__assign||function(){return g=Object.assign||function(b){for(var v,h=1,d=arguments.length;h<d;h++){v=arguments[h];for(var _ in v)Object.prototype.hasOwnProperty.call(v,_)&&(b[_]=v[_])}return b},g.apply(this,arguments)},A=this&&this.__spreadArray||function(b,v,h){if(h||arguments.length===2)for(var d=0,_=v.length,p;d<_;d++)(p||!(d in v))&&(p||(p=Array.prototype.slice.call(v,0,d)),p[d]=v[d]);return b.concat(p||Array.prototype.slice.call(v))};Object.defineProperty(N,"__esModule",{value:!0}),N.DagreCompoundLayout=void 0;var y=o(15383),M=o(69979),w=o(74788),m=function(b){x(v,b);function v(h){var d=b.call(this)||this;return d.rankdir="TB",d.nodesep=50,d.edgesep=5,d.ranksep=50,d.controlPoints=!0,d.anchorPoint=!0,d.nodes=[],d.edges=[],d.combos=[],d.onLayoutEnd=function(){},d.updateCfg(h),d}return v.prototype.getDefaultCfg=function(){return{rankdir:"TB",align:void 0,begin:void 0,nodeSize:void 0,nodesep:50,ranksep:50,controlPoints:!0,anchorPoint:!0}},v.prototype.init=function(h){var d=h.hiddenNodes||[],_=h.hiddenEdges||[],p=h.hiddenCombos||[];this.nodes=this.getDataByOrder((h.nodes||[]).concat(d)),this.edges=this.getDataByOrder((h.edges||[]).concat(_)),this.combos=(h.combos||[]).concat(p.map(function(S){return g(g({},S),{collapsed:!0})}))},v.prototype.execute=function(){var h=this,d=h.nodes,_=h.edges;if(!!d){var p=h.getLayoutConfig(),S=p.graphDef,k=p.graphOption,O=p.graphSettings,F=(0,M.buildGraph)(S,k,O),D=(0,M.flatGraph)(F,!0);return this.updatePosition(D),h.onLayoutEnd&&h.onLayoutEnd(),{nodes:d,edges:_}}},v.prototype.getNodePath=function(h){var d=this,_=d.nodes,p=d.combos,S=_.find(function(O){return O.id===h}),k=function O(F,D){D===void 0&&(D=[]);var Z=p.find(function(W){return W.id===F});return Z?(D.unshift(F),Z.parentId?O(Z.parentId,D):D):D};return S&&S.comboId?k(S.comboId,[h]):[h]},v.prototype.getLayoutConfig=function(){var h,d,_,p=this,S=p.nodes,k=p.edges,O=p.combos,F=p.nodeSize,D=p.rankdir,Z=p.align,W=p.edgesep,U=p.nodesep,L=p.ranksep,V=p.settings,$=(O||[]).reduce(function(pe,Ie){var Je=S.filter(function(De){return De.comboId===Ie.id}).map(function(De){return De.id}),ke=(O||[]).filter(function(De){return De.parentId===Ie.id}).map(function(De){return De.id});return(Je.length||ke.length)&&(pe[Ie.id]=A(A([],Je,!0),ke,!0)),pe},{}),G;F?(0,w.isArray)(F)?G=function(){return F}:G=function(){return[F,F]}:G=function(Ie){return Ie&&Ie.size?(0,w.isArray)(Ie.size)?Ie.size:(0,w.isObject)(Ie.size)?[Ie.size.width||40,Ie.size.height||40]:[Ie.size,Ie.size]:[40,40]};var z=function(Ie){return Ie&&Ie.size?(0,w.isArray)(Ie.size)?Ie.size:[Ie.size,Ie.size]:[80,40]},K=z(O==null?void 0:O[0]),re=K[0],ne=K[1],Q=(d=(h=p.graphSettings)===null||h===void 0?void 0:h.subScene)===null||d===void 0?void 0:d.meta,ue=((_=O.find(function(pe){return!pe.collapsed}))===null||_===void 0?void 0:_.padding)||[20,20,20,20],he=ue[0],Ee=ue[1],ce=ue[2],ve=ue[3],fe={compound:$,nodes:A([],(S||[]).map(function(pe){var Ie=G(pe),Je=Ie[0],ke=Ie[1];return g(g({},pe),{width:Je,height:ke})}),!0),edges:A([],(k||[]).map(function(pe){return g(g({},pe),{v:pe.source,w:pe.target})}),!0)},we={expanded:(O||[]).filter(function(pe){return!pe.collapsed}).map(function(pe){return pe.id})},me={graph:{meta:{align:Z,rankDir:D,nodeSep:U,edgeSep:W,rankSep:L}},subScene:{meta:{paddingTop:he||(Q==null?void 0:Q.paddingTop)||20,paddingRight:Ee||(Q==null?void 0:Q.paddingRight)||20,paddingBottom:ce||(Q==null?void 0:Q.paddingBottom)||20,paddingLeft:ve||(Q==null?void 0:Q.paddingLeft)||20,labelHeight:0}},nodeSize:{meta:{width:re,height:ne}}},Pe=(0,M.mergeConfig)(V,g({},(0,M.mergeConfig)(me,M.LAYOUT_CONFIG)));return p.graphSettings=Pe,{graphDef:fe,graphOption:we,graphSettings:Pe}},v.prototype.updatePosition=function(h){var d=h.nodes,_=h.edges;this.updateNodePosition(d,_),this.updateEdgePosition(d,_)},v.prototype.getBegin=function(h,d){var _=this,p=_.begin,S=[0,0];if(p){var k=Infinity,O=Infinity;h.forEach(function(F){k>F.x&&(k=F.x),O>F.y&&(O=F.y)}),d.forEach(function(F){F.points.forEach(function(D){k>D.x&&(k=D.x),O>D.y&&(O=D.y)})}),S[0]=p[0]-k,S[1]=p[1]-O}return S},v.prototype.updateNodePosition=function(h,d){var _=this,p=_.combos,S=_.nodes,k=_.edges,O=_.anchorPoint,F=_.graphSettings,D=this.getBegin(h,d);h.forEach(function(Z){var W,U=Z.x,L=Z.y,V=Z.id,$=Z.type,G=Z.coreBox;if($===M.HierarchyNodeType.META&&V!==M.ROOT_NAME){var z=p.findIndex(function(ue){return ue.id===V}),K=(W=F==null?void 0:F.subScene)===null||W===void 0?void 0:W.meta;p[z].offsetX=U+D[0],p[z].offsetY=L+D[1],p[z].fixSize=[G.width,G.height],p[z].fixCollapseSize=[G.width,G.height],Z.expanded?p[z].padding=[K==null?void 0:K.paddingTop,K==null?void 0:K.paddingRight,K==null?void 0:K.paddingBottom,K==null?void 0:K.paddingLeft]:p[z].padding=[0,0,0,0]}else if($===M.HierarchyNodeType.OP){var z=S.findIndex(function(he){return he.id===V});if(S[z].x=U+D[0],S[z].y=L+D[1],O){var re=[],ne=d.filter(function(he){return he.v===V}),Q=d.filter(function(he){return he.w===V});ne.length>0&&ne.forEach(function(he){var Ee=he.points[0],ce=(Ee.x-U)/Z.width+.5,ve=(Ee.y-L)/Z.height+.5;re.push([ce,ve]),he.baseEdgeList.forEach(function(fe){var we=k.find(function(me){return me.source===fe.v&&me.target===fe.w});we&&(we.sourceAnchor=re.length-1)})}),Q.length>0&&Q.forEach(function(he){var Ee=he.points[he.points.length-1],ce=(Ee.x-U)/Z.width+.5,ve=(Ee.y-L)/Z.height+.5;re.push([ce,ve]),he.baseEdgeList.forEach(function(fe){var we=k.find(function(me){return me.source===fe.v&&me.target===fe.w});we&&(we.targetAnchor=re.length-1)})}),S[z].anchorPoints=re.length>0?re:S[z].anchorPoints||[]}}})},v.prototype.updateEdgePosition=function(h,d){var _=this,p=_.combos,S=_.edges,k=_.controlPoints,O=this.getBegin(h,d);k&&(p.forEach(function(F){F.inEdges=[],F.outEdges=[]}),S.forEach(function(F){var D,Z,W,U,L=h.find(function(ue){return ue.id===F.source}),V=h.find(function(ue){return ue.id===F.target}),$=[],G=[];if(L&&V)G=(0,M.getEdges)(L==null?void 0:L.id,V==null?void 0:V.id,h);else if(!L||!V){var z=_.getNodePath(F.source),K=_.getNodePath(F.target),re=z.reverse().slice(L?0:1).find(function(ue){return h.find(function(he){return he.id===ue})}),ne=K.reverse().slice(V?0:1).find(function(ue){return h.find(function(he){return he.id===ue})});L=h.find(function(ue){return ue.id===re}),V=h.find(function(ue){return ue.id===ne}),G=(0,M.getEdges)(L==null?void 0:L.id,V==null?void 0:V.id,h,{v:F.source,w:F.target})}if($=G.reduce(function(ue,he){return A(A([],ue,!0),he.points.map(function(Ee){return g(g({},Ee),{x:Ee.x+O[0],y:Ee.y+O[1]})}),!0)},[]),$=$.slice(1,-1),F.controlPoints=$,(V==null?void 0:V.type)===M.NodeType.META){var Q=p.findIndex(function(ue){return ue.id===(V==null?void 0:V.id)});if(!p[Q]||((D=p[Q].inEdges)===null||D===void 0?void 0:D.some(function(ue){return ue.source===L.id&&ue.target===V.id})))return;(Z=p[Q].inEdges)===null||Z===void 0||Z.push({source:L.id,target:V.id,controlPoints:$})}if((L==null?void 0:L.type)===M.NodeType.META){var Q=p.findIndex(function(he){return he.id===(L==null?void 0:L.id)});if(!p[Q]||((W=p[Q].outEdges)===null||W===void 0?void 0:W.some(function(he){return he.source===L.id&&he.target===V.id})))return;(U=p[Q].outEdges)===null||U===void 0||U.push({source:L.id,target:V.id,controlPoints:$})}}))},v.prototype.getType=function(){return"dagreCompound"},v.prototype.getDataByOrder=function(h){return h.every(function(d){return d.layoutOrder!==void 0})||h.forEach(function(d,_){d.layoutOrder=_}),h.sort(function(d,_){return d.layoutOrder-_.layoutOrder})},v}(y.Base);N.DagreCompoundLayout=m},1431:function(oe,N,o){"use strict";var x=this&&this.__assign||function(){return x=Object.assign||function(d){for(var _,p=1,S=arguments.length;p<S;p++){_=arguments[p];for(var k in _)Object.prototype.hasOwnProperty.call(_,k)&&(d[k]=_[k])}return d},x.apply(this,arguments)},g=this&&this.__createBinding||(Object.create?function(d,_,p,S){S===void 0&&(S=p);var k=Object.getOwnPropertyDescriptor(_,p);(!k||("get"in k?!_.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return _[p]}}),Object.defineProperty(d,S,k)}:function(d,_,p,S){S===void 0&&(S=p),d[S]=_[p]}),A=this&&this.__setModuleDefault||(Object.create?function(d,_){Object.defineProperty(d,"default",{enumerable:!0,value:_})}:function(d,_){d.default=_}),y=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var _={};if(d!=null)for(var p in d)p!=="default"&&Object.prototype.hasOwnProperty.call(d,p)&&g(_,d,p);return A(_,d),_},M=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(N,"__esModule",{value:!0});var w=y(o(55956)),m=M(o(57443)),b=M(o(39582)),v=o(47130);function h(d,_){var p=d.nodes,S=d.edges,k=_.width,O=_.height;if(!(p==null?void 0:p.length))return Promise.resolve();var F=[];p.forEach(function(G){var z=S.filter(function(re){return re.source===G.id||re.target===G.id});if(z.length>1){var K=x({},G);delete K.size,F.push(K)}});var D=[];S.forEach(function(G){var z=F.find(function(re){return re.id===G.source}),K=F.find(function(re){return re.id===G.target});z&&K&&D.push(G)});var Z=new v.DagreLayout({type:"dagre",ranksep:_.nodeMinGap,nodesep:_.nodeMinGap}),W=Z.layout({nodes:F,edges:D}).nodes;p.forEach(function(G){var z=(W||[]).find(function(K){return K.id===G.id});G.x=(z==null?void 0:z.x)||k/2,G.y=(z==null?void 0:z.y)||O/2});var U=JSON.parse(JSON.stringify(p)),L=JSON.parse(JSON.stringify(S)),V=w.forceSimulation().nodes(U).force("link",w.forceLink(L).id(function(G){return G.id}).distance(function(G){var z=D.find(function(K){return K.source===G.source&&K.target===G.target});return z?30:20})).force("charge",w.forceManyBody()).force("center",w.forceCenter(k/2,O/2)).force("x",w.forceX(k/2)).force("y",w.forceY(O/2)).alpha(.3).alphaDecay(.08).alphaMin(.001),$=new Promise(function(G){V.on("end",function(){p.forEach(function(he){var Ee=U.find(function(ce){return ce.id===he.id});Ee&&(he.x=Ee.x,he.y=Ee.y)});var z=Math.min.apply(Math,p.map(function(he){return he.x})),K=Math.max.apply(Math,p.map(function(he){return he.x})),re=Math.min.apply(Math,p.map(function(he){return he.y})),ne=Math.max.apply(Math,p.map(function(he){return he.y})),Q=k/(K-z),ue=O/(ne-re);p.forEach(function(he){he.x!==void 0&&Q<1&&(he.x=(he.x-z)*Q),he.y!==void 0&&ue<1&&(he.y=(he.y-re)*ue)}),p.forEach(function(he){he.sizeTemp=he.size,he.size=[10,10]}),(0,b.default)(p,S),p.forEach(function(he){he.size=he.sizeTemp||[],delete he.sizeTemp}),(0,m.default)({nodes:p,edges:S},_),G()})});return $}N.default=h},57443:function(oe,N,o){"use strict";var x=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(N,"__esModule",{value:!0});var g=x(o(51081));function A(y,M){if(!y.nodes||y.nodes.length===0)return y;var w=M.width,m=M.height,b=M.nodeMinGap,v=1e4,h=1e4;y.nodes.forEach(function(L){var V=L.size[0]||50,$=L.size[1]||50;v=Math.min(V,v),h=Math.min($,h)});var d=new g.default;d.init(w,m,{CELL_H:h,CELL_W:v}),y.nodes.forEach(function(L){var V=d.occupyNearest(L);V&&(V.node={id:L.id,size:L.size},L.x=V.x,L.y=V.y,L.dx=V.dx,L.dy=V.dy)});for(var _=0;_<y.nodes.length;_++){var p=y.nodes[_],S=d.findGridByNodeId(p.id);if(!S)throw new Error("can not find node cell");var k=S.column,O=S.row;if(p.size[0]+b>v){for(var F=Math.ceil((p.size[0]+b)/v)-1,D=F,Z=0;Z<F;Z++){var W=d.additionColumn.indexOf(k+Z+1)>-1;if(W&&!d.cells[k+Z+1][O].node)D--;else break}d.insertColumn(k,D)}if(p.size[1]+b>h){for(var F=Math.ceil((p.size[1]+b)/h)-1,D=F,Z=0;Z<F;Z++){var W=d.additionRow.indexOf(O+Z+1)>-1;if(W&&!d.cells[k][O+Z+1].node)D--;else break}d.insertRow(O,D)}}for(var _=0;_<d.columnNum;_++)for(var U=function($){var G=d.cells[_][$];if(G.node){var z=y.nodes.find(function(K){var re;return K.id===((re=G==null?void 0:G.node)===null||re===void 0?void 0:re.id)});z&&(z.x=G.x+z.size[0]/2,z.y=G.y+z.size[1]/2)}},Z=0;Z<d.rowNum;Z++)U(Z)}N.default=A},51081:function(oe,N){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(g){for(var A,y=1,M=arguments.length;y<M;y++){A=arguments[y];for(var w in A)Object.prototype.hasOwnProperty.call(A,w)&&(g[w]=A[w])}return g},o.apply(this,arguments)};Object.defineProperty(N,"__esModule",{value:!0});var x=function(){function g(){this.cells=[],this.columnNum=0,this.rowNum=0,this.additionColumn=[],this.additionRow=[]}return g.prototype.init=function(A,y,M){this.cells=[],this.CELL_W=M.CELL_W||g.DEFAULT_CELL_W,this.CELL_H=M.CELL_H||g.DEFAULT_CELL_H,this.columnNum=Math.ceil(A/this.CELL_W),this.rowNum=Math.ceil(y/this.CELL_H),g.MIN_DIST=Math.pow(A,2)+Math.pow(y,2);for(var w=0;w<this.columnNum;w++){for(var m=[],b=0;b<this.rowNum;b++){var v={dx:w,dy:b,x:w*this.CELL_W,y:b*this.CELL_H,occupied:!1};m.push(v)}this.cells.push(m)}},g.prototype.findGridByNodeId=function(A){for(var y,M,w=0;w<this.columnNum;w++)for(var m=0;m<this.rowNum;m++)if(this.cells[w][m].node&&((M=(y=this.cells[w][m])===null||y===void 0?void 0:y.node)===null||M===void 0?void 0:M.id)===A)return{column:w,row:m};return null},g.prototype.sqdist=function(A,y){return Math.pow(A.x-y.x,2)+Math.pow(A.y-y.y,2)},g.prototype.occupyNearest=function(A){for(var y=g.MIN_DIST,M,w=null,m=0;m<this.columnNum;m++)for(var b=0;b<this.rowNum;b++)!this.cells[m][b].occupied&&(M=this.sqdist(A,this.cells[m][b]))<y&&(y=M,w=this.cells[m][b]);return w&&(w.occupied=!0),w},g.prototype.insertColumn=function(A,y){if(!(y<=0)){for(var M=0;M<y;M++){this.cells[M+this.columnNum]=[];for(var w=0;w<this.rowNum;w++)this.cells[M+this.columnNum][w]={dx:M,dy:w,x:M*this.CELL_W,y:w*this.CELL_H,occupied:!1,node:null}}for(var M=this.columnNum-1;M>A;M--)for(var w=0;w<this.rowNum;w++)this.cells[M+y][w]=o(o({},this.cells[M][w]),{x:(M+y)*this.CELL_W,y:w*this.CELL_H}),this.cells[M][w]={x:M*this.CELL_W,y:w*this.CELL_H,occupied:!0,node:null};for(var w=0;w<this.additionColumn.length;w++)this.additionColumn[w]>=A&&(this.additionColumn[w]+=y);for(var M=0;M<y;M++)this.additionColumn.push(A+M+1);this.columnNum+=y}},g.prototype.insertRow=function(A,y){if(!(y<=0)){for(var M=0;M<y;M++)for(var w=0;w<this.columnNum;w++)this.cells[w][M+this.rowNum]={dx:w,dy:M,x:w*this.CELL_W,y:M*this.CELL_H,occupied:!1,node:null};for(var w=0;w<this.columnNum;w++)for(var M=this.rowNum-1;M>A;M--)this.cells[w][M+y]=o(o({},this.cells[w][M]),{dx:w,dy:M+y,x:w*this.CELL_W,y:(M+y)*this.CELL_H}),this.cells[w][M]={dx:w,dy:M,x:w*this.CELL_W,y:M*this.CELL_H,occupied:!1,node:null};for(var M=0;M<this.additionRow.length;M++)this.additionRow[M]>=A&&(this.additionRow[M]+=y);for(var w=0;w<y;w++)this.additionRow.push(A+w+1);this.rowNum+=y}},g.prototype.getNodes=function(){for(var A=[],y=0;y<this.columnNum;y++)for(var M=0;M<this.rowNum;M++)this.cells[y][M].node&&A.push(this.cells[y][M]);return A},g.MIN_DIST=50,g.DEFAULT_CELL_W=80,g.DEFAULT_CELL_H=80,g}();N.default=x},67731:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var w=function(b,v){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var _ in d)Object.prototype.hasOwnProperty.call(d,_)&&(h[_]=d[_])},w(b,v)};return function(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");w(m,b);function v(){this.constructor=m}m.prototype=b===null?Object.create(b):(v.prototype=b.prototype,new v)}}(),g=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(N,"__esModule",{value:!0}),N.ERLayout=void 0;var A=o(15383),y=g(o(1431)),M=function(w){x(m,w);function m(b){var v=w.call(this)||this;return v.width=300,v.height=300,v.nodeMinGap=50,v.onLayoutEnd=function(){},b&&v.updateCfg(b),v}return m.prototype.getDefaultCfg=function(){return{width:300,height:300,nodeMinGap:50}},m.prototype.execute=function(){var b=this,v=b.nodes,h=b.edges;return v==null||v.forEach(function(d){d.size||(d.size=[50,50])}),(0,y.default)({nodes:v,edges:h},{width:this.width,height:this.height,nodeMinGap:this.nodeMinGap}).then(function(){b.onLayoutEnd&&b.onLayoutEnd()})},m.prototype.getType=function(){return"er"},m}(A.Base);N.ERLayout=M},39582:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o=1200,x=800,g=1e7,A=10,y=3.141592653589793,M=1.5707963267948966,w=y*.375,m=y*.625,b=new Map,v=10,h=10,d=.8,_=.1,p=.5;function S(U,L,V){var $=U.x-U.size[0]/2,G=U.y-U.size[1]/2,z=U.x+U.size[0]/2,K=U.y+U.size[1]/2,re=L.x-L.size[0]/2,ne=L.y-L.size[1]/2,Q=L.x+L.size[0]/2,ue=L.y+L.size[1]/2,he=U.x,Ee=U.y,ce=L.x,ve=L.y,fe=ce-he,we=Math.atan2(fe,ve-Ee),me=0,Pe=0,pe=0,Ie=0;we>M?(Pe=G-ue,me=re-z,pe=parseFloat(Pe?(Pe/Math.cos(we)).toFixed(2):me.toFixed(2)),Ie=parseFloat(me?(me/Math.sin(we)).toFixed(2):Pe.toFixed(2))):0<we&&we<=M?(Pe=ne-K,me=re-z,Pe>me?pe=Ie=parseFloat(Pe?(Pe/Math.cos(we)).toFixed(2):me.toFixed(2)):pe=Ie=parseFloat(me?(me/Math.sin(we)).toFixed(2):Pe.toFixed(2))):we<-M?(Pe=G-ue,me=-(Q-$),Pe>me?pe=Ie=parseFloat(Pe?(Pe/Math.cos(we)).toFixed(2):me.toFixed(2)):pe=Ie=parseFloat(me?(me/Math.sin(we)).toFixed(2):Pe.toFixed(2))):(Pe=ne-K,Math.abs(fe)>(z-$)/2?me=$-Q:me=fe,Pe>me?pe=Ie=parseFloat(Pe?(Pe/Math.cos(we)).toFixed(2):me.toFixed(2)):pe=Ie=parseFloat(me&&we!==0?(me/Math.sin(we)).toFixed(2):Pe.toFixed(2)));var Je=parseFloat(we.toFixed(2)),ke=V;return V&&(ke=w<Je&&Je<m),{distance:Math.abs(pe<Ie?pe:Ie),isHoriz:ke}}function k(U,L){var V=b.get(U.id)||[],$=V.find(function(Vt){return Vt.source===L.id||Vt.target===L.id}),G=U.size[0]*U.size[1],z=L.size[0]*L.size[1],K=G>z?L:U,re=G>z?U:L,ne=K.x-K.size[0]/2,Q=K.y-K.size[1]/2,ue=K.x+K.size[0]/2,he=K.y+K.size[1]/2,Ee=re.x-re.size[0]/2,ce=re.y-re.size[1]/2,ve=re.x+re.size[0]/2,fe=re.y+re.size[1]/2,we=K.x,me=K.y,Pe=re.x,pe=re.y,Ie=ue>=Ee&&ve>=ne&&he>=ce&&fe>=Q,Je=0,ke=0;if(Ie){ke=Math.sqrt(Math.pow(Pe-we,2)+Math.pow(pe-me,2));var De=ne>Ee?ne:Ee,Fe=Q>ce?Q:ce,Qe=ue<ve?ue:ve,qe=he<fe?he:fe,et=Qe-De,dt=qe-Fe,Ke=et*dt;ke===0&&(ke=1e-7),Je=A*1/ke*100+Ke,Je*=g}else{var Ge=!1,wt=S(K,re,Ge);ke=wt.distance,Ge=wt.isHoriz,ke<=A?ke!==0?$?Je+=A+g*1/ke:Je+=A+g*A/ke:Je+=g:(Je+=ke,$&&(Je+=ke*ke))}return Je}function O(U){for(var L=0,V=0;V<U.length;V++){var $=U[V];($.x<0||$.y<0||$.x>o||$.y>x)&&(L+=1e12);for(var G=V+1;G<U.length;G++)L+=k($,U[G])}return L}function F(U,L,V,$){var G=new Map;V.forEach(function(we,me){G.set(we.id,we)});var z=$.filter(function(we){return we.source===U.id||we.target===U.id})||[],K=[];z.forEach(function(we){var me=we.source===U.id?we.target:we.source,Pe=G.get(me);Pe&&K.push(Pe)});for(var re=!0,ne=0;ne<K.length;ne++){var Q=K[ne],ue=Math.atan((U.y-Q.y)/(Q.x-U.y))*180,he=Math.atan((L.y-Q.y)/(Q.x-L.y))*180,Ee=ue<30||ue>150,ce=he<30||he>150,ve=ue>70&&ue<110,fe=he>70&&he<110;if(Ee&&!ce||ue*he<0){re=!1;break}else if(ve&&!fe||ue*he<0){re=!1;break}else if((Q.x-U.x)*(Q.x-L.x)<0){re=!1;break}else if((Q.y-U.y)*(Q.y-L.y)<0){re=!1;break}}return re}function D(U,L){for(var V=!1,$=1,G=v*$,z=h*$,K=[G,-G,0,0],re=[0,0,z,-z],ne=0;ne<U.length;++ne)for(var Q=U[ne],ue=Z(Q,U),he=0;he<K.length;he++){var Ee=F(Q,{x:Q.x+K[he],y:Q.y+re[he]},U,L);if(Ee){Q.x+=K[he],Q.y+=re[he];var ce=Z(Q,U),ve=Math.random();ce<ue||ve<d&&ve>_?(ue=ce,V=!0):(Q.x-=K[he],Q.y-=re[he])}}return d>_&&(d*=p),V?O(U):0}function Z(U,L){var V=0;(U.x<0||U.y<0||U.x+U.size[0]+20>o||U.y+U.size[1]+20>x)&&(V+=1e12);for(var $=0;$<L.length;++$)U.id!==L[$].id&&(V+=k(U,L[$]));return V}function W(U,L){if(U.length===0)return{nodes:U,edges:L};U.forEach(function(Q){var ue=L.filter(function(he){return he.source===Q.id||he.target===Q.id});b.set(Q,ue)}),U.sort(function(Q,ue){var he,Ee;return((he=b.get(Q.id))===null||he===void 0?void 0:he.length)-((Ee=b.get(ue.id))===null||Ee===void 0?void 0:Ee.length)});for(var V=O(U),$=20,G=1,z=0,K=50,re=0;$>0&&(re++,!(re>=K));){var ne=D(U,L);ne!==0&&(z=ne),G=z-V,V=z,G===0?--$:$=20}return U.forEach(function(Q){Q.x=Q.x-Q.size[0]/2,Q.y=Q.y-Q.size[1]/2}),{nodes:U,edges:L}}N.default=W},27780:function(oe,N,o){"use strict";var x=this&&this.__createBinding||(Object.create?function(m,b,v,h){h===void 0&&(h=v);var d=Object.getOwnPropertyDescriptor(b,v);(!d||("get"in d?!b.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return b[v]}}),Object.defineProperty(m,h,d)}:function(m,b,v,h){h===void 0&&(h=v),m[h]=b[v]}),g=this&&this.__setModuleDefault||(Object.create?function(m,b){Object.defineProperty(m,"default",{enumerable:!0,value:b})}:function(m,b){m.default=b}),A=this&&this.__importStar||function(m){if(m&&m.__esModule)return m;var b={};if(m!=null)for(var v in m)v!=="default"&&Object.prototype.hasOwnProperty.call(m,v)&&x(b,m,v);return g(b,m),b};Object.defineProperty(N,"__esModule",{value:!0});var y=A(o(55956)),M=o(74788);function w(){function m(qe){return function(){return qe}}var b=function(et){return et.cluster},v=m(1),h=m(-1),d=m(100),_=m(.1),p=[0,0],S=[],k={},O=[],F=100,D=100,Z={none:{x:0,y:0}},W=[],U,L="force",V=!0,$=.1;function G(qe){if(!V)return G;U.tick(),ue();for(var et=0,dt=S.length,Ke=void 0,Ge=qe*$;et<dt;++et)Ke=S[et],Ke.vx+=(Z[b(Ke)].x-Ke.x)*Ge,Ke.vy+=(Z[b(Ke)].y-Ke.y)*Ge}function z(){!S||K()}function K(){if(!(!S||!S.length)){if(b(S[0])===void 0)throw Error("Couldnt find the grouping attribute for the nodes. Make sure to set it up with forceInABox.groupBy('clusterAttr') before calling .links()");var qe=re();U=y.forceSimulation(qe.nodes).force("x",y.forceX(F).strength(.1)).force("y",y.forceY(D).strength(.1)).force("collide",y.forceCollide(function(et){return et.r}).iterations(4)).force("charge",y.forceManyBody().strength(h)).force("links",y.forceLink(qe.nodes.length?qe.links:[]).distance(d).strength(_)),W=U.nodes(),ue()}}function re(){var qe=[],et=[],dt={},Ke=[],Ge={},wt=[];return Ge=ne(S),wt=Q(O),Ke=Object.keys(Ge),Ke.forEach(function(Vt,gt){var it=Ge[Vt];qe.push({id:Vt,size:it.count,r:Math.sqrt(it.sumforceNodeSize/Math.PI)}),dt[Vt]=gt}),wt.forEach(function(Vt){var gt=(0,M.getEdgeTerminal)(Vt,"source"),it=(0,M.getEdgeTerminal)(Vt,"target"),Le=dt[gt],ct=dt[it];Le!==void 0&&ct!==void 0&&et.push({source:Le,target:ct,count:Vt.count})}),{nodes:qe,links:et}}function ne(qe){var et={};return qe.forEach(function(dt){var Ke=b(dt);et[Ke]||(et[Ke]={count:0,sumforceNodeSize:0})}),qe.forEach(function(dt){var Ke=b(dt),Ge=v(dt),wt=et[Ke];wt.count=wt.count+1,wt.sumforceNodeSize=wt.sumforceNodeSize+Math.PI*(Ge*Ge)*1.3,et[Ke]=wt}),et}function Q(qe){var et={},dt=[];qe.forEach(function(Ge){var wt=he(Ge),Vt=0;et[wt]!==void 0&&(Vt=et[wt]),Vt+=1,et[wt]=Vt});var Ke=Object.entries(et);return Ke.forEach(function(Ge){var wt=Ge[0],Vt=Ge[1],gt=wt.split("~")[0],it=wt.split("~")[1];gt!==void 0&&it!==void 0&&dt.push({source:gt,target:it,count:Vt})}),dt}function ue(){return Z={none:{x:0,y:0}},W.forEach(function(qe){Z[qe.id]={x:qe.x-p[0],y:qe.y-p[1]}}),Z}function he(qe){var et=(0,M.getEdgeTerminal)(qe,"source"),dt=(0,M.getEdgeTerminal)(qe,"target"),Ke=b(k[et]),Ge=b(k[dt]);return Ke<=Ge?"".concat(Ke,"~").concat(Ge):"".concat(Ge,"~").concat(Ke)}function Ee(qe){k={},qe.forEach(function(et){k[et.id]=et})}function ce(qe){return arguments.length?(L=qe,z(),G):L}function ve(qe){return arguments.length?typeof qe=="string"?(b=function(dt){return dt[qe]},G):(b=qe,G):b}function fe(qe){return arguments.length?(V=qe,G):V}function we(qe){return arguments.length?($=qe,G):$}function me(qe){return arguments.length?(F=qe,G):F}function Pe(qe){return arguments.length?(D=qe,G):D}function pe(qe){return arguments.length?(Ee(qe||[]),S=qe||[],G):S}function Ie(qe){return arguments.length?(O=qe||[],z(),G):O}function Je(qe){return arguments.length?(typeof qe=="function"?v=qe:v=m(+qe),z(),G):v}function ke(qe){return arguments.length?(typeof qe=="function"?h=qe:h=m(+qe),z(),G):h}function De(qe){return arguments.length?(typeof qe=="function"?d=qe:d=m(+qe),z(),G):d}function Fe(qe){return arguments.length?(typeof qe=="function"?_=qe:_=m(+qe),z(),G):_}function Qe(qe){return arguments.length?(p=qe,G):p}return G.initialize=function(qe){S=qe,z()},G.template=ce,G.groupBy=ve,G.enableGrouping=fe,G.strength=we,G.centerX=me,G.centerY=Pe,G.nodes=pe,G.links=Ie,G.forceNodeSize=Je,G.nodeSize=G.forceNodeSize,G.forceCharge=ke,G.forceLinkDistance=De,G.forceLinkStrength=Fe,G.offset=Qe,G.getFocis=ue,G}N.default=w},91323:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var S=function(O,F){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,Z){D.__proto__=Z}||function(D,Z){for(var W in Z)Object.prototype.hasOwnProperty.call(Z,W)&&(D[W]=Z[W])},S(O,F)};return function(k,O){if(typeof O!="function"&&O!==null)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");S(k,O);function F(){this.constructor=k}k.prototype=O===null?Object.create(O):(F.prototype=O.prototype,new F)}}(),g=this&&this.__createBinding||(Object.create?function(S,k,O,F){F===void 0&&(F=O);var D=Object.getOwnPropertyDescriptor(k,O);(!D||("get"in D?!k.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return k[O]}}),Object.defineProperty(S,F,D)}:function(S,k,O,F){F===void 0&&(F=O),S[F]=k[O]}),A=this&&this.__setModuleDefault||(Object.create?function(S,k){Object.defineProperty(S,"default",{enumerable:!0,value:k})}:function(S,k){S.default=k}),y=this&&this.__importStar||function(S){if(S&&S.__esModule)return S;var k={};if(S!=null)for(var O in S)O!=="default"&&Object.prototype.hasOwnProperty.call(S,O)&&g(k,S,O);return A(k,S),k},M=this&&this.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(N,"__esModule",{value:!0}),N.ForceLayout=void 0;var w=y(o(55956)),m=M(o(27780)),b=o(74788),v=o(15383),h=o(30135),d=function(S){x(k,S);function k(O){var F=S.call(this)||this;return F.center=[0,0],F.nodeStrength=null,F.edgeStrength=null,F.preventOverlap=!1,F.clusterNodeStrength=null,F.clusterEdgeStrength=null,F.clusterEdgeDistance=null,F.clusterNodeSize=null,F.clusterFociStrength=null,F.linkDistance=50,F.alphaDecay=.028,F.alphaMin=.001,F.alpha=.3,F.collideStrength=1,F.workerEnabled=!1,F.tick=function(){},F.onLayoutEnd=function(){},F.ticking=void 0,O&&F.updateCfg(O),F}return k.prototype.getDefaultCfg=function(){return{center:[0,0],nodeStrength:null,edgeStrength:null,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,linkDistance:50,forceSimulation:null,alphaDecay:.028,alphaMin:.001,alpha:.3,collideStrength:1,clustering:!1,clusterNodeStrength:-1,clusterEdgeStrength:.1,clusterEdgeDistance:100,clusterFociStrength:.8,clusterNodeSize:10,tick:function(){},onLayoutEnd:function(){},workerEnabled:!1}},k.prototype.init=function(O){var F=this;F.nodes=O.nodes||[];var D=O.edges||[];F.edges=D.map(function(Z){var W={},U=["targetNode","sourceNode","startPoint","endPoint"];return Object.keys(Z).forEach(function(L){U.indexOf(L)>-1||(W[L]=Z[L])}),W}),F.ticking=!1},k.prototype.execute=function(O){var F=this,D=F.nodes,Z=F.edges;if(!F.ticking){var W=F.forceSimulation,U=F.alphaMin,L=F.alphaDecay,V=F.alpha;if(W){if(O){if(F.clustering&&F.clusterForce&&(F.clusterForce.nodes(D),F.clusterForce.links(Z)),W.nodes(D),Z&&F.edgeForce)F.edgeForce.links(Z);else if(Z&&!F.edgeForce){var z=w.forceLink().id(function(Q){return Q.id}).links(Z);F.edgeStrength&&z.strength(F.edgeStrength),F.linkDistance&&z.distance(F.linkDistance),F.edgeForce=z,W.force("link",z)}}F.preventOverlap&&F.overlapProcess(W),W.alpha(V).restart(),this.ticking=!0}else try{var $=w.forceManyBody();if(F.nodeStrength&&$.strength(F.nodeStrength),W=w.forceSimulation().nodes(D),F.clustering){var G=(0,m.default)();G.centerX(F.center[0]).centerY(F.center[1]).template("force").strength(F.clusterFociStrength),Z&&G.links(Z),D&&G.nodes(D),G.forceLinkDistance(F.clusterEdgeDistance).forceLinkStrength(F.clusterEdgeStrength).forceCharge(F.clusterNodeStrength).forceNodeSize(F.clusterNodeSize),F.clusterForce=G,W.force("group",G)}if(W.force("center",w.forceCenter(F.center[0],F.center[1])).force("charge",$).alpha(V).alphaDecay(L).alphaMin(U),F.preventOverlap&&F.overlapProcess(W),Z){var z=w.forceLink().id(function(ne){return ne.id}).links(Z);F.edgeStrength&&z.strength(F.edgeStrength),F.linkDistance&&z.distance(F.linkDistance),F.edgeForce=z,W.force("link",z)}if(F.workerEnabled&&!p()&&(F.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),!F.workerEnabled)W.on("tick",function(){F.tick()}).on("end",function(){F.ticking=!1,F.onLayoutEnd&&F.onLayoutEnd()}),F.ticking=!0;else{W.stop();for(var K=_(W),re=1;re<=K;re++)W.tick(),postMessage({nodes:D,currentTick:re,totalTicks:K,type:h.LAYOUT_MESSAGE.TICK},void 0);F.ticking=!1}F.forceSimulation=W,F.ticking=!0}catch(ne){F.ticking=!1,console.warn(ne)}}},k.prototype.overlapProcess=function(O){var F=this,D=F.nodeSize,Z=F.nodeSpacing,W,U,L=F.collideStrength;if((0,b.isNumber)(Z)?U=function(){return Z}:(0,b.isFunction)(Z)?U=Z:U=function(){return 0},!D)W=function(K){if(K.size){if((0,b.isArray)(K.size)){var re=K.size[0]>K.size[1]?K.size[0]:K.size[1];return re/2+U(K)}if((0,b.isObject)(K.size)){var re=K.size.width>K.size.height?K.size.width:K.size.height;return re/2+U(K)}return K.size/2+U(K)}return 10+U(K)};else if((0,b.isFunction)(D))W=function(K){var re=D(K);return re+U(K)};else if((0,b.isArray)(D)){var V=D[0]>D[1]?D[0]:D[1],$=V/2;W=function(K){return $+U(K)}}else if((0,b.isNumber)(D)){var G=D/2;W=function(K){return G+U(K)}}else W=function(){return 10};O.force("collisionForce",w.forceCollide(W).strength(L))},k.prototype.updateCfg=function(O){var F=this;F.ticking&&(F.forceSimulation.stop(),F.ticking=!1),F.forceSimulation=null,Object.assign(F,O)},k.prototype.destroy=function(){var O=this;O.ticking&&(O.forceSimulation.stop(),O.ticking=!1),O.nodes=null,O.edges=null,O.destroyed=!0},k}(v.Base);N.ForceLayout=d;function _(S){var k=S.alphaMin(),O=S.alphaTarget(),F=S.alpha(),D=Math.log((k-O)/(F-O))/Math.log(1-S.alphaDecay()),Z=Math.ceil(D);return Z}function p(){return typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope}},50741:function(oe,N,o){"use strict";var x=this&&this.__createBinding||(Object.create?function(A,y,M,w){w===void 0&&(w=M);var m=Object.getOwnPropertyDescriptor(y,M);(!m||("get"in m?!y.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return y[M]}}),Object.defineProperty(A,w,m)}:function(A,y,M,w){w===void 0&&(w=M),A[w]=y[M]}),g=this&&this.__exportStar||function(A,y){for(var M in A)M!=="default"&&!Object.prototype.hasOwnProperty.call(y,M)&&x(y,A,M)};Object.defineProperty(N,"__esModule",{value:!0}),g(o(91323),N)},14406:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.forceNBody=void 0;var x=o(48404),g=.81,A=.1;function y(b,v,h,d,_){var p=h/d,S=b.map(function(O,F){var D=v[O.id],Z=D.data,W=D.x,U=D.y,L=D.size,V=Z.layout.force.nodeStrength;return{x:W,y:U,size:L,index:F,vx:0,vy:0,weight:p*V}}),k=(0,x.quadtree)(S,function(O){return O.x},function(O){return O.y}).visitAfter(M);return S.forEach(function(O){m(O,k)}),S.map(function(O,F){var D=v[b[F].id],Z=D.data.layout.force.mass,W=Z===void 0?1:Z;_[2*F]=O.vx/W,_[2*F+1]=O.vy/W}),_}N.forceNBody=y;function M(b){var v=0,h=0,d=0;if(b.length){for(var _=0;_<4;_++){var p=b[_];p&&p.weight&&(v+=p.weight,h+=p.x*p.weight,d+=p.y*p.weight)}b.x=h/v,b.y=d/v,b.weight=v}else{var p=b;b.x=p.data.x,b.y=p.data.y,b.weight=p.data.weight}}var w=function(v,h,d,_,p,S){var k=S.x-v.x||A,O=S.y-v.y||A,F=_-h,D=k*k+O*O,Z=Math.sqrt(D)*D;if(F*F*g<D){var W=v.weight/Z;return S.vx+=k*W,S.vy+=O*W,!0}if(v.length)return!1;if(v.data!==S){var W=v.data.weight/Z;S.vx+=k*W,S.vy+=O*W}};function m(b,v){v.visit(function(h,d,_,p,S){return w(h,d,_,p,S,b)})}},83898:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var b=function(h,d){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,p){_.__proto__=p}||function(_,p){for(var S in p)Object.prototype.hasOwnProperty.call(p,S)&&(_[S]=p[S])},b(h,d)};return function(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");b(v,h);function d(){this.constructor=v}v.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}}(),g=this&&this.__assign||function(){return g=Object.assign||function(b){for(var v,h=1,d=arguments.length;h<d;h++){v=arguments[h];for(var _ in v)Object.prototype.hasOwnProperty.call(v,_)&&(b[_]=v[_])}return b},g.apply(this,arguments)};Object.defineProperty(N,"__esModule",{value:!0}),N.Force2Layout=void 0;var A=o(15383),y=o(74788),M=o(14406),w=function(v,h){var d;return v?(0,y.isNumber)(v)?d=function(p){return v}:d=v:d=function(p){return h||1},d},m=function(b){x(v,b);function v(h){var d=b.call(this)||this;d.maxIteration=1e3,d.workerEnabled=!1,d.edgeStrength=200,d.nodeStrength=1e3,d.coulombDisScale=.005,d.damping=.9,d.maxSpeed=500,d.minMovement=.4,d.interval=.02,d.factor=1,d.linkDistance=200,d.gravity=0,d.clusterNodeStrength=20,d.preventOverlap=!0,d.distanceThresholdMode="mean",d.tick=function(){},d.nodes=[],d.edges=[],d.width=300,d.height=300,d.nodeMap={},d.nodeIdxMap={},d.judgingDistance=0,d.centripetalOptions={leaf:2,single:2,others:1,center:function(S){return{x:d.width/2,y:d.height/2}}};var _=h.getMass;return d.propsGetMass=_,d.updateCfg(h),d}return v.prototype.getCentripetalOptions=function(){var h=this,d=h.leafCluster,_=h.clustering,p=h.nodeClusterBy,S=h.nodes,k=h.nodeMap,O=h.clusterNodeStrength,F=function(re){return typeof O=="function"?O(re):O},D={},Z;if(d){Z=this.getSameTypeLeafMap()||{};var W=Array.from(new Set(S==null?void 0:S.map(function(K){return K[p]})))||[];D={single:100,leaf:function(re,ne,Q){var ue=Z[re.id]||{},he=ue.relativeLeafNodes,Ee=ue.sameTypeLeafNodes;return(Ee==null?void 0:Ee.length)===(he==null?void 0:he.length)||(W==null?void 0:W.length)===1?1:F(re)},others:1,center:function(re,ne,Q){var ue,he=(((ue=re.data)===null||ue===void 0?void 0:ue.layout)||{}).degree;if(!he)return{x:100,y:100};var Ee;if(he===1){var ce=(Z[re.id]||{}).sameTypeLeafNodes,ve=ce===void 0?[]:ce;ve.length===1?Ee=void 0:ve.length>1&&(Ee=(0,y.getAvgNodePosition)(ve))}else Ee=void 0;return{x:Ee==null?void 0:Ee.x,y:Ee==null?void 0:Ee.y}}}}if(_){Z||(Z=this.getSameTypeLeafMap());var U=Array.from(new Set(S.map(function(K,re){return K[p]}))).filter(function(K){return K!==void 0}),L={};U.forEach(function(K){var re=S.filter(function(ne){return ne[p]===K}).map(function(ne){return k[ne.id]});L[K]=(0,y.getAvgNodePosition)(re)}),D={single:function(re){return F(re)},leaf:function(re){return F(re)},others:function(re){return F(re)},center:function(re,ne,Q){var ue=L[re[p]];return{x:ue==null?void 0:ue.x,y:ue==null?void 0:ue.y}}}}this.centripetalOptions=g(g({},this.centripetalOptions),D);var V=this.centripetalOptions,$=V.leaf,G=V.single,z=V.others;$&&typeof $!="function"&&(this.centripetalOptions.leaf=function(){return $}),G&&typeof G!="function"&&(this.centripetalOptions.single=function(){return G}),z&&typeof z!="function"&&(this.centripetalOptions.others=function(){return z})},v.prototype.updateCfg=function(h){h&&Object.assign(this,h)},v.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},v.prototype.execute=function(){var h=this;h.stop();var d=h.nodes,_=h.edges,p=h.defSpringLen;if(h.judgingDistance=0,!d||d.length===0){h.onLayoutEnd([]);return}!h.width&&typeof window!="undefined"&&(h.width=window.innerWidth),!h.height&&typeof window!="undefined"&&(h.height=window.innerHeight),h.center||(h.center=[h.width/2,h.height/2]);var S=h.center;if(d.length===1){d[0].x=S[0],d[0].y=S[1],h.onLayoutEnd([g({},d[0])]);return}h.degreesMap=(0,y.getDegreeMap)(d,_),h.propsGetMass?h.getMass=h.propsGetMass:h.getMass=function(U){var L=1;(0,y.isNumber)(U.mass)&&(L=U.mass);var V=h.degreesMap[U.id].all;return!V||V<5?L:V*5*L};var k=h.nodeSize,O;if(h.preventOverlap){var F=h.nodeSpacing,D;(0,y.isNumber)(F)?D=function(){return F}:(0,y.isFunction)(F)?D=F:D=function(){return 0},k?(0,y.isArray)(k)?O=function(L){return Math.max(k[0],k[1])+D(L)}:O=function(L){return k+D(L)}:O=function(L){return L.size?(0,y.isArray)(L.size)?Math.max(L.size[0],L.size[1])+D(L):(0,y.isObject)(L.size)?Math.max(L.size.width,L.size.height)+D(L):L.size+D(L):10+D(L)}}h.nodeSize=O,h.linkDistance=w(h.linkDistance,1),h.nodeStrength=w(h.nodeStrength,1),h.edgeStrength=w(h.edgeStrength,1);var Z={},W={};d.forEach(function(U,L){(0,y.isNumber)(U.x)||(U.x=Math.random()*h.width),(0,y.isNumber)(U.y)||(U.y=Math.random()*h.height);var V=h.degreesMap[U.id];Z[U.id]=g(g({},U),{data:g(g({},U.data),{size:h.nodeSize(U)||30,layout:{inDegree:V.in,outDegree:V.out,degree:V.all,tDegree:V.in,sDegree:V.out,force:{mass:h.getMass(U),nodeStrength:h.nodeStrength(U,_)}}})}),W[U.id]=L}),h.nodeMap=Z,h.nodeIdxMap=W,h.edgeInfos=[],_==null||_.forEach(function(U){var L=Z[U.source],V=Z[U.target];!L||!V?elf.edgeInfos.push({}):h.edgeInfos.push({edgeStrength:h.edgeStrength(U),linkDistance:p?p(g(g({},U),{source:L,target:V}),L,V):h.linkDistance(U,L,V)||1+(k(L)+k(L)||0)/2})}),this.getCentripetalOptions(),h.onLayoutEnd=h.onLayoutEnd||function(){},h.run()},v.prototype.run=function(){var h=this,d=h.maxIteration,_=h.nodes,p=h.edges,S=h.workerEnabled,k=h.minMovement,O=h.animate,F=h.nodeMap,D=h.height;if(h.currentMinY=0,h.currentMaxY=D,!!_){var Z=[];if(_.forEach(function(z,K){Z[2*K]=0,Z[2*K+1]=0}),this.defSideCoe&&typeof this.defSideCoe=="function"){var W={};p.forEach(function(z){var K=z.source,re=z.target;W[K]=W[K]||[],W[K].push(z),W[re]=W[re]||[],W[re].push(z)}),this.relatedEdges=W}var U=d,L=!O;if(S||L){for(var V=0,$=0;(h.judgingDistance>k||$<1)&&$<U;$++)V=$,h.runOneStep($,Z);h.onLayoutEnd(Object.values(F))}else{if(typeof window=="undefined")return;var G=0;this.timeInterval=window.setInterval(function(){!_||(h.runOneStep(G,Z),G++,(G>=U||h.judgingDistance<k)&&(h.onLayoutEnd(Object.values(F)),window.clearInterval(h.timeInterval)))},0)}}},v.prototype.runOneStep=function(h,d){var _,p=this,S=p.nodes,k=p.edges,O=p.nodeMap,F=p.monitor,D=[];if(!!(S==null?void 0:S.length)){p.calRepulsive(D),k&&p.calAttractive(D),p.calGravity(D),p.attractToSide(D);var Z=p.interval;if(p.updateVelocity(D,d,Z),p.updatePosition(d,Z),(_=p.tick)===null||_===void 0||_.call(p),F){var W=this.calTotalEnergy(D);F({energy:W,nodes:S,edges:k,iterations:h})}}},v.prototype.calTotalEnergy=function(h){var d=this,_=d.nodes,p=d.nodeMap;if(!(_==null?void 0:_.length))return 0;var S=0;return _.forEach(function(k,O){var F=h[2*O],D=h[2*O+1],Z=F*F+D*D,W=p[k.id].data.layout.force.mass,U=W===void 0?1:W;S+=U*Z*.5}),S},v.prototype.calRepulsive=function(h){var d=this,_=d.nodes,p=d.nodeMap,S=d.factor,k=d.coulombDisScale,O=d.nodeSize;(0,M.forceNBody)(_,p,S,k*k,h)},v.prototype.calAttractive=function(h){var d=this,_=d.edges,p=d.nodeMap,S=d.nodeIdxMap,k=d.edgeInfos,O=d.nodeSize;_.forEach(function(F,D){var Z=(0,y.getEdgeTerminal)(F,"source"),W=(0,y.getEdgeTerminal)(F,"target"),U=p[Z],L=p[W];if(!(!U||!L)){var V=L.x-U.x,$=L.y-U.y;!V&&!$&&(V=Math.random()*.01,$=Math.random()*.01);var G=Math.sqrt(V*V+$*$),z=V/G,K=$/G,re=k[D]||{},ne=re.linkDistance,Q=ne===void 0?200:ne,ue=re.edgeStrength,he=ue===void 0?200:ue,Ee=Q-G,ce=Ee*he,ve=U.data.layout.force.mass||1,fe=L.data.layout.force.mass||1,we=1/ve,me=1/fe,Pe=z*ce,pe=K*ce,Ie=2*S[Z],Je=2*S[W];h[Ie]-=Pe*we,h[Ie+1]-=pe*we,h[Je]+=Pe*me,h[Je+1]+=pe*me}})},v.prototype.calGravity=function(h){var d,_=this,p=_.nodes,S=_.edges,k=S===void 0?[]:S,O=_.nodeMap,F=_.width,D=_.height,Z=_.center,W=_.gravity,U=_.degreesMap,L=_.centripetalOptions;if(!!p)for(var V=p.length,$=0;$<V;$++){var G=2*$,z=O[p[$].id],K=z.data.layout.force.mass,re=K===void 0?1:K,ne=0,Q=0,ue=W,he=U[z.id],Ee=he.in,ce=he.out,ve=he.all,fe=(d=_.getCenter)===null||d===void 0?void 0:d.call(_,z,ve);if(fe){var we=fe[0],me=fe[1],Pe=fe[2];ne=z.x-we,Q=z.y-me,ue=Pe}else ne=z.x-Z[0],Q=z.y-Z[1];if(ue&&(h[G]-=ue*ne/re,h[G+1]-=ue*Q/re),L){var pe=L.leaf,Ie=L.single,Je=L.others,ke=L.center,De=(ke==null?void 0:ke(z,p,k,F,D))||{x:0,y:0,centerStrength:0},Fe=De.x,Qe=De.y,qe=De.centerStrength;if(!(0,y.isNumber)(Fe)||!(0,y.isNumber)(Qe))continue;var et=(z.x-Fe)/re,dt=(z.y-Qe)/re;if(qe&&(h[G]-=qe*et,h[G+1]-=qe*dt),ve===0){var Ke=Ie(z);if(!Ke)continue;h[G]-=Ke*et,h[G+1]-=Ke*dt;continue}if(Ee===0||ce===0){var Ge=pe(z,p,k);if(!Ge)continue;h[G]-=Ge*et,h[G+1]-=Ge*dt;continue}var wt=Je(z);if(!wt)continue;h[G]-=wt*et,h[G+1]-=wt*dt}}},v.prototype.attractToSide=function(h){var d=this,_=d.defSideCoe,p=d.height,S=d.nodes,k=d.relatedEdges,O=d.currentMinY,F=O===void 0?0:O,D=d.currentMaxY,Z=D===void 0?this.height:D;!_||typeof _!="function"||!(S==null?void 0:S.length)||S.forEach(function(W,U){var L=_(W,k[W.id]||[]);if(L!==0){var V=L<0?F:Z,$=Math.abs(L);h[2*U+1]-=$*(W.y-V)}})},v.prototype.updateVelocity=function(h,d,_){var p=this,S=p.nodes,k=p.damping,O=p.maxSpeed;!(S==null?void 0:S.length)||S.forEach(function(F,D){var Z=(d[2*D]+h[2*D]*_)*k||.01,W=(d[2*D+1]+h[2*D+1]*_)*k||.01,U=Math.sqrt(Z*Z+W*W);if(U>O){var L=O/U;Z=L*Z,W=L*W}d[2*D]=Z,d[2*D+1]=W})},v.prototype.updatePosition=function(h,d){var _=this,p=_.nodes,S=_.distanceThresholdMode,k=_.nodeMap;if(!(p==null?void 0:p.length)){this.judgingDistance=0;return}var O=0;S==="max"?_.judgingDistance=-Infinity:S==="min"&&(_.judgingDistance=Infinity);var F=Infinity,D=-Infinity;p.forEach(function(Z,W){var U=k[Z.id];if((0,y.isNumber)(Z.fx)&&(0,y.isNumber)(Z.fy)){Z.x=Z.fx,Z.y=Z.fy,U.x=Z.x,U.y=Z.y;return}var L=h[2*W]*d,V=h[2*W+1]*d;Z.x+=L,Z.y+=V,U.x=Z.x,U.y=Z.y,Z.y<F&&(F=Z.y),Z.y>D&&(D=Z.y);var $=Math.sqrt(L*L+V*V);switch(S){case"max":_.judgingDistance<$&&(_.judgingDistance=$);break;case"min":_.judgingDistance>$&&(_.judgingDistance=$);break;default:O=O+$;break}}),this.currentMinY=F,this.currentMaxY=D,(!S||S==="mean")&&(_.judgingDistance=O/p.length)},v.prototype.stop=function(){this.timeInterval&&typeof window!="undefined"&&window.clearInterval(this.timeInterval)},v.prototype.destroy=function(){var h=this;h.stop(),h.tick=null,h.nodes=null,h.edges=null,h.destroyed=!0},v.prototype.getType=function(){return"force2"},v.prototype.getSameTypeLeafMap=function(){var h=this,d=h.nodeClusterBy,_=h.nodes,p=h.edges,S=h.nodeMap,k=h.degreesMap;if(!!(_==null?void 0:_.length)){var O={};return _.forEach(function(F,D){var Z=k[F.id].all;Z===1&&(O[F.id]=(0,y.getCoreNodeAndRelativeLeafNodes)("leaf",F,p,d,k,S))}),O}},v}(A.Base);N.Force2Layout=m},17023:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o=function(){function x(g){this.id=g.id||0,this.rx=g.rx,this.ry=g.ry,this.fx=0,this.fy=0,this.mass=g.mass,this.degree=g.degree,this.g=g.g||0}return x.prototype.distanceTo=function(g){var A=this.rx-g.rx,y=this.ry-g.ry;return Math.hypot(A,y)},x.prototype.setPos=function(g,A){this.rx=g,this.ry=A},x.prototype.resetForce=function(){this.fx=0,this.fy=0},x.prototype.addForce=function(g){var A=g.rx-this.rx,y=g.ry-this.ry,M=Math.hypot(A,y);M=M<1e-4?1e-4:M;var w=this.g*(this.degree+1)*(g.degree+1)/M;this.fx+=w*A/M,this.fy+=w*y/M},x.prototype.in=function(g){return g.contains(this.rx,this.ry)},x.prototype.add=function(g){var A=this.mass+g.mass,y=(this.rx*this.mass+g.rx*g.mass)/A,M=(this.ry*this.mass+g.ry*g.mass)/A,w=this.degree+g.degree,m={rx:y,ry:M,mass:A,degree:w};return new x(m)},x}();N.default=o},94950:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var v=function(d,_){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,S){p.__proto__=S}||function(p,S){for(var k in S)Object.prototype.hasOwnProperty.call(S,k)&&(p[k]=S[k])},v(d,_)};return function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");v(h,d);function _(){this.constructor=h}h.prototype=d===null?Object.create(d):(_.prototype=d.prototype,new _)}}(),g=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(N,"__esModule",{value:!0}),N.ForceAtlas2Layout=void 0;var A=o(15383),y=o(74788),M=g(o(17023)),w=g(o(53483)),m=g(o(63771)),b=function(v){x(h,v);function h(d){var _=v.call(this)||this;return _.center=[0,0],_.width=300,_.height=300,_.nodes=[],_.edges=[],_.kr=5,_.kg=1,_.mode="normal",_.preventOverlap=!1,_.dissuadeHubs=!1,_.barnesHut=void 0,_.maxIteration=0,_.ks=.1,_.ksmax=10,_.tao=.1,_.onLayoutEnd=function(){},_.prune=void 0,_.updateCfg(d),_}return h.prototype.getDefaultCfg=function(){return{}},h.prototype.execute=function(){var d=this,_=d.nodes,p=d.onLayoutEnd,S=d.prune,k=d.maxIteration;!d.width&&typeof window!="undefined"&&(d.width=window.innerWidth),!d.height&&typeof window!="undefined"&&(d.height=window.innerHeight);for(var O=[],F=_.length,D=0;D<F;D+=1){var Z=_[D],W=10,U=10;(0,y.isNumber)(Z.size)&&(W=Z.size,U=Z.size),(0,y.isArray)(Z.size)?(isNaN(Z.size[0])||(W=Z.size[0]),isNaN(Z.size[1])||(U=Z.size[1])):(0,y.isObject)(Z.size)&&(W=Z.size.width,U=Z.size.height),d.getWidth&&!isNaN(d.getWidth(Z))&&(U=d.getWidth(Z)),d.getHeight&&!isNaN(d.getHeight(Z))&&(W=d.getHeight(Z));var L=Math.max(W,U);O.push(L)}d.barnesHut===void 0&&F>250&&(d.barnesHut=!0),d.prune===void 0&&F>100&&(d.prune=!0),this.maxIteration===0&&!d.prune?(k=250,F<=200&&F>100?k=1e3:F>200&&(k=1200),this.maxIteration=k):this.maxIteration===0&&S&&(k=100,F<=200&&F>100?k=500:F>200&&(k=950),this.maxIteration=k),d.kr||(d.kr=50,F>100&&F<=500?d.kr=20:F>500&&(d.kr=1)),d.kg||(d.kg=20,F>100&&F<=500?d.kg=10:F>500&&(d.kg=1)),this.nodes=d.updateNodesByForces(O),p()},h.prototype.updateNodesByForces=function(d){for(var _=this,p=_.edges,S=_.maxIteration,k=_.nodes,O=p.filter(function(he){var Ee=(0,y.getEdgeTerminal)(he,"source"),ce=(0,y.getEdgeTerminal)(he,"target");return Ee!==ce}),F=k.length,D=O.length,Z=[],W={},U={},L=[],V=0;V<F;V+=1)W[k[V].id]=V,Z[V]=0,(k[V].x===void 0||isNaN(k[V].x))&&(k[V].x=Math.random()*1e3),(k[V].y===void 0||isNaN(k[V].y))&&(k[V].y=Math.random()*1e3),L.push({x:k[V].x,y:k[V].y});for(var V=0;V<D;V+=1){for(var $=void 0,G=void 0,z=0,K=0,re=0;re<F;re+=1){var ne=(0,y.getEdgeTerminal)(O[V],"source"),Q=(0,y.getEdgeTerminal)(O[V],"target");k[re].id===ne?($=k[re],z=re):k[re].id===Q&&(G=k[re],K=re),U[V]={sourceIdx:z,targetIdx:K}}$&&(Z[W[$.id]]+=1),G&&(Z[W[G.id]]+=1)}var ue=S;if(k=this.iterate(ue,W,U,D,Z,d),_.prune){for(var re=0;re<D;re+=1)Z[U[re].sourceIdx]<=1?(k[U[re].sourceIdx].x=k[U[re].targetIdx].x,k[U[re].sourceIdx].y=k[U[re].targetIdx].y):Z[U[re].targetIdx]<=1&&(k[U[re].targetIdx].x=k[U[re].sourceIdx].x,k[U[re].targetIdx].y=k[U[re].sourceIdx].y);_.prune=!1,_.barnesHut=!1,ue=100,k=this.iterate(ue,W,U,D,Z,d)}return k},h.prototype.iterate=function(d,_,p,S,k,O){for(var F=this,D=F.nodes,Z=F.kr,W=F.preventOverlap,U=F.barnesHut,L=D.length,V=0,$=100,G=d,z=50,K=[],re=[],ne=[],Q=0;Q<L;Q+=1)if(K[2*Q]=0,K[2*Q+1]=0,U){var ue={id:Q,rx:D[Q].x,ry:D[Q].y,mass:1,g:Z,degree:k[Q]};ne[Q]=new M.default(ue)}for(;G>0;){for(var Q=0;Q<L;Q+=1)re[2*Q]=K[2*Q],re[2*Q+1]=K[2*Q+1],K[2*Q]=0,K[2*Q+1]=0;K=this.getAttrForces(G,z,S,_,p,k,O,K),U&&(W&&G>z||!W)?K=this.getOptRepGraForces(K,ne,k):K=this.getRepGraForces(G,z,K,$,O,k);var he=this.updatePos(K,re,V,k);D=he.nodes,V=he.sg,G--,F.tick&&F.tick()}return D},h.prototype.getAttrForces=function(d,_,p,S,k,O,F,D){for(var Z=this,W=Z.nodes,U=Z.preventOverlap,L=Z.dissuadeHubs,V=Z.mode,$=Z.prune,G=0;G<p;G+=1){var z=W[k[G].sourceIdx],K=k[G].sourceIdx,re=W[k[G].targetIdx],ne=k[G].targetIdx;if(!($&&(O[K]<=1||O[ne]<=1))){var Q=[re.x-z.x,re.y-z.y],ue=Math.hypot(Q[0],Q[1]);ue=ue<1e-4?1e-4:ue,Q[0]=Q[0]/ue,Q[1]=Q[1]/ue,U&&d<_&&(ue=ue-F[K]-F[ne]);var he=ue,Ee=he;V==="linlog"&&(he=Math.log(1+ue),Ee=he),L&&(he=ue/O[K],Ee=ue/O[ne]),U&&d<_&&ue<=0?(he=0,Ee=0):U&&d<_&&ue>0&&(he=ue,Ee=ue),D[2*S[z.id]]+=he*Q[0],D[2*S[re.id]]-=Ee*Q[0],D[2*S[z.id]+1]+=he*Q[1],D[2*S[re.id]+1]-=Ee*Q[1]}}return D},h.prototype.getRepGraForces=function(d,_,p,S,k,O){for(var F=this,D=F.nodes,Z=F.preventOverlap,W=F.kr,U=F.kg,L=F.center,V=F.prune,$=D.length,G=0;G<$;G+=1){for(var z=G+1;z<$;z+=1)if(!(V&&(O[G]<=1||O[z]<=1))){var K=[D[z].x-D[G].x,D[z].y-D[G].y],re=Math.hypot(K[0],K[1]);re=re<1e-4?1e-4:re,K[0]=K[0]/re,K[1]=K[1]/re,Z&&d<_&&(re=re-k[G]-k[z]);var ne=W*(O[G]+1)*(O[z]+1)/re;Z&&d<_&&re<0?ne=S*(O[G]+1)*(O[z]+1):Z&&d<_&&re===0?ne=0:Z&&d<_&&re>0&&(ne=W*(O[G]+1)*(O[z]+1)/re),p[2*G]-=ne*K[0],p[2*z]+=ne*K[0],p[2*G+1]-=ne*K[1],p[2*z+1]+=ne*K[1]}var Q=[D[G].x-L[0],D[G].y-L[1]],ue=Math.hypot(Q[0],Q[1]);Q[0]=Q[0]/ue,Q[1]=Q[1]/ue;var he=U*(O[G]+1);p[2*G]-=he*Q[0],p[2*G+1]-=he*Q[1]}return p},h.prototype.getOptRepGraForces=function(d,_,p){for(var S=this,k=S.nodes,O=S.kg,F=S.center,D=S.prune,Z=k.length,W=9e10,U=-9e10,L=9e10,V=-9e10,$=0;$<Z;$+=1)D&&p[$]<=1||(_[$].setPos(k[$].x,k[$].y),k[$].x>=U&&(U=k[$].x),k[$].x<=W&&(W=k[$].x),k[$].y>=V&&(V=k[$].y),k[$].y<=L&&(L=k[$].y));for(var G=Math.max(U-W,V-L),z={xmid:(U+W)/2,ymid:(V+L)/2,length:G,massCenter:F,mass:Z},K=new w.default(z),re=new m.default(K),$=0;$<Z;$+=1)D&&p[$]<=1||_[$].in(K)&&re.insert(_[$]);for(var $=0;$<Z;$+=1)if(!(D&&p[$]<=1)){_[$].resetForce(),re.updateForce(_[$]),d[2*$]-=_[$].fx,d[2*$+1]-=_[$].fy;var ne=[k[$].x-F[0],k[$].y-F[1]],Q=Math.hypot(ne[0],ne[1]);Q=Q<1e-4?1e-4:Q,ne[0]=ne[0]/Q,ne[1]=ne[1]/Q;var ue=O*(p[$]+1);d[2*$]-=ue*ne[0],d[2*$+1]-=ue*ne[1]}return d},h.prototype.updatePos=function(d,_,p,S){for(var k=this,O=k.nodes,F=k.ks,D=k.tao,Z=k.prune,W=k.ksmax,U=O.length,L=[],V=[],$=0,G=0,z=0;z<U;z+=1)if(!(Z&&S[z]<=1)){var K=[d[2*z]-_[2*z],d[2*z+1]-_[2*z+1]],re=Math.hypot(K[0],K[1]),ne=[d[2*z]+_[2*z],d[2*z+1]+_[2*z+1]],Q=Math.hypot(ne[0],ne[1]);L[z]=re,V[z]=Q/2,$+=(S[z]+1)*L[z],G+=(S[z]+1)*V[z]}var ue=p;p=D*G/$,ue!==0&&(p=p>1.5*ue?1.5*ue:p);for(var z=0;z<U;z+=1)if(!(Z&&S[z]<=1)&&!((0,y.isNumber)(O[z].fx)&&(0,y.isNumber)(O[z].fy))){var he=F*p/(1+p*Math.sqrt(L[z])),Ee=Math.hypot(d[2*z],d[2*z+1]);Ee=Ee<1e-4?1e-4:Ee;var ce=W/Ee;he=he>ce?ce:he;var ve=he*d[2*z],fe=he*d[2*z+1];O[z].x+=ve,O[z].y+=fe}return{nodes:O,sg:p}},h}(A.Base);N.ForceAtlas2Layout=b},53483:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o=function(){function x(g){this.xmid=g.xmid,this.ymid=g.ymid,this.length=g.length,this.massCenter=g.massCenter||[0,0],this.mass=g.mass||1}return x.prototype.getLength=function(){return this.length},x.prototype.contains=function(g,A){var y=this.length/2;return g<=this.xmid+y&&g>=this.xmid-y&&A<=this.ymid+y&&A>=this.ymid-y},x.prototype.NW=function(){var g=this.xmid-this.length/4,A=this.ymid+this.length/4,y=this.length/2,M={xmid:g,ymid:A,length:y},w=new x(M);return w},x.prototype.NE=function(){var g=this.xmid+this.length/4,A=this.ymid+this.length/4,y=this.length/2,M={xmid:g,ymid:A,length:y},w=new x(M);return w},x.prototype.SW=function(){var g=this.xmid-this.length/4,A=this.ymid-this.length/4,y=this.length/2,M={xmid:g,ymid:A,length:y},w=new x(M);return w},x.prototype.SE=function(){var g=this.xmid+this.length/4,A=this.ymid-this.length/4,y=this.length/2,M={xmid:g,ymid:A,length:y},w=new x(M);return w},x}();N.default=o},63771:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o=function(){function x(g){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,g!=null&&(this.quad=g)}return x.prototype.insert=function(g){if(this.body==null){this.body=g;return}this._isExternal()?(this.quad&&(this.NW=new x(this.quad.NW()),this.NE=new x(this.quad.NE()),this.SW=new x(this.quad.SW()),this.SE=new x(this.quad.SE())),this._putBody(this.body),this._putBody(g),this.body=this.body.add(g)):(this.body=this.body.add(g),this._putBody(g))},x.prototype._putBody=function(g){!this.quad||(g.in(this.quad.NW())&&this.NW?this.NW.insert(g):g.in(this.quad.NE())&&this.NE?this.NE.insert(g):g.in(this.quad.SW())&&this.SW?this.SW.insert(g):g.in(this.quad.SE())&&this.SE&&this.SE.insert(g))},x.prototype._isExternal=function(){return this.NW==null&&this.NE==null&&this.SW==null&&this.SE==null},x.prototype.updateForce=function(g){if(!(this.body==null||g===this.body))if(this._isExternal())g.addForce(this.body);else{var A=this.quad?this.quad.getLength():0,y=this.body.distanceTo(g);A/y<this.theta?g.addForce(this.body):(this.NW&&this.NW.updateForce(g),this.NE&&this.NE.updateForce(g),this.SW&&this.SW.updateForce(g),this.SE&&this.SE.updateForce(g))}},x}();N.default=o},65089:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var w=function(b,v){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var _ in d)Object.prototype.hasOwnProperty.call(d,_)&&(h[_]=d[_])},w(b,v)};return function(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");w(m,b);function v(){this.constructor=m}m.prototype=b===null?Object.create(b):(v.prototype=b.prototype,new v)}}();Object.defineProperty(N,"__esModule",{value:!0}),N.FruchtermanLayout=void 0;var g=o(15383),A=o(74788),y=800,M=function(w){x(m,w);function m(b){var v=w.call(this)||this;return v.maxIteration=1e3,v.workerEnabled=!1,v.gravity=10,v.speed=5,v.clustering=!1,v.clusterGravity=10,v.nodes=[],v.edges=[],v.width=300,v.height=300,v.nodeMap={},v.nodeIdxMap={},v.onLayoutEnd=function(){},v.tick=function(){},v.animate=!0,v.updateCfg(b),v}return m.prototype.getDefaultCfg=function(){return{maxIteration:1e3,gravity:10,speed:1,clustering:!1,clusterGravity:10,animate:!0}},m.prototype.execute=function(){var b=this,v,h,d=this,_=d.nodes;if(d.timeInterval!==void 0&&typeof window!="undefined"&&window.clearInterval(d.timeInterval),!_||_.length===0){(v=d.onLayoutEnd)===null||v===void 0||v.call(d);return}!d.width&&typeof window!="undefined"&&(d.width=window.innerWidth),!d.height&&typeof window!="undefined"&&(d.height=window.innerHeight),d.center||(d.center=[d.width/2,d.height/2]);var p=d.center;if(_.length===1){_[0].x=p[0],_[0].y=p[1],(h=d.onLayoutEnd)===null||h===void 0||h.call(d);return}var S={},k={};return _.forEach(function(O,F){(0,A.isNumber)(O.x)||(O.x=Math.random()*b.width),(0,A.isNumber)(O.y)||(O.y=Math.random()*b.height),S[O.id]=O,k[O.id]=F}),d.nodeMap=S,d.nodeIdxMap=k,d.run()},m.prototype.run=function(){var b,v=this,h=v.nodes;if(!!h){var d=v.edges,_=v.maxIteration,p=v.workerEnabled,S=v.clustering,k=v.animate,O={};if(S&&h.forEach(function(Z){O[Z.cluster]===void 0&&(O[Z.cluster]={name:Z.cluster,cx:0,cy:0,count:0})}),p||!k){for(var F=0;F<_;F++)v.runOneStep(O);(b=v.onLayoutEnd)===null||b===void 0||b.call(v)}else{if(typeof window=="undefined")return;var D=0;this.timeInterval=window.setInterval(function(){var Z;v.runOneStep(O),D++,D>=_&&((Z=v.onLayoutEnd)===null||Z===void 0||Z.call(v),window.clearInterval(v.timeInterval))},0)}return{nodes:h,edges:d}}},m.prototype.runOneStep=function(b){var v,h=this,d=h.nodes;if(!!d){var _=h.edges,p=h.center,S=h.gravity,k=h.speed,O=h.clustering,F=h.height*h.width,D=Math.sqrt(F)/10,Z=F/(d.length+1),W=Math.sqrt(Z),U=[];if(d.forEach(function($,G){U[G]={x:0,y:0}}),h.applyCalculate(d,_,U,W,Z),O){for(var L in b)b[L].cx=0,b[L].cy=0,b[L].count=0;d.forEach(function($){var G=b[$.cluster];(0,A.isNumber)($.x)&&(G.cx+=$.x),(0,A.isNumber)($.y)&&(G.cy+=$.y),G.count++});for(var L in b)b[L].cx/=b[L].count,b[L].cy/=b[L].count;var V=h.clusterGravity||S;d.forEach(function($,G){if(!(!(0,A.isNumber)($.x)||!(0,A.isNumber)($.y))){var z=b[$.cluster],K=Math.sqrt(($.x-z.cx)*($.x-z.cx)+($.y-z.cy)*($.y-z.cy)),re=W*V;U[G].x-=re*($.x-z.cx)/K,U[G].y-=re*($.y-z.cy)/K}})}d.forEach(function($,G){if(!(!(0,A.isNumber)($.x)||!(0,A.isNumber)($.y))){var z=.01*W*S;U[G].x-=z*($.x-p[0]),U[G].y-=z*($.y-p[1])}}),d.forEach(function($,G){if((0,A.isNumber)($.fx)&&(0,A.isNumber)($.fy)){$.x=$.fx,$.y=$.fy;return}if(!(!(0,A.isNumber)($.x)||!(0,A.isNumber)($.y))){var z=Math.sqrt(U[G].x*U[G].x+U[G].y*U[G].y);if(z>0){var K=Math.min(D*(k/y),z);$.x+=U[G].x/z*K,$.y+=U[G].y/z*K}}}),(v=h.tick)===null||v===void 0||v.call(h)}},m.prototype.applyCalculate=function(b,v,h,d,_){var p=this;p.calRepulsive(b,h,_),v&&p.calAttractive(v,h,d)},m.prototype.calRepulsive=function(b,v,h){b.forEach(function(d,_){v[_]={x:0,y:0},b.forEach(function(p,S){if(_!==S&&!(!(0,A.isNumber)(d.x)||!(0,A.isNumber)(p.x)||!(0,A.isNumber)(d.y)||!(0,A.isNumber)(p.y))){var k=d.x-p.x,O=d.y-p.y,F=k*k+O*O;if(F===0){F=1;var D=_>S?1:-1;k=.01*D,O=.01*D}var Z=h/F;v[_].x+=k*Z,v[_].y+=O*Z}})})},m.prototype.calAttractive=function(b,v,h){var d=this;b.forEach(function(_){var p=(0,A.getEdgeTerminal)(_,"source"),S=(0,A.getEdgeTerminal)(_,"target");if(!(!p||!S)){var k=d.nodeIdxMap[p],O=d.nodeIdxMap[S];if(k!==O){var F=d.nodeMap[p],D=d.nodeMap[S];if(!(!(0,A.isNumber)(D.x)||!(0,A.isNumber)(F.x)||!(0,A.isNumber)(D.y)||!(0,A.isNumber)(F.y))){var Z=D.x-F.x,W=D.y-F.y,U=Math.sqrt(Z*Z+W*W),L=U*U/h;v[O].x-=Z/U*L,v[O].y-=W/U*L,v[k].x+=Z/U*L,v[k].y+=W/U*L}}}})},m.prototype.stop=function(){this.timeInterval&&typeof window!="undefined"&&window.clearInterval(this.timeInterval)},m.prototype.destroy=function(){var b=this;b.stop(),b.tick=null,b.nodes=null,b.edges=null,b.destroyed=!0},m.prototype.getType=function(){return"fruchterman"},m}(g.Base);N.FruchtermanLayout=M},655:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var w=function(b,v){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var _ in d)Object.prototype.hasOwnProperty.call(d,_)&&(h[_]=d[_])},w(b,v)};return function(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");w(m,b);function v(){this.constructor=m}m.prototype=b===null?Object.create(b):(v.prototype=b.prototype,new v)}}();Object.defineProperty(N,"__esModule",{value:!0}),N.GForceLayout=void 0;var g=o(15383),A=o(74788),y=function(m,b){var v;return m?(0,A.isNumber)(m)?v=function(d){return m}:v=m:v=function(d){return b||1},v},M=function(w){x(m,w);function m(b){var v=w.call(this)||this;return v.maxIteration=500,v.workerEnabled=!1,v.edgeStrength=200,v.nodeStrength=1e3,v.coulombDisScale=.005,v.damping=.9,v.maxSpeed=1e3,v.minMovement=.5,v.interval=.02,v.factor=1,v.linkDistance=1,v.gravity=10,v.preventOverlap=!0,v.collideStrength=1,v.tick=function(){},v.nodes=[],v.edges=[],v.width=300,v.height=300,v.nodeMap={},v.nodeIdxMap={},v.animate=!0,v.updateCfg(b),v}return m.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},m.prototype.execute=function(){var b,v,h=this,d=h.nodes;if(h.timeInterval!==void 0&&typeof window!="undefined"&&window.clearInterval(h.timeInterval),!d||d.length===0){(b=h.onLayoutEnd)===null||b===void 0||b.call(h);return}!h.width&&typeof window!="undefined"&&(h.width=window.innerWidth),!h.height&&typeof window!="undefined"&&(h.height=window.innerHeight),h.center||(h.center=[h.width/2,h.height/2]);var _=h.center;if(d.length===1){d[0].x=_[0],d[0].y=_[1],(v=h.onLayoutEnd)===null||v===void 0||v.call(h);return}var p={},S={};d.forEach(function(W,U){(0,A.isNumber)(W.x)||(W.x=Math.random()*h.width),(0,A.isNumber)(W.y)||(W.y=Math.random()*h.height),p[W.id]=W,S[W.id]=U}),h.nodeMap=p,h.nodeIdxMap=S,h.linkDistance=y(h.linkDistance,1),h.nodeStrength=y(h.nodeStrength,1),h.edgeStrength=y(h.edgeStrength,1);var k=h.nodeSize,O;if(h.preventOverlap){var F=h.nodeSpacing,D;(0,A.isNumber)(F)?D=function(){return F}:(0,A.isFunction)(F)?D=F:D=function(){return 0},k?(0,A.isArray)(k)?O=function(U){return Math.max(k[0],k[1])+D(U)}:O=function(U){return k+D(U)}:O=function(U){return U.size?(0,A.isArray)(U.size)?Math.max(U.size[0],U.size[1])+D(U):(0,A.isObject)(U.size)?Math.max(U.size.width,U.size.height)+D(U):U.size+D(U):10+D(U)}}h.nodeSize=O;var Z=h.edges;h.degrees=(0,A.getDegree)(d.length,h.nodeIdxMap,Z),h.getMass||(h.getMass=function(W){var U=W.mass||h.degrees[h.nodeIdxMap[W.id]].all||1;return U}),h.run()},m.prototype.run=function(){var b,v=this,h=v.maxIteration,d=v.nodes,_=v.workerEnabled,p=v.minMovement,S=v.animate;if(!!d)if(_||!S){for(var k=0;k<h;k++){var O=v.runOneStep(k);if(v.reachMoveThreshold(d,O,p))break}(b=v.onLayoutEnd)===null||b===void 0||b.call(v)}else{if(typeof window=="undefined")return;var F=0;this.timeInterval=window.setInterval(function(){var D,Z;if(!!d){var W=v.runOneStep(F)||[];v.reachMoveThreshold(d,W,p)&&((D=v.onLayoutEnd)===null||D===void 0||D.call(v),window.clearInterval(v.timeInterval)),F++,F>=h&&((Z=v.onLayoutEnd)===null||Z===void 0||Z.call(v),window.clearInterval(v.timeInterval))}},0)}},m.prototype.reachMoveThreshold=function(b,v,h){var d=0;return b.forEach(function(_,p){var S=_.x-v[p].x,k=_.y-v[p].y;d+=Math.sqrt(S*S+k*k)}),d/=b.length,d<h},m.prototype.runOneStep=function(b){var v,h=this,d=h.nodes,_=h.edges,p=[],S=[];if(!!d){d.forEach(function(F,D){p[2*D]=0,p[2*D+1]=0,S[2*D]=0,S[2*D+1]=0}),h.calRepulsive(p,d),_&&h.calAttractive(p,_),h.calGravity(p,d);var k=Math.max(.02,h.interval-b*.002);h.updateVelocity(p,S,k,d);var O=[];return d.forEach(function(F){O.push({x:F.x,y:F.y})}),h.updatePosition(S,k,d),(v=h.tick)===null||v===void 0||v.call(h),O}},m.prototype.calRepulsive=function(b,v){var h=this,d=h.getMass,_=h.factor,p=h.coulombDisScale,S=h.preventOverlap,k=h.collideStrength,O=k===void 0?1:k,F=h.nodeStrength,D=h.nodeSize;v.forEach(function(Z,W){var U=d?d(Z):1;v.forEach(function(L,V){if(!(W>=V)){var $=Z.x-L.x,G=Z.y-L.y;$===0&&G===0&&($=Math.random()*.01,G=Math.random()*.01);var z=$*$+G*G,K=Math.sqrt(z),re=(K+.1)*p,ne=$/K,Q=G/K,ue=(F(Z)+F(L))*.5*_/(re*re),he=d?d(L):1;if(b[2*W]+=ne*ue,b[2*W+1]+=Q*ue,b[2*V]-=ne*ue,b[2*V+1]-=Q*ue,S&&(D(Z)+D(L))/2>K){var Ee=O*(F(Z)+F(L))*.5/z;b[2*W]+=ne*Ee/U,b[2*W+1]+=Q*Ee/U,b[2*V]-=ne*Ee/he,b[2*V+1]-=Q*Ee/he}}})})},m.prototype.calAttractive=function(b,v){var h=this,d=h.nodeMap,_=h.nodeIdxMap,p=h.linkDistance,S=h.edgeStrength,k=h.nodeSize,O=h.getMass;v.forEach(function(F,D){var Z=(0,A.getEdgeTerminal)(F,"source"),W=(0,A.getEdgeTerminal)(F,"target"),U=d[Z],L=d[W],V=L.x-U.x,$=L.y-U.y;V===0&&$===0&&(V=Math.random()*.01,$=Math.random()*.01);var G=Math.sqrt(V*V+$*$),z=V/G,K=$/G,re=p(F,U,L)||1+(k(U)+k(L)||0)/2,ne=re-G,Q=ne*S(F),ue=_[Z],he=_[W],Ee=O?O(U):1,ce=O?O(L):1;b[2*ue]-=z*Q/Ee,b[2*ue+1]-=K*Q/Ee,b[2*he]+=z*Q/ce,b[2*he+1]+=K*Q/ce})},m.prototype.calGravity=function(b,v){for(var h=this,d=h.center,_=h.gravity,p=h.degrees,S=v.length,k=0;k<S;k++){var O=v[k],F=O.x-d[0],D=O.y-d[1],Z=_;if(h.getCenter){var W=h.getCenter(O,p[k].all);W&&(0,A.isNumber)(W[0])&&(0,A.isNumber)(W[1])&&(0,A.isNumber)(W[2])&&(F=O.x-W[0],D=O.y-W[1],Z=W[2])}!Z||(b[2*k]-=Z*F,b[2*k+1]-=Z*D)}},m.prototype.updateVelocity=function(b,v,h,d){var _=this,p=h*_.damping;d.forEach(function(S,k){var O=b[2*k]*p||.01,F=b[2*k+1]*p||.01,D=Math.sqrt(O*O+F*F);if(D>_.maxSpeed){var Z=_.maxSpeed/D;O=Z*O,F=Z*F}v[2*k]=O,v[2*k+1]=F})},m.prototype.updatePosition=function(b,v,h){h.forEach(function(d,_){if((0,A.isNumber)(d.fx)&&(0,A.isNumber)(d.fy)){d.x=d.fx,d.y=d.fy;return}var p=b[2*_]*v,S=b[2*_+1]*v;d.x+=p,d.y+=S})},m.prototype.stop=function(){this.timeInterval&&typeof window!="undefined"&&window.clearInterval(this.timeInterval)},m.prototype.destroy=function(){var b=this;b.stop(),b.tick=null,b.nodes=null,b.edges=null,b.destroyed=!0},m.prototype.getType=function(){return"gForce"},m}(g.Base);N.GForceLayout=M},70925:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var d=function(p,S){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,O){k.__proto__=O}||function(k,O){for(var F in O)Object.prototype.hasOwnProperty.call(O,F)&&(k[F]=O[F])},d(p,S)};return function(_,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");d(_,p);function S(){this.constructor=_}_.prototype=p===null?Object.create(p):(S.prototype=p.prototype,new S)}}(),g=this&&this.__awaiter||function(d,_,p,S){function k(O){return O instanceof p?O:new p(function(F){F(O)})}return new(p||(p=Promise))(function(O,F){function D(U){try{W(S.next(U))}catch(L){F(L)}}function Z(U){try{W(S.throw(U))}catch(L){F(L)}}function W(U){U.done?O(U.value):k(U.value).then(D,Z)}W((S=S.apply(d,_||[])).next())})},A=this&&this.__generator||function(d,_){var p={label:0,sent:function(){if(O[0]&1)throw O[1];return O[1]},trys:[],ops:[]},S,k,O,F;return F={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function D(W){return function(U){return Z([W,U])}}function Z(W){if(S)throw new TypeError("Generator is already executing.");for(;F&&(F=0,W[0]&&(p=0)),p;)try{if(S=1,k&&(O=W[0]&2?k.return:W[0]?k.throw||((O=k.return)&&O.call(k),0):k.next)&&!(O=O.call(k,W[1])).done)return O;switch(k=0,O&&(W=[W[0]&2,O.value]),W[0]){case 0:case 1:O=W;break;case 4:return p.label++,{value:W[1],done:!1};case 5:p.label++,k=W[1],W=[0];continue;case 7:W=p.ops.pop(),p.trys.pop();continue;default:if(O=p.trys,!(O=O.length>0&&O[O.length-1])&&(W[0]===6||W[0]===2)){p=0;continue}if(W[0]===3&&(!O||W[1]>O[0]&&W[1]<O[3])){p.label=W[1];break}if(W[0]===6&&p.label<O[1]){p.label=O[1],O=W;break}if(O&&p.label<O[2]){p.label=O[2],p.ops.push(W);break}O[2]&&p.ops.pop(),p.trys.pop();continue}W=_.call(d,p)}catch(U){W=[6,U],k=0}finally{S=O=0}if(W[0]&5)throw W[1];return{value:W[0]?W[1]:void 0,done:!0}}};Object.defineProperty(N,"__esModule",{value:!0}),N.FruchtermanGPULayout=void 0;var y=o(15383),M=o(74788),w=o(32082),m=o(5168),b=o(60405),v=o(30135),h=function(d){x(_,d);function _(p){var S=d.call(this)||this;return S.maxIteration=1e3,S.gravity=10,S.speed=1,S.clustering=!1,S.clusterField="cluster",S.clusterGravity=10,S.workerEnabled=!1,S.nodes=[],S.edges=[],S.width=300,S.height=300,S.nodeMap={},S.nodeIdxMap={},S.updateCfg(p),S}return _.prototype.getDefaultCfg=function(){return{maxIteration:1e3,gravity:10,speed:1,clustering:!1,clusterGravity:10}},_.prototype.execute=function(){return g(this,void 0,void 0,function(){var p,S,k,O,F,D=this;return A(this,function(Z){switch(Z.label){case 0:return p=this,S=p.nodes,!S||S.length===0?(p.onLayoutEnd&&p.onLayoutEnd(),[2]):(!p.width&&typeof window!="undefined"&&(p.width=window.innerWidth),!p.height&&typeof window!="undefined"&&(p.height=window.innerHeight),p.center||(p.center=[p.width/2,p.height/2]),k=p.center,S.length===1?(S[0].x=k[0],S[0].y=k[1],p.onLayoutEnd&&p.onLayoutEnd(),[2]):(O={},F={},S.forEach(function(W,U){(0,M.isNumber)(W.x)||(W.x=Math.random()*D.width),(0,M.isNumber)(W.y)||(W.y=Math.random()*D.height),O[W.id]=W,F[W.id]=U}),p.nodeMap=O,p.nodeIdxMap=F,[4,p.run()]));case 1:return Z.sent(),[2]}})})},_.prototype.executeWithWorker=function(p,S){return g(this,void 0,void 0,function(){var k,O,F,D,Z,W=this;return A(this,function(U){switch(U.label){case 0:return k=this,O=k.nodes,F=k.center,!O||O.length===0?[2]:O.length===1?(O[0].x=F[0],O[0].y=F[1],[2]):(D={},Z={},O.forEach(function(L,V){(0,M.isNumber)(L.x)||(L.x=Math.random()*W.width),(0,M.isNumber)(L.y)||(L.y=Math.random()*W.height),D[L.id]=L,Z[L.id]=V}),k.nodeMap=D,k.nodeIdxMap=Z,[4,k.run(p,S)]);case 1:return U.sent(),[2]}})})},_.prototype.run=function(p,S){return g(this,void 0,void 0,function(){var k,O,F,D,Z,W,U,L,V,$,G,z,K,re,ne,Q,ue,he,Ee,ce,ve,fe,we,me,Pe,pe,Ie=this;return A(this,function(Je){switch(Je.label){case 0:for(k=this,O=k.nodes,F=k.edges,D=k.maxIteration,Z=k.center,W=k.height*k.width,U=Math.sqrt(W)/10,L=W/(O.length+1),V=Math.sqrt(L),$=k.speed,G=k.clustering,z=(0,m.attributesToTextureData)([k.clusterField],O),K=z.array,re=z.count,O.forEach(function(ke,De){var Fe=0,Qe=0;(0,M.isNumber)(ke.fx)&&(0,M.isNumber)(ke.fy)&&(Fe=ke.fx||.001,Qe=ke.fy||.001),K[4*De+1]=Fe,K[4*De+2]=Qe}),ne=O.length,Q=(0,m.buildTextureData)(O,F),ue=Q.maxEdgePerVetex,he=Q.array,Ee=k.workerEnabled,Ee?ce=w.World.create({canvas:p,engineOptions:{supportCompute:!0}}):ce=w.World.create({engineOptions:{supportCompute:!0}}),ve=k.onLayoutEnd,fe=[],we=0;we<re;we++)fe.push(0,0,0,0);return me=ce.createKernel(b.fruchtermanBundle).setDispatch([ne,1,1]).setBinding({u_Data:he,u_K:V,u_K2:L,u_Gravity:k.gravity,u_ClusterGravity:k.clusterGravity||k.gravity||1,u_Speed:$,u_MaxDisplace:U,u_Clustering:G?1:0,u_Center:Z,u_AttributeArray:K,u_ClusterCenters:fe,MAX_EDGE_PER_VERTEX:ue,VERTEX_COUNT:ne}),G&&(Pe=ce.createKernel(b.clusterBundle).setDispatch([re,1,1]).setBinding({u_Data:he,u_NodeAttributes:K,u_ClusterCenters:fe,VERTEX_COUNT:ne,CLUSTER_COUNT:re})),pe=function(){return g(Ie,void 0,void 0,function(){var De,Fe;return A(this,function(Qe){switch(Qe.label){case 0:De=0,Qe.label=1;case 1:return De<D?[4,me.execute()]:[3,6];case 2:return Qe.sent(),G?(Pe.setBinding({u_Data:me}),[4,Pe.execute()]):[3,4];case 3:Qe.sent(),me.setBinding({u_ClusterCenters:Pe}),Qe.label=4;case 4:me.setBinding({u_MaxDisplace:U*=.99}),Qe.label=5;case 5:return De++,[3,1];case 6:return[4,me.getOutput()];case 7:return Fe=Qe.sent(),p?S.postMessage({type:v.LAYOUT_MESSAGE.GPUEND,vertexEdgeData:Fe}):O.forEach(function(qe,et){var dt=Fe[4*et],Ke=Fe[4*et+1];qe.x=dt,qe.y=Ke}),ve&&ve(),[2]}})})},[4,pe()];case 1:return Je.sent(),[2]}})})},_.prototype.getType=function(){return"fruchterman-gpu"},_}(y.Base);N.FruchtermanGPULayout=h},60405:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.clusterBundle=N.clusterCode=N.fruchtermanBundle=N.fruchtermanCode=void 0,N.fruchtermanCode=`
|
||
import { globalInvocationID } from 'g-webgpu';
|
||
const MAX_EDGE_PER_VERTEX;
|
||
const VERTEX_COUNT;
|
||
@numthreads(1, 1, 1)
|
||
class Fruchterman {
|
||
@in @out
|
||
u_Data: vec4[];
|
||
@in
|
||
u_K: float;
|
||
@in
|
||
u_K2: float;
|
||
|
||
@in
|
||
u_Center: vec2;
|
||
@in
|
||
u_Gravity: float;
|
||
@in
|
||
u_ClusterGravity: float;
|
||
@in
|
||
u_Speed: float;
|
||
@in
|
||
u_MaxDisplace: float;
|
||
@in
|
||
u_Clustering: float;
|
||
@in
|
||
u_AttributeArray: vec4[];
|
||
@in
|
||
u_ClusterCenters: vec4[];
|
||
calcRepulsive(i: int, currentNode: vec4): vec2 {
|
||
let dx = 0, dy = 0;
|
||
for (let j = 0; j < VERTEX_COUNT; j++) {
|
||
if (i != j) {
|
||
const nextNode = this.u_Data[j];
|
||
const xDist = currentNode[0] - nextNode[0];
|
||
const yDist = currentNode[1] - nextNode[1];
|
||
const dist = (xDist * xDist + yDist * yDist) + 0.01;
|
||
let param = this.u_K2 / dist;
|
||
|
||
if (dist > 0.0) {
|
||
dx += param * xDist;
|
||
dy += param * yDist;
|
||
if (xDist == 0 && yDist == 0) {
|
||
const sign = i < j ? 1 : -1;
|
||
dx += param * sign;
|
||
dy += param * sign;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
return [dx, dy];
|
||
}
|
||
calcGravity(currentNode: vec4, nodeAttributes: vec4): vec2 { //
|
||
let dx = 0, dy = 0;
|
||
const vx = currentNode[0] - this.u_Center[0];
|
||
const vy = currentNode[1] - this.u_Center[1];
|
||
const gf = 0.01 * this.u_K * this.u_Gravity;
|
||
dx = gf * vx;
|
||
dy = gf * vy;
|
||
if (this.u_Clustering == 1) {
|
||
const clusterIdx = int(nodeAttributes[0]);
|
||
const center = this.u_ClusterCenters[clusterIdx];
|
||
const cvx = currentNode[0] - center[0];
|
||
const cvy = currentNode[1] - center[1];
|
||
const dist = sqrt(cvx * cvx + cvy * cvy) + 0.01;
|
||
const parma = this.u_K * this.u_ClusterGravity / dist;
|
||
dx += parma * cvx;
|
||
dy += parma * cvy;
|
||
}
|
||
return [dx, dy];
|
||
}
|
||
calcAttractive(i: int, currentNode: vec4): vec2 {
|
||
let dx = 0, dy = 0;
|
||
const arr_offset = int(floor(currentNode[2] + 0.5));
|
||
const length = int(floor(currentNode[3] + 0.5));
|
||
const node_buffer: vec4;
|
||
for (let p = 0; p < MAX_EDGE_PER_VERTEX; p++) {
|
||
if (p >= length) break;
|
||
const arr_idx = arr_offset + p;
|
||
// when arr_idx % 4 == 0 update currentNodedx_buffer
|
||
const buf_offset = arr_idx - arr_idx / 4 * 4;
|
||
if (p == 0 || buf_offset == 0) {
|
||
node_buffer = this.u_Data[int(arr_idx / 4)];
|
||
}
|
||
const float_j = buf_offset == 0 ? node_buffer[0] :
|
||
buf_offset == 1 ? node_buffer[1] :
|
||
buf_offset == 2 ? node_buffer[2] :
|
||
node_buffer[3];
|
||
const nextNode = this.u_Data[int(float_j)];
|
||
const xDist = currentNode[0] - nextNode[0];
|
||
const yDist = currentNode[1] - nextNode[1];
|
||
const dist = sqrt(xDist * xDist + yDist * yDist) + 0.01;
|
||
let attractiveF = dist / this.u_K;
|
||
|
||
if (dist > 0.0) {
|
||
dx -= xDist * attractiveF;
|
||
dy -= yDist * attractiveF;
|
||
if (xDist == 0 && yDist == 0) {
|
||
const sign = i < int(float_j) ? 1 : -1;
|
||
dx -= sign * attractiveF;
|
||
dy -= sign * attractiveF;
|
||
}
|
||
}
|
||
}
|
||
return [dx, dy];
|
||
}
|
||
@main
|
||
compute() {
|
||
const i = globalInvocationID.x;
|
||
const currentNode = this.u_Data[i];
|
||
let dx = 0, dy = 0;
|
||
if (i >= VERTEX_COUNT) {
|
||
this.u_Data[i] = currentNode;
|
||
return;
|
||
}
|
||
|
||
// [gravity, fx, fy, 0]
|
||
const nodeAttributes = this.u_AttributeArray[i];
|
||
|
||
if (nodeAttributes[1] != 0 && nodeAttributes[2] != 0) {
|
||
// the node is fixed
|
||
this.u_Data[i] = [
|
||
nodeAttributes[1],
|
||
nodeAttributes[2],
|
||
currentNode[2],
|
||
currentNode[3]
|
||
];
|
||
return;
|
||
}
|
||
|
||
// repulsive
|
||
const repulsive = this.calcRepulsive(i, currentNode);
|
||
dx += repulsive[0];
|
||
dy += repulsive[1];
|
||
// attractive
|
||
const attractive = this.calcAttractive(i, currentNode);
|
||
dx += attractive[0];
|
||
dy += attractive[1];
|
||
// gravity
|
||
const gravity = this.calcGravity(currentNode, nodeAttributes);
|
||
dx -= gravity[0];
|
||
dy -= gravity[1];
|
||
// speed
|
||
dx *= this.u_Speed;
|
||
dy *= this.u_Speed;
|
||
|
||
// move
|
||
const distLength = sqrt(dx * dx + dy * dy);
|
||
if (distLength > 0.0) {
|
||
const limitedDist = min(this.u_MaxDisplace * this.u_Speed, distLength);
|
||
this.u_Data[i] = [
|
||
currentNode[0] + dx / distLength * limitedDist,
|
||
currentNode[1] + dy / distLength * limitedDist,
|
||
currentNode[2],
|
||
currentNode[3]
|
||
];
|
||
}
|
||
}
|
||
}
|
||
`,N.fruchtermanBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_K;\\nuniform float u_K2;\\nuniform vec2 u_Center;\\nuniform float u_Gravity;\\nuniform float u_ClusterGravity;\\nuniform float u_Speed;\\nuniform float u_MaxDisplace;\\nuniform float u_Clustering;\\nuniform sampler2D u_AttributeArray;\\nuniform vec2 u_AttributeArraySize;\\nvec4 getDatau_AttributeArray(vec2 address2D) {\\n return vec4(texture2D(u_AttributeArray, address2D).rgba);\\n}\\nvec4 getDatau_AttributeArray(float address1D) {\\n return getDatau_AttributeArray(addrTranslation_1Dto2D(address1D, u_AttributeArraySize));\\n}\\nvec4 getDatau_AttributeArray(int address1D) {\\n return getDatau_AttributeArray(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat param = u_K2 / dist;\\nif (dist > 0.0) {dx += param * xDist;\\ndy += param * yDist;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\ndx += param * sign;\\ndy += param * sign;}}}}\\nreturn vec2(dx, dy);}\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfloat vx = currentNode.x - u_Center.x;\\nfloat vy = currentNode.y - u_Center.y;\\nfloat gf = (0.01 * u_K) * u_Gravity;\\ndx = gf * vx;\\ndy = gf * vy;\\nif (u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\nvec4 center = getDatau_ClusterCenters(clusterIdx);\\nfloat cvx = currentNode.x - center.x;\\nfloat cvy = currentNode.y - center.y;\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\nfloat parma = (u_K * u_ClusterGravity) / dist;\\ndx += parma * cvx;\\ndy += parma * cvy;}\\nreturn vec2(dx, dy);}\\nvec2 calcAttractive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nint arr_offset = int(floor(currentNode.z + 0.5));\\nint length = int(floor(currentNode.w + 0.5));\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + int(p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat attractiveF = dist / u_K;\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\ndy -= yDist * attractiveF;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\ndx -= sign * attractiveF;\\ndy -= sign * attractiveF;}}}\\nreturn vec2(dx, dy);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nif (i >= VERTEX_COUNT) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes = getDatau_AttributeArray(i);\\nif ((nodeAttributes.y != 0.0) && (nodeAttributes.z != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes.y, nodeAttributes.z, currentNode.z, currentNode.w));\\nreturn ;}\\nvec2 repulsive = calcRepulsive(i, currentNode);\\ndx += repulsive.x;\\ndy += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode);\\ndx += attractive.x;\\ndy += attractive.y;\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\ndx -= gravity.x;\\ndy -= gravity.y;\\ndx *= u_Speed;\\ndy *= u_Speed;\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\nif (distLength > 0.0) {float limitedDist = min(u_MaxDisplace * u_Speed, distLength);\\ngl_FragColor = vec4(vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_K","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_K2","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Center","type":"vec2<f32>","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Gravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterGravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Speed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_MaxDisplace","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Clustering","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AttributeArray","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',N.clusterCode=`
|
||
import { globalInvocationID } from 'g-webgpu';
|
||
const VERTEX_COUNT;
|
||
const CLUSTER_COUNT;
|
||
@numthreads(1, 1, 1)
|
||
class CalcCenter {
|
||
@in
|
||
u_Data: vec4[];
|
||
@in
|
||
u_NodeAttributes: vec4[]; // [[clusterIdx, 0, 0, 0], ...]
|
||
@in @out
|
||
u_ClusterCenters: vec4[]; // [[cx, cy, nodeCount, clusterIdx], ...]
|
||
@main
|
||
compute() {
|
||
const i = globalInvocationID.x;
|
||
const center = this.u_ClusterCenters[i];
|
||
let sumx = 0;
|
||
let sumy = 0;
|
||
let count = 0;
|
||
for (let j = 0; j < VERTEX_COUNT; j++) {
|
||
const attributes = this.u_NodeAttributes[j];
|
||
const clusterIdx = int(attributes[0]);
|
||
const vertex = this.u_Data[j];
|
||
if (clusterIdx == i) {
|
||
sumx += vertex.x;
|
||
sumy += vertex.y;
|
||
count += 1;
|
||
}
|
||
}
|
||
this.u_ClusterCenters[i] = [
|
||
sumx / count,
|
||
sumy / count,
|
||
count,
|
||
i
|
||
];
|
||
}
|
||
}
|
||
`,N.clusterBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributes;\\nuniform vec2 u_NodeAttributesSize;\\nvec4 getDatau_NodeAttributes(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributes, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributes(float address1D) {\\n return getDatau_NodeAttributes(addrTranslation_1Dto2D(address1D, u_NodeAttributesSize));\\n}\\nvec4 getDatau_NodeAttributes(int address1D) {\\n return getDatau_NodeAttributes(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 center = getDatau_ClusterCenters(i);\\nfloat sumx = 0.0;\\nfloat sumy = 0.0;\\nfloat count = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = getDatau_NodeAttributes(j);\\nint clusterIdx = int(attributes.x);\\nvec4 vertex = getDatau_Data(j);\\nif (clusterIdx == i) {sumx += vertex.x;\\nsumy += vertex.y;\\ncount += 1.0;}}\\ngl_FragColor = vec4(vec4(sumx / count, sumy / count, count, i));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"CLUSTER_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributes","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_ClusterCenters","size":[1,1],"length":1},"needPingpong":true}}'},25174:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var _=function(S,k){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,F){O.__proto__=F}||function(O,F){for(var D in F)Object.prototype.hasOwnProperty.call(F,D)&&(O[D]=F[D])},_(S,k)};return function(p,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");_(p,S);function k(){this.constructor=p}p.prototype=S===null?Object.create(S):(k.prototype=S.prototype,new k)}}(),g=this&&this.__awaiter||function(_,p,S,k){function O(F){return F instanceof S?F:new S(function(D){D(F)})}return new(S||(S=Promise))(function(F,D){function Z(L){try{U(k.next(L))}catch(V){D(V)}}function W(L){try{U(k.throw(L))}catch(V){D(V)}}function U(L){L.done?F(L.value):O(L.value).then(Z,W)}U((k=k.apply(_,p||[])).next())})},A=this&&this.__generator||function(_,p){var S={label:0,sent:function(){if(F[0]&1)throw F[1];return F[1]},trys:[],ops:[]},k,O,F,D;return D={next:Z(0),throw:Z(1),return:Z(2)},typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function Z(U){return function(L){return W([U,L])}}function W(U){if(k)throw new TypeError("Generator is already executing.");for(;D&&(D=0,U[0]&&(S=0)),S;)try{if(k=1,O&&(F=U[0]&2?O.return:U[0]?O.throw||((F=O.return)&&F.call(O),0):O.next)&&!(F=F.call(O,U[1])).done)return F;switch(O=0,F&&(U=[U[0]&2,F.value]),U[0]){case 0:case 1:F=U;break;case 4:return S.label++,{value:U[1],done:!1};case 5:S.label++,O=U[1],U=[0];continue;case 7:U=S.ops.pop(),S.trys.pop();continue;default:if(F=S.trys,!(F=F.length>0&&F[F.length-1])&&(U[0]===6||U[0]===2)){S=0;continue}if(U[0]===3&&(!F||U[1]>F[0]&&U[1]<F[3])){S.label=U[1];break}if(U[0]===6&&S.label<F[1]){S.label=F[1],F=U;break}if(F&&S.label<F[2]){S.label=F[2],S.ops.push(U);break}F[2]&&S.ops.pop(),S.trys.pop();continue}U=p.call(_,S)}catch(L){U=[6,L],O=0}finally{k=F=0}if(U[0]&5)throw U[1];return{value:U[0]?U[1]:void 0,done:!0}}};Object.defineProperty(N,"__esModule",{value:!0}),N.GForceGPULayout=void 0;var y=o(15383),M=o(74788),w=o(32082),m=o(5168),b=o(28059),v=o(28863),h=o(30135),d=function(_){x(p,_);function p(S){var k=_.call(this)||this;return k.maxIteration=1e3,k.edgeStrength=200,k.nodeStrength=1e3,k.coulombDisScale=.005,k.damping=.9,k.maxSpeed=1e3,k.minMovement=.5,k.interval=.02,k.factor=1,k.linkDistance=1,k.gravity=10,k.workerEnabled=!1,k.nodes=[],k.edges=[],k.width=300,k.height=300,k.nodeMap={},k.nodeIdxMap={},k.updateCfg(S),k}return p.prototype.getDefaultCfg=function(){return{maxIteration:2e3,gravity:10,clustering:!1,clusterGravity:10}},p.prototype.execute=function(){return g(this,void 0,void 0,function(){var S,k,O,F,D;return A(this,function(Z){switch(Z.label){case 0:return S=this,k=S.nodes,!k||k.length===0?(S.onLayoutEnd&&S.onLayoutEnd(),[2]):(!S.width&&typeof window!="undefined"&&(S.width=window.innerWidth),!S.height&&typeof window!="undefined"&&(S.height=window.innerHeight),S.center||(S.center=[S.width/2,S.height/2]),O=S.center,k.length===1?(k[0].x=O[0],k[0].y=O[1],S.onLayoutEnd&&S.onLayoutEnd(),[2]):(F={},D={},k.forEach(function(W,U){(0,M.isNumber)(W.x)||(W.x=Math.random()*S.width),(0,M.isNumber)(W.y)||(W.y=Math.random()*S.height),F[W.id]=W,D[W.id]=U}),S.nodeMap=F,S.nodeIdxMap=D,S.nodeStrength=(0,m.proccessToFunc)(S.nodeStrength,1),S.edgeStrength=(0,m.proccessToFunc)(S.edgeStrength,1),[4,S.run()]));case 1:return Z.sent(),[2]}})})},p.prototype.executeWithWorker=function(S,k){var O=this,F=O.nodes,D=O.center;if(!(!F||F.length===0)){if(F.length===1){F[0].x=D[0],F[0].y=D[1];return}var Z={},W={};F.forEach(function(U,L){(0,M.isNumber)(U.x)||(U.x=Math.random()*O.width),(0,M.isNumber)(U.y)||(U.y=Math.random()*O.height),Z[U.id]=U,W[U.id]=L}),O.nodeMap=Z,O.nodeIdxMap=W,O.nodeStrength=(0,m.proccessToFunc)(O.nodeStrength,1),O.edgeStrength=(0,m.proccessToFunc)(O.edgeStrength,1),O.run(S,k)}},p.prototype.run=function(S,k){return g(this,void 0,void 0,function(){var O,F,D,Z,W,U,L,V,$,G,z,K,re,ne,Q,ue,he,Ee,ce,ve,fe,we,me,Pe,pe,Ie,Je,ke=this;return A(this,function(De){switch(De.label){case 0:for(O=this,F=O.nodes,D=O.edges,Z=O.maxIteration,!O.width&&typeof window!="undefined"&&(O.width=window.innerWidth),!O.height&&typeof window!="undefined"&&(O.height=window.innerHeight),W=F.length,O.linkDistance=(0,m.proccessToFunc)(O.linkDistance),O.edgeStrength=(0,m.proccessToFunc)(O.edgeStrength),U=(0,m.buildTextureDataWithTwoEdgeAttr)(F,D,O.linkDistance,O.edgeStrength),L=U.maxEdgePerVetex,V=U.array,O.degrees=(0,b.getDegree)(F.length,O.nodeIdxMap,D).map(function(Fe){return Fe.all}),$=[],G=[],z=[],K=[],re=[],ne=[],Q=[],O.getMass||(O.getMass=function(Fe){return O.degrees[O.nodeIdxMap[Fe.id]]||1}),ue=O.gravity,he=O.center,F.forEach(function(Fe,Qe){$.push(O.getMass(Fe)),G.push(O.nodeStrength(Fe)),O.degrees[Qe]||(O.degrees[Qe]=0);var qe=[he[0],he[1],ue];if(O.getCenter){var et=O.getCenter(Fe,O.degrees[Qe]);et&&(0,M.isNumber)(et[0])&&(0,M.isNumber)(et[1])&&(0,M.isNumber)(et[2])&&(qe=et)}z.push(qe[0]),K.push(qe[1]),re.push(qe[2]),(0,M.isNumber)(Fe.fx)&&(0,M.isNumber)(Fe.fy)?(ne.push(Fe.fx||.001),Q.push(Fe.fy||.001)):(ne.push(0),Q.push(0))}),Ee=(0,m.arrayToTextureData)([$,O.degrees,G,ne]),ce=(0,m.arrayToTextureData)([z,K,re,Q]),ve=O.workerEnabled,ve?fe=w.World.create({canvas:S,engineOptions:{supportCompute:!0}}):fe=w.World.create({engineOptions:{supportCompute:!0}}),we=O.onLayoutEnd,me=[],V.forEach(function(Fe){me.push(Fe)}),Pe=0;Pe<4;Pe++)me.push(0);return pe=fe.createKernel(v.gForceBundle).setDispatch([W,1,1]).setBinding({u_Data:V,u_damping:O.damping,u_maxSpeed:O.maxSpeed,u_minMovement:O.minMovement,u_coulombDisScale:O.coulombDisScale,u_factor:O.factor,u_NodeAttributeArray1:Ee,u_NodeAttributeArray2:ce,MAX_EDGE_PER_VERTEX:L,VERTEX_COUNT:W,u_AveMovement:me,u_interval:O.interval}),Ie=fe.createKernel(v.aveMovementBundle).setDispatch([1,1,1]).setBinding({u_Data:V,VERTEX_COUNT:W,u_AveMovement:[0,0,0,0]}),Je=function(){return g(ke,void 0,void 0,function(){var Qe,qe,et;return A(this,function(dt){switch(dt.label){case 0:Qe=0,dt.label=1;case 1:return Qe<Z?[4,pe.execute()]:[3,5];case 2:return dt.sent(),Ie.setBinding({u_Data:pe}),[4,Ie.execute()];case 3:dt.sent(),qe=Math.max(.02,O.interval-Qe*.002),pe.setBinding({u_interval:qe,u_AveMovement:Ie}),dt.label=4;case 4:return Qe++,[3,1];case 5:return[4,pe.getOutput()];case 6:return et=dt.sent(),S?k.postMessage({type:h.LAYOUT_MESSAGE.GPUEND,vertexEdgeData:et}):F.forEach(function(Ke,Ge){var wt=et[4*Ge],Vt=et[4*Ge+1];Ke.x=wt,Ke.y=Vt}),we&&we(),[2]}})})},[4,Je()];case 1:return De.sent(),[2]}})})},p.prototype.getType=function(){return"gForce-gpu"},p}(y.Base);N.GForceGPULayout=d},28863:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.aveMovementBundle=N.aveMovementCode=N.gForceBundle=N.gForceCode=void 0,N.gForceCode=`
|
||
import { globalInvocationID } from 'g-webgpu';
|
||
|
||
const MAX_EDGE_PER_VERTEX;
|
||
const VERTEX_COUNT;
|
||
const SHIFT_20 = 1048576;
|
||
|
||
@numthreads(1, 1, 1)
|
||
class GGForce {
|
||
@in @out
|
||
u_Data: vec4[];
|
||
|
||
@in
|
||
u_damping: float;
|
||
|
||
@in
|
||
u_maxSpeed: float;
|
||
|
||
@in
|
||
u_minMovement: float;
|
||
|
||
@in
|
||
u_AveMovement: vec4[];
|
||
|
||
@in
|
||
u_coulombDisScale: float;
|
||
|
||
@in
|
||
u_factor: float;
|
||
|
||
@in
|
||
u_NodeAttributeArray1: vec4[];
|
||
|
||
@in
|
||
u_NodeAttributeArray2: vec4[];
|
||
|
||
@in
|
||
u_interval: float;
|
||
|
||
unpack_float(packedValue: float): ivec2 {
|
||
const packedIntValue = int(packedValue);
|
||
const v0 = packedIntValue / SHIFT_20;
|
||
return [v0, packedIntValue - v0 * SHIFT_20];
|
||
}
|
||
|
||
calcRepulsive(i: int, currentNode: vec4): vec2 {
|
||
let ax = 0, ay = 0;
|
||
for (let j: int = 0; j < VERTEX_COUNT; j++) {
|
||
if (i != j) {
|
||
const nextNode = this.u_Data[j];
|
||
const vx = currentNode[0] - nextNode[0];
|
||
const vy = currentNode[1] - nextNode[1];
|
||
const dist = sqrt(vx * vx + vy * vy) + 0.01;
|
||
const n_dist = (dist + 0.1) * this.u_coulombDisScale;
|
||
const direx = vx / dist;
|
||
const direy = vy / dist;
|
||
const attributesi = this.u_NodeAttributeArray1[i];
|
||
const attributesj = this.u_NodeAttributeArray1[j];
|
||
const massi = attributesi[0];
|
||
const nodeStrengthi = attributesi[2];
|
||
const nodeStrengthj = attributesj[2];
|
||
const nodeStrength = (nodeStrengthi + nodeStrengthj) / 2;
|
||
// const param = nodeStrength * this.u_factor / (n_dist * n_dist * massi);
|
||
const param = nodeStrength * this.u_factor / (n_dist * n_dist);
|
||
ax += direx * param;
|
||
ay += direy * param;
|
||
}
|
||
}
|
||
return [ax, ay];
|
||
}
|
||
|
||
calcGravity(i: int, currentNode: vec4, attributes2: vec4): vec2 {
|
||
// note: attributes2 = [centerX, centerY, gravity, 0]
|
||
|
||
const vx = currentNode[0] - attributes2[0];
|
||
const vy = currentNode[1] - attributes2[1];
|
||
|
||
const ax = vx * attributes2[2];
|
||
const ay = vy * attributes2[2];
|
||
|
||
return [ax, ay];
|
||
}
|
||
|
||
calcAttractive(i: int, currentNode: vec4, attributes1: vec4): vec2 {
|
||
// note: attributes1 = [mass, degree, nodeSterngth, 0]
|
||
|
||
const mass = attributes1[0];
|
||
let ax = 0, ay = 0;
|
||
// const arr_offset = int(floor(currentNode[2] + 0.5));
|
||
// const length = int(floor(currentNode[3] + 0.5));
|
||
|
||
const compressed = this.unpack_float(currentNode[2]);
|
||
const length = compressed[0];
|
||
const arr_offset = compressed[1];
|
||
|
||
const node_buffer: vec4;
|
||
for (let p: int = 0; p < MAX_EDGE_PER_VERTEX; p++) {
|
||
if (p >= length) break;
|
||
const arr_idx = arr_offset + 4 * p; // i \u8282\u70B9\u7684\u7B2C p \u6761\u8FB9\u5F00\u59CB\u7684\u5C0F\u683C\u5B50\u4F4D\u7F6E
|
||
const buf_offset = arr_idx - arr_idx / 4 * 4;
|
||
if (p == 0 || buf_offset == 0) {
|
||
node_buffer = this.u_Data[int(arr_idx / 4)]; // \u5927\u683C\u5B50\uFF0C\u5927\u683C\u5B50\u4F4D\u7F6E=\u5C0F\u4E2A\u5B50\u4F4D\u7F6E / 4\uFF0C
|
||
}
|
||
|
||
let float_j: float = node_buffer[0];
|
||
|
||
const nextNode = this.u_Data[int(float_j)];
|
||
const vx = nextNode[0] - currentNode[0];
|
||
const vy = nextNode[1] - currentNode[1];
|
||
const dist = sqrt(vx * vx + vy * vy) + 0.01;
|
||
const direx = vx / dist;
|
||
const direy = vy / dist;
|
||
const edgeLength = node_buffer[1];
|
||
const edgeStrength = node_buffer[2];
|
||
const diff: float = edgeLength - dist;//edgeLength
|
||
// const param = diff * this.u_stiffness / mass; //
|
||
const param = diff * edgeStrength / mass; //
|
||
ax -= direx * param;
|
||
ay -= direy * param;
|
||
}
|
||
return [ax, ay];
|
||
}
|
||
|
||
@main
|
||
compute() {
|
||
const i = globalInvocationID.x;
|
||
const currentNode = this.u_Data[i];
|
||
const movement = u_AveMovement[0];
|
||
let ax = 0, ay = 0;
|
||
|
||
if (i >= VERTEX_COUNT || movement.x < u_minMovement) {
|
||
this.u_Data[i] = currentNode;
|
||
return;
|
||
}
|
||
|
||
// \u6BCF\u4E2A\u8282\u70B9\u5C5E\u6027\u5360\u4E24\u4E2A\u6570\u7EC4\u4E2D\u5404\u4E00\u683C
|
||
// [mass, degree, nodeStrength, fx]
|
||
const nodeAttributes1 = this.u_NodeAttributeArray1[i];
|
||
// [centerX, centerY, centerGravity, fy]
|
||
const nodeAttributes2 = this.u_NodeAttributeArray2[i];
|
||
|
||
// repulsive
|
||
const repulsive = this.calcRepulsive(i, currentNode);
|
||
ax += repulsive[0];
|
||
ay += repulsive[1];
|
||
|
||
// attractive
|
||
const attractive = this.calcAttractive(i, currentNode, nodeAttributes1);
|
||
ax += attractive[0];
|
||
ay += attractive[1];
|
||
|
||
// gravity
|
||
const gravity = this.calcGravity(i, currentNode, nodeAttributes2);
|
||
ax -= gravity[0];
|
||
ay -= gravity[1];
|
||
|
||
// speed
|
||
const param = this.u_interval * this.u_damping;
|
||
let vx = ax * param;
|
||
let vy = ay * param;
|
||
const vlength = sqrt(vx * vx + vy * vy) + 0.0001;
|
||
if (vlength > this.u_maxSpeed) {
|
||
const param2 = this.u_maxSpeed / vlength;
|
||
vx = param2 * vx;
|
||
vy = param2 * vy;
|
||
}
|
||
|
||
// move
|
||
if (nodeAttributes1[3] != 0 && nodeAttributes2[3] != 0) {
|
||
this.u_Data[i] = [
|
||
nodeAttributes1[3],
|
||
nodeAttributes2[3],
|
||
currentNode[2],
|
||
0
|
||
];
|
||
} else {
|
||
const distx = vx * this.u_interval;
|
||
const disty = vy * this.u_interval;
|
||
const distLength = sqrt(distx * distx + disty * disty);
|
||
this.u_Data[i] = [
|
||
currentNode[0] + distx,
|
||
currentNode[1] + disty,
|
||
currentNode[2],
|
||
distLength
|
||
];
|
||
}
|
||
|
||
// the avarage move distance
|
||
// need to share memory
|
||
|
||
}
|
||
}
|
||
`,N.gForceBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define SHIFT_20 1048576.0\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_damping;\\nuniform float u_maxSpeed;\\nuniform float u_minMovement;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nuniform float u_coulombDisScale;\\nuniform float u_factor;\\nuniform sampler2D u_NodeAttributeArray1;\\nuniform vec2 u_NodeAttributeArray1Size;\\nvec4 getDatau_NodeAttributeArray1(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray1, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray1(float address1D) {\\n return getDatau_NodeAttributeArray1(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray1Size));\\n}\\nvec4 getDatau_NodeAttributeArray1(int address1D) {\\n return getDatau_NodeAttributeArray1(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributeArray2;\\nuniform vec2 u_NodeAttributeArray2Size;\\nvec4 getDatau_NodeAttributeArray2(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray2, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray2(float address1D) {\\n return getDatau_NodeAttributeArray2(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray2Size));\\n}\\nvec4 getDatau_NodeAttributeArray2(int address1D) {\\n return getDatau_NodeAttributeArray2(float(address1D));\\n}\\nuniform float u_interval;\\nivec2 unpack_float(float packedValue) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint packedIntValue = int(packedValue);\\nint v0 = packedIntValue / int(SHIFT_20);\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat vx = currentNode.x - nextNode.x;\\nfloat vy = currentNode.y - nextNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat n_dist = (dist + 0.1) * u_coulombDisScale;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nvec4 attributesi = getDatau_NodeAttributeArray1(i);\\nvec4 attributesj = getDatau_NodeAttributeArray1(j);\\nfloat massi = attributesi.x;\\nfloat nodeStrengthi = attributesi.z;\\nfloat nodeStrengthj = attributesj.z;\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\nfloat param = (nodeStrength * u_factor) / (n_dist * n_dist);\\nax += direx * param;\\nay += direy * param;}}\\nreturn vec2(ax, ay);}\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat vx = currentNode.x - attributes2.x;\\nfloat vy = currentNode.y - attributes2.y;\\nfloat ax = vx * attributes2.z;\\nfloat ay = vy * attributes2.z;\\nreturn vec2(ax, ay);}\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat mass = attributes1.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nivec2 compressed = unpack_float(currentNode.z);\\nint length = compressed.x;\\nint arr_offset = compressed.y;\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + (4 * p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = node_buffer.x;\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat vx = nextNode.x - currentNode.x;\\nfloat vy = nextNode.y - currentNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nfloat edgeLength = node_buffer.y;\\nfloat edgeStrength = node_buffer.z;\\nfloat diff = edgeLength - dist;\\nfloat param = (diff * edgeStrength) / mass;\\nax -= direx * param;\\nay -= direy * param;}\\nreturn vec2(ax, ay);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nvec4 movement = getDatau_AveMovement(0.0);\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nif ((i >= VERTEX_COUNT) || (movement.x < u_minMovement)) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes1 = getDatau_NodeAttributeArray1(i);\\nvec4 nodeAttributes2 = getDatau_NodeAttributeArray2(i);\\nvec2 repulsive = calcRepulsive(i, currentNode);\\nax += repulsive.x;\\nay += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\nax += attractive.x;\\nay += attractive.y;\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\nax -= gravity.x;\\nay -= gravity.y;\\nfloat param = u_interval * u_damping;\\nfloat vx = ax * param;\\nfloat vy = ay * param;\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\nif (vlength > u_maxSpeed) {float param2 = u_maxSpeed / vlength;\\nvx = param2 * vx;\\nvy = param2 * vy;}\\nif ((nodeAttributes1.w != 0.0) && (nodeAttributes2.w != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes1.w, nodeAttributes2.w, currentNode.z, 0.0));}else {float distx = vx * u_interval;\\nfloat disty = vy * u_interval;\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\ngl_FragColor = vec4(vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"SHIFT_20","type":"Float","value":1048576,"runtime":false}],"uniforms":[{"name":"u_Data","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_damping","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_maxSpeed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_minMovement","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_coulombDisScale","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_factor","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray1","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray2","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_interval","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',N.aveMovementCode=`
|
||
const VERTEX_COUNT;
|
||
@numthreads(1, 1, 1)
|
||
class CalcAveMovement {
|
||
@in
|
||
u_Data: vec4[];
|
||
@in
|
||
u_iter: float;
|
||
@in @out
|
||
u_AveMovement: vec4[];
|
||
@main
|
||
compute() {
|
||
let movement = 0;
|
||
for (let j: int = 0; j < VERTEX_COUNT; j++) {
|
||
const vertex = this.u_Data[j];
|
||
movement += vertex[3];
|
||
}
|
||
movement = movement / float(VERTEX_COUNT);
|
||
this.u_AveMovement[0] = [movement, 0, 0, 0];
|
||
}
|
||
}
|
||
`,N.aveMovementBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_iter;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat movement = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = getDatau_Data(j);\\nmovement += vertex.w;}\\nmovement = movement / float(VERTEX_COUNT);\\ngl_FragColor = vec4(vec4(movement, 0.0, 0.0, 0.0));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_iter","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_AveMovement","size":[1,1],"length":1},"needPingpong":true}}'},26973:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var M=function(m,b){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,h){v.__proto__=h}||function(v,h){for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(v[d]=h[d])},M(m,b)};return function(w,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");M(w,m);function b(){this.constructor=w}w.prototype=m===null?Object.create(m):(b.prototype=m.prototype,new b)}}();Object.defineProperty(N,"__esModule",{value:!0}),N.GridLayout=void 0;var g=o(74788),A=o(15383),y=function(M){x(w,M);function w(m){var b=M.call(this)||this;return b.begin=[0,0],b.preventOverlap=!0,b.preventOverlapPadding=10,b.condense=!1,b.sortBy="degree",b.nodes=[],b.edges=[],b.width=300,b.height=300,b.row=0,b.col=0,b.cellWidth=0,b.cellHeight=0,b.cellUsed={},b.id2manPos={},b.onLayoutEnd=function(){},b.updateCfg(m),b}return w.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},w.prototype.execute=function(){var m=this,b=m.nodes,v=m.edges,h=m.begin,d=b.length;if(d===0)return m.onLayoutEnd&&m.onLayoutEnd(),{nodes:b,edges:v};if(d===1)return b[0].x=h[0],b[0].y=h[1],m.onLayoutEnd&&m.onLayoutEnd(),{nodes:b,edges:v};var _=m.sortBy,p=m.width,S=m.height,k=m.condense,O=m.preventOverlapPadding,F=m.preventOverlap,D=m.nodeSpacing,Z=m.nodeSize,W=[];b.forEach(function(Ee){W.push(Ee)});var U={};if(W.forEach(function(Ee,ce){U[Ee.id]=ce}),(_==="degree"||!(0,g.isString)(_)||W[0][_]===void 0)&&(_="degree",(0,g.isNaN)(b[0].degree))){var L=(0,g.getDegree)(W.length,U,v);W.forEach(function(Ee,ce){Ee.degree=L[ce].all})}W.sort(function(Ee,ce){return ce[_]-Ee[_]}),!p&&typeof window!="undefined"&&(p=window.innerWidth),!S&&typeof window!="undefined"&&(S=window.innerHeight);var V=m.rows,$=m.cols!=null?m.cols:m.columns;if(m.cells=d,V!=null&&$!=null?(m.rows=V,m.cols=$):V!=null&&$==null?(m.rows=V,m.cols=Math.ceil(m.cells/m.rows)):V==null&&$!=null?(m.cols=$,m.rows=Math.ceil(m.cells/m.cols)):(m.splits=Math.sqrt(m.cells*m.height/m.width),m.rows=Math.round(m.splits),m.cols=Math.round(m.width/m.height*m.splits)),m.rows=Math.max(m.rows,1),m.cols=Math.max(m.cols,1),m.cols*m.rows>m.cells){var G=m.small(),z=m.large();(G-1)*z>=m.cells?m.small(G-1):(z-1)*G>=m.cells&&m.large(z-1)}else for(;m.cols*m.rows<m.cells;){var G=m.small(),z=m.large();(z+1)*G>=m.cells?m.large(z+1):m.small(G+1)}if(m.cellWidth=p/m.cols,m.cellHeight=S/m.rows,k&&(m.cellWidth=0,m.cellHeight=0),F||D){var K=(0,g.getFuncByUnknownType)(10,D),re=(0,g.getFuncByUnknownType)(30,Z,!1);W.forEach(function(Ee){(!Ee.x||!Ee.y)&&(Ee.x=0,Ee.y=0);var ce=re(Ee)||30,ve,fe;(0,g.isArray)(ce)?(ve=ce[0],fe=ce[1]):(ve=ce,fe=ce);var we=K!==void 0?K(Ee):O,me=ve+we,Pe=fe+we;m.cellWidth=Math.max(m.cellWidth,me),m.cellHeight=Math.max(m.cellHeight,Pe)})}m.cellUsed={},m.row=0,m.col=0,m.id2manPos={};for(var ne=0;ne<W.length;ne++){var Q=W[ne],ue=void 0;if(m.position&&(ue=m.position(Q)),ue&&(ue.row!==void 0||ue.col!==void 0)){var he={row:ue.row,col:ue.col};if(he.col===void 0)for(he.col=0;m.used(he.row,he.col);)he.col++;else if(he.row===void 0)for(he.row=0;m.used(he.row,he.col);)he.row++;m.id2manPos[Q.id]=he,m.use(he.row,he.col)}m.getPos(Q)}return m.onLayoutEnd&&m.onLayoutEnd(),{edges:v,nodes:W}},w.prototype.small=function(m){var b=this,v,h=b.rows||5,d=b.cols||5;if(m==null)v=Math.min(h,d);else{var _=Math.min(h,d);_===b.rows?b.rows=m:b.cols=m}return v},w.prototype.large=function(m){var b=this,v,h=b.rows||5,d=b.cols||5;if(m==null)v=Math.max(h,d);else{var _=Math.max(h,d);_===b.rows?b.rows=m:b.cols=m}return v},w.prototype.used=function(m,b){var v=this;return v.cellUsed["c-".concat(m,"-").concat(b)]||!1},w.prototype.use=function(m,b){var v=this;v.cellUsed["c-".concat(m,"-").concat(b)]=!0},w.prototype.moveToNextCell=function(){var m=this,b=m.cols||5;m.col++,m.col>=b&&(m.col=0,m.row++)},w.prototype.getPos=function(m){var b=this,v=b.begin,h=b.cellWidth,d=b.cellHeight,_,p,S=b.id2manPos[m.id];if(S)_=S.col*h+h/2+v[0],p=S.row*d+d/2+v[1];else{for(;b.used(b.row,b.col);)b.moveToNextCell();_=b.col*h+h/2+v[0],p=b.row*d+d/2+v[1],b.use(b.row,b.col),b.moveToNextCell()}m.x=_,m.y=p},w.prototype.getType=function(){return"grid"},w}(A.Base);N.GridLayout=y},92946:function(oe,N,o){"use strict";var x=this&&this.__createBinding||(Object.create?function(L,V,$,G){G===void 0&&(G=$);var z=Object.getOwnPropertyDescriptor(V,$);(!z||("get"in z?!V.__esModule:z.writable||z.configurable))&&(z={enumerable:!0,get:function(){return V[$]}}),Object.defineProperty(L,G,z)}:function(L,V,$,G){G===void 0&&(G=$),L[G]=V[$]}),g=this&&this.__exportStar||function(L,V){for(var $ in L)$!=="default"&&!Object.prototype.hasOwnProperty.call(V,$)&&x(V,L,$)};Object.defineProperty(N,"__esModule",{value:!0}),N.ERLayout=N.ForceAtlas2Layout=N.ComboCombinedLayout=N.ComboForceLayout=N.GForceGPULayout=N.FruchtermanGPULayout=N.FruchtermanLayout=N.MDSLayout=N.ConcentricLayout=N.RadialLayout=N.DagreCompoundLayout=N.DagreLayout=N.CircularLayout=N.ForceLayout=N.Force2Layout=N.GForceLayout=N.RandomLayout=N.GridLayout=N.Layouts=N.Layout=void 0;var A=o(26973);Object.defineProperty(N,"GridLayout",{enumerable:!0,get:function(){return A.GridLayout}});var y=o(84647);Object.defineProperty(N,"RandomLayout",{enumerable:!0,get:function(){return y.RandomLayout}});var M=o(655);Object.defineProperty(N,"GForceLayout",{enumerable:!0,get:function(){return M.GForceLayout}});var w=o(83898);Object.defineProperty(N,"Force2Layout",{enumerable:!0,get:function(){return w.Force2Layout}});var m=o(50741);Object.defineProperty(N,"ForceLayout",{enumerable:!0,get:function(){return m.ForceLayout}});var b=o(59998);Object.defineProperty(N,"CircularLayout",{enumerable:!0,get:function(){return b.CircularLayout}});var v=o(47130);Object.defineProperty(N,"DagreLayout",{enumerable:!0,get:function(){return v.DagreLayout}});var h=o(67117);Object.defineProperty(N,"DagreCompoundLayout",{enumerable:!0,get:function(){return h.DagreCompoundLayout}});var d=o(35319);Object.defineProperty(N,"RadialLayout",{enumerable:!0,get:function(){return d.RadialLayout}});var _=o(98741);Object.defineProperty(N,"ConcentricLayout",{enumerable:!0,get:function(){return _.ConcentricLayout}});var p=o(24955);Object.defineProperty(N,"MDSLayout",{enumerable:!0,get:function(){return p.MDSLayout}});var S=o(65089);Object.defineProperty(N,"FruchtermanLayout",{enumerable:!0,get:function(){return S.FruchtermanLayout}});var k=o(70925);Object.defineProperty(N,"FruchtermanGPULayout",{enumerable:!0,get:function(){return k.FruchtermanGPULayout}});var O=o(25174);Object.defineProperty(N,"GForceGPULayout",{enumerable:!0,get:function(){return O.GForceGPULayout}});var F=o(73560);Object.defineProperty(N,"ComboForceLayout",{enumerable:!0,get:function(){return F.ComboForceLayout}});var D=o(57064);Object.defineProperty(N,"ComboCombinedLayout",{enumerable:!0,get:function(){return D.ComboCombinedLayout}});var Z=o(94950);Object.defineProperty(N,"ForceAtlas2Layout",{enumerable:!0,get:function(){return Z.ForceAtlas2Layout}});var W=o(67731);Object.defineProperty(N,"ERLayout",{enumerable:!0,get:function(){return W.ERLayout}});var U=o(97120);Object.defineProperty(N,"Layout",{enumerable:!0,get:function(){return U.Layout}}),Object.defineProperty(N,"Layouts",{enumerable:!0,get:function(){return U.Layouts}}),g(o(77360),N)},97120:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.Layouts=N.Layout=void 0;var x=o(41769),g=o(26973),A=o(84647),y=o(83898),M=o(655),w=o(50741),m=o(59998),b=o(47130),v=o(35319),h=o(98741),d=o(24955),_=o(65089),p=o(70925),S=o(25174),k=o(73560),O=o(57064),F=o(94950),D=o(67731),Z=o(67117),W=o(74788),U=function(){function L(V){var $=(0,x.getLayoutByName)(V.type);this.layoutInstance=new $(V)}return L.prototype.layout=function(V){return this.layoutInstance.layout(V)},L.prototype.updateCfg=function(V){this.layoutInstance.updateCfg(V)},L.prototype.init=function(V){this.correctLayers(V.nodes),this.layoutInstance.init(V)},L.prototype.correctLayers=function(V){if(!!(V==null?void 0:V.length)){var $=Infinity,G=[];if(V.forEach(function(K){(0,W.isString)(K.layer)&&(K.layer=parseInt(K.layer,10)),!(K.layer===void 0||isNaN(K.layer))&&(G.push(K),K.layer<$&&($=K.layer))}),$<=0){var z=Math.abs($)+1;G.forEach(function(K){return K.layer+=z})}}},L.prototype.execute=function(){this.layoutInstance.execute()},L.prototype.getDefaultCfg=function(){return this.layoutInstance.getDefaultCfg()},L.prototype.destroy=function(){return this.layoutInstance.destroy()},L}();N.Layout=U,N.Layouts={force:w.ForceLayout,fruchterman:_.FruchtermanLayout,forceAtlas2:F.ForceAtlas2Layout,gForce:M.GForceLayout,force2:y.Force2Layout,dagre:b.DagreLayout,dagreCompound:Z.DagreCompoundLayout,circular:m.CircularLayout,radial:v.RadialLayout,concentric:h.ConcentricLayout,grid:g.GridLayout,mds:d.MDSLayout,comboForce:k.ComboForceLayout,comboCombined:O.ComboCombinedLayout,random:A.RandomLayout,"gForce-gpu":S.GForceGPULayout,"fruchterman-gpu":p.FruchtermanGPULayout,er:D.ERLayout}},24955:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var w=function(b,v){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var _ in d)Object.prototype.hasOwnProperty.call(d,_)&&(h[_]=d[_])},w(b,v)};return function(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");w(m,b);function v(){this.constructor=m}m.prototype=b===null?Object.create(b):(v.prototype=b.prototype,new v)}}();Object.defineProperty(N,"__esModule",{value:!0}),N.MDSLayout=void 0;var g=o(77850),A=o(74788),y=o(15383),M=function(w){x(m,w);function m(b){var v=w.call(this)||this;return v.center=[0,0],v.linkDistance=50,v.nodes=[],v.edges=[],v.onLayoutEnd=function(){},v.updateCfg(b),v}return m.prototype.getDefaultCfg=function(){return{center:[0,0],linkDistance:50}},m.prototype.execute=function(){var b=this,v=b.nodes,h=b.edges,d=h===void 0?[]:h,_=b.center;if(!v||v.length===0){b.onLayoutEnd&&b.onLayoutEnd();return}if(v.length===1){v[0].x=_[0],v[0].y=_[1],b.onLayoutEnd&&b.onLayoutEnd();return}var p=b.linkDistance,S=(0,A.getAdjMatrix)({nodes:v,edges:d},!1),k=(0,A.floydWarshall)(S);b.handleInfinity(k);var O=(0,A.scaleMatrix)(k,p);b.scaledDistances=O;var F=b.runMDS();return b.positions=F,F.forEach(function(D,Z){v[Z].x=D[0]+_[0],v[Z].y=D[1]+_[1]}),b.onLayoutEnd&&b.onLayoutEnd(),{nodes:v,edges:d}},m.prototype.runMDS=function(){var b=this,v=2,h=b.scaledDistances,d=g.Matrix.mul(g.Matrix.pow(h,2),-.5),_=d.mean("row"),p=d.mean("column"),S=d.mean();d.add(S).subRowVector(_).subColumnVector(p);var k=new g.SingularValueDecomposition(d),O=g.Matrix.sqrt(k.diagonalMatrix).diagonal();return k.leftSingularVectors.toJSON().map(function(F){return g.Matrix.mul([F],[O]).toJSON()[0].splice(0,v)})},m.prototype.handleInfinity=function(b){var v=-999999;b.forEach(function(h){h.forEach(function(d){d!==Infinity&&v<d&&(v=d)})}),b.forEach(function(h,d){h.forEach(function(_,p){_===Infinity&&(b[d][p]=v)})})},m.prototype.getType=function(){return"mds"},m}(y.Base);N.MDSLayout=M},35319:function(oe,N,o){"use strict";var x=this&&this.__createBinding||(Object.create?function(A,y,M,w){w===void 0&&(w=M);var m=Object.getOwnPropertyDescriptor(y,M);(!m||("get"in m?!y.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return y[M]}}),Object.defineProperty(A,w,m)}:function(A,y,M,w){w===void 0&&(w=M),A[w]=y[M]}),g=this&&this.__exportStar||function(A,y){for(var M in A)M!=="default"&&!Object.prototype.hasOwnProperty.call(y,M)&&x(y,A,M)};Object.defineProperty(N,"__esModule",{value:!0}),g(o(88283),N)},41835:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var x=o(77850),g=function(){function A(y){this.distances=y.distances,this.dimension=y.dimension||2,this.linkDistance=y.linkDistance}return A.prototype.layout=function(){var y=this,M=y.dimension,w=y.distances,m=y.linkDistance;try{var b=x.Matrix.mul(x.Matrix.pow(w,2),-.5),v=b.mean("row"),h=b.mean("column"),d=b.mean();b.add(d).subRowVector(v).subColumnVector(h);var _=new x.SingularValueDecomposition(b),p=x.Matrix.sqrt(_.diagonalMatrix).diagonal();return _.leftSingularVectors.toJSON().map(function(D){return x.Matrix.mul([D],[p]).toJSON()[0].splice(0,M)})}catch(D){for(var S=[],k=0;k<w.length;k++){var O=Math.random()*m,F=Math.random()*m;S.push([O,F])}return S}},A}();N.default=g},88283:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var d=function(p,S){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,O){k.__proto__=O}||function(k,O){for(var F in O)Object.prototype.hasOwnProperty.call(O,F)&&(k[F]=O[F])},d(p,S)};return function(_,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");d(_,p);function S(){this.constructor=_}_.prototype=p===null?Object.create(p):(S.prototype=p.prototype,new S)}}(),g=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(N,"__esModule",{value:!0}),N.RadialLayout=void 0;var A=o(74788),y=o(15383),M=g(o(41835)),w=g(o(99677));function m(d){for(var _=d.length,p=d[0].length,S=[],k=0;k<_;k++){for(var O=[],F=0;F<p;F++)d[k][F]!==0?O.push(1/(d[k][F]*d[k][F])):O.push(0);S.push(O)}return S}function b(d,_){var p=-1;return d.forEach(function(S,k){S.id===_&&(p=k)}),p}function v(d,_){return Math.sqrt((d[0]-_[0])*(d[0]-_[0])+(d[1]-_[1])*(d[1]-_[1]))}var h=function(d){x(_,d);function _(p){var S=d.call(this)||this;return S.maxIteration=1e3,S.focusNode=null,S.unitRadius=null,S.linkDistance=50,S.preventOverlap=!1,S.strictRadial=!0,S.maxPreventOverlapIteration=200,S.sortStrength=10,S.nodes=[],S.edges=[],S.updateCfg(p),S}return _.prototype.getDefaultCfg=function(){return{maxIteration:1e3,focusNode:null,unitRadius:null,linkDistance:50,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,strictRadial:!0,maxPreventOverlapIteration:200,sortBy:void 0,sortStrength:10}},_.prototype.execute=function(){var p=this,S=p.nodes,k=p.edges||[];if(!S||S.length===0){p.onLayoutEnd&&p.onLayoutEnd();return}!p.width&&typeof window!="undefined"&&(p.width=window.innerWidth),!p.height&&typeof window!="undefined"&&(p.height=window.innerHeight),p.center||(p.center=[p.width/2,p.height/2]);var O=p.center;if(S.length===1){S[0].x=O[0],S[0].y=O[1],p.onLayoutEnd&&p.onLayoutEnd();return}var F=p.linkDistance,D=null;if((0,A.isString)(p.focusNode)){for(var Z=!1,W=0;W<S.length;W++)S[W].id===p.focusNode&&(D=S[W],p.focusNode=D,Z=!0,W=S.length);Z||(D=null)}else D=p.focusNode;D||(D=S[0],p.focusNode=D);var U=b(S,D.id);U<0&&(U=0),p.focusIndex=U;var L=(0,A.getAdjMatrix)({nodes:S,edges:k},!1),V=(0,A.floydWarshall)(L),$=p.maxToFocus(V,U);p.handleInfinity(V,U,$+1),p.distances=V;var G=V[U],z=p.width||500,K=p.height||500,re=z-O[0]>O[0]?O[0]:z-O[0],ne=K-O[1]>O[1]?O[1]:K-O[1];re===0&&(re=z/2),ne===0&&(ne=K/2);var Q=ne>re?re:ne,ue=Math.max.apply(Math,G),he=[];G.forEach(function(Fe,Qe){p.unitRadius||(p.unitRadius=Q/ue),he[Qe]=Fe*p.unitRadius}),p.radii=he;var Ee=p.eIdealDisMatrix();p.eIdealDistances=Ee;var ce=m(Ee);p.weights=ce;var ve=new M.default({linkDistance:F,distances:Ee}),fe=ve.layout();fe.forEach(function(Fe){(0,A.isNaN)(Fe[0])&&(Fe[0]=Math.random()*F),(0,A.isNaN)(Fe[1])&&(Fe[1]=Math.random()*F)}),p.positions=fe,fe.forEach(function(Fe,Qe){S[Qe].x=Fe[0]+O[0],S[Qe].y=Fe[1]+O[1]}),fe.forEach(function(Fe){Fe[0]-=fe[U][0],Fe[1]-=fe[U][1]}),p.run();var we=p.preventOverlap,me=p.nodeSize,Pe,pe=p.strictRadial;if(we){var Ie=p.nodeSpacing,Je;(0,A.isNumber)(Ie)?Je=function(){return Ie}:(0,A.isFunction)(Ie)?Je=Ie:Je=function(){return 0},me?(0,A.isArray)(me)?Pe=function(Qe){var qe=me[0]>me[1]?me[0]:me[1];return qe+Je(Qe)}:Pe=function(Qe){return me+Je(Qe)}:Pe=function(Qe){if(Qe.size){if((0,A.isArray)(Qe.size)){var qe=Qe.size[0]>Qe.size[1]?Qe.size[0]:Qe.size[1];return qe+Je(Qe)}if((0,A.isObject)(Qe.size)){var qe=Qe.size.width>Qe.size.height?Qe.size.width:Qe.size.height;return qe+Je(Qe)}return Qe.size+Je(Qe)}return 10+Je(Qe)};var ke={nodes:S,nodeSizeFunc:Pe,adjMatrix:L,positions:fe,radii:he,height:K,width:z,strictRadial:pe,focusID:U,iterations:p.maxPreventOverlapIteration||200,k:fe.length/4.5},De=new w.default(ke);fe=De.layout()}return fe.forEach(function(Fe,Qe){S[Qe].x=Fe[0]+O[0],S[Qe].y=Fe[1]+O[1]}),p.onLayoutEnd&&p.onLayoutEnd(),{nodes:S,edges:k}},_.prototype.run=function(){for(var p=this,S=p.maxIteration,k=p.positions||[],O=p.weights||[],F=p.eIdealDistances||[],D=p.radii||[],Z=0;Z<=S;Z++){var W=Z/S;p.oneIteration(W,k,D,F,O)}},_.prototype.oneIteration=function(p,S,k,O,F){var D=this,Z=1-p,W=D.focusIndex;S.forEach(function(U,L){var V=v(U,[0,0]),$=V===0?0:1/V;if(L!==W){var G=0,z=0,K=0;S.forEach(function(ne,Q){if(L!==Q){var ue=v(U,ne),he=ue===0?0:1/ue,Ee=O[Q][L];K+=F[L][Q],G+=F[L][Q]*(ne[0]+Ee*(U[0]-ne[0])*he),z+=F[L][Q]*(ne[1]+Ee*(U[1]-ne[1])*he)}});var re=k[L]===0?0:1/k[L];K*=Z,K+=p*re*re,G*=Z,G+=p*re*U[0]*$,U[0]=G/K,z*=Z,z+=p*re*U[1]*$,U[1]=z/K}})},_.prototype.eIdealDisMatrix=function(){var p=this,S=p.nodes;if(!S)return[];var k=p.distances,O=p.linkDistance,F=p.radii||[],D=p.unitRadius||50,Z=[];return k&&k.forEach(function(W,U){var L=[];W.forEach(function(V,$){if(U===$)L.push(0);else if(F[U]===F[$])if(p.sortBy==="data")L.push(V*(Math.abs(U-$)*p.sortStrength)/(F[U]/D));else if(p.sortBy){var G=S[U][p.sortBy]||0,z=S[$][p.sortBy]||0;(0,A.isString)(G)&&(G=G.charCodeAt(0)),(0,A.isString)(z)&&(z=z.charCodeAt(0)),L.push(V*(Math.abs(G-z)*p.sortStrength)/(F[U]/D))}else L.push(V*O/(F[U]/D));else{var K=(O+D)/2;L.push(V*K)}}),Z.push(L)}),Z},_.prototype.handleInfinity=function(p,S,k){for(var O=p.length,F=0;F<O;F++)if(p[S][F]===Infinity){p[S][F]=k,p[F][S]=k;for(var D=0;D<O;D++)p[F][D]!==Infinity&&p[S][D]===Infinity&&(p[S][D]=k+p[F][D],p[D][S]=k+p[F][D])}for(var F=0;F<O;F++)if(F!==S){for(var D=0;D<O;D++)if(p[F][D]===Infinity){var Z=Math.abs(p[S][F]-p[S][D]);Z=Z===0?1:Z,p[F][D]=Z}}},_.prototype.maxToFocus=function(p,S){for(var k=0,O=0;O<p[S].length;O++)p[S][O]!==Infinity&&(k=p[S][O]>k?p[S][O]:k);return k},_.prototype.getType=function(){return"radial"},_}(y.Base);N.RadialLayout=h},99677:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o=800,x=function(){function g(A){this.disp=[],this.positions=A.positions,this.adjMatrix=A.adjMatrix,this.focusID=A.focusID,this.radii=A.radii,this.iterations=A.iterations||10,this.height=A.height||10,this.width=A.width||10,this.speed=A.speed||100,this.gravity=A.gravity||10,this.nodeSizeFunc=A.nodeSizeFunc,this.k=A.k||5,this.strictRadial=A.strictRadial,this.nodes=A.nodes}return g.prototype.layout=function(){var A=this,y=A.positions,M=[],w=A.iterations,m=A.width/10;A.maxDisplace=m,A.disp=M;for(var b=0;b<w;b++)y.forEach(function(v,h){M[h]={x:0,y:0}}),A.getRepulsion(),A.updatePositions();return y},g.prototype.getRepulsion=function(){var A=this,y=A.positions,M=A.nodes,w=A.disp,m=A.k,b=A.radii||[];y.forEach(function(v,h){w[h]={x:0,y:0},y.forEach(function(d,_){if(h!==_&&b[h]===b[_]){var p=v[0]-d[0],S=v[1]-d[1],k=Math.sqrt(p*p+S*S);if(k===0){k=1;var O=h>_?1:-1;p=.01*O,S=.01*O}if(k<A.nodeSizeFunc(M[h])/2+A.nodeSizeFunc(M[_])/2){var F=m*m/k;w[h].x+=p/k*F,w[h].y+=S/k*F}}})})},g.prototype.updatePositions=function(){var A=this,y=A.positions,M=A.disp,w=A.speed,m=A.strictRadial,b=A.focusID,v=A.maxDisplace||A.width/10;m&&M.forEach(function(d,_){var p=y[_][0]-y[b][0],S=y[_][1]-y[b][1],k=Math.sqrt(p*p+S*S),O=S/k,F=-p/k,D=Math.sqrt(d.x*d.x+d.y*d.y),Z=Math.acos((O*d.x+F*d.y)/D);Z>Math.PI/2&&(Z-=Math.PI/2,O*=-1,F*=-1);var W=Math.cos(Z)*D;d.x=O*W,d.y=F*W});var h=A.radii;y.forEach(function(d,_){if(_!==b){var p=Math.sqrt(M[_].x*M[_].x+M[_].y*M[_].y);if(p>0&&_!==b){var S=Math.min(v*(w/o),p);if(d[0]+=M[_].x/p*S,d[1]+=M[_].y/p*S,m){var k=d[0]-y[b][0],O=d[1]-y[b][1],F=Math.sqrt(k*k+O*O);k=k/F*h[_],O=O/F*h[_],d[0]=y[b][0]+k,d[1]=y[b][1]+O}}}})},g}();N.default=x},84647:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var y=function(w,m){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&(b[h]=v[h])},y(w,m)};return function(M,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");y(M,w);function m(){this.constructor=M}M.prototype=w===null?Object.create(w):(m.prototype=w.prototype,new m)}}();Object.defineProperty(N,"__esModule",{value:!0}),N.RandomLayout=void 0;var g=o(15383),A=function(y){x(M,y);function M(w){var m=y.call(this)||this;return m.center=[0,0],m.width=300,m.height=300,m.nodes=[],m.edges=[],m.onLayoutEnd=function(){},m.updateCfg(w),m}return M.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},M.prototype.execute=function(){var w=this,m=w.nodes,b=.9,v=w.center;return!w.width&&typeof window!="undefined"&&(w.width=window.innerWidth),!w.height&&typeof window!="undefined"&&(w.height=window.innerHeight),m&&m.forEach(function(h){h.x=(Math.random()-.5)*b*w.width+v[0],h.y=(Math.random()-.5)*b*w.height+v[1]}),w.onLayoutEnd&&w.onLayoutEnd(),{nodes:m,edges:this.edges}},M.prototype.getType=function(){return"random"},M}(g.Base);N.RandomLayout=A},77360:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0})},41769:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var b=function(h,d){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,p){_.__proto__=p}||function(_,p){for(var S in p)Object.prototype.hasOwnProperty.call(p,S)&&(_[S]=p[S])},b(h,d)};return function(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");b(v,h);function d(){this.constructor=v}v.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}}();Object.defineProperty(N,"__esModule",{value:!0}),N.getLayoutByName=N.unRegisterLayout=N.registerLayout=void 0;var g=o(15383),A=o(74788),y=new Map,M=function(v,h){if(y.get(v)&&console.warn("The layout with the name ".concat(v," exists already, it will be overridden")),(0,A.isObject)(h)){var d=function(_){x(p,_);function p(S){var k=this,O;k=_.call(this)||this;var F=k,D={},Z=Object.assign({},F.getDefaultCfg(),((O=h.getDefaultCfg)===null||O===void 0?void 0:O.call(h))||{});return Object.assign(D,Z,h,S),Object.keys(D).forEach(function(W){var U=D[W];F[W]=U}),k}return p}(g.Base);y.set(v,d)}else y.set(v,h);return y.get(v)};N.registerLayout=M;var w=function(v){y.has(v)&&y.delete(v)};N.unRegisterLayout=w;var m=function(v){return y.has(v)?y.get(v):null};N.getLayoutByName=m},31989:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.isArray=void 0,N.isArray=Array.isArray},95173:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.getFuncByUnknownType=N.getFunc=N.isFunction=void 0;var x=o(74788),g=o(7440),A=function(m){return typeof m=="function"};N.isFunction=A;var y=function(m,b,v){var h;return v?h=v:(0,g.isNumber)(m)?h=function(){return m}:h=function(){return b},h};N.getFunc=y;var M=function(m,b,v){return v===void 0&&(v=!0),!b&&b!==0?function(h){return h.size?(0,x.isArray)(h.size)?h.size[0]>h.size[1]?h.size[0]:h.size[1]:(0,x.isObject)(h.size)?h.size.width>h.size.height?h.size.width:h.size.height:h.size:m}:(0,N.isFunction)(b)?b:(0,g.isNumber)(b)?function(){return b}:(0,x.isArray)(b)?function(){if(v){var h=Math.max.apply(Math,b);return isNaN(h)?m:h}return b}:(0,x.isObject)(b)?function(){if(v){var h=Math.max(b.width,b.height);return isNaN(h)?m:h}return[b.width,b.height]}:function(){return m}};N.getFuncByUnknownType=M},5168:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.arrayToTextureData=N.attributesToTextureData=N.buildTextureDataWithTwoEdgeAttr=N.buildTextureData=N.proccessToFunc=void 0;var x=o(74788),g=o(28059),A=function(v,h){var d;return v?(0,x.isNumber)(v)?d=function(){return v}:d=v:d=function(){return h||1},d};N.proccessToFunc=A;var y=function(v,h){var d=[],_=[],p={},S=0;for(S=0;S<v.length;S++){var k=v[S];p[k.id]=S,d.push(k.x),d.push(k.y),d.push(0),d.push(0),_.push([])}for(S=0;S<h.length;S++){var O=h[S],F=(0,g.getEdgeTerminal)(O,"source"),D=(0,g.getEdgeTerminal)(O,"target");!isNaN(p[F])&&!isNaN(p[D])&&(_[p[F]].push(p[D]),_[p[D]].push(p[F]))}var Z=0;for(S=0;S<v.length;S++){var W=d.length,U=_[S],L=U.length;d[S*4+2]=W,d[S*4+3]=L,Z=Math.max(Z,L);for(var V=0;V<L;++V){var $=U[V];d.push(+$)}}for(;d.length%4!=0;)d.push(0);return{maxEdgePerVetex:Z,array:new Float32Array(d)}};N.buildTextureData=y;var M=function(v,h,d,_){var p=[],S=[],k={},O=0;for(O=0;O<v.length;O++){var F=v[O];k[F.id]=O,p.push(F.x),p.push(F.y),p.push(0),p.push(0),S.push([])}for(O=0;O<h.length;O++){var D=h[O],Z=(0,g.getEdgeTerminal)(D,"source"),W=(0,g.getEdgeTerminal)(D,"target");S[k[Z]].push(k[W]),S[k[Z]].push(d(D)),S[k[Z]].push(_(D)),S[k[Z]].push(0),S[k[W]].push(k[Z]),S[k[W]].push(d(D)),S[k[W]].push(_(D)),S[k[W]].push(0)}var U=0;for(O=0;O<v.length;O++){var L=p.length,V=S[O],$=V.length;p[O*4+2]=L+1048576*$/4,p[O*4+3]=0,U=Math.max(U,$/4);for(var G=0;G<$;++G){var z=V[G];p.push(+z)}}for(;p.length%4!=0;)p.push(0);return{maxEdgePerVetex:U,array:new Float32Array(p)}};N.buildTextureDataWithTwoEdgeAttr=M;var w=function(v,h){var d=[],_=v.length,p={};return h.forEach(function(S){v.forEach(function(k,O){if(p[S[k]]===void 0&&(p[S[k]]=Object.keys(p).length),d.push(p[S[k]]),O===_-1)for(;d.length%4!=0;)d.push(0)})}),{array:new Float32Array(d),count:Object.keys(p).length}};N.attributesToTextureData=w;var m=function(v){for(var h=[],d=v.length,_=v[0].length,p=function(O){v.forEach(function(F,D){if(h.push(F[O]),D===d-1)for(;h.length%4!=0;)h.push(0)})},S=0;S<_;S++)p(S);return new Float32Array(h)};N.arrayToTextureData=m},74788:function(oe,N,o){"use strict";var x=this&&this.__createBinding||(Object.create?function(A,y,M,w){w===void 0&&(w=M);var m=Object.getOwnPropertyDescriptor(y,M);(!m||("get"in m?!y.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return y[M]}}),Object.defineProperty(A,w,m)}:function(A,y,M,w){w===void 0&&(w=M),A[w]=y[M]}),g=this&&this.__exportStar||function(A,y){for(var M in A)M!=="default"&&!Object.prototype.hasOwnProperty.call(y,M)&&x(y,A,M)};Object.defineProperty(N,"__esModule",{value:!0}),g(o(10278),N),g(o(31989),N),g(o(7440),N),g(o(28059),N),g(o(66979),N),g(o(95173),N)},28059:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.getCoreNodeAndRelativeLeafNodes=N.getAvgNodePosition=N.getLayoutBBox=N.traverseTreeUp=N.scaleMatrix=N.getAdjMatrix=N.floydWarshall=N.getDegreeMap=N.getDegree=N.getEdgeTerminal=void 0;var x=o(31989),g=o(7440),A=o(66979),y=function(Z,W){var U=Z[W];return(0,A.isObject)(U)?U.cell:U};N.getEdgeTerminal=y;var M=function(Z,W,U){for(var L=[],V=0;V<Z;V++)L[V]={in:0,out:0,all:0};return U&&U.forEach(function($){var G=(0,N.getEdgeTerminal)($,"source"),z=(0,N.getEdgeTerminal)($,"target");G&&L[W[G]]&&(L[W[G]].out+=1,L[W[G]].all+=1),z&&L[W[z]]&&(L[W[z]].in+=1,L[W[z]].all+=1)}),L};N.getDegree=M;var w=function(Z,W){var U={};return Z.forEach(function(L){U[L.id]={in:0,out:0,all:0}}),W&&W.forEach(function(L){var V=(0,N.getEdgeTerminal)(L,"source"),$=(0,N.getEdgeTerminal)(L,"target");V&&(U[V].out+=1,U[V].all+=1),$&&(U[$].in+=1,U[$].all+=1)}),U};N.getDegreeMap=w;var m=function(Z){for(var W=[],U=Z.length,L=0;L<U;L+=1){W[L]=[];for(var V=0;V<U;V+=1)L===V?W[L][V]=0:Z[L][V]===0||!Z[L][V]?W[L][V]=Infinity:W[L][V]=Z[L][V]}for(var $=0;$<U;$+=1)for(var L=0;L<U;L+=1)for(var V=0;V<U;V+=1)W[L][V]>W[L][$]+W[$][V]&&(W[L][V]=W[L][$]+W[$][V]);return W};N.floydWarshall=m;var b=function(Z,W){var U=Z.nodes,L=Z.edges,V=[],$={};if(!U)throw new Error("invalid nodes data!");return U&&U.forEach(function(G,z){$[G.id]=z;var K=[];V.push(K)}),L==null||L.forEach(function(G){var z=(0,N.getEdgeTerminal)(G,"source"),K=(0,N.getEdgeTerminal)(G,"target"),re=$[z],ne=$[K];re===void 0||ne===void 0||(V[re][ne]=1,W||(V[ne][re]=1))}),V};N.getAdjMatrix=b;var v=function(Z,W){var U=[];return Z.forEach(function(L){var V=[];L.forEach(function($){V.push($*W)}),U.push(V)}),U};N.scaleMatrix=v;var h=function D(Z,W){if(Z&&Z.children){for(var U=Z.children.length-1;U>=0;U--)if(!D(Z.children[U],W))return}return!!W(Z)},d=function(Z,W){typeof W=="function"&&h(Z,W)};N.traverseTreeUp=d;var _=function(Z){var W=Infinity,U=Infinity,L=-Infinity,V=-Infinity;return Z.forEach(function($){var G=$.size;(0,x.isArray)(G)?G.length===1&&(G=[G[0],G[0]]):(0,g.isNumber)(G)?G=[G,G]:(G===void 0||isNaN(G))&&(G=[30,30]);var z=[G[0]/2,G[1]/2],K=$.x-z[0],re=$.x+z[0],ne=$.y-z[1],Q=$.y+z[1];W>K&&(W=K),U>ne&&(U=ne),L<re&&(L=re),V<Q&&(V=Q)}),{minX:W,minY:U,maxX:L,maxY:V}};N.getLayoutBBox=_;var p=function(Z){var W={x:0,y:0};Z.forEach(function(L){W.x+=L.x||0,W.y+=L.y||0});var U=Z.length||1;return{x:W.x/U,y:W.y/U}};N.getAvgNodePosition=p;var S=function(Z,W,U){var L,V;return Z==="source"?((L=U==null?void 0:U.find(function($){return $.target===W.id}))===null||L===void 0?void 0:L.source)||{}:((V=U==null?void 0:U.find(function($){return $.source===W.id}))===null||V===void 0?void 0:V.target)||{}},k=function(Z,W,U){var L=[];switch(Z){case"source":L=U==null?void 0:U.filter(function($){return $.source===W.id}).map(function($){return $.target});break;case"target":L=U==null?void 0:U.filter(function($){return $.target===W.id}).map(function($){return $.source});break;case"both":L=U==null?void 0:U.filter(function($){return $.source===W.id}).map(function($){return $.target}).concat(U==null?void 0:U.filter(function($){return $.target===W.id}).map(function($){return $.source}));break;default:break}var V=new Set(L);return Array.from(V)},O=function(Z,W,U,L,V){var $=U[W]||"",G=(L==null?void 0:L.filter(function(z){return z[W]===$}))||[];return Z==="leaf"&&(G=G.filter(function(z){var K,re;return((K=V[z.id])===null||K===void 0?void 0:K.in)===0||((re=V[z.id])===null||re===void 0?void 0:re.out)===0})),G},F=function(Z,W,U,L,V,$){var G=V[W.id],z=G.in,K=G.out,re=W,ne=[];z===0?(re=S("source",W,U),ne=k("both",re,U).map(function(ue){return $[ue]})):K===0&&(re=S("target",W,U),ne=k("both",re,U).map(function(ue){return $[ue]})),ne=ne.filter(function(ue){return V[ue.id]&&(V[ue.id].in===0||V[ue.id].out===0)});var Q=O(Z,L,W,ne,V);return{coreNode:re,relativeLeafNodes:ne,sameTypeLeafNodes:Q}};N.getCoreNodeAndRelativeLeafNodes=F},7440:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.toNumber=N.isNaN=N.isNumber=void 0;var o=function(y){return typeof y=="number"};N.isNumber=o;var x=function(y){return Number.isNaN(Number(y))};N.isNaN=x;var g=function(y){var M=parseFloat(y);return(0,N.isNaN)(M)?y:M};N.toNumber=g},66979:function(oe,N){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(A){for(var y,M=1,w=arguments.length;M<w;M++){y=arguments[M];for(var m in y)Object.prototype.hasOwnProperty.call(y,m)&&(A[m]=y[m])}return A},o.apply(this,arguments)};Object.defineProperty(N,"__esModule",{value:!0}),N.clone=N.isObject=void 0;var x=function(y){return y!==null&&typeof y=="object"};N.isObject=x;var g=function(y){if(y===null)return y;if(y instanceof Date)return new Date(y.getTime());if(y instanceof Array){var M=[];return y.forEach(function(m){M.push(m)}),M.map(function(m){return(0,N.clone)(m)})}if(typeof y=="object"&&Object.keys(y).length){var w=o({},y);return Object.keys(w).forEach(function(m){w[m]=(0,N.clone)(w[m])}),w}return y};N.clone=g},10278:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.camelize=N.isString=void 0;var o=function(y){return typeof y=="string"};N.isString=o;var x=function(y){var M=Object.create(null);return function(w){var m=M[w];return m||(M[w]=y(w))}},g=/-(\w)/g;N.camelize=x(function(A){return A.replace(g,function(y,M){return M?M.toUpperCase():""})})},32082:function(oe,N,o){"use strict";o.r(N),o.d(N,{Kernel:function(){return ne},World:function(){return rr}});var x=o(92137),g=o(96156),A=o(6610),y=o(5991),M=o(36719),w=o.n(M),m=o(81763),b=o.n(m),v=o(1469),h=o.n(v),d=o(87757),_=o.n(d),p=null,S=1;function k(){return S++}var O=null,F=null,D;(function(nt){nt[nt.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",nt[nt.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",nt[nt.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",nt[nt.POINTS=0]="POINTS",nt[nt.LINES=1]="LINES",nt[nt.LINE_LOOP=2]="LINE_LOOP",nt[nt.LINE_STRIP=3]="LINE_STRIP",nt[nt.TRIANGLES=4]="TRIANGLES",nt[nt.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",nt[nt.TRIANGLE_FAN=6]="TRIANGLE_FAN",nt[nt.ZERO=0]="ZERO",nt[nt.ONE=1]="ONE",nt[nt.SRC_COLOR=768]="SRC_COLOR",nt[nt.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",nt[nt.SRC_ALPHA=770]="SRC_ALPHA",nt[nt.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",nt[nt.DST_ALPHA=772]="DST_ALPHA",nt[nt.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",nt[nt.DST_COLOR=774]="DST_COLOR",nt[nt.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",nt[nt.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",nt[nt.FUNC_ADD=32774]="FUNC_ADD",nt[nt.BLEND_EQUATION=32777]="BLEND_EQUATION",nt[nt.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",nt[nt.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",nt[nt.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",nt[nt.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",nt[nt.MAX_EXT=32776]="MAX_EXT",nt[nt.MIN_EXT=32775]="MIN_EXT",nt[nt.BLEND_DST_RGB=32968]="BLEND_DST_RGB",nt[nt.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",nt[nt.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",nt[nt.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",nt[nt.CONSTANT_COLOR=32769]="CONSTANT_COLOR",nt[nt.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",nt[nt.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",nt[nt.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",nt[nt.BLEND_COLOR=32773]="BLEND_COLOR",nt[nt.ARRAY_BUFFER=34962]="ARRAY_BUFFER",nt[nt.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",nt[nt.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",nt[nt.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",nt[nt.STREAM_DRAW=35040]="STREAM_DRAW",nt[nt.STATIC_DRAW=35044]="STATIC_DRAW",nt[nt.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",nt[nt.BUFFER_SIZE=34660]="BUFFER_SIZE",nt[nt.BUFFER_USAGE=34661]="BUFFER_USAGE",nt[nt.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",nt[nt.FRONT=1028]="FRONT",nt[nt.BACK=1029]="BACK",nt[nt.FRONT_AND_BACK=1032]="FRONT_AND_BACK",nt[nt.CULL_FACE=2884]="CULL_FACE",nt[nt.BLEND=3042]="BLEND",nt[nt.DITHER=3024]="DITHER",nt[nt.STENCIL_TEST=2960]="STENCIL_TEST",nt[nt.DEPTH_TEST=2929]="DEPTH_TEST",nt[nt.SCISSOR_TEST=3089]="SCISSOR_TEST",nt[nt.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",nt[nt.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",nt[nt.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",nt[nt.NO_ERROR=0]="NO_ERROR",nt[nt.INVALID_ENUM=1280]="INVALID_ENUM",nt[nt.INVALID_VALUE=1281]="INVALID_VALUE",nt[nt.INVALID_OPERATION=1282]="INVALID_OPERATION",nt[nt.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",nt[nt.CW=2304]="CW",nt[nt.CCW=2305]="CCW",nt[nt.LINE_WIDTH=2849]="LINE_WIDTH",nt[nt.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",nt[nt.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",nt[nt.CULL_FACE_MODE=2885]="CULL_FACE_MODE",nt[nt.FRONT_FACE=2886]="FRONT_FACE",nt[nt.DEPTH_RANGE=2928]="DEPTH_RANGE",nt[nt.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",nt[nt.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",nt[nt.DEPTH_FUNC=2932]="DEPTH_FUNC",nt[nt.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",nt[nt.STENCIL_FUNC=2962]="STENCIL_FUNC",nt[nt.STENCIL_FAIL=2964]="STENCIL_FAIL",nt[nt.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",nt[nt.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",nt[nt.STENCIL_REF=2967]="STENCIL_REF",nt[nt.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",nt[nt.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",nt[nt.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",nt[nt.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",nt[nt.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",nt[nt.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",nt[nt.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",nt[nt.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",nt[nt.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",nt[nt.VIEWPORT=2978]="VIEWPORT",nt[nt.SCISSOR_BOX=3088]="SCISSOR_BOX",nt[nt.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",nt[nt.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",nt[nt.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",nt[nt.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",nt[nt.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",nt[nt.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",nt[nt.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",nt[nt.RED_BITS=3410]="RED_BITS",nt[nt.GREEN_BITS=3411]="GREEN_BITS",nt[nt.BLUE_BITS=3412]="BLUE_BITS",nt[nt.ALPHA_BITS=3413]="ALPHA_BITS",nt[nt.DEPTH_BITS=3414]="DEPTH_BITS",nt[nt.STENCIL_BITS=3415]="STENCIL_BITS",nt[nt.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",nt[nt.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",nt[nt.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",nt[nt.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",nt[nt.SAMPLES=32937]="SAMPLES",nt[nt.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",nt[nt.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",nt[nt.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",nt[nt.DONT_CARE=4352]="DONT_CARE",nt[nt.FASTEST=4353]="FASTEST",nt[nt.NICEST=4354]="NICEST",nt[nt.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",nt[nt.BYTE=5120]="BYTE",nt[nt.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",nt[nt.SHORT=5122]="SHORT",nt[nt.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",nt[nt.INT=5124]="INT",nt[nt.UNSIGNED_INT=5125]="UNSIGNED_INT",nt[nt.FLOAT=5126]="FLOAT",nt[nt.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",nt[nt.ALPHA=6406]="ALPHA",nt[nt.RGB=6407]="RGB",nt[nt.RGBA=6408]="RGBA",nt[nt.LUMINANCE=6409]="LUMINANCE",nt[nt.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",nt[nt.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",nt[nt.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",nt[nt.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",nt[nt.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",nt[nt.VERTEX_SHADER=35633]="VERTEX_SHADER",nt[nt.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",nt[nt.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",nt[nt.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",nt[nt.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",nt[nt.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",nt[nt.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",nt[nt.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",nt[nt.SHADER_TYPE=35663]="SHADER_TYPE",nt[nt.DELETE_STATUS=35712]="DELETE_STATUS",nt[nt.LINK_STATUS=35714]="LINK_STATUS",nt[nt.VALIDATE_STATUS=35715]="VALIDATE_STATUS",nt[nt.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",nt[nt.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",nt[nt.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",nt[nt.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",nt[nt.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",nt[nt.NEVER=512]="NEVER",nt[nt.LESS=513]="LESS",nt[nt.EQUAL=514]="EQUAL",nt[nt.LEQUAL=515]="LEQUAL",nt[nt.GREATER=516]="GREATER",nt[nt.NOTEQUAL=517]="NOTEQUAL",nt[nt.GEQUAL=518]="GEQUAL",nt[nt.ALWAYS=519]="ALWAYS",nt[nt.KEEP=7680]="KEEP",nt[nt.REPLACE=7681]="REPLACE",nt[nt.INCR=7682]="INCR",nt[nt.DECR=7683]="DECR",nt[nt.INVERT=5386]="INVERT",nt[nt.INCR_WRAP=34055]="INCR_WRAP",nt[nt.DECR_WRAP=34056]="DECR_WRAP",nt[nt.VENDOR=7936]="VENDOR",nt[nt.RENDERER=7937]="RENDERER",nt[nt.VERSION=7938]="VERSION",nt[nt.NEAREST=9728]="NEAREST",nt[nt.LINEAR=9729]="LINEAR",nt[nt.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",nt[nt.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",nt[nt.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",nt[nt.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",nt[nt.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",nt[nt.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",nt[nt.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",nt[nt.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",nt[nt.TEXTURE_2D=3553]="TEXTURE_2D",nt[nt.TEXTURE=5890]="TEXTURE",nt[nt.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",nt[nt.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",nt[nt.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",nt[nt.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",nt[nt.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",nt[nt.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",nt[nt.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",nt[nt.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",nt[nt.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",nt[nt.TEXTURE0=33984]="TEXTURE0",nt[nt.TEXTURE1=33985]="TEXTURE1",nt[nt.TEXTURE2=33986]="TEXTURE2",nt[nt.TEXTURE3=33987]="TEXTURE3",nt[nt.TEXTURE4=33988]="TEXTURE4",nt[nt.TEXTURE5=33989]="TEXTURE5",nt[nt.TEXTURE6=33990]="TEXTURE6",nt[nt.TEXTURE7=33991]="TEXTURE7",nt[nt.TEXTURE8=33992]="TEXTURE8",nt[nt.TEXTURE9=33993]="TEXTURE9",nt[nt.TEXTURE10=33994]="TEXTURE10",nt[nt.TEXTURE11=33995]="TEXTURE11",nt[nt.TEXTURE12=33996]="TEXTURE12",nt[nt.TEXTURE13=33997]="TEXTURE13",nt[nt.TEXTURE14=33998]="TEXTURE14",nt[nt.TEXTURE15=33999]="TEXTURE15",nt[nt.TEXTURE16=34e3]="TEXTURE16",nt[nt.TEXTURE17=34001]="TEXTURE17",nt[nt.TEXTURE18=34002]="TEXTURE18",nt[nt.TEXTURE19=34003]="TEXTURE19",nt[nt.TEXTURE20=34004]="TEXTURE20",nt[nt.TEXTURE21=34005]="TEXTURE21",nt[nt.TEXTURE22=34006]="TEXTURE22",nt[nt.TEXTURE23=34007]="TEXTURE23",nt[nt.TEXTURE24=34008]="TEXTURE24",nt[nt.TEXTURE25=34009]="TEXTURE25",nt[nt.TEXTURE26=34010]="TEXTURE26",nt[nt.TEXTURE27=34011]="TEXTURE27",nt[nt.TEXTURE28=34012]="TEXTURE28",nt[nt.TEXTURE29=34013]="TEXTURE29",nt[nt.TEXTURE30=34014]="TEXTURE30",nt[nt.TEXTURE31=34015]="TEXTURE31",nt[nt.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",nt[nt.REPEAT=10497]="REPEAT",nt[nt.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",nt[nt.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",nt[nt.FLOAT_VEC2=35664]="FLOAT_VEC2",nt[nt.FLOAT_VEC3=35665]="FLOAT_VEC3",nt[nt.FLOAT_VEC4=35666]="FLOAT_VEC4",nt[nt.INT_VEC2=35667]="INT_VEC2",nt[nt.INT_VEC3=35668]="INT_VEC3",nt[nt.INT_VEC4=35669]="INT_VEC4",nt[nt.BOOL=35670]="BOOL",nt[nt.BOOL_VEC2=35671]="BOOL_VEC2",nt[nt.BOOL_VEC3=35672]="BOOL_VEC3",nt[nt.BOOL_VEC4=35673]="BOOL_VEC4",nt[nt.FLOAT_MAT2=35674]="FLOAT_MAT2",nt[nt.FLOAT_MAT3=35675]="FLOAT_MAT3",nt[nt.FLOAT_MAT4=35676]="FLOAT_MAT4",nt[nt.SAMPLER_2D=35678]="SAMPLER_2D",nt[nt.SAMPLER_CUBE=35680]="SAMPLER_CUBE",nt[nt.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",nt[nt.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",nt[nt.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",nt[nt.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",nt[nt.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",nt[nt.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",nt[nt.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",nt[nt.COMPILE_STATUS=35713]="COMPILE_STATUS",nt[nt.LOW_FLOAT=36336]="LOW_FLOAT",nt[nt.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",nt[nt.HIGH_FLOAT=36338]="HIGH_FLOAT",nt[nt.LOW_INT=36339]="LOW_INT",nt[nt.MEDIUM_INT=36340]="MEDIUM_INT",nt[nt.HIGH_INT=36341]="HIGH_INT",nt[nt.FRAMEBUFFER=36160]="FRAMEBUFFER",nt[nt.RENDERBUFFER=36161]="RENDERBUFFER",nt[nt.RGBA4=32854]="RGBA4",nt[nt.RGB5_A1=32855]="RGB5_A1",nt[nt.RGB565=36194]="RGB565",nt[nt.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",nt[nt.STENCIL_INDEX=6401]="STENCIL_INDEX",nt[nt.STENCIL_INDEX8=36168]="STENCIL_INDEX8",nt[nt.DEPTH_STENCIL=34041]="DEPTH_STENCIL",nt[nt.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",nt[nt.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",nt[nt.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",nt[nt.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",nt[nt.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",nt[nt.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",nt[nt.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",nt[nt.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",nt[nt.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",nt[nt.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",nt[nt.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",nt[nt.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",nt[nt.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",nt[nt.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",nt[nt.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",nt[nt.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",nt[nt.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",nt[nt.NONE=0]="NONE",nt[nt.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",nt[nt.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",nt[nt.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",nt[nt.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",nt[nt.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",nt[nt.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",nt[nt.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",nt[nt.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",nt[nt.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",nt[nt.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",nt[nt.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",nt[nt.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",nt[nt.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",nt[nt.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",nt[nt.COPY_SRC=1]="COPY_SRC",nt[nt.COPY_DST=2]="COPY_DST",nt[nt.SAMPLED=4]="SAMPLED",nt[nt.STORAGE=8]="STORAGE",nt[nt.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(D||(D={}));var Z=function(){function nt(){(0,A.Z)(this,nt),this.config=void 0}return(0,y.Z)(nt,[{key:"get",value:function(){return this.config}},{key:"set",value:function(Hn){this.config=Hn}}]),nt}(),W=typeof navigator!="undefined"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),U;(function(nt){nt.Void="Void",nt.Boolean="Boolean",nt.Float="Float",nt.Uint32="Uint32",nt.Int32="Int32",nt.Vector="Vector",nt.Vector2Float="vec2<f32>",nt.Vector3Float="vec3<f32>",nt.Vector4Float="vec4<f32>",nt.Vector2Boolean="vec2<bool>",nt.Vector3Boolean="vec3<bool>",nt.Vector4Boolean="vec4<bool>",nt.Vector2Uint="vec2<u32>",nt.Vector3Uint="vec3<u32>",nt.Vector4Uint="vec4<u32>",nt.Vector2Int="vec2<i32>",nt.Vector3Int="vec3<i32>",nt.Vector4Int="vec4<i32>",nt.Matrix="Matrix",nt.Matrix3x3Float="mat3x3<f32>",nt.Matrix4x4Float="mat4x4<i32>",nt.Struct="Struct",nt.FloatArray="Float[]",nt.Vector4FloatArray="vec4<f32>[]"})(U||(U={}));var L;(function(nt){nt.Program="Program",nt.Identifier="Identifier",nt.VariableDeclaration="VariableDeclaration",nt.BlockStatement="BlockStatement",nt.ReturnStatement="ReturnStatement",nt.FunctionDeclaration="FunctionDeclaration",nt.VariableDeclarator="VariableDeclarator",nt.AssignmentExpression="AssignmentExpression",nt.LogicalExpression="LogicalExpression",nt.BinaryExpression="BinaryExpression",nt.ArrayExpression="ArrayExpression",nt.UnaryExpression="UnaryExpression",nt.UpdateExpression="UpdateExpression",nt.FunctionExpression="FunctionExpression",nt.MemberExpression="MemberExpression",nt.ConditionalExpression="ConditionalExpression",nt.ExpressionStatement="ExpressionStatement",nt.CallExpression="CallExpression",nt.NumThreadStatement="NumThreadStatement",nt.StorageStatement="StorageStatement",nt.DoWhileStatement="DoWhileStatement",nt.WhileStatement="WhileStatement",nt.ForStatement="ForStatement",nt.BreakStatement="BreakStatement",nt.ContinueStatement="ContinueStatement",nt.IfStatement="IfStatement",nt.ImportedFunctionStatement="ImportedFunctionStatement"})(L||(L={}));var V;(function(nt){nt.Input="Input",nt.Output="Output",nt.Uniform="Uniform",nt.Workgroup="Workgroup",nt.UniformConstant="UniformConstant",nt.Image="Image",nt.StorageBuffer="StorageBuffer",nt.Private="Private",nt.Function="Function"})(V||(V={}));var $;(function(nt){nt.GLSL100="GLSL100",nt.GLSL450="GLSL450",nt.WGSL="WGSL"})($||($={}));var G="__DefineValuePlaceholder__";function z(){if(typeof document!="undefined")return document.createElement("canvas");throw new Error("Cannot create a canvas in this context")}function K(nt,lr){var Hn=Object.keys(nt);if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(nt);lr&&(ut=ut.filter(function(bt){return Object.getOwnPropertyDescriptor(nt,bt).enumerable})),Hn.push.apply(Hn,ut)}return Hn}function re(nt){for(var lr=1;lr<arguments.length;lr++){var Hn=arguments[lr]!=null?arguments[lr]:{};lr%2?K(Object(Hn),!0).forEach(function(ut){(0,g.Z)(nt,ut,Hn[ut])}):Object.getOwnPropertyDescriptors?Object.defineProperties(nt,Object.getOwnPropertyDescriptors(Hn)):K(Object(Hn)).forEach(function(ut){Object.defineProperty(nt,ut,Object.getOwnPropertyDescriptor(Hn,ut))})}return nt}var ne=function(){function nt(lr,Hn){(0,A.Z)(this,nt),this.engine=lr,this.configService=Hn,this.model=void 0,this.dirty=!0,this.compiledBundle=void 0,this.initPromise=void 0}return(0,y.Z)(nt,[{key:"init",value:function(){var Hn=this.configService.get(),ut=Hn.canvas,bt=Hn.engineOptions;this.initPromise=this.engine.init(re({canvas:ut||z(),antialiasing:!1},bt))}},{key:"setBundle",value:function(Hn){this.compiledBundle=JSON.parse(JSON.stringify(Hn))}},{key:"setDispatch",value:function(Hn){return this.compiledBundle.context&&(this.compiledBundle.context.dispatch=Hn),this}},{key:"setMaxIteration",value:function(Hn){return this.compiledBundle.context&&(this.compiledBundle.context.maxIteration=Hn),this}},{key:"setBinding",value:function(Hn,ut){var bt=this;if(typeof Hn=="string"){var We=b()(ut)||w()(ut)||h()(ut);if(this.compiledBundle&&this.compiledBundle.context){var be=this.compiledBundle.context.defines.find(function(Ue){return Ue.name===Hn});if(be)return be.value=ut,this;var Ae=this.compiledBundle.context.uniforms.find(function(Ue){return Ue.name===Hn});Ae&&(We?(Ae.data=ut,Ae.isReferer=!1,Ae.storageClass===V.Uniform?this.model&&this.model.updateUniform(Hn,ut):this.model&&this.model.updateBuffer(Hn,ut)):(Ae.isReferer=!0,Ae.data=ut))}}else Object.keys(Hn).forEach(function(Ue){bt.setBinding(Ue,Hn[Ue])});return this}},{key:"execute",value:function(){var lr=(0,x.Z)(_().mark(function ut(){var bt=this,We,be,Ae=arguments;return _().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(We=Ae.length>0&&Ae[0]!==void 0?Ae[0]:1,!this.dirty){$e.next=6;break}return this.compiledBundle.context&&(We>1?this.compiledBundle.context.maxIteration=We:this.compiledBundle.context.maxIteration++),$e.next=5,this.compile();case 5:this.dirty=!1;case 6:for(this.engine.beginFrame(),this.engine.clear({}),this.compiledBundle.context&&this.compiledBundle.context.uniforms.filter(function(kt){var lt=kt.isReferer;return lt}).forEach(function(kt){var lt=kt.data,vt=kt.name;bt.model.confirmInput(lt.model,vt)}),be=0;be<We;be++)this.model.run();return this.engine.endFrame(),$e.abrupt("return",this);case 12:case"end":return $e.stop()}},ut,this)}));function Hn(){return lr.apply(this,arguments)}return Hn}()},{key:"getOutput",value:function(){var lr=(0,x.Z)(_().mark(function ut(){return _().wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",this.model.readData());case 1:case"end":return We.stop()}},ut,this)}));function Hn(){return lr.apply(this,arguments)}return Hn}()},{key:"compile",value:function(){var lr=(0,x.Z)(_().mark(function ut(){var bt,We,be;return _().wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,this.initPromise;case 2:return bt=re({},this.compiledBundle.context),We=this.engine.supportWebGPU?this.engine.useWGSL?$.WGSL:$.GLSL450:$.GLSL100,be=this.compiledBundle.shaders[We],bt.defines.filter(function($e){return $e.runtime}).forEach(function($e){var kt="".concat(G).concat($e.name);be=be.replace(kt,"".concat($e.value))}),bt.shader=be,bt.uniforms.forEach(function($e){if(!$e.data&&$e.storageClass===V.StorageBuffer){var kt=1;$e.type===U.FloatArray?kt=1:$e.type===U.Vector4FloatArray&&(kt=4),$e.data=new Float32Array(bt.output.length*kt).fill(0)}}),this.compiledBundle.context=bt,Ue.next=11,this.engine.createComputeModel(this.compiledBundle.context);case 11:this.model=Ue.sent;case 12:case"end":return Ue.stop()}},ut,this)}));function Hn(){return lr.apply(this,arguments)}return Hn}()}]),nt}(),Q=o(66164),ue=o.n(Q),he=function(){function nt(lr,Hn){(0,A.Z)(this,nt),this.attribute=void 0,this.buffer=void 0;var ut=Hn.buffer,bt=Hn.offset,We=Hn.stride,be=Hn.normalized,Ae=Hn.size,Ue=Hn.divisor;this.buffer=ut,this.attribute={buffer:ut.get(),offset:bt||0,stride:We||0,normalized:be||!1,divisor:Ue||0},Ae&&(this.attribute.size=Ae)}return(0,y.Z)(nt,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(Hn){this.buffer.subData(Hn)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),nt}(),Ee,ce,ve,fe,we,me,Pe,pe,Ie,Je,ke,De,Fe,Qe,qe=(Ee={},(0,g.Z)(Ee,D.POINTS,"points"),(0,g.Z)(Ee,D.LINES,"lines"),(0,g.Z)(Ee,D.LINE_LOOP,"line loop"),(0,g.Z)(Ee,D.LINE_STRIP,"line strip"),(0,g.Z)(Ee,D.TRIANGLES,"triangles"),(0,g.Z)(Ee,D.TRIANGLE_FAN,"triangle fan"),(0,g.Z)(Ee,D.TRIANGLE_STRIP,"triangle strip"),Ee),et=(ce={},(0,g.Z)(ce,D.STATIC_DRAW,"static"),(0,g.Z)(ce,D.DYNAMIC_DRAW,"dynamic"),(0,g.Z)(ce,D.STREAM_DRAW,"stream"),ce),dt=(ve={},(0,g.Z)(ve,D.BYTE,"int8"),(0,g.Z)(ve,D.UNSIGNED_INT,"int16"),(0,g.Z)(ve,D.INT,"int32"),(0,g.Z)(ve,D.UNSIGNED_BYTE,"uint8"),(0,g.Z)(ve,D.UNSIGNED_SHORT,"uint16"),(0,g.Z)(ve,D.UNSIGNED_INT,"uint32"),(0,g.Z)(ve,D.FLOAT,"float"),ve),Ke=(fe={},(0,g.Z)(fe,D.ALPHA,"alpha"),(0,g.Z)(fe,D.LUMINANCE,"luminance"),(0,g.Z)(fe,D.LUMINANCE_ALPHA,"luminance alpha"),(0,g.Z)(fe,D.RGB,"rgb"),(0,g.Z)(fe,D.RGBA,"rgba"),(0,g.Z)(fe,D.RGBA4,"rgba4"),(0,g.Z)(fe,D.RGB5_A1,"rgb5 a1"),(0,g.Z)(fe,D.RGB565,"rgb565"),(0,g.Z)(fe,D.DEPTH_COMPONENT,"depth"),(0,g.Z)(fe,D.DEPTH_STENCIL,"depth stencil"),fe),Ge=(we={},(0,g.Z)(we,D.DONT_CARE,"dont care"),(0,g.Z)(we,D.NICEST,"nice"),(0,g.Z)(we,D.FASTEST,"fast"),we),wt=(me={},(0,g.Z)(me,D.NEAREST,"nearest"),(0,g.Z)(me,D.LINEAR,"linear"),(0,g.Z)(me,D.LINEAR_MIPMAP_LINEAR,"mipmap"),(0,g.Z)(me,D.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),(0,g.Z)(me,D.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),(0,g.Z)(me,D.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),me),Vt=(Pe={},(0,g.Z)(Pe,D.REPEAT,"repeat"),(0,g.Z)(Pe,D.CLAMP_TO_EDGE,"clamp"),(0,g.Z)(Pe,D.MIRRORED_REPEAT,"mirror"),Pe),gt=(pe={},(0,g.Z)(pe,D.NONE,"none"),(0,g.Z)(pe,D.BROWSER_DEFAULT_WEBGL,"browser"),pe),it=(Ie={},(0,g.Z)(Ie,D.NEVER,"never"),(0,g.Z)(Ie,D.ALWAYS,"always"),(0,g.Z)(Ie,D.LESS,"less"),(0,g.Z)(Ie,D.LEQUAL,"lequal"),(0,g.Z)(Ie,D.GREATER,"greater"),(0,g.Z)(Ie,D.GEQUAL,"gequal"),(0,g.Z)(Ie,D.EQUAL,"equal"),(0,g.Z)(Ie,D.NOTEQUAL,"notequal"),Ie),Le=(Je={},(0,g.Z)(Je,D.FUNC_ADD,"add"),(0,g.Z)(Je,D.MIN_EXT,"min"),(0,g.Z)(Je,D.MAX_EXT,"max"),(0,g.Z)(Je,D.FUNC_SUBTRACT,"subtract"),(0,g.Z)(Je,D.FUNC_REVERSE_SUBTRACT,"reverse subtract"),Je),ct=(ke={},(0,g.Z)(ke,D.ZERO,"zero"),(0,g.Z)(ke,D.ONE,"one"),(0,g.Z)(ke,D.SRC_COLOR,"src color"),(0,g.Z)(ke,D.ONE_MINUS_SRC_COLOR,"one minus src color"),(0,g.Z)(ke,D.SRC_ALPHA,"src alpha"),(0,g.Z)(ke,D.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),(0,g.Z)(ke,D.DST_COLOR,"dst color"),(0,g.Z)(ke,D.ONE_MINUS_DST_COLOR,"one minus dst color"),(0,g.Z)(ke,D.DST_ALPHA,"dst alpha"),(0,g.Z)(ke,D.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),(0,g.Z)(ke,D.CONSTANT_COLOR,"constant color"),(0,g.Z)(ke,D.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),(0,g.Z)(ke,D.CONSTANT_ALPHA,"constant alpha"),(0,g.Z)(ke,D.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),(0,g.Z)(ke,D.SRC_ALPHA_SATURATE,"src alpha saturate"),ke),at=(De={},(0,g.Z)(De,D.NEVER,"never"),(0,g.Z)(De,D.ALWAYS,"always"),(0,g.Z)(De,D.LESS,"less"),(0,g.Z)(De,D.LEQUAL,"lequal"),(0,g.Z)(De,D.GREATER,"greater"),(0,g.Z)(De,D.GEQUAL,"gequal"),(0,g.Z)(De,D.EQUAL,"equal"),(0,g.Z)(De,D.NOTEQUAL,"notequal"),De),jt=(Fe={},(0,g.Z)(Fe,D.ZERO,"zero"),(0,g.Z)(Fe,D.KEEP,"keep"),(0,g.Z)(Fe,D.REPLACE,"replace"),(0,g.Z)(Fe,D.INVERT,"invert"),(0,g.Z)(Fe,D.INCR,"increment"),(0,g.Z)(Fe,D.DECR,"decrement"),(0,g.Z)(Fe,D.INCR_WRAP,"increment wrap"),(0,g.Z)(Fe,D.DECR_WRAP,"decrement wrap"),Fe),St=(Qe={},(0,g.Z)(Qe,D.FRONT,"front"),(0,g.Z)(Qe,D.BACK,"back"),Qe),fn=function(){function nt(lr,Hn){(0,A.Z)(this,nt),this.buffer=void 0;var ut=Hn.data,bt=Hn.usage,We=Hn.type;this.buffer=lr.buffer({data:ut,usage:et[bt||D.STATIC_DRAW],type:dt[We||D.UNSIGNED_BYTE]})}return(0,y.Z)(nt,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){}},{key:"subData",value:function(Hn){var ut=Hn.data,bt=Hn.offset;this.buffer.subdata(ut,bt)}}]),nt}(),Xt=o(85061);function Yt(nt,lr){var Hn=Object.keys(nt);if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(nt);lr&&(ut=ut.filter(function(bt){return Object.getOwnPropertyDescriptor(nt,bt).enumerable})),Hn.push.apply(Hn,ut)}return Hn}function Rt(nt){for(var lr=1;lr<arguments.length;lr++){var Hn=arguments[lr]!=null?arguments[lr]:{};lr%2?Yt(Object(Hn),!0).forEach(function(ut){(0,g.Z)(nt,ut,Hn[ut])}):Object.getOwnPropertyDescriptors?Object.defineProperties(nt,Object.getOwnPropertyDescriptors(Hn)):Yt(Object(Hn)).forEach(function(ut){Object.defineProperty(nt,ut,Object.getOwnPropertyDescriptor(Hn,ut))})}return nt}var Lt=`attribute vec3 a_Position;
|
||
attribute vec2 a_TexCoord;
|
||
|
||
varying vec2 v_TexCoord;
|
||
|
||
void main() {
|
||
gl_Position = vec4(a_Position, 1.0);
|
||
v_TexCoord = a_TexCoord;
|
||
}`,ze=0,rt=!1,tt=function(){function nt(lr,Hn){var ut=this;(0,A.Z)(this,nt),this.reGl=lr,this.context=Hn,this.entity=k(),this.texFBO=void 0,this.computeCommand=void 0,this.textureCache={},this.outputTextureName=void 0,this.swapOutputTextureName=void 0,this.compiledPingpong=void 0,this.dynamicPingpong=void 0;var bt={};this.context.uniforms.forEach(function($e){var kt=$e.name,lt=$e.type,vt=$e.data,Ct=$e.isReferer,Bt=$e.storageClass;if(Bt===V.StorageBuffer){if(Ct)ut.textureCache[kt]={data:void 0},bt["".concat(kt,"Size")]=function(){return vt.compiledBundle.context.output.textureSize};else{ut.textureCache[kt]=ut.calcDataTexture(kt,lt,vt);var mt=ut.textureCache[kt],Zt=mt.textureWidth,zt=mt.isOutput;bt["".concat(kt,"Size")]=[Zt,Zt],zt&&(ut.outputTextureName=kt,ut.context.needPingpong&&(ut.outputTextureName="".concat(kt,"Output"),ut.textureCache[ut.outputTextureName]=ut.calcDataTexture(kt,lt,vt)))}bt[kt]=function(){return rt&&console.log("[".concat(ut.entity,"]: ").concat(kt," ").concat(ut.textureCache[kt].id)),ut.textureCache[kt].texture}}else if(Bt===V.Uniform){if(vt&&(Array.isArray(vt)||w()(vt))&&vt.length>16)throw new Error("invalid data type ".concat(lt));bt[kt]=function(){return $e.data}}});var We=this.getOuputDataTexture(),be=We.textureWidth,Ae=We.texelCount;bt.u_OutputTextureSize=[be,be],bt.u_OutputTexelCount=Ae,this.context.output.textureSize=[be,be];var Ue={attributes:{a_Position:[[-1,1,0],[-1,-1,0],[1,1,0],[1,-1,0]],a_TexCoord:[[0,1],[0,0],[1,1],[1,0]]},frag:`#ifdef GL_FRAGMENT_PRECISION_HIGH
|
||
precision highp float;
|
||
#else
|
||
precision mediump float;
|
||
#endif
|
||
`.concat(this.context.shader),uniforms:bt,vert:Lt,primitive:"triangle strip",count:4};this.computeCommand=this.reGl(Ue)}return(0,y.Z)(nt,[{key:"run",value:function(){var Hn=this;this.context.maxIteration>1&&this.context.needPingpong&&(this.compiledPingpong=!0),(this.compiledPingpong||this.dynamicPingpong)&&this.swap(),this.texFBO=this.reGl.framebuffer({color:this.getOuputDataTexture().texture}),this.texFBO.use(function(){Hn.computeCommand()}),rt&&console.log("[".concat(this.entity,"]: output ").concat(this.getOuputDataTexture().id))}},{key:"readData",value:function(){var lr=(0,x.Z)(_().mark(function ut(){var bt=this,We,be,Ae,Ue,$e,kt,lt,vt;return _().wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:if(this.reGl({framebuffer:this.texFBO})(function(){We=bt.reGl.read()}),!We){Bt.next=6;break}if(be=this.getOuputDataTexture(),Ae=be.originalDataLength,Ue=be.elementsPerTexel,$e=be.typedArrayConstructor,kt=$e===void 0?Float32Array:$e,lt=[],Ue!==4)for(vt=0;vt<We.length;vt+=4)Ue===1?lt.push(We[vt]):Ue===2?lt.push(We[vt],We[vt+1]):lt.push(We[vt],We[vt+1],We[vt+2]);else lt=We;return Bt.abrupt("return",new kt(lt.slice(0,Ae)));case 6:return Bt.abrupt("return",new Float32Array);case 7:case"end":return Bt.stop()}},ut,this)}));function Hn(){return lr.apply(this,arguments)}return Hn}()},{key:"confirmInput",value:function(Hn,ut){var bt;this.entity===Hn.entity?(this.dynamicPingpong=!0,bt=this):bt=Hn,this.textureCache[ut].id=bt.getOuputDataTexture().id,this.textureCache[ut].texture=bt.getOuputDataTexture().texture,rt&&console.log("[".concat(this.entity,"]: confirm input ").concat(ut," from model ").concat(bt.entity,", ").concat(bt.getOuputDataTexture().id))}},{key:"updateUniform",value:function(){}},{key:"updateBuffer",value:function(Hn,ut){var bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,We=this.context.uniforms.find(function($e){var kt=$e.name;return kt===Hn});if(We){var be=this.calcDataTexture(Hn,We.type,ut),Ae=be.texture,Ue=be.data;this.textureCache[Hn].data=Ue,this.textureCache[Hn].texture=Ae}}},{key:"destroy",value:function(){}},{key:"swap",value:function(){if(this.swapOutputTextureName||this.createSwapOutputDataTexture(),this.compiledPingpong){var Hn=this.context.output.name;this.textureCache[Hn].id=this.getOuputDataTexture().id,this.textureCache[Hn].texture=this.getOuputDataTexture().texture}var ut=this.outputTextureName;this.outputTextureName=this.swapOutputTextureName,this.swapOutputTextureName=ut,rt&&console.log("[".concat(this.entity,"]: after swap, output ").concat(this.getOuputDataTexture().id))}},{key:"getOuputDataTexture",value:function(){return this.textureCache[this.outputTextureName]}},{key:"createSwapOutputDataTexture",value:function(){var Hn=this.cloneDataTexture(this.getOuputDataTexture());this.swapOutputTextureName="".concat(this.entity,"-swap"),this.textureCache[this.swapOutputTextureName]=Hn}},{key:"cloneDataTexture",value:function(Hn){var ut=Hn.data,bt=Hn.textureWidth;return Rt(Rt({},Hn),{},{id:ze++,texture:this.reGl.texture({width:bt,height:bt,data:ut,type:"float"})})}},{key:"calcDataTexture",value:function(Hn,ut,bt){var We=1;ut===U.Vector4FloatArray&&(We=4);for(var be=[],Ae=0;Ae<bt.length;Ae+=We)We===1?be.push(bt[Ae],0,0,0):We===2?be.push(bt[Ae],bt[Ae+1],0,0):We===3?be.push(bt[Ae],bt[Ae+1],bt[Ae+2],0):We===4&&be.push(bt[Ae],bt[Ae+1],bt[Ae+2],bt[Ae+3]);var Ue=bt.length,$e=Math.ceil(Ue/We),kt=Math.ceil(Math.sqrt($e)),lt=kt*kt;$e<lt&&be.push.apply(be,(0,Xt.Z)(new Array((lt-$e)*4).fill(0)));var vt=this.reGl.texture({width:kt,height:kt,data:be,type:"float"});return{id:ze++,data:be,originalDataLength:Ue,typedArrayConstructor:w()(bt)?bt.constructor:void 0,textureWidth:kt,texture:vt,texelCount:$e,elementsPerTexel:We,isOutput:Hn===this.context.output.name}}}]),nt}(),de=function(){function nt(lr,Hn){(0,A.Z)(this,nt),this.elements=void 0;var ut=Hn.data,bt=Hn.usage,We=Hn.type,be=Hn.count;this.elements=lr.elements({data:ut,usage:et[bt||D.STATIC_DRAW],type:dt[We||D.UNSIGNED_BYTE],count:be})}return(0,y.Z)(nt,[{key:"get",value:function(){return this.elements}},{key:"subData",value:function(Hn){var ut=Hn.data;this.elements.subdata(ut)}},{key:"destroy",value:function(){this.elements.destroy()}}]),nt}(),ot=function(){function nt(lr,Hn){(0,A.Z)(this,nt),this.framebuffer=void 0;var ut=Hn.width,bt=Hn.height,We=Hn.color,be=Hn.colors,Ae=Hn.depth,Ue=Hn.stencil,$e={width:ut,height:bt};Array.isArray(be)&&($e.colors=be.map(function(kt){return kt.get()})),We&&typeof We!="boolean"&&($e.color=We.get()),this.framebuffer=lr.framebuffer($e)}return(0,y.Z)(nt,[{key:"get",value:function(){return this.framebuffer}},{key:"destroy",value:function(){this.framebuffer.destroy()}},{key:"resize",value:function(Hn){var ut=Hn.width,bt=Hn.height;this.framebuffer.resize(ut,bt)}}]),nt}(),Et=o(90484),Ht=o(68630),Jt=o.n(Ht);function Qt(nt){var lr={};return Object.keys(nt).forEach(function(Hn){an(Hn,nt[Hn],lr,"")}),lr}function an(nt,lr,Hn,ut){if(lr===null||typeof lr=="number"||typeof lr=="boolean"||Array.isArray(lr)&&typeof lr[0]=="number"||w()(lr)||lr===""||lr.resize!==void 0){Hn["".concat(ut&&ut+".").concat(nt)]=lr;return}Jt()(lr)&&Object.keys(lr).forEach(function(bt){an(bt,lr[bt],Hn,"".concat(ut&&ut+".").concat(nt))}),Array.isArray(lr)&&lr.forEach(function(bt,We){Object.keys(bt).forEach(function(be){an(be,bt[be],Hn,"".concat(ut&&ut+".").concat(nt,"[").concat(We,"]"))})})}function Un(nt,lr){var Hn=Object.keys(nt);if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(nt);lr&&(ut=ut.filter(function(bt){return Object.getOwnPropertyDescriptor(nt,bt).enumerable})),Hn.push.apply(Hn,ut)}return Hn}function qt(nt){for(var lr=1;lr<arguments.length;lr++){var Hn=arguments[lr]!=null?arguments[lr]:{};lr%2?Un(Object(Hn),!0).forEach(function(ut){(0,g.Z)(nt,ut,Hn[ut])}):Object.getOwnPropertyDescriptors?Object.defineProperties(nt,Object.getOwnPropertyDescriptors(Hn)):Un(Object(Hn)).forEach(function(ut){Object.defineProperty(nt,ut,Object.getOwnPropertyDescriptor(Hn,ut))})}return nt}var rn=function(){function nt(lr,Hn){(0,A.Z)(this,nt),this.reGl=void 0,this.drawCommand=void 0,this.uniforms={},this.reGl=lr;var ut=Hn.vs,bt=Hn.fs,We=Hn.defines,be=Hn.attributes,Ae=Hn.uniforms,Ue=Hn.primitive,$e=Hn.count,kt=Hn.elements,lt=Hn.depth,vt=Hn.blend,Ct=Hn.stencil,Bt=Hn.cull,mt=Hn.instances,Zt=Hn.scissor,zt=Hn.viewport,ln={};Ae&&(this.uniforms=Qt(Ae),Object.keys(Ae).forEach(function(Bn){ln[Bn]=lr.prop(Bn)}));var An={};Object.keys(be).forEach(function(Bn){An[Bn]=be[Bn].get()});var En=We&&this.generateDefines(We)||"",Gn={attributes:An,frag:`#ifdef GL_FRAGMENT_PRECISION_HIGH
|
||
precision highp float;
|
||
#else
|
||
precision mediump float;
|
||
#endif
|
||
`.concat(En,`
|
||
`).concat(bt),uniforms:ln,vert:`
|
||
`.concat(En,`
|
||
`).concat(ut),primitive:qe[Ue===void 0?D.TRIANGLES:Ue]};mt&&(Gn.instances=mt),$e&&(Gn.count=$e),kt&&(Gn.elements=kt.get()),Zt&&(Gn.scissor=Zt),zt&&(Gn.viewport=zt),this.initDepthDrawParams({depth:lt},Gn),this.initBlendDrawParams({blend:vt},Gn),this.initStencilDrawParams({stencil:Ct},Gn),this.initCullDrawParams({cull:Bt},Gn),this.drawCommand=lr(Gn)}return(0,y.Z)(nt,[{key:"addUniforms",value:function(Hn){this.uniforms=qt(qt({},this.uniforms),Qt(Hn))}},{key:"draw",value:function(Hn){var ut=qt(qt({},this.uniforms),Qt(Hn.uniforms||{})),bt={};Object.keys(ut).forEach(function(We){var be=(0,Et.Z)(ut[We]);be==="boolean"||be==="number"||Array.isArray(ut[We])||ut[We].BYTES_PER_ELEMENT?bt[We]=ut[We]:be==="string"||(bt[We]=ut[We].get())}),this.drawCommand(bt)}},{key:"destroy",value:function(){}},{key:"initDepthDrawParams",value:function(Hn,ut){var bt=Hn.depth;bt&&(ut.depth={enable:bt.enable===void 0?!0:!!bt.enable,mask:bt.mask===void 0?!0:!!bt.mask,func:it[bt.func||D.LESS],range:bt.range||[0,1]})}},{key:"initBlendDrawParams",value:function(Hn,ut){var bt=Hn.blend;if(bt){var We=bt.enable,be=bt.func,Ae=bt.equation,Ue=bt.color,$e=Ue===void 0?[0,0,0,0]:Ue;ut.blend={enable:!!We,func:{srcRGB:ct[be&&be.srcRGB||D.SRC_ALPHA],srcAlpha:ct[be&&be.srcAlpha||D.SRC_ALPHA],dstRGB:ct[be&&be.dstRGB||D.ONE_MINUS_SRC_ALPHA],dstAlpha:ct[be&&be.dstAlpha||D.ONE_MINUS_SRC_ALPHA]},equation:{rgb:Le[Ae&&Ae.rgb||D.FUNC_ADD],alpha:Le[Ae&&Ae.alpha||D.FUNC_ADD]},color:$e}}}},{key:"initStencilDrawParams",value:function(Hn,ut){var bt=Hn.stencil;if(bt){var We=bt.enable,be=bt.mask,Ae=be===void 0?-1:be,Ue=bt.func,$e=Ue===void 0?{cmp:D.ALWAYS,ref:0,mask:-1}:Ue,kt=bt.opFront,lt=kt===void 0?{fail:D.KEEP,zfail:D.KEEP,zpass:D.KEEP}:kt,vt=bt.opBack,Ct=vt===void 0?{fail:D.KEEP,zfail:D.KEEP,zpass:D.KEEP}:vt;ut.stencil={enable:!!We,mask:Ae,func:qt(qt({},$e),{},{cmp:at[$e.cmp]}),opFront:{fail:jt[lt.fail],zfail:jt[lt.zfail],zpass:jt[lt.zpass]},opBack:{fail:jt[Ct.fail],zfail:jt[Ct.zfail],zpass:jt[Ct.zpass]}}}}},{key:"initCullDrawParams",value:function(Hn,ut){var bt=Hn.cull;if(bt){var We=bt.enable,be=bt.face,Ae=be===void 0?D.BACK:be;ut.cull={enable:!!We,face:St[Ae]}}}},{key:"generateDefines",value:function(Hn){return Object.keys(Hn).map(function(ut){return"#define ".concat(ut," ").concat(Number(Hn[ut]))}).join(`
|
||
`)}}]),nt}(),cn=function(){function nt(lr,Hn){(0,A.Z)(this,nt),this.texture=void 0,this.width=void 0,this.height=void 0;var ut=Hn.data,bt=Hn.type,We=bt===void 0?D.UNSIGNED_BYTE:bt,be=Hn.width,Ae=Hn.height,Ue=Hn.flipY,$e=Ue===void 0?!1:Ue,kt=Hn.format,lt=kt===void 0?D.RGBA:kt,vt=Hn.mipmap,Ct=vt===void 0?!1:vt,Bt=Hn.wrapS,mt=Bt===void 0?D.CLAMP_TO_EDGE:Bt,Zt=Hn.wrapT,zt=Zt===void 0?D.CLAMP_TO_EDGE:Zt,ln=Hn.aniso,An=ln===void 0?0:ln,En=Hn.alignment,Gn=En===void 0?1:En,Bn=Hn.premultiplyAlpha,pr=Bn===void 0?!1:Bn,_r=Hn.mag,na=_r===void 0?D.NEAREST:_r,$n=Hn.min,qr=$n===void 0?D.NEAREST:$n,Jr=Hn.colorSpace,Aa=Jr===void 0?D.BROWSER_DEFAULT_WEBGL:Jr;this.width=be,this.height=Ae;var ya={width:be,height:Ae,type:dt[We],format:Ke[lt],wrapS:Vt[mt],wrapT:Vt[zt],mag:wt[na],min:wt[qr],alignment:Gn,flipY:$e,colorSpace:gt[Aa],premultiplyAlpha:pr,aniso:An};ut&&(ya.data=ut),typeof Ct=="number"?ya.mipmap=Ge[Ct]:typeof Ct=="boolean"&&(ya.mipmap=Ct),this.texture=lr.texture(ya)}return(0,y.Z)(nt,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(Hn){var ut=Hn.width,bt=Hn.height;this.texture.resize(ut,bt),this.width=ut,this.height=bt}},{key:"destroy",value:function(){this.texture.destroy()}}]),nt}(),er=function(){function nt(){var lr=this;(0,A.Z)(this,nt),this.supportWebGPU=!1,this.useWGSL=!1,this.$canvas=void 0,this.gl=void 0,this.inited=void 0,this.createModel=function(){var Hn=(0,x.Z)(_().mark(function ut(bt){return _().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(!bt.uniforms){be.next=3;break}return be.next=3,Promise.all(Object.keys(bt.uniforms).map(function(){var Ae=(0,x.Z)(_().mark(function Ue($e){var kt;return _().wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:if(!(bt.uniforms[$e]&&bt.uniforms[$e].load!==void 0)){vt.next=5;break}return vt.next=3,bt.uniforms[$e].load();case 3:kt=vt.sent,bt.uniforms[$e]=kt;case 5:case"end":return vt.stop()}},Ue)}));return function(Ue){return Ae.apply(this,arguments)}}()));case 3:return be.abrupt("return",new rn(lr.gl,bt));case 4:case"end":return be.stop()}},ut)}));return function(ut){return Hn.apply(this,arguments)}}(),this.createAttribute=function(Hn){return new he(lr.gl,Hn)},this.createBuffer=function(Hn){return new fn(lr.gl,Hn)},this.createElements=function(Hn){return new de(lr.gl,Hn)},this.createTexture2D=function(Hn){return new cn(lr.gl,Hn)},this.createFramebuffer=function(Hn){return new ot(lr.gl,Hn)},this.useFramebuffer=function(Hn,ut){lr.gl({framebuffer:Hn?Hn.get():null})(ut)},this.createComputeModel=function(){var Hn=(0,x.Z)(_().mark(function ut(bt){return _().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.abrupt("return",new tt(lr.gl,bt));case 1:case"end":return be.stop()}},ut)}));return function(ut){return Hn.apply(this,arguments)}}(),this.clear=function(Hn){var ut=Hn.color,bt=Hn.depth,We=Hn.stencil,be=Hn.framebuffer,Ae=be===void 0?null:be,Ue={color:ut,depth:bt,stencil:We};Ue.framebuffer=Ae===null?Ae:Ae.get(),lr.gl.clear(Ue)},this.setScissor=function(Hn){lr.gl&&lr.gl._gl&&(Hn.enable&&Hn.box?(lr.gl._gl.enable(D.SCISSOR_TEST),lr.gl._gl.scissor(Hn.box.x,Hn.box.y,Hn.box.width,Hn.box.height)):lr.gl._gl.disable(D.SCISSOR_TEST),lr.gl._refresh())},this.viewport=function(Hn){var ut=Hn.x,bt=Hn.y,We=Hn.width,be=Hn.height;lr.gl&&lr.gl._gl&&(lr.gl._gl.viewport(ut,bt,We,be),lr.gl._refresh())},this.readPixels=function(Hn){var ut=Hn.framebuffer,bt=Hn.x,We=Hn.y,be=Hn.width,Ae=Hn.height,Ue={x:bt,y:We,width:be,height:Ae};return ut&&(Ue.framebuffer=ut.get()),lr.gl.read(Ue)},this.getCanvas=function(){return lr.$canvas},this.getGLContext=function(){return lr.gl._gl},this.destroy=function(){lr.gl&&(lr.gl.destroy(),lr.inited=!1)}}return(0,y.Z)(nt,[{key:"init",value:function(){var lr=(0,x.Z)(_().mark(function ut(bt){return _().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(!this.inited){be.next=2;break}return be.abrupt("return");case 2:return this.$canvas=bt.canvas,be.next=5,new Promise(function(Ae,Ue){ue()({canvas:bt.canvas,attributes:{alpha:!0,antialias:bt.antialias,premultipliedAlpha:!0},pixelRatio:1,extensions:["OES_element_index_uint","OES_texture_float","OES_standard_derivatives","angle_instanced_arrays"],optionalExtensions:["EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture"],profile:!0,onDone:function(kt,lt){(kt||!lt)&&Ue(kt),Ae(lt)}})});case 5:this.gl=be.sent,this.inited=!0;case 7:case"end":return be.stop()}},ut,this)}));function Hn(ut){return lr.apply(this,arguments)}return Hn}()},{key:"isFloatSupported",value:function(){return this.gl.limits.readFloat}},{key:"beginFrame",value:function(){}},{key:"endFrame",value:function(){}}]),nt}(),rr=function(){function nt(){(0,A.Z)(this,nt),this.engine=void 0,this.configService=new Z}return(0,y.Z)(nt,[{key:"setConfig",value:function(Hn){this.configService.set(Hn)}},{key:"setEngine",value:function(Hn){this.engine=Hn}},{key:"createEntity",value:function(){return k()}},{key:"createKernel",value:function(Hn){var ut=new ne(this.engine,this.configService);return typeof Hn=="string"?ut.setBundle(JSON.parse(Hn)):ut.setBundle(Hn),ut.init(),ut}},{key:"destroy",value:function(){this.engine.destroy()}}],[{key:"create",value:function(){var Hn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ut=new nt;return ut.setConfig(Hn),ut.setEngine(new er),ut}}]),nt}()},73696:function(oe,N,o){"use strict";o.r(N),o.d(N,{Cache:function(){return Ds},angleTo:function(){return $},arcToCubic:function(){return bt},assign:function(){return Wn},augment:function(){return ra},clamp:function(){return yf},clearAnimationFrame:function(){return uf},clone:function(){return fi},clonePath:function(){return kt},contains:function(){return Ri},debounce:function(){return vo},deepMix:function(){return lo},difference:function(){return Ui},direction:function(){return V},distanceSquareRoot:function(){return vt},each:function(){return Fi},endsWith:function(){return zn},equalizeSegments:function(){return Ur},every:function(){return Hr},extend:function(){return Gs},filter:function(){return Pi},find:function(){return cs},findIndex:function(){return vl},firstValue:function(){return Rn},fixedBase:function(){return Zc},flatten:function(){return nn},flattenDeep:function(){return Ot},forIn:function(){return _t},get:function(){return Fs},getDrawDirection:function(){return Aa},getPathArea:function(){return Jr},getPathBBox:function(){return Bn},getPathBBoxTotalLength:function(){return _r},getPointAtLength:function(){return ya},getRange:function(){return Tr},getRotatedCurve:function(){return $n},getTotalLength:function(){return pr},getType:function(){return sl},getWrapBehavior:function(){return ml},gradient:function(){return h},group:function(){return Ho},groupBy:function(){return Da},groupToMap:function(){return mi},has:function(){return Vn},hasKey:function(){return br},hasValue:function(){return on},head:function(){return Rs},identity:function(){return Sa},includes:function(){return Ri},indexOf:function(){return Qn},isArguments:function(){return bc},isArray:function(){return Yn},isArrayLike:function(){return Kr},isBoolean:function(){return Ms},isDate:function(){return Df},isDecimal:function(){return Vu},isElement:function(){return Rp},isEmpty:function(){return la},isEqual:function(){return _i},isEqualWith:function(){return ui},isError:function(){return Kf},isEven:function(){return fc},isFinite:function(){return xf},isFunction:function(){return Cn},isInteger:function(){return jc},isMatch:function(){return ja},isNegative:function(){return hu},isNil:function(){return Pn},isNull:function(){return Wu},isNumber:function(){return Fc},isNumberEqual:function(){return uu},isObject:function(){return Qa},isObjectLike:function(){return Do},isOdd:function(){return cf},isPlainObject:function(){return to},isPointInPolygon:function(){return Eu},isPointInStroke:function(){return Fn},isPolygonsIntersect:function(){return pf},isPositive:function(){return Cu},isPrototype:function(){return gf},isRegExp:function(){return $c},isString:function(){return Bo},isType:function(){return ta},isUndefined:function(){return Sp},keys:function(){return $i},last:function(){return xl},lowerCase:function(){return xr},lowerFirst:function(){return oi},map:function(){return Oi},mapValues:function(){return as},max:function(){return gr},maxBy:function(){return rf},memoize:function(){return Ro},min:function(){return Gr},minBy:function(){return Bu},mix:function(){return Wn},mod:function(){return ed},noop:function(){return kr},normalizePath:function(){return lr},number2color:function(){return Dc},omit:function(){return Us},parseRadius:function(){return oc},path2Absolute:function(){return rr},path2Curve:function(){return $e},path2String:function(){return K},pick:function(){return Js},pull:function(){return Li},pullAt:function(){return Za},reduce:function(){return Mi},remove:function(){return Xi},requestAnimationFrame:function(){return df},reverseCurve:function(){return lt},rgb2arr:function(){return x},set:function(){return Fr},size:function(){return Hi},some:function(){return Ti},sortBy:function(){return Il},startsWith:function(){return _l},substitute:function(){return yi},throttle:function(){return os},toArray:function(){return El},toCSSGradient:function(){return k},toDegree:function(){return Nc},toInteger:function(){return eu},toRGB:function(){return m},toRadian:function(){return Te},toString:function(){return _n},transform:function(){return L},union:function(){return Ys},uniq:function(){return ms},uniqueId:function(){return gc},upperCase:function(){return is},upperFirst:function(){return Ml},values:function(){return Pt},valuesOfKey:function(){return hl},vertical:function(){return G},wrapBehavior:function(){return Ps}});function x(hn){return[parseInt(hn.substr(1,2),16),parseInt(hn.substr(3,2),16),parseInt(hn.substr(5,2),16)]}function g(hn){var dn=Math.round(hn).toString(16);return dn.length===1?"0"+dn:dn}function A(hn){return"#"+g(hn[0])+g(hn[1])+g(hn[2])}var y=/rgba?\(([\s.,0-9]+)\)/;function M(){var hn=document.createElement("i");return hn.title="Web Colour Picker",hn.style.display="none",document.body.appendChild(hn),hn}var w;function m(hn){if(hn[0]==="#"&&hn.length===7)return hn;w||(w=M()),w.style.color=hn;var dn=document.defaultView.getComputedStyle(w,"").getPropertyValue("color"),tr=y.exec(dn),Mn=tr[1].split(/\s*,\s*/).map(function(Lr){return Number(Lr)});return dn=A(Mn),dn}function b(hn,dn,tr,Mn){return hn[Mn]+(dn[Mn]-hn[Mn])*tr}function v(hn,dn){var tr=isNaN(Number(dn))||dn<0?0:dn>1?1:Number(dn),Mn=hn.length-1,Lr=Math.floor(Mn*tr),sa=Mn*tr-Lr,Ma=hn[Lr],Ia=Lr===Mn?Ma:hn[Lr+1];return A([b(Ma,Ia,sa,0),b(Ma,Ia,sa,1),b(Ma,Ia,sa,2)])}function h(hn){var dn=typeof hn=="string"?hn.split("-"):hn,tr=dn.map(function(Mn){return x(Mn.indexOf("#")===-1?m(Mn):Mn)});return function(Mn){return v(tr,Mn)}}var d=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,_=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,p=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function S(hn){return/^[r,R,L,l]{1}[\s]*\(/.test(hn)}function k(hn){if(S(hn)){var dn,tr=void 0;if(hn[0]==="l"){var Mn=d.exec(hn),Lr=+Mn[1]+90;tr=Mn[2],dn="linear-gradient("+Lr+"deg, "}else if(hn[0]==="r"){dn="radial-gradient(";var Mn=_.exec(hn);tr=Mn[4]}var sa=tr.match(p);return sa.forEach(function(Ma,Ia){var Ja=Ma.split(":");dn+=Ja[1]+" "+Number(Ja[0])*100+"%",Ia!==sa.length-1&&(dn+=", ")}),dn+=")",dn}return hn}var O=o(16727),F=o(66119);function D(hn,dn,tr){var Mn=[0,0,0,0,0,0,0,0,0];return O.fromTranslation(Mn,tr),O.multiply(hn,Mn,dn)}function Z(hn,dn,tr){var Mn=[0,0,0,0,0,0,0,0,0];return O.fromRotation(Mn,tr),O.multiply(hn,Mn,dn)}function W(hn,dn,tr){var Mn=[0,0,0,0,0,0,0,0,0];return O.fromScaling(Mn,tr),O.multiply(hn,Mn,dn)}function U(hn,dn,tr){return O.multiply(hn,tr,dn)}function L(hn,dn){for(var tr=hn?[].concat(hn):[1,0,0,0,1,0,0,0,1],Mn=0,Lr=dn.length;Mn<Lr;Mn++){var sa=dn[Mn];switch(sa[0]){case"t":D(tr,tr,[sa[1],sa[2]]);break;case"s":W(tr,tr,[sa[1],sa[2]]);break;case"r":Z(tr,tr,sa[1]);break;case"m":U(tr,tr,sa[1]);break;default:break}}return tr}function V(hn,dn){return hn[0]*dn[1]-dn[0]*hn[1]}function $(hn,dn,tr){var Mn=F.angle(hn,dn),Lr=V(hn,dn)>=0;return tr?Lr?Math.PI*2-Mn:Mn:Lr?Mn:Math.PI*2-Mn}function G(hn,dn,tr){return tr?(hn[0]=dn[1],hn[1]=-1*dn[0]):(hn[0]=-1*dn[1],hn[1]=dn[0]),hn}function z(hn,dn){if(dn==="off")return[].concat(hn);var tr=typeof dn=="number"&&dn>=1?Math.pow(10,dn):1;return hn.map(function(Mn){var Lr=Mn.slice(1).map(Number).map(function(sa){return dn?Math.round(sa*tr)/tr:Math.round(sa)});return[Mn[0]].concat(Lr)})}function K(hn,dn){return dn===void 0&&(dn="off"),z(hn,dn).map(function(tr){return tr[0]+tr.slice(1).join(" ")}).join("")}var re=function(dn,tr){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Mn,Lr){Mn.__proto__=Lr}||function(Mn,Lr){for(var sa in Lr)Object.prototype.hasOwnProperty.call(Lr,sa)&&(Mn[sa]=Lr[sa])},re(dn,tr)};function ne(hn,dn){if(typeof dn!="function"&&dn!==null)throw new TypeError("Class extends value "+String(dn)+" is not a constructor or null");re(hn,dn);function tr(){this.constructor=hn}hn.prototype=dn===null?Object.create(dn):(tr.prototype=dn.prototype,new tr)}var Q=function(){return Q=Object.assign||function(tr){for(var Mn,Lr=1,sa=arguments.length;Lr<sa;Lr++){Mn=arguments[Lr];for(var Ma in Mn)Object.prototype.hasOwnProperty.call(Mn,Ma)&&(tr[Ma]=Mn[Ma])}return tr},Q.apply(this,arguments)};function ue(hn,dn){var tr={};for(var Mn in hn)Object.prototype.hasOwnProperty.call(hn,Mn)&&dn.indexOf(Mn)<0&&(tr[Mn]=hn[Mn]);if(hn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lr=0,Mn=Object.getOwnPropertySymbols(hn);Lr<Mn.length;Lr++)dn.indexOf(Mn[Lr])<0&&Object.prototype.propertyIsEnumerable.call(hn,Mn[Lr])&&(tr[Mn[Lr]]=hn[Mn[Lr]]);return tr}function he(hn,dn,tr,Mn){var Lr=arguments.length,sa=Lr<3?dn:Mn===null?Mn=Object.getOwnPropertyDescriptor(dn,tr):Mn,Ma;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")sa=Reflect.decorate(hn,dn,tr,Mn);else for(var Ia=hn.length-1;Ia>=0;Ia--)(Ma=hn[Ia])&&(sa=(Lr<3?Ma(sa):Lr>3?Ma(dn,tr,sa):Ma(dn,tr))||sa);return Lr>3&&sa&&Object.defineProperty(dn,tr,sa),sa}function Ee(hn,dn){return function(tr,Mn){dn(tr,Mn,hn)}}function ce(hn,dn,tr,Mn,Lr,sa){function Ma(nc){if(nc!==void 0&&typeof nc!="function")throw new TypeError("Function expected");return nc}for(var Ia=Mn.kind,Ja=Ia==="getter"?"get":Ia==="setter"?"set":"value",pi=!dn&&hn?Mn.static?hn:hn.prototype:null,fo=dn||(pi?Object.getOwnPropertyDescriptor(pi,Mn.name):{}),us,xo=!1,Qo=tr.length-1;Qo>=0;Qo--){var gs={};for(var ds in Mn)gs[ds]=ds==="access"?{}:Mn[ds];for(var ds in Mn.access)gs.access[ds]=Mn.access[ds];gs.addInitializer=function(nc){if(xo)throw new TypeError("Cannot add initializers after decoration has completed");sa.push(Ma(nc||null))};var nl=(0,tr[Qo])(Ia==="accessor"?{get:fo.get,set:fo.set}:fo[Ja],gs);if(Ia==="accessor"){if(nl===void 0)continue;if(nl===null||typeof nl!="object")throw new TypeError("Object expected");(us=Ma(nl.get))&&(fo.get=us),(us=Ma(nl.set))&&(fo.set=us),(us=Ma(nl.init))&&Lr.unshift(us)}else(us=Ma(nl))&&(Ia==="field"?Lr.unshift(us):fo[Ja]=us)}pi&&Object.defineProperty(pi,Mn.name,fo),xo=!0}function ve(hn,dn,tr){for(var Mn=arguments.length>2,Lr=0;Lr<dn.length;Lr++)tr=Mn?dn[Lr].call(hn,tr):dn[Lr].call(hn);return Mn?tr:void 0}function fe(hn){return typeof hn=="symbol"?hn:"".concat(hn)}function we(hn,dn,tr){return typeof dn=="symbol"&&(dn=dn.description?"[".concat(dn.description,"]"):""),Object.defineProperty(hn,"name",{configurable:!0,value:tr?"".concat(tr," ",dn):dn})}function me(hn,dn){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(hn,dn)}function Pe(hn,dn,tr,Mn){function Lr(sa){return sa instanceof tr?sa:new tr(function(Ma){Ma(sa)})}return new(tr||(tr=Promise))(function(sa,Ma){function Ia(fo){try{pi(Mn.next(fo))}catch(us){Ma(us)}}function Ja(fo){try{pi(Mn.throw(fo))}catch(us){Ma(us)}}function pi(fo){fo.done?sa(fo.value):Lr(fo.value).then(Ia,Ja)}pi((Mn=Mn.apply(hn,dn||[])).next())})}function pe(hn,dn){var tr={label:0,sent:function(){if(sa[0]&1)throw sa[1];return sa[1]},trys:[],ops:[]},Mn,Lr,sa,Ma;return Ma={next:Ia(0),throw:Ia(1),return:Ia(2)},typeof Symbol=="function"&&(Ma[Symbol.iterator]=function(){return this}),Ma;function Ia(pi){return function(fo){return Ja([pi,fo])}}function Ja(pi){if(Mn)throw new TypeError("Generator is already executing.");for(;Ma&&(Ma=0,pi[0]&&(tr=0)),tr;)try{if(Mn=1,Lr&&(sa=pi[0]&2?Lr.return:pi[0]?Lr.throw||((sa=Lr.return)&&sa.call(Lr),0):Lr.next)&&!(sa=sa.call(Lr,pi[1])).done)return sa;switch(Lr=0,sa&&(pi=[pi[0]&2,sa.value]),pi[0]){case 0:case 1:sa=pi;break;case 4:return tr.label++,{value:pi[1],done:!1};case 5:tr.label++,Lr=pi[1],pi=[0];continue;case 7:pi=tr.ops.pop(),tr.trys.pop();continue;default:if(sa=tr.trys,!(sa=sa.length>0&&sa[sa.length-1])&&(pi[0]===6||pi[0]===2)){tr=0;continue}if(pi[0]===3&&(!sa||pi[1]>sa[0]&&pi[1]<sa[3])){tr.label=pi[1];break}if(pi[0]===6&&tr.label<sa[1]){tr.label=sa[1],sa=pi;break}if(sa&&tr.label<sa[2]){tr.label=sa[2],tr.ops.push(pi);break}sa[2]&&tr.ops.pop(),tr.trys.pop();continue}pi=dn.call(hn,tr)}catch(fo){pi=[6,fo],Lr=0}finally{Mn=sa=0}if(pi[0]&5)throw pi[1];return{value:pi[0]?pi[1]:void 0,done:!0}}}var Ie=Object.create?function(hn,dn,tr,Mn){Mn===void 0&&(Mn=tr);var Lr=Object.getOwnPropertyDescriptor(dn,tr);(!Lr||("get"in Lr?!dn.__esModule:Lr.writable||Lr.configurable))&&(Lr={enumerable:!0,get:function(){return dn[tr]}}),Object.defineProperty(hn,Mn,Lr)}:function(hn,dn,tr,Mn){Mn===void 0&&(Mn=tr),hn[Mn]=dn[tr]};function Je(hn,dn){for(var tr in hn)tr!=="default"&&!Object.prototype.hasOwnProperty.call(dn,tr)&&Ie(dn,hn,tr)}function ke(hn){var dn=typeof Symbol=="function"&&Symbol.iterator,tr=dn&&hn[dn],Mn=0;if(tr)return tr.call(hn);if(hn&&typeof hn.length=="number")return{next:function(){return hn&&Mn>=hn.length&&(hn=void 0),{value:hn&&hn[Mn++],done:!hn}}};throw new TypeError(dn?"Object is not iterable.":"Symbol.iterator is not defined.")}function De(hn,dn){var tr=typeof Symbol=="function"&&hn[Symbol.iterator];if(!tr)return hn;var Mn=tr.call(hn),Lr,sa=[],Ma;try{for(;(dn===void 0||dn-- >0)&&!(Lr=Mn.next()).done;)sa.push(Lr.value)}catch(Ia){Ma={error:Ia}}finally{try{Lr&&!Lr.done&&(tr=Mn.return)&&tr.call(Mn)}finally{if(Ma)throw Ma.error}}return sa}function Fe(){for(var hn=[],dn=0;dn<arguments.length;dn++)hn=hn.concat(De(arguments[dn]));return hn}function Qe(){for(var hn=0,dn=0,tr=arguments.length;dn<tr;dn++)hn+=arguments[dn].length;for(var Mn=Array(hn),Lr=0,dn=0;dn<tr;dn++)for(var sa=arguments[dn],Ma=0,Ia=sa.length;Ma<Ia;Ma++,Lr++)Mn[Lr]=sa[Ma];return Mn}function qe(hn,dn,tr){if(tr||arguments.length===2)for(var Mn=0,Lr=dn.length,sa;Mn<Lr;Mn++)(sa||!(Mn in dn))&&(sa||(sa=Array.prototype.slice.call(dn,0,Mn)),sa[Mn]=dn[Mn]);return hn.concat(sa||Array.prototype.slice.call(dn))}function et(hn){return this instanceof et?(this.v=hn,this):new et(hn)}function dt(hn,dn,tr){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Mn=tr.apply(hn,dn||[]),Lr,sa=[];return Lr={},Ma("next"),Ma("throw"),Ma("return"),Lr[Symbol.asyncIterator]=function(){return this},Lr;function Ma(xo){Mn[xo]&&(Lr[xo]=function(Qo){return new Promise(function(gs,ds){sa.push([xo,Qo,gs,ds])>1||Ia(xo,Qo)})})}function Ia(xo,Qo){try{Ja(Mn[xo](Qo))}catch(gs){us(sa[0][3],gs)}}function Ja(xo){xo.value instanceof et?Promise.resolve(xo.value.v).then(pi,fo):us(sa[0][2],xo)}function pi(xo){Ia("next",xo)}function fo(xo){Ia("throw",xo)}function us(xo,Qo){xo(Qo),sa.shift(),sa.length&&Ia(sa[0][0],sa[0][1])}}function Ke(hn){var dn,tr;return dn={},Mn("next"),Mn("throw",function(Lr){throw Lr}),Mn("return"),dn[Symbol.iterator]=function(){return this},dn;function Mn(Lr,sa){dn[Lr]=hn[Lr]?function(Ma){return(tr=!tr)?{value:et(hn[Lr](Ma)),done:!1}:sa?sa(Ma):Ma}:sa}}function Ge(hn){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var dn=hn[Symbol.asyncIterator],tr;return dn?dn.call(hn):(hn=typeof ke=="function"?ke(hn):hn[Symbol.iterator](),tr={},Mn("next"),Mn("throw"),Mn("return"),tr[Symbol.asyncIterator]=function(){return this},tr);function Mn(sa){tr[sa]=hn[sa]&&function(Ma){return new Promise(function(Ia,Ja){Ma=hn[sa](Ma),Lr(Ia,Ja,Ma.done,Ma.value)})}}function Lr(sa,Ma,Ia,Ja){Promise.resolve(Ja).then(function(pi){sa({value:pi,done:Ia})},Ma)}}function wt(hn,dn){return Object.defineProperty?Object.defineProperty(hn,"raw",{value:dn}):hn.raw=dn,hn}var Vt=Object.create?function(hn,dn){Object.defineProperty(hn,"default",{enumerable:!0,value:dn})}:function(hn,dn){hn.default=dn};function gt(hn){if(hn&&hn.__esModule)return hn;var dn={};if(hn!=null)for(var tr in hn)tr!=="default"&&Object.prototype.hasOwnProperty.call(hn,tr)&&Ie(dn,hn,tr);return Vt(dn,hn),dn}function it(hn){return hn&&hn.__esModule?hn:{default:hn}}function Le(hn,dn,tr,Mn){if(tr==="a"&&!Mn)throw new TypeError("Private accessor was defined without a getter");if(typeof dn=="function"?hn!==dn||!Mn:!dn.has(hn))throw new TypeError("Cannot read private member from an object whose class did not declare it");return tr==="m"?Mn:tr==="a"?Mn.call(hn):Mn?Mn.value:dn.get(hn)}function ct(hn,dn,tr,Mn,Lr){if(Mn==="m")throw new TypeError("Private method is not writable");if(Mn==="a"&&!Lr)throw new TypeError("Private accessor was defined without a setter");if(typeof dn=="function"?hn!==dn||!Lr:!dn.has(hn))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Mn==="a"?Lr.call(hn,tr):Lr?Lr.value=tr:dn.set(hn,tr),tr}function at(hn,dn){if(dn===null||typeof dn!="object"&&typeof dn!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof hn=="function"?dn===hn:hn.has(dn)}function jt(hn,dn,tr){if(dn!=null){if(typeof dn!="object"&&typeof dn!="function")throw new TypeError("Object expected.");var Mn;if(tr){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");Mn=dn[Symbol.asyncDispose]}if(Mn===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");Mn=dn[Symbol.dispose]}if(typeof Mn!="function")throw new TypeError("Object not disposable.");hn.stack.push({value:dn,dispose:Mn,async:tr})}else tr&&hn.stack.push({async:!0});return dn}var St=typeof SuppressedError=="function"?SuppressedError:function(hn,dn,tr){var Mn=new Error(tr);return Mn.name="SuppressedError",Mn.error=hn,Mn.suppressed=dn,Mn};function fn(hn){function dn(Mn){hn.error=hn.hasError?new St(Mn,hn.error,"An error was suppressed during disposal."):Mn,hn.hasError=!0}function tr(){for(;hn.stack.length;){var Mn=hn.stack.pop();try{var Lr=Mn.dispose&&Mn.dispose.call(Mn.value);if(Mn.async)return Promise.resolve(Lr).then(tr,function(sa){return dn(sa),tr()})}catch(sa){dn(sa)}}if(hn.hasError)throw hn.error}return tr()}var Xt={__extends:ne,__assign:Q,__rest:ue,__decorate:he,__param:Ee,__metadata:me,__awaiter:Pe,__generator:pe,__createBinding:Ie,__exportStar:Je,__values:ke,__read:De,__spread:Fe,__spreadArrays:Qe,__spreadArray:qe,__await:et,__asyncGenerator:dt,__asyncDelegator:Ke,__asyncValues:Ge,__makeTemplateObject:wt,__importStar:gt,__importDefault:it,__classPrivateFieldGet:Le,__classPrivateFieldSet:ct,__classPrivateFieldIn:at,__addDisposableResource:jt,__disposeResources:fn},Yt={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function Rt(hn,dn,tr){if(hn[tr].length>7){hn[tr].shift();for(var Mn=hn[tr],Lr=tr;Mn.length;)dn[tr]="A",hn.splice(Lr+=1,0,["C"].concat(Mn.splice(0,6)));hn.splice(tr,1)}}var Lt={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function ze(hn){return Array.isArray(hn)&&hn.every(function(dn){var tr=dn[0].toLowerCase();return Lt[tr]===dn.length-1&&"achlmqstvz".includes(tr)})}function rt(hn){return ze(hn)&&hn.every(function(dn){var tr=dn[0];return tr===tr.toUpperCase()})}function tt(hn){return rt(hn)&&hn.every(function(dn){var tr=dn[0];return"ACLMQZ".includes(tr)})}function de(hn){for(var dn=hn.pathValue[hn.segmentStart],tr=dn.toLowerCase(),Mn=hn.data;Mn.length>=Lt[tr]&&(tr==="m"&&Mn.length>2?(hn.segments.push([dn].concat(Mn.splice(0,2))),tr="l",dn=dn==="m"?"l":"L"):hn.segments.push([dn].concat(Mn.splice(0,Lt[tr]))),!!Lt[tr]););}function ot(hn){var dn=hn.index,tr=hn.pathValue,Mn=tr.charCodeAt(dn);if(Mn===48){hn.param=0,hn.index+=1;return}if(Mn===49){hn.param=1,hn.index+=1;return}hn.err='[path-util]: invalid Arc flag "'+tr[dn]+'", expecting 0 or 1 at index '+dn}function Et(hn){return hn>=48&&hn<=57||hn===43||hn===45||hn===46}function Ht(hn){return hn>=48&&hn<=57}function Jt(hn){var dn=hn.max,tr=hn.pathValue,Mn=hn.index,Lr=Mn,sa=!1,Ma=!1,Ia=!1,Ja=!1,pi;if(Lr>=dn){hn.err="[path-util]: Invalid path value at index "+Lr+', "pathValue" is missing param';return}if(pi=tr.charCodeAt(Lr),(pi===43||pi===45)&&(Lr+=1,pi=tr.charCodeAt(Lr)),!Ht(pi)&&pi!==46){hn.err="[path-util]: Invalid path value at index "+Lr+', "'+tr[Lr]+'" is not a number';return}if(pi!==46){if(sa=pi===48,Lr+=1,pi=tr.charCodeAt(Lr),sa&&Lr<dn&&pi&&Ht(pi)){hn.err="[path-util]: Invalid path value at index "+Mn+', "'+tr[Mn]+'" illegal number';return}for(;Lr<dn&&Ht(tr.charCodeAt(Lr));)Lr+=1,Ma=!0;pi=tr.charCodeAt(Lr)}if(pi===46){for(Ja=!0,Lr+=1;Ht(tr.charCodeAt(Lr));)Lr+=1,Ia=!0;pi=tr.charCodeAt(Lr)}if(pi===101||pi===69){if(Ja&&!Ma&&!Ia){hn.err="[path-util]: Invalid path value at index "+Lr+', "'+tr[Lr]+'" invalid float exponent';return}if(Lr+=1,pi=tr.charCodeAt(Lr),(pi===43||pi===45)&&(Lr+=1),Lr<dn&&Ht(tr.charCodeAt(Lr)))for(;Lr<dn&&Ht(tr.charCodeAt(Lr));)Lr+=1;else{hn.err="[path-util]: Invalid path value at index "+Lr+', "'+tr[Lr]+'" invalid integer exponent';return}}hn.index=Lr,hn.param=+hn.pathValue.slice(Mn,Lr)}function Qt(hn){var dn=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];return hn===10||hn===13||hn===8232||hn===8233||hn===32||hn===9||hn===11||hn===12||hn===160||hn>=5760&&dn.includes(hn)}function an(hn){for(var dn=hn.pathValue,tr=hn.max;hn.index<tr&&Qt(dn.charCodeAt(hn.index));)hn.index+=1}function Un(hn){switch(hn|32){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:return!0;default:return!1}}function qt(hn){return(hn|32)==97}function rn(hn){var dn=hn.max,tr=hn.pathValue,Mn=hn.index,Lr=tr.charCodeAt(Mn),sa=Lt[tr[Mn].toLowerCase()];if(hn.segmentStart=Mn,!Un(Lr)){hn.err='[path-util]: Invalid path value "'+tr[Mn]+'" is not a path command';return}if(hn.index+=1,an(hn),hn.data=[],!sa){de(hn);return}for(;;){for(var Ma=sa;Ma>0;Ma-=1){if(qt(Lr)&&(Ma===3||Ma===4)?ot(hn):Jt(hn),hn.err.length)return;hn.data.push(hn.param),an(hn),hn.index<dn&&tr.charCodeAt(hn.index)===44&&(hn.index+=1,an(hn))}if(hn.index>=hn.max||!Et(tr.charCodeAt(hn.index)))break}de(hn)}var cn=function(){function hn(dn){this.pathValue=dn,this.segments=[],this.max=dn.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return hn}();function er(hn){if(ze(hn))return[].concat(hn);var dn=new cn(hn);for(an(dn);dn.index<dn.max&&!dn.err.length;)rn(dn);return dn.err?dn.err:dn.segments}function rr(hn){if(rt(hn))return[].concat(hn);var dn=er(hn),tr=0,Mn=0,Lr=0,sa=0;return dn.map(function(Ma){var Ia=Ma.slice(1).map(Number),Ja=Ma[0],pi=Ja.toUpperCase();if(Ja==="M")return tr=Ia[0],Mn=Ia[1],Lr=tr,sa=Mn,["M",tr,Mn];var fo;if(Ja!==pi)switch(pi){case"A":fo=[pi,Ia[0],Ia[1],Ia[2],Ia[3],Ia[4],Ia[5]+tr,Ia[6]+Mn];break;case"V":fo=[pi,Ia[0]+Mn];break;case"H":fo=[pi,Ia[0]+tr];break;default:{var us=Ia.map(function(Qo,gs){return Qo+(gs%2?Mn:tr)});fo=[pi].concat(us)}}else fo=[pi].concat(Ia);var xo=fo.length;switch(pi){case"Z":tr=Lr,Mn=sa;break;case"H":tr=fo[1];break;case"V":Mn=fo[1];break;default:tr=fo[xo-2],Mn=fo[xo-1],pi==="M"&&(Lr=tr,sa=Mn)}return fo})}function nt(hn,dn){var tr=hn[0],Mn=dn.x1,Lr=dn.y1,sa=dn.x2,Ma=dn.y2,Ia=hn.slice(1).map(Number),Ja=hn;if("TQ".includes(tr)||(dn.qx=null,dn.qy=null),tr==="H")Ja=["L",hn[1],Lr];else if(tr==="V")Ja=["L",Mn,hn[1]];else if(tr==="S"){var pi=Mn*2-sa,fo=Lr*2-Ma;dn.x1=pi,dn.y1=fo,Ja=["C",pi,fo].concat(Ia)}else if(tr==="T"){var us=Mn*2-dn.qx,xo=Lr*2-dn.qy;dn.qx=us,dn.qy=xo,Ja=["Q",us,xo].concat(Ia)}else if(tr==="Q"){var Qo=Ia[0],gs=Ia[1];dn.qx=Qo,dn.qy=gs}return Ja}function lr(hn){if(tt(hn))return[].concat(hn);for(var dn=rr(hn),tr=Q({},Yt),Mn=0;Mn<dn.length;Mn+=1){dn[Mn]=nt(dn[Mn],tr);var Lr=dn[Mn],sa=Lr.length;tr.x1=+Lr[sa-2],tr.y1=+Lr[sa-1],tr.x2=+Lr[sa-4]||tr.x1,tr.y2=+Lr[sa-3]||tr.y1}return dn}function Hn(hn){return tt(hn)&&hn.every(function(dn){var tr=dn[0];return"MC".includes(tr)})}function ut(hn,dn,tr){var Mn=hn*Math.cos(tr)-dn*Math.sin(tr),Lr=hn*Math.sin(tr)+dn*Math.cos(tr);return{x:Mn,y:Lr}}function bt(hn,dn,tr,Mn,Lr,sa,Ma,Ia,Ja,pi){var fo=hn,us=dn,xo=tr,Qo=Mn,gs=Ia,ds=Ja,nl=Math.PI*120/180,nc=Math.PI/180*(+Lr||0),Kl=[],mu,xc,Ll,wc,Xu;if(pi)xc=pi[0],Ll=pi[1],wc=pi[2],Xu=pi[3];else{mu=ut(fo,us,-nc),fo=mu.x,us=mu.y,mu=ut(gs,ds,-nc),gs=mu.x,ds=mu.y;var _u=(fo-gs)/2,wu=(us-ds)/2,fu=_u*_u/(xo*xo)+wu*wu/(Qo*Qo);fu>1&&(fu=Math.sqrt(fu),xo*=fu,Qo*=fu);var Kc=xo*xo,td=Qo*Qo,Ic=(sa===Ma?-1:1)*Math.sqrt(Math.abs((Kc*td-Kc*wu*wu-td*_u*_u)/(Kc*wu*wu+td*_u*_u)));wc=Ic*xo*wu/Qo+(fo+gs)/2,Xu=Ic*-Qo*_u/xo+(us+ds)/2,xc=Math.asin(((us-Xu)/Qo*Math.pow(10,9)>>0)/Math.pow(10,9)),Ll=Math.asin(((ds-Xu)/Qo*Math.pow(10,9)>>0)/Math.pow(10,9)),xc=fo<wc?Math.PI-xc:xc,Ll=gs<wc?Math.PI-Ll:Ll,xc<0&&(xc=Math.PI*2+xc),Ll<0&&(Ll=Math.PI*2+Ll),Ma&&xc>Ll&&(xc-=Math.PI*2),!Ma&&Ll>xc&&(Ll-=Math.PI*2)}var tu=Ll-xc;if(Math.abs(tu)>nl){var jf=Ll,Tu=gs,Ed=ds;Ll=xc+nl*(Ma&&Ll>xc?1:-1),gs=wc+xo*Math.cos(Ll),ds=Xu+Qo*Math.sin(Ll),Kl=bt(gs,ds,xo,Qo,Lr,0,Ma,Tu,Ed,[Ll,jf,wc,Xu])}tu=Ll-xc;var vd=Math.cos(xc),Gu=Math.sin(xc),Op=Math.cos(Ll),np=Math.sin(Ll),$d=Math.tan(tu/4),hd=4/3*xo*$d,Ip=4/3*Qo*$d,dd=[fo,us],cr=[fo+hd*Gu,us-Ip*vd],un=[gs+hd*np,ds-Ip*Op],Jn=[gs,ds];if(cr[0]=2*dd[0]-cr[0],cr[1]=2*dd[1]-cr[1],pi)return cr.concat(un,Jn,Kl);Kl=cr.concat(un,Jn,Kl);for(var Xn=[],Vr=0,Zn=Kl.length;Vr<Zn;Vr+=1)Xn[Vr]=Vr%2?ut(Kl[Vr-1],Kl[Vr],nc).y:ut(Kl[Vr],Kl[Vr+1],nc).x;return Xn}function We(hn,dn,tr,Mn,Lr,sa){var Ma=1/3,Ia=2/3;return[Ma*hn+Ia*tr,Ma*dn+Ia*Mn,Ma*Lr+Ia*tr,Ma*sa+Ia*Mn,Lr,sa]}function be(hn,dn,tr){var Mn=hn[0],Lr=hn[1],sa=dn[0],Ma=dn[1];return[Mn+(sa-Mn)*tr,Lr+(Ma-Lr)*tr]}var Ae=function(dn,tr,Mn,Lr){var sa=.5,Ma=be([dn,tr],[Mn,Lr],sa);return qe(qe([],Ma,!0),[Mn,Lr,Mn,Lr],!1)};function Ue(hn,dn){var tr=hn[0],Mn=hn.slice(1).map(Number),Lr=Mn[0],sa=Mn[1],Ma,Ia=dn.x1,Ja=dn.y1,pi=dn.x,fo=dn.y;switch("TQ".includes(tr)||(dn.qx=null,dn.qy=null),tr){case"M":return dn.x=Lr,dn.y=sa,hn;case"A":return Ma=[Ia,Ja].concat(Mn),["C"].concat(bt(Ma[0],Ma[1],Ma[2],Ma[3],Ma[4],Ma[5],Ma[6],Ma[7],Ma[8],Ma[9]));case"Q":return dn.qx=Lr,dn.qy=sa,Ma=[Ia,Ja].concat(Mn),["C"].concat(We(Ma[0],Ma[1],Ma[2],Ma[3],Ma[4],Ma[5]));case"L":return["C"].concat(Ae(Ia,Ja,Lr,sa));case"Z":return Ia===pi&&Ja===fo?["C",Ia,Ja,pi,fo,pi,fo]:["C"].concat(Ae(Ia,Ja,pi,fo));default:}return hn}function $e(hn,dn){if(dn===void 0&&(dn=!1),Hn(hn)){var tr=[].concat(hn);return dn?[tr,[]]:tr}for(var Mn=lr(hn),Lr=Q({},Yt),sa=[],Ma="",Ia=Mn.length,Ja,pi,fo=[],us=0;us<Ia;us+=1){Mn[us]&&(Ma=Mn[us][0]),sa[us]=Ma;var xo=Ue(Mn[us],Lr);Mn[us]=xo,Rt(Mn,sa,us),Ia=Mn.length,Ma==="Z"&&fo.push(us),Ja=Mn[us],pi=Ja.length,Lr.x1=+Ja[pi-2],Lr.y1=+Ja[pi-1],Lr.x2=+Ja[pi-4]||Lr.x1,Lr.y2=+Ja[pi-3]||Lr.y1}return dn?[Mn,fo]:Mn}function kt(hn){return hn.map(function(dn){return Array.isArray(dn)?[].concat(dn):dn})}function lt(hn){var dn=hn.slice(1).map(function(tr,Mn,Lr){return Mn?Lr[Mn-1].slice(-2).concat(tr.slice(1)):hn[0].slice(1).concat(tr.slice(1))}).map(function(tr){return tr.map(function(Mn,Lr){return tr[tr.length-Lr-2*(1-Lr%2)]})}).reverse();return[["M"].concat(dn[0].slice(0,2))].concat(dn.map(function(tr){return["C"].concat(tr.slice(2))}))}function vt(hn,dn){return Math.sqrt((hn[0]-dn[0])*(hn[0]-dn[0])+(hn[1]-dn[1])*(hn[1]-dn[1]))}function Ct(hn,dn,tr,Mn,Lr){var sa=vt([hn,dn],[tr,Mn]),Ma={x:0,y:0};if(typeof Lr=="number")if(Lr<=0)Ma={x:hn,y:dn};else if(Lr>=sa)Ma={x:tr,y:Mn};else{var Ia=be([hn,dn],[tr,Mn],Lr/sa),Ja=Ia[0],pi=Ia[1];Ma={x:Ja,y:pi}}return{length:sa,point:Ma,min:{x:Math.min(hn,tr),y:Math.min(dn,Mn)},max:{x:Math.max(hn,tr),y:Math.max(dn,Mn)}}}function Bt(hn,dn){var tr=hn.x,Mn=hn.y,Lr=dn.x,sa=dn.y,Ma=tr*Lr+Mn*sa,Ia=Math.sqrt((Math.pow(tr,2)+Math.pow(Mn,2))*(Math.pow(Lr,2)+Math.pow(sa,2))),Ja=tr*sa-Mn*Lr<0?-1:1,pi=Ja*Math.acos(Ma/Ia);return pi}function mt(hn,dn,tr,Mn,Lr,sa,Ma,Ia,Ja,pi){var fo=Math.abs,us=Math.sin,xo=Math.cos,Qo=Math.sqrt,gs=Math.PI,ds=fo(tr),nl=fo(Mn),nc=(Lr%360+360)%360,Kl=nc*(gs/180);if(hn===Ia&&dn===Ja)return{x:hn,y:dn};if(ds===0||nl===0)return Ct(hn,dn,Ia,Ja,pi).point;var mu=(hn-Ia)/2,xc=(dn-Ja)/2,Ll={x:xo(Kl)*mu+us(Kl)*xc,y:-us(Kl)*mu+xo(Kl)*xc},wc=Math.pow(Ll.x,2)/Math.pow(ds,2)+Math.pow(Ll.y,2)/Math.pow(nl,2);wc>1&&(ds*=Qo(wc),nl*=Qo(wc));var Xu=Math.pow(ds,2)*Math.pow(nl,2)-Math.pow(ds,2)*Math.pow(Ll.y,2)-Math.pow(nl,2)*Math.pow(Ll.x,2),_u=Math.pow(ds,2)*Math.pow(Ll.y,2)+Math.pow(nl,2)*Math.pow(Ll.x,2),wu=Xu/_u;wu=wu<0?0:wu;var fu=(sa!==Ma?1:-1)*Qo(wu),Kc={x:fu*(ds*Ll.y/nl),y:fu*(-(nl*Ll.x)/ds)},td={x:xo(Kl)*Kc.x-us(Kl)*Kc.y+(hn+Ia)/2,y:us(Kl)*Kc.x+xo(Kl)*Kc.y+(dn+Ja)/2},Ic={x:(Ll.x-Kc.x)/ds,y:(Ll.y-Kc.y)/nl},tu=Bt({x:1,y:0},Ic),jf={x:(-Ll.x-Kc.x)/ds,y:(-Ll.y-Kc.y)/nl},Tu=Bt(Ic,jf);!Ma&&Tu>0?Tu-=2*gs:Ma&&Tu<0&&(Tu+=2*gs),Tu%=2*gs;var Ed=tu+Tu*pi,vd=ds*xo(Ed),Gu=nl*us(Ed),Op={x:xo(Kl)*vd-us(Kl)*Gu+td.x,y:us(Kl)*vd+xo(Kl)*Gu+td.y};return Op}function Zt(hn,dn,tr,Mn,Lr,sa,Ma,Ia,Ja,pi,fo){var us,xo=fo.bbox,Qo=xo===void 0?!0:xo,gs=fo.length,ds=gs===void 0?!0:gs,nl=fo.sampleSize,nc=nl===void 0?30:nl,Kl=typeof pi=="number",mu=hn,xc=dn,Ll=0,wc=[mu,xc,Ll],Xu=[mu,xc],_u=0,wu={x:0,y:0},fu=[{x:mu,y:xc}];Kl&&pi<=0&&(wu={x:mu,y:xc});for(var Kc=0;Kc<=nc;Kc+=1){if(_u=Kc/nc,us=mt(hn,dn,tr,Mn,Lr,sa,Ma,Ia,Ja,_u),mu=us.x,xc=us.y,Qo&&fu.push({x:mu,y:xc}),ds&&(Ll+=vt(Xu,[mu,xc])),Xu=[mu,xc],Kl&&Ll>=pi&&pi>wc[2]){var td=(Ll-pi)/(Ll-wc[2]);wu={x:Xu[0]*(1-td)+wc[0]*td,y:Xu[1]*(1-td)+wc[1]*td}}wc=[mu,xc,Ll]}return Kl&&pi>=Ll&&(wu={x:Ia,y:Ja}),{length:Ll,point:wu,min:{x:Math.min.apply(null,fu.map(function(Ic){return Ic.x})),y:Math.min.apply(null,fu.map(function(Ic){return Ic.y}))},max:{x:Math.max.apply(null,fu.map(function(Ic){return Ic.x})),y:Math.max.apply(null,fu.map(function(Ic){return Ic.y}))}}}function zt(hn,dn,tr,Mn,Lr,sa,Ma,Ia,Ja){var pi=1-Ja;return{x:Math.pow(pi,3)*hn+3*Math.pow(pi,2)*Ja*tr+3*pi*Math.pow(Ja,2)*Lr+Math.pow(Ja,3)*Ma,y:Math.pow(pi,3)*dn+3*Math.pow(pi,2)*Ja*Mn+3*pi*Math.pow(Ja,2)*sa+Math.pow(Ja,3)*Ia}}function ln(hn,dn,tr,Mn,Lr,sa,Ma,Ia,Ja,pi){var fo,us=pi.bbox,xo=us===void 0?!0:us,Qo=pi.length,gs=Qo===void 0?!0:Qo,ds=pi.sampleSize,nl=ds===void 0?10:ds,nc=typeof Ja=="number",Kl=hn,mu=dn,xc=0,Ll=[Kl,mu,xc],wc=[Kl,mu],Xu=0,_u={x:0,y:0},wu=[{x:Kl,y:mu}];nc&&Ja<=0&&(_u={x:Kl,y:mu});for(var fu=0;fu<=nl;fu+=1){if(Xu=fu/nl,fo=zt(hn,dn,tr,Mn,Lr,sa,Ma,Ia,Xu),Kl=fo.x,mu=fo.y,xo&&wu.push({x:Kl,y:mu}),gs&&(xc+=vt(wc,[Kl,mu])),wc=[Kl,mu],nc&&xc>=Ja&&Ja>Ll[2]){var Kc=(xc-Ja)/(xc-Ll[2]);_u={x:wc[0]*(1-Kc)+Ll[0]*Kc,y:wc[1]*(1-Kc)+Ll[1]*Kc}}Ll=[Kl,mu,xc]}return nc&&Ja>=xc&&(_u={x:Ma,y:Ia}),{length:xc,point:_u,min:{x:Math.min.apply(null,wu.map(function(td){return td.x})),y:Math.min.apply(null,wu.map(function(td){return td.y}))},max:{x:Math.max.apply(null,wu.map(function(td){return td.x})),y:Math.max.apply(null,wu.map(function(td){return td.y}))}}}function An(hn,dn,tr,Mn,Lr,sa,Ma){var Ia=1-Ma;return{x:Math.pow(Ia,2)*hn+2*Ia*Ma*tr+Math.pow(Ma,2)*Lr,y:Math.pow(Ia,2)*dn+2*Ia*Ma*Mn+Math.pow(Ma,2)*sa}}function En(hn,dn,tr,Mn,Lr,sa,Ma,Ia){var Ja,pi=Ia.bbox,fo=pi===void 0?!0:pi,us=Ia.length,xo=us===void 0?!0:us,Qo=Ia.sampleSize,gs=Qo===void 0?10:Qo,ds=typeof Ma=="number",nl=hn,nc=dn,Kl=0,mu=[nl,nc,Kl],xc=[nl,nc],Ll=0,wc={x:0,y:0},Xu=[{x:nl,y:nc}];ds&&Ma<=0&&(wc={x:nl,y:nc});for(var _u=0;_u<=gs;_u+=1){if(Ll=_u/gs,Ja=An(hn,dn,tr,Mn,Lr,sa,Ll),nl=Ja.x,nc=Ja.y,fo&&Xu.push({x:nl,y:nc}),xo&&(Kl+=vt(xc,[nl,nc])),xc=[nl,nc],ds&&Kl>=Ma&&Ma>mu[2]){var wu=(Kl-Ma)/(Kl-mu[2]);wc={x:xc[0]*(1-wu)+mu[0]*wu,y:xc[1]*(1-wu)+mu[1]*wu}}mu=[nl,nc,Kl]}return ds&&Ma>=Kl&&(wc={x:Lr,y:sa}),{length:Kl,point:wc,min:{x:Math.min.apply(null,Xu.map(function(fu){return fu.x})),y:Math.min.apply(null,Xu.map(function(fu){return fu.y}))},max:{x:Math.max.apply(null,Xu.map(function(fu){return fu.x})),y:Math.max.apply(null,Xu.map(function(fu){return fu.y}))}}}function Gn(hn,dn,tr){for(var Mn,Lr,sa,Ma,Ia,Ja,pi=lr(hn),fo=typeof dn=="number",us,xo=[],Qo,gs=0,ds=0,nl=0,nc=0,Kl,mu=[],xc=[],Ll=0,wc={x:0,y:0},Xu=wc,_u=wc,wu=wc,fu=0,Kc=0,td=pi.length;Kc<td;Kc+=1)Kl=pi[Kc],Qo=Kl[0],us=Qo==="M",xo=us?xo:[gs,ds].concat(Kl.slice(1)),us?(nl=Kl[1],nc=Kl[2],wc={x:nl,y:nc},Xu=wc,Ll=0,fo&&dn<.001&&(wu=wc)):Qo==="L"?(Mn=Ct(xo[0],xo[1],xo[2],xo[3],(dn||0)-fu),Ll=Mn.length,wc=Mn.min,Xu=Mn.max,_u=Mn.point):Qo==="A"?(Lr=Zt(xo[0],xo[1],xo[2],xo[3],xo[4],xo[5],xo[6],xo[7],xo[8],(dn||0)-fu,tr||{}),Ll=Lr.length,wc=Lr.min,Xu=Lr.max,_u=Lr.point):Qo==="C"?(sa=ln(xo[0],xo[1],xo[2],xo[3],xo[4],xo[5],xo[6],xo[7],(dn||0)-fu,tr||{}),Ll=sa.length,wc=sa.min,Xu=sa.max,_u=sa.point):Qo==="Q"?(Ma=En(xo[0],xo[1],xo[2],xo[3],xo[4],xo[5],(dn||0)-fu,tr||{}),Ll=Ma.length,wc=Ma.min,Xu=Ma.max,_u=Ma.point):Qo==="Z"&&(xo=[gs,ds,nl,nc],Ia=Ct(xo[0],xo[1],xo[2],xo[3],(dn||0)-fu),Ll=Ia.length,wc=Ia.min,Xu=Ia.max,_u=Ia.point),fo&&fu<dn&&fu+Ll>=dn&&(wu=_u),xc.push(Xu),mu.push(wc),fu+=Ll,Ja=Qo!=="Z"?Kl.slice(-2):[nl,nc],gs=Ja[0],ds=Ja[1];return fo&&dn>=fu&&(wu={x:gs,y:ds}),{length:fu,point:wu,min:{x:Math.min.apply(null,mu.map(function(Ic){return Ic.x})),y:Math.min.apply(null,mu.map(function(Ic){return Ic.y}))},max:{x:Math.max.apply(null,xc.map(function(Ic){return Ic.x})),y:Math.max.apply(null,xc.map(function(Ic){return Ic.y}))}}}function Bn(hn,dn){if(!hn)return{x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var tr=Gn(hn,void 0,Q(Q({},dn),{length:!1})),Mn=tr.min,Lr=Mn.x,sa=Mn.y,Ma=tr.max,Ia=Ma.x,Ja=Ma.y,pi=Ia-Lr,fo=Ja-sa;return{width:pi,height:fo,x:Lr,y:sa,x2:Ia,y2:Ja,cx:Lr+pi/2,cy:sa+fo/2,cz:Math.max(pi,fo)+Math.min(pi,fo)/2}}function pr(hn,dn){return Gn(hn,void 0,Q(Q({},dn),{bbox:!1,length:!0})).length}function _r(hn,dn){if(!hn)return{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var tr=Gn(hn,void 0,Q(Q({},dn),{bbox:!0,length:!0})),Mn=tr.length,Lr=tr.min,sa=Lr.x,Ma=Lr.y,Ia=tr.max,Ja=Ia.x,pi=Ia.y,fo=Ja-sa,us=pi-Ma;return{length:Mn,width:fo,height:us,x:sa,y:Ma,x2:Ja,y2:pi,cx:sa+fo/2,cy:Ma+us/2,cz:Math.max(fo,us)+Math.min(fo,us)/2}}function na(hn){var dn=hn.length,tr=dn-1;return hn.map(function(Mn,Lr){return hn.map(function(sa,Ma){var Ia=Lr+Ma,Ja;return Ma===0||hn[Ia]&&hn[Ia][0]==="M"?(Ja=hn[Ia],["M"].concat(Ja.slice(-2))):(Ia>=dn&&(Ia-=tr),hn[Ia])})})}function $n(hn,dn){var tr=hn.length-1,Mn=[],Lr=0,sa=0,Ma=na(hn);return Ma.forEach(function(Ia,Ja){hn.slice(1).forEach(function(pi,fo){sa+=vt(hn[(Ja+fo)%tr].slice(-2),dn[fo%tr].slice(-2))}),Mn[Ja]=sa,sa=0}),Lr=Mn.indexOf(Math.min.apply(null,Mn)),Ma[Lr]}function qr(hn,dn,tr,Mn,Lr,sa,Ma,Ia){return 3*((Ia-dn)*(tr+Lr)-(Ma-hn)*(Mn+sa)+Mn*(hn-Lr)-tr*(dn-sa)+Ia*(Lr+hn/3)-Ma*(sa+dn/3))/20}function Jr(hn){var dn=0,tr=0,Mn=0;return $e(hn).map(function(Lr){var sa;switch(Lr[0]){case"M":return dn=Lr[1],tr=Lr[2],0;default:var Ma=Lr.slice(1),Ia=Ma[0],Ja=Ma[1],pi=Ma[2],fo=Ma[3],us=Ma[4],xo=Ma[5];return Mn=qr(dn,tr,Ia,Ja,pi,fo,us,xo),sa=Lr.slice(-2),dn=sa[0],tr=sa[1],Mn}}).reduce(function(Lr,sa){return Lr+sa},0)}function Aa(hn){return Jr(hn)>=0}function ya(hn,dn,tr){return Gn(hn,dn,Q(Q({},tr),{bbox:!1,length:!0})).point}function $t(hn,dn){var tr=er(hn);if(typeof tr=="string")throw TypeError(tr);var Mn=tr.slice(),Lr=pr(Mn),sa=Mn.length-1,Ma=0,Ia=0,Ja=tr[0],pi=Ja.slice(-2),fo=pi[0],us=pi[1],xo={x:fo,y:us};if(sa<=0||!dn||!Number.isFinite(dn))return{segment:Ja,index:0,length:Ia,point:xo,lengthAtSegment:Ma};if(dn>=Lr)return Mn=tr.slice(0,-1),Ma=pr(Mn),Ia=Lr-Ma,{segment:tr[sa],index:sa,length:Ia,lengthAtSegment:Ma};for(var Qo=[];sa>0;)Ja=Mn[sa],Mn=Mn.slice(0,-1),Ma=pr(Mn),Ia=Lr-Ma,Lr=Ma,Qo.push({segment:Ja,index:sa,length:Ia,lengthAtSegment:Ma}),sa-=1;return Qo.find(function(gs){var ds=gs.lengthAtSegment;return ds<=dn})}function wn(hn,dn){for(var tr=er(hn),Mn=lr(tr),Lr=pr(tr),sa=function(wc){var Xu=wc.x-dn.x,_u=wc.y-dn.y;return Xu*Xu+_u*_u},Ma=8,Ia,Ja=0,pi,fo=0,us=Infinity,xo=0;xo<=Lr;xo+=Ma)Ia=ya(Mn,xo),Ja=sa(Ia),Ja<us&&(pi=Ia,fo=xo,us=Ja);Ma/=2;for(var Qo,gs,ds=0,nl=0,nc=0,Kl=0;Ma>.5;)ds=fo-Ma,Qo=ya(Mn,ds),nc=sa(Qo),nl=fo+Ma,gs=ya(Mn,nl),Kl=sa(gs),ds>=0&&nc<us?(pi=Qo,fo=ds,us=nc):nl<=Lr&&Kl<us?(pi=gs,fo=nl,us=Kl):Ma/=2;var mu=$t(tr,fo),xc=Math.sqrt(us);return{closest:pi,distance:xc,segment:mu}}function Fn(hn,dn){var tr=wn(hn,dn).distance;return Math.abs(tr)<.001}function Or(hn,dn){dn===void 0&&(dn=.5);var tr=hn.slice(0,2),Mn=hn.slice(2,4),Lr=hn.slice(4,6),sa=hn.slice(6,8),Ma=be(tr,Mn,dn),Ia=be(Mn,Lr,dn),Ja=be(Lr,sa,dn),pi=be(Ma,Ia,dn),fo=be(Ia,Ja,dn),us=be(pi,fo,dn);return[["C"].concat(Ma,pi,us),["C"].concat(fo,Ja,sa)]}function vr(hn){return hn.map(function(dn,tr,Mn){var Lr=tr&&Mn[tr-1].slice(-2).concat(dn.slice(1)),sa=tr?ln(Lr[0],Lr[1],Lr[2],Lr[3],Lr[4],Lr[5],Lr[6],Lr[7],Lr[8],{bbox:!1}).length:0,Ma;return tr?Ma=sa?Or(Lr):[dn,dn]:Ma=[dn],{s:dn,ss:Ma,l:sa}})}function Ur(hn,dn,tr){var Mn=vr(hn),Lr=vr(dn),sa=Mn.length,Ma=Lr.length,Ia=Mn.filter(function(nl){return nl.l}).length,Ja=Lr.filter(function(nl){return nl.l}).length,pi=Mn.filter(function(nl){return nl.l}).reduce(function(nl,nc){var Kl=nc.l;return nl+Kl},0)/Ia||0,fo=Lr.filter(function(nl){return nl.l}).reduce(function(nl,nc){var Kl=nc.l;return nl+Kl},0)/Ja||0,us=tr||Math.max(sa,Ma),xo=[pi,fo],Qo=[us-sa,us-Ma],gs=0,ds=[Mn,Lr].map(function(nl,nc){return nl.l===us?nl.map(function(Kl){return Kl.s}):nl.map(function(Kl,mu){return gs=mu&&Qo[nc]&&Kl.l>=xo[nc],Qo[nc]-=gs?1:0,gs?Kl.ss:[Kl.s]}).flat()});return ds[0].length===ds[1].length?ds:Ur(ds[0],ds[1],us)}var Zr=function(dn){return dn!==null&&typeof dn!="function"&&isFinite(dn.length)},Kr=Zr,ba=function(dn,tr){return Kr(dn)?dn.indexOf(tr)>-1:!1},Ri=ba,Ea=function(dn,tr){if(!Kr(dn))return dn;for(var Mn=[],Lr=0;Lr<dn.length;Lr++){var sa=dn[Lr];tr(sa,Lr)&&Mn.push(sa)}return Mn},Pi=Ea,rs=function(dn,tr){return tr===void 0&&(tr=[]),Pi(dn,function(Mn){return!Ri(tr,Mn)})},Ui=rs,Cn=function(hn){return typeof hn=="function"},Kn=function(dn){return dn==null},Pn=Kn,At={}.toString,ar=function(dn,tr){return At.call(dn)==="[object "+tr+"]"},ta=ar,Yn=function(hn){return Array.isArray?Array.isArray(hn):ta(hn,"Array")},Qa=function(hn){var dn=typeof hn;return hn!==null&&dn==="object"||dn==="function"};function Ua(hn,dn){if(!!hn){var tr;if(Yn(hn))for(var Mn=0,Lr=hn.length;Mn<Lr&&(tr=dn(hn[Mn],Mn),tr!==!1);Mn++);else if(Qa(hn)){for(var sa in hn)if(hn.hasOwnProperty(sa)&&(tr=dn(hn[sa],sa),tr===!1))break}}}var Fi=Ua,Xa=Object.keys?function(hn){return Object.keys(hn)}:function(hn){var dn=[];return Fi(hn,function(tr,Mn){Cn(hn)&&Mn==="prototype"||dn.push(Mn)}),dn},$i=Xa;function La(hn,dn){var tr=$i(dn),Mn=tr.length;if(Pn(hn))return!Mn;for(var Lr=0;Lr<Mn;Lr+=1){var sa=tr[Lr];if(dn[sa]!==hn[sa]||!(sa in hn))return!1}return!0}var ja=La,ei=function(dn){return typeof dn=="object"&&dn!==null},Do=ei,yo=function(dn){if(!Do(dn)||!ta(dn,"Object"))return!1;if(Object.getPrototypeOf(dn)===null)return!0;for(var tr=dn;Object.getPrototypeOf(tr)!==null;)tr=Object.getPrototypeOf(tr);return Object.getPrototypeOf(dn)===tr},to=yo;function fs(hn,dn){if(!Yn(hn))return null;var tr;if(Cn(dn)&&(tr=dn),to(dn)&&(tr=function(sa){return ja(sa,dn)}),tr){for(var Mn=0;Mn<hn.length;Mn+=1)if(tr(hn[Mn]))return hn[Mn]}return null}var cs=fs;function Os(hn,dn,tr){tr===void 0&&(tr=0);for(var Mn=tr;Mn<hn.length;Mn++)if(dn(hn[Mn],Mn))return Mn;return-1}var vl=Os,Ar=function(dn,tr){for(var Mn=null,Lr=0;Lr<dn.length;Lr++){var sa=dn[Lr],Ma=sa[tr];if(!Pn(Ma)){Yn(Ma)?Mn=Ma[0]:Mn=Ma;break}}return Mn},Rn=Ar,Sr=function(dn){if(!Yn(dn))return[];for(var tr=[],Mn=0;Mn<dn.length;Mn++)tr=tr.concat(dn[Mn]);return tr},nn=Sr,sn=function hn(dn,tr){if(tr===void 0&&(tr=[]),!Yn(dn))tr.push(dn);else for(var Mn=0;Mn<dn.length;Mn+=1)hn(dn[Mn],tr);return tr},Ot=sn,gr=function(hn){if(!!Yn(hn))return hn.reduce(function(dn,tr){return Math.max(dn,tr)},hn[0])},Gr=function(hn){if(!!Yn(hn))return hn.reduce(function(dn,tr){return Math.min(dn,tr)},hn[0])},Ln=function(dn){var tr=dn.filter(function(Ia){return!isNaN(Ia)});if(!tr.length)return{min:0,max:0};if(Yn(dn[0])){for(var Mn=[],Lr=0;Lr<dn.length;Lr++)Mn=Mn.concat(dn[Lr]);tr=Mn}var sa=gr(tr),Ma=Gr(tr);return{min:Ma,max:sa}},Tr=Ln,Dn=Array.prototype,Pr=Dn.splice,fa=Dn.indexOf,ka=function(dn){for(var tr=[],Mn=1;Mn<arguments.length;Mn++)tr[Mn-1]=arguments[Mn];for(var Lr=0;Lr<tr.length;Lr++)for(var sa=tr[Lr],Ma=-1;(Ma=fa.call(dn,sa))>-1;)Pr.call(dn,Ma,1);return dn},Li=ka,zi=Array.prototype.splice,Mo=function(dn,tr){if(!Kr(dn))return[];for(var Mn=dn?tr.length:0,Lr=Mn-1;Mn--;){var sa=void 0,Ma=tr[Mn];(Mn===Lr||Ma!==sa)&&(sa=Ma,zi.call(dn,Ma,1))}return dn},Za=Mo,ao=function(dn,tr,Mn){if(!Yn(dn)&&!to(dn))return dn;var Lr=Mn;return Fi(dn,function(sa,Ma){Lr=tr(Lr,sa,Ma)}),Lr},Mi=ao,Eo=function(dn,tr){var Mn=[];if(!Kr(dn))return Mn;for(var Lr=-1,sa=[],Ma=dn.length;++Lr<Ma;){var Ia=dn[Lr];tr(Ia,Lr,dn)&&(Mn.push(Ia),sa.push(Lr))}return Za(dn,sa),Mn},Xi=Eo,Bo=function(hn){return ta(hn,"String")};function ol(hn,dn){var tr;if(Cn(dn))tr=function(sa,Ma){return dn(sa)-dn(Ma)};else{var Mn=[];Bo(dn)?Mn.push(dn):Yn(dn)&&(Mn=dn),tr=function(sa,Ma){for(var Ia=0;Ia<Mn.length;Ia+=1){var Ja=Mn[Ia];if(sa[Ja]>Ma[Ja])return 1;if(sa[Ja]<Ma[Ja])return-1}return 0}}return hn.sort(tr),hn}var Il=ol;function ms(hn,dn){dn===void 0&&(dn=new Map);var tr=[];if(Array.isArray(hn))for(var Mn=0,Lr=hn.length;Mn<Lr;Mn++){var sa=hn[Mn];dn.has(sa)||(tr.push(sa),dn.set(sa,!0))}return tr}var mc=function(){for(var dn=[],tr=0;tr<arguments.length;tr++)dn[tr]=arguments[tr];return ms([].concat.apply([],dn))},Ys=mc,hl=function(hn,dn){for(var tr=[],Mn={},Lr=0;Lr<hn.length;Lr++){var sa=hn[Lr],Ma=sa[dn];if(!Pn(Ma)){Yn(Ma)||(Ma=[Ma]);for(var Ia=0;Ia<Ma.length;Ia++){var Ja=Ma[Ia];Mn[Ja]||(tr.push(Ja),Mn[Ja]=!0)}}}return tr};function Rs(hn){if(Kr(hn))return hn[0]}function xl(hn){if(Kr(hn)){var dn=hn;return dn[dn.length-1]}}function Wl(hn,dn){return Yn(hn)||Bo(hn)?hn[0]===dn:!1}var _l=Wl;function Ls(hn,dn){return Yn(hn)||Bo(hn)?hn[hn.length-1]===dn:!1}var zn=Ls,Dr=function(dn,tr){for(var Mn=0;Mn<dn.length;Mn++)if(!tr(dn[Mn],Mn))return!1;return!0},Hr=Dr,_a=function(dn,tr){for(var Mn=0;Mn<dn.length;Mn++)if(tr(dn[Mn],Mn))return!0;return!1},Ti=_a,Ci=Object.prototype.hasOwnProperty;function da(hn,dn){if(!dn||!Yn(hn))return{};for(var tr={},Mn=Cn(dn)?dn:function(Ia){return Ia[dn]},Lr,sa=0;sa<hn.length;sa++){var Ma=hn[sa];Lr=Mn(Ma),Ci.call(tr,Lr)?tr[Lr].push(Ma):tr[Lr]=[Ma]}return tr}var Da=da;function mi(hn,dn){if(!dn)return{0:hn};if(!Cn(dn)){var tr=Yn(dn)?dn:dn.replace(/\s+/g,"").split("*");dn=function(Lr){for(var sa="_",Ma=0,Ia=tr.length;Ma<Ia;Ma++)sa+=Lr[tr[Ma]]&&Lr[tr[Ma]].toString();return sa}}return Da(hn,dn)}var Ho=function(hn,dn){if(!dn)return[hn];var tr=mi(hn,dn),Mn=[];for(var Lr in tr)Mn.push(tr[Lr]);return Mn};function al(hn,dn){return hn["_wrap_"+dn]}var ml=al;function Xs(hn,dn){if(hn["_wrap_"+dn])return hn["_wrap_"+dn];var tr=function(Lr){hn[dn](Lr)};return hn["_wrap_"+dn]=tr,tr}var Ps=Xs,dl={};function ql(hn){var dn=dl[hn];if(!dn){for(var tr=hn.toString(16),Mn=tr.length;Mn<6;Mn++)tr="0"+tr;dn="#"+tr,dl[hn]=dn}return dn}var Dc=ql;function Jl(hn){var dn=0,tr=0,Mn=0,Lr=0;return Yn(hn)?hn.length===1?dn=tr=Mn=Lr=hn[0]:hn.length===2?(dn=Mn=hn[0],tr=Lr=hn[1]):hn.length===3?(dn=hn[0],tr=Lr=hn[1],Mn=hn[2]):(dn=hn[0],tr=hn[1],Mn=hn[2],Lr=hn[3]):dn=tr=Mn=Lr=hn,{r1:dn,r2:tr,r3:Mn,r4:Lr}}var oc=Jl,xu=function(dn,tr,Mn){return dn<tr?tr:dn>Mn?Mn:dn},yf=xu,ku=function(dn,tr){var Mn=tr.toString(),Lr=Mn.indexOf(".");if(Lr===-1)return Math.round(dn);var sa=Mn.substr(Lr+1).length;return sa>20&&(sa=20),parseFloat(dn.toFixed(sa))},Zc=ku,Zu=function(dn){return ta(dn,"Number")},Fc=Zu,Hc=function(dn){return Fc(dn)&&dn%1!=0},Vu=Hc,ws=function(dn){return Fc(dn)&&dn%2==0},fc=ws,Tc=Number.isInteger?Number.isInteger:function(hn){return Fc(hn)&&hn%1==0},jc=Tc,lu=function(dn){return Fc(dn)&&dn<0},hu=lu,of=1e-5;function uu(hn,dn,tr){return tr===void 0&&(tr=of),Math.abs(hn-dn)<tr}var zu=function(dn){return Fc(dn)&&dn%2!=0},cf=zu,bf=function(dn){return Fc(dn)&&dn>0},Cu=bf,rf=function(hn,dn){if(!!Yn(hn)){for(var tr,Mn=-Infinity,Lr=0;Lr<hn.length;Lr++){var sa=hn[Lr],Ma=Cn(dn)?dn(sa):sa[dn];Ma>Mn&&(tr=sa,Mn=Ma)}return tr}},Bu=function(hn,dn){if(!!Yn(hn)){for(var tr,Mn=Infinity,Lr=0;Lr<hn.length;Lr++){var sa=hn[Lr],Ma=Cn(dn)?dn(sa):sa[dn];Ma<Mn&&(tr=sa,Mn=Ma)}return tr}},Tf=function(dn,tr){return(dn%tr+tr)%tr},ed=Tf,Fd=180/Math.PI,Pd=function(dn){return Fd*dn},Nc=Pd,eu=parseInt,If=Math.PI/180,$f=function(dn){return If*dn},Te=$f,_t=Fi,Vn=function(hn,dn){return hn.hasOwnProperty(dn)},br=Vn,tn=Object.values?function(hn){return Object.values(hn)}:function(hn){var dn=[];return Fi(hn,function(tr,Mn){Cn(hn)&&Mn==="prototype"||dn.push(tr)}),dn},Pt=tn,on=function(hn,dn){return Ri(Pt(hn),dn)},_n=function(hn){return Pn(hn)?"":hn.toString()},ir=function(dn){return _n(dn).toLowerCase()},xr=ir,aa=function(dn){var tr=_n(dn);return tr.charAt(0).toLowerCase()+tr.substring(1)},oi=aa;function ni(hn,dn){return!hn||!dn?hn:hn.replace(/\\?\{([^{}]+)\}/g,function(tr,Mn){return tr.charAt(0)==="\\"?tr.slice(1):dn[Mn]===void 0?"":dn[Mn]})}var yi=ni,Zo=function(dn){return _n(dn).toUpperCase()},is=Zo,mo=function(dn){var tr=_n(dn);return tr.charAt(0).toUpperCase()+tr.substring(1)},Ml=mo,yc={}.toString,oa=function(dn){return yc.call(dn).replace(/^\[object /,"").replace(/]$/,"")},sl=oa,fl=function(dn){return ta(dn,"Arguments")},bc=fl,Rf=function(dn){return ta(dn,"Boolean")},Ms=Rf,ff=function(dn){return ta(dn,"Date")},Df=ff,Ff=function(dn){return ta(dn,"Error")},Kf=Ff;function xf(hn){return Fc(hn)&&isFinite(hn)}var Sc=function(dn){return dn===null},Wu=Sc,Du=Object.prototype,Gd=function(dn){var tr=dn&&dn.constructor,Mn=typeof tr=="function"&&tr.prototype||Du;return dn===Mn},gf=Gd,Vp=function(dn){return ta(dn,"RegExp")},$c=Vp,Yl=function(dn){return dn===void 0},Sp=Yl,tp=function(dn){return dn instanceof Element||dn instanceof Document},Rp=tp;function df(hn){var dn=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(tr){return setTimeout(tr,16)};return dn(hn)}function uf(hn){var dn=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;dn(hn)}function Af(hn,dn){for(var tr in dn)dn.hasOwnProperty(tr)&&tr!=="constructor"&&dn[tr]!==void 0&&(hn[tr]=dn[tr])}function Wn(hn,dn,tr,Mn){return dn&&Af(hn,dn),tr&&Af(hn,tr),Mn&&Af(hn,Mn),hn}var ca=function(){for(var dn=[],tr=0;tr<arguments.length;tr++)dn[tr]=arguments[tr];for(var Mn=dn[0],Lr=1;Lr<dn.length;Lr++){var sa=dn[Lr];Cn(sa)&&(sa=sa.prototype),Wn(Mn.prototype,sa)}},ra=ca,Na=function hn(dn){if(typeof dn!="object"||dn===null)return dn;var tr;if(Yn(dn)){tr=[];for(var Mn=0,Lr=dn.length;Mn<Lr;Mn++)typeof dn[Mn]=="object"&&dn[Mn]!=null?tr[Mn]=hn(dn[Mn]):tr[Mn]=dn[Mn]}else{tr={};for(var sa in dn)typeof dn[sa]=="object"&&dn[sa]!=null?tr[sa]=hn(dn[sa]):tr[sa]=dn[sa]}return tr},fi=Na;function so(hn,dn,tr){var Mn;return function(){var Lr=this,sa=arguments,Ma=function(){Mn=null,tr||hn.apply(Lr,sa)},Ia=tr&&!Mn;clearTimeout(Mn),Mn=setTimeout(Ma,dn),Ia&&hn.apply(Lr,sa)}}var vo=so,Ro=function(hn,dn){if(!Cn(hn))throw new TypeError("Expected a function");var tr=function Mn(){for(var Lr=[],sa=0;sa<arguments.length;sa++)Lr[sa]=arguments[sa];var Ma=dn?dn.apply(this,Lr):Lr[0],Ia=Mn.cache;if(Ia.has(Ma))return Ia.get(Ma);var Ja=hn.apply(this,Lr);return Ia.set(Ma,Ja),Ja};return tr.cache=new Map,tr},So=5;function el(hn,dn){if(Object.hasOwn)return Object.hasOwn(hn,dn);if(hn==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(hn),dn)}function ul(hn,dn,tr,Mn){tr=tr||0,Mn=Mn||So;for(var Lr in dn)if(el(dn,Lr)){var sa=dn[Lr];sa!==null&&to(sa)?(to(hn[Lr])||(hn[Lr]={}),tr<Mn?ul(hn[Lr],sa,tr+1,Mn):hn[Lr]=dn[Lr]):Yn(sa)?(hn[Lr]=[],hn[Lr]=hn[Lr].concat(sa)):sa!==void 0&&(hn[Lr]=sa)}}var Xo=function(dn){for(var tr=[],Mn=1;Mn<arguments.length;Mn++)tr[Mn-1]=arguments[Mn];for(var Lr=0;Lr<tr.length;Lr+=1)ul(dn,tr[Lr]);return dn},lo=Xo,Zs=function(dn,tr,Mn,Lr){Cn(tr)||(Mn=tr,tr=dn,dn=function(){});var sa=Object.create?function(Ia,Ja){return Object.create(Ia,{constructor:{value:Ja}})}:function(Ia,Ja){function pi(){}pi.prototype=Ia;var fo=new pi;return fo.constructor=Ja,fo},Ma=sa(tr.prototype,dn);return dn.prototype=Wn(Ma,dn.prototype),dn.superclass=sa(tr.prototype,tr),Wn(Ma,Mn),Wn(dn,Lr),dn},Gs=Zs,$s=function(dn,tr){if(!Kr(dn))return-1;var Mn=Array.prototype.indexOf;if(Mn)return Mn.call(dn,tr);for(var Lr=-1,sa=0;sa<dn.length;sa++)if(dn[sa]===tr){Lr=sa;break}return Lr},Qn=$s,dr=Object.prototype.hasOwnProperty;function Xr(hn){if(Pn(hn))return!0;if(Kr(hn))return!hn.length;var dn=sl(hn);if(dn==="Map"||dn==="Set")return!hn.size;if(gf(hn))return!Object.keys(hn).length;for(var tr in hn)if(dr.call(hn,tr))return!1;return!0}var la=Xr,Ra=function hn(dn,tr){if(dn===tr)return!0;if(!dn||!tr||Bo(dn)||Bo(tr))return!1;if(Kr(dn)||Kr(tr)){if(dn.length!==tr.length)return!1;for(var Mn=!0,Lr=0;Lr<dn.length&&(Mn=hn(dn[Lr],tr[Lr]),!!Mn);Lr++);return Mn}if(Do(dn)||Do(tr)){var sa=Object.keys(dn),Ma=Object.keys(tr);if(sa.length!==Ma.length)return!1;for(var Mn=!0,Lr=0;Lr<sa.length&&(Mn=hn(dn[sa[Lr]],tr[sa[Lr]]),!!Mn);Lr++);return Mn}return!1},_i=Ra,ui=function(hn,dn,tr){return Cn(tr)?!!tr(hn,dn):_i(hn,dn)},ho=function(dn,tr){if(!Kr(dn))return dn;for(var Mn=[],Lr=0;Lr<dn.length;Lr++){var sa=dn[Lr];Mn.push(tr(sa,Lr))}return Mn},Oi=ho,Fo=function(dn){return dn},as=function(hn,dn){dn===void 0&&(dn=Fo);var tr={};return Qa(hn)&&!Pn(hn)&&Object.keys(hn).forEach(function(Mn){tr[Mn]=dn(hn[Mn],Mn)}),tr},Fs=function(hn,dn,tr){for(var Mn=0,Lr=Bo(dn)?dn.split("."):dn;hn&&Mn<Lr.length;)hn=hn[Lr[Mn++]];return hn===void 0||Mn<Lr.length?tr:hn},Fr=function(hn,dn,tr){var Mn=hn,Lr=Bo(dn)?dn.split("."):dn;return Lr.forEach(function(sa,Ma){Ma<Lr.length-1?(Qa(Mn[sa])||(Mn[sa]=Fc(Lr[Ma+1])?[]:{}),Mn=Mn[sa]):Mn[sa]=tr}),hn},tl=Object.prototype.hasOwnProperty,Js=function(hn,dn){if(hn===null||!to(hn))return{};var tr={};return Fi(dn,function(Mn){tl.call(hn,Mn)&&(tr[Mn]=hn[Mn])}),tr},Us=function(hn,dn){return Mi(hn,function(tr,Mn,Lr){return dn.includes(Lr)||(tr[Lr]=Mn),tr},{})},os=function(hn,dn,tr){var Mn,Lr,sa,Ma,Ia=0;tr||(tr={});var Ja=function(){Ia=tr.leading===!1?0:Date.now(),Mn=null,Ma=hn.apply(Lr,sa),Mn||(Lr=sa=null)},pi=function(){var us=Date.now();!Ia&&tr.leading===!1&&(Ia=us);var xo=dn-(us-Ia);return Lr=this,sa=arguments,xo<=0||xo>dn?(Mn&&(clearTimeout(Mn),Mn=null),Ia=us,Ma=hn.apply(Lr,sa),Mn||(Lr=sa=null)):!Mn&&tr.trailing!==!1&&(Mn=setTimeout(Ja,xo)),Ma};return pi.cancel=function(){clearTimeout(Mn),Ia=0,Mn=Lr=sa=null},pi},El=function(hn){return Kr(hn)?Array.prototype.slice.call(hn):[]},Bs={},gc=function(hn){return hn=hn||"g",Bs[hn]?Bs[hn]+=1:Bs[hn]=1,hn+Bs[hn]},kr=function(){},Sa=function(hn){return hn};function Hi(hn){return Pn(hn)?0:Kr(hn)?hn.length:Object.keys(hn).length}var Co=function(){function hn(){this.map={}}return hn.prototype.has=function(dn){return this.map[dn]!==void 0},hn.prototype.get=function(dn,tr){var Mn=this.map[dn];return Mn===void 0?tr:Mn},hn.prototype.set=function(dn,tr){this.map[dn]=tr},hn.prototype.clear=function(){this.map={}},hn.prototype.delete=function(dn){delete this.map[dn]},hn.prototype.size=function(){return Object.keys(this.map).length},hn}(),Ds=Co,Dl=1e-6;function Xc(hn){return Math.abs(hn)<Dl?0:hn<0?-1:1}function Fl(hn,dn,tr){return(tr[0]-hn[0])*(dn[1]-hn[1])==(dn[0]-hn[0])*(tr[1]-hn[1])&&Math.min(hn[0],dn[0])<=tr[0]&&tr[0]<=Math.max(hn[0],dn[0])&&Math.min(hn[1],dn[1])<=tr[1]&&tr[1]<=Math.max(hn[1],dn[1])}function Eu(hn,dn,tr){var Mn=!1,Lr=hn.length;if(Lr<=2)return!1;for(var sa=0;sa<Lr;sa++){var Ma=hn[sa],Ia=hn[(sa+1)%Lr];if(Fl(Ma,Ia,[dn,tr]))return!0;Xc(Ma[1]-tr)>0!=Xc(Ia[1]-tr)>0&&Xc(dn-(tr-Ma[1])*(Ma[0]-Ia[0])/(Ma[1]-Ia[1])-Ma[0])<0&&(Mn=!Mn)}return Mn}var cc=function(dn,tr,Mn){return dn>=tr&&dn<=Mn};function Hu(hn,dn,tr,Mn){var Lr=.001,sa={x:tr.x-hn.x,y:tr.y-hn.y},Ma={x:dn.x-hn.x,y:dn.y-hn.y},Ia={x:Mn.x-tr.x,y:Mn.y-tr.y},Ja=Ma.x*Ia.y-Ma.y*Ia.x,pi=Ja*Ja,fo=Ma.x*Ma.x+Ma.y*Ma.y,us=Ia.x*Ia.x+Ia.y*Ia.y,xo=null;if(pi>Lr*fo*us){var Qo=(sa.x*Ia.y-sa.y*Ia.x)/Ja,gs=(sa.x*Ma.y-sa.y*Ma.x)/Ja;cc(Qo,0,1)&&cc(gs,0,1)&&(xo={x:hn.x+Qo*Ma.x,y:hn.y+Qo*Ma.y})}return xo}function dc(hn){for(var dn=[],tr=hn.length,Mn=0;Mn<tr-1;Mn++){var Lr=hn[Mn],sa=hn[Mn+1];dn.push({from:{x:Lr[0],y:Lr[1]},to:{x:sa[0],y:sa[1]}})}if(dn.length>1){var Ma=hn[0],Ia=hn[tr-1];dn.push({from:{x:Ia[0],y:Ia[1]},to:{x:Ma[0],y:Ma[1]}})}return dn}function iu(hn,dn){var tr=!1;return hn.forEach(function(Mn){if(Hu(Mn.from,Mn.to,dn.from,dn.to))return tr=!0,!1}),tr}function Gc(hn){var dn=hn.map(function(Mn){return Mn[0]}),tr=hn.map(function(Mn){return Mn[1]});return{minX:Math.min.apply(null,dn),maxX:Math.max.apply(null,dn),minY:Math.min.apply(null,tr),maxY:Math.max.apply(null,tr)}}function Jc(hn,dn){return!(dn.minX>hn.maxX||dn.maxX<hn.minX||dn.minY>hn.maxY||dn.maxY<hn.minY)}function pf(hn,dn){if(hn.length<2||dn.length<2)return!1;var tr=Gc(hn),Mn=Gc(dn);if(!Jc(tr,Mn))return!1;var Lr=!1;if(dn.forEach(function(Ja){if(Eu(hn,Ja[0],Ja[1]))return Lr=!0,!1}),Lr||(hn.forEach(function(Ja){if(Eu(dn,Ja[0],Ja[1]))return Lr=!0,!1}),Lr))return!0;var sa=dc(hn),Ma=dc(dn),Ia=!1;return Ma.forEach(function(Ja){if(iu(sa,Ja))return Ia=!0,!1}),Ia}},18558:function(oe,N,o){"use strict";var x;x={value:!0};var g=o(53216);function A(d,_,p){var S=[0,0,0,0,0,0,0,0,0];return g.mat3.fromTranslation(S,p),g.mat3.multiply(d,S,_)}x=A;function y(d,_,p){var S=[0,0,0,0,0,0,0,0,0];return g.mat3.fromRotation(S,p),g.mat3.multiply(d,S,_)}x=y;function M(d,_,p){var S=[0,0,0,0,0,0,0,0,0];return g.mat3.fromScaling(S,p),g.mat3.multiply(d,S,_)}x=M;function w(d,_,p){return g.mat3.multiply(d,p,_)}function m(d,_){for(var p=d?[].concat(d):[1,0,0,0,1,0,0,0,1],S=0,k=_.length;S<k;S++){var O=_[S];switch(O[0]){case"t":A(p,p,[O[1],O[2]]);break;case"s":M(p,p,[O[1],O[2]]);break;case"r":y(p,p,O[1]);break;case"m":w(p,p,O[1]);break;default:break}}return p}N.vs=m;function b(d,_){return d[0]*_[1]-_[0]*d[1]}x=b;function v(d,_,p){var S=g.vec2.angle(d,_),k=b(d,_)>=0;return p?k?Math.PI*2-S:S:k?S:Math.PI*2-S}x=v;function h(d,_,p){return p?(d[0]=_[1],d[1]=-1*_[0]):(d[0]=-1*_[1],d[1]=_[0]),d}x=h},70234:function(oe,N,o){"use strict";o.r(N),o.d(N,{Cache:function(){return br},assign:function(){return Tr},augment:function(){return Pr},clamp:function(){return ut},clearAnimationFrame:function(){return Gr},clone:function(){return ka},contains:function(){return y},debounce:function(){return zi},deepMix:function(){return Eo},difference:function(){return b},each:function(){return D},endsWith:function(){return Lt},every:function(){return rt},extend:function(){return Bo},filter:function(){return w},find:function(){return re},findIndex:function(){return Q},firstValue:function(){return he},fixedBase:function(){return We},flatten:function(){return ce},flattenDeep:function(){return fe},forIn:function(){return Fn},get:function(){return Dr},getEllipsisText:function(){return _t},getRange:function(){return pe},getType:function(){return Qa},getWrapBehavior:function(){return Un},group:function(){return Qt},groupBy:function(){return Ht},groupToMap:function(){return Jt},has:function(){return Or},hasKey:function(){return vr},hasValue:function(){return Kr},head:function(){return St},identity:function(){return ml},includes:function(){return y},indexOf:function(){return Il},isArguments:function(){return Fi},isArray:function(){return k},isArrayLike:function(){return g},isBoolean:function(){return $i},isDate:function(){return ja},isDecimal:function(){return $e},isElement:function(){return Ot},isEmpty:function(){return Ys},isEqual:function(){return Rs},isEqualWith:function(){return xl},isError:function(){return Do},isEven:function(){return lt},isFinite:function(){return yo},isFunction:function(){return _},isInteger:function(){return Ct},isMatch:function(){return L},isNegative:function(){return mt},isNil:function(){return S},isNull:function(){return fs},isNumber:function(){return Ae},isNumberEqual:function(){return zt},isObject:function(){return O},isObjectLike:function(){return $},isOdd:function(){return An},isPlainObject:function(){return z},isPositive:function(){return Gn},isPrototype:function(){return vl},isRegExp:function(){return Rn},isString:function(){return Vt},isType:function(){return d},isUndefined:function(){return nn},keys:function(){return W},last:function(){return fn},lowerCase:function(){return Ea},lowerFirst:function(){return rs},map:function(){return _l},mapValues:function(){return zn},max:function(){return we},maxBy:function(){return Bn},measureTextWidth:function(){return Te},memoize:function(){return Mo},min:function(){return me},minBy:function(){return pr},mix:function(){return Tr},mod:function(){return na},noop:function(){return al},number2color:function(){return rr},omit:function(){return Ci},parseRadius:function(){return lr},pick:function(){return Ti},pull:function(){return Fe},pullAt:function(){return et},reduce:function(){return Ke},remove:function(){return wt},requestAnimationFrame:function(){return gr},set:function(){return Hr},size:function(){return Xs},some:function(){return de},sortBy:function(){return it},startsWith:function(){return Yt},substitute:function(){return Cn},throttle:function(){return da},toArray:function(){return Da},toDegree:function(){return Jr},toInteger:function(){return Aa},toRadian:function(){return wn},toString:function(){return ba},union:function(){return at},uniq:function(){return Le},uniqueId:function(){return Ho},upperCase:function(){return Pn},upperFirst:function(){return ar},values:function(){return Zr},valuesOfKey:function(){return jt},wrapBehavior:function(){return rn}});var x=function(Pt){return Pt!==null&&typeof Pt!="function"&&isFinite(Pt.length)},g=x,A=function(Pt,on){return g(Pt)?Pt.indexOf(on)>-1:!1},y=A,M=function(Pt,on){if(!g(Pt))return Pt;for(var _n=[],ir=0;ir<Pt.length;ir++){var xr=Pt[ir];on(xr,ir)&&_n.push(xr)}return _n},w=M,m=function(Pt,on){return on===void 0&&(on=[]),w(Pt,function(_n){return!y(on,_n)})},b=m,v={}.toString,h=function(Pt,on){return v.call(Pt)==="[object "+on+"]"},d=h,_=function(tn){return d(tn,"Function")},p=function(Pt){return Pt==null},S=p,k=function(tn){return Array.isArray?Array.isArray(tn):d(tn,"Array")},O=function(tn){var Pt=typeof tn;return tn!==null&&Pt==="object"||Pt==="function"};function F(tn,Pt){if(!!tn){var on;if(k(tn))for(var _n=0,ir=tn.length;_n<ir&&(on=Pt(tn[_n],_n),on!==!1);_n++);else if(O(tn)){for(var xr in tn)if(tn.hasOwnProperty(xr)&&(on=Pt(tn[xr],xr),on===!1))break}}}var D=F,Z=Object.keys?function(tn){return Object.keys(tn)}:function(tn){var Pt=[];return D(tn,function(on,_n){_(tn)&&_n==="prototype"||Pt.push(_n)}),Pt},W=Z;function U(tn,Pt){var on=W(Pt),_n=on.length;if(S(tn))return!_n;for(var ir=0;ir<_n;ir+=1){var xr=on[ir];if(Pt[xr]!==tn[xr]||!(xr in tn))return!1}return!0}var L=U,V=function(Pt){return typeof Pt=="object"&&Pt!==null},$=V,G=function(Pt){if(!$(Pt)||!d(Pt,"Object"))return!1;if(Object.getPrototypeOf(Pt)===null)return!0;for(var on=Pt;Object.getPrototypeOf(on)!==null;)on=Object.getPrototypeOf(on);return Object.getPrototypeOf(Pt)===on},z=G;function K(tn,Pt){if(!k(tn))return null;var on;if(_(Pt)&&(on=Pt),z(Pt)&&(on=function(xr){return L(xr,Pt)}),on){for(var _n=0;_n<tn.length;_n+=1)if(on(tn[_n]))return tn[_n]}return null}var re=K;function ne(tn,Pt,on){on===void 0&&(on=0);for(var _n=on;_n<tn.length;_n++)if(Pt(tn[_n],_n))return _n;return-1}var Q=ne,ue=function(Pt,on){for(var _n=null,ir=0;ir<Pt.length;ir++){var xr=Pt[ir],aa=xr[on];if(!S(aa)){k(aa)?_n=aa[0]:_n=aa;break}}return _n},he=ue,Ee=function(Pt){if(!k(Pt))return[];for(var on=[],_n=0;_n<Pt.length;_n++)on=on.concat(Pt[_n]);return on},ce=Ee,ve=function tn(Pt,on){if(on===void 0&&(on=[]),!k(Pt))on.push(Pt);else for(var _n=0;_n<Pt.length;_n+=1)tn(Pt[_n],on);return on},fe=ve,we=function(tn){if(!!k(tn))return tn.reduce(function(Pt,on){return Math.max(Pt,on)},tn[0])},me=function(tn){if(!!k(tn))return tn.reduce(function(Pt,on){return Math.min(Pt,on)},tn[0])},Pe=function(Pt){var on=Pt.filter(function(oi){return!isNaN(oi)});if(!on.length)return{min:0,max:0};if(k(Pt[0])){for(var _n=[],ir=0;ir<Pt.length;ir++)_n=_n.concat(Pt[ir]);on=_n}var xr=we(on),aa=me(on);return{min:aa,max:xr}},pe=Pe,Ie=Array.prototype,Je=Ie.splice,ke=Ie.indexOf,De=function(Pt){for(var on=[],_n=1;_n<arguments.length;_n++)on[_n-1]=arguments[_n];for(var ir=0;ir<on.length;ir++)for(var xr=on[ir],aa=-1;(aa=ke.call(Pt,xr))>-1;)Je.call(Pt,aa,1);return Pt},Fe=De,Qe=Array.prototype.splice,qe=function(Pt,on){if(!g(Pt))return[];for(var _n=Pt?on.length:0,ir=_n-1;_n--;){var xr=void 0,aa=on[_n];(_n===ir||aa!==xr)&&(xr=aa,Qe.call(Pt,aa,1))}return Pt},et=qe,dt=function(Pt,on,_n){if(!k(Pt)&&!z(Pt))return Pt;var ir=_n;return D(Pt,function(xr,aa){ir=on(ir,xr,aa)}),ir},Ke=dt,Ge=function(Pt,on){var _n=[];if(!g(Pt))return _n;for(var ir=-1,xr=[],aa=Pt.length;++ir<aa;){var oi=Pt[ir];on(oi,ir,Pt)&&(_n.push(oi),xr.push(ir))}return et(Pt,xr),_n},wt=Ge,Vt=function(tn){return d(tn,"String")};function gt(tn,Pt){var on;if(_(Pt))on=function(xr,aa){return Pt(xr)-Pt(aa)};else{var _n=[];Vt(Pt)?_n.push(Pt):k(Pt)&&(_n=Pt),on=function(xr,aa){for(var oi=0;oi<_n.length;oi+=1){var ni=_n[oi];if(xr[ni]>aa[ni])return 1;if(xr[ni]<aa[ni])return-1}return 0}}return tn.sort(on),tn}var it=gt;function Le(tn,Pt){Pt===void 0&&(Pt=new Map);var on=[];if(Array.isArray(tn))for(var _n=0,ir=tn.length;_n<ir;_n++){var xr=tn[_n];Pt.has(xr)||(on.push(xr),Pt.set(xr,!0))}return on}var ct=function(){for(var Pt=[],on=0;on<arguments.length;on++)Pt[on]=arguments[on];return Le([].concat.apply([],Pt))},at=ct,jt=function(tn,Pt){for(var on=[],_n={},ir=0;ir<tn.length;ir++){var xr=tn[ir],aa=xr[Pt];if(!S(aa)){k(aa)||(aa=[aa]);for(var oi=0;oi<aa.length;oi++){var ni=aa[oi];_n[ni]||(on.push(ni),_n[ni]=!0)}}}return on};function St(tn){if(g(tn))return tn[0]}function fn(tn){if(g(tn)){var Pt=tn;return Pt[Pt.length-1]}}function Xt(tn,Pt){return k(tn)||Vt(tn)?tn[0]===Pt:!1}var Yt=Xt;function Rt(tn,Pt){return k(tn)||Vt(tn)?tn[tn.length-1]===Pt:!1}var Lt=Rt,ze=function(Pt,on){for(var _n=0;_n<Pt.length;_n++)if(!on(Pt[_n],_n))return!1;return!0},rt=ze,tt=function(Pt,on){for(var _n=0;_n<Pt.length;_n++)if(on(Pt[_n],_n))return!0;return!1},de=tt,ot=Object.prototype.hasOwnProperty;function Et(tn,Pt){if(!Pt||!k(tn))return{};for(var on={},_n=_(Pt)?Pt:function(oi){return oi[Pt]},ir,xr=0;xr<tn.length;xr++){var aa=tn[xr];ir=_n(aa),ot.call(on,ir)?on[ir].push(aa):on[ir]=[aa]}return on}var Ht=Et;function Jt(tn,Pt){if(!Pt)return{0:tn};if(!_(Pt)){var on=k(Pt)?Pt:Pt.replace(/\s+/g,"").split("*");Pt=function(ir){for(var xr="_",aa=0,oi=on.length;aa<oi;aa++)xr+=ir[on[aa]]&&ir[on[aa]].toString();return xr}}return Ht(tn,Pt)}var Qt=function(tn,Pt){if(!Pt)return[tn];var on=Jt(tn,Pt),_n=[];for(var ir in on)_n.push(on[ir]);return _n};function an(tn,Pt){return tn["_wrap_"+Pt]}var Un=an;function qt(tn,Pt){if(tn["_wrap_"+Pt])return tn["_wrap_"+Pt];var on=function(ir){tn[Pt](ir)};return tn["_wrap_"+Pt]=on,on}var rn=qt,cn={};function er(tn){var Pt=cn[tn];if(!Pt){for(var on=tn.toString(16),_n=on.length;_n<6;_n++)on="0"+on;Pt="#"+on,cn[tn]=Pt}return Pt}var rr=er;function nt(tn){var Pt=0,on=0,_n=0,ir=0;return k(tn)?tn.length===1?Pt=on=_n=ir=tn[0]:tn.length===2?(Pt=_n=tn[0],on=ir=tn[1]):tn.length===3?(Pt=tn[0],on=ir=tn[1],_n=tn[2]):(Pt=tn[0],on=tn[1],_n=tn[2],ir=tn[3]):Pt=on=_n=ir=tn,{r1:Pt,r2:on,r3:_n,r4:ir}}var lr=nt,Hn=function(Pt,on,_n){return Pt<on?on:Pt>_n?_n:Pt},ut=Hn,bt=function(Pt,on){var _n=on.toString(),ir=_n.indexOf(".");if(ir===-1)return Math.round(Pt);var xr=_n.substr(ir+1).length;return xr>20&&(xr=20),parseFloat(Pt.toFixed(xr))},We=bt,be=function(Pt){return d(Pt,"Number")},Ae=be,Ue=function(Pt){return Ae(Pt)&&Pt%1!=0},$e=Ue,kt=function(Pt){return Ae(Pt)&&Pt%2==0},lt=kt,vt=Number.isInteger?Number.isInteger:function(tn){return Ae(tn)&&tn%1==0},Ct=vt,Bt=function(Pt){return Ae(Pt)&&Pt<0},mt=Bt,Zt=1e-5;function zt(tn,Pt,on){return on===void 0&&(on=Zt),Math.abs(tn-Pt)<on}var ln=function(Pt){return Ae(Pt)&&Pt%2!=0},An=ln,En=function(Pt){return Ae(Pt)&&Pt>0},Gn=En,Bn=function(tn,Pt){if(!!k(tn)){for(var on,_n=-Infinity,ir=0;ir<tn.length;ir++){var xr=tn[ir],aa=_(Pt)?Pt(xr):xr[Pt];aa>_n&&(on=xr,_n=aa)}return on}},pr=function(tn,Pt){if(!!k(tn)){for(var on,_n=Infinity,ir=0;ir<tn.length;ir++){var xr=tn[ir],aa=_(Pt)?Pt(xr):xr[Pt];aa<_n&&(on=xr,_n=aa)}return on}},_r=function(Pt,on){return(Pt%on+on)%on},na=_r,$n=180/Math.PI,qr=function(Pt){return $n*Pt},Jr=qr,Aa=parseInt,ya=Math.PI/180,$t=function(Pt){return ya*Pt},wn=$t,Fn=D,Or=function(tn,Pt){return tn.hasOwnProperty(Pt)},vr=Or,Ur=Object.values?function(tn){return Object.values(tn)}:function(tn){var Pt=[];return D(tn,function(on,_n){_(tn)&&_n==="prototype"||Pt.push(on)}),Pt},Zr=Ur,Kr=function(tn,Pt){return y(Zr(tn),Pt)},ba=function(tn){return S(tn)?"":tn.toString()},Ri=function(Pt){return ba(Pt).toLowerCase()},Ea=Ri,Pi=function(Pt){var on=ba(Pt);return on.charAt(0).toLowerCase()+on.substring(1)},rs=Pi;function Ui(tn,Pt){return!tn||!Pt?tn:tn.replace(/\\?\{([^{}]+)\}/g,function(on,_n){return on.charAt(0)==="\\"?on.slice(1):Pt[_n]===void 0?"":Pt[_n]})}var Cn=Ui,Kn=function(Pt){return ba(Pt).toUpperCase()},Pn=Kn,At=function(Pt){var on=ba(Pt);return on.charAt(0).toUpperCase()+on.substring(1)},ar=At,ta={}.toString,Yn=function(Pt){return ta.call(Pt).replace(/^\[object /,"").replace(/]$/,"")},Qa=Yn,Ua=function(Pt){return d(Pt,"Arguments")},Fi=Ua,Xa=function(Pt){return d(Pt,"Boolean")},$i=Xa,La=function(Pt){return d(Pt,"Date")},ja=La,ei=function(Pt){return d(Pt,"Error")},Do=ei;function yo(tn){return Ae(tn)&&isFinite(tn)}var to=function(Pt){return Pt===null},fs=to,cs=Object.prototype,Os=function(Pt){var on=Pt&&Pt.constructor,_n=typeof on=="function"&&on.prototype||cs;return Pt===_n},vl=Os,Ar=function(Pt){return d(Pt,"RegExp")},Rn=Ar,Sr=function(Pt){return Pt===void 0},nn=Sr,sn=function(Pt){return Pt instanceof Element||Pt instanceof HTMLDocument},Ot=sn;function gr(tn){var Pt=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(on){return setTimeout(on,16)};return Pt(tn)}function Gr(tn){var Pt=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;Pt(tn)}function Ln(tn,Pt){for(var on in Pt)Pt.hasOwnProperty(on)&&on!=="constructor"&&Pt[on]!==void 0&&(tn[on]=Pt[on])}function Tr(tn,Pt,on,_n){return Pt&&Ln(tn,Pt),on&&Ln(tn,on),_n&&Ln(tn,_n),tn}var Dn=function(){for(var Pt=[],on=0;on<arguments.length;on++)Pt[on]=arguments[on];for(var _n=Pt[0],ir=1;ir<Pt.length;ir++){var xr=Pt[ir];_(xr)&&(xr=xr.prototype),Tr(_n.prototype,xr)}},Pr=Dn,fa=function tn(Pt){if(typeof Pt!="object"||Pt===null)return Pt;var on;if(k(Pt)){on=[];for(var _n=0,ir=Pt.length;_n<ir;_n++)typeof Pt[_n]=="object"&&Pt[_n]!=null?on[_n]=tn(Pt[_n]):on[_n]=Pt[_n]}else{on={};for(var xr in Pt)typeof Pt[xr]=="object"&&Pt[xr]!=null?on[xr]=tn(Pt[xr]):on[xr]=Pt[xr]}return on},ka=fa;function Li(tn,Pt,on){var _n;return function(){var ir=this,xr=arguments,aa=function(){_n=null,on||tn.apply(ir,xr)},oi=on&&!_n;clearTimeout(_n),_n=setTimeout(aa,Pt),oi&&tn.apply(ir,xr)}}var zi=Li,Mo=function(tn,Pt){if(!_(tn))throw new TypeError("Expected a function");var on=function _n(){for(var ir=[],xr=0;xr<arguments.length;xr++)ir[xr]=arguments[xr];var aa=Pt?Pt.apply(this,ir):ir[0],oi=_n.cache;if(oi.has(aa))return oi.get(aa);var ni=tn.apply(this,ir);return oi.set(aa,ni),ni};return on.cache=new Map,on},Za=5;function ao(tn,Pt,on,_n){on=on||0,_n=_n||Za;for(var ir in Pt)if(Pt.hasOwnProperty(ir)){var xr=Pt[ir];xr!==null&&z(xr)?(z(tn[ir])||(tn[ir]={}),on<_n?ao(tn[ir],xr,on+1,_n):tn[ir]=Pt[ir]):k(xr)?(tn[ir]=[],tn[ir]=tn[ir].concat(xr)):xr!==void 0&&(tn[ir]=xr)}}var Mi=function(Pt){for(var on=[],_n=1;_n<arguments.length;_n++)on[_n-1]=arguments[_n];for(var ir=0;ir<on.length;ir+=1)ao(Pt,on[ir]);return Pt},Eo=Mi,Xi=function(Pt,on,_n,ir){_(on)||(_n=on,on=Pt,Pt=function(){});var xr=Object.create?function(oi,ni){return Object.create(oi,{constructor:{value:ni}})}:function(oi,ni){function yi(){}yi.prototype=oi;var Zo=new yi;return Zo.constructor=ni,Zo},aa=xr(on.prototype,Pt);return Pt.prototype=Tr(aa,Pt.prototype),Pt.superclass=xr(on.prototype,on),Tr(aa,_n),Tr(Pt,ir),Pt},Bo=Xi,ol=function(Pt,on){if(!g(Pt))return-1;var _n=Array.prototype.indexOf;if(_n)return _n.call(Pt,on);for(var ir=-1,xr=0;xr<Pt.length;xr++)if(Pt[xr]===on){ir=xr;break}return ir},Il=ol,ms=Object.prototype.hasOwnProperty;function mc(tn){if(S(tn))return!0;if(g(tn))return!tn.length;var Pt=Qa(tn);if(Pt==="Map"||Pt==="Set")return!tn.size;if(vl(tn))return!Object.keys(tn).length;for(var on in tn)if(ms.call(tn,on))return!1;return!0}var Ys=mc,hl=function tn(Pt,on){if(Pt===on)return!0;if(!Pt||!on||Vt(Pt)||Vt(on))return!1;if(g(Pt)||g(on)){if(Pt.length!==on.length)return!1;for(var _n=!0,ir=0;ir<Pt.length&&(_n=tn(Pt[ir],on[ir]),!!_n);ir++);return _n}if($(Pt)||$(on)){var xr=Object.keys(Pt),aa=Object.keys(on);if(xr.length!==aa.length)return!1;for(var _n=!0,ir=0;ir<xr.length&&(_n=tn(Pt[xr[ir]],on[xr[ir]]),!!_n);ir++);return _n}return!1},Rs=hl,xl=function(tn,Pt,on){return _(on)?!!on(tn,Pt):Rs(tn,Pt)},Wl=function(Pt,on){if(!g(Pt))return Pt;for(var _n=[],ir=0;ir<Pt.length;ir++){var xr=Pt[ir];_n.push(on(xr,ir))}return _n},_l=Wl,Ls=function(Pt){return Pt},zn=function(tn,Pt){Pt===void 0&&(Pt=Ls);var on={};return O(tn)&&!S(tn)&&Object.keys(tn).forEach(function(_n){on[_n]=Pt(tn[_n],_n)}),on},Dr=function(tn,Pt,on){for(var _n=0,ir=Vt(Pt)?Pt.split("."):Pt;tn&&_n<ir.length;)tn=tn[ir[_n++]];return tn===void 0||_n<ir.length?on:tn},Hr=function(tn,Pt,on){var _n=tn,ir=Vt(Pt)?Pt.split("."):Pt;return ir.forEach(function(xr,aa){aa<ir.length-1?(O(_n[xr])||(_n[xr]=Ae(ir[aa+1])?[]:{}),_n=_n[xr]):_n[xr]=on}),tn},_a=Object.prototype.hasOwnProperty,Ti=function(tn,Pt){if(tn===null||!z(tn))return{};var on={};return D(Pt,function(_n){_a.call(tn,_n)&&(on[_n]=tn[_n])}),on},Ci=function(tn,Pt){return Ke(tn,function(on,_n,ir){return Pt.includes(ir)||(on[ir]=_n),on},{})},da=function(tn,Pt,on){var _n,ir,xr,aa,oi=0;on||(on={});var ni=function(){oi=on.leading===!1?0:Date.now(),_n=null,aa=tn.apply(ir,xr),_n||(ir=xr=null)},yi=function(){var is=Date.now();!oi&&on.leading===!1&&(oi=is);var mo=Pt-(is-oi);return ir=this,xr=arguments,mo<=0||mo>Pt?(_n&&(clearTimeout(_n),_n=null),oi=is,aa=tn.apply(ir,xr),_n||(ir=xr=null)):!_n&&on.trailing!==!1&&(_n=setTimeout(ni,mo)),aa};return yi.cancel=function(){clearTimeout(_n),oi=0,_n=ir=xr=null},yi},Da=function(tn){return g(tn)?Array.prototype.slice.call(tn):[]},mi={},Ho=function(tn){return tn=tn||"g",mi[tn]?mi[tn]+=1:mi[tn]=1,tn+mi[tn]},al=function(){},ml=function(tn){return tn};function Xs(tn){return S(tn)?0:g(tn)?tn.length:Object.keys(tn).length}var Ps=function(Pt,on){return Ps=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_n,ir){_n.__proto__=ir}||function(_n,ir){for(var xr in ir)Object.prototype.hasOwnProperty.call(ir,xr)&&(_n[xr]=ir[xr])},Ps(Pt,on)};function dl(tn,Pt){if(typeof Pt!="function"&&Pt!==null)throw new TypeError("Class extends value "+String(Pt)+" is not a constructor or null");Ps(tn,Pt);function on(){this.constructor=tn}tn.prototype=Pt===null?Object.create(Pt):(on.prototype=Pt.prototype,new on)}var ql=function(){return ql=Object.assign||function(on){for(var _n,ir=1,xr=arguments.length;ir<xr;ir++){_n=arguments[ir];for(var aa in _n)Object.prototype.hasOwnProperty.call(_n,aa)&&(on[aa]=_n[aa])}return on},ql.apply(this,arguments)};function Dc(tn,Pt){var on={};for(var _n in tn)Object.prototype.hasOwnProperty.call(tn,_n)&&Pt.indexOf(_n)<0&&(on[_n]=tn[_n]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ir=0,_n=Object.getOwnPropertySymbols(tn);ir<_n.length;ir++)Pt.indexOf(_n[ir])<0&&Object.prototype.propertyIsEnumerable.call(tn,_n[ir])&&(on[_n[ir]]=tn[_n[ir]]);return on}function Jl(tn,Pt,on,_n){var ir=arguments.length,xr=ir<3?Pt:_n===null?_n=Object.getOwnPropertyDescriptor(Pt,on):_n,aa;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")xr=Reflect.decorate(tn,Pt,on,_n);else for(var oi=tn.length-1;oi>=0;oi--)(aa=tn[oi])&&(xr=(ir<3?aa(xr):ir>3?aa(Pt,on,xr):aa(Pt,on))||xr);return ir>3&&xr&&Object.defineProperty(Pt,on,xr),xr}function oc(tn,Pt){return function(on,_n){Pt(on,_n,tn)}}function xu(tn,Pt,on,_n,ir,xr){function aa(fl){if(fl!==void 0&&typeof fl!="function")throw new TypeError("Function expected");return fl}for(var oi=_n.kind,ni=oi==="getter"?"get":oi==="setter"?"set":"value",yi=!Pt&&tn?_n.static?tn:tn.prototype:null,Zo=Pt||(yi?Object.getOwnPropertyDescriptor(yi,_n.name):{}),is,mo=!1,Ml=on.length-1;Ml>=0;Ml--){var yc={};for(var oa in _n)yc[oa]=oa==="access"?{}:_n[oa];for(var oa in _n.access)yc.access[oa]=_n.access[oa];yc.addInitializer=function(fl){if(mo)throw new TypeError("Cannot add initializers after decoration has completed");xr.push(aa(fl||null))};var sl=(0,on[Ml])(oi==="accessor"?{get:Zo.get,set:Zo.set}:Zo[ni],yc);if(oi==="accessor"){if(sl===void 0)continue;if(sl===null||typeof sl!="object")throw new TypeError("Object expected");(is=aa(sl.get))&&(Zo.get=is),(is=aa(sl.set))&&(Zo.set=is),(is=aa(sl.init))&&ir.unshift(is)}else(is=aa(sl))&&(oi==="field"?ir.unshift(is):Zo[ni]=is)}yi&&Object.defineProperty(yi,_n.name,Zo),mo=!0}function yf(tn,Pt,on){for(var _n=arguments.length>2,ir=0;ir<Pt.length;ir++)on=_n?Pt[ir].call(tn,on):Pt[ir].call(tn);return _n?on:void 0}function ku(tn){return typeof tn=="symbol"?tn:"".concat(tn)}function Zc(tn,Pt,on){return typeof Pt=="symbol"&&(Pt=Pt.description?"[".concat(Pt.description,"]"):""),Object.defineProperty(tn,"name",{configurable:!0,value:on?"".concat(on," ",Pt):Pt})}function Zu(tn,Pt){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(tn,Pt)}function Fc(tn,Pt,on,_n){function ir(xr){return xr instanceof on?xr:new on(function(aa){aa(xr)})}return new(on||(on=Promise))(function(xr,aa){function oi(Zo){try{yi(_n.next(Zo))}catch(is){aa(is)}}function ni(Zo){try{yi(_n.throw(Zo))}catch(is){aa(is)}}function yi(Zo){Zo.done?xr(Zo.value):ir(Zo.value).then(oi,ni)}yi((_n=_n.apply(tn,Pt||[])).next())})}function Hc(tn,Pt){var on={label:0,sent:function(){if(xr[0]&1)throw xr[1];return xr[1]},trys:[],ops:[]},_n,ir,xr,aa;return aa={next:oi(0),throw:oi(1),return:oi(2)},typeof Symbol=="function"&&(aa[Symbol.iterator]=function(){return this}),aa;function oi(yi){return function(Zo){return ni([yi,Zo])}}function ni(yi){if(_n)throw new TypeError("Generator is already executing.");for(;aa&&(aa=0,yi[0]&&(on=0)),on;)try{if(_n=1,ir&&(xr=yi[0]&2?ir.return:yi[0]?ir.throw||((xr=ir.return)&&xr.call(ir),0):ir.next)&&!(xr=xr.call(ir,yi[1])).done)return xr;switch(ir=0,xr&&(yi=[yi[0]&2,xr.value]),yi[0]){case 0:case 1:xr=yi;break;case 4:return on.label++,{value:yi[1],done:!1};case 5:on.label++,ir=yi[1],yi=[0];continue;case 7:yi=on.ops.pop(),on.trys.pop();continue;default:if(xr=on.trys,!(xr=xr.length>0&&xr[xr.length-1])&&(yi[0]===6||yi[0]===2)){on=0;continue}if(yi[0]===3&&(!xr||yi[1]>xr[0]&&yi[1]<xr[3])){on.label=yi[1];break}if(yi[0]===6&&on.label<xr[1]){on.label=xr[1],xr=yi;break}if(xr&&on.label<xr[2]){on.label=xr[2],on.ops.push(yi);break}xr[2]&&on.ops.pop(),on.trys.pop();continue}yi=Pt.call(tn,on)}catch(Zo){yi=[6,Zo],ir=0}finally{_n=xr=0}if(yi[0]&5)throw yi[1];return{value:yi[0]?yi[1]:void 0,done:!0}}}var Vu=Object.create?function(tn,Pt,on,_n){_n===void 0&&(_n=on);var ir=Object.getOwnPropertyDescriptor(Pt,on);(!ir||("get"in ir?!Pt.__esModule:ir.writable||ir.configurable))&&(ir={enumerable:!0,get:function(){return Pt[on]}}),Object.defineProperty(tn,_n,ir)}:function(tn,Pt,on,_n){_n===void 0&&(_n=on),tn[_n]=Pt[on]};function ws(tn,Pt){for(var on in tn)on!=="default"&&!Object.prototype.hasOwnProperty.call(Pt,on)&&Vu(Pt,tn,on)}function fc(tn){var Pt=typeof Symbol=="function"&&Symbol.iterator,on=Pt&&tn[Pt],_n=0;if(on)return on.call(tn);if(tn&&typeof tn.length=="number")return{next:function(){return tn&&_n>=tn.length&&(tn=void 0),{value:tn&&tn[_n++],done:!tn}}};throw new TypeError(Pt?"Object is not iterable.":"Symbol.iterator is not defined.")}function Tc(tn,Pt){var on=typeof Symbol=="function"&&tn[Symbol.iterator];if(!on)return tn;var _n=on.call(tn),ir,xr=[],aa;try{for(;(Pt===void 0||Pt-- >0)&&!(ir=_n.next()).done;)xr.push(ir.value)}catch(oi){aa={error:oi}}finally{try{ir&&!ir.done&&(on=_n.return)&&on.call(_n)}finally{if(aa)throw aa.error}}return xr}function jc(){for(var tn=[],Pt=0;Pt<arguments.length;Pt++)tn=tn.concat(Tc(arguments[Pt]));return tn}function lu(){for(var tn=0,Pt=0,on=arguments.length;Pt<on;Pt++)tn+=arguments[Pt].length;for(var _n=Array(tn),ir=0,Pt=0;Pt<on;Pt++)for(var xr=arguments[Pt],aa=0,oi=xr.length;aa<oi;aa++,ir++)_n[ir]=xr[aa];return _n}function hu(tn,Pt,on){if(on||arguments.length===2)for(var _n=0,ir=Pt.length,xr;_n<ir;_n++)(xr||!(_n in Pt))&&(xr||(xr=Array.prototype.slice.call(Pt,0,_n)),xr[_n]=Pt[_n]);return tn.concat(xr||Array.prototype.slice.call(Pt))}function of(tn){return this instanceof of?(this.v=tn,this):new of(tn)}function uu(tn,Pt,on){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _n=on.apply(tn,Pt||[]),ir,xr=[];return ir={},aa("next"),aa("throw"),aa("return"),ir[Symbol.asyncIterator]=function(){return this},ir;function aa(mo){_n[mo]&&(ir[mo]=function(Ml){return new Promise(function(yc,oa){xr.push([mo,Ml,yc,oa])>1||oi(mo,Ml)})})}function oi(mo,Ml){try{ni(_n[mo](Ml))}catch(yc){is(xr[0][3],yc)}}function ni(mo){mo.value instanceof of?Promise.resolve(mo.value.v).then(yi,Zo):is(xr[0][2],mo)}function yi(mo){oi("next",mo)}function Zo(mo){oi("throw",mo)}function is(mo,Ml){mo(Ml),xr.shift(),xr.length&&oi(xr[0][0],xr[0][1])}}function zu(tn){var Pt,on;return Pt={},_n("next"),_n("throw",function(ir){throw ir}),_n("return"),Pt[Symbol.iterator]=function(){return this},Pt;function _n(ir,xr){Pt[ir]=tn[ir]?function(aa){return(on=!on)?{value:of(tn[ir](aa)),done:!1}:xr?xr(aa):aa}:xr}}function cf(tn){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Pt=tn[Symbol.asyncIterator],on;return Pt?Pt.call(tn):(tn=typeof fc=="function"?fc(tn):tn[Symbol.iterator](),on={},_n("next"),_n("throw"),_n("return"),on[Symbol.asyncIterator]=function(){return this},on);function _n(xr){on[xr]=tn[xr]&&function(aa){return new Promise(function(oi,ni){aa=tn[xr](aa),ir(oi,ni,aa.done,aa.value)})}}function ir(xr,aa,oi,ni){Promise.resolve(ni).then(function(yi){xr({value:yi,done:oi})},aa)}}function bf(tn,Pt){return Object.defineProperty?Object.defineProperty(tn,"raw",{value:Pt}):tn.raw=Pt,tn}var Cu=Object.create?function(tn,Pt){Object.defineProperty(tn,"default",{enumerable:!0,value:Pt})}:function(tn,Pt){tn.default=Pt};function rf(tn){if(tn&&tn.__esModule)return tn;var Pt={};if(tn!=null)for(var on in tn)on!=="default"&&Object.prototype.hasOwnProperty.call(tn,on)&&Vu(Pt,tn,on);return Cu(Pt,tn),Pt}function Bu(tn){return tn&&tn.__esModule?tn:{default:tn}}function Tf(tn,Pt,on,_n){if(on==="a"&&!_n)throw new TypeError("Private accessor was defined without a getter");if(typeof Pt=="function"?tn!==Pt||!_n:!Pt.has(tn))throw new TypeError("Cannot read private member from an object whose class did not declare it");return on==="m"?_n:on==="a"?_n.call(tn):_n?_n.value:Pt.get(tn)}function ed(tn,Pt,on,_n,ir){if(_n==="m")throw new TypeError("Private method is not writable");if(_n==="a"&&!ir)throw new TypeError("Private accessor was defined without a setter");if(typeof Pt=="function"?tn!==Pt||!ir:!Pt.has(tn))throw new TypeError("Cannot write private member to an object whose class did not declare it");return _n==="a"?ir.call(tn,on):ir?ir.value=on:Pt.set(tn,on),on}function Fd(tn,Pt){if(Pt===null||typeof Pt!="object"&&typeof Pt!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof tn=="function"?Pt===tn:tn.has(Pt)}function Pd(tn,Pt,on){if(Pt!=null){if(typeof Pt!="object"&&typeof Pt!="function")throw new TypeError("Object expected.");var _n;if(on){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");_n=Pt[Symbol.asyncDispose]}if(_n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");_n=Pt[Symbol.dispose]}if(typeof _n!="function")throw new TypeError("Object not disposable.");tn.stack.push({value:Pt,dispose:_n,async:on})}else on&&tn.stack.push({async:!0});return Pt}var Nc=typeof SuppressedError=="function"?SuppressedError:function(tn,Pt,on){var _n=new Error(on);return _n.name="SuppressedError",_n.error=tn,_n.suppressed=Pt,_n};function eu(tn){function Pt(_n){tn.error=tn.hasError?new Nc(_n,tn.error,"An error was suppressed during disposal."):_n,tn.hasError=!0}function on(){for(;tn.stack.length;){var _n=tn.stack.pop();try{var ir=_n.dispose&&_n.dispose.call(_n.value);if(_n.async)return Promise.resolve(ir).then(on,function(xr){return Pt(xr),on()})}catch(xr){Pt(xr)}}if(tn.hasError)throw tn.error}return on()}var If={__extends:dl,__assign:ql,__rest:Dc,__decorate:Jl,__param:oc,__metadata:Zu,__awaiter:Fc,__generator:Hc,__createBinding:Vu,__exportStar:ws,__values:fc,__read:Tc,__spread:jc,__spreadArrays:lu,__spreadArray:hu,__await:of,__asyncGenerator:uu,__asyncDelegator:zu,__asyncValues:cf,__makeTemplateObject:bf,__importStar:rf,__importDefault:Bu,__classPrivateFieldGet:Tf,__classPrivateFieldSet:ed,__classPrivateFieldIn:Fd,__addDisposableResource:Pd,__disposeResources:eu},$f,Te=Mo(function(tn,Pt){Pt===void 0&&(Pt={});var on=Pt.fontSize,_n=Pt.fontFamily,ir=Pt.fontWeight,xr=Pt.fontStyle,aa=Pt.fontVariant;return $f||($f=document.createElement("canvas").getContext("2d")),$f.font=[xr,aa,ir,on+"px",_n].join(" "),$f.measureText(Vt(tn)?tn:"").width},function(tn,Pt){return Pt===void 0&&(Pt={}),lu([tn],Zr(Pt)).join("")}),_t=function(tn,Pt,on,_n){_n===void 0&&(_n="...");var ir=16,xr=Te(_n,on),aa=Vt(tn)?tn:ba(tn),oi=Pt,ni=[],yi,Zo;if(Te(tn,on)<=Pt)return tn;for(;yi=aa.substr(0,ir),Zo=Te(yi,on),!(Zo+xr>oi&&Zo>oi);)if(ni.push(yi),oi-=Zo,aa=aa.substr(ir),!aa)return ni.join("");for(;yi=aa.substr(0,1),Zo=Te(yi,on),!(Zo+xr>oi);)if(ni.push(yi),oi-=Zo,aa=aa.substr(1),!aa)return ni.join("");return""+ni.join("")+_n},Vn=function(){function tn(){this.map={}}return tn.prototype.has=function(Pt){return this.map[Pt]!==void 0},tn.prototype.get=function(Pt,on){var _n=this.map[Pt];return _n===void 0?on:_n},tn.prototype.set=function(Pt,on){this.map[Pt]=on},tn.prototype.clear=function(){this.map={}},tn.prototype.delete=function(Pt){delete this.map[Pt]},tn.prototype.size=function(){return Object.keys(this.map).length},tn}(),br=Vn},78145:function(oe,N,o){"use strict";o.d(N,{rW:function(){return g},lC:function(){return A},ve:function(){return M},py:function(){return w},WE:function(){return m},vq:function(){return b},s:function(){return v},GC:function(){return h},Wl:function(){return d},T6:function(){return _},VD:function(){return p},Yt:function(){return S}});var x=o(36822);function g(k,O,F){return{r:(0,x.sh)(k,255)*255,g:(0,x.sh)(O,255)*255,b:(0,x.sh)(F,255)*255}}function A(k,O,F){k=(0,x.sh)(k,255),O=(0,x.sh)(O,255),F=(0,x.sh)(F,255);var D=Math.max(k,O,F),Z=Math.min(k,O,F),W=0,U=0,L=(D+Z)/2;if(D===Z)U=0,W=0;else{var V=D-Z;switch(U=L>.5?V/(2-D-Z):V/(D+Z),D){case k:W=(O-F)/V+(O<F?6:0);break;case O:W=(F-k)/V+2;break;case F:W=(k-O)/V+4;break;default:break}W/=6}return{h:W,s:U,l:L}}function y(k,O,F){return F<0&&(F+=1),F>1&&(F-=1),F<1/6?k+(O-k)*(6*F):F<1/2?O:F<2/3?k+(O-k)*(2/3-F)*6:k}function M(k,O,F){var D,Z,W;if(k=(0,x.sh)(k,360),O=(0,x.sh)(O,100),F=(0,x.sh)(F,100),O===0)Z=F,W=F,D=F;else{var U=F<.5?F*(1+O):F+O-F*O,L=2*F-U;D=y(L,U,k+1/3),Z=y(L,U,k),W=y(L,U,k-1/3)}return{r:D*255,g:Z*255,b:W*255}}function w(k,O,F){k=(0,x.sh)(k,255),O=(0,x.sh)(O,255),F=(0,x.sh)(F,255);var D=Math.max(k,O,F),Z=Math.min(k,O,F),W=0,U=D,L=D-Z,V=D===0?0:L/D;if(D===Z)W=0;else{switch(D){case k:W=(O-F)/L+(O<F?6:0);break;case O:W=(F-k)/L+2;break;case F:W=(k-O)/L+4;break;default:break}W/=6}return{h:W,s:V,v:U}}function m(k,O,F){k=(0,x.sh)(k,360)*6,O=(0,x.sh)(O,100),F=(0,x.sh)(F,100);var D=Math.floor(k),Z=k-D,W=F*(1-O),U=F*(1-Z*O),L=F*(1-(1-Z)*O),V=D%6,$=[F,U,W,W,L,F][V],G=[L,F,F,U,W,W][V],z=[W,W,L,F,F,U][V];return{r:$*255,g:G*255,b:z*255}}function b(k,O,F,D){var Z=[(0,x.FZ)(Math.round(k).toString(16)),(0,x.FZ)(Math.round(O).toString(16)),(0,x.FZ)(Math.round(F).toString(16))];return D&&Z[0].startsWith(Z[0].charAt(1))&&Z[1].startsWith(Z[1].charAt(1))&&Z[2].startsWith(Z[2].charAt(1))?Z[0].charAt(0)+Z[1].charAt(0)+Z[2].charAt(0):Z.join("")}function v(k,O,F,D,Z){var W=[(0,x.FZ)(Math.round(k).toString(16)),(0,x.FZ)(Math.round(O).toString(16)),(0,x.FZ)(Math.round(F).toString(16)),(0,x.FZ)(d(D))];return Z&&W[0].startsWith(W[0].charAt(1))&&W[1].startsWith(W[1].charAt(1))&&W[2].startsWith(W[2].charAt(1))&&W[3].startsWith(W[3].charAt(1))?W[0].charAt(0)+W[1].charAt(0)+W[2].charAt(0)+W[3].charAt(0):W.join("")}function h(k,O,F,D){var Z=[(0,x.FZ)(d(D)),(0,x.FZ)(Math.round(k).toString(16)),(0,x.FZ)(Math.round(O).toString(16)),(0,x.FZ)(Math.round(F).toString(16))];return Z.join("")}function d(k){return Math.round(parseFloat(k)*255).toString(16)}function _(k){return p(k)/255}function p(k){return parseInt(k,16)}function S(k){return{r:k>>16,g:(k&65280)>>8,b:k&255}}},84232:function(oe,N,o){"use strict";o.d(N,{R:function(){return x}});var x={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},76780:function(oe,N,o){"use strict";o.d(N,{uA:function(){return y},uz:function(){return d},ky:function(){return _}});var x=o(78145),g=o(84232),A=o(36822);function y(p){var S={r:0,g:0,b:0},k=1,O=null,F=null,D=null,Z=!1,W=!1;return typeof p=="string"&&(p=d(p)),typeof p=="object"&&(_(p.r)&&_(p.g)&&_(p.b)?(S=(0,x.rW)(p.r,p.g,p.b),Z=!0,W=String(p.r).substr(-1)==="%"?"prgb":"rgb"):_(p.h)&&_(p.s)&&_(p.v)?(O=(0,A.JX)(p.s),F=(0,A.JX)(p.v),S=(0,x.WE)(p.h,O,F),Z=!0,W="hsv"):_(p.h)&&_(p.s)&&_(p.l)&&(O=(0,A.JX)(p.s),D=(0,A.JX)(p.l),S=(0,x.ve)(p.h,O,D),Z=!0,W="hsl"),Object.prototype.hasOwnProperty.call(p,"a")&&(k=p.a)),k=(0,A.Yq)(k),{ok:Z,format:p.format||W,r:Math.min(255,Math.max(S.r,0)),g:Math.min(255,Math.max(S.g,0)),b:Math.min(255,Math.max(S.b,0)),a:k}}var M="[-\\+]?\\d+%?",w="[-\\+]?\\d*\\.\\d+%?",m="(?:".concat(w,")|(?:").concat(M,")"),b="[\\s|\\(]+(".concat(m,")[,|\\s]+(").concat(m,")[,|\\s]+(").concat(m,")\\s*\\)?"),v="[\\s|\\(]+(".concat(m,")[,|\\s]+(").concat(m,")[,|\\s]+(").concat(m,")[,|\\s]+(").concat(m,")\\s*\\)?"),h={CSS_UNIT:new RegExp(m),rgb:new RegExp("rgb"+b),rgba:new RegExp("rgba"+v),hsl:new RegExp("hsl"+b),hsla:new RegExp("hsla"+v),hsv:new RegExp("hsv"+b),hsva:new RegExp("hsva"+v),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(p){if(p=p.trim().toLowerCase(),p.length===0)return!1;var S=!1;if(g.R[p])p=g.R[p],S=!0;else if(p==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var k=h.rgb.exec(p);return k?{r:k[1],g:k[2],b:k[3]}:(k=h.rgba.exec(p),k?{r:k[1],g:k[2],b:k[3],a:k[4]}:(k=h.hsl.exec(p),k?{h:k[1],s:k[2],l:k[3]}:(k=h.hsla.exec(p),k?{h:k[1],s:k[2],l:k[3],a:k[4]}:(k=h.hsv.exec(p),k?{h:k[1],s:k[2],v:k[3]}:(k=h.hsva.exec(p),k?{h:k[1],s:k[2],v:k[3],a:k[4]}:(k=h.hex8.exec(p),k?{r:(0,x.VD)(k[1]),g:(0,x.VD)(k[2]),b:(0,x.VD)(k[3]),a:(0,x.T6)(k[4]),format:S?"name":"hex8"}:(k=h.hex6.exec(p),k?{r:(0,x.VD)(k[1]),g:(0,x.VD)(k[2]),b:(0,x.VD)(k[3]),format:S?"name":"hex"}:(k=h.hex4.exec(p),k?{r:(0,x.VD)(k[1]+k[1]),g:(0,x.VD)(k[2]+k[2]),b:(0,x.VD)(k[3]+k[3]),a:(0,x.T6)(k[4]+k[4]),format:S?"name":"hex8"}:(k=h.hex3.exec(p),k?{r:(0,x.VD)(k[1]+k[1]),g:(0,x.VD)(k[2]+k[2]),b:(0,x.VD)(k[3]+k[3]),format:S?"name":"hex"}:!1)))))))))}function _(p){return Boolean(h.CSS_UNIT.exec(String(p)))}},73136:function(oe,N,o){"use strict";o.d(N,{C:function(){return M},H:function(){return w}});var x=o(78145),g=o(84232),A=o(76780),y=o(36822),M=function(){function m(b,v){b===void 0&&(b=""),v===void 0&&(v={});var h;if(b instanceof m)return b;typeof b=="number"&&(b=(0,x.Yt)(b)),this.originalInput=b;var d=(0,A.uA)(b);this.originalInput=b,this.r=d.r,this.g=d.g,this.b=d.b,this.a=d.a,this.roundA=Math.round(100*this.a)/100,this.format=(h=v.format)!==null&&h!==void 0?h:d.format,this.gradientType=v.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=d.ok}return m.prototype.isDark=function(){return this.getBrightness()<128},m.prototype.isLight=function(){return!this.isDark()},m.prototype.getBrightness=function(){var b=this.toRgb();return(b.r*299+b.g*587+b.b*114)/1e3},m.prototype.getLuminance=function(){var b=this.toRgb(),v,h,d,_=b.r/255,p=b.g/255,S=b.b/255;return _<=.03928?v=_/12.92:v=Math.pow((_+.055)/1.055,2.4),p<=.03928?h=p/12.92:h=Math.pow((p+.055)/1.055,2.4),S<=.03928?d=S/12.92:d=Math.pow((S+.055)/1.055,2.4),.2126*v+.7152*h+.0722*d},m.prototype.getAlpha=function(){return this.a},m.prototype.setAlpha=function(b){return this.a=(0,y.Yq)(b),this.roundA=Math.round(100*this.a)/100,this},m.prototype.isMonochrome=function(){var b=this.toHsl().s;return b===0},m.prototype.toHsv=function(){var b=(0,x.py)(this.r,this.g,this.b);return{h:b.h*360,s:b.s,v:b.v,a:this.a}},m.prototype.toHsvString=function(){var b=(0,x.py)(this.r,this.g,this.b),v=Math.round(b.h*360),h=Math.round(b.s*100),d=Math.round(b.v*100);return this.a===1?"hsv(".concat(v,", ").concat(h,"%, ").concat(d,"%)"):"hsva(".concat(v,", ").concat(h,"%, ").concat(d,"%, ").concat(this.roundA,")")},m.prototype.toHsl=function(){var b=(0,x.lC)(this.r,this.g,this.b);return{h:b.h*360,s:b.s,l:b.l,a:this.a}},m.prototype.toHslString=function(){var b=(0,x.lC)(this.r,this.g,this.b),v=Math.round(b.h*360),h=Math.round(b.s*100),d=Math.round(b.l*100);return this.a===1?"hsl(".concat(v,", ").concat(h,"%, ").concat(d,"%)"):"hsla(".concat(v,", ").concat(h,"%, ").concat(d,"%, ").concat(this.roundA,")")},m.prototype.toHex=function(b){return b===void 0&&(b=!1),(0,x.vq)(this.r,this.g,this.b,b)},m.prototype.toHexString=function(b){return b===void 0&&(b=!1),"#"+this.toHex(b)},m.prototype.toHex8=function(b){return b===void 0&&(b=!1),(0,x.s)(this.r,this.g,this.b,this.a,b)},m.prototype.toHex8String=function(b){return b===void 0&&(b=!1),"#"+this.toHex8(b)},m.prototype.toHexShortString=function(b){return b===void 0&&(b=!1),this.a===1?this.toHexString(b):this.toHex8String(b)},m.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},m.prototype.toRgbString=function(){var b=Math.round(this.r),v=Math.round(this.g),h=Math.round(this.b);return this.a===1?"rgb(".concat(b,", ").concat(v,", ").concat(h,")"):"rgba(".concat(b,", ").concat(v,", ").concat(h,", ").concat(this.roundA,")")},m.prototype.toPercentageRgb=function(){var b=function(h){return"".concat(Math.round((0,y.sh)(h,255)*100),"%")};return{r:b(this.r),g:b(this.g),b:b(this.b),a:this.a}},m.prototype.toPercentageRgbString=function(){var b=function(h){return Math.round((0,y.sh)(h,255)*100)};return this.a===1?"rgb(".concat(b(this.r),"%, ").concat(b(this.g),"%, ").concat(b(this.b),"%)"):"rgba(".concat(b(this.r),"%, ").concat(b(this.g),"%, ").concat(b(this.b),"%, ").concat(this.roundA,")")},m.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var b="#"+(0,x.vq)(this.r,this.g,this.b,!1),v=0,h=Object.entries(g.R);v<h.length;v++){var d=h[v],_=d[0],p=d[1];if(b===p)return _}return!1},m.prototype.toString=function(b){var v=Boolean(b);b=b!=null?b:this.format;var h=!1,d=this.a<1&&this.a>=0,_=!v&&d&&(b.startsWith("hex")||b==="name");return _?b==="name"&&this.a===0?this.toName():this.toRgbString():(b==="rgb"&&(h=this.toRgbString()),b==="prgb"&&(h=this.toPercentageRgbString()),(b==="hex"||b==="hex6")&&(h=this.toHexString()),b==="hex3"&&(h=this.toHexString(!0)),b==="hex4"&&(h=this.toHex8String(!0)),b==="hex8"&&(h=this.toHex8String()),b==="name"&&(h=this.toName()),b==="hsl"&&(h=this.toHslString()),b==="hsv"&&(h=this.toHsvString()),h||this.toHexString())},m.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},m.prototype.clone=function(){return new m(this.toString())},m.prototype.lighten=function(b){b===void 0&&(b=10);var v=this.toHsl();return v.l+=b/100,v.l=(0,y.V2)(v.l),new m(v)},m.prototype.brighten=function(b){b===void 0&&(b=10);var v=this.toRgb();return v.r=Math.max(0,Math.min(255,v.r-Math.round(255*-(b/100)))),v.g=Math.max(0,Math.min(255,v.g-Math.round(255*-(b/100)))),v.b=Math.max(0,Math.min(255,v.b-Math.round(255*-(b/100)))),new m(v)},m.prototype.darken=function(b){b===void 0&&(b=10);var v=this.toHsl();return v.l-=b/100,v.l=(0,y.V2)(v.l),new m(v)},m.prototype.tint=function(b){return b===void 0&&(b=10),this.mix("white",b)},m.prototype.shade=function(b){return b===void 0&&(b=10),this.mix("black",b)},m.prototype.desaturate=function(b){b===void 0&&(b=10);var v=this.toHsl();return v.s-=b/100,v.s=(0,y.V2)(v.s),new m(v)},m.prototype.saturate=function(b){b===void 0&&(b=10);var v=this.toHsl();return v.s+=b/100,v.s=(0,y.V2)(v.s),new m(v)},m.prototype.greyscale=function(){return this.desaturate(100)},m.prototype.spin=function(b){var v=this.toHsl(),h=(v.h+b)%360;return v.h=h<0?360+h:h,new m(v)},m.prototype.mix=function(b,v){v===void 0&&(v=50);var h=this.toRgb(),d=new m(b).toRgb(),_=v/100,p={r:(d.r-h.r)*_+h.r,g:(d.g-h.g)*_+h.g,b:(d.b-h.b)*_+h.b,a:(d.a-h.a)*_+h.a};return new m(p)},m.prototype.analogous=function(b,v){b===void 0&&(b=6),v===void 0&&(v=30);var h=this.toHsl(),d=360/v,_=[this];for(h.h=(h.h-(d*b>>1)+720)%360;--b;)h.h=(h.h+d)%360,_.push(new m(h));return _},m.prototype.complement=function(){var b=this.toHsl();return b.h=(b.h+180)%360,new m(b)},m.prototype.monochromatic=function(b){b===void 0&&(b=6);for(var v=this.toHsv(),h=v.h,d=v.s,_=v.v,p=[],S=1/b;b--;)p.push(new m({h,s:d,v:_})),_=(_+S)%1;return p},m.prototype.splitcomplement=function(){var b=this.toHsl(),v=b.h;return[this,new m({h:(v+72)%360,s:b.s,l:b.l}),new m({h:(v+216)%360,s:b.s,l:b.l})]},m.prototype.onBackground=function(b){var v=this.toRgb(),h=new m(b).toRgb(),d=v.a+h.a*(1-v.a);return new m({r:(v.r*v.a+h.r*h.a*(1-v.a))/d,g:(v.g*v.a+h.g*h.a*(1-v.a))/d,b:(v.b*v.a+h.b*h.a*(1-v.a))/d,a:d})},m.prototype.triad=function(){return this.polyad(3)},m.prototype.tetrad=function(){return this.polyad(4)},m.prototype.polyad=function(b){for(var v=this.toHsl(),h=v.h,d=[this],_=360/b,p=1;p<b;p++)d.push(new m({h:(h+p*_)%360,s:v.s,l:v.l}));return d},m.prototype.equals=function(b){return this.toRgbString()===new m(b).toRgbString()},m}();function w(m,b){return m===void 0&&(m=""),b===void 0&&(b={}),new M(m,b)}},37321:function(oe,N,o){"use strict";o.r(N),o.d(N,{TinyColor:function(){return x.C},bounds:function(){return U},convertDecimalToHex:function(){return w.Wl},convertHexToDecimal:function(){return w.T6},default:function(){return L},fromRatio:function(){return v},hslToRgb:function(){return w.ve},hsvToRgb:function(){return w.WE},inputToRGB:function(){return d.uA},isReadable:function(){return y},isValidCSSUnit:function(){return d.ky},legacyRandom:function(){return h},mostReadable:function(){return M},names:function(){return g.R},numberInputToObject:function(){return w.Yt},parseIntFromHex:function(){return w.VD},random:function(){return _},readability:function(){return A},rgbToHex:function(){return w.vq},rgbToHsl:function(){return w.lC},rgbToHsv:function(){return w.py},rgbToRgb:function(){return w.rW},rgbaToArgbHex:function(){return w.GC},rgbaToHex:function(){return w.s},stringInputToObject:function(){return d.uz},tinycolor:function(){return x.H},toMsFilter:function(){return m}});var x=o(73136),g=o(84232);function A(V,$){var G=new x.C(V),z=new x.C($);return(Math.max(G.getLuminance(),z.getLuminance())+.05)/(Math.min(G.getLuminance(),z.getLuminance())+.05)}function y(V,$,G){var z,K;G===void 0&&(G={level:"AA",size:"small"});var re=A(V,$);switch(((z=G.level)!==null&&z!==void 0?z:"AA")+((K=G.size)!==null&&K!==void 0?K:"small")){case"AAsmall":case"AAAlarge":return re>=4.5;case"AAlarge":return re>=3;case"AAAsmall":return re>=7;default:return!1}}function M(V,$,G){G===void 0&&(G={includeFallbackColors:!1,level:"AA",size:"small"});for(var z=null,K=0,re=G.includeFallbackColors,ne=G.level,Q=G.size,ue=0,he=$;ue<he.length;ue++){var Ee=he[ue],ce=A(V,Ee);ce>K&&(K=ce,z=new x.C(Ee))}return y(V,z,{level:ne,size:Q})||!re?z:(G.includeFallbackColors=!1,M(V,["#fff","#000"],G))}var w=o(78145);function m(V,$){var G=new x.C(V),z="#"+(0,w.GC)(G.r,G.g,G.b,G.a),K=z,re=G.gradientType?"GradientType = 1, ":"";if($){var ne=new x.C($);K="#"+(0,w.GC)(ne.r,ne.g,ne.b,ne.a)}return"progid:DXImageTransform.Microsoft.gradient(".concat(re,"startColorstr=").concat(z,",endColorstr=").concat(K,")")}var b=o(36822);function v(V,$){var G={r:(0,b.JX)(V.r),g:(0,b.JX)(V.g),b:(0,b.JX)(V.b)};return V.a!==void 0&&(G.a=Number(V.a)),new x.C(G,$)}function h(){return new x.C({r:Math.random(),g:Math.random(),b:Math.random()})}var d=o(76780);function _(V){if(V===void 0&&(V={}),V.count!==void 0&&V.count!==null){var $=V.count,G=[];for(V.count=void 0;$>G.length;)V.count=null,V.seed&&(V.seed+=1),G.push(_(V));return V.count=$,G}var z=p(V.hue,V.seed),K=S(z,V),re=k(z,K,V),ne={h:z,s:K,v:re};return V.alpha!==void 0&&(ne.a=V.alpha),new x.C(ne)}function p(V,$){var G=F(V),z=Z(G,$);return z<0&&(z=360+z),z}function S(V,$){if($.hue==="monochrome")return 0;if($.luminosity==="random")return Z([0,100],$.seed);var G=D(V).saturationRange,z=G[0],K=G[1];switch($.luminosity){case"bright":z=55;break;case"dark":z=K-10;break;case"light":K=55;break;default:break}return Z([z,K],$.seed)}function k(V,$,G){var z=O(V,$),K=100;switch(G.luminosity){case"dark":K=z+20;break;case"light":z=(K+z)/2;break;case"random":z=0,K=100;break;default:break}return Z([z,K],G.seed)}function O(V,$){for(var G=D(V).lowerBounds,z=0;z<G.length-1;z++){var K=G[z][0],re=G[z][1],ne=G[z+1][0],Q=G[z+1][1];if($>=K&&$<=ne){var ue=(Q-re)/(ne-K),he=re-ue*K;return ue*$+he}}return 0}function F(V){var $=parseInt(V,10);if(!Number.isNaN($)&&$<360&&$>0)return[$,$];if(typeof V=="string"){var G=U.find(function(ne){return ne.name===V});if(G){var z=W(G);if(z.hueRange)return z.hueRange}var K=new x.C(V);if(K.isValid){var re=K.toHsv().h;return[re,re]}}return[0,360]}function D(V){V>=334&&V<=360&&(V-=360);for(var $=0,G=U;$<G.length;$++){var z=G[$],K=W(z);if(K.hueRange&&V>=K.hueRange[0]&&V<=K.hueRange[1])return K}throw Error("Color not found")}function Z(V,$){if($===void 0)return Math.floor(V[0]+Math.random()*(V[1]+1-V[0]));var G=V[1]||1,z=V[0]||0;$=($*9301+49297)%233280;var K=$/233280;return Math.floor(z+K*(G-z))}function W(V){var $=V.lowerBounds[0][0],G=V.lowerBounds[V.lowerBounds.length-1][0],z=V.lowerBounds[V.lowerBounds.length-1][1],K=V.lowerBounds[0][1];return{name:V.name,hueRange:V.hueRange,lowerBounds:V.lowerBounds,saturationRange:[$,G],brightnessRange:[z,K]}}var U=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],L=x.H},36822:function(oe,N,o){"use strict";o.d(N,{sh:function(){return x},V2:function(){return g},Yq:function(){return M},JX:function(){return w},FZ:function(){return m}});function x(b,v){A(b)&&(b="100%");var h=y(b);return b=v===360?b:Math.min(v,Math.max(0,parseFloat(b))),h&&(b=parseInt(String(b*v),10)/100),Math.abs(b-v)<1e-6?1:(v===360?b=(b<0?b%v+v:b%v)/parseFloat(String(v)):b=b%v/parseFloat(String(v)),b)}function g(b){return Math.min(1,Math.max(0,b))}function A(b){return typeof b=="string"&&b.indexOf(".")!==-1&&parseFloat(b)===1}function y(b){return typeof b=="string"&&b.indexOf("%")!==-1}function M(b){return b=parseFloat(b),(isNaN(b)||b<0||b>1)&&(b=1),b}function w(b){return b<=1?"".concat(Number(b)*100,"%"):b}function m(b){return b.length===1?"0"+b:String(b)}},82625:function(oe,N,o){"use strict";o.r(N),o.d(N,{CacheProvider:function(){return Qe},ClassNames:function(){return Lt},Global:function(){return jt},ThemeContext:function(){return Fe},createElement:function(){return ct},css:function(){return Le},jsx:function(){return ct},keyframes:function(){return fn},withEmotionCache:function(){return qe}});var x=o(41788),g=o(67294);function A(ze){if(ze.sheet)return ze.sheet;for(var rt=0;rt<document.styleSheets.length;rt++)if(document.styleSheets[rt].ownerNode===ze)return document.styleSheets[rt]}function y(ze){var rt=document.createElement("style");return rt.setAttribute("data-emotion",ze.key),ze.nonce!==void 0&&rt.setAttribute("nonce",ze.nonce),rt.appendChild(document.createTextNode("")),rt}var M=function(){function ze(tt){this.isSpeedy=tt.speedy===void 0?!0:tt.speedy,this.tags=[],this.ctr=0,this.nonce=tt.nonce,this.key=tt.key,this.container=tt.container,this.before=null}var rt=ze.prototype;return rt.insert=function(de){if(this.ctr%(this.isSpeedy?65e3:1)==0){var ot=y(this),Et;this.tags.length===0?Et=this.before:Et=this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(ot,Et),this.tags.push(ot)}var Ht=this.tags[this.tags.length-1];if(this.isSpeedy){var Jt=A(Ht);try{var Qt=de.charCodeAt(1)===105&&de.charCodeAt(0)===64;Jt.insertRule(de,Qt?0:Jt.cssRules.length)}catch(an){}}else Ht.appendChild(document.createTextNode(de));this.ctr++},rt.flush=function(){this.tags.forEach(function(de){return de.parentNode.removeChild(de)}),this.tags=[],this.ctr=0},ze}();function w(ze){function rt(Bn,pr,_r,na,$n){for(var qr=0,Jr=0,Aa=0,ya=0,$t,wn,Fn=0,Or=0,vr,Ur=vr=$t=0,Zr=0,Kr=0,ba=0,Ri=0,Ea=_r.length,Pi=Ea-1,rs,Ui="",Cn="",Kn="",Pn="",At;Zr<Ea;){if(wn=_r.charCodeAt(Zr),Zr===Pi&&Jr+ya+Aa+qr!==0&&(Jr!==0&&(wn=Jr===47?10:47),ya=Aa=qr=0,Ea++,Pi++),Jr+ya+Aa+qr===0){if(Zr===Pi&&(0<Kr&&(Ui=Ui.replace(rn,"")),0<Ui.trim().length)){switch(wn){case 32:case 9:case 59:case 13:case 10:break;default:Ui+=_r.charAt(Zr)}wn=59}switch(wn){case 123:for(Ui=Ui.trim(),$t=Ui.charCodeAt(0),vr=1,Ri=++Zr;Zr<Ea;){switch(wn=_r.charCodeAt(Zr)){case 123:vr++;break;case 125:vr--;break;case 47:switch(wn=_r.charCodeAt(Zr+1)){case 42:case 47:e:{for(Ur=Zr+1;Ur<Pi;++Ur)switch(_r.charCodeAt(Ur)){case 47:if(wn===42&&_r.charCodeAt(Ur-1)===42&&Zr+2!==Ur){Zr=Ur+1;break e}break;case 10:if(wn===47){Zr=Ur+1;break e}}Zr=Ur}}break;case 91:wn++;case 40:wn++;case 34:case 39:for(;Zr++<Pi&&_r.charCodeAt(Zr)!==wn;);}if(vr===0)break;Zr++}switch(vr=_r.substring(Ri,Zr),$t===0&&($t=(Ui=Ui.replace(qt,"").trim()).charCodeAt(0)),$t){case 64:switch(0<Kr&&(Ui=Ui.replace(rn,"")),wn=Ui.charCodeAt(1),wn){case 100:case 109:case 115:case 45:Kr=pr;break;default:Kr=Zt}if(vr=rt(pr,Kr,vr,wn,$n+1),Ri=vr.length,0<ln&&(Kr=tt(Zt,Ui,ba),At=Jt(3,vr,Kr,pr,Ct,vt,Ri,wn,$n,na),Ui=Kr.join(""),At!==void 0&&(Ri=(vr=At.trim()).length)===0&&(wn=0,vr="")),0<Ri)switch(wn){case 115:Ui=Ui.replace(be,Ht);case 100:case 109:case 45:vr=Ui+"{"+vr+"}";break;case 107:Ui=Ui.replace(Hn,"$1 $2"),vr=Ui+"{"+vr+"}",vr=mt===1||mt===2&&Et("@"+vr,3)?"@-webkit-"+vr+"@"+vr:"@"+vr;break;default:vr=Ui+vr,na===112&&(vr=(Cn+=vr,""))}else vr="";break;default:vr=rt(pr,tt(pr,Ui,ba),vr,na,$n+1)}Kn+=vr,vr=ba=Kr=Ur=$t=0,Ui="",wn=_r.charCodeAt(++Zr);break;case 125:case 59:if(Ui=(0<Kr?Ui.replace(rn,""):Ui).trim(),1<(Ri=Ui.length))switch(Ur===0&&($t=Ui.charCodeAt(0),$t===45||96<$t&&123>$t)&&(Ri=(Ui=Ui.replace(" ",":")).length),0<ln&&(At=Jt(1,Ui,pr,Bn,Ct,vt,Cn.length,na,$n,na))!==void 0&&(Ri=(Ui=At.trim()).length)===0&&(Ui="\0\0"),$t=Ui.charCodeAt(0),wn=Ui.charCodeAt(1),$t){case 0:break;case 64:if(wn===105||wn===99){Pn+=Ui+_r.charAt(Zr);break}default:Ui.charCodeAt(Ri-1)!==58&&(Cn+=ot(Ui,$t,wn,Ui.charCodeAt(2)))}ba=Kr=Ur=$t=0,Ui="",wn=_r.charCodeAt(++Zr)}}switch(wn){case 13:case 10:Jr===47?Jr=0:1+$t===0&&na!==107&&0<Ui.length&&(Kr=1,Ui+="\0"),0<ln*En&&Jt(0,Ui,pr,Bn,Ct,vt,Cn.length,na,$n,na),vt=1,Ct++;break;case 59:case 125:if(Jr+ya+Aa+qr===0){vt++;break}default:switch(vt++,rs=_r.charAt(Zr),wn){case 9:case 32:if(ya+qr+Jr===0)switch(Fn){case 44:case 58:case 9:case 32:rs="";break;default:wn!==32&&(rs=" ")}break;case 0:rs="\\0";break;case 12:rs="\\f";break;case 11:rs="\\v";break;case 38:ya+Jr+qr===0&&(Kr=ba=1,rs="\f"+rs);break;case 108:if(ya+Jr+qr+Bt===0&&0<Ur)switch(Zr-Ur){case 2:Fn===112&&_r.charCodeAt(Zr-3)===58&&(Bt=Fn);case 8:Or===111&&(Bt=Or)}break;case 58:ya+Jr+qr===0&&(Ur=Zr);break;case 44:Jr+Aa+ya+qr===0&&(Kr=1,rs+="\r");break;case 34:case 39:Jr===0&&(ya=ya===wn?0:ya===0?wn:ya);break;case 91:ya+Jr+Aa===0&&qr++;break;case 93:ya+Jr+Aa===0&&qr--;break;case 41:ya+Jr+qr===0&&Aa--;break;case 40:if(ya+Jr+qr===0){if($t===0)switch(2*Fn+3*Or){case 533:break;default:$t=1}Aa++}break;case 64:Jr+Aa+ya+qr+Ur+vr===0&&(vr=1);break;case 42:case 47:if(!(0<ya+qr+Aa))switch(Jr){case 0:switch(2*wn+3*_r.charCodeAt(Zr+1)){case 235:Jr=47;break;case 220:Ri=Zr,Jr=42}break;case 42:wn===47&&Fn===42&&Ri+2!==Zr&&(_r.charCodeAt(Ri+2)===33&&(Cn+=_r.substring(Ri,Zr+1)),rs="",Jr=0)}}Jr===0&&(Ui+=rs)}Or=Fn,Fn=wn,Zr++}if(Ri=Cn.length,0<Ri){if(Kr=pr,0<ln&&(At=Jt(2,Cn,Kr,Bn,Ct,vt,Ri,na,$n,na),At!==void 0&&(Cn=At).length===0))return Pn+Cn+Kn;if(Cn=Kr.join(",")+"{"+Cn+"}",mt*Bt!=0){switch(mt!==2||Et(Cn,2)||(Bt=0),Bt){case 111:Cn=Cn.replace(bt,":-moz-$1")+Cn;break;case 112:Cn=Cn.replace(ut,"::-webkit-input-$1")+Cn.replace(ut,"::-moz-$1")+Cn.replace(ut,":-ms-input-$1")+Cn}Bt=0}}return Pn+Cn+Kn}function tt(Bn,pr,_r){var na=pr.trim().split(nt);pr=na;var $n=na.length,qr=Bn.length;switch(qr){case 0:case 1:var Jr=0;for(Bn=qr===0?"":Bn[0]+" ";Jr<$n;++Jr)pr[Jr]=de(Bn,pr[Jr],_r).trim();break;default:var Aa=Jr=0;for(pr=[];Jr<$n;++Jr)for(var ya=0;ya<qr;++ya)pr[Aa++]=de(Bn[ya]+" ",na[Jr],_r).trim()}return pr}function de(Bn,pr,_r){var na=pr.charCodeAt(0);switch(33>na&&(na=(pr=pr.trim()).charCodeAt(0)),na){case 38:return pr.replace(lr,"$1"+Bn.trim());case 58:return Bn.trim()+pr.replace(lr,"$1"+Bn.trim());default:if(0<1*_r&&0<pr.indexOf("\f"))return pr.replace(lr,(Bn.charCodeAt(0)===58?"":"$1")+Bn.trim())}return Bn+pr}function ot(Bn,pr,_r,na){var $n=Bn+";",qr=2*pr+3*_r+4*na;if(qr===944){Bn=$n.indexOf(":",9)+1;var Jr=$n.substring(Bn,$n.length-1).trim();return Jr=$n.substring(0,Bn).trim()+Jr+";",mt===1||mt===2&&Et(Jr,1)?"-webkit-"+Jr+Jr:Jr}if(mt===0||mt===2&&!Et($n,1))return $n;switch(qr){case 1015:return $n.charCodeAt(10)===97?"-webkit-"+$n+$n:$n;case 951:return $n.charCodeAt(3)===116?"-webkit-"+$n+$n:$n;case 963:return $n.charCodeAt(5)===110?"-webkit-"+$n+$n:$n;case 1009:if($n.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+$n+$n;case 978:return"-webkit-"+$n+"-moz-"+$n+$n;case 1019:case 983:return"-webkit-"+$n+"-moz-"+$n+"-ms-"+$n+$n;case 883:if($n.charCodeAt(8)===45)return"-webkit-"+$n+$n;if(0<$n.indexOf("image-set(",11))return $n.replace(lt,"$1-webkit-$2")+$n;break;case 932:if($n.charCodeAt(4)===45)switch($n.charCodeAt(5)){case 103:return"-webkit-box-"+$n.replace("-grow","")+"-webkit-"+$n+"-ms-"+$n.replace("grow","positive")+$n;case 115:return"-webkit-"+$n+"-ms-"+$n.replace("shrink","negative")+$n;case 98:return"-webkit-"+$n+"-ms-"+$n.replace("basis","preferred-size")+$n}return"-webkit-"+$n+"-ms-"+$n+$n;case 964:return"-webkit-"+$n+"-ms-flex-"+$n+$n;case 1023:if($n.charCodeAt(8)!==99)break;return Jr=$n.substring($n.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+Jr+"-webkit-"+$n+"-ms-flex-pack"+Jr+$n;case 1005:return er.test($n)?$n.replace(cn,":-webkit-")+$n.replace(cn,":-moz-")+$n:$n;case 1e3:switch(Jr=$n.substring(13).trim(),pr=Jr.indexOf("-")+1,Jr.charCodeAt(0)+Jr.charCodeAt(pr)){case 226:Jr=$n.replace(We,"tb");break;case 232:Jr=$n.replace(We,"tb-rl");break;case 220:Jr=$n.replace(We,"lr");break;default:return $n}return"-webkit-"+$n+"-ms-"+Jr+$n;case 1017:if($n.indexOf("sticky",9)===-1)break;case 975:switch(pr=($n=Bn).length-10,Jr=($n.charCodeAt(pr)===33?$n.substring(0,pr):$n).substring(Bn.indexOf(":",7)+1).trim(),qr=Jr.charCodeAt(0)+(Jr.charCodeAt(7)|0)){case 203:if(111>Jr.charCodeAt(8))break;case 115:$n=$n.replace(Jr,"-webkit-"+Jr)+";"+$n;break;case 207:case 102:$n=$n.replace(Jr,"-webkit-"+(102<qr?"inline-":"")+"box")+";"+$n.replace(Jr,"-webkit-"+Jr)+";"+$n.replace(Jr,"-ms-"+Jr+"box")+";"+$n}return $n+";";case 938:if($n.charCodeAt(5)===45)switch($n.charCodeAt(6)){case 105:return Jr=$n.replace("-items",""),"-webkit-"+$n+"-webkit-box-"+Jr+"-ms-flex-"+Jr+$n;case 115:return"-webkit-"+$n+"-ms-flex-item-"+$n.replace(Ue,"")+$n;default:return"-webkit-"+$n+"-ms-flex-line-pack"+$n.replace("align-content","").replace(Ue,"")+$n}break;case 973:case 989:if($n.charCodeAt(3)!==45||$n.charCodeAt(4)===122)break;case 931:case 953:if(kt.test(Bn)===!0)return(Jr=Bn.substring(Bn.indexOf(":")+1)).charCodeAt(0)===115?ot(Bn.replace("stretch","fill-available"),pr,_r,na).replace(":fill-available",":stretch"):$n.replace(Jr,"-webkit-"+Jr)+$n.replace(Jr,"-moz-"+Jr.replace("fill-",""))+$n;break;case 962:if($n="-webkit-"+$n+($n.charCodeAt(5)===102?"-ms-"+$n:"")+$n,_r+na===211&&$n.charCodeAt(13)===105&&0<$n.indexOf("transform",10))return $n.substring(0,$n.indexOf(";",27)+1).replace(rr,"$1-webkit-$2")+$n}return $n}function Et(Bn,pr){var _r=Bn.indexOf(pr===1?":":"{"),na=Bn.substring(0,pr!==3?_r:10);return _r=Bn.substring(_r+1,Bn.length-1),An(pr!==2?na:na.replace($e,"$1"),_r,pr)}function Ht(Bn,pr){var _r=ot(pr,pr.charCodeAt(0),pr.charCodeAt(1),pr.charCodeAt(2));return _r!==pr+";"?_r.replace(Ae," or ($1)").substring(4):"("+pr+")"}function Jt(Bn,pr,_r,na,$n,qr,Jr,Aa,ya,$t){for(var wn=0,Fn=pr,Or;wn<ln;++wn)switch(Or=zt[wn].call(Un,Bn,Fn,_r,na,$n,qr,Jr,Aa,ya,$t)){case void 0:case!1:case!0:case null:break;default:Fn=Or}if(Fn!==pr)return Fn}function Qt(Bn){switch(Bn){case void 0:case null:ln=zt.length=0;break;default:if(typeof Bn=="function")zt[ln++]=Bn;else if(typeof Bn=="object")for(var pr=0,_r=Bn.length;pr<_r;++pr)Qt(Bn[pr]);else En=!!Bn|0}return Qt}function an(Bn){return Bn=Bn.prefix,Bn!==void 0&&(An=null,Bn?typeof Bn!="function"?mt=1:(mt=2,An=Bn):mt=0),an}function Un(Bn,pr){var _r=Bn;if(33>_r.charCodeAt(0)&&(_r=_r.trim()),Gn=_r,_r=[Gn],0<ln){var na=Jt(-1,pr,_r,_r,Ct,vt,0,0,0,0);na!==void 0&&typeof na=="string"&&(pr=na)}var $n=rt(Zt,_r,pr,0,0);return 0<ln&&(na=Jt(-2,$n,_r,_r,Ct,vt,$n.length,0,0,0),na!==void 0&&($n=na)),Gn="",Bt=0,vt=Ct=1,$n}var qt=/^\0+/g,rn=/[\0\r\f]/g,cn=/: */g,er=/zoo|gra/,rr=/([,: ])(transform)/g,nt=/,\r+?/g,lr=/([\t\r\n ])*\f?&/g,Hn=/@(k\w+)\s*(\S*)\s*/,ut=/::(place)/g,bt=/:(read-only)/g,We=/[svh]\w+-[tblr]{2}/,be=/\(\s*(.*)\s*\)/g,Ae=/([\s\S]*?);/g,Ue=/-self|flex-/g,$e=/[^]*?(:[rp][el]a[\w-]+)[^]*/,kt=/stretch|:\s*\w+\-(?:conte|avail)/,lt=/([^-])(image-set\()/,vt=1,Ct=1,Bt=0,mt=1,Zt=[],zt=[],ln=0,An=null,En=0,Gn="";return Un.use=Qt,Un.set=an,ze!==void 0&&an(ze),Un}var m=w,b="/*|*/",v=b+"}";function h(ze){ze&&d.current.insert(ze+"}")}var d={current:null},_=function(rt,tt,de,ot,Et,Ht,Jt,Qt,an,Un){switch(rt){case 1:{switch(tt.charCodeAt(0)){case 64:return d.current.insert(tt+";"),"";case 108:if(tt.charCodeAt(2)===98)return""}break}case 2:{if(Qt===0)return tt+b;break}case 3:switch(Qt){case 102:case 112:return d.current.insert(de[0]+tt),"";default:return tt+(Un===0?b:"")}case-2:tt.split(v).forEach(h)}},p=function(rt){rt===void 0&&(rt={});var tt=rt.key||"css",de;rt.prefix!==void 0&&(de={prefix:rt.prefix});var ot=new m(de),Et={},Ht;{Ht=rt.container||document.head;var Jt=document.querySelectorAll("style[data-emotion-"+tt+"]");Array.prototype.forEach.call(Jt,function(rn){var cn=rn.getAttribute("data-emotion-"+tt);cn.split(" ").forEach(function(er){Et[er]=!0}),rn.parentNode!==Ht&&Ht.appendChild(rn)})}var Qt;if(ot.use(rt.stylisPlugins)(_),Qt=function(cn,er,rr,nt){var lr=er.name;if(d.current=rr,!1)var Hn;ot(cn,er.styles),nt&&(qt.inserted[lr]=!0)},!1)var an,Un;var qt={key:tt,sheet:new M({key:tt,container:Ht,nonce:rt.nonce,speedy:rt.speedy}),nonce:rt.nonce,inserted:Et,registered:{},insert:Qt};return qt},S=p,k=!0;function O(ze,rt,tt){var de="";return tt.split(" ").forEach(function(ot){ze[ot]!==void 0?rt.push(ze[ot]):de+=ot+" "}),de}var F=function(rt,tt,de){var ot=rt.key+"-"+tt.name;if((de===!1||k===!1&&rt.compat!==void 0)&&rt.registered[ot]===void 0&&(rt.registered[ot]=tt.styles),rt.inserted[tt.name]===void 0){var Et=tt;do{var Ht=rt.insert("."+ot,Et,rt.sheet,!0);Et=Et.next}while(Et!==void 0)}},D=o(9254),Z=o(25008);function W(ze){var rt={};return function(tt){return rt[tt]===void 0&&(rt[tt]=ze(tt)),rt[tt]}}var U=W,L=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
||
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
||
You can read more about this here:
|
||
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,V="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",$=/[A-Z]|^ms/g,G=/_EMO_([^_]+?)_([^]*?)_EMO_/g,z=function(rt){return rt.charCodeAt(1)===45},K=function(rt){return rt!=null&&typeof rt!="boolean"},re=U(function(ze){return z(ze)?ze:ze.replace($,"-$&").toLowerCase()}),ne=function(rt,tt){switch(rt){case"animation":case"animationName":if(typeof tt=="string")return tt.replace(G,function(de,ot,Et){return Ie={name:ot,styles:Et,next:Ie},ot})}return Z.Z[rt]!==1&&!z(rt)&&typeof tt=="number"&&tt!==0?tt+"px":tt};if(!1)var Q,ue,he,Ee,ce,ve;var fe=!0;function we(ze,rt,tt,de){if(tt==null)return"";if(tt.__emotion_styles!==void 0)return tt;switch(typeof tt){case"boolean":return"";case"object":{if(tt.anim===1)return Ie={name:tt.name,styles:tt.styles,next:Ie},tt.name;if(tt.styles!==void 0){var ot=tt.next;if(ot!==void 0)for(;ot!==void 0;)Ie={name:ot.name,styles:ot.styles,next:Ie},ot=ot.next;var Et=tt.styles+";";return Et}return me(ze,rt,tt)}case"function":{if(ze!==void 0){var Ht=Ie,Jt=tt(ze);return Ie=Ht,we(ze,rt,Jt,de)}break}case"string":if(!1)var Qt,an;break}if(rt==null)return tt;var Un=rt[tt];return Un!==void 0&&!de?Un:tt}function me(ze,rt,tt){var de="";if(Array.isArray(tt))for(var ot=0;ot<tt.length;ot++)de+=we(ze,rt,tt[ot],!1);else for(var Et in tt){var Ht=tt[Et];if(typeof Ht!="object")rt!=null&&rt[Ht]!==void 0?de+=Et+"{"+rt[Ht]+"}":K(Ht)&&(de+=re(Et)+":"+ne(Et,Ht)+";");else if(Array.isArray(Ht)&&typeof Ht[0]=="string"&&(rt==null||rt[Ht[0]]===void 0))for(var Jt=0;Jt<Ht.length;Jt++)K(Ht[Jt])&&(de+=re(Et)+":"+ne(Et,Ht[Jt])+";");else{var Qt=we(ze,rt,Ht,!1);switch(Et){case"animation":case"animationName":{de+=re(Et)+":"+Qt+";";break}default:de+=Et+"{"+Qt+"}"}}}return de}var Pe=/label:\s*([^\s;\n{]+)\s*;/g,pe,Ie,Je=function(rt,tt,de){if(rt.length===1&&typeof rt[0]=="object"&&rt[0]!==null&&rt[0].styles!==void 0)return rt[0];var ot=!0,Et="";Ie=void 0;var Ht=rt[0];Ht==null||Ht.raw===void 0?(ot=!1,Et+=we(de,tt,Ht,!1)):Et+=Ht[0];for(var Jt=1;Jt<rt.length;Jt++)Et+=we(de,tt,rt[Jt],Et.charCodeAt(Et.length-1)===46),ot&&(Et+=Ht[Jt]);var Qt;Pe.lastIndex=0;for(var an="",Un;(Un=Pe.exec(Et))!==null;)an+="-"+Un[1];var qt=(0,D.Z)(Et)+an;return{name:qt,styles:Et,next:Ie}},ke=Object.prototype.hasOwnProperty,De=(0,g.createContext)(typeof HTMLElement!="undefined"?S():null),Fe=(0,g.createContext)({}),Qe=De.Provider,qe=function(rt){var tt=function(ot,Et){return(0,g.createElement)(De.Consumer,null,function(Ht){return rt(ot,Ht,Et)})};return(0,g.forwardRef)(tt)},et=function(rt){return rt.replace(/\$/g,"-")},dt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ke="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Ge=function(rt,tt){var de={};for(var ot in tt)ke.call(tt,ot)&&(de[ot]=tt[ot]);if(de[dt]=rt,!1)var Et,Ht;return de},wt=function(){return null},Vt=function(rt,tt,de,ot){var Et=de===null?tt.css:tt.css(de);typeof Et=="string"&&rt.registered[Et]!==void 0&&(Et=rt.registered[Et]);var Ht=tt[dt],Jt=[Et],Qt="";typeof tt.className=="string"?Qt=O(rt.registered,Jt,tt.className):tt.className!=null&&(Qt=tt.className+" ");var an=Je(Jt);if(!1)var Un;var qt=F(rt,an,typeof Ht=="string");Qt+=rt.key+"-"+an.name;var rn={};for(var cn in tt)ke.call(tt,cn)&&cn!=="css"&&cn!==dt&&(rn[cn]=tt[cn]);rn.ref=ot,rn.className=Qt;var er=(0,g.createElement)(Ht,rn),rr=(0,g.createElement)(wt,null);return(0,g.createElement)(g.Fragment,null,rr,er)},gt=qe(function(ze,rt,tt){return typeof ze.css=="function"?(0,g.createElement)(Fe.Consumer,null,function(de){return Vt(rt,ze,de,tt)}):Vt(rt,ze,null,tt)});function it(){for(var ze=arguments.length,rt=new Array(ze),tt=0;tt<ze;tt++)rt[tt]=arguments[tt];return Je(rt)}var Le=it,ct=function(rt,tt){var de=arguments;if(tt==null||!ke.call(tt,"css"))return g.createElement.apply(void 0,de);var ot=de.length,Et=new Array(ot);Et[0]=gt,Et[1]=Ge(rt,tt);for(var Ht=2;Ht<ot;Ht++)Et[Ht]=de[Ht];return g.createElement.apply(null,Et)},at=!1,jt=qe(function(ze,rt){var tt=ze.styles;if(typeof tt=="function")return(0,g.createElement)(Fe.Consumer,null,function(ot){var Et=Je([tt(ot)]);return(0,g.createElement)(St,{serialized:Et,cache:rt})});var de=Je([tt]);return(0,g.createElement)(St,{serialized:de,cache:rt})}),St=function(ze){(0,x.Z)(rt,ze);function rt(de,ot,Et){return ze.call(this,de,ot,Et)||this}var tt=rt.prototype;return tt.componentDidMount=function(){this.sheet=new M({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var ot=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');ot!==null&&this.sheet.tags.push(ot),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},tt.componentDidUpdate=function(ot){ot.serialized.name!==this.props.serialized.name&&this.insertStyles()},tt.insertStyles=function(){if(this.props.serialized.next!==void 0&&F(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var ot=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=ot,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},tt.componentWillUnmount=function(){this.sheet.flush()},tt.render=function(){return null},rt}(g.Component),fn=function(){var rt=Le.apply(void 0,arguments),tt="animation-"+rt.name;return{name:tt,styles:"@keyframes "+tt+"{"+rt.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Xt=function ze(rt){for(var tt=rt.length,de=0,ot="";de<tt;de++){var Et=rt[de];if(Et!=null){var Ht=void 0;switch(typeof Et){case"boolean":break;case"object":{if(Array.isArray(Et))Ht=ze(Et);else{Ht="";for(var Jt in Et)Et[Jt]&&Jt&&(Ht&&(Ht+=" "),Ht+=Jt)}break}default:Ht=Et}Ht&&(ot&&(ot+=" "),ot+=Ht)}}return ot};function Yt(ze,rt,tt){var de=[],ot=O(ze,de,tt);return de.length<2?tt:ot+rt(de)}var Rt=function(){return null},Lt=qe(function(ze,rt){return(0,g.createElement)(Fe.Consumer,null,function(tt){var de=!1,ot=function(){for(var Un=arguments.length,qt=new Array(Un),rn=0;rn<Un;rn++)qt[rn]=arguments[rn];var cn=Je(qt,rt.registered);return F(rt,cn,!1),rt.key+"-"+cn.name},Et=function(){for(var Un=arguments.length,qt=new Array(Un),rn=0;rn<Un;rn++)qt[rn]=arguments[rn];return Yt(rt.registered,ot,Xt(qt))},Ht={css:ot,cx:Et,theme:tt},Jt=ze.children(Ht);de=!0;var Qt=(0,g.createElement)(Rt,null);return(0,g.createElement)(g.Fragment,null,Qt,Jt)})})},9254:function(oe,N){"use strict";function o(x){for(var g=0,A,y=0,M=x.length;M>=4;++y,M-=4)A=x.charCodeAt(y)&255|(x.charCodeAt(++y)&255)<<8|(x.charCodeAt(++y)&255)<<16|(x.charCodeAt(++y)&255)<<24,A=(A&65535)*1540483477+((A>>>16)*59797<<16),A^=A>>>24,g=(A&65535)*1540483477+((A>>>16)*59797<<16)^(g&65535)*1540483477+((g>>>16)*59797<<16);switch(M){case 3:g^=(x.charCodeAt(y+2)&255)<<16;case 2:g^=(x.charCodeAt(y+1)&255)<<8;case 1:g^=x.charCodeAt(y)&255,g=(g&65535)*1540483477+((g>>>16)*59797<<16)}return g^=g>>>13,g=(g&65535)*1540483477+((g>>>16)*59797<<16),((g^g>>>15)>>>0).toString(36)}N.Z=o},25008:function(oe,N){"use strict";var o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};N.Z=o},57196:function(oe,N,o){"use strict";o.d(N,{Z:function(){return St}});var x=o(28481),g=o(67294),A=o(73935);function y(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var M={},w=[],m=function(Xt){w.push(Xt)};function b(fn,Xt){if(!1)var Yt}function v(fn,Xt){if(!1)var Yt}function h(){M={}}function d(fn,Xt,Yt){!Xt&&!M[Yt]&&(fn(!1,Yt),M[Yt]=!0)}function _(fn,Xt){d(b,fn,Xt)}function p(fn,Xt){d(v,fn,Xt)}_.preMessage=m,_.resetWarned=h,_.noteOnce=p;var S=null,k=o(90484),O=o(54323);function F(fn,Xt,Yt){var Rt=g.useRef({});return(!("value"in Rt.current)||Yt(Rt.current.condition,Xt))&&(Rt.current.value=fn(),Rt.current.condition=Xt),Rt.current.value}function D(fn,Xt){typeof fn=="function"?fn(Xt):(0,k.Z)(fn)==="object"&&fn&&"current"in fn&&(fn.current=Xt)}function Z(){for(var fn=arguments.length,Xt=new Array(fn),Yt=0;Yt<fn;Yt++)Xt[Yt]=arguments[Yt];var Rt=Xt.filter(function(Lt){return Lt});return Rt.length<=1?Rt[0]:function(Lt){Xt.forEach(function(ze){D(ze,Lt)})}}function W(){for(var fn=arguments.length,Xt=new Array(fn),Yt=0;Yt<fn;Yt++)Xt[Yt]=arguments[Yt];return F(function(){return Z.apply(void 0,Xt)},Xt,function(Rt,Lt){return Rt.length!==Lt.length||Rt.every(function(ze,rt){return ze!==Lt[rt]})})}function U(fn){var Xt,Yt,Rt=(0,O.isMemo)(fn)?fn.type.type:fn.type;return!(typeof Rt=="function"&&!((Xt=Rt.prototype)!==null&&Xt!==void 0&&Xt.render)||typeof fn=="function"&&!((Yt=fn.prototype)!==null&&Yt!==void 0&&Yt.render))}function L(fn){return!isValidElement(fn)||isFragment(fn)?!1:U(fn)}var V=g.createContext(null),$=V,G=o(85061),z=y()?g.useLayoutEffect:g.useEffect,K=function(Xt,Yt){var Rt=g.useRef(!0);z(function(){return Xt(Rt.current)},Yt),z(function(){return Rt.current=!1,function(){Rt.current=!0}},[])},re=function(Xt,Yt){K(function(Rt){if(!Rt)return Xt()},Yt)},ne=K,Q=[];function ue(fn,Xt){var Yt=g.useState(function(){if(!y())return null;var an=document.createElement("div");return an}),Rt=(0,x.Z)(Yt,1),Lt=Rt[0],ze=g.useRef(!1),rt=g.useContext($),tt=g.useState(Q),de=(0,x.Z)(tt,2),ot=de[0],Et=de[1],Ht=rt||(ze.current?void 0:function(an){Et(function(Un){var qt=[an].concat((0,G.Z)(Un));return qt})});function Jt(){Lt.parentElement||document.body.appendChild(Lt),ze.current=!0}function Qt(){var an;(an=Lt.parentElement)===null||an===void 0||an.removeChild(Lt),ze.current=!1}return ne(function(){return fn?rt?rt(Jt):Jt():Qt(),Qt},[fn]),ne(function(){ot.length&&(ot.forEach(function(an){return an()}),Et(Q))},[ot]),[Lt,Ht]}function he(fn,Xt){if(!fn)return!1;if(fn.contains)return fn.contains(Xt);for(var Yt=Xt;Yt;){if(Yt===fn)return!0;Yt=Yt.parentNode}return!1}var Ee="data-rc-order",ce="data-rc-priority",ve="rc-util-key",fe=new Map;function we(){var fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Xt=fn.mark;return Xt?Xt.startsWith("data-")?Xt:"data-".concat(Xt):ve}function me(fn){if(fn.attachTo)return fn.attachTo;var Xt=document.querySelector("head");return Xt||document.body}function Pe(fn){return fn==="queue"?"prependQueue":fn?"prepend":"append"}function pe(fn){return Array.from((fe.get(fn)||fn).children).filter(function(Xt){return Xt.tagName==="STYLE"})}function Ie(fn){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!y())return null;var Yt=Xt.csp,Rt=Xt.prepend,Lt=Xt.priority,ze=Lt===void 0?0:Lt,rt=Pe(Rt),tt=rt==="prependQueue",de=document.createElement("style");de.setAttribute(Ee,rt),tt&&ze&&de.setAttribute(ce,"".concat(ze)),Yt!=null&&Yt.nonce&&(de.nonce=Yt==null?void 0:Yt.nonce),de.innerHTML=fn;var ot=me(Xt),Et=ot.firstChild;if(Rt){if(tt){var Ht=pe(ot).filter(function(Jt){if(!["prepend","prependQueue"].includes(Jt.getAttribute(Ee)))return!1;var Qt=Number(Jt.getAttribute(ce)||0);return ze>=Qt});if(Ht.length)return ot.insertBefore(de,Ht[Ht.length-1].nextSibling),de}ot.insertBefore(de,Et)}else ot.appendChild(de);return de}function Je(fn){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Yt=me(Xt);return pe(Yt).find(function(Rt){return Rt.getAttribute(we(Xt))===fn})}function ke(fn){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Yt=Je(fn,Xt);if(Yt){var Rt=me(Xt);Rt.removeChild(Yt)}}function De(fn,Xt){var Yt=fe.get(fn);if(!Yt||!he(document,Yt)){var Rt=Ie("",Xt),Lt=Rt.parentNode;fe.set(fn,Lt),fn.removeChild(Rt)}}function Fe(){fe.clear()}function Qe(fn,Xt){var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Rt=me(Yt);De(Rt,Yt);var Lt=Je(Xt,Yt);if(Lt){var ze,rt;if((ze=Yt.csp)!==null&&ze!==void 0&&ze.nonce&&Lt.nonce!==((rt=Yt.csp)===null||rt===void 0?void 0:rt.nonce)){var tt;Lt.nonce=(tt=Yt.csp)===null||tt===void 0?void 0:tt.nonce}return Lt.innerHTML!==fn&&(Lt.innerHTML=fn),Lt}var de=Ie(fn,Yt);return de.setAttribute(we(Yt),Xt),de}var qe;function et(fn){if(typeof document=="undefined")return 0;if(fn||qe===void 0){var Xt=document.createElement("div");Xt.style.width="100%",Xt.style.height="200px";var Yt=document.createElement("div"),Rt=Yt.style;Rt.position="absolute",Rt.top="0",Rt.left="0",Rt.pointerEvents="none",Rt.visibility="hidden",Rt.width="200px",Rt.height="150px",Rt.overflow="hidden",Yt.appendChild(Xt),document.body.appendChild(Yt);var Lt=Xt.offsetWidth;Yt.style.overflow="scroll";var ze=Xt.offsetWidth;Lt===ze&&(ze=Yt.clientWidth),document.body.removeChild(Yt),qe=Lt-ze}return qe}function dt(fn){var Xt=fn.match(/^(.*)px$/),Yt=Number(Xt==null?void 0:Xt[1]);return Number.isNaN(Yt)?et():Yt}function Ke(fn){if(typeof document=="undefined"||!fn||!(fn instanceof Element))return{width:0,height:0};var Xt=getComputedStyle(fn,"::-webkit-scrollbar"),Yt=Xt.width,Rt=Xt.height;return{width:dt(Yt),height:dt(Rt)}}function Ge(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var wt="rc-util-locker-".concat(Date.now()),Vt=0;function gt(fn){var Xt=!!fn,Yt=g.useState(function(){return Vt+=1,"".concat(wt,"_").concat(Vt)}),Rt=(0,x.Z)(Yt,1),Lt=Rt[0];ne(function(){if(Xt){var ze=Ke(document.body).width,rt=Ge();Qe(`
|
||
html body {
|
||
overflow-y: hidden;
|
||
`.concat(rt?"width: calc(100% - ".concat(ze,"px);"):"",`
|
||
}`),Lt)}else ke(Lt);return function(){ke(Lt)}},[Xt,Lt])}var it=!1;function Le(fn){return typeof fn=="boolean"&&(it=fn),it}var ct=function(Xt){return Xt===!1?!1:!y()||!Xt?null:typeof Xt=="string"?document.querySelector(Xt):typeof Xt=="function"?Xt():Xt},at=g.forwardRef(function(fn,Xt){var Yt=fn.open,Rt=fn.autoLock,Lt=fn.getContainer,ze=fn.debug,rt=fn.autoDestroy,tt=rt===void 0?!0:rt,de=fn.children,ot=g.useState(Yt),Et=(0,x.Z)(ot,2),Ht=Et[0],Jt=Et[1],Qt=Ht||Yt;g.useEffect(function(){(tt||Yt)&&Jt(Yt)},[Yt,tt]);var an=g.useState(function(){return ct(Lt)}),Un=(0,x.Z)(an,2),qt=Un[0],rn=Un[1];g.useEffect(function(){var Ae=ct(Lt);rn(Ae!=null?Ae:null)});var cn=ue(Qt&&!qt,ze),er=(0,x.Z)(cn,2),rr=er[0],nt=er[1],lr=qt!=null?qt:rr;gt(Rt&&Yt&&y()&&(lr===rr||lr===document.body));var Hn=null;if(de&&U(de)&&Xt){var ut=de;Hn=ut.ref}var bt=W(Hn,Xt);if(!Qt||!y()||qt===void 0)return null;var We=lr===!1||Le(),be=de;return Xt&&(be=g.cloneElement(de,{ref:bt})),g.createElement($.Provider,{value:nt},We?be:(0,A.createPortal)(be,lr))}),jt=at,St=jt},68586:function(oe){"use strict";oe.exports=function N(o,x){if(o===x)return!0;if(o&&x&&typeof o=="object"&&typeof x=="object"){if(o.constructor!==x.constructor)return!1;var g,A,y;if(Array.isArray(o)){if(g=o.length,g!=x.length)return!1;for(A=g;A--!=0;)if(!N(o[A],x[A]))return!1;return!0}if(o.constructor===RegExp)return o.source===x.source&&o.flags===x.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===x.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===x.toString();if(y=Object.keys(o),g=y.length,g!==Object.keys(x).length)return!1;for(A=g;A--!=0;)if(!Object.prototype.hasOwnProperty.call(x,y[A]))return!1;for(A=g;A--!=0;){var M=y[A];if(!N(o[M],x[M]))return!1}return!0}return o!==o&&x!==x}},44269:function(oe,N,o){"use strict";var x;x={value:!0},Object.defineProperty(N,"yw",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(N,"t6",{enumerable:!0,get:function(){return A.default}}),o(14643);var g=y(o(92909));o(68059);var A=y(o(84737));function y(M){return M&&M.__esModule?M:{default:M}}},62801:function(oe){var N=function(o){"use strict";var x=Object.prototype,g=x.hasOwnProperty,A,y=typeof Symbol=="function"?Symbol:{},M=y.iterator||"@@iterator",w=y.asyncIterator||"@@asyncIterator",m=y.toStringTag||"@@toStringTag";function b(ue,he,Ee,ce){var ve=he&&he.prototype instanceof k?he:k,fe=Object.create(ve.prototype),we=new re(ce||[]);return fe._invoke=$(ue,Ee,we),fe}o.wrap=b;function v(ue,he,Ee){try{return{type:"normal",arg:ue.call(he,Ee)}}catch(ce){return{type:"throw",arg:ce}}}var h="suspendedStart",d="suspendedYield",_="executing",p="completed",S={};function k(){}function O(){}function F(){}var D={};D[M]=function(){return this};var Z=Object.getPrototypeOf,W=Z&&Z(Z(ne([])));W&&W!==x&&g.call(W,M)&&(D=W);var U=F.prototype=k.prototype=Object.create(D);O.prototype=U.constructor=F,F.constructor=O,F[m]=O.displayName="GeneratorFunction";function L(ue){["next","throw","return"].forEach(function(he){ue[he]=function(Ee){return this._invoke(he,Ee)}})}o.isGeneratorFunction=function(ue){var he=typeof ue=="function"&&ue.constructor;return he?he===O||(he.displayName||he.name)==="GeneratorFunction":!1},o.mark=function(ue){return Object.setPrototypeOf?Object.setPrototypeOf(ue,F):(ue.__proto__=F,m in ue||(ue[m]="GeneratorFunction")),ue.prototype=Object.create(U),ue},o.awrap=function(ue){return{__await:ue}};function V(ue,he){function Ee(fe,we,me,Pe){var pe=v(ue[fe],ue,we);if(pe.type==="throw")Pe(pe.arg);else{var Ie=pe.arg,Je=Ie.value;return Je&&typeof Je=="object"&&g.call(Je,"__await")?he.resolve(Je.__await).then(function(ke){Ee("next",ke,me,Pe)},function(ke){Ee("throw",ke,me,Pe)}):he.resolve(Je).then(function(ke){Ie.value=ke,me(Ie)},function(ke){return Ee("throw",ke,me,Pe)})}}var ce;function ve(fe,we){function me(){return new he(function(Pe,pe){Ee(fe,we,Pe,pe)})}return ce=ce?ce.then(me,me):me()}this._invoke=ve}L(V.prototype),V.prototype[w]=function(){return this},o.AsyncIterator=V,o.async=function(ue,he,Ee,ce,ve){ve===void 0&&(ve=Promise);var fe=new V(b(ue,he,Ee,ce),ve);return o.isGeneratorFunction(he)?fe:fe.next().then(function(we){return we.done?we.value:fe.next()})};function $(ue,he,Ee){var ce=h;return function(fe,we){if(ce===_)throw new Error("Generator is already running");if(ce===p){if(fe==="throw")throw we;return Q()}for(Ee.method=fe,Ee.arg=we;;){var me=Ee.delegate;if(me){var Pe=G(me,Ee);if(Pe){if(Pe===S)continue;return Pe}}if(Ee.method==="next")Ee.sent=Ee._sent=Ee.arg;else if(Ee.method==="throw"){if(ce===h)throw ce=p,Ee.arg;Ee.dispatchException(Ee.arg)}else Ee.method==="return"&&Ee.abrupt("return",Ee.arg);ce=_;var pe=v(ue,he,Ee);if(pe.type==="normal"){if(ce=Ee.done?p:d,pe.arg===S)continue;return{value:pe.arg,done:Ee.done}}else pe.type==="throw"&&(ce=p,Ee.method="throw",Ee.arg=pe.arg)}}}function G(ue,he){var Ee=ue.iterator[he.method];if(Ee===A){if(he.delegate=null,he.method==="throw"){if(ue.iterator.return&&(he.method="return",he.arg=A,G(ue,he),he.method==="throw"))return S;he.method="throw",he.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}var ce=v(Ee,ue.iterator,he.arg);if(ce.type==="throw")return he.method="throw",he.arg=ce.arg,he.delegate=null,S;var ve=ce.arg;if(!ve)return he.method="throw",he.arg=new TypeError("iterator result is not an object"),he.delegate=null,S;if(ve.done)he[ue.resultName]=ve.value,he.next=ue.nextLoc,he.method!=="return"&&(he.method="next",he.arg=A);else return ve;return he.delegate=null,S}L(U),U[m]="Generator",U[M]=function(){return this},U.toString=function(){return"[object Generator]"};function z(ue){var he={tryLoc:ue[0]};1 in ue&&(he.catchLoc=ue[1]),2 in ue&&(he.finallyLoc=ue[2],he.afterLoc=ue[3]),this.tryEntries.push(he)}function K(ue){var he=ue.completion||{};he.type="normal",delete he.arg,ue.completion=he}function re(ue){this.tryEntries=[{tryLoc:"root"}],ue.forEach(z,this),this.reset(!0)}o.keys=function(ue){var he=[];for(var Ee in ue)he.push(Ee);return he.reverse(),function ce(){for(;he.length;){var ve=he.pop();if(ve in ue)return ce.value=ve,ce.done=!1,ce}return ce.done=!0,ce}};function ne(ue){if(ue){var he=ue[M];if(he)return he.call(ue);if(typeof ue.next=="function")return ue;if(!isNaN(ue.length)){var Ee=-1,ce=function ve(){for(;++Ee<ue.length;)if(g.call(ue,Ee))return ve.value=ue[Ee],ve.done=!1,ve;return ve.value=A,ve.done=!0,ve};return ce.next=ce}}return{next:Q}}o.values=ne;function Q(){return{value:A,done:!0}}return re.prototype={constructor:re,reset:function(he){if(this.prev=0,this.next=0,this.sent=this._sent=A,this.done=!1,this.delegate=null,this.method="next",this.arg=A,this.tryEntries.forEach(K),!he)for(var Ee in this)Ee.charAt(0)==="t"&&g.call(this,Ee)&&!isNaN(+Ee.slice(1))&&(this[Ee]=A)},stop:function(){this.done=!0;var he=this.tryEntries[0],Ee=he.completion;if(Ee.type==="throw")throw Ee.arg;return this.rval},dispatchException:function(he){if(this.done)throw he;var Ee=this;function ce(pe,Ie){return we.type="throw",we.arg=he,Ee.next=pe,Ie&&(Ee.method="next",Ee.arg=A),!!Ie}for(var ve=this.tryEntries.length-1;ve>=0;--ve){var fe=this.tryEntries[ve],we=fe.completion;if(fe.tryLoc==="root")return ce("end");if(fe.tryLoc<=this.prev){var me=g.call(fe,"catchLoc"),Pe=g.call(fe,"finallyLoc");if(me&&Pe){if(this.prev<fe.catchLoc)return ce(fe.catchLoc,!0);if(this.prev<fe.finallyLoc)return ce(fe.finallyLoc)}else if(me){if(this.prev<fe.catchLoc)return ce(fe.catchLoc,!0)}else if(Pe){if(this.prev<fe.finallyLoc)return ce(fe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(he,Ee){for(var ce=this.tryEntries.length-1;ce>=0;--ce){var ve=this.tryEntries[ce];if(ve.tryLoc<=this.prev&&g.call(ve,"finallyLoc")&&this.prev<ve.finallyLoc){var fe=ve;break}}fe&&(he==="break"||he==="continue")&&fe.tryLoc<=Ee&&Ee<=fe.finallyLoc&&(fe=null);var we=fe?fe.completion:{};return we.type=he,we.arg=Ee,fe?(this.method="next",this.next=fe.finallyLoc,S):this.complete(we)},complete:function(he,Ee){if(he.type==="throw")throw he.arg;return he.type==="break"||he.type==="continue"?this.next=he.arg:he.type==="return"?(this.rval=this.arg=he.arg,this.method="return",this.next="end"):he.type==="normal"&&Ee&&(this.next=Ee),S},finish:function(he){for(var Ee=this.tryEntries.length-1;Ee>=0;--Ee){var ce=this.tryEntries[Ee];if(ce.finallyLoc===he)return this.complete(ce.completion,ce.afterLoc),K(ce),S}},catch:function(he){for(var Ee=this.tryEntries.length-1;Ee>=0;--Ee){var ce=this.tryEntries[Ee];if(ce.tryLoc===he){var ve=ce.completion;if(ve.type==="throw"){var fe=ve.arg;K(ce)}return fe}}throw new Error("illegal catch attempt")},delegateYield:function(he,Ee,ce){return this.delegate={iterator:ne(he),resultName:Ee,nextLoc:ce},this.method==="next"&&(this.arg=A),S}},o}(oe.exports);try{regeneratorRuntime=N}catch(o){Function("r","regeneratorRuntime = r")(N)}},48059:function(oe,N,o){"use strict";var x,g=o(35229).default;x={value:!0};var A=o(85560),y=o(67294),M=o(73935),w=o(1714);function m(me){return me&&typeof me=="object"&&"default"in me?me:{default:me}}var b=m(y);function v(me,Pe){var pe=Object.keys(me);if(Object.getOwnPropertySymbols){var Ie=Object.getOwnPropertySymbols(me);Pe&&(Ie=Ie.filter(function(Je){return Object.getOwnPropertyDescriptor(me,Je).enumerable})),pe.push.apply(pe,Ie)}return pe}function h(me){for(var Pe=1;Pe<arguments.length;Pe++){var pe=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?v(Object(pe),!0).forEach(function(Ie){p(me,Ie,pe[Ie])}):Object.getOwnPropertyDescriptors?Object.defineProperties(me,Object.getOwnPropertyDescriptors(pe)):v(Object(pe)).forEach(function(Ie){Object.defineProperty(me,Ie,Object.getOwnPropertyDescriptor(pe,Ie))})}return me}function d(me,Pe,pe,Ie,Je,ke,De){try{var Fe=me[ke](De),Qe=Fe.value}catch(qe){pe(qe);return}Fe.done?Pe(Qe):Promise.resolve(Qe).then(Ie,Je)}function _(me){return function(){var Pe=this,pe=arguments;return new Promise(function(Ie,Je){var ke=me.apply(Pe,pe);function De(Qe){d(ke,Ie,Je,De,Fe,"next",Qe)}function Fe(Qe){d(ke,Ie,Je,De,Fe,"throw",Qe)}De(void 0)})}}function p(me,Pe,pe){return Pe in me?Object.defineProperty(me,Pe,{value:pe,enumerable:!0,configurable:!0,writable:!0}):me[Pe]=pe,me}function S(){return S=Object.assign||function(me){for(var Pe=1;Pe<arguments.length;Pe++){var pe=arguments[Pe];for(var Ie in pe)Object.prototype.hasOwnProperty.call(pe,Ie)&&(me[Ie]=pe[Ie])}return me},S.apply(this,arguments)}function k(me,Pe){if(me==null)return{};var pe={},Ie=Object.keys(me),Je,ke;for(ke=0;ke<Ie.length;ke++)Je=Ie[ke],!(Pe.indexOf(Je)>=0)&&(pe[Je]=me[Je]);return pe}function O(me,Pe){if(me==null)return{};var pe=k(me,Pe),Ie,Je;if(Object.getOwnPropertySymbols){var ke=Object.getOwnPropertySymbols(me);for(Je=0;Je<ke.length;Je++)Ie=ke[Je],!(Pe.indexOf(Ie)>=0)&&(!Object.prototype.propertyIsEnumerable.call(me,Ie)||(pe[Ie]=me[Ie]))}return pe}function F(me,Pe){return D(me)||Z(me,Pe)||W(me,Pe)||L()}function D(me){if(Array.isArray(me))return me}function Z(me,Pe){var pe=me==null?null:typeof Symbol!="undefined"&&me[Symbol.iterator]||me["@@iterator"];if(pe!=null){var Ie=[],Je=!0,ke=!1,De,Fe;try{for(pe=pe.call(me);!(Je=(De=pe.next()).done)&&(Ie.push(De.value),!(Pe&&Ie.length===Pe));Je=!0);}catch(Qe){ke=!0,Fe=Qe}finally{try{!Je&&pe.return!=null&&pe.return()}finally{if(ke)throw Fe}}return Ie}}function W(me,Pe){if(!!me){if(typeof me=="string")return U(me,Pe);var pe=Object.prototype.toString.call(me).slice(8,-1);if(pe==="Object"&&me.constructor&&(pe=me.constructor.name),pe==="Map"||pe==="Set")return Array.from(me);if(pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe))return U(me,Pe)}}function U(me,Pe){(Pe==null||Pe>me.length)&&(Pe=me.length);for(var pe=0,Ie=new Array(Pe);pe<Pe;pe++)Ie[pe]=me[pe];return Ie}function L(){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 V(me,Pe){var pe=typeof Symbol!="undefined"&&me[Symbol.iterator]||me["@@iterator"];if(!pe){if(Array.isArray(me)||(pe=W(me))||Pe&&me&&typeof me.length=="number"){pe&&(me=pe);var Ie=0,Je=function(){};return{s:Je,n:function(){return Ie>=me.length?{done:!0}:{done:!1,value:me[Ie++]}},e:function(qe){throw qe},f:Je}}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 ke=!0,De=!1,Fe;return{s:function(){pe=pe.call(me)},n:function(){var qe=pe.next();return ke=qe.done,qe},e:function(qe){De=!0,Fe=qe},f:function(){try{!ke&&pe.return!=null&&pe.return()}finally{if(De)throw Fe}}}}function $(me){return b.default.createElement(A.__RouterContext.Consumer,null,function(Pe){var pe=me.location||Pe.location,Ie=me.computedMatch,Je=h(h({},Pe),{},{location:pe,match:Ie}),ke=me.render;return b.default.createElement(A.__RouterContext.Provider,{value:Je},Je.match?ke(h(h({},me.layoutProps),Je)):null)})}var G=["children"];function z(me){return b.default.createElement(A.__RouterContext.Consumer,null,function(Pe){var pe=me.children,Ie=O(me,G),Je=me.location||Pe.location,ke,De=null;return y.Children.forEach(pe,function(Fe){if(De===null&&y.isValidElement(Fe)){ke=Fe;var Qe=Fe.props.path||Fe.props.from;De=Qe?A.matchPath(Je.pathname,h(h({},Fe.props),{},{path:Qe})):Pe.match}}),De?y.cloneElement(ke,{location:Je,computedMatch:De,layoutProps:Ie}):null})}var K=["component"];function re(me,Pe){var pe=me.component,Ie=O(me,K),Je=me.component;function ke(De){var Fe=y.useState(function(){return window.g_initialProps}),Qe=F(Fe,2),qe=Qe[0],et=Qe[1];return y.useEffect(function(){var dt=function(){var Ke=_(g().mark(function Ge(){var wt,Vt,gt,it,Le;return g().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(Vt=Je,!Je.preload){at.next=6;break}return at.next=4,Je.preload();case 4:Vt=at.sent,Vt=Vt.default||Vt;case 6:if(gt=h(h({isServer:!1,match:De==null?void 0:De.match,history:De==null?void 0:De.history,route:me},Pe.getInitialPropsCtx||{}),Ie),!((wt=Vt)===null||wt===void 0?void 0:wt.getInitialProps)){at.next=15;break}return at.next=10,Pe.plugin.applyPlugins({key:"ssr.modifyGetInitialPropsCtx",type:A.ApplyPluginsType.modify,initialValue:gt,async:!0});case 10:return it=at.sent,at.next=13,Vt.getInitialProps(it||gt);case 13:Le=at.sent,et(Le);case 15:case"end":return at.stop()}},Ge)}));return function(){return Ke.apply(this,arguments)}}();window.g_initialProps||dt()},[window.location.pathname,window.location.search]),b.default.createElement(Je,S({},De,qe))}return ke.wrapInitialPropsLoaded=!0,ke.displayName="ComponentWithInitialPropsFetch",ke}function ne(me){var Pe=me.route,pe=me.opts,Ie=me.props,Je=ue(h(h({},pe),{},{routes:Pe.routes||[],rootRoutes:pe.rootRoutes}),{location:Ie.location}),ke=Pe.component,De=Pe.wrappers;if(ke){var Fe=pe.isServer?{}:window.g_initialProps,Qe=h(h(h(h({},Ie),pe.extraProps),pe.pageInitialProps||Fe),{},{route:Pe,routes:pe.rootRoutes}),qe=b.default.createElement(ke,Qe,Je);if(De)for(var et=De.length-1;et>=0;)qe=y.createElement(De[et],Qe,qe),et-=1;return qe}else return Je}function Q(me){var Pe=me.route,pe=me.index,Ie=me.opts,Je={key:Pe.key||pe,exact:Pe.exact,strict:Pe.strict,sensitive:Pe.sensitive,path:Pe.path};if(Pe.redirect)return b.default.createElement(A.Redirect,S({},Je,{from:Pe.path,to:Pe.redirect}));var ke,De,Fe;return Ie.ssrProps&&!Ie.isServer&&!((ke=Pe.component)===null||ke===void 0?void 0:ke.wrapInitialPropsLoaded)&&(((De=Pe.component)===null||De===void 0?void 0:De.getInitialProps)||((Fe=Pe.component)===null||Fe===void 0?void 0:Fe.preload))&&(Pe.component=re(Pe,Ie)),b.default.createElement($,S({},Je,{render:function(qe){return ne({route:Pe,opts:Ie,props:qe})}}))}function ue(me){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return me.routes?b.default.createElement(z,Pe,me.routes.map(function(pe,Ie){return Q({route:pe,index:Ie,opts:h(h({},me),{},{rootRoutes:me.rootRoutes||me.routes})})})):null}var he=["history"];function Ee(me){var Pe=me.history,pe=O(me,he);return y.useEffect(function(){window.g_useSSR&&(window.g_initialProps=null);function Ie(Je,ke){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Fe=w.matchRoutes(me.routes,Je.pathname);typeof document!="undefined"&&pe.defaultTitle!==void 0&&(document.title=Fe.length&&Fe[Fe.length-1].route.title||pe.defaultTitle||""),me.plugin.applyPlugins({key:"onRouteChange",type:A.ApplyPluginsType.event,args:{routes:me.routes,matchedRoutes:Fe,location:Je,action:ke,isFirst:De}})}return Ie(Pe.location,"POP",!0),Pe.listen(Ie)},[Pe]),b.default.createElement(A.Router,{history:Pe},ue(pe))}function ce(me){return me.plugin.applyPlugins({type:A.ApplyPluginsType.modify,key:"rootContainer",initialValue:b.default.createElement(Ee,{history:me.history,routes:me.routes,plugin:me.plugin,ssrProps:me.ssrProps,defaultTitle:me.defaultTitle}),args:{history:me.history,routes:me.routes,plugin:me.plugin}})}function ve(me){return fe.apply(this,arguments)}function fe(){return fe=_(g().mark(function me(Pe){var pe,Ie,Je,ke,De,Fe,Qe,qe,et=arguments;return g().wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:pe=et.length>1&&et[1]!==void 0?et[1]:window.location.pathname,Ie=w.matchRoutes(Pe,pe),Je=V(Ie),Ke.prev=3,Je.s();case 5:if((ke=Je.n()).done){Ke.next=19;break}if(Fe=ke.value,Qe=Fe.route,!(typeof Qe.component!="string"&&((De=Qe.component)===null||De===void 0?void 0:De.preload))){Ke.next=13;break}return Ke.next=11,Qe.component.preload();case 11:qe=Ke.sent,Qe.component=qe.default||qe;case 13:if(!Qe.routes){Ke.next=17;break}return Ke.next=16,ve(Qe.routes,pe);case 16:Qe.routes=Ke.sent;case 17:Ke.next=5;break;case 19:Ke.next=24;break;case 21:Ke.prev=21,Ke.t0=Ke.catch(3),Je.e(Ke.t0);case 24:return Ke.prev=24,Je.f(),Ke.finish(24);case 27:return Ke.abrupt("return",Pe);case 28:case"end":return Ke.stop()}},me,null,[[3,21,24,27]])})),fe.apply(this,arguments)}function we(me){var Pe=ce(me);if(me.rootElement){var pe=typeof me.rootElement=="string"?document.getElementById(me.rootElement):me.rootElement,Ie=me.callback||function(){};window.g_useSSR?me.dynamicImport?ve(me.routes).then(function(){M.hydrate(Pe,pe,Ie)}):M.hydrate(Pe,pe,Ie):M.render(Pe,pe,Ie)}else return Pe}N.p6=we,x=ue},85560:function(oe,N,o){"use strict";o.r(N),o.d(N,{createBrowserHistory:function(){return g.lX},createHashHistory:function(){return g.q_},createMemoryHistory:function(){return g.PP},__RouterContext:function(){return A.s6},Link:function(){return y.rU},MemoryRouter:function(){return A.VA},NavLink:function(){return y.OL},Prompt:function(){return A.NL},Redirect:function(){return A.l_},Route:function(){return A.AW},Router:function(){return A.F0},StaticRouter:function(){return A.gx},Switch:function(){return A.rs},matchPath:function(){return A.LX},useHistory:function(){return A.k6},useLocation:function(){return A.TH},useParams:function(){return A.UO},useRouteMatch:function(){return A.$B},withRouter:function(){return A.EN},ApplyPluginsType:function(){return Pe},Plugin:function(){return Je},dynamic:function(){return fe},isBrowser:function(){return me}});var x=o(39428),g=o(83233),A=o(2546),y=o(87748),M=o(67294),w=o(85440);function m(ke,De){var Fe=Object.keys(ke);if(Object.getOwnPropertySymbols){var Qe=Object.getOwnPropertySymbols(ke);De&&(Qe=Qe.filter(function(qe){return Object.getOwnPropertyDescriptor(ke,qe).enumerable})),Fe.push.apply(Fe,Qe)}return Fe}function b(ke){for(var De=1;De<arguments.length;De++){var Fe=arguments[De]!=null?arguments[De]:{};De%2?m(Object(Fe),!0).forEach(function(Qe){k(ke,Qe,Fe[Qe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ke,Object.getOwnPropertyDescriptors(Fe)):m(Object(Fe)).forEach(function(Qe){Object.defineProperty(ke,Qe,Object.getOwnPropertyDescriptor(Fe,Qe))})}return ke}function v(ke){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(Fe){return typeof Fe}:v=function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},v(ke)}function h(ke,De,Fe,Qe,qe,et,dt){try{var Ke=ke[et](dt),Ge=Ke.value}catch(wt){Fe(wt);return}Ke.done?De(Ge):Promise.resolve(Ge).then(Qe,qe)}function d(ke){return function(){var De=this,Fe=arguments;return new Promise(function(Qe,qe){var et=ke.apply(De,Fe);function dt(Ge){h(et,Qe,qe,dt,Ke,"next",Ge)}function Ke(Ge){h(et,Qe,qe,dt,Ke,"throw",Ge)}dt(void 0)})}}function _(ke,De){if(!(ke instanceof De))throw new TypeError("Cannot call a class as a function")}function p(ke,De){for(var Fe=0;Fe<De.length;Fe++){var Qe=De[Fe];Qe.enumerable=Qe.enumerable||!1,Qe.configurable=!0,"value"in Qe&&(Qe.writable=!0),Object.defineProperty(ke,Qe.key,Qe)}}function S(ke,De,Fe){return De&&p(ke.prototype,De),Fe&&p(ke,Fe),ke}function k(ke,De,Fe){return De in ke?Object.defineProperty(ke,De,{value:Fe,enumerable:!0,configurable:!0,writable:!0}):ke[De]=Fe,ke}function O(ke){return F(ke)||D(ke)||Z(ke)||U()}function F(ke){if(Array.isArray(ke))return ke}function D(ke){if(typeof Symbol!="undefined"&&ke[Symbol.iterator]!=null||ke["@@iterator"]!=null)return Array.from(ke)}function Z(ke,De){if(!!ke){if(typeof ke=="string")return W(ke,De);var Fe=Object.prototype.toString.call(ke).slice(8,-1);if(Fe==="Object"&&ke.constructor&&(Fe=ke.constructor.name),Fe==="Map"||Fe==="Set")return Array.from(ke);if(Fe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Fe))return W(ke,De)}}function W(ke,De){(De==null||De>ke.length)&&(De=ke.length);for(var Fe=0,Qe=new Array(De);Fe<De;Fe++)Qe[Fe]=ke[Fe];return Qe}function U(){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 L(ke,De){var Fe=typeof Symbol!="undefined"&&ke[Symbol.iterator]||ke["@@iterator"];if(!Fe){if(Array.isArray(ke)||(Fe=Z(ke))||De&&ke&&typeof ke.length=="number"){Fe&&(ke=Fe);var Qe=0,qe=function(){};return{s:qe,n:function(){return Qe>=ke.length?{done:!0}:{done:!1,value:ke[Qe++]}},e:function(wt){throw wt},f:qe}}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 et=!0,dt=!1,Ke;return{s:function(){Fe=Fe.call(ke)},n:function(){var wt=Fe.next();return et=wt.done,wt},e:function(wt){dt=!0,Ke=wt},f:function(){try{!et&&Fe.return!=null&&Fe.return()}finally{if(dt)throw Ke}}}}var V=(0,M.createContext)(null),$=[],G=[],z=!1;function K(ke){var De=ke(),Fe={loading:!0,loaded:null,error:null};return Fe.promise=De.then(function(Qe){return Fe.loading=!1,Fe.loaded=Qe,Qe}).catch(function(Qe){throw Fe.loading=!1,Fe.error=Qe,Qe}),Fe}function re(ke){var De={loading:!1,loaded:{},error:null},Fe=[];try{Object.keys(ke).forEach(function(Qe){var qe=K(ke[Qe]);qe.loading?De.loading=!0:(De.loaded[Qe]=qe.loaded,De.error=qe.error),Fe.push(qe.promise),qe.promise.then(function(et){De.loaded[Qe]=et}).catch(function(et){De.error=et})})}catch(Qe){De.error=Qe}return De.promise=Promise.all(Fe).then(function(Qe){return De.loading=!1,Qe}).catch(function(Qe){throw De.loading=!1,Qe}),De}function ne(ke){return ke&&ke.__esModule?ke.default:ke}function Q(ke,De){return(0,M.createElement)(ne(ke),De)}function ue(ke,De){var Fe=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:Q,webpack:null,modules:null},De),Qe=null;function qe(){if(!Qe){var Ge=new he(ke,Fe);Qe={getCurrentValue:Ge.getCurrentValue.bind(Ge),subscribe:Ge.subscribe.bind(Ge),retry:Ge.retry.bind(Ge),promise:Ge.promise.bind(Ge)}}return Qe.promise()}if(typeof window=="undefined"&&$.push(qe),!z&&typeof window!="undefined"&&typeof Fe.webpack=="function"){var et=Fe.webpack();G.push(function(Ge){var wt=L(et),Vt;try{for(wt.s();!(Vt=wt.n()).done;){var gt=Vt.value;if(Ge.indexOf(gt)!==-1)return qe()}}catch(it){wt.e(it)}finally{wt.f()}})}var dt=function(wt,Vt){qe();var gt=(0,M.useContext)(V),it=(0,w.useSubscription)(Qe);return(0,M.useImperativeHandle)(Vt,function(){return{retry:Qe.retry}}),gt&&Array.isArray(Fe.modules)&&Fe.modules.forEach(function(Le){gt(Le)}),it.loading||it.error?(0,M.createElement)(Fe.loading,{isLoading:it.loading,pastDelay:it.pastDelay,timedOut:it.timedOut,error:it.error,retry:Qe.retry}):it.loaded?Fe.render(it.loaded,wt):null},Ke=(0,M.forwardRef)(dt);return Ke.preload=function(){return qe()},Ke.displayName="LoadableComponent",Ke}var he=function(){function ke(De,Fe){_(this,ke),this._loadFn=De,this._opts=Fe,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return S(ke,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var Fe=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var Qe=this._res,qe=this._opts;Qe.loading&&(typeof qe.delay=="number"&&(qe.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(function(){Fe._update({pastDelay:!0})},qe.delay)),typeof qe.timeout=="number"&&(this._timeout=setTimeout(function(){Fe._update({timedOut:!0})},qe.timeout))),this._res.promise.then(function(){Fe._update(),Fe._clearTimeouts()}).catch(function(et){Fe._update(),Fe._clearTimeouts()}),this._update({})}},{key:"_update",value:function(Fe){this._state=b(b({},this._state),Fe),this._callbacks.forEach(function(Qe){return Qe()})}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return b(b({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading})}},{key:"subscribe",value:function(Fe){var Qe=this;return this._callbacks.add(Fe),function(){Qe._callbacks.delete(Fe)}}}]),ke}();function Ee(ke){return ue(K,ke)}function ce(ke){if(typeof ke.render!="function")throw new Error("LoadableMap requires a `render(loaded, props)` function");return ue(re,ke)}Ee.Map=ce;function ve(ke,De){for(var Fe=[];ke.length;){var Qe=ke.pop();Fe.push(Qe(De))}return Promise.all(Fe).then(function(){if(ke.length)return ve(ke,De)})}Ee.preloadAll=function(){return new Promise(function(ke,De){ve($).then(ke,De)})},Ee.preloadReady=function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return new Promise(function(De){var Fe=function(){return z=!0,De()};ve(G,ke).then(Fe,Fe)})},typeof window!="undefined"&&(window.__NEXT_PRELOADREADY=Ee.preloadReady);function fe(ke){var De=Ee,Fe={loading:function(qe){var et=qe.error,dt=qe.isLoading;return(0,M.createElement)("p",null,"loading...")}};if(typeof ke=="function")Fe.loader=ke;else if(v(ke)==="object")Fe=b(b({},Fe),ke);else throw new Error("Unexpect arguments ".concat(ke));return De(Fe)}function we(ke,De){if(!ke)throw new Error(De)}var me=function(){return typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"},Pe;(function(ke){ke.compose="compose",ke.modify="modify",ke.event="event"})(Pe||(Pe={}));function pe(ke){var De=ke.fns,Fe=ke.args;if(De.length===1)return De[0];var Qe=De.pop();return De.reduce(function(qe,et){return function(){return et(qe,Fe)}},Qe)}function Ie(ke){return!!ke&&v(ke)==="object"&&typeof ke.then=="function"}var Je=function(){function ke(De){_(this,ke),this.validKeys=void 0,this.hooks={},this.validKeys=(De==null?void 0:De.validKeys)||[]}return S(ke,[{key:"register",value:function(Fe){var Qe=this;we(!!Fe.apply,"register failed, plugin.apply must supplied"),we(!!Fe.path,"register failed, plugin.path must supplied"),Object.keys(Fe.apply).forEach(function(qe){we(Qe.validKeys.indexOf(qe)>-1,"register failed, invalid key ".concat(qe," from plugin ").concat(Fe.path,".")),Qe.hooks[qe]||(Qe.hooks[qe]=[]),Qe.hooks[qe]=Qe.hooks[qe].concat(Fe.apply[qe])})}},{key:"getHooks",value:function(Fe){var Qe=Fe.split("."),qe=O(Qe),et=qe[0],dt=qe.slice(1),Ke=this.hooks[et]||[];return dt.length&&(Ke=Ke.map(function(Ge){try{var wt=Ge,Vt=L(dt),gt;try{for(Vt.s();!(gt=Vt.n()).done;){var it=gt.value;wt=wt[it]}}catch(Le){Vt.e(Le)}finally{Vt.f()}return wt}catch(Le){return null}}).filter(Boolean)),Ke}},{key:"applyPlugins",value:function(Fe){var Qe=Fe.key,qe=Fe.type,et=Fe.initialValue,dt=Fe.args,Ke=Fe.async,Ge=this.getHooks(Qe)||[];switch(dt&&we(v(dt)==="object","applyPlugins failed, args must be plain object."),qe){case Pe.modify:return Ke?Ge.reduce(function(){var wt=d((0,x.Z)().mark(function Vt(gt,it){var Le;return(0,x.Z)().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(we(typeof it=="function"||v(it)==="object"||Ie(it),"applyPlugins failed, all hooks for key ".concat(Qe," must be function, plain object or Promise.")),!Ie(gt)){at.next=5;break}return at.next=4,gt;case 4:gt=at.sent;case 5:if(typeof it!="function"){at.next=16;break}if(Le=it(gt,dt),!Ie(Le)){at.next=13;break}return at.next=10,Le;case 10:return at.abrupt("return",at.sent);case 13:return at.abrupt("return",Le);case 14:at.next=21;break;case 16:if(!Ie(it)){at.next=20;break}return at.next=19,it;case 19:it=at.sent;case 20:return at.abrupt("return",b(b({},gt),it));case 21:case"end":return at.stop()}},Vt)}));return function(Vt,gt){return wt.apply(this,arguments)}}(),Ie(et)?et:Promise.resolve(et)):Ge.reduce(function(wt,Vt){return we(typeof Vt=="function"||v(Vt)==="object","applyPlugins failed, all hooks for key ".concat(Qe," must be function or plain object.")),typeof Vt=="function"?Vt(wt,dt):b(b({},wt),Vt)},et);case Pe.event:return Ge.forEach(function(wt){we(typeof wt=="function","applyPlugins failed, all hooks for key ".concat(Qe," must be function.")),wt(dt)});case Pe.compose:return function(){return pe({fns:Ge.concat(et),args:dt})()}}}}]),ke}()},48852:function(oe,N,o){oe=o.nmd(oe),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(x,g,A){"use strict";function y(U){var L=new Date().toLocaleString("en-us",U);return L.length==1?"0"+L:L}var M=x("./lib/dom"),w=x("./lib/oop"),m=x("./lib/event_emitter").EventEmitter,b=x("./lib/lang"),v=x("./range").Range,h=x("./range_list").RangeList,d=x("./keyboard/hash_handler").HashHandler,_=x("./tokenizer").Tokenizer,p=x("./clipboard"),S={CURRENT_WORD:function(L){return L.session.getTextRange(L.session.getWordRange())},SELECTION:function(L,V,$){var G=L.session.getTextRange();return $?G.replace(/\n\r?([ \t]*\S)/g,`
|
||
`+$+"$1"):G},CURRENT_LINE:function(L){return L.session.getLine(L.getCursorPosition().row)},PREV_LINE:function(L){return L.session.getLine(L.getCursorPosition().row-1)},LINE_INDEX:function(L){return L.getCursorPosition().row},LINE_NUMBER:function(L){return L.getCursorPosition().row+1},SOFT_TABS:function(L){return L.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(L){return L.session.getTabSize()},CLIPBOARD:function(L){return p.getText&&p.getText()},FILENAME:function(L){return/[^/\\]*$/.exec(this.FILEPATH(L))[0]},FILENAME_BASE:function(L){return/[^/\\]*$/.exec(this.FILEPATH(L))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(L){return this.FILEPATH(L).replace(/[^/\\]*$/,"")},FILEPATH:function(L){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(L){var V=L.session.$mode||{};return V.blockComment&&V.blockComment.start||""},BLOCK_COMMENT_END:function(L){var V=L.session.$mode||{};return V.blockComment&&V.blockComment.end||""},LINE_COMMENT:function(L){var V=L.session.$mode||{};return V.lineCommentStart||""},CURRENT_YEAR:y.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:y.bind(null,{year:"2-digit"}),CURRENT_MONTH:y.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:y.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:y.bind(null,{month:"short"}),CURRENT_DATE:y.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:y.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:y.bind(null,{weekday:"short"}),CURRENT_HOUR:y.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:y.bind(null,{minute:"2-digit"}),CURRENT_SECOND:y.bind(null,{second:"2-digit"})};S.SELECTED_TEXT=S.SELECTION;var k=function(){function U(){this.snippetMap={},this.snippetNameMap={},this.variables=S}return U.prototype.getTokenizer=function(){return U.$tokenizer||this.createTokenizer()},U.prototype.createTokenizer=function(){function L(G){return G=G.substr(1),/^\d+$/.test(G)?[{tabstopId:parseInt(G,10)}]:[{text:G}]}function V(G){return"(?:[^\\\\"+G+"]|\\\\.)"}var $={regex:"/("+V("/")+"+)/",onMatch:function(z,K,re){var ne=re[0];return ne.fmtString=!0,ne.guard=z.slice(1,-1),ne.flag="",""},next:"formatString"};return U.$tokenizer=new _({start:[{regex:/\\./,onMatch:function(z,K,re){var ne=z[1];return(ne=="}"&&re.length||"`$\\".indexOf(ne)!=-1)&&(z=ne),[z]}},{regex:/}/,onMatch:function(z,K,re){return[re.length?re.shift():z]}},{regex:/\$(?:\d+|\w+)/,onMatch:L},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(z,K,re){var ne=L(z.substr(1));return re.unshift(ne[0]),ne},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+V("\\|")+"*\\|",onMatch:function(z,K,re){var ne=z.slice(1,-1).replace(/\\[,|\\]|,/g,function(Q){return Q.length==2?Q[1]:"\0"}).split("\0").map(function(Q){return{value:Q}});return re[0].choices=ne,[ne[0]]},next:"start"},$,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(z,K,re){return re.length&&re[0].expectElse?(re[0].expectElse=!1,re[0].ifEnd={elseEnd:re[0]},[re[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(z,K,re){var ne=z[1];return ne=="}"&&re.length||"`$\\".indexOf(ne)!=-1?z=ne:ne=="n"?z=`
|
||
`:ne=="t"?z=" ":"ulULE".indexOf(ne)!=-1&&(z={changeCase:ne,local:ne>"a"}),[z]}},{regex:"/\\w*}",onMatch:function(z,K,re){var ne=re.shift();return ne&&(ne.flag=z.slice(1,-1)),this.next=ne&&ne.tabstopId?"start":"",[ne||z]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(z,K,re){return[{text:z.slice(1)}]}},{regex:/\${\w+/,onMatch:function(z,K,re){var ne={text:z.slice(2)};return re.unshift(ne),[ne]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(z,K,re){var ne=re.shift();return this.next=ne&&ne.tabstopId?"start":"",[ne||z]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(z,K,re){var ne=re[0];return ne.formatFunction=z.slice(2,-1),[re.shift()]},next:"formatString"},$,{regex:/:[\?\-+]?/,onMatch:function(z,K,re){z[1]=="+"&&(re[0].ifEnd=re[0]),z[1]=="?"&&(re[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),U.$tokenizer},U.prototype.tokenizeTmSnippet=function(L,V){return this.getTokenizer().getLineTokens(L,V).tokens.map(function($){return $.value||$})},U.prototype.getVariableValue=function(L,V,$){if(/^\d+$/.test(V))return(this.variables.__||{})[V]||"";if(/^[A-Z]\d+$/.test(V))return(this.variables[V[0]+"__"]||{})[V.substr(1)]||"";if(V=V.replace(/^TM_/,""),!this.variables.hasOwnProperty(V))return"";var G=this.variables[V];return typeof G=="function"&&(G=this.variables[V](L,V,$)),G==null?"":G},U.prototype.tmStrFormat=function(L,V,$){if(!V.fmt)return L;var G=V.flag||"",z=V.guard;z=new RegExp(z,G.replace(/[^gim]/g,""));var K=typeof V.fmt=="string"?this.tokenizeTmSnippet(V.fmt,"formatString"):V.fmt,re=this,ne=L.replace(z,function(){var Q=re.variables.__;re.variables.__=[].slice.call(arguments);for(var ue=re.resolveVariables(K,$),he="E",Ee=0;Ee<ue.length;Ee++){var ce=ue[Ee];if(typeof ce=="object")if(ue[Ee]="",ce.changeCase&&ce.local){var ve=ue[Ee+1];ve&&typeof ve=="string"&&(ce.changeCase=="u"?ue[Ee]=ve[0].toUpperCase():ue[Ee]=ve[0].toLowerCase(),ue[Ee+1]=ve.substr(1))}else ce.changeCase&&(he=ce.changeCase);else he=="U"?ue[Ee]=ce.toUpperCase():he=="L"&&(ue[Ee]=ce.toLowerCase())}return re.variables.__=Q,ue.join("")});return ne},U.prototype.tmFormatFunction=function(L,V,$){return V.formatFunction=="upcase"?L.toUpperCase():V.formatFunction=="downcase"?L.toLowerCase():L},U.prototype.resolveVariables=function(L,V){function $(he){var Ee=L.indexOf(he,re+1);Ee!=-1&&(re=Ee)}for(var G=[],z="",K=!0,re=0;re<L.length;re++){var ne=L[re];if(typeof ne=="string"){G.push(ne),ne==`
|
||
`?(K=!0,z=""):K&&(z=/^\t*/.exec(ne)[0],K=/\S/.test(ne));continue}if(!!ne){if(K=!1,ne.fmtString){var Q=L.indexOf(ne,re+1);Q==-1&&(Q=L.length),ne.fmt=L.slice(re+1,Q),re=Q}if(ne.text){var ue=this.getVariableValue(V,ne.text,z)+"";ne.fmtString&&(ue=this.tmStrFormat(ue,ne,V)),ne.formatFunction&&(ue=this.tmFormatFunction(ue,ne,V)),ue&&!ne.ifEnd?(G.push(ue),$(ne)):!ue&&ne.ifEnd&&$(ne.ifEnd)}else ne.elseEnd?$(ne.elseEnd):(ne.tabstopId!=null||ne.changeCase!=null)&&G.push(ne)}}return G},U.prototype.getDisplayTextForSnippet=function(L,V){var $=O.call(this,L,V);return $.text},U.prototype.insertSnippetForSelection=function(L,V,$){$===void 0&&($={});var G=O.call(this,L,V,$),z=L.getSelectionRange(),K=L.session.replace(z,G.text),re=new F(L),ne=L.inVirtualSelectionMode&&L.selection.index;re.addTabstops(G.tabstops,z.start,K,ne)},U.prototype.insertSnippet=function(L,V,$){$===void 0&&($={});var G=this;if(L.inVirtualSelectionMode)return G.insertSnippetForSelection(L,V,$);L.forEachSelection(function(){G.insertSnippetForSelection(L,V,$)},null,{keepOrder:!0}),L.tabstopManager&&L.tabstopManager.tabNext()},U.prototype.$getScope=function(L){var V=L.session.$mode.$id||"";if(V=V.split("/").pop(),V==="html"||V==="php"){V==="php"&&!L.session.$mode.inlinePhp&&(V="html");var $=L.getCursorPosition(),G=L.session.getState($.row);typeof G=="object"&&(G=G[0]),G.substring&&(G.substring(0,3)=="js-"?V="javascript":G.substring(0,4)=="css-"?V="css":G.substring(0,4)=="php-"&&(V="php"))}return V},U.prototype.getActiveScopes=function(L){var V=this.$getScope(L),$=[V],G=this.snippetMap;return G[V]&&G[V].includeScopes&&$.push.apply($,G[V].includeScopes),$.push("_"),$},U.prototype.expandWithTab=function(L,V){var $=this,G=L.forEachSelection(function(){return $.expandSnippetForSelection(L,V)},null,{keepOrder:!0});return G&&L.tabstopManager&&L.tabstopManager.tabNext(),G},U.prototype.expandSnippetForSelection=function(L,V){var $=L.getCursorPosition(),G=L.session.getLine($.row),z=G.substring(0,$.column),K=G.substr($.column),re=this.snippetMap,ne;return this.getActiveScopes(L).some(function(Q){var ue=re[Q];return ue&&(ne=this.findMatchingSnippet(ue,z,K)),!!ne},this),ne?(V&&V.dryRun||(L.session.doc.removeInLine($.row,$.column-ne.replaceBefore.length,$.column+ne.replaceAfter.length),this.variables.M__=ne.matchBefore,this.variables.T__=ne.matchAfter,this.insertSnippetForSelection(L,ne.content),this.variables.M__=this.variables.T__=null),!0):!1},U.prototype.findMatchingSnippet=function(L,V,$){for(var G=L.length;G--;){var z=L[G];if(!(z.startRe&&!z.startRe.test(V))&&!(z.endRe&&!z.endRe.test($))&&!(!z.startRe&&!z.endRe))return z.matchBefore=z.startRe?z.startRe.exec(V):[""],z.matchAfter=z.endRe?z.endRe.exec($):[""],z.replaceBefore=z.triggerRe?z.triggerRe.exec(V)[0]:"",z.replaceAfter=z.endTriggerRe?z.endTriggerRe.exec($)[0]:"",z}},U.prototype.register=function(L,V){function $(Q){return Q&&!/^\^?\(.*\)\$?$|^\\b$/.test(Q)&&(Q="(?:"+Q+")"),Q||""}function G(Q,ue,he){return Q=$(Q),ue=$(ue),he?(Q=ue+Q,Q&&Q[Q.length-1]!="$"&&(Q+="$")):(Q+=ue,Q&&Q[0]!="^"&&(Q="^"+Q)),new RegExp(Q)}function z(Q){Q.scope||(Q.scope=V||"_"),V=Q.scope,K[V]||(K[V]=[],re[V]={});var ue=re[V];if(Q.name){var he=ue[Q.name];he&&ne.unregister(he),ue[Q.name]=Q}K[V].push(Q),Q.prefix&&(Q.tabTrigger=Q.prefix),!Q.content&&Q.body&&(Q.content=Array.isArray(Q.body)?Q.body.join(`
|
||
`):Q.body),Q.tabTrigger&&!Q.trigger&&(!Q.guard&&/^\w/.test(Q.tabTrigger)&&(Q.guard="\\b"),Q.trigger=b.escapeRegExp(Q.tabTrigger)),!(!Q.trigger&&!Q.guard&&!Q.endTrigger&&!Q.endGuard)&&(Q.startRe=G(Q.trigger,Q.guard,!0),Q.triggerRe=new RegExp(Q.trigger),Q.endRe=G(Q.endTrigger,Q.endGuard,!0),Q.endTriggerRe=new RegExp(Q.endTrigger))}var K=this.snippetMap,re=this.snippetNameMap,ne=this;L||(L=[]),Array.isArray(L)?L.forEach(z):Object.keys(L).forEach(function(Q){z(L[Q])}),this._signal("registerSnippets",{scope:V})},U.prototype.unregister=function(L,V){function $(K){var re=z[K.scope||V];if(re&&re[K.name]){delete re[K.name];var ne=G[K.scope||V],Q=ne&&ne.indexOf(K);Q>=0&&ne.splice(Q,1)}}var G=this.snippetMap,z=this.snippetNameMap;L.content?$(L):Array.isArray(L)&&L.forEach($)},U.prototype.parseSnippetFile=function(L){L=L.replace(/\r/g,"");for(var V=[],$={},G=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,z;z=G.exec(L);){if(z[1])try{$=JSON.parse(z[1]),V.push($)}catch(Q){}if(z[4])$.content=z[4].replace(/^\t/gm,""),V.push($),$={};else{var K=z[2],re=z[3];if(K=="regex"){var ne=/\/((?:[^\/\\]|\\.)*)|$/g;$.guard=ne.exec(re)[1],$.trigger=ne.exec(re)[1],$.endTrigger=ne.exec(re)[1],$.endGuard=ne.exec(re)[1]}else K=="snippet"?($.tabTrigger=re.match(/^\S*/)[0],$.name||($.name=re)):K&&($[K]=re)}}return V},U.prototype.getSnippetByName=function(L,V){var $=this.snippetNameMap,G;return this.getActiveScopes(V).some(function(z){var K=$[z];return K&&(G=K[L]),!!G},this),G},U}();w.implement(k.prototype,m);var O=function(L,V,$){function G(Je){for(var ke=[],De=0;De<Je.length;De++){var Fe=Je[De];if(typeof Fe=="object"){if(he[Fe.tabstopId])continue;var Qe=Je.lastIndexOf(Fe,De-1);Fe=ke[Qe]||{tabstopId:Fe.tabstopId}}ke[De]=Fe}return ke}$===void 0&&($={});var z=L.getCursorPosition(),K=L.session.getLine(z.row),re=L.session.getTabString(),ne=K.match(/^\s*/)[0];z.column<ne.length&&(ne=ne.slice(0,z.column)),V=V.replace(/\r/g,"");var Q=this.tokenizeTmSnippet(V);Q=this.resolveVariables(Q,L),Q=Q.map(function(Je){return Je==`
|
||
`&&!$.excludeExtraIndent?Je+ne:typeof Je=="string"?Je.replace(/\t/g,re):Je});var ue=[];Q.forEach(function(Je,ke){if(typeof Je=="object"){var De=Je.tabstopId,Fe=ue[De];if(Fe||(Fe=ue[De]=[],Fe.index=De,Fe.value="",Fe.parents={}),Fe.indexOf(Je)===-1){Je.choices&&!Fe.choices&&(Fe.choices=Je.choices),Fe.push(Je);var Qe=Q.indexOf(Je,ke+1);if(Qe!==-1){var qe=Q.slice(ke+1,Qe),et=qe.some(function(dt){return typeof dt=="object"});et&&!Fe.value?Fe.value=qe:qe.length&&(!Fe.value||typeof Fe.value!="string")&&(Fe.value=qe.join(""))}}}}),ue.forEach(function(Je){Je.length=0});for(var he={},Ee=0;Ee<Q.length;Ee++){var ce=Q[Ee];if(typeof ce=="object"){var ve=ce.tabstopId,fe=ue[ve],we=Q.indexOf(ce,Ee+1);if(he[ve]){he[ve]===ce&&(delete he[ve],Object.keys(he).forEach(function(Je){fe.parents[Je]=!0}));continue}he[ve]=ce;var me=fe.value;typeof me!="string"?me=G(me):ce.fmt&&(me=this.tmStrFormat(me,ce,L)),Q.splice.apply(Q,[Ee+1,Math.max(0,we-Ee)].concat(me,ce)),fe.indexOf(ce)===-1&&fe.push(ce)}}var Pe=0,pe=0,Ie="";return Q.forEach(function(Je){if(typeof Je=="string"){var ke=Je.split(`
|
||
`);ke.length>1?(pe=ke[ke.length-1].length,Pe+=ke.length-1):pe+=Je.length,Ie+=Je}else Je&&(Je.start?Je.end={row:Pe,column:pe}:Je.start={row:Pe,column:pe})}),{text:Ie,tabstops:ue,tokens:Q}},F=function(){function U(L){if(this.index=0,this.ranges=[],this.tabstops=[],L.tabstopManager)return L.tabstopManager;L.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=b.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(L)}return U.prototype.attach=function(L){this.$openTabstops=null,this.selectedTabstop=null,this.editor=L,this.session=L.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},U.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},U.prototype.onChange=function(L){for(var V=L.action[0]=="r",$=this.selectedTabstop||{},G=$.parents||{},z=this.tabstops.slice(),K=0;K<z.length;K++){var re=z[K],ne=re==$||G[re.index];if(re.rangeList.$bias=ne?0:1,L.action=="remove"&&re!==$){var Q=re.parents&&re.parents[$.index],ue=re.rangeList.pointIndex(L.start,Q);ue=ue<0?-ue-1:ue+1;var he=re.rangeList.pointIndex(L.end,Q);he=he<0?-he-1:he-1;for(var Ee=re.rangeList.ranges.slice(ue,he),ce=0;ce<Ee.length;ce++)this.removeRange(Ee[ce])}re.rangeList.$onChange(L)}var ve=this.session;!this.$inChange&&V&&ve.getLength()==1&&!ve.getValue()&&this.detach()},U.prototype.updateLinkedFields=function(){var L=this.selectedTabstop;if(!(!L||!L.hasLinkedRanges||!L.firstNonLinked)){this.$inChange=!0;for(var V=this.session,$=V.getTextRange(L.firstNonLinked),G=0;G<L.length;G++){var z=L[G];if(!!z.linked){var K=z.original,re=g.snippetManager.tmStrFormat($,K,this.editor);V.replace(z,re)}}this.$inChange=!1}},U.prototype.onAfterExec=function(L){L.command&&!L.command.readOnly&&this.updateLinkedFields()},U.prototype.onChangeSelection=function(){if(!!this.editor){for(var L=this.editor.selection.lead,V=this.editor.selection.anchor,$=this.editor.selection.isEmpty(),G=0;G<this.ranges.length;G++)if(!this.ranges[G].linked){var z=this.ranges[G].contains(L.row,L.column),K=$||this.ranges[G].contains(V.row,V.column);if(z&&K)return}this.detach()}},U.prototype.onChangeSession=function(){this.detach()},U.prototype.tabNext=function(L){var V=this.tabstops.length,$=this.index+(L||1);$=Math.min(Math.max($,1),V),$==V&&($=0),this.selectTabstop($),$===0&&this.detach()},U.prototype.selectTabstop=function(L){this.$openTabstops=null;var V=this.tabstops[this.index];if(V&&this.addTabstopMarkers(V),this.index=L,V=this.tabstops[this.index],!(!V||!V.length)){this.selectedTabstop=V;var $=V.firstNonLinked||V;if(V.choices&&($.cursor=$.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange($);else{var G=this.editor.multiSelect;G.toSingleRange($);for(var z=0;z<V.length;z++)V.hasLinkedRanges&&V[z].linked||G.addRange(V[z].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},U.prototype.addTabstops=function(L,V,$){var G=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!L[0]){var z=v.fromPoints($,$);Z(z.start,V),Z(z.end,V),L[0]=[z],L[0].index=0}var K=this.index,re=[K+1,0],ne=this.ranges;L.forEach(function(Q,ue){for(var he=this.$openTabstops[ue]||Q,Ee=0;Ee<Q.length;Ee++){var ce=Q[Ee],ve=v.fromPoints(ce.start,ce.end||ce.start);D(ve.start,V),D(ve.end,V),ve.original=ce,ve.tabstop=he,ne.push(ve),he!=Q?he.unshift(ve):he[Ee]=ve,ce.fmtString||he.firstNonLinked&&G?(ve.linked=!0,he.hasLinkedRanges=!0):he.firstNonLinked||(he.firstNonLinked=ve)}he.firstNonLinked||(he.hasLinkedRanges=!1),he===Q&&(re.push(he),this.$openTabstops[ue]=he),this.addTabstopMarkers(he),he.rangeList=he.rangeList||new h,he.rangeList.$bias=0,he.rangeList.addList(he)},this),re.length>2&&(this.tabstops.length&&re.push(re.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,re))},U.prototype.addTabstopMarkers=function(L){var V=this.session;L.forEach(function($){$.markerId||($.markerId=V.addMarker($,"ace_snippet-marker","text"))})},U.prototype.removeTabstopMarkers=function(L){var V=this.session;L.forEach(function($){V.removeMarker($.markerId),$.markerId=null})},U.prototype.removeRange=function(L){var V=L.tabstop.indexOf(L);V!=-1&&L.tabstop.splice(V,1),V=this.ranges.indexOf(L),V!=-1&&this.ranges.splice(V,1),V=L.tabstop.rangeList.ranges.indexOf(L),V!=-1&&L.tabstop.splice(V,1),this.session.removeMarker(L.markerId),L.tabstop.length||(V=this.tabstops.indexOf(L.tabstop),V!=-1&&this.tabstops.splice(V,1),this.tabstops.length||this.detach())},U}();F.prototype.keyboardHandler=new d,F.prototype.keyboardHandler.bindKeys({Tab:function(L){g.snippetManager&&g.snippetManager.expandWithTab(L)||(L.tabstopManager.tabNext(1),L.renderer.scrollCursorIntoView())},"Shift-Tab":function(L){L.tabstopManager.tabNext(-1),L.renderer.scrollCursorIntoView()},Esc:function(L){L.tabstopManager.detach()}});var D=function(L,V){L.row==0&&(L.column+=V.column),L.row+=V.row},Z=function(L,V){L.row==V.row&&(L.column-=V.column),L.row-=V.row};M.importCssString(`
|
||
.ace_snippet-marker {
|
||
-moz-box-sizing: border-box;
|
||
box-sizing: border-box;
|
||
background: rgba(194, 193, 208, 0.09);
|
||
border: 1px dotted rgba(211, 208, 235, 0.62);
|
||
position: absolute;
|
||
}`,"snippets.css",!1),g.snippetManager=new k;var W=x("./editor").Editor;(function(){this.insertSnippet=function(U,L){return g.snippetManager.insertSnippet(this,U,L)},this.expandSnippet=function(U){return g.snippetManager.expandWithTab(this,U)}}).call(W.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config"],function(x,g,A){"use strict";var y=x("../virtual_renderer").VirtualRenderer,M=x("../editor").Editor,w=x("../range").Range,m=x("../lib/event"),b=x("../lib/lang"),v=x("../lib/dom"),h=x("../config").nls,d=function(k){return"suggest-aria-id:".concat(k)},_=function(k){var O=new y(k);O.$maxLines=4;var F=new M(O);return F.setHighlightActiveLine(!1),F.setShowPrintMargin(!1),F.renderer.setShowGutter(!1),F.renderer.setHighlightGutterLine(!1),F.$mouseHandler.$focusTimeout=0,F.$highlightTagPending=!0,F},p=function(){function S(k){var O=v.createElement("div"),F=new _(O);k&&k.appendChild(O),O.style.display="none",F.renderer.content.style.cursor="default",F.renderer.setStyle("ace_autocomplete"),F.renderer.$textLayer.element.setAttribute("role","listbox"),F.renderer.$textLayer.element.setAttribute("aria-label",h("Autocomplete suggestions")),F.renderer.textarea.setAttribute("aria-hidden","true"),F.setOption("displayIndentGuides",!1),F.setOption("dragDelay",150);var D=function(){};F.focus=D,F.$isFocused=!0,F.renderer.$cursorLayer.restartTimer=D,F.renderer.$cursorLayer.element.style.opacity=0,F.renderer.$maxLines=8,F.renderer.$keepTextAreaAtCursor=!1,F.setHighlightActiveLine(!1),F.session.highlight(""),F.session.$searchHighlight.clazz="ace_highlight-marker",F.on("mousedown",function(G){var z=G.getDocumentPosition();F.selection.moveToPosition(z),U.start.row=U.end.row=z.row,G.stop()});var Z,W=new w(-1,0,-1,Infinity),U=new w(-1,0,-1,Infinity);U.id=F.session.addMarker(U,"ace_active-line","fullLine"),F.setSelectOnHover=function(G){G?W.id&&(F.session.removeMarker(W.id),W.id=null):W.id=F.session.addMarker(W,"ace_line-hover","fullLine")},F.setSelectOnHover(!1),F.on("mousemove",function(G){if(!Z){Z=G;return}if(!(Z.x==G.x&&Z.y==G.y)){Z=G,Z.scrollTop=F.renderer.scrollTop;var z=Z.getDocumentPosition().row;W.start.row!=z&&(W.id||F.setRow(z),V(z))}}),F.renderer.on("beforeRender",function(){if(Z&&W.start.row!=-1){Z.$pos=null;var G=Z.getDocumentPosition().row;W.id||F.setRow(G),V(G,!0)}}),F.renderer.on("afterRender",function(){var G=F.getRow(),z=F.renderer.$textLayer,K=z.element.childNodes[G-z.config.firstRow],re=document.activeElement;if(K!==z.selectedNode&&z.selectedNode&&(v.removeCssClass(z.selectedNode,"ace_selected"),re.removeAttribute("aria-activedescendant"),z.selectedNode.removeAttribute("id")),z.selectedNode=K,K){v.addCssClass(K,"ace_selected");var ne=d(G);K.id=ne,z.element.setAttribute("aria-activedescendant",ne),re.setAttribute("aria-activedescendant",ne),K.setAttribute("role","option"),K.setAttribute("aria-label",F.getData(G).value),K.setAttribute("aria-setsize",F.data.length),K.setAttribute("aria-posinset",G+1),K.setAttribute("aria-describedby","doc-tooltip")}});var L=function(){V(-1)},V=function(z,K){z!==W.start.row&&(W.start.row=W.end.row=z,K||F.session._emit("changeBackMarker"),F._emit("changeHoverMarker"))};F.getHoveredRow=function(){return W.start.row},m.addListener(F.container,"mouseout",L),F.on("hide",L),F.on("changeSelection",L),F.session.doc.getLength=function(){return F.data.length},F.session.doc.getLine=function(G){var z=F.data[G];return typeof z=="string"?z:z&&z.value||""};var $=F.session.bgTokenizer;return $.$tokenizeRow=function(G){function z(we,me){we&&re.push({type:(K.className||"")+(me||""),value:we})}var K=F.data[G],re=[];if(!K)return re;typeof K=="string"&&(K={value:K});for(var ne=K.caption||K.value||K.name,Q=ne.toLowerCase(),ue=(F.filterText||"").toLowerCase(),he=0,Ee=0,ce=0;ce<=ue.length;ce++)if(ce!=Ee&&(K.matchMask&1<<ce||ce==ue.length)){var ve=ue.slice(Ee,ce);Ee=ce;var fe=Q.indexOf(ve,he);if(fe==-1)continue;z(ne.slice(he,fe),""),he=fe+ve.length,z(ne.slice(fe,he),"completion-highlight")}return z(ne.slice(he,ne.length),""),re.push({type:"completion-spacer",value:" "}),K.meta&&re.push({type:"completion-meta",value:K.meta}),K.message&&re.push({type:"completion-message",value:K.message}),re},$.$updateOnChange=D,$.start=D,F.session.$computeWidth=function(){return this.screenWidth=0},F.isOpen=!1,F.isTopdown=!1,F.autoSelect=!0,F.filterText="",F.data=[],F.setData=function(G,z){F.filterText=z||"",F.setValue(b.stringRepeat(`
|
||
`,G.length),-1),F.data=G||[],F.setRow(0)},F.getData=function(G){return F.data[G]},F.getRow=function(){return U.start.row},F.setRow=function(G){G=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,G)),U.start.row!=G&&(F.selection.clearSelection(),U.start.row=U.end.row=G||0,F.session._emit("changeBackMarker"),F.moveCursorTo(G||0,0),F.isOpen&&F._signal("select"))},F.on("changeSelection",function(){F.isOpen&&F.setRow(F.selection.lead.row),F.renderer.scrollCursorIntoView()}),F.hide=function(){this.container.style.display="none",F.anchorPos=null,F.anchor=null,F.isOpen&&(F.isOpen=!1,this._signal("hide"))},F.tryShow=function(G,z,K,re){if(!re&&F.isOpen&&F.anchorPos&&F.anchor&&F.anchorPos.top===G.top&&F.anchorPos.left===G.left&&F.anchor===K)return!0;var ne=this.container,Q=window.innerHeight,ue=window.innerWidth,he=this.renderer,Ee=he.$maxLines*z*1.4,ce={top:0,bottom:0,left:0},ve=Q-G.top-3*this.$borderSize-z,fe=G.top-3*this.$borderSize;K||(fe<=ve||ve>=Ee?K="bottom":K="top"),K==="top"?(ce.bottom=G.top-this.$borderSize,ce.top=ce.bottom-Ee):K==="bottom"&&(ce.top=G.top+z+this.$borderSize,ce.bottom=ce.top+Ee);var we=ce.top>=0&&ce.bottom<=Q;if(!re&&!we)return!1;we?he.$maxPixelHeight=null:K==="top"?he.$maxPixelHeight=fe:he.$maxPixelHeight=ve,K==="top"?(ne.style.top="",ne.style.bottom=Q-ce.bottom+"px",F.isTopdown=!1):(ne.style.top=ce.top+"px",ne.style.bottom="",F.isTopdown=!0),ne.style.display="";var me=G.left;return me+ne.offsetWidth>ue&&(me=ue-ne.offsetWidth),ne.style.left=me+"px",ne.style.right="",F.isOpen||(F.isOpen=!0,this._signal("show"),Z=null),F.anchorPos=G,F.anchor=K,!0},F.show=function(G,z,K){this.tryShow(G,z,K?"bottom":void 0,!0)},F.goTo=function(G){var z=this.getRow(),K=this.session.getLength()-1;switch(G){case"up":z=z<=0?K:z-1;break;case"down":z=z>=K?-1:z+1;break;case"start":z=0;break;case"end":z=K}this.setRow(z)},F.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},F.$imageSize=0,F.$borderSize=1,F}return S}();v.importCssString(`
|
||
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
||
background-color: #CAD6FA;
|
||
z-index: 1;
|
||
}
|
||
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
||
background-color: #3a674e;
|
||
}
|
||
.ace_editor.ace_autocomplete .ace_line-hover {
|
||
border: 1px solid #abbffe;
|
||
margin-top: -1px;
|
||
background: rgba(233,233,253,0.4);
|
||
position: absolute;
|
||
z-index: 2;
|
||
}
|
||
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
|
||
border: 1px solid rgba(109, 150, 13, 0.8);
|
||
background: rgba(58, 103, 78, 0.62);
|
||
}
|
||
.ace_completion-meta {
|
||
opacity: 0.5;
|
||
margin-left: 0.9em;
|
||
}
|
||
.ace_completion-message {
|
||
color: blue;
|
||
}
|
||
.ace_editor.ace_autocomplete .ace_completion-highlight{
|
||
color: #2d69c7;
|
||
}
|
||
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
|
||
color: #93ca12;
|
||
}
|
||
.ace_editor.ace_autocomplete {
|
||
width: 300px;
|
||
z-index: 200000;
|
||
border: 1px lightgray solid;
|
||
position: fixed;
|
||
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
||
line-height: 1.4;
|
||
background: #fefefe;
|
||
color: #111;
|
||
}
|
||
.ace_dark.ace_editor.ace_autocomplete {
|
||
border: 1px #484747 solid;
|
||
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
|
||
line-height: 1.4;
|
||
background: #25282c;
|
||
color: #c1c1c1;
|
||
}
|
||
.ace_autocomplete .ace_text-layer {
|
||
width: calc(100% - 8px);
|
||
}
|
||
.ace_autocomplete .ace_line {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.ace_autocomplete .ace_line > * {
|
||
min-width: 0;
|
||
flex: 0 0 auto;
|
||
}
|
||
.ace_autocomplete .ace_line .ace_ {
|
||
flex: 0 1 auto;
|
||
overflow: hidden;
|
||
white-space: nowrap;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.ace_autocomplete .ace_completion-spacer {
|
||
flex: 1;
|
||
}
|
||
`,"autocompletion.css",!1),g.AcePopup=p,g.$singleLineEditor=_,g.getAriaId=d}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets"],function(x,g,A){"use strict";var y=x("../snippets").snippetManager,M=function(){function w(){this.editor=null}return w.prototype.show=function(m,b,v){if(v=v||"",m&&this.editor&&this.editor!==m&&(this.hide(),this.editor=null),!m||!b)return!1;var h=b.snippet?y.getDisplayTextForSnippet(m,b.snippet):b.value;return!h||!h.startsWith(v)?!1:(this.editor=m,h=h.slice(v.length),h===""?m.removeGhostText():m.setGhostText(h),!0)},w.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},w.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},w.prototype.destroy=function(){this.hide(),this.editor=null},w}();g.AceInline=M}),ace.define("ace/autocomplete/util",["require","exports","module"],function(x,g,A){"use strict";g.parForEach=function(M,w,m){var b=0,v=M.length;v===0&&m();for(var h=0;h<v;h++)w(M[h],function(d,_){b++,b===v&&m(d,_)})};var y=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;g.retrievePrecedingIdentifier=function(M,w,m){m=m||y;for(var b=[],v=w-1;v>=0&&m.test(M[v]);v--)b.push(M[v]);return b.reverse().join("")},g.retrieveFollowingIdentifier=function(M,w,m){m=m||y;for(var b=[],v=w;v<M.length&&m.test(M[v]);v++)b.push(M[v]);return b},g.getCompletionPrefix=function(M){var w=M.getCursorPosition(),m=M.session.getLine(w.row),b;return M.completers.forEach(function(v){v.identifierRegexps&&v.identifierRegexps.forEach(function(h){!b&&h&&(b=this.retrievePrecedingIdentifier(m,w.column,h))}.bind(this))}.bind(this)),b||this.retrievePrecedingIdentifier(m,w.column)},g.triggerAutocomplete=function(M){var w=M.getCursorPosition(),m=M.session.getLine(w.row),b=w.column===0?0:w.column-1,v=m[b];return M.completers.some(function(h){if(h.triggerCharacters&&Array.isArray(h.triggerCharacters))return h.triggerCharacters.includes(v)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config"],function(x,g,A){"use strict";var y=x("./keyboard/hash_handler").HashHandler,M=x("./autocomplete/popup").AcePopup,w=x("./autocomplete/inline").AceInline,m=x("./autocomplete/popup").getAriaId,b=x("./autocomplete/util"),v=x("./lib/lang"),h=x("./lib/dom"),d=x("./snippets").snippetManager,_=x("./config"),p=function(D,Z){Z.completer&&Z.completer.destroy()},S=function(){function F(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new y,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=v.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=v.delayedCall(this.updateDocTooltip.bind(this),50)}return F.prototype.$init=function(){return this.popup=new M(this.parentNode||document.body||document.documentElement),this.popup.on("click",function(D){this.insertMatch(),D.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupChange.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},F.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new w,this.inlineRenderer},F.prototype.getPopup=function(){return this.popup||this.$init()},F.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip()},F.prototype.$onPopupChange=function(D){if(this.inlineRenderer&&this.inlineEnabled){var Z=D?null:this.popup.getData(this.popup.getRow()),W=b.getCompletionPrefix(this.editor);this.inlineRenderer.show(this.editor,Z,W)||this.inlineRenderer.hide(),this.$updatePopupPosition()}this.tooltipTimer.call(null,null)},F.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var D=this.editor.container.parentNode,Z=[];D;)Z.push(D),D.addEventListener("scroll",this.onLayoutChange,{passive:!0}),D=D.parentNode;this.$elements=Z}},F.prototype.unObserveLayoutChanges=function(){var D=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(Z){Z.removeEventListener("scroll",D.onLayoutChange,{passive:!0})}),this.$elements=null},F.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},F.prototype.$updatePopupPosition=function(){var D=this.editor,Z=D.renderer,W=Z.layerConfig.lineHeight,U=Z.$cursorLayer.getPixelPosition(this.base,!0);U.left-=this.popup.getTextLeftOffset();var L=D.container.getBoundingClientRect();U.top+=L.top-Z.layerConfig.offset,U.left+=L.left-D.renderer.scrollLeft,U.left+=Z.gutterWidth;var V={top:U.top,left:U.left};Z.$ghostText&&Z.$ghostTextWidget&&this.base.row===Z.$ghostText.position.row&&(V.top+=Z.$ghostTextWidget.el.offsetHeight),!this.popup.tryShow(V,W,"bottom")&&(this.popup.tryShow(U,W,"top")||this.popup.show(U,W))},F.prototype.openPopup=function(D,Z,W){this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:m(this.popup.getRow()),inline:this.inlineEnabled}),D.keyBinding.addKeyboardHandler(this.keyboardHandler),this.popup.setRow(this.autoSelect?0:-1),W?W&&!Z&&this.detach():(this.popup.setTheme(D.getTheme()),this.popup.setFontSize(D.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},F.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},F.prototype.changeListener=function(D){var Z=this.editor.selection.lead;(Z.row!=this.base.row||Z.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},F.prototype.blurListener=function(D){var Z=document.activeElement,W=this.editor.textInput.getElement(),U=D.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(D.relatedTarget),L=this.popup&&this.popup.container;Z!=W&&Z.parentNode!=L&&!U&&Z!=this.tooltipNode&&D.relatedTarget!=W&&this.detach()},F.prototype.mousedownListener=function(D){this.detach()},F.prototype.mousewheelListener=function(D){this.detach()},F.prototype.goTo=function(D){this.popup.goTo(D)},F.prototype.insertMatch=function(D,Z){if(D||(D=this.popup.getData(this.popup.getRow())),!D)return!1;if(D.value==="")return this.detach();var W=this.completions,U=this.getCompletionProvider().insertMatch(this.editor,D,W.filterText,Z);return this.completions==W&&this.detach(),U},F.prototype.showPopup=function(D,Z){this.editor&&this.detach(),this.activated=!0,this.editor=D,D.completer!=this&&(D.completer&&D.completer.detach(),D.completer=this),D.on("changeSelection",this.changeListener),D.on("blur",this.blurListener),D.on("mousedown",this.mousedownListener),D.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,Z)},F.prototype.getCompletionProvider=function(D){return this.completionProvider||(this.completionProvider=new k(D)),this.completionProvider},F.prototype.gatherCompletions=function(D,Z){return this.getCompletionProvider().gatherCompletions(D,Z)},F.prototype.updateCompletions=function(D,Z){if(D&&this.base&&this.completions){var U=this.editor.getCursorPosition(),L=this.editor.session.getTextRange({start:this.base,end:U});if(L==this.completions.filterText)return;if(this.completions.setFilter(L),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==L&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,L,D);return}if(Z&&Z.matches){var U=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(U.row,U.column),this.base.$insertRight=!0,this.completions=new O(Z.matches),this.openPopup(this.editor,"",D)}var W=this.editor.getSession(),U=this.editor.getCursorPosition(),L=b.getCompletionPrefix(this.editor);this.base=W.doc.createAnchor(U.row,U.column-L.length),this.base.$insertRight=!0;var V={exactMatch:this.exactMatch};this.getCompletionProvider({prefix:L,pos:U}).provideCompletions(this.editor,V,function($,G,z){var K=G.filtered,re=b.getCompletionPrefix(this.editor);if(z){if(!K.length){var ne=!this.autoShown&&this.emptyMessage;if(typeof ne=="function"&&(ne=this.emptyMessage(re)),ne){var Q=[{caption:this.emptyMessage(re),value:""}];this.completions=new O(Q),this.openPopup(this.editor,re,D);return}return this.detach()}if(K.length==1&&K[0].value==re&&!K[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&K.length==1)return this.insertMatch(K[0])}this.completions=G,this.openPopup(this.editor,re,D)}.bind(this))},F.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},F.prototype.updateDocTooltip=function(){var D=this.popup,Z=D.data,W=Z&&(Z[D.getHoveredRow()]||Z[D.getRow()]),U=null;if(!W||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var L=this.editor.completers.length,V=0;V<L;V++){var $=this.editor.completers[V];if($.getDocTooltip&&W.completerId===$.id){U=$.getDocTooltip(W);break}}if(!U&&typeof W!="string"&&(U=W),typeof U=="string"&&(U={docText:U}),!U||!U.docHTML&&!U.docText)return this.hideDocTooltip();this.showDocTooltip(U)},F.prototype.showDocTooltip=function(D){this.tooltipNode||(this.tooltipNode=h.createElement("div"),this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"));var Z=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(Z.isDark?"ace_dark ":"")+(Z.cssClass||"");var W=this.tooltipNode;D.docHTML?W.innerHTML=D.docHTML:D.docText&&(W.textContent=D.docText),W.parentNode||this.popup.container.appendChild(this.tooltipNode);var U=this.popup,L=U.container.getBoundingClientRect();W.style.top=U.container.style.top,W.style.bottom=U.container.style.bottom,W.style.display="block",window.innerWidth-L.right<320?L.left<320?U.isTopdown?(W.style.top=L.bottom+"px",W.style.left=L.left+"px",W.style.right="",W.style.bottom=""):(W.style.top=U.container.offsetTop-W.offsetHeight+"px",W.style.left=L.left+"px",W.style.right="",W.style.bottom=""):(W.style.right=window.innerWidth-L.left+"px",W.style.left=""):(W.style.left=L.right+1+"px",W.style.right="")},F.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var D=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==D&&this.editor.focus(),this.tooltipNode=null,D.parentNode&&D.parentNode.removeChild(D)}},F.prototype.onTooltipClick=function(D){for(var Z=D.target;Z&&Z!=this.tooltipNode;){if(Z.nodeName=="A"&&Z.href){Z.rel="noreferrer",Z.target="_blank";break}Z=Z.parentNode}},F.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var D=this.popup.container;D&&D.parentNode&&D.parentNode.removeChild(D)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",p),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},F}();S.prototype.commands={Up:function(D){D.completer.goTo("up")},Down:function(D){D.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(D){D.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(D){D.completer.goTo("end")},Esc:function(D){D.completer.detach()},Return:function(D){return D.completer.insertMatch()},"Shift-Return":function(D){D.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(D){var Z=D.completer.insertMatch();if(!!Z||!!D.tabstopManager)return Z;D.completer.goTo("down")},PageUp:function(D){D.completer.popup.gotoPageUp()},PageDown:function(D){D.completer.popup.gotoPageDown()}},S.for=function(F){return F.completer instanceof S||(F.completer&&(F.completer.destroy(),F.completer=null),_.get("sharedPopups")?(S.$sharedInstance||(S.$sharedInstance=new S),F.completer=S.$sharedInstance):(F.completer=new S,F.once("destroy",p))),F.completer},S.startCommand={name:"startAutocomplete",exec:function(D,Z){var W=S.for(D);W.autoInsert=!1,W.autoSelect=!0,W.autoShown=!1,W.showPopup(D,Z),W.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var k=function(){function F(D){this.initialPosition=D,this.active=!0}return F.prototype.insertByIndex=function(D,Z,W){return!this.completions||!this.completions.filtered?!1:this.insertMatch(D,this.completions.filtered[Z],W)},F.prototype.insertMatch=function(D,Z,W){if(!Z)return!1;if(D.startOperation({command:{name:"insertMatch"}}),Z.completer&&Z.completer.insertMatch)Z.completer.insertMatch(D,Z);else{if(!this.completions)return!1;var U=this.completions.filterText.length,L=0;if(Z.range&&Z.range.start.row===Z.range.end.row&&(U-=this.initialPosition.prefix.length,U+=this.initialPosition.pos.column-Z.range.start.column,L+=Z.range.end.column-this.initialPosition.pos.column),U||L){var V;D.selection.getAllRanges?V=D.selection.getAllRanges():V=[D.getSelectionRange()];for(var $=0,G;G=V[$];$++)G.start.column-=U,G.end.column+=L,D.session.remove(G)}Z.snippet?d.insertSnippet(D,Z.snippet):this.$insertString(D,Z),Z.command&&Z.command==="startAutocomplete"&&D.execCommand(Z.command)}return D.endOperation(),!0},F.prototype.$insertString=function(D,Z){var W=Z.value||Z;D.execCommand("insertstring",W)},F.prototype.gatherCompletions=function(D,Z){var W=D.getSession(),U=D.getCursorPosition(),L=b.getCompletionPrefix(D),V=[];this.completers=D.completers;var $=D.completers.length;return D.completers.forEach(function(G,z){G.getCompletions(D,W,U,L,function(K,re){!K&&re&&(V=V.concat(re)),Z(null,{prefix:b.getCompletionPrefix(D),matches:V,finished:--$==0})})}),!0},F.prototype.provideCompletions=function(D,Z,W){var U=function(G){var z=G.prefix,K=G.matches;this.completions=new O(K),Z.exactMatch&&(this.completions.exactMatch=!0),Z.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(z),(G.finished||this.completions.filtered.length)&&W(null,this.completions,G.finished)}.bind(this),L=!0,V=null;if(this.gatherCompletions(D,function(G,z){if(!!this.active){G&&(W(G,[],!0),this.detach());var K=z.prefix;if(K.indexOf(z.prefix)===0){if(L){V=z;return}U(z)}}}.bind(this)),L=!1,V){var $=V;V=null,U($)}},F.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(D){typeof D.cancel=="function"&&D.cancel()})},F}(),O=function(){function F(D,Z){this.all=D,this.filtered=D,this.filterText=Z||"",this.exactMatch=!1,this.ignoreCaption=!1}return F.prototype.setFilter=function(D){if(D.length>this.filterText&&D.lastIndexOf(this.filterText,0)===0)var Z=this.filtered;else var Z=this.all;this.filterText=D,Z=this.filterCompletions(Z,this.filterText),Z=Z.sort(function(U,L){return L.exactMatch-U.exactMatch||L.$score-U.$score||(U.caption||U.value).localeCompare(L.caption||L.value)});var W=null;Z=Z.filter(function(U){var L=U.snippet||U.caption||U.value;return L===W?!1:(W=L,!0)}),this.filtered=Z},F.prototype.filterCompletions=function(D,Z){var W=[],U=Z.toUpperCase(),L=Z.toLowerCase();e:for(var V=0,$;$=D[V];V++){var G=!this.ignoreCaption&&$.caption||$.value||$.snippet;if(!!G){var z=-1,K=0,re=0,ne,Q;if(this.exactMatch){if(Z!==G.substr(0,Z.length))continue e}else{var ue=G.toLowerCase().indexOf(L);if(ue>-1)re=ue;else for(var he=0;he<Z.length;he++){var Ee=G.indexOf(L[he],z+1),ce=G.indexOf(U[he],z+1);if(ne=Ee>=0&&(ce<0||Ee<ce)?Ee:ce,ne<0)continue e;Q=ne-z-1,Q>0&&(z===-1&&(re+=10),re+=Q,K|=1<<he),z=ne}}$.matchMask=K,$.exactMatch=re?0:1,$.$score=($.score||0)-re,W.push($)}}return W},F}();g.Autocomplete=S,g.CompletionProvider=k,g.FilteredList=O}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(x,g,A){function y(b,v){var h=b.getTextRange(w.fromPoints({row:0,column:0},v));return h.split(m).length-1}function M(b,v){var h=y(b,v),d=b.getValue().split(m),_=Object.create(null),p=d[h];return d.forEach(function(S,k){if(!(!S||S===p)){var O=Math.abs(h-k),F=d.length-O;_[S]?_[S]=Math.max(F,_[S]):_[S]=F}}),_}var w=x("../range").Range,m=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;g.getCompletions=function(b,v,h,d,_){var p=M(v,h),S=Object.keys(p);_(null,S.map(function(k){return{caption:k,value:k,score:p[k],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(x,g,A){"use strict";var y=x("../snippets").snippetManager,M=x("../autocomplete").Autocomplete,w=x("../config"),m=x("../lib/lang"),b=x("../autocomplete/util"),v=x("../autocomplete/text_completer"),h={getCompletions:function($,G,z,K,re){if(G.$mode.completer)return G.$mode.completer.getCompletions($,G,z,K,re);var ne=$.session.getState(z.row),Q=G.$mode.getCompletions(ne,G,z,K);Q=Q.map(function(ue){return ue.completerId=h.id,ue}),re(null,Q)},id:"keywordCompleter"},d=function($){var G={};return $.replace(/\${(\d+)(:(.*?))?}/g,function(z,K,re,ne){return G[K]=ne||""}).replace(/\$(\d+?)/g,function(z,K){return G[K]})},_={getCompletions:function($,G,z,K,re){var ne=[],Q=G.getTokenAt(z.row,z.column);Q&&Q.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?ne.push("html-tag"):ne=y.getActiveScopes($);var ue=y.snippetMap,he=[];ne.forEach(function(Ee){for(var ce=ue[Ee]||[],ve=ce.length;ve--;){var fe=ce[ve],we=fe.name||fe.tabTrigger;!we||he.push({caption:we,snippet:fe.content,meta:fe.tabTrigger&&!fe.name?fe.tabTrigger+"\u21E5 ":"snippet",completerId:_.id})}},this),re(null,he)},getDocTooltip:function($){$.snippet&&!$.docHTML&&($.docHTML=["<b>",m.escapeHTML($.caption),"</b>","<hr></hr>",m.escapeHTML(d($.snippet))].join(""))},id:"snippetCompleter"},p=[_,v,h];g.setCompleters=function(V){p.length=0,V&&p.push.apply(p,V)},g.addCompleter=function(V){p.push(V)},g.textCompleter=v,g.keyWordCompleter=h,g.snippetCompleter=_;var S={name:"expandSnippet",exec:function($){return y.expandWithTab($)},bindKey:"Tab"},k=function($,G){O(G.session.$mode)},O=function V($){typeof $=="string"&&($=w.$modes[$]),!!$&&(y.files||(y.files={}),F($.$id,$.snippetFileId),$.modes&&$.modes.forEach(V))},F=function($,G){!G||!$||y.files[$]||(y.files[$]={},w.loadModule(G,function(z){!z||(y.files[$]=z,!z.snippets&&z.snippetText&&(z.snippets=y.parseSnippetFile(z.snippetText)),y.register(z.snippets||[],z.scope),z.includeScopes&&(y.snippetMap[z.scope].includeScopes=z.includeScopes,z.includeScopes.forEach(function(K){O("ace/mode/"+K)})))}))},D=function($){var G=$.editor,z=G.completer&&G.completer.activated;if($.command.name==="backspace")z&&!b.getCompletionPrefix(G)&&G.completer.detach();else if($.command.name==="insertstring"&&!z){Z=$;var K=$.editor.$liveAutocompletionDelay;K?W.delay(K):U($)}},Z,W=m.delayedCall(function(){U(Z)},0),U=function($){var G=$.editor,z=b.getCompletionPrefix(G),K=b.triggerAutocomplete(G);if((z||K)&&z.length>=G.$liveAutocompletionThreshold){var re=M.for(G);re.autoShown=!0,re.showPopup(G)}},L=x("../editor").Editor;x("../config").defineOptions(L.prototype,"editor",{enableBasicAutocompletion:{set:function($){$?(this.completers||(this.completers=Array.isArray($)?$:p),this.commands.addCommand(M.startCommand)):this.commands.removeCommand(M.startCommand)},value:!1},enableLiveAutocompletion:{set:function($){$?(this.completers||(this.completers=Array.isArray($)?$:p),this.commands.on("afterExec",D)):this.commands.off("afterExec",D)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function($){$?(this.commands.addCommand(S),this.on("changeMode",k),k(null,this)):(this.commands.removeCommand(S),this.off("changeMode",k))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(x){oe&&(oe.exports=x)})}()},8009:function(oe,N,o){oe=o.nmd(oe),ace.define("ace/ext/searchbox-css",["require","exports","module"],function(x,g,A){A.exports=`
|
||
|
||
/* ------------------------------------------------------------------------------------------
|
||
* Editor Search Form
|
||
* --------------------------------------------------------------------------------------- */
|
||
.ace_search {
|
||
background-color: #ddd;
|
||
color: #666;
|
||
border: 1px solid #cbcbcb;
|
||
border-top: 0 none;
|
||
overflow: hidden;
|
||
margin: 0;
|
||
padding: 4px 6px 0 4px;
|
||
position: absolute;
|
||
top: 0;
|
||
z-index: 99;
|
||
white-space: normal;
|
||
}
|
||
.ace_search.left {
|
||
border-left: 0 none;
|
||
border-radius: 0px 0px 5px 0px;
|
||
left: 0;
|
||
}
|
||
.ace_search.right {
|
||
border-radius: 0px 0px 0px 5px;
|
||
border-right: 0 none;
|
||
right: 0;
|
||
}
|
||
|
||
.ace_search_form, .ace_replace_form {
|
||
margin: 0 20px 4px 0;
|
||
overflow: hidden;
|
||
line-height: 1.9;
|
||
}
|
||
.ace_replace_form {
|
||
margin-right: 0;
|
||
}
|
||
.ace_search_form.ace_nomatch {
|
||
outline: 1px solid red;
|
||
}
|
||
|
||
.ace_search_field {
|
||
border-radius: 3px 0 0 3px;
|
||
background-color: white;
|
||
color: black;
|
||
border: 1px solid #cbcbcb;
|
||
border-right: 0 none;
|
||
outline: 0;
|
||
padding: 0;
|
||
font-size: inherit;
|
||
margin: 0;
|
||
line-height: inherit;
|
||
padding: 0 6px;
|
||
min-width: 17em;
|
||
vertical-align: top;
|
||
min-height: 1.8em;
|
||
box-sizing: content-box;
|
||
}
|
||
.ace_searchbtn {
|
||
border: 1px solid #cbcbcb;
|
||
line-height: inherit;
|
||
display: inline-block;
|
||
padding: 0 6px;
|
||
background: #fff;
|
||
border-right: 0 none;
|
||
border-left: 1px solid #dcdcdc;
|
||
cursor: pointer;
|
||
margin: 0;
|
||
position: relative;
|
||
color: #666;
|
||
}
|
||
.ace_searchbtn:last-child {
|
||
border-radius: 0 3px 3px 0;
|
||
border-right: 1px solid #cbcbcb;
|
||
}
|
||
.ace_searchbtn:disabled {
|
||
background: none;
|
||
cursor: default;
|
||
}
|
||
.ace_searchbtn:hover {
|
||
background-color: #eef1f6;
|
||
}
|
||
.ace_searchbtn.prev, .ace_searchbtn.next {
|
||
padding: 0px 0.7em
|
||
}
|
||
.ace_searchbtn.prev:after, .ace_searchbtn.next:after {
|
||
content: "";
|
||
border: solid 2px #888;
|
||
width: 0.5em;
|
||
height: 0.5em;
|
||
border-width: 2px 0 0 2px;
|
||
display:inline-block;
|
||
transform: rotate(-45deg);
|
||
}
|
||
.ace_searchbtn.next:after {
|
||
border-width: 0 2px 2px 0 ;
|
||
}
|
||
.ace_searchbtn_close {
|
||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
|
||
border-radius: 50%;
|
||
border: 0 none;
|
||
color: #656565;
|
||
cursor: pointer;
|
||
font: 16px/16px Arial;
|
||
padding: 0;
|
||
height: 14px;
|
||
width: 14px;
|
||
top: 9px;
|
||
right: 7px;
|
||
position: absolute;
|
||
}
|
||
.ace_searchbtn_close:hover {
|
||
background-color: #656565;
|
||
background-position: 50% 100%;
|
||
color: white;
|
||
}
|
||
|
||
.ace_button {
|
||
margin-left: 2px;
|
||
cursor: pointer;
|
||
-webkit-user-select: none;
|
||
-moz-user-select: none;
|
||
-o-user-select: none;
|
||
-ms-user-select: none;
|
||
user-select: none;
|
||
overflow: hidden;
|
||
opacity: 0.7;
|
||
border: 1px solid rgba(100,100,100,0.23);
|
||
padding: 1px;
|
||
box-sizing: border-box!important;
|
||
color: black;
|
||
}
|
||
|
||
.ace_button:hover {
|
||
background-color: #eee;
|
||
opacity:1;
|
||
}
|
||
.ace_button:active {
|
||
background-color: #ddd;
|
||
}
|
||
|
||
.ace_button.checked {
|
||
border-color: #3399ff;
|
||
opacity:1;
|
||
}
|
||
|
||
.ace_search_options{
|
||
margin-bottom: 3px;
|
||
text-align: right;
|
||
-webkit-user-select: none;
|
||
-moz-user-select: none;
|
||
-o-user-select: none;
|
||
-ms-user-select: none;
|
||
user-select: none;
|
||
clear: both;
|
||
}
|
||
|
||
.ace_search_counter {
|
||
float: left;
|
||
font-family: arial;
|
||
padding: 0 8px;
|
||
}`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(x,g,A){"use strict";var y=x("../lib/dom"),M=x("../lib/lang"),w=x("../lib/event"),m=x("./searchbox-css"),b=x("../keyboard/hash_handler").HashHandler,v=x("../lib/keys"),h=x("../config").nls,d=999;y.importCssString(m,"ace_searchbox",!1);var _=function(){function k(O,F,D){var Z=y.createElement("div");y.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:h("Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"\u200B"],["span",{action:"findNext",class:"ace_searchbtn next"},"\u200B"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},h("All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:h("Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},h("Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},h("All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:h("Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:h("RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:h("CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:h("Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:h("Search In Selection")},"S"]]],Z),this.element=Z.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(O),y.importCssString(m,"ace_searchbox",O.container)}return k.prototype.setEditor=function(O){O.searchBox=this,O.renderer.scroller.appendChild(this.element),this.editor=O},k.prototype.setSession=function(O){this.searchRange=null,this.$syncOptions(!0)},k.prototype.$initElements=function(O){this.searchBox=O.querySelector(".ace_search_form"),this.replaceBox=O.querySelector(".ace_replace_form"),this.searchOption=O.querySelector("[action=searchInSelection]"),this.replaceOption=O.querySelector("[action=toggleReplace]"),this.regExpOption=O.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=O.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=O.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=O.querySelector(".ace_search_counter")},k.prototype.$init=function(){var O=this.element;this.$initElements(O);var F=this;w.addListener(O,"mousedown",function(D){setTimeout(function(){F.activeInput.focus()},0),w.stopPropagation(D)}),w.addListener(O,"click",function(D){var Z=D.target||D.srcElement,W=Z.getAttribute("action");W&&F[W]?F[W]():F.$searchBarKb.commands[W]&&F.$searchBarKb.commands[W].exec(F),w.stopPropagation(D)}),w.addCommandKeyListener(O,function(D,Z,W){var U=v.keyCodeToString(W),L=F.$searchBarKb.findKeyCommand(Z,U);L&&L.exec&&(L.exec(F),w.stopEvent(D))}),this.$onChange=M.delayedCall(function(){F.find(!1,!1)}),w.addListener(this.searchInput,"input",function(){F.$onChange.schedule(20)}),w.addListener(this.searchInput,"focus",function(){F.activeInput=F.searchInput,F.searchInput.value&&F.highlight()}),w.addListener(this.replaceInput,"focus",function(){F.activeInput=F.replaceInput,F.searchInput.value&&F.highlight()})},k.prototype.setSearchRange=function(O){this.searchRange=O,O?this.searchRangeMarker=this.editor.session.addMarker(O,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},k.prototype.$syncOptions=function(O){y.setCssClass(this.replaceOption,"checked",this.searchRange),y.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",y.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),y.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),y.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var F=this.editor.getReadOnly();this.replaceOption.style.display=F?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!F?"":"none",this.find(!1,!1,O)},k.prototype.highlight=function(O){this.editor.session.highlight(O||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},k.prototype.find=function(O,F,D){var Z=this.editor.find(this.searchInput.value,{skipCurrent:O,backwards:F,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:D,range:this.searchRange}),W=!Z&&this.searchInput.value;y.setCssClass(this.searchBox,"ace_nomatch",W),this.editor._emit("findSearchBox",{match:!W}),this.highlight(),this.updateCounter()},k.prototype.updateCounter=function(){var O=this.editor,F=O.$search.$options.re,D=0,Z=0;if(F){var W=this.searchRange?O.session.getTextRange(this.searchRange):O.getValue(),U=O.session.doc.positionToIndex(O.selection.anchor);this.searchRange&&(U-=O.session.doc.positionToIndex(this.searchRange.start));for(var L=F.lastIndex=0,V;(V=F.exec(W))&&(D++,L=V.index,L<=U&&Z++,!(D>d||!V[0]&&(F.lastIndex=L+=1,L>=W.length))););}this.searchCounter.textContent=h("$0 of $1",[Z,D>d?d+"+":D])},k.prototype.findNext=function(){this.find(!0,!1)},k.prototype.findPrev=function(){this.find(!0,!0)},k.prototype.findAll=function(){var O=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),F=!O&&this.searchInput.value;y.setCssClass(this.searchBox,"ace_nomatch",F),this.editor._emit("findSearchBox",{match:!F}),this.highlight(),this.hide()},k.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},k.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},k.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},k.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},k.prototype.show=function(O,F){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=F,O&&(this.searchInput.value=O),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},k.prototype.isFocused=function(){var O=document.activeElement;return O==this.searchInput||O==this.replaceInput},k}(),p=new b;p.bindKeys({"Ctrl-f|Command-f":function(O){var F=O.isReplace=!O.isReplace;O.replaceBox.style.display=F?"":"none",O.replaceOption.checked=!1,O.$syncOptions(),O.searchInput.focus()},"Ctrl-H|Command-Option-F":function(O){O.editor.getReadOnly()||(O.replaceOption.checked=!0,O.$syncOptions(),O.replaceInput.focus())},"Ctrl-G|Command-G":function(O){O.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(O){O.findPrev()},esc:function(O){setTimeout(function(){O.hide()})},Return:function(O){O.activeInput==O.replaceInput&&O.replace(),O.findNext()},"Shift-Return":function(O){O.activeInput==O.replaceInput&&O.replace(),O.findPrev()},"Alt-Return":function(O){O.activeInput==O.replaceInput&&O.replaceAll(),O.findAll()},Tab:function(O){(O.activeInput==O.replaceInput?O.searchInput:O.replaceInput).focus()}}),p.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(O){O.regExpOption.checked=!O.regExpOption.checked,O.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(O){O.caseSensitiveOption.checked=!O.caseSensitiveOption.checked,O.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(O){O.wholeWordOption.checked=!O.wholeWordOption.checked,O.$syncOptions()}},{name:"toggleReplace",exec:function(O){O.replaceOption.checked=!O.replaceOption.checked,O.$syncOptions()}},{name:"searchInSelection",exec:function(O){O.searchOption.checked=!O.searchRange,O.setSearchRange(O.searchOption.checked&&O.editor.getSelectionRange()),O.$syncOptions()}}]);var S=new b([{bindKey:"Esc",name:"closeSearchBar",exec:function(O){O.searchBox.hide()}}]);_.prototype.$searchBarKb=p,_.prototype.$closeSearchBarKb=S,g.SearchBox=_,g.Search=function(k,O){var F=k.searchBox||new _(k);F.show(k.session.getTextRange(),O)}}),function(){ace.require(["ace/ext/searchbox"],function(x){oe&&(oe.exports=x)})}()},33765:function(oe,N,o){oe=o.nmd(oe),ace.define("ace/mode/sql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(x,g,A){"use strict";var y=x("../lib/oop"),M=x("./text_highlight_rules").TextHighlightRules,w=function(){var b="select|insert|update|delete|from|where|and|or|group|by|order|limit|offset|having|as|case|when|then|else|end|type|left|right|join|on|outer|desc|asc|union|create|table|primary|key|if|foreign|not|references|default|null|inner|cross|natural|database|drop|grant|distinct|is|in",v="true|false",h="avg|count|first|last|max|min|sum|ucase|lcase|mid|len|round|rank|now|format|coalesce|ifnull|isnull|nvl",d="int|numeric|decimal|date|varchar|char|bigint|float|double|bit|binary|text|set|timestamp|money|real|number|integer",_=this.createKeywordMapper({"support.function":h,keyword:b,"constant.language":v,"storage.type":d},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:_,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};y.inherits(w,M),g.SqlHighlightRules=w}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(x,g,A){"use strict";var y=x("../../lib/oop"),M=x("../../range").Range,w=x("./fold_mode").FoldMode,m=g.FoldMode=function(b){b&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+b.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+b.end)))};y.inherits(m,w),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(b,v,h){var d=b.getLine(h);if(this.singleLineBlockCommentRe.test(d)&&!this.startRegionRe.test(d)&&!this.tripleStarBlockCommentRe.test(d))return"";var _=this._getFoldWidgetBase(b,v,h);return!_&&this.startRegionRe.test(d)?"start":_},this.getFoldWidgetRange=function(b,v,h,d){var _=b.getLine(h);if(this.startRegionRe.test(_))return this.getCommentRegionBlock(b,_,h);var p=_.match(this.foldingStartMarker);if(p){var S=p.index;if(p[1])return this.openingBracketBlock(b,p[1],h,S);var k=b.getCommentFoldRange(h,S+p[0].length,1);return k&&!k.isMultiLine()&&(d?k=this.getSectionRange(b,h):v!="all"&&(k=null)),k}if(v!=="markbegin"){var p=_.match(this.foldingStopMarker);if(p){var S=p.index+p[0].length;return p[1]?this.closingBracketBlock(b,p[1],h,S):b.getCommentFoldRange(h,S,-1)}}},this.getSectionRange=function(b,v){var h=b.getLine(v),d=h.search(/\S/),_=v,p=h.length;v+=1;for(var S=v,k=b.getLength();++v<k;){h=b.getLine(v);var O=h.search(/\S/);if(O!==-1){if(d>O)break;var F=this.getFoldWidgetRange(b,"all",v);if(F){if(F.start.row<=_)break;if(F.isMultiLine())v=F.end.row;else if(d==O)break}S=v}}return new M(_,p,S,b.getLine(S).length)},this.getCommentRegionBlock=function(b,v,h){for(var d=v.search(/\s*$/),_=b.getLength(),p=h,S=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,k=1;++h<_;){v=b.getLine(h);var O=S.exec(v);if(!!O&&(O[1]?k--:k++,!k))break}var F=h;if(F>p)return new M(p,d,F,v.length)}}.call(m.prototype)}),ace.define("ace/mode/folding/sql",["require","exports","module","ace/lib/oop","ace/mode/folding/cstyle"],function(x,g,A){"use strict";var y=x("../../lib/oop"),M=x("./cstyle").FoldMode,w=g.FoldMode=function(){};y.inherits(w,M),function(){}.call(w.prototype)}),ace.define("ace/mode/sql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sql_highlight_rules","ace/mode/folding/sql"],function(x,g,A){"use strict";var y=x("../lib/oop"),M=x("./text").Mode,w=x("./sql_highlight_rules").SqlHighlightRules,m=x("./folding/sql").FoldMode,b=function(){this.HighlightRules=w,this.foldingRules=new m,this.$behaviour=this.$defaultBehaviour};y.inherits(b,M),function(){this.lineCommentStart="--",this.blockComment={start:"/*",end:"*/"},this.$id="ace/mode/sql",this.snippetFileId="ace/snippets/sql"}.call(b.prototype),g.Mode=b}),function(){ace.require(["ace/mode/sql"],function(x){oe&&(oe.exports=x)})}()},89577:function(oe,N,o){oe=o.nmd(oe),ace.define("ace/theme/monokai-css",["require","exports","module"],function(x,g,A){A.exports=`.ace-monokai .ace_gutter {
|
||
background: #2F3129;
|
||
color: #8F908A
|
||
}
|
||
|
||
.ace-monokai .ace_print-margin {
|
||
width: 1px;
|
||
background: #555651
|
||
}
|
||
|
||
.ace-monokai {
|
||
background-color: #272822;
|
||
color: #F8F8F2
|
||
}
|
||
|
||
.ace-monokai .ace_cursor {
|
||
color: #F8F8F0
|
||
}
|
||
|
||
.ace-monokai .ace_marker-layer .ace_selection {
|
||
background: #49483E
|
||
}
|
||
|
||
.ace-monokai.ace_multiselect .ace_selection.ace_start {
|
||
box-shadow: 0 0 3px 0px #272822;
|
||
}
|
||
|
||
.ace-monokai .ace_marker-layer .ace_step {
|
||
background: rgb(102, 82, 0)
|
||
}
|
||
|
||
.ace-monokai .ace_marker-layer .ace_bracket {
|
||
margin: -1px 0 0 -1px;
|
||
border: 1px solid #49483E
|
||
}
|
||
|
||
.ace-monokai .ace_marker-layer .ace_active-line {
|
||
background: #202020
|
||
}
|
||
|
||
.ace-monokai .ace_gutter-active-line {
|
||
background-color: #272727
|
||
}
|
||
|
||
.ace-monokai .ace_marker-layer .ace_selected-word {
|
||
border: 1px solid #49483E
|
||
}
|
||
|
||
.ace-monokai .ace_invisible {
|
||
color: #52524d
|
||
}
|
||
|
||
.ace-monokai .ace_entity.ace_name.ace_tag,
|
||
.ace-monokai .ace_keyword,
|
||
.ace-monokai .ace_meta.ace_tag,
|
||
.ace-monokai .ace_storage {
|
||
color: #F92672
|
||
}
|
||
|
||
.ace-monokai .ace_punctuation,
|
||
.ace-monokai .ace_punctuation.ace_tag {
|
||
color: #fff
|
||
}
|
||
|
||
.ace-monokai .ace_constant.ace_character,
|
||
.ace-monokai .ace_constant.ace_language,
|
||
.ace-monokai .ace_constant.ace_numeric,
|
||
.ace-monokai .ace_constant.ace_other {
|
||
color: #AE81FF
|
||
}
|
||
|
||
.ace-monokai .ace_invalid {
|
||
color: #F8F8F0;
|
||
background-color: #F92672
|
||
}
|
||
|
||
.ace-monokai .ace_invalid.ace_deprecated {
|
||
color: #F8F8F0;
|
||
background-color: #AE81FF
|
||
}
|
||
|
||
.ace-monokai .ace_support.ace_constant,
|
||
.ace-monokai .ace_support.ace_function {
|
||
color: #66D9EF
|
||
}
|
||
|
||
.ace-monokai .ace_fold {
|
||
background-color: #A6E22E;
|
||
border-color: #F8F8F2
|
||
}
|
||
|
||
.ace-monokai .ace_storage.ace_type,
|
||
.ace-monokai .ace_support.ace_class,
|
||
.ace-monokai .ace_support.ace_type {
|
||
font-style: italic;
|
||
color: #66D9EF
|
||
}
|
||
|
||
.ace-monokai .ace_entity.ace_name.ace_function,
|
||
.ace-monokai .ace_entity.ace_other,
|
||
.ace-monokai .ace_entity.ace_other.ace_attribute-name,
|
||
.ace-monokai .ace_variable {
|
||
color: #A6E22E
|
||
}
|
||
|
||
.ace-monokai .ace_variable.ace_parameter {
|
||
font-style: italic;
|
||
color: #FD971F
|
||
}
|
||
|
||
.ace-monokai .ace_string {
|
||
color: #E6DB74
|
||
}
|
||
|
||
.ace-monokai .ace_comment {
|
||
color: #75715E
|
||
}
|
||
|
||
.ace-monokai .ace_indent-guide {
|
||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y
|
||
}
|
||
|
||
.ace-monokai .ace_indent-guide-active {
|
||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
|
||
}
|
||
`}),ace.define("ace/theme/monokai",["require","exports","module","ace/theme/monokai-css","ace/lib/dom"],function(x,g,A){g.isDark=!0,g.cssClass="ace-monokai",g.cssText=x("./monokai-css");var y=x("../lib/dom");y.importCssString(g.cssText,g.cssClass,!1)}),function(){ace.require(["ace/theme/monokai"],function(x){oe&&(oe.exports=x)})}()},4566:function(oe,N,o){oe=o.nmd(oe),ace.define("ace/theme/sqlserver-css",["require","exports","module"],function(x,g,A){A.exports=`.ace-sqlserver .ace_gutter {
|
||
background: #ebebeb;
|
||
color: #333;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.ace-sqlserver .ace_print-margin {
|
||
width: 1px;
|
||
background: #e8e8e8;
|
||
}
|
||
|
||
.ace-sqlserver {
|
||
background-color: #FFFFFF;
|
||
color: black;
|
||
}
|
||
|
||
.ace-sqlserver .ace_identifier {
|
||
color: black;
|
||
}
|
||
|
||
.ace-sqlserver .ace_keyword {
|
||
color: #0000FF;
|
||
}
|
||
|
||
.ace-sqlserver .ace_numeric {
|
||
color: black;
|
||
}
|
||
|
||
.ace-sqlserver .ace_storage {
|
||
color: #11B7BE;
|
||
}
|
||
|
||
.ace-sqlserver .ace_keyword.ace_operator,
|
||
.ace-sqlserver .ace_lparen,
|
||
.ace-sqlserver .ace_rparen,
|
||
.ace-sqlserver .ace_punctuation {
|
||
color: #808080;
|
||
}
|
||
|
||
.ace-sqlserver .ace_set.ace_statement {
|
||
color: #0000FF;
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.ace-sqlserver .ace_cursor {
|
||
color: black;
|
||
}
|
||
|
||
.ace-sqlserver .ace_invisible {
|
||
color: rgb(191, 191, 191);
|
||
}
|
||
|
||
.ace-sqlserver .ace_constant.ace_buildin {
|
||
color: rgb(88, 72, 246);
|
||
}
|
||
|
||
.ace-sqlserver .ace_constant.ace_language {
|
||
color: #979797;
|
||
}
|
||
|
||
.ace-sqlserver .ace_constant.ace_library {
|
||
color: rgb(6, 150, 14);
|
||
}
|
||
|
||
.ace-sqlserver .ace_invalid {
|
||
background-color: rgb(153, 0, 0);
|
||
color: white;
|
||
}
|
||
|
||
.ace-sqlserver .ace_support.ace_function {
|
||
color: #FF00FF;
|
||
}
|
||
|
||
.ace-sqlserver .ace_support.ace_constant {
|
||
color: rgb(6, 150, 14);
|
||
}
|
||
|
||
.ace-sqlserver .ace_class {
|
||
color: #008080;
|
||
}
|
||
|
||
.ace-sqlserver .ace_support.ace_other {
|
||
color: #6D79DE;
|
||
}
|
||
|
||
.ace-sqlserver .ace_variable.ace_parameter {
|
||
font-style: italic;
|
||
color: #FD971F;
|
||
}
|
||
|
||
.ace-sqlserver .ace_comment {
|
||
color: #008000;
|
||
}
|
||
|
||
.ace-sqlserver .ace_constant.ace_numeric {
|
||
color: black;
|
||
}
|
||
|
||
.ace-sqlserver .ace_variable {
|
||
color: rgb(49, 132, 149);
|
||
}
|
||
|
||
.ace-sqlserver .ace_xml-pe {
|
||
color: rgb(104, 104, 91);
|
||
}
|
||
|
||
.ace-sqlserver .ace_support.ace_storedprocedure {
|
||
color: #800000;
|
||
}
|
||
|
||
.ace-sqlserver .ace_heading {
|
||
color: rgb(12, 7, 255);
|
||
}
|
||
|
||
.ace-sqlserver .ace_list {
|
||
color: rgb(185, 6, 144);
|
||
}
|
||
|
||
.ace-sqlserver .ace_marker-layer .ace_selection {
|
||
background: rgb(181, 213, 255);
|
||
}
|
||
|
||
.ace-sqlserver .ace_marker-layer .ace_step {
|
||
background: rgb(252, 255, 0);
|
||
}
|
||
|
||
.ace-sqlserver .ace_marker-layer .ace_stack {
|
||
background: rgb(164, 229, 101);
|
||
}
|
||
|
||
.ace-sqlserver .ace_marker-layer .ace_bracket {
|
||
margin: -1px 0 0 -1px;
|
||
border: 1px solid rgb(192, 192, 192);
|
||
}
|
||
|
||
.ace-sqlserver .ace_marker-layer .ace_active-line {
|
||
background: rgba(0, 0, 0, 0.07);
|
||
}
|
||
|
||
.ace-sqlserver .ace_gutter-active-line {
|
||
background-color: #dcdcdc;
|
||
}
|
||
|
||
.ace-sqlserver .ace_marker-layer .ace_selected-word {
|
||
background: rgb(250, 250, 255);
|
||
border: 1px solid rgb(200, 200, 250);
|
||
}
|
||
|
||
.ace-sqlserver .ace_meta.ace_tag {
|
||
color: #0000FF;
|
||
}
|
||
|
||
.ace-sqlserver .ace_string.ace_regex {
|
||
color: #FF0000;
|
||
}
|
||
|
||
.ace-sqlserver .ace_string {
|
||
color: #FF0000;
|
||
}
|
||
|
||
.ace-sqlserver .ace_entity.ace_other.ace_attribute-name {
|
||
color: #994409;
|
||
}
|
||
|
||
.ace-sqlserver .ace_indent-guide {
|
||
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
||
}
|
||
|
||
.ace-sqlserver .ace_indent-guide-active {
|
||
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
||
}
|
||
`}),ace.define("ace/theme/sqlserver",["require","exports","module","ace/theme/sqlserver-css","ace/lib/dom"],function(x,g,A){g.isDark=!1,g.cssClass="ace-sqlserver",g.cssText=x("./sqlserver-css");var y=x("../lib/dom");y.importCssString(g.cssText,g.cssClass,!1)}),function(){ace.require(["ace/theme/sqlserver"],function(x){oe&&(oe.exports=x)})}()},4863:function(oe,N,o){oe=o.nmd(oe),function(){var x="ace",g=function(){return this}();if(!g&&typeof window!="undefined"&&(g=window),!x&&typeof requirejs!="undefined")return;var A=function v(h,d,_){if(typeof h!="string"){v.original?v.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(_=d),v.modules[h]||(v.payloads[h]=_,v.modules[h]=null)};A.modules={},A.payloads={};var y=function(h,d,_){if(typeof d=="string"){var p=m(h,d);if(p!=null)return _&&_(),p}else if(Object.prototype.toString.call(d)==="[object Array]"){for(var S=[],k=0,O=d.length;k<O;++k){var F=m(h,d[k]);if(F==null&&M.original)return;S.push(F)}return _&&_.apply(null,S)||!0}},M=function v(h,d){var _=y("",h,d);return _==null&&v.original?v.original.apply(this,arguments):_},w=function v(h,d){if(d.indexOf("!")!==-1){var _=d.split("!");return v(h,_[0])+"!"+v(h,_[1])}if(d.charAt(0)=="."){var p=h.split("/").slice(0,-1).join("/");for(d=p+"/"+d;d.indexOf(".")!==-1&&S!=d;){var S=d;d=d.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return d},m=function(h,d){d=w(h,d);var _=A.modules[d];if(!_){if(_=A.payloads[d],typeof _=="function"){var p={},S={id:d,uri:"",exports:p,packaged:!0},k=function(D,Z){return y(d,D,Z)},O=_(k,p,S);p=O||S.exports,A.modules[d]=p,delete A.payloads[d]}_=A.modules[d]=p||_}return _};function b(v){var h=g;v&&(g[v]||(g[v]={}),h=g[v]),(!h.define||!h.define.packaged)&&(A.original=h.define,h.define=A,h.define.packaged=!0),(!h.require||!h.require.packaged)&&(M.original=h.require,h.require=M,h.require.packaged=!0)}b(x)}(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(x,g,A){function y(M,w,m){Object.defineProperty(M,w,{value:m,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||y(String.prototype,"startsWith",function(M,w){return w=w||0,this.lastIndexOf(M,w)===w}),String.prototype.endsWith||y(String.prototype,"endsWith",function(M,w){var m=this;(w===void 0||w>m.length)&&(w=m.length),w-=M.length;var b=m.indexOf(M,w);return b!==-1&&b===w}),String.prototype.repeat||y(String.prototype,"repeat",function(M){for(var w="",m=this;M>0;)M&1&&(w+=m),(M>>=1)&&(m+=m);return w}),String.prototype.includes||y(String.prototype,"includes",function(M,w){return this.indexOf(M,w)!=-1}),Object.assign||(Object.assign=function(M){if(M==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(M),m=1;m<arguments.length;m++){var b=arguments[m];b!=null&&Object.keys(b).forEach(function(v){w[v]=b[v]})}return w}),Object.values||(Object.values=function(M){return Object.keys(M).map(function(w){return M[w]})}),Array.prototype.find||y(Array.prototype,"find",function(M){for(var w=this.length,m=arguments[1],b=0;b<w;b++){var v=this[b];if(M.call(m,v,b,this))return v}}),Array.prototype.findIndex||y(Array.prototype,"findIndex",function(M){for(var w=this.length,m=arguments[1],b=0;b<w;b++){var v=this[b];if(M.call(m,v,b,this))return b}}),Array.prototype.includes||y(Array.prototype,"includes",function(M,w){return this.indexOf(M,w)!=-1}),Array.prototype.fill||y(Array.prototype,"fill",function(M){for(var w=this,m=w.length>>>0,b=arguments[1],v=b>>0,h=v<0?Math.max(m+v,0):Math.min(v,m),d=arguments[2],_=d===void 0?m:d>>0,p=_<0?Math.max(m+_,0):Math.min(_,m);h<p;)w[h]=M,h++;return w}),Array.of||y(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(x,g,A){"use strict";x("./es6-shim")}),ace.define("ace/lib/lang",["require","exports","module"],function(x,g,A){"use strict";g.last=function(w){return w[w.length-1]},g.stringReverse=function(w){return w.split("").reverse().join("")},g.stringRepeat=function(w,m){for(var b="";m>0;)m&1&&(b+=w),(m>>=1)&&(w+=w);return b};var y=/^\s\s*/,M=/\s\s*$/;g.stringTrimLeft=function(w){return w.replace(y,"")},g.stringTrimRight=function(w){return w.replace(M,"")},g.copyObject=function(w){var m={};for(var b in w)m[b]=w[b];return m},g.copyArray=function(w){for(var m=[],b=0,v=w.length;b<v;b++)w[b]&&typeof w[b]=="object"?m[b]=this.copyObject(w[b]):m[b]=w[b];return m},g.deepCopy=function w(m){if(typeof m!="object"||!m)return m;var b;if(Array.isArray(m)){b=[];for(var v=0;v<m.length;v++)b[v]=w(m[v]);return b}if(Object.prototype.toString.call(m)!=="[object Object]")return m;b={};for(var v in m)b[v]=w(m[v]);return b},g.arrayToMap=function(w){for(var m={},b=0;b<w.length;b++)m[w[b]]=1;return m},g.createMap=function(w){var m=Object.create(null);for(var b in w)m[b]=w[b];return m},g.arrayRemove=function(w,m){for(var b=0;b<=w.length;b++)m===w[b]&&w.splice(b,1)},g.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},g.escapeHTML=function(w){return(""+w).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},g.getMatchOffsets=function(w,m){var b=[];return w.replace(m,function(v){b.push({offset:arguments[arguments.length-2],length:v.length})}),b},g.deferredCall=function(w){var m=null,b=function(){m=null,w()},v=function h(d){return h.cancel(),m=setTimeout(b,d||0),h};return v.schedule=v,v.call=function(){return this.cancel(),w(),v},v.cancel=function(){return clearTimeout(m),m=null,v},v.isPending=function(){return m},v},g.delayedCall=function(w,m){var b=null,v=function(){b=null,w()},h=function(_){b==null&&(b=setTimeout(v,_||m))};return h.delay=function(d){b&&clearTimeout(b),b=setTimeout(v,d||m)},h.schedule=h,h.call=function(){this.cancel(),w()},h.cancel=function(){b&&clearTimeout(b),b=null},h.isPending=function(){return b},h},g.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch(w){return!1}return!0},g.supportsUnicodeFlag=function(){try{new RegExp("^.$","u")}catch(w){return!1}return!0}}),ace.define("ace/lib/useragent",["require","exports","module"],function(x,g,A){"use strict";g.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},g.getOS=function(){return g.isMac?g.OS.MAC:g.isLinux?g.OS.LINUX:g.OS.WINDOWS};var y=typeof navigator=="object"?navigator:{},M=(/mac|win|linux/i.exec(y.platform)||["other"])[0].toLowerCase(),w=y.userAgent||"",m=y.appName||"";g.isWin=M=="win",g.isMac=M=="mac",g.isLinux=M=="linux",g.isIE=m=="Microsoft Internet Explorer"||m.indexOf("MSAppHost")>=0?parseFloat((w.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((w.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),g.isOldIE=g.isIE&&g.isIE<9,g.isGecko=g.isMozilla=w.match(/ Gecko\/\d+/),g.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",g.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,g.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,g.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,g.isAIR=w.indexOf("AdobeAIR")>=0,g.isAndroid=w.indexOf("Android")>=0,g.isChromeOS=w.indexOf(" CrOS ")>=0,g.isIOS=/iPad|iPhone|iPod/.test(w)&&!window.MSStream,g.isIOS&&(g.isMac=!0),g.isMobile=g.isIOS||g.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(x,g,A){"use strict";var y=x("./useragent"),M="http://www.w3.org/1999/xhtml";g.buildDom=function d(_,p,S){if(typeof _=="string"&&_){var k=document.createTextNode(_);return p&&p.appendChild(k),k}if(!Array.isArray(_))return _&&_.appendChild&&p&&p.appendChild(_),_;if(typeof _[0]!="string"||!_[0]){for(var O=[],F=0;F<_.length;F++){var D=d(_[F],p,S);D&&O.push(D)}return O}var Z=document.createElement(_[0]),W=_[1],U=1;W&&typeof W=="object"&&!Array.isArray(W)&&(U=2);for(var F=U;F<_.length;F++)d(_[F],Z,S);return U==2&&Object.keys(W).forEach(function(L){var V=W[L];L==="class"?Z.className=Array.isArray(V)?V.join(" "):V:typeof V=="function"||L=="value"||L[0]=="$"?Z[L]=V:L==="ref"?S&&(S[V]=Z):L==="style"?typeof V=="string"&&(Z.style.cssText=V):V!=null&&Z.setAttribute(L,V)}),p&&p.appendChild(Z),Z},g.getDocumentHead=function(d){return d||(d=document),d.head||d.getElementsByTagName("head")[0]||d.documentElement},g.createElement=function(d,_){return document.createElementNS?document.createElementNS(_||M,d):document.createElement(d)},g.removeChildren=function(d){d.innerHTML=""},g.createTextNode=function(d,_){var p=_?_.ownerDocument:document;return p.createTextNode(d)},g.createFragment=function(d){var _=d?d.ownerDocument:document;return _.createDocumentFragment()},g.hasCssClass=function(d,_){var p=(d.className+"").split(/\s+/g);return p.indexOf(_)!==-1},g.addCssClass=function(d,_){g.hasCssClass(d,_)||(d.className+=" "+_)},g.removeCssClass=function(d,_){for(var p=d.className.split(/\s+/g);;){var S=p.indexOf(_);if(S==-1)break;p.splice(S,1)}d.className=p.join(" ")},g.toggleCssClass=function(d,_){for(var p=d.className.split(/\s+/g),S=!0;;){var k=p.indexOf(_);if(k==-1)break;S=!1,p.splice(k,1)}return S&&p.push(_),d.className=p.join(" "),S},g.setCssClass=function(d,_,p){p?g.addCssClass(d,_):g.removeCssClass(d,_)},g.hasCssString=function(d,_){var p=0,S;if(_=_||document,S=_.querySelectorAll("style")){for(;p<S.length;)if(S[p++].id===d)return!0}},g.removeElementById=function(d,_){_=_||document,_.getElementById(d)&&_.getElementById(d).remove()};var w,m=[];g.useStrictCSP=function(d){w=d,d==!1?b():m||(m=[])};function b(){var d=m;m=null,d&&d.forEach(function(_){v(_[0],_[1])})}function v(d,_,p){if(typeof document!="undefined"){if(m){if(p)b();else if(p===!1)return m.push([d,_])}if(!w){var S=p;!p||!p.getRootNode?S=document:(S=p.getRootNode(),(!S||S==p)&&(S=document));var k=S.ownerDocument||S;if(_&&g.hasCssString(_,S))return null;_&&(d+=`
|
||
/*# sourceURL=ace/css/`+_+" */");var O=g.createElement("style");O.appendChild(k.createTextNode(d)),_&&(O.id=_),S==k&&(S=g.getDocumentHead(k)),S.insertBefore(O,S.firstChild)}}}if(g.importCssString=v,g.importCssStylsheet=function(d,_){g.buildDom(["link",{rel:"stylesheet",href:d}],g.getDocumentHead(_))},g.scrollbarWidth=function(d){var _=g.createElement("ace_inner");_.style.width="100%",_.style.minWidth="0px",_.style.height="200px",_.style.display="block";var p=g.createElement("ace_outer"),S=p.style;S.position="absolute",S.left="-10000px",S.overflow="hidden",S.width="200px",S.minWidth="0px",S.height="150px",S.display="block",p.appendChild(_);var k=d&&d.documentElement||document&&document.documentElement;if(!k)return 0;k.appendChild(p);var O=_.offsetWidth;S.overflow="scroll";var F=_.offsetWidth;return O===F&&(F=p.clientWidth),k.removeChild(p),O-F},g.computedStyle=function(d,_){return window.getComputedStyle(d,"")||{}},g.setStyle=function(d,_,p){d[_]!==p&&(d[_]=p)},g.HAS_CSS_ANIMATION=!1,g.HAS_CSS_TRANSFORMS=!1,g.HI_DPI=y.isWin?typeof window!="undefined"&&window.devicePixelRatio>=1.5:!0,y.isChromeOS&&(g.HI_DPI=!1),typeof document!="undefined"){var h=document.createElement("div");g.HI_DPI&&h.style.transform!==void 0&&(g.HAS_CSS_TRANSFORMS=!0),!y.isEdge&&typeof h.style.animationName!="undefined"&&(g.HAS_CSS_ANIMATION=!0),h=null}g.HAS_CSS_TRANSFORMS?g.translate=function(d,_,p){d.style.transform="translate("+Math.round(_)+"px, "+Math.round(p)+"px)"}:g.translate=function(d,_,p){d.style.top=Math.round(p)+"px",d.style.left=Math.round(_)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(x,g,A){/*
|
||
* based on code from:
|
||
*
|
||
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
||
* Available via the MIT or new BSD license.
|
||
* see: http://github.com/jrburke/requirejs for details
|
||
*/"use strict";var y=x("./dom");g.get=function(M,w){var m=new XMLHttpRequest;m.open("GET",M,!0),m.onreadystatechange=function(){m.readyState===4&&w(m.responseText)},m.send(null)},g.loadScript=function(M,w){var m=y.getDocumentHead(),b=document.createElement("script");b.src=M,m.appendChild(b),b.onload=b.onreadystatechange=function(v,h){(h||!b.readyState||b.readyState=="loaded"||b.readyState=="complete")&&(b=b.onload=b.onreadystatechange=null,h||w())}},g.qualifyURL=function(M){var w=document.createElement("a");return w.href=M,w.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(x,g,A){"use strict";g.inherits=function(y,M){y.super_=M,y.prototype=Object.create(M.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}})},g.mixin=function(y,M){for(var w in M)y[w]=M[w];return y},g.implement=function(y,M){g.mixin(y,M)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(x,g,A){"use strict";var y={},M=function(){this.propagationStopped=!0},w=function(){this.defaultPrevented=!0};y._emit=y._dispatchEvent=function(m,b){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var v=this._eventRegistry[m]||[],h=this._defaultHandlers[m];if(!(!v.length&&!h)){(typeof b!="object"||!b)&&(b={}),b.type||(b.type=m),b.stopPropagation||(b.stopPropagation=M),b.preventDefault||(b.preventDefault=w),v=v.slice();for(var d=0;d<v.length&&(v[d](b,this),!b.propagationStopped);d++);if(h&&!b.defaultPrevented)return h(b,this)}},y._signal=function(m,b){var v=(this._eventRegistry||{})[m];if(!!v){v=v.slice();for(var h=0;h<v.length;h++)v[h](b,this)}},y.once=function(m,b){var v=this;if(this.on(m,function h(){v.off(m,h),b.apply(null,arguments)}),!b)return new Promise(function(h){b=h})},y.setDefaultHandler=function(m,b){var v=this._defaultHandlers;if(v||(v=this._defaultHandlers={_disabled_:{}}),v[m]){var h=v[m],d=v._disabled_[m];d||(v._disabled_[m]=d=[]),d.push(h);var _=d.indexOf(b);_!=-1&&d.splice(_,1)}v[m]=b},y.removeDefaultHandler=function(m,b){var v=this._defaultHandlers;if(!!v){var h=v._disabled_[m];if(v[m]==b)h&&this.setDefaultHandler(m,h.pop());else if(h){var d=h.indexOf(b);d!=-1&&h.splice(d,1)}}},y.on=y.addEventListener=function(m,b,v){this._eventRegistry=this._eventRegistry||{};var h=this._eventRegistry[m];return h||(h=this._eventRegistry[m]=[]),h.indexOf(b)==-1&&h[v?"unshift":"push"](b),b},y.off=y.removeListener=y.removeEventListener=function(m,b){this._eventRegistry=this._eventRegistry||{};var v=this._eventRegistry[m];if(!!v){var h=v.indexOf(b);h!==-1&&v.splice(h,1)}},y.removeAllListeners=function(m){m||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[m]=void 0),this._defaultHandlers&&(this._defaultHandlers[m]=void 0)},g.EventEmitter=y}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(x,g,A){var y=x("./oop"),M=x("./event_emitter").EventEmitter,w={setOptions:function(_){Object.keys(_).forEach(function(p){this.setOption(p,_[p])},this)},getOptions:function(_){var p={};if(_)Array.isArray(_)||(p=_,_=Object.keys(p));else{var S=this.$options;_=Object.keys(S).filter(function(k){return!S[k].hidden})}return _.forEach(function(k){p[k]=this.getOption(k)},this),p},setOption:function(_,p){if(this["$"+_]!==p){var S=this.$options[_];if(!S)return m('misspelled option "'+_+'"');if(S.forwardTo)return this[S.forwardTo]&&this[S.forwardTo].setOption(_,p);S.handlesSet||(this["$"+_]=p),S&&S.set&&S.set.call(this,p)}},getOption:function(_){var p=this.$options[_];return p?p.forwardTo?this[p.forwardTo]&&this[p.forwardTo].getOption(_):p&&p.get?p.get.call(this):this["$"+_]:m('misspelled option "'+_+'"')}};function m(d){typeof console!="undefined"&&console.warn&&console.warn.apply(console,arguments)}function b(d,_){var p=new Error(d);p.data=_,typeof console=="object"&&console.error&&console.error(p),setTimeout(function(){throw p})}var v,h=function(){function d(){this.$defaultOptions={}}return d.prototype.defineOptions=function(_,p,S){return _.$options||(this.$defaultOptions[p]=_.$options={}),Object.keys(S).forEach(function(k){var O=S[k];typeof O=="string"&&(O={forwardTo:O}),O.name||(O.name=k),_.$options[O.name]=O,"initialValue"in O&&(_["$"+O.name]=O.initialValue)}),y.implement(_,w),this},d.prototype.resetOptions=function(_){Object.keys(_.$options).forEach(function(p){var S=_.$options[p];"value"in S&&_.setOption(p,S.value)})},d.prototype.setDefaultValue=function(_,p,S){if(!_){for(_ in this.$defaultOptions)if(this.$defaultOptions[_][p])break;if(!this.$defaultOptions[_][p])return!1}var k=this.$defaultOptions[_]||(this.$defaultOptions[_]={});k[p]&&(k.forwardTo?this.setDefaultValue(k.forwardTo,p,S):k[p].value=S)},d.prototype.setDefaultValues=function(_,p){Object.keys(p).forEach(function(S){this.setDefaultValue(_,S,p[S])},this)},d.prototype.setMessages=function(_){v=_},d.prototype.nls=function(_,p){v&&!v[_]&&m("No message found for '"+_+"' in the provided messages, falling back to default English message.");var S=v&&v[_]||_;return p&&(S=S.replace(/\$(\$|[\d]+)/g,function(k,O){return O=="$"?"$":p[O]})),S},d}();h.prototype.warn=m,h.prototype.reportError=b,y.implement(h.prototype,M),g.AppConfig=h}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(x,g,A){A.exports=`.ace-tm .ace_gutter {
|
||
background: #f0f0f0;
|
||
color: #333;
|
||
}
|
||
|
||
.ace-tm .ace_print-margin {
|
||
width: 1px;
|
||
background: #e8e8e8;
|
||
}
|
||
|
||
.ace-tm .ace_fold {
|
||
background-color: #6B72E6;
|
||
}
|
||
|
||
.ace-tm {
|
||
background-color: #FFFFFF;
|
||
color: black;
|
||
}
|
||
|
||
.ace-tm .ace_cursor {
|
||
color: black;
|
||
}
|
||
|
||
.ace-tm .ace_invisible {
|
||
color: rgb(191, 191, 191);
|
||
}
|
||
|
||
.ace-tm .ace_storage,
|
||
.ace-tm .ace_keyword {
|
||
color: blue;
|
||
}
|
||
|
||
.ace-tm .ace_constant {
|
||
color: rgb(197, 6, 11);
|
||
}
|
||
|
||
.ace-tm .ace_constant.ace_buildin {
|
||
color: rgb(88, 72, 246);
|
||
}
|
||
|
||
.ace-tm .ace_constant.ace_language {
|
||
color: rgb(88, 92, 246);
|
||
}
|
||
|
||
.ace-tm .ace_constant.ace_library {
|
||
color: rgb(6, 150, 14);
|
||
}
|
||
|
||
.ace-tm .ace_invalid {
|
||
background-color: rgba(255, 0, 0, 0.1);
|
||
color: red;
|
||
}
|
||
|
||
.ace-tm .ace_support.ace_function {
|
||
color: rgb(60, 76, 114);
|
||
}
|
||
|
||
.ace-tm .ace_support.ace_constant {
|
||
color: rgb(6, 150, 14);
|
||
}
|
||
|
||
.ace-tm .ace_support.ace_type,
|
||
.ace-tm .ace_support.ace_class {
|
||
color: rgb(109, 121, 222);
|
||
}
|
||
|
||
.ace-tm .ace_keyword.ace_operator {
|
||
color: rgb(104, 118, 135);
|
||
}
|
||
|
||
.ace-tm .ace_string {
|
||
color: rgb(3, 106, 7);
|
||
}
|
||
|
||
.ace-tm .ace_comment {
|
||
color: rgb(76, 136, 107);
|
||
}
|
||
|
||
.ace-tm .ace_comment.ace_doc {
|
||
color: rgb(0, 102, 255);
|
||
}
|
||
|
||
.ace-tm .ace_comment.ace_doc.ace_tag {
|
||
color: rgb(128, 159, 191);
|
||
}
|
||
|
||
.ace-tm .ace_constant.ace_numeric {
|
||
color: rgb(0, 0, 205);
|
||
}
|
||
|
||
.ace-tm .ace_variable {
|
||
color: rgb(49, 132, 149);
|
||
}
|
||
|
||
.ace-tm .ace_xml-pe {
|
||
color: rgb(104, 104, 91);
|
||
}
|
||
|
||
.ace-tm .ace_entity.ace_name.ace_function {
|
||
color: #0000A2;
|
||
}
|
||
|
||
|
||
.ace-tm .ace_heading {
|
||
color: rgb(12, 7, 255);
|
||
}
|
||
|
||
.ace-tm .ace_list {
|
||
color:rgb(185, 6, 144);
|
||
}
|
||
|
||
.ace-tm .ace_meta.ace_tag {
|
||
color:rgb(0, 22, 142);
|
||
}
|
||
|
||
.ace-tm .ace_string.ace_regex {
|
||
color: rgb(255, 0, 0)
|
||
}
|
||
|
||
.ace-tm .ace_marker-layer .ace_selection {
|
||
background: rgb(181, 213, 255);
|
||
}
|
||
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
||
box-shadow: 0 0 3px 0px white;
|
||
}
|
||
.ace-tm .ace_marker-layer .ace_step {
|
||
background: rgb(252, 255, 0);
|
||
}
|
||
|
||
.ace-tm .ace_marker-layer .ace_stack {
|
||
background: rgb(164, 229, 101);
|
||
}
|
||
|
||
.ace-tm .ace_marker-layer .ace_bracket {
|
||
margin: -1px 0 0 -1px;
|
||
border: 1px solid rgb(192, 192, 192);
|
||
}
|
||
|
||
.ace-tm .ace_marker-layer .ace_active-line {
|
||
background: rgba(0, 0, 0, 0.07);
|
||
}
|
||
|
||
.ace-tm .ace_gutter-active-line {
|
||
background-color : #dcdcdc;
|
||
}
|
||
|
||
.ace-tm .ace_marker-layer .ace_selected-word {
|
||
background: rgb(250, 250, 255);
|
||
border: 1px solid rgb(200, 200, 250);
|
||
}
|
||
|
||
.ace-tm .ace_indent-guide {
|
||
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
||
}
|
||
|
||
.ace-tm .ace_indent-guide-active {
|
||
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
||
}
|
||
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(x,g,A){"use strict";g.isDark=!1,g.cssClass="ace-tm",g.cssText=x("./textmate-css"),g.$id="ace/theme/textmate";var y=x("../lib/dom");y.importCssString(g.cssText,g.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(x,g,A){var y=x("./lib/lang"),M=x("./lib/net"),w=x("./lib/dom"),m=x("./lib/app_config").AppConfig;A.exports=g=new m;var b={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};g.get=function(_){if(!b.hasOwnProperty(_))throw new Error("Unknown config key: "+_);return b[_]},g.set=function(_,p){if(b.hasOwnProperty(_))b[_]=p;else if(this.setDefaultValue("",_,p)==!1)throw new Error("Unknown config key: "+_);_=="useStrictCSP"&&w.useStrictCSP(p)},g.all=function(){return y.copyObject(b)},g.$modes={},g.moduleUrl=function(_,p){if(b.$moduleUrls[_])return b.$moduleUrls[_];var S=_.split("/");p=p||S[S.length-2]||"";var k=p=="snippets"?"/":"-",O=S[S.length-1];if(p=="worker"&&k=="-"){var F=new RegExp("^"+p+"[\\-_]|[\\-_]"+p+"$","g");O=O.replace(F,"")}(!O||O==p)&&S.length>1&&(O=S[S.length-2]);var D=b[p+"Path"];return D==null?D=b.basePath:k=="/"&&(p=k=""),D&&D.slice(-1)!="/"&&(D+="/"),D+p+k+O+this.get("suffix")},g.setModuleUrl=function(_,p){return b.$moduleUrls[_]=p};var v=function(p,S){if(p==="ace/theme/textmate"||p==="./theme/textmate")return S(null,x("./theme/textmate"));if(h)return h(p,S);console.error("loader is not configured")},h;g.setLoader=function(_){h=_},g.dynamicModules=Object.create(null),g.$loading={},g.$loaded={},g.loadModule=function(_,p){var S,k;Array.isArray(_)&&(k=_[0],_=_[1]);var O=function(D){if(D&&!g.$loading[_])return p&&p(D);if(g.$loading[_]||(g.$loading[_]=[]),g.$loading[_].push(p),!(g.$loading[_].length>1)){var Z=function(){v(_,function(U,L){L&&(g.$loaded[_]=L),g._emit("load.module",{name:_,module:L});var V=g.$loading[_];g.$loading[_]=null,V.forEach(function($){$&&$(L)})})};if(!g.get("packaged"))return Z();M.loadScript(g.moduleUrl(_,k),Z),d()}};if(g.dynamicModules[_])g.dynamicModules[_]().then(function(F){F.default?O(F.default):O(F)});else{try{S=this.$require(_)}catch(F){}O(S||g.$loaded[_])}},g.$require=function(_){if(typeof A.require=="function"){var p="require";return A[p](_)}},g.setModuleLoader=function(_,p){g.dynamicModules[_]=p};var d=function(){!b.basePath&&!b.workerPath&&!b.modePath&&!b.themePath&&!Object.keys(b.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),d=function(){})};g.version="1.24.1"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(x,g,A){"use strict";x("./lib/fixoldbrowsers");var y=x("./config");y.setLoader(function(b,v){x([b],function(h){v(null,h)})});var M=function(){return this||typeof window!="undefined"&&window}();A.exports=function(b){y.init=w,y.$require=x,b.require=x,b.define=o.amdD},w(!0);function w(b){if(!(!M||!M.document)){y.set("packaged",b||x.packaged||A.packaged||M.define&&o.amdD.packaged);var v={},h="",d=document.currentScript||document._currentScript,_=d&&d.ownerDocument||document;d&&d.src&&(h=d.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var p=_.getElementsByTagName("script"),S=0;S<p.length;S++){var k=p[S],O=k.src||k.getAttribute("src");if(!!O){for(var F=k.attributes,D=0,Z=F.length;D<Z;D++){var W=F[D];W.name.indexOf("data-ace-")===0&&(v[m(W.name.replace(/^data-ace-/,""))]=W.value)}var U=O.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);U&&(h=U[1])}}h&&(v.base=v.base||h,v.packaged=!0),v.basePath=v.base,v.workerPath=v.workerPath||v.base,v.modePath=v.modePath||v.base,v.themePath=v.themePath||v.base,delete v.base;for(var L in v)typeof v[L]!="undefined"&&y.set(L,v[L])}}function m(b){return b.replace(/-(.)/g,function(v,h){return h.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(x,g,A){"use strict";var y=function(m,b){return m.row-b.row||m.column-b.column},M=function(){function w(m,b,v,h){this.start={row:m,column:b},this.end={row:v,column:h}}return w.prototype.isEqual=function(m){return this.start.row===m.start.row&&this.end.row===m.end.row&&this.start.column===m.start.column&&this.end.column===m.end.column},w.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},w.prototype.contains=function(m,b){return this.compare(m,b)==0},w.prototype.compareRange=function(m){var b,v=m.end,h=m.start;return b=this.compare(v.row,v.column),b==1?(b=this.compare(h.row,h.column),b==1?2:b==0?1:0):b==-1?-2:(b=this.compare(h.row,h.column),b==-1?-1:b==1?42:0)},w.prototype.comparePoint=function(m){return this.compare(m.row,m.column)},w.prototype.containsRange=function(m){return this.comparePoint(m.start)==0&&this.comparePoint(m.end)==0},w.prototype.intersects=function(m){var b=this.compareRange(m);return b==-1||b==0||b==1},w.prototype.isEnd=function(m,b){return this.end.row==m&&this.end.column==b},w.prototype.isStart=function(m,b){return this.start.row==m&&this.start.column==b},w.prototype.setStart=function(m,b){typeof m=="object"?(this.start.column=m.column,this.start.row=m.row):(this.start.row=m,this.start.column=b)},w.prototype.setEnd=function(m,b){typeof m=="object"?(this.end.column=m.column,this.end.row=m.row):(this.end.row=m,this.end.column=b)},w.prototype.inside=function(m,b){return this.compare(m,b)==0?!(this.isEnd(m,b)||this.isStart(m,b)):!1},w.prototype.insideStart=function(m,b){return this.compare(m,b)==0?!this.isEnd(m,b):!1},w.prototype.insideEnd=function(m,b){return this.compare(m,b)==0?!this.isStart(m,b):!1},w.prototype.compare=function(m,b){return!this.isMultiLine()&&m===this.start.row?b<this.start.column?-1:b>this.end.column?1:0:m<this.start.row?-1:m>this.end.row?1:this.start.row===m?b>=this.start.column?0:-1:this.end.row===m?b<=this.end.column?0:1:0},w.prototype.compareStart=function(m,b){return this.start.row==m&&this.start.column==b?-1:this.compare(m,b)},w.prototype.compareEnd=function(m,b){return this.end.row==m&&this.end.column==b?1:this.compare(m,b)},w.prototype.compareInside=function(m,b){return this.end.row==m&&this.end.column==b?1:this.start.row==m&&this.start.column==b?-1:this.compare(m,b)},w.prototype.clipRows=function(m,b){if(this.end.row>b)var v={row:b+1,column:0};else if(this.end.row<m)var v={row:m,column:0};if(this.start.row>b)var h={row:b+1,column:0};else if(this.start.row<m)var h={row:m,column:0};return w.fromPoints(h||this.start,v||this.end)},w.prototype.extend=function(m,b){var v=this.compare(m,b);if(v==0)return this;if(v==-1)var h={row:m,column:b};else var d={row:m,column:b};return w.fromPoints(h||this.start,d||this.end)},w.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},w.prototype.isMultiLine=function(){return this.start.row!==this.end.row},w.prototype.clone=function(){return w.fromPoints(this.start,this.end)},w.prototype.collapseRows=function(){return this.end.column==0?new w(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new w(this.start.row,0,this.end.row,0)},w.prototype.toScreenRange=function(m){var b=m.documentToScreenPosition(this.start),v=m.documentToScreenPosition(this.end);return new w(b.row,b.column,v.row,v.column)},w.prototype.moveBy=function(m,b){this.start.row+=m,this.start.column+=b,this.end.row+=m,this.end.column+=b},w}();M.fromPoints=function(w,m){return new M(w.row,w.column,m.row,m.column)},M.comparePoints=y,M.comparePoints=function(w,m){return w.row-m.row||w.column-m.column},g.Range=M}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(x,g,A){/*! @license
|
||
==========================================================================
|
||
SproutCore -- JavaScript Application Framework
|
||
copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
|
||
|
||
Permission is hereby granted, free of charge, to any person obtaining a
|
||
copy of this software and associated documentation files (the "Software"),
|
||
to deal in the Software without restriction, including without limitation
|
||
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||
and/or sell copies of the Software, and to permit persons to whom the
|
||
Software is furnished to do so, subject to the following conditions:
|
||
|
||
The above copyright notice and this permission notice shall be included in
|
||
all copies or substantial portions of the Software.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||
DEALINGS IN THE SOFTWARE.
|
||
|
||
SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
|
||
|
||
For more information about SproutCore, visit http://www.sproutcore.com
|
||
|
||
|
||
==========================================================================
|
||
@license */"use strict";var y=x("./oop"),M=function(){var w={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};w.PRINTABLE_KEYS[173]="-";var m,b;for(b in w.FUNCTION_KEYS)m=w.FUNCTION_KEYS[b].toLowerCase(),w[m]=parseInt(b,10);for(b in w.PRINTABLE_KEYS)m=w.PRINTABLE_KEYS[b].toLowerCase(),w[m]=parseInt(b,10);return y.mixin(w,w.MODIFIER_KEYS),y.mixin(w,w.PRINTABLE_KEYS),y.mixin(w,w.FUNCTION_KEYS),w.enter=w.return,w.escape=w.esc,w.del=w.delete,function(){for(var v=["cmd","ctrl","alt","shift"],h=Math.pow(2,v.length);h--;)w.KEY_MODS[h]=v.filter(function(d){return h&w.KEY_MODS[d]}).join("-")+"-"}(),w.KEY_MODS[0]="",w.KEY_MODS[-1]="input-",w}();y.mixin(g,M),g.default=g,g.keyCodeToString=function(w){var m=M[w];return typeof m!="string"&&(m=String.fromCharCode(w)),m.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(x,g,A){"use strict";var y=x("./keys"),M=x("./useragent"),w=null,m=0,b;function v(){b=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){b={passive:!1}}})}catch(D){}}function h(){return b==null&&v(),b}function d(D,Z,W){this.elem=D,this.type=Z,this.callback=W}d.prototype.destroy=function(){p(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var _=g.addListener=function(D,Z,W,U){D.addEventListener(Z,W,h()),U&&U.$toDestroy.push(new d(D,Z,W))},p=g.removeListener=function(D,Z,W){D.removeEventListener(Z,W,h())};g.stopEvent=function(D){return g.stopPropagation(D),g.preventDefault(D),!1},g.stopPropagation=function(D){D.stopPropagation&&D.stopPropagation()},g.preventDefault=function(D){D.preventDefault&&D.preventDefault()},g.getButton=function(D){return D.type=="dblclick"?0:D.type=="contextmenu"||M.isMac&&D.ctrlKey&&!D.altKey&&!D.shiftKey?2:D.button},g.capture=function(D,Z,W){var U=D&&D.ownerDocument||document;function L(V){Z&&Z(V),W&&W(V),p(U,"mousemove",Z),p(U,"mouseup",L),p(U,"dragstart",L)}return _(U,"mousemove",Z),_(U,"mouseup",L),_(U,"dragstart",L),L},g.addMouseWheelListener=function(D,Z,W){_(D,"wheel",function(U){var L=.15,V=U.deltaX||0,$=U.deltaY||0;switch(U.deltaMode){case U.DOM_DELTA_PIXEL:U.wheelX=V*L,U.wheelY=$*L;break;case U.DOM_DELTA_LINE:var G=15;U.wheelX=V*G,U.wheelY=$*G;break;case U.DOM_DELTA_PAGE:var z=150;U.wheelX=V*z,U.wheelY=$*z;break}Z(U)},W)},g.addMultiMouseDownListener=function(D,Z,W,U,L){var V=0,$,G,z,K={2:"dblclick",3:"tripleclick",4:"quadclick"};function re(ne){if(g.getButton(ne)!==0?V=0:ne.detail>1?(V++,V>4&&(V=1)):V=1,M.isIE){var Q=Math.abs(ne.clientX-$)>5||Math.abs(ne.clientY-G)>5;(!z||Q)&&(V=1),z&&clearTimeout(z),z=setTimeout(function(){z=null},Z[V-1]||600),V==1&&($=ne.clientX,G=ne.clientY)}if(ne._clicks=V,W[U]("mousedown",ne),V>4)V=0;else if(V>1)return W[U](K[V],ne)}Array.isArray(D)||(D=[D]),D.forEach(function(ne){_(ne,"mousedown",re,L)})};var S=function(Z){return 0|(Z.ctrlKey?1:0)|(Z.altKey?2:0)|(Z.shiftKey?4:0)|(Z.metaKey?8:0)};g.getModifierString=function(D){return y.KEY_MODS[S(D)]};function k(D,Z,W){var U=S(Z);if(!M.isMac&&w){if(Z.getModifierState&&(Z.getModifierState("OS")||Z.getModifierState("Win"))&&(U|=8),w.altGr)if((3&U)!=3)w.altGr=0;else return;if(W===18||W===17){var L="location"in Z?Z.location:Z.keyLocation;if(W===17&&L===1)w[W]==1&&(m=Z.timeStamp);else if(W===18&&U===3&&L===2){var V=Z.timeStamp-m;V<50&&(w.altGr=!0)}}}if(W in y.MODIFIER_KEYS&&(W=-1),!U&&W===13){var L="location"in Z?Z.location:Z.keyLocation;if(L===3&&(D(Z,U,-W),Z.defaultPrevented))return}if(M.isChromeOS&&U&8){if(D(Z,U,W),Z.defaultPrevented)return;U&=~8}return!U&&!(W in y.FUNCTION_KEYS)&&!(W in y.PRINTABLE_KEYS)?!1:D(Z,U,W)}g.addCommandKeyListener=function(D,Z,W){if(M.isOldGecko||M.isOpera&&!("KeyboardEvent"in window)){var U=null;_(D,"keydown",function(V){U=V.keyCode},W),_(D,"keypress",function(V){return k(Z,V,U)},W)}else{var L=null;_(D,"keydown",function(V){w[V.keyCode]=(w[V.keyCode]||0)+1;var $=k(Z,V,V.keyCode);return L=V.defaultPrevented,$},W),_(D,"keypress",function(V){L&&(V.ctrlKey||V.altKey||V.shiftKey||V.metaKey)&&(g.stopEvent(V),L=null)},W),_(D,"keyup",function(V){w[V.keyCode]=null},W),w||(O(),_(window,"focus",O))}};function O(){w=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!M.isOldIE){var F=1;g.nextTick=function(D,Z){Z=Z||window;var W="zero-timeout-message-"+F++,U=function L(V){V.data==W&&(g.stopPropagation(V),p(Z,"message",L),D())};_(Z,"message",U),Z.postMessage(W,"*")}}g.$idleBlocked=!1,g.onIdle=function(D,Z){return setTimeout(function W(){g.$idleBlocked?setTimeout(W,100):D()},Z)},g.$idleBlockId=null,g.blockIdle=function(D){g.$idleBlockId&&clearTimeout(g.$idleBlockId),g.$idleBlocked=!0,g.$idleBlockId=setTimeout(function(){g.$idleBlocked=!1},D||100)},g.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),g.nextFrame?g.nextFrame=g.nextFrame.bind(window):g.nextFrame=function(D){setTimeout(D,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(x,g,A){"use strict";var y;A.exports={lineMode:!1,pasteCancelled:function(){return y&&y>Date.now()-50?!0:y=!1},cancel:function(){y=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(x,g,A){"use strict";var y=x("../lib/event"),M=x("../config").nls,w=x("../lib/useragent"),m=x("../lib/dom"),b=x("../lib/lang"),v=x("../clipboard"),h=w.isChrome<18,d=w.isIE,_=w.isChrome>63,p=400,S=x("../lib/keys"),k=S.KEY_MODS,O=w.isIOS,F=O?/\s/:/\n/,D=w.isMobile,Z=function(U,L){var V=m.createElement("textarea");V.className="ace_text-input",V.setAttribute("wrap","off"),V.setAttribute("autocorrect","off"),V.setAttribute("autocapitalize","off"),V.setAttribute("spellcheck",!1),V.style.opacity="0",U.insertBefore(V,U.firstChild);var $=!1,G=!1,z=!1,K=!1,re="";D||(V.style.fontSize="1px");var ne=!1,Q=!1,ue="",he=0,Ee=0,ce=0,ve=Number.MAX_SAFE_INTEGER,fe=Number.MIN_SAFE_INTEGER,we=0;try{var me=document.activeElement===V}catch(Xt){}this.setNumberOfExtraLines=function(Xt){if(ve=Number.MAX_SAFE_INTEGER,fe=Number.MIN_SAFE_INTEGER,Xt<0){we=0;return}we=Xt},this.setAriaOptions=function(Xt){if(Xt.activeDescendant?(V.setAttribute("aria-haspopup","true"),V.setAttribute("aria-autocomplete",Xt.inline?"both":"list"),V.setAttribute("aria-activedescendant",Xt.activeDescendant)):(V.setAttribute("aria-haspopup","false"),V.setAttribute("aria-autocomplete","both"),V.removeAttribute("aria-activedescendant")),Xt.role&&V.setAttribute("role",Xt.role),Xt.setLabel&&(V.setAttribute("aria-roledescription",M("editor")),L.session)){var Yt=L.session.selection.cursor.row;V.setAttribute("aria-label",M("Cursor at row $0",[Yt+1]))}},this.setAriaOptions({role:"textbox"}),y.addListener(V,"blur",function(Xt){Q||(L.onBlur(Xt),me=!1)},L),y.addListener(V,"focus",function(Xt){if(!Q){if(me=!0,w.isEdge)try{if(!document.hasFocus())return}catch(Yt){}L.onFocus(Xt),w.isEdge?setTimeout(pe):pe()}},L),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:L.renderer.enableKeyboardAccessibility}),re||_||this.$focusScroll=="browser")return V.focus({preventScroll:!0});var Xt=V.style.top;V.style.position="fixed",V.style.top="0px";try{var Yt=V.getBoundingClientRect().top!=0}catch(ze){return}var Rt=[];if(Yt)for(var Lt=V.parentElement;Lt&&Lt.nodeType==1;)Rt.push(Lt),Lt.setAttribute("ace_nocontext",!0),!Lt.parentElement&&Lt.getRootNode?Lt=Lt.getRootNode().host:Lt=Lt.parentElement;V.focus({preventScroll:!0}),Yt&&Rt.forEach(function(ze){ze.removeAttribute("ace_nocontext")}),setTimeout(function(){V.style.position="",V.style.top=="0px"&&(V.style.top=Xt)},0)},this.blur=function(){V.blur()},this.isFocused=function(){return me},L.on("beforeEndOperation",function(){var Xt=L.curOp,Yt=Xt&&Xt.command&&Xt.command.name;if(Yt!="insertstring"){var Rt=Yt&&(Xt.docChanged||Xt.selectionChanged);z&&Rt&&(ue=V.value="",gt()),pe()}});var Pe=function(Yt,Rt){for(var Lt=Rt,ze=1;ze<=Yt-ve&&ze<2*we+1;ze++)Lt+=L.session.getLine(Yt-ze).length+1;return Lt},pe=O?function(Xt){if(!(!me||$&&!Xt||K)){Xt||(Xt="");var Yt=`
|
||
ab`+Xt+`cde fg
|
||
`;Yt!=V.value&&(V.value=ue=Yt);var Rt=4,Lt=4+(Xt.length||(L.selection.isEmpty()?0:1));(he!=Rt||Ee!=Lt)&&V.setSelectionRange(Rt,Lt),he=Rt,Ee=Lt}}:function(){if(!(z||K)&&!(!me&&!De)){z=!0;var Xt=0,Yt=0,Rt="";if(L.session){var Lt=L.selection,ze=Lt.getRange(),rt=Lt.cursor.row;rt===fe+1?(ve=fe+1,fe=ve+2*we):rt===ve-1?(fe=ve-1,ve=fe-2*we):(rt<ve-1||rt>fe+1)&&(ve=rt>we?rt-we:0,fe=rt>we?rt+we:2*we);for(var tt=[],de=ve;de<=fe;de++)tt.push(L.session.getLine(de));if(Rt=tt.join(`
|
||
`),Xt=Pe(ze.start.row,ze.start.column),Yt=Pe(ze.end.row,ze.end.column),ze.start.row<ve){var ot=L.session.getLine(ve-1);Xt=ze.start.row<ve-1?0:Xt,Yt+=ot.length+1,Rt=ot+`
|
||
`+Rt}else if(ze.end.row>fe){var Et=L.session.getLine(fe+1);Yt=ze.end.row>fe+1?Et.length:ze.end.column,Yt+=Rt.length+1,Rt=Rt+`
|
||
`+Et}else D&&rt>0&&(Rt=`
|
||
`+Rt,Yt+=1,Xt+=1);Rt.length>p&&(Xt<p&&Yt<p?Rt=Rt.slice(0,p):(Rt=`
|
||
`,Xt==Yt?Xt=Yt=0:(Xt=0,Yt=1)));var Ht=Rt+`
|
||
|
||
`;Ht!=ue&&(V.value=ue=Ht,he=Ee=Ht.length)}if(De&&(he=V.selectionStart,Ee=V.selectionEnd),Ee!=Yt||he!=Xt||V.selectionEnd!=Ee)try{V.setSelectionRange(Xt,Yt),he=Xt,Ee=Yt}catch(Jt){}z=!1}};this.resetSelection=pe,me&&L.onFocus();var Ie=function(Yt){return Yt.selectionStart===0&&Yt.selectionEnd>=ue.length&&Yt.value===ue&&ue&&Yt.selectionEnd!==Ee},Je=function(Yt){z||($?$=!1:Ie(V)?(L.selectAll(),pe()):D&&V.selectionStart!=he&&pe())},ke=null;this.setInputHandler=function(Xt){ke=Xt},this.getInputHandler=function(){return ke};var De=!1,Fe=function(Yt,Rt){if(De&&(De=!1),G)return pe(),Yt&&L.onPaste(Yt),G=!1,"";for(var Lt=V.selectionStart,ze=V.selectionEnd,rt=he,tt=ue.length-Ee,de=Yt,ot=Yt.length-Lt,Et=Yt.length-ze,Ht=0;rt>0&&ue[Ht]==Yt[Ht];)Ht++,rt--;for(de=de.slice(Ht),Ht=1;tt>0&&ue.length-Ht>he-1&&ue[ue.length-Ht]==Yt[Yt.length-Ht];)Ht++,tt--;ot-=Ht-1,Et-=Ht-1;var Jt=de.length-Ht+1;if(Jt<0&&(rt=-Jt,Jt=0),de=de.slice(0,Jt),!Rt&&!de&&!ot&&!rt&&!tt&&!Et)return"";K=!0;var Qt=!1;return w.isAndroid&&de==". "&&(de=" ",Qt=!0),de&&!rt&&!tt&&!ot&&!Et||ne?L.onTextInput(de):L.onTextInput(de,{extendLeft:rt,extendRight:tt,restoreStart:ot,restoreEnd:Et}),K=!1,ue=Yt,he=Lt,Ee=ze,ce=Et,Qt?`
|
||
`:de},Qe=function(Yt){if(z)return Vt();if(Yt&&Yt.inputType){if(Yt.inputType=="historyUndo")return L.execCommand("undo");if(Yt.inputType=="historyRedo")return L.execCommand("redo")}var Rt=V.value,Lt=Fe(Rt,!0);(Rt.length>p+100||F.test(Lt)||D&&he<1&&he==Ee)&&pe()},qe=function Xt(Yt,Rt,Lt){var ze=Yt.clipboardData||window.clipboardData;if(!(!ze||h)){var rt=d||Lt?"Text":"text/plain";try{return Rt?ze.setData(rt,Rt)!==!1:ze.getData(rt)}catch(tt){if(!Lt)return Xt(tt,Rt,!0)}}},et=function(Yt,Rt){var Lt=L.getCopyText();if(!Lt)return y.preventDefault(Yt);qe(Yt,Lt)?(O&&(pe(Lt),$=Lt,setTimeout(function(){$=!1},10)),Rt?L.onCut():L.onCopy(),y.preventDefault(Yt)):($=!0,V.value=Lt,V.select(),setTimeout(function(){$=!1,pe(),Rt?L.onCut():L.onCopy()}))},dt=function(Yt){et(Yt,!0)},Ke=function(Yt){et(Yt,!1)},Ge=function(Yt){var Rt=qe(Yt);v.pasteCancelled()||(typeof Rt=="string"?(Rt&&L.onPaste(Rt,Yt),w.isIE&&setTimeout(pe),y.preventDefault(Yt)):(V.value="",G=!0))};y.addCommandKeyListener(V,L.onCommandKey.bind(L),L),y.addListener(V,"select",Je,L),y.addListener(V,"input",Qe,L),y.addListener(V,"cut",dt,L),y.addListener(V,"copy",Ke,L),y.addListener(V,"paste",Ge,L),(!("oncut"in V)||!("oncopy"in V)||!("onpaste"in V))&&y.addListener(U,"keydown",function(Xt){if(!(w.isMac&&!Xt.metaKey||!Xt.ctrlKey))switch(Xt.keyCode){case 67:Ke(Xt);break;case 86:Ge(Xt);break;case 88:dt(Xt);break}},L);var wt=function(Yt){if(!(z||!L.onCompositionStart||L.$readOnly)&&(z={},!ne)){Yt.data&&(z.useTextareaForIME=!1),setTimeout(Vt,0),L._signal("compositionStart"),L.on("mousedown",it);var Rt=L.getSelectionRange();Rt.end.row=Rt.start.row,Rt.end.column=Rt.start.column,z.markerRange=Rt,z.selectionStart=he,L.onCompositionStart(z),z.useTextareaForIME?(ue=V.value="",he=0,Ee=0):(V.msGetInputContext&&(z.context=V.msGetInputContext()),V.getInputContext&&(z.context=V.getInputContext()))}},Vt=function(){if(!(!z||!L.onCompositionUpdate||L.$readOnly)){if(ne)return it();if(z.useTextareaForIME)L.onCompositionUpdate(V.value);else{var Yt=V.value;Fe(Yt),z.markerRange&&(z.context&&(z.markerRange.start.column=z.selectionStart=z.context.compositionStartOffset),z.markerRange.end.column=z.markerRange.start.column+Ee-z.selectionStart+ce)}}},gt=function(Yt){!L.onCompositionEnd||L.$readOnly||(z=!1,L.onCompositionEnd(),L.off("mousedown",it),Yt&&Qe())};function it(){Q=!0,V.blur(),V.focus(),Q=!1}var Le=b.delayedCall(Vt,50).schedule.bind(null,null);function ct(Xt){Xt.keyCode==27&&V.value.length<V.selectionStart&&(z||(ue=V.value),he=Ee=-1,pe()),Le()}y.addListener(V,"compositionstart",wt,L),y.addListener(V,"compositionupdate",Vt,L),y.addListener(V,"keyup",ct,L),y.addListener(V,"keydown",Le,L),y.addListener(V,"compositionend",gt,L),this.getElement=function(){return V},this.setCommandMode=function(Xt){ne=Xt,V.readOnly=!1},this.setReadOnly=function(Xt){ne||(V.readOnly=Xt)},this.setCopyWithEmptySelection=function(Xt){},this.onContextMenu=function(Xt){De=!0,pe(),L._emit("nativecontextmenu",{target:L,domEvent:Xt}),this.moveToMouse(Xt,!0)},this.moveToMouse=function(Xt,Yt){re||(re=V.style.cssText),V.style.cssText=(Yt?"z-index:100000;":"")+(w.isIE?"opacity:0.1;":"")+"text-indent: -"+(he+Ee)*L.renderer.characterWidth*.5+"px;";var Rt=L.container.getBoundingClientRect(),Lt=m.computedStyle(L.container),ze=Rt.top+(parseInt(Lt.borderTopWidth)||0),rt=Rt.left+(parseInt(Rt.borderLeftWidth)||0),tt=Rt.bottom-ze-V.clientHeight-2,de=function(Et){m.translate(V,Et.clientX-rt-2,Math.min(Et.clientY-ze-2,tt))};de(Xt),Xt.type=="mousedown"&&(L.renderer.$isMousePressed=!0,clearTimeout(at),w.isWin&&y.capture(L.container,de,jt))},this.onContextMenuClose=jt;var at;function jt(){clearTimeout(at),at=setTimeout(function(){re&&(V.style.cssText=re,re=""),L.renderer.$isMousePressed=!1,L.renderer.$keepTextAreaAtCursor&&L.renderer.$moveTextAreaToCursor()},0)}var St=function(Yt){L.textInput.onContextMenu(Yt),jt()};y.addListener(V,"mouseup",St,L),y.addListener(V,"mousedown",function(Xt){Xt.preventDefault(),jt()},L),y.addListener(L.renderer.scroller,"contextmenu",St,L),y.addListener(V,"contextmenu",St,L),O&&fn(U,L,V);function fn(Xt,Yt,Rt){var Lt=null,ze=!1;Rt.addEventListener("keydown",function(tt){Lt&&clearTimeout(Lt),ze=!0},!0),Rt.addEventListener("keyup",function(tt){Lt=setTimeout(function(){ze=!1},100)},!0);var rt=function(de){if(document.activeElement===Rt&&!(ze||z||Yt.$mouseHandler.isMousePressed)&&!$){var ot=Rt.selectionStart,Et=Rt.selectionEnd,Ht=null,Jt=0;if(ot==0?Ht=S.up:ot==1?Ht=S.home:Et>Ee&&ue[Et]==`
|
||
`?Ht=S.end:ot<he&&ue[ot-1]==" "?(Ht=S.left,Jt=k.option):ot<he||ot==he&&Ee!=he&&ot==Et?Ht=S.left:Et>Ee&&ue.slice(0,Et).split(`
|
||
`).length>2?Ht=S.down:Et>Ee&&ue[Et-1]==" "?(Ht=S.right,Jt=k.option):(Et>Ee||Et==Ee&&Ee!=he&&ot==Et)&&(Ht=S.right),ot!==Et&&(Jt|=k.shift),Ht){var Qt=Yt.onCommandKey({},Jt,Ht);if(!Qt&&Yt.commands){Ht=S.keyCodeToString(Ht);var an=Yt.commands.findKeyCommand(Jt,Ht);an&&Yt.execCommand(an)}he=ot,Ee=Et,pe("")}}};document.addEventListener("selectionchange",rt),Yt.on("destroy",function(){document.removeEventListener("selectionchange",rt)})}this.destroy=function(){V.parentElement&&V.parentElement.removeChild(V)}};g.TextInput=Z,g.$setUserAgentForTests=function(W,U){D=W,O=U}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(x,g,A){"use strict";var y=x("../lib/useragent"),M=0,w=550,m=function(){function h(d){d.$clickSelection=null;var _=d.editor;_.setDefaultHandler("mousedown",this.onMouseDown.bind(d)),_.setDefaultHandler("dblclick",this.onDoubleClick.bind(d)),_.setDefaultHandler("tripleclick",this.onTripleClick.bind(d)),_.setDefaultHandler("quadclick",this.onQuadClick.bind(d)),_.setDefaultHandler("mousewheel",this.onMouseWheel.bind(d));var p=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];p.forEach(function(S){d[S]=this[S]},this),d.selectByLines=this.extendSelectionBy.bind(d,"getLineRange"),d.selectByWords=this.extendSelectionBy.bind(d,"getWordRange")}return h.prototype.onMouseDown=function(d){var _=d.inSelection(),p=d.getDocumentPosition();this.mousedownEvent=d;var S=this.editor,k=d.getButton();if(k!==0){var O=S.getSelectionRange(),F=O.isEmpty();(F||k==1)&&S.selection.moveToPosition(p),k==2&&(S.textInput.onContextMenu(d.domEvent),y.isMozilla||d.preventDefault());return}if(this.mousedownEvent.time=Date.now(),_&&!S.isFocused()&&(S.focus(),this.$focusTimeout&&!this.$clickSelection&&!S.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(d);return}return this.captureMouse(d),this.startSelect(p,d.domEvent._clicks>1),d.preventDefault()},h.prototype.startSelect=function(d,_){d=d||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var p=this.editor;!this.mousedownEvent||(this.mousedownEvent.getShiftKey()?p.selection.selectToPosition(d):_||p.selection.moveToPosition(d),_||this.select(),p.setStyle("ace_selecting"),this.setState("select"))},h.prototype.select=function(){var d,_=this.editor,p=_.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var S=this.$clickSelection.comparePoint(p);if(S==-1)d=this.$clickSelection.end;else if(S==1)d=this.$clickSelection.start;else{var k=v(this.$clickSelection,p);p=k.cursor,d=k.anchor}_.selection.setSelectionAnchor(d.row,d.column)}_.selection.selectToPosition(p),_.renderer.scrollCursorIntoView()},h.prototype.extendSelectionBy=function(d){var _,p=this.editor,S=p.renderer.screenToTextCoordinates(this.x,this.y),k=p.selection[d](S.row,S.column);if(this.$clickSelection){var O=this.$clickSelection.comparePoint(k.start),F=this.$clickSelection.comparePoint(k.end);if(O==-1&&F<=0)_=this.$clickSelection.end,(k.end.row!=S.row||k.end.column!=S.column)&&(S=k.start);else if(F==1&&O>=0)_=this.$clickSelection.start,(k.start.row!=S.row||k.start.column!=S.column)&&(S=k.end);else if(O==-1&&F==1)S=k.end,_=k.start;else{var D=v(this.$clickSelection,S);S=D.cursor,_=D.anchor}p.selection.setSelectionAnchor(_.row,_.column)}p.selection.selectToPosition(S),p.renderer.scrollCursorIntoView()},h.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},h.prototype.focusWait=function(){var d=b(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),_=Date.now();(d>M||_-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},h.prototype.onDoubleClick=function(d){var _=d.getDocumentPosition(),p=this.editor,S=p.session,k=S.getBracketRange(_);k?(k.isEmpty()&&(k.start.column--,k.end.column++),this.setState("select")):(k=p.selection.getWordRange(_.row,_.column),this.setState("selectByWords")),this.$clickSelection=k,this.select()},h.prototype.onTripleClick=function(d){var _=d.getDocumentPosition(),p=this.editor;this.setState("selectByLines");var S=p.getSelectionRange();S.isMultiLine()&&S.contains(_.row,_.column)?(this.$clickSelection=p.selection.getLineRange(S.start.row),this.$clickSelection.end=p.selection.getLineRange(S.end.row).end):this.$clickSelection=p.selection.getLineRange(_.row),this.select()},h.prototype.onQuadClick=function(d){var _=this.editor;_.selectAll(),this.$clickSelection=_.getSelectionRange(),this.setState("selectAll")},h.prototype.onMouseWheel=function(d){if(!d.getAccelKey()){d.getShiftKey()&&d.wheelY&&!d.wheelX&&(d.wheelX=d.wheelY,d.wheelY=0);var _=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var p=this.$lastScroll,S=d.domEvent.timeStamp,k=S-p.t,O=k?d.wheelX/k:p.vx,F=k?d.wheelY/k:p.vy;k<w&&(O=(O+p.vx)/2,F=(F+p.vy)/2);var D=Math.abs(O/F),Z=!1;if(D>=1&&_.renderer.isScrollableBy(d.wheelX*d.speed,0)&&(Z=!0),D<=1&&_.renderer.isScrollableBy(0,d.wheelY*d.speed)&&(Z=!0),Z)p.allowed=S;else if(S-p.allowed<w){var W=Math.abs(O)<=1.5*Math.abs(p.vx)&&Math.abs(F)<=1.5*Math.abs(p.vy);W?(Z=!0,p.allowed=S):p.allowed=0}if(p.t=S,p.vx=O,p.vy=F,Z)return _.renderer.scrollBy(d.wheelX*d.speed,d.wheelY*d.speed),d.stop()}},h}();m.prototype.selectEnd=m.prototype.selectByLinesEnd,m.prototype.selectAllEnd=m.prototype.selectByLinesEnd,m.prototype.selectByWordsEnd=m.prototype.selectByLinesEnd,g.DefaultHandlers=m;function b(h,d,_,p){return Math.sqrt(Math.pow(_-h,2)+Math.pow(p-d,2))}function v(h,d){if(h.start.row==h.end.row)var _=2*d.column-h.start.column-h.end.column;else if(h.start.row==h.end.row-1&&!h.start.column&&!h.end.column)var _=d.column-4;else var _=2*d.row-h.start.row-h.end.row;return _<0?{cursor:h.start,anchor:h.end}:{cursor:h.end,anchor:h.start}}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/range"],function(x,g,A){"use strict";var y=this&&this.__extends||function(){var p=function(k,O){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,D){F.__proto__=D}||function(F,D){for(var Z in D)Object.prototype.hasOwnProperty.call(D,Z)&&(F[Z]=D[Z])},p(k,O)};return function(S,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");p(S,k);function O(){this.constructor=S}S.prototype=k===null?Object.create(k):(O.prototype=k.prototype,new O)}}(),M=this&&this.__values||function(p){var S=typeof Symbol=="function"&&Symbol.iterator,k=S&&p[S],O=0;if(k)return k.call(p);if(p&&typeof p.length=="number")return{next:function(){return p&&O>=p.length&&(p=void 0),{value:p&&p[O++],done:!p}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")},w=x("./lib/dom"),m=x("./range").Range,b="ace_tooltip",v=function(){function p(S){this.isOpen=!1,this.$element=null,this.$parentNode=S}return p.prototype.$init=function(){return this.$element=w.createElement("div"),this.$element.className=b,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},p.prototype.getElement=function(){return this.$element||this.$init()},p.prototype.setText=function(S){this.getElement().textContent=S},p.prototype.setHtml=function(S){this.getElement().innerHTML=S},p.prototype.setPosition=function(S,k){this.getElement().style.left=S+"px",this.getElement().style.top=k+"px"},p.prototype.setClassName=function(S){w.addCssClass(this.getElement(),S)},p.prototype.setTheme=function(S){this.$element.className=b+" "+(S.isDark?"ace_dark ":"")+(S.cssClass||"")},p.prototype.show=function(S,k,O){S!=null&&this.setText(S),k!=null&&O!=null&&this.setPosition(k,O),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},p.prototype.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=b,this.isOpen=!1)},p.prototype.getHeight=function(){return this.getElement().offsetHeight},p.prototype.getWidth=function(){return this.getElement().offsetWidth},p.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},p}(),h=function(){function p(){this.popups=[]}return p.prototype.addPopup=function(S){this.popups.push(S),this.updatePopups()},p.prototype.removePopup=function(S){var k=this.popups.indexOf(S);k!==-1&&(this.popups.splice(k,1),this.updatePopups())},p.prototype.updatePopups=function(){var S,k,O,F;this.popups.sort(function(z,K){return K.priority-z.priority});var D=[];try{for(var Z=M(this.popups),W=Z.next();!W.done;W=Z.next()){var U=W.value,L=!0;try{for(var V=(O=void 0,M(D)),$=V.next();!$.done;$=V.next()){var G=$.value;if(this.doPopupsOverlap(G,U)){L=!1;break}}}catch(z){O={error:z}}finally{try{$&&!$.done&&(F=V.return)&&F.call(V)}finally{if(O)throw O.error}}L?D.push(U):U.hide()}}catch(z){S={error:z}}finally{try{W&&!W.done&&(k=Z.return)&&k.call(Z)}finally{if(S)throw S.error}}},p.prototype.doPopupsOverlap=function(S,k){var O=S.getElement().getBoundingClientRect(),F=k.getElement().getBoundingClientRect();return O.left<F.right&&O.right>F.left&&O.top<F.bottom&&O.bottom>F.top},p}(),d=new h;g.popupManager=d,g.Tooltip=v;var _=function(p){y(S,p);function S(k){k===void 0&&(k=document.body);var O=p.call(this,k)||this;O.timeout=void 0,O.lastT=0,O.idleTime=350,O.lastEvent=void 0,O.onMouseOut=O.onMouseOut.bind(O),O.onMouseMove=O.onMouseMove.bind(O),O.waitForHover=O.waitForHover.bind(O),O.hide=O.hide.bind(O);var F=O.getElement();return F.style.whiteSpace="pre-wrap",F.style.pointerEvents="auto",F.addEventListener("mouseout",O.onMouseOut),F.tabIndex=-1,F.addEventListener("blur",function(){F.contains(document.activeElement)||this.hide()}.bind(O)),O}return S.prototype.addToEditor=function(k){k.on("mousemove",this.onMouseMove),k.on("mousedown",this.hide),k.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},S.prototype.removeFromEditor=function(k){k.off("mousemove",this.onMouseMove),k.off("mousedown",this.hide),k.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},S.prototype.onMouseMove=function(k,O){this.lastEvent=k,this.lastT=Date.now();var F=O.$mouseHandler.isMousePressed;if(this.isOpen){var D=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(D.row,D.column)||F||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||F||(this.lastEvent=k,this.timeout=setTimeout(this.waitForHover,this.idleTime))},S.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var k=Date.now()-this.lastT;if(this.idleTime-k>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-k);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},S.prototype.isOutsideOfText=function(k){var O=k.editor,F=k.getDocumentPosition(),D=O.session.getLine(F.row);if(F.column==D.length){var Z=O.renderer.pixelToScreenCoordinates(k.clientX,k.clientY),W=O.session.documentToScreenPosition(F.row,F.column);if(W.column!=Z.column||W.row!=Z.row)return!0}return!1},S.prototype.setDataProvider=function(k){this.$gatherData=k},S.prototype.showForRange=function(k,O,F,D){if(!(D&&D!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var Z=k.renderer;this.isOpen||(d.addPopup(this),this.$registerCloseEvents(),this.setTheme(Z.theme)),this.isOpen=!0,this.addMarker(O,k.session),this.range=m.fromPoints(O.start,O.end);var W=this.getElement();W.innerHTML="",W.appendChild(F),W.style.display="block";var U=Z.textToScreenCoordinates(O.start.row,O.start.column),L=k.getCursorPosition(),V=W.clientHeight,$=Z.scroller.getBoundingClientRect(),G=!0;this.row>L.row?G=!0:this.row<L.row&&(G=!1),U.pageY-V+Z.lineHeight<$.top?G=!0:U.pageY+V>$.bottom&&(G=!1),G?U.pageY+=Z.lineHeight:U.pageY-=V,W.style.maxWidth=$.width-(U.pageX-$.left)+"px",this.setPosition(U.pageX,U.pageY)}},S.prototype.addMarker=function(k,O){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=O,this.marker=O&&O.addMarker(k,"ace_highlight-marker","text")},S.prototype.hide=function(k){!k&&document.activeElement==this.getElement()||k&&k.target&&(k.type!="keydown"||k.ctrlKey||k.metaKey)&&this.$element.contains(k.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,d.removePopup(this)))},S.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("mousewheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},S.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("mousewheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},S.prototype.onMouseOut=function(k){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,!!this.isOpen&&(!k.relatedTarget||k.relatedTarget==this.getElement()||k&&k.currentTarget.contains(k.relatedTarget)||k.relatedTarget.classList.contains("ace_content")||this.hide())},S}(v);g.HoverTooltip=_}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(x,g,A){"use strict";var y=this&&this.__extends||function(){var _=function(S,k){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,F){O.__proto__=F}||function(O,F){for(var D in F)Object.prototype.hasOwnProperty.call(F,D)&&(O[D]=F[D])},_(S,k)};return function(p,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");_(p,S);function k(){this.constructor=p}p.prototype=S===null?Object.create(S):(k.prototype=S.prototype,new k)}}(),M=this&&this.__values||function(_){var p=typeof Symbol=="function"&&Symbol.iterator,S=p&&_[p],k=0;if(S)return S.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&k>=_.length&&(_=void 0),{value:_&&_[k++],done:!_}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},w=x("../lib/dom"),m=x("../lib/event"),b=x("../tooltip").Tooltip,v=x("../config").nls;function h(_){var p=_.editor,S=p.renderer.$gutterLayer,k=new d(p);_.editor.setDefaultHandler("guttermousedown",function(U){if(!(!p.isFocused()||U.getButton()!=0)){var L=S.getRegion(U);if(L!="foldWidgets"){var V=U.getDocumentPosition().row,$=p.session.selection;if(U.getShiftKey())$.selectTo(V,0);else{if(U.domEvent.detail==2)return p.selectAll(),U.preventDefault();_.$clickSelection=p.selection.getLineRange(V)}return _.setState("selectByLines"),_.captureMouse(U),U.preventDefault()}}});var O,F;function D(){var U=F.getDocumentPosition().row,L=p.session.getLength();if(U==L){var V=p.renderer.pixelToScreenCoordinates(0,F.y).row,$=F.$pos;if(V>p.session.documentToScreenRow($.row,$.column))return Z()}if(k.showTooltip(U),!!k.isOpen)if(p.on("mousewheel",Z),_.$tooltipFollowsMouse)W(F);else{var G=F.getGutterRow(),z=S.$lines.get(G);if(z){var K=z.element.querySelector(".ace_gutter_annotation"),re=K.getBoundingClientRect(),ne=k.getElement().style;ne.left=re.right+"px",ne.top=re.bottom+"px"}else W(F)}}function Z(){O&&(O=clearTimeout(O)),k.isOpen&&(k.hideTooltip(),p.off("mousewheel",Z))}function W(U){k.setPosition(U.x,U.y)}_.editor.setDefaultHandler("guttermousemove",function(U){var L=U.domEvent.target||U.domEvent.srcElement;if(w.hasCssClass(L,"ace_fold-widget"))return Z();k.isOpen&&_.$tooltipFollowsMouse&&W(U),F=U,!O&&(O=setTimeout(function(){O=null,F&&!_.isMousePressed?D():Z()},50))}),m.addListener(p.renderer.$gutter,"mouseout",function(U){F=null,!(!k.isOpen||O)&&(O=setTimeout(function(){O=null,Z()},50))},p),p.on("changeSession",Z),p.on("input",Z)}g.GutterHandler=h;var d=function(_){y(p,_);function p(S){var k=_.call(this,S.container)||this;return k.editor=S,k}return p.prototype.setPosition=function(S,k){var O=window.innerWidth||document.documentElement.clientWidth,F=window.innerHeight||document.documentElement.clientHeight,D=this.getWidth(),Z=this.getHeight();S+=15,k+=15,S+D>O&&(S-=S+D-O),k+Z>F&&(k-=20+Z),b.prototype.setPosition.call(this,S,k)},Object.defineProperty(p,"annotationLabels",{get:function(){return{error:{singular:v("error"),plural:v("errors")},warning:{singular:v("warning"),plural:v("warnings")},info:{singular:v("information message"),plural:v("information messages")}}},enumerable:!1,configurable:!0}),p.prototype.showTooltip=function(S){var k=this.editor.renderer.$gutterLayer,O=k.$annotations[S],F;O?F={text:Array.from(O.text),type:Array.from(O.type)}:F={text:[],type:[]};var D=k.session.getFoldLine(S);if(D&&k.$showFoldedAnnotations){for(var Z={error:[],warning:[],info:[]},W,U=S+1;U<=D.end.row;U++)if(!!k.$annotations[U])for(var L=0;L<k.$annotations[U].text.length;L++){var V=k.$annotations[U].type[L];if(Z[V].push(k.$annotations[U].text[L]),V==="error"){W="error_fold";continue}if(V==="warning"){W="warning_fold";continue}}if(W==="error_fold"||W==="warning_fold"){var $="".concat(p.annotationsToSummaryString(Z)," in folded code.");F.text.push($),F.type.push(W)}}if(F.text.length===0)return this.hide();for(var G={error:[],warning:[],info:[]},z=k.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",U=0;U<F.text.length;U++){var K="<span class='ace_".concat(F.type[U]," ").concat(z,"' aria-label='").concat(p.annotationLabels[F.type[U].replace("_fold","")].singular,"' role=img> </span> ").concat(F.text[U]);G[F.type[U].replace("_fold","")].push(K)}var re=[].concat(G.error,G.warning,G.info).join("<br>");this.setHtml(re),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},p.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},p.annotationsToSummaryString=function(S){var k,O,F=[],D=["error","warning","info"];try{for(var Z=M(D),W=Z.next();!W.done;W=Z.next()){var U=W.value;if(!!S[U].length){var L=S[U].length===1?p.annotationLabels[U].singular:p.annotationLabels[U].plural;F.push("".concat(S[U].length," ").concat(L))}}}catch(V){k={error:V}}finally{try{W&&!W.done&&(O=Z.return)&&O.call(Z)}finally{if(k)throw k.error}}return F.join(", ")},p}(b);g.GutterTooltip=d}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(x,g,A){"use strict";var y=x("../lib/event"),M=x("../lib/useragent"),w=function(){function m(b,v){this.domEvent=b,this.editor=v,this.x=this.clientX=b.clientX,this.y=this.clientY=b.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return m.prototype.stopPropagation=function(){y.stopPropagation(this.domEvent),this.propagationStopped=!0},m.prototype.preventDefault=function(){y.preventDefault(this.domEvent),this.defaultPrevented=!0},m.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},m.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},m.prototype.getGutterRow=function(){var b=this.getDocumentPosition().row,v=this.editor.session.documentToScreenRow(b,0),h=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return v-h},m.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var b=this.editor,v=b.getSelectionRange();if(v.isEmpty())this.$inSelection=!1;else{var h=this.getDocumentPosition();this.$inSelection=v.contains(h.row,h.column)}return this.$inSelection},m.prototype.getButton=function(){return y.getButton(this.domEvent)},m.prototype.getShiftKey=function(){return this.domEvent.shiftKey},m.prototype.getAccelKey=function(){return M.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},m}();g.MouseEvent=w}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(x,g,A){"use strict";var y=x("../lib/dom"),M=x("../lib/event"),w=x("../lib/useragent"),m=200,b=200,v=5;function h(_){var p=_.editor,S=y.createElement("div");S.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",S.textContent="\xA0";var k=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];k.forEach(function(me){_[me]=this[me]},this),p.on("mousedown",this.onMouseDown.bind(_));var O=p.container,F,D,Z,W,U,L,V=0,$,G,z,K,re;this.onDragStart=function(me){if(this.cancelDrag||!O.draggable){var Pe=this;return setTimeout(function(){Pe.startSelect(),Pe.captureMouse(me)},0),me.preventDefault()}U=p.getSelectionRange();var pe=me.dataTransfer;pe.effectAllowed=p.getReadOnly()?"copy":"copyMove",p.container.appendChild(S),pe.setDragImage&&pe.setDragImage(S,0,0),setTimeout(function(){p.container.removeChild(S)}),pe.clearData(),pe.setData("Text",p.session.getTextRange()),G=!0,this.setState("drag")},this.onDragEnd=function(me){if(O.draggable=!1,G=!1,this.setState(null),!p.getReadOnly()){var Pe=me.dataTransfer.dropEffect;!$&&Pe=="move"&&p.session.remove(p.getSelectionRange()),p.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(me){if(!(p.getReadOnly()||!fe(me.dataTransfer)))return D=me.clientX,Z=me.clientY,F||he(),V++,me.dataTransfer.dropEffect=$=we(me),M.preventDefault(me)},this.onDragOver=function(me){if(!(p.getReadOnly()||!fe(me.dataTransfer)))return D=me.clientX,Z=me.clientY,F||(he(),V++),ce!==null&&(ce=null),me.dataTransfer.dropEffect=$=we(me),M.preventDefault(me)},this.onDragLeave=function(me){if(V--,V<=0&&F)return Ee(),$=null,M.preventDefault(me)},this.onDrop=function(me){if(!!L){var Pe=me.dataTransfer;if(G)switch($){case"move":U.contains(L.row,L.column)?U={start:L,end:L}:U=p.moveText(U,L);break;case"copy":U=p.moveText(U,L,!0);break}else{var pe=Pe.getData("Text");U={start:L,end:p.session.insert(L,pe)},p.focus(),$=null}return Ee(),M.preventDefault(me)}},M.addListener(O,"dragstart",this.onDragStart.bind(_),p),M.addListener(O,"dragend",this.onDragEnd.bind(_),p),M.addListener(O,"dragenter",this.onDragEnter.bind(_),p),M.addListener(O,"dragover",this.onDragOver.bind(_),p),M.addListener(O,"dragleave",this.onDragLeave.bind(_),p),M.addListener(O,"drop",this.onDrop.bind(_),p);function ne(me,Pe){var pe=Date.now(),Ie=!Pe||me.row!=Pe.row,Je=!Pe||me.column!=Pe.column;if(!K||Ie||Je)p.moveCursorToPosition(me),K=pe,re={x:D,y:Z};else{var ke=d(re.x,re.y,D,Z);ke>v?K=null:pe-K>=b&&(p.renderer.scrollCursorIntoView(),K=null)}}function Q(me,Pe){var pe=Date.now(),Ie=p.renderer.layerConfig.lineHeight,Je=p.renderer.layerConfig.characterWidth,ke=p.renderer.scroller.getBoundingClientRect(),De={x:{left:D-ke.left,right:ke.right-D},y:{top:Z-ke.top,bottom:ke.bottom-Z}},Fe=Math.min(De.x.left,De.x.right),Qe=Math.min(De.y.top,De.y.bottom),qe={row:me.row,column:me.column};Fe/Je<=2&&(qe.column+=De.x.left<De.x.right?-3:2),Qe/Ie<=1&&(qe.row+=De.y.top<De.y.bottom?-1:1);var et=me.row!=qe.row,dt=me.column!=qe.column,Ke=!Pe||me.row!=Pe.row;et||dt&&!Ke?z?pe-z>=m&&p.renderer.scrollCursorIntoView(qe):z=pe:z=null}function ue(){var me=L;L=p.renderer.screenToTextCoordinates(D,Z),ne(L,me),Q(L,me)}function he(){U=p.selection.toOrientedRange(),F=p.session.addMarker(U,"ace_selection",p.getSelectionStyle()),p.clearSelection(),p.isFocused()&&p.renderer.$cursorLayer.setBlinking(!1),clearInterval(W),ue(),W=setInterval(ue,20),V=0,M.addListener(document,"mousemove",ve)}function Ee(){clearInterval(W),p.session.removeMarker(F),F=null,p.selection.fromOrientedRange(U),p.isFocused()&&!G&&p.$resetCursorStyle(),U=null,L=null,V=0,z=null,K=null,M.removeListener(document,"mousemove",ve)}var ce=null;function ve(){ce==null&&(ce=setTimeout(function(){ce!=null&&F&&Ee()},20))}function fe(me){var Pe=me.types;return!Pe||Array.prototype.some.call(Pe,function(pe){return pe=="text/plain"||pe=="Text"})}function we(me){var Pe=["copy","copymove","all","uninitialized"],pe=["move","copymove","linkmove","all","uninitialized"],Ie=w.isMac?me.altKey:me.ctrlKey,Je="uninitialized";try{Je=me.dataTransfer.effectAllowed.toLowerCase()}catch(De){}var ke="none";return Ie&&Pe.indexOf(Je)>=0?ke="copy":pe.indexOf(Je)>=0?ke="move":Pe.indexOf(Je)>=0&&(ke="copy"),ke}}(function(){this.dragWait=function(){var _=Date.now()-this.mousedownEvent.time;_>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var _=this.editor.container;_.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(_){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var _=this.editor,p=_.container;p.draggable=!0,_.renderer.$cursorLayer.setBlinking(!1),_.setStyle("ace_dragging");var S=w.isWin?"default":"move";_.renderer.setCursorStyle(S),this.setState("dragReady")},this.onMouseDrag=function(_){var p=this.editor.container;if(w.isIE&&this.state=="dragReady"){var S=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);S>3&&p.dragDrop()}if(this.state==="dragWait"){var S=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);S>0&&(p.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(_){if(!!this.$dragEnabled){this.mousedownEvent=_;var p=this.editor,S=_.inSelection(),k=_.getButton(),O=_.domEvent.detail||1;if(O===1&&k===0&&S){if(_.editor.inMultiSelectMode&&(_.getAccelKey()||_.getShiftKey()))return;this.mousedownEvent.time=Date.now();var F=_.domEvent.target||_.domEvent.srcElement;if("unselectable"in F&&(F.unselectable="on"),p.getDragDelay()){if(w.isWebKit){this.cancelDrag=!0;var D=p.container;D.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(_,this.onMouseDrag.bind(this)),_.defaultPrevented=!0}}}}).call(h.prototype);function d(_,p,S,k){return Math.sqrt(Math.pow(S-_,2)+Math.pow(k-p,2))}g.DragdropHandler=h}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(x,g,A){"use strict";var y=x("./mouse_event").MouseEvent,M=x("../lib/event"),w=x("../lib/dom");g.addTouchListeners=function(m,b){var v="scroll",h,d,_,p,S,k,O=0,F,D=0,Z=0,W=0,U,L;function V(){var ne=window.navigator&&window.navigator.clipboard,Q=!1,ue=function(){var ce=b.getCopyText(),ve=b.session.getUndoManager().hasUndo();L.replaceChild(w.buildDom(Q?["span",!ce&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],ce&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],ce&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],ne&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],ve&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),L.firstChild)},he=function(ce){var ve=ce.target.getAttribute("action");if(ve=="more"||!Q)return Q=!Q,ue();ve=="paste"?ne.readText().then(function(fe){b.execCommand(ve,fe)}):ve&&((ve=="cut"||ve=="copy")&&(ne?ne.writeText(b.getCopyText()):document.execCommand("copy")),b.execCommand(ve)),L.firstChild.style.display="none",Q=!1,ve!="openCommandPallete"&&b.focus()};L=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(ce){v="menu",ce.stopPropagation(),ce.preventDefault(),b.textInput.focus()},ontouchend:function(ce){ce.stopPropagation(),ce.preventDefault(),he(ce)},onclick:he},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],b.container)}function $(){L||V();var ne=b.selection.cursor,Q=b.renderer.textToScreenCoordinates(ne.row,ne.column),ue=b.renderer.textToScreenCoordinates(0,0).pageX,he=b.renderer.scrollLeft,Ee=b.container.getBoundingClientRect();L.style.top=Q.pageY-Ee.top-3+"px",Q.pageX-Ee.left<Ee.width-70?(L.style.left="",L.style.right="10px"):(L.style.right="",L.style.left=ue+he-Ee.left+"px"),L.style.display="",L.firstChild.style.display="none",b.on("input",G)}function G(ne){L&&(L.style.display="none"),b.off("input",G)}function z(){S=null,clearTimeout(S);var ne=b.selection.getRange(),Q=ne.contains(F.row,F.column);(ne.isEmpty()||!Q)&&(b.selection.moveToPosition(F),b.selection.selectWord()),v="wait",$()}function K(){S=null,clearTimeout(S),b.selection.moveToPosition(F);var ne=D>=2?b.selection.getLineRange(F.row):b.session.getBracketRange(F);ne&&!ne.isEmpty()?b.selection.setRange(ne):b.selection.selectWord(),v="wait"}M.addListener(m,"contextmenu",function(ne){if(!!U){var Q=b.textInput.getElement();Q.focus()}},b),M.addListener(m,"touchstart",function(ne){var Q=ne.touches;if(S||Q.length>1){clearTimeout(S),S=null,_=-1,v="zoom";return}U=b.$mouseHandler.isMousePressed=!0;var ue=b.renderer.layerConfig.lineHeight,he=b.renderer.layerConfig.lineHeight,Ee=ne.timeStamp;p=Ee;var ce=Q[0],ve=ce.clientX,fe=ce.clientY;Math.abs(h-ve)+Math.abs(d-fe)>ue&&(_=-1),h=ne.clientX=ve,d=ne.clientY=fe,Z=W=0;var we=new y(ne,b);if(F=we.getDocumentPosition(),Ee-_<500&&Q.length==1&&!O)D++,ne.preventDefault(),ne.button=0,K();else{D=0;var me=b.selection.cursor,Pe=b.selection.isEmpty()?me:b.selection.anchor,pe=b.renderer.$cursorLayer.getPixelPosition(me,!0),Ie=b.renderer.$cursorLayer.getPixelPosition(Pe,!0),Je=b.renderer.scroller.getBoundingClientRect(),ke=b.renderer.layerConfig.offset,De=b.renderer.scrollLeft,Fe=function(dt,Ke){return dt=dt/he,Ke=Ke/ue-.75,dt*dt+Ke*Ke};if(ne.clientX<Je.left){v="zoom";return}var Qe=Fe(ne.clientX-Je.left-pe.left+De,ne.clientY-Je.top-pe.top+ke),qe=Fe(ne.clientX-Je.left-Ie.left+De,ne.clientY-Je.top-Ie.top+ke);Qe<3.5&&qe<3.5&&(v=Qe>qe?"cursor":"anchor"),qe<3.5?v="anchor":Qe<3.5?v="cursor":v="scroll",S=setTimeout(z,450)}_=Ee},b),M.addListener(m,"touchend",function(ne){U=b.$mouseHandler.isMousePressed=!1,k&&clearInterval(k),v=="zoom"?(v="",O=0):S?(b.selection.moveToPosition(F),O=0,$()):v=="scroll"?(re(),G()):$(),clearTimeout(S),S=null},b),M.addListener(m,"touchmove",function(ne){S&&(clearTimeout(S),S=null);var Q=ne.touches;if(!(Q.length>1||v=="zoom")){var ue=Q[0],he=h-ue.clientX,Ee=d-ue.clientY;if(v=="wait")if(he*he+Ee*Ee>4)v="cursor";else return ne.preventDefault();h=ue.clientX,d=ue.clientY,ne.clientX=ue.clientX,ne.clientY=ue.clientY;var ce=ne.timeStamp,ve=ce-p;if(p=ce,v=="scroll"){var fe=new y(ne,b);fe.speed=1,fe.wheelX=he,fe.wheelY=Ee,10*Math.abs(he)<Math.abs(Ee)&&(he=0),10*Math.abs(Ee)<Math.abs(he)&&(Ee=0),ve!=0&&(Z=he/ve,W=Ee/ve),b._emit("mousewheel",fe),fe.propagationStopped||(Z=W=0)}else{var we=new y(ne,b),me=we.getDocumentPosition();v=="cursor"?b.selection.moveCursorToPosition(me):v=="anchor"&&b.selection.setSelectionAnchor(me.row,me.column),b.renderer.scrollCursorIntoView(me),ne.preventDefault()}}},b);function re(){O+=60,k=setInterval(function(){O--<=0&&(clearInterval(k),k=null),Math.abs(Z)<.01&&(Z=0),Math.abs(W)<.01&&(W=0),O<20&&(Z=.9*Z),O<20&&(W=.9*W);var ne=b.session.getScrollTop();b.renderer.scrollBy(10*Z,10*W),ne==b.session.getScrollTop()&&(O=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(x,g,A){"use strict";var y=x("../lib/event"),M=x("../lib/useragent"),w=x("./default_handlers").DefaultHandlers,m=x("./default_gutter_handler").GutterHandler,b=x("./mouse_event").MouseEvent,v=x("./dragdrop_handler").DragdropHandler,h=x("./touch_handler").addTouchListeners,d=x("../config"),_=function(){function p(S){var k=this;this.editor=S,new w(this),new m(this),new v(this);var O=function(W){var U=!document.hasFocus||!document.hasFocus()||!S.isFocused()&&document.activeElement==(S.textInput&&S.textInput.getElement());U&&window.focus(),S.focus(),setTimeout(function(){S.isFocused()||S.focus()})},F=S.renderer.getMouseEventTarget();y.addListener(F,"click",this.onMouseEvent.bind(this,"click"),S),y.addListener(F,"mousemove",this.onMouseMove.bind(this,"mousemove"),S),y.addMultiMouseDownListener([F,S.renderer.scrollBarV&&S.renderer.scrollBarV.inner,S.renderer.scrollBarH&&S.renderer.scrollBarH.inner,S.textInput&&S.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",S),y.addMouseWheelListener(S.container,this.onMouseWheel.bind(this,"mousewheel"),S),h(S.container,S);var D=S.renderer.$gutter;y.addListener(D,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),S),y.addListener(D,"click",this.onMouseEvent.bind(this,"gutterclick"),S),y.addListener(D,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),S),y.addListener(D,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),S),y.addListener(F,"mousedown",O,S),y.addListener(D,"mousedown",O,S),M.isIE&&S.renderer.scrollBarV&&(y.addListener(S.renderer.scrollBarV.element,"mousedown",O,S),y.addListener(S.renderer.scrollBarH.element,"mousedown",O,S)),S.on("mousemove",function(Z){if(!(k.state||k.$dragDelay||!k.$dragEnabled)){var W=S.renderer.screenToTextCoordinates(Z.x,Z.y),U=S.session.selection.getRange(),L=S.renderer;!U.isEmpty()&&U.insideStart(W.row,W.column)?L.setCursorStyle("default"):L.setCursorStyle("")}},S)}return p.prototype.onMouseEvent=function(S,k){!this.editor.session||this.editor._emit(S,new b(k,this.editor))},p.prototype.onMouseMove=function(S,k){var O=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!O||!O.length||this.editor._emit(S,new b(k,this.editor))},p.prototype.onMouseWheel=function(S,k){var O=new b(k,this.editor);O.speed=this.$scrollSpeed*2,O.wheelX=k.wheelX,O.wheelY=k.wheelY,this.editor._emit(S,O)},p.prototype.setState=function(S){this.state=S},p.prototype.captureMouse=function(S,k){this.x=S.x,this.y=S.y,this.isMousePressed=!0;var O=this.editor,F=this.editor.renderer;F.$isMousePressed=!0;var D=this,Z=function(G){if(!!G){if(M.isWebKit&&!G.which&&D.releaseMouse)return D.releaseMouse();D.x=G.clientX,D.y=G.clientY,k&&k(G),D.mouseEvent=new b(G,D.editor),D.$mouseMoved=!0}},W=function(G){O.off("beforeEndOperation",L),clearInterval(V),O.session&&U(),D[D.state+"End"]&&D[D.state+"End"](G),D.state="",D.isMousePressed=F.$isMousePressed=!1,F.$keepTextAreaAtCursor&&F.$moveTextAreaToCursor(),D.$onCaptureMouseMove=D.releaseMouse=null,G&&D.onMouseEvent("mouseup",G),O.endOperation()},U=function(){D[D.state]&&D[D.state](),D.$mouseMoved=!1};if(M.isOldIE&&S.domEvent.type=="dblclick")return setTimeout(function(){W(S)});var L=function(G){!D.releaseMouse||O.curOp.command.name&&O.curOp.selectionChanged&&(D[D.state+"End"]&&D[D.state+"End"](),D.state="",D.releaseMouse())};O.on("beforeEndOperation",L),O.startOperation({command:{name:"mouse"}}),D.$onCaptureMouseMove=Z,D.releaseMouse=y.capture(this.editor.container,Z,W);var V=setInterval(U,20)},p.prototype.cancelContextMenu=function(){var S=function(k){k&&k.domEvent&&k.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",S),k&&k.domEvent&&y.stopEvent(k.domEvent))}.bind(this);setTimeout(S,10),this.editor.on("nativecontextmenu",S)},p.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},p}();_.prototype.releaseMouse=null,d.defineOptions(_.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:M.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),g.MouseHandler=_}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(x,g,A){"use strict";var y=x("../lib/dom"),M=function(){function w(m){m.on("click",function(b){var v=b.getDocumentPosition(),h=m.session,d=h.getFoldAt(v.row,v.column,1);d&&(b.getAccelKey()?h.removeFold(d):h.expandFold(d),b.stop());var _=b.domEvent&&b.domEvent.target;_&&y.hasCssClass(_,"ace_inline_button")&&y.hasCssClass(_,"ace_toggle_wrap")&&(h.setOption("wrap",!h.getUseWrapMode()),m.renderer.scrollCursorIntoView())}),m.on("gutterclick",function(b){var v=m.renderer.$gutterLayer.getRegion(b);if(v=="foldWidgets"){var h=b.getDocumentPosition().row,d=m.session;d.foldWidgets&&d.foldWidgets[h]&&m.session.onFoldWidgetClick(h,b),m.isFocused()||m.focus(),b.stop()}}),m.on("gutterdblclick",function(b){var v=m.renderer.$gutterLayer.getRegion(b);if(v=="foldWidgets"){var h=b.getDocumentPosition().row,d=m.session,_=d.getParentFoldRangeData(h,!0),p=_.range||_.firstRange;if(p){h=p.start.row;var S=d.getFoldAt(h,d.getLine(h).length,1);S?d.removeFold(S):(d.addFold("...",p),m.renderer.scrollCursorIntoView({row:p.start.row,column:0}))}b.stop()}})}return w}();g.FoldHandler=M}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(x,g,A){"use strict";var y=x("../lib/keys"),M=x("../lib/event"),w=function(){function m(b){this.$editor=b,this.$data={editor:b},this.$handlers=[],this.setDefaultHandler(b.commands)}return m.prototype.setDefaultHandler=function(b){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=b,this.addKeyboardHandler(b,0)},m.prototype.setKeyboardHandler=function(b){var v=this.$handlers;if(v[v.length-1]!=b){for(;v[v.length-1]&&v[v.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(v[v.length-1]);this.addKeyboardHandler(b,1)}},m.prototype.addKeyboardHandler=function(b,v){if(!!b){typeof b=="function"&&!b.handleKeyboard&&(b.handleKeyboard=b);var h=this.$handlers.indexOf(b);h!=-1&&this.$handlers.splice(h,1),v==null?this.$handlers.push(b):this.$handlers.splice(v,0,b),h==-1&&b.attach&&b.attach(this.$editor)}},m.prototype.removeKeyboardHandler=function(b){var v=this.$handlers.indexOf(b);return v==-1?!1:(this.$handlers.splice(v,1),b.detach&&b.detach(this.$editor),!0)},m.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},m.prototype.getStatusText=function(){var b=this.$data,v=b.editor;return this.$handlers.map(function(h){return h.getStatusText&&h.getStatusText(v,b)||""}).filter(Boolean).join(" ")},m.prototype.$callKeyboardHandlers=function(b,v,h,d){for(var _,p=!1,S=this.$editor.commands,k=this.$handlers.length;k--&&(_=this.$handlers[k].handleKeyboard(this.$data,b,v,h,d),!(!(!_||!_.command)&&(_.command=="null"?p=!0:p=S.exec(_.command,this.$editor,_.args,d),p&&d&&b!=-1&&_.passEvent!=!0&&_.command.passEvent!=!0&&M.stopEvent(d),p))););return!p&&b==-1&&(_={command:"insertstring"},p=S.exec("insertstring",this.$editor,v)),p&&this.$editor._signal&&this.$editor._signal("keyboardActivity",_),p},m.prototype.onCommandKey=function(b,v,h){var d=y.keyCodeToString(h);return this.$callKeyboardHandlers(v,d,h,b)},m.prototype.onTextInput=function(b){return this.$callKeyboardHandlers(-1,b)},m}();g.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(x,g,A){"use strict";var y=["\u0621","\u0641"],M=["\u063A","\u064A"],w=0,m=0,b=!1,v=!1,h=!1,d=!1,_=!1,p=!1,S=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],k=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],O=0,F=1,D=0,Z=1,W=2,U=3,L=4,V=5,$=6,G=7,z=8,K=9,re=10,ne=11,Q=12,ue=13,he=14,Ee=15,ce=16,ve=17,fe=18,we=[fe,fe,fe,fe,fe,fe,fe,fe,fe,$,V,$,z,V,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,V,V,V,$,z,L,L,ne,ne,ne,L,L,L,L,L,re,K,re,K,K,W,W,W,W,W,W,W,W,W,W,K,L,L,L,L,L,L,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,L,L,L,L,L,L,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,L,L,L,L,fe,fe,fe,fe,fe,fe,V,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,fe,K,L,ne,ne,ne,ne,L,L,L,L,D,L,L,fe,L,L,ne,ne,W,W,L,D,L,L,L,W,D,L,L,L,L,L],me=[z,z,z,z,z,z,z,z,z,z,z,fe,fe,fe,D,Z,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,z,V,ue,he,Ee,ce,ve,K,ne,ne,ne,ne,ne,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,K,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,L,z];function Pe(De,Fe,Qe,qe){var et=w?k:S,dt=null,Ke=null,Ge=null,wt=0,Vt=null,gt=null,it=-1,Le=null,ct=null,at=[];if(!qe)for(Le=0,qe=[];Le<Qe;Le++)qe[Le]=Je(De[Le]);for(m=w,b=!1,v=!1,h=!1,d=!1,ct=0;ct<Qe;ct++){if(dt=wt,at[ct]=Ke=Ie(De,qe,at,ct),wt=et[dt][Ke],Vt=wt&240,wt&=15,Fe[ct]=Ge=et[wt][5],Vt>0)if(Vt==16){for(Le=it;Le<ct;Le++)Fe[Le]=1;it=-1}else it=-1;if(gt=et[wt][6],gt)it==-1&&(it=ct);else if(it>-1){for(Le=it;Le<ct;Le++)Fe[Le]=Ge;it=-1}qe[ct]==V&&(Fe[ct]=0),m|=Ge}if(d){for(Le=0;Le<Qe;Le++)if(qe[Le]==$){Fe[Le]=w;for(var jt=Le-1;jt>=0&&qe[jt]==z;jt--)Fe[jt]=w}}}function pe(De,Fe,Qe){if(!(m<De)){if(De==1&&w==F&&!h){Qe.reverse();return}for(var qe=Qe.length,et=0,dt,Ke,Ge,wt;et<qe;){if(Fe[et]>=De){for(dt=et+1;dt<qe&&Fe[dt]>=De;)dt++;for(Ke=et,Ge=dt-1;Ke<Ge;Ke++,Ge--)wt=Qe[Ke],Qe[Ke]=Qe[Ge],Qe[Ge]=wt;et=dt}et++}}}function Ie(De,Fe,Qe,qe){var et=Fe[qe],dt,Ke,Ge,wt;switch(et){case D:case Z:b=!1;case L:case U:return et;case W:return b?U:W;case G:return b=!0,v=!0,Z;case z:return L;case K:return qe<1||qe+1>=Fe.length||(dt=Qe[qe-1])!=W&&dt!=U||(Ke=Fe[qe+1])!=W&&Ke!=U?L:(b&&(Ke=U),Ke==dt?Ke:L);case re:return dt=qe>0?Qe[qe-1]:V,dt==W&&qe+1<Fe.length&&Fe[qe+1]==W?W:L;case ne:if(qe>0&&Qe[qe-1]==W)return W;if(b)return L;for(wt=qe+1,Ge=Fe.length;wt<Ge&&Fe[wt]==ne;)wt++;return wt<Ge&&Fe[wt]==W?W:L;case Q:for(Ge=Fe.length,wt=qe+1;wt<Ge&&Fe[wt]==Q;)wt++;if(wt<Ge){var Vt=De[qe],gt=Vt>=1425&&Vt<=2303||Vt==64286;if(dt=Fe[wt],gt&&(dt==Z||dt==G))return Z}return qe<1||(dt=Fe[qe-1])==V?L:Qe[qe-1];case V:return b=!1,h=!0,w;case $:return d=!0,L;case ue:case he:case ce:case ve:case Ee:b=!1;case fe:return L}}function Je(De){var Fe=De.charCodeAt(0),Qe=Fe>>8;return Qe==0?Fe>191?D:we[Fe]:Qe==5?/[\u0591-\u05f4]/.test(De)?Z:D:Qe==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(De)?Q:/[\u0660-\u0669\u066b-\u066c]/.test(De)?U:Fe==1642?ne:/[\u06f0-\u06f9]/.test(De)?W:G:Qe==32&&Fe<=8287?me[Fe&255]:Qe==254&&Fe>=65136?G:L}function ke(De){return De>="\u064B"&&De<="\u0655"}g.L=D,g.R=Z,g.EN=W,g.ON_R=3,g.AN=4,g.R_H=5,g.B=6,g.RLE=7,g.DOT="\xB7",g.doBidiReorder=function(De,Fe,Qe){if(De.length<2)return{};var qe=De.split(""),et=new Array(qe.length),dt=new Array(qe.length),Ke=[];w=Qe?F:O,Pe(qe,Ke,qe.length,Fe);for(var Ge=0;Ge<et.length;et[Ge]=Ge,Ge++);pe(2,Ke,et),pe(1,Ke,et);for(var Ge=0;Ge<et.length-1;Ge++)Fe[Ge]===U?Ke[Ge]=g.AN:Ke[Ge]===Z&&(Fe[Ge]>G&&Fe[Ge]<ue||Fe[Ge]===L||Fe[Ge]===fe)?Ke[Ge]=g.ON_R:Ge>0&&qe[Ge-1]==="\u0644"&&/\u0622|\u0623|\u0625|\u0627/.test(qe[Ge])&&(Ke[Ge-1]=Ke[Ge]=g.R_H,Ge++);qe[qe.length-1]===g.DOT&&(Ke[qe.length-1]=g.B),qe[0]==="\u202B"&&(Ke[0]=g.RLE);for(var Ge=0;Ge<et.length;Ge++)dt[Ge]=Ke[et[Ge]];return{logicalFromVisual:et,bidiLevels:dt}},g.hasBidiCharacters=function(De,Fe){for(var Qe=!1,qe=0;qe<De.length;qe++)Fe[qe]=Je(De.charAt(qe)),!Qe&&(Fe[qe]==Z||Fe[qe]==G||Fe[qe]==U)&&(Qe=!0);return Qe},g.getVisualFromLogicalIdx=function(De,Fe){for(var Qe=0;Qe<Fe.logicalFromVisual.length;Qe++)if(Fe.logicalFromVisual[Qe]==De)return Qe;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(x,g,A){"use strict";var y=x("./lib/bidiutil"),M=x("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,m=function(){function b(v){this.session=v,this.bidiMap={},this.currentRow=null,this.bidiUtil=y,this.charWidths=[],this.EOL="\xAC",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="\xB6",this.RLE="\u202B",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=w.test(v.getValue())}return b.prototype.isBidiRow=function(v,h,d){return this.seenBidi?(v!==this.currentRow&&(this.currentRow=v,this.updateRowLine(h,d),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},b.prototype.onChange=function(v){this.seenBidi?this.currentRow=null:v.action=="insert"&&w.test(v.lines.join(`
|
||
`))&&(this.seenBidi=!0,this.currentRow=null)},b.prototype.getDocumentRow=function(){var v=0,h=this.session.$screenRowCache;if(h.length){var d=this.session.$getRowCacheIndex(h,this.currentRow);d>=0&&(v=this.session.$docRowCache[d])}return v},b.prototype.getSplitIndex=function(){var v=0,h=this.session.$screenRowCache;if(h.length)for(var d,_=this.session.$getRowCacheIndex(h,this.currentRow);this.currentRow-v>0&&(d=this.session.$getRowCacheIndex(h,this.currentRow-v-1),d===_);)_=d,v++;else v=this.currentRow;return v},b.prototype.updateRowLine=function(v,h){v===void 0&&(v=this.getDocumentRow());var d=v===this.session.getLength()-1,_=d?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(v),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var p=this.session.$wrapData[v];p&&(h===void 0&&(h=this.getSplitIndex()),h>0&&p.length?(this.wrapIndent=p.indent,this.wrapOffset=this.wrapIndent*this.charWidths[y.L],this.line=h<p.length?this.line.substring(p[h-1],p[h]):this.line.substring(p[p.length-1])):this.line=this.line.substring(0,p[h]),h==p.length&&(this.line+=this.showInvisibles?_:y.DOT))}else this.line+=this.showInvisibles?_:y.DOT;var S=this.session,k=0,O;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(F,D){return F===" "||S.isFullWidth(F.charCodeAt(0))?(O=F===" "?S.getScreenTabSize(D+k):2,k+=O-1,M.stringRepeat(y.DOT,O)):F}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==y.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},b.prototype.updateBidiMap=function(){var v=[];y.hasBidiCharacters(this.line,v)||this.isRtlDir?this.bidiMap=y.doBidiReorder(this.line,v,this.isRtlDir):this.bidiMap={}},b.prototype.markAsDirty=function(){this.currentRow=null},b.prototype.updateCharacterWidths=function(v){if(this.characterWidth!==v.$characterSize.width){this.fontMetrics=v;var h=this.characterWidth=v.$characterSize.width,d=v.$measureCharWidth("\u05D4");this.charWidths[y.L]=this.charWidths[y.EN]=this.charWidths[y.ON_R]=h,this.charWidths[y.R]=this.charWidths[y.AN]=d,this.charWidths[y.R_H]=d*.45,this.charWidths[y.B]=this.charWidths[y.RLE]=0,this.currentRow=null}},b.prototype.setShowInvisibles=function(v){this.showInvisibles=v,this.currentRow=null},b.prototype.setEolChar=function(v){this.EOL=v},b.prototype.setContentWidth=function(v){this.contentWidth=v},b.prototype.isRtlLine=function(v){return this.$isRtl?!0:v!=null?this.session.getLine(v).charAt(0)==this.RLE:this.isRtlDir},b.prototype.setRtlDirection=function(v,h){for(var d=v.getCursorPosition(),_=v.selection.getSelectionAnchor().row;_<=d.row;_++)!h&&v.session.getLine(_).charAt(0)===v.session.$bidiHandler.RLE?v.session.doc.removeInLine(_,0,1):h&&v.session.getLine(_).charAt(0)!==v.session.$bidiHandler.RLE&&v.session.doc.insert({column:0,row:_},v.session.$bidiHandler.RLE)},b.prototype.getPosLeft=function(v){v-=this.wrapIndent;var h=this.line.charAt(0)===this.RLE?1:0,d=v>h?this.session.getOverwrite()?v:v-1:h,_=y.getVisualFromLogicalIdx(d,this.bidiMap),p=this.bidiMap.bidiLevels,S=0;!this.session.getOverwrite()&&v<=h&&p[_]%2!=0&&_++;for(var k=0;k<_;k++)S+=this.charWidths[p[k]];return!this.session.getOverwrite()&&v>h&&p[_]%2==0&&(S+=this.charWidths[p[_]]),this.wrapIndent&&(S+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(S+=this.rtlLineOffset),S},b.prototype.getSelections=function(v,h){var d=this.bidiMap,_=d.bidiLevels,p,S=[],k=0,O=Math.min(v,h)-this.wrapIndent,F=Math.max(v,h)-this.wrapIndent,D=!1,Z=!1,W=0;this.wrapIndent&&(k+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var U,L=0;L<_.length;L++)U=d.logicalFromVisual[L],p=_[L],D=U>=O&&U<F,D&&!Z?W=k:!D&&Z&&S.push({left:W,width:k-W}),k+=this.charWidths[p],Z=D;if(D&&L===_.length&&S.push({left:W,width:k-W}),this.isRtlDir)for(var V=0;V<S.length;V++)S[V].left+=this.rtlLineOffset;return S},b.prototype.offsetToCol=function(v){this.isRtlDir&&(v-=this.rtlLineOffset);var h=0,v=Math.max(v,0),d=0,_=0,p=this.bidiMap.bidiLevels,S=this.charWidths[p[_]];for(this.wrapIndent&&(v-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);v>d+S/2;){if(d+=S,_===p.length-1){S=0;break}S=this.charWidths[p[++_]]}return _>0&&p[_-1]%2!=0&&p[_]%2==0?(v<d&&_--,h=this.bidiMap.logicalFromVisual[_]):_>0&&p[_-1]%2==0&&p[_]%2!=0?h=1+(v>d?this.bidiMap.logicalFromVisual[_]:this.bidiMap.logicalFromVisual[_-1]):this.isRtlDir&&_===p.length-1&&S===0&&p[_-1]%2==0||!this.isRtlDir&&_===0&&p[_]%2!=0?h=1+this.bidiMap.logicalFromVisual[_]:(_>0&&p[_-1]%2!=0&&S!==0&&_--,h=this.bidiMap.logicalFromVisual[_]),h===0&&this.isRtlDir&&h++,h+this.wrapIndent},b}();g.BidiHandler=m}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(x,g,A){"use strict";var y=x("./lib/oop"),M=x("./lib/lang"),w=x("./lib/event_emitter").EventEmitter,m=x("./range").Range,b=function(h){this.session=h,this.doc=h.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var d=this;this.cursor.on("change",function(_){d.$cursorChanged=!0,d.$silent||d._emit("changeCursor"),!d.$isEmpty&&!d.$silent&&d._emit("changeSelection"),!d.$keepDesiredColumnOnChange&&_.old.column!=_.value.column&&(d.$desiredColumn=null)}),this.anchor.on("change",function(){d.$anchorChanged=!0,!d.$isEmpty&&!d.$silent&&d._emit("changeSelection")})};(function(){y.implement(this,w),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setAnchor=function(v,h){this.$isEmpty=!1,this.anchor.setPosition(v,h)},this.setSelectionAnchor=this.setAnchor,this.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionAnchor=this.getAnchor,this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var v=this.anchor,h=this.lead;return v.row>h.row||v.row==h.row&&v.column>h.column},this.getRange=function(){var v=this.anchor,h=this.lead;return this.$isEmpty?m.fromPoints(h,h):this.isBackwards()?m.fromPoints(h,v):m.fromPoints(v,h)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(v,h){var d=h?v.end:v.start,_=h?v.start:v.end;this.$setSelection(d.row,d.column,_.row,_.column)},this.$setSelection=function(v,h,d,_){if(!this.$silent){var p=this.$isEmpty,S=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(v,h),this.cursor.setPosition(d,_),this.$isEmpty=!m.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||p!=this.$isEmpty||S)&&this._emit("changeSelection")}},this.$moveSelection=function(v){var h=this.lead;this.$isEmpty&&this.setSelectionAnchor(h.row,h.column),v.call(this)},this.selectTo=function(v,h){this.$moveSelection(function(){this.moveCursorTo(v,h)})},this.selectToPosition=function(v){this.$moveSelection(function(){this.moveCursorToPosition(v)})},this.moveTo=function(v,h){this.clearSelection(),this.moveCursorTo(v,h)},this.moveToPosition=function(v){this.clearSelection(),this.moveCursorToPosition(v)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(v,h){if(typeof h=="undefined"){var d=v||this.lead;v=d.row,h=d.column}return this.session.getWordRange(v,h)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var v=this.getCursor(),h=this.session.getAWordRange(v.row,v.column);this.setSelectionRange(h)},this.getLineRange=function(v,h){var d=typeof v=="number"?v:this.lead.row,_,p=this.session.getFoldLine(d);return p?(d=p.start.row,_=p.end.row):_=d,h===!0?new m(d,0,_,this.session.getLine(_).length):new m(d,0,_+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(v,h,d){var _=v.column,p=v.column+h;return d<0&&(_=v.column-h,p=v.column),this.session.isTabStop(v)&&this.doc.getLine(v.row).slice(_,p).split(" ").length-1==h},this.moveCursorLeft=function(){var v=this.lead.getPosition(),h;if(h=this.session.getFoldAt(v.row,v.column,-1))this.moveCursorTo(h.start.row,h.start.column);else if(v.column===0)v.row>0&&this.moveCursorTo(v.row-1,this.doc.getLine(v.row-1).length);else{var d=this.session.getTabSize();this.wouldMoveIntoSoftTab(v,d,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-d):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var v=this.lead.getPosition(),h;if(h=this.session.getFoldAt(v.row,v.column,1))this.moveCursorTo(h.end.row,h.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var d=this.session.getTabSize(),v=this.lead;this.wouldMoveIntoSoftTab(v,d,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,d):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var v=this.lead.row,h=this.lead.column,d=this.session.documentToScreenRow(v,h),_=this.session.screenToDocumentPosition(d,0),p=this.session.getDisplayLine(v,null,_.row,_.column),S=p.match(/^\s*/);S[0].length!=h&&!this.session.$useEmacsStyleLineStart&&(_.column+=S[0].length),this.moveCursorToPosition(_)},this.moveCursorLineEnd=function(){var v=this.lead,h=this.session.getDocumentLastRowColumnPosition(v.row,v.column);if(this.lead.column==h.column){var d=this.session.getLine(h.row);if(h.column==d.length){var _=d.search(/\s+$/);_>0&&(h.column=_)}}this.moveCursorTo(h.row,h.column)},this.moveCursorFileEnd=function(){var v=this.doc.getLength()-1,h=this.doc.getLine(v).length;this.moveCursorTo(v,h)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var v=this.lead.row,h=this.lead.column,d=this.doc.getLine(v),_=d.substring(h);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var p=this.session.getFoldAt(v,h,1);if(p){this.moveCursorTo(p.end.row,p.end.column);return}if(this.session.nonTokenRe.exec(_)&&(h+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,_=d.substring(h)),h>=d.length){this.moveCursorTo(v,d.length),this.moveCursorRight(),v<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(_)&&(h+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(v,h)},this.moveCursorLongWordLeft=function(){var v=this.lead.row,h=this.lead.column,d;if(d=this.session.getFoldAt(v,h,-1)){this.moveCursorTo(d.start.row,d.start.column);return}var _=this.session.getFoldStringAt(v,h,-1);_==null&&(_=this.doc.getLine(v).substring(0,h));var p=M.stringReverse(_);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(p)&&(h-=this.session.nonTokenRe.lastIndex,p=p.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),h<=0){this.moveCursorTo(v,0),this.moveCursorLeft(),v>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(p)&&(h-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(v,h)},this.$shortWordEndIndex=function(v){var h=0,d,_=/\s/,p=this.session.tokenRe;if(p.lastIndex=0,this.session.tokenRe.exec(v))h=this.session.tokenRe.lastIndex;else{for(;(d=v[h])&&_.test(d);)h++;if(h<1){for(p.lastIndex=0;(d=v[h])&&!p.test(d);)if(p.lastIndex=0,h++,_.test(d))if(h>2){h--;break}else{for(;(d=v[h])&&_.test(d);)h++;if(h>2)break}}}return p.lastIndex=0,h},this.moveCursorShortWordRight=function(){var v=this.lead.row,h=this.lead.column,d=this.doc.getLine(v),_=d.substring(h),p=this.session.getFoldAt(v,h,1);if(p)return this.moveCursorTo(p.end.row,p.end.column);if(h==d.length){var S=this.doc.getLength();do v++,_=this.doc.getLine(v);while(v<S&&/^\s*$/.test(_));/^\s+/.test(_)||(_=""),h=0}var k=this.$shortWordEndIndex(_);this.moveCursorTo(v,h+k)},this.moveCursorShortWordLeft=function(){var v=this.lead.row,h=this.lead.column,d;if(d=this.session.getFoldAt(v,h,-1))return this.moveCursorTo(d.start.row,d.start.column);var _=this.session.getLine(v).substring(0,h);if(h===0){do v--,_=this.doc.getLine(v);while(v>0&&/^\s*$/.test(_));h=_.length,/\s+$/.test(_)||(_="")}var p=M.stringReverse(_),S=this.$shortWordEndIndex(p);return this.moveCursorTo(v,h-S)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(v,h){var d=this.session.documentToScreenPosition(this.lead.row,this.lead.column),_;if(h===0&&(v!==0&&(this.session.$bidiHandler.isBidiRow(d.row,this.lead.row)?(_=this.session.$bidiHandler.getPosLeft(d.column),d.column=Math.round(_/this.session.$bidiHandler.charWidths[0])):_=d.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?d.column=this.$desiredColumn:this.$desiredColumn=d.column),v!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var p=this.session.lineWidgets[this.lead.row];v<0?v-=p.rowsAbove||0:v>0&&(v+=p.rowCount-(p.rowsAbove||0))}var S=this.session.screenToDocumentPosition(d.row+v,d.column,_);v!==0&&h===0&&S.row===this.lead.row&&S.column===this.lead.column,this.moveCursorTo(S.row,S.column+h,h===0)},this.moveCursorToPosition=function(v){this.moveCursorTo(v.row,v.column)},this.moveCursorTo=function(v,h,d){var _=this.session.getFoldAt(v,h,1);_&&(v=_.start.row,h=_.start.column),this.$keepDesiredColumnOnChange=!0;var p=this.session.getLine(v);/[\uDC00-\uDFFF]/.test(p.charAt(h))&&p.charAt(h-1)&&(this.lead.row==v&&this.lead.column==h+1?h=h-1:h=h+1),this.lead.setPosition(v,h),this.$keepDesiredColumnOnChange=!1,d||(this.$desiredColumn=null)},this.moveCursorToScreen=function(v,h,d){var _=this.session.screenToDocumentPosition(v,h);this.moveCursorTo(_.row,_.column,d)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(v){this.setSelectionRange(v,v.cursor==v.start),this.$desiredColumn=v.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(v){var h=this.getRange();return v?(v.start.column=h.start.column,v.start.row=h.start.row,v.end.column=h.end.column,v.end.row=h.end.row):v=h,v.cursor=this.isBackwards()?v.start:v.end,v.desiredColumn=this.$desiredColumn,v},this.getRangeOfMovements=function(v){var h=this.getCursor();try{v(this);var d=this.getCursor();return m.fromPoints(h,d)}catch(_){return m.fromPoints(h,h)}finally{this.moveCursorToPosition(h)}},this.toJSON=function(){if(this.rangeCount)var v=this.ranges.map(function(h){var d=h.clone();return d.isBackwards=h.cursor==h.start,d});else{var v=this.getRange();v.isBackwards=this.isBackwards()}return v},this.fromJSON=function(v){if(v.start==null)if(this.rangeList&&v.length>1){this.toSingleRange(v[0]);for(var h=v.length;h--;){var d=m.fromPoints(v[h].start,v[h].end);v[h].isBackwards&&(d.cursor=d.start),this.addRange(d,!0)}return}else v=v[0];this.rangeList&&this.toSingleRange(v),this.setSelectionRange(v,v.isBackwards)},this.isEqual=function(v){if((v.length||this.rangeCount)&&v.length!=this.rangeCount)return!1;if(!v.length||!this.ranges)return this.getRange().isEqual(v);for(var h=this.ranges.length;h--;)if(!this.ranges[h].isEqual(v[h]))return!1;return!0}}).call(b.prototype),g.Selection=b}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(x,g,A){"use strict";var y=x("./config"),M=2e3,w=function(){function m(b){this.states=b,this.regExps={},this.matchMappings={};for(var v in this.states){for(var h=this.states[v],d=[],_=0,p=this.matchMappings[v]={defaultToken:"text"},S="g",k=[],O=0;O<h.length;O++){var F=h[O];if(F.defaultToken&&(p.defaultToken=F.defaultToken),F.caseInsensitive&&S.indexOf("i")===-1&&(S+="i"),F.unicode&&S.indexOf("u")===-1&&(S+="u"),F.regex!=null){F.regex instanceof RegExp&&(F.regex=F.regex.toString().slice(1,-1));var D=F.regex,Z=new RegExp("(?:("+D+")|(.))").exec("a").length-2;Array.isArray(F.token)?F.token.length==1||Z==1?F.token=F.token[0]:Z-1!=F.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:F,groupCount:Z-1}),F.token=F.token[0]):(F.tokenArray=F.token,F.token=null,F.onMatch=this.$arrayTokens):typeof F.token=="function"&&!F.onMatch&&(Z>1?F.onMatch=this.$applyToken:F.onMatch=F.token),Z>1&&(/\\\d/.test(F.regex)?D=F.regex.replace(/\\([0-9]+)/g,function(W,U){return"\\"+(parseInt(U,10)+_+1)}):(Z=1,D=this.removeCapturingGroups(F.regex)),!F.splitRegex&&typeof F.token!="string"&&k.push(F)),p[_]=O,_+=Z,d.push(D),F.onMatch||(F.onMatch=null)}}d.length||(p[0]=0,d.push("$")),k.forEach(function(W){W.splitRegex=this.createSplitterRegexp(W.regex,S)},this),this.regExps[v]=new RegExp("("+d.join(")|(")+")|($)",S)}}return m.prototype.$setMaxTokenCount=function(b){M=b|0},m.prototype.$applyToken=function(b){var v=this.splitRegex.exec(b).slice(1),h=this.token.apply(this,v);if(typeof h=="string")return[{type:h,value:b}];for(var d=[],_=0,p=h.length;_<p;_++)v[_]&&(d[d.length]={type:h[_],value:v[_]});return d},m.prototype.$arrayTokens=function(b){if(!b)return[];var v=this.splitRegex.exec(b);if(!v)return"text";for(var h=[],d=this.tokenArray,_=0,p=d.length;_<p;_++)v[_+1]&&(h[h.length]={type:d[_],value:v[_+1]});return h},m.prototype.removeCapturingGroups=function(b){var v=b.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(h,d){return d?"(?:":h});return v},m.prototype.createSplitterRegexp=function(b,v){if(b.indexOf("(?=")!=-1){var h=0,d=!1,_={};b.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(p,S,k,O,F,D){return d?d=F!="]":F?d=!0:O?(h==_.stack&&(_.end=D+1,_.stack=-1),h--):k&&(h++,k.length!=1&&(_.stack=h,_.start=D)),p}),_.end!=null&&/^\)*$/.test(b.substr(_.end))&&(b=b.substring(0,_.start)+b.substr(_.end))}return b.charAt(0)!="^"&&(b="^"+b),b.charAt(b.length-1)!="$"&&(b+="$"),new RegExp(b,(v||"").replace("g",""))},m.prototype.getLineTokens=function(b,v){if(v&&typeof v!="string"){var h=v.slice(0);v=h[0],v==="#tmp"&&(h.shift(),v=h.shift())}else var h=[];var d=v||"start",_=this.states[d];_||(d="start",_=this.states[d]);var p=this.matchMappings[d],S=this.regExps[d];S.lastIndex=0;for(var k,O=[],F=0,D=0,Z={type:null,value:""};k=S.exec(b);){var W=p.defaultToken,U=null,L=k[0],V=S.lastIndex;if(V-L.length>F){var $=b.substring(F,V-L.length);Z.type==W?Z.value+=$:(Z.type&&O.push(Z),Z={type:W,value:$})}for(var G=0;G<k.length-2;G++)if(k[G+1]!==void 0){U=_[p[G]],U.onMatch?W=U.onMatch(L,d,h,b):W=U.token,U.next&&(typeof U.next=="string"?d=U.next:d=U.next(d,h),_=this.states[d],_||(this.reportError("state doesn't exist",d),d="start",_=this.states[d]),p=this.matchMappings[d],F=V,S=this.regExps[d],S.lastIndex=V),U.consumeLineEnd&&(F=V);break}if(L){if(typeof W=="string")(!U||U.merge!==!1)&&Z.type===W?Z.value+=L:(Z.type&&O.push(Z),Z={type:W,value:L});else if(W){Z.type&&O.push(Z),Z={type:null,value:""};for(var G=0;G<W.length;G++)O.push(W[G])}}if(F==b.length)break;if(F=V,D++>M){for(D>2*b.length&&this.reportError("infinite loop with in ace tokenizer",{startState:v,line:b});F<b.length;)Z.type&&O.push(Z),Z={value:b.substring(F,F+=500),type:"overflow"};d="start",h=[];break}}return Z.type&&O.push(Z),h.length>1&&h[0]!==d&&h.unshift("#tmp",d),{tokens:O,state:h.length?h:d}},m}();w.prototype.reportError=y.reportError,g.Tokenizer=w}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(x,g,A){"use strict";var y=x("../lib/lang"),M=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(b,v){if(!v){for(var h in b)this.$rules[h]=b[h];return}for(var h in b){for(var d=b[h],_=0;_<d.length;_++){var p=d[_];(p.next||p.onMatch)&&(typeof p.next=="string"&&p.next.indexOf(v)!==0&&(p.next=v+p.next),p.nextState&&p.nextState.indexOf(v)!==0&&(p.nextState=v+p.nextState))}this.$rules[v+h]=d}},this.getRules=function(){return this.$rules},this.embedRules=function(b,v,h,d,_){var p=typeof b=="function"?new b().getRules():b;if(d)for(var S=0;S<d.length;S++)d[S]=v+d[S];else{d=[];for(var k in p)d.push(v+k)}if(this.addRules(p,v),h)for(var O=Array.prototype[_?"push":"unshift"],S=0;S<d.length;S++)O.apply(this.$rules[d[S]],y.deepCopy(h));this.$embeds||(this.$embeds=[]),this.$embeds.push(v)},this.getEmbeds=function(){return this.$embeds};var w=function(v,h){return(v!="start"||h.length)&&h.unshift(this.nextState,v),this.nextState},m=function(v,h){return h.shift(),h.shift()||"start"};this.normalizeRules=function(){var b=0,v=this.$rules;function h(d){var _=v[d];_.processed=!0;for(var p=0;p<_.length;p++){var S=_[p],k=null;Array.isArray(S)&&(k=S,S={}),!S.regex&&S.start&&(S.regex=S.start,S.next||(S.next=[]),S.next.push({defaultToken:S.token},{token:S.token+".end",regex:S.end||S.start,next:"pop"}),S.token=S.token+".start",S.push=!0);var O=S.next||S.push;if(O&&Array.isArray(O)){var F=S.stateName;F||(F=S.token,typeof F!="string"&&(F=F[0]||""),v[F]&&(F+=b++)),v[F]=O,S.next=F,h(F)}else O=="pop"&&(S.next=m);if(S.push&&(S.nextState=S.next||S.push,S.next=w,delete S.push),S.rules)for(var D in S.rules)v[D]?v[D].push&&v[D].push.apply(v[D],S.rules[D]):v[D]=S.rules[D];var Z=typeof S=="string"?S:S.include;if(Z&&(Z==="$self"&&(Z="start"),Array.isArray(Z)?k=Z.map(function(U){return v[U]}):k=v[Z]),k){var W=[p,1].concat(k);S.noEscape&&(W=W.filter(function(U){return!U.next})),_.splice.apply(_,W),p--}S.keywordMap&&(S.token=this.createKeywordMapper(S.keywordMap,S.defaultToken||"text",S.caseInsensitive),delete S.defaultToken)}}Object.keys(v).forEach(h,this)},this.createKeywordMapper=function(b,v,h,d){var _=Object.create(null);return this.$keywordList=[],Object.keys(b).forEach(function(p){for(var S=b[p],k=S.split(d||"|"),O=k.length;O--;){var F=k[O];this.$keywordList.push(F),h&&(F=F.toLowerCase()),_[F]=p}},this),b=null,h?function(p){return _[p.toLowerCase()]||v}:function(p){return _[p]||v}},this.getKeywords=function(){return this.$keywords}}).call(M.prototype),g.TextHighlightRules=M}),ace.define("ace/mode/behaviour",["require","exports","module"],function(x,g,A){"use strict";var y=function(){this.$behaviours={}};(function(){this.add=function(M,w,m){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[M]:this.$behaviours[M]={}}this.$behaviours[M][w]=m},this.addBehaviours=function(M){for(var w in M)for(var m in M[w])this.add(w,m,M[w][m])},this.remove=function(M){this.$behaviours&&this.$behaviours[M]&&delete this.$behaviours[M]},this.inherit=function(M,w){if(typeof M=="function")var m=new M().getBehaviours(w);else var m=M.getBehaviours(w);this.addBehaviours(m)},this.getBehaviours=function(M){if(M){for(var w={},m=0;m<M.length;m++)this.$behaviours[M[m]]&&(w[M[m]]=this.$behaviours[M[m]]);return w}else return this.$behaviours}}).call(y.prototype),g.Behaviour=y}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(x,g,A){"use strict";var y=x("./range").Range,M=function(){function w(m,b,v){this.$session=m,this.$row=b,this.$rowTokens=m.getTokens(b);var h=m.getTokenAt(b,v);this.$tokenIndex=h?h.index:-1}return w.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},w.prototype.stepForward=function(){this.$tokenIndex+=1;for(var m;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,m||(m=this.$session.getLength()),this.$row>=m)return this.$row=m-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentTokenRow=function(){return this.$row},w.prototype.getCurrentTokenColumn=function(){var m=this.$rowTokens,b=this.$tokenIndex,v=m[b].start;if(v!==void 0)return v;for(v=0;b>0;)b-=1,v+=m[b].value.length;return v},w.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},w.prototype.getCurrentTokenRange=function(){var m=this.$rowTokens[this.$tokenIndex],b=this.getCurrentTokenColumn();return new y(this.$row,b,this.$row,b+m.value.length)},w}();g.TokenIterator=M}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(x,g,A){"use strict";var y=x("../../lib/oop"),M=x("../behaviour").Behaviour,w=x("../../token_iterator").TokenIterator,m=x("../../lib/lang"),b=["text","paren.rparen","rparen","paren","punctuation.operator"],v=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],h,d={},_={'"':'"',"'":"'"},p=function(F){var D=-1;if(F.multiSelect&&(D=F.selection.index,d.rangeCount!=F.multiSelect.rangeCount&&(d={rangeCount:F.multiSelect.rangeCount})),d[D])return h=d[D];h=d[D]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},S=function(F,D,Z,W){var U=F.end.row-F.start.row;return{text:Z+D+W,selection:[0,F.start.column+1,U,F.end.column+(U?0:1)]}},k=function O(F){F=F||{},this.add("braces","insertion",function(D,Z,W,U,L){var V=W.getCursorPosition(),$=U.doc.getLine(V.row);if(L=="{"){p(W);var G=W.getSelectionRange(),z=U.doc.getTextRange(G);if(z!==""&&z!=="{"&&W.getWrapBehavioursEnabled())return S(G,z,"{","}");if(O.isSaneInsertion(W,U))return/[\]\}\)]/.test($[V.column])||W.inMultiSelectMode||F.braces?(O.recordAutoInsert(W,U,"}"),{text:"{}",selection:[1,1]}):(O.recordMaybeInsert(W,U,"{"),{text:"{",selection:[1,1]})}else if(L=="}"){p(W);var K=$.substring(V.column,V.column+1);if(K=="}"){var re=U.$findOpeningBracket("}",{column:V.column+1,row:V.row});if(re!==null&&O.isAutoInsertedClosing(V,$,L))return O.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(L==`
|
||
`||L==`\r
|
||
`){p(W);var ne="";O.isMaybeInsertedClosing(V,$)&&(ne=m.stringRepeat("}",h.maybeInsertedBrackets),O.clearMaybeInsertedClosing());var K=$.substring(V.column,V.column+1);if(K==="}"){var Q=U.findMatchingBracket({row:V.row,column:V.column+1},"}");if(!Q)return null;var ue=this.$getIndent(U.getLine(Q.row))}else if(ne)var ue=this.$getIndent($);else{O.clearMaybeInsertedClosing();return}var he=ue+U.getTabString();return{text:`
|
||
`+he+`
|
||
`+ue+ne,selection:[1,he.length,1,he.length]}}else O.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(D,Z,W,U,L){var V=U.doc.getTextRange(L);if(!L.isMultiLine()&&V=="{"){p(W);var $=U.doc.getLine(L.start.row),G=$.substring(L.end.column,L.end.column+1);if(G=="}")return L.end.column++,L;h.maybeInsertedBrackets--}}),this.add("parens","insertion",function(D,Z,W,U,L){if(L=="("){p(W);var V=W.getSelectionRange(),$=U.doc.getTextRange(V);if($!==""&&W.getWrapBehavioursEnabled())return S(V,$,"(",")");if(O.isSaneInsertion(W,U))return O.recordAutoInsert(W,U,")"),{text:"()",selection:[1,1]}}else if(L==")"){p(W);var G=W.getCursorPosition(),z=U.doc.getLine(G.row),K=z.substring(G.column,G.column+1);if(K==")"){var re=U.$findOpeningBracket(")",{column:G.column+1,row:G.row});if(re!==null&&O.isAutoInsertedClosing(G,z,L))return O.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(D,Z,W,U,L){var V=U.doc.getTextRange(L);if(!L.isMultiLine()&&V=="("){p(W);var $=U.doc.getLine(L.start.row),G=$.substring(L.start.column+1,L.start.column+2);if(G==")")return L.end.column++,L}}),this.add("brackets","insertion",function(D,Z,W,U,L){if(L=="["){p(W);var V=W.getSelectionRange(),$=U.doc.getTextRange(V);if($!==""&&W.getWrapBehavioursEnabled())return S(V,$,"[","]");if(O.isSaneInsertion(W,U))return O.recordAutoInsert(W,U,"]"),{text:"[]",selection:[1,1]}}else if(L=="]"){p(W);var G=W.getCursorPosition(),z=U.doc.getLine(G.row),K=z.substring(G.column,G.column+1);if(K=="]"){var re=U.$findOpeningBracket("]",{column:G.column+1,row:G.row});if(re!==null&&O.isAutoInsertedClosing(G,z,L))return O.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(D,Z,W,U,L){var V=U.doc.getTextRange(L);if(!L.isMultiLine()&&V=="["){p(W);var $=U.doc.getLine(L.start.row),G=$.substring(L.start.column+1,L.start.column+2);if(G=="]")return L.end.column++,L}}),this.add("string_dquotes","insertion",function(D,Z,W,U,L){var V=U.$mode.$quotes||_;if(L.length==1&&V[L]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(L)!=-1)return;p(W);var $=L,G=W.getSelectionRange(),z=U.doc.getTextRange(G);if(z!==""&&(z.length!=1||!V[z])&&W.getWrapBehavioursEnabled())return S(G,z,$,$);if(!z){var K=W.getCursorPosition(),re=U.doc.getLine(K.row),ne=re.substring(K.column-1,K.column),Q=re.substring(K.column,K.column+1),ue=U.getTokenAt(K.row,K.column),he=U.getTokenAt(K.row,K.column+1);if(ne=="\\"&&ue&&/escape/.test(ue.type))return null;var Ee=ue&&/string|escape/.test(ue.type),ce=!he||/string|escape/.test(he.type),ve;if(Q==$)ve=Ee!==ce,ve&&/string\.end/.test(he.type)&&(ve=!1);else{if(Ee&&!ce||Ee&&ce)return null;var fe=U.$mode.tokenRe;fe.lastIndex=0;var we=fe.test(ne);fe.lastIndex=0;var me=fe.test(Q),Pe=U.$mode.$pairQuotesAfter,pe=Pe&&Pe[$]&&Pe[$].test(ne);if(!pe&&we||me||Q&&!/[\s;,.})\]\\]/.test(Q))return null;var Ie=re[K.column-2];if(ne==$&&(Ie==$||fe.test(Ie)))return null;ve=!0}return{text:ve?$+$:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(D,Z,W,U,L){var V=U.$mode.$quotes||_,$=U.doc.getTextRange(L);if(!L.isMultiLine()&&V.hasOwnProperty($)){p(W);var G=U.doc.getLine(L.start.row),z=G.substring(L.start.column+1,L.start.column+2);if(z==$)return L.end.column++,L}}),F.closeDocComment!==!1&&this.add("doc comment end","insertion",function(D,Z,W,U,L){if(D==="doc-start"&&(L===`
|
||
`||L===`\r
|
||
`)&&W.selection.isEmpty()){var V=W.getCursorPosition(),$=U.doc.getLine(V.row),G=U.doc.getLine(V.row+1),z=this.$getIndent($);if(/\s*\*/.test(G))return/^\s*\*/.test($)?{text:L+z+"* ",selection:[1,3+z.length,1,3+z.length]}:{text:L+z+" * ",selection:[1,3+z.length,1,3+z.length]};if(/\/\*\*/.test($.substring(0,V.column)))return{text:L+z+" * "+L+" "+z+"*/",selection:[1,4+z.length,1,4+z.length]}}})};k.isSaneInsertion=function(O,F){var D=O.getCursorPosition(),Z=new w(F,D.row,D.column);if(!this.$matchTokenType(Z.getCurrentToken()||"text",b)){if(/[)}\]]/.test(O.session.getLine(D.row)[D.column]))return!0;var W=new w(F,D.row,D.column+1);if(!this.$matchTokenType(W.getCurrentToken()||"text",b))return!1}return Z.stepForward(),Z.getCurrentTokenRow()!==D.row||this.$matchTokenType(Z.getCurrentToken()||"text",v)},k.$matchTokenType=function(O,F){return F.indexOf(O.type||O)>-1},k.recordAutoInsert=function(O,F,D){var Z=O.getCursorPosition(),W=F.doc.getLine(Z.row);this.isAutoInsertedClosing(Z,W,h.autoInsertedLineEnd[0])||(h.autoInsertedBrackets=0),h.autoInsertedRow=Z.row,h.autoInsertedLineEnd=D+W.substr(Z.column),h.autoInsertedBrackets++},k.recordMaybeInsert=function(O,F,D){var Z=O.getCursorPosition(),W=F.doc.getLine(Z.row);this.isMaybeInsertedClosing(Z,W)||(h.maybeInsertedBrackets=0),h.maybeInsertedRow=Z.row,h.maybeInsertedLineStart=W.substr(0,Z.column)+D,h.maybeInsertedLineEnd=W.substr(Z.column),h.maybeInsertedBrackets++},k.isAutoInsertedClosing=function(O,F,D){return h.autoInsertedBrackets>0&&O.row===h.autoInsertedRow&&D===h.autoInsertedLineEnd[0]&&F.substr(O.column)===h.autoInsertedLineEnd},k.isMaybeInsertedClosing=function(O,F){return h.maybeInsertedBrackets>0&&O.row===h.maybeInsertedRow&&F.substr(O.column)===h.maybeInsertedLineEnd&&F.substr(0,O.column)==h.maybeInsertedLineStart},k.popAutoInsertedClosing=function(){h.autoInsertedLineEnd=h.autoInsertedLineEnd.substr(1),h.autoInsertedBrackets--},k.clearMaybeInsertedClosing=function(){h&&(h.maybeInsertedBrackets=0,h.maybeInsertedRow=-1)},y.inherits(k,M),g.CstyleBehaviour=k}),ace.define("ace/unicode",["require","exports","module"],function(x,g,A){"use strict";for(var y=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],M=0,w=[],m=0;m<y.length;m+=2)w.push(M+=y[m]),y[m+1]&&w.push(45,M+=y[m+1]);g.wordChars=String.fromCharCode.apply(null,w)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(x,g,A){"use strict";var y=x("../config"),M=x("../tokenizer").Tokenizer,w=x("./text_highlight_rules").TextHighlightRules,m=x("./behaviour/cstyle").CstyleBehaviour,b=x("../unicode"),v=x("../lib/lang"),h=x("../token_iterator").TokenIterator,d=x("../range").Range,_=function(){this.HighlightRules=w};(function(){this.$defaultBehaviour=new m,this.tokenRe=new RegExp("^["+b.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+b.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new M(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(p,S,k,O){var F=S.doc,D=!0,Z=!0,W=Infinity,U=S.getTabSize(),L=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var G=this.lineCommentStart.map(v.escapeRegExp).join("|"),V=this.lineCommentStart[0];else var G=v.escapeRegExp(this.lineCommentStart),V=this.lineCommentStart;G=new RegExp("^(\\s*)(?:"+G+") ?"),L=S.getUseSoftTabs();var re=function(me,Pe){var pe=me.match(G);if(!!pe){var Ie=pe[1].length,Je=pe[0].length;!ue(me,Ie,Je)&&pe[0][Je-1]==" "&&Je--,F.removeInLine(Pe,Ie,Je)}},Q=V+" ",K=function(me,Pe){(!D||/\S/.test(me))&&(ue(me,W,W)?F.insertInLine({row:Pe,column:W},Q):F.insertInLine({row:Pe,column:W},V))},ne=function(me,Pe){return G.test(me)},ue=function(me,Pe,pe){for(var Ie=0;Pe--&&me.charAt(Pe)==" ";)Ie++;if(Ie%U!=0)return!1;for(var Ie=0;me.charAt(pe++)==" ";)Ie++;return U>2?Ie%U!=U-1:Ie%U==0}}else{if(!this.blockComment)return!1;var V=this.blockComment.start,$=this.blockComment.end,G=new RegExp("^(\\s*)(?:"+v.escapeRegExp(V)+")"),z=new RegExp("(?:"+v.escapeRegExp($)+")\\s*$"),K=function(ve,fe){ne(ve,fe)||(!D||/\S/.test(ve))&&(F.insertInLine({row:fe,column:ve.length},$),F.insertInLine({row:fe,column:W},V))},re=function(ve,fe){var we;(we=ve.match(z))&&F.removeInLine(fe,ve.length-we[0].length,ve.length),(we=ve.match(G))&&F.removeInLine(fe,we[1].length,we[0].length)},ne=function(ve,fe){if(G.test(ve))return!0;for(var we=S.getTokens(fe),me=0;me<we.length;me++)if(we[me].type==="comment")return!0}}function he(ce){for(var ve=k;ve<=O;ve++)ce(F.getLine(ve),ve)}var Ee=Infinity;he(function(ce,ve){var fe=ce.search(/\S/);fe!==-1?(fe<W&&(W=fe),Z&&!ne(ce,ve)&&(Z=!1)):Ee>ce.length&&(Ee=ce.length)}),W==Infinity&&(W=Ee,D=!1,Z=!1),L&&W%U!=0&&(W=Math.floor(W/U)*U),he(Z?re:K)},this.toggleBlockComment=function(p,S,k,O){var F=this.blockComment;if(!!F){!F.start&&F[0]&&(F=F[0]);var D=new h(S,O.row,O.column),Z=D.getCurrentToken(),W=S.selection,U=S.selection.toOrientedRange(),L,V;if(Z&&/comment/.test(Z.type)){for(var $,G;Z&&/comment/.test(Z.type);){var z=Z.value.indexOf(F.start);if(z!=-1){var K=D.getCurrentTokenRow(),re=D.getCurrentTokenColumn()+z;$=new d(K,re,K,re+F.start.length);break}Z=D.stepBackward()}for(var D=new h(S,O.row,O.column),Z=D.getCurrentToken();Z&&/comment/.test(Z.type);){var z=Z.value.indexOf(F.end);if(z!=-1){var K=D.getCurrentTokenRow(),re=D.getCurrentTokenColumn()+z;G=new d(K,re,K,re+F.end.length);break}Z=D.stepForward()}G&&S.remove(G),$&&(S.remove($),L=$.start.row,V=-F.start.length)}else V=F.start.length,L=k.start.row,S.insert(k.end,F.end),S.insert(k.start,F.start);U.start.row==L&&(U.start.column+=V),U.end.row==L&&(U.end.column+=V),S.selection.fromOrientedRange(U)}},this.getNextLineIndent=function(p,S,k){return this.$getIndent(S)},this.checkOutdent=function(p,S,k){return!1},this.autoOutdent=function(p,S,k){},this.$getIndent=function(p){return p.match(/^\s*/)[0]},this.createWorker=function(p){return null},this.createModeDelegates=function(p){this.$embeds=[],this.$modes={};for(var S in p)if(p[S]){var k=p[S],O=k.prototype.$id,F=y.$modes[O];F||(y.$modes[O]=F=new k),y.$modes[S]||(y.$modes[S]=F),this.$embeds.push(S),this.$modes[S]=F}for(var D=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],S=0;S<D.length;S++)(function(W){var U=D[S],L=W[U];W[D[S]]=function(){return this.$delegator(U,arguments,L)}})(this)},this.$delegator=function(p,S,k){var O=S[0]||"start";if(typeof O!="string"){if(Array.isArray(O[2])){var F=O[2][O[2].length-1],D=this.$modes[F];if(D)return D[p].apply(D,[O[1]].concat([].slice.call(S,1)))}O=O[0]||"start"}for(var Z=0;Z<this.$embeds.length;Z++)if(!!this.$modes[this.$embeds[Z]]){var W=O.split(this.$embeds[Z]);if(!W[0]&&W[1]){S[0]=W[1];var D=this.$modes[this.$embeds[Z]];return D[p].apply(D,S)}}var U=k.apply(this,S);return k?U:void 0},this.transformAction=function(p,S,k,O,F){if(this.$behaviour){var D=this.$behaviour.getBehaviours();for(var Z in D)if(D[Z][S]){var W=D[Z][S].apply(this,arguments);if(W)return W}}},this.getKeywords=function(p){if(!this.completionKeywords){var S=this.$tokenizer.rules,k=[];for(var O in S)for(var F=S[O],D=0,Z=F.length;D<Z;D++)if(typeof F[D].token=="string")/keyword|support|storage/.test(F[D].token)&&k.push(F[D].regex);else if(typeof F[D].token=="object"){for(var W=0,U=F[D].token.length;W<U;W++)if(/keyword|support|storage/.test(F[D].token[W])){var O=F[D].regex.match(/\(.+?\)/g)[W];k.push(O.substr(1,O.length-2))}}this.completionKeywords=k}return p?k.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(p,S,k,O){var F=this.$keywordList||this.$createKeywordList();return F.map(function(D){return{name:D,value:D,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(_.prototype),g.Mode=_}),ace.define("ace/apply_delta",["require","exports","module"],function(x,g,A){"use strict";function y(m,b){throw console.log("Invalid Delta:",m),"Invalid Delta: "+b}function M(m,b){return b.row>=0&&b.row<m.length&&b.column>=0&&b.column<=m[b.row].length}function w(m,b){b.action!="insert"&&b.action!="remove"&&y(b,"delta.action must be 'insert' or 'remove'"),b.lines instanceof Array||y(b,"delta.lines must be an Array"),(!b.start||!b.end)&&y(b,"delta.start/end must be an present");var v=b.start;M(m,b.start)||y(b,"delta.start must be contained in document");var h=b.end;b.action=="remove"&&!M(m,h)&&y(b,"delta.end must contained in document for 'remove' actions");var d=h.row-v.row,_=h.column-(d==0?v.column:0);(d!=b.lines.length-1||b.lines[d].length!=_)&&y(b,"delta.range must match delta lines")}g.applyDelta=function(m,b,v){var h=b.start.row,d=b.start.column,_=m[h]||"";switch(b.action){case"insert":var p=b.lines;if(p.length===1)m[h]=_.substring(0,d)+b.lines[0]+_.substring(d);else{var S=[h,1].concat(b.lines);m.splice.apply(m,S),m[h]=_.substring(0,d)+m[h],m[h+b.lines.length-1]+=_.substring(d)}break;case"remove":var k=b.end.column,O=b.end.row;h===O?m[h]=_.substring(0,d)+_.substring(k):m.splice(h,O-h+1,_.substring(0,d)+m[O].substring(k));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(x,g,A){"use strict";var y=x("./lib/oop"),M=x("./lib/event_emitter").EventEmitter,w=function(){function v(h,d,_){this.$onChange=this.onChange.bind(this),this.attach(h),typeof _=="undefined"?this.setPosition(d.row,d.column):this.setPosition(d,_)}return v.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},v.prototype.getDocument=function(){return this.document},v.prototype.onChange=function(h){if(!(h.start.row==h.end.row&&h.start.row!=this.row)&&!(h.start.row>this.row)){var d=b(h,{row:this.row,column:this.column},this.$insertRight);this.setPosition(d.row,d.column,!0)}},v.prototype.setPosition=function(h,d,_){var p;if(_?p={row:h,column:d}:p=this.$clipPositionToDocument(h,d),!(this.row==p.row&&this.column==p.column)){var S={row:this.row,column:this.column};this.row=p.row,this.column=p.column,this._signal("change",{old:S,value:p})}},v.prototype.detach=function(){this.document.off("change",this.$onChange)},v.prototype.attach=function(h){this.document=h||this.document,this.document.on("change",this.$onChange)},v.prototype.$clipPositionToDocument=function(h,d){var _={};return h>=this.document.getLength()?(_.row=Math.max(0,this.document.getLength()-1),_.column=this.document.getLine(_.row).length):h<0?(_.row=0,_.column=0):(_.row=h,_.column=Math.min(this.document.getLine(_.row).length,Math.max(0,d))),d<0&&(_.column=0),_},v}();w.prototype.$insertRight=!1,y.implement(w.prototype,M);function m(v,h,d){var _=d?v.column<=h.column:v.column<h.column;return v.row<h.row||v.row==h.row&&_}function b(v,h,d){var _=v.action=="insert",p=(_?1:-1)*(v.end.row-v.start.row),S=(_?1:-1)*(v.end.column-v.start.column),k=v.start,O=_?k:v.end;return m(h,k,d)?{row:h.row,column:h.column}:m(O,h,!d)?{row:h.row+p,column:h.column+(h.row==O.row?S:0)}:{row:k.row,column:k.column}}g.Anchor=w}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(x,g,A){"use strict";var y=x("./lib/oop"),M=x("./apply_delta").applyDelta,w=x("./lib/event_emitter").EventEmitter,m=x("./range").Range,b=x("./anchor").Anchor,v=function(){function h(d){this.$lines=[""],d.length===0?this.$lines=[""]:Array.isArray(d)?this.insertMergedLines({row:0,column:0},d):this.insert({row:0,column:0},d)}return h.prototype.setValue=function(d){var _=this.getLength()-1;this.remove(new m(0,0,_,this.getLine(_).length)),this.insert({row:0,column:0},d||"")},h.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},h.prototype.createAnchor=function(d,_){return new b(this,d,_)},h.prototype.$detectNewLine=function(d){var _=d.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=_?_[1]:`
|
||
`,this._signal("changeNewLineMode")},h.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
||
`;case"unix":return`
|
||
`;default:return this.$autoNewLine||`
|
||
`}},h.prototype.setNewLineMode=function(d){this.$newLineMode!==d&&(this.$newLineMode=d,this._signal("changeNewLineMode"))},h.prototype.getNewLineMode=function(){return this.$newLineMode},h.prototype.isNewLine=function(d){return d==`\r
|
||
`||d=="\r"||d==`
|
||
`},h.prototype.getLine=function(d){return this.$lines[d]||""},h.prototype.getLines=function(d,_){return this.$lines.slice(d,_+1)},h.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},h.prototype.getLength=function(){return this.$lines.length},h.prototype.getTextRange=function(d){return this.getLinesForRange(d).join(this.getNewLineCharacter())},h.prototype.getLinesForRange=function(d){var _;if(d.start.row===d.end.row)_=[this.getLine(d.start.row).substring(d.start.column,d.end.column)];else{_=this.getLines(d.start.row,d.end.row),_[0]=(_[0]||"").substring(d.start.column);var p=_.length-1;d.end.row-d.start.row==p&&(_[p]=_[p].substring(0,d.end.column))}return _},h.prototype.insertLines=function(d,_){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(d,_)},h.prototype.removeLines=function(d,_){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(d,_)},h.prototype.insertNewLine=function(d){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(d,["",""])},h.prototype.insert=function(d,_){return this.getLength()<=1&&this.$detectNewLine(_),this.insertMergedLines(d,this.$split(_))},h.prototype.insertInLine=function(d,_){var p=this.clippedPos(d.row,d.column),S=this.pos(d.row,d.column+_.length);return this.applyDelta({start:p,end:S,action:"insert",lines:[_]},!0),this.clonePos(S)},h.prototype.clippedPos=function(d,_){var p=this.getLength();d===void 0?d=p:d<0?d=0:d>=p&&(d=p-1,_=void 0);var S=this.getLine(d);return _==null&&(_=S.length),_=Math.min(Math.max(_,0),S.length),{row:d,column:_}},h.prototype.clonePos=function(d){return{row:d.row,column:d.column}},h.prototype.pos=function(d,_){return{row:d,column:_}},h.prototype.$clipPosition=function(d){var _=this.getLength();return d.row>=_?(d.row=Math.max(0,_-1),d.column=this.getLine(_-1).length):(d.row=Math.max(0,d.row),d.column=Math.min(Math.max(d.column,0),this.getLine(d.row).length)),d},h.prototype.insertFullLines=function(d,_){d=Math.min(Math.max(d,0),this.getLength());var p=0;d<this.getLength()?(_=_.concat([""]),p=0):(_=[""].concat(_),d--,p=this.$lines[d].length),this.insertMergedLines({row:d,column:p},_)},h.prototype.insertMergedLines=function(d,_){var p=this.clippedPos(d.row,d.column),S={row:p.row+_.length-1,column:(_.length==1?p.column:0)+_[_.length-1].length};return this.applyDelta({start:p,end:S,action:"insert",lines:_}),this.clonePos(S)},h.prototype.remove=function(d){var _=this.clippedPos(d.start.row,d.start.column),p=this.clippedPos(d.end.row,d.end.column);return this.applyDelta({start:_,end:p,action:"remove",lines:this.getLinesForRange({start:_,end:p})}),this.clonePos(_)},h.prototype.removeInLine=function(d,_,p){var S=this.clippedPos(d,_),k=this.clippedPos(d,p);return this.applyDelta({start:S,end:k,action:"remove",lines:this.getLinesForRange({start:S,end:k})},!0),this.clonePos(S)},h.prototype.removeFullLines=function(d,_){d=Math.min(Math.max(0,d),this.getLength()-1),_=Math.min(Math.max(0,_),this.getLength()-1);var p=_==this.getLength()-1&&d>0,S=_<this.getLength()-1,k=p?d-1:d,O=p?this.getLine(k).length:0,F=S?_+1:_,D=S?0:this.getLine(F).length,Z=new m(k,O,F,D),W=this.$lines.slice(d,_+1);return this.applyDelta({start:Z.start,end:Z.end,action:"remove",lines:this.getLinesForRange(Z)}),W},h.prototype.removeNewLine=function(d){d<this.getLength()-1&&d>=0&&this.applyDelta({start:this.pos(d,this.getLine(d).length),end:this.pos(d+1,0),action:"remove",lines:["",""]})},h.prototype.replace=function(d,_){if(d instanceof m||(d=m.fromPoints(d.start,d.end)),_.length===0&&d.isEmpty())return d.start;if(_==this.getTextRange(d))return d.end;this.remove(d);var p;return _?p=this.insert(d.start,_):p=d.start,p},h.prototype.applyDeltas=function(d){for(var _=0;_<d.length;_++)this.applyDelta(d[_])},h.prototype.revertDeltas=function(d){for(var _=d.length-1;_>=0;_--)this.revertDelta(d[_])},h.prototype.applyDelta=function(d,_){var p=d.action=="insert";(p?d.lines.length<=1&&!d.lines[0]:!m.comparePoints(d.start,d.end))||(p&&d.lines.length>2e4?this.$splitAndapplyLargeDelta(d,2e4):(M(this.$lines,d,_),this._signal("change",d)))},h.prototype.$safeApplyDelta=function(d){var _=this.$lines.length;(d.action=="remove"&&d.start.row<_&&d.end.row<_||d.action=="insert"&&d.start.row<=_)&&this.applyDelta(d)},h.prototype.$splitAndapplyLargeDelta=function(d,_){for(var p=d.lines,S=p.length-_+1,k=d.start.row,O=d.start.column,F=0,D=0;F<S;F=D){D+=_-1;var Z=p.slice(F,D);Z.push(""),this.applyDelta({start:this.pos(k+F,O),end:this.pos(k+D,O=0),action:d.action,lines:Z},!0)}d.lines=p.slice(F),d.start.row=k+F,d.start.column=O,this.applyDelta(d,!0)},h.prototype.revertDelta=function(d){this.$safeApplyDelta({start:this.clonePos(d.start),end:this.clonePos(d.end),action:d.action=="insert"?"remove":"insert",lines:d.lines.slice()})},h.prototype.indexToPosition=function(d,_){for(var p=this.$lines||this.getAllLines(),S=this.getNewLineCharacter().length,k=_||0,O=p.length;k<O;k++)if(d-=p[k].length+S,d<0)return{row:k,column:d+p[k].length+S};return{row:O-1,column:d+p[O-1].length+S}},h.prototype.positionToIndex=function(d,_){for(var p=this.$lines||this.getAllLines(),S=this.getNewLineCharacter().length,k=0,O=Math.min(d.row,p.length),F=_||0;F<O;++F)k+=p[F].length+S;return k+d.column},h.prototype.$split=function(d){return d.split(/\r\n|\r|\n/)},h}();v.prototype.$autoNewLine="",v.prototype.$newLineMode="auto",y.implement(v.prototype,w),g.Document=v}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(x,g,A){"use strict";var y=x("./lib/oop"),M=x("./lib/event_emitter").EventEmitter,w=function(){function m(b,v){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=b;var h=this;this.$worker=function(){if(!!h.running){for(var d=new Date,_=h.currentLine,p=-1,S=h.doc,k=_;h.lines[_];)_++;var O=S.getLength(),F=0;for(h.running=!1;_<O;){h.$tokenizeRow(_),p=_;do _++;while(h.lines[_]);if(F++,F%5==0&&new Date-d>20){h.running=setTimeout(h.$worker,20);break}}h.currentLine=_,p==-1&&(p=_),k<=p&&h.fireUpdateEvent(k,p)}}}return m.prototype.setTokenizer=function(b){this.tokenizer=b,this.lines=[],this.states=[],this.start(0)},m.prototype.setDocument=function(b){this.doc=b,this.lines=[],this.states=[],this.stop()},m.prototype.fireUpdateEvent=function(b,v){var h={first:b,last:v};this._signal("update",{data:h})},m.prototype.start=function(b){this.currentLine=Math.min(b||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},m.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},m.prototype.$updateOnChange=function(b){var v=b.start.row,h=b.end.row-v;if(h===0)this.lines[v]=null;else if(b.action=="remove")this.lines.splice(v,h+1,null),this.states.splice(v,h+1,null);else{var d=Array(h+1);d.unshift(v,1),this.lines.splice.apply(this.lines,d),this.states.splice.apply(this.states,d)}this.currentLine=Math.min(v,this.currentLine,this.doc.getLength()),this.stop()},m.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},m.prototype.getTokens=function(b){return this.lines[b]||this.$tokenizeRow(b)},m.prototype.getState=function(b){return this.currentLine==b&&this.$tokenizeRow(b),this.states[b]||"start"},m.prototype.$tokenizeRow=function(b){var v=this.doc.getLine(b),h=this.states[b-1],d=this.tokenizer.getLineTokens(v,h,b);return this.states[b]+""!=d.state+""?(this.states[b]=d.state,this.lines[b+1]=null,this.currentLine>b+1&&(this.currentLine=b+1)):this.currentLine==b&&(this.currentLine=b+1),this.lines[b]=d.tokens},m.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},m}();y.implement(w.prototype,M),g.BackgroundTokenizer=w}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(x,g,A){"use strict";var y=x("./lib/lang"),M=x("./range").Range,w=function(){function m(b,v,h){h===void 0&&(h="text"),this.setRegexp(b),this.clazz=v,this.type=h}return m.prototype.setRegexp=function(b){this.regExp+""!=b+""&&(this.regExp=b,this.cache=[])},m.prototype.update=function(b,v,h,d){if(!!this.regExp)for(var _=d.firstRow,p=d.lastRow,S={},k=_;k<=p;k++){var O=this.cache[k];O==null&&(O=y.getMatchOffsets(h.getLine(k),this.regExp),O.length>this.MAX_RANGES&&(O=O.slice(0,this.MAX_RANGES)),O=O.map(function(W){return new M(k,W.offset,k,W.offset+W.length)}),this.cache[k]=O.length?O:"");for(var F=O.length;F--;){var D=O[F].toScreenRange(h),Z=D.toString();S[Z]||(S[Z]=!0,v.drawSingleLineMarker(b,D,this.clazz,d))}}},m}();w.prototype.MAX_RANGES=500,g.SearchHighlight=w}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(x,g,A){"use strict";var y=x("../range").Range,M=function(){function w(m,b){this.foldData=m,Array.isArray(b)?this.folds=b:b=this.folds=[b];var v=b[b.length-1];this.range=new y(b[0].start.row,b[0].start.column,v.end.row,v.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(h){h.setFoldLine(this)},this)}return w.prototype.shiftRow=function(m){this.start.row+=m,this.end.row+=m,this.folds.forEach(function(b){b.start.row+=m,b.end.row+=m})},w.prototype.addFold=function(m){if(m.sameRow){if(m.start.row<this.startRow||m.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(m),this.folds.sort(function(b,v){return-b.range.compareEnd(v.start.row,v.start.column)}),this.range.compareEnd(m.start.row,m.start.column)>0?(this.end.row=m.end.row,this.end.column=m.end.column):this.range.compareStart(m.end.row,m.end.column)<0&&(this.start.row=m.start.row,this.start.column=m.start.column)}else if(m.start.row==this.end.row)this.folds.push(m),this.end.row=m.end.row,this.end.column=m.end.column;else if(m.end.row==this.start.row)this.folds.unshift(m),this.start.row=m.start.row,this.start.column=m.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");m.foldLine=this},w.prototype.containsRow=function(m){return m>=this.start.row&&m<=this.end.row},w.prototype.walk=function(m,b,v){var h=0,d=this.folds,_,p,S,k=!0;b==null&&(b=this.end.row,v=this.end.column);for(var O=0;O<d.length;O++){if(_=d[O],p=_.range.compareStart(b,v),p==-1){m(null,b,v,h,k);return}if(S=m(null,_.start.row,_.start.column,h,k),S=!S&&m(_.placeholder,_.start.row,_.start.column,h),S||p===0)return;k=!_.sameRow,h=_.end.column}m(null,b,v,h,k)},w.prototype.getNextFoldTo=function(m,b){for(var v,h,d=0;d<this.folds.length;d++){if(v=this.folds[d],h=v.range.compareEnd(m,b),h==-1)return{fold:v,kind:"after"};if(h===0)return{fold:v,kind:"inside"}}return null},w.prototype.addRemoveChars=function(m,b,v){var h=this.getNextFoldTo(m,b),d,_;if(h){if(d=h.fold,h.kind=="inside"&&d.start.column!=b&&d.start.row!=m)window.console&&window.console.log(m,b,d);else if(d.start.row==m){_=this.folds;var p=_.indexOf(d);for(p===0&&(this.start.column+=v),p;p<_.length;p++){if(d=_[p],d.start.column+=v,!d.sameRow)return;d.end.column+=v}this.end.column+=v}}},w.prototype.split=function(m,b){var v=this.getNextFoldTo(m,b);if(!v||v.kind=="inside")return null;var h=v.fold,d=this.folds,_=this.foldData,p=d.indexOf(h),S=d[p-1];this.end.row=S.end.row,this.end.column=S.end.column,d=d.splice(p,d.length-p);var k=new w(_,d);return _.splice(_.indexOf(this)+1,0,k),k},w.prototype.merge=function(m){for(var b=m.folds,v=0;v<b.length;v++)this.addFold(b[v]);var h=this.foldData;h.splice(h.indexOf(m),1)},w.prototype.toString=function(){var m=[this.range.toString()+": ["];return this.folds.forEach(function(b){m.push(" "+b.toString())}),m.push("]"),m.join(`
|
||
`)},w.prototype.idxToPosition=function(m){for(var b=0,v=0;v<this.folds.length;v++){var h=this.folds[v];if(m-=h.start.column-b,m<0)return{row:h.start.row,column:h.start.column+m};if(m-=h.placeholder.length,m<0)return h.start;b=h.end.column}return{row:this.end.row,column:this.end.column+m}},w}();g.FoldLine=M}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(x,g,A){"use strict";var y=x("./range").Range,M=y.comparePoints,w=function(){function m(){this.ranges=[],this.$bias=1}return m.prototype.pointIndex=function(b,v,h){for(var d=this.ranges,_=h||0;_<d.length;_++){var p=d[_],S=M(b,p.end);if(!(S>0)){var k=M(b,p.start);return S===0?v&&k!==0?-_-2:_:k>0||k===0&&!v?_:-_-1}}return-_-1},m.prototype.add=function(b){var v=!b.isEmpty(),h=this.pointIndex(b.start,v);h<0&&(h=-h-1);var d=this.pointIndex(b.end,v,h);return d<0?d=-d-1:d++,this.ranges.splice(h,d-h,b)},m.prototype.addList=function(b){for(var v=[],h=b.length;h--;)v.push.apply(v,this.add(b[h]));return v},m.prototype.substractPoint=function(b){var v=this.pointIndex(b);if(v>=0)return this.ranges.splice(v,1)},m.prototype.merge=function(){var b=[],v=this.ranges;v=v.sort(function(S,k){return M(S.start,k.start)});for(var h=v[0],d,_=1;_<v.length;_++){d=h,h=v[_];var p=M(d.end,h.start);p<0||p==0&&!d.isEmpty()&&!h.isEmpty()||(M(d.end,h.end)<0&&(d.end.row=h.end.row,d.end.column=h.end.column),v.splice(_,1),b.push(h),h=d,_--)}return this.ranges=v,b},m.prototype.contains=function(b,v){return this.pointIndex({row:b,column:v})>=0},m.prototype.containsPoint=function(b){return this.pointIndex(b)>=0},m.prototype.rangeAtPoint=function(b){var v=this.pointIndex(b);if(v>=0)return this.ranges[v]},m.prototype.clipRows=function(b,v){var h=this.ranges;if(h[0].start.row>v||h[h.length-1].start.row<b)return[];var d=this.pointIndex({row:b,column:0});d<0&&(d=-d-1);var _=this.pointIndex({row:v,column:0},d);_<0&&(_=-_-1);for(var p=[],S=d;S<_;S++)p.push(h[S]);return p},m.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},m.prototype.attach=function(b){this.session&&this.detach(),this.session=b,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},m.prototype.detach=function(){!this.session||(this.session.removeListener("change",this.onChange),this.session=null)},m.prototype.$onChange=function(b){for(var v=b.start,h=b.end,d=v.row,_=h.row,p=this.ranges,S=0,k=p.length;S<k;S++){var O=p[S];if(O.end.row>=d)break}if(b.action=="insert")for(var F=_-d,D=-v.column+h.column;S<k;S++){var O=p[S];if(O.start.row>d)break;if(O.start.row==d&&O.start.column>=v.column&&(O.start.column==v.column&&this.$bias<=0||(O.start.column+=D,O.start.row+=F)),O.end.row==d&&O.end.column>=v.column){if(O.end.column==v.column&&this.$bias<0)continue;O.end.column==v.column&&D>0&&S<k-1&&O.end.column>O.start.column&&O.end.column==p[S+1].start.column&&(O.end.column-=D),O.end.column+=D,O.end.row+=F}}else for(var F=d-_,D=v.column-h.column;S<k;S++){var O=p[S];if(O.start.row>_)break;O.end.row<_&&(d<O.end.row||d==O.end.row&&v.column<O.end.column)?(O.end.row=d,O.end.column=v.column):O.end.row==_?O.end.column<=h.column?(F||O.end.column>v.column)&&(O.end.column=v.column,O.end.row=v.row):(O.end.column+=D,O.end.row+=F):O.end.row>_&&(O.end.row+=F),O.start.row<_&&(d<O.start.row||d==O.start.row&&v.column<O.start.column)?(O.start.row=d,O.start.column=v.column):O.start.row==_?O.start.column<=h.column?(F||O.start.column>v.column)&&(O.start.column=v.column,O.start.row=v.row):(O.start.column+=D,O.start.row+=F):O.start.row>_&&(O.start.row+=F)}if(F!=0&&S<k)for(;S<k;S++){var O=p[S];O.start.row+=F,O.end.row+=F}},m}();w.prototype.comparePoints=M,g.RangeList=w}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(x,g,A){"use strict";var y=this&&this.__extends||function(){var d=function(p,S){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,O){k.__proto__=O}||function(k,O){for(var F in O)Object.prototype.hasOwnProperty.call(O,F)&&(k[F]=O[F])},d(p,S)};return function(_,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");d(_,p);function S(){this.constructor=_}_.prototype=p===null?Object.create(p):(S.prototype=p.prototype,new S)}}(),M=x("../range_list").RangeList,w=function(d){y(_,d);function _(p,S){var k=d.call(this)||this;return k.foldLine=null,k.placeholder=S,k.range=p,k.start=p.start,k.end=p.end,k.sameRow=p.start.row==p.end.row,k.subFolds=k.ranges=[],k}return _.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},_.prototype.setFoldLine=function(p){this.foldLine=p,this.subFolds.forEach(function(S){S.setFoldLine(p)})},_.prototype.clone=function(){var p=this.range.clone(),S=new _(p,this.placeholder);return this.subFolds.forEach(function(k){S.subFolds.push(k.clone())}),S.collapseChildren=this.collapseChildren,S},_.prototype.addSubFold=function(p){if(!this.range.isEqual(p)){b(p,this.start);for(var S=p.start.row,k=p.start.column,O=0,F=-1;O<this.subFolds.length&&(F=this.subFolds[O].range.compare(S,k),F==1);O++);var D=this.subFolds[O],Z=0;if(F==0){if(D.range.containsRange(p))return D.addSubFold(p);Z=1}for(var S=p.range.end.row,k=p.range.end.column,W=O,F=-1;W<this.subFolds.length&&(F=this.subFolds[W].range.compare(S,k),F==1);W++);F==0&&W++;for(var U=this.subFolds.splice(O,W-O,p),L=F==0?U.length-1:U.length,V=Z;V<L;V++)p.addSubFold(U[V]);return p.setFoldLine(this.foldLine),p}},_.prototype.restoreRange=function(p){return h(p,this.start)},_}(M);function m(d,_){d.row-=_.row,d.row==0&&(d.column-=_.column)}function b(d,_){m(d.start,_),m(d.end,_)}function v(d,_){d.row==0&&(d.column+=_.column),d.row+=_.row}function h(d,_){v(d.start,_),v(d.end,_)}g.Fold=w}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(x,g,A){"use strict";var y=x("../range").Range,M=x("./fold_line").FoldLine,w=x("./fold").Fold,m=x("../token_iterator").TokenIterator,b=x("../mouse/mouse_event").MouseEvent;function v(){this.getFoldAt=function(h,d,_){var p=this.getFoldLine(h);if(!p)return null;for(var S=p.folds,k=0;k<S.length;k++){var O=S[k].range;if(O.contains(h,d)){if(_==1&&O.isEnd(h,d)&&!O.isEmpty())continue;if(_==-1&&O.isStart(h,d)&&!O.isEmpty())continue;return S[k]}}},this.getFoldsInRange=function(h){var d=h.start,_=h.end,p=this.$foldData,S=[];d.column+=1,_.column-=1;for(var k=0;k<p.length;k++){var O=p[k].range.compareRange(h);if(O!=2){if(O==-2)break;for(var F=p[k].folds,D=0;D<F.length;D++){var Z=F[D];if(O=Z.range.compareRange(h),O==-2)break;if(O==2)continue;if(O==42)break;S.push(Z)}}}return d.column-=1,_.column+=1,S},this.getFoldsInRangeList=function(h){if(Array.isArray(h)){var d=[];h.forEach(function(_){d=d.concat(this.getFoldsInRange(_))},this)}else var d=this.getFoldsInRange(h);return d},this.getAllFolds=function(){for(var h=[],d=this.$foldData,_=0;_<d.length;_++)for(var p=0;p<d[_].folds.length;p++)h.push(d[_].folds[p]);return h},this.getFoldStringAt=function(h,d,_,p){if(p=p||this.getFoldLine(h),!p)return null;for(var S={end:{column:0}},k,O,F=0;F<p.folds.length;F++){O=p.folds[F];var D=O.range.compareEnd(h,d);if(D==-1){k=this.getLine(O.start.row).substring(S.end.column,O.start.column);break}else if(D===0)return null;S=O}return k||(k=this.getLine(O.start.row).substring(S.end.column)),_==-1?k.substring(0,d-S.end.column):_==1?k.substring(d-S.end.column):k},this.getFoldLine=function(h,d){var _=this.$foldData,p=0;for(d&&(p=_.indexOf(d)),p==-1&&(p=0),p;p<_.length;p++){var S=_[p];if(S.start.row<=h&&S.end.row>=h)return S;if(S.end.row>h)return null}return null},this.getNextFoldLine=function(h,d){var _=this.$foldData,p=0;for(d&&(p=_.indexOf(d)),p==-1&&(p=0),p;p<_.length;p++){var S=_[p];if(S.end.row>=h)return S}return null},this.getFoldedRowCount=function(h,d){for(var _=this.$foldData,p=d-h+1,S=0;S<_.length;S++){var k=_[S],O=k.end.row,F=k.start.row;if(O>=d){F<d&&(F>=h?p-=d-F:p=0);break}else O>=h&&(F>=h?p-=O-F:p-=O-h+1)}return p},this.$addFoldLine=function(h){return this.$foldData.push(h),this.$foldData.sort(function(d,_){return d.start.row-_.start.row}),h},this.addFold=function(h,d){var _=this.$foldData,p=!1,S;h instanceof w?S=h:(S=new w(d,h),S.collapseChildren=d.collapseChildren),this.$clipRangeToDocument(S.range);var k=S.start.row,O=S.start.column,F=S.end.row,D=S.end.column,Z=this.getFoldAt(k,O,1),W=this.getFoldAt(F,D,-1);if(Z&&W==Z)return Z.addSubFold(S);Z&&!Z.range.isStart(k,O)&&this.removeFold(Z),W&&!W.range.isEnd(F,D)&&this.removeFold(W);var U=this.getFoldsInRange(S.range);U.length>0&&(this.removeFolds(U),S.collapseChildren||U.forEach(function(G){S.addSubFold(G)}));for(var L=0;L<_.length;L++){var V=_[L];if(F==V.start.row){V.addFold(S),p=!0;break}else if(k==V.end.row){if(V.addFold(S),p=!0,!S.sameRow){var $=_[L+1];if($&&$.start.row==F){V.merge($);break}}break}else if(F<=V.start.row)break}return p||(V=this.$addFoldLine(new M(this.$foldData,S))),this.$useWrapMode?this.$updateWrapData(V.start.row,V.start.row):this.$updateRowLengthCache(V.start.row,V.start.row),this.$modified=!0,this._signal("changeFold",{data:S,action:"add"}),S},this.addFolds=function(h){h.forEach(function(d){this.addFold(d)},this)},this.removeFold=function(h){var d=h.foldLine,_=d.start.row,p=d.end.row,S=this.$foldData,k=d.folds;if(k.length==1)S.splice(S.indexOf(d),1);else if(d.range.isEnd(h.end.row,h.end.column))k.pop(),d.end.row=k[k.length-1].end.row,d.end.column=k[k.length-1].end.column;else if(d.range.isStart(h.start.row,h.start.column))k.shift(),d.start.row=k[0].start.row,d.start.column=k[0].start.column;else if(h.sameRow)k.splice(k.indexOf(h),1);else{var O=d.split(h.start.row,h.start.column);k=O.folds,k.shift(),O.start.row=k[0].start.row,O.start.column=k[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(_,p):this.$updateRowLengthCache(_,p)),this.$modified=!0,this._signal("changeFold",{data:h,action:"remove"})},this.removeFolds=function(h){for(var d=[],_=0;_<h.length;_++)d.push(h[_]);d.forEach(function(p){this.removeFold(p)},this),this.$modified=!0},this.expandFold=function(h){this.removeFold(h),h.subFolds.forEach(function(d){h.restoreRange(d),this.addFold(d)},this),h.collapseChildren>0&&this.foldAll(h.start.row+1,h.end.row,h.collapseChildren-1),h.subFolds=[]},this.expandFolds=function(h){h.forEach(function(d){this.expandFold(d)},this)},this.unfold=function(h,d){var _,p;if(h==null)_=new y(0,0,this.getLength(),0),d==null&&(d=!0);else if(typeof h=="number")_=new y(h,0,h,this.getLine(h).length);else if("row"in h)_=y.fromPoints(h,h);else{if(Array.isArray(h))return p=[],h.forEach(function(k){p=p.concat(this.unfold(k))},this),p;_=h}p=this.getFoldsInRangeList(_);for(var S=p;p.length==1&&y.comparePoints(p[0].start,_.start)<0&&y.comparePoints(p[0].end,_.end)>0;)this.expandFolds(p),p=this.getFoldsInRangeList(_);if(d!=!1?this.removeFolds(p):this.expandFolds(p),S.length)return S},this.isRowFolded=function(h,d){return!!this.getFoldLine(h,d)},this.getRowFoldEnd=function(h,d){var _=this.getFoldLine(h,d);return _?_.end.row:h},this.getRowFoldStart=function(h,d){var _=this.getFoldLine(h,d);return _?_.start.row:h},this.getFoldDisplayLine=function(h,d,_,p,S){p==null&&(p=h.start.row),S==null&&(S=0),d==null&&(d=h.end.row),_==null&&(_=this.getLine(d).length);var k=this.doc,O="";return h.walk(function(F,D,Z,W){if(!(D<p)){if(D==p){if(Z<S)return;W=Math.max(S,W)}F!=null?O+=F:O+=k.getLine(D).substring(W,Z)}},d,_),O},this.getDisplayLine=function(h,d,_,p){var S=this.getFoldLine(h);if(S)return this.getFoldDisplayLine(S,h,d,_,p);var k;return k=this.doc.getLine(h),k.substring(p||0,d||k.length)},this.$cloneFoldData=function(){var h=[];return h=this.$foldData.map(function(d){var _=d.folds.map(function(p){return p.clone()});return new M(h,_)}),h},this.toggleFold=function(h){var d=this.selection,_=d.getRange(),p,S;if(_.isEmpty()){var k=_.start;if(p=this.getFoldAt(k.row,k.column),p){this.expandFold(p);return}else(S=this.findMatchingBracket(k))?_.comparePoint(S)==1?_.end=S:(_.start=S,_.start.column++,_.end.column--):(S=this.findMatchingBracket({row:k.row,column:k.column+1}))?(_.comparePoint(S)==1?_.end=S:_.start=S,_.start.column++):_=this.getCommentFoldRange(k.row,k.column)||_}else{var O=this.getFoldsInRange(_);if(h&&O.length){this.expandFolds(O);return}else O.length==1&&(p=O[0])}if(p||(p=this.getFoldAt(_.start.row,_.start.column)),p&&p.range.toString()==_.toString()){this.expandFold(p);return}var F="...";if(!_.isMultiLine()){if(F=this.getTextRange(_),F.length<4)return;F=F.trim().substring(0,2)+".."}this.addFold(F,_)},this.getCommentFoldRange=function(h,d,_){var p=new m(this,h,d),S=p.getCurrentToken(),k=S&&S.type;if(S&&/^comment|string/.test(k)){k=k.match(/comment|string/)[0],k=="comment"&&(k+="|doc-start|\\.doc");var O=new RegExp(k),F=new y;if(_!=1){do S=p.stepBackward();while(S&&O.test(S.type)&&!/^comment.end/.test(S.type));S=p.stepForward()}if(F.start.row=p.getCurrentTokenRow(),F.start.column=p.getCurrentTokenColumn()+(/^comment.start/.test(S.type)?S.value.length:2),p=new m(this,h,d),_!=-1){var D=-1;do if(S=p.stepForward(),D==-1){var Z=this.getState(p.$row);O.test(Z)||(D=p.$row)}else if(p.$row>D)break;while(S&&O.test(S.type)&&!/^comment.start/.test(S.type));S=p.stepBackward()}else S=p.getCurrentToken();return F.end.row=p.getCurrentTokenRow(),F.end.column=p.getCurrentTokenColumn(),/^comment.end/.test(S.type)||(F.end.column+=S.value.length-2),F}},this.foldAll=function(h,d,_,p){_==null&&(_=1e5);var S=this.foldWidgets;if(!!S){d=d||this.getLength(),h=h||0;for(var k=h;k<d;k++)if(S[k]==null&&(S[k]=this.getFoldWidget(k)),S[k]=="start"&&!(p&&!p(k))){var O=this.getFoldWidgetRange(k);O&&O.isMultiLine()&&O.end.row<=d&&O.start.row>=h&&(k=O.end.row,O.collapseChildren=_,this.addFold("...",O))}}},this.foldToLevel=function(h){for(this.foldAll();h-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var h=this;this.foldAll(null,null,null,function(d){for(var _=h.getTokens(d),p=0;p<_.length;p++){var S=_[p];if(!(S.type=="text"&&/^\s+$/.test(S.value)))return!!/comment/.test(S.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(h){if(!this.$foldStyles[h])throw new Error("invalid fold style: "+h+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=h){this.$foldStyle=h,h=="manual"&&this.unfold();var d=this.$foldMode;this.$setFolding(null),this.$setFolding(d)}},this.$setFolding=function(h){if(this.$foldMode!=h){if(this.$foldMode=h,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!h||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=h.getFoldWidget.bind(h,this,this.$foldStyle),this.getFoldWidgetRange=h.getFoldWidgetRange.bind(h,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(h,d){var _=this.foldWidgets;if(!_||d&&_[h])return{};for(var p=h-1,S;p>=0;){var k=_[p];if(k==null&&(k=_[p]=this.getFoldWidget(p)),k=="start"){var O=this.getFoldWidgetRange(p);if(S||(S=O),O&&O.end.row>=h)break}p--}return{range:p!==-1&&O,firstRange:S}},this.onFoldWidgetClick=function(h,d){d instanceof b&&(d=d.domEvent);var _={children:d.shiftKey,all:d.ctrlKey||d.metaKey,siblings:d.altKey},p=this.$toggleFoldWidget(h,_);if(!p){var S=d.target||d.srcElement;S&&/ace_fold-widget/.test(S.className)&&(S.className+=" ace_invalid")}},this.$toggleFoldWidget=function(h,d){if(!!this.getFoldWidget){var _=this.getFoldWidget(h),p=this.getLine(h),S=_==="end"?-1:1,k=this.getFoldAt(h,S===-1?0:p.length,S);if(k)return d.children||d.all?this.removeFold(k):this.expandFold(k),k;var O=this.getFoldWidgetRange(h,!0);if(O&&!O.isMultiLine()&&(k=this.getFoldAt(O.start.row,O.start.column,1),k&&O.isEqual(k.range)))return this.removeFold(k),k;if(d.siblings){var F=this.getParentFoldRangeData(h);if(F.range)var D=F.range.start.row+1,Z=F.range.end.row;this.foldAll(D,Z,d.all?1e4:0)}else d.children?(Z=O?O.end.row:this.getLength(),this.foldAll(h+1,Z,d.all?1e4:0)):O&&(d.all&&(O.collapseChildren=1e4),this.addFold("...",O));return O}},this.toggleFoldWidget=function(h){var d=this.selection.getCursor().row;d=this.getRowFoldStart(d);var _=this.$toggleFoldWidget(d,{});if(!_){var p=this.getParentFoldRangeData(d,!0);if(_=p.range||p.firstRange,_){d=_.start.row;var S=this.getFoldAt(d,this.getLine(d).length,1);S?this.removeFold(S):this.addFold("...",_)}}},this.updateFoldWidgets=function(h){var d=h.start.row,_=h.end.row-d;if(_===0)this.foldWidgets[d]=null;else if(h.action=="remove")this.foldWidgets.splice(d,_+1,null);else{var p=Array(_+1);p.unshift(d,1),this.foldWidgets.splice.apply(this.foldWidgets,p)}},this.tokenizerUpdateFoldWidgets=function(h){var d=h.data;d.first!=d.last&&this.foldWidgets.length>d.first&&this.foldWidgets.splice(d.first,this.foldWidgets.length)}}g.Folding=v}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(x,g,A){"use strict";var y=x("../token_iterator").TokenIterator,M=x("../range").Range;function w(){this.findMatchingBracket=function(m,b){if(m.column==0)return null;var v=b||this.getLine(m.row).charAt(m.column-1);if(v=="")return null;var h=v.match(/([\(\[\{])|([\)\]\}])/);return h?h[1]?this.$findClosingBracket(h[1],m):this.$findOpeningBracket(h[2],m):null},this.getBracketRange=function(m){var b=this.getLine(m.row),v=!0,h,d=b.charAt(m.column-1),_=d&&d.match(/([\(\[\{])|([\)\]\}])/);if(_||(d=b.charAt(m.column),m={row:m.row,column:m.column+1},_=d&&d.match(/([\(\[\{])|([\)\]\}])/),v=!1),!_)return null;if(_[1]){var p=this.$findClosingBracket(_[1],m);if(!p)return null;h=M.fromPoints(m,p),v||(h.end.column++,h.start.column--),h.cursor=h.end}else{var p=this.$findOpeningBracket(_[2],m);if(!p)return null;h=M.fromPoints(p,m),v||(h.start.column++,h.end.column--),h.cursor=h.start}return h},this.getMatchingBracketRanges=function(m,b){var v=this.getLine(m.row),h=/([\(\[\{])|([\)\]\}])/,d=!b&&v.charAt(m.column-1),_=d&&d.match(h);if(_||(d=(b===void 0||b)&&v.charAt(m.column),m={row:m.row,column:m.column+1},_=d&&d.match(h)),!_)return null;var p=new M(m.row,m.column-1,m.row,m.column),S=_[1]?this.$findClosingBracket(_[1],m):this.$findOpeningBracket(_[2],m);if(!S)return[p];var k=new M(S.row,S.column,S.row,S.column+1);return[p,k]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(m,b,v){var h=this.$brackets[m],d=1,_=new y(this,b.row,b.column),p=_.getCurrentToken();if(p||(p=_.stepForward()),!!p){v||(v=new RegExp("(\\.?"+p.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var S=b.column-_.getCurrentTokenColumn()-2,k=p.value;;){for(;S>=0;){var O=k.charAt(S);if(O==h){if(d-=1,d==0)return{row:_.getCurrentTokenRow(),column:S+_.getCurrentTokenColumn()}}else O==m&&(d+=1);S-=1}do p=_.stepBackward();while(p&&!v.test(p.type));if(p==null)break;k=p.value,S=k.length-1}return null}},this.$findClosingBracket=function(m,b,v){var h=this.$brackets[m],d=1,_=new y(this,b.row,b.column),p=_.getCurrentToken();if(p||(p=_.stepForward()),!!p){v||(v=new RegExp("(\\.?"+p.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var S=b.column-_.getCurrentTokenColumn();;){for(var k=p.value,O=k.length;S<O;){var F=k.charAt(S);if(F==h){if(d-=1,d==0)return{row:_.getCurrentTokenRow(),column:S+_.getCurrentTokenColumn()}}else F==m&&(d+=1);S+=1}do p=_.stepForward();while(p&&!v.test(p.type));if(p==null)break;S=0}return null}},this.getMatchingTags=function(m){var b=new y(this,m.row,m.column),v=this.$findTagName(b);if(!!v){var h=b.stepBackward();return h.value==="<"?this.$findClosingTag(b,v):this.$findOpeningTag(b,v)}},this.$findTagName=function(m){var b=m.getCurrentToken(),v=!1,h=!1;if(b&&b.type.indexOf("tag-name")===-1)do h?b=m.stepBackward():b=m.stepForward(),b&&(b.value==="/>"?h=!0:b.type.indexOf("tag-name")!==-1&&(v=!0));while(b&&!v);return b},this.$findClosingTag=function(m,b){var v,h=b.value,d=b.value,_=0,p=new M(m.getCurrentTokenRow(),m.getCurrentTokenColumn(),m.getCurrentTokenRow(),m.getCurrentTokenColumn()+1);b=m.stepForward();var S=new M(m.getCurrentTokenRow(),m.getCurrentTokenColumn(),m.getCurrentTokenRow(),m.getCurrentTokenColumn()+b.value.length),k=!1;do if(v=b,b=m.stepForward(),b){if(b.value===">"&&!k){var O=new M(m.getCurrentTokenRow(),m.getCurrentTokenColumn(),m.getCurrentTokenRow(),m.getCurrentTokenColumn()+1);k=!0}if(b.type.indexOf("tag-name")!==-1){if(h=b.value,d===h){if(v.value==="<")_++;else if(v.value==="</"&&(_--,_<0)){m.stepBackward();var F=new M(m.getCurrentTokenRow(),m.getCurrentTokenColumn(),m.getCurrentTokenRow(),m.getCurrentTokenColumn()+2);b=m.stepForward();var D=new M(m.getCurrentTokenRow(),m.getCurrentTokenColumn(),m.getCurrentTokenRow(),m.getCurrentTokenColumn()+b.value.length);if(b=m.stepForward(),b&&b.value===">")var Z=new M(m.getCurrentTokenRow(),m.getCurrentTokenColumn(),m.getCurrentTokenRow(),m.getCurrentTokenColumn()+1);else return}}}else if(d===h&&b.value==="/>"&&(_--,_<0))var F=new M(m.getCurrentTokenRow(),m.getCurrentTokenColumn(),m.getCurrentTokenRow(),m.getCurrentTokenColumn()+2),D=F,Z=D,O=new M(S.end.row,S.end.column,S.end.row,S.end.column+1)}while(b&&_>=0);if(p&&O&&F&&Z&&S&&D)return{openTag:new M(p.start.row,p.start.column,O.end.row,O.end.column),closeTag:new M(F.start.row,F.start.column,Z.end.row,Z.end.column),openTagName:S,closeTagName:D}},this.$findOpeningTag=function(m,b){var v=m.getCurrentToken(),h=b.value,d=0,_=m.getCurrentTokenRow(),p=m.getCurrentTokenColumn(),S=p+2,k=new M(_,p,_,S);m.stepForward();var O=new M(m.getCurrentTokenRow(),m.getCurrentTokenColumn(),m.getCurrentTokenRow(),m.getCurrentTokenColumn()+b.value.length);if(b=m.stepForward(),!(!b||b.value!==">")){var F=new M(m.getCurrentTokenRow(),m.getCurrentTokenColumn(),m.getCurrentTokenRow(),m.getCurrentTokenColumn()+1);m.stepBackward(),m.stepBackward();do if(b=v,_=m.getCurrentTokenRow(),p=m.getCurrentTokenColumn(),S=p+b.value.length,v=m.stepBackward(),b){if(b.type.indexOf("tag-name")!==-1){if(h===b.value)if(v.value==="<"){if(d++,d>0){var D=new M(_,p,_,S),Z=new M(m.getCurrentTokenRow(),m.getCurrentTokenColumn(),m.getCurrentTokenRow(),m.getCurrentTokenColumn()+1);do b=m.stepForward();while(b&&b.value!==">");var W=new M(m.getCurrentTokenRow(),m.getCurrentTokenColumn(),m.getCurrentTokenRow(),m.getCurrentTokenColumn()+1)}}else v.value==="</"&&d--}else if(b.value==="/>"){for(var U=0,L=v;L;){if(L.type.indexOf("tag-name")!==-1&&L.value===h){d--;break}else if(L.value==="<")break;L=m.stepBackward(),U++}for(var V=0;V<U;V++)m.stepForward()}}while(v&&d<=0);if(Z&&W&&k&&F&&D&&O)return{openTag:new M(Z.start.row,Z.start.column,W.end.row,W.end.column),closeTag:new M(k.start.row,k.start.column,F.end.row,F.end.column),openTagName:D,closeTagName:O}}}}g.BracketMatch=w}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],function(x,g,A){"use strict";var y=x("./lib/oop"),M=x("./lib/lang"),w=x("./bidihandler").BidiHandler,m=x("./config"),b=x("./lib/event_emitter").EventEmitter,v=x("./selection").Selection,h=x("./mode/text").Mode,d=x("./range").Range,_=x("./document").Document,p=x("./background_tokenizer").BackgroundTokenizer,S=x("./search_highlight").SearchHighlight,k=function(){function G(z,K){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++G.$uid,this.$foldData.toString=function(){return this.join(`
|
||
`)},this.bgTokenizer=new p(new h().getTokenizer(),this);var re=this;this.bgTokenizer.on("update",function(ne){re._signal("tokenizerUpdate",ne)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof z!="object"||!z.getLine)&&(z=new _(z)),this.setDocument(z),this.selection=new v(this),this.$bidiHandler=new w(this),m.resetOptions(this),this.setMode(K),m._signal("session",this),this.destroyed=!1}return G.prototype.setDocument=function(z){this.doc&&this.doc.off("change",this.$onChange),this.doc=z,z.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},G.prototype.getDocument=function(){return this.doc},G.prototype.$resetRowCache=function(z){if(!z){this.$docRowCache=[],this.$screenRowCache=[];return}var K=this.$docRowCache.length,re=this.$getRowCacheIndex(this.$docRowCache,z)+1;K>re&&(this.$docRowCache.splice(re,K),this.$screenRowCache.splice(re,K))},G.prototype.$getRowCacheIndex=function(z,K){for(var re=0,ne=z.length-1;re<=ne;){var Q=re+ne>>1,ue=z[Q];if(K>ue)re=Q+1;else if(K<ue)ne=Q-1;else return Q}return re-1},G.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},G.prototype.onChangeFold=function(z){var K=z.data;this.$resetRowCache(K.start.row)},G.prototype.onChange=function(z){this.$modified=!0,this.$bidiHandler.onChange(z),this.$resetRowCache(z.start.row);var K=this.$updateInternalDataOnChange(z);!this.$fromUndo&&this.$undoManager&&(K&&K.length&&(this.$undoManager.add({action:"removeFolds",folds:K},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(z,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(z),this._signal("change",z)},G.prototype.setValue=function(z){this.doc.setValue(z),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},G.prototype.toString=function(){return this.doc.getValue()},G.prototype.getSelection=function(){return this.selection},G.prototype.getState=function(z){return this.bgTokenizer.getState(z)},G.prototype.getTokens=function(z){return this.bgTokenizer.getTokens(z)},G.prototype.getTokenAt=function(z,K){var re=this.bgTokenizer.getTokens(z),ne,Q=0;if(K==null){var ue=re.length-1;Q=this.getLine(z).length}else for(var ue=0;ue<re.length&&(Q+=re[ue].value.length,!(Q>=K));ue++);return ne=re[ue],ne?(ne.index=ue,ne.start=Q-ne.value.length,ne):null},G.prototype.setUndoManager=function(z){if(this.$undoManager=z,this.$informUndoManager&&this.$informUndoManager.cancel(),z){var K=this;z.addSession(this),this.$syncInformUndoManager=function(){K.$informUndoManager.cancel(),K.mergeUndoDeltas=!1},this.$informUndoManager=M.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},G.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},G.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},G.prototype.getTabString=function(){return this.getUseSoftTabs()?M.stringRepeat(" ",this.getTabSize()):" "},G.prototype.setUseSoftTabs=function(z){this.setOption("useSoftTabs",z)},G.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},G.prototype.setTabSize=function(z){this.setOption("tabSize",z)},G.prototype.getTabSize=function(){return this.$tabSize},G.prototype.isTabStop=function(z){return this.$useSoftTabs&&z.column%this.$tabSize==0},G.prototype.setNavigateWithinSoftTabs=function(z){this.setOption("navigateWithinSoftTabs",z)},G.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},G.prototype.setOverwrite=function(z){this.setOption("overwrite",z)},G.prototype.getOverwrite=function(){return this.$overwrite},G.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},G.prototype.addGutterDecoration=function(z,K){this.$decorations[z]||(this.$decorations[z]=""),this.$decorations[z]+=" "+K,this._signal("changeBreakpoint",{})},G.prototype.removeGutterDecoration=function(z,K){this.$decorations[z]=(this.$decorations[z]||"").replace(" "+K,""),this._signal("changeBreakpoint",{})},G.prototype.getBreakpoints=function(){return this.$breakpoints},G.prototype.setBreakpoints=function(z){this.$breakpoints=[];for(var K=0;K<z.length;K++)this.$breakpoints[z[K]]="ace_breakpoint";this._signal("changeBreakpoint",{})},G.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},G.prototype.setBreakpoint=function(z,K){K===void 0&&(K="ace_breakpoint"),K?this.$breakpoints[z]=K:delete this.$breakpoints[z],this._signal("changeBreakpoint",{})},G.prototype.clearBreakpoint=function(z){delete this.$breakpoints[z],this._signal("changeBreakpoint",{})},G.prototype.addMarker=function(z,K,re,ne){var Q=this.$markerId++,ue={range:z,type:re||"line",renderer:typeof re=="function"?re:null,clazz:K,inFront:!!ne,id:Q};return ne?(this.$frontMarkers[Q]=ue,this._signal("changeFrontMarker")):(this.$backMarkers[Q]=ue,this._signal("changeBackMarker")),Q},G.prototype.addDynamicMarker=function(z,K){if(!!z.update){var re=this.$markerId++;return z.id=re,z.inFront=!!K,K?(this.$frontMarkers[re]=z,this._signal("changeFrontMarker")):(this.$backMarkers[re]=z,this._signal("changeBackMarker")),z}},G.prototype.removeMarker=function(z){var K=this.$frontMarkers[z]||this.$backMarkers[z];if(!!K){var re=K.inFront?this.$frontMarkers:this.$backMarkers;delete re[z],this._signal(K.inFront?"changeFrontMarker":"changeBackMarker")}},G.prototype.getMarkers=function(z){return z?this.$frontMarkers:this.$backMarkers},G.prototype.highlight=function(z){if(!this.$searchHighlight){var K=new S(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(K)}this.$searchHighlight.setRegexp(z)},G.prototype.highlightLines=function(z,K,re,ne){typeof K!="number"&&(re=K,K=z),re||(re="ace_step");var Q=new d(z,0,K,Infinity);return Q.id=this.addMarker(Q,re,"fullLine",ne),Q},G.prototype.setAnnotations=function(z){this.$annotations=z,this._signal("changeAnnotation",{})},G.prototype.getAnnotations=function(){return this.$annotations||[]},G.prototype.clearAnnotations=function(){this.setAnnotations([])},G.prototype.$detectNewLine=function(z){var K=z.match(/^.*?(\r?\n)/m);K?this.$autoNewLine=K[1]:this.$autoNewLine=`
|
||
`},G.prototype.getWordRange=function(z,K){var re=this.getLine(z),ne=!1;if(K>0&&(ne=!!re.charAt(K-1).match(this.tokenRe)),ne||(ne=!!re.charAt(K).match(this.tokenRe)),ne)var Q=this.tokenRe;else if(/^\s+$/.test(re.slice(K-1,K+1)))var Q=/\s/;else var Q=this.nonTokenRe;var ue=K;if(ue>0){do ue--;while(ue>=0&&re.charAt(ue).match(Q));ue++}for(var he=K;he<re.length&&re.charAt(he).match(Q);)he++;return new d(z,ue,z,he)},G.prototype.getAWordRange=function(z,K){for(var re=this.getWordRange(z,K),ne=this.getLine(re.end.row);ne.charAt(re.end.column).match(/[ \t]/);)re.end.column+=1;return re},G.prototype.setNewLineMode=function(z){this.doc.setNewLineMode(z)},G.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},G.prototype.setUseWorker=function(z){this.setOption("useWorker",z)},G.prototype.getUseWorker=function(){return this.$useWorker},G.prototype.onReloadTokenizer=function(z){var K=z.data;this.bgTokenizer.start(K.first),this._signal("tokenizerUpdate",z)},G.prototype.setMode=function(z,K){if(z&&typeof z=="object"){if(z.getTokenizer)return this.$onChangeMode(z);var re=z,ne=re.path}else ne=z||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new h),this.$modes[ne]&&!re){this.$onChangeMode(this.$modes[ne]),K&&K();return}this.$modeId=ne,m.loadModule(["mode",ne],function(Q){if(this.$modeId!==ne)return K&&K();this.$modes[ne]&&!re?this.$onChangeMode(this.$modes[ne]):Q&&Q.Mode&&(Q=new Q.Mode(re),re||(this.$modes[ne]=Q,Q.$id=ne),this.$onChangeMode(Q)),K&&K()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},G.prototype.$onChangeMode=function(z,K){if(K||(this.$modeId=z.$id),this.$mode!==z){var re=this.$mode;this.$mode=z,this.$stopWorker(),this.$useWorker&&this.$startWorker();var ne=z.getTokenizer();if(ne.on!==void 0){var Q=this.onReloadTokenizer.bind(this);ne.on("update",Q)}this.bgTokenizer.setTokenizer(ne),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=z.tokenRe,this.nonTokenRe=z.nonTokenRe,K||(z.attachToSession&&z.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(z.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:re,mode:z}))}},G.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},G.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(z){m.warn("Could not load worker",z),this.$worker=null}},G.prototype.getMode=function(){return this.$mode},G.prototype.setScrollTop=function(z){this.$scrollTop===z||isNaN(z)||(this.$scrollTop=z,this._signal("changeScrollTop",z))},G.prototype.getScrollTop=function(){return this.$scrollTop},G.prototype.setScrollLeft=function(z){this.$scrollLeft===z||isNaN(z)||(this.$scrollLeft=z,this._signal("changeScrollLeft",z))},G.prototype.getScrollLeft=function(){return this.$scrollLeft},G.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},G.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var z=0;return this.lineWidgets.forEach(function(K){K&&K.screenWidth>z&&(z=K.screenWidth)}),this.lineWidgetWidth=z},G.prototype.$computeWidth=function(z){if(this.$modified||z){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var K=this.doc.getAllLines(),re=this.$rowLengthCache,ne=0,Q=0,ue=this.$foldData[Q],he=ue?ue.start.row:Infinity,Ee=K.length,ce=0;ce<Ee;ce++){if(ce>he){if(ce=ue.end.row+1,ce>=Ee)break;ue=this.$foldData[Q++],he=ue?ue.start.row:Infinity}re[ce]==null&&(re[ce]=this.$getStringScreenWidth(K[ce])[0]),re[ce]>ne&&(ne=re[ce])}this.screenWidth=ne}},G.prototype.getLine=function(z){return this.doc.getLine(z)},G.prototype.getLines=function(z,K){return this.doc.getLines(z,K)},G.prototype.getLength=function(){return this.doc.getLength()},G.prototype.getTextRange=function(z){return this.doc.getTextRange(z||this.selection.getRange())},G.prototype.insert=function(z,K){return this.doc.insert(z,K)},G.prototype.remove=function(z){return this.doc.remove(z)},G.prototype.removeFullLines=function(z,K){return this.doc.removeFullLines(z,K)},G.prototype.undoChanges=function(z,K){if(!!z.length){this.$fromUndo=!0;for(var re=z.length-1;re!=-1;re--){var ne=z[re];ne.action=="insert"||ne.action=="remove"?this.doc.revertDelta(ne):ne.folds&&this.addFolds(ne.folds)}!K&&this.$undoSelect&&(z.selectionBefore?this.selection.fromJSON(z.selectionBefore):this.selection.setRange(this.$getUndoSelection(z,!0))),this.$fromUndo=!1}},G.prototype.redoChanges=function(z,K){if(!!z.length){this.$fromUndo=!0;for(var re=0;re<z.length;re++){var ne=z[re];(ne.action=="insert"||ne.action=="remove")&&this.doc.$safeApplyDelta(ne)}!K&&this.$undoSelect&&(z.selectionAfter?this.selection.fromJSON(z.selectionAfter):this.selection.setRange(this.$getUndoSelection(z,!1))),this.$fromUndo=!1}},G.prototype.setUndoSelect=function(z){this.$undoSelect=z},G.prototype.$getUndoSelection=function(z,K){function re(Ee){return K?Ee.action!=="insert":Ee.action==="insert"}for(var ne,Q,ue=0;ue<z.length;ue++){var he=z[ue];if(!!he.start){if(!ne){re(he)?ne=d.fromPoints(he.start,he.end):ne=d.fromPoints(he.start,he.start);continue}re(he)?(Q=he.start,ne.compare(Q.row,Q.column)==-1&&ne.setStart(Q),Q=he.end,ne.compare(Q.row,Q.column)==1&&ne.setEnd(Q)):(Q=he.start,ne.compare(Q.row,Q.column)==-1&&(ne=d.fromPoints(he.start,he.start)))}}return ne},G.prototype.replace=function(z,K){return this.doc.replace(z,K)},G.prototype.moveText=function(z,K,re){var ne=this.getTextRange(z),Q=this.getFoldsInRange(z),ue=d.fromPoints(K,K);if(!re){this.remove(z);var he=z.start.row-z.end.row,Ee=he?-z.end.column:z.start.column-z.end.column;Ee&&(ue.start.row==z.end.row&&ue.start.column>z.end.column&&(ue.start.column+=Ee),ue.end.row==z.end.row&&ue.end.column>z.end.column&&(ue.end.column+=Ee)),he&&ue.start.row>=z.end.row&&(ue.start.row+=he,ue.end.row+=he)}if(ue.end=this.insert(ue.start,ne),Q.length){var ce=z.start,ve=ue.start,he=ve.row-ce.row,Ee=ve.column-ce.column;this.addFolds(Q.map(function(me){return me=me.clone(),me.start.row==ce.row&&(me.start.column+=Ee),me.end.row==ce.row&&(me.end.column+=Ee),me.start.row+=he,me.end.row+=he,me}))}return ue},G.prototype.indentRows=function(z,K,re){re=re.replace(/\t/g,this.getTabString());for(var ne=z;ne<=K;ne++)this.doc.insertInLine({row:ne,column:0},re)},G.prototype.outdentRows=function(z){for(var K=z.collapseRows(),re=new d(0,0,0,0),ne=this.getTabSize(),Q=K.start.row;Q<=K.end.row;++Q){var ue=this.getLine(Q);re.start.row=Q,re.end.row=Q;for(var he=0;he<ne&&ue.charAt(he)==" ";++he);he<ne&&ue.charAt(he)==" "?(re.start.column=he,re.end.column=he+1):(re.start.column=0,re.end.column=he),this.remove(re)}},G.prototype.$moveLines=function(z,K,re){if(z=this.getRowFoldStart(z),K=this.getRowFoldEnd(K),re<0){var ne=this.getRowFoldStart(z+re);if(ne<0)return 0;var Q=ne-z}else if(re>0){var ne=this.getRowFoldEnd(K+re);if(ne>this.doc.getLength()-1)return 0;var Q=ne-K}else{z=this.$clipRowToDocument(z),K=this.$clipRowToDocument(K);var Q=K-z+1}var ue=new d(z,0,K,Number.MAX_VALUE),he=this.getFoldsInRange(ue).map(function(ce){return ce=ce.clone(),ce.start.row+=Q,ce.end.row+=Q,ce}),Ee=re==0?this.doc.getLines(z,K):this.doc.removeFullLines(z,K);return this.doc.insertFullLines(z+Q,Ee),he.length&&this.addFolds(he),Q},G.prototype.moveLinesUp=function(z,K){return this.$moveLines(z,K,-1)},G.prototype.moveLinesDown=function(z,K){return this.$moveLines(z,K,1)},G.prototype.duplicateLines=function(z,K){return this.$moveLines(z,K,0)},G.prototype.$clipRowToDocument=function(z){return Math.max(0,Math.min(z,this.doc.getLength()-1))},G.prototype.$clipColumnToRow=function(z,K){return K<0?0:Math.min(this.doc.getLine(z).length,K)},G.prototype.$clipPositionToDocument=function(z,K){if(K=Math.max(0,K),z<0)z=0,K=0;else{var re=this.doc.getLength();z>=re?(z=re-1,K=this.doc.getLine(re-1).length):K=Math.min(this.doc.getLine(z).length,K)}return{row:z,column:K}},G.prototype.$clipRangeToDocument=function(z){z.start.row<0?(z.start.row=0,z.start.column=0):z.start.column=this.$clipColumnToRow(z.start.row,z.start.column);var K=this.doc.getLength()-1;return z.end.row>K?(z.end.row=K,z.end.column=this.doc.getLine(K).length):z.end.column=this.$clipColumnToRow(z.end.row,z.end.column),z},G.prototype.setUseWrapMode=function(z){if(z!=this.$useWrapMode){if(this.$useWrapMode=z,this.$modified=!0,this.$resetRowCache(0),z){var K=this.getLength();this.$wrapData=Array(K),this.$updateWrapData(0,K-1)}this._signal("changeWrapMode")}},G.prototype.getUseWrapMode=function(){return this.$useWrapMode},G.prototype.setWrapLimitRange=function(z,K){(this.$wrapLimitRange.min!==z||this.$wrapLimitRange.max!==K)&&(this.$wrapLimitRange={min:z,max:K},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},G.prototype.adjustWrapLimit=function(z,K){var re=this.$wrapLimitRange;re.max<0&&(re={min:K,max:K});var ne=this.$constrainWrapLimit(z,re.min,re.max);return ne!=this.$wrapLimit&&ne>1?(this.$wrapLimit=ne,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},G.prototype.$constrainWrapLimit=function(z,K,re){return K&&(z=Math.max(K,z)),re&&(z=Math.min(re,z)),z},G.prototype.getWrapLimit=function(){return this.$wrapLimit},G.prototype.setWrapLimit=function(z){this.setWrapLimitRange(z,z)},G.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},G.prototype.$updateInternalDataOnChange=function(z){var K=this.$useWrapMode,re=z.action,ne=z.start,Q=z.end,ue=ne.row,he=Q.row,Ee=he-ue,ce=null;if(this.$updating=!0,Ee!=0)if(re==="remove"){this[K?"$wrapData":"$rowLengthCache"].splice(ue,Ee);var ve=this.$foldData;ce=this.getFoldsInRange(z),this.removeFolds(ce);var fe=this.getFoldLine(Q.row),we=0;if(fe){fe.addRemoveChars(Q.row,Q.column,ne.column-Q.column),fe.shiftRow(-Ee);var me=this.getFoldLine(ue);me&&me!==fe&&(me.merge(fe),fe=me),we=ve.indexOf(fe)+1}for(we;we<ve.length;we++){var fe=ve[we];fe.start.row>=Q.row&&fe.shiftRow(-Ee)}he=ue}else{var Pe=Array(Ee);Pe.unshift(ue,0);var pe=K?this.$wrapData:this.$rowLengthCache;pe.splice.apply(pe,Pe);var ve=this.$foldData,fe=this.getFoldLine(ue),we=0;if(fe){var Ie=fe.range.compareInside(ne.row,ne.column);Ie==0?(fe=fe.split(ne.row,ne.column),fe&&(fe.shiftRow(Ee),fe.addRemoveChars(he,0,Q.column-ne.column))):Ie==-1&&(fe.addRemoveChars(ue,0,Q.column-ne.column),fe.shiftRow(Ee)),we=ve.indexOf(fe)+1}for(we;we<ve.length;we++){var fe=ve[we];fe.start.row>=ue&&fe.shiftRow(Ee)}}else{Ee=Math.abs(z.start.column-z.end.column),re==="remove"&&(ce=this.getFoldsInRange(z),this.removeFolds(ce),Ee=-Ee);var fe=this.getFoldLine(ue);fe&&fe.addRemoveChars(ue,ne.column,Ee)}return K&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,K?this.$updateWrapData(ue,he):this.$updateRowLengthCache(ue,he),ce},G.prototype.$updateRowLengthCache=function(z,K,re){this.$rowLengthCache[z]=null,this.$rowLengthCache[K]=null},G.prototype.$updateWrapData=function(z,K){var re=this.doc.getAllLines(),ne=this.getTabSize(),Q=this.$wrapData,ue=this.$wrapLimit,he,Ee,ce=z;for(K=Math.min(K,re.length-1);ce<=K;)Ee=this.getFoldLine(ce,Ee),Ee?(he=[],Ee.walk(function(ve,fe,we,me){var Pe;if(ve!=null){Pe=this.$getDisplayTokens(ve,he.length),Pe[0]=D;for(var pe=1;pe<Pe.length;pe++)Pe[pe]=Z}else Pe=this.$getDisplayTokens(re[fe].substring(me,we),he.length);he=he.concat(Pe)}.bind(this),Ee.end.row,re[Ee.end.row].length+1),Q[Ee.start.row]=this.$computeWrapSplits(he,ue,ne),ce=Ee.end.row+1):(he=this.$getDisplayTokens(re[ce]),Q[ce]=this.$computeWrapSplits(he,ue,ne),ce++)},G.prototype.$computeWrapSplits=function(z,K,re){if(z.length==0)return[];var ne=[],Q=z.length,ue=0,he=0,Ee=this.$wrapAsCode,ce=this.$indentedSoftWrap,ve=K<=Math.max(2*re,8)||ce===!1?0:Math.floor(K/2);function fe(){var Ie=0;if(ve===0)return Ie;if(ce)for(var Je=0;Je<z.length;Je++){var ke=z[Je];if(ke==U)Ie+=1;else if(ke==L)Ie+=re;else{if(ke==V)continue;break}}return Ee&&ce!==!1&&(Ie+=re),Math.min(Ie,ve)}function we(Ie){for(var Je=Ie-ue,ke=ue;ke<Ie;ke++){var De=z[ke];(De===12||De===2)&&(Je-=1)}ne.length||(me=fe(),ne.indent=me),he+=Je,ne.push(he),ue=Ie}for(var me=0;Q-ue>K-me;){var Pe=ue+K-me;if(z[Pe-1]>=U&&z[Pe]>=U){we(Pe);continue}if(z[Pe]==D||z[Pe]==Z){for(Pe;Pe!=ue-1&&z[Pe]!=D;Pe--);if(Pe>ue){we(Pe);continue}for(Pe=ue+K,Pe;Pe<z.length&&z[Pe]==Z;Pe++);if(Pe==z.length)break;we(Pe);continue}for(var pe=Math.max(Pe-(K-(K>>2)),ue-1);Pe>pe&&z[Pe]<D;)Pe--;if(Ee){for(;Pe>pe&&z[Pe]<D;)Pe--;for(;Pe>pe&&z[Pe]==W;)Pe--}else for(;Pe>pe&&z[Pe]<U;)Pe--;if(Pe>pe){we(++Pe);continue}Pe=ue+K,z[Pe]==F&&Pe--,we(Pe-me)}return ne},G.prototype.$getDisplayTokens=function(z,K){var re=[],ne;K=K||0;for(var Q=0;Q<z.length;Q++){var ue=z.charCodeAt(Q);if(ue==9){ne=this.getScreenTabSize(re.length+K),re.push(L);for(var he=1;he<ne;he++)re.push(V)}else ue==32?re.push(U):ue>39&&ue<48||ue>57&&ue<64?re.push(W):ue>=4352&&$(ue)?re.push(O,F):re.push(O)}return re},G.prototype.$getStringScreenWidth=function(z,K,re){if(K==0)return[0,0];K==null&&(K=Infinity),re=re||0;var ne,Q;for(Q=0;Q<z.length&&(ne=z.charCodeAt(Q),ne==9?re+=this.getScreenTabSize(re):ne>=4352&&$(ne)?re+=2:re+=1,!(re>K));Q++);return[re,Q]},G.prototype.getRowLength=function(z){var K=1;return this.lineWidgets&&(K+=this.lineWidgets[z]&&this.lineWidgets[z].rowCount||0),!this.$useWrapMode||!this.$wrapData[z]?K:this.$wrapData[z].length+K},G.prototype.getRowLineCount=function(z){return!this.$useWrapMode||!this.$wrapData[z]?1:this.$wrapData[z].length+1},G.prototype.getRowWrapIndent=function(z){if(this.$useWrapMode){var K=this.screenToDocumentPosition(z,Number.MAX_VALUE),re=this.$wrapData[K.row];return re.length&&re[0]<K.column?re.indent:0}else return 0},G.prototype.getScreenLastRowColumn=function(z){var K=this.screenToDocumentPosition(z,Number.MAX_VALUE);return this.documentToScreenColumn(K.row,K.column)},G.prototype.getDocumentLastRowColumn=function(z,K){var re=this.documentToScreenRow(z,K);return this.getScreenLastRowColumn(re)},G.prototype.getDocumentLastRowColumnPosition=function(z,K){var re=this.documentToScreenRow(z,K);return this.screenToDocumentPosition(re,Number.MAX_VALUE/10)},G.prototype.getRowSplitData=function(z){if(this.$useWrapMode)return this.$wrapData[z]},G.prototype.getScreenTabSize=function(z){return this.$tabSize-(z%this.$tabSize|0)},G.prototype.screenToDocumentRow=function(z,K){return this.screenToDocumentPosition(z,K).row},G.prototype.screenToDocumentColumn=function(z,K){return this.screenToDocumentPosition(z,K).column},G.prototype.screenToDocumentPosition=function(z,K,re){if(z<0)return{row:0,column:0};var ne,Q=0,ue=0,he,Ee=0,ce=0,ve=this.$screenRowCache,fe=this.$getRowCacheIndex(ve,z),we=ve.length;if(we&&fe>=0)var Ee=ve[fe],Q=this.$docRowCache[fe],me=z>ve[we-1];else var me=!we;for(var Pe=this.getLength()-1,pe=this.getNextFoldLine(Q),Ie=pe?pe.start.row:Infinity;Ee<=z&&(ce=this.getRowLength(Q),!(Ee+ce>z||Q>=Pe));)Ee+=ce,Q++,Q>Ie&&(Q=pe.end.row+1,pe=this.getNextFoldLine(Q,pe),Ie=pe?pe.start.row:Infinity),me&&(this.$docRowCache.push(Q),this.$screenRowCache.push(Ee));if(pe&&pe.start.row<=Q)ne=this.getFoldDisplayLine(pe),Q=pe.start.row;else{if(Ee+ce<=z||Q>Pe)return{row:Pe,column:this.getLine(Pe).length};ne=this.getLine(Q),pe=null}var Je=0,ke=Math.floor(z-Ee);if(this.$useWrapMode){var De=this.$wrapData[Q];De&&(he=De[ke],ke>0&&De.length&&(Je=De.indent,ue=De[ke-1]||De[De.length-1],ne=ne.substring(ue)))}return re!==void 0&&this.$bidiHandler.isBidiRow(Ee+ke,Q,ke)&&(K=this.$bidiHandler.offsetToCol(re)),ue+=this.$getStringScreenWidth(ne,K-Je)[1],this.$useWrapMode&&ue>=he&&(ue=he-1),pe?pe.idxToPosition(ue):{row:Q,column:ue}},G.prototype.documentToScreenPosition=function(z,K){if(typeof K=="undefined")var re=this.$clipPositionToDocument(z.row,z.column);else re=this.$clipPositionToDocument(z,K);z=re.row,K=re.column;var ne=0,Q=null,ue=null;ue=this.getFoldAt(z,K,1),ue&&(z=ue.start.row,K=ue.start.column);var he,Ee=0,ce=this.$docRowCache,ve=this.$getRowCacheIndex(ce,z),fe=ce.length;if(fe&&ve>=0)var Ee=ce[ve],ne=this.$screenRowCache[ve],we=z>ce[fe-1];else var we=!fe;for(var me=this.getNextFoldLine(Ee),Pe=me?me.start.row:Infinity;Ee<z;){if(Ee>=Pe){if(he=me.end.row+1,he>z)break;me=this.getNextFoldLine(he,me),Pe=me?me.start.row:Infinity}else he=Ee+1;ne+=this.getRowLength(Ee),Ee=he,we&&(this.$docRowCache.push(Ee),this.$screenRowCache.push(ne))}var pe="";me&&Ee>=Pe?(pe=this.getFoldDisplayLine(me,z,K),Q=me.start.row):(pe=this.getLine(z).substring(0,K),Q=z);var Ie=0;if(this.$useWrapMode){var Je=this.$wrapData[Q];if(Je){for(var ke=0;pe.length>=Je[ke];)ne++,ke++;pe=pe.substring(Je[ke-1]||0,pe.length),Ie=ke>0?Je.indent:0}}return this.lineWidgets&&this.lineWidgets[Ee]&&this.lineWidgets[Ee].rowsAbove&&(ne+=this.lineWidgets[Ee].rowsAbove),{row:ne,column:Ie+this.$getStringScreenWidth(pe)[0]}},G.prototype.documentToScreenColumn=function(z,K){return this.documentToScreenPosition(z,K).column},G.prototype.documentToScreenRow=function(z,K){return this.documentToScreenPosition(z,K).row},G.prototype.getScreenLength=function(){var z=0,K=null;if(this.$useWrapMode)for(var Q=this.$wrapData.length,ue=0,ne=0,K=this.$foldData[ne++],he=K?K.start.row:Infinity;ue<Q;){var Ee=this.$wrapData[ue];z+=Ee?Ee.length+1:1,ue++,ue>he&&(ue=K.end.row+1,K=this.$foldData[ne++],he=K?K.start.row:Infinity)}else{z=this.getLength();for(var re=this.$foldData,ne=0;ne<re.length;ne++)K=re[ne],z-=K.end.row-K.start.row}return this.lineWidgets&&(z+=this.$getWidgetScreenLength()),z},G.prototype.$setFontMetrics=function(z){!this.$enableVarChar||(this.$getStringScreenWidth=function(K,re,ne){if(re===0)return[0,0];re||(re=Infinity),ne=ne||0;var Q,ue;for(ue=0;ue<K.length&&(Q=K.charAt(ue),Q===" "?ne+=this.getScreenTabSize(ne):ne+=z.getCharacterWidth(Q),!(ne>re));ue++);return[ne,ue]})},G.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},G}();k.$uid=0,k.prototype.$modes=m.$modes,k.prototype.getValue=k.prototype.toString,k.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},k.prototype.$overwrite=!1,k.prototype.$mode=null,k.prototype.$modeId=null,k.prototype.$scrollTop=0,k.prototype.$scrollLeft=0,k.prototype.$wrapLimit=80,k.prototype.$useWrapMode=!1,k.prototype.$wrapLimitRange={min:null,max:null},k.prototype.lineWidgets=null,k.prototype.isFullWidth=$,y.implement(k.prototype,b);var O=1,F=2,D=3,Z=4,W=9,U=10,L=11,V=12;function $(G){return G<4352?!1:G>=4352&&G<=4447||G>=4515&&G<=4519||G>=4602&&G<=4607||G>=9001&&G<=9002||G>=11904&&G<=11929||G>=11931&&G<=12019||G>=12032&&G<=12245||G>=12272&&G<=12283||G>=12288&&G<=12350||G>=12353&&G<=12438||G>=12441&&G<=12543||G>=12549&&G<=12589||G>=12593&&G<=12686||G>=12688&&G<=12730||G>=12736&&G<=12771||G>=12784&&G<=12830||G>=12832&&G<=12871||G>=12880&&G<=13054||G>=13056&&G<=19903||G>=19968&&G<=42124||G>=42128&&G<=42182||G>=43360&&G<=43388||G>=44032&&G<=55203||G>=55216&&G<=55238||G>=55243&&G<=55291||G>=63744&&G<=64255||G>=65040&&G<=65049||G>=65072&&G<=65106||G>=65108&&G<=65126||G>=65128&&G<=65131||G>=65281&&G<=65376||G>=65504&&G<=65510}x("./edit_session/folding").Folding.call(k.prototype),x("./edit_session/bracket_match").BracketMatch.call(k.prototype),m.defineOptions(k.prototype,"session",{wrap:{set:function(z){if(!z||z=="off"?z=!1:z=="free"?z=!0:z=="printMargin"?z=-1:typeof z=="string"&&(z=parseInt(z,10)||!1),this.$wrap!=z)if(this.$wrap=z,!z)this.setUseWrapMode(!1);else{var K=typeof z=="number"?z:null;this.setWrapLimitRange(K,K),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(z){z=z=="auto"?this.$mode.type!="text":z!="text",z!=this.$wrapAsCode&&(this.$wrapAsCode=z,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(z){this.$useWorker=z,this.$stopWorker(),z&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(z){z=parseInt(z),z>0&&this.$tabSize!==z&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=z,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(z){this.setFoldStyle(z)},handlesSet:!0},overwrite:{set:function(z){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(z){this.doc.setNewLineMode(z)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(z){this.setMode(z)},get:function(){return this.$modeId},handlesSet:!0}}),g.EditSession=k}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(x,g,A){"use strict";var y=x("./lib/lang"),M=x("./lib/oop"),w=x("./range").Range,m=function(){function v(){this.$options={}}return v.prototype.set=function(h){return M.mixin(this.$options,h),this},v.prototype.getOptions=function(){return y.copyObject(this.$options)},v.prototype.setOptions=function(h){this.$options=h},v.prototype.find=function(h){var d=this.$options,_=this.$matchIterator(h,d);if(!_)return!1;var p=null;return _.forEach(function(S,k,O,F){return p=new w(S,k,O,F),k==F&&d.start&&d.start.start&&d.skipCurrent!=!1&&p.isEqual(d.start)?(p=null,!1):!0}),p},v.prototype.findAll=function(h){var d=this.$options;if(!d.needle)return[];this.$assembleRegExp(d);var _=d.range,p=_?h.getLines(_.start.row,_.end.row):h.doc.getAllLines(),S=[],k=d.re;if(d.$isMultiLine){var O=k.length,F=p.length-O,D;e:for(var Z=k.offset||0;Z<=F;Z++){for(var W=0;W<O;W++)if(p[Z+W].search(k[W])==-1)continue e;var U=p[Z],L=p[Z+O-1],V=U.length-U.match(k[0])[0].length,$=L.match(k[O-1])[0].length;D&&D.end.row===Z&&D.end.column>V||(S.push(D=new w(Z,V,Z+O-1,$)),O>2&&(Z=Z+O-2))}}else for(var G=0;G<p.length;G++)for(var z=y.getMatchOffsets(p[G],k),W=0;W<z.length;W++){var K=z[W];S.push(new w(G,K.offset,G,K.offset+K.length))}if(_){for(var re=_.start.column,ne=_.end.column,G=0,W=S.length-1;G<W&&S[G].start.column<re&&S[G].start.row==0;)G++;for(var Q=_.end.row-_.start.row;G<W&&S[W].end.column>ne&&S[W].end.row==Q;)W--;for(S=S.slice(G,W+1),G=0,W=S.length;G<W;G++)S[G].start.row+=_.start.row,S[G].end.row+=_.start.row}return S},v.prototype.replace=function(h,d){var _=this.$options,p=this.$assembleRegExp(_);if(_.$isMultiLine)return d;if(!!p){var S=p.exec(h);if(!S||S[0].length!=h.length)return null;if(d=h.replace(p,d),_.preserveCase){d=d.split("");for(var k=Math.min(h.length,h.length);k--;){var O=h[k];O&&O.toLowerCase()!=O?d[k]=d[k].toUpperCase():d[k]=d[k].toLowerCase()}d=d.join("")}return d}},v.prototype.$assembleRegExp=function(h,d){if(h.needle instanceof RegExp)return h.re=h.needle;var _=h.needle;if(!h.needle)return h.re=!1;h.$supportsUnicodeFlag===void 0&&(h.$supportsUnicodeFlag=y.supportsUnicodeFlag());try{new RegExp(_,"u")}catch(k){h.$supportsUnicodeFlag=!1}h.regExp||(_=y.escapeRegExp(_)),h.wholeWord&&(_=b(_,h));var p=h.caseSensitive?"gm":"gmi";if(h.$supportsUnicodeFlag&&(p+="u"),h.$isMultiLine=!d&&/[\n\r]/.test(_),h.$isMultiLine)return h.re=this.$assembleMultilineRegExp(_,p);try{var S=new RegExp(_,p)}catch(k){S=!1}return h.re=S},v.prototype.$assembleMultilineRegExp=function(h,d){for(var _=h.replace(/\r\n|\r|\n/g,`$
|
||
^`).split(`
|
||
`),p=[],S=0;S<_.length;S++)try{p.push(new RegExp(_[S],d))}catch(k){return!1}return p},v.prototype.$matchIterator=function(h,d){var _=this.$assembleRegExp(d);if(!_)return!1;var p=d.backwards==!0,S=d.skipCurrent!=!1,k=d.range,O=d.start;O||(O=k?k[p?"end":"start"]:h.selection.getRange()),O.start&&(O=O[S!=p?"end":"start"]);var F=k?k.start.row:0,D=k?k.end.row:h.getLength()-1;if(p)var Z=function(V){var $=O.row;if(!U($,O.column,V)){for($--;$>=F;$--)if(U($,Number.MAX_VALUE,V))return;if(d.wrap!=!1){for($=D,F=O.row;$>=F;$--)if(U($,Number.MAX_VALUE,V))return}}};else var Z=function($){var G=O.row;if(!U(G,O.column,$)){for(G=G+1;G<=D;G++)if(U(G,0,$))return;if(d.wrap!=!1){for(G=F,D=O.row;G<=D;G++)if(U(G,0,$))return}}};if(d.$isMultiLine)var W=_.length,U=function(V,$,G){var z=p?V-W+1:V;if(!(z<0||z+W>h.getLength())){var K=h.getLine(z),re=K.search(_[0]);if(!(!p&&re<$||re===-1)){for(var ne=1;ne<W;ne++)if(K=h.getLine(z+ne),K.search(_[ne])==-1)return;var Q=K.match(_[W-1])[0].length;if(!(p&&Q>$)&&G(z,re,z+W-1,Q))return!0}}};else if(p)var U=function($,G,z){var K=h.getLine($),re=[],ne,Q=0;for(_.lastIndex=0;ne=_.exec(K);){var ue=ne[0].length;if(Q=ne.index,!ue){if(Q>=K.length)break;_.lastIndex=Q+=1}if(ne.index+ue>G)break;re.push(ne.index,ue)}for(var he=re.length-1;he>=0;he-=2){var Ee=re[he-1],ue=re[he];if(z($,Ee,$,Ee+ue))return!0}};else var U=function($,G,z){var K=h.getLine($),re,ne;for(_.lastIndex=G;ne=_.exec(K);){var Q=ne[0].length;if(re=ne.index,z($,re,$,re+Q))return!0;if(!Q&&(_.lastIndex=re+=1,re>=K.length))return!1}};return{forEach:Z}},v}();function b(v,h){var d=y.supportsLookbehind();function _(O,F){F===void 0&&(F=!0);var D=d&&h.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return D.test(O)||h.regExp?d&&h.$supportsUnicodeFlag?F?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var p=Array.from(v),S=p[0],k=p[p.length-1];return _(S)+v+_(k,!1)}g.Search=m}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(x,g,A){"use strict";var y=this&&this.__extends||function(){var d=function(p,S){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,O){k.__proto__=O}||function(k,O){for(var F in O)Object.prototype.hasOwnProperty.call(O,F)&&(k[F]=O[F])},d(p,S)};return function(_,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");d(_,p);function S(){this.constructor=_}_.prototype=p===null?Object.create(p):(S.prototype=p.prototype,new S)}}(),M=x("../lib/keys"),w=x("../lib/useragent"),m=M.KEY_MODS,b=function(){function d(_,p){this.$init(_,p,!1)}return d.prototype.$init=function(_,p,S){this.platform=p||(w.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(_),this.$singleCommand=S},d.prototype.addCommand=function(_){this.commands[_.name]&&this.removeCommand(_),this.commands[_.name]=_,_.bindKey&&this._buildKeyHash(_)},d.prototype.removeCommand=function(_,p){var S=_&&(typeof _=="string"?_:_.name);_=this.commands[S],p||delete this.commands[S];var k=this.commandKeyBinding;for(var O in k){var F=k[O];if(F==_)delete k[O];else if(Array.isArray(F)){var D=F.indexOf(_);D!=-1&&(F.splice(D,1),F.length==1&&(k[O]=F[0]))}}},d.prototype.bindKey=function(_,p,S){if(typeof _=="object"&&_&&(S==null&&(S=_.position),_=_[this.platform]),!!_){if(typeof p=="function")return this.addCommand({exec:p,bindKey:_,name:p.name||_});_.split("|").forEach(function(k){var O="";if(k.indexOf(" ")!=-1){var F=k.split(/\s+/);k=F.pop(),F.forEach(function(W){var U=this.parseKeys(W),L=m[U.hashId]+U.key;O+=(O?" ":"")+L,this._addCommandToBinding(O,"chainKeys")},this),O+=" "}var D=this.parseKeys(k),Z=m[D.hashId]+D.key;this._addCommandToBinding(O+Z,p,S)},this)}},d.prototype._addCommandToBinding=function(_,p,S){var k=this.commandKeyBinding,O;if(!p)delete k[_];else if(!k[_]||this.$singleCommand)k[_]=p;else{Array.isArray(k[_])?(O=k[_].indexOf(p))!=-1&&k[_].splice(O,1):k[_]=[k[_]],typeof S!="number"&&(S=v(p));var F=k[_];for(O=0;O<F.length;O++){var D=F[O],Z=v(D);if(Z>S)break}F.splice(O,0,p)}},d.prototype.addCommands=function(_){_&&Object.keys(_).forEach(function(p){var S=_[p];if(!!S){if(typeof S=="string")return this.bindKey(S,p);typeof S=="function"&&(S={exec:S}),typeof S=="object"&&(S.name||(S.name=p),this.addCommand(S))}},this)},d.prototype.removeCommands=function(_){Object.keys(_).forEach(function(p){this.removeCommand(_[p])},this)},d.prototype.bindKeys=function(_){Object.keys(_).forEach(function(p){this.bindKey(p,_[p])},this)},d.prototype._buildKeyHash=function(_){this.bindKey(_.bindKey,_)},d.prototype.parseKeys=function(_){var p=_.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(Z){return Z}),S=p.pop(),k=M[S];if(M.FUNCTION_KEYS[k])S=M.FUNCTION_KEYS[k].toLowerCase();else if(p.length){if(p.length==1&&p[0]=="shift")return{key:S.toUpperCase(),hashId:-1}}else return{key:S,hashId:-1};for(var O=0,F=p.length;F--;){var D=M.KEY_MODS[p[F]];if(D==null)return typeof console!="undefined"&&console.error("invalid modifier "+p[F]+" in "+_),!1;O|=D}return{key:S,hashId:O}},d.prototype.findKeyCommand=function(_,p){var S=m[_]+p;return this.commandKeyBinding[S]},d.prototype.handleKeyboard=function(_,p,S,k){if(!(k<0)){var O=m[p]+S,F=this.commandKeyBinding[O];return _.$keyChain&&(_.$keyChain+=" "+O,F=this.commandKeyBinding[_.$keyChain]||F),F&&(F=="chainKeys"||F[F.length-1]=="chainKeys")?(_.$keyChain=_.$keyChain||O,{command:"null"}):(_.$keyChain&&((!p||p==4)&&S.length==1?_.$keyChain=_.$keyChain.slice(0,-O.length-1):(p==-1||k>0)&&(_.$keyChain="")),{command:F})}},d.prototype.getStatusText=function(_,p){return p.$keyChain||""},d}();function v(d){return typeof d=="object"&&d.bindKey&&d.bindKey.position||(d.isDefault?-100:0)}var h=function(d){y(_,d);function _(p,S){var k=d.call(this,p,S)||this;return k.$singleCommand=!0,k}return _}(b);h.call=function(d,_,p){b.prototype.$init.call(d,_,p,!0)},b.call=function(d,_,p){b.prototype.$init.call(d,_,p,!1)},g.HashHandler=h,g.MultiHashHandler=b}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(x,g,A){"use strict";var y=this&&this.__extends||function(){var v=function(d,_){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,S){p.__proto__=S}||function(p,S){for(var k in S)Object.prototype.hasOwnProperty.call(S,k)&&(p[k]=S[k])},v(d,_)};return function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");v(h,d);function _(){this.constructor=h}h.prototype=d===null?Object.create(d):(_.prototype=d.prototype,new _)}}(),M=x("../lib/oop"),w=x("../keyboard/hash_handler").MultiHashHandler,m=x("../lib/event_emitter").EventEmitter,b=function(v){y(h,v);function h(d,_){var p=v.call(this,_,d)||this;return p.byName=p.commands,p.setDefaultHandler("exec",function(S){return S.args?S.command.exec(S.editor,S.args,S.event,!1):S.command.exec(S.editor,{},S.event,!0)}),p}return h.prototype.exec=function(d,_,p){if(Array.isArray(d)){for(var S=d.length;S--;)if(this.exec(d[S],_,p))return!0;return!1}if(typeof d=="string"&&(d=this.commands[d]),!d||_&&_.$readOnly&&!d.readOnly||this.$checkCommandState!=!1&&d.isAvailable&&!d.isAvailable(_))return!1;var k={editor:_,command:d,args:p};return k.returnValue=this._emit("exec",k),this._signal("afterExec",k),k.returnValue!==!1},h.prototype.toggleRecording=function(d){if(!this.$inReplay)return d&&d._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(_){this.macro.push([_.command,_.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},h.prototype.replay=function(d){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(d);try{this.$inReplay=!0,this.macro.forEach(function(_){typeof _=="string"?this.exec(_,d):this.exec(_[0],d,_[1])},this)}finally{this.$inReplay=!1}}},h.prototype.trimMacro=function(d){return d.map(function(_){return typeof _[0]!="string"&&(_[0]=_[0].name),_[1]||(_=_[0]),_})},h}(w);M.implement(b.prototype,m),g.CommandManager=b}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(x,g,A){"use strict";var y=x("../lib/lang"),M=x("../config"),w=x("../range").Range;function m(v,h){return{win:v,mac:h}}g.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:m("Ctrl-,","Command-,"),exec:function(h){M.loadModule("ace/ext/settings_menu",function(d){d.init(h),h.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:m("Alt-E","F4"),exec:function(h){M.loadModule("ace/ext/error_marker",function(d){d.showErrorMarker(h,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:m("Alt-Shift-E","Shift-F4"),exec:function(h){M.loadModule("ace/ext/error_marker",function(d){d.showErrorMarker(h,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:m("Ctrl-A","Command-A"),exec:function(h){h.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:m(null,"Ctrl-L"),exec:function(h){h.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:m("Ctrl-L","Command-L"),exec:function(h,d){typeof d=="number"&&!isNaN(d)&&h.gotoLine(d),h.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:m("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(h){h.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:m("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(h){h.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:m("F2","F2"),exec:function(h){h.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:m("Alt-F2","Alt-F2"),exec:function(h){h.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:m(null,"Ctrl-Command-Option-0"),exec:function(h){h.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:m(null,"Ctrl-Command-Option-0"),exec:function(h){h.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:m("Alt-0","Command-Option-0"),exec:function(h){h.session.foldAll(),h.session.unfold(h.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:m("Alt-Shift-0","Command-Option-Shift-0"),exec:function(h){h.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:m("Ctrl-K","Command-G"),exec:function(h){h.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:m("Ctrl-Shift-K","Command-Shift-G"),exec:function(h){h.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:m("Alt-K","Ctrl-G"),exec:function(h){h.selection.isEmpty()?h.selection.selectWord():h.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:m("Alt-Shift-K","Ctrl-Shift-G"),exec:function(h){h.selection.isEmpty()?h.selection.selectWord():h.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:m("Ctrl-F","Command-F"),exec:function(h){M.loadModule("ace/ext/searchbox",function(d){d.Search(h)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(h){h.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:m("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(h){h.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:m("Ctrl-Home","Command-Home|Command-Up"),exec:function(h){h.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:m("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(h){h.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:m("Up","Up|Ctrl-P"),exec:function(h,d){h.navigateUp(d.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:m("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(h){h.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:m("Ctrl-End","Command-End|Command-Down"),exec:function(h){h.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:m("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(h){h.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:m("Down","Down|Ctrl-N"),exec:function(h,d){h.navigateDown(d.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:m("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(h){h.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:m("Ctrl-Left","Option-Left"),exec:function(h){h.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:m("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(h){h.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:m("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(h){h.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:m("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(h){h.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:m("Left","Left|Ctrl-B"),exec:function(h,d){h.navigateLeft(d.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:m("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(h){h.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:m("Ctrl-Right","Option-Right"),exec:function(h){h.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:m("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(h){h.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:m("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(h){h.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:m("Shift-Right","Shift-Right"),exec:function(h){h.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:m("Right","Right|Ctrl-F"),exec:function(h,d){h.navigateRight(d.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(h){h.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:m(null,"Option-PageDown"),exec:function(h){h.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:m("PageDown","PageDown|Ctrl-V"),exec:function(h){h.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(h){h.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:m(null,"Option-PageUp"),exec:function(h){h.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(h){h.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:m("Ctrl-Up",null),exec:function(h){h.renderer.scrollBy(0,-2*h.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:m("Ctrl-Down",null),exec:function(h){h.renderer.scrollBy(0,2*h.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(h){h.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(h){h.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:m("Ctrl-Alt-E","Command-Option-E"),exec:function(h){h.commands.toggleRecording(h)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:m("Ctrl-Shift-E","Command-Shift-E"),exec:function(h){h.commands.replay(h)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:m("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(h){h.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:m("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(h){h.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:m("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(h){h.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:m(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(h){},readOnly:!0},{name:"cut",description:"Cut",exec:function(h){var d=h.$copyWithEmptySelection&&h.selection.isEmpty(),_=d?h.selection.getLineRange():h.selection.getRange();h._emit("cut",_),_.isEmpty()||h.session.remove(_),h.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(h,d){h.$handlePaste(d)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:m("Ctrl-D","Command-D"),exec:function(h){h.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:m("Ctrl-Shift-D","Command-Shift-D"),exec:function(h){h.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:m("Ctrl-Alt-S","Command-Alt-S"),exec:function(h){h.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:m("Ctrl-/","Command-/"),exec:function(h){h.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:m("Ctrl-Shift-/","Command-Shift-/"),exec:function(h){h.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:m("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(h){h.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:m("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(h){h.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:m("Ctrl-H","Command-Option-F"),exec:function(h){M.loadModule("ace/ext/searchbox",function(d){d.Search(h,!0)})}},{name:"undo",description:"Undo",bindKey:m("Ctrl-Z","Command-Z"),exec:function(h){h.undo()}},{name:"redo",description:"Redo",bindKey:m("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(h){h.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:m("Alt-Shift-Up","Command-Option-Up"),exec:function(h){h.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:m("Alt-Up","Option-Up"),exec:function(h){h.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:m("Alt-Shift-Down","Command-Option-Down"),exec:function(h){h.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:m("Alt-Down","Option-Down"),exec:function(h){h.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:m("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(h){h.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:m("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(h){h.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:m("Shift-Delete",null),exec:function(h){if(h.selection.isEmpty())h.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:m("Alt-Backspace","Command-Backspace"),exec:function(h){h.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:m("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(h){h.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:m("Ctrl-Shift-Backspace",null),exec:function(h){var d=h.selection.getRange();d.start.column=0,h.session.remove(d)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:m("Ctrl-Shift-Delete",null),exec:function(h){var d=h.selection.getRange();d.end.column=Number.MAX_VALUE,h.session.remove(d)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:m("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(h){h.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:m("Ctrl-Delete","Alt-Delete"),exec:function(h){h.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:m("Shift-Tab","Shift-Tab"),exec:function(h){h.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:m("Tab","Tab"),exec:function(h){h.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:m("Ctrl-[","Ctrl-["),exec:function(h){h.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:m("Ctrl-]","Ctrl-]"),exec:function(h){h.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(h,d){h.insert(d)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(h,d){h.insert(y.stringRepeat(d.text||"",d.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:m(null,"Ctrl-O"),exec:function(h){h.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:m("Alt-Shift-X","Ctrl-T"),exec:function(h){h.transposeLetters()},multiSelectAction:function(h){h.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:m("Ctrl-U","Ctrl-U"),exec:function(h){h.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:m("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(h){h.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:m(null,null),exec:function(h){h.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:m("Ctrl-Shift-L","Command-Shift-L"),exec:function(h){var d=h.selection.getRange();d.start.column=d.end.column=0,d.end.row++,h.selection.setRange(d,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:m("Ctrl+F3","F3"),exec:function(h){h.openLink()}},{name:"joinlines",description:"Join lines",bindKey:m(null,null),exec:function(h){for(var d=h.selection.isBackwards(),_=d?h.selection.getSelectionLead():h.selection.getSelectionAnchor(),p=d?h.selection.getSelectionAnchor():h.selection.getSelectionLead(),S=h.session.doc.getLine(_.row).length,k=h.session.doc.getTextRange(h.selection.getRange()),O=k.replace(/\n\s*/," ").length,F=h.session.doc.getLine(_.row),D=_.row+1;D<=p.row+1;D++){var Z=y.stringTrimLeft(y.stringTrimRight(h.session.doc.getLine(D)));Z.length!==0&&(Z=" "+Z),F+=Z}p.row+1<h.session.doc.getLength()-1&&(F+=h.session.doc.getNewLineCharacter()),h.clearSelection(),h.session.doc.replace(new w(_.row,0,p.row+2,0),F),O>0?(h.selection.moveCursorTo(_.row,_.column),h.selection.selectTo(_.row,_.column+O)):(S=h.session.doc.getLine(_.row).length>S?S+1:S,h.selection.moveCursorTo(_.row,S))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:m(null,null),exec:function(h){var d=h.session.doc.getLength()-1,_=h.session.doc.getLine(d).length,p=h.selection.rangeList.ranges,S=[];p.length<1&&(p=[h.selection.getRange()]);for(var k=0;k<p.length;k++)k==p.length-1&&(p[k].end.row===d&&p[k].end.column===_||S.push(new w(p[k].end.row,p[k].end.column,d,_))),k===0?p[k].start.row===0&&p[k].start.column===0||S.push(new w(0,0,p[k].start.row,p[k].start.column)):S.push(new w(p[k-1].end.row,p[k-1].end.column,p[k].start.row,p[k].start.column));h.exitMultiSelectMode(),h.clearSelection();for(var k=0;k<S.length;k++)h.selection.addRange(S[k],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(h){h.selection.clearSelection(),h.navigateLineEnd(),h.insert(`
|
||
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(h){h.selection.clearSelection();var d=h.getCursorPosition();h.selection.moveTo(d.row-1,Number.MAX_VALUE),h.insert(`
|
||
`),d.row===0&&h.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command palette",bindKey:m("F1","F1"),exec:function(h){h.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:m(null,null),exec:function(h){h.prompt({$type:"modes"})},readOnly:!0}];for(var b=1;b<9;b++)g.commands.push({name:"foldToLevel"+b,description:"Fold To Level "+b,level:b,exec:function(h){h.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(x,g,A){"use strict";var y=x("./lib/dom"),M=function(){function w(m){this.session=m,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return w.prototype.getRowLength=function(m){var b;return this.lineWidgets?b=this.lineWidgets[m]&&this.lineWidgets[m].rowCount||0:b=0,!this.$useWrapMode||!this.$wrapData[m]?1+b:this.$wrapData[m].length+1+b},w.prototype.$getWidgetScreenLength=function(){var m=0;return this.lineWidgets.forEach(function(b){b&&b.rowCount&&!b.hidden&&(m+=b.rowCount)}),m},w.prototype.$onChangeEditor=function(m){this.attach(m.editor)},w.prototype.attach=function(m){m&&m.widgetManager&&m.widgetManager!=this&&m.widgetManager.detach(),this.editor!=m&&(this.detach(),this.editor=m,m&&(m.widgetManager=this,m.renderer.on("beforeRender",this.measureWidgets),m.renderer.on("afterRender",this.renderWidgets)))},w.prototype.detach=function(m){var b=this.editor;if(!!b){this.editor=null,b.widgetManager=null,b.renderer.off("beforeRender",this.measureWidgets),b.renderer.off("afterRender",this.renderWidgets);var v=this.session.lineWidgets;v&&v.forEach(function(h){h&&h.el&&h.el.parentNode&&(h._inDocument=!1,h.el.parentNode.removeChild(h.el))})}},w.prototype.updateOnFold=function(m,b){var v=b.lineWidgets;if(!(!v||!m.action)){for(var h=m.data,d=h.start.row,_=h.end.row,p=m.action=="add",S=d+1;S<_;S++)v[S]&&(v[S].hidden=p);v[_]&&(p?v[d]?v[_].hidden=p:v[d]=v[_]:(v[d]==v[_]&&(v[d]=void 0),v[_].hidden=p))}},w.prototype.updateOnChange=function(m){var b=this.session.lineWidgets;if(!!b){var v=m.start.row,h=m.end.row-v;if(h!==0)if(m.action=="remove"){var d=b.splice(v+1,h);!b[v]&&d[d.length-1]&&(b[v]=d.pop()),d.forEach(function(p){p&&this.removeLineWidget(p)},this),this.$updateRows()}else{var _=new Array(h);b[v]&&b[v].column!=null&&m.start.column>b[v].column&&v++,_.unshift(v,0),b.splice.apply(b,_),this.$updateRows()}}},w.prototype.$updateRows=function(){var m=this.session.lineWidgets;if(!!m){var b=!0;m.forEach(function(v,h){if(v)for(b=!1,v.row=h;v.$oldWidget;)v.$oldWidget.row=h,v=v.$oldWidget}),b&&(this.session.lineWidgets=null)}},w.prototype.$registerLineWidget=function(m){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var b=this.session.lineWidgets[m.row];return b&&(m.$oldWidget=b,b.el&&b.el.parentNode&&(b.el.parentNode.removeChild(b.el),b._inDocument=!1)),this.session.lineWidgets[m.row]=m,m},w.prototype.addLineWidget=function(m){if(this.$registerLineWidget(m),m.session=this.session,!this.editor)return m;var b=this.editor.renderer;m.html&&!m.el&&(m.el=y.createElement("div"),m.el.innerHTML=m.html),m.text&&!m.el&&(m.el=y.createElement("div"),m.el.textContent=m.text),m.el&&(y.addCssClass(m.el,"ace_lineWidgetContainer"),m.className&&y.addCssClass(m.el,m.className),m.el.style.position="absolute",m.el.style.zIndex=5,b.container.appendChild(m.el),m._inDocument=!0,m.coverGutter||(m.el.style.zIndex=3),m.pixelHeight==null&&(m.pixelHeight=m.el.offsetHeight)),m.rowCount==null&&(m.rowCount=m.pixelHeight/b.layerConfig.lineHeight);var v=this.session.getFoldAt(m.row,0);if(m.$fold=v,v){var h=this.session.lineWidgets;m.row==v.end.row&&!h[v.start.row]?h[v.start.row]=m:m.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:m.row}}}),this.$updateRows(),this.renderWidgets(null,b),this.onWidgetChanged(m),m},w.prototype.removeLineWidget=function(m){if(m._inDocument=!1,m.session=null,m.el&&m.el.parentNode&&m.el.parentNode.removeChild(m.el),m.editor&&m.editor.destroy)try{m.editor.destroy()}catch(v){}if(this.session.lineWidgets){var b=this.session.lineWidgets[m.row];if(b==m)this.session.lineWidgets[m.row]=m.$oldWidget,m.$oldWidget&&this.onWidgetChanged(m.$oldWidget);else for(;b;){if(b.$oldWidget==m){b.$oldWidget=m.$oldWidget;break}b=b.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:m.row}}}),this.$updateRows()},w.prototype.getWidgetsAtRow=function(m){for(var b=this.session.lineWidgets,v=b&&b[m],h=[];v;)h.push(v),v=v.$oldWidget;return h},w.prototype.onWidgetChanged=function(m){this.session._changedWidgets.push(m),this.editor&&this.editor.renderer.updateFull()},w.prototype.measureWidgets=function(m,b){var v=this.session._changedWidgets,h=b.layerConfig;if(!(!v||!v.length)){for(var d=Infinity,_=0;_<v.length;_++){var p=v[_];if(!(!p||!p.el)&&p.session==this.session){if(!p._inDocument){if(this.session.lineWidgets[p.row]!=p)continue;p._inDocument=!0,b.container.appendChild(p.el)}p.h=p.el.offsetHeight,p.fixedWidth||(p.w=p.el.offsetWidth,p.screenWidth=Math.ceil(p.w/h.characterWidth));var S=p.h/h.lineHeight;p.coverLine&&(S-=this.session.getRowLineCount(p.row),S<0&&(S=0)),p.rowCount!=S&&(p.rowCount=S,p.row<d&&(d=p.row))}}d!=Infinity&&(this.session._emit("changeFold",{data:{start:{row:d}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},w.prototype.renderWidgets=function(m,b){var v=b.layerConfig,h=this.session.lineWidgets;if(!!h){for(var d=Math.min(this.firstRow,v.firstRow),_=Math.max(this.lastRow,v.lastRow,h.length);d>0&&!h[d];)d--;this.firstRow=v.firstRow,this.lastRow=v.lastRow,b.$cursorLayer.config=v;for(var p=d;p<=_;p++){var S=h[p];if(!(!S||!S.el)){if(S.hidden){S.el.style.top=-100-(S.pixelHeight||0)+"px";continue}S._inDocument||(S._inDocument=!0,b.container.appendChild(S.el));var k=b.$cursorLayer.getPixelPosition({row:p,column:0},!0).top;S.coverLine||(k+=v.lineHeight*this.session.getRowLineCount(S.row)),S.el.style.top=k-v.offset+"px";var O=S.coverGutter?0:b.gutterWidth;S.fixedWidth||(O-=b.scrollLeft),S.el.style.left=O+"px",S.fullWidth&&S.screenWidth&&(S.el.style.minWidth=v.width+2*v.padding+"px"),S.fixedWidth?S.el.style.right=b.scrollBar.getWidth()+"px":S.el.style.right=""}}}},w}();g.LineWidgets=M}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(x,g,A){"use strict";var y=x("../lib/keys"),M=x("../mouse/default_gutter_handler").GutterTooltip,w=function(){function b(v){this.editor=v,this.gutterLayer=v.renderer.$gutterLayer,this.element=v.renderer.$gutter,this.lines=v.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new M(this.editor)}return b.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},b.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},b.prototype.$onGutterKeyDown=function(v){if(this.annotationTooltip.isOpen){v.preventDefault(),v.keyCode===y.escape&&this.annotationTooltip.hideTooltip();return}if(v.target===this.element){if(v.keyCode!=y.enter)return;v.preventDefault();var h=this.editor.getCursorPosition().row;this.editor.isRowVisible(h)||this.editor.scrollToLine(h,!0,!0),setTimeout(function(){var d=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),_=this.$findNearestFoldWidget(d),p=this.$findNearestAnnotation(d);if(!(_===null&&p===null)){if(_===null&&p!==null){this.activeRowIndex=p,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(_!==null&&p===null){this.activeRowIndex=_,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(p-d)<Math.abs(_-d)){this.activeRowIndex=p,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=_,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}.bind(this),10);return}this.$handleGutterKeyboardInteraction(v),setTimeout(function(){this.editor._signal("gutterkeydown",new m(v,this))}.bind(this),10)},b.prototype.$handleGutterKeyboardInteraction=function(v){if(v.keyCode===y.tab){v.preventDefault();return}if(v.keyCode===y.escape){v.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(v.keyCode===y.up){switch(v.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(v.keyCode===y.down){switch(v.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(v.keyCode===y.left){v.preventDefault(),this.$switchLane("annotation");return}if(v.keyCode===y.right){v.preventDefault(),this.$switchLane("fold");return}if(v.keyCode===y.enter||v.keyCode===y.space){switch(v.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var h=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),v),setTimeout(function(){this.$rowIndexToRow(this.activeRowIndex)!==h&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(h),this.$focusFoldWidget(this.activeRowIndex))}.bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var d=this.lines.cells[this.activeRowIndex].element.childNodes[2],_=d.getBoundingClientRect(),p=this.annotationTooltip.getElement().style;p.left=_.right+"px",p.top=_.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},b.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},b.prototype.$isFoldWidgetVisible=function(v){var h=this.editor.isRowFullyVisible(this.$rowIndexToRow(v)),d=this.$getFoldWidget(v).style.display!=="none";return h&&d},b.prototype.$isAnnotationVisible=function(v){var h=this.editor.isRowFullyVisible(this.$rowIndexToRow(v)),d=this.$getAnnotation(v).style.display!=="none";return h&&d},b.prototype.$getFoldWidget=function(v){var h=this.lines.get(v),d=h.element;return d.childNodes[1]},b.prototype.$getAnnotation=function(v){var h=this.lines.get(v),d=h.element;return d.childNodes[2]},b.prototype.$findNearestFoldWidget=function(v){if(this.$isFoldWidgetVisible(v))return v;for(var h=0;v-h>0||v+h<this.lines.getLength()-1;){if(h++,v-h>=0&&this.$isFoldWidgetVisible(v-h))return v-h;if(v+h<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(v+h))return v+h}return null},b.prototype.$findNearestAnnotation=function(v){if(this.$isAnnotationVisible(v))return v;for(var h=0;v-h>0||v+h<this.lines.getLength()-1;){if(h++,v-h>=0&&this.$isAnnotationVisible(v-h))return v-h;if(v+h<=this.lines.getLength()-1&&this.$isAnnotationVisible(v+h))return v+h}return null},b.prototype.$focusFoldWidget=function(v){if(v!=null){var h=this.$getFoldWidget(v);h.classList.add(this.editor.renderer.keyboardFocusClassName),h.focus()}},b.prototype.$focusAnnotation=function(v){if(v!=null){var h=this.$getAnnotation(v);h.classList.add(this.editor.renderer.keyboardFocusClassName),h.focus()}},b.prototype.$blurFoldWidget=function(v){var h=this.$getFoldWidget(v);h.classList.remove(this.editor.renderer.keyboardFocusClassName),h.blur()},b.prototype.$blurAnnotation=function(v){var h=this.$getAnnotation(v);h.classList.remove(this.editor.renderer.keyboardFocusClassName),h.blur()},b.prototype.$moveFoldWidgetUp=function(){for(var v=this.activeRowIndex;v>0;)if(v--,this.$isFoldWidgetVisible(v)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=v,this.$focusFoldWidget(this.activeRowIndex);return}},b.prototype.$moveFoldWidgetDown=function(){for(var v=this.activeRowIndex;v<this.lines.getLength()-1;)if(v++,this.$isFoldWidgetVisible(v)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=v,this.$focusFoldWidget(this.activeRowIndex);return}},b.prototype.$moveAnnotationUp=function(){for(var v=this.activeRowIndex;v>0;)if(v--,this.$isAnnotationVisible(v)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=v,this.$focusAnnotation(this.activeRowIndex);return}},b.prototype.$moveAnnotationDown=function(){for(var v=this.activeRowIndex;v<this.lines.getLength()-1;)if(v++,this.$isAnnotationVisible(v)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=v,this.$focusAnnotation(this.activeRowIndex);return}},b.prototype.$switchLane=function(v){switch(v){case"annotation":if(this.activeLane==="annotation")break;var h=this.$findNearestAnnotation(this.activeRowIndex);if(h==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=h,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var d=this.$findNearestFoldWidget(this.activeRowIndex);if(d==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=d,this.$focusFoldWidget(this.activeRowIndex);break}},b.prototype.$rowIndexToRow=function(v){var h=this.lines.get(v);return h?h.row:null},b.prototype.$rowToRowIndex=function(v){for(var h=0;h<this.lines.getLength();h++){var d=this.lines.get(h);if(d.row==v)return h}return null},b}();g.GutterKeyboardHandler=w;var m=function(){function b(v,h){this.gutterKeyboardHandler=h,this.domEvent=v}return b.prototype.getKey=function(){return y.keyCodeToString(this.domEvent.keyCode)},b.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},b.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},b.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},b}();g.GutterKeyboardEvent=m}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/line_widgets","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(x,g,A){"use strict";var y=this&&this.__values||function(re){var ne=typeof Symbol=="function"&&Symbol.iterator,Q=ne&&re[ne],ue=0;if(Q)return Q.call(re);if(re&&typeof re.length=="number")return{next:function(){return re&&ue>=re.length&&(re=void 0),{value:re&&re[ue++],done:!re}}};throw new TypeError(ne?"Object is not iterable.":"Symbol.iterator is not defined.")},M=x("./lib/oop"),w=x("./lib/dom"),m=x("./lib/lang"),b=x("./lib/useragent"),v=x("./keyboard/textinput").TextInput,h=x("./mouse/mouse_handler").MouseHandler,d=x("./mouse/fold_handler").FoldHandler,_=x("./keyboard/keybinding").KeyBinding,p=x("./edit_session").EditSession,S=x("./search").Search,k=x("./range").Range,O=x("./lib/event_emitter").EventEmitter,F=x("./commands/command_manager").CommandManager,D=x("./commands/default_commands").commands,Z=x("./config"),W=x("./token_iterator").TokenIterator,U=x("./line_widgets").LineWidgets,L=x("./keyboard/gutter_handler").GutterKeyboardHandler,V=x("./config").nls,$=x("./clipboard"),G=x("./lib/keys"),z=function(){function re(ne,Q,ue){this.$toDestroy=[];var he=ne.getContainerElement();this.container=he,this.renderer=ne,this.id="editor"+ ++re.$uid,this.commands=new F(b.isMac?"mac":"win",D),typeof document=="object"&&(this.textInput=new v(ne.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new h(this),new d(this)),this.keyBinding=new _(this),this.$search=new S().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=m.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(Ee,ce){ce._$emitInputEvent.schedule(31)}),this.setSession(Q||ue&&ue.session||new p("")),Z.resetOptions(this),ue&&this.setOptions(ue),Z._signal("editor",this)}return re.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=m.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},re.prototype.startOperation=function(ne){if(this.curOp){if(!ne||this.curOp.command)return;this.prevOp=this.curOp}ne||(this.previousCommand=null,ne={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:ne.command||{},args:ne.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},re.prototype.endOperation=function(ne){if(this.curOp&&this.session){if(ne&&ne.returnValue===!1||!this.session)return this.curOp=null;if(ne==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var Q=this.curOp.command,ue=Q&&Q.scrollIntoView;if(ue){switch(ue){case"center-animate":ue="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var he=this.selection.getRange(),Ee=this.renderer.layerConfig;(he.start.row>=Ee.lastRow||he.end.row<=Ee.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break;default:break}ue=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var ce=this.selection.toJSON();this.curOp.selectionAfter=ce,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(ce),this.prevOp=this.curOp,this.curOp=null}},re.prototype.$historyTracker=function(ne){if(!!this.$mergeUndoDeltas){var Q=this.prevOp,ue=this.$mergeableCommands,he=Q.command&&ne.command.name==Q.command.name;if(ne.command.name=="insertstring"){var Ee=ne.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),he=he&&this.mergeNextCommand&&(!/\s/.test(Ee)||/\s/.test(Q.args)),this.mergeNextCommand=!0}else he=he&&ue.indexOf(ne.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(he=!1),he?this.session.mergeUndoDeltas=!0:ue.indexOf(ne.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},re.prototype.setKeyboardHandler=function(ne,Q){if(ne&&typeof ne=="string"&&ne!="ace"){this.$keybindingId=ne;var ue=this;Z.loadModule(["keybinding",ne],function(he){ue.$keybindingId==ne&&ue.keyBinding.setKeyboardHandler(he&&he.handler),Q&&Q()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(ne),Q&&Q()},re.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},re.prototype.setSession=function(ne){if(this.session!=ne){this.curOp&&this.endOperation(),this.curOp={};var Q=this.session;if(Q){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var ue=this.session.getSelection();ue.off("changeCursor",this.$onCursorChange),ue.off("changeSelection",this.$onSelectionChange)}this.session=ne,ne?(this.$onDocumentChange=this.onDocumentChange.bind(this),ne.on("change",this.$onDocumentChange),this.renderer.setSession(ne),this.$onChangeMode=this.onChangeMode.bind(this),ne.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),ne.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),ne.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),ne.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),ne.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),ne.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=ne.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(ne)),this._signal("changeSession",{session:ne,oldSession:Q}),this.curOp=null,Q&&Q._signal("changeEditor",{oldEditor:this}),ne&&ne._signal("changeEditor",{editor:this}),ne&&!ne.destroyed&&ne.bgTokenizer.scheduleStart()}},re.prototype.getSession=function(){return this.session},re.prototype.setValue=function(ne,Q){return this.session.doc.setValue(ne),Q?Q==1?this.navigateFileEnd():Q==-1&&this.navigateFileStart():this.selectAll(),ne},re.prototype.getValue=function(){return this.session.getValue()},re.prototype.getSelection=function(){return this.selection},re.prototype.resize=function(ne){this.renderer.onResize(ne)},re.prototype.setTheme=function(ne,Q){this.renderer.setTheme(ne,Q)},re.prototype.getTheme=function(){return this.renderer.getTheme()},re.prototype.setStyle=function(ne){this.renderer.setStyle(ne)},re.prototype.unsetStyle=function(ne){this.renderer.unsetStyle(ne)},re.prototype.getFontSize=function(){return this.getOption("fontSize")||w.computedStyle(this.container).fontSize},re.prototype.setFontSize=function(ne){this.setOption("fontSize",ne)},re.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var ne=this;this.$highlightPending=!0,setTimeout(function(){ne.$highlightPending=!1;var Q=ne.session;if(!(!Q||Q.destroyed)){Q.$bracketHighlight&&(Q.$bracketHighlight.markerIds.forEach(function(Pe){Q.removeMarker(Pe)}),Q.$bracketHighlight=null);var ue=ne.getCursorPosition(),he=ne.getKeyboardHandler(),Ee=he&&he.$getDirectionForHighlight&&he.$getDirectionForHighlight(ne),ce=Q.getMatchingBracketRanges(ue,Ee);if(!ce){var ve=new W(Q,ue.row,ue.column),fe=ve.getCurrentToken();if(fe&&/\b(?:tag-open|tag-name)/.test(fe.type)){var we=Q.getMatchingTags(ue);we&&(ce=[we.openTagName,we.closeTagName])}}if(!ce&&Q.$mode.getMatching&&(ce=Q.$mode.getMatching(ne.session)),!ce){ne.getHighlightIndentGuides()&&ne.renderer.$textLayer.$highlightIndentGuide();return}var me="ace_bracket";Array.isArray(ce)?ce.length==1&&(me="ace_error_bracket"):ce=[ce],ce.length==2&&(k.comparePoints(ce[0].end,ce[1].start)==0?ce=[k.fromPoints(ce[0].start,ce[1].end)]:k.comparePoints(ce[0].start,ce[1].end)==0&&(ce=[k.fromPoints(ce[1].start,ce[0].end)])),Q.$bracketHighlight={ranges:ce,markerIds:ce.map(function(Pe){return Q.addMarker(Pe,me,"text")})},ne.getHighlightIndentGuides()&&ne.renderer.$textLayer.$highlightIndentGuide()}},50)}},re.prototype.focus=function(){this.textInput.focus()},re.prototype.isFocused=function(){return this.textInput.isFocused()},re.prototype.blur=function(){this.textInput.blur()},re.prototype.onFocus=function(ne){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",ne))},re.prototype.onBlur=function(ne){!this.$isFocused||(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",ne))},re.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},re.prototype.onDocumentChange=function(ne){var Q=this.session.$useWrapMode,ue=ne.start.row==ne.end.row?ne.end.row:Infinity;this.renderer.updateLines(ne.start.row,ue,Q),this._signal("change",ne),this.$cursorChange()},re.prototype.onTokenizerUpdate=function(ne){var Q=ne.data;this.renderer.updateLines(Q.first,Q.last)},re.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},re.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},re.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},re.prototype.$updateHighlightActiveLine=function(){var ne=this.getSession(),Q;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(Q=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(Q=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(Q=!1)),ne.$highlightLineMarker&&!Q)ne.removeMarker(ne.$highlightLineMarker.id),ne.$highlightLineMarker=null;else if(!ne.$highlightLineMarker&&Q){var ue=new k(Q.row,Q.column,Q.row,Infinity);ue.id=ne.addMarker(ue,"ace_active-line","screenLine"),ne.$highlightLineMarker=ue}else Q&&(ne.$highlightLineMarker.start.row=Q.row,ne.$highlightLineMarker.end.row=Q.row,ne.$highlightLineMarker.start.column=Q.column,ne._signal("changeBackMarker"))},re.prototype.onSelectionChange=function(ne){var Q=this.session;if(Q.$selectionMarker&&Q.removeMarker(Q.$selectionMarker),Q.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var ue=this.selection.getRange(),he=this.getSelectionStyle();Q.$selectionMarker=Q.addMarker(ue,"ace_selection",he)}var Ee=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(Ee),this._signal("changeSelection")},re.prototype.$getSelectionHighLightRegexp=function(){var ne=this.session,Q=this.getSelectionRange();if(!(Q.isEmpty()||Q.isMultiLine())){var ue=Q.start.column,he=Q.end.column,Ee=ne.getLine(Q.start.row),ce=Ee.substring(ue,he);if(!(ce.length>5e3||!/[\w\d]/.test(ce))){var ve=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:ce}),fe=Ee.substring(ue-1,he+1);if(!!ve.test(fe))return ve}}},re.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},re.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},re.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},re.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},re.prototype.onChangeMode=function(ne){this.renderer.updateText(),this._emit("changeMode",ne)},re.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},re.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},re.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},re.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},re.prototype.getCopyText=function(){var ne=this.getSelectedText(),Q=this.session.doc.getNewLineCharacter(),ue=!1;if(!ne&&this.$copyWithEmptySelection){ue=!0;for(var he=this.selection.getAllRanges(),Ee=0;Ee<he.length;Ee++){var ce=he[Ee];Ee&&he[Ee-1].start.row==ce.start.row||(ne+=this.session.getLine(ce.start.row)+Q)}}var ve={text:ne};return this._signal("copy",ve),$.lineMode=ue?ve.text:!1,ve.text},re.prototype.onCopy=function(){this.commands.exec("copy",this)},re.prototype.onCut=function(){this.commands.exec("cut",this)},re.prototype.onPaste=function(ne,Q){var ue={text:ne,event:Q};this.commands.exec("paste",this,ue)},re.prototype.$handlePaste=function(ne){typeof ne=="string"&&(ne={text:ne}),this._signal("paste",ne);var Q=ne.text,ue=Q===$.lineMode,he=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)ue?he.insert({row:this.selection.lead.row,column:0},Q):this.insert(Q);else if(ue)this.selection.rangeList.ranges.forEach(function(me){he.insert({row:me.start.row,column:0},Q)});else{var Ee=Q.split(/\r\n|\r|\n/),ce=this.selection.rangeList.ranges,ve=Ee.length==2&&(!Ee[0]||!Ee[1]);if(Ee.length!=ce.length||ve)return this.commands.exec("insertstring",this,Q);for(var fe=ce.length;fe--;){var we=ce[fe];we.isEmpty()||he.remove(we),he.insert(we.start,Ee[fe])}}},re.prototype.execCommand=function(ne,Q){return this.commands.exec(ne,this,Q)},re.prototype.insert=function(ne,Q){var ue=this.session,he=ue.getMode(),Ee=this.getCursorPosition();if(this.getBehavioursEnabled()&&!Q){var ce=he.transformAction(ue.getState(Ee.row),"insertion",this,ue,ne);ce&&(ne!==ce.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),ne=ce.text)}if(ne==" "&&(ne=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&ne.indexOf(`
|
||
`)==-1){var ve=new k.fromPoints(Ee,Ee);ve.end.column+=ne.length,this.session.remove(ve)}}else{var ve=this.getSelectionRange();Ee=this.session.remove(ve),this.clearSelection()}if(ne==`
|
||
`||ne==`\r
|
||
`){var Pe=ue.getLine(Ee.row);if(Ee.column>Pe.search(/\S|$/)){var fe=Pe.substr(Ee.column).search(/\S|$/);ue.doc.removeInLine(Ee.row,Ee.column,Ee.column+fe)}}this.clearSelection();var we=Ee.column,me=ue.getState(Ee.row),Pe=ue.getLine(Ee.row),pe=he.checkOutdent(me,Pe,ne);if(ue.insert(Ee,ne),ce&&ce.selection&&(ce.selection.length==2?this.selection.setSelectionRange(new k(Ee.row,we+ce.selection[0],Ee.row,we+ce.selection[1])):this.selection.setSelectionRange(new k(Ee.row+ce.selection[0],ce.selection[1],Ee.row+ce.selection[2],ce.selection[3]))),this.$enableAutoIndent){if(ue.getDocument().isNewLine(ne)){var Ie=he.getNextLineIndent(me,Pe.slice(0,Ee.column),ue.getTabString());ue.insert({row:Ee.row+1,column:0},Ie)}pe&&he.autoOutdent(me,ue,Ee.row)}},re.prototype.autoIndent=function(){var ne=this.session,Q=ne.getMode(),ue,he;if(this.selection.isEmpty())ue=0,he=ne.doc.getLength()-1;else{var Ee=this.getSelectionRange();ue=Ee.start.row,he=Ee.end.row}for(var ce="",ve="",fe="",we,me,Pe,pe=ne.getTabString(),Ie=ue;Ie<=he;Ie++)Ie>0&&(ce=ne.getState(Ie-1),ve=ne.getLine(Ie-1),fe=Q.getNextLineIndent(ce,ve,pe)),we=ne.getLine(Ie),me=Q.$getIndent(we),fe!==me&&(me.length>0&&(Pe=new k(Ie,0,Ie,me.length),ne.remove(Pe)),fe.length>0&&ne.insert({row:Ie,column:0},fe)),Q.autoOutdent(ce,ne,Ie)},re.prototype.onTextInput=function(ne,Q){if(!Q)return this.keyBinding.onTextInput(ne);this.startOperation({command:{name:"insertstring"}});var ue=this.applyComposition.bind(this,ne,Q);this.selection.rangeCount?this.forEachSelection(ue):ue(),this.endOperation()},re.prototype.applyComposition=function(ne,Q){if(Q.extendLeft||Q.extendRight){var ue=this.selection.getRange();ue.start.column-=Q.extendLeft,ue.end.column+=Q.extendRight,ue.start.column<0&&(ue.start.row--,ue.start.column+=this.session.getLine(ue.start.row).length+1),this.selection.setRange(ue),!ne&&!ue.isEmpty()&&this.remove()}if((ne||!this.selection.isEmpty())&&this.insert(ne,!0),Q.restoreStart||Q.restoreEnd){var ue=this.selection.getRange();ue.start.column-=Q.restoreStart,ue.end.column-=Q.restoreEnd,this.selection.setRange(ue)}},re.prototype.onCommandKey=function(ne,Q,ue){return this.keyBinding.onCommandKey(ne,Q,ue)},re.prototype.setOverwrite=function(ne){this.session.setOverwrite(ne)},re.prototype.getOverwrite=function(){return this.session.getOverwrite()},re.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},re.prototype.setScrollSpeed=function(ne){this.setOption("scrollSpeed",ne)},re.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},re.prototype.setDragDelay=function(ne){this.setOption("dragDelay",ne)},re.prototype.getDragDelay=function(){return this.getOption("dragDelay")},re.prototype.setSelectionStyle=function(ne){this.setOption("selectionStyle",ne)},re.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},re.prototype.setHighlightActiveLine=function(ne){this.setOption("highlightActiveLine",ne)},re.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},re.prototype.setHighlightGutterLine=function(ne){this.setOption("highlightGutterLine",ne)},re.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},re.prototype.setHighlightSelectedWord=function(ne){this.setOption("highlightSelectedWord",ne)},re.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},re.prototype.setAnimatedScroll=function(ne){this.renderer.setAnimatedScroll(ne)},re.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},re.prototype.setShowInvisibles=function(ne){this.renderer.setShowInvisibles(ne)},re.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},re.prototype.setDisplayIndentGuides=function(ne){this.renderer.setDisplayIndentGuides(ne)},re.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},re.prototype.setHighlightIndentGuides=function(ne){this.renderer.setHighlightIndentGuides(ne)},re.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},re.prototype.setShowPrintMargin=function(ne){this.renderer.setShowPrintMargin(ne)},re.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},re.prototype.setPrintMarginColumn=function(ne){this.renderer.setPrintMarginColumn(ne)},re.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},re.prototype.setReadOnly=function(ne){this.setOption("readOnly",ne)},re.prototype.getReadOnly=function(){return this.getOption("readOnly")},re.prototype.setBehavioursEnabled=function(ne){this.setOption("behavioursEnabled",ne)},re.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},re.prototype.setWrapBehavioursEnabled=function(ne){this.setOption("wrapBehavioursEnabled",ne)},re.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},re.prototype.setShowFoldWidgets=function(ne){this.setOption("showFoldWidgets",ne)},re.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},re.prototype.setFadeFoldWidgets=function(ne){this.setOption("fadeFoldWidgets",ne)},re.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},re.prototype.remove=function(ne){this.selection.isEmpty()&&(ne=="left"?this.selection.selectLeft():this.selection.selectRight());var Q=this.getSelectionRange();if(this.getBehavioursEnabled()){var ue=this.session,he=ue.getState(Q.start.row),Ee=ue.getMode().transformAction(he,"deletion",this,ue,Q);if(Q.end.column===0){var ce=ue.getTextRange(Q);if(ce[ce.length-1]==`
|
||
`){var ve=ue.getLine(Q.end.row);/^\s+$/.test(ve)&&(Q.end.column=ve.length)}}Ee&&(Q=Ee)}this.session.remove(Q),this.clearSelection()},re.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},re.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},re.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},re.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var ne=this.getSelectionRange();ne.start.column==ne.end.column&&ne.start.row==ne.end.row&&(ne.end.column=0,ne.end.row++),this.session.remove(ne),this.clearSelection()},re.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var ne=this.getCursorPosition();this.insert(`
|
||
`),this.moveCursorToPosition(ne)},re.prototype.setGhostText=function(ne,Q){this.session.widgetManager||(this.session.widgetManager=new U(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(ne,Q)},re.prototype.removeGhostText=function(){!this.session.widgetManager||this.renderer.removeGhostText()},re.prototype.transposeLetters=function(){if(!!this.selection.isEmpty()){var ne=this.getCursorPosition(),Q=ne.column;if(Q!==0){var ue=this.session.getLine(ne.row),he,Ee;Q<ue.length?(he=ue.charAt(Q)+ue.charAt(Q-1),Ee=new k(ne.row,Q-1,ne.row,Q+1)):(he=ue.charAt(Q-1)+ue.charAt(Q-2),Ee=new k(ne.row,Q-2,ne.row,Q)),this.session.replace(Ee,he),this.session.selection.moveToPosition(Ee.end)}}},re.prototype.toLowerCase=function(){var ne=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var Q=this.getSelectionRange(),ue=this.session.getTextRange(Q);this.session.replace(Q,ue.toLowerCase()),this.selection.setSelectionRange(ne)},re.prototype.toUpperCase=function(){var ne=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var Q=this.getSelectionRange(),ue=this.session.getTextRange(Q);this.session.replace(Q,ue.toUpperCase()),this.selection.setSelectionRange(ne)},re.prototype.indent=function(){var ne=this.session,Q=this.getSelectionRange();if(Q.start.row<Q.end.row){var ue=this.$getSelectedRows();ne.indentRows(ue.first,ue.last," ");return}else if(Q.start.column<Q.end.column){var he=ne.getTextRange(Q);if(!/^\s+$/.test(he)){var ue=this.$getSelectedRows();ne.indentRows(ue.first,ue.last," ");return}}var Ee=ne.getLine(Q.start.row),ce=Q.start,ve=ne.getTabSize(),fe=ne.documentToScreenColumn(ce.row,ce.column);if(this.session.getUseSoftTabs())var we=ve-fe%ve,me=m.stringRepeat(" ",we);else{for(var we=fe%ve;Ee[Q.start.column-1]==" "&&we;)Q.start.column--,we--;this.selection.setSelectionRange(Q),me=" "}return this.insert(me)},re.prototype.blockIndent=function(){var ne=this.$getSelectedRows();this.session.indentRows(ne.first,ne.last," ")},re.prototype.blockOutdent=function(){var ne=this.session.getSelection();this.session.outdentRows(ne.getRange())},re.prototype.sortLines=function(){for(var ne=this.$getSelectedRows(),Q=this.session,ue=[],he=ne.first;he<=ne.last;he++)ue.push(Q.getLine(he));ue.sort(function(ve,fe){return ve.toLowerCase()<fe.toLowerCase()?-1:ve.toLowerCase()>fe.toLowerCase()?1:0});for(var Ee=new k(0,0,0,0),he=ne.first;he<=ne.last;he++){var ce=Q.getLine(he);Ee.start.row=he,Ee.end.row=he,Ee.end.column=ce.length,Q.replace(Ee,ue[he-ne.first])}},re.prototype.toggleCommentLines=function(){var ne=this.session.getState(this.getCursorPosition().row),Q=this.$getSelectedRows();this.session.getMode().toggleCommentLines(ne,this.session,Q.first,Q.last)},re.prototype.toggleBlockComment=function(){var ne=this.getCursorPosition(),Q=this.session.getState(ne.row),ue=this.getSelectionRange();this.session.getMode().toggleBlockComment(Q,this.session,ue,ne)},re.prototype.getNumberAt=function(ne,Q){var ue=/[\-]?[0-9]+(?:\.[0-9]+)?/g;ue.lastIndex=0;for(var he=this.session.getLine(ne);ue.lastIndex<Q;){var Ee=ue.exec(he);if(Ee.index<=Q&&Ee.index+Ee[0].length>=Q){var ce={value:Ee[0],start:Ee.index,end:Ee.index+Ee[0].length};return ce}}return null},re.prototype.modifyNumber=function(ne){var Q=this.selection.getCursor().row,ue=this.selection.getCursor().column,he=new k(Q,ue-1,Q,ue),Ee=this.session.getTextRange(he);if(!isNaN(parseFloat(Ee))&&isFinite(Ee)){var ce=this.getNumberAt(Q,ue);if(ce){var ve=ce.value.indexOf(".")>=0?ce.start+ce.value.indexOf(".")+1:ce.end,fe=ce.start+ce.value.length-ve,we=parseFloat(ce.value);we*=Math.pow(10,fe),ve!==ce.end&&ue<ve?ne*=Math.pow(10,ce.end-ue-1):ne*=Math.pow(10,ce.end-ue),we+=ne,we/=Math.pow(10,fe);var me=we.toFixed(fe),Pe=new k(Q,ce.start,Q,ce.end);this.session.replace(Pe,me),this.moveCursorTo(Q,Math.max(ce.start+1,ue+me.length-ce.value.length))}}else this.toggleWord()},re.prototype.toggleWord=function(){var ne=this.selection.getCursor().row,Q=this.selection.getCursor().column;this.selection.selectWord();var ue=this.getSelectedText(),he=this.selection.getWordRange().start.column,Ee=ue.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),ce=Q-he-1;ce<0&&(ce=0);var ve=0,fe=0,we=this;ue.match(/[A-Za-z0-9_]+/)&&Ee.forEach(function(Qe,qe){fe=ve+Qe.length,ce>=ve&&ce<=fe&&(ue=Qe,we.selection.clearSelection(),we.moveCursorTo(ne,ve+he),we.selection.selectTo(ne,fe+he)),ve=fe});for(var me=this.$toggleWordPairs,Pe,pe=0;pe<me.length;pe++)for(var Ie=me[pe],Je=0;Je<=1;Je++){var ke=+!Je,De=ue.match(new RegExp("^\\s?_?("+m.escapeRegExp(Ie[Je])+")\\s?$","i"));if(De){var Fe=ue.match(new RegExp("([_]|^|\\s)("+m.escapeRegExp(De[1])+")($|\\s)","g"));Fe&&(Pe=ue.replace(new RegExp(m.escapeRegExp(Ie[Je]),"i"),function(Qe){var qe=Ie[ke];return Qe.toUpperCase()==Qe?qe=qe.toUpperCase():Qe.charAt(0).toUpperCase()==Qe.charAt(0)&&(qe=qe.substr(0,0)+Ie[ke].charAt(0).toUpperCase()+qe.substr(1)),qe}),this.insert(Pe),Pe="")}}},re.prototype.findLinkAt=function(ne,Q){var ue,he,Ee=this.session.getLine(ne),ce=Ee.split(/((?:https?|ftp):\/\/[\S]+)/),ve=Q;ve<0&&(ve=0);var fe=0,we=0,me;try{for(var Pe=y(ce),pe=Pe.next();!pe.done;pe=Pe.next()){var Ie=pe.value;if(we=fe+Ie.length,ve>=fe&&ve<=we&&Ie.match(/((?:https?|ftp):\/\/[\S]+)/)){me=Ie.replace(/[\s:.,'";}\]]+$/,"");break}fe=we}}catch(Je){ue={error:Je}}finally{try{pe&&!pe.done&&(he=Pe.return)&&he.call(Pe)}finally{if(ue)throw ue.error}}return me},re.prototype.openLink=function(){var ne=this.selection.getCursor(),Q=this.findLinkAt(ne.row,ne.column);return Q&&window.open(Q,"_blank"),Q!=null},re.prototype.removeLines=function(){var ne=this.$getSelectedRows();this.session.removeFullLines(ne.first,ne.last),this.clearSelection()},re.prototype.duplicateSelection=function(){var ne=this.selection,Q=this.session,ue=ne.getRange(),he=ne.isBackwards();if(ue.isEmpty()){var Ee=ue.start.row;Q.duplicateLines(Ee,Ee)}else{var ce=he?ue.start:ue.end,ve=Q.insert(ce,Q.getTextRange(ue),!1);ue.start=ce,ue.end=ve,ne.setSelectionRange(ue,he)}},re.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},re.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},re.prototype.moveText=function(ne,Q,ue){return this.session.moveText(ne,Q,ue)},re.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},re.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},re.prototype.$moveLines=function(ne,Q){var ue,he,Ee=this.selection;if(!Ee.inMultiSelectMode||this.inVirtualSelectionMode){var ce=Ee.toOrientedRange();ue=this.$getSelectedRows(ce),he=this.session.$moveLines(ue.first,ue.last,Q?0:ne),Q&&ne==-1&&(he=0),ce.moveBy(he,0),Ee.fromOrientedRange(ce)}else{var ve=Ee.rangeList.ranges;Ee.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var fe=0,we=0,me=ve.length,Pe=0;Pe<me;Pe++){var pe=Pe;ve[Pe].moveBy(fe,0),ue=this.$getSelectedRows(ve[Pe]);for(var Ie=ue.first,Je=ue.last;++Pe<me;){we&&ve[Pe].moveBy(we,0);var ke=this.$getSelectedRows(ve[Pe]);if(Q&&ke.first!=Je)break;if(!Q&&ke.first>Je+1)break;Je=ke.last}for(Pe--,fe=this.session.$moveLines(Ie,Je,Q?0:ne),Q&&ne==-1&&(pe=Pe+1);pe<=Pe;)ve[pe].moveBy(fe,0),pe++;Q||(fe=0),we+=fe}Ee.fromOrientedRange(Ee.ranges[0]),Ee.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},re.prototype.$getSelectedRows=function(ne){return ne=(ne||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(ne.start.row),last:this.session.getRowFoldEnd(ne.end.row)}},re.prototype.onCompositionStart=function(ne){this.renderer.showComposition(ne)},re.prototype.onCompositionUpdate=function(ne){this.renderer.setCompositionText(ne)},re.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},re.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},re.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},re.prototype.isRowVisible=function(ne){return ne>=this.getFirstVisibleRow()&&ne<=this.getLastVisibleRow()},re.prototype.isRowFullyVisible=function(ne){return ne>=this.renderer.getFirstFullyVisibleRow()&&ne<=this.renderer.getLastFullyVisibleRow()},re.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},re.prototype.$moveByPage=function(ne,Q){var ue=this.renderer,he=this.renderer.layerConfig,Ee=ne*Math.floor(he.height/he.lineHeight);Q===!0?this.selection.$moveSelection(function(){this.moveCursorBy(Ee,0)}):Q===!1&&(this.selection.moveCursorBy(Ee,0),this.selection.clearSelection());var ce=ue.scrollTop;ue.scrollBy(0,Ee*he.lineHeight),Q!=null&&ue.scrollCursorIntoView(null,.5),ue.animateScrolling(ce)},re.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},re.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},re.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},re.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},re.prototype.scrollPageDown=function(){this.$moveByPage(1)},re.prototype.scrollPageUp=function(){this.$moveByPage(-1)},re.prototype.scrollToRow=function(ne){this.renderer.scrollToRow(ne)},re.prototype.scrollToLine=function(ne,Q,ue,he){this.renderer.scrollToLine(ne,Q,ue,he)},re.prototype.centerSelection=function(){var ne=this.getSelectionRange(),Q={row:Math.floor(ne.start.row+(ne.end.row-ne.start.row)/2),column:Math.floor(ne.start.column+(ne.end.column-ne.start.column)/2)};this.renderer.alignCursor(Q,.5)},re.prototype.getCursorPosition=function(){return this.selection.getCursor()},re.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},re.prototype.getSelectionRange=function(){return this.selection.getRange()},re.prototype.selectAll=function(){this.selection.selectAll()},re.prototype.clearSelection=function(){this.selection.clearSelection()},re.prototype.moveCursorTo=function(ne,Q){this.selection.moveCursorTo(ne,Q)},re.prototype.moveCursorToPosition=function(ne){this.selection.moveCursorToPosition(ne)},re.prototype.jumpToMatching=function(ne,Q){var ue=this.getCursorPosition(),he=new W(this.session,ue.row,ue.column),Ee=he.getCurrentToken(),ce=0;Ee&&Ee.type.indexOf("tag-name")!==-1&&(Ee=he.stepBackward());var ve=Ee||he.stepForward();if(!!ve){var fe,we=!1,me={},Pe=ue.column-ve.start,pe,Ie={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(ve.value.match(/[{}()\[\]]/g)){for(;Pe<ve.value.length&&!we;Pe++)if(!!Ie[ve.value[Pe]])switch(pe=Ie[ve.value[Pe]]+"."+ve.type.replace("rparen","lparen"),isNaN(me[pe])&&(me[pe]=0),ve.value[Pe]){case"(":case"[":case"{":me[pe]++;break;case")":case"]":case"}":me[pe]--,me[pe]===-1&&(fe="bracket",we=!0);break}}else ve.type.indexOf("tag-name")!==-1&&(isNaN(me[ve.value])&&(me[ve.value]=0),Ee.value==="<"&&ce>1?me[ve.value]++:Ee.value==="</"&&me[ve.value]--,me[ve.value]===-1&&(fe="tag",we=!0));we||(Ee=ve,ce++,ve=he.stepForward(),Pe=0)}while(ve&&!we);if(!!fe){var Je,ke;if(fe==="bracket")Je=this.session.getBracketRange(ue),Je||(Je=new k(he.getCurrentTokenRow(),he.getCurrentTokenColumn()+Pe-1,he.getCurrentTokenRow(),he.getCurrentTokenColumn()+Pe-1),ke=Je.start,(Q||ke.row===ue.row&&Math.abs(ke.column-ue.column)<2)&&(Je=this.session.getBracketRange(ke)));else if(fe==="tag"){if(!ve||ve.type.indexOf("tag-name")===-1)return;if(Je=new k(he.getCurrentTokenRow(),he.getCurrentTokenColumn()-2,he.getCurrentTokenRow(),he.getCurrentTokenColumn()-2),Je.compare(ue.row,ue.column)===0){var De=this.session.getMatchingTags(ue);De&&(De.openTag.contains(ue.row,ue.column)?(Je=De.closeTag,ke=Je.start):(Je=De.openTag,De.closeTag.start.row===ue.row&&De.closeTag.start.column===ue.column?ke=Je.end:ke=Je.start))}ke=ke||Je.start}ke=Je&&Je.cursor||ke,ke&&(ne?Je&&Q?this.selection.setRange(Je):Je&&Je.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(ke.row,ke.column):this.selection.moveTo(ke.row,ke.column))}}},re.prototype.gotoLine=function(ne,Q,ue){this.selection.clearSelection(),this.session.unfold({row:ne-1,column:Q||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(ne-1,Q||0),this.isRowFullyVisible(ne-1)||this.scrollToLine(ne-1,!0,ue)},re.prototype.navigateTo=function(ne,Q){this.selection.moveTo(ne,Q)},re.prototype.navigateUp=function(ne){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var Q=this.selection.anchor.getPosition();return this.moveCursorToPosition(Q)}this.selection.clearSelection(),this.selection.moveCursorBy(-ne||-1,0)},re.prototype.navigateDown=function(ne){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var Q=this.selection.anchor.getPosition();return this.moveCursorToPosition(Q)}this.selection.clearSelection(),this.selection.moveCursorBy(ne||1,0)},re.prototype.navigateLeft=function(ne){if(this.selection.isEmpty())for(ne=ne||1;ne--;)this.selection.moveCursorLeft();else{var Q=this.getSelectionRange().start;this.moveCursorToPosition(Q)}this.clearSelection()},re.prototype.navigateRight=function(ne){if(this.selection.isEmpty())for(ne=ne||1;ne--;)this.selection.moveCursorRight();else{var Q=this.getSelectionRange().end;this.moveCursorToPosition(Q)}this.clearSelection()},re.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},re.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},re.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},re.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},re.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},re.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},re.prototype.replace=function(ne,Q){Q&&this.$search.set(Q);var ue=this.$search.find(this.session),he=0;return ue&&(this.$tryReplace(ue,ne)&&(he=1),this.selection.setSelectionRange(ue),this.renderer.scrollSelectionIntoView(ue.start,ue.end)),he},re.prototype.replaceAll=function(ne,Q){Q&&this.$search.set(Q);var ue=this.$search.findAll(this.session),he=0;if(!ue.length)return he;var Ee=this.getSelectionRange();this.selection.moveTo(0,0);for(var ce=ue.length-1;ce>=0;--ce)this.$tryReplace(ue[ce],ne)&&he++;return this.selection.setSelectionRange(Ee),he},re.prototype.$tryReplace=function(ne,Q){var ue=this.session.getTextRange(ne);return Q=this.$search.replace(ue,Q),Q!==null?(ne.end=this.session.replace(ne,Q),ne):null},re.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},re.prototype.find=function(ne,Q,ue){Q||(Q={}),typeof ne=="string"||ne instanceof RegExp?Q.needle=ne:typeof ne=="object"&&M.mixin(Q,ne);var he=this.selection.getRange();Q.needle==null&&(ne=this.session.getTextRange(he)||this.$search.$options.needle,ne||(he=this.session.getWordRange(he.start.row,he.start.column),ne=this.session.getTextRange(he)),this.$search.set({needle:ne})),this.$search.set(Q),Q.start||this.$search.set({start:he});var Ee=this.$search.find(this.session);if(Q.preventScroll)return Ee;if(Ee)return this.revealRange(Ee,ue),Ee;Q.backwards?he.start=he.end:he.end=he.start,this.selection.setRange(he)},re.prototype.findNext=function(ne,Q){this.find({skipCurrent:!0,backwards:!1},ne,Q)},re.prototype.findPrevious=function(ne,Q){this.find(ne,{skipCurrent:!0,backwards:!0},Q)},re.prototype.revealRange=function(ne,Q){this.session.unfold(ne),this.selection.setSelectionRange(ne);var ue=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(ne.start,ne.end,.5),Q!==!1&&this.renderer.animateScrolling(ue)},re.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},re.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},re.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(ne){ne.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},re.prototype.setAutoScrollEditorIntoView=function(ne){if(!!ne){var Q,ue=this,he=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var Ee=this.$scrollAnchor;Ee.style.cssText="position:absolute",this.container.insertBefore(Ee,this.container.firstChild);var ce=this.on("changeSelection",function(){he=!0}),ve=this.renderer.on("beforeRender",function(){he&&(Q=ue.renderer.container.getBoundingClientRect())}),fe=this.renderer.on("afterRender",function(){if(he&&Q&&(ue.isFocused()||ue.searchBox&&ue.searchBox.isFocused())){var we=ue.renderer,me=we.$cursorLayer.$pixelPos,Pe=we.layerConfig,pe=me.top-Pe.offset;me.top>=0&&pe+Q.top<0?he=!0:me.top<Pe.height&&me.top+Q.top+Pe.lineHeight>window.innerHeight?he=!1:he=null,he!=null&&(Ee.style.top=pe+"px",Ee.style.left=me.left+"px",Ee.style.height=Pe.lineHeight+"px",Ee.scrollIntoView(he)),he=Q=null}});this.setAutoScrollEditorIntoView=function(we){we||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",ce),this.renderer.off("afterRender",fe),this.renderer.off("beforeRender",ve))}}},re.prototype.$resetCursorStyle=function(){var ne=this.$cursorStyle||"ace",Q=this.renderer.$cursorLayer;!Q||(Q.setSmoothBlinking(/smooth/.test(ne)),Q.isBlinking=!this.$readOnly&&ne!="wide",w.setCssClass(Q.element,"ace_slim-cursors",/slim/.test(ne)))},re.prototype.prompt=function(ne,Q,ue){var he=this;Z.loadModule("ace/ext/prompt",function(Ee){Ee.prompt(he,ne,Q,ue)})},re}();z.$uid=0,z.prototype.curOp=null,z.prototype.prevOp={},z.prototype.$mergeableCommands=["backspace","del","insertstring"],z.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],M.implement(z.prototype,O),Z.defineOptions(z.prototype,"editor",{selectionStyle:{set:function(ne){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:ne})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(ne){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(ne){this.textInput.setReadOnly(ne),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(ne){this.textInput.setCopyWithEmptySelection(ne)},initialValue:!1},cursorStyle:{set:function(ne){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(ne){this.setAutoScrollEditorIntoView(ne)}},keyboardHandler:{set:function(ne){this.setKeyboardHandler(ne)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(ne){this.session.setValue(ne)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(ne){this.setSession(ne)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(ne){this.renderer.$gutterLayer.setShowLineNumbers(ne),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),ne&&this.$relativeLineNumbers?K.attach(this):K.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(ne){this.$showLineNumbers&&ne?K.attach(this):K.detach(this)}},placeholder:{set:function(ne){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var Q=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(Q&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),w.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!Q&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),w.addCssClass(this.container,"ace_hasPlaceholder");var ue=w.createElement("div");ue.className="ace_placeholder",ue.textContent=this.$placeholder||"",this.renderer.placeholderNode=ue,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!Q&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(ne){var Q={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(ce){ce.blur(),ce.renderer.scroller.focus()},readOnly:!0},ue=function(ce){if(ce.target==this.renderer.scroller&&ce.keyCode===G.enter){ce.preventDefault();var ve=this.getCursorPosition().row;this.isRowVisible(ve)||this.scrollToLine(ve,!0,!0),this.focus()}},he;ne?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(b.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",V("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",V("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",ue.bind(this)),this.commands.addCommand(Q),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",V("editor")),this.renderer.$gutter.setAttribute("aria-label",V("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),he||(he=new L(this)),he.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",ue.bind(this)),this.commands.removeCommand(Q),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),he&&he.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var K={getText:function(ne,Q){return(Math.abs(ne.selection.lead.row-Q)||Q+1+(Q<9?"\xB7":""))+""},getWidth:function(ne,Q,ue){return Math.max(Q.toString().length,(ue.lastRow+1).toString().length,2)*ue.characterWidth},update:function(ne,Q){Q.renderer.$loop.schedule(Q.renderer.CHANGE_GUTTER)},attach:function(ne){ne.renderer.$gutterLayer.$renderer=this,ne.on("changeSelection",this.update),this.update(null,ne)},detach:function(ne){ne.renderer.$gutterLayer.$renderer==this&&(ne.renderer.$gutterLayer.$renderer=null),ne.off("changeSelection",this.update),this.update(null,ne)}};g.Editor=z}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(x,g,A){"use strict";var y=function(){function L(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=Infinity,this.reset()}return L.prototype.addSession=function(V){this.$session=V},L.prototype.add=function(V,$,G){if(!this.$fromUndo&&V!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),$===!1||!this.lastDeltas){this.lastDeltas=[];var z=this.$undoStack.length;z>this.$undoDepth-1&&this.$undoStack.splice(0,z-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),V.id=this.$rev=++this.$maxRev}(V.action=="remove"||V.action=="insert")&&(this.$lastDelta=V),this.lastDeltas.push(V)}},L.prototype.addSelection=function(V,$){this.selections.push({value:V,rev:$||this.$rev})},L.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},L.prototype.markIgnored=function(V,$){$==null&&($=this.$rev+1);for(var G=this.$undoStack,z=G.length;z--;){var K=G[z][0];if(K.id<=V)break;K.id<$&&(K.ignore=!0)}this.lastDeltas=null},L.prototype.getSelection=function(V,$){for(var G=this.selections,z=G.length;z--;){var K=G[z];if(K.rev<V)return $&&(K=G[z+1]),K}},L.prototype.getRevision=function(){return this.$rev},L.prototype.getDeltas=function(V,$){$==null&&($=this.$rev+1);for(var G=this.$undoStack,z=null,K=0,re=G.length;re--;){var ne=G[re][0];if(ne.id<$&&!z&&(z=re+1),ne.id<=V){K=re+1;break}}return G.slice(K,z)},L.prototype.getChangedRanges=function(V,$){$==null&&($=this.$rev+1)},L.prototype.getChangedLines=function(V,$){$==null&&($=this.$rev+1)},L.prototype.undo=function(V,$){this.lastDeltas=null;var G=this.$undoStack;if(!!M(G,G.length)){V||(V=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var z=G.pop(),K=null;return z&&(K=V.undoChanges(z,$),this.$redoStack.push(z),this.$syncRev()),this.$fromUndo=!1,K}},L.prototype.redo=function(V,$){if(this.lastDeltas=null,V||(V=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var G=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);U(this.$redoStack,G),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(re){re[0].id=++this.$maxRev},this)}var z=this.$redoStack.pop(),K=null;return z&&(K=V.redoChanges(z,$),this.$undoStack.push(z),this.$syncRev()),this.$fromUndo=!1,K},L.prototype.$syncRev=function(){var V=this.$undoStack,$=V[V.length-1],G=$&&$[0].id||0;this.$redoStackBaseRev=G,this.$rev=G},L.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},L.prototype.canUndo=function(){return this.$undoStack.length>0},L.prototype.canRedo=function(){return this.$redoStack.length>0},L.prototype.bookmark=function(V){V==null&&(V=this.$rev),this.mark=V},L.prototype.isAtBookmark=function(){return this.$rev===this.mark},L.prototype.toJSON=function(){},L.prototype.fromJSON=function(){},L.prototype.$prettyPrint=function(V){return V?_(V):_(this.$undoStack)+`
|
||
---
|
||
`+_(this.$redoStack)},L}();y.prototype.hasUndo=y.prototype.canUndo,y.prototype.hasRedo=y.prototype.canRedo,y.prototype.isClean=y.prototype.isAtBookmark,y.prototype.markClean=y.prototype.bookmark;function M(L,V){for(var $=V;$--;){var G=L[$];if(G&&!G[0].ignore){for(;$<V-1;){var z=k(L[$],L[$+1]);L[$]=z[0],L[$+1]=z[1],$++}return!0}}}var w=x("./range").Range,m=w.comparePoints,b=w.comparePoints;function v(L){var V=L.action=="insert",$=L.start,G=L.end,z=(G.row-$.row)*(V?1:-1),K=(G.column-$.column)*(V?1:-1);V&&(G=$);for(var re in this.marks){var ne=this.marks[re],Q=b(ne,$);if(!(Q<0)){if(Q===0&&V)if(ne.bias==1)Q=1;else{ne.bias==-1;continue}var ue=V?Q:b(ne,G);if(ue>0){ne.row+=z,ne.column+=ne.row==G.row?K:0;continue}!V&&ue<=0&&(ne.row=$.row,ne.column=$.column,ue===0&&(ne.bias=1))}}}function h(L){return{row:L.row,column:L.column}}function d(L){return{start:h(L.start),end:h(L.end),action:L.action,lines:L.lines.slice()}}function _(L){if(L=L||this,Array.isArray(L))return L.map(_).join(`
|
||
`);var V="";return L.action?(V=L.action=="insert"?"+":"-",V+="["+L.lines+"]"):L.value&&(Array.isArray(L.value)?V=L.value.map(p).join(`
|
||
`):V=p(L.value)),L.start&&(V+=p(L)),(L.id||L.rev)&&(V+=" ("+(L.id||L.rev)+")"),V}function p(L){return L.start.row+":"+L.start.column+"=>"+L.end.row+":"+L.end.column}function S(L,V){var $=L.action=="insert",G=V.action=="insert";if($&&G)if(m(V.start,L.end)>=0)F(V,L,-1);else if(m(V.start,L.start)<=0)F(L,V,1);else return null;else if($&&!G)if(m(V.start,L.end)>=0)F(V,L,-1);else if(m(V.end,L.start)<=0)F(L,V,-1);else return null;else if(!$&&G)if(m(V.start,L.start)>=0)F(V,L,1);else if(m(V.start,L.start)<=0)F(L,V,1);else return null;else if(!$&&!G)if(m(V.start,L.start)>=0)F(V,L,1);else if(m(V.end,L.start)<=0)F(L,V,-1);else return null;return[V,L]}function k(L,V){for(var $=L.length;$--;)for(var G=0;G<V.length;G++)if(!S(L[$],V[G])){for(;$<L.length;){for(;G--;)S(V[G],L[$]);G=V.length,$++}return[L,V]}return L.selectionBefore=V.selectionBefore=L.selectionAfter=V.selectionAfter=null,[V,L]}function O(L,V){var $=L.action=="insert",G=V.action=="insert";if($&&G)m(L.start,V.start)<0?F(V,L,1):F(L,V,1);else if($&&!G)m(L.start,V.end)>=0?F(L,V,-1):(m(L.start,V.start)<=0||F(L,w.fromPoints(V.start,L.start),-1),F(V,L,1));else if(!$&&G)m(V.start,L.end)>=0?F(V,L,-1):(m(V.start,L.start)<=0||F(V,w.fromPoints(L.start,V.start),-1),F(L,V,1));else if(!$&&!G)if(m(V.start,L.end)>=0)F(V,L,-1);else if(m(V.end,L.start)<=0)F(L,V,-1);else{var z,K;return m(L.start,V.start)<0&&(z=L,L=Z(L,V.start)),m(L.end,V.end)>0&&(K=Z(L,V.end)),D(V.end,L.start,L.end,-1),K&&!z&&(L.lines=K.lines,L.start=K.start,L.end=K.end,K=L),[V,z,K].filter(Boolean)}return[V,L]}function F(L,V,$){D(L.start,V.start,V.end,$),D(L.end,V.start,V.end,$)}function D(L,V,$,G){L.row==(G==1?V:$).row&&(L.column+=G*($.column-V.column)),L.row+=G*($.row-V.row)}function Z(L,V){var $=L.lines,G=L.end;L.end=h(V);var z=L.end.row-L.start.row,K=$.splice(z,$.length),re=z?V.column:V.column-L.start.column;$.push(K[0].substring(0,re)),K[0]=K[0].substr(re);var ne={start:h(V),end:G,lines:K,action:L.action};return ne}function W(L,V){V=d(V);for(var $=L.length;$--;){for(var G=L[$],z=0;z<G.length;z++){var K=G[z],re=O(K,V);V=re[0],re.length!=2&&(re[2]?(G.splice(z+1,1,re[1],re[2]),z++):re[1]||(G.splice(z,1),z--))}G.length||L.splice($,1)}return L}function U(L,V){for(var $=0;$<V.length;$++)for(var G=V[$],z=0;z<G.length;z++)W(L,G[z])}g.UndoManager=y}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(x,g,A){"use strict";var y=x("../lib/dom"),M=function(){function w(m,b){this.element=m,this.canvasHeight=b||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return w.prototype.moveContainer=function(m){y.translate(this.element,0,-(m.firstRowScreen*m.lineHeight%this.canvasHeight)-m.offset*this.$offsetCoefficient)},w.prototype.pageChanged=function(m,b){return Math.floor(m.firstRowScreen*m.lineHeight/this.canvasHeight)!==Math.floor(b.firstRowScreen*b.lineHeight/this.canvasHeight)},w.prototype.computeLineTop=function(m,b,v){var h=b.firstRowScreen*b.lineHeight,d=Math.floor(h/this.canvasHeight),_=v.documentToScreenRow(m,0)*b.lineHeight;return _-d*this.canvasHeight},w.prototype.computeLineHeight=function(m,b,v){return b.lineHeight*v.getRowLineCount(m)},w.prototype.getLength=function(){return this.cells.length},w.prototype.get=function(m){return this.cells[m]},w.prototype.shift=function(){this.$cacheCell(this.cells.shift())},w.prototype.pop=function(){this.$cacheCell(this.cells.pop())},w.prototype.push=function(m){if(Array.isArray(m)){this.cells.push.apply(this.cells,m);for(var b=y.createFragment(this.element),v=0;v<m.length;v++)b.appendChild(m[v].element);this.element.appendChild(b)}else this.cells.push(m),this.element.appendChild(m.element)},w.prototype.unshift=function(m){if(Array.isArray(m)){this.cells.unshift.apply(this.cells,m);for(var b=y.createFragment(this.element),v=0;v<m.length;v++)b.appendChild(m[v].element);this.element.firstChild?this.element.insertBefore(b,this.element.firstChild):this.element.appendChild(b)}else this.cells.unshift(m),this.element.insertAdjacentElement("afterbegin",m.element)},w.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},w.prototype.$cacheCell=function(m){!m||(m.element.remove(),this.cellCache.push(m))},w.prototype.createCell=function(m,b,v,h){var d=this.cellCache.pop();if(!d){var _=y.createElement("div");h&&h(_),this.element.appendChild(_),d={element:_,text:"",row:m}}return d.row=m,d},w}();g.Lines=M}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(x,g,A){"use strict";var y=x("../lib/dom"),M=x("../lib/oop"),w=x("../lib/lang"),m=x("../lib/event_emitter").EventEmitter,b=x("./lines").Lines,v=x("../config").nls,h=function(){function _(p){this.element=y.createElement("div"),this.element.className="ace_layer ace_gutter-layer",p.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new b(this.element),this.$lines.$offsetCoefficient=1}return _.prototype.setSession=function(p){this.session&&this.session.off("change",this.$updateAnnotations),this.session=p,p&&p.on("change",this.$updateAnnotations)},_.prototype.addGutterDecoration=function(p,S){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(p,S)},_.prototype.removeGutterDecoration=function(p,S){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(p,S)},_.prototype.setAnnotations=function(p){this.$annotations=[];for(var S=0;S<p.length;S++){var k=p[S],O=k.row,F=this.$annotations[O];F||(F=this.$annotations[O]={text:[],type:[]});var D=k.text,Z=k.type;D=D?w.escapeHTML(D):k.html||"",F.text.indexOf(D)===-1&&(F.text.push(D),F.type.push(Z));var W=k.className;W?F.className=W:Z=="error"?F.className=" ace_error":Z=="warning"&&F.className!=" ace_error"?F.className=" ace_warning":Z=="info"&&!F.className&&(F.className=" ace_info")}},_.prototype.$updateAnnotations=function(p){if(!!this.$annotations.length){var S=p.start.row,k=p.end.row-S;if(k!==0)if(p.action=="remove")this.$annotations.splice(S,k+1,null);else{var O=new Array(k+1);O.unshift(S,1),this.$annotations.splice.apply(this.$annotations,O)}}},_.prototype.update=function(p){this.config=p;var S=this.session,k=p.firstRow,O=Math.min(p.lastRow+p.gutterOffset,S.getLength()-1);this.oldLastRow=O,this.config=p,this.$lines.moveContainer(p),this.$updateCursorRow();for(var F=S.getNextFoldLine(k),D=F?F.start.row:Infinity,Z=null,W=-1,U=k;;){if(U>D&&(U=F.end.row+1,F=S.getNextFoldLine(U,F),D=F?F.start.row:Infinity),U>O){for(;this.$lines.getLength()>W+1;)this.$lines.pop();break}Z=this.$lines.get(++W),Z?Z.row=U:(Z=this.$lines.createCell(U,p,this.session,d),this.$lines.push(Z)),this.$renderCell(Z,p,F,U),U++}this._signal("afterRender"),this.$updateGutterWidth(p)},_.prototype.$updateGutterWidth=function(p){var S=this.session,k=S.gutterRenderer||this.$renderer,O=S.$firstLineNumber,F=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||S.$useWrapMode)&&(F=S.getLength()+O-1);var D=k?k.getWidth(S,F,p):F.toString().length*p.characterWidth,Z=this.$padding||this.$computePadding();D+=Z.left+Z.right,D!==this.gutterWidth&&!isNaN(D)&&(this.gutterWidth=D,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",D))},_.prototype.$updateCursorRow=function(){if(!!this.$highlightGutterLine){var p=this.session.selection.getCursor();this.$cursorRow!==p.row&&(this.$cursorRow=p.row)}},_.prototype.updateLineHighlight=function(){if(!!this.$highlightGutterLine){var p=this.session.selection.cursor.row;if(this.$cursorRow=p,!(this.$cursorCell&&this.$cursorCell.row==p)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var S=this.$lines.cells;this.$cursorCell=null;for(var k=0;k<S.length;k++){var O=S[k];if(O.row>=this.$cursorRow){if(O.row>this.$cursorRow){var F=this.session.getFoldLine(this.$cursorRow);if(k>0&&F&&F.start.row==S[k-1].row)O=S[k-1];else break}O.element.className="ace_gutter-active-line "+O.element.className,this.$cursorCell=O;break}}}}},_.prototype.scrollLines=function(p){var S=this.config;if(this.config=p,this.$updateCursorRow(),this.$lines.pageChanged(S,p))return this.update(p);this.$lines.moveContainer(p);var k=Math.min(p.lastRow+p.gutterOffset,this.session.getLength()-1),O=this.oldLastRow;if(this.oldLastRow=k,!S||O<p.firstRow)return this.update(p);if(k<S.firstRow)return this.update(p);if(S.firstRow<p.firstRow)for(var F=this.session.getFoldedRowCount(S.firstRow,p.firstRow-1);F>0;F--)this.$lines.shift();if(O>k)for(var F=this.session.getFoldedRowCount(k+1,O);F>0;F--)this.$lines.pop();p.firstRow<S.firstRow&&this.$lines.unshift(this.$renderLines(p,p.firstRow,S.firstRow-1)),k>O&&this.$lines.push(this.$renderLines(p,O+1,k)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(p)},_.prototype.$renderLines=function(p,S,k){for(var O=[],F=S,D=this.session.getNextFoldLine(F),Z=D?D.start.row:Infinity;F>Z&&(F=D.end.row+1,D=this.session.getNextFoldLine(F,D),Z=D?D.start.row:Infinity),!(F>k);){var W=this.$lines.createCell(F,p,this.session,d);this.$renderCell(W,p,D,F),O.push(W),F++}return O},_.prototype.$renderCell=function(p,S,k,O){var F=p.element,D=this.session,Z=F.childNodes[0],W=F.childNodes[1],U=F.childNodes[2],L=U.firstChild,V=D.$firstLineNumber,$=D.$breakpoints,G=D.$decorations,z=D.gutterRenderer||this.$renderer,K=this.$showFoldWidgets&&D.foldWidgets,re=k?k.start.row:Number.MAX_VALUE,ne=S.lineHeight+"px",Q=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",ue=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",he=(z?z.getText(D,O):O+V).toString();if(this.$highlightGutterLine&&(O==this.$cursorRow||k&&O<this.$cursorRow&&O>=re&&this.$cursorRow<=k.end.row)&&(Q+="ace_gutter-active-line ",this.$cursorCell!=p&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=p)),$[O]&&(Q+=$[O]),G[O]&&(Q+=G[O]),this.$annotations[O]&&O!==re&&(Q+=this.$annotations[O].className),K){var Ee=K[O];Ee==null&&(Ee=K[O]=D.getFoldWidget(O))}if(Ee){var ce="ace_fold-widget ace_"+Ee,ve=Ee=="start"&&O==re&&O<k.end.row;if(ve){ce+=" ace_closed";for(var fe="",we=!1,me=O+1;me<=k.end.row;me++)if(!!this.$annotations[me]){if(this.$annotations[me].className===" ace_error"){we=!0,fe=" ace_error_fold";break}if(this.$annotations[me].className===" ace_warning"){we=!0,fe=" ace_warning_fold";continue}}Q+=fe}else ce+=" ace_open";W.className!=ce&&(W.className=ce),y.setStyle(W.style,"height",ne),y.setStyle(W.style,"display","inline-block"),W.setAttribute("role","button"),W.setAttribute("tabindex","-1");var Pe=D.getFoldWidgetRange(O);Pe?W.setAttribute("aria-label",v("Toggle code folding, rows $0 through $1",[Pe.start.row+1,Pe.end.row+1])):k?W.setAttribute("aria-label",v("Toggle code folding, rows $0 through $1",[k.start.row+1,k.end.row+1])):W.setAttribute("aria-label",v("Toggle code folding, row $0",[O+1])),ve?(W.setAttribute("aria-expanded","false"),W.setAttribute("title",v("Unfold code"))):(W.setAttribute("aria-expanded","true"),W.setAttribute("title",v("Fold code")))}else W&&(y.setStyle(W.style,"display","none"),W.setAttribute("tabindex","0"),W.removeAttribute("role"),W.removeAttribute("aria-label"));return we&&this.$showFoldedAnnotations?(U.className="ace_gutter_annotation",L.className=ue,L.className+=fe,y.setStyle(L.style,"height",ne),y.setStyle(U.style,"display","block"),y.setStyle(U.style,"height",ne),U.setAttribute("aria-label",v("Read annotations row $0",[he])),U.setAttribute("tabindex","-1"),U.setAttribute("role","button")):this.$annotations[O]?(U.className="ace_gutter_annotation",L.className=ue,this.$useSvgGutterIcons?L.className+=this.$annotations[O].className:F.classList.add(this.$annotations[O].className.replace(" ","")),y.setStyle(L.style,"height",ne),y.setStyle(U.style,"display","block"),y.setStyle(U.style,"height",ne),U.setAttribute("aria-label",v("Read annotations row $0",[he])),U.setAttribute("tabindex","-1"),U.setAttribute("role","button")):(y.setStyle(U.style,"display","none"),U.removeAttribute("aria-label"),U.removeAttribute("role"),U.setAttribute("tabindex","0")),he!==Z.data&&(Z.data=he),F.className!=Q&&(F.className=Q),y.setStyle(p.element.style,"height",this.$lines.computeLineHeight(O,S,D)+"px"),y.setStyle(p.element.style,"top",this.$lines.computeLineTop(O,S,D)+"px"),p.text=he,U.style.display==="none"&&W.style.display==="none"?p.element.setAttribute("aria-hidden",!0):p.element.setAttribute("aria-hidden",!1),p},_.prototype.setHighlightGutterLine=function(p){this.$highlightGutterLine=p},_.prototype.setShowLineNumbers=function(p){this.$renderer=!p&&{getWidth:function(){return 0},getText:function(){return""}}},_.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},_.prototype.setShowFoldWidgets=function(p){p?y.addCssClass(this.element,"ace_folding-enabled"):y.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=p,this.$padding=null},_.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},_.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var p=y.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(p.borderLeftWidth)||0)+(parseInt(p.paddingLeft)||0)+1,this.$padding.right=(parseInt(p.borderRightWidth)||0)+(parseInt(p.paddingRight)||0),this.$padding},_.prototype.getRegion=function(p){var S=this.$padding||this.$computePadding(),k=this.element.getBoundingClientRect();if(p.x<S.left+k.left)return"markers";if(this.$showFoldWidgets&&p.x>k.right-S.right)return"foldWidgets"},_}();h.prototype.$fixedWidth=!1,h.prototype.$highlightGutterLine=!0,h.prototype.$renderer="",h.prototype.$showLineNumbers=!0,h.prototype.$showFoldWidgets=!0,M.implement(h.prototype,m);function d(_){var p=document.createTextNode("");_.appendChild(p);var S=y.createElement("span");_.appendChild(S);var k=y.createElement("span");_.appendChild(k);var O=y.createElement("span");return k.appendChild(O),_}g.Gutter=h}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(x,g,A){"use strict";var y=x("../range").Range,M=x("../lib/dom"),w=function(){function b(v){this.element=M.createElement("div"),this.element.className="ace_layer ace_marker-layer",v.appendChild(this.element)}return b.prototype.setPadding=function(v){this.$padding=v},b.prototype.setSession=function(v){this.session=v},b.prototype.setMarkers=function(v){this.markers=v},b.prototype.elt=function(v,h){var d=this.i!=-1&&this.element.childNodes[this.i];d?this.i++:(d=document.createElement("div"),this.element.appendChild(d),this.i=-1),d.style.cssText=h,d.className=v},b.prototype.update=function(v){if(!!v){this.config=v,this.i=0;var h;for(var d in this.markers){var _=this.markers[d];if(!_.range){_.update(h,this,this.session,v);continue}var p=_.range.clipRows(v.firstRow,v.lastRow);if(!p.isEmpty())if(p=p.toScreenRange(this.session),_.renderer){var S=this.$getTop(p.start.row,v),k=this.$padding+p.start.column*v.characterWidth;_.renderer(h,p,k,S,v)}else _.type=="fullLine"?this.drawFullLineMarker(h,p,_.clazz,v):_.type=="screenLine"?this.drawScreenLineMarker(h,p,_.clazz,v):p.isMultiLine()?_.type=="text"?this.drawTextMarker(h,p,_.clazz,v):this.drawMultiLineMarker(h,p,_.clazz,v):this.drawSingleLineMarker(h,p,_.clazz+" ace_start ace_br15",v)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},b.prototype.$getTop=function(v,h){return(v-h.firstRowScreen)*h.lineHeight},b.prototype.drawTextMarker=function(v,h,d,_,p){for(var S=this.session,k=h.start.row,O=h.end.row,F=k,D=0,Z=0,W=S.getScreenLastRowColumn(F),U=new y(F,h.start.column,F,Z);F<=O;F++)U.start.row=U.end.row=F,U.start.column=F==k?h.start.column:S.getRowWrapIndent(F),U.end.column=W,D=Z,Z=W,W=F+1<O?S.getScreenLastRowColumn(F+1):F==O?0:h.end.column,this.drawSingleLineMarker(v,U,d+(F==k?" ace_start":"")+" ace_br"+m(F==k||F==k+1&&h.start.column,D<Z,Z>W,F==O),_,F==O?0:1,p)},b.prototype.drawMultiLineMarker=function(v,h,d,_,p){var S=this.$padding,k=_.lineHeight,O=this.$getTop(h.start.row,_),F=S+h.start.column*_.characterWidth;if(p=p||"",this.session.$bidiHandler.isBidiRow(h.start.row)){var D=h.clone();D.end.row=D.start.row,D.end.column=this.session.getLine(D.start.row).length,this.drawBidiSingleLineMarker(v,D,d+" ace_br1 ace_start",_,null,p)}else this.elt(d+" ace_br1 ace_start","height:"+k+"px;right:0;top:"+O+"px;left:"+F+"px;"+(p||""));if(this.session.$bidiHandler.isBidiRow(h.end.row)){var D=h.clone();D.start.row=D.end.row,D.start.column=0,this.drawBidiSingleLineMarker(v,D,d+" ace_br12",_,null,p)}else{O=this.$getTop(h.end.row,_);var Z=h.end.column*_.characterWidth;this.elt(d+" ace_br12","height:"+k+"px;width:"+Z+"px;top:"+O+"px;left:"+S+"px;"+(p||""))}if(k=(h.end.row-h.start.row-1)*_.lineHeight,!(k<=0)){O=this.$getTop(h.start.row+1,_);var W=(h.start.column?1:0)|(h.end.column?0:8);this.elt(d+(W?" ace_br"+W:""),"height:"+k+"px;right:0;top:"+O+"px;left:"+S+"px;"+(p||""))}},b.prototype.drawSingleLineMarker=function(v,h,d,_,p,S){if(this.session.$bidiHandler.isBidiRow(h.start.row))return this.drawBidiSingleLineMarker(v,h,d,_,p,S);var k=_.lineHeight,O=(h.end.column+(p||0)-h.start.column)*_.characterWidth,F=this.$getTop(h.start.row,_),D=this.$padding+h.start.column*_.characterWidth;this.elt(d,"height:"+k+"px;width:"+O+"px;top:"+F+"px;left:"+D+"px;"+(S||""))},b.prototype.drawBidiSingleLineMarker=function(v,h,d,_,p,S){var k=_.lineHeight,O=this.$getTop(h.start.row,_),F=this.$padding,D=this.session.$bidiHandler.getSelections(h.start.column,h.end.column);D.forEach(function(Z){this.elt(d,"height:"+k+"px;width:"+(Z.width+(p||0))+"px;top:"+O+"px;left:"+(F+Z.left)+"px;"+(S||""))},this)},b.prototype.drawFullLineMarker=function(v,h,d,_,p){var S=this.$getTop(h.start.row,_),k=_.lineHeight;h.start.row!=h.end.row&&(k+=this.$getTop(h.end.row,_)-S),this.elt(d,"height:"+k+"px;top:"+S+"px;left:0;right:0;"+(p||""))},b.prototype.drawScreenLineMarker=function(v,h,d,_,p){var S=this.$getTop(h.start.row,_),k=_.lineHeight;this.elt(d,"height:"+k+"px;top:"+S+"px;left:0;right:0;"+(p||""))},b}();w.prototype.$padding=0;function m(b,v,h,d){return(b?1:0)|(v?2:0)|(h?4:0)|(d?8:0)}g.Marker=w}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config"],function(x,g,A){"use strict";var y=x("../lib/oop"),M=x("../lib/dom"),w=x("../lib/lang"),m=x("./lines").Lines,b=x("../lib/event_emitter").EventEmitter,v=x("../config").nls,h=function(){function d(_){this.dom=M,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",_.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new m(this.element)}return d.prototype.$updateEolChar=function(){var _=this.session.doc,p=_.getNewLineCharacter()==`
|
||
`&&_.getNewLineMode()!="windows",S=p?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=S)return this.EOL_CHAR=S,!0},d.prototype.setPadding=function(_){this.$padding=_,this.element.style.margin="0 "+_+"px"},d.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},d.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},d.prototype.$setFontMetrics=function(_){this.$fontMetrics=_,this.$fontMetrics.on("changeCharacterSize",function(p){this._signal("changeCharacterSize",p)}.bind(this)),this.$pollSizeChanges()},d.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},d.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},d.prototype.setSession=function(_){this.session=_,_&&this.$computeTabString()},d.prototype.setShowInvisibles=function(_){return this.showInvisibles==_?!1:(this.showInvisibles=_,typeof _=="string"?(this.showSpaces=/tab/i.test(_),this.showTabs=/space/i.test(_),this.showEOL=/eol/i.test(_)):this.showSpaces=this.showTabs=this.showEOL=_,this.$computeTabString(),!0)},d.prototype.setDisplayIndentGuides=function(_){return this.displayIndentGuides==_?!1:(this.displayIndentGuides=_,this.$computeTabString(),!0)},d.prototype.setHighlightIndentGuides=function(_){return this.$highlightIndentGuides===_?!1:(this.$highlightIndentGuides=_,_)},d.prototype.$computeTabString=function(){var _=this.session.getTabSize();this.tabSize=_;for(var p=this.$tabStrings=[0],S=1;S<_+1;S++)if(this.showTabs){var k=this.dom.createElement("span");k.className="ace_invisible ace_invisible_tab",k.textContent=w.stringRepeat(this.TAB_CHAR,S),p.push(k)}else p.push(this.dom.createTextNode(w.stringRepeat(" ",S),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var O="ace_indent-guide",F=this.showSpaces?" ace_invisible ace_invisible_space":"",D=this.showSpaces?w.stringRepeat(this.SPACE_CHAR,this.tabSize):w.stringRepeat(" ",this.tabSize),Z=this.showTabs?" ace_invisible ace_invisible_tab":"",W=this.showTabs?w.stringRepeat(this.TAB_CHAR,this.tabSize):D,k=this.dom.createElement("span");k.className=O+F,k.textContent=D,this.$tabStrings[" "]=k;var k=this.dom.createElement("span");k.className=O+Z,k.textContent=W,this.$tabStrings[" "]=k}},d.prototype.updateLines=function(_,p,S){if(this.config.lastRow!=_.lastRow||this.config.firstRow!=_.firstRow)return this.update(_);this.config=_;for(var k=Math.max(p,_.firstRow),O=Math.min(S,_.lastRow),F=this.element.childNodes,D=0,W=_.firstRow;W<k;W++){var U=this.session.getFoldLine(W);if(U)if(U.containsRow(k)){k=U.start.row;break}else W=U.end.row;D++}for(var Z=!1,W=k,U=this.session.getNextFoldLine(W),L=U?U.start.row:Infinity;W>L&&(W=U.end.row+1,U=this.session.getNextFoldLine(W,U),L=U?U.start.row:Infinity),!(W>O);){var V=F[D++];if(V){this.dom.removeChildren(V),this.$renderLine(V,W,W==L?U:!1),Z&&(V.style.top=this.$lines.computeLineTop(W,_,this.session)+"px");var $=_.lineHeight*this.session.getRowLength(W)+"px";V.style.height!=$&&(Z=!0,V.style.height=$)}W++}if(Z)for(;D<this.$lines.cells.length;){var G=this.$lines.cells[D++];G.element.style.top=this.$lines.computeLineTop(G.row,_,this.session)+"px"}},d.prototype.scrollLines=function(_){var p=this.config;if(this.config=_,this.$lines.pageChanged(p,_))return this.update(_);this.$lines.moveContainer(_);var S=_.lastRow,k=p?p.lastRow:-1;if(!p||k<_.firstRow)return this.update(_);if(S<p.firstRow)return this.update(_);if(!p||p.lastRow<_.firstRow)return this.update(_);if(_.lastRow<p.firstRow)return this.update(_);if(p.firstRow<_.firstRow)for(var O=this.session.getFoldedRowCount(p.firstRow,_.firstRow-1);O>0;O--)this.$lines.shift();if(p.lastRow>_.lastRow)for(var O=this.session.getFoldedRowCount(_.lastRow+1,p.lastRow);O>0;O--)this.$lines.pop();_.firstRow<p.firstRow&&this.$lines.unshift(this.$renderLinesFragment(_,_.firstRow,p.firstRow-1)),_.lastRow>p.lastRow&&this.$lines.push(this.$renderLinesFragment(_,p.lastRow+1,_.lastRow)),this.$highlightIndentGuide()},d.prototype.$renderLinesFragment=function(_,p,S){for(var k=[],O=p,F=this.session.getNextFoldLine(O),D=F?F.start.row:Infinity;O>D&&(O=F.end.row+1,F=this.session.getNextFoldLine(O,F),D=F?F.start.row:Infinity),!(O>S);){var Z=this.$lines.createCell(O,_,this.session),W=Z.element;this.dom.removeChildren(W),M.setStyle(W.style,"height",this.$lines.computeLineHeight(O,_,this.session)+"px"),M.setStyle(W.style,"top",this.$lines.computeLineTop(O,_,this.session)+"px"),this.$renderLine(W,O,O==D?F:!1),this.$useLineGroups()?W.className="ace_line_group":W.className="ace_line",k.push(Z),O++}return k},d.prototype.update=function(_){this.$lines.moveContainer(_),this.config=_;for(var p=_.firstRow,S=_.lastRow,k=this.$lines;k.getLength();)k.pop();k.push(this.$renderLinesFragment(_,p,S))},d.prototype.$renderToken=function(_,p,S,k){for(var O=this,F=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,D=this.dom.createFragment(this.element),Z,W=0;Z=F.exec(k);){var U=Z[1],L=Z[2],V=Z[3],$=Z[4],G=Z[5];if(!(!O.showSpaces&&L)){var z=W!=Z.index?k.slice(W,Z.index):"";if(W=Z.index+Z[0].length,z&&D.appendChild(this.dom.createTextNode(z,this.element)),U){var K=O.session.getScreenTabSize(p+Z.index);D.appendChild(O.$tabStrings[K].cloneNode(!0)),p+=K-1}else if(L)if(O.showSpaces){var re=this.dom.createElement("span");re.className="ace_invisible ace_invisible_space",re.textContent=w.stringRepeat(O.SPACE_CHAR,L.length),D.appendChild(re)}else D.appendChild(this.com.createTextNode(L,this.element));else if(V){var re=this.dom.createElement("span");re.className="ace_invisible ace_invisible_space ace_invalid",re.textContent=w.stringRepeat(O.SPACE_CHAR,V.length),D.appendChild(re)}else if($){p+=1;var re=this.dom.createElement("span");re.style.width=O.config.characterWidth*2+"px",re.className=O.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",re.textContent=O.showSpaces?O.SPACE_CHAR:$,D.appendChild(re)}else if(G){p+=1;var re=this.dom.createElement("span");re.style.width=O.config.characterWidth*2+"px",re.className="ace_cjk",re.textContent=G,D.appendChild(re)}}}if(D.appendChild(this.dom.createTextNode(W?k.slice(W):k,this.element)),this.$textToken[S.type])_.appendChild(D);else{var ne="ace_"+S.type.replace(/\./g," ace_"),re=this.dom.createElement("span");S.type=="fold"&&(re.style.width=S.value.length*this.config.characterWidth+"px",re.setAttribute("title",v("Unfold code"))),re.className=ne,re.appendChild(D),_.appendChild(re)}return p+k.length},d.prototype.renderIndentGuide=function(_,p,S){var k=p.search(this.$indentGuideRe);if(k<=0||k>=S)return p;if(p[0]==" "){k-=k%this.tabSize;for(var O=k/this.tabSize,F=0;F<O;F++)_.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),p.substr(k)}else if(p[0]==" "){for(var F=0;F<k;F++)_.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),p.substr(k)}return this.$highlightIndentGuide(),p},d.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var _=this.session.doc.$lines;if(!!_){var p=this.session.selection.getCursor(),S=/^\s*/.exec(this.session.doc.getLine(p.row))[0].length,k=Math.floor(S/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:k,start:p.row};var O=this.session.$bracketHighlight;if(O){for(var F=this.session.$bracketHighlight.ranges,D=0;D<F.length;D++)if(p.row!==F[D].start.row){this.$highlightIndentGuideMarker.end=F[D].start.row,p.row>F[D].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&_[p.row]!==""&&p.column===_[p.row].length){this.$highlightIndentGuideMarker.dir=1;for(var D=p.row+1;D<_.length;D++){var Z=_[D],W=/^\s*/.exec(Z)[0].length;if(Z!==""&&(this.$highlightIndentGuideMarker.end=D,W<=S))break}}this.$renderHighlightIndentGuide()}}},d.prototype.$clearActiveIndentGuide=function(){for(var _=this.$lines.cells,p=0;p<_.length;p++){var S=_[p],k=S.element.childNodes;if(k.length>0){for(var O=0;O<k.length;O++)if(k[O].classList&&k[O].classList.contains("ace_indent-guide-active")){k[O].classList.remove("ace_indent-guide-active");break}}}},d.prototype.$setIndentGuideActive=function(_,p){var S=this.session.doc.getLine(_.row);if(S!==""){var k=_.element.childNodes;if(k){var O=k[p-1];O&&O.classList&&O.classList.contains("ace_indent-guide")&&O.classList.add("ace_indent-guide-active")}}},d.prototype.$renderHighlightIndentGuide=function(){if(!!this.$lines){var _=this.$lines.cells;this.$clearActiveIndentGuide();var p=this.$highlightIndentGuideMarker.indentLevel;if(p!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var S=0;S<_.length;S++){var k=_[S];if(this.$highlightIndentGuideMarker.end&&k.row>=this.$highlightIndentGuideMarker.start+1){if(k.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(k,p)}}else for(var S=_.length-1;S>=0;S--){var k=_[S];if(this.$highlightIndentGuideMarker.end&&k.row<this.$highlightIndentGuideMarker.start){if(k.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(k,p)}}}},d.prototype.$createLineElement=function(_){var p=this.dom.createElement("div");return p.className="ace_line",p.style.height=this.config.lineHeight+"px",p},d.prototype.$renderWrappedLine=function(_,p,S){var k=0,O=0,F=S[0],D=0,Z=this.$createLineElement();_.appendChild(Z);for(var W=0;W<p.length;W++){var U=p[W],L=U.value;if(W==0&&this.displayIndentGuides){if(k=L.length,L=this.renderIndentGuide(Z,L,F),!L)continue;k-=L.length}if(k+L.length<F)D=this.$renderToken(Z,D,U,L),k+=L.length;else{for(;k+L.length>=F;)D=this.$renderToken(Z,D,U,L.substring(0,F-k)),L=L.substring(F-k),k=F,Z=this.$createLineElement(),_.appendChild(Z),Z.appendChild(this.dom.createTextNode(w.stringRepeat("\xA0",S.indent),this.element)),O++,D=0,F=S[O]||Number.MAX_VALUE;L.length!=0&&(k+=L.length,D=this.$renderToken(Z,D,U,L))}}S[S.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(Z,D,null,"",!0)},d.prototype.$renderSimpleLine=function(_,p){for(var S=0,k=0;k<p.length;k++){var O=p[k],F=O.value;if(!(k==0&&this.displayIndentGuides&&(F=this.renderIndentGuide(_,F),!F))){if(S+F.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(_,S,O,F);S=this.$renderToken(_,S,O,F)}}},d.prototype.$renderOverflowMessage=function(_,p,S,k,O){S&&this.$renderToken(_,p,S,k.slice(0,this.MAX_LINE_LENGTH-p));var F=this.dom.createElement("span");F.className="ace_inline_button ace_keyword ace_toggle_wrap",F.textContent=O?"<hide>":"<click to see more...>",_.appendChild(F)},d.prototype.$renderLine=function(_,p,S){if(!S&&S!=!1&&(S=this.session.getFoldLine(p)),S)var k=this.$getFoldLineTokens(p,S);else var k=this.session.getTokens(p);var O=_;if(k.length){var F=this.session.getRowSplitData(p);if(F&&F.length){this.$renderWrappedLine(_,k,F);var O=_.lastChild}else{var O=_;this.$useLineGroups()&&(O=this.$createLineElement(),_.appendChild(O)),this.$renderSimpleLine(O,k)}}else this.$useLineGroups()&&(O=this.$createLineElement(),_.appendChild(O));if(this.showEOL&&O){S&&(p=S.end.row);var D=this.dom.createElement("span");D.className="ace_invisible ace_invisible_eol",D.textContent=p==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,O.appendChild(D)}},d.prototype.$getFoldLineTokens=function(_,p){var S=this.session,k=[];function O(D,Z,W){for(var U=0,L=0;L+D[U].value.length<Z;)if(L+=D[U].value.length,U++,U==D.length)return;if(L!=Z){var V=D[U].value.substring(Z-L);V.length>W-Z&&(V=V.substring(0,W-Z)),k.push({type:D[U].type,value:V}),L=Z+V.length,U+=1}for(;L<W&&U<D.length;){var V=D[U].value;V.length+L>W?k.push({type:D[U].type,value:V.substring(0,W-L)}):k.push(D[U]),L+=V.length,U+=1}}var F=S.getTokens(_);return p.walk(function(D,Z,W,U,L){D!=null?k.push({type:"fold",value:D}):(L&&(F=S.getTokens(Z)),F.length&&O(F,U,W))},p.end.row,this.session.getLine(p.end.row).length),k},d.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},d}();h.prototype.$textToken={text:!0,rparen:!0,lparen:!0},h.prototype.EOF_CHAR="\xB6",h.prototype.EOL_CHAR_LF="\xAC",h.prototype.EOL_CHAR_CRLF="\xA4",h.prototype.EOL_CHAR=h.prototype.EOL_CHAR_LF,h.prototype.TAB_CHAR="\u2014",h.prototype.SPACE_CHAR="\xB7",h.prototype.$padding=0,h.prototype.MAX_LINE_LENGTH=1e4,h.prototype.showInvisibles=!1,h.prototype.showSpaces=!1,h.prototype.showTabs=!1,h.prototype.showEOL=!1,h.prototype.displayIndentGuides=!0,h.prototype.$highlightIndentGuides=!0,h.prototype.$tabStrings=[],h.prototype.destroy={},h.prototype.onChangeTabSize=h.prototype.$computeTabString,y.implement(h.prototype,b),g.Text=h}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(x,g,A){"use strict";var y=x("../lib/dom"),M=function(){function w(m){this.element=y.createElement("div"),this.element.className="ace_layer ace_cursor-layer",m.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),y.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return w.prototype.$updateOpacity=function(m){for(var b=this.cursors,v=b.length;v--;)y.setStyle(b[v].style,"opacity",m?"":"0")},w.prototype.$startCssAnimation=function(){for(var m=this.cursors,b=m.length;b--;)m[b].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&y.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},w.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,y.removeCssClass(this.element,"ace_animate-blinking")},w.prototype.setPadding=function(m){this.$padding=m},w.prototype.setSession=function(m){this.session=m},w.prototype.setBlinking=function(m){m!=this.isBlinking&&(this.isBlinking=m,this.restartTimer())},w.prototype.setBlinkInterval=function(m){m!=this.blinkInterval&&(this.blinkInterval=m,this.restartTimer())},w.prototype.setSmoothBlinking=function(m){m!=this.smoothBlinking&&(this.smoothBlinking=m,y.setCssClass(this.element,"ace_smooth-blinking",m),this.$updateCursors(!0),this.restartTimer())},w.prototype.addCursor=function(){var m=y.createElement("div");return m.className="ace_cursor",this.element.appendChild(m),this.cursors.push(m),m},w.prototype.removeCursor=function(){if(this.cursors.length>1){var m=this.cursors.pop();return m.parentNode.removeChild(m),m}},w.prototype.hideCursor=function(){this.isVisible=!1,y.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.showCursor=function(){this.isVisible=!0,y.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.restartTimer=function(){var m=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,y.removeCssClass(this.element,"ace_smooth-blinking")),m(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&y.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),y.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var b=function(){this.timeoutId=setTimeout(function(){m(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){m(!0),b()},this.blinkInterval),b()}},w.prototype.getPixelPosition=function(m,b){if(!this.config||!this.session)return{left:0,top:0};m||(m=this.session.selection.getCursor());var v=this.session.documentToScreenPosition(m),h=this.$padding+(this.session.$bidiHandler.isBidiRow(v.row,m.row)?this.session.$bidiHandler.getPosLeft(v.column):v.column*this.config.characterWidth),d=(v.row-(b?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:h,top:d}},w.prototype.isCursorInView=function(m,b){return m.top>=0&&m.top<b.maxHeight},w.prototype.update=function(m){this.config=m;var b=this.session.$selectionMarkers,v=0,h=0;(b===void 0||b.length===0)&&(b=[{cursor:null}]);for(var v=0,d=b.length;v<d;v++){var _=this.getPixelPosition(b[v].cursor,!0);if(!((_.top>m.height+m.offset||_.top<0)&&v>1)){var p=this.cursors[h++]||this.addCursor(),S=p.style;this.drawCursor?this.drawCursor(p,_,m,b[v],this.session):this.isCursorInView(_,m)?(y.setStyle(S,"display","block"),y.translate(p,_.left,_.top),y.setStyle(S,"width",Math.round(m.characterWidth)+"px"),y.setStyle(S,"height",m.lineHeight+"px")):y.setStyle(S,"display","none")}}for(;this.cursors.length>h;)this.removeCursor();var k=this.session.getOverwrite();this.$setOverwrite(k),this.$pixelPos=_,this.restartTimer()},w.prototype.$setOverwrite=function(m){m!=this.overwrite&&(this.overwrite=m,m?y.addCssClass(this.element,"ace_overwrite-cursors"):y.removeCssClass(this.element,"ace_overwrite-cursors"))},w.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},w}();M.prototype.$padding=0,M.prototype.drawCursor=null,g.Cursor=M}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(x,g,A){"use strict";var y=this&&this.__extends||function(){var p=function(k,O){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,D){F.__proto__=D}||function(F,D){for(var Z in D)Object.prototype.hasOwnProperty.call(D,Z)&&(F[Z]=D[Z])},p(k,O)};return function(S,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");p(S,k);function O(){this.constructor=S}S.prototype=k===null?Object.create(k):(O.prototype=k.prototype,new O)}}(),M=x("./lib/oop"),w=x("./lib/dom"),m=x("./lib/event"),b=x("./lib/event_emitter").EventEmitter,v=32768,h=function(){function p(S,k){this.element=w.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+k,this.inner=w.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xA0",this.element.appendChild(this.inner),S.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,m.addListener(this.element,"scroll",this.onScroll.bind(this)),m.addListener(this.element,"mousedown",m.preventDefault)}return p.prototype.setVisible=function(S){this.element.style.display=S?"":"none",this.isVisible=S,this.coeff=1},p}();M.implement(h.prototype,b);var d=function(p){y(S,p);function S(k,O){var F=p.call(this,k,"-v")||this;return F.scrollTop=0,F.scrollHeight=0,O.$scrollbarWidth=F.width=w.scrollbarWidth(k.ownerDocument),F.inner.style.width=F.element.style.width=(F.width||15)+5+"px",F.$minWidth=0,F}return S.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var k=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-k)/(this.coeff-k)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},S.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},S.prototype.setHeight=function(k){this.element.style.height=k+"px"},S.prototype.setScrollHeight=function(k){this.scrollHeight=k,k>v?(this.coeff=v/k,k=v):this.coeff!=1&&(this.coeff=1),this.inner.style.height=k+"px"},S.prototype.setScrollTop=function(k){this.scrollTop!=k&&(this.skipEvent=!0,this.scrollTop=k,this.element.scrollTop=k*this.coeff)},S}(h);d.prototype.setInnerHeight=d.prototype.setScrollHeight;var _=function(p){y(S,p);function S(k,O){var F=p.call(this,k,"-h")||this;return F.scrollLeft=0,F.height=O.$scrollbarWidth,F.inner.style.height=F.element.style.height=(F.height||15)+5+"px",F}return S.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},S.prototype.getHeight=function(){return this.isVisible?this.height:0},S.prototype.setWidth=function(k){this.element.style.width=k+"px"},S.prototype.setInnerWidth=function(k){this.inner.style.width=k+"px"},S.prototype.setScrollWidth=function(k){this.inner.style.width=k+"px"},S.prototype.setScrollLeft=function(k){this.scrollLeft!=k&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=k)},S}(h);g.ScrollBar=d,g.ScrollBarV=d,g.ScrollBarH=_,g.VScrollBar=d,g.HScrollBar=_}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(x,g,A){"use strict";var y=this&&this.__extends||function(){var _=function(S,k){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,F){O.__proto__=F}||function(O,F){for(var D in F)Object.prototype.hasOwnProperty.call(F,D)&&(O[D]=F[D])},_(S,k)};return function(p,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");_(p,S);function k(){this.constructor=p}p.prototype=S===null?Object.create(S):(k.prototype=S.prototype,new k)}}(),M=x("./lib/oop"),w=x("./lib/dom"),m=x("./lib/event"),b=x("./lib/event_emitter").EventEmitter;w.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
||
position: absolute;
|
||
background: rgba(128, 128, 128, 0.6);
|
||
-moz-box-sizing: border-box;
|
||
box-sizing: border-box;
|
||
border: 1px solid #bbb;
|
||
border-radius: 2px;
|
||
z-index: 8;
|
||
}
|
||
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
||
position: absolute;
|
||
z-index: 6;
|
||
background: none;
|
||
overflow: hidden!important;
|
||
}
|
||
.ace_editor>.ace_sb-v {
|
||
z-index: 6;
|
||
right: 0;
|
||
top: 0;
|
||
width: 12px;
|
||
}
|
||
.ace_editor>.ace_sb-v div {
|
||
z-index: 8;
|
||
right: 0;
|
||
width: 100%;
|
||
}
|
||
.ace_editor>.ace_sb-h {
|
||
bottom: 0;
|
||
left: 0;
|
||
height: 12px;
|
||
}
|
||
.ace_editor>.ace_sb-h div {
|
||
bottom: 0;
|
||
height: 100%;
|
||
}
|
||
.ace_editor>.ace_sb_grabbed {
|
||
z-index: 8;
|
||
background: #000;
|
||
}`,"ace_scrollbar.css",!1);var v=function(){function _(p,S){this.element=w.createElement("div"),this.element.className="ace_sb"+S,this.inner=w.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,p.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,m.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return _.prototype.setVisible=function(p){this.element.style.display=p?"":"none",this.isVisible=p,this.coeff=1},_}();M.implement(v.prototype,b);var h=function(_){y(p,_);function p(S,k){var O=_.call(this,S,"-v")||this;return O.scrollTop=0,O.scrollHeight=0,O.parent=S,O.width=O.VScrollWidth,O.renderer=k,O.inner.style.width=O.element.style.width=(O.width||15)+"px",O.$minWidth=0,O}return p.prototype.onMouseDown=function(S,k){if(S==="mousedown"&&!(m.getButton(k)!==0||k.detail===2)){if(k.target===this.inner){var O=this,F=k.clientY,D=function(z){F=z.clientY},Z=function(){clearInterval(V)},W=k.clientY,U=this.thumbTop,L=function(){if(F!==void 0){var z=O.scrollTopFromThumbTop(U+F-W);z!==O.scrollTop&&O._emit("scroll",{data:z})}};m.capture(this.inner,D,Z);var V=setInterval(L,20);return m.preventDefault(k)}var $=k.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop($)}),m.preventDefault(k)}},p.prototype.getHeight=function(){return this.height},p.prototype.scrollTopFromThumbTop=function(S){var k=S*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return k=k>>0,k<0?k=0:k>this.pageHeight-this.viewHeight&&(k=this.pageHeight-this.viewHeight),k},p.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},p.prototype.setHeight=function(S){this.height=Math.max(0,S),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},p.prototype.setScrollHeight=function(S,k){this.pageHeight===S&&!k||(this.pageHeight=S,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},p.prototype.setScrollTop=function(S){this.scrollTop=S,S<0&&(S=0),this.thumbTop=S*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},p}(v);h.prototype.setInnerHeight=h.prototype.setScrollHeight;var d=function(_){y(p,_);function p(S,k){var O=_.call(this,S,"-h")||this;return O.scrollLeft=0,O.scrollWidth=0,O.height=O.HScrollHeight,O.inner.style.height=O.element.style.height=(O.height||12)+"px",O.renderer=k,O}return p.prototype.onMouseDown=function(S,k){if(S==="mousedown"&&!(m.getButton(k)!==0||k.detail===2)){if(k.target===this.inner){var O=this,F=k.clientX,D=function(z){F=z.clientX},Z=function(){clearInterval(V)},W=k.clientX,U=this.thumbLeft,L=function(){if(F!==void 0){var z=O.scrollLeftFromThumbLeft(U+F-W);z!==O.scrollLeft&&O._emit("scroll",{data:z})}};m.capture(this.inner,D,Z);var V=setInterval(L,20);return m.preventDefault(k)}var $=k.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft($)}),m.preventDefault(k)}},p.prototype.getHeight=function(){return this.isVisible?this.height:0},p.prototype.scrollLeftFromThumbLeft=function(S){var k=S*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return k=k>>0,k<0?k=0:k>this.pageWidth-this.viewWidth&&(k=this.pageWidth-this.viewWidth),k},p.prototype.setWidth=function(S){this.width=Math.max(0,S),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},p.prototype.setScrollWidth=function(S,k){this.pageWidth===S&&!k||(this.pageWidth=S,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},p.prototype.setScrollLeft=function(S){this.scrollLeft=S,S<0&&(S=0),this.thumbLeft=S*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},p}(v);d.prototype.setInnerWidth=d.prototype.setScrollWidth,g.ScrollBar=h,g.ScrollBarV=h,g.ScrollBarH=d,g.VScrollBar=h,g.HScrollBar=d}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(x,g,A){"use strict";var y=x("./lib/event"),M=function(){function w(m,b){this.onRender=m,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=b||window;var v=this;this._flush=function(h){v.pending=!1;var d=v.changes;if(d&&(y.blockIdle(100),v.changes=0,v.onRender(d)),v.changes){if(v.$recursionLimit--<0)return;v.schedule()}else v.$recursionLimit=2}}return w.prototype.schedule=function(m){this.changes=this.changes|m,this.changes&&!this.pending&&(y.nextFrame(this._flush),this.pending=!0)},w.prototype.clear=function(m){var b=this.changes;return this.changes=0,b},w}();g.RenderLoop=M}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(x,g,A){var y=x("../lib/oop"),M=x("../lib/dom"),w=x("../lib/lang"),m=x("../lib/event"),b=x("../lib/useragent"),v=x("../lib/event_emitter").EventEmitter,h=512,d=typeof ResizeObserver=="function",_=200,p=function(){function S(k){this.el=M.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=M.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=M.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),k.appendChild(this.el),this.$measureNode.textContent=w.stringRepeat("X",h),this.$characterSize={width:0,height:0},d?this.$addObserver():this.checkForSizeChanges()}return S.prototype.$setMeasureNodeStyles=function(k,O){k.width=k.height="auto",k.left=k.top="0px",k.visibility="hidden",k.position="absolute",k.whiteSpace="pre",b.isIE<8?k["font-family"]="inherit":k.font="inherit",k.overflow=O?"hidden":"visible"},S.prototype.checkForSizeChanges=function(k){if(k===void 0&&(k=this.$measureSizes()),k&&(this.$characterSize.width!==k.width||this.$characterSize.height!==k.height)){this.$measureNode.style.fontWeight="bold";var O=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=k,this.charSizes=Object.create(null),this.allowBoldFonts=O&&O.width===k.width&&O.height===k.height,this._emit("changeCharacterSize",{data:k})}},S.prototype.$addObserver=function(){var k=this;this.$observer=new window.ResizeObserver(function(O){k.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},S.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var k=this;return this.$pollSizeChangesTimer=m.onIdle(function O(){k.checkForSizeChanges(),m.onIdle(O,500)},500)},S.prototype.setPolling=function(k){k?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},S.prototype.$measureSizes=function(k){var O={height:(k||this.$measureNode).clientHeight,width:(k||this.$measureNode).clientWidth/h};return O.width===0||O.height===0?null:O},S.prototype.$measureCharWidth=function(k){this.$main.textContent=w.stringRepeat(k,h);var O=this.$main.getBoundingClientRect();return O.width/h},S.prototype.getCharacterWidth=function(k){var O=this.charSizes[k];return O===void 0&&(O=this.charSizes[k]=this.$measureCharWidth(k)/this.$characterSize.width),O},S.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},S.prototype.$getZoom=function(k){return!k||!k.parentElement?1:(window.getComputedStyle(k).zoom||1)*this.$getZoom(k.parentElement)},S.prototype.$initTransformMeasureNodes=function(){var k=function(F,D){return["div",{style:"position: absolute;top:"+F+"px;left:"+D+"px;"}]};this.els=M.buildDom([k(0,0),k(_,0),k(0,_),k(_,_)],this.el)},S.prototype.transformCoordinates=function(k,O){if(k){var F=this.$getZoom(this.el);k=U(1/F,k)}function D(ve,fe,we){var me=ve[1]*fe[0]-ve[0]*fe[1];return[(-fe[1]*we[0]+fe[0]*we[1])/me,(+ve[1]*we[0]-ve[0]*we[1])/me]}function Z(ve,fe){return[ve[0]-fe[0],ve[1]-fe[1]]}function W(ve,fe){return[ve[0]+fe[0],ve[1]+fe[1]]}function U(ve,fe){return[ve*fe[0],ve*fe[1]]}this.els||this.$initTransformMeasureNodes();function L(ve){var fe=ve.getBoundingClientRect();return[fe.left,fe.top]}var V=L(this.els[0]),$=L(this.els[1]),G=L(this.els[2]),z=L(this.els[3]),K=D(Z(z,$),Z(z,G),Z(W($,G),W(z,V))),re=U(1+K[0],Z($,V)),ne=U(1+K[1],Z(G,V));if(O){var Q=O,ue=K[0]*Q[0]/_+K[1]*Q[1]/_+1,he=W(U(Q[0],re),U(Q[1],ne));return W(U(1/ue/_,he),V)}var Ee=Z(k,V),ce=D(Z(re,U(K[0],Ee)),Z(ne,U(K[1],Ee)),Ee);return U(_,ce)},S}();p.prototype.$characterSize={width:0,height:0},y.implement(p.prototype,v),g.FontMetrics=p}),ace.define("ace/css/editor-css",["require","exports","module"],function(x,g,A){A.exports=`
|
||
.ace_br1 {border-top-left-radius : 3px;}
|
||
.ace_br2 {border-top-right-radius : 3px;}
|
||
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
||
.ace_br4 {border-bottom-right-radius: 3px;}
|
||
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
||
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
||
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
||
.ace_br8 {border-bottom-left-radius : 3px;}
|
||
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
||
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
||
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
||
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
||
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
||
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
||
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
||
|
||
|
||
.ace_editor {
|
||
position: relative;
|
||
overflow: hidden;
|
||
padding: 0;
|
||
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
||
direction: ltr;
|
||
text-align: left;
|
||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||
}
|
||
|
||
.ace_scroller {
|
||
position: absolute;
|
||
overflow: hidden;
|
||
top: 0;
|
||
bottom: 0;
|
||
background-color: inherit;
|
||
-ms-user-select: none;
|
||
-moz-user-select: none;
|
||
-webkit-user-select: none;
|
||
user-select: none;
|
||
cursor: text;
|
||
}
|
||
|
||
.ace_content {
|
||
position: absolute;
|
||
box-sizing: border-box;
|
||
min-width: 100%;
|
||
contain: style size layout;
|
||
font-variant-ligatures: no-common-ligatures;
|
||
}
|
||
|
||
.ace_keyboard-focus:focus {
|
||
box-shadow: inset 0 0 0 2px #5E9ED6;
|
||
outline: none;
|
||
}
|
||
|
||
.ace_dragging .ace_scroller:before{
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
content: '';
|
||
background: rgba(250, 250, 250, 0.01);
|
||
z-index: 1000;
|
||
}
|
||
.ace_dragging.ace_dark .ace_scroller:before{
|
||
background: rgba(0, 0, 0, 0.01);
|
||
}
|
||
|
||
.ace_gutter {
|
||
position: absolute;
|
||
overflow : hidden;
|
||
width: auto;
|
||
top: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
cursor: default;
|
||
z-index: 4;
|
||
-ms-user-select: none;
|
||
-moz-user-select: none;
|
||
-webkit-user-select: none;
|
||
user-select: none;
|
||
contain: style size layout;
|
||
}
|
||
|
||
.ace_gutter-active-line {
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
}
|
||
|
||
.ace_scroller.ace_scroll-left:after {
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
padding-left: 19px;
|
||
padding-right: 6px;
|
||
background-repeat: no-repeat;
|
||
}
|
||
|
||
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
||
margin-left: -14px;
|
||
float: left;
|
||
}
|
||
|
||
.ace_gutter-cell .ace_gutter_annotation {
|
||
margin-left: -19px;
|
||
float: left;
|
||
}
|
||
|
||
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
|
||
background-repeat: no-repeat;
|
||
background-position: 2px center;
|
||
}
|
||
|
||
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
|
||
background-repeat: no-repeat;
|
||
background-position: 2px center;
|
||
}
|
||
|
||
.ace_gutter-cell.ace_info, .ace_icon.ace_info {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
||
background-repeat: no-repeat;
|
||
background-position: 2px center;
|
||
}
|
||
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
||
}
|
||
|
||
.ace_icon_svg.ace_error {
|
||
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
||
background-color: crimson;
|
||
}
|
||
.ace_icon_svg.ace_warning {
|
||
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
||
background-color: darkorange;
|
||
}
|
||
.ace_icon_svg.ace_info {
|
||
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
||
background-color: royalblue;
|
||
}
|
||
|
||
.ace_icon_svg.ace_error_fold {
|
||
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
||
background-color: crimson;
|
||
}
|
||
.ace_icon_svg.ace_warning_fold {
|
||
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
||
background-color: darkorange;
|
||
}
|
||
|
||
.ace_scrollbar {
|
||
contain: strict;
|
||
position: absolute;
|
||
right: 0;
|
||
bottom: 0;
|
||
z-index: 6;
|
||
}
|
||
|
||
.ace_scrollbar-inner {
|
||
position: absolute;
|
||
cursor: text;
|
||
left: 0;
|
||
top: 0;
|
||
}
|
||
|
||
.ace_scrollbar-v{
|
||
overflow-x: hidden;
|
||
overflow-y: scroll;
|
||
top: 0;
|
||
}
|
||
|
||
.ace_scrollbar-h {
|
||
overflow-x: scroll;
|
||
overflow-y: hidden;
|
||
left: 0;
|
||
}
|
||
|
||
.ace_print-margin {
|
||
position: absolute;
|
||
height: 100%;
|
||
}
|
||
|
||
.ace_text-input {
|
||
position: absolute;
|
||
z-index: 0;
|
||
width: 0.5em;
|
||
height: 1em;
|
||
opacity: 0;
|
||
background: transparent;
|
||
-moz-appearance: none;
|
||
appearance: none;
|
||
border: none;
|
||
resize: none;
|
||
outline: none;
|
||
overflow: hidden;
|
||
font: inherit;
|
||
padding: 0 1px;
|
||
margin: 0 -1px;
|
||
contain: strict;
|
||
-ms-user-select: text;
|
||
-moz-user-select: text;
|
||
-webkit-user-select: text;
|
||
user-select: text;
|
||
/*with \`pre-line\` chrome inserts instead of space*/
|
||
white-space: pre!important;
|
||
}
|
||
.ace_text-input.ace_composition {
|
||
background: transparent;
|
||
color: inherit;
|
||
z-index: 1000;
|
||
opacity: 1;
|
||
}
|
||
.ace_composition_placeholder { color: transparent }
|
||
.ace_composition_marker {
|
||
border-bottom: 1px solid;
|
||
position: absolute;
|
||
border-radius: 0;
|
||
margin-top: 1px;
|
||
}
|
||
|
||
[ace_nocontext=true] {
|
||
transform: none!important;
|
||
filter: none!important;
|
||
clip-path: none!important;
|
||
mask : none!important;
|
||
contain: none!important;
|
||
perspective: none!important;
|
||
mix-blend-mode: initial!important;
|
||
z-index: auto;
|
||
}
|
||
|
||
.ace_layer {
|
||
z-index: 1;
|
||
position: absolute;
|
||
overflow: hidden;
|
||
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
||
word-wrap: normal;
|
||
white-space: pre;
|
||
height: 100%;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
/* setting pointer-events: auto; on node under the mouse, which changes
|
||
during scroll, will break mouse wheel scrolling in Safari */
|
||
pointer-events: none;
|
||
}
|
||
|
||
.ace_gutter-layer {
|
||
position: relative;
|
||
width: auto;
|
||
text-align: right;
|
||
pointer-events: auto;
|
||
height: 1000000px;
|
||
contain: style size layout;
|
||
}
|
||
|
||
.ace_text-layer {
|
||
font: inherit !important;
|
||
position: absolute;
|
||
height: 1000000px;
|
||
width: 1000000px;
|
||
contain: style size layout;
|
||
}
|
||
|
||
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
||
contain: style size layout;
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
}
|
||
|
||
.ace_hidpi .ace_text-layer,
|
||
.ace_hidpi .ace_gutter-layer,
|
||
.ace_hidpi .ace_content,
|
||
.ace_hidpi .ace_gutter {
|
||
contain: strict;
|
||
}
|
||
.ace_hidpi .ace_text-layer > .ace_line,
|
||
.ace_hidpi .ace_text-layer > .ace_line_group {
|
||
contain: strict;
|
||
}
|
||
|
||
.ace_cjk {
|
||
display: inline-block;
|
||
text-align: center;
|
||
}
|
||
|
||
.ace_cursor-layer {
|
||
z-index: 4;
|
||
}
|
||
|
||
.ace_cursor {
|
||
z-index: 4;
|
||
position: absolute;
|
||
box-sizing: border-box;
|
||
border-left: 2px solid;
|
||
/* workaround for smooth cursor repaintng whole screen in chrome */
|
||
transform: translatez(0);
|
||
}
|
||
|
||
.ace_multiselect .ace_cursor {
|
||
border-left-width: 1px;
|
||
}
|
||
|
||
.ace_slim-cursors .ace_cursor {
|
||
border-left-width: 1px;
|
||
}
|
||
|
||
.ace_overwrite-cursors .ace_cursor {
|
||
border-left-width: 0;
|
||
border-bottom: 1px solid;
|
||
}
|
||
|
||
.ace_hidden-cursors .ace_cursor {
|
||
opacity: 0.2;
|
||
}
|
||
|
||
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
||
opacity: 0;
|
||
}
|
||
|
||
.ace_smooth-blinking .ace_cursor {
|
||
transition: opacity 0.18s;
|
||
}
|
||
|
||
.ace_animate-blinking .ace_cursor {
|
||
animation-duration: 1000ms;
|
||
animation-timing-function: step-end;
|
||
animation-name: blink-ace-animate;
|
||
animation-iteration-count: infinite;
|
||
}
|
||
|
||
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
||
animation-duration: 1000ms;
|
||
animation-timing-function: ease-in-out;
|
||
animation-name: blink-ace-animate-smooth;
|
||
}
|
||
|
||
@keyframes blink-ace-animate {
|
||
from, to { opacity: 1; }
|
||
60% { opacity: 0; }
|
||
}
|
||
|
||
@keyframes blink-ace-animate-smooth {
|
||
from, to { opacity: 1; }
|
||
45% { opacity: 1; }
|
||
60% { opacity: 0; }
|
||
85% { opacity: 0; }
|
||
}
|
||
|
||
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
||
position: absolute;
|
||
z-index: 3;
|
||
}
|
||
|
||
.ace_marker-layer .ace_selection {
|
||
position: absolute;
|
||
z-index: 5;
|
||
}
|
||
|
||
.ace_marker-layer .ace_bracket {
|
||
position: absolute;
|
||
z-index: 6;
|
||
}
|
||
|
||
.ace_marker-layer .ace_error_bracket {
|
||
position: absolute;
|
||
border-bottom: 1px solid #DE5555;
|
||
border-radius: 0;
|
||
}
|
||
|
||
.ace_marker-layer .ace_active-line {
|
||
position: absolute;
|
||
z-index: 2;
|
||
}
|
||
|
||
.ace_marker-layer .ace_selected-word {
|
||
position: absolute;
|
||
z-index: 4;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.ace_line .ace_fold {
|
||
box-sizing: border-box;
|
||
|
||
display: inline-block;
|
||
height: 11px;
|
||
margin-top: -2px;
|
||
vertical-align: middle;
|
||
|
||
background-image:
|
||
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
||
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
||
background-repeat: no-repeat, repeat-x;
|
||
background-position: center center, top left;
|
||
color: transparent;
|
||
|
||
border: 1px solid black;
|
||
border-radius: 2px;
|
||
|
||
cursor: pointer;
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.ace_dark .ace_fold {
|
||
}
|
||
|
||
.ace_fold:hover{
|
||
background-image:
|
||
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
||
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
||
}
|
||
|
||
.ace_tooltip {
|
||
background-color: #f5f5f5;
|
||
border: 1px solid gray;
|
||
border-radius: 1px;
|
||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
||
color: black;
|
||
max-width: 100%;
|
||
padding: 3px 4px;
|
||
position: fixed;
|
||
z-index: 999999;
|
||
box-sizing: border-box;
|
||
cursor: default;
|
||
white-space: pre;
|
||
word-wrap: break-word;
|
||
line-height: normal;
|
||
font-style: normal;
|
||
font-weight: normal;
|
||
letter-spacing: normal;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.ace_tooltip.ace_dark {
|
||
background-color: #636363;
|
||
color: #fff;
|
||
}
|
||
|
||
.ace_tooltip:focus {
|
||
outline: 1px solid #5E9ED6;
|
||
}
|
||
|
||
.ace_icon {
|
||
display: inline-block;
|
||
width: 18px;
|
||
vertical-align: top;
|
||
}
|
||
|
||
.ace_icon_svg {
|
||
display: inline-block;
|
||
width: 12px;
|
||
vertical-align: top;
|
||
-webkit-mask-repeat: no-repeat;
|
||
-webkit-mask-size: 12px;
|
||
-webkit-mask-position: center;
|
||
}
|
||
|
||
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
||
padding-right: 13px;
|
||
}
|
||
|
||
.ace_fold-widget {
|
||
box-sizing: border-box;
|
||
|
||
margin: 0 -12px 0 1px;
|
||
display: none;
|
||
width: 11px;
|
||
vertical-align: top;
|
||
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
||
background-repeat: no-repeat;
|
||
background-position: center;
|
||
|
||
border-radius: 3px;
|
||
|
||
border: 1px solid transparent;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.ace_folding-enabled .ace_fold-widget {
|
||
display: inline-block;
|
||
}
|
||
|
||
.ace_fold-widget.ace_end {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
||
}
|
||
|
||
.ace_fold-widget.ace_closed {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
||
}
|
||
|
||
.ace_fold-widget:hover {
|
||
border: 1px solid rgba(0, 0, 0, 0.3);
|
||
background-color: rgba(255, 255, 255, 0.2);
|
||
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
||
}
|
||
|
||
.ace_fold-widget:active {
|
||
border: 1px solid rgba(0, 0, 0, 0.4);
|
||
background-color: rgba(0, 0, 0, 0.05);
|
||
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
||
}
|
||
/**
|
||
* Dark version for fold widgets
|
||
*/
|
||
.ace_dark .ace_fold-widget {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
||
}
|
||
.ace_dark .ace_fold-widget.ace_end {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
||
}
|
||
.ace_dark .ace_fold-widget.ace_closed {
|
||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
||
}
|
||
.ace_dark .ace_fold-widget:hover {
|
||
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
||
background-color: rgba(255, 255, 255, 0.1);
|
||
}
|
||
.ace_dark .ace_fold-widget:active {
|
||
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
||
}
|
||
|
||
.ace_inline_button {
|
||
border: 1px solid lightgray;
|
||
display: inline-block;
|
||
margin: -1px 8px;
|
||
padding: 0 5px;
|
||
pointer-events: auto;
|
||
cursor: pointer;
|
||
}
|
||
.ace_inline_button:hover {
|
||
border-color: gray;
|
||
background: rgba(200,200,200,0.2);
|
||
display: inline-block;
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.ace_fold-widget.ace_invalid {
|
||
background-color: #FFB4B4;
|
||
border-color: #DE5555;
|
||
}
|
||
|
||
.ace_fade-fold-widgets .ace_fold-widget {
|
||
transition: opacity 0.4s ease 0.05s;
|
||
opacity: 0;
|
||
}
|
||
|
||
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
||
transition: opacity 0.05s ease 0.05s;
|
||
opacity:1;
|
||
}
|
||
|
||
.ace_underline {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.ace_bold {
|
||
font-weight: bold;
|
||
}
|
||
|
||
.ace_nobold .ace_bold {
|
||
font-weight: normal;
|
||
}
|
||
|
||
.ace_italic {
|
||
font-style: italic;
|
||
}
|
||
|
||
|
||
.ace_error-marker {
|
||
background-color: rgba(255, 0, 0,0.2);
|
||
position: absolute;
|
||
z-index: 9;
|
||
}
|
||
|
||
.ace_highlight-marker {
|
||
background-color: rgba(255, 255, 0,0.2);
|
||
position: absolute;
|
||
z-index: 8;
|
||
}
|
||
|
||
.ace_mobile-menu {
|
||
position: absolute;
|
||
line-height: 1.5;
|
||
border-radius: 4px;
|
||
-ms-user-select: none;
|
||
-moz-user-select: none;
|
||
-webkit-user-select: none;
|
||
user-select: none;
|
||
background: white;
|
||
box-shadow: 1px 3px 2px grey;
|
||
border: 1px solid #dcdcdc;
|
||
color: black;
|
||
}
|
||
.ace_dark > .ace_mobile-menu {
|
||
background: #333;
|
||
color: #ccc;
|
||
box-shadow: 1px 3px 2px grey;
|
||
border: 1px solid #444;
|
||
|
||
}
|
||
.ace_mobile-button {
|
||
padding: 2px;
|
||
cursor: pointer;
|
||
overflow: hidden;
|
||
}
|
||
.ace_mobile-button:hover {
|
||
background-color: #eee;
|
||
opacity:1;
|
||
}
|
||
.ace_mobile-button:active {
|
||
background-color: #ddd;
|
||
}
|
||
|
||
.ace_placeholder {
|
||
font-family: arial;
|
||
transform: scale(0.9);
|
||
transform-origin: left;
|
||
white-space: pre;
|
||
opacity: 0.7;
|
||
margin: 0 10px;
|
||
}
|
||
|
||
.ace_ghost_text {
|
||
opacity: 0.5;
|
||
font-style: italic;
|
||
white-space: pre;
|
||
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(x,g,A){"use strict";var y=x("../lib/dom"),M=x("../lib/oop"),w=x("../lib/event_emitter").EventEmitter,m=function(){function b(v,h){this.canvas=y.createElement("canvas"),this.renderer=h,this.pixelRatio=1,this.maxHeight=h.layerConfig.maxHeight,this.lineHeight=h.layerConfig.lineHeight,this.canvasHeight=v.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=v.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top=0+"px",this.canvas.style.right=0+"px",this.canvas.style.zIndex=7+"px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},v.element.appendChild(this.canvas)}return b.prototype.$updateDecorators=function(v){var h=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(v){this.maxHeight=v.maxHeight,this.lineHeight=v.lineHeight,this.canvasHeight=v.height;var d=(v.lastRow+1)*this.lineHeight;d<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var _=this.canvas.getContext("2d");function p(z,K){return z.priority<K.priority?-1:z.priority>K.priority?1:0}var S=this.renderer.session.$annotations;if(_.clearRect(0,0,this.canvas.width,this.canvas.height),S){var k={info:1,warning:2,error:3};S.forEach(function(z){z.priority=k[z.type]||null}),S=S.sort(p);for(var O=this.renderer.session.$foldData,F=0;F<S.length;F++){var D=S[F].row,Z=this.compensateFoldRows(D,O),W=Math.round((D-Z)*this.lineHeight*this.heightRatio),U=Math.round((D-Z)*this.lineHeight*this.heightRatio),L=Math.round(((D-Z)*this.lineHeight+this.lineHeight)*this.heightRatio),V=L-U;if(V<this.minDecorationHeight){var $=(U+L)/2|0;$<this.halfMinDecorationHeight?$=this.halfMinDecorationHeight:$+this.halfMinDecorationHeight>this.canvasHeight&&($=this.canvasHeight-this.halfMinDecorationHeight),U=Math.round($-this.halfMinDecorationHeight),L=Math.round($+this.halfMinDecorationHeight)}_.fillStyle=h[S[F].type]||null,_.fillRect(0,W,this.canvasWidth,L-U)}}var G=this.renderer.session.selection.getCursor();if(G){var Z=this.compensateFoldRows(G.row,O),W=Math.round((G.row-Z)*this.lineHeight*this.heightRatio);_.fillStyle="rgba(0, 0, 0, 0.5)",_.fillRect(0,W,this.canvasWidth,2)}},b.prototype.compensateFoldRows=function(v,h){var d=0;if(h&&h.length>0)for(var _=0;_<h.length;_++)v>h[_].start.row&&v<h[_].end.row?d+=v-h[_].start.row:v>=h[_].end.row&&(d+=h[_].end.row-h[_].start.row);return d},b}();M.implement(m.prototype,w),g.Decorator=m}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(x,g,A){"use strict";var y=x("./lib/oop"),M=x("./lib/dom"),w=x("./lib/lang"),m=x("./config"),b=x("./layer/gutter").Gutter,v=x("./layer/marker").Marker,h=x("./layer/text").Text,d=x("./layer/cursor").Cursor,_=x("./scrollbar").HScrollBar,p=x("./scrollbar").VScrollBar,S=x("./scrollbar_custom").HScrollBar,k=x("./scrollbar_custom").VScrollBar,O=x("./renderloop").RenderLoop,F=x("./layer/font_metrics").FontMetrics,D=x("./lib/event_emitter").EventEmitter,Z=x("./css/editor-css"),W=x("./layer/decorators").Decorator,U=x("./lib/useragent");M.importCssString(Z,"ace_editor.css",!1);var L=function(){function V($,G){var z=this;this.container=$||M.createElement("div"),M.addCssClass(this.container,"ace_editor"),M.HI_DPI&&M.addCssClass(this.container,"ace_hidpi"),this.setTheme(G),m.get("useStrictCSP")==null&&m.set("useStrictCSP",!1),this.$gutter=M.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=M.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=M.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new b(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new v(this.content);var K=this.$textLayer=new h(this.content);this.canvas=K.element,this.$markerFront=new v(this.content),this.$cursorLayer=new d(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new p(this.container,this),this.scrollBarH=new _(this.container,this),this.scrollBarV.on("scroll",function(re){z.$scrollAnimation||z.session.setScrollTop(re.data-z.scrollMargin.top)}),this.scrollBarH.on("scroll",function(re){z.$scrollAnimation||z.session.setScrollLeft(re.data-z.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new F(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(re){z.updateCharacterSize(),z.onResize(!0,z.gutterWidth,z.$size.width,z.$size.height),z._signal("changeCharacterSize",re)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!U.isIOS,this.$loop=new O(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),m.resetOptions(this),m._signal("renderer",this)}return V.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),M.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},V.prototype.setSession=function($){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=$,$&&this.scrollMargin.top&&$.getScrollTop()<=0&&$.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession($),this.$markerBack.setSession($),this.$markerFront.setSession($),this.$gutterLayer.setSession($),this.$textLayer.setSession($),!!$&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},V.prototype.updateLines=function($,G,z){if(G===void 0&&(G=Infinity),this.$changedLines?(this.$changedLines.firstRow>$&&(this.$changedLines.firstRow=$),this.$changedLines.lastRow<G&&(this.$changedLines.lastRow=G)):this.$changedLines={firstRow:$,lastRow:G},this.$changedLines.lastRow<this.layerConfig.firstRow)if(z)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},V.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},V.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},V.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},V.prototype.updateFull=function($){$?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},V.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},V.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},V.prototype.onResize=function($,G,z,K){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=$?1:0;var re=this.container;K||(K=re.clientHeight||re.scrollHeight),z||(z=re.clientWidth||re.scrollWidth);var ne=this.$updateCachedSize($,G,z,K);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!z&&!K)return this.resizing=0;$&&(this.$gutterLayer.$padding=null),$?this.$renderChanges(ne|this.$changes,!0):this.$loop.schedule(ne|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},V.prototype.$updateCachedSize=function($,G,z,K){K-=this.$extraHeight||0;var re=0,ne=this.$size,Q={width:ne.width,height:ne.height,scrollerHeight:ne.scrollerHeight,scrollerWidth:ne.scrollerWidth};if(K&&($||ne.height!=K)&&(ne.height=K,re|=this.CHANGE_SIZE,ne.scrollerHeight=ne.height,this.$horizScroll&&(ne.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(ne.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",re=re|this.CHANGE_SCROLL),z&&($||ne.width!=z)){re|=this.CHANGE_SIZE,ne.width=z,G==null&&(G=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=G,M.setStyle(this.scrollBarH.element.style,"left",G+"px"),M.setStyle(this.scroller.style,"left",G+this.margin.left+"px"),ne.scrollerWidth=Math.max(0,z-G-this.scrollBarV.getWidth()-this.margin.h),M.setStyle(this.$gutter.style,"left",this.margin.left+"px");var ue=this.scrollBarV.getWidth()+"px";M.setStyle(this.scrollBarH.element.style,"right",ue),M.setStyle(this.scroller.style,"right",ue),M.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(ne.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||$)&&(re|=this.CHANGE_FULL)}return ne.$dirty=!z||!K,re&&this._signal("resize",Q),re},V.prototype.onGutterResize=function($){var G=this.$showGutter?$:0;G!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,G,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},V.prototype.adjustWrapLimit=function(){var $=this.$size.scrollerWidth-this.$padding*2,G=Math.floor($/this.characterWidth);return this.session.adjustWrapLimit(G,this.$showPrintMargin&&this.$printMarginColumn)},V.prototype.setAnimatedScroll=function($){this.setOption("animatedScroll",$)},V.prototype.getAnimatedScroll=function(){return this.$animatedScroll},V.prototype.setShowInvisibles=function($){this.setOption("showInvisibles",$),this.session.$bidiHandler.setShowInvisibles($)},V.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},V.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},V.prototype.setDisplayIndentGuides=function($){this.setOption("displayIndentGuides",$)},V.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},V.prototype.setHighlightIndentGuides=function($){this.setOption("highlightIndentGuides",$)},V.prototype.setShowPrintMargin=function($){this.setOption("showPrintMargin",$)},V.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},V.prototype.setPrintMarginColumn=function($){this.setOption("printMarginColumn",$)},V.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},V.prototype.getShowGutter=function(){return this.getOption("showGutter")},V.prototype.setShowGutter=function($){return this.setOption("showGutter",$)},V.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},V.prototype.setFadeFoldWidgets=function($){this.setOption("fadeFoldWidgets",$)},V.prototype.setHighlightGutterLine=function($){this.setOption("highlightGutterLine",$)},V.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},V.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var $=M.createElement("div");$.className="ace_layer ace_print-margin-layer",this.$printMarginEl=M.createElement("div"),this.$printMarginEl.className="ace_print-margin",$.appendChild(this.$printMarginEl),this.content.insertBefore($,this.content.firstChild)}var G=this.$printMarginEl.style;G.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",G.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},V.prototype.getContainerElement=function(){return this.container},V.prototype.getMouseEventTarget=function(){return this.scroller},V.prototype.getTextAreaContainer=function(){return this.container},V.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var $=this.textarea.style,G=this.$composition;if(!this.$keepTextAreaAtCursor&&!G){M.translate(this.textarea,-100,0);return}var z=this.$cursorLayer.$pixelPos;if(!!z){G&&G.markerRange&&(z=this.$cursorLayer.getPixelPosition(G.markerRange.start,!0));var K=this.layerConfig,re=z.top,ne=z.left;re-=K.offset;var Q=G&&G.useTextareaForIME||U.isMobile?this.lineHeight:1;if(re<0||re>K.height-Q){M.translate(this.textarea,0,0);return}var ue=1,he=this.$size.height-Q;if(!G)re+=this.lineHeight;else if(G.useTextareaForIME){var Ee=this.textarea.value;ue=this.characterWidth*this.session.$getStringScreenWidth(Ee)[0]}else re+=this.lineHeight+2;ne-=this.scrollLeft,ne>this.$size.scrollerWidth-ue&&(ne=this.$size.scrollerWidth-ue),ne+=this.gutterWidth+this.margin.left,M.setStyle($,"height",Q+"px"),M.setStyle($,"width",ue+"px"),M.translate(this.textarea,Math.min(ne,this.$size.scrollerWidth-ue),Math.min(re,he))}}},V.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},V.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},V.prototype.getLastFullyVisibleRow=function(){var $=this.layerConfig,G=$.lastRow,z=this.session.documentToScreenRow(G,0)*$.lineHeight;return z-this.session.getScrollTop()>$.height-$.lineHeight?G-1:G},V.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},V.prototype.setPadding=function($){this.$padding=$,this.$textLayer.setPadding($),this.$cursorLayer.setPadding($),this.$markerFront.setPadding($),this.$markerBack.setPadding($),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},V.prototype.setScrollMargin=function($,G,z,K){var re=this.scrollMargin;re.top=$|0,re.bottom=G|0,re.right=K|0,re.left=z|0,re.v=re.top+re.bottom,re.h=re.left+re.right,re.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-re.top),this.updateFull()},V.prototype.setMargin=function($,G,z,K){var re=this.margin;re.top=$|0,re.bottom=G|0,re.right=K|0,re.left=z|0,re.v=re.top+re.bottom,re.h=re.left+re.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},V.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},V.prototype.setHScrollBarAlwaysVisible=function($){this.setOption("hScrollBarAlwaysVisible",$)},V.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},V.prototype.setVScrollBarAlwaysVisible=function($){this.setOption("vScrollBarAlwaysVisible",$)},V.prototype.$updateScrollBarV=function(){var $=this.layerConfig.maxHeight,G=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&($-=(G-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>$-G&&($=this.scrollTop+G,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight($+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},V.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},V.prototype.freeze=function(){this.$frozen=!0},V.prototype.unfreeze=function(){this.$frozen=!1},V.prototype.$renderChanges=function($,G){if(this.$changes&&($|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!$&&!G){this.$changes|=$;return}if(this.$size.$dirty)return this.$changes|=$,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",$),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var z=this.layerConfig;if($&this.CHANGE_FULL||$&this.CHANGE_SIZE||$&this.CHANGE_TEXT||$&this.CHANGE_LINES||$&this.CHANGE_SCROLL||$&this.CHANGE_H_SCROLL){if($|=this.$computeLayerConfig()|this.$loop.clear(),z.firstRow!=this.layerConfig.firstRow&&z.firstRowScreen==this.layerConfig.firstRowScreen){var K=this.scrollTop+(z.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;K>0&&(this.scrollTop=K,$=$|this.CHANGE_SCROLL,$|=this.$computeLayerConfig()|this.$loop.clear())}z=this.layerConfig,this.$updateScrollBarV(),$&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),M.translate(this.content,-this.scrollLeft,-z.offset);var re=z.width+2*this.$padding+"px",ne=z.minHeight+"px";M.setStyle(this.content.style,"width",re),M.setStyle(this.content.style,"height",ne)}if($&this.CHANGE_H_SCROLL&&(M.translate(this.content,-this.scrollLeft,-z.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),$&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(z),this.$showGutter&&this.$gutterLayer.update(z),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(z),this.$markerBack.update(z),this.$markerFront.update(z),this.$cursorLayer.update(z),this.$moveTextAreaToCursor(),this._signal("afterRender",$);return}if($&this.CHANGE_SCROLL){this.$changedLines=null,$&this.CHANGE_TEXT||$&this.CHANGE_LINES?this.$textLayer.update(z):this.$textLayer.scrollLines(z),this.$showGutter&&($&this.CHANGE_GUTTER||$&this.CHANGE_LINES?this.$gutterLayer.update(z):this.$gutterLayer.scrollLines(z)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(z),this.$markerBack.update(z),this.$markerFront.update(z),this.$cursorLayer.update(z),this.$moveTextAreaToCursor(),this._signal("afterRender",$);return}$&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(z),this.$showGutter&&this.$gutterLayer.update(z),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(z)):$&this.CHANGE_LINES?((this.$updateLines()||$&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(z),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(z)):$&this.CHANGE_TEXT||$&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(z),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(z)):$&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(z),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(z)),$&this.CHANGE_CURSOR&&(this.$cursorLayer.update(z),this.$moveTextAreaToCursor()),$&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(z),$&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(z),this._signal("afterRender",$)},V.prototype.$autosize=function(){var $=this.session.getScreenLength()*this.lineHeight,G=this.$maxLines*this.lineHeight,z=Math.min(G,Math.max((this.$minLines||1)*this.lineHeight,$))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(z+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&z>this.$maxPixelHeight&&(z=this.$maxPixelHeight);var K=z<=2*this.lineHeight,re=!K&&$>G;if(z!=this.desiredHeight||this.$size.height!=this.desiredHeight||re!=this.$vScroll){re!=this.$vScroll&&(this.$vScroll=re,this.scrollBarV.setVisible(re));var ne=this.container.clientWidth;this.container.style.height=z+"px",this.$updateCachedSize(!0,this.$gutterWidth,ne,z),this.desiredHeight=z,this._signal("autosize")}},V.prototype.$computeLayerConfig=function(){var $=this.session,G=this.$size,z=G.height<=2*this.lineHeight,K=this.session.getScreenLength(),re=K*this.lineHeight,ne=this.$getLongestLine(),Q=!z&&(this.$hScrollBarAlwaysVisible||G.scrollerWidth-ne-2*this.$padding<0),ue=this.$horizScroll!==Q;ue&&(this.$horizScroll=Q,this.scrollBarH.setVisible(Q));var he=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var Ee=G.scrollerHeight+this.lineHeight,ce=!this.$maxLines&&this.$scrollPastEnd?(G.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;re+=ce;var ve=this.scrollMargin;this.session.setScrollTop(Math.max(-ve.top,Math.min(this.scrollTop,re-G.scrollerHeight+ve.bottom))),this.session.setScrollLeft(Math.max(-ve.left,Math.min(this.scrollLeft,ne+2*this.$padding-G.scrollerWidth+ve.right)));var fe=!z&&(this.$vScrollBarAlwaysVisible||G.scrollerHeight-re+ce<0||this.scrollTop>ve.top),we=he!==fe;we&&(this.$vScroll=fe,this.scrollBarV.setVisible(fe));var me=this.scrollTop%this.lineHeight,Pe=Math.ceil(Ee/this.lineHeight)-1,pe=Math.max(0,Math.round((this.scrollTop-me)/this.lineHeight)),Ie=pe+Pe,Je,ke,De=this.lineHeight;pe=$.screenToDocumentRow(pe,0);var Fe=$.getFoldLine(pe);Fe&&(pe=Fe.start.row),Je=$.documentToScreenRow(pe,0),ke=$.getRowLength(pe)*De,Ie=Math.min($.screenToDocumentRow(Ie,0),$.getLength()-1),Ee=G.scrollerHeight+$.getRowLength(Ie)*De+ke,me=this.scrollTop-Je*De;var Qe=0;return(this.layerConfig.width!=ne||ue)&&(Qe=this.CHANGE_H_SCROLL),(ue||we)&&(Qe|=this.$updateCachedSize(!0,this.gutterWidth,G.width,G.height),this._signal("scrollbarVisibilityChanged"),we&&(ne=this.$getLongestLine())),this.layerConfig={width:ne,padding:this.$padding,firstRow:pe,firstRowScreen:Je,lastRow:Ie,lineHeight:De,characterWidth:this.characterWidth,minHeight:Ee,maxHeight:re,offset:me,gutterOffset:De?Math.max(0,Math.ceil((me+G.height-G.scrollerHeight)/De)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(ne-this.$padding),Qe},V.prototype.$updateLines=function(){if(!!this.$changedLines){var $=this.$changedLines.firstRow,G=this.$changedLines.lastRow;this.$changedLines=null;var z=this.layerConfig;if(!($>z.lastRow+1)&&!(G<z.firstRow)){if(G===Infinity){this.$showGutter&&this.$gutterLayer.update(z),this.$textLayer.update(z);return}return this.$textLayer.updateLines(z,$,G),!0}}},V.prototype.$getLongestLine=function(){var $=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&($+=1),this.$textLayer&&$>this.$textLayer.MAX_LINE_LENGTH&&($=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round($*this.characterWidth))},V.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},V.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},V.prototype.addGutterDecoration=function($,G){this.$gutterLayer.addGutterDecoration($,G)},V.prototype.removeGutterDecoration=function($,G){this.$gutterLayer.removeGutterDecoration($,G)},V.prototype.updateBreakpoints=function($){this.$loop.schedule(this.CHANGE_GUTTER)},V.prototype.setAnnotations=function($){this.$gutterLayer.setAnnotations($),this.$loop.schedule(this.CHANGE_GUTTER)},V.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},V.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},V.prototype.showCursor=function(){this.$cursorLayer.showCursor()},V.prototype.scrollSelectionIntoView=function($,G,z){this.scrollCursorIntoView($,z),this.scrollCursorIntoView(G,z)},V.prototype.scrollCursorIntoView=function($,G,z){if(this.$size.scrollerHeight!==0){var K=this.$cursorLayer.getPixelPosition($),re=K.left,ne=K.top,Q=z&&z.top||0,ue=z&&z.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var he=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;he+Q>ne?(G&&he+Q>ne+this.lineHeight&&(ne-=G*this.$size.scrollerHeight),ne===0&&(ne=-this.scrollMargin.top),this.session.setScrollTop(ne)):he+this.$size.scrollerHeight-ue<ne+this.lineHeight&&(G&&he+this.$size.scrollerHeight-ue<ne-this.lineHeight&&(ne+=G*this.$size.scrollerHeight),this.session.setScrollTop(ne+this.lineHeight+ue-this.$size.scrollerHeight));var Ee=this.scrollLeft,ce=2*this.layerConfig.characterWidth;re-ce<Ee?(re-=ce,re<this.$padding+ce&&(re=-this.scrollMargin.left),this.session.setScrollLeft(re)):(re+=ce,Ee+this.$size.scrollerWidth<re+this.characterWidth?this.session.setScrollLeft(Math.round(re+this.characterWidth-this.$size.scrollerWidth)):Ee<=this.$padding&&re-Ee<this.characterWidth&&this.session.setScrollLeft(0))}},V.prototype.getScrollTop=function(){return this.session.getScrollTop()},V.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},V.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},V.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},V.prototype.scrollToRow=function($){this.session.setScrollTop($*this.lineHeight)},V.prototype.alignCursor=function($,G){typeof $=="number"&&($={row:$,column:0});var z=this.$cursorLayer.getPixelPosition($),K=this.$size.scrollerHeight-this.lineHeight,re=z.top-K*(G||0);return this.session.setScrollTop(re),re},V.prototype.$calcSteps=function($,G){var z=0,K=this.STEPS,re=[],ne=function(ue,he,Ee){return Ee*(Math.pow(ue-1,3)+1)+he};for(z=0;z<K;++z)re.push(ne(z/this.STEPS,$,G-$));return re},V.prototype.scrollToLine=function($,G,z,K){var re=this.$cursorLayer.getPixelPosition({row:$,column:0}),ne=re.top;G&&(ne-=this.$size.scrollerHeight/2);var Q=this.scrollTop;this.session.setScrollTop(ne),z!==!1&&this.animateScrolling(Q,K)},V.prototype.animateScrolling=function($,G){var z=this.scrollTop;if(!this.$animatedScroll)return;var K=this;if($==z)return;if(this.$scrollAnimation){var re=this.$scrollAnimation.steps;if(re.length&&($=re[0],$==z))return}var ne=K.$calcSteps($,z);this.$scrollAnimation={from:$,to:z,steps:ne},clearInterval(this.$timer),K.session.setScrollTop(ne.shift()),K.session.$scrollTop=z;function Q(){K.$timer=clearInterval(K.$timer),K.$scrollAnimation=null,K.$stopAnimation=!1,G&&G()}this.$timer=setInterval(function(){if(K.$stopAnimation){Q();return}if(!K.session)return clearInterval(K.$timer);ne.length?(K.session.setScrollTop(ne.shift()),K.session.$scrollTop=z):z!=null?(K.session.$scrollTop=-1,K.session.setScrollTop(z),z=null):Q()},10)},V.prototype.scrollToY=function($){this.scrollTop!==$&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=$)},V.prototype.scrollToX=function($){this.scrollLeft!==$&&(this.scrollLeft=$),this.$loop.schedule(this.CHANGE_H_SCROLL)},V.prototype.scrollTo=function($,G){this.session.setScrollTop(G),this.session.setScrollLeft($)},V.prototype.scrollBy=function($,G){G&&this.session.setScrollTop(this.session.getScrollTop()+G),$&&this.session.setScrollLeft(this.session.getScrollLeft()+$)},V.prototype.isScrollableBy=function($,G){if(G<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||G>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||$<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||$>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},V.prototype.pixelToScreenCoordinates=function($,G){var z;if(this.$hasCssTransforms){z={top:0,left:0};var K=this.$fontMetrics.transformCoordinates([$,G]);$=K[1]-this.gutterWidth-this.margin.left,G=K[0]}else z=this.scroller.getBoundingClientRect();var re=$+this.scrollLeft-z.left-this.$padding,ne=re/this.characterWidth,Q=Math.floor((G+this.scrollTop-z.top)/this.lineHeight),ue=this.$blockCursor?Math.floor(ne):Math.round(ne);return{row:Q,column:ue,side:ne-ue>0?1:-1,offsetX:re}},V.prototype.screenToTextCoordinates=function($,G){var z;if(this.$hasCssTransforms){z={top:0,left:0};var K=this.$fontMetrics.transformCoordinates([$,G]);$=K[1]-this.gutterWidth-this.margin.left,G=K[0]}else z=this.scroller.getBoundingClientRect();var re=$+this.scrollLeft-z.left-this.$padding,ne=re/this.characterWidth,Q=this.$blockCursor?Math.floor(ne):Math.round(ne),ue=Math.floor((G+this.scrollTop-z.top)/this.lineHeight);return this.session.screenToDocumentPosition(ue,Math.max(Q,0),re)},V.prototype.textToScreenCoordinates=function($,G){var z=this.scroller.getBoundingClientRect(),K=this.session.documentToScreenPosition($,G),re=this.$padding+(this.session.$bidiHandler.isBidiRow(K.row,$)?this.session.$bidiHandler.getPosLeft(K.column):Math.round(K.column*this.characterWidth)),ne=K.row*this.lineHeight;return{pageX:z.left+re-this.scrollLeft,pageY:z.top+ne-this.scrollTop}},V.prototype.visualizeFocus=function(){M.addCssClass(this.container,"ace_focus")},V.prototype.visualizeBlur=function(){M.removeCssClass(this.container,"ace_focus")},V.prototype.showComposition=function($){this.$composition=$,$.cssText||($.cssText=this.textarea.style.cssText),$.useTextareaForIME==null&&($.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(M.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):$.markerId=this.session.addMarker($.markerRange,"ace_composition_marker","text")},V.prototype.setCompositionText=function($){var G=this.session.selection.cursor;this.addToken($,"composition_placeholder",G.row,G.column),this.$moveTextAreaToCursor()},V.prototype.hideComposition=function(){if(!!this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),M.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var $=this.session.selection.cursor;this.removeExtraToken($.row,$.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},V.prototype.setGhostText=function($,G){var z=this.session.selection.cursor,K=G||{row:z.row,column:z.column};this.removeGhostText();var re=$.split(`
|
||
`);this.addToken(re[0],"ghost_text",K.row,K.column),this.$ghostText={text:$,position:{row:K.row,column:K.column}},re.length>1&&(this.$ghostTextWidget={text:re.slice(1).join(`
|
||
`),row:K.row,column:K.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},V.prototype.removeGhostText=function(){if(!!this.$ghostText){var $=this.$ghostText.position;this.removeExtraToken($.row,$.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},V.prototype.addToken=function($,G,z,K){var re=this.session;re.bgTokenizer.lines[z]=null;var ne={type:G,value:$},Q=re.getTokens(z);if(K==null||!Q.length)Q.push(ne);else for(var ue=0,he=0;he<Q.length;he++){var Ee=Q[he];if(ue+=Ee.value.length,K<=ue){var ce=Ee.value.length-(ue-K),ve=Ee.value.slice(0,ce),fe=Ee.value.slice(ce);Q.splice(he,1,{type:Ee.type,value:ve},ne,{type:Ee.type,value:fe});break}}this.updateLines(z,z)},V.prototype.removeExtraToken=function($,G){this.session.bgTokenizer.lines[$]=null,this.updateLines($,$)},V.prototype.setTheme=function($,G){var z=this;if(this.$themeId=$,z._dispatchEvent("themeChange",{theme:$}),!$||typeof $=="string"){var K=$||this.$options.theme.initialValue;m.loadModule(["theme",K],re)}else re($);function re(ne){if(z.$themeId!=$)return G&&G();if(!ne||!ne.cssClass)throw new Error("couldn't load module "+$+" or it didn't call define");ne.$id&&(z.$themeId=ne.$id),M.importCssString(ne.cssText,ne.cssClass,z.container),z.theme&&M.removeCssClass(z.container,z.theme.cssClass);var Q="padding"in ne?ne.padding:"padding"in(z.theme||{})?4:z.$padding;z.$padding&&Q!=z.$padding&&z.setPadding(Q),z.$theme=ne.cssClass,z.theme=ne,M.addCssClass(z.container,ne.cssClass),M.setCssClass(z.container,"ace_dark",ne.isDark),z.$size&&(z.$size.width=0,z.$updateSizeAsync()),z._dispatchEvent("themeLoaded",{theme:ne}),G&&G()}},V.prototype.getTheme=function(){return this.$themeId},V.prototype.setStyle=function($,G){M.setCssClass(this.container,$,G!==!1)},V.prototype.unsetStyle=function($){M.removeCssClass(this.container,$)},V.prototype.setCursorStyle=function($){M.setStyle(this.scroller.style,"cursor",$)},V.prototype.setMouseCursor=function($){M.setStyle(this.scroller.style,"cursor",$)},V.prototype.attachToShadowRoot=function(){M.importCssString(Z,"ace_editor.css",this.container)},V.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},V.prototype.$updateCustomScrollbar=function($){var G=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,$===!0?(this.scrollBarV=new k(this.container,this),this.scrollBarH=new S(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(z){G.$scrollAnimation||G.session.setScrollTop(z.data-G.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(z){G.$scrollAnimation||G.session.setScrollLeft(z.data-G.scrollMargin.left)}),this.$scrollDecorator=new W(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new p(this.container,this),this.scrollBarH=new _(this.container,this),this.scrollBarV.addEventListener("scroll",function(z){G.$scrollAnimation||G.session.setScrollTop(z.data-G.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(z){G.$scrollAnimation||G.session.setScrollLeft(z.data-G.scrollMargin.left)}))},V.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var $=this;this.$resizeTimer=w.delayedCall(function(){$.destroyed||$.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(G){var z=G[0].contentRect.width,K=G[0].contentRect.height;Math.abs($.$size.width-z)>1||Math.abs($.$size.height-K)>1?$.$resizeTimer.delay():$.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},V}();L.prototype.CHANGE_CURSOR=1,L.prototype.CHANGE_MARKER=2,L.prototype.CHANGE_GUTTER=4,L.prototype.CHANGE_SCROLL=8,L.prototype.CHANGE_LINES=16,L.prototype.CHANGE_TEXT=32,L.prototype.CHANGE_SIZE=64,L.prototype.CHANGE_MARKER_BACK=128,L.prototype.CHANGE_MARKER_FRONT=256,L.prototype.CHANGE_FULL=512,L.prototype.CHANGE_H_SCROLL=1024,L.prototype.$changes=0,L.prototype.$padding=null,L.prototype.$frozen=!1,L.prototype.STEPS=8,y.implement(L.prototype,D),m.defineOptions(L.prototype,"renderer",{useResizeObserver:{set:function($){!$&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):$&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function($){this.$textLayer.setShowInvisibles($)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function($){typeof $=="number"&&(this.$printMarginColumn=$),this.$showPrintMargin=!!$,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function($){this.$gutter.style.display=$?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function($){this.$gutterLayer.$useSvgGutterIcons=$},initialValue:!1},showFoldedAnnotations:{set:function($){this.$gutterLayer.$showFoldedAnnotations=$},initialValue:!1},fadeFoldWidgets:{set:function($){M.setCssClass(this.$gutter,"ace_fade-fold-widgets",$)},initialValue:!1},showFoldWidgets:{set:function($){this.$gutterLayer.setShowFoldWidgets($),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function($){this.$textLayer.setDisplayIndentGuides($)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function($){this.$textLayer.setHighlightIndentGuides($)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function($){this.$gutterLayer.setHighlightGutterLine($),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function($){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function($){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function($){typeof $=="number"&&($=$+"px"),this.container.style.fontSize=$,this.updateFontSize()},initialValue:12},fontFamily:{set:function($){this.container.style.fontFamily=$,this.updateFontSize()}},maxLines:{set:function($){this.updateFull()}},minLines:{set:function($){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function($){this.updateFull()},initialValue:0},scrollPastEnd:{set:function($){$=+$||0,this.$scrollPastEnd!=$&&(this.$scrollPastEnd=$,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function($){this.$gutterLayer.$fixedWidth=!!$,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function($){this.$updateCustomScrollbar($)},initialValue:!1},theme:{set:function($){this.setTheme($)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!U.isMobile&&!U.isIE}}),g.VirtualRenderer=L}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(x,g,A){"use strict";var y=x("../lib/oop"),M=x("../lib/net"),w=x("../lib/event_emitter").EventEmitter,m=x("../config");function b(_){var p="importScripts('"+M.qualifyURL(_)+"');";try{return new Blob([p],{type:"application/javascript"})}catch(O){var S=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,k=new S;return k.append(p),k.getBlob("application/javascript")}}function v(_){if(typeof Worker=="undefined")return{postMessage:function(){},terminate:function(){}};if(m.get("loadWorkerFromBlob")){var p=b(_),S=window.URL||window.webkitURL,k=S.createObjectURL(p);return new Worker(k)}return new Worker(_)}var h=function(p){p.postMessage||(p=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=p,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){y.implement(this,w),this.$createWorkerFromOldConfig=function(_,p,S,k,O){if(x.nameToUrl&&!x.toUrl&&(x.toUrl=x.nameToUrl),m.get("packaged")||!x.toUrl)k=k||m.moduleUrl(p,"worker");else{var F=this.$normalizePath;k=k||F(x.toUrl("ace/worker/worker.js",null,"_"));var D={};_.forEach(function(Z){D[Z]=F(x.toUrl(Z,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=v(k),O&&this.send("importScripts",O),this.$worker.postMessage({init:!0,tlns:D,module:p,classname:S}),this.$worker},this.onMessage=function(_){var p=_.data;switch(p.type){case"event":this._signal(p.name,{data:p.data});break;case"call":var S=this.callbacks[p.id];S&&(S(p.data),delete this.callbacks[p.id]);break;case"error":this.reportError(p.data);break;case"log":window.console&&console.log&&console.log.apply(console,p.data);break}},this.reportError=function(_){window.console&&console.error&&console.error(_)},this.$normalizePath=function(_){return M.qualifyURL(_)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(_){_.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(_,p){this.$worker.postMessage({command:_,args:p})},this.call=function(_,p,S){if(S){var k=this.callbackId++;this.callbacks[k]=S,p.push(k)}this.send(_,p)},this.emit=function(_,p){try{p.data&&p.data.err&&(p.data.err={message:p.data.err.message,stack:p.data.err.stack,code:p.data.err.code}),this.$worker&&this.$worker.postMessage({event:_,data:{data:p.data}})}catch(S){console.error(S.stack)}},this.attachToDocument=function(_){this.$doc&&this.terminate(),this.$doc=_,this.call("setValue",[_.getValue()]),_.on("change",this.changeListener,!0)},this.changeListener=function(_){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),_.action=="insert"?this.deltaQueue.push(_.start,_.lines):this.deltaQueue.push(_.start,_.end)},this.$sendDeltaQueue=function(){var _=this.deltaQueue;!_||(this.deltaQueue=null,_.length>50&&_.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:_}))}}).call(h.prototype);var d=function(p,S,k){var O=null,F=!1,D=Object.create(w),Z=[],W=new h({messageBuffer:Z,terminate:function(){},postMessage:function(V){Z.push(V),!!O&&(F?setTimeout(U):U())}});W.setEmitSync=function(L){F=L};var U=function(){var V=Z.shift();V.command?O[V.command].apply(O,V.args):V.event&&D._signal(V.event,V.data)};return D.postMessage=function(L){W.onMessage({data:L})},D.callback=function(L,V){this.postMessage({type:"call",id:V,data:L})},D.emit=function(L,V){this.postMessage({type:"event",name:L,data:V})},m.loadModule(["worker",S],function(L){for(O=new L[k](D);Z.length;)U()}),W};g.UIWorkerClient=d,g.WorkerClient=h,g.createWorker=v}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(x,g,A){"use strict";var y=x("./range").Range,M=x("./lib/event_emitter").EventEmitter,w=x("./lib/oop"),m=function(){function b(v,h,d,_,p,S){var k=this;this.length=h,this.session=v,this.doc=v.getDocument(),this.mainClass=p,this.othersClass=S,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=_,this.$onCursorChange=function(){setTimeout(function(){k.onCursorChange()})},this.$pos=d;var O=v.getUndoManager().$undoStack||v.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=O.length,this.setup(),v.selection.on("changeCursor",this.$onCursorChange)}return b.prototype.setup=function(){var v=this,h=this.doc,d=this.session;this.selectionBefore=d.selection.toJSON(),d.selection.inMultiSelectMode&&d.selection.toSingleRange(),this.pos=h.createAnchor(this.$pos.row,this.$pos.column);var _=this.pos;_.$insertRight=!0,_.detach(),_.markerId=d.addMarker(new y(_.row,_.column,_.row,_.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(p){var S=h.createAnchor(p.row,p.column);S.$insertRight=!0,S.detach(),v.others.push(S)}),d.setUndoSelect(!1)},b.prototype.showOtherMarkers=function(){if(!this.othersActive){var v=this.session,h=this;this.othersActive=!0,this.others.forEach(function(d){d.markerId=v.addMarker(new y(d.row,d.column,d.row,d.column+h.length),h.othersClass,null,!1)})}},b.prototype.hideOtherMarkers=function(){if(!!this.othersActive){this.othersActive=!1;for(var v=0;v<this.others.length;v++)this.session.removeMarker(this.others[v].markerId)}},b.prototype.onUpdate=function(v){if(this.$updating)return this.updateAnchors(v);var h=v;if(h.start.row===h.end.row&&h.start.row===this.pos.row){this.$updating=!0;var d=v.action==="insert"?h.end.column-h.start.column:h.start.column-h.end.column,_=h.start.column>=this.pos.column&&h.start.column<=this.pos.column+this.length+1,p=h.start.column-this.pos.column;if(this.updateAnchors(v),_&&(this.length+=d),_&&!this.session.$fromUndo){if(v.action==="insert")for(var S=this.others.length-1;S>=0;S--){var k=this.others[S],O={row:k.row,column:k.column+p};this.doc.insertMergedLines(O,v.lines)}else if(v.action==="remove")for(var S=this.others.length-1;S>=0;S--){var k=this.others[S],O={row:k.row,column:k.column+p};this.doc.remove(new y(O.row,O.column,O.row,O.column-d))}}this.$updating=!1,this.updateMarkers()}},b.prototype.updateAnchors=function(v){this.pos.onChange(v);for(var h=this.others.length;h--;)this.others[h].onChange(v);this.updateMarkers()},b.prototype.updateMarkers=function(){if(!this.$updating){var v=this,h=this.session,d=function(S,k){h.removeMarker(S.markerId),S.markerId=h.addMarker(new y(S.row,S.column,S.row,S.column+v.length),k,null,!1)};d(this.pos,this.mainClass);for(var _=this.others.length;_--;)d(this.others[_],this.othersClass)}},b.prototype.onCursorChange=function(v){if(!(this.$updating||!this.session)){var h=this.session.selection.getCursor();h.row===this.pos.row&&h.column>=this.pos.column&&h.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",v)):(this.hideOtherMarkers(),this._emit("cursorLeave",v))}},b.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},b.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var v=this.session.getUndoManager(),h=(v.$undoStack||v.$undostack).length-this.$undoStackDepth,d=0;d<h;d++)v.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},b}();w.implement(m.prototype,M),g.PlaceHolder=m}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(x,g,A){var y=x("../lib/event"),M=x("../lib/useragent");function w(b,v){return b.row==v.row&&b.column==v.column}function m(b){var v=b.domEvent,h=v.altKey,d=v.shiftKey,_=v.ctrlKey,p=b.getAccelKey(),S=b.getButton();if(_&&M.isMac&&(S=v.button),b.editor.inMultiSelectMode&&S==2){b.editor.textInput.onContextMenu(b.domEvent);return}if(!_&&!h&&!p){S===0&&b.editor.inMultiSelectMode&&b.editor.exitMultiSelectMode();return}if(S===0){var k=b.editor,O=k.selection,F=k.inMultiSelectMode,D=b.getDocumentPosition(),Z=O.getCursor(),W=b.inSelection()||O.isEmpty()&&w(D,Z),U=b.x,L=b.y,V=function(we){U=we.clientX,L=we.clientY},$=k.session,G=k.renderer.pixelToScreenCoordinates(U,L),z=G,K;if(k.$mouseHandler.$enableJumpToDef)_&&h||p&&h?K=d?"block":"add":h&&k.$blockSelectEnabled&&(K="block");else if(p&&!h){if(K="add",!F&&d)return}else h&&k.$blockSelectEnabled&&(K="block");if(K&&M.isMac&&v.ctrlKey&&k.$mouseHandler.cancelContextMenu(),K=="add"){if(!F&&W)return;if(!F){var re=O.toOrientedRange();k.addSelectionMarker(re)}var ne=O.rangeList.rangeAtPoint(D);k.inVirtualSelectionMode=!0,d&&(ne=null,re=O.ranges[0]||re,k.removeSelectionMarker(re)),k.once("mouseup",function(){var fe=O.toOrientedRange();ne&&fe.isEmpty()&&w(ne.cursor,fe.cursor)?O.substractPoint(fe.cursor):(d?O.substractPoint(re.cursor):re&&(k.removeSelectionMarker(re),O.addRange(re)),O.addRange(fe)),k.inVirtualSelectionMode=!1})}else if(K=="block"){b.stop(),k.inVirtualSelectionMode=!0;var Q,ue=[],he=function(){var we=k.renderer.pixelToScreenCoordinates(U,L),me=$.screenToDocumentPosition(we.row,we.column,we.offsetX);w(z,we)&&w(me,O.lead)||(z=we,k.selection.moveToPosition(me),k.renderer.scrollCursorIntoView(),k.removeSelectionMarkers(ue),ue=O.rectangularRangeBlock(z,G),k.$mouseHandler.$clickSelection&&ue.length==1&&ue[0].isEmpty()&&(ue[0]=k.$mouseHandler.$clickSelection.clone()),ue.forEach(k.addSelectionMarker,k),k.updateSelectionMarkers())};F&&!p?O.toSingleRange():!F&&p&&(Q=O.toOrientedRange(),k.addSelectionMarker(Q)),d?G=$.documentToScreenPosition(O.lead):O.moveToPosition(D),z={row:-1,column:-1};var Ee=function(we){he(),clearInterval(ve),k.removeSelectionMarkers(ue),ue.length||(ue=[O.toOrientedRange()]),Q&&(k.removeSelectionMarker(Q),O.toSingleRange(Q));for(var me=0;me<ue.length;me++)O.addRange(ue[me]);k.inVirtualSelectionMode=!1,k.$mouseHandler.$clickSelection=null},ce=he;y.capture(k.container,V,Ee);var ve=setInterval(function(){ce()},20);return b.preventDefault()}}}g.onMouseDown=m}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(x,g,A){g.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(w){w.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(w){w.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(w){w.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(w){w.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(w){w.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(w){w.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(w){w.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(w){w.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(w){w.multiSelect.rangeCount>1?w.multiSelect.joinSelections():w.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(w){w.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(w){w.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(w){w.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],g.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(w){w.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(w){return w&&w.inMultiSelectMode}}];var y=x("../keyboard/hash_handler").HashHandler;g.keyboardHandler=new y(g.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(x,g,A){var y=x("./range_list").RangeList,M=x("./range").Range,w=x("./selection").Selection,m=x("./mouse/multi_select_handler").onMouseDown,b=x("./lib/event"),v=x("./lib/lang"),h=x("./commands/multi_select_commands");g.commands=h.defaultCommands.concat(h.multiSelectCommands);var d=x("./search").Search,_=new d;function p(Z,W,U){return _.$options.wrap=!0,_.$options.needle=W,_.$options.backwards=U==-1,_.find(Z)}var S=x("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(S.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(Z,W){if(!!Z){if(!this.inMultiSelectMode&&this.rangeCount===0){var U=this.toOrientedRange();if(this.rangeList.add(U),this.rangeList.add(Z),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),W||this.fromOrientedRange(Z);this.rangeList.removeAll(),this.rangeList.add(U),this.$onAddRange(U)}Z.cursor||(Z.cursor=Z.end);var L=this.rangeList.add(Z);return this.$onAddRange(Z),L.length&&this.$onRemoveRange(L),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),W||this.fromOrientedRange(Z)}},this.toSingleRange=function(Z){Z=Z||this.ranges[0];var W=this.rangeList.removeAll();W.length&&this.$onRemoveRange(W),Z&&this.fromOrientedRange(Z)},this.substractPoint=function(Z){var W=this.rangeList.substractPoint(Z);if(W)return this.$onRemoveRange(W),W[0]},this.mergeOverlappingRanges=function(){var Z=this.rangeList.merge();Z.length&&this.$onRemoveRange(Z)},this.$onAddRange=function(Z){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(Z),this._signal("addRange",{range:Z})},this.$onRemoveRange=function(Z){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var W=this.rangeList.ranges.pop();Z.push(W),this.rangeCount=0}for(var U=Z.length;U--;){var L=this.ranges.indexOf(Z[U]);this.ranges.splice(L,1)}this._signal("removeRange",{ranges:Z}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),W=W||this.ranges[0],W&&!W.isEqual(this.getRange())&&this.fromOrientedRange(W)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new y,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var Z=this.ranges.length?this.ranges:[this.getRange()],W=[],U=0;U<Z.length;U++){var L=Z[U],V=L.start.row,$=L.end.row;if(V===$)W.push(L.clone());else{for(W.push(new M(V,L.start.column,V,this.session.getLine(V).length));++V<$;)W.push(this.getLineRange(V,!0));W.push(new M($,0,$,L.end.column))}U==0&&!this.isBackwards()&&(W=W.reverse())}this.toSingleRange();for(var U=W.length;U--;)this.addRange(W[U])},this.joinSelections=function(){var Z=this.rangeList.ranges,W=Z[Z.length-1],U=M.fromPoints(Z[0].start,W.end);this.toSingleRange(),this.setSelectionRange(U,W.cursor==W.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var Z=this.rangeList.ranges,W=Z[Z.length-1],U=M.fromPoints(Z[0].start,W.end);this.toSingleRange(),this.setSelectionRange(U,W.cursor==W.start)}else{var L=this.session.documentToScreenPosition(this.cursor),V=this.session.documentToScreenPosition(this.anchor),$=this.rectangularRangeBlock(L,V);$.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(Z,W,U){var L=[],V=Z.column<W.column;if(V)var $=Z.column,G=W.column,z=Z.offsetX,K=W.offsetX;else var $=W.column,G=Z.column,z=W.offsetX,K=Z.offsetX;var re=Z.row<W.row;if(re)var ne=Z.row,Q=W.row;else var ne=W.row,Q=Z.row;$<0&&($=0),ne<0&&(ne=0),ne==Q&&(U=!0);for(var ue,he=ne;he<=Q;he++){var Ee=M.fromPoints(this.session.screenToDocumentPosition(he,$,z),this.session.screenToDocumentPosition(he,G,K));if(Ee.isEmpty()){if(ue&&O(Ee.end,ue))break;ue=Ee.end}Ee.cursor=V?Ee.start:Ee.end,L.push(Ee)}if(re&&L.reverse(),!U){for(var ce=L.length-1;L[ce].isEmpty()&&ce>0;)ce--;if(ce>0)for(var ve=0;L[ve].isEmpty();)ve++;for(var fe=ce;fe>=ve;fe--)L[fe].isEmpty()&&L.splice(fe,1)}return L}}.call(w.prototype);var k=x("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(Z){Z.cursor||(Z.cursor=Z.end);var W=this.getSelectionStyle();return Z.marker=this.session.addMarker(Z,"ace_selection",W),this.session.$selectionMarkers.push(Z),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,Z},this.removeSelectionMarker=function(Z){if(!!Z.marker){this.session.removeMarker(Z.marker);var W=this.session.$selectionMarkers.indexOf(Z);W!=-1&&this.session.$selectionMarkers.splice(W,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(Z){for(var W=this.session.$selectionMarkers,U=Z.length;U--;){var L=Z[U];if(!!L.marker){this.session.removeMarker(L.marker);var V=W.indexOf(L);V!=-1&&W.splice(V,1)}}this.session.selectionMarkerCount=W.length},this.$onAddRange=function(Z){this.addSelectionMarker(Z.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(Z){this.removeSelectionMarkers(Z.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(Z){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(h.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(Z){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(h.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(Z){var W=Z.command,U=Z.editor;if(!!U.multiSelect){if(W.multiSelectAction)W.multiSelectAction=="forEach"?L=U.forEachSelection(W,Z.args):W.multiSelectAction=="forEachLine"?L=U.forEachSelection(W,Z.args,!0):W.multiSelectAction=="single"?(U.exitMultiSelectMode(),L=W.exec(U,Z.args||{})):L=W.multiSelectAction(U,Z.args||{});else{var L=W.exec(U,Z.args||{});U.multiSelect.addRange(U.multiSelect.toOrientedRange()),U.multiSelect.mergeOverlappingRanges()}return L}},this.forEachSelection=function(Z,W,U){if(!this.inVirtualSelectionMode){var L=U&&U.keepOrder,V=U==!0||U&&U.$byLines,$=this.session,G=this.selection,z=G.rangeList,K=(L?G:z).ranges,re;if(!K.length)return Z.exec?Z.exec(this,W||{}):Z(this,W||{});var ne=G._eventRegistry;G._eventRegistry={};var Q=new w($);this.inVirtualSelectionMode=!0;for(var ue=K.length;ue--;){if(V)for(;ue>0&&K[ue].start.row==K[ue-1].end.row;)ue--;Q.fromOrientedRange(K[ue]),Q.index=ue,this.selection=$.selection=Q;var he=Z.exec?Z.exec(this,W||{}):Z(this,W||{});!re&&he!==void 0&&(re=he),Q.toOrientedRange(K[ue])}Q.detach(),this.selection=$.selection=G,this.inVirtualSelectionMode=!1,G._eventRegistry=ne,G.mergeOverlappingRanges(),G.ranges[0]&&G.fromOrientedRange(G.ranges[0]);var Ee=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),Ee&&Ee.from==Ee.to&&this.renderer.animateScrolling(Ee.from),re}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var Z="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var W=this.multiSelect.rangeList.ranges,U=[],L=0;L<W.length;L++)U.push(this.session.getTextRange(W[L]));var V=this.session.getDocument().getNewLineCharacter();Z=U.join(V),Z.length==(U.length-1)*V.length&&(Z="")}else this.selection.isEmpty()||(Z=this.session.getTextRange(this.getSelectionRange()));return Z},this.$checkMultiselectChange=function(Z,W){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var U=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&W==this.multiSelect.anchor)return;var L=W==this.multiSelect.anchor?U.cursor==U.start?U.end:U.start:U.cursor;L.row!=W.row||this.session.$clipPositionToDocument(L.row,L.column).column!=W.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(Z,W,U){if(W=W||{},W.needle=Z||W.needle,W.needle==null){var L=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();W.needle=this.session.getTextRange(L)}this.$search.set(W);var V=this.$search.findAll(this.session);if(!V.length)return 0;var $=this.multiSelect;U||$.toSingleRange(V[0]);for(var G=V.length;G--;)$.addRange(V[G],!0);return L&&$.rangeList.rangeAtPoint(L.start)&&$.addRange(L,!0),V.length},this.selectMoreLines=function(Z,W){var U=this.selection.toOrientedRange(),L=U.cursor==U.end,V=this.session.documentToScreenPosition(U.cursor);this.selection.$desiredColumn&&(V.column=this.selection.$desiredColumn);var $=this.session.screenToDocumentPosition(V.row+Z,V.column);if(U.isEmpty())var z=$;else var G=this.session.documentToScreenPosition(L?U.end:U.start),z=this.session.screenToDocumentPosition(G.row+Z,G.column);if(L){var K=M.fromPoints($,z);K.cursor=K.start}else{var K=M.fromPoints(z,$);K.cursor=K.end}if(K.desiredColumn=V.column,!this.selection.inMultiSelectMode)this.selection.addRange(U);else if(W)var re=U.cursor;this.selection.addRange(K),re&&this.selection.substractPoint(re)},this.transposeSelections=function(Z){for(var W=this.session,U=W.multiSelect,L=U.ranges,V=L.length;V--;){var $=L[V];if($.isEmpty()){var G=W.getWordRange($.start.row,$.start.column);$.start.row=G.start.row,$.start.column=G.start.column,$.end.row=G.end.row,$.end.column=G.end.column}}U.mergeOverlappingRanges();for(var z=[],V=L.length;V--;){var $=L[V];z.unshift(W.getTextRange($))}Z<0?z.unshift(z.pop()):z.push(z.shift());for(var V=L.length;V--;){var $=L[V],G=$.clone();W.replace($,z[V]),$.start.row=G.start.row,$.start.column=G.start.column}U.fromOrientedRange(U.ranges[0])},this.selectMore=function(Z,W,U){var L=this.session,V=L.multiSelect,$=V.toOrientedRange();if(!($.isEmpty()&&($=L.getWordRange($.start.row,$.start.column),$.cursor=Z==-1?$.start:$.end,this.multiSelect.addRange($),U))){var G=L.getTextRange($),z=p(L,G,Z);z&&(z.cursor=Z==-1?z.start:z.end,this.session.unfold(z),this.multiSelect.addRange(z),this.renderer.scrollCursorIntoView(null,.5)),W&&this.multiSelect.substractPoint($.cursor)}},this.alignCursors=function(){var Z=this.session,W=Z.multiSelect,U=W.ranges,L=-1,V=U.filter(function(ce){if(ce.cursor.row==L)return!0;L=ce.cursor.row});if(!U.length||V.length==U.length-1){var $=this.selection.getRange(),G=$.start.row,z=$.end.row,K=G==z;if(K){var re=this.session.getLength(),ne;do ne=this.session.getLine(z);while(/[=:]/.test(ne)&&++z<re);do ne=this.session.getLine(G);while(/[=:]/.test(ne)&&--G>0);G<0&&(G=0),z>=re&&(z=re-1)}var Q=this.session.removeFullLines(G,z);Q=this.$reAlignText(Q,K),this.session.insert({row:G,column:0},Q.join(`
|
||
`)+`
|
||
`),K||($.start.column=0,$.end.column=Q[Q.length-1].length),this.selection.setRange($)}else{V.forEach(function(ce){W.substractPoint(ce.cursor)});var ue=0,he=Infinity,Ee=U.map(function(ce){var ve=ce.cursor,fe=Z.getLine(ve.row),we=fe.substr(ve.column).search(/\S/g);return we==-1&&(we=0),ve.column>ue&&(ue=ve.column),we<he&&(he=we),we});U.forEach(function(ce,ve){var fe=ce.cursor,we=ue-fe.column,me=Ee[ve]-he;we>me?Z.insert(fe,v.stringRepeat(" ",we-me)):Z.remove(new M(fe.row,fe.column,fe.row,fe.column-we+me)),ce.start.column=ce.end.column=ue,ce.start.row=ce.end.row=fe.row,ce.cursor=ce.end}),W.fromOrientedRange(U[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(Z,W){var U=!0,L=!0,V,$,G;return Z.map(function(Q){var ue=Q.match(/(\s*)(.*?)(\s*)([=:].*)/);return ue?V==null?(V=ue[1].length,$=ue[2].length,G=ue[3].length,ue):(V+$+G!=ue[1].length+ue[2].length+ue[3].length&&(L=!1),V!=ue[1].length&&(U=!1),V>ue[1].length&&(V=ue[1].length),$<ue[2].length&&($=ue[2].length),G>ue[3].length&&(G=ue[3].length),ue):[Q]}).map(W?K:U?L?re:K:ne);function z(Q){return v.stringRepeat(" ",Q)}function K(Q){return Q[2]?z(V)+Q[2]+z($-Q[2].length+G)+Q[4].replace(/^([=:])\s+/,"$1 "):Q[0]}function re(Q){return Q[2]?z(V+$-Q[2].length)+Q[2]+z(G)+Q[4].replace(/^([=:])\s+/,"$1 "):Q[0]}function ne(Q){return Q[2]?z(V)+Q[2]+z(G)+Q[4].replace(/^([=:])\s+/,"$1 "):Q[0]}}}).call(k.prototype);function O(Z,W){return Z.row==W.row&&Z.column==W.column}g.onSessionChange=function(Z){var W=Z.session;W&&!W.multiSelect&&(W.$selectionMarkers=[],W.selection.$initRangeList(),W.multiSelect=W.selection),this.multiSelect=W&&W.multiSelect;var U=Z.oldSession;U&&(U.multiSelect.off("addRange",this.$onAddRange),U.multiSelect.off("removeRange",this.$onRemoveRange),U.multiSelect.off("multiSelect",this.$onMultiSelect),U.multiSelect.off("singleSelect",this.$onSingleSelect),U.multiSelect.lead.off("change",this.$checkMultiselectChange),U.multiSelect.anchor.off("change",this.$checkMultiselectChange)),W&&(W.multiSelect.on("addRange",this.$onAddRange),W.multiSelect.on("removeRange",this.$onRemoveRange),W.multiSelect.on("multiSelect",this.$onMultiSelect),W.multiSelect.on("singleSelect",this.$onSingleSelect),W.multiSelect.lead.on("change",this.$checkMultiselectChange),W.multiSelect.anchor.on("change",this.$checkMultiselectChange)),W&&this.inMultiSelectMode!=W.selection.inMultiSelectMode&&(W.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function F(Z){Z.$multiselectOnSessionChange||(Z.$onAddRange=Z.$onAddRange.bind(Z),Z.$onRemoveRange=Z.$onRemoveRange.bind(Z),Z.$onMultiSelect=Z.$onMultiSelect.bind(Z),Z.$onSingleSelect=Z.$onSingleSelect.bind(Z),Z.$multiselectOnSessionChange=g.onSessionChange.bind(Z),Z.$checkMultiselectChange=Z.$checkMultiselectChange.bind(Z),Z.$multiselectOnSessionChange(Z),Z.on("changeSession",Z.$multiselectOnSessionChange),Z.on("mousedown",m),Z.commands.addCommands(h.defaultCommands),D(Z))}function D(Z){if(!Z.textInput)return;var W=Z.textInput.getElement(),U=!1;b.addListener(W,"keydown",function(V){var $=V.keyCode==18&&!(V.ctrlKey||V.shiftKey||V.metaKey);Z.$blockSelectEnabled&&$?U||(Z.renderer.setMouseCursor("crosshair"),U=!0):U&&L()},Z),b.addListener(W,"keyup",L,Z),b.addListener(W,"blur",L,Z);function L(V){U&&(Z.renderer.setMouseCursor(""),U=!1)}}g.MultiSelect=F,x("./config").defineOptions(k.prototype,"editor",{enableMultiselect:{set:function(W){F(this),W?this.on("mousedown",m):this.off("mousedown",m)},value:!0},enableBlockSelect:{set:function(W){this.$blockSelectEnabled=W},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(x,g,A){"use strict";var y=x("../../range").Range,M=g.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(w,m,b){var v=w.getLine(b);return this.foldingStartMarker.test(v)?"start":m=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(v)?"end":""},this.getFoldWidgetRange=function(w,m,b){return null},this.indentationBlock=function(w,m,b){var v=/\S/,h=w.getLine(m),d=h.search(v);if(d!=-1){for(var _=b||h.length,p=w.getLength(),S=m,k=m;++m<p;){var O=w.getLine(m).search(v);if(O!=-1){if(O<=d){var F=w.getTokenAt(m,0);if(!F||F.type!=="string")break}k=m}}if(k>S){var D=w.getLine(k).length;return new y(S,_,k,D)}}},this.openingBracketBlock=function(w,m,b,v,h){var d={row:b,column:v+1},_=w.$findClosingBracket(m,d,h);if(!!_){var p=w.foldWidgets[_.row];return p==null&&(p=w.getFoldWidget(_.row)),p=="start"&&_.row>d.row&&(_.row--,_.column=w.getLine(_.row).length),y.fromPoints(d,_)}},this.closingBracketBlock=function(w,m,b,v,h){var d={row:b,column:v},_=w.$findOpeningBracket(m,d);if(!!_)return _.column++,d.column--,y.fromPoints(_,d)}}).call(M.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(x,g,A){"use strict";var y=x("../line_widgets").LineWidgets,M=x("../lib/dom"),w=x("../range").Range,m=x("../config").nls;function b(h,d,_){for(var p=0,S=h.length-1;p<=S;){var k=p+S>>1,O=_(d,h[k]);if(O>0)p=k+1;else if(O<0)S=k-1;else return k}return-(p+1)}function v(h,d,_){var p=h.getAnnotations().sort(w.comparePoints);if(!!p.length){var S=b(p,{row:d,column:-1},w.comparePoints);S<0&&(S=-S-1),S>=p.length?S=_>0?0:p.length-1:S===0&&_<0&&(S=p.length-1);var k=p[S];if(!(!k||!_)){if(k.row===d){do k=p[S+=_];while(k&&k.row===d);if(!k)return p.slice()}var O=[];d=k.row;do O[_<0?"unshift":"push"](k),k=p[S+=_];while(k&&k.row==d);return O.length&&O}}}g.showErrorMarker=function(h,d){var _=h.session;_.widgetManager||(_.widgetManager=new y(_),_.widgetManager.attach(h));var p=h.getCursorPosition(),S=p.row,k=_.widgetManager.getWidgetsAtRow(S).filter(function($){return $.type=="errorMarker"})[0];k?k.destroy():S-=d;var O=v(_,S,d),F;if(O){var D=O[0];p.column=(D.pos&&typeof D.column!="number"?D.pos.sc:D.column)||0,p.row=D.row,F=h.renderer.$gutterLayer.$annotations[p.row]}else{if(k)return;F={text:[m("Looks good!")],className:"ace_ok"}}h.session.unfold(p.row),h.selection.moveToPosition(p);var Z={row:p.row,fixedWidth:!0,coverGutter:!0,el:M.createElement("div"),type:"errorMarker"},W=Z.el.appendChild(M.createElement("div")),U=Z.el.appendChild(M.createElement("div"));U.className="error_widget_arrow "+F.className;var L=h.renderer.$cursorLayer.getPixelPosition(p).left;U.style.left=L+h.renderer.gutterWidth-5+"px",Z.el.className="error_widget_wrapper",W.className="error_widget "+F.className,W.innerHTML=F.text.join("<br>"),W.appendChild(M.createElement("div"));var V=function(G,z,K){if(z===0&&(K==="esc"||K==="return"))return Z.destroy(),{command:"null"}};Z.destroy=function(){h.$mouseHandler.isMousePressed||(h.keyBinding.removeKeyboardHandler(V),_.widgetManager.removeLineWidget(Z),h.off("changeSelection",Z.destroy),h.off("changeSession",Z.destroy),h.off("mouseup",Z.destroy),h.off("change",Z.destroy))},h.keyBinding.addKeyboardHandler(V),h.on("changeSelection",Z.destroy),h.on("changeSession",Z.destroy),h.on("mouseup",Z.destroy),h.on("change",Z.destroy),h.session.widgetManager.addLineWidget(Z),Z.el.onmousedown=h.focus.bind(h),h.renderer.scrollCursorIntoView(null,.5,{bottom:Z.el.offsetHeight})},M.importCssString(`
|
||
.error_widget_wrapper {
|
||
background: inherit;
|
||
color: inherit;
|
||
border:none
|
||
}
|
||
.error_widget {
|
||
border-top: solid 2px;
|
||
border-bottom: solid 2px;
|
||
margin: 5px 0;
|
||
padding: 10px 40px;
|
||
white-space: pre-wrap;
|
||
}
|
||
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
||
border-color: #ff5a5a
|
||
}
|
||
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
||
border-color: #F1D817
|
||
}
|
||
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
||
border-color: #5a5a5a
|
||
}
|
||
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
||
border-color: #5aaa5a
|
||
}
|
||
.error_widget_arrow {
|
||
position: absolute;
|
||
border: solid 5px;
|
||
border-top-color: transparent!important;
|
||
border-right-color: transparent!important;
|
||
border-left-color: transparent!important;
|
||
top: -5px;
|
||
}
|
||
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(x,g,A){"use strict";x("./loader_build")(g);var y=x("./lib/dom"),M=x("./range").Range,w=x("./editor").Editor,m=x("./edit_session").EditSession,b=x("./undomanager").UndoManager,v=x("./virtual_renderer").VirtualRenderer;x("./worker/worker_client"),x("./keyboard/hash_handler"),x("./placeholder"),x("./multi_select"),x("./mode/folding/fold_mode"),x("./theme/textmate"),x("./ext/error_marker"),g.config=x("./config"),g.edit=function(h,d){if(typeof h=="string"){var _=h;if(h=document.getElementById(_),!h)throw new Error("ace.edit can't find div #"+_)}if(h&&h.env&&h.env.editor instanceof w)return h.env.editor;var p="";if(h&&/input|textarea/i.test(h.tagName)){var S=h;p=S.value,h=y.createElement("pre"),S.parentNode.replaceChild(h,S)}else h&&(p=h.textContent,h.innerHTML="");var k=g.createEditSession(p),O=new w(new v(h),k,d),F={document:k,editor:O,onResize:O.resize.bind(O,null)};return S&&(F.textarea=S),O.on("destroy",function(){F.editor.container.env=null}),O.container.env=O.env=F,O},g.createEditSession=function(h,d){var _=new m(h,d);return _.setUndoManager(new b),_},g.Range=M,g.Editor=w,g.EditSession=m,g.UndoManager=b,g.VirtualRenderer=v,g.version=g.config.version}),function(){ace.require(["ace/ace"],function(x){x&&(x.config.init(!0),x.define=ace.define);var g=function(){return this}();!g&&typeof window!="undefined"&&(g=window),!g&&typeof self!="undefined"&&(g=self),g.ace||(g.ace=x);for(var A in x)x.hasOwnProperty(A)&&(g.ace[A]=x[A]);g.ace.default=g.ace,oe&&(oe.exports=g.ace)})}()},53687:function(oe,N,o){oe=o.nmd(oe),ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(x,g,A){"use strict";var y=x("./lib/oop"),M=x("./lib/lang"),w=x("./lib/event_emitter").EventEmitter,m=x("./editor").Editor,b=x("./virtual_renderer").VirtualRenderer,v=x("./edit_session").EditSession,h=function(_,p,S){this.BELOW=1,this.BESIDE=0,this.$container=_,this.$theme=p,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(S||1),this.$cEditor=this.$editors[0],this.on("focus",function(k){this.$cEditor=k}.bind(this))};(function(){y.implement(this,w),this.$createEditor=function(){var d=document.createElement("div");d.className=this.$editorCSS,d.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(d);var _=new m(new b(d,this.$theme));return _.on("focus",function(){this._emit("focus",_)}.bind(this)),this.$editors.push(_),_.setFontSize(this.$fontSize),_},this.setSplits=function(d){var _;if(d<1)throw"The number of splits have to be > 0!";if(d!=this.$splits){if(d>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<d;)_=this.$editors[this.$splits],this.$container.appendChild(_.container),_.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<d;)this.$createEditor(),this.$splits++}else for(;this.$splits>d;)_=this.$editors[this.$splits-1],this.$container.removeChild(_.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(d){return this.$editors[d]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(d){this.$editors.forEach(function(_){_.setTheme(d)})},this.setKeyboardHandler=function(d){this.$editors.forEach(function(_){_.setKeyboardHandler(d)})},this.forEach=function(d,_){this.$editors.forEach(d,_)},this.$fontSize="",this.setFontSize=function(d){this.$fontSize=d,this.forEach(function(_){_.setFontSize(d)})},this.$cloneSession=function(d){var _=new v(d.getDocument(),d.getMode()),p=d.getUndoManager();return _.setUndoManager(p),_.setTabSize(d.getTabSize()),_.setUseSoftTabs(d.getUseSoftTabs()),_.setOverwrite(d.getOverwrite()),_.setBreakpoints(d.getBreakpoints()),_.setUseWrapMode(d.getUseWrapMode()),_.setUseWorker(d.getUseWorker()),_.setWrapLimitRange(d.$wrapLimitRange.min,d.$wrapLimitRange.max),_.$foldData=d.$cloneFoldData(),_},this.setSession=function(d,_){var p;_==null?p=this.$cEditor:p=this.$editors[_];var S=this.$editors.some(function(k){return k.session===d});return S&&(d=this.$cloneSession(d)),p.setSession(d),d},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(d){this.$orientation!=d&&(this.$orientation=d,this.resize())},this.resize=function(){var d=this.$container.clientWidth,_=this.$container.clientHeight,p;if(this.$orientation==this.BESIDE)for(var S=d/this.$splits,k=0;k<this.$splits;k++)p=this.$editors[k],p.container.style.width=S+"px",p.container.style.top="0px",p.container.style.left=k*S+"px",p.container.style.height=_+"px",p.resize();else for(var O=_/this.$splits,k=0;k<this.$splits;k++)p=this.$editors[k],p.container.style.width=d+"px",p.container.style.top=k*O+"px",p.container.style.left="0px",p.container.style.height=O+"px",p.resize()}}).call(h.prototype),g.Split=h}),ace.define("ace/ext/split",["require","exports","module","ace/split"],function(x,g,A){"use strict";A.exports=x("../split")}),function(){ace.require(["ace/ext/split"],function(x){oe&&(oe.exports=x)})}()},35257:function(oe,N,o){"use strict";o.d(N,{mf:function(){return g}});var x=function(b){return b!==null&&typeof b=="object"},g=function(b){return typeof b=="function"},A=function(b){return typeof b=="string"},y=function(b){return typeof b=="boolean"},M=function(b){return typeof b=="number"},w=function(b){return typeof b=="undefined"}},7556:function(oe,N){"use strict";var o=!1;N.Z=o},90472:function(oe,N,o){"use strict";o.d(N,{CR:function(){return F},ev:function(){return W}});var x=function(we,me){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,pe){Pe.__proto__=pe}||function(Pe,pe){for(var Ie in pe)Object.prototype.hasOwnProperty.call(pe,Ie)&&(Pe[Ie]=pe[Ie])},x(we,me)};function g(fe,we){if(typeof we!="function"&&we!==null)throw new TypeError("Class extends value "+String(we)+" is not a constructor or null");x(fe,we);function me(){this.constructor=fe}fe.prototype=we===null?Object.create(we):(me.prototype=we.prototype,new me)}var A=function(){return A=Object.assign||function(me){for(var Pe,pe=1,Ie=arguments.length;pe<Ie;pe++){Pe=arguments[pe];for(var Je in Pe)Object.prototype.hasOwnProperty.call(Pe,Je)&&(me[Je]=Pe[Je])}return me},A.apply(this,arguments)};function y(fe,we){var me={};for(var Pe in fe)Object.prototype.hasOwnProperty.call(fe,Pe)&&we.indexOf(Pe)<0&&(me[Pe]=fe[Pe]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Pe=Object.getOwnPropertySymbols(fe);pe<Pe.length;pe++)we.indexOf(Pe[pe])<0&&Object.prototype.propertyIsEnumerable.call(fe,Pe[pe])&&(me[Pe[pe]]=fe[Pe[pe]]);return me}function M(fe,we,me,Pe){var pe=arguments.length,Ie=pe<3?we:Pe===null?Pe=Object.getOwnPropertyDescriptor(we,me):Pe,Je;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ie=Reflect.decorate(fe,we,me,Pe);else for(var ke=fe.length-1;ke>=0;ke--)(Je=fe[ke])&&(Ie=(pe<3?Je(Ie):pe>3?Je(we,me,Ie):Je(we,me))||Ie);return pe>3&&Ie&&Object.defineProperty(we,me,Ie),Ie}function w(fe,we){return function(me,Pe){we(me,Pe,fe)}}function m(fe,we,me,Pe,pe,Ie){function Je(Vt){if(Vt!==void 0&&typeof Vt!="function")throw new TypeError("Function expected");return Vt}for(var ke=Pe.kind,De=ke==="getter"?"get":ke==="setter"?"set":"value",Fe=!we&&fe?Pe.static?fe:fe.prototype:null,Qe=we||(Fe?Object.getOwnPropertyDescriptor(Fe,Pe.name):{}),qe,et=!1,dt=me.length-1;dt>=0;dt--){var Ke={};for(var Ge in Pe)Ke[Ge]=Ge==="access"?{}:Pe[Ge];for(var Ge in Pe.access)Ke.access[Ge]=Pe.access[Ge];Ke.addInitializer=function(Vt){if(et)throw new TypeError("Cannot add initializers after decoration has completed");Ie.push(Je(Vt||null))};var wt=(0,me[dt])(ke==="accessor"?{get:Qe.get,set:Qe.set}:Qe[De],Ke);if(ke==="accessor"){if(wt===void 0)continue;if(wt===null||typeof wt!="object")throw new TypeError("Object expected");(qe=Je(wt.get))&&(Qe.get=qe),(qe=Je(wt.set))&&(Qe.set=qe),(qe=Je(wt.init))&&pe.unshift(qe)}else(qe=Je(wt))&&(ke==="field"?pe.unshift(qe):Qe[De]=qe)}Fe&&Object.defineProperty(Fe,Pe.name,Qe),et=!0}function b(fe,we,me){for(var Pe=arguments.length>2,pe=0;pe<we.length;pe++)me=Pe?we[pe].call(fe,me):we[pe].call(fe);return Pe?me:void 0}function v(fe){return typeof fe=="symbol"?fe:"".concat(fe)}function h(fe,we,me){return typeof we=="symbol"&&(we=we.description?"[".concat(we.description,"]"):""),Object.defineProperty(fe,"name",{configurable:!0,value:me?"".concat(me," ",we):we})}function d(fe,we){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(fe,we)}function _(fe,we,me,Pe){function pe(Ie){return Ie instanceof me?Ie:new me(function(Je){Je(Ie)})}return new(me||(me=Promise))(function(Ie,Je){function ke(Qe){try{Fe(Pe.next(Qe))}catch(qe){Je(qe)}}function De(Qe){try{Fe(Pe.throw(Qe))}catch(qe){Je(qe)}}function Fe(Qe){Qe.done?Ie(Qe.value):pe(Qe.value).then(ke,De)}Fe((Pe=Pe.apply(fe,we||[])).next())})}function p(fe,we){var me={label:0,sent:function(){if(Ie[0]&1)throw Ie[1];return Ie[1]},trys:[],ops:[]},Pe,pe,Ie,Je;return Je={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(Je[Symbol.iterator]=function(){return this}),Je;function ke(Fe){return function(Qe){return De([Fe,Qe])}}function De(Fe){if(Pe)throw new TypeError("Generator is already executing.");for(;Je&&(Je=0,Fe[0]&&(me=0)),me;)try{if(Pe=1,pe&&(Ie=Fe[0]&2?pe.return:Fe[0]?pe.throw||((Ie=pe.return)&&Ie.call(pe),0):pe.next)&&!(Ie=Ie.call(pe,Fe[1])).done)return Ie;switch(pe=0,Ie&&(Fe=[Fe[0]&2,Ie.value]),Fe[0]){case 0:case 1:Ie=Fe;break;case 4:return me.label++,{value:Fe[1],done:!1};case 5:me.label++,pe=Fe[1],Fe=[0];continue;case 7:Fe=me.ops.pop(),me.trys.pop();continue;default:if(Ie=me.trys,!(Ie=Ie.length>0&&Ie[Ie.length-1])&&(Fe[0]===6||Fe[0]===2)){me=0;continue}if(Fe[0]===3&&(!Ie||Fe[1]>Ie[0]&&Fe[1]<Ie[3])){me.label=Fe[1];break}if(Fe[0]===6&&me.label<Ie[1]){me.label=Ie[1],Ie=Fe;break}if(Ie&&me.label<Ie[2]){me.label=Ie[2],me.ops.push(Fe);break}Ie[2]&&me.ops.pop(),me.trys.pop();continue}Fe=we.call(fe,me)}catch(Qe){Fe=[6,Qe],pe=0}finally{Pe=Ie=0}if(Fe[0]&5)throw Fe[1];return{value:Fe[0]?Fe[1]:void 0,done:!0}}}var S=Object.create?function(fe,we,me,Pe){Pe===void 0&&(Pe=me);var pe=Object.getOwnPropertyDescriptor(we,me);(!pe||("get"in pe?!we.__esModule:pe.writable||pe.configurable))&&(pe={enumerable:!0,get:function(){return we[me]}}),Object.defineProperty(fe,Pe,pe)}:function(fe,we,me,Pe){Pe===void 0&&(Pe=me),fe[Pe]=we[me]};function k(fe,we){for(var me in fe)me!=="default"&&!Object.prototype.hasOwnProperty.call(we,me)&&S(we,fe,me)}function O(fe){var we=typeof Symbol=="function"&&Symbol.iterator,me=we&&fe[we],Pe=0;if(me)return me.call(fe);if(fe&&typeof fe.length=="number")return{next:function(){return fe&&Pe>=fe.length&&(fe=void 0),{value:fe&&fe[Pe++],done:!fe}}};throw new TypeError(we?"Object is not iterable.":"Symbol.iterator is not defined.")}function F(fe,we){var me=typeof Symbol=="function"&&fe[Symbol.iterator];if(!me)return fe;var Pe=me.call(fe),pe,Ie=[],Je;try{for(;(we===void 0||we-- >0)&&!(pe=Pe.next()).done;)Ie.push(pe.value)}catch(ke){Je={error:ke}}finally{try{pe&&!pe.done&&(me=Pe.return)&&me.call(Pe)}finally{if(Je)throw Je.error}}return Ie}function D(){for(var fe=[],we=0;we<arguments.length;we++)fe=fe.concat(F(arguments[we]));return fe}function Z(){for(var fe=0,we=0,me=arguments.length;we<me;we++)fe+=arguments[we].length;for(var Pe=Array(fe),pe=0,we=0;we<me;we++)for(var Ie=arguments[we],Je=0,ke=Ie.length;Je<ke;Je++,pe++)Pe[pe]=Ie[Je];return Pe}function W(fe,we,me){if(me||arguments.length===2)for(var Pe=0,pe=we.length,Ie;Pe<pe;Pe++)(Ie||!(Pe in we))&&(Ie||(Ie=Array.prototype.slice.call(we,0,Pe)),Ie[Pe]=we[Pe]);return fe.concat(Ie||Array.prototype.slice.call(we))}function U(fe){return this instanceof U?(this.v=fe,this):new U(fe)}function L(fe,we,me){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Pe=me.apply(fe,we||[]),pe,Ie=[];return pe={},Je("next"),Je("throw"),Je("return"),pe[Symbol.asyncIterator]=function(){return this},pe;function Je(et){Pe[et]&&(pe[et]=function(dt){return new Promise(function(Ke,Ge){Ie.push([et,dt,Ke,Ge])>1||ke(et,dt)})})}function ke(et,dt){try{De(Pe[et](dt))}catch(Ke){qe(Ie[0][3],Ke)}}function De(et){et.value instanceof U?Promise.resolve(et.value.v).then(Fe,Qe):qe(Ie[0][2],et)}function Fe(et){ke("next",et)}function Qe(et){ke("throw",et)}function qe(et,dt){et(dt),Ie.shift(),Ie.length&&ke(Ie[0][0],Ie[0][1])}}function V(fe){var we,me;return we={},Pe("next"),Pe("throw",function(pe){throw pe}),Pe("return"),we[Symbol.iterator]=function(){return this},we;function Pe(pe,Ie){we[pe]=fe[pe]?function(Je){return(me=!me)?{value:U(fe[pe](Je)),done:!1}:Ie?Ie(Je):Je}:Ie}}function $(fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var we=fe[Symbol.asyncIterator],me;return we?we.call(fe):(fe=typeof O=="function"?O(fe):fe[Symbol.iterator](),me={},Pe("next"),Pe("throw"),Pe("return"),me[Symbol.asyncIterator]=function(){return this},me);function Pe(Ie){me[Ie]=fe[Ie]&&function(Je){return new Promise(function(ke,De){Je=fe[Ie](Je),pe(ke,De,Je.done,Je.value)})}}function pe(Ie,Je,ke,De){Promise.resolve(De).then(function(Fe){Ie({value:Fe,done:ke})},Je)}}function G(fe,we){return Object.defineProperty?Object.defineProperty(fe,"raw",{value:we}):fe.raw=we,fe}var z=Object.create?function(fe,we){Object.defineProperty(fe,"default",{enumerable:!0,value:we})}:function(fe,we){fe.default=we};function K(fe){if(fe&&fe.__esModule)return fe;var we={};if(fe!=null)for(var me in fe)me!=="default"&&Object.prototype.hasOwnProperty.call(fe,me)&&S(we,fe,me);return z(we,fe),we}function re(fe){return fe&&fe.__esModule?fe:{default:fe}}function ne(fe,we,me,Pe){if(me==="a"&&!Pe)throw new TypeError("Private accessor was defined without a getter");if(typeof we=="function"?fe!==we||!Pe:!we.has(fe))throw new TypeError("Cannot read private member from an object whose class did not declare it");return me==="m"?Pe:me==="a"?Pe.call(fe):Pe?Pe.value:we.get(fe)}function Q(fe,we,me,Pe,pe){if(Pe==="m")throw new TypeError("Private method is not writable");if(Pe==="a"&&!pe)throw new TypeError("Private accessor was defined without a setter");if(typeof we=="function"?fe!==we||!pe:!we.has(fe))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Pe==="a"?pe.call(fe,me):pe?pe.value=me:we.set(fe,me),me}function ue(fe,we){if(we===null||typeof we!="object"&&typeof we!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof fe=="function"?we===fe:fe.has(we)}function he(fe,we,me){if(we!=null){if(typeof we!="object"&&typeof we!="function")throw new TypeError("Object expected.");var Pe;if(me){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");Pe=we[Symbol.asyncDispose]}if(Pe===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");Pe=we[Symbol.dispose]}if(typeof Pe!="function")throw new TypeError("Object not disposable.");fe.stack.push({value:we,dispose:Pe,async:me})}else me&&fe.stack.push({async:!0});return we}var Ee=typeof SuppressedError=="function"?SuppressedError:function(fe,we,me){var Pe=new Error(me);return Pe.name="SuppressedError",Pe.error=fe,Pe.suppressed=we,Pe};function ce(fe){function we(Pe){fe.error=fe.hasError?new Ee(Pe,fe.error,"An error was suppressed during disposal."):Pe,fe.hasError=!0}function me(){for(;fe.stack.length;){var Pe=fe.stack.pop();try{var pe=Pe.dispose&&Pe.dispose.call(Pe.value);if(Pe.async)return Promise.resolve(pe).then(me,function(Ie){return we(Ie),me()})}catch(Ie){we(Ie)}}if(fe.hasError)throw fe.error}return me()}var ve={__extends:g,__assign:A,__rest:y,__decorate:M,__param:w,__metadata:d,__awaiter:_,__generator:p,__createBinding:S,__exportStar:k,__values:O,__read:F,__spread:D,__spreadArrays:Z,__spreadArray:W,__await:U,__asyncGenerator:L,__asyncDelegator:V,__asyncValues:$,__makeTemplateObject:G,__importStar:K,__importDefault:re,__classPrivateFieldGet:ne,__classPrivateFieldSet:Q,__classPrivateFieldIn:ue,__addDisposableResource:he,__disposeResources:ce}},25769:function(oe,N,o){"use strict";var x=o(22122),g=o(28481),A=o(47066),y=o(67294),M=o(48429),w=o(17870);function m(v){return!!(v&&!!v.then)}var b=function(h){var d=y.useRef(!1),_=y.useRef(null),p=(0,A.Z)(!1),S=(0,g.Z)(p,2),k=S[0],O=S[1],F=h.close,D=function(){F==null||F.apply(void 0,arguments)};y.useEffect(function(){var G=null;return h.autoFocus&&(G=setTimeout(function(){var z;(z=_.current)===null||z===void 0||z.focus()})),function(){G&&clearTimeout(G)}},[]);var Z=function(z){!m(z)||(O(!0),z.then(function(){O(!1,!0),D.apply(void 0,arguments),d.current=!1},function(K){return O(!1,!0),d.current=!1,Promise.reject(K)}))},W=function(z){var K=h.actionFn;if(!d.current){if(d.current=!0,!K){D();return}var re;if(h.emitEvent){if(re=K(z),h.quitOnNullishReturnValue&&!m(re)){d.current=!1,D(z);return}}else if(K.length)re=K(F),d.current=!1;else if(re=K(),!re){D();return}Z(re)}},U=h.type,L=h.children,V=h.prefixCls,$=h.buttonProps;return y.createElement(M.Z,(0,x.Z)({},(0,w.n)(U),{onClick:W,loading:k,prefixCls:V},$,{ref:_}),L)};N.Z=b},89591:function(oe,N,o){"use strict";o.d(N,{E:function(){return g},Y:function(){return A}});var x=o(4381),g=(0,x.b)("success","processing","error","default","warning"),A=(0,x.b)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},42476:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g){return Object.keys(g).reduce(function(A,y){return(y.startsWith("data-")||y.startsWith("aria-")||y==="role")&&!y.startsWith("data-__")&&(A[y]=g[y]),A},{})}},95832:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});var x=function(A){return A?typeof A=="function"?A():A:null}},75675:function(oe,N,o){"use strict";var x=o(28481),g=o(67294),A=o(55835);N.Z=function(){var y=g.useState(!1),M=(0,x.Z)(y,2),w=M[0],m=M[1];return g.useEffect(function(){m((0,A.fk)())},[]),w}},72370:function(oe,N,o){"use strict";o.d(N,{Z:function(){return A}});var x=o(28481),g=o(67294);function A(){var y=g.useReducer(function(m){return m+1},0),M=(0,x.Z)(y,2),w=M[1];return w}},31064:function(oe,N,o){"use strict";o.d(N,{mL:function(){return v},q0:function(){return b}});var x=o(4381),g=function(){return{height:0,opacity:0}},A=function(d){var _=d.scrollHeight;return{height:_,opacity:1}},y=function(d){return{height:d?d.offsetHeight:0}},M=function(d,_){return(_==null?void 0:_.deadline)===!0||_.propertyName==="height"},w={motionName:"ant-motion-collapse",onAppearStart:g,onEnterStart:g,onAppearActive:A,onEnterActive:A,onLeaveStart:y,onLeaveActive:g,onAppearEnd:M,onEnterEnd:M,onLeaveEnd:M,motionDeadline:500},m=(0,x.b)("bottomLeft","bottomRight","topLeft","topRight"),b=function(d){return d!==void 0&&(d==="topLeft"||d==="topRight")?"slide-down":"slide-up"},v=function(d,_,p){return p!==void 0?p:"".concat(d,"-").concat(_)};N.ZP=w},19405:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(22122),g=o(81412),A={adjustX:1,adjustY:1},y={adjustX:0,adjustY:0},M=[0,0];function w(b){return typeof b=="boolean"?b?A:y:(0,x.Z)((0,x.Z)({},y),b)}function m(b){var v=b.arrowWidth,h=v===void 0?4:v,d=b.horizontalArrowShift,_=d===void 0?16:d,p=b.verticalArrowShift,S=p===void 0?8:p,k=b.autoAdjustOverflow,O=b.arrowPointAtCenter,F={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(_+h),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(S+h)]},topRight:{points:["br","tc"],offset:[_+h,-4]},rightTop:{points:["tl","cr"],offset:[4,-(S+h)]},bottomRight:{points:["tr","bc"],offset:[_+h,4]},rightBottom:{points:["bl","cr"],offset:[4,S+h]},bottomLeft:{points:["tl","bc"],offset:[-(_+h),4]},leftBottom:{points:["br","cl"],offset:[-4,S+h]}};return Object.keys(F).forEach(function(D){F[D]=O?(0,x.Z)((0,x.Z)({},F[D]),{overflow:w(k),targetOffset:M}):(0,x.Z)((0,x.Z)({},g.C[D]),{overflow:w(k)}),F[D].ignoreShake=!0}),F}},75447:function(oe,N,o){"use strict";o.d(N,{l$:function(){return g},M2:function(){return A},wm:function(){return y},Tm:function(){return M}});var x=o(67294),g=x.isValidElement;function A(w){return w&&g(w)&&w.type===x.Fragment}function y(w,m,b){return g(w)?x.cloneElement(w,typeof b=="function"?b(w.props||{}):b):m}function M(w,m){return y(w,w,m)}},85748:function(oe,N,o){"use strict";o.d(N,{c4:function(){return A}});var x=o(96156),g=o(22122),A=["xxl","xl","lg","md","sm","xs"],y={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},M=new Map,w=-1,m={},b={matchHandlers:{},dispatch:function(h){return m=h,M.forEach(function(d){return d(m)}),M.size>=1},subscribe:function(h){return M.size||this.register(),w+=1,M.set(w,h),h(m),w},unsubscribe:function(h){M.delete(h),M.size||this.unregister()},unregister:function(){var h=this;Object.keys(y).forEach(function(d){var _=y[d],p=h.matchHandlers[_];p==null||p.mql.removeListener(p==null?void 0:p.listener)}),M.clear()},register:function(){var h=this;Object.keys(y).forEach(function(d){var _=y[d],p=function(O){var F=O.matches;h.dispatch((0,g.Z)((0,g.Z)({},m),(0,x.Z)({},d,F)))},S=window.matchMedia(_);S.addListener(p),h.matchHandlers[_]={mql:S,listener:p},p(S)})}};N.ZP=b},16786:function(oe,N,o){"use strict";o.d(N,{Z:function(){return w},F:function(){return m}});var x=o(96156),g=o(35510),A=o.n(g),y=o(4381),M=(0,y.b)("warning","error","");function w(b,v,h){var d;return A()((d={},(0,x.Z)(d,"".concat(b,"-status-success"),v==="success"),(0,x.Z)(d,"".concat(b,"-status-warning"),v==="warning"),(0,x.Z)(d,"".concat(b,"-status-error"),v==="error"),(0,x.Z)(d,"".concat(b,"-status-validating"),v==="validating"),(0,x.Z)(d,"".concat(b,"-has-feedback"),h),d))}var m=function(v,h){return h||v}},55835:function(oe,N,o){"use strict";o.d(N,{jD:function(){return g},fk:function(){return y}});var x=o(70140),g=function(){return(0,x.Z)()&&window.document.documentElement},A,y=function(){if(!g())return!1;if(A!==void 0)return A;var w=document.createElement("div");return w.style.display="flex",w.style.flexDirection="column",w.style.rowGap="1px",w.appendChild(document.createElement("div")),w.appendChild(document.createElement("div")),document.body.appendChild(w),A=w.scrollHeight===1,document.body.removeChild(w),A}},21105:function(oe,N,o){"use strict";var x=o(22122),g=o(18209),A=o(67294),y=function(m,b){var v={};for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&b.indexOf(h)<0&&(v[h]=m[h]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,h=Object.getOwnPropertySymbols(m);d<h.length;d++)b.indexOf(h[d])<0&&Object.prototype.propertyIsEnumerable.call(m,h[d])&&(v[h[d]]=m[h[d]]);return v},M={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},w=A.forwardRef(function(m,b){var v=function(F){var D=F.keyCode;D===g.Z.ENTER&&F.preventDefault()},h=function(F){var D=F.keyCode,Z=m.onClick;D===g.Z.ENTER&&Z&&Z()},d=m.style,_=m.noStyle,p=m.disabled,S=y(m,["style","noStyle","disabled"]),k={};return _||(k=(0,x.Z)({},M)),p&&(k.pointerEvents="none"),k=(0,x.Z)((0,x.Z)({},k),d),A.createElement("div",(0,x.Z)({role:"button",tabIndex:0,ref:b},S,{onKeyDown:v,onKeyUp:h,style:k}))});N.Z=w},4381:function(oe,N,o){"use strict";o.d(N,{b:function(){return x},a:function(){return g}});var x=function(){for(var y=arguments.length,M=new Array(y),w=0;w<y;w++)M[w]=arguments[w];return M},g=function(){for(var y=arguments.length,M=new Array(y),w=0;w<y;w++)M[w]=arguments[w];return M}},77067:function(oe,N,o){"use strict";o.d(N,{Z:function(){return W}});var x=o(6610),g=o(5991),A=o(63349),y=o(10379),M=o(44144),w=o(34887),m=o(99182),b=o(67294),v=o(9054),h=o(28101),d=0,_={};function p(U){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,V=d++,$=L;function G(){$-=1,$<=0?(U(),delete _[V]):_[V]=(0,h.Z)(G)}return _[V]=(0,h.Z)(G),V}p.cancel=function(L){L!==void 0&&(h.Z.cancel(_[L]),delete _[L])},p.ids=_;var S=o(75447),k;function O(U){return!U||U.offsetParent===null||U.hidden}function F(U){return U instanceof Document?U.body:Array.from(U.childNodes).find(function(L){return(L==null?void 0:L.nodeType)===Node.ELEMENT_NODE})}function D(U){var L=(U||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return L&&L[1]&&L[2]&&L[3]?!(L[1]===L[2]&&L[2]===L[3]):!0}var Z=function(U){(0,y.Z)(V,U);var L=(0,M.Z)(V);function V(){var $;return(0,x.Z)(this,V),$=L.apply(this,arguments),$.containerRef=b.createRef(),$.animationStart=!1,$.destroyed=!1,$.onClick=function(G,z){var K,re,ne=$.props,Q=ne.insertExtraNode,ue=ne.disabled;if(!(ue||!G||O(G)||G.className.includes("-leave"))){$.extraNode=document.createElement("div");var he=(0,A.Z)($),Ee=he.extraNode,ce=$.context.getPrefixCls;Ee.className="".concat(ce(""),"-click-animating-node");var ve=$.getAttributeName();if(G.setAttribute(ve,"true"),z&&z!=="#fff"&&z!=="#ffffff"&&z!=="rgb(255, 255, 255)"&&z!=="rgba(255, 255, 255, 1)"&&D(z)&&!/rgba\((?:\d*, ){3}0\)/.test(z)&&z!=="transparent"){Ee.style.borderColor=z;var fe=((K=G.getRootNode)===null||K===void 0?void 0:K.call(G))||G.ownerDocument,we=(re=F(fe))!==null&&re!==void 0?re:fe;k=(0,w.hq)(`
|
||
[`.concat(ce(""),"-click-animating-without-extra-node='true']::after, .").concat(ce(""),`-click-animating-node {
|
||
--antd-wave-shadow-color: `).concat(z,`;
|
||
}`),"antd-wave",{csp:$.csp,attachTo:we})}Q&&G.appendChild(Ee),["transition","animation"].forEach(function(me){G.addEventListener("".concat(me,"start"),$.onTransitionStart),G.addEventListener("".concat(me,"end"),$.onTransitionEnd)})}},$.onTransitionStart=function(G){if(!$.destroyed){var z=$.containerRef.current;!G||G.target!==z||$.animationStart||$.resetEffect(z)}},$.onTransitionEnd=function(G){!G||G.animationName!=="fadeEffect"||$.resetEffect(G.target)},$.bindAnimationEvent=function(G){if(!(!G||!G.getAttribute||G.getAttribute("disabled")||G.className.includes("disabled"))){var z=function(re){if(!(re.target.tagName==="INPUT"||O(re.target))){$.resetEffect(G);var ne=getComputedStyle(G).getPropertyValue("border-top-color")||getComputedStyle(G).getPropertyValue("border-color")||getComputedStyle(G).getPropertyValue("background-color");$.clickWaveTimeoutId=window.setTimeout(function(){return $.onClick(G,ne)},0),p.cancel($.animationStartId),$.animationStart=!0,$.animationStartId=p(function(){$.animationStart=!1},10)}};return G.addEventListener("click",z,!0),{cancel:function(){G.removeEventListener("click",z,!0)}}}},$.renderWave=function(G){var z=G.csp,K=$.props.children;if($.csp=z,!b.isValidElement(K))return K;var re=$.containerRef;return(0,m.Yr)(K)&&(re=(0,m.sQ)(K.ref,$.containerRef)),(0,S.Tm)(K,{ref:re})},$}return(0,g.Z)(V,[{key:"componentDidMount",value:function(){this.destroyed=!1;var G=this.containerRef.current;!G||G.nodeType!==1||(this.instance=this.bindAnimationEvent(G))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var G=this.context.getPrefixCls,z=this.props.insertExtraNode;return z?"".concat(G(""),"-click-animating"):"".concat(G(""),"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(G){var z=this;if(!(!G||G===this.extraNode||!(G instanceof Element))){var K=this.props.insertExtraNode,re=this.getAttributeName();G.setAttribute(re,"false"),k&&(k.innerHTML=""),K&&this.extraNode&&G.contains(this.extraNode)&&G.removeChild(this.extraNode),["transition","animation"].forEach(function(ne){G.removeEventListener("".concat(ne,"start"),z.onTransitionStart),G.removeEventListener("".concat(ne,"end"),z.onTransitionEnd)})}}},{key:"render",value:function(){return b.createElement(v.C,null,this.renderWave)}}]),V}(b.Component);Z.contextType=v.E_;var W=Z},43732:function(oe,N,o){"use strict";o.d(N,{Z:function(){return he}});var x=o(22122),g=o(28481),A=o(96156),y=o(38819),M=o(15873),w=o(43061),m=o(73218),b=o(54549),v=o(68855),h=o(57119),d=o(40847),_=o(56717),p=o(35510),S=o.n(p),k=o(90190),O=o(67294),F=o(9054),D=o(42476),Z=o(75447),W=o(6610),U=o(5991),L=o(10379),V=o(44144),$=function(Ee){(0,L.Z)(ve,Ee);var ce=(0,V.Z)(ve);function ve(){var fe;return(0,W.Z)(this,ve),fe=ce.apply(this,arguments),fe.state={error:void 0,info:{componentStack:""}},fe}return(0,U.Z)(ve,[{key:"componentDidCatch",value:function(we,me){this.setState({error:we,info:me})}},{key:"render",value:function(){var we=this.props,me=we.message,Pe=we.description,pe=we.children,Ie=this.state,Je=Ie.error,ke=Ie.info,De=ke&&ke.componentStack?ke.componentStack:null,Fe=typeof me=="undefined"?(Je||"").toString():me,Qe=typeof Pe=="undefined"?De:Pe;return Je?O.createElement(he,{type:"error",message:Fe,description:O.createElement("pre",null,Qe)}):pe}}]),ve}(O.Component),G=$,z=function(Ee,ce){var ve={};for(var fe in Ee)Object.prototype.hasOwnProperty.call(Ee,fe)&&ce.indexOf(fe)<0&&(ve[fe]=Ee[fe]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,fe=Object.getOwnPropertySymbols(Ee);we<fe.length;we++)ce.indexOf(fe[we])<0&&Object.prototype.propertyIsEnumerable.call(Ee,fe[we])&&(ve[fe[we]]=Ee[fe[we]]);return ve},K={success:y.Z,info:d.Z,error:w.Z,warning:v.Z},re={success:M.Z,info:_.Z,error:m.Z,warning:h.Z},ne=function(ce){var ve=ce.description,fe=ce.icon,we=ce.prefixCls,me=ce.type,Pe=(ve?re:K)[me]||null;return fe?(0,Z.wm)(fe,O.createElement("span",{className:"".concat(we,"-icon")},fe),function(){return{className:S()("".concat(we,"-icon"),(0,A.Z)({},fe.props.className,fe.props.className))}}):O.createElement(Pe,{className:"".concat(we,"-icon")})},Q=function(ce){var ve=ce.isClosable,fe=ce.closeText,we=ce.prefixCls,me=ce.closeIcon,Pe=ce.handleClose;return ve?O.createElement("button",{type:"button",onClick:Pe,className:"".concat(we,"-close-icon"),tabIndex:0},fe?O.createElement("span",{className:"".concat(we,"-close-text")},fe):me):null},ue=function(ce){var ve,fe=ce.description,we=ce.prefixCls,me=ce.message,Pe=ce.banner,pe=ce.className,Ie=pe===void 0?"":pe,Je=ce.style,ke=ce.onMouseEnter,De=ce.onMouseLeave,Fe=ce.onClick,Qe=ce.afterClose,qe=ce.showIcon,et=ce.closable,dt=ce.closeText,Ke=ce.closeIcon,Ge=Ke===void 0?O.createElement(b.Z,null):Ke,wt=ce.action,Vt=z(ce,["description","prefixCls","message","banner","className","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),gt=O.useState(!1),it=(0,g.Z)(gt,2),Le=it[0],ct=it[1],at=O.useRef(),jt=O.useContext(F.E_),St=jt.getPrefixCls,fn=jt.direction,Xt=St("alert",we),Yt=function(Et){var Ht;ct(!0),(Ht=Vt.onClose)===null||Ht===void 0||Ht.call(Vt,Et)},Rt=function(){var Et=Vt.type;return Et!==void 0?Et:Pe?"warning":"info"},Lt=dt?!0:et,ze=Rt(),rt=Pe&&qe===void 0?!0:qe,tt=S()(Xt,"".concat(Xt,"-").concat(ze),(ve={},(0,A.Z)(ve,"".concat(Xt,"-with-description"),!!fe),(0,A.Z)(ve,"".concat(Xt,"-no-icon"),!rt),(0,A.Z)(ve,"".concat(Xt,"-banner"),!!Pe),(0,A.Z)(ve,"".concat(Xt,"-rtl"),fn==="rtl"),ve),Ie),de=(0,D.Z)(Vt);return O.createElement(k.ZP,{visible:!Le,motionName:"".concat(Xt,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:function(Et){return{maxHeight:Et.offsetHeight}},onLeaveEnd:Qe},function(ot){var Et=ot.className,Ht=ot.style;return O.createElement("div",(0,x.Z)({ref:at,"data-show":!Le,className:S()(tt,Et),style:(0,x.Z)((0,x.Z)({},Je),Ht),onMouseEnter:ke,onMouseLeave:De,onClick:Fe,role:"alert"},de),rt?O.createElement(ne,{description:fe,icon:Vt.icon,prefixCls:Xt,type:ze}):null,O.createElement("div",{className:"".concat(Xt,"-content")},me?O.createElement("div",{className:"".concat(Xt,"-message")},me):null,fe?O.createElement("div",{className:"".concat(Xt,"-description")},fe):null),wt?O.createElement("div",{className:"".concat(Xt,"-action")},wt):null,O.createElement(Q,{isClosable:!!Lt,closeText:dt,prefixCls:Xt,closeIcon:Ge,handleClose:Yt}))})};ue.ErrorBoundary=G;var he=ue},12966:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(3178),y=o.n(A)},23040:function(oe,N,o){"use strict";o.d(N,{C:function(){return z}});var x=o(22122),g=o(96156),A=o(90484),y=o(28481),M=o(35510),w=o.n(M),m=o(50279),b=o(99182),v=o(67294),h=o(9054),d=o(31312),_=o(85748),p=v.createContext("default"),S=function(re){var ne=re.children,Q=re.size;return v.createElement(p.Consumer,null,function(ue){return v.createElement(p.Provider,{value:Q||ue},ne)})},k=p,O=function(K,re){var ne={};for(var Q in K)Object.prototype.hasOwnProperty.call(K,Q)&&re.indexOf(Q)<0&&(ne[Q]=K[Q]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Q=Object.getOwnPropertySymbols(K);ue<Q.length;ue++)re.indexOf(Q[ue])<0&&Object.prototype.propertyIsEnumerable.call(K,Q[ue])&&(ne[Q[ue]]=K[Q[ue]]);return ne},F=function(re,ne){var Q,ue,he=v.useContext(k),Ee=v.useState(1),ce=(0,y.Z)(Ee,2),ve=ce[0],fe=ce[1],we=v.useState(!1),me=(0,y.Z)(we,2),Pe=me[0],pe=me[1],Ie=v.useState(!0),Je=(0,y.Z)(Ie,2),ke=Je[0],De=Je[1],Fe=v.useRef(null),Qe=v.useRef(null),qe=(0,b.sQ)(ne,Fe),et=v.useContext(h.E_),dt=et.getPrefixCls,Ke=function(){if(!(!Qe.current||!Fe.current)){var er=Qe.current.offsetWidth,rr=Fe.current.offsetWidth;if(er!==0&&rr!==0){var nt=re.gap,lr=nt===void 0?4:nt;lr*2<rr&&fe(rr-lr*2<er?(rr-lr*2)/er:1)}}};v.useEffect(function(){pe(!0)},[]),v.useEffect(function(){De(!0),fe(1)},[re.src]),v.useEffect(function(){Ke()},[re.gap]);var Ge=function(){var er=re.onError,rr=er?er():void 0;rr!==!1&&De(!1)},wt=re.prefixCls,Vt=re.shape,gt=Vt===void 0?"circle":Vt,it=re.size,Le=it===void 0?"default":it,ct=re.src,at=re.srcSet,jt=re.icon,St=re.className,fn=re.alt,Xt=re.draggable,Yt=re.children,Rt=re.crossOrigin,Lt=O(re,["prefixCls","shape","size","src","srcSet","icon","className","alt","draggable","children","crossOrigin"]),ze=Le==="default"?he:Le,rt=Object.keys((0,A.Z)(ze)==="object"?ze||{}:{}).some(function(cn){return["xs","sm","md","lg","xl","xxl"].includes(cn)}),tt=(0,d.Z)(rt),de=v.useMemo(function(){if((0,A.Z)(ze)!=="object")return{};var cn=_.c4.find(function(rr){return tt[rr]}),er=ze[cn];return er?{width:er,height:er,lineHeight:"".concat(er,"px"),fontSize:jt?er/2:18}:{}},[tt,ze]),ot=dt("avatar",wt),Et=w()((Q={},(0,g.Z)(Q,"".concat(ot,"-lg"),ze==="large"),(0,g.Z)(Q,"".concat(ot,"-sm"),ze==="small"),Q)),Ht=v.isValidElement(ct),Jt=w()(ot,Et,(ue={},(0,g.Z)(ue,"".concat(ot,"-").concat(gt),!!gt),(0,g.Z)(ue,"".concat(ot,"-image"),Ht||ct&&ke),(0,g.Z)(ue,"".concat(ot,"-icon"),!!jt),ue),St),Qt=typeof ze=="number"?{width:ze,height:ze,lineHeight:"".concat(ze,"px"),fontSize:jt?ze/2:18}:{},an;if(typeof ct=="string"&&ke)an=v.createElement("img",{src:ct,draggable:Xt,srcSet:at,onError:Ge,alt:fn,crossOrigin:Rt});else if(Ht)an=ct;else if(jt)an=jt;else if(Pe||ve!==1){var Un="scale(".concat(ve,") translateX(-50%)"),qt={msTransform:Un,WebkitTransform:Un,transform:Un},rn=typeof ze=="number"?{lineHeight:"".concat(ze,"px")}:{};an=v.createElement(m.default,{onResize:Ke},v.createElement("span",{className:"".concat(ot,"-string"),ref:Qe,style:(0,x.Z)((0,x.Z)({},rn),qt)},Yt))}else an=v.createElement("span",{className:"".concat(ot,"-string"),style:{opacity:0},ref:Qe},Yt);return delete Lt.onError,delete Lt.gap,v.createElement("span",(0,x.Z)({},Lt,{style:(0,x.Z)((0,x.Z)((0,x.Z)({},Qt),de),Lt.style),className:Jt,ref:qe}),an)},D=v.forwardRef(F),Z=D,W=o(83025),U=o(56466),L=o(75447),V=function(re){var ne=v.useContext(h.E_),Q=ne.getPrefixCls,ue=ne.direction,he=re.prefixCls,Ee=re.className,ce=Ee===void 0?"":Ee,ve=re.maxCount,fe=re.maxStyle,we=re.size,me=Q("avatar-group",he),Pe=w()(me,(0,g.Z)({},"".concat(me,"-rtl"),ue==="rtl"),ce),pe=re.children,Ie=re.maxPopoverPlacement,Je=Ie===void 0?"top":Ie,ke=re.maxPopoverTrigger,De=ke===void 0?"hover":ke,Fe=(0,W.Z)(pe).map(function(dt,Ke){return(0,L.Tm)(dt,{key:"avatar-key-".concat(Ke)})}),Qe=Fe.length;if(ve&&ve<Qe){var qe=Fe.slice(0,ve),et=Fe.slice(ve,Qe);return qe.push(v.createElement(U.Z,{key:"avatar-popover-key",content:et,trigger:De,placement:Je,overlayClassName:"".concat(me,"-popover")},v.createElement(Z,{style:fe},"+".concat(Qe-ve)))),v.createElement(S,{size:we},v.createElement("div",{className:Pe,style:re.style},qe))}return v.createElement(S,{size:we},v.createElement("div",{className:Pe,style:re.style},Fe))},$=V,G=Z;G.Group=$;var z=G},90930:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(52683),y=o.n(A),M=o(34276)},17870:function(oe,N,o){"use strict";o.d(N,{n:function(){return fe},Z:function(){return Pe}});var x=o(22122),g=o(96156),A=o(28481),y=o(90484),M=o(35510),w=o.n(M),m=o(69252),b=o(67294),v=o(9054),h=o(99469),d=o(10772),_=o(1358),p=o(75447),S=o(4381),k=o(77067),O=function(pe,Ie){var Je={};for(var ke in pe)Object.prototype.hasOwnProperty.call(pe,ke)&&Ie.indexOf(ke)<0&&(Je[ke]=pe[ke]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ke=Object.getOwnPropertySymbols(pe);De<ke.length;De++)Ie.indexOf(ke[De])<0&&Object.prototype.propertyIsEnumerable.call(pe,ke[De])&&(Je[ke[De]]=pe[ke[De]]);return Je},F=b.createContext(void 0),D=function(Ie){var Je,ke=b.useContext(v.E_),De=ke.getPrefixCls,Fe=ke.direction,Qe=Ie.prefixCls,qe=Ie.size,et=Ie.className,dt=O(Ie,["prefixCls","size","className"]),Ke=De("btn-group",Qe),Ge="";switch(qe){case"large":Ge="lg";break;case"small":Ge="sm";break;case"middle":case void 0:break;default:}var wt=w()(Ke,(Je={},(0,g.Z)(Je,"".concat(Ke,"-").concat(Ge),Ge),(0,g.Z)(Je,"".concat(Ke,"-rtl"),Fe==="rtl"),Je),et);return b.createElement(F.Provider,{value:qe},b.createElement("div",(0,x.Z)({},dt,{className:wt})))},Z=D,W=o(7085),U=o(90190),L=function(){return{width:0,opacity:0,transform:"scale(0)"}},V=function(Ie){return{width:Ie.scrollWidth,opacity:1,transform:"scale(1)"}},$=function(Ie){var Je=Ie.prefixCls,ke=Ie.loading,De=Ie.existIcon,Fe=!!ke;return De?b.createElement("span",{className:"".concat(Je,"-loading-icon")},b.createElement(W.Z,null)):b.createElement(U.ZP,{visible:Fe,motionName:"".concat(Je,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:L,onAppearActive:V,onEnterStart:L,onEnterActive:V,onLeaveStart:V,onLeaveActive:L},function(Qe,qe){var et=Qe.className,dt=Qe.style;return b.createElement("span",{className:"".concat(Je,"-loading-icon"),style:dt,ref:qe},b.createElement(W.Z,{className:et}))})},G=$,z=function(pe,Ie){var Je={};for(var ke in pe)Object.prototype.hasOwnProperty.call(pe,ke)&&Ie.indexOf(ke)<0&&(Je[ke]=pe[ke]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ke=Object.getOwnPropertySymbols(pe);De<ke.length;De++)Ie.indexOf(ke[De])<0&&Object.prototype.propertyIsEnumerable.call(pe,ke[De])&&(Je[ke[De]]=pe[ke[De]]);return Je},K=/^[\u4e00-\u9fa5]{2}$/,re=K.test.bind(K);function ne(pe){return typeof pe=="string"}function Q(pe){return pe==="text"||pe==="link"}function ue(pe,Ie){if(pe!=null){var Je=Ie?" ":"";return typeof pe!="string"&&typeof pe!="number"&&ne(pe.type)&&re(pe.props.children)?(0,p.Tm)(pe,{children:pe.props.children.split("").join(Je)}):typeof pe=="string"?re(pe)?b.createElement("span",null,pe.split("").join(Je)):b.createElement("span",null,pe):(0,p.M2)(pe)?b.createElement("span",null,pe):pe}}function he(pe,Ie){var Je=!1,ke=[];return b.Children.forEach(pe,function(De){var Fe=(0,y.Z)(De),Qe=Fe==="string"||Fe==="number";if(Je&&Qe){var qe=ke.length-1,et=ke[qe];ke[qe]="".concat(et).concat(De)}else ke.push(De);Je=Qe}),b.Children.map(ke,function(De){return ue(De,Ie)})}var Ee=(0,S.b)("default","primary","ghost","dashed","link","text"),ce=(0,S.b)("default","circle","round"),ve=(0,S.b)("submit","button","reset");function fe(pe){return pe==="danger"?{danger:!0}:{type:pe}}var we=function(Ie,Je){var ke,De=Ie.loading,Fe=De===void 0?!1:De,Qe=Ie.prefixCls,qe=Ie.type,et=qe===void 0?"default":qe,dt=Ie.danger,Ke=Ie.shape,Ge=Ke===void 0?"default":Ke,wt=Ie.size,Vt=Ie.disabled,gt=Ie.className,it=Ie.children,Le=Ie.icon,ct=Ie.ghost,at=ct===void 0?!1:ct,jt=Ie.block,St=jt===void 0?!1:jt,fn=Ie.htmlType,Xt=fn===void 0?"button":fn,Yt=z(Ie,["loading","prefixCls","type","danger","shape","size","disabled","className","children","icon","ghost","block","htmlType"]),Rt=b.useContext(d.Z),Lt=b.useContext(h.Z),ze=Vt!=null?Vt:Lt,rt=b.useContext(F),tt=b.useState(!!Fe),de=(0,A.Z)(tt,2),ot=de[0],Et=de[1],Ht=b.useState(!1),Jt=(0,A.Z)(Ht,2),Qt=Jt[0],an=Jt[1],Un=b.useContext(v.E_),qt=Un.getPrefixCls,rn=Un.autoInsertSpaceInButton,cn=Un.direction,er=Je||b.createRef(),rr=function(){return b.Children.count(it)===1&&!Le&&!Q(et)},nt=function(){if(!(!er||!er.current||rn===!1)){var ln=er.current.textContent;rr()&&re(ln)?Qt||an(!0):Qt&&an(!1)}},lr=typeof Fe=="boolean"?Fe:(Fe==null?void 0:Fe.delay)||!0;b.useEffect(function(){var zt=null;return typeof lr=="number"?zt=window.setTimeout(function(){zt=null,Et(lr)},lr):Et(lr),function(){zt&&(window.clearTimeout(zt),zt=null)}},[lr]),b.useEffect(nt,[er]);var Hn=function(ln){var An=Ie.onClick;if(ot||ze){ln.preventDefault();return}An==null||An(ln)},ut=qt("btn",Qe),bt=rn!==!1,We=(0,_.ri)(ut,cn),be=We.compactSize,Ae=We.compactItemClassnames,Ue={large:"lg",small:"sm",middle:void 0},$e=be||rt||wt||Rt,kt=$e&&Ue[$e]||"",lt=ot?"loading":Le,vt=(0,m.Z)(Yt,["navigate"]),Ct=w()(ut,(ke={},(0,g.Z)(ke,"".concat(ut,"-").concat(Ge),Ge!=="default"&&Ge),(0,g.Z)(ke,"".concat(ut,"-").concat(et),et),(0,g.Z)(ke,"".concat(ut,"-").concat(kt),kt),(0,g.Z)(ke,"".concat(ut,"-icon-only"),!it&&it!==0&&!!lt),(0,g.Z)(ke,"".concat(ut,"-background-ghost"),at&&!Q(et)),(0,g.Z)(ke,"".concat(ut,"-loading"),ot),(0,g.Z)(ke,"".concat(ut,"-two-chinese-chars"),Qt&&bt&&!ot),(0,g.Z)(ke,"".concat(ut,"-block"),St),(0,g.Z)(ke,"".concat(ut,"-dangerous"),!!dt),(0,g.Z)(ke,"".concat(ut,"-rtl"),cn==="rtl"),(0,g.Z)(ke,"".concat(ut,"-disabled"),vt.href!==void 0&&ze),ke),Ae,gt),Bt=Le&&!ot?Le:b.createElement(G,{existIcon:!!Le,prefixCls:ut,loading:!!ot}),mt=it||it===0?he(it,rr()&&bt):null;if(vt.href!==void 0)return b.createElement("a",(0,x.Z)({},vt,{className:Ct,onClick:Hn,ref:er}),Bt,mt);var Zt=b.createElement("button",(0,x.Z)({},Yt,{type:Xt,className:Ct,onClick:Hn,disabled:ze,ref:er}),Bt,mt);return Q(et)?Zt:b.createElement(k.Z,{disabled:!!ot},Zt)},me=b.forwardRef(we);me.Group=Z,me.__ANT_BUTTON=!0;var Pe=me},48429:function(oe,N,o){"use strict";var x=o(17870);N.Z=x.Z},13753:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(9683),y=o.n(A)},42091:function(oe,N,o){"use strict";o.d(N,{Z:function(){return V}});var x=o(96156),g=o(22122),A=o(35510),y=o.n(A),M=o(96676),w=o(67294),m=o(9054),b=o(27495),v=o(85061),h=o(28481),d=o(69252),_=function($,G){var z={};for(var K in $)Object.prototype.hasOwnProperty.call($,K)&&G.indexOf(K)<0&&(z[K]=$[K]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,K=Object.getOwnPropertySymbols($);re<K.length;re++)G.indexOf(K[re])<0&&Object.prototype.propertyIsEnumerable.call($,K[re])&&(z[K[re]]=$[K[re]]);return z},p=w.createContext(null),S=function(G,z){var K=G.defaultValue,re=G.children,ne=G.options,Q=ne===void 0?[]:ne,ue=G.prefixCls,he=G.className,Ee=G.style,ce=G.onChange,ve=_(G,["defaultValue","children","options","prefixCls","className","style","onChange"]),fe=w.useContext(m.E_),we=fe.getPrefixCls,me=fe.direction,Pe=w.useState(ve.value||K||[]),pe=(0,h.Z)(Pe,2),Ie=pe[0],Je=pe[1],ke=w.useState([]),De=(0,h.Z)(ke,2),Fe=De[0],Qe=De[1];w.useEffect(function(){"value"in ve&&Je(ve.value||[])},[ve.value]);var qe=function(){return Q.map(function(ct){return typeof ct=="string"||typeof ct=="number"?{label:ct,value:ct}:ct})},et=function(ct){Qe(function(at){return at.filter(function(jt){return jt!==ct})})},dt=function(ct){Qe(function(at){return[].concat((0,v.Z)(at),[ct])})},Ke=function(ct){var at=Ie.indexOf(ct.value),jt=(0,v.Z)(Ie);at===-1?jt.push(ct.value):jt.splice(at,1),"value"in ve||Je(jt);var St=qe();ce==null||ce(jt.filter(function(fn){return Fe.includes(fn)}).sort(function(fn,Xt){var Yt=St.findIndex(function(Lt){return Lt.value===fn}),Rt=St.findIndex(function(Lt){return Lt.value===Xt});return Yt-Rt}))},Ge=we("checkbox",ue),wt="".concat(Ge,"-group"),Vt=(0,d.Z)(ve,["value","disabled"]);Q&&Q.length>0&&(re=qe().map(function(Le){return w.createElement(U,{prefixCls:Ge,key:Le.value.toString(),disabled:"disabled"in Le?Le.disabled:ve.disabled,value:Le.value,checked:Ie.includes(Le.value),onChange:Le.onChange,className:"".concat(wt,"-item"),style:Le.style},Le.label)}));var gt={toggleOption:Ke,value:Ie,disabled:ve.disabled,name:ve.name,registerValue:dt,cancelValue:et},it=y()(wt,(0,x.Z)({},"".concat(wt,"-rtl"),me==="rtl"),he);return w.createElement("div",(0,g.Z)({className:it,style:Ee},Vt,{ref:z}),w.createElement(p.Provider,{value:gt},re))},k=w.forwardRef(S),O=w.memo(k),F=o(99469),D=function($,G){var z={};for(var K in $)Object.prototype.hasOwnProperty.call($,K)&&G.indexOf(K)<0&&(z[K]=$[K]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,K=Object.getOwnPropertySymbols($);re<K.length;re++)G.indexOf(K[re])<0&&Object.prototype.propertyIsEnumerable.call($,K[re])&&(z[K[re]]=$[K[re]]);return z},Z=function(G,z){var K,re,ne=G.prefixCls,Q=G.className,ue=G.children,he=G.indeterminate,Ee=he===void 0?!1:he,ce=G.style,ve=G.onMouseEnter,fe=G.onMouseLeave,we=G.skipGroup,me=we===void 0?!1:we,Pe=G.disabled,pe=D(G,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),Ie=w.useContext(m.E_),Je=Ie.getPrefixCls,ke=Ie.direction,De=w.useContext(p),Fe=(0,w.useContext)(b.aM),Qe=Fe.isFormItemInput,qe=(0,w.useContext)(F.Z),et=(re=(De==null?void 0:De.disabled)||Pe)!==null&&re!==void 0?re:qe,dt=w.useRef(pe.value);w.useEffect(function(){De==null||De.registerValue(pe.value)},[]),w.useEffect(function(){if(!me)return pe.value!==dt.current&&(De==null||De.cancelValue(dt.current),De==null||De.registerValue(pe.value),dt.current=pe.value),function(){return De==null?void 0:De.cancelValue(pe.value)}},[pe.value]);var Ke=Je("checkbox",ne),Ge=(0,g.Z)({},pe);De&&!me&&(Ge.onChange=function(){pe.onChange&&pe.onChange.apply(pe,arguments),De.toggleOption&&De.toggleOption({label:ue,value:pe.value})},Ge.name=De.name,Ge.checked=De.value.includes(pe.value));var wt=y()((K={},(0,x.Z)(K,"".concat(Ke,"-wrapper"),!0),(0,x.Z)(K,"".concat(Ke,"-rtl"),ke==="rtl"),(0,x.Z)(K,"".concat(Ke,"-wrapper-checked"),Ge.checked),(0,x.Z)(K,"".concat(Ke,"-wrapper-disabled"),et),(0,x.Z)(K,"".concat(Ke,"-wrapper-in-form-item"),Qe),K),Q),Vt=y()((0,x.Z)({},"".concat(Ke,"-indeterminate"),Ee)),gt=Ee?"mixed":void 0;return w.createElement("label",{className:wt,style:ce,onMouseEnter:ve,onMouseLeave:fe},w.createElement(M.Z,(0,g.Z)({"aria-checked":gt},Ge,{prefixCls:Ke,className:Vt,disabled:et,ref:z})),ue!==void 0&&w.createElement("span",null,ue))},W=w.forwardRef(Z),U=W,L=U;L.Group=O,L.__ANT_CHECKBOX=!0;var V=L},44862:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(64752),y=o.n(A)},65507:function(oe,N,o){"use strict";var x=o(18316);N.Z=x.Z},52222:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(86178)},99469:function(oe,N,o){"use strict";o.d(N,{n:function(){return A}});var x=o(67294),g=x.createContext(!1),A=function(M){var w=M.children,m=M.disabled,b=x.useContext(g);return x.createElement(g.Provider,{value:m!=null?m:b},w)};N.Z=g},10772:function(oe,N,o){"use strict";o.d(N,{q:function(){return A}});var x=o(67294),g=x.createContext(void 0),A=function(M){var w=M.children,m=M.size;return x.createElement(g.Consumer,null,function(b){return x.createElement(g.Provider,{value:m||b},w)})};N.Z=g},9054:function(oe,N,o){"use strict";o.d(N,{E_:function(){return A},C:function(){return y}});var x=o(67294),g=function(m,b){return b||(m?"ant-".concat(m):"ant")},A=x.createContext({getPrefixCls:g}),y=A.Consumer;function M(w){return function(b){var v=function(p){return React.createElement(y,null,function(S){var k=w.prefixCls,O=S.getPrefixCls,F=p.prefixCls,D=O(k,F);return React.createElement(b,_extends({},S,p,{prefixCls:D}))})},h=b.constructor,d=h&&h.displayName||b.name||"Component";return v}}},21042:function(oe,N,o){"use strict";var x=o(67294),g=o(9054),A=o(3418),y=function(w){return x.createElement(g.C,null,function(m){var b=m.getPrefixCls,v=b("empty");switch(w){case"Table":case"List":return x.createElement(A.Z,{image:A.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return x.createElement(A.Z,{image:A.Z.PRESENTED_IMAGE_SIMPLE,className:"".concat(v,"-small")});default:return x.createElement(A.Z,null)}})};N.Z=y},23799:function(oe,N,o){"use strict";o.d(N,{ZP:function(){return me},w6:function(){return ve}});var x=o(22122),g=o(63017),A=o(38854),y=o(67294),M=o(66943),w=o(70388),m=o(26016),b=o(15399),v="internalMark",h=function(pe){var Ie=pe.locale,Je=Ie===void 0?{}:Ie,ke=pe.children,De=pe._ANT_MARK__;y.useEffect(function(){return(0,m.f)(Je&&Je.Modal),function(){(0,m.f)()}},[Je]);var Fe=y.useMemo(function(){return(0,x.Z)((0,x.Z)({},Je),{exist:!0})},[Je]);return y.createElement(b.Z.Provider,{value:Fe},ke)},d=h,_=o(56701),p=o(16980),S=o(92909),k=o(84737),O=o(9054),F=o(31040),D=o(73136),Z=o(70140),W=o(34887),U="-ant-".concat(Date.now(),"-").concat(Math.random());function L(Pe,pe){var Ie={},Je=function(dt,Ke){var Ge=dt.clone();return Ge=(Ke==null?void 0:Ke(Ge))||Ge,Ge.toRgbString()},ke=function(dt,Ke){var Ge=new D.C(dt),wt=(0,F.generate)(Ge.toRgbString());Ie["".concat(Ke,"-color")]=Je(Ge),Ie["".concat(Ke,"-color-disabled")]=wt[1],Ie["".concat(Ke,"-color-hover")]=wt[4],Ie["".concat(Ke,"-color-active")]=wt[6],Ie["".concat(Ke,"-color-outline")]=Ge.clone().setAlpha(.2).toRgbString(),Ie["".concat(Ke,"-color-deprecated-bg")]=wt[0],Ie["".concat(Ke,"-color-deprecated-border")]=wt[2]};if(pe.primaryColor){ke(pe.primaryColor,"primary");var De=new D.C(pe.primaryColor),Fe=(0,F.generate)(De.toRgbString());Fe.forEach(function(et,dt){Ie["primary-".concat(dt+1)]=et}),Ie["primary-color-deprecated-l-35"]=Je(De,function(et){return et.lighten(35)}),Ie["primary-color-deprecated-l-20"]=Je(De,function(et){return et.lighten(20)}),Ie["primary-color-deprecated-t-20"]=Je(De,function(et){return et.tint(20)}),Ie["primary-color-deprecated-t-50"]=Je(De,function(et){return et.tint(50)}),Ie["primary-color-deprecated-f-12"]=Je(De,function(et){return et.setAlpha(et.getAlpha()*.12)});var Qe=new D.C(Fe[0]);Ie["primary-color-active-deprecated-f-30"]=Je(Qe,function(et){return et.setAlpha(et.getAlpha()*.3)}),Ie["primary-color-active-deprecated-d-02"]=Je(Qe,function(et){return et.darken(2)})}pe.successColor&&ke(pe.successColor,"success"),pe.warningColor&&ke(pe.warningColor,"warning"),pe.errorColor&&ke(pe.errorColor,"error"),pe.infoColor&&ke(pe.infoColor,"info");var qe=Object.keys(Ie).map(function(et){return"--".concat(Pe,"-").concat(et,": ").concat(Ie[et],";")});return`
|
||
:root {
|
||
`.concat(qe.join(`
|
||
`),`
|
||
}
|
||
`).trim()}function V(Pe,pe){var Ie=L(Pe,pe);(0,Z.Z)()&&(0,W.hq)(Ie,"".concat(U,"-dynamic-theme"))}var $=o(99469),G=o(10772),z=null,K=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form"],re="ant",ne="anticon",Q,ue;function he(){return Q||re}function Ee(){return ue||ne}var ce=function(pe){var Ie=pe.prefixCls,Je=pe.iconPrefixCls,ke=pe.theme;Ie!==void 0&&(Q=Ie),Je!==void 0&&(ue=Je),ke&&V(he(),ke)},ve=function(){return{getPrefixCls:function(Ie,Je){return Je||(Ie?"".concat(he(),"-").concat(Ie):he())},getIconPrefixCls:Ee,getRootPrefixCls:function(Ie,Je){return Ie||Q||(Je&&Je.includes("-")?Je.replace(/^(.*)-[^-]*$/,"$1"):he())}}},fe=function(pe){var Ie=pe.children,Je=pe.csp,ke=pe.autoInsertSpaceInButton,De=pe.form,Fe=pe.locale,Qe=pe.componentSize,qe=pe.direction,et=pe.space,dt=pe.virtual,Ke=pe.dropdownMatchSelectWidth,Ge=pe.legacyLocale,wt=pe.parentContext,Vt=pe.iconPrefixCls,gt=pe.componentDisabled,it=y.useCallback(function(fn,Xt){var Yt=pe.prefixCls;if(Xt)return Xt;var Rt=Yt||wt.getPrefixCls("");return fn?"".concat(Rt,"-").concat(fn):Rt},[wt.getPrefixCls,pe.prefixCls]),Le=(0,x.Z)((0,x.Z)({},wt),{csp:Je,autoInsertSpaceInButton:ke,locale:Fe||Ge,direction:qe,space:et,virtual:dt,dropdownMatchSelectWidth:Ke,getPrefixCls:it});K.forEach(function(fn){var Xt=pe[fn];Xt&&(Le[fn]=Xt)});var ct=(0,A.Z)(function(){return Le},Le,function(fn,Xt){var Yt=Object.keys(fn),Rt=Object.keys(Xt);return Yt.length!==Rt.length||Yt.some(function(Lt){return fn[Lt]!==Xt[Lt]})}),at=y.useMemo(function(){return{prefixCls:Vt,csp:Je}},[Vt,Je]),jt=Ie,St=y.useMemo(function(){var fn,Xt,Yt,Rt;return(0,M.T)(((fn=p.Z.Form)===null||fn===void 0?void 0:fn.defaultValidateMessages)||{},((Yt=(Xt=ct.locale)===null||Xt===void 0?void 0:Xt.Form)===null||Yt===void 0?void 0:Yt.defaultValidateMessages)||{},((Rt=ct.form)===null||Rt===void 0?void 0:Rt.validateMessages)||{},(De==null?void 0:De.validateMessages)||{})},[ct,De==null?void 0:De.validateMessages]);return Object.keys(St).length>0&&(jt=y.createElement(w.Z.Provider,{value:St},Ie)),Fe&&(jt=y.createElement(d,{locale:Fe,_ANT_MARK__:v},jt)),(Vt||Je)&&(jt=y.createElement(g.Z.Provider,{value:at},jt)),Qe&&(jt=y.createElement(G.q,{size:Qe},jt)),gt!==void 0&&(jt=y.createElement($.n,{disabled:gt},jt)),y.createElement(O.E_.Provider,{value:ct},jt)},we=function(pe){return y.useEffect(function(){pe.direction&&(S.default.config({rtl:pe.direction==="rtl"}),k.default.config({rtl:pe.direction==="rtl"}))},[pe.direction]),y.createElement(_.Z,null,function(Ie,Je,ke){return y.createElement(O.C,null,function(De){return y.createElement(fe,(0,x.Z)({parentContext:De,legacyLocale:ke},pe))})})};we.ConfigContext=O.E_,we.SizeContext=G.Z,we.config=ce;var me=we},35635:function(oe,N,o){"use strict";var x=o(33508),g=o.n(x)},25832:function(oe,N,o){"use strict";o.d(N,{Z:function(){return w}});var x=o(22122),g={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},A=g,y=o(63275),M={lang:(0,x.Z)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},A),timePickerLocale:(0,x.Z)({},y.Z)},w=M},49194:function(oe,N,o){"use strict";var x=o(22122),g=o(96156),A=o(35510),y=o.n(A),M=o(67294),w=o(9054),m=function(v,h){var d={};for(var _ in v)Object.prototype.hasOwnProperty.call(v,_)&&h.indexOf(_)<0&&(d[_]=v[_]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,_=Object.getOwnPropertySymbols(v);p<_.length;p++)h.indexOf(_[p])<0&&Object.prototype.propertyIsEnumerable.call(v,_[p])&&(d[_[p]]=v[_[p]]);return d},b=function(h){var d,_=M.useContext(w.E_),p=_.getPrefixCls,S=_.direction,k=h.prefixCls,O=h.type,F=O===void 0?"horizontal":O,D=h.orientation,Z=D===void 0?"center":D,W=h.orientationMargin,U=h.className,L=h.children,V=h.dashed,$=h.plain,G=m(h,["prefixCls","type","orientation","orientationMargin","className","children","dashed","plain"]),z=p("divider",k),K=Z.length>0?"-".concat(Z):Z,re=!!L,ne=Z==="left"&&W!=null,Q=Z==="right"&&W!=null,ue=y()(z,"".concat(z,"-").concat(F),(d={},(0,g.Z)(d,"".concat(z,"-with-text"),re),(0,g.Z)(d,"".concat(z,"-with-text").concat(K),re),(0,g.Z)(d,"".concat(z,"-dashed"),!!V),(0,g.Z)(d,"".concat(z,"-plain"),!!$),(0,g.Z)(d,"".concat(z,"-rtl"),S==="rtl"),(0,g.Z)(d,"".concat(z,"-no-default-orientation-margin-left"),ne),(0,g.Z)(d,"".concat(z,"-no-default-orientation-margin-right"),Q),d),U),he=(0,x.Z)((0,x.Z)({},ne&&{marginLeft:W}),Q&&{marginRight:W});return M.createElement("div",(0,x.Z)({className:ue},G,{role:"separator"}),L&&F!=="vertical"&&M.createElement("span",{className:"".concat(z,"-inner-text"),style:he},L))};N.Z=b},77111:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(68179),y=o.n(A)},13451:function(oe,N,o){"use strict";o.d(N,{Z:function(){return ct}});var x=o(22122),g=o(96156),A=o(28481),y=o(54549),M=o(35510),w=o.n(M),m=o(28991),b=o(67294),v=o(57196);function h(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var d=h()?b.useLayoutEffect:b.useEffect,_=function(jt,St){var fn=b.useRef(!0);d(function(){return jt(fn.current)},St),d(function(){return fn.current=!1,function(){fn.current=!0}},[])},p=function(jt,St){_(function(fn){if(!fn)return jt()},St)},S=_,k=o(90190),O={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(jt){var St=jt.keyCode;if(jt.altKey&&!jt.ctrlKey||jt.metaKey||St>=O.F1&&St<=O.F12)return!1;switch(St){case O.ALT:case O.CAPS_LOCK:case O.CONTEXT_MENU:case O.CTRL:case O.DOWN:case O.END:case O.ESC:case O.HOME:case O.INSERT:case O.LEFT:case O.MAC_FF_META:case O.META:case O.NUMLOCK:case O.NUM_CENTER:case O.PAGE_DOWN:case O.PAGE_UP:case O.PAUSE:case O.PRINT_SCREEN:case O.RIGHT:case O.SHIFT:case O.UP:case O.WIN_KEY:case O.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(jt){if(jt>=O.ZERO&&jt<=O.NINE||jt>=O.NUM_ZERO&&jt<=O.NUM_MULTIPLY||jt>=O.A&&jt<=O.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&jt===0)return!0;switch(jt){case O.SPACE:case O.QUESTION_MARK:case O.NUM_PLUS:case O.NUM_MINUS:case O.NUM_PERIOD:case O.NUM_DIVISION:case O.SEMICOLON:case O.DASH:case O.EQUALS:case O.COMMA:case O.PERIOD:case O.SLASH:case O.APOSTROPHE:case O.SINGLE_QUOTE:case O.OPEN_SQUARE_BRACKET:case O.BACKSLASH:case O.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},F=O,D=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
||
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
||
charSet checked classID className colSpan cols content contentEditable contextMenu
|
||
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
||
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
||
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
||
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
||
mediaGroup method min minLength multiple muted name noValidate nonce open
|
||
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
||
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
||
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
||
summary tabIndex target title type useMap value width wmode wrap`,Z=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
||
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
||
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
||
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
||
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
||
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
||
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,W="".concat(D," ").concat(Z).split(/[\s\n]+/),U="aria-",L="data-";function V(at,jt){return at.indexOf(jt)===0}function $(at){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,St;jt===!1?St={aria:!0,data:!0,attr:!0}:jt===!0?St={aria:!0}:St=(0,m.Z)({},jt);var fn={};return Object.keys(at).forEach(function(Xt){(St.aria&&(Xt==="role"||V(Xt,U))||St.data&&V(Xt,L)||St.attr&&W.includes(Xt))&&(fn[Xt]=at[Xt])}),fn}var G=b.createContext(null),z=G,K=function(jt){var St=jt.prefixCls,fn=jt.className,Xt=jt.style,Yt=jt.children,Rt=jt.containerRef,Lt=jt.id,ze=jt.onMouseEnter,rt=jt.onMouseOver,tt=jt.onMouseLeave,de=jt.onClick,ot=jt.onKeyDown,Et=jt.onKeyUp,Ht={onMouseEnter:ze,onMouseOver:rt,onMouseLeave:tt,onClick:de,onKeyDown:ot,onKeyUp:Et};return b.createElement(b.Fragment,null,b.createElement("div",(0,x.Z)({id:Lt,className:w()("".concat(St,"-content"),fn),style:(0,m.Z)({},Xt),"aria-modal":"true",role:"dialog",ref:Rt},Ht),Yt))},re=K,ne={},Q=[],ue=function(jt){Q.push(jt)};function he(at,jt){if(!1)var St}function Ee(at,jt){if(!1)var St}function ce(){ne={}}function ve(at,jt,St){!jt&&!ne[St]&&(at(!1,St),ne[St]=!0)}function fe(at,jt){ve(he,at,jt)}function we(at,jt){ve(Ee,at,jt)}fe.preMessage=ue,fe.resetWarned=ce,fe.noteOnce=we;var me=fe;function Pe(at){return typeof at=="string"&&String(Number(at))===at?(me(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(at)):at}function pe(at){warning(!("wrapperClassName"in at),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!at.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ie={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Je(at,jt){var St,fn,Xt,Yt,Rt=at.prefixCls,Lt=at.open,ze=at.placement,rt=at.inline,tt=at.push,de=at.forceRender,ot=at.autoFocus,Et=at.keyboard,Ht=at.rootClassName,Jt=at.rootStyle,Qt=at.zIndex,an=at.className,Un=at.id,qt=at.style,rn=at.motion,cn=at.width,er=at.height,rr=at.children,nt=at.contentWrapperStyle,lr=at.mask,Hn=at.maskClosable,ut=at.maskMotion,bt=at.maskClassName,We=at.maskStyle,be=at.afterOpenChange,Ae=at.onClose,Ue=at.onMouseEnter,$e=at.onMouseOver,kt=at.onMouseLeave,lt=at.onClick,vt=at.onKeyDown,Ct=at.onKeyUp,Bt=b.useRef(),mt=b.useRef(),Zt=b.useRef();b.useImperativeHandle(jt,function(){return Bt.current});var zt=function(Fn){var Or=Fn.keyCode,vr=Fn.shiftKey;switch(Or){case F.TAB:{if(Or===F.TAB){if(!vr&&document.activeElement===Zt.current){var Ur;(Ur=mt.current)===null||Ur===void 0||Ur.focus({preventScroll:!0})}else if(vr&&document.activeElement===mt.current){var Zr;(Zr=Zt.current)===null||Zr===void 0||Zr.focus({preventScroll:!0})}}break}case F.ESC:{Ae&&Et&&(Fn.stopPropagation(),Ae(Fn));break}}};b.useEffect(function(){if(Lt&&ot){var wn;(wn=Bt.current)===null||wn===void 0||wn.focus({preventScroll:!0})}},[Lt]);var ln=b.useState(!1),An=(0,A.Z)(ln,2),En=An[0],Gn=An[1],Bn=b.useContext(z),pr;tt===!1?pr={distance:0}:tt===!0?pr={}:pr=tt||{};var _r=(St=(fn=(Xt=pr)===null||Xt===void 0?void 0:Xt.distance)!==null&&fn!==void 0?fn:Bn==null?void 0:Bn.pushDistance)!==null&&St!==void 0?St:180,na=b.useMemo(function(){return{pushDistance:_r,push:function(){Gn(!0)},pull:function(){Gn(!1)}}},[_r]);b.useEffect(function(){if(Lt){var wn;Bn==null||(wn=Bn.push)===null||wn===void 0||wn.call(Bn)}else{var Fn;Bn==null||(Fn=Bn.pull)===null||Fn===void 0||Fn.call(Bn)}},[Lt]),b.useEffect(function(){return function(){var wn;Bn==null||(wn=Bn.pull)===null||wn===void 0||wn.call(Bn)}},[]);var $n=lr&&b.createElement(k.ZP,(0,x.Z)({key:"mask"},ut,{visible:Lt}),function(wn,Fn){var Or=wn.className,vr=wn.style;return b.createElement("div",{className:w()("".concat(Rt,"-mask"),Or,bt),style:(0,m.Z)((0,m.Z)({},vr),We),onClick:Hn&&Lt?Ae:void 0,ref:Fn})}),qr=typeof rn=="function"?rn(ze):rn,Jr={};if(En&&_r)switch(ze){case"top":Jr.transform="translateY(".concat(_r,"px)");break;case"bottom":Jr.transform="translateY(".concat(-_r,"px)");break;case"left":Jr.transform="translateX(".concat(_r,"px)");break;default:Jr.transform="translateX(".concat(-_r,"px)");break}ze==="left"||ze==="right"?Jr.width=Pe(cn):Jr.height=Pe(er);var Aa={onMouseEnter:Ue,onMouseOver:$e,onMouseLeave:kt,onClick:lt,onKeyDown:vt,onKeyUp:Ct},ya=b.createElement(k.ZP,(0,x.Z)({key:"panel"},qr,{visible:Lt,forceRender:de,onVisibleChanged:function(Fn){be==null||be(Fn)},removeOnLeave:!1,leavedClassName:"".concat(Rt,"-content-wrapper-hidden")}),function(wn,Fn){var Or=wn.className,vr=wn.style;return b.createElement("div",(0,x.Z)({className:w()("".concat(Rt,"-content-wrapper"),Or),style:(0,m.Z)((0,m.Z)((0,m.Z)({},Jr),vr),nt)},$(at,{data:!0})),b.createElement(re,(0,x.Z)({id:Un,containerRef:Fn,prefixCls:Rt,className:an,style:qt},Aa),rr))}),$t=(0,m.Z)({},Jt);return Qt&&($t.zIndex=Qt),b.createElement(z.Provider,{value:na},b.createElement("div",{className:w()(Rt,"".concat(Rt,"-").concat(ze),Ht,(Yt={},(0,g.Z)(Yt,"".concat(Rt,"-open"),Lt),(0,g.Z)(Yt,"".concat(Rt,"-inline"),rt),Yt)),style:$t,tabIndex:-1,ref:Bt,onKeyDown:zt},$n,b.createElement("div",{tabIndex:0,ref:mt,style:Ie,"aria-hidden":"true","data-sentinel":"start"}),ya,b.createElement("div",{tabIndex:0,ref:Zt,style:Ie,"aria-hidden":"true","data-sentinel":"end"})))}var ke=b.forwardRef(Je),De=ke,Fe=function(jt){var St=jt.open,fn=St===void 0?!1:St,Xt=jt.prefixCls,Yt=Xt===void 0?"rc-drawer":Xt,Rt=jt.placement,Lt=Rt===void 0?"right":Rt,ze=jt.autoFocus,rt=ze===void 0?!0:ze,tt=jt.keyboard,de=tt===void 0?!0:tt,ot=jt.width,Et=ot===void 0?378:ot,Ht=jt.mask,Jt=Ht===void 0?!0:Ht,Qt=jt.maskClosable,an=Qt===void 0?!0:Qt,Un=jt.getContainer,qt=jt.forceRender,rn=jt.afterOpenChange,cn=jt.destroyOnClose,er=jt.onMouseEnter,rr=jt.onMouseOver,nt=jt.onMouseLeave,lr=jt.onClick,Hn=jt.onKeyDown,ut=jt.onKeyUp,bt=b.useState(!1),We=(0,A.Z)(bt,2),be=We[0],Ae=We[1],Ue=b.useState(!1),$e=(0,A.Z)(Ue,2),kt=$e[0],lt=$e[1];S(function(){lt(!0)},[]);var vt=kt?fn:!1,Ct=b.useRef(),Bt=b.useRef();S(function(){vt&&(Bt.current=document.activeElement)},[vt]);var mt=function(An){var En;if(Ae(An),rn==null||rn(An),!An&&Bt.current&&!((En=Ct.current)===null||En===void 0?void 0:En.contains(Bt.current))){var Gn;(Gn=Bt.current)===null||Gn===void 0||Gn.focus({preventScroll:!0})}};if(!qt&&!be&&!vt&&cn)return null;var Zt={onMouseEnter:er,onMouseOver:rr,onMouseLeave:nt,onClick:lr,onKeyDown:Hn,onKeyUp:ut},zt=(0,m.Z)((0,m.Z)({},jt),{},{open:vt,prefixCls:Yt,placement:Lt,autoFocus:rt,keyboard:de,width:Et,mask:Jt,maskClosable:an,inline:Un===!1,afterOpenChange:mt,ref:Ct},Zt);return b.createElement(v.Z,{open:vt||qt||be,autoDestroy:!1,getContainer:Un,autoLock:Jt&&(vt||be)},b.createElement(De,zt))},Qe=Fe,qe=Qe,et=o(9054),dt=o(27495),Ke=o(31064),Ge=o(4381),wt=o(1358),Vt=function(at,jt){var St={};for(var fn in at)Object.prototype.hasOwnProperty.call(at,fn)&&jt.indexOf(fn)<0&&(St[fn]=at[fn]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,fn=Object.getOwnPropertySymbols(at);Xt<fn.length;Xt++)jt.indexOf(fn[Xt])<0&&Object.prototype.propertyIsEnumerable.call(at,fn[Xt])&&(St[fn[Xt]]=at[fn[Xt]]);return St},gt=(0,Ge.b)("default","large"),it={distance:180};function Le(at){var jt=at.width,St=at.height,fn=at.size,Xt=fn===void 0?"default":fn,Yt=at.closable,Rt=Yt===void 0?!0:Yt,Lt=at.mask,ze=Lt===void 0?!0:Lt,rt=at.push,tt=rt===void 0?it:rt,de=at.closeIcon,ot=de===void 0?b.createElement(y.Z,null):de,Et=at.bodyStyle,Ht=at.drawerStyle,Jt=at.className,Qt=at.visible,an=at.open,Un=at.children,qt=at.style,rn=at.title,cn=at.headerStyle,er=at.onClose,rr=at.footer,nt=at.footerStyle,lr=at.prefixCls,Hn=at.getContainer,ut=at.extra,bt=at.afterVisibleChange,We=at.afterOpenChange,be=Vt(at,["width","height","size","closable","mask","push","closeIcon","bodyStyle","drawerStyle","className","visible","open","children","style","title","headerStyle","onClose","footer","footerStyle","prefixCls","getContainer","extra","afterVisibleChange","afterOpenChange"]),Ae=b.useContext(et.E_),Ue=Ae.getPopupContainer,$e=Ae.getPrefixCls,kt=Ae.direction,lt=$e("drawer",lr),vt=Hn===void 0&&Ue?function(){return Ue(document.body)}:Hn,Ct=Rt&&b.createElement("button",{type:"button",onClick:er,"aria-label":"Close",className:"".concat(lt,"-close")},ot);[["visible","open"],["afterVisibleChange","afterOpenChange"]].forEach(function(Gn){var Bn=(0,A.Z)(Gn,2),pr=Bn[0],_r=Bn[1]});function Bt(){return!rn&&!Rt?null:b.createElement("div",{className:w()("".concat(lt,"-header"),(0,g.Z)({},"".concat(lt,"-header-close-only"),Rt&&!rn&&!ut)),style:cn},b.createElement("div",{className:"".concat(lt,"-header-title")},Ct,rn&&b.createElement("div",{className:"".concat(lt,"-title")},rn)),ut&&b.createElement("div",{className:"".concat(lt,"-extra")},ut))}function mt(){if(!rr)return null;var Gn="".concat(lt,"-footer");return b.createElement("div",{className:Gn,style:nt},rr)}var Zt=w()((0,g.Z)({"no-mask":!ze},"".concat(lt,"-rtl"),kt==="rtl"),Jt),zt=b.useMemo(function(){return jt!=null?jt:Xt==="large"?736:378},[jt,Xt]),ln=b.useMemo(function(){return St!=null?St:Xt==="large"?736:378},[St,Xt]),An={motionName:(0,Ke.mL)(lt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},En=function(Bn){return{motionName:(0,Ke.mL)(lt,"panel-motion-".concat(Bn)),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}};return b.createElement(wt.BR,null,b.createElement(dt.Ux,{status:!0,override:!0},b.createElement(qe,(0,x.Z)({prefixCls:lt,onClose:er},be,{open:an!=null?an:Qt,mask:ze,push:tt,width:zt,height:ln,rootClassName:Zt,getContainer:vt,afterOpenChange:function(Bn){We==null||We(Bn),bt==null||bt(Bn)},maskMotion:An,motion:En,rootStyle:qt}),b.createElement("div",{className:"".concat(lt,"-wrapper-body"),style:(0,x.Z)({},Ht)},Bt(),b.createElement("div",{className:"".concat(lt,"-body"),style:Et},Un),mt()))))}var ct=Le},42048:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(50061),y=o.n(A)},3531:function(oe,N,o){"use strict";o.d(N,{Z:function(){return wt}});var x=o(22122),g=o(90484),A=o(96156),y=o(28481),M=o(43929),w=o(35510),m=o.n(w),b=o(28991),v=o(81253),h=o(67294),d=o(39971),_={adjustX:1,adjustY:1},p=[0,0],S={topLeft:{points:["bl","tl"],overflow:_,offset:[0,-4],targetOffset:p},topCenter:{points:["bc","tc"],overflow:_,offset:[0,-4],targetOffset:p},topRight:{points:["br","tr"],overflow:_,offset:[0,-4],targetOffset:p},bottomLeft:{points:["tl","bl"],overflow:_,offset:[0,4],targetOffset:p},bottomCenter:{points:["tc","bc"],overflow:_,offset:[0,4],targetOffset:p},bottomRight:{points:["tr","br"],overflow:_,offset:[0,4],targetOffset:p}},k=S,O=o(18209),F=o(28101),D=o(85061),Z=function(Vt){if(!Vt)return!1;if(Vt instanceof Element){if(Vt.offsetParent)return!0;if(Vt.getBBox){var gt=Vt.getBBox(),it=gt.width,Le=gt.height;if(it||Le)return!0}if(Vt.getBoundingClientRect){var ct=Vt.getBoundingClientRect(),at=ct.width,jt=ct.height;if(at||jt)return!0}}return!1};function W(Vt){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Z(Vt)){var it=Vt.nodeName.toLowerCase(),Le=["input","select","textarea","button"].includes(it)||Vt.isContentEditable||it==="a"&&!!Vt.getAttribute("href"),ct=Vt.getAttribute("tabindex"),at=Number(ct),jt=null;return ct&&!Number.isNaN(at)?jt=at:Le&&jt===null&&(jt=0),Le&&Vt.disabled&&(jt=null),jt!==null&&(jt>=0||gt&&jt<0)}return!1}function U(Vt){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=(0,D.Z)(Vt.querySelectorAll("*")).filter(function(Le){return W(Le,gt)});return W(Vt,gt)&&it.unshift(Vt),it}var L=null;function V(){L=document.activeElement}function $(){L=null}function G(){if(L)try{L.focus()}catch(Vt){}}function z(Vt,gt){if(gt.keyCode===9){var it=U(Vt),Le=it[gt.shiftKey?0:it.length-1],ct=Le===document.activeElement||Vt===document.activeElement;if(ct){var at=it[gt.shiftKey?it.length-1:0];at.focus(),gt.preventDefault()}}}var K=O.Z.ESC,re=O.Z.TAB;function ne(Vt){var gt=Vt.visible,it=Vt.setTriggerVisible,Le=Vt.triggerRef,ct=Vt.onVisibleChange,at=Vt.autoFocus,jt=h.useRef(!1),St=function(){if(gt&&Le.current){var Rt,Lt,ze,rt;(Rt=Le.current)===null||Rt===void 0||(Lt=Rt.triggerRef)===null||Lt===void 0||(ze=Lt.current)===null||ze===void 0||(rt=ze.focus)===null||rt===void 0||rt.call(ze),it(!1),typeof ct=="function"&&ct(!1)}},fn=function(){var Rt,Lt,ze,rt,tt=U((Rt=Le.current)===null||Rt===void 0||(Lt=Rt.popupRef)===null||Lt===void 0||(ze=Lt.current)===null||ze===void 0||(rt=ze.getElement)===null||rt===void 0?void 0:rt.call(ze)),de=tt[0];return(de==null?void 0:de.focus)?(de.focus(),jt.current=!0,!0):!1},Xt=function(Rt){switch(Rt.keyCode){case K:St();break;case re:{var Lt=!1;jt.current||(Lt=fn()),Lt?Rt.preventDefault():St();break}}};h.useEffect(function(){return gt?(window.addEventListener("keydown",Xt),at&&(0,F.Z)(fn,3),function(){window.removeEventListener("keydown",Xt),jt.current=!1}):function(){jt.current=!1}},[gt])}var Q=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function ue(Vt,gt){var it=Vt.arrow,Le=it===void 0?!1:it,ct=Vt.prefixCls,at=ct===void 0?"rc-dropdown":ct,jt=Vt.transitionName,St=Vt.animation,fn=Vt.align,Xt=Vt.placement,Yt=Xt===void 0?"bottomLeft":Xt,Rt=Vt.placements,Lt=Rt===void 0?k:Rt,ze=Vt.getPopupContainer,rt=Vt.showAction,tt=Vt.hideAction,de=Vt.overlayClassName,ot=Vt.overlayStyle,Et=Vt.visible,Ht=Vt.trigger,Jt=Ht===void 0?["hover"]:Ht,Qt=Vt.autoFocus,an=(0,v.Z)(Vt,Q),Un=h.useState(),qt=(0,y.Z)(Un,2),rn=qt[0],cn=qt[1],er="visible"in Vt?Et:rn,rr=h.useRef(null);h.useImperativeHandle(gt,function(){return rr.current}),ne({visible:er,setTriggerVisible:cn,triggerRef:rr,onVisibleChange:Vt.onVisibleChange,autoFocus:Qt});var nt=function(){var kt=Vt.overlay,lt;return typeof kt=="function"?lt=kt():lt=kt,lt},lr=function(kt){var lt=Vt.onOverlayClick;cn(!1),lt&<(kt)},Hn=function(kt){var lt=Vt.onVisibleChange;cn(kt),typeof lt=="function"&<(kt)},ut=function(){var kt=nt();return h.createElement(h.Fragment,null,Le&&h.createElement("div",{className:"".concat(at,"-arrow")}),kt)},bt=function(){var kt=Vt.overlay;return typeof kt=="function"?ut:ut()},We=function(){var kt=Vt.minOverlayWidthMatchTrigger,lt=Vt.alignPoint;return"minOverlayWidthMatchTrigger"in Vt?kt:!lt},be=function(){var kt=Vt.openClassName;return kt!==void 0?kt:"".concat(at,"-open")},Ae=function(){var kt=Vt.children,lt=kt.props?kt.props:{},vt=m()(lt.className,be());return er&&kt?h.cloneElement(kt,{className:vt}):kt},Ue=tt;return!Ue&&Jt.indexOf("contextMenu")!==-1&&(Ue=["click"]),h.createElement(d.Z,(0,b.Z)((0,b.Z)({builtinPlacements:Lt},an),{},{prefixCls:at,ref:rr,popupClassName:m()(de,(0,A.Z)({},"".concat(at,"-show-arrow"),Le)),popupStyle:ot,action:Jt,showAction:rt,hideAction:Ue||[],popupPlacement:Yt,popupAlign:fn,popupTransitionName:jt,popupAnimation:St,popupVisible:er,stretch:We()?"minWidth":"",popup:bt(),onPopupVisibleChange:Hn,onPopupClick:lr,getPopupContainer:ze}),Ae())}var he=h.forwardRef(ue),Ee=he,ce=o(13799),ve=o(92866),fe=o(36707),we=o(9054),me=o(66948),Pe=o(19405),pe=o(75447),Ie=o(4381),Je=o(44545),ke=o(48429),De=o(1358),Fe=o(45733),Qe=function(Vt,gt){var it={};for(var Le in Vt)Object.prototype.hasOwnProperty.call(Vt,Le)&>.indexOf(Le)<0&&(it[Le]=Vt[Le]);if(Vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Le=Object.getOwnPropertySymbols(Vt);ct<Le.length;ct++)gt.indexOf(Le[ct])<0&&Object.prototype.propertyIsEnumerable.call(Vt,Le[ct])&&(it[Le[ct]]=Vt[Le[ct]]);return it},qe=function(gt){var it=h.useContext(we.E_),Le=it.getPopupContainer,ct=it.getPrefixCls,at=it.direction,jt=gt.prefixCls,St=gt.type,fn=St===void 0?"default":St,Xt=gt.danger,Yt=gt.disabled,Rt=gt.loading,Lt=gt.onClick,ze=gt.htmlType,rt=gt.children,tt=gt.className,de=gt.menu,ot=gt.arrow,Et=gt.autoFocus,Ht=gt.overlay,Jt=gt.trigger,Qt=gt.align,an=gt.visible,Un=gt.open,qt=gt.onVisibleChange,rn=gt.onOpenChange,cn=gt.placement,er=gt.getPopupContainer,rr=gt.href,nt=gt.icon,lr=nt===void 0?h.createElement(Je.Z,null):nt,Hn=gt.title,ut=gt.buttonsRender,bt=ut===void 0?function(pr){return pr}:ut,We=gt.mouseEnterDelay,be=gt.mouseLeaveDelay,Ae=gt.overlayClassName,Ue=gt.overlayStyle,$e=gt.destroyPopupOnHide,kt=Qe(gt,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","visible","open","onVisibleChange","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide"]),lt=ct("dropdown-button",jt),vt={menu:de,arrow:ot,autoFocus:Et,align:Qt,disabled:Yt,trigger:Yt?[]:Jt,onOpenChange:rn||qt,getPopupContainer:er||Le,mouseEnterDelay:We,mouseLeaveDelay:be,overlayClassName:Ae,overlayStyle:Ue,destroyPopupOnHide:$e},Ct=(0,De.ri)(lt,at),Bt=Ct.compactSize,mt=Ct.compactItemClassnames,Zt=m()(lt,mt,tt);"overlay"in gt&&(vt.overlay=Ht),"open"in gt?vt.open=Un:"visible"in gt&&(vt.open=an),"placement"in gt?vt.placement=cn:vt.placement=at==="rtl"?"bottomLeft":"bottomRight";var zt=h.createElement(ke.Z,{type:fn,danger:Xt,disabled:Yt,loading:Rt,onClick:Lt,htmlType:ze,href:rr,title:Hn},rt),ln=h.createElement(ke.Z,{type:fn,danger:Xt,icon:lr}),An=bt([zt,ln]),En=(0,y.Z)(An,2),Gn=En[0],Bn=En[1];return h.createElement(Fe.Z.Compact,(0,x.Z)({className:Zt,size:Bt,block:!0},kt),Gn,h.createElement(Ge,(0,x.Z)({},vt),Bn))};qe.__ANT_BUTTON=!0;var et=qe,dt=(0,Ie.b)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight","top","bottom"),Ke=function(gt){var it=h.useContext(we.E_),Le=it.getPopupContainer,ct=it.getPrefixCls,at=it.direction,jt=function(){var Ct=ct(),Bt=gt.placement,mt=Bt===void 0?"":Bt,Zt=gt.transitionName;return Zt!==void 0?Zt:mt.includes("top")?"".concat(Ct,"-slide-down"):"".concat(Ct,"-slide-up")},St=function(){var Ct=gt.placement;if(!Ct)return at==="rtl"?"bottomRight":"bottomLeft";if(Ct.includes("Center")){var Bt=Ct.slice(0,Ct.indexOf("Center"));return Bt}return Ct},fn=gt.menu,Xt=gt.arrow,Yt=gt.prefixCls,Rt=gt.children,Lt=gt.trigger,ze=gt.disabled,rt=gt.dropdownRender,tt=gt.getPopupContainer,de=gt.overlayClassName,ot=gt.visible,Et=gt.open,Ht=gt.onVisibleChange,Jt=gt.onOpenChange,Qt=gt.mouseEnterDelay,an=Qt===void 0?.15:Qt,Un=gt.mouseLeaveDelay,qt=Un===void 0?.1:Un,rn=gt.autoAdjustOverflow,cn=rn===void 0?!0:rn,er=ct("dropdown",Yt),rr=h.Children.only(Rt),nt=(0,pe.Tm)(rr,{className:m()("".concat(er,"-trigger"),(0,A.Z)({},"".concat(er,"-rtl"),at==="rtl"),rr.props.className),disabled:ze}),lr=ze?[]:Lt,Hn;lr&&lr.includes("contextMenu")&&(Hn=!0);var ut=(0,ve.Z)(!1,{value:Et!==void 0?Et:ot}),bt=(0,y.Z)(ut,2),We=bt[0],be=bt[1],Ae=(0,ce.Z)(function(vt){Ht==null||Ht(vt),Jt==null||Jt(vt),be(vt)}),Ue=m()(de,(0,A.Z)({},"".concat(er,"-rtl"),at==="rtl")),$e=(0,Pe.Z)({arrowPointAtCenter:(0,g.Z)(Xt)==="object"&&Xt.pointAtCenter,autoAdjustOverflow:cn}),kt=h.useCallback(function(){be(!1)},[]),lt=function(){var Ct=gt.overlay,Bt;return(fn==null?void 0:fn.items)?Bt=h.createElement(fe.Z,(0,x.Z)({},fn)):typeof Ct=="function"?Bt=Ct():Bt=Ct,rt&&(Bt=rt(Bt)),Bt=h.Children.only(typeof Bt=="string"?h.createElement("span",null,Bt):Bt),h.createElement(me.J,{prefixCls:"".concat(er,"-menu"),expandIcon:h.createElement("span",{className:"".concat(er,"-menu-submenu-arrow")},h.createElement(M.Z,{className:"".concat(er,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:kt,validator:function(Zt){var zt=Zt.mode}},h.createElement(De.BR,null,Bt))};return h.createElement(Ee,(0,x.Z)({alignPoint:Hn},gt,{mouseEnterDelay:an,mouseLeaveDelay:qt,visible:We,builtinPlacements:$e,arrow:!!Xt,overlayClassName:Ue,prefixCls:er,getPopupContainer:tt||Le,transitionName:jt(),trigger:lr,overlay:lt,placement:St(),onVisibleChange:Ae}),nt)};Ke.Button=et;var Ge=Ke,wt=Ge},19597:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(10469),y=o.n(A),M=o(13753),w=o(37482),m=o(25324)},3418:function(oe,N,o){"use strict";o.d(N,{Z:function(){return O}});var x=o(96156),g=o(22122),A=o(35510),y=o.n(A),M=o(67294),w=o(9054),m=o(56701),b=function(){var D=M.useContext(w.E_),Z=D.getPrefixCls,W=Z("empty-img-default");return M.createElement("svg",{className:W,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},M.createElement("g",{fill:"none",fillRule:"evenodd"},M.createElement("g",{transform:"translate(24 31.67)"},M.createElement("ellipse",{className:"".concat(W,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),M.createElement("path",{className:"".concat(W,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),M.createElement("path",{className:"".concat(W,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),M.createElement("path",{className:"".concat(W,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),M.createElement("path",{className:"".concat(W,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),M.createElement("path",{className:"".concat(W,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),M.createElement("g",{className:"".concat(W,"-g"),transform:"translate(149.65 15.383)"},M.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),M.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},v=b,h=function(){var D=M.useContext(w.E_),Z=D.getPrefixCls,W=Z("empty-img-simple");return M.createElement("svg",{className:W,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},M.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},M.createElement("ellipse",{className:"".concat(W,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),M.createElement("g",{className:"".concat(W,"-g"),fillRule:"nonzero"},M.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),M.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(W,"-path")}))))},d=h,_=function(F,D){var Z={};for(var W in F)Object.prototype.hasOwnProperty.call(F,W)&&D.indexOf(W)<0&&(Z[W]=F[W]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,W=Object.getOwnPropertySymbols(F);U<W.length;U++)D.indexOf(W[U])<0&&Object.prototype.propertyIsEnumerable.call(F,W[U])&&(Z[W[U]]=F[W[U]]);return Z},p=M.createElement(v,null),S=M.createElement(d,null),k=function(D){var Z=D.className,W=D.prefixCls,U=D.image,L=U===void 0?p:U,V=D.description,$=D.children,G=D.imageStyle,z=_(D,["className","prefixCls","image","description","children","imageStyle"]),K=M.useContext(w.E_),re=K.getPrefixCls,ne=K.direction;return M.createElement(m.Z,{componentName:"Empty"},function(Q){var ue,he=re("empty",W),Ee=typeof V!="undefined"?V:Q.description,ce=typeof Ee=="string"?Ee:"empty",ve=null;return typeof L=="string"?ve=M.createElement("img",{alt:ce,src:L}):ve=L,M.createElement("div",(0,g.Z)({className:y()(he,(ue={},(0,x.Z)(ue,"".concat(he,"-normal"),L===S),(0,x.Z)(ue,"".concat(he,"-rtl"),ne==="rtl"),ue),Z)},z),M.createElement("div",{className:"".concat(he,"-image"),style:G},ve),Ee&&M.createElement("div",{className:"".concat(he,"-description")},Ee),$&&M.createElement("div",{className:"".concat(he,"-footer")},$))})};k.PRESENTED_IMAGE_DEFAULT=p,k.PRESENTED_IMAGE_SIMPLE=S;var O=k},93806:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(3482),y=o.n(A)},27495:function(oe,N,o){"use strict";o.d(N,{q3:function(){return M},qI:function(){return w},RV:function(){return m},Rk:function(){return b},aM:function(){return v},Ux:function(){return h}});var x=o(22122),g=o(82098),A=o(69252),y=o(67294),M=y.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),w=y.createContext(null),m=function(_){var p=(0,A.Z)(_,["prefixCls"]);return y.createElement(g.FormProvider,(0,x.Z)({},p))},b=y.createContext({prefixCls:""}),v=y.createContext({}),h=function(_){var p=_.children,S=_.status,k=_.override,O=(0,y.useContext)(v),F=(0,y.useMemo)(function(){var D=(0,x.Z)({},O);return k&&delete D.isFormItemInput,S&&(delete D.status,delete D.hasFeedback,delete D.feedbackIcon),D},[S,k,O]);return y.createElement(v.Provider,{value:F},p)}},72285:function(oe,N,o){"use strict";o.d(N,{Z:function(){return Ae}});var x=o(27495),g=o(96156),A=o(22122),y=o(85061),M=o(35510),w=o.n(M),m=o(90190),b=o(67294),v=o(9054),h=o(31064),d=o(28481);function _(Ue){var $e=b.useState(Ue),kt=(0,d.Z)($e,2),lt=kt[0],vt=kt[1];return b.useEffect(function(){var Ct=setTimeout(function(){vt(Ue)},Ue.length?0:10);return function(){clearTimeout(Ct)}},[Ue]),lt}var p=[];function S(Ue,$e,kt){var lt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ue=="string"?Ue:"".concat(kt,"-").concat(lt),error:Ue,errorStatus:$e}}function k(Ue){var $e=Ue.help,kt=Ue.helpStatus,lt=Ue.errors,vt=lt===void 0?p:lt,Ct=Ue.warnings,Bt=Ct===void 0?p:Ct,mt=Ue.className,Zt=Ue.fieldId,zt=Ue.onVisibleChanged,ln=b.useContext(x.Rk),An=ln.prefixCls,En=b.useContext(v.E_),Gn=En.getPrefixCls,Bn="".concat(An,"-item-explain"),pr=Gn(),_r=_(vt),na=_(Bt),$n=b.useMemo(function(){return $e!=null?[S($e,kt,"help")]:[].concat((0,y.Z)(_r.map(function(Jr,Aa){return S(Jr,"error","error",Aa)})),(0,y.Z)(na.map(function(Jr,Aa){return S(Jr,"warning","warning",Aa)})))},[$e,kt,_r,na]),qr={};return Zt&&(qr.id="".concat(Zt,"_help")),b.createElement(m.ZP,{motionDeadline:h.ZP.motionDeadline,motionName:"".concat(pr,"-show-help"),visible:!!$n.length,onVisibleChanged:zt},function(Jr){var Aa=Jr.className,ya=Jr.style;return b.createElement("div",(0,A.Z)({},qr,{className:w()(Bn,Aa,mt),style:ya,role:"alert"}),b.createElement(m.V4,(0,A.Z)({keys:$n},h.ZP,{motionName:"".concat(pr,"-show-help-item"),component:!1}),function($t){var wn=$t.key,Fn=$t.error,Or=$t.errorStatus,vr=$t.className,Ur=$t.style;return b.createElement("div",{key:wn,className:w()(vr,(0,g.Z)({},"".concat(Bn,"-").concat(Or),Or)),style:Ur},Fn)}))})}var O=o(90484),F=o(82098),D=o(99469),Z=o(10772),W=o(70388);function U(Ue){return typeof Ue=="object"&&Ue!=null&&Ue.nodeType===1}function L(Ue,$e){return(!$e||Ue!=="hidden")&&Ue!=="visible"&&Ue!=="clip"}function V(Ue,$e){if(Ue.clientHeight<Ue.scrollHeight||Ue.clientWidth<Ue.scrollWidth){var kt=getComputedStyle(Ue,null);return L(kt.overflowY,$e)||L(kt.overflowX,$e)||function(lt){var vt=function(Ct){if(!Ct.ownerDocument||!Ct.ownerDocument.defaultView)return null;try{return Ct.ownerDocument.defaultView.frameElement}catch(Bt){return null}}(lt);return!!vt&&(vt.clientHeight<lt.scrollHeight||vt.clientWidth<lt.scrollWidth)}(Ue)}return!1}function $(Ue,$e,kt,lt,vt,Ct,Bt,mt){return Ct<Ue&&Bt>$e||Ct>Ue&&Bt<$e?0:Ct<=Ue&&mt<=kt||Bt>=$e&&mt>=kt?Ct-Ue-lt:Bt>$e&&mt<kt||Ct<Ue&&mt>kt?Bt-$e+vt:0}var G=function($e,kt){var lt=window,vt=kt.scrollMode,Ct=kt.block,Bt=kt.inline,mt=kt.boundary,Zt=kt.skipOverflowHiddenElements,zt=typeof mt=="function"?mt:function(ei){return ei!==mt};if(!U($e))throw new TypeError("Invalid target");for(var ln,An,En=document.scrollingElement||document.documentElement,Gn=[],Bn=$e;U(Bn)&&zt(Bn);){if((Bn=(An=(ln=Bn).parentElement)==null?ln.getRootNode().host||null:An)===En){Gn.push(Bn);break}Bn!=null&&Bn===document.body&&V(Bn)&&!V(document.documentElement)||Bn!=null&&V(Bn,Zt)&&Gn.push(Bn)}for(var pr=lt.visualViewport?lt.visualViewport.width:innerWidth,_r=lt.visualViewport?lt.visualViewport.height:innerHeight,na=window.scrollX||pageXOffset,$n=window.scrollY||pageYOffset,qr=$e.getBoundingClientRect(),Jr=qr.height,Aa=qr.width,ya=qr.top,$t=qr.right,wn=qr.bottom,Fn=qr.left,Or=Ct==="start"||Ct==="nearest"?ya:Ct==="end"?wn:ya+Jr/2,vr=Bt==="center"?Fn+Aa/2:Bt==="end"?$t:Fn,Ur=[],Zr=0;Zr<Gn.length;Zr++){var Kr=Gn[Zr],ba=Kr.getBoundingClientRect(),Ri=ba.height,Ea=ba.width,Pi=ba.top,rs=ba.right,Ui=ba.bottom,Cn=ba.left;if(vt==="if-needed"&&ya>=0&&Fn>=0&&wn<=_r&&$t<=pr&&ya>=Pi&&wn<=Ui&&Fn>=Cn&&$t<=rs)return Ur;var Kn=getComputedStyle(Kr),Pn=parseInt(Kn.borderLeftWidth,10),At=parseInt(Kn.borderTopWidth,10),ar=parseInt(Kn.borderRightWidth,10),ta=parseInt(Kn.borderBottomWidth,10),Yn=0,Qa=0,Ua="offsetWidth"in Kr?Kr.offsetWidth-Kr.clientWidth-Pn-ar:0,Fi="offsetHeight"in Kr?Kr.offsetHeight-Kr.clientHeight-At-ta:0,Xa="offsetWidth"in Kr?Kr.offsetWidth===0?0:Ea/Kr.offsetWidth:0,$i="offsetHeight"in Kr?Kr.offsetHeight===0?0:Ri/Kr.offsetHeight:0;if(En===Kr)Yn=Ct==="start"?Or:Ct==="end"?Or-_r:Ct==="nearest"?$($n,$n+_r,_r,At,ta,$n+Or,$n+Or+Jr,Jr):Or-_r/2,Qa=Bt==="start"?vr:Bt==="center"?vr-pr/2:Bt==="end"?vr-pr:$(na,na+pr,pr,Pn,ar,na+vr,na+vr+Aa,Aa),Yn=Math.max(0,Yn+$n),Qa=Math.max(0,Qa+na);else{Yn=Ct==="start"?Or-Pi-At:Ct==="end"?Or-Ui+ta+Fi:Ct==="nearest"?$(Pi,Ui,Ri,At,ta+Fi,Or,Or+Jr,Jr):Or-(Pi+Ri/2)+Fi/2,Qa=Bt==="start"?vr-Cn-Pn:Bt==="center"?vr-(Cn+Ea/2)+Ua/2:Bt==="end"?vr-rs+ar+Ua:$(Cn,rs,Ea,Pn,ar+Ua,vr,vr+Aa,Aa);var La=Kr.scrollLeft,ja=Kr.scrollTop;Or+=ja-(Yn=Math.max(0,Math.min(ja+Yn/$i,Kr.scrollHeight-Ri/$i+Fi))),vr+=La-(Qa=Math.max(0,Math.min(La+Qa/Xa,Kr.scrollWidth-Ea/Xa+Ua)))}Ur.push({el:Kr,top:Yn,left:Qa})}return Ur};function z(Ue){return Ue===Object(Ue)&&Object.keys(Ue).length!==0}function K(Ue,$e){$e===void 0&&($e="auto");var kt="scrollBehavior"in document.body.style;Ue.forEach(function(lt){var vt=lt.el,Ct=lt.top,Bt=lt.left;vt.scroll&&kt?vt.scroll({top:Ct,left:Bt,behavior:$e}):(vt.scrollTop=Ct,vt.scrollLeft=Bt)})}function re(Ue){return Ue===!1?{block:"end",inline:"nearest"}:z(Ue)?Ue:{block:"start",inline:"nearest"}}function ne(Ue,$e){var kt=Ue.isConnected||Ue.ownerDocument.documentElement.contains(Ue);if(z($e)&&typeof $e.behavior=="function")return $e.behavior(kt?G(Ue,$e):[]);if(!!kt){var lt=re($e);return K(G(Ue,lt),lt.behavior)}}var Q=ne,ue=["parentNode"],he="form_item";function Ee(Ue){return Ue===void 0||Ue===!1?[]:Array.isArray(Ue)?Ue:[Ue]}function ce(Ue,$e){if(!!Ue.length){var kt=Ue.join("_");if($e)return"".concat($e,"_").concat(kt);var lt=ue.includes(kt);return lt?"".concat(he,"_").concat(kt):kt}}function ve(Ue){var $e=Ee(Ue);return $e.join("_")}function fe(Ue){var $e=(0,F.useForm)(),kt=(0,d.Z)($e,1),lt=kt[0],vt=b.useRef({}),Ct=b.useMemo(function(){return Ue!=null?Ue:(0,A.Z)((0,A.Z)({},lt),{__INTERNAL__:{itemRef:function(mt){return function(Zt){var zt=ve(mt);Zt?vt.current[zt]=Zt:delete vt.current[zt]}}},scrollToField:function(mt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zt=Ee(mt),ln=ce(zt,Ct.__INTERNAL__.name),An=ln?document.getElementById(ln):null;An&&Q(An,(0,A.Z)({scrollMode:"if-needed",block:"nearest"},Zt))},getFieldInstance:function(mt){var Zt=ve(mt);return vt.current[Zt]}})},[Ue,lt]);return[Ct]}var we=function(Ue,$e){var kt={};for(var lt in Ue)Object.prototype.hasOwnProperty.call(Ue,lt)&&$e.indexOf(lt)<0&&(kt[lt]=Ue[lt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,lt=Object.getOwnPropertySymbols(Ue);vt<lt.length;vt++)$e.indexOf(lt[vt])<0&&Object.prototype.propertyIsEnumerable.call(Ue,lt[vt])&&(kt[lt[vt]]=Ue[lt[vt]]);return kt},me=function($e,kt){var lt,vt=b.useContext(Z.Z),Ct=b.useContext(D.Z),Bt=b.useContext(v.E_),mt=Bt.getPrefixCls,Zt=Bt.direction,zt=Bt.form,ln=$e.prefixCls,An=$e.className,En=An===void 0?"":An,Gn=$e.size,Bn=Gn===void 0?vt:Gn,pr=$e.disabled,_r=pr===void 0?Ct:pr,na=$e.form,$n=$e.colon,qr=$e.labelAlign,Jr=$e.labelWrap,Aa=$e.labelCol,ya=$e.wrapperCol,$t=$e.hideRequiredMark,wn=$e.layout,Fn=wn===void 0?"horizontal":wn,Or=$e.scrollToFirstError,vr=$e.requiredMark,Ur=$e.onFinishFailed,Zr=$e.name,Kr=we($e,["prefixCls","className","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name"]),ba=b.useContext(W.Z),Ri=(0,b.useMemo)(function(){return vr!==void 0?vr:zt&&zt.requiredMark!==void 0?zt.requiredMark:!$t},[$t,vr,zt]),Ea=$n!=null?$n:zt==null?void 0:zt.colon,Pi=mt("form",ln),rs=w()(Pi,(lt={},(0,g.Z)(lt,"".concat(Pi,"-").concat(Fn),!0),(0,g.Z)(lt,"".concat(Pi,"-hide-required-mark"),Ri===!1),(0,g.Z)(lt,"".concat(Pi,"-rtl"),Zt==="rtl"),(0,g.Z)(lt,"".concat(Pi,"-").concat(Bn),Bn),lt),En),Ui=fe(na),Cn=(0,d.Z)(Ui,1),Kn=Cn[0],Pn=Kn.__INTERNAL__;Pn.name=Zr;var At=(0,b.useMemo)(function(){return{name:Zr,labelAlign:qr,labelCol:Aa,labelWrap:Jr,wrapperCol:ya,vertical:Fn==="vertical",colon:Ea,requiredMark:Ri,itemRef:Pn.itemRef,form:Kn}},[Zr,qr,Aa,ya,Fn,Ea,Ri,Kn]);b.useImperativeHandle(kt,function(){return Kn});var ar=function(Yn){Ur==null||Ur(Yn);var Qa={block:"nearest"};Or&&Yn.errorFields.length&&((0,O.Z)(Or)==="object"&&(Qa=Or),Kn.scrollToField(Yn.errorFields[0].name,Qa))};return b.createElement(D.n,{disabled:_r},b.createElement(Z.q,{size:Bn},b.createElement(x.RV,(0,A.Z)({},{validateMessages:ba}),b.createElement(x.q3.Provider,{value:At},b.createElement(F.default,(0,A.Z)({id:Zr},Kr,{name:Zr,onFinishFailed:ar,form:Kn,className:rs}))))))},Pe=b.forwardRef(me),pe=Pe,Ie=o(47066),Je=o(99182),ke=function(){var $e=(0,b.useContext)(x.aM),kt=$e.status;return{status:kt}},De=ke,Fe=o(75447),Qe=o(4381),qe=o(28101);function et(Ue){var $e=b.useState(Ue),kt=(0,d.Z)($e,2),lt=kt[0],vt=kt[1],Ct=(0,b.useRef)(null),Bt=(0,b.useRef)([]),mt=(0,b.useRef)(!1);b.useEffect(function(){return mt.current=!1,function(){mt.current=!0,qe.Z.cancel(Ct.current),Ct.current=null}},[]);function Zt(zt){mt.current||(Ct.current===null&&(Bt.current=[],Ct.current=(0,qe.Z)(function(){Ct.current=null,vt(function(ln){var An=ln;return Bt.current.forEach(function(En){An=En(An)}),An})})),Bt.current.push(zt))}return[lt,Zt]}function dt(){var Ue=b.useContext(x.q3),$e=Ue.itemRef,kt=b.useRef({});function lt(vt,Ct){var Bt=Ct&&(0,O.Z)(Ct)==="object"&&Ct.ref,mt=vt.join("_");return(kt.current.name!==mt||kt.current.originRef!==Bt)&&(kt.current.name=mt,kt.current.originRef=Bt,kt.current.ref=(0,Je.sQ)($e(vt),Bt)),kt.current.ref}return lt}var Ke=o(38819),Ge=o(43061),wt=o(68855),Vt=o(7085),gt=o(44793),it=o(69252),Le=o(69160),ct=o(28991),at={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},jt=at,St=o(27029),fn=function($e,kt){return b.createElement(St.Z,(0,ct.Z)((0,ct.Z)({},$e),{},{ref:kt,icon:jt}))};fn.displayName="QuestionCircleOutlined";var Xt=b.forwardRef(fn),Yt=o(18316),Rt=o(56701),Lt=o(16980),ze=o(95455),rt=function(Ue,$e){var kt={};for(var lt in Ue)Object.prototype.hasOwnProperty.call(Ue,lt)&&$e.indexOf(lt)<0&&(kt[lt]=Ue[lt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,lt=Object.getOwnPropertySymbols(Ue);vt<lt.length;vt++)$e.indexOf(lt[vt])<0&&Object.prototype.propertyIsEnumerable.call(Ue,lt[vt])&&(kt[lt[vt]]=Ue[lt[vt]]);return kt};function tt(Ue){return Ue?(0,O.Z)(Ue)==="object"&&!b.isValidElement(Ue)?Ue:{title:Ue}:null}var de=function($e){var kt=$e.prefixCls,lt=$e.label,vt=$e.htmlFor,Ct=$e.labelCol,Bt=$e.labelAlign,mt=$e.colon,Zt=$e.required,zt=$e.requiredMark,ln=$e.tooltip,An=(0,Rt.E)("Form"),En=(0,d.Z)(An,1),Gn=En[0];return lt?b.createElement(x.q3.Consumer,{key:"label"},function(Bn){var pr,_r=Bn.vertical,na=Bn.labelAlign,$n=Bn.labelCol,qr=Bn.labelWrap,Jr=Bn.colon,Aa,ya=Ct||$n||{},$t=Bt||na,wn="".concat(kt,"-item-label"),Fn=w()(wn,$t==="left"&&"".concat(wn,"-left"),ya.className,(0,g.Z)({},"".concat(wn,"-wrap"),!!qr)),Or=lt,vr=mt===!0||Jr!==!1&&mt!==!1,Ur=vr&&!_r;Ur&&typeof lt=="string"&<.trim()!==""&&(Or=lt.replace(/[:|:]\s*$/,""));var Zr=tt(ln);if(Zr){var Kr=Zr.icon,ba=Kr===void 0?b.createElement(Xt,null):Kr,Ri=rt(Zr,["icon"]),Ea=b.createElement(ze.Z,(0,A.Z)({},Ri),b.cloneElement(ba,{className:"".concat(kt,"-item-tooltip"),title:""}));Or=b.createElement(b.Fragment,null,Or,Ea)}zt==="optional"&&!Zt&&(Or=b.createElement(b.Fragment,null,Or,b.createElement("span",{className:"".concat(kt,"-item-optional"),title:""},(Gn==null?void 0:Gn.optional)||((Aa=Lt.Z.Form)===null||Aa===void 0?void 0:Aa.optional))));var Pi=w()((pr={},(0,g.Z)(pr,"".concat(kt,"-item-required"),Zt),(0,g.Z)(pr,"".concat(kt,"-item-required-mark-optional"),zt==="optional"),(0,g.Z)(pr,"".concat(kt,"-item-no-colon"),!vr),pr));return b.createElement(Yt.Z,(0,A.Z)({},ya,{className:Fn}),b.createElement("label",{htmlFor:vt,className:Pi,title:typeof lt=="string"?lt:""},Or))}):null},ot=de,Et=function($e){var kt=$e.prefixCls,lt=$e.status,vt=$e.wrapperCol,Ct=$e.children,Bt=$e.errors,mt=$e.warnings,Zt=$e._internalItemRender,zt=$e.extra,ln=$e.help,An=$e.fieldId,En=$e.marginBottom,Gn=$e.onErrorVisibleChanged,Bn="".concat(kt,"-item"),pr=b.useContext(x.q3),_r=vt||pr.wrapperCol||{},na=w()("".concat(Bn,"-control"),_r.className),$n=b.useMemo(function(){return(0,A.Z)({},pr)},[pr]);delete $n.labelCol,delete $n.wrapperCol;var qr=b.createElement("div",{className:"".concat(Bn,"-control-input")},b.createElement("div",{className:"".concat(Bn,"-control-input-content")},Ct)),Jr=b.useMemo(function(){return{prefixCls:kt,status:lt}},[kt,lt]),Aa=En!==null||Bt.length||mt.length?b.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},b.createElement(x.Rk.Provider,{value:Jr},b.createElement(k,{fieldId:An,errors:Bt,warnings:mt,help:ln,helpStatus:lt,className:"".concat(Bn,"-explain-connected"),onVisibleChanged:Gn})),!!En&&b.createElement("div",{style:{width:0,height:En}})):null,ya={};An&&(ya.id="".concat(An,"_extra"));var $t=zt?b.createElement("div",(0,A.Z)({},ya,{className:"".concat(Bn,"-extra")}),zt):null,wn=Zt&&Zt.mark==="pro_table_render"&&Zt.render?Zt.render($e,{input:qr,errorList:Aa,extra:$t}):b.createElement(b.Fragment,null,qr,Aa,$t);return b.createElement(x.q3.Provider,{value:$n},b.createElement(Yt.Z,(0,A.Z)({},_r,{className:na}),wn))},Ht=Et,Jt=function(Ue,$e){var kt={};for(var lt in Ue)Object.prototype.hasOwnProperty.call(Ue,lt)&&$e.indexOf(lt)<0&&(kt[lt]=Ue[lt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,lt=Object.getOwnPropertySymbols(Ue);vt<lt.length;vt++)$e.indexOf(lt[vt])<0&&Object.prototype.propertyIsEnumerable.call(Ue,lt[vt])&&(kt[lt[vt]]=Ue[lt[vt]]);return kt},Qt={success:Ke.Z,warning:wt.Z,error:Ge.Z,validating:Vt.Z};function an(Ue){var $e,kt=Ue.prefixCls,lt=Ue.className,vt=Ue.style,Ct=Ue.help,Bt=Ue.errors,mt=Ue.warnings,Zt=Ue.validateStatus,zt=Ue.meta,ln=Ue.hasFeedback,An=Ue.hidden,En=Ue.children,Gn=Ue.fieldId,Bn=Ue.isRequired,pr=Ue.onSubItemMetaChange,_r=Jt(Ue,["prefixCls","className","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","isRequired","onSubItemMetaChange"]),na="".concat(kt,"-item"),$n=b.useContext(x.q3),qr=$n.requiredMark,Jr=b.useRef(null),Aa=_(Bt),ya=_(mt),$t=Ct!=null,wn=!!($t||Bt.length||mt.length),Fn=b.useState(null),Or=(0,d.Z)(Fn,2),vr=Or[0],Ur=Or[1];(0,gt.Z)(function(){if(wn&&Jr.current){var Ea=getComputedStyle(Jr.current);Ur(parseInt(Ea.marginBottom,10))}},[wn]);var Zr=function(Pi){Pi||Ur(null)},Kr="";Zt!==void 0?Kr=Zt:zt.validating?Kr="validating":Aa.length?Kr="error":ya.length?Kr="warning":zt.touched&&(Kr="success");var ba=b.useMemo(function(){var Ea;if(ln){var Pi=Kr&&Qt[Kr];Ea=Pi?b.createElement("span",{className:w()("".concat(na,"-feedback-icon"),"".concat(na,"-feedback-icon-").concat(Kr))},b.createElement(Pi,null)):null}return{status:Kr,hasFeedback:ln,feedbackIcon:Ea,isFormItemInput:!0}},[Kr,ln]),Ri=($e={},(0,g.Z)($e,na,!0),(0,g.Z)($e,"".concat(na,"-with-help"),$t||Aa.length||ya.length),(0,g.Z)($e,"".concat(lt),!!lt),(0,g.Z)($e,"".concat(na,"-has-feedback"),Kr&&ln),(0,g.Z)($e,"".concat(na,"-has-success"),Kr==="success"),(0,g.Z)($e,"".concat(na,"-has-warning"),Kr==="warning"),(0,g.Z)($e,"".concat(na,"-has-error"),Kr==="error"),(0,g.Z)($e,"".concat(na,"-is-validating"),Kr==="validating"),(0,g.Z)($e,"".concat(na,"-hidden"),An),$e);return b.createElement("div",{className:w()(Ri),style:vt,ref:Jr},b.createElement(Le.Z,(0,A.Z)({className:"".concat(na,"-row")},(0,it.Z)(_r,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","required","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol"])),b.createElement(ot,(0,A.Z)({htmlFor:Gn,required:Bn,requiredMark:qr},Ue,{prefixCls:kt})),b.createElement(Ht,(0,A.Z)({},Ue,zt,{errors:Aa,warnings:ya,prefixCls:kt,status:Kr,help:Ct,marginBottom:vr,onErrorVisibleChanged:Zr}),b.createElement(x.qI.Provider,{value:pr},b.createElement(x.aM.Provider,{value:ba},En)))),!!vr&&b.createElement("div",{className:"".concat(na,"-margin-offset"),style:{marginBottom:-vr}}))}var Un="__SPLIT__",qt=(0,Qe.b)("success","warning","error","validating",""),rn=b.memo(function(Ue){var $e=Ue.children;return $e},function(Ue,$e){return Ue.value===$e.value&&Ue.update===$e.update&&Ue.childProps.length===$e.childProps.length&&Ue.childProps.every(function(kt,lt){return kt===$e.childProps[lt]})});function cn(Ue){return Ue!=null}function er(){return{errors:[],warnings:[],touched:!1,validating:!1,validated:!1,name:[]}}function rr(Ue){var $e=Ue.name,kt=Ue.noStyle,lt=Ue.dependencies,vt=Ue.prefixCls,Ct=Ue.shouldUpdate,Bt=Ue.rules,mt=Ue.children,Zt=Ue.required,zt=Ue.label,ln=Ue.messageVariables,An=Ue.trigger,En=An===void 0?"onChange":An,Gn=Ue.validateTrigger,Bn=Ue.hidden,pr=(0,b.useContext)(v.E_),_r=pr.getPrefixCls,na=(0,b.useContext)(x.q3),$n=na.name,qr=typeof mt=="function",Jr=(0,b.useContext)(x.qI),Aa=(0,b.useContext)(F.FieldContext),ya=Aa.validateTrigger,$t=Gn!==void 0?Gn:ya,wn=cn($e),Fn=_r("form",vt),Or=b.useContext(F.ListContext),vr=b.useRef(),Ur=et({}),Zr=(0,d.Z)(Ur,2),Kr=Zr[0],ba=Zr[1],Ri=(0,Ie.Z)(function(){return er()}),Ea=(0,d.Z)(Ri,2),Pi=Ea[0],rs=Ea[1],Ui=function(Fi){var Xa=Or==null?void 0:Or.getKey(Fi.name);if(rs(Fi.destroy?er():Fi,!0),kt&&Jr){var $i=Fi.name;if(Fi.destroy)$i=vr.current||$i;else if(Xa!==void 0){var La=(0,d.Z)(Xa,2),ja=La[0],ei=La[1];$i=[ja].concat((0,y.Z)(ei)),vr.current=$i}Jr(Fi,$i)}},Cn=function(Fi,Xa){ba(function($i){var La=(0,A.Z)({},$i),ja=[].concat((0,y.Z)(Fi.name.slice(0,-1)),(0,y.Z)(Xa)),ei=ja.join(Un);return Fi.destroy?delete La[ei]:La[ei]=Fi,La})},Kn=b.useMemo(function(){var Ua=(0,y.Z)(Pi.errors),Fi=(0,y.Z)(Pi.warnings);return Object.values(Kr).forEach(function(Xa){Ua.push.apply(Ua,(0,y.Z)(Xa.errors||[])),Fi.push.apply(Fi,(0,y.Z)(Xa.warnings||[]))}),[Ua,Fi]},[Kr,Pi.errors,Pi.warnings]),Pn=(0,d.Z)(Kn,2),At=Pn[0],ar=Pn[1],ta=dt();function Yn(Ua,Fi,Xa){return kt&&!Bn?Ua:b.createElement(an,(0,A.Z)({key:"row"},Ue,{prefixCls:Fn,fieldId:Fi,isRequired:Xa,errors:At,warnings:ar,meta:Pi,onSubItemMetaChange:Cn}),Ua)}if(!wn&&!qr&&!lt)return Yn(mt);var Qa={};return typeof zt=="string"?Qa.label=zt:$e&&(Qa.label=String($e)),ln&&(Qa=(0,A.Z)((0,A.Z)({},Qa),ln)),b.createElement(F.Field,(0,A.Z)({},Ue,{messageVariables:Qa,trigger:En,validateTrigger:$t,onMetaChange:Ui}),function(Ua,Fi,Xa){var $i=Ee($e).length&&Fi?Fi.name:[],La=ce($i,$n),ja=Zt!==void 0?Zt:!!(Bt&&Bt.some(function(Os){if(Os&&(0,O.Z)(Os)==="object"&&Os.required&&!Os.warningOnly)return!0;if(typeof Os=="function"){var vl=Os(Xa);return vl&&vl.required&&!vl.warningOnly}return!1})),ei=(0,A.Z)({},Ua),Do=null;if(Array.isArray(mt)&&wn)Do=mt;else if(!(qr&&(!(Ct||lt)||wn))){if(!(lt&&!qr&&!wn))if((0,Fe.l$)(mt)){var yo=(0,A.Z)((0,A.Z)({},mt.props),ei);if(yo.id||(yo.id=La),Ue.help||At.length>0||ar.length>0||Ue.extra){var to=[];(Ue.help||At.length>0)&&to.push("".concat(La,"_help")),Ue.extra&&to.push("".concat(La,"_extra")),yo["aria-describedby"]=to.join(" ")}At.length>0&&(yo["aria-invalid"]="true"),ja&&(yo["aria-required"]="true"),(0,Je.Yr)(mt)&&(yo.ref=ta($i,mt));var fs=new Set([].concat((0,y.Z)(Ee(En)),(0,y.Z)(Ee($t))));fs.forEach(function(Os){yo[Os]=function(){for(var vl,Ar,Rn,Sr,nn,sn=arguments.length,Ot=new Array(sn),gr=0;gr<sn;gr++)Ot[gr]=arguments[gr];(Rn=ei[Os])===null||Rn===void 0||(vl=Rn).call.apply(vl,[ei].concat(Ot)),(nn=(Sr=mt.props)[Os])===null||nn===void 0||(Ar=nn).call.apply(Ar,[Sr].concat(Ot))}});var cs=[yo["aria-required"],yo["aria-invalid"],yo["aria-describedby"]];Do=b.createElement(rn,{value:ei[Ue.valuePropName||"value"],update:mt,childProps:cs},(0,Fe.Tm)(mt,yo))}else qr&&(Ct||lt)&&!wn?Do=mt(Xa):Do=mt}return Yn(Do,La,ja)})}var nt=rr;nt.useStatus=De;var lr=nt,Hn=function(Ue,$e){var kt={};for(var lt in Ue)Object.prototype.hasOwnProperty.call(Ue,lt)&&$e.indexOf(lt)<0&&(kt[lt]=Ue[lt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,lt=Object.getOwnPropertySymbols(Ue);vt<lt.length;vt++)$e.indexOf(lt[vt])<0&&Object.prototype.propertyIsEnumerable.call(Ue,lt[vt])&&(kt[lt[vt]]=Ue[lt[vt]]);return kt},ut=function($e){var kt=$e.prefixCls,lt=$e.children,vt=Hn($e,["prefixCls","children"]),Ct=b.useContext(v.E_),Bt=Ct.getPrefixCls,mt=Bt("form",kt),Zt=b.useMemo(function(){return{prefixCls:mt,status:"error"}},[mt]);return b.createElement(F.List,(0,A.Z)({},vt),function(zt,ln,An){return b.createElement(x.Rk.Provider,{value:Zt},lt(zt.map(function(En){return(0,A.Z)((0,A.Z)({},En),{fieldKey:En.key})}),ln,{errors:An.errors,warnings:An.warnings}))})},bt=ut;function We(){var Ue=(0,b.useContext)(x.q3),$e=Ue.form;return $e}var be=pe;be.Item=lr,be.List=bt,be.ErrorList=k,be.useForm=fe,be.useFormInstance=We,be.useWatch=F.useWatch,be.Provider=x.RV,be.create=function(){};var Ae=be},67604:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(34442),y=o.n(A),M=o(86178),w=o(81984)},70388:function(oe,N,o){"use strict";var x=o(67294);N.Z=(0,x.createContext)(void 0)},65886:function(oe,N,o){"use strict";var x=o(67294),g=(0,x.createContext)({});N.Z=g},18316:function(oe,N,o){"use strict";var x=o(96156),g=o(22122),A=o(90484),y=o(35510),M=o.n(y),w=o(67294),m=o(9054),b=o(65886),v=function(p,S){var k={};for(var O in p)Object.prototype.hasOwnProperty.call(p,O)&&S.indexOf(O)<0&&(k[O]=p[O]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,O=Object.getOwnPropertySymbols(p);F<O.length;F++)S.indexOf(O[F])<0&&Object.prototype.propertyIsEnumerable.call(p,O[F])&&(k[O[F]]=p[O[F]]);return k};function h(p){return typeof p=="number"?"".concat(p," ").concat(p," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(p)?"0 0 ".concat(p):p}var d=["xs","sm","md","lg","xl","xxl"],_=w.forwardRef(function(p,S){var k,O=w.useContext(m.E_),F=O.getPrefixCls,D=O.direction,Z=w.useContext(b.Z),W=Z.gutter,U=Z.wrap,L=Z.supportFlexGap,V=p.prefixCls,$=p.span,G=p.order,z=p.offset,K=p.push,re=p.pull,ne=p.className,Q=p.children,ue=p.flex,he=p.style,Ee=v(p,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),ce=F("col",V),ve={};d.forEach(function(pe){var Ie,Je={},ke=p[pe];typeof ke=="number"?Je.span=ke:(0,A.Z)(ke)==="object"&&(Je=ke||{}),delete Ee[pe],ve=(0,g.Z)((0,g.Z)({},ve),(Ie={},(0,x.Z)(Ie,"".concat(ce,"-").concat(pe,"-").concat(Je.span),Je.span!==void 0),(0,x.Z)(Ie,"".concat(ce,"-").concat(pe,"-order-").concat(Je.order),Je.order||Je.order===0),(0,x.Z)(Ie,"".concat(ce,"-").concat(pe,"-offset-").concat(Je.offset),Je.offset||Je.offset===0),(0,x.Z)(Ie,"".concat(ce,"-").concat(pe,"-push-").concat(Je.push),Je.push||Je.push===0),(0,x.Z)(Ie,"".concat(ce,"-").concat(pe,"-pull-").concat(Je.pull),Je.pull||Je.pull===0),(0,x.Z)(Ie,"".concat(ce,"-rtl"),D==="rtl"),Ie))});var fe=M()(ce,(k={},(0,x.Z)(k,"".concat(ce,"-").concat($),$!==void 0),(0,x.Z)(k,"".concat(ce,"-order-").concat(G),G),(0,x.Z)(k,"".concat(ce,"-offset-").concat(z),z),(0,x.Z)(k,"".concat(ce,"-push-").concat(K),K),(0,x.Z)(k,"".concat(ce,"-pull-").concat(re),re),k),ne,ve),we={};if(W&&W[0]>0){var me=W[0]/2;we.paddingLeft=me,we.paddingRight=me}if(W&&W[1]>0&&!L){var Pe=W[1]/2;we.paddingTop=Pe,we.paddingBottom=Pe}return ue&&(we.flex=h(ue),U===!1&&!we.minWidth&&(we.minWidth=0)),w.createElement("div",(0,g.Z)({},Ee,{style:(0,g.Z)((0,g.Z)({},we),he),className:fe,ref:S}),Q)});N.Z=_},31312:function(oe,N,o){"use strict";var x=o(67294),g=o(72370),A=o(85748);function y(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,w=(0,x.useRef)({}),m=(0,g.Z)();return(0,x.useEffect)(function(){var b=A.ZP.subscribe(function(v){w.current=v,M&&m()});return function(){return A.ZP.unsubscribe(b)}},[]),w.current}N.Z=y},49570:function(oe,N,o){"use strict";var x=o(31312);function g(){return(0,x.Z)()}N.ZP={useBreakpoint:g}},69160:function(oe,N,o){"use strict";var x=o(22122),g=o(96156),A=o(90484),y=o(28481),M=o(35510),w=o.n(M),m=o(67294),b=o(9054),v=o(75675),h=o(85748),d=o(4381),_=o(65886),p=function(D,Z){var W={};for(var U in D)Object.prototype.hasOwnProperty.call(D,U)&&Z.indexOf(U)<0&&(W[U]=D[U]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,U=Object.getOwnPropertySymbols(D);L<U.length;L++)Z.indexOf(U[L])<0&&Object.prototype.propertyIsEnumerable.call(D,U[L])&&(W[U[L]]=D[U[L]]);return W},S=(0,d.b)("top","middle","bottom","stretch"),k=(0,d.b)("start","end","center","space-around","space-between","space-evenly");function O(D,Z){var W=m.useState(typeof D=="string"?D:""),U=(0,y.Z)(W,2),L=U[0],V=U[1],$=function(){if(typeof D=="string"&&V(D),(0,A.Z)(D)==="object")for(var z=0;z<h.c4.length;z++){var K=h.c4[z];if(!!Z[K]){var re=D[K];if(re!==void 0){V(re);return}}}};return m.useEffect(function(){$()},[JSON.stringify(D),Z]),L}var F=m.forwardRef(function(D,Z){var W,U=D.prefixCls,L=D.justify,V=D.align,$=D.className,G=D.style,z=D.children,K=D.gutter,re=K===void 0?0:K,ne=D.wrap,Q=p(D,["prefixCls","justify","align","className","style","children","gutter","wrap"]),ue=m.useContext(b.E_),he=ue.getPrefixCls,Ee=ue.direction,ce=m.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),ve=(0,y.Z)(ce,2),fe=ve[0],we=ve[1],me=m.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),Pe=(0,y.Z)(me,2),pe=Pe[0],Ie=Pe[1],Je=O(V,pe),ke=O(L,pe),De=(0,v.Z)(),Fe=m.useRef(re);m.useEffect(function(){var at=h.ZP.subscribe(function(jt){Ie(jt);var St=Fe.current||0;(!Array.isArray(St)&&(0,A.Z)(St)==="object"||Array.isArray(St)&&((0,A.Z)(St[0])==="object"||(0,A.Z)(St[1])==="object"))&&we(jt)});return function(){return h.ZP.unsubscribe(at)}},[]);var Qe=function(){var jt=[void 0,void 0],St=Array.isArray(re)?re:[re,void 0];return St.forEach(function(fn,Xt){if((0,A.Z)(fn)==="object")for(var Yt=0;Yt<h.c4.length;Yt++){var Rt=h.c4[Yt];if(fe[Rt]&&fn[Rt]!==void 0){jt[Xt]=fn[Rt];break}}else jt[Xt]=fn}),jt},qe=he("row",U),et=Qe(),dt=w()(qe,(W={},(0,g.Z)(W,"".concat(qe,"-no-wrap"),ne===!1),(0,g.Z)(W,"".concat(qe,"-").concat(ke),ke),(0,g.Z)(W,"".concat(qe,"-").concat(Je),Je),(0,g.Z)(W,"".concat(qe,"-rtl"),Ee==="rtl"),W),$),Ke={},Ge=et[0]!=null&&et[0]>0?et[0]/-2:void 0,wt=et[1]!=null&&et[1]>0?et[1]/-2:void 0;if(Ge&&(Ke.marginLeft=Ge,Ke.marginRight=Ge),De){var Vt=(0,y.Z)(et,2);Ke.rowGap=Vt[1]}else wt&&(Ke.marginTop=wt,Ke.marginBottom=wt);var gt=(0,y.Z)(et,2),it=gt[0],Le=gt[1],ct=m.useMemo(function(){return{gutter:[it,Le],wrap:ne,supportFlexGap:De}},[it,Le,ne,De]);return m.createElement(_.Z.Provider,{value:ct},m.createElement("div",(0,x.Z)({},Q,{className:dt,style:(0,x.Z)((0,x.Z)({},Ke),G),ref:Z}),z))});N.Z=F},86178:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(80638),y=o.n(A)},1541:function(oe,N,o){"use strict";o.d(N,{Z:function(){return Un}});var x=o(22122),g=o(96156),A=o(90484),y=o(28481),M=o(57254),w=o(58491),m=o(35510),b=o.n(m),v=o(81253),h=o(67294),d={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(rn){var cn=rn.keyCode;if(rn.altKey&&!rn.ctrlKey||rn.metaKey||cn>=d.F1&&cn<=d.F12)return!1;switch(cn){case d.ALT:case d.CAPS_LOCK:case d.CONTEXT_MENU:case d.CTRL:case d.DOWN:case d.END:case d.ESC:case d.HOME:case d.INSERT:case d.LEFT:case d.MAC_FF_META:case d.META:case d.NUMLOCK:case d.NUM_CENTER:case d.PAGE_DOWN:case d.PAGE_UP:case d.PAUSE:case d.PRINT_SCREEN:case d.RIGHT:case d.SHIFT:case d.UP:case d.WIN_KEY:case d.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(rn){if(rn>=d.ZERO&&rn<=d.NINE||rn>=d.NUM_ZERO&&rn<=d.NUM_MULTIPLY||rn>=d.A&&rn<=d.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&rn===0)return!0;switch(rn){case d.SPACE:case d.QUESTION_MARK:case d.NUM_PLUS:case d.NUM_MINUS:case d.NUM_PERIOD:case d.NUM_DIVISION:case d.SEMICOLON:case d.DASH:case d.EQUALS:case d.COMMA:case d.PERIOD:case d.SLASH:case d.APOSTROPHE:case d.SINGLE_QUOTE:case d.OPEN_SQUARE_BRACKET:case d.BACKSLASH:case d.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},_=d;function p(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var S=p()?h.useLayoutEffect:h.useEffect,k=function(rn,cn){var er=h.useRef(!0);S(function(){return rn(er.current)},cn),S(function(){return er.current=!1,function(){er.current=!0}},[])},O=function(rn,cn){k(function(er){if(!er)return rn()},cn)},F=null,D=o(54323);function Z(qt,rn,cn){var er=React.useRef({});return(!("value"in er.current)||cn(er.current.condition,rn))&&(er.current.value=qt(),er.current.condition=rn),er.current.value}function W(qt,rn){typeof qt=="function"?qt(rn):(0,A.Z)(qt)==="object"&&qt&&"current"in qt&&(qt.current=rn)}function U(){for(var qt=arguments.length,rn=new Array(qt),cn=0;cn<qt;cn++)rn[cn]=arguments[cn];var er=rn.filter(function(rr){return rr});return er.length<=1?er[0]:function(rr){rn.forEach(function(nt){W(nt,rr)})}}function L(){for(var qt=arguments.length,rn=new Array(qt),cn=0;cn<qt;cn++)rn[cn]=arguments[cn];return useMemo(function(){return U.apply(void 0,rn)},rn,function(er,rr){return er.length!==rr.length||er.every(function(nt,lr){return nt!==rr[lr]})})}function V(qt){var rn,cn,er=isMemo(qt)?qt.type.type:qt.type;return!(typeof er=="function"&&!((rn=er.prototype)!==null&&rn!==void 0&&rn.render)||typeof qt=="function"&&!((cn=qt.prototype)!==null&&cn!==void 0&&cn.render))}function $(qt){return!isValidElement(qt)||isFragment(qt)?!1:V(qt)}var G=o(6610),z=o(5991);function K(){return typeof BigInt=="function"}function re(qt){var rn=qt.trim(),cn=rn.startsWith("-");cn&&(rn=rn.slice(1)),rn=rn.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),rn.startsWith(".")&&(rn="0".concat(rn));var er=rn||"0",rr=er.split("."),nt=rr[0]||"0",lr=rr[1]||"0";nt==="0"&&lr==="0"&&(cn=!1);var Hn=cn?"-":"";return{negative:cn,negativeStr:Hn,trimStr:er,integerStr:nt,decimalStr:lr,fullStr:"".concat(Hn).concat(er)}}function ne(qt){var rn=String(qt);return!Number.isNaN(Number(rn))&&rn.includes("e")}function Q(qt){var rn=String(qt);if(ne(qt)){var cn=Number(rn.slice(rn.indexOf("e-")+2)),er=rn.match(/\.(\d+)/);return(er==null?void 0:er[1])&&(cn+=er[1].length),cn}return rn.includes(".")&&he(rn)?rn.length-rn.indexOf(".")-1:0}function ue(qt){var rn=String(qt);if(ne(qt)){if(qt>Number.MAX_SAFE_INTEGER)return String(K()?BigInt(qt).toString():Number.MAX_SAFE_INTEGER);if(qt<Number.MIN_SAFE_INTEGER)return String(K()?BigInt(qt).toString():Number.MIN_SAFE_INTEGER);rn=qt.toFixed(Q(rn))}return re(rn).fullStr}function he(qt){return typeof qt=="number"?!Number.isNaN(qt):qt?/^\s*-?\d+(\.\d+)?\s*$/.test(qt)||/^\s*-?\d+\.\s*$/.test(qt)||/^\s*-?\.\d+\s*$/.test(qt):!1}function Ee(qt){var rn=typeof qt=="number"?ue(qt):re(qt).fullStr,cn=rn.includes(".");return cn?re(rn.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:qt+"0"}var ce=function(){function qt(rn){if((0,G.Z)(this,qt),this.origin="",this.number=void 0,this.empty=void 0,!rn&&rn!==0||!String(rn).trim()){this.empty=!0;return}this.origin=String(rn),this.number=Number(rn)}return(0,z.Z)(qt,[{key:"negate",value:function(){return new qt(-this.toNumber())}},{key:"add",value:function(cn){if(this.isInvalidate())return new qt(cn);var er=Number(cn);if(Number.isNaN(er))return this;var rr=this.number+er;if(rr>Number.MAX_SAFE_INTEGER)return new qt(Number.MAX_SAFE_INTEGER);if(rr<Number.MIN_SAFE_INTEGER)return new qt(Number.MIN_SAFE_INTEGER);var nt=Math.max(Q(this.number),Q(er));return new qt(rr.toFixed(nt))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(cn){return this.toNumber()===(cn==null?void 0:cn.toNumber())}},{key:"lessEquals",value:function(cn){return this.add(cn.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return cn?this.isInvalidate()?"":ue(this.number):this.origin}}]),qt}(),ve=function(){function qt(rn){if((0,G.Z)(this,qt),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,!rn&&rn!==0||!String(rn).trim()){this.empty=!0;return}if(this.origin=String(rn),rn==="-"){this.nan=!0;return}var cn=rn;if(ne(cn)&&(cn=Number(cn)),cn=typeof cn=="string"?cn:ue(cn),he(cn)){var er=re(cn);this.negative=er.negative;var rr=er.trimStr.split(".");this.integer=BigInt(rr[0]);var nt=rr[1]||"0";this.decimal=BigInt(nt),this.decimalLen=nt.length}else this.nan=!0}return(0,z.Z)(qt,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(cn){var er="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(cn,"0"));return BigInt(er)}},{key:"negate",value:function(){var cn=new qt(this.toString());return cn.negative=!cn.negative,cn}},{key:"add",value:function(cn){if(this.isInvalidate())return new qt(cn);var er=new qt(cn);if(er.isInvalidate())return this;var rr=Math.max(this.getDecimalStr().length,er.getDecimalStr().length),nt=this.alignDecimal(rr),lr=er.alignDecimal(rr),Hn=(nt+lr).toString(),ut=re(Hn),bt=ut.negativeStr,We=ut.trimStr,be="".concat(bt).concat(We.padStart(rr+1,"0"));return new qt("".concat(be.slice(0,-rr),".").concat(be.slice(-rr)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(cn){return this.toString()===(cn==null?void 0:cn.toString())}},{key:"lessEquals",value:function(cn){return this.add(cn.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return cn?this.isInvalidate()?"":re("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),qt}();function fe(qt){return K()?new ve(qt):new ce(qt)}function we(qt,rn,cn){var er=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(qt==="")return"";var rr=re(qt),nt=rr.negativeStr,lr=rr.integerStr,Hn=rr.decimalStr,ut="".concat(rn).concat(Hn),bt="".concat(nt).concat(lr);if(cn>=0){var We=Number(Hn[cn]);if(We>=5&&!er){var be=fe(qt).add("".concat(nt,"0.").concat("0".repeat(cn)).concat(10-We));return we(be.toString(),rn,cn,er)}return cn===0?bt:"".concat(bt).concat(rn).concat(Hn.padEnd(cn,"0").slice(0,cn))}return ut===".0"?bt:"".concat(bt).concat(ut)}var me=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var qt=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(qt)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(qt==null?void 0:qt.substr(0,4))},Pe=200,pe=600;function Ie(qt){var rn=qt.prefixCls,cn=qt.upNode,er=qt.downNode,rr=qt.upDisabled,nt=qt.downDisabled,lr=qt.onStep,Hn=h.useRef(),ut=h.useRef();ut.current=lr;var bt=function(lt,vt){lt.preventDefault(),ut.current(vt);function Ct(){ut.current(vt),Hn.current=setTimeout(Ct,Pe)}Hn.current=setTimeout(Ct,pe)},We=function(){clearTimeout(Hn.current)};if(h.useEffect(function(){return We},[]),me())return null;var be="".concat(rn,"-handler"),Ae=b()(be,"".concat(be,"-up"),(0,g.Z)({},"".concat(be,"-up-disabled"),rr)),Ue=b()(be,"".concat(be,"-down"),(0,g.Z)({},"".concat(be,"-down-disabled"),nt)),$e={unselectable:"on",role:"button",onMouseUp:We,onMouseLeave:We};return h.createElement("div",{className:"".concat(be,"-wrap")},h.createElement("span",(0,x.Z)({},$e,{onMouseDown:function(lt){bt(lt,!0)},"aria-label":"Increase Value","aria-disabled":rr,className:Ae}),cn||h.createElement("span",{unselectable:"on",className:"".concat(rn,"-handler-up-inner")})),h.createElement("span",(0,x.Z)({},$e,{onMouseDown:function(lt){bt(lt,!1)},"aria-label":"Decrease Value","aria-disabled":nt,className:Ue}),er||h.createElement("span",{unselectable:"on",className:"".concat(rn,"-handler-down-inner")})))}var Je={},ke=[],De=function(rn){ke.push(rn)};function Fe(qt,rn){if(!1)var cn}function Qe(qt,rn){if(!1)var cn}function qe(){Je={}}function et(qt,rn,cn){!rn&&!Je[cn]&&(qt(!1,cn),Je[cn]=!0)}function dt(qt,rn){et(Fe,qt,rn)}function Ke(qt,rn){et(Qe,qt,rn)}dt.preMessage=De,dt.resetWarned=qe,dt.noteOnce=Ke;var Ge=dt;function wt(qt,rn){var cn=(0,h.useRef)(null);function er(){try{var nt=qt.selectionStart,lr=qt.selectionEnd,Hn=qt.value,ut=Hn.substring(0,nt),bt=Hn.substring(lr);cn.current={start:nt,end:lr,value:Hn,beforeTxt:ut,afterTxt:bt}}catch(We){}}function rr(){if(qt&&cn.current&&rn)try{var nt=qt.value,lr=cn.current,Hn=lr.beforeTxt,ut=lr.afterTxt,bt=lr.start,We=nt.length;if(nt.endsWith(ut))We=nt.length-cn.current.afterTxt.length;else if(nt.startsWith(Hn))We=Hn.length;else{var be=Hn[bt-1],Ae=nt.indexOf(be,bt-1);Ae!==-1&&(We=Ae+1)}qt.setSelectionRange(We,We)}catch(Ue){Ge(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Ue.message))}}return[er,rr]}var Vt=function(rn){return+setTimeout(rn,16)},gt=function(rn){return clearTimeout(rn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Vt=function(rn){return window.requestAnimationFrame(rn)},gt=function(rn){return window.cancelAnimationFrame(rn)});var it=0,Le=new Map;function ct(qt){Le.delete(qt)}var at=function(rn){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;it+=1;var er=it;function rr(nt){if(nt===0)ct(er),rn();else{var lr=Vt(function(){rr(nt-1)});Le.set(er,lr)}}return rr(cn),er};at.cancel=function(qt){var rn=Le.get(qt);return ct(rn),gt(rn)};var jt=at,St=function(){var qt=(0,h.useRef)(0),rn=function(){jt.cancel(qt.current)};return(0,h.useEffect)(function(){return rn},[]),function(cn){rn(),qt.current=jt(function(){cn()})}},fn=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Xt=function(rn,cn){return rn||cn.isEmpty()?cn.toString():cn.toNumber()},Yt=function(rn){var cn=fe(rn);return cn.isInvalidate()?null:cn},Rt=h.forwardRef(function(qt,rn){var cn,er=qt.prefixCls,rr=er===void 0?"rc-input-number":er,nt=qt.className,lr=qt.style,Hn=qt.min,ut=qt.max,bt=qt.step,We=bt===void 0?1:bt,be=qt.defaultValue,Ae=qt.value,Ue=qt.disabled,$e=qt.readOnly,kt=qt.upHandler,lt=qt.downHandler,vt=qt.keyboard,Ct=qt.controls,Bt=Ct===void 0?!0:Ct,mt=qt.stringMode,Zt=qt.parser,zt=qt.formatter,ln=qt.precision,An=qt.decimalSeparator,En=qt.onChange,Gn=qt.onInput,Bn=qt.onPressEnter,pr=qt.onStep,_r=(0,v.Z)(qt,fn),na="".concat(rr,"-input"),$n=h.useRef(null),qr=h.useState(!1),Jr=(0,y.Z)(qr,2),Aa=Jr[0],ya=Jr[1],$t=h.useRef(!1),wn=h.useRef(!1),Fn=h.useRef(!1),Or=h.useState(function(){return fe(Ae!=null?Ae:be)}),vr=(0,y.Z)(Or,2),Ur=vr[0],Zr=vr[1];function Kr(nn){Ae===void 0&&Zr(nn)}var ba=h.useCallback(function(nn,sn){if(!sn)return ln>=0?ln:Math.max(Q(nn),Q(We))},[ln,We]),Ri=h.useCallback(function(nn){var sn=String(nn);if(Zt)return Zt(sn);var Ot=sn;return An&&(Ot=Ot.replace(An,".")),Ot.replace(/[^\w.-]+/g,"")},[Zt,An]),Ea=h.useRef(""),Pi=h.useCallback(function(nn,sn){if(zt)return zt(nn,{userTyping:sn,input:String(Ea.current)});var Ot=typeof nn=="number"?ue(nn):nn;if(!sn){var gr=ba(Ot,sn);if(he(Ot)&&(An||gr>=0)){var Gr=An||".";Ot=we(Ot,Gr,gr)}}return Ot},[zt,ba,An]),rs=h.useState(function(){var nn=be!=null?be:Ae;return Ur.isInvalidate()&&["string","number"].includes((0,A.Z)(nn))?Number.isNaN(nn)?"":nn:Pi(Ur.toString(),!1)}),Ui=(0,y.Z)(rs,2),Cn=Ui[0],Kn=Ui[1];Ea.current=Cn;function Pn(nn,sn){Kn(Pi(nn.isInvalidate()?nn.toString(!1):nn.toString(!sn),sn))}var At=h.useMemo(function(){return Yt(ut)},[ut,ln]),ar=h.useMemo(function(){return Yt(Hn)},[Hn,ln]),ta=h.useMemo(function(){return!At||!Ur||Ur.isInvalidate()?!1:At.lessEquals(Ur)},[At,Ur]),Yn=h.useMemo(function(){return!ar||!Ur||Ur.isInvalidate()?!1:Ur.lessEquals(ar)},[ar,Ur]),Qa=wt($n.current,Aa),Ua=(0,y.Z)(Qa,2),Fi=Ua[0],Xa=Ua[1],$i=function(sn){return At&&!sn.lessEquals(At)?At:ar&&!ar.lessEquals(sn)?ar:null},La=function(sn){return!$i(sn)},ja=function(sn,Ot){var gr=sn,Gr=La(gr)||gr.isEmpty();if(!gr.isEmpty()&&!Ot&&(gr=$i(gr)||gr,Gr=!0),!$e&&!Ue&&Gr){var Ln=gr.toString(),Tr=ba(Ln,Ot);return Tr>=0&&(gr=fe(we(Ln,".",Tr)),La(gr)||(gr=fe(we(Ln,".",Tr,!0)))),gr.equals(Ur)||(Kr(gr),En==null||En(gr.isEmpty()?null:Xt(mt,gr)),Ae===void 0&&Pn(gr,Ot)),gr}return Ur},ei=St(),Do=function nn(sn){if(Fi(),Kn(sn),!wn.current){var Ot=Ri(sn),gr=fe(Ot);gr.isNaN()||ja(gr,!0)}Gn==null||Gn(sn),ei(function(){var Gr=sn;Zt||(Gr=sn.replace(/。/g,".")),Gr!==sn&&nn(Gr)})},yo=function(){wn.current=!0},to=function(){wn.current=!1,Do($n.current.value)},fs=function(sn){Do(sn.target.value)},cs=function(sn){var Ot;if(!(sn&&ta||!sn&&Yn)){$t.current=!1;var gr=fe(Fn.current?Ee(We):We);sn||(gr=gr.negate());var Gr=(Ur||fe(0)).add(gr.toString()),Ln=ja(Gr,!1);pr==null||pr(Xt(mt,Ln),{offset:Fn.current?Ee(We):We,type:sn?"up":"down"}),(Ot=$n.current)===null||Ot===void 0||Ot.focus()}},Os=function(sn){var Ot=fe(Ri(Cn)),gr=Ot;Ot.isNaN()?gr=Ur:gr=ja(Ot,sn),Ae!==void 0?Pn(Ur,!1):gr.isNaN()||Pn(gr,!1)},vl=function(){$t.current=!0},Ar=function(sn){var Ot=sn.which,gr=sn.shiftKey;$t.current=!0,gr?Fn.current=!0:Fn.current=!1,Ot===_.ENTER&&(wn.current||($t.current=!1),Os(!1),Bn==null||Bn(sn)),vt!==!1&&!wn.current&&[_.UP,_.DOWN].includes(Ot)&&(cs(_.UP===Ot),sn.preventDefault())},Rn=function(){$t.current=!1,Fn.current=!1},Sr=function(){Os(!1),ya(!1),$t.current=!1};return O(function(){Ur.isInvalidate()||Pn(Ur,!1)},[ln]),O(function(){var nn=fe(Ae);Zr(nn);var sn=fe(Ri(Cn));(!nn.equals(sn)||!$t.current||zt)&&Pn(nn,$t.current)},[Ae]),O(function(){zt&&Xa()},[Cn]),h.createElement("div",{className:b()(rr,nt,(cn={},(0,g.Z)(cn,"".concat(rr,"-focused"),Aa),(0,g.Z)(cn,"".concat(rr,"-disabled"),Ue),(0,g.Z)(cn,"".concat(rr,"-readonly"),$e),(0,g.Z)(cn,"".concat(rr,"-not-a-number"),Ur.isNaN()),(0,g.Z)(cn,"".concat(rr,"-out-of-range"),!Ur.isInvalidate()&&!La(Ur)),cn)),style:lr,onFocus:function(){ya(!0)},onBlur:Sr,onKeyDown:Ar,onKeyUp:Rn,onCompositionStart:yo,onCompositionEnd:to,onBeforeInput:vl},Bt&&h.createElement(Ie,{prefixCls:rr,upNode:kt,downNode:lt,upDisabled:ta,downDisabled:Yn,onStep:cs}),h.createElement("div",{className:"".concat(na,"-wrap")},h.createElement("input",(0,x.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Hn,"aria-valuemax":ut,"aria-valuenow":Ur.isInvalidate()?null:Ur.toString(),step:We},_r,{ref:U($n,rn),className:na,value:Cn,onChange:fs,disabled:Ue,readOnly:$e}))))});Rt.displayName="InputNumber";var Lt=Rt,ze=Lt,rt=o(9054),tt=o(99469),de=o(10772),ot=o(27495),Et=o(1358),Ht=o(75447),Jt=o(16786),Qt=function(qt,rn){var cn={};for(var er in qt)Object.prototype.hasOwnProperty.call(qt,er)&&rn.indexOf(er)<0&&(cn[er]=qt[er]);if(qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rr=0,er=Object.getOwnPropertySymbols(qt);rr<er.length;rr++)rn.indexOf(er[rr])<0&&Object.prototype.propertyIsEnumerable.call(qt,er[rr])&&(cn[er[rr]]=qt[er[rr]]);return cn},an=h.forwardRef(function(qt,rn){var cn,er=h.useContext(rt.E_),rr=er.getPrefixCls,nt=er.direction,lr=h.useContext(de.Z),Hn=h.useState(!1),ut=(0,y.Z)(Hn,2),bt=ut[0],We=ut[1],be=h.useRef(null);h.useImperativeHandle(rn,function(){return be.current});var Ae=qt.className,Ue=qt.size,$e=qt.disabled,kt=qt.prefixCls,lt=qt.addonBefore,vt=qt.addonAfter,Ct=qt.prefix,Bt=qt.bordered,mt=Bt===void 0?!0:Bt,Zt=qt.readOnly,zt=qt.status,ln=qt.controls,An=Qt(qt,["className","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),En=rr("input-number",kt),Gn=(0,Et.ri)(En,nt),Bn=Gn.compactSize,pr=Gn.compactItemClassnames,_r=h.createElement(w.Z,{className:"".concat(En,"-handler-up-inner")}),na=h.createElement(M.Z,{className:"".concat(En,"-handler-down-inner")}),$n=typeof ln=="boolean"?ln:void 0;(0,A.Z)(ln)==="object"&&(_r=typeof ln.upIcon=="undefined"?_r:h.createElement("span",{className:"".concat(En,"-handler-up-inner")},ln.upIcon),na=typeof ln.downIcon=="undefined"?na:h.createElement("span",{className:"".concat(En,"-handler-down-inner")},ln.downIcon));var qr=(0,h.useContext)(ot.aM),Jr=qr.hasFeedback,Aa=qr.status,ya=qr.isFormItemInput,$t=qr.feedbackIcon,wn=(0,Jt.F)(Aa,zt),Fn=Bn||Ue||lr,Or=h.useContext(tt.Z),vr=$e!=null?$e:Or,Ur=b()((cn={},(0,g.Z)(cn,"".concat(En,"-lg"),Fn==="large"),(0,g.Z)(cn,"".concat(En,"-sm"),Fn==="small"),(0,g.Z)(cn,"".concat(En,"-rtl"),nt==="rtl"),(0,g.Z)(cn,"".concat(En,"-borderless"),!mt),(0,g.Z)(cn,"".concat(En,"-in-form-item"),ya),cn),(0,Jt.Z)(En,wn),pr,Ae),Zr=h.createElement(ze,(0,x.Z)({ref:be,disabled:vr,className:Ur,upHandler:_r,downHandler:na,prefixCls:En,readOnly:Zt,controls:$n},An));if(Ct!=null||Jr){var Kr,ba=b()("".concat(En,"-affix-wrapper"),(0,Jt.Z)("".concat(En,"-affix-wrapper"),wn,Jr),(Kr={},(0,g.Z)(Kr,"".concat(En,"-affix-wrapper-focused"),bt),(0,g.Z)(Kr,"".concat(En,"-affix-wrapper-disabled"),qt.disabled),(0,g.Z)(Kr,"".concat(En,"-affix-wrapper-sm"),lr==="small"),(0,g.Z)(Kr,"".concat(En,"-affix-wrapper-lg"),lr==="large"),(0,g.Z)(Kr,"".concat(En,"-affix-wrapper-rtl"),nt==="rtl"),(0,g.Z)(Kr,"".concat(En,"-affix-wrapper-readonly"),Zt),(0,g.Z)(Kr,"".concat(En,"-affix-wrapper-borderless"),!mt),(0,g.Z)(Kr,"".concat(Ae),!(lt||vt)&&Ae),Kr));Zr=h.createElement("div",{className:ba,style:qt.style,onMouseUp:function(){return be.current.focus()}},Ct&&h.createElement("span",{className:"".concat(En,"-prefix")},Ct),(0,Ht.Tm)(Zr,{style:null,value:qt.value,onFocus:function(At){var ar;We(!0),(ar=qt.onFocus)===null||ar===void 0||ar.call(qt,At)},onBlur:function(At){var ar;We(!1),(ar=qt.onBlur)===null||ar===void 0||ar.call(qt,At)}}),Jr&&h.createElement("span",{className:"".concat(En,"-suffix")},$t))}if(lt!=null||vt!=null){var Ri,Ea="".concat(En,"-group"),Pi="".concat(Ea,"-addon"),rs=lt?h.createElement("div",{className:Pi},lt):null,Ui=vt?h.createElement("div",{className:Pi},vt):null,Cn=b()("".concat(En,"-wrapper"),Ea,(0,g.Z)({},"".concat(Ea,"-rtl"),nt==="rtl")),Kn=b()("".concat(En,"-group-wrapper"),(Ri={},(0,g.Z)(Ri,"".concat(En,"-group-wrapper-sm"),lr==="small"),(0,g.Z)(Ri,"".concat(En,"-group-wrapper-lg"),lr==="large"),(0,g.Z)(Ri,"".concat(En,"-group-wrapper-rtl"),nt==="rtl"),Ri),(0,Jt.Z)("".concat(En,"-group-wrapper"),wn,Jr),Ae);Zr=h.createElement("div",{className:Kn,style:qt.style},h.createElement("div",{className:Cn},rs&&h.createElement(Et.BR,null,h.createElement(ot.Ux,{status:!0,override:!0},rs)),(0,Ht.Tm)(Zr,{style:null,disabled:vr}),Ui&&h.createElement(Et.BR,null,h.createElement(ot.Ux,{status:!0,override:!0},Ui))))}return Zr}),Un=an},11826:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(54638),y=o.n(A)},53382:function(oe,N,o){"use strict";o.d(N,{ZP:function(){return qe},D7:function(){return ke},rJ:function(){return De},nH:function(){return Fe}});var x=o(96156),g=o(22122),A=o(90484),y=o(43061),M=o(35510),w=o.n(M),m=o(67294);function b(et){return!!(et.addonBefore||et.addonAfter)}function v(et){return!!(et.prefix||et.suffix||et.allowClear)}function h(et,dt,Ke,Ge){if(!!Ke){var wt=dt;if(dt.type==="click"){var Vt=et.cloneNode(!0);wt=Object.create(dt,{target:{value:Vt},currentTarget:{value:Vt}}),Vt.value="",Ke(wt);return}if(Ge!==void 0){wt=Object.create(dt,{target:{value:et},currentTarget:{value:et}}),et.value=Ge,Ke(wt);return}Ke(wt)}}function d(et,dt){if(!!et){et.focus(dt);var Ke=dt||{},Ge=Ke.cursor;if(Ge){var wt=et.value.length;switch(Ge){case"start":et.setSelectionRange(0,0);break;case"end":et.setSelectionRange(wt,wt);break;default:et.setSelectionRange(0,wt)}}}}function _(et){return typeof et=="undefined"||et===null?"":String(et)}var p=function(dt){var Ke=dt.inputElement,Ge=dt.prefixCls,wt=dt.prefix,Vt=dt.suffix,gt=dt.addonBefore,it=dt.addonAfter,Le=dt.className,ct=dt.style,at=dt.affixWrapperClassName,jt=dt.groupClassName,St=dt.wrapperClassName,fn=dt.disabled,Xt=dt.readOnly,Yt=dt.focused,Rt=dt.triggerFocus,Lt=dt.allowClear,ze=dt.value,rt=dt.handleReset,tt=dt.hidden,de=(0,m.useRef)(null),ot=function(nt){var lr;(lr=de.current)!==null&&lr!==void 0&&lr.contains(nt.target)&&(Rt==null||Rt())},Et=function(){var nt;if(!Lt)return null;var lr=!fn&&!Xt&&ze,Hn="".concat(Ge,"-clear-icon"),ut=(0,A.Z)(Lt)==="object"&&Lt!==null&&Lt!==void 0&&Lt.clearIcon?Lt.clearIcon:"\u2716";return m.createElement("span",{onClick:rt,onMouseDown:function(We){return We.preventDefault()},className:w()(Hn,(nt={},(0,x.Z)(nt,"".concat(Hn,"-hidden"),!lr),(0,x.Z)(nt,"".concat(Hn,"-has-suffix"),!!Vt),nt)),role:"button",tabIndex:-1},ut)},Ht=(0,m.cloneElement)(Ke,{value:ze,hidden:tt});if(v(dt)){var Jt,Qt="".concat(Ge,"-affix-wrapper"),an=w()(Qt,(Jt={},(0,x.Z)(Jt,"".concat(Qt,"-disabled"),fn),(0,x.Z)(Jt,"".concat(Qt,"-focused"),Yt),(0,x.Z)(Jt,"".concat(Qt,"-readonly"),Xt),(0,x.Z)(Jt,"".concat(Qt,"-input-with-clear-btn"),Vt&&Lt&&ze),Jt),!b(dt)&&Le,at),Un=(Vt||Lt)&&m.createElement("span",{className:"".concat(Ge,"-suffix")},Et(),Vt);Ht=m.createElement("span",{className:an,style:ct,hidden:!b(dt)&&tt,onClick:ot,ref:de},wt&&m.createElement("span",{className:"".concat(Ge,"-prefix")},wt),(0,m.cloneElement)(Ke,{style:null,value:ze,hidden:null}),Un)}if(b(dt)){var qt="".concat(Ge,"-group"),rn="".concat(qt,"-addon"),cn=w()("".concat(Ge,"-wrapper"),qt,St),er=w()("".concat(Ge,"-group-wrapper"),Le,jt);return m.createElement("span",{className:er,style:ct,hidden:tt},m.createElement("span",{className:cn},gt&&m.createElement("span",{className:rn},gt),(0,m.cloneElement)(Ht,{style:null,hidden:null}),it&&m.createElement("span",{className:rn},it)))}return Ht},S=p,k=o(85061),O=o(28481),F=o(81253),D=o(28991);function Z(et,dt){var Ke=(0,D.Z)({},et);return Array.isArray(dt)&&dt.forEach(function(Ge){delete Ke[Ge]}),Ke}function W(et){var dt=m.useRef();dt.current=et;var Ke=m.useCallback(function(){for(var Ge,wt=arguments.length,Vt=new Array(wt),gt=0;gt<wt;gt++)Vt[gt]=arguments[gt];return(Ge=dt.current)===null||Ge===void 0?void 0:Ge.call.apply(Ge,[dt].concat(Vt))},[]);return Ke}function U(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var L=U()?m.useLayoutEffect:m.useEffect,V=function(dt,Ke){var Ge=m.useRef(!0);L(function(){return dt(Ge.current)},Ke),L(function(){return Ge.current=!1,function(){Ge.current=!0}},[])},$=function(dt,Ke){V(function(Ge){if(!Ge)return dt()},Ke)},G=null;function z(et){var dt=m.useRef(!1),Ke=m.useState(et),Ge=(0,O.Z)(Ke,2),wt=Ge[0],Vt=Ge[1];m.useEffect(function(){return dt.current=!1,function(){dt.current=!0}},[]);function gt(it,Le){Le&&dt.current||Vt(it)}return[wt,gt]}function K(et){return et!==void 0}function re(et,dt){var Ke=dt||{},Ge=Ke.defaultValue,wt=Ke.value,Vt=Ke.onChange,gt=Ke.postState,it=z(function(){return K(wt)?wt:K(Ge)?typeof Ge=="function"?Ge():Ge:typeof et=="function"?et():et}),Le=(0,O.Z)(it,2),ct=Le[0],at=Le[1],jt=wt!==void 0?wt:ct,St=gt?gt(jt):jt,fn=W(Vt),Xt=z([jt]),Yt=(0,O.Z)(Xt,2),Rt=Yt[0],Lt=Yt[1];$(function(){var rt=Rt[0];ct!==rt&&fn(ct,rt)},[Rt]),$(function(){K(wt)||at(wt)},[wt]);var ze=W(function(rt,tt){at(rt,tt),Lt([jt],tt)});return[St,ze]}var ne=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","inputClassName"],Q=(0,m.forwardRef)(function(et,dt){var Ke=et.autoComplete,Ge=et.onChange,wt=et.onFocus,Vt=et.onBlur,gt=et.onPressEnter,it=et.onKeyDown,Le=et.prefixCls,ct=Le===void 0?"rc-input":Le,at=et.disabled,jt=et.htmlSize,St=et.className,fn=et.maxLength,Xt=et.suffix,Yt=et.showCount,Rt=et.type,Lt=Rt===void 0?"text":Rt,ze=et.inputClassName,rt=(0,F.Z)(et,ne),tt=re(et.defaultValue,{value:et.value}),de=(0,O.Z)(tt,2),ot=de[0],Et=de[1],Ht=(0,m.useState)(!1),Jt=(0,O.Z)(Ht,2),Qt=Jt[0],an=Jt[1],Un=(0,m.useRef)(null),qt=function(bt){Un.current&&d(Un.current,bt)};(0,m.useImperativeHandle)(dt,function(){return{focus:qt,blur:function(){var bt;(bt=Un.current)===null||bt===void 0||bt.blur()},setSelectionRange:function(bt,We,be){var Ae;(Ae=Un.current)===null||Ae===void 0||Ae.setSelectionRange(bt,We,be)},select:function(){var bt;(bt=Un.current)===null||bt===void 0||bt.select()},input:Un.current}}),(0,m.useEffect)(function(){an(function(ut){return ut&&at?!1:ut})},[at]);var rn=function(bt){et.value===void 0&&Et(bt.target.value),Un.current&&h(Un.current,bt,Ge)},cn=function(bt){gt&&bt.key==="Enter"&>(bt),it==null||it(bt)},er=function(bt){an(!0),wt==null||wt(bt)},rr=function(bt){an(!1),Vt==null||Vt(bt)},nt=function(bt){Et(""),qt(),Un.current&&h(Un.current,bt,Ge)},lr=function(){var bt=Z(et,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName","htmlSize"]);return m.createElement("input",(0,g.Z)({autoComplete:Ke},bt,{onChange:rn,onFocus:er,onBlur:rr,onKeyDown:cn,className:w()(ct,(0,x.Z)({},"".concat(ct,"-disabled"),at),ze,!b(et)&&!v(et)&&St),ref:Un,size:jt,type:Lt}))},Hn=function(){var bt=Number(fn)>0;if(Xt||Yt){var We=_(ot),be=(0,k.Z)(We).length,Ae=(0,A.Z)(Yt)==="object"?Yt.formatter({value:We,count:be,maxLength:fn}):"".concat(be).concat(bt?" / ".concat(fn):"");return m.createElement(m.Fragment,null,!!Yt&&m.createElement("span",{className:w()("".concat(ct,"-show-count-suffix"),(0,x.Z)({},"".concat(ct,"-show-count-has-suffix"),!!Xt))},Ae),Xt)}return null};return m.createElement(S,(0,g.Z)({},rt,{prefixCls:ct,className:St,inputElement:lr(),handleReset:nt,value:_(ot),focused:Qt,triggerFocus:qt,suffix:Hn(),disabled:at}))}),ue=Q,he=ue,Ee=o(99182),ce=o(9054),ve=o(99469),fe=o(10772),we=o(27495),me=o(1358),Pe=o(16786),pe=o(63303);function Ie(et){return!!(et.prefix||et.suffix||et.allowClear)}var Je=function(et,dt){var Ke={};for(var Ge in et)Object.prototype.hasOwnProperty.call(et,Ge)&&dt.indexOf(Ge)<0&&(Ke[Ge]=et[Ge]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,Ge=Object.getOwnPropertySymbols(et);wt<Ge.length;wt++)dt.indexOf(Ge[wt])<0&&Object.prototype.propertyIsEnumerable.call(et,Ge[wt])&&(Ke[Ge[wt]]=et[Ge[wt]]);return Ke};function ke(et){return typeof et=="undefined"||et===null?"":String(et)}function De(et,dt,Ke,Ge){if(!!Ke){var wt=dt;if(dt.type==="click"){var Vt=et.cloneNode(!0);wt=Object.create(dt,{target:{value:Vt},currentTarget:{value:Vt}}),Vt.value="",Ke(wt);return}if(Ge!==void 0){wt=Object.create(dt,{target:{value:et},currentTarget:{value:et}}),et.value=Ge,Ke(wt);return}Ke(wt)}}function Fe(et,dt){if(!!et){et.focus(dt);var Ke=dt||{},Ge=Ke.cursor;if(Ge){var wt=et.value.length;switch(Ge){case"start":et.setSelectionRange(0,0);break;case"end":et.setSelectionRange(wt,wt);break;default:et.setSelectionRange(0,wt);break}}}}var Qe=(0,m.forwardRef)(function(et,dt){var Ke,Ge,wt,Vt=et.prefixCls,gt=et.bordered,it=gt===void 0?!0:gt,Le=et.status,ct=et.size,at=et.disabled,jt=et.onBlur,St=et.onFocus,fn=et.suffix,Xt=et.allowClear,Yt=et.addonAfter,Rt=et.addonBefore,Lt=et.className,ze=et.onChange,rt=Je(et,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","onChange"]),tt=m.useContext(ce.E_),de=tt.getPrefixCls,ot=tt.direction,Et=tt.input,Ht=de("input",Vt),Jt=(0,m.useRef)(null),Qt=(0,me.ri)(Ht,ot),an=Qt.compactSize,Un=Qt.compactItemClassnames,qt=m.useContext(fe.Z),rn=an||ct||qt,cn=m.useContext(ve.Z),er=at!=null?at:cn,rr=(0,m.useContext)(we.aM),nt=rr.status,lr=rr.hasFeedback,Hn=rr.feedbackIcon,ut=(0,Pe.F)(nt,Le),bt=Ie(et)||!!lr,We=(0,m.useRef)(bt);(0,m.useEffect)(function(){var vt;bt&&!We.current,We.current=bt},[bt]);var be=(0,pe.Z)(Jt,!0),Ae=function(Ct){be(),jt==null||jt(Ct)},Ue=function(Ct){be(),St==null||St(Ct)},$e=function(Ct){be(),ze==null||ze(Ct)},kt=(lr||fn)&&m.createElement(m.Fragment,null,fn,lr&&Hn),lt;return(0,A.Z)(Xt)==="object"&&(Xt==null?void 0:Xt.clearIcon)?lt=Xt:Xt&&(lt={clearIcon:m.createElement(y.Z,null)}),m.createElement(he,(0,g.Z)({ref:(0,Ee.sQ)(dt,Jt),prefixCls:Ht,autoComplete:Et==null?void 0:Et.autoComplete},rt,{disabled:er||void 0,onBlur:Ae,onFocus:Ue,suffix:kt,allowClear:lt,className:w()(Lt,Un),onChange:$e,addonAfter:Yt&&m.createElement(me.BR,null,m.createElement(we.Ux,{override:!0,status:!0},Yt)),addonBefore:Rt&&m.createElement(me.BR,null,m.createElement(we.Ux,{override:!0,status:!0},Rt)),inputClassName:w()((Ke={},(0,x.Z)(Ke,"".concat(Ht,"-sm"),rn==="small"),(0,x.Z)(Ke,"".concat(Ht,"-lg"),rn==="large"),(0,x.Z)(Ke,"".concat(Ht,"-rtl"),ot==="rtl"),(0,x.Z)(Ke,"".concat(Ht,"-borderless"),!it),Ke),!bt&&(0,Pe.Z)(Ht,ut)),affixWrapperClassName:w()((Ge={},(0,x.Z)(Ge,"".concat(Ht,"-affix-wrapper-sm"),rn==="small"),(0,x.Z)(Ge,"".concat(Ht,"-affix-wrapper-lg"),rn==="large"),(0,x.Z)(Ge,"".concat(Ht,"-affix-wrapper-rtl"),ot==="rtl"),(0,x.Z)(Ge,"".concat(Ht,"-affix-wrapper-borderless"),!it),Ge),(0,Pe.Z)("".concat(Ht,"-affix-wrapper"),ut,lr)),wrapperClassName:w()((0,x.Z)({},"".concat(Ht,"-group-rtl"),ot==="rtl")),groupClassName:w()((wt={},(0,x.Z)(wt,"".concat(Ht,"-group-wrapper-sm"),rn==="small"),(0,x.Z)(wt,"".concat(Ht,"-group-wrapper-lg"),rn==="large"),(0,x.Z)(wt,"".concat(Ht,"-group-wrapper-rtl"),ot==="rtl"),wt),(0,Pe.Z)("".concat(Ht,"-group-wrapper"),ut,lr))}))}),qe=Qe},8215:function(oe,N,o){"use strict";o.d(N,{Z:function(){return Lt}});var x=o(90484),g=o(96156),A=o(22122),y=o(28481),M=o(85061),w=o(35510),m=o.n(w),b=o(6610),v=o(5991),h=o(10379),d=o(44144),_=o(67294),p=o(28991),S=o(81253),k=o(50279);function O(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var F=O()?_.useLayoutEffect:_.useEffect,D=function(rt,tt){var de=_.useRef(!0);F(function(){return rt(de.current)},tt),F(function(){return de.current=!1,function(){de.current=!0}},[])},Z=function(rt,tt){D(function(de){if(!de)return rt()},tt)},W=D,U=function(rt){return+setTimeout(rt,16)},L=function(rt){return clearTimeout(rt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(U=function(rt){return window.requestAnimationFrame(rt)},L=function(rt){return window.cancelAnimationFrame(rt)});var V=0,$=new Map;function G(ze){$.delete(ze)}var z=function(rt){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;V+=1;var de=V;function ot(Et){if(Et===0)G(de),rt();else{var Ht=U(function(){ot(Et-1)});$.set(de,Ht)}}return ot(tt),de};z.cancel=function(ze){var rt=$.get(ze);return G(rt),L(rt)};var K=z;function re(ze){var rt=_.useRef();rt.current=ze;var tt=_.useCallback(function(){for(var de,ot=arguments.length,Et=new Array(ot),Ht=0;Ht<ot;Ht++)Et[Ht]=arguments[Ht];return(de=rt.current)===null||de===void 0?void 0:de.call.apply(de,[rt].concat(Et))},[]);return tt}function ne(ze){var rt=_.useRef(!1),tt=_.useState(ze),de=(0,y.Z)(tt,2),ot=de[0],Et=de[1];_.useEffect(function(){return rt.current=!1,function(){rt.current=!0}},[]);function Ht(Jt,Qt){Qt&&rt.current||Et(Jt)}return[ot,Ht]}function Q(ze){return ze!==void 0}function ue(ze,rt){var tt=rt||{},de=tt.defaultValue,ot=tt.value,Et=tt.onChange,Ht=tt.postState,Jt=ne(function(){return Q(ot)?ot:Q(de)?typeof de=="function"?de():de:typeof ze=="function"?ze():ze}),Qt=(0,y.Z)(Jt,2),an=Qt[0],Un=Qt[1],qt=ot!==void 0?ot:an,rn=Ht?Ht(qt):qt,cn=re(Et),er=ne([qt]),rr=(0,y.Z)(er,2),nt=rr[0],lr=rr[1];Z(function(){var ut=nt[0];an!==ut&&cn(an,ut)},[nt]),Z(function(){Q(ot)||Un(ot)},[ot]);var Hn=re(function(ut,bt){Un(ut,bt),lr([qt],bt)});return[rn,Hn]}var he=`
|
||
min-height:0 !important;
|
||
max-height:none !important;
|
||
height:0 !important;
|
||
visibility:hidden !important;
|
||
overflow:hidden !important;
|
||
position:absolute !important;
|
||
z-index:-1000 !important;
|
||
top:0 !important;
|
||
right:0 !important;
|
||
pointer-events: none !important;
|
||
`,Ee=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],ce={},ve;function fe(ze){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tt=ze.getAttribute("id")||ze.getAttribute("data-reactid")||ze.getAttribute("name");if(rt&&ce[tt])return ce[tt];var de=window.getComputedStyle(ze),ot=de.getPropertyValue("box-sizing")||de.getPropertyValue("-moz-box-sizing")||de.getPropertyValue("-webkit-box-sizing"),Et=parseFloat(de.getPropertyValue("padding-bottom"))+parseFloat(de.getPropertyValue("padding-top")),Ht=parseFloat(de.getPropertyValue("border-bottom-width"))+parseFloat(de.getPropertyValue("border-top-width")),Jt=Ee.map(function(an){return"".concat(an,":").concat(de.getPropertyValue(an))}).join(";"),Qt={sizingStyle:Jt,paddingSize:Et,borderSize:Ht,boxSizing:ot};return rt&&tt&&(ce[tt]=Qt),Qt}function we(ze){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,de=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ve||(ve=document.createElement("textarea"),ve.setAttribute("tab-index","-1"),ve.setAttribute("aria-hidden","true"),document.body.appendChild(ve)),ze.getAttribute("wrap")?ve.setAttribute("wrap",ze.getAttribute("wrap")):ve.removeAttribute("wrap");var ot=fe(ze,rt),Et=ot.paddingSize,Ht=ot.borderSize,Jt=ot.boxSizing,Qt=ot.sizingStyle;ve.setAttribute("style","".concat(Qt,";").concat(he)),ve.value=ze.value||ze.placeholder||"";var an=void 0,Un=void 0,qt,rn=ve.scrollHeight;if(Jt==="border-box"?rn+=Ht:Jt==="content-box"&&(rn-=Et),tt!==null||de!==null){ve.value=" ";var cn=ve.scrollHeight-Et;tt!==null&&(an=cn*tt,Jt==="border-box"&&(an=an+Et+Ht),rn=Math.max(an,rn)),de!==null&&(Un=cn*de,Jt==="border-box"&&(Un=Un+Et+Ht),qt=rn>Un?"":"hidden",rn=Math.min(Un,rn))}var er={height:rn,overflowY:qt,resize:"none"};return an&&(er.minHeight=an),Un&&(er.maxHeight=Un),er}var me=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Pe=0,pe=1,Ie=2,Je=_.forwardRef(function(ze,rt){var tt=ze.prefixCls,de=tt===void 0?"rc-textarea":tt,ot=ze.onPressEnter,Et=ze.defaultValue,Ht=ze.value,Jt=ze.autoSize,Qt=ze.onResize,an=ze.className,Un=ze.style,qt=ze.disabled,rn=ze.onChange,cn=ze.onInternalAutoSize,er=(0,S.Z)(ze,me),rr=ue(Et,{value:Ht,postState:function($n){return $n!=null?$n:""}}),nt=(0,y.Z)(rr,2),lr=nt[0],Hn=nt[1],ut=function($n){Hn($n.target.value),rn==null||rn($n)},bt=_.useRef();_.useImperativeHandle(rt,function(){return{textArea:bt.current}});var We=_.useMemo(function(){return Jt&&(0,x.Z)(Jt)==="object"?[Jt.minRows,Jt.maxRows]:[]},[Jt]),be=(0,y.Z)(We,2),Ae=be[0],Ue=be[1],$e=!!Jt,kt=function(){try{if(document.activeElement===bt.current){var $n=bt.current,qr=$n.selectionStart,Jr=$n.selectionEnd,Aa=$n.scrollTop;bt.current.setSelectionRange(qr,Jr),bt.current.scrollTop=Aa}}catch(ya){}},lt=_.useState(Ie),vt=(0,y.Z)(lt,2),Ct=vt[0],Bt=vt[1],mt=_.useState(),Zt=(0,y.Z)(mt,2),zt=Zt[0],ln=Zt[1],An=function(){Bt(Pe)};W(function(){$e&&An()},[Ht,Ae,Ue,$e]),W(function(){if(Ct===Pe)Bt(pe);else if(Ct===pe){var na=we(bt.current,!1,Ae,Ue);Bt(Ie),ln(na)}else kt()},[Ct]);var En=_.useRef(),Gn=function(){K.cancel(En.current)},Bn=function($n){Ct===Ie&&(Qt==null||Qt($n),Jt&&(Gn(),En.current=K(function(){An()})))};_.useEffect(function(){return Gn},[]);var pr=$e?zt:null,_r=(0,p.Z)((0,p.Z)({},Un),pr);return(Ct===Pe||Ct===pe)&&(_r.overflowY="hidden",_r.overflowX="hidden"),_.createElement(k.default,{onResize:Bn,disabled:!(Jt||Qt)},_.createElement("textarea",(0,A.Z)({},er,{ref:bt,style:_r,className:m()(de,an,(0,g.Z)({},"".concat(de,"-disabled"),qt)),disabled:qt,value:lr,onChange:ut})))}),ke=Je,De=function(ze){(0,h.Z)(tt,ze);var rt=(0,d.Z)(tt);function tt(de){var ot;(0,b.Z)(this,tt),ot=rt.call(this,de),ot.resizableTextArea=void 0,ot.focus=function(){ot.resizableTextArea.textArea.focus()},ot.saveTextArea=function(Ht){ot.resizableTextArea=Ht},ot.handleChange=function(Ht){var Jt=ot.props.onChange;ot.setValue(Ht.target.value),Jt&&Jt(Ht)},ot.handleKeyDown=function(Ht){var Jt=ot.props,Qt=Jt.onPressEnter,an=Jt.onKeyDown;Ht.keyCode===13&&Qt&&Qt(Ht),an&&an(Ht)};var Et=typeof de.value=="undefined"||de.value===null?de.defaultValue:de.value;return ot.state={value:Et},ot}return(0,v.Z)(tt,[{key:"setValue",value:function(ot,Et){"value"in this.props||this.setState({value:ot},Et)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return _.createElement(ke,(0,A.Z)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ot){return"value"in ot?{value:ot.value}:null}}]),tt}(_.Component),Fe=De,Qe=o(92866),qe=o(69252),et=o(9054),dt=o(99469),Ke=o(10772),Ge=o(27495),wt=o(16786),Vt=o(43061),gt=o(75447),it=o(4381),Le=(0,it.b)("text","input");function ct(ze){return!!(ze.addonBefore||ze.addonAfter)}var at=function(ze){(0,h.Z)(tt,ze);var rt=(0,d.Z)(tt);function tt(){return(0,b.Z)(this,tt),rt.apply(this,arguments)}return(0,v.Z)(tt,[{key:"renderClearIcon",value:function(ot){var Et,Ht=this.props,Jt=Ht.value,Qt=Ht.disabled,an=Ht.readOnly,Un=Ht.handleReset,qt=Ht.suffix,rn=!Qt&&!an&&Jt,cn="".concat(ot,"-clear-icon");return _.createElement(Vt.Z,{onClick:Un,onMouseDown:function(rr){return rr.preventDefault()},className:m()((Et={},(0,g.Z)(Et,"".concat(cn,"-hidden"),!rn),(0,g.Z)(Et,"".concat(cn,"-has-suffix"),!!qt),Et),cn),role:"button"})}},{key:"renderTextAreaWithClearIcon",value:function(ot,Et,Ht){var Jt,Qt=this.props,an=Qt.value,Un=Qt.allowClear,qt=Qt.className,rn=Qt.focused,cn=Qt.style,er=Qt.direction,rr=Qt.bordered,nt=Qt.hidden,lr=Qt.status,Hn=Ht.status,ut=Ht.hasFeedback;if(!Un)return(0,gt.Tm)(Et,{value:an});var bt=m()("".concat(ot,"-affix-wrapper"),"".concat(ot,"-affix-wrapper-textarea-with-clear-btn"),(0,wt.Z)("".concat(ot,"-affix-wrapper"),(0,wt.F)(Hn,lr),ut),(Jt={},(0,g.Z)(Jt,"".concat(ot,"-affix-wrapper-focused"),rn),(0,g.Z)(Jt,"".concat(ot,"-affix-wrapper-rtl"),er==="rtl"),(0,g.Z)(Jt,"".concat(ot,"-affix-wrapper-borderless"),!rr),(0,g.Z)(Jt,"".concat(qt),!ct(this.props)&&qt),Jt));return _.createElement("span",{className:bt,style:cn,hidden:nt},(0,gt.Tm)(Et,{style:null,value:an}),this.renderClearIcon(ot))}},{key:"render",value:function(){var ot=this;return _.createElement(Ge.aM.Consumer,null,function(Et){var Ht=ot.props,Jt=Ht.prefixCls,Qt=Ht.inputType,an=Ht.element;if(Qt===Le[0])return ot.renderTextAreaWithClearIcon(Jt,an,Et)})}}]),tt}(_.Component),jt=at,St=o(53382),fn=function(ze,rt){var tt={};for(var de in ze)Object.prototype.hasOwnProperty.call(ze,de)&&rt.indexOf(de)<0&&(tt[de]=ze[de]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,de=Object.getOwnPropertySymbols(ze);ot<de.length;ot++)rt.indexOf(de[ot])<0&&Object.prototype.propertyIsEnumerable.call(ze,de[ot])&&(tt[de[ot]]=ze[de[ot]]);return tt};function Xt(ze,rt){return(0,M.Z)(ze||"").slice(0,rt).join("")}function Yt(ze,rt,tt,de){var ot=tt;return ze?ot=Xt(tt,de):(0,M.Z)(rt||"").length<tt.length&&(0,M.Z)(tt||"").length>de&&(ot=rt),ot}var Rt=_.forwardRef(function(ze,rt){var tt,de=ze.prefixCls,ot=ze.bordered,Et=ot===void 0?!0:ot,Ht=ze.showCount,Jt=Ht===void 0?!1:Ht,Qt=ze.maxLength,an=ze.className,Un=ze.style,qt=ze.size,rn=ze.disabled,cn=ze.onCompositionStart,er=ze.onCompositionEnd,rr=ze.onChange,nt=ze.onFocus,lr=ze.onBlur,Hn=ze.status,ut=fn(ze,["prefixCls","bordered","showCount","maxLength","className","style","size","disabled","onCompositionStart","onCompositionEnd","onChange","onFocus","onBlur","status"]),bt=_.useContext(et.E_),We=bt.getPrefixCls,be=bt.direction,Ae=_.useContext(Ke.Z),Ue=_.useContext(dt.Z),$e=rn!=null?rn:Ue,kt=_.useContext(Ge.aM),lt=kt.status,vt=kt.hasFeedback,Ct=kt.isFormItemInput,Bt=kt.feedbackIcon,mt=(0,wt.F)(lt,Hn),Zt=_.useRef(null),zt=_.useRef(null),ln=_.useState(!1),An=(0,y.Z)(ln,2),En=An[0],Gn=An[1],Bn=_.useState(!1),pr=(0,y.Z)(Bn,2),_r=pr[0],na=pr[1],$n=_.useRef(),qr=_.useRef(0),Jr=(0,Qe.Z)(ut.defaultValue,{value:ut.value}),Aa=(0,y.Z)(Jr,2),ya=Aa[0],$t=Aa[1],wn=ut.hidden,Fn=function(ar,ta){ut.value===void 0&&($t(ar),ta==null||ta())},Or=Number(Qt)>0,vr=function(ar){Gn(!0),$n.current=ya,qr.current=ar.currentTarget.selectionStart,cn==null||cn(ar)},Ur=function(ar){var ta;Gn(!1);var Yn=ar.currentTarget.value;if(Or){var Qa=qr.current>=Qt+1||qr.current===((ta=$n.current)===null||ta===void 0?void 0:ta.length);Yn=Yt(Qa,$n.current,Yn,Qt)}Yn!==ya&&(Fn(Yn),(0,St.rJ)(ar.currentTarget,ar,rr,Yn)),er==null||er(ar)},Zr=function(ar){var ta=ar.target.value;if(!En&&Or){var Yn=ar.target.selectionStart>=Qt+1||ar.target.selectionStart===ta.length||!ar.target.selectionStart;ta=Yt(Yn,ya,ta,Qt)}Fn(ta),(0,St.rJ)(ar.currentTarget,ar,rr,ta)},Kr=function(ar){na(!1),lr==null||lr(ar)},ba=function(ar){na(!0),nt==null||nt(ar)};_.useEffect(function(){na(function(At){return!$e&&At})},[$e]);var Ri=function(ar){var ta,Yn,Qa;Fn(""),(ta=Zt.current)===null||ta===void 0||ta.focus(),(0,St.rJ)((Qa=(Yn=Zt.current)===null||Yn===void 0?void 0:Yn.resizableTextArea)===null||Qa===void 0?void 0:Qa.textArea,ar,rr)},Ea=We("input",de);_.useImperativeHandle(rt,function(){var At;return{resizableTextArea:(At=Zt.current)===null||At===void 0?void 0:At.resizableTextArea,focus:function(ta){var Yn,Qa;(0,St.nH)((Qa=(Yn=Zt.current)===null||Yn===void 0?void 0:Yn.resizableTextArea)===null||Qa===void 0?void 0:Qa.textArea,ta)},blur:function(){var ta;return(ta=Zt.current)===null||ta===void 0?void 0:ta.blur()}}});var Pi=_.createElement(Fe,(0,A.Z)({},(0,qe.Z)(ut,["allowClear"]),{disabled:$e,className:m()((tt={},(0,g.Z)(tt,"".concat(Ea,"-borderless"),!Et),(0,g.Z)(tt,an,an&&!Jt),(0,g.Z)(tt,"".concat(Ea,"-sm"),Ae==="small"||qt==="small"),(0,g.Z)(tt,"".concat(Ea,"-lg"),Ae==="large"||qt==="large"),tt),(0,wt.Z)(Ea,mt)),style:Jt?{resize:Un==null?void 0:Un.resize}:Un,prefixCls:Ea,onCompositionStart:vr,onChange:Zr,onBlur:Kr,onFocus:ba,onCompositionEnd:Ur,ref:Zt})),rs=(0,St.D7)(ya);!En&&Or&&(ut.value===null||ut.value===void 0)&&(rs=Xt(rs,Qt));var Ui=_.createElement(jt,(0,A.Z)({disabled:$e,focused:_r},ut,{prefixCls:Ea,direction:be,inputType:"text",value:rs,element:Pi,handleReset:Ri,ref:zt,bordered:Et,status:Hn,style:Jt?void 0:Un}));if(Jt||vt){var Cn,Kn=(0,M.Z)(rs).length,Pn="";return(0,x.Z)(Jt)==="object"?Pn=Jt.formatter({value:rs,count:Kn,maxLength:Qt}):Pn="".concat(Kn).concat(Or?" / ".concat(Qt):""),_.createElement("div",{hidden:wn,className:m()("".concat(Ea,"-textarea"),(Cn={},(0,g.Z)(Cn,"".concat(Ea,"-textarea-rtl"),be==="rtl"),(0,g.Z)(Cn,"".concat(Ea,"-textarea-show-count"),Jt),(0,g.Z)(Cn,"".concat(Ea,"-textarea-in-form-item"),Ct),Cn),(0,wt.Z)("".concat(Ea,"-textarea"),mt,vt),an),style:Un,"data-count":Pn},Ui,vt&&_.createElement("span",{className:"".concat(Ea,"-textarea-suffix")},Bt))}return Ui}),Lt=Rt},63303:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});var x=o(67294);function g(A,y){var M=(0,x.useRef)([]),w=function(){M.current.push(setTimeout(function(){var b,v,h,d;((b=A.current)===null||b===void 0?void 0:b.input)&&((v=A.current)===null||v===void 0?void 0:v.input.getAttribute("type"))==="password"&&((h=A.current)===null||h===void 0?void 0:h.input.hasAttribute("value"))&&((d=A.current)===null||d===void 0||d.input.removeAttribute("value"))}))};return(0,x.useEffect)(function(){return y&&w(),function(){return M.current.forEach(function(m){m&&clearTimeout(m)})}},[]),w}},50532:function(oe,N,o){"use strict";o.d(N,{Z:function(){return Ee}});var x=o(22122),g=o(96156),A=o(35510),y=o.n(A),M=o(67294),w=o(9054),m=o(27495),b=function(ve){var fe,we=(0,M.useContext)(w.E_),me=we.getPrefixCls,Pe=we.direction,pe=ve.prefixCls,Ie=ve.className,Je=Ie===void 0?"":Ie,ke=me("input-group",pe),De=y()(ke,(fe={},(0,g.Z)(fe,"".concat(ke,"-lg"),ve.size==="large"),(0,g.Z)(fe,"".concat(ke,"-sm"),ve.size==="small"),(0,g.Z)(fe,"".concat(ke,"-compact"),ve.compact),(0,g.Z)(fe,"".concat(ke,"-rtl"),Pe==="rtl"),fe),Je),Fe=(0,M.useContext)(m.aM),Qe=(0,M.useMemo)(function(){return(0,x.Z)((0,x.Z)({},Fe),{isFormItemInput:!1})},[Fe]);return M.createElement("span",{className:De,style:ve.style,onMouseEnter:ve.onMouseEnter,onMouseLeave:ve.onMouseLeave,onFocus:ve.onFocus,onBlur:ve.onBlur},M.createElement(m.aM.Provider,{value:Qe},ve.children))},v=b,h=o(53382),d=o(28481),_=o(90484),p=o(88633),S=o(95357),k=o(69252),O=o(99182),F=o(63303),D=function(ce,ve){var fe={};for(var we in ce)Object.prototype.hasOwnProperty.call(ce,we)&&ve.indexOf(we)<0&&(fe[we]=ce[we]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,we=Object.getOwnPropertySymbols(ce);me<we.length;me++)ve.indexOf(we[me])<0&&Object.prototype.propertyIsEnumerable.call(ce,we[me])&&(fe[we[me]]=ce[we[me]]);return fe},Z=function(ve){return ve?M.createElement(S.Z,null):M.createElement(p.Z,null)},W={click:"onClick",hover:"onMouseOver"},U=M.forwardRef(function(ce,ve){var fe=ce.visibilityToggle,we=fe===void 0?!0:fe,me=(0,_.Z)(we)==="object"&&we.visible!==void 0,Pe=(0,M.useState)(function(){return me?we.visible:!1}),pe=(0,d.Z)(Pe,2),Ie=pe[0],Je=pe[1],ke=(0,M.useRef)(null);M.useEffect(function(){me&&Je(we.visible)},[me,we]);var De=(0,F.Z)(ke),Fe=function(){var dt=ce.disabled;dt||(Ie&&De(),Je(function(Ke){var Ge,wt=!Ke;return(0,_.Z)(we)==="object"&&((Ge=we.onVisibleChange)===null||Ge===void 0||Ge.call(we,wt)),wt}))},Qe=function(dt){var Ke,Ge=ce.action,wt=Ge===void 0?"click":Ge,Vt=ce.iconRender,gt=Vt===void 0?Z:Vt,it=W[wt]||"",Le=gt(Ie),ct=(Ke={},(0,g.Z)(Ke,it,Fe),(0,g.Z)(Ke,"className","".concat(dt,"-icon")),(0,g.Z)(Ke,"key","passwordIcon"),(0,g.Z)(Ke,"onMouseDown",function(jt){jt.preventDefault()}),(0,g.Z)(Ke,"onMouseUp",function(jt){jt.preventDefault()}),Ke);return M.cloneElement(M.isValidElement(Le)?Le:M.createElement("span",null,Le),ct)},qe=function(dt){var Ke=dt.getPrefixCls,Ge=ce.className,wt=ce.prefixCls,Vt=ce.inputPrefixCls,gt=ce.size,it=D(ce,["className","prefixCls","inputPrefixCls","size"]),Le=Ke("input",Vt),ct=Ke("input-password",wt),at=we&&Qe(ct),jt=y()(ct,Ge,(0,g.Z)({},"".concat(ct,"-").concat(gt),!!gt)),St=(0,x.Z)((0,x.Z)({},(0,k.Z)(it,["suffix","iconRender","visibilityToggle"])),{type:Ie?"text":"password",className:jt,prefixCls:Le,suffix:at});return gt&&(St.size=gt),M.createElement(h.ZP,(0,x.Z)({ref:(0,O.sQ)(ve,ke)},St))};return M.createElement(w.C,null,qe)}),L=U,V=o(76570),$=o(48429),G=o(10772),z=o(1358),K=o(75447),re=function(ce,ve){var fe={};for(var we in ce)Object.prototype.hasOwnProperty.call(ce,we)&&ve.indexOf(we)<0&&(fe[we]=ce[we]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,we=Object.getOwnPropertySymbols(ce);me<we.length;me++)ve.indexOf(we[me])<0&&Object.prototype.propertyIsEnumerable.call(ce,we[me])&&(fe[we[me]]=ce[we[me]]);return fe},ne=M.forwardRef(function(ce,ve){var fe,we=ce.prefixCls,me=ce.inputPrefixCls,Pe=ce.className,pe=ce.size,Ie=ce.suffix,Je=ce.enterButton,ke=Je===void 0?!1:Je,De=ce.addonAfter,Fe=ce.loading,Qe=ce.disabled,qe=ce.onSearch,et=ce.onChange,dt=ce.onCompositionStart,Ke=ce.onCompositionEnd,Ge=re(ce,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),wt=M.useContext(w.E_),Vt=wt.getPrefixCls,gt=wt.direction,it=M.useContext(G.Z),Le=M.useRef(!1),ct=Vt("input-search",we),at=Vt("input",me),jt=(0,z.ri)(ct,gt),St=jt.compactSize,fn=St||pe||it,Xt=M.useRef(null),Yt=function(Un){Un&&Un.target&&Un.type==="click"&&qe&&qe(Un.target.value,Un),et&&et(Un)},Rt=function(Un){var qt;document.activeElement===((qt=Xt.current)===null||qt===void 0?void 0:qt.input)&&Un.preventDefault()},Lt=function(Un){var qt,rn;qe&&qe((rn=(qt=Xt.current)===null||qt===void 0?void 0:qt.input)===null||rn===void 0?void 0:rn.value,Un)},ze=function(Un){Le.current||Fe||Lt(Un)},rt=typeof ke=="boolean"?M.createElement(V.Z,null):null,tt="".concat(ct,"-button"),de,ot=ke||{},Et=ot.type&&ot.type.__ANT_BUTTON===!0;Et||ot.type==="button"?de=(0,K.Tm)(ot,(0,x.Z)({onMouseDown:Rt,onClick:function(Un){var qt,rn;(rn=(qt=ot==null?void 0:ot.props)===null||qt===void 0?void 0:qt.onClick)===null||rn===void 0||rn.call(qt,Un),Lt(Un)},key:"enterButton"},Et?{className:tt,size:fn}:{})):de=M.createElement($.Z,{className:tt,type:ke?"primary":void 0,size:fn,disabled:Qe,key:"enterButton",onMouseDown:Rt,onClick:Lt,loading:Fe,icon:rt},ke),De&&(de=[de,(0,K.Tm)(De,{key:"addonAfter"})]);var Ht=y()(ct,(fe={},(0,g.Z)(fe,"".concat(ct,"-rtl"),gt==="rtl"),(0,g.Z)(fe,"".concat(ct,"-").concat(fn),!!fn),(0,g.Z)(fe,"".concat(ct,"-with-button"),!!ke),fe),Pe),Jt=function(Un){Le.current=!0,dt==null||dt(Un)},Qt=function(Un){Le.current=!1,Ke==null||Ke(Un)};return M.createElement(h.ZP,(0,x.Z)({ref:(0,O.sQ)(Xt,ve),onPressEnter:ze},Ge,{size:fn,onCompositionStart:Jt,onCompositionEnd:Qt,prefixCls:at,addonAfter:de,suffix:Ie,onChange:Yt,className:Ht,disabled:Qe}))}),Q=ne,ue=o(8215),he=h.ZP;he.Group=v,he.Search=Q,he.TextArea=ue.Z,he.Password=L;var Ee=he},68137:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(7104),y=o.n(A),M=o(13753)},22540:function(oe,N,o){"use strict";o.d(N,{D:function(){return L},Z:function(){return G}});var x=o(96156),g=o(22122),A=o(28481),y=o(28991),M=o(67294),w={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},m=w,b=o(27029),v=function(K,re){return M.createElement(b.Z,(0,y.Z)((0,y.Z)({},K),{},{ref:re,icon:m}))};v.displayName="BarsOutlined";var h=M.forwardRef(v),d=o(67724),_=o(43929),p=o(35510),S=o.n(p),k=o(69252),O=o(9054),F=function(K){return!isNaN(parseFloat(K))&&isFinite(K)},D=F,Z=o(51763),W=function(z,K){var re={};for(var ne in z)Object.prototype.hasOwnProperty.call(z,ne)&&K.indexOf(ne)<0&&(re[ne]=z[ne]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,ne=Object.getOwnPropertySymbols(z);Q<ne.length;Q++)K.indexOf(ne[Q])<0&&Object.prototype.propertyIsEnumerable.call(z,ne[Q])&&(re[ne[Q]]=z[ne[Q]]);return re},U={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},L=M.createContext({}),V=function(){var z=0;return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return z+=1,"".concat(K).concat(z)}}(),$=M.forwardRef(function(z,K){var re=z.prefixCls,ne=z.className,Q=z.trigger,ue=z.children,he=z.defaultCollapsed,Ee=he===void 0?!1:he,ce=z.theme,ve=ce===void 0?"dark":ce,fe=z.style,we=fe===void 0?{}:fe,me=z.collapsible,Pe=me===void 0?!1:me,pe=z.reverseArrow,Ie=pe===void 0?!1:pe,Je=z.width,ke=Je===void 0?200:Je,De=z.collapsedWidth,Fe=De===void 0?80:De,Qe=z.zeroWidthTriggerStyle,qe=z.breakpoint,et=z.onCollapse,dt=z.onBreakpoint,Ke=W(z,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),Ge=(0,M.useContext)(Z.Gs),wt=Ge.siderHook,Vt=(0,M.useState)("collapsed"in Ke?Ke.collapsed:Ee),gt=(0,A.Z)(Vt,2),it=gt[0],Le=gt[1],ct=(0,M.useState)(!1),at=(0,A.Z)(ct,2),jt=at[0],St=at[1];(0,M.useEffect)(function(){"collapsed"in Ke&&Le(Ke.collapsed)},[Ke.collapsed]);var fn=function(de,ot){"collapsed"in Ke||Le(de),et==null||et(de,ot)},Xt=(0,M.useRef)();Xt.current=function(tt){St(tt.matches),dt==null||dt(tt.matches),it!==tt.matches&&fn(tt.matches,"responsive")},(0,M.useEffect)(function(){function tt(Ht){return Xt.current(Ht)}var de;if(typeof window!="undefined"){var ot=window,Et=ot.matchMedia;if(Et&&qe&&qe in U){de=Et("(max-width: ".concat(U[qe],")"));try{de.addEventListener("change",tt)}catch(Ht){de.addListener(tt)}tt(de)}}return function(){try{de==null||de.removeEventListener("change",tt)}catch(Ht){de==null||de.removeListener(tt)}}},[qe]),(0,M.useEffect)(function(){var tt=V("ant-sider-");return wt.addSider(tt),function(){return wt.removeSider(tt)}},[]);var Yt=function(){fn(!it,"clickTrigger")},Rt=(0,M.useContext)(O.E_),Lt=Rt.getPrefixCls,ze=function(){var de,ot=Lt("layout-sider",re),Et=(0,k.Z)(Ke,["collapsed"]),Ht=it?Fe:ke,Jt=D(Ht)?"".concat(Ht,"px"):String(Ht),Qt=parseFloat(String(Fe||0))===0?M.createElement("span",{onClick:Yt,className:S()("".concat(ot,"-zero-width-trigger"),"".concat(ot,"-zero-width-trigger-").concat(Ie?"right":"left")),style:Qe},Q||M.createElement(h,null)):null,an={expanded:Ie?M.createElement(_.Z,null):M.createElement(d.Z,null),collapsed:Ie?M.createElement(d.Z,null):M.createElement(_.Z,null)},Un=it?"collapsed":"expanded",qt=an[Un],rn=Q!==null?Qt||M.createElement("div",{className:"".concat(ot,"-trigger"),onClick:Yt,style:{width:Jt}},Q||qt):null,cn=(0,g.Z)((0,g.Z)({},we),{flex:"0 0 ".concat(Jt),maxWidth:Jt,minWidth:Jt,width:Jt}),er=S()(ot,"".concat(ot,"-").concat(ve),(de={},(0,x.Z)(de,"".concat(ot,"-collapsed"),!!it),(0,x.Z)(de,"".concat(ot,"-has-trigger"),Pe&&Q!==null&&!Qt),(0,x.Z)(de,"".concat(ot,"-below"),!!jt),(0,x.Z)(de,"".concat(ot,"-zero-width"),parseFloat(Jt)===0),de),ne);return M.createElement("aside",(0,g.Z)({className:er},Et,{style:cn,ref:K}),M.createElement("div",{className:"".concat(ot,"-children")},ue),Pe||jt&&Qt?rn:null)},rt=M.useMemo(function(){return{siderCollapsed:it}},[it]);return M.createElement(L.Provider,{value:rt},ze())}),G=$},51763:function(oe,N,o){"use strict";o.d(N,{Gs:function(){return h},h4:function(){return k},$_:function(){return O},VY:function(){return F}});var x=o(85061),g=o(96156),A=o(28481),y=o(22122),M=o(35510),w=o.n(M),m=o(67294),b=o(9054),v=function(D,Z){var W={};for(var U in D)Object.prototype.hasOwnProperty.call(D,U)&&Z.indexOf(U)<0&&(W[U]=D[U]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,U=Object.getOwnPropertySymbols(D);L<U.length;L++)Z.indexOf(U[L])<0&&Object.prototype.propertyIsEnumerable.call(D,U[L])&&(W[U[L]]=D[U[L]]);return W},h=m.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function d(D){var Z=D.suffixCls,W=D.tagName,U=D.displayName;return function(L){var V=m.forwardRef(function($,G){var z=m.useContext(b.E_),K=z.getPrefixCls,re=$.prefixCls,ne=K(Z,re);return m.createElement(L,(0,y.Z)({ref:G,prefixCls:ne,tagName:W},$))});return V}}var _=m.forwardRef(function(D,Z){var W=D.prefixCls,U=D.className,L=D.children,V=D.tagName,$=v(D,["prefixCls","className","children","tagName"]),G=w()(W,U);return m.createElement(V,(0,y.Z)((0,y.Z)({className:G},$),{ref:Z}),L)}),p=m.forwardRef(function(D,Z){var W,U=m.useContext(b.E_),L=U.direction,V=m.useState([]),$=(0,A.Z)(V,2),G=$[0],z=$[1],K=D.prefixCls,re=D.className,ne=D.children,Q=D.hasSider,ue=D.tagName,he=v(D,["prefixCls","className","children","hasSider","tagName"]),Ee=w()(K,(W={},(0,g.Z)(W,"".concat(K,"-has-sider"),typeof Q=="boolean"?Q:G.length>0),(0,g.Z)(W,"".concat(K,"-rtl"),L==="rtl"),W),re),ce=m.useMemo(function(){return{siderHook:{addSider:function(fe){z(function(we){return[].concat((0,x.Z)(we),[fe])})},removeSider:function(fe){z(function(we){return we.filter(function(me){return me!==fe})})}}}},[]);return m.createElement(h.Provider,{value:ce},m.createElement(ue,(0,y.Z)({ref:Z,className:Ee},he),ne))}),S=d({suffixCls:"layout",tagName:"section",displayName:"Layout"})(p),k=d({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(_),O=d({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(_),F=d({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(_);N.ZP=S},56701:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m},E:function(){return b}});var x=o(22122),g=o(67294),A=o(15399),y=o(16980),M=y.Z,w=function(h){var d=h.componentName,_=d===void 0?"global":d,p=h.defaultLocale,S=h.children,k=g.useContext(A.Z),O=g.useMemo(function(){var D,Z=p||M[_],W=(D=k==null?void 0:k[_])!==null&&D!==void 0?D:{};return(0,x.Z)((0,x.Z)({},Z instanceof Function?Z():Z),W||{})},[_,p,k]),F=g.useMemo(function(){var D=k&&k.locale;return k&&k.exist&&!D?M.locale:D},[k]);return S(O,F,k)},m=w,b=function(h,d){var _=g.useContext(A.Z),p=g.useMemo(function(){var S,k=d||M[h],O=(S=_==null?void 0:_[h])!==null&&S!==void 0?S:{};return(0,x.Z)((0,x.Z)({},typeof k=="function"?k():k),O||{})},[h,d,_]);return[p]}},15399:function(oe,N,o){"use strict";var x=o(67294),g=(0,x.createContext)(void 0);N.Z=g},16980:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m}});var x=o(71075),g=o(25832),A=g.Z,y=o(63275),M="${label} is not a valid ${type}",w={locale:"en",Pagination:x.Z,DatePicker:g.Z,TimePicker:y.Z,Calendar:A,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:M,method:M,array:M,object:M,number:M,date:M,boolean:M,integer:M,float:M,regexp:M,email:M,url:M,hex:M},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}},m=w},24002:function(oe,N,o){"use strict";var x=o(16980);N.Z=x.Z},9364:function(oe,N,o){"use strict";o.d(N,{Z:function(){return _}});var x=o(83651),g=o(22122),A={locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},y=A,M={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},w=M,m={lang:(0,g.Z)({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},y),timePickerLocale:(0,g.Z)({},w)};m.lang.ok="\u786E\u5B9A";var b=m,v=b,h="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",d={locale:"zh-cn",Pagination:x.Z,DatePicker:b,TimePicker:w,Calendar:v,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00"},PageHeader:{back:"\u8FD4\u56DE"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:h,method:h,array:h,object:h,number:h,date:h,boolean:h,integer:h,float:h,regexp:h,email:h,url:h,hex:h},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"}},_=d},66948:function(oe,N,o){"use strict";o.d(N,{J:function(){return M}});var x=o(22122),g=o(67294),A=function(w,m){var b={};for(var v in w)Object.prototype.hasOwnProperty.call(w,v)&&m.indexOf(v)<0&&(b[v]=w[v]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,v=Object.getOwnPropertySymbols(w);h<v.length;h++)m.indexOf(v[h])<0&&Object.prototype.propertyIsEnumerable.call(w,v[h])&&(b[v[h]]=w[v[h]]);return b},y=g.createContext(null),M=function(m){var b=m.children,v=A(m,["children"]),h=g.useContext(y),d=g.useMemo(function(){return(0,x.Z)((0,x.Z)({},h),v)},[h,v.prefixCls,v.mode,v.selectable]);return g.createElement(y.Provider,{value:d},b)};N.Z=y},36707:function(oe,N,o){"use strict";o.d(N,{Z:function(){return we}});var x=o(6610),g=o(5991),A=o(10379),y=o(44144),M=o(22122),w=o(44545),m=o(35510),b=o.n(m),v=o(49480),h=o(13799),d=o(69252),_=o(67294),p=o(9054),S=o(22540),k=o(31064),O=o(75447),F=o(90484),D=o(96156),Z=function(me,Pe){var pe={};for(var Ie in me)Object.prototype.hasOwnProperty.call(me,Ie)&&Pe.indexOf(Ie)<0&&(pe[Ie]=me[Ie]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Ie=Object.getOwnPropertySymbols(me);Je<Ie.length;Je++)Pe.indexOf(Ie[Je])<0&&Object.prototype.propertyIsEnumerable.call(me,Ie[Je])&&(pe[Ie[Je]]=me[Ie[Je]]);return pe},W=function(Pe){var pe=Pe.prefixCls,Ie=Pe.className,Je=Pe.dashed,ke=Z(Pe,["prefixCls","className","dashed"]),De=_.useContext(p.E_),Fe=De.getPrefixCls,Qe=Fe("menu",pe),qe=b()((0,D.Z)({},"".concat(Qe,"-item-divider-dashed"),!!Je),Ie);return _.createElement(v.iz,(0,M.Z)({className:qe},ke))},U=W,L=o(83025),V=o(95455),$=(0,_.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),G=$,z=function(me,Pe){var pe={};for(var Ie in me)Object.prototype.hasOwnProperty.call(me,Ie)&&Pe.indexOf(Ie)<0&&(pe[Ie]=me[Ie]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Ie=Object.getOwnPropertySymbols(me);Je<Ie.length;Je++)Pe.indexOf(Ie[Je])<0&&Object.prototype.propertyIsEnumerable.call(me,Ie[Je])&&(pe[Ie[Je]]=me[Ie[Je]]);return pe},K=function(me){(0,A.Z)(pe,me);var Pe=(0,y.Z)(pe);function pe(){var Ie;return(0,x.Z)(this,pe),Ie=Pe.apply(this,arguments),Ie.renderItem=function(Je){var ke,De=Je.siderCollapsed,Fe,Qe=Ie.context,qe=Qe.prefixCls,et=Qe.firstLevel,dt=Qe.inlineCollapsed,Ke=Qe.direction,Ge=Qe.disableMenuItemTitleTooltip,wt=Ie.props,Vt=wt.className,gt=wt.children,it=Ie.props,Le=it.title,ct=it.icon,at=it.danger,jt=z(it,["title","icon","danger"]),St=Le;typeof Le=="undefined"?St=et?gt:"":Le===!1&&(St="");var fn={title:St};!De&&!dt&&(fn.title=null,fn.open=!1);var Xt=(0,L.Z)(gt).length,Yt=_.createElement(v.ck,(0,M.Z)({},jt,{className:b()((ke={},(0,D.Z)(ke,"".concat(qe,"-item-danger"),at),(0,D.Z)(ke,"".concat(qe,"-item-only-child"),(ct?Xt+1:Xt)===1),ke),Vt),title:typeof Le=="string"?Le:void 0}),(0,O.Tm)(ct,{className:b()((0,O.l$)(ct)?(Fe=ct.props)===null||Fe===void 0?void 0:Fe.className:"","".concat(qe,"-item-icon"))}),Ie.renderItemChildren(dt));return Ge||(Yt=_.createElement(V.Z,(0,M.Z)({},fn,{placement:Ke==="rtl"?"left":"right",overlayClassName:"".concat(qe,"-inline-collapsed-tooltip")}),Yt)),Yt},Ie}return(0,g.Z)(pe,[{key:"renderItemChildren",value:function(Je){var ke=this.context,De=ke.prefixCls,Fe=ke.firstLevel,Qe=this.props,qe=Qe.icon,et=Qe.children,dt=_.createElement("span",{className:"".concat(De,"-title-content")},et);return(!qe||(0,O.l$)(et)&&et.type==="span")&&et&&Je&&Fe&&typeof et=="string"?_.createElement("div",{className:"".concat(De,"-inline-collapsed-noicon")},et.charAt(0)):dt}},{key:"render",value:function(){return _.createElement(S.D.Consumer,null,this.renderItem)}}]),pe}(_.Component);K.contextType=G;function re(me){var Pe,pe=me.popupClassName,Ie=me.icon,Je=me.title,ke=me.theme,De=_.useContext(G),Fe=De.prefixCls,Qe=De.inlineCollapsed,qe=De.antdMenuTheme,et=(0,v.Xl)(),dt;if(!Ie)dt=Qe&&!et.length&&Je&&typeof Je=="string"?_.createElement("div",{className:"".concat(Fe,"-inline-collapsed-noicon")},Je.charAt(0)):_.createElement("span",{className:"".concat(Fe,"-title-content")},Je);else{var Ke=(0,O.l$)(Je)&&Je.type==="span";dt=_.createElement(_.Fragment,null,(0,O.Tm)(Ie,{className:b()((0,O.l$)(Ie)?(Pe=Ie.props)===null||Pe===void 0?void 0:Pe.className:"","".concat(Fe,"-item-icon"))}),Ke?Je:_.createElement("span",{className:"".concat(Fe,"-title-content")},Je))}var Ge=_.useMemo(function(){return(0,M.Z)((0,M.Z)({},De),{firstLevel:!1})},[De]);return _.createElement(G.Provider,{value:Ge},_.createElement(v.Wd,(0,M.Z)({},(0,d.Z)(me,["icon"]),{title:dt,popupClassName:b()(Fe,"".concat(Fe,"-").concat(ke||qe),pe)})))}var ne=re,Q=function(me,Pe){var pe={};for(var Ie in me)Object.prototype.hasOwnProperty.call(me,Ie)&&Pe.indexOf(Ie)<0&&(pe[Ie]=me[Ie]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Ie=Object.getOwnPropertySymbols(me);Je<Ie.length;Je++)Pe.indexOf(Ie[Je])<0&&Object.prototype.propertyIsEnumerable.call(me,Ie[Je])&&(pe[Ie[Je]]=me[Ie[Je]]);return pe};function ue(me){return(me||[]).map(function(Pe,pe){if(Pe&&(0,F.Z)(Pe)==="object"){var Ie=Pe,Je=Ie.label,ke=Ie.children,De=Ie.key,Fe=Ie.type,Qe=Q(Ie,["label","children","key","type"]),qe=De!=null?De:"tmp-".concat(pe);return ke||Fe==="group"?Fe==="group"?_.createElement(v.BW,(0,M.Z)({key:qe},Qe,{title:Je}),ue(ke)):_.createElement(ne,(0,M.Z)({key:qe},Qe,{title:Je}),ue(ke)):Fe==="divider"?_.createElement(U,(0,M.Z)({key:qe},Qe)):_.createElement(K,(0,M.Z)({key:qe},Qe),Je)}return null}).filter(function(Pe){return Pe})}function he(me){return _.useMemo(function(){return me&&ue(me)},[me])}var Ee=o(66948),ce=function(me,Pe){var pe={};for(var Ie in me)Object.prototype.hasOwnProperty.call(me,Ie)&&Pe.indexOf(Ie)<0&&(pe[Ie]=me[Ie]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Ie=Object.getOwnPropertySymbols(me);Je<Ie.length;Je++)Pe.indexOf(Ie[Je])<0&&Object.prototype.propertyIsEnumerable.call(me,Ie[Je])&&(pe[Ie[Je]]=me[Ie[Je]]);return pe},ve=(0,_.forwardRef)(function(me,Pe){var pe,Ie=_.useContext(Ee.Z)||{},Je=_.useContext(p.E_),ke=Je.getPrefixCls,De=Je.getPopupContainer,Fe=Je.direction,Qe=ke(),qe=me.prefixCls,et=me.className,dt=me.theme,Ke=dt===void 0?"light":dt,Ge=me.expandIcon,wt=me._internalDisableMenuItemTitleTooltip,Vt=me.inlineCollapsed,gt=me.siderCollapsed,it=me.items,Le=me.children,ct=me.mode,at=me.selectable,jt=me.onClick,St=ce(me,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","mode","selectable","onClick"]),fn=(0,d.Z)(St,["collapsedWidth"]),Xt=he(it)||Le;(pe=Ie.validator)===null||pe===void 0||pe.call(Ie,{mode:ct});var Yt=(0,h.Z)(function(){var Ht;jt==null||jt.apply(void 0,arguments),(Ht=Ie==null?void 0:Ie.onClick)===null||Ht===void 0||Ht.call(Ie)}),Rt=Ie.mode||ct,Lt=at!=null?at:Ie.selectable,ze=_.useMemo(function(){return gt!==void 0?gt:Vt},[Vt,gt]),rt={horizontal:{motionName:"".concat(Qe,"-slide-up")},inline:k.ZP,other:{motionName:"".concat(Qe,"-zoom-big")}},tt=ke("menu",qe||Ie.prefixCls),de=b()("".concat(tt,"-").concat(Ke),et),ot;typeof Ge=="function"?ot=Ge:ot=(0,O.Tm)(Ge||Ie.expandIcon,{className:"".concat(tt,"-submenu-expand-icon")});var Et=_.useMemo(function(){return{prefixCls:tt,inlineCollapsed:ze||!1,antdMenuTheme:Ke,direction:Fe,firstLevel:!0,disableMenuItemTitleTooltip:wt}},[tt,ze,Ke,Fe,wt]);return _.createElement(Ee.Z.Provider,{value:null},_.createElement(G.Provider,{value:Et},_.createElement(v.ZP,(0,M.Z)({getPopupContainer:De,overflowedIndicator:_.createElement(w.Z,null),overflowedIndicatorPopupClassName:"".concat(tt,"-").concat(Ke),mode:Rt,selectable:Lt,onClick:Yt},fn,{inlineCollapsed:ze,className:de,prefixCls:tt,direction:Fe,defaultMotions:rt,expandIcon:ot,ref:Pe}),Xt)))}),fe=function(me){(0,A.Z)(pe,me);var Pe=(0,y.Z)(pe);function pe(){var Ie;return(0,x.Z)(this,pe),Ie=Pe.apply(this,arguments),Ie.focus=function(Je){var ke;(ke=Ie.menu)===null||ke===void 0||ke.focus(Je)},Ie}return(0,g.Z)(pe,[{key:"render",value:function(){var Je=this;return _.createElement(S.D.Consumer,null,function(ke){return _.createElement(ve,(0,M.Z)({ref:function(Fe){Je.menu=Fe}},Je.props,ke))})}}]),pe}(_.Component);fe.Divider=U,fe.Item=K,fe.SubMenu=ne,fe.ItemGroup=v.BW;var we=fe},37482:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(8116),y=o.n(A),M=o(81984)},92909:function(oe,N,o){"use strict";o.r(N),o.d(N,{attachTypeApi:function(){return fe},default:function(){return me},getInstance:function(){return we},getKeyThenIncreaseKey:function(){return K},typeList:function(){return ue}});var x=o(22122),g=o(96156),A=o(38819),y=o(43061),M=o(68855),w=o(40847),m=o(7085),b=o(35510),v=o.n(b),h=o(68836),d=o(67294),_=o(23799),p=o(28481),S=o(20073),k=o(9054);function O(Pe,pe){var Ie=function(){var ke,De,Fe=null,Qe={add:function(gt,it){Fe==null||Fe.component.add(gt,it)}},qe=(0,S.Z)(Qe),et=(0,p.Z)(qe,2),dt=et[0],Ke=et[1];function Ge(Vt){var gt=Vt.prefixCls,it=ke("message",gt),Le=ke(),ct=Vt.key||K(),at=new Promise(function(St){var fn=function(){return typeof Vt.onClose=="function"&&Vt.onClose(),St(!0)};Pe((0,x.Z)((0,x.Z)({},Vt),{prefixCls:it,rootPrefixCls:Le,getPopupContainer:De}),function(Xt){var Yt=Xt.prefixCls,Rt=Xt.instance;Fe=Rt,dt(pe((0,x.Z)((0,x.Z)({},Vt),{key:ct,onClose:fn}),Yt))})}),jt=function(){Fe&&Fe.removeNotice(ct)};return jt.then=function(St,fn){return at.then(St,fn)},jt.promise=at,jt}var wt=d.useRef({});return wt.current.open=Ge,ue.forEach(function(Vt){return fe(wt.current,Vt)}),[wt.current,d.createElement(k.C,{key:"holder"},function(Vt){return ke=Vt.getPrefixCls,De=Vt.getPopupContainer,Ke})]};return Ie}var F,D=3,Z,W=1,U="",L="move-up",V=!1,$,G,z=!1;function K(){return W++}function re(Pe){Pe.top!==void 0&&(Z=Pe.top,F=null),Pe.duration!==void 0&&(D=Pe.duration),Pe.prefixCls!==void 0&&(U=Pe.prefixCls),Pe.getContainer!==void 0&&($=Pe.getContainer,F=null),Pe.transitionName!==void 0&&(L=Pe.transitionName,F=null,V=!0),Pe.maxCount!==void 0&&(G=Pe.maxCount,F=null),Pe.rtl!==void 0&&(z=Pe.rtl)}function ne(Pe,pe){var Ie=Pe.prefixCls,Je=Pe.getPopupContainer,ke=(0,_.w6)(),De=ke.getPrefixCls,Fe=ke.getRootPrefixCls,Qe=ke.getIconPrefixCls,qe=De("message",Ie||U),et=Fe(Pe.rootPrefixCls,qe),dt=Qe();if(F){pe({prefixCls:qe,rootPrefixCls:et,iconPrefixCls:dt,instance:F});return}var Ke={prefixCls:qe,transitionName:V?L:"".concat(et,"-").concat(L),style:{top:Z},getContainer:$||Je,maxCount:G};h.default.newInstance(Ke,function(Ge){if(F){pe({prefixCls:qe,rootPrefixCls:et,iconPrefixCls:dt,instance:F});return}F=Ge,pe({prefixCls:qe,rootPrefixCls:et,iconPrefixCls:dt,instance:Ge})})}var Q={info:w.Z,success:A.Z,error:y.Z,warning:M.Z,loading:m.Z},ue=Object.keys(Q);function he(Pe,pe,Ie){var Je,ke=Pe.duration!==void 0?Pe.duration:D,De=Q[Pe.type],Fe=v()("".concat(pe,"-custom-content"),(Je={},(0,g.Z)(Je,"".concat(pe,"-").concat(Pe.type),Pe.type),(0,g.Z)(Je,"".concat(pe,"-rtl"),z===!0),Je));return{key:Pe.key,duration:ke,style:Pe.style||{},className:Pe.className,content:d.createElement(_.ZP,{iconPrefixCls:Ie},d.createElement("div",{className:Fe},Pe.icon||De&&d.createElement(De,null),d.createElement("span",null,Pe.content))),onClose:Pe.onClose,onClick:Pe.onClick}}function Ee(Pe){var pe=Pe.key||K(),Ie=new Promise(function(ke){var De=function(){return typeof Pe.onClose=="function"&&Pe.onClose(),ke(!0)};ne(Pe,function(Fe){var Qe=Fe.prefixCls,qe=Fe.iconPrefixCls,et=Fe.instance;et.notice(he((0,x.Z)((0,x.Z)({},Pe),{key:pe,onClose:De}),Qe,qe))})}),Je=function(){var De;F&&(F.removeNotice(pe),(De=Pe.onClose)===null||De===void 0||De.call(Pe))};return Je.then=function(ke,De){return Ie.then(ke,De)},Je.promise=Ie,Je}function ce(Pe){return Object.prototype.toString.call(Pe)==="[object Object]"&&!!Pe.content}var ve={open:Ee,config:re,destroy:function(pe){if(F)if(pe){var Ie=F,Je=Ie.removeNotice;Je(pe)}else{var ke=F,De=ke.destroy;De(),F=null}}};function fe(Pe,pe){Pe[pe]=function(Ie,Je,ke){return ce(Ie)?Pe.open((0,x.Z)((0,x.Z)({},Ie),{type:pe})):(typeof Je=="function"&&(ke=Je,Je=void 0),Pe.open({content:Ie,duration:Je,type:pe,onClose:ke}))}}ue.forEach(function(Pe){return fe(ve,Pe)}),ve.warn=ve.warning,ve.useMessage=O(ne,he);var we=function(){return null},me=ve},14643:function(oe,N,o){"use strict";o.r(N);var x=o(38663),g=o.n(x),A=o(79186),y=o.n(A)},51935:function(oe,N,o){"use strict";o.d(N,{Z:function(){return qt}});var x=o(85061),g=o(22122),A=o(15873),y=o(73218),M=o(57119),w=o(56717),m=o(55507),b=o(92137),v=o(90484),h=o(28991),d=o(73935),_=o.t(d,2),p=(0,h.Z)({},_),S=p.version,k=p.render,O=p.unmountComponentAtNode,F;try{var D=Number((S||"").split(".")[0]);D>=18&&(F=p.createRoot)}catch(rn){}function Z(rn){var cn=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;cn&&(0,v.Z)(cn)==="object"&&(cn.usingClientEntryPoint=rn)}var W="__rc_react_root__";function U(rn,cn){Z(!0);var er=cn[W]||F(cn);Z(!1),er.render(rn),cn[W]=er}function L(rn,cn){k(rn,cn)}function V(rn,cn){}function $(rn,cn){if(F){U(rn,cn);return}L(rn,cn)}function G(rn){return z.apply(this,arguments)}function z(){return z=(0,b.Z)((0,m.Z)().mark(function rn(cn){return(0,m.Z)().wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:return rr.abrupt("return",Promise.resolve().then(function(){var nt;(nt=cn[W])===null||nt===void 0||nt.unmount(),delete cn[W]}));case 1:case"end":return rr.stop()}},rn)})),z.apply(this,arguments)}function K(rn){O(rn)}function re(rn){}function ne(rn){return Q.apply(this,arguments)}function Q(){return Q=(0,b.Z)((0,m.Z)().mark(function rn(cn){return(0,m.Z)().wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:if(F===void 0){rr.next=2;break}return rr.abrupt("return",G(cn));case 2:K(cn);case 3:case"end":return rr.stop()}},rn)})),Q.apply(this,arguments)}var ue=o(67294),he=o(23799),Ee=o(96156),ce=o(35510),ve=o.n(ce),fe=o(25769),we=o(31064),me=o(54549),Pe=o(95277),pe=o(48429),Ie=o(17870),Je=o(9054),ke=o(27495),De=o(56701),Fe=o(1358),Qe=o(55835),qe=o(26016),et=function(rn,cn){var er={};for(var rr in rn)Object.prototype.hasOwnProperty.call(rn,rr)&&cn.indexOf(rr)<0&&(er[rr]=rn[rr]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rr=Object.getOwnPropertySymbols(rn);nt<rr.length;nt++)cn.indexOf(rr[nt])<0&&Object.prototype.propertyIsEnumerable.call(rn,rr[nt])&&(er[rr[nt]]=rn[rr[nt]]);return er},dt,Ke=function(cn){dt={x:cn.pageX,y:cn.pageY},setTimeout(function(){dt=null},100)};(0,Qe.jD)()&&document.documentElement.addEventListener("click",Ke,!0);var Ge=function(cn){var er,rr,nt=ue.useContext(Je.E_),lr=nt.getPopupContainer,Hn=nt.getPrefixCls,ut=nt.direction,bt=function($n){var qr=cn.onCancel;qr==null||qr($n)},We=function($n){var qr=cn.onOk;qr==null||qr($n)},be=cn.prefixCls,Ae=cn.footer,Ue=cn.visible,$e=cn.open,kt=$e===void 0?!1:$e,lt=cn.wrapClassName,vt=cn.centered,Ct=cn.getContainer,Bt=cn.closeIcon,mt=cn.focusTriggerAfterClose,Zt=mt===void 0?!0:mt,zt=cn.width,ln=zt===void 0?520:zt,An=et(cn,["prefixCls","footer","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","width"]),En=Hn("modal",be),Gn=Hn(),Bn=ue.createElement(De.Z,{componentName:"Modal",defaultLocale:(0,qe.A)()},function(na){var $n=cn.okText,qr=cn.okType,Jr=qr===void 0?"primary":qr,Aa=cn.cancelText,ya=cn.confirmLoading,$t=ya===void 0?!1:ya;return ue.createElement(ue.Fragment,null,ue.createElement(pe.Z,(0,g.Z)({onClick:bt},cn.cancelButtonProps),Aa||na.cancelText),ue.createElement(pe.Z,(0,g.Z)({},(0,Ie.n)(Jr),{loading:$t,onClick:We},cn.okButtonProps),$n!=null?$n:na.okText))}),pr=ue.createElement("span",{className:"".concat(En,"-close-x")},Bt||ue.createElement(me.Z,{className:"".concat(En,"-close-icon")})),_r=ve()(lt,(er={},(0,Ee.Z)(er,"".concat(En,"-centered"),!!vt),(0,Ee.Z)(er,"".concat(En,"-wrap-rtl"),ut==="rtl"),er));return ue.createElement(Fe.BR,null,ue.createElement(ke.Ux,{status:!0,override:!0},ue.createElement(Pe.Z,(0,g.Z)({width:ln},An,{getContainer:Ct===void 0?lr:Ct,prefixCls:En,wrapClassName:_r,footer:Ae===void 0?Bn:Ae,visible:kt||Ue,mousePosition:(rr=An.mousePosition)!==null&&rr!==void 0?rr:dt,onClose:bt,closeIcon:pr,focusTriggerAfterClose:Zt,transitionName:(0,we.mL)(Gn,"zoom",cn.transitionName),maskTransitionName:(0,we.mL)(Gn,"fade",cn.maskTransitionName)}))))},wt=Ge,Vt=function(cn){var er=cn.icon,rr=cn.onCancel,nt=cn.onOk,lr=cn.close,Hn=cn.zIndex,ut=cn.afterClose,bt=cn.visible,We=cn.open,be=cn.keyboard,Ae=cn.centered,Ue=cn.getContainer,$e=cn.maskStyle,kt=cn.okText,lt=cn.okButtonProps,vt=cn.cancelText,Ct=cn.cancelButtonProps,Bt=cn.direction,mt=cn.prefixCls,Zt=cn.wrapClassName,zt=cn.rootPrefixCls,ln=cn.iconPrefixCls,An=cn.bodyStyle,En=cn.closable,Gn=En===void 0?!1:En,Bn=cn.closeIcon,pr=cn.modalRender,_r=cn.focusTriggerAfterClose,na=cn.okType||"primary",$n="".concat(mt,"-confirm"),qr="okCancel"in cn?cn.okCancel:!0,Jr=cn.width||416,Aa=cn.style||{},ya=cn.mask===void 0?!0:cn.mask,$t=cn.maskClosable===void 0?!1:cn.maskClosable,wn=cn.autoFocusButton===null?!1:cn.autoFocusButton||"ok",Fn=ve()($n,"".concat($n,"-").concat(cn.type),(0,Ee.Z)({},"".concat($n,"-rtl"),Bt==="rtl"),cn.className),Or=qr&&ue.createElement(fe.Z,{actionFn:rr,close:lr,autoFocus:wn==="cancel",buttonProps:Ct,prefixCls:"".concat(zt,"-btn")},vt);return ue.createElement(he.ZP,{prefixCls:zt,iconPrefixCls:ln,direction:Bt},ue.createElement(wt,{prefixCls:mt,className:Fn,wrapClassName:ve()((0,Ee.Z)({},"".concat($n,"-centered"),!!cn.centered),Zt),onCancel:function(){return lr==null?void 0:lr({triggerCancel:!0})},open:We||bt,title:"",footer:"",transitionName:(0,we.mL)(zt,"zoom",cn.transitionName),maskTransitionName:(0,we.mL)(zt,"fade",cn.maskTransitionName),mask:ya,maskClosable:$t,maskStyle:$e,style:Aa,bodyStyle:An,width:Jr,zIndex:Hn,afterClose:ut,keyboard:be,centered:Ae,getContainer:Ue,closable:Gn,closeIcon:Bn,modalRender:pr,focusTriggerAfterClose:_r},ue.createElement("div",{className:"".concat($n,"-body-wrapper")},ue.createElement("div",{className:"".concat($n,"-body")},er,cn.title===void 0?null:ue.createElement("span",{className:"".concat($n,"-title")},cn.title),ue.createElement("div",{className:"".concat($n,"-content")},cn.content)),ue.createElement("div",{className:"".concat($n,"-btns")},Or,ue.createElement(fe.Z,{type:na,actionFn:nt,close:lr,autoFocus:wn==="ok",buttonProps:lt,prefixCls:"".concat(zt,"-btn")},kt)))))},gt=Vt,it=[],Le=it,ct=function(rn,cn){var er={};for(var rr in rn)Object.prototype.hasOwnProperty.call(rn,rr)&&cn.indexOf(rr)<0&&(er[rr]=rn[rr]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rr=Object.getOwnPropertySymbols(rn);nt<rr.length;nt++)cn.indexOf(rr[nt])<0&&Object.prototype.propertyIsEnumerable.call(rn,rr[nt])&&(er[rr[nt]]=rn[rr[nt]]);return er},at="";function jt(){return at}function St(rn){var cn=document.createDocumentFragment(),er=(0,g.Z)((0,g.Z)({},rn),{close:Hn,open:!0}),rr;function nt(){for(var bt=arguments.length,We=new Array(bt),be=0;be<bt;be++)We[be]=arguments[be];var Ae=We.some(function(kt){return kt&&kt.triggerCancel});rn.onCancel&&Ae&&rn.onCancel.apply(rn,[function(){}].concat((0,x.Z)(We.slice(1))));for(var Ue=0;Ue<Le.length;Ue++){var $e=Le[Ue];if($e===Hn){Le.splice(Ue,1);break}}ne(cn)}function lr(bt){var We=bt.okText,be=bt.cancelText,Ae=bt.prefixCls,Ue=ct(bt,["okText","cancelText","prefixCls"]);clearTimeout(rr),rr=setTimeout(function(){var $e=(0,qe.A)(),kt=(0,he.w6)(),lt=kt.getPrefixCls,vt=kt.getIconPrefixCls,Ct=lt(void 0,jt()),Bt=Ae||"".concat(Ct,"-modal"),mt=vt();$(ue.createElement(gt,(0,g.Z)({},Ue,{prefixCls:Bt,rootPrefixCls:Ct,iconPrefixCls:mt,okText:We||(Ue.okCancel?$e.okText:$e.justOkText),cancelText:be||$e.cancelText})),cn)})}function Hn(){for(var bt=this,We=arguments.length,be=new Array(We),Ae=0;Ae<We;Ae++)be[Ae]=arguments[Ae];er=(0,g.Z)((0,g.Z)({},er),{open:!1,afterClose:function(){typeof rn.afterClose=="function"&&rn.afterClose(),nt.apply(bt,be)}}),er.visible&&delete er.visible,lr(er)}function ut(bt){typeof bt=="function"?er=bt(er):er=(0,g.Z)((0,g.Z)({},er),bt),lr(er)}return lr(er),Le.push(Hn),{destroy:Hn,update:ut}}function fn(rn){return(0,g.Z)((0,g.Z)({icon:ue.createElement(M.Z,null),okCancel:!1},rn),{type:"warning"})}function Xt(rn){return(0,g.Z)((0,g.Z)({icon:ue.createElement(w.Z,null),okCancel:!1},rn),{type:"info"})}function Yt(rn){return(0,g.Z)((0,g.Z)({icon:ue.createElement(A.Z,null),okCancel:!1},rn),{type:"success"})}function Rt(rn){return(0,g.Z)((0,g.Z)({icon:ue.createElement(y.Z,null),okCancel:!1},rn),{type:"error"})}function Lt(rn){return(0,g.Z)((0,g.Z)({icon:ue.createElement(M.Z,null),okCancel:!0},rn),{type:"confirm"})}function ze(rn){var cn=rn.rootPrefixCls;at=cn}var rt=o(28481);function tt(){var rn=ue.useState([]),cn=(0,rt.Z)(rn,2),er=cn[0],rr=cn[1],nt=ue.useCallback(function(lr){return rr(function(Hn){return[].concat((0,x.Z)(Hn),[lr])}),function(){rr(function(Hn){return Hn.filter(function(ut){return ut!==lr})})}},[]);return[er,nt]}var de=o(16980),ot=function(cn,er){var rr=cn.afterClose,nt=cn.config,lr=ue.useState(!0),Hn=(0,rt.Z)(lr,2),ut=Hn[0],bt=Hn[1],We=ue.useState(nt),be=(0,rt.Z)(We,2),Ae=be[0],Ue=be[1],$e=ue.useContext(Je.E_),kt=$e.direction,lt=$e.getPrefixCls,vt=lt("modal"),Ct=lt(),Bt=function(){bt(!1);for(var Zt=arguments.length,zt=new Array(Zt),ln=0;ln<Zt;ln++)zt[ln]=arguments[ln];var An=zt.some(function(En){return En&&En.triggerCancel});Ae.onCancel&&An&&Ae.onCancel.apply(Ae,[function(){}].concat((0,x.Z)(zt.slice(1))))};return ue.useImperativeHandle(er,function(){return{destroy:Bt,update:function(Zt){Ue(function(zt){return(0,g.Z)((0,g.Z)({},zt),Zt)})}}}),ue.createElement(De.Z,{componentName:"Modal",defaultLocale:de.Z.Modal},function(mt){return ue.createElement(gt,(0,g.Z)({prefixCls:vt,rootPrefixCls:Ct},Ae,{close:Bt,open:ut,afterClose:rr,okText:Ae.okText||(Ae.okCancel?mt.okText:mt.justOkText),direction:kt,cancelText:Ae.cancelText||mt.cancelText}))})},Et=ue.forwardRef(ot),Ht=0,Jt=ue.memo(ue.forwardRef(function(rn,cn){var er=tt(),rr=(0,rt.Z)(er,2),nt=rr[0],lr=rr[1];return ue.useImperativeHandle(cn,function(){return{patchElement:lr}},[]),ue.createElement(ue.Fragment,null,nt)}));function Qt(){var rn=ue.useRef(null),cn=ue.useState([]),er=(0,rt.Z)(cn,2),rr=er[0],nt=er[1];ue.useEffect(function(){if(rr.length){var ut=(0,x.Z)(rr);ut.forEach(function(bt){bt()}),nt([])}},[rr]);var lr=ue.useCallback(function(ut){return function(We){var be;Ht+=1;var Ae=ue.createRef(),Ue,$e=ue.createElement(Et,{key:"modal-".concat(Ht),config:ut(We),ref:Ae,afterClose:function(){Ue==null||Ue()}});return Ue=(be=rn.current)===null||be===void 0?void 0:be.patchElement($e),{destroy:function(){function lt(){var vt;(vt=Ae.current)===null||vt===void 0||vt.destroy()}Ae.current?lt():nt(function(vt){return[].concat((0,x.Z)(vt),[lt])})},update:function(lt){function vt(){var Ct;(Ct=Ae.current)===null||Ct===void 0||Ct.update(lt)}Ae.current?vt():nt(function(Ct){return[].concat((0,x.Z)(Ct),[vt])})}}}},[]),Hn=ue.useMemo(function(){return{info:lr(Xt),success:lr(Yt),error:lr(Rt),warning:lr(fn),confirm:lr(Lt)}},[]);return[Hn,ue.createElement(Jt,{ref:rn})]}function an(rn){return St(fn(rn))}var Un=wt;Un.useModal=Qt,Un.info=function(cn){return St(Xt(cn))},Un.success=function(cn){return St(Yt(cn))},Un.error=function(cn){return St(Rt(cn))},Un.warning=an,Un.warn=an,Un.confirm=function(cn){return St(Lt(cn))},Un.destroyAll=function(){for(;Le.length;){var cn=Le.pop();cn&&cn()}},Un.config=ze;var qt=Un},26016:function(oe,N,o){"use strict";o.d(N,{f:function(){return y},A:function(){return M}});var x=o(22122),g=o(16980),A=(0,x.Z)({},g.Z.Modal);function y(w){w?A=(0,x.Z)((0,x.Z)({},A),w):A=(0,x.Z)({},g.Z.Modal)}function M(){return A}},26780:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(41412),y=o.n(A),M=o(13753)},84737:function(oe,N,o){"use strict";o.r(N),o.d(N,{default:function(){return we},getInstance:function(){return fe}});var x=o(55507),g=o(22122),A=o(96156),y=o(15873),M=o(73218),w=o(54549),m=o(57119),b=o(56717),v=o(35510),h=o.n(v),d=o(68836),_=o(67294),p=o(23799),S=o(28481),k=o(20073),O=o(9054);function F(me,Pe){var pe=function(){var Je,ke=null,De={add:function(wt,Vt){ke==null||ke.component.add(wt,Vt)}},Fe=(0,k.Z)(De),Qe=(0,S.Z)(Fe,2),qe=Qe[0],et=Qe[1];function dt(Ge){var wt=Ge.prefixCls,Vt=Je("notification",wt);me((0,g.Z)((0,g.Z)({},Ge),{prefixCls:Vt}),function(gt){var it=gt.prefixCls,Le=gt.instance;ke=Le,qe(Pe(Ge,it))})}var Ke=_.useRef({});return Ke.current.open=dt,["success","info","warning","error"].forEach(function(Ge){Ke.current[Ge]=function(wt){return Ke.current.open((0,g.Z)((0,g.Z)({},wt),{type:Ge}))}}),[Ke.current,_.createElement(O.C,{key:"holder"},function(Ge){return Je=Ge.getPrefixCls,et})]};return pe}var D=function(me,Pe,pe,Ie){function Je(ke){return ke instanceof pe?ke:new pe(function(De){De(ke)})}return new(pe||(pe=Promise))(function(ke,De){function Fe(et){try{qe(Ie.next(et))}catch(dt){De(dt)}}function Qe(et){try{qe(Ie.throw(et))}catch(dt){De(dt)}}function qe(et){et.done?ke(et.value):Je(et.value).then(Fe,Qe)}qe((Ie=Ie.apply(me,Pe||[])).next())})},Z={},W=4.5,U=24,L=24,V="",$="topRight",G,z,K=!1,re;function ne(me){var Pe=me.duration,pe=me.placement,Ie=me.bottom,Je=me.top,ke=me.getContainer,De=me.closeIcon,Fe=me.prefixCls;Fe!==void 0&&(V=Fe),Pe!==void 0&&(W=Pe),pe!==void 0?$=pe:me.rtl&&($="topLeft"),Ie!==void 0&&(L=Ie),Je!==void 0&&(U=Je),ke!==void 0&&(G=ke),De!==void 0&&(z=De),me.rtl!==void 0&&(K=me.rtl),me.maxCount!==void 0&&(re=me.maxCount)}function Q(me){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:U,pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:L,Ie;switch(me){case"top":Ie={left:"50%",transform:"translateX(-50%)",right:"auto",top:Pe,bottom:"auto"};break;case"topLeft":Ie={left:0,top:Pe,bottom:"auto"};break;case"topRight":Ie={right:0,top:Pe,bottom:"auto"};break;case"bottom":Ie={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:pe};break;case"bottomLeft":Ie={left:0,top:"auto",bottom:pe};break;default:Ie={right:0,top:"auto",bottom:pe};break}return Ie}function ue(me,Pe){var pe=me.placement,Ie=pe===void 0?$:pe,Je=me.top,ke=me.bottom,De=me.getContainer,Fe=De===void 0?G:De,Qe=me.prefixCls,qe=(0,p.w6)(),et=qe.getPrefixCls,dt=qe.getIconPrefixCls,Ke=et("notification",Qe||V),Ge=dt(),wt="".concat(Ke,"-").concat(Ie),Vt=Z[wt];if(Vt){Promise.resolve(Vt).then(function(it){Pe({prefixCls:"".concat(Ke,"-notice"),iconPrefixCls:Ge,instance:it})});return}var gt=h()("".concat(Ke,"-").concat(Ie),(0,A.Z)({},"".concat(Ke,"-rtl"),K===!0));Z[wt]=new Promise(function(it){d.default.newInstance({prefixCls:Ke,className:gt,style:Q(Ie,Je,ke),getContainer:Fe,maxCount:re},function(Le){it(Le),Pe({prefixCls:"".concat(Ke,"-notice"),iconPrefixCls:Ge,instance:Le})})})}var he={success:y.Z,info:b.Z,error:M.Z,warning:m.Z};function Ee(me,Pe,pe){var Ie=me.duration,Je=me.icon,ke=me.type,De=me.description,Fe=me.message,Qe=me.btn,qe=me.onClose,et=me.onClick,dt=me.key,Ke=me.style,Ge=me.className,wt=me.closeIcon,Vt=wt===void 0?z:wt,gt=me.props,it=Ie===void 0?W:Ie,Le=null;Je?Le=_.createElement("span",{className:"".concat(Pe,"-icon")},me.icon):ke&&(Le=_.createElement(he[ke]||null,{className:"".concat(Pe,"-icon ").concat(Pe,"-icon-").concat(ke)}));var ct=typeof Vt=="undefined"?_.createElement("span",{className:"".concat(Pe,"-close-x")},_.createElement(w.Z,{className:"".concat(Pe,"-close-icon")})):Vt,at=!De&&Le?_.createElement("span",{className:"".concat(Pe,"-message-single-line-auto-margin")}):null;return{content:_.createElement(p.ZP,{iconPrefixCls:pe},_.createElement("div",{className:Le?"".concat(Pe,"-with-icon"):"",role:"alert"},Le,_.createElement("div",{className:"".concat(Pe,"-message")},at,Fe),_.createElement("div",{className:"".concat(Pe,"-description")},De),Qe?_.createElement("span",{className:"".concat(Pe,"-btn")},Qe):null)),duration:it,closable:!0,closeIcon:ct,onClose:qe,onClick:et,key:dt,style:Ke||{},className:h()(Ge,(0,A.Z)({},"".concat(Pe,"-").concat(ke),!!ke)),props:gt}}function ce(me){ue(me,function(Pe){var pe=Pe.prefixCls,Ie=Pe.iconPrefixCls,Je=Pe.instance;Je.notice(Ee(me,pe,Ie))})}var ve={open:ce,close:function(Pe){Object.keys(Z).forEach(function(pe){return Promise.resolve(Z[pe]).then(function(Ie){Ie.removeNotice(Pe)})})},config:ne,destroy:function(){Object.keys(Z).forEach(function(Pe){Promise.resolve(Z[Pe]).then(function(pe){pe.destroy()}),delete Z[Pe]})}};["success","info","warning","error"].forEach(function(me){ve[me]=function(Pe){return ve.open((0,g.Z)((0,g.Z)({},Pe),{type:me}))}}),ve.warn=ve.warning,ve.useNotification=F(ue,Ee);var fe=function(Pe){return D(void 0,void 0,void 0,(0,x.Z)().mark(function pe(){return(0,x.Z)().wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.abrupt("return",null);case 1:case"end":return Je.stop()}},pe)}))},we=ve},68059:function(oe,N,o){"use strict";o.r(N);var x=o(38663),g=o.n(x),A=o(5810),y=o.n(A)},3989:function(oe,N,o){"use strict";o.d(N,{Z:function(){return De}});var x=o(96156),g=o(22122),A=o(28991),y=o(67294),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},w=M,m=o(27029),b=function(Qe,qe){return y.createElement(m.Z,(0,A.Z)((0,A.Z)({},Qe),{},{ref:qe,icon:w}))};b.displayName="DoubleLeftOutlined";var v=y.forwardRef(b),h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},d=h,_=function(Qe,qe){return y.createElement(m.Z,(0,A.Z)((0,A.Z)({},Qe),{},{ref:qe,icon:d}))};_.displayName="DoubleRightOutlined";var p=y.forwardRef(_),S=o(67724),k=o(43929),O=o(35510),F=o.n(O),D=o(6610),Z=o(5991),W=o(10379),U=o(44144),L=function(Qe){var qe,et="".concat(Qe.rootPrefixCls,"-item"),dt=F()(et,"".concat(et,"-").concat(Qe.page),(qe={},(0,x.Z)(qe,"".concat(et,"-active"),Qe.active),(0,x.Z)(qe,"".concat(et,"-disabled"),!Qe.page),(0,x.Z)(qe,Qe.className,!!Qe.className),qe)),Ke=function(){Qe.onClick(Qe.page)},Ge=function(Vt){Qe.onKeyPress(Vt,Qe.onClick,Qe.page)};return y.createElement("li",{title:Qe.showTitle?Qe.page:null,className:dt,onClick:Ke,onKeyPress:Ge,tabIndex:"0"},Qe.itemRender(Qe.page,"page",y.createElement("a",{rel:"nofollow"},Qe.page)))},V=L,$={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},G=function(Fe){(0,W.Z)(qe,Fe);var Qe=(0,U.Z)(qe);function qe(){var et;(0,D.Z)(this,qe);for(var dt=arguments.length,Ke=new Array(dt),Ge=0;Ge<dt;Ge++)Ke[Ge]=arguments[Ge];return et=Qe.call.apply(Qe,[this].concat(Ke)),et.state={goInputText:""},et.buildOptionText=function(wt){return"".concat(wt," ").concat(et.props.locale.items_per_page)},et.changeSize=function(wt){et.props.changeSize(Number(wt))},et.handleChange=function(wt){et.setState({goInputText:wt.target.value})},et.handleBlur=function(wt){var Vt=et.props,gt=Vt.goButton,it=Vt.quickGo,Le=Vt.rootPrefixCls,ct=et.state.goInputText;gt||ct===""||(et.setState({goInputText:""}),!(wt.relatedTarget&&(wt.relatedTarget.className.indexOf("".concat(Le,"-item-link"))>=0||wt.relatedTarget.className.indexOf("".concat(Le,"-item"))>=0))&&it(et.getValidValue()))},et.go=function(wt){var Vt=et.state.goInputText;Vt!==""&&(wt.keyCode===$.ENTER||wt.type==="click")&&(et.setState({goInputText:""}),et.props.quickGo(et.getValidValue()))},et}return(0,Z.Z)(qe,[{key:"getValidValue",value:function(){var dt=this.state.goInputText;return!dt||isNaN(dt)?void 0:Number(dt)}},{key:"getPageSizeOptions",value:function(){var dt=this.props,Ke=dt.pageSize,Ge=dt.pageSizeOptions;return Ge.some(function(wt){return wt.toString()===Ke.toString()})?Ge:Ge.concat([Ke.toString()]).sort(function(wt,Vt){var gt=isNaN(Number(wt))?0:Number(wt),it=isNaN(Number(Vt))?0:Number(Vt);return gt-it})}},{key:"render",value:function(){var dt=this,Ke=this.props,Ge=Ke.pageSize,wt=Ke.locale,Vt=Ke.rootPrefixCls,gt=Ke.changeSize,it=Ke.quickGo,Le=Ke.goButton,ct=Ke.selectComponentClass,at=Ke.buildOptionText,jt=Ke.selectPrefixCls,St=Ke.disabled,fn=this.state.goInputText,Xt="".concat(Vt,"-options"),Yt=ct,Rt=null,Lt=null,ze=null;if(!gt&&!it)return null;var rt=this.getPageSizeOptions();if(gt&&Yt){var tt=rt.map(function(de,ot){return y.createElement(Yt.Option,{key:ot,value:de.toString()},(at||dt.buildOptionText)(de))});Rt=y.createElement(Yt,{disabled:St,prefixCls:jt,showSearch:!1,className:"".concat(Xt,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(Ge||rt[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ot){return ot.parentNode},"aria-label":wt.page_size,defaultOpen:!1},tt)}return it&&(Le&&(ze=typeof Le=="boolean"?y.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:St,className:"".concat(Xt,"-quick-jumper-button")},wt.jump_to_confirm):y.createElement("span",{onClick:this.go,onKeyUp:this.go},Le)),Lt=y.createElement("div",{className:"".concat(Xt,"-quick-jumper")},wt.jump_to,y.createElement("input",{disabled:St,type:"text",value:fn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":wt.page}),wt.page,ze)),y.createElement("li",{className:"".concat(Xt)},Rt,Lt)}}]),qe}(y.Component);G.defaultProps={pageSizeOptions:["10","20","50","100"]};var z=G,K=o(83651);function re(){}function ne(Fe){var Qe=Number(Fe);return typeof Qe=="number"&&!isNaN(Qe)&&isFinite(Qe)&&Math.floor(Qe)===Qe}function Q(Fe,Qe,qe){return qe}function ue(Fe,Qe,qe){var et=typeof Fe=="undefined"?Qe.pageSize:Fe;return Math.floor((qe.total-1)/et)+1}var he=function(Fe){(0,W.Z)(qe,Fe);var Qe=(0,U.Z)(qe);function qe(et){var dt;(0,D.Z)(this,qe),dt=Qe.call(this,et),dt.getJumpPrevPage=function(){return Math.max(1,dt.state.current-(dt.props.showLessItems?3:5))},dt.getJumpNextPage=function(){return Math.min(ue(void 0,dt.state,dt.props),dt.state.current+(dt.props.showLessItems?3:5))},dt.getItemIcon=function(gt,it){var Le=dt.props.prefixCls,ct=gt||y.createElement("button",{type:"button","aria-label":it,className:"".concat(Le,"-item-link")});return typeof gt=="function"&&(ct=y.createElement(gt,(0,A.Z)({},dt.props))),ct},dt.savePaginationNode=function(gt){dt.paginationNode=gt},dt.isValid=function(gt){var it=dt.props.total;return ne(gt)&>!==dt.state.current&&ne(it)&&it>0},dt.shouldDisplayQuickJumper=function(){var gt=dt.props,it=gt.showQuickJumper,Le=gt.total,ct=dt.state.pageSize;return Le<=ct?!1:it},dt.handleKeyDown=function(gt){(gt.keyCode===$.ARROW_UP||gt.keyCode===$.ARROW_DOWN)&>.preventDefault()},dt.handleKeyUp=function(gt){var it=dt.getValidValue(gt),Le=dt.state.currentInputValue;it!==Le&&dt.setState({currentInputValue:it}),gt.keyCode===$.ENTER?dt.handleChange(it):gt.keyCode===$.ARROW_UP?dt.handleChange(it-1):gt.keyCode===$.ARROW_DOWN&&dt.handleChange(it+1)},dt.handleBlur=function(gt){var it=dt.getValidValue(gt);dt.handleChange(it)},dt.changePageSize=function(gt){var it=dt.state.current,Le=ue(gt,dt.state,dt.props);it=it>Le?Le:it,Le===0&&(it=dt.state.current),typeof gt=="number"&&("pageSize"in dt.props||dt.setState({pageSize:gt}),"current"in dt.props||dt.setState({current:it,currentInputValue:it})),dt.props.onShowSizeChange(it,gt),"onChange"in dt.props&&dt.props.onChange&&dt.props.onChange(it,gt)},dt.handleChange=function(gt){var it=dt.props,Le=it.disabled,ct=it.onChange,at=dt.state,jt=at.pageSize,St=at.current,fn=at.currentInputValue;if(dt.isValid(gt)&&!Le){var Xt=ue(void 0,dt.state,dt.props),Yt=gt;return gt>Xt?Yt=Xt:gt<1&&(Yt=1),"current"in dt.props||dt.setState({current:Yt}),Yt!==fn&&dt.setState({currentInputValue:Yt}),ct(Yt,jt),Yt}return St},dt.prev=function(){dt.hasPrev()&&dt.handleChange(dt.state.current-1)},dt.next=function(){dt.hasNext()&&dt.handleChange(dt.state.current+1)},dt.jumpPrev=function(){dt.handleChange(dt.getJumpPrevPage())},dt.jumpNext=function(){dt.handleChange(dt.getJumpNextPage())},dt.hasPrev=function(){return dt.state.current>1},dt.hasNext=function(){return dt.state.current<ue(void 0,dt.state,dt.props)},dt.runIfEnter=function(gt,it){if(gt.key==="Enter"||gt.charCode===13){for(var Le=arguments.length,ct=new Array(Le>2?Le-2:0),at=2;at<Le;at++)ct[at-2]=arguments[at];it.apply(void 0,ct)}},dt.runIfEnterPrev=function(gt){dt.runIfEnter(gt,dt.prev)},dt.runIfEnterNext=function(gt){dt.runIfEnter(gt,dt.next)},dt.runIfEnterJumpPrev=function(gt){dt.runIfEnter(gt,dt.jumpPrev)},dt.runIfEnterJumpNext=function(gt){dt.runIfEnter(gt,dt.jumpNext)},dt.handleGoTO=function(gt){(gt.keyCode===$.ENTER||gt.type==="click")&&dt.handleChange(dt.state.currentInputValue)};var Ke=et.onChange!==re,Ge="current"in et;Ge&&!Ke&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var wt=et.defaultCurrent;"current"in et&&(wt=et.current);var Vt=et.defaultPageSize;return"pageSize"in et&&(Vt=et.pageSize),wt=Math.min(wt,ue(Vt,void 0,et)),dt.state={current:wt,currentInputValue:wt,pageSize:Vt},dt}return(0,Z.Z)(qe,[{key:"componentDidUpdate",value:function(dt,Ke){var Ge=this.props.prefixCls;if(Ke.current!==this.state.current&&this.paginationNode){var wt=this.paginationNode.querySelector(".".concat(Ge,"-item-").concat(Ke.current));wt&&document.activeElement===wt&&wt.blur()}}},{key:"getValidValue",value:function(dt){var Ke=dt.target.value,Ge=ue(void 0,this.state,this.props),wt=this.state.currentInputValue,Vt;return Ke===""?Vt=Ke:isNaN(Number(Ke))?Vt=wt:Ke>=Ge?Vt=Ge:Vt=Number(Ke),Vt}},{key:"getShowSizeChanger",value:function(){var dt=this.props,Ke=dt.showSizeChanger,Ge=dt.total,wt=dt.totalBoundaryShowSizeChanger;return typeof Ke!="undefined"?Ke:Ge>wt}},{key:"renderPrev",value:function(dt){var Ke=this.props,Ge=Ke.prevIcon,wt=Ke.itemRender,Vt=wt(dt,"prev",this.getItemIcon(Ge,"prev page")),gt=!this.hasPrev();return(0,y.isValidElement)(Vt)?(0,y.cloneElement)(Vt,{disabled:gt}):Vt}},{key:"renderNext",value:function(dt){var Ke=this.props,Ge=Ke.nextIcon,wt=Ke.itemRender,Vt=wt(dt,"next",this.getItemIcon(Ge,"next page")),gt=!this.hasNext();return(0,y.isValidElement)(Vt)?(0,y.cloneElement)(Vt,{disabled:gt}):Vt}},{key:"render",value:function(){var dt=this,Ke=this.props,Ge=Ke.prefixCls,wt=Ke.className,Vt=Ke.style,gt=Ke.disabled,it=Ke.hideOnSinglePage,Le=Ke.total,ct=Ke.locale,at=Ke.showQuickJumper,jt=Ke.showLessItems,St=Ke.showTitle,fn=Ke.showTotal,Xt=Ke.simple,Yt=Ke.itemRender,Rt=Ke.showPrevNextJumpers,Lt=Ke.jumpPrevIcon,ze=Ke.jumpNextIcon,rt=Ke.selectComponentClass,tt=Ke.selectPrefixCls,de=Ke.pageSizeOptions,ot=this.state,Et=ot.current,Ht=ot.pageSize,Jt=ot.currentInputValue;if(it===!0&&Le<=Ht)return null;var Qt=ue(void 0,this.state,this.props),an=[],Un=null,qt=null,rn=null,cn=null,er=null,rr=at&&at.goButton,nt=jt?1:2,lr=Et-1>0?Et-1:0,Hn=Et+1<Qt?Et+1:Qt,ut=Object.keys(this.props).reduce(function(Zt,zt){return(zt.substr(0,5)==="data-"||zt.substr(0,5)==="aria-"||zt==="role")&&(Zt[zt]=dt.props[zt]),Zt},{}),bt=fn&&y.createElement("li",{className:"".concat(Ge,"-total-text")},fn(Le,[Le===0?0:(Et-1)*Ht+1,Et*Ht>Le?Le:Et*Ht]));if(Xt)return rr&&(typeof rr=="boolean"?er=y.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ct.jump_to_confirm):er=y.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},rr),er=y.createElement("li",{title:St?"".concat(ct.jump_to).concat(Et,"/").concat(Qt):null,className:"".concat(Ge,"-simple-pager")},er)),y.createElement("ul",(0,g.Z)({className:F()(Ge,"".concat(Ge,"-simple"),(0,x.Z)({},"".concat(Ge,"-disabled"),gt),wt),style:Vt,ref:this.savePaginationNode},ut),bt,y.createElement("li",{title:St?ct.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:F()("".concat(Ge,"-prev"),(0,x.Z)({},"".concat(Ge,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(lr)),y.createElement("li",{title:St?"".concat(Et,"/").concat(Qt):null,className:"".concat(Ge,"-simple-pager")},y.createElement("input",{type:"text",value:Jt,disabled:gt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:"3"}),y.createElement("span",{className:"".concat(Ge,"-slash")},"/"),Qt),y.createElement("li",{title:St?ct.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:F()("".concat(Ge,"-next"),(0,x.Z)({},"".concat(Ge,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Hn)),er);if(Qt<=3+nt*2){var We={locale:ct,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:St,itemRender:Yt};Qt||an.push(y.createElement(V,(0,g.Z)({},We,{key:"noPager",page:1,className:"".concat(Ge,"-item-disabled")})));for(var be=1;be<=Qt;be+=1){var Ae=Et===be;an.push(y.createElement(V,(0,g.Z)({},We,{key:be,page:be,active:Ae})))}}else{var Ue=jt?ct.prev_3:ct.prev_5,$e=jt?ct.next_3:ct.next_5;Rt&&(Un=y.createElement("li",{title:St?Ue:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:F()("".concat(Ge,"-jump-prev"),(0,x.Z)({},"".concat(Ge,"-jump-prev-custom-icon"),!!Lt))},Yt(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Lt,"prev page"))),qt=y.createElement("li",{title:St?$e:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:F()("".concat(Ge,"-jump-next"),(0,x.Z)({},"".concat(Ge,"-jump-next-custom-icon"),!!ze))},Yt(this.getJumpNextPage(),"jump-next",this.getItemIcon(ze,"next page")))),cn=y.createElement(V,{locale:ct,last:!0,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Qt,page:Qt,active:!1,showTitle:St,itemRender:Yt}),rn=y.createElement(V,{locale:ct,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:St,itemRender:Yt});var kt=Math.max(1,Et-nt),lt=Math.min(Et+nt,Qt);Et-1<=nt&&(lt=1+nt*2),Qt-Et<=nt&&(kt=Qt-nt*2);for(var vt=kt;vt<=lt;vt+=1){var Ct=Et===vt;an.push(y.createElement(V,{locale:ct,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:vt,page:vt,active:Ct,showTitle:St,itemRender:Yt}))}Et-1>=nt*2&&Et!==1+2&&(an[0]=(0,y.cloneElement)(an[0],{className:"".concat(Ge,"-item-after-jump-prev")}),an.unshift(Un)),Qt-Et>=nt*2&&Et!==Qt-2&&(an[an.length-1]=(0,y.cloneElement)(an[an.length-1],{className:"".concat(Ge,"-item-before-jump-next")}),an.push(qt)),kt!==1&&an.unshift(rn),lt!==Qt&&an.push(cn)}var Bt=!this.hasPrev()||!Qt,mt=!this.hasNext()||!Qt;return y.createElement("ul",(0,g.Z)({className:F()(Ge,wt,(0,x.Z)({},"".concat(Ge,"-disabled"),gt)),style:Vt,ref:this.savePaginationNode},ut),bt,y.createElement("li",{title:St?ct.prev_page:null,onClick:this.prev,tabIndex:Bt?null:0,onKeyPress:this.runIfEnterPrev,className:F()("".concat(Ge,"-prev"),(0,x.Z)({},"".concat(Ge,"-disabled"),Bt)),"aria-disabled":Bt},this.renderPrev(lr)),an,y.createElement("li",{title:St?ct.next_page:null,onClick:this.next,tabIndex:mt?null:0,onKeyPress:this.runIfEnterNext,className:F()("".concat(Ge,"-next"),(0,x.Z)({},"".concat(Ge,"-disabled"),mt)),"aria-disabled":mt},this.renderNext(Hn)),y.createElement(z,{disabled:gt,locale:ct,rootPrefixCls:Ge,selectComponentClass:rt,selectPrefixCls:tt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Et,pageSize:Ht,pageSizeOptions:de,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:rr}))}}],[{key:"getDerivedStateFromProps",value:function(dt,Ke){var Ge={};if("current"in dt&&(Ge.current=dt.current,dt.current!==Ke.current&&(Ge.currentInputValue=Ge.current)),"pageSize"in dt&&dt.pageSize!==Ke.pageSize){var wt=Ke.current,Vt=ue(dt.pageSize,Ke,dt);wt=wt>Vt?Vt:wt,"current"in dt||(Ge.current=wt,Ge.currentInputValue=wt),Ge.pageSize=dt.pageSize}return Ge}}]),qe}(y.Component);he.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:re,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:re,locale:K.Z,style:{},itemRender:Q,totalBoundaryShowSizeChanger:50};var Ee=he,ce=o(71075),ve=o(9054),fe=o(31312),we=o(56701),me=o(90407),Pe=function(Qe){return y.createElement(me.Z,(0,g.Z)({},Qe,{size:"small"}))},pe=function(Qe){return y.createElement(me.Z,(0,g.Z)({},Qe,{size:"middle"}))};Pe.Option=me.Z.Option,pe.Option=me.Z.Option;var Ie=function(Fe,Qe){var qe={};for(var et in Fe)Object.prototype.hasOwnProperty.call(Fe,et)&&Qe.indexOf(et)<0&&(qe[et]=Fe[et]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,et=Object.getOwnPropertySymbols(Fe);dt<et.length;dt++)Qe.indexOf(et[dt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,et[dt])&&(qe[et[dt]]=Fe[et[dt]]);return qe},Je=function(Qe){var qe=Qe.prefixCls,et=Qe.selectPrefixCls,dt=Qe.className,Ke=Qe.size,Ge=Qe.locale,wt=Qe.selectComponentClass,Vt=Qe.responsive,gt=Qe.showSizeChanger,it=Ie(Qe,["prefixCls","selectPrefixCls","className","size","locale","selectComponentClass","responsive","showSizeChanger"]),Le=(0,fe.Z)(Vt),ct=Le.xs,at=y.useContext(ve.E_),jt=at.getPrefixCls,St=at.direction,fn=at.pagination,Xt=fn===void 0?{}:fn,Yt=jt("pagination",qe),Rt=gt!=null?gt:Xt.showSizeChanger,Lt=function(){var rt=y.createElement("span",{className:"".concat(Yt,"-item-ellipsis")},"\u2022\u2022\u2022"),tt=y.createElement("button",{className:"".concat(Yt,"-item-link"),type:"button",tabIndex:-1},y.createElement(S.Z,null)),de=y.createElement("button",{className:"".concat(Yt,"-item-link"),type:"button",tabIndex:-1},y.createElement(k.Z,null)),ot=y.createElement("a",{className:"".concat(Yt,"-item-link")},y.createElement("div",{className:"".concat(Yt,"-item-container")},y.createElement(v,{className:"".concat(Yt,"-item-link-icon")}),rt)),Et=y.createElement("a",{className:"".concat(Yt,"-item-link")},y.createElement("div",{className:"".concat(Yt,"-item-container")},y.createElement(p,{className:"".concat(Yt,"-item-link-icon")}),rt));if(St==="rtl"){var Ht=[de,tt];tt=Ht[0],de=Ht[1];var Jt=[Et,ot];ot=Jt[0],Et=Jt[1]}return{prevIcon:tt,nextIcon:de,jumpPrevIcon:ot,jumpNextIcon:Et}};return y.createElement(we.Z,{componentName:"Pagination",defaultLocale:ce.Z},function(ze){var rt,tt=(0,g.Z)((0,g.Z)({},ze),Ge),de=Ke==="small"||!!(ct&&!Ke&&Vt),ot=jt("select",et),Et=F()((rt={},(0,x.Z)(rt,"".concat(Yt,"-mini"),de),(0,x.Z)(rt,"".concat(Yt,"-rtl"),St==="rtl"),rt),dt);return y.createElement(Ee,(0,g.Z)({},Lt(),it,{prefixCls:Yt,selectPrefixCls:ot,className:Et,selectComponentClass:wt||(de?Pe:pe),locale:tt,showSizeChanger:Rt}))})},ke=Je,De=ke},91772:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(62259),y=o.n(A),M=o(97140)},7523:function(oe,N,o){"use strict";o.d(N,{Z:function(){return L}});var x=o(22122),g=o(28481),A=o(68855),y=o(35510),M=o.n(y),w=o(92866),m=o(18209),b=o(67294),v=o(9054),h=o(56466),d=o(75447),_=o(48429),p=o(17870),S=o(25769),k=o(56701),O=o(16980),F=o(95832),D=function($){var G=$.prefixCls,z=$.okButtonProps,K=$.cancelButtonProps,re=$.title,ne=$.cancelText,Q=$.okText,ue=$.okType,he=$.icon,Ee=$.showCancel,ce=Ee===void 0?!0:Ee,ve=$.close,fe=$.onConfirm,we=$.onCancel,me=b.useContext(v.E_),Pe=me.getPrefixCls;return b.createElement(k.Z,{componentName:"Popconfirm",defaultLocale:O.Z.Popconfirm},function(pe){return b.createElement("div",{className:"".concat(G,"-inner-content")},b.createElement("div",{className:"".concat(G,"-message")},he&&b.createElement("span",{className:"".concat(G,"-message-icon")},he),b.createElement("div",{className:"".concat(G,"-message-title")},(0,F.Z)(re))),b.createElement("div",{className:"".concat(G,"-buttons")},ce&&b.createElement(_.Z,(0,x.Z)({onClick:we,size:"small"},K),ne!=null?ne:pe.cancelText),b.createElement(S.Z,{buttonProps:(0,x.Z)((0,x.Z)({size:"small"},(0,p.n)(ue)),z),actionFn:fe,close:ve,prefixCls:Pe("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Q!=null?Q:pe.okText)))})},Z=void 0,W=function(V,$){var G={};for(var z in V)Object.prototype.hasOwnProperty.call(V,z)&&$.indexOf(z)<0&&(G[z]=V[z]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,z=Object.getOwnPropertySymbols(V);K<z.length;K++)$.indexOf(z[K])<0&&Object.prototype.propertyIsEnumerable.call(V,z[K])&&(G[z[K]]=V[z[K]]);return G},U=b.forwardRef(function(V,$){var G=V.prefixCls,z=V.placement,K=z===void 0?"top":z,re=V.trigger,ne=re===void 0?"click":re,Q=V.okType,ue=Q===void 0?"primary":Q,he=V.icon,Ee=he===void 0?b.createElement(A.Z,null):he,ce=V.children,ve=V.overlayClassName,fe=V.onOpenChange,we=V.onVisibleChange,me=W(V,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),Pe=b.useContext(v.E_),pe=Pe.getPrefixCls,Ie=(0,w.Z)(!1,{value:V.open!==void 0?V.open:V.visible,defaultValue:V.defaultOpen!==void 0?V.defaultOpen:V.defaultVisible}),Je=(0,g.Z)(Ie,2),ke=Je[0],De=Je[1],Fe=function(it,Le){De(it,!0),we==null||we(it,Le),fe==null||fe(it,Le)},Qe=function(it){Fe(!1,it)},qe=function(it){var Le;return(Le=V.onConfirm)===null||Le===void 0?void 0:Le.call(Z,it)},et=function(it){var Le;Fe(!1,it),(Le=V.onCancel)===null||Le===void 0||Le.call(Z,it)},dt=function(it){it.keyCode===m.Z.ESC&&ke&&Fe(!1,it)},Ke=function(it){var Le=V.disabled,ct=Le===void 0?!1:Le;ct||Fe(it)},Ge=pe("popover",G),wt=pe("popconfirm",G),Vt=M()(wt,ve);return b.createElement(h.Z,(0,x.Z)({},me,{trigger:ne,prefixCls:Ge,placement:K,onOpenChange:Ke,open:ke,ref:$,overlayClassName:Vt,_overlay:b.createElement(D,(0,x.Z)({okType:ue,icon:Ee},V,{prefixCls:Ge,close:Qe,onConfirm:qe,onCancel:et}))}),(0,d.Tm)(ce,{onKeyDown:function(it){var Le,ct;b.isValidElement(ce)&&((ct=ce==null?void 0:(Le=ce.props).onKeyDown)===null||ct===void 0||ct.call(Le,it)),dt(it)}}))}),L=U},43623:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(13753),y=o(34276),M=o(44887),w=o.n(M)},56466:function(oe,N,o){"use strict";var x=o(22122),g=o(67294),A=o(95832),y=o(31064),M=o(9054),w=o(95455),m=function(h,d){var _={};for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&d.indexOf(p)<0&&(_[p]=h[p]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,p=Object.getOwnPropertySymbols(h);S<p.length;S++)d.indexOf(p[S])<0&&Object.prototype.propertyIsEnumerable.call(h,p[S])&&(_[p[S]]=h[p[S]]);return _},b=function(d){var _=d.title,p=d.content,S=d.prefixCls;return g.createElement(g.Fragment,null,_&&g.createElement("div",{className:"".concat(S,"-title")},(0,A.Z)(_)),g.createElement("div",{className:"".concat(S,"-inner-content")},(0,A.Z)(p)))},v=g.forwardRef(function(h,d){var _=h.prefixCls,p=h.title,S=h.content,k=h._overlay,O=h.placement,F=O===void 0?"top":O,D=h.trigger,Z=D===void 0?"hover":D,W=h.mouseEnterDelay,U=W===void 0?.1:W,L=h.mouseLeaveDelay,V=L===void 0?.1:L,$=h.overlayStyle,G=$===void 0?{}:$,z=m(h,["prefixCls","title","content","_overlay","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),K=g.useContext(M.E_),re=K.getPrefixCls,ne=re("popover",_),Q=re(),ue=g.useMemo(function(){return k||(!p&&!S?null:g.createElement(b,{prefixCls:ne,title:p,content:S}))},[k,p,S,ne]);return g.createElement(w.Z,(0,x.Z)({placement:F,trigger:Z,mouseEnterDelay:U,mouseLeaveDelay:V,overlayStyle:G},z,{prefixCls:ne,ref:d,overlay:ue,transitionName:(0,y.mL)(Q,"zoom-big",z.transitionName)}))});N.Z=v},34276:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(31930),y=o.n(A)},45154:function(oe,N,o){"use strict";o.d(N,{Z:function(){return gt}});var x=o(96156),g=o(22122),A=o(38819),y=o(79508),M=o(43061),w=o(54549),m=o(35510),b=o.n(m),v=o(69252),h=o(67294),d=o(9054),_=o(4381),p=o(31040),S=o(28991),k=o(81253),O={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},F=function(){var Le=(0,h.useRef)([]),ct=(0,h.useRef)(null);return(0,h.useEffect)(function(){var at=Date.now(),jt=!1;Le.current.forEach(function(St){if(!!St){jt=!0;var fn=St.style;fn.transitionDuration=".3s, .3s, .3s, .06s",ct.current&&at-ct.current<100&&(fn.transitionDuration="0s, 0s")}}),jt&&(ct.current=Date.now())}),Le.current},D=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Z=function(Le){var ct=(0,S.Z)((0,S.Z)({},O),Le),at=ct.className,jt=ct.percent,St=ct.prefixCls,fn=ct.strokeColor,Xt=ct.strokeLinecap,Yt=ct.strokeWidth,Rt=ct.style,Lt=ct.trailColor,ze=ct.trailWidth,rt=ct.transition,tt=(0,k.Z)(ct,D);delete tt.gapPosition;var de=Array.isArray(jt)?jt:[jt],ot=Array.isArray(fn)?fn:[fn],Et=F(),Ht=Yt/2,Jt=100-Yt/2,Qt="M ".concat(Xt==="round"?Ht:0,",").concat(Ht,`
|
||
L `).concat(Xt==="round"?Jt:100,",").concat(Ht),an="0 0 100 ".concat(Yt),Un=0;return h.createElement("svg",(0,g.Z)({className:b()("".concat(St,"-line"),at),viewBox:an,preserveAspectRatio:"none",style:Rt},tt),h.createElement("path",{className:"".concat(St,"-line-trail"),d:Qt,strokeLinecap:Xt,stroke:Lt,strokeWidth:ze||Yt,fillOpacity:"0"}),de.map(function(qt,rn){var cn=1;switch(Xt){case"round":cn=1-Yt/100;break;case"square":cn=1-Yt/2/100;break;default:cn=1;break}var er={strokeDasharray:"".concat(qt*cn,"px, 100px"),strokeDashoffset:"-".concat(Un,"px"),transition:rt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},rr=ot[rn]||ot[ot.length-1];return Un+=qt,h.createElement("path",{key:rn,className:"".concat(St,"-line-path"),d:Qt,strokeLinecap:Xt,stroke:rr,strokeWidth:Yt,fillOpacity:"0",ref:function(lr){Et[rn]=lr},style:er})}))},W=Z,U=o(90484),L=o(28481);function V(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var $=0,G=V();function z(){var it;return G?(it=$,$+=1):it="TEST_OR_SSR",it}var K=function(it){var Le=h.useState(),ct=(0,L.Z)(Le,2),at=ct[0],jt=ct[1];return h.useEffect(function(){jt("rc_progress_".concat(z()))},[]),it||at},re=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ne(it){return+it.replace("%","")}function Q(it){var Le=it!=null?it:[];return Array.isArray(Le)?Le:[Le]}var ue=100,he=function(Le,ct,at,jt,St,fn,Xt,Yt,Rt,Lt){var ze=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,rt=at/100*360*((360-fn)/360),tt=fn===0?0:{bottom:0,top:180,left:90,right:-90}[Xt],de=(100-jt)/100*ct;return Rt==="round"&&jt!==100&&(de+=Lt/2,de>=ct&&(de=ct-.01)),{stroke:typeof Yt=="string"?Yt:void 0,strokeDasharray:"".concat(ct,"px ").concat(Le),strokeDashoffset:de+ze,transform:"rotate(".concat(St+rt+tt,"deg)"),transformOrigin:"0 0",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Ee=function(Le){var ct=(0,S.Z)((0,S.Z)({},O),Le),at=ct.id,jt=ct.prefixCls,St=ct.steps,fn=ct.strokeWidth,Xt=ct.trailWidth,Yt=ct.gapDegree,Rt=Yt===void 0?0:Yt,Lt=ct.gapPosition,ze=ct.trailColor,rt=ct.strokeLinecap,tt=ct.style,de=ct.className,ot=ct.strokeColor,Et=ct.percent,Ht=(0,k.Z)(ct,re),Jt=K(at),Qt="".concat(Jt,"-gradient"),an=ue/2-fn/2,Un=Math.PI*2*an,qt=Rt>0?90+Rt/2:-90,rn=Un*((360-Rt)/360),cn=(0,U.Z)(St)==="object"?St:{count:St,space:2},er=cn.count,rr=cn.space,nt=he(Un,rn,0,100,qt,Rt,Lt,ze,rt,fn),lr=Q(Et),Hn=Q(ot),ut=Hn.find(function(Ae){return Ae&&(0,U.Z)(Ae)==="object"}),bt=F(),We=function(){var Ue=0;return lr.map(function($e,kt){var lt=Hn[kt]||Hn[Hn.length-1],vt=lt&&(0,U.Z)(lt)==="object"?"url(#".concat(Qt,")"):void 0,Ct=he(Un,rn,Ue,$e,qt,Rt,Lt,lt,rt,fn);return Ue+=$e,h.createElement("circle",{key:kt,className:"".concat(jt,"-circle-path"),r:an,cx:0,cy:0,stroke:vt,strokeLinecap:rt,strokeWidth:fn,opacity:$e===0?0:1,style:Ct,ref:function(mt){bt[kt]=mt}})}).reverse()},be=function(){var Ue=Math.round(er*(lr[0]/100)),$e=100/er,kt=0;return new Array(er).fill(null).map(function(lt,vt){var Ct=vt<=Ue-1?Hn[0]:ze,Bt=Ct&&(0,U.Z)(Ct)==="object"?"url(#".concat(Qt,")"):void 0,mt=he(Un,rn,kt,$e,qt,Rt,Lt,Ct,"butt",fn,rr);return kt+=(rn-mt.strokeDashoffset+rr)*100/rn,h.createElement("circle",{key:vt,className:"".concat(jt,"-circle-path"),r:an,cx:0,cy:0,stroke:Bt,strokeWidth:fn,opacity:1,style:mt,ref:function(zt){bt[vt]=zt}})})};return h.createElement("svg",(0,g.Z)({className:b()("".concat(jt,"-circle"),de),viewBox:"".concat(-ue/2," ").concat(-ue/2," ").concat(ue," ").concat(ue),style:tt,id:at,role:"presentation"},Ht),ut&&h.createElement("defs",null,h.createElement("linearGradient",{id:Qt,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(ut).sort(function(Ae,Ue){return ne(Ae)-ne(Ue)}).map(function(Ae,Ue){return h.createElement("stop",{key:Ue,offset:Ae,stopColor:ut[Ae]})}))),!er&&h.createElement("circle",{className:"".concat(jt,"-circle-trail"),r:an,cx:0,cy:0,stroke:ze,strokeLinecap:rt,strokeWidth:Xt||fn,style:nt}),er?be():We())},ce=Ee,ve={Line:W,Circle:ce};function fe(it){return!it||it<0?0:it>100?100:it}function we(it){var Le=it.success,ct=it.successPercent,at=ct;return Le&&"progress"in Le&&(at=Le.progress),Le&&"percent"in Le&&(at=Le.percent),at}function me(it){var Le=it.percent,ct=it.success,at=it.successPercent,jt=fe(we({success:ct,successPercent:at}));return[jt,fe(fe(Le)-jt)]}function Pe(it){var Le=it.success,ct=Le===void 0?{}:Le,at=it.strokeColor,jt=ct.strokeColor;return[jt||p.presetPrimaryColors.green,at||null]}var pe=function(Le){var ct=Le.prefixCls,at=Le.width,jt=Le.strokeWidth,St=Le.trailColor,fn=St===void 0?null:St,Xt=Le.strokeLinecap,Yt=Xt===void 0?"round":Xt,Rt=Le.gapPosition,Lt=Le.gapDegree,ze=Le.type,rt=Le.children,tt=Le.success,de=at||120,ot={width:de,height:de,fontSize:de*.15+6},Et=jt||6,Ht=Rt||ze==="dashboard"&&"bottom"||void 0,Jt=function(){if(Lt||Lt===0)return Lt;if(ze==="dashboard")return 75},Qt=Object.prototype.toString.call(Le.strokeColor)==="[object Object]",an=Pe({success:tt,strokeColor:Le.strokeColor}),Un=b()("".concat(ct,"-inner"),(0,x.Z)({},"".concat(ct,"-circle-gradient"),Qt));return h.createElement("div",{className:Un,style:ot},h.createElement(ce,{percent:me(Le),strokeWidth:Et,trailWidth:Et,strokeColor:an,strokeLinecap:Yt,trailColor:fn,prefixCls:ct,gapDegree:Jt(),gapPosition:Ht}),rt)},Ie=pe,Je=function(it,Le){var ct={};for(var at in it)Object.prototype.hasOwnProperty.call(it,at)&&Le.indexOf(at)<0&&(ct[at]=it[at]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,at=Object.getOwnPropertySymbols(it);jt<at.length;jt++)Le.indexOf(at[jt])<0&&Object.prototype.propertyIsEnumerable.call(it,at[jt])&&(ct[at[jt]]=it[at[jt]]);return ct},ke=function(Le){var ct=[];return Object.keys(Le).forEach(function(at){var jt=parseFloat(at.replace(/%/g,""));isNaN(jt)||ct.push({key:jt,value:Le[at]})}),ct=ct.sort(function(at,jt){return at.key-jt.key}),ct.map(function(at){var jt=at.key,St=at.value;return"".concat(St," ").concat(jt,"%")}).join(", ")},De=function(Le,ct){var at=Le.from,jt=at===void 0?p.presetPrimaryColors.blue:at,St=Le.to,fn=St===void 0?p.presetPrimaryColors.blue:St,Xt=Le.direction,Yt=Xt===void 0?ct==="rtl"?"to left":"to right":Xt,Rt=Je(Le,["from","to","direction"]);if(Object.keys(Rt).length!==0){var Lt=ke(Rt);return{backgroundImage:"linear-gradient(".concat(Yt,", ").concat(Lt,")")}}return{backgroundImage:"linear-gradient(".concat(Yt,", ").concat(jt,", ").concat(fn,")")}},Fe=function(Le){var ct=Le.prefixCls,at=Le.direction,jt=Le.percent,St=Le.strokeWidth,fn=Le.size,Xt=Le.strokeColor,Yt=Le.strokeLinecap,Rt=Yt===void 0?"round":Yt,Lt=Le.children,ze=Le.trailColor,rt=ze===void 0?null:ze,tt=Le.success,de=Xt&&typeof Xt!="string"?De(Xt,at):{background:Xt},ot=Rt==="square"||Rt==="butt"?0:void 0,Et={backgroundColor:rt||void 0,borderRadius:ot},Ht=(0,g.Z)({width:"".concat(fe(jt),"%"),height:St||(fn==="small"?6:8),borderRadius:ot},de),Jt=we(Le),Qt={width:"".concat(fe(Jt),"%"),height:St||(fn==="small"?6:8),borderRadius:ot,backgroundColor:tt==null?void 0:tt.strokeColor},an=Jt!==void 0?h.createElement("div",{className:"".concat(ct,"-success-bg"),style:Qt}):null;return h.createElement(h.Fragment,null,h.createElement("div",{className:"".concat(ct,"-outer")},h.createElement("div",{className:"".concat(ct,"-inner"),style:Et},h.createElement("div",{className:"".concat(ct,"-bg"),style:Ht}),an)),Lt)},Qe=Fe,qe=function(Le){for(var ct=Le.size,at=Le.steps,jt=Le.percent,St=jt===void 0?0:jt,fn=Le.strokeWidth,Xt=fn===void 0?8:fn,Yt=Le.strokeColor,Rt=Le.trailColor,Lt=Rt===void 0?null:Rt,ze=Le.prefixCls,rt=Le.children,tt=Math.round(at*(St/100)),de=ct==="small"?2:14,ot=new Array(at),Et=0;Et<at;Et++){var Ht=Array.isArray(Yt)?Yt[Et]:Yt;ot[Et]=h.createElement("div",{key:Et,className:b()("".concat(ze,"-steps-item"),(0,x.Z)({},"".concat(ze,"-steps-item-active"),Et<=tt-1)),style:{backgroundColor:Et<=tt-1?Ht:Lt,width:de,height:Xt}})}return h.createElement("div",{className:"".concat(ze,"-steps-outer")},ot,rt)},et=qe,dt=function(it,Le){var ct={};for(var at in it)Object.prototype.hasOwnProperty.call(it,at)&&Le.indexOf(at)<0&&(ct[at]=it[at]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,at=Object.getOwnPropertySymbols(it);jt<at.length;jt++)Le.indexOf(at[jt])<0&&Object.prototype.propertyIsEnumerable.call(it,at[jt])&&(ct[at[jt]]=it[at[jt]]);return ct},Ke=(0,_.b)("line","circle","dashboard"),Ge=(0,_.b)("normal","exception","active","success"),wt=function(Le){var ct,at=Le.prefixCls,jt=Le.className,St=Le.steps,fn=Le.strokeColor,Xt=Le.percent,Yt=Xt===void 0?0:Xt,Rt=Le.size,Lt=Rt===void 0?"default":Rt,ze=Le.showInfo,rt=ze===void 0?!0:ze,tt=Le.type,de=tt===void 0?"line":tt,ot=dt(Le,["prefixCls","className","steps","strokeColor","percent","size","showInfo","type"]);function Et(){var Hn=we(Le);return parseInt(Hn!==void 0?Hn.toString():Yt.toString(),10)}function Ht(){var Hn=Le.status;return!Ge.includes(Hn)&&Et()>=100?"success":Hn||"normal"}function Jt(Hn,ut){var bt=Le.format,We=we(Le);if(!rt)return null;var be,Ae=bt||function($e){return"".concat($e,"%")},Ue=de==="line";return bt||ut!=="exception"&&ut!=="success"?be=Ae(fe(Yt),fe(We)):ut==="exception"?be=Ue?h.createElement(M.Z,null):h.createElement(w.Z,null):ut==="success"&&(be=Ue?h.createElement(A.Z,null):h.createElement(y.Z,null)),h.createElement("span",{className:"".concat(Hn,"-text"),title:typeof be=="string"?be:void 0},be)}var Qt=h.useContext(d.E_),an=Qt.getPrefixCls,Un=Qt.direction,qt=an("progress",at),rn=Ht(),cn=Jt(qt,rn),er=Array.isArray(fn)?fn[0]:fn,rr=typeof fn=="string"||Array.isArray(fn)?fn:void 0,nt;de==="line"?nt=St?h.createElement(et,(0,g.Z)({},Le,{strokeColor:rr,prefixCls:qt,steps:St}),cn):h.createElement(Qe,(0,g.Z)({},Le,{strokeColor:er,prefixCls:qt,direction:Un}),cn):(de==="circle"||de==="dashboard")&&(nt=h.createElement(Ie,(0,g.Z)({},Le,{strokeColor:er,prefixCls:qt,progressStatus:rn}),cn));var lr=b()(qt,(ct={},(0,x.Z)(ct,"".concat(qt,"-").concat(de==="dashboard"&&"circle"||St&&"steps"||de),!0),(0,x.Z)(ct,"".concat(qt,"-status-").concat(rn),!0),(0,x.Z)(ct,"".concat(qt,"-show-info"),rt),(0,x.Z)(ct,"".concat(qt,"-").concat(Lt),Lt),(0,x.Z)(ct,"".concat(qt,"-rtl"),Un==="rtl"),ct),jt);return h.createElement("div",(0,g.Z)({},(0,v.Z)(ot,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"]),{className:lr,role:"progressbar"}),nt)},Vt=wt,gt=Vt},55939:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(70350),y=o.n(A)},32620:function(oe,N,o){"use strict";o.d(N,{ZP:function(){return Q}});var x=o(22122),g=o(96156),A=o(28481),y=o(35510),M=o.n(y),w=o(92866),m=o(67294),b=o(9054),v=o(10772),h=o(42476),d=m.createContext(null),_=d.Provider,p=d,S=m.createContext(null),k=S.Provider,O=o(96676),F=o(99182),D=o(99469),Z=o(27495),W=function(ue,he){var Ee={};for(var ce in ue)Object.prototype.hasOwnProperty.call(ue,ce)&&he.indexOf(ce)<0&&(Ee[ce]=ue[ce]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,ce=Object.getOwnPropertySymbols(ue);ve<ce.length;ve++)he.indexOf(ce[ve])<0&&Object.prototype.propertyIsEnumerable.call(ue,ce[ve])&&(Ee[ce[ve]]=ue[ce[ve]]);return Ee},U=function(he,Ee){var ce,ve=m.useContext(p),fe=m.useContext(S),we=m.useContext(b.E_),me=we.getPrefixCls,Pe=we.direction,pe=m.useRef(),Ie=(0,F.sQ)(Ee,pe),Je=(0,m.useContext)(Z.aM),ke=Je.isFormItemInput,De=function(ct){var at,jt;(at=he.onChange)===null||at===void 0||at.call(he,ct),(jt=ve==null?void 0:ve.onChange)===null||jt===void 0||jt.call(ve,ct)},Fe=he.prefixCls,Qe=he.className,qe=he.children,et=he.style,dt=he.disabled,Ke=W(he,["prefixCls","className","children","style","disabled"]),Ge=me("radio",Fe),wt=((ve==null?void 0:ve.optionType)||fe)==="button"?"".concat(Ge,"-button"):Ge,Vt=(0,x.Z)({},Ke),gt=m.useContext(D.Z);Vt.disabled=dt||gt,ve&&(Vt.name=ve.name,Vt.onChange=De,Vt.checked=he.value===ve.value,Vt.disabled=Vt.disabled||ve.disabled);var it=M()("".concat(wt,"-wrapper"),(ce={},(0,g.Z)(ce,"".concat(wt,"-wrapper-checked"),Vt.checked),(0,g.Z)(ce,"".concat(wt,"-wrapper-disabled"),Vt.disabled),(0,g.Z)(ce,"".concat(wt,"-wrapper-rtl"),Pe==="rtl"),(0,g.Z)(ce,"".concat(wt,"-wrapper-in-form-item"),ke),ce),Qe);return m.createElement("label",{className:it,style:et,onMouseEnter:he.onMouseEnter,onMouseLeave:he.onMouseLeave},m.createElement(O.Z,(0,x.Z)({},Vt,{type:"radio",prefixCls:wt,ref:Ie})),qe!==void 0?m.createElement("span",null,qe):null)},L=m.forwardRef(U),V=L,$=m.forwardRef(function(ue,he){var Ee,ce=m.useContext(b.E_),ve=ce.getPrefixCls,fe=ce.direction,we=m.useContext(v.Z),me=(0,w.Z)(ue.defaultValue,{value:ue.value}),Pe=(0,A.Z)(me,2),pe=Pe[0],Ie=Pe[1],Je=function(Rt){var Lt=pe,ze=Rt.target.value;"value"in ue||Ie(ze);var rt=ue.onChange;rt&&ze!==Lt&&rt(Rt)},ke=ue.prefixCls,De=ue.className,Fe=De===void 0?"":De,Qe=ue.options,qe=ue.buttonStyle,et=qe===void 0?"outline":qe,dt=ue.disabled,Ke=ue.children,Ge=ue.size,wt=ue.style,Vt=ue.id,gt=ue.onMouseEnter,it=ue.onMouseLeave,Le=ue.onFocus,ct=ue.onBlur,at=ve("radio",ke),jt="".concat(at,"-group"),St=Ke;Qe&&Qe.length>0&&(St=Qe.map(function(Yt){return typeof Yt=="string"||typeof Yt=="number"?m.createElement(V,{key:Yt.toString(),prefixCls:at,disabled:dt,value:Yt,checked:pe===Yt},Yt):m.createElement(V,{key:"radio-group-value-options-".concat(Yt.value),prefixCls:at,disabled:Yt.disabled||dt,value:Yt.value,checked:pe===Yt.value,style:Yt.style},Yt.label)}));var fn=Ge||we,Xt=M()(jt,"".concat(jt,"-").concat(et),(Ee={},(0,g.Z)(Ee,"".concat(jt,"-").concat(fn),fn),(0,g.Z)(Ee,"".concat(jt,"-rtl"),fe==="rtl"),Ee),Fe);return m.createElement("div",(0,x.Z)({},(0,h.Z)(ue),{className:Xt,style:wt,onMouseEnter:gt,onMouseLeave:it,onFocus:Le,onBlur:ct,id:Vt,ref:he}),m.createElement(_,{value:{onChange:Je,value:pe,disabled:ue.disabled,name:ue.name,optionType:ue.optionType}},St))}),G=m.memo($),z=function(ue,he){var Ee={};for(var ce in ue)Object.prototype.hasOwnProperty.call(ue,ce)&&he.indexOf(ce)<0&&(Ee[ce]=ue[ce]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,ce=Object.getOwnPropertySymbols(ue);ve<ce.length;ve++)he.indexOf(ce[ve])<0&&Object.prototype.propertyIsEnumerable.call(ue,ce[ve])&&(Ee[ce[ve]]=ue[ce[ve]]);return Ee},K=function(he,Ee){var ce=m.useContext(b.E_),ve=ce.getPrefixCls,fe=he.prefixCls,we=z(he,["prefixCls"]),me=ve("radio",fe);return m.createElement(k,{value:"button"},m.createElement(V,(0,x.Z)({prefixCls:me},we,{type:"radio",ref:Ee})))},re=m.forwardRef(K),ne=V;ne.Button=re,ne.Group=G,ne.__ANT_RADIO=!0;var Q=ne},90140:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(44943),y=o.n(A)},55419:function(oe,N,o){"use strict";o.d(N,{ZP:function(){return K}});var x=o(96156),g=o(38819),A=o(43061),y=o(68855),M=o(28991),w=o(67294),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},b=m,v=o(27029),h=function(ne,Q){return w.createElement(v.Z,(0,M.Z)((0,M.Z)({},ne),{},{ref:Q,icon:b}))};h.displayName="WarningFilled";var d=w.forwardRef(h),_=o(35510),p=o.n(_),S=o(9054),k=function(){return w.createElement("svg",{width:"252",height:"294"},w.createElement("defs",null,w.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),w.createElement("g",{fill:"none",fillRule:"evenodd"},w.createElement("g",{transform:"translate(0 .012)"},w.createElement("mask",{fill:"#fff"}),w.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),w.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),w.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),w.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),w.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),w.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),w.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),w.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),w.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),w.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),w.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"}),w.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),w.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),w.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),w.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),w.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),w.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),w.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),w.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),w.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),w.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),w.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),w.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),w.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),w.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),w.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),w.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),w.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),w.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),w.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),w.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),w.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),w.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),w.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),w.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),w.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),w.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),w.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),w.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),w.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),w.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),w.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"})))},O=k,F=function(){return w.createElement("svg",{width:"254",height:"294"},w.createElement("defs",null,w.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),w.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),w.createElement("g",{fill:"none",fillRule:"evenodd"},w.createElement("g",{transform:"translate(0 .067)"},w.createElement("mask",{fill:"#fff"}),w.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),w.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),w.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),w.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),w.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),w.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),w.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),w.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),w.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),w.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),w.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),w.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),w.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),w.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),w.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),w.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),w.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),w.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),w.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),w.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),w.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),w.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),w.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),w.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),w.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),w.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),w.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),w.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),w.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),w.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),w.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),w.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),w.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),w.createElement("mask",{fill:"#fff"}),w.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),w.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),w.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),w.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),w.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),w.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),w.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),w.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),w.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),w.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),w.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"})))},D=F,Z=function(){return w.createElement("svg",{width:"251",height:"294"},w.createElement("g",{fill:"none",fillRule:"evenodd"},w.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),w.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),w.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),w.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),w.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),w.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),w.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),w.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),w.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),w.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),w.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),w.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),w.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),w.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),w.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),w.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),w.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),w.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),w.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),w.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),w.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),w.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),w.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),w.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),w.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),w.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),w.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),w.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),w.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),w.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),w.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),w.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),w.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),w.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),w.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),w.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),w.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),w.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),w.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})))},W=Z,U={success:g.Z,error:A.Z,info:y.Z,warning:d},L={"404":O,"500":D,"403":W},V=Object.keys(L),$=function(ne){var Q=ne.prefixCls,ue=ne.icon,he=ne.status,Ee=p()("".concat(Q,"-icon"));if(V.includes("".concat(he))){var ce=L[he];return w.createElement("div",{className:"".concat(Ee," ").concat(Q,"-image")},w.createElement(ce,null))}var ve=w.createElement(U[he]);return ue===null||ue===!1?null:w.createElement("div",{className:Ee},ue||ve)},G=function(ne){var Q=ne.prefixCls,ue=ne.extra;return ue?w.createElement("div",{className:"".concat(Q,"-extra")},ue):null},z=function(ne){var Q=ne.prefixCls,ue=ne.className,he=ne.subTitle,Ee=ne.title,ce=ne.style,ve=ne.children,fe=ne.status,we=fe===void 0?"info":fe,me=ne.icon,Pe=ne.extra,pe=w.useContext(S.E_),Ie=pe.getPrefixCls,Je=pe.direction,ke=Ie("result",Q),De=p()(ke,"".concat(ke,"-").concat(we),ue,(0,x.Z)({},"".concat(ke,"-rtl"),Je==="rtl"));return w.createElement("div",{className:De,style:ce},w.createElement($,{prefixCls:ke,status:we,icon:me}),w.createElement("div",{className:"".concat(ke,"-title")},Ee),he&&w.createElement("div",{className:"".concat(ke,"-subtitle")},he),w.createElement(G,{prefixCls:ke,extra:Pe}),ve&&w.createElement("div",{className:"".concat(ke,"-content")},ve))};z.PRESENTED_IMAGE_403=L["403"],z.PRESENTED_IMAGE_404=L["404"],z.PRESENTED_IMAGE_500=L["500"];var K=z},50111:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(23166),y=o.n(A)},87555:function(oe,N,o){"use strict";var x=o(69160);N.Z=x.Z},5317:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(86178)},90407:function(oe,N,o){"use strict";var x=o(96156),g=o(22122),A=o(35510),y=o.n(A),M=o(25281),w=o(69252),m=o(67294),b=o(9054),v=o(21042),h=o(99469),d=o(10772),_=o(27495),p=o(31064),S=o(16786),k=o(23827),O=o(1358),F=function(U,L){var V={};for(var $ in U)Object.prototype.hasOwnProperty.call(U,$)&&L.indexOf($)<0&&(V[$]=U[$]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,$=Object.getOwnPropertySymbols(U);G<$.length;G++)L.indexOf($[G])<0&&Object.prototype.propertyIsEnumerable.call(U,$[G])&&(V[$[G]]=U[$[G]]);return V},D="SECRET_COMBOBOX_MODE_DO_NOT_USE",Z=function(L,V){var $,G=L.prefixCls,z=L.bordered,K=z===void 0?!0:z,re=L.className,ne=L.getPopupContainer,Q=L.dropdownClassName,ue=L.popupClassName,he=L.listHeight,Ee=he===void 0?256:he,ce=L.placement,ve=L.listItemHeight,fe=ve===void 0?24:ve,we=L.size,me=L.disabled,Pe=L.notFoundContent,pe=L.status,Ie=L.showArrow,Je=F(L,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","popupClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),ke=m.useContext(b.E_),De=ke.getPopupContainer,Fe=ke.getPrefixCls,Qe=ke.renderEmpty,qe=ke.direction,et=ke.virtual,dt=ke.dropdownMatchSelectWidth,Ke=m.useContext(d.Z),Ge=Fe("select",G),wt=Fe(),Vt=(0,O.ri)(Ge,qe),gt=Vt.compactSize,it=Vt.compactItemClassnames,Le=m.useMemo(function(){var rn=Je.mode;if(rn!=="combobox")return rn===D?"combobox":rn},[Je.mode]),ct=Le==="multiple"||Le==="tags",at=Ie!==void 0?Ie:Je.loading||!(ct||Le==="combobox"),jt=(0,m.useContext)(_.aM),St=jt.status,fn=jt.hasFeedback,Xt=jt.isFormItemInput,Yt=jt.feedbackIcon,Rt=(0,S.F)(St,pe),Lt;Pe!==void 0?Lt=Pe:Le==="combobox"?Lt=null:Lt=(Qe||v.Z)("Select");var ze=(0,k.Z)((0,g.Z)((0,g.Z)({},Je),{multiple:ct,hasFeedback:fn,feedbackIcon:Yt,showArrow:at,prefixCls:Ge})),rt=ze.suffixIcon,tt=ze.itemIcon,de=ze.removeIcon,ot=ze.clearIcon,Et=(0,w.Z)(Je,["suffixIcon","itemIcon"]),Ht=y()(ue||Q,(0,x.Z)({},"".concat(Ge,"-dropdown-").concat(qe),qe==="rtl")),Jt=gt||we||Ke,Qt=m.useContext(h.Z),an=me!=null?me:Qt,Un=y()(($={},(0,x.Z)($,"".concat(Ge,"-lg"),Jt==="large"),(0,x.Z)($,"".concat(Ge,"-sm"),Jt==="small"),(0,x.Z)($,"".concat(Ge,"-rtl"),qe==="rtl"),(0,x.Z)($,"".concat(Ge,"-borderless"),!K),(0,x.Z)($,"".concat(Ge,"-in-form-item"),Xt),$),(0,S.Z)(Ge,Rt,fn),it,re),qt=function(){return ce!==void 0?ce:qe==="rtl"?"bottomRight":"bottomLeft"};return m.createElement(M.ZP,(0,g.Z)({ref:V,virtual:et,dropdownMatchSelectWidth:dt},Et,{transitionName:(0,p.mL)(wt,(0,p.q0)(ce),Je.transitionName),listHeight:Ee,listItemHeight:fe,mode:Le,prefixCls:Ge,placement:qt(),direction:qe,inputIcon:rt,menuItemSelectedIcon:tt,removeIcon:de,clearIcon:ot,notFoundContent:Lt,className:Un,getPopupContainer:ne||De,dropdownClassName:Ht,showArrow:fn||Ie,disabled:an}))},W=m.forwardRef(Z);W.SECRET_COMBOBOX_MODE_DO_NOT_USE=D,W.Option=M.Wx,W.OptGroup=M.Xo,N.Z=W},97140:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(47323),y=o.n(A),M=o(93806)},23827:function(oe,N,o){"use strict";o.d(N,{Z:function(){return b}});var x=o(79508),g=o(43061),A=o(54549),y=o(57254),M=o(7085),w=o(76570),m=o(67294);function b(v){var h=v.suffixIcon,d=v.clearIcon,_=v.menuItemSelectedIcon,p=v.removeIcon,S=v.loading,k=v.multiple,O=v.hasFeedback,F=v.prefixCls,D=v.showArrow,Z=v.feedbackIcon,W=d!=null?d:m.createElement(g.Z,null),U=function(K){return m.createElement(m.Fragment,null,D!==!1&&K,O&&Z)},L=null;if(h!==void 0)L=U(h);else if(S)L=U(m.createElement(M.Z,{spin:!0}));else{var V="".concat(F,"-suffix");L=function(K){var re=K.open,ne=K.showSearch;return U(re&&ne?m.createElement(w.Z,{className:V}):m.createElement(y.Z,{className:V}))}}var $=null;_!==void 0?$=_:k?$=m.createElement(x.Z,null):$=null;var G=null;return p!==void 0?G=p:G=m.createElement(A.Z,null),{clearIcon:W,suffixIcon:L,itemIcon:$,removeIcon:G}}},81505:function(oe,N,o){"use strict";o.d(N,{Z:function(){return Pe}});var x=o(96156),g=o(22122),A=o(90484),y=o(35510),M=o.n(y),w=o(67294),m=o(9054),b=o(69252),v=function(Ie){var Je,ke,De=Ie.prefixCls,Fe=Ie.className,Qe=Ie.style,qe=Ie.size,et=Ie.shape,dt=M()((Je={},(0,x.Z)(Je,"".concat(De,"-lg"),qe==="large"),(0,x.Z)(Je,"".concat(De,"-sm"),qe==="small"),Je)),Ke=M()((ke={},(0,x.Z)(ke,"".concat(De,"-circle"),et==="circle"),(0,x.Z)(ke,"".concat(De,"-square"),et==="square"),(0,x.Z)(ke,"".concat(De,"-round"),et==="round"),ke)),Ge=w.useMemo(function(){return typeof qe=="number"?{width:qe,height:qe,lineHeight:"".concat(qe,"px")}:{}},[qe]);return w.createElement("span",{className:M()(De,dt,Ke,Fe),style:(0,g.Z)((0,g.Z)({},Ge),Qe)})},h=v,d=function(Ie){var Je=Ie.prefixCls,ke=Ie.className,De=Ie.active,Fe=Ie.shape,Qe=Fe===void 0?"circle":Fe,qe=Ie.size,et=qe===void 0?"default":qe,dt=w.useContext(m.E_),Ke=dt.getPrefixCls,Ge=Ke("skeleton",Je),wt=(0,b.Z)(Ie,["prefixCls","className"]),Vt=M()(Ge,"".concat(Ge,"-element"),(0,x.Z)({},"".concat(Ge,"-active"),De),ke);return w.createElement("div",{className:Vt},w.createElement(h,(0,g.Z)({prefixCls:"".concat(Ge,"-avatar"),shape:Qe,size:et},wt)))},_=d,p=function(Ie){var Je,ke=Ie.prefixCls,De=Ie.className,Fe=Ie.active,Qe=Ie.block,qe=Qe===void 0?!1:Qe,et=Ie.size,dt=et===void 0?"default":et,Ke=w.useContext(m.E_),Ge=Ke.getPrefixCls,wt=Ge("skeleton",ke),Vt=(0,b.Z)(Ie,["prefixCls"]),gt=M()(wt,"".concat(wt,"-element"),(Je={},(0,x.Z)(Je,"".concat(wt,"-active"),Fe),(0,x.Z)(Je,"".concat(wt,"-block"),qe),Je),De);return w.createElement("div",{className:gt},w.createElement(h,(0,g.Z)({prefixCls:"".concat(wt,"-button"),size:dt},Vt)))},S=p,k=o(28991),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},F=O,D=o(27029),Z=function(Ie,Je){return w.createElement(D.Z,(0,k.Z)((0,k.Z)({},Ie),{},{ref:Je,icon:F}))};Z.displayName="DotChartOutlined";var W=w.forwardRef(Z),U=function(Ie){var Je=Ie.prefixCls,ke=Ie.className,De=Ie.style,Fe=Ie.active,Qe=Ie.children,qe=w.useContext(m.E_),et=qe.getPrefixCls,dt=et("skeleton",Je),Ke=M()(dt,"".concat(dt,"-element"),(0,x.Z)({},"".concat(dt,"-active"),Fe),ke),Ge=Qe!=null?Qe:w.createElement(W,null);return w.createElement("div",{className:Ke},w.createElement("div",{className:M()("".concat(dt,"-image"),ke),style:De},Ge))},L=U,V="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",$=function(Ie){var Je=Ie.prefixCls,ke=Ie.className,De=Ie.style,Fe=Ie.active,Qe=w.useContext(m.E_),qe=Qe.getPrefixCls,et=qe("skeleton",Je),dt=M()(et,"".concat(et,"-element"),(0,x.Z)({},"".concat(et,"-active"),Fe),ke);return w.createElement("div",{className:dt},w.createElement("div",{className:M()("".concat(et,"-image"),ke),style:De},w.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(et,"-image-svg")},w.createElement("path",{d:V,className:"".concat(et,"-image-path")}))))},G=$,z=function(Ie){var Je,ke=Ie.prefixCls,De=Ie.className,Fe=Ie.active,Qe=Ie.block,qe=Ie.size,et=qe===void 0?"default":qe,dt=w.useContext(m.E_),Ke=dt.getPrefixCls,Ge=Ke("skeleton",ke),wt=(0,b.Z)(Ie,["prefixCls"]),Vt=M()(Ge,"".concat(Ge,"-element"),(Je={},(0,x.Z)(Je,"".concat(Ge,"-active"),Fe),(0,x.Z)(Je,"".concat(Ge,"-block"),Qe),Je),De);return w.createElement("div",{className:Vt},w.createElement(h,(0,g.Z)({prefixCls:"".concat(Ge,"-input"),size:et},wt)))},K=z,re=o(85061),ne=function(Ie){var Je=function(dt){var Ke=Ie.width,Ge=Ie.rows,wt=Ge===void 0?2:Ge;if(Array.isArray(Ke))return Ke[dt];if(wt-1===dt)return Ke},ke=Ie.prefixCls,De=Ie.className,Fe=Ie.style,Qe=Ie.rows,qe=(0,re.Z)(Array(Qe)).map(function(et,dt){return w.createElement("li",{key:dt,style:{width:Je(dt)}})});return w.createElement("ul",{className:M()(ke,De),style:Fe},qe)},Q=ne,ue=function(Ie){var Je=Ie.prefixCls,ke=Ie.className,De=Ie.width,Fe=Ie.style;return w.createElement("h3",{className:M()(Je,ke),style:(0,g.Z)({width:De},Fe)})},he=ue;function Ee(pe){return pe&&(0,A.Z)(pe)==="object"?pe:{}}function ce(pe,Ie){return pe&&!Ie?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ve(pe,Ie){return!pe&&Ie?{width:"38%"}:pe&&Ie?{width:"50%"}:{}}function fe(pe,Ie){var Je={};return(!pe||!Ie)&&(Je.width="61%"),!pe&&Ie?Je.rows=3:Je.rows=2,Je}var we=function(Ie){var Je=Ie.prefixCls,ke=Ie.loading,De=Ie.className,Fe=Ie.style,Qe=Ie.children,qe=Ie.avatar,et=qe===void 0?!1:qe,dt=Ie.title,Ke=dt===void 0?!0:dt,Ge=Ie.paragraph,wt=Ge===void 0?!0:Ge,Vt=Ie.active,gt=Ie.round,it=w.useContext(m.E_),Le=it.getPrefixCls,ct=it.direction,at=Le("skeleton",Je);if(ke||!("loading"in Ie)){var jt,St=!!et,fn=!!Ke,Xt=!!wt,Yt;if(St){var Rt=(0,g.Z)((0,g.Z)({prefixCls:"".concat(at,"-avatar")},ce(fn,Xt)),Ee(et));Yt=w.createElement("div",{className:"".concat(at,"-header")},w.createElement(h,(0,g.Z)({},Rt)))}var Lt;if(fn||Xt){var ze;if(fn){var rt=(0,g.Z)((0,g.Z)({prefixCls:"".concat(at,"-title")},ve(St,Xt)),Ee(Ke));ze=w.createElement(he,(0,g.Z)({},rt))}var tt;if(Xt){var de=(0,g.Z)((0,g.Z)({prefixCls:"".concat(at,"-paragraph")},fe(St,fn)),Ee(wt));tt=w.createElement(Q,(0,g.Z)({},de))}Lt=w.createElement("div",{className:"".concat(at,"-content")},ze,tt)}var ot=M()(at,(jt={},(0,x.Z)(jt,"".concat(at,"-with-avatar"),St),(0,x.Z)(jt,"".concat(at,"-active"),Vt),(0,x.Z)(jt,"".concat(at,"-rtl"),ct==="rtl"),(0,x.Z)(jt,"".concat(at,"-round"),gt),jt),De);return w.createElement("div",{className:ot,style:Fe},Yt,Lt)}return typeof Qe!="undefined"?Qe:null};we.Button=S,we.Avatar=_,we.Input=K,we.Image=G,we.Node=L;var me=we,Pe=me},6244:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(18067),y=o.n(A)},1358:function(oe,N,o){"use strict";o.d(N,{ri:function(){return h},BR:function(){return d}});var x=o(22122),g=o(96156),A=o(35510),y=o.n(A),M=o(83025),w=o(67294),m=o(9054),b=function(S,k){var O={};for(var F in S)Object.prototype.hasOwnProperty.call(S,F)&&k.indexOf(F)<0&&(O[F]=S[F]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,F=Object.getOwnPropertySymbols(S);D<F.length;D++)k.indexOf(F[D])<0&&Object.prototype.propertyIsEnumerable.call(S,F[D])&&(O[F[D]]=S[F[D]]);return O},v=w.createContext(null),h=function(k,O){var F=w.useContext(v),D=w.useMemo(function(){var Z;if(!F)return"";var W=F.compactDirection,U=F.isFirstItem,L=F.isLastItem,V=W==="vertical"?"-vertical-":"-";return y()((Z={},(0,g.Z)(Z,"".concat(k,"-compact").concat(V,"item"),!0),(0,g.Z)(Z,"".concat(k,"-compact").concat(V,"first-item"),U),(0,g.Z)(Z,"".concat(k,"-compact").concat(V,"last-item"),L),(0,g.Z)(Z,"".concat(k,"-compact").concat(V,"item-rtl"),O==="rtl"),Z))},[k,O,F]);return{compactSize:F==null?void 0:F.compactSize,compactDirection:F==null?void 0:F.compactDirection,compactItemClassnames:D}},d=function(k){var O=k.children;return w.createElement(v.Provider,{value:null},O)},_=function(k){var O=k.children,F=b(k,["children"]);return w.createElement(v.Provider,{value:F},O)},p=function(k){var O,F=w.useContext(m.E_),D=F.getPrefixCls,Z=F.direction,W=k.size,U=W===void 0?"middle":W,L=k.direction,V=k.block,$=k.prefixCls,G=k.className,z=k.children,K=b(k,["size","direction","block","prefixCls","className","children"]),re=D("space-compact",$),ne=y()(re,(O={},(0,g.Z)(O,"".concat(re,"-rtl"),Z==="rtl"),(0,g.Z)(O,"".concat(re,"-block"),V),(0,g.Z)(O,"".concat(re,"-vertical"),L==="vertical"),O),G),Q=w.useContext(v),ue=(0,M.Z)(z),he=w.useMemo(function(){return ue.map(function(Ee,ce){var ve=Ee&&Ee.key||"".concat(re,"-item-").concat(ce);return w.createElement(_,{key:ve,compactSize:U,compactDirection:L,isFirstItem:ce===0&&(!Q||(Q==null?void 0:Q.isFirstItem)),isLastItem:ce===ue.length-1&&(!Q||(Q==null?void 0:Q.isLastItem))},Ee)})},[U,ue,Q]);return ue.length===0?null:w.createElement("div",(0,x.Z)({className:ne},K),he)};N.ZP=p},45733:function(oe,N,o){"use strict";o.d(N,{u:function(){return p},Z:function(){return D}});var x=o(22122),g=o(96156),A=o(28481),y=o(35510),M=o.n(y),w=o(83025),m=o(67294),b=o(9054),v=o(75675);function h(Z){var W=Z.className,U=Z.direction,L=Z.index,V=Z.marginDirection,$=Z.children,G=Z.split,z=Z.wrap,K=m.useContext(p),re=K.horizontalSize,ne=K.verticalSize,Q=K.latestIndex,ue=K.supportFlexGap,he={};return ue||(U==="vertical"?L<Q&&(he={marginBottom:re/(G?2:1)}):he=(0,x.Z)((0,x.Z)({},L<Q&&(0,g.Z)({},V,re/(G?2:1))),z&&{paddingBottom:ne})),$==null?null:m.createElement(m.Fragment,null,m.createElement("div",{className:W,style:he},$),L<Q&&G&&m.createElement("span",{className:"".concat(W,"-split"),style:he},G))}var d=o(1358),_=function(Z,W){var U={};for(var L in Z)Object.prototype.hasOwnProperty.call(Z,L)&&W.indexOf(L)<0&&(U[L]=Z[L]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,L=Object.getOwnPropertySymbols(Z);V<L.length;V++)W.indexOf(L[V])<0&&Object.prototype.propertyIsEnumerable.call(Z,L[V])&&(U[L[V]]=Z[L[V]]);return U},p=m.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),S={small:8,middle:16,large:24};function k(Z){return typeof Z=="string"?S[Z]:Z||0}var O=function(W){var U,L=m.useContext(b.E_),V=L.getPrefixCls,$=L.space,G=L.direction,z=W.size,K=z===void 0?($==null?void 0:$.size)||"small":z,re=W.align,ne=W.className,Q=W.children,ue=W.direction,he=ue===void 0?"horizontal":ue,Ee=W.prefixCls,ce=W.split,ve=W.style,fe=W.wrap,we=fe===void 0?!1:fe,me=_(W,["size","align","className","children","direction","prefixCls","split","style","wrap"]),Pe=(0,v.Z)(),pe=m.useMemo(function(){return(Array.isArray(K)?K:[K,K]).map(function(gt){return k(gt)})},[K]),Ie=(0,A.Z)(pe,2),Je=Ie[0],ke=Ie[1],De=(0,w.Z)(Q,{keepEmpty:!0}),Fe=re===void 0&&he==="horizontal"?"center":re,Qe=V("space",Ee),qe=M()(Qe,"".concat(Qe,"-").concat(he),(U={},(0,g.Z)(U,"".concat(Qe,"-rtl"),G==="rtl"),(0,g.Z)(U,"".concat(Qe,"-align-").concat(Fe),Fe),U),ne),et="".concat(Qe,"-item"),dt=G==="rtl"?"marginLeft":"marginRight",Ke=0,Ge=De.map(function(gt,it){gt!=null&&(Ke=it);var Le=gt&>.key||"".concat(et,"-").concat(it);return m.createElement(h,{className:et,key:Le,direction:he,index:it,marginDirection:dt,split:ce,wrap:we},gt)}),wt=m.useMemo(function(){return{horizontalSize:Je,verticalSize:ke,latestIndex:Ke,supportFlexGap:Pe}},[Je,ke,Ke,Pe]);if(De.length===0)return null;var Vt={};return we&&(Vt.flexWrap="wrap",Pe||(Vt.marginBottom=-ke)),Pe&&(Vt.columnGap=Je,Vt.rowGap=ke),m.createElement("div",(0,x.Z)({className:qe,style:(0,x.Z)((0,x.Z)({},Vt),ve)},me),m.createElement(p.Provider,{value:wt},Ge))},F=O;F.Compact=d.ZP;var D=F},25324:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(34621),y=o.n(A)},87240:function(oe,N,o){"use strict";var x=o(22122),g=o(96156),A=o(28481),y=o(35510),M=o.n(y),w=o(23279),m=o.n(w),b=o(69252),v=o(67294),h=o(9054),d=o(75447),_=o(4381),p=function(W,U){var L={};for(var V in W)Object.prototype.hasOwnProperty.call(W,V)&&U.indexOf(V)<0&&(L[V]=W[V]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,V=Object.getOwnPropertySymbols(W);$<V.length;$++)U.indexOf(V[$])<0&&Object.prototype.propertyIsEnumerable.call(W,V[$])&&(L[V[$]]=W[V[$]]);return L},S=(0,_.b)("small","default","large"),k=null;function O(W,U){var L=U.indicator,V="".concat(W,"-dot");return L===null?null:(0,d.l$)(L)?(0,d.Tm)(L,{className:M()(L.props.className,V)}):(0,d.l$)(k)?(0,d.Tm)(k,{className:M()(k.props.className,V)}):v.createElement("span",{className:M()(V,"".concat(W,"-dot-spin"))},v.createElement("i",{className:"".concat(W,"-dot-item")}),v.createElement("i",{className:"".concat(W,"-dot-item")}),v.createElement("i",{className:"".concat(W,"-dot-item")}),v.createElement("i",{className:"".concat(W,"-dot-item")}))}function F(W,U){return!!W&&!!U&&!isNaN(Number(U))}var D=function(U){var L=U.spinPrefixCls,V=U.spinning,$=V===void 0?!0:V,G=U.delay,z=U.className,K=U.size,re=K===void 0?"default":K,ne=U.tip,Q=U.wrapperClassName,ue=U.style,he=U.children,Ee=p(U,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children"]),ce=v.useState(function(){return $&&!F($,G)}),ve=(0,A.Z)(ce,2),fe=ve[0],we=ve[1];v.useEffect(function(){var pe=m()(function(){we($)},G);return pe(),function(){var Ie;(Ie=pe==null?void 0:pe.cancel)===null||Ie===void 0||Ie.call(pe)}},[G,$]);var me=function(){return typeof he!="undefined"},Pe=function(Ie){var Je,ke=Ie.direction,De=M()(L,(Je={},(0,g.Z)(Je,"".concat(L,"-sm"),re==="small"),(0,g.Z)(Je,"".concat(L,"-lg"),re==="large"),(0,g.Z)(Je,"".concat(L,"-spinning"),fe),(0,g.Z)(Je,"".concat(L,"-show-text"),!!ne),(0,g.Z)(Je,"".concat(L,"-rtl"),ke==="rtl"),Je),z),Fe=(0,b.Z)(Ee,["indicator","prefixCls"]),Qe=v.createElement("div",(0,x.Z)({},Fe,{style:ue,className:De,"aria-live":"polite","aria-busy":fe}),O(L,U),ne?v.createElement("div",{className:"".concat(L,"-text")},ne):null);if(me()){var qe=M()("".concat(L,"-container"),(0,g.Z)({},"".concat(L,"-blur"),fe));return v.createElement("div",(0,x.Z)({},Fe,{className:M()("".concat(L,"-nested-loading"),Q)}),fe&&v.createElement("div",{key:"loading"},Qe),v.createElement("div",{className:qe,key:"container"},he))}return Qe};return v.createElement(h.C,null,Pe)},Z=function(U){var L=U.prefixCls,V=v.useContext(h.E_),$=V.getPrefixCls,G=$("spin",L),z=(0,x.Z)((0,x.Z)({},U),{spinPrefixCls:G});return v.createElement(D,(0,x.Z)({},z))};Z.setDefaultIndicator=function(W){k=W},N.Z=Z},58210:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(955),y=o.n(A)},17731:function(oe,N,o){"use strict";o.d(N,{Z:function(){return ne}});var x=o(22122),g=o(96156),A=o(79508),y=o(54549),M=o(35510),w=o.n(M),m=o(28991),b=o(81253),v=o(6610),h=o(5991),d=o(63349),_=o(10379),p=o(44144),S=o(67294),k=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function O(Q){return typeof Q=="string"}var F=function(Q){(0,_.Z)(he,Q);var ue=(0,p.Z)(he);function he(){var Ee;(0,v.Z)(this,he);for(var ce=arguments.length,ve=new Array(ce),fe=0;fe<ce;fe++)ve[fe]=arguments[fe];return Ee=ue.call.apply(ue,[this].concat(ve)),(0,g.Z)((0,d.Z)(Ee),"onClick",function(){var we=Ee.props,me=we.onClick,Pe=we.onStepClick,pe=we.stepIndex;me&&me.apply(void 0,arguments),Pe(pe)}),Ee}return(0,h.Z)(he,[{key:"renderIconNode",value:function(){var ce,ve=this.props,fe=ve.prefixCls,we=ve.progressDot,me=ve.stepIcon,Pe=ve.stepNumber,pe=ve.status,Ie=ve.title,Je=ve.description,ke=ve.icon,De=ve.iconPrefix,Fe=ve.icons,Qe,qe=w()("".concat(fe,"-icon"),"".concat(De,"icon"),(ce={},(0,g.Z)(ce,"".concat(De,"icon-").concat(ke),ke&&O(ke)),(0,g.Z)(ce,"".concat(De,"icon-check"),!ke&&pe==="finish"&&(Fe&&!Fe.finish||!Fe)),(0,g.Z)(ce,"".concat(De,"icon-cross"),!ke&&pe==="error"&&(Fe&&!Fe.error||!Fe)),ce)),et=S.createElement("span",{className:"".concat(fe,"-icon-dot")});return we?typeof we=="function"?Qe=S.createElement("span",{className:"".concat(fe,"-icon")},we(et,{index:Pe-1,status:pe,title:Ie,description:Je})):Qe=S.createElement("span",{className:"".concat(fe,"-icon")},et):ke&&!O(ke)?Qe=S.createElement("span",{className:"".concat(fe,"-icon")},ke):Fe&&Fe.finish&&pe==="finish"?Qe=S.createElement("span",{className:"".concat(fe,"-icon")},Fe.finish):Fe&&Fe.error&&pe==="error"?Qe=S.createElement("span",{className:"".concat(fe,"-icon")},Fe.error):ke||pe==="finish"||pe==="error"?Qe=S.createElement("span",{className:qe}):Qe=S.createElement("span",{className:"".concat(fe,"-icon")},Pe),me&&(Qe=me({index:Pe-1,status:pe,title:Ie,description:Je,node:Qe})),Qe}},{key:"render",value:function(){var ce,ve=this.props,fe=ve.className,we=ve.prefixCls,me=ve.style,Pe=ve.active,pe=ve.status,Ie=pe===void 0?"wait":pe,Je=ve.iconPrefix,ke=ve.icon,De=ve.wrapperStyle,Fe=ve.stepNumber,Qe=ve.disabled,qe=ve.description,et=ve.title,dt=ve.subTitle,Ke=ve.progressDot,Ge=ve.stepIcon,wt=ve.tailContent,Vt=ve.icons,gt=ve.stepIndex,it=ve.onStepClick,Le=ve.onClick,ct=(0,b.Z)(ve,k),at=w()("".concat(we,"-item"),"".concat(we,"-item-").concat(Ie),fe,(ce={},(0,g.Z)(ce,"".concat(we,"-item-custom"),ke),(0,g.Z)(ce,"".concat(we,"-item-active"),Pe),(0,g.Z)(ce,"".concat(we,"-item-disabled"),Qe===!0),ce)),jt=(0,m.Z)({},me),St={};return it&&!Qe&&(St.role="button",St.tabIndex=0,St.onClick=this.onClick),S.createElement("div",(0,x.Z)({},ct,{className:at,style:jt}),S.createElement("div",(0,x.Z)({onClick:Le},St,{className:"".concat(we,"-item-container")}),S.createElement("div",{className:"".concat(we,"-item-tail")},wt),S.createElement("div",{className:"".concat(we,"-item-icon")},this.renderIconNode()),S.createElement("div",{className:"".concat(we,"-item-content")},S.createElement("div",{className:"".concat(we,"-item-title")},et,dt&&S.createElement("div",{title:typeof dt=="string"?dt:void 0,className:"".concat(we,"-item-subtitle")},dt)),qe&&S.createElement("div",{className:"".concat(we,"-item-description")},qe))))}}]),he}(S.Component),D=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","items"],Z=function(Q){(0,_.Z)(he,Q);var ue=(0,p.Z)(he);function he(){var Ee;(0,v.Z)(this,he);for(var ce=arguments.length,ve=new Array(ce),fe=0;fe<ce;fe++)ve[fe]=arguments[fe];return Ee=ue.call.apply(ue,[this].concat(ve)),(0,g.Z)((0,d.Z)(Ee),"onStepClick",function(we){var me=Ee.props,Pe=me.onChange,pe=me.current;Pe&&pe!==we&&Pe(we)}),Ee}return(0,h.Z)(he,[{key:"render",value:function(){var ce,ve=this,fe=this.props,we=fe.prefixCls,me=fe.style,Pe=me===void 0?{}:me,pe=fe.className,Ie=fe.children,Je=fe.direction,ke=fe.type,De=fe.labelPlacement,Fe=fe.iconPrefix,Qe=fe.status,qe=fe.size,et=fe.current,dt=fe.progressDot,Ke=fe.stepIcon,Ge=fe.initial,wt=fe.icons,Vt=fe.onChange,gt=fe.items,it=gt===void 0?[]:gt,Le=(0,b.Z)(fe,D),ct=ke==="navigation",at=dt?"vertical":De,jt=w()(we,"".concat(we,"-").concat(Je),pe,(ce={},(0,g.Z)(ce,"".concat(we,"-").concat(qe),qe),(0,g.Z)(ce,"".concat(we,"-label-").concat(at),Je==="horizontal"),(0,g.Z)(ce,"".concat(we,"-dot"),!!dt),(0,g.Z)(ce,"".concat(we,"-navigation"),ct),ce));return S.createElement("div",(0,x.Z)({className:jt,style:Pe},Le),it.filter(function(St){return St}).map(function(St,fn){var Xt=(0,m.Z)({},St),Yt=Ge+fn;return Qe==="error"&&fn===et-1&&(Xt.className="".concat(we,"-next-error")),Xt.status||(Yt===et?Xt.status=Qe:Yt<et?Xt.status="finish":Xt.status="wait"),S.createElement(F,(0,x.Z)({},Xt,{active:Yt===et,stepNumber:Yt+1,stepIndex:Yt,key:Yt,prefixCls:we,iconPrefix:Fe,wrapperStyle:Pe,progressDot:dt,stepIcon:Ke,icons:wt,onStepClick:Vt&&ve.onStepClick}))}))}}]),he}(S.Component);(0,g.Z)(Z,"Step",F),(0,g.Z)(Z,"defaultProps",{type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1});var W=Z,U=o(9054),L=o(31312),V=o(45154),$=o(83025);function G(Q){return Q.filter(function(ue){return ue})}function z(Q,ue){if(Q)return Q;var he=(0,$.Z)(ue).map(function(Ee){if(S.isValidElement(Ee)){var ce=Ee.props,ve=(0,x.Z)({},ce);return ve}return null});return G(he)}var K=function(Q,ue){var he={};for(var Ee in Q)Object.prototype.hasOwnProperty.call(Q,Ee)&&ue.indexOf(Ee)<0&&(he[Ee]=Q[Ee]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,Ee=Object.getOwnPropertySymbols(Q);ce<Ee.length;ce++)ue.indexOf(Ee[ce])<0&&Object.prototype.propertyIsEnumerable.call(Q,Ee[ce])&&(he[Ee[ce]]=Q[Ee[ce]]);return he},re=function(ue){var he,Ee=ue.percent,ce=ue.size,ve=ue.className,fe=ue.direction,we=ue.items,me=ue.responsive,Pe=me===void 0?!0:me,pe=ue.current,Ie=pe===void 0?0:pe,Je=ue.children,ke=K(ue,["percent","size","className","direction","items","responsive","current","children"]),De=(0,L.Z)(Pe),Fe=De.xs,Qe=S.useContext(U.E_),qe=Qe.getPrefixCls,et=Qe.direction,dt=S.useCallback(function(){return Pe&&Fe?"vertical":fe},[Fe,fe]),Ke=qe("steps",ue.prefixCls),Ge=qe("",ue.iconPrefix),wt=z(we,Je),Vt=w()((he={},(0,g.Z)(he,"".concat(Ke,"-rtl"),et==="rtl"),(0,g.Z)(he,"".concat(Ke,"-with-progress"),Ee!==void 0),he),ve),gt={finish:S.createElement(A.Z,{className:"".concat(Ke,"-finish-icon")}),error:S.createElement(y.Z,{className:"".concat(Ke,"-error-icon")})},it=function(ct){var at=ct.node,jt=ct.status;if(jt==="process"&&Ee!==void 0){var St=ce==="small"?32:40;return S.createElement("div",{className:"".concat(Ke,"-progress-icon")},S.createElement(V.Z,{type:"circle",percent:Ee,width:St,strokeWidth:4,format:function(){return null}}),at)}return at};return S.createElement(W,(0,x.Z)({icons:gt},ke,{current:Ie,size:ce,items:wt,direction:dt(),stepIcon:it,prefixCls:Ke,iconPrefix:Ge,className:Vt}))};re.Step=W.Step;var ne=re},8017:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(48395),y=o.n(A),M=o(55939)},3114:function(oe,N,o){"use strict";o.d(N,{Z:function(){return re}});var x=o(22122),g=o(96156),A=o(7085),y=o(35510),M=o.n(y),w=o(28481),m=o(81253),b=o(67294);function v(ne){var Q=b.useRef();Q.current=ne;var ue=b.useCallback(function(){for(var he,Ee=arguments.length,ce=new Array(Ee),ve=0;ve<Ee;ve++)ce[ve]=arguments[ve];return(he=Q.current)===null||he===void 0?void 0:he.call.apply(he,[Q].concat(ce))},[]);return ue}function h(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var d=h()?b.useLayoutEffect:b.useEffect,_=function(Q,ue){var he=b.useRef(!0);d(function(){return Q(he.current)},ue),d(function(){return he.current=!1,function(){he.current=!0}},[])},p=function(Q,ue){_(function(he){if(!he)return Q()},ue)},S=null;function k(ne){var Q=b.useRef(!1),ue=b.useState(ne),he=(0,w.Z)(ue,2),Ee=he[0],ce=he[1];b.useEffect(function(){return Q.current=!1,function(){Q.current=!0}},[]);function ve(fe,we){we&&Q.current||ce(fe)}return[Ee,ve]}function O(ne){return ne!==void 0}function F(ne,Q){var ue=Q||{},he=ue.defaultValue,Ee=ue.value,ce=ue.onChange,ve=ue.postState,fe=k(function(){return O(Ee)?Ee:O(he)?typeof he=="function"?he():he:typeof ne=="function"?ne():ne}),we=(0,w.Z)(fe,2),me=we[0],Pe=we[1],pe=Ee!==void 0?Ee:me,Ie=ve?ve(pe):pe,Je=v(ce),ke=k([pe]),De=(0,w.Z)(ke,2),Fe=De[0],Qe=De[1];p(function(){var et=Fe[0];me!==et&&Je(me,et)},[Fe]),p(function(){O(Ee)||Pe(Ee)},[Ee]);var qe=v(function(et,dt){Pe(et,dt),Qe([pe],dt)});return[Ie,qe]}var D={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Q){var ue=Q.keyCode;if(Q.altKey&&!Q.ctrlKey||Q.metaKey||ue>=D.F1&&ue<=D.F12)return!1;switch(ue){case D.ALT:case D.CAPS_LOCK:case D.CONTEXT_MENU:case D.CTRL:case D.DOWN:case D.END:case D.ESC:case D.HOME:case D.INSERT:case D.LEFT:case D.MAC_FF_META:case D.META:case D.NUMLOCK:case D.NUM_CENTER:case D.PAGE_DOWN:case D.PAGE_UP:case D.PAUSE:case D.PRINT_SCREEN:case D.RIGHT:case D.SHIFT:case D.UP:case D.WIN_KEY:case D.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Q){if(Q>=D.ZERO&&Q<=D.NINE||Q>=D.NUM_ZERO&&Q<=D.NUM_MULTIPLY||Q>=D.A&&Q<=D.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Q===0)return!0;switch(Q){case D.SPACE:case D.QUESTION_MARK:case D.NUM_PLUS:case D.NUM_MINUS:case D.NUM_PERIOD:case D.NUM_DIVISION:case D.SEMICOLON:case D.DASH:case D.EQUALS:case D.COMMA:case D.PERIOD:case D.SLASH:case D.APOSTROPHE:case D.SINGLE_QUOTE:case D.OPEN_SQUARE_BRACKET:case D.BACKSLASH:case D.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Z=D,W=b.forwardRef(function(ne,Q){var ue,he=ne.prefixCls,Ee=he===void 0?"rc-switch":he,ce=ne.className,ve=ne.checked,fe=ne.defaultChecked,we=ne.disabled,me=ne.loadingIcon,Pe=ne.checkedChildren,pe=ne.unCheckedChildren,Ie=ne.onClick,Je=ne.onChange,ke=ne.onKeyDown,De=(0,m.Z)(ne,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),Fe=F(!1,{value:ve,defaultValue:fe}),Qe=(0,w.Z)(Fe,2),qe=Qe[0],et=Qe[1];function dt(Vt,gt){var it=qe;return we||(it=Vt,et(it),Je==null||Je(it,gt)),it}function Ke(Vt){Vt.which===Z.LEFT?dt(!1,Vt):Vt.which===Z.RIGHT&&dt(!0,Vt),ke==null||ke(Vt)}function Ge(Vt){var gt=dt(!qe,Vt);Ie==null||Ie(gt,Vt)}var wt=M()(Ee,ce,(ue={},(0,g.Z)(ue,"".concat(Ee,"-checked"),qe),(0,g.Z)(ue,"".concat(Ee,"-disabled"),we),ue));return b.createElement("button",Object.assign({},De,{type:"button",role:"switch","aria-checked":qe,disabled:we,className:wt,ref:Q,onKeyDown:Ke,onClick:Ge}),me,b.createElement("span",{className:"".concat(Ee,"-inner")},qe?Pe:pe))});W.displayName="Switch";var U=W,L=o(9054),V=o(99469),$=o(10772),G=o(77067),z=function(ne,Q){var ue={};for(var he in ne)Object.prototype.hasOwnProperty.call(ne,he)&&Q.indexOf(he)<0&&(ue[he]=ne[he]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,he=Object.getOwnPropertySymbols(ne);Ee<he.length;Ee++)Q.indexOf(he[Ee])<0&&Object.prototype.propertyIsEnumerable.call(ne,he[Ee])&&(ue[he[Ee]]=ne[he[Ee]]);return ue},K=b.forwardRef(function(ne,Q){var ue,he=ne.prefixCls,Ee=ne.size,ce=ne.disabled,ve=ne.loading,fe=ne.className,we=fe===void 0?"":fe,me=z(ne,["prefixCls","size","disabled","loading","className"]),Pe=b.useContext(L.E_),pe=Pe.getPrefixCls,Ie=Pe.direction,Je=b.useContext($.Z),ke=b.useContext(V.Z),De=(ce!=null?ce:ke)||ve,Fe=pe("switch",he),Qe=b.createElement("div",{className:"".concat(Fe,"-handle")},ve&&b.createElement(A.Z,{className:"".concat(Fe,"-loading-icon")})),qe=M()((ue={},(0,g.Z)(ue,"".concat(Fe,"-small"),(Ee||Je)==="small"),(0,g.Z)(ue,"".concat(Fe,"-loading"),ve),(0,g.Z)(ue,"".concat(Fe,"-rtl"),Ie==="rtl"),ue),we);return b.createElement(G.Z,{insertExtraNode:!0},b.createElement(U,(0,x.Z)({},me,{prefixCls:Fe,className:qe,disabled:De,ref:Q,loadingIcon:Qe})))});K.__ANT_SWITCH=!0;var re=K},59560:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(33389),y=o.n(A)},36889:function(oe,N,o){"use strict";o.d(N,{Z:function(){return A}});var x=o(90484),g=o(67294);function A(y,M,w){var m=g.useRef({});function b(v){if(!m.current||m.current.data!==y||m.current.childrenColumnName!==M||m.current.getRowKey!==w){var h=function _(p){p.forEach(function(S,k){var O=w(S,k);d.set(O,S),S&&(0,x.Z)(S)==="object"&&M in S&&_(S[M]||[])})},d=new Map;h(y),m.current={data:y,childrenColumnName:M,kvMap:d,getRowKey:w}}return m.current.kvMap.get(v)}return[b]}},57535:function(oe,N,o){"use strict";o.d(N,{Z:function(){return Af}});var x=o(90484),g=o(96156),A=o(22122),y=o(28481),M=o(35510),w=o.n(M),m=o(28991),b=o(85061),v=o(67294),h=function(Wn){if(!Wn)return!1;if(Wn instanceof Element){if(Wn.offsetParent)return!0;if(Wn.getBBox){var ca=Wn.getBBox(),ra=ca.width,Na=ca.height;if(ra||Na)return!0}if(Wn.getBoundingClientRect){var fi=Wn.getBoundingClientRect(),so=fi.width,vo=fi.height;if(so||vo)return!0}}return!1},d=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
||
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
||
charSet checked classID className colSpan cols content contentEditable contextMenu
|
||
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
||
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
||
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
||
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
||
mediaGroup method min minLength multiple muted name noValidate nonce open
|
||
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
||
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
||
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
||
summary tabIndex target title type useMap value width wmode wrap`,_=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
||
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
||
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
||
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
||
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
||
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
||
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,p="".concat(d," ").concat(_).split(/[\s\n]+/),S="aria-",k="data-";function O(Wn,ca){return Wn.indexOf(ca)===0}function F(Wn){var ca=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ra;ca===!1?ra={aria:!0,data:!0,attr:!0}:ca===!0?ra={aria:!0}:ra=(0,m.Z)({},ca);var Na={};return Object.keys(Wn).forEach(function(fi){(ra.aria&&(fi==="role"||O(fi,S))||ra.data&&O(fi,k)||ra.attr&&p.includes(fi))&&(Na[fi]=Wn[fi])}),Na}function D(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Z=function(ca){if(D()&&window.document.documentElement){var ra=Array.isArray(ca)?ca:[ca],Na=window.document.documentElement;return ra.some(function(fi){return fi in Na.style})}return!1},W=function(ca,ra){if(!Z(ca))return!1;var Na=document.createElement("div"),fi=Na.style[ca];return Na.style[ca]=ra,Na.style[ca]!==fi};function U(Wn,ca){return!Array.isArray(Wn)&&ca!==void 0?W(Wn,ca):Z(Wn)}var L=o(23270),V=o.n(L),$={},G=[],z=function(ca){G.push(ca)};function K(Wn,ca){if(!1)var ra}function re(Wn,ca){if(!1)var ra}function ne(){$={}}function Q(Wn,ca,ra){!ca&&!$[ra]&&(Wn(!1,ra),$[ra]=!0)}function ue(Wn,ca){Q(K,Wn,ca)}function he(Wn,ca){Q(re,Wn,ca)}ue.preMessage=z,ue.resetWarned=ne,ue.noteOnce=he;var Ee=ue,ce=o(50279),ve;function fe(Wn){if(typeof document=="undefined")return 0;if(Wn||ve===void 0){var ca=document.createElement("div");ca.style.width="100%",ca.style.height="200px";var ra=document.createElement("div"),Na=ra.style;Na.position="absolute",Na.top="0",Na.left="0",Na.pointerEvents="none",Na.visibility="hidden",Na.width="200px",Na.height="150px",Na.overflow="hidden",ra.appendChild(ca),document.body.appendChild(ra);var fi=ca.offsetWidth;ra.style.overflow="scroll";var so=ca.offsetWidth;fi===so&&(so=ra.clientWidth),document.body.removeChild(ra),ve=fi-so}return ve}function we(Wn){var ca=Wn.match(/^(.*)px$/),ra=Number(ca==null?void 0:ca[1]);return Number.isNaN(ra)?fe():ra}function me(Wn){if(typeof document=="undefined"||!Wn||!(Wn instanceof Element))return{width:0,height:0};var ca=getComputedStyle(Wn,"::-webkit-scrollbar"),ra=ca.width,Na=ca.height;return{width:we(ra),height:we(Na)}}function Pe(Wn){return null}var pe=Pe;function Ie(Wn){return null}var Je=Ie,ke=o(81253),De=o(54323);function Fe(Wn,ca,ra){var Na=React.useRef({});return(!("value"in Na.current)||ra(Na.current.condition,ca))&&(Na.current.value=Wn(),Na.current.condition=ca),Na.current.value}function Qe(Wn,ca){typeof Wn=="function"?Wn(ca):(0,x.Z)(Wn)==="object"&&Wn&&"current"in Wn&&(Wn.current=ca)}function qe(){for(var Wn=arguments.length,ca=new Array(Wn),ra=0;ra<Wn;ra++)ca[ra]=arguments[ra];var Na=ca.filter(function(fi){return fi});return Na.length<=1?Na[0]:function(fi){ca.forEach(function(so){Qe(so,fi)})}}function et(){for(var Wn=arguments.length,ca=new Array(Wn),ra=0;ra<Wn;ra++)ca[ra]=arguments[ra];return useMemo(function(){return qe.apply(void 0,ca)},ca,function(Na,fi){return Na.length!==fi.length||Na.every(function(so,vo){return so!==fi[vo]})})}function dt(Wn){var ca,ra,Na=(0,De.isMemo)(Wn)?Wn.type.type:Wn.type;return!(typeof Na=="function"&&!((ca=Na.prototype)!==null&&ca!==void 0&&ca.render)||typeof Wn=="function"&&!((ra=Wn.prototype)!==null&&ra!==void 0&&ra.render))}function Ke(Wn){return!isValidElement(Wn)||isFragment(Wn)?!1:dt(Wn)}var Ge="RC_TABLE_KEY";function wt(Wn){return Wn==null?[]:Array.isArray(Wn)?Wn:[Wn]}function Vt(Wn,ca){if(!ca&&typeof ca!="number")return Wn;for(var ra=wt(ca),Na=Wn,fi=0;fi<ra.length;fi+=1){if(!Na)return null;var so=ra[fi];Na=Na[so]}return Na}function gt(Wn){var ca=[],ra={};return Wn.forEach(function(Na){for(var fi=Na||{},so=fi.key,vo=fi.dataIndex,Ro=so||wt(vo).join("-")||Ge;ra[Ro];)Ro="".concat(Ro,"_next");ra[Ro]=!0,ca.push(Ro)}),ca}function it(Wn){return Wn!=null}var Le=v.createContext(!1),ct=Le,at=D()?v.useLayoutEffect:v.useEffect,jt=function(ca,ra){var Na=v.useRef(!0);at(function(){return ca(Na.current)},ra),at(function(){return Na.current=!1,function(){Na.current=!0}},[])},St=function(ca,ra){jt(function(Na){if(!Na)return ca()},ra)},fn=jt;function Xt(Wn){var ca=v.useRef();ca.current=Wn;var ra=v.useCallback(function(){for(var Na,fi=arguments.length,so=new Array(fi),vo=0;vo<fi;vo++)so[vo]=arguments[vo];return(Na=ca.current)===null||Na===void 0?void 0:Na.call.apply(Na,[ca].concat(so))},[]);return ra}function Yt(){var Wn=v.createContext(null),ca=function(Na){var fi=Na.value,so=Na.children,vo=v.useRef(fi);vo.current=fi;var Ro=v.useState(function(){return{getValue:function(){return vo.current},listeners:new Set}}),So=(0,y.Z)(Ro,1),el=So[0];return fn(function(){el.listeners.forEach(function(ul){ul(fi)})},[fi]),v.createElement(Wn.Provider,{value:el},so)};return{Context:Wn,Provider:ca}}function Rt(Wn,ca){var ra=Xt(ca),Na=v.useContext(Wn==null?void 0:Wn.Context),fi=Na||{},so=fi.listeners,vo=fi.getValue,Ro=v.useState(function(){return ra(Na?vo():null)}),So=(0,y.Z)(Ro,2),el=So[0],ul=So[1];return fn(function(){if(!Na)return;function Xo(lo){ul(function(Zs){var Gs=ra(lo);return V()(Zs,Gs)?Zs:Gs})}return so.add(Xo),function(){so.delete(Xo)}},[Na]),el}var Lt=Yt(),ze=Lt,rt=v.createContext(null),tt=rt,de=v.createContext({renderWithProps:!1}),ot=de,Et=["colSpan","rowSpan","style","className"];function Ht(Wn,ca,ra,Na){var fi=Wn+ca-1;return Wn<=Na&&fi>=ra}function Jt(Wn){return Wn&&(0,x.Z)(Wn)==="object"&&!Array.isArray(Wn)&&!v.isValidElement(Wn)}function Qt(Wn){return typeof Wn=="string"?!0:dt(Wn)}var an=function(ca){var ra=ca.ellipsis,Na=ca.rowType,fi=ca.children,so,vo=ra===!0?{showTitle:!0}:ra;return vo&&(vo.showTitle||Na==="header")&&(typeof fi=="string"||typeof fi=="number"?so=fi.toString():v.isValidElement(fi)&&typeof fi.props.children=="string"&&(so=fi.props.children)),so};function Un(Wn,ca){var ra,Na,fi,so=Wn.prefixCls,vo=Wn.className,Ro=Wn.record,So=Wn.index,el=Wn.renderIndex,ul=Wn.dataIndex,Xo=Wn.render,lo=Wn.children,Zs=Wn.component,Gs=Zs===void 0?"td":Zs,$s=Wn.colSpan,Qn=Wn.rowSpan,dr=Wn.fixLeft,Xr=Wn.fixRight,la=Wn.firstFixLeft,Ra=Wn.lastFixLeft,_i=Wn.firstFixRight,ui=Wn.lastFixRight,ho=Wn.appendNode,Oi=Wn.additionalProps,Fo=Oi===void 0?{}:Oi,as=Wn.ellipsis,Fs=Wn.align,Fr=Wn.rowType,tl=Wn.isSticky,Js=Wn.hovering,Us=Wn.onHover,os="".concat(so,"-cell"),El=v.useContext(ot),Bs=v.useContext(ct),gc=v.useContext(tt),kr=gc.allColumnsFixedLeft,Sa=v.useMemo(function(){if(it(lo))return[lo];var Ma=Vt(Ro,ul),Ia=Ma,Ja=void 0;if(Xo){var pi=Xo(Ma,Ro,el);Jt(pi)?(Ia=pi.children,Ja=pi.props,El.renderWithProps=!0):Ia=pi}return[Ia,Ja]},[El.renderWithProps?Math.random():0,lo,ul,El,Ro,Xo,el]),Hi=(0,y.Z)(Sa,2),Co=Hi[0],Ds=Hi[1],Dl=Co;(0,x.Z)(Dl)==="object"&&!Array.isArray(Dl)&&!v.isValidElement(Dl)&&(Dl=null),as&&(Ra||_i)&&(Dl=v.createElement("span",{className:"".concat(os,"-content")},Dl));var Xc=Ds||{},Fl=Xc.colSpan,Eu=Xc.rowSpan,cc=Xc.style,Hu=Xc.className,dc=(0,ke.Z)(Xc,Et),iu=(ra=Fl!==void 0?Fl:$s)!==null&&ra!==void 0?ra:1,Gc=(Na=Eu!==void 0?Eu:Qn)!==null&&Na!==void 0?Na:1;if(iu===0||Gc===0)return null;var Jc={},pf=typeof dr=="number"&&Bs,hn=typeof Xr=="number"&&Bs;pf&&(Jc.position="sticky",Jc.left=dr),hn&&(Jc.position="sticky",Jc.right=Xr);var dn={};Fs&&(dn.textAlign=Fs);var tr=function(Ia){var Ja;Ro&&Us(So,So+Gc-1),Fo==null||(Ja=Fo.onMouseEnter)===null||Ja===void 0||Ja.call(Fo,Ia)},Mn=function(Ia){var Ja;Ro&&Us(-1,-1),Fo==null||(Ja=Fo.onMouseLeave)===null||Ja===void 0||Ja.call(Fo,Ia)},Lr=an({rowType:Fr,ellipsis:as,children:Co}),sa=(0,m.Z)((0,m.Z)((0,m.Z)({title:Lr},dc),Fo),{},{colSpan:iu!==1?iu:null,rowSpan:Gc!==1?Gc:null,className:w()(os,vo,(fi={},(0,g.Z)(fi,"".concat(os,"-fix-left"),pf&&Bs),(0,g.Z)(fi,"".concat(os,"-fix-left-first"),la&&Bs),(0,g.Z)(fi,"".concat(os,"-fix-left-last"),Ra&&Bs),(0,g.Z)(fi,"".concat(os,"-fix-left-all"),Ra&&kr&&Bs),(0,g.Z)(fi,"".concat(os,"-fix-right"),hn&&Bs),(0,g.Z)(fi,"".concat(os,"-fix-right-first"),_i&&Bs),(0,g.Z)(fi,"".concat(os,"-fix-right-last"),ui&&Bs),(0,g.Z)(fi,"".concat(os,"-ellipsis"),as),(0,g.Z)(fi,"".concat(os,"-with-append"),ho),(0,g.Z)(fi,"".concat(os,"-fix-sticky"),(pf||hn)&&tl&&Bs),(0,g.Z)(fi,"".concat(os,"-row-hover"),!Ds&&Js),fi),Fo.className,Hu),style:(0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)({},Fo.style),dn),Jc),cc),onMouseEnter:tr,onMouseLeave:Mn,ref:Qt(Gs)?ca:null});return v.createElement(Gs,sa,ho,Dl)}var qt=v.forwardRef(Un);qt.displayName="Cell";var rn=["expanded","className","hovering"],cn=v.memo(qt,function(Wn,ca){return ca.shouldCellUpdate?rn.every(function(ra){return Wn[ra]===ca[ra]})&&!ca.shouldCellUpdate(ca.record,Wn.record):V()(Wn,ca)}),er=v.forwardRef(function(Wn,ca){var ra=Wn.index,Na=Wn.additionalProps,fi=Na===void 0?{}:Na,so=Wn.colSpan,vo=Wn.rowSpan,Ro=fi.colSpan,So=fi.rowSpan,el=so!=null?so:Ro,ul=vo!=null?vo:So,Xo=Rt(ze,function(Gs){var $s=Ht(ra,ul||1,Gs==null?void 0:Gs.startRow,Gs==null?void 0:Gs.endRow);return{onHover:Gs==null?void 0:Gs.onHover,hovering:$s}}),lo=Xo.onHover,Zs=Xo.hovering;return v.createElement(cn,(0,A.Z)({},Wn,{colSpan:el,rowSpan:ul,hovering:Zs,ref:ca,onHover:lo}))});er.displayName="WrappedCell";var rr=er,nt=v.createContext(null),lr=nt;function Hn(Wn,ca,ra,Na,fi){var so=ra[Wn]||{},vo=ra[ca]||{},Ro,So;so.fixed==="left"?Ro=Na.left[Wn]:vo.fixed==="right"&&(So=Na.right[ca]);var el=!1,ul=!1,Xo=!1,lo=!1,Zs=ra[ca+1],Gs=ra[Wn-1];if(fi==="rtl"){if(Ro!==void 0){var $s=Gs&&Gs.fixed==="left";lo=!$s}else if(So!==void 0){var Qn=Zs&&Zs.fixed==="right";Xo=!Qn}}else if(Ro!==void 0){var dr=Zs&&Zs.fixed==="left";el=!dr}else if(So!==void 0){var Xr=Gs&&Gs.fixed==="right";ul=!Xr}return{fixLeft:Ro,fixRight:So,lastFixLeft:el,firstFixRight:ul,lastFixRight:Xo,firstFixLeft:lo,isSticky:Na.isSticky}}function ut(Wn){var ca=Wn.cells,ra=Wn.stickyOffsets,Na=Wn.flattenColumns,fi=Wn.rowComponent,so=Wn.cellComponent,vo=Wn.onHeaderRow,Ro=Wn.index,So=v.useContext(lr),el=So.prefixCls,ul=So.direction,Xo;vo&&(Xo=vo(ca.map(function(Zs){return Zs.column}),Ro));var lo=gt(ca.map(function(Zs){return Zs.column}));return v.createElement(fi,Xo,ca.map(function(Zs,Gs){var $s=Zs.column,Qn=Hn(Zs.colStart,Zs.colEnd,Na,ra,ul),dr;return $s&&$s.onHeaderCell&&(dr=Zs.column.onHeaderCell($s)),v.createElement(rr,(0,A.Z)({},Zs,{ellipsis:$s.ellipsis,align:$s.align,component:so,prefixCls:el,key:lo[Gs]},Qn,{additionalProps:dr,rowType:"header"}))}))}ut.displayName="HeaderRow";var bt=ut;function We(Wn){var ca=[];function ra(vo,Ro){var So=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ca[So]=ca[So]||[];var el=Ro,ul=vo.filter(Boolean).map(function(Xo){var lo={key:Xo.key,className:Xo.className||"",children:Xo.title,column:Xo,colStart:el},Zs=1,Gs=Xo.children;return Gs&&Gs.length>0&&(Zs=ra(Gs,el,So+1).reduce(function($s,Qn){return $s+Qn},0),lo.hasSubColumns=!0),"colSpan"in Xo&&(Zs=Xo.colSpan),"rowSpan"in Xo&&(lo.rowSpan=Xo.rowSpan),lo.colSpan=Zs,lo.colEnd=lo.colStart+Zs-1,ca[So].push(lo),el+=Zs,Zs});return ul}ra(Wn,0);for(var Na=ca.length,fi=function(Ro){ca[Ro].forEach(function(So){!("rowSpan"in So)&&!So.hasSubColumns&&(So.rowSpan=Na-Ro)})},so=0;so<Na;so+=1)fi(so);return ca}function be(Wn){var ca=Wn.stickyOffsets,ra=Wn.columns,Na=Wn.flattenColumns,fi=Wn.onHeaderRow,so=v.useContext(lr),vo=so.prefixCls,Ro=so.getComponent,So=v.useMemo(function(){return We(ra)},[ra]),el=Ro(["header","wrapper"],"thead"),ul=Ro(["header","row"],"tr"),Xo=Ro(["header","cell"],"th");return v.createElement(el,{className:"".concat(vo,"-thead")},So.map(function(lo,Zs){var Gs=v.createElement(bt,{key:Zs,flattenColumns:Na,cells:lo,stickyOffsets:ca,rowComponent:ul,cellComponent:Xo,onHeaderRow:fi,index:Zs});return Gs}))}var Ae=be,Ue=v.createContext(null),$e=Ue;function kt(Wn){var ca=Wn.prefixCls,ra=Wn.children,Na=Wn.component,fi=Wn.cellComponent,so=Wn.className,vo=Wn.expanded,Ro=Wn.colSpan,So=Wn.isEmpty,el=v.useContext(lr),ul=el.scrollbarSize,Xo=v.useContext($e),lo=Xo.fixHeader,Zs=Xo.fixColumn,Gs=Xo.componentWidth,$s=Xo.horizonScroll;return v.useMemo(function(){var Qn=ra;return(So?$s:Zs)&&(Qn=v.createElement("div",{style:{width:Gs-(lo?ul:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ca,"-expanded-row-fixed")},Gs!==0&&Qn)),v.createElement(Na,{className:so,style:{display:vo?null:"none"}},v.createElement(rr,{component:fi,prefixCls:ca,colSpan:Ro},Qn))},[ra,Na,so,vo,Ro,So,ul,Gs,Zs,lo,$s])}var lt=kt,vt=v.createContext(null),Ct=vt;function Bt(Wn){var ca=Wn.className,ra=Wn.style,Na=Wn.record,fi=Wn.index,so=Wn.renderIndex,vo=Wn.rowKey,Ro=Wn.rowExpandable,So=Wn.expandedKeys,el=Wn.onRow,ul=Wn.indent,Xo=ul===void 0?0:ul,lo=Wn.rowComponent,Zs=Wn.cellComponent,Gs=Wn.childrenColumnName,$s=v.useContext(lr),Qn=$s.prefixCls,dr=$s.fixedInfoList,Xr=v.useContext(tt),la=Xr.flattenColumns,Ra=Xr.expandableType,_i=Xr.expandRowByClick,ui=Xr.onTriggerExpand,ho=Xr.rowClassName,Oi=Xr.expandedRowClassName,Fo=Xr.indentSize,as=Xr.expandIcon,Fs=Xr.expandedRowRender,Fr=Xr.expandIconColumnIndex,tl=v.useState(!1),Js=(0,y.Z)(tl,2),Us=Js[0],os=Js[1],El=So&&So.has(Wn.recordKey);v.useEffect(function(){El&&os(!0)},[El]);var Bs=Ra==="row"&&(!Ro||Ro(Na)),gc=Ra==="nest",kr=Gs&&Na&&Na[Gs],Sa=Bs||gc,Hi=v.useRef(ui);Hi.current=ui;var Co=function(){Hi.current.apply(Hi,arguments)},Ds=el==null?void 0:el(Na,fi),Dl=function(Gc){var Jc;_i&&Sa&&Co(Na,Gc);for(var pf=arguments.length,hn=new Array(pf>1?pf-1:0),dn=1;dn<pf;dn++)hn[dn-1]=arguments[dn];Ds==null||(Jc=Ds.onClick)===null||Jc===void 0||Jc.call.apply(Jc,[Ds,Gc].concat(hn))},Xc;typeof ho=="string"?Xc=ho:typeof ho=="function"&&(Xc=ho(Na,fi,Xo));var Fl=gt(la),Eu=v.createElement(lo,(0,A.Z)({},Ds,{"data-row-key":vo,className:w()(ca,"".concat(Qn,"-row"),"".concat(Qn,"-row-level-").concat(Xo),Xc,Ds&&Ds.className),style:(0,m.Z)((0,m.Z)({},ra),Ds?Ds.style:null),onClick:Dl}),la.map(function(iu,Gc){var Jc=iu.render,pf=iu.dataIndex,hn=iu.className,dn=Fl[Gc],tr=dr[Gc],Mn;Gc===(Fr||0)&&gc&&(Mn=v.createElement(v.Fragment,null,v.createElement("span",{style:{paddingLeft:"".concat(Fo*Xo,"px")},className:"".concat(Qn,"-row-indent indent-level-").concat(Xo)}),as({prefixCls:Qn,expanded:El,expandable:kr,record:Na,onExpand:Co})));var Lr;return iu.onCell&&(Lr=iu.onCell(Na,fi)),v.createElement(rr,(0,A.Z)({className:hn,ellipsis:iu.ellipsis,align:iu.align,component:Zs,prefixCls:Qn,key:dn,record:Na,index:fi,renderIndex:so,dataIndex:pf,render:Jc,shouldCellUpdate:iu.shouldCellUpdate,expanded:Mn&&El},tr,{appendNode:Mn,additionalProps:Lr}))})),cc;if(Bs&&(Us||El)){var Hu=Fs(Na,fi,Xo+1,El),dc=Oi&&Oi(Na,fi,Xo);cc=v.createElement(lt,{expanded:El,className:w()("".concat(Qn,"-expanded-row"),"".concat(Qn,"-expanded-row-level-").concat(Xo+1),dc),prefixCls:Qn,component:lo,cellComponent:Zs,colSpan:la.length,isEmpty:!1},Hu)}return v.createElement(v.Fragment,null,Eu,cc)}Bt.displayName="BodyRow";var mt=Bt;function Zt(Wn,ca,ra,Na,fi,so){var vo=[];vo.push({record:Wn,indent:ca,index:so});var Ro=fi(Wn),So=Na==null?void 0:Na.has(Ro);if(Wn&&Array.isArray(Wn[ra])&&So)for(var el=0;el<Wn[ra].length;el+=1){var ul=Zt(Wn[ra][el],ca+1,ra,Na,fi,el);vo.push.apply(vo,(0,b.Z)(ul))}return vo}function zt(Wn,ca,ra,Na){var fi=v.useMemo(function(){if(ra==null?void 0:ra.size){for(var so=[],vo=0;vo<(Wn==null?void 0:Wn.length);vo+=1){var Ro=Wn[vo];so.push.apply(so,(0,b.Z)(Zt(Ro,0,ca,ra,Na,vo)))}return so}return Wn==null?void 0:Wn.map(function(So,el){return{record:So,indent:0,index:el}})},[Wn,ca,ra,Na]);return fi}function ln(Wn){var ca=Wn.columnKey,ra=Wn.onColumnResize,Na=v.useRef();return v.useEffect(function(){Na.current&&ra(ca,Na.current.offsetWidth)},[]),v.createElement(ce.default,{data:ca},v.createElement("td",{ref:Na,style:{padding:0,border:0,height:0}},v.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function An(Wn){var ca=Wn.prefixCls,ra=Wn.columnsKey,Na=Wn.onColumnResize;return v.createElement("tr",{"aria-hidden":"true",className:"".concat(ca,"-measure-row"),style:{height:0,fontSize:0}},v.createElement(ce.default.Collection,{onBatchResize:function(so){so.forEach(function(vo){var Ro=vo.data,So=vo.size;Na(Ro,So.offsetWidth)})}},ra.map(function(fi){return v.createElement(ln,{key:fi,columnKey:fi,onColumnResize:Na})})))}function En(Wn){var ca=Wn.data,ra=Wn.getRowKey,Na=Wn.measureColumnWidth,fi=Wn.expandedKeys,so=Wn.onRow,vo=Wn.rowExpandable,Ro=Wn.emptyNode,So=Wn.childrenColumnName,el=v.useContext(Ct),ul=el.onColumnResize,Xo=v.useContext(lr),lo=Xo.prefixCls,Zs=Xo.getComponent,Gs=v.useContext(tt),$s=Gs.flattenColumns,Qn=zt(ca,So,fi,ra),dr=v.useRef({renderWithProps:!1}),Xr=v.useState(-1),la=(0,y.Z)(Xr,2),Ra=la[0],_i=la[1],ui=v.useState(-1),ho=(0,y.Z)(ui,2),Oi=ho[0],Fo=ho[1],as=v.useCallback(function(Fr,tl){_i(Fr),Fo(tl)},[]),Fs=v.useMemo(function(){var Fr=Zs(["body","wrapper"],"tbody"),tl=Zs(["body","row"],"tr"),Js=Zs(["body","cell"],"td"),Us;ca.length?Us=Qn.map(function(El,Bs){var gc=El.record,kr=El.indent,Sa=El.index,Hi=ra(gc,Bs);return v.createElement(mt,{key:Hi,rowKey:Hi,record:gc,recordKey:Hi,index:Bs,renderIndex:Sa,rowComponent:tl,cellComponent:Js,expandedKeys:fi,onRow:so,getRowKey:ra,rowExpandable:vo,childrenColumnName:So,indent:kr})}):Us=v.createElement(lt,{expanded:!0,className:"".concat(lo,"-placeholder"),prefixCls:lo,component:tl,cellComponent:Js,colSpan:$s.length,isEmpty:!0},Ro);var os=gt($s);return v.createElement(Fr,{className:"".concat(lo,"-tbody")},Na&&v.createElement(An,{prefixCls:lo,columnsKey:os,onColumnResize:ul}),Us)},[ca,lo,so,Na,fi,ra,Zs,Ro,$s,So,ul,vo,Qn]);return v.createElement(ot.Provider,{value:dr.current},v.createElement(ze.Provider,{value:{startRow:Ra,endRow:Oi,onHover:as}},Fs))}var Gn=v.memo(En);Gn.displayName="Body";var Bn=Gn;function pr(Wn){var ca=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ra=[];return v.Children.forEach(Wn,function(Na){Na==null&&!ca.keepEmpty||(Array.isArray(Na)?ra=ra.concat(pr(Na)):(0,De.isFragment)(Na)&&Na.props?ra=ra.concat(pr(Na.props.children,ca)):ra.push(Na))}),ra}var _r=["expandable"],na="RC_TABLE_INTERNAL_COL_DEFINE";function $n(Wn){var ca=Wn.expandable,ra=(0,ke.Z)(Wn,_r),Na;return"expandable"in Wn?Na=(0,m.Z)((0,m.Z)({},ra),ca):Na=ra,Na.showExpandColumn===!1&&(Na.expandIconColumnIndex=-1),Na}var qr={},Jr=["children"],Aa=["fixed"];function ya(Wn){return pr(Wn).filter(function(ca){return v.isValidElement(ca)}).map(function(ca){var ra=ca.key,Na=ca.props,fi=Na.children,so=(0,ke.Z)(Na,Jr),vo=(0,m.Z)({key:ra},so);return fi&&(vo.children=ya(fi)),vo})}function $t(Wn){return Wn.reduce(function(ca,ra){var Na=ra.fixed,fi=Na===!0?"left":Na,so=ra.children;return so&&so.length>0?[].concat((0,b.Z)(ca),(0,b.Z)($t(so).map(function(vo){return(0,m.Z)({fixed:fi},vo)}))):[].concat((0,b.Z)(ca),[(0,m.Z)((0,m.Z)({},ra),{},{fixed:fi})])},[])}function wn(Wn){for(var ca=!0,ra=0;ra<Wn.length;ra+=1){var Na=Wn[ra];if(ca&&Na.fixed!=="left")ca=!1;else if(!ca&&Na.fixed==="left"){warning(!1,"Index ".concat(ra-1," of `columns` missing `fixed='left'` prop."));break}}for(var fi=!0,so=Wn.length-1;so>=0;so-=1){var vo=Wn[so];if(fi&&vo.fixed!=="right")fi=!1;else if(!fi&&vo.fixed==="right"){warning(!1,"Index ".concat(so+1," of `columns` missing `fixed='right'` prop."));break}}}function Fn(Wn){return Wn.map(function(ca){var ra=ca.fixed,Na=(0,ke.Z)(ca,Aa),fi=ra;return ra==="left"?fi="right":ra==="right"&&(fi="left"),(0,m.Z)({fixed:fi},Na)})}function Or(Wn,ca){var ra=Wn.prefixCls,Na=Wn.columns,fi=Wn.children,so=Wn.expandable,vo=Wn.expandedKeys,Ro=Wn.columnTitle,So=Wn.getRowKey,el=Wn.onTriggerExpand,ul=Wn.expandIcon,Xo=Wn.rowExpandable,lo=Wn.expandIconColumnIndex,Zs=Wn.direction,Gs=Wn.expandRowByClick,$s=Wn.columnWidth,Qn=Wn.fixed,dr=v.useMemo(function(){return Na||ya(fi)},[Na,fi]),Xr=v.useMemo(function(){if(so){var _i,ui=dr.slice();if(!ui.includes(qr)){var ho=lo||0;ho>=0&&ui.splice(ho,0,qr)}var Oi=ui.indexOf(qr);ui=ui.filter(function(Fr,tl){return Fr!==qr||tl===Oi});var Fo=dr[Oi],as;(Qn==="left"||Qn)&&!lo?as="left":(Qn==="right"||Qn)&&lo===dr.length?as="right":as=Fo?Fo.fixed:null;var Fs=(_i={},(0,g.Z)(_i,na,{className:"".concat(ra,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,g.Z)(_i,"title",Ro),(0,g.Z)(_i,"fixed",as),(0,g.Z)(_i,"className","".concat(ra,"-row-expand-icon-cell")),(0,g.Z)(_i,"width",$s),(0,g.Z)(_i,"render",function(tl,Js,Us){var os=So(Js,Us),El=vo.has(os),Bs=Xo?Xo(Js):!0,gc=ul({prefixCls:ra,expanded:El,expandable:Bs,record:Js,onExpand:el});return Gs?v.createElement("span",{onClick:function(Sa){return Sa.stopPropagation()}},gc):gc}),_i);return ui.map(function(Fr){return Fr===qr?Fs:Fr})}return dr.filter(function(Fr){return Fr!==qr})},[so,dr,So,vo,ul,Zs]),la=v.useMemo(function(){var _i=Xr;return ca&&(_i=ca(_i)),_i.length||(_i=[{render:function(){return null}}]),_i},[ca,Xr,Zs]),Ra=v.useMemo(function(){return Zs==="rtl"?Fn($t(la)):$t(la)},[la,Zs]);return[la,Ra]}var vr=Or;function Ur(Wn){var ca=(0,v.useRef)(Wn),ra=(0,v.useState)({}),Na=(0,y.Z)(ra,2),fi=Na[1],so=(0,v.useRef)(null),vo=(0,v.useRef)([]);function Ro(So){vo.current.push(So);var el=Promise.resolve();so.current=el,el.then(function(){if(so.current===el){var ul=vo.current,Xo=ca.current;vo.current=[],ul.forEach(function(lo){ca.current=lo(ca.current)}),so.current=null,Xo!==ca.current&&fi({})}})}return(0,v.useEffect)(function(){return function(){so.current=null}},[]),[ca.current,Ro]}function Zr(Wn){var ca=(0,v.useRef)(Wn||null),ra=(0,v.useRef)();function Na(){window.clearTimeout(ra.current)}function fi(vo){ca.current=vo,Na(),ra.current=window.setTimeout(function(){ca.current=null,ra.current=void 0},100)}function so(){return ca.current}return(0,v.useEffect)(function(){return Na},[]),[fi,so]}function Kr(Wn,ca,ra){var Na=(0,v.useMemo)(function(){for(var fi=[],so=[],vo=0,Ro=0,So=0;So<ca;So+=1)if(ra==="rtl"){so[So]=Ro,Ro+=Wn[So]||0;var el=ca-So-1;fi[el]=vo,vo+=Wn[el]||0}else{fi[So]=vo,vo+=Wn[So]||0;var ul=ca-So-1;so[ul]=Ro,Ro+=Wn[ul]||0}return{left:fi,right:so}},[Wn,ca,ra]);return Na}var ba=Kr,Ri=["columnType"];function Ea(Wn){for(var ca=Wn.colWidths,ra=Wn.columns,Na=Wn.columCount,fi=[],so=Na||ra.length,vo=!1,Ro=so-1;Ro>=0;Ro-=1){var So=ca[Ro],el=ra&&ra[Ro],ul=el&&el[na];if(So||ul||vo){var Xo=ul||{},lo=Xo.columnType,Zs=(0,ke.Z)(Xo,Ri);fi.unshift(v.createElement("col",(0,A.Z)({key:Ro,style:{width:So}},Zs))),vo=!0}}return v.createElement("colgroup",null,fi)}var Pi=Ea;function rs(Wn){var ca=Wn.className,ra=Wn.children;return v.createElement("div",{className:ca},ra)}var Ui=rs,Cn=v.createContext({}),Kn=Cn;function Pn(Wn){var ca=Wn.className,ra=Wn.index,Na=Wn.children,fi=Wn.colSpan,so=fi===void 0?1:fi,vo=Wn.rowSpan,Ro=Wn.align,So=v.useContext(lr),el=So.prefixCls,ul=So.direction,Xo=v.useContext(Kn),lo=Xo.scrollColumnIndex,Zs=Xo.stickyOffsets,Gs=Xo.flattenColumns,$s=ra+so-1,Qn=$s+1===lo?so+1:so,dr=Hn(ra,ra+Qn-1,Gs,Zs,ul);return v.createElement(rr,(0,A.Z)({className:ca,index:ra,component:"td",prefixCls:el,record:null,dataIndex:null,align:Ro,colSpan:Qn,rowSpan:vo,render:function(){return Na}},dr))}var At=["children"];function ar(Wn){var ca=Wn.children,ra=(0,ke.Z)(Wn,At);return v.createElement("tr",ra,ca)}function ta(Wn){var ca=Wn.children;return ca}ta.Row=ar,ta.Cell=Pn;var Yn=ta;function Qa(Wn){var ca=Wn.children,ra=Wn.stickyOffsets,Na=Wn.flattenColumns,fi=v.useContext(lr),so=fi.prefixCls,vo=Na.length-1,Ro=Na[vo],So=v.useMemo(function(){return{stickyOffsets:ra,flattenColumns:Na,scrollColumnIndex:(Ro==null?void 0:Ro.scrollbar)?vo:null}},[Ro,Na,vo,ra]);return v.createElement(Kn.Provider,{value:So},v.createElement("tfoot",{className:"".concat(so,"-summary")},ca))}var Ua=Qa,Fi=Yn;function Xa(Wn){var ca,ra=Wn.prefixCls,Na=Wn.record,fi=Wn.onExpand,so=Wn.expanded,vo=Wn.expandable,Ro="".concat(ra,"-row-expand-icon");if(!vo)return v.createElement("span",{className:w()(Ro,"".concat(ra,"-row-spaced"))});var So=function(ul){fi(Na,ul),ul.stopPropagation()};return v.createElement("span",{className:w()(Ro,(ca={},(0,g.Z)(ca,"".concat(ra,"-row-expanded"),so),(0,g.Z)(ca,"".concat(ra,"-row-collapsed"),!so),ca)),onClick:So})}function $i(Wn,ca,ra){var Na=[];function fi(so){(so||[]).forEach(function(vo,Ro){Na.push(ca(vo,Ro)),fi(vo[ra])})}return fi(Wn),Na}var La=o(73935);function ja(Wn,ca,ra,Na){var fi=La.unstable_batchedUpdates?function(vo){La.unstable_batchedUpdates(ra,vo)}:ra;return Wn!=null&&Wn.addEventListener&&Wn.addEventListener(ca,fi,Na),{remove:function(){Wn!=null&&Wn.removeEventListener&&Wn.removeEventListener(ca,fi,Na)}}}var ei=/margin|padding|width|height|max|min|offset/,Do={left:!0,top:!0},yo={cssFloat:1,styleFloat:1,float:1};function to(Wn){return Wn.nodeType===1?Wn.ownerDocument.defaultView.getComputedStyle(Wn,null):{}}function fs(Wn,ca,ra){if(ca=ca.toLowerCase(),ra==="auto"){if(ca==="height")return Wn.offsetHeight;if(ca==="width")return Wn.offsetWidth}return ca in Do||(Do[ca]=ei.test(ca)),Do[ca]?parseFloat(ra)||0:ra}function cs(Wn,ca){var ra=arguments.length,Na=to(Wn);return ca=yo[ca]?"cssFloat"in Wn.style?"cssFloat":"styleFloat":ca,ra===1?Na:fs(Wn,ca,Na[ca]||Wn.style[ca])}function Os(Wn,ca,ra){var Na=arguments.length;if(ca=yo[ca]?"cssFloat"in Wn.style?"cssFloat":"styleFloat":ca,Na===3)return typeof ra=="number"&&ei.test(ca)&&(ra="".concat(ra,"px")),Wn.style[ca]=ra,ra;for(var fi in ca)ca.hasOwnProperty(fi)&&Os(Wn,fi,ca[fi]);return to(Wn)}function vl(Wn){return Wn===document.body?document.documentElement.clientWidth:Wn.offsetWidth}function Ar(Wn){return Wn===document.body?window.innerHeight||document.documentElement.clientHeight:Wn.offsetHeight}function Rn(){var Wn=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),ca=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Wn,height:ca}}function Sr(){var Wn=document.documentElement.clientWidth,ca=window.innerHeight||document.documentElement.clientHeight;return{width:Wn,height:ca}}function nn(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function sn(Wn){var ca=Wn.getBoundingClientRect(),ra=document.documentElement;return{left:ca.left+(window.pageXOffset||ra.scrollLeft)-(ra.clientLeft||document.body.clientLeft||0),top:ca.top+(window.pageYOffset||ra.scrollTop)-(ra.clientTop||document.body.clientTop||0)}}var Ot=function(ca,ra){var Na,fi,so=ca.scrollBodyRef,vo=ca.onScroll,Ro=ca.offsetScroll,So=ca.container,el=v.useContext(lr),ul=el.prefixCls,Xo=((Na=so.current)===null||Na===void 0?void 0:Na.scrollWidth)||0,lo=((fi=so.current)===null||fi===void 0?void 0:fi.clientWidth)||0,Zs=Xo&&lo*(lo/Xo),Gs=v.useRef(),$s=Ur({scrollLeft:0,isHiddenScrollBar:!1}),Qn=(0,y.Z)($s,2),dr=Qn[0],Xr=Qn[1],la=v.useRef({delta:0,x:0}),Ra=v.useState(!1),_i=(0,y.Z)(Ra,2),ui=_i[0],ho=_i[1],Oi=function(){ho(!1)},Fo=function(Js){Js.persist(),la.current.delta=Js.pageX-dr.scrollLeft,la.current.x=0,ho(!0),Js.preventDefault()},as=function(Js){var Us,os=Js||((Us=window)===null||Us===void 0?void 0:Us.event),El=os.buttons;if(!ui||El===0){ui&&ho(!1);return}var Bs=la.current.x+Js.pageX-la.current.x-la.current.delta;Bs<=0&&(Bs=0),Bs+Zs>=lo&&(Bs=lo-Zs),vo({scrollLeft:Bs/lo*(Xo+2)}),la.current.x=Js.pageX},Fs=function(){if(!!so.current){var Js=sn(so.current).top,Us=Js+so.current.offsetHeight,os=So===window?document.documentElement.scrollTop+window.innerHeight:sn(So).top+So.clientHeight;Us-fe()<=os||Js>=os-Ro?Xr(function(El){return(0,m.Z)((0,m.Z)({},El),{},{isHiddenScrollBar:!0})}):Xr(function(El){return(0,m.Z)((0,m.Z)({},El),{},{isHiddenScrollBar:!1})})}},Fr=function(Js){Xr(function(Us){return(0,m.Z)((0,m.Z)({},Us),{},{scrollLeft:Js/Xo*lo||0})})};return v.useImperativeHandle(ra,function(){return{setScrollLeft:Fr}}),v.useEffect(function(){var tl=ja(document.body,"mouseup",Oi,!1),Js=ja(document.body,"mousemove",as,!1);return Fs(),function(){tl.remove(),Js.remove()}},[Zs,ui]),v.useEffect(function(){var tl=ja(So,"scroll",Fs,!1),Js=ja(window,"resize",Fs,!1);return function(){tl.remove(),Js.remove()}},[So]),v.useEffect(function(){dr.isHiddenScrollBar||Xr(function(tl){var Js=so.current;return Js?(0,m.Z)((0,m.Z)({},tl),{},{scrollLeft:Js.scrollLeft/Js.scrollWidth*Js.clientWidth}):tl})},[dr.isHiddenScrollBar]),Xo<=lo||!Zs||dr.isHiddenScrollBar?null:v.createElement("div",{style:{height:fe(),width:lo,bottom:Ro},className:"".concat(ul,"-sticky-scroll")},v.createElement("div",{onMouseDown:Fo,ref:Gs,className:w()("".concat(ul,"-sticky-scroll-bar"),(0,g.Z)({},"".concat(ul,"-sticky-scroll-bar-active"),ui)),style:{width:"".concat(Zs,"px"),transform:"translate3d(".concat(dr.scrollLeft,"px, 0, 0)")}}))},gr=v.forwardRef(Ot),Gr=D()?window:null;function Ln(Wn,ca){var ra=(0,x.Z)(Wn)==="object"?Wn:{},Na=ra.offsetHeader,fi=Na===void 0?0:Na,so=ra.offsetSummary,vo=so===void 0?0:so,Ro=ra.offsetScroll,So=Ro===void 0?0:Ro,el=ra.getContainer,ul=el===void 0?function(){return Gr}:el,Xo=ul()||Gr;return v.useMemo(function(){var lo=!!Wn;return{isSticky:lo,stickyClassName:lo?"".concat(ca,"-sticky-holder"):"",offsetHeader:fi,offsetSummary:vo,offsetScroll:So,container:Xo}},[So,fi,vo,ca,Xo])}var Tr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Dn(Wn,ca){return(0,v.useMemo)(function(){for(var ra=[],Na=0;Na<ca;Na+=1){var fi=Wn[Na];if(fi!==void 0)ra[Na]=fi;else return null}return ra},[Wn.join("_"),ca])}var Pr=v.forwardRef(function(Wn,ca){var ra=Wn.className,Na=Wn.noData,fi=Wn.columns,so=Wn.flattenColumns,vo=Wn.colWidths,Ro=Wn.columCount,So=Wn.stickyOffsets,el=Wn.direction,ul=Wn.fixHeader,Xo=Wn.stickyTopOffset,lo=Wn.stickyBottomOffset,Zs=Wn.stickyClassName,Gs=Wn.onScroll,$s=Wn.maxContentScroll,Qn=Wn.children,dr=(0,ke.Z)(Wn,Tr),Xr=v.useContext(lr),la=Xr.prefixCls,Ra=Xr.scrollbarSize,_i=Xr.isSticky,ui=_i&&!ul?0:Ra,ho=v.useRef(null),Oi=v.useCallback(function(os){Qe(ca,os),Qe(ho,os)},[]);v.useEffect(function(){var os;function El(Bs){var gc=Bs.currentTarget,kr=Bs.deltaX;kr&&(Gs({currentTarget:gc,scrollLeft:gc.scrollLeft+kr}),Bs.preventDefault())}return(os=ho.current)===null||os===void 0||os.addEventListener("wheel",El),function(){var Bs;(Bs=ho.current)===null||Bs===void 0||Bs.removeEventListener("wheel",El)}},[]);var Fo=v.useMemo(function(){return so.every(function(os){return os.width>=0})},[so]),as=so[so.length-1],Fs={fixed:as?as.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(la,"-cell-scrollbar")}}},Fr=(0,v.useMemo)(function(){return ui?[].concat((0,b.Z)(fi),[Fs]):fi},[ui,fi]),tl=(0,v.useMemo)(function(){return ui?[].concat((0,b.Z)(so),[Fs]):so},[ui,so]),Js=(0,v.useMemo)(function(){var os=So.right,El=So.left;return(0,m.Z)((0,m.Z)({},So),{},{left:el==="rtl"?[].concat((0,b.Z)(El.map(function(Bs){return Bs+ui})),[0]):El,right:el==="rtl"?os:[].concat((0,b.Z)(os.map(function(Bs){return Bs+ui})),[0]),isSticky:_i})},[ui,So,_i]),Us=Dn(vo,Ro);return v.createElement("div",{style:(0,m.Z)({overflow:"hidden"},_i?{top:Xo,bottom:lo}:{}),ref:Oi,className:w()(ra,(0,g.Z)({},Zs,!!Zs))},v.createElement("table",{style:{tableLayout:"fixed",visibility:Na||Us?null:"hidden"}},(!Na||!$s||Fo)&&v.createElement(Pi,{colWidths:Us?[].concat((0,b.Z)(Us),[ui]):[],columCount:Ro+1,columns:tl}),Qn((0,m.Z)((0,m.Z)({},dr),{},{stickyOffsets:Js,columns:Fr,flattenColumns:tl}))))});Pr.displayName="FixedHolder";var fa=Pr,ka=[],Li={},zi="rc-table-internal-hook",Mo=v.memo(function(Wn){var ca=Wn.children;return ca},function(Wn,ca){return V()(Wn.props,ca.props)?Wn.pingLeft!==ca.pingLeft||Wn.pingRight!==ca.pingRight:!1});function Za(Wn){var ca,ra=Wn.prefixCls,Na=Wn.className,fi=Wn.rowClassName,so=Wn.style,vo=Wn.data,Ro=Wn.rowKey,So=Wn.scroll,el=Wn.tableLayout,ul=Wn.direction,Xo=Wn.title,lo=Wn.footer,Zs=Wn.summary,Gs=Wn.id,$s=Wn.showHeader,Qn=Wn.components,dr=Wn.emptyText,Xr=Wn.onRow,la=Wn.onHeaderRow,Ra=Wn.internalHooks,_i=Wn.transformColumns,ui=Wn.internalRefs,ho=Wn.sticky,Oi=vo||ka,Fo=!!Oi.length,as=v.useCallback(function(Hf,Qc){return Vt(Qn||{},Hf)||Qc},[Qn]),Fs=v.useMemo(function(){return typeof Ro=="function"?Ro:function(Hf){var Qc=Hf&&Hf[Ro];return Qc}},[Ro]),Fr=$n(Wn),tl=Fr.expandIcon,Js=Fr.expandedRowKeys,Us=Fr.defaultExpandedRowKeys,os=Fr.defaultExpandAllRows,El=Fr.expandedRowRender,Bs=Fr.columnTitle,gc=Fr.onExpand,kr=Fr.onExpandedRowsChange,Sa=Fr.expandRowByClick,Hi=Fr.rowExpandable,Co=Fr.expandIconColumnIndex,Ds=Fr.expandedRowClassName,Dl=Fr.childrenColumnName,Xc=Fr.indentSize,Fl=tl||Xa,Eu=Dl||"children",cc=v.useMemo(function(){return El?"row":Wn.expandable&&Ra===zi&&Wn.expandable.__PARENT_RENDER_ICON__||Oi.some(function(Hf){return Hf&&(0,x.Z)(Hf)==="object"&&Hf[Eu]})?"nest":!1},[!!El,Oi]),Hu=v.useState(function(){return Us||(os?$i(Oi,Fs,Eu):[])}),dc=(0,y.Z)(Hu,2),iu=dc[0],Gc=dc[1],Jc=v.useMemo(function(){return new Set(Js||iu||[])},[Js,iu]),pf=v.useCallback(function(Hf){var Qc=Fs(Hf,Oi.indexOf(Hf)),bp,cv=Jc.has(Qc);cv?(Jc.delete(Qc),bp=(0,b.Z)(Jc)):bp=[].concat((0,b.Z)(Jc),[Qc]),Gc(bp),gc&&gc(!cv,Hf),kr&&kr(bp)},[Fs,Jc,Oi,gc,kr]),hn=v.useState(0),dn=(0,y.Z)(hn,2),tr=dn[0],Mn=dn[1],Lr=vr((0,m.Z)((0,m.Z)((0,m.Z)({},Wn),Fr),{},{expandable:!!El,columnTitle:Bs,expandedKeys:Jc,getRowKey:Fs,onTriggerExpand:pf,expandIcon:Fl,expandIconColumnIndex:Co,direction:ul}),Ra===zi?_i:null),sa=(0,y.Z)(Lr,2),Ma=sa[0],Ia=sa[1],Ja=v.useMemo(function(){return{columns:Ma,flattenColumns:Ia}},[Ma,Ia]),pi=v.useRef(),fo=v.useRef(),us=v.useRef(),xo=v.useRef(),Qo=v.useRef(),gs=v.useState(!1),ds=(0,y.Z)(gs,2),nl=ds[0],nc=ds[1],Kl=v.useState(!1),mu=(0,y.Z)(Kl,2),xc=mu[0],Ll=mu[1],wc=Ur(new Map),Xu=(0,y.Z)(wc,2),_u=Xu[0],wu=Xu[1],fu=gt(Ia),Kc=fu.map(function(Hf){return _u.get(Hf)}),td=v.useMemo(function(){return Kc},[Kc.join("_")]),Ic=ba(td,Ia.length,ul),tu=So&&it(So.y),jf=So&&it(So.x)||Boolean(Fr.fixed),Tu=jf&&Ia.some(function(Hf){var Qc=Hf.fixed;return Qc}),Ed=v.useRef(),vd=Ln(ho,ra),Gu=vd.isSticky,Op=vd.offsetHeader,np=vd.offsetSummary,$d=vd.offsetScroll,hd=vd.stickyClassName,Ip=vd.container,dd=Zs==null?void 0:Zs(Oi),cr=(tu||Gu)&&v.isValidElement(dd)&&dd.type===Yn&&dd.props.fixed,un,Jn,Xn;tu&&(Jn={overflowY:"scroll",maxHeight:So.y}),jf&&(un={overflowX:"auto"},tu||(Jn={overflowY:"hidden"}),Xn={width:(So==null?void 0:So.x)===!0?"auto":So==null?void 0:So.x,minWidth:"100%"});var Vr=v.useCallback(function(Hf,Qc){h(pi.current)&&wu(function(bp){if(bp.get(Hf)!==Qc){var cv=new Map(bp);return cv.set(Hf,Qc),cv}return bp})},[]),Zn=Zr(null),pa=(0,y.Z)(Zn,2),Ha=pa[0],gi=pa[1];function co(Hf,Qc){!Qc||(typeof Qc=="function"?Qc(Hf):Qc.scrollLeft!==Hf&&(Qc.scrollLeft=Hf))}var No=function(Qc){var bp=Qc.currentTarget,cv=Qc.scrollLeft,nh=ul==="rtl",Kv=typeof cv=="number"?cv:bp.scrollLeft,am=bp||Li;if(!gi()||gi()===am){var Nh;Ha(am),co(Kv,fo.current),co(Kv,us.current),co(Kv,Qo.current),co(Kv,(Nh=Ed.current)===null||Nh===void 0?void 0:Nh.setScrollLeft)}if(bp){var Lp=bp.scrollWidth,sh=bp.clientWidth;if(Lp===sh){nc(!1),Ll(!1);return}nh?(nc(-Kv<Lp-sh),Ll(-Kv>0)):(nc(Kv>0),Ll(Kv<Lp-sh))}},Ko=function(){jf&&us.current?No({currentTarget:us.current}):(nc(!1),Ll(!1))},Jo=function(Qc){var bp=Qc.width;bp!==tr&&(Ko(),Mn(pi.current?pi.current.offsetWidth:bp))},gl=v.useRef(!1);v.useEffect(function(){gl.current&&Ko()},[jf,vo,Ma.length]),v.useEffect(function(){gl.current=!0},[]);var js=v.useState(0),Zl=(0,y.Z)(js,2),ko=Zl[0],te=Zl[1],Me=v.useState(!0),ft=(0,y.Z)(Me,2),Nt=ft[0],xn=ft[1];v.useEffect(function(){us.current instanceof Element?te(me(us.current).width):te(me(xo.current).width),xn(U("position","sticky"))},[]),v.useEffect(function(){Ra===zi&&ui&&(ui.body.current=us.current)});var Yr=as(["table"],"table"),qa=v.useMemo(function(){return el||(Tu?(So==null?void 0:So.x)==="max-content"?"auto":"fixed":tu||Gu||Ia.some(function(Hf){var Qc=Hf.ellipsis;return Qc})?"fixed":"auto")},[tu,Tu,Ia,el,Gu]),Es,Qs={colWidths:td,columCount:Ia.length,stickyOffsets:Ic,onHeaderRow:la,fixHeader:tu,scroll:So},Hl=v.useMemo(function(){return Fo?null:typeof dr=="function"?dr():dr},[Fo,dr]),Lc=v.createElement(Bn,{data:Oi,measureColumnWidth:tu||jf||Gu,expandedKeys:Jc,rowExpandable:Hi,getRowKey:Fs,onRow:Xr,emptyNode:Hl,childrenColumnName:Eu}),Pu=v.createElement(Pi,{colWidths:Ia.map(function(Hf){var Qc=Hf.width;return Qc}),columns:Ia}),Yf=as(["body"]);if(tu||Gu){var yv;typeof Yf=="function"?(yv=Yf(Oi,{scrollbarSize:ko,ref:us,onScroll:No}),Qs.colWidths=Ia.map(function(Hf,Qc){var bp=Hf.width,cv=Qc===Ma.length-1?bp-ko:bp;return typeof cv=="number"&&!Number.isNaN(cv)?cv:(Ee(!1,"When use `components.body` with render props. Each column should have a fixed `width` value."),0)})):yv=v.createElement("div",{style:(0,m.Z)((0,m.Z)({},un),Jn),onScroll:No,ref:us,className:w()("".concat(ra,"-body"))},v.createElement(Yr,{style:(0,m.Z)((0,m.Z)({},Xn),{},{tableLayout:qa})},Pu,Lc,!cr&&dd&&v.createElement(Ua,{stickyOffsets:Ic,flattenColumns:Ia},dd)));var Cp=(0,m.Z)((0,m.Z)((0,m.Z)({noData:!Oi.length,maxContentScroll:jf&&So.x==="max-content"},Qs),Ja),{},{direction:ul,stickyClassName:hd,onScroll:No});Es=v.createElement(v.Fragment,null,$s!==!1&&v.createElement(fa,(0,A.Z)({},Cp,{stickyTopOffset:Op,className:"".concat(ra,"-header"),ref:fo}),function(Hf){return v.createElement(v.Fragment,null,v.createElement(Ae,Hf),cr==="top"&&v.createElement(Ua,Hf,dd))}),yv,cr&&cr!=="top"&&v.createElement(fa,(0,A.Z)({},Cp,{stickyBottomOffset:np,className:"".concat(ra,"-summary"),ref:Qo}),function(Hf){return v.createElement(Ua,Hf,dd)}),Gu&&v.createElement(gr,{ref:Ed,offsetScroll:$d,scrollBodyRef:us,onScroll:No,container:Ip}))}else Es=v.createElement("div",{style:(0,m.Z)((0,m.Z)({},un),Jn),className:w()("".concat(ra,"-content")),onScroll:No,ref:us},v.createElement(Yr,{style:(0,m.Z)((0,m.Z)({},Xn),{},{tableLayout:qa})},Pu,$s!==!1&&v.createElement(Ae,(0,A.Z)({},Qs,Ja)),Lc,dd&&v.createElement(Ua,{stickyOffsets:Ic,flattenColumns:Ia},dd)));var kv=F(Wn,{aria:!0,data:!0}),Nv=v.createElement("div",(0,A.Z)({className:w()(ra,Na,(ca={},(0,g.Z)(ca,"".concat(ra,"-rtl"),ul==="rtl"),(0,g.Z)(ca,"".concat(ra,"-ping-left"),nl),(0,g.Z)(ca,"".concat(ra,"-ping-right"),xc),(0,g.Z)(ca,"".concat(ra,"-layout-fixed"),el==="fixed"),(0,g.Z)(ca,"".concat(ra,"-fixed-header"),tu),(0,g.Z)(ca,"".concat(ra,"-fixed-column"),Tu),(0,g.Z)(ca,"".concat(ra,"-scroll-horizontal"),jf),(0,g.Z)(ca,"".concat(ra,"-has-fix-left"),Ia[0]&&Ia[0].fixed),(0,g.Z)(ca,"".concat(ra,"-has-fix-right"),Ia[Ia.length-1]&&Ia[Ia.length-1].fixed==="right"),ca)),style:so,id:Gs,ref:pi},kv),v.createElement(Mo,{pingLeft:nl,pingRight:xc,props:(0,m.Z)((0,m.Z)({},Wn),{},{stickyOffsets:Ic,mergedExpandedKeys:Jc})},Xo&&v.createElement(Ui,{className:"".concat(ra,"-title")},Xo(Oi)),v.createElement("div",{ref:xo,className:"".concat(ra,"-container")},Es),lo&&v.createElement(Ui,{className:"".concat(ra,"-footer")},lo(Oi))));jf&&(Nv=v.createElement(ce.default,{onResize:Jo},Nv));var Pv=v.useMemo(function(){return{prefixCls:ra,getComponent:as,scrollbarSize:ko,direction:ul,fixedInfoList:Ia.map(function(Hf,Qc){return Hn(Qc,Qc,Ia,Ic,ul)}),isSticky:Gu}},[ra,as,ko,ul,Ia,Ic,Gu]),sp=v.useMemo(function(){return(0,m.Z)((0,m.Z)({},Ja),{},{tableLayout:qa,rowClassName:fi,expandedRowClassName:Ds,expandIcon:Fl,expandableType:cc,expandRowByClick:Sa,expandedRowRender:El,onTriggerExpand:pf,expandIconColumnIndex:Co,indentSize:Xc,allColumnsFixedLeft:Ja.flattenColumns.every(function(Hf){return Hf.fixed==="left"})})},[Ja,qa,fi,Ds,Fl,cc,Sa,El,pf,Co,Xc]),Wp=v.useMemo(function(){return{componentWidth:tr,fixHeader:tu,fixColumn:Tu,horizonScroll:jf}},[tr,tu,Tu,jf]),$h=v.useMemo(function(){return{onColumnResize:Vr}},[Vr]);return v.createElement(ct.Provider,{value:Nt},v.createElement(lr.Provider,{value:Pv},v.createElement(tt.Provider,{value:sp},v.createElement($e.Provider,{value:Wp},v.createElement(Ct.Provider,{value:$h},Nv)))))}Za.EXPAND_COLUMN=qr,Za.Column=Je,Za.ColumnGroup=pe,Za.Summary=Fi,Za.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var ao=Za,Mi=ao,Eo=o(69252),Xi=o(9054),Bo=o(21042),ol=o(10772),Il=o(31312),ms=o(24002),mc=o(3989),Ys=o(87240),hl=o(28101);function Rs(Wn,ca,ra,Na){var fi=ra-ca;return Wn/=Na/2,Wn<1?fi/2*Wn*Wn*Wn+ca:fi/2*((Wn-=2)*Wn*Wn+2)+ca}function xl(Wn){return Wn!=null&&Wn===Wn.window}function Wl(Wn,ca){var ra,Na;if(typeof window=="undefined")return 0;var fi=ca?"scrollTop":"scrollLeft",so=0;return xl(Wn)?so=Wn[ca?"pageYOffset":"pageXOffset"]:Wn instanceof Document?so=Wn.documentElement[fi]:(Wn instanceof HTMLElement||Wn)&&(so=Wn[fi]),Wn&&!xl(Wn)&&typeof so!="number"&&(so=(Na=((ra=Wn.ownerDocument)!==null&&ra!==void 0?ra:Wn).documentElement)===null||Na===void 0?void 0:Na[fi]),so}function _l(Wn){var ca=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ra=ca.getContainer,Na=ra===void 0?function(){return window}:ra,fi=ca.callback,so=ca.duration,vo=so===void 0?450:so,Ro=Na(),So=Wl(Ro,!0),el=Date.now(),ul=function Xo(){var lo=Date.now(),Zs=lo-el,Gs=Rs(Zs>vo?vo:Zs,So,Wn,vo);xl(Ro)?Ro.scrollTo(window.pageXOffset,Gs):Ro instanceof Document||Ro.constructor.name==="HTMLDocument"?Ro.documentElement.scrollTop=Gs:Ro.scrollTop=Gs,Zs<vo?(0,hl.Z)(Xo):typeof fi=="function"&&fi()};(0,hl.Z)(ul)}function Ls(Wn){return null}var zn=Ls;function Dr(Wn){return null}var Hr=Dr;function _a(Wn){return function(ra){var Na,fi=ra.prefixCls,so=ra.onExpand,vo=ra.record,Ro=ra.expanded,So=ra.expandable,el="".concat(fi,"-row-expand-icon");return v.createElement("button",{type:"button",onClick:function(Xo){so(vo,Xo),Xo.stopPropagation()},className:w()(el,(Na={},(0,g.Z)(Na,"".concat(el,"-spaced"),!So),(0,g.Z)(Na,"".concat(el,"-expanded"),So&&Ro),(0,g.Z)(Na,"".concat(el,"-collapsed"),So&&!Ro),Na)),"aria-label":Ro?Wn.collapse:Wn.expand,"aria-expanded":Ro})}}var Ti=_a;function Ci(Wn,ca){return"key"in Wn&&Wn.key!==void 0&&Wn.key!==null?Wn.key:Wn.dataIndex?Array.isArray(Wn.dataIndex)?Wn.dataIndex.join("."):Wn.dataIndex:ca}function da(Wn,ca){return ca?"".concat(ca,"-").concat(Wn):"".concat(Wn)}function Da(Wn,ca){return typeof Wn=="function"?Wn(ca):Wn}function mi(Wn,ca){var ra=Da(Wn,ca);return Object.prototype.toString.call(ra)==="[object Object]"?"":ra}var Ho={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},al=Ho,ml=o(27029),Xs=function(ca,ra){return v.createElement(ml.Z,(0,m.Z)((0,m.Z)({},ca),{},{ref:ra,icon:al}))};Xs.displayName="FilterFilled";var Ps=v.forwardRef(Xs),dl=o(18446),ql=o.n(dl),Dc=o(48429),Jl=o(42091),oc=o(3531),xu=o(3418),yf=o(36707),ku=o(66948),Zc=o(32620),Zu=o(54943),Fc=o(72370);function Hc(Wn){var ca=v.useRef(Wn),ra=(0,Fc.Z)();return[function(){return ca.current},function(Na){ca.current=Na,ra()}]}var Vu=o(76570),ws=o(50532);function fc(Wn){var ca=Wn.value,ra=Wn.onChange,Na=Wn.filterSearch,fi=Wn.tablePrefixCls,so=Wn.locale;return Na?v.createElement("div",{className:"".concat(fi,"-filter-dropdown-search")},v.createElement(ws.Z,{prefix:v.createElement(Vu.Z,null),placeholder:so.filterSearchPlaceholder,onChange:ra,value:ca,htmlSize:1,className:"".concat(fi,"-filter-dropdown-search-input")})):null}var Tc=fc,jc=o(18209),lu=function(ca){var ra=ca.keyCode;ra===jc.Z.ENTER&&ca.stopPropagation()},hu=function(ca){return v.createElement("div",{className:ca.className,onClick:function(Na){return Na.stopPropagation()},onKeyDown:lu},ca.children)},of=hu;function uu(Wn){return Wn.some(function(ca){var ra=ca.children;return ra})}function zu(Wn,ca){return typeof ca=="string"||typeof ca=="number"?ca==null?void 0:ca.toString().toLowerCase().includes(Wn.trim().toLowerCase()):!1}function cf(Wn){var ca=Wn.filters,ra=Wn.prefixCls,Na=Wn.filteredKeys,fi=Wn.filterMultiple,so=Wn.searchValue,vo=Wn.filterSearch;return ca.map(function(Ro,So){var el=String(Ro.value);if(Ro.children)return{key:el||So,label:Ro.text,popupClassName:"".concat(ra,"-dropdown-submenu"),children:cf({filters:Ro.children,prefixCls:ra,filteredKeys:Na,filterMultiple:fi,searchValue:so,filterSearch:vo})};var ul=fi?Jl.Z:Zc.ZP,Xo={key:Ro.value!==void 0?el:So,label:v.createElement(v.Fragment,null,v.createElement(ul,{checked:Na.includes(el)}),v.createElement("span",null,Ro.text))};return so.trim()?typeof vo=="function"?vo(so,Ro)?Xo:null:zu(so,Ro.text)?Xo:null:Xo})}function bf(Wn){var ca,ra=Wn.tablePrefixCls,Na=Wn.prefixCls,fi=Wn.column,so=Wn.dropdownPrefixCls,vo=Wn.columnKey,Ro=Wn.filterMultiple,So=Wn.filterMode,el=So===void 0?"menu":So,ul=Wn.filterSearch,Xo=ul===void 0?!1:ul,lo=Wn.filterState,Zs=Wn.triggerFilter,Gs=Wn.locale,$s=Wn.children,Qn=Wn.getPopupContainer,dr=fi.filterDropdownOpen,Xr=fi.onFilterDropdownOpenChange,la=fi.filterDropdownVisible,Ra=fi.onFilterDropdownVisibleChange,_i=fi.filterResetToDefaultFilteredValue,ui=fi.defaultFilteredValue,ho=v.useState(!1),Oi=(0,y.Z)(ho,2),Fo=Oi[0],as=Oi[1],Fs=!!(lo&&(((ca=lo.filteredKeys)===null||ca===void 0?void 0:ca.length)||lo.forceFiltered)),Fr=function(Qo){as(Qo),Xr==null||Xr(Qo),Ra==null||Ra(Qo)},tl;typeof dr=="boolean"?tl=dr:tl=typeof la=="boolean"?la:Fo;var Js=lo==null?void 0:lo.filteredKeys,Us=Hc(Js||[]),os=(0,y.Z)(Us,2),El=os[0],Bs=os[1],gc=function(Qo){var gs=Qo.selectedKeys;Bs(gs)},kr=function(Qo,gs){var ds=gs.node,nl=gs.checked;gc(Ro?{selectedKeys:Qo}:{selectedKeys:nl&&ds.key?[ds.key]:[]})};v.useEffect(function(){!Fo||gc({selectedKeys:Js||[]})},[Js]);var Sa=v.useState([]),Hi=(0,y.Z)(Sa,2),Co=Hi[0],Ds=Hi[1],Dl=function(Qo){Ds(Qo)},Xc=v.useState(""),Fl=(0,y.Z)(Xc,2),Eu=Fl[0],cc=Fl[1],Hu=function(Qo){var gs=Qo.target.value;cc(gs)};v.useEffect(function(){Fo||cc("")},[Fo]);var dc=function(Qo){var gs=Qo&&Qo.length?Qo:null;if(gs===null&&(!lo||!lo.filteredKeys)||ql()(gs,lo==null?void 0:lo.filteredKeys))return null;Zs({column:fi,key:vo,filteredKeys:gs})},iu=function(){Fr(!1),dc(El())},Gc=function(){var Qo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1},gs=Qo.confirm,ds=Qo.closeDropdown;gs&&dc([]),ds&&Fr(!1),cc(""),Bs(_i?(ui||[]).map(function(nl){return String(nl)}):[])},Jc=function(){var Qo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0},gs=Qo.closeDropdown;gs&&Fr(!1),dc(El())},pf=function(Qo){Qo&&Js!==void 0&&Bs(Js||[]),Fr(Qo),!Qo&&!fi.filterDropdown&&iu()},hn=w()((0,g.Z)({},"".concat(so,"-menu-without-submenu"),!uu(fi.filters||[]))),dn=function(Qo){if(Qo.target.checked){var gs=Tf(fi==null?void 0:fi.filters).map(function(ds){return String(ds)});Bs(gs)}else Bs([])},tr=function xo(Qo){var gs=Qo.filters;return(gs||[]).map(function(ds,nl){var nc=String(ds.value),Kl={title:ds.text,key:ds.value!==void 0?nc:nl};return ds.children&&(Kl.children=xo({filters:ds.children})),Kl})},Mn=function xo(Qo){var gs;return(0,A.Z)((0,A.Z)({},Qo),{text:Qo.title,value:Qo.key,children:((gs=Qo.children)===null||gs===void 0?void 0:gs.map(function(ds){return xo(ds)}))||[]})},Lr;if(typeof fi.filterDropdown=="function")Lr=fi.filterDropdown({prefixCls:"".concat(so,"-custom"),setSelectedKeys:function(Qo){return gc({selectedKeys:Qo})},selectedKeys:El(),confirm:Jc,clearFilters:Gc,filters:fi.filters,visible:tl,close:function(){Fr(!1)}});else if(fi.filterDropdown)Lr=fi.filterDropdown;else{var sa=El()||[],Ma=function(){return(fi.filters||[]).length===0?v.createElement(xu.Z,{image:xu.Z.PRESENTED_IMAGE_SIMPLE,description:Gs.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):el==="tree"?v.createElement(v.Fragment,null,v.createElement(Tc,{filterSearch:Xo,value:Eu,onChange:Hu,tablePrefixCls:ra,locale:Gs}),v.createElement("div",{className:"".concat(ra,"-filter-dropdown-tree")},Ro?v.createElement(Jl.Z,{checked:sa.length===Tf(fi.filters).length,indeterminate:sa.length>0&&sa.length<Tf(fi.filters).length,className:"".concat(ra,"-filter-dropdown-checkall"),onChange:dn},Gs.filterCheckall):null,v.createElement(Zu.Z,{checkable:!0,selectable:!1,blockNode:!0,multiple:Ro,checkStrictly:!Ro,className:"".concat(so,"-menu"),onCheck:kr,checkedKeys:sa,selectedKeys:sa,showIcon:!1,treeData:tr({filters:fi.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Eu.trim()?function(Qo){return typeof Xo=="function"?Xo(Eu,Mn(Qo)):zu(Eu,Qo.title)}:void 0}))):v.createElement(v.Fragment,null,v.createElement(Tc,{filterSearch:Xo,value:Eu,onChange:Hu,tablePrefixCls:ra,locale:Gs}),v.createElement(yf.Z,{selectable:!0,multiple:Ro,prefixCls:"".concat(so,"-menu"),className:hn,onSelect:gc,onDeselect:gc,selectedKeys:sa,getPopupContainer:Qn,openKeys:Co,onOpenChange:Dl,items:cf({filters:fi.filters||[],filterSearch:Xo,prefixCls:Na,filteredKeys:El(),filterMultiple:Ro,searchValue:Eu})}))},Ia=function(){return _i?ql()((ui||[]).map(function(Qo){return String(Qo)}),sa):sa.length===0};Lr=v.createElement(v.Fragment,null,Ma(),v.createElement("div",{className:"".concat(Na,"-dropdown-btns")},v.createElement(Dc.Z,{type:"link",size:"small",disabled:Ia(),onClick:function(){return Gc()}},Gs.filterReset),v.createElement(Dc.Z,{type:"primary",size:"small",onClick:iu},Gs.filterConfirm)))}fi.filterDropdown&&(Lr=v.createElement(ku.J,{selectable:void 0},Lr));var Ja=function(){return v.createElement(of,{className:"".concat(Na,"-dropdown")},Lr)},pi;typeof fi.filterIcon=="function"?pi=fi.filterIcon(Fs):fi.filterIcon?pi=fi.filterIcon:pi=v.createElement(Ps,null);var fo=v.useContext(Xi.E_),us=fo.direction;return v.createElement("div",{className:"".concat(Na,"-column")},v.createElement("span",{className:"".concat(ra,"-column-title")},$s),v.createElement(oc.Z,{dropdownRender:Ja,trigger:["click"],open:tl,onOpenChange:pf,getPopupContainer:Qn,placement:us==="rtl"?"bottomLeft":"bottomRight"},v.createElement("span",{role:"button",tabIndex:-1,className:w()("".concat(Na,"-trigger"),{active:Fs}),onClick:function(Qo){Qo.stopPropagation()}},pi)))}var Cu=bf;function rf(Wn,ca,ra){var Na=[];return(Wn||[]).forEach(function(fi,so){var vo,Ro=da(so,ra);if(fi.filters||"filterDropdown"in fi||"onFilter"in fi)if("filteredValue"in fi){var So=fi.filteredValue;"filterDropdown"in fi||(So=(vo=So==null?void 0:So.map(String))!==null&&vo!==void 0?vo:So),Na.push({column:fi,key:Ci(fi,Ro),filteredKeys:So,forceFiltered:fi.filtered})}else Na.push({column:fi,key:Ci(fi,Ro),filteredKeys:ca&&fi.defaultFilteredValue?fi.defaultFilteredValue:void 0,forceFiltered:fi.filtered});"children"in fi&&(Na=[].concat((0,b.Z)(Na),(0,b.Z)(rf(fi.children,ca,Ro))))}),Na}function Bu(Wn,ca,ra,Na,fi,so,vo,Ro){return ra.map(function(So,el){var ul=da(el,Ro),Xo=So.filterMultiple,lo=Xo===void 0?!0:Xo,Zs=So.filterMode,Gs=So.filterSearch,$s=So;if($s.filters||$s.filterDropdown){var Qn=Ci($s,ul),dr=Na.find(function(Xr){var la=Xr.key;return Qn===la});$s=(0,A.Z)((0,A.Z)({},$s),{title:function(la){return v.createElement(Cu,{tablePrefixCls:Wn,prefixCls:"".concat(Wn,"-filter"),dropdownPrefixCls:ca,column:$s,columnKey:Qn,filterState:dr,filterMultiple:lo,filterMode:Zs,filterSearch:Gs,triggerFilter:fi,locale:vo,getPopupContainer:so},Da(So.title,la))}})}return"children"in $s&&($s=(0,A.Z)((0,A.Z)({},$s),{children:Bu(Wn,ca,$s.children,Na,fi,so,vo,ul)})),$s})}function Tf(Wn){var ca=[];return(Wn||[]).forEach(function(ra){var Na=ra.value,fi=ra.children;ca.push(Na),fi&&(ca=[].concat((0,b.Z)(ca),(0,b.Z)(Tf(fi))))}),ca}function ed(Wn){var ca={};return Wn.forEach(function(ra){var Na=ra.key,fi=ra.filteredKeys,so=ra.column,vo=so.filters,Ro=so.filterDropdown;if(Ro)ca[Na]=fi||null;else if(Array.isArray(fi)){var So=Tf(vo);ca[Na]=So.filter(function(el){return fi.includes(String(el))})}else ca[Na]=null}),ca}function Fd(Wn,ca){return ca.reduce(function(ra,Na){var fi=Na.column,so=fi.onFilter,vo=fi.filters,Ro=Na.filteredKeys;return so&&Ro&&Ro.length?ra.filter(function(So){return Ro.some(function(el){var ul=Tf(vo),Xo=ul.findIndex(function(Zs){return String(Zs)===String(el)}),lo=Xo!==-1?ul[Xo]:el;return so(lo,So)})}):ra},Wn)}function Pd(Wn){var ca=Wn.prefixCls,ra=Wn.dropdownPrefixCls,Na=Wn.mergedColumns,fi=Wn.onFilterChange,so=Wn.getPopupContainer,vo=Wn.locale,Ro=v.useState(function(){return rf(Na,!0)}),So=(0,y.Z)(Ro,2),el=So[0],ul=So[1],Xo=v.useMemo(function(){var $s=rf(Na,!1),Qn=!0,dr=!0;return $s.forEach(function(Xr){var la=Xr.filteredKeys;la!==void 0?Qn=!1:dr=!1}),Qn?el:$s},[Na,el]),lo=v.useMemo(function(){return ed(Xo)},[Xo]),Zs=function(Qn){var dr=Xo.filter(function(Xr){var la=Xr.key;return la!==Qn.key});dr.push(Qn),ul(dr),fi(ed(dr),dr)},Gs=function(Qn){return Bu(ca,ra,Qn,Xo,Zs,so,vo)};return[Gs,Xo,lo]}var Nc=Pd,eu=o(36889),If=function(Wn,ca){var ra={};for(var Na in Wn)Object.prototype.hasOwnProperty.call(Wn,Na)&&ca.indexOf(Na)<0&&(ra[Na]=Wn[Na]);if(Wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fi=0,Na=Object.getOwnPropertySymbols(Wn);fi<Na.length;fi++)ca.indexOf(Na[fi])<0&&Object.prototype.propertyIsEnumerable.call(Wn,Na[fi])&&(ra[Na[fi]]=Wn[Na[fi]]);return ra},$f=10;function Te(Wn,ca){var ra={current:ca.current,pageSize:ca.pageSize},Na=Wn&&(0,x.Z)(Wn)==="object"?Wn:{};return Object.keys(Na).forEach(function(fi){var so=ca[fi];typeof so!="function"&&(ra[fi]=so)}),ra}function _t(){for(var Wn={},ca=arguments.length,ra=new Array(ca),Na=0;Na<ca;Na++)ra[Na]=arguments[Na];return ra.forEach(function(fi){fi&&Object.keys(fi).forEach(function(so){var vo=fi[so];vo!==void 0&&(Wn[so]=vo)})}),Wn}function Vn(Wn,ca,ra){var Na=ca&&(0,x.Z)(ca)==="object"?ca:{},fi=Na.total,so=fi===void 0?0:fi,vo=If(Na,["total"]),Ro=(0,v.useState)(function(){return{current:"defaultCurrent"in vo?vo.defaultCurrent:1,pageSize:"defaultPageSize"in vo?vo.defaultPageSize:$f}}),So=(0,y.Z)(Ro,2),el=So[0],ul=So[1],Xo=_t(el,vo,{total:so>0?so:Wn}),lo=Math.ceil((so||Wn)/Xo.pageSize);Xo.current>lo&&(Xo.current=lo||1);var Zs=function(Qn,dr){ul({current:Qn!=null?Qn:1,pageSize:dr||Xo.pageSize})},Gs=function(Qn,dr){var Xr;ca&&((Xr=ca.onChange)===null||Xr===void 0||Xr.call(ca,Qn,dr)),Zs(Qn,dr),ra(Qn,dr||(Xo==null?void 0:Xo.pageSize))};return ca===!1?[{},function(){}]:[(0,A.Z)((0,A.Z)({},Xo),{onChange:Gs}),Zs]}var br=o(99809),tn=o(57254),Pt=o(5409),on=o(57725),_n=o(93254),ir=o(92866),xr={},aa="SELECT_ALL",oi="SELECT_INVERT",ni="SELECT_NONE",yi=[];function Zo(Wn,ca){var ra=[];return(Wn||[]).forEach(function(Na){ra.push(Na),Na&&(0,x.Z)(Na)==="object"&&ca in Na&&(ra=[].concat((0,b.Z)(ra),(0,b.Z)(Zo(Na[ca],ca))))}),ra}function is(Wn,ca){var ra=Wn||{},Na=ra.preserveSelectedRowKeys,fi=ra.selectedRowKeys,so=ra.defaultSelectedRowKeys,vo=ra.getCheckboxProps,Ro=ra.onChange,So=ra.onSelect,el=ra.onSelectAll,ul=ra.onSelectInvert,Xo=ra.onSelectNone,lo=ra.onSelectMultiple,Zs=ra.columnWidth,Gs=ra.type,$s=ra.selections,Qn=ra.fixed,dr=ra.renderCell,Xr=ra.hideSelectAll,la=ra.checkStrictly,Ra=la===void 0?!0:la,_i=ca.prefixCls,ui=ca.data,ho=ca.pageData,Oi=ca.getRecordByKey,Fo=ca.getRowKey,as=ca.expandType,Fs=ca.childrenColumnName,Fr=ca.locale,tl=ca.getPopupContainer,Js=(0,ir.Z)(fi||so||yi,{value:fi}),Us=(0,y.Z)(Js,2),os=Us[0],El=Us[1],Bs=v.useRef(new Map),gc=(0,v.useCallback)(function(Mn){if(Na){var Lr=new Map;Mn.forEach(function(sa){var Ma=Oi(sa);!Ma&&Bs.current.has(sa)&&(Ma=Bs.current.get(sa)),Lr.set(sa,Ma)}),Bs.current=Lr}},[Oi,Na]);v.useEffect(function(){gc(os)},[os]);var kr=(0,v.useMemo)(function(){return Ra?{keyEntities:null}:(0,_n.I8)(ui,{externalGetKey:Fo,childrenPropName:Fs})},[ui,Fo,Ra,Fs]),Sa=kr.keyEntities,Hi=(0,v.useMemo)(function(){return Zo(ho,Fs)},[ho,Fs]),Co=(0,v.useMemo)(function(){var Mn=new Map;return Hi.forEach(function(Lr,sa){var Ma=Fo(Lr,sa),Ia=(vo?vo(Lr):null)||{};Mn.set(Ma,Ia)}),Mn},[Hi,Fo,vo]),Ds=(0,v.useCallback)(function(Mn){var Lr;return!!((Lr=Co.get(Fo(Mn)))===null||Lr===void 0?void 0:Lr.disabled)},[Co,Fo]),Dl=(0,v.useMemo)(function(){if(Ra)return[os||[],[]];var Mn=(0,on.S)(os,!0,Sa,Ds),Lr=Mn.checkedKeys,sa=Mn.halfCheckedKeys;return[Lr||[],sa]},[os,Ra,Sa,Ds]),Xc=(0,y.Z)(Dl,2),Fl=Xc[0],Eu=Xc[1],cc=(0,v.useMemo)(function(){var Mn=Gs==="radio"?Fl.slice(0,1):Fl;return new Set(Mn)},[Fl,Gs]),Hu=(0,v.useMemo)(function(){return Gs==="radio"?new Set:new Set(Eu)},[Eu,Gs]),dc=(0,v.useState)(null),iu=(0,y.Z)(dc,2),Gc=iu[0],Jc=iu[1];v.useEffect(function(){Wn||El(yi)},[!!Wn]);var pf=(0,v.useCallback)(function(Mn,Lr){var sa,Ma;gc(Mn),Na?(sa=Mn,Ma=Mn.map(function(Ia){return Bs.current.get(Ia)})):(sa=[],Ma=[],Mn.forEach(function(Ia){var Ja=Oi(Ia);Ja!==void 0&&(sa.push(Ia),Ma.push(Ja))})),El(sa),Ro==null||Ro(sa,Ma,{type:Lr})},[El,Oi,Ro,Na]),hn=(0,v.useCallback)(function(Mn,Lr,sa,Ma){if(So){var Ia=sa.map(function(Ja){return Oi(Ja)});So(Oi(Mn),Lr,Ia,Ma)}pf(sa,"single")},[So,Oi,pf]),dn=(0,v.useMemo)(function(){if(!$s||Xr)return null;var Mn=$s===!0?[aa,oi,ni]:$s;return Mn.map(function(Lr){return Lr===aa?{key:"all",text:Fr.selectionAll,onSelect:function(){pf(ui.map(function(Ma,Ia){return Fo(Ma,Ia)}).filter(function(Ma){var Ia=Co.get(Ma);return!(Ia==null?void 0:Ia.disabled)||cc.has(Ma)}),"all")}}:Lr===oi?{key:"invert",text:Fr.selectInvert,onSelect:function(){var Ma=new Set(cc);ho.forEach(function(Ja,pi){var fo=Fo(Ja,pi),us=Co.get(fo);(us==null?void 0:us.disabled)||(Ma.has(fo)?Ma.delete(fo):Ma.add(fo))});var Ia=Array.from(Ma);ul&&ul(Ia),pf(Ia,"invert")}}:Lr===ni?{key:"none",text:Fr.selectNone,onSelect:function(){Xo==null||Xo(),pf(Array.from(cc).filter(function(Ma){var Ia=Co.get(Ma);return Ia==null?void 0:Ia.disabled}),"none")}}:Lr}).map(function(Lr){return(0,A.Z)((0,A.Z)({},Lr),{onSelect:function(){for(var Ma,Ia,Ja=arguments.length,pi=new Array(Ja),fo=0;fo<Ja;fo++)pi[fo]=arguments[fo];(Ia=Lr.onSelect)===null||Ia===void 0||(Ma=Ia).call.apply(Ma,[Lr].concat(pi)),Jc(null)}})})},[$s,cc,ho,Fo,ul,pf]),tr=(0,v.useCallback)(function(Mn){var Lr;if(!Wn)return Mn.filter(function(Ic){return Ic!==xr});var sa=(0,b.Z)(Mn),Ma=new Set(cc),Ia=Hi.map(Fo).filter(function(Ic){return!Co.get(Ic).disabled}),Ja=Ia.every(function(Ic){return Ma.has(Ic)}),pi=Ia.some(function(Ic){return Ma.has(Ic)}),fo=function(){var tu=[];Ja?Ia.forEach(function(Tu){Ma.delete(Tu),tu.push(Tu)}):Ia.forEach(function(Tu){Ma.has(Tu)||(Ma.add(Tu),tu.push(Tu))});var jf=Array.from(Ma);el==null||el(!Ja,jf.map(function(Tu){return Oi(Tu)}),tu.map(function(Tu){return Oi(Tu)})),pf(jf,"all"),Jc(null)},us;if(Gs!=="radio"){var xo;if(dn){var Qo={getPopupContainer:tl,items:dn.map(function(Ic,tu){var jf=Ic.key,Tu=Ic.text,Ed=Ic.onSelect;return{key:jf||tu,onClick:function(){Ed==null||Ed(Ia)},label:Tu}})};xo=v.createElement("div",{className:"".concat(_i,"-selection-extra")},v.createElement(oc.Z,{menu:Qo,getPopupContainer:tl},v.createElement("span",null,v.createElement(tn.Z,null))))}var gs=Hi.map(function(Ic,tu){var jf=Fo(Ic,tu),Tu=Co.get(jf)||{};return(0,A.Z)({checked:Ma.has(jf)},Tu)}).filter(function(Ic){var tu=Ic.disabled;return tu}),ds=!!gs.length&&gs.length===Hi.length,nl=ds&&gs.every(function(Ic){var tu=Ic.checked;return tu}),nc=ds&&gs.some(function(Ic){var tu=Ic.checked;return tu});us=!Xr&&v.createElement("div",{className:"".concat(_i,"-selection")},v.createElement(Jl.Z,{checked:ds?nl:!!Hi.length&&Ja,indeterminate:ds?!nl&&nc:!Ja&&pi,onChange:fo,disabled:Hi.length===0||ds,"aria-label":xo?"Custom selection":"Select all",skipGroup:!0}),xo)}var Kl;Gs==="radio"?Kl=function(tu,jf,Tu){var Ed=Fo(jf,Tu),vd=Ma.has(Ed);return{node:v.createElement(Zc.ZP,(0,A.Z)({},Co.get(Ed),{checked:vd,onClick:function(Op){return Op.stopPropagation()},onChange:function(Op){Ma.has(Ed)||hn(Ed,!0,[Ed],Op.nativeEvent)}})),checked:vd}}:Kl=function(tu,jf,Tu){var Ed,vd=Fo(jf,Tu),Gu=Ma.has(vd),Op=Hu.has(vd),np=Co.get(vd),$d;return as==="nest"?$d=Op:$d=(Ed=np==null?void 0:np.indeterminate)!==null&&Ed!==void 0?Ed:Op,{node:v.createElement(Jl.Z,(0,A.Z)({},np,{indeterminate:$d,checked:Gu,skipGroup:!0,onClick:function(Ip){return Ip.stopPropagation()},onChange:function(Ip){var dd=Ip.nativeEvent,cr=dd.shiftKey,un=-1,Jn=-1;if(cr&&Ra){var Xn=new Set([Gc,vd]);Ia.some(function(js,Zl){if(Xn.has(js))if(un===-1)un=Zl;else return Jn=Zl,!0;return!1})}if(Jn!==-1&&un!==Jn&&Ra){var Vr=Ia.slice(un,Jn+1),Zn=[];Gu?Vr.forEach(function(js){Ma.has(js)&&(Zn.push(js),Ma.delete(js))}):Vr.forEach(function(js){Ma.has(js)||(Zn.push(js),Ma.add(js))});var pa=Array.from(Ma);lo==null||lo(!Gu,pa.map(function(js){return Oi(js)}),Zn.map(function(js){return Oi(js)})),pf(pa,"multiple")}else{var Ha=Fl;if(Ra){var gi=Gu?(0,Pt._5)(Ha,vd):(0,Pt.L0)(Ha,vd);hn(vd,!Gu,gi,dd)}else{var co=(0,on.S)([].concat((0,b.Z)(Ha),[vd]),!0,Sa,Ds),No=co.checkedKeys,Ko=co.halfCheckedKeys,Jo=No;if(Gu){var gl=new Set(No);gl.delete(vd),Jo=(0,on.S)(Array.from(gl),{checked:!1,halfCheckedKeys:Ko},Sa,Ds).checkedKeys}hn(vd,!Gu,Jo,dd)}}Jc(Gu?null:vd)}})),checked:Gu}};var mu=function(tu,jf,Tu){var Ed=Kl(tu,jf,Tu),vd=Ed.node,Gu=Ed.checked;return dr?dr(Gu,jf,Tu,vd):vd};if(!sa.includes(xr))if(sa.findIndex(function(Ic){var tu;return((tu=Ic[na])===null||tu===void 0?void 0:tu.columnType)==="EXPAND_COLUMN"})===0){var xc=sa,Ll=(0,br.Z)(xc),wc=Ll[0],Xu=Ll.slice(1);sa=[wc,xr].concat((0,b.Z)(Xu))}else sa=[xr].concat((0,b.Z)(sa));var _u=sa.indexOf(xr);sa=sa.filter(function(Ic,tu){return Ic!==xr||tu===_u});var wu=sa[_u-1],fu=sa[_u+1],Kc=Qn;Kc===void 0&&((fu==null?void 0:fu.fixed)!==void 0?Kc=fu.fixed:(wu==null?void 0:wu.fixed)!==void 0&&(Kc=wu.fixed)),Kc&&wu&&((Lr=wu[na])===null||Lr===void 0?void 0:Lr.columnType)==="EXPAND_COLUMN"&&wu.fixed===void 0&&(wu.fixed=Kc);var td=(0,g.Z)({fixed:Kc,width:Zs,className:"".concat(_i,"-selection-column"),title:Wn.columnTitle||us,render:mu},na,{className:"".concat(_i,"-selection-col")});return sa.map(function(Ic){return Ic===xr?td:Ic})},[Fo,Hi,Wn,Fl,cc,Hu,Zs,dn,as,Gc,Co,lo,hn,Ds]);return[tr,cc]}var mo={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Ml=mo,yc=function(ca,ra){return v.createElement(ml.Z,(0,m.Z)((0,m.Z)({},ca),{},{ref:ra,icon:Ml}))};yc.displayName="CaretDownOutlined";var oa=v.forwardRef(yc),sl={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},fl=sl,bc=function(ca,ra){return v.createElement(ml.Z,(0,m.Z)((0,m.Z)({},ca),{},{ref:ra,icon:fl}))};bc.displayName="CaretUpOutlined";var Rf=v.forwardRef(bc),Ms=o(95455),ff="ascend",Df="descend";function Ff(Wn){return(0,x.Z)(Wn.sorter)==="object"&&typeof Wn.sorter.multiple=="number"?Wn.sorter.multiple:!1}function Kf(Wn){return typeof Wn=="function"?Wn:Wn&&(0,x.Z)(Wn)==="object"&&Wn.compare?Wn.compare:!1}function xf(Wn,ca){return ca?Wn[Wn.indexOf(ca)+1]:Wn[0]}function Sc(Wn,ca,ra){var Na=[];function fi(so,vo){Na.push({column:so,key:Ci(so,vo),multiplePriority:Ff(so),sortOrder:so.sortOrder})}return(Wn||[]).forEach(function(so,vo){var Ro=da(vo,ra);so.children?("sortOrder"in so&&fi(so,Ro),Na=[].concat((0,b.Z)(Na),(0,b.Z)(Sc(so.children,ca,Ro)))):so.sorter&&("sortOrder"in so?fi(so,Ro):ca&&so.defaultSortOrder&&Na.push({column:so,key:Ci(so,Ro),multiplePriority:Ff(so),sortOrder:so.defaultSortOrder}))}),Na}function Wu(Wn,ca,ra,Na,fi,so,vo,Ro){return(ca||[]).map(function(So,el){var ul=da(el,Ro),Xo=So;if(Xo.sorter){var lo=Xo.sortDirections||fi,Zs=Xo.showSorterTooltip===void 0?vo:Xo.showSorterTooltip,Gs=Ci(Xo,ul),$s=ra.find(function(as){var Fs=as.key;return Fs===Gs}),Qn=$s?$s.sortOrder:null,dr=xf(lo,Qn),Xr=lo.includes(ff)&&v.createElement(Rf,{className:w()("".concat(Wn,"-column-sorter-up"),{active:Qn===ff}),role:"presentation"}),la=lo.includes(Df)&&v.createElement(oa,{className:w()("".concat(Wn,"-column-sorter-down"),{active:Qn===Df}),role:"presentation"}),Ra=so||{},_i=Ra.cancelSort,ui=Ra.triggerAsc,ho=Ra.triggerDesc,Oi=_i;dr===Df?Oi=ho:dr===ff&&(Oi=ui);var Fo=(0,x.Z)(Zs)==="object"?Zs:{title:Oi};Xo=(0,A.Z)((0,A.Z)({},Xo),{className:w()(Xo.className,(0,g.Z)({},"".concat(Wn,"-column-sort"),Qn)),title:function(Fs){var Fr=v.createElement("div",{className:"".concat(Wn,"-column-sorters")},v.createElement("span",{className:"".concat(Wn,"-column-title")},Da(So.title,Fs)),v.createElement("span",{className:w()("".concat(Wn,"-column-sorter"),(0,g.Z)({},"".concat(Wn,"-column-sorter-full"),!!(Xr&&la)))},v.createElement("span",{className:"".concat(Wn,"-column-sorter-inner")},Xr,la)));return Zs?v.createElement(Ms.Z,(0,A.Z)({},Fo),Fr):Fr},onHeaderCell:function(Fs){var Fr=So.onHeaderCell&&So.onHeaderCell(Fs)||{},tl=Fr.onClick,Js=Fr.onKeyDown;Fr.onClick=function(El){Na({column:So,key:Gs,sortOrder:dr,multiplePriority:Ff(So)}),tl==null||tl(El)},Fr.onKeyDown=function(El){El.keyCode===jc.Z.ENTER&&(Na({column:So,key:Gs,sortOrder:dr,multiplePriority:Ff(So)}),Js==null||Js(El))};var Us=mi(So.title,{}),os=Us==null?void 0:Us.toString();return Qn?Fr["aria-sort"]=Qn==="ascend"?"ascending":"descending":Fr["aria-label"]=os||"",Fr.className=w()(Fr.className,"".concat(Wn,"-column-has-sorters")),Fr.tabIndex=0,So.ellipsis&&(Fr.title=(Us!=null?Us:"").toString()),Fr}})}return"children"in Xo&&(Xo=(0,A.Z)((0,A.Z)({},Xo),{children:Wu(Wn,Xo.children,ra,Na,fi,so,vo,ul)})),Xo})}function Du(Wn){var ca=Wn.column,ra=Wn.sortOrder;return{column:ca,order:ra,field:ca.dataIndex,columnKey:ca.key}}function Gd(Wn){var ca=Wn.filter(function(ra){var Na=ra.sortOrder;return Na}).map(Du);return ca.length===0&&Wn.length?(0,A.Z)((0,A.Z)({},Du(Wn[Wn.length-1])),{column:void 0}):ca.length<=1?ca[0]||{}:ca}function gf(Wn,ca,ra){var Na=ca.slice().sort(function(vo,Ro){return Ro.multiplePriority-vo.multiplePriority}),fi=Wn.slice(),so=Na.filter(function(vo){var Ro=vo.column.sorter,So=vo.sortOrder;return Kf(Ro)&&So});return so.length?fi.sort(function(vo,Ro){for(var So=0;So<so.length;So+=1){var el=so[So],ul=el.column.sorter,Xo=el.sortOrder,lo=Kf(ul);if(lo&&Xo){var Zs=lo(vo,Ro,Xo);if(Zs!==0)return Xo===ff?Zs:-Zs}}return 0}).map(function(vo){var Ro=vo[ra];return Ro?(0,A.Z)((0,A.Z)({},vo),(0,g.Z)({},ra,gf(Ro,ca,ra))):vo}):fi}function Vp(Wn){var ca=Wn.prefixCls,ra=Wn.mergedColumns,Na=Wn.onSorterChange,fi=Wn.sortDirections,so=Wn.tableLocale,vo=Wn.showSorterTooltip,Ro=v.useState(Sc(ra,!0)),So=(0,y.Z)(Ro,2),el=So[0],ul=So[1],Xo=v.useMemo(function(){var Qn=!0,dr=Sc(ra,!1);if(!dr.length)return el;var Xr=[];function la(_i){Qn?Xr.push(_i):Xr.push((0,A.Z)((0,A.Z)({},_i),{sortOrder:null}))}var Ra=null;return dr.forEach(function(_i){Ra===null?(la(_i),_i.sortOrder&&(_i.multiplePriority===!1?Qn=!1:Ra=!0)):(Ra&&_i.multiplePriority!==!1||(Qn=!1),la(_i))}),Xr},[ra,el]),lo=v.useMemo(function(){var Qn=Xo.map(function(dr){var Xr=dr.column,la=dr.sortOrder;return{column:Xr,order:la}});return{sortColumns:Qn,sortColumn:Qn[0]&&Qn[0].column,sortOrder:Qn[0]&&Qn[0].order}},[Xo]);function Zs(Qn){var dr;Qn.multiplePriority===!1||!Xo.length||Xo[0].multiplePriority===!1?dr=[Qn]:dr=[].concat((0,b.Z)(Xo.filter(function(Xr){var la=Xr.key;return la!==Qn.key})),[Qn]),ul(dr),Na(Gd(dr),dr)}var Gs=function(dr){return Wu(ca,dr,Xo,Zs,fi,so,vo)},$s=function(){return Gd(Xo)};return[Gs,Xo,lo,$s]}function $c(Wn,ca){return Wn.map(function(ra){var Na=(0,A.Z)({},ra);return Na.title=Da(ra.title,ca),"children"in Na&&(Na.children=$c(Na.children,ca)),Na})}function Yl(Wn){var ca=v.useCallback(function(ra){return $c(ra,Wn)},[Wn]);return[ca]}var Sp=[];function tp(Wn,ca){var ra,Na=Wn.prefixCls,fi=Wn.className,so=Wn.style,vo=Wn.size,Ro=Wn.bordered,So=Wn.dropdownPrefixCls,el=Wn.dataSource,ul=Wn.pagination,Xo=Wn.rowSelection,lo=Wn.rowKey,Zs=lo===void 0?"key":lo,Gs=Wn.rowClassName,$s=Wn.columns,Qn=Wn.children,dr=Wn.childrenColumnName,Xr=Wn.onChange,la=Wn.getPopupContainer,Ra=Wn.loading,_i=Wn.expandIcon,ui=Wn.expandable,ho=Wn.expandedRowRender,Oi=Wn.expandIconColumnIndex,Fo=Wn.indentSize,as=Wn.scroll,Fs=Wn.sortDirections,Fr=Wn.locale,tl=Wn.showSorterTooltip,Js=tl===void 0?!0:tl;[["filterDropdownVisible","filterDropdownOpen"],["onFilterDropdownVisibleChange","onFilterDropdownOpenChange"]].forEach(function(gi){var co=(0,y.Z)(gi,2),No=co[0],Ko=co[1]});var Us=v.useMemo(function(){return $s||ya(Qn)},[$s,Qn]),os=v.useMemo(function(){return Us.some(function(gi){return gi.responsive})},[Us]),El=(0,Il.Z)(os),Bs=v.useMemo(function(){var gi=new Set(Object.keys(El).filter(function(co){return El[co]}));return Us.filter(function(co){return!co.responsive||co.responsive.some(function(No){return gi.has(No)})})},[Us,El]),gc=(0,Eo.Z)(Wn,["className","style","columns"]),kr=v.useContext(ol.Z),Sa=v.useContext(Xi.E_),Hi=Sa.locale,Co=Hi===void 0?ms.Z:Hi,Ds=Sa.renderEmpty,Dl=Sa.direction,Xc=vo||kr,Fl=(0,A.Z)((0,A.Z)({},Co.Table),Fr),Eu=el||Sp,cc=v.useContext(Xi.E_),Hu=cc.getPrefixCls,dc=Hu("table",Na),iu=Hu("dropdown",So),Gc=(0,A.Z)({childrenColumnName:dr,expandIconColumnIndex:Oi},ui),Jc=Gc.childrenColumnName,pf=Jc===void 0?"children":Jc,hn=v.useMemo(function(){return Eu.some(function(gi){return gi==null?void 0:gi[pf]})?"nest":ho||ui&&ui.expandedRowRender?"row":null},[Eu]),dn={body:v.useRef()},tr=v.useMemo(function(){return typeof Zs=="function"?Zs:function(gi){return gi==null?void 0:gi[Zs]}},[Zs]),Mn=(0,eu.Z)(Eu,pf,tr),Lr=(0,y.Z)(Mn,1),sa=Lr[0],Ma={},Ia=function(co,No){var Ko=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Jo=(0,A.Z)((0,A.Z)({},Ma),co);Ko&&(Ma.resetPagination(),Jo.pagination.current&&(Jo.pagination.current=1),ul&&ul.onChange&&ul.onChange(1,Jo.pagination.pageSize)),as&&as.scrollToFirstRowOnChange!==!1&&dn.body.current&&_l(0,{getContainer:function(){return dn.body.current}}),Xr==null||Xr(Jo.pagination,Jo.filters,Jo.sorter,{currentDataSource:Fd(gf(Eu,Jo.sorterStates,pf),Jo.filterStates),action:No})},Ja=function(co,No){Ia({sorter:co,sorterStates:No},"sort",!1)},pi=Vp({prefixCls:dc,mergedColumns:Bs,onSorterChange:Ja,sortDirections:Fs||["ascend","descend"],tableLocale:Fl,showSorterTooltip:Js}),fo=(0,y.Z)(pi,4),us=fo[0],xo=fo[1],Qo=fo[2],gs=fo[3],ds=v.useMemo(function(){return gf(Eu,xo,pf)},[Eu,xo]);Ma.sorter=gs(),Ma.sorterStates=xo;var nl=function(co,No){Ia({filters:co,filterStates:No},"filter",!0)},nc=Nc({prefixCls:dc,locale:Fl,dropdownPrefixCls:iu,mergedColumns:Bs,onFilterChange:nl,getPopupContainer:la}),Kl=(0,y.Z)(nc,3),mu=Kl[0],xc=Kl[1],Ll=Kl[2],wc=Fd(ds,xc);Ma.filters=Ll,Ma.filterStates=xc;var Xu=v.useMemo(function(){var gi={};return Object.keys(Ll).forEach(function(co){Ll[co]!==null&&(gi[co]=Ll[co])}),(0,A.Z)((0,A.Z)({},Qo),{filters:gi})},[Qo,Ll]),_u=Yl(Xu),wu=(0,y.Z)(_u,1),fu=wu[0],Kc=function(co,No){Ia({pagination:(0,A.Z)((0,A.Z)({},Ma.pagination),{current:co,pageSize:No})},"paginate")},td=Vn(wc.length,ul,Kc),Ic=(0,y.Z)(td,2),tu=Ic[0],jf=Ic[1];Ma.pagination=ul===!1?{}:Te(ul,tu),Ma.resetPagination=jf;var Tu=v.useMemo(function(){if(ul===!1||!tu.pageSize)return wc;var gi=tu.current,co=gi===void 0?1:gi,No=tu.total,Ko=tu.pageSize,Jo=Ko===void 0?$f:Ko;return wc.length<No?wc.length>Jo?wc.slice((co-1)*Jo,co*Jo):wc:wc.slice((co-1)*Jo,co*Jo)},[!!ul,wc,tu&&tu.current,tu&&tu.pageSize,tu&&tu.total]),Ed=is(Xo,{prefixCls:dc,data:wc,pageData:Tu,getRowKey:tr,getRecordByKey:sa,expandType:hn,childrenColumnName:pf,locale:Fl,getPopupContainer:la}),vd=(0,y.Z)(Ed,2),Gu=vd[0],Op=vd[1],np=function(co,No,Ko){var Jo;return typeof Gs=="function"?Jo=w()(Gs(co,No,Ko)):Jo=w()(Gs),w()((0,g.Z)({},"".concat(dc,"-row-selected"),Op.has(tr(co,No))),Jo)};Gc.__PARENT_RENDER_ICON__=Gc.expandIcon,Gc.expandIcon=Gc.expandIcon||_i||Ti(Fl),hn==="nest"&&Gc.expandIconColumnIndex===void 0?Gc.expandIconColumnIndex=Xo?1:0:Gc.expandIconColumnIndex>0&&Xo&&(Gc.expandIconColumnIndex-=1),typeof Gc.indentSize!="number"&&(Gc.indentSize=typeof Fo=="number"?Fo:15);var $d=v.useCallback(function(gi){return fu(Gu(mu(us(gi))))},[us,mu,Gu]),hd,Ip;if(ul!==!1&&(tu==null?void 0:tu.total)){var dd;tu.size?dd=tu.size:dd=Xc==="small"||Xc==="middle"?"small":void 0;var cr=function(co){return v.createElement(mc.Z,(0,A.Z)({},tu,{className:w()("".concat(dc,"-pagination ").concat(dc,"-pagination-").concat(co),tu.className),size:dd}))},un=Dl==="rtl"?"left":"right",Jn=tu.position;if(Jn!==null&&Array.isArray(Jn)){var Xn=Jn.find(function(gi){return gi.includes("top")}),Vr=Jn.find(function(gi){return gi.includes("bottom")}),Zn=Jn.every(function(gi){return"".concat(gi)==="none"});!Xn&&!Vr&&!Zn&&(Ip=cr(un)),Xn&&(hd=cr(Xn.toLowerCase().replace("top",""))),Vr&&(Ip=cr(Vr.toLowerCase().replace("bottom","")))}else Ip=cr(un)}var pa;typeof Ra=="boolean"?pa={spinning:Ra}:(0,x.Z)(Ra)==="object"&&(pa=(0,A.Z)({spinning:!0},Ra));var Ha=w()("".concat(dc,"-wrapper"),(0,g.Z)({},"".concat(dc,"-wrapper-rtl"),Dl==="rtl"),fi);return v.createElement("div",{ref:ca,className:Ha,style:so},v.createElement(Ys.Z,(0,A.Z)({spinning:!1},pa),hd,v.createElement(Mi,(0,A.Z)({},gc,{columns:Bs,direction:Dl,expandable:Gc,prefixCls:dc,className:w()((ra={},(0,g.Z)(ra,"".concat(dc,"-middle"),Xc==="middle"),(0,g.Z)(ra,"".concat(dc,"-small"),Xc==="small"),(0,g.Z)(ra,"".concat(dc,"-bordered"),Ro),(0,g.Z)(ra,"".concat(dc,"-empty"),Eu.length===0),ra)),data:Tu,rowKey:tr,rowClassName:np,emptyText:Fr&&Fr.emptyText||(Ds||Bo.Z)("Table"),internalHooks:zi,internalRefs:dn,transformColumns:$d})),Ip))}var Rp=v.forwardRef(tp),df=Rp;df.SELECTION_COLUMN=xr,df.EXPAND_COLUMN=Mi.EXPAND_COLUMN,df.SELECTION_ALL=aa,df.SELECTION_INVERT=oi,df.SELECTION_NONE=ni,df.Column=zn,df.ColumnGroup=Hr,df.Summary=Fi;var uf=df,Af=uf},36805:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(31242),y=o.n(A),M=o(13753),w=o(44862),m=o(19597),b=o(93806),v=o(68137),h=o(91772),d=o(90140),_=o(58210),p=o(81984),S=o(87753)},13649:function(oe,N,o){"use strict";o.d(N,{Z:function(){return Kn}});var x=o(96156),g=o(22122),A=o(54549),y=o(44545),M=o(49101),w=o(35510),m=o.n(w),b=o(28991),v=o(28481),h=o(90484),d=o(81253),_=o(67294),p=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Pn=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Pn)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Pn==null?void 0:Pn.substr(0,4))};function S(Pn){var At=_.useRef();At.current=Pn;var ar=_.useCallback(function(){for(var ta,Yn=arguments.length,Qa=new Array(Yn),Ua=0;Ua<Yn;Ua++)Qa[Ua]=arguments[Ua];return(ta=At.current)===null||ta===void 0?void 0:ta.call.apply(ta,[At].concat(Qa))},[]);return ar}function k(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var O=k()?_.useLayoutEffect:_.useEffect,F=function(At,ar){var ta=_.useRef(!0);O(function(){return At(ta.current)},ar),O(function(){return ta.current=!1,function(){ta.current=!0}},[])},D=function(At,ar){F(function(ta){if(!ta)return At()},ar)},Z=null;function W(Pn){var At=_.useRef(!1),ar=_.useState(Pn),ta=(0,v.Z)(ar,2),Yn=ta[0],Qa=ta[1];_.useEffect(function(){return At.current=!1,function(){At.current=!0}},[]);function Ua(Fi,Xa){Xa&&At.current||Qa(Fi)}return[Yn,Ua]}function U(Pn){return Pn!==void 0}function L(Pn,At){var ar=At||{},ta=ar.defaultValue,Yn=ar.value,Qa=ar.onChange,Ua=ar.postState,Fi=W(function(){return U(Yn)?Yn:U(ta)?typeof ta=="function"?ta():ta:typeof Pn=="function"?Pn():Pn}),Xa=(0,v.Z)(Fi,2),$i=Xa[0],La=Xa[1],ja=Yn!==void 0?Yn:$i,ei=Ua?Ua(ja):ja,Do=S(Qa),yo=W([ja]),to=(0,v.Z)(yo,2),fs=to[0],cs=to[1];D(function(){var vl=fs[0];$i!==vl&&Do($i,vl)},[fs]),D(function(){U(Yn)||La(Yn)},[Yn]);var Os=S(function(vl,Ar){La(vl,Ar),cs([ja],Ar)});return[ei,Os]}var V=o(90190),$=(0,_.createContext)(null),G=_.forwardRef(function(Pn,At){var ar=Pn.prefixCls,ta=Pn.className,Yn=Pn.style,Qa=Pn.id,Ua=Pn.active,Fi=Pn.tabKey,Xa=Pn.children;return _.createElement("div",{id:Qa&&"".concat(Qa,"-panel-").concat(Fi),role:"tabpanel",tabIndex:Ua?0:-1,"aria-labelledby":Qa&&"".concat(Qa,"-tab-").concat(Fi),"aria-hidden":!Ua,style:Yn,className:m()(ar,Ua&&"".concat(ar,"-active"),ta),ref:At},Xa)}),z=G,K=["key","forceRender","style","className"];function re(Pn){var At=Pn.id,ar=Pn.activeKey,ta=Pn.animated,Yn=Pn.tabPosition,Qa=Pn.destroyInactiveTabPane,Ua=_.useContext($),Fi=Ua.prefixCls,Xa=Ua.tabs,$i=ta.tabPane,La="".concat(Fi,"-tabpane");return _.createElement("div",{className:m()("".concat(Fi,"-content-holder"))},_.createElement("div",{className:m()("".concat(Fi,"-content"),"".concat(Fi,"-content-").concat(Yn),(0,x.Z)({},"".concat(Fi,"-content-animated"),$i))},Xa.map(function(ja){var ei=ja.key,Do=ja.forceRender,yo=ja.style,to=ja.className,fs=(0,d.Z)(ja,K),cs=ei===ar;return _.createElement(V.ZP,(0,g.Z)({key:ei,visible:cs,forceRender:Do,removeOnLeave:!!Qa,leavedClassName:"".concat(La,"-hidden")},ta.tabPaneMotion),function(Os,vl){var Ar=Os.style,Rn=Os.className;return _.createElement(z,(0,g.Z)({},fs,{prefixCls:La,id:At,tabKey:ei,animated:$i,active:cs,style:(0,b.Z)((0,b.Z)({},yo),Ar),className:m()(to,Rn),ref:vl}))})})))}var ne=o(85061),Q=o(50279),ue=function(At){return+setTimeout(At,16)},he=function(At){return clearTimeout(At)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ue=function(At){return window.requestAnimationFrame(At)},he=function(At){return window.cancelAnimationFrame(At)});var Ee=0,ce=new Map;function ve(Pn){ce.delete(Pn)}var fe=function(At){var ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ee+=1;var ta=Ee;function Yn(Qa){if(Qa===0)ve(ta),At();else{var Ua=ue(function(){Yn(Qa-1)});ce.set(ta,Ua)}}return Yn(ar),ta};fe.cancel=function(Pn){var At=ce.get(Pn);return ve(At),he(At)};var we=fe,me=o(54323);function Pe(Pn,At,ar){var ta=_.useRef({});return(!("value"in ta.current)||ar(ta.current.condition,At))&&(ta.current.value=Pn(),ta.current.condition=At),ta.current.value}function pe(Pn,At){typeof Pn=="function"?Pn(At):(0,h.Z)(Pn)==="object"&&Pn&&"current"in Pn&&(Pn.current=At)}function Ie(){for(var Pn=arguments.length,At=new Array(Pn),ar=0;ar<Pn;ar++)At[ar]=arguments[ar];var ta=At.filter(function(Yn){return Yn});return ta.length<=1?ta[0]:function(Yn){At.forEach(function(Qa){pe(Qa,Yn)})}}function Je(){for(var Pn=arguments.length,At=new Array(Pn),ar=0;ar<Pn;ar++)At[ar]=arguments[ar];return Pe(function(){return Ie.apply(void 0,At)},At,function(ta,Yn){return ta.length!==Yn.length||ta.every(function(Qa,Ua){return Qa!==Yn[Ua]})})}function ke(Pn){var At,ar,ta=isMemo(Pn)?Pn.type.type:Pn.type;return!(typeof ta=="function"&&!((At=ta.prototype)!==null&&At!==void 0&&At.render)||typeof Pn=="function"&&!((ar=Pn.prototype)!==null&&ar!==void 0&&ar.render))}function De(Pn){return!isValidElement(Pn)||isFragment(Pn)?!1:ke(Pn)}var Fe={width:0,height:0,left:0,top:0};function Qe(Pn,At,ar){return(0,_.useMemo)(function(){for(var ta,Yn=new Map,Qa=At.get((ta=Pn[0])===null||ta===void 0?void 0:ta.key)||Fe,Ua=Qa.left+Qa.width,Fi=0;Fi<Pn.length;Fi+=1){var Xa=Pn[Fi].key,$i=At.get(Xa);if(!$i){var La;$i=At.get((La=Pn[Fi-1])===null||La===void 0?void 0:La.key)||Fe}var ja=Yn.get(Xa)||(0,b.Z)({},$i);ja.right=Ua-ja.left-ja.width,Yn.set(Xa,ja)}return Yn},[Pn.map(function(ta){return ta.key}).join("_"),At,ar])}function qe(Pn,At){var ar=_.useRef(Pn),ta=_.useState({}),Yn=(0,v.Z)(ta,2),Qa=Yn[1];function Ua(Fi){var Xa=typeof Fi=="function"?Fi(ar.current):Fi;Xa!==ar.current&&At(Xa,ar.current),ar.current=Xa,Qa({})}return[ar.current,Ua]}var et=.1,dt=.01,Ke=20,Ge=Math.pow(.995,Ke);function wt(Pn,At){var ar=(0,_.useState)(),ta=(0,v.Z)(ar,2),Yn=ta[0],Qa=ta[1],Ua=(0,_.useState)(0),Fi=(0,v.Z)(Ua,2),Xa=Fi[0],$i=Fi[1],La=(0,_.useState)(0),ja=(0,v.Z)(La,2),ei=ja[0],Do=ja[1],yo=(0,_.useState)(),to=(0,v.Z)(yo,2),fs=to[0],cs=to[1],Os=(0,_.useRef)();function vl(Ot){var gr=Ot.touches[0],Gr=gr.screenX,Ln=gr.screenY;Qa({x:Gr,y:Ln}),window.clearInterval(Os.current)}function Ar(Ot){if(!!Yn){Ot.preventDefault();var gr=Ot.touches[0],Gr=gr.screenX,Ln=gr.screenY;Qa({x:Gr,y:Ln});var Tr=Gr-Yn.x,Dn=Ln-Yn.y;At(Tr,Dn);var Pr=Date.now();$i(Pr),Do(Pr-Xa),cs({x:Tr,y:Dn})}}function Rn(){if(!!Yn&&(Qa(null),cs(null),fs)){var Ot=fs.x/ei,gr=fs.y/ei,Gr=Math.abs(Ot),Ln=Math.abs(gr);if(Math.max(Gr,Ln)<et)return;var Tr=Ot,Dn=gr;Os.current=window.setInterval(function(){if(Math.abs(Tr)<dt&&Math.abs(Dn)<dt){window.clearInterval(Os.current);return}Tr*=Ge,Dn*=Ge,At(Tr*Ke,Dn*Ke)},Ke)}}var Sr=(0,_.useRef)();function nn(Ot){var gr=Ot.deltaX,Gr=Ot.deltaY,Ln=0,Tr=Math.abs(gr),Dn=Math.abs(Gr);Tr===Dn?Ln=Sr.current==="x"?gr:Gr:Tr>Dn?(Ln=gr,Sr.current="x"):(Ln=Gr,Sr.current="y"),At(-Ln,-Ln)&&Ot.preventDefault()}var sn=(0,_.useRef)(null);sn.current={onTouchStart:vl,onTouchMove:Ar,onTouchEnd:Rn,onWheel:nn},_.useEffect(function(){function Ot(Tr){sn.current.onTouchStart(Tr)}function gr(Tr){sn.current.onTouchMove(Tr)}function Gr(Tr){sn.current.onTouchEnd(Tr)}function Ln(Tr){sn.current.onWheel(Tr)}return document.addEventListener("touchmove",gr,{passive:!1}),document.addEventListener("touchend",Gr,{passive:!1}),Pn.current.addEventListener("touchstart",Ot,{passive:!1}),Pn.current.addEventListener("wheel",Ln),function(){document.removeEventListener("touchmove",gr),document.removeEventListener("touchend",Gr)}},[])}function Vt(Pn){var At=(0,_.useState)(0),ar=(0,v.Z)(At,2),ta=ar[0],Yn=ar[1],Qa=(0,_.useRef)(0),Ua=(0,_.useRef)();return Ua.current=Pn,D(function(){var Fi;(Fi=Ua.current)===null||Fi===void 0||Fi.call(Ua)},[ta]),function(){Qa.current===ta&&(Qa.current+=1,Yn(Qa.current))}}function gt(Pn){var At=(0,_.useRef)([]),ar=(0,_.useState)({}),ta=(0,v.Z)(ar,2),Yn=ta[1],Qa=(0,_.useRef)(typeof Pn=="function"?Pn():Pn),Ua=Vt(function(){var Xa=Qa.current;At.current.forEach(function($i){Xa=$i(Xa)}),At.current=[],Qa.current=Xa,Yn({})});function Fi(Xa){At.current.push(Xa),Ua()}return[Qa.current,Fi]}var it={width:0,height:0,left:0,top:0,right:0};function Le(Pn,At,ar,ta,Yn,Qa,Ua){var Fi=Ua.tabs,Xa=Ua.tabPosition,$i=Ua.rtl,La,ja,ei;return["top","bottom"].includes(Xa)?(La="width",ja=$i?"right":"left",ei=Math.abs(ar)):(La="height",ja="top",ei=-ar),(0,_.useMemo)(function(){if(!Fi.length)return[0,0];for(var Do=Fi.length,yo=Do,to=0;to<Do;to+=1){var fs=Pn.get(Fi[to].key)||it;if(fs[ja]+fs[La]>ei+At){yo=to-1;break}}for(var cs=0,Os=Do-1;Os>=0;Os-=1){var vl=Pn.get(Fi[Os].key)||it;if(vl[ja]<ei){cs=Os+1;break}}return[cs,yo]},[Pn,At,ta,Yn,Qa,ei,Xa,Fi.map(function(Do){return Do.key}).join("_"),$i])}function ct(Pn){var At;return Pn instanceof Map?(At={},Pn.forEach(function(ar,ta){At[ta]=ar})):At=Pn,JSON.stringify(At)}var at="TABS_DQ";function jt(Pn){return String(Pn).replace(/"/g,at)}function St(Pn,At){var ar=Pn.prefixCls,ta=Pn.editable,Yn=Pn.locale,Qa=Pn.style;return!ta||ta.showAdd===!1?null:_.createElement("button",{ref:At,type:"button",className:"".concat(ar,"-nav-add"),style:Qa,"aria-label":(Yn==null?void 0:Yn.addAriaLabel)||"Add tab",onClick:function(Fi){ta.onEdit("add",{event:Fi})}},ta.addIcon||"+")}var fn=_.forwardRef(St),Xt=_.forwardRef(function(Pn,At){var ar=Pn.position,ta=Pn.prefixCls,Yn=Pn.extra;if(!Yn)return null;var Qa,Ua={};return(0,h.Z)(Yn)==="object"&&!_.isValidElement(Yn)?Ua=Yn:Ua.right=Yn,ar==="right"&&(Qa=Ua.right),ar==="left"&&(Qa=Ua.left),Qa?_.createElement("div",{className:"".concat(ta,"-extra-content"),ref:At},Qa):null}),Yt=Xt,Rt=o(39971),Lt={adjustX:1,adjustY:1},ze=[0,0],rt={topLeft:{points:["bl","tl"],overflow:Lt,offset:[0,-4],targetOffset:ze},topCenter:{points:["bc","tc"],overflow:Lt,offset:[0,-4],targetOffset:ze},topRight:{points:["br","tr"],overflow:Lt,offset:[0,-4],targetOffset:ze},bottomLeft:{points:["tl","bl"],overflow:Lt,offset:[0,4],targetOffset:ze},bottomCenter:{points:["tc","bc"],overflow:Lt,offset:[0,4],targetOffset:ze},bottomRight:{points:["tr","br"],overflow:Lt,offset:[0,4],targetOffset:ze}},tt=rt,de={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(At){var ar=At.keyCode;if(At.altKey&&!At.ctrlKey||At.metaKey||ar>=de.F1&&ar<=de.F12)return!1;switch(ar){case de.ALT:case de.CAPS_LOCK:case de.CONTEXT_MENU:case de.CTRL:case de.DOWN:case de.END:case de.ESC:case de.HOME:case de.INSERT:case de.LEFT:case de.MAC_FF_META:case de.META:case de.NUMLOCK:case de.NUM_CENTER:case de.PAGE_DOWN:case de.PAGE_UP:case de.PAUSE:case de.PRINT_SCREEN:case de.RIGHT:case de.SHIFT:case de.UP:case de.WIN_KEY:case de.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(At){if(At>=de.ZERO&&At<=de.NINE||At>=de.NUM_ZERO&&At<=de.NUM_MULTIPLY||At>=de.A&&At<=de.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&At===0)return!0;switch(At){case de.SPACE:case de.QUESTION_MARK:case de.NUM_PLUS:case de.NUM_MINUS:case de.NUM_PERIOD:case de.NUM_DIVISION:case de.SEMICOLON:case de.DASH:case de.EQUALS:case de.COMMA:case de.PERIOD:case de.SLASH:case de.APOSTROPHE:case de.SINGLE_QUOTE:case de.OPEN_SQUARE_BRACKET:case de.BACKSLASH:case de.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ot=de,Et=function(Pn){if(!Pn)return!1;if(Pn instanceof Element){if(Pn.offsetParent)return!0;if(Pn.getBBox){var At=Pn.getBBox(),ar=At.width,ta=At.height;if(ar||ta)return!0}if(Pn.getBoundingClientRect){var Yn=Pn.getBoundingClientRect(),Qa=Yn.width,Ua=Yn.height;if(Qa||Ua)return!0}}return!1};function Ht(Pn){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Et(Pn)){var ar=Pn.nodeName.toLowerCase(),ta=["input","select","textarea","button"].includes(ar)||Pn.isContentEditable||ar==="a"&&!!Pn.getAttribute("href"),Yn=Pn.getAttribute("tabindex"),Qa=Number(Yn),Ua=null;return Yn&&!Number.isNaN(Qa)?Ua=Qa:ta&&Ua===null&&(Ua=0),ta&&Pn.disabled&&(Ua=null),Ua!==null&&(Ua>=0||At&&Ua<0)}return!1}function Jt(Pn){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ar=(0,ne.Z)(Pn.querySelectorAll("*")).filter(function(ta){return Ht(ta,At)});return Ht(Pn,At)&&ar.unshift(Pn),ar}var Qt=null;function an(){Qt=document.activeElement}function Un(){Qt=null}function qt(){if(Qt)try{Qt.focus()}catch(Pn){}}function rn(Pn,At){if(At.keyCode===9){var ar=Jt(Pn),ta=ar[At.shiftKey?0:ar.length-1],Yn=ta===document.activeElement||Pn===document.activeElement;if(Yn){var Qa=ar[At.shiftKey?ar.length-1:0];Qa.focus(),At.preventDefault()}}}var cn=ot.ESC,er=ot.TAB;function rr(Pn){var At=Pn.visible,ar=Pn.setTriggerVisible,ta=Pn.triggerRef,Yn=Pn.onVisibleChange,Qa=Pn.autoFocus,Ua=_.useRef(!1),Fi=function(){if(At&&ta.current){var ja,ei,Do,yo;(ja=ta.current)===null||ja===void 0||(ei=ja.triggerRef)===null||ei===void 0||(Do=ei.current)===null||Do===void 0||(yo=Do.focus)===null||yo===void 0||yo.call(Do),ar(!1),typeof Yn=="function"&&Yn(!1)}},Xa=function(){var ja,ei,Do,yo,to=Jt((ja=ta.current)===null||ja===void 0||(ei=ja.popupRef)===null||ei===void 0||(Do=ei.current)===null||Do===void 0||(yo=Do.getElement)===null||yo===void 0?void 0:yo.call(Do)),fs=to[0];return(fs==null?void 0:fs.focus)?(fs.focus(),Ua.current=!0,!0):!1},$i=function(ja){switch(ja.keyCode){case cn:Fi();break;case er:{var ei=!1;Ua.current||(ei=Xa()),ei?ja.preventDefault():Fi();break}}};_.useEffect(function(){return At?(window.addEventListener("keydown",$i),Qa&&we(Xa,3),function(){window.removeEventListener("keydown",$i),Ua.current=!1}):function(){Ua.current=!1}},[At])}var nt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function lr(Pn,At){var ar=Pn.arrow,ta=ar===void 0?!1:ar,Yn=Pn.prefixCls,Qa=Yn===void 0?"rc-dropdown":Yn,Ua=Pn.transitionName,Fi=Pn.animation,Xa=Pn.align,$i=Pn.placement,La=$i===void 0?"bottomLeft":$i,ja=Pn.placements,ei=ja===void 0?tt:ja,Do=Pn.getPopupContainer,yo=Pn.showAction,to=Pn.hideAction,fs=Pn.overlayClassName,cs=Pn.overlayStyle,Os=Pn.visible,vl=Pn.trigger,Ar=vl===void 0?["hover"]:vl,Rn=Pn.autoFocus,Sr=(0,d.Z)(Pn,nt),nn=_.useState(),sn=(0,v.Z)(nn,2),Ot=sn[0],gr=sn[1],Gr="visible"in Pn?Os:Ot,Ln=_.useRef(null);_.useImperativeHandle(At,function(){return Ln.current}),rr({visible:Gr,setTriggerVisible:gr,triggerRef:Ln,onVisibleChange:Pn.onVisibleChange,autoFocus:Rn});var Tr=function(){var Mi=Pn.overlay,Eo;return typeof Mi=="function"?Eo=Mi():Eo=Mi,Eo},Dn=function(Mi){var Eo=Pn.onOverlayClick;gr(!1),Eo&&Eo(Mi)},Pr=function(Mi){var Eo=Pn.onVisibleChange;gr(Mi),typeof Eo=="function"&&Eo(Mi)},fa=function(){var Mi=Tr();return _.createElement(_.Fragment,null,ta&&_.createElement("div",{className:"".concat(Qa,"-arrow")}),Mi)},ka=function(){var Mi=Pn.overlay;return typeof Mi=="function"?fa:fa()},Li=function(){var Mi=Pn.minOverlayWidthMatchTrigger,Eo=Pn.alignPoint;return"minOverlayWidthMatchTrigger"in Pn?Mi:!Eo},zi=function(){var Mi=Pn.openClassName;return Mi!==void 0?Mi:"".concat(Qa,"-open")},Mo=function(){var Mi=Pn.children,Eo=Mi.props?Mi.props:{},Xi=m()(Eo.className,zi());return Gr&&Mi?_.cloneElement(Mi,{className:Xi}):Mi},Za=to;return!Za&&Ar.indexOf("contextMenu")!==-1&&(Za=["click"]),_.createElement(Rt.Z,(0,b.Z)((0,b.Z)({builtinPlacements:ei},Sr),{},{prefixCls:Qa,ref:Ln,popupClassName:m()(fs,(0,x.Z)({},"".concat(Qa,"-show-arrow"),ta)),popupStyle:cs,action:Ar,showAction:yo,hideAction:Za||[],popupPlacement:La,popupAlign:Xa,popupTransitionName:Ua,popupAnimation:Fi,popupVisible:Gr,stretch:Li()?"minWidth":"",popup:ka(),onPopupVisibleChange:Pr,onPopupClick:Dn,getPopupContainer:Do}),Mo())}var Hn=_.forwardRef(lr),ut=Hn,bt=o(49480);function We(Pn,At){var ar=Pn.prefixCls,ta=Pn.id,Yn=Pn.tabs,Qa=Pn.locale,Ua=Pn.mobile,Fi=Pn.moreIcon,Xa=Fi===void 0?"More":Fi,$i=Pn.moreTransitionName,La=Pn.style,ja=Pn.className,ei=Pn.editable,Do=Pn.tabBarGutter,yo=Pn.rtl,to=Pn.removeAriaLabel,fs=Pn.onTabClick,cs=Pn.getPopupContainer,Os=Pn.popupClassName,vl=(0,_.useState)(!1),Ar=(0,v.Z)(vl,2),Rn=Ar[0],Sr=Ar[1],nn=(0,_.useState)(null),sn=(0,v.Z)(nn,2),Ot=sn[0],gr=sn[1],Gr="".concat(ta,"-more-popup"),Ln="".concat(ar,"-dropdown"),Tr=Ot!==null?"".concat(Gr,"-").concat(Ot):null,Dn=Qa==null?void 0:Qa.dropdownAriaLabel;function Pr(ao,Mi){ao.preventDefault(),ao.stopPropagation(),ei.onEdit("remove",{key:Mi,event:ao})}var fa=_.createElement(bt.ZP,{onClick:function(Mi){var Eo=Mi.key,Xi=Mi.domEvent;fs(Eo,Xi),Sr(!1)},prefixCls:"".concat(Ln,"-menu"),id:Gr,tabIndex:-1,role:"listbox","aria-activedescendant":Tr,selectedKeys:[Ot],"aria-label":Dn!==void 0?Dn:"expanded dropdown"},Yn.map(function(ao){var Mi=ei&&ao.closable!==!1&&!ao.disabled;return _.createElement(bt.sN,{key:ao.key,id:"".concat(Gr,"-").concat(ao.key),role:"option","aria-controls":ta&&"".concat(ta,"-panel-").concat(ao.key),disabled:ao.disabled},_.createElement("span",null,ao.label),Mi&&_.createElement("button",{type:"button","aria-label":to||"remove",tabIndex:0,className:"".concat(Ln,"-menu-item-remove"),onClick:function(Xi){Xi.stopPropagation(),Pr(Xi,ao.key)}},ao.closeIcon||ei.removeIcon||"\xD7"))}));function ka(ao){for(var Mi=Yn.filter(function(Il){return!Il.disabled}),Eo=Mi.findIndex(function(Il){return Il.key===Ot})||0,Xi=Mi.length,Bo=0;Bo<Xi;Bo+=1){Eo=(Eo+ao+Xi)%Xi;var ol=Mi[Eo];if(!ol.disabled){gr(ol.key);return}}}function Li(ao){var Mi=ao.which;if(!Rn){[ot.DOWN,ot.SPACE,ot.ENTER].includes(Mi)&&(Sr(!0),ao.preventDefault());return}switch(Mi){case ot.UP:ka(-1),ao.preventDefault();break;case ot.DOWN:ka(1),ao.preventDefault();break;case ot.ESC:Sr(!1);break;case ot.SPACE:case ot.ENTER:Ot!==null&&fs(Ot,ao);break}}(0,_.useEffect)(function(){var ao=document.getElementById(Tr);ao&&ao.scrollIntoView&&ao.scrollIntoView(!1)},[Ot]),(0,_.useEffect)(function(){Rn||gr(null)},[Rn]);var zi=(0,x.Z)({},yo?"marginRight":"marginLeft",Do);Yn.length||(zi.visibility="hidden",zi.order=1);var Mo=m()((0,x.Z)({},"".concat(Ln,"-rtl"),yo)),Za=Ua?null:_.createElement(ut,{prefixCls:Ln,overlay:fa,trigger:["hover"],visible:Yn.length?Rn:!1,transitionName:$i,onVisibleChange:Sr,overlayClassName:m()(Mo,Os),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:cs},_.createElement("button",{type:"button",className:"".concat(ar,"-nav-more"),style:zi,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Gr,id:"".concat(ta,"-more"),"aria-expanded":Rn,onKeyDown:Li},Xa));return _.createElement("div",{className:m()("".concat(ar,"-nav-operations"),ja),style:La,ref:At},Za,_.createElement(fn,{prefixCls:ar,locale:Qa,editable:ei}))}var be=_.memo(_.forwardRef(We),function(Pn,At){return At.tabMoving});function Ae(Pn){var At,ar=Pn.prefixCls,ta=Pn.id,Yn=Pn.active,Qa=Pn.tab,Ua=Qa.key,Fi=Qa.label,Xa=Qa.disabled,$i=Qa.closeIcon,La=Pn.closable,ja=Pn.renderWrapper,ei=Pn.removeAriaLabel,Do=Pn.editable,yo=Pn.onClick,to=Pn.onFocus,fs=Pn.style,cs="".concat(ar,"-tab"),Os=Do&&La!==!1&&!Xa;function vl(Sr){Xa||yo(Sr)}function Ar(Sr){Sr.preventDefault(),Sr.stopPropagation(),Do.onEdit("remove",{key:Ua,event:Sr})}var Rn=_.createElement("div",{key:Ua,"data-node-key":jt(Ua),className:m()(cs,(At={},(0,x.Z)(At,"".concat(cs,"-with-remove"),Os),(0,x.Z)(At,"".concat(cs,"-active"),Yn),(0,x.Z)(At,"".concat(cs,"-disabled"),Xa),At)),style:fs,onClick:vl},_.createElement("div",{role:"tab","aria-selected":Yn,id:ta&&"".concat(ta,"-tab-").concat(Ua),className:"".concat(cs,"-btn"),"aria-controls":ta&&"".concat(ta,"-panel-").concat(Ua),"aria-disabled":Xa,tabIndex:Xa?null:0,onClick:function(nn){nn.stopPropagation(),vl(nn)},onKeyDown:function(nn){[ot.SPACE,ot.ENTER].includes(nn.which)&&(nn.preventDefault(),vl(nn))},onFocus:to},Fi),Os&&_.createElement("button",{type:"button","aria-label":ei||"remove",tabIndex:0,className:"".concat(cs,"-remove"),onClick:function(nn){nn.stopPropagation(),Ar(nn)}},$i||Do.removeIcon||"\xD7"));return ja?ja(Rn):Rn}var Ue=Ae,$e=function(At){var ar=At.current||{},ta=ar.offsetWidth,Yn=ta===void 0?0:ta,Qa=ar.offsetHeight,Ua=Qa===void 0?0:Qa;return[Yn,Ua]},kt=function(At,ar){return At[ar?0:1]};function lt(Pn,At){var ar,ta=_.useContext($),Yn=ta.prefixCls,Qa=ta.tabs,Ua=Pn.className,Fi=Pn.style,Xa=Pn.id,$i=Pn.animated,La=Pn.activeKey,ja=Pn.rtl,ei=Pn.extra,Do=Pn.editable,yo=Pn.locale,to=Pn.tabPosition,fs=Pn.tabBarGutter,cs=Pn.children,Os=Pn.onTabClick,vl=Pn.onTabScroll,Ar=(0,_.useRef)(),Rn=(0,_.useRef)(),Sr=(0,_.useRef)(),nn=(0,_.useRef)(),sn=(0,_.useRef)(),Ot=(0,_.useRef)(),gr=(0,_.useRef)(),Gr=to==="top"||to==="bottom",Ln=qe(0,function(Nc,eu){Gr&&vl&&vl({direction:Nc>eu?"left":"right"})}),Tr=(0,v.Z)(Ln,2),Dn=Tr[0],Pr=Tr[1],fa=qe(0,function(Nc,eu){!Gr&&vl&&vl({direction:Nc>eu?"top":"bottom"})}),ka=(0,v.Z)(fa,2),Li=ka[0],zi=ka[1],Mo=(0,_.useState)([0,0]),Za=(0,v.Z)(Mo,2),ao=Za[0],Mi=Za[1],Eo=(0,_.useState)([0,0]),Xi=(0,v.Z)(Eo,2),Bo=Xi[0],ol=Xi[1],Il=(0,_.useState)([0,0]),ms=(0,v.Z)(Il,2),mc=ms[0],Ys=ms[1],hl=(0,_.useState)([0,0]),Rs=(0,v.Z)(hl,2),xl=Rs[0],Wl=Rs[1],_l=gt(new Map),Ls=(0,v.Z)(_l,2),zn=Ls[0],Dr=Ls[1],Hr=Qe(Qa,zn,Bo[0]),_a=kt(ao,Gr),Ti=kt(Bo,Gr),Ci=kt(mc,Gr),da=kt(xl,Gr),Da=_a<Ti+Ci,mi=Da?_a-da:_a-Ci,Ho="".concat(Yn,"-nav-operations-hidden"),al=0,ml=0;Gr&&ja?(al=0,ml=Math.max(0,Ti-mi)):(al=Math.min(0,mi-Ti),ml=0);function Xs(Nc){return Nc<al?al:Nc>ml?ml:Nc}var Ps=(0,_.useRef)(),dl=(0,_.useState)(),ql=(0,v.Z)(dl,2),Dc=ql[0],Jl=ql[1];function oc(){Jl(Date.now())}function xu(){window.clearTimeout(Ps.current)}wt(nn,function(Nc,eu){function If($f,Te){$f(function(_t){var Vn=Xs(_t+Te);return Vn})}return Da?(Gr?If(Pr,Nc):If(zi,eu),xu(),oc(),!0):!1}),(0,_.useEffect)(function(){return xu(),Dc&&(Ps.current=window.setTimeout(function(){Jl(0)},100)),xu},[Dc]);var yf=Le(Hr,mi,Gr?Dn:Li,Ti,Ci,da,(0,b.Z)((0,b.Z)({},Pn),{},{tabs:Qa})),ku=(0,v.Z)(yf,2),Zc=ku[0],Zu=ku[1],Fc=S(function(){var Nc=arguments.length>0&&arguments[0]!==void 0?arguments[0]:La,eu=Hr.get(Nc)||{width:0,height:0,left:0,right:0,top:0};if(Gr){var If=Dn;ja?eu.right<Dn?If=eu.right:eu.right+eu.width>Dn+mi&&(If=eu.right+eu.width-mi):eu.left<-Dn?If=-eu.left:eu.left+eu.width>-Dn+mi&&(If=-(eu.left+eu.width-mi)),zi(0),Pr(Xs(If))}else{var $f=Li;eu.top<-Li?$f=-eu.top:eu.top+eu.height>-Li+mi&&($f=-(eu.top+eu.height-mi)),Pr(0),zi(Xs($f))}}),Hc={};to==="top"||to==="bottom"?Hc[ja?"marginRight":"marginLeft"]=fs:Hc.marginTop=fs;var Vu=Qa.map(function(Nc,eu){var If=Nc.key;return _.createElement(Ue,{id:Xa,prefixCls:Yn,key:If,tab:Nc,style:eu===0?void 0:Hc,closable:Nc.closable,editable:Do,active:If===La,renderWrapper:cs,removeAriaLabel:yo==null?void 0:yo.removeAriaLabel,onClick:function(Te){Os(If,Te)},onFocus:function(){Fc(If),oc(),!!nn.current&&(ja||(nn.current.scrollLeft=0),nn.current.scrollTop=0)}})}),ws=function(){return Dr(function(){var eu=new Map;return Qa.forEach(function(If){var $f,Te=If.key,_t=($f=sn.current)===null||$f===void 0?void 0:$f.querySelector('[data-node-key="'.concat(jt(Te),'"]'));_t&&eu.set(Te,{width:_t.offsetWidth,height:_t.offsetHeight,left:_t.offsetLeft,top:_t.offsetTop})}),eu})};(0,_.useEffect)(function(){ws()},[Qa.map(function(Nc){return Nc.key}).join("_")]);var fc=Vt(function(){var Nc=$e(Ar),eu=$e(Rn),If=$e(Sr);Mi([Nc[0]-eu[0]-If[0],Nc[1]-eu[1]-If[1]]);var $f=$e(gr);Ys($f);var Te=$e(Ot);Wl(Te);var _t=$e(sn);ol([_t[0]-$f[0],_t[1]-$f[1]]),ws()}),Tc=Qa.slice(0,Zc),jc=Qa.slice(Zu+1),lu=[].concat((0,ne.Z)(Tc),(0,ne.Z)(jc)),hu=(0,_.useState)(),of=(0,v.Z)(hu,2),uu=of[0],zu=of[1],cf=Hr.get(La),bf=(0,_.useRef)();function Cu(){we.cancel(bf.current)}(0,_.useEffect)(function(){var Nc={};return cf&&(Gr?(ja?Nc.right=cf.right:Nc.left=cf.left,Nc.width=cf.width):(Nc.top=cf.top,Nc.height=cf.height)),Cu(),bf.current=we(function(){zu(Nc)}),Cu},[cf,Gr,ja]),(0,_.useEffect)(function(){Fc()},[La,al,ml,ct(cf),ct(Hr),Gr]),(0,_.useEffect)(function(){fc()},[ja]);var rf=!!lu.length,Bu="".concat(Yn,"-nav-wrap"),Tf,ed,Fd,Pd;return Gr?ja?(ed=Dn>0,Tf=Dn!==ml):(Tf=Dn<0,ed=Dn!==al):(Fd=Li<0,Pd=Li!==al),_.createElement(Q.default,{onResize:fc},_.createElement("div",{ref:Je(At,Ar),role:"tablist",className:m()("".concat(Yn,"-nav"),Ua),style:Fi,onKeyDown:function(){oc()}},_.createElement(Yt,{ref:Rn,position:"left",extra:ei,prefixCls:Yn}),_.createElement("div",{className:m()(Bu,(ar={},(0,x.Z)(ar,"".concat(Bu,"-ping-left"),Tf),(0,x.Z)(ar,"".concat(Bu,"-ping-right"),ed),(0,x.Z)(ar,"".concat(Bu,"-ping-top"),Fd),(0,x.Z)(ar,"".concat(Bu,"-ping-bottom"),Pd),ar)),ref:nn},_.createElement(Q.default,{onResize:fc},_.createElement("div",{ref:sn,className:"".concat(Yn,"-nav-list"),style:{transform:"translate(".concat(Dn,"px, ").concat(Li,"px)"),transition:Dc?"none":void 0}},Vu,_.createElement(fn,{ref:gr,prefixCls:Yn,locale:yo,editable:Do,style:(0,b.Z)((0,b.Z)({},Vu.length===0?void 0:Hc),{},{visibility:rf?"hidden":null})}),_.createElement("div",{className:m()("".concat(Yn,"-ink-bar"),(0,x.Z)({},"".concat(Yn,"-ink-bar-animated"),$i.inkBar)),style:uu})))),_.createElement(be,(0,g.Z)({},Pn,{removeAriaLabel:yo==null?void 0:yo.removeAriaLabel,ref:Ot,prefixCls:Yn,tabs:lu,className:!rf&&Ho,tabMoving:!!Dc})),_.createElement(Yt,{ref:Sr,position:"right",extra:ei,prefixCls:Yn})))}var vt=_.forwardRef(lt),Ct=["renderTabBar"],Bt=["label","key"];function mt(Pn){var At=Pn.renderTabBar,ar=(0,d.Z)(Pn,Ct),ta=_.useContext($),Yn=ta.tabs;if(At){var Qa=(0,b.Z)((0,b.Z)({},ar),{},{panes:Yn.map(function(Ua){var Fi=Ua.label,Xa=Ua.key,$i=(0,d.Z)(Ua,Bt);return _.createElement(z,(0,g.Z)({tab:Fi,key:Xa,tabKey:Xa},$i))})});return At(Qa,vt)}return _.createElement(vt,ar)}var Zt={},zt=[],ln=function(At){zt.push(At)};function An(Pn,At){if(!1)var ar}function En(Pn,At){if(!1)var ar}function Gn(){Zt={}}function Bn(Pn,At,ar){!At&&!Zt[ar]&&(Pn(!1,ar),Zt[ar]=!0)}function pr(Pn,At){Bn(An,Pn,At)}function _r(Pn,At){Bn(En,Pn,At)}pr.preMessage=ln,pr.resetWarned=Gn,pr.noteOnce=_r;var na=null;function $n(){var Pn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},At;return Pn===!1?At={inkBar:!1,tabPane:!1}:Pn===!0?At={inkBar:!0,tabPane:!1}:At=(0,b.Z)({inkBar:!0},(0,h.Z)(Pn)==="object"?Pn:{}),At.tabPaneMotion&&At.tabPane===void 0&&(At.tabPane=!0),!At.tabPaneMotion&&At.tabPane&&(At.tabPane=!1),At}var qr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],Jr=0;function Aa(Pn,At){var ar,ta=Pn.id,Yn=Pn.prefixCls,Qa=Yn===void 0?"rc-tabs":Yn,Ua=Pn.className,Fi=Pn.items,Xa=Pn.direction,$i=Pn.activeKey,La=Pn.defaultActiveKey,ja=Pn.editable,ei=Pn.animated,Do=Pn.tabPosition,yo=Do===void 0?"top":Do,to=Pn.tabBarGutter,fs=Pn.tabBarStyle,cs=Pn.tabBarExtraContent,Os=Pn.locale,vl=Pn.moreIcon,Ar=Pn.moreTransitionName,Rn=Pn.destroyInactiveTabPane,Sr=Pn.renderTabBar,nn=Pn.onChange,sn=Pn.onTabClick,Ot=Pn.onTabScroll,gr=Pn.getPopupContainer,Gr=Pn.popupClassName,Ln=(0,d.Z)(Pn,qr),Tr=_.useMemo(function(){return(Fi||[]).filter(function(_l){return _l&&(0,h.Z)(_l)==="object"&&"key"in _l})},[Fi]),Dn=Xa==="rtl",Pr=$n(ei),fa=(0,_.useState)(!1),ka=(0,v.Z)(fa,2),Li=ka[0],zi=ka[1];(0,_.useEffect)(function(){zi(p())},[]);var Mo=L(function(){var _l;return(_l=Tr[0])===null||_l===void 0?void 0:_l.key},{value:$i,defaultValue:La}),Za=(0,v.Z)(Mo,2),ao=Za[0],Mi=Za[1],Eo=(0,_.useState)(function(){return Tr.findIndex(function(_l){return _l.key===ao})}),Xi=(0,v.Z)(Eo,2),Bo=Xi[0],ol=Xi[1];(0,_.useEffect)(function(){var _l=Tr.findIndex(function(zn){return zn.key===ao});if(_l===-1){var Ls;_l=Math.max(0,Math.min(Bo,Tr.length-1)),Mi((Ls=Tr[_l])===null||Ls===void 0?void 0:Ls.key)}ol(_l)},[Tr.map(function(_l){return _l.key}).join("_"),ao,Bo]);var Il=L(null,{value:ta}),ms=(0,v.Z)(Il,2),mc=ms[0],Ys=ms[1];(0,_.useEffect)(function(){ta||(Ys("rc-tabs-".concat(Jr)),Jr+=1)},[]);function hl(_l,Ls){sn==null||sn(_l,Ls);var zn=_l!==ao;Mi(_l),zn&&(nn==null||nn(_l))}var Rs={id:mc,activeKey:ao,animated:Pr,tabPosition:yo,rtl:Dn,mobile:Li},xl,Wl=(0,b.Z)((0,b.Z)({},Rs),{},{editable:ja,locale:Os,moreIcon:vl,moreTransitionName:Ar,tabBarGutter:to,onTabClick:hl,onTabScroll:Ot,extra:cs,style:fs,panes:null,getPopupContainer:gr,popupClassName:Gr});return _.createElement($.Provider,{value:{tabs:Tr,prefixCls:Qa}},_.createElement("div",(0,g.Z)({ref:At,id:ta,className:m()(Qa,"".concat(Qa,"-").concat(yo),(ar={},(0,x.Z)(ar,"".concat(Qa,"-mobile"),Li),(0,x.Z)(ar,"".concat(Qa,"-editable"),ja),(0,x.Z)(ar,"".concat(Qa,"-rtl"),Dn),ar),Ua)},Ln),xl,_.createElement(mt,(0,g.Z)({},Wl,{renderTabBar:Sr})),_.createElement(re,(0,g.Z)({destroyInactiveTabPane:Rn},Rs,{animated:Pr}))))}var ya=_.forwardRef(Aa),$t=ya,wn=$t,Fn=o(9054),Or=o(10772),vr=o(31064),Ur={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Zr(Pn){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},ar;return At===!1?ar={inkBar:!1,tabPane:!1}:At===!0?ar={inkBar:!0,tabPane:!0}:ar=(0,g.Z)({inkBar:!0},(0,h.Z)(At)==="object"?At:{}),ar.tabPane&&(ar.tabPaneMotion=(0,g.Z)((0,g.Z)({},Ur),{motionName:(0,vr.mL)(Pn,"switch")})),ar}var Kr=o(83025),ba=function(Pn,At){var ar={};for(var ta in Pn)Object.prototype.hasOwnProperty.call(Pn,ta)&&At.indexOf(ta)<0&&(ar[ta]=Pn[ta]);if(Pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yn=0,ta=Object.getOwnPropertySymbols(Pn);Yn<ta.length;Yn++)At.indexOf(ta[Yn])<0&&Object.prototype.propertyIsEnumerable.call(Pn,ta[Yn])&&(ar[ta[Yn]]=Pn[ta[Yn]]);return ar};function Ri(Pn){return Pn.filter(function(At){return At})}function Ea(Pn,At){if(Pn)return Pn;var ar=(0,Kr.Z)(At).map(function(ta){if(_.isValidElement(ta)){var Yn=ta.key,Qa=ta.props,Ua=Qa||{},Fi=Ua.tab,Xa=ba(Ua,["tab"]),$i=(0,g.Z)((0,g.Z)({key:String(Yn)},Xa),{label:Fi});return $i}return null});return Ri(ar)}var Pi=function(){return null},rs=Pi,Ui=function(Pn,At){var ar={};for(var ta in Pn)Object.prototype.hasOwnProperty.call(Pn,ta)&&At.indexOf(ta)<0&&(ar[ta]=Pn[ta]);if(Pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yn=0,ta=Object.getOwnPropertySymbols(Pn);Yn<ta.length;Yn++)At.indexOf(ta[Yn])<0&&Object.prototype.propertyIsEnumerable.call(Pn,ta[Yn])&&(ar[ta[Yn]]=Pn[ta[Yn]]);return ar};function Cn(Pn){var At=Pn.type,ar=Pn.className,ta=Pn.size,Yn=Pn.onEdit,Qa=Pn.hideAdd,Ua=Pn.centered,Fi=Pn.addIcon,Xa=Pn.children,$i=Pn.items,La=Pn.animated,ja=Ui(Pn,["type","className","size","onEdit","hideAdd","centered","addIcon","children","items","animated"]),ei=ja.prefixCls,Do=ja.moreIcon,yo=Do===void 0?_.createElement(y.Z,null):Do,to=_.useContext(Fn.E_),fs=to.getPrefixCls,cs=to.direction,Os=to.getPopupContainer,vl=fs("tabs",ei),Ar;At==="editable-card"&&(Ar={onEdit:function(Ot,gr){var Gr=gr.key,Ln=gr.event;Yn==null||Yn(Ot==="add"?Ln:Gr,Ot)},removeIcon:_.createElement(A.Z,null),addIcon:Fi||_.createElement(M.Z,null),showAdd:Qa!==!0});var Rn=fs(),Sr=Ea($i,Xa),nn=Zr(vl,La);return _.createElement(Or.Z.Consumer,null,function(sn){var Ot,gr=ta!==void 0?ta:sn;return _.createElement(wn,(0,g.Z)({direction:cs,getPopupContainer:Os,moreTransitionName:"".concat(Rn,"-slide-up")},ja,{items:Sr,className:m()((Ot={},(0,x.Z)(Ot,"".concat(vl,"-").concat(gr),gr),(0,x.Z)(Ot,"".concat(vl,"-card"),["card","editable-card"].includes(At)),(0,x.Z)(Ot,"".concat(vl,"-editable-card"),At==="editable-card"),(0,x.Z)(Ot,"".concat(vl,"-centered"),Ua),Ot),ar),editable:Ar,moreIcon:yo,prefixCls:vl,animated:nn}))})}Cn.TabPane=rs;var Kn=Cn},84786:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(25414),y=o.n(A)},74356:function(oe,N,o){"use strict";o.d(N,{Z:function(){return W}});var x=o(96156),g=o(22122),A=o(28481),y=o(54549),M=o(35510),w=o.n(M),m=o(69252),b=o(67294),v=o(9054),h=o(89591),d=o(77067),_=function(U,L){var V={};for(var $ in U)Object.prototype.hasOwnProperty.call(U,$)&&L.indexOf($)<0&&(V[$]=U[$]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,$=Object.getOwnPropertySymbols(U);G<$.length;G++)L.indexOf($[G])<0&&Object.prototype.propertyIsEnumerable.call(U,$[G])&&(V[$[G]]=U[$[G]]);return V},p=function(L){var V,$=L.prefixCls,G=L.className,z=L.checked,K=L.onChange,re=L.onClick,ne=_(L,["prefixCls","className","checked","onChange","onClick"]),Q=b.useContext(v.E_),ue=Q.getPrefixCls,he=function(fe){K==null||K(!z),re==null||re(fe)},Ee=ue("tag",$),ce=w()(Ee,(V={},(0,x.Z)(V,"".concat(Ee,"-checkable"),!0),(0,x.Z)(V,"".concat(Ee,"-checkable-checked"),z),V),G);return b.createElement("span",(0,g.Z)({},ne,{className:ce,onClick:he}))},S=p,k=function(U,L){var V={};for(var $ in U)Object.prototype.hasOwnProperty.call(U,$)&&L.indexOf($)<0&&(V[$]=U[$]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,$=Object.getOwnPropertySymbols(U);G<$.length;G++)L.indexOf($[G])<0&&Object.prototype.propertyIsEnumerable.call(U,$[G])&&(V[$[G]]=U[$[G]]);return V},O=new RegExp("^(".concat(h.Y.join("|"),")(-inverse)?$")),F=new RegExp("^(".concat(h.E.join("|"),")$")),D=function(L,V){var $,G=L.prefixCls,z=L.className,K=L.style,re=L.children,ne=L.icon,Q=L.color,ue=L.onClose,he=L.closeIcon,Ee=L.closable,ce=Ee===void 0?!1:Ee,ve=k(L,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),fe=b.useContext(v.E_),we=fe.getPrefixCls,me=fe.direction,Pe=b.useState(!0),pe=(0,A.Z)(Pe,2),Ie=pe[0],Je=pe[1];b.useEffect(function(){"visible"in ve&&Je(ve.visible)},[ve.visible]);var ke=function(){return Q?O.test(Q)||F.test(Q):!1},De=(0,g.Z)({backgroundColor:Q&&!ke()?Q:void 0},K),Fe=ke(),Qe=we("tag",G),qe=w()(Qe,($={},(0,x.Z)($,"".concat(Qe,"-").concat(Q),Fe),(0,x.Z)($,"".concat(Qe,"-has-color"),Q&&!Fe),(0,x.Z)($,"".concat(Qe,"-hidden"),!Ie),(0,x.Z)($,"".concat(Qe,"-rtl"),me==="rtl"),$),z),et=function(Le){Le.stopPropagation(),ue==null||ue(Le),!Le.defaultPrevented&&("visible"in ve||Je(!1))},dt=function(){return ce?he?b.createElement("span",{className:"".concat(Qe,"-close-icon"),onClick:et},he):b.createElement(y.Z,{className:"".concat(Qe,"-close-icon"),onClick:et}):null},Ke="onClick"in ve||re&&re.type==="a",Ge=(0,m.Z)(ve,["visible"]),wt=ne||null,Vt=wt?b.createElement(b.Fragment,null,wt,b.createElement("span",null,re)):re,gt=b.createElement("span",(0,g.Z)({},Ge,{ref:V,className:qe,style:De}),Vt,dt());return Ke?b.createElement(d.Z,null,gt):gt},Z=b.forwardRef(D);Z.CheckableTag=S;var W=Z},14943:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(13277),y=o.n(A)},63275:function(oe,N){"use strict";var o={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};N.Z=o},95455:function(oe,N,o){"use strict";o.d(N,{Z:function(){return K}});var x=o(96156),g=o(28481),A=o(22122),y=o(35510),M=o.n(y),w=o(90484),m=o(28991),b=o(81253),v=o(67294),h=o(39971),d=o(81412);function _(re){var ne=re.showArrow,Q=re.arrowContent,ue=re.children,he=re.prefixCls,Ee=re.id,ce=re.overlayInnerStyle,ve=re.className,fe=re.style;return v.createElement("div",{className:M()("".concat(he,"-content"),ve),style:fe},ne!==!1&&v.createElement("div",{className:"".concat(he,"-arrow"),key:"arrow"},Q),v.createElement("div",{className:"".concat(he,"-inner"),id:Ee,role:"tooltip",style:ce},typeof ue=="function"?ue():ue))}var p=function(ne,Q){var ue=ne.overlayClassName,he=ne.trigger,Ee=he===void 0?["hover"]:he,ce=ne.mouseEnterDelay,ve=ce===void 0?0:ce,fe=ne.mouseLeaveDelay,we=fe===void 0?.1:fe,me=ne.overlayStyle,Pe=ne.prefixCls,pe=Pe===void 0?"rc-tooltip":Pe,Ie=ne.children,Je=ne.onVisibleChange,ke=ne.afterVisibleChange,De=ne.transitionName,Fe=ne.animation,Qe=ne.motion,qe=ne.placement,et=qe===void 0?"right":qe,dt=ne.align,Ke=dt===void 0?{}:dt,Ge=ne.destroyTooltipOnHide,wt=Ge===void 0?!1:Ge,Vt=ne.defaultVisible,gt=ne.getTooltipContainer,it=ne.overlayInnerStyle,Le=ne.arrowContent,ct=ne.overlay,at=ne.id,jt=ne.showArrow,St=(0,b.Z)(ne,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),fn=(0,v.useRef)(null);(0,v.useImperativeHandle)(Q,function(){return fn.current});var Xt=(0,m.Z)({},St);"visible"in ne&&(Xt.popupVisible=ne.visible);var Yt=function(){return v.createElement(_,{showArrow:jt,arrowContent:Le,key:"content",prefixCls:pe,id:at,overlayInnerStyle:it},ct)},Rt=!1,Lt=!1;if(typeof wt=="boolean")Rt=wt;else if(wt&&(0,w.Z)(wt)==="object"){var ze=wt.keepParent;Rt=ze===!0,Lt=ze===!1}return v.createElement(h.Z,(0,A.Z)({popupClassName:ue,prefixCls:pe,popup:Yt,action:Ee,builtinPlacements:d.C,popupPlacement:et,ref:fn,popupAlign:Ke,getPopupContainer:gt,onPopupVisibleChange:Je,afterPopupVisibleChange:ke,popupTransitionName:De,popupAnimation:Fe,popupMotion:Qe,defaultPopupVisible:Vt,destroyPopupOnHide:Rt,autoDestroy:Lt,mouseLeaveDelay:we,popupStyle:me,mouseEnterDelay:ve},Xt),Ie)},S=(0,v.forwardRef)(p),k=S,O=o(92866),F=o(9054),D=o(89591),Z=o(31064),W=o(19405),U=o(75447),L=function(re,ne){var Q={};for(var ue in re)Object.prototype.hasOwnProperty.call(re,ue)&&ne.indexOf(ue)<0&&(Q[ue]=re[ue]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,ue=Object.getOwnPropertySymbols(re);he<ue.length;he++)ne.indexOf(ue[he])<0&&Object.prototype.propertyIsEnumerable.call(re,ue[he])&&(Q[ue[he]]=re[ue[he]]);return Q},V=function(ne,Q){var ue={},he=(0,A.Z)({},ne);return Q.forEach(function(Ee){ne&&Ee in ne&&(ue[Ee]=ne[Ee],delete he[Ee])}),{picked:ue,omitted:he}},$=new RegExp("^(".concat(D.Y.join("|"),")(-inverse)?$"));function G(re,ne){var Q=re.type;if((Q.__ANT_BUTTON===!0||re.type==="button")&&re.props.disabled||Q.__ANT_SWITCH===!0&&(re.props.disabled||re.props.loading)||Q.__ANT_RADIO===!0&&re.props.disabled){var ue=V(re.props.style,["position","left","right","top","bottom","float","display","zIndex"]),he=ue.picked,Ee=ue.omitted,ce=(0,A.Z)((0,A.Z)({display:"inline-block"},he),{cursor:"not-allowed",width:re.props.block?"100%":void 0}),ve=(0,A.Z)((0,A.Z)({},Ee),{pointerEvents:"none"}),fe=(0,U.Tm)(re,{style:ve,className:null});return v.createElement("span",{style:ce,className:M()(re.props.className,"".concat(ne,"-disabled-compatible-wrapper"))},fe)}return re}var z=v.forwardRef(function(re,ne){var Q,ue=v.useContext(F.E_),he=ue.getPopupContainer,Ee=ue.getPrefixCls,ce=ue.direction,ve=(0,O.Z)(!1,{value:re.open!==void 0?re.open:re.visible,defaultValue:re.defaultOpen!==void 0?re.defaultOpen:re.defaultVisible}),fe=(0,g.Z)(ve,2),we=fe[0],me=fe[1],Pe=function(){var de=re.title,ot=re.overlay;return!de&&!ot&&de!==0},pe=function(de){var ot,Et;me(Pe()?!1:de),Pe()||((ot=re.onOpenChange)===null||ot===void 0||ot.call(re,de),(Et=re.onVisibleChange)===null||Et===void 0||Et.call(re,de))},Ie=function(){var de=re.builtinPlacements,ot=re.arrowPointAtCenter,Et=ot===void 0?!1:ot,Ht=re.autoAdjustOverflow,Jt=Ht===void 0?!0:Ht;return de||(0,W.Z)({arrowPointAtCenter:Et,autoAdjustOverflow:Jt})},Je=function(de,ot){var Et=Ie(),Ht=Object.keys(Et).find(function(an){var Un,qt;return Et[an].points[0]===((Un=ot.points)===null||Un===void 0?void 0:Un[0])&&Et[an].points[1]===((qt=ot.points)===null||qt===void 0?void 0:qt[1])});if(!!Ht){var Jt=de.getBoundingClientRect(),Qt={top:"50%",left:"50%"};/top|Bottom/.test(Ht)?Qt.top="".concat(Jt.height-ot.offset[1],"px"):/Top|bottom/.test(Ht)&&(Qt.top="".concat(-ot.offset[1],"px")),/left|Right/.test(Ht)?Qt.left="".concat(Jt.width-ot.offset[0],"px"):/right|Left/.test(Ht)&&(Qt.left="".concat(-ot.offset[0],"px")),de.style.transformOrigin="".concat(Qt.left," ").concat(Qt.top)}},ke=function(){var de=re.title,ot=re.overlay;return de===0?de:ot||de||""},De=re.getPopupContainer,Fe=re.placement,Qe=Fe===void 0?"top":Fe,qe=re.mouseEnterDelay,et=qe===void 0?.1:qe,dt=re.mouseLeaveDelay,Ke=dt===void 0?.1:dt,Ge=L(re,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay"]),wt=re.prefixCls,Vt=re.openClassName,gt=re.getTooltipContainer,it=re.overlayClassName,Le=re.color,ct=re.overlayInnerStyle,at=re.children,jt=Ee("tooltip",wt),St=Ee(),fn=we;!("open"in re)&&!("visible"in re)&&Pe()&&(fn=!1);var Xt=G((0,U.l$)(at)&&!(0,U.M2)(at)?at:v.createElement("span",null,at),jt),Yt=Xt.props,Rt=!Yt.className||typeof Yt.className=="string"?M()(Yt.className,(0,x.Z)({},Vt||"".concat(jt,"-open"),!0)):Yt.className,Lt=M()(it,(Q={},(0,x.Z)(Q,"".concat(jt,"-rtl"),ce==="rtl"),(0,x.Z)(Q,"".concat(jt,"-").concat(Le),Le&&$.test(Le)),Q)),ze=ct,rt={};return Le&&!$.test(Le)&&(ze=(0,A.Z)((0,A.Z)({},ct),{background:Le}),rt={"--antd-arrow-background-color":Le}),v.createElement(k,(0,A.Z)({},Ge,{placement:Qe,mouseEnterDelay:et,mouseLeaveDelay:Ke,prefixCls:jt,overlayClassName:Lt,getTooltipContainer:De||gt||he,ref:ne,builtinPlacements:Ie(),overlay:ke(),visible:fn,onVisibleChange:pe,onPopupAlign:Je,overlayInnerStyle:ze,arrowContent:v.createElement("span",{className:"".concat(jt,"-arrow-content"),style:rt}),motion:{motionName:(0,Z.mL)(St,"zoom-big-fast",re.transitionName),motionDeadline:1e3}}),fn?(0,U.Tm)(Xt,{className:Rt}):Xt)}),K=z},81984:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(24090),y=o.n(A)},88037:function(oe,N,o){"use strict";o.d(N,{Z:function(){return lt}});var x=o(22122),g=o(96156),A=o(35510),y=o.n(A),M=o(85061),w=o(28991),m=o(28481),b=o(81253),v=o(90484),h=o(67294),d=o(25281),_=o(57725),p=o(32455);function S(vt){var Ct=h.useRef();Ct.current=vt;var Bt=h.useCallback(function(){for(var mt,Zt=arguments.length,zt=new Array(Zt),ln=0;ln<Zt;ln++)zt[ln]=arguments[ln];return(mt=Ct.current)===null||mt===void 0?void 0:mt.call.apply(mt,[Ct].concat(zt))},[]);return Bt}function k(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var O=k()?h.useLayoutEffect:h.useEffect,F=function(Ct,Bt){var mt=h.useRef(!0);O(function(){return Ct(mt.current)},Bt),O(function(){return mt.current=!1,function(){mt.current=!0}},[])},D=function(Ct,Bt){F(function(mt){if(!mt)return Ct()},Bt)},Z=null;function W(vt){var Ct=h.useRef(!1),Bt=h.useState(vt),mt=(0,m.Z)(Bt,2),Zt=mt[0],zt=mt[1];h.useEffect(function(){return Ct.current=!1,function(){Ct.current=!0}},[]);function ln(An,En){En&&Ct.current||zt(An)}return[Zt,ln]}function U(vt){return vt!==void 0}function L(vt,Ct){var Bt=Ct||{},mt=Bt.defaultValue,Zt=Bt.value,zt=Bt.onChange,ln=Bt.postState,An=W(function(){return U(Zt)?Zt:U(mt)?typeof mt=="function"?mt():mt:typeof vt=="function"?vt():vt}),En=(0,m.Z)(An,2),Gn=En[0],Bn=En[1],pr=Zt!==void 0?Zt:Gn,_r=ln?ln(pr):pr,na=S(zt),$n=W([pr]),qr=(0,m.Z)($n,2),Jr=qr[0],Aa=qr[1];D(function(){var $t=Jr[0];Gn!==$t&&na(Gn,$t)},[Jr]),D(function(){U(Zt)||Bn(Zt)},[Zt]);var ya=S(function($t,wn){Bn($t,wn),Aa([pr],wn)});return[_r,ya]}var V={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ct){var Bt=Ct.keyCode;if(Ct.altKey&&!Ct.ctrlKey||Ct.metaKey||Bt>=V.F1&&Bt<=V.F12)return!1;switch(Bt){case V.ALT:case V.CAPS_LOCK:case V.CONTEXT_MENU:case V.CTRL:case V.DOWN:case V.END:case V.ESC:case V.HOME:case V.INSERT:case V.LEFT:case V.MAC_FF_META:case V.META:case V.NUMLOCK:case V.NUM_CENTER:case V.PAGE_DOWN:case V.PAGE_UP:case V.PAUSE:case V.PRINT_SCREEN:case V.RIGHT:case V.SHIFT:case V.UP:case V.WIN_KEY:case V.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ct){if(Ct>=V.ZERO&&Ct<=V.NINE||Ct>=V.NUM_ZERO&&Ct<=V.NUM_MULTIPLY||Ct>=V.A&&Ct<=V.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ct===0)return!0;switch(Ct){case V.SPACE:case V.QUESTION_MARK:case V.NUM_PLUS:case V.NUM_MINUS:case V.NUM_PERIOD:case V.NUM_DIVISION:case V.SEMICOLON:case V.DASH:case V.EQUALS:case V.COMMA:case V.PERIOD:case V.SLASH:case V.APOSTROPHE:case V.SINGLE_QUOTE:case V.OPEN_SQUARE_BRACKET:case V.BACKSLASH:case V.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},$=V;function G(vt,Ct,Bt){var mt=h.useRef({});return(!("value"in mt.current)||Bt(mt.current.condition,Ct))&&(mt.current.value=vt(),mt.current.condition=Ct),mt.current.value}var z=o(18633),K=h.createContext(null),re=K,ne=h.createContext(null),Q=ne;function ue(vt){return Array.isArray(vt)?vt:vt!==void 0?[vt]:[]}function he(vt){var Ct=vt||{},Bt=Ct.label,mt=Ct.value,Zt=Ct.children,zt=mt||"value";return{_title:Bt?[Bt]:["title","label"],value:zt,key:zt,children:Zt||"children"}}function Ee(vt){return!vt||vt.disabled||vt.disableCheckbox||vt.checkable===!1}function ce(vt,Ct){var Bt=[];function mt(Zt){Zt.forEach(function(zt){var ln=zt[Ct.children];ln&&(Bt.push(zt[Ct.value]),mt(ln))})}return mt(vt),Bt}function ve(vt){return vt==null}var fe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},we=function(Ct,Bt){var mt=(0,d.lk)(),Zt=mt.prefixCls,zt=mt.multiple,ln=mt.searchValue,An=mt.toggleOpen,En=mt.open,Gn=mt.notFoundContent,Bn=h.useContext(Q),pr=Bn.virtual,_r=Bn.listHeight,na=Bn.listItemHeight,$n=Bn.treeData,qr=Bn.fieldNames,Jr=Bn.onSelect,Aa=Bn.dropdownMatchSelectWidth,ya=Bn.treeExpandAction,$t=h.useContext(re),wn=$t.checkable,Fn=$t.checkedKeys,Or=$t.halfCheckedKeys,vr=$t.treeExpandedKeys,Ur=$t.treeDefaultExpandAll,Zr=$t.treeDefaultExpandedKeys,Kr=$t.onTreeExpand,ba=$t.treeIcon,Ri=$t.showTreeIcon,Ea=$t.switcherIcon,Pi=$t.treeLine,rs=$t.treeNodeFilterProp,Ui=$t.loadData,Cn=$t.treeLoadedKeys,Kn=$t.treeMotion,Pn=$t.onTreeLoad,At=$t.keyEntities,ar=h.useRef(),ta=G(function(){return $n},[En,$n],function(Ot,gr){return gr[0]&&Ot[1]!==gr[1]}),Yn=h.useMemo(function(){return wn?{checked:Fn,halfChecked:Or}:null},[wn,Fn,Or]);h.useEffect(function(){if(En&&!zt&&Fn.length){var Ot;(Ot=ar.current)===null||Ot===void 0||Ot.scrollTo({key:Fn[0]})}},[En]);var Qa=String(ln).toLowerCase(),Ua=function(gr){return Qa?String(gr[rs]).toLowerCase().includes(Qa):!1},Fi=h.useState(Zr),Xa=(0,m.Z)(Fi,2),$i=Xa[0],La=Xa[1],ja=h.useState(null),ei=(0,m.Z)(ja,2),Do=ei[0],yo=ei[1],to=h.useMemo(function(){return vr?(0,M.Z)(vr):ln?Do:$i},[$i,Do,vr,ln]);h.useEffect(function(){ln&&yo(ce($n,qr))},[ln]);var fs=function(gr){La(gr),yo(gr),Kr&&Kr(gr)},cs=function(gr){gr.preventDefault()},Os=function(gr,Gr){var Ln=Gr.node;wn&&Ee(Ln)||(Jr(Ln.key,{selected:!Fn.includes(Ln.key)}),zt||An(!1))},vl=h.useState(null),Ar=(0,m.Z)(vl,2),Rn=Ar[0],Sr=Ar[1],nn=At[Rn];if(h.useImperativeHandle(Bt,function(){var Ot;return{scrollTo:(Ot=ar.current)===null||Ot===void 0?void 0:Ot.scrollTo,onKeyDown:function(Gr){var Ln,Tr=Gr.which;switch(Tr){case $.UP:case $.DOWN:case $.LEFT:case $.RIGHT:(Ln=ar.current)===null||Ln===void 0||Ln.onKeyDown(Gr);break;case $.ENTER:{if(nn){var Dn=(nn==null?void 0:nn.node)||{},Pr=Dn.selectable,fa=Dn.value;Pr!==!1&&Os(null,{node:{key:Rn},selected:!Fn.includes(fa)})}break}case $.ESC:An(!1)}},onKeyUp:function(){}}}),ta.length===0)return h.createElement("div",{role:"listbox",className:"".concat(Zt,"-empty"),onMouseDown:cs},Gn);var sn={fieldNames:qr};return Cn&&(sn.loadedKeys=Cn),to&&(sn.expandedKeys=to),h.createElement("div",{onMouseDown:cs},nn&&En&&h.createElement("span",{style:fe,"aria-live":"assertive"},nn.node.value),h.createElement(z.Z,(0,x.Z)({ref:ar,focusable:!1,prefixCls:"".concat(Zt,"-tree"),treeData:ta,height:_r,itemHeight:na,virtual:pr!==!1&&Aa!==!1,multiple:zt,icon:ba,showIcon:Ri,switcherIcon:Ea,showLine:Pi,loadData:ln?null:Ui,motion:Kn,activeKey:Rn,checkable:wn,checkStrictly:!0,checkedKeys:Yn,selectedKeys:wn?[]:Fn,defaultExpandAll:Ur},sn,{onActiveChange:Sr,onSelect:Os,onCheck:Os,onExpand:fs,onLoad:Pn,filterTreeNode:Ua,expandAction:ya})))},me=h.forwardRef(we);me.displayName="OptionList";var Pe=me,pe=function(){return null},Ie=pe,Je="SHOW_ALL",ke="SHOW_PARENT",De="SHOW_CHILD";function Fe(vt,Ct,Bt,mt){var Zt=new Set(vt);return Ct===De?vt.filter(function(zt){var ln=Bt[zt];return!(ln&&ln.children&&ln.children.some(function(An){var En=An.node;return Zt.has(En[mt.value])})&&ln.children.every(function(An){var En=An.node;return Ee(En)||Zt.has(En[mt.value])}))}):Ct===ke?vt.filter(function(zt){var ln=Bt[zt],An=ln?ln.parent:null;return!(An&&!Ee(An.node)&&Zt.has(An.key))}):vt}var Qe=o(54323);function qe(vt){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bt=[];return h.Children.forEach(vt,function(mt){mt==null&&!Ct.keepEmpty||(Array.isArray(mt)?Bt=Bt.concat(qe(mt)):(0,Qe.isFragment)(mt)&&mt.props?Bt=Bt.concat(qe(mt.props.children,Ct)):Bt.push(mt))}),Bt}var et={},dt=[],Ke=function(Ct){dt.push(Ct)};function Ge(vt,Ct){if(!1)var Bt}function wt(vt,Ct){if(!1)var Bt}function Vt(){et={}}function gt(vt,Ct,Bt){!Ct&&!et[Bt]&&(vt(!1,Bt),et[Bt]=!0)}function it(vt,Ct){gt(Ge,vt,Ct)}function Le(vt,Ct){gt(wt,vt,Ct)}it.preMessage=Ke,it.resetWarned=Vt,it.noteOnce=Le;var ct=it,at=["children","value"];function jt(vt){return qe(vt).map(function(Ct){if(!h.isValidElement(Ct)||!Ct.type)return null;var Bt=Ct,mt=Bt.key,Zt=Bt.props,zt=Zt.children,ln=Zt.value,An=(0,b.Z)(Zt,at),En=(0,w.Z)({key:mt,value:ln},An),Gn=jt(zt);return Gn.length&&(En.children=Gn),En}).filter(function(Ct){return Ct})}function St(vt){if(!vt)return vt;var Ct=(0,w.Z)({},vt);return"props"in Ct||Object.defineProperty(Ct,"props",{get:function(){return ct(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Ct}}),Ct}function fn(vt,Ct,Bt,mt,Zt,zt){var ln=null,An=null;function En(){function Gn(Bn){var pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",_r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Bn.map(function(na,$n){var qr="".concat(pr,"-").concat($n),Jr=na[zt.value],Aa=Bt.includes(Jr),ya=Gn(na[zt.children]||[],qr,Aa),$t=h.createElement(Ie,na,ya.map(function(Fn){return Fn.node}));if(Ct===Jr&&(ln=$t),Aa){var wn={pos:qr,node:$t,children:ya};return _r||An.push(wn),wn}return null}).filter(function(na){return na})}An||(An=[],Gn(mt),An.sort(function(Bn,pr){var _r=Bn.node.props.value,na=pr.node.props.value,$n=Bt.indexOf(_r),qr=Bt.indexOf(na);return $n-qr}))}Object.defineProperty(vt,"triggerNode",{get:function(){return ct(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),En(),ln}}),Object.defineProperty(vt,"allCheckedNodes",{get:function(){return ct(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),En(),Zt?An:An.map(function(Bn){var pr=Bn.node;return pr})}})}function Xt(vt,Ct){var Bt=Ct.id,mt=Ct.pId,Zt=Ct.rootPId,zt={},ln=[],An=vt.map(function(En){var Gn=(0,w.Z)({},En),Bn=Gn[Bt];return zt[Bn]=Gn,Gn.key=Gn.key||Bn,Gn});return An.forEach(function(En){var Gn=En[mt],Bn=zt[Gn];Bn&&(Bn.children=Bn.children||[],Bn.children.push(En)),(Gn===Zt||!Bn&&Zt===null)&&ln.push(En)}),ln}function Yt(vt,Ct,Bt){return h.useMemo(function(){return vt?Bt?Xt(vt,(0,w.Z)({id:"id",pId:"pId",rootPId:null},Bt!==!0?Bt:{})):vt:jt(Ct)},[Ct,Bt,vt])}var Rt=function(vt){var Ct=h.useRef({valueLabels:new Map});return h.useMemo(function(){var Bt=Ct.current.valueLabels,mt=new Map,Zt=vt.map(function(zt){var ln,An=zt.value,En=(ln=zt.label)!==null&&ln!==void 0?ln:Bt.get(An);return mt.set(An,En),(0,w.Z)((0,w.Z)({},zt),{},{label:En})});return Ct.current.valueLabels=mt,[Zt]},[vt])};function Lt(vt){var Ct=h.useRef();Ct.current=vt;var Bt=h.useCallback(function(){return Ct.current.apply(Ct,arguments)},[]);return Bt}var ze=o(93254),rt=function(vt,Ct){return h.useMemo(function(){var Bt=(0,ze.I8)(vt,{fieldNames:Ct,initWrapper:function(Zt){return(0,w.Z)((0,w.Z)({},Zt),{},{valueEntities:new Map})},processEntity:function(Zt,zt){var ln=Zt.node[Ct.value];if(!1)var An;zt.valueEntities.set(ln,Zt)}});return Bt},[vt,Ct])},tt=function(vt,Ct,Bt,mt){return h.useMemo(function(){var Zt=vt.map(function(En){var Gn=En.value;return Gn}),zt=Ct.map(function(En){var Gn=En.value;return Gn}),ln=Zt.filter(function(En){return!mt[En]});if(Bt){var An=(0,_.S)(Zt,!0,mt);Zt=An.checkedKeys,zt=An.halfCheckedKeys}return[Array.from(new Set([].concat((0,M.Z)(ln),(0,M.Z)(Zt)))),zt]},[vt,Ct,Bt,mt])},de=function(vt,Ct,Bt){var mt=Bt.treeNodeFilterProp,Zt=Bt.filterTreeNode,zt=Bt.fieldNames,ln=zt.children;return h.useMemo(function(){if(!Ct||Zt===!1)return vt;var An;if(typeof Zt=="function")An=Zt;else{var En=Ct.toUpperCase();An=function(pr,_r){var na=_r[mt];return String(na).toUpperCase().includes(En)}}function Gn(Bn){var pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Bn.map(function(_r){var na=_r[ln],$n=pr||An(Ct,St(_r)),qr=Gn(na||[],$n);return $n||qr.length?(0,w.Z)((0,w.Z)({},_r),{},(0,g.Z)({isLeaf:void 0},ln,qr)):null}).filter(function(_r){return _r})}return Gn(vt)},[vt,Ct,ln,mt,Zt])};function ot(vt){var Ct=vt.searchPlaceholder,Bt=vt.treeCheckStrictly,mt=vt.treeCheckable,Zt=vt.labelInValue,zt=vt.value,ln=vt.multiple;warning(!Ct,"`searchPlaceholder` has been removed."),Bt&&Zt===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Zt||Bt)&&warning(toArray(zt).every(function(An){return An&&_typeof(An)==="object"&&"value"in An}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Bt||ln||mt?warning(!zt||Array.isArray(zt),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(zt),"`value` should not be array when `TreeSelect` is single mode.")}var Et=null,Ht=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function Jt(vt){return!vt||(0,v.Z)(vt)!=="object"}var Qt=h.forwardRef(function(vt,Ct){var Bt=vt.id,mt=vt.prefixCls,Zt=mt===void 0?"rc-tree-select":mt,zt=vt.value,ln=vt.defaultValue,An=vt.onChange,En=vt.onSelect,Gn=vt.onDeselect,Bn=vt.searchValue,pr=vt.inputValue,_r=vt.onSearch,na=vt.autoClearSearchValue,$n=na===void 0?!0:na,qr=vt.filterTreeNode,Jr=vt.treeNodeFilterProp,Aa=Jr===void 0?"value":Jr,ya=vt.showCheckedStrategy,$t=ya===void 0?De:ya,wn=vt.treeNodeLabelProp,Fn=vt.multiple,Or=vt.treeCheckable,vr=vt.treeCheckStrictly,Ur=vt.labelInValue,Zr=vt.fieldNames,Kr=vt.treeDataSimpleMode,ba=vt.treeData,Ri=vt.children,Ea=vt.loadData,Pi=vt.treeLoadedKeys,rs=vt.onTreeLoad,Ui=vt.treeDefaultExpandAll,Cn=vt.treeExpandedKeys,Kn=vt.treeDefaultExpandedKeys,Pn=vt.onTreeExpand,At=vt.treeExpandAction,ar=vt.virtual,ta=vt.listHeight,Yn=ta===void 0?200:ta,Qa=vt.listItemHeight,Ua=Qa===void 0?20:Qa,Fi=vt.onDropdownVisibleChange,Xa=vt.dropdownMatchSelectWidth,$i=Xa===void 0?!0:Xa,La=vt.treeLine,ja=vt.treeIcon,ei=vt.showTreeIcon,Do=vt.switcherIcon,yo=vt.treeMotion,to=(0,b.Z)(vt,Ht),fs=(0,p.ZP)(Bt),cs=Or&&!vr,Os=Or||vr,vl=vr||Ur,Ar=Os||Fn,Rn=L(ln,{value:zt}),Sr=(0,m.Z)(Rn,2),nn=Sr[0],sn=Sr[1],Ot=h.useMemo(function(){return he(Zr)},[JSON.stringify(Zr)]),gr=L("",{value:Bn!==void 0?Bn:pr,postState:function(Da){return Da||""}}),Gr=(0,m.Z)(gr,2),Ln=Gr[0],Tr=Gr[1],Dn=function(Da){Tr(Da),_r==null||_r(Da)},Pr=Yt(ba,Ri,Kr),fa=rt(Pr,Ot),ka=fa.keyEntities,Li=fa.valueEntities,zi=h.useCallback(function(da){var Da=[],mi=[];return da.forEach(function(Ho){Li.has(Ho)?mi.push(Ho):Da.push(Ho)}),{missingRawValues:Da,existRawValues:mi}},[Li]),Mo=de(Pr,Ln,{fieldNames:Ot,treeNodeFilterProp:Aa,filterTreeNode:qr}),Za=h.useCallback(function(da){if(da){if(wn)return da[wn];for(var Da=Ot._title,mi=0;mi<Da.length;mi+=1){var Ho=da[Da[mi]];if(Ho!==void 0)return Ho}}},[Ot,wn]),ao=h.useCallback(function(da){var Da=ue(da);return Da.map(function(mi){return Jt(mi)?{value:mi}:mi})},[]),Mi=h.useCallback(function(da){var Da=ao(da);return Da.map(function(mi){var Ho=mi.label,al=mi.value,ml=mi.halfChecked,Xs,Ps=Li.get(al);if(Ps){var dl;Ho=(dl=Ho)!==null&&dl!==void 0?dl:Za(Ps.node),Xs=Ps.node.disabled}else if(Ho===void 0){var ql=ao(nn).find(function(Dc){return Dc.value===al});Ho=ql.label}return{label:Ho,value:al,halfChecked:ml,disabled:Xs}})},[Li,Za,ao,nn]),Eo=h.useMemo(function(){return ao(nn)},[ao,nn]),Xi=h.useMemo(function(){var da=[],Da=[];return Eo.forEach(function(mi){mi.halfChecked?Da.push(mi):da.push(mi)}),[da,Da]},[Eo]),Bo=(0,m.Z)(Xi,2),ol=Bo[0],Il=Bo[1],ms=h.useMemo(function(){return ol.map(function(da){return da.value})},[ol]),mc=tt(ol,Il,cs,ka),Ys=(0,m.Z)(mc,2),hl=Ys[0],Rs=Ys[1],xl=h.useMemo(function(){var da=Fe(hl,$t,ka,Ot),Da=da.map(function(ml){var Xs,Ps,dl;return(Xs=(Ps=ka[ml])===null||Ps===void 0||(dl=Ps.node)===null||dl===void 0?void 0:dl[Ot.value])!==null&&Xs!==void 0?Xs:ml}),mi=Da.map(function(ml){var Xs=ol.find(function(Ps){return Ps.value===ml});return{value:ml,label:Xs==null?void 0:Xs.label}}),Ho=Mi(mi),al=Ho[0];return!Ar&&al&&ve(al.value)&&ve(al.label)?[]:Ho.map(function(ml){var Xs;return(0,w.Z)((0,w.Z)({},ml),{},{label:(Xs=ml.label)!==null&&Xs!==void 0?Xs:ml.value})})},[Ot,Ar,hl,ol,Mi,$t,ka]),Wl=Rt(xl),_l=(0,m.Z)(Wl,1),Ls=_l[0],zn=Lt(function(da,Da,mi){var Ho=Mi(da);if(sn(Ho),$n&&Tr(""),An){var al=da;if(cs){var ml=Fe(da,$t,ka,Ot);al=ml.map(function(ku){var Zc=Li.get(ku);return Zc?Zc.node[Ot.value]:ku})}var Xs=Da||{triggerValue:void 0,selected:void 0},Ps=Xs.triggerValue,dl=Xs.selected,ql=al;if(vr){var Dc=Il.filter(function(ku){return!al.includes(ku.value)});ql=[].concat((0,M.Z)(ql),(0,M.Z)(Dc))}var Jl=Mi(ql),oc={preValue:ol,triggerValue:Ps},xu=!0;(vr||mi==="selection"&&!dl)&&(xu=!1),fn(oc,Ps,da,Pr,xu,Ot),Os?oc.checked=dl:oc.selected=dl;var yf=vl?Jl:Jl.map(function(ku){return ku.value});An(Ar?yf:yf[0],vl?null:Jl.map(function(ku){return ku.label}),oc)}}),Dr=h.useCallback(function(da,Da){var mi,Ho=Da.selected,al=Da.source,ml=ka[da],Xs=ml==null?void 0:ml.node,Ps=(mi=Xs==null?void 0:Xs[Ot.value])!==null&&mi!==void 0?mi:da;if(!Ar)zn([Ps],{selected:!0,triggerValue:Ps},"option");else{var dl=Ho?[].concat((0,M.Z)(ms),[Ps]):hl.filter(function(Zc){return Zc!==Ps});if(cs){var ql=zi(dl),Dc=ql.missingRawValues,Jl=ql.existRawValues,oc=Jl.map(function(Zc){return Li.get(Zc).key}),xu;if(Ho){var yf=(0,_.S)(oc,!0,ka);xu=yf.checkedKeys}else{var ku=(0,_.S)(oc,{checked:!1,halfCheckedKeys:Rs},ka);xu=ku.checkedKeys}dl=[].concat((0,M.Z)(Dc),(0,M.Z)(xu.map(function(Zc){return ka[Zc].node[Ot.value]})))}zn(dl,{selected:Ho,triggerValue:Ps},al||"option")}Ho||!Ar?En==null||En(Ps,St(Xs)):Gn==null||Gn(Ps,St(Xs))},[zi,Li,ka,Ot,Ar,ms,zn,cs,En,Gn,hl,Rs]),Hr=h.useCallback(function(da){if(Fi){var Da={};Object.defineProperty(Da,"documentClickClose",{get:function(){return ct(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Fi(da,Da)}},[Fi]),_a=Lt(function(da,Da){var mi=da.map(function(Ho){return Ho.value});if(Da.type==="clear"){zn(mi,{},"selection");return}Da.values.length&&Dr(Da.values[0].value,{selected:!1,source:"selection"})}),Ti=h.useMemo(function(){return{virtual:ar,dropdownMatchSelectWidth:$i,listHeight:Yn,listItemHeight:Ua,treeData:Mo,fieldNames:Ot,onSelect:Dr,treeExpandAction:At}},[ar,$i,Yn,Ua,Mo,Ot,Dr,At]),Ci=h.useMemo(function(){return{checkable:Os,loadData:Ea,treeLoadedKeys:Pi,onTreeLoad:rs,checkedKeys:hl,halfCheckedKeys:Rs,treeDefaultExpandAll:Ui,treeExpandedKeys:Cn,treeDefaultExpandedKeys:Kn,onTreeExpand:Pn,treeIcon:ja,treeMotion:yo,showTreeIcon:ei,switcherIcon:Do,treeLine:La,treeNodeFilterProp:Aa,keyEntities:ka}},[Os,Ea,Pi,rs,hl,Rs,Ui,Cn,Kn,Pn,ja,yo,ei,Do,La,Aa,ka]);return h.createElement(Q.Provider,{value:Ti},h.createElement(re.Provider,{value:Ci},h.createElement(d.Ac,(0,x.Z)({ref:Ct},to,{id:fs,prefixCls:Zt,mode:Ar?"multiple":void 0,displayValues:Ls,onDisplayValuesChange:_a,searchValue:Ln,onSearch:Dn,OptionList:Pe,emptyOptions:!Pr.length,onDropdownVisibleChange:Hr,dropdownMatchSelectWidth:$i}))))}),an=Qt;an.TreeNode=Ie,an.SHOW_ALL=Je,an.SHOW_PARENT=ke,an.SHOW_CHILD=De;var Un=an,qt=Un,rn=o(69252),cn=o(9054),er=o(21042),rr=o(99469),nt=o(10772),lr=o(27495),Hn=o(23827),ut=o(82845),bt=o(31064),We=o(16786),be=o(1358),Ae=function(vt,Ct){var Bt={};for(var mt in vt)Object.prototype.hasOwnProperty.call(vt,mt)&&Ct.indexOf(mt)<0&&(Bt[mt]=vt[mt]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,mt=Object.getOwnPropertySymbols(vt);Zt<mt.length;Zt++)Ct.indexOf(mt[Zt])<0&&Object.prototype.propertyIsEnumerable.call(vt,mt[Zt])&&(Bt[mt[Zt]]=vt[mt[Zt]]);return Bt},Ue=function(Ct,Bt){var mt,Zt=Ct.prefixCls,zt=Ct.size,ln=Ct.disabled,An=Ct.bordered,En=An===void 0?!0:An,Gn=Ct.className,Bn=Ct.treeCheckable,pr=Ct.multiple,_r=Ct.listHeight,na=_r===void 0?256:_r,$n=Ct.listItemHeight,qr=$n===void 0?26:$n,Jr=Ct.placement,Aa=Ct.notFoundContent,ya=Ct.switcherIcon,$t=Ct.treeLine,wn=Ct.getPopupContainer,Fn=Ct.dropdownClassName,Or=Ct.popupClassName,vr=Ct.treeIcon,Ur=vr===void 0?!1:vr,Zr=Ct.transitionName,Kr=Ct.choiceTransitionName,ba=Kr===void 0?"":Kr,Ri=Ct.status,Ea=Ct.showArrow,Pi=Ct.treeExpandAction,rs=Ae(Ct,["prefixCls","size","disabled","bordered","className","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","dropdownClassName","popupClassName","treeIcon","transitionName","choiceTransitionName","status","showArrow","treeExpandAction"]),Ui=h.useContext(cn.E_),Cn=Ui.getPopupContainer,Kn=Ui.getPrefixCls,Pn=Ui.renderEmpty,At=Ui.direction,ar=Ui.virtual,ta=Ui.dropdownMatchSelectWidth,Yn=h.useContext(nt.Z),Qa=Kn("select",Zt),Ua=Kn("select-tree",Zt),Fi=Kn("tree-select",Zt),Xa=(0,be.ri)(Qa,At),$i=Xa.compactSize,La=Xa.compactItemClassnames,ja=y()(Or||Fn,"".concat(Fi,"-dropdown"),(0,g.Z)({},"".concat(Fi,"-dropdown-rtl"),At==="rtl")),ei=!!(Bn||pr),Do=Ea!==void 0?Ea:rs.loading||!ei,yo=(0,h.useContext)(lr.aM),to=yo.status,fs=yo.hasFeedback,cs=yo.isFormItemInput,Os=yo.feedbackIcon,vl=(0,We.F)(to,Ri),Ar=(0,Hn.Z)((0,x.Z)((0,x.Z)({},rs),{multiple:ei,showArrow:Do,hasFeedback:fs,feedbackIcon:Os,prefixCls:Qa})),Rn=Ar.suffixIcon,Sr=Ar.removeIcon,nn=Ar.clearIcon,sn;Aa!==void 0?sn=Aa:sn=(Pn||er.Z)("Select");var Ot=(0,rn.Z)(rs,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),gr=function(){return Jr!==void 0?Jr:At==="rtl"?"bottomRight":"bottomLeft"},Gr=$i||zt||Yn,Ln=h.useContext(rr.Z),Tr=ln!=null?ln:Ln,Dn=y()(!Zt&&Fi,(mt={},(0,g.Z)(mt,"".concat(Qa,"-lg"),Gr==="large"),(0,g.Z)(mt,"".concat(Qa,"-sm"),Gr==="small"),(0,g.Z)(mt,"".concat(Qa,"-rtl"),At==="rtl"),(0,g.Z)(mt,"".concat(Qa,"-borderless"),!En),(0,g.Z)(mt,"".concat(Qa,"-in-form-item"),cs),mt),(0,We.Z)(Qa,vl,fs),La,Gn),Pr=Kn();return h.createElement(qt,(0,x.Z)({virtual:ar,dropdownMatchSelectWidth:ta,disabled:Tr},Ot,{ref:Bt,prefixCls:Qa,className:Dn,listHeight:na,listItemHeight:qr,treeCheckable:Bn&&h.createElement("span",{className:"".concat(Qa,"-tree-checkbox-inner")}),treeLine:!!$t,inputIcon:Rn,multiple:pr,placement:gr(),removeIcon:Sr,clearIcon:nn,switcherIcon:function(ka){return(0,ut.Z)(Ua,ya,$t,ka)},showTreeIcon:Ur,notFoundContent:sn,getPopupContainer:wn||Cn,treeMotion:null,dropdownClassName:ja,choiceTransitionName:(0,bt.mL)(Pr,"",ba),transitionName:(0,bt.mL)(Pr,(0,bt.q0)(Jr),Zr),showArrow:fs||Ea,treeExpandAction:Pi}))},$e=h.forwardRef(Ue),kt=$e;kt.TreeNode=Ie,kt.SHOW_ALL=Je,kt.SHOW_PARENT=ke,kt.SHOW_CHILD=De;var lt=kt},37092:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(45747),y=o.n(A),M=o(93806),w=o(97140)},54943:function(oe,N,o){"use strict";o.d(N,{Z:function(){return Fe}});var x=o(18633),g=o(96156),A=o(90484),y=o(22122),M=o(28991),w=o(67294),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},b=m,v=o(27029),h=function(qe,et){return w.createElement(v.Z,(0,M.Z)((0,M.Z)({},qe),{},{ref:et,icon:b}))};h.displayName="HolderOutlined";var d=w.forwardRef(h),_=o(35510),p=o.n(_),S=o(9054),k=o(31064),O=4;function F(Qe){var qe,et=Qe.dropPosition,dt=Qe.dropLevelOffset,Ke=Qe.prefixCls,Ge=Qe.indent,wt=Qe.direction,Vt=wt===void 0?"ltr":wt,gt=Vt==="ltr"?"left":"right",it=Vt==="ltr"?"right":"left",Le=(qe={},(0,g.Z)(qe,gt,-dt*Ge+O),(0,g.Z)(qe,it,0),qe);switch(et){case-1:Le.top=-3;break;case 1:Le.bottom=-3;break;default:Le.bottom=-3,Le[gt]=Ge+O;break}return w.createElement("div",{style:Le,className:"".concat(Ke,"-drop-indicator")})}var D=o(82845),Z=w.forwardRef(function(Qe,qe){var et,dt=w.useContext(S.E_),Ke=dt.getPrefixCls,Ge=dt.direction,wt=dt.virtual,Vt=Qe.prefixCls,gt=Qe.className,it=Qe.showIcon,Le=it===void 0?!1:it,ct=Qe.showLine,at=Qe.switcherIcon,jt=Qe.blockNode,St=jt===void 0?!1:jt,fn=Qe.children,Xt=Qe.checkable,Yt=Xt===void 0?!1:Xt,Rt=Qe.selectable,Lt=Rt===void 0?!0:Rt,ze=Qe.draggable,rt=Qe.motion,tt=rt===void 0?(0,y.Z)((0,y.Z)({},k.ZP),{motionAppear:!1}):rt,de=Ke("tree",Vt),ot=(0,y.Z)((0,y.Z)({},Qe),{checkable:Yt,selectable:Lt,showIcon:Le,motion:tt,blockNode:St,showLine:Boolean(ct),dropIndicatorRender:F}),Et=w.useMemo(function(){if(!ze)return!1;var Ht={};switch((0,A.Z)(ze)){case"function":Ht.nodeDraggable=ze;break;case"object":Ht=(0,y.Z)({},ze);break;default:break}return Ht.icon!==!1&&(Ht.icon=Ht.icon||w.createElement(d,null)),Ht},[ze]);return w.createElement(x.Z,(0,y.Z)({itemHeight:20,ref:qe,virtual:wt},ot,{prefixCls:de,className:p()((et={},(0,g.Z)(et,"".concat(de,"-icon-hide"),!Le),(0,g.Z)(et,"".concat(de,"-block-node"),St),(0,g.Z)(et,"".concat(de,"-unselectable"),!Lt),(0,g.Z)(et,"".concat(de,"-rtl"),Ge==="rtl"),et),gt),direction:Ge,checkable:Yt&&w.createElement("span",{className:"".concat(de,"-checkbox-inner")}),selectable:Lt,switcherIcon:function(Jt){return(0,D.Z)(de,at,ct,Jt)},draggable:Et}),fn)}),W=Z,U=o(85061),L=o(28481),V=o(86504),$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},G=$,z=function(qe,et){return w.createElement(v.Z,(0,M.Z)((0,M.Z)({},qe),{},{ref:et,icon:G}))};z.displayName="FolderOpenOutlined";var K=w.forwardRef(z),re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},ne=re,Q=function(qe,et){return w.createElement(v.Z,(0,M.Z)((0,M.Z)({},qe),{},{ref:et,icon:ne}))};Q.displayName="FolderOutlined";var ue=w.forwardRef(Q),he=o(5409),Ee=o(93254),ce;(function(Qe){Qe[Qe.None=0]="None",Qe[Qe.Start=1]="Start",Qe[Qe.End=2]="End"})(ce||(ce={}));function ve(Qe,qe){function et(dt){var Ke=dt.key,Ge=dt.children;qe(Ke,dt)!==!1&&ve(Ge||[],qe)}Qe.forEach(et)}function fe(Qe){var qe=Qe.treeData,et=Qe.expandedKeys,dt=Qe.startKey,Ke=Qe.endKey,Ge=[],wt=ce.None;if(dt&&dt===Ke)return[dt];if(!dt||!Ke)return[];function Vt(gt){return gt===dt||gt===Ke}return ve(qe,function(gt){if(wt===ce.End)return!1;if(Vt(gt)){if(Ge.push(gt),wt===ce.None)wt=ce.Start;else if(wt===ce.Start)return wt=ce.End,!1}else wt===ce.Start&&Ge.push(gt);return et.includes(gt)}),Ge}function we(Qe,qe){var et=(0,U.Z)(qe),dt=[];return ve(Qe,function(Ke,Ge){var wt=et.indexOf(Ke);return wt!==-1&&(dt.push(Ge),et.splice(wt,1)),!!et.length}),dt}var me=function(Qe,qe){var et={};for(var dt in Qe)Object.prototype.hasOwnProperty.call(Qe,dt)&&qe.indexOf(dt)<0&&(et[dt]=Qe[dt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,dt=Object.getOwnPropertySymbols(Qe);Ke<dt.length;Ke++)qe.indexOf(dt[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Qe,dt[Ke])&&(et[dt[Ke]]=Qe[dt[Ke]]);return et};function Pe(Qe){var qe=Qe.isLeaf,et=Qe.expanded;return qe?w.createElement(V.Z,null):et?w.createElement(K,null):w.createElement(ue,null)}function pe(Qe){var qe=Qe.treeData,et=Qe.children;return qe||(0,Ee.zn)(et)}var Ie=function(qe,et){var dt=qe.defaultExpandAll,Ke=qe.defaultExpandParent,Ge=qe.defaultExpandedKeys,wt=me(qe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),Vt=w.useRef(),gt=w.useRef(),it=function(){var cn=(0,Ee.I8)(pe(wt)),er=cn.keyEntities,rr;return dt?rr=Object.keys(er):Ke?rr=(0,he.r7)(wt.expandedKeys||Ge||[],er):rr=wt.expandedKeys||Ge,rr},Le=w.useState(wt.selectedKeys||wt.defaultSelectedKeys||[]),ct=(0,L.Z)(Le,2),at=ct[0],jt=ct[1],St=w.useState(function(){return it()}),fn=(0,L.Z)(St,2),Xt=fn[0],Yt=fn[1];w.useEffect(function(){"selectedKeys"in wt&&jt(wt.selectedKeys)},[wt.selectedKeys]),w.useEffect(function(){"expandedKeys"in wt&&Yt(wt.expandedKeys)},[wt.expandedKeys]);var Rt=function(cn,er){var rr;return"expandedKeys"in wt||Yt(cn),(rr=wt.onExpand)===null||rr===void 0?void 0:rr.call(wt,cn,er)},Lt=function(cn,er){var rr,nt=wt.multiple,lr=er.node,Hn=er.nativeEvent,ut=lr.key,bt=ut===void 0?"":ut,We=pe(wt),be=(0,y.Z)((0,y.Z)({},er),{selected:!0}),Ae=(Hn==null?void 0:Hn.ctrlKey)||(Hn==null?void 0:Hn.metaKey),Ue=Hn==null?void 0:Hn.shiftKey,$e;nt&&Ae?($e=cn,Vt.current=bt,gt.current=$e,be.selectedNodes=we(We,$e)):nt&&Ue?($e=Array.from(new Set([].concat((0,U.Z)(gt.current||[]),(0,U.Z)(fe({treeData:We,expandedKeys:Xt,startKey:bt,endKey:Vt.current}))))),be.selectedNodes=we(We,$e)):($e=[bt],Vt.current=bt,gt.current=$e,be.selectedNodes=we(We,$e)),(rr=wt.onSelect)===null||rr===void 0||rr.call(wt,$e,be),"selectedKeys"in wt||jt($e)},ze=w.useContext(S.E_),rt=ze.getPrefixCls,tt=ze.direction,de=wt.prefixCls,ot=wt.className,Et=wt.showIcon,Ht=Et===void 0?!0:Et,Jt=wt.expandAction,Qt=Jt===void 0?"click":Jt,an=me(wt,["prefixCls","className","showIcon","expandAction"]),Un=rt("tree",de),qt=p()("".concat(Un,"-directory"),(0,g.Z)({},"".concat(Un,"-directory-rtl"),tt==="rtl"),ot);return w.createElement(W,(0,y.Z)({icon:Pe,ref:et,blockNode:!0},an,{showIcon:Ht,expandAction:Qt,prefixCls:Un,className:qt,expandedKeys:Xt,selectedKeys:at,onSelect:Lt,onExpand:Rt}))},Je=w.forwardRef(Ie),ke=Je,De=W;De.DirectoryTree=ke,De.TreeNode=x.O;var Fe=De},87753:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(16695),y=o.n(A)},82845:function(oe,N,o){"use strict";o.d(N,{Z:function(){return L}});var x=o(90484),g=o(28991),A=o(67294),y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},M=y,w=o(27029),m=function($,G){return A.createElement(w.Z,(0,g.Z)((0,g.Z)({},$),{},{ref:G,icon:M}))};m.displayName="CaretDownFilled";var b=A.forwardRef(m),v=o(86504),h=o(7085),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},_=d,p=function($,G){return A.createElement(w.Z,(0,g.Z)((0,g.Z)({},$),{},{ref:G,icon:_}))};p.displayName="MinusSquareOutlined";var S=A.forwardRef(p),k={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},O=k,F=function($,G){return A.createElement(w.Z,(0,g.Z)((0,g.Z)({},$),{},{ref:G,icon:O}))};F.displayName="PlusSquareOutlined";var D=A.forwardRef(F),Z=o(35510),W=o.n(Z),U=o(75447);function L(V,$,G,z){var K=z.isLeaf,re=z.expanded,ne=z.loading;if(ne)return A.createElement(h.Z,{className:"".concat(V,"-switcher-loading-icon")});var Q;if(G&&(0,x.Z)(G)==="object"&&(Q=G.showLeafIcon),K){if(!G)return null;if(typeof Q!="boolean"&&!!Q){var ue=typeof Q=="function"?Q(z):Q,he="".concat(V,"-switcher-line-custom-icon");return(0,U.l$)(ue)?(0,U.Tm)(ue,{className:W()(ue.props.className||"",he)}):ue}return Q?A.createElement(v.Z,{className:"".concat(V,"-switcher-line-icon")}):A.createElement("span",{className:"".concat(V,"-switcher-leaf-line")})}var Ee="".concat(V,"-switcher-icon"),ce=typeof $=="function"?$(z):$;return(0,U.l$)(ce)?(0,U.Tm)(ce,{className:W()(ce.props.className||"",Ee)}):ce||(G?re?A.createElement(S,{className:"".concat(V,"-switcher-line-icon")}):A.createElement(D,{className:"".concat(V,"-switcher-line-icon")}):A.createElement(b,{className:Ee}))}},35840:function(oe,N,o){"use strict";o.d(N,{Z:function(){return qt}});var x=o(22122),g=o(67294),A=o(96156),y=o(90484),M=o(28481),w=o(79508),m=o(99165),b=o(8212),v=o(35510),h=o.n(v),d=o(36378),_=o.n(d),p=o(50279),S=o(83025),k=o(44793),O=o(92866),F=o(69252),D=o(99182),Z=o(9054),W=o(56701),U=o(21105),L=o(70140),V=function(cn){if((0,L.Z)()&&window.document.documentElement){var er=Array.isArray(cn)?cn:[cn],rr=window.document.documentElement;return er.some(function(nt){return nt in rr.style})}return!1},$=function(cn,er){if(!V(cn))return!1;var rr=document.createElement("div"),nt=rr.style[cn];return rr.style[cn]=er,rr.style[cn]!==nt};function G(rn,cn){return!Array.isArray(rn)&&cn!==void 0?$(rn,cn):V(rn)}var z=o(95455),K=o(28991),re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},ne=re,Q=o(27029),ue=function(cn,er){return g.createElement(Q.Z,(0,K.Z)((0,K.Z)({},cn),{},{ref:er,icon:ne}))};ue.displayName="EnterOutlined";var he=g.forwardRef(ue),Ee=o(18209),ce=o(8215),ve=o(75447),fe=function(cn){var er=cn.prefixCls,rr=cn["aria-label"],nt=cn.className,lr=cn.style,Hn=cn.direction,ut=cn.maxLength,bt=cn.autoSize,We=bt===void 0?!0:bt,be=cn.value,Ae=cn.onSave,Ue=cn.onCancel,$e=cn.onEnd,kt=cn.component,lt=cn.enterIcon,vt=lt===void 0?g.createElement(he,null):lt,Ct=g.useRef(null),Bt=g.useRef(!1),mt=g.useRef(),Zt=g.useState(be),zt=(0,M.Z)(Zt,2),ln=zt[0],An=zt[1];g.useEffect(function(){An(be)},[be]),g.useEffect(function(){if(Ct.current&&Ct.current.resizableTextArea){var Aa=Ct.current.resizableTextArea.textArea;Aa.focus();var ya=Aa.value.length;Aa.setSelectionRange(ya,ya)}},[]);var En=function(ya){var $t=ya.target;An($t.value.replace(/[\n\r]/g,""))},Gn=function(){Bt.current=!0},Bn=function(){Bt.current=!1},pr=function(ya){var $t=ya.keyCode;Bt.current||(mt.current=$t)},_r=function(){Ae(ln.trim())},na=function(ya){var $t=ya.keyCode,wn=ya.ctrlKey,Fn=ya.altKey,Or=ya.metaKey,vr=ya.shiftKey;mt.current===$t&&!Bt.current&&!wn&&!Fn&&!Or&&!vr&&($t===Ee.Z.ENTER?(_r(),$e==null||$e()):$t===Ee.Z.ESC&&Ue())},$n=function(){_r()},qr=kt?"".concat(er,"-").concat(kt):"",Jr=h()(er,"".concat(er,"-edit-content"),(0,A.Z)({},"".concat(er,"-rtl"),Hn==="rtl"),nt,qr);return g.createElement("div",{className:Jr,style:lr},g.createElement(ce.Z,{ref:Ct,maxLength:ut,value:ln,onChange:En,onKeyDown:pr,onKeyUp:na,onCompositionStart:Gn,onCompositionEnd:Bn,onBlur:$n,"aria-label":rr,rows:1,autoSize:We}),vt!==null?(0,ve.Tm)(vt,{className:"".concat(er,"-edit-content-confirm")}):null)},we=fe;function me(rn,cn){return g.useMemo(function(){var er=!!rn;return[er,(0,x.Z)((0,x.Z)({},cn),er&&(0,y.Z)(rn)==="object"?rn:null)]},[rn])}var Pe=function(cn,er){var rr=g.useRef(!1);g.useEffect(function(){rr.current?cn():rr.current=!0},er)},pe=Pe,Ie=function(rn,cn){var er={};for(var rr in rn)Object.prototype.hasOwnProperty.call(rn,rr)&&cn.indexOf(rr)<0&&(er[rr]=rn[rr]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rr=Object.getOwnPropertySymbols(rn);nt<rr.length;nt++)cn.indexOf(rr[nt])<0&&Object.prototype.propertyIsEnumerable.call(rn,rr[nt])&&(er[rr[nt]]=rn[rr[nt]]);return er},Je=g.forwardRef(function(rn,cn){var er=rn.prefixCls,rr=rn.component,nt=rr===void 0?"article":rr,lr=rn.className,Hn=rn.setContentRef,ut=rn.children,bt=rn.direction,We=Ie(rn,["prefixCls","component","className","setContentRef","children","direction"]),be=g.useContext(Z.E_),Ae=be.getPrefixCls,Ue=be.direction,$e=bt!=null?bt:Ue,kt=cn;Hn&&(kt=(0,D.sQ)(cn,Hn));var lt=Ae("typography",er),vt=h()(lt,(0,A.Z)({},"".concat(lt,"-rtl"),$e==="rtl"),lr);return g.createElement(nt,(0,x.Z)({className:vt,ref:kt},We),ut)}),ke=Je;function De(rn){var cn=(0,y.Z)(rn);return cn==="string"||cn==="number"}function Fe(rn){var cn=0;return rn.forEach(function(er){De(er)?cn+=String(er).length:cn+=1}),cn}function Qe(rn,cn){for(var er=0,rr=[],nt=0;nt<rn.length;nt+=1){if(er===cn)return rr;var lr=rn[nt],Hn=De(lr),ut=Hn?String(lr).length:1,bt=er+ut;if(bt>cn){var We=cn-er;return rr.push(String(lr).slice(0,We)),rr}rr.push(lr),er=bt}return rn}var qe=0,et=1,dt=2,Ke=3,Ge=4,wt=function(cn){var er=cn.enabledMeasure,rr=cn.children,nt=cn.text,lr=cn.width,Hn=cn.fontSize,ut=cn.rows,bt=cn.onEllipsis,We=g.useState([0,0,0]),be=(0,M.Z)(We,2),Ae=(0,M.Z)(be[0],3),Ue=Ae[0],$e=Ae[1],kt=Ae[2],lt=be[1],vt=g.useState(qe),Ct=(0,M.Z)(vt,2),Bt=Ct[0],mt=Ct[1],Zt=g.useState(0),zt=(0,M.Z)(Zt,2),ln=zt[0],An=zt[1],En=g.useRef(null),Gn=g.useRef(null),Bn=g.useMemo(function(){return(0,S.Z)(nt)},[nt]),pr=g.useMemo(function(){return Fe(Bn)},[Bn]),_r=g.useMemo(function(){return!er||Bt!==Ke?rr(Bn,!1):rr(Qe(Bn,$e),$e<pr)},[er,Bt,rr,Bn,$e,pr]);(0,k.Z)(function(){er&&lr&&Hn&&pr&&(mt(et),lt([0,Math.ceil(pr/2),pr]))},[er,lr,Hn,nt,pr,ut]),(0,k.Z)(function(){var Jr;Bt===et&&An(((Jr=En.current)===null||Jr===void 0?void 0:Jr.offsetHeight)||0)},[Bt]),(0,k.Z)(function(){var Jr,Aa;if(ln){if(Bt===et){var ya=((Jr=Gn.current)===null||Jr===void 0?void 0:Jr.offsetHeight)||0,$t=ut*ln;ya<=$t?(mt(Ge),bt(!1)):mt(dt)}else if(Bt===dt)if(Ue!==kt){var wn=((Aa=Gn.current)===null||Aa===void 0?void 0:Aa.offsetHeight)||0,Fn=ut*ln,Or=Ue,vr=kt;Ue===kt-1?vr=Ue:wn<=Fn?Or=$e:vr=$e;var Ur=Math.ceil((Or+vr)/2);lt([Or,Ur,vr])}else mt(Ke),bt(!0)}},[Bt,Ue,kt,ut,ln]);var na={width:lr,whiteSpace:"normal",margin:0,padding:0},$n=function(Aa,ya,$t){return g.createElement("span",{"aria-hidden":!0,ref:ya,style:(0,x.Z)({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.floor(Hn/2)*2},$t)},Aa)},qr=function(Aa,ya){var $t=Qe(Bn,Aa);return $n(rr($t,!0),ya,na)};return g.createElement(g.Fragment,null,_r,er&&Bt!==Ke&&Bt!==Ge&&g.createElement(g.Fragment,null,$n("lg",En,{wordBreak:"keep-all",whiteSpace:"nowrap"}),Bt===et?$n(rr(Bn,!1),Gn,na):qr($e,Gn)))},Vt=wt,gt=function(cn){var er=cn.enabledEllipsis,rr=cn.isEllipsis,nt=cn.children,lr=cn.tooltipProps;return!(lr==null?void 0:lr.title)||!er?nt:g.createElement(z.Z,(0,x.Z)({open:rr?void 0:!1},lr),nt)},it=gt,Le=function(rn,cn){var er={};for(var rr in rn)Object.prototype.hasOwnProperty.call(rn,rr)&&cn.indexOf(rr)<0&&(er[rr]=rn[rr]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rr=Object.getOwnPropertySymbols(rn);nt<rr.length;nt++)cn.indexOf(rr[nt])<0&&Object.prototype.propertyIsEnumerable.call(rn,rr[nt])&&(er[rr[nt]]=rn[rr[nt]]);return er};function ct(rn,cn){var er=rn.mark,rr=rn.code,nt=rn.underline,lr=rn.delete,Hn=rn.strong,ut=rn.keyboard,bt=rn.italic,We=cn;function be(Ae,Ue){!Ae||(We=g.createElement(Ue,{},We))}return be(Hn,"strong"),be(nt,"u"),be(lr,"del"),be(rr,"code"),be(er,"mark"),be(ut,"kbd"),be(bt,"i"),We}function at(rn,cn,er){return rn===!0||rn===void 0?cn:rn||er&&cn}function jt(rn){return rn===!1?[!1,!1]:Array.isArray(rn)?rn:[rn]}var St="...",fn=g.forwardRef(function(rn,cn){var er,rr,nt,lr=rn.prefixCls,Hn=rn.className,ut=rn.style,bt=rn.type,We=rn.disabled,be=rn.children,Ae=rn.ellipsis,Ue=rn.editable,$e=rn.copyable,kt=rn.component,lt=rn.title,vt=Le(rn,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),Ct=g.useContext(Z.E_),Bt=Ct.getPrefixCls,mt=Ct.direction,Zt=(0,W.E)("Text")[0],zt=g.useRef(null),ln=g.useRef(null),An=Bt("typography",lr),En=(0,F.Z)(vt,["mark","code","delete","underline","strong","keyboard","italic"]),Gn=me(Ue),Bn=(0,M.Z)(Gn,2),pr=Bn[0],_r=Bn[1],na=(0,O.Z)(!1,{value:_r.editing}),$n=(0,M.Z)(na,2),qr=$n[0],Jr=$n[1],Aa=_r.triggerType,ya=Aa===void 0?["icon"]:Aa,$t=function(Dr){var Hr;Dr&&((Hr=_r.onStart)===null||Hr===void 0||Hr.call(_r)),Jr(Dr)};pe(function(){var zn;qr||(zn=ln.current)===null||zn===void 0||zn.focus()},[qr]);var wn=function(Dr){Dr==null||Dr.preventDefault(),$t(!0)},Fn=function(Dr){var Hr;(Hr=_r.onChange)===null||Hr===void 0||Hr.call(_r,Dr),$t(!1)},Or=function(){var Dr;(Dr=_r.onCancel)===null||Dr===void 0||Dr.call(_r),$t(!1)},vr=me($e),Ur=(0,M.Z)(vr,2),Zr=Ur[0],Kr=Ur[1],ba=g.useState(!1),Ri=(0,M.Z)(ba,2),Ea=Ri[0],Pi=Ri[1],rs=g.useRef(),Ui={};Kr.format&&(Ui.format=Kr.format);var Cn=function(){window.clearTimeout(rs.current)},Kn=function(Dr){var Hr;Dr==null||Dr.preventDefault(),Dr==null||Dr.stopPropagation(),_()(Kr.text||String(be)||"",Ui),Pi(!0),Cn(),rs.current=window.setTimeout(function(){Pi(!1)},3e3),(Hr=Kr.onCopy)===null||Hr===void 0||Hr.call(Kr,Dr)};g.useEffect(function(){return Cn},[]);var Pn=g.useState(!1),At=(0,M.Z)(Pn,2),ar=At[0],ta=At[1],Yn=g.useState(!1),Qa=(0,M.Z)(Yn,2),Ua=Qa[0],Fi=Qa[1],Xa=g.useState(!1),$i=(0,M.Z)(Xa,2),La=$i[0],ja=$i[1],ei=g.useState(!1),Do=(0,M.Z)(ei,2),yo=Do[0],to=Do[1],fs=g.useState(!1),cs=(0,M.Z)(fs,2),Os=cs[0],vl=cs[1],Ar=g.useState(!0),Rn=(0,M.Z)(Ar,2),Sr=Rn[0],nn=Rn[1],sn=me(Ae,{expandable:!1}),Ot=(0,M.Z)(sn,2),gr=Ot[0],Gr=Ot[1],Ln=gr&&!La,Tr=Gr.rows,Dn=Tr===void 0?1:Tr,Pr=g.useMemo(function(){return!Ln||Gr.suffix!==void 0||Gr.onEllipsis||Gr.expandable||pr||Zr},[Ln,Gr,pr,Zr]);(0,k.Z)(function(){gr&&!Pr&&(ta(G("webkitLineClamp")),Fi(G("textOverflow")))},[Pr,gr]);var fa=g.useMemo(function(){return Pr?!1:Dn===1?Ua:ar},[Pr,Ua,ar]),ka=Ln&&(fa?Os:yo),Li=Ln&&Dn===1&&fa,zi=Ln&&Dn>1&&fa,Mo=function(Dr){var Hr;ja(!0),(Hr=Gr.onExpand)===null||Hr===void 0||Hr.call(Gr,Dr)},Za=g.useState(0),ao=(0,M.Z)(Za,2),Mi=ao[0],Eo=ao[1],Xi=g.useState(0),Bo=(0,M.Z)(Xi,2),ol=Bo[0],Il=Bo[1],ms=function(Dr,Hr){var _a=Dr.offsetWidth,Ti;Eo(_a),Il(parseInt((Ti=window.getComputedStyle)===null||Ti===void 0?void 0:Ti.call(window,Hr).fontSize,10)||0)},mc=function(Dr){var Hr;to(Dr),yo!==Dr&&((Hr=Gr.onEllipsis)===null||Hr===void 0||Hr.call(Gr,Dr))};g.useEffect(function(){var zn=zt.current;if(gr&&fa&&zn){var Dr=zi?zn.offsetHeight<zn.scrollHeight:zn.offsetWidth<zn.scrollWidth;Os!==Dr&&vl(Dr)}},[gr,fa,be,zi,Sr]),g.useEffect(function(){var zn=zt.current;if(!(typeof IntersectionObserver=="undefined"||!zn||!fa||!Ln)){var Dr=new IntersectionObserver(function(){nn(!!zn.offsetParent)});return Dr.observe(zn),function(){Dr.disconnect()}}},[fa,Ln]);var Ys={};Gr.tooltip===!0?Ys={title:(er=_r.text)!==null&&er!==void 0?er:be}:g.isValidElement(Gr.tooltip)?Ys={title:Gr.tooltip}:(0,y.Z)(Gr.tooltip)==="object"?Ys=(0,x.Z)({title:(rr=_r.text)!==null&&rr!==void 0?rr:be},Gr.tooltip):Ys={title:Gr.tooltip};var hl=g.useMemo(function(){var zn=function(Hr){return["string","number"].includes((0,y.Z)(Hr))};if(!(!gr||fa)){if(zn(_r.text))return _r.text;if(zn(be))return be;if(zn(lt))return lt;if(zn(Ys.title))return Ys.title}},[gr,fa,lt,Ys.title,ka]);if(qr)return g.createElement(we,{value:(nt=_r.text)!==null&&nt!==void 0?nt:typeof be=="string"?be:"",onSave:Fn,onCancel:Or,onEnd:_r.onEnd,prefixCls:An,className:Hn,style:ut,direction:mt,component:kt,maxLength:_r.maxLength,autoSize:_r.autoSize,enterIcon:_r.enterIcon});var Rs=function(){var Dr=Gr.expandable,Hr=Gr.symbol;if(!Dr)return null;var _a;return Hr?_a=Hr:_a=Zt.expand,g.createElement("a",{key:"expand",className:"".concat(An,"-expand"),onClick:Mo,"aria-label":Zt.expand},_a)},xl=function(){if(!!pr){var Dr=_r.icon,Hr=_r.tooltip,_a=(0,S.Z)(Hr)[0]||Zt.edit,Ti=typeof _a=="string"?_a:"";return ya.includes("icon")?g.createElement(z.Z,{key:"edit",title:Hr===!1?"":_a},g.createElement(U.Z,{ref:ln,className:"".concat(An,"-edit"),onClick:wn,"aria-label":Ti},Dr||g.createElement(b.Z,{role:"button"}))):null}},Wl=function(){if(!!Zr){var Dr=Kr.tooltips,Hr=Kr.icon,_a=jt(Dr),Ti=jt(Hr),Ci=Ea?at(_a[1],Zt.copied):at(_a[0],Zt.copy),da=Ea?Zt.copied:Zt.copy,Da=typeof Ci=="string"?Ci:da;return g.createElement(z.Z,{key:"copy",title:Ci},g.createElement(U.Z,{className:h()("".concat(An,"-copy"),Ea&&"".concat(An,"-copy-success")),onClick:Kn,"aria-label":Da},Ea?at(Ti[1],g.createElement(w.Z,null),!0):at(Ti[0],g.createElement(m.Z,null),!0)))}},_l=function(Dr){return[Dr&&Rs(),xl(),Wl()]},Ls=function(Dr){return[Dr&&g.createElement("span",{"aria-hidden":!0,key:"ellipsis"},St),Gr.suffix,_l(Dr)]};return g.createElement(p.default,{onResize:ms,disabled:!Ln||fa},function(zn){var Dr;return g.createElement(it,{tooltipProps:Ys,enabledEllipsis:Ln,isEllipsis:ka},g.createElement(ke,(0,x.Z)({className:h()((Dr={},(0,A.Z)(Dr,"".concat(An,"-").concat(bt),bt),(0,A.Z)(Dr,"".concat(An,"-disabled"),We),(0,A.Z)(Dr,"".concat(An,"-ellipsis"),gr),(0,A.Z)(Dr,"".concat(An,"-single-line"),Ln&&Dn===1),(0,A.Z)(Dr,"".concat(An,"-ellipsis-single-line"),Li),(0,A.Z)(Dr,"".concat(An,"-ellipsis-multiple-line"),zi),Dr),Hn),prefixCls:lr,style:(0,x.Z)((0,x.Z)({},ut),{WebkitLineClamp:zi?Dn:void 0}),component:kt,ref:(0,D.sQ)(zn,zt,cn),direction:mt,onClick:ya.includes("text")?wn:void 0,"aria-label":hl==null?void 0:hl.toString(),title:lt},En),g.createElement(Vt,{enabledMeasure:Ln&&!fa,text:be,rows:Dn,width:Mi,fontSize:ol,onEllipsis:mc},function(Hr,_a){var Ti=Hr;Hr.length&&_a&&hl&&(Ti=g.createElement("span",{key:"show-content","aria-hidden":!0},Ti));var Ci=ct(rn,g.createElement(g.Fragment,null,Ti,Ls(_a)));return Ci})))})}),Xt=fn,Yt=function(rn,cn){var er={};for(var rr in rn)Object.prototype.hasOwnProperty.call(rn,rr)&&cn.indexOf(rr)<0&&(er[rr]=rn[rr]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rr=Object.getOwnPropertySymbols(rn);nt<rr.length;nt++)cn.indexOf(rr[nt])<0&&Object.prototype.propertyIsEnumerable.call(rn,rr[nt])&&(er[rr[nt]]=rn[rr[nt]]);return er},Rt=g.forwardRef(function(rn,cn){var er=rn.ellipsis,rr=rn.rel,nt=Yt(rn,["ellipsis","rel"]),lr=(0,x.Z)((0,x.Z)({},nt),{rel:rr===void 0&&nt.target==="_blank"?"noopener noreferrer":rr});return delete lr.navigate,g.createElement(Xt,(0,x.Z)({},lr,{ref:cn,ellipsis:!!er,component:"a"}))}),Lt=Rt,ze=g.forwardRef(function(rn,cn){return g.createElement(Xt,(0,x.Z)({ref:cn},rn,{component:"div"}))}),rt=ze,tt=function(rn,cn){var er={};for(var rr in rn)Object.prototype.hasOwnProperty.call(rn,rr)&&cn.indexOf(rr)<0&&(er[rr]=rn[rr]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rr=Object.getOwnPropertySymbols(rn);nt<rr.length;nt++)cn.indexOf(rr[nt])<0&&Object.prototype.propertyIsEnumerable.call(rn,rr[nt])&&(er[rr[nt]]=rn[rr[nt]]);return er},de=function(cn,er){var rr=cn.ellipsis,nt=tt(cn,["ellipsis"]),lr=g.useMemo(function(){return rr&&(0,y.Z)(rr)==="object"?(0,F.Z)(rr,["expandable","rows"]):rr},[rr]);return g.createElement(Xt,(0,x.Z)({ref:er},nt,{ellipsis:lr,component:"span"}))},ot=g.forwardRef(de),Et=o(4381),Ht=function(rn,cn){var er={};for(var rr in rn)Object.prototype.hasOwnProperty.call(rn,rr)&&cn.indexOf(rr)<0&&(er[rr]=rn[rr]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rr=Object.getOwnPropertySymbols(rn);nt<rr.length;nt++)cn.indexOf(rr[nt])<0&&Object.prototype.propertyIsEnumerable.call(rn,rr[nt])&&(er[rr[nt]]=rn[rr[nt]]);return er},Jt=(0,Et.a)(1,2,3,4,5),Qt=g.forwardRef(function(rn,cn){var er=rn.level,rr=er===void 0?1:er,nt=Ht(rn,["level"]),lr;return Jt.includes(rr)?lr="h".concat(rr):lr="h1",g.createElement(Xt,(0,x.Z)({ref:cn},nt,{component:lr}))}),an=Qt,Un=ke;Un.Text=ot,Un.Link=Lt,Un.Title=an,Un.Paragraph=rt;var qt=Un},11116:function(oe,N,o){"use strict";var x=o(38663),g=o.n(x),A=o(47828),y=o.n(A),M=o(68137),w=o(81984)},30504:function(oe,N,o){"use strict";var x=o(20862).default,g=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=M;var A=g(o(63038)),y=x(o(67294));function M(){var w=y.useReducer(function(v){return v+1},0),m=(0,A.default)(w,2),b=m[1];return b}},53049:function(oe,N,o){"use strict";var x=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.responsiveMap=N.responsiveArray=N.default=void 0;var g=x(o(59713)),A=x(o(67154)),y=["xxl","xl","lg","md","sm","xs"];N.responsiveArray=y;var M={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"};N.responsiveMap=M;var w=new Map,m=-1,b={},v={matchHandlers:{},dispatch:function(_){return b=_,w.forEach(function(p){return p(b)}),w.size>=1},subscribe:function(_){return w.size||this.register(),m+=1,w.set(m,_),_(b),m},unsubscribe:function(_){w.delete(_),w.size||this.unregister()},unregister:function(){var _=this;Object.keys(M).forEach(function(p){var S=M[p],k=_.matchHandlers[S];k==null||k.mql.removeListener(k==null?void 0:k.listener)}),w.clear()},register:function(){var _=this;Object.keys(M).forEach(function(p){var S=M[p],k=function(D){var Z=D.matches;_.dispatch((0,A.default)((0,A.default)({},b),(0,g.default)({},p,Z)))},O=window.matchMedia(S);O.addListener(k),_.matchHandlers[S]={mql:O,listener:k},k(O)})}},h=v;N.default=h},22191:function(oe,N,o){"use strict";var x=o(20862).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0,N.noop=A,Object.defineProperty(N,"resetWarned",{enumerable:!0,get:function(){return g.resetWarned}});var g=x(o(70716));function A(){}var y=A,M=y;N.default=M},69773:function(oe,N,o){"use strict";var x=o(20862).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=N.SizeContextProvider=void 0;var g=x(o(67294)),A=g.createContext("default"),y=function(m){var b=m.children,v=m.size;return g.createElement(A.Consumer,null,function(h){return g.createElement(A.Provider,{value:v||h},b)})};N.SizeContextProvider=y;var M=A;N.default=M},43774:function(oe,N,o){"use strict";var x,g=o(20862).default,A=o(95318).default;x={value:!0},N.Z=void 0;var y=A(o(67154)),M=A(o(59713)),w=A(o(50008)),m=A(o(63038)),b=A(o(35510)),v=A(o(50279)),h=o(99872),d=g(o(67294)),_=o(17325),p=A(o(25966)),S=o(53049),k=A(o(22191)),O=A(o(69773)),F=function(U,L){var V={};for(var $ in U)Object.prototype.hasOwnProperty.call(U,$)&&L.indexOf($)<0&&(V[$]=U[$]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,$=Object.getOwnPropertySymbols(U);G<$.length;G++)L.indexOf($[G])<0&&Object.prototype.propertyIsEnumerable.call(U,$[G])&&(V[$[G]]=U[$[G]]);return V},D=function(L,V){var $,G,z=d.useContext(O.default),K=d.useState(1),re=(0,m.default)(K,2),ne=re[0],Q=re[1],ue=d.useState(!1),he=(0,m.default)(ue,2),Ee=he[0],ce=he[1],ve=d.useState(!0),fe=(0,m.default)(ve,2),we=fe[0],me=fe[1],Pe=d.useRef(null),pe=d.useRef(null),Ie=(0,h.composeRef)(V,Pe),Je=d.useContext(_.ConfigContext),ke=Je.getPrefixCls,De=function(){if(!(!pe.current||!Pe.current)){var Qt=pe.current.offsetWidth,an=Pe.current.offsetWidth;if(Qt!==0&&an!==0){var Un=L.gap,qt=Un===void 0?4:Un;qt*2<an&&Q(an-qt*2<Qt?(an-qt*2)/Qt:1)}}};d.useEffect(function(){ce(!0)},[]),d.useEffect(function(){me(!0),Q(1)},[L.src]),d.useEffect(function(){De()},[L.gap]);var Fe=function(){var Qt=L.onError,an=Qt?Qt():void 0;an!==!1&&me(!1)},Qe=L.prefixCls,qe=L.shape,et=qe===void 0?"circle":qe,dt=L.size,Ke=dt===void 0?"default":dt,Ge=L.src,wt=L.srcSet,Vt=L.icon,gt=L.className,it=L.alt,Le=L.draggable,ct=L.children,at=L.crossOrigin,jt=F(L,["prefixCls","shape","size","src","srcSet","icon","className","alt","draggable","children","crossOrigin"]),St=Ke==="default"?z:Ke,fn=Object.keys((0,w.default)(St)==="object"?St||{}:{}).some(function(Jt){return["xs","sm","md","lg","xl","xxl"].includes(Jt)}),Xt=(0,p.default)(fn),Yt=d.useMemo(function(){if((0,w.default)(St)!=="object")return{};var Jt=S.responsiveArray.find(function(an){return Xt[an]}),Qt=St[Jt];return Qt?{width:Qt,height:Qt,lineHeight:"".concat(Qt,"px"),fontSize:Vt?Qt/2:18}:{}},[Xt,St]),Rt=ke("avatar",Qe),Lt=(0,b.default)(($={},(0,M.default)($,"".concat(Rt,"-lg"),St==="large"),(0,M.default)($,"".concat(Rt,"-sm"),St==="small"),$)),ze=d.isValidElement(Ge),rt=(0,b.default)(Rt,Lt,(G={},(0,M.default)(G,"".concat(Rt,"-").concat(et),!!et),(0,M.default)(G,"".concat(Rt,"-image"),ze||Ge&&we),(0,M.default)(G,"".concat(Rt,"-icon"),!!Vt),G),gt),tt=typeof St=="number"?{width:St,height:St,lineHeight:"".concat(St,"px"),fontSize:Vt?St/2:18}:{},de;if(typeof Ge=="string"&&we)de=d.createElement("img",{src:Ge,draggable:Le,srcSet:wt,onError:Fe,alt:it,crossOrigin:at});else if(ze)de=Ge;else if(Vt)de=Vt;else if(Ee||ne!==1){var ot="scale(".concat(ne,") translateX(-50%)"),Et={msTransform:ot,WebkitTransform:ot,transform:ot},Ht=typeof St=="number"?{lineHeight:"".concat(St,"px")}:{};de=d.createElement(v.default,{onResize:De},d.createElement("span",{className:"".concat(Rt,"-string"),ref:pe,style:(0,y.default)((0,y.default)({},Ht),Et)},ct))}else de=d.createElement("span",{className:"".concat(Rt,"-string"),style:{opacity:0},ref:pe},ct);return delete jt.onError,delete jt.gap,d.createElement("span",(0,y.default)({},jt,{style:(0,y.default)((0,y.default)((0,y.default)({},tt),Yt),jt.style),className:rt,ref:Ie}),de)},Z=d.forwardRef(D),W=Z;N.Z=W},4029:function(oe,N,o){"use strict";var x=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var g=x(o(96154)),A=g.default;N.default=A},7879:function(oe,N,o){"use strict";var x=o(20862).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=N.DisabledContextProvider=void 0;var g=x(o(67294)),A=g.createContext(!1),y=function(m){var b=m.children,v=m.disabled,h=g.useContext(A);return g.createElement(A.Provider,{value:v!=null?v:h},b)};N.DisabledContextProvider=y;var M=A;N.default=M},39897:function(oe,N,o){"use strict";var x=o(20862).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=N.SizeContextProvider=void 0;var g=x(o(67294)),A=g.createContext(void 0),y=function(m){var b=m.children,v=m.size;return g.createElement(A.Consumer,null,function(h){return g.createElement(A.Provider,{value:v||h},b)})};N.SizeContextProvider=y;var M=A;N.default=M},33319:function(oe,N,o){"use strict";var x=o(20862).default,g=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.ConfigContext=N.ConfigConsumer=void 0,N.withConfigConsumer=b;var A=g(o(67154)),y=x(o(67294)),M=function(h,d){return d||(h?"ant-".concat(h):"ant")},w=y.createContext({getPrefixCls:M});N.ConfigContext=w;var m=w.Consumer;N.ConfigConsumer=m;function b(v){return function(d){var _=function(O){return y.createElement(m,null,function(F){var D=v.prefixCls,Z=F.getPrefixCls,W=O.prefixCls,U=Z(D,W);return y.createElement(d,(0,A.default)({},F,O,{prefixCls:U}))})},p=d.constructor,S=p&&p.displayName||d.name||"Component";return _}}},30638:function(oe,N,o){"use strict";var x=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.getStyle=b,N.registerTheme=v;var g=o(31040),A=o(37321),y=x(o(58115)),M=o(2410),w=x(o(22191)),m="-ant-".concat(Date.now(),"-").concat(Math.random());function b(h,d){var _={},p=function(W,U){var L=W.clone();return L=(U==null?void 0:U(L))||L,L.toRgbString()},S=function(W,U){var L=new A.TinyColor(W),V=(0,g.generate)(L.toRgbString());_["".concat(U,"-color")]=p(L),_["".concat(U,"-color-disabled")]=V[1],_["".concat(U,"-color-hover")]=V[4],_["".concat(U,"-color-active")]=V[6],_["".concat(U,"-color-outline")]=L.clone().setAlpha(.2).toRgbString(),_["".concat(U,"-color-deprecated-bg")]=V[0],_["".concat(U,"-color-deprecated-border")]=V[2]};if(d.primaryColor){S(d.primaryColor,"primary");var k=new A.TinyColor(d.primaryColor),O=(0,g.generate)(k.toRgbString());O.forEach(function(Z,W){_["primary-".concat(W+1)]=Z}),_["primary-color-deprecated-l-35"]=p(k,function(Z){return Z.lighten(35)}),_["primary-color-deprecated-l-20"]=p(k,function(Z){return Z.lighten(20)}),_["primary-color-deprecated-t-20"]=p(k,function(Z){return Z.tint(20)}),_["primary-color-deprecated-t-50"]=p(k,function(Z){return Z.tint(50)}),_["primary-color-deprecated-f-12"]=p(k,function(Z){return Z.setAlpha(Z.getAlpha()*.12)});var F=new A.TinyColor(O[0]);_["primary-color-active-deprecated-f-30"]=p(F,function(Z){return Z.setAlpha(Z.getAlpha()*.3)}),_["primary-color-active-deprecated-d-02"]=p(F,function(Z){return Z.darken(2)})}d.successColor&&S(d.successColor,"success"),d.warningColor&&S(d.warningColor,"warning"),d.errorColor&&S(d.errorColor,"error"),d.infoColor&&S(d.infoColor,"info");var D=Object.keys(_).map(function(Z){return"--".concat(h,"-").concat(Z,": ").concat(_[Z],";")});return`
|
||
:root {
|
||
`.concat(D.join(`
|
||
`),`
|
||
}
|
||
`).trim()}function v(h,d){var _=b(h,d);(0,y.default)()&&(0,M.updateCSS)(_,"".concat(m,"-dynamic-theme"))}},17325:function(oe,N,o){"use strict";var x=o(20862).default,g=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),Object.defineProperty(N,"ConfigConsumer",{enumerable:!0,get:function(){return S.ConfigConsumer}}),Object.defineProperty(N,"ConfigContext",{enumerable:!0,get:function(){return S.ConfigContext}}),N.globalConfig=N.defaultPrefixCls=N.defaultIconPrefixCls=N.default=N.configConsumerProps=void 0;var A=g(o(67154)),y=g(o(98399)),M=g(o(23401)),w=x(o(67294)),m=o(85730),b=g(o(18658)),v=x(o(86152)),h=g(o(45111)),d=g(o(20321)),_=g(o(31023)),p=g(o(86616)),S=o(33319),k=o(30638),O=o(7879),F=x(o(39897)),D=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"];N.configConsumerProps=D;var Z=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form"],W="ant";N.defaultPrefixCls=W;var U="anticon";N.defaultIconPrefixCls=U;var L,V;function $(){return L||W}function G(){return V||U}var z=function(he){var Ee=he.prefixCls,ce=he.iconPrefixCls,ve=he.theme;Ee!==void 0&&(L=Ee),ce!==void 0&&(V=ce),ve&&(0,k.registerTheme)($(),ve)},K=function(){return{getPrefixCls:function(Ee,ce){return ce||(Ee?"".concat($(),"-").concat(Ee):$())},getIconPrefixCls:G,getRootPrefixCls:function(Ee,ce){return Ee||L||(ce&&ce.includes("-")?ce.replace(/^(.*)-[^-]*$/,"$1"):$())}}};N.globalConfig=K;var re=function(he){var Ee=he.children,ce=he.csp,ve=he.autoInsertSpaceInButton,fe=he.form,we=he.locale,me=he.componentSize,Pe=he.direction,pe=he.space,Ie=he.virtual,Je=he.dropdownMatchSelectWidth,ke=he.legacyLocale,De=he.parentContext,Fe=he.iconPrefixCls,Qe=he.componentDisabled,qe=w.useCallback(function(Vt,gt){var it=he.prefixCls;if(gt)return gt;var Le=it||De.getPrefixCls("");return Vt?"".concat(Le,"-").concat(Vt):Le},[De.getPrefixCls,he.prefixCls]),et=(0,A.default)((0,A.default)({},De),{csp:ce,autoInsertSpaceInButton:ve,locale:we||ke,direction:Pe,space:pe,virtual:Ie,dropdownMatchSelectWidth:Je,getPrefixCls:qe});Z.forEach(function(Vt){var gt=he[Vt];gt&&(et[Vt]=gt)});var dt=(0,M.default)(function(){return et},et,function(Vt,gt){var it=Object.keys(Vt),Le=Object.keys(gt);return it.length!==Le.length||it.some(function(ct){return Vt[ct]!==gt[ct]})}),Ke=w.useMemo(function(){return{prefixCls:Fe,csp:ce}},[Fe,ce]),Ge=Ee,wt=w.useMemo(function(){var Vt,gt,it,Le;return(0,m.merge)(((Vt=d.default.Form)===null||Vt===void 0?void 0:Vt.defaultValidateMessages)||{},((it=(gt=dt.locale)===null||gt===void 0?void 0:gt.Form)===null||it===void 0?void 0:it.defaultValidateMessages)||{},((Le=dt.form)===null||Le===void 0?void 0:Le.validateMessages)||{},(fe==null?void 0:fe.validateMessages)||{})},[dt,fe==null?void 0:fe.validateMessages]);return Object.keys(wt).length>0&&(Ge=w.createElement(b.default.Provider,{value:wt},Ee)),we&&(Ge=w.createElement(v.default,{locale:we,_ANT_MARK__:v.ANT_MARK},Ge)),(Fe||ce)&&(Ge=w.createElement(y.default.Provider,{value:Ke},Ge)),me&&(Ge=w.createElement(F.SizeContextProvider,{size:me},Ge)),Qe!==void 0&&(Ge=w.createElement(O.DisabledContextProvider,{disabled:Qe},Ge)),w.createElement(S.ConfigContext.Provider,{value:dt},Ge)},ne=function(he){return w.useEffect(function(){he.direction&&(_.default.config({rtl:he.direction==="rtl"}),p.default.config({rtl:he.direction==="rtl"}))},[he.direction]),w.createElement(h.default,null,function(Ee,ce,ve){return w.createElement(S.ConfigConsumer,null,function(fe){return w.createElement(re,(0,A.default)({parentContext:fe,legacyLocale:ve},he))})})};ne.ConfigContext=S.ConfigContext,ne.SizeContext=F.default,ne.config=z;var Q=ne;N.default=Q},96154:function(oe,N,o){"use strict";var x=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var g=x(o(67154)),A=x(o(27)),y=x(o(92505)),M={lang:(0,g.default)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},A.default),timePickerLocale:(0,g.default)({},y.default)},w=M;N.default=w},91603:function(oe,N,o){"use strict";var x,g=o(20862).default,A=o(95318).default;x={value:!0},x={enumerable:!0,get:function(){return v.List}},x=void 0,Object.defineProperty(N,"cI",{enumerable:!0,get:function(){return O.default}}),x={enumerable:!0,get:function(){return v.useWatch}};var y=A(o(67154)),M=A(o(50008)),w=A(o(63038)),m=A(o(59713)),b=A(o(35510)),v=g(o(82098)),h=g(o(67294)),d=o(17325),_=g(o(7879)),p=g(o(39897)),S=o(83989),k=A(o(18658)),O=A(o(57160)),F=function(U,L){var V={};for(var $ in U)Object.prototype.hasOwnProperty.call(U,$)&&L.indexOf($)<0&&(V[$]=U[$]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,$=Object.getOwnPropertySymbols(U);G<$.length;G++)L.indexOf($[G])<0&&Object.prototype.propertyIsEnumerable.call(U,$[G])&&(V[$[G]]=U[$[G]]);return V},D=function(L,V){var $,G=h.useContext(p.default),z=h.useContext(_.default),K=h.useContext(d.ConfigContext),re=K.getPrefixCls,ne=K.direction,Q=K.form,ue=L.prefixCls,he=L.className,Ee=he===void 0?"":he,ce=L.size,ve=ce===void 0?G:ce,fe=L.disabled,we=fe===void 0?z:fe,me=L.form,Pe=L.colon,pe=L.labelAlign,Ie=L.labelWrap,Je=L.labelCol,ke=L.wrapperCol,De=L.hideRequiredMark,Fe=L.layout,Qe=Fe===void 0?"horizontal":Fe,qe=L.scrollToFirstError,et=L.requiredMark,dt=L.onFinishFailed,Ke=L.name,Ge=F(L,["prefixCls","className","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name"]),wt=h.useContext(k.default),Vt=(0,h.useMemo)(function(){return et!==void 0?et:Q&&Q.requiredMark!==void 0?Q.requiredMark:!De},[De,et,Q]),gt=Pe!=null?Pe:Q==null?void 0:Q.colon,it=re("form",ue),Le=(0,b.default)(it,($={},(0,m.default)($,"".concat(it,"-").concat(Qe),!0),(0,m.default)($,"".concat(it,"-hide-required-mark"),Vt===!1),(0,m.default)($,"".concat(it,"-rtl"),ne==="rtl"),(0,m.default)($,"".concat(it,"-").concat(ve),ve),$),Ee),ct=(0,O.default)(me),at=(0,w.default)(ct,1),jt=at[0],St=jt.__INTERNAL__;St.name=Ke;var fn=(0,h.useMemo)(function(){return{name:Ke,labelAlign:pe,labelCol:Je,labelWrap:Ie,wrapperCol:ke,vertical:Qe==="vertical",colon:gt,requiredMark:Vt,itemRef:St.itemRef,form:jt}},[Ke,pe,Je,ke,Qe,gt,Vt,jt]);h.useImperativeHandle(V,function(){return jt});var Xt=function(Rt){dt==null||dt(Rt);var Lt={block:"nearest"};qe&&Rt.errorFields.length&&((0,M.default)(qe)==="object"&&(Lt=qe),jt.scrollToField(Rt.errorFields[0].name,Lt))};return h.createElement(_.DisabledContextProvider,{disabled:we},h.createElement(p.SizeContextProvider,{size:ve},h.createElement(S.FormProvider,(0,y.default)({},{validateMessages:wt}),h.createElement(S.FormContext.Provider,{value:fn},h.createElement(v.default,(0,y.default)({id:Ke},Ge,{name:Ke,onFinishFailed:Xt,form:jt,className:Le}))))))},Z=h.forwardRef(D),W=Z;x=W},83989:function(oe,N,o){"use strict";var x=o(20862).default,g=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.NoStyleItemContext=N.NoFormStyle=N.FormProvider=N.FormItemPrefixContext=N.FormItemInputContext=N.FormContext=void 0;var A=g(o(67154)),y=o(82098),M=g(o(32033)),w=x(o(67294)),m=w.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}});N.FormContext=m;var b=w.createContext(null);N.NoStyleItemContext=b;var v=function(S){var k=(0,M.default)(S,["prefixCls"]);return w.createElement(y.FormProvider,(0,A.default)({},k))};N.FormProvider=v;var h=w.createContext({prefixCls:""});N.FormItemPrefixContext=h;var d=w.createContext({});N.FormItemInputContext=d;var _=function(S){var k=S.children,O=S.status,F=S.override,D=(0,w.useContext)(d),Z=(0,w.useMemo)(function(){var W=(0,A.default)({},D);return F&&delete W.isFormItemInput,O&&(delete W.status,delete W.hasFeedback,delete W.feedbackIcon),W},[O,F,D]);return w.createElement(d.Provider,{value:Z},k)};N.NoFormStyle=_},57160:function(oe,N,o){"use strict";var x=o(20862).default,g=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=h;var A=g(o(67154)),y=g(o(63038)),M=o(82098),w=x(o(67294)),m=g(o(41149)),b=o(11661);function v(d){var _=(0,b.toArray)(d);return _.join("_")}function h(d){var _=(0,M.useForm)(),p=(0,y.default)(_,1),S=p[0],k=w.useRef({}),O=w.useMemo(function(){return d!=null?d:(0,A.default)((0,A.default)({},S),{__INTERNAL__:{itemRef:function(D){return function(Z){var W=v(D);Z?k.current[W]=Z:delete k.current[W]}}},scrollToField:function(D){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=(0,b.toArray)(D),U=(0,b.getFieldId)(W,O.__INTERNAL__.name),L=U?document.getElementById(U):null;L&&(0,m.default)(L,(0,A.default)({scrollMode:"if-needed",block:"nearest"},Z))},getFieldInstance:function(D){var Z=v(D);return k.current[Z]}})},[d,S]);return[O]}},11661:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.getFieldId=A,N.toArray=g;var o=["parentNode"],x="form_item";function g(y){return y===void 0||y===!1?[]:Array.isArray(y)?y:[y]}function A(y,M){if(!!y.length){var w=y.join("_");if(M)return"".concat(M,"_").concat(w);var m=o.includes(w);return m?"".concat(x,"_").concat(w):w}}},18658:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=o(67294),g=(0,x.createContext)(void 0);N.default=g},25966:function(oe,N,o){"use strict";var x=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var g=o(67294),A=x(o(30504)),y=x(o(53049));function M(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,b=(0,g.useRef)({}),v=(0,A.default)();return(0,g.useEffect)(function(){var h=y.default.subscribe(function(d){b.current=d,m&&v()});return function(){return y.default.unsubscribe(h)}},[]),b.current}var w=M;N.default=w},45111:function(oe,N,o){"use strict";var x=o(20862).default,g=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.useLocaleReceiver=N.default=void 0;var A=g(o(67154)),y=x(o(67294)),M=g(o(44472)),w=g(o(28712)),m=function(d){var _=d.componentName,p=_===void 0?"global":_,S=d.defaultLocale,k=d.children,O=y.useContext(M.default),F=y.useMemo(function(){var Z,W=S||w.default[p],U=(Z=O==null?void 0:O[p])!==null&&Z!==void 0?Z:{};return(0,A.default)((0,A.default)({},W instanceof Function?W():W),U||{})},[p,S,O]),D=y.useMemo(function(){var Z=O&&O.locale;return O&&O.exist&&!Z?w.default.locale:Z},[O]);return k(F,D,O)},b=m;N.default=b;var v=function(d,_){var p=y.useContext(M.default),S=y.useMemo(function(){var k,O=_||w.default[d],F=(k=p==null?void 0:p[d])!==null&&k!==void 0?k:{};return(0,A.default)((0,A.default)({},typeof O=="function"?O():O),F||{})},[d,_,p]);return[S]};N.useLocaleReceiver=v},44472:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var x=o(67294),g=(0,x.createContext)(void 0),A=g;N.default=A},28712:function(oe,N,o){"use strict";var x=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var g=x(o(20321)),A=g.default;N.default=A},86152:function(oe,N,o){"use strict";var x=o(20862).default,g=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=N.ANT_MARK=void 0;var A=g(o(67154)),y=x(o(67294)),M=g(o(22191)),w=o(68939),m=g(o(44472)),b="internalMark";N.ANT_MARK=b;var v=function(_){var p=_.locale,S=p===void 0?{}:p,k=_.children,O=_._ANT_MARK__;y.useEffect(function(){return(0,w.changeConfirmLocale)(S&&S.Modal),function(){(0,w.changeConfirmLocale)()}},[S]);var F=y.useMemo(function(){return(0,A.default)((0,A.default)({},S),{exist:!0})},[S]);return y.createElement(m.default.Provider,{value:F},k)},h=v;N.default=h},20321:function(oe,N,o){"use strict";var x=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var g=x(o(88434)),A=x(o(4029)),y=x(o(96154)),M=x(o(92505)),w="${label} is not a valid ${type}",m={locale:"en",Pagination:g.default,DatePicker:y.default,TimePicker:M.default,Calendar:A.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:w,method:w,array:w,object:w,number:w,date:w,boolean:w,integer:w,float:w,regexp:w,email:w,url:w,hex:w},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}},b=m;N.default=b},88394:function(oe,N,o){"use strict";var x=o(20862).default,g=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=v;var A=g(o(67154)),y=g(o(63038)),M=g(o(39391)),w=x(o(67294)),m=o(31023),b=o(17325);function v(h,d){var _=function(){var S,k,O=null,F={add:function(G,z){O==null||O.component.add(G,z)}},D=(0,M.default)(F),Z=(0,y.default)(D,2),W=Z[0],U=Z[1];function L($){var G=$.prefixCls,z=S("message",G),K=S(),re=$.key||(0,m.getKeyThenIncreaseKey)(),ne=new Promise(function(ue){var he=function(){return typeof $.onClose=="function"&&$.onClose(),ue(!0)};h((0,A.default)((0,A.default)({},$),{prefixCls:z,rootPrefixCls:K,getPopupContainer:k}),function(Ee){var ce=Ee.prefixCls,ve=Ee.instance;O=ve,W(d((0,A.default)((0,A.default)({},$),{key:re,onClose:he}),ce))})}),Q=function(){O&&O.removeNotice(re)};return Q.then=function(ue,he){return ne.then(ue,he)},Q.promise=ne,Q}var V=w.useRef({});return V.current.open=L,m.typeList.forEach(function($){return(0,m.attachTypeApi)(V.current,$)}),[V.current,w.createElement(b.ConfigConsumer,{key:"holder"},function($){return S=$.getPrefixCls,k=$.getPopupContainer,U})]};return _}},31023:function(oe,N,o){"use strict";var x=o(20862).default,g=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.attachTypeApi=ce,N.getInstance=N.default=void 0,N.getKeyThenIncreaseKey=G,N.typeList=void 0;var A=g(o(67154)),y=g(o(59713)),M=g(o(37431)),w=g(o(42547)),m=g(o(42461)),b=g(o(94354)),v=g(o(628)),h=g(o(35510)),d=g(o(68836)),_=x(o(67294)),p=x(o(17325)),S=g(o(88394)),k,O=3,F,D=1,Z="",W="move-up",U=!1,L,V,$=!1;function G(){return D++}function z(we){we.top!==void 0&&(F=we.top,k=null),we.duration!==void 0&&(O=we.duration),we.prefixCls!==void 0&&(Z=we.prefixCls),we.getContainer!==void 0&&(L=we.getContainer,k=null),we.transitionName!==void 0&&(W=we.transitionName,k=null,U=!0),we.maxCount!==void 0&&(V=we.maxCount,k=null),we.rtl!==void 0&&($=we.rtl)}function K(we,me){var Pe=we.prefixCls,pe=we.getPopupContainer,Ie=(0,p.globalConfig)(),Je=Ie.getPrefixCls,ke=Ie.getRootPrefixCls,De=Ie.getIconPrefixCls,Fe=Je("message",Pe||Z),Qe=ke(we.rootPrefixCls,Fe),qe=De();if(k){me({prefixCls:Fe,rootPrefixCls:Qe,iconPrefixCls:qe,instance:k});return}var et={prefixCls:Fe,transitionName:U?W:"".concat(Qe,"-").concat(W),style:{top:F},getContainer:L||pe,maxCount:V};d.default.newInstance(et,function(dt){if(k){me({prefixCls:Fe,rootPrefixCls:Qe,iconPrefixCls:qe,instance:k});return}k=dt,me({prefixCls:Fe,rootPrefixCls:Qe,iconPrefixCls:qe,instance:dt})})}var re={info:b.default,success:M.default,error:w.default,warning:m.default,loading:v.default},ne=Object.keys(re);N.typeList=ne;function Q(we,me,Pe){var pe,Ie=we.duration!==void 0?we.duration:O,Je=re[we.type],ke=(0,h.default)("".concat(me,"-custom-content"),(pe={},(0,y.default)(pe,"".concat(me,"-").concat(we.type),we.type),(0,y.default)(pe,"".concat(me,"-rtl"),$===!0),pe));return{key:we.key,duration:Ie,style:we.style||{},className:we.className,content:_.createElement(p.default,{iconPrefixCls:Pe},_.createElement("div",{className:ke},we.icon||Je&&_.createElement(Je,null),_.createElement("span",null,we.content))),onClose:we.onClose,onClick:we.onClick}}function ue(we){var me=we.key||G(),Pe=new Promise(function(Ie){var Je=function(){return typeof we.onClose=="function"&&we.onClose(),Ie(!0)};K(we,function(ke){var De=ke.prefixCls,Fe=ke.iconPrefixCls,Qe=ke.instance;Qe.notice(Q((0,A.default)((0,A.default)({},we),{key:me,onClose:Je}),De,Fe))})}),pe=function(){var Je;k&&(k.removeNotice(me),(Je=we.onClose)===null||Je===void 0||Je.call(we))};return pe.then=function(Ie,Je){return Pe.then(Ie,Je)},pe.promise=Pe,pe}function he(we){return Object.prototype.toString.call(we)==="[object Object]"&&!!we.content}var Ee={open:ue,config:z,destroy:function(me){if(k)if(me){var Pe=k,pe=Pe.removeNotice;pe(me)}else{var Ie=k,Je=Ie.destroy;Je(),k=null}}};function ce(we,me){we[me]=function(Pe,pe,Ie){return he(Pe)?we.open((0,A.default)((0,A.default)({},Pe),{type:me})):(typeof pe=="function"&&(Ie=pe,pe=void 0),we.open({content:Pe,duration:pe,type:me,onClose:Ie}))}}ne.forEach(function(we){return ce(Ee,we)}),Ee.warn=Ee.warning,Ee.useMessage=(0,S.default)(K,Q);var ve=function(){return null};N.getInstance=ve;var fe=Ee;N.default=fe},68939:function(oe,N,o){"use strict";var x=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.changeConfirmLocale=M,N.getConfirmLocale=w;var g=x(o(67154)),A=x(o(20321)),y=(0,g.default)({},A.default.Modal);function M(m){m?y=(0,g.default)((0,g.default)({},y),m):y=(0,g.default)({},A.default.Modal)}function w(){return y}},24642:function(oe,N,o){"use strict";var x=o(20862).default,g=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=b;var A=g(o(67154)),y=g(o(63038)),M=g(o(39391)),w=x(o(67294)),m=o(17325);function b(v,h){var d=function(){var p,S=null,k={add:function(V,$){S==null||S.component.add(V,$)}},O=(0,M.default)(k),F=(0,y.default)(O,2),D=F[0],Z=F[1];function W(L){var V=L.prefixCls,$=p("notification",V);v((0,A.default)((0,A.default)({},L),{prefixCls:$}),function(G){var z=G.prefixCls,K=G.instance;S=K,D(h(L,z))})}var U=w.useRef({});return U.current.open=W,["success","info","warning","error"].forEach(function(L){U.current[L]=function(V){return U.current.open((0,A.default)((0,A.default)({},V),{type:L}))}}),[U.current,w.createElement(m.ConfigConsumer,{key:"holder"},function(L){return p=L.getPrefixCls,Z})]};return d}},86616:function(oe,N,o){"use strict";var x=o(20862).default,g=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.getInstance=N.default=void 0;var A=g(o(59591)),y=g(o(67154)),M=g(o(59713)),w=g(o(67996)),m=g(o(74337)),b=g(o(40753)),v=g(o(67039)),h=g(o(93201)),d=g(o(35510)),_=g(o(68836)),p=x(o(67294)),S=x(o(17325)),k=g(o(24642)),O=function(fe,we,me,Pe){function pe(Ie){return Ie instanceof me?Ie:new me(function(Je){Je(Ie)})}return new(me||(me=Promise))(function(Ie,Je){function ke(Qe){try{Fe(Pe.next(Qe))}catch(qe){Je(qe)}}function De(Qe){try{Fe(Pe.throw(Qe))}catch(qe){Je(qe)}}function Fe(Qe){Qe.done?Ie(Qe.value):pe(Qe.value).then(ke,De)}Fe((Pe=Pe.apply(fe,we||[])).next())})},F={},D=4.5,Z=24,W=24,U="",L="topRight",V,$,G=!1,z;function K(fe){var we=fe.duration,me=fe.placement,Pe=fe.bottom,pe=fe.top,Ie=fe.getContainer,Je=fe.closeIcon,ke=fe.prefixCls;ke!==void 0&&(U=ke),we!==void 0&&(D=we),me!==void 0?L=me:fe.rtl&&(L="topLeft"),Pe!==void 0&&(W=Pe),pe!==void 0&&(Z=pe),Ie!==void 0&&(V=Ie),Je!==void 0&&($=Je),fe.rtl!==void 0&&(G=fe.rtl),fe.maxCount!==void 0&&(z=fe.maxCount)}function re(fe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z,me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:W,Pe;switch(fe){case"top":Pe={left:"50%",transform:"translateX(-50%)",right:"auto",top:we,bottom:"auto"};break;case"topLeft":Pe={left:0,top:we,bottom:"auto"};break;case"topRight":Pe={right:0,top:we,bottom:"auto"};break;case"bottom":Pe={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:me};break;case"bottomLeft":Pe={left:0,top:"auto",bottom:me};break;default:Pe={right:0,top:"auto",bottom:me};break}return Pe}function ne(fe,we){var me=fe.placement,Pe=me===void 0?L:me,pe=fe.top,Ie=fe.bottom,Je=fe.getContainer,ke=Je===void 0?V:Je,De=fe.prefixCls,Fe=(0,S.globalConfig)(),Qe=Fe.getPrefixCls,qe=Fe.getIconPrefixCls,et=Qe("notification",De||U),dt=qe(),Ke="".concat(et,"-").concat(Pe),Ge=F[Ke];if(Ge){Promise.resolve(Ge).then(function(Vt){we({prefixCls:"".concat(et,"-notice"),iconPrefixCls:dt,instance:Vt})});return}var wt=(0,d.default)("".concat(et,"-").concat(Pe),(0,M.default)({},"".concat(et,"-rtl"),G===!0));F[Ke]=new Promise(function(Vt){_.default.newInstance({prefixCls:et,className:wt,style:re(Pe,pe,Ie),getContainer:ke,maxCount:z},function(gt){Vt(gt),we({prefixCls:"".concat(et,"-notice"),iconPrefixCls:dt,instance:gt})})})}var Q={success:w.default,info:h.default,error:m.default,warning:v.default};function ue(fe,we,me){var Pe=fe.duration,pe=fe.icon,Ie=fe.type,Je=fe.description,ke=fe.message,De=fe.btn,Fe=fe.onClose,Qe=fe.onClick,qe=fe.key,et=fe.style,dt=fe.className,Ke=fe.closeIcon,Ge=Ke===void 0?$:Ke,wt=fe.props,Vt=Pe===void 0?D:Pe,gt=null;pe?gt=p.createElement("span",{className:"".concat(we,"-icon")},fe.icon):Ie&&(gt=p.createElement(Q[Ie]||null,{className:"".concat(we,"-icon ").concat(we,"-icon-").concat(Ie)}));var it=typeof Ge=="undefined"?p.createElement("span",{className:"".concat(we,"-close-x")},p.createElement(b.default,{className:"".concat(we,"-close-icon")})):Ge,Le=!Je&>?p.createElement("span",{className:"".concat(we,"-message-single-line-auto-margin")}):null;return{content:p.createElement(S.default,{iconPrefixCls:me},p.createElement("div",{className:gt?"".concat(we,"-with-icon"):"",role:"alert"},gt,p.createElement("div",{className:"".concat(we,"-message")},Le,ke),p.createElement("div",{className:"".concat(we,"-description")},Je),De?p.createElement("span",{className:"".concat(we,"-btn")},De):null)),duration:Vt,closable:!0,closeIcon:it,onClose:Fe,onClick:Qe,key:qe,style:et||{},className:(0,d.default)(dt,(0,M.default)({},"".concat(we,"-").concat(Ie),!!Ie)),props:wt}}function he(fe){ne(fe,function(we){var me=we.prefixCls,Pe=we.iconPrefixCls,pe=we.instance;pe.notice(ue(fe,me,Pe))})}var Ee={open:he,close:function(we){Object.keys(F).forEach(function(me){return Promise.resolve(F[me]).then(function(Pe){Pe.removeNotice(we)})})},config:K,destroy:function(){Object.keys(F).forEach(function(we){Promise.resolve(F[we]).then(function(me){me.destroy()}),delete F[we]})}};["success","info","warning","error"].forEach(function(fe){Ee[fe]=function(we){return Ee.open((0,y.default)((0,y.default)({},we),{type:fe}))}}),Ee.warn=Ee.warning,Ee.useNotification=(0,k.default)(ne,ue);var ce=function(we){return O(void 0,void 0,void 0,(0,A.default)().mark(function me(){return(0,A.default)().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",null);case 1:case"end":return pe.stop()}},me)}))};N.getInstance=ce;var ve=Ee;N.default=ve},92505:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var o={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},x=o;N.default=x},31040:function(oe,N,o){"use strict";o.r(N),o.d(N,{blue:function(){return ne},cyan:function(){return re},geekblue:function(){return Q},generate:function(){return F},gold:function(){return V},green:function(){return K},grey:function(){return Ee},lime:function(){return z},magenta:function(){return he},orange:function(){return $},presetDarkPalettes:function(){return W},presetPalettes:function(){return Z},presetPrimaryColors:function(){return D},purple:function(){return ue},red:function(){return U},volcano:function(){return L},yellow:function(){return G}});var x=o(78145),g=o(76780),A=2,y=.16,M=.05,w=.05,m=.15,b=5,v=4,h=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function d(ce){var ve=ce.r,fe=ce.g,we=ce.b,me=(0,x.py)(ve,fe,we);return{h:me.h*360,s:me.s,v:me.v}}function _(ce){var ve=ce.r,fe=ce.g,we=ce.b;return"#".concat((0,x.vq)(ve,fe,we,!1))}function p(ce,ve,fe){var we=fe/100,me={r:(ve.r-ce.r)*we+ce.r,g:(ve.g-ce.g)*we+ce.g,b:(ve.b-ce.b)*we+ce.b};return me}function S(ce,ve,fe){var we;return Math.round(ce.h)>=60&&Math.round(ce.h)<=240?we=fe?Math.round(ce.h)-A*ve:Math.round(ce.h)+A*ve:we=fe?Math.round(ce.h)+A*ve:Math.round(ce.h)-A*ve,we<0?we+=360:we>=360&&(we-=360),we}function k(ce,ve,fe){if(ce.h===0&&ce.s===0)return ce.s;var we;return fe?we=ce.s-y*ve:ve===v?we=ce.s+y:we=ce.s+M*ve,we>1&&(we=1),fe&&ve===b&&we>.1&&(we=.1),we<.06&&(we=.06),Number(we.toFixed(2))}function O(ce,ve,fe){var we;return fe?we=ce.v+w*ve:we=ce.v-m*ve,we>1&&(we=1),Number(we.toFixed(2))}function F(ce){for(var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=[],we=(0,g.uA)(ce),me=b;me>0;me-=1){var Pe=d(we),pe=_((0,g.uA)({h:S(Pe,me,!0),s:k(Pe,me,!0),v:O(Pe,me,!0)}));fe.push(pe)}fe.push(_(we));for(var Ie=1;Ie<=v;Ie+=1){var Je=d(we),ke=_((0,g.uA)({h:S(Je,Ie),s:k(Je,Ie),v:O(Je,Ie)}));fe.push(ke)}return ve.theme==="dark"?h.map(function(De){var Fe=De.index,Qe=De.opacity,qe=_(p((0,g.uA)(ve.backgroundColor||"#141414"),(0,g.uA)(fe[Fe]),Qe*100));return qe}):fe}var D={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Z={},W={};Object.keys(D).forEach(function(ce){Z[ce]=F(D[ce]),Z[ce].primary=Z[ce][5],W[ce]=F(D[ce],{theme:"dark",backgroundColor:"#141414"}),W[ce].primary=W[ce][5]});var U=Z.red,L=Z.volcano,V=Z.gold,$=Z.orange,G=Z.yellow,z=Z.lime,K=Z.green,re=Z.cyan,ne=Z.blue,Q=Z.geekblue,ue=Z.purple,he=Z.magenta,Ee=Z.grey},82098:function(oe,N,o){"use strict";o.r(N),o.d(N,{Field:function(){return Yt},FieldContext:function(){return ne},FormProvider:function(){return qt},List:function(){return Lt},ListContext:function(){return ue},default:function(){return be},useForm:function(){return an},useWatch:function(){return ut}});var x=o(67294),g=o(22122),A=o(81253),y=o(96156),M=o(28991),w=o(85061),m=o(6610),b=o(5991),v=o(63349),h=o(10379),d=o(44144),_=o(83025),p={},S=[],k=function(Ue){S.push(Ue)};function O(Ae,Ue){if(!1)var $e}function F(Ae,Ue){if(!1)var $e}function D(){p={}}function Z(Ae,Ue,$e){!Ue&&!p[$e]&&(Ae(!1,$e),p[$e]=!0)}function W(Ae,Ue){Z(O,Ae,Ue)}function U(Ae,Ue){Z(F,Ae,Ue)}W.preMessage=k,W.resetWarned=D,W.noteOnce=U;var L=W,V=o(90484);function $(Ae,Ue){var $e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,kt=new Set;function lt(vt,Ct){var Bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,mt=kt.has(vt);if(L(!mt,"Warning: There may be circular references"),mt)return!1;if(vt===Ct)return!0;if($e&&Bt>1)return!1;kt.add(vt);var Zt=Bt+1;if(Array.isArray(vt)){if(!Array.isArray(Ct)||vt.length!==Ct.length)return!1;for(var zt=0;zt<vt.length;zt++)if(!lt(vt[zt],Ct[zt],Zt))return!1;return!0}if(vt&&Ct&&(0,V.Z)(vt)==="object"&&(0,V.Z)(Ct)==="object"){var ln=Object.keys(vt);return ln.length!==Object.keys(Ct).length?!1:ln.every(function(An){return lt(vt[An],Ct[An],Zt)})}return!1}return lt(Ae,Ue)}var G=$,z="RC_FORM_INTERNAL_HOOKS",K=function(){L(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},re=x.createContext({getFieldValue:K,getFieldsValue:K,getFieldError:K,getFieldWarning:K,getFieldsError:K,isFieldsTouched:K,isFieldTouched:K,isFieldValidating:K,isFieldsValidating:K,resetFields:K,setFields:K,setFieldValue:K,setFieldsValue:K,validateFields:K,submit:K,getInternalHooks:function(){return K(),{dispatch:K,initEntityValue:K,registerField:K,useSubscribe:K,setInitialValues:K,destroyForm:K,setCallbacks:K,registerWatch:K,getFields:K,setValidateMessages:K,setPreserve:K,getInitialValue:K}}}),ne=re,Q=x.createContext(null),ue=Q;function he(Ae){return Ae==null?[]:Array.isArray(Ae)?Ae:[Ae]}function Ee(Ae){return Ae&&!!Ae._init}var ce=o(55507),ve=o(92137),fe=o(86566),we="'${name}' is not a valid ${type}",me={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:we,method:we,array:we,object:we,number:we,date:we,boolean:we,integer:we,float:we,regexp:we,email:we,url:we,hex:we},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Pe=o(66943),pe=fe.Z;function Ie(Ae,Ue){return Ae.replace(/\$\{\w+\}/g,function($e){var kt=$e.slice(2,-1);return Ue[kt]})}var Je="CODE_LOGIC_ERROR";function ke(Ae,Ue,$e,kt,lt){return De.apply(this,arguments)}function De(){return De=(0,ve.Z)((0,ce.Z)().mark(function Ae(Ue,$e,kt,lt,vt){var Ct,Bt,mt,Zt,zt,ln,An,En,Gn;return(0,ce.Z)().wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:return Ct=(0,M.Z)({},kt),delete Ct.ruleIndex,pe.warning=function(){},Ct.validator&&(Bt=Ct.validator,Ct.validator=function(){try{return Bt.apply(void 0,arguments)}catch(_r){return console.error(_r),Promise.reject(Je)}}),mt=null,Ct&&Ct.type==="array"&&Ct.defaultField&&(mt=Ct.defaultField,delete Ct.defaultField),Zt=new pe((0,y.Z)({},Ue,[Ct])),zt=(0,Pe.T)(me,lt.validateMessages),Zt.messages(zt),ln=[],pr.prev=10,pr.next=13,Promise.resolve(Zt.validate((0,y.Z)({},Ue,$e),(0,M.Z)({},lt)));case 13:pr.next=18;break;case 15:pr.prev=15,pr.t0=pr.catch(10),pr.t0.errors&&(ln=pr.t0.errors.map(function(_r,na){var $n=_r.message,qr=$n===Je?zt.default:$n;return x.isValidElement(qr)?x.cloneElement(qr,{key:"error_".concat(na)}):qr}));case 18:if(!(!ln.length&&mt)){pr.next=23;break}return pr.next=21,Promise.all($e.map(function(_r,na){return ke("".concat(Ue,".").concat(na),_r,mt,lt,vt)}));case 21:return An=pr.sent,pr.abrupt("return",An.reduce(function(_r,na){return[].concat((0,w.Z)(_r),(0,w.Z)(na))},[]));case 23:return En=(0,M.Z)((0,M.Z)({},kt),{},{name:Ue,enum:(kt.enum||[]).join(", ")},vt),Gn=ln.map(function(_r){return typeof _r=="string"?Ie(_r,En):_r}),pr.abrupt("return",Gn);case 26:case"end":return pr.stop()}},Ae,null,[[10,15]])})),De.apply(this,arguments)}function Fe(Ae,Ue,$e,kt,lt,vt){var Ct=Ae.join("."),Bt=$e.map(function(zt,ln){var An=zt.validator,En=(0,M.Z)((0,M.Z)({},zt),{},{ruleIndex:ln});return An&&(En.validator=function(Gn,Bn,pr){var _r=!1,na=function(){for(var Jr=arguments.length,Aa=new Array(Jr),ya=0;ya<Jr;ya++)Aa[ya]=arguments[ya];Promise.resolve().then(function(){L(!_r,"Your validator function has already return a promise. `callback` will be ignored."),_r||pr.apply(void 0,Aa)})},$n=An(Gn,Bn,na);_r=$n&&typeof $n.then=="function"&&typeof $n.catch=="function",L(_r,"`callback` is deprecated. Please return a promise instead."),_r&&$n.then(function(){pr()}).catch(function(qr){pr(qr||" ")})}),En}).sort(function(zt,ln){var An=zt.warningOnly,En=zt.ruleIndex,Gn=ln.warningOnly,Bn=ln.ruleIndex;return!!An==!!Gn?En-Bn:An?1:-1}),mt;if(lt===!0)mt=new Promise(function(){var zt=(0,ve.Z)((0,ce.Z)().mark(function ln(An,En){var Gn,Bn,pr;return(0,ce.Z)().wrap(function(na){for(;;)switch(na.prev=na.next){case 0:Gn=0;case 1:if(!(Gn<Bt.length)){na.next=12;break}return Bn=Bt[Gn],na.next=5,ke(Ct,Ue,Bn,kt,vt);case 5:if(pr=na.sent,!pr.length){na.next=9;break}return En([{errors:pr,rule:Bn}]),na.abrupt("return");case 9:Gn+=1,na.next=1;break;case 12:An([]);case 13:case"end":return na.stop()}},ln)}));return function(ln,An){return zt.apply(this,arguments)}}());else{var Zt=Bt.map(function(zt){return ke(Ct,Ue,zt,kt,vt).then(function(ln){return{errors:ln,rule:zt}})});mt=(lt?et(Zt):Qe(Zt)).then(function(zt){return Promise.reject(zt)})}return mt.catch(function(zt){return zt}),mt}function Qe(Ae){return qe.apply(this,arguments)}function qe(){return qe=(0,ve.Z)((0,ce.Z)().mark(function Ae(Ue){return(0,ce.Z)().wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return kt.abrupt("return",Promise.all(Ue).then(function(lt){var vt,Ct=(vt=[]).concat.apply(vt,(0,w.Z)(lt));return Ct}));case 1:case"end":return kt.stop()}},Ae)})),qe.apply(this,arguments)}function et(Ae){return dt.apply(this,arguments)}function dt(){return dt=(0,ve.Z)((0,ce.Z)().mark(function Ae(Ue){var $e;return(0,ce.Z)().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return $e=0,lt.abrupt("return",new Promise(function(vt){Ue.forEach(function(Ct){Ct.then(function(Bt){Bt.errors.length&&vt([Bt]),$e+=1,$e===Ue.length&&vt([])})})}));case 2:case"end":return lt.stop()}},Ae)})),dt.apply(this,arguments)}var Ke=o(1149);function Ge(Ae){return he(Ae)}function wt(Ae,Ue){var $e={};return Ue.forEach(function(kt){var lt=(0,Ke.Z)(Ae,kt);$e=(0,Pe.Z)($e,kt,lt)}),$e}function Vt(Ae,Ue){return Ae&&Ae.some(function($e){return gt($e,Ue)})}function gt(Ae,Ue){return!Ae||!Ue||Ae.length!==Ue.length?!1:Ae.every(function($e,kt){return Ue[kt]===$e})}function it(Ae,Ue){if(Ae===Ue)return!0;if(!Ae&&Ue||Ae&&!Ue||!Ae||!Ue||(0,V.Z)(Ae)!=="object"||(0,V.Z)(Ue)!=="object")return!1;var $e=Object.keys(Ae),kt=Object.keys(Ue),lt=new Set([].concat($e,kt));return(0,w.Z)(lt).every(function(vt){var Ct=Ae[vt],Bt=Ue[vt];return typeof Ct=="function"&&typeof Bt=="function"?!0:Ct===Bt})}function Le(Ae){var Ue=arguments.length<=1?void 0:arguments[1];return Ue&&Ue.target&&(0,V.Z)(Ue.target)==="object"&&Ae in Ue.target?Ue.target[Ae]:Ue}function ct(Ae,Ue,$e){var kt=Ae.length;if(Ue<0||Ue>=kt||$e<0||$e>=kt)return Ae;var lt=Ae[Ue],vt=Ue-$e;return vt>0?[].concat((0,w.Z)(Ae.slice(0,$e)),[lt],(0,w.Z)(Ae.slice($e,Ue)),(0,w.Z)(Ae.slice(Ue+1,kt))):vt<0?[].concat((0,w.Z)(Ae.slice(0,Ue)),(0,w.Z)(Ae.slice(Ue+1,$e+1)),[lt],(0,w.Z)(Ae.slice($e+1,kt))):Ae}var at=["name"],jt=[];function St(Ae,Ue,$e,kt,lt,vt){return typeof Ae=="function"?Ae(Ue,$e,"source"in vt?{source:vt.source}:{}):kt!==lt}var fn=function(Ae){(0,h.Z)($e,Ae);var Ue=(0,d.Z)($e);function $e(kt){var lt;if((0,m.Z)(this,$e),lt=Ue.call(this,kt),lt.state={resetCount:0},lt.cancelRegisterFunc=null,lt.mounted=!1,lt.touched=!1,lt.dirty=!1,lt.validatePromise=void 0,lt.prevValidating=void 0,lt.errors=jt,lt.warnings=jt,lt.cancelRegister=function(){var mt=lt.props,Zt=mt.preserve,zt=mt.isListField,ln=mt.name;lt.cancelRegisterFunc&<.cancelRegisterFunc(zt,Zt,Ge(ln)),lt.cancelRegisterFunc=null},lt.getNamePath=function(){var mt=lt.props,Zt=mt.name,zt=mt.fieldContext,ln=zt.prefixName,An=ln===void 0?[]:ln;return Zt!==void 0?[].concat((0,w.Z)(An),(0,w.Z)(Zt)):[]},lt.getRules=function(){var mt=lt.props,Zt=mt.rules,zt=Zt===void 0?[]:Zt,ln=mt.fieldContext;return zt.map(function(An){return typeof An=="function"?An(ln):An})},lt.refresh=function(){!lt.mounted||lt.setState(function(mt){var Zt=mt.resetCount;return{resetCount:Zt+1}})},lt.metaCache=null,lt.triggerMetaEvent=function(mt){var Zt=lt.props.onMetaChange;if(Zt){var zt=(0,M.Z)((0,M.Z)({},lt.getMeta()),{},{destroy:mt});G(lt.metaCache,zt)||Zt(zt),lt.metaCache=zt}else lt.metaCache=null},lt.onStoreChange=function(mt,Zt,zt){var ln=lt.props,An=ln.shouldUpdate,En=ln.dependencies,Gn=En===void 0?[]:En,Bn=ln.onReset,pr=zt.store,_r=lt.getNamePath(),na=lt.getValue(mt),$n=lt.getValue(pr),qr=Zt&&Vt(Zt,_r);switch(zt.type==="valueUpdate"&&zt.source==="external"&&na!==$n&&(lt.touched=!0,lt.dirty=!0,lt.validatePromise=null,lt.errors=jt,lt.warnings=jt,lt.triggerMetaEvent()),zt.type){case"reset":if(!Zt||qr){lt.touched=!1,lt.dirty=!1,lt.validatePromise=void 0,lt.errors=jt,lt.warnings=jt,lt.triggerMetaEvent(),Bn==null||Bn(),lt.refresh();return}break;case"remove":{if(An){lt.reRender();return}break}case"setField":{if(qr){var Jr=zt.data;"touched"in Jr&&(lt.touched=Jr.touched),"validating"in Jr&&!("originRCField"in Jr)&&(lt.validatePromise=Jr.validating?Promise.resolve([]):null),"errors"in Jr&&(lt.errors=Jr.errors||jt),"warnings"in Jr&&(lt.warnings=Jr.warnings||jt),lt.dirty=!0,lt.triggerMetaEvent(),lt.reRender();return}if(An&&!_r.length&&St(An,mt,pr,na,$n,zt)){lt.reRender();return}break}case"dependenciesUpdate":{var Aa=Gn.map(Ge);if(Aa.some(function(ya){return Vt(zt.relatedFields,ya)})){lt.reRender();return}break}default:if(qr||(!Gn.length||_r.length||An)&&St(An,mt,pr,na,$n,zt)){lt.reRender();return}break}An===!0&<.reRender()},lt.validateRules=function(mt){var Zt=lt.getNamePath(),zt=lt.getValue(),ln=mt||{},An=ln.triggerName,En=ln.validateOnly,Gn=En===void 0?!1:En,Bn=Promise.resolve().then(function(){if(!lt.mounted)return[];var pr=lt.props,_r=pr.validateFirst,na=_r===void 0?!1:_r,$n=pr.messageVariables,qr=lt.getRules();An&&(qr=qr.filter(function(Aa){return Aa}).filter(function(Aa){var ya=Aa.validateTrigger;if(!ya)return!0;var $t=he(ya);return $t.includes(An)}));var Jr=Fe(Zt,zt,qr,mt,na,$n);return Jr.catch(function(Aa){return Aa}).then(function(){var Aa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jt;if(lt.validatePromise===Bn){var ya;lt.validatePromise=null;var $t=[],wn=[];(ya=Aa.forEach)===null||ya===void 0||ya.call(Aa,function(Fn){var Or=Fn.rule.warningOnly,vr=Fn.errors,Ur=vr===void 0?jt:vr;Or?wn.push.apply(wn,(0,w.Z)(Ur)):$t.push.apply($t,(0,w.Z)(Ur))}),lt.errors=$t,lt.warnings=wn,lt.triggerMetaEvent(),lt.reRender()}}),Jr});return Gn||(lt.validatePromise=Bn,lt.dirty=!0,lt.errors=jt,lt.warnings=jt,lt.triggerMetaEvent(),lt.reRender()),Bn},lt.isFieldValidating=function(){return!!lt.validatePromise},lt.isFieldTouched=function(){return lt.touched},lt.isFieldDirty=function(){if(lt.dirty||lt.props.initialValue!==void 0)return!0;var mt=lt.props.fieldContext,Zt=mt.getInternalHooks(z),zt=Zt.getInitialValue;return zt(lt.getNamePath())!==void 0},lt.getErrors=function(){return lt.errors},lt.getWarnings=function(){return lt.warnings},lt.isListField=function(){return lt.props.isListField},lt.isList=function(){return lt.props.isList},lt.isPreserve=function(){return lt.props.preserve},lt.getMeta=function(){lt.prevValidating=lt.isFieldValidating();var mt={touched:lt.isFieldTouched(),validating:lt.prevValidating,errors:lt.errors,warnings:lt.warnings,name:lt.getNamePath(),validated:lt.validatePromise===null};return mt},lt.getOnlyChild=function(mt){if(typeof mt=="function"){var Zt=lt.getMeta();return(0,M.Z)((0,M.Z)({},lt.getOnlyChild(mt(lt.getControlled(),Zt,lt.props.fieldContext))),{},{isFunction:!0})}var zt=(0,_.Z)(mt);return zt.length!==1||!x.isValidElement(zt[0])?{child:zt,isFunction:!1}:{child:zt[0],isFunction:!1}},lt.getValue=function(mt){var Zt=lt.props.fieldContext.getFieldsValue,zt=lt.getNamePath();return(0,Ke.Z)(mt||Zt(!0),zt)},lt.getControlled=function(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Zt=lt.props,zt=Zt.trigger,ln=Zt.validateTrigger,An=Zt.getValueFromEvent,En=Zt.normalize,Gn=Zt.valuePropName,Bn=Zt.getValueProps,pr=Zt.fieldContext,_r=ln!==void 0?ln:pr.validateTrigger,na=lt.getNamePath(),$n=pr.getInternalHooks,qr=pr.getFieldsValue,Jr=$n(z),Aa=Jr.dispatch,ya=lt.getValue(),$t=Bn||function(vr){return(0,y.Z)({},Gn,vr)},wn=mt[zt],Fn=(0,M.Z)((0,M.Z)({},mt),$t(ya));Fn[zt]=function(){lt.touched=!0,lt.dirty=!0,lt.triggerMetaEvent();for(var vr,Ur=arguments.length,Zr=new Array(Ur),Kr=0;Kr<Ur;Kr++)Zr[Kr]=arguments[Kr];An?vr=An.apply(void 0,Zr):vr=Le.apply(void 0,[Gn].concat(Zr)),En&&(vr=En(vr,ya,qr(!0))),Aa({type:"updateValue",namePath:na,value:vr}),wn&&wn.apply(void 0,Zr)};var Or=he(_r||[]);return Or.forEach(function(vr){var Ur=Fn[vr];Fn[vr]=function(){Ur&&Ur.apply(void 0,arguments);var Zr=lt.props.rules;Zr&&Zr.length&&Aa({type:"validateField",namePath:na,triggerName:vr})}}),Fn},kt.fieldContext){var vt=kt.fieldContext.getInternalHooks,Ct=vt(z),Bt=Ct.initEntityValue;Bt((0,v.Z)(lt))}return lt}return(0,b.Z)($e,[{key:"componentDidMount",value:function(){var lt=this.props,vt=lt.shouldUpdate,Ct=lt.fieldContext;if(this.mounted=!0,Ct){var Bt=Ct.getInternalHooks,mt=Bt(z),Zt=mt.registerField;this.cancelRegisterFunc=Zt(this)}vt===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){!this.mounted||this.forceUpdate()}},{key:"render",value:function(){var lt=this.state.resetCount,vt=this.props.children,Ct=this.getOnlyChild(vt),Bt=Ct.child,mt=Ct.isFunction,Zt;return mt?Zt=Bt:x.isValidElement(Bt)?Zt=x.cloneElement(Bt,this.getControlled(Bt.props)):(L(!Bt,"`children` of Field is not validate ReactElement."),Zt=Bt),x.createElement(x.Fragment,{key:lt},Zt)}}]),$e}(x.Component);fn.contextType=ne,fn.defaultProps={trigger:"onChange",valuePropName:"value"};function Xt(Ae){var Ue=Ae.name,$e=(0,A.Z)(Ae,at),kt=x.useContext(ne),lt=x.useContext(ue),vt=Ue!==void 0?Ge(Ue):void 0,Ct="keep";return $e.isListField||(Ct="_".concat((vt||[]).join("_"))),x.createElement(fn,(0,g.Z)({key:Ct,name:vt,isListField:!!lt},$e,{fieldContext:kt}))}var Yt=Xt,Rt=function(Ue){var $e=Ue.name,kt=Ue.initialValue,lt=Ue.children,vt=Ue.rules,Ct=Ue.validateTrigger,Bt=Ue.isListField,mt=x.useContext(ne),Zt=x.useContext(ue),zt=x.useRef({keys:[],id:0}),ln=zt.current,An=x.useMemo(function(){var pr=Ge(mt.prefixName)||[];return[].concat((0,w.Z)(pr),(0,w.Z)(Ge($e)))},[mt.prefixName,$e]),En=x.useMemo(function(){return(0,M.Z)((0,M.Z)({},mt),{},{prefixName:An})},[mt,An]),Gn=x.useMemo(function(){return{getKey:function(_r){var na=An.length,$n=_r[na];return[ln.keys[$n],_r.slice(na+1)]}}},[An]);if(typeof lt!="function")return L(!1,"Form.List only accepts function as children."),null;var Bn=function(_r,na,$n){var qr=$n.source;return qr==="internal"?!1:_r!==na};return x.createElement(ue.Provider,{value:Gn},x.createElement(ne.Provider,{value:En},x.createElement(Yt,{name:[],shouldUpdate:Bn,rules:vt,validateTrigger:Ct,initialValue:kt,isList:!0,isListField:Bt!=null?Bt:!!Zt},function(pr,_r){var na=pr.value,$n=na===void 0?[]:na,qr=pr.onChange,Jr=mt.getFieldValue,Aa=function(){var Fn=Jr(An||[]);return Fn||[]},ya={add:function(Fn,Or){var vr=Aa();Or>=0&&Or<=vr.length?(ln.keys=[].concat((0,w.Z)(ln.keys.slice(0,Or)),[ln.id],(0,w.Z)(ln.keys.slice(Or))),qr([].concat((0,w.Z)(vr.slice(0,Or)),[Fn],(0,w.Z)(vr.slice(Or))))):(ln.keys=[].concat((0,w.Z)(ln.keys),[ln.id]),qr([].concat((0,w.Z)(vr),[Fn]))),ln.id+=1},remove:function(Fn){var Or=Aa(),vr=new Set(Array.isArray(Fn)?Fn:[Fn]);vr.size<=0||(ln.keys=ln.keys.filter(function(Ur,Zr){return!vr.has(Zr)}),qr(Or.filter(function(Ur,Zr){return!vr.has(Zr)})))},move:function(Fn,Or){if(Fn!==Or){var vr=Aa();Fn<0||Fn>=vr.length||Or<0||Or>=vr.length||(ln.keys=ct(ln.keys,Fn,Or),qr(ct(vr,Fn,Or)))}}},$t=$n||[];return Array.isArray($t)||($t=[]),lt($t.map(function(wn,Fn){var Or=ln.keys[Fn];return Or===void 0&&(ln.keys[Fn]=ln.id,Or=ln.keys[Fn],ln.id+=1),{name:Fn,key:Or,isListField:!0}}),ya,_r)})))},Lt=Rt,ze=o(28481);function rt(Ae){var Ue=!1,$e=Ae.length,kt=[];return Ae.length?new Promise(function(lt,vt){Ae.forEach(function(Ct,Bt){Ct.catch(function(mt){return Ue=!0,mt}).then(function(mt){$e-=1,kt[Bt]=mt,!($e>0)&&(Ue&&vt(kt),lt(kt))})})}):Promise.resolve([])}var tt="__@field_split__";function de(Ae){return Ae.map(function(Ue){return"".concat((0,V.Z)(Ue),":").concat(Ue)}).join(tt)}var ot=function(){function Ae(){(0,m.Z)(this,Ae),this.kvs=new Map}return(0,b.Z)(Ae,[{key:"set",value:function($e,kt){this.kvs.set(de($e),kt)}},{key:"get",value:function($e){return this.kvs.get(de($e))}},{key:"update",value:function($e,kt){var lt=this.get($e),vt=kt(lt);vt?this.set($e,vt):this.delete($e)}},{key:"delete",value:function($e){this.kvs.delete(de($e))}},{key:"map",value:function($e){return(0,w.Z)(this.kvs.entries()).map(function(kt){var lt=(0,ze.Z)(kt,2),vt=lt[0],Ct=lt[1],Bt=vt.split(tt);return $e({key:Bt.map(function(mt){var Zt=mt.match(/^([^:]*):(.*)$/),zt=(0,ze.Z)(Zt,3),ln=zt[1],An=zt[2];return ln==="number"?Number(An):An}),value:Ct})})}},{key:"toJSON",value:function(){var $e={};return this.map(function(kt){var lt=kt.key,vt=kt.value;return $e[lt.join(".")]=vt,null}),$e}}]),Ae}(),Et=ot,Ht=["name"],Jt=(0,b.Z)(function Ae(Ue){var $e=this;(0,m.Z)(this,Ae),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:$e.getFieldValue,getFieldsValue:$e.getFieldsValue,getFieldError:$e.getFieldError,getFieldWarning:$e.getFieldWarning,getFieldsError:$e.getFieldsError,isFieldsTouched:$e.isFieldsTouched,isFieldTouched:$e.isFieldTouched,isFieldValidating:$e.isFieldValidating,isFieldsValidating:$e.isFieldsValidating,resetFields:$e.resetFields,setFields:$e.setFields,setFieldValue:$e.setFieldValue,setFieldsValue:$e.setFieldsValue,validateFields:$e.validateFields,submit:$e.submit,_init:!0,getInternalHooks:$e.getInternalHooks}},this.getInternalHooks=function(kt){return kt===z?($e.formHooked=!0,{dispatch:$e.dispatch,initEntityValue:$e.initEntityValue,registerField:$e.registerField,useSubscribe:$e.useSubscribe,setInitialValues:$e.setInitialValues,destroyForm:$e.destroyForm,setCallbacks:$e.setCallbacks,setValidateMessages:$e.setValidateMessages,getFields:$e.getFields,setPreserve:$e.setPreserve,getInitialValue:$e.getInitialValue,registerWatch:$e.registerWatch}):(L(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(kt){$e.subscribable=kt},this.prevWithoutPreserves=null,this.setInitialValues=function(kt,lt){if($e.initialValues=kt||{},lt){var vt,Ct=(0,Pe.T)(kt,$e.store);(vt=$e.prevWithoutPreserves)===null||vt===void 0||vt.map(function(Bt){var mt=Bt.key;Ct=(0,Pe.Z)(Ct,mt,(0,Ke.Z)(kt,mt))}),$e.prevWithoutPreserves=null,$e.updateStore(Ct)}},this.destroyForm=function(){var kt=new Et;$e.getFieldEntities(!0).forEach(function(lt){$e.isMergedPreserve(lt.isPreserve())||kt.set(lt.getNamePath(),!0)}),$e.prevWithoutPreserves=kt},this.getInitialValue=function(kt){var lt=(0,Ke.Z)($e.initialValues,kt);return kt.length?(0,Pe.T)(lt):lt},this.setCallbacks=function(kt){$e.callbacks=kt},this.setValidateMessages=function(kt){$e.validateMessages=kt},this.setPreserve=function(kt){$e.preserve=kt},this.watchList=[],this.registerWatch=function(kt){return $e.watchList.push(kt),function(){$e.watchList=$e.watchList.filter(function(lt){return lt!==kt})}},this.notifyWatch=function(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if($e.watchList.length){var lt=$e.getFieldsValue(),vt=$e.getFieldsValue(!0);$e.watchList.forEach(function(Ct){Ct(lt,vt,kt)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(kt){$e.store=kt},this.getFieldEntities=function(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return kt?$e.fieldEntities.filter(function(lt){return lt.getNamePath().length}):$e.fieldEntities},this.getFieldsMap=function(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,lt=new Et;return $e.getFieldEntities(kt).forEach(function(vt){var Ct=vt.getNamePath();lt.set(Ct,vt)}),lt},this.getFieldEntitiesForNamePathList=function(kt){if(!kt)return $e.getFieldEntities(!0);var lt=$e.getFieldsMap(!0);return kt.map(function(vt){var Ct=Ge(vt);return lt.get(Ct)||{INVALIDATE_NAME_PATH:Ge(vt)}})},this.getFieldsValue=function(kt,lt){if($e.warningUnhooked(),kt===!0&&!lt)return $e.store;var vt=$e.getFieldEntitiesForNamePathList(Array.isArray(kt)?kt:null),Ct=[];return vt.forEach(function(Bt){var mt,Zt="INVALIDATE_NAME_PATH"in Bt?Bt.INVALIDATE_NAME_PATH:Bt.getNamePath();if(!(!kt&&((mt=Bt.isListField)===null||mt===void 0?void 0:mt.call(Bt))))if(!lt)Ct.push(Zt);else{var zt="getMeta"in Bt?Bt.getMeta():null;lt(zt)&&Ct.push(Zt)}}),wt($e.store,Ct.map(Ge))},this.getFieldValue=function(kt){$e.warningUnhooked();var lt=Ge(kt);return(0,Ke.Z)($e.store,lt)},this.getFieldsError=function(kt){$e.warningUnhooked();var lt=$e.getFieldEntitiesForNamePathList(kt);return lt.map(function(vt,Ct){return vt&&!("INVALIDATE_NAME_PATH"in vt)?{name:vt.getNamePath(),errors:vt.getErrors(),warnings:vt.getWarnings()}:{name:Ge(kt[Ct]),errors:[],warnings:[]}})},this.getFieldError=function(kt){$e.warningUnhooked();var lt=Ge(kt),vt=$e.getFieldsError([lt])[0];return vt.errors},this.getFieldWarning=function(kt){$e.warningUnhooked();var lt=Ge(kt),vt=$e.getFieldsError([lt])[0];return vt.warnings},this.isFieldsTouched=function(){$e.warningUnhooked();for(var kt=arguments.length,lt=new Array(kt),vt=0;vt<kt;vt++)lt[vt]=arguments[vt];var Ct=lt[0],Bt=lt[1],mt,Zt=!1;lt.length===0?mt=null:lt.length===1?Array.isArray(Ct)?(mt=Ct.map(Ge),Zt=!1):(mt=null,Zt=Ct):(mt=Ct.map(Ge),Zt=Bt);var zt=$e.getFieldEntities(!0),ln=function(pr){return pr.isFieldTouched()};if(!mt)return Zt?zt.every(ln):zt.some(ln);var An=new Et;mt.forEach(function(Bn){An.set(Bn,[])}),zt.forEach(function(Bn){var pr=Bn.getNamePath();mt.forEach(function(_r){_r.every(function(na,$n){return pr[$n]===na})&&An.update(_r,function(na){return[].concat((0,w.Z)(na),[Bn])})})});var En=function(pr){return pr.some(ln)},Gn=An.map(function(Bn){var pr=Bn.value;return pr});return Zt?Gn.every(En):Gn.some(En)},this.isFieldTouched=function(kt){return $e.warningUnhooked(),$e.isFieldsTouched([kt])},this.isFieldsValidating=function(kt){$e.warningUnhooked();var lt=$e.getFieldEntities();if(!kt)return lt.some(function(Ct){return Ct.isFieldValidating()});var vt=kt.map(Ge);return lt.some(function(Ct){var Bt=Ct.getNamePath();return Vt(vt,Bt)&&Ct.isFieldValidating()})},this.isFieldValidating=function(kt){return $e.warningUnhooked(),$e.isFieldsValidating([kt])},this.resetWithFieldInitialValue=function(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},lt=new Et,vt=$e.getFieldEntities(!0);vt.forEach(function(mt){var Zt=mt.props.initialValue,zt=mt.getNamePath();if(Zt!==void 0){var ln=lt.get(zt)||new Set;ln.add({entity:mt,value:Zt}),lt.set(zt,ln)}});var Ct=function(Zt){Zt.forEach(function(zt){var ln=zt.props.initialValue;if(ln!==void 0){var An=zt.getNamePath(),En=$e.getInitialValue(An);if(En!==void 0)L(!1,"Form already set 'initialValues' with path '".concat(An.join("."),"'. Field can not overwrite it."));else{var Gn=lt.get(An);if(Gn&&Gn.size>1)L(!1,"Multiple Field with path '".concat(An.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(Gn){var Bn=$e.getFieldValue(An);(!kt.skipExist||Bn===void 0)&&$e.updateStore((0,Pe.Z)($e.store,An,(0,w.Z)(Gn)[0].value))}}}})},Bt;kt.entities?Bt=kt.entities:kt.namePathList?(Bt=[],kt.namePathList.forEach(function(mt){var Zt=lt.get(mt);if(Zt){var zt;(zt=Bt).push.apply(zt,(0,w.Z)((0,w.Z)(Zt).map(function(ln){return ln.entity})))}})):Bt=vt,Ct(Bt)},this.resetFields=function(kt){$e.warningUnhooked();var lt=$e.store;if(!kt){$e.updateStore((0,Pe.T)($e.initialValues)),$e.resetWithFieldInitialValue(),$e.notifyObservers(lt,null,{type:"reset"}),$e.notifyWatch();return}var vt=kt.map(Ge);vt.forEach(function(Ct){var Bt=$e.getInitialValue(Ct);$e.updateStore((0,Pe.Z)($e.store,Ct,Bt))}),$e.resetWithFieldInitialValue({namePathList:vt}),$e.notifyObservers(lt,vt,{type:"reset"}),$e.notifyWatch(vt)},this.setFields=function(kt){$e.warningUnhooked();var lt=$e.store,vt=[];kt.forEach(function(Ct){var Bt=Ct.name,mt=(0,A.Z)(Ct,Ht),Zt=Ge(Bt);vt.push(Zt),"value"in mt&&$e.updateStore((0,Pe.Z)($e.store,Zt,mt.value)),$e.notifyObservers(lt,[Zt],{type:"setField",data:Ct})}),$e.notifyWatch(vt)},this.getFields=function(){var kt=$e.getFieldEntities(!0),lt=kt.map(function(vt){var Ct=vt.getNamePath(),Bt=vt.getMeta(),mt=(0,M.Z)((0,M.Z)({},Bt),{},{name:Ct,value:$e.getFieldValue(Ct)});return Object.defineProperty(mt,"originRCField",{value:!0}),mt});return lt},this.initEntityValue=function(kt){var lt=kt.props.initialValue;if(lt!==void 0){var vt=kt.getNamePath(),Ct=(0,Ke.Z)($e.store,vt);Ct===void 0&&$e.updateStore((0,Pe.Z)($e.store,vt,lt))}},this.isMergedPreserve=function(kt){var lt=kt!==void 0?kt:$e.preserve;return lt!=null?lt:!0},this.registerField=function(kt){$e.fieldEntities.push(kt);var lt=kt.getNamePath();if($e.notifyWatch([lt]),kt.props.initialValue!==void 0){var vt=$e.store;$e.resetWithFieldInitialValue({entities:[kt],skipExist:!0}),$e.notifyObservers(vt,[kt.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(Ct,Bt){var mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if($e.fieldEntities=$e.fieldEntities.filter(function(ln){return ln!==kt}),!$e.isMergedPreserve(Bt)&&(!Ct||mt.length>1)){var Zt=Ct?void 0:$e.getInitialValue(lt);if(lt.length&&$e.getFieldValue(lt)!==Zt&&$e.fieldEntities.every(function(ln){return!gt(ln.getNamePath(),lt)})){var zt=$e.store;$e.updateStore((0,Pe.Z)(zt,lt,Zt,!0)),$e.notifyObservers(zt,[lt],{type:"remove"}),$e.triggerDependenciesUpdate(zt,lt)}}$e.notifyWatch([lt])}},this.dispatch=function(kt){switch(kt.type){case"updateValue":{var lt=kt.namePath,vt=kt.value;$e.updateValue(lt,vt);break}case"validateField":{var Ct=kt.namePath,Bt=kt.triggerName;$e.validateFields([Ct],{triggerName:Bt});break}default:}},this.notifyObservers=function(kt,lt,vt){if($e.subscribable){var Ct=(0,M.Z)((0,M.Z)({},vt),{},{store:$e.getFieldsValue(!0)});$e.getFieldEntities().forEach(function(Bt){var mt=Bt.onStoreChange;mt(kt,lt,Ct)})}else $e.forceRootUpdate()},this.triggerDependenciesUpdate=function(kt,lt){var vt=$e.getDependencyChildrenFields(lt);return vt.length&&$e.validateFields(vt),$e.notifyObservers(kt,vt,{type:"dependenciesUpdate",relatedFields:[lt].concat((0,w.Z)(vt))}),vt},this.updateValue=function(kt,lt){var vt=Ge(kt),Ct=$e.store;$e.updateStore((0,Pe.Z)($e.store,vt,lt)),$e.notifyObservers(Ct,[vt],{type:"valueUpdate",source:"internal"}),$e.notifyWatch([vt]);var Bt=$e.triggerDependenciesUpdate(Ct,vt),mt=$e.callbacks.onValuesChange;if(mt){var Zt=wt($e.store,[vt]);mt(Zt,$e.getFieldsValue())}$e.triggerOnFieldsChange([vt].concat((0,w.Z)(Bt)))},this.setFieldsValue=function(kt){$e.warningUnhooked();var lt=$e.store;if(kt){var vt=(0,Pe.T)($e.store,kt);$e.updateStore(vt)}$e.notifyObservers(lt,null,{type:"valueUpdate",source:"external"}),$e.notifyWatch()},this.setFieldValue=function(kt,lt){$e.setFields([{name:kt,value:lt}])},this.getDependencyChildrenFields=function(kt){var lt=new Set,vt=[],Ct=new Et;$e.getFieldEntities().forEach(function(mt){var Zt=mt.props.dependencies;(Zt||[]).forEach(function(zt){var ln=Ge(zt);Ct.update(ln,function(){var An=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return An.add(mt),An})})});var Bt=function mt(Zt){var zt=Ct.get(Zt)||new Set;zt.forEach(function(ln){if(!lt.has(ln)){lt.add(ln);var An=ln.getNamePath();ln.isFieldDirty()&&An.length&&(vt.push(An),mt(An))}})};return Bt(kt),vt},this.triggerOnFieldsChange=function(kt,lt){var vt=$e.callbacks.onFieldsChange;if(vt){var Ct=$e.getFields();if(lt){var Bt=new Et;lt.forEach(function(Zt){var zt=Zt.name,ln=Zt.errors;Bt.set(zt,ln)}),Ct.forEach(function(Zt){Zt.errors=Bt.get(Zt.name)||Zt.errors})}var mt=Ct.filter(function(Zt){var zt=Zt.name;return Vt(kt,zt)});mt.length&&vt(mt,Ct)}},this.validateFields=function(kt,lt){$e.warningUnhooked();var vt,Ct;Array.isArray(kt)||typeof kt=="string"||typeof lt=="string"?(vt=kt,Ct=lt):Ct=kt;var Bt=!!vt,mt=Bt?vt.map(Ge):[],Zt=[],zt=String(Date.now()),ln=new Set;$e.getFieldEntities(!0).forEach(function(Bn){var pr;if(Bt||mt.push(Bn.getNamePath()),((pr=Ct)===null||pr===void 0?void 0:pr.recursive)&&Bt){var _r=Bn.getNamePath();_r.every(function(qr,Jr){return vt[Jr]===qr||vt[Jr]===void 0})&&mt.push(_r)}if(!(!Bn.props.rules||!Bn.props.rules.length)){var na=Bn.getNamePath();if(ln.add(na.join(zt)),!Bt||Vt(mt,na)){var $n=Bn.validateRules((0,M.Z)({validateMessages:(0,M.Z)((0,M.Z)({},me),$e.validateMessages)},Ct));Zt.push($n.then(function(){return{name:na,errors:[],warnings:[]}}).catch(function(qr){var Jr,Aa=[],ya=[];return(Jr=qr.forEach)===null||Jr===void 0||Jr.call(qr,function($t){var wn=$t.rule.warningOnly,Fn=$t.errors;wn?ya.push.apply(ya,(0,w.Z)(Fn)):Aa.push.apply(Aa,(0,w.Z)(Fn))}),Aa.length?Promise.reject({name:na,errors:Aa,warnings:ya}):{name:na,errors:Aa,warnings:ya}}))}}});var An=rt(Zt);$e.lastValidatePromise=An,An.catch(function(Bn){return Bn}).then(function(Bn){var pr=Bn.map(function(_r){var na=_r.name;return na});$e.notifyObservers($e.store,pr,{type:"validateFinish"}),$e.triggerOnFieldsChange(pr,Bn)});var En=An.then(function(){return $e.lastValidatePromise===An?Promise.resolve($e.getFieldsValue(mt)):Promise.reject([])}).catch(function(Bn){var pr=Bn.filter(function(_r){return _r&&_r.errors.length});return Promise.reject({values:$e.getFieldsValue(mt),errorFields:pr,outOfDate:$e.lastValidatePromise!==An})});En.catch(function(Bn){return Bn});var Gn=mt.filter(function(Bn){return ln.has(Bn.join(zt))});return $e.triggerOnFieldsChange(Gn),En},this.submit=function(){$e.warningUnhooked(),$e.validateFields().then(function(kt){var lt=$e.callbacks.onFinish;if(lt)try{lt(kt)}catch(vt){console.error(vt)}}).catch(function(kt){var lt=$e.callbacks.onFinishFailed;lt&<(kt)})},this.forceRootUpdate=Ue});function Qt(Ae){var Ue=x.useRef(),$e=x.useState({}),kt=(0,ze.Z)($e,2),lt=kt[1];if(!Ue.current)if(Ae)Ue.current=Ae;else{var vt=function(){lt({})},Ct=new Jt(vt);Ue.current=Ct.getForm()}return[Ue.current]}var an=Qt,Un=x.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),qt=function(Ue){var $e=Ue.validateMessages,kt=Ue.onFormChange,lt=Ue.onFormFinish,vt=Ue.children,Ct=x.useContext(Un),Bt=x.useRef({});return x.createElement(Un.Provider,{value:(0,M.Z)((0,M.Z)({},Ct),{},{validateMessages:(0,M.Z)((0,M.Z)({},Ct.validateMessages),$e),triggerFormChange:function(Zt,zt){kt&&kt(Zt,{changedFields:zt,forms:Bt.current}),Ct.triggerFormChange(Zt,zt)},triggerFormFinish:function(Zt,zt){lt&<(Zt,{values:zt,forms:Bt.current}),Ct.triggerFormFinish(Zt,zt)},registerForm:function(Zt,zt){Zt&&(Bt.current=(0,M.Z)((0,M.Z)({},Bt.current),{},(0,y.Z)({},Zt,zt))),Ct.registerForm(Zt,zt)},unregisterForm:function(Zt){var zt=(0,M.Z)({},Bt.current);delete zt[Zt],Bt.current=zt,Ct.unregisterForm(Zt)}})},vt)},rn=Un,cn=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],er=function(Ue,$e){var kt=Ue.name,lt=Ue.initialValues,vt=Ue.fields,Ct=Ue.form,Bt=Ue.preserve,mt=Ue.children,Zt=Ue.component,zt=Zt===void 0?"form":Zt,ln=Ue.validateMessages,An=Ue.validateTrigger,En=An===void 0?"onChange":An,Gn=Ue.onValuesChange,Bn=Ue.onFieldsChange,pr=Ue.onFinish,_r=Ue.onFinishFailed,na=(0,A.Z)(Ue,cn),$n=x.useContext(rn),qr=an(Ct),Jr=(0,ze.Z)(qr,1),Aa=Jr[0],ya=Aa.getInternalHooks(z),$t=ya.useSubscribe,wn=ya.setInitialValues,Fn=ya.setCallbacks,Or=ya.setValidateMessages,vr=ya.setPreserve,Ur=ya.destroyForm;x.useImperativeHandle($e,function(){return Aa}),x.useEffect(function(){return $n.registerForm(kt,Aa),function(){$n.unregisterForm(kt)}},[$n,Aa,kt]),Or((0,M.Z)((0,M.Z)({},$n.validateMessages),ln)),Fn({onValuesChange:Gn,onFieldsChange:function(Cn){if($n.triggerFormChange(kt,Cn),Bn){for(var Kn=arguments.length,Pn=new Array(Kn>1?Kn-1:0),At=1;At<Kn;At++)Pn[At-1]=arguments[At];Bn.apply(void 0,[Cn].concat(Pn))}},onFinish:function(Cn){$n.triggerFormFinish(kt,Cn),pr&&pr(Cn)},onFinishFailed:_r}),vr(Bt);var Zr=x.useRef(null);wn(lt,!Zr.current),Zr.current||(Zr.current=!0),x.useEffect(function(){return Ur},[]);var Kr,ba=typeof mt=="function";if(ba){var Ri=Aa.getFieldsValue(!0);Kr=mt(Ri,Aa)}else Kr=mt;$t(!ba);var Ea=x.useRef();x.useEffect(function(){it(Ea.current||[],vt||[])||Aa.setFields(vt||[]),Ea.current=vt},[vt,Aa]);var Pi=x.useMemo(function(){return(0,M.Z)((0,M.Z)({},Aa),{},{validateTrigger:En})},[Aa,En]),rs=x.createElement(ue.Provider,{value:null},x.createElement(ne.Provider,{value:Pi},Kr));return zt===!1?rs:x.createElement(zt,(0,g.Z)({},na,{onSubmit:function(Cn){Cn.preventDefault(),Cn.stopPropagation(),Aa.submit()},onReset:function(Cn){var Kn;Cn.preventDefault(),Aa.resetFields(),(Kn=na.onReset)===null||Kn===void 0||Kn.call(na,Cn)}}),rs)},rr=er;function nt(Ae){try{return JSON.stringify(Ae)}catch(Ue){return Math.random()}}var lr=function(){};function Hn(){for(var Ae=arguments.length,Ue=new Array(Ae),$e=0;$e<Ae;$e++)Ue[$e]=arguments[$e];var kt=Ue[0],lt=kt===void 0?[]:kt,vt=Ue[1],Ct=vt===void 0?{}:vt,Bt=Ee(Ct)?{form:Ct}:Ct,mt=Bt.form,Zt=(0,x.useState)(),zt=(0,ze.Z)(Zt,2),ln=zt[0],An=zt[1],En=(0,x.useMemo)(function(){return nt(ln)},[ln]),Gn=(0,x.useRef)(En);Gn.current=En;var Bn=(0,x.useContext)(ne),pr=mt||Bn,_r=pr&&pr._init,na=Ge(lt),$n=(0,x.useRef)(na);return $n.current=na,lr(na),(0,x.useEffect)(function(){if(!!_r){var qr=pr.getFieldsValue,Jr=pr.getInternalHooks,Aa=Jr(z),ya=Aa.registerWatch,$t=ya(function(Fn,Or){var vr=(0,Ke.Z)(Bt.preserve?Or:Fn,$n.current),Ur=nt(vr);Gn.current!==Ur&&(Gn.current=Ur,An(vr))}),wn=(0,Ke.Z)(Bt.preserve?qr(!0):qr(),$n.current);return An(wn),$t}},[_r]),ln}var ut=Hn,bt=x.forwardRef(rr),We=bt;We.FormProvider=qt,We.Field=Yt,We.List=Lt,We.useForm=an,We.useWatch=ut;var be=We},83025:function(oe,N,o){"use strict";o.d(N,{Z:function(){return A}});var x=o(67294),g=o(54323);function A(y){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=[];return x.Children.forEach(y,function(m){m==null&&!M.keepEmpty||(Array.isArray(m)?w=w.concat(A(m)):(0,g.isFragment)(m)&&m.props?w=w.concat(A(m.props.children,M)):w.push(m))}),w}},70140:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},34887:function(oe,N,o){"use strict";o.d(N,{hq:function(){return O}});var x=o(70140);function g(F,D){if(!F)return!1;if(F.contains)return F.contains(D);for(var Z=D;Z;){if(Z===F)return!0;Z=Z.parentNode}return!1}var A="data-rc-order",y="data-rc-priority",M="rc-util-key",w=new Map;function m(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=F.mark;return D?D.startsWith("data-")?D:"data-".concat(D):M}function b(F){if(F.attachTo)return F.attachTo;var D=document.querySelector("head");return D||document.body}function v(F){return F==="queue"?"prependQueue":F?"prepend":"append"}function h(F){return Array.from((w.get(F)||F).children).filter(function(D){return D.tagName==="STYLE"})}function d(F){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,x.Z)())return null;var Z=D.csp,W=D.prepend,U=D.priority,L=U===void 0?0:U,V=v(W),$=V==="prependQueue",G=document.createElement("style");G.setAttribute(A,V),$&&L&&G.setAttribute(y,"".concat(L)),Z!=null&&Z.nonce&&(G.nonce=Z==null?void 0:Z.nonce),G.innerHTML=F;var z=b(D),K=z.firstChild;if(W){if($){var re=h(z).filter(function(ne){if(!["prepend","prependQueue"].includes(ne.getAttribute(A)))return!1;var Q=Number(ne.getAttribute(y)||0);return L>=Q});if(re.length)return z.insertBefore(G,re[re.length-1].nextSibling),G}z.insertBefore(G,K)}else z.appendChild(G);return G}function _(F){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=b(D);return h(Z).find(function(W){return W.getAttribute(m(D))===F})}function p(F){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=_(F,D);if(Z){var W=b(D);W.removeChild(Z)}}function S(F,D){var Z=w.get(F);if(!Z||!g(document,Z)){var W=d("",D),U=W.parentNode;w.set(F,U),F.removeChild(W)}}function k(){w.clear()}function O(F,D){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},W=b(Z);S(W,Z);var U=_(D,Z);if(U){var L,V;if((L=Z.csp)!==null&&L!==void 0&&L.nonce&&U.nonce!==((V=Z.csp)===null||V===void 0?void 0:V.nonce)){var $;U.nonce=($=Z.csp)===null||$===void 0?void 0:$.nonce}return U.innerHTML!==F&&(U.innerHTML=F),U}var G=d(F,Z);return G.setAttribute(m(Z),D),G}},18209:function(oe,N){"use strict";var o={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(g){var A=g.keyCode;if(g.altKey&&!g.ctrlKey||g.metaKey||A>=o.F1&&A<=o.F12)return!1;switch(A){case o.ALT:case o.CAPS_LOCK:case o.CONTEXT_MENU:case o.CTRL:case o.DOWN:case o.END:case o.ESC:case o.HOME:case o.INSERT:case o.LEFT:case o.MAC_FF_META:case o.META:case o.NUMLOCK:case o.NUM_CENTER:case o.PAGE_DOWN:case o.PAGE_UP:case o.PAUSE:case o.PRINT_SCREEN:case o.RIGHT:case o.SHIFT:case o.UP:case o.WIN_KEY:case o.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(g){if(g>=o.ZERO&&g<=o.NINE||g>=o.NUM_ZERO&&g<=o.NUM_MULTIPLY||g>=o.A&&g<=o.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&g===0)return!0;switch(g){case o.SPACE:case o.QUESTION_MARK:case o.NUM_PLUS:case o.NUM_MINUS:case o.NUM_PERIOD:case o.NUM_DIVISION:case o.SEMICOLON:case o.DASH:case o.EQUALS:case o.COMMA:case o.PERIOD:case o.SLASH:case o.APOSTROPHE:case o.SINGLE_QUOTE:case o.OPEN_SQUARE_BRACKET:case o.BACKSLASH:case o.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};N.Z=o},13799:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});var x=o(67294);function g(A){var y=x.useRef();y.current=A;var M=x.useCallback(function(){for(var w,m=arguments.length,b=new Array(m),v=0;v<m;v++)b[v]=arguments[v];return(w=y.current)===null||w===void 0?void 0:w.call.apply(w,[y].concat(b))},[]);return M}},44793:function(oe,N,o){"use strict";o.d(N,{o:function(){return M}});var x=o(67294),g=o(70140),A=(0,g.Z)()?x.useLayoutEffect:x.useEffect,y=function(m,b){var v=x.useRef(!0);A(function(){return m(v.current)},b),A(function(){return v.current=!1,function(){v.current=!0}},[])},M=function(m,b){y(function(v){if(!v)return m()},b)};N.Z=y},38854:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});var x=o(67294);function g(A,y,M){var w=x.useRef({});return(!("value"in w.current)||M(w.current.condition,y))&&(w.current.value=A(),w.current.condition=y),w.current.value}},92866:function(oe,N,o){"use strict";o.d(N,{Z:function(){return w}});var x=o(28481),g=o(13799),A=o(44793),y=o(47066);function M(m){return m!==void 0}function w(m,b){var v=b||{},h=v.defaultValue,d=v.value,_=v.onChange,p=v.postState,S=(0,y.Z)(function(){return M(d)?d:M(h)?typeof h=="function"?h():h:typeof m=="function"?m():m}),k=(0,x.Z)(S,2),O=k[0],F=k[1],D=d!==void 0?d:O,Z=p?p(D):D,W=(0,g.Z)(_),U=(0,y.Z)([D]),L=(0,x.Z)(U,2),V=L[0],$=L[1];(0,A.o)(function(){var z=V[0];O!==z&&W(O,z)},[V]),(0,A.o)(function(){M(d)||F(d)},[d]);var G=(0,g.Z)(function(z,K){F(z,K),$([D],K)});return[Z,G]}},47066:function(oe,N,o){"use strict";o.d(N,{Z:function(){return A}});var x=o(28481),g=o(67294);function A(y){var M=g.useRef(!1),w=g.useState(y),m=(0,x.Z)(w,2),b=m[0],v=m[1];g.useEffect(function(){return M.current=!1,function(){M.current=!0}},[]);function h(d,_){_&&M.current||v(d)}return[b,h]}},69252:function(oe,N,o){"use strict";o.d(N,{Z:function(){return g}});var x=o(28991);function g(A,y){var M=(0,x.Z)({},A);return Array.isArray(y)&&y.forEach(function(w){delete M[w]}),M}},28101:function(oe,N){"use strict";var o=function(m){return+setTimeout(m,16)},x=function(m){return clearTimeout(m)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(o=function(m){return window.requestAnimationFrame(m)},x=function(m){return window.cancelAnimationFrame(m)});var g=0,A=new Map;function y(w){A.delete(w)}var M=function(m){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;g+=1;var v=g;function h(d){if(d===0)y(v),m();else{var _=o(function(){h(d-1)});A.set(v,_)}}return h(b),v};M.cancel=function(w){var m=A.get(w);return y(m),x(m)},N.Z=M},99182:function(oe,N,o){"use strict";o.d(N,{sQ:function(){return w},Yr:function(){return b}});var x=o(90484),g=o(67294),A=o(54323),y=o(38854);function M(h,d){typeof h=="function"?h(d):(0,x.Z)(h)==="object"&&h&&"current"in h&&(h.current=d)}function w(){for(var h=arguments.length,d=new Array(h),_=0;_<h;_++)d[_]=arguments[_];var p=d.filter(function(S){return S});return p.length<=1?p[0]:function(S){d.forEach(function(k){M(k,S)})}}function m(){for(var h=arguments.length,d=new Array(h),_=0;_<h;_++)d[_]=arguments[_];return useMemo(function(){return w.apply(void 0,d)},d,function(p,S){return p.length!==S.length||p.every(function(k,O){return k!==S[O]})})}function b(h){var d,_,p=(0,A.isMemo)(h)?h.type.type:h.type;return!(typeof p=="function"&&!((d=p.prototype)!==null&&d!==void 0&&d.render)||typeof h=="function"&&!((_=h.prototype)!==null&&_!==void 0&&_.render))}function v(h){return!isValidElement(h)||isFragment(h)?!1:b(h)}},1149:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(g,A){for(var y=g,M=0;M<A.length;M+=1){if(y==null)return;y=y[A[M]]}return y}},66943:function(oe,N,o){"use strict";o.d(N,{Z:function(){return m},T:function(){return d}});var x=o(90484),g=o(28991),A=o(85061),y=o(99809),M=o(1149);function w(_,p,S,k){if(!p.length)return S;var O=(0,y.Z)(p),F=O[0],D=O.slice(1),Z;return!_&&typeof F=="number"?Z=[]:Array.isArray(_)?Z=(0,A.Z)(_):Z=(0,g.Z)({},_),k&&S===void 0&&D.length===1?delete Z[F][D[0]]:Z[F]=w(Z[F],D,S,k),Z}function m(_,p,S){var k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return p.length&&k&&S===void 0&&!(0,M.Z)(_,p.slice(0,-1))?_:w(_,p,S,k)}function b(_){return(0,x.Z)(_)==="object"&&_!==null&&Object.getPrototypeOf(_)===Object.prototype}function v(_){return Array.isArray(_)?[]:{}}var h=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function d(){for(var _=arguments.length,p=new Array(_),S=0;S<_;S++)p[S]=arguments[S];var k=v(p[0]);return p.forEach(function(O){function F(D,Z){var W=new Set(Z),U=(0,M.Z)(O,D),L=Array.isArray(U);if(L||b(U)){if(!W.has(U)){W.add(U);var V=(0,M.Z)(k,D);L?k=m(k,D,[]):(!V||(0,x.Z)(V)!=="object")&&(k=m(k,D,v(U))),h(U).forEach(function($){F([].concat((0,A.Z)(D),[$]),W)})}}else k=m(k,D,U)}F([])}),k}},58115:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=o;function o(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},33116:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=o;function o(x,g){if(!x)return!1;if(x.contains)return x.contains(g);for(var A=g;A;){if(A===x)return!0;A=A.parentNode}return!1}},2410:function(oe,N,o){"use strict";var x=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.clearContainerCache=O,N.injectCSS=_,N.removeCSS=S,N.updateCSS=F;var g=x(o(58115)),A=x(o(33116)),y="data-rc-order",M="data-rc-priority",w="rc-util-key",m=new Map;function b(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Z=D.mark;return Z?Z.startsWith("data-")?Z:"data-".concat(Z):w}function v(D){if(D.attachTo)return D.attachTo;var Z=document.querySelector("head");return Z||document.body}function h(D){return D==="queue"?"prependQueue":D?"prepend":"append"}function d(D){return Array.from((m.get(D)||D).children).filter(function(Z){return Z.tagName==="STYLE"})}function _(D){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,g.default)())return null;var W=Z.csp,U=Z.prepend,L=Z.priority,V=L===void 0?0:L,$=h(U),G=$==="prependQueue",z=document.createElement("style");z.setAttribute(y,$),G&&V&&z.setAttribute(M,"".concat(V)),W!=null&&W.nonce&&(z.nonce=W==null?void 0:W.nonce),z.innerHTML=D;var K=v(Z),re=K.firstChild;if(U){if(G){var ne=d(K).filter(function(Q){if(!["prepend","prependQueue"].includes(Q.getAttribute(y)))return!1;var ue=Number(Q.getAttribute(M)||0);return V>=ue});if(ne.length)return K.insertBefore(z,ne[ne.length-1].nextSibling),z}K.insertBefore(z,re)}else K.appendChild(z);return z}function p(D){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=v(Z);return d(W).find(function(U){return U.getAttribute(b(Z))===D})}function S(D){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=p(D,Z);if(W){var U=v(Z);U.removeChild(W)}}function k(D,Z){var W=m.get(D);if(!W||!(0,A.default)(document,W)){var U=_("",Z),L=U.parentNode;m.set(D,L),D.removeChild(U)}}function O(){m.clear()}function F(D,Z){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},U=v(W);k(U,W);var L=p(Z,W);if(L){var V,$;if((V=W.csp)!==null&&V!==void 0&&V.nonce&&L.nonce!==(($=W.csp)===null||$===void 0?void 0:$.nonce)){var G;L.nonce=(G=W.csp)===null||G===void 0?void 0:G.nonce}return L.innerHTML!==D&&(L.innerHTML=D),L}var z=_(D,W);return z.setAttribute(b(W),Z),z}},23401:function(oe,N,o){"use strict";var x=o(20862).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=A;var g=x(o(67294));function A(y,M,w){var m=g.useRef({});return(!("value"in m.current)||w(m.current.condition,M))&&(m.current.value=y(),m.current.condition=M),m.current.value}},32033:function(oe,N,o){"use strict";var x=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=A;var g=x(o(81109));function A(y,M){var w=(0,g.default)({},y);return Array.isArray(M)&&M.forEach(function(m){delete w[m]}),w}},99872:function(oe,N,o){"use strict";var x=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.composeRef=m,N.fillRef=w,N.supportNodeRef=h,N.supportRef=v,N.useComposeRef=b;var g=x(o(50008)),A=o(67294),y=o(54323),M=x(o(23401));function w(d,_){typeof d=="function"?d(_):(0,g.default)(d)==="object"&&d&&"current"in d&&(d.current=_)}function m(){for(var d=arguments.length,_=new Array(d),p=0;p<d;p++)_[p]=arguments[p];var S=_.filter(function(k){return k});return S.length<=1?S[0]:function(k){_.forEach(function(O){w(O,k)})}}function b(){for(var d=arguments.length,_=new Array(d),p=0;p<d;p++)_[p]=arguments[p];return(0,M.default)(function(){return m.apply(void 0,_)},_,function(S,k){return S.length!==k.length||S.every(function(O,F){return O!==k[F]})})}function v(d){var _,p,S=(0,y.isMemo)(d)?d.type.type:d.type;return!(typeof S=="function"&&!((_=S.prototype)!==null&&_!==void 0&&_.render)||typeof d=="function"&&!((p=d.prototype)!==null&&p!==void 0&&p.render))}function h(d){return!(0,A.isValidElement)(d)||(0,y.isFragment)(d)?!1:v(d)}},76856:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=o;function o(x,g){for(var A=x,y=0;y<g.length;y+=1){if(A==null)return;A=A[g[y]]}return A}},85730:function(oe,N,o){"use strict";var x=o(95318).default;Object.defineProperty(N,"__esModule",{value:!0}),N.default=b,N.merge=_;var g=x(o(50008)),A=x(o(81109)),y=x(o(319)),M=x(o(68551)),w=x(o(76856));function m(p,S,k,O){if(!S.length)return k;var F=(0,M.default)(S),D=F[0],Z=F.slice(1),W;return!p&&typeof D=="number"?W=[]:Array.isArray(p)?W=(0,y.default)(p):W=(0,A.default)({},p),O&&k===void 0&&Z.length===1?delete W[D][Z[0]]:W[D]=m(W[D],Z,k,O),W}function b(p,S,k){var O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return S.length&&O&&k===void 0&&!(0,w.default)(p,S.slice(0,-1))?p:m(p,S,k,O)}function v(p){return(0,g.default)(p)==="object"&&p!==null&&Object.getPrototypeOf(p)===Object.prototype}function h(p){return Array.isArray(p)?[]:{}}var d=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function _(){for(var p=arguments.length,S=new Array(p),k=0;k<p;k++)S[k]=arguments[k];var O=h(S[0]);return S.forEach(function(F){function D(Z,W){var U=new Set(W),L=(0,w.default)(F,Z),V=Array.isArray(L);if(V||v(L)){if(!U.has(L)){U.add(L);var $=(0,w.default)(O,Z);V?O=b(O,Z,[]):(!$||(0,g.default)($)!=="object")&&(O=b(O,Z,h(L))),d(L).forEach(function(G){D([].concat((0,y.default)(Z),[G]),U)})}}else O=b(O,Z,L)}D([])}),O}},70716:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.call=w,N.default=void 0,N.note=y,N.noteOnce=b,N.preMessage=void 0,N.resetWarned=M,N.warning=A,N.warningOnce=m;var o={},x=[],g=function(d){x.push(d)};N.preMessage=g;function A(h,d){if(!1)var _}function y(h,d){if(!1)var _}function M(){o={}}function w(h,d,_){!d&&!o[_]&&(h(!1,_),o[_]=!0)}function m(h,d){w(A,h,d)}function b(h,d){w(y,h,d)}m.preMessage=g,m.resetWarned=M,m.noteOnce=b;var v=m;N.default=v},86566:function(oe,N,o){"use strict";o.d(N,{Z:function(){return Le}});var x=o(82195);function g(){return g=Object.assign?Object.assign.bind():function(ct){for(var at=1;at<arguments.length;at++){var jt=arguments[at];for(var St in jt)Object.prototype.hasOwnProperty.call(jt,St)&&(ct[St]=jt[St])}return ct},g.apply(this,arguments)}function A(ct,at){ct.prototype=Object.create(at.prototype),ct.prototype.constructor=ct,M(ct,at)}function y(ct){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(jt){return jt.__proto__||Object.getPrototypeOf(jt)},y(ct)}function M(ct,at){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(St,fn){return St.__proto__=fn,St},M(ct,at)}function w(){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(ct){return!1}}function m(ct,at,jt){return w()?m=Reflect.construct.bind():m=function(fn,Xt,Yt){var Rt=[null];Rt.push.apply(Rt,Xt);var Lt=Function.bind.apply(fn,Rt),ze=new Lt;return Yt&&M(ze,Yt.prototype),ze},m.apply(null,arguments)}function b(ct){return Function.toString.call(ct).indexOf("[native code]")!==-1}function v(ct){var at=typeof Map=="function"?new Map:void 0;return v=function(St){if(St===null||!b(St))return St;if(typeof St!="function")throw new TypeError("Super expression must either be null or a function");if(typeof at!="undefined"){if(at.has(St))return at.get(St);at.set(St,fn)}function fn(){return m(St,arguments,y(this).constructor)}return fn.prototype=Object.create(St.prototype,{constructor:{value:fn,enumerable:!1,writable:!0,configurable:!0}}),M(fn,St)},v(ct)}var h=/%[sdj%]/g,d=function(){};function _(ct){if(!ct||!ct.length)return null;var at={};return ct.forEach(function(jt){var St=jt.field;at[St]=at[St]||[],at[St].push(jt)}),at}function p(ct){for(var at=arguments.length,jt=new Array(at>1?at-1:0),St=1;St<at;St++)jt[St-1]=arguments[St];var fn=0,Xt=jt.length;if(typeof ct=="function")return ct.apply(null,jt);if(typeof ct=="string"){var Yt=ct.replace(h,function(Rt){if(Rt==="%%")return"%";if(fn>=Xt)return Rt;switch(Rt){case"%s":return String(jt[fn++]);case"%d":return Number(jt[fn++]);case"%j":try{return JSON.stringify(jt[fn++])}catch(Lt){return"[Circular]"}break;default:return Rt}});return Yt}return ct}function S(ct){return ct==="string"||ct==="url"||ct==="hex"||ct==="email"||ct==="date"||ct==="pattern"}function k(ct,at){return!!(ct==null||at==="array"&&Array.isArray(ct)&&!ct.length||S(at)&&typeof ct=="string"&&!ct)}function O(ct,at,jt){var St=[],fn=0,Xt=ct.length;function Yt(Rt){St.push.apply(St,Rt||[]),fn++,fn===Xt&&jt(St)}ct.forEach(function(Rt){at(Rt,Yt)})}function F(ct,at,jt){var St=0,fn=ct.length;function Xt(Yt){if(Yt&&Yt.length){jt(Yt);return}var Rt=St;St=St+1,Rt<fn?at(ct[Rt],Xt):jt([])}Xt([])}function D(ct){var at=[];return Object.keys(ct).forEach(function(jt){at.push.apply(at,ct[jt]||[])}),at}var Z=function(ct){A(at,ct);function at(jt,St){var fn;return fn=ct.call(this,"Async Validation Error")||this,fn.errors=jt,fn.fields=St,fn}return at}(v(Error));function W(ct,at,jt,St,fn){if(at.first){var Xt=new Promise(function(de,ot){var Et=function(Qt){return St(Qt),Qt.length?ot(new Z(Qt,_(Qt))):de(fn)},Ht=D(ct);F(Ht,jt,Et)});return Xt.catch(function(de){return de}),Xt}var Yt=at.firstFields===!0?Object.keys(ct):at.firstFields||[],Rt=Object.keys(ct),Lt=Rt.length,ze=0,rt=[],tt=new Promise(function(de,ot){var Et=function(Jt){if(rt.push.apply(rt,Jt),ze++,ze===Lt)return St(rt),rt.length?ot(new Z(rt,_(rt))):de(fn)};Rt.length||(St(rt),de(fn)),Rt.forEach(function(Ht){var Jt=ct[Ht];Yt.indexOf(Ht)!==-1?F(Jt,jt,Et):O(Jt,jt,Et)})});return tt.catch(function(de){return de}),tt}function U(ct){return!!(ct&&ct.message!==void 0)}function L(ct,at){for(var jt=ct,St=0;St<at.length;St++){if(jt==null)return jt;jt=jt[at[St]]}return jt}function V(ct,at){return function(jt){var St;return ct.fullFields?St=L(at,ct.fullFields):St=at[jt.field||ct.fullField],U(jt)?(jt.field=jt.field||ct.fullField,jt.fieldValue=St,jt):{message:typeof jt=="function"?jt():jt,fieldValue:St,field:jt.field||ct.fullField}}}function $(ct,at){if(at){for(var jt in at)if(at.hasOwnProperty(jt)){var St=at[jt];typeof St=="object"&&typeof ct[jt]=="object"?ct[jt]=g({},ct[jt],St):ct[jt]=St}}return ct}var G=function(at,jt,St,fn,Xt,Yt){at.required&&(!St.hasOwnProperty(at.field)||k(jt,Yt||at.type))&&fn.push(p(Xt.messages.required,at.fullField))},z=function(at,jt,St,fn,Xt){(/^\s+$/.test(jt)||jt==="")&&fn.push(p(Xt.messages.whitespace,at.fullField))},K,re=function(){if(K)return K;var at="[a-fA-F\\d:]",jt=function(rn){return rn&&rn.includeBoundaries?"(?:(?<=\\s|^)(?="+at+")|(?<="+at+")(?=\\s|$))":""},St="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",fn="[a-fA-F\\d]{1,4}",Xt=(`
|
||
(?:
|
||
(?:`+fn+":){7}(?:"+fn+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||
(?:`+fn+":){6}(?:"+St+"|:"+fn+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
||
(?:`+fn+":){5}(?::"+St+"|(?::"+fn+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
||
(?:`+fn+":){4}(?:(?::"+fn+"){0,1}:"+St+"|(?::"+fn+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
||
(?:`+fn+":){3}(?:(?::"+fn+"){0,2}:"+St+"|(?::"+fn+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
||
(?:`+fn+":){2}(?:(?::"+fn+"){0,3}:"+St+"|(?::"+fn+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||
(?:`+fn+":){1}(?:(?::"+fn+"){0,4}:"+St+"|(?::"+fn+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||
(?::(?:(?::`+fn+"){0,5}:"+St+"|(?::"+fn+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),Yt=new RegExp("(?:^"+St+"$)|(?:^"+Xt+"$)"),Rt=new RegExp("^"+St+"$"),Lt=new RegExp("^"+Xt+"$"),ze=function(rn){return rn&&rn.exact?Yt:new RegExp("(?:"+jt(rn)+St+jt(rn)+")|(?:"+jt(rn)+Xt+jt(rn)+")","g")};ze.v4=function(qt){return qt&&qt.exact?Rt:new RegExp(""+jt(qt)+St+jt(qt),"g")},ze.v6=function(qt){return qt&&qt.exact?Lt:new RegExp(""+jt(qt)+Xt+jt(qt),"g")};var rt="(?:(?:[a-z]+:)?//)",tt="(?:\\S+(?::\\S*)?@)?",de=ze.v4().source,ot=ze.v6().source,Et="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",Ht="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",Jt="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",Qt="(?::\\d{2,5})?",an='(?:[/?#][^\\s"]*)?',Un="(?:"+rt+"|www\\.)"+tt+"(?:localhost|"+de+"|"+ot+"|"+Et+Ht+Jt+")"+Qt+an;return K=new RegExp("(?:^"+Un+"$)","i"),K},ne={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Q={integer:function(at){return Q.number(at)&&parseInt(at,10)===at},float:function(at){return Q.number(at)&&!Q.integer(at)},array:function(at){return Array.isArray(at)},regexp:function(at){if(at instanceof RegExp)return!0;try{return!!new RegExp(at)}catch(jt){return!1}},date:function(at){return typeof at.getTime=="function"&&typeof at.getMonth=="function"&&typeof at.getYear=="function"&&!isNaN(at.getTime())},number:function(at){return isNaN(at)?!1:typeof at=="number"},object:function(at){return typeof at=="object"&&!Q.array(at)},method:function(at){return typeof at=="function"},email:function(at){return typeof at=="string"&&at.length<=320&&!!at.match(ne.email)},url:function(at){return typeof at=="string"&&at.length<=2048&&!!at.match(re())},hex:function(at){return typeof at=="string"&&!!at.match(ne.hex)}},ue=function(at,jt,St,fn,Xt){if(at.required&&jt===void 0){G(at,jt,St,fn,Xt);return}var Yt=["integer","float","array","regexp","object","method","email","number","date","url","hex"],Rt=at.type;Yt.indexOf(Rt)>-1?Q[Rt](jt)||fn.push(p(Xt.messages.types[Rt],at.fullField,at.type)):Rt&&typeof jt!==at.type&&fn.push(p(Xt.messages.types[Rt],at.fullField,at.type))},he=function(at,jt,St,fn,Xt){var Yt=typeof at.len=="number",Rt=typeof at.min=="number",Lt=typeof at.max=="number",ze=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rt=jt,tt=null,de=typeof jt=="number",ot=typeof jt=="string",Et=Array.isArray(jt);if(de?tt="number":ot?tt="string":Et&&(tt="array"),!tt)return!1;Et&&(rt=jt.length),ot&&(rt=jt.replace(ze,"_").length),Yt?rt!==at.len&&fn.push(p(Xt.messages[tt].len,at.fullField,at.len)):Rt&&!Lt&&rt<at.min?fn.push(p(Xt.messages[tt].min,at.fullField,at.min)):Lt&&!Rt&&rt>at.max?fn.push(p(Xt.messages[tt].max,at.fullField,at.max)):Rt&&Lt&&(rt<at.min||rt>at.max)&&fn.push(p(Xt.messages[tt].range,at.fullField,at.min,at.max))},Ee="enum",ce=function(at,jt,St,fn,Xt){at[Ee]=Array.isArray(at[Ee])?at[Ee]:[],at[Ee].indexOf(jt)===-1&&fn.push(p(Xt.messages[Ee],at.fullField,at[Ee].join(", ")))},ve=function(at,jt,St,fn,Xt){if(at.pattern){if(at.pattern instanceof RegExp)at.pattern.lastIndex=0,at.pattern.test(jt)||fn.push(p(Xt.messages.pattern.mismatch,at.fullField,jt,at.pattern));else if(typeof at.pattern=="string"){var Yt=new RegExp(at.pattern);Yt.test(jt)||fn.push(p(Xt.messages.pattern.mismatch,at.fullField,jt,at.pattern))}}},fe={required:G,whitespace:z,type:ue,range:he,enum:ce,pattern:ve},we=function(at,jt,St,fn,Xt){var Yt=[],Rt=at.required||!at.required&&fn.hasOwnProperty(at.field);if(Rt){if(k(jt,"string")&&!at.required)return St();fe.required(at,jt,fn,Yt,Xt,"string"),k(jt,"string")||(fe.type(at,jt,fn,Yt,Xt),fe.range(at,jt,fn,Yt,Xt),fe.pattern(at,jt,fn,Yt,Xt),at.whitespace===!0&&fe.whitespace(at,jt,fn,Yt,Xt))}St(Yt)},me=function(at,jt,St,fn,Xt){var Yt=[],Rt=at.required||!at.required&&fn.hasOwnProperty(at.field);if(Rt){if(k(jt)&&!at.required)return St();fe.required(at,jt,fn,Yt,Xt),jt!==void 0&&fe.type(at,jt,fn,Yt,Xt)}St(Yt)},Pe=function(at,jt,St,fn,Xt){var Yt=[],Rt=at.required||!at.required&&fn.hasOwnProperty(at.field);if(Rt){if(jt===""&&(jt=void 0),k(jt)&&!at.required)return St();fe.required(at,jt,fn,Yt,Xt),jt!==void 0&&(fe.type(at,jt,fn,Yt,Xt),fe.range(at,jt,fn,Yt,Xt))}St(Yt)},pe=function(at,jt,St,fn,Xt){var Yt=[],Rt=at.required||!at.required&&fn.hasOwnProperty(at.field);if(Rt){if(k(jt)&&!at.required)return St();fe.required(at,jt,fn,Yt,Xt),jt!==void 0&&fe.type(at,jt,fn,Yt,Xt)}St(Yt)},Ie=function(at,jt,St,fn,Xt){var Yt=[],Rt=at.required||!at.required&&fn.hasOwnProperty(at.field);if(Rt){if(k(jt)&&!at.required)return St();fe.required(at,jt,fn,Yt,Xt),k(jt)||fe.type(at,jt,fn,Yt,Xt)}St(Yt)},Je=function(at,jt,St,fn,Xt){var Yt=[],Rt=at.required||!at.required&&fn.hasOwnProperty(at.field);if(Rt){if(k(jt)&&!at.required)return St();fe.required(at,jt,fn,Yt,Xt),jt!==void 0&&(fe.type(at,jt,fn,Yt,Xt),fe.range(at,jt,fn,Yt,Xt))}St(Yt)},ke=function(at,jt,St,fn,Xt){var Yt=[],Rt=at.required||!at.required&&fn.hasOwnProperty(at.field);if(Rt){if(k(jt)&&!at.required)return St();fe.required(at,jt,fn,Yt,Xt),jt!==void 0&&(fe.type(at,jt,fn,Yt,Xt),fe.range(at,jt,fn,Yt,Xt))}St(Yt)},De=function(at,jt,St,fn,Xt){var Yt=[],Rt=at.required||!at.required&&fn.hasOwnProperty(at.field);if(Rt){if(jt==null&&!at.required)return St();fe.required(at,jt,fn,Yt,Xt,"array"),jt!=null&&(fe.type(at,jt,fn,Yt,Xt),fe.range(at,jt,fn,Yt,Xt))}St(Yt)},Fe=function(at,jt,St,fn,Xt){var Yt=[],Rt=at.required||!at.required&&fn.hasOwnProperty(at.field);if(Rt){if(k(jt)&&!at.required)return St();fe.required(at,jt,fn,Yt,Xt),jt!==void 0&&fe.type(at,jt,fn,Yt,Xt)}St(Yt)},Qe="enum",qe=function(at,jt,St,fn,Xt){var Yt=[],Rt=at.required||!at.required&&fn.hasOwnProperty(at.field);if(Rt){if(k(jt)&&!at.required)return St();fe.required(at,jt,fn,Yt,Xt),jt!==void 0&&fe[Qe](at,jt,fn,Yt,Xt)}St(Yt)},et=function(at,jt,St,fn,Xt){var Yt=[],Rt=at.required||!at.required&&fn.hasOwnProperty(at.field);if(Rt){if(k(jt,"string")&&!at.required)return St();fe.required(at,jt,fn,Yt,Xt),k(jt,"string")||fe.pattern(at,jt,fn,Yt,Xt)}St(Yt)},dt=function(at,jt,St,fn,Xt){var Yt=[],Rt=at.required||!at.required&&fn.hasOwnProperty(at.field);if(Rt){if(k(jt,"date")&&!at.required)return St();if(fe.required(at,jt,fn,Yt,Xt),!k(jt,"date")){var Lt;jt instanceof Date?Lt=jt:Lt=new Date(jt),fe.type(at,Lt,fn,Yt,Xt),Lt&&fe.range(at,Lt.getTime(),fn,Yt,Xt)}}St(Yt)},Ke=function(at,jt,St,fn,Xt){var Yt=[],Rt=Array.isArray(jt)?"array":typeof jt;fe.required(at,jt,fn,Yt,Xt,Rt),St(Yt)},Ge=function(at,jt,St,fn,Xt){var Yt=at.type,Rt=[],Lt=at.required||!at.required&&fn.hasOwnProperty(at.field);if(Lt){if(k(jt,Yt)&&!at.required)return St();fe.required(at,jt,fn,Rt,Xt,Yt),k(jt,Yt)||fe.type(at,jt,fn,Rt,Xt)}St(Rt)},wt=function(at,jt,St,fn,Xt){var Yt=[],Rt=at.required||!at.required&&fn.hasOwnProperty(at.field);if(Rt){if(k(jt)&&!at.required)return St();fe.required(at,jt,fn,Yt,Xt)}St(Yt)},Vt={string:we,method:me,number:Pe,boolean:pe,regexp:Ie,integer:Je,float:ke,array:De,object:Fe,enum:qe,pattern:et,date:dt,url:Ge,hex:Ge,email:Ge,required:Ke,any:wt};function gt(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var at=JSON.parse(JSON.stringify(this));return at.clone=this.clone,at}}}var it=gt(),Le=function(){function ct(jt){this.rules=null,this._messages=it,this.define(jt)}var at=ct.prototype;return at.define=function(St){var fn=this;if(!St)throw new Error("Cannot configure a schema with no rules");if(typeof St!="object"||Array.isArray(St))throw new Error("Rules must be an object");this.rules={},Object.keys(St).forEach(function(Xt){var Yt=St[Xt];fn.rules[Xt]=Array.isArray(Yt)?Yt:[Yt]})},at.messages=function(St){return St&&(this._messages=$(gt(),St)),this._messages},at.validate=function(St,fn,Xt){var Yt=this;fn===void 0&&(fn={}),Xt===void 0&&(Xt=function(){});var Rt=St,Lt=fn,ze=Xt;if(typeof Lt=="function"&&(ze=Lt,Lt={}),!this.rules||Object.keys(this.rules).length===0)return ze&&ze(null,Rt),Promise.resolve(Rt);function rt(Ht){var Jt=[],Qt={};function an(qt){if(Array.isArray(qt)){var rn;Jt=(rn=Jt).concat.apply(rn,qt)}else Jt.push(qt)}for(var Un=0;Un<Ht.length;Un++)an(Ht[Un]);Jt.length?(Qt=_(Jt),ze(Jt,Qt)):ze(null,Rt)}if(Lt.messages){var tt=this.messages();tt===it&&(tt=gt()),$(tt,Lt.messages),Lt.messages=tt}else Lt.messages=this.messages();var de={},ot=Lt.keys||Object.keys(this.rules);ot.forEach(function(Ht){var Jt=Yt.rules[Ht],Qt=Rt[Ht];Jt.forEach(function(an){var Un=an;typeof Un.transform=="function"&&(Rt===St&&(Rt=g({},Rt)),Qt=Rt[Ht]=Un.transform(Qt)),typeof Un=="function"?Un={validator:Un}:Un=g({},Un),Un.validator=Yt.getValidationMethod(Un),!!Un.validator&&(Un.field=Ht,Un.fullField=Un.fullField||Ht,Un.type=Yt.getType(Un),de[Ht]=de[Ht]||[],de[Ht].push({rule:Un,value:Qt,source:Rt,field:Ht}))})});var Et={};return W(de,Lt,function(Ht,Jt){var Qt=Ht.rule,an=(Qt.type==="object"||Qt.type==="array")&&(typeof Qt.fields=="object"||typeof Qt.defaultField=="object");an=an&&(Qt.required||!Qt.required&&Ht.value),Qt.field=Ht.field;function Un(cn,er){return g({},er,{fullField:Qt.fullField+"."+cn,fullFields:Qt.fullFields?[].concat(Qt.fullFields,[cn]):[cn]})}function qt(cn){cn===void 0&&(cn=[]);var er=Array.isArray(cn)?cn:[cn];!Lt.suppressWarning&&er.length&&ct.warning("async-validator:",er),er.length&&Qt.message!==void 0&&(er=[].concat(Qt.message));var rr=er.map(V(Qt,Rt));if(Lt.first&&rr.length)return Et[Qt.field]=1,Jt(rr);if(!an)Jt(rr);else{if(Qt.required&&!Ht.value)return Qt.message!==void 0?rr=[].concat(Qt.message).map(V(Qt,Rt)):Lt.error&&(rr=[Lt.error(Qt,p(Lt.messages.required,Qt.field))]),Jt(rr);var nt={};Qt.defaultField&&Object.keys(Ht.value).map(function(ut){nt[ut]=Qt.defaultField}),nt=g({},nt,Ht.rule.fields);var lr={};Object.keys(nt).forEach(function(ut){var bt=nt[ut],We=Array.isArray(bt)?bt:[bt];lr[ut]=We.map(Un.bind(null,ut))});var Hn=new ct(lr);Hn.messages(Lt.messages),Ht.rule.options&&(Ht.rule.options.messages=Lt.messages,Ht.rule.options.error=Lt.error),Hn.validate(Ht.value,Ht.rule.options||Lt,function(ut){var bt=[];rr&&rr.length&&bt.push.apply(bt,rr),ut&&ut.length&&bt.push.apply(bt,ut),Jt(bt.length?bt:null)})}}var rn;if(Qt.asyncValidator)rn=Qt.asyncValidator(Qt,Ht.value,qt,Ht.source,Lt);else if(Qt.validator){try{rn=Qt.validator(Qt,Ht.value,qt,Ht.source,Lt)}catch(cn){console.error==null||console.error(cn),Lt.suppressValidatorError||setTimeout(function(){throw cn},0),qt(cn.message)}rn===!0?qt():rn===!1?qt(typeof Qt.message=="function"?Qt.message(Qt.fullField||Qt.field):Qt.message||(Qt.fullField||Qt.field)+" fails"):rn instanceof Array?qt(rn):rn instanceof Error&&qt(rn.message)}rn&&rn.then&&rn.then(function(){return qt()},function(cn){return qt(cn)})},function(Ht){rt(Ht)},Rt)},at.getType=function(St){if(St.type===void 0&&St.pattern instanceof RegExp&&(St.type="pattern"),typeof St.validator!="function"&&St.type&&!Vt.hasOwnProperty(St.type))throw new Error(p("Unknown rule type %s",St.type));return St.type||"string"},at.getValidationMethod=function(St){if(typeof St.validator=="function")return St.validator;var fn=Object.keys(St),Xt=fn.indexOf("message");return Xt!==-1&&fn.splice(Xt,1),fn.length===1&&fn[0]==="required"?Vt.required:Vt[this.getType(St)]||void 0},ct}();Le.register=function(at,jt){if(typeof jt!="function")throw new Error("Cannot register a validator by type, validator is not a function");Vt[at]=jt},Le.warning=d,Le.messages=it,Le.validators=Vt},11614:function(oe,N){"use strict";N.byteLength=m,N.toByteArray=v,N.fromByteArray=_;for(var o=[],x=[],g=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,M=A.length;y<M;++y)o[y]=A[y],x[A.charCodeAt(y)]=y;x["-".charCodeAt(0)]=62,x["_".charCodeAt(0)]=63;function w(p){var S=p.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=p.indexOf("=");k===-1&&(k=S);var O=k===S?0:4-k%4;return[k,O]}function m(p){var S=w(p),k=S[0],O=S[1];return(k+O)*3/4-O}function b(p,S,k){return(S+k)*3/4-k}function v(p){var S,k=w(p),O=k[0],F=k[1],D=new g(b(p,O,F)),Z=0,W=F>0?O-4:O,U;for(U=0;U<W;U+=4)S=x[p.charCodeAt(U)]<<18|x[p.charCodeAt(U+1)]<<12|x[p.charCodeAt(U+2)]<<6|x[p.charCodeAt(U+3)],D[Z++]=S>>16&255,D[Z++]=S>>8&255,D[Z++]=S&255;return F===2&&(S=x[p.charCodeAt(U)]<<2|x[p.charCodeAt(U+1)]>>4,D[Z++]=S&255),F===1&&(S=x[p.charCodeAt(U)]<<10|x[p.charCodeAt(U+1)]<<4|x[p.charCodeAt(U+2)]>>2,D[Z++]=S>>8&255,D[Z++]=S&255),D}function h(p){return o[p>>18&63]+o[p>>12&63]+o[p>>6&63]+o[p&63]}function d(p,S,k){for(var O,F=[],D=S;D<k;D+=3)O=(p[D]<<16&16711680)+(p[D+1]<<8&65280)+(p[D+2]&255),F.push(h(O));return F.join("")}function _(p){for(var S,k=p.length,O=k%3,F=[],D=16383,Z=0,W=k-O;Z<W;Z+=D)F.push(d(p,Z,Z+D>W?W:Z+D));return O===1?(S=p[k-1],F.push(o[S>>2]+o[S<<4&63]+"==")):O===2&&(S=(p[k-2]<<8)+p[k-1],F.push(o[S>>10]+o[S>>4&63]+o[S<<2&63]+"=")),F.join("")}},93509:function(oe,N,o){"use strict";var x=o(4154),g=o(95775),A=g(x("String.prototype.indexOf"));oe.exports=function(M,w){var m=x(M,!!w);return typeof m=="function"&&A(M,".prototype.")>-1?g(m):m}},95775:function(oe,N,o){"use strict";var x=o(47137),g=o(4154),A=g("%Function.prototype.apply%"),y=g("%Function.prototype.call%"),M=g("%Reflect.apply%",!0)||x.call(y,A),w=g("%Object.getOwnPropertyDescriptor%",!0),m=g("%Object.defineProperty%",!0),b=g("%Math.max%");if(m)try{m({},"a",{value:1})}catch(h){m=null}oe.exports=function(d){var _=M(x,y,arguments);if(w&&m){var p=w(_,"length");p.configurable&&m(_,"length",{value:1+b(0,d.length-(arguments.length-1))})}return _};var v=function(){return M(x,A,arguments)};m?m(oe.exports,"apply",{value:v}):oe.exports.apply=v},35510:function(oe,N){var o,x;/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/(function(){"use strict";var g={}.hasOwnProperty,A="[native code]";function y(){for(var M=[],w=0;w<arguments.length;w++){var m=arguments[w];if(!!m){var b=typeof m;if(b==="string"||b==="number")M.push(m);else if(Array.isArray(m)){if(m.length){var v=y.apply(null,m);v&&M.push(v)}}else if(b==="object"){if(m.toString!==Object.prototype.toString&&!m.toString.toString().includes("[native code]")){M.push(m.toString());continue}for(var h in m)g.call(m,h)&&m[h]&&M.push(h)}}}return M.join(" ")}oe.exports?(y.default=y,oe.exports=y):(o=[],x=function(){return y}.apply(N,o),x!==void 0&&(oe.exports=x))})()},5922:function(oe,N,o){var x=o(52382),g={};for(var A in x)x.hasOwnProperty(A)&&(g[x[A]]=A);var y=oe.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var M in y)if(y.hasOwnProperty(M)){if(!("channels"in y[M]))throw new Error("missing channels property: "+M);if(!("labels"in y[M]))throw new Error("missing channel labels property: "+M);if(y[M].labels.length!==y[M].channels)throw new Error("channel and label counts mismatch: "+M);var w=y[M].channels,m=y[M].labels;delete y[M].channels,delete y[M].labels,Object.defineProperty(y[M],"channels",{value:w}),Object.defineProperty(y[M],"labels",{value:m})}y.rgb.hsl=function(v){var h=v[0]/255,d=v[1]/255,_=v[2]/255,p=Math.min(h,d,_),S=Math.max(h,d,_),k=S-p,O,F,D;return S===p?O=0:h===S?O=(d-_)/k:d===S?O=2+(_-h)/k:_===S&&(O=4+(h-d)/k),O=Math.min(O*60,360),O<0&&(O+=360),D=(p+S)/2,S===p?F=0:D<=.5?F=k/(S+p):F=k/(2-S-p),[O,F*100,D*100]},y.rgb.hsv=function(v){var h,d,_,p,S,k=v[0]/255,O=v[1]/255,F=v[2]/255,D=Math.max(k,O,F),Z=D-Math.min(k,O,F),W=function(L){return(D-L)/6/Z+1/2};return Z===0?p=S=0:(S=Z/D,h=W(k),d=W(O),_=W(F),k===D?p=_-d:O===D?p=1/3+h-_:F===D&&(p=2/3+d-h),p<0?p+=1:p>1&&(p-=1)),[p*360,S*100,D*100]},y.rgb.hwb=function(v){var h=v[0],d=v[1],_=v[2],p=y.rgb.hsl(v)[0],S=1/255*Math.min(h,Math.min(d,_));return _=1-1/255*Math.max(h,Math.max(d,_)),[p,S*100,_*100]},y.rgb.cmyk=function(v){var h=v[0]/255,d=v[1]/255,_=v[2]/255,p,S,k,O;return O=Math.min(1-h,1-d,1-_),p=(1-h-O)/(1-O)||0,S=(1-d-O)/(1-O)||0,k=(1-_-O)/(1-O)||0,[p*100,S*100,k*100,O*100]};function b(v,h){return Math.pow(v[0]-h[0],2)+Math.pow(v[1]-h[1],2)+Math.pow(v[2]-h[2],2)}y.rgb.keyword=function(v){var h=g[v];if(h)return h;var d=Infinity,_;for(var p in x)if(x.hasOwnProperty(p)){var S=x[p],k=b(v,S);k<d&&(d=k,_=p)}return _},y.keyword.rgb=function(v){return x[v]},y.rgb.xyz=function(v){var h=v[0]/255,d=v[1]/255,_=v[2]/255;h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92,_=_>.04045?Math.pow((_+.055)/1.055,2.4):_/12.92;var p=h*.4124+d*.3576+_*.1805,S=h*.2126+d*.7152+_*.0722,k=h*.0193+d*.1192+_*.9505;return[p*100,S*100,k*100]},y.rgb.lab=function(v){var h=y.rgb.xyz(v),d=h[0],_=h[1],p=h[2],S,k,O;return d/=95.047,_/=100,p/=108.883,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,_=_>.008856?Math.pow(_,1/3):7.787*_+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,S=116*_-16,k=500*(d-_),O=200*(_-p),[S,k,O]},y.hsl.rgb=function(v){var h=v[0]/360,d=v[1]/100,_=v[2]/100,p,S,k,O,F;if(d===0)return F=_*255,[F,F,F];_<.5?S=_*(1+d):S=_+d-_*d,p=2*_-S,O=[0,0,0];for(var D=0;D<3;D++)k=h+1/3*-(D-1),k<0&&k++,k>1&&k--,6*k<1?F=p+(S-p)*6*k:2*k<1?F=S:3*k<2?F=p+(S-p)*(2/3-k)*6:F=p,O[D]=F*255;return O},y.hsl.hsv=function(v){var h=v[0],d=v[1]/100,_=v[2]/100,p=d,S=Math.max(_,.01),k,O;return _*=2,d*=_<=1?_:2-_,p*=S<=1?S:2-S,O=(_+d)/2,k=_===0?2*p/(S+p):2*d/(_+d),[h,k*100,O*100]},y.hsv.rgb=function(v){var h=v[0]/60,d=v[1]/100,_=v[2]/100,p=Math.floor(h)%6,S=h-Math.floor(h),k=255*_*(1-d),O=255*_*(1-d*S),F=255*_*(1-d*(1-S));switch(_*=255,p){case 0:return[_,F,k];case 1:return[O,_,k];case 2:return[k,_,F];case 3:return[k,O,_];case 4:return[F,k,_];case 5:return[_,k,O]}},y.hsv.hsl=function(v){var h=v[0],d=v[1]/100,_=v[2]/100,p=Math.max(_,.01),S,k,O;return O=(2-d)*_,S=(2-d)*p,k=d*p,k/=S<=1?S:2-S,k=k||0,O/=2,[h,k*100,O*100]},y.hwb.rgb=function(v){var h=v[0]/360,d=v[1]/100,_=v[2]/100,p=d+_,S,k,O,F;p>1&&(d/=p,_/=p),S=Math.floor(6*h),k=1-_,O=6*h-S,(S&1)!=0&&(O=1-O),F=d+O*(k-d);var D,Z,W;switch(S){default:case 6:case 0:D=k,Z=F,W=d;break;case 1:D=F,Z=k,W=d;break;case 2:D=d,Z=k,W=F;break;case 3:D=d,Z=F,W=k;break;case 4:D=F,Z=d,W=k;break;case 5:D=k,Z=d,W=F;break}return[D*255,Z*255,W*255]},y.cmyk.rgb=function(v){var h=v[0]/100,d=v[1]/100,_=v[2]/100,p=v[3]/100,S,k,O;return S=1-Math.min(1,h*(1-p)+p),k=1-Math.min(1,d*(1-p)+p),O=1-Math.min(1,_*(1-p)+p),[S*255,k*255,O*255]},y.xyz.rgb=function(v){var h=v[0]/100,d=v[1]/100,_=v[2]/100,p,S,k;return p=h*3.2406+d*-1.5372+_*-.4986,S=h*-.9689+d*1.8758+_*.0415,k=h*.0557+d*-.204+_*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,S=S>.0031308?1.055*Math.pow(S,1/2.4)-.055:S*12.92,k=k>.0031308?1.055*Math.pow(k,1/2.4)-.055:k*12.92,p=Math.min(Math.max(0,p),1),S=Math.min(Math.max(0,S),1),k=Math.min(Math.max(0,k),1),[p*255,S*255,k*255]},y.xyz.lab=function(v){var h=v[0],d=v[1],_=v[2],p,S,k;return h/=95.047,d/=100,_/=108.883,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,_=_>.008856?Math.pow(_,1/3):7.787*_+16/116,p=116*d-16,S=500*(h-d),k=200*(d-_),[p,S,k]},y.lab.xyz=function(v){var h=v[0],d=v[1],_=v[2],p,S,k;S=(h+16)/116,p=d/500+S,k=S-_/200;var O=Math.pow(S,3),F=Math.pow(p,3),D=Math.pow(k,3);return S=O>.008856?O:(S-16/116)/7.787,p=F>.008856?F:(p-16/116)/7.787,k=D>.008856?D:(k-16/116)/7.787,p*=95.047,S*=100,k*=108.883,[p,S,k]},y.lab.lch=function(v){var h=v[0],d=v[1],_=v[2],p,S,k;return p=Math.atan2(_,d),S=p*360/2/Math.PI,S<0&&(S+=360),k=Math.sqrt(d*d+_*_),[h,k,S]},y.lch.lab=function(v){var h=v[0],d=v[1],_=v[2],p,S,k;return k=_/360*2*Math.PI,p=d*Math.cos(k),S=d*Math.sin(k),[h,p,S]},y.rgb.ansi16=function(v){var h=v[0],d=v[1],_=v[2],p=1 in arguments?arguments[1]:y.rgb.hsv(v)[2];if(p=Math.round(p/50),p===0)return 30;var S=30+(Math.round(_/255)<<2|Math.round(d/255)<<1|Math.round(h/255));return p===2&&(S+=60),S},y.hsv.ansi16=function(v){return y.rgb.ansi16(y.hsv.rgb(v),v[2])},y.rgb.ansi256=function(v){var h=v[0],d=v[1],_=v[2];if(h===d&&d===_)return h<8?16:h>248?231:Math.round((h-8)/247*24)+232;var p=16+36*Math.round(h/255*5)+6*Math.round(d/255*5)+Math.round(_/255*5);return p},y.ansi16.rgb=function(v){var h=v%10;if(h===0||h===7)return v>50&&(h+=3.5),h=h/10.5*255,[h,h,h];var d=(~~(v>50)+1)*.5,_=(h&1)*d*255,p=(h>>1&1)*d*255,S=(h>>2&1)*d*255;return[_,p,S]},y.ansi256.rgb=function(v){if(v>=232){var h=(v-232)*10+8;return[h,h,h]}v-=16;var d,_=Math.floor(v/36)/5*255,p=Math.floor((d=v%36)/6)/5*255,S=d%6/5*255;return[_,p,S]},y.rgb.hex=function(v){var h=((Math.round(v[0])&255)<<16)+((Math.round(v[1])&255)<<8)+(Math.round(v[2])&255),d=h.toString(16).toUpperCase();return"000000".substring(d.length)+d},y.hex.rgb=function(v){var h=v.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!h)return[0,0,0];var d=h[0];h[0].length===3&&(d=d.split("").map(function(O){return O+O}).join(""));var _=parseInt(d,16),p=_>>16&255,S=_>>8&255,k=_&255;return[p,S,k]},y.rgb.hcg=function(v){var h=v[0]/255,d=v[1]/255,_=v[2]/255,p=Math.max(Math.max(h,d),_),S=Math.min(Math.min(h,d),_),k=p-S,O,F;return k<1?O=S/(1-k):O=0,k<=0?F=0:p===h?F=(d-_)/k%6:p===d?F=2+(_-h)/k:F=4+(h-d)/k+4,F/=6,F%=1,[F*360,k*100,O*100]},y.hsl.hcg=function(v){var h=v[1]/100,d=v[2]/100,_=1,p=0;return d<.5?_=2*h*d:_=2*h*(1-d),_<1&&(p=(d-.5*_)/(1-_)),[v[0],_*100,p*100]},y.hsv.hcg=function(v){var h=v[1]/100,d=v[2]/100,_=h*d,p=0;return _<1&&(p=(d-_)/(1-_)),[v[0],_*100,p*100]},y.hcg.rgb=function(v){var h=v[0]/360,d=v[1]/100,_=v[2]/100;if(d===0)return[_*255,_*255,_*255];var p=[0,0,0],S=h%1*6,k=S%1,O=1-k,F=0;switch(Math.floor(S)){case 0:p[0]=1,p[1]=k,p[2]=0;break;case 1:p[0]=O,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=k;break;case 3:p[0]=0,p[1]=O,p[2]=1;break;case 4:p[0]=k,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=O}return F=(1-d)*_,[(d*p[0]+F)*255,(d*p[1]+F)*255,(d*p[2]+F)*255]},y.hcg.hsv=function(v){var h=v[1]/100,d=v[2]/100,_=h+d*(1-h),p=0;return _>0&&(p=h/_),[v[0],p*100,_*100]},y.hcg.hsl=function(v){var h=v[1]/100,d=v[2]/100,_=d*(1-h)+.5*h,p=0;return _>0&&_<.5?p=h/(2*_):_>=.5&&_<1&&(p=h/(2*(1-_))),[v[0],p*100,_*100]},y.hcg.hwb=function(v){var h=v[1]/100,d=v[2]/100,_=h+d*(1-h);return[v[0],(_-h)*100,(1-_)*100]},y.hwb.hcg=function(v){var h=v[1]/100,d=v[2]/100,_=1-d,p=_-h,S=0;return p<1&&(S=(_-p)/(1-p)),[v[0],p*100,S*100]},y.apple.rgb=function(v){return[v[0]/65535*255,v[1]/65535*255,v[2]/65535*255]},y.rgb.apple=function(v){return[v[0]/255*65535,v[1]/255*65535,v[2]/255*65535]},y.gray.rgb=function(v){return[v[0]/100*255,v[0]/100*255,v[0]/100*255]},y.gray.hsl=y.gray.hsv=function(v){return[0,0,v[0]]},y.gray.hwb=function(v){return[0,100,v[0]]},y.gray.cmyk=function(v){return[0,0,0,v[0]]},y.gray.lab=function(v){return[v[0],0,0]},y.gray.hex=function(v){var h=Math.round(v[0]/100*255)&255,d=(h<<16)+(h<<8)+h,_=d.toString(16).toUpperCase();return"000000".substring(_.length)+_},y.rgb.gray=function(v){var h=(v[0]+v[1]+v[2])/3;return[h/255*100]}},36553:function(oe,N,o){var x=o(5922),g=o(55467),A={},y=Object.keys(x);function M(m){var b=function(h){return h==null?h:(arguments.length>1&&(h=Array.prototype.slice.call(arguments)),m(h))};return"conversion"in m&&(b.conversion=m.conversion),b}function w(m){var b=function(h){if(h==null)return h;arguments.length>1&&(h=Array.prototype.slice.call(arguments));var d=m(h);if(typeof d=="object")for(var _=d.length,p=0;p<_;p++)d[p]=Math.round(d[p]);return d};return"conversion"in m&&(b.conversion=m.conversion),b}y.forEach(function(m){A[m]={},Object.defineProperty(A[m],"channels",{value:x[m].channels}),Object.defineProperty(A[m],"labels",{value:x[m].labels});var b=g(m),v=Object.keys(b);v.forEach(function(h){var d=b[h];A[m][h]=w(d),A[m][h].raw=M(d)})}),oe.exports=A},55467:function(oe,N,o){var x=o(5922);function g(){for(var w={},m=Object.keys(x),b=m.length,v=0;v<b;v++)w[m[v]]={distance:-1,parent:null};return w}function A(w){var m=g(),b=[w];for(m[w].distance=0;b.length;)for(var v=b.pop(),h=Object.keys(x[v]),d=h.length,_=0;_<d;_++){var p=h[_],S=m[p];S.distance===-1&&(S.distance=m[v].distance+1,S.parent=v,b.unshift(p))}return m}function y(w,m){return function(b){return m(w(b))}}function M(w,m){for(var b=[m[w].parent,w],v=x[m[w].parent][w],h=m[w].parent;m[h].parent;)b.unshift(m[h].parent),v=y(x[m[h].parent][h],v),h=m[h].parent;return v.conversion=b,v}oe.exports=function(w){for(var m=A(w),b={},v=Object.keys(m),h=v.length,d=0;d<h;d++){var _=v[d],p=m[_];p.parent!==null&&(b[_]=M(_,m))}return b}},52382:function(oe){"use strict";oe.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},20337:function(oe,N,o){var x=o(52382),g=o(1917),A=Object.hasOwnProperty,y=Object.create(null);for(var M in x)A.call(x,M)&&(y[x[M]]=M);var w=oe.exports={to:{},get:{}};w.get=function(v){var h=v.substring(0,3).toLowerCase(),d,_;switch(h){case"hsl":d=w.get.hsl(v),_="hsl";break;case"hwb":d=w.get.hwb(v),_="hwb";break;default:d=w.get.rgb(v),_="rgb";break}return d?{model:_,value:d}:null},w.get.rgb=function(v){if(!v)return null;var h=/^#([a-f0-9]{3,4})$/i,d=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,_=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,p=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,S=/^(\w+)$/,k=[0,0,0,1],O,F,D;if(O=v.match(d)){for(D=O[2],O=O[1],F=0;F<3;F++){var Z=F*2;k[F]=parseInt(O.slice(Z,Z+2),16)}D&&(k[3]=parseInt(D,16)/255)}else if(O=v.match(h)){for(O=O[1],D=O[3],F=0;F<3;F++)k[F]=parseInt(O[F]+O[F],16);D&&(k[3]=parseInt(D+D,16)/255)}else if(O=v.match(_)){for(F=0;F<3;F++)k[F]=parseInt(O[F+1],0);O[4]&&(O[5]?k[3]=parseFloat(O[4])*.01:k[3]=parseFloat(O[4]))}else if(O=v.match(p)){for(F=0;F<3;F++)k[F]=Math.round(parseFloat(O[F+1])*2.55);O[4]&&(O[5]?k[3]=parseFloat(O[4])*.01:k[3]=parseFloat(O[4]))}else return(O=v.match(S))?O[1]==="transparent"?[0,0,0,0]:A.call(x,O[1])?(k=x[O[1]],k[3]=1,k):null:null;for(F=0;F<3;F++)k[F]=m(k[F],0,255);return k[3]=m(k[3],0,1),k},w.get.hsl=function(v){if(!v)return null;var h=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,d=v.match(h);if(d){var _=parseFloat(d[4]),p=(parseFloat(d[1])%360+360)%360,S=m(parseFloat(d[2]),0,100),k=m(parseFloat(d[3]),0,100),O=m(isNaN(_)?1:_,0,1);return[p,S,k,O]}return null},w.get.hwb=function(v){if(!v)return null;var h=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,d=v.match(h);if(d){var _=parseFloat(d[4]),p=(parseFloat(d[1])%360+360)%360,S=m(parseFloat(d[2]),0,100),k=m(parseFloat(d[3]),0,100),O=m(isNaN(_)?1:_,0,1);return[p,S,k,O]}return null},w.to.hex=function(){var v=g(arguments);return"#"+b(v[0])+b(v[1])+b(v[2])+(v[3]<1?b(Math.round(v[3]*255)):"")},w.to.rgb=function(){var v=g(arguments);return v.length<4||v[3]===1?"rgb("+Math.round(v[0])+", "+Math.round(v[1])+", "+Math.round(v[2])+")":"rgba("+Math.round(v[0])+", "+Math.round(v[1])+", "+Math.round(v[2])+", "+v[3]+")"},w.to.rgb.percent=function(){var v=g(arguments),h=Math.round(v[0]/255*100),d=Math.round(v[1]/255*100),_=Math.round(v[2]/255*100);return v.length<4||v[3]===1?"rgb("+h+"%, "+d+"%, "+_+"%)":"rgba("+h+"%, "+d+"%, "+_+"%, "+v[3]+")"},w.to.hsl=function(){var v=g(arguments);return v.length<4||v[3]===1?"hsl("+v[0]+", "+v[1]+"%, "+v[2]+"%)":"hsla("+v[0]+", "+v[1]+"%, "+v[2]+"%, "+v[3]+")"},w.to.hwb=function(){var v=g(arguments),h="";return v.length>=4&&v[3]!==1&&(h=", "+v[3]),"hwb("+v[0]+", "+v[1]+"%, "+v[2]+"%"+h+")"},w.to.keyword=function(v){return y[v.slice(0,3)]};function m(v,h,d){return Math.min(Math.max(h,v),d)}function b(v){var h=Math.round(v).toString(16).toUpperCase();return h.length<2?"0"+h:h}},65276:function(oe,N,o){"use strict";var x=o(20337),g=o(36553),A=[].slice,y=["keyword","gray","hex"],M={};Object.keys(g).forEach(function(S){M[A.call(g[S].labels).sort().join("")]=S});var w={};function m(S,k){if(!(this instanceof m))return new m(S,k);if(k&&k in y&&(k=null),k&&!(k in g))throw new Error("Unknown model: "+k);var O,F;if(S==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(S instanceof m)this.model=S.model,this.color=S.color.slice(),this.valpha=S.valpha;else if(typeof S=="string"){var D=x.get(S);if(D===null)throw new Error("Unable to parse color from string: "+S);this.model=D.model,F=g[this.model].channels,this.color=D.value.slice(0,F),this.valpha=typeof D.value[F]=="number"?D.value[F]:1}else if(S.length){this.model=k||"rgb",F=g[this.model].channels;var Z=A.call(S,0,F);this.color=p(Z,F),this.valpha=typeof S[F]=="number"?S[F]:1}else if(typeof S=="number")S&=16777215,this.model="rgb",this.color=[S>>16&255,S>>8&255,S&255],this.valpha=1;else{this.valpha=1;var W=Object.keys(S);"alpha"in S&&(W.splice(W.indexOf("alpha"),1),this.valpha=typeof S.alpha=="number"?S.alpha:0);var U=W.sort().join("");if(!(U in M))throw new Error("Unable to parse color from object: "+JSON.stringify(S));this.model=M[U];var L=g[this.model].labels,V=[];for(O=0;O<L.length;O++)V.push(S[L[O]]);this.color=p(V)}if(w[this.model])for(F=g[this.model].channels,O=0;O<F;O++){var $=w[this.model][O];$&&(this.color[O]=$(this.color[O]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}m.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(k){var O=this.model in x.to?this:this.rgb();O=O.round(typeof k=="number"?k:1);var F=O.valpha===1?O.color:O.color.concat(this.valpha);return x.to[O.model](F)},percentString:function(k){var O=this.rgb().round(typeof k=="number"?k:1),F=O.valpha===1?O.color:O.color.concat(this.valpha);return x.to.rgb.percent(F)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var k={},O=g[this.model].channels,F=g[this.model].labels,D=0;D<O;D++)k[F[D]]=this.color[D];return this.valpha!==1&&(k.alpha=this.valpha),k},unitArray:function(){var k=this.rgb().color;return k[0]/=255,k[1]/=255,k[2]/=255,this.valpha!==1&&k.push(this.valpha),k},unitObject:function(){var k=this.rgb().object();return k.r/=255,k.g/=255,k.b/=255,this.valpha!==1&&(k.alpha=this.valpha),k},round:function(k){return k=Math.max(k||0,0),new m(this.color.map(v(k)).concat(this.valpha),this.model)},alpha:function(k){return arguments.length?new m(this.color.concat(Math.max(0,Math.min(1,k))),this.model):this.valpha},red:h("rgb",0,d(255)),green:h("rgb",1,d(255)),blue:h("rgb",2,d(255)),hue:h(["hsl","hsv","hsl","hwb","hcg"],0,function(S){return(S%360+360)%360}),saturationl:h("hsl",1,d(100)),lightness:h("hsl",2,d(100)),saturationv:h("hsv",1,d(100)),value:h("hsv",2,d(100)),chroma:h("hcg",1,d(100)),gray:h("hcg",2,d(100)),white:h("hwb",1,d(100)),wblack:h("hwb",2,d(100)),cyan:h("cmyk",0,d(100)),magenta:h("cmyk",1,d(100)),yellow:h("cmyk",2,d(100)),black:h("cmyk",3,d(100)),x:h("xyz",0,d(100)),y:h("xyz",1,d(100)),z:h("xyz",2,d(100)),l:h("lab",0,d(100)),a:h("lab",1),b:h("lab",2),keyword:function(k){return arguments.length?new m(k):g[this.model].keyword(this.color)},hex:function(k){return arguments.length?new m(k):x.to.hex(this.rgb().round().color)},rgbNumber:function(){var k=this.rgb().color;return(k[0]&255)<<16|(k[1]&255)<<8|k[2]&255},luminosity:function(){for(var k=this.rgb().color,O=[],F=0;F<k.length;F++){var D=k[F]/255;O[F]=D<=.03928?D/12.92:Math.pow((D+.055)/1.055,2.4)}return .2126*O[0]+.7152*O[1]+.0722*O[2]},contrast:function(k){var O=this.luminosity(),F=k.luminosity();return O>F?(O+.05)/(F+.05):(F+.05)/(O+.05)},level:function(k){var O=this.contrast(k);return O>=7.1?"AAA":O>=4.5?"AA":""},isDark:function(){var k=this.rgb().color,O=(k[0]*299+k[1]*587+k[2]*114)/1e3;return O<128},isLight:function(){return!this.isDark()},negate:function(){for(var k=this.rgb(),O=0;O<3;O++)k.color[O]=255-k.color[O];return k},lighten:function(k){var O=this.hsl();return O.color[2]+=O.color[2]*k,O},darken:function(k){var O=this.hsl();return O.color[2]-=O.color[2]*k,O},saturate:function(k){var O=this.hsl();return O.color[1]+=O.color[1]*k,O},desaturate:function(k){var O=this.hsl();return O.color[1]-=O.color[1]*k,O},whiten:function(k){var O=this.hwb();return O.color[1]+=O.color[1]*k,O},blacken:function(k){var O=this.hwb();return O.color[2]+=O.color[2]*k,O},grayscale:function(){var k=this.rgb().color,O=k[0]*.3+k[1]*.59+k[2]*.11;return m.rgb(O,O,O)},fade:function(k){return this.alpha(this.valpha-this.valpha*k)},opaquer:function(k){return this.alpha(this.valpha+this.valpha*k)},rotate:function(k){var O=this.hsl(),F=O.color[0];return F=(F+k)%360,F=F<0?360+F:F,O.color[0]=F,O},mix:function(k,O){if(!k||!k.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof k);var F=k.rgb(),D=this.rgb(),Z=O===void 0?.5:O,W=2*Z-1,U=F.alpha()-D.alpha(),L=((W*U==-1?W:(W+U)/(1+W*U))+1)/2,V=1-L;return m.rgb(L*F.red()+V*D.red(),L*F.green()+V*D.green(),L*F.blue()+V*D.blue(),F.alpha()*Z+D.alpha()*(1-Z))}},Object.keys(g).forEach(function(S){if(y.indexOf(S)===-1){var k=g[S].channels;m.prototype[S]=function(){if(this.model===S)return new m(this);if(arguments.length)return new m(arguments,S);var O=typeof arguments[k]=="number"?k:this.valpha;return new m(_(g[this.model][S].raw(this.color)).concat(O),S)},m[S]=function(O){return typeof O=="number"&&(O=p(A.call(arguments),k)),new m(O,S)}}});function b(S,k){return Number(S.toFixed(k))}function v(S){return function(k){return b(k,S)}}function h(S,k,O){return S=Array.isArray(S)?S:[S],S.forEach(function(F){(w[F]||(w[F]=[]))[k]=O}),S=S[0],function(F){var D;return arguments.length?(O&&(F=O(F)),D=this[S](),D.color[k]=F,D):(D=this[S]().color[k],O&&(D=O(D)),D)}}function d(S){return function(k){return Math.max(0,Math.min(S,k))}}function _(S){return Array.isArray(S)?S:[S]}function p(S,k){for(var O=0;O<k;O++)typeof S[O]!="number"&&(S[O]=0);return S}oe.exports=m},45678:function(oe){function N(A){return typeof A=="object"&&A!=null&&A.nodeType===1}function o(A,y){return(!y||A!=="hidden")&&A!=="visible"&&A!=="clip"}function x(A,y){if(A.clientHeight<A.scrollHeight||A.clientWidth<A.scrollWidth){var M=getComputedStyle(A,null);return o(M.overflowY,y)||o(M.overflowX,y)||function(w){var m=function(b){if(!b.ownerDocument||!b.ownerDocument.defaultView)return null;try{return b.ownerDocument.defaultView.frameElement}catch(v){return null}}(w);return!!m&&(m.clientHeight<w.scrollHeight||m.clientWidth<w.scrollWidth)}(A)}return!1}function g(A,y,M,w,m,b,v,h){return b<A&&v>y||b>A&&v<y?0:b<=A&&h<=M||v>=y&&h>=M?b-A-w:v>y&&h<M||b<A&&h>M?v-y+m:0}oe.exports=function(A,y){var M=window,w=y.scrollMode,m=y.block,b=y.inline,v=y.boundary,h=y.skipOverflowHiddenElements,d=typeof v=="function"?v:function(Vt){return Vt!==v};if(!N(A))throw new TypeError("Invalid target");for(var _,p,S=document.scrollingElement||document.documentElement,k=[],O=A;N(O)&&d(O);){if((O=(p=(_=O).parentElement)==null?_.getRootNode().host||null:p)===S){k.push(O);break}O!=null&&O===document.body&&x(O)&&!x(document.documentElement)||O!=null&&x(O,h)&&k.push(O)}for(var F=M.visualViewport?M.visualViewport.width:innerWidth,D=M.visualViewport?M.visualViewport.height:innerHeight,Z=window.scrollX||pageXOffset,W=window.scrollY||pageYOffset,U=A.getBoundingClientRect(),L=U.height,V=U.width,$=U.top,G=U.right,z=U.bottom,K=U.left,re=m==="start"||m==="nearest"?$:m==="end"?z:$+L/2,ne=b==="center"?K+V/2:b==="end"?G:K,Q=[],ue=0;ue<k.length;ue++){var he=k[ue],Ee=he.getBoundingClientRect(),ce=Ee.height,ve=Ee.width,fe=Ee.top,we=Ee.right,me=Ee.bottom,Pe=Ee.left;if(w==="if-needed"&&$>=0&&K>=0&&z<=D&&G<=F&&$>=fe&&z<=me&&K>=Pe&&G<=we)return Q;var pe=getComputedStyle(he),Ie=parseInt(pe.borderLeftWidth,10),Je=parseInt(pe.borderTopWidth,10),ke=parseInt(pe.borderRightWidth,10),De=parseInt(pe.borderBottomWidth,10),Fe=0,Qe=0,qe="offsetWidth"in he?he.offsetWidth-he.clientWidth-Ie-ke:0,et="offsetHeight"in he?he.offsetHeight-he.clientHeight-Je-De:0,dt="offsetWidth"in he?he.offsetWidth===0?0:ve/he.offsetWidth:0,Ke="offsetHeight"in he?he.offsetHeight===0?0:ce/he.offsetHeight:0;if(S===he)Fe=m==="start"?re:m==="end"?re-D:m==="nearest"?g(W,W+D,D,Je,De,W+re,W+re+L,L):re-D/2,Qe=b==="start"?ne:b==="center"?ne-F/2:b==="end"?ne-F:g(Z,Z+F,F,Ie,ke,Z+ne,Z+ne+V,V),Fe=Math.max(0,Fe+W),Qe=Math.max(0,Qe+Z);else{Fe=m==="start"?re-fe-Je:m==="end"?re-me+De+et:m==="nearest"?g(fe,me,ce,Je,De+et,re,re+L,L):re-(fe+ce/2)+et/2,Qe=b==="start"?ne-Pe-Ie:b==="center"?ne-(Pe+ve/2)+qe/2:b==="end"?ne-we+ke+qe:g(Pe,we,ve,Ie,ke+qe,ne,ne+V,V);var Ge=he.scrollLeft,wt=he.scrollTop;re+=wt-(Fe=Math.max(0,Math.min(wt+Fe/Ke,he.scrollHeight-ce/Ke+et))),ne+=Ge-(Qe=Math.max(0,Math.min(Ge+Qe/dt,he.scrollWidth-ve/dt+qe)))}Q.push({el:he,top:Fe,left:Qe})}return Q}},36378:function(oe,N,o){"use strict";var x=o(41436),g={"text/plain":"Text","text/html":"Url",default:"Text"},A="Copy to clipboard: #{key}, Enter";function y(w){var m=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return w.replace(/#{\s*key\s*}/g,m)}function M(w,m){var b,v,h,d,_,p,S=!1;m||(m={}),b=m.debug||!1;try{h=x(),d=document.createRange(),_=document.getSelection(),p=document.createElement("span"),p.textContent=w,p.ariaHidden="true",p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",function(O){if(O.stopPropagation(),m.format)if(O.preventDefault(),typeof O.clipboardData=="undefined"){b&&console.warn("unable to use e.clipboardData"),b&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var F=g[m.format]||g.default;window.clipboardData.setData(F,w)}else O.clipboardData.clearData(),O.clipboardData.setData(m.format,w);m.onCopy&&(O.preventDefault(),m.onCopy(O.clipboardData))}),document.body.appendChild(p),d.selectNodeContents(p),_.addRange(d);var k=document.execCommand("copy");if(!k)throw new Error("copy command was unsuccessful");S=!0}catch(O){b&&console.error("unable to copy using execCommand: ",O),b&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(m.format||"text",w),m.onCopy&&m.onCopy(window.clipboardData),S=!0}catch(F){b&&console.error("unable to copy using clipboardData: ",F),b&&console.error("falling back to prompt"),v=y("message"in m?m.message:A),window.prompt(v,w)}}finally{_&&(typeof _.removeRange=="function"?_.removeRange(d):_.removeAllRanges()),p&&document.body.removeChild(p),h()}return S}oe.exports=M},55956:function(oe,N,o){"use strict";o.r(N),o.d(N,{forceCenter:function(){return x},forceCollide:function(){return m},forceLink:function(){return h},forceManyBody:function(){return qe},forceRadial:function(){return et},forceSimulation:function(){return Qe},forceX:function(){return dt},forceY:function(){return Ke}});function x(Ge,wt){var Vt,gt=1;Ge==null&&(Ge=0),wt==null&&(wt=0);function it(){var Le,ct=Vt.length,at,jt=0,St=0;for(Le=0;Le<ct;++Le)at=Vt[Le],jt+=at.x,St+=at.y;for(jt=(jt/ct-Ge)*gt,St=(St/ct-wt)*gt,Le=0;Le<ct;++Le)at=Vt[Le],at.x-=jt,at.y-=St}return it.initialize=function(Le){Vt=Le},it.x=function(Le){return arguments.length?(Ge=+Le,it):Ge},it.y=function(Le){return arguments.length?(wt=+Le,it):wt},it.strength=function(Le){return arguments.length?(gt=+Le,it):gt},it}var g=o(73245);function A(Ge){return function(){return Ge}}function y(Ge){return(Ge()-.5)*1e-6}function M(Ge){return Ge.x+Ge.vx}function w(Ge){return Ge.y+Ge.vy}function m(Ge){var wt,Vt,gt,it=1,Le=1;typeof Ge!="function"&&(Ge=A(Ge==null?1:+Ge));function ct(){for(var St,fn=wt.length,Xt,Yt,Rt,Lt,ze,rt,tt=0;tt<Le;++tt)for(Xt=(0,g.Z)(wt,M,w).visitAfter(at),St=0;St<fn;++St)Yt=wt[St],ze=Vt[Yt.index],rt=ze*ze,Rt=Yt.x+Yt.vx,Lt=Yt.y+Yt.vy,Xt.visit(de);function de(ot,Et,Ht,Jt,Qt){var an=ot.data,Un=ot.r,qt=ze+Un;if(an){if(an.index>Yt.index){var rn=Rt-an.x-an.vx,cn=Lt-an.y-an.vy,er=rn*rn+cn*cn;er<qt*qt&&(rn===0&&(rn=y(gt),er+=rn*rn),cn===0&&(cn=y(gt),er+=cn*cn),er=(qt-(er=Math.sqrt(er)))/er*it,Yt.vx+=(rn*=er)*(qt=(Un*=Un)/(rt+Un)),Yt.vy+=(cn*=er)*qt,an.vx-=rn*(qt=1-qt),an.vy-=cn*qt)}return}return Et>Rt+qt||Jt<Rt-qt||Ht>Lt+qt||Qt<Lt-qt}}function at(St){if(St.data)return St.r=Vt[St.data.index];for(var fn=St.r=0;fn<4;++fn)St[fn]&&St[fn].r>St.r&&(St.r=St[fn].r)}function jt(){if(!!wt){var St,fn=wt.length,Xt;for(Vt=new Array(fn),St=0;St<fn;++St)Xt=wt[St],Vt[Xt.index]=+Ge(Xt,St,wt)}}return ct.initialize=function(St,fn){wt=St,gt=fn,jt()},ct.iterations=function(St){return arguments.length?(Le=+St,ct):Le},ct.strength=function(St){return arguments.length?(it=+St,ct):it},ct.radius=function(St){return arguments.length?(Ge=typeof St=="function"?St:A(+St),jt(),ct):Ge},ct}function b(Ge){return Ge.index}function v(Ge,wt){var Vt=Ge.get(wt);if(!Vt)throw new Error("node not found: "+wt);return Vt}function h(Ge){var wt=b,Vt=Xt,gt,it=A(30),Le,ct,at,jt,St,fn=1;Ge==null&&(Ge=[]);function Xt(rt){return 1/Math.min(at[rt.source.index],at[rt.target.index])}function Yt(rt){for(var tt=0,de=Ge.length;tt<fn;++tt)for(var ot=0,Et,Ht,Jt,Qt,an,Un,qt;ot<de;++ot)Et=Ge[ot],Ht=Et.source,Jt=Et.target,Qt=Jt.x+Jt.vx-Ht.x-Ht.vx||y(St),an=Jt.y+Jt.vy-Ht.y-Ht.vy||y(St),Un=Math.sqrt(Qt*Qt+an*an),Un=(Un-Le[ot])/Un*rt*gt[ot],Qt*=Un,an*=Un,Jt.vx-=Qt*(qt=jt[ot]),Jt.vy-=an*qt,Ht.vx+=Qt*(qt=1-qt),Ht.vy+=an*qt}function Rt(){if(!!ct){var rt,tt=ct.length,de=Ge.length,ot=new Map(ct.map(function(Ht,Jt){return[wt(Ht,Jt,ct),Ht]})),Et;for(rt=0,at=new Array(tt);rt<de;++rt)Et=Ge[rt],Et.index=rt,typeof Et.source!="object"&&(Et.source=v(ot,Et.source)),typeof Et.target!="object"&&(Et.target=v(ot,Et.target)),at[Et.source.index]=(at[Et.source.index]||0)+1,at[Et.target.index]=(at[Et.target.index]||0)+1;for(rt=0,jt=new Array(de);rt<de;++rt)Et=Ge[rt],jt[rt]=at[Et.source.index]/(at[Et.source.index]+at[Et.target.index]);gt=new Array(de),Lt(),Le=new Array(de),ze()}}function Lt(){if(!!ct)for(var rt=0,tt=Ge.length;rt<tt;++rt)gt[rt]=+Vt(Ge[rt],rt,Ge)}function ze(){if(!!ct)for(var rt=0,tt=Ge.length;rt<tt;++rt)Le[rt]=+it(Ge[rt],rt,Ge)}return Yt.initialize=function(rt,tt){ct=rt,St=tt,Rt()},Yt.links=function(rt){return arguments.length?(Ge=rt,Rt(),Yt):Ge},Yt.id=function(rt){return arguments.length?(wt=rt,Yt):wt},Yt.iterations=function(rt){return arguments.length?(fn=+rt,Yt):fn},Yt.strength=function(rt){return arguments.length?(Vt=typeof rt=="function"?rt:A(+rt),Lt(),Yt):Vt},Yt.distance=function(rt){return arguments.length?(it=typeof rt=="function"?rt:A(+rt),ze(),Yt):it},Yt}var d={value:function(){}};function _(){for(var Ge=0,wt=arguments.length,Vt={},gt;Ge<wt;++Ge){if(!(gt=arguments[Ge]+"")||gt in Vt||/[\s.]/.test(gt))throw new Error("illegal type: "+gt);Vt[gt]=[]}return new p(Vt)}function p(Ge){this._=Ge}function S(Ge,wt){return Ge.trim().split(/^|\s+/).map(function(Vt){var gt="",it=Vt.indexOf(".");if(it>=0&&(gt=Vt.slice(it+1),Vt=Vt.slice(0,it)),Vt&&!wt.hasOwnProperty(Vt))throw new Error("unknown type: "+Vt);return{type:Vt,name:gt}})}p.prototype=_.prototype={constructor:p,on:function(wt,Vt){var gt=this._,it=S(wt+"",gt),Le,ct=-1,at=it.length;if(arguments.length<2){for(;++ct<at;)if((Le=(wt=it[ct]).type)&&(Le=k(gt[Le],wt.name)))return Le;return}if(Vt!=null&&typeof Vt!="function")throw new Error("invalid callback: "+Vt);for(;++ct<at;)if(Le=(wt=it[ct]).type)gt[Le]=O(gt[Le],wt.name,Vt);else if(Vt==null)for(Le in gt)gt[Le]=O(gt[Le],wt.name,null);return this},copy:function(){var wt={},Vt=this._;for(var gt in Vt)wt[gt]=Vt[gt].slice();return new p(wt)},call:function(wt,Vt){if((Le=arguments.length-2)>0)for(var gt=new Array(Le),it=0,Le,ct;it<Le;++it)gt[it]=arguments[it+2];if(!this._.hasOwnProperty(wt))throw new Error("unknown type: "+wt);for(ct=this._[wt],it=0,Le=ct.length;it<Le;++it)ct[it].value.apply(Vt,gt)},apply:function(wt,Vt,gt){if(!this._.hasOwnProperty(wt))throw new Error("unknown type: "+wt);for(var it=this._[wt],Le=0,ct=it.length;Le<ct;++Le)it[Le].value.apply(Vt,gt)}};function k(Ge,wt){for(var Vt=0,gt=Ge.length,it;Vt<gt;++Vt)if((it=Ge[Vt]).name===wt)return it.value}function O(Ge,wt,Vt){for(var gt=0,it=Ge.length;gt<it;++gt)if(Ge[gt].name===wt){Ge[gt]=d,Ge=Ge.slice(0,gt).concat(Ge.slice(gt+1));break}return Vt!=null&&Ge.push({name:wt,value:Vt}),Ge}var F=_,D=0,Z=0,W=0,U=1e3,L,V,$=0,G=0,z=0,K=typeof performance=="object"&&performance.now?performance:Date,re=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Ge){setTimeout(Ge,17)};function ne(){return G||(re(Q),G=K.now()+z)}function Q(){G=0}function ue(){this._call=this._time=this._next=null}ue.prototype=he.prototype={constructor:ue,restart:function(wt,Vt,gt){if(typeof wt!="function")throw new TypeError("callback is not a function");gt=(gt==null?ne():+gt)+(Vt==null?0:+Vt),!this._next&&V!==this&&(V?V._next=this:L=this,V=this),this._call=wt,this._time=gt,we()},stop:function(){this._call&&(this._call=null,this._time=Infinity,we())}};function he(Ge,wt,Vt){var gt=new ue;return gt.restart(Ge,wt,Vt),gt}function Ee(){ne(),++D;for(var Ge=L,wt;Ge;)(wt=G-Ge._time)>=0&&Ge._call.call(null,wt),Ge=Ge._next;--D}function ce(){G=($=K.now())+z,D=Z=0;try{Ee()}finally{D=0,fe(),G=0}}function ve(){var Ge=K.now(),wt=Ge-$;wt>U&&(z-=wt,$=Ge)}function fe(){for(var Ge,wt=L,Vt,gt=Infinity;wt;)wt._call?(gt>wt._time&&(gt=wt._time),Ge=wt,wt=wt._next):(Vt=wt._next,wt._next=null,wt=Ge?Ge._next=Vt:L=Vt);V=Ge,we(gt)}function we(Ge){if(!D){Z&&(Z=clearTimeout(Z));var wt=Ge-G;wt>24?(Ge<Infinity&&(Z=setTimeout(ce,Ge-K.now()-z)),W&&(W=clearInterval(W))):(W||($=K.now(),W=setInterval(ve,U)),D=1,re(ce))}}var me=1664525,Pe=1013904223,pe=4294967296;function Ie(){var Ge=1;return function(){return(Ge=(me*Ge+Pe)%pe)/pe}}function Je(Ge){return Ge.x}function ke(Ge){return Ge.y}var De=10,Fe=Math.PI*(3-Math.sqrt(5));function Qe(Ge){var wt,Vt=1,gt=.001,it=1-Math.pow(gt,1/300),Le=0,ct=.6,at=new Map,jt=he(Xt),St=F("tick","end"),fn=Ie();Ge==null&&(Ge=[]);function Xt(){Yt(),St.call("tick",wt),Vt<gt&&(jt.stop(),St.call("end",wt))}function Yt(ze){var rt,tt=Ge.length,de;ze===void 0&&(ze=1);for(var ot=0;ot<ze;++ot)for(Vt+=(Le-Vt)*it,at.forEach(function(Et){Et(Vt)}),rt=0;rt<tt;++rt)de=Ge[rt],de.fx==null?de.x+=de.vx*=ct:(de.x=de.fx,de.vx=0),de.fy==null?de.y+=de.vy*=ct:(de.y=de.fy,de.vy=0);return wt}function Rt(){for(var ze=0,rt=Ge.length,tt;ze<rt;++ze){if(tt=Ge[ze],tt.index=ze,tt.fx!=null&&(tt.x=tt.fx),tt.fy!=null&&(tt.y=tt.fy),isNaN(tt.x)||isNaN(tt.y)){var de=De*Math.sqrt(.5+ze),ot=ze*Fe;tt.x=de*Math.cos(ot),tt.y=de*Math.sin(ot)}(isNaN(tt.vx)||isNaN(tt.vy))&&(tt.vx=tt.vy=0)}}function Lt(ze){return ze.initialize&&ze.initialize(Ge,fn),ze}return Rt(),wt={tick:Yt,restart:function(){return jt.restart(Xt),wt},stop:function(){return jt.stop(),wt},nodes:function(rt){return arguments.length?(Ge=rt,Rt(),at.forEach(Lt),wt):Ge},alpha:function(rt){return arguments.length?(Vt=+rt,wt):Vt},alphaMin:function(rt){return arguments.length?(gt=+rt,wt):gt},alphaDecay:function(rt){return arguments.length?(it=+rt,wt):+it},alphaTarget:function(rt){return arguments.length?(Le=+rt,wt):Le},velocityDecay:function(rt){return arguments.length?(ct=1-rt,wt):1-ct},randomSource:function(rt){return arguments.length?(fn=rt,at.forEach(Lt),wt):fn},force:function(rt,tt){return arguments.length>1?(tt==null?at.delete(rt):at.set(rt,Lt(tt)),wt):at.get(rt)},find:function(rt,tt,de){var ot=0,Et=Ge.length,Ht,Jt,Qt,an,Un;for(de==null?de=Infinity:de*=de,ot=0;ot<Et;++ot)an=Ge[ot],Ht=rt-an.x,Jt=tt-an.y,Qt=Ht*Ht+Jt*Jt,Qt<de&&(Un=an,de=Qt);return Un},on:function(rt,tt){return arguments.length>1?(St.on(rt,tt),wt):St.on(rt)}}}function qe(){var Ge,wt,Vt,gt,it=A(-30),Le,ct=1,at=Infinity,jt=.81;function St(Rt){var Lt,ze=Ge.length,rt=(0,g.Z)(Ge,Je,ke).visitAfter(Xt);for(gt=Rt,Lt=0;Lt<ze;++Lt)wt=Ge[Lt],rt.visit(Yt)}function fn(){if(!!Ge){var Rt,Lt=Ge.length,ze;for(Le=new Array(Lt),Rt=0;Rt<Lt;++Rt)ze=Ge[Rt],Le[ze.index]=+it(ze,Rt,Ge)}}function Xt(Rt){var Lt=0,ze,rt,tt=0,de,ot,Et;if(Rt.length){for(de=ot=Et=0;Et<4;++Et)(ze=Rt[Et])&&(rt=Math.abs(ze.value))&&(Lt+=ze.value,tt+=rt,de+=rt*ze.x,ot+=rt*ze.y);Rt.x=de/tt,Rt.y=ot/tt}else{ze=Rt,ze.x=ze.data.x,ze.y=ze.data.y;do Lt+=Le[ze.data.index];while(ze=ze.next)}Rt.value=Lt}function Yt(Rt,Lt,ze,rt){if(!Rt.value)return!0;var tt=Rt.x-wt.x,de=Rt.y-wt.y,ot=rt-Lt,Et=tt*tt+de*de;if(ot*ot/jt<Et)return Et<at&&(tt===0&&(tt=y(Vt),Et+=tt*tt),de===0&&(de=y(Vt),Et+=de*de),Et<ct&&(Et=Math.sqrt(ct*Et)),wt.vx+=tt*Rt.value*gt/Et,wt.vy+=de*Rt.value*gt/Et),!0;if(Rt.length||Et>=at)return;(Rt.data!==wt||Rt.next)&&(tt===0&&(tt=y(Vt),Et+=tt*tt),de===0&&(de=y(Vt),Et+=de*de),Et<ct&&(Et=Math.sqrt(ct*Et)));do Rt.data!==wt&&(ot=Le[Rt.data.index]*gt/Et,wt.vx+=tt*ot,wt.vy+=de*ot);while(Rt=Rt.next)}return St.initialize=function(Rt,Lt){Ge=Rt,Vt=Lt,fn()},St.strength=function(Rt){return arguments.length?(it=typeof Rt=="function"?Rt:A(+Rt),fn(),St):it},St.distanceMin=function(Rt){return arguments.length?(ct=Rt*Rt,St):Math.sqrt(ct)},St.distanceMax=function(Rt){return arguments.length?(at=Rt*Rt,St):Math.sqrt(at)},St.theta=function(Rt){return arguments.length?(jt=Rt*Rt,St):Math.sqrt(jt)},St}function et(Ge,wt,Vt){var gt,it=A(.1),Le,ct;typeof Ge!="function"&&(Ge=A(+Ge)),wt==null&&(wt=0),Vt==null&&(Vt=0);function at(St){for(var fn=0,Xt=gt.length;fn<Xt;++fn){var Yt=gt[fn],Rt=Yt.x-wt||1e-6,Lt=Yt.y-Vt||1e-6,ze=Math.sqrt(Rt*Rt+Lt*Lt),rt=(ct[fn]-ze)*Le[fn]*St/ze;Yt.vx+=Rt*rt,Yt.vy+=Lt*rt}}function jt(){if(!!gt){var St,fn=gt.length;for(Le=new Array(fn),ct=new Array(fn),St=0;St<fn;++St)ct[St]=+Ge(gt[St],St,gt),Le[St]=isNaN(ct[St])?0:+it(gt[St],St,gt)}}return at.initialize=function(St){gt=St,jt()},at.strength=function(St){return arguments.length?(it=typeof St=="function"?St:A(+St),jt(),at):it},at.radius=function(St){return arguments.length?(Ge=typeof St=="function"?St:A(+St),jt(),at):Ge},at.x=function(St){return arguments.length?(wt=+St,at):wt},at.y=function(St){return arguments.length?(Vt=+St,at):Vt},at}function dt(Ge){var wt=A(.1),Vt,gt,it;typeof Ge!="function"&&(Ge=A(Ge==null?0:+Ge));function Le(at){for(var jt=0,St=Vt.length,fn;jt<St;++jt)fn=Vt[jt],fn.vx+=(it[jt]-fn.x)*gt[jt]*at}function ct(){if(!!Vt){var at,jt=Vt.length;for(gt=new Array(jt),it=new Array(jt),at=0;at<jt;++at)gt[at]=isNaN(it[at]=+Ge(Vt[at],at,Vt))?0:+wt(Vt[at],at,Vt)}}return Le.initialize=function(at){Vt=at,ct()},Le.strength=function(at){return arguments.length?(wt=typeof at=="function"?at:A(+at),ct(),Le):wt},Le.x=function(at){return arguments.length?(Ge=typeof at=="function"?at:A(+at),ct(),Le):Ge},Le}function Ke(Ge){var wt=A(.1),Vt,gt,it;typeof Ge!="function"&&(Ge=A(Ge==null?0:+Ge));function Le(at){for(var jt=0,St=Vt.length,fn;jt<St;++jt)fn=Vt[jt],fn.vy+=(it[jt]-fn.y)*gt[jt]*at}function ct(){if(!!Vt){var at,jt=Vt.length;for(gt=new Array(jt),it=new Array(jt),at=0;at<jt;++at)gt[at]=isNaN(it[at]=+Ge(Vt[at],at,Vt))?0:+wt(Vt[at],at,Vt)}}return Le.initialize=function(at){Vt=at,ct()},Le.strength=function(at){return arguments.length?(wt=typeof at=="function"?at:A(+at),ct(),Le):wt},Le.y=function(at){return arguments.length?(Ge=typeof at=="function"?at:A(+at),ct(),Le):Ge},Le}},48404:function(oe,N,o){"use strict";o.r(N),o.d(N,{quadtree:function(){return x.Z}});var x=o(73245)},73245:function(oe,N,o){"use strict";o.d(N,{Z:function(){return Z}});function x(V){var $=+this._x.call(null,V),G=+this._y.call(null,V);return g(this.cover($,G),$,G,V)}function g(V,$,G,z){if(isNaN($)||isNaN(G))return V;var K,re=V._root,ne={data:z},Q=V._x0,ue=V._y0,he=V._x1,Ee=V._y1,ce,ve,fe,we,me,Pe,pe,Ie;if(!re)return V._root=ne,V;for(;re.length;)if((me=$>=(ce=(Q+he)/2))?Q=ce:he=ce,(Pe=G>=(ve=(ue+Ee)/2))?ue=ve:Ee=ve,K=re,!(re=re[pe=Pe<<1|me]))return K[pe]=ne,V;if(fe=+V._x.call(null,re.data),we=+V._y.call(null,re.data),$===fe&&G===we)return ne.next=re,K?K[pe]=ne:V._root=ne,V;do K=K?K[pe]=new Array(4):V._root=new Array(4),(me=$>=(ce=(Q+he)/2))?Q=ce:he=ce,(Pe=G>=(ve=(ue+Ee)/2))?ue=ve:Ee=ve;while((pe=Pe<<1|me)==(Ie=(we>=ve)<<1|fe>=ce));return K[Ie]=re,K[pe]=ne,V}function A(V){var $,G,z=V.length,K,re,ne=new Array(z),Q=new Array(z),ue=Infinity,he=Infinity,Ee=-Infinity,ce=-Infinity;for(G=0;G<z;++G)isNaN(K=+this._x.call(null,$=V[G]))||isNaN(re=+this._y.call(null,$))||(ne[G]=K,Q[G]=re,K<ue&&(ue=K),K>Ee&&(Ee=K),re<he&&(he=re),re>ce&&(ce=re));if(ue>Ee||he>ce)return this;for(this.cover(ue,he).cover(Ee,ce),G=0;G<z;++G)g(this,ne[G],Q[G],V[G]);return this}function y(V,$){if(isNaN(V=+V)||isNaN($=+$))return this;var G=this._x0,z=this._y0,K=this._x1,re=this._y1;if(isNaN(G))K=(G=Math.floor(V))+1,re=(z=Math.floor($))+1;else{for(var ne=K-G||1,Q=this._root,ue,he;G>V||V>=K||z>$||$>=re;)switch(he=($<z)<<1|V<G,ue=new Array(4),ue[he]=Q,Q=ue,ne*=2,he){case 0:K=G+ne,re=z+ne;break;case 1:G=K-ne,re=z+ne;break;case 2:K=G+ne,z=re-ne;break;case 3:G=K-ne,z=re-ne;break}this._root&&this._root.length&&(this._root=Q)}return this._x0=G,this._y0=z,this._x1=K,this._y1=re,this}function M(){var V=[];return this.visit(function($){if(!$.length)do V.push($.data);while($=$.next)}),V}function w(V){return arguments.length?this.cover(+V[0][0],+V[0][1]).cover(+V[1][0],+V[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function m(V,$,G,z,K){this.node=V,this.x0=$,this.y0=G,this.x1=z,this.y1=K}function b(V,$,G){var z,K=this._x0,re=this._y0,ne,Q,ue,he,Ee=this._x1,ce=this._y1,ve=[],fe=this._root,we,me;for(fe&&ve.push(new m(fe,K,re,Ee,ce)),G==null?G=Infinity:(K=V-G,re=$-G,Ee=V+G,ce=$+G,G*=G);we=ve.pop();)if(!(!(fe=we.node)||(ne=we.x0)>Ee||(Q=we.y0)>ce||(ue=we.x1)<K||(he=we.y1)<re))if(fe.length){var Pe=(ne+ue)/2,pe=(Q+he)/2;ve.push(new m(fe[3],Pe,pe,ue,he),new m(fe[2],ne,pe,Pe,he),new m(fe[1],Pe,Q,ue,pe),new m(fe[0],ne,Q,Pe,pe)),(me=($>=pe)<<1|V>=Pe)&&(we=ve[ve.length-1],ve[ve.length-1]=ve[ve.length-1-me],ve[ve.length-1-me]=we)}else{var Ie=V-+this._x.call(null,fe.data),Je=$-+this._y.call(null,fe.data),ke=Ie*Ie+Je*Je;if(ke<G){var De=Math.sqrt(G=ke);K=V-De,re=$-De,Ee=V+De,ce=$+De,z=fe.data}}return z}function v(V){if(isNaN(Ee=+this._x.call(null,V))||isNaN(ce=+this._y.call(null,V)))return this;var $,G=this._root,z,K,re,ne=this._x0,Q=this._y0,ue=this._x1,he=this._y1,Ee,ce,ve,fe,we,me,Pe,pe;if(!G)return this;if(G.length)for(;;){if((we=Ee>=(ve=(ne+ue)/2))?ne=ve:ue=ve,(me=ce>=(fe=(Q+he)/2))?Q=fe:he=fe,$=G,!(G=G[Pe=me<<1|we]))return this;if(!G.length)break;($[Pe+1&3]||$[Pe+2&3]||$[Pe+3&3])&&(z=$,pe=Pe)}for(;G.data!==V;)if(K=G,!(G=G.next))return this;return(re=G.next)&&delete G.next,K?(re?K.next=re:delete K.next,this):$?(re?$[Pe]=re:delete $[Pe],(G=$[0]||$[1]||$[2]||$[3])&&G===($[3]||$[2]||$[1]||$[0])&&!G.length&&(z?z[pe]=G:this._root=G),this):(this._root=re,this)}function h(V){for(var $=0,G=V.length;$<G;++$)this.remove(V[$]);return this}function d(){return this._root}function _(){var V=0;return this.visit(function($){if(!$.length)do++V;while($=$.next)}),V}function p(V){var $=[],G,z=this._root,K,re,ne,Q,ue;for(z&&$.push(new m(z,this._x0,this._y0,this._x1,this._y1));G=$.pop();)if(!V(z=G.node,re=G.x0,ne=G.y0,Q=G.x1,ue=G.y1)&&z.length){var he=(re+Q)/2,Ee=(ne+ue)/2;(K=z[3])&&$.push(new m(K,he,Ee,Q,ue)),(K=z[2])&&$.push(new m(K,re,Ee,he,ue)),(K=z[1])&&$.push(new m(K,he,ne,Q,Ee)),(K=z[0])&&$.push(new m(K,re,ne,he,Ee))}return this}function S(V){var $=[],G=[],z;for(this._root&&$.push(new m(this._root,this._x0,this._y0,this._x1,this._y1));z=$.pop();){var K=z.node;if(K.length){var re,ne=z.x0,Q=z.y0,ue=z.x1,he=z.y1,Ee=(ne+ue)/2,ce=(Q+he)/2;(re=K[0])&&$.push(new m(re,ne,Q,Ee,ce)),(re=K[1])&&$.push(new m(re,Ee,Q,ue,ce)),(re=K[2])&&$.push(new m(re,ne,ce,Ee,he)),(re=K[3])&&$.push(new m(re,Ee,ce,ue,he))}G.push(z)}for(;z=G.pop();)V(z.node,z.x0,z.y0,z.x1,z.y1);return this}function k(V){return V[0]}function O(V){return arguments.length?(this._x=V,this):this._x}function F(V){return V[1]}function D(V){return arguments.length?(this._y=V,this):this._y}function Z(V,$,G){var z=new W($==null?k:$,G==null?F:G,NaN,NaN,NaN,NaN);return V==null?z:z.addAll(V)}function W(V,$,G,z,K,re){this._x=V,this._y=$,this._x0=G,this._y0=z,this._x1=K,this._y1=re,this._root=void 0}function U(V){for(var $={data:V.data},G=$;V=V.next;)G=G.next={data:V.data};return $}var L=Z.prototype=W.prototype;L.copy=function(){var V=new W(this._x,this._y,this._x0,this._y0,this._x1,this._y1),$=this._root,G,z;if(!$)return V;if(!$.length)return V._root=U($),V;for(G=[{source:$,target:V._root=new Array(4)}];$=G.pop();)for(var K=0;K<4;++K)(z=$.source[K])&&(z.length?G.push({source:z,target:$.target[K]=new Array(4)}):$.target[K]=U(z));return V},L.add=x,L.addAll=A,L.cover=y,L.data=M,L.extent=w,L.find=b,L.remove=v,L.removeAll=h,L.root=d,L.size=_,L.visit=p,L.visitAfter=S,L.x=O,L.y=D},69979:function(oe,N,o){"use strict";o.r(N),o.d(N,{BRIDGE_GRAPH_NAME:function(){return _},GraphType:function(){return k},HierarchyNodeType:function(){return O},InclusionType:function(){return S},LAYOUT_CONFIG:function(){return b},NodeType:function(){return p},ROOT_NAME:function(){return d},buildGraph:function(){return Xl},flatGraph:function(){return Ol},getEdges:function(){return es},mergeConfig:function(){return v}});var x=o(91220),g=o(86582),A=o(81306),y=o(59206),M=o(2824),w=o(54941),m=o(69610),b={graph:{meta:{rankDir:"TB",nodeSep:50,rankSep:50,edgeSep:5,align:void 0}},subScene:{meta:{paddingTop:20,paddingBottom:20,paddingLeft:20,paddingRight:20,labelHeight:20}},nodeSize:{meta:{width:100,maxLabelWidth:0,height:20},node:{width:80,height:20,labelOffset:10,maxLabelWidth:40},bridge:{width:5,height:5,radius:2,labelOffset:0}}};function v(){var Ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b,yt,It,Sn,In,mr=JSON.parse(JSON.stringify(je)),Wr=((yt=Ft==null?void 0:Ft.graph)===null||yt===void 0?void 0:yt.meta)||{},Ir=((It=Ft==null?void 0:Ft.subScene)===null||It===void 0?void 0:It.meta)||{},Br=((Sn=Ft==null?void 0:Ft.nodeSize)===null||Sn===void 0?void 0:Sn.meta)||{},xa=((In=Ft==null?void 0:Ft.nodeSize)===null||In===void 0?void 0:In.node)||{},vi=mr.nodeSize.bridge;return{graph:{meta:Object.assign(mr.graph.meta,Wr)},subScene:{meta:Object.assign(mr.subScene.meta,Ir)},nodeSize:{meta:Object.assign(mr.nodeSize.meta,Br),node:Object.assign(mr.nodeSize.node,xa),bridge:vi}}}function h(Ft){return"\u25EC".concat(Ft,"\u25EC")}var d=h("ROOT"),_=h("BRIDGE_GRAPH"),p,S,k,O;(function(Ft){Ft[Ft.META=0]="META",Ft[Ft.NODE=1]="NODE",Ft[Ft.BRIDGE=2]="BRIDGE"})(p||(p={})),function(Ft){Ft[Ft.INCLUDE=0]="INCLUDE",Ft[Ft.EXCLUDE=1]="EXCLUDE",Ft[Ft.UNSPECIFIED=2]="UNSPECIFIED"}(S||(S={})),function(Ft){Ft[Ft.META=0]="META",Ft[Ft.CORE=1]="CORE",Ft[Ft.BRIDGE=2]="BRIDGE"}(k||(k={})),function(Ft){Ft[Ft.META=0]="META",Ft[Ft.OP=1]="OP",Ft[Ft.SERIES=2]="SERIES"}(O||(O={}));var F=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof o.g!="undefined"?o.g:typeof self!="undefined"?self:{};function D(Ft,je){return Ft(je={exports:{}},je.exports),je.exports}var Z=function(){this.__data__=[],this.size=0},W=function(je,yt){return je===yt||je!=je&&yt!=yt},U=function(je,yt){for(var It=je.length;It--;)if(W(je[It][0],yt))return It;return-1},L=Array.prototype.splice,V=function(je){var yt=this.__data__,It=U(yt,je);return!(It<0)&&(It==yt.length-1?yt.pop():L.call(yt,It,1),--this.size,!0)},$=function(je){var yt=this.__data__,It=U(yt,je);return It<0?void 0:yt[It][1]},G=function(je){return U(this.__data__,je)>-1},z=function(je,yt){var It=this.__data__,Sn=U(It,je);return Sn<0?(++this.size,It.push([je,yt])):It[Sn][1]=yt,this};function K(Ft){var je=-1,yt=Ft==null?0:Ft.length;for(this.clear();++je<yt;){var It=Ft[je];this.set(It[0],It[1])}}K.prototype.clear=Z,K.prototype.delete=V,K.prototype.get=$,K.prototype.has=G,K.prototype.set=z;var re=K,ne=function(){this.__data__=new re,this.size=0},Q=function(je){var yt=this.__data__,It=yt.delete(je);return this.size=yt.size,It},ue=function(je){return this.__data__.get(je)},he=function(je){return this.__data__.has(je)},Ee=typeof F=="object"&&F&&F.Object===Object&&F,ce=typeof self=="object"&&self&&self.Object===Object&&self,ve=Ee||ce||Function("return this")(),fe=ve.Symbol,we=Object.prototype,me=we.hasOwnProperty,Pe=we.toString,pe=fe?fe.toStringTag:void 0,Ie=function(je){var yt=me.call(je,pe),It=je[pe];try{je[pe]=void 0;var Sn=!0}catch(mr){}var In=Pe.call(je);return Sn&&(yt?je[pe]=It:delete je[pe]),In},Je=Object.prototype.toString,ke=function(je){return Je.call(je)},De=fe?fe.toStringTag:void 0,Fe=function(je){return je==null?je===void 0?"[object Undefined]":"[object Null]":De&&De in Object(je)?Ie(je):ke(je)},Qe=function(je){var yt=typeof je;return je!=null&&(yt=="object"||yt=="function")},qe,et=function(je){if(!Qe(je))return!1;var yt=Fe(je);return yt=="[object Function]"||yt=="[object GeneratorFunction]"||yt=="[object AsyncFunction]"||yt=="[object Proxy]"},dt=ve["__core-js_shared__"],Ke=(qe=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||""))?"Symbol(src)_1."+qe:"",Ge=function(je){return!!Ke&&Ke in je},wt=Function.prototype.toString,Vt=function(je){if(je!=null){try{return wt.call(je)}catch(yt){}try{return je+""}catch(yt){}}return""},gt=/^\[object .+?Constructor\]$/,it=Function.prototype,Le=Object.prototype,ct=it.toString,at=Le.hasOwnProperty,jt=RegExp("^"+ct.call(at).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),St=function(je){return!(!Qe(je)||Ge(je))&&(et(je)?jt:gt).test(Vt(je))},fn=function(je,yt){return je==null?void 0:je[yt]},Xt=function(je,yt){var It=fn(je,yt);return St(It)?It:void 0},Yt=Xt(ve,"Map"),Rt=Xt(Object,"create"),Lt=function(){this.__data__=Rt?Rt(null):{},this.size=0},ze=function(je){var yt=this.has(je)&&delete this.__data__[je];return this.size-=yt?1:0,yt},rt=Object.prototype.hasOwnProperty,tt=function(je){var yt=this.__data__;if(Rt){var It=yt[je];return It==="__lodash_hash_undefined__"?void 0:It}return rt.call(yt,je)?yt[je]:void 0},de=Object.prototype.hasOwnProperty,ot=function(je){var yt=this.__data__;return Rt?yt[je]!==void 0:de.call(yt,je)},Et=function(je,yt){var It=this.__data__;return this.size+=this.has(je)?0:1,It[je]=Rt&&yt===void 0?"__lodash_hash_undefined__":yt,this};function Ht(Ft){var je=-1,yt=Ft==null?0:Ft.length;for(this.clear();++je<yt;){var It=Ft[je];this.set(It[0],It[1])}}Ht.prototype.clear=Lt,Ht.prototype.delete=ze,Ht.prototype.get=tt,Ht.prototype.has=ot,Ht.prototype.set=Et;var Jt=Ht,Qt=function(){this.size=0,this.__data__={hash:new Jt,map:new(Yt||re),string:new Jt}},an=function(je){var yt=typeof je;return yt=="string"||yt=="number"||yt=="symbol"||yt=="boolean"?je!=="__proto__":je===null},Un=function(je,yt){var It=je.__data__;return an(yt)?It[typeof yt=="string"?"string":"hash"]:It.map},qt=function(je){var yt=Un(this,je).delete(je);return this.size-=yt?1:0,yt},rn=function(je){return Un(this,je).get(je)},cn=function(je){return Un(this,je).has(je)},er=function(je,yt){var It=Un(this,je),Sn=It.size;return It.set(je,yt),this.size+=It.size==Sn?0:1,this};function rr(Ft){var je=-1,yt=Ft==null?0:Ft.length;for(this.clear();++je<yt;){var It=Ft[je];this.set(It[0],It[1])}}rr.prototype.clear=Qt,rr.prototype.delete=qt,rr.prototype.get=rn,rr.prototype.has=cn,rr.prototype.set=er;var nt=rr,lr=function(je,yt){var It=this.__data__;if(It instanceof re){var Sn=It.__data__;if(!Yt||Sn.length<199)return Sn.push([je,yt]),this.size=++It.size,this;It=this.__data__=new nt(Sn)}return It.set(je,yt),this.size=It.size,this};function Hn(Ft){var je=this.__data__=new re(Ft);this.size=je.size}Hn.prototype.clear=ne,Hn.prototype.delete=Q,Hn.prototype.get=ue,Hn.prototype.has=he,Hn.prototype.set=lr;var ut=Hn,bt=function(je,yt){for(var It=-1,Sn=je==null?0:je.length;++It<Sn&&yt(je[It],It,je)!==!1;);return je},We=function(){try{var Ft=Xt(Object,"defineProperty");return Ft({},"",{}),Ft}catch(je){}}(),be=function(je,yt,It){yt=="__proto__"&&We?We(je,yt,{configurable:!0,enumerable:!0,value:It,writable:!0}):je[yt]=It},Ae=Object.prototype.hasOwnProperty,Ue=function(je,yt,It){var Sn=je[yt];Ae.call(je,yt)&&W(Sn,It)&&(It!==void 0||yt in je)||be(je,yt,It)},$e=function(je,yt,It,Sn){var In=!It;It||(It={});for(var mr=-1,Wr=yt.length;++mr<Wr;){var Ir=yt[mr],Br=Sn?Sn(It[Ir],je[Ir],Ir,It,je):void 0;Br===void 0&&(Br=je[Ir]),In?be(It,Ir,Br):Ue(It,Ir,Br)}return It},kt=function(je,yt){for(var It=-1,Sn=Array(je);++It<je;)Sn[It]=yt(It);return Sn},lt=function(je){return je!=null&&typeof je=="object"},vt=function(je){return lt(je)&&Fe(je)=="[object Arguments]"},Ct=Object.prototype,Bt=Ct.hasOwnProperty,mt=Ct.propertyIsEnumerable,Zt=vt(function(){return arguments}())?vt:function(Ft){return lt(Ft)&&Bt.call(Ft,"callee")&&!mt.call(Ft,"callee")},zt=Array.isArray,ln=function(){return!1},An=D(function(Ft,je){var yt=je&&!je.nodeType&&je,It=yt&&Ft&&!Ft.nodeType&&Ft,Sn=It&&It.exports===yt?ve.Buffer:void 0,In=(Sn?Sn.isBuffer:void 0)||ln;Ft.exports=In}),En=/^(?:0|[1-9]\d*)$/,Gn=function(je,yt){var It=typeof je;return!!(yt=yt==null?9007199254740991:yt)&&(It=="number"||It!="symbol"&&En.test(je))&&je>-1&&je%1==0&&je<yt},Bn=function(je){return typeof je=="number"&&je>-1&&je%1==0&&je<=9007199254740991},pr={};pr["[object Float32Array]"]=pr["[object Float64Array]"]=pr["[object Int8Array]"]=pr["[object Int16Array]"]=pr["[object Int32Array]"]=pr["[object Uint8Array]"]=pr["[object Uint8ClampedArray]"]=pr["[object Uint16Array]"]=pr["[object Uint32Array]"]=!0,pr["[object Arguments]"]=pr["[object Array]"]=pr["[object ArrayBuffer]"]=pr["[object Boolean]"]=pr["[object DataView]"]=pr["[object Date]"]=pr["[object Error]"]=pr["[object Function]"]=pr["[object Map]"]=pr["[object Number]"]=pr["[object Object]"]=pr["[object RegExp]"]=pr["[object Set]"]=pr["[object String]"]=pr["[object WeakMap]"]=!1;var _r=function(je){return lt(je)&&Bn(je.length)&&!!pr[Fe(je)]},na=function(je){return function(yt){return je(yt)}},$n=D(function(Ft,je){var yt=je&&!je.nodeType&&je,It=yt&&Ft&&!Ft.nodeType&&Ft,Sn=It&&It.exports===yt&&Ee.process,In=function(){try{var mr=It&&It.require&&It.require("util").types;return mr||Sn&&Sn.binding&&Sn.binding("util")}catch(Wr){}}();Ft.exports=In}),qr=$n&&$n.isTypedArray,Jr=qr?na(qr):_r,Aa=Object.prototype.hasOwnProperty,ya=function(je,yt){var It=zt(je),Sn=!It&&Zt(je),In=!It&&!Sn&&An(je),mr=!It&&!Sn&&!In&&Jr(je),Wr=It||Sn||In||mr,Ir=Wr?kt(je.length,String):[],Br=Ir.length;for(var xa in je)!yt&&!Aa.call(je,xa)||Wr&&(xa=="length"||In&&(xa=="offset"||xa=="parent")||mr&&(xa=="buffer"||xa=="byteLength"||xa=="byteOffset")||Gn(xa,Br))||Ir.push(xa);return Ir},$t=Object.prototype,wn=function(je){var yt=je&&je.constructor;return je===(typeof yt=="function"&&yt.prototype||$t)},Fn=function(je,yt){return function(It){return je(yt(It))}},Or=Fn(Object.keys,Object),vr=Object.prototype.hasOwnProperty,Ur=function(je){if(!wn(je))return Or(je);var yt=[];for(var It in Object(je))vr.call(je,It)&&It!="constructor"&&yt.push(It);return yt},Zr=function(je){return je!=null&&Bn(je.length)&&!et(je)},Kr=function(je){return Zr(je)?ya(je):Ur(je)},ba=function(je,yt){return je&&$e(yt,Kr(yt),je)},Ri=function(je){var yt=[];if(je!=null)for(var It in Object(je))yt.push(It);return yt},Ea=Object.prototype.hasOwnProperty,Pi=function(je){if(!Qe(je))return Ri(je);var yt=wn(je),It=[];for(var Sn in je)(Sn!="constructor"||!yt&&Ea.call(je,Sn))&&It.push(Sn);return It},rs=function(je){return Zr(je)?ya(je,!0):Pi(je)},Ui=function(je,yt){return je&&$e(yt,rs(yt),je)},Cn=D(function(Ft,je){var yt=je&&!je.nodeType&&je,It=yt&&Ft&&!Ft.nodeType&&Ft,Sn=It&&It.exports===yt?ve.Buffer:void 0,In=Sn?Sn.allocUnsafe:void 0;Ft.exports=function(mr,Wr){if(Wr)return mr.slice();var Ir=mr.length,Br=In?In(Ir):new mr.constructor(Ir);return mr.copy(Br),Br}}),Kn=function(je,yt){var It=-1,Sn=je.length;for(yt||(yt=Array(Sn));++It<Sn;)yt[It]=je[It];return yt},Pn=function(je,yt){for(var It=-1,Sn=je==null?0:je.length,In=0,mr=[];++It<Sn;){var Wr=je[It];yt(Wr,It,je)&&(mr[In++]=Wr)}return mr},At=function(){return[]},ar=Object.prototype.propertyIsEnumerable,ta=Object.getOwnPropertySymbols,Yn=ta?function(Ft){return Ft==null?[]:(Ft=Object(Ft),Pn(ta(Ft),function(je){return ar.call(Ft,je)}))}:At,Qa=function(je,yt){return $e(je,Yn(je),yt)},Ua=function(je,yt){for(var It=-1,Sn=yt.length,In=je.length;++It<Sn;)je[In+It]=yt[It];return je},Fi=Fn(Object.getPrototypeOf,Object),Xa=Object.getOwnPropertySymbols?function(Ft){for(var je=[];Ft;)Ua(je,Yn(Ft)),Ft=Fi(Ft);return je}:At,$i=function(je,yt){return $e(je,Xa(je),yt)},La=function(je,yt,It){var Sn=yt(je);return zt(je)?Sn:Ua(Sn,It(je))},ja=function(je){return La(je,Kr,Yn)},ei=function(je){return La(je,rs,Xa)},Do=Xt(ve,"DataView"),yo=Xt(ve,"Promise"),to=Xt(ve,"Set"),fs=Xt(ve,"WeakMap"),cs=Vt(Do),Os=Vt(Yt),vl=Vt(yo),Ar=Vt(to),Rn=Vt(fs),Sr=Fe;(Do&&Sr(new Do(new ArrayBuffer(1)))!="[object DataView]"||Yt&&Sr(new Yt)!="[object Map]"||yo&&Sr(yo.resolve())!="[object Promise]"||to&&Sr(new to)!="[object Set]"||fs&&Sr(new fs)!="[object WeakMap]")&&(Sr=function(je){var yt=Fe(je),It=yt=="[object Object]"?je.constructor:void 0,Sn=It?Vt(It):"";if(Sn)switch(Sn){case cs:return"[object DataView]";case Os:return"[object Map]";case vl:return"[object Promise]";case Ar:return"[object Set]";case Rn:return"[object WeakMap]"}return yt});var nn=Sr,sn=Object.prototype.hasOwnProperty,Ot=function(je){var yt=je.length,It=new je.constructor(yt);return yt&&typeof je[0]=="string"&&sn.call(je,"index")&&(It.index=je.index,It.input=je.input),It},gr=ve.Uint8Array,Gr=function(je){var yt=new je.constructor(je.byteLength);return new gr(yt).set(new gr(je)),yt},Ln=function(je,yt){var It=yt?Gr(je.buffer):je.buffer;return new je.constructor(It,je.byteOffset,je.byteLength)},Tr=/\w*$/,Dn=function(je){var yt=new je.constructor(je.source,Tr.exec(je));return yt.lastIndex=je.lastIndex,yt},Pr=fe?fe.prototype:void 0,fa=Pr?Pr.valueOf:void 0,ka=function(je){return fa?Object(fa.call(je)):{}},Li=function(je,yt){var It=yt?Gr(je.buffer):je.buffer;return new je.constructor(It,je.byteOffset,je.length)},zi=function(je,yt,It){var Sn=je.constructor;switch(yt){case"[object ArrayBuffer]":return Gr(je);case"[object Boolean]":case"[object Date]":return new Sn(+je);case"[object DataView]":return Ln(je,It);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Li(je,It);case"[object Map]":return new Sn;case"[object Number]":case"[object String]":return new Sn(je);case"[object RegExp]":return Dn(je);case"[object Set]":return new Sn;case"[object Symbol]":return ka(je)}},Mo=Object.create,Za=function(){function Ft(){}return function(je){if(!Qe(je))return{};if(Mo)return Mo(je);Ft.prototype=je;var yt=new Ft;return Ft.prototype=void 0,yt}}(),ao=function(je){return typeof je.constructor!="function"||wn(je)?{}:Za(Fi(je))},Mi=function(je){return lt(je)&&nn(je)=="[object Map]"},Eo=$n&&$n.isMap,Xi=Eo?na(Eo):Mi,Bo=function(je){return lt(je)&&nn(je)=="[object Set]"},ol=$n&&$n.isSet,Il=ol?na(ol):Bo,ms={};ms["[object Arguments]"]=ms["[object Array]"]=ms["[object ArrayBuffer]"]=ms["[object DataView]"]=ms["[object Boolean]"]=ms["[object Date]"]=ms["[object Float32Array]"]=ms["[object Float64Array]"]=ms["[object Int8Array]"]=ms["[object Int16Array]"]=ms["[object Int32Array]"]=ms["[object Map]"]=ms["[object Number]"]=ms["[object Object]"]=ms["[object RegExp]"]=ms["[object Set]"]=ms["[object String]"]=ms["[object Symbol]"]=ms["[object Uint8Array]"]=ms["[object Uint8ClampedArray]"]=ms["[object Uint16Array]"]=ms["[object Uint32Array]"]=!0,ms["[object Error]"]=ms["[object Function]"]=ms["[object WeakMap]"]=!1;var mc=function Ft(je,yt,It,Sn,In,mr){var Wr,Ir=1&yt,Br=2&yt,xa=4&yt;if(It&&(Wr=In?It(je,Sn,In,mr):It(je)),Wr!==void 0)return Wr;if(!Qe(je))return je;var vi=zt(je);if(vi){if(Wr=Ot(je),!Ir)return Kn(je,Wr)}else{var Ai=nn(je),Yi=Ai=="[object Function]"||Ai=="[object GeneratorFunction]";if(An(je))return Cn(je,Ir);if(Ai=="[object Object]"||Ai=="[object Arguments]"||Yi&&!In){if(Wr=Br||Yi?{}:ao(je),!Ir)return Br?$i(je,Ui(Wr,je)):Qa(je,ba(Wr,je))}else{if(!ms[Ai])return In?je:{};Wr=zi(je,Ai,Ir)}}mr||(mr=new ut);var Wo=mr.get(je);if(Wo)return Wo;mr.set(je,Wr),Il(je)?je.forEach(function(ys){Wr.add(Ft(ys,yt,It,ys,je,mr))}):Xi(je)&&je.forEach(function(ys,qs){Wr.set(qs,Ft(ys,yt,It,qs,je,mr))});var _s=vi?void 0:(xa?Br?ei:ja:Br?rs:Kr)(je);return bt(_s||je,function(ys,qs){_s&&(ys=je[qs=ys]),Ue(Wr,qs,Ft(ys,yt,It,qs,je,mr))}),Wr},Ys=function(je){return mc(je,4)},hl=function(je){return function(){return je}},Rs=function(Ft){return function(je,yt,It){for(var Sn=-1,In=Object(je),mr=It(je),Wr=mr.length;Wr--;){var Ir=mr[Ft?Wr:++Sn];if(yt(In[Ir],Ir,In)===!1)break}return je}}(),xl=function(je,yt){return je&&Rs(je,yt,Kr)},Wl=function(Ft,je){return function(yt,It){if(yt==null)return yt;if(!Zr(yt))return Ft(yt,It);for(var Sn=yt.length,In=je?Sn:-1,mr=Object(yt);(je?In--:++In<Sn)&&It(mr[In],In,mr)!==!1;);return yt}}(xl),_l=function(je){return je},Ls=function(je){return typeof je=="function"?je:_l},zn=function(je,yt){return(zt(je)?bt:Wl)(je,Ls(yt))},Dr=zn,Hr=function(je,yt){var It=[];return Wl(je,function(Sn,In,mr){yt(Sn,In,mr)&&It.push(Sn)}),It},_a=function(je){return this.__data__.set(je,"__lodash_hash_undefined__"),this},Ti=function(je){return this.__data__.has(je)};function Ci(Ft){var je=-1,yt=Ft==null?0:Ft.length;for(this.__data__=new nt;++je<yt;)this.add(Ft[je])}Ci.prototype.add=Ci.prototype.push=_a,Ci.prototype.has=Ti;var da=Ci,Da=function(je,yt){for(var It=-1,Sn=je==null?0:je.length;++It<Sn;)if(yt(je[It],It,je))return!0;return!1},mi=function(je,yt){return je.has(yt)},Ho=function(je,yt,It,Sn,In,mr){var Wr=1&It,Ir=je.length,Br=yt.length;if(Ir!=Br&&!(Wr&&Br>Ir))return!1;var xa=mr.get(je),vi=mr.get(yt);if(xa&&vi)return xa==yt&&vi==je;var Ai=-1,Yi=!0,Wo=2&It?new da:void 0;for(mr.set(je,yt),mr.set(yt,je);++Ai<Ir;){var _s=je[Ai],ys=yt[Ai];if(Sn)var qs=Wr?Sn(ys,_s,Ai,yt,je,mr):Sn(_s,ys,Ai,je,yt,mr);if(qs!==void 0){if(qs)continue;Yi=!1;break}if(Wo){if(!Da(yt,function(uc,du){if(!mi(Wo,du)&&(_s===uc||In(_s,uc,It,Sn,mr)))return Wo.push(du)})){Yi=!1;break}}else if(_s!==ys&&!In(_s,ys,It,Sn,mr)){Yi=!1;break}}return mr.delete(je),mr.delete(yt),Yi},al=function(je){var yt=-1,It=Array(je.size);return je.forEach(function(Sn,In){It[++yt]=[In,Sn]}),It},ml=function(je){var yt=-1,It=Array(je.size);return je.forEach(function(Sn){It[++yt]=Sn}),It},Xs=fe?fe.prototype:void 0,Ps=Xs?Xs.valueOf:void 0,dl=function(je,yt,It,Sn,In,mr,Wr){switch(It){case"[object DataView]":if(je.byteLength!=yt.byteLength||je.byteOffset!=yt.byteOffset)return!1;je=je.buffer,yt=yt.buffer;case"[object ArrayBuffer]":return!(je.byteLength!=yt.byteLength||!mr(new gr(je),new gr(yt)));case"[object Boolean]":case"[object Date]":case"[object Number]":return W(+je,+yt);case"[object Error]":return je.name==yt.name&&je.message==yt.message;case"[object RegExp]":case"[object String]":return je==yt+"";case"[object Map]":var Ir=al;case"[object Set]":var Br=1&Sn;if(Ir||(Ir=ml),je.size!=yt.size&&!Br)return!1;var xa=Wr.get(je);if(xa)return xa==yt;Sn|=2,Wr.set(je,yt);var vi=Ho(Ir(je),Ir(yt),Sn,In,mr,Wr);return Wr.delete(je),vi;case"[object Symbol]":if(Ps)return Ps.call(je)==Ps.call(yt)}return!1},ql=Object.prototype.hasOwnProperty,Dc=function(je,yt,It,Sn,In,mr){var Wr=1&It,Ir=ja(je),Br=Ir.length;if(Br!=ja(yt).length&&!Wr)return!1;for(var xa=Br;xa--;){var vi=Ir[xa];if(!(Wr?vi in yt:ql.call(yt,vi)))return!1}var Ai=mr.get(je),Yi=mr.get(yt);if(Ai&&Yi)return Ai==yt&&Yi==je;var Wo=!0;mr.set(je,yt),mr.set(yt,je);for(var _s=Wr;++xa<Br;){var ys=je[vi=Ir[xa]],qs=yt[vi];if(Sn)var uc=Wr?Sn(qs,ys,vi,yt,je,mr):Sn(ys,qs,vi,je,yt,mr);if(!(uc===void 0?ys===qs||In(ys,qs,It,Sn,mr):uc)){Wo=!1;break}_s||(_s=vi=="constructor")}if(Wo&&!_s){var du=je.constructor,Pc=yt.constructor;du==Pc||!("constructor"in je)||!("constructor"in yt)||typeof du=="function"&&du instanceof du&&typeof Pc=="function"&&Pc instanceof Pc||(Wo=!1)}return mr.delete(je),mr.delete(yt),Wo},Jl=Object.prototype.hasOwnProperty,oc=function(je,yt,It,Sn,In,mr){var Wr=zt(je),Ir=zt(yt),Br=Wr?"[object Array]":nn(je),xa=Ir?"[object Array]":nn(yt),vi=(Br=Br=="[object Arguments]"?"[object Object]":Br)=="[object Object]",Ai=(xa=xa=="[object Arguments]"?"[object Object]":xa)=="[object Object]",Yi=Br==xa;if(Yi&&An(je)){if(!An(yt))return!1;Wr=!0,vi=!1}if(Yi&&!vi)return mr||(mr=new ut),Wr||Jr(je)?Ho(je,yt,It,Sn,In,mr):dl(je,yt,Br,It,Sn,In,mr);if(!(1&It)){var Wo=vi&&Jl.call(je,"__wrapped__"),_s=Ai&&Jl.call(yt,"__wrapped__");if(Wo||_s){var ys=Wo?je.value():je,qs=_s?yt.value():yt;return mr||(mr=new ut),In(ys,qs,It,Sn,mr)}}return!!Yi&&(mr||(mr=new ut),Dc(je,yt,It,Sn,In,mr))},xu=function Ft(je,yt,It,Sn,In){return je===yt||(je==null||yt==null||!lt(je)&&!lt(yt)?je!=je&&yt!=yt:oc(je,yt,It,Sn,Ft,In))},yf=function(je,yt,It,Sn){var In=It.length,mr=In,Wr=!Sn;if(je==null)return!mr;for(je=Object(je);In--;){var Ir=It[In];if(Wr&&Ir[2]?Ir[1]!==je[Ir[0]]:!(Ir[0]in je))return!1}for(;++In<mr;){var Br=(Ir=It[In])[0],xa=je[Br],vi=Ir[1];if(Wr&&Ir[2]){if(xa===void 0&&!(Br in je))return!1}else{var Ai=new ut;if(Sn)var Yi=Sn(xa,vi,Br,je,yt,Ai);if(!(Yi===void 0?xu(vi,xa,3,Sn,Ai):Yi))return!1}}return!0},ku=function(je){return je==je&&!Qe(je)},Zc=function(je){for(var yt=Kr(je),It=yt.length;It--;){var Sn=yt[It],In=je[Sn];yt[It]=[Sn,In,ku(In)]}return yt},Zu=function(je,yt){return function(It){return It!=null&&It[je]===yt&&(yt!==void 0||je in Object(It))}},Fc=function(je){var yt=Zc(je);return yt.length==1&&yt[0][2]?Zu(yt[0][0],yt[0][1]):function(It){return It===je||yf(It,je,yt)}},Hc=function(je){return typeof je=="symbol"||lt(je)&&Fe(je)=="[object Symbol]"},Vu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ws=/^\w*$/,fc=function(je,yt){if(zt(je))return!1;var It=typeof je;return!(It!="number"&&It!="symbol"&&It!="boolean"&&je!=null&&!Hc(je))||ws.test(je)||!Vu.test(je)||yt!=null&&je in Object(yt)};function Tc(Ft,je){if(typeof Ft!="function"||je!=null&&typeof je!="function")throw new TypeError("Expected a function");var yt=function It(){var Sn=arguments,In=je?je.apply(this,Sn):Sn[0],mr=It.cache;if(mr.has(In))return mr.get(In);var Wr=Ft.apply(this,Sn);return It.cache=mr.set(In,Wr)||mr,Wr};return yt.cache=new(Tc.Cache||nt),yt}Tc.Cache=nt;var jc=Tc,lu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hu=/\\(\\)?/g,of=function(Ft){var je=jc(Ft,function(It){return yt.size===500&&yt.clear(),It}),yt=je.cache;return je}(function(Ft){var je=[];return Ft.charCodeAt(0)===46&&je.push(""),Ft.replace(lu,function(yt,It,Sn,In){je.push(Sn?In.replace(hu,"$1"):It||yt)}),je}),uu=function(je,yt){for(var It=-1,Sn=je==null?0:je.length,In=Array(Sn);++It<Sn;)In[It]=yt(je[It],It,je);return In},zu=fe?fe.prototype:void 0,cf=zu?zu.toString:void 0,bf=function Ft(je){if(typeof je=="string")return je;if(zt(je))return uu(je,Ft)+"";if(Hc(je))return cf?cf.call(je):"";var yt=je+"";return yt=="0"&&1/je==-Infinity?"-0":yt},Cu=function(je){return je==null?"":bf(je)},rf=function(je,yt){return zt(je)?je:fc(je,yt)?[je]:of(Cu(je))},Bu=function(je){if(typeof je=="string"||Hc(je))return je;var yt=je+"";return yt=="0"&&1/je==-Infinity?"-0":yt},Tf=function(je,yt){for(var It=0,Sn=(yt=rf(yt,je)).length;je!=null&&It<Sn;)je=je[Bu(yt[It++])];return It&&It==Sn?je:void 0},ed=function(je,yt,It){var Sn=je==null?void 0:Tf(je,yt);return Sn===void 0?It:Sn},Fd=function(je,yt){return je!=null&&yt in Object(je)},Pd=function(je,yt,It){for(var Sn=-1,In=(yt=rf(yt,je)).length,mr=!1;++Sn<In;){var Wr=Bu(yt[Sn]);if(!(mr=je!=null&&It(je,Wr)))break;je=je[Wr]}return mr||++Sn!=In?mr:!!(In=je==null?0:je.length)&&Bn(In)&&Gn(Wr,In)&&(zt(je)||Zt(je))},Nc=function(je,yt){return je!=null&&Pd(je,yt,Fd)},eu=function(je,yt){return fc(je)&&ku(yt)?Zu(Bu(je),yt):function(It){var Sn=ed(It,je);return Sn===void 0&&Sn===yt?Nc(It,je):xu(yt,Sn,3)}},If=function(je){return function(yt){return yt==null?void 0:yt[je]}},$f=function(je){return function(yt){return Tf(yt,je)}},Te=function(je){return fc(je)?If(Bu(je)):$f(je)},_t=function(je){return typeof je=="function"?je:je==null?_l:typeof je=="object"?zt(je)?eu(je[0],je[1]):Fc(je):Te(je)},Vn=function(je,yt){return(zt(je)?Pn:Hr)(je,_t(yt))},br=Object.prototype.hasOwnProperty,tn=function(je,yt){return je!=null&&br.call(je,yt)},Pt=function(je,yt){return je!=null&&Pd(je,yt,tn)},on=Object.prototype.hasOwnProperty,_n=function(je){if(je==null)return!0;if(Zr(je)&&(zt(je)||typeof je=="string"||typeof je.splice=="function"||An(je)||Jr(je)||Zt(je)))return!je.length;var yt=nn(je);if(yt=="[object Map]"||yt=="[object Set]")return!je.size;if(wn(je))return!Ur(je).length;for(var It in je)if(on.call(je,It))return!1;return!0},ir=function(je){return je===void 0},xr=function(je,yt){var It=-1,Sn=Zr(je)?Array(je.length):[];return Wl(je,function(In,mr,Wr){Sn[++It]=yt(In,mr,Wr)}),Sn},aa=function(je,yt){return(zt(je)?uu:xr)(je,_t(yt))},oi=function(je,yt,It,Sn){var In=-1,mr=je==null?0:je.length;for(Sn&&mr&&(It=je[++In]);++In<mr;)It=yt(It,je[In],In,je);return It},ni=function(je,yt,It,Sn,In){return In(je,function(mr,Wr,Ir){It=Sn?(Sn=!1,mr):yt(It,mr,Wr,Ir)}),It},yi=function(je,yt,It){var Sn=zt(je)?oi:ni,In=arguments.length<3;return Sn(je,_t(yt),It,In,Wl)},Zo=function(je){return typeof je=="string"||!zt(je)&<(je)&&Fe(je)=="[object String]"},is=If("length"),mo=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Ml=function(je){return mo.test(je)},yc="[\\ud800-\\udfff]",oa="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",sl="\\ud83c[\\udffb-\\udfff]",fl="[^\\ud800-\\udfff]",bc="(?:\\ud83c[\\udde6-\\uddff]){2}",Rf="[\\ud800-\\udbff][\\udc00-\\udfff]",Ms="(?:"+oa+"|"+sl+")?",ff="[\\ufe0e\\ufe0f]?"+Ms+("(?:\\u200d(?:"+[fl,bc,Rf].join("|")+")[\\ufe0e\\ufe0f]?"+Ms+")*"),Df="(?:"+[fl+oa+"?",oa,bc,Rf,yc].join("|")+")",Ff=RegExp(sl+"(?="+sl+")|"+Df+ff,"g"),Kf=function(je){for(var yt=Ff.lastIndex=0;Ff.test(je);)++yt;return yt},xf=function(je){return Ml(je)?Kf(je):is(je)},Sc=function(je){if(je==null)return 0;if(Zr(je))return Zo(je)?xf(je):je.length;var yt=nn(je);return yt=="[object Map]"||yt=="[object Set]"?je.size:Ur(je).length},Wu=function(je,yt,It){var Sn=zt(je),In=Sn||An(je)||Jr(je);if(yt=_t(yt),It==null){var mr=je&&je.constructor;It=In?Sn?new mr:[]:Qe(je)&&et(mr)?Za(Fi(je)):{}}return(In?bt:xl)(je,function(Wr,Ir,Br){return yt(It,Wr,Ir,Br)}),It},Du=fe?fe.isConcatSpreadable:void 0,Gd=function(je){return zt(je)||Zt(je)||!!(Du&&je&&je[Du])},gf=function Ft(je,yt,It,Sn,In){var mr=-1,Wr=je.length;for(It||(It=Gd),In||(In=[]);++mr<Wr;){var Ir=je[mr];yt>0&&It(Ir)?yt>1?Ft(Ir,yt-1,It,Sn,In):Ua(In,Ir):Sn||(In[In.length]=Ir)}return In},Vp=function(je,yt,It){switch(It.length){case 0:return je.call(yt);case 1:return je.call(yt,It[0]);case 2:return je.call(yt,It[0],It[1]);case 3:return je.call(yt,It[0],It[1],It[2])}return je.apply(yt,It)},$c=Math.max,Yl=function(je,yt,It){return yt=$c(yt===void 0?je.length-1:yt,0),function(){for(var Sn=arguments,In=-1,mr=$c(Sn.length-yt,0),Wr=Array(mr);++In<mr;)Wr[In]=Sn[yt+In];In=-1;for(var Ir=Array(yt+1);++In<yt;)Ir[In]=Sn[In];return Ir[yt]=It(Wr),Vp(je,this,Ir)}},Sp=We?function(Ft,je){return We(Ft,"toString",{configurable:!0,enumerable:!1,value:hl(je),writable:!0})}:_l,tp=Date.now,Rp=function(Ft){var je=0,yt=0;return function(){var It=tp(),Sn=16-(It-yt);if(yt=It,Sn>0){if(++je>=800)return arguments[0]}else je=0;return Ft.apply(void 0,arguments)}}(Sp),df=function(je,yt){return Rp(Yl(je,yt,_l),je+"")},uf=function(je,yt,It,Sn){for(var In=je.length,mr=It+(Sn?1:-1);Sn?mr--:++mr<In;)if(yt(je[mr],mr,je))return mr;return-1},Af=function(je){return je!=je},Wn=function(je,yt,It){for(var Sn=It-1,In=je.length;++Sn<In;)if(je[Sn]===yt)return Sn;return-1},ca=function(je,yt,It){return yt==yt?Wn(je,yt,It):uf(je,Af,It)},ra=function(je,yt){return!!(je==null?0:je.length)&&ca(je,yt,0)>-1},Na=function(je,yt,It){for(var Sn=-1,In=je==null?0:je.length;++Sn<In;)if(It(yt,je[Sn]))return!0;return!1},fi=function(){},so=to&&1/ml(new to([,-0]))[1]==1/0?function(Ft){return new to(Ft)}:fi,vo=function(je,yt,It){var Sn=-1,In=ra,mr=je.length,Wr=!0,Ir=[],Br=Ir;if(It)Wr=!1,In=Na;else if(mr>=200){var xa=yt?null:so(je);if(xa)return ml(xa);Wr=!1,In=mi,Br=new da}else Br=yt?[]:Ir;e:for(;++Sn<mr;){var vi=je[Sn],Ai=yt?yt(vi):vi;if(vi=It||vi!==0?vi:0,Wr&&Ai==Ai){for(var Yi=Br.length;Yi--;)if(Br[Yi]===Ai)continue e;yt&&Br.push(Ai),Ir.push(vi)}else In(Br,Ai,It)||(Br!==Ir&&Br.push(Ai),Ir.push(vi))}return Ir},Ro=function(je){return lt(je)&&Zr(je)},So=df(function(Ft){return vo(gf(Ft,1,Ro,!0))}),el=function(je,yt){return uu(yt,function(It){return je[It]})},ul,Xo=function(je){return je==null?[]:el(je,Kr(je))};try{ul={clone:Ys,constant:hl,each:Dr,filter:Vn,has:Pt,isArray:zt,isEmpty:_n,isFunction:et,isUndefined:ir,keys:Kr,map:aa,reduce:yi,size:Sc,transform:Wu,union:So,values:Xo}}catch(Ft){}ul||(ul=window._);var lo=ul,Zs=Gs;function Gs(Ft){this._isDirected=!lo.has(Ft,"directed")||Ft.directed,this._isMultigraph=!!lo.has(Ft,"multigraph")&&Ft.multigraph,this._isCompound=!!lo.has(Ft,"compound")&&Ft.compound,this._label=void 0,this._defaultNodeLabelFn=lo.constant(void 0),this._defaultEdgeLabelFn=lo.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function $s(Ft,je){Ft[je]?Ft[je]++:Ft[je]=1}function Qn(Ft,je){--Ft[je]||delete Ft[je]}function dr(Ft,je,yt,It){var Sn=""+je,In=""+yt;if(!Ft&&Sn>In){var mr=Sn;Sn=In,In=mr}return Sn+""+In+""+(lo.isUndefined(It)?"\0":It)}function Xr(Ft,je,yt,It){var Sn=""+je,In=""+yt;if(!Ft&&Sn>In){var mr=Sn;Sn=In,In=mr}var Wr={v:Sn,w:In};return It&&(Wr.name=It),Wr}function la(Ft,je){return dr(Ft,je.v,je.w,je.name)}Gs.prototype._nodeCount=0,Gs.prototype._edgeCount=0,Gs.prototype.isDirected=function(){return this._isDirected},Gs.prototype.isMultigraph=function(){return this._isMultigraph},Gs.prototype.isCompound=function(){return this._isCompound},Gs.prototype.setGraph=function(Ft){return this._label=Ft,this},Gs.prototype.graph=function(){return this._label},Gs.prototype.setDefaultNodeLabel=function(Ft){return lo.isFunction(Ft)||(Ft=lo.constant(Ft)),this._defaultNodeLabelFn=Ft,this},Gs.prototype.nodeCount=function(){return this._nodeCount},Gs.prototype.nodes=function(){return lo.keys(this._nodes)},Gs.prototype.sources=function(){var Ft=this;return lo.filter(this.nodes(),function(je){return lo.isEmpty(Ft._in[je])})},Gs.prototype.sinks=function(){var Ft=this;return lo.filter(this.nodes(),function(je){return lo.isEmpty(Ft._out[je])})},Gs.prototype.setNodes=function(Ft,je){var yt=arguments,It=this;return lo.each(Ft,function(Sn){yt.length>1?It.setNode(Sn,je):It.setNode(Sn)}),this},Gs.prototype.setNode=function(Ft,je){return lo.has(this._nodes,Ft)?(arguments.length>1&&(this._nodes[Ft]=je),this):(this._nodes[Ft]=arguments.length>1?je:this._defaultNodeLabelFn(Ft),this._isCompound&&(this._parent[Ft]="\0",this._children[Ft]={},this._children["\0"][Ft]=!0),this._in[Ft]={},this._preds[Ft]={},this._out[Ft]={},this._sucs[Ft]={},++this._nodeCount,this)},Gs.prototype.node=function(Ft){return this._nodes[Ft]},Gs.prototype.hasNode=function(Ft){return lo.has(this._nodes,Ft)},Gs.prototype.removeNode=function(Ft){var je=this;if(lo.has(this._nodes,Ft)){var yt=function(Sn){je.removeEdge(je._edgeObjs[Sn])};delete this._nodes[Ft],this._isCompound&&(this._removeFromParentsChildList(Ft),delete this._parent[Ft],lo.each(this.children(Ft),function(It){je.setParent(It)}),delete this._children[Ft]),lo.each(lo.keys(this._in[Ft]),yt),delete this._in[Ft],delete this._preds[Ft],lo.each(lo.keys(this._out[Ft]),yt),delete this._out[Ft],delete this._sucs[Ft],--this._nodeCount}return this},Gs.prototype.setParent=function(Ft,je){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(lo.isUndefined(je))je="\0";else{for(var yt=je+="";!lo.isUndefined(yt);yt=this.parent(yt))if(yt===Ft)throw new Error("Setting "+je+" as parent of "+Ft+" would create a cycle");this.setNode(je)}return this.setNode(Ft),this._removeFromParentsChildList(Ft),this._parent[Ft]=je,this._children[je][Ft]=!0,this},Gs.prototype._removeFromParentsChildList=function(Ft){delete this._children[this._parent[Ft]][Ft]},Gs.prototype.parent=function(Ft){if(this._isCompound){var je=this._parent[Ft];if(je!=="\0")return je}},Gs.prototype.children=function(Ft){if(lo.isUndefined(Ft)&&(Ft="\0"),this._isCompound){var je=this._children[Ft];if(je)return lo.keys(je)}else{if(Ft==="\0")return this.nodes();if(this.hasNode(Ft))return[]}},Gs.prototype.predecessors=function(Ft){var je=this._preds[Ft];if(je)return lo.keys(je)},Gs.prototype.successors=function(Ft){var je=this._sucs[Ft];if(je)return lo.keys(je)},Gs.prototype.neighbors=function(Ft){var je=this.predecessors(Ft);if(je)return lo.union(je,this.successors(Ft))},Gs.prototype.isLeaf=function(Ft){return(this.isDirected()?this.successors(Ft):this.neighbors(Ft)).length===0},Gs.prototype.filterNodes=function(Ft){var je=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});je.setGraph(this.graph());var yt=this;lo.each(this._nodes,function(In,mr){Ft(mr)&&je.setNode(mr,In)}),lo.each(this._edgeObjs,function(In){je.hasNode(In.v)&&je.hasNode(In.w)&&je.setEdge(In,yt.edge(In))});var It={};function Sn(In){var mr=yt.parent(In);return mr===void 0||je.hasNode(mr)?(It[In]=mr,mr):mr in It?It[mr]:Sn(mr)}return this._isCompound&&lo.each(je.nodes(),function(In){je.setParent(In,Sn(In))}),je},Gs.prototype.setDefaultEdgeLabel=function(Ft){return lo.isFunction(Ft)||(Ft=lo.constant(Ft)),this._defaultEdgeLabelFn=Ft,this},Gs.prototype.edgeCount=function(){return this._edgeCount},Gs.prototype.edges=function(){return lo.values(this._edgeObjs)},Gs.prototype.setPath=function(Ft,je){var yt=this,It=arguments;return lo.reduce(Ft,function(Sn,In){return It.length>1?yt.setEdge(Sn,In,je):yt.setEdge(Sn,In),In}),this},Gs.prototype.setEdge=function(){var Ft,je,yt,It,Sn=!1,In=arguments[0];typeof In=="object"&&In!==null&&"v"in In?(Ft=In.v,je=In.w,yt=In.name,arguments.length===2&&(It=arguments[1],Sn=!0)):(Ft=In,je=arguments[1],yt=arguments[3],arguments.length>2&&(It=arguments[2],Sn=!0)),Ft=""+Ft,je=""+je,lo.isUndefined(yt)||(yt=""+yt);var mr=dr(this._isDirected,Ft,je,yt);if(lo.has(this._edgeLabels,mr))return Sn&&(this._edgeLabels[mr]=It),this;if(!lo.isUndefined(yt)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(Ft),this.setNode(je),this._edgeLabels[mr]=Sn?It:this._defaultEdgeLabelFn(Ft,je,yt);var Wr=Xr(this._isDirected,Ft,je,yt);return Ft=Wr.v,je=Wr.w,Object.freeze(Wr),this._edgeObjs[mr]=Wr,$s(this._preds[je],Ft),$s(this._sucs[Ft],je),this._in[je][mr]=Wr,this._out[Ft][mr]=Wr,this._edgeCount++,this},Gs.prototype.edge=function(Ft,je,yt){var It=arguments.length===1?la(this._isDirected,arguments[0]):dr(this._isDirected,Ft,je,yt);return this._edgeLabels[It]},Gs.prototype.hasEdge=function(Ft,je,yt){var It=arguments.length===1?la(this._isDirected,arguments[0]):dr(this._isDirected,Ft,je,yt);return lo.has(this._edgeLabels,It)},Gs.prototype.removeEdge=function(Ft,je,yt){var It=arguments.length===1?la(this._isDirected,arguments[0]):dr(this._isDirected,Ft,je,yt),Sn=this._edgeObjs[It];return Sn&&(Ft=Sn.v,je=Sn.w,delete this._edgeLabels[It],delete this._edgeObjs[It],Qn(this._preds[je],Ft),Qn(this._sucs[Ft],je),delete this._in[je][It],delete this._out[Ft][It],this._edgeCount--),this},Gs.prototype.inEdges=function(Ft,je){var yt=this._in[Ft];if(yt){var It=lo.values(yt);return je?lo.filter(It,function(Sn){return Sn.v===je}):It}},Gs.prototype.outEdges=function(Ft,je){var yt=this._out[Ft];if(yt){var It=lo.values(yt);return je?lo.filter(It,function(Sn){return Sn.w===je}):It}},Gs.prototype.nodeEdges=function(Ft,je){var yt=this.inEdges(Ft,je);if(yt)return yt.concat(this.outEdges(Ft,je))};var Ra={Graph:Zs,version:"2.1.8"},_i={write:function(je){var yt={options:{directed:je.isDirected(),multigraph:je.isMultigraph(),compound:je.isCompound()},nodes:ui(je),edges:ho(je)};return lo.isUndefined(je.graph())||(yt.value=lo.clone(je.graph())),yt},read:function(je){var yt=new Zs(je.options).setGraph(je.value);return lo.each(je.nodes,function(It){yt.setNode(It.v,It.value),It.parent&&yt.setParent(It.v,It.parent)}),lo.each(je.edges,function(It){yt.setEdge({v:It.v,w:It.w,name:It.name},It.value)}),yt}};function ui(Ft){return lo.map(Ft.nodes(),function(je){var yt=Ft.node(je),It=Ft.parent(je),Sn={v:je};return lo.isUndefined(yt)||(Sn.value=yt),lo.isUndefined(It)||(Sn.parent=It),Sn})}function ho(Ft){return lo.map(Ft.edges(),function(je){var yt=Ft.edge(je),It={v:je.v,w:je.w};return lo.isUndefined(je.name)||(It.name=je.name),lo.isUndefined(yt)||(It.value=yt),It})}var Oi=function(je){var yt,It={},Sn=[];function In(mr){lo.has(It,mr)||(It[mr]=!0,yt.push(mr),lo.each(je.successors(mr),In),lo.each(je.predecessors(mr),In))}return lo.each(je.nodes(),function(mr){yt=[],In(mr),yt.length&&Sn.push(yt)}),Sn},Fo=as;function as(){this._arr=[],this._keyIndices={}}as.prototype.size=function(){return this._arr.length},as.prototype.keys=function(){return this._arr.map(function(Ft){return Ft.key})},as.prototype.has=function(Ft){return lo.has(this._keyIndices,Ft)},as.prototype.priority=function(Ft){var je=this._keyIndices[Ft];if(je!==void 0)return this._arr[je].priority},as.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},as.prototype.add=function(Ft,je){var yt=this._keyIndices;if(Ft=String(Ft),!lo.has(yt,Ft)){var It=this._arr,Sn=It.length;return yt[Ft]=Sn,It.push({key:Ft,priority:je}),this._decrease(Sn),!0}return!1},as.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var Ft=this._arr.pop();return delete this._keyIndices[Ft.key],this._heapify(0),Ft.key},as.prototype.decrease=function(Ft,je){var yt=this._keyIndices[Ft];if(je>this._arr[yt].priority)throw new Error("New priority is greater than current priority. Key: "+Ft+" Old: "+this._arr[yt].priority+" New: "+je);this._arr[yt].priority=je,this._decrease(yt)},as.prototype._heapify=function(Ft){var je=this._arr,yt=2*Ft,It=yt+1,Sn=Ft;yt<je.length&&(Sn=je[yt].priority<je[Sn].priority?yt:Sn,It<je.length&&(Sn=je[It].priority<je[Sn].priority?It:Sn),Sn!==Ft&&(this._swap(Ft,Sn),this._heapify(Sn)))},as.prototype._decrease=function(Ft){for(var je,yt=this._arr,It=yt[Ft].priority;Ft!==0&&!(yt[je=Ft>>1].priority<It);)this._swap(Ft,je),Ft=je},as.prototype._swap=function(Ft,je){var yt=this._arr,It=this._keyIndices,Sn=yt[Ft],In=yt[je];yt[Ft]=In,yt[je]=Sn,It[In.key]=Ft,It[Sn.key]=je};var Fs=function(je,yt,It,Sn){return function(In,mr,Wr,Ir){var Br,xa,vi={},Ai=new Fo,Yi=function(_s){var ys=_s.v!==Br?_s.v:_s.w,qs=vi[ys],uc=Wr(_s),du=xa.distance+uc;if(uc<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+_s+" Weight: "+uc);du<qs.distance&&(qs.distance=du,qs.predecessor=Br,Ai.decrease(ys,du))};for(In.nodes().forEach(function(Wo){var _s=Wo===mr?0:Number.POSITIVE_INFINITY;vi[Wo]={distance:_s},Ai.add(Wo,_s)});Ai.size()>0&&(Br=Ai.removeMin(),(xa=vi[Br]).distance!==Number.POSITIVE_INFINITY);)Ir(Br).forEach(Yi);return vi}(je,String(yt),It||Fr,Sn||function(In){return je.outEdges(In)})},Fr=lo.constant(1),tl=function(je,yt,It){return lo.transform(je.nodes(),function(Sn,In){Sn[In]=Fs(je,In,yt,It)},{})},Js=function(je){var yt=0,It=[],Sn={},In=[];function mr(Wr){var Ir=Sn[Wr]={onStack:!0,lowlink:yt,index:yt++};if(It.push(Wr),je.successors(Wr).forEach(function(vi){lo.has(Sn,vi)?Sn[vi].onStack&&(Ir.lowlink=Math.min(Ir.lowlink,Sn[vi].index)):(mr(vi),Ir.lowlink=Math.min(Ir.lowlink,Sn[vi].lowlink))}),Ir.lowlink===Ir.index){var Br,xa=[];do Br=It.pop(),Sn[Br].onStack=!1,xa.push(Br);while(Wr!==Br);In.push(xa)}}return je.nodes().forEach(function(Wr){lo.has(Sn,Wr)||mr(Wr)}),In},Us=function(je){return lo.filter(Js(je),function(yt){return yt.length>1||yt.length===1&&je.hasEdge(yt[0],yt[0])})},os=function(je,yt,It){return function(Sn,In,mr){var Wr={},Ir=Sn.nodes();return Ir.forEach(function(Br){Wr[Br]={},Wr[Br][Br]={distance:0},Ir.forEach(function(xa){Br!==xa&&(Wr[Br][xa]={distance:Number.POSITIVE_INFINITY})}),mr(Br).forEach(function(xa){var vi=xa.v===Br?xa.w:xa.v,Ai=In(xa);Wr[Br][vi]={distance:Ai,predecessor:Br}})}),Ir.forEach(function(Br){var xa=Wr[Br];Ir.forEach(function(vi){var Ai=Wr[vi];Ir.forEach(function(Yi){var Wo=Ai[Br],_s=xa[Yi],ys=Ai[Yi],qs=Wo.distance+_s.distance;qs<ys.distance&&(ys.distance=qs,ys.predecessor=_s.predecessor)})})}),Wr}(je,yt||El,It||function(Sn){return je.outEdges(Sn)})},El=lo.constant(1),Bs=gc;function gc(Ft){var je={},yt={},It=[];if(lo.each(Ft.sinks(),function Sn(In){if(lo.has(yt,In))throw new kr;lo.has(je,In)||(yt[In]=!0,je[In]=!0,lo.each(Ft.predecessors(In),Sn),delete yt[In],It.push(In))}),lo.size(je)!==Ft.nodeCount())throw new kr;return It}function kr(){}gc.CycleException=kr,kr.prototype=new Error;var Sa=function(je,yt,It){lo.isArray(yt)||(yt=[yt]);var Sn=(je.isDirected()?je.successors:je.neighbors).bind(je),In=[],mr={};return lo.each(yt,function(Wr){if(!je.hasNode(Wr))throw new Error("Graph does not have node: "+Wr);Hi(je,Wr,It==="post",mr,Sn,In)}),In};function Hi(Ft,je,yt,It,Sn,In){lo.has(It,je)||(It[je]=!0,yt||In.push(je),lo.each(Sn(je),function(mr){Hi(Ft,mr,yt,It,Sn,In)}),yt&&In.push(je))}var Co,Ds={Graph:Ra.Graph,json:_i,alg:{components:Oi,dijkstra:Fs,dijkstraAll:tl,findCycles:Us,floydWarshall:os,isAcyclic:function(je){try{Bs(je)}catch(yt){if(yt instanceof Bs.CycleException)return!1;throw yt}return!0},postorder:function(je,yt){return Sa(je,yt,"post")},preorder:function(je,yt){return Sa(je,yt,"pre")},prim:function(je,yt){var It,Sn=new Zs,In={},mr=new Fo;function Wr(Br){var xa=Br.v===It?Br.w:Br.v,vi=mr.priority(xa);if(vi!==void 0){var Ai=yt(Br);Ai<vi&&(In[xa]=It,mr.decrease(xa,Ai))}}if(je.nodeCount()===0)return Sn;lo.each(je.nodes(),function(Br){mr.add(Br,Number.POSITIVE_INFINITY),Sn.setNode(Br)}),mr.decrease(je.nodes()[0],0);for(var Ir=!1;mr.size()>0;){if(It=mr.removeMin(),lo.has(In,It))Sn.setEdge(It,In[It]);else{if(Ir)throw new Error("Input graph is not connected: "+je);Ir=!0}je.nodeEdges(It).forEach(Wr)}return Sn},tarjan:Js,topsort:Bs},version:Ra.version};try{Co=Ds}catch(Ft){}Co||(Co=window.graphlib);var Dl=Co,Xc=function(je){return mc(je,5)},Fl=function(je,yt,It){if(!Qe(It))return!1;var Sn=typeof yt;return!!(Sn=="number"?Zr(It)&&Gn(yt,It.length):Sn=="string"&&yt in It)&&W(It[yt],je)},Eu=Object.prototype,cc=Eu.hasOwnProperty,Hu=df(function(Ft,je){Ft=Object(Ft);var yt=-1,It=je.length,Sn=It>2?je[2]:void 0;for(Sn&&Fl(je[0],je[1],Sn)&&(It=1);++yt<It;)for(var In=je[yt],mr=rs(In),Wr=-1,Ir=mr.length;++Wr<Ir;){var Br=mr[Wr],xa=Ft[Br];(xa===void 0||W(xa,Eu[Br])&&!cc.call(Ft,Br))&&(Ft[Br]=In[Br])}return Ft}),dc=function(je){return function(yt,It,Sn){var In=Object(yt);if(!Zr(yt)){var mr=_t(It);yt=Kr(yt),It=function(Br){return mr(In[Br],Br,In)}}var Wr=je(yt,It,Sn);return Wr>-1?In[mr?yt[Wr]:Wr]:void 0}},iu=/^\s+|\s+$/g,Gc=/^[-+]0x[0-9a-f]+$/i,Jc=/^0b[01]+$/i,pf=/^0o[0-7]+$/i,hn=parseInt,dn=function(je){if(typeof je=="number")return je;if(Hc(je))return NaN;if(Qe(je)){var yt=typeof je.valueOf=="function"?je.valueOf():je;je=Qe(yt)?yt+"":yt}if(typeof je!="string")return je===0?je:+je;je=je.replace(iu,"");var It=Jc.test(je);return It||pf.test(je)?hn(je.slice(2),It?2:8):Gc.test(je)?NaN:+je},tr=function(je){return je?(je=dn(je))===Infinity||je===-Infinity?17976931348623157e292*(je<0?-1:1):je==je?je:0:je===0?je:0},Mn=function(je){var yt=tr(je),It=yt%1;return yt==yt?It?yt-It:yt:0},Lr=Math.max,sa=dc(function(Ft,je,yt){var It=Ft==null?0:Ft.length;if(!It)return-1;var Sn=yt==null?0:Mn(yt);return Sn<0&&(Sn=Lr(It+Sn,0)),uf(Ft,_t(je),Sn)}),Ma=function(je){return(je==null?0:je.length)?gf(je,1):[]},Ia=function(je,yt){return je==null?je:Rs(je,Ls(yt),rs)},Ja=function(je){var yt=je==null?0:je.length;return yt?je[yt-1]:void 0},pi=function(je,yt){var It={};return yt=_t(yt),xl(je,function(Sn,In,mr){be(It,In,yt(Sn,In,mr))}),It},fo=function(je,yt,It){for(var Sn=-1,In=je.length;++Sn<In;){var mr=je[Sn],Wr=yt(mr);if(Wr!=null&&(Ir===void 0?Wr==Wr&&!Hc(Wr):It(Wr,Ir)))var Ir=Wr,Br=mr}return Br},us=function(je,yt){return je>yt},xo=function(je){return je&&je.length?fo(je,_l,us):void 0},Qo=function(je,yt,It){(It!==void 0&&!W(je[yt],It)||It===void 0&&!(yt in je))&&be(je,yt,It)},gs=Function.prototype,ds=Object.prototype,nl=gs.toString,nc=ds.hasOwnProperty,Kl=nl.call(Object),mu=function(je){if(!lt(je)||Fe(je)!="[object Object]")return!1;var yt=Fi(je);if(yt===null)return!0;var It=nc.call(yt,"constructor")&&yt.constructor;return typeof It=="function"&&It instanceof It&&nl.call(It)==Kl},xc=function(je,yt){if((yt!=="constructor"||typeof je[yt]!="function")&&yt!="__proto__")return je[yt]},Ll=function(je){return $e(je,rs(je))},wc=function(je,yt,It,Sn,In,mr,Wr){var Ir=xc(je,It),Br=xc(yt,It),xa=Wr.get(Br);if(xa)Qo(je,It,xa);else{var vi=mr?mr(Ir,Br,It+"",je,yt,Wr):void 0,Ai=vi===void 0;if(Ai){var Yi=zt(Br),Wo=!Yi&&An(Br),_s=!Yi&&!Wo&&Jr(Br);vi=Br,Yi||Wo||_s?zt(Ir)?vi=Ir:Ro(Ir)?vi=Kn(Ir):Wo?(Ai=!1,vi=Cn(Br,!0)):_s?(Ai=!1,vi=Li(Br,!0)):vi=[]:mu(Br)||Zt(Br)?(vi=Ir,Zt(Ir)?vi=Ll(Ir):Qe(Ir)&&!et(Ir)||(vi=ao(Br))):Ai=!1}Ai&&(Wr.set(Br,vi),In(vi,Br,Sn,mr,Wr),Wr.delete(Br)),Qo(je,It,vi)}},Xu=function Ft(je,yt,It,Sn,In){je!==yt&&Rs(yt,function(mr,Wr){if(In||(In=new ut),Qe(mr))wc(je,yt,Wr,It,Ft,Sn,In);else{var Ir=Sn?Sn(xc(je,Wr),mr,Wr+"",je,yt,In):void 0;Ir===void 0&&(Ir=mr),Qo(je,Wr,Ir)}},rs)},_u=function(Ft){return df(function(je,yt){var It=-1,Sn=yt.length,In=Sn>1?yt[Sn-1]:void 0,mr=Sn>2?yt[2]:void 0;for(In=Ft.length>3&&typeof In=="function"?(Sn--,In):void 0,mr&&Fl(yt[0],yt[1],mr)&&(In=Sn<3?void 0:In,Sn=1),je=Object(je);++It<Sn;){var Wr=yt[It];Wr&&Ft(je,Wr,It,In)}return je})}(function(Ft,je,yt){Xu(Ft,je,yt)}),wu=function(je,yt){return je<yt},fu=function(je){return je&&je.length?fo(je,_l,wu):void 0},Kc=function(je,yt){return je&&je.length?fo(je,_t(yt),wu):void 0},td=function(){return ve.Date.now()},Ic=function(je,yt,It,Sn){if(!Qe(je))return je;for(var In=-1,mr=(yt=rf(yt,je)).length,Wr=mr-1,Ir=je;Ir!=null&&++In<mr;){var Br=Bu(yt[In]),xa=It;if(Br==="__proto__"||Br==="constructor"||Br==="prototype")return je;if(In!=Wr){var vi=Ir[Br];(xa=Sn?Sn(vi,Br,Ir):void 0)===void 0&&(xa=Qe(vi)?vi:Gn(yt[In+1])?[]:{})}Ue(Ir,Br,xa),Ir=Ir[Br]}return je},tu=function(je,yt,It){for(var Sn=-1,In=yt.length,mr={};++Sn<In;){var Wr=yt[Sn],Ir=Tf(je,Wr);It(Ir,Wr)&&Ic(mr,rf(Wr,je),Ir)}return mr},jf=function(je,yt){return tu(je,yt,function(It,Sn){return Nc(je,Sn)})},Tu=function(Ft){return Rp(Yl(Ft,void 0,Ma),Ft+"")}(function(Ft,je){return Ft==null?{}:jf(Ft,je)}),Ed=Math.ceil,vd=Math.max,Gu=function(je,yt,It,Sn){for(var In=-1,mr=vd(Ed((yt-je)/(It||1)),0),Wr=Array(mr);mr--;)Wr[Sn?mr:++In]=je,je+=It;return Wr},Op=function(Ft){return function(je,yt,It){return It&&typeof It!="number"&&Fl(je,yt,It)&&(yt=It=void 0),je=tr(je),yt===void 0?(yt=je,je=0):yt=tr(yt),It=It===void 0?je<yt?1:-1:tr(It),Gu(je,yt,It,Ft)}}(),np=function(je,yt){var It=je.length;for(je.sort(yt);It--;)je[It]=je[It].value;return je},$d=function(je,yt){if(je!==yt){var It=je!==void 0,Sn=je===null,In=je==je,mr=Hc(je),Wr=yt!==void 0,Ir=yt===null,Br=yt==yt,xa=Hc(yt);if(!Ir&&!xa&&!mr&&je>yt||mr&&Wr&&Br&&!Ir&&!xa||Sn&&Wr&&Br||!It&&Br||!In)return 1;if(!Sn&&!mr&&!xa&&je<yt||xa&&It&&In&&!Sn&&!mr||Ir&&It&&In||!Wr&&In||!Br)return-1}return 0},hd=function(je,yt,It){for(var Sn=-1,In=je.criteria,mr=yt.criteria,Wr=In.length,Ir=It.length;++Sn<Wr;){var Br=$d(In[Sn],mr[Sn]);if(Br)return Sn>=Ir?Br:Br*(It[Sn]=="desc"?-1:1)}return je.index-yt.index},Ip=function(je,yt,It){yt=yt.length?uu(yt,function(mr){return zt(mr)?function(Wr){return Tf(Wr,mr.length===1?mr[0]:mr)}:mr}):[_l];var Sn=-1;yt=uu(yt,na(_t));var In=xr(je,function(mr,Wr,Ir){return{criteria:uu(yt,function(Br){return Br(mr)}),index:++Sn,value:mr}});return np(In,function(mr,Wr){return hd(mr,Wr,It)})},dd=df(function(Ft,je){if(Ft==null)return[];var yt=je.length;return yt>1&&Fl(Ft,je[0],je[1])?je=[]:yt>2&&Fl(je[0],je[1],je[2])&&(je=[je[0]]),Ip(Ft,gf(je,1),[])}),cr=0,un=function(je){var yt=++cr;return Cu(je)+yt},Jn=function(je,yt,It){for(var Sn=-1,In=je.length,mr=yt.length,Wr={};++Sn<In;){var Ir=Sn<mr?yt[Sn]:void 0;It(Wr,je[Sn],Ir)}return Wr},Xn,Vr=function(je,yt){return Jn(je||[],yt||[],Ue)};try{Xn={cloneDeep:Xc,constant:hl,defaults:Hu,each:Dr,filter:Vn,find:sa,flatten:Ma,forEach:zn,forIn:Ia,has:Pt,isUndefined:ir,last:Ja,map:aa,mapValues:pi,max:xo,merge:_u,min:fu,minBy:Kc,now:td,pick:Tu,range:Op,reduce:yi,sortBy:dd,uniqueId:un,values:Xo,zipObject:Vr}}catch(Ft){}Xn||(Xn=window._);var Zn=Xn,pa=Ha;function Ha(){var Ft={};Ft._next=Ft._prev=Ft,this._sentinel=Ft}function gi(Ft){Ft._prev._next=Ft._next,Ft._next._prev=Ft._prev,delete Ft._next,delete Ft._prev}function co(Ft,je){if(Ft!=="_next"&&Ft!=="_prev")return je}Ha.prototype.dequeue=function(){var Ft=this._sentinel,je=Ft._prev;if(je!==Ft)return gi(je),je},Ha.prototype.enqueue=function(Ft){var je=this._sentinel;Ft._prev&&Ft._next&&gi(Ft),Ft._next=je._next,je._next._prev=Ft,je._next=Ft,Ft._prev=je},Ha.prototype.toString=function(){for(var Ft=[],je=this._sentinel,yt=je._prev;yt!==je;)Ft.push(JSON.stringify(yt,co)),yt=yt._prev;return"["+Ft.join(", ")+"]"};var No=Dl.Graph,Ko=function(je,yt){if(je.nodeCount()<=1)return[];var It=function(In,mr){var Wr=new No,Ir=0,Br=0;Zn.forEach(In.nodes(),function(Ai){Wr.setNode(Ai,{v:Ai,in:0,out:0})}),Zn.forEach(In.edges(),function(Ai){var Yi=Wr.edge(Ai.v,Ai.w)||0,Wo=mr(Ai),_s=Yi+Wo;Wr.setEdge(Ai.v,Ai.w,_s),Br=Math.max(Br,Wr.node(Ai.v).out+=Wo),Ir=Math.max(Ir,Wr.node(Ai.w).in+=Wo)});var xa=Zn.range(Br+Ir+3).map(function(){return new pa}),vi=Ir+1;return Zn.forEach(Wr.nodes(),function(Ai){js(xa,vi,Wr.node(Ai))}),{graph:Wr,buckets:xa,zeroIdx:vi}}(je,yt||Jo),Sn=function(In,mr,Wr){for(var Ir,Br=[],xa=mr[mr.length-1],vi=mr[0];In.nodeCount();){for(;Ir=vi.dequeue();)gl(In,mr,Wr,Ir);for(;Ir=xa.dequeue();)gl(In,mr,Wr,Ir);if(In.nodeCount()){for(var Ai=mr.length-2;Ai>0;--Ai)if(Ir=mr[Ai].dequeue()){Br=Br.concat(gl(In,mr,Wr,Ir,!0));break}}}return Br}(It.graph,It.buckets,It.zeroIdx);return Zn.flatten(Zn.map(Sn,function(In){return je.outEdges(In.v,In.w)}),!0)},Jo=Zn.constant(1);function gl(Ft,je,yt,It,Sn){var In=Sn?[]:void 0;return Zn.forEach(Ft.inEdges(It.v),function(mr){var Wr=Ft.edge(mr),Ir=Ft.node(mr.v);Sn&&In.push({v:mr.v,w:mr.w}),Ir.out-=Wr,js(je,yt,Ir)}),Zn.forEach(Ft.outEdges(It.v),function(mr){var Wr=Ft.edge(mr),Ir=mr.w,Br=Ft.node(Ir);Br.in-=Wr,js(je,yt,Br)}),Ft.removeNode(It.v),In}function js(Ft,je,yt){yt.out?yt.in?Ft[yt.out-yt.in+je].enqueue(yt):Ft[Ft.length-1].enqueue(yt):Ft[0].enqueue(yt)}var Zl={run:function(je){var yt=je.graph().acyclicer==="greedy"?Ko(je,function(It){return function(Sn){return It.edge(Sn).weight}}(je)):function(It){var Sn=[],In={},mr={};function Wr(Ir){Zn.has(mr,Ir)||(mr[Ir]=!0,In[Ir]=!0,Zn.forEach(It.outEdges(Ir),function(Br){Zn.has(In,Br.w)?Sn.push(Br):Wr(Br.w)}),delete In[Ir])}return Zn.forEach(It.nodes(),Wr),Sn}(je);Zn.forEach(yt,function(It){var Sn=je.edge(It);je.removeEdge(It),Sn.forwardName=It.name,Sn.reversed=!0,je.setEdge(It.w,It.v,Sn,Zn.uniqueId("rev"))})},undo:function(je){Zn.forEach(je.edges(),function(yt){var It=je.edge(yt);if(It.reversed){je.removeEdge(yt);var Sn=It.forwardName;delete It.reversed,delete It.forwardName,je.setEdge(yt.w,yt.v,It,Sn)}})}},ko=Dl.Graph,te={addDummyNode:Me,simplify:function(je){var yt=new ko().setGraph(je.graph());return Zn.forEach(je.nodes(),function(It){yt.setNode(It,je.node(It))}),Zn.forEach(je.edges(),function(It){var Sn=yt.edge(It.v,It.w)||{weight:0,minlen:1},In=je.edge(It);yt.setEdge(It.v,It.w,{weight:Sn.weight+In.weight,minlen:Math.max(Sn.minlen,In.minlen)})}),yt},asNonCompoundGraph:function(je){var yt=new ko({multigraph:je.isMultigraph()}).setGraph(je.graph());return Zn.forEach(je.nodes(),function(It){je.children(It).length||yt.setNode(It,je.node(It))}),Zn.forEach(je.edges(),function(It){yt.setEdge(It,je.edge(It))}),yt},successorWeights:function(je){var yt=Zn.map(je.nodes(),function(It){var Sn={};return Zn.forEach(je.outEdges(It),function(In){Sn[In.w]=(Sn[In.w]||0)+je.edge(In).weight}),Sn});return Zn.zipObject(je.nodes(),yt)},predecessorWeights:function(je){var yt=Zn.map(je.nodes(),function(It){var Sn={};return Zn.forEach(je.inEdges(It),function(In){Sn[In.v]=(Sn[In.v]||0)+je.edge(In).weight}),Sn});return Zn.zipObject(je.nodes(),yt)},intersectRect:function(je,yt){var It,Sn,In=je.x,mr=je.y,Wr=yt.x-In,Ir=yt.y-mr,Br=je.width/2,xa=je.height/2;if(!Wr&&!Ir)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(Ir)*Br>Math.abs(Wr)*xa?(Ir<0&&(xa=-xa),It=xa*Wr/Ir,Sn=xa):(Wr<0&&(Br=-Br),It=Br,Sn=Br*Ir/Wr),{x:In+It,y:mr+Sn}},buildLayerMatrix:function(je){var yt=Zn.map(Zn.range(ft(je)+1),function(){return[]});return Zn.forEach(je.nodes(),function(It){var Sn=je.node(It),In=Sn.rank;Zn.isUndefined(In)||(yt[In][Sn.order]=It)}),yt},normalizeRanks:function(je){var yt=Zn.min(Zn.map(je.nodes(),function(It){return je.node(It).rank}));Zn.forEach(je.nodes(),function(It){var Sn=je.node(It);Zn.has(Sn,"rank")&&(Sn.rank-=yt)})},removeEmptyRanks:function(je){var yt=Zn.min(Zn.map(je.nodes(),function(mr){return je.node(mr).rank})),It=[];Zn.forEach(je.nodes(),function(mr){var Wr=je.node(mr).rank-yt;It[Wr]||(It[Wr]=[]),It[Wr].push(mr)});var Sn=0,In=je.graph().nodeRankFactor;Zn.forEach(It,function(mr,Wr){Zn.isUndefined(mr)&&Wr%In!=0?--Sn:Sn&&Zn.forEach(mr,function(Ir){je.node(Ir).rank+=Sn})})},addBorderNode:function(je,yt,It,Sn){var In={width:0,height:0};return arguments.length>=4&&(In.rank=It,In.order=Sn),Me(je,"border",In,yt)},maxRank:ft,partition:function(je,yt){var It={lhs:[],rhs:[]};return Zn.forEach(je,function(Sn){yt(Sn)?It.lhs.push(Sn):It.rhs.push(Sn)}),It},time:function(je,yt){var It=Zn.now();try{return yt()}finally{console.log(je+" time: "+(Zn.now()-It)+"ms")}},notime:function(je,yt){return yt()}};function Me(Ft,je,yt,It){var Sn;do Sn=Zn.uniqueId(It);while(Ft.hasNode(Sn));return yt.dummy=je,Ft.setNode(Sn,yt),Sn}function ft(Ft){return Zn.max(Zn.map(Ft.nodes(),function(je){var yt=Ft.node(je).rank;if(!Zn.isUndefined(yt))return yt}))}var Nt={run:function(je){je.graph().dummyChains=[],Zn.forEach(je.edges(),function(yt){(function(It,Sn){var In,mr,Wr,Ir=Sn.v,Br=It.node(Ir).rank,xa=Sn.w,vi=It.node(xa).rank,Ai=Sn.name,Yi=It.edge(Sn),Wo=Yi.labelRank;if(vi!==Br+1){for(It.removeEdge(Sn),Wr=0,++Br;Br<vi;++Wr,++Br)Yi.points=[],mr={width:0,height:0,edgeLabel:Yi,edgeObj:Sn,rank:Br},In=te.addDummyNode(It,"edge",mr,"_d"),Br===Wo&&(mr.width=Yi.width,mr.height=Yi.height,mr.dummy="edge-label",mr.labelpos=Yi.labelpos),It.setEdge(Ir,In,{weight:Yi.weight},Ai),Wr===0&&It.graph().dummyChains.push(In),Ir=In;It.setEdge(Ir,xa,{weight:Yi.weight},Ai)}})(je,yt)})},undo:function(je){Zn.forEach(je.graph().dummyChains,function(yt){var It,Sn=je.node(yt),In=Sn.edgeLabel;for(je.setEdge(Sn.edgeObj,In);Sn.dummy;)It=je.successors(yt)[0],je.removeNode(yt),In.points.push({x:Sn.x,y:Sn.y}),Sn.dummy==="edge-label"&&(In.x=Sn.x,In.y=Sn.y,In.width=Sn.width,In.height=Sn.height),yt=It,Sn=je.node(yt)})}},xn=function(je){var yt={};Zn.forEach(je.sources(),function It(Sn){var In=je.node(Sn);if(Zn.has(yt,Sn))return In.rank;yt[Sn]=!0;var mr=Zn.min(Zn.map(je.outEdges(Sn),function(Wr){return It(Wr.w)-je.edge(Wr).minlen}));return mr!==Number.POSITIVE_INFINITY&&mr!=null||(mr=0),In.rank=mr})},Yr=function(je,yt){return je.node(yt.w).rank-je.node(yt.v).rank-je.edge(yt).minlen},qa=Dl.Graph,Es=Yr,Qs=function(je){var yt,It,Sn=new qa({directed:!1}),In=je.nodes()[0],mr=je.nodeCount();for(Sn.setNode(In,{});Hl(Sn,je)<mr;)yt=Lc(Sn,je),It=Sn.hasNode(yt.v)?Es(je,yt):-Es(je,yt),Pu(Sn,je,It);return Sn};function Hl(Ft,je){return Zn.forEach(Ft.nodes(),function yt(It){Zn.forEach(je.nodeEdges(It),function(Sn){var In=Sn.v,mr=It===In?Sn.w:In;Ft.hasNode(mr)||Es(je,Sn)||(Ft.setNode(mr,{}),Ft.setEdge(It,mr,{}),yt(mr))})}),Ft.nodeCount()}function Lc(Ft,je){return Zn.minBy(je.edges(),function(yt){if(Ft.hasNode(yt.v)!==Ft.hasNode(yt.w))return Es(je,yt)})}function Pu(Ft,je,yt){Zn.forEach(Ft.nodes(),function(It){je.node(It).rank+=yt})}var Yf=Yr,yv=xn,Cp=Dl.alg.preorder,kv=Dl.alg.postorder,Nv=te.simplify,Pv=sp;function sp(Ft){Ft=Nv(Ft),yv(Ft);var je,yt=Qs(Ft);for(Hf(yt),Wp(yt,Ft);je=bp(yt);)nh(yt,Ft,je,cv(yt,Ft,je))}function Wp(Ft,je){var yt=kv(Ft,Ft.nodes());yt=yt.slice(0,yt.length-1),Zn.forEach(yt,function(It){(function(Sn,In,mr){var Wr=Sn.node(mr).parent;Sn.edge(mr,Wr).cutvalue=$h(Sn,In,mr)})(Ft,je,It)})}function $h(Ft,je,yt){var It=Ft.node(yt).parent,Sn=!0,In=je.edge(yt,It),mr=0;return In||(Sn=!1,In=je.edge(It,yt)),mr=In.weight,Zn.forEach(je.nodeEdges(yt),function(Wr){var Ir,Br,xa=Wr.v===yt,vi=xa?Wr.w:Wr.v;if(vi!==It){var Ai=xa===Sn,Yi=je.edge(Wr).weight;if(mr+=Ai?Yi:-Yi,Ir=yt,Br=vi,Ft.hasEdge(Ir,Br)){var Wo=Ft.edge(yt,vi).cutvalue;mr+=Ai?-Wo:Wo}}}),mr}function Hf(Ft,je){arguments.length<2&&(je=Ft.nodes()[0]),Qc(Ft,{},1,je)}function Qc(Ft,je,yt,It,Sn){var In=yt,mr=Ft.node(It);return je[It]=!0,Zn.forEach(Ft.neighbors(It),function(Wr){Zn.has(je,Wr)||(yt=Qc(Ft,je,yt,Wr,It))}),mr.low=In,mr.lim=yt++,Sn?mr.parent=Sn:delete mr.parent,yt}function bp(Ft){return Zn.find(Ft.edges(),function(je){return Ft.edge(je).cutvalue<0})}function cv(Ft,je,yt){var It=yt.v,Sn=yt.w;je.hasEdge(It,Sn)||(It=yt.w,Sn=yt.v);var In=Ft.node(It),mr=Ft.node(Sn),Wr=In,Ir=!1;In.lim>mr.lim&&(Wr=mr,Ir=!0);var Br=Zn.filter(je.edges(),function(xa){return Ir===Kv(Ft,Ft.node(xa.v),Wr)&&Ir!==Kv(Ft,Ft.node(xa.w),Wr)});return Zn.minBy(Br,function(xa){return Yf(je,xa)})}function nh(Ft,je,yt,It){var Sn=yt.v,In=yt.w;Ft.removeEdge(Sn,In),Ft.setEdge(It.v,It.w,{}),Hf(Ft),Wp(Ft,je),function(mr,Wr){var Ir=Zn.find(mr.nodes(),function(xa){return!Wr.node(xa).parent}),Br=Cp(mr,Ir);Br=Br.slice(1),Zn.forEach(Br,function(xa){var vi=mr.node(xa).parent,Ai=Wr.edge(xa,vi),Yi=!1;Ai||(Ai=Wr.edge(vi,xa),Yi=!0),Wr.node(xa).rank=Wr.node(vi).rank+(Yi?Ai.minlen:-Ai.minlen)})}(Ft,je)}function Kv(Ft,je,yt){return yt.low<=je.lim&&je.lim<=yt.lim}sp.initLowLimValues=Hf,sp.initCutValues=Wp,sp.calcCutValue=$h,sp.leaveEdge=bp,sp.enterEdge=cv,sp.exchangeEdges=nh;var am=xn,Nh=function(je){switch(je.graph().ranker){case"network-simplex":sh(je);break;case"tight-tree":(function(yt){am(yt),Qs(yt)})(je);break;case"longest-path":Lp(je);break;default:sh(je)}},Lp=am;function sh(Ft){Pv(Ft)}var Lh=function(je){var yt=function(It){var Sn={},In=0;function mr(Wr){var Ir=In;Zn.forEach(It.children(Wr),mr),Sn[Wr]={low:Ir,lim:In++}}return Zn.forEach(It.children(),mr),Sn}(je);Zn.forEach(je.graph().dummyChains,function(It){for(var Sn=je.node(It),In=Sn.edgeObj,mr=function(Ai,Yi,Wo,_s){var ys,qs,uc=[],du=[],Pc=Math.min(Yi[Wo].low,Yi[_s].low),Ef=Math.max(Yi[Wo].lim,Yi[_s].lim);ys=Wo;do ys=Ai.parent(ys),uc.push(ys);while(ys&&(Yi[ys].low>Pc||Ef>Yi[ys].lim));for(qs=ys,ys=_s;(ys=Ai.parent(ys))!==qs;)du.push(ys);return{path:uc.concat(du.reverse()),lca:qs}}(je,yt,In.v,In.w),Wr=mr.path,Ir=mr.lca,Br=0,xa=Wr[Br],vi=!0;It!==In.w;){if(Sn=je.node(It),vi){for(;(xa=Wr[Br])!==Ir&&je.node(xa).maxRank<Sn.rank;)Br++;xa===Ir&&(vi=!1)}if(!vi){for(;Br<Wr.length-1&&je.node(xa=Wr[Br+1]).minRank<=Sn.rank;)Br++;xa=Wr[Br]}je.setParent(It,xa),It=je.successors(It)[0]}})},mh={run:function(je){var yt=te.addDummyNode(je,"root",{},"_root"),It=function(Wr){var Ir={};function Br(xa,vi){var Ai=Wr.children(xa);Ai&&Ai.length&&Zn.forEach(Ai,function(Yi){Br(Yi,vi+1)}),Ir[xa]=vi}return Zn.forEach(Wr.children(),function(xa){Br(xa,1)}),Ir}(je),Sn=Zn.max(Zn.values(It))-1,In=2*Sn+1;je.graph().nestingRoot=yt,Zn.forEach(je.edges(),function(Wr){je.edge(Wr).minlen*=In});var mr=function(Wr){return Zn.reduce(Wr.edges(),function(Ir,Br){return Ir+Wr.edge(Br).weight},0)}(je)+1;Zn.forEach(je.children(),function(Wr){fm(je,yt,In,mr,Sn,It,Wr)}),je.graph().nodeRankFactor=In},cleanup:function(je){var yt=je.graph();je.removeNode(yt.nestingRoot),delete yt.nestingRoot,Zn.forEach(je.edges(),function(It){je.edge(It).nestingEdge&&je.removeEdge(It)})}};function fm(Ft,je,yt,It,Sn,In,mr){var Wr=Ft.children(mr);if(Wr.length){var Ir=te.addBorderNode(Ft,"_bt"),Br=te.addBorderNode(Ft,"_bb"),xa=Ft.node(mr);Ft.setParent(Ir,mr),xa.borderTop=Ir,Ft.setParent(Br,mr),xa.borderBottom=Br,Zn.forEach(Wr,function(vi){fm(Ft,je,yt,It,Sn,In,vi);var Ai=Ft.node(vi),Yi=Ai.borderTop?Ai.borderTop:vi,Wo=Ai.borderBottom?Ai.borderBottom:vi,_s=Ai.borderTop?It:2*It,ys=Yi!==Wo?1:Sn-In[mr]+1;Ft.setEdge(Ir,Yi,{weight:_s,minlen:ys,nestingEdge:!0}),Ft.setEdge(Wo,Br,{weight:_s,minlen:ys,nestingEdge:!0})}),Ft.parent(mr)||Ft.setEdge(je,Ir,{weight:0,minlen:Sn+In[mr]})}else mr!==je&&Ft.setEdge(je,mr,{weight:0,minlen:yt})}var rh=function(je){Zn.forEach(je.children(),function yt(It){var Sn=je.children(It),In=je.node(It);if(Sn.length&&Zn.forEach(Sn,yt),Zn.has(In,"minRank")){In.borderLeft=[],In.borderRight=[];for(var mr=In.minRank,Wr=In.maxRank+1;mr<Wr;++mr)Fp(je,"borderLeft","_bl",It,In,mr),Fp(je,"borderRight","_br",It,In,mr)}})};function Fp(Ft,je,yt,It,Sn,In){var mr={width:0,height:0,rank:In,borderType:je},Wr=Sn[je][In-1],Ir=te.addDummyNode(Ft,"border",mr,yt);Sn[je][In]=Ir,Ft.setParent(Ir,It),Wr&&Ft.setEdge(Wr,Ir,{weight:1})}var gh={adjust:function(je){var yt=je.graph().rankdir.toLowerCase();yt!=="lr"&&yt!=="rl"||Am(je)},undo:function(je){var yt=je.graph().rankdir.toLowerCase();yt!=="bt"&&yt!=="rl"||function(It){Zn.forEach(It.nodes(),function(Sn){wl(It.node(Sn))}),Zn.forEach(It.edges(),function(Sn){var In=It.edge(Sn);Zn.forEach(In.points,wl),Zn.has(In,"y")&&wl(In)})}(je),yt!=="lr"&&yt!=="rl"||(function(It){Zn.forEach(It.nodes(),function(Sn){Sl(It.node(Sn))}),Zn.forEach(It.edges(),function(Sn){var In=It.edge(Sn);Zn.forEach(In.points,Sl),Zn.has(In,"x")&&Sl(In)})}(je),Am(je))}};function Am(Ft){Zn.forEach(Ft.nodes(),function(je){rc(Ft.node(je))}),Zn.forEach(Ft.edges(),function(je){rc(Ft.edge(je))})}function rc(Ft){var je=Ft.width;Ft.width=Ft.height,Ft.height=je}function wl(Ft){Ft.y=-Ft.y}function Sl(Ft){var je=Ft.x;Ft.x=Ft.y,Ft.y=je}var Ac=function(je){var yt={},It=Zn.filter(je.nodes(),function(Ir){return!je.children(Ir).length}),Sn=Zn.max(Zn.map(It,function(Ir){return je.node(Ir).rank})),In=Zn.map(Zn.range(Sn+1),function(){return[]});function mr(Ir){if(!Zn.has(yt,Ir)){yt[Ir]=!0;var Br=je.node(Ir);In[Br.rank].push(Ir),Zn.forEach(je.successors(Ir),mr)}}var Wr=Zn.sortBy(It,function(Ir){return je.node(Ir).rank});return Zn.forEach(Wr,mr),In},Ju=function(je,yt){for(var It=0,Sn=1;Sn<yt.length;++Sn)It+=Bc(je,yt[Sn-1],yt[Sn]);return It};function Bc(Ft,je,yt){for(var It=Zn.zipObject(yt,Zn.map(yt,function(Br,xa){return xa})),Sn=Zn.flatten(Zn.map(je,function(Br){return Zn.sortBy(Zn.map(Ft.outEdges(Br),function(xa){return{pos:It[xa.w],weight:Ft.edge(xa).weight}}),"pos")}),!0),In=1;In<yt.length;)In<<=1;var mr=2*In-1;In-=1;var Wr=Zn.map(new Array(mr),function(){return 0}),Ir=0;return Zn.forEach(Sn.forEach(function(Br){var xa=Br.pos+In;Wr[xa]+=Br.weight;for(var vi=0;xa>0;)xa%2&&(vi+=Wr[xa+1]),Wr[xa=xa-1>>1]+=Br.weight;Ir+=Br.weight*vi})),Ir}var $u=function(je,yt){return Zn.map(yt,function(It){var Sn=je.inEdges(It);if(Sn.length){var In=Zn.reduce(Sn,function(mr,Wr){var Ir=je.edge(Wr),Br=je.node(Wr.v);return{sum:mr.sum+Ir.weight*Br.order,weight:mr.weight+Ir.weight}},{sum:0,weight:0});return{v:It,barycenter:In.sum/In.weight,weight:In.weight}}return{v:It}})},Nf=function(je,yt){var It={};return Zn.forEach(je,function(Sn,In){var mr=It[Sn.v]={indegree:0,in:[],out:[],vs:[Sn.v],i:In};Zn.isUndefined(Sn.barycenter)||(mr.barycenter=Sn.barycenter,mr.weight=Sn.weight)}),Zn.forEach(yt.edges(),function(Sn){var In=It[Sn.v],mr=It[Sn.w];Zn.isUndefined(In)||Zn.isUndefined(mr)||(mr.indegree++,In.out.push(It[Sn.w]))}),function(Sn){var In=[];function mr(Br){return function(xa){xa.merged||(Zn.isUndefined(xa.barycenter)||Zn.isUndefined(Br.barycenter)||xa.barycenter>=Br.barycenter)&&function(vi,Ai){var Yi=0,Wo=0;vi.weight&&(Yi+=vi.barycenter*vi.weight,Wo+=vi.weight),Ai.weight&&(Yi+=Ai.barycenter*Ai.weight,Wo+=Ai.weight),vi.vs=Ai.vs.concat(vi.vs),vi.barycenter=Yi/Wo,vi.weight=Wo,vi.i=Math.min(Ai.i,vi.i),Ai.merged=!0}(Br,xa)}}function Wr(Br){return function(xa){xa.in.push(Br),--xa.indegree==0&&Sn.push(xa)}}for(;Sn.length;){var Ir=Sn.pop();In.push(Ir),Zn.forEach(Ir.in.reverse(),mr(Ir)),Zn.forEach(Ir.out,Wr(Ir))}return Zn.map(Zn.filter(In,function(Br){return!Br.merged}),function(Br){return Zn.pick(Br,["vs","i","barycenter","weight"])})}(Zn.filter(It,function(Sn){return!Sn.indegree}))},Ou=function(je,yt){var It=te.partition(je,function(Ai){return Zn.has(Ai,"barycenter")}),Sn=It.lhs,In=Zn.sortBy(It.rhs,function(Ai){return-Ai.i}),mr=[],Wr=0,Ir=0,Br=0;Sn.sort((xa=!!yt,function(Ai,Yi){return Ai.barycenter<Yi.barycenter?-1:Ai.barycenter>Yi.barycenter?1:xa?Yi.i-Ai.i:Ai.i-Yi.i})),Br=Lf(mr,In,Br),Zn.forEach(Sn,function(Ai){Br+=Ai.vs.length,mr.push(Ai.vs),Wr+=Ai.barycenter*Ai.weight,Ir+=Ai.weight,Br=Lf(mr,In,Br)});var xa,vi={vs:Zn.flatten(mr,!0)};return Ir&&(vi.barycenter=Wr/Ir,vi.weight=Ir),vi};function Lf(Ft,je,yt){for(var It;je.length&&(It=Zn.last(je)).i<=yt;)je.pop(),Ft.push(It.vs),yt++;return yt}var Mf=function Ft(je,yt,It,Sn){var In=je.children(yt),mr=je.node(yt),Wr=mr?mr.borderLeft:void 0,Ir=mr?mr.borderRight:void 0,Br={};Wr&&(In=Zn.filter(In,function(_s){return _s!==Wr&&_s!==Ir}));var xa=$u(je,In);Zn.forEach(xa,function(_s){if(je.children(_s.v).length){var ys=Ft(je,_s.v,It,Sn);Br[_s.v]=ys,Zn.has(ys,"barycenter")&&(qs=_s,uc=ys,Zn.isUndefined(qs.barycenter)?(qs.barycenter=uc.barycenter,qs.weight=uc.weight):(qs.barycenter=(qs.barycenter*qs.weight+uc.barycenter*uc.weight)/(qs.weight+uc.weight),qs.weight+=uc.weight))}var qs,uc});var vi=Nf(xa,It);(function(_s,ys){Zn.forEach(_s,function(qs){qs.vs=Zn.flatten(qs.vs.map(function(uc){return ys[uc]?ys[uc].vs:uc}),!0)})})(vi,Br);var Ai=Ou(vi,Sn);if(Wr&&(Ai.vs=Zn.flatten([Wr,Ai.vs,Ir],!0),je.predecessors(Wr).length)){var Yi=je.node(je.predecessors(Wr)[0]),Wo=je.node(je.predecessors(Ir)[0]);Zn.has(Ai,"barycenter")||(Ai.barycenter=0,Ai.weight=0),Ai.barycenter=(Ai.barycenter*Ai.weight+Yi.order+Wo.order)/(Ai.weight+2),Ai.weight+=2}return Ai},Sd=Dl.Graph,jv=function(je,yt,It){var Sn=function(mr){for(var Wr;mr.hasNode(Wr=Zn.uniqueId("_root")););return Wr}(je),In=new Sd({compound:!0}).setGraph({root:Sn}).setDefaultNodeLabel(function(mr){return je.node(mr)});return Zn.forEach(je.nodes(),function(mr){var Wr=je.node(mr),Ir=je.parent(mr);(Wr.rank===yt||Wr.minRank<=yt&&yt<=Wr.maxRank)&&(In.setNode(mr),In.setParent(mr,Ir||Sn),Zn.forEach(je[It](mr),function(Br){var xa=Br.v===mr?Br.w:Br.v,vi=In.edge(xa,mr),Ai=Zn.isUndefined(vi)?0:vi.weight;In.setEdge(xa,mr,{weight:je.edge(Br).weight+Ai})}),Zn.has(Wr,"minRank")&&In.setNode(mr,{borderLeft:Wr.borderLeft[yt],borderRight:Wr.borderRight[yt]}))}),In},uv=function(je,yt,It){var Sn,In={};Zn.forEach(It,function(mr){for(var Wr,Ir,Br=je.parent(mr);Br;){if((Wr=je.parent(Br))?(Ir=In[Wr],In[Wr]=Br):(Ir=Sn,Sn=Br),Ir&&Ir!==Br)return void yt.setEdge(Ir,Br);Br=Wr}})},Fh=Dl.Graph,fv=function(je){var yt=te.maxRank(je),It=Yv(je,Zn.range(1,yt+1),"inEdges"),Sn=Yv(je,Zn.range(yt-1,-1,-1),"outEdges"),In=Ac(je);im(je,In);for(var mr,Wr=Number.POSITIVE_INFINITY,Ir=0,Br=0;Br<4;++Ir,++Br){wh(Ir%2?It:Sn,Ir%4>=2),In=te.buildLayerMatrix(je);var xa=Ju(je,In);xa<Wr&&(Br=0,mr=Zn.cloneDeep(In),Wr=xa)}im(je,mr)};function Yv(Ft,je,yt){return Zn.map(je,function(It){return jv(Ft,It,yt)})}function wh(Ft,je){var yt=new Fh;Zn.forEach(Ft,function(It){var Sn=It.graph().root,In=Mf(It,Sn,yt,je);Zn.forEach(In.vs,function(mr,Wr){It.node(mr).order=Wr}),uv(It,yt,In.vs)})}function im(Ft,je){Zn.forEach(je,function(yt){Zn.forEach(yt,function(It,Sn){Ft.node(It).order=Sn})})}var fg=Dl.Graph,_h=function(je){var yt,It=te.buildLayerMatrix(je),Sn=Zn.merge(Bv(je,It),ah(je,It)),In={};Zn.forEach(["u","d"],function(Wr){yt=Wr==="u"?It:Zn.values(It).reverse(),Zn.forEach(["l","r"],function(Ir){Ir==="r"&&(yt=Zn.map(yt,function(Ai){return Zn.values(Ai).reverse()}));var Br=(Wr==="u"?je.predecessors:je.successors).bind(je),xa=Kh(je,yt,Sn,Br),vi=Dp(je,yt,xa.root,xa.align,Ir==="r");Ir==="r"&&(vi=Zn.mapValues(vi,function(Ai){return-Ai})),In[Wr+Ir]=vi})});var mr=Hp(je,In);return Yh(In,mr),ev(In,je.graph().align)};function Bv(Ft,je){var yt={};return Zn.reduce(je,function(It,Sn){var In=0,mr=0,Wr=It.length,Ir=Zn.last(Sn);return Zn.forEach(Sn,function(Br,xa){var vi=function(Yi,Wo){if(Yi.node(Wo).dummy)return Zn.find(Yi.predecessors(Wo),function(_s){return Yi.node(_s).dummy})}(Ft,Br),Ai=vi?Ft.node(vi).order:Wr;(vi||Br===Ir)&&(Zn.forEach(Sn.slice(mr,xa+1),function(Yi){Zn.forEach(Ft.predecessors(Yi),function(Wo){var _s=Ft.node(Wo),ys=_s.order;!(ys<In||Ai<ys)||_s.dummy&&Ft.node(Yi).dummy||om(yt,Wo,Yi)})}),mr=xa+1,In=Ai)}),Sn}),yt}function ah(Ft,je){var yt={};function It(Sn,In,mr,Wr,Ir){var Br;Zn.forEach(Zn.range(In,mr),function(xa){Br=Sn[xa],Ft.node(Br).dummy&&Zn.forEach(Ft.predecessors(Br),function(vi){var Ai=Ft.node(vi);Ai.dummy&&(Ai.order<Wr||Ai.order>Ir)&&om(yt,vi,Br)})})}return Zn.reduce(je,function(Sn,In){var mr,Wr=-1,Ir=0;return Zn.forEach(In,function(Br,xa){if(Ft.node(Br).dummy==="border"){var vi=Ft.predecessors(Br);vi.length&&(mr=Ft.node(vi[0]).order,It(In,Ir,xa,Wr,mr),Ir=xa,Wr=mr)}It(In,Ir,In.length,mr,Sn.length)}),In}),yt}function om(Ft,je,yt){if(je>yt){var It=je;je=yt,yt=It}var Sn=Ft[je];Sn||(Ft[je]=Sn={}),Sn[yt]=!0}function Og(Ft,je,yt){if(je>yt){var It=je;je=yt,yt=It}return Zn.has(Ft[je],yt)}function Kh(Ft,je,yt,It){var Sn={},In={},mr={};return Zn.forEach(je,function(Wr){Zn.forEach(Wr,function(Ir,Br){Sn[Ir]=Ir,In[Ir]=Ir,mr[Ir]=Br})}),Zn.forEach(je,function(Wr){var Ir=-1;Zn.forEach(Wr,function(Br){var xa=It(Br);if(xa.length)for(var vi=((xa=Zn.sortBy(xa,function(_s){return mr[_s]})).length-1)/2,Ai=Math.floor(vi),Yi=Math.ceil(vi);Ai<=Yi;++Ai){var Wo=xa[Ai];In[Br]===Br&&Ir<mr[Wo]&&!Og(yt,Br,Wo)&&(In[Wo]=Br,In[Br]=Sn[Br]=Sn[Wo],Ir=mr[Wo])}})}),{root:Sn,align:In}}function Dp(Ft,je,yt,It,Sn){var In={},mr=function(Br,xa,vi,Ai){var Yi=new fg,Wo=Br.graph(),_s=function(ys,qs,uc){return function(du,Pc,Ef){var Ru,_d=du.node(Pc),id=du.node(Ef),yd=0;if(yd+=_d.width/2,Zn.has(_d,"labelpos"))switch(_d.labelpos.toLowerCase()){case"l":Ru=-_d.width/2;break;case"r":Ru=_d.width/2}if(Ru&&(yd+=uc?Ru:-Ru),Ru=0,yd+=(_d.dummy?qs:ys)/2,yd+=(id.dummy?qs:ys)/2,yd+=id.width/2,Zn.has(id,"labelpos"))switch(id.labelpos.toLowerCase()){case"l":Ru=id.width/2;break;case"r":Ru=-id.width/2}return Ru&&(yd+=uc?Ru:-Ru),Ru=0,yd}}(Wo.nodesep,Wo.edgesep,Ai);return Zn.forEach(xa,function(ys){var qs;Zn.forEach(ys,function(uc){var du=vi[uc];if(Yi.setNode(du),qs){var Pc=vi[qs],Ef=Yi.edge(Pc,du);Yi.setEdge(Pc,du,Math.max(_s(Br,uc,qs),Ef||0))}qs=uc})}),Yi}(Ft,je,yt,Sn),Wr=Sn?"borderLeft":"borderRight";function Ir(Br,xa){for(var vi=mr.nodes(),Ai=vi.pop(),Yi={};Ai;)Yi[Ai]?Br(Ai):(Yi[Ai]=!0,vi.push(Ai),vi=vi.concat(xa(Ai))),Ai=vi.pop()}return Ir(function(Br){In[Br]=mr.inEdges(Br).reduce(function(xa,vi){return Math.max(xa,In[vi.v]+mr.edge(vi))},0)},mr.predecessors.bind(mr)),Ir(function(Br){var xa=mr.outEdges(Br).reduce(function(Ai,Yi){return Math.min(Ai,In[Yi.w]-mr.edge(Yi))},Number.POSITIVE_INFINITY),vi=Ft.node(Br);xa!==Number.POSITIVE_INFINITY&&vi.borderType!==Wr&&(In[Br]=Math.max(In[Br],xa))},mr.successors.bind(mr)),Zn.forEach(It,function(Br){In[Br]=In[yt[Br]]}),In}function Hp(Ft,je){return Zn.minBy(Zn.values(je),function(yt){var It=Number.NEGATIVE_INFINITY,Sn=Number.POSITIVE_INFINITY;return Zn.forIn(yt,function(In,mr){var Wr=function(Ir,Br){return Ir.node(Br).width}(Ft,mr)/2;It=Math.max(In+Wr,It),Sn=Math.min(In-Wr,Sn)}),It-Sn})}function Yh(Ft,je){var yt=Zn.values(je),It=Zn.min(yt),Sn=Zn.max(yt);Zn.forEach(["u","d"],function(In){Zn.forEach(["l","r"],function(mr){var Wr,Ir=In+mr,Br=Ft[Ir];if(Br!==je){var xa=Zn.values(Br);(Wr=mr==="l"?It-Zn.min(xa):Sn-Zn.max(xa))&&(Ft[Ir]=Zn.mapValues(Br,function(vi){return vi+Wr}))}})})}function ev(Ft,je){return Zn.mapValues(Ft.ul,function(yt,It){if(je)return Ft[je.toLowerCase()][It];var Sn=Zn.sortBy(Zn.map(Ft,It));return(Sn[1]+Sn[2])/2})}var Kd=_h,jp=function(je){(function(yt){var It=te.buildLayerMatrix(yt),Sn=yt.graph().ranksep,In=0;Zn.forEach(It,function(mr){var Wr=Zn.max(Zn.map(mr,function(Ir){return yt.node(Ir).height}));Zn.forEach(mr,function(Ir){yt.node(Ir).y=In+Wr/2}),In+=Wr+Sn})})(je=te.asNonCompoundGraph(je)),Zn.forEach(Kd(je),function(yt,It){je.node(It).x=yt})},vf=te.normalizeRanks,tv=te.removeEmptyRanks,Xv=te,nv=Dl.Graph,lh=function(je,yt){var It=yt&&yt.debugTiming?Xv.time:Xv.notime;It("layout",function(){var Sn=It(" buildLayoutGraph",function(){return function(In){var mr=new nv({multigraph:!0,compound:!0}),Wr=ch(In.graph());return mr.setGraph(Zn.merge({},Uv,o_(Wr,Bp),Zn.pick(Wr,dv))),Zn.forEach(In.nodes(),function(Ir){var Br=ch(In.node(Ir));mr.setNode(Ir,Zn.defaults(o_(Br,Ig),Mm)),mr.setParent(Ir,In.parent(Ir))}),Zn.forEach(In.edges(),function(Ir){var Br=ch(In.edge(Ir));mr.setEdge(Ir,Zn.merge({},dm,o_(Br,dg),Zn.pick(Br,Jm)))}),mr}(je)});It(" runLayout",function(){(function(In,mr){mr(" makeSpaceForEdgeLabels",function(){(function(Wr){var Ir=Wr.graph();Ir.ranksep/=2,Zn.forEach(Wr.edges(),function(Br){var xa=Wr.edge(Br);xa.minlen*=2,xa.labelpos.toLowerCase()!=="c"&&(Ir.rankdir==="TB"||Ir.rankdir==="BT"?xa.width+=xa.labeloffset:xa.height+=xa.labeloffset)})})(In)}),mr(" removeSelfEdges",function(){(function(Wr){Zn.forEach(Wr.edges(),function(Ir){if(Ir.v===Ir.w){var Br=Wr.node(Ir.v);Br.selfEdges||(Br.selfEdges=[]),Br.selfEdges.push({e:Ir,label:Wr.edge(Ir)}),Wr.removeEdge(Ir)}})})(In)}),mr(" acyclic",function(){Zl.run(In)}),mr(" nestingGraph.run",function(){mh.run(In)}),mr(" rank",function(){Nh(Xv.asNonCompoundGraph(In))}),mr(" injectEdgeLabelProxies",function(){(function(Wr){Zn.forEach(Wr.edges(),function(Ir){var Br=Wr.edge(Ir);if(Br.width&&Br.height){var xa=Wr.node(Ir.v),vi={rank:(Wr.node(Ir.w).rank-xa.rank)/2+xa.rank,e:Ir};Xv.addDummyNode(Wr,"edge-proxy",vi,"_ep")}})})(In)}),mr(" removeEmptyRanks",function(){tv(In)}),mr(" nestingGraph.cleanup",function(){mh.cleanup(In)}),mr(" normalizeRanks",function(){vf(In)}),mr(" assignRankMinMax",function(){(function(Wr){var Ir=0;Zn.forEach(Wr.nodes(),function(Br){var xa=Wr.node(Br);xa.borderTop&&(xa.minRank=Wr.node(xa.borderTop).rank,xa.maxRank=Wr.node(xa.borderBottom).rank,Ir=Zn.max(Ir,xa.maxRank))}),Wr.graph().maxRank=Ir})(In)}),mr(" removeEdgeLabelProxies",function(){(function(Wr){Zn.forEach(Wr.nodes(),function(Ir){var Br=Wr.node(Ir);Br.dummy==="edge-proxy"&&(Wr.edge(Br.e).labelRank=Br.rank,Wr.removeNode(Ir))})})(In)}),mr(" normalize.run",function(){Nt.run(In)}),mr(" parentDummyChains",function(){Lh(In)}),mr(" addBorderSegments",function(){rh(In)}),mr(" order",function(){fv(In)}),mr(" insertSelfEdges",function(){(function(Wr){var Ir=Xv.buildLayerMatrix(Wr);Zn.forEach(Ir,function(Br){var xa=0;Zn.forEach(Br,function(vi,Ai){var Yi=Wr.node(vi);Yi.order=Ai+xa,Zn.forEach(Yi.selfEdges,function(Wo){Xv.addDummyNode(Wr,"selfedge",{width:Wo.label.width,height:Wo.label.height,rank:Yi.rank,order:Ai+ ++xa,e:Wo.e,label:Wo.label},"_se")}),delete Yi.selfEdges})})})(In)}),mr(" adjustCoordinateSystem",function(){gh.adjust(In)}),mr(" position",function(){jp(In)}),mr(" positionSelfEdges",function(){(function(Wr){Zn.forEach(Wr.nodes(),function(Ir){var Br=Wr.node(Ir);if(Br.dummy==="selfedge"){var xa=Wr.node(Br.e.v),vi=xa.x+xa.width/2,Ai=xa.y,Yi=Br.x-vi,Wo=xa.height/2;Wr.setEdge(Br.e,Br.label),Wr.removeNode(Ir),Br.label.points=[{x:vi+2*Yi/3,y:Ai-Wo},{x:vi+5*Yi/6,y:Ai-Wo},{x:vi+Yi,y:Ai},{x:vi+5*Yi/6,y:Ai+Wo},{x:vi+2*Yi/3,y:Ai+Wo}],Br.label.x=Br.x,Br.label.y=Br.y}})})(In)}),mr(" removeBorderNodes",function(){(function(Wr){Zn.forEach(Wr.nodes(),function(Ir){if(Wr.children(Ir).length){var Br=Wr.node(Ir),xa=Wr.node(Br.borderTop),vi=Wr.node(Br.borderBottom),Ai=Wr.node(Zn.last(Br.borderLeft)),Yi=Wr.node(Zn.last(Br.borderRight));Br.width=Math.abs(Yi.x-Ai.x),Br.height=Math.abs(vi.y-xa.y),Br.x=Ai.x+Br.width/2,Br.y=xa.y+Br.height/2}}),Zn.forEach(Wr.nodes(),function(Ir){Wr.node(Ir).dummy==="border"&&Wr.removeNode(Ir)})})(In)}),mr(" normalize.undo",function(){Nt.undo(In)}),mr(" fixupEdgeLabelCoords",function(){(function(Wr){Zn.forEach(Wr.edges(),function(Ir){var Br=Wr.edge(Ir);if(Zn.has(Br,"x"))switch(Br.labelpos!=="l"&&Br.labelpos!=="r"||(Br.width-=Br.labeloffset),Br.labelpos){case"l":Br.x-=Br.width/2+Br.labeloffset;break;case"r":Br.x+=Br.width/2+Br.labeloffset}})})(In)}),mr(" undoCoordinateSystem",function(){gh.undo(In)}),mr(" translateGraph",function(){(function(Wr){var Ir=Number.POSITIVE_INFINITY,Br=0,xa=Number.POSITIVE_INFINITY,vi=0,Ai=Wr.graph(),Yi=Ai.marginx||0,Wo=Ai.marginy||0;function _s(ys){var qs=ys.x,uc=ys.y,du=ys.width,Pc=ys.height;Ir=Math.min(Ir,qs-du/2),Br=Math.max(Br,qs+du/2),xa=Math.min(xa,uc-Pc/2),vi=Math.max(vi,uc+Pc/2)}Zn.forEach(Wr.nodes(),function(ys){_s(Wr.node(ys))}),Zn.forEach(Wr.edges(),function(ys){var qs=Wr.edge(ys);Zn.has(qs,"x")&&_s(qs)}),Ir-=Yi,xa-=Wo,Zn.forEach(Wr.nodes(),function(ys){var qs=Wr.node(ys);qs.x-=Ir,qs.y-=xa}),Zn.forEach(Wr.edges(),function(ys){var qs=Wr.edge(ys);Zn.forEach(qs.points,function(uc){uc.x-=Ir,uc.y-=xa}),Zn.has(qs,"x")&&(qs.x-=Ir),Zn.has(qs,"y")&&(qs.y-=xa)}),Ai.width=Br-Ir+Yi,Ai.height=vi-xa+Wo})(In)}),mr(" assignNodeIntersects",function(){(function(Wr){Zn.forEach(Wr.edges(),function(Ir){var Br,xa,vi=Wr.edge(Ir),Ai=Wr.node(Ir.v),Yi=Wr.node(Ir.w);vi.points?(Br=vi.points[0],xa=vi.points[vi.points.length-1]):(vi.points=[],Br=Yi,xa=Ai),vi.points.unshift(Xv.intersectRect(Ai,Br)),vi.points.push(Xv.intersectRect(Yi,xa))})})(In)}),mr(" reversePoints",function(){(function(Wr){Zn.forEach(Wr.edges(),function(Ir){var Br=Wr.edge(Ir);Br.reversed&&Br.points.reverse()})})(In)}),mr(" acyclic.undo",function(){Zl.undo(In)})})(Sn,It)}),It(" updateInputGraph",function(){(function(In,mr){Zn.forEach(In.nodes(),function(Wr){var Ir=In.node(Wr),Br=mr.node(Wr);Ir&&(Ir.x=Br.x,Ir.y=Br.y,mr.children(Wr).length&&(Ir.width=Br.width,Ir.height=Br.height))}),Zn.forEach(In.edges(),function(Wr){var Ir=In.edge(Wr),Br=mr.edge(Wr);Ir.points=Br.points,Zn.has(Br,"x")&&(Ir.x=Br.x,Ir.y=Br.y)}),In.graph().width=mr.graph().width,In.graph().height=mr.graph().height})(je,Sn)})})},Bp=["nodesep","edgesep","ranksep","marginx","marginy"],Uv={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},dv=["acyclicer","ranker","rankdir","align"],Ig=["width","height"],Mm={width:0,height:0},dg=["minlen","weight","width","height","labeloffset"],dm={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Jm=["labelpos"];function o_(Ft,je){return Zn.mapValues(Zn.pick(Ft,je),Number)}function ch(Ft){var je={};return Zn.forEach(Ft,function(yt,It){je[It.toLowerCase()]=yt}),je}var pg=Dl.Graph,yh={graphlib:Dl,layout:lh,debug:{debugOrdering:function(je){var yt=te.buildLayerMatrix(je),It=new pg({compound:!0,multigraph:!0}).setGraph({});return Zn.forEach(je.nodes(),function(Sn){It.setNode(Sn,{label:Sn}),It.setParent(Sn,"layer"+je.node(Sn).rank)}),Zn.forEach(je.edges(),function(Sn){It.setEdge(Sn.v,Sn.w,{},Sn.name)}),Zn.forEach(yt,function(Sn,In){var mr="layer"+In;It.setNode(mr,{rank:"same"}),Zn.reduce(Sn,function(Wr,Ir){return It.setEdge(Wr,Ir,{style:"invis"}),Ir})}),It}},util:{time:te.time,notime:te.notime},version:"0.8.5"},vg=yh.graphlib,Dg=yh.layout,km=(0,w.Z)(function Ft(je){(0,m.Z)(this,Ft),this.cardinality=1,this.include=S.UNSPECIFIED,this.isGroupNode=!1,this.parentNode=null,this.type=p.NODE,this.name=je.name,this.attr=je.attr||{},this.inputs=je.inputs,this.path=je.path||[],this.width=je.width,this.height=je.height}),Ng=(0,w.Z)(function Ft(){(0,m.Z)(this,Ft),this.nodes={},this.edges=[],this.nodes={},this.edges=[]});function O_(Ft){var je=new Ng;return Ft.nodes.map(function(yt){return new km(yt)}).forEach(function(yt){je.nodes[yt.name]=yt,yt.inputs.forEach(function(It){(function(Sn,In,mr){mr.name!==In.name&&Sn.edges.push(Object.assign(Object.assign({},mr.attr),{v:mr.name,w:In.name}))})(je,yt,It)})}),je}var e0=function(){function Ft(je){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,m.Z)(this,Ft),this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=S.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=p.META,this.path=[],this.name=je,this.metaGraph=ea(je,k.META,yt)}return(0,w.Z)(Ft,[{key:"getFirstChild",value:function(){return this.metaGraph.node(this.metaGraph.nodes()[0])}},{key:"getChildren",value:function(){var yt=this;return this.metaGraph.nodes().map(function(It){return yt.metaGraph.node(It)})}},{key:"leaves",value:function(){for(var yt,It=[],Sn=[this];Sn.length;){var In=Sn.shift();In.isGroupNode?(yt=In.metaGraph,yt.nodes().forEach(function(mr){return Sn.push(yt.node(mr))})):It.push(In.name)}return It}}]),Ft}(),pm=function(){function Ft(je,yt){(0,m.Z)(this,Ft),this.v=je,this.w=yt,this.baseEdgeList=[],this.inbound=null,this.name=null}return(0,w.Z)(Ft,[{key:"addBaseEdge",value:function(yt,It){this.baseEdgeList.push(yt)}}]),Ft}();function Lg(Ft){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new e0(Ft,je)}function $r(Ft,je){return new pm(Ft,je)}function ea(Ft,je,yt){var It=yt||{},Sn=new vg.Graph(It);return Sn.setGraph({name:Ft,rankdir:It.rankdir,type:je,align:It.align}),Sn}var bi=function(){function Ft(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,m.Z)(this,Ft),this.graphOptions=je,this.index={},this.graphOptions.compound=!0,this.root=Lg(d,this.graphOptions),this.index[d]=this.root}return(0,w.Z)(Ft,[{key:"getNodeMap",value:function(){return this.index}},{key:"node",value:function(yt){return this.index[yt]}},{key:"setNode",value:function(yt,It){this.index[yt]=It}},{key:"getBridgeGraph",value:function(yt){var It=this,Sn=this.index[yt];if(!Sn)throw Error("Could not find node in hierarchy: "+yt);if(!("metaGraph"in Sn))return null;var In=Sn;if(In.bridgeGraph)return In.bridgeGraph;var mr=ea(_,k.BRIDGE,this.graphOptions);if(In.bridgeGraph=mr,!Sn.parentNode||!("metaGraph"in Sn.parentNode))return mr;var Wr=Sn.parentNode;return[Wr.metaGraph,this.getBridgeGraph(Wr.name)].forEach(function(Ir){Ir.edges().filter(function(Br){return Br.v===yt||Br.w===yt}).forEach(function(Br){var xa=Br.w===yt;Ir.edge(Br).baseEdgeList.forEach(function(vi){var Ai=xa?[vi.w,Br.v]:[vi.v,Br.w],Yi=(0,M.Z)(Ai,2),Wo=Yi[0],_s=Yi[1],ys=It.getChildName(yt,Wo),qs={v:xa?_s:ys,w:xa?ys:_s},uc=mr.edge(qs);uc||(uc=$r(qs.v,qs.w),uc.inbound=xa,mr.setEdge(qs.v,qs.w,uc)),uc.addBaseEdge(vi,It)})})}),mr}},{key:"getChildName",value:function(yt,It){for(var Sn=this.index[It];Sn;){if(Sn.parentNode&&Sn.parentNode.name===yt)return Sn.name;Sn=Sn.parentNode}throw Error("Could not find immediate child for descendant: "+It)}},{key:"getPredecessors",value:function(yt){var It=this.index[yt];if(!It)throw Error("Could not find node with name: "+yt);return this.getOneWayEdges(It,!0)}},{key:"getSuccessors",value:function(yt){var It=this.index[yt];if(!It)throw Error("Could not find node with name: "+yt);return this.getOneWayEdges(It,!1)}},{key:"getOneWayEdges",value:function(yt,It){var Sn=[];if(!yt.parentNode||!yt.parentNode.isGroupNode)return Sn;var In=yt.parentNode,mr=In.metaGraph,Wr=this.getBridgeGraph(In.name);return _o(mr,yt,It,Sn),_o(Wr,yt,It,Sn),Sn}}]),Ft}();function To(Ft,je){var yt=je.rankDirection,It=je.align,Sn=new bi({rankdir:yt,align:It});return function(In,mr){Object.keys(mr.nodes).forEach(function(Wr){var Ir=mr.nodes[Wr],Br=Ir.path,xa=In.root;xa.depth=Math.max(Br.length,xa.depth);for(var vi=0;vi<Br.length&&(xa.depth=Math.max(xa.depth,Br.length-vi),xa.cardinality+=Ir.cardinality,vi!==Br.length-1);vi++){var Ai=Br[vi],Yi=In.node(Ai);Yi||(Yi=Lg(Ai,In.graphOptions),Yi.path=Ir.path.slice(0,vi+1),Yi.parentNode=xa,In.setNode(Ai,Yi),xa.metaGraph.setNode(Ai,Yi)),xa=Yi}In.setNode(Ir.name,Ir),Ir.parentNode=xa,xa.metaGraph.setNode(Ir.name,Ir)})}(Sn,Ft),function(In,mr){var Wr=In.getNodeMap(),Ir=[],Br=[],xa=function(Ai,Yi){for(var Wo=0;Ai;)Yi[Wo++]=Ai.name,Ai=Ai.parentNode;return Wo-1};mr.edges.forEach(function(vi){Ir=[],Br=[];for(var Ai=xa(mr.nodes[vi.v],Ir),Yi=xa(mr.nodes[vi.w],Br);Ir[Ai]===Br[Yi];)if(Ai--,Yi--,Ai<0||Yi<0)throw Error("No difference found between ancestor paths.");var Wo=Wr[Ir[Ai+1]],_s=Ir[Ai],ys=Br[Yi],qs=Wo.metaGraph.edge(_s,ys);qs||(qs=$r(_s,ys),Wo.metaGraph.setEdge(_s,ys,qs)),qs.addBaseEdge(vi,In)})}(Sn,Ft),Sn}function _o(Ft,je,yt,It){(yt?Ft.inEdges(je.name):Ft.outEdges(je.name)).forEach(function(Sn){var In=Ft.edge(Sn);It.push(In)})}var Ss=function(){function Ft(je){(0,m.Z)(this,Ft),this.hierarchy=je,this.index={},this.hasSubHierarchy={},this.root=new kl(this.hierarchy.root,this.hierarchy.graphOptions),this.index[je.root.name]=this.root,this.buildSubHierarchy(je.root.name),this.root.expanded=!0}return(0,w.Z)(Ft,[{key:"getRenderInfoNodes",value:function(){return Object.values(this.index)}},{key:"getSubHierarchy",value:function(){return this.hasSubHierarchy}},{key:"buildSubHierarchy",value:function(yt){var It=this;if(!(yt in this.hasSubHierarchy)){this.hasSubHierarchy[yt]=!0;var Sn=this.index[yt];if(Sn.node.type===p.META){var In=Sn,mr=In.node.metaGraph,Wr=In.coreGraph;mr.nodes().forEach(function(Ai){var Yi=It.getOrCreateRenderNodeByName(Ai);Wr.setNode(Ai,Yi)}),mr.edges().forEach(function(Ai){var Yi=mr.edge(Ai),Wo=new Ns(Yi);Wr.setEdge(Ai.v,Ai.w,Wo)});var Ir=In.node.parentNode;if(!!Ir){var Br=this.getRenderNodeByName(Ir.name),xa=function(Yi){for(var Wo=arguments.length,_s=new Array(Wo>1?Wo-1:0),ys=1;ys<Wo;ys++)_s[ys-1]=arguments[ys];return _s.concat([Yi?"IN":"OUT"]).join("~~")},vi=this.hierarchy.getBridgeGraph(yt);vi.edges().forEach(function(Ai){var Yi=vi.edge(Ai),Wo=!!mr.node(Ai.w),_s=Wo?[Ai.w,Ai.v]:[Ai.v,Ai.w],ys=(0,M.Z)(_s,2),qs=ys[0],uc=ys[1],du=function(Sf){var Bf=Wo?{v:Sf,w:yt}:{v:yt,w:Sf};return Br.coreGraph.edge(Bf)},Pc=du(uc);Pc||(Pc=du(xa(Wo,uc,Ir.name)));var Ef=xa(Wo,yt),Ru=xa(Wo,uc,yt),_d=Wr.node(Ru);if(!_d){var id=Wr.node(Ef);if(!id){var yd={name:Ef,type:p.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:S.UNSPECIFIED,inbound:Wo,attr:{}};id=new Qi(yd),It.index[Ef]=id,Wr.setNode(Ef,id)}var Qu={name:Ru,type:p.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:S.UNSPECIFIED,inbound:Wo,attr:{}};_d=new Qi(Qu),It.index[Ru]=_d,Wr.setNode(Ru,_d),Wr.setParent(Ru,Ef),id.node.cardinality++}var Yd=new Ns(Yi);Yd.adjoiningMetaEdge=Pc,Wo?Wr.setEdge(Ru,qs,Yd):Wr.setEdge(qs,Ru,Yd)})}}}}},{key:"getOrCreateRenderNodeByName",value:function(yt){if(!yt)return null;if(yt in this.index)return this.index[yt];var It=this.getNodeByName(yt);return It?(this.index[yt]=It.isGroupNode?new kl(It,this.hierarchy.graphOptions):new Qi(It),this.index[yt]):null}},{key:"getRenderNodeByName",value:function(yt){return this.index[yt]}},{key:"getNodeByName",value:function(yt){return this.hierarchy.node(yt)}}]),Ft}(),Qi=(0,w.Z)(function Ft(je){(0,m.Z)(this,Ft),this.node=je,this.expanded=!1,this.x=0,this.y=0,this.coreBox={width:0,height:0},this.outboxWidth=0,this.labelOffset=0,this.radius=0,this.labelHeight=0,this.paddingTop=0,this.paddingLeft=0,this.paddingRight=0,this.paddingBottom=0,this.width=je.width||0,this.height=je.height||0,this.displayName=je.name,this.attr=je.attr}),Ns=(0,w.Z)(function Ft(je){(0,m.Z)(this,Ft),this.metaEdge=je,this.adjoiningMetaEdge=null,this.weight=1,this.points=[]}),kl=function(Ft){(0,A.Z)(yt,Ft);var je=(0,y.Z)(yt);function yt(It,Sn){var In;(0,m.Z)(this,yt),In=je.call(this,It);var mr=It.metaGraph.graph();return Sn.compound=!0,In.coreGraph=ea(mr.name,k.CORE,Sn),In}return(0,w.Z)(yt)}(Qi);function yl(Ft,je){Ft.node.isGroupNode&&function(yt,It){var Sn=v(It);yt.coreGraph.nodes().map(function(In){return yt.coreGraph.node(In)}).forEach(function(In){var mr,Wr,Ir,Br,xa,vi,Ai=In.height,Yi=In.width;switch(In.node.type){case p.NODE:Object.assign(In,Sn.nodeSize.node),In.height=Ai||Sn.nodeSize.node.height,In.width=Yi||Sn.nodeSize.node.width;break;case p.BRIDGE:Object.assign(In,Sn.nodeSize.bridge);break;case p.META:In.expanded?yl(In,It):(Object.assign(In,Sn.nodeSize.meta),In.height=Sn.nodeSize.meta.height,In.width=Sn.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+In.node.type)}if(!In.expanded){var Wo=In.attr;(function(_s){var ys=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(_s.coreBox.width=_s.width,_s.coreBox.height=_s.height,!ys){var qs="".concat(_s.displayName).length,uc=3;_s.width=Math.max(_s.coreBox.width,qs*uc)}})(In,It&&(In.node.type===0&&!!((Wr=(mr=It==null?void 0:It.nodeSize)===null||mr===void 0?void 0:mr.meta)===null||Wr===void 0?void 0:Wr.width)||In.node.type===1&&(!!((Br=(Ir=It==null?void 0:It.nodeSize)===null||Ir===void 0?void 0:Ir.node)===null||Br===void 0?void 0:Br.width)||!!Wo.width)||In.node.type===2&&!!((vi=(xa=It==null?void 0:It.nodeSize)===null||xa===void 0?void 0:xa.bridge)===null||vi===void 0?void 0:vi.width)))}})}(Ft,je),Ft.node.type===p.META&&function(yt,It){var Sn=v(It),In=Sn.subScene.meta;Object.assign(yt,In);var mr=Sn.graph.meta,Wr=mr.nodeSep,Ir=mr.rankSep,Br=mr.edgeSep,xa=mr.align,vi={nodesep:Wr,ranksep:Ir,edgesep:Br,align:xa};Object.assign(yt.coreBox,function(Wo,_s){var ys=_s.ranksep,qs=_s.nodesep,uc=_s.edgesep,du=_s.align;Object.assign(Wo.graph(),{ranksep:ys,nodesep:qs,edgesep:uc,align:du});var Pc=[];if(Wo.nodes().forEach(function(yd){Wo.node(yd).node.type!==p.BRIDGE&&Pc.push(yd)}),!Pc.length)return{width:0,height:0};Dg(Wo);var Ef=1/0,Ru=1/0,_d=-1/0,id=-1/0;return Pc.forEach(function(yd){var Qu=Wo.node(yd),Yd=.5*Qu.width,Xd=Qu.x-Yd,Sf=Qu.x+Yd;Ef=Xd<Ef?Xd:Ef,_d=Sf>_d?Sf:_d;var Bf=.5*Qu.height,cd=Qu.y-Bf,qu=Qu.y+Bf;Ru=cd<Ru?cd:Ru,id=qu>id?qu:id}),Wo.edges().forEach(function(yd){var Qu=Wo.edge(yd),Yd=Wo.node(Qu.metaEdge.v),Xd=Wo.node(Qu.metaEdge.w);if(Qu.points.length===3&&function(Nu){for(var Id=Tl(Nu[0],Nu[1]),Ev=1;Ev<Nu.length-1;Ev++){var Rv=Tl(Nu[Ev],Nu[Ev+1]);if(Math.abs(Rv-Id)>1)return!1;Id=Rv}return!0}(Qu.points)){if(Yd!=null){var Sf=Yd.expanded?Yd.x:ll(Yd);Qu.points[0].x=Sf}if(Xd!=null){var Bf=Xd.expanded?Xd.x:ll(Xd);Qu.points[2].x=Bf}Qu.points=[Qu.points[0],Qu.points[1]]}var cd=Qu.points[Qu.points.length-2];Xd!=null&&(Qu.points[Qu.points.length-1]=ac(cd,Xd));var qu=Qu.points[1];Yd!=null&&(Qu.points[0]=ac(qu,Yd)),Qu.points.forEach(function(Nu){Ef=Nu.x<Ef?Nu.x:Ef,_d=Nu.x>_d?Nu.x:_d,Ru=Nu.y<Ru?Nu.y:Ru,id=Nu.y>id?Nu.y:id})}),Wo.nodes().forEach(function(yd){var Qu=Wo.node(yd);Qu.x-=Ef,Qu.y-=Ru}),Wo.edges().forEach(function(yd){Wo.edge(yd).points.forEach(function(Qu){Qu.x-=Ef,Qu.y-=Ru})}),{width:_d-Ef,height:id-Ru}}(yt.coreGraph,vi));var Ai=0;yt.coreGraph.nodeCount()>0&&Ai++;var Yi=Ai<=1?0:Ai;yt.coreBox.width+=Yi+Yi,yt.coreBox.height=In.labelHeight+yt.coreBox.height,yt.width=yt.coreBox.width+In.paddingLeft+In.paddingRight,yt.height=yt.paddingTop+yt.coreBox.height+yt.paddingBottom}(Ft,je)}function Tl(Ft,je){var yt=je.x-Ft.x,It=je.y-Ft.y;return 180*Math.atan(It/yt)/Math.PI}function ll(Ft){return Ft.expanded?Ft.x:Ft.x-Ft.width/2+0+Ft.coreBox.width/2}function ac(Ft,je){var yt=je.expanded?je.x:ll(je),It=je.y,Sn=Ft.x-yt,In=Ft.y-It,mr,Wr,Ir=je.expanded?je.width:je.coreBox.width,Br=je.expanded?je.height:je.coreBox.height;return Math.abs(In)*Ir/2>Math.abs(Sn)*Br/2?(In<0&&(Br=-Br),mr=In===0?0:Br/2*Sn/In,Wr=Br/2):(Sn<0&&(Ir=-Ir),mr=Ir/2,Wr=Sn===0?0:Ir/2*In/Sn),{x:yt+mr,y:It+Wr}}function Xl(Ft,je,yt){var It,Sn,In,mr,Wr=Ft.nodes.filter(function(vi,Ai,Yi){return Yi.findIndex(function(Wo){return Wo.id===vi.id})!==Ai}).map(function(vi){return vi.id});if(Wr.length)throw new Error("Duplicated ids found: ".concat(Wr.join(", ")));var Ir=function(vi){var Ai={nodes:[]},Yi=vi.compound,Wo=Object.keys(Yi||{}),_s=new Map,ys=function uc(du){var Pc=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(_s.has(du))return _s.get(du);for(var Ef=0;Ef<Wo.length;Ef++){var Ru=Wo[Ef];if(Yi&&Yi[Ru].indexOf(du)!==-1)return Pc.unshift(Ru),uc(Ru,Pc)}return Pc.length===0&&_s.set(du,Pc),Pc},qs=function(du){return vi.edges.filter(function(Pc){return Pc.w===du}).map(function(Pc){return{name:Pc.v}})};return vi.nodes.forEach(function(uc){var du=uc.id,Pc=[].concat((0,g.Z)(ys(du)),[du]),Ef=qs(du);Ai.nodes.push({name:du,path:Pc,inputs:Ef,width:uc.width,height:uc.height,attr:Object.assign({},uc)})}),Ai}(Ft),Br=function(vi,Ai){var Yi=function(ys,qs){var uc=(0,x.Z)(qs.values()),du;try{for(uc.s();!(du=uc.n()).done;){var Pc=du.value;if(Pc.includes(ys))return!0}}catch(Ef){uc.e(Ef)}finally{uc.f()}return!1},Wo=function _s(ys){var qs=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(Object.keys(ys).length===0)return(0,g.Z)(new Set(qs));var uc=new Map(Object.keys(ys).map(function(Qu){return[Qu,ys[Qu]]})),du={},Pc=(0,x.Z)(uc),Ef;try{for(Pc.s();!(Ef=Pc.n()).done;){var Ru=Ef.value,_d=(0,M.Z)(Ru,2),id=_d[0],yd=_d[1];Yi(id,uc)?du[id]=yd:qs=qs.concat(id,yd)}}catch(Qu){Pc.e(Qu)}finally{Pc.f()}return _s(du,qs)};return Wo(vi).filter(function(_s){return Ai.includes(_s)})}(Ft.compound||{},(je==null?void 0:je.expanded)||[]),xa=function(vi,Ai){return function(Yi){return new Ss(Yi)}(To(O_(vi),Ai))}(Ir,{rankDirection:((Sn=(It=yt==null?void 0:yt.graph)===null||It===void 0?void 0:It.meta)===null||Sn===void 0?void 0:Sn.rankDir)||(je==null?void 0:je.rankDirection)||b.graph.meta.rankDir,align:((mr=(In=yt==null?void 0:yt.graph)===null||In===void 0?void 0:In.meta)===null||mr===void 0?void 0:mr.align)||b.graph.meta.align});return function(vi,Ai){Ai.forEach(function(Yi){var Wo=vi.getRenderInfoNodes().find(function(qs){return qs.displayName===Yi}),_s=Wo&&Wo.node&&Wo.node.name||"",ys=vi.getRenderNodeByName(_s);if(!ys)throw new Error("No nodes found: ".concat(_s));ys.expanded=!0,vi.buildSubHierarchy(_s)})}(xa,Br),yl(xa.root,yt),Go(xa.root)}function Ol(Ft){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yt=JSON.parse(JSON.stringify(Ft)),It={nodes:[yt],edges:(0,g.Z)(yt.edges)};return yt.nodes.forEach(function Sn(In){(In.type===0||In.type===1)&&It.nodes.push(In),In.type===0&&(It.edges=It.edges.concat(In.edges)),Array.isArray(In.nodes)&&In.nodes.forEach(Sn)}),je&&It.nodes.forEach(function(Sn){var In=It.nodes.find(function(Ir){return Ir.id===Sn.parentNodeName});if(In){var mr=In.x-In.width/2+In.paddingLeft,Wr=In.y-In.height/2+In.labelHeight+In.paddingTop;In.id!==d&&(Sn.x+=mr,Sn.y+=Wr),Sn.type===0&&Sn.edges.forEach(function(Ir){Ir.points.forEach(function(Br){Br.x+=Sn.x-Sn.width/2+Sn.paddingLeft,Br.y+=Sn.y-Sn.height/2+Sn.labelHeight+Sn.paddingTop})})}}),It}function es(Ft,je,yt,It){var Sn,In,mr=[],Wr=((Sn=yt.find(function(vi){return vi.id===Ft}))===null||Sn===void 0?void 0:Sn.path)||[],Ir=((In=yt.find(function(vi){return vi.id===je}))===null||In===void 0?void 0:In.path)||[],Br=[d].concat((0,g.Z)(Wr)).slice(0,Wr.length).reverse(),xa=[d].concat((0,g.Z)(Ir)).slice(0,Ir.length);return Br.forEach(function(vi){var Ai=yt.find(function(Yi){return Yi.id===vi});mr=mr.concat(Ai.edges.filter(function(Yi){return Yi.baseEdgeList.some(function(Wo){return Wo.v===((It==null?void 0:It.v)||Ft)&&Wo.w===((It==null?void 0:It.w)||je)})}))}),xa.filter(function(vi){return!Br.includes(vi)}).forEach(function(vi){var Ai=yt.find(function(Yi){return Yi.id===vi});mr=mr.concat(Ai.edges.filter(function(Yi){return Yi.baseEdgeList.some(function(Wo){return Wo.v===((It==null?void 0:It.v)||Ft)&&Wo.w===((It==null?void 0:It.w)||je)})}))}),mr}function Go(Ft){var je=Ft.coreGraph.nodes().map(function(It){return Ft.coreGraph.node(It)});return Object.assign(Object.assign({},Yo(Ft)),{expanded:Ft.expanded,nodes:Ft.expanded?(yt=je,yt.map(function(It){return It.node.type===p.META?Go(It):Yo(It)})):[],edges:Ft.expanded?Ec(Ft):[]});var yt}function Yo(Ft){return{id:Ft.node.name,name:Ft.node.name,type:Ft.node.type,cardinality:Ft.node.cardinality,attr:Ft.attr,parentNodeName:Ft.node.parentNode?Ft.node.parentNode.name:null,coreBox:Object.assign({},Ft.coreBox),x:Ft.x,y:Ft.y,width:Ft.width,height:Ft.height,radius:Ft.radius,labelHeight:Ft.labelHeight,labelOffset:Ft.labelOffset,outboxWidth:Ft.outboxWidth,paddingLeft:Ft.paddingLeft,paddingTop:Ft.paddingTop,paddingRight:Ft.paddingRight,paddingBottom:Ft.paddingBottom,path:Ft.node.path}}function Ec(Ft){return Ft.coreGraph.edges().map(function(je){return{renderInfoEdge:Ft.coreGraph.edge(je),edge:je}}).filter(function(je){var yt=je.renderInfoEdge;return yt.metaEdge}).map(function(je){var yt=je.edge,It=je.renderInfoEdge,Sn=function(In,mr){var Wr=mr.points.map(function(uc){return Object.assign({},uc)});if(mr.adjoiningMetaEdge){var Ir=mr.adjoiningMetaEdge.points,Br=mr.metaEdge.inbound,xa=Br?Ir[Ir.length-1]:Ir[0],vi=Wr[Br?0:Wr.length-1],Ai=In.x-In.width/2,Yi=In.y-In.height/2,Wo=xa.x-Ai,_s=xa.y-Yi,ys=-In.paddingLeft,qs=-(In.paddingTop+In.labelHeight);vi.x=Wo+ys,vi.y=_s+qs}return Wr}(Ft,It);return{adjoiningEdge:It.adjoiningMetaEdge?{w:It.adjoiningMetaEdge.metaEdge.w,v:It.adjoiningMetaEdge.metaEdge.v}:null,inbound:It.metaEdge.inbound,w:yt.w,v:yt.v,points:Sn,weight:It.weight,baseEdgeList:It.metaEdge.baseEdgeList,parentNodeName:Ft.node.name}})}},9948:function(oe){(function(N,o){oe.exports=o()})(this,function(){"use strict";var N=1e3,o=6e4,x=36e5,g="millisecond",A="second",y="minute",M="hour",w="day",m="week",b="month",v="quarter",h="year",d="date",_="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(K){var re=["th","st","nd","rd"],ne=K%100;return"["+K+(re[(ne-20)%10]||re[ne]||re[0])+"]"}},O=function(K,re,ne){var Q=String(K);return!Q||Q.length>=re?K:""+Array(re+1-Q.length).join(ne)+K},F={s:O,z:function(K){var re=-K.utcOffset(),ne=Math.abs(re),Q=Math.floor(ne/60),ue=ne%60;return(re<=0?"+":"-")+O(Q,2,"0")+":"+O(ue,2,"0")},m:function z(K,re){if(K.date()<re.date())return-z(re,K);var ne=12*(re.year()-K.year())+(re.month()-K.month()),Q=K.clone().add(ne,b),ue=re-Q<0,he=K.clone().add(ne+(ue?-1:1),b);return+(-(ne+(re-Q)/(ue?Q-he:he-Q))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:b,y:h,w:m,d:w,D:d,h:M,m:y,s:A,ms:g,Q:v}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},D="en",Z={};Z[D]=k;var W=function(K){return K instanceof $},U=function z(K,re,ne){var Q;if(!K)return D;if(typeof K=="string"){var ue=K.toLowerCase();Z[ue]&&(Q=ue),re&&(Z[ue]=re,Q=ue);var he=K.split("-");if(!Q&&he.length>1)return z(he[0])}else{var Ee=K.name;Z[Ee]=K,Q=Ee}return!ne&&Q&&(D=Q),Q||!ne&&D},L=function(K,re){if(W(K))return K.clone();var ne=typeof re=="object"?re:{};return ne.date=K,ne.args=arguments,new $(ne)},V=F;V.l=U,V.i=W,V.w=function(z,K){return L(z,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var $=function(){function z(re){this.$L=U(re.locale,null,!0),this.parse(re)}var K=z.prototype;return K.parse=function(re){this.$d=function(ne){var Q=ne.date,ue=ne.utc;if(Q===null)return new Date(NaN);if(V.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var he=Q.match(p);if(he){var Ee=he[2]-1||0,ce=(he[7]||"0").substring(0,3);return ue?new Date(Date.UTC(he[1],Ee,he[3]||1,he[4]||0,he[5]||0,he[6]||0,ce)):new Date(he[1],Ee,he[3]||1,he[4]||0,he[5]||0,he[6]||0,ce)}}return new Date(Q)}(re),this.$x=re.x||{},this.init()},K.init=function(){var re=this.$d;this.$y=re.getFullYear(),this.$M=re.getMonth(),this.$D=re.getDate(),this.$W=re.getDay(),this.$H=re.getHours(),this.$m=re.getMinutes(),this.$s=re.getSeconds(),this.$ms=re.getMilliseconds()},K.$utils=function(){return V},K.isValid=function(){return this.$d.toString()!==_},K.isSame=function(re,ne){var Q=L(re);return this.startOf(ne)<=Q&&Q<=this.endOf(ne)},K.isAfter=function(re,ne){return L(re)<this.startOf(ne)},K.isBefore=function(re,ne){return this.endOf(ne)<L(re)},K.$g=function(re,ne,Q){return V.u(re)?this[ne]:this.set(Q,re)},K.unix=function(){return Math.floor(this.valueOf()/1e3)},K.valueOf=function(){return this.$d.getTime()},K.startOf=function(re,ne){var Q=this,ue=!!V.u(ne)||ne,he=V.p(re),Ee=function(Je,ke){var De=V.w(Q.$u?Date.UTC(Q.$y,ke,Je):new Date(Q.$y,ke,Je),Q);return ue?De:De.endOf(w)},ce=function(Je,ke){return V.w(Q.toDate()[Je].apply(Q.toDate("s"),(ue?[0,0,0,0]:[23,59,59,999]).slice(ke)),Q)},ve=this.$W,fe=this.$M,we=this.$D,me="set"+(this.$u?"UTC":"");switch(he){case h:return ue?Ee(1,0):Ee(31,11);case b:return ue?Ee(1,fe):Ee(0,fe+1);case m:var Pe=this.$locale().weekStart||0,pe=(ve<Pe?ve+7:ve)-Pe;return Ee(ue?we-pe:we+(6-pe),fe);case w:case d:return ce(me+"Hours",0);case M:return ce(me+"Minutes",1);case y:return ce(me+"Seconds",2);case A:return ce(me+"Milliseconds",3);default:return this.clone()}},K.endOf=function(re){return this.startOf(re,!1)},K.$set=function(re,ne){var Q,ue=V.p(re),he="set"+(this.$u?"UTC":""),Ee=(Q={},Q[w]=he+"Date",Q[d]=he+"Date",Q[b]=he+"Month",Q[h]=he+"FullYear",Q[M]=he+"Hours",Q[y]=he+"Minutes",Q[A]=he+"Seconds",Q[g]=he+"Milliseconds",Q)[ue],ce=ue===w?this.$D+(ne-this.$W):ne;if(ue===b||ue===h){var ve=this.clone().set(d,1);ve.$d[Ee](ce),ve.init(),this.$d=ve.set(d,Math.min(this.$D,ve.daysInMonth())).$d}else Ee&&this.$d[Ee](ce);return this.init(),this},K.set=function(re,ne){return this.clone().$set(re,ne)},K.get=function(re){return this[V.p(re)]()},K.add=function(re,ne){var Q,ue=this;re=Number(re);var he=V.p(ne),Ee=function(we){var me=L(ue);return V.w(me.date(me.date()+Math.round(we*re)),ue)};if(he===b)return this.set(b,this.$M+re);if(he===h)return this.set(h,this.$y+re);if(he===w)return Ee(1);if(he===m)return Ee(7);var ce=(Q={},Q[y]=o,Q[M]=x,Q[A]=N,Q)[he]||1,ve=this.$d.getTime()+re*ce;return V.w(ve,this)},K.subtract=function(re,ne){return this.add(-1*re,ne)},K.format=function(re){var ne=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||_;var ue=re||"YYYY-MM-DDTHH:mm:ssZ",he=V.z(this),Ee=this.$H,ce=this.$m,ve=this.$M,fe=Q.weekdays,we=Q.months,me=Q.meridiem,Pe=function(ke,De,Fe,Qe){return ke&&(ke[De]||ke(ne,ue))||Fe[De].slice(0,Qe)},pe=function(ke){return V.s(Ee%12||12,ke,"0")},Ie=me||function(Je,ke,De){var Fe=Je<12?"AM":"PM";return De?Fe.toLowerCase():Fe};return ue.replace(S,function(Je,ke){return ke||function(De){switch(De){case"YY":return String(ne.$y).slice(-2);case"YYYY":return V.s(ne.$y,4,"0");case"M":return ve+1;case"MM":return V.s(ve+1,2,"0");case"MMM":return Pe(Q.monthsShort,ve,we,3);case"MMMM":return Pe(we,ve);case"D":return ne.$D;case"DD":return V.s(ne.$D,2,"0");case"d":return String(ne.$W);case"dd":return Pe(Q.weekdaysMin,ne.$W,fe,2);case"ddd":return Pe(Q.weekdaysShort,ne.$W,fe,3);case"dddd":return fe[ne.$W];case"H":return String(Ee);case"HH":return V.s(Ee,2,"0");case"h":return pe(1);case"hh":return pe(2);case"a":return Ie(Ee,ce,!0);case"A":return Ie(Ee,ce,!1);case"m":return String(ce);case"mm":return V.s(ce,2,"0");case"s":return String(ne.$s);case"ss":return V.s(ne.$s,2,"0");case"SSS":return V.s(ne.$ms,3,"0");case"Z":return he}return null}(Je)||he.replace(":","")})},K.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},K.diff=function(re,ne,Q){var ue,he=this,Ee=V.p(ne),ce=L(re),ve=(ce.utcOffset()-this.utcOffset())*o,fe=this-ce,we=function(){return V.m(he,ce)};switch(Ee){case h:ue=we()/12;break;case b:ue=we();break;case v:ue=we()/3;break;case m:ue=(fe-ve)/6048e5;break;case w:ue=(fe-ve)/864e5;break;case M:ue=fe/x;break;case y:ue=fe/o;break;case A:ue=fe/N;break;default:ue=fe}return Q?ue:V.a(ue)},K.daysInMonth=function(){return this.endOf(b).$D},K.$locale=function(){return Z[this.$L]},K.locale=function(re,ne){if(!re)return this.$L;var Q=this.clone(),ue=U(re,ne,!0);return ue&&(Q.$L=ue),Q},K.clone=function(){return V.w(this.$d,this)},K.toDate=function(){return new Date(this.valueOf())},K.toJSON=function(){return this.isValid()?this.toISOString():null},K.toISOString=function(){return this.$d.toISOString()},K.toString=function(){return this.$d.toUTCString()},z}(),G=$.prototype;return L.prototype=G,[["$ms",g],["$s",A],["$m",y],["$H",M],["$W",w],["$M",b],["$y",h],["$D",d]].forEach(function(z){G[z[1]]=function(K){return this.$g(K,z[0],z[1])}}),L.extend=function(z,K){return z.$i||(z(K,$,L),z.$i=!0),L},L.locale=U,L.isDayjs=W,L.unix=function(z){return L(1e3*z)},L.en=Z[D],L.Ls=Z,L.p={},L})},5501:function(oe,N,o){(function(x,g){oe.exports=g(o(9948))})(this,function(x){"use strict";function g(M){return M&&typeof M=="object"&&"default"in M?M:{default:M}}var A=g(x),y={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(w,m){return m==="W"?w+"\u5468":w+"\u65E5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(w,m){var b=100*w+m;return b<600?"\u51CC\u6668":b<900?"\u65E9\u4E0A":b<1100?"\u4E0A\u5348":b<1300?"\u4E2D\u5348":b<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};return A.default.locale(y,null,!0),y})},28035:function(oe){"use strict";var N="%[a-f0-9]{2}",o=new RegExp("("+N+")|([^%]+?)","gi"),x=new RegExp("("+N+")+","gi");function g(M,w){try{return[decodeURIComponent(M.join(""))]}catch(v){}if(M.length===1)return M;w=w||1;var m=M.slice(0,w),b=M.slice(w);return Array.prototype.concat.call([],g(m),g(b))}function A(M){try{return decodeURIComponent(M)}catch(b){for(var w=M.match(o)||[],m=1;m<w.length;m++)M=g(w,m).join(""),w=M.match(o)||[];return M}}function y(M){for(var w={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},m=x.exec(M);m;){try{w[m[0]]=decodeURIComponent(m[0])}catch(_){var b=A(m[0]);b!==m[0]&&(w[m[0]]=b)}m=x.exec(M)}w["%C2"]="\uFFFD";for(var v=Object.keys(w),h=0;h<v.length;h++){var d=v[h];M=M.replace(new RegExp(d,"g"),w[d])}return M}oe.exports=function(M){if(typeof M!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof M+"`");try{return M=M.replace(/\+/g," "),decodeURIComponent(M)}catch(w){return y(M)}}},62312:function(oe){var N=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},o=-1,x=1,g=0;N.Diff=function(A,y){return[A,y]},N.prototype.diff_main=function(A,y,M,w){typeof w=="undefined"&&(this.Diff_Timeout<=0?w=Number.MAX_VALUE:w=new Date().getTime()+this.Diff_Timeout*1e3);var m=w;if(A==null||y==null)throw new Error("Null input. (diff_main)");if(A==y)return A?[new N.Diff(g,A)]:[];typeof M=="undefined"&&(M=!0);var b=M,v=this.diff_commonPrefix(A,y),h=A.substring(0,v);A=A.substring(v),y=y.substring(v),v=this.diff_commonSuffix(A,y);var d=A.substring(A.length-v);A=A.substring(0,A.length-v),y=y.substring(0,y.length-v);var _=this.diff_compute_(A,y,b,m);return h&&_.unshift(new N.Diff(g,h)),d&&_.push(new N.Diff(g,d)),this.diff_cleanupMerge(_),_},N.prototype.diff_compute_=function(A,y,M,w){var m;if(!A)return[new N.Diff(x,y)];if(!y)return[new N.Diff(o,A)];var b=A.length>y.length?A:y,v=A.length>y.length?y:A,h=b.indexOf(v);if(h!=-1)return m=[new N.Diff(x,b.substring(0,h)),new N.Diff(g,v),new N.Diff(x,b.substring(h+v.length))],A.length>y.length&&(m[0][0]=m[2][0]=o),m;if(v.length==1)return[new N.Diff(o,A),new N.Diff(x,y)];var d=this.diff_halfMatch_(A,y);if(d){var _=d[0],p=d[1],S=d[2],k=d[3],O=d[4],F=this.diff_main(_,S,M,w),D=this.diff_main(p,k,M,w);return F.concat([new N.Diff(g,O)],D)}return M&&A.length>100&&y.length>100?this.diff_lineMode_(A,y,w):this.diff_bisect_(A,y,w)},N.prototype.diff_lineMode_=function(A,y,M){var w=this.diff_linesToChars_(A,y);A=w.chars1,y=w.chars2;var m=w.lineArray,b=this.diff_main(A,y,!1,M);this.diff_charsToLines_(b,m),this.diff_cleanupSemantic(b),b.push(new N.Diff(g,""));for(var v=0,h=0,d=0,_="",p="";v<b.length;){switch(b[v][0]){case x:d++,p+=b[v][1];break;case o:h++,_+=b[v][1];break;case g:if(h>=1&&d>=1){b.splice(v-h-d,h+d),v=v-h-d;for(var S=this.diff_main(_,p,!1,M),k=S.length-1;k>=0;k--)b.splice(v,0,S[k]);v=v+S.length}d=0,h=0,_="",p="";break}v++}return b.pop(),b},N.prototype.diff_bisect_=function(A,y,M){for(var w=A.length,m=y.length,b=Math.ceil((w+m)/2),v=b,h=2*b,d=new Array(h),_=new Array(h),p=0;p<h;p++)d[p]=-1,_[p]=-1;d[v+1]=0,_[v+1]=0;for(var S=w-m,k=S%2!=0,O=0,F=0,D=0,Z=0,W=0;W<b&&!(new Date().getTime()>M);W++){for(var U=-W+O;U<=W-F;U+=2){var L=v+U,V;U==-W||U!=W&&d[L-1]<d[L+1]?V=d[L+1]:V=d[L-1]+1;for(var $=V-U;V<w&&$<m&&A.charAt(V)==y.charAt($);)V++,$++;if(d[L]=V,V>w)F+=2;else if($>m)O+=2;else if(k){var G=v+S-U;if(G>=0&&G<h&&_[G]!=-1){var z=w-_[G];if(V>=z)return this.diff_bisectSplit_(A,y,V,$,M)}}}for(var K=-W+D;K<=W-Z;K+=2){var G=v+K,z;K==-W||K!=W&&_[G-1]<_[G+1]?z=_[G+1]:z=_[G-1]+1;for(var re=z-K;z<w&&re<m&&A.charAt(w-z-1)==y.charAt(m-re-1);)z++,re++;if(_[G]=z,z>w)Z+=2;else if(re>m)D+=2;else if(!k){var L=v+S-K;if(L>=0&&L<h&&d[L]!=-1){var V=d[L],$=v+V-L;if(z=w-z,V>=z)return this.diff_bisectSplit_(A,y,V,$,M)}}}}return[new N.Diff(o,A),new N.Diff(x,y)]},N.prototype.diff_bisectSplit_=function(A,y,M,w,m){var b=A.substring(0,M),v=y.substring(0,w),h=A.substring(M),d=y.substring(w),_=this.diff_main(b,v,!1,m),p=this.diff_main(h,d,!1,m);return _.concat(p)},N.prototype.diff_linesToChars_=function(A,y){var M=[],w={};M[0]="";function m(d){for(var _="",p=0,S=-1,k=M.length;S<d.length-1;){S=d.indexOf(`
|
||
`,p),S==-1&&(S=d.length-1);var O=d.substring(p,S+1);(w.hasOwnProperty?w.hasOwnProperty(O):w[O]!==void 0)?_+=String.fromCharCode(w[O]):(k==b&&(O=d.substring(p),S=d.length),_+=String.fromCharCode(k),w[O]=k,M[k++]=O),p=S+1}return _}var b=4e4,v=m(A);b=65535;var h=m(y);return{chars1:v,chars2:h,lineArray:M}},N.prototype.diff_charsToLines_=function(A,y){for(var M=0;M<A.length;M++){for(var w=A[M][1],m=[],b=0;b<w.length;b++)m[b]=y[w.charCodeAt(b)];A[M][1]=m.join("")}},N.prototype.diff_commonPrefix=function(A,y){if(!A||!y||A.charAt(0)!=y.charAt(0))return 0;for(var M=0,w=Math.min(A.length,y.length),m=w,b=0;M<m;)A.substring(b,m)==y.substring(b,m)?(M=m,b=M):w=m,m=Math.floor((w-M)/2+M);return m},N.prototype.diff_commonSuffix=function(A,y){if(!A||!y||A.charAt(A.length-1)!=y.charAt(y.length-1))return 0;for(var M=0,w=Math.min(A.length,y.length),m=w,b=0;M<m;)A.substring(A.length-m,A.length-b)==y.substring(y.length-m,y.length-b)?(M=m,b=M):w=m,m=Math.floor((w-M)/2+M);return m},N.prototype.diff_commonOverlap_=function(A,y){var M=A.length,w=y.length;if(M==0||w==0)return 0;M>w?A=A.substring(M-w):M<w&&(y=y.substring(0,M));var m=Math.min(M,w);if(A==y)return m;for(var b=0,v=1;;){var h=A.substring(m-v),d=y.indexOf(h);if(d==-1)return b;v+=d,(d==0||A.substring(m-v)==y.substring(0,v))&&(b=v,v++)}},N.prototype.diff_halfMatch_=function(A,y){if(this.Diff_Timeout<=0)return null;var M=A.length>y.length?A:y,w=A.length>y.length?y:A;if(M.length<4||w.length*2<M.length)return null;var m=this;function b(F,D,Z){for(var W=F.substring(Z,Z+Math.floor(F.length/4)),U=-1,L="",V,$,G,z;(U=D.indexOf(W,U+1))!=-1;){var K=m.diff_commonPrefix(F.substring(Z),D.substring(U)),re=m.diff_commonSuffix(F.substring(0,Z),D.substring(0,U));L.length<re+K&&(L=D.substring(U-re,U)+D.substring(U,U+K),V=F.substring(0,Z-re),$=F.substring(Z+K),G=D.substring(0,U-re),z=D.substring(U+K))}return L.length*2>=F.length?[V,$,G,z,L]:null}var v=b(M,w,Math.ceil(M.length/4)),h=b(M,w,Math.ceil(M.length/2)),d;if(!v&&!h)return null;h?v?d=v[4].length>h[4].length?v:h:d=h:d=v;var _,p,S,k;A.length>y.length?(_=d[0],p=d[1],S=d[2],k=d[3]):(S=d[0],k=d[1],_=d[2],p=d[3]);var O=d[4];return[_,p,S,k,O]},N.prototype.diff_cleanupSemantic=function(A){for(var y=!1,M=[],w=0,m=null,b=0,v=0,h=0,d=0,_=0;b<A.length;)A[b][0]==g?(M[w++]=b,v=d,h=_,d=0,_=0,m=A[b][1]):(A[b][0]==x?d+=A[b][1].length:_+=A[b][1].length,m&&m.length<=Math.max(v,h)&&m.length<=Math.max(d,_)&&(A.splice(M[w-1],0,new N.Diff(o,m)),A[M[w-1]+1][0]=x,w--,w--,b=w>0?M[w-1]:-1,v=0,h=0,d=0,_=0,m=null,y=!0)),b++;for(y&&this.diff_cleanupMerge(A),this.diff_cleanupSemanticLossless(A),b=1;b<A.length;){if(A[b-1][0]==o&&A[b][0]==x){var p=A[b-1][1],S=A[b][1],k=this.diff_commonOverlap_(p,S),O=this.diff_commonOverlap_(S,p);k>=O?(k>=p.length/2||k>=S.length/2)&&(A.splice(b,0,new N.Diff(g,S.substring(0,k))),A[b-1][1]=p.substring(0,p.length-k),A[b+1][1]=S.substring(k),b++):(O>=p.length/2||O>=S.length/2)&&(A.splice(b,0,new N.Diff(g,p.substring(0,O))),A[b-1][0]=x,A[b-1][1]=S.substring(0,S.length-O),A[b+1][0]=o,A[b+1][1]=p.substring(O),b++),b++}b++}},N.prototype.diff_cleanupSemanticLossless=function(A){function y(O,F){if(!O||!F)return 6;var D=O.charAt(O.length-1),Z=F.charAt(0),W=D.match(N.nonAlphaNumericRegex_),U=Z.match(N.nonAlphaNumericRegex_),L=W&&D.match(N.whitespaceRegex_),V=U&&Z.match(N.whitespaceRegex_),$=L&&D.match(N.linebreakRegex_),G=V&&Z.match(N.linebreakRegex_),z=$&&O.match(N.blanklineEndRegex_),K=G&&F.match(N.blanklineStartRegex_);return z||K?5:$||G?4:W&&!L&&V?3:L||V?2:W||U?1:0}for(var M=1;M<A.length-1;){if(A[M-1][0]==g&&A[M+1][0]==g){var w=A[M-1][1],m=A[M][1],b=A[M+1][1],v=this.diff_commonSuffix(w,m);if(v){var h=m.substring(m.length-v);w=w.substring(0,w.length-v),m=h+m.substring(0,m.length-v),b=h+b}for(var d=w,_=m,p=b,S=y(w,m)+y(m,b);m.charAt(0)===b.charAt(0);){w+=m.charAt(0),m=m.substring(1)+b.charAt(0),b=b.substring(1);var k=y(w,m)+y(m,b);k>=S&&(S=k,d=w,_=m,p=b)}A[M-1][1]!=d&&(d?A[M-1][1]=d:(A.splice(M-1,1),M--),A[M][1]=_,p?A[M+1][1]=p:(A.splice(M+1,1),M--))}M++}},N.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,N.whitespaceRegex_=/\s/,N.linebreakRegex_=/[\r\n]/,N.blanklineEndRegex_=/\n\r?\n$/,N.blanklineStartRegex_=/^\r?\n\r?\n/,N.prototype.diff_cleanupEfficiency=function(A){for(var y=!1,M=[],w=0,m=null,b=0,v=!1,h=!1,d=!1,_=!1;b<A.length;)A[b][0]==g?(A[b][1].length<this.Diff_EditCost&&(d||_)?(M[w++]=b,v=d,h=_,m=A[b][1]):(w=0,m=null),d=_=!1):(A[b][0]==o?_=!0:d=!0,m&&(v&&h&&d&&_||m.length<this.Diff_EditCost/2&&v+h+d+_==3)&&(A.splice(M[w-1],0,new N.Diff(o,m)),A[M[w-1]+1][0]=x,w--,m=null,v&&h?(d=_=!0,w=0):(w--,b=w>0?M[w-1]:-1,d=_=!1),y=!0)),b++;y&&this.diff_cleanupMerge(A)},N.prototype.diff_cleanupMerge=function(A){A.push(new N.Diff(g,""));for(var y=0,M=0,w=0,m="",b="",v;y<A.length;)switch(A[y][0]){case x:w++,b+=A[y][1],y++;break;case o:M++,m+=A[y][1],y++;break;case g:M+w>1?(M!==0&&w!==0&&(v=this.diff_commonPrefix(b,m),v!==0&&(y-M-w>0&&A[y-M-w-1][0]==g?A[y-M-w-1][1]+=b.substring(0,v):(A.splice(0,0,new N.Diff(g,b.substring(0,v))),y++),b=b.substring(v),m=m.substring(v)),v=this.diff_commonSuffix(b,m),v!==0&&(A[y][1]=b.substring(b.length-v)+A[y][1],b=b.substring(0,b.length-v),m=m.substring(0,m.length-v))),y-=M+w,A.splice(y,M+w),m.length&&(A.splice(y,0,new N.Diff(o,m)),y++),b.length&&(A.splice(y,0,new N.Diff(x,b)),y++),y++):y!==0&&A[y-1][0]==g?(A[y-1][1]+=A[y][1],A.splice(y,1)):y++,w=0,M=0,m="",b="";break}A[A.length-1][1]===""&&A.pop();var h=!1;for(y=1;y<A.length-1;)A[y-1][0]==g&&A[y+1][0]==g&&(A[y][1].substring(A[y][1].length-A[y-1][1].length)==A[y-1][1]?(A[y][1]=A[y-1][1]+A[y][1].substring(0,A[y][1].length-A[y-1][1].length),A[y+1][1]=A[y-1][1]+A[y+1][1],A.splice(y-1,1),h=!0):A[y][1].substring(0,A[y+1][1].length)==A[y+1][1]&&(A[y-1][1]+=A[y+1][1],A[y][1]=A[y][1].substring(A[y+1][1].length)+A[y+1][1],A.splice(y+1,1),h=!0)),y++;h&&this.diff_cleanupMerge(A)},N.prototype.diff_xIndex=function(A,y){var M=0,w=0,m=0,b=0,v;for(v=0;v<A.length&&(A[v][0]!==x&&(M+=A[v][1].length),A[v][0]!==o&&(w+=A[v][1].length),!(M>y));v++)m=M,b=w;return A.length!=v&&A[v][0]===o?b:b+(y-m)},N.prototype.diff_prettyHtml=function(A){for(var y=[],M=/&/g,w=/</g,m=/>/g,b=/\n/g,v=0;v<A.length;v++){var h=A[v][0],d=A[v][1],_=d.replace(M,"&").replace(w,"<").replace(m,">").replace(b,"¶<br>");switch(h){case x:y[v]='<ins style="background:#e6ffe6;">'+_+"</ins>";break;case o:y[v]='<del style="background:#ffe6e6;">'+_+"</del>";break;case g:y[v]="<span>"+_+"</span>";break}}return y.join("")},N.prototype.diff_text1=function(A){for(var y=[],M=0;M<A.length;M++)A[M][0]!==x&&(y[M]=A[M][1]);return y.join("")},N.prototype.diff_text2=function(A){for(var y=[],M=0;M<A.length;M++)A[M][0]!==o&&(y[M]=A[M][1]);return y.join("")},N.prototype.diff_levenshtein=function(A){for(var y=0,M=0,w=0,m=0;m<A.length;m++){var b=A[m][0],v=A[m][1];switch(b){case x:M+=v.length;break;case o:w+=v.length;break;case g:y+=Math.max(M,w),M=0,w=0;break}}return y+=Math.max(M,w),y},N.prototype.diff_toDelta=function(A){for(var y=[],M=0;M<A.length;M++)switch(A[M][0]){case x:y[M]="+"+encodeURI(A[M][1]);break;case o:y[M]="-"+A[M][1].length;break;case g:y[M]="="+A[M][1].length;break}return y.join(" ").replace(/%20/g," ")},N.prototype.diff_fromDelta=function(A,y){for(var M=[],w=0,m=0,b=y.split(/\t/g),v=0;v<b.length;v++){var h=b[v].substring(1);switch(b[v].charAt(0)){case"+":try{M[w++]=new N.Diff(x,decodeURI(h))}catch(p){throw new Error("Illegal escape in diff_fromDelta: "+h)}break;case"-":case"=":var d=parseInt(h,10);if(isNaN(d)||d<0)throw new Error("Invalid number in diff_fromDelta: "+h);var _=A.substring(m,m+=d);b[v].charAt(0)=="="?M[w++]=new N.Diff(g,_):M[w++]=new N.Diff(o,_);break;default:if(b[v])throw new Error("Invalid diff operation in diff_fromDelta: "+b[v])}}if(m!=A.length)throw new Error("Delta length ("+m+") does not equal source text length ("+A.length+").");return M},N.prototype.match_main=function(A,y,M){if(A==null||y==null||M==null)throw new Error("Null input. (match_main)");return M=Math.max(0,Math.min(M,A.length)),A==y?0:A.length?A.substring(M,M+y.length)==y?M:this.match_bitap_(A,y,M):-1},N.prototype.match_bitap_=function(A,y,M){if(y.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var w=this.match_alphabet_(y),m=this;function b(V,$){var G=V/y.length,z=Math.abs(M-$);return m.Match_Distance?G+z/m.Match_Distance:z?1:G}var v=this.Match_Threshold,h=A.indexOf(y,M);h!=-1&&(v=Math.min(b(0,h),v),h=A.lastIndexOf(y,M+y.length),h!=-1&&(v=Math.min(b(0,h),v)));var d=1<<y.length-1;h=-1;for(var _,p,S=y.length+A.length,k,O=0;O<y.length;O++){for(_=0,p=S;_<p;)b(O,M+p)<=v?_=p:S=p,p=Math.floor((S-_)/2+_);S=p;var F=Math.max(1,M-p+1),D=Math.min(M+p,A.length)+y.length,Z=Array(D+2);Z[D+1]=(1<<O)-1;for(var W=D;W>=F;W--){var U=w[A.charAt(W-1)];if(O===0?Z[W]=(Z[W+1]<<1|1)&U:Z[W]=(Z[W+1]<<1|1)&U|((k[W+1]|k[W])<<1|1)|k[W+1],Z[W]&d){var L=b(O,W-1);if(L<=v)if(v=L,h=W-1,h>M)F=Math.max(1,2*M-h);else break}}if(b(O+1,M)>v)break;k=Z}return h},N.prototype.match_alphabet_=function(A){for(var y={},M=0;M<A.length;M++)y[A.charAt(M)]=0;for(var M=0;M<A.length;M++)y[A.charAt(M)]|=1<<A.length-M-1;return y},N.prototype.patch_addContext_=function(A,y){if(y.length!=0){if(A.start2===null)throw Error("patch not initialized");for(var M=y.substring(A.start2,A.start2+A.length1),w=0;y.indexOf(M)!=y.lastIndexOf(M)&&M.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)w+=this.Patch_Margin,M=y.substring(A.start2-w,A.start2+A.length1+w);w+=this.Patch_Margin;var m=y.substring(A.start2-w,A.start2);m&&A.diffs.unshift(new N.Diff(g,m));var b=y.substring(A.start2+A.length1,A.start2+A.length1+w);b&&A.diffs.push(new N.Diff(g,b)),A.start1-=m.length,A.start2-=m.length,A.length1+=m.length+b.length,A.length2+=m.length+b.length}},N.prototype.patch_make=function(A,y,M){var w,m;if(typeof A=="string"&&typeof y=="string"&&typeof M=="undefined")w=A,m=this.diff_main(w,y,!0),m.length>2&&(this.diff_cleanupSemantic(m),this.diff_cleanupEfficiency(m));else if(A&&typeof A=="object"&&typeof y=="undefined"&&typeof M=="undefined")m=A,w=this.diff_text1(m);else if(typeof A=="string"&&y&&typeof y=="object"&&typeof M=="undefined")w=A,m=y;else if(typeof A=="string"&&typeof y=="string"&&M&&typeof M=="object")w=A,m=M;else throw new Error("Unknown call format to patch_make.");if(m.length===0)return[];for(var b=[],v=new N.patch_obj,h=0,d=0,_=0,p=w,S=w,k=0;k<m.length;k++){var O=m[k][0],F=m[k][1];switch(!h&&O!==g&&(v.start1=d,v.start2=_),O){case x:v.diffs[h++]=m[k],v.length2+=F.length,S=S.substring(0,_)+F+S.substring(_);break;case o:v.length1+=F.length,v.diffs[h++]=m[k],S=S.substring(0,_)+S.substring(_+F.length);break;case g:F.length<=2*this.Patch_Margin&&h&&m.length!=k+1?(v.diffs[h++]=m[k],v.length1+=F.length,v.length2+=F.length):F.length>=2*this.Patch_Margin&&h&&(this.patch_addContext_(v,p),b.push(v),v=new N.patch_obj,h=0,p=S,d=_);break}O!==x&&(d+=F.length),O!==o&&(_+=F.length)}return h&&(this.patch_addContext_(v,p),b.push(v)),b},N.prototype.patch_deepCopy=function(A){for(var y=[],M=0;M<A.length;M++){var w=A[M],m=new N.patch_obj;m.diffs=[];for(var b=0;b<w.diffs.length;b++)m.diffs[b]=new N.Diff(w.diffs[b][0],w.diffs[b][1]);m.start1=w.start1,m.start2=w.start2,m.length1=w.length1,m.length2=w.length2,y[M]=m}return y},N.prototype.patch_apply=function(A,y){if(A.length==0)return[y,[]];A=this.patch_deepCopy(A);var M=this.patch_addPadding(A);y=M+y+M,this.patch_splitMax(A);for(var w=0,m=[],b=0;b<A.length;b++){var v=A[b].start2+w,h=this.diff_text1(A[b].diffs),d,_=-1;if(h.length>this.Match_MaxBits?(d=this.match_main(y,h.substring(0,this.Match_MaxBits),v),d!=-1&&(_=this.match_main(y,h.substring(h.length-this.Match_MaxBits),v+h.length-this.Match_MaxBits),(_==-1||d>=_)&&(d=-1))):d=this.match_main(y,h,v),d==-1)m[b]=!1,w-=A[b].length2-A[b].length1;else{m[b]=!0,w=d-v;var p;if(_==-1?p=y.substring(d,d+h.length):p=y.substring(d,_+this.Match_MaxBits),h==p)y=y.substring(0,d)+this.diff_text2(A[b].diffs)+y.substring(d+h.length);else{var S=this.diff_main(h,p,!1);if(h.length>this.Match_MaxBits&&this.diff_levenshtein(S)/h.length>this.Patch_DeleteThreshold)m[b]=!1;else{this.diff_cleanupSemanticLossless(S);for(var k=0,O,F=0;F<A[b].diffs.length;F++){var D=A[b].diffs[F];D[0]!==g&&(O=this.diff_xIndex(S,k)),D[0]===x?y=y.substring(0,d+O)+D[1]+y.substring(d+O):D[0]===o&&(y=y.substring(0,d+O)+y.substring(d+this.diff_xIndex(S,k+D[1].length))),D[0]!==o&&(k+=D[1].length)}}}}}return y=y.substring(M.length,y.length-M.length),[y,m]},N.prototype.patch_addPadding=function(A){for(var y=this.Patch_Margin,M="",w=1;w<=y;w++)M+=String.fromCharCode(w);for(var w=0;w<A.length;w++)A[w].start1+=y,A[w].start2+=y;var m=A[0],b=m.diffs;if(b.length==0||b[0][0]!=g)b.unshift(new N.Diff(g,M)),m.start1-=y,m.start2-=y,m.length1+=y,m.length2+=y;else if(y>b[0][1].length){var v=y-b[0][1].length;b[0][1]=M.substring(b[0][1].length)+b[0][1],m.start1-=v,m.start2-=v,m.length1+=v,m.length2+=v}if(m=A[A.length-1],b=m.diffs,b.length==0||b[b.length-1][0]!=g)b.push(new N.Diff(g,M)),m.length1+=y,m.length2+=y;else if(y>b[b.length-1][1].length){var v=y-b[b.length-1][1].length;b[b.length-1][1]+=M.substring(0,v),m.length1+=v,m.length2+=v}return M},N.prototype.patch_splitMax=function(A){for(var y=this.Match_MaxBits,M=0;M<A.length;M++)if(!(A[M].length1<=y)){var w=A[M];A.splice(M--,1);for(var m=w.start1,b=w.start2,v="";w.diffs.length!==0;){var h=new N.patch_obj,d=!0;for(h.start1=m-v.length,h.start2=b-v.length,v!==""&&(h.length1=h.length2=v.length,h.diffs.push(new N.Diff(g,v)));w.diffs.length!==0&&h.length1<y-this.Patch_Margin;){var _=w.diffs[0][0],p=w.diffs[0][1];_===x?(h.length2+=p.length,b+=p.length,h.diffs.push(w.diffs.shift()),d=!1):_===o&&h.diffs.length==1&&h.diffs[0][0]==g&&p.length>2*y?(h.length1+=p.length,m+=p.length,d=!1,h.diffs.push(new N.Diff(_,p)),w.diffs.shift()):(p=p.substring(0,y-h.length1-this.Patch_Margin),h.length1+=p.length,m+=p.length,_===g?(h.length2+=p.length,b+=p.length):d=!1,h.diffs.push(new N.Diff(_,p)),p==w.diffs[0][1]?w.diffs.shift():w.diffs[0][1]=w.diffs[0][1].substring(p.length))}v=this.diff_text2(h.diffs),v=v.substring(v.length-this.Patch_Margin);var S=this.diff_text1(w.diffs).substring(0,this.Patch_Margin);S!==""&&(h.length1+=S.length,h.length2+=S.length,h.diffs.length!==0&&h.diffs[h.diffs.length-1][0]===g?h.diffs[h.diffs.length-1][1]+=S:h.diffs.push(new N.Diff(g,S))),d||A.splice(++M,0,h)}}},N.prototype.patch_toText=function(A){for(var y=[],M=0;M<A.length;M++)y[M]=A[M];return y.join("")},N.prototype.patch_fromText=function(A){var y=[];if(!A)return y;for(var M=A.split(`
|
||
`),w=0,m=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;w<M.length;){var b=M[w].match(m);if(!b)throw new Error("Invalid patch string: "+M[w]);var v=new N.patch_obj;for(y.push(v),v.start1=parseInt(b[1],10),b[2]===""?(v.start1--,v.length1=1):b[2]=="0"?v.length1=0:(v.start1--,v.length1=parseInt(b[2],10)),v.start2=parseInt(b[3],10),b[4]===""?(v.start2--,v.length2=1):b[4]=="0"?v.length2=0:(v.start2--,v.length2=parseInt(b[4],10)),w++;w<M.length;){var h=M[w].charAt(0);try{var d=decodeURI(M[w].substring(1))}catch(_){throw new Error("Illegal escape in patch_fromText: "+d)}if(h=="-")v.diffs.push(new N.Diff(o,d));else if(h=="+")v.diffs.push(new N.Diff(x,d));else if(h==" ")v.diffs.push(new N.Diff(g,d));else{if(h=="@")break;if(h!=="")throw new Error('Invalid patch mode "'+h+'" in: '+d)}w++}}return y},N.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},N.patch_obj.prototype.toString=function(){var A,y;this.length1===0?A=this.start1+",0":this.length1==1?A=this.start1+1:A=this.start1+1+","+this.length1,this.length2===0?y=this.start2+",0":this.length2==1?y=this.start2+1:y=this.start2+1+","+this.length2;for(var M=["@@ -"+A+" +"+y+` @@
|
||
`],w,m=0;m<this.diffs.length;m++){switch(this.diffs[m][0]){case x:w="+";break;case o:w="-";break;case g:w=" ";break}M[m+1]=w+encodeURI(this.diffs[m][1])+`
|
||
`}return M.join("").replace(/%20/g," ")},oe.exports=N,oe.exports.diff_match_patch=N,oe.exports.DIFF_DELETE=o,oe.exports.DIFF_INSERT=x,oe.exports.DIFF_EQUAL=g},4742:function(oe){"use strict";var N=function(){};oe.exports=N},49501:function(oe){"use strict";var N=typeof Reflect=="object"?Reflect:null,o=N&&typeof N.apply=="function"?N.apply:function(W,U,L){return Function.prototype.apply.call(W,U,L)},x;N&&typeof N.ownKeys=="function"?x=N.ownKeys:Object.getOwnPropertySymbols?x=function(W){return Object.getOwnPropertyNames(W).concat(Object.getOwnPropertySymbols(W))}:x=function(W){return Object.getOwnPropertyNames(W)};function g(Z){console&&console.warn&&console.warn(Z)}var A=Number.isNaN||function(W){return W!==W};function y(){y.init.call(this)}oe.exports=y,oe.exports.once=O,y.EventEmitter=y,y.prototype._events=void 0,y.prototype._eventsCount=0,y.prototype._maxListeners=void 0;var M=10;function w(Z){if(typeof Z!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Z)}Object.defineProperty(y,"defaultMaxListeners",{enumerable:!0,get:function(){return M},set:function(W){if(typeof W!="number"||W<0||A(W))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+W+".");M=W}}),y.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},y.prototype.setMaxListeners=function(W){if(typeof W!="number"||W<0||A(W))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+W+".");return this._maxListeners=W,this};function m(Z){return Z._maxListeners===void 0?y.defaultMaxListeners:Z._maxListeners}y.prototype.getMaxListeners=function(){return m(this)},y.prototype.emit=function(W){for(var U=[],L=1;L<arguments.length;L++)U.push(arguments[L]);var V=W==="error",$=this._events;if($!==void 0)V=V&&$.error===void 0;else if(!V)return!1;if(V){var G;if(U.length>0&&(G=U[0]),G instanceof Error)throw G;var z=new Error("Unhandled error."+(G?" ("+G.message+")":""));throw z.context=G,z}var K=$[W];if(K===void 0)return!1;if(typeof K=="function")o(K,this,U);else for(var re=K.length,ne=p(K,re),L=0;L<re;++L)o(ne[L],this,U);return!0};function b(Z,W,U,L){var V,$,G;if(w(U),$=Z._events,$===void 0?($=Z._events=Object.create(null),Z._eventsCount=0):($.newListener!==void 0&&(Z.emit("newListener",W,U.listener?U.listener:U),$=Z._events),G=$[W]),G===void 0)G=$[W]=U,++Z._eventsCount;else if(typeof G=="function"?G=$[W]=L?[U,G]:[G,U]:L?G.unshift(U):G.push(U),V=m(Z),V>0&&G.length>V&&!G.warned){G.warned=!0;var z=new Error("Possible EventEmitter memory leak detected. "+G.length+" "+String(W)+" listeners added. Use emitter.setMaxListeners() to increase limit");z.name="MaxListenersExceededWarning",z.emitter=Z,z.type=W,z.count=G.length,g(z)}return Z}y.prototype.addListener=function(W,U){return b(this,W,U,!1)},y.prototype.on=y.prototype.addListener,y.prototype.prependListener=function(W,U){return b(this,W,U,!0)};function v(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(Z,W,U){var L={fired:!1,wrapFn:void 0,target:Z,type:W,listener:U},V=v.bind(L);return V.listener=U,L.wrapFn=V,V}y.prototype.once=function(W,U){return w(U),this.on(W,h(this,W,U)),this},y.prototype.prependOnceListener=function(W,U){return w(U),this.prependListener(W,h(this,W,U)),this},y.prototype.removeListener=function(W,U){var L,V,$,G,z;if(w(U),V=this._events,V===void 0)return this;if(L=V[W],L===void 0)return this;if(L===U||L.listener===U)--this._eventsCount==0?this._events=Object.create(null):(delete V[W],V.removeListener&&this.emit("removeListener",W,L.listener||U));else if(typeof L!="function"){for($=-1,G=L.length-1;G>=0;G--)if(L[G]===U||L[G].listener===U){z=L[G].listener,$=G;break}if($<0)return this;$===0?L.shift():S(L,$),L.length===1&&(V[W]=L[0]),V.removeListener!==void 0&&this.emit("removeListener",W,z||U)}return this},y.prototype.off=y.prototype.removeListener,y.prototype.removeAllListeners=function(W){var U,L,V;if(L=this._events,L===void 0)return this;if(L.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):L[W]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete L[W]),this;if(arguments.length===0){var $=Object.keys(L),G;for(V=0;V<$.length;++V)G=$[V],G!=="removeListener"&&this.removeAllListeners(G);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(U=L[W],typeof U=="function")this.removeListener(W,U);else if(U!==void 0)for(V=U.length-1;V>=0;V--)this.removeListener(W,U[V]);return this};function d(Z,W,U){var L=Z._events;if(L===void 0)return[];var V=L[W];return V===void 0?[]:typeof V=="function"?U?[V.listener||V]:[V]:U?k(V):p(V,V.length)}y.prototype.listeners=function(W){return d(this,W,!0)},y.prototype.rawListeners=function(W){return d(this,W,!1)},y.listenerCount=function(Z,W){return typeof Z.listenerCount=="function"?Z.listenerCount(W):_.call(Z,W)},y.prototype.listenerCount=_;function _(Z){var W=this._events;if(W!==void 0){var U=W[Z];if(typeof U=="function")return 1;if(U!==void 0)return U.length}return 0}y.prototype.eventNames=function(){return this._eventsCount>0?x(this._events):[]};function p(Z,W){for(var U=new Array(W),L=0;L<W;++L)U[L]=Z[L];return U}function S(Z,W){for(;W+1<Z.length;W++)Z[W]=Z[W+1];Z.pop()}function k(Z){for(var W=new Array(Z.length),U=0;U<W.length;++U)W[U]=Z[U].listener||Z[U];return W}function O(Z,W){return new Promise(function(U,L){function V(G){Z.removeListener(W,$),L(G)}function $(){typeof Z.removeListener=="function"&&Z.removeListener("error",V),U([].slice.call(arguments))}D(Z,W,$,{once:!0}),W!=="error"&&F(Z,V,{once:!0})})}function F(Z,W,U){typeof Z.on=="function"&&D(Z,"error",W,U)}function D(Z,W,U,L){if(typeof Z.on=="function")L.once?Z.once(W,U):Z.on(W,U);else if(typeof Z.addEventListener=="function")Z.addEventListener(W,function V($){L.once&&Z.removeEventListener(W,V),U($)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Z)}},58892:function(oe,N,o){"use strict";var x=o(37306).default,g=typeof BigInt64Array!="undefined";oe.exports=function A(y,M){if(y===M)return!0;if(y&&M&&typeof y=="object"&&typeof M=="object"){if(y.constructor!==M.constructor)return!1;var w,m,b;if(Array.isArray(y)){if(w=y.length,w!=M.length)return!1;for(m=w;m--!=0;)if(!A(y[m],M[m]))return!1;return!0}if(y instanceof Map&&M instanceof Map){if(y.size!==M.size)return!1;var v=x(y.entries()),h;try{for(v.s();!(h=v.n()).done;)if(m=h.value,!M.has(m[0]))return!1}catch(O){v.e(O)}finally{v.f()}var d=x(y.entries()),_;try{for(d.s();!(_=d.n()).done;)if(m=_.value,!A(m[1],M.get(m[0])))return!1}catch(O){d.e(O)}finally{d.f()}return!0}if(y instanceof Set&&M instanceof Set){if(y.size!==M.size)return!1;var p=x(y.entries()),S;try{for(p.s();!(S=p.n()).done;)if(m=S.value,!M.has(m[0]))return!1}catch(O){p.e(O)}finally{p.f()}return!0}if(ArrayBuffer.isView(y)&&ArrayBuffer.isView(M)){if(w=y.length,w!=M.length)return!1;for(m=w;m--!=0;)if(y[m]!==M[m])return!1;return!0}if(y.constructor===RegExp)return y.source===M.source&&y.flags===M.flags;if(y.valueOf!==Object.prototype.valueOf)return y.valueOf()===M.valueOf();if(y.toString!==Object.prototype.toString)return y.toString()===M.toString();if(b=Object.keys(y),w=b.length,w!==Object.keys(M).length)return!1;for(m=w;m--!=0;)if(!Object.prototype.hasOwnProperty.call(M,b[m]))return!1;for(m=w;m--!=0;){var k=b[m];if(!A(y[k],M[k]))return!1}return!0}return y!==y&&M!==M}},94681:function(oe,N,o){"use strict";var x=o(37306).default,g=typeof BigInt64Array!="undefined";oe.exports=function A(y,M){if(y===M)return!0;if(y&&M&&typeof y=="object"&&typeof M=="object"){if(y.constructor!==M.constructor)return!1;var w,m,b;if(Array.isArray(y)){if(w=y.length,w!=M.length)return!1;for(m=w;m--!=0;)if(!A(y[m],M[m]))return!1;return!0}if(y instanceof Map&&M instanceof Map){if(y.size!==M.size)return!1;var v=x(y.entries()),h;try{for(v.s();!(h=v.n()).done;)if(m=h.value,!M.has(m[0]))return!1}catch(O){v.e(O)}finally{v.f()}var d=x(y.entries()),_;try{for(d.s();!(_=d.n()).done;)if(m=_.value,!A(m[1],M.get(m[0])))return!1}catch(O){d.e(O)}finally{d.f()}return!0}if(y instanceof Set&&M instanceof Set){if(y.size!==M.size)return!1;var p=x(y.entries()),S;try{for(p.s();!(S=p.n()).done;)if(m=S.value,!M.has(m[0]))return!1}catch(O){p.e(O)}finally{p.f()}return!0}if(ArrayBuffer.isView(y)&&ArrayBuffer.isView(M)){if(w=y.length,w!=M.length)return!1;for(m=w;m--!=0;)if(y[m]!==M[m])return!1;return!0}if(y.constructor===RegExp)return y.source===M.source&&y.flags===M.flags;if(y.valueOf!==Object.prototype.valueOf)return y.valueOf()===M.valueOf();if(y.toString!==Object.prototype.toString)return y.toString()===M.toString();if(b=Object.keys(y),w=b.length,w!==Object.keys(M).length)return!1;for(m=w;m--!=0;)if(!Object.prototype.hasOwnProperty.call(M,b[m]))return!1;for(m=w;m--!=0;){var k=b[m];if(!(k==="_owner"&&y.$$typeof)&&!A(y[k],M[k]))return!1}return!0}return y!==y&&M!==M}},7123:function(oe){"use strict";var N=/-(.)/g;function o(x){return x.replace(N,function(g,A){return A.toUpperCase()})}oe.exports=o},23520:function(oe,N,o){"use strict";var x=o(7123),g=/^-ms-/;function A(y){return x(y.replace(g,"ms-"))}oe.exports=A},66274:function(oe){"use strict";function N(x){return function(){return x}}var o=function(){};o.thatReturns=N,o.thatReturnsFalse=N(!1),o.thatReturnsTrue=N(!0),o.thatReturnsNull=N(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(x){return x},oe.exports=o},40980:function(oe){"use strict";var N=/([A-Z])/g;function o(x){return x.replace(N,"-$1").toLowerCase()}oe.exports=o},44980:function(oe,N,o){"use strict";var x=o(40980),g=/^ms-/;function A(y){return x(y).replace(g,"-ms-")}oe.exports=A},62449:function(oe){"use strict";function N(o){var x={};return function(g){return x.hasOwnProperty(g)||(x[g]=o.call(this,g)),x[g]}}oe.exports=N},59529:function(oe,N,o){"use strict";var x=o(66274),g=x;if(!1)var A;oe.exports=g},27982:function(oe){"use strict";oe.exports=function(N,o){for(var x={},g=Object.keys(N),A=Array.isArray(o),y=0;y<g.length;y++){var M=g[y],w=N[M];(A?o.indexOf(M)!==-1:o(M,w,N))&&(x[M]=w)}return x}},86724:function(oe){oe.exports=function(o,x){if(x=typeof x=="number"?x:Infinity,!x)return Array.isArray(o)?o.map(function(A){return A}):o;return g(o,1);function g(A,y){return A.reduce(function(M,w){return Array.isArray(w)&&y<x?M.concat(g(w,y+1)):M.concat(w)},[])}}},67130:function(oe){"use strict";var N="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,x=Object.prototype.toString,g="[object Function]";oe.exports=function(y){var M=this;if(typeof M!="function"||x.call(M)!==g)throw new TypeError(N+M);for(var w=o.call(arguments,1),m,b=function(){if(this instanceof m){var S=M.apply(this,w.concat(o.call(arguments)));return Object(S)===S?S:this}else return M.apply(y,w.concat(o.call(arguments)))},v=Math.max(0,M.length-w.length),h=[],d=0;d<v;d++)h.push("$"+d);if(m=Function("binder","return function ("+h.join(",")+"){ return binder.apply(this,arguments); }")(b),M.prototype){var _=function(){};_.prototype=M.prototype,m.prototype=new _,_.prototype=null}return m}},47137:function(oe,N,o){"use strict";var x=o(67130);oe.exports=Function.prototype.bind||x},4154:function(oe,N,o){"use strict";var x,g=SyntaxError,A=Function,y=TypeError,M=function(Q){try{return A('"use strict"; return ('+Q+").constructor;")()}catch(ue){}},w=Object.getOwnPropertyDescriptor;if(w)try{w({},"")}catch(ne){w=null}var m=function(){throw new y},b=w?function(){try{return arguments.callee,m}catch(ne){try{return w(arguments,"callee").get}catch(Q){return m}}}():m,v=o(6532)(),h=o(74880)(),d=Object.getPrototypeOf||(h?function(ne){return ne.__proto__}:null),_={},p=typeof Uint8Array=="undefined"||!d?x:d(Uint8Array),S={"%AggregateError%":typeof AggregateError=="undefined"?x:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?x:ArrayBuffer,"%ArrayIteratorPrototype%":v&&d?d([][Symbol.iterator]()):x,"%AsyncFromSyncIteratorPrototype%":x,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":typeof Atomics=="undefined"?x:Atomics,"%BigInt%":typeof BigInt=="undefined"?x:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?x:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?x:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?x:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?x:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?x:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?x:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":_,"%Int8Array%":typeof Int8Array=="undefined"?x:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?x:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?x:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":v&&d?d(d([][Symbol.iterator]())):x,"%JSON%":typeof JSON=="object"?JSON:x,"%Map%":typeof Map=="undefined"?x:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!v||!d?x:d(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?x:Promise,"%Proxy%":typeof Proxy=="undefined"?x:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?x:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?x:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!v||!d?x:d(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?x:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":v&&d?d(""[Symbol.iterator]()):x,"%Symbol%":v?Symbol:x,"%SyntaxError%":g,"%ThrowTypeError%":b,"%TypedArray%":p,"%TypeError%":y,"%Uint8Array%":typeof Uint8Array=="undefined"?x:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?x:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?x:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?x:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?x:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?x:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?x:WeakSet};if(d)try{null.error}catch(ne){var k=d(d(ne));S["%Error.prototype%"]=k}var O=function ne(Q){var ue;if(Q==="%AsyncFunction%")ue=M("async function () {}");else if(Q==="%GeneratorFunction%")ue=M("function* () {}");else if(Q==="%AsyncGeneratorFunction%")ue=M("async function* () {}");else if(Q==="%AsyncGenerator%"){var he=ne("%AsyncGeneratorFunction%");he&&(ue=he.prototype)}else if(Q==="%AsyncIteratorPrototype%"){var Ee=ne("%AsyncGenerator%");Ee&&d&&(ue=d(Ee.prototype))}return S[Q]=ue,ue},F={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=o(47137),Z=o(53836),W=D.call(Function.call,Array.prototype.concat),U=D.call(Function.apply,Array.prototype.splice),L=D.call(Function.call,String.prototype.replace),V=D.call(Function.call,String.prototype.slice),$=D.call(Function.call,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,K=function(Q){var ue=V(Q,0,1),he=V(Q,-1);if(ue==="%"&&he!=="%")throw new g("invalid intrinsic syntax, expected closing `%`");if(he==="%"&&ue!=="%")throw new g("invalid intrinsic syntax, expected opening `%`");var Ee=[];return L(Q,G,function(ce,ve,fe,we){Ee[Ee.length]=fe?L(we,z,"$1"):ve||ce}),Ee},re=function(Q,ue){var he=Q,Ee;if(Z(F,he)&&(Ee=F[he],he="%"+Ee[0]+"%"),Z(S,he)){var ce=S[he];if(ce===_&&(ce=O(he)),typeof ce=="undefined"&&!ue)throw new y("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:Ee,name:he,value:ce}}throw new g("intrinsic "+Q+" does not exist!")};oe.exports=function(Q,ue){if(typeof Q!="string"||Q.length===0)throw new y("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ue!="boolean")throw new y('"allowMissing" argument must be a boolean');if($(/^%?[^%]*%?$/,Q)===null)throw new g("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var he=K(Q),Ee=he.length>0?he[0]:"",ce=re("%"+Ee+"%",ue),ve=ce.name,fe=ce.value,we=!1,me=ce.alias;me&&(Ee=me[0],U(he,W([0,1],me)));for(var Pe=1,pe=!0;Pe<he.length;Pe+=1){var Ie=he[Pe],Je=V(Ie,0,1),ke=V(Ie,-1);if((Je==='"'||Je==="'"||Je==="`"||ke==='"'||ke==="'"||ke==="`")&&Je!==ke)throw new g("property names with quotes must have matching quotes");if((Ie==="constructor"||!pe)&&(we=!0),Ee+="."+Ie,ve="%"+Ee+"%",Z(S,ve))fe=S[ve];else if(fe!=null){if(!(Ie in fe)){if(!ue)throw new y("base intrinsic for "+Q+" exists, but the property is not available.");return}if(w&&Pe+1>=he.length){var De=w(fe,Ie);pe=!!De,pe&&"get"in De&&!("originalValue"in De.get)?fe=De.get:fe=fe[Ie]}else pe=Z(fe,Ie),fe=fe[Ie];pe&&!we&&(S[ve]=fe)}}return fe}},52371:function(oe,N,o){"use strict";o.r(N),o.d(N,{EPSILON:function(){return x},ARRAY_TYPE:function(){return g},RANDOM:function(){return A},setMatrixArrayType:function(){return y},toRadian:function(){return w},equals:function(){return m}});var x=1e-6,g=typeof Float32Array!="undefined"?Float32Array:Array,A=Math.random;function y(b){g=b}var M=Math.PI/180;function w(b){return b*M}function m(b,v){return Math.abs(b-v)<=x*Math.max(1,Math.abs(b),Math.abs(v))}Math.hypot||(Math.hypot=function(){for(var b=0,v=arguments.length;v--;)b+=arguments[v]*arguments[v];return Math.sqrt(b)})},53216:function(oe,N,o){"use strict";o.r(N),o.d(N,{glMatrix:function(){return m},mat2:function(){return x},mat2d:function(){return g},mat3:function(){return jt},mat4:function(){return A},quat:function(){return M},quat2:function(){return w},vec2:function(){return $f},vec3:function(){return Aa},vec4:function(){return y}});var x={};o.r(x),o.d(x,{LDU:function(){return G},add:function(){return z},adjoint:function(){return O},clone:function(){return v},copy:function(){return h},create:function(){return b},determinant:function(){return F},equals:function(){return ne},exactEquals:function(){return re},frob:function(){return $},fromRotation:function(){return U},fromScaling:function(){return L},fromValues:function(){return _},identity:function(){return d},invert:function(){return k},mul:function(){return he},multiply:function(){return D},multiplyScalar:function(){return Q},multiplyScalarAndAdd:function(){return ue},rotate:function(){return Z},scale:function(){return W},set:function(){return p},str:function(){return V},sub:function(){return Ee},subtract:function(){return K},transpose:function(){return S}});var g={};o.r(g),o.d(g,{add:function(){return Ge},clone:function(){return ve},copy:function(){return fe},create:function(){return ce},determinant:function(){return Ie},equals:function(){return Le},exactEquals:function(){return it},frob:function(){return Ke},fromRotation:function(){return Qe},fromScaling:function(){return qe},fromTranslation:function(){return et},fromValues:function(){return me},identity:function(){return we},invert:function(){return pe},mul:function(){return ct},multiply:function(){return Je},multiplyScalar:function(){return Vt},multiplyScalarAndAdd:function(){return gt},rotate:function(){return ke},scale:function(){return De},set:function(){return Pe},str:function(){return dt},sub:function(){return at},subtract:function(){return wt},translate:function(){return Fe}});var A={};o.r(A),o.d(A,{add:function(){return Gn},adjoint:function(){return tt},clone:function(){return fn},copy:function(){return Xt},create:function(){return St},determinant:function(){return de},equals:function(){return $n},exactEquals:function(){return na},frob:function(){return En},fromQuat:function(){return Ue},fromQuat2:function(){return Hn},fromRotation:function(){return cn},fromRotationTranslation:function(){return lr},fromRotationTranslationScale:function(){return be},fromRotationTranslationScaleOrigin:function(){return Ae},fromScaling:function(){return rn},fromTranslation:function(){return qt},fromValues:function(){return Yt},fromXRotation:function(){return er},fromYRotation:function(){return rr},fromZRotation:function(){return nt},frustum:function(){return $e},getRotation:function(){return We},getScaling:function(){return bt},getTranslation:function(){return ut},identity:function(){return Lt},invert:function(){return rt},lookAt:function(){return zt},mul:function(){return qr},multiply:function(){return ot},multiplyScalar:function(){return pr},multiplyScalarAndAdd:function(){return _r},ortho:function(){return mt},orthoNO:function(){return Bt},orthoZO:function(){return Zt},perspective:function(){return lt},perspectiveFromFieldOfView:function(){return Ct},perspectiveNO:function(){return kt},perspectiveZO:function(){return vt},rotate:function(){return Jt},rotateX:function(){return Qt},rotateY:function(){return an},rotateZ:function(){return Un},scale:function(){return Ht},set:function(){return Rt},str:function(){return An},sub:function(){return Jr},subtract:function(){return Bn},targetTo:function(){return ln},translate:function(){return Et},transpose:function(){return ze}});var y={};o.r(y),o.d(y,{add:function(){return vr},ceil:function(){return ba},clone:function(){return $t},copy:function(){return Fn},create:function(){return ya},cross:function(){return Fi},dist:function(){return vl},distance:function(){return Kn},div:function(){return Os},divide:function(){return Kr},dot:function(){return Ua},equals:function(){return to},exactEquals:function(){return yo},floor:function(){return Ri},forEach:function(){return nn},fromValues:function(){return wn},inverse:function(){return Yn},len:function(){return Rn},length:function(){return At},lerp:function(){return Xa},max:function(){return Pi},min:function(){return Ea},mul:function(){return cs},multiply:function(){return Zr},negate:function(){return ta},normalize:function(){return Qa},random:function(){return $i},round:function(){return rs},scale:function(){return Ui},scaleAndAdd:function(){return Cn},set:function(){return Or},sqrDist:function(){return Ar},sqrLen:function(){return Sr},squaredDistance:function(){return Pn},squaredLength:function(){return ar},str:function(){return Do},sub:function(){return fs},subtract:function(){return Ur},transformMat4:function(){return La},transformQuat:function(){return ja},zero:function(){return ei}});var M={};o.r(M),o.d(M,{add:function(){return hl},calculateW:function(){return ka},clone:function(){return Il},conjugate:function(){return Eo},copy:function(){return mc},create:function(){return sn},dot:function(){return Wl},equals:function(){return Ci},exactEquals:function(){return Ti},exp:function(){return Li},fromEuler:function(){return Bo},fromMat3:function(){return Xi},fromValues:function(){return ms},getAngle:function(){return Ln},getAxisAngle:function(){return Gr},identity:function(){return Ot},invert:function(){return Mi},len:function(){return zn},length:function(){return Ls},lerp:function(){return _l},ln:function(){return zi},mul:function(){return Rs},multiply:function(){return Tr},normalize:function(){return _a},pow:function(){return Mo},random:function(){return ao},rotateX:function(){return Dn},rotateY:function(){return Pr},rotateZ:function(){return fa},rotationTo:function(){return da},scale:function(){return xl},set:function(){return Ys},setAxes:function(){return mi},setAxisAngle:function(){return gr},slerp:function(){return Za},sqlerp:function(){return Da},sqrLen:function(){return Hr},squaredLength:function(){return Dr},str:function(){return ol}});var w={};o.r(w),o.d(w,{add:function(){return hu},clone:function(){return al},conjugate:function(){return rf},copy:function(){return Jl},create:function(){return Ho},dot:function(){return cf},equals:function(){return If},exactEquals:function(){return eu},fromMat4:function(){return Dc},fromRotation:function(){return ql},fromRotationTranslation:function(){return Ps},fromRotationTranslationValues:function(){return Xs},fromTranslation:function(){return dl},fromValues:function(){return ml},getDual:function(){return ku},getReal:function(){return yf},getTranslation:function(){return Fc},identity:function(){return oc},invert:function(){return Cu},len:function(){return Tf},length:function(){return Bu},lerp:function(){return bf},mul:function(){return uu},multiply:function(){return of},normalize:function(){return Pd},rotateAroundAxis:function(){return lu},rotateByQuatAppend:function(){return Tc},rotateByQuatPrepend:function(){return jc},rotateX:function(){return Vu},rotateY:function(){return ws},rotateZ:function(){return fc},scale:function(){return zu},set:function(){return xu},setDual:function(){return Zu},setReal:function(){return Zc},sqrLen:function(){return Fd},squaredLength:function(){return ed},str:function(){return Nc},translate:function(){return Hc}});var m=o(52371);function b(){var Te=new m.ARRAY_TYPE(4);return m.ARRAY_TYPE!=Float32Array&&(Te[1]=0,Te[2]=0),Te[0]=1,Te[3]=1,Te}function v(Te){var _t=new m.ARRAY_TYPE(4);return _t[0]=Te[0],_t[1]=Te[1],_t[2]=Te[2],_t[3]=Te[3],_t}function h(Te,_t){return Te[0]=_t[0],Te[1]=_t[1],Te[2]=_t[2],Te[3]=_t[3],Te}function d(Te){return Te[0]=1,Te[1]=0,Te[2]=0,Te[3]=1,Te}function _(Te,_t,Vn,br){var tn=new m.ARRAY_TYPE(4);return tn[0]=Te,tn[1]=_t,tn[2]=Vn,tn[3]=br,tn}function p(Te,_t,Vn,br,tn){return Te[0]=_t,Te[1]=Vn,Te[2]=br,Te[3]=tn,Te}function S(Te,_t){if(Te===_t){var Vn=_t[1];Te[1]=_t[2],Te[2]=Vn}else Te[0]=_t[0],Te[1]=_t[2],Te[2]=_t[1],Te[3]=_t[3];return Te}function k(Te,_t){var Vn=_t[0],br=_t[1],tn=_t[2],Pt=_t[3],on=Vn*Pt-tn*br;return on?(on=1/on,Te[0]=Pt*on,Te[1]=-br*on,Te[2]=-tn*on,Te[3]=Vn*on,Te):null}function O(Te,_t){var Vn=_t[0];return Te[0]=_t[3],Te[1]=-_t[1],Te[2]=-_t[2],Te[3]=Vn,Te}function F(Te){return Te[0]*Te[3]-Te[2]*Te[1]}function D(Te,_t,Vn){var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3],_n=Vn[0],ir=Vn[1],xr=Vn[2],aa=Vn[3];return Te[0]=br*_n+Pt*ir,Te[1]=tn*_n+on*ir,Te[2]=br*xr+Pt*aa,Te[3]=tn*xr+on*aa,Te}function Z(Te,_t,Vn){var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3],_n=Math.sin(Vn),ir=Math.cos(Vn);return Te[0]=br*ir+Pt*_n,Te[1]=tn*ir+on*_n,Te[2]=br*-_n+Pt*ir,Te[3]=tn*-_n+on*ir,Te}function W(Te,_t,Vn){var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3],_n=Vn[0],ir=Vn[1];return Te[0]=br*_n,Te[1]=tn*_n,Te[2]=Pt*ir,Te[3]=on*ir,Te}function U(Te,_t){var Vn=Math.sin(_t),br=Math.cos(_t);return Te[0]=br,Te[1]=Vn,Te[2]=-Vn,Te[3]=br,Te}function L(Te,_t){return Te[0]=_t[0],Te[1]=0,Te[2]=0,Te[3]=_t[1],Te}function V(Te){return"mat2("+Te[0]+", "+Te[1]+", "+Te[2]+", "+Te[3]+")"}function $(Te){return Math.hypot(Te[0],Te[1],Te[2],Te[3])}function G(Te,_t,Vn,br){return Te[2]=br[2]/br[0],Vn[0]=br[0],Vn[1]=br[1],Vn[3]=br[3]-Te[2]*Vn[1],[Te,_t,Vn]}function z(Te,_t,Vn){return Te[0]=_t[0]+Vn[0],Te[1]=_t[1]+Vn[1],Te[2]=_t[2]+Vn[2],Te[3]=_t[3]+Vn[3],Te}function K(Te,_t,Vn){return Te[0]=_t[0]-Vn[0],Te[1]=_t[1]-Vn[1],Te[2]=_t[2]-Vn[2],Te[3]=_t[3]-Vn[3],Te}function re(Te,_t){return Te[0]===_t[0]&&Te[1]===_t[1]&&Te[2]===_t[2]&&Te[3]===_t[3]}function ne(Te,_t){var Vn=Te[0],br=Te[1],tn=Te[2],Pt=Te[3],on=_t[0],_n=_t[1],ir=_t[2],xr=_t[3];return Math.abs(Vn-on)<=m.EPSILON*Math.max(1,Math.abs(Vn),Math.abs(on))&&Math.abs(br-_n)<=m.EPSILON*Math.max(1,Math.abs(br),Math.abs(_n))&&Math.abs(tn-ir)<=m.EPSILON*Math.max(1,Math.abs(tn),Math.abs(ir))&&Math.abs(Pt-xr)<=m.EPSILON*Math.max(1,Math.abs(Pt),Math.abs(xr))}function Q(Te,_t,Vn){return Te[0]=_t[0]*Vn,Te[1]=_t[1]*Vn,Te[2]=_t[2]*Vn,Te[3]=_t[3]*Vn,Te}function ue(Te,_t,Vn,br){return Te[0]=_t[0]+Vn[0]*br,Te[1]=_t[1]+Vn[1]*br,Te[2]=_t[2]+Vn[2]*br,Te[3]=_t[3]+Vn[3]*br,Te}var he=D,Ee=K;function ce(){var Te=new m.ARRAY_TYPE(6);return m.ARRAY_TYPE!=Float32Array&&(Te[1]=0,Te[2]=0,Te[4]=0,Te[5]=0),Te[0]=1,Te[3]=1,Te}function ve(Te){var _t=new m.ARRAY_TYPE(6);return _t[0]=Te[0],_t[1]=Te[1],_t[2]=Te[2],_t[3]=Te[3],_t[4]=Te[4],_t[5]=Te[5],_t}function fe(Te,_t){return Te[0]=_t[0],Te[1]=_t[1],Te[2]=_t[2],Te[3]=_t[3],Te[4]=_t[4],Te[5]=_t[5],Te}function we(Te){return Te[0]=1,Te[1]=0,Te[2]=0,Te[3]=1,Te[4]=0,Te[5]=0,Te}function me(Te,_t,Vn,br,tn,Pt){var on=new m.ARRAY_TYPE(6);return on[0]=Te,on[1]=_t,on[2]=Vn,on[3]=br,on[4]=tn,on[5]=Pt,on}function Pe(Te,_t,Vn,br,tn,Pt,on){return Te[0]=_t,Te[1]=Vn,Te[2]=br,Te[3]=tn,Te[4]=Pt,Te[5]=on,Te}function pe(Te,_t){var Vn=_t[0],br=_t[1],tn=_t[2],Pt=_t[3],on=_t[4],_n=_t[5],ir=Vn*Pt-br*tn;return ir?(ir=1/ir,Te[0]=Pt*ir,Te[1]=-br*ir,Te[2]=-tn*ir,Te[3]=Vn*ir,Te[4]=(tn*_n-Pt*on)*ir,Te[5]=(br*on-Vn*_n)*ir,Te):null}function Ie(Te){return Te[0]*Te[3]-Te[1]*Te[2]}function Je(Te,_t,Vn){var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3],_n=_t[4],ir=_t[5],xr=Vn[0],aa=Vn[1],oi=Vn[2],ni=Vn[3],yi=Vn[4],Zo=Vn[5];return Te[0]=br*xr+Pt*aa,Te[1]=tn*xr+on*aa,Te[2]=br*oi+Pt*ni,Te[3]=tn*oi+on*ni,Te[4]=br*yi+Pt*Zo+_n,Te[5]=tn*yi+on*Zo+ir,Te}function ke(Te,_t,Vn){var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3],_n=_t[4],ir=_t[5],xr=Math.sin(Vn),aa=Math.cos(Vn);return Te[0]=br*aa+Pt*xr,Te[1]=tn*aa+on*xr,Te[2]=br*-xr+Pt*aa,Te[3]=tn*-xr+on*aa,Te[4]=_n,Te[5]=ir,Te}function De(Te,_t,Vn){var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3],_n=_t[4],ir=_t[5],xr=Vn[0],aa=Vn[1];return Te[0]=br*xr,Te[1]=tn*xr,Te[2]=Pt*aa,Te[3]=on*aa,Te[4]=_n,Te[5]=ir,Te}function Fe(Te,_t,Vn){var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3],_n=_t[4],ir=_t[5],xr=Vn[0],aa=Vn[1];return Te[0]=br,Te[1]=tn,Te[2]=Pt,Te[3]=on,Te[4]=br*xr+Pt*aa+_n,Te[5]=tn*xr+on*aa+ir,Te}function Qe(Te,_t){var Vn=Math.sin(_t),br=Math.cos(_t);return Te[0]=br,Te[1]=Vn,Te[2]=-Vn,Te[3]=br,Te[4]=0,Te[5]=0,Te}function qe(Te,_t){return Te[0]=_t[0],Te[1]=0,Te[2]=0,Te[3]=_t[1],Te[4]=0,Te[5]=0,Te}function et(Te,_t){return Te[0]=1,Te[1]=0,Te[2]=0,Te[3]=1,Te[4]=_t[0],Te[5]=_t[1],Te}function dt(Te){return"mat2d("+Te[0]+", "+Te[1]+", "+Te[2]+", "+Te[3]+", "+Te[4]+", "+Te[5]+")"}function Ke(Te){return Math.hypot(Te[0],Te[1],Te[2],Te[3],Te[4],Te[5],1)}function Ge(Te,_t,Vn){return Te[0]=_t[0]+Vn[0],Te[1]=_t[1]+Vn[1],Te[2]=_t[2]+Vn[2],Te[3]=_t[3]+Vn[3],Te[4]=_t[4]+Vn[4],Te[5]=_t[5]+Vn[5],Te}function wt(Te,_t,Vn){return Te[0]=_t[0]-Vn[0],Te[1]=_t[1]-Vn[1],Te[2]=_t[2]-Vn[2],Te[3]=_t[3]-Vn[3],Te[4]=_t[4]-Vn[4],Te[5]=_t[5]-Vn[5],Te}function Vt(Te,_t,Vn){return Te[0]=_t[0]*Vn,Te[1]=_t[1]*Vn,Te[2]=_t[2]*Vn,Te[3]=_t[3]*Vn,Te[4]=_t[4]*Vn,Te[5]=_t[5]*Vn,Te}function gt(Te,_t,Vn,br){return Te[0]=_t[0]+Vn[0]*br,Te[1]=_t[1]+Vn[1]*br,Te[2]=_t[2]+Vn[2]*br,Te[3]=_t[3]+Vn[3]*br,Te[4]=_t[4]+Vn[4]*br,Te[5]=_t[5]+Vn[5]*br,Te}function it(Te,_t){return Te[0]===_t[0]&&Te[1]===_t[1]&&Te[2]===_t[2]&&Te[3]===_t[3]&&Te[4]===_t[4]&&Te[5]===_t[5]}function Le(Te,_t){var Vn=Te[0],br=Te[1],tn=Te[2],Pt=Te[3],on=Te[4],_n=Te[5],ir=_t[0],xr=_t[1],aa=_t[2],oi=_t[3],ni=_t[4],yi=_t[5];return Math.abs(Vn-ir)<=m.EPSILON*Math.max(1,Math.abs(Vn),Math.abs(ir))&&Math.abs(br-xr)<=m.EPSILON*Math.max(1,Math.abs(br),Math.abs(xr))&&Math.abs(tn-aa)<=m.EPSILON*Math.max(1,Math.abs(tn),Math.abs(aa))&&Math.abs(Pt-oi)<=m.EPSILON*Math.max(1,Math.abs(Pt),Math.abs(oi))&&Math.abs(on-ni)<=m.EPSILON*Math.max(1,Math.abs(on),Math.abs(ni))&&Math.abs(_n-yi)<=m.EPSILON*Math.max(1,Math.abs(_n),Math.abs(yi))}var ct=Je,at=wt,jt=o(16727);function St(){var Te=new m.ARRAY_TYPE(16);return m.ARRAY_TYPE!=Float32Array&&(Te[1]=0,Te[2]=0,Te[3]=0,Te[4]=0,Te[6]=0,Te[7]=0,Te[8]=0,Te[9]=0,Te[11]=0,Te[12]=0,Te[13]=0,Te[14]=0),Te[0]=1,Te[5]=1,Te[10]=1,Te[15]=1,Te}function fn(Te){var _t=new m.ARRAY_TYPE(16);return _t[0]=Te[0],_t[1]=Te[1],_t[2]=Te[2],_t[3]=Te[3],_t[4]=Te[4],_t[5]=Te[5],_t[6]=Te[6],_t[7]=Te[7],_t[8]=Te[8],_t[9]=Te[9],_t[10]=Te[10],_t[11]=Te[11],_t[12]=Te[12],_t[13]=Te[13],_t[14]=Te[14],_t[15]=Te[15],_t}function Xt(Te,_t){return Te[0]=_t[0],Te[1]=_t[1],Te[2]=_t[2],Te[3]=_t[3],Te[4]=_t[4],Te[5]=_t[5],Te[6]=_t[6],Te[7]=_t[7],Te[8]=_t[8],Te[9]=_t[9],Te[10]=_t[10],Te[11]=_t[11],Te[12]=_t[12],Te[13]=_t[13],Te[14]=_t[14],Te[15]=_t[15],Te}function Yt(Te,_t,Vn,br,tn,Pt,on,_n,ir,xr,aa,oi,ni,yi,Zo,is){var mo=new m.ARRAY_TYPE(16);return mo[0]=Te,mo[1]=_t,mo[2]=Vn,mo[3]=br,mo[4]=tn,mo[5]=Pt,mo[6]=on,mo[7]=_n,mo[8]=ir,mo[9]=xr,mo[10]=aa,mo[11]=oi,mo[12]=ni,mo[13]=yi,mo[14]=Zo,mo[15]=is,mo}function Rt(Te,_t,Vn,br,tn,Pt,on,_n,ir,xr,aa,oi,ni,yi,Zo,is,mo){return Te[0]=_t,Te[1]=Vn,Te[2]=br,Te[3]=tn,Te[4]=Pt,Te[5]=on,Te[6]=_n,Te[7]=ir,Te[8]=xr,Te[9]=aa,Te[10]=oi,Te[11]=ni,Te[12]=yi,Te[13]=Zo,Te[14]=is,Te[15]=mo,Te}function Lt(Te){return Te[0]=1,Te[1]=0,Te[2]=0,Te[3]=0,Te[4]=0,Te[5]=1,Te[6]=0,Te[7]=0,Te[8]=0,Te[9]=0,Te[10]=1,Te[11]=0,Te[12]=0,Te[13]=0,Te[14]=0,Te[15]=1,Te}function ze(Te,_t){if(Te===_t){var Vn=_t[1],br=_t[2],tn=_t[3],Pt=_t[6],on=_t[7],_n=_t[11];Te[1]=_t[4],Te[2]=_t[8],Te[3]=_t[12],Te[4]=Vn,Te[6]=_t[9],Te[7]=_t[13],Te[8]=br,Te[9]=Pt,Te[11]=_t[14],Te[12]=tn,Te[13]=on,Te[14]=_n}else Te[0]=_t[0],Te[1]=_t[4],Te[2]=_t[8],Te[3]=_t[12],Te[4]=_t[1],Te[5]=_t[5],Te[6]=_t[9],Te[7]=_t[13],Te[8]=_t[2],Te[9]=_t[6],Te[10]=_t[10],Te[11]=_t[14],Te[12]=_t[3],Te[13]=_t[7],Te[14]=_t[11],Te[15]=_t[15];return Te}function rt(Te,_t){var Vn=_t[0],br=_t[1],tn=_t[2],Pt=_t[3],on=_t[4],_n=_t[5],ir=_t[6],xr=_t[7],aa=_t[8],oi=_t[9],ni=_t[10],yi=_t[11],Zo=_t[12],is=_t[13],mo=_t[14],Ml=_t[15],yc=Vn*_n-br*on,oa=Vn*ir-tn*on,sl=Vn*xr-Pt*on,fl=br*ir-tn*_n,bc=br*xr-Pt*_n,Rf=tn*xr-Pt*ir,Ms=aa*is-oi*Zo,ff=aa*mo-ni*Zo,Df=aa*Ml-yi*Zo,Ff=oi*mo-ni*is,Kf=oi*Ml-yi*is,xf=ni*Ml-yi*mo,Sc=yc*xf-oa*Kf+sl*Ff+fl*Df-bc*ff+Rf*Ms;return Sc?(Sc=1/Sc,Te[0]=(_n*xf-ir*Kf+xr*Ff)*Sc,Te[1]=(tn*Kf-br*xf-Pt*Ff)*Sc,Te[2]=(is*Rf-mo*bc+Ml*fl)*Sc,Te[3]=(ni*bc-oi*Rf-yi*fl)*Sc,Te[4]=(ir*Df-on*xf-xr*ff)*Sc,Te[5]=(Vn*xf-tn*Df+Pt*ff)*Sc,Te[6]=(mo*sl-Zo*Rf-Ml*oa)*Sc,Te[7]=(aa*Rf-ni*sl+yi*oa)*Sc,Te[8]=(on*Kf-_n*Df+xr*Ms)*Sc,Te[9]=(br*Df-Vn*Kf-Pt*Ms)*Sc,Te[10]=(Zo*bc-is*sl+Ml*yc)*Sc,Te[11]=(oi*sl-aa*bc-yi*yc)*Sc,Te[12]=(_n*ff-on*Ff-ir*Ms)*Sc,Te[13]=(Vn*Ff-br*ff+tn*Ms)*Sc,Te[14]=(is*oa-Zo*fl-mo*yc)*Sc,Te[15]=(aa*fl-oi*oa+ni*yc)*Sc,Te):null}function tt(Te,_t){var Vn=_t[0],br=_t[1],tn=_t[2],Pt=_t[3],on=_t[4],_n=_t[5],ir=_t[6],xr=_t[7],aa=_t[8],oi=_t[9],ni=_t[10],yi=_t[11],Zo=_t[12],is=_t[13],mo=_t[14],Ml=_t[15];return Te[0]=_n*(ni*Ml-yi*mo)-oi*(ir*Ml-xr*mo)+is*(ir*yi-xr*ni),Te[1]=-(br*(ni*Ml-yi*mo)-oi*(tn*Ml-Pt*mo)+is*(tn*yi-Pt*ni)),Te[2]=br*(ir*Ml-xr*mo)-_n*(tn*Ml-Pt*mo)+is*(tn*xr-Pt*ir),Te[3]=-(br*(ir*yi-xr*ni)-_n*(tn*yi-Pt*ni)+oi*(tn*xr-Pt*ir)),Te[4]=-(on*(ni*Ml-yi*mo)-aa*(ir*Ml-xr*mo)+Zo*(ir*yi-xr*ni)),Te[5]=Vn*(ni*Ml-yi*mo)-aa*(tn*Ml-Pt*mo)+Zo*(tn*yi-Pt*ni),Te[6]=-(Vn*(ir*Ml-xr*mo)-on*(tn*Ml-Pt*mo)+Zo*(tn*xr-Pt*ir)),Te[7]=Vn*(ir*yi-xr*ni)-on*(tn*yi-Pt*ni)+aa*(tn*xr-Pt*ir),Te[8]=on*(oi*Ml-yi*is)-aa*(_n*Ml-xr*is)+Zo*(_n*yi-xr*oi),Te[9]=-(Vn*(oi*Ml-yi*is)-aa*(br*Ml-Pt*is)+Zo*(br*yi-Pt*oi)),Te[10]=Vn*(_n*Ml-xr*is)-on*(br*Ml-Pt*is)+Zo*(br*xr-Pt*_n),Te[11]=-(Vn*(_n*yi-xr*oi)-on*(br*yi-Pt*oi)+aa*(br*xr-Pt*_n)),Te[12]=-(on*(oi*mo-ni*is)-aa*(_n*mo-ir*is)+Zo*(_n*ni-ir*oi)),Te[13]=Vn*(oi*mo-ni*is)-aa*(br*mo-tn*is)+Zo*(br*ni-tn*oi),Te[14]=-(Vn*(_n*mo-ir*is)-on*(br*mo-tn*is)+Zo*(br*ir-tn*_n)),Te[15]=Vn*(_n*ni-ir*oi)-on*(br*ni-tn*oi)+aa*(br*ir-tn*_n),Te}function de(Te){var _t=Te[0],Vn=Te[1],br=Te[2],tn=Te[3],Pt=Te[4],on=Te[5],_n=Te[6],ir=Te[7],xr=Te[8],aa=Te[9],oi=Te[10],ni=Te[11],yi=Te[12],Zo=Te[13],is=Te[14],mo=Te[15],Ml=_t*on-Vn*Pt,yc=_t*_n-br*Pt,oa=_t*ir-tn*Pt,sl=Vn*_n-br*on,fl=Vn*ir-tn*on,bc=br*ir-tn*_n,Rf=xr*Zo-aa*yi,Ms=xr*is-oi*yi,ff=xr*mo-ni*yi,Df=aa*is-oi*Zo,Ff=aa*mo-ni*Zo,Kf=oi*mo-ni*is;return Ml*Kf-yc*Ff+oa*Df+sl*ff-fl*Ms+bc*Rf}function ot(Te,_t,Vn){var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3],_n=_t[4],ir=_t[5],xr=_t[6],aa=_t[7],oi=_t[8],ni=_t[9],yi=_t[10],Zo=_t[11],is=_t[12],mo=_t[13],Ml=_t[14],yc=_t[15],oa=Vn[0],sl=Vn[1],fl=Vn[2],bc=Vn[3];return Te[0]=oa*br+sl*_n+fl*oi+bc*is,Te[1]=oa*tn+sl*ir+fl*ni+bc*mo,Te[2]=oa*Pt+sl*xr+fl*yi+bc*Ml,Te[3]=oa*on+sl*aa+fl*Zo+bc*yc,oa=Vn[4],sl=Vn[5],fl=Vn[6],bc=Vn[7],Te[4]=oa*br+sl*_n+fl*oi+bc*is,Te[5]=oa*tn+sl*ir+fl*ni+bc*mo,Te[6]=oa*Pt+sl*xr+fl*yi+bc*Ml,Te[7]=oa*on+sl*aa+fl*Zo+bc*yc,oa=Vn[8],sl=Vn[9],fl=Vn[10],bc=Vn[11],Te[8]=oa*br+sl*_n+fl*oi+bc*is,Te[9]=oa*tn+sl*ir+fl*ni+bc*mo,Te[10]=oa*Pt+sl*xr+fl*yi+bc*Ml,Te[11]=oa*on+sl*aa+fl*Zo+bc*yc,oa=Vn[12],sl=Vn[13],fl=Vn[14],bc=Vn[15],Te[12]=oa*br+sl*_n+fl*oi+bc*is,Te[13]=oa*tn+sl*ir+fl*ni+bc*mo,Te[14]=oa*Pt+sl*xr+fl*yi+bc*Ml,Te[15]=oa*on+sl*aa+fl*Zo+bc*yc,Te}function Et(Te,_t,Vn){var br=Vn[0],tn=Vn[1],Pt=Vn[2],on,_n,ir,xr,aa,oi,ni,yi,Zo,is,mo,Ml;return _t===Te?(Te[12]=_t[0]*br+_t[4]*tn+_t[8]*Pt+_t[12],Te[13]=_t[1]*br+_t[5]*tn+_t[9]*Pt+_t[13],Te[14]=_t[2]*br+_t[6]*tn+_t[10]*Pt+_t[14],Te[15]=_t[3]*br+_t[7]*tn+_t[11]*Pt+_t[15]):(on=_t[0],_n=_t[1],ir=_t[2],xr=_t[3],aa=_t[4],oi=_t[5],ni=_t[6],yi=_t[7],Zo=_t[8],is=_t[9],mo=_t[10],Ml=_t[11],Te[0]=on,Te[1]=_n,Te[2]=ir,Te[3]=xr,Te[4]=aa,Te[5]=oi,Te[6]=ni,Te[7]=yi,Te[8]=Zo,Te[9]=is,Te[10]=mo,Te[11]=Ml,Te[12]=on*br+aa*tn+Zo*Pt+_t[12],Te[13]=_n*br+oi*tn+is*Pt+_t[13],Te[14]=ir*br+ni*tn+mo*Pt+_t[14],Te[15]=xr*br+yi*tn+Ml*Pt+_t[15]),Te}function Ht(Te,_t,Vn){var br=Vn[0],tn=Vn[1],Pt=Vn[2];return Te[0]=_t[0]*br,Te[1]=_t[1]*br,Te[2]=_t[2]*br,Te[3]=_t[3]*br,Te[4]=_t[4]*tn,Te[5]=_t[5]*tn,Te[6]=_t[6]*tn,Te[7]=_t[7]*tn,Te[8]=_t[8]*Pt,Te[9]=_t[9]*Pt,Te[10]=_t[10]*Pt,Te[11]=_t[11]*Pt,Te[12]=_t[12],Te[13]=_t[13],Te[14]=_t[14],Te[15]=_t[15],Te}function Jt(Te,_t,Vn,br){var tn=br[0],Pt=br[1],on=br[2],_n=Math.hypot(tn,Pt,on),ir,xr,aa,oi,ni,yi,Zo,is,mo,Ml,yc,oa,sl,fl,bc,Rf,Ms,ff,Df,Ff,Kf,xf,Sc,Wu;return _n<m.EPSILON?null:(_n=1/_n,tn*=_n,Pt*=_n,on*=_n,ir=Math.sin(Vn),xr=Math.cos(Vn),aa=1-xr,oi=_t[0],ni=_t[1],yi=_t[2],Zo=_t[3],is=_t[4],mo=_t[5],Ml=_t[6],yc=_t[7],oa=_t[8],sl=_t[9],fl=_t[10],bc=_t[11],Rf=tn*tn*aa+xr,Ms=Pt*tn*aa+on*ir,ff=on*tn*aa-Pt*ir,Df=tn*Pt*aa-on*ir,Ff=Pt*Pt*aa+xr,Kf=on*Pt*aa+tn*ir,xf=tn*on*aa+Pt*ir,Sc=Pt*on*aa-tn*ir,Wu=on*on*aa+xr,Te[0]=oi*Rf+is*Ms+oa*ff,Te[1]=ni*Rf+mo*Ms+sl*ff,Te[2]=yi*Rf+Ml*Ms+fl*ff,Te[3]=Zo*Rf+yc*Ms+bc*ff,Te[4]=oi*Df+is*Ff+oa*Kf,Te[5]=ni*Df+mo*Ff+sl*Kf,Te[6]=yi*Df+Ml*Ff+fl*Kf,Te[7]=Zo*Df+yc*Ff+bc*Kf,Te[8]=oi*xf+is*Sc+oa*Wu,Te[9]=ni*xf+mo*Sc+sl*Wu,Te[10]=yi*xf+Ml*Sc+fl*Wu,Te[11]=Zo*xf+yc*Sc+bc*Wu,_t!==Te&&(Te[12]=_t[12],Te[13]=_t[13],Te[14]=_t[14],Te[15]=_t[15]),Te)}function Qt(Te,_t,Vn){var br=Math.sin(Vn),tn=Math.cos(Vn),Pt=_t[4],on=_t[5],_n=_t[6],ir=_t[7],xr=_t[8],aa=_t[9],oi=_t[10],ni=_t[11];return _t!==Te&&(Te[0]=_t[0],Te[1]=_t[1],Te[2]=_t[2],Te[3]=_t[3],Te[12]=_t[12],Te[13]=_t[13],Te[14]=_t[14],Te[15]=_t[15]),Te[4]=Pt*tn+xr*br,Te[5]=on*tn+aa*br,Te[6]=_n*tn+oi*br,Te[7]=ir*tn+ni*br,Te[8]=xr*tn-Pt*br,Te[9]=aa*tn-on*br,Te[10]=oi*tn-_n*br,Te[11]=ni*tn-ir*br,Te}function an(Te,_t,Vn){var br=Math.sin(Vn),tn=Math.cos(Vn),Pt=_t[0],on=_t[1],_n=_t[2],ir=_t[3],xr=_t[8],aa=_t[9],oi=_t[10],ni=_t[11];return _t!==Te&&(Te[4]=_t[4],Te[5]=_t[5],Te[6]=_t[6],Te[7]=_t[7],Te[12]=_t[12],Te[13]=_t[13],Te[14]=_t[14],Te[15]=_t[15]),Te[0]=Pt*tn-xr*br,Te[1]=on*tn-aa*br,Te[2]=_n*tn-oi*br,Te[3]=ir*tn-ni*br,Te[8]=Pt*br+xr*tn,Te[9]=on*br+aa*tn,Te[10]=_n*br+oi*tn,Te[11]=ir*br+ni*tn,Te}function Un(Te,_t,Vn){var br=Math.sin(Vn),tn=Math.cos(Vn),Pt=_t[0],on=_t[1],_n=_t[2],ir=_t[3],xr=_t[4],aa=_t[5],oi=_t[6],ni=_t[7];return _t!==Te&&(Te[8]=_t[8],Te[9]=_t[9],Te[10]=_t[10],Te[11]=_t[11],Te[12]=_t[12],Te[13]=_t[13],Te[14]=_t[14],Te[15]=_t[15]),Te[0]=Pt*tn+xr*br,Te[1]=on*tn+aa*br,Te[2]=_n*tn+oi*br,Te[3]=ir*tn+ni*br,Te[4]=xr*tn-Pt*br,Te[5]=aa*tn-on*br,Te[6]=oi*tn-_n*br,Te[7]=ni*tn-ir*br,Te}function qt(Te,_t){return Te[0]=1,Te[1]=0,Te[2]=0,Te[3]=0,Te[4]=0,Te[5]=1,Te[6]=0,Te[7]=0,Te[8]=0,Te[9]=0,Te[10]=1,Te[11]=0,Te[12]=_t[0],Te[13]=_t[1],Te[14]=_t[2],Te[15]=1,Te}function rn(Te,_t){return Te[0]=_t[0],Te[1]=0,Te[2]=0,Te[3]=0,Te[4]=0,Te[5]=_t[1],Te[6]=0,Te[7]=0,Te[8]=0,Te[9]=0,Te[10]=_t[2],Te[11]=0,Te[12]=0,Te[13]=0,Te[14]=0,Te[15]=1,Te}function cn(Te,_t,Vn){var br=Vn[0],tn=Vn[1],Pt=Vn[2],on=Math.hypot(br,tn,Pt),_n,ir,xr;return on<m.EPSILON?null:(on=1/on,br*=on,tn*=on,Pt*=on,_n=Math.sin(_t),ir=Math.cos(_t),xr=1-ir,Te[0]=br*br*xr+ir,Te[1]=tn*br*xr+Pt*_n,Te[2]=Pt*br*xr-tn*_n,Te[3]=0,Te[4]=br*tn*xr-Pt*_n,Te[5]=tn*tn*xr+ir,Te[6]=Pt*tn*xr+br*_n,Te[7]=0,Te[8]=br*Pt*xr+tn*_n,Te[9]=tn*Pt*xr-br*_n,Te[10]=Pt*Pt*xr+ir,Te[11]=0,Te[12]=0,Te[13]=0,Te[14]=0,Te[15]=1,Te)}function er(Te,_t){var Vn=Math.sin(_t),br=Math.cos(_t);return Te[0]=1,Te[1]=0,Te[2]=0,Te[3]=0,Te[4]=0,Te[5]=br,Te[6]=Vn,Te[7]=0,Te[8]=0,Te[9]=-Vn,Te[10]=br,Te[11]=0,Te[12]=0,Te[13]=0,Te[14]=0,Te[15]=1,Te}function rr(Te,_t){var Vn=Math.sin(_t),br=Math.cos(_t);return Te[0]=br,Te[1]=0,Te[2]=-Vn,Te[3]=0,Te[4]=0,Te[5]=1,Te[6]=0,Te[7]=0,Te[8]=Vn,Te[9]=0,Te[10]=br,Te[11]=0,Te[12]=0,Te[13]=0,Te[14]=0,Te[15]=1,Te}function nt(Te,_t){var Vn=Math.sin(_t),br=Math.cos(_t);return Te[0]=br,Te[1]=Vn,Te[2]=0,Te[3]=0,Te[4]=-Vn,Te[5]=br,Te[6]=0,Te[7]=0,Te[8]=0,Te[9]=0,Te[10]=1,Te[11]=0,Te[12]=0,Te[13]=0,Te[14]=0,Te[15]=1,Te}function lr(Te,_t,Vn){var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3],_n=br+br,ir=tn+tn,xr=Pt+Pt,aa=br*_n,oi=br*ir,ni=br*xr,yi=tn*ir,Zo=tn*xr,is=Pt*xr,mo=on*_n,Ml=on*ir,yc=on*xr;return Te[0]=1-(yi+is),Te[1]=oi+yc,Te[2]=ni-Ml,Te[3]=0,Te[4]=oi-yc,Te[5]=1-(aa+is),Te[6]=Zo+mo,Te[7]=0,Te[8]=ni+Ml,Te[9]=Zo-mo,Te[10]=1-(aa+yi),Te[11]=0,Te[12]=Vn[0],Te[13]=Vn[1],Te[14]=Vn[2],Te[15]=1,Te}function Hn(Te,_t){var Vn=new m.ARRAY_TYPE(3),br=-_t[0],tn=-_t[1],Pt=-_t[2],on=_t[3],_n=_t[4],ir=_t[5],xr=_t[6],aa=_t[7],oi=br*br+tn*tn+Pt*Pt+on*on;return oi>0?(Vn[0]=(_n*on+aa*br+ir*Pt-xr*tn)*2/oi,Vn[1]=(ir*on+aa*tn+xr*br-_n*Pt)*2/oi,Vn[2]=(xr*on+aa*Pt+_n*tn-ir*br)*2/oi):(Vn[0]=(_n*on+aa*br+ir*Pt-xr*tn)*2,Vn[1]=(ir*on+aa*tn+xr*br-_n*Pt)*2,Vn[2]=(xr*on+aa*Pt+_n*tn-ir*br)*2),lr(Te,_t,Vn),Te}function ut(Te,_t){return Te[0]=_t[12],Te[1]=_t[13],Te[2]=_t[14],Te}function bt(Te,_t){var Vn=_t[0],br=_t[1],tn=_t[2],Pt=_t[4],on=_t[5],_n=_t[6],ir=_t[8],xr=_t[9],aa=_t[10];return Te[0]=Math.hypot(Vn,br,tn),Te[1]=Math.hypot(Pt,on,_n),Te[2]=Math.hypot(ir,xr,aa),Te}function We(Te,_t){var Vn=new m.ARRAY_TYPE(3);bt(Vn,_t);var br=1/Vn[0],tn=1/Vn[1],Pt=1/Vn[2],on=_t[0]*br,_n=_t[1]*tn,ir=_t[2]*Pt,xr=_t[4]*br,aa=_t[5]*tn,oi=_t[6]*Pt,ni=_t[8]*br,yi=_t[9]*tn,Zo=_t[10]*Pt,is=on+aa+Zo,mo=0;return is>0?(mo=Math.sqrt(is+1)*2,Te[3]=.25*mo,Te[0]=(oi-yi)/mo,Te[1]=(ni-ir)/mo,Te[2]=(_n-xr)/mo):on>aa&&on>Zo?(mo=Math.sqrt(1+on-aa-Zo)*2,Te[3]=(oi-yi)/mo,Te[0]=.25*mo,Te[1]=(_n+xr)/mo,Te[2]=(ni+ir)/mo):aa>Zo?(mo=Math.sqrt(1+aa-on-Zo)*2,Te[3]=(ni-ir)/mo,Te[0]=(_n+xr)/mo,Te[1]=.25*mo,Te[2]=(oi+yi)/mo):(mo=Math.sqrt(1+Zo-on-aa)*2,Te[3]=(_n-xr)/mo,Te[0]=(ni+ir)/mo,Te[1]=(oi+yi)/mo,Te[2]=.25*mo),Te}function be(Te,_t,Vn,br){var tn=_t[0],Pt=_t[1],on=_t[2],_n=_t[3],ir=tn+tn,xr=Pt+Pt,aa=on+on,oi=tn*ir,ni=tn*xr,yi=tn*aa,Zo=Pt*xr,is=Pt*aa,mo=on*aa,Ml=_n*ir,yc=_n*xr,oa=_n*aa,sl=br[0],fl=br[1],bc=br[2];return Te[0]=(1-(Zo+mo))*sl,Te[1]=(ni+oa)*sl,Te[2]=(yi-yc)*sl,Te[3]=0,Te[4]=(ni-oa)*fl,Te[5]=(1-(oi+mo))*fl,Te[6]=(is+Ml)*fl,Te[7]=0,Te[8]=(yi+yc)*bc,Te[9]=(is-Ml)*bc,Te[10]=(1-(oi+Zo))*bc,Te[11]=0,Te[12]=Vn[0],Te[13]=Vn[1],Te[14]=Vn[2],Te[15]=1,Te}function Ae(Te,_t,Vn,br,tn){var Pt=_t[0],on=_t[1],_n=_t[2],ir=_t[3],xr=Pt+Pt,aa=on+on,oi=_n+_n,ni=Pt*xr,yi=Pt*aa,Zo=Pt*oi,is=on*aa,mo=on*oi,Ml=_n*oi,yc=ir*xr,oa=ir*aa,sl=ir*oi,fl=br[0],bc=br[1],Rf=br[2],Ms=tn[0],ff=tn[1],Df=tn[2],Ff=(1-(is+Ml))*fl,Kf=(yi+sl)*fl,xf=(Zo-oa)*fl,Sc=(yi-sl)*bc,Wu=(1-(ni+Ml))*bc,Du=(mo+yc)*bc,Gd=(Zo+oa)*Rf,gf=(mo-yc)*Rf,Vp=(1-(ni+is))*Rf;return Te[0]=Ff,Te[1]=Kf,Te[2]=xf,Te[3]=0,Te[4]=Sc,Te[5]=Wu,Te[6]=Du,Te[7]=0,Te[8]=Gd,Te[9]=gf,Te[10]=Vp,Te[11]=0,Te[12]=Vn[0]+Ms-(Ff*Ms+Sc*ff+Gd*Df),Te[13]=Vn[1]+ff-(Kf*Ms+Wu*ff+gf*Df),Te[14]=Vn[2]+Df-(xf*Ms+Du*ff+Vp*Df),Te[15]=1,Te}function Ue(Te,_t){var Vn=_t[0],br=_t[1],tn=_t[2],Pt=_t[3],on=Vn+Vn,_n=br+br,ir=tn+tn,xr=Vn*on,aa=br*on,oi=br*_n,ni=tn*on,yi=tn*_n,Zo=tn*ir,is=Pt*on,mo=Pt*_n,Ml=Pt*ir;return Te[0]=1-oi-Zo,Te[1]=aa+Ml,Te[2]=ni-mo,Te[3]=0,Te[4]=aa-Ml,Te[5]=1-xr-Zo,Te[6]=yi+is,Te[7]=0,Te[8]=ni+mo,Te[9]=yi-is,Te[10]=1-xr-oi,Te[11]=0,Te[12]=0,Te[13]=0,Te[14]=0,Te[15]=1,Te}function $e(Te,_t,Vn,br,tn,Pt,on){var _n=1/(Vn-_t),ir=1/(tn-br),xr=1/(Pt-on);return Te[0]=Pt*2*_n,Te[1]=0,Te[2]=0,Te[3]=0,Te[4]=0,Te[5]=Pt*2*ir,Te[6]=0,Te[7]=0,Te[8]=(Vn+_t)*_n,Te[9]=(tn+br)*ir,Te[10]=(on+Pt)*xr,Te[11]=-1,Te[12]=0,Te[13]=0,Te[14]=on*Pt*2*xr,Te[15]=0,Te}function kt(Te,_t,Vn,br,tn){var Pt=1/Math.tan(_t/2),on;return Te[0]=Pt/Vn,Te[1]=0,Te[2]=0,Te[3]=0,Te[4]=0,Te[5]=Pt,Te[6]=0,Te[7]=0,Te[8]=0,Te[9]=0,Te[11]=-1,Te[12]=0,Te[13]=0,Te[15]=0,tn!=null&&tn!==Infinity?(on=1/(br-tn),Te[10]=(tn+br)*on,Te[14]=2*tn*br*on):(Te[10]=-1,Te[14]=-2*br),Te}var lt=kt;function vt(Te,_t,Vn,br,tn){var Pt=1/Math.tan(_t/2),on;return Te[0]=Pt/Vn,Te[1]=0,Te[2]=0,Te[3]=0,Te[4]=0,Te[5]=Pt,Te[6]=0,Te[7]=0,Te[8]=0,Te[9]=0,Te[11]=-1,Te[12]=0,Te[13]=0,Te[15]=0,tn!=null&&tn!==Infinity?(on=1/(br-tn),Te[10]=tn*on,Te[14]=tn*br*on):(Te[10]=-1,Te[14]=-br),Te}function Ct(Te,_t,Vn,br){var tn=Math.tan(_t.upDegrees*Math.PI/180),Pt=Math.tan(_t.downDegrees*Math.PI/180),on=Math.tan(_t.leftDegrees*Math.PI/180),_n=Math.tan(_t.rightDegrees*Math.PI/180),ir=2/(on+_n),xr=2/(tn+Pt);return Te[0]=ir,Te[1]=0,Te[2]=0,Te[3]=0,Te[4]=0,Te[5]=xr,Te[6]=0,Te[7]=0,Te[8]=-((on-_n)*ir*.5),Te[9]=(tn-Pt)*xr*.5,Te[10]=br/(Vn-br),Te[11]=-1,Te[12]=0,Te[13]=0,Te[14]=br*Vn/(Vn-br),Te[15]=0,Te}function Bt(Te,_t,Vn,br,tn,Pt,on){var _n=1/(_t-Vn),ir=1/(br-tn),xr=1/(Pt-on);return Te[0]=-2*_n,Te[1]=0,Te[2]=0,Te[3]=0,Te[4]=0,Te[5]=-2*ir,Te[6]=0,Te[7]=0,Te[8]=0,Te[9]=0,Te[10]=2*xr,Te[11]=0,Te[12]=(_t+Vn)*_n,Te[13]=(tn+br)*ir,Te[14]=(on+Pt)*xr,Te[15]=1,Te}var mt=Bt;function Zt(Te,_t,Vn,br,tn,Pt,on){var _n=1/(_t-Vn),ir=1/(br-tn),xr=1/(Pt-on);return Te[0]=-2*_n,Te[1]=0,Te[2]=0,Te[3]=0,Te[4]=0,Te[5]=-2*ir,Te[6]=0,Te[7]=0,Te[8]=0,Te[9]=0,Te[10]=xr,Te[11]=0,Te[12]=(_t+Vn)*_n,Te[13]=(tn+br)*ir,Te[14]=Pt*xr,Te[15]=1,Te}function zt(Te,_t,Vn,br){var tn,Pt,on,_n,ir,xr,aa,oi,ni,yi,Zo=_t[0],is=_t[1],mo=_t[2],Ml=br[0],yc=br[1],oa=br[2],sl=Vn[0],fl=Vn[1],bc=Vn[2];return Math.abs(Zo-sl)<m.EPSILON&&Math.abs(is-fl)<m.EPSILON&&Math.abs(mo-bc)<m.EPSILON?Lt(Te):(aa=Zo-sl,oi=is-fl,ni=mo-bc,yi=1/Math.hypot(aa,oi,ni),aa*=yi,oi*=yi,ni*=yi,tn=yc*ni-oa*oi,Pt=oa*aa-Ml*ni,on=Ml*oi-yc*aa,yi=Math.hypot(tn,Pt,on),yi?(yi=1/yi,tn*=yi,Pt*=yi,on*=yi):(tn=0,Pt=0,on=0),_n=oi*on-ni*Pt,ir=ni*tn-aa*on,xr=aa*Pt-oi*tn,yi=Math.hypot(_n,ir,xr),yi?(yi=1/yi,_n*=yi,ir*=yi,xr*=yi):(_n=0,ir=0,xr=0),Te[0]=tn,Te[1]=_n,Te[2]=aa,Te[3]=0,Te[4]=Pt,Te[5]=ir,Te[6]=oi,Te[7]=0,Te[8]=on,Te[9]=xr,Te[10]=ni,Te[11]=0,Te[12]=-(tn*Zo+Pt*is+on*mo),Te[13]=-(_n*Zo+ir*is+xr*mo),Te[14]=-(aa*Zo+oi*is+ni*mo),Te[15]=1,Te)}function ln(Te,_t,Vn,br){var tn=_t[0],Pt=_t[1],on=_t[2],_n=br[0],ir=br[1],xr=br[2],aa=tn-Vn[0],oi=Pt-Vn[1],ni=on-Vn[2],yi=aa*aa+oi*oi+ni*ni;yi>0&&(yi=1/Math.sqrt(yi),aa*=yi,oi*=yi,ni*=yi);var Zo=ir*ni-xr*oi,is=xr*aa-_n*ni,mo=_n*oi-ir*aa;return yi=Zo*Zo+is*is+mo*mo,yi>0&&(yi=1/Math.sqrt(yi),Zo*=yi,is*=yi,mo*=yi),Te[0]=Zo,Te[1]=is,Te[2]=mo,Te[3]=0,Te[4]=oi*mo-ni*is,Te[5]=ni*Zo-aa*mo,Te[6]=aa*is-oi*Zo,Te[7]=0,Te[8]=aa,Te[9]=oi,Te[10]=ni,Te[11]=0,Te[12]=tn,Te[13]=Pt,Te[14]=on,Te[15]=1,Te}function An(Te){return"mat4("+Te[0]+", "+Te[1]+", "+Te[2]+", "+Te[3]+", "+Te[4]+", "+Te[5]+", "+Te[6]+", "+Te[7]+", "+Te[8]+", "+Te[9]+", "+Te[10]+", "+Te[11]+", "+Te[12]+", "+Te[13]+", "+Te[14]+", "+Te[15]+")"}function En(Te){return Math.hypot(Te[0],Te[1],Te[2],Te[3],Te[4],Te[5],Te[6],Te[7],Te[8],Te[9],Te[10],Te[11],Te[12],Te[13],Te[14],Te[15])}function Gn(Te,_t,Vn){return Te[0]=_t[0]+Vn[0],Te[1]=_t[1]+Vn[1],Te[2]=_t[2]+Vn[2],Te[3]=_t[3]+Vn[3],Te[4]=_t[4]+Vn[4],Te[5]=_t[5]+Vn[5],Te[6]=_t[6]+Vn[6],Te[7]=_t[7]+Vn[7],Te[8]=_t[8]+Vn[8],Te[9]=_t[9]+Vn[9],Te[10]=_t[10]+Vn[10],Te[11]=_t[11]+Vn[11],Te[12]=_t[12]+Vn[12],Te[13]=_t[13]+Vn[13],Te[14]=_t[14]+Vn[14],Te[15]=_t[15]+Vn[15],Te}function Bn(Te,_t,Vn){return Te[0]=_t[0]-Vn[0],Te[1]=_t[1]-Vn[1],Te[2]=_t[2]-Vn[2],Te[3]=_t[3]-Vn[3],Te[4]=_t[4]-Vn[4],Te[5]=_t[5]-Vn[5],Te[6]=_t[6]-Vn[6],Te[7]=_t[7]-Vn[7],Te[8]=_t[8]-Vn[8],Te[9]=_t[9]-Vn[9],Te[10]=_t[10]-Vn[10],Te[11]=_t[11]-Vn[11],Te[12]=_t[12]-Vn[12],Te[13]=_t[13]-Vn[13],Te[14]=_t[14]-Vn[14],Te[15]=_t[15]-Vn[15],Te}function pr(Te,_t,Vn){return Te[0]=_t[0]*Vn,Te[1]=_t[1]*Vn,Te[2]=_t[2]*Vn,Te[3]=_t[3]*Vn,Te[4]=_t[4]*Vn,Te[5]=_t[5]*Vn,Te[6]=_t[6]*Vn,Te[7]=_t[7]*Vn,Te[8]=_t[8]*Vn,Te[9]=_t[9]*Vn,Te[10]=_t[10]*Vn,Te[11]=_t[11]*Vn,Te[12]=_t[12]*Vn,Te[13]=_t[13]*Vn,Te[14]=_t[14]*Vn,Te[15]=_t[15]*Vn,Te}function _r(Te,_t,Vn,br){return Te[0]=_t[0]+Vn[0]*br,Te[1]=_t[1]+Vn[1]*br,Te[2]=_t[2]+Vn[2]*br,Te[3]=_t[3]+Vn[3]*br,Te[4]=_t[4]+Vn[4]*br,Te[5]=_t[5]+Vn[5]*br,Te[6]=_t[6]+Vn[6]*br,Te[7]=_t[7]+Vn[7]*br,Te[8]=_t[8]+Vn[8]*br,Te[9]=_t[9]+Vn[9]*br,Te[10]=_t[10]+Vn[10]*br,Te[11]=_t[11]+Vn[11]*br,Te[12]=_t[12]+Vn[12]*br,Te[13]=_t[13]+Vn[13]*br,Te[14]=_t[14]+Vn[14]*br,Te[15]=_t[15]+Vn[15]*br,Te}function na(Te,_t){return Te[0]===_t[0]&&Te[1]===_t[1]&&Te[2]===_t[2]&&Te[3]===_t[3]&&Te[4]===_t[4]&&Te[5]===_t[5]&&Te[6]===_t[6]&&Te[7]===_t[7]&&Te[8]===_t[8]&&Te[9]===_t[9]&&Te[10]===_t[10]&&Te[11]===_t[11]&&Te[12]===_t[12]&&Te[13]===_t[13]&&Te[14]===_t[14]&&Te[15]===_t[15]}function $n(Te,_t){var Vn=Te[0],br=Te[1],tn=Te[2],Pt=Te[3],on=Te[4],_n=Te[5],ir=Te[6],xr=Te[7],aa=Te[8],oi=Te[9],ni=Te[10],yi=Te[11],Zo=Te[12],is=Te[13],mo=Te[14],Ml=Te[15],yc=_t[0],oa=_t[1],sl=_t[2],fl=_t[3],bc=_t[4],Rf=_t[5],Ms=_t[6],ff=_t[7],Df=_t[8],Ff=_t[9],Kf=_t[10],xf=_t[11],Sc=_t[12],Wu=_t[13],Du=_t[14],Gd=_t[15];return Math.abs(Vn-yc)<=m.EPSILON*Math.max(1,Math.abs(Vn),Math.abs(yc))&&Math.abs(br-oa)<=m.EPSILON*Math.max(1,Math.abs(br),Math.abs(oa))&&Math.abs(tn-sl)<=m.EPSILON*Math.max(1,Math.abs(tn),Math.abs(sl))&&Math.abs(Pt-fl)<=m.EPSILON*Math.max(1,Math.abs(Pt),Math.abs(fl))&&Math.abs(on-bc)<=m.EPSILON*Math.max(1,Math.abs(on),Math.abs(bc))&&Math.abs(_n-Rf)<=m.EPSILON*Math.max(1,Math.abs(_n),Math.abs(Rf))&&Math.abs(ir-Ms)<=m.EPSILON*Math.max(1,Math.abs(ir),Math.abs(Ms))&&Math.abs(xr-ff)<=m.EPSILON*Math.max(1,Math.abs(xr),Math.abs(ff))&&Math.abs(aa-Df)<=m.EPSILON*Math.max(1,Math.abs(aa),Math.abs(Df))&&Math.abs(oi-Ff)<=m.EPSILON*Math.max(1,Math.abs(oi),Math.abs(Ff))&&Math.abs(ni-Kf)<=m.EPSILON*Math.max(1,Math.abs(ni),Math.abs(Kf))&&Math.abs(yi-xf)<=m.EPSILON*Math.max(1,Math.abs(yi),Math.abs(xf))&&Math.abs(Zo-Sc)<=m.EPSILON*Math.max(1,Math.abs(Zo),Math.abs(Sc))&&Math.abs(is-Wu)<=m.EPSILON*Math.max(1,Math.abs(is),Math.abs(Wu))&&Math.abs(mo-Du)<=m.EPSILON*Math.max(1,Math.abs(mo),Math.abs(Du))&&Math.abs(Ml-Gd)<=m.EPSILON*Math.max(1,Math.abs(Ml),Math.abs(Gd))}var qr=ot,Jr=Bn,Aa=o(84039);function ya(){var Te=new m.ARRAY_TYPE(4);return m.ARRAY_TYPE!=Float32Array&&(Te[0]=0,Te[1]=0,Te[2]=0,Te[3]=0),Te}function $t(Te){var _t=new m.ARRAY_TYPE(4);return _t[0]=Te[0],_t[1]=Te[1],_t[2]=Te[2],_t[3]=Te[3],_t}function wn(Te,_t,Vn,br){var tn=new m.ARRAY_TYPE(4);return tn[0]=Te,tn[1]=_t,tn[2]=Vn,tn[3]=br,tn}function Fn(Te,_t){return Te[0]=_t[0],Te[1]=_t[1],Te[2]=_t[2],Te[3]=_t[3],Te}function Or(Te,_t,Vn,br,tn){return Te[0]=_t,Te[1]=Vn,Te[2]=br,Te[3]=tn,Te}function vr(Te,_t,Vn){return Te[0]=_t[0]+Vn[0],Te[1]=_t[1]+Vn[1],Te[2]=_t[2]+Vn[2],Te[3]=_t[3]+Vn[3],Te}function Ur(Te,_t,Vn){return Te[0]=_t[0]-Vn[0],Te[1]=_t[1]-Vn[1],Te[2]=_t[2]-Vn[2],Te[3]=_t[3]-Vn[3],Te}function Zr(Te,_t,Vn){return Te[0]=_t[0]*Vn[0],Te[1]=_t[1]*Vn[1],Te[2]=_t[2]*Vn[2],Te[3]=_t[3]*Vn[3],Te}function Kr(Te,_t,Vn){return Te[0]=_t[0]/Vn[0],Te[1]=_t[1]/Vn[1],Te[2]=_t[2]/Vn[2],Te[3]=_t[3]/Vn[3],Te}function ba(Te,_t){return Te[0]=Math.ceil(_t[0]),Te[1]=Math.ceil(_t[1]),Te[2]=Math.ceil(_t[2]),Te[3]=Math.ceil(_t[3]),Te}function Ri(Te,_t){return Te[0]=Math.floor(_t[0]),Te[1]=Math.floor(_t[1]),Te[2]=Math.floor(_t[2]),Te[3]=Math.floor(_t[3]),Te}function Ea(Te,_t,Vn){return Te[0]=Math.min(_t[0],Vn[0]),Te[1]=Math.min(_t[1],Vn[1]),Te[2]=Math.min(_t[2],Vn[2]),Te[3]=Math.min(_t[3],Vn[3]),Te}function Pi(Te,_t,Vn){return Te[0]=Math.max(_t[0],Vn[0]),Te[1]=Math.max(_t[1],Vn[1]),Te[2]=Math.max(_t[2],Vn[2]),Te[3]=Math.max(_t[3],Vn[3]),Te}function rs(Te,_t){return Te[0]=Math.round(_t[0]),Te[1]=Math.round(_t[1]),Te[2]=Math.round(_t[2]),Te[3]=Math.round(_t[3]),Te}function Ui(Te,_t,Vn){return Te[0]=_t[0]*Vn,Te[1]=_t[1]*Vn,Te[2]=_t[2]*Vn,Te[3]=_t[3]*Vn,Te}function Cn(Te,_t,Vn,br){return Te[0]=_t[0]+Vn[0]*br,Te[1]=_t[1]+Vn[1]*br,Te[2]=_t[2]+Vn[2]*br,Te[3]=_t[3]+Vn[3]*br,Te}function Kn(Te,_t){var Vn=_t[0]-Te[0],br=_t[1]-Te[1],tn=_t[2]-Te[2],Pt=_t[3]-Te[3];return Math.hypot(Vn,br,tn,Pt)}function Pn(Te,_t){var Vn=_t[0]-Te[0],br=_t[1]-Te[1],tn=_t[2]-Te[2],Pt=_t[3]-Te[3];return Vn*Vn+br*br+tn*tn+Pt*Pt}function At(Te){var _t=Te[0],Vn=Te[1],br=Te[2],tn=Te[3];return Math.hypot(_t,Vn,br,tn)}function ar(Te){var _t=Te[0],Vn=Te[1],br=Te[2],tn=Te[3];return _t*_t+Vn*Vn+br*br+tn*tn}function ta(Te,_t){return Te[0]=-_t[0],Te[1]=-_t[1],Te[2]=-_t[2],Te[3]=-_t[3],Te}function Yn(Te,_t){return Te[0]=1/_t[0],Te[1]=1/_t[1],Te[2]=1/_t[2],Te[3]=1/_t[3],Te}function Qa(Te,_t){var Vn=_t[0],br=_t[1],tn=_t[2],Pt=_t[3],on=Vn*Vn+br*br+tn*tn+Pt*Pt;return on>0&&(on=1/Math.sqrt(on)),Te[0]=Vn*on,Te[1]=br*on,Te[2]=tn*on,Te[3]=Pt*on,Te}function Ua(Te,_t){return Te[0]*_t[0]+Te[1]*_t[1]+Te[2]*_t[2]+Te[3]*_t[3]}function Fi(Te,_t,Vn,br){var tn=Vn[0]*br[1]-Vn[1]*br[0],Pt=Vn[0]*br[2]-Vn[2]*br[0],on=Vn[0]*br[3]-Vn[3]*br[0],_n=Vn[1]*br[2]-Vn[2]*br[1],ir=Vn[1]*br[3]-Vn[3]*br[1],xr=Vn[2]*br[3]-Vn[3]*br[2],aa=_t[0],oi=_t[1],ni=_t[2],yi=_t[3];return Te[0]=oi*xr-ni*ir+yi*_n,Te[1]=-(aa*xr)+ni*on-yi*Pt,Te[2]=aa*ir-oi*on+yi*tn,Te[3]=-(aa*_n)+oi*Pt-ni*tn,Te}function Xa(Te,_t,Vn,br){var tn=_t[0],Pt=_t[1],on=_t[2],_n=_t[3];return Te[0]=tn+br*(Vn[0]-tn),Te[1]=Pt+br*(Vn[1]-Pt),Te[2]=on+br*(Vn[2]-on),Te[3]=_n+br*(Vn[3]-_n),Te}function $i(Te,_t){_t=_t||1;var Vn,br,tn,Pt,on,_n;do Vn=m.RANDOM()*2-1,br=m.RANDOM()*2-1,on=Vn*Vn+br*br;while(on>=1);do tn=m.RANDOM()*2-1,Pt=m.RANDOM()*2-1,_n=tn*tn+Pt*Pt;while(_n>=1);var ir=Math.sqrt((1-on)/_n);return Te[0]=_t*Vn,Te[1]=_t*br,Te[2]=_t*tn*ir,Te[3]=_t*Pt*ir,Te}function La(Te,_t,Vn){var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3];return Te[0]=Vn[0]*br+Vn[4]*tn+Vn[8]*Pt+Vn[12]*on,Te[1]=Vn[1]*br+Vn[5]*tn+Vn[9]*Pt+Vn[13]*on,Te[2]=Vn[2]*br+Vn[6]*tn+Vn[10]*Pt+Vn[14]*on,Te[3]=Vn[3]*br+Vn[7]*tn+Vn[11]*Pt+Vn[15]*on,Te}function ja(Te,_t,Vn){var br=_t[0],tn=_t[1],Pt=_t[2],on=Vn[0],_n=Vn[1],ir=Vn[2],xr=Vn[3],aa=xr*br+_n*Pt-ir*tn,oi=xr*tn+ir*br-on*Pt,ni=xr*Pt+on*tn-_n*br,yi=-on*br-_n*tn-ir*Pt;return Te[0]=aa*xr+yi*-on+oi*-ir-ni*-_n,Te[1]=oi*xr+yi*-_n+ni*-on-aa*-ir,Te[2]=ni*xr+yi*-ir+aa*-_n-oi*-on,Te[3]=_t[3],Te}function ei(Te){return Te[0]=0,Te[1]=0,Te[2]=0,Te[3]=0,Te}function Do(Te){return"vec4("+Te[0]+", "+Te[1]+", "+Te[2]+", "+Te[3]+")"}function yo(Te,_t){return Te[0]===_t[0]&&Te[1]===_t[1]&&Te[2]===_t[2]&&Te[3]===_t[3]}function to(Te,_t){var Vn=Te[0],br=Te[1],tn=Te[2],Pt=Te[3],on=_t[0],_n=_t[1],ir=_t[2],xr=_t[3];return Math.abs(Vn-on)<=m.EPSILON*Math.max(1,Math.abs(Vn),Math.abs(on))&&Math.abs(br-_n)<=m.EPSILON*Math.max(1,Math.abs(br),Math.abs(_n))&&Math.abs(tn-ir)<=m.EPSILON*Math.max(1,Math.abs(tn),Math.abs(ir))&&Math.abs(Pt-xr)<=m.EPSILON*Math.max(1,Math.abs(Pt),Math.abs(xr))}var fs=Ur,cs=Zr,Os=Kr,vl=Kn,Ar=Pn,Rn=At,Sr=ar,nn=function(){var Te=ya();return function(_t,Vn,br,tn,Pt,on){var _n,ir;for(Vn||(Vn=4),br||(br=0),tn?ir=Math.min(tn*Vn+br,_t.length):ir=_t.length,_n=br;_n<ir;_n+=Vn)Te[0]=_t[_n],Te[1]=_t[_n+1],Te[2]=_t[_n+2],Te[3]=_t[_n+3],Pt(Te,Te,on),_t[_n]=Te[0],_t[_n+1]=Te[1],_t[_n+2]=Te[2],_t[_n+3]=Te[3];return _t}}();function sn(){var Te=new m.ARRAY_TYPE(4);return m.ARRAY_TYPE!=Float32Array&&(Te[0]=0,Te[1]=0,Te[2]=0),Te[3]=1,Te}function Ot(Te){return Te[0]=0,Te[1]=0,Te[2]=0,Te[3]=1,Te}function gr(Te,_t,Vn){Vn=Vn*.5;var br=Math.sin(Vn);return Te[0]=br*_t[0],Te[1]=br*_t[1],Te[2]=br*_t[2],Te[3]=Math.cos(Vn),Te}function Gr(Te,_t){var Vn=Math.acos(_t[3])*2,br=Math.sin(Vn/2);return br>m.EPSILON?(Te[0]=_t[0]/br,Te[1]=_t[1]/br,Te[2]=_t[2]/br):(Te[0]=1,Te[1]=0,Te[2]=0),Vn}function Ln(Te,_t){var Vn=Wl(Te,_t);return Math.acos(2*Vn*Vn-1)}function Tr(Te,_t,Vn){var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3],_n=Vn[0],ir=Vn[1],xr=Vn[2],aa=Vn[3];return Te[0]=br*aa+on*_n+tn*xr-Pt*ir,Te[1]=tn*aa+on*ir+Pt*_n-br*xr,Te[2]=Pt*aa+on*xr+br*ir-tn*_n,Te[3]=on*aa-br*_n-tn*ir-Pt*xr,Te}function Dn(Te,_t,Vn){Vn*=.5;var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3],_n=Math.sin(Vn),ir=Math.cos(Vn);return Te[0]=br*ir+on*_n,Te[1]=tn*ir+Pt*_n,Te[2]=Pt*ir-tn*_n,Te[3]=on*ir-br*_n,Te}function Pr(Te,_t,Vn){Vn*=.5;var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3],_n=Math.sin(Vn),ir=Math.cos(Vn);return Te[0]=br*ir-Pt*_n,Te[1]=tn*ir+on*_n,Te[2]=Pt*ir+br*_n,Te[3]=on*ir-tn*_n,Te}function fa(Te,_t,Vn){Vn*=.5;var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3],_n=Math.sin(Vn),ir=Math.cos(Vn);return Te[0]=br*ir+tn*_n,Te[1]=tn*ir-br*_n,Te[2]=Pt*ir+on*_n,Te[3]=on*ir-Pt*_n,Te}function ka(Te,_t){var Vn=_t[0],br=_t[1],tn=_t[2];return Te[0]=Vn,Te[1]=br,Te[2]=tn,Te[3]=Math.sqrt(Math.abs(1-Vn*Vn-br*br-tn*tn)),Te}function Li(Te,_t){var Vn=_t[0],br=_t[1],tn=_t[2],Pt=_t[3],on=Math.sqrt(Vn*Vn+br*br+tn*tn),_n=Math.exp(Pt),ir=on>0?_n*Math.sin(on)/on:0;return Te[0]=Vn*ir,Te[1]=br*ir,Te[2]=tn*ir,Te[3]=_n*Math.cos(on),Te}function zi(Te,_t){var Vn=_t[0],br=_t[1],tn=_t[2],Pt=_t[3],on=Math.sqrt(Vn*Vn+br*br+tn*tn),_n=on>0?Math.atan2(on,Pt)/on:0;return Te[0]=Vn*_n,Te[1]=br*_n,Te[2]=tn*_n,Te[3]=.5*Math.log(Vn*Vn+br*br+tn*tn+Pt*Pt),Te}function Mo(Te,_t,Vn){return zi(Te,_t),xl(Te,Te,Vn),Li(Te,Te),Te}function Za(Te,_t,Vn,br){var tn=_t[0],Pt=_t[1],on=_t[2],_n=_t[3],ir=Vn[0],xr=Vn[1],aa=Vn[2],oi=Vn[3],ni,yi,Zo,is,mo;return yi=tn*ir+Pt*xr+on*aa+_n*oi,yi<0&&(yi=-yi,ir=-ir,xr=-xr,aa=-aa,oi=-oi),1-yi>m.EPSILON?(ni=Math.acos(yi),Zo=Math.sin(ni),is=Math.sin((1-br)*ni)/Zo,mo=Math.sin(br*ni)/Zo):(is=1-br,mo=br),Te[0]=is*tn+mo*ir,Te[1]=is*Pt+mo*xr,Te[2]=is*on+mo*aa,Te[3]=is*_n+mo*oi,Te}function ao(Te){var _t=m.RANDOM(),Vn=m.RANDOM(),br=m.RANDOM(),tn=Math.sqrt(1-_t),Pt=Math.sqrt(_t);return Te[0]=tn*Math.sin(2*Math.PI*Vn),Te[1]=tn*Math.cos(2*Math.PI*Vn),Te[2]=Pt*Math.sin(2*Math.PI*br),Te[3]=Pt*Math.cos(2*Math.PI*br),Te}function Mi(Te,_t){var Vn=_t[0],br=_t[1],tn=_t[2],Pt=_t[3],on=Vn*Vn+br*br+tn*tn+Pt*Pt,_n=on?1/on:0;return Te[0]=-Vn*_n,Te[1]=-br*_n,Te[2]=-tn*_n,Te[3]=Pt*_n,Te}function Eo(Te,_t){return Te[0]=-_t[0],Te[1]=-_t[1],Te[2]=-_t[2],Te[3]=_t[3],Te}function Xi(Te,_t){var Vn=_t[0]+_t[4]+_t[8],br;if(Vn>0)br=Math.sqrt(Vn+1),Te[3]=.5*br,br=.5/br,Te[0]=(_t[5]-_t[7])*br,Te[1]=(_t[6]-_t[2])*br,Te[2]=(_t[1]-_t[3])*br;else{var tn=0;_t[4]>_t[0]&&(tn=1),_t[8]>_t[tn*3+tn]&&(tn=2);var Pt=(tn+1)%3,on=(tn+2)%3;br=Math.sqrt(_t[tn*3+tn]-_t[Pt*3+Pt]-_t[on*3+on]+1),Te[tn]=.5*br,br=.5/br,Te[3]=(_t[Pt*3+on]-_t[on*3+Pt])*br,Te[Pt]=(_t[Pt*3+tn]+_t[tn*3+Pt])*br,Te[on]=(_t[on*3+tn]+_t[tn*3+on])*br}return Te}function Bo(Te,_t,Vn,br){var tn=.5*Math.PI/180;_t*=tn,Vn*=tn,br*=tn;var Pt=Math.sin(_t),on=Math.cos(_t),_n=Math.sin(Vn),ir=Math.cos(Vn),xr=Math.sin(br),aa=Math.cos(br);return Te[0]=Pt*ir*aa-on*_n*xr,Te[1]=on*_n*aa+Pt*ir*xr,Te[2]=on*ir*xr-Pt*_n*aa,Te[3]=on*ir*aa+Pt*_n*xr,Te}function ol(Te){return"quat("+Te[0]+", "+Te[1]+", "+Te[2]+", "+Te[3]+")"}var Il=$t,ms=wn,mc=Fn,Ys=Or,hl=vr,Rs=Tr,xl=Ui,Wl=Ua,_l=Xa,Ls=At,zn=Ls,Dr=ar,Hr=Dr,_a=Qa,Ti=yo,Ci=to,da=function(){var Te=Aa.create(),_t=Aa.fromValues(1,0,0),Vn=Aa.fromValues(0,1,0);return function(br,tn,Pt){var on=Aa.dot(tn,Pt);return on<-.999999?(Aa.cross(Te,_t,tn),Aa.len(Te)<1e-6&&Aa.cross(Te,Vn,tn),Aa.normalize(Te,Te),gr(br,Te,Math.PI),br):on>.999999?(br[0]=0,br[1]=0,br[2]=0,br[3]=1,br):(Aa.cross(Te,tn,Pt),br[0]=Te[0],br[1]=Te[1],br[2]=Te[2],br[3]=1+on,_a(br,br))}}(),Da=function(){var Te=sn(),_t=sn();return function(Vn,br,tn,Pt,on,_n){return Za(Te,br,on,_n),Za(_t,tn,Pt,_n),Za(Vn,Te,_t,2*_n*(1-_n)),Vn}}(),mi=function(){var Te=jt.create();return function(_t,Vn,br,tn){return Te[0]=br[0],Te[3]=br[1],Te[6]=br[2],Te[1]=tn[0],Te[4]=tn[1],Te[7]=tn[2],Te[2]=-Vn[0],Te[5]=-Vn[1],Te[8]=-Vn[2],_a(_t,Xi(_t,Te))}}();function Ho(){var Te=new m.ARRAY_TYPE(8);return m.ARRAY_TYPE!=Float32Array&&(Te[0]=0,Te[1]=0,Te[2]=0,Te[4]=0,Te[5]=0,Te[6]=0,Te[7]=0),Te[3]=1,Te}function al(Te){var _t=new m.ARRAY_TYPE(8);return _t[0]=Te[0],_t[1]=Te[1],_t[2]=Te[2],_t[3]=Te[3],_t[4]=Te[4],_t[5]=Te[5],_t[6]=Te[6],_t[7]=Te[7],_t}function ml(Te,_t,Vn,br,tn,Pt,on,_n){var ir=new m.ARRAY_TYPE(8);return ir[0]=Te,ir[1]=_t,ir[2]=Vn,ir[3]=br,ir[4]=tn,ir[5]=Pt,ir[6]=on,ir[7]=_n,ir}function Xs(Te,_t,Vn,br,tn,Pt,on){var _n=new m.ARRAY_TYPE(8);_n[0]=Te,_n[1]=_t,_n[2]=Vn,_n[3]=br;var ir=tn*.5,xr=Pt*.5,aa=on*.5;return _n[4]=ir*br+xr*Vn-aa*_t,_n[5]=xr*br+aa*Te-ir*Vn,_n[6]=aa*br+ir*_t-xr*Te,_n[7]=-ir*Te-xr*_t-aa*Vn,_n}function Ps(Te,_t,Vn){var br=Vn[0]*.5,tn=Vn[1]*.5,Pt=Vn[2]*.5,on=_t[0],_n=_t[1],ir=_t[2],xr=_t[3];return Te[0]=on,Te[1]=_n,Te[2]=ir,Te[3]=xr,Te[4]=br*xr+tn*ir-Pt*_n,Te[5]=tn*xr+Pt*on-br*ir,Te[6]=Pt*xr+br*_n-tn*on,Te[7]=-br*on-tn*_n-Pt*ir,Te}function dl(Te,_t){return Te[0]=0,Te[1]=0,Te[2]=0,Te[3]=1,Te[4]=_t[0]*.5,Te[5]=_t[1]*.5,Te[6]=_t[2]*.5,Te[7]=0,Te}function ql(Te,_t){return Te[0]=_t[0],Te[1]=_t[1],Te[2]=_t[2],Te[3]=_t[3],Te[4]=0,Te[5]=0,Te[6]=0,Te[7]=0,Te}function Dc(Te,_t){var Vn=sn();We(Vn,_t);var br=new m.ARRAY_TYPE(3);return ut(br,_t),Ps(Te,Vn,br),Te}function Jl(Te,_t){return Te[0]=_t[0],Te[1]=_t[1],Te[2]=_t[2],Te[3]=_t[3],Te[4]=_t[4],Te[5]=_t[5],Te[6]=_t[6],Te[7]=_t[7],Te}function oc(Te){return Te[0]=0,Te[1]=0,Te[2]=0,Te[3]=1,Te[4]=0,Te[5]=0,Te[6]=0,Te[7]=0,Te}function xu(Te,_t,Vn,br,tn,Pt,on,_n,ir){return Te[0]=_t,Te[1]=Vn,Te[2]=br,Te[3]=tn,Te[4]=Pt,Te[5]=on,Te[6]=_n,Te[7]=ir,Te}var yf=mc;function ku(Te,_t){return Te[0]=_t[4],Te[1]=_t[5],Te[2]=_t[6],Te[3]=_t[7],Te}var Zc=mc;function Zu(Te,_t){return Te[4]=_t[0],Te[5]=_t[1],Te[6]=_t[2],Te[7]=_t[3],Te}function Fc(Te,_t){var Vn=_t[4],br=_t[5],tn=_t[6],Pt=_t[7],on=-_t[0],_n=-_t[1],ir=-_t[2],xr=_t[3];return Te[0]=(Vn*xr+Pt*on+br*ir-tn*_n)*2,Te[1]=(br*xr+Pt*_n+tn*on-Vn*ir)*2,Te[2]=(tn*xr+Pt*ir+Vn*_n-br*on)*2,Te}function Hc(Te,_t,Vn){var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3],_n=Vn[0]*.5,ir=Vn[1]*.5,xr=Vn[2]*.5,aa=_t[4],oi=_t[5],ni=_t[6],yi=_t[7];return Te[0]=br,Te[1]=tn,Te[2]=Pt,Te[3]=on,Te[4]=on*_n+tn*xr-Pt*ir+aa,Te[5]=on*ir+Pt*_n-br*xr+oi,Te[6]=on*xr+br*ir-tn*_n+ni,Te[7]=-br*_n-tn*ir-Pt*xr+yi,Te}function Vu(Te,_t,Vn){var br=-_t[0],tn=-_t[1],Pt=-_t[2],on=_t[3],_n=_t[4],ir=_t[5],xr=_t[6],aa=_t[7],oi=_n*on+aa*br+ir*Pt-xr*tn,ni=ir*on+aa*tn+xr*br-_n*Pt,yi=xr*on+aa*Pt+_n*tn-ir*br,Zo=aa*on-_n*br-ir*tn-xr*Pt;return Dn(Te,_t,Vn),br=Te[0],tn=Te[1],Pt=Te[2],on=Te[3],Te[4]=oi*on+Zo*br+ni*Pt-yi*tn,Te[5]=ni*on+Zo*tn+yi*br-oi*Pt,Te[6]=yi*on+Zo*Pt+oi*tn-ni*br,Te[7]=Zo*on-oi*br-ni*tn-yi*Pt,Te}function ws(Te,_t,Vn){var br=-_t[0],tn=-_t[1],Pt=-_t[2],on=_t[3],_n=_t[4],ir=_t[5],xr=_t[6],aa=_t[7],oi=_n*on+aa*br+ir*Pt-xr*tn,ni=ir*on+aa*tn+xr*br-_n*Pt,yi=xr*on+aa*Pt+_n*tn-ir*br,Zo=aa*on-_n*br-ir*tn-xr*Pt;return Pr(Te,_t,Vn),br=Te[0],tn=Te[1],Pt=Te[2],on=Te[3],Te[4]=oi*on+Zo*br+ni*Pt-yi*tn,Te[5]=ni*on+Zo*tn+yi*br-oi*Pt,Te[6]=yi*on+Zo*Pt+oi*tn-ni*br,Te[7]=Zo*on-oi*br-ni*tn-yi*Pt,Te}function fc(Te,_t,Vn){var br=-_t[0],tn=-_t[1],Pt=-_t[2],on=_t[3],_n=_t[4],ir=_t[5],xr=_t[6],aa=_t[7],oi=_n*on+aa*br+ir*Pt-xr*tn,ni=ir*on+aa*tn+xr*br-_n*Pt,yi=xr*on+aa*Pt+_n*tn-ir*br,Zo=aa*on-_n*br-ir*tn-xr*Pt;return fa(Te,_t,Vn),br=Te[0],tn=Te[1],Pt=Te[2],on=Te[3],Te[4]=oi*on+Zo*br+ni*Pt-yi*tn,Te[5]=ni*on+Zo*tn+yi*br-oi*Pt,Te[6]=yi*on+Zo*Pt+oi*tn-ni*br,Te[7]=Zo*on-oi*br-ni*tn-yi*Pt,Te}function Tc(Te,_t,Vn){var br=Vn[0],tn=Vn[1],Pt=Vn[2],on=Vn[3],_n=_t[0],ir=_t[1],xr=_t[2],aa=_t[3];return Te[0]=_n*on+aa*br+ir*Pt-xr*tn,Te[1]=ir*on+aa*tn+xr*br-_n*Pt,Te[2]=xr*on+aa*Pt+_n*tn-ir*br,Te[3]=aa*on-_n*br-ir*tn-xr*Pt,_n=_t[4],ir=_t[5],xr=_t[6],aa=_t[7],Te[4]=_n*on+aa*br+ir*Pt-xr*tn,Te[5]=ir*on+aa*tn+xr*br-_n*Pt,Te[6]=xr*on+aa*Pt+_n*tn-ir*br,Te[7]=aa*on-_n*br-ir*tn-xr*Pt,Te}function jc(Te,_t,Vn){var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3],_n=Vn[0],ir=Vn[1],xr=Vn[2],aa=Vn[3];return Te[0]=br*aa+on*_n+tn*xr-Pt*ir,Te[1]=tn*aa+on*ir+Pt*_n-br*xr,Te[2]=Pt*aa+on*xr+br*ir-tn*_n,Te[3]=on*aa-br*_n-tn*ir-Pt*xr,_n=Vn[4],ir=Vn[5],xr=Vn[6],aa=Vn[7],Te[4]=br*aa+on*_n+tn*xr-Pt*ir,Te[5]=tn*aa+on*ir+Pt*_n-br*xr,Te[6]=Pt*aa+on*xr+br*ir-tn*_n,Te[7]=on*aa-br*_n-tn*ir-Pt*xr,Te}function lu(Te,_t,Vn,br){if(Math.abs(br)<m.EPSILON)return Jl(Te,_t);var tn=Math.hypot(Vn[0],Vn[1],Vn[2]);br=br*.5;var Pt=Math.sin(br),on=Pt*Vn[0]/tn,_n=Pt*Vn[1]/tn,ir=Pt*Vn[2]/tn,xr=Math.cos(br),aa=_t[0],oi=_t[1],ni=_t[2],yi=_t[3];Te[0]=aa*xr+yi*on+oi*ir-ni*_n,Te[1]=oi*xr+yi*_n+ni*on-aa*ir,Te[2]=ni*xr+yi*ir+aa*_n-oi*on,Te[3]=yi*xr-aa*on-oi*_n-ni*ir;var Zo=_t[4],is=_t[5],mo=_t[6],Ml=_t[7];return Te[4]=Zo*xr+Ml*on+is*ir-mo*_n,Te[5]=is*xr+Ml*_n+mo*on-Zo*ir,Te[6]=mo*xr+Ml*ir+Zo*_n-is*on,Te[7]=Ml*xr-Zo*on-is*_n-mo*ir,Te}function hu(Te,_t,Vn){return Te[0]=_t[0]+Vn[0],Te[1]=_t[1]+Vn[1],Te[2]=_t[2]+Vn[2],Te[3]=_t[3]+Vn[3],Te[4]=_t[4]+Vn[4],Te[5]=_t[5]+Vn[5],Te[6]=_t[6]+Vn[6],Te[7]=_t[7]+Vn[7],Te}function of(Te,_t,Vn){var br=_t[0],tn=_t[1],Pt=_t[2],on=_t[3],_n=Vn[4],ir=Vn[5],xr=Vn[6],aa=Vn[7],oi=_t[4],ni=_t[5],yi=_t[6],Zo=_t[7],is=Vn[0],mo=Vn[1],Ml=Vn[2],yc=Vn[3];return Te[0]=br*yc+on*is+tn*Ml-Pt*mo,Te[1]=tn*yc+on*mo+Pt*is-br*Ml,Te[2]=Pt*yc+on*Ml+br*mo-tn*is,Te[3]=on*yc-br*is-tn*mo-Pt*Ml,Te[4]=br*aa+on*_n+tn*xr-Pt*ir+oi*yc+Zo*is+ni*Ml-yi*mo,Te[5]=tn*aa+on*ir+Pt*_n-br*xr+ni*yc+Zo*mo+yi*is-oi*Ml,Te[6]=Pt*aa+on*xr+br*ir-tn*_n+yi*yc+Zo*Ml+oi*mo-ni*is,Te[7]=on*aa-br*_n-tn*ir-Pt*xr+Zo*yc-oi*is-ni*mo-yi*Ml,Te}var uu=of;function zu(Te,_t,Vn){return Te[0]=_t[0]*Vn,Te[1]=_t[1]*Vn,Te[2]=_t[2]*Vn,Te[3]=_t[3]*Vn,Te[4]=_t[4]*Vn,Te[5]=_t[5]*Vn,Te[6]=_t[6]*Vn,Te[7]=_t[7]*Vn,Te}var cf=Wl;function bf(Te,_t,Vn,br){var tn=1-br;return cf(_t,Vn)<0&&(br=-br),Te[0]=_t[0]*tn+Vn[0]*br,Te[1]=_t[1]*tn+Vn[1]*br,Te[2]=_t[2]*tn+Vn[2]*br,Te[3]=_t[3]*tn+Vn[3]*br,Te[4]=_t[4]*tn+Vn[4]*br,Te[5]=_t[5]*tn+Vn[5]*br,Te[6]=_t[6]*tn+Vn[6]*br,Te[7]=_t[7]*tn+Vn[7]*br,Te}function Cu(Te,_t){var Vn=ed(_t);return Te[0]=-_t[0]/Vn,Te[1]=-_t[1]/Vn,Te[2]=-_t[2]/Vn,Te[3]=_t[3]/Vn,Te[4]=-_t[4]/Vn,Te[5]=-_t[5]/Vn,Te[6]=-_t[6]/Vn,Te[7]=_t[7]/Vn,Te}function rf(Te,_t){return Te[0]=-_t[0],Te[1]=-_t[1],Te[2]=-_t[2],Te[3]=_t[3],Te[4]=-_t[4],Te[5]=-_t[5],Te[6]=-_t[6],Te[7]=_t[7],Te}var Bu=Ls,Tf=Bu,ed=Dr,Fd=ed;function Pd(Te,_t){var Vn=ed(_t);if(Vn>0){Vn=Math.sqrt(Vn);var br=_t[0]/Vn,tn=_t[1]/Vn,Pt=_t[2]/Vn,on=_t[3]/Vn,_n=_t[4],ir=_t[5],xr=_t[6],aa=_t[7],oi=br*_n+tn*ir+Pt*xr+on*aa;Te[0]=br,Te[1]=tn,Te[2]=Pt,Te[3]=on,Te[4]=(_n-br*oi)/Vn,Te[5]=(ir-tn*oi)/Vn,Te[6]=(xr-Pt*oi)/Vn,Te[7]=(aa-on*oi)/Vn}return Te}function Nc(Te){return"quat2("+Te[0]+", "+Te[1]+", "+Te[2]+", "+Te[3]+", "+Te[4]+", "+Te[5]+", "+Te[6]+", "+Te[7]+")"}function eu(Te,_t){return Te[0]===_t[0]&&Te[1]===_t[1]&&Te[2]===_t[2]&&Te[3]===_t[3]&&Te[4]===_t[4]&&Te[5]===_t[5]&&Te[6]===_t[6]&&Te[7]===_t[7]}function If(Te,_t){var Vn=Te[0],br=Te[1],tn=Te[2],Pt=Te[3],on=Te[4],_n=Te[5],ir=Te[6],xr=Te[7],aa=_t[0],oi=_t[1],ni=_t[2],yi=_t[3],Zo=_t[4],is=_t[5],mo=_t[6],Ml=_t[7];return Math.abs(Vn-aa)<=m.EPSILON*Math.max(1,Math.abs(Vn),Math.abs(aa))&&Math.abs(br-oi)<=m.EPSILON*Math.max(1,Math.abs(br),Math.abs(oi))&&Math.abs(tn-ni)<=m.EPSILON*Math.max(1,Math.abs(tn),Math.abs(ni))&&Math.abs(Pt-yi)<=m.EPSILON*Math.max(1,Math.abs(Pt),Math.abs(yi))&&Math.abs(on-Zo)<=m.EPSILON*Math.max(1,Math.abs(on),Math.abs(Zo))&&Math.abs(_n-is)<=m.EPSILON*Math.max(1,Math.abs(_n),Math.abs(is))&&Math.abs(ir-mo)<=m.EPSILON*Math.max(1,Math.abs(ir),Math.abs(mo))&&Math.abs(xr-Ml)<=m.EPSILON*Math.max(1,Math.abs(xr),Math.abs(Ml))}var $f=o(66119)},16727:function(oe,N,o){"use strict";o.r(N),o.d(N,{create:function(){return g},fromMat4:function(){return A},clone:function(){return y},copy:function(){return M},fromValues:function(){return w},set:function(){return m},identity:function(){return b},transpose:function(){return v},invert:function(){return h},adjoint:function(){return d},determinant:function(){return _},multiply:function(){return p},translate:function(){return S},rotate:function(){return k},scale:function(){return O},fromTranslation:function(){return F},fromRotation:function(){return D},fromScaling:function(){return Z},fromMat2d:function(){return W},fromQuat:function(){return U},normalFromMat4:function(){return L},projection:function(){return V},str:function(){return $},frob:function(){return G},add:function(){return z},subtract:function(){return K},multiplyScalar:function(){return re},multiplyScalarAndAdd:function(){return ne},exactEquals:function(){return Q},equals:function(){return ue},mul:function(){return he},sub:function(){return Ee}});var x=o(52371);function g(){var ce=new x.ARRAY_TYPE(9);return x.ARRAY_TYPE!=Float32Array&&(ce[1]=0,ce[2]=0,ce[3]=0,ce[5]=0,ce[6]=0,ce[7]=0),ce[0]=1,ce[4]=1,ce[8]=1,ce}function A(ce,ve){return ce[0]=ve[0],ce[1]=ve[1],ce[2]=ve[2],ce[3]=ve[4],ce[4]=ve[5],ce[5]=ve[6],ce[6]=ve[8],ce[7]=ve[9],ce[8]=ve[10],ce}function y(ce){var ve=new x.ARRAY_TYPE(9);return ve[0]=ce[0],ve[1]=ce[1],ve[2]=ce[2],ve[3]=ce[3],ve[4]=ce[4],ve[5]=ce[5],ve[6]=ce[6],ve[7]=ce[7],ve[8]=ce[8],ve}function M(ce,ve){return ce[0]=ve[0],ce[1]=ve[1],ce[2]=ve[2],ce[3]=ve[3],ce[4]=ve[4],ce[5]=ve[5],ce[6]=ve[6],ce[7]=ve[7],ce[8]=ve[8],ce}function w(ce,ve,fe,we,me,Pe,pe,Ie,Je){var ke=new x.ARRAY_TYPE(9);return ke[0]=ce,ke[1]=ve,ke[2]=fe,ke[3]=we,ke[4]=me,ke[5]=Pe,ke[6]=pe,ke[7]=Ie,ke[8]=Je,ke}function m(ce,ve,fe,we,me,Pe,pe,Ie,Je,ke){return ce[0]=ve,ce[1]=fe,ce[2]=we,ce[3]=me,ce[4]=Pe,ce[5]=pe,ce[6]=Ie,ce[7]=Je,ce[8]=ke,ce}function b(ce){return ce[0]=1,ce[1]=0,ce[2]=0,ce[3]=0,ce[4]=1,ce[5]=0,ce[6]=0,ce[7]=0,ce[8]=1,ce}function v(ce,ve){if(ce===ve){var fe=ve[1],we=ve[2],me=ve[5];ce[1]=ve[3],ce[2]=ve[6],ce[3]=fe,ce[5]=ve[7],ce[6]=we,ce[7]=me}else ce[0]=ve[0],ce[1]=ve[3],ce[2]=ve[6],ce[3]=ve[1],ce[4]=ve[4],ce[5]=ve[7],ce[6]=ve[2],ce[7]=ve[5],ce[8]=ve[8];return ce}function h(ce,ve){var fe=ve[0],we=ve[1],me=ve[2],Pe=ve[3],pe=ve[4],Ie=ve[5],Je=ve[6],ke=ve[7],De=ve[8],Fe=De*pe-Ie*ke,Qe=-De*Pe+Ie*Je,qe=ke*Pe-pe*Je,et=fe*Fe+we*Qe+me*qe;return et?(et=1/et,ce[0]=Fe*et,ce[1]=(-De*we+me*ke)*et,ce[2]=(Ie*we-me*pe)*et,ce[3]=Qe*et,ce[4]=(De*fe-me*Je)*et,ce[5]=(-Ie*fe+me*Pe)*et,ce[6]=qe*et,ce[7]=(-ke*fe+we*Je)*et,ce[8]=(pe*fe-we*Pe)*et,ce):null}function d(ce,ve){var fe=ve[0],we=ve[1],me=ve[2],Pe=ve[3],pe=ve[4],Ie=ve[5],Je=ve[6],ke=ve[7],De=ve[8];return ce[0]=pe*De-Ie*ke,ce[1]=me*ke-we*De,ce[2]=we*Ie-me*pe,ce[3]=Ie*Je-Pe*De,ce[4]=fe*De-me*Je,ce[5]=me*Pe-fe*Ie,ce[6]=Pe*ke-pe*Je,ce[7]=we*Je-fe*ke,ce[8]=fe*pe-we*Pe,ce}function _(ce){var ve=ce[0],fe=ce[1],we=ce[2],me=ce[3],Pe=ce[4],pe=ce[5],Ie=ce[6],Je=ce[7],ke=ce[8];return ve*(ke*Pe-pe*Je)+fe*(-ke*me+pe*Ie)+we*(Je*me-Pe*Ie)}function p(ce,ve,fe){var we=ve[0],me=ve[1],Pe=ve[2],pe=ve[3],Ie=ve[4],Je=ve[5],ke=ve[6],De=ve[7],Fe=ve[8],Qe=fe[0],qe=fe[1],et=fe[2],dt=fe[3],Ke=fe[4],Ge=fe[5],wt=fe[6],Vt=fe[7],gt=fe[8];return ce[0]=Qe*we+qe*pe+et*ke,ce[1]=Qe*me+qe*Ie+et*De,ce[2]=Qe*Pe+qe*Je+et*Fe,ce[3]=dt*we+Ke*pe+Ge*ke,ce[4]=dt*me+Ke*Ie+Ge*De,ce[5]=dt*Pe+Ke*Je+Ge*Fe,ce[6]=wt*we+Vt*pe+gt*ke,ce[7]=wt*me+Vt*Ie+gt*De,ce[8]=wt*Pe+Vt*Je+gt*Fe,ce}function S(ce,ve,fe){var we=ve[0],me=ve[1],Pe=ve[2],pe=ve[3],Ie=ve[4],Je=ve[5],ke=ve[6],De=ve[7],Fe=ve[8],Qe=fe[0],qe=fe[1];return ce[0]=we,ce[1]=me,ce[2]=Pe,ce[3]=pe,ce[4]=Ie,ce[5]=Je,ce[6]=Qe*we+qe*pe+ke,ce[7]=Qe*me+qe*Ie+De,ce[8]=Qe*Pe+qe*Je+Fe,ce}function k(ce,ve,fe){var we=ve[0],me=ve[1],Pe=ve[2],pe=ve[3],Ie=ve[4],Je=ve[5],ke=ve[6],De=ve[7],Fe=ve[8],Qe=Math.sin(fe),qe=Math.cos(fe);return ce[0]=qe*we+Qe*pe,ce[1]=qe*me+Qe*Ie,ce[2]=qe*Pe+Qe*Je,ce[3]=qe*pe-Qe*we,ce[4]=qe*Ie-Qe*me,ce[5]=qe*Je-Qe*Pe,ce[6]=ke,ce[7]=De,ce[8]=Fe,ce}function O(ce,ve,fe){var we=fe[0],me=fe[1];return ce[0]=we*ve[0],ce[1]=we*ve[1],ce[2]=we*ve[2],ce[3]=me*ve[3],ce[4]=me*ve[4],ce[5]=me*ve[5],ce[6]=ve[6],ce[7]=ve[7],ce[8]=ve[8],ce}function F(ce,ve){return ce[0]=1,ce[1]=0,ce[2]=0,ce[3]=0,ce[4]=1,ce[5]=0,ce[6]=ve[0],ce[7]=ve[1],ce[8]=1,ce}function D(ce,ve){var fe=Math.sin(ve),we=Math.cos(ve);return ce[0]=we,ce[1]=fe,ce[2]=0,ce[3]=-fe,ce[4]=we,ce[5]=0,ce[6]=0,ce[7]=0,ce[8]=1,ce}function Z(ce,ve){return ce[0]=ve[0],ce[1]=0,ce[2]=0,ce[3]=0,ce[4]=ve[1],ce[5]=0,ce[6]=0,ce[7]=0,ce[8]=1,ce}function W(ce,ve){return ce[0]=ve[0],ce[1]=ve[1],ce[2]=0,ce[3]=ve[2],ce[4]=ve[3],ce[5]=0,ce[6]=ve[4],ce[7]=ve[5],ce[8]=1,ce}function U(ce,ve){var fe=ve[0],we=ve[1],me=ve[2],Pe=ve[3],pe=fe+fe,Ie=we+we,Je=me+me,ke=fe*pe,De=we*pe,Fe=we*Ie,Qe=me*pe,qe=me*Ie,et=me*Je,dt=Pe*pe,Ke=Pe*Ie,Ge=Pe*Je;return ce[0]=1-Fe-et,ce[3]=De-Ge,ce[6]=Qe+Ke,ce[1]=De+Ge,ce[4]=1-ke-et,ce[7]=qe-dt,ce[2]=Qe-Ke,ce[5]=qe+dt,ce[8]=1-ke-Fe,ce}function L(ce,ve){var fe=ve[0],we=ve[1],me=ve[2],Pe=ve[3],pe=ve[4],Ie=ve[5],Je=ve[6],ke=ve[7],De=ve[8],Fe=ve[9],Qe=ve[10],qe=ve[11],et=ve[12],dt=ve[13],Ke=ve[14],Ge=ve[15],wt=fe*Ie-we*pe,Vt=fe*Je-me*pe,gt=fe*ke-Pe*pe,it=we*Je-me*Ie,Le=we*ke-Pe*Ie,ct=me*ke-Pe*Je,at=De*dt-Fe*et,jt=De*Ke-Qe*et,St=De*Ge-qe*et,fn=Fe*Ke-Qe*dt,Xt=Fe*Ge-qe*dt,Yt=Qe*Ge-qe*Ke,Rt=wt*Yt-Vt*Xt+gt*fn+it*St-Le*jt+ct*at;return Rt?(Rt=1/Rt,ce[0]=(Ie*Yt-Je*Xt+ke*fn)*Rt,ce[1]=(Je*St-pe*Yt-ke*jt)*Rt,ce[2]=(pe*Xt-Ie*St+ke*at)*Rt,ce[3]=(me*Xt-we*Yt-Pe*fn)*Rt,ce[4]=(fe*Yt-me*St+Pe*jt)*Rt,ce[5]=(we*St-fe*Xt-Pe*at)*Rt,ce[6]=(dt*ct-Ke*Le+Ge*it)*Rt,ce[7]=(Ke*gt-et*ct-Ge*Vt)*Rt,ce[8]=(et*Le-dt*gt+Ge*wt)*Rt,ce):null}function V(ce,ve,fe){return ce[0]=2/ve,ce[1]=0,ce[2]=0,ce[3]=0,ce[4]=-2/fe,ce[5]=0,ce[6]=-1,ce[7]=1,ce[8]=1,ce}function $(ce){return"mat3("+ce[0]+", "+ce[1]+", "+ce[2]+", "+ce[3]+", "+ce[4]+", "+ce[5]+", "+ce[6]+", "+ce[7]+", "+ce[8]+")"}function G(ce){return Math.hypot(ce[0],ce[1],ce[2],ce[3],ce[4],ce[5],ce[6],ce[7],ce[8])}function z(ce,ve,fe){return ce[0]=ve[0]+fe[0],ce[1]=ve[1]+fe[1],ce[2]=ve[2]+fe[2],ce[3]=ve[3]+fe[3],ce[4]=ve[4]+fe[4],ce[5]=ve[5]+fe[5],ce[6]=ve[6]+fe[6],ce[7]=ve[7]+fe[7],ce[8]=ve[8]+fe[8],ce}function K(ce,ve,fe){return ce[0]=ve[0]-fe[0],ce[1]=ve[1]-fe[1],ce[2]=ve[2]-fe[2],ce[3]=ve[3]-fe[3],ce[4]=ve[4]-fe[4],ce[5]=ve[5]-fe[5],ce[6]=ve[6]-fe[6],ce[7]=ve[7]-fe[7],ce[8]=ve[8]-fe[8],ce}function re(ce,ve,fe){return ce[0]=ve[0]*fe,ce[1]=ve[1]*fe,ce[2]=ve[2]*fe,ce[3]=ve[3]*fe,ce[4]=ve[4]*fe,ce[5]=ve[5]*fe,ce[6]=ve[6]*fe,ce[7]=ve[7]*fe,ce[8]=ve[8]*fe,ce}function ne(ce,ve,fe,we){return ce[0]=ve[0]+fe[0]*we,ce[1]=ve[1]+fe[1]*we,ce[2]=ve[2]+fe[2]*we,ce[3]=ve[3]+fe[3]*we,ce[4]=ve[4]+fe[4]*we,ce[5]=ve[5]+fe[5]*we,ce[6]=ve[6]+fe[6]*we,ce[7]=ve[7]+fe[7]*we,ce[8]=ve[8]+fe[8]*we,ce}function Q(ce,ve){return ce[0]===ve[0]&&ce[1]===ve[1]&&ce[2]===ve[2]&&ce[3]===ve[3]&&ce[4]===ve[4]&&ce[5]===ve[5]&&ce[6]===ve[6]&&ce[7]===ve[7]&&ce[8]===ve[8]}function ue(ce,ve){var fe=ce[0],we=ce[1],me=ce[2],Pe=ce[3],pe=ce[4],Ie=ce[5],Je=ce[6],ke=ce[7],De=ce[8],Fe=ve[0],Qe=ve[1],qe=ve[2],et=ve[3],dt=ve[4],Ke=ve[5],Ge=ve[6],wt=ve[7],Vt=ve[8];return Math.abs(fe-Fe)<=x.EPSILON*Math.max(1,Math.abs(fe),Math.abs(Fe))&&Math.abs(we-Qe)<=x.EPSILON*Math.max(1,Math.abs(we),Math.abs(Qe))&&Math.abs(me-qe)<=x.EPSILON*Math.max(1,Math.abs(me),Math.abs(qe))&&Math.abs(Pe-et)<=x.EPSILON*Math.max(1,Math.abs(Pe),Math.abs(et))&&Math.abs(pe-dt)<=x.EPSILON*Math.max(1,Math.abs(pe),Math.abs(dt))&&Math.abs(Ie-Ke)<=x.EPSILON*Math.max(1,Math.abs(Ie),Math.abs(Ke))&&Math.abs(Je-Ge)<=x.EPSILON*Math.max(1,Math.abs(Je),Math.abs(Ge))&&Math.abs(ke-wt)<=x.EPSILON*Math.max(1,Math.abs(ke),Math.abs(wt))&&Math.abs(De-Vt)<=x.EPSILON*Math.max(1,Math.abs(De),Math.abs(Vt))}var he=p,Ee=K},66119:function(oe,N,o){"use strict";o.r(N),o.d(N,{create:function(){return g},clone:function(){return A},fromValues:function(){return y},copy:function(){return M},set:function(){return w},add:function(){return m},subtract:function(){return b},multiply:function(){return v},divide:function(){return h},ceil:function(){return d},floor:function(){return _},min:function(){return p},max:function(){return S},round:function(){return k},scale:function(){return O},scaleAndAdd:function(){return F},distance:function(){return D},squaredDistance:function(){return Z},length:function(){return W},squaredLength:function(){return U},negate:function(){return L},inverse:function(){return V},normalize:function(){return $},dot:function(){return G},cross:function(){return z},lerp:function(){return K},random:function(){return re},transformMat2:function(){return ne},transformMat2d:function(){return Q},transformMat3:function(){return ue},transformMat4:function(){return he},rotate:function(){return Ee},angle:function(){return ce},zero:function(){return ve},str:function(){return fe},exactEquals:function(){return we},equals:function(){return me},len:function(){return Pe},sub:function(){return pe},mul:function(){return Ie},div:function(){return Je},dist:function(){return ke},sqrDist:function(){return De},sqrLen:function(){return Fe},forEach:function(){return Qe}});var x=o(52371);function g(){var qe=new x.ARRAY_TYPE(2);return x.ARRAY_TYPE!=Float32Array&&(qe[0]=0,qe[1]=0),qe}function A(qe){var et=new x.ARRAY_TYPE(2);return et[0]=qe[0],et[1]=qe[1],et}function y(qe,et){var dt=new x.ARRAY_TYPE(2);return dt[0]=qe,dt[1]=et,dt}function M(qe,et){return qe[0]=et[0],qe[1]=et[1],qe}function w(qe,et,dt){return qe[0]=et,qe[1]=dt,qe}function m(qe,et,dt){return qe[0]=et[0]+dt[0],qe[1]=et[1]+dt[1],qe}function b(qe,et,dt){return qe[0]=et[0]-dt[0],qe[1]=et[1]-dt[1],qe}function v(qe,et,dt){return qe[0]=et[0]*dt[0],qe[1]=et[1]*dt[1],qe}function h(qe,et,dt){return qe[0]=et[0]/dt[0],qe[1]=et[1]/dt[1],qe}function d(qe,et){return qe[0]=Math.ceil(et[0]),qe[1]=Math.ceil(et[1]),qe}function _(qe,et){return qe[0]=Math.floor(et[0]),qe[1]=Math.floor(et[1]),qe}function p(qe,et,dt){return qe[0]=Math.min(et[0],dt[0]),qe[1]=Math.min(et[1],dt[1]),qe}function S(qe,et,dt){return qe[0]=Math.max(et[0],dt[0]),qe[1]=Math.max(et[1],dt[1]),qe}function k(qe,et){return qe[0]=Math.round(et[0]),qe[1]=Math.round(et[1]),qe}function O(qe,et,dt){return qe[0]=et[0]*dt,qe[1]=et[1]*dt,qe}function F(qe,et,dt,Ke){return qe[0]=et[0]+dt[0]*Ke,qe[1]=et[1]+dt[1]*Ke,qe}function D(qe,et){var dt=et[0]-qe[0],Ke=et[1]-qe[1];return Math.hypot(dt,Ke)}function Z(qe,et){var dt=et[0]-qe[0],Ke=et[1]-qe[1];return dt*dt+Ke*Ke}function W(qe){var et=qe[0],dt=qe[1];return Math.hypot(et,dt)}function U(qe){var et=qe[0],dt=qe[1];return et*et+dt*dt}function L(qe,et){return qe[0]=-et[0],qe[1]=-et[1],qe}function V(qe,et){return qe[0]=1/et[0],qe[1]=1/et[1],qe}function $(qe,et){var dt=et[0],Ke=et[1],Ge=dt*dt+Ke*Ke;return Ge>0&&(Ge=1/Math.sqrt(Ge)),qe[0]=et[0]*Ge,qe[1]=et[1]*Ge,qe}function G(qe,et){return qe[0]*et[0]+qe[1]*et[1]}function z(qe,et,dt){var Ke=et[0]*dt[1]-et[1]*dt[0];return qe[0]=qe[1]=0,qe[2]=Ke,qe}function K(qe,et,dt,Ke){var Ge=et[0],wt=et[1];return qe[0]=Ge+Ke*(dt[0]-Ge),qe[1]=wt+Ke*(dt[1]-wt),qe}function re(qe,et){et=et||1;var dt=x.RANDOM()*2*Math.PI;return qe[0]=Math.cos(dt)*et,qe[1]=Math.sin(dt)*et,qe}function ne(qe,et,dt){var Ke=et[0],Ge=et[1];return qe[0]=dt[0]*Ke+dt[2]*Ge,qe[1]=dt[1]*Ke+dt[3]*Ge,qe}function Q(qe,et,dt){var Ke=et[0],Ge=et[1];return qe[0]=dt[0]*Ke+dt[2]*Ge+dt[4],qe[1]=dt[1]*Ke+dt[3]*Ge+dt[5],qe}function ue(qe,et,dt){var Ke=et[0],Ge=et[1];return qe[0]=dt[0]*Ke+dt[3]*Ge+dt[6],qe[1]=dt[1]*Ke+dt[4]*Ge+dt[7],qe}function he(qe,et,dt){var Ke=et[0],Ge=et[1];return qe[0]=dt[0]*Ke+dt[4]*Ge+dt[12],qe[1]=dt[1]*Ke+dt[5]*Ge+dt[13],qe}function Ee(qe,et,dt,Ke){var Ge=et[0]-dt[0],wt=et[1]-dt[1],Vt=Math.sin(Ke),gt=Math.cos(Ke);return qe[0]=Ge*gt-wt*Vt+dt[0],qe[1]=Ge*Vt+wt*gt+dt[1],qe}function ce(qe,et){var dt=qe[0],Ke=qe[1],Ge=et[0],wt=et[1],Vt=Math.sqrt(dt*dt+Ke*Ke)*Math.sqrt(Ge*Ge+wt*wt),gt=Vt&&(dt*Ge+Ke*wt)/Vt;return Math.acos(Math.min(Math.max(gt,-1),1))}function ve(qe){return qe[0]=0,qe[1]=0,qe}function fe(qe){return"vec2("+qe[0]+", "+qe[1]+")"}function we(qe,et){return qe[0]===et[0]&&qe[1]===et[1]}function me(qe,et){var dt=qe[0],Ke=qe[1],Ge=et[0],wt=et[1];return Math.abs(dt-Ge)<=x.EPSILON*Math.max(1,Math.abs(dt),Math.abs(Ge))&&Math.abs(Ke-wt)<=x.EPSILON*Math.max(1,Math.abs(Ke),Math.abs(wt))}var Pe=W,pe=b,Ie=v,Je=h,ke=D,De=Z,Fe=U,Qe=function(){var qe=g();return function(et,dt,Ke,Ge,wt,Vt){var gt,it;for(dt||(dt=2),Ke||(Ke=0),Ge?it=Math.min(Ge*dt+Ke,et.length):it=et.length,gt=Ke;gt<it;gt+=dt)qe[0]=et[gt],qe[1]=et[gt+1],wt(qe,qe,Vt),et[gt]=qe[0],et[gt+1]=qe[1];return et}}()},84039:function(oe,N,o){"use strict";o.r(N),o.d(N,{create:function(){return g},clone:function(){return A},length:function(){return y},fromValues:function(){return M},copy:function(){return w},set:function(){return m},add:function(){return b},subtract:function(){return v},multiply:function(){return h},divide:function(){return d},ceil:function(){return _},floor:function(){return p},min:function(){return S},max:function(){return k},round:function(){return O},scale:function(){return F},scaleAndAdd:function(){return D},distance:function(){return Z},squaredDistance:function(){return W},squaredLength:function(){return U},negate:function(){return L},inverse:function(){return V},normalize:function(){return $},dot:function(){return G},cross:function(){return z},lerp:function(){return K},hermite:function(){return re},bezier:function(){return ne},random:function(){return Q},transformMat4:function(){return ue},transformMat3:function(){return he},transformQuat:function(){return Ee},rotateX:function(){return ce},rotateY:function(){return ve},rotateZ:function(){return fe},angle:function(){return we},zero:function(){return me},str:function(){return Pe},exactEquals:function(){return pe},equals:function(){return Ie},sub:function(){return Je},mul:function(){return ke},div:function(){return De},dist:function(){return Fe},sqrDist:function(){return Qe},len:function(){return qe},sqrLen:function(){return et},forEach:function(){return dt}});var x=o(52371);function g(){var Ke=new x.ARRAY_TYPE(3);return x.ARRAY_TYPE!=Float32Array&&(Ke[0]=0,Ke[1]=0,Ke[2]=0),Ke}function A(Ke){var Ge=new x.ARRAY_TYPE(3);return Ge[0]=Ke[0],Ge[1]=Ke[1],Ge[2]=Ke[2],Ge}function y(Ke){var Ge=Ke[0],wt=Ke[1],Vt=Ke[2];return Math.hypot(Ge,wt,Vt)}function M(Ke,Ge,wt){var Vt=new x.ARRAY_TYPE(3);return Vt[0]=Ke,Vt[1]=Ge,Vt[2]=wt,Vt}function w(Ke,Ge){return Ke[0]=Ge[0],Ke[1]=Ge[1],Ke[2]=Ge[2],Ke}function m(Ke,Ge,wt,Vt){return Ke[0]=Ge,Ke[1]=wt,Ke[2]=Vt,Ke}function b(Ke,Ge,wt){return Ke[0]=Ge[0]+wt[0],Ke[1]=Ge[1]+wt[1],Ke[2]=Ge[2]+wt[2],Ke}function v(Ke,Ge,wt){return Ke[0]=Ge[0]-wt[0],Ke[1]=Ge[1]-wt[1],Ke[2]=Ge[2]-wt[2],Ke}function h(Ke,Ge,wt){return Ke[0]=Ge[0]*wt[0],Ke[1]=Ge[1]*wt[1],Ke[2]=Ge[2]*wt[2],Ke}function d(Ke,Ge,wt){return Ke[0]=Ge[0]/wt[0],Ke[1]=Ge[1]/wt[1],Ke[2]=Ge[2]/wt[2],Ke}function _(Ke,Ge){return Ke[0]=Math.ceil(Ge[0]),Ke[1]=Math.ceil(Ge[1]),Ke[2]=Math.ceil(Ge[2]),Ke}function p(Ke,Ge){return Ke[0]=Math.floor(Ge[0]),Ke[1]=Math.floor(Ge[1]),Ke[2]=Math.floor(Ge[2]),Ke}function S(Ke,Ge,wt){return Ke[0]=Math.min(Ge[0],wt[0]),Ke[1]=Math.min(Ge[1],wt[1]),Ke[2]=Math.min(Ge[2],wt[2]),Ke}function k(Ke,Ge,wt){return Ke[0]=Math.max(Ge[0],wt[0]),Ke[1]=Math.max(Ge[1],wt[1]),Ke[2]=Math.max(Ge[2],wt[2]),Ke}function O(Ke,Ge){return Ke[0]=Math.round(Ge[0]),Ke[1]=Math.round(Ge[1]),Ke[2]=Math.round(Ge[2]),Ke}function F(Ke,Ge,wt){return Ke[0]=Ge[0]*wt,Ke[1]=Ge[1]*wt,Ke[2]=Ge[2]*wt,Ke}function D(Ke,Ge,wt,Vt){return Ke[0]=Ge[0]+wt[0]*Vt,Ke[1]=Ge[1]+wt[1]*Vt,Ke[2]=Ge[2]+wt[2]*Vt,Ke}function Z(Ke,Ge){var wt=Ge[0]-Ke[0],Vt=Ge[1]-Ke[1],gt=Ge[2]-Ke[2];return Math.hypot(wt,Vt,gt)}function W(Ke,Ge){var wt=Ge[0]-Ke[0],Vt=Ge[1]-Ke[1],gt=Ge[2]-Ke[2];return wt*wt+Vt*Vt+gt*gt}function U(Ke){var Ge=Ke[0],wt=Ke[1],Vt=Ke[2];return Ge*Ge+wt*wt+Vt*Vt}function L(Ke,Ge){return Ke[0]=-Ge[0],Ke[1]=-Ge[1],Ke[2]=-Ge[2],Ke}function V(Ke,Ge){return Ke[0]=1/Ge[0],Ke[1]=1/Ge[1],Ke[2]=1/Ge[2],Ke}function $(Ke,Ge){var wt=Ge[0],Vt=Ge[1],gt=Ge[2],it=wt*wt+Vt*Vt+gt*gt;return it>0&&(it=1/Math.sqrt(it)),Ke[0]=Ge[0]*it,Ke[1]=Ge[1]*it,Ke[2]=Ge[2]*it,Ke}function G(Ke,Ge){return Ke[0]*Ge[0]+Ke[1]*Ge[1]+Ke[2]*Ge[2]}function z(Ke,Ge,wt){var Vt=Ge[0],gt=Ge[1],it=Ge[2],Le=wt[0],ct=wt[1],at=wt[2];return Ke[0]=gt*at-it*ct,Ke[1]=it*Le-Vt*at,Ke[2]=Vt*ct-gt*Le,Ke}function K(Ke,Ge,wt,Vt){var gt=Ge[0],it=Ge[1],Le=Ge[2];return Ke[0]=gt+Vt*(wt[0]-gt),Ke[1]=it+Vt*(wt[1]-it),Ke[2]=Le+Vt*(wt[2]-Le),Ke}function re(Ke,Ge,wt,Vt,gt,it){var Le=it*it,ct=Le*(2*it-3)+1,at=Le*(it-2)+it,jt=Le*(it-1),St=Le*(3-2*it);return Ke[0]=Ge[0]*ct+wt[0]*at+Vt[0]*jt+gt[0]*St,Ke[1]=Ge[1]*ct+wt[1]*at+Vt[1]*jt+gt[1]*St,Ke[2]=Ge[2]*ct+wt[2]*at+Vt[2]*jt+gt[2]*St,Ke}function ne(Ke,Ge,wt,Vt,gt,it){var Le=1-it,ct=Le*Le,at=it*it,jt=ct*Le,St=3*it*ct,fn=3*at*Le,Xt=at*it;return Ke[0]=Ge[0]*jt+wt[0]*St+Vt[0]*fn+gt[0]*Xt,Ke[1]=Ge[1]*jt+wt[1]*St+Vt[1]*fn+gt[1]*Xt,Ke[2]=Ge[2]*jt+wt[2]*St+Vt[2]*fn+gt[2]*Xt,Ke}function Q(Ke,Ge){Ge=Ge||1;var wt=x.RANDOM()*2*Math.PI,Vt=x.RANDOM()*2-1,gt=Math.sqrt(1-Vt*Vt)*Ge;return Ke[0]=Math.cos(wt)*gt,Ke[1]=Math.sin(wt)*gt,Ke[2]=Vt*Ge,Ke}function ue(Ke,Ge,wt){var Vt=Ge[0],gt=Ge[1],it=Ge[2],Le=wt[3]*Vt+wt[7]*gt+wt[11]*it+wt[15];return Le=Le||1,Ke[0]=(wt[0]*Vt+wt[4]*gt+wt[8]*it+wt[12])/Le,Ke[1]=(wt[1]*Vt+wt[5]*gt+wt[9]*it+wt[13])/Le,Ke[2]=(wt[2]*Vt+wt[6]*gt+wt[10]*it+wt[14])/Le,Ke}function he(Ke,Ge,wt){var Vt=Ge[0],gt=Ge[1],it=Ge[2];return Ke[0]=Vt*wt[0]+gt*wt[3]+it*wt[6],Ke[1]=Vt*wt[1]+gt*wt[4]+it*wt[7],Ke[2]=Vt*wt[2]+gt*wt[5]+it*wt[8],Ke}function Ee(Ke,Ge,wt){var Vt=wt[0],gt=wt[1],it=wt[2],Le=wt[3],ct=Ge[0],at=Ge[1],jt=Ge[2],St=gt*jt-it*at,fn=it*ct-Vt*jt,Xt=Vt*at-gt*ct,Yt=gt*Xt-it*fn,Rt=it*St-Vt*Xt,Lt=Vt*fn-gt*St,ze=Le*2;return St*=ze,fn*=ze,Xt*=ze,Yt*=2,Rt*=2,Lt*=2,Ke[0]=ct+St+Yt,Ke[1]=at+fn+Rt,Ke[2]=jt+Xt+Lt,Ke}function ce(Ke,Ge,wt,Vt){var gt=[],it=[];return gt[0]=Ge[0]-wt[0],gt[1]=Ge[1]-wt[1],gt[2]=Ge[2]-wt[2],it[0]=gt[0],it[1]=gt[1]*Math.cos(Vt)-gt[2]*Math.sin(Vt),it[2]=gt[1]*Math.sin(Vt)+gt[2]*Math.cos(Vt),Ke[0]=it[0]+wt[0],Ke[1]=it[1]+wt[1],Ke[2]=it[2]+wt[2],Ke}function ve(Ke,Ge,wt,Vt){var gt=[],it=[];return gt[0]=Ge[0]-wt[0],gt[1]=Ge[1]-wt[1],gt[2]=Ge[2]-wt[2],it[0]=gt[2]*Math.sin(Vt)+gt[0]*Math.cos(Vt),it[1]=gt[1],it[2]=gt[2]*Math.cos(Vt)-gt[0]*Math.sin(Vt),Ke[0]=it[0]+wt[0],Ke[1]=it[1]+wt[1],Ke[2]=it[2]+wt[2],Ke}function fe(Ke,Ge,wt,Vt){var gt=[],it=[];return gt[0]=Ge[0]-wt[0],gt[1]=Ge[1]-wt[1],gt[2]=Ge[2]-wt[2],it[0]=gt[0]*Math.cos(Vt)-gt[1]*Math.sin(Vt),it[1]=gt[0]*Math.sin(Vt)+gt[1]*Math.cos(Vt),it[2]=gt[2],Ke[0]=it[0]+wt[0],Ke[1]=it[1]+wt[1],Ke[2]=it[2]+wt[2],Ke}function we(Ke,Ge){var wt=Ke[0],Vt=Ke[1],gt=Ke[2],it=Ge[0],Le=Ge[1],ct=Ge[2],at=Math.sqrt(wt*wt+Vt*Vt+gt*gt),jt=Math.sqrt(it*it+Le*Le+ct*ct),St=at*jt,fn=St&&G(Ke,Ge)/St;return Math.acos(Math.min(Math.max(fn,-1),1))}function me(Ke){return Ke[0]=0,Ke[1]=0,Ke[2]=0,Ke}function Pe(Ke){return"vec3("+Ke[0]+", "+Ke[1]+", "+Ke[2]+")"}function pe(Ke,Ge){return Ke[0]===Ge[0]&&Ke[1]===Ge[1]&&Ke[2]===Ge[2]}function Ie(Ke,Ge){var wt=Ke[0],Vt=Ke[1],gt=Ke[2],it=Ge[0],Le=Ge[1],ct=Ge[2];return Math.abs(wt-it)<=x.EPSILON*Math.max(1,Math.abs(wt),Math.abs(it))&&Math.abs(Vt-Le)<=x.EPSILON*Math.max(1,Math.abs(Vt),Math.abs(Le))&&Math.abs(gt-ct)<=x.EPSILON*Math.max(1,Math.abs(gt),Math.abs(ct))}var Je=v,ke=h,De=d,Fe=Z,Qe=W,qe=y,et=U,dt=function(){var Ke=g();return function(Ge,wt,Vt,gt,it,Le){var ct,at;for(wt||(wt=3),Vt||(Vt=0),gt?at=Math.min(gt*wt+Vt,Ge.length):at=Ge.length,ct=Vt;ct<at;ct+=wt)Ke[0]=Ge[ct],Ke[1]=Ge[ct+1],Ke[2]=Ge[ct+2],it(Ke,Ke,Le),Ge[ct]=Ke[0],Ge[ct+1]=Ke[1],Ge[ct+2]=Ke[2];return Ge}}()},40027:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowStart:!0,gridRowEnd:!0,gridColumn:!0,gridColumnStart:!0,gridColumnEnd:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function x(M,w){return M+w.charAt(0).toUpperCase()+w.substring(1)}var g=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(M){g.forEach(function(w){o[x(w,M)]=o[M]})});var A={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},y={isUnitlessNumber:o,shorthandPropertyExpansions:A};N.default=y},5904:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var x=o(40027),g=M(x),A=o(59529),y=M(A);function M(v){return v&&v.__esModule?v:{default:v}}var w=g.default.isUnitlessNumber,m={};function b(v,h,d){var _=h==null||typeof h=="boolean"||h==="";if(_)return"";var p=isNaN(h);if(p||h===0||w.hasOwnProperty(v)&&w[v])return""+h;if(typeof h=="string"){if(!1)var S,k,O,F;h=h.trim()}return h+"px"}N.default=b},53505:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.processStyleName=void 0,N.createMarkupForStyles=$;var x=o(23520),g=d(x),A=o(5904),y=d(A),M=o(44980),w=d(M),m=o(62449),b=d(m),v=o(59529),h=d(v);function d(G){return G&&G.__esModule?G:{default:G}}var _=N.processStyleName=(0,b.default)(w.default);if(!1)var p,S,k,O,F,D,Z,W,U,L,V;function $(G,z){var K="";for(var re in G){var ne=re.indexOf("--")===0;if(!!G.hasOwnProperty(re)&&re!=="label"){var Q=G[re];Q!=null&&(ne?K+=re+":"+Q+";":(K+=_(re)+":",K+=(0,y.default)(re,Q,z)+";"))}}return K||null}},1333:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M};N.default=y;function x(M){return M==null||M===!1||(typeof M=="undefined"?"undefined":o(M))==="object"&&Object.keys(M).length===0}function g(M){if(x(M))return null;if((typeof M=="undefined"?"undefined":o(M))!=="object")return M;for(var w={},m=Object.keys(M),b=!1,v=0;v<m.length;v++){var h=M[m[v]],d=y(h);(d===null||d!==h)&&(b=!0),d!==null&&(w[m[v]]=d)}return Object.keys(w).length===0?null:b?w:M}function A(M){var w=!1,m=[];return M.forEach(function(b){var v=y(b);(v===null||v!==b)&&(w=!0),v!==null&&m.push(v)}),m.length==0?null:w?m:M}function y(M){return Array.isArray(M)?A(M):g(M)}},4361:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=o;function o(y,M){for(var w=1540483477,m=24,b=M^y.length,v=y.length,h=0;v>=4;){var d=x(y,h);d=A(d,w),d^=d>>>m,d=A(d,w),b=A(b,w),b^=d,h+=4,v-=4}switch(v){case 3:b^=g(y,h),b^=y.charCodeAt(h+2)<<16,b=A(b,w);break;case 2:b^=g(y,h),b=A(b,w);break;case 1:b^=y.charCodeAt(h),b=A(b,w);break}return b^=b>>>13,b=A(b,w),b^=b>>>15,b>>>0}function x(y,M){return y.charCodeAt(M++)+(y.charCodeAt(M++)<<8)+(y.charCodeAt(M++)<<16)+(y.charCodeAt(M)<<24)}function g(y,M){return y.charCodeAt(M++)+(y.charCodeAt(M++)<<8)}function A(y,M){y=y|0,M=M|0;var w=y&65535,m=y>>>16,b=w*M+((m*M&65535)<<16)|0;return b}},19267:function(oe,N,o){"use strict";var x;x={value:!0},x=x=x=x=x=x=x=x=x=x=N.CN=void 0,x=k,x=V,x=$,x=z,x=ne,x=Q,N.iv=St,x=rt,x=tt,x=Et,x=Jt,x=Un,x=qt,x=rn,x=cn,x=er,x=rr,x=nt,x=lr,x=Hn,x=ut,x=bt,x=We,x=be,x=Ae,x=Ue,x=$e,x=kt,x=lt,x=vt,x=Ct,x=Bt,x=mt,x=Zt,x=zt,x=ln,x=An,x=En,x=Gn,x=Bn,x=pr,x=_r,x=na,x=$n,x=qr,x=Jr,x=Aa,x=ya,x=$t,x=wn,x=Fn,x=Or,x=vr,x=Ur,x=Zr,x=Kr,x=ba,x=Ri,x=Ea,x=Pi,x=rs,x=Ui;var g=o(44547),A=d(g),y=o(49526),M=o(53505),w=o(1333),m=d(w),b=o(55923),v=o(4361),h=d(v);function d(Cn){return Cn&&Cn.__esModule?Cn:{default:Cn}}function _(Cn){if(Array.isArray(Cn)){for(var Kn=0,Pn=Array(Cn.length);Kn<Cn.length;Kn++)Pn[Kn]=Cn[Kn];return Pn}else return Array.from(Cn)}function p(Cn,Kn,Pn){return Kn in Cn?Object.defineProperty(Cn,Kn,{value:Pn,enumerable:!0,configurable:!0,writable:!0}):Cn[Kn]=Pn,Cn}var S=N.CN=new y.StyleSheet;S.inject();function k(Cn){return S.speedy(Cn)}var O=x=S.plugins=new b.PluginSet([b.prefixes,b.contentWrap,b.fallbacks]);O.media=new b.PluginSet,O.fontFace=new b.PluginSet,O.keyframes=new b.PluginSet([b.prefixes,b.fallbacks]);var F=!1,D=!1,Z=typeof window!="undefined",W=F,U=!1,L=!1;function V(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;W=!!Cn}function $(){for(var Cn=arguments.length,Kn=Array(Cn),Pn=0;Pn<Cn;Pn++)Kn[Pn]=arguments[Pn];return Kn=(0,m.default)(Kn),Kn?W?Kn.reduce(function(At,ar){return At["data-simulate-"+K(ar)]="",At},{}):(U||(console.warn("can't simulate without once calling simulations(true)"),U=!0),!F&&!D&&!L&&(console.warn("don't use simulation outside dev"),L=!0),{}):{}}var G=F;function z(Cn){G=!!Cn}function K(Cn){var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Cn.toLowerCase().replace(/[^a-z0-9]/g,Kn)}function re(Cn){var Kn=JSON.stringify(Cn),Pn=(0,h.default)(Kn).toString(36);return Cn.label&&Cn.label.length>0&&F?K(Cn.label.join("."),"-")+"-"+Pn:Pn}function ne(Cn){var Kn=Object.keys(Cn).filter(function(Pn){return Pn!=="toString"});return Kn.length!==1?!1:!!/data\-css\-([a-zA-Z0-9\-_]+)/.exec(Kn[0])}function Q(Cn){var Kn=Object.keys(Cn).filter(function(ar){return ar!=="toString"});if(Kn.length!==1)throw new Error("not a rule");var Pn=/data\-css\-([a-zA-Z0-9\-_]+)/,At=Pn.exec(Kn[0]);if(!At)throw new Error("not a rule");return At[1]}var ue=/[(),]|"(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\//g;function he(Cn){if(Cn.indexOf(",")===-1)return[Cn];for(var Kn=[],Pn=[],At=0,ar;ar=ue.exec(Cn);)switch(ar[0]){case"(":At++;break;case")":At--;break;case",":if(At)break;Kn.push(ar.index)}for(ar=Kn.length;ar--;)Pn.unshift(Cn.slice(Kn[ar]+1)),Cn=Cn.slice(0,Kn[ar]);return Pn.unshift(Cn),Pn}function Ee(Cn,Kn){if(!Cn)return Kn.replace(/\&/g,"");if(!Kn)return".css-"+Cn+",[data-css-"+Cn+"]";var Pn=he(Kn).map(function(At){return At.indexOf("&")>=0?[At.replace(/\&/mg,".css-"+Cn),At.replace(/\&/mg,"[data-css-"+Cn+"]")].join(","):".css-"+Cn+At+",[data-css-"+Cn+"]"+At}).join(",");return W&&/^\&\:/.exec(Kn)&&!/\s/.exec(Kn)&&(Pn+=",.css-"+Cn+"[data-simulate-"+K(Kn)+"],[data-css-"+Cn+"][data-simulate-"+K(Kn)+"]"),Pn}function ce(Cn){var Kn=Cn.selector,Pn=Cn.style,At=O.transform({selector:Kn,style:Pn});return At.selector+"{"+(0,M.createMarkupForStyles)(At.style)+"}"}function ve(Cn){var Kn=void 0,Pn=void 0,At=void 0,ar=void 0;return Object.keys(Cn).forEach(function(ta){ta.indexOf("&")>=0?(Pn=Pn||{},Pn[ta]=Cn[ta]):ta.indexOf("@media")===0?(At=At||{},At[ta]=ve(Cn[ta])):ta.indexOf("@supports")===0?(ar=ar||{},ar[ta]=ve(Cn[ta])):ta==="label"?Cn.label.length>0&&(Kn=Kn||{},Kn.label=G?Cn.label.join("."):""):(Kn=Kn||{},Kn[ta]=Cn[ta])}),{plain:Kn,selects:Pn,medias:At,supports:ar}}function fe(Cn,Kn){var Pn=[],At=Kn.plain,ar=Kn.selects,ta=Kn.medias,Yn=Kn.supports;return At&&Pn.push(ce({style:At,selector:Ee(Cn)})),ar&&Object.keys(ar).forEach(function(Qa){return Pn.push(ce({style:ar[Qa],selector:Ee(Cn,Qa)}))}),ta&&Object.keys(ta).forEach(function(Qa){return Pn.push(Qa+"{"+fe(Cn,ta[Qa]).join("")+"}")}),Yn&&Object.keys(Yn).forEach(function(Qa){return Pn.push(Qa+"{"+fe(Cn,Yn[Qa]).join("")+"}")}),Pn}var we=S.inserted={};function me(Cn){if(!we[Cn.id]){we[Cn.id]=!0;var Kn=ve(Cn.style),Pn=fe(Cn.id,Kn);we[Cn.id]=Z?!0:Pn,Pn.forEach(function(At){return S.insert(At)})}}var Pe=S.registered={};function pe(Cn){Pe[Cn.id]||(Pe[Cn.id]=Cn)}function Ie(Cn){if(ne(Cn)){var Kn=Pe[Q(Cn)];if(Kn==null)throw new Error("[glamor] an unexpected rule cache miss occurred. This is probably a sign of multiple glamor instances in your app. See https://github.com/threepointone/glamor/issues/79");return Kn}return Cn}var Je={};function ke(Cn){if(pe(Cn),me(Cn),Je[Cn.id])return Je[Cn.id];var Kn=p({},"data-css-"+Cn.id,G&&Cn.label||"");return Object.defineProperty(Kn,"toString",{enumerable:!1,value:function(){return"css-"+Cn.id}}),Je[Cn.id]=Kn,Kn}function De(){return console.log(this),this}function Fe(Cn){for(var Kn=[":",".","[",">"," "],Pn=!1,At=Cn.charAt(0),ar=0;ar<Kn.length;ar++)if(At===Kn[ar]){Pn=!0;break}return Pn||Cn.indexOf("&")>=0}function Qe(Cn,Kn){var Pn=he(Cn).map(function(ar){return ar.indexOf("&")>=0?ar:"&"+ar}),At=he(Kn).map(function(ar){return ar.indexOf("&")>=0?ar:"&"+ar});return At.reduce(function(ar,ta){return ar.concat(Pn.map(function(Yn){return ta.replace(/\&/g,Yn)}))},[]).join(",")}function qe(Cn,Kn){return Cn?"@media "+Cn.substring(6)+" and "+Kn.substring(6):Kn}function et(Cn){return Cn.indexOf("@media")===0}function dt(Cn){return Cn.indexOf("@supports")===0}function Ke(Cn,Kn){return Cn?"@supports "+Cn.substring(9)+" and "+Kn.substring(9):Kn}function Ge(Cn){for(var Kn=[],Pn=0;Pn<Cn.length;Pn++)Array.isArray(Cn[Pn])?Kn=Kn.concat(Ge(Cn[Pn])):Kn=Kn.concat(Cn[Pn]);return Kn}var wt={"::placeholder":["::-webkit-input-placeholder","::-moz-placeholder","::-ms-input-placeholder"],":fullscreen":[":-webkit-full-screen",":-moz-full-screen",":-ms-fullscreen"]};function Vt(Cn,Kn){var Pn=Kn.selector,At=Pn===void 0?"":Pn,ar=Kn.mq,ta=ar===void 0?"":ar,Yn=Kn.supp,Qa=Yn===void 0?"":Yn,Ua=Kn.src,Fi=Ua===void 0?{}:Ua;Array.isArray(Fi)||(Fi=[Fi]),Fi=Ge(Fi),Fi.forEach(function(Xa){if(ne(Xa)){var $i=Ie(Xa);if($i.type!=="css")throw new Error("cannot merge this rule");Xa=$i.style}Xa=(0,m.default)(Xa),Xa&&Xa.composes&&Vt(Cn,{selector:At,mq:ta,supp:Qa,src:Xa.composes}),Object.keys(Xa||{}).forEach(function(La){if(Fe(La))wt[La]&&wt[La].forEach(function(ei){return Vt(Cn,{selector:Qe(At,ei),mq:ta,supp:Qa,src:Xa[La]})}),Vt(Cn,{selector:Qe(At,La),mq:ta,supp:Qa,src:Xa[La]});else if(et(La))Vt(Cn,{selector:At,mq:qe(ta,La),supp:Qa,src:Xa[La]});else if(dt(La))Vt(Cn,{selector:At,mq:ta,supp:Ke(Qa,La),src:Xa[La]});else if(La!=="composes"){var ja=Cn;Qa&&(ja[Qa]=ja[Qa]||{},ja=ja[Qa]),ta&&(ja[ta]=ja[ta]||{},ja=ja[ta]),At&&(ja[At]=ja[At]||{},ja=ja[At]),La==="label"?G&&(Cn.label=Cn.label.concat(Xa.label)):ja[La]=Xa[La]}})})}function gt(Cn){var Kn={label:[]};Vt(Kn,{src:Cn});var Pn={id:re(Kn),style:Kn,label:G?Kn.label.join("."):"",type:"css"};return ke(Pn)}var it={};Object.defineProperty(it,"toString",{enumerable:!1,value:function(){return"css-nil"}});var Le=typeof WeakMap!="undefined"?[it,new WeakMap,new WeakMap,new WeakMap]:[it],ct=!1;function at(Cn){return function(Kn){if(Le[Kn.length]){for(var Pn=Le[Kn.length],At=0;At<Kn.length-1;)Pn.has(Kn[At])||Pn.set(Kn[At],new WeakMap),Pn=Pn.get(Kn[At]),At++;if(Pn.has(Kn[Kn.length-1])){var ar=Pn.get(Kn[At]);if(Pe[ar.toString().substring(4)])return ar}}var ta=Cn(Kn);if(Le[Kn.length]){for(var Yn=0,Qa=Le[Kn.length];Yn<Kn.length-1;)Qa=Qa.get(Kn[Yn]),Yn++;try{Qa.set(Kn[Yn],ta)}catch(Fi){if(F&&!ct){var Ua;ct=!0,(Ua=console).warn.apply(Ua,["failed setting the WeakMap cache for args:"].concat(_(Kn))),console.warn("this should NOT happen, please file a bug on the github repo.")}}}return ta}}var jt=typeof WeakMap!="undefined"?at(gt):gt;function St(){for(var Cn=arguments.length,Kn=Array(Cn),Pn=0;Pn<Cn;Pn++)Kn[Pn]=arguments[Pn];if(Kn[0]&&Kn[0].length&&Kn[0].raw)throw new Error("you forgot to include glamor/babel in your babel plugins.");return Kn=(0,m.default)(Kn),Kn?jt(Kn):it}St.insert=function(Cn){var Kn={id:re(Cn),css:Cn,type:"raw"};pe(Kn),we[Kn.id]||(S.insert(Kn.css),we[Kn.id]=Z?!0:[Kn.css])};var fn=x=St.insert;St.global=function(Cn,Kn){if(Kn=(0,m.default)(Kn),Kn)return St.insert(ce({selector:Cn,style:Kn}))};var Xt=x=St.global;function Yt(Cn){if(!we[Cn.id]){var Kn=Object.keys(Cn.keyframes).map(function(At){var ar=O.keyframes.transform({id:Cn.id,name:At,style:Cn.keyframes[At]});return ar.name+"{"+(0,M.createMarkupForStyles)(ar.style)+"}"}).join(""),Pn=["-webkit-","-moz-","-o-",""].map(function(At){return"@"+At+"keyframes "+(Cn.name+"_"+Cn.id)+"{"+Kn+"}"});Pn.forEach(function(At){return S.insert(At)}),we[Cn.id]=Z?!0:Pn}}St.keyframes=function(Cn,Kn){Kn||(Kn=Cn,Cn="animation"),Kn=(0,m.default)(Kn)||{};var Pn={id:re({name:Cn,kfs:Kn}),type:"keyframes",name:Cn,keyframes:Kn};return pe(Pn),Yt(Pn),Cn+"_"+Pn.id},St.fontFace=function(Cn){Cn=(0,m.default)(Cn);var Kn={id:re(Cn),type:"font-face",font:Cn};return pe(Kn),ze(Kn),Cn.fontFamily};var Rt=x=St.fontFace,Lt=x=St.keyframes;function ze(Cn){if(!we[Cn.id]){var Kn="@font-face{"+(0,M.createMarkupForStyles)(Cn.font)+"}";S.insert(Kn),we[Cn.id]=Z?!0:[Kn]}}function rt(Cn){(0,A.default)(we,Cn.reduce(function(Kn,Pn){return Kn[Pn]=!0,Kn},{}))}function tt(){we=S.inserted={},Pe=S.registered={},Je={},S.flush(),S.inject()}var de=x={mobile:"(min-width: 400px)",Mobile:"@media (min-width: 400px)",phablet:"(min-width: 550px)",Phablet:"@media (min-width: 550px)",tablet:"(min-width: 750px)",Tablet:"@media (min-width: 750px)",desktop:"(min-width: 1000px)",Desktop:"@media (min-width: 1000px)",hd:"(min-width: 1200px)",Hd:"@media (min-width: 1200px)"},ot=x=St;function Et(Cn){for(var Kn=arguments.length,Pn=Array(Kn>1?Kn-1:0),At=1;At<Kn;At++)Pn[At-1]=arguments[At];return Cn?St(p({},Cn,Pn)):ot(Pn)}var Ht=x=Et;function Jt(Cn){for(var Kn=arguments.length,Pn=Array(Kn>1?Kn-1:0),At=1;At<Kn;At++)Pn[At-1]=arguments[At];return St(p({},Cn+" &",Pn))}var Qt=x=St,an=x=St;function Un(Cn){for(var Kn=arguments.length,Pn=Array(Kn>1?Kn-1:0),At=1;At<Kn;At++)Pn[At-1]=arguments[At];return St(p({},"@media "+Cn,Pn))}function qt(Cn){for(var Kn=arguments.length,Pn=Array(Kn>1?Kn-1:0),At=1;At<Kn;At++)Pn[At-1]=arguments[At];return St(p({},Cn,Pn))}function rn(Cn){return qt(":active",Cn)}function cn(Cn){return qt(":any",Cn)}function er(Cn){return qt(":checked",Cn)}function rr(Cn){return qt(":disabled",Cn)}function nt(Cn){return qt(":empty",Cn)}function lr(Cn){return qt(":enabled",Cn)}function Hn(Cn){return qt(":default",Cn)}function ut(Cn){return qt(":first",Cn)}function bt(Cn){return qt(":first-child",Cn)}function We(Cn){return qt(":first-of-type",Cn)}function be(Cn){return qt(":fullscreen",Cn)}function Ae(Cn){return qt(":focus",Cn)}function Ue(Cn){return qt(":hover",Cn)}function $e(Cn){return qt(":indeterminate",Cn)}function kt(Cn){return qt(":in-range",Cn)}function lt(Cn){return qt(":invalid",Cn)}function vt(Cn){return qt(":last-child",Cn)}function Ct(Cn){return qt(":last-of-type",Cn)}function Bt(Cn){return qt(":left",Cn)}function mt(Cn){return qt(":link",Cn)}function Zt(Cn){return qt(":only-child",Cn)}function zt(Cn){return qt(":only-of-type",Cn)}function ln(Cn){return qt(":optional",Cn)}function An(Cn){return qt(":out-of-range",Cn)}function En(Cn){return qt(":read-only",Cn)}function Gn(Cn){return qt(":read-write",Cn)}function Bn(Cn){return qt(":required",Cn)}function pr(Cn){return qt(":right",Cn)}function _r(Cn){return qt(":root",Cn)}function na(Cn){return qt(":scope",Cn)}function $n(Cn){return qt(":target",Cn)}function qr(Cn){return qt(":valid",Cn)}function Jr(Cn){return qt(":visited",Cn)}function Aa(Cn,Kn){return qt(":dir("+Cn+")",Kn)}function ya(Cn,Kn){return qt(":lang("+Cn+")",Kn)}function $t(Cn,Kn){var Pn=Cn.split(",").map(function(At){return At.trim()}).map(function(At){return":not("+At+")"});return Pn.length===1?qt(":not("+Cn+")",Kn):Et(Pn.join(""),Kn)}function wn(Cn,Kn){return qt(":nth-child("+Cn+")",Kn)}function Fn(Cn,Kn){return qt(":nth-last-child("+Cn+")",Kn)}function Or(Cn,Kn){return qt(":nth-last-of-type("+Cn+")",Kn)}function vr(Cn,Kn){return qt(":nth-of-type("+Cn+")",Kn)}function Ur(Cn){return qt("::after",Cn)}function Zr(Cn){return qt("::before",Cn)}function Kr(Cn){return qt("::first-letter",Cn)}function ba(Cn){return qt("::first-line",Cn)}function Ri(Cn){return qt("::selection",Cn)}function Ea(Cn){return qt("::backdrop",Cn)}function Pi(Cn){return St({"::placeholder":Cn})}function rs(){for(var Cn=arguments.length,Kn=Array(Cn),Pn=0;Pn<Cn;Pn++)Kn[Pn]=arguments[Pn];return Kn=(0,m.default)(Kn),Kn?Kn.map(function(At){var ar={label:[]};return Vt(ar,{src:At}),fe(re(ar),ve(ar)).join("")}).join(""):""}function Ui(){for(var Cn=arguments.length,Kn=Array(Cn),Pn=0;Pn<Cn;Pn++)Kn[Pn]=arguments[Pn];Kn=(0,m.default)(Kn);var At=Kn?Kn.map(function(ar){Q(ar);var ta=Object.keys(ar)[0],Yn=ar[ta];return ta+'="'+(Yn||"")+'"'}).join(" "):"";return At}},55923:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var x=Object.assign||function(S){for(var k=1;k<arguments.length;k++){var O=arguments[k];for(var F in O)Object.prototype.hasOwnProperty.call(O,F)&&(S[F]=O[F])}return S};N.PluginSet=v,N.fallbacks=h,N.contentWrap=_,N.prefixes=p;var g=o(44547),A=m(g),y=o(53505),M=o(5764),w=m(M);function m(S){return S&&S.__esModule?S:{default:S}}var b=function(S){return S==="development"||!S}("production");function v(S){this.fns=S||[]}(0,A.default)(v.prototype,{add:function(){for(var k=this,O=arguments.length,F=Array(O),D=0;D<O;D++)F[D]=arguments[D];F.forEach(function(Z){k.fns.indexOf(Z)>=0?b&&console.warn("adding the same plugin again, ignoring"):k.fns=[Z].concat(k.fns)})},remove:function(k){this.fns=this.fns.filter(function(O){return O!==k})},clear:function(){this.fns=[]},transform:function(k){return this.fns.reduce(function(O,F){return F(O)},k)}});function h(S){var k=Object.keys(S.style).map(function(D){return Array.isArray(S.style[D])}).indexOf(!0)>=0;if(k){var O=S.style,F=Object.keys(O).reduce(function(D,Z){return D[Z]=Array.isArray(O[Z])?O[Z].join("; "+(0,y.processStyleName)(Z)+": "):O[Z],D},{});return(0,A.default)({},S,{style:F})}return S}var d=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit"];function _(S){if(S.style.content){var k=S.style.content;return d.indexOf(k)>=0||/^(attr|calc|counters?|url)\(/.test(k)||k.charAt(0)===k.charAt(k.length-1)&&(k.charAt(0)==='"'||k.charAt(0)==="'")?S:x({},S,{style:x({},S.style,{content:'"'+k+'"'})})}return S}function p(S){return(0,A.default)({},S,{style:(0,w.default)(x({},S.style))})}},5764:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=Q;var x=o(86147),g=K(x),A=o(46093),y=K(A),M=o(22860),w=K(M),m=o(28362),b=K(m),v=o(88646),h=K(v),d=o(3411),_=K(d),p=o(22591),S=K(p),k=o(42760),O=K(k),F=o(35668),D=K(F),Z=o(36384),W=K(Z),U=o(35453),L=K(U),V=o(61210),$=K(V),G=o(44103),z=K(G);function K(ue){return ue&&ue.__esModule?ue:{default:ue}}var re=[h.default,b.default,_.default,O.default,D.default,W.default,L.default,$.default,z.default,S.default],ne=g.default.prefixMap;function Q(ue){for(var he in ue){var Ee=ue[he],ce=(0,w.default)(re,he,Ee,ue,ne);ce&&(ue[he]=ce),(0,y.default)(ne,he,ue)}return ue}},49526:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.StyleSheet=_;var x=o(44547),g=A(x);function A(p){return p&&p.__esModule?p:{default:p}}function y(p){if(Array.isArray(p)){for(var S=0,k=Array(p.length);S<p.length;S++)k[S]=p[S];return k}else return Array.from(p)}function M(p){return p[p.length-1]}function w(p){if(p.sheet)return p.sheet;for(var S=0;S<document.styleSheets.length;S++)if(document.styleSheets[S].ownerNode===p)return document.styleSheets[S]}var m=typeof window!="undefined",b=!1,v=!1,h=function(){if(m){var p=document.createElement("div");return p.innerHTML="<!--[if lt IE 10]><i></i><![endif]-->",p.getElementsByTagName("i").length===1}}();function d(){var p=document.createElement("style");return p.type="text/css",p.setAttribute("data-glamor",""),p.appendChild(document.createTextNode("")),(document.head||document.getElementsByTagName("head")[0]).appendChild(p),p}function _(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=p.speedy,k=S===void 0?!b&&!v:S,O=p.maxLength,F=O===void 0?m&&h?4e3:65e3:O;this.isSpeedy=k,this.sheet=void 0,this.tags=[],this.maxLength=F,this.ctr=0}(0,g.default)(_.prototype,{getSheet:function(){return w(M(this.tags))},inject:function(){var S=this;if(this.injected)throw new Error("already injected stylesheet!");m?this.tags[0]=d():this.sheet={cssRules:[],insertRule:function(O){S.sheet.cssRules.push({cssText:O})}},this.injected=!0},speedy:function(S){if(this.ctr!==0)throw new Error("cannot change speedy mode after inserting any rule to sheet. Either call speedy("+S+") earlier in your app, or call flush() before speedy("+S+")");this.isSpeedy=!!S},_insert:function(S){try{var k=this.getSheet();k.insertRule(S,S.indexOf("@import")!==-1?0:k.cssRules.length)}catch(O){b&&console.warn("whoops, illegal rule inserted",S)}},insert:function(S){if(m)if(this.isSpeedy&&this.getSheet().insertRule)this._insert(S);else if(S.indexOf("@import")!==-1){var k=M(this.tags);k.insertBefore(document.createTextNode(S),k.firstChild)}else M(this.tags).appendChild(document.createTextNode(S));else this.sheet.insertRule(S,S.indexOf("@import")!==-1?0:this.sheet.cssRules.length);return this.ctr++,m&&this.ctr%this.maxLength==0&&this.tags.push(d()),this.ctr-1},delete:function(S){return this.replace(S,"")},flush:function(){m?(this.tags.forEach(function(S){return S.parentNode.removeChild(S)}),this.tags=[],this.sheet=null,this.ctr=0):this.sheet.cssRules=[],this.injected=!1},rules:function(){if(!m)return this.sheet.cssRules;var S=[];return this.tags.forEach(function(k){return S.splice.apply(S,[S.length,0].concat(y(Array.from(w(k).cssRules))))}),S}})},88547:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=y;var x=o(97136),g=A(x);function A(M){return M&&M.__esModule?M:{default:M}}function y(M){return(0,g.default)(M)}oe.exports=N.default},40487:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=x;var o=/-webkit-|-moz-|-ms-/;function x(g){return typeof g=="string"&&o.test(g)}oe.exports=N.default},88646:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=M;var x=o(40487),g=A(x);function A(w){return w&&w.__esModule?w:{default:w}}var y=["-webkit-",""];function M(w,m){if(typeof m=="string"&&!(0,g.default)(m)&&m.indexOf("cross-fade(")>-1)return y.map(function(b){return m.replace(/cross-fade\(/g,b+"cross-fade(")})}oe.exports=N.default},28362:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=g;var o=["-webkit-","-moz-",""],x={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function g(A,y){if(A==="cursor"&&x.hasOwnProperty(y))return o.map(function(M){return M+y})}oe.exports=N.default},3411:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=M;var x=o(40487),g=A(x);function A(w){return w&&w.__esModule?w:{default:w}}var y=["-webkit-",""];function M(w,m){if(typeof m=="string"&&!(0,g.default)(m)&&m.indexOf("filter(")>-1)return y.map(function(b){return m.replace(/filter\(/g,b+"filter(")})}oe.exports=N.default},22591:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=x;var o={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function x(g,A){if(g==="display"&&o.hasOwnProperty(A))return o[A]}oe.exports=N.default},42760:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=g;var o={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},x={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};function g(A,y,M){A==="flexDirection"&&typeof y=="string"&&(y.indexOf("column")>-1?M.WebkitBoxOrient="vertical":M.WebkitBoxOrient="horizontal",y.indexOf("reverse")>-1?M.WebkitBoxDirection="reverse":M.WebkitBoxDirection="normal"),x.hasOwnProperty(A)&&(M[x[A]]=o[y]||y)}oe.exports=N.default},35668:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=w;var x=o(40487),g=A(x);function A(m){return m&&m.__esModule?m:{default:m}}var y=["-webkit-","-moz-",""],M=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;function w(m,b){if(typeof b=="string"&&!(0,g.default)(b)&&M.test(b))return y.map(function(v){return v+b})}oe.exports=N.default},36384:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=M;var x=o(40487),g=A(x);function A(w){return w&&w.__esModule?w:{default:w}}var y=["-webkit-",""];function M(w,m){if(typeof m=="string"&&!(0,g.default)(m)&&m.indexOf("image-set(")>-1)return y.map(function(b){return m.replace(/image-set\(/g,b+"image-set(")})}oe.exports=N.default},35453:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=o;function o(x,g){if(x==="position"&&g==="sticky")return["-webkit-sticky","sticky"]}oe.exports=N.default},61210:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=A;var o=["-webkit-","-moz-",""],x={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},g={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function A(y,M){if(x.hasOwnProperty(y)&&g.hasOwnProperty(M))return o.map(function(w){return w+M})}oe.exports=N.default},44103:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=d;var x=o(88547),g=m(x),A=o(40487),y=m(A),M=o(47957),w=m(M);function m(_){return _&&_.__esModule?_:{default:_}}var b={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},v={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function h(_,p){if((0,y.default)(_))return _;for(var S=_.split(/,(?![^()]*(?:\([^()]*\))?\))/g),k=0,O=S.length;k<O;++k){var F=S[k],D=[F];for(var Z in p){var W=(0,g.default)(Z);if(F.indexOf(W)>-1&&W!=="order")for(var U=p[Z],L=0,V=U.length;L<V;++L)D.unshift(F.replace(W,v[U[L]]+W))}S[k]=D.join(",")}return S.join(",")}function d(_,p,S,k){if(typeof p=="string"&&b.hasOwnProperty(_)){var O=h(p,k),F=O.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(Z){return!/-moz-|-ms-/.test(Z)}).join(",");if(_.indexOf("Webkit")>-1)return F;var D=O.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(Z){return!/-webkit-|-ms-/.test(Z)}).join(",");return _.indexOf("Moz")>-1?D:(S["Webkit"+(0,w.default)(_)]=F,S["Moz"+(0,w.default)(_)]=D,O)}}oe.exports=N.default},86147:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o=["Webkit"],x=["Moz"],g=["ms"],A=["Webkit","Moz"],y=["Webkit","ms"],M=["Webkit","Moz","ms"];N.default={plugins:[],prefixMap:{appearance:A,userSelect:M,textEmphasisPosition:o,textEmphasis:o,textEmphasisStyle:o,textEmphasisColor:o,boxDecorationBreak:o,clipPath:o,maskImage:o,maskMode:o,maskRepeat:o,maskPosition:o,maskClip:o,maskOrigin:o,maskSize:o,maskComposite:o,mask:o,maskBorderSource:o,maskBorderMode:o,maskBorderSlice:o,maskBorderWidth:o,maskBorderOutset:o,maskBorderRepeat:o,maskBorder:o,maskType:o,textDecorationStyle:o,textDecorationSkip:o,textDecorationLine:o,textDecorationColor:o,filter:o,fontFeatureSettings:o,breakAfter:M,breakBefore:M,breakInside:M,columnCount:A,columnFill:A,columnGap:A,columnRule:A,columnRuleColor:A,columnRuleStyle:A,columnRuleWidth:A,columns:A,columnSpan:A,columnWidth:A,writingMode:y,flex:o,flexBasis:o,flexDirection:o,flexGrow:o,flexFlow:o,flexShrink:o,flexWrap:o,alignContent:o,alignItems:o,alignSelf:o,justifyContent:o,order:o,transform:o,transformOrigin:o,transformOriginX:o,transformOriginY:o,backfaceVisibility:o,perspective:o,perspectiveOrigin:o,transformStyle:o,transformOriginZ:o,animation:o,animationDelay:o,animationDirection:o,animationFillMode:o,animationDuration:o,animationIterationCount:o,animationName:o,animationPlayState:o,animationTimingFunction:o,backdropFilter:o,fontKerning:o,scrollSnapType:y,scrollSnapPointsX:y,scrollSnapPointsY:y,scrollSnapDestination:y,scrollSnapCoordinate:y,shapeImageThreshold:o,shapeImageMargin:o,shapeImageOutside:o,hyphens:M,flowInto:y,flowFrom:y,regionFragment:y,textAlignLast:x,tabSize:x,wrapFlow:g,wrapThrough:g,wrapMargin:g,gridTemplateColumns:g,gridTemplateRows:g,gridTemplateAreas:g,gridTemplate:g,gridAutoColumns:g,gridAutoRows:g,gridAutoFlow:g,grid:g,gridRowStart:g,gridColumnStart:g,gridRowEnd:g,gridRow:g,gridColumn:g,gridColumnEnd:g,gridColumnGap:g,gridRowGap:g,gridArea:g,gridGap:g,textSizeAdjust:y,borderImage:o,borderImageOutset:o,borderImageRepeat:o,borderImageSlice:o,borderImageSource:o,borderImageWidth:o,transitionDelay:o,transitionDuration:o,transitionProperty:o,transitionTimingFunction:o}},oe.exports=N.default},47957:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=o;function o(x){return x.charAt(0).toUpperCase()+x.slice(1)}oe.exports=N.default},46093:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=y;var x=o(47957),g=A(x);function A(M){return M&&M.__esModule?M:{default:M}}function y(M,w,m){if(M.hasOwnProperty(w))for(var b=M[w],v=0,h=b.length;v<h;++v)m[b[v]+(0,g.default)(w)]=m[w]}oe.exports=N.default},22860:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=o;function o(x,g,A,y,M){for(var w=0,m=x.length;w<m;++w){var b=x[w](g,A,y,M);if(b)return b}}oe.exports=N.default},80755:function(oe,N,o){"use strict";o.r(N),o.d(N,{ThemeProvider:function(){return z},withTheme:function(){return O},A:function(){return Ua},Abbr:function(){return Fi},Acronym:function(){return Xa},Address:function(){return $i},Applet:function(){return La},Area:function(){return ja},Article:function(){return ei},Aside:function(){return Do},Audio:function(){return yo},B:function(){return to},Base:function(){return fs},Basefont:function(){return cs},Bdi:function(){return Os},Bdo:function(){return vl},Bgsound:function(){return Ar},Big:function(){return Rn},Blink:function(){return Sr},Blockquote:function(){return nn},Body:function(){return sn},Br:function(){return Ot},Button:function(){return gr},Canvas:function(){return Gr},Caption:function(){return Ln},Center:function(){return Tr},Cite:function(){return Dn},Code:function(){return Pr},Col:function(){return fa},Colgroup:function(){return ka},Command:function(){return Li},Content:function(){return zi},Data:function(){return Mo},Datalist:function(){return Za},Dd:function(){return ao},Del:function(){return Mi},Details:function(){return Eo},Dfn:function(){return Xi},Dialog:function(){return Bo},Dir:function(){return ol},Div:function(){return Il},Dl:function(){return ms},Dt:function(){return mc},Element:function(){return Ys},Em:function(){return hl},Embed:function(){return Rs},Fieldset:function(){return xl},Figcaption:function(){return Wl},Figure:function(){return _l},Font:function(){return Ls},Footer:function(){return zn},Form:function(){return Dr},Frame:function(){return Hr},Frameset:function(){return _a},H1:function(){return Ti},H2:function(){return Ci},H3:function(){return da},H4:function(){return Da},H5:function(){return mi},H6:function(){return Ho},Head:function(){return al},Header:function(){return ml},Hgroup:function(){return Xs},Hr:function(){return Ps},Html:function(){return dl},I:function(){return ql},Iframe:function(){return Dc},Image:function(){return Jl},Img:function(){return oc},Input:function(){return xu},Ins:function(){return yf},Isindex:function(){return ku},Kbd:function(){return Zc},Keygen:function(){return Zu},Label:function(){return Fc},Legend:function(){return Hc},Li:function(){return Vu},Link:function(){return ws},Listing:function(){return fc},Main:function(){return Tc},MapTag:function(){return jc},Mark:function(){return lu},Marquee:function(){return hu},MathTag:function(){return of},Menu:function(){return uu},Menuitem:function(){return zu},Meta:function(){return cf},Meter:function(){return bf},Multicol:function(){return Cu},Nav:function(){return rf},Nextid:function(){return Bu},Nobr:function(){return Tf},Noembed:function(){return ed},Noframes:function(){return Fd},Noscript:function(){return Pd},ObjectTag:function(){return Nc},Ol:function(){return eu},Optgroup:function(){return If},Option:function(){return $f},Output:function(){return Te},P:function(){return _t},Param:function(){return Vn},Picture:function(){return br},Plaintext:function(){return tn},Pre:function(){return Pt},Progress:function(){return on},Q:function(){return _n},Rb:function(){return ir},Rbc:function(){return xr},Rp:function(){return aa},Rt:function(){return oi},Rtc:function(){return ni},Ruby:function(){return yi},S:function(){return Zo},Samp:function(){return is},Script:function(){return mo},Section:function(){return Ml},Select:function(){return yc},Shadow:function(){return oa},Slot:function(){return sl},Small:function(){return fl},Source:function(){return bc},Spacer:function(){return Rf},Span:function(){return Ms},Strike:function(){return ff},Strong:function(){return Df},Style:function(){return Ff},Sub:function(){return Kf},Summary:function(){return xf},Sup:function(){return Sc},Svg:function(){return Wu},Table:function(){return Du},Tbody:function(){return Gd},Td:function(){return gf},Template:function(){return Vp},Textarea:function(){return $c},Tfoot:function(){return Yl},Th:function(){return Sp},Thead:function(){return tp},Time:function(){return Rp},Title:function(){return df},Tr:function(){return uf},Track:function(){return Af},Tt:function(){return Wn},U:function(){return ca},Ul:function(){return ra},Var:function(){return Na},Video:function(){return fi},Wbr:function(){return so},Xmp:function(){return vo},AltGlyph:function(){return Ro},AltGlyphDef:function(){return So},AltGlyphItem:function(){return el},Animate:function(){return ul},AnimateColor:function(){return Xo},AnimateMotion:function(){return lo},AnimateTransform:function(){return Zs},Animation:function(){return Gs},Circle:function(){return $s},ClipPath:function(){return Qn},ColorProfile:function(){return dr},Cursor:function(){return Xr},Defs:function(){return la},Desc:function(){return Ra},Discard:function(){return _i},Ellipse:function(){return ui},FeBlend:function(){return ho},FeColorMatrix:function(){return Oi},FeComponentTransfer:function(){return Fo},FeComposite:function(){return as},FeConvolveMatrix:function(){return Fs},FeDiffuseLighting:function(){return Fr},FeDisplacementMap:function(){return tl},FeDistantLight:function(){return Js},FeDropShadow:function(){return Us},FeFlood:function(){return os},FeFuncA:function(){return El},FeFuncB:function(){return Bs},FeFuncG:function(){return gc},FeFuncR:function(){return kr},FeGaussianBlur:function(){return Sa},FeImage:function(){return Hi},FeMerge:function(){return Co},FeMergeNode:function(){return Ds},FeMorphology:function(){return Dl},FeOffset:function(){return Xc},FePointLight:function(){return Fl},FeSpecularLighting:function(){return Eu},FeSpotLight:function(){return cc},FeTile:function(){return Hu},FeTurbulence:function(){return dc},Filter:function(){return iu},FontFace:function(){return Gc},FontFaceFormat:function(){return Jc},FontFaceName:function(){return pf},FontFaceSrc:function(){return hn},FontFaceUri:function(){return dn},ForeignObject:function(){return tr},G:function(){return Mn},Glyph:function(){return Lr},GlyphRef:function(){return sa},Handler:function(){return Ma},Hatch:function(){return Ia},Hatchpath:function(){return Ja},Hkern:function(){return pi},Line:function(){return fo},LinearGradient:function(){return us},Listener:function(){return xo},Marker:function(){return Qo},Mask:function(){return gs},Mesh:function(){return ds},Meshgradient:function(){return nl},Meshpatch:function(){return nc},Meshrow:function(){return Kl},Metadata:function(){return mu},MissingGlyph:function(){return xc},Mpath:function(){return Ll},Path:function(){return wc},Pattern:function(){return Xu},Polygon:function(){return _u},Polyline:function(){return wu},Prefetch:function(){return fu},RadialGradient:function(){return Kc},Rect:function(){return td},SetTag:function(){return Ic},SolidColor:function(){return tu},Solidcolor:function(){return jf},Stop:function(){return Tu},Switch:function(){return Ed},SymbolTag:function(){return vd},Tbreak:function(){return Gu},Text:function(){return Op},TextArea:function(){return np},TextPath:function(){return $d},Tref:function(){return hd},Tspan:function(){return Ip},Unknown:function(){return dd},Use:function(){return cr},View:function(){return un},Vkern:function(){return Jn}});var x=o(67294),g=o(19267),A=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"],y=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","animation","audio","canvas","circle","clipPath","color-profile","cursor","defs","desc","discard","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","handler","hatch","hatchpath","hkern","iframe","image","line","linearGradient","listener","marker","mask","mesh","meshgradient","meshpatch","meshrow","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","prefetch","radialGradient","rect","script","set","solidColor","solidcolor","stop","style","svg","switch","symbol","tbreak","text","textArea","textPath","title","tref","tspan","unknown","use","video","view","vkern"],M=A.concat(y).filter(function(Xn,Vr,Zn){return Zn.indexOf(Xn)===Vr}),w="__glamorous__",m=!1,b=void 0;if(m){if(x.PropTypes||(b=function(){return b},["array","bool","func","number","object","string","symbol","any","arrayOf","element","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact"].forEach(function(Xn){b[Xn]=b})),!x.Children){var v={map:function(Vr,Zn,pa){return Vr==null?null:(Vr=v.toArray(Vr),pa&&pa!==Vr&&(Zn=Zn.bind(pa)),Vr.map(Zn))},forEach:function(Vr,Zn,pa){if(Vr==null)return null;Vr=v.toArray(Vr),pa&&pa!==Vr&&(Zn=Zn.bind(pa)),Vr.forEach(Zn)},count:function(Vr){return Vr&&Vr.length||0},only:function(Vr){if(Vr=v.toArray(Vr),Vr.length!==1)throw new Error("Children.only() expects only one child.");return Vr[0]},toArray:function(Vr){return Vr==null?[]:[].concat(Vr)}};x.Children=v}}else if(parseFloat(x.version.slice(0,4))>=15.5)try{b=o(44721)}catch(Xn){}b=b||x.PropTypes;var h=function(Vr,Zn){if(!(Vr instanceof Zn))throw new TypeError("Cannot call a class as a function")},d=Object.assign||function(Xn){for(var Vr=1;Vr<arguments.length;Vr++){var Zn=arguments[Vr];for(var pa in Zn)Object.prototype.hasOwnProperty.call(Zn,pa)&&(Xn[pa]=Zn[pa])}return Xn},_=function(Vr,Zn){if(typeof Zn!="function"&&Zn!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Zn);Vr.prototype=Object.create(Zn&&Zn.prototype,{constructor:{value:Vr,enumerable:!1,writable:!0,configurable:!0}}),Zn&&(Object.setPrototypeOf?Object.setPrototypeOf(Vr,Zn):Vr.__proto__=Zn)},p=function(Vr,Zn){var pa={};for(var Ha in Vr)Zn.indexOf(Ha)>=0||!Object.prototype.hasOwnProperty.call(Vr,Ha)||(pa[Ha]=Vr[Ha]);return pa},S=function(Vr,Zn){if(!Vr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Zn&&(typeof Zn=="object"||typeof Zn=="function")?Zn:Vr};function k(Xn){var Vr=Xn.displayName||Xn.name||"FunctionComponent";return'glamorous warning: Expected component called "'+Vr+'" which uses withTheme to be within a ThemeProvider but none was found.'}function O(Xn){var Vr,Zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pa=Zn.noWarn,Ha=pa===void 0?!1:pa,gi=Zn.createElement,co=gi===void 0?!0:gi,No=function(gl){_(js,gl);function js(){var Zl,ko,te;h(this,js);for(var Me=arguments.length,ft=Array(Me),Nt=0;Nt<Me;Nt++)ft[Nt]=arguments[Nt];return te=(Zl=(ko=S(this,gl.call.apply(gl,[this].concat(ft))),ko),ko.warned=Ha,ko.state={theme:{}},ko.setTheme=function(xn){return ko.setState({theme:xn})},Zl),S(ko,te)}return js.prototype.componentWillMount=function(){!this.context[w];var ko=this.props.theme;this.context[w]?this.setTheme(ko||this.context[w].getState()):this.setTheme(ko||{})},js.prototype.componentWillReceiveProps=function(ko){this.props.theme!==ko.theme&&this.setTheme(ko.theme)},js.prototype.componentDidMount=function(){this.context[w]&&!this.props.theme&&(this.subscriptionId=this.context[w].subscribe(this.setTheme))},js.prototype.componentWillUnmount=function(){this.subscriptionId&&this.context[w].unsubscribe(this.subscriptionId)},js.prototype.render=function(){return co?x.createElement(Xn,d({},this.props,this.state)):Xn.call(this,d({},this.props,this.state),this.context)},js}(x.Component),Ko=(Vr={},Vr[w]=b.object,Vr),Jo=null;return Object.defineProperty(No,"contextTypes",{enumerable:!0,configurable:!0,set:function(js){Jo=js},get:function(){return Jo?d({},Ko,Jo):Ko}}),No}var F=Z,D=Object.prototype.toString;function Z(Xn){var Vr=D.call(Xn);return Vr==="[object Function]"||typeof Xn=="function"&&Vr!=="[object RegExp]"||typeof window!="undefined"&&(Xn===window.setTimeout||Xn===window.alert||Xn===window.confirm||Xn===window.prompt)}/*!
|
||
* isobject <https://github.com/jonschlinkert/isobject>
|
||
*
|
||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
* Released under the MIT License.
|
||
*/var W=function(Vr){return Vr!=null&&typeof Vr=="object"&&Array.isArray(Vr)===!1};function U(Xn){return W(Xn)===!0&&Object.prototype.toString.call(Xn)==="[object Object]"}var L=function(Vr){var Zn,pa;return!(U(Vr)===!1||(Zn=Vr.constructor,typeof Zn!="function")||(pa=Zn.prototype,U(pa)===!1)||pa.hasOwnProperty("isPrototypeOf")===!1)};function V(Xn){var Vr={},Zn=1,pa=Xn;function Ha(){return pa}function gi(Ko){pa=Ko;for(var Jo=Object.keys(Vr),gl=0,js=Jo.length;gl<js;gl++)Vr[Jo[gl]]&&Vr[Jo[gl]](Ko)}function co(Ko){if(typeof Ko!="function")throw new Error("listener must be a function.");var Jo=Zn;return Vr[Jo]=Ko,Zn+=1,Jo}function No(Ko){Vr[Ko]=void 0}return{getState:Ha,setState:gi,subscribe:co,unsubscribe:No}}var $,G,z=function(Xn){_(Vr,Xn);function Vr(){var Zn,pa,Ha;h(this,Vr);for(var gi=arguments.length,co=Array(gi),No=0;No<gi;No++)co[No]=arguments[No];return Ha=(Zn=(pa=S(this,Xn.call.apply(Xn,[this].concat(co))),pa),pa.setOuterTheme=function(Ko){pa.outerTheme=Ko,pa.broadcast!==void 0&&pa.publishTheme()},Zn),S(pa,Ha)}return Vr.prototype.getTheme=function(pa){var Ha=pa||this.props.theme;if(F(Ha)){var gi=Ha(this.outerTheme);if(!L(gi))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return gi}return d({},this.outerTheme,Ha)},Vr.prototype.getChildContext=function(){var pa;return pa={},pa[w]=this.broadcast,pa},Vr.prototype.publishTheme=function(pa){this.broadcast.setState(this.getTheme(pa))},Vr.prototype.componentDidMount=function(){this.context[w]&&(this.subscriptionId=this.context[w].subscribe(this.setOuterTheme))},Vr.prototype.componentWillMount=function(){this.context[w]&&this.setOuterTheme(this.context[w].getState()),this.broadcast=V(this.getTheme(this.props.theme))},Vr.prototype.componentWillReceiveProps=function(pa){this.props.theme!==pa.theme&&this.publishTheme(pa.theme)},Vr.prototype.componentWillUnmount=function(){this.subscriptionId&&this.context[w].unsubscribe(this.subscriptionId)},Vr.prototype.render=function(){return this.props.children?x.Children.only(this.props.children):null},Vr}(x.Component);z.childContextTypes=($={},$[w]=b.object.isRequired,$),z.contextTypes=(G={},G[w]=b.object,G);function K(Xn){var Vr=[],Zn=[];return Xn.toString().split(" ").forEach(function(pa){if(g.CN.registered[pa.substring(4)]===void 0)Vr.push(pa);else{var Ha=re(pa);Zn.push(Ha)}}),{glamorlessClassName:Vr,glamorStyles:Zn}}function re(Xn){var Vr;return Vr={},Vr["data-"+Xn]="",Vr}function ne(Xn){var Vr=Xn.styles,Zn=Xn.props,pa=Xn.cssOverrides,Ha=Xn.cssProp,gi=Xn.context,co=Xn.displayName,No=Q([].concat(Vr,[Zn.className,pa,Ha]),Zn,gi),Ko=No.mappedArgs,Jo=No.nonGlamorClassNames,gl=!1,js=gl?{label:co}:null,Zl=g.iv.apply(void 0,[js].concat(Ko)).toString(),ko=Jo.join(" ").trim();return(Zl+" "+ko).trim()}function Q(Xn,Vr,Zn){for(var pa=void 0,Ha=[],gi=[],co=0;co<Xn.length;co++){for(pa=Xn[co];typeof pa=="function";)pa=pa(Vr,Zn);if(typeof pa=="string"){var No=K(pa),Ko=No.glamorStyles,Jo=No.glamorlessClassName;Ha.push.apply(Ha,Ko),gi.push.apply(gi,Jo)}else if(Array.isArray(pa)){var gl=Q(pa,Vr,Zn);Ha.push.apply(Ha,gl.mappedArgs),gi.push.apply(gi,gl.nonGlamorClassNames)}else Ha.push(pa)}return{mappedArgs:Ha,nonGlamorClassNames:gi}}function ue(Xn){return Vr;function Vr(pa){var Ha=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},gi=Ha.rootEl,co=Ha.displayName,No=Ha.shouldClassNameUpdate,Ko=Ha.filterProps,Jo=Ko===void 0?[]:Ko,gl=Ha.forwardProps,js=gl===void 0?[]:gl,Zl=Ha.propsAreCssOverrides,ko=Zl===void 0?pa.propsAreCssOverrides:Zl,te=Ha.withProps;return Object.assign(ft,{withConfig:Me}),ft;function Me(Nt){return Vr(pa,d({},Ha,Nt))}function ft(){for(var Nt=arguments.length,xn=Array(Nt),Yr=0;Yr<Nt;Yr++)xn[Yr]=arguments[Yr];var qa=O(function(Qs,Hl){Qs=he(qa.propsToApply,{},Qs,Hl);var Lc=Es(Qs,Hl,this.previous);No&&(this.previous={props:Qs,context:Hl});var Pu=Xn(Qs,qa),Yf=Pu.toForward,yv=Pu.cssOverrides,Cp=Pu.cssProp;return this.className=Lc?ne({styles:qa.styles,props:Qs,cssOverrides:yv,cssProp:Cp,context:Hl,displayName:qa.displayName}):this.className,x.createElement(qa.comp,d({ref:"innerRef"in Yf?void 0:Qs.innerRef},Yf,{className:this.className}))},{noWarn:!0,createElement:!1});function Es(Qs,Hl,Lc){if(!No)return!0;var Pu=!0;return Lc&&(No(Lc.props,Qs,Lc.context,Hl)||(Pu=!1)),Pu}return Object.assign(qa,Zn({comp:pa,styles:xn,rootEl:gi,filterProps:Jo,forwardProps:js,displayName:co,propsToApply:te}),{isGlamorousComponent:!0,propsAreCssOverrides:ko,withComponent:function(Hl){var Lc=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pu=qa.forwardProps,Yf=qa.filterProps,yv=p(qa,["forwardProps","filterProps"]);return Vr(d({},yv,{comp:Hl,rootEl:ve(Hl)}),d({forwardProps:Pu,filterProps:Yf},Lc))()},withProps:function(){for(var Hl=arguments.length,Lc=Array(Hl),Pu=0;Pu<Hl;Pu++)Lc[Pu]=arguments[Pu];return Vr(qa,{withProps:Lc})()},withConfig:Me}),qa}}function Zn(pa){var Ha=pa.comp,gi=pa.styles,co=pa.rootEl,No=pa.filterProps,Ko=pa.forwardProps,Jo=pa.displayName,gl=pa.propsToApply,js=Ha.comp?Ha.comp:Ha,Zl=Ha.propsToApply?[].concat(Ha.propsToApply,Ee(gl)):Ee(gl);return{styles:ce(Ha.styles,gi),comp:js,rootEl:co||ve(Ha),forwardProps:ce(Ha.forwardProps,Ko),filterProps:ce(Ha.filterProps,No),displayName:Jo||"glamorous("+fe(Ha)+")",propsToApply:Zl}}}function he(Xn,Vr,Zn,pa){return Xn.forEach(function(Ha){return typeof Ha=="function"?Object.assign(Vr,Ha(Object.assign({},Vr,Zn),pa)):Array.isArray(Ha)?Object.assign(Vr,he(Ha,Vr,Zn,pa)):Object.assign(Vr,Ha)}),Object.assign(Vr,Zn)}function Ee(){var Xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Array.isArray(Xn)?Xn:[Xn]}function ce(Xn,Vr){return Xn?Xn.concat(Vr):Vr}function ve(Xn){return Xn.rootEl?Xn.rootEl:Xn.comp||Xn}function fe(Xn){return typeof Xn=="string"?Xn:Xn.displayName||Xn.name||"unknown"}function we(Xn,Vr){var Zn=Vr&&Vr.cache?Vr.cache:qe,pa=Vr&&Vr.serializer?Vr.serializer:Fe,Ha=Vr&&Vr.strategy?Vr.strategy:Je;return Ha(Xn,{cache:Zn,serializer:pa})}function me(Xn){return Xn==null||typeof Xn=="number"||typeof Xn=="boolean"}function Pe(Xn,Vr,Zn,pa){var Ha=me(pa)?pa:Zn(pa),gi=Vr.get(Ha);return typeof gi=="undefined"&&(gi=Xn.call(this,pa),Vr.set(Ha,gi)),gi}function pe(Xn,Vr,Zn){var pa=Array.prototype.slice.call(arguments,3),Ha=Zn(pa),gi=Vr.get(Ha);return typeof gi=="undefined"&&(gi=Xn.apply(this,pa),Vr.set(Ha,gi)),gi}function Ie(Xn,Vr,Zn,pa,Ha){return Zn.bind(Vr,Xn,pa,Ha)}function Je(Xn,Vr){var Zn=Xn.length===1?Pe:pe;return Ie(Xn,this,Zn,Vr.cache.create(),Vr.serializer)}function ke(Xn,Vr){var Zn=pe;return Ie(Xn,this,Zn,Vr.cache.create(),Vr.serializer)}function De(Xn,Vr){var Zn=Pe;return Ie(Xn,this,Zn,Vr.cache.create(),Vr.serializer)}function Fe(){return JSON.stringify(arguments)}function Qe(){this.cache=Object.create(null)}Qe.prototype.has=function(Xn){return Xn in this.cache},Qe.prototype.get=function(Xn){return this.cache[Xn]},Qe.prototype.set=function(Xn,Vr){this.cache[Xn]=Vr};var qe={create:function(){return new Qe}},et=we,dt={variadic:ke,monadic:De};et.strategies=dt;function Ke(Xn){return Xn&&Xn.__esModule&&Object.prototype.hasOwnProperty.call(Xn,"default")?Xn.default:Xn}function Ge(Xn,Vr){return Vr={exports:{}},Xn(Vr,Vr.exports),Vr.exports}var wt=["coords","download","href","name","rel","shape","target","type"],Vt=["title"],gt=["alt","height","name","width"],it=["alt","coords","download","href","rel","shape","target","type"],Le=["controls","loop","muted","preload","src"],ct=["href","target"],at=["size"],jt=["dir"],St=["cite"],fn=["disabled","form","name","type","value"],Xt=["height","width"],Yt=["span","width"],Rt=["span","width"],Lt=["value"],ze=["cite"],rt=["open"],tt=["title"],de=["open"],ot=["height","src","type","width"],Et=["disabled","form","name"],Ht=["size"],Jt=["accept","action","method","name","target"],Qt=["name","scrolling","src"],an=["cols","rows"],Un=["profile"],qt=["size","width"],rn=["manifest"],cn=["height","name","sandbox","scrolling","src","width"],er=["alt","height","name","sizes","src","width"],rr=["accept","alt","autoCapitalize","autoCorrect","autoSave","checked","defaultChecked","defaultValue","disabled","form","height","list","max","min","multiple","name","onChange","pattern","placeholder","required","results","size","src","step","title","type","value","width"],nt=["cite"],lr=["challenge","disabled","form","name"],Hn=["form"],ut=["type","value"],bt=["color","href","integrity","media","nonce","rel","scope","sizes","target","title","type"],We=["name"],be=["content","name"],Ae=["high","low","max","min","optimum","value"],Ue=["data","form","height","name","type","width"],$e=["reversed","start","type"],kt=["disabled","label"],lt=["disabled","label","selected","value"],vt=["form","name"],Ct=["name","type","value"],Bt=["width"],mt=["max","value"],Zt=["cite"],zt=["async","defer","integrity","nonce","src","type"],ln=["defaultValue","disabled","form","multiple","name","onChange","required","size","value"],An=["name"],En=["media","sizes","src","type"],Gn=["media","nonce","title","type"],Bn=["summary","width"],pr=["headers","height","scope","width"],_r=["autoCapitalize","autoCorrect","cols","defaultValue","disabled","form","name","onChange","placeholder","required","rows","value","wrap"],na=["headers","height","scope","width"],$n=["default","kind","label","src"],qr=["type"],Jr=["controls","height","loop","muted","playsInline","poster","preload","src","width"],Aa=["accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseProfile","baselineShift","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","color","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","height","horizAdvX","horizOriginX","ideographic","imageRendering","in","in2","intercept","k","k1","k2","k3","k4","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","viewBox","viewTarget","visibility","width","widths","wordSpacing","writingMode","x","x1","x2","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlSpace","xmlns","xmlnsXlink","y","y1","y2","yChannelSelector","z","zoomAndPan"],ya={html:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],svg:["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"]},$t={a:wt,abbr:Vt,applet:gt,area:it,audio:Le,base:ct,basefont:at,bdo:jt,blockquote:St,button:fn,canvas:Xt,col:Yt,colgroup:Rt,data:Lt,del:ze,details:rt,dfn:tt,dialog:de,embed:ot,fieldset:Et,font:Ht,form:Jt,frame:Qt,frameset:an,head:Un,hr:qt,html:rn,iframe:cn,img:er,input:rr,ins:nt,keygen:lr,label:Hn,li:ut,link:bt,map:We,meta:be,meter:Ae,object:Ue,ol:$e,optgroup:kt,option:lt,output:vt,param:Ct,pre:Bt,progress:mt,q:Zt,script:zt,select:ln,slot:An,source:En,style:Gn,table:Bn,td:pr,textarea:_r,th:na,track:$n,ul:qr,video:Jr,svg:Aa,elements:ya,"*":["about","acceptCharset","accessKey","allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","capture","cellPadding","cellSpacing","charSet","classID","className","colSpan","contentEditable","contextMenu","crossOrigin","dangerouslySetInnerHTML","datatype","dateTime","dir","draggable","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hidden","hrefLang","htmlFor","httpEquiv","icon","id","inlist","inputMode","is","itemID","itemProp","itemRef","itemScope","itemType","keyParams","keyType","lang","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","prefix","property","radioGroup","readOnly","resource","role","rowSpan","scoped","seamless","security","spellCheck","srcDoc","srcLang","srcSet","style","suppressContentEditableWarning","tabIndex","title","typeof","unselectable","useMap","vocab","wmode"]},wn=Object.freeze({a:wt,abbr:Vt,applet:gt,area:it,audio:Le,base:ct,basefont:at,bdo:jt,blockquote:St,button:fn,canvas:Xt,col:Yt,colgroup:Rt,data:Lt,del:ze,details:rt,dfn:tt,dialog:de,embed:ot,fieldset:Et,font:Ht,form:Jt,frame:Qt,frameset:an,head:Un,hr:qt,html:rn,iframe:cn,img:er,input:rr,ins:nt,keygen:lr,label:Hn,li:ut,link:bt,map:We,meta:be,meter:Ae,object:Ue,ol:$e,optgroup:kt,option:lt,output:vt,param:Ct,pre:Bt,progress:mt,q:Zt,script:zt,select:ln,slot:An,source:En,style:Gn,table:Bn,td:pr,textarea:_r,th:na,track:$n,ul:qr,video:Jr,svg:Aa,elements:ya,default:$t}),Fn=wn&&$t||wn,Or=Ge(function(Xn,Vr){Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.default=Fn,Xn.exports=Fn}),vr=Ke(Or),Ur=["children","dangerouslySetInnerHTML","key","ref","autoFocus","defaultValue","valueLink","defaultChecked","checkedLink","innerHTML","suppressContentEditableWarning","onFocusIn","onFocusOut","className","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onLoad","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd","onCopyCapture","onCutCapture","onPasteCapture","onCompositionEndCapture","onCompositionStartCapture","onCompositionUpdateCapture","onKeyDownCapture","onKeyPressCapture","onKeyUpCapture","onFocusCapture","onBlurCapture","onChangeCapture","onInputCapture","onSubmitCapture","onClickCapture","onContextMenuCapture","onDoubleClickCapture","onDragCapture","onDragEndCapture","onDragEnterCapture","onDragExitCapture","onDragLeaveCapture","onDragOverCapture","onDragStartCapture","onDropCapture","onMouseDownCapture","onMouseEnterCapture","onMouseLeaveCapture","onMouseMoveCapture","onMouseOutCapture","onMouseOverCapture","onMouseUpCapture","onSelectCapture","onTouchCancelCapture","onTouchEndCapture","onTouchMoveCapture","onTouchStartCapture","onScrollCapture","onWheelCapture","onAbortCapture","onCanPlayCapture","onCanPlayThroughCapture","onDurationChangeCapture","onEmptiedCapture","onEncryptedCapture","onEndedCapture","onErrorCapture","onLoadedDataCapture","onLoadedMetadataCapture","onLoadStartCapture","onPauseCapture","onPlayCapture","onPlayingCapture","onProgressCapture","onRateChangeCapture","onSeekedCapture","onSeekingCapture","onStalledCapture","onSuspendCapture","onTimeUpdateCapture","onVolumeChangeCapture","onWaitingCapture","onLoadCapture","onAnimationStartCapture","onAnimationEndCapture","onAnimationIterationCapture","onTransitionEndCapture"];m&&Ur.push("autocomplete","autofocus","class","for","onDblClick","onSearch","slot","srcset");var Zr=vr["*"],Kr=vr.elements.svg,ba=vr.elements.html,Ri=["color","height","width"],Ea=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Pi=Ea+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",rs=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+Pi+"]*$")),Ui=function(Vr){return Vr==="svg"||ba.indexOf(Vr)===-1&&Kr.indexOf(Vr)!==-1},Cn=function(Vr,Zn){var pa=void 0;return Ui(Zn)?pa=vr.svg:pa=vr[Zn]||[],Zr.indexOf(Vr)!==-1||pa.indexOf(Vr)!==-1},Kn=function(Vr){return Ri.indexOf(Vr)!==-1},Pn=function(Vr){return Ur.indexOf(Vr)!==-1},At=function(Vr,Zn){return typeof Vr!="string"||(Cn(Zn,Vr)||Pn(Zn)||rs(Zn.toLowerCase()))&&(!Kn(Zn)||Ui(Vr))},ar=et(At);function ta(Xn,Vr){var Zn=Vr.propsAreCssOverrides,pa=Vr.rootEl,Ha=Vr.filterProps,gi=Vr.forwardProps,co=Xn.css,No=Xn.innerRef,Ko=Xn.theme,Jo=Xn.className,gl=Xn.glam,js=p(Xn,["css","innerRef","theme","className","glam"]);No!==void 0&&gi.indexOf("innerRef")!==-1&&(js.innerRef=No);var Zl={toForward:{},cssProp:co,cssOverrides:{}};return!Zn&&typeof pa!="string"&&Ha.length===0?(Zl.toForward=js,Zl):Object.keys(js).reduce(function(ko,te){return Ha.indexOf(te)!==-1||(gi.indexOf(te)!==-1||ar(pa,te)?ko.toForward[te]=js[te]:Zn&&(ko.cssOverrides[te]=js[te])),ko},Zl)}var Yn=ue(ta);Object.assign(Yn,M.reduce(function(Xn,Vr){return Xn[Vr]=Yn(Vr),Xn},{})),Object.assign(Yn,M.reduce(function(Xn,Vr){var Zn=Qa(Vr);return Xn[Zn]=Yn[Vr](),Xn[Zn].displayName="glamorous."+Zn,Xn[Zn].propsAreCssOverrides=!0,Xn},{}));function Qa(Xn){return Xn.slice(0,1).toUpperCase()+Xn.slice(1)}Yn.default=Yn;var Ua=Yn.A,Fi=Yn.Abbr,Xa=Yn.Acronym,$i=Yn.Address,La=Yn.Applet,ja=Yn.Area,ei=Yn.Article,Do=Yn.Aside,yo=Yn.Audio,to=Yn.B,fs=Yn.Base,cs=Yn.Basefont,Os=Yn.Bdi,vl=Yn.Bdo,Ar=Yn.Bgsound,Rn=Yn.Big,Sr=Yn.Blink,nn=Yn.Blockquote,sn=Yn.Body,Ot=Yn.Br,gr=Yn.Button,Gr=Yn.Canvas,Ln=Yn.Caption,Tr=Yn.Center,Dn=Yn.Cite,Pr=Yn.Code,fa=Yn.Col,ka=Yn.Colgroup,Li=Yn.Command,zi=Yn.Content,Mo=Yn.Data,Za=Yn.Datalist,ao=Yn.Dd,Mi=Yn.Del,Eo=Yn.Details,Xi=Yn.Dfn,Bo=Yn.Dialog,ol=Yn.Dir,Il=Yn.Div,ms=Yn.Dl,mc=Yn.Dt,Ys=Yn.Element,hl=Yn.Em,Rs=Yn.Embed,xl=Yn.Fieldset,Wl=Yn.Figcaption,_l=Yn.Figure,Ls=Yn.Font,zn=Yn.Footer,Dr=Yn.Form,Hr=Yn.Frame,_a=Yn.Frameset,Ti=Yn.H1,Ci=Yn.H2,da=Yn.H3,Da=Yn.H4,mi=Yn.H5,Ho=Yn.H6,al=Yn.Head,ml=Yn.Header,Xs=Yn.Hgroup,Ps=Yn.Hr,dl=Yn.Html,ql=Yn.I,Dc=Yn.Iframe,Jl=Yn.Image,oc=Yn.Img,xu=Yn.Input,yf=Yn.Ins,ku=Yn.Isindex,Zc=Yn.Kbd,Zu=Yn.Keygen,Fc=Yn.Label,Hc=Yn.Legend,Vu=Yn.Li,ws=Yn.Link,fc=Yn.Listing,Tc=Yn.Main,jc=Yn.Map,lu=Yn.Mark,hu=Yn.Marquee,of=Yn.Math,uu=Yn.Menu,zu=Yn.Menuitem,cf=Yn.Meta,bf=Yn.Meter,Cu=Yn.Multicol,rf=Yn.Nav,Bu=Yn.Nextid,Tf=Yn.Nobr,ed=Yn.Noembed,Fd=Yn.Noframes,Pd=Yn.Noscript,Nc=Yn.Object,eu=Yn.Ol,If=Yn.Optgroup,$f=Yn.Option,Te=Yn.Output,_t=Yn.P,Vn=Yn.Param,br=Yn.Picture,tn=Yn.Plaintext,Pt=Yn.Pre,on=Yn.Progress,_n=Yn.Q,ir=Yn.Rb,xr=Yn.Rbc,aa=Yn.Rp,oi=Yn.Rt,ni=Yn.Rtc,yi=Yn.Ruby,Zo=Yn.S,is=Yn.Samp,mo=Yn.Script,Ml=Yn.Section,yc=Yn.Select,oa=Yn.Shadow,sl=Yn.Slot,fl=Yn.Small,bc=Yn.Source,Rf=Yn.Spacer,Ms=Yn.Span,ff=Yn.Strike,Df=Yn.Strong,Ff=Yn.Style,Kf=Yn.Sub,xf=Yn.Summary,Sc=Yn.Sup,Wu=Yn.Svg,Du=Yn.Table,Gd=Yn.Tbody,gf=Yn.Td,Vp=Yn.Template,$c=Yn.Textarea,Yl=Yn.Tfoot,Sp=Yn.Th,tp=Yn.Thead,Rp=Yn.Time,df=Yn.Title,uf=Yn.Tr,Af=Yn.Track,Wn=Yn.Tt,ca=Yn.U,ra=Yn.Ul,Na=Yn.Var,fi=Yn.Video,so=Yn.Wbr,vo=Yn.Xmp,Ro=Yn.AltGlyph,So=Yn.AltGlyphDef,el=Yn.AltGlyphItem,ul=Yn.Animate,Xo=Yn.AnimateColor,lo=Yn.AnimateMotion,Zs=Yn.AnimateTransform,Gs=Yn.Animation,$s=Yn.Circle,Qn=Yn.ClipPath,dr=Yn["Color-profile"],Xr=Yn.Cursor,la=Yn.Defs,Ra=Yn.Desc,_i=Yn.Discard,ui=Yn.Ellipse,ho=Yn.FeBlend,Oi=Yn.FeColorMatrix,Fo=Yn.FeComponentTransfer,as=Yn.FeComposite,Fs=Yn.FeConvolveMatrix,Fr=Yn.FeDiffuseLighting,tl=Yn.FeDisplacementMap,Js=Yn.FeDistantLight,Us=Yn.FeDropShadow,os=Yn.FeFlood,El=Yn.FeFuncA,Bs=Yn.FeFuncB,gc=Yn.FeFuncG,kr=Yn.FeFuncR,Sa=Yn.FeGaussianBlur,Hi=Yn.FeImage,Co=Yn.FeMerge,Ds=Yn.FeMergeNode,Dl=Yn.FeMorphology,Xc=Yn.FeOffset,Fl=Yn.FePointLight,Eu=Yn.FeSpecularLighting,cc=Yn.FeSpotLight,Hu=Yn.FeTile,dc=Yn.FeTurbulence,iu=Yn.Filter,Gc=Yn["Font-face"],Jc=Yn["Font-face-format"],pf=Yn["Font-face-name"],hn=Yn["Font-face-src"],dn=Yn["Font-face-uri"],tr=Yn.ForeignObject,Mn=Yn.G,Lr=Yn.Glyph,sa=Yn.GlyphRef,Ma=Yn.Handler,Ia=Yn.Hatch,Ja=Yn.Hatchpath,pi=Yn.Hkern,fo=Yn.Line,us=Yn.LinearGradient,xo=Yn.Listener,Qo=Yn.Marker,gs=Yn.Mask,ds=Yn.Mesh,nl=Yn.Meshgradient,nc=Yn.Meshpatch,Kl=Yn.Meshrow,mu=Yn.Metadata,xc=Yn["Missing-glyph"],Ll=Yn.Mpath,wc=Yn.Path,Xu=Yn.Pattern,_u=Yn.Polygon,wu=Yn.Polyline,fu=Yn.Prefetch,Kc=Yn.RadialGradient,td=Yn.Rect,Ic=Yn.Set,tu=Yn.SolidColor,jf=Yn.Solidcolor,Tu=Yn.Stop,Ed=Yn.Switch,vd=Yn.Symbol,Gu=Yn.Tbreak,Op=Yn.Text,np=Yn.TextArea,$d=Yn.TextPath,hd=Yn.Tref,Ip=Yn.Tspan,dd=Yn.Unknown,cr=Yn.Use,un=Yn.View,Jn=Yn.Vkern;N.default=Yn},42445:function(oe,N,o){var x=typeof o.g!="undefined"?o.g:typeof window!="undefined"?window:{},g=o(25893),A;typeof document!="undefined"?A=document:(A=x["__GLOBAL_DOCUMENT_CACHE@4"],A||(A=x["__GLOBAL_DOCUMENT_CACHE@4"]=g)),oe.exports=A},78001:function(oe,N,o){var x;typeof window!="undefined"?x=window:typeof o.g!="undefined"?x=o.g:typeof self!="undefined"?x=self:x={},oe.exports=x},74880:function(oe){"use strict";var N={foo:{}},o=Object;oe.exports=function(){return{__proto__:N}.foo===N.foo&&!({__proto__:null}instanceof o)}},6532:function(oe,N,o){"use strict";var x=typeof Symbol!="undefined"&&Symbol,g=o(56539);oe.exports=function(){return typeof x!="function"||typeof Symbol!="function"||typeof x("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:g()}},56539:function(oe){"use strict";oe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},x=Symbol("test"),g=Object(x);if(typeof x=="string"||Object.prototype.toString.call(x)!=="[object Symbol]"||Object.prototype.toString.call(g)!=="[object Symbol]")return!1;var A=42;o[x]=A;for(x in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var y=Object.getOwnPropertySymbols(o);if(y.length!==1||y[0]!==x||!Object.prototype.propertyIsEnumerable.call(o,x))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var M=Object.getOwnPropertyDescriptor(o,x);if(M.value!==A||M.enumerable!==!0)return!1}return!0}},53836:function(oe,N,o){"use strict";var x=o(47137);oe.exports=x.call(Function.call,Object.prototype.hasOwnProperty)},83233:function(oe,N,o){"use strict";o.d(N,{lX:function(){return Q},q_:function(){return we},ob:function(){return D},PP:function(){return Pe},Ep:function(){return F},Hp:function(){return Z}});var x=o(22122);function g(pe){return pe.charAt(0)==="/"}function A(pe,Ie){for(var Je=Ie,ke=Je+1,De=pe.length;ke<De;Je+=1,ke+=1)pe[Je]=pe[ke];pe.pop()}function y(pe,Ie){Ie===void 0&&(Ie="");var Je=pe&&pe.split("/")||[],ke=Ie&&Ie.split("/")||[],De=pe&&g(pe),Fe=Ie&&g(Ie),Qe=De||Fe;if(pe&&g(pe)?ke=Je:Je.length&&(ke.pop(),ke=ke.concat(Je)),!ke.length)return"/";var qe;if(ke.length){var et=ke[ke.length-1];qe=et==="."||et===".."||et===""}else qe=!1;for(var dt=0,Ke=ke.length;Ke>=0;Ke--){var Ge=ke[Ke];Ge==="."?A(ke,Ke):Ge===".."?(A(ke,Ke),dt++):dt&&(A(ke,Ke),dt--)}if(!Qe)for(;dt--;dt)ke.unshift("..");Qe&&ke[0]!==""&&(!ke[0]||!g(ke[0]))&&ke.unshift("");var wt=ke.join("/");return qe&&wt.substr(-1)!=="/"&&(wt+="/"),wt}var M=y;function w(pe){return pe.valueOf?pe.valueOf():Object.prototype.valueOf.call(pe)}function m(pe,Ie){if(pe===Ie)return!0;if(pe==null||Ie==null)return!1;if(Array.isArray(pe))return Array.isArray(Ie)&&pe.length===Ie.length&&pe.every(function(De,Fe){return m(De,Ie[Fe])});if(typeof pe=="object"||typeof Ie=="object"){var Je=w(pe),ke=w(Ie);return Je!==pe||ke!==Ie?m(Je,ke):Object.keys(Object.assign({},pe,Ie)).every(function(De){return m(pe[De],Ie[De])})}return!1}var b=m,v=o(36855),h=o(3537);function d(pe){return pe.charAt(0)==="/"?pe:"/"+pe}function _(pe){return pe.charAt(0)==="/"?pe.substr(1):pe}function p(pe,Ie){return pe.toLowerCase().indexOf(Ie.toLowerCase())===0&&"/?#".indexOf(pe.charAt(Ie.length))!==-1}function S(pe,Ie){return p(pe,Ie)?pe.substr(Ie.length):pe}function k(pe){return pe.charAt(pe.length-1)==="/"?pe.slice(0,-1):pe}function O(pe){var Ie=pe||"/",Je="",ke="",De=Ie.indexOf("#");De!==-1&&(ke=Ie.substr(De),Ie=Ie.substr(0,De));var Fe=Ie.indexOf("?");return Fe!==-1&&(Je=Ie.substr(Fe),Ie=Ie.substr(0,Fe)),{pathname:Ie,search:Je==="?"?"":Je,hash:ke==="#"?"":ke}}function F(pe){var Ie=pe.pathname,Je=pe.search,ke=pe.hash,De=Ie||"/";return Je&&Je!=="?"&&(De+=Je.charAt(0)==="?"?Je:"?"+Je),ke&&ke!=="#"&&(De+=ke.charAt(0)==="#"?ke:"#"+ke),De}function D(pe,Ie,Je,ke){var De;typeof pe=="string"?(De=O(pe),De.query=De.search?v.parse(De.search):{},De.state=Ie):(De=(0,x.Z)({},pe),De.pathname===void 0&&(De.pathname=""),De.search?(De.search.charAt(0)!=="?"&&(De.search="?"+De.search),De.query=v.parse(De.search)):(De.search=De.query?v.stringify(De.query):"",De.query=De.query||{}),De.hash?De.hash.charAt(0)!=="#"&&(De.hash="#"+De.hash):De.hash="",Ie!==void 0&&De.state===void 0&&(De.state=Ie));try{De.pathname=decodeURI(De.pathname)}catch(Fe){throw Fe instanceof URIError?new URIError('Pathname "'+De.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):Fe}return Je&&(De.key=Je),ke?De.pathname?De.pathname.charAt(0)!=="/"&&(De.pathname=M(De.pathname,ke.pathname)):De.pathname=ke.pathname:De.pathname||(De.pathname="/"),De}function Z(pe,Ie){return pe.pathname===Ie.pathname&&pe.search===Ie.search&&pe.hash===Ie.hash&&pe.key===Ie.key&&b(pe.state,Ie.state)}function W(){var pe=null;function Ie(Qe){return pe=Qe,function(){pe===Qe&&(pe=null)}}function Je(Qe,qe,et,dt){if(pe!=null){var Ke=typeof pe=="function"?pe(Qe,qe):pe;typeof Ke=="string"?typeof et=="function"?et(Ke,dt):dt(!0):dt(Ke!==!1)}else dt(!0)}var ke=[];function De(Qe){var qe=!0;function et(){qe&&Qe.apply(void 0,arguments)}return ke.push(et),function(){qe=!1,ke=ke.filter(function(dt){return dt!==et})}}function Fe(){for(var Qe=arguments.length,qe=new Array(Qe),et=0;et<Qe;et++)qe[et]=arguments[et];ke.forEach(function(dt){return dt.apply(void 0,qe)})}return{setPrompt:Ie,confirmTransitionTo:Je,appendListener:De,notifyListeners:Fe}}var U=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function L(pe,Ie){Ie(window.confirm(pe))}function V(){var pe=window.navigator.userAgent;return(pe.indexOf("Android 2.")!==-1||pe.indexOf("Android 4.0")!==-1)&&pe.indexOf("Mobile Safari")!==-1&&pe.indexOf("Chrome")===-1&&pe.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function $(){return window.navigator.userAgent.indexOf("Trident")===-1}function G(){return window.navigator.userAgent.indexOf("Firefox")===-1}function z(pe){return pe.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var K="popstate",re="hashchange";function ne(){try{return window.history.state||{}}catch(pe){return{}}}function Q(pe){pe===void 0&&(pe={}),U||(0,h.Z)(!1);var Ie=window.history,Je=V(),ke=!$(),De=pe,Fe=De.forceRefresh,Qe=Fe===void 0?!1:Fe,qe=De.getUserConfirmation,et=qe===void 0?L:qe,dt=De.keyLength,Ke=dt===void 0?6:dt,Ge=pe.basename?k(d(pe.basename)):"";function wt(an){var Un=an||{},qt=Un.key,rn=Un.state,cn=window.location,er=cn.pathname,rr=cn.search,nt=cn.hash,lr=er+rr+nt;return Ge&&(lr=S(lr,Ge)),D(lr,rn,qt)}function Vt(){return Math.random().toString(36).substr(2,Ke)}var gt=W();function it(an){(0,x.Z)(Qt,an),Qt.length=Ie.length,gt.notifyListeners(Qt.location,Qt.action)}function Le(an){z(an)||jt(wt(an.state))}function ct(){jt(wt(ne()))}var at=!1;function jt(an){if(at)at=!1,it();else{var Un="POP";gt.confirmTransitionTo(an,Un,et,function(qt){qt?it({action:Un,location:an}):St(an)})}}function St(an){var Un=Qt.location,qt=Xt.indexOf(Un.key);qt===-1&&(qt=0);var rn=Xt.indexOf(an.key);rn===-1&&(rn=0);var cn=qt-rn;cn&&(at=!0,ze(cn))}var fn=wt(ne()),Xt=[fn.key];function Yt(an){return Ge+F(an)}function Rt(an,Un){var qt="PUSH",rn=D(an,Un,Vt(),Qt.location);gt.confirmTransitionTo(rn,qt,et,function(cn){if(!!cn){var er=Yt(rn),rr=rn.key,nt=rn.state;if(Je)if(Ie.pushState({key:rr,state:nt},null,er),Qe)window.location.href=er;else{var lr=Xt.indexOf(Qt.location.key),Hn=Xt.slice(0,lr+1);Hn.push(rn.key),Xt=Hn,it({action:qt,location:rn})}else window.location.href=er}})}function Lt(an,Un){var qt="REPLACE",rn=D(an,Un,Vt(),Qt.location);gt.confirmTransitionTo(rn,qt,et,function(cn){if(!!cn){var er=Yt(rn),rr=rn.key,nt=rn.state;if(Je)if(Ie.replaceState({key:rr,state:nt},null,er),Qe)window.location.replace(er);else{var lr=Xt.indexOf(Qt.location.key);lr!==-1&&(Xt[lr]=rn.key),it({action:qt,location:rn})}else window.location.replace(er)}})}function ze(an){Ie.go(an)}function rt(){ze(-1)}function tt(){ze(1)}var de=0;function ot(an){de+=an,de===1&&an===1?(window.addEventListener(K,Le),ke&&window.addEventListener(re,ct)):de===0&&(window.removeEventListener(K,Le),ke&&window.removeEventListener(re,ct))}var Et=!1;function Ht(an){an===void 0&&(an=!1);var Un=gt.setPrompt(an);return Et||(ot(1),Et=!0),function(){return Et&&(Et=!1,ot(-1)),Un()}}function Jt(an){var Un=gt.appendListener(an);return ot(1),function(){ot(-1),Un()}}var Qt={length:Ie.length,action:"POP",location:fn,createHref:Yt,push:Rt,replace:Lt,go:ze,goBack:rt,goForward:tt,block:Ht,listen:Jt};return Qt}var ue="hashchange",he={hashbang:{encodePath:function(Ie){return Ie.charAt(0)==="!"?Ie:"!/"+_(Ie)},decodePath:function(Ie){return Ie.charAt(0)==="!"?Ie.substr(1):Ie}},noslash:{encodePath:_,decodePath:d},slash:{encodePath:d,decodePath:d}};function Ee(pe){var Ie=pe.indexOf("#");return Ie===-1?pe:pe.slice(0,Ie)}function ce(){var pe=window.location.href,Ie=pe.indexOf("#");return Ie===-1?"":pe.substring(Ie+1)}function ve(pe){window.location.hash=pe}function fe(pe){window.location.replace(Ee(window.location.href)+"#"+pe)}function we(pe){pe===void 0&&(pe={}),U||(0,h.Z)(!1);var Ie=window.history,Je=G(),ke=pe,De=ke.getUserConfirmation,Fe=De===void 0?L:De,Qe=ke.hashType,qe=Qe===void 0?"slash":Qe,et=pe.basename?k(d(pe.basename)):"",dt=he[qe],Ke=dt.encodePath,Ge=dt.decodePath;function wt(){var qt=Ge(ce());return et&&(qt=S(qt,et)),D(qt)}var Vt=W();function gt(qt){(0,x.Z)(Un,qt),Un.length=Ie.length,Vt.notifyListeners(Un.location,Un.action)}var it=!1,Le=null;function ct(qt,rn){return qt.pathname===rn.pathname&&qt.search===rn.search&&qt.hash===rn.hash}function at(){var qt=ce(),rn=Ke(qt);if(qt!==rn)fe(rn);else{var cn=wt(),er=Un.location;if(!it&&ct(er,cn)||Le===F(cn))return;Le=null,jt(cn)}}function jt(qt){if(it)it=!1,gt();else{var rn="POP";Vt.confirmTransitionTo(qt,rn,Fe,function(cn){cn?gt({action:rn,location:qt}):St(qt)})}}function St(qt){var rn=Un.location,cn=Rt.lastIndexOf(F(rn));cn===-1&&(cn=0);var er=Rt.lastIndexOf(F(qt));er===-1&&(er=0);var rr=cn-er;rr&&(it=!0,tt(rr))}var fn=ce(),Xt=Ke(fn);fn!==Xt&&fe(Xt);var Yt=wt(),Rt=[F(Yt)];function Lt(qt){var rn=document.querySelector("base"),cn="";return rn&&rn.getAttribute("href")&&(cn=Ee(window.location.href)),cn+"#"+Ke(et+F(qt))}function ze(qt,rn){var cn="PUSH",er=D(qt,void 0,void 0,Un.location);Vt.confirmTransitionTo(er,cn,Fe,function(rr){if(!!rr){var nt=F(er),lr=Ke(et+nt),Hn=ce()!==lr;if(Hn){Le=nt,ve(lr);var ut=Rt.lastIndexOf(F(Un.location)),bt=Rt.slice(0,ut+1);bt.push(nt),Rt=bt,gt({action:cn,location:er})}else gt()}})}function rt(qt,rn){var cn="REPLACE",er=D(qt,void 0,void 0,Un.location);Vt.confirmTransitionTo(er,cn,Fe,function(rr){if(!!rr){var nt=F(er),lr=Ke(et+nt),Hn=ce()!==lr;Hn&&(Le=nt,fe(lr));var ut=Rt.indexOf(F(Un.location));ut!==-1&&(Rt[ut]=nt),gt({action:cn,location:er})}})}function tt(qt){Ie.go(qt)}function de(){tt(-1)}function ot(){tt(1)}var Et=0;function Ht(qt){Et+=qt,Et===1&&qt===1?window.addEventListener(ue,at):Et===0&&window.removeEventListener(ue,at)}var Jt=!1;function Qt(qt){qt===void 0&&(qt=!1);var rn=Vt.setPrompt(qt);return Jt||(Ht(1),Jt=!0),function(){return Jt&&(Jt=!1,Ht(-1)),rn()}}function an(qt){var rn=Vt.appendListener(qt);return Ht(1),function(){Ht(-1),rn()}}var Un={length:Ie.length,action:"POP",location:Yt,createHref:Lt,push:ze,replace:rt,go:tt,goBack:de,goForward:ot,block:Qt,listen:an};return Un}function me(pe,Ie,Je){return Math.min(Math.max(pe,Ie),Je)}function Pe(pe){pe===void 0&&(pe={});var Ie=pe,Je=Ie.getUserConfirmation,ke=Ie.initialEntries,De=ke===void 0?["/"]:ke,Fe=Ie.initialIndex,Qe=Fe===void 0?0:Fe,qe=Ie.keyLength,et=qe===void 0?6:qe,dt=W();function Ke(Rt){(0,x.Z)(Yt,Rt),Yt.length=Yt.entries.length,dt.notifyListeners(Yt.location,Yt.action)}function Ge(){return Math.random().toString(36).substr(2,et)}var wt=me(Qe,0,De.length-1),Vt=De.map(function(Rt){return typeof Rt=="string"?D(Rt,void 0,Ge()):D(Rt,void 0,Rt.key||Ge())}),gt=F;function it(Rt,Lt){var ze="PUSH",rt=D(Rt,Lt,Ge(),Yt.location);dt.confirmTransitionTo(rt,ze,Je,function(tt){if(!!tt){var de=Yt.index,ot=de+1,Et=Yt.entries.slice(0);Et.length>ot?Et.splice(ot,Et.length-ot,rt):Et.push(rt),Ke({action:ze,location:rt,index:ot,entries:Et})}})}function Le(Rt,Lt){var ze="REPLACE",rt=D(Rt,Lt,Ge(),Yt.location);dt.confirmTransitionTo(rt,ze,Je,function(tt){!tt||(Yt.entries[Yt.index]=rt,Ke({action:ze,location:rt}))})}function ct(Rt){var Lt=me(Yt.index+Rt,0,Yt.entries.length-1),ze="POP",rt=Yt.entries[Lt];dt.confirmTransitionTo(rt,ze,Je,function(tt){tt?Ke({action:ze,location:rt,index:Lt}):Ke()})}function at(){ct(-1)}function jt(){ct(1)}function St(Rt){var Lt=Yt.index+Rt;return Lt>=0&&Lt<Yt.entries.length}function fn(Rt){return Rt===void 0&&(Rt=!1),dt.setPrompt(Rt)}function Xt(Rt){return dt.appendListener(Rt)}var Yt={length:Vt.length,action:"POP",location:Vt[wt],index:wt,entries:Vt,createHref:gt,push:it,replace:Le,go:ct,goBack:at,goForward:jt,canGo:St,block:fn,listen:Xt};return Yt}},22691:function(oe){"use strict";var N={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},x=typeof Object.getOwnPropertySymbols=="function";oe.exports=function(A,y,M){if(typeof y!="string"){var w=Object.getOwnPropertyNames(y);x&&(w=w.concat(Object.getOwnPropertySymbols(y)));for(var m=0;m<w.length;++m)if(!N[w[m]]&&!o[w[m]]&&(!M||!M[w[m]]))try{A[w[m]]=y[w[m]]}catch(b){}}return A}},97136:function(oe,N,o){"use strict";o.r(N);var x=/[A-Z]/g,g=/^ms-/,A={};function y(w){return"-"+w.toLowerCase()}function M(w){if(A.hasOwnProperty(w))return A[w];var m=w.replace(x,y);return A[w]=g.test(m)?"-"+m:m}N.default=M},62117:function(oe,N){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */N.read=function(o,x,g,A,y){var M,w,m=y*8-A-1,b=(1<<m)-1,v=b>>1,h=-7,d=g?y-1:0,_=g?-1:1,p=o[x+d];for(d+=_,M=p&(1<<-h)-1,p>>=-h,h+=m;h>0;M=M*256+o[x+d],d+=_,h-=8);for(w=M&(1<<-h)-1,M>>=-h,h+=A;h>0;w=w*256+o[x+d],d+=_,h-=8);if(M===0)M=1-v;else{if(M===b)return w?NaN:(p?-1:1)*Infinity;w=w+Math.pow(2,A),M=M-v}return(p?-1:1)*w*Math.pow(2,M-A)},N.write=function(o,x,g,A,y,M){var w,m,b,v=M*8-y-1,h=(1<<v)-1,d=h>>1,_=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=A?0:M-1,S=A?1:-1,k=x<0||x===0&&1/x<0?1:0;for(x=Math.abs(x),isNaN(x)||x===Infinity?(m=isNaN(x)?1:0,w=h):(w=Math.floor(Math.log(x)/Math.LN2),x*(b=Math.pow(2,-w))<1&&(w--,b*=2),w+d>=1?x+=_/b:x+=_*Math.pow(2,1-d),x*b>=2&&(w++,b/=2),w+d>=h?(m=0,w=h):w+d>=1?(m=(x*b-1)*Math.pow(2,y),w=w+d):(m=x*Math.pow(2,d-1)*Math.pow(2,y),w=0));y>=8;o[g+p]=m&255,p+=S,m/=256,y-=8);for(w=w<<y|m,v+=y;v>0;o[g+p]=w&255,p+=S,w/=256,v-=8);o[g+p-S]|=k*128}},8645:function(oe){var N=[],o=[],x="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function g(y,M){if(M=M||{},y===void 0)throw new Error(x);var w=M.prepend===!0?"prepend":"append",m=M.container!==void 0?M.container:document.querySelector("head"),b=N.indexOf(m);b===-1&&(b=N.push(m)-1,o[b]={});var v;return o[b]!==void 0&&o[b][w]!==void 0?v=o[b][w]:(v=o[b][w]=A(),w==="prepend"?m.insertBefore(v,m.childNodes[0]):m.appendChild(v)),y.charCodeAt(0)===65279&&(y=y.substr(1,y.length)),v.styleSheet?v.styleSheet.cssText+=y:v.textContent+=y,v}function A(){var y=document.createElement("style");return y.setAttribute("type","text/css"),y}oe.exports=g,oe.exports.insertCss=g},78267:function(oe){"use strict";var N=function(x,g,A,y,M,w,m,b){if(!x){var v;if(g===void 0)v=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[A,y,M,w,m,b],d=0;v=new Error(g.replace(/%s/g,function(){return h[d++]})),v.name="Invariant Violation"}throw v.framesToPop=1,v}};oe.exports=N},8253:function(oe){oe.exports=function(o){return!o||typeof o=="string"?!1:o instanceof Array||Array.isArray(o)||o.length>=0&&(o.splice instanceof Function||Object.getOwnPropertyDescriptor(o,o.length-1)&&o.constructor.name!=="String")}},15933:function(oe,N,o){"use strict";/*!
|
||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||
*
|
||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
* Released under the MIT License.
|
||
*/var x=o(19136);function g(A){return x(A)===!0&&Object.prototype.toString.call(A)==="[object Object]"}oe.exports=function(y){var M,w;return!(g(y)===!1||(M=y.constructor,typeof M!="function")||(w=M.prototype,g(w)===!1)||w.hasOwnProperty("isPrototypeOf")===!1)}},19136:function(oe){"use strict";/*!
|
||
* isobject <https://github.com/jonschlinkert/isobject>
|
||
*
|
||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
* Released under the MIT License.
|
||
*/oe.exports=function(o){return o!=null&&typeof o=="object"&&Array.isArray(o)===!1}},2327:function(oe,N,o){o(74408),oe.exports=self.fetch.bind(self)},59686:function(oe,N,o){var x="Expected a function",g=0/0,A="[object Symbol]",y=/^\s+|\s+$/g,M=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,m=/^0o[0-7]+$/i,b=parseInt,v=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g,h=typeof self=="object"&&self&&self.Object===Object&&self,d=v||h||Function("return this")(),_=Object.prototype,p=_.toString,S=Math.max,k=Math.min,O=function(){return d.Date.now()};function F(L,V,$){var G,z,K,re,ne,Q,ue=0,he=!1,Ee=!1,ce=!0;if(typeof L!="function")throw new TypeError(x);V=U(V)||0,D($)&&(he=!!$.leading,Ee="maxWait"in $,K=Ee?S(U($.maxWait)||0,V):K,ce="trailing"in $?!!$.trailing:ce);function ve(De){var Fe=G,Qe=z;return G=z=void 0,ue=De,re=L.apply(Qe,Fe),re}function fe(De){return ue=De,ne=setTimeout(Pe,V),he?ve(De):re}function we(De){var Fe=De-Q,Qe=De-ue,qe=V-Fe;return Ee?k(qe,K-Qe):qe}function me(De){var Fe=De-Q,Qe=De-ue;return Q===void 0||Fe>=V||Fe<0||Ee&&Qe>=K}function Pe(){var De=O();if(me(De))return pe(De);ne=setTimeout(Pe,we(De))}function pe(De){return ne=void 0,ce&&G?ve(De):(G=z=void 0,re)}function Ie(){ne!==void 0&&clearTimeout(ne),ue=0,G=Q=z=ne=void 0}function Je(){return ne===void 0?re:pe(O())}function ke(){var De=O(),Fe=me(De);if(G=arguments,z=this,Q=De,Fe){if(ne===void 0)return fe(Q);if(Ee)return ne=setTimeout(Pe,V),ve(Q)}return ne===void 0&&(ne=setTimeout(Pe,V)),re}return ke.cancel=Ie,ke.flush=Je,ke}function D(L){var V=typeof L;return!!L&&(V=="object"||V=="function")}function Z(L){return!!L&&typeof L=="object"}function W(L){return typeof L=="symbol"||Z(L)&&p.call(L)==A}function U(L){if(typeof L=="number")return L;if(W(L))return g;if(D(L)){var V=typeof L.valueOf=="function"?L.valueOf():L;L=D(V)?V+"":V}if(typeof L!="string")return L===0?L:+L;L=L.replace(y,"");var $=w.test(L);return $||m.test(L)?b(L.slice(2),$?2:8):M.test(L)?g:+L}oe.exports=F},56338:function(oe,N,o){var x="Expected a function",g="__lodash_hash_undefined__",A=1/0,y="[object Function]",M="[object GeneratorFunction]",w="[object Symbol]",m=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,b=/^\w*$/,v=/^\./,h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/[\\^$.*+?()[\]{}|]/g,_=/\\(\\)?/g,p=/^\[object .+?Constructor\]$/,S=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g,k=typeof self=="object"&&self&&self.Object===Object&&self,O=S||k||Function("return this")();function F(Qt,an){return Qt==null?void 0:Qt[an]}function D(Qt){var an=!1;if(Qt!=null&&typeof Qt.toString!="function")try{an=!!(Qt+"")}catch(Un){}return an}var Z=Array.prototype,W=Function.prototype,U=Object.prototype,L=O["__core-js_shared__"],V=function(){var Qt=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||"");return Qt?"Symbol(src)_1."+Qt:""}(),$=W.toString,G=U.hasOwnProperty,z=U.toString,K=RegExp("^"+$.call(G).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=O.Symbol,ne=Z.splice,Q=at(O,"Map"),ue=at(Object,"create"),he=re?re.prototype:void 0,Ee=he?he.toString:void 0;function ce(Qt){var an=-1,Un=Qt?Qt.length:0;for(this.clear();++an<Un;){var qt=Qt[an];this.set(qt[0],qt[1])}}function ve(){this.__data__=ue?ue(null):{}}function fe(Qt){return this.has(Qt)&&delete this.__data__[Qt]}function we(Qt){var an=this.__data__;if(ue){var Un=an[Qt];return Un===g?void 0:Un}return G.call(an,Qt)?an[Qt]:void 0}function me(Qt){var an=this.__data__;return ue?an[Qt]!==void 0:G.call(an,Qt)}function Pe(Qt,an){var Un=this.__data__;return Un[Qt]=ue&&an===void 0?g:an,this}ce.prototype.clear=ve,ce.prototype.delete=fe,ce.prototype.get=we,ce.prototype.has=me,ce.prototype.set=Pe;function pe(Qt){var an=-1,Un=Qt?Qt.length:0;for(this.clear();++an<Un;){var qt=Qt[an];this.set(qt[0],qt[1])}}function Ie(){this.__data__=[]}function Je(Qt){var an=this.__data__,Un=wt(an,Qt);if(Un<0)return!1;var qt=an.length-1;return Un==qt?an.pop():ne.call(an,Un,1),!0}function ke(Qt){var an=this.__data__,Un=wt(an,Qt);return Un<0?void 0:an[Un][1]}function De(Qt){return wt(this.__data__,Qt)>-1}function Fe(Qt,an){var Un=this.__data__,qt=wt(Un,Qt);return qt<0?Un.push([Qt,an]):Un[qt][1]=an,this}pe.prototype.clear=Ie,pe.prototype.delete=Je,pe.prototype.get=ke,pe.prototype.has=De,pe.prototype.set=Fe;function Qe(Qt){var an=-1,Un=Qt?Qt.length:0;for(this.clear();++an<Un;){var qt=Qt[an];this.set(qt[0],qt[1])}}function qe(){this.__data__={hash:new ce,map:new(Q||pe),string:new ce}}function et(Qt){return ct(this,Qt).delete(Qt)}function dt(Qt){return ct(this,Qt).get(Qt)}function Ke(Qt){return ct(this,Qt).has(Qt)}function Ge(Qt,an){return ct(this,Qt).set(Qt,an),this}Qe.prototype.clear=qe,Qe.prototype.delete=et,Qe.prototype.get=dt,Qe.prototype.has=Ke,Qe.prototype.set=Ge;function wt(Qt,an){for(var Un=Qt.length;Un--;)if(ze(Qt[Un][0],an))return Un;return-1}function Vt(Qt,an){an=jt(an,Qt)?[an]:Le(an);for(var Un=0,qt=an.length;Qt!=null&&Un<qt;)Qt=Qt[Yt(an[Un++])];return Un&&Un==qt?Qt:void 0}function gt(Qt){if(!de(Qt)||fn(Qt))return!1;var an=tt(Qt)||D(Qt)?K:p;return an.test(Rt(Qt))}function it(Qt){if(typeof Qt=="string")return Qt;if(Et(Qt))return Ee?Ee.call(Qt):"";var an=Qt+"";return an=="0"&&1/Qt==-A?"-0":an}function Le(Qt){return rt(Qt)?Qt:Xt(Qt)}function ct(Qt,an){var Un=Qt.__data__;return St(an)?Un[typeof an=="string"?"string":"hash"]:Un.map}function at(Qt,an){var Un=F(Qt,an);return gt(Un)?Un:void 0}function jt(Qt,an){if(rt(Qt))return!1;var Un=typeof Qt;return Un=="number"||Un=="symbol"||Un=="boolean"||Qt==null||Et(Qt)?!0:b.test(Qt)||!m.test(Qt)||an!=null&&Qt in Object(an)}function St(Qt){var an=typeof Qt;return an=="string"||an=="number"||an=="symbol"||an=="boolean"?Qt!=="__proto__":Qt===null}function fn(Qt){return!!V&&V in Qt}var Xt=Lt(function(Qt){Qt=Ht(Qt);var an=[];return v.test(Qt)&&an.push(""),Qt.replace(h,function(Un,qt,rn,cn){an.push(rn?cn.replace(_,"$1"):qt||Un)}),an});function Yt(Qt){if(typeof Qt=="string"||Et(Qt))return Qt;var an=Qt+"";return an=="0"&&1/Qt==-A?"-0":an}function Rt(Qt){if(Qt!=null){try{return $.call(Qt)}catch(an){}try{return Qt+""}catch(an){}}return""}function Lt(Qt,an){if(typeof Qt!="function"||an&&typeof an!="function")throw new TypeError(x);var Un=function qt(){var rn=arguments,cn=an?an.apply(this,rn):rn[0],er=qt.cache;if(er.has(cn))return er.get(cn);var rr=Qt.apply(this,rn);return qt.cache=er.set(cn,rr),rr};return Un.cache=new(Lt.Cache||Qe),Un}Lt.Cache=Qe;function ze(Qt,an){return Qt===an||Qt!==Qt&&an!==an}var rt=Array.isArray;function tt(Qt){var an=de(Qt)?z.call(Qt):"";return an==y||an==M}function de(Qt){var an=typeof Qt;return!!Qt&&(an=="object"||an=="function")}function ot(Qt){return!!Qt&&typeof Qt=="object"}function Et(Qt){return typeof Qt=="symbol"||ot(Qt)&&z.call(Qt)==w}function Ht(Qt){return Qt==null?"":it(Qt)}function Jt(Qt,an,Un){var qt=Qt==null?void 0:Vt(Qt,an);return qt===void 0?Un:qt}oe.exports=Jt},78117:function(oe,N,o){oe=o.nmd(oe);var x=200,g="__lodash_hash_undefined__",A=1,y=2,M=9007199254740991,w="[object Arguments]",m="[object Array]",b="[object AsyncFunction]",v="[object Boolean]",h="[object Date]",d="[object Error]",_="[object Function]",p="[object GeneratorFunction]",S="[object Map]",k="[object Number]",O="[object Null]",F="[object Object]",D="[object Promise]",Z="[object Proxy]",W="[object RegExp]",U="[object Set]",L="[object String]",V="[object Symbol]",$="[object Undefined]",G="[object WeakMap]",z="[object ArrayBuffer]",K="[object DataView]",re="[object Float32Array]",ne="[object Float64Array]",Q="[object Int8Array]",ue="[object Int16Array]",he="[object Int32Array]",Ee="[object Uint8Array]",ce="[object Uint8ClampedArray]",ve="[object Uint16Array]",fe="[object Uint32Array]",we=/[\\^$.*+?()[\]{}|]/g,me=/^\[object .+?Constructor\]$/,Pe=/^(?:0|[1-9]\d*)$/,pe={};pe[re]=pe[ne]=pe[Q]=pe[ue]=pe[he]=pe[Ee]=pe[ce]=pe[ve]=pe[fe]=!0,pe[w]=pe[m]=pe[z]=pe[v]=pe[K]=pe[h]=pe[d]=pe[_]=pe[S]=pe[k]=pe[F]=pe[W]=pe[U]=pe[L]=pe[G]=!1;var Ie=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g,Je=typeof self=="object"&&self&&self.Object===Object&&self,ke=Ie||Je||Function("return this")(),De=N&&!N.nodeType&&N,Fe=De&&!0&&oe&&!oe.nodeType&&oe,Qe=Fe&&Fe.exports===De,qe=Qe&&Ie.process,et=function(){try{return qe&&qe.binding&&qe.binding("util")}catch(Ln){}}(),dt=et&&et.isTypedArray;function Ke(Ln,Tr){for(var Dn=-1,Pr=Ln==null?0:Ln.length,fa=0,ka=[];++Dn<Pr;){var Li=Ln[Dn];Tr(Li,Dn,Ln)&&(ka[fa++]=Li)}return ka}function Ge(Ln,Tr){for(var Dn=-1,Pr=Tr.length,fa=Ln.length;++Dn<Pr;)Ln[fa+Dn]=Tr[Dn];return Ln}function wt(Ln,Tr){for(var Dn=-1,Pr=Ln==null?0:Ln.length;++Dn<Pr;)if(Tr(Ln[Dn],Dn,Ln))return!0;return!1}function Vt(Ln,Tr){for(var Dn=-1,Pr=Array(Ln);++Dn<Ln;)Pr[Dn]=Tr(Dn);return Pr}function gt(Ln){return function(Tr){return Ln(Tr)}}function it(Ln,Tr){return Ln.has(Tr)}function Le(Ln,Tr){return Ln==null?void 0:Ln[Tr]}function ct(Ln){var Tr=-1,Dn=Array(Ln.size);return Ln.forEach(function(Pr,fa){Dn[++Tr]=[fa,Pr]}),Dn}function at(Ln,Tr){return function(Dn){return Ln(Tr(Dn))}}function jt(Ln){var Tr=-1,Dn=Array(Ln.size);return Ln.forEach(function(Pr){Dn[++Tr]=Pr}),Dn}var St=Array.prototype,fn=Function.prototype,Xt=Object.prototype,Yt=ke["__core-js_shared__"],Rt=fn.toString,Lt=Xt.hasOwnProperty,ze=function(){var Ln=/[^.]+$/.exec(Yt&&Yt.keys&&Yt.keys.IE_PROTO||"");return Ln?"Symbol(src)_1."+Ln:""}(),rt=Xt.toString,tt=RegExp("^"+Rt.call(Lt).replace(we,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),de=Qe?ke.Buffer:void 0,ot=ke.Symbol,Et=ke.Uint8Array,Ht=Xt.propertyIsEnumerable,Jt=St.splice,Qt=ot?ot.toStringTag:void 0,an=Object.getOwnPropertySymbols,Un=de?de.isBuffer:void 0,qt=at(Object.keys,Object),rn=Yn(ke,"DataView"),cn=Yn(ke,"Map"),er=Yn(ke,"Promise"),rr=Yn(ke,"Set"),nt=Yn(ke,"WeakMap"),lr=Yn(Object,"create"),Hn=Do(rn),ut=Do(cn),bt=Do(er),We=Do(rr),be=Do(nt),Ae=ot?ot.prototype:void 0,Ue=Ae?Ae.valueOf:void 0;function $e(Ln){var Tr=-1,Dn=Ln==null?0:Ln.length;for(this.clear();++Tr<Dn;){var Pr=Ln[Tr];this.set(Pr[0],Pr[1])}}function kt(){this.__data__=lr?lr(null):{},this.size=0}function lt(Ln){var Tr=this.has(Ln)&&delete this.__data__[Ln];return this.size-=Tr?1:0,Tr}function vt(Ln){var Tr=this.__data__;if(lr){var Dn=Tr[Ln];return Dn===g?void 0:Dn}return Lt.call(Tr,Ln)?Tr[Ln]:void 0}function Ct(Ln){var Tr=this.__data__;return lr?Tr[Ln]!==void 0:Lt.call(Tr,Ln)}function Bt(Ln,Tr){var Dn=this.__data__;return this.size+=this.has(Ln)?0:1,Dn[Ln]=lr&&Tr===void 0?g:Tr,this}$e.prototype.clear=kt,$e.prototype.delete=lt,$e.prototype.get=vt,$e.prototype.has=Ct,$e.prototype.set=Bt;function mt(Ln){var Tr=-1,Dn=Ln==null?0:Ln.length;for(this.clear();++Tr<Dn;){var Pr=Ln[Tr];this.set(Pr[0],Pr[1])}}function Zt(){this.__data__=[],this.size=0}function zt(Ln){var Tr=this.__data__,Dn=Zr(Tr,Ln);if(Dn<0)return!1;var Pr=Tr.length-1;return Dn==Pr?Tr.pop():Jt.call(Tr,Dn,1),--this.size,!0}function ln(Ln){var Tr=this.__data__,Dn=Zr(Tr,Ln);return Dn<0?void 0:Tr[Dn][1]}function An(Ln){return Zr(this.__data__,Ln)>-1}function En(Ln,Tr){var Dn=this.__data__,Pr=Zr(Dn,Ln);return Pr<0?(++this.size,Dn.push([Ln,Tr])):Dn[Pr][1]=Tr,this}mt.prototype.clear=Zt,mt.prototype.delete=zt,mt.prototype.get=ln,mt.prototype.has=An,mt.prototype.set=En;function Gn(Ln){var Tr=-1,Dn=Ln==null?0:Ln.length;for(this.clear();++Tr<Dn;){var Pr=Ln[Tr];this.set(Pr[0],Pr[1])}}function Bn(){this.size=0,this.__data__={hash:new $e,map:new(cn||mt),string:new $e}}function pr(Ln){var Tr=ta(this,Ln).delete(Ln);return this.size-=Tr?1:0,Tr}function _r(Ln){return ta(this,Ln).get(Ln)}function na(Ln){return ta(this,Ln).has(Ln)}function $n(Ln,Tr){var Dn=ta(this,Ln),Pr=Dn.size;return Dn.set(Ln,Tr),this.size+=Dn.size==Pr?0:1,this}Gn.prototype.clear=Bn,Gn.prototype.delete=pr,Gn.prototype.get=_r,Gn.prototype.has=na,Gn.prototype.set=$n;function qr(Ln){var Tr=-1,Dn=Ln==null?0:Ln.length;for(this.__data__=new Gn;++Tr<Dn;)this.add(Ln[Tr])}function Jr(Ln){return this.__data__.set(Ln,g),this}function Aa(Ln){return this.__data__.has(Ln)}qr.prototype.add=qr.prototype.push=Jr,qr.prototype.has=Aa;function ya(Ln){var Tr=this.__data__=new mt(Ln);this.size=Tr.size}function $t(){this.__data__=new mt,this.size=0}function wn(Ln){var Tr=this.__data__,Dn=Tr.delete(Ln);return this.size=Tr.size,Dn}function Fn(Ln){return this.__data__.get(Ln)}function Or(Ln){return this.__data__.has(Ln)}function vr(Ln,Tr){var Dn=this.__data__;if(Dn instanceof mt){var Pr=Dn.__data__;if(!cn||Pr.length<x-1)return Pr.push([Ln,Tr]),this.size=++Dn.size,this;Dn=this.__data__=new Gn(Pr)}return Dn.set(Ln,Tr),this.size=Dn.size,this}ya.prototype.clear=$t,ya.prototype.delete=wn,ya.prototype.get=Fn,ya.prototype.has=Or,ya.prototype.set=vr;function Ur(Ln,Tr){var Dn=fs(Ln),Pr=!Dn&&to(Ln),fa=!Dn&&!Pr&&Os(Ln),ka=!Dn&&!Pr&&!fa&&sn(Ln),Li=Dn||Pr||fa||ka,zi=Li?Vt(Ln.length,String):[],Mo=zi.length;for(var Za in Ln)(Tr||Lt.call(Ln,Za))&&!(Li&&(Za=="length"||fa&&(Za=="offset"||Za=="parent")||ka&&(Za=="buffer"||Za=="byteLength"||Za=="byteOffset")||Xa(Za,Mo)))&&zi.push(Za);return zi}function Zr(Ln,Tr){for(var Dn=Ln.length;Dn--;)if(yo(Ln[Dn][0],Tr))return Dn;return-1}function Kr(Ln,Tr,Dn){var Pr=Tr(Ln);return fs(Ln)?Pr:Ge(Pr,Dn(Ln))}function ba(Ln){return Ln==null?Ln===void 0?$:O:Qt&&Qt in Object(Ln)?Qa(Ln):ei(Ln)}function Ri(Ln){return nn(Ln)&&ba(Ln)==w}function Ea(Ln,Tr,Dn,Pr,fa){return Ln===Tr?!0:Ln==null||Tr==null||!nn(Ln)&&!nn(Tr)?Ln!==Ln&&Tr!==Tr:Pi(Ln,Tr,Dn,Pr,Ea,fa)}function Pi(Ln,Tr,Dn,Pr,fa,ka){var Li=fs(Ln),zi=fs(Tr),Mo=Li?m:Fi(Ln),Za=zi?m:Fi(Tr);Mo=Mo==w?F:Mo,Za=Za==w?F:Za;var ao=Mo==F,Mi=Za==F,Eo=Mo==Za;if(Eo&&Os(Ln)){if(!Os(Tr))return!1;Li=!0,ao=!1}if(Eo&&!ao)return ka||(ka=new ya),Li||sn(Ln)?Kn(Ln,Tr,Dn,Pr,fa,ka):Pn(Ln,Tr,Mo,Dn,Pr,fa,ka);if(!(Dn&A)){var Xi=ao&&Lt.call(Ln,"__wrapped__"),Bo=Mi&&Lt.call(Tr,"__wrapped__");if(Xi||Bo){var ol=Xi?Ln.value():Ln,Il=Bo?Tr.value():Tr;return ka||(ka=new ya),fa(ol,Il,Dn,Pr,ka)}}return Eo?(ka||(ka=new ya),At(Ln,Tr,Dn,Pr,fa,ka)):!1}function rs(Ln){if(!Sr(Ln)||La(Ln))return!1;var Tr=Ar(Ln)?tt:me;return Tr.test(Do(Ln))}function Ui(Ln){return nn(Ln)&&Rn(Ln.length)&&!!pe[ba(Ln)]}function Cn(Ln){if(!ja(Ln))return qt(Ln);var Tr=[];for(var Dn in Object(Ln))Lt.call(Ln,Dn)&&Dn!="constructor"&&Tr.push(Dn);return Tr}function Kn(Ln,Tr,Dn,Pr,fa,ka){var Li=Dn&A,zi=Ln.length,Mo=Tr.length;if(zi!=Mo&&!(Li&&Mo>zi))return!1;var Za=ka.get(Ln);if(Za&&ka.get(Tr))return Za==Tr;var ao=-1,Mi=!0,Eo=Dn&y?new qr:void 0;for(ka.set(Ln,Tr),ka.set(Tr,Ln);++ao<zi;){var Xi=Ln[ao],Bo=Tr[ao];if(Pr)var ol=Li?Pr(Bo,Xi,ao,Tr,Ln,ka):Pr(Xi,Bo,ao,Ln,Tr,ka);if(ol!==void 0){if(ol)continue;Mi=!1;break}if(Eo){if(!wt(Tr,function(Il,ms){if(!it(Eo,ms)&&(Xi===Il||fa(Xi,Il,Dn,Pr,ka)))return Eo.push(ms)})){Mi=!1;break}}else if(!(Xi===Bo||fa(Xi,Bo,Dn,Pr,ka))){Mi=!1;break}}return ka.delete(Ln),ka.delete(Tr),Mi}function Pn(Ln,Tr,Dn,Pr,fa,ka,Li){switch(Dn){case K:if(Ln.byteLength!=Tr.byteLength||Ln.byteOffset!=Tr.byteOffset)return!1;Ln=Ln.buffer,Tr=Tr.buffer;case z:return!(Ln.byteLength!=Tr.byteLength||!ka(new Et(Ln),new Et(Tr)));case v:case h:case k:return yo(+Ln,+Tr);case d:return Ln.name==Tr.name&&Ln.message==Tr.message;case W:case L:return Ln==Tr+"";case S:var zi=ct;case U:var Mo=Pr&A;if(zi||(zi=jt),Ln.size!=Tr.size&&!Mo)return!1;var Za=Li.get(Ln);if(Za)return Za==Tr;Pr|=y,Li.set(Ln,Tr);var ao=Kn(zi(Ln),zi(Tr),Pr,fa,ka,Li);return Li.delete(Ln),ao;case V:if(Ue)return Ue.call(Ln)==Ue.call(Tr)}return!1}function At(Ln,Tr,Dn,Pr,fa,ka){var Li=Dn&A,zi=ar(Ln),Mo=zi.length,Za=ar(Tr),ao=Za.length;if(Mo!=ao&&!Li)return!1;for(var Mi=Mo;Mi--;){var Eo=zi[Mi];if(!(Li?Eo in Tr:Lt.call(Tr,Eo)))return!1}var Xi=ka.get(Ln);if(Xi&&ka.get(Tr))return Xi==Tr;var Bo=!0;ka.set(Ln,Tr),ka.set(Tr,Ln);for(var ol=Li;++Mi<Mo;){Eo=zi[Mi];var Il=Ln[Eo],ms=Tr[Eo];if(Pr)var mc=Li?Pr(ms,Il,Eo,Tr,Ln,ka):Pr(Il,ms,Eo,Ln,Tr,ka);if(!(mc===void 0?Il===ms||fa(Il,ms,Dn,Pr,ka):mc)){Bo=!1;break}ol||(ol=Eo=="constructor")}if(Bo&&!ol){var Ys=Ln.constructor,hl=Tr.constructor;Ys!=hl&&"constructor"in Ln&&"constructor"in Tr&&!(typeof Ys=="function"&&Ys instanceof Ys&&typeof hl=="function"&&hl instanceof hl)&&(Bo=!1)}return ka.delete(Ln),ka.delete(Tr),Bo}function ar(Ln){return Kr(Ln,Ot,Ua)}function ta(Ln,Tr){var Dn=Ln.__data__;return $i(Tr)?Dn[typeof Tr=="string"?"string":"hash"]:Dn.map}function Yn(Ln,Tr){var Dn=Le(Ln,Tr);return rs(Dn)?Dn:void 0}function Qa(Ln){var Tr=Lt.call(Ln,Qt),Dn=Ln[Qt];try{Ln[Qt]=void 0;var Pr=!0}catch(ka){}var fa=rt.call(Ln);return Pr&&(Tr?Ln[Qt]=Dn:delete Ln[Qt]),fa}var Ua=an?function(Ln){return Ln==null?[]:(Ln=Object(Ln),Ke(an(Ln),function(Tr){return Ht.call(Ln,Tr)}))}:gr,Fi=ba;(rn&&Fi(new rn(new ArrayBuffer(1)))!=K||cn&&Fi(new cn)!=S||er&&Fi(er.resolve())!=D||rr&&Fi(new rr)!=U||nt&&Fi(new nt)!=G)&&(Fi=function(Tr){var Dn=ba(Tr),Pr=Dn==F?Tr.constructor:void 0,fa=Pr?Do(Pr):"";if(fa)switch(fa){case Hn:return K;case ut:return S;case bt:return D;case We:return U;case be:return G}return Dn});function Xa(Ln,Tr){return Tr=Tr==null?M:Tr,!!Tr&&(typeof Ln=="number"||Pe.test(Ln))&&Ln>-1&&Ln%1==0&&Ln<Tr}function $i(Ln){var Tr=typeof Ln;return Tr=="string"||Tr=="number"||Tr=="symbol"||Tr=="boolean"?Ln!=="__proto__":Ln===null}function La(Ln){return!!ze&&ze in Ln}function ja(Ln){var Tr=Ln&&Ln.constructor,Dn=typeof Tr=="function"&&Tr.prototype||Xt;return Ln===Dn}function ei(Ln){return rt.call(Ln)}function Do(Ln){if(Ln!=null){try{return Rt.call(Ln)}catch(Tr){}try{return Ln+""}catch(Tr){}}return""}function yo(Ln,Tr){return Ln===Tr||Ln!==Ln&&Tr!==Tr}var to=Ri(function(){return arguments}())?Ri:function(Ln){return nn(Ln)&&Lt.call(Ln,"callee")&&!Ht.call(Ln,"callee")},fs=Array.isArray;function cs(Ln){return Ln!=null&&Rn(Ln.length)&&!Ar(Ln)}var Os=Un||Gr;function vl(Ln,Tr){return Ea(Ln,Tr)}function Ar(Ln){if(!Sr(Ln))return!1;var Tr=ba(Ln);return Tr==_||Tr==p||Tr==b||Tr==Z}function Rn(Ln){return typeof Ln=="number"&&Ln>-1&&Ln%1==0&&Ln<=M}function Sr(Ln){var Tr=typeof Ln;return Ln!=null&&(Tr=="object"||Tr=="function")}function nn(Ln){return Ln!=null&&typeof Ln=="object"}var sn=dt?gt(dt):Ui;function Ot(Ln){return cs(Ln)?Ur(Ln):Cn(Ln)}function gr(){return[]}function Gr(){return!1}oe.exports=vl},36903:function(oe,N,o){oe=o.nmd(oe);var x=200,g="__lodash_hash_undefined__",A=800,y=16,M=9007199254740991,w="[object Arguments]",m="[object Array]",b="[object AsyncFunction]",v="[object Boolean]",h="[object Date]",d="[object Error]",_="[object Function]",p="[object GeneratorFunction]",S="[object Map]",k="[object Number]",O="[object Null]",F="[object Object]",D="[object Proxy]",Z="[object RegExp]",W="[object Set]",U="[object String]",L="[object Undefined]",V="[object WeakMap]",$="[object ArrayBuffer]",G="[object DataView]",z="[object Float32Array]",K="[object Float64Array]",re="[object Int8Array]",ne="[object Int16Array]",Q="[object Int32Array]",ue="[object Uint8Array]",he="[object Uint8ClampedArray]",Ee="[object Uint16Array]",ce="[object Uint32Array]",ve=/[\\^$.*+?()[\]{}|]/g,fe=/^\[object .+?Constructor\]$/,we=/^(?:0|[1-9]\d*)$/,me={};me[z]=me[K]=me[re]=me[ne]=me[Q]=me[ue]=me[he]=me[Ee]=me[ce]=!0,me[w]=me[m]=me[$]=me[v]=me[G]=me[h]=me[d]=me[_]=me[S]=me[k]=me[F]=me[Z]=me[W]=me[U]=me[V]=!1;var Pe=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g,pe=typeof self=="object"&&self&&self.Object===Object&&self,Ie=Pe||pe||Function("return this")(),Je=N&&!N.nodeType&&N,ke=Je&&!0&&oe&&!oe.nodeType&&oe,De=ke&&ke.exports===Je,Fe=De&&Pe.process,Qe=function(){try{var Dn=ke&&ke.require&&ke.require("util").types;return Dn||Fe&&Fe.binding&&Fe.binding("util")}catch(Pr){}}(),qe=Qe&&Qe.isTypedArray;function et(Dn,Pr,fa){switch(fa.length){case 0:return Dn.call(Pr);case 1:return Dn.call(Pr,fa[0]);case 2:return Dn.call(Pr,fa[0],fa[1]);case 3:return Dn.call(Pr,fa[0],fa[1],fa[2])}return Dn.apply(Pr,fa)}function dt(Dn,Pr){for(var fa=-1,ka=Array(Dn);++fa<Dn;)ka[fa]=Pr(fa);return ka}function Ke(Dn){return function(Pr){return Dn(Pr)}}function Ge(Dn,Pr){return Dn==null?void 0:Dn[Pr]}function wt(Dn,Pr){return function(fa){return Dn(Pr(fa))}}var Vt=Array.prototype,gt=Function.prototype,it=Object.prototype,Le=Ie["__core-js_shared__"],ct=gt.toString,at=it.hasOwnProperty,jt=function(){var Dn=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||"");return Dn?"Symbol(src)_1."+Dn:""}(),St=it.toString,fn=ct.call(Object),Xt=RegExp("^"+ct.call(at).replace(ve,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yt=De?Ie.Buffer:void 0,Rt=Ie.Symbol,Lt=Ie.Uint8Array,ze=Yt?Yt.allocUnsafe:void 0,rt=wt(Object.getPrototypeOf,Object),tt=Object.create,de=it.propertyIsEnumerable,ot=Vt.splice,Et=Rt?Rt.toStringTag:void 0,Ht=function(){try{var Dn=Ui(Object,"defineProperty");return Dn({},"",{}),Dn}catch(Pr){}}(),Jt=Yt?Yt.isBuffer:void 0,Qt=Math.max,an=Date.now,Un=Ui(Ie,"Map"),qt=Ui(Object,"create"),rn=function(){function Dn(){}return function(Pr){if(!Ar(Pr))return{};if(tt)return tt(Pr);Dn.prototype=Pr;var fa=new Dn;return Dn.prototype=void 0,fa}}();function cn(Dn){var Pr=-1,fa=Dn==null?0:Dn.length;for(this.clear();++Pr<fa;){var ka=Dn[Pr];this.set(ka[0],ka[1])}}function er(){this.__data__=qt?qt(null):{},this.size=0}function rr(Dn){var Pr=this.has(Dn)&&delete this.__data__[Dn];return this.size-=Pr?1:0,Pr}function nt(Dn){var Pr=this.__data__;if(qt){var fa=Pr[Dn];return fa===g?void 0:fa}return at.call(Pr,Dn)?Pr[Dn]:void 0}function lr(Dn){var Pr=this.__data__;return qt?Pr[Dn]!==void 0:at.call(Pr,Dn)}function Hn(Dn,Pr){var fa=this.__data__;return this.size+=this.has(Dn)?0:1,fa[Dn]=qt&&Pr===void 0?g:Pr,this}cn.prototype.clear=er,cn.prototype.delete=rr,cn.prototype.get=nt,cn.prototype.has=lr,cn.prototype.set=Hn;function ut(Dn){var Pr=-1,fa=Dn==null?0:Dn.length;for(this.clear();++Pr<fa;){var ka=Dn[Pr];this.set(ka[0],ka[1])}}function bt(){this.__data__=[],this.size=0}function We(Dn){var Pr=this.__data__,fa=_r(Pr,Dn);if(fa<0)return!1;var ka=Pr.length-1;return fa==ka?Pr.pop():ot.call(Pr,fa,1),--this.size,!0}function be(Dn){var Pr=this.__data__,fa=_r(Pr,Dn);return fa<0?void 0:Pr[fa][1]}function Ae(Dn){return _r(this.__data__,Dn)>-1}function Ue(Dn,Pr){var fa=this.__data__,ka=_r(fa,Dn);return ka<0?(++this.size,fa.push([Dn,Pr])):fa[ka][1]=Pr,this}ut.prototype.clear=bt,ut.prototype.delete=We,ut.prototype.get=be,ut.prototype.has=Ae,ut.prototype.set=Ue;function $e(Dn){var Pr=-1,fa=Dn==null?0:Dn.length;for(this.clear();++Pr<fa;){var ka=Dn[Pr];this.set(ka[0],ka[1])}}function kt(){this.size=0,this.__data__={hash:new cn,map:new(Un||ut),string:new cn}}function lt(Dn){var Pr=rs(this,Dn).delete(Dn);return this.size-=Pr?1:0,Pr}function vt(Dn){return rs(this,Dn).get(Dn)}function Ct(Dn){return rs(this,Dn).has(Dn)}function Bt(Dn,Pr){var fa=rs(this,Dn),ka=fa.size;return fa.set(Dn,Pr),this.size+=fa.size==ka?0:1,this}$e.prototype.clear=kt,$e.prototype.delete=lt,$e.prototype.get=vt,$e.prototype.has=Ct,$e.prototype.set=Bt;function mt(Dn){var Pr=this.__data__=new ut(Dn);this.size=Pr.size}function Zt(){this.__data__=new ut,this.size=0}function zt(Dn){var Pr=this.__data__,fa=Pr.delete(Dn);return this.size=Pr.size,fa}function ln(Dn){return this.__data__.get(Dn)}function An(Dn){return this.__data__.has(Dn)}function En(Dn,Pr){var fa=this.__data__;if(fa instanceof ut){var ka=fa.__data__;if(!Un||ka.length<x-1)return ka.push([Dn,Pr]),this.size=++fa.size,this;fa=this.__data__=new $e(ka)}return fa.set(Dn,Pr),this.size=fa.size,this}mt.prototype.clear=Zt,mt.prototype.delete=zt,mt.prototype.get=ln,mt.prototype.has=An,mt.prototype.set=En;function Gn(Dn,Pr){var fa=yo(Dn),ka=!fa&&Do(Dn),Li=!fa&&!ka&&cs(Dn),zi=!fa&&!ka&&!Li&&nn(Dn),Mo=fa||ka||Li||zi,Za=Mo?dt(Dn.length,String):[],ao=Za.length;for(var Mi in Dn)(Pr||at.call(Dn,Mi))&&!(Mo&&(Mi=="length"||Li&&(Mi=="offset"||Mi=="parent")||zi&&(Mi=="buffer"||Mi=="byteLength"||Mi=="byteOffset")||Pn(Mi,ao)))&&Za.push(Mi);return Za}function Bn(Dn,Pr,fa){(fa!==void 0&&!ei(Dn[Pr],fa)||fa===void 0&&!(Pr in Dn))&&na(Dn,Pr,fa)}function pr(Dn,Pr,fa){var ka=Dn[Pr];(!(at.call(Dn,Pr)&&ei(ka,fa))||fa===void 0&&!(Pr in Dn))&&na(Dn,Pr,fa)}function _r(Dn,Pr){for(var fa=Dn.length;fa--;)if(ei(Dn[fa][0],Pr))return fa;return-1}function na(Dn,Pr,fa){Pr=="__proto__"&&Ht?Ht(Dn,Pr,{configurable:!0,enumerable:!0,value:fa,writable:!0}):Dn[Pr]=fa}var $n=Pi();function qr(Dn){return Dn==null?Dn===void 0?L:O:Et&&Et in Object(Dn)?Cn(Dn):Ua(Dn)}function Jr(Dn){return Rn(Dn)&&qr(Dn)==w}function Aa(Dn){if(!Ar(Dn)||ta(Dn))return!1;var Pr=Os(Dn)?Xt:fe;return Pr.test(ja(Dn))}function ya(Dn){return Rn(Dn)&&vl(Dn.length)&&!!me[qr(Dn)]}function $t(Dn){if(!Ar(Dn))return Qa(Dn);var Pr=Yn(Dn),fa=[];for(var ka in Dn)ka=="constructor"&&(Pr||!at.call(Dn,ka))||fa.push(ka);return fa}function wn(Dn,Pr,fa,ka,Li){Dn!==Pr&&$n(Pr,function(zi,Mo){if(Li||(Li=new mt),Ar(zi))Fn(Dn,Pr,Mo,fa,wn,ka,Li);else{var Za=ka?ka(Xa(Dn,Mo),zi,Mo+"",Dn,Pr,Li):void 0;Za===void 0&&(Za=zi),Bn(Dn,Mo,Za)}},Ot)}function Fn(Dn,Pr,fa,ka,Li,zi,Mo){var Za=Xa(Dn,fa),ao=Xa(Pr,fa),Mi=Mo.get(ao);if(Mi){Bn(Dn,fa,Mi);return}var Eo=zi?zi(Za,ao,fa+"",Dn,Pr,Mo):void 0,Xi=Eo===void 0;if(Xi){var Bo=yo(ao),ol=!Bo&&cs(ao),Il=!Bo&&!ol&&nn(ao);Eo=ao,Bo||ol||Il?yo(Za)?Eo=Za:fs(Za)?Eo=ba(Za):ol?(Xi=!1,Eo=Ur(ao,!0)):Il?(Xi=!1,Eo=Kr(ao,!0)):Eo=[]:Sr(ao)||Do(ao)?(Eo=Za,Do(Za)?Eo=sn(Za):(!Ar(Za)||Os(Za))&&(Eo=Kn(ao))):Xi=!1}Xi&&(Mo.set(ao,Eo),Li(Eo,ao,ka,zi,Mo),Mo.delete(ao)),Bn(Dn,fa,Eo)}function Or(Dn,Pr){return $i(Fi(Dn,Pr,Ln),Dn+"")}var vr=Ht?function(Dn,Pr){return Ht(Dn,"toString",{configurable:!0,enumerable:!1,value:Gr(Pr),writable:!0})}:Ln;function Ur(Dn,Pr){if(Pr)return Dn.slice();var fa=Dn.length,ka=ze?ze(fa):new Dn.constructor(fa);return Dn.copy(ka),ka}function Zr(Dn){var Pr=new Dn.constructor(Dn.byteLength);return new Lt(Pr).set(new Lt(Dn)),Pr}function Kr(Dn,Pr){var fa=Pr?Zr(Dn.buffer):Dn.buffer;return new Dn.constructor(fa,Dn.byteOffset,Dn.length)}function ba(Dn,Pr){var fa=-1,ka=Dn.length;for(Pr||(Pr=Array(ka));++fa<ka;)Pr[fa]=Dn[fa];return Pr}function Ri(Dn,Pr,fa,ka){var Li=!fa;fa||(fa={});for(var zi=-1,Mo=Pr.length;++zi<Mo;){var Za=Pr[zi],ao=ka?ka(fa[Za],Dn[Za],Za,fa,Dn):void 0;ao===void 0&&(ao=Dn[Za]),Li?na(fa,Za,ao):pr(fa,Za,ao)}return fa}function Ea(Dn){return Or(function(Pr,fa){var ka=-1,Li=fa.length,zi=Li>1?fa[Li-1]:void 0,Mo=Li>2?fa[2]:void 0;for(zi=Dn.length>3&&typeof zi=="function"?(Li--,zi):void 0,Mo&&At(fa[0],fa[1],Mo)&&(zi=Li<3?void 0:zi,Li=1),Pr=Object(Pr);++ka<Li;){var Za=fa[ka];Za&&Dn(Pr,Za,ka,zi)}return Pr})}function Pi(Dn){return function(Pr,fa,ka){for(var Li=-1,zi=Object(Pr),Mo=ka(Pr),Za=Mo.length;Za--;){var ao=Mo[Dn?Za:++Li];if(fa(zi[ao],ao,zi)===!1)break}return Pr}}function rs(Dn,Pr){var fa=Dn.__data__;return ar(Pr)?fa[typeof Pr=="string"?"string":"hash"]:fa.map}function Ui(Dn,Pr){var fa=Ge(Dn,Pr);return Aa(fa)?fa:void 0}function Cn(Dn){var Pr=at.call(Dn,Et),fa=Dn[Et];try{Dn[Et]=void 0;var ka=!0}catch(zi){}var Li=St.call(Dn);return ka&&(Pr?Dn[Et]=fa:delete Dn[Et]),Li}function Kn(Dn){return typeof Dn.constructor=="function"&&!Yn(Dn)?rn(rt(Dn)):{}}function Pn(Dn,Pr){var fa=typeof Dn;return Pr=Pr==null?M:Pr,!!Pr&&(fa=="number"||fa!="symbol"&&we.test(Dn))&&Dn>-1&&Dn%1==0&&Dn<Pr}function At(Dn,Pr,fa){if(!Ar(fa))return!1;var ka=typeof Pr;return(ka=="number"?to(fa)&&Pn(Pr,fa.length):ka=="string"&&Pr in fa)?ei(fa[Pr],Dn):!1}function ar(Dn){var Pr=typeof Dn;return Pr=="string"||Pr=="number"||Pr=="symbol"||Pr=="boolean"?Dn!=="__proto__":Dn===null}function ta(Dn){return!!jt&&jt in Dn}function Yn(Dn){var Pr=Dn&&Dn.constructor,fa=typeof Pr=="function"&&Pr.prototype||it;return Dn===fa}function Qa(Dn){var Pr=[];if(Dn!=null)for(var fa in Object(Dn))Pr.push(fa);return Pr}function Ua(Dn){return St.call(Dn)}function Fi(Dn,Pr,fa){return Pr=Qt(Pr===void 0?Dn.length-1:Pr,0),function(){for(var ka=arguments,Li=-1,zi=Qt(ka.length-Pr,0),Mo=Array(zi);++Li<zi;)Mo[Li]=ka[Pr+Li];Li=-1;for(var Za=Array(Pr+1);++Li<Pr;)Za[Li]=ka[Li];return Za[Pr]=fa(Mo),et(Dn,this,Za)}}function Xa(Dn,Pr){if(!(Pr==="constructor"&&typeof Dn[Pr]=="function")&&Pr!="__proto__")return Dn[Pr]}var $i=La(vr);function La(Dn){var Pr=0,fa=0;return function(){var ka=an(),Li=y-(ka-fa);if(fa=ka,Li>0){if(++Pr>=A)return arguments[0]}else Pr=0;return Dn.apply(void 0,arguments)}}function ja(Dn){if(Dn!=null){try{return ct.call(Dn)}catch(Pr){}try{return Dn+""}catch(Pr){}}return""}function ei(Dn,Pr){return Dn===Pr||Dn!==Dn&&Pr!==Pr}var Do=Jr(function(){return arguments}())?Jr:function(Dn){return Rn(Dn)&&at.call(Dn,"callee")&&!de.call(Dn,"callee")},yo=Array.isArray;function to(Dn){return Dn!=null&&vl(Dn.length)&&!Os(Dn)}function fs(Dn){return Rn(Dn)&&to(Dn)}var cs=Jt||Tr;function Os(Dn){if(!Ar(Dn))return!1;var Pr=qr(Dn);return Pr==_||Pr==p||Pr==b||Pr==D}function vl(Dn){return typeof Dn=="number"&&Dn>-1&&Dn%1==0&&Dn<=M}function Ar(Dn){var Pr=typeof Dn;return Dn!=null&&(Pr=="object"||Pr=="function")}function Rn(Dn){return Dn!=null&&typeof Dn=="object"}function Sr(Dn){if(!Rn(Dn)||qr(Dn)!=F)return!1;var Pr=rt(Dn);if(Pr===null)return!0;var fa=at.call(Pr,"constructor")&&Pr.constructor;return typeof fa=="function"&&fa instanceof fa&&ct.call(fa)==fn}var nn=qe?Ke(qe):ya;function sn(Dn){return Ri(Dn,Ot(Dn))}function Ot(Dn){return to(Dn)?Gn(Dn,!0):$t(Dn)}var gr=Ea(function(Dn,Pr,fa){wn(Dn,Pr,fa)});function Gr(Dn){return function(){return Dn}}function Ln(Dn){return Dn}function Tr(){return!1}oe.exports=gr},97397:function(oe,N,o){var x="Expected a function",g=0/0,A="[object Symbol]",y=/^\s+|\s+$/g,M=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,m=/^0o[0-7]+$/i,b=parseInt,v=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g,h=typeof self=="object"&&self&&self.Object===Object&&self,d=v||h||Function("return this")(),_=Object.prototype,p=_.toString,S=Math.max,k=Math.min,O=function(){return d.Date.now()};function F(V,$,G){var z,K,re,ne,Q,ue,he=0,Ee=!1,ce=!1,ve=!0;if(typeof V!="function")throw new TypeError(x);$=L($)||0,Z(G)&&(Ee=!!G.leading,ce="maxWait"in G,re=ce?S(L(G.maxWait)||0,$):re,ve="trailing"in G?!!G.trailing:ve);function fe(Fe){var Qe=z,qe=K;return z=K=void 0,he=Fe,ne=V.apply(qe,Qe),ne}function we(Fe){return he=Fe,Q=setTimeout(pe,$),Ee?fe(Fe):ne}function me(Fe){var Qe=Fe-ue,qe=Fe-he,et=$-Qe;return ce?k(et,re-qe):et}function Pe(Fe){var Qe=Fe-ue,qe=Fe-he;return ue===void 0||Qe>=$||Qe<0||ce&&qe>=re}function pe(){var Fe=O();if(Pe(Fe))return Ie(Fe);Q=setTimeout(pe,me(Fe))}function Ie(Fe){return Q=void 0,ve&&z?fe(Fe):(z=K=void 0,ne)}function Je(){Q!==void 0&&clearTimeout(Q),he=0,z=ue=K=Q=void 0}function ke(){return Q===void 0?ne:Ie(O())}function De(){var Fe=O(),Qe=Pe(Fe);if(z=arguments,K=this,ue=Fe,Qe){if(Q===void 0)return we(ue);if(ce)return Q=setTimeout(pe,$),fe(ue)}return Q===void 0&&(Q=setTimeout(pe,$)),ne}return De.cancel=Je,De.flush=ke,De}function D(V,$,G){var z=!0,K=!0;if(typeof V!="function")throw new TypeError(x);return Z(G)&&(z="leading"in G?!!G.leading:z,K="trailing"in G?!!G.trailing:K),F(V,$,{leading:z,maxWait:$,trailing:K})}function Z(V){var $=typeof V;return!!V&&($=="object"||$=="function")}function W(V){return!!V&&typeof V=="object"}function U(V){return typeof V=="symbol"||W(V)&&p.call(V)==A}function L(V){if(typeof V=="number")return V;if(U(V))return g;if(Z(V)){var $=typeof V.valueOf=="function"?V.valueOf():V;V=Z($)?$+"":$}if(typeof V!="string")return V===0?V:+V;V=V.replace(y,"");var G=w.test(V);return G||m.test(V)?b(V.slice(2),G?2:8):M.test(V)?g:+V}oe.exports=D},79302:function(oe){var N=0/0,o="[object Symbol]",x=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,y=/^0o[0-7]+$/i,M=parseInt,w=Object.prototype,m=w.toString;function b(_){var p=typeof _;return!!_&&(p=="object"||p=="function")}function v(_){return!!_&&typeof _=="object"}function h(_){return typeof _=="symbol"||v(_)&&m.call(_)==o}function d(_){if(typeof _=="number")return _;if(h(_))return N;if(b(_)){var p=typeof _.valueOf=="function"?_.valueOf():_;_=b(p)?p+"":p}if(typeof _!="string")return _===0?_:+_;_=_.replace(x,"");var S=A.test(_);return S||y.test(_)?M(_.slice(2),S?2:8):g.test(_)?N:+_}oe.exports=d},77850:function(oe,N,o){"use strict";o.r(N),o.d(N,{AbstractMatrix:function(){return qe},CHO:function(){return lr},CholeskyDecomposition:function(){return lr},EVD:function(){return qt},EigenvalueDecomposition:function(){return qt},LU:function(){return Rt},LuDecomposition:function(){return Rt},Matrix:function(){return Ke},MatrixColumnSelectionView:function(){return Vt},MatrixColumnView:function(){return wt},MatrixFlipColumnView:function(){return gt},MatrixFlipRowView:function(){return it},MatrixRowSelectionView:function(){return ct},MatrixRowView:function(){return Le},MatrixSelectionView:function(){return at},MatrixSubView:function(){return jt},MatrixTransposeView:function(){return St},NIPALS:function(){return Hn},Nipals:function(){return Hn},QR:function(){return ze},QrDecomposition:function(){return ze},SVD:function(){return rt},SingularValueDecomposition:function(){return rt},WrapperMatrix1D:function(){return fn},WrapperMatrix2D:function(){return Xt},correlation:function(){return Un},covariance:function(){return an},default:function(){return Ke},determinant:function(){return ot},inverse:function(){return tt},linearDependencies:function(){return Jt},pseudoInverse:function(){return Qt},solve:function(){return de},wrap:function(){return Yt}});var x=o(79320),g=o(81306),A=o(59206),y=o(69610),M=o(54941),w=Object.prototype.toString;function m(ut){var bt=w.call(ut);return bt.endsWith("Array]")&&!bt.includes("Big")}function b(ut){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!m(ut))throw new TypeError("input must be an array");if(ut.length===0)throw new TypeError("input must not be empty");var We=bt.fromIndex,be=We===void 0?0:We,Ae=bt.toIndex,Ue=Ae===void 0?ut.length:Ae;if(be<0||be>=ut.length||!Number.isInteger(be))throw new Error("fromIndex must be a positive integer smaller than length");if(Ue<=be||Ue>ut.length||!Number.isInteger(Ue))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var $e=ut[be],kt=be+1;kt<Ue;kt++)ut[kt]>$e&&($e=ut[kt]);return $e}function v(ut){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!m(ut))throw new TypeError("input must be an array");if(ut.length===0)throw new TypeError("input must not be empty");var We=bt.fromIndex,be=We===void 0?0:We,Ae=bt.toIndex,Ue=Ae===void 0?ut.length:Ae;if(be<0||be>=ut.length||!Number.isInteger(be))throw new Error("fromIndex must be a positive integer smaller than length");if(Ue<=be||Ue>ut.length||!Number.isInteger(Ue))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var $e=ut[be],kt=be+1;kt<Ue;kt++)ut[kt]<$e&&($e=ut[kt]);return $e}function h(ut){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(m(ut)){if(ut.length===0)throw new TypeError("input must not be empty")}else throw new TypeError("input must be an array");var We;if(bt.output!==void 0){if(!m(bt.output))throw new TypeError("output option must be an array if specified");We=bt.output}else We=new Array(ut.length);var be=v(ut),Ae=b(ut);if(be===Ae)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var Ue=bt.min,$e=Ue===void 0?bt.autoMinMax?be:0:Ue,kt=bt.max,lt=kt===void 0?bt.autoMinMax?Ae:1:kt;if($e>=lt)throw new RangeError("min option must be smaller than max option");for(var vt=(lt-$e)/(Ae-be),Ct=0;Ct<ut.length;Ct++)We[Ct]=(ut[Ct]-be)*vt+$e;return We}var d=" ".repeat(2),_=" ".repeat(4);function p(){return S(this)}function S(ut){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},We=bt.maxRows,be=We===void 0?15:We,Ae=bt.maxColumns,Ue=Ae===void 0?10:Ae,$e=bt.maxNumSize,kt=$e===void 0?8:$e,lt=bt.padMinus,vt=lt===void 0?"auto":lt;return"".concat(ut.constructor.name,` {
|
||
`).concat(d,`[
|
||
`).concat(_).concat(k(ut,be,Ue,kt,vt),`
|
||
`).concat(d,`]
|
||
`).concat(d,"rows: ").concat(ut.rows,`
|
||
`).concat(d,"columns: ").concat(ut.columns,`
|
||
}`)}function k(ut,bt,We,be,Ae){var Ue=ut.rows,$e=ut.columns,kt=Math.min(Ue,bt),lt=Math.min($e,We),vt=[];if(Ae==="auto"){Ae=!1;e:for(var Ct=0;Ct<kt;Ct++)for(var Bt=0;Bt<lt;Bt++)if(ut.get(Ct,Bt)<0){Ae=!0;break e}}for(var mt=0;mt<kt;mt++){for(var Zt=[],zt=0;zt<lt;zt++)Zt.push(O(ut.get(mt,zt),be,Ae));vt.push("".concat(Zt.join(" ")))}return lt!==$e&&(vt[vt.length-1]+=" ... ".concat($e-We," more columns")),kt!==Ue&&vt.push("... ".concat(Ue-bt," more rows")),vt.join(`
|
||
`.concat(_))}function O(ut,bt,We){return(ut>=0&&We?" ".concat(F(ut,bt-1)):F(ut,bt)).padEnd(bt)}function F(ut,bt){var We=ut.toString();if(We.length<=bt)return We;var be=ut.toFixed(bt);if(be.length>bt&&(be=ut.toFixed(Math.max(0,bt-(be.length-bt)))),be.length<=bt&&!be.startsWith("0.000")&&!be.startsWith("-0.000"))return be;var Ae=ut.toExponential(bt);return Ae.length>bt&&(Ae=ut.toExponential(Math.max(0,bt-(Ae.length-bt)))),Ae.slice(0)}function D(ut,bt){ut.prototype.add=function(be){return typeof be=="number"?this.addS(be):this.addM(be)},ut.prototype.addS=function(be){for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)+be);return this},ut.prototype.addM=function(be){if(be=bt.checkMatrix(be),this.rows!==be.rows||this.columns!==be.columns)throw new RangeError("Matrices dimensions must be equal");for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)+be.get(Ae,Ue));return this},ut.add=function(be,Ae){var Ue=new bt(be);return Ue.add(Ae)},ut.prototype.sub=function(be){return typeof be=="number"?this.subS(be):this.subM(be)},ut.prototype.subS=function(be){for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)-be);return this},ut.prototype.subM=function(be){if(be=bt.checkMatrix(be),this.rows!==be.rows||this.columns!==be.columns)throw new RangeError("Matrices dimensions must be equal");for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)-be.get(Ae,Ue));return this},ut.sub=function(be,Ae){var Ue=new bt(be);return Ue.sub(Ae)},ut.prototype.subtract=ut.prototype.sub,ut.prototype.subtractS=ut.prototype.subS,ut.prototype.subtractM=ut.prototype.subM,ut.subtract=ut.sub,ut.prototype.mul=function(be){return typeof be=="number"?this.mulS(be):this.mulM(be)},ut.prototype.mulS=function(be){for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)*be);return this},ut.prototype.mulM=function(be){if(be=bt.checkMatrix(be),this.rows!==be.rows||this.columns!==be.columns)throw new RangeError("Matrices dimensions must be equal");for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)*be.get(Ae,Ue));return this},ut.mul=function(be,Ae){var Ue=new bt(be);return Ue.mul(Ae)},ut.prototype.multiply=ut.prototype.mul,ut.prototype.multiplyS=ut.prototype.mulS,ut.prototype.multiplyM=ut.prototype.mulM,ut.multiply=ut.mul,ut.prototype.div=function(be){return typeof be=="number"?this.divS(be):this.divM(be)},ut.prototype.divS=function(be){for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)/be);return this},ut.prototype.divM=function(be){if(be=bt.checkMatrix(be),this.rows!==be.rows||this.columns!==be.columns)throw new RangeError("Matrices dimensions must be equal");for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)/be.get(Ae,Ue));return this},ut.div=function(be,Ae){var Ue=new bt(be);return Ue.div(Ae)},ut.prototype.divide=ut.prototype.div,ut.prototype.divideS=ut.prototype.divS,ut.prototype.divideM=ut.prototype.divM,ut.divide=ut.div,ut.prototype.mod=function(be){return typeof be=="number"?this.modS(be):this.modM(be)},ut.prototype.modS=function(be){for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)%be);return this},ut.prototype.modM=function(be){if(be=bt.checkMatrix(be),this.rows!==be.rows||this.columns!==be.columns)throw new RangeError("Matrices dimensions must be equal");for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)%be.get(Ae,Ue));return this},ut.mod=function(be,Ae){var Ue=new bt(be);return Ue.mod(Ae)},ut.prototype.modulus=ut.prototype.mod,ut.prototype.modulusS=ut.prototype.modS,ut.prototype.modulusM=ut.prototype.modM,ut.modulus=ut.mod,ut.prototype.and=function(be){return typeof be=="number"?this.andS(be):this.andM(be)},ut.prototype.andS=function(be){for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)&be);return this},ut.prototype.andM=function(be){if(be=bt.checkMatrix(be),this.rows!==be.rows||this.columns!==be.columns)throw new RangeError("Matrices dimensions must be equal");for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)&be.get(Ae,Ue));return this},ut.and=function(be,Ae){var Ue=new bt(be);return Ue.and(Ae)},ut.prototype.or=function(be){return typeof be=="number"?this.orS(be):this.orM(be)},ut.prototype.orS=function(be){for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)|be);return this},ut.prototype.orM=function(be){if(be=bt.checkMatrix(be),this.rows!==be.rows||this.columns!==be.columns)throw new RangeError("Matrices dimensions must be equal");for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)|be.get(Ae,Ue));return this},ut.or=function(be,Ae){var Ue=new bt(be);return Ue.or(Ae)},ut.prototype.xor=function(be){return typeof be=="number"?this.xorS(be):this.xorM(be)},ut.prototype.xorS=function(be){for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)^be);return this},ut.prototype.xorM=function(be){if(be=bt.checkMatrix(be),this.rows!==be.rows||this.columns!==be.columns)throw new RangeError("Matrices dimensions must be equal");for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)^be.get(Ae,Ue));return this},ut.xor=function(be,Ae){var Ue=new bt(be);return Ue.xor(Ae)},ut.prototype.leftShift=function(be){return typeof be=="number"?this.leftShiftS(be):this.leftShiftM(be)},ut.prototype.leftShiftS=function(be){for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)<<be);return this},ut.prototype.leftShiftM=function(be){if(be=bt.checkMatrix(be),this.rows!==be.rows||this.columns!==be.columns)throw new RangeError("Matrices dimensions must be equal");for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)<<be.get(Ae,Ue));return this},ut.leftShift=function(be,Ae){var Ue=new bt(be);return Ue.leftShift(Ae)},ut.prototype.signPropagatingRightShift=function(be){return typeof be=="number"?this.signPropagatingRightShiftS(be):this.signPropagatingRightShiftM(be)},ut.prototype.signPropagatingRightShiftS=function(be){for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)>>be);return this},ut.prototype.signPropagatingRightShiftM=function(be){if(be=bt.checkMatrix(be),this.rows!==be.rows||this.columns!==be.columns)throw new RangeError("Matrices dimensions must be equal");for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)>>be.get(Ae,Ue));return this},ut.signPropagatingRightShift=function(be,Ae){var Ue=new bt(be);return Ue.signPropagatingRightShift(Ae)},ut.prototype.rightShift=function(be){return typeof be=="number"?this.rightShiftS(be):this.rightShiftM(be)},ut.prototype.rightShiftS=function(be){for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)>>>be);return this},ut.prototype.rightShiftM=function(be){if(be=bt.checkMatrix(be),this.rows!==be.rows||this.columns!==be.columns)throw new RangeError("Matrices dimensions must be equal");for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,this.get(Ae,Ue)>>>be.get(Ae,Ue));return this},ut.rightShift=function(be,Ae){var Ue=new bt(be);return Ue.rightShift(Ae)},ut.prototype.zeroFillRightShift=ut.prototype.rightShift,ut.prototype.zeroFillRightShiftS=ut.prototype.rightShiftS,ut.prototype.zeroFillRightShiftM=ut.prototype.rightShiftM,ut.zeroFillRightShift=ut.rightShift,ut.prototype.not=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,~this.get(be,Ae));return this},ut.not=function(be){var Ae=new bt(be);return Ae.not()},ut.prototype.abs=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.abs(this.get(be,Ae)));return this},ut.abs=function(be){var Ae=new bt(be);return Ae.abs()},ut.prototype.acos=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.acos(this.get(be,Ae)));return this},ut.acos=function(be){var Ae=new bt(be);return Ae.acos()},ut.prototype.acosh=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.acosh(this.get(be,Ae)));return this},ut.acosh=function(be){var Ae=new bt(be);return Ae.acosh()},ut.prototype.asin=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.asin(this.get(be,Ae)));return this},ut.asin=function(be){var Ae=new bt(be);return Ae.asin()},ut.prototype.asinh=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.asinh(this.get(be,Ae)));return this},ut.asinh=function(be){var Ae=new bt(be);return Ae.asinh()},ut.prototype.atan=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.atan(this.get(be,Ae)));return this},ut.atan=function(be){var Ae=new bt(be);return Ae.atan()},ut.prototype.atanh=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.atanh(this.get(be,Ae)));return this},ut.atanh=function(be){var Ae=new bt(be);return Ae.atanh()},ut.prototype.cbrt=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.cbrt(this.get(be,Ae)));return this},ut.cbrt=function(be){var Ae=new bt(be);return Ae.cbrt()},ut.prototype.ceil=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.ceil(this.get(be,Ae)));return this},ut.ceil=function(be){var Ae=new bt(be);return Ae.ceil()},ut.prototype.clz32=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.clz32(this.get(be,Ae)));return this},ut.clz32=function(be){var Ae=new bt(be);return Ae.clz32()},ut.prototype.cos=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.cos(this.get(be,Ae)));return this},ut.cos=function(be){var Ae=new bt(be);return Ae.cos()},ut.prototype.cosh=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.cosh(this.get(be,Ae)));return this},ut.cosh=function(be){var Ae=new bt(be);return Ae.cosh()},ut.prototype.exp=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.exp(this.get(be,Ae)));return this},ut.exp=function(be){var Ae=new bt(be);return Ae.exp()},ut.prototype.expm1=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.expm1(this.get(be,Ae)));return this},ut.expm1=function(be){var Ae=new bt(be);return Ae.expm1()},ut.prototype.floor=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.floor(this.get(be,Ae)));return this},ut.floor=function(be){var Ae=new bt(be);return Ae.floor()},ut.prototype.fround=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.fround(this.get(be,Ae)));return this},ut.fround=function(be){var Ae=new bt(be);return Ae.fround()},ut.prototype.log=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.log(this.get(be,Ae)));return this},ut.log=function(be){var Ae=new bt(be);return Ae.log()},ut.prototype.log1p=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.log1p(this.get(be,Ae)));return this},ut.log1p=function(be){var Ae=new bt(be);return Ae.log1p()},ut.prototype.log10=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.log10(this.get(be,Ae)));return this},ut.log10=function(be){var Ae=new bt(be);return Ae.log10()},ut.prototype.log2=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.log2(this.get(be,Ae)));return this},ut.log2=function(be){var Ae=new bt(be);return Ae.log2()},ut.prototype.round=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.round(this.get(be,Ae)));return this},ut.round=function(be){var Ae=new bt(be);return Ae.round()},ut.prototype.sign=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.sign(this.get(be,Ae)));return this},ut.sign=function(be){var Ae=new bt(be);return Ae.sign()},ut.prototype.sin=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.sin(this.get(be,Ae)));return this},ut.sin=function(be){var Ae=new bt(be);return Ae.sin()},ut.prototype.sinh=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.sinh(this.get(be,Ae)));return this},ut.sinh=function(be){var Ae=new bt(be);return Ae.sinh()},ut.prototype.sqrt=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.sqrt(this.get(be,Ae)));return this},ut.sqrt=function(be){var Ae=new bt(be);return Ae.sqrt()},ut.prototype.tan=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.tan(this.get(be,Ae)));return this},ut.tan=function(be){var Ae=new bt(be);return Ae.tan()},ut.prototype.tanh=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.tanh(this.get(be,Ae)));return this},ut.tanh=function(be){var Ae=new bt(be);return Ae.tanh()},ut.prototype.trunc=function(){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,Math.trunc(this.get(be,Ae)));return this},ut.trunc=function(be){var Ae=new bt(be);return Ae.trunc()},ut.pow=function(be,Ae){var Ue=new bt(be);return Ue.pow(Ae)},ut.prototype.pow=function(be){return typeof be=="number"?this.powS(be):this.powM(be)},ut.prototype.powS=function(be){for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,Math.pow(this.get(Ae,Ue),be));return this},ut.prototype.powM=function(be){if(be=bt.checkMatrix(be),this.rows!==be.rows||this.columns!==be.columns)throw new RangeError("Matrices dimensions must be equal");for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.set(Ae,Ue,Math.pow(this.get(Ae,Ue),be.get(Ae,Ue)));return this}}function Z(ut,bt,We){var be=We?ut.rows:ut.rows-1;if(bt<0||bt>be)throw new RangeError("Row index out of range")}function W(ut,bt,We){var be=We?ut.columns:ut.columns-1;if(bt<0||bt>be)throw new RangeError("Column index out of range")}function U(ut,bt){if(bt.to1DArray&&(bt=bt.to1DArray()),bt.length!==ut.columns)throw new RangeError("vector size must be the same as the number of columns");return bt}function L(ut,bt){if(bt.to1DArray&&(bt=bt.to1DArray()),bt.length!==ut.rows)throw new RangeError("vector size must be the same as the number of rows");return bt}function V(ut,bt){if(!m(bt))throw new TypeError("row indices must be an array");for(var We=0;We<bt.length;We++)if(bt[We]<0||bt[We]>=ut.rows)throw new RangeError("row indices are out of range")}function $(ut,bt){if(!m(bt))throw new TypeError("column indices must be an array");for(var We=0;We<bt.length;We++)if(bt[We]<0||bt[We]>=ut.columns)throw new RangeError("column indices are out of range")}function G(ut,bt,We,be,Ae){if(arguments.length!==5)throw new RangeError("expected 4 arguments");if(K("startRow",bt),K("endRow",We),K("startColumn",be),K("endColumn",Ae),bt>We||be>Ae||bt<0||bt>=ut.rows||We<0||We>=ut.rows||be<0||be>=ut.columns||Ae<0||Ae>=ut.columns)throw new RangeError("Submatrix indices are out of range")}function z(ut){for(var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,We=[],be=0;be<ut;be++)We.push(bt);return We}function K(ut,bt){if(typeof bt!="number")throw new TypeError("".concat(ut," must be a number"))}function re(ut){if(ut.isEmpty())throw new Error("Empty matrix has no elements to index")}function ne(ut){for(var bt=z(ut.rows),We=0;We<ut.rows;++We)for(var be=0;be<ut.columns;++be)bt[We]+=ut.get(We,be);return bt}function Q(ut){for(var bt=z(ut.columns),We=0;We<ut.rows;++We)for(var be=0;be<ut.columns;++be)bt[be]+=ut.get(We,be);return bt}function ue(ut){for(var bt=0,We=0;We<ut.rows;We++)for(var be=0;be<ut.columns;be++)bt+=ut.get(We,be);return bt}function he(ut){for(var bt=z(ut.rows,1),We=0;We<ut.rows;++We)for(var be=0;be<ut.columns;++be)bt[We]*=ut.get(We,be);return bt}function Ee(ut){for(var bt=z(ut.columns,1),We=0;We<ut.rows;++We)for(var be=0;be<ut.columns;++be)bt[be]*=ut.get(We,be);return bt}function ce(ut){for(var bt=1,We=0;We<ut.rows;We++)for(var be=0;be<ut.columns;be++)bt*=ut.get(We,be);return bt}function ve(ut,bt,We){for(var be=ut.rows,Ae=ut.columns,Ue=[],$e=0;$e<be;$e++){for(var kt=0,lt=0,vt=0,Ct=0;Ct<Ae;Ct++)vt=ut.get($e,Ct)-We[$e],kt+=vt,lt+=vt*vt;bt?Ue.push((lt-kt*kt/Ae)/(Ae-1)):Ue.push((lt-kt*kt/Ae)/Ae)}return Ue}function fe(ut,bt,We){for(var be=ut.rows,Ae=ut.columns,Ue=[],$e=0;$e<Ae;$e++){for(var kt=0,lt=0,vt=0,Ct=0;Ct<be;Ct++)vt=ut.get(Ct,$e)-We[$e],kt+=vt,lt+=vt*vt;bt?Ue.push((lt-kt*kt/be)/(be-1)):Ue.push((lt-kt*kt/be)/be)}return Ue}function we(ut,bt,We){for(var be=ut.rows,Ae=ut.columns,Ue=be*Ae,$e=0,kt=0,lt=0,vt=0;vt<be;vt++)for(var Ct=0;Ct<Ae;Ct++)lt=ut.get(vt,Ct)-We,$e+=lt,kt+=lt*lt;return bt?(kt-$e*$e/Ue)/(Ue-1):(kt-$e*$e/Ue)/Ue}function me(ut,bt){for(var We=0;We<ut.rows;We++)for(var be=0;be<ut.columns;be++)ut.set(We,be,ut.get(We,be)-bt[We])}function Pe(ut,bt){for(var We=0;We<ut.rows;We++)for(var be=0;be<ut.columns;be++)ut.set(We,be,ut.get(We,be)-bt[be])}function pe(ut,bt){for(var We=0;We<ut.rows;We++)for(var be=0;be<ut.columns;be++)ut.set(We,be,ut.get(We,be)-bt)}function Ie(ut){for(var bt=[],We=0;We<ut.rows;We++){for(var be=0,Ae=0;Ae<ut.columns;Ae++)be+=Math.pow(ut.get(We,Ae),2)/(ut.columns-1);bt.push(Math.sqrt(be))}return bt}function Je(ut,bt){for(var We=0;We<ut.rows;We++)for(var be=0;be<ut.columns;be++)ut.set(We,be,ut.get(We,be)/bt[We])}function ke(ut){for(var bt=[],We=0;We<ut.columns;We++){for(var be=0,Ae=0;Ae<ut.rows;Ae++)be+=Math.pow(ut.get(Ae,We),2)/(ut.rows-1);bt.push(Math.sqrt(be))}return bt}function De(ut,bt){for(var We=0;We<ut.rows;We++)for(var be=0;be<ut.columns;be++)ut.set(We,be,ut.get(We,be)/bt[be])}function Fe(ut){for(var bt=ut.size-1,We=0,be=0;be<ut.columns;be++)for(var Ae=0;Ae<ut.rows;Ae++)We+=Math.pow(ut.get(Ae,be),2)/bt;return Math.sqrt(We)}function Qe(ut,bt){for(var We=0;We<ut.rows;We++)for(var be=0;be<ut.columns;be++)ut.set(We,be,ut.get(We,be)/bt)}var qe=function(){function ut(){(0,y.Z)(this,ut)}return(0,M.Z)(ut,[{key:"size",get:function(){return this.rows*this.columns}},{key:"apply",value:function(We){if(typeof We!="function")throw new TypeError("callback must be a function");for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)We.call(this,be,Ae);return this}},{key:"to1DArray",value:function(){for(var We=[],be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)We.push(this.get(be,Ae));return We}},{key:"to2DArray",value:function(){for(var We=[],be=0;be<this.rows;be++){We.push([]);for(var Ae=0;Ae<this.columns;Ae++)We[be].push(this.get(be,Ae))}return We}},{key:"toJSON",value:function(){return this.to2DArray()}},{key:"isRowVector",value:function(){return this.rows===1}},{key:"isColumnVector",value:function(){return this.columns===1}},{key:"isVector",value:function(){return this.rows===1||this.columns===1}},{key:"isSquare",value:function(){return this.rows===this.columns}},{key:"isEmpty",value:function(){return this.rows===0||this.columns===0}},{key:"isSymmetric",value:function(){if(this.isSquare()){for(var We=0;We<this.rows;We++)for(var be=0;be<=We;be++)if(this.get(We,be)!==this.get(be,We))return!1;return!0}return!1}},{key:"isEchelonForm",value:function(){for(var We=0,be=0,Ae=-1,Ue=!0,$e=!1;We<this.rows&&Ue;){for(be=0,$e=!1;be<this.columns&&$e===!1;)this.get(We,be)===0?be++:this.get(We,be)===1&&be>Ae?($e=!0,Ae=be):(Ue=!1,$e=!0);We++}return Ue}},{key:"isReducedEchelonForm",value:function(){for(var We=0,be=0,Ae=-1,Ue=!0,$e=!1;We<this.rows&&Ue;){for(be=0,$e=!1;be<this.columns&&$e===!1;)this.get(We,be)===0?be++:this.get(We,be)===1&&be>Ae?($e=!0,Ae=be):(Ue=!1,$e=!0);for(var kt=be+1;kt<this.rows;kt++)this.get(We,kt)!==0&&(Ue=!1);We++}return Ue}},{key:"echelonForm",value:function(){for(var We=this.clone(),be=0,Ae=0;be<We.rows&&Ae<We.columns;){for(var Ue=be,$e=be;$e<We.rows;$e++)We.get($e,Ae)>We.get(Ue,Ae)&&(Ue=$e);if(We.get(Ue,Ae)===0)Ae++;else{We.swapRows(be,Ue);for(var kt=We.get(be,Ae),lt=Ae;lt<We.columns;lt++)We.set(be,lt,We.get(be,lt)/kt);for(var vt=be+1;vt<We.rows;vt++){var Ct=We.get(vt,Ae)/We.get(be,Ae);We.set(vt,Ae,0);for(var Bt=Ae+1;Bt<We.columns;Bt++)We.set(vt,Bt,We.get(vt,Bt)-We.get(be,Bt)*Ct)}be++,Ae++}}return We}},{key:"reducedEchelonForm",value:function(){for(var We=this.echelonForm(),be=We.columns,Ae=We.rows,Ue=Ae-1;Ue>=0;)if(We.maxRow(Ue)===0)Ue--;else{for(var $e=0,kt=!1;$e<Ae&&kt===!1;)We.get(Ue,$e)===1?kt=!0:$e++;for(var lt=0;lt<Ue;lt++)for(var vt=We.get(lt,$e),Ct=$e;Ct<be;Ct++){var Bt=We.get(lt,Ct)-vt*We.get(Ue,Ct);We.set(lt,Ct,Bt)}Ue--}return We}},{key:"set",value:function(){throw new Error("set method is unimplemented")}},{key:"get",value:function(){throw new Error("get method is unimplemented")}},{key:"repeat",value:function(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof We!="object")throw new TypeError("options must be an object");var be=We.rows,Ae=be===void 0?1:be,Ue=We.columns,$e=Ue===void 0?1:Ue;if(!Number.isInteger(Ae)||Ae<=0)throw new TypeError("rows must be a positive integer");if(!Number.isInteger($e)||$e<=0)throw new TypeError("columns must be a positive integer");for(var kt=new Ke(this.rows*Ae,this.columns*$e),lt=0;lt<Ae;lt++)for(var vt=0;vt<$e;vt++)kt.setSubMatrix(this,this.rows*lt,this.columns*vt);return kt}},{key:"fill",value:function(We){for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,We);return this}},{key:"neg",value:function(){return this.mulS(-1)}},{key:"getRow",value:function(We){Z(this,We);for(var be=[],Ae=0;Ae<this.columns;Ae++)be.push(this.get(We,Ae));return be}},{key:"getRowVector",value:function(We){return Ke.rowVector(this.getRow(We))}},{key:"setRow",value:function(We,be){Z(this,We),be=U(this,be);for(var Ae=0;Ae<this.columns;Ae++)this.set(We,Ae,be[Ae]);return this}},{key:"swapRows",value:function(We,be){Z(this,We),Z(this,be);for(var Ae=0;Ae<this.columns;Ae++){var Ue=this.get(We,Ae);this.set(We,Ae,this.get(be,Ae)),this.set(be,Ae,Ue)}return this}},{key:"getColumn",value:function(We){W(this,We);for(var be=[],Ae=0;Ae<this.rows;Ae++)be.push(this.get(Ae,We));return be}},{key:"getColumnVector",value:function(We){return Ke.columnVector(this.getColumn(We))}},{key:"setColumn",value:function(We,be){W(this,We),be=L(this,be);for(var Ae=0;Ae<this.rows;Ae++)this.set(Ae,We,be[Ae]);return this}},{key:"swapColumns",value:function(We,be){W(this,We),W(this,be);for(var Ae=0;Ae<this.rows;Ae++){var Ue=this.get(Ae,We);this.set(Ae,We,this.get(Ae,be)),this.set(Ae,be,Ue)}return this}},{key:"addRowVector",value:function(We){We=U(this,We);for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,this.get(be,Ae)+We[Ae]);return this}},{key:"subRowVector",value:function(We){We=U(this,We);for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,this.get(be,Ae)-We[Ae]);return this}},{key:"mulRowVector",value:function(We){We=U(this,We);for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,this.get(be,Ae)*We[Ae]);return this}},{key:"divRowVector",value:function(We){We=U(this,We);for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,this.get(be,Ae)/We[Ae]);return this}},{key:"addColumnVector",value:function(We){We=L(this,We);for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,this.get(be,Ae)+We[be]);return this}},{key:"subColumnVector",value:function(We){We=L(this,We);for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,this.get(be,Ae)-We[be]);return this}},{key:"mulColumnVector",value:function(We){We=L(this,We);for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,this.get(be,Ae)*We[be]);return this}},{key:"divColumnVector",value:function(We){We=L(this,We);for(var be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)this.set(be,Ae,this.get(be,Ae)/We[be]);return this}},{key:"mulRow",value:function(We,be){Z(this,We);for(var Ae=0;Ae<this.columns;Ae++)this.set(We,Ae,this.get(We,Ae)*be);return this}},{key:"mulColumn",value:function(We,be){W(this,We);for(var Ae=0;Ae<this.rows;Ae++)this.set(Ae,We,this.get(Ae,We)*be);return this}},{key:"max",value:function(We){if(this.isEmpty())return NaN;switch(We){case"row":{for(var be=new Array(this.rows).fill(Number.NEGATIVE_INFINITY),Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.get(Ae,Ue)>be[Ae]&&(be[Ae]=this.get(Ae,Ue));return be}case"column":{for(var $e=new Array(this.columns).fill(Number.NEGATIVE_INFINITY),kt=0;kt<this.rows;kt++)for(var lt=0;lt<this.columns;lt++)this.get(kt,lt)>$e[lt]&&($e[lt]=this.get(kt,lt));return $e}case void 0:{for(var vt=this.get(0,0),Ct=0;Ct<this.rows;Ct++)for(var Bt=0;Bt<this.columns;Bt++)this.get(Ct,Bt)>vt&&(vt=this.get(Ct,Bt));return vt}default:throw new Error("invalid option: ".concat(We))}}},{key:"maxIndex",value:function(){re(this);for(var We=this.get(0,0),be=[0,0],Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.get(Ae,Ue)>We&&(We=this.get(Ae,Ue),be[0]=Ae,be[1]=Ue);return be}},{key:"min",value:function(We){if(this.isEmpty())return NaN;switch(We){case"row":{for(var be=new Array(this.rows).fill(Number.POSITIVE_INFINITY),Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.get(Ae,Ue)<be[Ae]&&(be[Ae]=this.get(Ae,Ue));return be}case"column":{for(var $e=new Array(this.columns).fill(Number.POSITIVE_INFINITY),kt=0;kt<this.rows;kt++)for(var lt=0;lt<this.columns;lt++)this.get(kt,lt)<$e[lt]&&($e[lt]=this.get(kt,lt));return $e}case void 0:{for(var vt=this.get(0,0),Ct=0;Ct<this.rows;Ct++)for(var Bt=0;Bt<this.columns;Bt++)this.get(Ct,Bt)<vt&&(vt=this.get(Ct,Bt));return vt}default:throw new Error("invalid option: ".concat(We))}}},{key:"minIndex",value:function(){re(this);for(var We=this.get(0,0),be=[0,0],Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)this.get(Ae,Ue)<We&&(We=this.get(Ae,Ue),be[0]=Ae,be[1]=Ue);return be}},{key:"maxRow",value:function(We){if(Z(this,We),this.isEmpty())return NaN;for(var be=this.get(We,0),Ae=1;Ae<this.columns;Ae++)this.get(We,Ae)>be&&(be=this.get(We,Ae));return be}},{key:"maxRowIndex",value:function(We){Z(this,We),re(this);for(var be=this.get(We,0),Ae=[We,0],Ue=1;Ue<this.columns;Ue++)this.get(We,Ue)>be&&(be=this.get(We,Ue),Ae[1]=Ue);return Ae}},{key:"minRow",value:function(We){if(Z(this,We),this.isEmpty())return NaN;for(var be=this.get(We,0),Ae=1;Ae<this.columns;Ae++)this.get(We,Ae)<be&&(be=this.get(We,Ae));return be}},{key:"minRowIndex",value:function(We){Z(this,We),re(this);for(var be=this.get(We,0),Ae=[We,0],Ue=1;Ue<this.columns;Ue++)this.get(We,Ue)<be&&(be=this.get(We,Ue),Ae[1]=Ue);return Ae}},{key:"maxColumn",value:function(We){if(W(this,We),this.isEmpty())return NaN;for(var be=this.get(0,We),Ae=1;Ae<this.rows;Ae++)this.get(Ae,We)>be&&(be=this.get(Ae,We));return be}},{key:"maxColumnIndex",value:function(We){W(this,We),re(this);for(var be=this.get(0,We),Ae=[0,We],Ue=1;Ue<this.rows;Ue++)this.get(Ue,We)>be&&(be=this.get(Ue,We),Ae[0]=Ue);return Ae}},{key:"minColumn",value:function(We){if(W(this,We),this.isEmpty())return NaN;for(var be=this.get(0,We),Ae=1;Ae<this.rows;Ae++)this.get(Ae,We)<be&&(be=this.get(Ae,We));return be}},{key:"minColumnIndex",value:function(We){W(this,We),re(this);for(var be=this.get(0,We),Ae=[0,We],Ue=1;Ue<this.rows;Ue++)this.get(Ue,We)<be&&(be=this.get(Ue,We),Ae[0]=Ue);return Ae}},{key:"diag",value:function(){for(var We=Math.min(this.rows,this.columns),be=[],Ae=0;Ae<We;Ae++)be.push(this.get(Ae,Ae));return be}},{key:"norm",value:function(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"frobenius",be=0;if(We==="max")return this.max();if(We==="frobenius"){for(var Ae=0;Ae<this.rows;Ae++)for(var Ue=0;Ue<this.columns;Ue++)be=be+this.get(Ae,Ue)*this.get(Ae,Ue);return Math.sqrt(be)}else throw new RangeError("unknown norm type: ".concat(We))}},{key:"cumulativeSum",value:function(){for(var We=0,be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)We+=this.get(be,Ae),this.set(be,Ae,We);return this}},{key:"dot",value:function(We){ut.isMatrix(We)&&(We=We.to1DArray());var be=this.to1DArray();if(be.length!==We.length)throw new RangeError("vectors do not have the same size");for(var Ae=0,Ue=0;Ue<be.length;Ue++)Ae+=be[Ue]*We[Ue];return Ae}},{key:"mmul",value:function(We){We=Ke.checkMatrix(We);for(var be=this.rows,Ae=this.columns,Ue=We.columns,$e=new Ke(be,Ue),kt=new Float64Array(Ae),lt=0;lt<Ue;lt++){for(var vt=0;vt<Ae;vt++)kt[vt]=We.get(vt,lt);for(var Ct=0;Ct<be;Ct++){for(var Bt=0,mt=0;mt<Ae;mt++)Bt+=this.get(Ct,mt)*kt[mt];$e.set(Ct,lt,Bt)}}return $e}},{key:"strassen2x2",value:function(We){We=Ke.checkMatrix(We);var be=new Ke(2,2),Ae=this.get(0,0),Ue=We.get(0,0),$e=this.get(0,1),kt=We.get(0,1),lt=this.get(1,0),vt=We.get(1,0),Ct=this.get(1,1),Bt=We.get(1,1),mt=(Ae+Ct)*(Ue+Bt),Zt=(lt+Ct)*Ue,zt=Ae*(kt-Bt),ln=Ct*(vt-Ue),An=(Ae+$e)*Bt,En=(lt-Ae)*(Ue+kt),Gn=($e-Ct)*(vt+Bt),Bn=mt+ln-An+Gn,pr=zt+An,_r=Zt+ln,na=mt-Zt+zt+En;return be.set(0,0,Bn),be.set(0,1,pr),be.set(1,0,_r),be.set(1,1,na),be}},{key:"strassen3x3",value:function(We){We=Ke.checkMatrix(We);var be=new Ke(3,3),Ae=this.get(0,0),Ue=this.get(0,1),$e=this.get(0,2),kt=this.get(1,0),lt=this.get(1,1),vt=this.get(1,2),Ct=this.get(2,0),Bt=this.get(2,1),mt=this.get(2,2),Zt=We.get(0,0),zt=We.get(0,1),ln=We.get(0,2),An=We.get(1,0),En=We.get(1,1),Gn=We.get(1,2),Bn=We.get(2,0),pr=We.get(2,1),_r=We.get(2,2),na=(Ae+Ue+$e-kt-lt-Bt-mt)*En,$n=(Ae-kt)*(-zt+En),qr=lt*(-Zt+zt+An-En-Gn-Bn+_r),Jr=(-Ae+kt+lt)*(Zt-zt+En),Aa=(kt+lt)*(-Zt+zt),ya=Ae*Zt,$t=(-Ae+Ct+Bt)*(Zt-ln+Gn),wn=(-Ae+Ct)*(ln-Gn),Fn=(Ct+Bt)*(-Zt+ln),Or=(Ae+Ue+$e-lt-vt-Ct-Bt)*Gn,vr=Bt*(-Zt+ln+An-En-Gn-Bn+pr),Ur=(-$e+Bt+mt)*(En+Bn-pr),Zr=($e-mt)*(En-pr),Kr=$e*Bn,ba=(Bt+mt)*(-Bn+pr),Ri=(-$e+lt+vt)*(Gn+Bn-_r),Ea=($e-vt)*(Gn-_r),Pi=(lt+vt)*(-Bn+_r),rs=Ue*An,Ui=vt*pr,Cn=kt*ln,Kn=Ct*zt,Pn=mt*_r,At=ya+Kr+rs,ar=na+Jr+Aa+ya+Ur+Kr+ba,ta=ya+$t+Fn+Or+Kr+Ri+Pi,Yn=$n+qr+Jr+ya+Kr+Ri+Ea,Qa=$n+Jr+Aa+ya+Ui,Ua=Kr+Ri+Ea+Pi+Cn,Fi=ya+$t+wn+vr+Ur+Zr+Kr,Xa=Ur+Zr+Kr+ba+Kn,$i=ya+$t+wn+Fn+Pn;return be.set(0,0,At),be.set(0,1,ar),be.set(0,2,ta),be.set(1,0,Yn),be.set(1,1,Qa),be.set(1,2,Ua),be.set(2,0,Fi),be.set(2,1,Xa),be.set(2,2,$i),be}},{key:"mmulStrassen",value:function(We){We=Ke.checkMatrix(We);var be=this.clone(),Ae=be.rows,Ue=be.columns,$e=We.rows,kt=We.columns;Ue!==$e&&console.warn("Multiplying ".concat(Ae," x ").concat(Ue," and ").concat($e," x ").concat(kt," matrix: dimensions do not match."));function lt(mt,Zt,zt){var ln=mt.rows,An=mt.columns;if(ln===Zt&&An===zt)return mt;var En=ut.zeros(Zt,zt);return En=En.setSubMatrix(mt,0,0),En}var vt=Math.max(Ae,$e),Ct=Math.max(Ue,kt);be=lt(be,vt,Ct),We=lt(We,vt,Ct);function Bt(mt,Zt,zt,ln){if(zt<=512||ln<=512)return mt.mmul(Zt);zt%2==1&&ln%2==1?(mt=lt(mt,zt+1,ln+1),Zt=lt(Zt,zt+1,ln+1)):zt%2==1?(mt=lt(mt,zt+1,ln),Zt=lt(Zt,zt+1,ln)):ln%2==1&&(mt=lt(mt,zt,ln+1),Zt=lt(Zt,zt,ln+1));var An=parseInt(mt.rows/2,10),En=parseInt(mt.columns/2,10),Gn=mt.subMatrix(0,An-1,0,En-1),Bn=Zt.subMatrix(0,An-1,0,En-1),pr=mt.subMatrix(0,An-1,En,mt.columns-1),_r=Zt.subMatrix(0,An-1,En,Zt.columns-1),na=mt.subMatrix(An,mt.rows-1,0,En-1),$n=Zt.subMatrix(An,Zt.rows-1,0,En-1),qr=mt.subMatrix(An,mt.rows-1,En,mt.columns-1),Jr=Zt.subMatrix(An,Zt.rows-1,En,Zt.columns-1),Aa=Bt(ut.add(Gn,qr),ut.add(Bn,Jr),An,En),ya=Bt(ut.add(na,qr),Bn,An,En),$t=Bt(Gn,ut.sub(_r,Jr),An,En),wn=Bt(qr,ut.sub($n,Bn),An,En),Fn=Bt(ut.add(Gn,pr),Jr,An,En),Or=Bt(ut.sub(na,Gn),ut.add(Bn,_r),An,En),vr=Bt(ut.sub(pr,qr),ut.add($n,Jr),An,En),Ur=ut.add(Aa,wn);Ur.sub(Fn),Ur.add(vr);var Zr=ut.add($t,Fn),Kr=ut.add(ya,wn),ba=ut.sub(Aa,ya);ba.add($t),ba.add(Or);var Ri=ut.zeros(2*Ur.rows,2*Ur.columns);return Ri=Ri.setSubMatrix(Ur,0,0),Ri=Ri.setSubMatrix(Zr,Ur.rows,0),Ri=Ri.setSubMatrix(Kr,0,Ur.columns),Ri=Ri.setSubMatrix(ba,Ur.rows,Ur.columns),Ri.subMatrix(0,zt-1,0,ln-1)}return Bt(be,We,vt,Ct)}},{key:"scaleRows",value:function(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof We!="object")throw new TypeError("options must be an object");var be=We.min,Ae=be===void 0?0:be,Ue=We.max,$e=Ue===void 0?1:Ue;if(!Number.isFinite(Ae))throw new TypeError("min must be a number");if(!Number.isFinite($e))throw new TypeError("max must be a number");if(Ae>=$e)throw new RangeError("min must be smaller than max");for(var kt=new Ke(this.rows,this.columns),lt=0;lt<this.rows;lt++){var vt=this.getRow(lt);vt.length>0&&h(vt,{min:Ae,max:$e,output:vt}),kt.setRow(lt,vt)}return kt}},{key:"scaleColumns",value:function(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof We!="object")throw new TypeError("options must be an object");var be=We.min,Ae=be===void 0?0:be,Ue=We.max,$e=Ue===void 0?1:Ue;if(!Number.isFinite(Ae))throw new TypeError("min must be a number");if(!Number.isFinite($e))throw new TypeError("max must be a number");if(Ae>=$e)throw new RangeError("min must be smaller than max");for(var kt=new Ke(this.rows,this.columns),lt=0;lt<this.columns;lt++){var vt=this.getColumn(lt);vt.length&&h(vt,{min:Ae,max:$e,output:vt}),kt.setColumn(lt,vt)}return kt}},{key:"flipRows",value:function(){for(var We=Math.ceil(this.columns/2),be=0;be<this.rows;be++)for(var Ae=0;Ae<We;Ae++){var Ue=this.get(be,Ae),$e=this.get(be,this.columns-1-Ae);this.set(be,Ae,$e),this.set(be,this.columns-1-Ae,Ue)}return this}},{key:"flipColumns",value:function(){for(var We=Math.ceil(this.rows/2),be=0;be<this.columns;be++)for(var Ae=0;Ae<We;Ae++){var Ue=this.get(Ae,be),$e=this.get(this.rows-1-Ae,be);this.set(Ae,be,$e),this.set(this.rows-1-Ae,be,Ue)}return this}},{key:"kroneckerProduct",value:function(We){We=Ke.checkMatrix(We);for(var be=this.rows,Ae=this.columns,Ue=We.rows,$e=We.columns,kt=new Ke(be*Ue,Ae*$e),lt=0;lt<be;lt++)for(var vt=0;vt<Ae;vt++)for(var Ct=0;Ct<Ue;Ct++)for(var Bt=0;Bt<$e;Bt++)kt.set(Ue*lt+Ct,$e*vt+Bt,this.get(lt,vt)*We.get(Ct,Bt));return kt}},{key:"kroneckerSum",value:function(We){if(We=Ke.checkMatrix(We),!this.isSquare()||!We.isSquare())throw new Error("Kronecker Sum needs two Square Matrices");var be=this.rows,Ae=We.rows,Ue=this.kroneckerProduct(Ke.eye(Ae,Ae)),$e=Ke.eye(be,be).kroneckerProduct(We);return Ue.add($e)}},{key:"transpose",value:function(){for(var We=new Ke(this.columns,this.rows),be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)We.set(Ae,be,this.get(be,Ae));return We}},{key:"sortRows",value:function(){for(var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:et,be=0;be<this.rows;be++)this.setRow(be,this.getRow(be).sort(We));return this}},{key:"sortColumns",value:function(){for(var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:et,be=0;be<this.columns;be++)this.setColumn(be,this.getColumn(be).sort(We));return this}},{key:"subMatrix",value:function(We,be,Ae,Ue){G(this,We,be,Ae,Ue);for(var $e=new Ke(be-We+1,Ue-Ae+1),kt=We;kt<=be;kt++)for(var lt=Ae;lt<=Ue;lt++)$e.set(kt-We,lt-Ae,this.get(kt,lt));return $e}},{key:"subMatrixRow",value:function(We,be,Ae){if(be===void 0&&(be=0),Ae===void 0&&(Ae=this.columns-1),be>Ae||be<0||be>=this.columns||Ae<0||Ae>=this.columns)throw new RangeError("Argument out of range");for(var Ue=new Ke(We.length,Ae-be+1),$e=0;$e<We.length;$e++)for(var kt=be;kt<=Ae;kt++){if(We[$e]<0||We[$e]>=this.rows)throw new RangeError("Row index out of range: ".concat(We[$e]));Ue.set($e,kt-be,this.get(We[$e],kt))}return Ue}},{key:"subMatrixColumn",value:function(We,be,Ae){if(be===void 0&&(be=0),Ae===void 0&&(Ae=this.rows-1),be>Ae||be<0||be>=this.rows||Ae<0||Ae>=this.rows)throw new RangeError("Argument out of range");for(var Ue=new Ke(Ae-be+1,We.length),$e=0;$e<We.length;$e++)for(var kt=be;kt<=Ae;kt++){if(We[$e]<0||We[$e]>=this.columns)throw new RangeError("Column index out of range: ".concat(We[$e]));Ue.set(kt-be,$e,this.get(kt,We[$e]))}return Ue}},{key:"setSubMatrix",value:function(We,be,Ae){if(We=Ke.checkMatrix(We),We.isEmpty())return this;var Ue=be+We.rows-1,$e=Ae+We.columns-1;G(this,be,Ue,Ae,$e);for(var kt=0;kt<We.rows;kt++)for(var lt=0;lt<We.columns;lt++)this.set(be+kt,Ae+lt,We.get(kt,lt));return this}},{key:"selection",value:function(We,be){V(this,We),$(this,be);for(var Ae=new Ke(We.length,be.length),Ue=0;Ue<We.length;Ue++)for(var $e=We[Ue],kt=0;kt<be.length;kt++){var lt=be[kt];Ae.set(Ue,kt,this.get($e,lt))}return Ae}},{key:"trace",value:function(){for(var We=Math.min(this.rows,this.columns),be=0,Ae=0;Ae<We;Ae++)be+=this.get(Ae,Ae);return be}},{key:"clone",value:function(){for(var We=new Ke(this.rows,this.columns),be=0;be<this.rows;be++)for(var Ae=0;Ae<this.columns;Ae++)We.set(be,Ae,this.get(be,Ae));return We}},{key:"sum",value:function(We){switch(We){case"row":return ne(this);case"column":return Q(this);case void 0:return ue(this);default:throw new Error("invalid option: ".concat(We))}}},{key:"product",value:function(We){switch(We){case"row":return he(this);case"column":return Ee(this);case void 0:return ce(this);default:throw new Error("invalid option: ".concat(We))}}},{key:"mean",value:function(We){var be=this.sum(We);switch(We){case"row":{for(var Ae=0;Ae<this.rows;Ae++)be[Ae]/=this.columns;return be}case"column":{for(var Ue=0;Ue<this.columns;Ue++)be[Ue]/=this.rows;return be}case void 0:return be/this.size;default:throw new Error("invalid option: ".concat(We))}}},{key:"variance",value:function(We){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof We=="object"&&(be=We,We=void 0),typeof be!="object")throw new TypeError("options must be an object");var Ae=be,Ue=Ae.unbiased,$e=Ue===void 0?!0:Ue,kt=Ae.mean,lt=kt===void 0?this.mean(We):kt;if(typeof $e!="boolean")throw new TypeError("unbiased must be a boolean");switch(We){case"row":{if(!m(lt))throw new TypeError("mean must be an array");return ve(this,$e,lt)}case"column":{if(!m(lt))throw new TypeError("mean must be an array");return fe(this,$e,lt)}case void 0:{if(typeof lt!="number")throw new TypeError("mean must be a number");return we(this,$e,lt)}default:throw new Error("invalid option: ".concat(We))}}},{key:"standardDeviation",value:function(We,be){typeof We=="object"&&(be=We,We=void 0);var Ae=this.variance(We,be);if(We===void 0)return Math.sqrt(Ae);for(var Ue=0;Ue<Ae.length;Ue++)Ae[Ue]=Math.sqrt(Ae[Ue]);return Ae}},{key:"center",value:function(We){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof We=="object"&&(be=We,We=void 0),typeof be!="object")throw new TypeError("options must be an object");var Ae=be,Ue=Ae.center,$e=Ue===void 0?this.mean(We):Ue;switch(We){case"row":{if(!m($e))throw new TypeError("center must be an array");return me(this,$e),this}case"column":{if(!m($e))throw new TypeError("center must be an array");return Pe(this,$e),this}case void 0:{if(typeof $e!="number")throw new TypeError("center must be a number");return pe(this,$e),this}default:throw new Error("invalid option: ".concat(We))}}},{key:"scale",value:function(We){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof We=="object"&&(be=We,We=void 0),typeof be!="object")throw new TypeError("options must be an object");var Ae=be.scale;switch(We){case"row":{if(Ae===void 0)Ae=Ie(this);else if(!m(Ae))throw new TypeError("scale must be an array");return Je(this,Ae),this}case"column":{if(Ae===void 0)Ae=ke(this);else if(!m(Ae))throw new TypeError("scale must be an array");return De(this,Ae),this}case void 0:{if(Ae===void 0)Ae=Fe(this);else if(typeof Ae!="number")throw new TypeError("scale must be a number");return Qe(this,Ae),this}default:throw new Error("invalid option: ".concat(We))}}},{key:"toString",value:function(We){return S(this,We)}}],[{key:"from1DArray",value:function(We,be,Ae){var Ue=We*be;if(Ue!==Ae.length)throw new RangeError("data length does not match given dimensions");for(var $e=new Ke(We,be),kt=0;kt<We;kt++)for(var lt=0;lt<be;lt++)$e.set(kt,lt,Ae[kt*be+lt]);return $e}},{key:"rowVector",value:function(We){for(var be=new Ke(1,We.length),Ae=0;Ae<We.length;Ae++)be.set(0,Ae,We[Ae]);return be}},{key:"columnVector",value:function(We){for(var be=new Ke(We.length,1),Ae=0;Ae<We.length;Ae++)be.set(Ae,0,We[Ae]);return be}},{key:"zeros",value:function(We,be){return new Ke(We,be)}},{key:"ones",value:function(We,be){return new Ke(We,be).fill(1)}},{key:"rand",value:function(We,be){var Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof Ae!="object")throw new TypeError("options must be an object");for(var Ue=Ae.random,$e=Ue===void 0?Math.random:Ue,kt=new Ke(We,be),lt=0;lt<We;lt++)for(var vt=0;vt<be;vt++)kt.set(lt,vt,$e());return kt}},{key:"randInt",value:function(We,be){var Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof Ae!="object")throw new TypeError("options must be an object");var Ue=Ae.min,$e=Ue===void 0?0:Ue,kt=Ae.max,lt=kt===void 0?1e3:kt,vt=Ae.random,Ct=vt===void 0?Math.random:vt;if(!Number.isInteger($e))throw new TypeError("min must be an integer");if(!Number.isInteger(lt))throw new TypeError("max must be an integer");if($e>=lt)throw new RangeError("min must be smaller than max");for(var Bt=lt-$e,mt=new Ke(We,be),Zt=0;Zt<We;Zt++)for(var zt=0;zt<be;zt++){var ln=$e+Math.round(Ct()*Bt);mt.set(Zt,zt,ln)}return mt}},{key:"eye",value:function(We,be,Ae){be===void 0&&(be=We),Ae===void 0&&(Ae=1);for(var Ue=Math.min(We,be),$e=this.zeros(We,be),kt=0;kt<Ue;kt++)$e.set(kt,kt,Ae);return $e}},{key:"diag",value:function(We,be,Ae){var Ue=We.length;be===void 0&&(be=Ue),Ae===void 0&&(Ae=be);for(var $e=Math.min(Ue,be,Ae),kt=this.zeros(be,Ae),lt=0;lt<$e;lt++)kt.set(lt,lt,We[lt]);return kt}},{key:"min",value:function(We,be){We=this.checkMatrix(We),be=this.checkMatrix(be);for(var Ae=We.rows,Ue=We.columns,$e=new Ke(Ae,Ue),kt=0;kt<Ae;kt++)for(var lt=0;lt<Ue;lt++)$e.set(kt,lt,Math.min(We.get(kt,lt),be.get(kt,lt)));return $e}},{key:"max",value:function(We,be){We=this.checkMatrix(We),be=this.checkMatrix(be);for(var Ae=We.rows,Ue=We.columns,$e=new this(Ae,Ue),kt=0;kt<Ae;kt++)for(var lt=0;lt<Ue;lt++)$e.set(kt,lt,Math.max(We.get(kt,lt),be.get(kt,lt)));return $e}},{key:"checkMatrix",value:function(We){return ut.isMatrix(We)?We:new Ke(We)}},{key:"isMatrix",value:function(We){return We!=null&&We.klass==="Matrix"}}]),ut}();qe.prototype.klass="Matrix",typeof Symbol!="undefined"&&(qe.prototype[Symbol.for("nodejs.util.inspect.custom")]=p);function et(ut,bt){return ut-bt}function dt(ut){return ut.every(function(bt){return typeof bt=="number"})}qe.random=qe.rand,qe.randomInt=qe.randInt,qe.diagonal=qe.diag,qe.prototype.diagonal=qe.prototype.diag,qe.identity=qe.eye,qe.prototype.negate=qe.prototype.neg,qe.prototype.tensorProduct=qe.prototype.kroneckerProduct;var Ke=function(ut){(0,g.Z)(We,ut);var bt=(0,A.Z)(We);function We(be,Ae){var Ue;if((0,y.Z)(this,We),Ue=bt.call(this),We.isMatrix(be))return(0,x.Z)(Ue,be.clone());if(Number.isInteger(be)&&be>=0)if(Ue.data=[],Number.isInteger(Ae)&&Ae>=0)for(var $e=0;$e<be;$e++)Ue.data.push(new Float64Array(Ae));else throw new TypeError("nColumns must be a positive integer");else if(m(be)){var kt=be;if(be=kt.length,Ae=be?kt[0].length:0,typeof Ae!="number")throw new TypeError("Data must be a 2D array with at least one element");Ue.data=[];for(var lt=0;lt<be;lt++){if(kt[lt].length!==Ae)throw new RangeError("Inconsistent array dimensions");if(!dt(kt[lt]))throw new TypeError("Input data contains non-numeric values");Ue.data.push(Float64Array.from(kt[lt]))}}else throw new TypeError("First argument must be a positive number or an array");return Ue.rows=be,Ue.columns=Ae,Ue}return(0,M.Z)(We,[{key:"set",value:function(Ae,Ue,$e){return this.data[Ae][Ue]=$e,this}},{key:"get",value:function(Ae,Ue){return this.data[Ae][Ue]}},{key:"removeRow",value:function(Ae){return Z(this,Ae),this.data.splice(Ae,1),this.rows-=1,this}},{key:"addRow",value:function(Ae,Ue){return Ue===void 0&&(Ue=Ae,Ae=this.rows),Z(this,Ae,!0),Ue=Float64Array.from(U(this,Ue)),this.data.splice(Ae,0,Ue),this.rows+=1,this}},{key:"removeColumn",value:function(Ae){W(this,Ae);for(var Ue=0;Ue<this.rows;Ue++){for(var $e=new Float64Array(this.columns-1),kt=0;kt<Ae;kt++)$e[kt]=this.data[Ue][kt];for(var lt=Ae+1;lt<this.columns;lt++)$e[lt-1]=this.data[Ue][lt];this.data[Ue]=$e}return this.columns-=1,this}},{key:"addColumn",value:function(Ae,Ue){typeof Ue=="undefined"&&(Ue=Ae,Ae=this.columns),W(this,Ae,!0),Ue=L(this,Ue);for(var $e=0;$e<this.rows;$e++){for(var kt=new Float64Array(this.columns+1),lt=0;lt<Ae;lt++)kt[lt]=this.data[$e][lt];for(kt[lt++]=Ue[$e];lt<this.columns+1;lt++)kt[lt]=this.data[$e][lt-1];this.data[$e]=kt}return this.columns+=1,this}}]),We}(qe);D(qe,Ke);var Ge=function(ut){(0,g.Z)(We,ut);var bt=(0,A.Z)(We);function We(be,Ae,Ue){var $e;return(0,y.Z)(this,We),$e=bt.call(this),$e.matrix=be,$e.rows=Ae,$e.columns=Ue,$e}return(0,M.Z)(We)}(qe),wt=function(ut){(0,g.Z)(We,ut);var bt=(0,A.Z)(We);function We(be,Ae){var Ue;return(0,y.Z)(this,We),W(be,Ae),Ue=bt.call(this,be,be.rows,1),Ue.column=Ae,Ue}return(0,M.Z)(We,[{key:"set",value:function(Ae,Ue,$e){return this.matrix.set(Ae,this.column,$e),this}},{key:"get",value:function(Ae){return this.matrix.get(Ae,this.column)}}]),We}(Ge),Vt=function(ut){(0,g.Z)(We,ut);var bt=(0,A.Z)(We);function We(be,Ae){var Ue;return(0,y.Z)(this,We),$(be,Ae),Ue=bt.call(this,be,be.rows,Ae.length),Ue.columnIndices=Ae,Ue}return(0,M.Z)(We,[{key:"set",value:function(Ae,Ue,$e){return this.matrix.set(Ae,this.columnIndices[Ue],$e),this}},{key:"get",value:function(Ae,Ue){return this.matrix.get(Ae,this.columnIndices[Ue])}}]),We}(Ge),gt=function(ut){(0,g.Z)(We,ut);var bt=(0,A.Z)(We);function We(be){return(0,y.Z)(this,We),bt.call(this,be,be.rows,be.columns)}return(0,M.Z)(We,[{key:"set",value:function(Ae,Ue,$e){return this.matrix.set(Ae,this.columns-Ue-1,$e),this}},{key:"get",value:function(Ae,Ue){return this.matrix.get(Ae,this.columns-Ue-1)}}]),We}(Ge),it=function(ut){(0,g.Z)(We,ut);var bt=(0,A.Z)(We);function We(be){return(0,y.Z)(this,We),bt.call(this,be,be.rows,be.columns)}return(0,M.Z)(We,[{key:"set",value:function(Ae,Ue,$e){return this.matrix.set(this.rows-Ae-1,Ue,$e),this}},{key:"get",value:function(Ae,Ue){return this.matrix.get(this.rows-Ae-1,Ue)}}]),We}(Ge),Le=function(ut){(0,g.Z)(We,ut);var bt=(0,A.Z)(We);function We(be,Ae){var Ue;return(0,y.Z)(this,We),Z(be,Ae),Ue=bt.call(this,be,1,be.columns),Ue.row=Ae,Ue}return(0,M.Z)(We,[{key:"set",value:function(Ae,Ue,$e){return this.matrix.set(this.row,Ue,$e),this}},{key:"get",value:function(Ae,Ue){return this.matrix.get(this.row,Ue)}}]),We}(Ge),ct=function(ut){(0,g.Z)(We,ut);var bt=(0,A.Z)(We);function We(be,Ae){var Ue;return(0,y.Z)(this,We),V(be,Ae),Ue=bt.call(this,be,Ae.length,be.columns),Ue.rowIndices=Ae,Ue}return(0,M.Z)(We,[{key:"set",value:function(Ae,Ue,$e){return this.matrix.set(this.rowIndices[Ae],Ue,$e),this}},{key:"get",value:function(Ae,Ue){return this.matrix.get(this.rowIndices[Ae],Ue)}}]),We}(Ge),at=function(ut){(0,g.Z)(We,ut);var bt=(0,A.Z)(We);function We(be,Ae,Ue){var $e;return(0,y.Z)(this,We),V(be,Ae),$(be,Ue),$e=bt.call(this,be,Ae.length,Ue.length),$e.rowIndices=Ae,$e.columnIndices=Ue,$e}return(0,M.Z)(We,[{key:"set",value:function(Ae,Ue,$e){return this.matrix.set(this.rowIndices[Ae],this.columnIndices[Ue],$e),this}},{key:"get",value:function(Ae,Ue){return this.matrix.get(this.rowIndices[Ae],this.columnIndices[Ue])}}]),We}(Ge),jt=function(ut){(0,g.Z)(We,ut);var bt=(0,A.Z)(We);function We(be,Ae,Ue,$e,kt){var lt;return(0,y.Z)(this,We),G(be,Ae,Ue,$e,kt),lt=bt.call(this,be,Ue-Ae+1,kt-$e+1),lt.startRow=Ae,lt.startColumn=$e,lt}return(0,M.Z)(We,[{key:"set",value:function(Ae,Ue,$e){return this.matrix.set(this.startRow+Ae,this.startColumn+Ue,$e),this}},{key:"get",value:function(Ae,Ue){return this.matrix.get(this.startRow+Ae,this.startColumn+Ue)}}]),We}(Ge),St=function(ut){(0,g.Z)(We,ut);var bt=(0,A.Z)(We);function We(be){return(0,y.Z)(this,We),bt.call(this,be,be.columns,be.rows)}return(0,M.Z)(We,[{key:"set",value:function(Ae,Ue,$e){return this.matrix.set(Ue,Ae,$e),this}},{key:"get",value:function(Ae,Ue){return this.matrix.get(Ue,Ae)}}]),We}(Ge),fn=function(ut){(0,g.Z)(We,ut);var bt=(0,A.Z)(We);function We(be){var Ae,Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,y.Z)(this,We);var $e=Ue.rows,kt=$e===void 0?1:$e;if(be.length%kt!=0)throw new Error("the data length is not divisible by the number of rows");return Ae=bt.call(this),Ae.rows=kt,Ae.columns=be.length/kt,Ae.data=be,Ae}return(0,M.Z)(We,[{key:"set",value:function(Ae,Ue,$e){var kt=this._calculateIndex(Ae,Ue);return this.data[kt]=$e,this}},{key:"get",value:function(Ae,Ue){var $e=this._calculateIndex(Ae,Ue);return this.data[$e]}},{key:"_calculateIndex",value:function(Ae,Ue){return Ae*this.columns+Ue}}]),We}(qe),Xt=function(ut){(0,g.Z)(We,ut);var bt=(0,A.Z)(We);function We(be){var Ae;return(0,y.Z)(this,We),Ae=bt.call(this),Ae.data=be,Ae.rows=be.length,Ae.columns=be[0].length,Ae}return(0,M.Z)(We,[{key:"set",value:function(Ae,Ue,$e){return this.data[Ae][Ue]=$e,this}},{key:"get",value:function(Ae,Ue){return this.data[Ae][Ue]}}]),We}(qe);function Yt(ut,bt){if(m(ut))return ut[0]&&m(ut[0])?new Xt(ut):new fn(ut,bt);throw new Error("the argument is not an array")}var Rt=function(){function ut(bt){(0,y.Z)(this,ut),bt=Xt.checkMatrix(bt);var We=bt.clone(),be=We.rows,Ae=We.columns,Ue=new Float64Array(be),$e=1,kt,lt,vt,Ct,Bt,mt,Zt,zt,ln;for(kt=0;kt<be;kt++)Ue[kt]=kt;for(zt=new Float64Array(be),lt=0;lt<Ae;lt++){for(kt=0;kt<be;kt++)zt[kt]=We.get(kt,lt);for(kt=0;kt<be;kt++){for(ln=Math.min(kt,lt),Bt=0,vt=0;vt<ln;vt++)Bt+=We.get(kt,vt)*zt[vt];zt[kt]-=Bt,We.set(kt,lt,zt[kt])}for(Ct=lt,kt=lt+1;kt<be;kt++)Math.abs(zt[kt])>Math.abs(zt[Ct])&&(Ct=kt);if(Ct!==lt){for(vt=0;vt<Ae;vt++)mt=We.get(Ct,vt),We.set(Ct,vt,We.get(lt,vt)),We.set(lt,vt,mt);Zt=Ue[Ct],Ue[Ct]=Ue[lt],Ue[lt]=Zt,$e=-$e}if(lt<be&&We.get(lt,lt)!==0)for(kt=lt+1;kt<be;kt++)We.set(kt,lt,We.get(kt,lt)/We.get(lt,lt))}this.LU=We,this.pivotVector=Ue,this.pivotSign=$e}return(0,M.Z)(ut,[{key:"isSingular",value:function(){for(var We=this.LU,be=We.columns,Ae=0;Ae<be;Ae++)if(We.get(Ae,Ae)===0)return!0;return!1}},{key:"solve",value:function(We){We=Ke.checkMatrix(We);var be=this.LU,Ae=be.rows;if(Ae!==We.rows)throw new Error("Invalid matrix dimensions");if(this.isSingular())throw new Error("LU matrix is singular");var Ue=We.columns,$e=We.subMatrixRow(this.pivotVector,0,Ue-1),kt=be.columns,lt,vt,Ct;for(Ct=0;Ct<kt;Ct++)for(lt=Ct+1;lt<kt;lt++)for(vt=0;vt<Ue;vt++)$e.set(lt,vt,$e.get(lt,vt)-$e.get(Ct,vt)*be.get(lt,Ct));for(Ct=kt-1;Ct>=0;Ct--){for(vt=0;vt<Ue;vt++)$e.set(Ct,vt,$e.get(Ct,vt)/be.get(Ct,Ct));for(lt=0;lt<Ct;lt++)for(vt=0;vt<Ue;vt++)$e.set(lt,vt,$e.get(lt,vt)-$e.get(Ct,vt)*be.get(lt,Ct))}return $e}},{key:"determinant",get:function(){var We=this.LU;if(!We.isSquare())throw new Error("Matrix must be square");for(var be=this.pivotSign,Ae=We.columns,Ue=0;Ue<Ae;Ue++)be*=We.get(Ue,Ue);return be}},{key:"lowerTriangularMatrix",get:function(){for(var We=this.LU,be=We.rows,Ae=We.columns,Ue=new Ke(be,Ae),$e=0;$e<be;$e++)for(var kt=0;kt<Ae;kt++)$e>kt?Ue.set($e,kt,We.get($e,kt)):$e===kt?Ue.set($e,kt,1):Ue.set($e,kt,0);return Ue}},{key:"upperTriangularMatrix",get:function(){for(var We=this.LU,be=We.rows,Ae=We.columns,Ue=new Ke(be,Ae),$e=0;$e<be;$e++)for(var kt=0;kt<Ae;kt++)$e<=kt?Ue.set($e,kt,We.get($e,kt)):Ue.set($e,kt,0);return Ue}},{key:"pivotPermutationVector",get:function(){return Array.from(this.pivotVector)}}]),ut}();function Lt(ut,bt){var We=0;return Math.abs(ut)>Math.abs(bt)?(We=bt/ut,Math.abs(ut)*Math.sqrt(1+We*We)):bt!==0?(We=ut/bt,Math.abs(bt)*Math.sqrt(1+We*We)):0}var ze=function(){function ut(bt){(0,y.Z)(this,ut),bt=Xt.checkMatrix(bt);var We=bt.clone(),be=bt.rows,Ae=bt.columns,Ue=new Float64Array(Ae),$e,kt,lt,vt;for(lt=0;lt<Ae;lt++){var Ct=0;for($e=lt;$e<be;$e++)Ct=Lt(Ct,We.get($e,lt));if(Ct!==0){for(We.get(lt,lt)<0&&(Ct=-Ct),$e=lt;$e<be;$e++)We.set($e,lt,We.get($e,lt)/Ct);for(We.set(lt,lt,We.get(lt,lt)+1),kt=lt+1;kt<Ae;kt++){for(vt=0,$e=lt;$e<be;$e++)vt+=We.get($e,lt)*We.get($e,kt);for(vt=-vt/We.get(lt,lt),$e=lt;$e<be;$e++)We.set($e,kt,We.get($e,kt)+vt*We.get($e,lt))}}Ue[lt]=-Ct}this.QR=We,this.Rdiag=Ue}return(0,M.Z)(ut,[{key:"solve",value:function(We){We=Ke.checkMatrix(We);var be=this.QR,Ae=be.rows;if(We.rows!==Ae)throw new Error("Matrix row dimensions must agree");if(!this.isFullRank())throw new Error("Matrix is rank deficient");var Ue=We.columns,$e=We.clone(),kt=be.columns,lt,vt,Ct,Bt;for(Ct=0;Ct<kt;Ct++)for(vt=0;vt<Ue;vt++){for(Bt=0,lt=Ct;lt<Ae;lt++)Bt+=be.get(lt,Ct)*$e.get(lt,vt);for(Bt=-Bt/be.get(Ct,Ct),lt=Ct;lt<Ae;lt++)$e.set(lt,vt,$e.get(lt,vt)+Bt*be.get(lt,Ct))}for(Ct=kt-1;Ct>=0;Ct--){for(vt=0;vt<Ue;vt++)$e.set(Ct,vt,$e.get(Ct,vt)/this.Rdiag[Ct]);for(lt=0;lt<Ct;lt++)for(vt=0;vt<Ue;vt++)$e.set(lt,vt,$e.get(lt,vt)-$e.get(Ct,vt)*be.get(lt,Ct))}return $e.subMatrix(0,kt-1,0,Ue-1)}},{key:"isFullRank",value:function(){for(var We=this.QR.columns,be=0;be<We;be++)if(this.Rdiag[be]===0)return!1;return!0}},{key:"upperTriangularMatrix",get:function(){var We=this.QR,be=We.columns,Ae=new Ke(be,be),Ue,$e;for(Ue=0;Ue<be;Ue++)for($e=0;$e<be;$e++)Ue<$e?Ae.set(Ue,$e,We.get(Ue,$e)):Ue===$e?Ae.set(Ue,$e,this.Rdiag[Ue]):Ae.set(Ue,$e,0);return Ae}},{key:"orthogonalMatrix",get:function(){var We=this.QR,be=We.rows,Ae=We.columns,Ue=new Ke(be,Ae),$e,kt,lt,vt;for(lt=Ae-1;lt>=0;lt--){for($e=0;$e<be;$e++)Ue.set($e,lt,0);for(Ue.set(lt,lt,1),kt=lt;kt<Ae;kt++)if(We.get(lt,lt)!==0){for(vt=0,$e=lt;$e<be;$e++)vt+=We.get($e,lt)*Ue.get($e,kt);for(vt=-vt/We.get(lt,lt),$e=lt;$e<be;$e++)Ue.set($e,kt,Ue.get($e,kt)+vt*We.get($e,lt))}}return Ue}}]),ut}(),rt=function(){function ut(bt){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if((0,y.Z)(this,ut),bt=Xt.checkMatrix(bt),bt.isEmpty())throw new Error("Matrix must be non-empty");var be=bt.rows,Ae=bt.columns,Ue=We.computeLeftSingularVectors,$e=Ue===void 0?!0:Ue,kt=We.computeRightSingularVectors,lt=kt===void 0?!0:kt,vt=We.autoTranspose,Ct=vt===void 0?!1:vt,Bt=Boolean($e),mt=Boolean(lt),Zt=!1,zt;if(be<Ae)if(!Ct)zt=bt.clone(),console.warn("Computing SVD on a matrix with more columns than rows. Consider enabling autoTranspose");else{zt=bt.transpose(),be=zt.rows,Ae=zt.columns,Zt=!0;var ln=Bt;Bt=mt,mt=ln}else zt=bt.clone();for(var An=Math.min(be,Ae),En=Math.min(be+1,Ae),Gn=new Float64Array(En),Bn=new Ke(be,An),pr=new Ke(Ae,Ae),_r=new Float64Array(Ae),na=new Float64Array(be),$n=new Float64Array(En),qr=0;qr<En;qr++)$n[qr]=qr;for(var Jr=Math.min(be-1,Ae),Aa=Math.max(0,Math.min(Ae-2,be)),ya=Math.max(Jr,Aa),$t=0;$t<ya;$t++){if($t<Jr){Gn[$t]=0;for(var wn=$t;wn<be;wn++)Gn[$t]=Lt(Gn[$t],zt.get(wn,$t));if(Gn[$t]!==0){zt.get($t,$t)<0&&(Gn[$t]=-Gn[$t]);for(var Fn=$t;Fn<be;Fn++)zt.set(Fn,$t,zt.get(Fn,$t)/Gn[$t]);zt.set($t,$t,zt.get($t,$t)+1)}Gn[$t]=-Gn[$t]}for(var Or=$t+1;Or<Ae;Or++){if($t<Jr&&Gn[$t]!==0){for(var vr=0,Ur=$t;Ur<be;Ur++)vr+=zt.get(Ur,$t)*zt.get(Ur,Or);vr=-vr/zt.get($t,$t);for(var Zr=$t;Zr<be;Zr++)zt.set(Zr,Or,zt.get(Zr,Or)+vr*zt.get(Zr,$t))}_r[Or]=zt.get($t,Or)}if(Bt&&$t<Jr)for(var Kr=$t;Kr<be;Kr++)Bn.set(Kr,$t,zt.get(Kr,$t));if($t<Aa){_r[$t]=0;for(var ba=$t+1;ba<Ae;ba++)_r[$t]=Lt(_r[$t],_r[ba]);if(_r[$t]!==0){_r[$t+1]<0&&(_r[$t]=0-_r[$t]);for(var Ri=$t+1;Ri<Ae;Ri++)_r[Ri]/=_r[$t];_r[$t+1]+=1}if(_r[$t]=-_r[$t],$t+1<be&&_r[$t]!==0){for(var Ea=$t+1;Ea<be;Ea++)na[Ea]=0;for(var Pi=$t+1;Pi<be;Pi++)for(var rs=$t+1;rs<Ae;rs++)na[Pi]+=_r[rs]*zt.get(Pi,rs);for(var Ui=$t+1;Ui<Ae;Ui++)for(var Cn=-_r[Ui]/_r[$t+1],Kn=$t+1;Kn<be;Kn++)zt.set(Kn,Ui,zt.get(Kn,Ui)+Cn*na[Kn])}if(mt)for(var Pn=$t+1;Pn<Ae;Pn++)pr.set(Pn,$t,_r[Pn])}}var At=Math.min(Ae,be+1);if(Jr<Ae&&(Gn[Jr]=zt.get(Jr,Jr)),be<At&&(Gn[At-1]=0),Aa+1<At&&(_r[Aa]=zt.get(Aa,At-1)),_r[At-1]=0,Bt){for(var ar=Jr;ar<An;ar++){for(var ta=0;ta<be;ta++)Bn.set(ta,ar,0);Bn.set(ar,ar,1)}for(var Yn=Jr-1;Yn>=0;Yn--)if(Gn[Yn]!==0){for(var Qa=Yn+1;Qa<An;Qa++){for(var Ua=0,Fi=Yn;Fi<be;Fi++)Ua+=Bn.get(Fi,Yn)*Bn.get(Fi,Qa);Ua=-Ua/Bn.get(Yn,Yn);for(var Xa=Yn;Xa<be;Xa++)Bn.set(Xa,Qa,Bn.get(Xa,Qa)+Ua*Bn.get(Xa,Yn))}for(var $i=Yn;$i<be;$i++)Bn.set($i,Yn,-Bn.get($i,Yn));Bn.set(Yn,Yn,1+Bn.get(Yn,Yn));for(var La=0;La<Yn-1;La++)Bn.set(La,Yn,0)}else{for(var ja=0;ja<be;ja++)Bn.set(ja,Yn,0);Bn.set(Yn,Yn,1)}}if(mt)for(var ei=Ae-1;ei>=0;ei--){if(ei<Aa&&_r[ei]!==0)for(var Do=ei+1;Do<Ae;Do++){for(var yo=0,to=ei+1;to<Ae;to++)yo+=pr.get(to,ei)*pr.get(to,Do);yo=-yo/pr.get(ei+1,ei);for(var fs=ei+1;fs<Ae;fs++)pr.set(fs,Do,pr.get(fs,Do)+yo*pr.get(fs,ei))}for(var cs=0;cs<Ae;cs++)pr.set(cs,ei,0);pr.set(ei,ei,1)}for(var Os=At-1,vl=0,Ar=Number.EPSILON;At>0;){var Rn=void 0,Sr=void 0;for(Rn=At-2;Rn>=-1&&Rn!==-1;Rn--){var nn=Number.MIN_VALUE+Ar*Math.abs(Gn[Rn]+Math.abs(Gn[Rn+1]));if(Math.abs(_r[Rn])<=nn||Number.isNaN(_r[Rn])){_r[Rn]=0;break}}if(Rn===At-2)Sr=4;else{var sn=void 0;for(sn=At-1;sn>=Rn&&sn!==Rn;sn--){var Ot=(sn!==At?Math.abs(_r[sn]):0)+(sn!==Rn+1?Math.abs(_r[sn-1]):0);if(Math.abs(Gn[sn])<=Ar*Ot){Gn[sn]=0;break}}sn===Rn?Sr=3:sn===At-1?Sr=1:(Sr=2,Rn=sn)}switch(Rn++,Sr){case 1:{var gr=_r[At-2];_r[At-2]=0;for(var Gr=At-2;Gr>=Rn;Gr--){var Ln=Lt(Gn[Gr],gr),Tr=Gn[Gr]/Ln,Dn=gr/Ln;if(Gn[Gr]=Ln,Gr!==Rn&&(gr=-Dn*_r[Gr-1],_r[Gr-1]=Tr*_r[Gr-1]),mt)for(var Pr=0;Pr<Ae;Pr++)Ln=Tr*pr.get(Pr,Gr)+Dn*pr.get(Pr,At-1),pr.set(Pr,At-1,-Dn*pr.get(Pr,Gr)+Tr*pr.get(Pr,At-1)),pr.set(Pr,Gr,Ln)}break}case 2:{var fa=_r[Rn-1];_r[Rn-1]=0;for(var ka=Rn;ka<At;ka++){var Li=Lt(Gn[ka],fa),zi=Gn[ka]/Li,Mo=fa/Li;if(Gn[ka]=Li,fa=-Mo*_r[ka],_r[ka]=zi*_r[ka],Bt)for(var Za=0;Za<be;Za++)Li=zi*Bn.get(Za,ka)+Mo*Bn.get(Za,Rn-1),Bn.set(Za,Rn-1,-Mo*Bn.get(Za,ka)+zi*Bn.get(Za,Rn-1)),Bn.set(Za,ka,Li)}break}case 3:{var ao=Math.max(Math.abs(Gn[At-1]),Math.abs(Gn[At-2]),Math.abs(_r[At-2]),Math.abs(Gn[Rn]),Math.abs(_r[Rn])),Mi=Gn[At-1]/ao,Eo=Gn[At-2]/ao,Xi=_r[At-2]/ao,Bo=Gn[Rn]/ao,ol=_r[Rn]/ao,Il=((Eo+Mi)*(Eo-Mi)+Xi*Xi)/2,ms=Mi*Xi*(Mi*Xi),mc=0;(Il!==0||ms!==0)&&(Il<0?mc=0-Math.sqrt(Il*Il+ms):mc=Math.sqrt(Il*Il+ms),mc=ms/(Il+mc));for(var Ys=(Bo+Mi)*(Bo-Mi)+mc,hl=Bo*ol,Rs=Rn;Rs<At-1;Rs++){var xl=Lt(Ys,hl);xl===0&&(xl=Number.MIN_VALUE);var Wl=Ys/xl,_l=hl/xl;if(Rs!==Rn&&(_r[Rs-1]=xl),Ys=Wl*Gn[Rs]+_l*_r[Rs],_r[Rs]=Wl*_r[Rs]-_l*Gn[Rs],hl=_l*Gn[Rs+1],Gn[Rs+1]=Wl*Gn[Rs+1],mt)for(var Ls=0;Ls<Ae;Ls++)xl=Wl*pr.get(Ls,Rs)+_l*pr.get(Ls,Rs+1),pr.set(Ls,Rs+1,-_l*pr.get(Ls,Rs)+Wl*pr.get(Ls,Rs+1)),pr.set(Ls,Rs,xl);if(xl=Lt(Ys,hl),xl===0&&(xl=Number.MIN_VALUE),Wl=Ys/xl,_l=hl/xl,Gn[Rs]=xl,Ys=Wl*_r[Rs]+_l*Gn[Rs+1],Gn[Rs+1]=-_l*_r[Rs]+Wl*Gn[Rs+1],hl=_l*_r[Rs+1],_r[Rs+1]=Wl*_r[Rs+1],Bt&&Rs<be-1)for(var zn=0;zn<be;zn++)xl=Wl*Bn.get(zn,Rs)+_l*Bn.get(zn,Rs+1),Bn.set(zn,Rs+1,-_l*Bn.get(zn,Rs)+Wl*Bn.get(zn,Rs+1)),Bn.set(zn,Rs,xl)}_r[At-2]=Ys,vl=vl+1;break}case 4:{if(Gn[Rn]<=0&&(Gn[Rn]=Gn[Rn]<0?-Gn[Rn]:0,mt))for(var Dr=0;Dr<=Os;Dr++)pr.set(Dr,Rn,-pr.get(Dr,Rn));for(;Rn<Os&&!(Gn[Rn]>=Gn[Rn+1]);){var Hr=Gn[Rn];if(Gn[Rn]=Gn[Rn+1],Gn[Rn+1]=Hr,mt&&Rn<Ae-1)for(var _a=0;_a<Ae;_a++)Hr=pr.get(_a,Rn+1),pr.set(_a,Rn+1,pr.get(_a,Rn)),pr.set(_a,Rn,Hr);if(Bt&&Rn<be-1)for(var Ti=0;Ti<be;Ti++)Hr=Bn.get(Ti,Rn+1),Bn.set(Ti,Rn+1,Bn.get(Ti,Rn)),Bn.set(Ti,Rn,Hr);Rn++}vl=0,At--;break}}}if(Zt){var Ci=pr;pr=Bn,Bn=Ci}this.m=be,this.n=Ae,this.s=Gn,this.U=Bn,this.V=pr}return(0,M.Z)(ut,[{key:"solve",value:function(We){for(var be=We,Ae=this.threshold,Ue=this.s.length,$e=Ke.zeros(Ue,Ue),kt=0;kt<Ue;kt++)Math.abs(this.s[kt])<=Ae?$e.set(kt,kt,0):$e.set(kt,kt,1/this.s[kt]);for(var lt=this.U,vt=this.rightSingularVectors,Ct=vt.mmul($e),Bt=vt.rows,mt=lt.rows,Zt=Ke.zeros(Bt,mt),zt=0;zt<Bt;zt++)for(var ln=0;ln<mt;ln++){for(var An=0,En=0;En<Ue;En++)An+=Ct.get(zt,En)*lt.get(ln,En);Zt.set(zt,ln,An)}return Zt.mmul(be)}},{key:"solveForDiagonal",value:function(We){return this.solve(Ke.diag(We))}},{key:"inverse",value:function(){for(var We=this.V,be=this.threshold,Ae=We.rows,Ue=We.columns,$e=new Ke(Ae,this.s.length),kt=0;kt<Ae;kt++)for(var lt=0;lt<Ue;lt++)Math.abs(this.s[lt])>be&&$e.set(kt,lt,We.get(kt,lt)/this.s[lt]);for(var vt=this.U,Ct=vt.rows,Bt=vt.columns,mt=new Ke(Ae,Ct),Zt=0;Zt<Ae;Zt++)for(var zt=0;zt<Ct;zt++){for(var ln=0,An=0;An<Bt;An++)ln+=$e.get(Zt,An)*vt.get(zt,An);mt.set(Zt,zt,ln)}return mt}},{key:"condition",get:function(){return this.s[0]/this.s[Math.min(this.m,this.n)-1]}},{key:"norm2",get:function(){return this.s[0]}},{key:"rank",get:function(){for(var We=Math.max(this.m,this.n)*this.s[0]*Number.EPSILON,be=0,Ae=this.s,Ue=0,$e=Ae.length;Ue<$e;Ue++)Ae[Ue]>We&&be++;return be}},{key:"diagonal",get:function(){return Array.from(this.s)}},{key:"threshold",get:function(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}},{key:"leftSingularVectors",get:function(){return this.U}},{key:"rightSingularVectors",get:function(){return this.V}},{key:"diagonalMatrix",get:function(){return Ke.diag(this.s)}}]),ut}();function tt(ut){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ut=Xt.checkMatrix(ut),bt?new rt(ut).inverse():de(ut,Ke.eye(ut.rows))}function de(ut,bt){var We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return ut=Xt.checkMatrix(ut),bt=Xt.checkMatrix(bt),We?new rt(ut).solve(bt):ut.isSquare()?new Rt(ut).solve(bt):new ze(ut).solve(bt)}function ot(ut){if(ut=Ke.checkMatrix(ut),ut.isSquare()){if(ut.columns===0)return 1;var bt,We,be,Ae;if(ut.columns===2)return bt=ut.get(0,0),We=ut.get(0,1),be=ut.get(1,0),Ae=ut.get(1,1),bt*Ae-We*be;if(ut.columns===3){var Ue,$e,kt;return Ue=new at(ut,[1,2],[1,2]),$e=new at(ut,[1,2],[0,2]),kt=new at(ut,[1,2],[0,1]),bt=ut.get(0,0),We=ut.get(0,1),be=ut.get(0,2),bt*ot(Ue)-We*ot($e)+be*ot(kt)}else return new Rt(ut).determinant}else throw Error("determinant can only be calculated for a square matrix")}function Et(ut,bt){for(var We=[],be=0;be<ut;be++)be!==bt&&We.push(be);return We}function Ht(ut,bt,We){var be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1e-9,Ae=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1e-9;if(ut>Ae)return new Array(bt.rows+1).fill(0);for(var Ue=bt.addRow(We,[0]),$e=0;$e<Ue.rows;$e++)Math.abs(Ue.get($e,0))<be&&Ue.set($e,0,0);return Ue.to1DArray()}function Jt(ut){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},We=bt.thresholdValue,be=We===void 0?1e-9:We,Ae=bt.thresholdError,Ue=Ae===void 0?1e-9:Ae;ut=Ke.checkMatrix(ut);for(var $e=ut.rows,kt=new Ke($e,$e),lt=0;lt<$e;lt++){var vt=Ke.columnVector(ut.getRow(lt)),Ct=ut.subMatrixRow(Et($e,lt)).transpose(),Bt=new rt(Ct),mt=Bt.solve(vt),Zt=Ke.sub(vt,Ct.mmul(mt)).abs().max();kt.setRow(lt,Ht(Zt,mt,lt,be,Ue))}return kt}function Qt(ut){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.EPSILON;if(ut=Ke.checkMatrix(ut),ut.isEmpty())return ut.transpose();for(var We=new rt(ut,{autoTranspose:!0}),be=We.leftSingularVectors,Ae=We.rightSingularVectors,Ue=We.diagonal,$e=0;$e<Ue.length;$e++)Math.abs(Ue[$e])>bt?Ue[$e]=1/Ue[$e]:Ue[$e]=0;return Ae.mmul(Ke.diag(Ue).mmul(be.transpose()))}function an(ut){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ut,We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ut=new Ke(ut);var be=!1;if(typeof bt=="object"&&!Ke.isMatrix(bt)&&!m(bt)?(We=bt,bt=ut,be=!0):bt=new Ke(bt),ut.rows!==bt.rows)throw new TypeError("Both matrices must have the same number of rows");var Ae=We,Ue=Ae.center,$e=Ue===void 0?!0:Ue;$e&&(ut=ut.center("column"),be||(bt=bt.center("column")));for(var kt=ut.transpose().mmul(bt),lt=0;lt<kt.rows;lt++)for(var vt=0;vt<kt.columns;vt++)kt.set(lt,vt,kt.get(lt,vt)*(1/(ut.rows-1)));return kt}function Un(ut){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ut,We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ut=new Ke(ut);var be=!1;if(typeof bt=="object"&&!Ke.isMatrix(bt)&&!m(bt)?(We=bt,bt=ut,be=!0):bt=new Ke(bt),ut.rows!==bt.rows)throw new TypeError("Both matrices must have the same number of rows");var Ae=We,Ue=Ae.center,$e=Ue===void 0?!0:Ue,kt=Ae.scale,lt=kt===void 0?!0:kt;$e&&(ut.center("column"),be||bt.center("column")),lt&&(ut.scale("column"),be||bt.scale("column"));for(var vt=ut.standardDeviation("column",{unbiased:!0}),Ct=be?vt:bt.standardDeviation("column",{unbiased:!0}),Bt=ut.transpose().mmul(bt),mt=0;mt<Bt.rows;mt++)for(var Zt=0;Zt<Bt.columns;Zt++)Bt.set(mt,Zt,Bt.get(mt,Zt)*(1/(vt[mt]*Ct[Zt]))*(1/(ut.rows-1)));return Bt}var qt=function(){function ut(bt){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,y.Z)(this,ut);var be=We.assumeSymmetric,Ae=be===void 0?!1:be;if(bt=Xt.checkMatrix(bt),!bt.isSquare())throw new Error("Matrix is not a square matrix");if(bt.isEmpty())throw new Error("Matrix must be non-empty");var Ue=bt.columns,$e=new Ke(Ue,Ue),kt=new Float64Array(Ue),lt=new Float64Array(Ue),vt=bt,Ct,Bt,mt=!1;if(Ae?mt=!0:mt=bt.isSymmetric(),mt){for(Ct=0;Ct<Ue;Ct++)for(Bt=0;Bt<Ue;Bt++)$e.set(Ct,Bt,vt.get(Ct,Bt));rn(Ue,lt,kt,$e),cn(Ue,lt,kt,$e)}else{var Zt=new Ke(Ue,Ue),zt=new Float64Array(Ue);for(Bt=0;Bt<Ue;Bt++)for(Ct=0;Ct<Ue;Ct++)Zt.set(Ct,Bt,vt.get(Ct,Bt));er(Ue,Zt,zt,$e),rr(Ue,lt,kt,$e,Zt)}this.n=Ue,this.e=lt,this.d=kt,this.V=$e}return(0,M.Z)(ut,[{key:"realEigenvalues",get:function(){return Array.from(this.d)}},{key:"imaginaryEigenvalues",get:function(){return Array.from(this.e)}},{key:"eigenvectorMatrix",get:function(){return this.V}},{key:"diagonalMatrix",get:function(){var We=this.n,be=this.e,Ae=this.d,Ue=new Ke(We,We),$e,kt;for($e=0;$e<We;$e++){for(kt=0;kt<We;kt++)Ue.set($e,kt,0);Ue.set($e,$e,Ae[$e]),be[$e]>0?Ue.set($e,$e+1,be[$e]):be[$e]<0&&Ue.set($e,$e-1,be[$e])}return Ue}}]),ut}();function rn(ut,bt,We,be){var Ae,Ue,$e,kt,lt,vt,Ct,Bt;for(lt=0;lt<ut;lt++)We[lt]=be.get(ut-1,lt);for(kt=ut-1;kt>0;kt--){for(Bt=0,$e=0,vt=0;vt<kt;vt++)Bt=Bt+Math.abs(We[vt]);if(Bt===0)for(bt[kt]=We[kt-1],lt=0;lt<kt;lt++)We[lt]=be.get(kt-1,lt),be.set(kt,lt,0),be.set(lt,kt,0);else{for(vt=0;vt<kt;vt++)We[vt]/=Bt,$e+=We[vt]*We[vt];for(Ae=We[kt-1],Ue=Math.sqrt($e),Ae>0&&(Ue=-Ue),bt[kt]=Bt*Ue,$e=$e-Ae*Ue,We[kt-1]=Ae-Ue,lt=0;lt<kt;lt++)bt[lt]=0;for(lt=0;lt<kt;lt++){for(Ae=We[lt],be.set(lt,kt,Ae),Ue=bt[lt]+be.get(lt,lt)*Ae,vt=lt+1;vt<=kt-1;vt++)Ue+=be.get(vt,lt)*We[vt],bt[vt]+=be.get(vt,lt)*Ae;bt[lt]=Ue}for(Ae=0,lt=0;lt<kt;lt++)bt[lt]/=$e,Ae+=bt[lt]*We[lt];for(Ct=Ae/($e+$e),lt=0;lt<kt;lt++)bt[lt]-=Ct*We[lt];for(lt=0;lt<kt;lt++){for(Ae=We[lt],Ue=bt[lt],vt=lt;vt<=kt-1;vt++)be.set(vt,lt,be.get(vt,lt)-(Ae*bt[vt]+Ue*We[vt]));We[lt]=be.get(kt-1,lt),be.set(kt,lt,0)}}We[kt]=$e}for(kt=0;kt<ut-1;kt++){if(be.set(ut-1,kt,be.get(kt,kt)),be.set(kt,kt,1),$e=We[kt+1],$e!==0){for(vt=0;vt<=kt;vt++)We[vt]=be.get(vt,kt+1)/$e;for(lt=0;lt<=kt;lt++){for(Ue=0,vt=0;vt<=kt;vt++)Ue+=be.get(vt,kt+1)*be.get(vt,lt);for(vt=0;vt<=kt;vt++)be.set(vt,lt,be.get(vt,lt)-Ue*We[vt])}}for(vt=0;vt<=kt;vt++)be.set(vt,kt+1,0)}for(lt=0;lt<ut;lt++)We[lt]=be.get(ut-1,lt),be.set(ut-1,lt,0);be.set(ut-1,ut-1,1),bt[0]=0}function cn(ut,bt,We,be){var Ae,Ue,$e,kt,lt,vt,Ct,Bt,mt,Zt,zt,ln,An,En,Gn,Bn,pr;for($e=1;$e<ut;$e++)bt[$e-1]=bt[$e];bt[ut-1]=0;var _r=0,na=0,$n=Number.EPSILON;for(vt=0;vt<ut;vt++){for(na=Math.max(na,Math.abs(We[vt])+Math.abs(bt[vt])),Ct=vt;Ct<ut&&!(Math.abs(bt[Ct])<=$n*na);)Ct++;if(Ct>vt){pr=0;do{for(pr=pr+1,Ae=We[vt],Bt=(We[vt+1]-Ae)/(2*bt[vt]),mt=Lt(Bt,1),Bt<0&&(mt=-mt),We[vt]=bt[vt]/(Bt+mt),We[vt+1]=bt[vt]*(Bt+mt),Zt=We[vt+1],Ue=Ae-We[vt],$e=vt+2;$e<ut;$e++)We[$e]-=Ue;for(_r=_r+Ue,Bt=We[Ct],zt=1,ln=zt,An=zt,En=bt[vt+1],Gn=0,Bn=0,$e=Ct-1;$e>=vt;$e--)for(An=ln,ln=zt,Bn=Gn,Ae=zt*bt[$e],Ue=zt*Bt,mt=Lt(Bt,bt[$e]),bt[$e+1]=Gn*mt,Gn=bt[$e]/mt,zt=Bt/mt,Bt=zt*We[$e]-Gn*Ae,We[$e+1]=Ue+Gn*(zt*Ae+Gn*We[$e]),lt=0;lt<ut;lt++)Ue=be.get(lt,$e+1),be.set(lt,$e+1,Gn*be.get(lt,$e)+zt*Ue),be.set(lt,$e,zt*be.get(lt,$e)-Gn*Ue);Bt=-Gn*Bn*An*En*bt[vt]/Zt,bt[vt]=Gn*Bt,We[vt]=zt*Bt}while(Math.abs(bt[vt])>$n*na)}We[vt]=We[vt]+_r,bt[vt]=0}for($e=0;$e<ut-1;$e++){for(lt=$e,Bt=We[$e],kt=$e+1;kt<ut;kt++)We[kt]<Bt&&(lt=kt,Bt=We[kt]);if(lt!==$e)for(We[lt]=We[$e],We[$e]=Bt,kt=0;kt<ut;kt++)Bt=be.get(kt,$e),be.set(kt,$e,be.get(kt,lt)),be.set(kt,lt,Bt)}}function er(ut,bt,We,be){var Ae=0,Ue=ut-1,$e,kt,lt,vt,Ct,Bt,mt;for(Bt=Ae+1;Bt<=Ue-1;Bt++){for(mt=0,vt=Bt;vt<=Ue;vt++)mt=mt+Math.abs(bt.get(vt,Bt-1));if(mt!==0){for(lt=0,vt=Ue;vt>=Bt;vt--)We[vt]=bt.get(vt,Bt-1)/mt,lt+=We[vt]*We[vt];for(kt=Math.sqrt(lt),We[Bt]>0&&(kt=-kt),lt=lt-We[Bt]*kt,We[Bt]=We[Bt]-kt,Ct=Bt;Ct<ut;Ct++){for($e=0,vt=Ue;vt>=Bt;vt--)$e+=We[vt]*bt.get(vt,Ct);for($e=$e/lt,vt=Bt;vt<=Ue;vt++)bt.set(vt,Ct,bt.get(vt,Ct)-$e*We[vt])}for(vt=0;vt<=Ue;vt++){for($e=0,Ct=Ue;Ct>=Bt;Ct--)$e+=We[Ct]*bt.get(vt,Ct);for($e=$e/lt,Ct=Bt;Ct<=Ue;Ct++)bt.set(vt,Ct,bt.get(vt,Ct)-$e*We[Ct])}We[Bt]=mt*We[Bt],bt.set(Bt,Bt-1,mt*kt)}}for(vt=0;vt<ut;vt++)for(Ct=0;Ct<ut;Ct++)be.set(vt,Ct,vt===Ct?1:0);for(Bt=Ue-1;Bt>=Ae+1;Bt--)if(bt.get(Bt,Bt-1)!==0){for(vt=Bt+1;vt<=Ue;vt++)We[vt]=bt.get(vt,Bt-1);for(Ct=Bt;Ct<=Ue;Ct++){for(kt=0,vt=Bt;vt<=Ue;vt++)kt+=We[vt]*be.get(vt,Ct);for(kt=kt/We[Bt]/bt.get(Bt,Bt-1),vt=Bt;vt<=Ue;vt++)be.set(vt,Ct,be.get(vt,Ct)+kt*We[vt])}}}function rr(ut,bt,We,be,Ae){var Ue=ut-1,$e=0,kt=ut-1,lt=Number.EPSILON,vt=0,Ct=0,Bt=0,mt=0,Zt=0,zt=0,ln=0,An=0,En,Gn,Bn,pr,_r,na,$n,qr,Jr,Aa,ya,$t,wn,Fn,Or;for(En=0;En<ut;En++)for((En<$e||En>kt)&&(We[En]=Ae.get(En,En),bt[En]=0),Gn=Math.max(En-1,0);Gn<ut;Gn++)Ct=Ct+Math.abs(Ae.get(En,Gn));for(;Ue>=$e;){for(pr=Ue;pr>$e&&(zt=Math.abs(Ae.get(pr-1,pr-1))+Math.abs(Ae.get(pr,pr)),zt===0&&(zt=Ct),!(Math.abs(Ae.get(pr,pr-1))<lt*zt));)pr--;if(pr===Ue)Ae.set(Ue,Ue,Ae.get(Ue,Ue)+vt),We[Ue]=Ae.get(Ue,Ue),bt[Ue]=0,Ue--,An=0;else if(pr===Ue-1){if($n=Ae.get(Ue,Ue-1)*Ae.get(Ue-1,Ue),Bt=(Ae.get(Ue-1,Ue-1)-Ae.get(Ue,Ue))/2,mt=Bt*Bt+$n,ln=Math.sqrt(Math.abs(mt)),Ae.set(Ue,Ue,Ae.get(Ue,Ue)+vt),Ae.set(Ue-1,Ue-1,Ae.get(Ue-1,Ue-1)+vt),qr=Ae.get(Ue,Ue),mt>=0){for(ln=Bt>=0?Bt+ln:Bt-ln,We[Ue-1]=qr+ln,We[Ue]=We[Ue-1],ln!==0&&(We[Ue]=qr-$n/ln),bt[Ue-1]=0,bt[Ue]=0,qr=Ae.get(Ue,Ue-1),zt=Math.abs(qr)+Math.abs(ln),Bt=qr/zt,mt=ln/zt,Zt=Math.sqrt(Bt*Bt+mt*mt),Bt=Bt/Zt,mt=mt/Zt,Gn=Ue-1;Gn<ut;Gn++)ln=Ae.get(Ue-1,Gn),Ae.set(Ue-1,Gn,mt*ln+Bt*Ae.get(Ue,Gn)),Ae.set(Ue,Gn,mt*Ae.get(Ue,Gn)-Bt*ln);for(En=0;En<=Ue;En++)ln=Ae.get(En,Ue-1),Ae.set(En,Ue-1,mt*ln+Bt*Ae.get(En,Ue)),Ae.set(En,Ue,mt*Ae.get(En,Ue)-Bt*ln);for(En=$e;En<=kt;En++)ln=be.get(En,Ue-1),be.set(En,Ue-1,mt*ln+Bt*be.get(En,Ue)),be.set(En,Ue,mt*be.get(En,Ue)-Bt*ln)}else We[Ue-1]=qr+Bt,We[Ue]=qr+Bt,bt[Ue-1]=ln,bt[Ue]=-ln;Ue=Ue-2,An=0}else{if(qr=Ae.get(Ue,Ue),Jr=0,$n=0,pr<Ue&&(Jr=Ae.get(Ue-1,Ue-1),$n=Ae.get(Ue,Ue-1)*Ae.get(Ue-1,Ue)),An===10){for(vt+=qr,En=$e;En<=Ue;En++)Ae.set(En,En,Ae.get(En,En)-qr);zt=Math.abs(Ae.get(Ue,Ue-1))+Math.abs(Ae.get(Ue-1,Ue-2)),qr=Jr=.75*zt,$n=-.4375*zt*zt}if(An===30&&(zt=(Jr-qr)/2,zt=zt*zt+$n,zt>0)){for(zt=Math.sqrt(zt),Jr<qr&&(zt=-zt),zt=qr-$n/((Jr-qr)/2+zt),En=$e;En<=Ue;En++)Ae.set(En,En,Ae.get(En,En)-zt);vt+=zt,qr=Jr=$n=.964}for(An=An+1,_r=Ue-2;_r>=pr&&(ln=Ae.get(_r,_r),Zt=qr-ln,zt=Jr-ln,Bt=(Zt*zt-$n)/Ae.get(_r+1,_r)+Ae.get(_r,_r+1),mt=Ae.get(_r+1,_r+1)-ln-Zt-zt,Zt=Ae.get(_r+2,_r+1),zt=Math.abs(Bt)+Math.abs(mt)+Math.abs(Zt),Bt=Bt/zt,mt=mt/zt,Zt=Zt/zt,!(_r===pr||Math.abs(Ae.get(_r,_r-1))*(Math.abs(mt)+Math.abs(Zt))<lt*(Math.abs(Bt)*(Math.abs(Ae.get(_r-1,_r-1))+Math.abs(ln)+Math.abs(Ae.get(_r+1,_r+1))))));)_r--;for(En=_r+2;En<=Ue;En++)Ae.set(En,En-2,0),En>_r+2&&Ae.set(En,En-3,0);for(Bn=_r;Bn<=Ue-1&&(Fn=Bn!==Ue-1,Bn!==_r&&(Bt=Ae.get(Bn,Bn-1),mt=Ae.get(Bn+1,Bn-1),Zt=Fn?Ae.get(Bn+2,Bn-1):0,qr=Math.abs(Bt)+Math.abs(mt)+Math.abs(Zt),qr!==0&&(Bt=Bt/qr,mt=mt/qr,Zt=Zt/qr)),qr!==0);Bn++)if(zt=Math.sqrt(Bt*Bt+mt*mt+Zt*Zt),Bt<0&&(zt=-zt),zt!==0){for(Bn!==_r?Ae.set(Bn,Bn-1,-zt*qr):pr!==_r&&Ae.set(Bn,Bn-1,-Ae.get(Bn,Bn-1)),Bt=Bt+zt,qr=Bt/zt,Jr=mt/zt,ln=Zt/zt,mt=mt/Bt,Zt=Zt/Bt,Gn=Bn;Gn<ut;Gn++)Bt=Ae.get(Bn,Gn)+mt*Ae.get(Bn+1,Gn),Fn&&(Bt=Bt+Zt*Ae.get(Bn+2,Gn),Ae.set(Bn+2,Gn,Ae.get(Bn+2,Gn)-Bt*ln)),Ae.set(Bn,Gn,Ae.get(Bn,Gn)-Bt*qr),Ae.set(Bn+1,Gn,Ae.get(Bn+1,Gn)-Bt*Jr);for(En=0;En<=Math.min(Ue,Bn+3);En++)Bt=qr*Ae.get(En,Bn)+Jr*Ae.get(En,Bn+1),Fn&&(Bt=Bt+ln*Ae.get(En,Bn+2),Ae.set(En,Bn+2,Ae.get(En,Bn+2)-Bt*Zt)),Ae.set(En,Bn,Ae.get(En,Bn)-Bt),Ae.set(En,Bn+1,Ae.get(En,Bn+1)-Bt*mt);for(En=$e;En<=kt;En++)Bt=qr*be.get(En,Bn)+Jr*be.get(En,Bn+1),Fn&&(Bt=Bt+ln*be.get(En,Bn+2),be.set(En,Bn+2,be.get(En,Bn+2)-Bt*Zt)),be.set(En,Bn,be.get(En,Bn)-Bt),be.set(En,Bn+1,be.get(En,Bn+1)-Bt*mt)}}}if(Ct!==0){for(Ue=ut-1;Ue>=0;Ue--)if(Bt=We[Ue],mt=bt[Ue],mt===0)for(pr=Ue,Ae.set(Ue,Ue,1),En=Ue-1;En>=0;En--){for($n=Ae.get(En,En)-Bt,Zt=0,Gn=pr;Gn<=Ue;Gn++)Zt=Zt+Ae.get(En,Gn)*Ae.get(Gn,Ue);if(bt[En]<0)ln=$n,zt=Zt;else if(pr=En,bt[En]===0?Ae.set(En,Ue,$n!==0?-Zt/$n:-Zt/(lt*Ct)):(qr=Ae.get(En,En+1),Jr=Ae.get(En+1,En),mt=(We[En]-Bt)*(We[En]-Bt)+bt[En]*bt[En],na=(qr*zt-ln*Zt)/mt,Ae.set(En,Ue,na),Ae.set(En+1,Ue,Math.abs(qr)>Math.abs(ln)?(-Zt-$n*na)/qr:(-zt-Jr*na)/ln)),na=Math.abs(Ae.get(En,Ue)),lt*na*na>1)for(Gn=En;Gn<=Ue;Gn++)Ae.set(Gn,Ue,Ae.get(Gn,Ue)/na)}else if(mt<0)for(pr=Ue-1,Math.abs(Ae.get(Ue,Ue-1))>Math.abs(Ae.get(Ue-1,Ue))?(Ae.set(Ue-1,Ue-1,mt/Ae.get(Ue,Ue-1)),Ae.set(Ue-1,Ue,-(Ae.get(Ue,Ue)-Bt)/Ae.get(Ue,Ue-1))):(Or=nt(0,-Ae.get(Ue-1,Ue),Ae.get(Ue-1,Ue-1)-Bt,mt),Ae.set(Ue-1,Ue-1,Or[0]),Ae.set(Ue-1,Ue,Or[1])),Ae.set(Ue,Ue-1,0),Ae.set(Ue,Ue,1),En=Ue-2;En>=0;En--){for(Aa=0,ya=0,Gn=pr;Gn<=Ue;Gn++)Aa=Aa+Ae.get(En,Gn)*Ae.get(Gn,Ue-1),ya=ya+Ae.get(En,Gn)*Ae.get(Gn,Ue);if($n=Ae.get(En,En)-Bt,bt[En]<0)ln=$n,Zt=Aa,zt=ya;else if(pr=En,bt[En]===0?(Or=nt(-Aa,-ya,$n,mt),Ae.set(En,Ue-1,Or[0]),Ae.set(En,Ue,Or[1])):(qr=Ae.get(En,En+1),Jr=Ae.get(En+1,En),$t=(We[En]-Bt)*(We[En]-Bt)+bt[En]*bt[En]-mt*mt,wn=(We[En]-Bt)*2*mt,$t===0&&wn===0&&($t=lt*Ct*(Math.abs($n)+Math.abs(mt)+Math.abs(qr)+Math.abs(Jr)+Math.abs(ln))),Or=nt(qr*Zt-ln*Aa+mt*ya,qr*zt-ln*ya-mt*Aa,$t,wn),Ae.set(En,Ue-1,Or[0]),Ae.set(En,Ue,Or[1]),Math.abs(qr)>Math.abs(ln)+Math.abs(mt)?(Ae.set(En+1,Ue-1,(-Aa-$n*Ae.get(En,Ue-1)+mt*Ae.get(En,Ue))/qr),Ae.set(En+1,Ue,(-ya-$n*Ae.get(En,Ue)-mt*Ae.get(En,Ue-1))/qr)):(Or=nt(-Zt-Jr*Ae.get(En,Ue-1),-zt-Jr*Ae.get(En,Ue),ln,mt),Ae.set(En+1,Ue-1,Or[0]),Ae.set(En+1,Ue,Or[1]))),na=Math.max(Math.abs(Ae.get(En,Ue-1)),Math.abs(Ae.get(En,Ue))),lt*na*na>1)for(Gn=En;Gn<=Ue;Gn++)Ae.set(Gn,Ue-1,Ae.get(Gn,Ue-1)/na),Ae.set(Gn,Ue,Ae.get(Gn,Ue)/na)}for(En=0;En<ut;En++)if(En<$e||En>kt)for(Gn=En;Gn<ut;Gn++)be.set(En,Gn,Ae.get(En,Gn));for(Gn=ut-1;Gn>=$e;Gn--)for(En=$e;En<=kt;En++){for(ln=0,Bn=$e;Bn<=Math.min(Gn,kt);Bn++)ln=ln+be.get(En,Bn)*Ae.get(Bn,Gn);be.set(En,Gn,ln)}}}function nt(ut,bt,We,be){var Ae,Ue;return Math.abs(We)>Math.abs(be)?(Ae=be/We,Ue=We+Ae*be,[(ut+Ae*bt)/Ue,(bt-Ae*ut)/Ue]):(Ae=We/be,Ue=be+Ae*We,[(Ae*ut+bt)/Ue,(Ae*bt-ut)/Ue])}var lr=function(){function ut(bt){if((0,y.Z)(this,ut),bt=Xt.checkMatrix(bt),!bt.isSymmetric())throw new Error("Matrix is not symmetric");var We=bt,be=We.rows,Ae=new Ke(be,be),Ue=!0,$e,kt,lt;for(kt=0;kt<be;kt++){var vt=0;for(lt=0;lt<kt;lt++){var Ct=0;for($e=0;$e<lt;$e++)Ct+=Ae.get(lt,$e)*Ae.get(kt,$e);Ct=(We.get(kt,lt)-Ct)/Ae.get(lt,lt),Ae.set(kt,lt,Ct),vt=vt+Ct*Ct}for(vt=We.get(kt,kt)-vt,Ue&=vt>0,Ae.set(kt,kt,Math.sqrt(Math.max(vt,0))),lt=kt+1;lt<be;lt++)Ae.set(kt,lt,0)}this.L=Ae,this.positiveDefinite=Boolean(Ue)}return(0,M.Z)(ut,[{key:"isPositiveDefinite",value:function(){return this.positiveDefinite}},{key:"solve",value:function(We){We=Xt.checkMatrix(We);var be=this.L,Ae=be.rows;if(We.rows!==Ae)throw new Error("Matrix dimensions do not match");if(this.isPositiveDefinite()===!1)throw new Error("Matrix is not positive definite");var Ue=We.columns,$e=We.clone(),kt,lt,vt;for(vt=0;vt<Ae;vt++)for(lt=0;lt<Ue;lt++){for(kt=0;kt<vt;kt++)$e.set(vt,lt,$e.get(vt,lt)-$e.get(kt,lt)*be.get(vt,kt));$e.set(vt,lt,$e.get(vt,lt)/be.get(vt,vt))}for(vt=Ae-1;vt>=0;vt--)for(lt=0;lt<Ue;lt++){for(kt=vt+1;kt<Ae;kt++)$e.set(vt,lt,$e.get(vt,lt)-$e.get(kt,lt)*be.get(kt,vt));$e.set(vt,lt,$e.get(vt,lt)/be.get(vt,vt))}return $e}},{key:"lowerTriangularMatrix",get:function(){return this.L}}]),ut}(),Hn=(0,M.Z)(function ut(bt){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,y.Z)(this,ut),bt=Xt.checkMatrix(bt);var be=We.Y,Ae=We.scaleScores,Ue=Ae===void 0?!1:Ae,$e=We.maxIterations,kt=$e===void 0?1e3:$e,lt=We.terminationCriteria,vt=lt===void 0?1e-10:lt,Ct;if(be){if(m(be)&&typeof be[0]=="number"?be=Ke.columnVector(be):be=Xt.checkMatrix(be),be.rows!==bt.rows)throw new Error("Y should have the same number of rows as X");Ct=be.getColumnVector(0)}else Ct=bt.getColumnVector(0);for(var Bt=1,mt,Zt,zt,ln,An=0;An<kt&&Bt>vt;An++)zt=bt.transpose().mmul(Ct).div(Ct.transpose().mmul(Ct).get(0,0)),zt=zt.div(zt.norm()),mt=bt.mmul(zt).div(zt.transpose().mmul(zt).get(0,0)),An>0&&(Bt=mt.clone().sub(ln).pow(2).sum()),ln=mt.clone(),be?(Zt=be.transpose().mmul(mt).div(mt.transpose().mmul(mt).get(0,0)),Zt=Zt.div(Zt.norm()),Ct=be.mmul(Zt).div(Zt.transpose().mmul(Zt).get(0,0))):Ct=mt;if(be){var En=bt.transpose().mmul(mt).div(mt.transpose().mmul(mt).get(0,0));En=En.div(En.norm());var Gn=bt.clone().sub(mt.clone().mmul(En.transpose())),Bn=Ct.transpose().mmul(mt).div(mt.transpose().mmul(mt).get(0,0)),pr=be.clone().sub(mt.clone().mulS(Bn.get(0,0)).mmul(Zt.transpose()));this.t=mt,this.p=En.transpose(),this.w=zt.transpose(),this.q=Zt,this.u=Ct,this.s=mt.transpose().mmul(mt),this.xResidual=Gn,this.yResidual=pr,this.betas=Bn}else this.w=zt.transpose(),this.s=mt.transpose().mmul(mt).sqrt(),Ue?this.t=mt.clone().div(this.s.get(0,0)):this.t=mt,this.xResidual=bt.sub(mt.mmul(zt.transpose()))})},38098:function(oe,N,o){//! moment.js locale configuration
|
||
//! locale : Chinese (China) [zh-cn]
|
||
//! author : suupic : https://github.com/suupic
|
||
//! author : Zeno Zeng : https://github.com/zenozeng
|
||
//! author : uu109 : https://github.com/uu109
|
||
(function(x,g){g(o(56051))})(this,function(x){"use strict";//! moment.js locale configuration
|
||
var g=x.defineLocale("zh-cn",{months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(y,M){return y===12&&(y=0),M==="\u51CC\u6668"||M==="\u65E9\u4E0A"||M==="\u4E0A\u5348"?y:M==="\u4E0B\u5348"||M==="\u665A\u4E0A"?y+12:y>=11?y:y+12},meridiem:function(y,M,w){var m=y*100+M;return m<600?"\u51CC\u6668":m<900?"\u65E9\u4E0A":m<1130?"\u4E0A\u5348":m<1230?"\u4E2D\u5348":m<1800?"\u4E0B\u5348":"\u665A\u4E0A"},calendar:{sameDay:"[\u4ECA\u5929]LT",nextDay:"[\u660E\u5929]LT",nextWeek:function(y){return y.week()!==this.week()?"[\u4E0B]dddLT":"[\u672C]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(y){return this.week()!==y.week()?"[\u4E0A]dddLT":"[\u672C]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(y,M){switch(M){case"d":case"D":case"DDD":return y+"\u65E5";case"M":return y+"\u6708";case"w":case"W":return y+"\u5468";default:return y}},relativeTime:{future:"%s\u540E",past:"%s\u524D",s:"\u51E0\u79D2",ss:"%d \u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},week:{dow:1,doy:4}});return g})},56051:function(oe,N,o){oe=o.nmd(oe);//! moment.js
|
||
//! version : 2.29.4
|
||
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||
//! license : MIT
|
||
//! momentjs.com
|
||
(function(x,g){oe.exports=g()})(this,function(){"use strict";var x;function g(){return x.apply(null,arguments)}function A(te){x=te}function y(te){return te instanceof Array||Object.prototype.toString.call(te)==="[object Array]"}function M(te){return te!=null&&Object.prototype.toString.call(te)==="[object Object]"}function w(te,Me){return Object.prototype.hasOwnProperty.call(te,Me)}function m(te){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(te).length===0;var Me;for(Me in te)if(w(te,Me))return!1;return!0}function b(te){return te===void 0}function v(te){return typeof te=="number"||Object.prototype.toString.call(te)==="[object Number]"}function h(te){return te instanceof Date||Object.prototype.toString.call(te)==="[object Date]"}function d(te,Me){var ft=[],Nt,xn=te.length;for(Nt=0;Nt<xn;++Nt)ft.push(Me(te[Nt],Nt));return ft}function _(te,Me){for(var ft in Me)w(Me,ft)&&(te[ft]=Me[ft]);return w(Me,"toString")&&(te.toString=Me.toString),w(Me,"valueOf")&&(te.valueOf=Me.valueOf),te}function p(te,Me,ft,Nt){return Vu(te,Me,ft,Nt,!0).utc()}function S(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function k(te){return te._pf==null&&(te._pf=S()),te._pf}var O;Array.prototype.some?O=Array.prototype.some:O=function(Me){var ft=Object(this),Nt=ft.length>>>0,xn;for(xn=0;xn<Nt;xn++)if(xn in ft&&Me.call(this,ft[xn],xn,ft))return!0;return!1};function F(te){if(te._isValid==null){var Me=k(te),ft=O.call(Me.parsedDateParts,function(xn){return xn!=null}),Nt=!isNaN(te._d.getTime())&&Me.overflow<0&&!Me.empty&&!Me.invalidEra&&!Me.invalidMonth&&!Me.invalidWeekday&&!Me.weekdayMismatch&&!Me.nullInput&&!Me.invalidFormat&&!Me.userInvalidated&&(!Me.meridiem||Me.meridiem&&ft);if(te._strict&&(Nt=Nt&&Me.charsLeftOver===0&&Me.unusedTokens.length===0&&Me.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(te))te._isValid=Nt;else return Nt}return te._isValid}function D(te){var Me=p(NaN);return te!=null?_(k(Me),te):k(Me).userInvalidated=!0,Me}var Z=g.momentProperties=[],W=!1;function U(te,Me){var ft,Nt,xn,Yr=Z.length;if(b(Me._isAMomentObject)||(te._isAMomentObject=Me._isAMomentObject),b(Me._i)||(te._i=Me._i),b(Me._f)||(te._f=Me._f),b(Me._l)||(te._l=Me._l),b(Me._strict)||(te._strict=Me._strict),b(Me._tzm)||(te._tzm=Me._tzm),b(Me._isUTC)||(te._isUTC=Me._isUTC),b(Me._offset)||(te._offset=Me._offset),b(Me._pf)||(te._pf=k(Me)),b(Me._locale)||(te._locale=Me._locale),Yr>0)for(ft=0;ft<Yr;ft++)Nt=Z[ft],xn=Me[Nt],b(xn)||(te[Nt]=xn);return te}function L(te){U(this,te),this._d=new Date(te._d!=null?te._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),W===!1&&(W=!0,g.updateOffset(this),W=!1)}function V(te){return te instanceof L||te!=null&&te._isAMomentObject!=null}function $(te){g.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+te)}function G(te,Me){var ft=!0;return _(function(){if(g.deprecationHandler!=null&&g.deprecationHandler(null,te),ft){var Nt=[],xn,Yr,qa,Es=arguments.length;for(Yr=0;Yr<Es;Yr++){if(xn="",typeof arguments[Yr]=="object"){xn+=`
|
||
[`+Yr+"] ";for(qa in arguments[0])w(arguments[0],qa)&&(xn+=qa+": "+arguments[0][qa]+", ");xn=xn.slice(0,-2)}else xn=arguments[Yr];Nt.push(xn)}$(te+`
|
||
Arguments: `+Array.prototype.slice.call(Nt).join("")+`
|
||
`+new Error().stack),ft=!1}return Me.apply(this,arguments)},Me)}var z={};function K(te,Me){g.deprecationHandler!=null&&g.deprecationHandler(te,Me),z[te]||($(Me),z[te]=!0)}g.suppressDeprecationWarnings=!1,g.deprecationHandler=null;function re(te){return typeof Function!="undefined"&&te instanceof Function||Object.prototype.toString.call(te)==="[object Function]"}function ne(te){var Me,ft;for(ft in te)w(te,ft)&&(Me=te[ft],re(Me)?this[ft]=Me:this["_"+ft]=Me);this._config=te,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Q(te,Me){var ft=_({},te),Nt;for(Nt in Me)w(Me,Nt)&&(M(te[Nt])&&M(Me[Nt])?(ft[Nt]={},_(ft[Nt],te[Nt]),_(ft[Nt],Me[Nt])):Me[Nt]!=null?ft[Nt]=Me[Nt]:delete ft[Nt]);for(Nt in te)w(te,Nt)&&!w(Me,Nt)&&M(te[Nt])&&(ft[Nt]=_({},ft[Nt]));return ft}function ue(te){te!=null&&this.set(te)}var he;Object.keys?he=Object.keys:he=function(Me){var ft,Nt=[];for(ft in Me)w(Me,ft)&&Nt.push(ft);return Nt};var Ee={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ce(te,Me,ft){var Nt=this._calendar[te]||this._calendar.sameElse;return re(Nt)?Nt.call(Me,ft):Nt}function ve(te,Me,ft){var Nt=""+Math.abs(te),xn=Me-Nt.length,Yr=te>=0;return(Yr?ft?"+":"":"-")+Math.pow(10,Math.max(0,xn)).toString().substr(1)+Nt}var fe=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,we=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,me={},Pe={};function pe(te,Me,ft,Nt){var xn=Nt;typeof Nt=="string"&&(xn=function(){return this[Nt]()}),te&&(Pe[te]=xn),Me&&(Pe[Me[0]]=function(){return ve(xn.apply(this,arguments),Me[1],Me[2])}),ft&&(Pe[ft]=function(){return this.localeData().ordinal(xn.apply(this,arguments),te)})}function Ie(te){return te.match(/\[[\s\S]/)?te.replace(/^\[|\]$/g,""):te.replace(/\\/g,"")}function Je(te){var Me=te.match(fe),ft,Nt;for(ft=0,Nt=Me.length;ft<Nt;ft++)Pe[Me[ft]]?Me[ft]=Pe[Me[ft]]:Me[ft]=Ie(Me[ft]);return function(xn){var Yr="",qa;for(qa=0;qa<Nt;qa++)Yr+=re(Me[qa])?Me[qa].call(xn,te):Me[qa];return Yr}}function ke(te,Me){return te.isValid()?(Me=De(Me,te.localeData()),me[Me]=me[Me]||Je(Me),me[Me](te)):te.localeData().invalidDate()}function De(te,Me){var ft=5;function Nt(xn){return Me.longDateFormat(xn)||xn}for(we.lastIndex=0;ft>=0&&we.test(te);)te=te.replace(we,Nt),we.lastIndex=0,ft-=1;return te}var Fe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Qe(te){var Me=this._longDateFormat[te],ft=this._longDateFormat[te.toUpperCase()];return Me||!ft?Me:(this._longDateFormat[te]=ft.match(fe).map(function(Nt){return Nt==="MMMM"||Nt==="MM"||Nt==="DD"||Nt==="dddd"?Nt.slice(1):Nt}).join(""),this._longDateFormat[te])}var qe="Invalid date";function et(){return this._invalidDate}var dt="%d",Ke=/\d{1,2}/;function Ge(te){return this._ordinal.replace("%d",te)}var wt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Vt(te,Me,ft,Nt){var xn=this._relativeTime[ft];return re(xn)?xn(te,Me,ft,Nt):xn.replace(/%d/i,te)}function gt(te,Me){var ft=this._relativeTime[te>0?"future":"past"];return re(ft)?ft(Me):ft.replace(/%s/i,Me)}var it={};function Le(te,Me){var ft=te.toLowerCase();it[ft]=it[ft+"s"]=it[Me]=te}function ct(te){return typeof te=="string"?it[te]||it[te.toLowerCase()]:void 0}function at(te){var Me={},ft,Nt;for(Nt in te)w(te,Nt)&&(ft=ct(Nt),ft&&(Me[ft]=te[Nt]));return Me}var jt={};function St(te,Me){jt[te]=Me}function fn(te){var Me=[],ft;for(ft in te)w(te,ft)&&Me.push({unit:ft,priority:jt[ft]});return Me.sort(function(Nt,xn){return Nt.priority-xn.priority}),Me}function Xt(te){return te%4==0&&te%100!=0||te%400==0}function Yt(te){return te<0?Math.ceil(te)||0:Math.floor(te)}function Rt(te){var Me=+te,ft=0;return Me!==0&&isFinite(Me)&&(ft=Yt(Me)),ft}function Lt(te,Me){return function(ft){return ft!=null?(rt(this,te,ft),g.updateOffset(this,Me),this):ze(this,te)}}function ze(te,Me){return te.isValid()?te._d["get"+(te._isUTC?"UTC":"")+Me]():NaN}function rt(te,Me,ft){te.isValid()&&!isNaN(ft)&&(Me==="FullYear"&&Xt(te.year())&&te.month()===1&&te.date()===29?(ft=Rt(ft),te._d["set"+(te._isUTC?"UTC":"")+Me](ft,te.month(),na(ft,te.month()))):te._d["set"+(te._isUTC?"UTC":"")+Me](ft))}function tt(te){return te=ct(te),re(this[te])?this[te]():this}function de(te,Me){if(typeof te=="object"){te=at(te);var ft=fn(te),Nt,xn=ft.length;for(Nt=0;Nt<xn;Nt++)this[ft[Nt].unit](te[ft[Nt].unit])}else if(te=ct(te),re(this[te]))return this[te](Me);return this}var ot=/\d/,Et=/\d\d/,Ht=/\d{3}/,Jt=/\d{4}/,Qt=/[+-]?\d{6}/,an=/\d\d?/,Un=/\d\d\d\d?/,qt=/\d\d\d\d\d\d?/,rn=/\d{1,3}/,cn=/\d{1,4}/,er=/[+-]?\d{1,6}/,rr=/\d+/,nt=/[+-]?\d+/,lr=/Z|[+-]\d\d:?\d\d/gi,Hn=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[+-]?\d+(\.\d{1,3})?/,bt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,We;We={};function be(te,Me,ft){We[te]=re(Me)?Me:function(Nt,xn){return Nt&&ft?ft:Me}}function Ae(te,Me){return w(We,te)?We[te](Me._strict,Me._locale):new RegExp(Ue(te))}function Ue(te){return $e(te.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(Me,ft,Nt,xn,Yr){return ft||Nt||xn||Yr}))}function $e(te){return te.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var kt={};function lt(te,Me){var ft,Nt=Me,xn;for(typeof te=="string"&&(te=[te]),v(Me)&&(Nt=function(qa,Es){Es[Me]=Rt(qa)}),xn=te.length,ft=0;ft<xn;ft++)kt[te[ft]]=Nt}function vt(te,Me){lt(te,function(ft,Nt,xn,Yr){xn._w=xn._w||{},Me(ft,xn._w,xn,Yr)})}function Ct(te,Me,ft){Me!=null&&w(kt,te)&&kt[te](Me,ft._a,ft,te)}var Bt=0,mt=1,Zt=2,zt=3,ln=4,An=5,En=6,Gn=7,Bn=8;function pr(te,Me){return(te%Me+Me)%Me}var _r;Array.prototype.indexOf?_r=Array.prototype.indexOf:_r=function(Me){var ft;for(ft=0;ft<this.length;++ft)if(this[ft]===Me)return ft;return-1};function na(te,Me){if(isNaN(te)||isNaN(Me))return NaN;var ft=pr(Me,12);return te+=(Me-ft)/12,ft===1?Xt(te)?29:28:31-ft%7%2}pe("M",["MM",2],"Mo",function(){return this.month()+1}),pe("MMM",0,0,function(te){return this.localeData().monthsShort(this,te)}),pe("MMMM",0,0,function(te){return this.localeData().months(this,te)}),Le("month","M"),St("month",8),be("M",an),be("MM",an,Et),be("MMM",function(te,Me){return Me.monthsShortRegex(te)}),be("MMMM",function(te,Me){return Me.monthsRegex(te)}),lt(["M","MM"],function(te,Me){Me[mt]=Rt(te)-1}),lt(["MMM","MMMM"],function(te,Me,ft,Nt){var xn=ft._locale.monthsParse(te,Nt,ft._strict);xn!=null?Me[mt]=xn:k(ft).invalidMonth=te});var $n="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),qr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Jr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Aa=bt,ya=bt;function $t(te,Me){return te?y(this._months)?this._months[te.month()]:this._months[(this._months.isFormat||Jr).test(Me)?"format":"standalone"][te.month()]:y(this._months)?this._months:this._months.standalone}function wn(te,Me){return te?y(this._monthsShort)?this._monthsShort[te.month()]:this._monthsShort[Jr.test(Me)?"format":"standalone"][te.month()]:y(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Fn(te,Me,ft){var Nt,xn,Yr,qa=te.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Nt=0;Nt<12;++Nt)Yr=p([2e3,Nt]),this._shortMonthsParse[Nt]=this.monthsShort(Yr,"").toLocaleLowerCase(),this._longMonthsParse[Nt]=this.months(Yr,"").toLocaleLowerCase();return ft?Me==="MMM"?(xn=_r.call(this._shortMonthsParse,qa),xn!==-1?xn:null):(xn=_r.call(this._longMonthsParse,qa),xn!==-1?xn:null):Me==="MMM"?(xn=_r.call(this._shortMonthsParse,qa),xn!==-1?xn:(xn=_r.call(this._longMonthsParse,qa),xn!==-1?xn:null)):(xn=_r.call(this._longMonthsParse,qa),xn!==-1?xn:(xn=_r.call(this._shortMonthsParse,qa),xn!==-1?xn:null))}function Or(te,Me,ft){var Nt,xn,Yr;if(this._monthsParseExact)return Fn.call(this,te,Me,ft);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),Nt=0;Nt<12;Nt++){if(xn=p([2e3,Nt]),ft&&!this._longMonthsParse[Nt]&&(this._longMonthsParse[Nt]=new RegExp("^"+this.months(xn,"").replace(".","")+"$","i"),this._shortMonthsParse[Nt]=new RegExp("^"+this.monthsShort(xn,"").replace(".","")+"$","i")),!ft&&!this._monthsParse[Nt]&&(Yr="^"+this.months(xn,"")+"|^"+this.monthsShort(xn,""),this._monthsParse[Nt]=new RegExp(Yr.replace(".",""),"i")),ft&&Me==="MMMM"&&this._longMonthsParse[Nt].test(te))return Nt;if(ft&&Me==="MMM"&&this._shortMonthsParse[Nt].test(te))return Nt;if(!ft&&this._monthsParse[Nt].test(te))return Nt}}function vr(te,Me){var ft;if(!te.isValid())return te;if(typeof Me=="string"){if(/^\d+$/.test(Me))Me=Rt(Me);else if(Me=te.localeData().monthsParse(Me),!v(Me))return te}return ft=Math.min(te.date(),na(te.year(),Me)),te._d["set"+(te._isUTC?"UTC":"")+"Month"](Me,ft),te}function Ur(te){return te!=null?(vr(this,te),g.updateOffset(this,!0),this):ze(this,"Month")}function Zr(){return na(this.year(),this.month())}function Kr(te){return this._monthsParseExact?(w(this,"_monthsRegex")||Ri.call(this),te?this._monthsShortStrictRegex:this._monthsShortRegex):(w(this,"_monthsShortRegex")||(this._monthsShortRegex=Aa),this._monthsShortStrictRegex&&te?this._monthsShortStrictRegex:this._monthsShortRegex)}function ba(te){return this._monthsParseExact?(w(this,"_monthsRegex")||Ri.call(this),te?this._monthsStrictRegex:this._monthsRegex):(w(this,"_monthsRegex")||(this._monthsRegex=ya),this._monthsStrictRegex&&te?this._monthsStrictRegex:this._monthsRegex)}function Ri(){function te(qa,Es){return Es.length-qa.length}var Me=[],ft=[],Nt=[],xn,Yr;for(xn=0;xn<12;xn++)Yr=p([2e3,xn]),Me.push(this.monthsShort(Yr,"")),ft.push(this.months(Yr,"")),Nt.push(this.months(Yr,"")),Nt.push(this.monthsShort(Yr,""));for(Me.sort(te),ft.sort(te),Nt.sort(te),xn=0;xn<12;xn++)Me[xn]=$e(Me[xn]),ft[xn]=$e(ft[xn]);for(xn=0;xn<24;xn++)Nt[xn]=$e(Nt[xn]);this._monthsRegex=new RegExp("^("+Nt.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+ft.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+Me.join("|")+")","i")}pe("Y",0,0,function(){var te=this.year();return te<=9999?ve(te,4):"+"+te}),pe(0,["YY",2],0,function(){return this.year()%100}),pe(0,["YYYY",4],0,"year"),pe(0,["YYYYY",5],0,"year"),pe(0,["YYYYYY",6,!0],0,"year"),Le("year","y"),St("year",1),be("Y",nt),be("YY",an,Et),be("YYYY",cn,Jt),be("YYYYY",er,Qt),be("YYYYYY",er,Qt),lt(["YYYYY","YYYYYY"],Bt),lt("YYYY",function(te,Me){Me[Bt]=te.length===2?g.parseTwoDigitYear(te):Rt(te)}),lt("YY",function(te,Me){Me[Bt]=g.parseTwoDigitYear(te)}),lt("Y",function(te,Me){Me[Bt]=parseInt(te,10)});function Ea(te){return Xt(te)?366:365}g.parseTwoDigitYear=function(te){return Rt(te)+(Rt(te)>68?1900:2e3)};var Pi=Lt("FullYear",!0);function rs(){return Xt(this.year())}function Ui(te,Me,ft,Nt,xn,Yr,qa){var Es;return te<100&&te>=0?(Es=new Date(te+400,Me,ft,Nt,xn,Yr,qa),isFinite(Es.getFullYear())&&Es.setFullYear(te)):Es=new Date(te,Me,ft,Nt,xn,Yr,qa),Es}function Cn(te){var Me,ft;return te<100&&te>=0?(ft=Array.prototype.slice.call(arguments),ft[0]=te+400,Me=new Date(Date.UTC.apply(null,ft)),isFinite(Me.getUTCFullYear())&&Me.setUTCFullYear(te)):Me=new Date(Date.UTC.apply(null,arguments)),Me}function Kn(te,Me,ft){var Nt=7+Me-ft,xn=(7+Cn(te,0,Nt).getUTCDay()-Me)%7;return-xn+Nt-1}function Pn(te,Me,ft,Nt,xn){var Yr=(7+ft-Nt)%7,qa=Kn(te,Nt,xn),Es=1+7*(Me-1)+Yr+qa,Qs,Hl;return Es<=0?(Qs=te-1,Hl=Ea(Qs)+Es):Es>Ea(te)?(Qs=te+1,Hl=Es-Ea(te)):(Qs=te,Hl=Es),{year:Qs,dayOfYear:Hl}}function At(te,Me,ft){var Nt=Kn(te.year(),Me,ft),xn=Math.floor((te.dayOfYear()-Nt-1)/7)+1,Yr,qa;return xn<1?(qa=te.year()-1,Yr=xn+ar(qa,Me,ft)):xn>ar(te.year(),Me,ft)?(Yr=xn-ar(te.year(),Me,ft),qa=te.year()+1):(qa=te.year(),Yr=xn),{week:Yr,year:qa}}function ar(te,Me,ft){var Nt=Kn(te,Me,ft),xn=Kn(te+1,Me,ft);return(Ea(te)-Nt+xn)/7}pe("w",["ww",2],"wo","week"),pe("W",["WW",2],"Wo","isoWeek"),Le("week","w"),Le("isoWeek","W"),St("week",5),St("isoWeek",5),be("w",an),be("ww",an,Et),be("W",an),be("WW",an,Et),vt(["w","ww","W","WW"],function(te,Me,ft,Nt){Me[Nt.substr(0,1)]=Rt(te)});function ta(te){return At(te,this._week.dow,this._week.doy).week}var Yn={dow:0,doy:6};function Qa(){return this._week.dow}function Ua(){return this._week.doy}function Fi(te){var Me=this.localeData().week(this);return te==null?Me:this.add((te-Me)*7,"d")}function Xa(te){var Me=At(this,1,4).week;return te==null?Me:this.add((te-Me)*7,"d")}pe("d",0,"do","day"),pe("dd",0,0,function(te){return this.localeData().weekdaysMin(this,te)}),pe("ddd",0,0,function(te){return this.localeData().weekdaysShort(this,te)}),pe("dddd",0,0,function(te){return this.localeData().weekdays(this,te)}),pe("e",0,0,"weekday"),pe("E",0,0,"isoWeekday"),Le("day","d"),Le("weekday","e"),Le("isoWeekday","E"),St("day",11),St("weekday",11),St("isoWeekday",11),be("d",an),be("e",an),be("E",an),be("dd",function(te,Me){return Me.weekdaysMinRegex(te)}),be("ddd",function(te,Me){return Me.weekdaysShortRegex(te)}),be("dddd",function(te,Me){return Me.weekdaysRegex(te)}),vt(["dd","ddd","dddd"],function(te,Me,ft,Nt){var xn=ft._locale.weekdaysParse(te,Nt,ft._strict);xn!=null?Me.d=xn:k(ft).invalidWeekday=te}),vt(["d","e","E"],function(te,Me,ft,Nt){Me[Nt]=Rt(te)});function $i(te,Me){return typeof te!="string"?te:isNaN(te)?(te=Me.weekdaysParse(te),typeof te=="number"?te:null):parseInt(te,10)}function La(te,Me){return typeof te=="string"?Me.weekdaysParse(te)%7||7:isNaN(te)?null:te}function ja(te,Me){return te.slice(Me,7).concat(te.slice(0,Me))}var ei="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Do="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yo="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),to=bt,fs=bt,cs=bt;function Os(te,Me){var ft=y(this._weekdays)?this._weekdays:this._weekdays[te&&te!==!0&&this._weekdays.isFormat.test(Me)?"format":"standalone"];return te===!0?ja(ft,this._week.dow):te?ft[te.day()]:ft}function vl(te){return te===!0?ja(this._weekdaysShort,this._week.dow):te?this._weekdaysShort[te.day()]:this._weekdaysShort}function Ar(te){return te===!0?ja(this._weekdaysMin,this._week.dow):te?this._weekdaysMin[te.day()]:this._weekdaysMin}function Rn(te,Me,ft){var Nt,xn,Yr,qa=te.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Nt=0;Nt<7;++Nt)Yr=p([2e3,1]).day(Nt),this._minWeekdaysParse[Nt]=this.weekdaysMin(Yr,"").toLocaleLowerCase(),this._shortWeekdaysParse[Nt]=this.weekdaysShort(Yr,"").toLocaleLowerCase(),this._weekdaysParse[Nt]=this.weekdays(Yr,"").toLocaleLowerCase();return ft?Me==="dddd"?(xn=_r.call(this._weekdaysParse,qa),xn!==-1?xn:null):Me==="ddd"?(xn=_r.call(this._shortWeekdaysParse,qa),xn!==-1?xn:null):(xn=_r.call(this._minWeekdaysParse,qa),xn!==-1?xn:null):Me==="dddd"?(xn=_r.call(this._weekdaysParse,qa),xn!==-1||(xn=_r.call(this._shortWeekdaysParse,qa),xn!==-1)?xn:(xn=_r.call(this._minWeekdaysParse,qa),xn!==-1?xn:null)):Me==="ddd"?(xn=_r.call(this._shortWeekdaysParse,qa),xn!==-1||(xn=_r.call(this._weekdaysParse,qa),xn!==-1)?xn:(xn=_r.call(this._minWeekdaysParse,qa),xn!==-1?xn:null)):(xn=_r.call(this._minWeekdaysParse,qa),xn!==-1||(xn=_r.call(this._weekdaysParse,qa),xn!==-1)?xn:(xn=_r.call(this._shortWeekdaysParse,qa),xn!==-1?xn:null))}function Sr(te,Me,ft){var Nt,xn,Yr;if(this._weekdaysParseExact)return Rn.call(this,te,Me,ft);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),Nt=0;Nt<7;Nt++){if(xn=p([2e3,1]).day(Nt),ft&&!this._fullWeekdaysParse[Nt]&&(this._fullWeekdaysParse[Nt]=new RegExp("^"+this.weekdays(xn,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[Nt]=new RegExp("^"+this.weekdaysShort(xn,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[Nt]=new RegExp("^"+this.weekdaysMin(xn,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[Nt]||(Yr="^"+this.weekdays(xn,"")+"|^"+this.weekdaysShort(xn,"")+"|^"+this.weekdaysMin(xn,""),this._weekdaysParse[Nt]=new RegExp(Yr.replace(".",""),"i")),ft&&Me==="dddd"&&this._fullWeekdaysParse[Nt].test(te))return Nt;if(ft&&Me==="ddd"&&this._shortWeekdaysParse[Nt].test(te))return Nt;if(ft&&Me==="dd"&&this._minWeekdaysParse[Nt].test(te))return Nt;if(!ft&&this._weekdaysParse[Nt].test(te))return Nt}}function nn(te){if(!this.isValid())return te!=null?this:NaN;var Me=this._isUTC?this._d.getUTCDay():this._d.getDay();return te!=null?(te=$i(te,this.localeData()),this.add(te-Me,"d")):Me}function sn(te){if(!this.isValid())return te!=null?this:NaN;var Me=(this.day()+7-this.localeData()._week.dow)%7;return te==null?Me:this.add(te-Me,"d")}function Ot(te){if(!this.isValid())return te!=null?this:NaN;if(te!=null){var Me=La(te,this.localeData());return this.day(this.day()%7?Me:Me-7)}else return this.day()||7}function gr(te){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||Tr.call(this),te?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=to),this._weekdaysStrictRegex&&te?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gr(te){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||Tr.call(this),te?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=fs),this._weekdaysShortStrictRegex&&te?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ln(te){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||Tr.call(this),te?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=cs),this._weekdaysMinStrictRegex&&te?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Tr(){function te(Lc,Pu){return Pu.length-Lc.length}var Me=[],ft=[],Nt=[],xn=[],Yr,qa,Es,Qs,Hl;for(Yr=0;Yr<7;Yr++)qa=p([2e3,1]).day(Yr),Es=$e(this.weekdaysMin(qa,"")),Qs=$e(this.weekdaysShort(qa,"")),Hl=$e(this.weekdays(qa,"")),Me.push(Es),ft.push(Qs),Nt.push(Hl),xn.push(Es),xn.push(Qs),xn.push(Hl);Me.sort(te),ft.sort(te),Nt.sort(te),xn.sort(te),this._weekdaysRegex=new RegExp("^("+xn.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Nt.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+ft.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Me.join("|")+")","i")}function Dn(){return this.hours()%12||12}function Pr(){return this.hours()||24}pe("H",["HH",2],0,"hour"),pe("h",["hh",2],0,Dn),pe("k",["kk",2],0,Pr),pe("hmm",0,0,function(){return""+Dn.apply(this)+ve(this.minutes(),2)}),pe("hmmss",0,0,function(){return""+Dn.apply(this)+ve(this.minutes(),2)+ve(this.seconds(),2)}),pe("Hmm",0,0,function(){return""+this.hours()+ve(this.minutes(),2)}),pe("Hmmss",0,0,function(){return""+this.hours()+ve(this.minutes(),2)+ve(this.seconds(),2)});function fa(te,Me){pe(te,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),Me)})}fa("a",!0),fa("A",!1),Le("hour","h"),St("hour",13);function ka(te,Me){return Me._meridiemParse}be("a",ka),be("A",ka),be("H",an),be("h",an),be("k",an),be("HH",an,Et),be("hh",an,Et),be("kk",an,Et),be("hmm",Un),be("hmmss",qt),be("Hmm",Un),be("Hmmss",qt),lt(["H","HH"],zt),lt(["k","kk"],function(te,Me,ft){var Nt=Rt(te);Me[zt]=Nt===24?0:Nt}),lt(["a","A"],function(te,Me,ft){ft._isPm=ft._locale.isPM(te),ft._meridiem=te}),lt(["h","hh"],function(te,Me,ft){Me[zt]=Rt(te),k(ft).bigHour=!0}),lt("hmm",function(te,Me,ft){var Nt=te.length-2;Me[zt]=Rt(te.substr(0,Nt)),Me[ln]=Rt(te.substr(Nt)),k(ft).bigHour=!0}),lt("hmmss",function(te,Me,ft){var Nt=te.length-4,xn=te.length-2;Me[zt]=Rt(te.substr(0,Nt)),Me[ln]=Rt(te.substr(Nt,2)),Me[An]=Rt(te.substr(xn)),k(ft).bigHour=!0}),lt("Hmm",function(te,Me,ft){var Nt=te.length-2;Me[zt]=Rt(te.substr(0,Nt)),Me[ln]=Rt(te.substr(Nt))}),lt("Hmmss",function(te,Me,ft){var Nt=te.length-4,xn=te.length-2;Me[zt]=Rt(te.substr(0,Nt)),Me[ln]=Rt(te.substr(Nt,2)),Me[An]=Rt(te.substr(xn))});function Li(te){return(te+"").toLowerCase().charAt(0)==="p"}var zi=/[ap]\.?m?\.?/i,Mo=Lt("Hours",!0);function Za(te,Me,ft){return te>11?ft?"pm":"PM":ft?"am":"AM"}var ao={calendar:Ee,longDateFormat:Fe,invalidDate:qe,ordinal:dt,dayOfMonthOrdinalParse:Ke,relativeTime:wt,months:$n,monthsShort:qr,week:Yn,weekdays:ei,weekdaysMin:yo,weekdaysShort:Do,meridiemParse:zi},Mi={},Eo={},Xi;function Bo(te,Me){var ft,Nt=Math.min(te.length,Me.length);for(ft=0;ft<Nt;ft+=1)if(te[ft]!==Me[ft])return ft;return Nt}function ol(te){return te&&te.toLowerCase().replace("_","-")}function Il(te){for(var Me=0,ft,Nt,xn,Yr;Me<te.length;){for(Yr=ol(te[Me]).split("-"),ft=Yr.length,Nt=ol(te[Me+1]),Nt=Nt?Nt.split("-"):null;ft>0;){if(xn=mc(Yr.slice(0,ft).join("-")),xn)return xn;if(Nt&&Nt.length>=ft&&Bo(Yr,Nt)>=ft-1)break;ft--}Me++}return Xi}function ms(te){return te.match("^[^/\\\\]*$")!=null}function mc(te){var Me=null,ft;if(Mi[te]===void 0&&!0&&oe&&oe.exports&&ms(te))try{Me=Xi._abbr,ft=void 0,Object(function(){var xn=new Error("Cannot find module 'undefined'");throw xn.code="MODULE_NOT_FOUND",xn}()),Ys(Me)}catch(Nt){Mi[te]=null}return Mi[te]}function Ys(te,Me){var ft;return te&&(b(Me)?ft=xl(te):ft=hl(te,Me),ft?Xi=ft:typeof console!="undefined"&&console.warn&&console.warn("Locale "+te+" not found. Did you forget to load it?")),Xi._abbr}function hl(te,Me){if(Me!==null){var ft,Nt=ao;if(Me.abbr=te,Mi[te]!=null)K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),Nt=Mi[te]._config;else if(Me.parentLocale!=null)if(Mi[Me.parentLocale]!=null)Nt=Mi[Me.parentLocale]._config;else if(ft=mc(Me.parentLocale),ft!=null)Nt=ft._config;else return Eo[Me.parentLocale]||(Eo[Me.parentLocale]=[]),Eo[Me.parentLocale].push({name:te,config:Me}),null;return Mi[te]=new ue(Q(Nt,Me)),Eo[te]&&Eo[te].forEach(function(xn){hl(xn.name,xn.config)}),Ys(te),Mi[te]}else return delete Mi[te],null}function Rs(te,Me){if(Me!=null){var ft,Nt,xn=ao;Mi[te]!=null&&Mi[te].parentLocale!=null?Mi[te].set(Q(Mi[te]._config,Me)):(Nt=mc(te),Nt!=null&&(xn=Nt._config),Me=Q(xn,Me),Nt==null&&(Me.abbr=te),ft=new ue(Me),ft.parentLocale=Mi[te],Mi[te]=ft),Ys(te)}else Mi[te]!=null&&(Mi[te].parentLocale!=null?(Mi[te]=Mi[te].parentLocale,te===Ys()&&Ys(te)):Mi[te]!=null&&delete Mi[te]);return Mi[te]}function xl(te){var Me;if(te&&te._locale&&te._locale._abbr&&(te=te._locale._abbr),!te)return Xi;if(!y(te)){if(Me=mc(te),Me)return Me;te=[te]}return Il(te)}function Wl(){return he(Mi)}function _l(te){var Me,ft=te._a;return ft&&k(te).overflow===-2&&(Me=ft[mt]<0||ft[mt]>11?mt:ft[Zt]<1||ft[Zt]>na(ft[Bt],ft[mt])?Zt:ft[zt]<0||ft[zt]>24||ft[zt]===24&&(ft[ln]!==0||ft[An]!==0||ft[En]!==0)?zt:ft[ln]<0||ft[ln]>59?ln:ft[An]<0||ft[An]>59?An:ft[En]<0||ft[En]>999?En:-1,k(te)._overflowDayOfYear&&(Me<Bt||Me>Zt)&&(Me=Zt),k(te)._overflowWeeks&&Me===-1&&(Me=Gn),k(te)._overflowWeekday&&Me===-1&&(Me=Bn),k(te).overflow=Me),te}var Ls=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,zn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Dr=/Z|[+-]\d\d(?::?\d\d)?/,Hr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_a=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ti=/^\/?Date\((-?\d+)/i,Ci=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,da={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Da(te){var Me,ft,Nt=te._i,xn=Ls.exec(Nt)||zn.exec(Nt),Yr,qa,Es,Qs,Hl=Hr.length,Lc=_a.length;if(xn){for(k(te).iso=!0,Me=0,ft=Hl;Me<ft;Me++)if(Hr[Me][1].exec(xn[1])){qa=Hr[Me][0],Yr=Hr[Me][2]!==!1;break}if(qa==null){te._isValid=!1;return}if(xn[3]){for(Me=0,ft=Lc;Me<ft;Me++)if(_a[Me][1].exec(xn[3])){Es=(xn[2]||" ")+_a[Me][0];break}if(Es==null){te._isValid=!1;return}}if(!Yr&&Es!=null){te._isValid=!1;return}if(xn[4])if(Dr.exec(xn[4]))Qs="Z";else{te._isValid=!1;return}te._f=qa+(Es||"")+(Qs||""),xu(te)}else te._isValid=!1}function mi(te,Me,ft,Nt,xn,Yr){var qa=[Ho(te),qr.indexOf(Me),parseInt(ft,10),parseInt(Nt,10),parseInt(xn,10)];return Yr&&qa.push(parseInt(Yr,10)),qa}function Ho(te){var Me=parseInt(te,10);return Me<=49?2e3+Me:Me<=999?1900+Me:Me}function al(te){return te.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ml(te,Me,ft){if(te){var Nt=Do.indexOf(te),xn=new Date(Me[0],Me[1],Me[2]).getDay();if(Nt!==xn)return k(ft).weekdayMismatch=!0,ft._isValid=!1,!1}return!0}function Xs(te,Me,ft){if(te)return da[te];if(Me)return 0;var Nt=parseInt(ft,10),xn=Nt%100,Yr=(Nt-xn)/100;return Yr*60+xn}function Ps(te){var Me=Ci.exec(al(te._i)),ft;if(Me){if(ft=mi(Me[4],Me[3],Me[2],Me[5],Me[6],Me[7]),!ml(Me[1],ft,te))return;te._a=ft,te._tzm=Xs(Me[8],Me[9],Me[10]),te._d=Cn.apply(null,te._a),te._d.setUTCMinutes(te._d.getUTCMinutes()-te._tzm),k(te).rfc2822=!0}else te._isValid=!1}function dl(te){var Me=Ti.exec(te._i);if(Me!==null){te._d=new Date(+Me[1]);return}if(Da(te),te._isValid===!1)delete te._isValid;else return;if(Ps(te),te._isValid===!1)delete te._isValid;else return;te._strict?te._isValid=!1:g.createFromInputFallback(te)}g.createFromInputFallback=G("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(te){te._d=new Date(te._i+(te._useUTC?" UTC":""))});function ql(te,Me,ft){return te!=null?te:Me!=null?Me:ft}function Dc(te){var Me=new Date(g.now());return te._useUTC?[Me.getUTCFullYear(),Me.getUTCMonth(),Me.getUTCDate()]:[Me.getFullYear(),Me.getMonth(),Me.getDate()]}function Jl(te){var Me,ft,Nt=[],xn,Yr,qa;if(!te._d){for(xn=Dc(te),te._w&&te._a[Zt]==null&&te._a[mt]==null&&oc(te),te._dayOfYear!=null&&(qa=ql(te._a[Bt],xn[Bt]),(te._dayOfYear>Ea(qa)||te._dayOfYear===0)&&(k(te)._overflowDayOfYear=!0),ft=Cn(qa,0,te._dayOfYear),te._a[mt]=ft.getUTCMonth(),te._a[Zt]=ft.getUTCDate()),Me=0;Me<3&&te._a[Me]==null;++Me)te._a[Me]=Nt[Me]=xn[Me];for(;Me<7;Me++)te._a[Me]=Nt[Me]=te._a[Me]==null?Me===2?1:0:te._a[Me];te._a[zt]===24&&te._a[ln]===0&&te._a[An]===0&&te._a[En]===0&&(te._nextDay=!0,te._a[zt]=0),te._d=(te._useUTC?Cn:Ui).apply(null,Nt),Yr=te._useUTC?te._d.getUTCDay():te._d.getDay(),te._tzm!=null&&te._d.setUTCMinutes(te._d.getUTCMinutes()-te._tzm),te._nextDay&&(te._a[zt]=24),te._w&&typeof te._w.d!="undefined"&&te._w.d!==Yr&&(k(te).weekdayMismatch=!0)}}function oc(te){var Me,ft,Nt,xn,Yr,qa,Es,Qs,Hl;Me=te._w,Me.GG!=null||Me.W!=null||Me.E!=null?(Yr=1,qa=4,ft=ql(Me.GG,te._a[Bt],At(ws(),1,4).year),Nt=ql(Me.W,1),xn=ql(Me.E,1),(xn<1||xn>7)&&(Qs=!0)):(Yr=te._locale._week.dow,qa=te._locale._week.doy,Hl=At(ws(),Yr,qa),ft=ql(Me.gg,te._a[Bt],Hl.year),Nt=ql(Me.w,Hl.week),Me.d!=null?(xn=Me.d,(xn<0||xn>6)&&(Qs=!0)):Me.e!=null?(xn=Me.e+Yr,(Me.e<0||Me.e>6)&&(Qs=!0)):xn=Yr),Nt<1||Nt>ar(ft,Yr,qa)?k(te)._overflowWeeks=!0:Qs!=null?k(te)._overflowWeekday=!0:(Es=Pn(ft,Nt,xn,Yr,qa),te._a[Bt]=Es.year,te._dayOfYear=Es.dayOfYear)}g.ISO_8601=function(){},g.RFC_2822=function(){};function xu(te){if(te._f===g.ISO_8601){Da(te);return}if(te._f===g.RFC_2822){Ps(te);return}te._a=[],k(te).empty=!0;var Me=""+te._i,ft,Nt,xn,Yr,qa,Es=Me.length,Qs=0,Hl,Lc;for(xn=De(te._f,te._locale).match(fe)||[],Lc=xn.length,ft=0;ft<Lc;ft++)Yr=xn[ft],Nt=(Me.match(Ae(Yr,te))||[])[0],Nt&&(qa=Me.substr(0,Me.indexOf(Nt)),qa.length>0&&k(te).unusedInput.push(qa),Me=Me.slice(Me.indexOf(Nt)+Nt.length),Qs+=Nt.length),Pe[Yr]?(Nt?k(te).empty=!1:k(te).unusedTokens.push(Yr),Ct(Yr,Nt,te)):te._strict&&!Nt&&k(te).unusedTokens.push(Yr);k(te).charsLeftOver=Es-Qs,Me.length>0&&k(te).unusedInput.push(Me),te._a[zt]<=12&&k(te).bigHour===!0&&te._a[zt]>0&&(k(te).bigHour=void 0),k(te).parsedDateParts=te._a.slice(0),k(te).meridiem=te._meridiem,te._a[zt]=yf(te._locale,te._a[zt],te._meridiem),Hl=k(te).era,Hl!==null&&(te._a[Bt]=te._locale.erasConvertYear(Hl,te._a[Bt])),Jl(te),_l(te)}function yf(te,Me,ft){var Nt;return ft==null?Me:te.meridiemHour!=null?te.meridiemHour(Me,ft):(te.isPM!=null&&(Nt=te.isPM(ft),Nt&&Me<12&&(Me+=12),!Nt&&Me===12&&(Me=0)),Me)}function ku(te){var Me,ft,Nt,xn,Yr,qa,Es=!1,Qs=te._f.length;if(Qs===0){k(te).invalidFormat=!0,te._d=new Date(NaN);return}for(xn=0;xn<Qs;xn++)Yr=0,qa=!1,Me=U({},te),te._useUTC!=null&&(Me._useUTC=te._useUTC),Me._f=te._f[xn],xu(Me),F(Me)&&(qa=!0),Yr+=k(Me).charsLeftOver,Yr+=k(Me).unusedTokens.length*10,k(Me).score=Yr,Es?Yr<Nt&&(Nt=Yr,ft=Me):(Nt==null||Yr<Nt||qa)&&(Nt=Yr,ft=Me,qa&&(Es=!0));_(te,ft||Me)}function Zc(te){if(!te._d){var Me=at(te._i),ft=Me.day===void 0?Me.date:Me.day;te._a=d([Me.year,Me.month,ft,Me.hour,Me.minute,Me.second,Me.millisecond],function(Nt){return Nt&&parseInt(Nt,10)}),Jl(te)}}function Zu(te){var Me=new L(_l(Fc(te)));return Me._nextDay&&(Me.add(1,"d"),Me._nextDay=void 0),Me}function Fc(te){var Me=te._i,ft=te._f;return te._locale=te._locale||xl(te._l),Me===null||ft===void 0&&Me===""?D({nullInput:!0}):(typeof Me=="string"&&(te._i=Me=te._locale.preparse(Me)),V(Me)?new L(_l(Me)):(h(Me)?te._d=Me:y(ft)?ku(te):ft?xu(te):Hc(te),F(te)||(te._d=null),te))}function Hc(te){var Me=te._i;b(Me)?te._d=new Date(g.now()):h(Me)?te._d=new Date(Me.valueOf()):typeof Me=="string"?dl(te):y(Me)?(te._a=d(Me.slice(0),function(ft){return parseInt(ft,10)}),Jl(te)):M(Me)?Zc(te):v(Me)?te._d=new Date(Me):g.createFromInputFallback(te)}function Vu(te,Me,ft,Nt,xn){var Yr={};return(Me===!0||Me===!1)&&(Nt=Me,Me=void 0),(ft===!0||ft===!1)&&(Nt=ft,ft=void 0),(M(te)&&m(te)||y(te)&&te.length===0)&&(te=void 0),Yr._isAMomentObject=!0,Yr._useUTC=Yr._isUTC=xn,Yr._l=ft,Yr._i=te,Yr._f=Me,Yr._strict=Nt,Zu(Yr)}function ws(te,Me,ft,Nt){return Vu(te,Me,ft,Nt,!1)}var fc=G("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var te=ws.apply(null,arguments);return this.isValid()&&te.isValid()?te<this?this:te:D()}),Tc=G("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var te=ws.apply(null,arguments);return this.isValid()&&te.isValid()?te>this?this:te:D()});function jc(te,Me){var ft,Nt;if(Me.length===1&&y(Me[0])&&(Me=Me[0]),!Me.length)return ws();for(ft=Me[0],Nt=1;Nt<Me.length;++Nt)(!Me[Nt].isValid()||Me[Nt][te](ft))&&(ft=Me[Nt]);return ft}function lu(){var te=[].slice.call(arguments,0);return jc("isBefore",te)}function hu(){var te=[].slice.call(arguments,0);return jc("isAfter",te)}var of=function(){return Date.now?Date.now():+new Date},uu=["year","quarter","month","week","day","hour","minute","second","millisecond"];function zu(te){var Me,ft=!1,Nt,xn=uu.length;for(Me in te)if(w(te,Me)&&!(_r.call(uu,Me)!==-1&&(te[Me]==null||!isNaN(te[Me]))))return!1;for(Nt=0;Nt<xn;++Nt)if(te[uu[Nt]]){if(ft)return!1;parseFloat(te[uu[Nt]])!==Rt(te[uu[Nt]])&&(ft=!0)}return!0}function cf(){return this._isValid}function bf(){return oi(NaN)}function Cu(te){var Me=at(te),ft=Me.year||0,Nt=Me.quarter||0,xn=Me.month||0,Yr=Me.week||Me.isoWeek||0,qa=Me.day||0,Es=Me.hour||0,Qs=Me.minute||0,Hl=Me.second||0,Lc=Me.millisecond||0;this._isValid=zu(Me),this._milliseconds=+Lc+Hl*1e3+Qs*6e4+Es*1e3*60*60,this._days=+qa+Yr*7,this._months=+xn+Nt*3+ft*12,this._data={},this._locale=xl(),this._bubble()}function rf(te){return te instanceof Cu}function Bu(te){return te<0?Math.round(-1*te)*-1:Math.round(te)}function Tf(te,Me,ft){var Nt=Math.min(te.length,Me.length),xn=Math.abs(te.length-Me.length),Yr=0,qa;for(qa=0;qa<Nt;qa++)(ft&&te[qa]!==Me[qa]||!ft&&Rt(te[qa])!==Rt(Me[qa]))&&Yr++;return Yr+xn}function ed(te,Me){pe(te,0,0,function(){var ft=this.utcOffset(),Nt="+";return ft<0&&(ft=-ft,Nt="-"),Nt+ve(~~(ft/60),2)+Me+ve(~~ft%60,2)})}ed("Z",":"),ed("ZZ",""),be("Z",Hn),be("ZZ",Hn),lt(["Z","ZZ"],function(te,Me,ft){ft._useUTC=!0,ft._tzm=Pd(Hn,te)});var Fd=/([\+\-]|\d\d)/gi;function Pd(te,Me){var ft=(Me||"").match(te),Nt,xn,Yr;return ft===null?null:(Nt=ft[ft.length-1]||[],xn=(Nt+"").match(Fd)||["-",0,0],Yr=+(xn[1]*60)+Rt(xn[2]),Yr===0?0:xn[0]==="+"?Yr:-Yr)}function Nc(te,Me){var ft,Nt;return Me._isUTC?(ft=Me.clone(),Nt=(V(te)||h(te)?te.valueOf():ws(te).valueOf())-ft.valueOf(),ft._d.setTime(ft._d.valueOf()+Nt),g.updateOffset(ft,!1),ft):ws(te).local()}function eu(te){return-Math.round(te._d.getTimezoneOffset())}g.updateOffset=function(){};function If(te,Me,ft){var Nt=this._offset||0,xn;if(!this.isValid())return te!=null?this:NaN;if(te!=null){if(typeof te=="string"){if(te=Pd(Hn,te),te===null)return this}else Math.abs(te)<16&&!ft&&(te=te*60);return!this._isUTC&&Me&&(xn=eu(this)),this._offset=te,this._isUTC=!0,xn!=null&&this.add(xn,"m"),Nt!==te&&(!Me||this._changeInProgress?mo(this,oi(te-Nt,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,g.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?Nt:eu(this)}function $f(te,Me){return te!=null?(typeof te!="string"&&(te=-te),this.utcOffset(te,Me),this):-this.utcOffset()}function Te(te){return this.utcOffset(0,te)}function _t(te){return this._isUTC&&(this.utcOffset(0,te),this._isUTC=!1,te&&this.subtract(eu(this),"m")),this}function Vn(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var te=Pd(lr,this._i);te!=null?this.utcOffset(te):this.utcOffset(0,!0)}return this}function br(te){return this.isValid()?(te=te?ws(te).utcOffset():0,(this.utcOffset()-te)%60==0):!1}function tn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Pt(){if(!b(this._isDSTShifted))return this._isDSTShifted;var te={},Me;return U(te,this),te=Fc(te),te._a?(Me=te._isUTC?p(te._a):ws(te._a),this._isDSTShifted=this.isValid()&&Tf(te._a,Me.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function on(){return this.isValid()?!this._isUTC:!1}function _n(){return this.isValid()?this._isUTC:!1}function ir(){return this.isValid()?this._isUTC&&this._offset===0:!1}var xr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,aa=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function oi(te,Me){var ft=te,Nt=null,xn,Yr,qa;return rf(te)?ft={ms:te._milliseconds,d:te._days,M:te._months}:v(te)||!isNaN(+te)?(ft={},Me?ft[Me]=+te:ft.milliseconds=+te):(Nt=xr.exec(te))?(xn=Nt[1]==="-"?-1:1,ft={y:0,d:Rt(Nt[Zt])*xn,h:Rt(Nt[zt])*xn,m:Rt(Nt[ln])*xn,s:Rt(Nt[An])*xn,ms:Rt(Bu(Nt[En]*1e3))*xn}):(Nt=aa.exec(te))?(xn=Nt[1]==="-"?-1:1,ft={y:ni(Nt[2],xn),M:ni(Nt[3],xn),w:ni(Nt[4],xn),d:ni(Nt[5],xn),h:ni(Nt[6],xn),m:ni(Nt[7],xn),s:ni(Nt[8],xn)}):ft==null?ft={}:typeof ft=="object"&&("from"in ft||"to"in ft)&&(qa=Zo(ws(ft.from),ws(ft.to)),ft={},ft.ms=qa.milliseconds,ft.M=qa.months),Yr=new Cu(ft),rf(te)&&w(te,"_locale")&&(Yr._locale=te._locale),rf(te)&&w(te,"_isValid")&&(Yr._isValid=te._isValid),Yr}oi.fn=Cu.prototype,oi.invalid=bf;function ni(te,Me){var ft=te&&parseFloat(te.replace(",","."));return(isNaN(ft)?0:ft)*Me}function yi(te,Me){var ft={};return ft.months=Me.month()-te.month()+(Me.year()-te.year())*12,te.clone().add(ft.months,"M").isAfter(Me)&&--ft.months,ft.milliseconds=+Me-+te.clone().add(ft.months,"M"),ft}function Zo(te,Me){var ft;return te.isValid()&&Me.isValid()?(Me=Nc(Me,te),te.isBefore(Me)?ft=yi(te,Me):(ft=yi(Me,te),ft.milliseconds=-ft.milliseconds,ft.months=-ft.months),ft):{milliseconds:0,months:0}}function is(te,Me){return function(ft,Nt){var xn,Yr;return Nt!==null&&!isNaN(+Nt)&&(K(Me,"moment()."+Me+"(period, number) is deprecated. Please use moment()."+Me+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Yr=ft,ft=Nt,Nt=Yr),xn=oi(ft,Nt),mo(this,xn,te),this}}function mo(te,Me,ft,Nt){var xn=Me._milliseconds,Yr=Bu(Me._days),qa=Bu(Me._months);!te.isValid()||(Nt=Nt==null?!0:Nt,qa&&vr(te,ze(te,"Month")+qa*ft),Yr&&rt(te,"Date",ze(te,"Date")+Yr*ft),xn&&te._d.setTime(te._d.valueOf()+xn*ft),Nt&&g.updateOffset(te,Yr||qa))}var Ml=is(1,"add"),yc=is(-1,"subtract");function oa(te){return typeof te=="string"||te instanceof String}function sl(te){return V(te)||h(te)||oa(te)||v(te)||bc(te)||fl(te)||te===null||te===void 0}function fl(te){var Me=M(te)&&!m(te),ft=!1,Nt=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],xn,Yr,qa=Nt.length;for(xn=0;xn<qa;xn+=1)Yr=Nt[xn],ft=ft||w(te,Yr);return Me&&ft}function bc(te){var Me=y(te),ft=!1;return Me&&(ft=te.filter(function(Nt){return!v(Nt)&&oa(te)}).length===0),Me&&ft}function Rf(te){var Me=M(te)&&!m(te),ft=!1,Nt=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],xn,Yr;for(xn=0;xn<Nt.length;xn+=1)Yr=Nt[xn],ft=ft||w(te,Yr);return Me&&ft}function Ms(te,Me){var ft=te.diff(Me,"days",!0);return ft<-6?"sameElse":ft<-1?"lastWeek":ft<0?"lastDay":ft<1?"sameDay":ft<2?"nextDay":ft<7?"nextWeek":"sameElse"}function ff(te,Me){arguments.length===1&&(arguments[0]?sl(arguments[0])?(te=arguments[0],Me=void 0):Rf(arguments[0])&&(Me=arguments[0],te=void 0):(te=void 0,Me=void 0));var ft=te||ws(),Nt=Nc(ft,this).startOf("day"),xn=g.calendarFormat(this,Nt)||"sameElse",Yr=Me&&(re(Me[xn])?Me[xn].call(this,ft):Me[xn]);return this.format(Yr||this.localeData().calendar(xn,this,ws(ft)))}function Df(){return new L(this)}function Ff(te,Me){var ft=V(te)?te:ws(te);return this.isValid()&&ft.isValid()?(Me=ct(Me)||"millisecond",Me==="millisecond"?this.valueOf()>ft.valueOf():ft.valueOf()<this.clone().startOf(Me).valueOf()):!1}function Kf(te,Me){var ft=V(te)?te:ws(te);return this.isValid()&&ft.isValid()?(Me=ct(Me)||"millisecond",Me==="millisecond"?this.valueOf()<ft.valueOf():this.clone().endOf(Me).valueOf()<ft.valueOf()):!1}function xf(te,Me,ft,Nt){var xn=V(te)?te:ws(te),Yr=V(Me)?Me:ws(Me);return this.isValid()&&xn.isValid()&&Yr.isValid()?(Nt=Nt||"()",(Nt[0]==="("?this.isAfter(xn,ft):!this.isBefore(xn,ft))&&(Nt[1]===")"?this.isBefore(Yr,ft):!this.isAfter(Yr,ft))):!1}function Sc(te,Me){var ft=V(te)?te:ws(te),Nt;return this.isValid()&&ft.isValid()?(Me=ct(Me)||"millisecond",Me==="millisecond"?this.valueOf()===ft.valueOf():(Nt=ft.valueOf(),this.clone().startOf(Me).valueOf()<=Nt&&Nt<=this.clone().endOf(Me).valueOf())):!1}function Wu(te,Me){return this.isSame(te,Me)||this.isAfter(te,Me)}function Du(te,Me){return this.isSame(te,Me)||this.isBefore(te,Me)}function Gd(te,Me,ft){var Nt,xn,Yr;if(!this.isValid())return NaN;if(Nt=Nc(te,this),!Nt.isValid())return NaN;switch(xn=(Nt.utcOffset()-this.utcOffset())*6e4,Me=ct(Me),Me){case"year":Yr=gf(this,Nt)/12;break;case"month":Yr=gf(this,Nt);break;case"quarter":Yr=gf(this,Nt)/3;break;case"second":Yr=(this-Nt)/1e3;break;case"minute":Yr=(this-Nt)/6e4;break;case"hour":Yr=(this-Nt)/36e5;break;case"day":Yr=(this-Nt-xn)/864e5;break;case"week":Yr=(this-Nt-xn)/6048e5;break;default:Yr=this-Nt}return ft?Yr:Yt(Yr)}function gf(te,Me){if(te.date()<Me.date())return-gf(Me,te);var ft=(Me.year()-te.year())*12+(Me.month()-te.month()),Nt=te.clone().add(ft,"months"),xn,Yr;return Me-Nt<0?(xn=te.clone().add(ft-1,"months"),Yr=(Me-Nt)/(Nt-xn)):(xn=te.clone().add(ft+1,"months"),Yr=(Me-Nt)/(xn-Nt)),-(ft+Yr)||0}g.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",g.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Vp(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function $c(te){if(!this.isValid())return null;var Me=te!==!0,ft=Me?this.clone().utc():this;return ft.year()<0||ft.year()>9999?ke(ft,Me?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):re(Date.prototype.toISOString)?Me?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ke(ft,"Z")):ke(ft,Me?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Yl(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var te="moment",Me="",ft,Nt,xn,Yr;return this.isLocal()||(te=this.utcOffset()===0?"moment.utc":"moment.parseZone",Me="Z"),ft="["+te+'("]',Nt=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",xn="-MM-DD[T]HH:mm:ss.SSS",Yr=Me+'[")]',this.format(ft+Nt+xn+Yr)}function Sp(te){te||(te=this.isUtc()?g.defaultFormatUtc:g.defaultFormat);var Me=ke(this,te);return this.localeData().postformat(Me)}function tp(te,Me){return this.isValid()&&(V(te)&&te.isValid()||ws(te).isValid())?oi({to:this,from:te}).locale(this.locale()).humanize(!Me):this.localeData().invalidDate()}function Rp(te){return this.from(ws(),te)}function df(te,Me){return this.isValid()&&(V(te)&&te.isValid()||ws(te).isValid())?oi({from:this,to:te}).locale(this.locale()).humanize(!Me):this.localeData().invalidDate()}function uf(te){return this.to(ws(),te)}function Af(te){var Me;return te===void 0?this._locale._abbr:(Me=xl(te),Me!=null&&(this._locale=Me),this)}var Wn=G("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(te){return te===void 0?this.localeData():this.locale(te)});function ca(){return this._locale}var ra=1e3,Na=60*ra,fi=60*Na,so=(365*400+97)*24*fi;function vo(te,Me){return(te%Me+Me)%Me}function Ro(te,Me,ft){return te<100&&te>=0?new Date(te+400,Me,ft)-so:new Date(te,Me,ft).valueOf()}function So(te,Me,ft){return te<100&&te>=0?Date.UTC(te+400,Me,ft)-so:Date.UTC(te,Me,ft)}function el(te){var Me,ft;if(te=ct(te),te===void 0||te==="millisecond"||!this.isValid())return this;switch(ft=this._isUTC?So:Ro,te){case"year":Me=ft(this.year(),0,1);break;case"quarter":Me=ft(this.year(),this.month()-this.month()%3,1);break;case"month":Me=ft(this.year(),this.month(),1);break;case"week":Me=ft(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":Me=ft(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":Me=ft(this.year(),this.month(),this.date());break;case"hour":Me=this._d.valueOf(),Me-=vo(Me+(this._isUTC?0:this.utcOffset()*Na),fi);break;case"minute":Me=this._d.valueOf(),Me-=vo(Me,Na);break;case"second":Me=this._d.valueOf(),Me-=vo(Me,ra);break}return this._d.setTime(Me),g.updateOffset(this,!0),this}function ul(te){var Me,ft;if(te=ct(te),te===void 0||te==="millisecond"||!this.isValid())return this;switch(ft=this._isUTC?So:Ro,te){case"year":Me=ft(this.year()+1,0,1)-1;break;case"quarter":Me=ft(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":Me=ft(this.year(),this.month()+1,1)-1;break;case"week":Me=ft(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":Me=ft(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":Me=ft(this.year(),this.month(),this.date()+1)-1;break;case"hour":Me=this._d.valueOf(),Me+=fi-vo(Me+(this._isUTC?0:this.utcOffset()*Na),fi)-1;break;case"minute":Me=this._d.valueOf(),Me+=Na-vo(Me,Na)-1;break;case"second":Me=this._d.valueOf(),Me+=ra-vo(Me,ra)-1;break}return this._d.setTime(Me),g.updateOffset(this,!0),this}function Xo(){return this._d.valueOf()-(this._offset||0)*6e4}function lo(){return Math.floor(this.valueOf()/1e3)}function Zs(){return new Date(this.valueOf())}function Gs(){var te=this;return[te.year(),te.month(),te.date(),te.hour(),te.minute(),te.second(),te.millisecond()]}function $s(){var te=this;return{years:te.year(),months:te.month(),date:te.date(),hours:te.hours(),minutes:te.minutes(),seconds:te.seconds(),milliseconds:te.milliseconds()}}function Qn(){return this.isValid()?this.toISOString():null}function dr(){return F(this)}function Xr(){return _({},k(this))}function la(){return k(this).overflow}function Ra(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}pe("N",0,0,"eraAbbr"),pe("NN",0,0,"eraAbbr"),pe("NNN",0,0,"eraAbbr"),pe("NNNN",0,0,"eraName"),pe("NNNNN",0,0,"eraNarrow"),pe("y",["y",1],"yo","eraYear"),pe("y",["yy",2],0,"eraYear"),pe("y",["yyy",3],0,"eraYear"),pe("y",["yyyy",4],0,"eraYear"),be("N",Us),be("NN",Us),be("NNN",Us),be("NNNN",os),be("NNNNN",El),lt(["N","NN","NNN","NNNN","NNNNN"],function(te,Me,ft,Nt){var xn=ft._locale.erasParse(te,Nt,ft._strict);xn?k(ft).era=xn:k(ft).invalidEra=te}),be("y",rr),be("yy",rr),be("yyy",rr),be("yyyy",rr),be("yo",Bs),lt(["y","yy","yyy","yyyy"],Bt),lt(["yo"],function(te,Me,ft,Nt){var xn;ft._locale._eraYearOrdinalRegex&&(xn=te.match(ft._locale._eraYearOrdinalRegex)),ft._locale.eraYearOrdinalParse?Me[Bt]=ft._locale.eraYearOrdinalParse(te,xn):Me[Bt]=parseInt(te,10)});function _i(te,Me){var ft,Nt,xn,Yr=this._eras||xl("en")._eras;for(ft=0,Nt=Yr.length;ft<Nt;++ft){switch(typeof Yr[ft].since){case"string":xn=g(Yr[ft].since).startOf("day"),Yr[ft].since=xn.valueOf();break}switch(typeof Yr[ft].until){case"undefined":Yr[ft].until=Infinity;break;case"string":xn=g(Yr[ft].until).startOf("day").valueOf(),Yr[ft].until=xn.valueOf();break}}return Yr}function ui(te,Me,ft){var Nt,xn,Yr=this.eras(),qa,Es,Qs;for(te=te.toUpperCase(),Nt=0,xn=Yr.length;Nt<xn;++Nt)if(qa=Yr[Nt].name.toUpperCase(),Es=Yr[Nt].abbr.toUpperCase(),Qs=Yr[Nt].narrow.toUpperCase(),ft)switch(Me){case"N":case"NN":case"NNN":if(Es===te)return Yr[Nt];break;case"NNNN":if(qa===te)return Yr[Nt];break;case"NNNNN":if(Qs===te)return Yr[Nt];break}else if([qa,Es,Qs].indexOf(te)>=0)return Yr[Nt]}function ho(te,Me){var ft=te.since<=te.until?1:-1;return Me===void 0?g(te.since).year():g(te.since).year()+(Me-te.offset)*ft}function Oi(){var te,Me,ft,Nt=this.localeData().eras();for(te=0,Me=Nt.length;te<Me;++te)if(ft=this.clone().startOf("day").valueOf(),Nt[te].since<=ft&&ft<=Nt[te].until||Nt[te].until<=ft&&ft<=Nt[te].since)return Nt[te].name;return""}function Fo(){var te,Me,ft,Nt=this.localeData().eras();for(te=0,Me=Nt.length;te<Me;++te)if(ft=this.clone().startOf("day").valueOf(),Nt[te].since<=ft&&ft<=Nt[te].until||Nt[te].until<=ft&&ft<=Nt[te].since)return Nt[te].narrow;return""}function as(){var te,Me,ft,Nt=this.localeData().eras();for(te=0,Me=Nt.length;te<Me;++te)if(ft=this.clone().startOf("day").valueOf(),Nt[te].since<=ft&&ft<=Nt[te].until||Nt[te].until<=ft&&ft<=Nt[te].since)return Nt[te].abbr;return""}function Fs(){var te,Me,ft,Nt,xn=this.localeData().eras();for(te=0,Me=xn.length;te<Me;++te)if(ft=xn[te].since<=xn[te].until?1:-1,Nt=this.clone().startOf("day").valueOf(),xn[te].since<=Nt&&Nt<=xn[te].until||xn[te].until<=Nt&&Nt<=xn[te].since)return(this.year()-g(xn[te].since).year())*ft+xn[te].offset;return this.year()}function Fr(te){return w(this,"_erasNameRegex")||gc.call(this),te?this._erasNameRegex:this._erasRegex}function tl(te){return w(this,"_erasAbbrRegex")||gc.call(this),te?this._erasAbbrRegex:this._erasRegex}function Js(te){return w(this,"_erasNarrowRegex")||gc.call(this),te?this._erasNarrowRegex:this._erasRegex}function Us(te,Me){return Me.erasAbbrRegex(te)}function os(te,Me){return Me.erasNameRegex(te)}function El(te,Me){return Me.erasNarrowRegex(te)}function Bs(te,Me){return Me._eraYearOrdinalRegex||rr}function gc(){var te=[],Me=[],ft=[],Nt=[],xn,Yr,qa=this.eras();for(xn=0,Yr=qa.length;xn<Yr;++xn)Me.push($e(qa[xn].name)),te.push($e(qa[xn].abbr)),ft.push($e(qa[xn].narrow)),Nt.push($e(qa[xn].name)),Nt.push($e(qa[xn].abbr)),Nt.push($e(qa[xn].narrow));this._erasRegex=new RegExp("^("+Nt.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+Me.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+te.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+ft.join("|")+")","i")}pe(0,["gg",2],0,function(){return this.weekYear()%100}),pe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function kr(te,Me){pe(0,[te,te.length],0,Me)}kr("gggg","weekYear"),kr("ggggg","weekYear"),kr("GGGG","isoWeekYear"),kr("GGGGG","isoWeekYear"),Le("weekYear","gg"),Le("isoWeekYear","GG"),St("weekYear",1),St("isoWeekYear",1),be("G",nt),be("g",nt),be("GG",an,Et),be("gg",an,Et),be("GGGG",cn,Jt),be("gggg",cn,Jt),be("GGGGG",er,Qt),be("ggggg",er,Qt),vt(["gggg","ggggg","GGGG","GGGGG"],function(te,Me,ft,Nt){Me[Nt.substr(0,2)]=Rt(te)}),vt(["gg","GG"],function(te,Me,ft,Nt){Me[Nt]=g.parseTwoDigitYear(te)});function Sa(te){return Fl.call(this,te,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Hi(te){return Fl.call(this,te,this.isoWeek(),this.isoWeekday(),1,4)}function Co(){return ar(this.year(),1,4)}function Ds(){return ar(this.isoWeekYear(),1,4)}function Dl(){var te=this.localeData()._week;return ar(this.year(),te.dow,te.doy)}function Xc(){var te=this.localeData()._week;return ar(this.weekYear(),te.dow,te.doy)}function Fl(te,Me,ft,Nt,xn){var Yr;return te==null?At(this,Nt,xn).year:(Yr=ar(te,Nt,xn),Me>Yr&&(Me=Yr),Eu.call(this,te,Me,ft,Nt,xn))}function Eu(te,Me,ft,Nt,xn){var Yr=Pn(te,Me,ft,Nt,xn),qa=Cn(Yr.year,0,Yr.dayOfYear);return this.year(qa.getUTCFullYear()),this.month(qa.getUTCMonth()),this.date(qa.getUTCDate()),this}pe("Q",0,"Qo","quarter"),Le("quarter","Q"),St("quarter",7),be("Q",ot),lt("Q",function(te,Me){Me[mt]=(Rt(te)-1)*3});function cc(te){return te==null?Math.ceil((this.month()+1)/3):this.month((te-1)*3+this.month()%3)}pe("D",["DD",2],"Do","date"),Le("date","D"),St("date",9),be("D",an),be("DD",an,Et),be("Do",function(te,Me){return te?Me._dayOfMonthOrdinalParse||Me._ordinalParse:Me._dayOfMonthOrdinalParseLenient}),lt(["D","DD"],Zt),lt("Do",function(te,Me){Me[Zt]=Rt(te.match(an)[0])});var Hu=Lt("Date",!0);pe("DDD",["DDDD",3],"DDDo","dayOfYear"),Le("dayOfYear","DDD"),St("dayOfYear",4),be("DDD",rn),be("DDDD",Ht),lt(["DDD","DDDD"],function(te,Me,ft){ft._dayOfYear=Rt(te)});function dc(te){var Me=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return te==null?Me:this.add(te-Me,"d")}pe("m",["mm",2],0,"minute"),Le("minute","m"),St("minute",14),be("m",an),be("mm",an,Et),lt(["m","mm"],ln);var iu=Lt("Minutes",!1);pe("s",["ss",2],0,"second"),Le("second","s"),St("second",15),be("s",an),be("ss",an,Et),lt(["s","ss"],An);var Gc=Lt("Seconds",!1);pe("S",0,0,function(){return~~(this.millisecond()/100)}),pe(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),pe(0,["SSS",3],0,"millisecond"),pe(0,["SSSS",4],0,function(){return this.millisecond()*10}),pe(0,["SSSSS",5],0,function(){return this.millisecond()*100}),pe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),pe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),pe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),pe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Le("millisecond","ms"),St("millisecond",16),be("S",rn,ot),be("SS",rn,Et),be("SSS",rn,Ht);var Jc,pf;for(Jc="SSSS";Jc.length<=9;Jc+="S")be(Jc,rr);function hn(te,Me){Me[En]=Rt(("0."+te)*1e3)}for(Jc="S";Jc.length<=9;Jc+="S")lt(Jc,hn);pf=Lt("Milliseconds",!1),pe("z",0,0,"zoneAbbr"),pe("zz",0,0,"zoneName");function dn(){return this._isUTC?"UTC":""}function tr(){return this._isUTC?"Coordinated Universal Time":""}var Mn=L.prototype;Mn.add=Ml,Mn.calendar=ff,Mn.clone=Df,Mn.diff=Gd,Mn.endOf=ul,Mn.format=Sp,Mn.from=tp,Mn.fromNow=Rp,Mn.to=df,Mn.toNow=uf,Mn.get=tt,Mn.invalidAt=la,Mn.isAfter=Ff,Mn.isBefore=Kf,Mn.isBetween=xf,Mn.isSame=Sc,Mn.isSameOrAfter=Wu,Mn.isSameOrBefore=Du,Mn.isValid=dr,Mn.lang=Wn,Mn.locale=Af,Mn.localeData=ca,Mn.max=Tc,Mn.min=fc,Mn.parsingFlags=Xr,Mn.set=de,Mn.startOf=el,Mn.subtract=yc,Mn.toArray=Gs,Mn.toObject=$s,Mn.toDate=Zs,Mn.toISOString=$c,Mn.inspect=Yl,typeof Symbol!="undefined"&&Symbol.for!=null&&(Mn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Mn.toJSON=Qn,Mn.toString=Vp,Mn.unix=lo,Mn.valueOf=Xo,Mn.creationData=Ra,Mn.eraName=Oi,Mn.eraNarrow=Fo,Mn.eraAbbr=as,Mn.eraYear=Fs,Mn.year=Pi,Mn.isLeapYear=rs,Mn.weekYear=Sa,Mn.isoWeekYear=Hi,Mn.quarter=Mn.quarters=cc,Mn.month=Ur,Mn.daysInMonth=Zr,Mn.week=Mn.weeks=Fi,Mn.isoWeek=Mn.isoWeeks=Xa,Mn.weeksInYear=Dl,Mn.weeksInWeekYear=Xc,Mn.isoWeeksInYear=Co,Mn.isoWeeksInISOWeekYear=Ds,Mn.date=Hu,Mn.day=Mn.days=nn,Mn.weekday=sn,Mn.isoWeekday=Ot,Mn.dayOfYear=dc,Mn.hour=Mn.hours=Mo,Mn.minute=Mn.minutes=iu,Mn.second=Mn.seconds=Gc,Mn.millisecond=Mn.milliseconds=pf,Mn.utcOffset=If,Mn.utc=Te,Mn.local=_t,Mn.parseZone=Vn,Mn.hasAlignedHourOffset=br,Mn.isDST=tn,Mn.isLocal=on,Mn.isUtcOffset=_n,Mn.isUtc=ir,Mn.isUTC=ir,Mn.zoneAbbr=dn,Mn.zoneName=tr,Mn.dates=G("dates accessor is deprecated. Use date instead.",Hu),Mn.months=G("months accessor is deprecated. Use month instead",Ur),Mn.years=G("years accessor is deprecated. Use year instead",Pi),Mn.zone=G("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",$f),Mn.isDSTShifted=G("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Pt);function Lr(te){return ws(te*1e3)}function sa(){return ws.apply(null,arguments).parseZone()}function Ma(te){return te}var Ia=ue.prototype;Ia.calendar=ce,Ia.longDateFormat=Qe,Ia.invalidDate=et,Ia.ordinal=Ge,Ia.preparse=Ma,Ia.postformat=Ma,Ia.relativeTime=Vt,Ia.pastFuture=gt,Ia.set=ne,Ia.eras=_i,Ia.erasParse=ui,Ia.erasConvertYear=ho,Ia.erasAbbrRegex=tl,Ia.erasNameRegex=Fr,Ia.erasNarrowRegex=Js,Ia.months=$t,Ia.monthsShort=wn,Ia.monthsParse=Or,Ia.monthsRegex=ba,Ia.monthsShortRegex=Kr,Ia.week=ta,Ia.firstDayOfYear=Ua,Ia.firstDayOfWeek=Qa,Ia.weekdays=Os,Ia.weekdaysMin=Ar,Ia.weekdaysShort=vl,Ia.weekdaysParse=Sr,Ia.weekdaysRegex=gr,Ia.weekdaysShortRegex=Gr,Ia.weekdaysMinRegex=Ln,Ia.isPM=Li,Ia.meridiem=Za;function Ja(te,Me,ft,Nt){var xn=xl(),Yr=p().set(Nt,Me);return xn[ft](Yr,te)}function pi(te,Me,ft){if(v(te)&&(Me=te,te=void 0),te=te||"",Me!=null)return Ja(te,Me,ft,"month");var Nt,xn=[];for(Nt=0;Nt<12;Nt++)xn[Nt]=Ja(te,Nt,ft,"month");return xn}function fo(te,Me,ft,Nt){typeof te=="boolean"?(v(Me)&&(ft=Me,Me=void 0),Me=Me||""):(Me=te,ft=Me,te=!1,v(Me)&&(ft=Me,Me=void 0),Me=Me||"");var xn=xl(),Yr=te?xn._week.dow:0,qa,Es=[];if(ft!=null)return Ja(Me,(ft+Yr)%7,Nt,"day");for(qa=0;qa<7;qa++)Es[qa]=Ja(Me,(qa+Yr)%7,Nt,"day");return Es}function us(te,Me){return pi(te,Me,"months")}function xo(te,Me){return pi(te,Me,"monthsShort")}function Qo(te,Me,ft){return fo(te,Me,ft,"weekdays")}function gs(te,Me,ft){return fo(te,Me,ft,"weekdaysShort")}function ds(te,Me,ft){return fo(te,Me,ft,"weekdaysMin")}Ys("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(Me){var ft=Me%10,Nt=Rt(Me%100/10)===1?"th":ft===1?"st":ft===2?"nd":ft===3?"rd":"th";return Me+Nt}}),g.lang=G("moment.lang is deprecated. Use moment.locale instead.",Ys),g.langData=G("moment.langData is deprecated. Use moment.localeData instead.",xl);var nl=Math.abs;function nc(){var te=this._data;return this._milliseconds=nl(this._milliseconds),this._days=nl(this._days),this._months=nl(this._months),te.milliseconds=nl(te.milliseconds),te.seconds=nl(te.seconds),te.minutes=nl(te.minutes),te.hours=nl(te.hours),te.months=nl(te.months),te.years=nl(te.years),this}function Kl(te,Me,ft,Nt){var xn=oi(Me,ft);return te._milliseconds+=Nt*xn._milliseconds,te._days+=Nt*xn._days,te._months+=Nt*xn._months,te._bubble()}function mu(te,Me){return Kl(this,te,Me,1)}function xc(te,Me){return Kl(this,te,Me,-1)}function Ll(te){return te<0?Math.floor(te):Math.ceil(te)}function wc(){var te=this._milliseconds,Me=this._days,ft=this._months,Nt=this._data,xn,Yr,qa,Es,Qs;return te>=0&&Me>=0&&ft>=0||te<=0&&Me<=0&&ft<=0||(te+=Ll(_u(ft)+Me)*864e5,Me=0,ft=0),Nt.milliseconds=te%1e3,xn=Yt(te/1e3),Nt.seconds=xn%60,Yr=Yt(xn/60),Nt.minutes=Yr%60,qa=Yt(Yr/60),Nt.hours=qa%24,Me+=Yt(qa/24),Qs=Yt(Xu(Me)),ft+=Qs,Me-=Ll(_u(Qs)),Es=Yt(ft/12),ft%=12,Nt.days=Me,Nt.months=ft,Nt.years=Es,this}function Xu(te){return te*4800/146097}function _u(te){return te*146097/4800}function wu(te){if(!this.isValid())return NaN;var Me,ft,Nt=this._milliseconds;if(te=ct(te),te==="month"||te==="quarter"||te==="year")switch(Me=this._days+Nt/864e5,ft=this._months+Xu(Me),te){case"month":return ft;case"quarter":return ft/3;case"year":return ft/12}else switch(Me=this._days+Math.round(_u(this._months)),te){case"week":return Me/7+Nt/6048e5;case"day":return Me+Nt/864e5;case"hour":return Me*24+Nt/36e5;case"minute":return Me*1440+Nt/6e4;case"second":return Me*86400+Nt/1e3;case"millisecond":return Math.floor(Me*864e5)+Nt;default:throw new Error("Unknown unit "+te)}}function fu(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Rt(this._months/12)*31536e6:NaN}function Kc(te){return function(){return this.as(te)}}var td=Kc("ms"),Ic=Kc("s"),tu=Kc("m"),jf=Kc("h"),Tu=Kc("d"),Ed=Kc("w"),vd=Kc("M"),Gu=Kc("Q"),Op=Kc("y");function np(){return oi(this)}function $d(te){return te=ct(te),this.isValid()?this[te+"s"]():NaN}function hd(te){return function(){return this.isValid()?this._data[te]:NaN}}var Ip=hd("milliseconds"),dd=hd("seconds"),cr=hd("minutes"),un=hd("hours"),Jn=hd("days"),Xn=hd("months"),Vr=hd("years");function Zn(){return Yt(this.days()/7)}var pa=Math.round,Ha={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function gi(te,Me,ft,Nt,xn){return xn.relativeTime(Me||1,!!ft,te,Nt)}function co(te,Me,ft,Nt){var xn=oi(te).abs(),Yr=pa(xn.as("s")),qa=pa(xn.as("m")),Es=pa(xn.as("h")),Qs=pa(xn.as("d")),Hl=pa(xn.as("M")),Lc=pa(xn.as("w")),Pu=pa(xn.as("y")),Yf=Yr<=ft.ss&&["s",Yr]||Yr<ft.s&&["ss",Yr]||qa<=1&&["m"]||qa<ft.m&&["mm",qa]||Es<=1&&["h"]||Es<ft.h&&["hh",Es]||Qs<=1&&["d"]||Qs<ft.d&&["dd",Qs];return ft.w!=null&&(Yf=Yf||Lc<=1&&["w"]||Lc<ft.w&&["ww",Lc]),Yf=Yf||Hl<=1&&["M"]||Hl<ft.M&&["MM",Hl]||Pu<=1&&["y"]||["yy",Pu],Yf[2]=Me,Yf[3]=+te>0,Yf[4]=Nt,gi.apply(null,Yf)}function No(te){return te===void 0?pa:typeof te=="function"?(pa=te,!0):!1}function Ko(te,Me){return Ha[te]===void 0?!1:Me===void 0?Ha[te]:(Ha[te]=Me,te==="s"&&(Ha.ss=Me-1),!0)}function Jo(te,Me){if(!this.isValid())return this.localeData().invalidDate();var ft=!1,Nt=Ha,xn,Yr;return typeof te=="object"&&(Me=te,te=!1),typeof te=="boolean"&&(ft=te),typeof Me=="object"&&(Nt=Object.assign({},Ha,Me),Me.s!=null&&Me.ss==null&&(Nt.ss=Me.s-1)),xn=this.localeData(),Yr=co(this,!ft,Nt,xn),ft&&(Yr=xn.pastFuture(+this,Yr)),xn.postformat(Yr)}var gl=Math.abs;function js(te){return(te>0)-(te<0)||+te}function Zl(){if(!this.isValid())return this.localeData().invalidDate();var te=gl(this._milliseconds)/1e3,Me=gl(this._days),ft=gl(this._months),Nt,xn,Yr,qa,Es=this.asSeconds(),Qs,Hl,Lc,Pu;return Es?(Nt=Yt(te/60),xn=Yt(Nt/60),te%=60,Nt%=60,Yr=Yt(ft/12),ft%=12,qa=te?te.toFixed(3).replace(/\.?0+$/,""):"",Qs=Es<0?"-":"",Hl=js(this._months)!==js(Es)?"-":"",Lc=js(this._days)!==js(Es)?"-":"",Pu=js(this._milliseconds)!==js(Es)?"-":"",Qs+"P"+(Yr?Hl+Yr+"Y":"")+(ft?Hl+ft+"M":"")+(Me?Lc+Me+"D":"")+(xn||Nt||te?"T":"")+(xn?Pu+xn+"H":"")+(Nt?Pu+Nt+"M":"")+(te?Pu+qa+"S":"")):"P0D"}var ko=Cu.prototype;ko.isValid=cf,ko.abs=nc,ko.add=mu,ko.subtract=xc,ko.as=wu,ko.asMilliseconds=td,ko.asSeconds=Ic,ko.asMinutes=tu,ko.asHours=jf,ko.asDays=Tu,ko.asWeeks=Ed,ko.asMonths=vd,ko.asQuarters=Gu,ko.asYears=Op,ko.valueOf=fu,ko._bubble=wc,ko.clone=np,ko.get=$d,ko.milliseconds=Ip,ko.seconds=dd,ko.minutes=cr,ko.hours=un,ko.days=Jn,ko.weeks=Zn,ko.months=Xn,ko.years=Vr,ko.humanize=Jo,ko.toISOString=Zl,ko.toString=Zl,ko.toJSON=Zl,ko.locale=Af,ko.localeData=ca,ko.toIsoString=G("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zl),ko.lang=Wn,pe("X",0,0,"unix"),pe("x",0,0,"valueOf"),be("x",nt),be("X",ut),lt("X",function(te,Me,ft){ft._d=new Date(parseFloat(te)*1e3)}),lt("x",function(te,Me,ft){ft._d=new Date(Rt(te))});//! moment.js
|
||
return g.version="2.29.4",A(ws),g.fn=Mn,g.min=lu,g.max=hu,g.now=of,g.utc=p,g.unix=Lr,g.months=us,g.isDate=h,g.locale=Ys,g.invalid=D,g.duration=oi,g.isMoment=V,g.weekdays=Qo,g.parseZone=sa,g.localeData=xl,g.isDuration=rf,g.monthsShort=xo,g.weekdaysMin=ds,g.defineLocale=hl,g.updateLocale=Rs,g.locales=Wl,g.weekdaysShort=gs,g.normalizeUnits=ct,g.relativeTimeRounding=No,g.relativeTimeThreshold=Ko,g.calendarFormat=Ms,g.prototype=Mn,g.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},g})},5783:function(oe,N,o){"use strict";/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <http://feross.org>
|
||
* @license MIT
|
||
*/var x=o(11614),g=o(62117),A=o(53473);N.Buffer=m,N.SlowBuffer=F,N.INSPECT_MAX_BYTES=50,m.TYPED_ARRAY_SUPPORT=o.g.TYPED_ARRAY_SUPPORT!==void 0?o.g.TYPED_ARRAY_SUPPORT:y(),N.kMaxLength=M();function y(){try{var gt=new Uint8Array(1);return gt.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},gt.foo()===42&&typeof gt.subarray=="function"&>.subarray(1,1).byteLength===0}catch(it){return!1}}function M(){return m.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function w(gt,it){if(M()<it)throw new RangeError("Invalid typed array length");return m.TYPED_ARRAY_SUPPORT?(gt=new Uint8Array(it),gt.__proto__=m.prototype):(gt===null&&(gt=new m(it)),gt.length=it),gt}function m(gt,it,Le){if(!m.TYPED_ARRAY_SUPPORT&&!(this instanceof m))return new m(gt,it,Le);if(typeof gt=="number"){if(typeof it=="string")throw new Error("If encoding is specified then the first argument must be a string");return d(this,gt)}return b(this,gt,it,Le)}m.poolSize=8192,m._augment=function(gt){return gt.__proto__=m.prototype,gt};function b(gt,it,Le,ct){if(typeof it=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&it instanceof ArrayBuffer?S(gt,it,Le,ct):typeof it=="string"?_(gt,it,Le):k(gt,it)}m.from=function(gt,it,Le){return b(null,gt,it,Le)},m.TYPED_ARRAY_SUPPORT&&(m.prototype.__proto__=Uint8Array.prototype,m.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&m[Symbol.species]===m&&Object.defineProperty(m,Symbol.species,{value:null,configurable:!0}));function v(gt){if(typeof gt!="number")throw new TypeError('"size" argument must be a number');if(gt<0)throw new RangeError('"size" argument must not be negative')}function h(gt,it,Le,ct){return v(it),it<=0?w(gt,it):Le!==void 0?typeof ct=="string"?w(gt,it).fill(Le,ct):w(gt,it).fill(Le):w(gt,it)}m.alloc=function(gt,it,Le){return h(null,gt,it,Le)};function d(gt,it){if(v(it),gt=w(gt,it<0?0:O(it)|0),!m.TYPED_ARRAY_SUPPORT)for(var Le=0;Le<it;++Le)gt[Le]=0;return gt}m.allocUnsafe=function(gt){return d(null,gt)},m.allocUnsafeSlow=function(gt){return d(null,gt)};function _(gt,it,Le){if((typeof Le!="string"||Le==="")&&(Le="utf8"),!m.isEncoding(Le))throw new TypeError('"encoding" must be a valid string encoding');var ct=D(it,Le)|0;gt=w(gt,ct);var at=gt.write(it,Le);return at!==ct&&(gt=gt.slice(0,at)),gt}function p(gt,it){var Le=it.length<0?0:O(it.length)|0;gt=w(gt,Le);for(var ct=0;ct<Le;ct+=1)gt[ct]=it[ct]&255;return gt}function S(gt,it,Le,ct){if(it.byteLength,Le<0||it.byteLength<Le)throw new RangeError("'offset' is out of bounds");if(it.byteLength<Le+(ct||0))throw new RangeError("'length' is out of bounds");return Le===void 0&&ct===void 0?it=new Uint8Array(it):ct===void 0?it=new Uint8Array(it,Le):it=new Uint8Array(it,Le,ct),m.TYPED_ARRAY_SUPPORT?(gt=it,gt.__proto__=m.prototype):gt=p(gt,it),gt}function k(gt,it){if(m.isBuffer(it)){var Le=O(it.length)|0;return gt=w(gt,Le),gt.length===0||it.copy(gt,0,0,Le),gt}if(it){if(typeof ArrayBuffer!="undefined"&&it.buffer instanceof ArrayBuffer||"length"in it)return typeof it.length!="number"||Vt(it.length)?w(gt,0):p(gt,it);if(it.type==="Buffer"&&A(it.data))return p(gt,it.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function O(gt){if(gt>=M())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M().toString(16)+" bytes");return gt|0}function F(gt){return+gt!=gt&&(gt=0),m.alloc(+gt)}m.isBuffer=function(it){return!!(it!=null&&it._isBuffer)},m.compare=function(it,Le){if(!m.isBuffer(it)||!m.isBuffer(Le))throw new TypeError("Arguments must be Buffers");if(it===Le)return 0;for(var ct=it.length,at=Le.length,jt=0,St=Math.min(ct,at);jt<St;++jt)if(it[jt]!==Le[jt]){ct=it[jt],at=Le[jt];break}return ct<at?-1:at<ct?1:0},m.isEncoding=function(it){switch(String(it).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},m.concat=function(it,Le){if(!A(it))throw new TypeError('"list" argument must be an Array of Buffers');if(it.length===0)return m.alloc(0);var ct;if(Le===void 0)for(Le=0,ct=0;ct<it.length;++ct)Le+=it[ct].length;var at=m.allocUnsafe(Le),jt=0;for(ct=0;ct<it.length;++ct){var St=it[ct];if(!m.isBuffer(St))throw new TypeError('"list" argument must be an Array of Buffers');St.copy(at,jt),jt+=St.length}return at};function D(gt,it){if(m.isBuffer(gt))return gt.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(gt)||gt instanceof ArrayBuffer))return gt.byteLength;typeof gt!="string"&&(gt=""+gt);var Le=gt.length;if(Le===0)return 0;for(var ct=!1;;)switch(it){case"ascii":case"latin1":case"binary":return Le;case"utf8":case"utf-8":case void 0:return et(gt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Le*2;case"hex":return Le>>>1;case"base64":return Ge(gt).length;default:if(ct)return et(gt).length;it=(""+it).toLowerCase(),ct=!0}}m.byteLength=D;function Z(gt,it,Le){var ct=!1;if((it===void 0||it<0)&&(it=0),it>this.length||((Le===void 0||Le>this.length)&&(Le=this.length),Le<=0)||(Le>>>=0,it>>>=0,Le<=it))return"";for(gt||(gt="utf8");;)switch(gt){case"hex":return ve(this,it,Le);case"utf8":case"utf-8":return Q(this,it,Le);case"ascii":return Ee(this,it,Le);case"latin1":case"binary":return ce(this,it,Le);case"base64":return ne(this,it,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fe(this,it,Le);default:if(ct)throw new TypeError("Unknown encoding: "+gt);gt=(gt+"").toLowerCase(),ct=!0}}m.prototype._isBuffer=!0;function W(gt,it,Le){var ct=gt[it];gt[it]=gt[Le],gt[Le]=ct}m.prototype.swap16=function(){var it=this.length;if(it%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Le=0;Le<it;Le+=2)W(this,Le,Le+1);return this},m.prototype.swap32=function(){var it=this.length;if(it%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Le=0;Le<it;Le+=4)W(this,Le,Le+3),W(this,Le+1,Le+2);return this},m.prototype.swap64=function(){var it=this.length;if(it%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Le=0;Le<it;Le+=8)W(this,Le,Le+7),W(this,Le+1,Le+6),W(this,Le+2,Le+5),W(this,Le+3,Le+4);return this},m.prototype.toString=function(){var it=this.length|0;return it===0?"":arguments.length===0?Q(this,0,it):Z.apply(this,arguments)},m.prototype.equals=function(it){if(!m.isBuffer(it))throw new TypeError("Argument must be a Buffer");return this===it?!0:m.compare(this,it)===0},m.prototype.inspect=function(){var it="",Le=N.INSPECT_MAX_BYTES;return this.length>0&&(it=this.toString("hex",0,Le).match(/.{2}/g).join(" "),this.length>Le&&(it+=" ... ")),"<Buffer "+it+">"},m.prototype.compare=function(it,Le,ct,at,jt){if(!m.isBuffer(it))throw new TypeError("Argument must be a Buffer");if(Le===void 0&&(Le=0),ct===void 0&&(ct=it?it.length:0),at===void 0&&(at=0),jt===void 0&&(jt=this.length),Le<0||ct>it.length||at<0||jt>this.length)throw new RangeError("out of range index");if(at>=jt&&Le>=ct)return 0;if(at>=jt)return-1;if(Le>=ct)return 1;if(Le>>>=0,ct>>>=0,at>>>=0,jt>>>=0,this===it)return 0;for(var St=jt-at,fn=ct-Le,Xt=Math.min(St,fn),Yt=this.slice(at,jt),Rt=it.slice(Le,ct),Lt=0;Lt<Xt;++Lt)if(Yt[Lt]!==Rt[Lt]){St=Yt[Lt],fn=Rt[Lt];break}return St<fn?-1:fn<St?1:0};function U(gt,it,Le,ct,at){if(gt.length===0)return-1;if(typeof Le=="string"?(ct=Le,Le=0):Le>2147483647?Le=2147483647:Le<-2147483648&&(Le=-2147483648),Le=+Le,isNaN(Le)&&(Le=at?0:gt.length-1),Le<0&&(Le=gt.length+Le),Le>=gt.length){if(at)return-1;Le=gt.length-1}else if(Le<0)if(at)Le=0;else return-1;if(typeof it=="string"&&(it=m.from(it,ct)),m.isBuffer(it))return it.length===0?-1:L(gt,it,Le,ct,at);if(typeof it=="number")return it=it&255,m.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?at?Uint8Array.prototype.indexOf.call(gt,it,Le):Uint8Array.prototype.lastIndexOf.call(gt,it,Le):L(gt,[it],Le,ct,at);throw new TypeError("val must be string, number or Buffer")}function L(gt,it,Le,ct,at){var jt=1,St=gt.length,fn=it.length;if(ct!==void 0&&(ct=String(ct).toLowerCase(),ct==="ucs2"||ct==="ucs-2"||ct==="utf16le"||ct==="utf-16le")){if(gt.length<2||it.length<2)return-1;jt=2,St/=2,fn/=2,Le/=2}function Xt(rt,tt){return jt===1?rt[tt]:rt.readUInt16BE(tt*jt)}var Yt;if(at){var Rt=-1;for(Yt=Le;Yt<St;Yt++)if(Xt(gt,Yt)===Xt(it,Rt===-1?0:Yt-Rt)){if(Rt===-1&&(Rt=Yt),Yt-Rt+1===fn)return Rt*jt}else Rt!==-1&&(Yt-=Yt-Rt),Rt=-1}else for(Le+fn>St&&(Le=St-fn),Yt=Le;Yt>=0;Yt--){for(var Lt=!0,ze=0;ze<fn;ze++)if(Xt(gt,Yt+ze)!==Xt(it,ze)){Lt=!1;break}if(Lt)return Yt}return-1}m.prototype.includes=function(it,Le,ct){return this.indexOf(it,Le,ct)!==-1},m.prototype.indexOf=function(it,Le,ct){return U(this,it,Le,ct,!0)},m.prototype.lastIndexOf=function(it,Le,ct){return U(this,it,Le,ct,!1)};function V(gt,it,Le,ct){Le=Number(Le)||0;var at=gt.length-Le;ct?(ct=Number(ct),ct>at&&(ct=at)):ct=at;var jt=it.length;if(jt%2!=0)throw new TypeError("Invalid hex string");ct>jt/2&&(ct=jt/2);for(var St=0;St<ct;++St){var fn=parseInt(it.substr(St*2,2),16);if(isNaN(fn))return St;gt[Le+St]=fn}return St}function $(gt,it,Le,ct){return wt(et(it,gt.length-Le),gt,Le,ct)}function G(gt,it,Le,ct){return wt(dt(it),gt,Le,ct)}function z(gt,it,Le,ct){return G(gt,it,Le,ct)}function K(gt,it,Le,ct){return wt(Ge(it),gt,Le,ct)}function re(gt,it,Le,ct){return wt(Ke(it,gt.length-Le),gt,Le,ct)}m.prototype.write=function(it,Le,ct,at){if(Le===void 0)at="utf8",ct=this.length,Le=0;else if(ct===void 0&&typeof Le=="string")at=Le,ct=this.length,Le=0;else if(isFinite(Le))Le=Le|0,isFinite(ct)?(ct=ct|0,at===void 0&&(at="utf8")):(at=ct,ct=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var jt=this.length-Le;if((ct===void 0||ct>jt)&&(ct=jt),it.length>0&&(ct<0||Le<0)||Le>this.length)throw new RangeError("Attempt to write outside buffer bounds");at||(at="utf8");for(var St=!1;;)switch(at){case"hex":return V(this,it,Le,ct);case"utf8":case"utf-8":return $(this,it,Le,ct);case"ascii":return G(this,it,Le,ct);case"latin1":case"binary":return z(this,it,Le,ct);case"base64":return K(this,it,Le,ct);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,it,Le,ct);default:if(St)throw new TypeError("Unknown encoding: "+at);at=(""+at).toLowerCase(),St=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ne(gt,it,Le){return it===0&&Le===gt.length?x.fromByteArray(gt):x.fromByteArray(gt.slice(it,Le))}function Q(gt,it,Le){Le=Math.min(gt.length,Le);for(var ct=[],at=it;at<Le;){var jt=gt[at],St=null,fn=jt>239?4:jt>223?3:jt>191?2:1;if(at+fn<=Le){var Xt,Yt,Rt,Lt;switch(fn){case 1:jt<128&&(St=jt);break;case 2:Xt=gt[at+1],(Xt&192)==128&&(Lt=(jt&31)<<6|Xt&63,Lt>127&&(St=Lt));break;case 3:Xt=gt[at+1],Yt=gt[at+2],(Xt&192)==128&&(Yt&192)==128&&(Lt=(jt&15)<<12|(Xt&63)<<6|Yt&63,Lt>2047&&(Lt<55296||Lt>57343)&&(St=Lt));break;case 4:Xt=gt[at+1],Yt=gt[at+2],Rt=gt[at+3],(Xt&192)==128&&(Yt&192)==128&&(Rt&192)==128&&(Lt=(jt&15)<<18|(Xt&63)<<12|(Yt&63)<<6|Rt&63,Lt>65535&&Lt<1114112&&(St=Lt))}}St===null?(St=65533,fn=1):St>65535&&(St-=65536,ct.push(St>>>10&1023|55296),St=56320|St&1023),ct.push(St),at+=fn}return he(ct)}var ue=4096;function he(gt){var it=gt.length;if(it<=ue)return String.fromCharCode.apply(String,gt);for(var Le="",ct=0;ct<it;)Le+=String.fromCharCode.apply(String,gt.slice(ct,ct+=ue));return Le}function Ee(gt,it,Le){var ct="";Le=Math.min(gt.length,Le);for(var at=it;at<Le;++at)ct+=String.fromCharCode(gt[at]&127);return ct}function ce(gt,it,Le){var ct="";Le=Math.min(gt.length,Le);for(var at=it;at<Le;++at)ct+=String.fromCharCode(gt[at]);return ct}function ve(gt,it,Le){var ct=gt.length;(!it||it<0)&&(it=0),(!Le||Le<0||Le>ct)&&(Le=ct);for(var at="",jt=it;jt<Le;++jt)at+=qe(gt[jt]);return at}function fe(gt,it,Le){for(var ct=gt.slice(it,Le),at="",jt=0;jt<ct.length;jt+=2)at+=String.fromCharCode(ct[jt]+ct[jt+1]*256);return at}m.prototype.slice=function(it,Le){var ct=this.length;it=~~it,Le=Le===void 0?ct:~~Le,it<0?(it+=ct,it<0&&(it=0)):it>ct&&(it=ct),Le<0?(Le+=ct,Le<0&&(Le=0)):Le>ct&&(Le=ct),Le<it&&(Le=it);var at;if(m.TYPED_ARRAY_SUPPORT)at=this.subarray(it,Le),at.__proto__=m.prototype;else{var jt=Le-it;at=new m(jt,void 0);for(var St=0;St<jt;++St)at[St]=this[St+it]}return at};function we(gt,it,Le){if(gt%1!=0||gt<0)throw new RangeError("offset is not uint");if(gt+it>Le)throw new RangeError("Trying to access beyond buffer length")}m.prototype.readUIntLE=function(it,Le,ct){it=it|0,Le=Le|0,ct||we(it,Le,this.length);for(var at=this[it],jt=1,St=0;++St<Le&&(jt*=256);)at+=this[it+St]*jt;return at},m.prototype.readUIntBE=function(it,Le,ct){it=it|0,Le=Le|0,ct||we(it,Le,this.length);for(var at=this[it+--Le],jt=1;Le>0&&(jt*=256);)at+=this[it+--Le]*jt;return at},m.prototype.readUInt8=function(it,Le){return Le||we(it,1,this.length),this[it]},m.prototype.readUInt16LE=function(it,Le){return Le||we(it,2,this.length),this[it]|this[it+1]<<8},m.prototype.readUInt16BE=function(it,Le){return Le||we(it,2,this.length),this[it]<<8|this[it+1]},m.prototype.readUInt32LE=function(it,Le){return Le||we(it,4,this.length),(this[it]|this[it+1]<<8|this[it+2]<<16)+this[it+3]*16777216},m.prototype.readUInt32BE=function(it,Le){return Le||we(it,4,this.length),this[it]*16777216+(this[it+1]<<16|this[it+2]<<8|this[it+3])},m.prototype.readIntLE=function(it,Le,ct){it=it|0,Le=Le|0,ct||we(it,Le,this.length);for(var at=this[it],jt=1,St=0;++St<Le&&(jt*=256);)at+=this[it+St]*jt;return jt*=128,at>=jt&&(at-=Math.pow(2,8*Le)),at},m.prototype.readIntBE=function(it,Le,ct){it=it|0,Le=Le|0,ct||we(it,Le,this.length);for(var at=Le,jt=1,St=this[it+--at];at>0&&(jt*=256);)St+=this[it+--at]*jt;return jt*=128,St>=jt&&(St-=Math.pow(2,8*Le)),St},m.prototype.readInt8=function(it,Le){return Le||we(it,1,this.length),this[it]&128?(255-this[it]+1)*-1:this[it]},m.prototype.readInt16LE=function(it,Le){Le||we(it,2,this.length);var ct=this[it]|this[it+1]<<8;return ct&32768?ct|4294901760:ct},m.prototype.readInt16BE=function(it,Le){Le||we(it,2,this.length);var ct=this[it+1]|this[it]<<8;return ct&32768?ct|4294901760:ct},m.prototype.readInt32LE=function(it,Le){return Le||we(it,4,this.length),this[it]|this[it+1]<<8|this[it+2]<<16|this[it+3]<<24},m.prototype.readInt32BE=function(it,Le){return Le||we(it,4,this.length),this[it]<<24|this[it+1]<<16|this[it+2]<<8|this[it+3]},m.prototype.readFloatLE=function(it,Le){return Le||we(it,4,this.length),g.read(this,it,!0,23,4)},m.prototype.readFloatBE=function(it,Le){return Le||we(it,4,this.length),g.read(this,it,!1,23,4)},m.prototype.readDoubleLE=function(it,Le){return Le||we(it,8,this.length),g.read(this,it,!0,52,8)},m.prototype.readDoubleBE=function(it,Le){return Le||we(it,8,this.length),g.read(this,it,!1,52,8)};function me(gt,it,Le,ct,at,jt){if(!m.isBuffer(gt))throw new TypeError('"buffer" argument must be a Buffer instance');if(it>at||it<jt)throw new RangeError('"value" argument is out of bounds');if(Le+ct>gt.length)throw new RangeError("Index out of range")}m.prototype.writeUIntLE=function(it,Le,ct,at){if(it=+it,Le=Le|0,ct=ct|0,!at){var jt=Math.pow(2,8*ct)-1;me(this,it,Le,ct,jt,0)}var St=1,fn=0;for(this[Le]=it&255;++fn<ct&&(St*=256);)this[Le+fn]=it/St&255;return Le+ct},m.prototype.writeUIntBE=function(it,Le,ct,at){if(it=+it,Le=Le|0,ct=ct|0,!at){var jt=Math.pow(2,8*ct)-1;me(this,it,Le,ct,jt,0)}var St=ct-1,fn=1;for(this[Le+St]=it&255;--St>=0&&(fn*=256);)this[Le+St]=it/fn&255;return Le+ct},m.prototype.writeUInt8=function(it,Le,ct){return it=+it,Le=Le|0,ct||me(this,it,Le,1,255,0),m.TYPED_ARRAY_SUPPORT||(it=Math.floor(it)),this[Le]=it&255,Le+1};function Pe(gt,it,Le,ct){it<0&&(it=65535+it+1);for(var at=0,jt=Math.min(gt.length-Le,2);at<jt;++at)gt[Le+at]=(it&255<<8*(ct?at:1-at))>>>(ct?at:1-at)*8}m.prototype.writeUInt16LE=function(it,Le,ct){return it=+it,Le=Le|0,ct||me(this,it,Le,2,65535,0),m.TYPED_ARRAY_SUPPORT?(this[Le]=it&255,this[Le+1]=it>>>8):Pe(this,it,Le,!0),Le+2},m.prototype.writeUInt16BE=function(it,Le,ct){return it=+it,Le=Le|0,ct||me(this,it,Le,2,65535,0),m.TYPED_ARRAY_SUPPORT?(this[Le]=it>>>8,this[Le+1]=it&255):Pe(this,it,Le,!1),Le+2};function pe(gt,it,Le,ct){it<0&&(it=4294967295+it+1);for(var at=0,jt=Math.min(gt.length-Le,4);at<jt;++at)gt[Le+at]=it>>>(ct?at:3-at)*8&255}m.prototype.writeUInt32LE=function(it,Le,ct){return it=+it,Le=Le|0,ct||me(this,it,Le,4,4294967295,0),m.TYPED_ARRAY_SUPPORT?(this[Le+3]=it>>>24,this[Le+2]=it>>>16,this[Le+1]=it>>>8,this[Le]=it&255):pe(this,it,Le,!0),Le+4},m.prototype.writeUInt32BE=function(it,Le,ct){return it=+it,Le=Le|0,ct||me(this,it,Le,4,4294967295,0),m.TYPED_ARRAY_SUPPORT?(this[Le]=it>>>24,this[Le+1]=it>>>16,this[Le+2]=it>>>8,this[Le+3]=it&255):pe(this,it,Le,!1),Le+4},m.prototype.writeIntLE=function(it,Le,ct,at){if(it=+it,Le=Le|0,!at){var jt=Math.pow(2,8*ct-1);me(this,it,Le,ct,jt-1,-jt)}var St=0,fn=1,Xt=0;for(this[Le]=it&255;++St<ct&&(fn*=256);)it<0&&Xt===0&&this[Le+St-1]!==0&&(Xt=1),this[Le+St]=(it/fn>>0)-Xt&255;return Le+ct},m.prototype.writeIntBE=function(it,Le,ct,at){if(it=+it,Le=Le|0,!at){var jt=Math.pow(2,8*ct-1);me(this,it,Le,ct,jt-1,-jt)}var St=ct-1,fn=1,Xt=0;for(this[Le+St]=it&255;--St>=0&&(fn*=256);)it<0&&Xt===0&&this[Le+St+1]!==0&&(Xt=1),this[Le+St]=(it/fn>>0)-Xt&255;return Le+ct},m.prototype.writeInt8=function(it,Le,ct){return it=+it,Le=Le|0,ct||me(this,it,Le,1,127,-128),m.TYPED_ARRAY_SUPPORT||(it=Math.floor(it)),it<0&&(it=255+it+1),this[Le]=it&255,Le+1},m.prototype.writeInt16LE=function(it,Le,ct){return it=+it,Le=Le|0,ct||me(this,it,Le,2,32767,-32768),m.TYPED_ARRAY_SUPPORT?(this[Le]=it&255,this[Le+1]=it>>>8):Pe(this,it,Le,!0),Le+2},m.prototype.writeInt16BE=function(it,Le,ct){return it=+it,Le=Le|0,ct||me(this,it,Le,2,32767,-32768),m.TYPED_ARRAY_SUPPORT?(this[Le]=it>>>8,this[Le+1]=it&255):Pe(this,it,Le,!1),Le+2},m.prototype.writeInt32LE=function(it,Le,ct){return it=+it,Le=Le|0,ct||me(this,it,Le,4,2147483647,-2147483648),m.TYPED_ARRAY_SUPPORT?(this[Le]=it&255,this[Le+1]=it>>>8,this[Le+2]=it>>>16,this[Le+3]=it>>>24):pe(this,it,Le,!0),Le+4},m.prototype.writeInt32BE=function(it,Le,ct){return it=+it,Le=Le|0,ct||me(this,it,Le,4,2147483647,-2147483648),it<0&&(it=4294967295+it+1),m.TYPED_ARRAY_SUPPORT?(this[Le]=it>>>24,this[Le+1]=it>>>16,this[Le+2]=it>>>8,this[Le+3]=it&255):pe(this,it,Le,!1),Le+4};function Ie(gt,it,Le,ct,at,jt){if(Le+ct>gt.length)throw new RangeError("Index out of range");if(Le<0)throw new RangeError("Index out of range")}function Je(gt,it,Le,ct,at){return at||Ie(gt,it,Le,4,34028234663852886e22,-34028234663852886e22),g.write(gt,it,Le,ct,23,4),Le+4}m.prototype.writeFloatLE=function(it,Le,ct){return Je(this,it,Le,!0,ct)},m.prototype.writeFloatBE=function(it,Le,ct){return Je(this,it,Le,!1,ct)};function ke(gt,it,Le,ct,at){return at||Ie(gt,it,Le,8,17976931348623157e292,-17976931348623157e292),g.write(gt,it,Le,ct,52,8),Le+8}m.prototype.writeDoubleLE=function(it,Le,ct){return ke(this,it,Le,!0,ct)},m.prototype.writeDoubleBE=function(it,Le,ct){return ke(this,it,Le,!1,ct)},m.prototype.copy=function(it,Le,ct,at){if(ct||(ct=0),!at&&at!==0&&(at=this.length),Le>=it.length&&(Le=it.length),Le||(Le=0),at>0&&at<ct&&(at=ct),at===ct||it.length===0||this.length===0)return 0;if(Le<0)throw new RangeError("targetStart out of bounds");if(ct<0||ct>=this.length)throw new RangeError("sourceStart out of bounds");if(at<0)throw new RangeError("sourceEnd out of bounds");at>this.length&&(at=this.length),it.length-Le<at-ct&&(at=it.length-Le+ct);var jt=at-ct,St;if(this===it&&ct<Le&&Le<at)for(St=jt-1;St>=0;--St)it[St+Le]=this[St+ct];else if(jt<1e3||!m.TYPED_ARRAY_SUPPORT)for(St=0;St<jt;++St)it[St+Le]=this[St+ct];else Uint8Array.prototype.set.call(it,this.subarray(ct,ct+jt),Le);return jt},m.prototype.fill=function(it,Le,ct,at){if(typeof it=="string"){if(typeof Le=="string"?(at=Le,Le=0,ct=this.length):typeof ct=="string"&&(at=ct,ct=this.length),it.length===1){var jt=it.charCodeAt(0);jt<256&&(it=jt)}if(at!==void 0&&typeof at!="string")throw new TypeError("encoding must be a string");if(typeof at=="string"&&!m.isEncoding(at))throw new TypeError("Unknown encoding: "+at)}else typeof it=="number"&&(it=it&255);if(Le<0||this.length<Le||this.length<ct)throw new RangeError("Out of range index");if(ct<=Le)return this;Le=Le>>>0,ct=ct===void 0?this.length:ct>>>0,it||(it=0);var St;if(typeof it=="number")for(St=Le;St<ct;++St)this[St]=it;else{var fn=m.isBuffer(it)?it:et(new m(it,at).toString()),Xt=fn.length;for(St=0;St<ct-Le;++St)this[St+Le]=fn[St%Xt]}return this};var De=/[^+\/0-9A-Za-z-_]/g;function Fe(gt){if(gt=Qe(gt).replace(De,""),gt.length<2)return"";for(;gt.length%4!=0;)gt=gt+"=";return gt}function Qe(gt){return gt.trim?gt.trim():gt.replace(/^\s+|\s+$/g,"")}function qe(gt){return gt<16?"0"+gt.toString(16):gt.toString(16)}function et(gt,it){it=it||Infinity;for(var Le,ct=gt.length,at=null,jt=[],St=0;St<ct;++St){if(Le=gt.charCodeAt(St),Le>55295&&Le<57344){if(!at){if(Le>56319){(it-=3)>-1&&jt.push(239,191,189);continue}else if(St+1===ct){(it-=3)>-1&&jt.push(239,191,189);continue}at=Le;continue}if(Le<56320){(it-=3)>-1&&jt.push(239,191,189),at=Le;continue}Le=(at-55296<<10|Le-56320)+65536}else at&&(it-=3)>-1&&jt.push(239,191,189);if(at=null,Le<128){if((it-=1)<0)break;jt.push(Le)}else if(Le<2048){if((it-=2)<0)break;jt.push(Le>>6|192,Le&63|128)}else if(Le<65536){if((it-=3)<0)break;jt.push(Le>>12|224,Le>>6&63|128,Le&63|128)}else if(Le<1114112){if((it-=4)<0)break;jt.push(Le>>18|240,Le>>12&63|128,Le>>6&63|128,Le&63|128)}else throw new Error("Invalid code point")}return jt}function dt(gt){for(var it=[],Le=0;Le<gt.length;++Le)it.push(gt.charCodeAt(Le)&255);return it}function Ke(gt,it){for(var Le,ct,at,jt=[],St=0;St<gt.length&&!((it-=2)<0);++St)Le=gt.charCodeAt(St),ct=Le>>8,at=Le%256,jt.push(at),jt.push(ct);return jt}function Ge(gt){return x.toByteArray(Fe(gt))}function wt(gt,it,Le,ct){for(var at=0;at<ct&&!(at+Le>=it.length||at>=gt.length);++at)it[at+Le]=gt[at];return at}function Vt(gt){return gt!==gt}},53473:function(oe){var N={}.toString;oe.exports=Array.isArray||function(o){return N.call(o)=="[object Array]"}},88348:function(oe,N,o){var x,g;/*! @preserve
|
||
* numeral.js
|
||
* version : 2.0.6
|
||
* author : Adam Draper
|
||
* license : MIT
|
||
* http://adamwdraper.github.com/Numeral-js/
|
||
*/(function(A,y){x=y,g=typeof x=="function"?x.call(N,o,N,oe):x,g!==void 0&&(oe.exports=g)})(this,function(){var A,y,M="2.0.6",w={},m={},b={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},v={currentLocale:b.currentLocale,zeroFormat:b.zeroFormat,nullFormat:b.nullFormat,defaultFormat:b.defaultFormat,scalePercentBy100:b.scalePercentBy100};function h(d,_){this._input=d,this._value=_}return A=function(_){var p,S,k,O;if(A.isNumeral(_))p=_.value();else if(_===0||typeof _=="undefined")p=0;else if(_===null||y.isNaN(_))p=null;else if(typeof _=="string")if(v.zeroFormat&&_===v.zeroFormat)p=0;else if(v.nullFormat&&_===v.nullFormat||!_.replace(/[^0-9]+/g,"").length)p=null;else{for(S in w)if(O=typeof w[S].regexps.unformat=="function"?w[S].regexps.unformat():w[S].regexps.unformat,O&&_.match(O)){k=w[S].unformat;break}k=k||A._.stringToNumber,p=k(_)}else p=Number(_)||null;return new h(_,p)},A.version=M,A.isNumeral=function(d){return d instanceof h},A._=y={numberToFormat:function(_,p,S){var k=m[A.options.currentLocale],O=!1,F=!1,D=0,Z="",W=1e12,U=1e9,L=1e6,V=1e3,$="",G=!1,z,K,re,ne,Q,ue,he,Ee,ce,ve;if(_=_||0,K=Math.abs(_),A._.includes(p,"(")?(O=!0,p=p.replace(/[\(|\)]/g,"")):(A._.includes(p,"+")||A._.includes(p,"-"))&&(Ee=A._.includes(p,"+")?p.indexOf("+"):_<0?p.indexOf("-"):-1,p=p.replace(/[\+|\-]/g,"")),A._.includes(p,"a")&&(z=p.match(/a(k|m|b|t)?/),z=z?z[1]:!1,A._.includes(p," a")&&(Z=" "),p=p.replace(new RegExp(Z+"a[kmbt]?"),""),K>=W&&!z||z==="t"?(Z+=k.abbreviations.trillion,_=_/W):K<W&&K>=U&&!z||z==="b"?(Z+=k.abbreviations.billion,_=_/U):K<U&&K>=L&&!z||z==="m"?(Z+=k.abbreviations.million,_=_/L):(K<L&&K>=V&&!z||z==="k")&&(Z+=k.abbreviations.thousand,_=_/V)),A._.includes(p,"[.]")&&(F=!0,p=p.replace("[.]",".")),ue=_.toString().split(".")[0],he=p.split(".")[1],ce=p.indexOf(","),D=(p.split(".")[0].split(",")[0].match(/0/g)||[]).length,he?(A._.includes(he,"[")?(he=he.replace("]",""),he=he.split("["),$=A._.toFixed(_,he[0].length+he[1].length,S,he[1].length)):$=A._.toFixed(_,he.length,S),ue=$.split(".")[0],A._.includes($,".")?$=k.delimiters.decimal+$.split(".")[1]:$="",F&&Number($.slice(1))===0&&($="")):ue=A._.toFixed(_,0,S),Z&&!z&&Number(ue)>=1e3&&Z!==k.abbreviations.trillion)switch(ue=String(Number(ue)/1e3),Z){case k.abbreviations.thousand:Z=k.abbreviations.million;break;case k.abbreviations.million:Z=k.abbreviations.billion;break;case k.abbreviations.billion:Z=k.abbreviations.trillion;break}if(A._.includes(ue,"-")&&(ue=ue.slice(1),G=!0),ue.length<D)for(var fe=D-ue.length;fe>0;fe--)ue="0"+ue;return ce>-1&&(ue=ue.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+k.delimiters.thousands)),p.indexOf(".")===0&&(ue=""),ve=ue+$+(Z||""),O?ve=(O&&G?"(":"")+ve+(O&&G?")":""):Ee>=0?ve=Ee===0?(G?"-":"+")+ve:ve+(G?"-":"+"):G&&(ve="-"+ve),ve},stringToNumber:function(_){var p=m[v.currentLocale],S=_,k={thousand:3,million:6,billion:9,trillion:12},O,F,D,Z;if(v.zeroFormat&&_===v.zeroFormat)F=0;else if(v.nullFormat&&_===v.nullFormat||!_.replace(/[^0-9]+/g,"").length)F=null;else{F=1,p.delimiters.decimal!=="."&&(_=_.replace(/\./g,"").replace(p.delimiters.decimal,"."));for(O in k)if(Z=new RegExp("[^a-zA-Z]"+p.abbreviations[O]+"(?:\\)|(\\"+p.currency.symbol+")?(?:\\))?)?$"),S.match(Z)){F*=Math.pow(10,k[O]);break}F*=(_.split("-").length+Math.min(_.split("(").length-1,_.split(")").length-1))%2?1:-1,_=_.replace(/[^0-9\.]+/g,""),F*=Number(_)}return F},isNaN:function(d){function _(p){return d.apply(this,arguments)}return _.toString=function(){return d.toString()},_}(function(d){return typeof d=="number"&&isNaN(d)}),includes:function(_,p){return _.indexOf(p)!==-1},insert:function(_,p,S){return _.slice(0,S)+p+_.slice(S)},reduce:function(_,p){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof p!="function")throw new TypeError(p+" is not a function");var S=Object(_),k=S.length>>>0,O=0,F;if(arguments.length===3)F=arguments[2];else{for(;O<k&&!(O in S);)O++;if(O>=k)throw new TypeError("Reduce of empty array with no initial value");F=S[O++]}for(;O<k;O++)O in S&&(F=p(F,S[O],O,S));return F},multiplier:function(_){var p=_.toString().split(".");return p.length<2?1:Math.pow(10,p[1].length)},correctionFactor:function(){var _=Array.prototype.slice.call(arguments);return _.reduce(function(p,S){var k=y.multiplier(S);return p>k?p:k},1)},toFixed:function(_,p,S,k){var O=_.toString().split("."),F=p-(k||0),D,Z,W,U;return O.length===2?D=Math.min(Math.max(O[1].length,F),p):D=F,W=Math.pow(10,D),U=(S(_+"e+"+D)/W).toFixed(D),k>p-D&&(Z=new RegExp("\\.?0{1,"+(k-(p-D))+"}$"),U=U.replace(Z,"")),U}},A.options=v,A.formats=w,A.locales=m,A.locale=function(d){return d&&(v.currentLocale=d.toLowerCase()),v.currentLocale},A.localeData=function(d){if(!d)return m[v.currentLocale];if(d=d.toLowerCase(),!m[d])throw new Error("Unknown locale : "+d);return m[d]},A.reset=function(){for(var d in b)v[d]=b[d]},A.zeroFormat=function(d){v.zeroFormat=typeof d=="string"?d:null},A.nullFormat=function(d){v.nullFormat=typeof d=="string"?d:null},A.defaultFormat=function(d){v.defaultFormat=typeof d=="string"?d:"0.0"},A.register=function(d,_,p){if(_=_.toLowerCase(),this[d+"s"][_])throw new TypeError(_+" "+d+" already registered.");return this[d+"s"][_]=p,p},A.validate=function(d,_){var p,S,k,O,F,D,Z,W;if(typeof d!="string"&&(d+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",d)),d=d.trim(),d.match(/^\d+$/))return!0;if(d==="")return!1;try{Z=A.localeData(_)}catch(U){Z=A.localeData(A.locale())}return k=Z.currency.symbol,F=Z.abbreviations,p=Z.delimiters.decimal,Z.delimiters.thousands==="."?S="\\.":S=Z.delimiters.thousands,W=d.match(/^[^\d]+/),W!==null&&(d=d.substr(1),W[0]!==k)||(W=d.match(/[^\d]+$/),W!==null&&(d=d.slice(0,-1),W[0]!==F.thousand&&W[0]!==F.million&&W[0]!==F.billion&&W[0]!==F.trillion))?!1:(D=new RegExp(S+"{2}"),d.match(/[^\d.,]/g)?!1:(O=d.split(p),O.length>2?!1:O.length<2?!!O[0].match(/^\d+.*\d$/)&&!O[0].match(D):O[0].length===1?!!O[0].match(/^\d+$/)&&!O[0].match(D)&&!!O[1].match(/^\d+$/):!!O[0].match(/^\d+.*\d$/)&&!O[0].match(D)&&!!O[1].match(/^\d+$/)))},A.fn=h.prototype={clone:function(){return A(this)},format:function(_,p){var S=this._value,k=_||v.defaultFormat,O,F,D;if(p=p||Math.round,S===0&&v.zeroFormat!==null)F=v.zeroFormat;else if(S===null&&v.nullFormat!==null)F=v.nullFormat;else{for(O in w)if(k.match(w[O].regexps.format)){D=w[O].format;break}D=D||A._.numberToFormat,F=D(S,k,p)}return F},value:function(){return this._value},input:function(){return this._input},set:function(_){return this._value=Number(_),this},add:function(_){var p=y.correctionFactor.call(null,this._value,_);function S(k,O,F,D){return k+Math.round(p*O)}return this._value=y.reduce([this._value,_],S,0)/p,this},subtract:function(_){var p=y.correctionFactor.call(null,this._value,_);function S(k,O,F,D){return k-Math.round(p*O)}return this._value=y.reduce([_],S,Math.round(this._value*p))/p,this},multiply:function(_){function p(S,k,O,F){var D=y.correctionFactor(S,k);return Math.round(S*D)*Math.round(k*D)/Math.round(D*D)}return this._value=y.reduce([this._value,_],p,1),this},divide:function(_){function p(S,k,O,F){var D=y.correctionFactor(S,k);return Math.round(S*D)/Math.round(k*D)}return this._value=y.reduce([this._value,_],p),this},difference:function(_){return Math.abs(A(this._value).subtract(_).value())}},A.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(_){var p=_%10;return~~(_%100/10)==1?"th":p===1?"st":p===2?"nd":p===3?"rd":"th"},currency:{symbol:"$"}}),function(){A.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(_,p,S){var k=A._.includes(p," BPS")?" ":"",O;return _=_*1e4,p=p.replace(/\s?BPS/,""),O=A._.numberToFormat(_,p,S),A._.includes(O,")")?(O=O.split(""),O.splice(-1,0,k+"BPS"),O=O.join("")):O=O+k+"BPS",O},unformat:function(_){return+(A._.stringToNumber(_)*1e-4).toFixed(15)}})}(),function(){var d={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},_={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},p=d.suffixes.concat(_.suffixes.filter(function(k){return d.suffixes.indexOf(k)<0})),S=p.join("|");S="("+S.replace("B","B(?!PS)")+")",A.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(S)},format:function(O,F,D){var Z,W=A._.includes(F,"ib")?_:d,U=A._.includes(F," b")||A._.includes(F," ib")?" ":"",L,V,$;for(F=F.replace(/\s?i?b/,""),L=0;L<=W.suffixes.length;L++)if(V=Math.pow(W.base,L),$=Math.pow(W.base,L+1),O===null||O===0||O>=V&&O<$){U+=W.suffixes[L],V>0&&(O=O/V);break}return Z=A._.numberToFormat(O,F,D),Z+U},unformat:function(O){var F=A._.stringToNumber(O),D,Z;if(F){for(D=d.suffixes.length-1;D>=0;D--){if(A._.includes(O,d.suffixes[D])){Z=Math.pow(d.base,D);break}if(A._.includes(O,_.suffixes[D])){Z=Math.pow(_.base,D);break}}F*=Z||1}return F}})}(),function(){A.register("format","currency",{regexps:{format:/(\$)/},format:function(_,p,S){var k=A.locales[A.options.currentLocale],O={before:p.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:p.match(/([\+|\-|\)|\s|\$]*)$/)[0]},F,D,Z;for(p=p.replace(/\s?\$\s?/,""),F=A._.numberToFormat(_,p,S),_>=0?(O.before=O.before.replace(/[\-\(]/,""),O.after=O.after.replace(/[\-\)]/,"")):_<0&&!A._.includes(O.before,"-")&&!A._.includes(O.before,"(")&&(O.before="-"+O.before),Z=0;Z<O.before.length;Z++)switch(D=O.before[Z],D){case"$":F=A._.insert(F,k.currency.symbol,Z);break;case" ":F=A._.insert(F," ",Z+k.currency.symbol.length-1);break}for(Z=O.after.length-1;Z>=0;Z--)switch(D=O.after[Z],D){case"$":F=Z===O.after.length-1?F+k.currency.symbol:A._.insert(F,k.currency.symbol,-(O.after.length-(1+Z)));break;case" ":F=Z===O.after.length-1?F+" ":A._.insert(F," ",-(O.after.length-(1+Z)+k.currency.symbol.length-1));break}return F}})}(),function(){A.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(_,p,S){var k,O=typeof _=="number"&&!A._.isNaN(_)?_.toExponential():"0e+0",F=O.split("e");return p=p.replace(/e[\+|\-]{1}0/,""),k=A._.numberToFormat(Number(F[0]),p,S),k+"e"+F[1]},unformat:function(_){var p=A._.includes(_,"e+")?_.split("e+"):_.split("e-"),S=Number(p[0]),k=Number(p[1]);k=A._.includes(_,"e-")?k*=-1:k;function O(F,D,Z,W){var U=A._.correctionFactor(F,D),L=F*U*(D*U)/(U*U);return L}return A._.reduce([S,Math.pow(10,k)],O,1)}})}(),function(){A.register("format","ordinal",{regexps:{format:/(o)/},format:function(_,p,S){var k=A.locales[A.options.currentLocale],O,F=A._.includes(p," o")?" ":"";return p=p.replace(/\s?o/,""),F+=k.ordinal(_),O=A._.numberToFormat(_,p,S),O+F}})}(),function(){A.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(_,p,S){var k=A._.includes(p," %")?" ":"",O;return A.options.scalePercentBy100&&(_=_*100),p=p.replace(/\s?\%/,""),O=A._.numberToFormat(_,p,S),A._.includes(O,")")?(O=O.split(""),O.splice(-1,0,k+"%"),O=O.join("")):O=O+k+"%",O},unformat:function(_){var p=A._.stringToNumber(_);return A.options.scalePercentBy100?p*.01:p}})}(),function(){A.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(_,p,S){var k=Math.floor(_/60/60),O=Math.floor((_-k*60*60)/60),F=Math.round(_-k*60*60-O*60);return k+":"+(O<10?"0"+O:O)+":"+(F<10?"0"+F:F)},unformat:function(_){var p=_.split(":"),S=0;return p.length===3?(S=S+Number(p[0])*60*60,S=S+Number(p[1])*60,S=S+Number(p[2])):p.length===2&&(S=S+Number(p[0])*60,S=S+Number(p[1])),Number(S)}})}(),A})},44547:function(oe){"use strict";/*
|
||
object-assign
|
||
(c) Sindre Sorhus
|
||
@license MIT
|
||
*/var N=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;function g(y){if(y==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(y)}function A(){try{if(!Object.assign)return!1;var y=new String("abc");if(y[5]="de",Object.getOwnPropertyNames(y)[0]==="5")return!1;for(var M={},w=0;w<10;w++)M["_"+String.fromCharCode(w)]=w;var m=Object.getOwnPropertyNames(M).map(function(v){return M[v]});if(m.join("")!=="0123456789")return!1;var b={};return"abcdefghijklmnopqrst".split("").forEach(function(v){b[v]=v}),Object.keys(Object.assign({},b)).join("")==="abcdefghijklmnopqrst"}catch(v){return!1}}oe.exports=A()?Object.assign:function(y,M){for(var w,m=g(y),b,v=1;v<arguments.length;v++){w=Object(arguments[v]);for(var h in w)o.call(w,h)&&(m[h]=w[h]);if(N){b=N(w);for(var d=0;d<b.length;d++)x.call(w,b[d])&&(m[b[d]]=w[b[d]])}}return m}},1289:function(oe,N,o){var x=typeof Map=="function"&&Map.prototype,g=Object.getOwnPropertyDescriptor&&x?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,A=x&&g&&typeof g.get=="function"?g.get:null,y=x&&Map.prototype.forEach,M=typeof Set=="function"&&Set.prototype,w=Object.getOwnPropertyDescriptor&&M?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,m=M&&w&&typeof w.get=="function"?w.get:null,b=M&&Set.prototype.forEach,v=typeof WeakMap=="function"&&WeakMap.prototype,h=v?WeakMap.prototype.has:null,d=typeof WeakSet=="function"&&WeakSet.prototype,_=d?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,S=p?WeakRef.prototype.deref:null,k=Boolean.prototype.valueOf,O=Object.prototype.toString,F=Function.prototype.toString,D=String.prototype.match,Z=String.prototype.slice,W=String.prototype.replace,U=String.prototype.toUpperCase,L=String.prototype.toLowerCase,V=RegExp.prototype.test,$=Array.prototype.concat,G=Array.prototype.join,z=Array.prototype.slice,K=Math.floor,re=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ne=Object.getOwnPropertySymbols,Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ue=typeof Symbol=="function"&&typeof Symbol.iterator=="object",he=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ue?"object":"symbol")?Symbol.toStringTag:null,Ee=Object.prototype.propertyIsEnumerable,ce=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ot){return ot.__proto__}:null);function ve(ot,Et){if(ot===Infinity||ot===-Infinity||ot!==ot||ot&&ot>-1e3&&ot<1e3||V.call(/e/,Et))return Et;var Ht=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ot=="number"){var Jt=ot<0?-K(-ot):K(ot);if(Jt!==ot){var Qt=String(Jt),an=Z.call(Et,Qt.length+1);return W.call(Qt,Ht,"$&_")+"."+W.call(W.call(an,/([0-9]{3})/g,"$&_"),/_$/,"")}}return W.call(Et,Ht,"$&_")}var fe=o(24654),we=fe.custom,me=et(we)?we:null;oe.exports=function ot(Et,Ht,Jt,Qt){var an=Ht||{};if(Ge(an,"quoteStyle")&&an.quoteStyle!=="single"&&an.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ge(an,"maxStringLength")&&(typeof an.maxStringLength=="number"?an.maxStringLength<0&&an.maxStringLength!==Infinity:an.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Un=Ge(an,"customInspect")?an.customInspect:!0;if(typeof Un!="boolean"&&Un!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ge(an,"indent")&&an.indent!==null&&an.indent!==" "&&!(parseInt(an.indent,10)===an.indent&&an.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ge(an,"numericSeparator")&&typeof an.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var qt=an.numericSeparator;if(typeof Et=="undefined")return"undefined";if(Et===null)return"null";if(typeof Et=="boolean")return Et?"true":"false";if(typeof Et=="string")return fn(Et,an);if(typeof Et=="number"){if(Et===0)return Infinity/Et>0?"0":"-0";var rn=String(Et);return qt?ve(Et,rn):rn}if(typeof Et=="bigint"){var cn=String(Et)+"n";return qt?ve(Et,cn):cn}var er=typeof an.depth=="undefined"?5:an.depth;if(typeof Jt=="undefined"&&(Jt=0),Jt>=er&&er>0&&typeof Et=="object")return Ie(Et)?"[Array]":"[Object]";var rr=rt(an,Jt);if(typeof Qt=="undefined")Qt=[];else if(gt(Qt,Et)>=0)return"[Circular]";function nt(zt,ln,An){if(ln&&(Qt=z.call(Qt),Qt.push(ln)),An){var En={depth:an.depth};return Ge(an,"quoteStyle")&&(En.quoteStyle=an.quoteStyle),ot(zt,En,Jt+1,Qt)}return ot(zt,an,Jt+1,Qt)}if(typeof Et=="function"&&!ke(Et)){var lr=Vt(Et),Hn=de(Et,nt);return"[Function"+(lr?": "+lr:" (anonymous)")+"]"+(Hn.length>0?" { "+G.call(Hn,", ")+" }":"")}if(et(Et)){var ut=ue?W.call(String(Et),/^(Symbol\(.*\))_[^)]*$/,"$1"):Q.call(Et);return typeof Et=="object"&&!ue?Yt(ut):ut}if(St(Et)){for(var bt="<"+L.call(String(Et.nodeName)),We=Et.attributes||[],be=0;be<We.length;be++)bt+=" "+We[be].name+"="+Pe(pe(We[be].value),"double",an);return bt+=">",Et.childNodes&&Et.childNodes.length&&(bt+="..."),bt+="</"+L.call(String(Et.nodeName))+">",bt}if(Ie(Et)){if(Et.length===0)return"[]";var Ae=de(Et,nt);return rr&&!ze(Ae)?"["+tt(Ae,rr)+"]":"[ "+G.call(Ae,", ")+" ]"}if(De(Et)){var Ue=de(Et,nt);return!("cause"in Error.prototype)&&"cause"in Et&&!Ee.call(Et,"cause")?"{ ["+String(Et)+"] "+G.call($.call("[cause]: "+nt(Et.cause),Ue),", ")+" }":Ue.length===0?"["+String(Et)+"]":"{ ["+String(Et)+"] "+G.call(Ue,", ")+" }"}if(typeof Et=="object"&&Un){if(me&&typeof Et[me]=="function"&&fe)return fe(Et,{depth:er-Jt});if(Un!=="symbol"&&typeof Et.inspect=="function")return Et.inspect()}if(it(Et)){var $e=[];return y&&y.call(Et,function(zt,ln){$e.push(nt(ln,Et,!0)+" => "+nt(zt,Et))}),Lt("Map",A.call(Et),$e,rr)}if(at(Et)){var kt=[];return b&&b.call(Et,function(zt){kt.push(nt(zt,Et))}),Lt("Set",m.call(Et),kt,rr)}if(Le(Et))return Rt("WeakMap");if(jt(Et))return Rt("WeakSet");if(ct(Et))return Rt("WeakRef");if(Qe(Et))return Yt(nt(Number(Et)));if(dt(Et))return Yt(nt(re.call(Et)));if(qe(Et))return Yt(k.call(Et));if(Fe(Et))return Yt(nt(String(Et)));if(!Je(Et)&&!ke(Et)){var lt=de(Et,nt),vt=ce?ce(Et)===Object.prototype:Et instanceof Object||Et.constructor===Object,Ct=Et instanceof Object?"":"null prototype",Bt=!vt&&he&&Object(Et)===Et&&he in Et?Z.call(wt(Et),8,-1):Ct?"Object":"",mt=vt||typeof Et.constructor!="function"?"":Et.constructor.name?Et.constructor.name+" ":"",Zt=mt+(Bt||Ct?"["+G.call($.call([],Bt||[],Ct||[]),": ")+"] ":"");return lt.length===0?Zt+"{}":rr?Zt+"{"+tt(lt,rr)+"}":Zt+"{ "+G.call(lt,", ")+" }"}return String(Et)};function Pe(ot,Et,Ht){var Jt=(Ht.quoteStyle||Et)==="double"?'"':"'";return Jt+ot+Jt}function pe(ot){return W.call(String(ot),/"/g,""")}function Ie(ot){return wt(ot)==="[object Array]"&&(!he||!(typeof ot=="object"&&he in ot))}function Je(ot){return wt(ot)==="[object Date]"&&(!he||!(typeof ot=="object"&&he in ot))}function ke(ot){return wt(ot)==="[object RegExp]"&&(!he||!(typeof ot=="object"&&he in ot))}function De(ot){return wt(ot)==="[object Error]"&&(!he||!(typeof ot=="object"&&he in ot))}function Fe(ot){return wt(ot)==="[object String]"&&(!he||!(typeof ot=="object"&&he in ot))}function Qe(ot){return wt(ot)==="[object Number]"&&(!he||!(typeof ot=="object"&&he in ot))}function qe(ot){return wt(ot)==="[object Boolean]"&&(!he||!(typeof ot=="object"&&he in ot))}function et(ot){if(ue)return ot&&typeof ot=="object"&&ot instanceof Symbol;if(typeof ot=="symbol")return!0;if(!ot||typeof ot!="object"||!Q)return!1;try{return Q.call(ot),!0}catch(Et){}return!1}function dt(ot){if(!ot||typeof ot!="object"||!re)return!1;try{return re.call(ot),!0}catch(Et){}return!1}var Ke=Object.prototype.hasOwnProperty||function(ot){return ot in this};function Ge(ot,Et){return Ke.call(ot,Et)}function wt(ot){return O.call(ot)}function Vt(ot){if(ot.name)return ot.name;var Et=D.call(F.call(ot),/^function\s*([\w$]+)/);return Et?Et[1]:null}function gt(ot,Et){if(ot.indexOf)return ot.indexOf(Et);for(var Ht=0,Jt=ot.length;Ht<Jt;Ht++)if(ot[Ht]===Et)return Ht;return-1}function it(ot){if(!A||!ot||typeof ot!="object")return!1;try{A.call(ot);try{m.call(ot)}catch(Et){return!0}return ot instanceof Map}catch(Et){}return!1}function Le(ot){if(!h||!ot||typeof ot!="object")return!1;try{h.call(ot,h);try{_.call(ot,_)}catch(Et){return!0}return ot instanceof WeakMap}catch(Et){}return!1}function ct(ot){if(!S||!ot||typeof ot!="object")return!1;try{return S.call(ot),!0}catch(Et){}return!1}function at(ot){if(!m||!ot||typeof ot!="object")return!1;try{m.call(ot);try{A.call(ot)}catch(Et){return!0}return ot instanceof Set}catch(Et){}return!1}function jt(ot){if(!_||!ot||typeof ot!="object")return!1;try{_.call(ot,_);try{h.call(ot,h)}catch(Et){return!0}return ot instanceof WeakSet}catch(Et){}return!1}function St(ot){return!ot||typeof ot!="object"?!1:typeof HTMLElement!="undefined"&&ot instanceof HTMLElement?!0:typeof ot.nodeName=="string"&&typeof ot.getAttribute=="function"}function fn(ot,Et){if(ot.length>Et.maxStringLength){var Ht=ot.length-Et.maxStringLength,Jt="... "+Ht+" more character"+(Ht>1?"s":"");return fn(Z.call(ot,0,Et.maxStringLength),Et)+Jt}var Qt=W.call(W.call(ot,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Xt);return Pe(Qt,"single",Et)}function Xt(ot){var Et=ot.charCodeAt(0),Ht={8:"b",9:"t",10:"n",12:"f",13:"r"}[Et];return Ht?"\\"+Ht:"\\x"+(Et<16?"0":"")+U.call(Et.toString(16))}function Yt(ot){return"Object("+ot+")"}function Rt(ot){return ot+" { ? }"}function Lt(ot,Et,Ht,Jt){var Qt=Jt?tt(Ht,Jt):G.call(Ht,", ");return ot+" ("+Et+") {"+Qt+"}"}function ze(ot){for(var Et=0;Et<ot.length;Et++)if(gt(ot[Et],`
|
||
`)>=0)return!1;return!0}function rt(ot,Et){var Ht;if(ot.indent===" ")Ht=" ";else if(typeof ot.indent=="number"&&ot.indent>0)Ht=G.call(Array(ot.indent+1)," ");else return null;return{base:Ht,prev:G.call(Array(Et+1),Ht)}}function tt(ot,Et){if(ot.length===0)return"";var Ht=`
|
||
`+Et.prev+Et.base;return Ht+G.call(ot,","+Ht)+`
|
||
`+Et.prev}function de(ot,Et){var Ht=Ie(ot),Jt=[];if(Ht){Jt.length=ot.length;for(var Qt=0;Qt<ot.length;Qt++)Jt[Qt]=Ge(ot,Qt)?Et(ot[Qt],ot):""}var an=typeof ne=="function"?ne(ot):[],Un;if(ue){Un={};for(var qt=0;qt<an.length;qt++)Un["$"+an[qt]]=an[qt]}for(var rn in ot)!Ge(ot,rn)||Ht&&String(Number(rn))===rn&&rn<ot.length||ue&&Un["$"+rn]instanceof Symbol||(V.call(/[^\w$]/,rn)?Jt.push(Et(rn,ot)+": "+Et(ot[rn],ot)):Jt.push(rn+": "+Et(ot[rn],ot)));if(typeof ne=="function")for(var cn=0;cn<an.length;cn++)Ee.call(ot,an[cn])&&Jt.push("["+Et(an[cn])+"]: "+Et(ot[an[cn]],ot));return Jt}},3305:function(oe,N){"use strict";function o(x,g){for(var A=Object.assign({},x),y=0;y<g.length;y+=1){var M=g[y];delete A[M]}return A}N.Z=o},5725:function(oe){oe.exports=_,oe.exports.parse=g,oe.exports.compile=A,oe.exports.tokensToFunction=y,oe.exports.tokensToRegExp=d;var N="/",o="./",x=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function g(p,S){for(var k=[],O=0,F=0,D="",Z=S&&S.delimiter||N,W=S&&S.delimiters||o,U=!1,L;(L=x.exec(p))!==null;){var V=L[0],$=L[1],G=L.index;if(D+=p.slice(F,G),F=G+V.length,$){D+=$[1],U=!0;continue}var z="",K=p[F],re=L[2],ne=L[3],Q=L[4],ue=L[5];if(!U&&D.length){var he=D.length-1;W.indexOf(D[he])>-1&&(z=D[he],D=D.slice(0,he))}D&&(k.push(D),D="",U=!1);var Ee=z!==""&&K!==void 0&&K!==z,ce=ue==="+"||ue==="*",ve=ue==="?"||ue==="*",fe=z||Z,we=ne||Q;k.push({name:re||O++,prefix:z,delimiter:fe,optional:ve,repeat:ce,partial:Ee,pattern:we?w(we):"[^"+M(fe)+"]+?"})}return(D||F<p.length)&&k.push(D+p.substr(F)),k}function A(p,S){return y(g(p,S))}function y(p){for(var S=new Array(p.length),k=0;k<p.length;k++)typeof p[k]=="object"&&(S[k]=new RegExp("^(?:"+p[k].pattern+")$"));return function(O,F){for(var D="",Z=F&&F.encode||encodeURIComponent,W=0;W<p.length;W++){var U=p[W];if(typeof U=="string"){D+=U;continue}var L=O?O[U.name]:void 0,V;if(Array.isArray(L)){if(!U.repeat)throw new TypeError('Expected "'+U.name+'" to not repeat, but got array');if(L.length===0){if(U.optional)continue;throw new TypeError('Expected "'+U.name+'" to not be empty')}for(var $=0;$<L.length;$++){if(V=Z(L[$],U),!S[W].test(V))throw new TypeError('Expected all "'+U.name+'" to match "'+U.pattern+'"');D+=($===0?U.prefix:U.delimiter)+V}continue}if(typeof L=="string"||typeof L=="number"||typeof L=="boolean"){if(V=Z(String(L),U),!S[W].test(V))throw new TypeError('Expected "'+U.name+'" to match "'+U.pattern+'", but got "'+V+'"');D+=U.prefix+V;continue}if(U.optional){U.partial&&(D+=U.prefix);continue}throw new TypeError('Expected "'+U.name+'" to be '+(U.repeat?"an array":"a string"))}return D}}function M(p){return p.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function w(p){return p.replace(/([=!:$/()])/g,"\\$1")}function m(p){return p&&p.sensitive?"":"i"}function b(p,S){if(!S)return p;var k=p.source.match(/\((?!\?)/g);if(k)for(var O=0;O<k.length;O++)S.push({name:O,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return p}function v(p,S,k){for(var O=[],F=0;F<p.length;F++)O.push(_(p[F],S,k).source);return new RegExp("(?:"+O.join("|")+")",m(k))}function h(p,S,k){return d(g(p,k),S,k)}function d(p,S,k){k=k||{};for(var O=k.strict,F=k.start!==!1,D=k.end!==!1,Z=M(k.delimiter||N),W=k.delimiters||o,U=[].concat(k.endsWith||[]).map(M).concat("$").join("|"),L=F?"^":"",V=p.length===0,$=0;$<p.length;$++){var G=p[$];if(typeof G=="string")L+=M(G),V=$===p.length-1&&W.indexOf(G[G.length-1])>-1;else{var z=G.repeat?"(?:"+G.pattern+")(?:"+M(G.delimiter)+"(?:"+G.pattern+"))*":G.pattern;S&&S.push(G),G.optional?G.partial?L+=M(G.prefix)+"("+z+")?":L+="(?:"+M(G.prefix)+"("+z+"))?":L+=M(G.prefix)+"("+z+")"}}return D?(O||(L+="(?:"+Z+")?"),L+=U==="$"?"$":"(?="+U+")"):(O||(L+="(?:"+Z+"(?="+U+"))?"),V||(L+="(?="+Z+"|"+U+")")),new RegExp(L,m(k))}function _(p,S,k){return p instanceof RegExp?b(p,S):Array.isArray(p)?v(p,S,k):h(p,S,k)}},82195:function(oe){var N=oe.exports={},o,x;function g(){throw new Error("setTimeout has not been defined")}function A(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?o=setTimeout:o=g}catch(S){o=g}try{typeof clearTimeout=="function"?x=clearTimeout:x=A}catch(S){x=A}})();function y(S){if(o===setTimeout)return setTimeout(S,0);if((o===g||!o)&&setTimeout)return o=setTimeout,setTimeout(S,0);try{return o(S,0)}catch(k){try{return o.call(null,S,0)}catch(O){return o.call(this,S,0)}}}function M(S){if(x===clearTimeout)return clearTimeout(S);if((x===A||!x)&&clearTimeout)return x=clearTimeout,clearTimeout(S);try{return x(S)}catch(k){try{return x.call(null,S)}catch(O){return x.call(this,S)}}}var w=[],m=!1,b,v=-1;function h(){!m||!b||(m=!1,b.length?w=b.concat(w):v=-1,w.length&&d())}function d(){if(!m){var S=y(h);m=!0;for(var k=w.length;k;){for(b=w,w=[];++v<k;)b&&b[v].run();v=-1,k=w.length}b=null,m=!1,M(S)}}N.nextTick=function(S){var k=new Array(arguments.length-1);if(arguments.length>1)for(var O=1;O<arguments.length;O++)k[O-1]=arguments[O];w.push(new _(S,k)),w.length===1&&!m&&y(d)};function _(S,k){this.fun=S,this.array=k}_.prototype.run=function(){this.fun.apply(null,this.array)},N.title="browser",N.browser=!0,N.env={},N.argv=[],N.version="",N.versions={};function p(){}N.on=p,N.addListener=p,N.once=p,N.off=p,N.removeListener=p,N.removeAllListeners=p,N.emit=p,N.prependListener=p,N.prependOnceListener=p,N.listeners=function(S){return[]},N.binding=function(S){throw new Error("process.binding is not supported")},N.cwd=function(){return"/"},N.chdir=function(S){throw new Error("process.chdir is not supported")},N.umask=function(){return 0}},53766:function(oe,N,o){"use strict";var x=o(99817);function g(){}function A(){}A.resetWarningCache=g,oe.exports=function(){function y(m,b,v,h,d,_){if(_!==x){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}y.isRequired=y;function M(){return y}var w={array:y,bigint:y,bool:y,func:y,number:y,object:y,string:y,symbol:y,any:y,arrayOf:M,element:y,elementType:y,instanceOf:M,node:y,objectOf:M,oneOf:M,oneOfType:M,shape:M,exact:M,checkPropTypes:A,resetWarningCache:g};return w.PropTypes=w,w}},44721:function(oe,N,o){if(!1)var x,g;else oe.exports=o(53766)()},99817:function(oe){"use strict";var N="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";oe.exports=N},81448:function(oe){"use strict";var N=String.prototype.replace,o=/%20/g,x={RFC1738:"RFC1738",RFC3986:"RFC3986"};oe.exports={default:x.RFC3986,formatters:{RFC1738:function(A){return N.call(A,o,"+")},RFC3986:function(A){return String(A)}},RFC1738:x.RFC1738,RFC3986:x.RFC3986}},92090:function(oe,N,o){"use strict";var x=o(46250),g=o(30627),A=o(81448);oe.exports={formats:A,parse:g,stringify:x}},30627:function(oe,N,o){"use strict";var x=o(81783),g=Object.prototype.hasOwnProperty,A=Array.isArray,y={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:x.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},M=function(S){return S.replace(/&#(\d+);/g,function(k,O){return String.fromCharCode(parseInt(O,10))})},w=function(S,k){return S&&typeof S=="string"&&k.comma&&S.indexOf(",")>-1?S.split(","):S},m="utf8=%26%2310003%3B",b="utf8=%E2%9C%93",v=function(S,k){var O={__proto__:null},F=k.ignoreQueryPrefix?S.replace(/^\?/,""):S,D=k.parameterLimit===Infinity?void 0:k.parameterLimit,Z=F.split(k.delimiter,D),W=-1,U,L=k.charset;if(k.charsetSentinel)for(U=0;U<Z.length;++U)Z[U].indexOf("utf8=")===0&&(Z[U]===b?L="utf-8":Z[U]===m&&(L="iso-8859-1"),W=U,U=Z.length);for(U=0;U<Z.length;++U)if(U!==W){var V=Z[U],$=V.indexOf("]="),G=$===-1?V.indexOf("="):$+1,z,K;G===-1?(z=k.decoder(V,y.decoder,L,"key"),K=k.strictNullHandling?null:""):(z=k.decoder(V.slice(0,G),y.decoder,L,"key"),K=x.maybeMap(w(V.slice(G+1),k),function(re){return k.decoder(re,y.decoder,L,"value")})),K&&k.interpretNumericEntities&&L==="iso-8859-1"&&(K=M(K)),V.indexOf("[]=")>-1&&(K=A(K)?[K]:K),g.call(O,z)?O[z]=x.combine(O[z],K):O[z]=K}return O},h=function(S,k,O,F){for(var D=F?k:w(k,O),Z=S.length-1;Z>=0;--Z){var W,U=S[Z];if(U==="[]"&&O.parseArrays)W=[].concat(D);else{W=O.plainObjects?Object.create(null):{};var L=U.charAt(0)==="["&&U.charAt(U.length-1)==="]"?U.slice(1,-1):U,V=parseInt(L,10);!O.parseArrays&&L===""?W={0:D}:!isNaN(V)&&U!==L&&String(V)===L&&V>=0&&O.parseArrays&&V<=O.arrayLimit?(W=[],W[V]=D):L!=="__proto__"&&(W[L]=D)}D=W}return D},d=function(S,k,O,F){if(!!S){var D=O.allowDots?S.replace(/\.([^.[]+)/g,"[$1]"):S,Z=/(\[[^[\]]*])/,W=/(\[[^[\]]*])/g,U=O.depth>0&&Z.exec(D),L=U?D.slice(0,U.index):D,V=[];if(L){if(!O.plainObjects&&g.call(Object.prototype,L)&&!O.allowPrototypes)return;V.push(L)}for(var $=0;O.depth>0&&(U=W.exec(D))!==null&&$<O.depth;){if($+=1,!O.plainObjects&&g.call(Object.prototype,U[1].slice(1,-1))&&!O.allowPrototypes)return;V.push(U[1])}return U&&V.push("["+D.slice(U.index)+"]"),h(V,k,O,F)}},_=function(S){if(!S)return y;if(S.decoder!==null&&S.decoder!==void 0&&typeof S.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof S.charset!="undefined"&&S.charset!=="utf-8"&&S.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var k=typeof S.charset=="undefined"?y.charset:S.charset;return{allowDots:typeof S.allowDots=="undefined"?y.allowDots:!!S.allowDots,allowPrototypes:typeof S.allowPrototypes=="boolean"?S.allowPrototypes:y.allowPrototypes,allowSparse:typeof S.allowSparse=="boolean"?S.allowSparse:y.allowSparse,arrayLimit:typeof S.arrayLimit=="number"?S.arrayLimit:y.arrayLimit,charset:k,charsetSentinel:typeof S.charsetSentinel=="boolean"?S.charsetSentinel:y.charsetSentinel,comma:typeof S.comma=="boolean"?S.comma:y.comma,decoder:typeof S.decoder=="function"?S.decoder:y.decoder,delimiter:typeof S.delimiter=="string"||x.isRegExp(S.delimiter)?S.delimiter:y.delimiter,depth:typeof S.depth=="number"||S.depth===!1?+S.depth:y.depth,ignoreQueryPrefix:S.ignoreQueryPrefix===!0,interpretNumericEntities:typeof S.interpretNumericEntities=="boolean"?S.interpretNumericEntities:y.interpretNumericEntities,parameterLimit:typeof S.parameterLimit=="number"?S.parameterLimit:y.parameterLimit,parseArrays:S.parseArrays!==!1,plainObjects:typeof S.plainObjects=="boolean"?S.plainObjects:y.plainObjects,strictNullHandling:typeof S.strictNullHandling=="boolean"?S.strictNullHandling:y.strictNullHandling}};oe.exports=function(p,S){var k=_(S);if(p===""||p===null||typeof p=="undefined")return k.plainObjects?Object.create(null):{};for(var O=typeof p=="string"?v(p,k):p,F=k.plainObjects?Object.create(null):{},D=Object.keys(O),Z=0;Z<D.length;++Z){var W=D[Z],U=d(W,O[W],k,typeof p=="string");F=x.merge(F,U,k)}return k.allowSparse===!0?F:x.compact(F)}},46250:function(oe,N,o){"use strict";var x=o(4892),g=o(81783),A=o(81448),y=Object.prototype.hasOwnProperty,M={brackets:function(F){return F+"[]"},comma:"comma",indices:function(F,D){return F+"["+D+"]"},repeat:function(F){return F}},w=Array.isArray,m=Array.prototype.push,b=function(F,D){m.apply(F,w(D)?D:[D])},v=Date.prototype.toISOString,h=A.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:g.encode,encodeValuesOnly:!1,format:h,formatter:A.formatters[h],indices:!1,serializeDate:function(F){return v.call(F)},skipNulls:!1,strictNullHandling:!1},_=function(F){return typeof F=="string"||typeof F=="number"||typeof F=="boolean"||typeof F=="symbol"||typeof F=="bigint"},p={},S=function O(F,D,Z,W,U,L,V,$,G,z,K,re,ne,Q,ue,he){for(var Ee=F,ce=he,ve=0,fe=!1;(ce=ce.get(p))!==void 0&&!fe;){var we=ce.get(F);if(ve+=1,typeof we!="undefined"){if(we===ve)throw new RangeError("Cyclic object value");fe=!0}typeof ce.get(p)=="undefined"&&(ve=0)}if(typeof $=="function"?Ee=$(D,Ee):Ee instanceof Date?Ee=K(Ee):Z==="comma"&&w(Ee)&&(Ee=g.maybeMap(Ee,function(et){return et instanceof Date?K(et):et})),Ee===null){if(U)return V&&!Q?V(D,d.encoder,ue,"key",re):D;Ee=""}if(_(Ee)||g.isBuffer(Ee)){if(V){var me=Q?D:V(D,d.encoder,ue,"key",re);return[ne(me)+"="+ne(V(Ee,d.encoder,ue,"value",re))]}return[ne(D)+"="+ne(String(Ee))]}var Pe=[];if(typeof Ee=="undefined")return Pe;var pe;if(Z==="comma"&&w(Ee))Q&&V&&(Ee=g.maybeMap(Ee,V)),pe=[{value:Ee.length>0?Ee.join(",")||null:void 0}];else if(w($))pe=$;else{var Ie=Object.keys(Ee);pe=G?Ie.sort(G):Ie}for(var Je=W&&w(Ee)&&Ee.length===1?D+"[]":D,ke=0;ke<pe.length;++ke){var De=pe[ke],Fe=typeof De=="object"&&typeof De.value!="undefined"?De.value:Ee[De];if(!(L&&Fe===null)){var Qe=w(Ee)?typeof Z=="function"?Z(Je,De):Je:Je+(z?"."+De:"["+De+"]");he.set(F,ve);var qe=x();qe.set(p,he),b(Pe,O(Fe,Qe,Z,W,U,L,Z==="comma"&&Q&&w(Ee)?null:V,$,G,z,K,re,ne,Q,ue,qe))}}return Pe},k=function(F){if(!F)return d;if(F.encoder!==null&&typeof F.encoder!="undefined"&&typeof F.encoder!="function")throw new TypeError("Encoder has to be a function.");var D=F.charset||d.charset;if(typeof F.charset!="undefined"&&F.charset!=="utf-8"&&F.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var Z=A.default;if(typeof F.format!="undefined"){if(!y.call(A.formatters,F.format))throw new TypeError("Unknown format option provided.");Z=F.format}var W=A.formatters[Z],U=d.filter;return(typeof F.filter=="function"||w(F.filter))&&(U=F.filter),{addQueryPrefix:typeof F.addQueryPrefix=="boolean"?F.addQueryPrefix:d.addQueryPrefix,allowDots:typeof F.allowDots=="undefined"?d.allowDots:!!F.allowDots,charset:D,charsetSentinel:typeof F.charsetSentinel=="boolean"?F.charsetSentinel:d.charsetSentinel,delimiter:typeof F.delimiter=="undefined"?d.delimiter:F.delimiter,encode:typeof F.encode=="boolean"?F.encode:d.encode,encoder:typeof F.encoder=="function"?F.encoder:d.encoder,encodeValuesOnly:typeof F.encodeValuesOnly=="boolean"?F.encodeValuesOnly:d.encodeValuesOnly,filter:U,format:Z,formatter:W,serializeDate:typeof F.serializeDate=="function"?F.serializeDate:d.serializeDate,skipNulls:typeof F.skipNulls=="boolean"?F.skipNulls:d.skipNulls,sort:typeof F.sort=="function"?F.sort:null,strictNullHandling:typeof F.strictNullHandling=="boolean"?F.strictNullHandling:d.strictNullHandling}};oe.exports=function(O,F){var D=O,Z=k(F),W,U;typeof Z.filter=="function"?(U=Z.filter,D=U("",D)):w(Z.filter)&&(U=Z.filter,W=U);var L=[];if(typeof D!="object"||D===null)return"";var V;F&&F.arrayFormat in M?V=F.arrayFormat:F&&"indices"in F?V=F.indices?"indices":"repeat":V="indices";var $=M[V];if(F&&"commaRoundTrip"in F&&typeof F.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var G=$==="comma"&&F&&F.commaRoundTrip;W||(W=Object.keys(D)),Z.sort&&W.sort(Z.sort);for(var z=x(),K=0;K<W.length;++K){var re=W[K];Z.skipNulls&&D[re]===null||b(L,S(D[re],re,$,G,Z.strictNullHandling,Z.skipNulls,Z.encode?Z.encoder:null,Z.filter,Z.sort,Z.allowDots,Z.serializeDate,Z.format,Z.formatter,Z.encodeValuesOnly,Z.charset,z))}var ne=L.join(Z.delimiter),Q=Z.addQueryPrefix===!0?"?":"";return Z.charsetSentinel&&(Z.charset==="iso-8859-1"?Q+="utf8=%26%2310003%3B&":Q+="utf8=%E2%9C%93&"),ne.length>0?Q+ne:""}},81783:function(oe,N,o){"use strict";var x=o(81448),g=Object.prototype.hasOwnProperty,A=Array.isArray,y=function(){for(var O=[],F=0;F<256;++F)O.push("%"+((F<16?"0":"")+F.toString(16)).toUpperCase());return O}(),M=function(F){for(;F.length>1;){var D=F.pop(),Z=D.obj[D.prop];if(A(Z)){for(var W=[],U=0;U<Z.length;++U)typeof Z[U]!="undefined"&&W.push(Z[U]);D.obj[D.prop]=W}}},w=function(F,D){for(var Z=D&&D.plainObjects?Object.create(null):{},W=0;W<F.length;++W)typeof F[W]!="undefined"&&(Z[W]=F[W]);return Z},m=function O(F,D,Z){if(!D)return F;if(typeof D!="object"){if(A(F))F.push(D);else if(F&&typeof F=="object")(Z&&(Z.plainObjects||Z.allowPrototypes)||!g.call(Object.prototype,D))&&(F[D]=!0);else return[F,D];return F}if(!F||typeof F!="object")return[F].concat(D);var W=F;return A(F)&&!A(D)&&(W=w(F,Z)),A(F)&&A(D)?(D.forEach(function(U,L){if(g.call(F,L)){var V=F[L];V&&typeof V=="object"&&U&&typeof U=="object"?F[L]=O(V,U,Z):F.push(U)}else F[L]=U}),F):Object.keys(D).reduce(function(U,L){var V=D[L];return g.call(U,L)?U[L]=O(U[L],V,Z):U[L]=V,U},W)},b=function(F,D){return Object.keys(D).reduce(function(Z,W){return Z[W]=D[W],Z},F)},v=function(F,D,Z){var W=F.replace(/\+/g," ");if(Z==="iso-8859-1")return W.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(W)}catch(U){return W}},h=function(F,D,Z,W,U){if(F.length===0)return F;var L=F;if(typeof F=="symbol"?L=Symbol.prototype.toString.call(F):typeof F!="string"&&(L=String(F)),Z==="iso-8859-1")return escape(L).replace(/%u[0-9a-f]{4}/gi,function(z){return"%26%23"+parseInt(z.slice(2),16)+"%3B"});for(var V="",$=0;$<L.length;++$){var G=L.charCodeAt($);if(G===45||G===46||G===95||G===126||G>=48&&G<=57||G>=65&&G<=90||G>=97&&G<=122||U===x.RFC1738&&(G===40||G===41)){V+=L.charAt($);continue}if(G<128){V=V+y[G];continue}if(G<2048){V=V+(y[192|G>>6]+y[128|G&63]);continue}if(G<55296||G>=57344){V=V+(y[224|G>>12]+y[128|G>>6&63]+y[128|G&63]);continue}$+=1,G=65536+((G&1023)<<10|L.charCodeAt($)&1023),V+=y[240|G>>18]+y[128|G>>12&63]+y[128|G>>6&63]+y[128|G&63]}return V},d=function(F){for(var D=[{obj:{o:F},prop:"o"}],Z=[],W=0;W<D.length;++W)for(var U=D[W],L=U.obj[U.prop],V=Object.keys(L),$=0;$<V.length;++$){var G=V[$],z=L[G];typeof z=="object"&&z!==null&&Z.indexOf(z)===-1&&(D.push({obj:L,prop:G}),Z.push(z))}return M(D),F},_=function(F){return Object.prototype.toString.call(F)==="[object RegExp]"},p=function(F){return!F||typeof F!="object"?!1:!!(F.constructor&&F.constructor.isBuffer&&F.constructor.isBuffer(F))},S=function(F,D){return[].concat(F,D)},k=function(F,D){if(A(F)){for(var Z=[],W=0;W<F.length;W+=1)Z.push(D(F[W]));return Z}return D(F)};oe.exports={arrayToObject:w,assign:b,combine:S,compact:d,decode:v,encode:h,isBuffer:p,isRegExp:_,maybeMap:k,merge:m}},36855:function(oe,N,o){"use strict";var x=o(66933).default,g=o(37306).default,A=o(30352).default,y=o(62253),M=o(28035),w=o(81325),m=o(27982),b=function(U){return U==null};function v(W){switch(W.arrayFormat){case"index":return function(U){return function(L,V){var $=L.length;return V===void 0||W.skipNull&&V===null||W.skipEmptyString&&V===""?L:V===null?[].concat(A(L),[[_(U,W),"[",$,"]"].join("")]):[].concat(A(L),[[_(U,W),"[",_($,W),"]=",_(V,W)].join("")])}};case"bracket":return function(U){return function(L,V){return V===void 0||W.skipNull&&V===null||W.skipEmptyString&&V===""?L:V===null?[].concat(A(L),[[_(U,W),"[]"].join("")]):[].concat(A(L),[[_(U,W),"[]=",_(V,W)].join("")])}};case"comma":case"separator":return function(U){return function(L,V){return V==null||V.length===0?L:L.length===0?[[_(U,W),"=",_(V,W)].join("")]:[[L,_(V,W)].join(W.arrayFormatSeparator)]}};default:return function(U){return function(L,V){return V===void 0||W.skipNull&&V===null||W.skipEmptyString&&V===""?L:V===null?[].concat(A(L),[_(U,W)]):[].concat(A(L),[[_(U,W),"=",_(V,W)].join("")])}}}}function h(W){var U;switch(W.arrayFormat){case"index":return function(L,V,$){if(U=/\[(\d*)\]$/.exec(L),L=L.replace(/\[\d*\]$/,""),!U){$[L]=V;return}$[L]===void 0&&($[L]={}),$[L][U[1]]=V};case"bracket":return function(L,V,$){if(U=/(\[\])$/.exec(L),L=L.replace(/\[\]$/,""),!U){$[L]=V;return}if($[L]===void 0){$[L]=[V];return}$[L]=[].concat($[L],V)};case"comma":case"separator":return function(L,V,$){var G=typeof V=="string"&&V.includes(W.arrayFormatSeparator),z=typeof V=="string"&&!G&&p(V,W).includes(W.arrayFormatSeparator);V=z?p(V,W):V;var K=G||z?V.split(W.arrayFormatSeparator).map(function(re){return p(re,W)}):V===null?V:p(V,W);$[L]=K};default:return function(L,V,$){if($[L]===void 0){$[L]=V;return}$[L]=[].concat($[L],V)}}}function d(W){if(typeof W!="string"||W.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function _(W,U){return U.encode?U.strict?y(W):encodeURIComponent(W):W}function p(W,U){return U.decode?M(W):W}function S(W){return Array.isArray(W)?W.sort():typeof W=="object"?S(Object.keys(W)).sort(function(U,L){return Number(U)-Number(L)}).map(function(U){return W[U]}):W}function k(W){var U=W.indexOf("#");return U!==-1&&(W=W.slice(0,U)),W}function O(W){var U="",L=W.indexOf("#");return L!==-1&&(U=W.slice(L)),U}function F(W){W=k(W);var U=W.indexOf("?");return U===-1?"":W.slice(U+1)}function D(W,U){return U.parseNumbers&&!Number.isNaN(Number(W))&&typeof W=="string"&&W.trim()!==""?W=Number(W):U.parseBooleans&&W!==null&&(W.toLowerCase()==="true"||W.toLowerCase()==="false")&&(W=W.toLowerCase()==="true"),W}function Z(W,U){U=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},U),d(U.arrayFormatSeparator);var L=h(U),V=Object.create(null);if(typeof W!="string"||(W=W.trim().replace(/^[?#&]/,""),!W))return V;var $=g(W.split("&")),G;try{for($.s();!(G=$.n()).done;){var z=G.value;if(z!==""){var K=w(U.decode?z.replace(/\+/g," "):z,"="),re=x(K,2),ne=re[0],Q=re[1];Q=Q===void 0?null:["comma","separator"].includes(U.arrayFormat)?Q:p(Q,U),L(p(ne,U),Q,V)}}}catch(me){$.e(me)}finally{$.f()}for(var ue=0,he=Object.keys(V);ue<he.length;ue++){var Ee=he[ue],ce=V[Ee];if(typeof ce=="object"&&ce!==null)for(var ve=0,fe=Object.keys(ce);ve<fe.length;ve++){var we=fe[ve];ce[we]=D(ce[we],U)}else V[Ee]=D(ce,U)}return U.sort===!1?V:(U.sort===!0?Object.keys(V).sort():Object.keys(V).sort(U.sort)).reduce(function(me,Pe){var pe=V[Pe];return Boolean(pe)&&typeof pe=="object"&&!Array.isArray(pe)?me[Pe]=S(pe):me[Pe]=pe,me},Object.create(null))}N.extract=F,N.parse=Z,N.stringify=function(W,U){if(!W)return"";U=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},U),d(U.arrayFormatSeparator);for(var L=function(Q){return U.skipNull&&b(W[Q])||U.skipEmptyString&&W[Q]===""},V=v(U),$={},G=0,z=Object.keys(W);G<z.length;G++){var K=z[G];L(K)||($[K]=W[K])}var re=Object.keys($);return U.sort!==!1&&re.sort(U.sort),re.map(function(ne){var Q=W[ne];return Q===void 0?"":Q===null?_(ne,U):Array.isArray(Q)?Q.reduce(V(ne),[]).join("&"):_(ne,U)+"="+_(Q,U)}).filter(function(ne){return ne.length>0}).join("&")},N.parseUrl=function(W,U){U=Object.assign({decode:!0},U);var L=w(W,"#"),V=x(L,2),$=V[0],G=V[1];return Object.assign({url:$.split("?")[0]||"",query:Z(F(W),U)},U&&U.parseFragmentIdentifier&&G?{fragmentIdentifier:p(G,U)}:{})},N.stringifyUrl=function(W,U){U=Object.assign({encode:!0,strict:!0},U);var L=k(W.url).split("?")[0]||"",V=N.extract(W.url),$=N.parse(V,{sort:!1}),G=Object.assign($,W.query),z=N.stringify(G,U);z&&(z="?".concat(z));var K=O(W.url);return W.fragmentIdentifier&&(K="#".concat(_(W.fragmentIdentifier,U))),"".concat(L).concat(z).concat(K)},N.pick=function(W,U,L){L=Object.assign({parseFragmentIdentifier:!0},L);var V=N.parseUrl(W,L),$=V.url,G=V.query,z=V.fragmentIdentifier;return N.stringifyUrl({url:$,query:m(G,U),fragmentIdentifier:z},L)},N.exclude=function(W,U,L){var V=Array.isArray(U)?function($){return!U.includes($)}:function($,G){return!U($,G)};return N.pick(W,V,L)}},96676:function(oe,N,o){"use strict";o.d(N,{Z:function(){return W}});var x=o(22122),g=o(28991),A=o(96156),y=o(28481),M=o(81253),w=o(35510),m=o.n(w),b=o(67294);function v(U){var L=b.useRef();L.current=U;var V=b.useCallback(function(){for(var $,G=arguments.length,z=new Array(G),K=0;K<G;K++)z[K]=arguments[K];return($=L.current)===null||$===void 0?void 0:$.call.apply($,[L].concat(z))},[]);return V}function h(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var d=h()?b.useLayoutEffect:b.useEffect,_=function(L,V){var $=b.useRef(!0);d(function(){return L($.current)},V),d(function(){return $.current=!1,function(){$.current=!0}},[])},p=function(L,V){_(function($){if(!$)return L()},V)},S=null;function k(U){var L=b.useRef(!1),V=b.useState(U),$=(0,y.Z)(V,2),G=$[0],z=$[1];b.useEffect(function(){return L.current=!1,function(){L.current=!0}},[]);function K(re,ne){ne&&L.current||z(re)}return[G,K]}function O(U){return U!==void 0}function F(U,L){var V=L||{},$=V.defaultValue,G=V.value,z=V.onChange,K=V.postState,re=k(function(){return O(G)?G:O($)?typeof $=="function"?$():$:typeof U=="function"?U():U}),ne=(0,y.Z)(re,2),Q=ne[0],ue=ne[1],he=G!==void 0?G:Q,Ee=K?K(he):he,ce=v(z),ve=k([he]),fe=(0,y.Z)(ve,2),we=fe[0],me=fe[1];p(function(){var pe=we[0];Q!==pe&&ce(Q,pe)},[we]),p(function(){O(G)||ue(G)},[G]);var Pe=v(function(pe,Ie){ue(pe,Ie),me([he],Ie)});return[Ee,Pe]}var D=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],Z=(0,b.forwardRef)(function(U,L){var V,$=U.prefixCls,G=$===void 0?"rc-checkbox":$,z=U.className,K=U.style,re=U.checked,ne=U.disabled,Q=U.defaultChecked,ue=Q===void 0?!1:Q,he=U.type,Ee=he===void 0?"checkbox":he,ce=U.onChange,ve=(0,M.Z)(U,D),fe=(0,b.useRef)(null),we=F(ue,{value:re}),me=(0,y.Z)(we,2),Pe=me[0],pe=me[1];(0,b.useImperativeHandle)(L,function(){return{focus:function(){var De;(De=fe.current)===null||De===void 0||De.focus()},blur:function(){var De;(De=fe.current)===null||De===void 0||De.blur()},input:fe.current}});var Ie=m()(G,z,(V={},(0,A.Z)(V,"".concat(G,"-checked"),Pe),(0,A.Z)(V,"".concat(G,"-disabled"),ne),V)),Je=function(De){ne||("checked"in U||pe(De.target.checked),ce==null||ce({target:(0,g.Z)((0,g.Z)({},U),{},{type:Ee,checked:De.target.checked}),stopPropagation:function(){De.stopPropagation()},preventDefault:function(){De.preventDefault()},nativeEvent:De.nativeEvent}))};return b.createElement("span",{className:Ie,style:K},b.createElement("input",(0,x.Z)({},ve,{className:"".concat(G,"-input"),ref:fe,onChange:Je,disabled:ne,checked:!!Pe,type:Ee})),b.createElement("span",{className:"".concat(G,"-inner")}))}),W=Z},95277:function(oe,N,o){"use strict";o.d(N,{Z:function(){return we}});var x=o(22122),g=o(28481),A=o(67294),y=o.t(A,2),M=o(57196),w=o(28991),m=o(35510),b=o.n(m),v={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Pe){var pe=Pe.keyCode;if(Pe.altKey&&!Pe.ctrlKey||Pe.metaKey||pe>=v.F1&&pe<=v.F12)return!1;switch(pe){case v.ALT:case v.CAPS_LOCK:case v.CONTEXT_MENU:case v.CTRL:case v.DOWN:case v.END:case v.ESC:case v.HOME:case v.INSERT:case v.LEFT:case v.MAC_FF_META:case v.META:case v.NUMLOCK:case v.NUM_CENTER:case v.PAGE_DOWN:case v.PAGE_UP:case v.PAUSE:case v.PRINT_SCREEN:case v.RIGHT:case v.SHIFT:case v.UP:case v.WIN_KEY:case v.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Pe){if(Pe>=v.ZERO&&Pe<=v.NINE||Pe>=v.NUM_ZERO&&Pe<=v.NUM_MULTIPLY||Pe>=v.A&&Pe<=v.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Pe===0)return!0;switch(Pe){case v.SPACE:case v.QUESTION_MARK:case v.NUM_PLUS:case v.NUM_MINUS:case v.NUM_PERIOD:case v.NUM_DIVISION:case v.SEMICOLON:case v.DASH:case v.EQUALS:case v.COMMA:case v.PERIOD:case v.SLASH:case v.APOSTROPHE:case v.SINGLE_QUOTE:case v.OPEN_SQUARE_BRACKET:case v.BACKSLASH:case v.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},h=v;function d(){var me=(0,w.Z)({},y);return me.useId}var _=0;function p(){}function S(me){var Pe=A.useState("ssr-id"),pe=(0,g.Z)(Pe,2),Ie=pe[0],Je=pe[1],ke=d(),De=ke==null?void 0:ke();return A.useEffect(function(){if(!ke){var Fe=_;_+=1,Je("rc_unique_".concat(Fe))}},[]),me||De||Ie}function k(me,Pe){if(!me)return!1;if(me.contains)return me.contains(Pe);for(var pe=Pe;pe;){if(pe===me)return!0;pe=pe.parentNode}return!1}var O=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
||
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
||
charSet checked classID className colSpan cols content contentEditable contextMenu
|
||
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
||
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
||
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
||
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
||
mediaGroup method min minLength multiple muted name noValidate nonce open
|
||
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
||
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
||
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
||
summary tabIndex target title type useMap value width wmode wrap`,F=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
||
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
||
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
||
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
||
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
||
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
||
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,D="".concat(O," ").concat(F).split(/[\s\n]+/),Z="aria-",W="data-";function U(me,Pe){return me.indexOf(Pe)===0}function L(me){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pe;Pe===!1?pe={aria:!0,data:!0,attr:!0}:Pe===!0?pe={aria:!0}:pe=(0,w.Z)({},Pe);var Ie={};return Object.keys(me).forEach(function(Je){(pe.aria&&(Je==="role"||U(Je,Z))||pe.data&&U(Je,W)||pe.attr&&D.includes(Je))&&(Ie[Je]=me[Je])}),Ie}var V=o(90190);function $(me){var Pe=me.prefixCls,pe=me.style,Ie=me.visible,Je=me.maskProps,ke=me.motionName;return A.createElement(V.ZP,{key:"mask",visible:Ie,motionName:ke,leavedClassName:"".concat(Pe,"-mask-hidden")},function(De,Fe){var Qe=De.className,qe=De.style;return A.createElement("div",(0,x.Z)({ref:Fe,style:(0,w.Z)((0,w.Z)({},qe),pe),className:b()("".concat(Pe,"-mask"),Qe)},Je))})}function G(me,Pe,pe){var Ie=Pe;return!Ie&&pe&&(Ie="".concat(me,"-").concat(pe)),Ie}function z(me,Pe){var pe=me["page".concat(Pe?"Y":"X","Offset")],Ie="scroll".concat(Pe?"Top":"Left");if(typeof pe!="number"){var Je=me.document;pe=Je.documentElement[Ie],typeof pe!="number"&&(pe=Je.body[Ie])}return pe}function K(me){var Pe=me.getBoundingClientRect(),pe={left:Pe.left,top:Pe.top},Ie=me.ownerDocument,Je=Ie.defaultView||Ie.parentWindow;return pe.left+=z(Je),pe.top+=z(Je,!0),pe}var re=A.memo(function(me){var Pe=me.children;return Pe},function(me,Pe){var pe=Pe.shouldUpdate;return!pe}),ne={width:0,height:0,overflow:"hidden",outline:"none"},Q=A.forwardRef(function(me,Pe){var pe=me.prefixCls,Ie=me.className,Je=me.style,ke=me.title,De=me.ariaId,Fe=me.footer,Qe=me.closable,qe=me.closeIcon,et=me.onClose,dt=me.children,Ke=me.bodyStyle,Ge=me.bodyProps,wt=me.modalRender,Vt=me.onMouseDown,gt=me.onMouseUp,it=me.holderRef,Le=me.visible,ct=me.forceRender,at=me.width,jt=me.height,St=(0,A.useRef)(),fn=(0,A.useRef)();A.useImperativeHandle(Pe,function(){return{focus:function(){var tt;(tt=St.current)===null||tt===void 0||tt.focus()},changeActive:function(tt){var de=document,ot=de.activeElement;tt&&ot===fn.current?St.current.focus():!tt&&ot===St.current&&fn.current.focus()}}});var Xt={};at!==void 0&&(Xt.width=at),jt!==void 0&&(Xt.height=jt);var Yt;Fe&&(Yt=A.createElement("div",{className:"".concat(pe,"-footer")},Fe));var Rt;ke&&(Rt=A.createElement("div",{className:"".concat(pe,"-header")},A.createElement("div",{className:"".concat(pe,"-title"),id:De},ke)));var Lt;Qe&&(Lt=A.createElement("button",{type:"button",onClick:et,"aria-label":"Close",className:"".concat(pe,"-close")},qe||A.createElement("span",{className:"".concat(pe,"-close-x")})));var ze=A.createElement("div",{className:"".concat(pe,"-content")},Lt,Rt,A.createElement("div",(0,x.Z)({className:"".concat(pe,"-body"),style:Ke},Ge),dt),Yt);return A.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":ke?De:null,"aria-modal":"true",ref:it,style:(0,w.Z)((0,w.Z)({},Je),Xt),className:b()(pe,Ie),onMouseDown:Vt,onMouseUp:gt},A.createElement("div",{tabIndex:0,ref:St,style:ne,"aria-hidden":"true"}),A.createElement(re,{shouldUpdate:Le||ct},wt?wt(ze):ze),A.createElement("div",{tabIndex:0,ref:fn,style:ne,"aria-hidden":"true"}))}),ue=Q,he=A.forwardRef(function(me,Pe){var pe=me.prefixCls,Ie=me.title,Je=me.style,ke=me.className,De=me.visible,Fe=me.forceRender,Qe=me.destroyOnClose,qe=me.motionName,et=me.ariaId,dt=me.onVisibleChanged,Ke=me.mousePosition,Ge=(0,A.useRef)(),wt=A.useState(),Vt=(0,g.Z)(wt,2),gt=Vt[0],it=Vt[1],Le={};gt&&(Le.transformOrigin=gt);function ct(){var at=K(Ge.current);it(Ke?"".concat(Ke.x-at.left,"px ").concat(Ke.y-at.top,"px"):"")}return A.createElement(V.ZP,{visible:De,onVisibleChanged:dt,onAppearPrepare:ct,onEnterPrepare:ct,forceRender:Fe,motionName:qe,removeOnLeave:Qe,ref:Ge},function(at,jt){var St=at.className,fn=at.style;return A.createElement(ue,(0,x.Z)({},me,{ref:Pe,title:Ie,ariaId:et,prefixCls:pe,holderRef:jt,style:(0,w.Z)((0,w.Z)((0,w.Z)({},fn),Je),Le),className:b()(ke,St)}))})});he.displayName="Content";var Ee=he;function ce(me){var Pe=me.prefixCls,pe=Pe===void 0?"rc-dialog":Pe,Ie=me.zIndex,Je=me.visible,ke=Je===void 0?!1:Je,De=me.keyboard,Fe=De===void 0?!0:De,Qe=me.focusTriggerAfterClose,qe=Qe===void 0?!0:Qe,et=me.wrapStyle,dt=me.wrapClassName,Ke=me.wrapProps,Ge=me.onClose,wt=me.afterClose,Vt=me.transitionName,gt=me.animation,it=me.closable,Le=it===void 0?!0:it,ct=me.mask,at=ct===void 0?!0:ct,jt=me.maskTransitionName,St=me.maskAnimation,fn=me.maskClosable,Xt=fn===void 0?!0:fn,Yt=me.maskStyle,Rt=me.maskProps,Lt=me.rootClassName,ze=(0,A.useRef)(),rt=(0,A.useRef)(),tt=(0,A.useRef)(),de=A.useState(ke),ot=(0,g.Z)(de,2),Et=ot[0],Ht=ot[1],Jt=S();function Qt(){k(rt.current,document.activeElement)||(ze.current=document.activeElement)}function an(){if(!k(rt.current,document.activeElement)){var Hn;(Hn=tt.current)===null||Hn===void 0||Hn.focus()}}function Un(Hn){if(Hn)an();else{if(Ht(!1),at&&ze.current&&qe){try{ze.current.focus({preventScroll:!0})}catch(ut){}ze.current=null}Et&&(wt==null||wt())}}function qt(Hn){Ge==null||Ge(Hn)}var rn=(0,A.useRef)(!1),cn=(0,A.useRef)(),er=function(){clearTimeout(cn.current),rn.current=!0},rr=function(){cn.current=setTimeout(function(){rn.current=!1})},nt=null;Xt&&(nt=function(ut){rn.current?rn.current=!1:rt.current===ut.target&&qt(ut)});function lr(Hn){if(Fe&&Hn.keyCode===h.ESC){Hn.stopPropagation(),qt(Hn);return}ke&&Hn.keyCode===h.TAB&&tt.current.changeActive(!Hn.shiftKey)}return(0,A.useEffect)(function(){ke&&(Ht(!0),Qt())},[ke]),(0,A.useEffect)(function(){return function(){clearTimeout(cn.current)}},[]),A.createElement("div",(0,x.Z)({className:b()("".concat(pe,"-root"),Lt)},L(me,{data:!0})),A.createElement($,{prefixCls:pe,visible:at&&ke,motionName:G(pe,jt,St),style:(0,w.Z)({zIndex:Ie},Yt),maskProps:Rt}),A.createElement("div",(0,x.Z)({tabIndex:-1,onKeyDown:lr,className:b()("".concat(pe,"-wrap"),dt),ref:rt,onClick:nt,style:(0,w.Z)((0,w.Z)({zIndex:Ie},et),{},{display:Et?null:"none"})},Ke),A.createElement(Ee,(0,x.Z)({},me,{onMouseDown:er,onMouseUp:rr,ref:tt,closable:Le,ariaId:Jt,prefixCls:pe,visible:ke&&Et,onClose:qt,onVisibleChanged:Un,motionName:G(pe,Vt,gt)}))))}var ve=function(Pe){var pe=Pe.visible,Ie=Pe.getContainer,Je=Pe.forceRender,ke=Pe.destroyOnClose,De=ke===void 0?!1:ke,Fe=Pe.afterClose,Qe=A.useState(pe),qe=(0,g.Z)(Qe,2),et=qe[0],dt=qe[1];return A.useEffect(function(){pe&&dt(!0)},[pe]),!Je&&De&&!et?null:A.createElement(M.Z,{open:pe||Je||et,autoDestroy:!1,getContainer:Ie,autoLock:pe||et},A.createElement(ce,(0,x.Z)({},Pe,{destroyOnClose:De,afterClose:function(){Fe==null||Fe(),dt(!1)}})))};ve.displayName="Dialog";var fe=ve,we=fe},49480:function(oe,N,o){"use strict";o.d(N,{iz:function(){return cs},ck:function(){return wn},BW:function(){return fs},sN:function(){return wn},GP:function(){return fs},Wd:function(){return Xa},ZP:function(){return vl},Xl:function(){return Qe}});var x=o(22122),g=o(96156),A=o(28991),y=o(85061),M=o(28481),w=o(81253),m=o(35510),b=o.n(m),v=o(43421),h=o(67294);function d(Ar){var Rn=h.useRef();Rn.current=Ar;var Sr=h.useCallback(function(){for(var nn,sn=arguments.length,Ot=new Array(sn),gr=0;gr<sn;gr++)Ot[gr]=arguments[gr];return(nn=Rn.current)===null||nn===void 0?void 0:nn.call.apply(nn,[Rn].concat(Ot))},[]);return Sr}function _(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var p=_()?h.useLayoutEffect:h.useEffect,S=function(Rn,Sr){var nn=h.useRef(!0);p(function(){return Rn(nn.current)},Sr),p(function(){return nn.current=!1,function(){nn.current=!0}},[])},k=function(Rn,Sr){S(function(nn){if(!nn)return Rn()},Sr)},O=null;function F(Ar){var Rn=h.useRef(!1),Sr=h.useState(Ar),nn=(0,M.Z)(Sr,2),sn=nn[0],Ot=nn[1];h.useEffect(function(){return Rn.current=!1,function(){Rn.current=!0}},[]);function gr(Gr,Ln){Ln&&Rn.current||Ot(Gr)}return[sn,gr]}function D(Ar){return Ar!==void 0}function Z(Ar,Rn){var Sr=Rn||{},nn=Sr.defaultValue,sn=Sr.value,Ot=Sr.onChange,gr=Sr.postState,Gr=F(function(){return D(sn)?sn:D(nn)?typeof nn=="function"?nn():nn:typeof Ar=="function"?Ar():Ar}),Ln=(0,M.Z)(Gr,2),Tr=Ln[0],Dn=Ln[1],Pr=sn!==void 0?sn:Tr,fa=gr?gr(Pr):Pr,ka=d(Ot),Li=F([Pr]),zi=(0,M.Z)(Li,2),Mo=zi[0],Za=zi[1];k(function(){var Mi=Mo[0];Tr!==Mi&&ka(Tr,Mi)},[Mo]),k(function(){D(sn)||Dn(sn)},[sn]);var ao=d(function(Mi,Eo){Dn(Mi,Eo),Za([Pr],Eo)});return[fa,ao]}var W={},U=[],L=function(Rn){U.push(Rn)};function V(Ar,Rn){if(!1)var Sr}function $(Ar,Rn){if(!1)var Sr}function G(){W={}}function z(Ar,Rn,Sr){!Rn&&!W[Sr]&&(Ar(!1,Sr),W[Sr]=!0)}function K(Ar,Rn){z(V,Ar,Rn)}function re(Ar,Rn){z($,Ar,Rn)}K.preMessage=L,K.resetWarned=G,K.noteOnce=re;var ne=K,Q=o(73935),ue=o(90484);function he(Ar,Rn){var Sr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,nn=new Set;function sn(Ot,gr){var Gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ln=nn.has(Ot);if(ne(!Ln,"Warning: There may be circular references"),Ln)return!1;if(Ot===gr)return!0;if(Sr&&Gr>1)return!1;nn.add(Ot);var Tr=Gr+1;if(Array.isArray(Ot)){if(!Array.isArray(gr)||Ot.length!==gr.length)return!1;for(var Dn=0;Dn<Ot.length;Dn++)if(!sn(Ot[Dn],gr[Dn],Tr))return!1;return!0}if(Ot&&gr&&(0,ue.Z)(Ot)==="object"&&(0,ue.Z)(gr)==="object"){var Pr=Object.keys(Ot);return Pr.length!==Object.keys(gr).length?!1:Pr.every(function(fa){return sn(Ot[fa],gr[fa],Tr)})}return!1}return sn(Ar,Rn)}var Ee=he,ce=h.createContext(null);function ve(Ar,Rn){return Ar===void 0?null:"".concat(Ar,"-").concat(Rn)}function fe(Ar){var Rn=h.useContext(ce);return ve(Rn,Ar)}function we(Ar,Rn,Sr){var nn=h.useRef({});return(!("value"in nn.current)||Sr(nn.current.condition,Rn))&&(nn.current.value=Ar(),nn.current.condition=Rn),nn.current.value}var me=["children","locked"],Pe=h.createContext(null);function pe(Ar,Rn){var Sr=(0,A.Z)({},Ar);return Object.keys(Rn).forEach(function(nn){var sn=Rn[nn];sn!==void 0&&(Sr[nn]=sn)}),Sr}function Ie(Ar){var Rn=Ar.children,Sr=Ar.locked,nn=(0,w.Z)(Ar,me),sn=h.useContext(Pe),Ot=we(function(){return pe(sn,nn)},[sn,nn],function(gr,Gr){return!Sr&&(gr[0]!==Gr[0]||!Ee(gr[1],Gr[1],!0))});return h.createElement(Pe.Provider,{value:Ot},Rn)}var Je=[],ke=h.createContext(null);function De(){return h.useContext(ke)}var Fe=h.createContext(Je);function Qe(Ar){var Rn=h.useContext(Fe);return h.useMemo(function(){return Ar!==void 0?[].concat((0,y.Z)(Rn),[Ar]):Rn},[Rn,Ar])}var qe=h.createContext(null),et=h.createContext({}),dt=et,Ke={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Rn){var Sr=Rn.keyCode;if(Rn.altKey&&!Rn.ctrlKey||Rn.metaKey||Sr>=Ke.F1&&Sr<=Ke.F12)return!1;switch(Sr){case Ke.ALT:case Ke.CAPS_LOCK:case Ke.CONTEXT_MENU:case Ke.CTRL:case Ke.DOWN:case Ke.END:case Ke.ESC:case Ke.HOME:case Ke.INSERT:case Ke.LEFT:case Ke.MAC_FF_META:case Ke.META:case Ke.NUMLOCK:case Ke.NUM_CENTER:case Ke.PAGE_DOWN:case Ke.PAGE_UP:case Ke.PAUSE:case Ke.PRINT_SCREEN:case Ke.RIGHT:case Ke.SHIFT:case Ke.UP:case Ke.WIN_KEY:case Ke.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Rn){if(Rn>=Ke.ZERO&&Rn<=Ke.NINE||Rn>=Ke.NUM_ZERO&&Rn<=Ke.NUM_MULTIPLY||Rn>=Ke.A&&Rn<=Ke.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Rn===0)return!0;switch(Rn){case Ke.SPACE:case Ke.QUESTION_MARK:case Ke.NUM_PLUS:case Ke.NUM_MINUS:case Ke.NUM_PERIOD:case Ke.NUM_DIVISION:case Ke.SEMICOLON:case Ke.DASH:case Ke.EQUALS:case Ke.COMMA:case Ke.PERIOD:case Ke.SLASH:case Ke.APOSTROPHE:case Ke.SINGLE_QUOTE:case Ke.OPEN_SQUARE_BRACKET:case Ke.BACKSLASH:case Ke.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ge=Ke,wt=function(Rn){return+setTimeout(Rn,16)},Vt=function(Rn){return clearTimeout(Rn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(wt=function(Rn){return window.requestAnimationFrame(Rn)},Vt=function(Rn){return window.cancelAnimationFrame(Rn)});var gt=0,it=new Map;function Le(Ar){it.delete(Ar)}var ct=function(Rn){var Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;gt+=1;var nn=gt;function sn(Ot){if(Ot===0)Le(nn),Rn();else{var gr=wt(function(){sn(Ot-1)});it.set(nn,gr)}}return sn(Sr),nn};ct.cancel=function(Ar){var Rn=it.get(Ar);return Le(Rn),Vt(Rn)};var at=ct,jt=function(Ar){if(!Ar)return!1;if(Ar instanceof Element){if(Ar.offsetParent)return!0;if(Ar.getBBox){var Rn=Ar.getBBox(),Sr=Rn.width,nn=Rn.height;if(Sr||nn)return!0}if(Ar.getBoundingClientRect){var sn=Ar.getBoundingClientRect(),Ot=sn.width,gr=sn.height;if(Ot||gr)return!0}}return!1};function St(Ar){var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(jt(Ar)){var Sr=Ar.nodeName.toLowerCase(),nn=["input","select","textarea","button"].includes(Sr)||Ar.isContentEditable||Sr==="a"&&!!Ar.getAttribute("href"),sn=Ar.getAttribute("tabindex"),Ot=Number(sn),gr=null;return sn&&!Number.isNaN(Ot)?gr=Ot:nn&&gr===null&&(gr=0),nn&&Ar.disabled&&(gr=null),gr!==null&&(gr>=0||Rn&&gr<0)}return!1}function fn(Ar){var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Sr=(0,y.Z)(Ar.querySelectorAll("*")).filter(function(nn){return St(nn,Rn)});return St(Ar,Rn)&&Sr.unshift(Ar),Sr}var Xt=null;function Yt(){Xt=document.activeElement}function Rt(){Xt=null}function Lt(){if(Xt)try{Xt.focus()}catch(Ar){}}function ze(Ar,Rn){if(Rn.keyCode===9){var Sr=fn(Ar),nn=Sr[Rn.shiftKey?0:Sr.length-1],sn=nn===document.activeElement||Ar===document.activeElement;if(sn){var Ot=Sr[Rn.shiftKey?Sr.length-1:0];Ot.focus(),Rn.preventDefault()}}}var rt=Ge.LEFT,tt=Ge.RIGHT,de=Ge.UP,ot=Ge.DOWN,Et=Ge.ENTER,Ht=Ge.ESC,Jt=Ge.HOME,Qt=Ge.END,an=[de,ot,rt,tt];function Un(Ar,Rn,Sr,nn){var sn,Ot,gr,Gr,Ln="prev",Tr="next",Dn="children",Pr="parent";if(Ar==="inline"&&nn===Et)return{inlineTrigger:!0};var fa=(sn={},(0,g.Z)(sn,de,Ln),(0,g.Z)(sn,ot,Tr),sn),ka=(Ot={},(0,g.Z)(Ot,rt,Sr?Tr:Ln),(0,g.Z)(Ot,tt,Sr?Ln:Tr),(0,g.Z)(Ot,ot,Dn),(0,g.Z)(Ot,Et,Dn),Ot),Li=(gr={},(0,g.Z)(gr,de,Ln),(0,g.Z)(gr,ot,Tr),(0,g.Z)(gr,Et,Dn),(0,g.Z)(gr,Ht,Pr),(0,g.Z)(gr,rt,Sr?Dn:Pr),(0,g.Z)(gr,tt,Sr?Pr:Dn),gr),zi={inline:fa,horizontal:ka,vertical:Li,inlineSub:fa,horizontalSub:Li,verticalSub:Li},Mo=(Gr=zi["".concat(Ar).concat(Rn?"":"Sub")])===null||Gr===void 0?void 0:Gr[nn];switch(Mo){case Ln:return{offset:-1,sibling:!0};case Tr:return{offset:1,sibling:!0};case Pr:return{offset:-1,sibling:!1};case Dn:return{offset:1,sibling:!1};default:return null}}function qt(Ar){for(var Rn=Ar;Rn;){if(Rn.getAttribute("data-menu-list"))return Rn;Rn=Rn.parentElement}return null}function rn(Ar,Rn){for(var Sr=Ar||document.activeElement;Sr;){if(Rn.has(Sr))return Sr;Sr=Sr.parentElement}return null}function cn(Ar,Rn){var Sr=fn(Ar,!0);return Sr.filter(function(nn){return Rn.has(nn)})}function er(Ar,Rn,Sr){var nn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Ar)return null;var sn=cn(Ar,Rn),Ot=sn.length,gr=sn.findIndex(function(Gr){return Sr===Gr});return nn<0?gr===-1?gr=Ot-1:gr-=1:nn>0&&(gr+=1),gr=(gr+Ot)%Ot,sn[gr]}function rr(Ar,Rn,Sr,nn,sn,Ot,gr,Gr,Ln,Tr){var Dn=h.useRef(),Pr=h.useRef();Pr.current=Rn;var fa=function(){at.cancel(Dn.current)};return h.useEffect(function(){return function(){fa()}},[]),function(ka){var Li=ka.which;if([].concat(an,[Et,Ht,Jt,Qt]).includes(Li)){var zi,Mo,Za,ao=function(){zi=new Set,Mo=new Map,Za=new Map;var Wl=Ot();return Wl.forEach(function(_l){var Ls=document.querySelector("[data-menu-id='".concat(ve(nn,_l),"']"));Ls&&(zi.add(Ls),Za.set(Ls,_l),Mo.set(_l,Ls))}),zi};ao();var Mi=Mo.get(Rn),Eo=rn(Mi,zi),Xi=Za.get(Eo),Bo=Un(Ar,gr(Xi,!0).length===1,Sr,Li);if(!Bo&&Li!==Jt&&Li!==Qt)return;(an.includes(Li)||[Jt,Qt].includes(Li))&&ka.preventDefault();var ol=function(Wl){if(Wl){var _l=Wl,Ls=Wl.querySelector("a");Ls!=null&&Ls.getAttribute("href")&&(_l=Ls);var zn=Za.get(Wl);Gr(zn),fa(),Dn.current=at(function(){Pr.current===zn&&_l.focus()})}};if([Jt,Qt].includes(Li)||Bo.sibling||!Eo){var Il;!Eo||Ar==="inline"?Il=sn.current:Il=qt(Eo);var ms,mc=cn(Il,zi);Li===Jt?ms=mc[0]:Li===Qt?ms=mc[mc.length-1]:ms=er(Il,zi,Eo,Bo.offset),ol(ms)}else if(Bo.inlineTrigger)Ln(Xi);else if(Bo.offset>0)Ln(Xi,!0),fa(),Dn.current=at(function(){ao();var xl=Eo.getAttribute("aria-controls"),Wl=document.getElementById(xl),_l=er(Wl,zi);ol(_l)},5);else if(Bo.offset<0){var Ys=gr(Xi,!0),hl=Ys[Ys.length-2],Rs=Mo.get(hl);Ln(hl,!1),ol(Rs)}}Tr==null||Tr(ka)}}function nt(Ar){Promise.resolve().then(Ar)}var lr="__RC_UTIL_PATH_SPLIT__",Hn=function(Rn){return Rn.join(lr)},ut=function(Rn){return Rn.split(lr)},bt="rc-menu-more";function We(){var Ar=h.useState({}),Rn=(0,M.Z)(Ar,2),Sr=Rn[1],nn=(0,h.useRef)(new Map),sn=(0,h.useRef)(new Map),Ot=h.useState([]),gr=(0,M.Z)(Ot,2),Gr=gr[0],Ln=gr[1],Tr=(0,h.useRef)(0),Dn=(0,h.useRef)(!1),Pr=function(){Dn.current||Sr({})},fa=(0,h.useCallback)(function(Mi,Eo){var Xi=Hn(Eo);sn.current.set(Xi,Mi),nn.current.set(Mi,Xi),Tr.current+=1;var Bo=Tr.current;nt(function(){Bo===Tr.current&&Pr()})},[]),ka=(0,h.useCallback)(function(Mi,Eo){var Xi=Hn(Eo);sn.current.delete(Xi),nn.current.delete(Mi)},[]),Li=(0,h.useCallback)(function(Mi){Ln(Mi)},[]),zi=(0,h.useCallback)(function(Mi,Eo){var Xi=nn.current.get(Mi)||"",Bo=ut(Xi);return Eo&&Gr.includes(Bo[0])&&Bo.unshift(bt),Bo},[Gr]),Mo=(0,h.useCallback)(function(Mi,Eo){return Mi.some(function(Xi){var Bo=zi(Xi,!0);return Bo.includes(Eo)})},[zi]),Za=function(){var Eo=(0,y.Z)(nn.current.keys());return Gr.length&&Eo.push(bt),Eo},ao=(0,h.useCallback)(function(Mi){var Eo="".concat(nn.current.get(Mi)).concat(lr),Xi=new Set;return(0,y.Z)(sn.current.keys()).forEach(function(Bo){Bo.startsWith(Eo)&&Xi.add(sn.current.get(Bo))}),Xi},[]);return h.useEffect(function(){return function(){Dn.current=!0}},[]),{registerPath:fa,unregisterPath:ka,refreshOverflowKeys:Li,isSubPathKey:Mo,getKeyPath:zi,getKeys:Za,getSubPathKeys:ao}}function be(Ar){var Rn=h.useRef(Ar);Rn.current=Ar;var Sr=h.useCallback(function(){for(var nn,sn=arguments.length,Ot=new Array(sn),gr=0;gr<sn;gr++)Ot[gr]=arguments[gr];return(nn=Rn.current)===null||nn===void 0?void 0:nn.call.apply(nn,[Rn].concat(Ot))},[]);return Ar?Sr:void 0}var Ae=Math.random().toFixed(5).toString().slice(2),Ue=0;function $e(Ar){var Rn=Z(Ar,{value:Ar}),Sr=(0,M.Z)(Rn,2),nn=Sr[0],sn=Sr[1];return h.useEffect(function(){Ue+=1;var Ot="".concat(Ae,"-").concat(Ue);sn("rc-menu-uuid-".concat(Ot))},[]),nn}var kt=o(6610),lt=o(5991),vt=o(10379),Ct=o(44144);function Bt(Ar,Rn){var Sr=(0,A.Z)({},Ar);return Array.isArray(Rn)&&Rn.forEach(function(nn){delete Sr[nn]}),Sr}var mt=o(54323);function Zt(Ar,Rn){typeof Ar=="function"?Ar(Rn):(0,ue.Z)(Ar)==="object"&&Ar&&"current"in Ar&&(Ar.current=Rn)}function zt(){for(var Ar=arguments.length,Rn=new Array(Ar),Sr=0;Sr<Ar;Sr++)Rn[Sr]=arguments[Sr];var nn=Rn.filter(function(sn){return sn});return nn.length<=1?nn[0]:function(sn){Rn.forEach(function(Ot){Zt(Ot,sn)})}}function ln(){for(var Ar=arguments.length,Rn=new Array(Ar),Sr=0;Sr<Ar;Sr++)Rn[Sr]=arguments[Sr];return we(function(){return zt.apply(void 0,Rn)},Rn,function(nn,sn){return nn.length!==sn.length||nn.every(function(Ot,gr){return Ot!==sn[gr]})})}function An(Ar){var Rn,Sr,nn=isMemo(Ar)?Ar.type.type:Ar.type;return!(typeof nn=="function"&&!((Rn=nn.prototype)!==null&&Rn!==void 0&&Rn.render)||typeof Ar=="function"&&!((Sr=Ar.prototype)!==null&&Sr!==void 0&&Sr.render))}function En(Ar){return!isValidElement(Ar)||isFragment(Ar)?!1:An(Ar)}function Gn(Ar,Rn,Sr,nn){var sn=h.useContext(Pe),Ot=sn.activeKey,gr=sn.onActive,Gr=sn.onInactive,Ln={active:Ot===Ar};return Rn||(Ln.onMouseEnter=function(Tr){Sr==null||Sr({key:Ar,domEvent:Tr}),gr(Ar)},Ln.onMouseLeave=function(Tr){nn==null||nn({key:Ar,domEvent:Tr}),Gr(Ar)}),Ln}function Bn(Ar){var Rn=h.useContext(Pe),Sr=Rn.mode,nn=Rn.rtl,sn=Rn.inlineIndent;if(Sr!=="inline")return null;var Ot=Ar;return nn?{paddingRight:Ot*sn}:{paddingLeft:Ot*sn}}function pr(Ar){var Rn=Ar.icon,Sr=Ar.props,nn=Ar.children,sn;return typeof Rn=="function"?sn=h.createElement(Rn,(0,A.Z)({},Sr)):sn=Rn,sn||nn||null}var _r=["item"];function na(Ar){var Rn=Ar.item,Sr=(0,w.Z)(Ar,_r);return Object.defineProperty(Sr,"item",{get:function(){return ne(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Rn}}),Sr}var $n=["title","attribute","elementRef"],qr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Jr=["active"],Aa=function(Ar){(0,vt.Z)(Sr,Ar);var Rn=(0,Ct.Z)(Sr);function Sr(){return(0,kt.Z)(this,Sr),Rn.apply(this,arguments)}return(0,lt.Z)(Sr,[{key:"render",value:function(){var sn=this.props,Ot=sn.title,gr=sn.attribute,Gr=sn.elementRef,Ln=(0,w.Z)(sn,$n),Tr=Bt(Ln,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ne(!gr,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),h.createElement(v.Z.Item,(0,x.Z)({},gr,{title:typeof Ot=="string"?Ot:void 0},Tr,{ref:Gr}))}}]),Sr}(h.Component),ya=h.forwardRef(function(Ar,Rn){var Sr,nn=Ar.style,sn=Ar.className,Ot=Ar.eventKey,gr=Ar.warnKey,Gr=Ar.disabled,Ln=Ar.itemIcon,Tr=Ar.children,Dn=Ar.role,Pr=Ar.onMouseEnter,fa=Ar.onMouseLeave,ka=Ar.onClick,Li=Ar.onKeyDown,zi=Ar.onFocus,Mo=(0,w.Z)(Ar,qr),Za=fe(Ot),ao=h.useContext(Pe),Mi=ao.prefixCls,Eo=ao.onItemClick,Xi=ao.disabled,Bo=ao.overflowDisabled,ol=ao.itemIcon,Il=ao.selectedKeys,ms=ao.onActive,mc=h.useContext(dt),Ys=mc._internalRenderMenuItem,hl="".concat(Mi,"-item"),Rs=h.useRef(),xl=h.useRef(),Wl=Xi||Gr,_l=ln(Rn,xl),Ls=Qe(Ot),zn=function(Ps){return{key:Ot,keyPath:(0,y.Z)(Ls).reverse(),item:Rs.current,domEvent:Ps}},Dr=Ln||ol,Hr=Gn(Ot,Wl,Pr,fa),_a=Hr.active,Ti=(0,w.Z)(Hr,Jr),Ci=Il.includes(Ot),da=Bn(Ls.length),Da=function(Ps){if(!Wl){var dl=zn(Ps);ka==null||ka(na(dl)),Eo(dl)}},mi=function(Ps){if(Li==null||Li(Ps),Ps.which===Ge.ENTER){var dl=zn(Ps);ka==null||ka(na(dl)),Eo(dl)}},Ho=function(Ps){ms(Ot),zi==null||zi(Ps)},al={};Ar.role==="option"&&(al["aria-selected"]=Ci);var ml=h.createElement(Aa,(0,x.Z)({ref:Rs,elementRef:_l,role:Dn===null?"none":Dn||"menuitem",tabIndex:Gr?null:-1,"data-menu-id":Bo&&Za?null:Za},Mo,Ti,al,{component:"li","aria-disabled":Gr,style:(0,A.Z)((0,A.Z)({},da),nn),className:b()(hl,(Sr={},(0,g.Z)(Sr,"".concat(hl,"-active"),_a),(0,g.Z)(Sr,"".concat(hl,"-selected"),Ci),(0,g.Z)(Sr,"".concat(hl,"-disabled"),Wl),Sr),sn),onClick:Da,onKeyDown:mi,onFocus:Ho}),Tr,h.createElement(pr,{props:(0,A.Z)((0,A.Z)({},Ar),{},{isSelected:Ci}),icon:Dr}));return Ys&&(ml=Ys(ml,Ar,{selected:Ci})),ml});function $t(Ar,Rn){var Sr=Ar.eventKey,nn=De(),sn=Qe(Sr);return h.useEffect(function(){if(nn)return nn.registerPath(Sr,sn),function(){nn.unregisterPath(Sr,sn)}},[sn]),nn?null:h.createElement(ya,(0,x.Z)({},Ar,{ref:Rn}))}var wn=h.forwardRef($t),Fn=["className","children"],Or=function(Rn,Sr){var nn=Rn.className,sn=Rn.children,Ot=(0,w.Z)(Rn,Fn),gr=h.useContext(Pe),Gr=gr.prefixCls,Ln=gr.mode,Tr=gr.rtl;return h.createElement("ul",(0,x.Z)({className:b()(Gr,Tr&&"".concat(Gr,"-rtl"),"".concat(Gr,"-sub"),"".concat(Gr,"-").concat(Ln==="inline"?"inline":"vertical"),nn),role:"menu"},Ot,{"data-menu-list":!0,ref:Sr}),sn)},vr=h.forwardRef(Or);vr.displayName="SubMenuList";var Ur=vr;function Zr(Ar){var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Sr=[];return h.Children.forEach(Ar,function(nn){nn==null&&!Rn.keepEmpty||(Array.isArray(nn)?Sr=Sr.concat(Zr(nn)):(0,mt.isFragment)(nn)&&nn.props?Sr=Sr.concat(Zr(nn.props.children,Rn)):Sr.push(nn))}),Sr}var Kr=["label","children","key","type"];function ba(Ar,Rn){return Zr(Ar).map(function(Sr,nn){if(h.isValidElement(Sr)){var sn,Ot,gr=Sr.key,Gr=(sn=(Ot=Sr.props)===null||Ot===void 0?void 0:Ot.eventKey)!==null&&sn!==void 0?sn:gr,Ln=Gr==null;Ln&&(Gr="tmp_key-".concat([].concat((0,y.Z)(Rn),[nn]).join("-")));var Tr={key:Gr,eventKey:Gr};return h.cloneElement(Sr,Tr)}return Sr})}function Ri(Ar){return(Ar||[]).map(function(Rn,Sr){if(Rn&&(0,ue.Z)(Rn)==="object"){var nn=Rn,sn=nn.label,Ot=nn.children,gr=nn.key,Gr=nn.type,Ln=(0,w.Z)(nn,Kr),Tr=gr!=null?gr:"tmp-".concat(Sr);return Ot||Gr==="group"?Gr==="group"?h.createElement(fs,(0,x.Z)({key:Tr},Ln,{title:sn}),Ri(Ot)):h.createElement(Xa,(0,x.Z)({key:Tr},Ln,{title:sn}),Ri(Ot)):Gr==="divider"?h.createElement(cs,(0,x.Z)({key:Tr},Ln)):h.createElement(wn,(0,x.Z)({key:Tr},Ln),sn)}return null}).filter(function(Rn){return Rn})}function Ea(Ar,Rn,Sr){var nn=Ar;return Rn&&(nn=Ri(Rn)),ba(nn,Sr)}var Pi=o(39971),rs={adjustX:1,adjustY:1},Ui={topLeft:{points:["bl","tl"],overflow:rs,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:rs,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:rs,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:rs,offset:[4,0]}},Cn={topLeft:{points:["bl","tl"],overflow:rs,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:rs,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:rs,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:rs,offset:[4,0]}},Kn=null;function Pn(Ar,Rn,Sr){if(Rn)return Rn;if(Sr)return Sr[Ar]||Sr.other}var At={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function ar(Ar){var Rn=Ar.prefixCls,Sr=Ar.visible,nn=Ar.children,sn=Ar.popup,Ot=Ar.popupClassName,gr=Ar.popupOffset,Gr=Ar.disabled,Ln=Ar.mode,Tr=Ar.onVisibleChange,Dn=h.useContext(Pe),Pr=Dn.getPopupContainer,fa=Dn.rtl,ka=Dn.subMenuOpenDelay,Li=Dn.subMenuCloseDelay,zi=Dn.builtinPlacements,Mo=Dn.triggerSubMenuAction,Za=Dn.forceSubMenuRender,ao=Dn.rootClassName,Mi=Dn.motion,Eo=Dn.defaultMotions,Xi=h.useState(!1),Bo=(0,M.Z)(Xi,2),ol=Bo[0],Il=Bo[1],ms=fa?(0,A.Z)((0,A.Z)({},Cn),zi):(0,A.Z)((0,A.Z)({},Ui),zi),mc=At[Ln],Ys=Pn(Ln,Mi,Eo),hl=h.useRef(Ys);Ln!=="inline"&&(hl.current=Ys);var Rs=(0,A.Z)((0,A.Z)({},hl.current),{},{leavedClassName:"".concat(Rn,"-hidden"),removeOnLeave:!1,motionAppear:!0}),xl=h.useRef();return h.useEffect(function(){return xl.current=at(function(){Il(Sr)}),function(){at.cancel(xl.current)}},[Sr]),h.createElement(Pi.Z,{prefixCls:Rn,popupClassName:b()("".concat(Rn,"-popup"),(0,g.Z)({},"".concat(Rn,"-rtl"),fa),Ot,ao),stretch:Ln==="horizontal"?"minWidth":null,getPopupContainer:Pr,builtinPlacements:ms,popupPlacement:mc,popupVisible:ol,popup:sn,popupAlign:gr&&{offset:gr},action:Gr?[]:[Mo],mouseEnterDelay:ka,mouseLeaveDelay:Li,onPopupVisibleChange:Tr,forceRender:Za,popupMotion:Rs},nn)}var ta=o(90190);function Yn(Ar){var Rn=Ar.id,Sr=Ar.open,nn=Ar.keyPath,sn=Ar.children,Ot="inline",gr=h.useContext(Pe),Gr=gr.prefixCls,Ln=gr.forceSubMenuRender,Tr=gr.motion,Dn=gr.defaultMotions,Pr=gr.mode,fa=h.useRef(!1);fa.current=Pr===Ot;var ka=h.useState(!fa.current),Li=(0,M.Z)(ka,2),zi=Li[0],Mo=Li[1],Za=fa.current?Sr:!1;h.useEffect(function(){fa.current&&Mo(!1)},[Pr]);var ao=(0,A.Z)({},Pn(Ot,Tr,Dn));nn.length>1&&(ao.motionAppear=!1);var Mi=ao.onVisibleChanged;return ao.onVisibleChanged=function(Eo){return!fa.current&&!Eo&&Mo(!0),Mi==null?void 0:Mi(Eo)},zi?null:h.createElement(Ie,{mode:Ot,locked:!fa.current},h.createElement(ta.ZP,(0,x.Z)({visible:Za},ao,{forceRender:Ln,removeOnLeave:!1,leavedClassName:"".concat(Gr,"-hidden")}),function(Eo){var Xi=Eo.className,Bo=Eo.style;return h.createElement(Ur,{id:Rn,className:Xi,style:Bo},sn)}))}var Qa=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ua=["active"],Fi=function(Rn){var Sr,nn=Rn.style,sn=Rn.className,Ot=Rn.title,gr=Rn.eventKey,Gr=Rn.warnKey,Ln=Rn.disabled,Tr=Rn.internalPopupClose,Dn=Rn.children,Pr=Rn.itemIcon,fa=Rn.expandIcon,ka=Rn.popupClassName,Li=Rn.popupOffset,zi=Rn.onClick,Mo=Rn.onMouseEnter,Za=Rn.onMouseLeave,ao=Rn.onTitleClick,Mi=Rn.onTitleMouseEnter,Eo=Rn.onTitleMouseLeave,Xi=(0,w.Z)(Rn,Qa),Bo=fe(gr),ol=h.useContext(Pe),Il=ol.prefixCls,ms=ol.mode,mc=ol.openKeys,Ys=ol.disabled,hl=ol.overflowDisabled,Rs=ol.activeKey,xl=ol.selectedKeys,Wl=ol.itemIcon,_l=ol.expandIcon,Ls=ol.onItemClick,zn=ol.onOpenChange,Dr=ol.onActive,Hr=h.useContext(dt),_a=Hr._internalRenderSubMenuItem,Ti=h.useContext(qe),Ci=Ti.isSubPathKey,da=Qe(),Da="".concat(Il,"-submenu"),mi=Ys||Ln,Ho=h.useRef(),al=h.useRef(),ml=Pr||Wl,Xs=fa||_l,Ps=mc.includes(gr),dl=!hl&&Ps,ql=Ci(xl,gr),Dc=Gn(gr,mi,Mi,Eo),Jl=Dc.active,oc=(0,w.Z)(Dc,Ua),xu=h.useState(!1),yf=(0,M.Z)(xu,2),ku=yf[0],Zc=yf[1],Zu=function(Cu){mi||Zc(Cu)},Fc=function(Cu){Zu(!0),Mo==null||Mo({key:gr,domEvent:Cu})},Hc=function(Cu){Zu(!1),Za==null||Za({key:gr,domEvent:Cu})},Vu=h.useMemo(function(){return Jl||(ms!=="inline"?ku||Ci([Rs],gr):!1)},[ms,Jl,Rs,ku,gr,Ci]),ws=Bn(da.length),fc=function(Cu){mi||(ao==null||ao({key:gr,domEvent:Cu}),ms==="inline"&&zn(gr,!Ps))},Tc=be(function(bf){zi==null||zi(na(bf)),Ls(bf)}),jc=function(Cu){ms!=="inline"&&zn(gr,Cu)},lu=function(){Dr(gr)},hu=Bo&&"".concat(Bo,"-popup"),of=h.createElement("div",(0,x.Z)({role:"menuitem",style:ws,className:"".concat(Da,"-title"),tabIndex:mi?null:-1,ref:Ho,title:typeof Ot=="string"?Ot:null,"data-menu-id":hl&&Bo?null:Bo,"aria-expanded":dl,"aria-haspopup":!0,"aria-controls":hu,"aria-disabled":mi,onClick:fc,onFocus:lu},oc),Ot,h.createElement(pr,{icon:ms!=="horizontal"?Xs:null,props:(0,A.Z)((0,A.Z)({},Rn),{},{isOpen:dl,isSubMenu:!0})},h.createElement("i",{className:"".concat(Da,"-arrow")}))),uu=h.useRef(ms);if(ms!=="inline"&&da.length>1?uu.current="vertical":uu.current=ms,!hl){var zu=uu.current;of=h.createElement(ar,{mode:zu,prefixCls:Da,visible:!Tr&&dl&&ms!=="inline",popupClassName:ka,popupOffset:Li,popup:h.createElement(Ie,{mode:zu==="horizontal"?"vertical":zu},h.createElement(Ur,{id:hu,ref:al},Dn)),disabled:mi,onVisibleChange:jc},of)}var cf=h.createElement(v.Z.Item,(0,x.Z)({role:"none"},Xi,{component:"li",style:nn,className:b()(Da,"".concat(Da,"-").concat(ms),sn,(Sr={},(0,g.Z)(Sr,"".concat(Da,"-open"),dl),(0,g.Z)(Sr,"".concat(Da,"-active"),Vu),(0,g.Z)(Sr,"".concat(Da,"-selected"),ql),(0,g.Z)(Sr,"".concat(Da,"-disabled"),mi),Sr)),onMouseEnter:Fc,onMouseLeave:Hc}),of,!hl&&h.createElement(Yn,{id:hu,open:dl,keyPath:da},Dn));return _a&&(cf=_a(cf,Rn,{selected:ql,active:Vu,open:dl,disabled:mi})),h.createElement(Ie,{onItemClick:Tc,mode:ms==="horizontal"?"vertical":ms,itemIcon:ml,expandIcon:Xs},cf)};function Xa(Ar){var Rn=Ar.eventKey,Sr=Ar.children,nn=Qe(Rn),sn=ba(Sr,nn),Ot=De();h.useEffect(function(){if(Ot)return Ot.registerPath(Rn,nn),function(){Ot.unregisterPath(Rn,nn)}},[nn]);var gr;return Ot?gr=sn:gr=h.createElement(Fi,Ar,sn),h.createElement(Fe.Provider,{value:nn},gr)}var $i=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],La=[],ja=h.forwardRef(function(Ar,Rn){var Sr,nn,sn=Ar,Ot=sn.prefixCls,gr=Ot===void 0?"rc-menu":Ot,Gr=sn.rootClassName,Ln=sn.style,Tr=sn.className,Dn=sn.tabIndex,Pr=Dn===void 0?0:Dn,fa=sn.items,ka=sn.children,Li=sn.direction,zi=sn.id,Mo=sn.mode,Za=Mo===void 0?"vertical":Mo,ao=sn.inlineCollapsed,Mi=sn.disabled,Eo=sn.disabledOverflow,Xi=sn.subMenuOpenDelay,Bo=Xi===void 0?.1:Xi,ol=sn.subMenuCloseDelay,Il=ol===void 0?.1:ol,ms=sn.forceSubMenuRender,mc=sn.defaultOpenKeys,Ys=sn.openKeys,hl=sn.activeKey,Rs=sn.defaultActiveFirst,xl=sn.selectable,Wl=xl===void 0?!0:xl,_l=sn.multiple,Ls=_l===void 0?!1:_l,zn=sn.defaultSelectedKeys,Dr=sn.selectedKeys,Hr=sn.onSelect,_a=sn.onDeselect,Ti=sn.inlineIndent,Ci=Ti===void 0?24:Ti,da=sn.motion,Da=sn.defaultMotions,mi=sn.triggerSubMenuAction,Ho=mi===void 0?"hover":mi,al=sn.builtinPlacements,ml=sn.itemIcon,Xs=sn.expandIcon,Ps=sn.overflowedIndicator,dl=Ps===void 0?"...":Ps,ql=sn.overflowedIndicatorPopupClassName,Dc=sn.getPopupContainer,Jl=sn.onClick,oc=sn.onOpenChange,xu=sn.onKeyDown,yf=sn.openAnimation,ku=sn.openTransitionName,Zc=sn._internalRenderMenuItem,Zu=sn._internalRenderSubMenuItem,Fc=(0,w.Z)(sn,$i),Hc=h.useMemo(function(){return Ea(ka,fa,La)},[ka,fa]),Vu=h.useState(!1),ws=(0,M.Z)(Vu,2),fc=ws[0],Tc=ws[1],jc=h.useRef(),lu=$e(zi),hu=Li==="rtl",of=Z(mc,{value:Ys,postState:function(uf){return uf||La}}),uu=(0,M.Z)(of,2),zu=uu[0],cf=uu[1],bf=function(uf){var Af=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Wn(){cf(uf),oc==null||oc(uf)}Af?(0,Q.flushSync)(Wn):Wn()},Cu=h.useState(zu),rf=(0,M.Z)(Cu,2),Bu=rf[0],Tf=rf[1],ed=h.useRef(!1),Fd=h.useMemo(function(){return(Za==="inline"||Za==="vertical")&&ao?["vertical",ao]:[Za,!1]},[Za,ao]),Pd=(0,M.Z)(Fd,2),Nc=Pd[0],eu=Pd[1],If=Nc==="inline",$f=h.useState(Nc),Te=(0,M.Z)($f,2),_t=Te[0],Vn=Te[1],br=h.useState(eu),tn=(0,M.Z)(br,2),Pt=tn[0],on=tn[1];h.useEffect(function(){Vn(Nc),on(eu),!!ed.current&&(If?cf(Bu):bf(La))},[Nc,eu]);var _n=h.useState(0),ir=(0,M.Z)(_n,2),xr=ir[0],aa=ir[1],oi=xr>=Hc.length-1||_t!=="horizontal"||Eo;h.useEffect(function(){If&&Tf(zu)},[zu]),h.useEffect(function(){return ed.current=!0,function(){ed.current=!1}},[]);var ni=We(),yi=ni.registerPath,Zo=ni.unregisterPath,is=ni.refreshOverflowKeys,mo=ni.isSubPathKey,Ml=ni.getKeyPath,yc=ni.getKeys,oa=ni.getSubPathKeys,sl=h.useMemo(function(){return{registerPath:yi,unregisterPath:Zo}},[yi,Zo]),fl=h.useMemo(function(){return{isSubPathKey:mo}},[mo]);h.useEffect(function(){is(oi?La:Hc.slice(xr+1).map(function(df){return df.key}))},[xr,oi]);var bc=Z(hl||Rs&&((Sr=Hc[0])===null||Sr===void 0?void 0:Sr.key),{value:hl}),Rf=(0,M.Z)(bc,2),Ms=Rf[0],ff=Rf[1],Df=be(function(df){ff(df)}),Ff=be(function(){ff(void 0)});(0,h.useImperativeHandle)(Rn,function(){return{list:jc.current,focus:function(uf){var Af,Wn=Ms!=null?Ms:(Af=Hc.find(function(fi){return!fi.props.disabled}))===null||Af===void 0?void 0:Af.key;if(Wn){var ca,ra,Na;(ca=jc.current)===null||ca===void 0||(ra=ca.querySelector("li[data-menu-id='".concat(ve(lu,Wn),"']")))===null||ra===void 0||(Na=ra.focus)===null||Na===void 0||Na.call(ra,uf)}}}});var Kf=Z(zn||[],{value:Dr,postState:function(uf){return Array.isArray(uf)?uf:uf==null?La:[uf]}}),xf=(0,M.Z)(Kf,2),Sc=xf[0],Wu=xf[1],Du=function(uf){if(Wl){var Af=uf.key,Wn=Sc.includes(Af),ca;Ls?Wn?ca=Sc.filter(function(Na){return Na!==Af}):ca=[].concat((0,y.Z)(Sc),[Af]):ca=[Af],Wu(ca);var ra=(0,A.Z)((0,A.Z)({},uf),{},{selectedKeys:ca});Wn?_a==null||_a(ra):Hr==null||Hr(ra)}!Ls&&zu.length&&_t!=="inline"&&bf(La)},Gd=be(function(df){Jl==null||Jl(na(df)),Du(df)}),gf=be(function(df,uf){var Af=zu.filter(function(ca){return ca!==df});if(uf)Af.push(df);else if(_t!=="inline"){var Wn=oa(df);Af=Af.filter(function(ca){return!Wn.has(ca)})}Ee(zu,Af,!0)||bf(Af,!0)}),Vp=be(Dc),$c=function(uf,Af){var Wn=Af!=null?Af:!zu.includes(uf);gf(uf,Wn)},Yl=rr(_t,Ms,hu,lu,jc,yc,Ml,ff,$c,xu);h.useEffect(function(){Tc(!0)},[]);var Sp=h.useMemo(function(){return{_internalRenderMenuItem:Zc,_internalRenderSubMenuItem:Zu}},[Zc,Zu]),tp=_t!=="horizontal"||Eo?Hc:Hc.map(function(df,uf){return h.createElement(Ie,{key:df.key,overflowDisabled:uf>xr},df)}),Rp=h.createElement(v.Z,(0,x.Z)({id:zi,ref:jc,prefixCls:"".concat(gr,"-overflow"),component:"ul",itemComponent:wn,className:b()(gr,"".concat(gr,"-root"),"".concat(gr,"-").concat(_t),Tr,(nn={},(0,g.Z)(nn,"".concat(gr,"-inline-collapsed"),Pt),(0,g.Z)(nn,"".concat(gr,"-rtl"),hu),nn),Gr),dir:Li,style:Ln,role:"menu",tabIndex:Pr,data:tp,renderRawItem:function(uf){return uf},renderRawRest:function(uf){var Af=uf.length,Wn=Af?Hc.slice(-Af):null;return h.createElement(Xa,{eventKey:bt,title:dl,disabled:oi,internalPopupClose:Af===0,popupClassName:ql},Wn)},maxCount:_t!=="horizontal"||Eo?v.Z.INVALIDATE:v.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(uf){aa(uf)},onKeyDown:Yl},Fc));return h.createElement(dt.Provider,{value:Sp},h.createElement(ce.Provider,{value:lu},h.createElement(Ie,{prefixCls:gr,rootClassName:Gr,mode:_t,openKeys:zu,rtl:hu,disabled:Mi,motion:fc?da:null,defaultMotions:fc?Da:null,activeKey:Ms,onActive:Df,onInactive:Ff,selectedKeys:Sc,inlineIndent:Ci,subMenuOpenDelay:Bo,subMenuCloseDelay:Il,forceSubMenuRender:ms,builtinPlacements:al,triggerSubMenuAction:Ho,getPopupContainer:Vp,itemIcon:ml,expandIcon:Xs,onItemClick:Gd,onOpenChange:gf},h.createElement(qe.Provider,{value:fl},Rp),h.createElement("div",{style:{display:"none"},"aria-hidden":!0},h.createElement(ke.Provider,{value:sl},Hc)))))}),ei=ja,Do=["className","title","eventKey","children"],yo=["children"],to=function(Rn){var Sr=Rn.className,nn=Rn.title,sn=Rn.eventKey,Ot=Rn.children,gr=(0,w.Z)(Rn,Do),Gr=h.useContext(Pe),Ln=Gr.prefixCls,Tr="".concat(Ln,"-item-group");return h.createElement("li",(0,x.Z)({role:"presentation"},gr,{onClick:function(Pr){return Pr.stopPropagation()},className:b()(Tr,Sr)}),h.createElement("div",{role:"presentation",className:"".concat(Tr,"-title"),title:typeof nn=="string"?nn:void 0},nn),h.createElement("ul",{role:"group",className:"".concat(Tr,"-list")},Ot))};function fs(Ar){var Rn=Ar.children,Sr=(0,w.Z)(Ar,yo),nn=Qe(Sr.eventKey),sn=ba(Rn,nn),Ot=De();return Ot?sn:h.createElement(to,Bt(Sr,["warnKey"]),sn)}function cs(Ar){var Rn=Ar.className,Sr=Ar.style,nn=h.useContext(Pe),sn=nn.prefixCls,Ot=De();return Ot?null:h.createElement("li",{className:b()("".concat(sn,"-item-divider"),Rn),style:Sr})}var Os=ei;Os.Item=wn,Os.SubMenu=Xa,Os.ItemGroup=fs,Os.Divider=cs;var vl=Os},90190:function(oe,N,o){"use strict";o.d(N,{V4:function(){return bt},ZP:function(){return We}});var x=o(96156),g=o(28991),A=o(28481),y=o(90484),M=o(35510),w=o.n(M),m=o(67294),b=o(73935);function v(be){return be instanceof HTMLElement||be instanceof SVGElement}function h(be){return v(be)?be:be instanceof m.Component?b.findDOMNode(be):null}var d=o(54323);function _(be,Ae,Ue){var $e=React.useRef({});return(!("value"in $e.current)||Ue($e.current.condition,Ae))&&($e.current.value=be(),$e.current.condition=Ae),$e.current.value}function p(be,Ae){typeof be=="function"?be(Ae):(0,y.Z)(be)==="object"&&be&&"current"in be&&(be.current=Ae)}function S(){for(var be=arguments.length,Ae=new Array(be),Ue=0;Ue<be;Ue++)Ae[Ue]=arguments[Ue];var $e=Ae.filter(function(kt){return kt});return $e.length<=1?$e[0]:function(kt){Ae.forEach(function(lt){p(lt,kt)})}}function k(){for(var be=arguments.length,Ae=new Array(be),Ue=0;Ue<be;Ue++)Ae[Ue]=arguments[Ue];return useMemo(function(){return S.apply(void 0,Ae)},Ae,function($e,kt){return $e.length!==kt.length||$e.every(function(lt,vt){return lt!==kt[vt]})})}function O(be){var Ae,Ue,$e=(0,d.isMemo)(be)?be.type.type:be.type;return!(typeof $e=="function"&&!((Ae=$e.prototype)!==null&&Ae!==void 0&&Ae.render)||typeof be=="function"&&!((Ue=be.prototype)!==null&&Ue!==void 0&&Ue.render))}function F(be){return!isValidElement(be)||isFragment(be)?!1:O(be)}var D=null,Z=m.createContext({});function W(be){var Ae=be.children,Ue=_objectWithoutProperties(be,D);return React.createElement(Z.Provider,{value:Ue},Ae)}var U=o(6610),L=o(5991),V=o(10379),$=o(44144),G=function(be){(0,V.Z)(Ue,be);var Ae=(0,$.Z)(Ue);function Ue(){return(0,U.Z)(this,Ue),Ae.apply(this,arguments)}return(0,L.Z)(Ue,[{key:"render",value:function(){return this.props.children}}]),Ue}(m.Component),z=G;function K(be){var Ae=m.useRef(!1),Ue=m.useState(be),$e=(0,A.Z)(Ue,2),kt=$e[0],lt=$e[1];m.useEffect(function(){return Ae.current=!1,function(){Ae.current=!0}},[]);function vt(Ct,Bt){Bt&&Ae.current||lt(Ct)}return[kt,vt]}var re="none",ne="appear",Q="enter",ue="leave",he="none",Ee="prepare",ce="start",ve="active",fe="end",we="prepared";function me(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function Pe(be,Ae){var Ue={};return Ue[be.toLowerCase()]=Ae.toLowerCase(),Ue["Webkit".concat(be)]="webkit".concat(Ae),Ue["Moz".concat(be)]="moz".concat(Ae),Ue["ms".concat(be)]="MS".concat(Ae),Ue["O".concat(be)]="o".concat(Ae.toLowerCase()),Ue}function pe(be,Ae){var Ue={animationend:Pe("Animation","AnimationEnd"),transitionend:Pe("Transition","TransitionEnd")};return be&&("AnimationEvent"in Ae||delete Ue.animationend.animation,"TransitionEvent"in Ae||delete Ue.transitionend.transition),Ue}var Ie=pe(me(),typeof window!="undefined"?window:{}),Je={};if(me()){var ke=document.createElement("div");Je=ke.style}var De={};function Fe(be){if(De[be])return De[be];var Ae=Ie[be];if(Ae)for(var Ue=Object.keys(Ae),$e=Ue.length,kt=0;kt<$e;kt+=1){var lt=Ue[kt];if(Object.prototype.hasOwnProperty.call(Ae,lt)&< in Je)return De[be]=Ae[lt],De[be]}return""}var Qe=Fe("animationend"),qe=Fe("transitionend"),et=!!(Qe&&qe),dt=Qe||"animationend",Ke=qe||"transitionend";function Ge(be,Ae){if(!be)return null;if((0,y.Z)(be)==="object"){var Ue=Ae.replace(/-\w/g,function($e){return $e[1].toUpperCase()});return be[Ue]}return"".concat(be,"-").concat(Ae)}var wt=function(be){var Ae=(0,m.useRef)(),Ue=(0,m.useRef)(be);Ue.current=be;var $e=m.useCallback(function(vt){Ue.current(vt)},[]);function kt(vt){vt&&(vt.removeEventListener(Ke,$e),vt.removeEventListener(dt,$e))}function lt(vt){Ae.current&&Ae.current!==vt&&kt(Ae.current),vt&&vt!==Ae.current&&(vt.addEventListener(Ke,$e),vt.addEventListener(dt,$e),Ae.current=vt)}return m.useEffect(function(){return function(){kt(Ae.current)}},[]),[lt,kt]},Vt=me()?m.useLayoutEffect:m.useEffect,gt=Vt,it=function(Ae){return+setTimeout(Ae,16)},Le=function(Ae){return clearTimeout(Ae)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(it=function(Ae){return window.requestAnimationFrame(Ae)},Le=function(Ae){return window.cancelAnimationFrame(Ae)});var ct=0,at=new Map;function jt(be){at.delete(be)}var St=function(Ae){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ct+=1;var $e=ct;function kt(lt){if(lt===0)jt($e),Ae();else{var vt=it(function(){kt(lt-1)});at.set($e,vt)}}return kt(Ue),$e};St.cancel=function(be){var Ae=at.get(be);return jt(Ae),Le(Ae)};var fn=St,Xt=function(){var be=m.useRef(null);function Ae(){fn.cancel(be.current)}function Ue($e){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Ae();var lt=fn(function(){kt<=1?$e({isCanceled:function(){return lt!==be.current}}):Ue($e,kt-1)});be.current=lt}return m.useEffect(function(){return function(){Ae()}},[]),[Ue,Ae]},Yt=[Ee,ce,ve,fe],Rt=[Ee,we],Lt=!1,ze=!0;function rt(be){return be===ve||be===fe}var tt=function(be,Ae,Ue){var $e=K(he),kt=(0,A.Z)($e,2),lt=kt[0],vt=kt[1],Ct=Xt(),Bt=(0,A.Z)(Ct,2),mt=Bt[0],Zt=Bt[1];function zt(){vt(Ee,!0)}var ln=Ae?Rt:Yt;return gt(function(){if(lt!==he&<!==fe){var An=ln.indexOf(lt),En=ln[An+1],Gn=Ue(lt);Gn===Lt?vt(En,!0):En&&mt(function(Bn){function pr(){Bn.isCanceled()||vt(En,!0)}Gn===!0?pr():Promise.resolve(Gn).then(pr)})}},[be,lt]),m.useEffect(function(){return function(){Zt()}},[]),[zt,lt]};function de(be,Ae,Ue,$e){var kt=$e.motionEnter,lt=kt===void 0?!0:kt,vt=$e.motionAppear,Ct=vt===void 0?!0:vt,Bt=$e.motionLeave,mt=Bt===void 0?!0:Bt,Zt=$e.motionDeadline,zt=$e.motionLeaveImmediately,ln=$e.onAppearPrepare,An=$e.onEnterPrepare,En=$e.onLeavePrepare,Gn=$e.onAppearStart,Bn=$e.onEnterStart,pr=$e.onLeaveStart,_r=$e.onAppearActive,na=$e.onEnterActive,$n=$e.onLeaveActive,qr=$e.onAppearEnd,Jr=$e.onEnterEnd,Aa=$e.onLeaveEnd,ya=$e.onVisibleChanged,$t=K(),wn=(0,A.Z)($t,2),Fn=wn[0],Or=wn[1],vr=K(re),Ur=(0,A.Z)(vr,2),Zr=Ur[0],Kr=Ur[1],ba=K(null),Ri=(0,A.Z)(ba,2),Ea=Ri[0],Pi=Ri[1],rs=(0,m.useRef)(!1),Ui=(0,m.useRef)(null);function Cn(){return Ue()}var Kn=(0,m.useRef)(!1);function Pn(){Kr(re,!0),Pi(null,!0)}function At(yo){var to=Cn();if(!(yo&&!yo.deadline&&yo.target!==to)){var fs=Kn.current,cs;Zr===ne&&fs?cs=qr==null?void 0:qr(to,yo):Zr===Q&&fs?cs=Jr==null?void 0:Jr(to,yo):Zr===ue&&fs&&(cs=Aa==null?void 0:Aa(to,yo)),Zr!==re&&fs&&cs!==!1&&Pn()}}var ar=wt(At),ta=(0,A.Z)(ar,1),Yn=ta[0],Qa=function(to){var fs,cs,Os;switch(to){case ne:return fs={},(0,x.Z)(fs,Ee,ln),(0,x.Z)(fs,ce,Gn),(0,x.Z)(fs,ve,_r),fs;case Q:return cs={},(0,x.Z)(cs,Ee,An),(0,x.Z)(cs,ce,Bn),(0,x.Z)(cs,ve,na),cs;case ue:return Os={},(0,x.Z)(Os,Ee,En),(0,x.Z)(Os,ce,pr),(0,x.Z)(Os,ve,$n),Os;default:return{}}},Ua=m.useMemo(function(){return Qa(Zr)},[Zr]),Fi=tt(Zr,!be,function(yo){if(yo===Ee){var to=Ua[Ee];return to?to(Cn()):Lt}if(La in Ua){var fs;Pi(((fs=Ua[La])===null||fs===void 0?void 0:fs.call(Ua,Cn(),null))||null)}return La===ve&&(Yn(Cn()),Zt>0&&(clearTimeout(Ui.current),Ui.current=setTimeout(function(){At({deadline:!0})},Zt))),La===we&&Pn(),ze}),Xa=(0,A.Z)(Fi,2),$i=Xa[0],La=Xa[1],ja=rt(La);Kn.current=ja,gt(function(){Or(Ae);var yo=rs.current;rs.current=!0;var to;!yo&&Ae&&Ct&&(to=ne),yo&&Ae&<&&(to=Q),(yo&&!Ae&&mt||!yo&&zt&&!Ae&&mt)&&(to=ue);var fs=Qa(to);to&&(be||fs[Ee])?(Kr(to),$i()):Kr(re)},[Ae]),(0,m.useEffect)(function(){(Zr===ne&&!Ct||Zr===Q&&!lt||Zr===ue&&!mt)&&Kr(re)},[Ct,lt,mt]),(0,m.useEffect)(function(){return function(){rs.current=!1,clearTimeout(Ui.current)}},[]);var ei=m.useRef(!1);(0,m.useEffect)(function(){Fn&&(ei.current=!0),Fn!==void 0&&Zr===re&&((ei.current||Fn)&&(ya==null||ya(Fn)),ei.current=!0)},[Fn,Zr]);var Do=Ea;return Ua[Ee]&&La===ce&&(Do=(0,g.Z)({transition:"none"},Do)),[Zr,La,Do,Fn!=null?Fn:Ae]}function ot(be){var Ae=be;(0,y.Z)(be)==="object"&&(Ae=be.transitionSupport);function Ue(kt,lt){return!!(kt.motionName&&Ae&<!==!1)}var $e=m.forwardRef(function(kt,lt){var vt=kt.visible,Ct=vt===void 0?!0:vt,Bt=kt.removeOnLeave,mt=Bt===void 0?!0:Bt,Zt=kt.forceRender,zt=kt.children,ln=kt.motionName,An=kt.leavedClassName,En=kt.eventProps,Gn=m.useContext(Z),Bn=Gn.motion,pr=Ue(kt,Bn),_r=(0,m.useRef)(),na=(0,m.useRef)();function $n(){try{return _r.current instanceof HTMLElement?_r.current:h(na.current)}catch(Pi){return null}}var qr=de(pr,Ct,$n,kt),Jr=(0,A.Z)(qr,4),Aa=Jr[0],ya=Jr[1],$t=Jr[2],wn=Jr[3],Fn=m.useRef(wn);wn&&(Fn.current=!0);var Or=m.useCallback(function(Pi){_r.current=Pi,p(lt,Pi)},[lt]),vr,Ur=(0,g.Z)((0,g.Z)({},En),{},{visible:Ct});if(!zt)vr=null;else if(Aa===re)wn?vr=zt((0,g.Z)({},Ur),Or):!mt&&Fn.current&&An?vr=zt((0,g.Z)((0,g.Z)({},Ur),{},{className:An}),Or):Zt||!mt&&!An?vr=zt((0,g.Z)((0,g.Z)({},Ur),{},{style:{display:"none"}}),Or):vr=null;else{var Zr,Kr;ya===Ee?Kr="prepare":rt(ya)?Kr="active":ya===ce&&(Kr="start");var ba=Ge(ln,"".concat(Aa,"-").concat(Kr));vr=zt((0,g.Z)((0,g.Z)({},Ur),{},{className:w()(Ge(ln,Aa),(Zr={},(0,x.Z)(Zr,ba,ba&&Kr),(0,x.Z)(Zr,ln,typeof ln=="string"),Zr)),style:$t}),Or)}if(m.isValidElement(vr)&&O(vr)){var Ri=vr,Ea=Ri.ref;Ea||(vr=m.cloneElement(vr,{ref:Or}))}return m.createElement(z,{ref:na},vr)});return $e.displayName="CSSMotion",$e}var Et=ot(et),Ht=o(22122),Jt=o(81253),Qt=o(63349),an="add",Un="keep",qt="remove",rn="removed";function cn(be){var Ae;return be&&(0,y.Z)(be)==="object"&&"key"in be?Ae=be:Ae={key:be},(0,g.Z)((0,g.Z)({},Ae),{},{key:String(Ae.key)})}function er(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return be.map(cn)}function rr(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ue=[],$e=0,kt=Ae.length,lt=er(be),vt=er(Ae);lt.forEach(function(mt){for(var Zt=!1,zt=$e;zt<kt;zt+=1){var ln=vt[zt];if(ln.key===mt.key){$e<zt&&(Ue=Ue.concat(vt.slice($e,zt).map(function(An){return(0,g.Z)((0,g.Z)({},An),{},{status:an})})),$e=zt),Ue.push((0,g.Z)((0,g.Z)({},ln),{},{status:Un})),$e+=1,Zt=!0;break}}Zt||Ue.push((0,g.Z)((0,g.Z)({},mt),{},{status:qt}))}),$e<kt&&(Ue=Ue.concat(vt.slice($e).map(function(mt){return(0,g.Z)((0,g.Z)({},mt),{},{status:an})})));var Ct={};Ue.forEach(function(mt){var Zt=mt.key;Ct[Zt]=(Ct[Zt]||0)+1});var Bt=Object.keys(Ct).filter(function(mt){return Ct[mt]>1});return Bt.forEach(function(mt){Ue=Ue.filter(function(Zt){var zt=Zt.key,ln=Zt.status;return zt!==mt||ln!==qt}),Ue.forEach(function(Zt){Zt.key===mt&&(Zt.status=Un)})}),Ue}var nt=["component","children","onVisibleChanged","onAllRemoved"],lr=["status"],Hn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ut(be){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Et,Ue=function($e){(0,V.Z)(lt,$e);var kt=(0,$.Z)(lt);function lt(){var vt;(0,U.Z)(this,lt);for(var Ct=arguments.length,Bt=new Array(Ct),mt=0;mt<Ct;mt++)Bt[mt]=arguments[mt];return vt=kt.call.apply(kt,[this].concat(Bt)),(0,x.Z)((0,Qt.Z)(vt),"state",{keyEntities:[]}),(0,x.Z)((0,Qt.Z)(vt),"removeKey",function(Zt){var zt=vt.state.keyEntities,ln=zt.map(function(An){return An.key!==Zt?An:(0,g.Z)((0,g.Z)({},An),{},{status:rn})});return vt.setState({keyEntities:ln}),ln.filter(function(An){var En=An.status;return En!==rn}).length}),vt}return(0,L.Z)(lt,[{key:"render",value:function(){var Ct=this,Bt=this.state.keyEntities,mt=this.props,Zt=mt.component,zt=mt.children,ln=mt.onVisibleChanged,An=mt.onAllRemoved,En=(0,Jt.Z)(mt,nt),Gn=Zt||m.Fragment,Bn={};return Hn.forEach(function(pr){Bn[pr]=En[pr],delete En[pr]}),delete En.keys,m.createElement(Gn,En,Bt.map(function(pr){var _r=pr.status,na=(0,Jt.Z)(pr,lr),$n=_r===an||_r===Un;return m.createElement(Ae,(0,Ht.Z)({},Bn,{key:na.key,visible:$n,eventProps:na,onVisibleChanged:function(Jr){if(ln==null||ln(Jr,{key:na.key}),!Jr){var Aa=Ct.removeKey(na.key);Aa===0&&An&&An()}}}),zt)}))}}],[{key:"getDerivedStateFromProps",value:function(Ct,Bt){var mt=Ct.keys,Zt=Bt.keyEntities,zt=er(mt),ln=rr(Zt,zt);return{keyEntities:ln.filter(function(An){var En=Zt.find(function(Gn){var Bn=Gn.key;return An.key===Bn});return!(En&&En.status===rn&&An.status===qt)})}}}]),lt}(m.Component);return(0,x.Z)(Ue,"defaultProps",{component:"div"}),Ue}var bt=ut(et),We=Et},50259:function(oe,N,o){"use strict";o.d(N,{Z:function(){return d}});var x=o(22122),g=o(96156),A=o(6610),y=o(5991),M=o(10379),w=o(44144),m=o(67294),b=o(73935),v=o(35510),h=o.n(v),d=function(_){(0,M.Z)(S,_);var p=(0,w.Z)(S);function S(){var k;(0,A.Z)(this,S);for(var O=arguments.length,F=new Array(O),D=0;D<O;D++)F[D]=arguments[D];return k=p.call.apply(p,[this].concat(F)),k.closeTimer=null,k.close=function(Z){Z&&Z.stopPropagation(),k.clearCloseTimer();var W=k.props,U=W.onClose,L=W.noticeKey;U&&U(L)},k.startCloseTimer=function(){k.props.duration&&(k.closeTimer=window.setTimeout(function(){k.close()},k.props.duration*1e3))},k.clearCloseTimer=function(){k.closeTimer&&(clearTimeout(k.closeTimer),k.closeTimer=null)},k}return(0,y.Z)(S,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(O){(this.props.duration!==O.duration||this.props.updateMark!==O.updateMark||this.props.visible!==O.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var O=this,F=this.props,D=F.prefixCls,Z=F.className,W=F.closable,U=F.closeIcon,L=F.style,V=F.onClick,$=F.children,G=F.holder,z="".concat(D,"-notice"),K=Object.keys(this.props).reduce(function(ne,Q){return(Q.substr(0,5)==="data-"||Q.substr(0,5)==="aria-"||Q==="role")&&(ne[Q]=O.props[Q]),ne},{}),re=m.createElement("div",(0,x.Z)({className:h()(z,Z,(0,g.Z)({},"".concat(z,"-closable"),W)),style:L,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:V},K),m.createElement("div",{className:"".concat(z,"-content")},$),W?m.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(z,"-close")},U||m.createElement("span",{className:"".concat(z,"-close-x")})):null);return G?b.createPortal(re,G):re}}]),S}(m.Component);d.defaultProps={onClose:function(){},duration:1.5}},68836:function(oe,N,o){"use strict";o.r(N),o.d(N,{default:function(){return ke}});var x=o(81253),g=o(22122),A=o(28991),y=o(6610),M=o(5991),w=o(10379),m=o(44144),b=o(67294),v=o(55507),h=o(92137),d=o(90484),_=o(73935),p=o.t(_,2),S=(0,A.Z)({},p),k=S.version,O=S.render,F=S.unmountComponentAtNode,D;try{var Z=Number((k||"").split(".")[0]);Z>=18&&(D=S.createRoot)}catch(De){}function W(De){var Fe=S.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Fe&&(0,d.Z)(Fe)==="object"&&(Fe.usingClientEntryPoint=De)}var U="__rc_react_root__";function L(De,Fe){W(!0);var Qe=Fe[U]||D(Fe);W(!1),Qe.render(De),Fe[U]=Qe}function V(De,Fe){O(De,Fe)}function $(De,Fe){}function G(De,Fe){if(D){L(De,Fe);return}V(De,Fe)}function z(De){return K.apply(this,arguments)}function K(){return K=(0,h.Z)((0,v.Z)().mark(function De(Fe){return(0,v.Z)().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Promise.resolve().then(function(){var et;(et=Fe[U])===null||et===void 0||et.unmount(),delete Fe[U]}));case 1:case"end":return qe.stop()}},De)})),K.apply(this,arguments)}function re(De){F(De)}function ne(De){}function Q(De){return ue.apply(this,arguments)}function ue(){return ue=(0,h.Z)((0,v.Z)().mark(function De(Fe){return(0,v.Z)().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(D===void 0){qe.next=2;break}return qe.abrupt("return",z(Fe));case 2:re(Fe);case 3:case"end":return qe.stop()}},De)})),ue.apply(this,arguments)}var he=o(35510),Ee=o.n(he),ce=o(90190),ve=o(50259),fe=o(20073),we=["getContainer"],me=0,Pe=Date.now();function pe(){var De=me;return me+=1,"rcNotification_".concat(Pe,"_").concat(De)}var Ie=function(De){(0,w.Z)(Qe,De);var Fe=(0,m.Z)(Qe);function Qe(){var qe;(0,y.Z)(this,Qe);for(var et=arguments.length,dt=new Array(et),Ke=0;Ke<et;Ke++)dt[Ke]=arguments[Ke];return qe=Fe.call.apply(Fe,[this].concat(dt)),qe.state={notices:[]},qe.hookRefs=new Map,qe.add=function(Ge,wt){var Vt,gt=(Vt=Ge.key)!==null&&Vt!==void 0?Vt:pe(),it=(0,A.Z)((0,A.Z)({},Ge),{},{key:gt}),Le=qe.props.maxCount;qe.setState(function(ct){var at=ct.notices,jt=at.map(function(fn){return fn.notice.key}).indexOf(gt),St=at.concat();return jt!==-1?St.splice(jt,1,{notice:it,holderCallback:wt}):(Le&&at.length>=Le&&(it.key=St[0].notice.key,it.updateMark=pe(),it.userPassKey=gt,St.shift()),St.push({notice:it,holderCallback:wt})),{notices:St}})},qe.remove=function(Ge){qe.setState(function(wt){var Vt=wt.notices;return{notices:Vt.filter(function(gt){var it=gt.notice,Le=it.key,ct=it.userPassKey,at=ct!=null?ct:Le;return at!==Ge})}})},qe.noticePropsMap={},qe}return(0,M.Z)(Qe,[{key:"getTransitionName",value:function(){var et=this.props,dt=et.prefixCls,Ke=et.animation,Ge=this.props.transitionName;return!Ge&&Ke&&(Ge="".concat(dt,"-").concat(Ke)),Ge}},{key:"render",value:function(){var et=this,dt=this.state.notices,Ke=this.props,Ge=Ke.prefixCls,wt=Ke.className,Vt=Ke.closeIcon,gt=Ke.style,it=[];return dt.forEach(function(Le,ct){var at=Le.notice,jt=Le.holderCallback,St=ct===dt.length-1?at.updateMark:void 0,fn=at.key,Xt=at.userPassKey,Yt=(0,A.Z)((0,A.Z)((0,A.Z)({prefixCls:Ge,closeIcon:Vt},at),at.props),{},{key:fn,noticeKey:Xt||fn,updateMark:St,onClose:function(Lt){var ze;et.remove(Lt),(ze=at.onClose)===null||ze===void 0||ze.call(at)},onClick:at.onClick,children:at.content});it.push(fn),et.noticePropsMap[fn]={props:Yt,holderCallback:jt}}),b.createElement("div",{className:Ee()(Ge,wt),style:gt},b.createElement(ce.V4,{keys:it,motionName:this.getTransitionName(),onVisibleChanged:function(ct,at){var jt=at.key;ct||delete et.noticePropsMap[jt]}},function(Le){var ct=Le.key,at=Le.className,jt=Le.style,St=Le.visible,fn=et.noticePropsMap[ct],Xt=fn.props,Yt=fn.holderCallback;return Yt?b.createElement("div",{key:ct,className:Ee()(at,"".concat(Ge,"-hook-holder")),style:(0,A.Z)({},jt),ref:function(Lt){typeof ct!="undefined"&&(Lt?(et.hookRefs.set(ct,Lt),Yt(Lt,Xt)):et.hookRefs.delete(ct))}}):b.createElement(ve.Z,(0,g.Z)({},Xt,{className:Ee()(at,Xt==null?void 0:Xt.className),style:(0,A.Z)((0,A.Z)({},jt),Xt==null?void 0:Xt.style),visible:St}))}))}}]),Qe}(b.Component);Ie.newInstance=void 0,Ie.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},Ie.newInstance=function(Fe,Qe){var qe=Fe||{},et=qe.getContainer,dt=(0,x.Z)(qe,we),Ke=document.createElement("div");if(et){var Ge=et();Ge.appendChild(Ke)}else document.body.appendChild(Ke);var wt=!1;function Vt(gt){wt||(wt=!0,Qe({notice:function(Le){gt.add(Le)},removeNotice:function(Le){gt.remove(Le)},component:gt,destroy:function(){Q(Ke),Ke.parentNode&&Ke.parentNode.removeChild(Ke)},useNotification:function(){return(0,fe.Z)(gt)}}))}G(b.createElement(Ie,(0,g.Z)({},dt,{ref:Vt})),Ke)};var Je=Ie,ke=Je},20073:function(oe,N,o){"use strict";o.d(N,{Z:function(){return w}});var x=o(85061),g=o(22122),A=o(28481),y=o(67294),M=o(50259);function w(m){var b=y.useRef({}),v=y.useState([]),h=(0,A.Z)(v,2),d=h[0],_=h[1];function p(S){var k=!0;m.add(S,function(O,F){var D=F.key;if(O&&(!b.current[D]||k)){var Z=y.createElement(M.Z,(0,g.Z)({},F,{holder:O}));b.current[D]=Z,_(function(W){var U=W.findIndex(function(V){return V.key===F.key});if(U===-1)return[].concat((0,x.Z)(W),[Z]);var L=(0,x.Z)(W);return L[U]=Z,L})}k=!1})}return[p,y.createElement(y.Fragment,null,d)]}},44143:function(oe,N,o){"use strict";var x=o(95318),g=o(50008);Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var A=x(o(67154)),y=x(o(59713)),M=x(o(34575)),w=x(o(93913)),m=x(o(2205)),b=x(o(99842)),v=p(o(67294)),h=x(o(73935)),d=x(o(35510));function _(k){if(typeof WeakMap!="function")return null;var O=new WeakMap,F=new WeakMap;return(_=function(Z){return Z?F:O})(k)}function p(k,O){if(!O&&k&&k.__esModule)return k;if(k===null||g(k)!=="object"&&typeof k!="function")return{default:k};var F=_(O);if(F&&F.has(k))return F.get(k);var D={},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var W in k)if(W!=="default"&&Object.prototype.hasOwnProperty.call(k,W)){var U=Z?Object.getOwnPropertyDescriptor(k,W):null;U&&(U.get||U.set)?Object.defineProperty(D,W,U):D[W]=k[W]}return D.default=k,F&&F.set(k,D),D}var S=function(k){(0,m.default)(F,k);var O=(0,b.default)(F);function F(){var D;(0,M.default)(this,F);for(var Z=arguments.length,W=new Array(Z),U=0;U<Z;U++)W[U]=arguments[U];return D=O.call.apply(O,[this].concat(W)),D.closeTimer=null,D.close=function(L){L&&L.stopPropagation(),D.clearCloseTimer();var V=D.props,$=V.onClose,G=V.noticeKey;$&&$(G)},D.startCloseTimer=function(){D.props.duration&&(D.closeTimer=window.setTimeout(function(){D.close()},D.props.duration*1e3))},D.clearCloseTimer=function(){D.closeTimer&&(clearTimeout(D.closeTimer),D.closeTimer=null)},D}return(0,w.default)(F,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(Z){(this.props.duration!==Z.duration||this.props.updateMark!==Z.updateMark||this.props.visible!==Z.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var Z=this,W=this.props,U=W.prefixCls,L=W.className,V=W.closable,$=W.closeIcon,G=W.style,z=W.onClick,K=W.children,re=W.holder,ne="".concat(U,"-notice"),Q=Object.keys(this.props).reduce(function(he,Ee){return(Ee.substr(0,5)==="data-"||Ee.substr(0,5)==="aria-"||Ee==="role")&&(he[Ee]=Z.props[Ee]),he},{}),ue=v.createElement("div",(0,A.default)({className:(0,d.default)(ne,L,(0,y.default)({},"".concat(ne,"-closable"),V)),style:G,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:z},Q),v.createElement("div",{className:"".concat(ne,"-content")},K),V?v.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(ne,"-close")},$||v.createElement("span",{className:"".concat(ne,"-close-x")})):null);return re?h.default.createPortal(ue,re):ue}}]),F}(v.Component);N.default=S,S.defaultProps={onClose:function(){},duration:1.5}},39391:function(oe,N,o){"use strict";var x=o(95318),g=o(50008);Object.defineProperty(N,"__esModule",{value:!0}),N.default=h;var A=x(o(319)),y=x(o(67154)),M=x(o(63038)),w=v(o(67294)),m=x(o(44143));function b(d){if(typeof WeakMap!="function")return null;var _=new WeakMap,p=new WeakMap;return(b=function(k){return k?p:_})(d)}function v(d,_){if(!_&&d&&d.__esModule)return d;if(d===null||g(d)!=="object"&&typeof d!="function")return{default:d};var p=b(_);if(p&&p.has(d))return p.get(d);var S={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in d)if(O!=="default"&&Object.prototype.hasOwnProperty.call(d,O)){var F=k?Object.getOwnPropertyDescriptor(d,O):null;F&&(F.get||F.set)?Object.defineProperty(S,O,F):S[O]=d[O]}return S.default=d,p&&p.set(d,S),S}function h(d){var _=w.useRef({}),p=w.useState([]),S=(0,M.default)(p,2),k=S[0],O=S[1];function F(D){var Z=!0;d.add(D,function(W,U){var L=U.key;if(W&&(!_.current[L]||Z)){var V=w.createElement(m.default,(0,y.default)({},U,{holder:W}));_.current[L]=V,O(function($){var G=$.findIndex(function(K){return K.key===U.key});if(G===-1)return[].concat((0,A.default)($),[V]);var z=(0,A.default)($);return z[G]=V,z})}Z=!1})}return[F,w.createElement(w.Fragment,null,k)]}},43421:function(oe,N,o){"use strict";o.d(N,{Z:function(){return Fe}});var x=o(22122),g=o(28991),A=o(28481),y=o(81253),M=o(67294),w=o(35510),m=o.n(w),b=o(50279);function v(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var h=v()?M.useLayoutEffect:M.useEffect,d=function(qe,et){var dt=M.useRef(!0);h(function(){return qe(dt.current)},et),h(function(){return dt.current=!1,function(){dt.current=!0}},[])},_=function(qe,et){d(function(dt){if(!dt)return qe()},et)},p=d,S=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],k=void 0;function O(Qe,qe){var et=Qe.prefixCls,dt=Qe.invalidate,Ke=Qe.item,Ge=Qe.renderItem,wt=Qe.responsive,Vt=Qe.responsiveDisabled,gt=Qe.registerSize,it=Qe.itemKey,Le=Qe.className,ct=Qe.style,at=Qe.children,jt=Qe.display,St=Qe.order,fn=Qe.component,Xt=fn===void 0?"div":fn,Yt=(0,y.Z)(Qe,S),Rt=wt&&!jt;function Lt(ot){gt(it,ot)}M.useEffect(function(){return function(){Lt(null)}},[]);var ze=Ge&&Ke!==k?Ge(Ke):at,rt;dt||(rt={opacity:Rt?0:1,height:Rt?0:k,overflowY:Rt?"hidden":k,order:wt?St:k,pointerEvents:Rt?"none":k,position:Rt?"absolute":k});var tt={};Rt&&(tt["aria-hidden"]=!0);var de=M.createElement(Xt,(0,x.Z)({className:m()(!dt&&et,Le),style:(0,g.Z)((0,g.Z)({},rt),ct)},tt,Yt,{ref:qe}),ze);return wt&&(de=M.createElement(b.default,{onResize:function(Et){var Ht=Et.offsetWidth;Lt(Ht)},disabled:Vt},de)),de}var F=M.forwardRef(O);F.displayName="Item";var D=F;function Z(Qe){var qe=M.useRef();qe.current=Qe;var et=M.useCallback(function(){for(var dt,Ke=arguments.length,Ge=new Array(Ke),wt=0;wt<Ke;wt++)Ge[wt]=arguments[wt];return(dt=qe.current)===null||dt===void 0?void 0:dt.call.apply(dt,[qe].concat(Ge))},[]);return et}var W=o(73935),U=function(qe){return+setTimeout(qe,16)},L=function(qe){return clearTimeout(qe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(U=function(qe){return window.requestAnimationFrame(qe)},L=function(qe){return window.cancelAnimationFrame(qe)});var V=0,$=new Map;function G(Qe){$.delete(Qe)}var z=function(qe){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;V+=1;var dt=V;function Ke(Ge){if(Ge===0)G(dt),qe();else{var wt=U(function(){Ke(Ge-1)});$.set(dt,wt)}}return Ke(et),dt};z.cancel=function(Qe){var qe=$.get(Qe);return G(qe),L(qe)};var K=z;function re(Qe){if(typeof MessageChannel=="undefined")K(Qe);else{var qe=new MessageChannel;qe.port1.onmessage=function(){return Qe()},qe.port2.postMessage(void 0)}}function ne(){var Qe=M.useRef(null),qe=function(dt){Qe.current||(Qe.current=[],re(function(){(0,W.unstable_batchedUpdates)(function(){Qe.current.forEach(function(Ke){Ke()}),Qe.current=null})})),Qe.current.push(dt)};return qe}function Q(Qe,qe){var et=M.useState(qe),dt=(0,A.Z)(et,2),Ke=dt[0],Ge=dt[1],wt=Z(function(Vt){Qe(function(){Ge(Vt)})});return[Ke,wt]}var ue=M.createContext(null),he=["component"],Ee=["className"],ce=["className"],ve=function(qe,et){var dt=M.useContext(ue);if(!dt){var Ke=qe.component,Ge=Ke===void 0?"div":Ke,wt=(0,y.Z)(qe,he);return M.createElement(Ge,(0,x.Z)({},wt,{ref:et}))}var Vt=dt.className,gt=(0,y.Z)(dt,Ee),it=qe.className,Le=(0,y.Z)(qe,ce);return M.createElement(ue.Provider,{value:null},M.createElement(D,(0,x.Z)({ref:et,className:m()(Vt,it)},gt,Le)))},fe=M.forwardRef(ve);fe.displayName="RawItem";var we=fe,me=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Pe="responsive",pe="invalidate";function Ie(Qe){return"+ ".concat(Qe.length," ...")}function Je(Qe,qe){var et=Qe.prefixCls,dt=et===void 0?"rc-overflow":et,Ke=Qe.data,Ge=Ke===void 0?[]:Ke,wt=Qe.renderItem,Vt=Qe.renderRawItem,gt=Qe.itemKey,it=Qe.itemWidth,Le=it===void 0?10:it,ct=Qe.ssr,at=Qe.style,jt=Qe.className,St=Qe.maxCount,fn=Qe.renderRest,Xt=Qe.renderRawRest,Yt=Qe.suffix,Rt=Qe.component,Lt=Rt===void 0?"div":Rt,ze=Qe.itemComponent,rt=Qe.onVisibleChange,tt=(0,y.Z)(Qe,me),de=ct==="full",ot=ne(),Et=Q(ot,null),Ht=(0,A.Z)(Et,2),Jt=Ht[0],Qt=Ht[1],an=Jt||0,Un=Q(ot,new Map),qt=(0,A.Z)(Un,2),rn=qt[0],cn=qt[1],er=Q(ot,0),rr=(0,A.Z)(er,2),nt=rr[0],lr=rr[1],Hn=Q(ot,0),ut=(0,A.Z)(Hn,2),bt=ut[0],We=ut[1],be=Q(ot,0),Ae=(0,A.Z)(be,2),Ue=Ae[0],$e=Ae[1],kt=(0,M.useState)(null),lt=(0,A.Z)(kt,2),vt=lt[0],Ct=lt[1],Bt=(0,M.useState)(null),mt=(0,A.Z)(Bt,2),Zt=mt[0],zt=mt[1],ln=M.useMemo(function(){return Zt===null&&de?Number.MAX_SAFE_INTEGER:Zt||0},[Zt,Jt]),An=(0,M.useState)(!1),En=(0,A.Z)(An,2),Gn=En[0],Bn=En[1],pr="".concat(dt,"-item"),_r=Math.max(nt,bt),na=St===Pe,$n=Ge.length&&na,qr=St===pe,Jr=$n||typeof St=="number"&&Ge.length>St,Aa=(0,M.useMemo)(function(){var Pn=Ge;return $n?Jt===null&&de?Pn=Ge:Pn=Ge.slice(0,Math.min(Ge.length,an/Le)):typeof St=="number"&&(Pn=Ge.slice(0,St)),Pn},[Ge,Le,Jt,St,$n]),ya=(0,M.useMemo)(function(){return $n?Ge.slice(ln+1):Ge.slice(Aa.length)},[Ge,Aa,$n,ln]),$t=(0,M.useCallback)(function(Pn,At){var ar;return typeof gt=="function"?gt(Pn):(ar=gt&&(Pn==null?void 0:Pn[gt]))!==null&&ar!==void 0?ar:At},[gt]),wn=(0,M.useCallback)(wt||function(Pn){return Pn},[wt]);function Fn(Pn,At,ar){Zt===Pn&&(At===void 0||At===vt)||(zt(Pn),ar||(Bn(Pn<Ge.length-1),rt==null||rt(Pn)),At!==void 0&&Ct(At))}function Or(Pn,At){Qt(At.clientWidth)}function vr(Pn,At){cn(function(ar){var ta=new Map(ar);return At===null?ta.delete(Pn):ta.set(Pn,At),ta})}function Ur(Pn,At){We(At),lr(bt)}function Zr(Pn,At){$e(At)}function Kr(Pn){return rn.get($t(Aa[Pn],Pn))}p(function(){if(an&&typeof _r=="number"&&Aa){var Pn=Ue,At=Aa.length,ar=At-1;if(!At){Fn(0,null);return}for(var ta=0;ta<At;ta+=1){var Yn=Kr(ta);if(de&&(Yn=Yn||0),Yn===void 0){Fn(ta-1,void 0,!0);break}if(Pn+=Yn,ar===0&&Pn<=an||ta===ar-1&&Pn+Kr(ar)<=an){Fn(ar,null);break}else if(Pn+_r>an){Fn(ta-1,Pn-Yn-Ue+bt);break}}Yt&&Kr(0)+Ue>an&&Ct(null)}},[an,rn,bt,Ue,$t,Aa]);var ba=Gn&&!!ya.length,Ri={};vt!==null&&$n&&(Ri={position:"absolute",left:vt,top:0});var Ea={prefixCls:pr,responsive:$n,component:ze,invalidate:qr},Pi=Vt?function(Pn,At){var ar=$t(Pn,At);return M.createElement(ue.Provider,{key:ar,value:(0,g.Z)((0,g.Z)({},Ea),{},{order:At,item:Pn,itemKey:ar,registerSize:vr,display:At<=ln})},Vt(Pn,At))}:function(Pn,At){var ar=$t(Pn,At);return M.createElement(D,(0,x.Z)({},Ea,{order:At,key:ar,item:Pn,renderItem:wn,itemKey:ar,registerSize:vr,display:At<=ln}))},rs,Ui={order:ba?ln:Number.MAX_SAFE_INTEGER,className:"".concat(pr,"-rest"),registerSize:Ur,display:ba};if(Xt)Xt&&(rs=M.createElement(ue.Provider,{value:(0,g.Z)((0,g.Z)({},Ea),Ui)},Xt(ya)));else{var Cn=fn||Ie;rs=M.createElement(D,(0,x.Z)({},Ea,Ui),typeof Cn=="function"?Cn(ya):Cn)}var Kn=M.createElement(Lt,(0,x.Z)({className:m()(!qr&&dt,jt),style:at,ref:qe},tt),Aa.map(Pi),Jr?rs:null,Yt&&M.createElement(D,(0,x.Z)({},Ea,{responsive:na,responsiveDisabled:!$n,order:ln,className:"".concat(pr,"-suffix"),registerSize:Zr,display:!0,style:Ri}),Yt));return na&&(Kn=M.createElement(b.default,{onResize:Or,disabled:!$n},Kn)),Kn}var ke=M.forwardRef(Je);ke.displayName="Overflow",ke.Item=we,ke.RESPONSIVE=Pe,ke.INVALIDATE=pe;var De=ke,Fe=De},71075:function(oe,N){"use strict";N.Z={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},83651:function(oe,N){"use strict";N.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},88434:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var o={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};N.default=o},27:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=void 0;var o={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},x=o;N.default=x},50279:function(oe,N,o){"use strict";o.r(N),o.d(N,{_rs:function(){return ue},default:function(){return qe}});var x=o(22122),g=o(67294),A=o(54323);function y(et){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ke=[];return g.Children.forEach(et,function(Ge){Ge==null&&!dt.keepEmpty||(Array.isArray(Ge)?Ke=Ke.concat(y(Ge)):(0,A.isFragment)(Ge)&&Ge.props?Ke=Ke.concat(y(Ge.props.children,dt)):Ke.push(Ge))}),Ke}var M={},w=[],m=function(dt){w.push(dt)};function b(et,dt){if(!1)var Ke}function v(et,dt){if(!1)var Ke}function h(){M={}}function d(et,dt,Ke){!dt&&!M[Ke]&&(et(!1,Ke),M[Ke]=!0)}function _(et,dt){d(b,et,dt)}function p(et,dt){d(v,et,dt)}_.preMessage=m,_.resetWarned=h,_.noteOnce=p;var S=null,k=o(28991),O=o(90484);function F(et,dt,Ke){var Ge=React.useRef({});return(!("value"in Ge.current)||Ke(Ge.current.condition,dt))&&(Ge.current.value=et(),Ge.current.condition=dt),Ge.current.value}function D(et,dt){typeof et=="function"?et(dt):(0,O.Z)(et)==="object"&&et&&"current"in et&&(et.current=dt)}function Z(){for(var et=arguments.length,dt=new Array(et),Ke=0;Ke<et;Ke++)dt[Ke]=arguments[Ke];var Ge=dt.filter(function(wt){return wt});return Ge.length<=1?Ge[0]:function(wt){dt.forEach(function(Vt){D(Vt,wt)})}}function W(){for(var et=arguments.length,dt=new Array(et),Ke=0;Ke<et;Ke++)dt[Ke]=arguments[Ke];return useMemo(function(){return Z.apply(void 0,dt)},dt,function(Ge,wt){return Ge.length!==wt.length||Ge.every(function(Vt,gt){return Vt!==wt[gt]})})}function U(et){var dt,Ke,Ge=(0,A.isMemo)(et)?et.type.type:et.type;return!(typeof Ge=="function"&&!((dt=Ge.prototype)!==null&&dt!==void 0&&dt.render)||typeof et=="function"&&!((Ke=et.prototype)!==null&&Ke!==void 0&&Ke.render))}function L(et){return!isValidElement(et)||isFragment(et)?!1:U(et)}var V=o(73935);function $(et){return et instanceof HTMLElement||et instanceof SVGElement}function G(et){return $(et)?et:et instanceof g.Component?V.findDOMNode(et):null}var z=o(55065),K=new Map;function re(et){et.forEach(function(dt){var Ke,Ge=dt.target;(Ke=K.get(Ge))===null||Ke===void 0||Ke.forEach(function(wt){return wt(Ge)})})}var ne=new z.Z(re),Q=null,ue=null;function he(et,dt){K.has(et)||(K.set(et,new Set),ne.observe(et)),K.get(et).add(dt)}function Ee(et,dt){K.has(et)&&(K.get(et).delete(dt),K.get(et).size||(ne.unobserve(et),K.delete(et)))}var ce=o(6610),ve=o(5991),fe=o(10379),we=o(44144),me=function(et){(0,fe.Z)(Ke,et);var dt=(0,we.Z)(Ke);function Ke(){return(0,ce.Z)(this,Ke),dt.apply(this,arguments)}return(0,ve.Z)(Ke,[{key:"render",value:function(){return this.props.children}}]),Ke}(g.Component),Pe=g.createContext(null);function pe(et){var dt=et.children,Ke=et.onBatchResize,Ge=g.useRef(0),wt=g.useRef([]),Vt=g.useContext(Pe),gt=g.useCallback(function(it,Le,ct){Ge.current+=1;var at=Ge.current;wt.current.push({size:it,element:Le,data:ct}),Promise.resolve().then(function(){at===Ge.current&&(Ke==null||Ke(wt.current),wt.current=[])}),Vt==null||Vt(it,Le,ct)},[Ke,Vt]);return g.createElement(Pe.Provider,{value:gt},dt)}function Ie(et,dt){var Ke=et.children,Ge=et.disabled,wt=g.useRef(null),Vt=g.useRef(null),gt=g.useContext(Pe),it=typeof Ke=="function",Le=it?Ke(wt):Ke,ct=g.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),at=!it&&g.isValidElement(Le)&&U(Le),jt=at?Le.ref:null,St=g.useMemo(function(){return Z(jt,wt)},[jt,wt]),fn=function(){return G(wt.current)||G(Vt.current)};g.useImperativeHandle(dt,function(){return fn()});var Xt=g.useRef(et);Xt.current=et;var Yt=g.useCallback(function(Rt){var Lt=Xt.current,ze=Lt.onResize,rt=Lt.data,tt=Rt.getBoundingClientRect(),de=tt.width,ot=tt.height,Et=Rt.offsetWidth,Ht=Rt.offsetHeight,Jt=Math.floor(de),Qt=Math.floor(ot);if(ct.current.width!==Jt||ct.current.height!==Qt||ct.current.offsetWidth!==Et||ct.current.offsetHeight!==Ht){var an={width:Jt,height:Qt,offsetWidth:Et,offsetHeight:Ht};ct.current=an;var Un=Et===Math.round(de)?de:Et,qt=Ht===Math.round(ot)?ot:Ht,rn=(0,k.Z)((0,k.Z)({},an),{},{offsetWidth:Un,offsetHeight:qt});gt==null||gt(rn,Rt,rt),ze&&Promise.resolve().then(function(){ze(rn,Rt)})}},[]);return g.useEffect(function(){var Rt=fn();return Rt&&!Ge&&he(Rt,Yt),function(){return Ee(Rt,Yt)}},[wt.current,Ge]),g.createElement(me,{ref:Vt},at?g.cloneElement(Le,{ref:St}):Le)}var Je=g.forwardRef(Ie),ke=Je,De="rc-observer-key";function Fe(et,dt){var Ke=et.children,Ge=typeof Ke=="function"?[Ke]:y(Ke);return Ge.map(function(wt,Vt){var gt=(wt==null?void 0:wt.key)||"".concat(De,"-").concat(Vt);return g.createElement(ke,(0,x.Z)({},et,{key:gt,ref:Vt===0?dt:void 0}),wt)})}var Qe=g.forwardRef(Fe);Qe.Collection=pe;var qe=Qe},32455:function(oe,N,o){"use strict";o.d(N,{ZP:function(){return m}});var x=o(28481),g=o(67294),A=o(87824),y=0,M=(0,A.Z)();function w(){var b;return M?(b=y,y+=1):b="TEST_OR_SSR",b}function m(b){var v=g.useState(),h=(0,x.Z)(v,2),d=h[0],_=h[1];return g.useEffect(function(){_("rc_select_".concat(w()))},[]),b||d}},25281:function(oe,N,o){"use strict";o.d(N,{Ac:function(){return $e},Xo:function(){return Bn},Wx:function(){return _r},ZP:function(){return Ui},lk:function(){return Ie}});var x=o(22122),g=o(85061),A=o(96156),y=o(28991),M=o(28481),w=o(81253),m=o(90484),b=o(67294);function v(Cn){var Kn=b.useRef();Kn.current=Cn;var Pn=b.useCallback(function(){for(var At,ar=arguments.length,ta=new Array(ar),Yn=0;Yn<ar;Yn++)ta[Yn]=arguments[Yn];return(At=Kn.current)===null||At===void 0?void 0:At.call.apply(At,[Kn].concat(ta))},[]);return Pn}var h=o(87824),d=(0,h.Z)()?b.useLayoutEffect:b.useEffect,_=function(Kn,Pn){var At=b.useRef(!0);d(function(){return Kn(At.current)},Pn),d(function(){return At.current=!1,function(){At.current=!0}},[])},p=function(Kn,Pn){_(function(At){if(!At)return Kn()},Pn)},S=_;function k(Cn){var Kn=b.useRef(!1),Pn=b.useState(Cn),At=(0,M.Z)(Pn,2),ar=At[0],ta=At[1];b.useEffect(function(){return Kn.current=!1,function(){Kn.current=!0}},[]);function Yn(Qa,Ua){Ua&&Kn.current||ta(Qa)}return[ar,Yn]}function O(Cn){return Cn!==void 0}function F(Cn,Kn){var Pn=Kn||{},At=Pn.defaultValue,ar=Pn.value,ta=Pn.onChange,Yn=Pn.postState,Qa=k(function(){return O(ar)?ar:O(At)?typeof At=="function"?At():At:typeof Cn=="function"?Cn():Cn}),Ua=(0,M.Z)(Qa,2),Fi=Ua[0],Xa=Ua[1],$i=ar!==void 0?ar:Fi,La=Yn?Yn($i):$i,ja=v(ta),ei=k([$i]),Do=(0,M.Z)(ei,2),yo=Do[0],to=Do[1];p(function(){var cs=yo[0];Fi!==cs&&ja(Fi,cs)},[yo]),p(function(){O(ar)||Xa(ar)},[ar]);var fs=v(function(cs,Os){Xa(cs,Os),to([$i],Os)});return[La,fs]}var D={},Z=[],W=function(Kn){Z.push(Kn)};function U(Cn,Kn){if(!1)var Pn}function L(Cn,Kn){if(!1)var Pn}function V(){D={}}function $(Cn,Kn,Pn){!Kn&&!D[Pn]&&(Cn(!1,Pn),D[Pn]=!0)}function G(Cn,Kn){$(U,Cn,Kn)}function z(Cn,Kn){$(L,Cn,Kn)}G.preMessage=W,G.resetWarned=V,G.noteOnce=z;var K=G,re=o(35510),ne=o.n(re),Q=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Cn=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Cn)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Cn==null?void 0:Cn.substr(0,4))},ue={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Kn){var Pn=Kn.keyCode;if(Kn.altKey&&!Kn.ctrlKey||Kn.metaKey||Pn>=ue.F1&&Pn<=ue.F12)return!1;switch(Pn){case ue.ALT:case ue.CAPS_LOCK:case ue.CONTEXT_MENU:case ue.CTRL:case ue.DOWN:case ue.END:case ue.ESC:case ue.HOME:case ue.INSERT:case ue.LEFT:case ue.MAC_FF_META:case ue.META:case ue.NUMLOCK:case ue.NUM_CENTER:case ue.PAGE_DOWN:case ue.PAGE_UP:case ue.PAUSE:case ue.PRINT_SCREEN:case ue.RIGHT:case ue.SHIFT:case ue.UP:case ue.WIN_KEY:case ue.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Kn){if(Kn>=ue.ZERO&&Kn<=ue.NINE||Kn>=ue.NUM_ZERO&&Kn<=ue.NUM_MULTIPLY||Kn>=ue.A&&Kn<=ue.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Kn===0)return!0;switch(Kn){case ue.SPACE:case ue.QUESTION_MARK:case ue.NUM_PLUS:case ue.NUM_MINUS:case ue.NUM_PERIOD:case ue.NUM_DIVISION:case ue.SEMICOLON:case ue.DASH:case ue.EQUALS:case ue.COMMA:case ue.PERIOD:case ue.SLASH:case ue.APOSTROPHE:case ue.SINGLE_QUOTE:case ue.OPEN_SQUARE_BRACKET:case ue.BACKSLASH:case ue.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},he=ue,Ee=o(54323);function ce(Cn,Kn,Pn){var At=b.useRef({});return(!("value"in At.current)||Pn(At.current.condition,Kn))&&(At.current.value=Cn(),At.current.condition=Kn),At.current.value}function ve(Cn,Kn){typeof Cn=="function"?Cn(Kn):(0,m.Z)(Cn)==="object"&&Cn&&"current"in Cn&&(Cn.current=Kn)}function fe(){for(var Cn=arguments.length,Kn=new Array(Cn),Pn=0;Pn<Cn;Pn++)Kn[Pn]=arguments[Pn];var At=Kn.filter(function(ar){return ar});return At.length<=1?At[0]:function(ar){Kn.forEach(function(ta){ve(ta,ar)})}}function we(){for(var Cn=arguments.length,Kn=new Array(Cn),Pn=0;Pn<Cn;Pn++)Kn[Pn]=arguments[Pn];return ce(function(){return fe.apply(void 0,Kn)},Kn,function(At,ar){return At.length!==ar.length||At.every(function(ta,Yn){return ta!==ar[Yn]})})}function me(Cn){var Kn,Pn,At=isMemo(Cn)?Cn.type.type:Cn.type;return!(typeof At=="function"&&!((Kn=At.prototype)!==null&&Kn!==void 0&&Kn.render)||typeof Cn=="function"&&!((Pn=Cn.prototype)!==null&&Pn!==void 0&&Pn.render))}function Pe(Cn){return!isValidElement(Cn)||isFragment(Cn)?!1:me(Cn)}var pe=b.createContext(null);function Ie(){return b.useContext(pe)}function Je(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Kn=b.useState(!1),Pn=(0,M.Z)(Kn,2),At=Pn[0],ar=Pn[1],ta=b.useRef(null),Yn=function(){window.clearTimeout(ta.current)};b.useEffect(function(){return Yn},[]);var Qa=function(Fi,Xa){Yn(),ta.current=window.setTimeout(function(){ar(Fi),Xa&&Xa()},Cn)};return[At,Qa,Yn]}function ke(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Kn=b.useRef(null),Pn=b.useRef(null);b.useEffect(function(){return function(){window.clearTimeout(Pn.current)}},[]);function At(ar){(ar||Kn.current===null)&&(Kn.current=ar),window.clearTimeout(Pn.current),Pn.current=window.setTimeout(function(){Kn.current=null},Cn)}return[function(){return Kn.current},At]}function De(Cn,Kn,Pn,At){var ar=b.useRef(null);ar.current={open:Kn,triggerOpen:Pn,customizedTrigger:At},b.useEffect(function(){function ta(Yn){var Qa;if(!((Qa=ar.current)!==null&&Qa!==void 0&&Qa.customizedTrigger)){var Ua=Yn.target;Ua.shadowRoot&&Yn.composed&&(Ua=Yn.composedPath()[0]||Ua),ar.current.open&&Cn().filter(function(Fi){return Fi}).every(function(Fi){return!Fi.contains(Ua)&&Fi!==Ua})&&ar.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ta),function(){return window.removeEventListener("mousedown",ta)}},[])}var Fe=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
||
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
||
charSet checked classID className colSpan cols content contentEditable contextMenu
|
||
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
||
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
||
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
||
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
||
mediaGroup method min minLength multiple muted name noValidate nonce open
|
||
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
||
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
||
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
||
summary tabIndex target title type useMap value width wmode wrap`,Qe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
||
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
||
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
||
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
||
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
||
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
||
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,qe="".concat(Fe," ").concat(Qe).split(/[\s\n]+/),et="aria-",dt="data-";function Ke(Cn,Kn){return Cn.indexOf(Kn)===0}function Ge(Cn){var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pn;Kn===!1?Pn={aria:!0,data:!0,attr:!0}:Kn===!0?Pn={aria:!0}:Pn=(0,y.Z)({},Kn);var At={};return Object.keys(Cn).forEach(function(ar){(Pn.aria&&(ar==="role"||Ke(ar,et))||Pn.data&&Ke(ar,dt)||Pn.attr&&qe.includes(ar))&&(At[ar]=Cn[ar])}),At}var wt=o(43421),Vt=function(Kn){var Pn=Kn.className,At=Kn.customizeIcon,ar=Kn.customizeIconProps,ta=Kn.onMouseDown,Yn=Kn.onClick,Qa=Kn.children,Ua;return typeof At=="function"?Ua=At(ar):Ua=At,b.createElement("span",{className:Pn,onMouseDown:function(Xa){Xa.preventDefault(),ta&&ta(Xa)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Yn,"aria-hidden":!0},Ua!==void 0?Ua:b.createElement("span",{className:ne()(Pn.split(/\s+/).map(function(Fi){return"".concat(Fi,"-icon")}))},Qa))},gt=Vt,it=function(Kn,Pn){var At,ar,ta=Kn.prefixCls,Yn=Kn.id,Qa=Kn.inputElement,Ua=Kn.disabled,Fi=Kn.tabIndex,Xa=Kn.autoFocus,$i=Kn.autoComplete,La=Kn.editable,ja=Kn.activeDescendantId,ei=Kn.value,Do=Kn.maxLength,yo=Kn.onKeyDown,to=Kn.onMouseDown,fs=Kn.onChange,cs=Kn.onPaste,Os=Kn.onCompositionStart,vl=Kn.onCompositionEnd,Ar=Kn.open,Rn=Kn.attrs,Sr=Qa||b.createElement("input",null),nn=Sr,sn=nn.ref,Ot=nn.props,gr=Ot.onKeyDown,Gr=Ot.onChange,Ln=Ot.onMouseDown,Tr=Ot.onCompositionStart,Dn=Ot.onCompositionEnd,Pr=Ot.style;return U(!("maxLength"in Sr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Sr=b.cloneElement(Sr,(0,y.Z)((0,y.Z)((0,y.Z)({type:"search"},Ot),{},{id:Yn,ref:fe(Pn,sn),disabled:Ua,tabIndex:Fi,autoComplete:$i||"off",autoFocus:Xa,className:ne()("".concat(ta,"-selection-search-input"),(At=Sr)===null||At===void 0||(ar=At.props)===null||ar===void 0?void 0:ar.className),role:"combobox","aria-expanded":Ar,"aria-haspopup":"listbox","aria-owns":"".concat(Yn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Yn,"_list"),"aria-activedescendant":ja},Rn),{},{value:La?ei:"",maxLength:Do,readOnly:!La,unselectable:La?null:"on",style:(0,y.Z)((0,y.Z)({},Pr),{},{opacity:La?null:0}),onKeyDown:function(ka){yo(ka),gr&&gr(ka)},onMouseDown:function(ka){to(ka),Ln&&Ln(ka)},onChange:function(ka){fs(ka),Gr&&Gr(ka)},onCompositionStart:function(ka){Os(ka),Tr&&Tr(ka)},onCompositionEnd:function(ka){vl(ka),Dn&&Dn(ka)},onPaste:cs})),Sr},Le=b.forwardRef(it);Le.displayName="Input";var ct=Le;function at(Cn){return Array.isArray(Cn)?Cn:Cn!==void 0?[Cn]:[]}var jt=typeof window!="undefined"&&window.document&&window.document.documentElement,St=jt;function fn(Cn){return Cn!=null}function Xt(Cn){return["string","number"].includes((0,m.Z)(Cn))}function Yt(Cn){var Kn=void 0;return Cn&&(Xt(Cn.title)?Kn=Cn.title.toString():Xt(Cn.label)&&(Kn=Cn.label.toString())),Kn}function Rt(Cn,Kn){St?b.useLayoutEffect(Cn,Kn):b.useEffect(Cn,Kn)}function Lt(Cn){var Kn;return(Kn=Cn.key)!==null&&Kn!==void 0?Kn:Cn.value}var ze=function(Kn){Kn.preventDefault(),Kn.stopPropagation()},rt=function(Kn){var Pn=Kn.id,At=Kn.prefixCls,ar=Kn.values,ta=Kn.open,Yn=Kn.searchValue,Qa=Kn.autoClearSearchValue,Ua=Kn.inputRef,Fi=Kn.placeholder,Xa=Kn.disabled,$i=Kn.mode,La=Kn.showSearch,ja=Kn.autoFocus,ei=Kn.autoComplete,Do=Kn.activeDescendantId,yo=Kn.tabIndex,to=Kn.removeIcon,fs=Kn.maxTagCount,cs=Kn.maxTagTextLength,Os=Kn.maxTagPlaceholder,vl=Os===void 0?function(Ys){return"+ ".concat(Ys.length," ...")}:Os,Ar=Kn.tagRender,Rn=Kn.onToggleOpen,Sr=Kn.onRemove,nn=Kn.onInputChange,sn=Kn.onInputPaste,Ot=Kn.onInputKeyDown,gr=Kn.onInputMouseDown,Gr=Kn.onInputCompositionStart,Ln=Kn.onInputCompositionEnd,Tr=b.useRef(null),Dn=(0,b.useState)(0),Pr=(0,M.Z)(Dn,2),fa=Pr[0],ka=Pr[1],Li=(0,b.useState)(!1),zi=(0,M.Z)(Li,2),Mo=zi[0],Za=zi[1],ao="".concat(At,"-selection"),Mi=ta||$i==="multiple"&&Qa===!1||$i==="tags"?Yn:"",Eo=$i==="tags"||$i==="multiple"&&Qa===!1||La&&(ta||Mo);Rt(function(){ka(Tr.current.scrollWidth)},[Mi]);function Xi(Ys,hl,Rs,xl,Wl){return b.createElement("span",{className:ne()("".concat(ao,"-item"),(0,A.Z)({},"".concat(ao,"-item-disabled"),Rs)),title:Yt(Ys)},b.createElement("span",{className:"".concat(ao,"-item-content")},hl),xl&&b.createElement(gt,{className:"".concat(ao,"-item-remove"),onMouseDown:ze,onClick:Wl,customizeIcon:to},"\xD7"))}function Bo(Ys,hl,Rs,xl,Wl){var _l=function(zn){ze(zn),Rn(!ta)};return b.createElement("span",{onMouseDown:_l},Ar({label:hl,value:Ys,disabled:Rs,closable:xl,onClose:Wl}))}function ol(Ys){var hl=Ys.disabled,Rs=Ys.label,xl=Ys.value,Wl=!Xa&&!hl,_l=Rs;if(typeof cs=="number"&&(typeof Rs=="string"||typeof Rs=="number")){var Ls=String(_l);Ls.length>cs&&(_l="".concat(Ls.slice(0,cs),"..."))}var zn=function(Hr){Hr&&Hr.stopPropagation(),Sr(Ys)};return typeof Ar=="function"?Bo(xl,_l,hl,Wl,zn):Xi(Ys,_l,hl,Wl,zn)}function Il(Ys){var hl=typeof vl=="function"?vl(Ys):vl;return Xi({title:hl},hl,!1)}var ms=b.createElement("div",{className:"".concat(ao,"-search"),style:{width:fa},onFocus:function(){Za(!0)},onBlur:function(){Za(!1)}},b.createElement(ct,{ref:Ua,open:ta,prefixCls:At,id:Pn,inputElement:null,disabled:Xa,autoFocus:ja,autoComplete:ei,editable:Eo,activeDescendantId:Do,value:Mi,onKeyDown:Ot,onMouseDown:gr,onChange:nn,onPaste:sn,onCompositionStart:Gr,onCompositionEnd:Ln,tabIndex:yo,attrs:Ge(Kn,!0)}),b.createElement("span",{ref:Tr,className:"".concat(ao,"-search-mirror"),"aria-hidden":!0},Mi,"\xA0")),mc=b.createElement(wt.Z,{prefixCls:"".concat(ao,"-overflow"),data:ar,renderItem:ol,renderRest:Il,suffix:ms,itemKey:Lt,maxCount:fs});return b.createElement(b.Fragment,null,mc,!ar.length&&!Mi&&b.createElement("span",{className:"".concat(ao,"-placeholder")},Fi))},tt=rt,de=function(Kn){var Pn=Kn.inputElement,At=Kn.prefixCls,ar=Kn.id,ta=Kn.inputRef,Yn=Kn.disabled,Qa=Kn.autoFocus,Ua=Kn.autoComplete,Fi=Kn.activeDescendantId,Xa=Kn.mode,$i=Kn.open,La=Kn.values,ja=Kn.placeholder,ei=Kn.tabIndex,Do=Kn.showSearch,yo=Kn.searchValue,to=Kn.activeValue,fs=Kn.maxLength,cs=Kn.onInputKeyDown,Os=Kn.onInputMouseDown,vl=Kn.onInputChange,Ar=Kn.onInputPaste,Rn=Kn.onInputCompositionStart,Sr=Kn.onInputCompositionEnd,nn=b.useState(!1),sn=(0,M.Z)(nn,2),Ot=sn[0],gr=sn[1],Gr=Xa==="combobox",Ln=Gr||Do,Tr=La[0],Dn=yo||"";Gr&&to&&!Ot&&(Dn=to),b.useEffect(function(){Gr&&gr(!1)},[Gr,to]);var Pr=Xa!=="combobox"&&!$i&&!Do?!1:!!Dn,fa=Yt(Tr),ka=function(){if(Tr)return null;var zi=Pr?{visibility:"hidden"}:void 0;return b.createElement("span",{className:"".concat(At,"-selection-placeholder"),style:zi},ja)};return b.createElement(b.Fragment,null,b.createElement("span",{className:"".concat(At,"-selection-search")},b.createElement(ct,{ref:ta,prefixCls:At,id:ar,open:$i,inputElement:Pn,disabled:Yn,autoFocus:Qa,autoComplete:Ua,editable:Ln,activeDescendantId:Fi,value:Dn,onKeyDown:cs,onMouseDown:Os,onChange:function(zi){gr(!0),vl(zi)},onPaste:Ar,onCompositionStart:Rn,onCompositionEnd:Sr,tabIndex:ei,attrs:Ge(Kn,!0),maxLength:Gr?fs:void 0})),!Gr&&Tr?b.createElement("span",{className:"".concat(At,"-selection-item"),title:fa,style:Pr?{visibility:"hidden"}:void 0},Tr.label):null,ka())},ot=de;function Et(Cn){return![he.ESC,he.SHIFT,he.BACKSPACE,he.TAB,he.WIN_KEY,he.ALT,he.META,he.WIN_KEY_RIGHT,he.CTRL,he.SEMICOLON,he.EQUALS,he.CAPS_LOCK,he.CONTEXT_MENU,he.F1,he.F2,he.F3,he.F4,he.F5,he.F6,he.F7,he.F8,he.F9,he.F10,he.F11,he.F12].includes(Cn)}var Ht=function(Kn,Pn){var At=(0,b.useRef)(null),ar=(0,b.useRef)(!1),ta=Kn.prefixCls,Yn=Kn.open,Qa=Kn.mode,Ua=Kn.showSearch,Fi=Kn.tokenWithEnter,Xa=Kn.autoClearSearchValue,$i=Kn.onSearch,La=Kn.onSearchSubmit,ja=Kn.onToggleOpen,ei=Kn.onInputKeyDown,Do=Kn.domRef;b.useImperativeHandle(Pn,function(){return{focus:function(){At.current.focus()},blur:function(){At.current.blur()}}});var yo=ke(0),to=(0,M.Z)(yo,2),fs=to[0],cs=to[1],Os=function(Pr){var fa=Pr.which;(fa===he.UP||fa===he.DOWN)&&Pr.preventDefault(),ei&&ei(Pr),fa===he.ENTER&&Qa==="tags"&&!ar.current&&!Yn&&(La==null||La(Pr.target.value)),Et(fa)&&ja(!0)},vl=function(){cs(!0)},Ar=(0,b.useRef)(null),Rn=function(Pr){$i(Pr,!0,ar.current)!==!1&&ja(!0)},Sr=function(){ar.current=!0},nn=function(Pr){ar.current=!1,Qa!=="combobox"&&Rn(Pr.target.value)},sn=function(Pr){var fa=Pr.target.value;if(Fi&&Ar.current&&/[\r\n]/.test(Ar.current)){var ka=Ar.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");fa=fa.replace(ka,Ar.current)}Ar.current=null,Rn(fa)},Ot=function(Pr){var fa=Pr.clipboardData,ka=fa.getData("text");Ar.current=ka},gr=function(Pr){var fa=Pr.target;if(fa!==At.current){var ka=document.body.style.msTouchAction!==void 0;ka?setTimeout(function(){At.current.focus()}):At.current.focus()}},Gr=function(Pr){var fa=fs();Pr.target!==At.current&&!fa&&Qa!=="combobox"&&Pr.preventDefault(),(Qa!=="combobox"&&(!Ua||!fa)||!Yn)&&(Yn&&Xa!==!1&&$i("",!0,!1),ja())},Ln={inputRef:At,onInputKeyDown:Os,onInputMouseDown:vl,onInputChange:sn,onInputPaste:Ot,onInputCompositionStart:Sr,onInputCompositionEnd:nn},Tr=Qa==="multiple"||Qa==="tags"?b.createElement(tt,(0,x.Z)({},Kn,Ln)):b.createElement(ot,(0,x.Z)({},Kn,Ln));return b.createElement("div",{ref:Do,className:"".concat(ta,"-selector"),onClick:gr,onMouseDown:Gr},Tr)},Jt=b.forwardRef(Ht);Jt.displayName="Selector";var Qt=Jt,an=o(39971),Un=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],qt=function(Kn){var Pn=Kn===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Pn,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Pn,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Pn,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Pn,adjustY:1}}}},rn=function(Kn,Pn){var At=Kn.prefixCls,ar=Kn.disabled,ta=Kn.visible,Yn=Kn.children,Qa=Kn.popupElement,Ua=Kn.containerWidth,Fi=Kn.animation,Xa=Kn.transitionName,$i=Kn.dropdownStyle,La=Kn.dropdownClassName,ja=Kn.direction,ei=ja===void 0?"ltr":ja,Do=Kn.placement,yo=Kn.dropdownMatchSelectWidth,to=Kn.dropdownRender,fs=Kn.dropdownAlign,cs=Kn.getPopupContainer,Os=Kn.empty,vl=Kn.getTriggerDOMNode,Ar=Kn.onPopupVisibleChange,Rn=Kn.onPopupMouseEnter,Sr=(0,w.Z)(Kn,Un),nn="".concat(At,"-dropdown"),sn=Qa;to&&(sn=to(Qa));var Ot=b.useMemo(function(){return qt(yo)},[yo]),gr=Fi?"".concat(nn,"-").concat(Fi):Xa,Gr=b.useRef(null);b.useImperativeHandle(Pn,function(){return{getPopupElement:function(){return Gr.current}}});var Ln=(0,y.Z)({minWidth:Ua},$i);return typeof yo=="number"?Ln.width=yo:yo&&(Ln.width=Ua),b.createElement(an.Z,(0,x.Z)({},Sr,{showAction:Ar?["click"]:[],hideAction:Ar?["click"]:[],popupPlacement:Do||(ei==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ot,prefixCls:nn,popupTransitionName:gr,popup:b.createElement("div",{ref:Gr,onMouseEnter:Rn},sn),popupAlign:fs,popupVisible:ta,getPopupContainer:cs,popupClassName:ne()(La,(0,A.Z)({},"".concat(nn,"-empty"),Os)),popupStyle:Ln,getTriggerDOMNode:vl,onPopupVisibleChange:Ar}),Yn)},cn=b.forwardRef(rn);cn.displayName="SelectTrigger";var er=cn,rr=o(99809);function nt(Cn,Kn){var Pn=Cn.key,At;return"value"in Cn&&(At=Cn.value),Pn!=null?Pn:At!==void 0?At:"rc-index-key-".concat(Kn)}function lr(Cn,Kn){var Pn=Cn||{},At=Pn.label,ar=Pn.value,ta=Pn.options;return{label:At||(Kn?"children":"label"),value:ar||"value",options:ta||"options"}}function Hn(Cn){var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pn=Kn.fieldNames,At=Kn.childrenAsData,ar=[],ta=lr(Pn,!1),Yn=ta.label,Qa=ta.value,Ua=ta.options;function Fi(Xa,$i){Xa.forEach(function(La){var ja=La[Yn];if($i||!(Ua in La)){var ei=La[Qa];ar.push({key:nt(La,ar.length),groupOption:$i,data:La,label:ja,value:ei})}else{var Do=ja;Do===void 0&&At&&(Do=La.label),ar.push({key:nt(La,ar.length),group:!0,data:La,label:Do}),Fi(La[Ua],!0)}})}return Fi(Cn,!1),ar}function ut(Cn){var Kn=(0,y.Z)({},Cn);return"props"in Kn||Object.defineProperty(Kn,"props",{get:function(){return K(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Kn}}),Kn}function bt(Cn,Kn){if(!Kn||!Kn.length)return null;var Pn=!1;function At(ta,Yn){var Qa=(0,rr.Z)(Yn),Ua=Qa[0],Fi=Qa.slice(1);if(!Ua)return[ta];var Xa=ta.split(Ua);return Pn=Pn||Xa.length>1,Xa.reduce(function($i,La){return[].concat((0,g.Z)($i),(0,g.Z)(At(La,Fi)))},[]).filter(function($i){return $i})}var ar=At(Cn,Kn);return Pn?ar:null}var We=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],be=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ae(Cn){return Cn==="tags"||Cn==="multiple"}var Ue=b.forwardRef(function(Cn,Kn){var Pn,At,ar=Cn.id,ta=Cn.prefixCls,Yn=Cn.className,Qa=Cn.showSearch,Ua=Cn.tagRender,Fi=Cn.direction,Xa=Cn.omitDomProps,$i=Cn.displayValues,La=Cn.onDisplayValuesChange,ja=Cn.emptyOptions,ei=Cn.notFoundContent,Do=ei===void 0?"Not Found":ei,yo=Cn.onClear,to=Cn.mode,fs=Cn.disabled,cs=Cn.loading,Os=Cn.getInputElement,vl=Cn.getRawInputElement,Ar=Cn.open,Rn=Cn.defaultOpen,Sr=Cn.onDropdownVisibleChange,nn=Cn.activeValue,sn=Cn.onActiveValueChange,Ot=Cn.activeDescendantId,gr=Cn.searchValue,Gr=Cn.autoClearSearchValue,Ln=Cn.onSearch,Tr=Cn.onSearchSplit,Dn=Cn.tokenSeparators,Pr=Cn.allowClear,fa=Cn.showArrow,ka=Cn.inputIcon,Li=Cn.clearIcon,zi=Cn.OptionList,Mo=Cn.animation,Za=Cn.transitionName,ao=Cn.dropdownStyle,Mi=Cn.dropdownClassName,Eo=Cn.dropdownMatchSelectWidth,Xi=Cn.dropdownRender,Bo=Cn.dropdownAlign,ol=Cn.placement,Il=Cn.getPopupContainer,ms=Cn.showAction,mc=ms===void 0?[]:ms,Ys=Cn.onFocus,hl=Cn.onBlur,Rs=Cn.onKeyUp,xl=Cn.onKeyDown,Wl=Cn.onMouseDown,_l=(0,w.Z)(Cn,We),Ls=Ae(to),zn=(Qa!==void 0?Qa:Ls)||to==="combobox",Dr=(0,y.Z)({},_l);be.forEach(function(ni){delete Dr[ni]}),Xa==null||Xa.forEach(function(ni){delete Dr[ni]});var Hr=b.useState(!1),_a=(0,M.Z)(Hr,2),Ti=_a[0],Ci=_a[1];b.useEffect(function(){Ci(Q())},[]);var da=b.useRef(null),Da=b.useRef(null),mi=b.useRef(null),Ho=b.useRef(null),al=b.useRef(null),ml=Je(),Xs=(0,M.Z)(ml,3),Ps=Xs[0],dl=Xs[1],ql=Xs[2];b.useImperativeHandle(Kn,function(){var ni,yi;return{focus:(ni=Ho.current)===null||ni===void 0?void 0:ni.focus,blur:(yi=Ho.current)===null||yi===void 0?void 0:yi.blur,scrollTo:function(is){var mo;return(mo=al.current)===null||mo===void 0?void 0:mo.scrollTo(is)}}});var Dc=b.useMemo(function(){var ni;if(to!=="combobox")return gr;var yi=(ni=$i[0])===null||ni===void 0?void 0:ni.value;return typeof yi=="string"||typeof yi=="number"?String(yi):""},[gr,to,$i]),Jl=to==="combobox"&&typeof Os=="function"&&Os()||null,oc=typeof vl=="function"&&vl(),xu=we(Da,oc==null||(Pn=oc.props)===null||Pn===void 0?void 0:Pn.ref),yf=F(void 0,{defaultValue:Rn,value:Ar}),ku=(0,M.Z)(yf,2),Zc=ku[0],Zu=ku[1],Fc=Zc,Hc=!Do&&ja;(fs||Hc&&Fc&&to==="combobox")&&(Fc=!1);var Vu=Hc?!1:Fc,ws=b.useCallback(function(ni){var yi=ni!==void 0?ni:!Fc;fs||(Zu(yi),Fc!==yi&&(Sr==null||Sr(yi)))},[fs,Fc,Zu,Sr]),fc=b.useMemo(function(){return(Dn||[]).some(function(ni){return[`
|
||
`,`\r
|
||
`].includes(ni)})},[Dn]),Tc=function(yi,Zo,is){var mo=!0,Ml=yi;sn==null||sn(null);var yc=is?null:bt(yi,Dn);return to!=="combobox"&&yc&&(Ml="",Tr==null||Tr(yc),ws(!1),mo=!1),Ln&&Dc!==Ml&&Ln(Ml,{source:Zo?"typing":"effect"}),mo},jc=function(yi){!yi||!yi.trim()||Ln(yi,{source:"submit"})};b.useEffect(function(){!Fc&&!Ls&&to!=="combobox"&&Tc("",!1,!1)},[Fc]),b.useEffect(function(){Zc&&fs&&Zu(!1),fs&&dl(!1)},[fs]);var lu=ke(),hu=(0,M.Z)(lu,2),of=hu[0],uu=hu[1],zu=function(yi){var Zo=of(),is=yi.which;if(is===he.ENTER&&(to!=="combobox"&&yi.preventDefault(),Fc||ws(!0)),uu(!!Dc),is===he.BACKSPACE&&!Zo&&Ls&&!Dc&&$i.length){for(var mo=(0,g.Z)($i),Ml=null,yc=mo.length-1;yc>=0;yc-=1){var oa=mo[yc];if(!oa.disabled){mo.splice(yc,1),Ml=oa;break}}Ml&&La(mo,{type:"remove",values:[Ml]})}for(var sl=arguments.length,fl=new Array(sl>1?sl-1:0),bc=1;bc<sl;bc++)fl[bc-1]=arguments[bc];if(Fc&&al.current){var Rf;(Rf=al.current).onKeyDown.apply(Rf,[yi].concat(fl))}xl==null||xl.apply(void 0,[yi].concat(fl))},cf=function(yi){for(var Zo=arguments.length,is=new Array(Zo>1?Zo-1:0),mo=1;mo<Zo;mo++)is[mo-1]=arguments[mo];if(Fc&&al.current){var Ml;(Ml=al.current).onKeyUp.apply(Ml,[yi].concat(is))}Rs==null||Rs.apply(void 0,[yi].concat(is))},bf=function(yi){var Zo=$i.filter(function(is){return is!==yi});La(Zo,{type:"remove",values:[yi]})},Cu=b.useRef(!1),rf=function(){dl(!0),fs||(Ys&&!Cu.current&&Ys.apply(void 0,arguments),mc.includes("focus")&&ws(!0)),Cu.current=!0},Bu=function(){dl(!1,function(){Cu.current=!1,ws(!1)}),!fs&&(Dc&&(to==="tags"?Ln(Dc,{source:"submit"}):to==="multiple"&&Ln("",{source:"blur"})),hl&&hl.apply(void 0,arguments))},Tf=[];b.useEffect(function(){return function(){Tf.forEach(function(ni){return clearTimeout(ni)}),Tf.splice(0,Tf.length)}},[]);var ed=function(yi){var Zo,is=yi.target,mo=(Zo=mi.current)===null||Zo===void 0?void 0:Zo.getPopupElement();if(mo&&mo.contains(is)){var Ml=setTimeout(function(){var fl=Tf.indexOf(Ml);if(fl!==-1&&Tf.splice(fl,1),ql(),!Ti&&!mo.contains(document.activeElement)){var bc;(bc=Ho.current)===null||bc===void 0||bc.focus()}});Tf.push(Ml)}for(var yc=arguments.length,oa=new Array(yc>1?yc-1:0),sl=1;sl<yc;sl++)oa[sl-1]=arguments[sl];Wl==null||Wl.apply(void 0,[yi].concat(oa))},Fd=b.useState(null),Pd=(0,M.Z)(Fd,2),Nc=Pd[0],eu=Pd[1],If=b.useState({}),$f=(0,M.Z)(If,2),Te=$f[1];function _t(){Te({})}S(function(){if(Vu){var ni,yi=Math.ceil((ni=da.current)===null||ni===void 0?void 0:ni.offsetWidth);Nc!==yi&&!Number.isNaN(yi)&&eu(yi)}},[Vu]);var Vn;oc&&(Vn=function(yi){ws(yi)}),De(function(){var ni;return[da.current,(ni=mi.current)===null||ni===void 0?void 0:ni.getPopupElement()]},Vu,ws,!!oc);var br=b.useMemo(function(){return(0,y.Z)((0,y.Z)({},Cn),{},{notFoundContent:Do,open:Fc,triggerOpen:Vu,id:ar,showSearch:zn,multiple:Ls,toggleOpen:ws})},[Cn,Do,Vu,Fc,ar,zn,Ls,ws]),tn=fa!==void 0?fa:cs||!Ls&&to!=="combobox",Pt;tn&&(Pt=b.createElement(gt,{className:ne()("".concat(ta,"-arrow"),(0,A.Z)({},"".concat(ta,"-arrow-loading"),cs)),customizeIcon:ka,customizeIconProps:{loading:cs,searchValue:Dc,open:Fc,focused:Ps,showSearch:zn}}));var on,_n=function(){var yi;yo==null||yo(),(yi=Ho.current)===null||yi===void 0||yi.focus(),La([],{type:"clear",values:$i}),Tc("",!1,!1)};!fs&&Pr&&($i.length||Dc)&&!(to==="combobox"&&Dc==="")&&(on=b.createElement(gt,{className:"".concat(ta,"-clear"),onMouseDown:_n,customizeIcon:Li},"\xD7"));var ir=b.createElement(zi,{ref:al}),xr=ne()(ta,Yn,(At={},(0,A.Z)(At,"".concat(ta,"-focused"),Ps),(0,A.Z)(At,"".concat(ta,"-multiple"),Ls),(0,A.Z)(At,"".concat(ta,"-single"),!Ls),(0,A.Z)(At,"".concat(ta,"-allow-clear"),Pr),(0,A.Z)(At,"".concat(ta,"-show-arrow"),tn),(0,A.Z)(At,"".concat(ta,"-disabled"),fs),(0,A.Z)(At,"".concat(ta,"-loading"),cs),(0,A.Z)(At,"".concat(ta,"-open"),Fc),(0,A.Z)(At,"".concat(ta,"-customize-input"),Jl),(0,A.Z)(At,"".concat(ta,"-show-search"),zn),At)),aa=b.createElement(er,{ref:mi,disabled:fs,prefixCls:ta,visible:Vu,popupElement:ir,containerWidth:Nc,animation:Mo,transitionName:Za,dropdownStyle:ao,dropdownClassName:Mi,direction:Fi,dropdownMatchSelectWidth:Eo,dropdownRender:Xi,dropdownAlign:Bo,placement:ol,getPopupContainer:Il,empty:ja,getTriggerDOMNode:function(){return Da.current},onPopupVisibleChange:Vn,onPopupMouseEnter:_t},oc?b.cloneElement(oc,{ref:xu}):b.createElement(Qt,(0,x.Z)({},Cn,{domRef:Da,prefixCls:ta,inputElement:Jl,ref:Ho,id:ar,showSearch:zn,autoClearSearchValue:Gr,mode:to,activeDescendantId:Ot,tagRender:Ua,values:$i,open:Fc,onToggleOpen:ws,activeValue:nn,searchValue:Dc,onSearch:Tc,onSearchSubmit:jc,onRemove:bf,tokenWithEnter:fc}))),oi;return oc?oi=aa:oi=b.createElement("div",(0,x.Z)({className:xr},Dr,{ref:da,onMouseDown:ed,onKeyDown:zu,onKeyUp:cf,onFocus:rf,onBlur:Bu}),Ps&&!Fc&&b.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat($i.map(function(ni){var yi=ni.label,Zo=ni.value;return["number","string"].includes((0,m.Z)(yi))?yi:Zo}).join(", "))),aa,Pt,on),b.createElement(pe.Provider,{value:br},oi)}),$e=Ue,kt=function(Cn,Kn){var Pn=b.useRef({values:new Map,options:new Map}),At=b.useMemo(function(){var ta=Pn.current,Yn=ta.values,Qa=ta.options,Ua=Cn.map(function($i){if($i.label===void 0){var La;return(0,y.Z)((0,y.Z)({},$i),{},{label:(La=Yn.get($i.value))===null||La===void 0?void 0:La.label})}return $i}),Fi=new Map,Xa=new Map;return Ua.forEach(function($i){Fi.set($i.value,$i),Xa.set($i.value,Kn.get($i.value)||Qa.get($i.value))}),Pn.current.values=Fi,Pn.current.options=Xa,Ua},[Cn,Kn]),ar=b.useCallback(function(ta){return Kn.get(ta)||Pn.current.options.get(ta)},[Kn]);return[At,ar]};function lt(Cn,Kn){return at(Cn).join("").toUpperCase().includes(Kn)}var vt=function(Cn,Kn,Pn,At,ar){return b.useMemo(function(){if(!Pn||At===!1)return Cn;var ta=Kn.options,Yn=Kn.label,Qa=Kn.value,Ua=[],Fi=typeof At=="function",Xa=Pn.toUpperCase(),$i=Fi?At:function(ja,ei){return ar?lt(ei[ar],Xa):ei[ta]?lt(ei[Yn!=="children"?Yn:"label"],Xa):lt(ei[Qa],Xa)},La=Fi?function(ja){return ut(ja)}:function(ja){return ja};return Cn.forEach(function(ja){if(ja[ta]){var ei=$i(Pn,La(ja));if(ei)Ua.push(ja);else{var Do=ja[ta].filter(function(yo){return $i(Pn,La(yo))});Do.length&&Ua.push((0,y.Z)((0,y.Z)({},ja),{},(0,A.Z)({},ta,Do)))}return}$i(Pn,La(ja))&&Ua.push(ja)}),Ua},[Cn,At,ar,Pn,Kn])},Ct=o(32455);function Bt(Cn){var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pn=[];return b.Children.forEach(Cn,function(At){At==null&&!Kn.keepEmpty||(Array.isArray(At)?Pn=Pn.concat(Bt(At)):(0,Ee.isFragment)(At)&&At.props?Pn=Pn.concat(Bt(At.props.children,Kn)):Pn.push(At))}),Pn}var mt=["children","value"],Zt=["children"];function zt(Cn){var Kn=Cn,Pn=Kn.key,At=Kn.props,ar=At.children,ta=At.value,Yn=(0,w.Z)(At,mt);return(0,y.Z)({key:Pn,value:ta!==void 0?ta:Pn,children:ar},Yn)}function ln(Cn){var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Bt(Cn).map(function(Pn,At){if(!b.isValidElement(Pn)||!Pn.type)return null;var ar=Pn,ta=ar.type.isSelectOptGroup,Yn=ar.key,Qa=ar.props,Ua=Qa.children,Fi=(0,w.Z)(Qa,Zt);return Kn||!ta?zt(Pn):(0,y.Z)((0,y.Z)({key:"__RC_SELECT_GRP__".concat(Yn===null?At:Yn,"__"),label:Yn},Fi),{},{options:ln(Ua)})}).filter(function(Pn){return Pn})}function An(Cn,Kn,Pn,At,ar){return b.useMemo(function(){var ta=Cn,Yn=!Cn;Yn&&(ta=ln(Kn));var Qa=new Map,Ua=new Map,Fi=function(La,ja,ei){ei&&typeof ei=="string"&&La.set(ja[ei],ja)};function Xa($i){for(var La=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ja=0;ja<$i.length;ja+=1){var ei=$i[ja];!ei[Pn.options]||La?(Qa.set(ei[Pn.value],ei),Fi(Ua,ei,Pn.label),Fi(Ua,ei,At),Fi(Ua,ei,ar)):Xa(ei[Pn.options],!0)}}return Xa(ta),{options:ta,valueOptions:Qa,labelOptions:Ua}},[Cn,Kn,Pn,At,ar])}function En(Cn){var Kn=b.useRef();Kn.current=Cn;var Pn=b.useCallback(function(){return Kn.current.apply(Kn,arguments)},[]);return Pn}var Gn=function(){return null};Gn.isSelectOptGroup=!0;var Bn=Gn,pr=function(){return null};pr.isSelectOption=!0;var _r=pr;function na(Cn,Kn){var Pn=(0,y.Z)({},Cn);return Array.isArray(Kn)&&Kn.forEach(function(At){delete Pn[At]}),Pn}var $n=o(95767);function qr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Jr=b.createContext(null),Aa=Jr,ya=["disabled","title","children","style","className"];function $t(Cn){return typeof Cn=="string"||typeof Cn=="number"}var wn=function(Kn,Pn){var At=Ie(),ar=At.prefixCls,ta=At.id,Yn=At.open,Qa=At.multiple,Ua=At.mode,Fi=At.searchValue,Xa=At.toggleOpen,$i=At.notFoundContent,La=At.onPopupScroll,ja=b.useContext(Aa),ei=ja.flattenOptions,Do=ja.onActiveValue,yo=ja.defaultActiveFirstOption,to=ja.onSelect,fs=ja.menuItemSelectedIcon,cs=ja.rawValues,Os=ja.fieldNames,vl=ja.virtual,Ar=ja.listHeight,Rn=ja.listItemHeight,Sr="".concat(ar,"-item"),nn=ce(function(){return ei},[Yn,ei],function(ao,Mi){return Mi[0]&&ao[1]!==Mi[1]}),sn=b.useRef(null),Ot=function(Mi){Mi.preventDefault()},gr=function(Mi){sn.current&&sn.current.scrollTo(typeof Mi=="number"?{index:Mi}:Mi)},Gr=function(Mi){for(var Eo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Xi=nn.length,Bo=0;Bo<Xi;Bo+=1){var ol=(Mi+Bo*Eo+Xi)%Xi,Il=nn[ol],ms=Il.group,mc=Il.data;if(!ms&&!mc.disabled)return ol}return-1},Ln=b.useState(function(){return Gr(0)}),Tr=(0,M.Z)(Ln,2),Dn=Tr[0],Pr=Tr[1],fa=function(Mi){var Eo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Pr(Mi);var Xi={source:Eo?"keyboard":"mouse"},Bo=nn[Mi];if(!Bo){Do(null,-1,Xi);return}Do(Bo.value,Mi,Xi)};(0,b.useEffect)(function(){fa(yo!==!1?Gr(0):-1)},[nn.length,Fi]);var ka=b.useCallback(function(ao){return cs.has(ao)&&Ua!=="combobox"},[Ua,(0,g.Z)(cs).toString(),cs.size]);(0,b.useEffect)(function(){var ao=setTimeout(function(){if(!Qa&&Yn&&cs.size===1){var Eo=Array.from(cs)[0],Xi=nn.findIndex(function(Bo){var ol=Bo.data;return ol.value===Eo});Xi!==-1&&(fa(Xi),gr(Xi))}});if(Yn){var Mi;(Mi=sn.current)===null||Mi===void 0||Mi.scrollTo(void 0)}return function(){return clearTimeout(ao)}},[Yn,Fi]);var Li=function(Mi){Mi!==void 0&&to(Mi,{selected:!cs.has(Mi)}),Qa||Xa(!1)};if(b.useImperativeHandle(Pn,function(){return{onKeyDown:function(Mi){var Eo=Mi.which,Xi=Mi.ctrlKey;switch(Eo){case he.N:case he.P:case he.UP:case he.DOWN:{var Bo=0;if(Eo===he.UP?Bo=-1:Eo===he.DOWN?Bo=1:qr()&&Xi&&(Eo===he.N?Bo=1:Eo===he.P&&(Bo=-1)),Bo!==0){var ol=Gr(Dn+Bo,Bo);gr(ol),fa(ol,!0)}break}case he.ENTER:{var Il=nn[Dn];Il&&!Il.data.disabled?Li(Il.value):Li(void 0),Yn&&Mi.preventDefault();break}case he.ESC:Xa(!1),Yn&&Mi.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Mi){gr(Mi)}}}),nn.length===0)return b.createElement("div",{role:"listbox",id:"".concat(ta,"_list"),className:"".concat(Sr,"-empty"),onMouseDown:Ot},$i);var zi=Object.keys(Os).map(function(ao){return Os[ao]}),Mo=function(Mi){return Mi.label},Za=function(Mi){var Eo=nn[Mi];if(!Eo)return null;var Xi=Eo.data||{},Bo=Xi.value,ol=Eo.group,Il=Ge(Xi,!0),ms=Mo(Eo);return Eo?b.createElement("div",(0,x.Z)({"aria-label":typeof ms=="string"&&!ol?ms:null},Il,{key:Mi,role:ol?"presentation":"option",id:"".concat(ta,"_list_").concat(Mi),"aria-selected":ka(Bo)}),Bo):null};return b.createElement(b.Fragment,null,b.createElement("div",{role:"listbox",id:"".concat(ta,"_list"),style:{height:0,width:0,overflow:"hidden"}},Za(Dn-1),Za(Dn),Za(Dn+1)),b.createElement($n.Z,{itemKey:"key",ref:sn,data:nn,height:Ar,itemHeight:Rn,fullHeight:!1,onMouseDown:Ot,onScroll:La,virtual:vl},function(ao,Mi){var Eo,Xi=ao.group,Bo=ao.groupOption,ol=ao.data,Il=ao.label,ms=ao.value,mc=ol.key;if(Xi){var Ys,hl=(Ys=ol.title)!==null&&Ys!==void 0?Ys:$t(Il)?Il.toString():void 0;return b.createElement("div",{className:ne()(Sr,"".concat(Sr,"-group")),title:hl},Il!==void 0?Il:mc)}var Rs=ol.disabled,xl=ol.title,Wl=ol.children,_l=ol.style,Ls=ol.className,zn=(0,w.Z)(ol,ya),Dr=na(zn,zi),Hr=ka(ms),_a="".concat(Sr,"-option"),Ti=ne()(Sr,_a,Ls,(Eo={},(0,A.Z)(Eo,"".concat(_a,"-grouped"),Bo),(0,A.Z)(Eo,"".concat(_a,"-active"),Dn===Mi&&!Rs),(0,A.Z)(Eo,"".concat(_a,"-disabled"),Rs),(0,A.Z)(Eo,"".concat(_a,"-selected"),Hr),Eo)),Ci=Mo(ao),da=!fs||typeof fs=="function"||Hr,Da=typeof Ci=="number"?Ci:Ci||ms,mi=$t(Da)?Da.toString():void 0;return xl!==void 0&&(mi=xl),b.createElement("div",(0,x.Z)({},Ge(Dr),{"aria-selected":Hr,className:Ti,title:mi,onMouseMove:function(){Dn===Mi||Rs||fa(Mi)},onClick:function(){Rs||Li(ms)},style:_l}),b.createElement("div",{className:"".concat(_a,"-content")},Da),b.isValidElement(fs)||Hr,da&&b.createElement(gt,{className:"".concat(Sr,"-option-state"),customizeIcon:fs,customizeIconProps:{isSelected:Hr}},Hr?"\u2713":null))}))},Fn=b.forwardRef(wn);Fn.displayName="OptionList";var Or=Fn;function vr(Cn){var Kn=Cn.mode,Pn=Cn.options,At=Cn.children,ar=Cn.backfill,ta=Cn.allowClear,Yn=Cn.placeholder,Qa=Cn.getInputElement,Ua=Cn.showSearch,Fi=Cn.onSearch,Xa=Cn.defaultOpen,$i=Cn.autoFocus,La=Cn.labelInValue,ja=Cn.value,ei=Cn.inputValue,Do=Cn.optionLabelProp,yo=isMultiple(Kn),to=Ua!==void 0?Ua:yo||Kn==="combobox",fs=Pn||convertChildrenToData(At);if(warning(Kn!=="tags"||fs.every(function(Ar){return!Ar.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Kn==="tags"||Kn==="combobox"){var cs=fs.some(function(Ar){return Ar.options?Ar.options.some(function(Rn){return typeof("value"in Rn?Rn.value:Rn.key)=="number"}):typeof("value"in Ar?Ar.value:Ar.key)=="number"});warning(!cs,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Kn!=="combobox"||!Do,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Kn==="combobox"||!ar,"`backfill` only works with `combobox` mode."),warning(Kn==="combobox"||!Qa,"`getInputElement` only work with `combobox` mode."),noteOnce(Kn!=="combobox"||!Qa||!ta||!Yn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Fi&&!to&&Kn!=="combobox"&&Kn!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Xa||$i,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ja!=null){var Os=toArray(ja);warning(!La||Os.every(function(Ar){return _typeof(Ar)==="object"&&("key"in Ar||"value"in Ar)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!yo||Array.isArray(ja),"`value` should be array when `mode` is `multiple` or `tags`")}if(At){var vl=null;toNodeArray(At).some(function(Ar){if(!React.isValidElement(Ar)||!Ar.type)return!1;var Rn=Ar,Sr=Rn.type;if(Sr.isSelectOption)return!1;if(Sr.isSelectOptGroup){var nn=toNodeArray(Ar.props.children).every(function(sn){return!React.isValidElement(sn)||!Ar.type||sn.type.isSelectOption?!0:(vl=sn.type,!1)});return!nn}return vl=Sr,!0}),vl&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(vl.displayName||vl.name||vl,"`.")),warning(ei===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ur(Cn,Kn){if(Cn){var Pn=function At(ar){for(var ta=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yn=0;Yn<ar.length;Yn++){var Qa=ar[Yn];if(Qa[Kn==null?void 0:Kn.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!ta&&Array.isArray(Qa[Kn==null?void 0:Kn.options])&&At(Qa[Kn==null?void 0:Kn.options],!0))break}};Pn(Cn)}}var Zr=null,Kr=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],ba=["inputValue"];function Ri(Cn){return!Cn||(0,m.Z)(Cn)!=="object"}var Ea=b.forwardRef(function(Cn,Kn){var Pn=Cn.id,At=Cn.mode,ar=Cn.prefixCls,ta=ar===void 0?"rc-select":ar,Yn=Cn.backfill,Qa=Cn.fieldNames,Ua=Cn.inputValue,Fi=Cn.searchValue,Xa=Cn.onSearch,$i=Cn.autoClearSearchValue,La=$i===void 0?!0:$i,ja=Cn.onSelect,ei=Cn.onDeselect,Do=Cn.dropdownMatchSelectWidth,yo=Do===void 0?!0:Do,to=Cn.filterOption,fs=Cn.filterSort,cs=Cn.optionFilterProp,Os=Cn.optionLabelProp,vl=Cn.options,Ar=Cn.children,Rn=Cn.defaultActiveFirstOption,Sr=Cn.menuItemSelectedIcon,nn=Cn.virtual,sn=Cn.listHeight,Ot=sn===void 0?200:sn,gr=Cn.listItemHeight,Gr=gr===void 0?20:gr,Ln=Cn.value,Tr=Cn.defaultValue,Dn=Cn.labelInValue,Pr=Cn.onChange,fa=(0,w.Z)(Cn,Kr),ka=(0,Ct.ZP)(Pn),Li=Ae(At),zi=!!(!vl&&Ar),Mo=b.useMemo(function(){return to===void 0&&At==="combobox"?!1:to},[to,At]),Za=b.useMemo(function(){return lr(Qa,zi)},[JSON.stringify(Qa),zi]),ao=F("",{value:Fi!==void 0?Fi:Ua,postState:function(fc){return fc||""}}),Mi=(0,M.Z)(ao,2),Eo=Mi[0],Xi=Mi[1],Bo=An(vl,Ar,Za,cs,Os),ol=Bo.valueOptions,Il=Bo.labelOptions,ms=Bo.options,mc=b.useCallback(function(ws){var fc=at(ws);return fc.map(function(Tc){var jc,lu,hu,of,uu;if(Ri(Tc))jc=Tc;else{var zu;hu=Tc.key,lu=Tc.label,jc=(zu=Tc.value)!==null&&zu!==void 0?zu:hu}var cf=ol.get(jc);if(cf){var bf;if(lu===void 0&&(lu=cf==null?void 0:cf[Os||Za.label]),hu===void 0&&(hu=(bf=cf==null?void 0:cf.key)!==null&&bf!==void 0?bf:jc),of=cf==null?void 0:cf.disabled,uu=cf==null?void 0:cf.title,!1)var Cu}return{label:lu,value:jc,key:hu,disabled:of,title:uu}})},[Za,Os,ol]),Ys=F(Tr,{value:Ln}),hl=(0,M.Z)(Ys,2),Rs=hl[0],xl=hl[1],Wl=b.useMemo(function(){var ws,fc=mc(Rs);return At==="combobox"&&!((ws=fc[0])!==null&&ws!==void 0&&ws.value)?[]:fc},[Rs,mc,At]),_l=kt(Wl,ol),Ls=(0,M.Z)(_l,2),zn=Ls[0],Dr=Ls[1],Hr=b.useMemo(function(){if(!At&&zn.length===1){var ws=zn[0];if(ws.value===null&&(ws.label===null||ws.label===void 0))return[]}return zn.map(function(fc){var Tc;return(0,y.Z)((0,y.Z)({},fc),{},{label:(Tc=fc.label)!==null&&Tc!==void 0?Tc:fc.value})})},[At,zn]),_a=b.useMemo(function(){return new Set(zn.map(function(ws){return ws.value}))},[zn]);b.useEffect(function(){if(At==="combobox"){var ws,fc=(ws=zn[0])===null||ws===void 0?void 0:ws.value;Xi(fn(fc)?String(fc):"")}},[zn]);var Ti=En(function(ws,fc){var Tc,jc=fc!=null?fc:ws;return Tc={},(0,A.Z)(Tc,Za.value,ws),(0,A.Z)(Tc,Za.label,jc),Tc}),Ci=b.useMemo(function(){if(At!=="tags")return ms;var ws=(0,g.Z)(ms),fc=function(jc){return ol.has(jc)};return(0,g.Z)(zn).sort(function(Tc,jc){return Tc.value<jc.value?-1:1}).forEach(function(Tc){var jc=Tc.value;fc(jc)||ws.push(Ti(jc,Tc.label))}),ws},[Ti,ms,ol,zn,At]),da=vt(Ci,Za,Eo,Mo,cs),Da=b.useMemo(function(){return At!=="tags"||!Eo||da.some(function(ws){return ws[cs||"value"]===Eo})?da:[Ti(Eo)].concat((0,g.Z)(da))},[Ti,cs,At,da,Eo]),mi=b.useMemo(function(){return fs?(0,g.Z)(Da).sort(function(ws,fc){return fs(ws,fc)}):Da},[Da,fs]),Ho=b.useMemo(function(){return Hn(mi,{fieldNames:Za,childrenAsData:zi})},[mi,Za,zi]),al=function(fc){var Tc=mc(fc);if(xl(Tc),Pr&&(Tc.length!==zn.length||Tc.some(function(hu,of){var uu;return((uu=zn[of])===null||uu===void 0?void 0:uu.value)!==(hu==null?void 0:hu.value)}))){var jc=Dn?Tc:Tc.map(function(hu){return hu.value}),lu=Tc.map(function(hu){return ut(Dr(hu.value))});Pr(Li?jc:jc[0],Li?lu:lu[0])}},ml=b.useState(null),Xs=(0,M.Z)(ml,2),Ps=Xs[0],dl=Xs[1],ql=b.useState(0),Dc=(0,M.Z)(ql,2),Jl=Dc[0],oc=Dc[1],xu=Rn!==void 0?Rn:At!=="combobox",yf=b.useCallback(function(ws,fc){var Tc=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},jc=Tc.source,lu=jc===void 0?"keyboard":jc;oc(fc),Yn&&At==="combobox"&&ws!==null&&lu==="keyboard"&&dl(String(ws))},[Yn,At]),ku=function(fc,Tc,jc){var lu=function(){var Tf,ed=Dr(fc);return[Dn?{label:ed==null?void 0:ed[Za.label],value:fc,key:(Tf=ed==null?void 0:ed.key)!==null&&Tf!==void 0?Tf:fc}:fc,ut(ed)]};if(Tc&&ja){var hu=lu(),of=(0,M.Z)(hu,2),uu=of[0],zu=of[1];ja(uu,zu)}else if(!Tc&&ei&&jc!=="clear"){var cf=lu(),bf=(0,M.Z)(cf,2),Cu=bf[0],rf=bf[1];ei(Cu,rf)}},Zc=En(function(ws,fc){var Tc,jc=Li?fc.selected:!0;jc?Tc=Li?[].concat((0,g.Z)(zn),[ws]):[ws]:Tc=zn.filter(function(lu){return lu.value!==ws}),al(Tc),ku(ws,jc),At==="combobox"?dl(""):(!Ae||La)&&(Xi(""),dl(""))}),Zu=function(fc,Tc){al(fc);var jc=Tc.type,lu=Tc.values;(jc==="remove"||jc==="clear")&&lu.forEach(function(hu){ku(hu.value,!1,jc)})},Fc=function(fc,Tc){if(Xi(fc),dl(null),Tc.source==="submit"){var jc=(fc||"").trim();if(jc){var lu=Array.from(new Set([].concat((0,g.Z)(_a),[jc])));al(lu),ku(jc,!0),Xi("")}return}Tc.source!=="blur"&&(At==="combobox"&&al(fc),Xa==null||Xa(fc))},Hc=function(fc){var Tc=fc;At!=="tags"&&(Tc=fc.map(function(lu){var hu=Il.get(lu);return hu==null?void 0:hu.value}).filter(function(lu){return lu!==void 0}));var jc=Array.from(new Set([].concat((0,g.Z)(_a),(0,g.Z)(Tc))));al(jc),jc.forEach(function(lu){ku(lu,!0)})},Vu=b.useMemo(function(){var ws=nn!==!1&&yo!==!1;return(0,y.Z)((0,y.Z)({},Bo),{},{flattenOptions:Ho,onActiveValue:yf,defaultActiveFirstOption:xu,onSelect:Zc,menuItemSelectedIcon:Sr,rawValues:_a,fieldNames:Za,virtual:ws,listHeight:Ot,listItemHeight:Gr,childrenAsData:zi})},[Bo,Ho,yf,xu,Zc,Sr,_a,Za,nn,yo,Ot,Gr,zi]);return b.createElement(Aa.Provider,{value:Vu},b.createElement($e,(0,x.Z)({},fa,{id:ka,prefixCls:ta,ref:Kn,omitDomProps:ba,mode:At,displayValues:Hr,onDisplayValuesChange:Zu,searchValue:Eo,onSearch:Fc,autoClearSearchValue:La,onSearchSplit:Hc,dropdownMatchSelectWidth:yo,OptionList:Or,emptyOptions:!Ho.length,activeValue:Ps,activeDescendantId:"".concat(ka,"_list_").concat(Jl)})))}),Pi=Ea;Pi.Option=_r,Pi.OptGroup=Bn;var rs=Pi,Ui=rs},87824:function(oe,N,o){"use strict";o.d(N,{Z:function(){return x}});function x(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},81412:function(oe,N,o){"use strict";o.d(N,{C:function(){return A}});var x={adjustX:1,adjustY:1},g=[0,0],A={left:{points:["cr","cl"],overflow:x,offset:[-4,0],targetOffset:g},right:{points:["cl","cr"],overflow:x,offset:[4,0],targetOffset:g},top:{points:["bc","tc"],overflow:x,offset:[0,-4],targetOffset:g},bottom:{points:["tc","bc"],overflow:x,offset:[0,4],targetOffset:g},topLeft:{points:["bl","tl"],overflow:x,offset:[0,-4],targetOffset:g},leftTop:{points:["tr","tl"],overflow:x,offset:[-4,0],targetOffset:g},topRight:{points:["br","tr"],overflow:x,offset:[0,-4],targetOffset:g},rightTop:{points:["tl","tr"],overflow:x,offset:[4,0],targetOffset:g},bottomRight:{points:["tr","br"],overflow:x,offset:[0,4],targetOffset:g},rightBottom:{points:["bl","br"],overflow:x,offset:[4,0],targetOffset:g},bottomLeft:{points:["tl","bl"],overflow:x,offset:[0,4],targetOffset:g},leftBottom:{points:["br","bl"],overflow:x,offset:[-4,0],targetOffset:g}},y=null},36320:function(oe,N,o){"use strict";o.d(N,{Z:function(){return $}});var x=o(22122),g=o(96156),A=o(81253),y=o(28991),M=o(6610),w=o(5991),m=o(63349),b=o(10379),v=o(44144),h=o(35510),d=o.n(h),_=o(62137),p=o(67294),S=o(52636),k=function(z){for(var K=z.prefixCls,re=z.level,ne=z.isStart,Q=z.isEnd,ue="".concat(K,"-indent-unit"),he=[],Ee=0;Ee<re;Ee+=1){var ce;he.push(p.createElement("span",{key:Ee,className:d()(ue,(ce={},(0,g.Z)(ce,"".concat(ue,"-start"),ne[Ee]),(0,g.Z)(ce,"".concat(ue,"-end"),Q[Ee]),ce))}))}return p.createElement("span",{"aria-hidden":"true",className:"".concat(K,"-indent")},he)},O=p.memo(k),F=o(93254),D=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Z="open",W="close",U="---",L=function(G){(0,b.Z)(K,G);var z=(0,v.Z)(K);function K(){var re;(0,M.Z)(this,K);for(var ne=arguments.length,Q=new Array(ne),ue=0;ue<ne;ue++)Q[ue]=arguments[ue];return re=z.call.apply(z,[this].concat(Q)),re.state={dragNodeHighlight:!1},re.selectHandle=void 0,re.cacheIndent=void 0,re.onSelectorClick=function(he){var Ee=re.props.context.onNodeClick;Ee(he,(0,F.F)(re.props)),re.isSelectable()?re.onSelect(he):re.onCheck(he)},re.onSelectorDoubleClick=function(he){var Ee=re.props.context.onNodeDoubleClick;Ee(he,(0,F.F)(re.props))},re.onSelect=function(he){if(!re.isDisabled()){var Ee=re.props.context.onNodeSelect;Ee(he,(0,F.F)(re.props))}},re.onCheck=function(he){if(!re.isDisabled()){var Ee=re.props,ce=Ee.disableCheckbox,ve=Ee.checked,fe=re.props.context.onNodeCheck;if(!(!re.isCheckable()||ce)){var we=!ve;fe(he,(0,F.F)(re.props),we)}}},re.onMouseEnter=function(he){var Ee=re.props.context.onNodeMouseEnter;Ee(he,(0,F.F)(re.props))},re.onMouseLeave=function(he){var Ee=re.props.context.onNodeMouseLeave;Ee(he,(0,F.F)(re.props))},re.onContextMenu=function(he){var Ee=re.props.context.onNodeContextMenu;Ee(he,(0,F.F)(re.props))},re.onDragStart=function(he){var Ee=re.props.context.onNodeDragStart;he.stopPropagation(),re.setState({dragNodeHighlight:!0}),Ee(he,(0,m.Z)(re));try{he.dataTransfer.setData("text/plain","")}catch(ce){}},re.onDragEnter=function(he){var Ee=re.props.context.onNodeDragEnter;he.preventDefault(),he.stopPropagation(),Ee(he,(0,m.Z)(re))},re.onDragOver=function(he){var Ee=re.props.context.onNodeDragOver;he.preventDefault(),he.stopPropagation(),Ee(he,(0,m.Z)(re))},re.onDragLeave=function(he){var Ee=re.props.context.onNodeDragLeave;he.stopPropagation(),Ee(he,(0,m.Z)(re))},re.onDragEnd=function(he){var Ee=re.props.context.onNodeDragEnd;he.stopPropagation(),re.setState({dragNodeHighlight:!1}),Ee(he,(0,m.Z)(re))},re.onDrop=function(he){var Ee=re.props.context.onNodeDrop;he.preventDefault(),he.stopPropagation(),re.setState({dragNodeHighlight:!1}),Ee(he,(0,m.Z)(re))},re.onExpand=function(he){var Ee=re.props,ce=Ee.loading,ve=Ee.context.onNodeExpand;ce||ve(he,(0,F.F)(re.props))},re.setSelectHandle=function(he){re.selectHandle=he},re.getNodeState=function(){var he=re.props.expanded;return re.isLeaf()?null:he?Z:W},re.hasChildren=function(){var he=re.props.eventKey,Ee=re.props.context.keyEntities,ce=Ee[he]||{},ve=ce.children;return!!(ve||[]).length},re.isLeaf=function(){var he=re.props,Ee=he.isLeaf,ce=he.loaded,ve=re.props.context.loadData,fe=re.hasChildren();return Ee===!1?!1:Ee||!ve&&!fe||ve&&ce&&!fe},re.isDisabled=function(){var he=re.props.disabled,Ee=re.props.context.disabled;return!!(Ee||he)},re.isCheckable=function(){var he=re.props.checkable,Ee=re.props.context.checkable;return!Ee||he===!1?!1:Ee},re.syncLoadData=function(he){var Ee=he.expanded,ce=he.loading,ve=he.loaded,fe=re.props.context,we=fe.loadData,me=fe.onNodeLoad;ce||we&&Ee&&!re.isLeaf()&&!re.hasChildren()&&!ve&&me((0,F.F)(re.props))},re.isDraggable=function(){var he=re.props,Ee=he.data,ce=he.context.draggable;return!!(ce&&(!ce.nodeDraggable||ce.nodeDraggable(Ee)))},re.renderDragHandler=function(){var he=re.props.context,Ee=he.draggable,ce=he.prefixCls;return(Ee==null?void 0:Ee.icon)?p.createElement("span",{className:"".concat(ce,"-draggable-icon")},Ee.icon):null},re.renderSwitcherIconDom=function(he){var Ee=re.props.switcherIcon,ce=re.props.context.switcherIcon,ve=Ee||ce;return typeof ve=="function"?ve((0,y.Z)((0,y.Z)({},re.props),{},{isLeaf:he})):ve},re.renderSwitcher=function(){var he=re.props.expanded,Ee=re.props.context.prefixCls;if(re.isLeaf()){var ce=re.renderSwitcherIconDom(!0);return ce!==!1?p.createElement("span",{className:d()("".concat(Ee,"-switcher"),"".concat(Ee,"-switcher-noop"))},ce):null}var ve=d()("".concat(Ee,"-switcher"),"".concat(Ee,"-switcher_").concat(he?Z:W)),fe=re.renderSwitcherIconDom(!1);return fe!==!1?p.createElement("span",{onClick:re.onExpand,className:ve},fe):null},re.renderCheckbox=function(){var he=re.props,Ee=he.checked,ce=he.halfChecked,ve=he.disableCheckbox,fe=re.props.context.prefixCls,we=re.isDisabled(),me=re.isCheckable();if(!me)return null;var Pe=typeof me!="boolean"?me:null;return p.createElement("span",{className:d()("".concat(fe,"-checkbox"),Ee&&"".concat(fe,"-checkbox-checked"),!Ee&&ce&&"".concat(fe,"-checkbox-indeterminate"),(we||ve)&&"".concat(fe,"-checkbox-disabled")),onClick:re.onCheck},Pe)},re.renderIcon=function(){var he=re.props.loading,Ee=re.props.context.prefixCls;return p.createElement("span",{className:d()("".concat(Ee,"-iconEle"),"".concat(Ee,"-icon__").concat(re.getNodeState()||"docu"),he&&"".concat(Ee,"-icon_loading"))})},re.renderSelector=function(){var he=re.state.dragNodeHighlight,Ee=re.props,ce=Ee.title,ve=ce===void 0?U:ce,fe=Ee.selected,we=Ee.icon,me=Ee.loading,Pe=Ee.data,pe=re.props.context,Ie=pe.prefixCls,Je=pe.showIcon,ke=pe.icon,De=pe.loadData,Fe=pe.titleRender,Qe=re.isDisabled(),qe="".concat(Ie,"-node-content-wrapper"),et;if(Je){var dt=we||ke;et=dt?p.createElement("span",{className:d()("".concat(Ie,"-iconEle"),"".concat(Ie,"-icon__customize"))},typeof dt=="function"?dt(re.props):dt):re.renderIcon()}else De&&me&&(et=re.renderIcon());var Ke;typeof ve=="function"?Ke=ve(Pe):Fe?Ke=Fe(Pe):Ke=ve;var Ge=p.createElement("span",{className:"".concat(Ie,"-title")},Ke);return p.createElement("span",{ref:re.setSelectHandle,title:typeof ve=="string"?ve:"",className:d()("".concat(qe),"".concat(qe,"-").concat(re.getNodeState()||"normal"),!Qe&&(fe||he)&&"".concat(Ie,"-node-selected")),onMouseEnter:re.onMouseEnter,onMouseLeave:re.onMouseLeave,onContextMenu:re.onContextMenu,onClick:re.onSelectorClick,onDoubleClick:re.onSelectorDoubleClick},et,Ge,re.renderDropIndicator())},re.renderDropIndicator=function(){var he=re.props,Ee=he.disabled,ce=he.eventKey,ve=re.props.context,fe=ve.draggable,we=ve.dropLevelOffset,me=ve.dropPosition,Pe=ve.prefixCls,pe=ve.indent,Ie=ve.dropIndicatorRender,Je=ve.dragOverNodeKey,ke=ve.direction,De=!!fe,Fe=!Ee&&De&&Je===ce,Qe=pe!=null?pe:re.cacheIndent;return re.cacheIndent=pe,Fe?Ie({dropPosition:me,dropLevelOffset:we,indent:Qe,prefixCls:Pe,direction:ke}):null},re}return(0,w.Z)(K,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ne=this.props.selectable,Q=this.props.context.selectable;return typeof ne=="boolean"?ne:Q}},{key:"render",value:function(){var ne,Q=this.props,ue=Q.eventKey,he=Q.className,Ee=Q.style,ce=Q.dragOver,ve=Q.dragOverGapTop,fe=Q.dragOverGapBottom,we=Q.isLeaf,me=Q.isStart,Pe=Q.isEnd,pe=Q.expanded,Ie=Q.selected,Je=Q.checked,ke=Q.halfChecked,De=Q.loading,Fe=Q.domRef,Qe=Q.active,qe=Q.data,et=Q.onMouseMove,dt=Q.selectable,Ke=(0,A.Z)(Q,D),Ge=this.props.context,wt=Ge.prefixCls,Vt=Ge.filterTreeNode,gt=Ge.keyEntities,it=Ge.dropContainerKey,Le=Ge.dropTargetKey,ct=Ge.draggingNodeKey,at=this.isDisabled(),jt=(0,_.Z)(Ke,{aria:!0,data:!0}),St=gt[ue]||{},fn=St.level,Xt=Pe[Pe.length-1],Yt=this.isDraggable(),Rt=!at&&Yt,Lt=ct===ue,ze=dt!==void 0?{"aria-selected":!!dt}:void 0;return p.createElement("div",(0,x.Z)({ref:Fe,className:d()(he,"".concat(wt,"-treenode"),(ne={},(0,g.Z)(ne,"".concat(wt,"-treenode-disabled"),at),(0,g.Z)(ne,"".concat(wt,"-treenode-switcher-").concat(pe?"open":"close"),!we),(0,g.Z)(ne,"".concat(wt,"-treenode-checkbox-checked"),Je),(0,g.Z)(ne,"".concat(wt,"-treenode-checkbox-indeterminate"),ke),(0,g.Z)(ne,"".concat(wt,"-treenode-selected"),Ie),(0,g.Z)(ne,"".concat(wt,"-treenode-loading"),De),(0,g.Z)(ne,"".concat(wt,"-treenode-active"),Qe),(0,g.Z)(ne,"".concat(wt,"-treenode-leaf-last"),Xt),(0,g.Z)(ne,"".concat(wt,"-treenode-draggable"),Yt),(0,g.Z)(ne,"dragging",Lt),(0,g.Z)(ne,"drop-target",Le===ue),(0,g.Z)(ne,"drop-container",it===ue),(0,g.Z)(ne,"drag-over",!at&&ce),(0,g.Z)(ne,"drag-over-gap-top",!at&&ve),(0,g.Z)(ne,"drag-over-gap-bottom",!at&&fe),(0,g.Z)(ne,"filter-node",Vt&&Vt((0,F.F)(this.props))),ne)),style:Ee,draggable:Rt,"aria-grabbed":Lt,onDragStart:Rt?this.onDragStart:void 0,onDragEnter:Yt?this.onDragEnter:void 0,onDragOver:Yt?this.onDragOver:void 0,onDragLeave:Yt?this.onDragLeave:void 0,onDrop:Yt?this.onDrop:void 0,onDragEnd:Yt?this.onDragEnd:void 0,onMouseMove:et},ze,jt),p.createElement(O,{prefixCls:wt,level:fn,isStart:me,isEnd:Pe}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),K}(p.Component),V=function(z){return p.createElement(S.k.Consumer,null,function(K){return p.createElement(L,(0,x.Z)({},z,{context:K}))})};V.displayName="TreeNode",V.isTreeNode=1;var $=V},52636:function(oe,N,o){"use strict";o.d(N,{k:function(){return g}});var x=o(67294),g=x.createContext(null)},18633:function(oe,N,o){"use strict";o.d(N,{O:function(){return ue.Z},Z:function(){return Le}});var x=o(22122),g=o(96156),A=o(90484),y=o(28991),M=o(85061),w=o(6610),m=o(5991),b=o(63349),v=o(10379),h=o(44144),d=o(67294),_={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(at){var jt=at.keyCode;if(at.altKey&&!at.ctrlKey||at.metaKey||jt>=_.F1&&jt<=_.F12)return!1;switch(jt){case _.ALT:case _.CAPS_LOCK:case _.CONTEXT_MENU:case _.CTRL:case _.DOWN:case _.END:case _.ESC:case _.HOME:case _.INSERT:case _.LEFT:case _.MAC_FF_META:case _.META:case _.NUMLOCK:case _.NUM_CENTER:case _.PAGE_DOWN:case _.PAGE_UP:case _.PAUSE:case _.PRINT_SCREEN:case _.RIGHT:case _.SHIFT:case _.UP:case _.WIN_KEY:case _.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(at){if(at>=_.ZERO&&at<=_.NINE||at>=_.NUM_ZERO&&at<=_.NUM_MULTIPLY||at>=_.A&&at<=_.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&at===0)return!0;switch(at){case _.SPACE:case _.QUESTION_MARK:case _.NUM_PLUS:case _.NUM_MINUS:case _.NUM_PERIOD:case _.NUM_DIVISION:case _.SEMICOLON:case _.DASH:case _.EQUALS:case _.COMMA:case _.PERIOD:case _.SLASH:case _.APOSTROPHE:case _.SINGLE_QUOTE:case _.OPEN_SQUARE_BRACKET:case _.BACKSLASH:case _.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},p=_,S=o(48696),k=o(62137),O=o(35510),F=o.n(O),D=o(52636),Z=o(5409),W=o(93254);function U(ct){if(ct==null)throw new TypeError("Cannot destructure "+ct)}var L=o(28481),V=o(81253);function $(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var G=$()?d.useLayoutEffect:d.useEffect,z=function(at,jt){var St=d.useRef(!0);G(function(){return at(St.current)},jt),G(function(){return St.current=!1,function(){St.current=!0}},[])},K=function(at,jt){z(function(St){if(!St)return at()},jt)},re=z,ne=o(95767),Q=o(90190),ue=o(36320);function he(ct,at){var jt=d.useState(!1),St=(0,L.Z)(jt,2),fn=St[0],Xt=St[1];d.useLayoutEffect(function(){if(fn)return ct(),function(){at()}},[fn]),d.useLayoutEffect(function(){return Xt(!0),function(){Xt(!1)}},[])}var Ee=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ce=function(at,jt){var St=at.className,fn=at.style,Xt=at.motion,Yt=at.motionNodes,Rt=at.motionType,Lt=at.onMotionStart,ze=at.onMotionEnd,rt=at.active,tt=at.treeNodeRequiredProps,de=(0,V.Z)(at,Ee),ot=d.useState(!0),Et=(0,L.Z)(ot,2),Ht=Et[0],Jt=Et[1],Qt=d.useContext(D.k),an=Qt.prefixCls,Un=Yt&&Rt!=="hide";re(function(){Yt&&Un!==Ht&&Jt(Un)},[Yt]);var qt=function(){Yt&&Lt()},rn=d.useRef(!1),cn=function(){Yt&&!rn.current&&(rn.current=!0,ze())};he(qt,cn);var er=function(nt){Un===nt&&cn()};return Yt?d.createElement(Q.ZP,(0,x.Z)({ref:jt,visible:Ht},Xt,{motionAppear:Rt==="show",onVisibleChanged:er}),function(rr,nt){var lr=rr.className,Hn=rr.style;return d.createElement("div",{ref:nt,className:F()("".concat(an,"-treenode-motion"),lr),style:Hn},Yt.map(function(ut){var bt=(0,x.Z)({},(U(ut.data),ut.data)),We=ut.title,be=ut.key,Ae=ut.isStart,Ue=ut.isEnd;delete bt.children;var $e=(0,W.H8)(be,tt);return d.createElement(ue.Z,(0,x.Z)({},bt,$e,{title:We,active:rt,data:ut.data,key:be,isStart:Ae,isEnd:Ue}))}))}):d.createElement(ue.Z,(0,x.Z)({domRef:jt,className:St,style:fn},de,{active:rt}))};ce.displayName="MotionTreeNode";var ve=d.forwardRef(ce),fe=ve;function we(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],jt=ct.length,St=at.length;if(Math.abs(jt-St)!==1)return{add:!1,key:null};function fn(Xt,Yt){var Rt=new Map;Xt.forEach(function(ze){Rt.set(ze,!0)});var Lt=Yt.filter(function(ze){return!Rt.has(ze)});return Lt.length===1?Lt[0]:null}return jt<St?{add:!0,key:fn(ct,at)}:{add:!1,key:fn(at,ct)}}function me(ct,at,jt){var St=ct.findIndex(function(Rt){return Rt.key===jt}),fn=ct[St+1],Xt=at.findIndex(function(Rt){return Rt.key===jt});if(fn){var Yt=at.findIndex(function(Rt){return Rt.key===fn.key});return at.slice(Xt+1,Yt)}return at.slice(Xt+1)}var Pe=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],pe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ie=function(){},Je="RC_TREE_MOTION_".concat(Math.random()),ke={key:Je},De={key:Je,level:0,index:0,pos:"0",node:ke,nodes:[ke]},Fe={parent:null,children:[],pos:De.pos,data:ke,title:null,key:Je,isStart:[],isEnd:[]};function Qe(ct,at,jt,St){return at===!1||!jt?ct:ct.slice(0,Math.ceil(jt/St)+1)}function qe(ct){var at=ct.key,jt=ct.pos;return(0,W.km)(at,jt)}function et(ct){for(var at=String(ct.data.key),jt=ct;jt.parent;)jt=jt.parent,at="".concat(jt.data.key," > ").concat(at);return at}var dt=d.forwardRef(function(ct,at){var jt=ct.prefixCls,St=ct.data,fn=ct.selectable,Xt=ct.checkable,Yt=ct.expandedKeys,Rt=ct.selectedKeys,Lt=ct.checkedKeys,ze=ct.loadedKeys,rt=ct.loadingKeys,tt=ct.halfCheckedKeys,de=ct.keyEntities,ot=ct.disabled,Et=ct.dragging,Ht=ct.dragOverNodeKey,Jt=ct.dropPosition,Qt=ct.motion,an=ct.height,Un=ct.itemHeight,qt=ct.virtual,rn=ct.focusable,cn=ct.activeItem,er=ct.focused,rr=ct.tabIndex,nt=ct.onKeyDown,lr=ct.onFocus,Hn=ct.onBlur,ut=ct.onActiveChange,bt=ct.onListChangeStart,We=ct.onListChangeEnd,be=(0,V.Z)(ct,Pe),Ae=d.useRef(null),Ue=d.useRef(null);d.useImperativeHandle(at,function(){return{scrollTo:function(Or){Ae.current.scrollTo(Or)},getIndentWidth:function(){return Ue.current.offsetWidth}}});var $e=d.useState(Yt),kt=(0,L.Z)($e,2),lt=kt[0],vt=kt[1],Ct=d.useState(St),Bt=(0,L.Z)(Ct,2),mt=Bt[0],Zt=Bt[1],zt=d.useState(St),ln=(0,L.Z)(zt,2),An=ln[0],En=ln[1],Gn=d.useState([]),Bn=(0,L.Z)(Gn,2),pr=Bn[0],_r=Bn[1],na=d.useState(null),$n=(0,L.Z)(na,2),qr=$n[0],Jr=$n[1],Aa=d.useRef(St);Aa.current=St;function ya(){var Fn=Aa.current;Zt(Fn),En(Fn),_r([]),Jr(null),We()}re(function(){vt(Yt);var Fn=we(lt,Yt);if(Fn.key!==null)if(Fn.add){var Or=mt.findIndex(function(Ri){var Ea=Ri.key;return Ea===Fn.key}),vr=Qe(me(mt,St,Fn.key),qt,an,Un),Ur=mt.slice();Ur.splice(Or+1,0,Fe),En(Ur),_r(vr),Jr("show")}else{var Zr=St.findIndex(function(Ri){var Ea=Ri.key;return Ea===Fn.key}),Kr=Qe(me(St,mt,Fn.key),qt,an,Un),ba=St.slice();ba.splice(Zr+1,0,Fe),En(ba),_r(Kr),Jr("hide")}else mt!==St&&(Zt(St),En(St))},[Yt,St]),d.useEffect(function(){Et||ya()},[Et]);var $t=Qt?An:St,wn={expandedKeys:Yt,selectedKeys:Rt,loadedKeys:ze,loadingKeys:rt,checkedKeys:Lt,halfCheckedKeys:tt,dragOverNodeKey:Ht,dropPosition:Jt,keyEntities:de};return d.createElement(d.Fragment,null,er&&cn&&d.createElement("span",{style:pe,"aria-live":"assertive"},et(cn)),d.createElement("div",null,d.createElement("input",{style:pe,disabled:rn===!1||ot,tabIndex:rn!==!1?rr:null,onKeyDown:nt,onFocus:lr,onBlur:Hn,value:"",onChange:Ie,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(jt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},d.createElement("div",{className:"".concat(jt,"-indent")},d.createElement("div",{ref:Ue,className:"".concat(jt,"-indent-unit")}))),d.createElement(ne.Z,(0,x.Z)({},be,{data:$t,itemKey:qe,height:an,fullHeight:!1,virtual:qt,itemHeight:Un,prefixCls:"".concat(jt,"-list"),ref:Ae,onVisibleChange:function(Or,vr){var Ur=new Set(Or),Zr=vr.filter(function(Kr){return!Ur.has(Kr)});Zr.some(function(Kr){return qe(Kr)===Je})&&ya()}}),function(Fn){var Or=Fn.pos,vr=(0,x.Z)({},(U(Fn.data),Fn.data)),Ur=Fn.title,Zr=Fn.key,Kr=Fn.isStart,ba=Fn.isEnd,Ri=(0,W.km)(Zr,Or);delete vr.key,delete vr.children;var Ea=(0,W.H8)(Ri,wn);return d.createElement(fe,(0,x.Z)({},vr,Ea,{title:Ur,active:!!cn&&Zr===cn.key,pos:Or,data:Fn.data,isStart:Kr,isEnd:ba,motion:Qt,motionNodes:Zr===Je?pr:null,motionType:qr,onMotionStart:bt,onMotionEnd:ya,treeNodeRequiredProps:wn,onMouseMove:function(){ut(null)}}))}))});dt.displayName="NodeList";var Ke=dt,Ge=o(57725);function wt(ct){var at=ct.dropPosition,jt=ct.dropLevelOffset,St=ct.indent,fn={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(at){case-1:fn.top=0,fn.left=-jt*St;break;case 1:fn.bottom=0,fn.left=-jt*St;break;case 0:fn.bottom=0,fn.left=St;break}return d.createElement("div",{style:fn})}var Vt=10,gt=function(ct){(0,v.Z)(jt,ct);var at=(0,h.Z)(jt);function jt(){var St;(0,w.Z)(this,jt);for(var fn=arguments.length,Xt=new Array(fn),Yt=0;Yt<fn;Yt++)Xt[Yt]=arguments[Yt];return St=at.call.apply(at,[this].concat(Xt)),St.destroyed=!1,St.delayedDragEnterLogic=void 0,St.loadingRetryTimes={},St.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,W.w$)()},St.dragStartMousePosition=null,St.dragNode=void 0,St.currentMouseOverDroppableNodeKey=null,St.listRef=d.createRef(),St.onNodeDragStart=function(Rt,Lt){var ze=St.state,rt=ze.expandedKeys,tt=ze.keyEntities,de=St.props.onDragStart,ot=Lt.props.eventKey;St.dragNode=Lt,St.dragStartMousePosition={x:Rt.clientX,y:Rt.clientY};var Et=(0,Z._5)(rt,ot);St.setState({draggingNodeKey:ot,dragChildrenKeys:(0,Z.wA)(ot,tt),indent:St.listRef.current.getIndentWidth()}),St.setExpandedKeys(Et),window.addEventListener("dragend",St.onWindowDragEnd),de==null||de({event:Rt,node:(0,W.F)(Lt.props)})},St.onNodeDragEnter=function(Rt,Lt){var ze=St.state,rt=ze.expandedKeys,tt=ze.keyEntities,de=ze.dragChildrenKeys,ot=ze.flattenNodes,Et=ze.indent,Ht=St.props,Jt=Ht.onDragEnter,Qt=Ht.onExpand,an=Ht.allowDrop,Un=Ht.direction,qt=Lt.props,rn=qt.pos,cn=qt.eventKey,er=(0,b.Z)(St),rr=er.dragNode;if(St.currentMouseOverDroppableNodeKey!==cn&&(St.currentMouseOverDroppableNodeKey=cn),!rr){St.resetDragState();return}var nt=(0,Z.OM)(Rt,rr,Lt,Et,St.dragStartMousePosition,an,ot,tt,rt,Un),lr=nt.dropPosition,Hn=nt.dropLevelOffset,ut=nt.dropTargetKey,bt=nt.dropContainerKey,We=nt.dropTargetPos,be=nt.dropAllowed,Ae=nt.dragOverNodeKey;if(de.indexOf(ut)!==-1||!be){St.resetDragState();return}if(St.delayedDragEnterLogic||(St.delayedDragEnterLogic={}),Object.keys(St.delayedDragEnterLogic).forEach(function(Ue){clearTimeout(St.delayedDragEnterLogic[Ue])}),rr.props.eventKey!==Lt.props.eventKey&&(Rt.persist(),St.delayedDragEnterLogic[rn]=window.setTimeout(function(){if(St.state.draggingNodeKey!==null){var Ue=(0,M.Z)(rt),$e=tt[Lt.props.eventKey];$e&&($e.children||[]).length&&(Ue=(0,Z.L0)(rt,Lt.props.eventKey)),"expandedKeys"in St.props||St.setExpandedKeys(Ue),Qt==null||Qt(Ue,{node:(0,W.F)(Lt.props),expanded:!0,nativeEvent:Rt.nativeEvent})}},800)),rr.props.eventKey===ut&&Hn===0){St.resetDragState();return}St.setState({dragOverNodeKey:Ae,dropPosition:lr,dropLevelOffset:Hn,dropTargetKey:ut,dropContainerKey:bt,dropTargetPos:We,dropAllowed:be}),Jt==null||Jt({event:Rt,node:(0,W.F)(Lt.props),expandedKeys:rt})},St.onNodeDragOver=function(Rt,Lt){var ze=St.state,rt=ze.dragChildrenKeys,tt=ze.flattenNodes,de=ze.keyEntities,ot=ze.expandedKeys,Et=ze.indent,Ht=St.props,Jt=Ht.onDragOver,Qt=Ht.allowDrop,an=Ht.direction,Un=(0,b.Z)(St),qt=Un.dragNode;if(!!qt){var rn=(0,Z.OM)(Rt,qt,Lt,Et,St.dragStartMousePosition,Qt,tt,de,ot,an),cn=rn.dropPosition,er=rn.dropLevelOffset,rr=rn.dropTargetKey,nt=rn.dropContainerKey,lr=rn.dropAllowed,Hn=rn.dropTargetPos,ut=rn.dragOverNodeKey;rt.indexOf(rr)!==-1||!lr||(qt.props.eventKey===rr&&er===0?St.state.dropPosition===null&&St.state.dropLevelOffset===null&&St.state.dropTargetKey===null&&St.state.dropContainerKey===null&&St.state.dropTargetPos===null&&St.state.dropAllowed===!1&&St.state.dragOverNodeKey===null||St.resetDragState():cn===St.state.dropPosition&&er===St.state.dropLevelOffset&&rr===St.state.dropTargetKey&&nt===St.state.dropContainerKey&&Hn===St.state.dropTargetPos&&lr===St.state.dropAllowed&&ut===St.state.dragOverNodeKey||St.setState({dropPosition:cn,dropLevelOffset:er,dropTargetKey:rr,dropContainerKey:nt,dropTargetPos:Hn,dropAllowed:lr,dragOverNodeKey:ut}),Jt==null||Jt({event:Rt,node:(0,W.F)(Lt.props)}))}},St.onNodeDragLeave=function(Rt,Lt){St.currentMouseOverDroppableNodeKey===Lt.props.eventKey&&!Rt.currentTarget.contains(Rt.relatedTarget)&&(St.resetDragState(),St.currentMouseOverDroppableNodeKey=null);var ze=St.props.onDragLeave;ze==null||ze({event:Rt,node:(0,W.F)(Lt.props)})},St.onWindowDragEnd=function(Rt){St.onNodeDragEnd(Rt,null,!0),window.removeEventListener("dragend",St.onWindowDragEnd)},St.onNodeDragEnd=function(Rt,Lt){var ze=St.props.onDragEnd;St.setState({dragOverNodeKey:null}),St.cleanDragState(),ze==null||ze({event:Rt,node:(0,W.F)(Lt.props)}),St.dragNode=null,window.removeEventListener("dragend",St.onWindowDragEnd)},St.onNodeDrop=function(Rt,Lt){var ze,rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,tt=St.state,de=tt.dragChildrenKeys,ot=tt.dropPosition,Et=tt.dropTargetKey,Ht=tt.dropTargetPos,Jt=tt.dropAllowed;if(!!Jt){var Qt=St.props.onDrop;if(St.setState({dragOverNodeKey:null}),St.cleanDragState(),Et!==null){var an=(0,y.Z)((0,y.Z)({},(0,W.H8)(Et,St.getTreeNodeRequiredProps())),{},{active:((ze=St.getActiveItem())===null||ze===void 0?void 0:ze.key)===Et,data:St.state.keyEntities[Et].node}),Un=de.indexOf(Et)!==-1;(0,S.ZP)(!Un,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var qt=(0,Z.yx)(Ht),rn={event:Rt,node:(0,W.F)(an),dragNode:St.dragNode?(0,W.F)(St.dragNode.props):null,dragNodesKeys:[St.dragNode.props.eventKey].concat(de),dropToGap:ot!==0,dropPosition:ot+Number(qt[qt.length-1])};rt||Qt==null||Qt(rn),St.dragNode=null}}},St.cleanDragState=function(){var Rt=St.state.draggingNodeKey;Rt!==null&&St.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),St.dragStartMousePosition=null,St.currentMouseOverDroppableNodeKey=null},St.triggerExpandActionExpand=function(Rt,Lt){var ze=St.state,rt=ze.expandedKeys,tt=ze.flattenNodes,de=Lt.expanded,ot=Lt.key,Et=Lt.isLeaf;if(!(Et||Rt.shiftKey||Rt.metaKey||Rt.ctrlKey)){var Ht=tt.filter(function(Qt){return Qt.key===ot})[0],Jt=(0,W.F)((0,y.Z)((0,y.Z)({},(0,W.H8)(ot,St.getTreeNodeRequiredProps())),{},{data:Ht.data}));St.setExpandedKeys(de?(0,Z._5)(rt,ot):(0,Z.L0)(rt,ot)),St.onNodeExpand(Rt,Jt)}},St.onNodeClick=function(Rt,Lt){var ze=St.props,rt=ze.onClick,tt=ze.expandAction;tt==="click"&&St.triggerExpandActionExpand(Rt,Lt),rt==null||rt(Rt,Lt)},St.onNodeDoubleClick=function(Rt,Lt){var ze=St.props,rt=ze.onDoubleClick,tt=ze.expandAction;tt==="doubleClick"&&St.triggerExpandActionExpand(Rt,Lt),rt==null||rt(Rt,Lt)},St.onNodeSelect=function(Rt,Lt){var ze=St.state.selectedKeys,rt=St.state,tt=rt.keyEntities,de=rt.fieldNames,ot=St.props,Et=ot.onSelect,Ht=ot.multiple,Jt=Lt.selected,Qt=Lt[de.key],an=!Jt;an?Ht?ze=(0,Z.L0)(ze,Qt):ze=[Qt]:ze=(0,Z._5)(ze,Qt);var Un=ze.map(function(qt){var rn=tt[qt];return rn?rn.node:null}).filter(function(qt){return qt});St.setUncontrolledState({selectedKeys:ze}),Et==null||Et(ze,{event:"select",selected:an,node:Lt,selectedNodes:Un,nativeEvent:Rt.nativeEvent})},St.onNodeCheck=function(Rt,Lt,ze){var rt=St.state,tt=rt.keyEntities,de=rt.checkedKeys,ot=rt.halfCheckedKeys,Et=St.props,Ht=Et.checkStrictly,Jt=Et.onCheck,Qt=Lt.key,an,Un={event:"check",node:Lt,checked:ze,nativeEvent:Rt.nativeEvent};if(Ht){var qt=ze?(0,Z.L0)(de,Qt):(0,Z._5)(de,Qt),rn=(0,Z._5)(ot,Qt);an={checked:qt,halfChecked:rn},Un.checkedNodes=qt.map(function(Hn){return tt[Hn]}).filter(function(Hn){return Hn}).map(function(Hn){return Hn.node}),St.setUncontrolledState({checkedKeys:qt})}else{var cn=(0,Ge.S)([].concat((0,M.Z)(de),[Qt]),!0,tt),er=cn.checkedKeys,rr=cn.halfCheckedKeys;if(!ze){var nt=new Set(er);nt.delete(Qt);var lr=(0,Ge.S)(Array.from(nt),{checked:!1,halfCheckedKeys:rr},tt);er=lr.checkedKeys,rr=lr.halfCheckedKeys}an=er,Un.checkedNodes=[],Un.checkedNodesPositions=[],Un.halfCheckedKeys=rr,er.forEach(function(Hn){var ut=tt[Hn];if(!!ut){var bt=ut.node,We=ut.pos;Un.checkedNodes.push(bt),Un.checkedNodesPositions.push({node:bt,pos:We})}}),St.setUncontrolledState({checkedKeys:er},!1,{halfCheckedKeys:rr})}Jt==null||Jt(an,Un)},St.onNodeLoad=function(Rt){var Lt=Rt.key,ze=new Promise(function(rt,tt){St.setState(function(de){var ot=de.loadedKeys,Et=ot===void 0?[]:ot,Ht=de.loadingKeys,Jt=Ht===void 0?[]:Ht,Qt=St.props,an=Qt.loadData,Un=Qt.onLoad;if(!an||Et.indexOf(Lt)!==-1||Jt.indexOf(Lt)!==-1)return null;var qt=an(Rt);return qt.then(function(){var rn=St.state.loadedKeys,cn=(0,Z.L0)(rn,Lt);Un==null||Un(cn,{event:"load",node:Rt}),St.setUncontrolledState({loadedKeys:cn}),St.setState(function(er){return{loadingKeys:(0,Z._5)(er.loadingKeys,Lt)}}),rt()}).catch(function(rn){if(St.setState(function(er){return{loadingKeys:(0,Z._5)(er.loadingKeys,Lt)}}),St.loadingRetryTimes[Lt]=(St.loadingRetryTimes[Lt]||0)+1,St.loadingRetryTimes[Lt]>=Vt){var cn=St.state.loadedKeys;(0,S.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),St.setUncontrolledState({loadedKeys:(0,Z.L0)(cn,Lt)}),rt()}tt(rn)}),{loadingKeys:(0,Z.L0)(Jt,Lt)}})});return ze.catch(function(){}),ze},St.onNodeMouseEnter=function(Rt,Lt){var ze=St.props.onMouseEnter;ze==null||ze({event:Rt,node:Lt})},St.onNodeMouseLeave=function(Rt,Lt){var ze=St.props.onMouseLeave;ze==null||ze({event:Rt,node:Lt})},St.onNodeContextMenu=function(Rt,Lt){var ze=St.props.onRightClick;ze&&(Rt.preventDefault(),ze({event:Rt,node:Lt}))},St.onFocus=function(){var Rt=St.props.onFocus;St.setState({focused:!0});for(var Lt=arguments.length,ze=new Array(Lt),rt=0;rt<Lt;rt++)ze[rt]=arguments[rt];Rt==null||Rt.apply(void 0,ze)},St.onBlur=function(){var Rt=St.props.onBlur;St.setState({focused:!1}),St.onActiveChange(null);for(var Lt=arguments.length,ze=new Array(Lt),rt=0;rt<Lt;rt++)ze[rt]=arguments[rt];Rt==null||Rt.apply(void 0,ze)},St.getTreeNodeRequiredProps=function(){var Rt=St.state,Lt=Rt.expandedKeys,ze=Rt.selectedKeys,rt=Rt.loadedKeys,tt=Rt.loadingKeys,de=Rt.checkedKeys,ot=Rt.halfCheckedKeys,Et=Rt.dragOverNodeKey,Ht=Rt.dropPosition,Jt=Rt.keyEntities;return{expandedKeys:Lt||[],selectedKeys:ze||[],loadedKeys:rt||[],loadingKeys:tt||[],checkedKeys:de||[],halfCheckedKeys:ot||[],dragOverNodeKey:Et,dropPosition:Ht,keyEntities:Jt}},St.setExpandedKeys=function(Rt){var Lt=St.state,ze=Lt.treeData,rt=Lt.fieldNames,tt=(0,W.oH)(ze,Rt,rt);St.setUncontrolledState({expandedKeys:Rt,flattenNodes:tt},!0)},St.onNodeExpand=function(Rt,Lt){var ze=St.state.expandedKeys,rt=St.state,tt=rt.listChanging,de=rt.fieldNames,ot=St.props,Et=ot.onExpand,Ht=ot.loadData,Jt=Lt.expanded,Qt=Lt[de.key];if(!tt){var an=ze.indexOf(Qt),Un=!Jt;if((0,S.ZP)(Jt&&an!==-1||!Jt&&an===-1,"Expand state not sync with index check"),Un?ze=(0,Z.L0)(ze,Qt):ze=(0,Z._5)(ze,Qt),St.setExpandedKeys(ze),Et==null||Et(ze,{node:Lt,expanded:Un,nativeEvent:Rt.nativeEvent}),Un&&Ht){var qt=St.onNodeLoad(Lt);qt&&qt.then(function(){var rn=(0,W.oH)(St.state.treeData,ze,de);St.setUncontrolledState({flattenNodes:rn})}).catch(function(){var rn=St.state.expandedKeys,cn=(0,Z._5)(rn,Qt);St.setExpandedKeys(cn)})}}},St.onListChangeStart=function(){St.setUncontrolledState({listChanging:!0})},St.onListChangeEnd=function(){setTimeout(function(){St.setUncontrolledState({listChanging:!1})})},St.onActiveChange=function(Rt){var Lt=St.state.activeKey,ze=St.props.onActiveChange;Lt!==Rt&&(St.setState({activeKey:Rt}),Rt!==null&&St.scrollTo({key:Rt}),ze==null||ze(Rt))},St.getActiveItem=function(){var Rt=St.state,Lt=Rt.activeKey,ze=Rt.flattenNodes;return Lt===null?null:ze.find(function(rt){var tt=rt.key;return tt===Lt})||null},St.offsetActiveKey=function(Rt){var Lt=St.state,ze=Lt.flattenNodes,rt=Lt.activeKey,tt=ze.findIndex(function(Et){var Ht=Et.key;return Ht===rt});tt===-1&&Rt<0&&(tt=ze.length),tt=(tt+Rt+ze.length)%ze.length;var de=ze[tt];if(de){var ot=de.key;St.onActiveChange(ot)}else St.onActiveChange(null)},St.onKeyDown=function(Rt){var Lt=St.state,ze=Lt.activeKey,rt=Lt.expandedKeys,tt=Lt.checkedKeys,de=Lt.fieldNames,ot=St.props,Et=ot.onKeyDown,Ht=ot.checkable,Jt=ot.selectable;switch(Rt.which){case p.UP:{St.offsetActiveKey(-1),Rt.preventDefault();break}case p.DOWN:{St.offsetActiveKey(1),Rt.preventDefault();break}}var Qt=St.getActiveItem();if(Qt&&Qt.data){var an=St.getTreeNodeRequiredProps(),Un=Qt.data.isLeaf===!1||!!(Qt.data[de.children]||[]).length,qt=(0,W.F)((0,y.Z)((0,y.Z)({},(0,W.H8)(ze,an)),{},{data:Qt.data,active:!0}));switch(Rt.which){case p.LEFT:{Un&&rt.includes(ze)?St.onNodeExpand({},qt):Qt.parent&&St.onActiveChange(Qt.parent.key),Rt.preventDefault();break}case p.RIGHT:{Un&&!rt.includes(ze)?St.onNodeExpand({},qt):Qt.children&&Qt.children.length&&St.onActiveChange(Qt.children[0].key),Rt.preventDefault();break}case p.ENTER:case p.SPACE:{Ht&&!qt.disabled&&qt.checkable!==!1&&!qt.disableCheckbox?St.onNodeCheck({},qt,!tt.includes(ze)):!Ht&&Jt&&!qt.disabled&&qt.selectable!==!1&&St.onNodeSelect({},qt);break}}}Et==null||Et(Rt)},St.setUncontrolledState=function(Rt){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!St.destroyed){var rt=!1,tt=!0,de={};Object.keys(Rt).forEach(function(ot){if(ot in St.props){tt=!1;return}rt=!0,de[ot]=Rt[ot]}),rt&&(!Lt||tt)&&St.setState((0,y.Z)((0,y.Z)({},de),ze))}},St.scrollTo=function(Rt){St.listRef.current.scrollTo(Rt)},St}return(0,m.Z)(jt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var fn=this.props.activeKey;fn!==void 0&&fn!==this.state.activeKey&&(this.setState({activeKey:fn}),fn!==null&&this.scrollTo({key:fn}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var fn,Xt=this.state,Yt=Xt.focused,Rt=Xt.flattenNodes,Lt=Xt.keyEntities,ze=Xt.draggingNodeKey,rt=Xt.activeKey,tt=Xt.dropLevelOffset,de=Xt.dropContainerKey,ot=Xt.dropTargetKey,Et=Xt.dropPosition,Ht=Xt.dragOverNodeKey,Jt=Xt.indent,Qt=this.props,an=Qt.prefixCls,Un=Qt.className,qt=Qt.style,rn=Qt.showLine,cn=Qt.focusable,er=Qt.tabIndex,rr=er===void 0?0:er,nt=Qt.selectable,lr=Qt.showIcon,Hn=Qt.icon,ut=Qt.switcherIcon,bt=Qt.draggable,We=Qt.checkable,be=Qt.checkStrictly,Ae=Qt.disabled,Ue=Qt.motion,$e=Qt.loadData,kt=Qt.filterTreeNode,lt=Qt.height,vt=Qt.itemHeight,Ct=Qt.virtual,Bt=Qt.titleRender,mt=Qt.dropIndicatorRender,Zt=Qt.onContextMenu,zt=Qt.onScroll,ln=Qt.direction,An=Qt.rootClassName,En=Qt.rootStyle,Gn=(0,k.Z)(this.props,{aria:!0,data:!0}),Bn;return bt&&((0,A.Z)(bt)==="object"?Bn=bt:typeof bt=="function"?Bn={nodeDraggable:bt}:Bn={}),d.createElement(D.k.Provider,{value:{prefixCls:an,selectable:nt,showIcon:lr,icon:Hn,switcherIcon:ut,draggable:Bn,draggingNodeKey:ze,checkable:We,checkStrictly:be,disabled:Ae,keyEntities:Lt,dropLevelOffset:tt,dropContainerKey:de,dropTargetKey:ot,dropPosition:Et,dragOverNodeKey:Ht,indent:Jt,direction:ln,dropIndicatorRender:mt,loadData:$e,filterTreeNode:kt,titleRender:Bt,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},d.createElement("div",{role:"tree",className:F()(an,Un,An,(fn={},(0,g.Z)(fn,"".concat(an,"-show-line"),rn),(0,g.Z)(fn,"".concat(an,"-focused"),Yt),(0,g.Z)(fn,"".concat(an,"-active-focused"),rt!==null),fn)),style:En},d.createElement(Ke,(0,x.Z)({ref:this.listRef,prefixCls:an,style:qt,data:Rt,disabled:Ae,selectable:nt,checkable:!!We,motion:Ue,dragging:ze!==null,height:lt,itemHeight:vt,virtual:Ct,focusable:cn,focused:Yt,tabIndex:rr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Zt,onScroll:zt},this.getTreeNodeRequiredProps(),Gn))))}}],[{key:"getDerivedStateFromProps",value:function(fn,Xt){var Yt=Xt.prevProps,Rt={prevProps:fn};function Lt(cn){return!Yt&&cn in fn||Yt&&Yt[cn]!==fn[cn]}var ze,rt=Xt.fieldNames;if(Lt("fieldNames")&&(rt=(0,W.w$)(fn.fieldNames),Rt.fieldNames=rt),Lt("treeData")?ze=fn.treeData:Lt("children")&&((0,S.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ze=(0,W.zn)(fn.children)),ze){Rt.treeData=ze;var tt=(0,W.I8)(ze,{fieldNames:rt});Rt.keyEntities=(0,y.Z)((0,g.Z)({},Je,De),tt.keyEntities)}var de=Rt.keyEntities||Xt.keyEntities;if(Lt("expandedKeys")||Yt&&Lt("autoExpandParent"))Rt.expandedKeys=fn.autoExpandParent||!Yt&&fn.defaultExpandParent?(0,Z.r7)(fn.expandedKeys,de):fn.expandedKeys;else if(!Yt&&fn.defaultExpandAll){var ot=(0,y.Z)({},de);delete ot[Je],Rt.expandedKeys=Object.keys(ot).map(function(cn){return ot[cn].key})}else!Yt&&fn.defaultExpandedKeys&&(Rt.expandedKeys=fn.autoExpandParent||fn.defaultExpandParent?(0,Z.r7)(fn.defaultExpandedKeys,de):fn.defaultExpandedKeys);if(Rt.expandedKeys||delete Rt.expandedKeys,ze||Rt.expandedKeys){var Et=(0,W.oH)(ze||Xt.treeData,Rt.expandedKeys||Xt.expandedKeys,rt);Rt.flattenNodes=Et}if(fn.selectable&&(Lt("selectedKeys")?Rt.selectedKeys=(0,Z.BT)(fn.selectedKeys,fn):!Yt&&fn.defaultSelectedKeys&&(Rt.selectedKeys=(0,Z.BT)(fn.defaultSelectedKeys,fn))),fn.checkable){var Ht;if(Lt("checkedKeys")?Ht=(0,Z.E6)(fn.checkedKeys)||{}:!Yt&&fn.defaultCheckedKeys?Ht=(0,Z.E6)(fn.defaultCheckedKeys)||{}:ze&&(Ht=(0,Z.E6)(fn.checkedKeys)||{checkedKeys:Xt.checkedKeys,halfCheckedKeys:Xt.halfCheckedKeys}),Ht){var Jt=Ht,Qt=Jt.checkedKeys,an=Qt===void 0?[]:Qt,Un=Jt.halfCheckedKeys,qt=Un===void 0?[]:Un;if(!fn.checkStrictly){var rn=(0,Ge.S)(an,!0,de);an=rn.checkedKeys,qt=rn.halfCheckedKeys}Rt.checkedKeys=an,Rt.halfCheckedKeys=qt}}return Lt("loadedKeys")&&(Rt.loadedKeys=fn.loadedKeys),Rt}}]),jt}(d.Component);gt.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:wt,allowDrop:function(){return!0},expandAction:!1},gt.TreeNode=ue.Z;var it=gt,Le=it},5409:function(oe,N,o){"use strict";o.d(N,{_5:function(){return b},L0:function(){return v},yx:function(){return h},wA:function(){return d},OM:function(){return S},BT:function(){return k},E6:function(){return D},r7:function(){return Z}});var x=o(85061),g=o(90484),A=o(67294),y=o(48696),M=o(36320),w=o(93254),m=null;function b(W,U){if(!W)return[];var L=W.slice(),V=L.indexOf(U);return V>=0&&L.splice(V,1),L}function v(W,U){var L=(W||[]).slice();return L.indexOf(U)===-1&&L.push(U),L}function h(W){return W.split("-")}function d(W,U){var L=[],V=U[W];function $(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];G.forEach(function(z){var K=z.key,re=z.children;L.push(K),$(re)})}return $(V.children),L}function _(W){if(W.parent){var U=h(W.pos);return Number(U[U.length-1])===W.parent.children.length-1}return!1}function p(W){var U=h(W.pos);return Number(U[U.length-1])===0}function S(W,U,L,V,$,G,z,K,re,ne){var Q,ue=W.clientX,he=W.clientY,Ee=W.target.getBoundingClientRect(),ce=Ee.top,ve=Ee.height,fe=(ne==="rtl"?-1:1)*((($==null?void 0:$.x)||0)-ue),we=(fe-12)/V,me=K[L.props.eventKey];if(he<ce+ve/2){var Pe=z.findIndex(function(Ge){return Ge.key===me.key}),pe=Pe<=0?0:Pe-1,Ie=z[pe].key;me=K[Ie]}var Je=me.key,ke=me,De=me.key,Fe=0,Qe=0;if(!re.includes(Je))for(var qe=0;qe<we&&_(me);qe+=1)me=me.parent,Qe+=1;var et=U.props.data,dt=me.node,Ke=!0;return p(me)&&me.level===0&&he<ce+ve/2&&G({dragNode:et,dropNode:dt,dropPosition:-1})&&me.key===L.props.eventKey?Fe=-1:(ke.children||[]).length&&re.includes(De)?G({dragNode:et,dropNode:dt,dropPosition:0})?Fe=0:Ke=!1:Qe===0?we>-1.5?G({dragNode:et,dropNode:dt,dropPosition:1})?Fe=1:Ke=!1:G({dragNode:et,dropNode:dt,dropPosition:0})?Fe=0:G({dragNode:et,dropNode:dt,dropPosition:1})?Fe=1:Ke=!1:G({dragNode:et,dropNode:dt,dropPosition:1})?Fe=1:Ke=!1,{dropPosition:Fe,dropLevelOffset:Qe,dropTargetKey:me.key,dropTargetPos:me.pos,dragOverNodeKey:De,dropContainerKey:Fe===0?null:((Q=me.parent)===null||Q===void 0?void 0:Q.key)||null,dropAllowed:Ke}}function k(W,U){if(!!W){var L=U.multiple;return L?W.slice():W.length?[W[0]]:W}}var O=function(U){return U};function F(W,U){if(!W)return[];var L=U||{},V=L.processProps,$=V===void 0?O:V,G=Array.isArray(W)?W:[W];return G.map(function(z){var K=z.children,re=_objectWithoutProperties(z,m),ne=F(K,U);return React.createElement(TreeNode,_extends({key:re.key},$(re)),ne)})}function D(W){if(!W)return null;var U;if(Array.isArray(W))U={checkedKeys:W,halfCheckedKeys:void 0};else if((0,g.Z)(W)==="object")U={checkedKeys:W.checked||void 0,halfCheckedKeys:W.halfChecked||void 0};else return(0,y.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return U}function Z(W,U){var L=new Set;function V($){if(!L.has($)){var G=U[$];if(!!G){L.add($);var z=G.parent,K=G.node;K.disabled||z&&V(z.key)}}}return(W||[]).forEach(function($){V($)}),(0,x.Z)(L)}},57725:function(oe,N,o){"use strict";o.d(N,{S:function(){return w}});var x=o(48696);function g(m,b){var v=new Set;return m.forEach(function(h){b.has(h)||v.add(h)}),v}function A(m){var b=m||{},v=b.disabled,h=b.disableCheckbox,d=b.checkable;return!!(v||h)||d===!1}function y(m,b,v,h){for(var d=new Set(m),_=new Set,p=0;p<=v;p+=1){var S=b.get(p)||new Set;S.forEach(function(D){var Z=D.key,W=D.node,U=D.children,L=U===void 0?[]:U;d.has(Z)&&!h(W)&&L.filter(function(V){return!h(V.node)}).forEach(function(V){d.add(V.key)})})}for(var k=new Set,O=v;O>=0;O-=1){var F=b.get(O)||new Set;F.forEach(function(D){var Z=D.parent,W=D.node;if(!(h(W)||!D.parent||k.has(D.parent.key))){if(h(D.parent.node)){k.add(Z.key);return}var U=!0,L=!1;(Z.children||[]).filter(function(V){return!h(V.node)}).forEach(function(V){var $=V.key,G=d.has($);U&&!G&&(U=!1),!L&&(G||_.has($))&&(L=!0)}),U&&d.add(Z.key),L&&_.add(Z.key),k.add(Z.key)}})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(g(_,d))}}function M(m,b,v,h,d){for(var _=new Set(m),p=new Set(b),S=0;S<=h;S+=1){var k=v.get(S)||new Set;k.forEach(function(Z){var W=Z.key,U=Z.node,L=Z.children,V=L===void 0?[]:L;!_.has(W)&&!p.has(W)&&!d(U)&&V.filter(function($){return!d($.node)}).forEach(function($){_.delete($.key)})})}p=new Set;for(var O=new Set,F=h;F>=0;F-=1){var D=v.get(F)||new Set;D.forEach(function(Z){var W=Z.parent,U=Z.node;if(!(d(U)||!Z.parent||O.has(Z.parent.key))){if(d(Z.parent.node)){O.add(W.key);return}var L=!0,V=!1;(W.children||[]).filter(function($){return!d($.node)}).forEach(function($){var G=$.key,z=_.has(G);L&&!z&&(L=!1),!V&&(z||p.has(G))&&(V=!0)}),L||_.delete(W.key),V&&p.add(W.key),O.add(W.key)}})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(g(p,_))}}function w(m,b,v,h){var d=[],_;h?_=h:_=A;var p=new Set(m.filter(function(F){var D=!!v[F];return D||d.push(F),D})),S=new Map,k=0;Object.keys(v).forEach(function(F){var D=v[F],Z=D.level,W=S.get(Z);W||(W=new Set,S.set(Z,W)),W.add(D),k=Math.max(k,Z)}),(0,x.ZP)(!d.length,"Tree missing follow keys: ".concat(d.slice(0,100).map(function(F){return"'".concat(F,"'")}).join(", ")));var O;return b===!0?O=y(p,S,k,_):O=M(p,b.halfCheckedKeys,S,k,_),O}},93254:function(oe,N,o){"use strict";o.d(N,{I8:function(){return Z},F:function(){return U},zn:function(){return O},w$:function(){return S},oH:function(){return F},km:function(){return p},H8:function(){return W}});var x=o(90484),g=o(85061),A=o(28991),y=o(81253),M=o(67294),w=o(54323);function m(L){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=[];return M.Children.forEach(L,function(G){G==null&&!V.keepEmpty||(Array.isArray(G)?$=$.concat(m(G)):(0,w.isFragment)(G)&&G.props?$=$.concat(m(G.props.children,V)):$.push(G))}),$}function b(L,V){var $=(0,A.Z)({},L);return Array.isArray(V)&&V.forEach(function(G){delete $[G]}),$}var v=o(48696),h=["children"];function d(L,V){return"".concat(L,"-").concat(V)}function _(L){return L&&L.type&&L.type.isTreeNode}function p(L,V){return L!=null?L:V}function S(L){var V=L||{},$=V.title,G=V._title,z=V.key,K=V.children,re=$||"title";return{title:re,_title:G||[re],key:z||"key",children:K||"children"}}function k(L,V){var $=new Map;function G(z){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(z||[]).forEach(function(re){var ne=re[V.key],Q=re[V.children];warning(ne!=null,"Tree node must have a certain key: [".concat(K).concat(ne,"]"));var ue=String(ne);warning(!$.has(ue)||ne===null||ne===void 0,"Same 'key' exist in the Tree: ".concat(ue)),$.set(ue,!0),G(Q,"".concat(K).concat(ue," > "))})}G(L)}function O(L){function V($){var G=m($);return G.map(function(z){if(!_(z))return(0,v.ZP)(!z,"Tree/TreeNode can only accept TreeNode as children."),null;var K=z.key,re=z.props,ne=re.children,Q=(0,y.Z)(re,h),ue=(0,A.Z)({key:K},Q),he=V(ne);return he.length&&(ue.children=he),ue}).filter(function(z){return z})}return V(L)}function F(L,V,$){var G=S($),z=G._title,K=G.key,re=G.children,ne=new Set(V===!0?[]:V),Q=[];function ue(he){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return he.map(function(ce,ve){for(var fe=d(Ee?Ee.pos:"0",ve),we=p(ce[K],fe),me,Pe=0;Pe<z.length;Pe+=1){var pe=z[Pe];if(ce[pe]!==void 0){me=ce[pe];break}}var Ie=(0,A.Z)((0,A.Z)({},b(ce,[].concat((0,g.Z)(z),[K,re]))),{},{title:me,key:we,parent:Ee,pos:fe,children:null,data:ce,isStart:[].concat((0,g.Z)(Ee?Ee.isStart:[]),[ve===0]),isEnd:[].concat((0,g.Z)(Ee?Ee.isEnd:[]),[ve===he.length-1])});return Q.push(Ie),V===!0||ne.has(we)?Ie.children=ue(ce[re]||[],Ie):Ie.children=[],Ie})}return ue(L),Q}function D(L,V,$){var G={};(0,x.Z)($)==="object"?G=$:G={externalGetKey:$},G=G||{};var z=G,K=z.childrenPropName,re=z.externalGetKey,ne=z.fieldNames,Q=S(ne),ue=Q.key,he=Q.children,Ee=K||he,ce;re?typeof re=="string"?ce=function(we){return we[re]}:typeof re=="function"&&(ce=function(we){return re(we)}):ce=function(we,me){return p(we[ue],me)};function ve(fe,we,me,Pe){var pe=fe?fe[Ee]:L,Ie=fe?d(me.pos,we):"0",Je=fe?[].concat((0,g.Z)(Pe),[fe]):[];if(fe){var ke=ce(fe,Ie),De={node:fe,index:we,pos:Ie,key:ke,parentPos:me.node?me.pos:null,level:me.level+1,nodes:Je};V(De)}pe&&pe.forEach(function(Fe,Qe){ve(Fe,Qe,{node:fe,pos:Ie,level:me?me.level+1:-1},Je)})}ve(null)}function Z(L){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=V.initWrapper,G=V.processEntity,z=V.onProcessFinished,K=V.externalGetKey,re=V.childrenPropName,ne=V.fieldNames,Q=arguments.length>2?arguments[2]:void 0,ue=K||Q,he={},Ee={},ce={posEntities:he,keyEntities:Ee};return $&&(ce=$(ce)||ce),D(L,function(ve){var fe=ve.node,we=ve.index,me=ve.pos,Pe=ve.key,pe=ve.parentPos,Ie=ve.level,Je=ve.nodes,ke={node:fe,nodes:Je,index:we,key:Pe,pos:me,level:Ie},De=p(Pe,me);he[me]=ke,Ee[De]=ke,ke.parent=he[pe],ke.parent&&(ke.parent.children=ke.parent.children||[],ke.parent.children.push(ke)),G&&G(ke,ce)},{externalGetKey:ue,childrenPropName:re,fieldNames:ne}),z&&z(ce),ce}function W(L,V){var $=V.expandedKeys,G=V.selectedKeys,z=V.loadedKeys,K=V.loadingKeys,re=V.checkedKeys,ne=V.halfCheckedKeys,Q=V.dragOverNodeKey,ue=V.dropPosition,he=V.keyEntities,Ee=he[L],ce={eventKey:L,expanded:$.indexOf(L)!==-1,selected:G.indexOf(L)!==-1,loaded:z.indexOf(L)!==-1,loading:K.indexOf(L)!==-1,checked:re.indexOf(L)!==-1,halfChecked:ne.indexOf(L)!==-1,pos:String(Ee?Ee.pos:""),dragOver:Q===L&&ue===0,dragOverGapTop:Q===L&&ue===-1,dragOverGapBottom:Q===L&&ue===1};return ce}function U(L){var V=L.data,$=L.expanded,G=L.selected,z=L.checked,K=L.loaded,re=L.loading,ne=L.halfChecked,Q=L.dragOver,ue=L.dragOverGapTop,he=L.dragOverGapBottom,Ee=L.pos,ce=L.active,ve=L.eventKey,fe=(0,A.Z)((0,A.Z)({},V),{},{expanded:$,selected:G,checked:z,loaded:K,loading:re,halfChecked:ne,dragOver:Q,dragOverGapTop:ue,dragOverGapBottom:he,pos:Ee,active:ce,key:ve});return"props"in fe||Object.defineProperty(fe,"props",{get:function(){return(0,v.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),L}}),fe}},62137:function(oe,N,o){"use strict";o.d(N,{Z:function(){return b}});var x=o(28991),g=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
||
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
||
charSet checked classID className colSpan cols content contentEditable contextMenu
|
||
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
||
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
||
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
||
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
||
mediaGroup method min minLength multiple muted name noValidate nonce open
|
||
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
||
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
||
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
||
summary tabIndex target title type useMap value width wmode wrap`,A=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
||
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
||
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
||
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
||
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
||
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
||
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,y="".concat(g," ").concat(A).split(/[\s\n]+/),M="aria-",w="data-";function m(v,h){return v.indexOf(h)===0}function b(v){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d;h===!1?d={aria:!0,data:!0,attr:!0}:h===!0?d={aria:!0}:d=(0,x.Z)({},h);var _={};return Object.keys(v).forEach(function(p){(d.aria&&(p==="role"||m(p,M))||d.data&&m(p,w)||d.attr&&y.includes(p))&&(_[p]=v[p])}),_}},48696:function(oe,N,o){"use strict";var x={},g=[],A=function(d){g.push(d)};function y(h,d){if(!1)var _}function M(h,d){if(!1)var _}function w(){x={}}function m(h,d,_){!d&&!x[_]&&(h(!1,_),x[_]=!0)}function b(h,d){m(y,h,d)}function v(h,d){m(M,h,d)}b.preMessage=A,b.resetWarned=w,b.noteOnce=v,N.ZP=b},39971:function(oe,N,o){"use strict";o.d(N,{Z:function(){return Ls}});var x=o(28991),g=o(22122),A=o(6610),y=o(5991),M=o(63349),w=o(10379),m=o(44144),b=o(96156),v=o(67294),h=o(73935),d=function(Dr){return+setTimeout(Dr,16)},_=function(Dr){return clearTimeout(Dr)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(d=function(Dr){return window.requestAnimationFrame(Dr)},_=function(Dr){return window.cancelAnimationFrame(Dr)});var p=0,S=new Map;function k(zn){S.delete(zn)}var O=function(Dr){var Hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;p+=1;var _a=p;function Ti(Ci){if(Ci===0)k(_a),Dr();else{var da=d(function(){Ti(Ci-1)});S.set(_a,da)}}return Ti(Hr),_a};O.cancel=function(zn){var Dr=S.get(zn);return k(Dr),_(Dr)};var F=O;function D(zn,Dr){if(!zn)return!1;if(zn.contains)return zn.contains(Dr);for(var Hr=Dr;Hr;){if(Hr===zn)return!0;Hr=Hr.parentNode}return!1}function Z(zn){return zn instanceof HTMLElement||zn instanceof SVGElement}function W(zn){return Z(zn)?zn:zn instanceof v.Component?h.findDOMNode(zn):null}var U=o(90484),L=o(54323);function V(zn,Dr,Hr){var _a=React.useRef({});return(!("value"in _a.current)||Hr(_a.current.condition,Dr))&&(_a.current.value=zn(),_a.current.condition=Dr),_a.current.value}function $(zn,Dr){typeof zn=="function"?zn(Dr):(0,U.Z)(zn)==="object"&&zn&&"current"in zn&&(zn.current=Dr)}function G(){for(var zn=arguments.length,Dr=new Array(zn),Hr=0;Hr<zn;Hr++)Dr[Hr]=arguments[Hr];var _a=Dr.filter(function(Ti){return Ti});return _a.length<=1?_a[0]:function(Ti){Dr.forEach(function(Ci){$(Ci,Ti)})}}function z(){for(var zn=arguments.length,Dr=new Array(zn),Hr=0;Hr<zn;Hr++)Dr[Hr]=arguments[Hr];return useMemo(function(){return G.apply(void 0,Dr)},Dr,function(_a,Ti){return _a.length!==Ti.length||_a.every(function(Ci,da){return Ci!==Ti[da]})})}function K(zn){var Dr,Hr,_a=(0,L.isMemo)(zn)?zn.type.type:zn.type;return!(typeof _a=="function"&&!((Dr=_a.prototype)!==null&&Dr!==void 0&&Dr.render)||typeof zn=="function"&&!((Hr=zn.prototype)!==null&&Hr!==void 0&&Hr.render))}function re(zn){return!isValidElement(zn)||isFragment(zn)?!1:K(zn)}function ne(zn,Dr,Hr,_a){var Ti=h.unstable_batchedUpdates?function(da){h.unstable_batchedUpdates(Hr,da)}:Hr;return zn!=null&&zn.addEventListener&&zn.addEventListener(Dr,Ti,_a),{remove:function(){zn!=null&&zn.removeEventListener&&zn.removeEventListener(Dr,Ti,_a)}}}function Q(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ue=(0,v.forwardRef)(function(zn,Dr){var Hr=zn.didUpdate,_a=zn.getContainer,Ti=zn.children,Ci=(0,v.useRef)(),da=(0,v.useRef)();(0,v.useImperativeHandle)(Dr,function(){return{}});var Da=(0,v.useRef)(!1);return!Da.current&&Q()&&(da.current=_a(),Ci.current=da.current.parentNode,Da.current=!0),(0,v.useEffect)(function(){Hr==null||Hr(zn)}),(0,v.useEffect)(function(){return da.current.parentNode===null&&Ci.current!==null&&Ci.current.appendChild(da.current),function(){var mi,Ho;(mi=da.current)===null||mi===void 0||(Ho=mi.parentNode)===null||Ho===void 0||Ho.removeChild(da.current)}},[]),da.current?h.createPortal(Ti,da.current):null}),he=ue,Ee=o(35510),ce=o.n(Ee);function ve(zn,Dr,Hr){return Hr?zn[0]===Dr[0]:zn[0]===Dr[0]&&zn[1]===Dr[1]}function fe(zn,Dr,Hr){var _a=zn[Dr]||{};return(0,x.Z)((0,x.Z)({},_a),Hr)}function we(zn,Dr,Hr,_a){for(var Ti=Hr.points,Ci=Object.keys(zn),da=0;da<Ci.length;da+=1){var Da=Ci[da];if(ve(zn[Da].points,Ti,_a))return"".concat(Dr,"-placement-").concat(Da)}return""}var me=o(28481),Pe=o(81253),pe=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var zn=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(zn)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(zn==null?void 0:zn.substr(0,4))},Ie=o(90190);function Je(zn){var Dr=zn.prefixCls,Hr=zn.motion,_a=zn.animation,Ti=zn.transitionName;return Hr||(_a?{motionName:"".concat(Dr,"-").concat(_a)}:Ti?{motionName:Ti}:null)}function ke(zn){var Dr=zn.prefixCls,Hr=zn.visible,_a=zn.zIndex,Ti=zn.mask,Ci=zn.maskMotion,da=zn.maskAnimation,Da=zn.maskTransitionName;if(!Ti)return null;var mi={};return(Ci||Da||da)&&(mi=(0,x.Z)({motionAppear:!0},Je({motion:Ci,prefixCls:Dr,transitionName:Da,animation:da}))),v.createElement(Ie.ZP,(0,g.Z)({},mi,{visible:Hr,removeOnLeave:!0}),function(Ho){var al=Ho.className;return v.createElement("div",{style:{zIndex:_a},className:ce()("".concat(Dr,"-mask"),al)})})}function De(zn,Dr){var Hr=Object.keys(zn);if(Object.getOwnPropertySymbols){var _a=Object.getOwnPropertySymbols(zn);Dr&&(_a=_a.filter(function(Ti){return Object.getOwnPropertyDescriptor(zn,Ti).enumerable})),Hr.push.apply(Hr,_a)}return Hr}function Fe(zn){for(var Dr=1;Dr<arguments.length;Dr++){var Hr=arguments[Dr]!=null?arguments[Dr]:{};Dr%2?De(Object(Hr),!0).forEach(function(_a){qe(zn,_a,Hr[_a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(zn,Object.getOwnPropertyDescriptors(Hr)):De(Object(Hr)).forEach(function(_a){Object.defineProperty(zn,_a,Object.getOwnPropertyDescriptor(Hr,_a))})}return zn}function Qe(zn){return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Dr){return typeof Dr}:function(Dr){return Dr&&typeof Symbol=="function"&&Dr.constructor===Symbol&&Dr!==Symbol.prototype?"symbol":typeof Dr},Qe(zn)}function qe(zn,Dr,Hr){return Dr in zn?Object.defineProperty(zn,Dr,{value:Hr,enumerable:!0,configurable:!0,writable:!0}):zn[Dr]=Hr,zn}var et,dt={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function Ke(){if(et!==void 0)return et;et="";var zn=document.createElement("p").style,Dr="Transform";for(var Hr in dt)Hr+Dr in zn&&(et=Hr);return et}function Ge(){return Ke()?"".concat(Ke(),"TransitionProperty"):"transitionProperty"}function wt(){return Ke()?"".concat(Ke(),"Transform"):"transform"}function Vt(zn,Dr){var Hr=Ge();Hr&&(zn.style[Hr]=Dr,Hr!=="transitionProperty"&&(zn.style.transitionProperty=Dr))}function gt(zn,Dr){var Hr=wt();Hr&&(zn.style[Hr]=Dr,Hr!=="transform"&&(zn.style.transform=Dr))}function it(zn){return zn.style.transitionProperty||zn.style[Ge()]}function Le(zn){var Dr=window.getComputedStyle(zn,null),Hr=Dr.getPropertyValue("transform")||Dr.getPropertyValue(wt());if(Hr&&Hr!=="none"){var _a=Hr.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(_a[12]||_a[4],0),y:parseFloat(_a[13]||_a[5],0)}}return{x:0,y:0}}var ct=/matrix\((.*)\)/,at=/matrix3d\((.*)\)/;function jt(zn,Dr){var Hr=window.getComputedStyle(zn,null),_a=Hr.getPropertyValue("transform")||Hr.getPropertyValue(wt());if(_a&&_a!=="none"){var Ti,Ci=_a.match(ct);if(Ci)Ci=Ci[1],Ti=Ci.split(",").map(function(Da){return parseFloat(Da,10)}),Ti[4]=Dr.x,Ti[5]=Dr.y,gt(zn,"matrix(".concat(Ti.join(","),")"));else{var da=_a.match(at)[1];Ti=da.split(",").map(function(Da){return parseFloat(Da,10)}),Ti[12]=Dr.x,Ti[13]=Dr.y,gt(zn,"matrix3d(".concat(Ti.join(","),")"))}}else gt(zn,"translateX(".concat(Dr.x,"px) translateY(").concat(Dr.y,"px) translateZ(0)"))}var St=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,fn;function Xt(zn){var Dr=zn.style.display;zn.style.display="none",zn.offsetHeight,zn.style.display=Dr}function Yt(zn,Dr,Hr){var _a=Hr;if(Qe(Dr)==="object"){for(var Ti in Dr)Dr.hasOwnProperty(Ti)&&Yt(zn,Ti,Dr[Ti]);return}if(typeof _a!="undefined"){typeof _a=="number"&&(_a="".concat(_a,"px")),zn.style[Dr]=_a;return}return fn(zn,Dr)}function Rt(zn){var Dr,Hr,_a,Ti=zn.ownerDocument,Ci=Ti.body,da=Ti&&Ti.documentElement;return Dr=zn.getBoundingClientRect(),Hr=Math.floor(Dr.left),_a=Math.floor(Dr.top),Hr-=da.clientLeft||Ci.clientLeft||0,_a-=da.clientTop||Ci.clientTop||0,{left:Hr,top:_a}}function Lt(zn,Dr){var Hr=zn["page".concat(Dr?"Y":"X","Offset")],_a="scroll".concat(Dr?"Top":"Left");if(typeof Hr!="number"){var Ti=zn.document;Hr=Ti.documentElement[_a],typeof Hr!="number"&&(Hr=Ti.body[_a])}return Hr}function ze(zn){return Lt(zn)}function rt(zn){return Lt(zn,!0)}function tt(zn){var Dr=Rt(zn),Hr=zn.ownerDocument,_a=Hr.defaultView||Hr.parentWindow;return Dr.left+=ze(_a),Dr.top+=rt(_a),Dr}function de(zn){return zn!=null&&zn==zn.window}function ot(zn){return de(zn)?zn.document:zn.nodeType===9?zn:zn.ownerDocument}function Et(zn,Dr,Hr){var _a=Hr,Ti="",Ci=ot(zn);return _a=_a||Ci.defaultView.getComputedStyle(zn,null),_a&&(Ti=_a.getPropertyValue(Dr)||_a[Dr]),Ti}var Ht=new RegExp("^(".concat(St,")(?!px)[a-z%]+$"),"i"),Jt=/^(top|right|bottom|left)$/,Qt="currentStyle",an="runtimeStyle",Un="left",qt="px";function rn(zn,Dr){var Hr=zn[Qt]&&zn[Qt][Dr];if(Ht.test(Hr)&&!Jt.test(Dr)){var _a=zn.style,Ti=_a[Un],Ci=zn[an][Un];zn[an][Un]=zn[Qt][Un],_a[Un]=Dr==="fontSize"?"1em":Hr||0,Hr=_a.pixelLeft+qt,_a[Un]=Ti,zn[an][Un]=Ci}return Hr===""?"auto":Hr}typeof window!="undefined"&&(fn=window.getComputedStyle?Et:rn);function cn(zn,Dr){return zn==="left"?Dr.useCssRight?"right":zn:Dr.useCssBottom?"bottom":zn}function er(zn){if(zn==="left")return"right";if(zn==="right")return"left";if(zn==="top")return"bottom";if(zn==="bottom")return"top"}function rr(zn,Dr,Hr){Yt(zn,"position")==="static"&&(zn.style.position="relative");var _a=-999,Ti=-999,Ci=cn("left",Hr),da=cn("top",Hr),Da=er(Ci),mi=er(da);Ci!=="left"&&(_a=999),da!=="top"&&(Ti=999);var Ho="",al=tt(zn);("left"in Dr||"top"in Dr)&&(Ho=it(zn)||"",Vt(zn,"none")),"left"in Dr&&(zn.style[Da]="",zn.style[Ci]="".concat(_a,"px")),"top"in Dr&&(zn.style[mi]="",zn.style[da]="".concat(Ti,"px")),Xt(zn);var ml=tt(zn),Xs={};for(var Ps in Dr)if(Dr.hasOwnProperty(Ps)){var dl=cn(Ps,Hr),ql=Ps==="left"?_a:Ti,Dc=al[Ps]-ml[Ps];dl===Ps?Xs[dl]=ql+Dc:Xs[dl]=ql-Dc}Yt(zn,Xs),Xt(zn),("left"in Dr||"top"in Dr)&&Vt(zn,Ho);var Jl={};for(var oc in Dr)if(Dr.hasOwnProperty(oc)){var xu=cn(oc,Hr),yf=Dr[oc]-al[oc];oc===xu?Jl[xu]=Xs[xu]+yf:Jl[xu]=Xs[xu]-yf}Yt(zn,Jl)}function nt(zn,Dr){var Hr=tt(zn),_a=Le(zn),Ti={x:_a.x,y:_a.y};"left"in Dr&&(Ti.x=_a.x+Dr.left-Hr.left),"top"in Dr&&(Ti.y=_a.y+Dr.top-Hr.top),jt(zn,Ti)}function lr(zn,Dr,Hr){if(Hr.ignoreShake){var _a=tt(zn),Ti=_a.left.toFixed(0),Ci=_a.top.toFixed(0),da=Dr.left.toFixed(0),Da=Dr.top.toFixed(0);if(Ti===da&&Ci===Da)return}Hr.useCssRight||Hr.useCssBottom?rr(zn,Dr,Hr):Hr.useCssTransform&&wt()in document.body.style?nt(zn,Dr):rr(zn,Dr,Hr)}function Hn(zn,Dr){for(var Hr=0;Hr<zn.length;Hr++)Dr(zn[Hr])}function ut(zn){return fn(zn,"boxSizing")==="border-box"}var bt=["margin","border","padding"],We=-1,be=2,Ae=1,Ue=0;function $e(zn,Dr,Hr){var _a={},Ti=zn.style,Ci;for(Ci in Dr)Dr.hasOwnProperty(Ci)&&(_a[Ci]=Ti[Ci],Ti[Ci]=Dr[Ci]);Hr.call(zn);for(Ci in Dr)Dr.hasOwnProperty(Ci)&&(Ti[Ci]=_a[Ci])}function kt(zn,Dr,Hr){var _a=0,Ti,Ci,da;for(Ci=0;Ci<Dr.length;Ci++)if(Ti=Dr[Ci],Ti)for(da=0;da<Hr.length;da++){var Da=void 0;Ti==="border"?Da="".concat(Ti).concat(Hr[da],"Width"):Da=Ti+Hr[da],_a+=parseFloat(fn(zn,Da))||0}return _a}var lt={getParent:function(Dr){var Hr=Dr;do Hr.nodeType===11&&Hr.host?Hr=Hr.host:Hr=Hr.parentNode;while(Hr&&Hr.nodeType!==1&&Hr.nodeType!==9);return Hr}};Hn(["Width","Height"],function(zn){lt["doc".concat(zn)]=function(Dr){var Hr=Dr.document;return Math.max(Hr.documentElement["scroll".concat(zn)],Hr.body["scroll".concat(zn)],lt["viewport".concat(zn)](Hr))},lt["viewport".concat(zn)]=function(Dr){var Hr="client".concat(zn),_a=Dr.document,Ti=_a.body,Ci=_a.documentElement,da=Ci[Hr];return _a.compatMode==="CSS1Compat"&&da||Ti&&Ti[Hr]||da}});function vt(zn,Dr,Hr){var _a=Hr;if(de(zn))return Dr==="width"?lt.viewportWidth(zn):lt.viewportHeight(zn);if(zn.nodeType===9)return Dr==="width"?lt.docWidth(zn):lt.docHeight(zn);var Ti=Dr==="width"?["Left","Right"]:["Top","Bottom"],Ci=Math.floor(Dr==="width"?zn.getBoundingClientRect().width:zn.getBoundingClientRect().height),da=ut(zn),Da=0;(Ci==null||Ci<=0)&&(Ci=void 0,Da=fn(zn,Dr),(Da==null||Number(Da)<0)&&(Da=zn.style[Dr]||0),Da=Math.floor(parseFloat(Da))||0),_a===void 0&&(_a=da?Ae:We);var mi=Ci!==void 0||da,Ho=Ci||Da;return _a===We?mi?Ho-kt(zn,["border","padding"],Ti):Da:mi?_a===Ae?Ho:Ho+(_a===be?-kt(zn,["border"],Ti):kt(zn,["margin"],Ti)):Da+kt(zn,bt.slice(_a),Ti)}var Ct={position:"absolute",visibility:"hidden",display:"block"};function Bt(){for(var zn=arguments.length,Dr=new Array(zn),Hr=0;Hr<zn;Hr++)Dr[Hr]=arguments[Hr];var _a,Ti=Dr[0];return Ti.offsetWidth!==0?_a=vt.apply(void 0,Dr):$e(Ti,Ct,function(){_a=vt.apply(void 0,Dr)}),_a}Hn(["width","height"],function(zn){var Dr=zn.charAt(0).toUpperCase()+zn.slice(1);lt["outer".concat(Dr)]=function(_a,Ti){return _a&&Bt(_a,zn,Ti?Ue:Ae)};var Hr=zn==="width"?["Left","Right"]:["Top","Bottom"];lt[zn]=function(_a,Ti){var Ci=Ti;if(Ci!==void 0){if(_a){var da=ut(_a);return da&&(Ci+=kt(_a,["padding","border"],Hr)),Yt(_a,zn,Ci)}return}return _a&&Bt(_a,zn,We)}});function mt(zn,Dr){for(var Hr in Dr)Dr.hasOwnProperty(Hr)&&(zn[Hr]=Dr[Hr]);return zn}var Zt={getWindow:function(Dr){if(Dr&&Dr.document&&Dr.setTimeout)return Dr;var Hr=Dr.ownerDocument||Dr;return Hr.defaultView||Hr.parentWindow},getDocument:ot,offset:function(Dr,Hr,_a){if(typeof Hr!="undefined")lr(Dr,Hr,_a||{});else return tt(Dr)},isWindow:de,each:Hn,css:Yt,clone:function(Dr){var Hr,_a={};for(Hr in Dr)Dr.hasOwnProperty(Hr)&&(_a[Hr]=Dr[Hr]);var Ti=Dr.overflow;if(Ti)for(Hr in Dr)Dr.hasOwnProperty(Hr)&&(_a.overflow[Hr]=Dr.overflow[Hr]);return _a},mix:mt,getWindowScrollLeft:function(Dr){return ze(Dr)},getWindowScrollTop:function(Dr){return rt(Dr)},merge:function(){for(var Dr={},Hr=0;Hr<arguments.length;Hr++)Zt.mix(Dr,Hr<0||arguments.length<=Hr?void 0:arguments[Hr]);return Dr},viewportWidth:0,viewportHeight:0};mt(Zt,lt);var zt=Zt.getParent;function ln(zn){if(Zt.isWindow(zn)||zn.nodeType===9)return null;var Dr=Zt.getDocument(zn),Hr=Dr.body,_a,Ti=Zt.css(zn,"position"),Ci=Ti==="fixed"||Ti==="absolute";if(!Ci)return zn.nodeName.toLowerCase()==="html"?null:zt(zn);for(_a=zt(zn);_a&&_a!==Hr&&_a.nodeType!==9;_a=zt(_a))if(Ti=Zt.css(_a,"position"),Ti!=="static")return _a;return null}var An=Zt.getParent;function En(zn){if(Zt.isWindow(zn)||zn.nodeType===9)return!1;var Dr=Zt.getDocument(zn),Hr=Dr.body,_a=null;for(_a=An(zn);_a&&_a!==Hr&&_a!==Dr;_a=An(_a)){var Ti=Zt.css(_a,"position");if(Ti==="fixed")return!0}return!1}function Gn(zn,Dr){for(var Hr={left:0,right:Infinity,top:0,bottom:Infinity},_a=ln(zn),Ti=Zt.getDocument(zn),Ci=Ti.defaultView||Ti.parentWindow,da=Ti.body,Da=Ti.documentElement;_a;){if((navigator.userAgent.indexOf("MSIE")===-1||_a.clientWidth!==0)&&_a!==da&&_a!==Da&&Zt.css(_a,"overflow")!=="visible"){var mi=Zt.offset(_a);mi.left+=_a.clientLeft,mi.top+=_a.clientTop,Hr.top=Math.max(Hr.top,mi.top),Hr.right=Math.min(Hr.right,mi.left+_a.clientWidth),Hr.bottom=Math.min(Hr.bottom,mi.top+_a.clientHeight),Hr.left=Math.max(Hr.left,mi.left)}else if(_a===da||_a===Da)break;_a=ln(_a)}var Ho=null;if(!Zt.isWindow(zn)&&zn.nodeType!==9){Ho=zn.style.position;var al=Zt.css(zn,"position");al==="absolute"&&(zn.style.position="fixed")}var ml=Zt.getWindowScrollLeft(Ci),Xs=Zt.getWindowScrollTop(Ci),Ps=Zt.viewportWidth(Ci),dl=Zt.viewportHeight(Ci),ql=Da.scrollWidth,Dc=Da.scrollHeight,Jl=window.getComputedStyle(da);if(Jl.overflowX==="hidden"&&(ql=Ci.innerWidth),Jl.overflowY==="hidden"&&(Dc=Ci.innerHeight),zn.style&&(zn.style.position=Ho),Dr||En(zn))Hr.left=Math.max(Hr.left,ml),Hr.top=Math.max(Hr.top,Xs),Hr.right=Math.min(Hr.right,ml+Ps),Hr.bottom=Math.min(Hr.bottom,Xs+dl);else{var oc=Math.max(ql,ml+Ps);Hr.right=Math.min(Hr.right,oc);var xu=Math.max(Dc,Xs+dl);Hr.bottom=Math.min(Hr.bottom,xu)}return Hr.top>=0&&Hr.left>=0&&Hr.bottom>Hr.top&&Hr.right>Hr.left?Hr:null}function Bn(zn,Dr,Hr,_a){var Ti=Zt.clone(zn),Ci={width:Dr.width,height:Dr.height};return _a.adjustX&&Ti.left<Hr.left&&(Ti.left=Hr.left),_a.resizeWidth&&Ti.left>=Hr.left&&Ti.left+Ci.width>Hr.right&&(Ci.width-=Ti.left+Ci.width-Hr.right),_a.adjustX&&Ti.left+Ci.width>Hr.right&&(Ti.left=Math.max(Hr.right-Ci.width,Hr.left)),_a.adjustY&&Ti.top<Hr.top&&(Ti.top=Hr.top),_a.resizeHeight&&Ti.top>=Hr.top&&Ti.top+Ci.height>Hr.bottom&&(Ci.height-=Ti.top+Ci.height-Hr.bottom),_a.adjustY&&Ti.top+Ci.height>Hr.bottom&&(Ti.top=Math.max(Hr.bottom-Ci.height,Hr.top)),Zt.mix(Ti,Ci)}function pr(zn){var Dr,Hr,_a;if(!Zt.isWindow(zn)&&zn.nodeType!==9)Dr=Zt.offset(zn),Hr=Zt.outerWidth(zn),_a=Zt.outerHeight(zn);else{var Ti=Zt.getWindow(zn);Dr={left:Zt.getWindowScrollLeft(Ti),top:Zt.getWindowScrollTop(Ti)},Hr=Zt.viewportWidth(Ti),_a=Zt.viewportHeight(Ti)}return Dr.width=Hr,Dr.height=_a,Dr}function _r(zn,Dr){var Hr=Dr.charAt(0),_a=Dr.charAt(1),Ti=zn.width,Ci=zn.height,da=zn.left,Da=zn.top;return Hr==="c"?Da+=Ci/2:Hr==="b"&&(Da+=Ci),_a==="c"?da+=Ti/2:_a==="r"&&(da+=Ti),{left:da,top:Da}}function na(zn,Dr,Hr,_a,Ti){var Ci=_r(Dr,Hr[1]),da=_r(zn,Hr[0]),Da=[da.left-Ci.left,da.top-Ci.top];return{left:Math.round(zn.left-Da[0]+_a[0]-Ti[0]),top:Math.round(zn.top-Da[1]+_a[1]-Ti[1])}}function $n(zn,Dr,Hr){return zn.left<Hr.left||zn.left+Dr.width>Hr.right}function qr(zn,Dr,Hr){return zn.top<Hr.top||zn.top+Dr.height>Hr.bottom}function Jr(zn,Dr,Hr){return zn.left>Hr.right||zn.left+Dr.width<Hr.left}function Aa(zn,Dr,Hr){return zn.top>Hr.bottom||zn.top+Dr.height<Hr.top}function ya(zn,Dr,Hr){var _a=[];return Zt.each(zn,function(Ti){_a.push(Ti.replace(Dr,function(Ci){return Hr[Ci]}))}),_a}function $t(zn,Dr){return zn[Dr]=-zn[Dr],zn}function wn(zn,Dr){var Hr;return/%$/.test(zn)?Hr=parseInt(zn.substring(0,zn.length-1),10)/100*Dr:Hr=parseInt(zn,10),Hr||0}function Fn(zn,Dr){zn[0]=wn(zn[0],Dr.width),zn[1]=wn(zn[1],Dr.height)}function Or(zn,Dr,Hr,_a){var Ti=Hr.points,Ci=Hr.offset||[0,0],da=Hr.targetOffset||[0,0],Da=Hr.overflow,mi=Hr.source||zn;Ci=[].concat(Ci),da=[].concat(da),Da=Da||{};var Ho={},al=0,ml=!!(Da&&Da.alwaysByViewport),Xs=Gn(mi,ml),Ps=pr(mi);Fn(Ci,Ps),Fn(da,Dr);var dl=na(Ps,Dr,Ti,Ci,da),ql=Zt.merge(Ps,dl);if(Xs&&(Da.adjustX||Da.adjustY)&&_a){if(Da.adjustX&&$n(dl,Ps,Xs)){var Dc=ya(Ti,/[lr]/gi,{l:"r",r:"l"}),Jl=$t(Ci,0),oc=$t(da,0),xu=na(Ps,Dr,Dc,Jl,oc);Jr(xu,Ps,Xs)||(al=1,Ti=Dc,Ci=Jl,da=oc)}if(Da.adjustY&&qr(dl,Ps,Xs)){var yf=ya(Ti,/[tb]/gi,{t:"b",b:"t"}),ku=$t(Ci,1),Zc=$t(da,1),Zu=na(Ps,Dr,yf,ku,Zc);Aa(Zu,Ps,Xs)||(al=1,Ti=yf,Ci=ku,da=Zc)}al&&(dl=na(Ps,Dr,Ti,Ci,da),Zt.mix(ql,dl));var Fc=$n(dl,Ps,Xs),Hc=qr(dl,Ps,Xs);if(Fc||Hc){var Vu=Ti;Fc&&(Vu=ya(Ti,/[lr]/gi,{l:"r",r:"l"})),Hc&&(Vu=ya(Ti,/[tb]/gi,{t:"b",b:"t"})),Ti=Vu,Ci=Hr.offset||[0,0],da=Hr.targetOffset||[0,0]}Ho.adjustX=Da.adjustX&&Fc,Ho.adjustY=Da.adjustY&&Hc,(Ho.adjustX||Ho.adjustY)&&(ql=Bn(dl,Ps,Xs,Ho))}return ql.width!==Ps.width&&Zt.css(mi,"width",Zt.width(mi)+ql.width-Ps.width),ql.height!==Ps.height&&Zt.css(mi,"height",Zt.height(mi)+ql.height-Ps.height),Zt.offset(mi,{left:ql.left,top:ql.top},{useCssRight:Hr.useCssRight,useCssBottom:Hr.useCssBottom,useCssTransform:Hr.useCssTransform,ignoreShake:Hr.ignoreShake}),{points:Ti,offset:Ci,targetOffset:da,overflow:Ho}}function vr(zn,Dr){var Hr=Gn(zn,Dr),_a=pr(zn);return!Hr||_a.left+_a.width<=Hr.left||_a.top+_a.height<=Hr.top||_a.left>=Hr.right||_a.top>=Hr.bottom}function Ur(zn,Dr,Hr){var _a=Hr.target||Dr,Ti=pr(_a),Ci=!vr(_a,Hr.overflow&&Hr.overflow.alwaysByViewport);return Or(zn,Ti,Hr,Ci)}Ur.__getOffsetParent=ln,Ur.__getVisibleRectForElement=Gn;function Zr(zn,Dr,Hr){var _a,Ti,Ci=Zt.getDocument(zn),da=Ci.defaultView||Ci.parentWindow,Da=Zt.getWindowScrollLeft(da),mi=Zt.getWindowScrollTop(da),Ho=Zt.viewportWidth(da),al=Zt.viewportHeight(da);"pageX"in Dr?_a=Dr.pageX:_a=Da+Dr.clientX,"pageY"in Dr?Ti=Dr.pageY:Ti=mi+Dr.clientY;var ml={left:_a,top:Ti,width:0,height:0},Xs=_a>=0&&_a<=Da+Ho&&Ti>=0&&Ti<=mi+al,Ps=[Hr.points[0],"cc"];return Or(zn,ml,Fe(Fe({},Hr),{},{points:Ps}),Xs)}var Kr=null,ba={},Ri=[],Ea=function(Dr){Ri.push(Dr)};function Pi(zn,Dr){if(!1)var Hr}function rs(zn,Dr){if(!1)var Hr}function Ui(){ba={}}function Cn(zn,Dr,Hr){!Dr&&!ba[Hr]&&(zn(!1,Hr),ba[Hr]=!0)}function Kn(zn,Dr){Cn(Pi,zn,Dr)}function Pn(zn,Dr){Cn(rs,zn,Dr)}Kn.preMessage=Ea,Kn.resetWarned=Ui,Kn.noteOnce=Pn;var At=Kn;function ar(zn,Dr){var Hr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_a=new Set;function Ti(Ci,da){var Da=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,mi=_a.has(Ci);if(At(!mi,"Warning: There may be circular references"),mi)return!1;if(Ci===da)return!0;if(Hr&&Da>1)return!1;_a.add(Ci);var Ho=Da+1;if(Array.isArray(Ci)){if(!Array.isArray(da)||Ci.length!==da.length)return!1;for(var al=0;al<Ci.length;al++)if(!Ti(Ci[al],da[al],Ho))return!1;return!0}if(Ci&&da&&(0,U.Z)(Ci)==="object"&&(0,U.Z)(da)==="object"){var ml=Object.keys(Ci);return ml.length!==Object.keys(da).length?!1:ml.every(function(Xs){return Ti(Ci[Xs],da[Xs],Ho)})}return!1}return Ti(zn,Dr)}var ta=ar;function Yn(zn,Dr,Hr,_a){var Ti=h.unstable_batchedUpdates?function(da){h.unstable_batchedUpdates(Hr,da)}:Hr;return zn!=null&&zn.addEventListener&&zn.addEventListener(Dr,Ti,_a),{remove:function(){zn!=null&&zn.removeEventListener&&zn.removeEventListener(Dr,Ti,_a)}}}var Qa=function(zn){if(!zn)return!1;if(zn instanceof Element){if(zn.offsetParent)return!0;if(zn.getBBox){var Dr=zn.getBBox(),Hr=Dr.width,_a=Dr.height;if(Hr||_a)return!0}if(zn.getBoundingClientRect){var Ti=zn.getBoundingClientRect(),Ci=Ti.width,da=Ti.height;if(Ci||da)return!0}}return!1};function Ua(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Fi=Ua()?v.useLayoutEffect:v.useEffect,Xa=function(Dr,Hr){var _a=v.useRef(!0);Fi(function(){return Dr(_a.current)},Hr),Fi(function(){return _a.current=!1,function(){_a.current=!0}},[])},$i=function(Dr,Hr){Xa(function(_a){if(!_a)return Dr()},Hr)},La=Xa;function ja(zn,Dr,Hr){var _a=React.useRef({});return(!("value"in _a.current)||Hr(_a.current.condition,Dr))&&(_a.current.value=zn(),_a.current.condition=Dr),_a.current.value}function ei(zn,Dr){typeof zn=="function"?zn(Dr):(0,U.Z)(zn)==="object"&&zn&&"current"in zn&&(zn.current=Dr)}function Do(){for(var zn=arguments.length,Dr=new Array(zn),Hr=0;Hr<zn;Hr++)Dr[Hr]=arguments[Hr];var _a=Dr.filter(function(Ti){return Ti});return _a.length<=1?_a[0]:function(Ti){Dr.forEach(function(Ci){ei(Ci,Ti)})}}function yo(){for(var zn=arguments.length,Dr=new Array(zn),Hr=0;Hr<zn;Hr++)Dr[Hr]=arguments[Hr];return useMemo(function(){return Do.apply(void 0,Dr)},Dr,function(_a,Ti){return _a.length!==Ti.length||_a.every(function(Ci,da){return Ci!==Ti[da]})})}function to(zn){var Dr,Hr,_a=isMemo(zn)?zn.type.type:zn.type;return!(typeof _a=="function"&&!((Dr=_a.prototype)!==null&&Dr!==void 0&&Dr.render)||typeof zn=="function"&&!((Hr=zn.prototype)!==null&&Hr!==void 0&&Hr.render))}function fs(zn){return!isValidElement(zn)||isFragment(zn)?!1:to(zn)}var cs=function(zn,Dr){var Hr=v.useRef(!1),_a=v.useRef(null);function Ti(){window.clearTimeout(_a.current)}function Ci(da){if(Ti(),!Hr.current||da===!0){if(zn(da)===!1)return;Hr.current=!0,_a.current=window.setTimeout(function(){Hr.current=!1},Dr)}else _a.current=window.setTimeout(function(){Hr.current=!1,Ci()},Dr)}return[Ci,function(){Hr.current=!1,Ti()}]},Os=o(55065);function vl(zn,Dr){if(!zn)return!1;if(zn.contains)return zn.contains(Dr);for(var Hr=Dr;Hr;){if(Hr===zn)return!0;Hr=Hr.parentNode}return!1}function Ar(zn,Dr){return zn===Dr?!0:!zn||!Dr?!1:"pageX"in Dr&&"pageY"in Dr?zn.pageX===Dr.pageX&&zn.pageY===Dr.pageY:"clientX"in Dr&&"clientY"in Dr?zn.clientX===Dr.clientX&&zn.clientY===Dr.clientY:!1}function Rn(zn,Dr){zn!==document.activeElement&&vl(Dr,zn)&&typeof zn.focus=="function"&&zn.focus()}function Sr(zn,Dr){var Hr=null,_a=null;function Ti(da){var Da=(0,me.Z)(da,1),mi=Da[0].target;if(!!document.documentElement.contains(mi)){var Ho=mi.getBoundingClientRect(),al=Ho.width,ml=Ho.height,Xs=Math.floor(al),Ps=Math.floor(ml);(Hr!==Xs||_a!==Ps)&&Promise.resolve().then(function(){Dr({width:Xs,height:Ps})}),Hr=Xs,_a=Ps}}var Ci=new Os.Z(Ti);return zn&&Ci.observe(zn),function(){Ci.disconnect()}}function nn(zn){return typeof zn!="function"?null:zn()}function sn(zn){return(0,U.Z)(zn)!=="object"||!zn?null:zn}var Ot=function(Dr,Hr){var _a=Dr.children,Ti=Dr.disabled,Ci=Dr.target,da=Dr.align,Da=Dr.onAlign,mi=Dr.monitorWindowResize,Ho=Dr.monitorBufferTime,al=Ho===void 0?0:Ho,ml=v.useRef({}),Xs=v.useRef(),Ps=v.Children.only(_a),dl=v.useRef({});dl.current.disabled=Ti,dl.current.target=Ci,dl.current.align=da,dl.current.onAlign=Da;var ql=cs(function(){var ws=dl.current,fc=ws.disabled,Tc=ws.target,jc=ws.align,lu=ws.onAlign,hu=Xs.current;if(!fc&&Tc&&hu){var of,uu=nn(Tc),zu=sn(Tc);ml.current.element=uu,ml.current.point=zu,ml.current.align=jc;var cf=document,bf=cf.activeElement;return uu&&Qa(uu)?of=Ur(hu,uu,jc):zu&&(of=Zr(hu,zu,jc)),Rn(bf,hu),lu&&of&&lu(hu,of),!0}return!1},al),Dc=(0,me.Z)(ql,2),Jl=Dc[0],oc=Dc[1],xu=v.useState(),yf=(0,me.Z)(xu,2),ku=yf[0],Zc=yf[1],Zu=v.useState(),Fc=(0,me.Z)(Zu,2),Hc=Fc[0],Vu=Fc[1];return La(function(){Zc(nn(Ci)),Vu(sn(Ci))}),v.useEffect(function(){(ml.current.element!==ku||!Ar(ml.current.point,Hc)||!ta(ml.current.align,da))&&Jl()}),v.useEffect(function(){var ws=Sr(Xs.current,Jl);return ws},[Xs.current]),v.useEffect(function(){var ws=Sr(ku,Jl);return ws},[ku]),v.useEffect(function(){Ti?oc():Jl()},[Ti]),v.useEffect(function(){if(mi){var ws=Yn(window,"resize",Jl);return ws.remove}},[mi]),v.useEffect(function(){return function(){oc()}},[]),v.useImperativeHandle(Hr,function(){return{forceAlign:function(){return Jl(!0)}}}),v.isValidElement(Ps)&&(Ps=v.cloneElement(Ps,{ref:Do(Ps.ref,Xs)})),Ps},gr=v.forwardRef(Ot);gr.displayName="Align";var Gr=gr,Ln=Gr,Tr=Q()?v.useLayoutEffect:v.useEffect,Dn=function(Dr,Hr){var _a=v.useRef(!0);Tr(function(){return Dr(_a.current)},Hr),Tr(function(){return _a.current=!1,function(){_a.current=!0}},[])},Pr=function(Dr,Hr){Dn(function(_a){if(!_a)return Dr()},Hr)},fa=Dn,ka=o(55507),Li=o(92137);function zi(zn){var Dr=v.useRef(!1),Hr=v.useState(zn),_a=(0,me.Z)(Hr,2),Ti=_a[0],Ci=_a[1];v.useEffect(function(){return Dr.current=!1,function(){Dr.current=!0}},[]);function da(Da,mi){mi&&Dr.current||Ci(Da)}return[Ti,da]}var Mo=["measure","alignPre","align",null,"motion"],Za=function(zn,Dr){var Hr=zi(null),_a=(0,me.Z)(Hr,2),Ti=_a[0],Ci=_a[1],da=(0,v.useRef)();function Da(al){Ci(al,!0)}function mi(){F.cancel(da.current)}function Ho(al){mi(),da.current=F(function(){Da(function(ml){switch(Ti){case"align":return"motion";case"motion":return"stable";default:}return ml}),al==null||al()})}return(0,v.useEffect)(function(){Da("measure")},[zn]),(0,v.useEffect)(function(){switch(Ti){case"measure":Dr();break;default:}Ti&&(da.current=F((0,Li.Z)((0,ka.Z)().mark(function al(){var ml,Xs;return(0,ka.Z)().wrap(function(dl){for(;;)switch(dl.prev=dl.next){case 0:ml=Mo.indexOf(Ti),Xs=Mo[ml+1],Xs&&ml!==-1&&Da(Xs);case 3:case"end":return dl.stop()}},al)}))))},[Ti]),(0,v.useEffect)(function(){return function(){mi()}},[]),[Ti,Ho]},ao=function(zn){var Dr=v.useState({width:0,height:0}),Hr=(0,me.Z)(Dr,2),_a=Hr[0],Ti=Hr[1];function Ci(Da){var mi=Da.offsetWidth,Ho=Da.offsetHeight,al=Da.getBoundingClientRect(),ml=al.width,Xs=al.height;Math.abs(mi-ml)<1&&Math.abs(Ho-Xs)<1&&(mi=ml,Ho=Xs),Ti({width:mi,height:Ho})}var da=v.useMemo(function(){var Da={};if(zn){var mi=_a.width,Ho=_a.height;zn.indexOf("height")!==-1&&Ho?Da.height=Ho:zn.indexOf("minHeight")!==-1&&Ho&&(Da.minHeight=Ho),zn.indexOf("width")!==-1&&mi?Da.width=mi:zn.indexOf("minWidth")!==-1&&mi&&(Da.minWidth=mi)}return Da},[zn,_a]);return[da,Ci]},Mi=v.forwardRef(function(zn,Dr){var Hr=zn.visible,_a=zn.prefixCls,Ti=zn.className,Ci=zn.style,da=zn.children,Da=zn.zIndex,mi=zn.stretch,Ho=zn.destroyPopupOnHide,al=zn.forceRender,ml=zn.align,Xs=zn.point,Ps=zn.getRootDomNode,dl=zn.getClassNameFromAlign,ql=zn.onAlign,Dc=zn.onMouseEnter,Jl=zn.onMouseLeave,oc=zn.onMouseDown,xu=zn.onTouchStart,yf=zn.onClick,ku=(0,v.useRef)(),Zc=(0,v.useRef)(),Zu=(0,v.useState)(),Fc=(0,me.Z)(Zu,2),Hc=Fc[0],Vu=Fc[1],ws=ao(mi),fc=(0,me.Z)(ws,2),Tc=fc[0],jc=fc[1];function lu(){mi&&jc(Ps())}var hu=Za(Hr,lu),of=(0,me.Z)(hu,2),uu=of[0],zu=of[1],cf=(0,v.useState)(0),bf=(0,me.Z)(cf,2),Cu=bf[0],rf=bf[1],Bu=(0,v.useRef)();fa(function(){uu==="alignPre"&&rf(0)},[uu]);function Tf(){return Xs||Ps}function ed(){var Te;(Te=ku.current)===null||Te===void 0||Te.forceAlign()}function Fd(Te,_t){var Vn=dl(_t);Hc!==Vn&&Vu(Vn),rf(function(br){return br+1}),uu==="align"&&(ql==null||ql(Te,_t))}fa(function(){uu==="align"&&(Cu<3?ed():zu(function(){var Te;(Te=Bu.current)===null||Te===void 0||Te.call(Bu)}))},[Cu]);var Pd=(0,x.Z)({},Je(zn));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Te){var _t=Pd[Te];Pd[Te]=function(Vn,br){return zu(),_t==null?void 0:_t(Vn,br)}});function Nc(){return new Promise(function(Te){Bu.current=Te})}v.useEffect(function(){!Pd.motionName&&uu==="motion"&&zu()},[Pd.motionName,uu]),v.useImperativeHandle(Dr,function(){return{forceAlign:ed,getElement:function(){return Zc.current}}});var eu=(0,x.Z)((0,x.Z)({},Tc),{},{zIndex:Da,opacity:uu==="motion"||uu==="stable"||!Hr?void 0:0,pointerEvents:!Hr&&uu!=="stable"?"none":void 0},Ci),If=!0;ml!=null&&ml.points&&(uu==="align"||uu==="stable")&&(If=!1);var $f=da;return v.Children.count(da)>1&&($f=v.createElement("div",{className:"".concat(_a,"-content")},da)),v.createElement(Ie.ZP,(0,g.Z)({visible:Hr,ref:Zc,leavedClassName:"".concat(_a,"-hidden")},Pd,{onAppearPrepare:Nc,onEnterPrepare:Nc,removeOnLeave:Ho,forceRender:al}),function(Te,_t){var Vn=Te.className,br=Te.style,tn=ce()(_a,Ti,Hc,Vn);return v.createElement(Ln,{target:Tf(),key:"popup",ref:ku,monitorWindowResize:!0,disabled:If,align:ml,onAlign:Fd},v.createElement("div",{ref:_t,className:tn,onMouseEnter:Dc,onMouseLeave:Jl,onMouseDownCapture:oc,onTouchStartCapture:xu,onClick:yf,style:(0,x.Z)((0,x.Z)({},br),eu)},$f))})});Mi.displayName="PopupInner";var Eo=Mi,Xi=v.forwardRef(function(zn,Dr){var Hr=zn.prefixCls,_a=zn.visible,Ti=zn.zIndex,Ci=zn.children,da=zn.mobile;da=da===void 0?{}:da;var Da=da.popupClassName,mi=da.popupStyle,Ho=da.popupMotion,al=Ho===void 0?{}:Ho,ml=da.popupRender,Xs=zn.onClick,Ps=v.useRef();v.useImperativeHandle(Dr,function(){return{forceAlign:function(){},getElement:function(){return Ps.current}}});var dl=(0,x.Z)({zIndex:Ti},mi),ql=Ci;return v.Children.count(Ci)>1&&(ql=v.createElement("div",{className:"".concat(Hr,"-content")},Ci)),ml&&(ql=ml(ql)),v.createElement(Ie.ZP,(0,g.Z)({visible:_a,ref:Ps,removeOnLeave:!0},al),function(Dc,Jl){var oc=Dc.className,xu=Dc.style,yf=ce()(Hr,Da,oc);return v.createElement("div",{ref:Jl,className:yf,onClick:Xs,style:(0,x.Z)((0,x.Z)({},xu),dl)},ql)})});Xi.displayName="MobilePopupInner";var Bo=Xi,ol=["visible","mobile"],Il=v.forwardRef(function(zn,Dr){var Hr=zn.visible,_a=zn.mobile,Ti=(0,Pe.Z)(zn,ol),Ci=(0,v.useState)(Hr),da=(0,me.Z)(Ci,2),Da=da[0],mi=da[1],Ho=(0,v.useState)(!1),al=(0,me.Z)(Ho,2),ml=al[0],Xs=al[1],Ps=(0,x.Z)((0,x.Z)({},Ti),{},{visible:Da});(0,v.useEffect)(function(){mi(Hr),Hr&&_a&&Xs(pe())},[Hr,_a]);var dl=ml?v.createElement(Bo,(0,g.Z)({},Ps,{mobile:_a,ref:Dr})):v.createElement(Eo,(0,g.Z)({},Ps,{ref:Dr}));return v.createElement("div",null,v.createElement(ke,Ps),dl)});Il.displayName="Popup";var ms=Il,mc=v.createContext(null),Ys=mc;function hl(){}function Rs(){return""}function xl(zn){return zn?zn.ownerDocument:window.document}var Wl=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function _l(zn){var Dr=function(Hr){(0,w.Z)(Ti,Hr);var _a=(0,m.Z)(Ti);function Ti(Ci){var da;(0,A.Z)(this,Ti),da=_a.call(this,Ci),(0,b.Z)((0,M.Z)(da),"popupRef",v.createRef()),(0,b.Z)((0,M.Z)(da),"triggerRef",v.createRef()),(0,b.Z)((0,M.Z)(da),"portalContainer",void 0),(0,b.Z)((0,M.Z)(da),"attachId",void 0),(0,b.Z)((0,M.Z)(da),"clickOutsideHandler",void 0),(0,b.Z)((0,M.Z)(da),"touchOutsideHandler",void 0),(0,b.Z)((0,M.Z)(da),"contextMenuOutsideHandler1",void 0),(0,b.Z)((0,M.Z)(da),"contextMenuOutsideHandler2",void 0),(0,b.Z)((0,M.Z)(da),"mouseDownTimeout",void 0),(0,b.Z)((0,M.Z)(da),"focusTime",void 0),(0,b.Z)((0,M.Z)(da),"preClickTime",void 0),(0,b.Z)((0,M.Z)(da),"preTouchTime",void 0),(0,b.Z)((0,M.Z)(da),"delayTimer",void 0),(0,b.Z)((0,M.Z)(da),"hasPopupMouseDown",void 0),(0,b.Z)((0,M.Z)(da),"onMouseEnter",function(mi){var Ho=da.props.mouseEnterDelay;da.fireEvents("onMouseEnter",mi),da.delaySetPopupVisible(!0,Ho,Ho?null:mi)}),(0,b.Z)((0,M.Z)(da),"onMouseMove",function(mi){da.fireEvents("onMouseMove",mi),da.setPoint(mi)}),(0,b.Z)((0,M.Z)(da),"onMouseLeave",function(mi){da.fireEvents("onMouseLeave",mi),da.delaySetPopupVisible(!1,da.props.mouseLeaveDelay)}),(0,b.Z)((0,M.Z)(da),"onPopupMouseEnter",function(){da.clearDelayTimer()}),(0,b.Z)((0,M.Z)(da),"onPopupMouseLeave",function(mi){var Ho;mi.relatedTarget&&!mi.relatedTarget.setTimeout&&D((Ho=da.popupRef.current)===null||Ho===void 0?void 0:Ho.getElement(),mi.relatedTarget)||da.delaySetPopupVisible(!1,da.props.mouseLeaveDelay)}),(0,b.Z)((0,M.Z)(da),"onFocus",function(mi){da.fireEvents("onFocus",mi),da.clearDelayTimer(),da.isFocusToShow()&&(da.focusTime=Date.now(),da.delaySetPopupVisible(!0,da.props.focusDelay))}),(0,b.Z)((0,M.Z)(da),"onMouseDown",function(mi){da.fireEvents("onMouseDown",mi),da.preClickTime=Date.now()}),(0,b.Z)((0,M.Z)(da),"onTouchStart",function(mi){da.fireEvents("onTouchStart",mi),da.preTouchTime=Date.now()}),(0,b.Z)((0,M.Z)(da),"onBlur",function(mi){da.fireEvents("onBlur",mi),da.clearDelayTimer(),da.isBlurToHide()&&da.delaySetPopupVisible(!1,da.props.blurDelay)}),(0,b.Z)((0,M.Z)(da),"onContextMenu",function(mi){mi.preventDefault(),da.fireEvents("onContextMenu",mi),da.setPopupVisible(!0,mi)}),(0,b.Z)((0,M.Z)(da),"onContextMenuClose",function(){da.isContextMenuToShow()&&da.close()}),(0,b.Z)((0,M.Z)(da),"onClick",function(mi){if(da.fireEvents("onClick",mi),da.focusTime){var Ho;if(da.preClickTime&&da.preTouchTime?Ho=Math.min(da.preClickTime,da.preTouchTime):da.preClickTime?Ho=da.preClickTime:da.preTouchTime&&(Ho=da.preTouchTime),Math.abs(Ho-da.focusTime)<20)return;da.focusTime=0}da.preClickTime=0,da.preTouchTime=0,da.isClickToShow()&&(da.isClickToHide()||da.isBlurToHide())&&mi&&mi.preventDefault&&mi.preventDefault();var al=!da.state.popupVisible;(da.isClickToHide()&&!al||al&&da.isClickToShow())&&da.setPopupVisible(!da.state.popupVisible,mi)}),(0,b.Z)((0,M.Z)(da),"onPopupMouseDown",function(){if(da.hasPopupMouseDown=!0,clearTimeout(da.mouseDownTimeout),da.mouseDownTimeout=window.setTimeout(function(){da.hasPopupMouseDown=!1},0),da.context){var mi;(mi=da.context).onPopupMouseDown.apply(mi,arguments)}}),(0,b.Z)((0,M.Z)(da),"onDocumentClick",function(mi){if(!(da.props.mask&&!da.props.maskClosable)){var Ho=mi.target,al=da.getRootDomNode(),ml=da.getPopupDomNode();(!D(al,Ho)||da.isContextMenuOnly())&&!D(ml,Ho)&&!da.hasPopupMouseDown&&da.close()}}),(0,b.Z)((0,M.Z)(da),"getRootDomNode",function(){var mi=da.props.getTriggerDOMNode;if(mi)return mi(da.triggerRef.current);try{var Ho=W(da.triggerRef.current);if(Ho)return Ho}catch(al){}return h.findDOMNode((0,M.Z)(da))}),(0,b.Z)((0,M.Z)(da),"getPopupClassNameFromAlign",function(mi){var Ho=[],al=da.props,ml=al.popupPlacement,Xs=al.builtinPlacements,Ps=al.prefixCls,dl=al.alignPoint,ql=al.getPopupClassNameFromAlign;return ml&&Xs&&Ho.push(we(Xs,Ps,mi,dl)),ql&&Ho.push(ql(mi)),Ho.join(" ")}),(0,b.Z)((0,M.Z)(da),"getComponent",function(){var mi=da.props,Ho=mi.prefixCls,al=mi.destroyPopupOnHide,ml=mi.popupClassName,Xs=mi.onPopupAlign,Ps=mi.popupMotion,dl=mi.popupAnimation,ql=mi.popupTransitionName,Dc=mi.popupStyle,Jl=mi.mask,oc=mi.maskAnimation,xu=mi.maskTransitionName,yf=mi.maskMotion,ku=mi.zIndex,Zc=mi.popup,Zu=mi.stretch,Fc=mi.alignPoint,Hc=mi.mobile,Vu=mi.forceRender,ws=mi.onPopupClick,fc=da.state,Tc=fc.popupVisible,jc=fc.point,lu=da.getPopupAlign(),hu={};return da.isMouseEnterToShow()&&(hu.onMouseEnter=da.onPopupMouseEnter),da.isMouseLeaveToHide()&&(hu.onMouseLeave=da.onPopupMouseLeave),hu.onMouseDown=da.onPopupMouseDown,hu.onTouchStart=da.onPopupMouseDown,v.createElement(ms,(0,g.Z)({prefixCls:Ho,destroyPopupOnHide:al,visible:Tc,point:Fc&&jc,className:ml,align:lu,onAlign:Xs,animation:dl,getClassNameFromAlign:da.getPopupClassNameFromAlign},hu,{stretch:Zu,getRootDomNode:da.getRootDomNode,style:Dc,mask:Jl,zIndex:ku,transitionName:ql,maskAnimation:oc,maskTransitionName:xu,maskMotion:yf,ref:da.popupRef,motion:Ps,mobile:Hc,forceRender:Vu,onClick:ws}),typeof Zc=="function"?Zc():Zc)}),(0,b.Z)((0,M.Z)(da),"attachParent",function(mi){F.cancel(da.attachId);var Ho=da.props,al=Ho.getPopupContainer,ml=Ho.getDocument,Xs=da.getRootDomNode(),Ps;al?(Xs||al.length===0)&&(Ps=al(Xs)):Ps=ml(da.getRootDomNode()).body,Ps?Ps.appendChild(mi):da.attachId=F(function(){da.attachParent(mi)})}),(0,b.Z)((0,M.Z)(da),"getContainer",function(){if(!da.portalContainer){var mi=da.props.getDocument,Ho=mi(da.getRootDomNode()).createElement("div");Ho.style.position="absolute",Ho.style.top="0",Ho.style.left="0",Ho.style.width="100%",da.portalContainer=Ho}return da.attachParent(da.portalContainer),da.portalContainer}),(0,b.Z)((0,M.Z)(da),"setPoint",function(mi){var Ho=da.props.alignPoint;!Ho||!mi||da.setState({point:{pageX:mi.pageX,pageY:mi.pageY}})}),(0,b.Z)((0,M.Z)(da),"handlePortalUpdate",function(){da.state.prevPopupVisible!==da.state.popupVisible&&da.props.afterPopupVisibleChange(da.state.popupVisible)}),(0,b.Z)((0,M.Z)(da),"triggerContextValue",{onPopupMouseDown:da.onPopupMouseDown});var Da;return"popupVisible"in Ci?Da=!!Ci.popupVisible:Da=!!Ci.defaultPopupVisible,da.state={prevPopupVisible:Da,popupVisible:Da},Wl.forEach(function(mi){da["fire".concat(mi)]=function(Ho){da.fireEvents(mi,Ho)}}),da}return(0,y.Z)(Ti,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var da=this.props,Da=this.state;if(Da.popupVisible){var mi;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(mi=da.getDocument(this.getRootDomNode()),this.clickOutsideHandler=ne(mi,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(mi=mi||da.getDocument(this.getRootDomNode()),this.touchOutsideHandler=ne(mi,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(mi=mi||da.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=ne(mi,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=ne(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),F.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var da;return((da=this.popupRef.current)===null||da===void 0?void 0:da.getElement())||null}},{key:"getPopupAlign",value:function(){var da=this.props,Da=da.popupPlacement,mi=da.popupAlign,Ho=da.builtinPlacements;return Da&&Ho?fe(Ho,Da,mi):mi}},{key:"setPopupVisible",value:function(da,Da){var mi=this.props.alignPoint,Ho=this.state.popupVisible;this.clearDelayTimer(),Ho!==da&&("popupVisible"in this.props||this.setState({popupVisible:da,prevPopupVisible:Ho}),this.props.onPopupVisibleChange(da)),mi&&Da&&da&&this.setPoint(Da)}},{key:"delaySetPopupVisible",value:function(da,Da,mi){var Ho=this,al=Da*1e3;if(this.clearDelayTimer(),al){var ml=mi?{pageX:mi.pageX,pageY:mi.pageY}:null;this.delayTimer=window.setTimeout(function(){Ho.setPopupVisible(da,ml),Ho.clearDelayTimer()},al)}else this.setPopupVisible(da,mi)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(da){var Da=this.props.children.props,mi=this.props;return Da[da]&&mi[da]?this["fire".concat(da)]:Da[da]||mi[da]}},{key:"isClickToShow",value:function(){var da=this.props,Da=da.action,mi=da.showAction;return Da.indexOf("click")!==-1||mi.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var da=this.props.action;return da==="contextMenu"||da.length===1&&da[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var da=this.props,Da=da.action,mi=da.showAction;return Da.indexOf("contextMenu")!==-1||mi.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var da=this.props,Da=da.action,mi=da.hideAction;return Da.indexOf("click")!==-1||mi.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var da=this.props,Da=da.action,mi=da.showAction;return Da.indexOf("hover")!==-1||mi.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var da=this.props,Da=da.action,mi=da.hideAction;return Da.indexOf("hover")!==-1||mi.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var da=this.props,Da=da.action,mi=da.showAction;return Da.indexOf("focus")!==-1||mi.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var da=this.props,Da=da.action,mi=da.hideAction;return Da.indexOf("focus")!==-1||mi.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var da;(da=this.popupRef.current)===null||da===void 0||da.forceAlign()}}},{key:"fireEvents",value:function(da,Da){var mi=this.props.children.props[da];mi&&mi(Da);var Ho=this.props[da];Ho&&Ho(Da)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var da=this.state.popupVisible,Da=this.props,mi=Da.children,Ho=Da.forceRender,al=Da.alignPoint,ml=Da.className,Xs=Da.autoDestroy,Ps=v.Children.only(mi),dl={key:"trigger"};this.isContextMenuToShow()?dl.onContextMenu=this.onContextMenu:dl.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(dl.onClick=this.onClick,dl.onMouseDown=this.onMouseDown,dl.onTouchStart=this.onTouchStart):(dl.onClick=this.createTwoChains("onClick"),dl.onMouseDown=this.createTwoChains("onMouseDown"),dl.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(dl.onMouseEnter=this.onMouseEnter,al&&(dl.onMouseMove=this.onMouseMove)):dl.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?dl.onMouseLeave=this.onMouseLeave:dl.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(dl.onFocus=this.onFocus,dl.onBlur=this.onBlur):(dl.onFocus=this.createTwoChains("onFocus"),dl.onBlur=this.createTwoChains("onBlur"));var ql=ce()(Ps&&Ps.props&&Ps.props.className,ml);ql&&(dl.className=ql);var Dc=(0,x.Z)({},dl);K(Ps)&&(Dc.ref=G(this.triggerRef,Ps.ref));var Jl=v.cloneElement(Ps,Dc),oc;return(da||this.popupRef.current||Ho)&&(oc=v.createElement(zn,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!da&&Xs&&(oc=null),v.createElement(Ys.Provider,{value:this.triggerContextValue},Jl,oc)}}],[{key:"getDerivedStateFromProps",value:function(da,Da){var mi=da.popupVisible,Ho={};return mi!==void 0&&Da.popupVisible!==mi&&(Ho.popupVisible=mi,Ho.prevPopupVisible=Da.popupVisible),Ho}}]),Ti}(v.Component);return(0,b.Z)(Dr,"contextType",Ys),(0,b.Z)(Dr,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Rs,getDocument:xl,onPopupVisibleChange:hl,afterPopupVisibleChange:hl,onPopupAlign:hl,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),Dr}var Ls=_l(he)},95767:function(oe,N,o){"use strict";o.d(N,{Z:function(){return Hn}});var x=o(22122),g=o(28991),A=o(90484),y=o(28481),M=o(96156),w=o(81253),m=o(67294),b=o(73935),v=o(35510),h=o.n(v),d=o(50279),_=m.forwardRef(function(ut,bt){var We=ut.height,be=ut.offsetY,Ae=ut.offsetX,Ue=ut.children,$e=ut.prefixCls,kt=ut.onInnerResize,lt=ut.innerProps,vt=ut.rtl,Ct=ut.extra,Bt={},mt={display:"flex",flexDirection:"column"};if(be!==void 0){var Zt;Bt={height:We,position:"relative",overflow:"hidden"},mt=(0,g.Z)((0,g.Z)({},mt),{},(Zt={transform:"translateY(".concat(be,"px)")},(0,M.Z)(Zt,vt?"marginRight":"marginLeft",-Ae),(0,M.Z)(Zt,"position","absolute"),(0,M.Z)(Zt,"left",0),(0,M.Z)(Zt,"right",0),(0,M.Z)(Zt,"top",0),Zt))}return m.createElement("div",{style:Bt},m.createElement(d.default,{onResize:function(ln){var An=ln.offsetHeight;An&&kt&&kt()}},m.createElement("div",(0,x.Z)({style:mt,className:h()((0,M.Z)({},"".concat($e,"-holder-inner"),$e)),ref:bt},lt),Ue,Ct)))});_.displayName="Filler";var p=_,S=function(bt){return+setTimeout(bt,16)},k=function(bt){return clearTimeout(bt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(S=function(bt){return window.requestAnimationFrame(bt)},k=function(bt){return window.cancelAnimationFrame(bt)});var O=0,F=new Map;function D(ut){F.delete(ut)}var Z=function(bt){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;O+=1;var be=O;function Ae(Ue){if(Ue===0)D(be),bt();else{var $e=S(function(){Ae(Ue-1)});F.set(be,$e)}}return Ae(We),be};Z.cancel=function(ut){var bt=F.get(ut);return D(bt),k(bt)};var W=Z;function U(ut,bt){var We="touches"in ut?ut.touches[0]:ut;return We[bt?"pageX":"pageY"]}var L=m.forwardRef(function(ut,bt){var We,be=ut.prefixCls,Ae=ut.rtl,Ue=ut.scrollOffset,$e=ut.scrollRange,kt=ut.onStartMove,lt=ut.onStopMove,vt=ut.onScroll,Ct=ut.horizontal,Bt=ut.spinSize,mt=ut.containerSize,Zt=m.useState(!1),zt=(0,y.Z)(Zt,2),ln=zt[0],An=zt[1],En=m.useState(null),Gn=(0,y.Z)(En,2),Bn=Gn[0],pr=Gn[1],_r=m.useState(null),na=(0,y.Z)(_r,2),$n=na[0],qr=na[1],Jr=!Ae,Aa=m.useRef(),ya=m.useRef(),$t=m.useState(!1),wn=(0,y.Z)($t,2),Fn=wn[0],Or=wn[1],vr=m.useRef(),Ur=function(){clearTimeout(vr.current),Or(!0),vr.current=setTimeout(function(){Or(!1)},3e3)},Zr=$e-mt||0,Kr=mt-Bt||0,ba=Zr>0,Ri=m.useMemo(function(){if(Ue===0||Zr===0)return 0;var ar=Ue/Zr;return ar*Kr},[Ue,Zr,Kr]),Ea=function(ta){ta.stopPropagation(),ta.preventDefault()},Pi=m.useRef({top:Ri,dragging:ln,pageY:Bn,startTop:$n});Pi.current={top:Ri,dragging:ln,pageY:Bn,startTop:$n};var rs=function(ta){An(!0),pr(U(ta,Ct)),qr(Pi.current.top),kt(),ta.stopPropagation(),ta.preventDefault()};m.useEffect(function(){var ar=function(Ua){Ua.preventDefault()},ta=Aa.current,Yn=ya.current;return ta.addEventListener("touchstart",ar),Yn.addEventListener("touchstart",rs),function(){ta.removeEventListener("touchstart",ar),Yn.removeEventListener("touchstart",rs)}},[]);var Ui=m.useRef();Ui.current=Zr;var Cn=m.useRef();Cn.current=Kr,m.useEffect(function(){if(ln){var ar,ta=function(Ua){var Fi=Pi.current,Xa=Fi.dragging,$i=Fi.pageY,La=Fi.startTop;if(W.cancel(ar),Xa){var ja=U(Ua,Ct)-$i,ei=La;!Jr&&Ct?ei-=ja:ei+=ja;var Do=Ui.current,yo=Cn.current,to=yo?ei/yo:0,fs=Math.ceil(to*Do);fs=Math.max(fs,0),fs=Math.min(fs,Do),ar=W(function(){vt(fs,Ct)})}},Yn=function(){An(!1),lt()};return window.addEventListener("mousemove",ta),window.addEventListener("touchmove",ta),window.addEventListener("mouseup",Yn),window.addEventListener("touchend",Yn),function(){window.removeEventListener("mousemove",ta),window.removeEventListener("touchmove",ta),window.removeEventListener("mouseup",Yn),window.removeEventListener("touchend",Yn),W.cancel(ar)}}},[ln]),m.useEffect(function(){Ur()},[Ue]),m.useImperativeHandle(bt,function(){return{delayHidden:Ur}});var Kn="".concat(be,"-scrollbar"),Pn={position:"absolute",visibility:Fn&&ba?null:"hidden"},At={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Ct?(Pn.height=8,Pn.left=0,Pn.right=0,Pn.bottom=0,At.height="100%",At.width=Bt,Jr?At.left=Ri:At.right=Ri):(Pn.width=8,Pn.top=0,Pn.bottom=0,Jr?Pn.right=0:Pn.left=0,At.width="100%",At.height=Bt,At.top=Ri),m.createElement("div",{ref:Aa,className:h()(Kn,(We={},(0,M.Z)(We,"".concat(Kn,"-horizontal"),Ct),(0,M.Z)(We,"".concat(Kn,"-vertical"),!Ct),(0,M.Z)(We,"".concat(Kn,"-visible"),Fn),We)),style:Pn,onMouseDown:Ea,onMouseMove:Ur},m.createElement("div",{ref:ya,className:h()("".concat(Kn,"-thumb"),(0,M.Z)({},"".concat(Kn,"-thumb-moving"),ln)),style:At,onMouseDown:rs}))}),V=L;function $(ut){var bt=ut.children,We=ut.setRef,be=m.useCallback(function(Ae){We(Ae)},[]);return m.cloneElement(bt,{ref:be})}function G(ut,bt,We,be,Ae,Ue,$e){var kt=$e.getKey;return ut.slice(bt,We+1).map(function(lt,vt){var Ct=bt+vt,Bt=Ue(lt,Ct,{style:{width:be}}),mt=kt(lt);return m.createElement($,{key:mt,setRef:function(zt){return Ae(lt,zt)}},Bt)})}function z(ut){return ut instanceof HTMLElement||ut instanceof SVGElement}function K(ut){return z(ut)?ut:ut instanceof m.Component?b.findDOMNode(ut):null}var re=o(6610),ne=o(5991),Q=function(){function ut(){(0,re.Z)(this,ut),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,ne.Z)(ut,[{key:"set",value:function(We,be){this.maps[We]=be,this.id+=1}},{key:"get",value:function(We){return this.maps[We]}}]),ut}(),ue=Q;function he(ut,bt,We){var be=m.useState(0),Ae=(0,y.Z)(be,2),Ue=Ae[0],$e=Ae[1],kt=(0,m.useRef)(new Map),lt=(0,m.useRef)(new ue),vt=(0,m.useRef)();function Ct(){W.cancel(vt.current)}function Bt(){Ct(),vt.current=W(function(){kt.current.forEach(function(Zt,zt){if(Zt&&Zt.offsetParent){var ln=K(Zt),An=ln.offsetHeight;lt.current.get(zt)!==An&<.current.set(zt,ln.offsetHeight)}}),$e(function(Zt){return Zt+1})})}function mt(Zt,zt){var ln=ut(Zt),An=kt.current.get(ln);zt?(kt.current.set(ln,zt),Bt()):kt.current.delete(ln),!An!=!zt&&(zt?bt==null||bt(Zt):We==null||We(Zt))}return(0,m.useEffect)(function(){return Ct},[]),[mt,Bt,lt.current,Ue]}function Ee(ut,bt,We,be,Ae,Ue,$e,kt){var lt=m.useRef();return function(vt){if(vt==null){kt();return}if(W.cancel(lt.current),typeof vt=="number")$e(vt);else if(vt&&(0,A.Z)(vt)==="object"){var Ct,Bt=vt.align;"index"in vt?Ct=vt.index:Ct=bt.findIndex(function(ln){return Ae(ln)===vt.key});var mt=vt.offset,Zt=mt===void 0?0:mt,zt=function ln(An,En){if(!(An<0||!ut.current)){var Gn=ut.current.clientHeight,Bn=!1,pr=En;if(Gn){for(var _r=En||Bt,na=0,$n=0,qr=0,Jr=Math.min(bt.length,Ct),Aa=0;Aa<=Jr;Aa+=1){var ya=Ae(bt[Aa]);$n=na;var $t=We.get(ya);qr=$n+($t===void 0?be:$t),na=qr,Aa===Ct&&$t===void 0&&(Bn=!0)}var wn=null;switch(_r){case"top":wn=$n-Zt;break;case"bottom":wn=qr-Gn+Zt;break;default:{var Fn=ut.current.scrollTop,Or=Fn+Gn;$n<Fn?pr="top":qr>Or&&(pr="bottom")}}wn!==null&&wn!==ut.current.scrollTop&&$e(wn)}lt.current=W(function(){Bn&&Ue(),ln(An-1,pr)},2)}};zt(3)}}}function ce(ut,bt,We,be){var Ae=We-ut,Ue=bt-We,$e=Math.min(Ae,Ue)*2;if(be<=$e){var kt=Math.floor(be/2);return be%2?We+kt+1:We-kt}return Ae>Ue?We-(be-Ue):We+(be-Ae)}function ve(ut,bt,We){var be=ut.length,Ae=bt.length,Ue,$e;if(be===0&&Ae===0)return null;be<Ae?(Ue=ut,$e=bt):(Ue=bt,$e=ut);var kt={__EMPTY_ITEM__:!0};function lt(zt){return zt!==void 0?We(zt):kt}for(var vt=null,Ct=Math.abs(be-Ae)!==1,Bt=0;Bt<$e.length;Bt+=1){var mt=lt(Ue[Bt]),Zt=lt($e[Bt]);if(mt!==Zt){vt=Bt,Ct=Ct||mt!==lt($e[Bt+1]);break}}return vt===null?null:{index:vt,multiple:Ct}}function fe(ut,bt,We){var be=m.useState(ut),Ae=(0,y.Z)(be,2),Ue=Ae[0],$e=Ae[1],kt=m.useState(null),lt=(0,y.Z)(kt,2),vt=lt[0],Ct=lt[1];return m.useEffect(function(){var Bt=ve(Ue||[],ut||[],bt);(Bt==null?void 0:Bt.index)!==void 0&&(We==null||We(Bt.index),Ct(ut[Bt.index])),$e(ut)},[ut]),[vt]}var we=(typeof navigator=="undefined"?"undefined":(0,A.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),me=we,Pe=function(ut,bt){var We=(0,m.useRef)(!1),be=(0,m.useRef)(null);function Ae(){clearTimeout(be.current),We.current=!0,be.current=setTimeout(function(){We.current=!1},50)}var Ue=(0,m.useRef)({top:ut,bottom:bt});return Ue.current.top=ut,Ue.current.bottom=bt,function($e){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=$e<0&&Ue.current.top||$e>0&&Ue.current.bottom;return kt&<?(clearTimeout(be.current),We.current=!1):(!lt||We.current)&&Ae(),!We.current&<}};function pe(ut,bt,We,be,Ae){var Ue=(0,m.useRef)(0),$e=(0,m.useRef)(null),kt=(0,m.useRef)(null),lt=(0,m.useRef)(!1),vt=Pe(bt,We);function Ct(An){W.cancel($e.current);var En=An.deltaY;Ue.current+=En,kt.current=En,!vt(En)&&(me||An.preventDefault(),$e.current=W(function(){var Gn=lt.current?10:1;Ae(Ue.current*Gn),Ue.current=0}))}function Bt(An){var En=An.deltaX;Ae(En,!0),me||An.preventDefault()}var mt=(0,m.useRef)(null),Zt=(0,m.useRef)(null);function zt(An){if(!!ut){W.cancel(Zt.current),Zt.current=W(function(){mt.current=null},2);var En=An.deltaX,Gn=An.deltaY,Bn=Math.abs(En),pr=Math.abs(Gn);mt.current===null&&(mt.current=be&&Bn>pr?"x":"y"),mt.current==="x"?Bt(An):Ct(An)}}function ln(An){!ut||(lt.current=An.detail===kt.current)}return[zt,ln]}function Ie(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Je=Ie()?m.useLayoutEffect:m.useEffect,ke=function(bt,We){var be=m.useRef(!0);Je(function(){return bt(be.current)},We),Je(function(){return be.current=!1,function(){be.current=!0}},[])},De=function(bt,We){ke(function(be){if(!be)return bt()},We)},Fe=ke,Qe=14/15;function qe(ut,bt,We){var be=(0,m.useRef)(!1),Ae=(0,m.useRef)(0),Ue=(0,m.useRef)(null),$e=(0,m.useRef)(null),kt,lt=function(mt){if(be.current){var Zt=Math.ceil(mt.touches[0].pageY),zt=Ae.current-Zt;Ae.current=Zt,We(zt)&&mt.preventDefault(),clearInterval($e.current),$e.current=setInterval(function(){zt*=Qe,(!We(zt,!0)||Math.abs(zt)<=.1)&&clearInterval($e.current)},16)}},vt=function(){be.current=!1,kt()},Ct=function(mt){kt(),mt.touches.length===1&&!be.current&&(be.current=!0,Ae.current=Math.ceil(mt.touches[0].pageY),Ue.current=mt.target,Ue.current.addEventListener("touchmove",lt),Ue.current.addEventListener("touchend",vt))};kt=function(){Ue.current&&(Ue.current.removeEventListener("touchmove",lt),Ue.current.removeEventListener("touchend",vt))},Fe(function(){return ut&&bt.current.addEventListener("touchstart",Ct),function(){var Bt;(Bt=bt.current)===null||Bt===void 0||Bt.removeEventListener("touchstart",Ct),kt(),clearInterval($e.current)}},[ut])}var et=20;function dt(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,We=ut/bt*100;return isNaN(We)&&(We=0),We=Math.max(We,et),We=Math.min(We,ut/2),Math.floor(We)}function Ke(ut){var bt=m.useRef();bt.current=ut;var We=m.useCallback(function(){for(var be,Ae=arguments.length,Ue=new Array(Ae),$e=0;$e<Ae;$e++)Ue[$e]=arguments[$e];return(be=bt.current)===null||be===void 0?void 0:be.call.apply(be,[bt].concat(Ue))},[]);return We}function Ge(ut){var bt=React.useRef(!1),We=React.useState(ut),be=_slicedToArray(We,2),Ae=be[0],Ue=be[1];React.useEffect(function(){return bt.current=!1,function(){bt.current=!0}},[]);function $e(kt,lt){lt&&bt.current||Ue(kt)}return[Ae,$e]}function wt(ut){return ut!==void 0}function Vt(ut,bt){var We=bt||{},be=We.defaultValue,Ae=We.value,Ue=We.onChange,$e=We.postState,kt=useState(function(){return wt(Ae)?Ae:wt(be)?typeof be=="function"?be():be:typeof ut=="function"?ut():ut}),lt=_slicedToArray(kt,2),vt=lt[0],Ct=lt[1],Bt=Ae!==void 0?Ae:vt,mt=$e?$e(Bt):Bt,Zt=useEvent(Ue),zt=useState([Bt]),ln=_slicedToArray(zt,2),An=ln[0],En=ln[1];useLayoutUpdateEffect(function(){var Bn=An[0];vt!==Bn&&Zt(vt,Bn)},[An]),useLayoutUpdateEffect(function(){wt(Ae)||Ct(Ae)},[Ae]);var Gn=useEvent(function(Bn,pr){Ct(Bn,pr),En([Bt],pr)});return[mt,Gn]}var gt=o(54323);function it(ut,bt,We){var be=React.useRef({});return(!("value"in be.current)||We(be.current.condition,bt))&&(be.current.value=ut(),be.current.condition=bt),be.current.value}function Le(ut,bt){typeof ut=="function"?ut(bt):_typeof(ut)==="object"&&ut&&"current"in ut&&(ut.current=bt)}function ct(){for(var ut=arguments.length,bt=new Array(ut),We=0;We<ut;We++)bt[We]=arguments[We];var be=bt.filter(function(Ae){return Ae});return be.length<=1?be[0]:function(Ae){bt.forEach(function(Ue){Le(Ue,Ae)})}}function at(){for(var ut=arguments.length,bt=new Array(ut),We=0;We<ut;We++)bt[We]=arguments[We];return useMemo(function(){return ct.apply(void 0,bt)},bt,function(be,Ae){return be.length!==Ae.length||be.every(function(Ue,$e){return Ue!==Ae[$e]})})}function jt(ut){var bt,We,be=isMemo(ut)?ut.type.type:ut.type;return!(typeof be=="function"&&!((bt=be.prototype)!==null&&bt!==void 0&&bt.render)||typeof ut=="function"&&!((We=ut.prototype)!==null&&We!==void 0&&We.render))}function St(ut){return!isValidElement(ut)||isFragment(ut)?!1:jt(ut)}function fn(ut,bt,We,be){if(!bt.length)return We;var Ae=_toArray(bt),Ue=Ae[0],$e=Ae.slice(1),kt;return!ut&&typeof Ue=="number"?kt=[]:Array.isArray(ut)?kt=_toConsumableArray(ut):kt=_objectSpread({},ut),be&&We===void 0&&$e.length===1?delete kt[Ue][$e[0]]:kt[Ue]=fn(kt[Ue],$e,We,be),kt}function Xt(ut,bt,We){var be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return bt.length&&be&&We===void 0&&!get(ut,bt.slice(0,-1))?ut:fn(ut,bt,We,be)}function Yt(ut){return _typeof(ut)==="object"&&ut!==null&&Object.getPrototypeOf(ut)===Object.prototype}function Rt(ut){return Array.isArray(ut)?[]:{}}var Lt=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function ze(){for(var ut=arguments.length,bt=new Array(ut),We=0;We<ut;We++)bt[We]=arguments[We];var be=Rt(bt[0]);return bt.forEach(function(Ae){function Ue($e,kt){var lt=new Set(kt),vt=get(Ae,$e),Ct=Array.isArray(vt);if(Ct||Yt(vt)){if(!lt.has(vt)){lt.add(vt);var Bt=get(be,$e);Ct?be=Xt(be,$e,[]):(!Bt||_typeof(Bt)!=="object")&&(be=Xt(be,$e,Rt(vt))),Lt(vt).forEach(function(mt){Ue([].concat(_toConsumableArray($e),[mt]),lt)})}}else be=Xt(be,$e,vt)}Ue([])}),be}var rt={},tt=[],de=function(bt){tt.push(bt)};function ot(ut,bt){if(!1)var We}function Et(ut,bt){if(!1)var We}function Ht(){rt={}}function Jt(ut,bt,We){!bt&&!rt[We]&&(ut(!1,We),rt[We]=!0)}function Qt(ut,bt){Jt(ot,ut,bt)}function an(ut,bt){Jt(Et,ut,bt)}Qt.preMessage=de,Qt.resetWarned=Ht,Qt.noteOnce=an;var Un=null;function qt(ut,bt,We,be){var Ae=m.useMemo(function(){return[new Map,[]]},[ut,We.id,be]),Ue=(0,y.Z)(Ae,2),$e=Ue[0],kt=Ue[1],lt=function(Ct){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ct,mt=$e.get(Ct),Zt=$e.get(Bt);if(mt===void 0||Zt===void 0)for(var zt=ut.length,ln=kt.length;ln<zt;ln+=1){var An,En=ut[ln],Gn=bt(En);$e.set(Gn,ln);var Bn=(An=We.get(Gn))!==null&&An!==void 0?An:be;if(kt[ln]=(kt[ln-1]||0)+Bn,Gn===Ct&&(mt=ln),Gn===Bt&&(Zt=ln),mt!==void 0&&Zt!==void 0)break}return{top:kt[mt-1]||0,bottom:kt[Zt]}};return lt}var rn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender"],cn=[],er={overflowY:"auto",overflowAnchor:"none"};function rr(ut,bt){var We=ut.prefixCls,be=We===void 0?"rc-virtual-list":We,Ae=ut.className,Ue=ut.height,$e=ut.itemHeight,kt=ut.fullHeight,lt=kt===void 0?!0:kt,vt=ut.style,Ct=ut.data,Bt=ut.children,mt=ut.itemKey,Zt=ut.virtual,zt=ut.direction,ln=ut.scrollWidth,An=ut.component,En=An===void 0?"div":An,Gn=ut.onScroll,Bn=ut.onVirtualScroll,pr=ut.onVisibleChange,_r=ut.innerProps,na=ut.extraRender,$n=(0,w.Z)(ut,rn),qr=!!(Zt!==!1&&Ue&&$e),Jr=qr&&Ct&&$e*Ct.length>Ue,Aa=zt==="rtl",ya=h()(be,(0,M.Z)({},"".concat(be,"-rtl"),Aa),Ae),$t=Ct||cn,wn=(0,m.useRef)(),Fn=(0,m.useRef)(),Or=(0,m.useState)(0),vr=(0,y.Z)(Or,2),Ur=vr[0],Zr=vr[1],Kr=(0,m.useState)(0),ba=(0,y.Z)(Kr,2),Ri=ba[0],Ea=ba[1],Pi=(0,m.useState)(!1),rs=(0,y.Z)(Pi,2),Ui=rs[0],Cn=rs[1],Kn=function(){Cn(!0)},Pn=function(){Cn(!1)},At=m.useCallback(function(Ls){return typeof mt=="function"?mt(Ls):Ls==null?void 0:Ls[mt]},[mt]),ar={getKey:At};function ta(Ls){Zr(function(zn){var Dr;typeof Ls=="function"?Dr=Ls(zn):Dr=Ls;var Hr=Pr(Dr);return wn.current.scrollTop=Hr,Hr})}var Yn=(0,m.useRef)({start:0,end:$t.length}),Qa=(0,m.useRef)(),Ua=fe($t,At),Fi=(0,y.Z)(Ua,1),Xa=Fi[0];Qa.current=Xa;var $i=he(At,null,null),La=(0,y.Z)($i,4),ja=La[0],ei=La[1],Do=La[2],yo=La[3],to=m.useMemo(function(){if(!qr)return{scrollHeight:void 0,start:0,end:$t.length-1,offset:void 0};if(!Jr){var Ls;return{scrollHeight:((Ls=Fn.current)===null||Ls===void 0?void 0:Ls.offsetHeight)||0,start:0,end:$t.length-1,offset:void 0}}for(var zn=0,Dr,Hr,_a,Ti=$t.length,Ci=0;Ci<Ti;Ci+=1){var da=$t[Ci],Da=At(da),mi=Do.get(Da),Ho=zn+(mi===void 0?$e:mi);Ho>=Ur&&Dr===void 0&&(Dr=Ci,Hr=zn),Ho>Ur+Ue&&_a===void 0&&(_a=Ci),zn=Ho}return Dr===void 0&&(Dr=0,Hr=0,_a=Math.ceil(Ue/$e)),_a===void 0&&(_a=$t.length-1),_a=Math.min(_a+1,$t.length-1),{scrollHeight:zn,start:Dr,end:_a,offset:Hr}},[Jr,qr,Ur,$t,yo,Ue]),fs=to.scrollHeight,cs=to.start,Os=to.end,vl=to.offset;Yn.current.start=cs,Yn.current.end=Os;var Ar=m.useState({width:0,height:Ue}),Rn=(0,y.Z)(Ar,2),Sr=Rn[0],nn=Rn[1],sn=function(zn){nn(zn)},Ot=(0,m.useRef)(),gr=(0,m.useRef)(),Gr=m.useMemo(function(){return dt(Sr.width,ln)},[Sr.width,ln]),Ln=m.useMemo(function(){return dt(Sr.height,fs)},[Sr.height,fs]),Tr=fs-Ue,Dn=(0,m.useRef)(Tr);Dn.current=Tr;function Pr(Ls){var zn=Ls;return Number.isNaN(Dn.current)||(zn=Math.min(zn,Dn.current)),zn=Math.max(zn,0),zn}var fa=Ur<=0,ka=Ur>=Tr,Li=Pe(fa,ka),zi=function(){return{x:Aa?-Ri:Ri,y:Ur}},Mo=(0,m.useRef)(zi()),Za=Ke(function(){if(Bn){var Ls=zi();(Mo.current.x!==Ls.x||Mo.current.y!==Ls.y)&&(Bn(Ls),Mo.current=Ls)}});function ao(Ls,zn){var Dr=Ls;zn?((0,b.flushSync)(function(){Ea(Dr)}),Za()):ta(Dr)}function Mi(Ls){var zn=Ls.currentTarget.scrollTop;zn!==Ur&&ta(zn),Gn==null||Gn(Ls),Za()}var Eo=function(zn){var Dr=zn,Hr=ln-Sr.width;return Dr=Math.max(Dr,0),Dr=Math.min(Dr,Hr),Dr},Xi=Ke(function(Ls,zn){zn?((0,b.flushSync)(function(){Ea(function(Dr){var Hr=Dr+(Aa?-Ls:Ls);return Eo(Hr)})}),Za()):ta(function(Dr){var Hr=Dr+Ls;return Hr})}),Bo=pe(qr,fa,ka,!!ln,Xi),ol=(0,y.Z)(Bo,2),Il=ol[0],ms=ol[1];qe(qr,wn,function(Ls,zn){return Li(Ls,zn)?!1:(Il({preventDefault:function(){},deltaY:Ls}),!0)}),Fe(function(){function Ls(Dr){qr&&Dr.preventDefault()}var zn=wn.current;return zn.addEventListener("wheel",Il),zn.addEventListener("DOMMouseScroll",ms),zn.addEventListener("MozMousePixelScroll",Ls),function(){zn.removeEventListener("wheel",Il),zn.removeEventListener("DOMMouseScroll",ms),zn.removeEventListener("MozMousePixelScroll",Ls)}},[qr]);var mc=function(){var zn,Dr;(zn=Ot.current)===null||zn===void 0||zn.delayHidden(),(Dr=gr.current)===null||Dr===void 0||Dr.delayHidden()},Ys=Ee(wn,$t,Do,$e,At,ei,ta,mc);m.useImperativeHandle(bt,function(){return{getScrollInfo:zi,scrollTo:function(zn){function Dr(Hr){return Hr&&(0,A.Z)(Hr)==="object"&&("left"in Hr||"top"in Hr)}Dr(zn)?(zn.left!==void 0&&Ea(Eo(zn.left)),Ys(zn.top)):Ys(zn)}}}),Fe(function(){if(pr){var Ls=$t.slice(cs,Os+1);pr(Ls,$t)}},[cs,Os,$t]);var hl=qt($t,At,Do,$e),Rs=na==null?void 0:na({start:cs,end:Os,virtual:Jr,offsetX:Ri,offsetY:vl,rtl:Aa,getSize:hl}),xl=G($t,cs,Os,ln,ja,Bt,ar),Wl=null;Ue&&(Wl=(0,g.Z)((0,M.Z)({},lt?"height":"maxHeight",Ue),er),qr&&(Wl.overflowY="hidden",ln&&(Wl.overflowX="hidden"),Ui&&(Wl.pointerEvents="none")));var _l={};return Aa&&(_l.dir="rtl"),m.createElement("div",(0,x.Z)({style:(0,g.Z)((0,g.Z)({},vt),{},{position:"relative"}),className:ya},_l,$n),m.createElement(d.default,{onResize:sn},m.createElement(En,{className:"".concat(be,"-holder"),style:Wl,ref:wn,onScroll:Mi,onMouseEnter:mc},m.createElement(p,{prefixCls:be,height:fs,offsetX:Ri,offsetY:vl,scrollWidth:ln,onInnerResize:ei,ref:Fn,innerProps:_r,rtl:Aa,extra:Rs},xl))),Jr&&fs>Ue&&m.createElement(V,{ref:Ot,prefixCls:be,scrollOffset:Ur,scrollRange:fs,rtl:Aa,onScroll:ao,onStartMove:Kn,onStopMove:Pn,spinSize:Ln,containerSize:Sr.height}),Jr&&ln&&m.createElement(V,{ref:gr,prefixCls:be,scrollOffset:Ri,scrollRange:ln,rtl:Aa,onScroll:ao,onStartMove:Kn,onStopMove:Pn,spinSize:Gr,containerSize:Sr.width,horizontal:!0}))}var nt=m.forwardRef(rr);nt.displayName="List";var lr=nt,Hn=lr},57181:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var h=function(_,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,k){S.__proto__=k}||function(S,k){for(var O in k)Object.prototype.hasOwnProperty.call(k,O)&&(S[O]=k[O])},h(_,p)};return function(d,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");h(d,_);function p(){this.constructor=d}d.prototype=_===null?Object.create(_):(p.prototype=_.prototype,new p)}}(),g=this&&this.__assign||function(){return g=Object.assign||function(h){for(var d,_=1,p=arguments.length;_<p;_++){d=arguments[_];for(var S in d)Object.prototype.hasOwnProperty.call(d,S)&&(h[S]=d[S])}return h},g.apply(this,arguments)};Object.defineProperty(N,"__esModule",{value:!0});var A=o(4863),y=o(44721),M=o(67294),w=o(78117),m=o(30866),b=(0,m.getAceInstance)(),v=function(h){x(d,h);function d(_){var p=h.call(this,_)||this;return m.editorEvents.forEach(function(S){p[S]=p[S].bind(p)}),p.debounce=m.debounce,p}return d.prototype.isInShadow=function(_){for(var p=_&&_.parentNode;p;){if(p.toString()==="[object ShadowRoot]")return!0;p=p.parentNode}return!1},d.prototype.componentDidMount=function(){var _=this,p=this.props,S=p.className,k=p.onBeforeLoad,O=p.onValidate,F=p.mode,D=p.focus,Z=p.theme,W=p.fontSize,U=p.value,L=p.defaultValue,V=p.showGutter,$=p.wrapEnabled,G=p.showPrintMargin,z=p.scrollMargin,K=z===void 0?[0,0,0,0]:z,re=p.keyboardHandler,ne=p.onLoad,Q=p.commands,ue=p.annotations,he=p.markers,Ee=p.placeholder;this.editor=b.edit(this.refEditor),k&&k(b);for(var ce=Object.keys(this.props.editorProps),ve=0;ve<ce.length;ve++)this.editor[ce[ve]]=this.props.editorProps[ce[ve]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(K[0],K[1],K[2],K[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode(typeof F=="string"?"ace/mode/"+F:F),Z&&Z!==""&&this.editor.setTheme("ace/theme/"+Z),this.editor.setFontSize(typeof W=="number"?W+"px":W),this.editor.getSession().setValue(L||U||""),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(V),this.editor.getSession().setUseWrapMode($),this.editor.setShowPrintMargin(G),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),Ee&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),O&&this.editor.getSession().on("changeAnnotation",function(){var we=_.editor.getSession().getAnnotations();_.props.onValidate(we)}),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(ue||[]),he&&he.length>0&&this.handleMarkers(he);var fe=this.editor.$options;m.editorOptions.forEach(function(we){fe.hasOwnProperty(we)?_.editor.setOption(we,_.props[we]):_.props[we]&&console.warn("ReactAce: editor option "+we+" was activated but not found. Did you need to import a related tool or did you possibly mispell the option?")}),this.handleOptions(this.props),Array.isArray(Q)&&Q.forEach(function(we){typeof we.exec=="string"?_.editor.commands.bindKey(we.bindKey,we.exec):_.editor.commands.addCommand(we)}),re&&this.editor.setKeyboardHandler("ace/keyboard/"+re),S&&(this.refEditor.className+=" "+S),ne&&ne(this.editor),this.editor.resize(),D&&this.editor.focus()},d.prototype.componentDidUpdate=function(_){for(var p=_,S=this.props,k=0;k<m.editorOptions.length;k++){var O=m.editorOptions[k];S[O]!==p[O]&&this.editor.setOption(O,S[O])}if(S.className!==p.className){var F=this.refEditor.className,D=F.trim().split(" "),Z=p.className.trim().split(" ");Z.forEach(function(U){var L=D.indexOf(U);D.splice(L,1)}),this.refEditor.className=" "+S.className+" "+D.join(" ")}if(this.editor&&S.value!=null&&this.editor.getValue()!==S.value){this.silent=!0;var W=this.editor.session.selection.toJSON();this.editor.setValue(S.value,S.cursorStart),this.editor.session.selection.fromJSON(W),this.silent=!1}S.placeholder!==p.placeholder&&this.updatePlaceholder(),S.mode!==p.mode&&this.editor.getSession().setMode(typeof S.mode=="string"?"ace/mode/"+S.mode:S.mode),S.theme!==p.theme&&this.editor.setTheme("ace/theme/"+S.theme),S.keyboardHandler!==p.keyboardHandler&&(S.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+S.keyboardHandler):this.editor.setKeyboardHandler(null)),S.fontSize!==p.fontSize&&this.editor.setFontSize(typeof S.fontSize=="number"?S.fontSize+"px":S.fontSize),S.wrapEnabled!==p.wrapEnabled&&this.editor.getSession().setUseWrapMode(S.wrapEnabled),S.showPrintMargin!==p.showPrintMargin&&this.editor.setShowPrintMargin(S.showPrintMargin),S.showGutter!==p.showGutter&&this.editor.renderer.setShowGutter(S.showGutter),w(S.setOptions,p.setOptions)||this.handleOptions(S),w(S.annotations,p.annotations)||this.editor.getSession().setAnnotations(S.annotations||[]),!w(S.markers,p.markers)&&Array.isArray(S.markers)&&this.handleMarkers(S.markers),w(S.scrollMargin,p.scrollMargin)||this.handleScrollMargins(S.scrollMargin),(_.height!==this.props.height||_.width!==this.props.width)&&this.editor.resize(),this.props.focus&&!_.focus&&this.editor.focus()},d.prototype.handleScrollMargins=function(_){_===void 0&&(_=[0,0,0,0]),this.editor.renderer.setScrollMargin(_[0],_[1],_[2],_[3])},d.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},d.prototype.onChange=function(_){if(this.props.onChange&&!this.silent){var p=this.editor.getValue();this.props.onChange(p,_)}},d.prototype.onSelectionChange=function(_){if(this.props.onSelectionChange){var p=this.editor.getSelection();this.props.onSelectionChange(p,_)}},d.prototype.onCursorChange=function(_){if(this.props.onCursorChange){var p=this.editor.getSelection();this.props.onCursorChange(p,_)}},d.prototype.onInput=function(_){this.props.onInput&&this.props.onInput(_),this.props.placeholder&&this.updatePlaceholder()},d.prototype.onFocus=function(_){this.props.onFocus&&this.props.onFocus(_,this.editor)},d.prototype.onBlur=function(_){this.props.onBlur&&this.props.onBlur(_,this.editor)},d.prototype.onCopy=function(_){var p=_.text;this.props.onCopy&&this.props.onCopy(p)},d.prototype.onPaste=function(_){var p=_.text;this.props.onPaste&&this.props.onPaste(p)},d.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},d.prototype.handleOptions=function(_){for(var p=Object.keys(_.setOptions),S=0;S<p.length;S++)this.editor.setOption(p[S],_.setOptions[p[S]])},d.prototype.handleMarkers=function(_){var p=this,S=this.editor.getSession().getMarkers(!0);for(var k in S)S.hasOwnProperty(k)&&this.editor.getSession().removeMarker(S[k].id);S=this.editor.getSession().getMarkers(!1);for(var k in S)S.hasOwnProperty(k)&&S[k].clazz!=="ace_active-line"&&S[k].clazz!=="ace_selected-word"&&this.editor.getSession().removeMarker(S[k].id);_.forEach(function(O){var F=O.startRow,D=O.startCol,Z=O.endRow,W=O.endCol,U=O.className,L=O.type,V=O.inFront,$=V===void 0?!1:V,G=new A.Range(F,D,Z,W);p.editor.getSession().addMarker(G,U,L,$)})},d.prototype.updatePlaceholder=function(){var _=this.editor,p=this.props.placeholder,S=!_.session.getValue().length,k=_.renderer.placeholderNode;!S&&k?(_.renderer.scroller.removeChild(_.renderer.placeholderNode),_.renderer.placeholderNode=null):S&&!k?(k=_.renderer.placeholderNode=document.createElement("div"),k.textContent=p||"",k.className="ace_comment ace_placeholder",k.style.padding="0 9px",k.style.position="absolute",k.style.zIndex="3",_.renderer.scroller.appendChild(k)):S&&k&&(k.textContent=p)},d.prototype.updateRef=function(_){this.refEditor=_},d.prototype.render=function(){var _=this.props,p=_.name,S=_.width,k=_.height,O=_.style,F=g({width:S,height:k},O);return M.createElement("div",{ref:this.updateRef,id:p,style:F})},d.propTypes={mode:y.oneOfType([y.string,y.object]),focus:y.bool,theme:y.string,name:y.string,className:y.string,height:y.string,width:y.string,fontSize:y.oneOfType([y.number,y.string]),showGutter:y.bool,onChange:y.func,onCopy:y.func,onPaste:y.func,onFocus:y.func,onInput:y.func,onBlur:y.func,onScroll:y.func,value:y.string,defaultValue:y.string,onLoad:y.func,onSelectionChange:y.func,onCursorChange:y.func,onBeforeLoad:y.func,onValidate:y.func,minLines:y.number,maxLines:y.number,readOnly:y.bool,highlightActiveLine:y.bool,tabSize:y.number,showPrintMargin:y.bool,cursorStart:y.number,debounceChangePeriod:y.number,editorProps:y.object,setOptions:y.object,style:y.object,scrollMargin:y.array,annotations:y.array,markers:y.array,keyboardHandler:y.string,wrapEnabled:y.bool,enableSnippets:y.bool,enableBasicAutocompletion:y.oneOfType([y.bool,y.array]),enableLiveAutocompletion:y.oneOfType([y.bool,y.array]),navigateToFileEnd:y.bool,commands:y.array,placeholder:y.string},d.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},d}(M.Component);N.default=v},21238:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var m=function(v,h){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,_){d.__proto__=_}||function(d,_){for(var p in _)Object.prototype.hasOwnProperty.call(_,p)&&(d[p]=_[p])},m(v,h)};return function(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");m(b,v);function h(){this.constructor=b}b.prototype=v===null?Object.create(v):(h.prototype=v.prototype,new h)}}();Object.defineProperty(N,"__esModule",{value:!0});var g=o(44721),A=o(67294),y=o(57784),M=o(62312),w=function(m){x(b,m);function b(v){var h=m.call(this,v)||this;return h.state={value:h.props.value},h.onChange=h.onChange.bind(h),h.diff=h.diff.bind(h),h}return b.prototype.componentDidUpdate=function(){var v=this.props.value;v!==this.state.value&&this.setState({value:v})},b.prototype.onChange=function(v){this.setState({value:v}),this.props.onChange&&this.props.onChange(v)},b.prototype.diff=function(){var v=new M,h=this.state.value[0],d=this.state.value[1];if(h.length===0&&d.length===0)return[];var _=v.diff_main(h,d);v.diff_cleanupSemantic(_);var p=this.generateDiffedLines(_),S=this.setCodeMarkers(p);return S},b.prototype.generateDiffedLines=function(v){var h={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1},d={left:[],right:[]},_={left:1,right:1};return v.forEach(function(p){var S=p[0],k=p[1],O=k.split(`
|
||
`).length-1;if(k.length!==0){var F=k[0],D=k[k.length-1],Z=0;switch(S){case h.DIFF_EQUAL:_.left+=O,_.right+=O;break;case h.DIFF_DELETE:F===`
|
||
`&&(_.left++,O--),Z=O,Z===0&&d.right.push({startLine:_.right,endLine:_.right}),D===`
|
||
`&&(Z-=1),d.left.push({startLine:_.left,endLine:_.left+Z}),_.left+=O;break;case h.DIFF_INSERT:F===`
|
||
`&&(_.right++,O--),Z=O,Z===0&&d.left.push({startLine:_.left,endLine:_.left}),D===`
|
||
`&&(Z-=1),d.right.push({startLine:_.right,endLine:_.right+Z}),_.right+=O;break;default:throw new Error("Diff type was not defined.")}}}),d},b.prototype.setCodeMarkers=function(v){v===void 0&&(v={left:[],right:[]});for(var h=[],d={left:[],right:[]},_=0;_<v.left.length;_++){var p={startRow:v.left[_].startLine-1,endRow:v.left[_].endLine,type:"text",className:"codeMarker"};d.left.push(p)}for(var _=0;_<v.right.length;_++){var p={startRow:v.right[_].startLine-1,endRow:v.right[_].endLine,type:"text",className:"codeMarker"};d.right.push(p)}return h[0]=d.left,h[1]=d.right,h},b.prototype.render=function(){var v=this.diff();return A.createElement(y.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:v})},b.propTypes={cursorStart:g.number,editorProps:g.object,enableBasicAutocompletion:g.bool,enableLiveAutocompletion:g.bool,focus:g.bool,fontSize:g.number,height:g.string,highlightActiveLine:g.bool,maxLines:g.number,minLines:g.number,mode:g.string,name:g.string,className:g.string,onLoad:g.func,onPaste:g.func,onScroll:g.func,onChange:g.func,orientation:g.string,readOnly:g.bool,scrollMargin:g.array,setOptions:g.object,showGutter:g.bool,showPrintMargin:g.bool,splits:g.number,style:g.object,tabSize:g.number,theme:g.string,value:g.array,width:g.string,wrapEnabled:g.bool},b.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},b}(A.Component);N.default=w},30866:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.getAceInstance=N.debounce=N.editorEvents=N.editorOptions=void 0;var x=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];N.editorOptions=x;var g=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];N.editorEvents=g;var A=function(){var w;return typeof window=="undefined"?(o.g.window={},w=o(4863),delete o.g.window):window.ace?(w=window.ace,w.acequire=window.ace.require||window.ace.acequire):w=o(4863),w};N.getAceInstance=A;var y=function(w,m){var b=null;return function(){var v=this,h=arguments;clearTimeout(b),b=setTimeout(function(){w.apply(v,h)},m)}};N.debounce=y},2275:function(oe,N,o){"use strict";var x;x={value:!0},x=x=void 0;var g=o(57181),A=o(21238);x=A.default;var y=o(57784);x=y.default,N.ZP=g.default},57784:function(oe,N,o){"use strict";var x=this&&this.__extends||function(){var _=function(S,k){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,F){O.__proto__=F}||function(O,F){for(var D in F)Object.prototype.hasOwnProperty.call(F,D)&&(O[D]=F[D])},_(S,k)};return function(p,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");_(p,S);function k(){this.constructor=p}p.prototype=S===null?Object.create(S):(k.prototype=S.prototype,new k)}}(),g=this&&this.__assign||function(){return g=Object.assign||function(_){for(var p,S=1,k=arguments.length;S<k;S++){p=arguments[S];for(var O in p)Object.prototype.hasOwnProperty.call(p,O)&&(_[O]=p[O])}return _},g.apply(this,arguments)};Object.defineProperty(N,"__esModule",{value:!0});var A=o(30866),y=(0,A.getAceInstance)(),M=o(4863),w=o(53687),m=o(44721),b=o(67294),v=o(78117),h=o(56338),d=function(_){x(p,_);function p(S){var k=_.call(this,S)||this;return A.editorEvents.forEach(function(O){k[O]=k[O].bind(k)}),k.debounce=A.debounce,k}return p.prototype.isInShadow=function(S){for(var k=S&&S.parentNode;k;){if(k.toString()==="[object ShadowRoot]")return!0;k=k.parentNode}return!1},p.prototype.componentDidMount=function(){var S=this,k=this.props,O=k.className,F=k.onBeforeLoad,D=k.mode,Z=k.focus,W=k.theme,U=k.fontSize,L=k.value,V=k.defaultValue,$=k.cursorStart,G=k.showGutter,z=k.wrapEnabled,K=k.showPrintMargin,re=k.scrollMargin,ne=re===void 0?[0,0,0,0]:re,Q=k.keyboardHandler,ue=k.onLoad,he=k.commands,Ee=k.annotations,ce=k.markers,ve=k.splits;this.editor=y.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/"+W),F&&F(y);var fe=Object.keys(this.props.editorProps),we=new w.Split(this.editor.container,"ace/theme/"+W,ve);this.editor.env.split=we,this.splitEditor=we.getEditor(0),this.split=we,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var me=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),we.forEach(function(pe,Ie){for(var Je=0;Je<fe.length;Je++)pe[fe[Je]]=S.props.editorProps[fe[Je]];var ke=h(V,Ie),De=h(L,Ie,"");pe.session.setUndoManager(new y.UndoManager),pe.setTheme("ace/theme/"+W),pe.renderer.setScrollMargin(ne[0],ne[1],ne[2],ne[3]),pe.getSession().setMode("ace/mode/"+D),pe.setFontSize(U),pe.renderer.setShowGutter(G),pe.getSession().setUseWrapMode(z),pe.setShowPrintMargin(K),pe.on("focus",S.onFocus),pe.on("blur",S.onBlur),pe.on("input",S.onInput),pe.on("copy",S.onCopy),pe.on("paste",S.onPaste),pe.on("change",S.onChange),pe.getSession().selection.on("changeSelection",S.onSelectionChange),pe.getSession().selection.on("changeCursor",S.onCursorChange),pe.session.on("changeScrollTop",S.onScroll),pe.setValue(ke===void 0?De:ke,$);var Fe=h(Ee,Ie,[]),Qe=h(ce,Ie,[]);pe.getSession().setAnnotations(Fe),Qe&&Qe.length>0&&S.handleMarkers(Qe,pe);for(var Je=0;Je<A.editorOptions.length;Je++){var qe=A.editorOptions[Je];me.hasOwnProperty(qe)?pe.setOption(qe,S.props[qe]):S.props[qe]&&console.warn("ReaceAce: editor option "+qe+" was activated but not found. Did you need to import a related tool or did you possibly mispell the option?")}S.handleOptions(S.props,pe),Array.isArray(he)&&he.forEach(function(et){typeof et.exec=="string"?pe.commands.bindKey(et.bindKey,et.exec):pe.commands.addCommand(et)}),Q&&pe.setKeyboardHandler("ace/keyboard/"+Q)}),O&&(this.refEditor.className+=" "+O),Z&&this.splitEditor.focus();var Pe=this.editor.env.split;Pe.setOrientation(this.props.orientation==="below"?Pe.BELOW:Pe.BESIDE),Pe.resize(!0),ue&&ue(Pe)},p.prototype.componentDidUpdate=function(S){var k=this,O=S,F=this.props,D=this.editor.env.split;if(F.splits!==O.splits&&D.setSplits(F.splits),F.orientation!==O.orientation&&D.setOrientation(F.orientation==="below"?D.BELOW:D.BESIDE),D.forEach(function(L,V){F.mode!==O.mode&&L.getSession().setMode("ace/mode/"+F.mode),F.keyboardHandler!==O.keyboardHandler&&(F.keyboardHandler?L.setKeyboardHandler("ace/keyboard/"+F.keyboardHandler):L.setKeyboardHandler(null)),F.fontSize!==O.fontSize&&L.setFontSize(F.fontSize),F.wrapEnabled!==O.wrapEnabled&&L.getSession().setUseWrapMode(F.wrapEnabled),F.showPrintMargin!==O.showPrintMargin&&L.setShowPrintMargin(F.showPrintMargin),F.showGutter!==O.showGutter&&L.renderer.setShowGutter(F.showGutter);for(var $=0;$<A.editorOptions.length;$++){var G=A.editorOptions[$];F[G]!==O[G]&&L.setOption(G,F[G])}v(F.setOptions,O.setOptions)||k.handleOptions(F,L);var z=h(F.value,V,"");if(L.getValue()!==z){k.silent=!0;var K=L.session.selection.toJSON();L.setValue(z,F.cursorStart),L.session.selection.fromJSON(K),k.silent=!1}var re=h(F.annotations,V,[]),ne=h(O.annotations,V,[]);v(re,ne)||L.getSession().setAnnotations(re);var Q=h(F.markers,V,[]),ue=h(O.markers,V,[]);!v(Q,ue)&&Array.isArray(Q)&&k.handleMarkers(Q,L)}),F.className!==O.className){var Z=this.refEditor.className,W=Z.trim().split(" "),U=O.className.trim().split(" ");U.forEach(function(L){var V=W.indexOf(L);W.splice(V,1)}),this.refEditor.className=" "+F.className+" "+W.join(" ")}F.theme!==O.theme&&D.setTheme("ace/theme/"+F.theme),F.focus&&!O.focus&&this.splitEditor.focus(),(F.height!==this.props.height||F.width!==this.props.width)&&this.editor.resize()},p.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},p.prototype.onChange=function(S){if(this.props.onChange&&!this.silent){var k=[];this.editor.env.split.forEach(function(O){k.push(O.getValue())}),this.props.onChange(k,S)}},p.prototype.onSelectionChange=function(S){if(this.props.onSelectionChange){var k=[];this.editor.env.split.forEach(function(O){k.push(O.getSelection())}),this.props.onSelectionChange(k,S)}},p.prototype.onCursorChange=function(S){if(this.props.onCursorChange){var k=[];this.editor.env.split.forEach(function(O){k.push(O.getSelection())}),this.props.onCursorChange(k,S)}},p.prototype.onFocus=function(S){this.props.onFocus&&this.props.onFocus(S)},p.prototype.onInput=function(S){this.props.onInput&&this.props.onInput(S)},p.prototype.onBlur=function(S){this.props.onBlur&&this.props.onBlur(S)},p.prototype.onCopy=function(S){this.props.onCopy&&this.props.onCopy(S)},p.prototype.onPaste=function(S){this.props.onPaste&&this.props.onPaste(S)},p.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},p.prototype.handleOptions=function(S,k){for(var O=Object.keys(S.setOptions),F=0;F<O.length;F++)k.setOption(O[F],S.setOptions[O[F]])},p.prototype.handleMarkers=function(S,k){var O=k.getSession().getMarkers(!0);for(var F in O)O.hasOwnProperty(F)&&k.getSession().removeMarker(O[F].id);O=k.getSession().getMarkers(!1);for(var F in O)O.hasOwnProperty(F)&&k.getSession().removeMarker(O[F].id);S.forEach(function(D){var Z=D.startRow,W=D.startCol,U=D.endRow,L=D.endCol,V=D.className,$=D.type,G=D.inFront,z=G===void 0?!1:G,K=new M.Range(Z,W,U,L);k.getSession().addMarker(K,V,$,z)})},p.prototype.updateRef=function(S){this.refEditor=S},p.prototype.render=function(){var S=this.props,k=S.name,O=S.width,F=S.height,D=S.style,Z=g({width:O,height:F},D);return b.createElement("div",{ref:this.updateRef,id:k,style:Z})},p.propTypes={className:m.string,debounceChangePeriod:m.number,defaultValue:m.arrayOf(m.string),focus:m.bool,fontSize:m.oneOfType([m.number,m.string]),height:m.string,mode:m.string,name:m.string,onBlur:m.func,onChange:m.func,onCopy:m.func,onFocus:m.func,onInput:m.func,onLoad:m.func,onPaste:m.func,onScroll:m.func,orientation:m.string,showGutter:m.bool,splits:m.number,theme:m.string,value:m.arrayOf(m.string),width:m.string,onSelectionChange:m.func,onCursorChange:m.func,onBeforeLoad:m.func,minLines:m.number,maxLines:m.number,readOnly:m.bool,highlightActiveLine:m.bool,tabSize:m.number,showPrintMargin:m.bool,cursorStart:m.number,editorProps:m.object,setOptions:m.object,style:m.object,scrollMargin:m.array,annotations:m.array,markers:m.array,keyboardHandler:m.string,wrapEnabled:m.bool,enableBasicAutocompletion:m.oneOfType([m.bool,m.array]),enableLiveAutocompletion:m.oneOfType([m.bool,m.array]),commands:m.array},p.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},p}(b.Component);N.default=d},97449:function(oe){var N=typeof Element!="undefined",o=typeof Map=="function",x=typeof Set=="function",g=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function A(y,M){if(y===M)return!0;if(y&&M&&typeof y=="object"&&typeof M=="object"){if(y.constructor!==M.constructor)return!1;var w,m,b;if(Array.isArray(y)){if(w=y.length,w!=M.length)return!1;for(m=w;m--!=0;)if(!A(y[m],M[m]))return!1;return!0}var v;if(o&&y instanceof Map&&M instanceof Map){if(y.size!==M.size)return!1;for(v=y.entries();!(m=v.next()).done;)if(!M.has(m.value[0]))return!1;for(v=y.entries();!(m=v.next()).done;)if(!A(m.value[1],M.get(m.value[0])))return!1;return!0}if(x&&y instanceof Set&&M instanceof Set){if(y.size!==M.size)return!1;for(v=y.entries();!(m=v.next()).done;)if(!M.has(m.value[0]))return!1;return!0}if(g&&ArrayBuffer.isView(y)&&ArrayBuffer.isView(M)){if(w=y.length,w!=M.length)return!1;for(m=w;m--!=0;)if(y[m]!==M[m])return!1;return!0}if(y.constructor===RegExp)return y.source===M.source&&y.flags===M.flags;if(y.valueOf!==Object.prototype.valueOf&&typeof y.valueOf=="function"&&typeof M.valueOf=="function")return y.valueOf()===M.valueOf();if(y.toString!==Object.prototype.toString&&typeof y.toString=="function"&&typeof M.toString=="function")return y.toString()===M.toString();if(b=Object.keys(y),w=b.length,w!==Object.keys(M).length)return!1;for(m=w;m--!=0;)if(!Object.prototype.hasOwnProperty.call(M,b[m]))return!1;if(N&&y instanceof Element)return!1;for(m=w;m--!=0;)if(!((b[m]==="_owner"||b[m]==="__v"||b[m]==="__o")&&y.$$typeof)&&!A(y[b[m]],M[b[m]]))return!1;return!0}return y!==y&&M!==M}oe.exports=function(M,w){try{return A(M,w)}catch(m){if((m.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw m}}},52697:function(oe,N,o){var x,g=o(30352).default,A=o(33657).default,y=o(66933).default;function M(h){if(!(!h||typeof window=="undefined")){var d=document.createElement("style");return d.setAttribute("type","text/css"),d.innerHTML=h,document.head.appendChild(d),h}}x={value:!0};var w=o(67294);function m(h){return h&&typeof h=="object"&&"default"in h?h:{default:h}}var b=m(w);M(`.marquee-container {
|
||
overflow-x: hidden !important;
|
||
display: flex !important;
|
||
flex-direction: row !important;
|
||
position: relative;
|
||
width: var(--width);
|
||
transform: var(--transform);
|
||
}
|
||
.marquee-container:hover div {
|
||
animation-play-state: var(--pause-on-hover);
|
||
}
|
||
.marquee-container:active div {
|
||
animation-play-state: var(--pause-on-click);
|
||
}
|
||
|
||
.overlay {
|
||
position: absolute;
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
.overlay::before, .overlay::after {
|
||
background: linear-gradient(to right, var(--gradient-color));
|
||
content: "";
|
||
height: 100%;
|
||
position: absolute;
|
||
width: var(--gradient-width);
|
||
z-index: 2;
|
||
}
|
||
.overlay::after {
|
||
right: 0;
|
||
top: 0;
|
||
transform: rotateZ(180deg);
|
||
}
|
||
.overlay::before {
|
||
left: 0;
|
||
top: 0;
|
||
}
|
||
|
||
.marquee {
|
||
flex: 0 0 auto;
|
||
min-width: var(--min-width);
|
||
z-index: 1;
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
animation: scroll var(--duration) linear var(--delay) var(--iteration-count);
|
||
animation-play-state: var(--play);
|
||
animation-delay: var(--delay);
|
||
animation-direction: var(--direction);
|
||
}
|
||
@keyframes scroll {
|
||
0% {
|
||
transform: translateX(0%);
|
||
}
|
||
100% {
|
||
transform: translateX(-100%);
|
||
}
|
||
}
|
||
|
||
.initial-child-container {
|
||
flex: 0 0 auto;
|
||
display: flex;
|
||
min-width: auto;
|
||
flex-direction: row;
|
||
}
|
||
|
||
.child {
|
||
transform: var(--transform);
|
||
}`);var v=w.forwardRef(function(d,_){var p=d.style,S=p===void 0?{}:p,k=d.className,O=k===void 0?"":k,F=d.autoFill,D=F===void 0?!1:F,Z=d.play,W=Z===void 0?!0:Z,U=d.pauseOnHover,L=U===void 0?!1:U,V=d.pauseOnClick,$=V===void 0?!1:V,G=d.direction,z=G===void 0?"left":G,K=d.speed,re=K===void 0?50:K,ne=d.delay,Q=ne===void 0?0:ne,ue=d.loop,he=ue===void 0?0:ue,Ee=d.gradient,ce=Ee===void 0?!1:Ee,ve=d.gradientColor,fe=ve===void 0?[255,255,255]:ve,we=d.gradientWidth,me=we===void 0?200:we,Pe=d.onFinish,pe=d.onCycleComplete,Ie=d.onMount,Je=d.children,ke=w.useState(0),De=y(ke,2),Fe=De[0],Qe=De[1],qe=w.useState(0),et=y(qe,2),dt=et[0],Ke=et[1],Ge=w.useState(1),wt=y(Ge,2),Vt=wt[0],gt=wt[1],it=w.useState(!1),Le=y(it,2),ct=Le[0],at=Le[1],jt=w.useRef(null),St=_||jt,fn=w.useRef(null),Xt=w.useCallback(function(){if(fn.current&&St.current){var ot=St.current.getBoundingClientRect(),Et=fn.current.getBoundingClientRect(),Ht=ot.width,Jt=Et.width;(z==="up"||z==="down")&&(Ht=ot.height,Jt=Et.height),gt(D&&Ht&&Jt&&Jt<Ht?Math.ceil(Ht/Jt):1),Qe(Ht),Ke(Jt)}},[D,St,z]);w.useEffect(function(){if(!!ct&&(Xt(),fn.current&&St.current)){var ot=new ResizeObserver(function(){return Xt()});return ot.observe(St.current),ot.observe(fn.current),function(){!ot||ot.disconnect()}}},[Xt,St,ct]),w.useEffect(function(){Xt()},[Xt,Je]),w.useEffect(function(){at(!0)},[]),w.useEffect(function(){typeof Ie=="function"&&Ie()},[]);var Yt=w.useMemo(function(){return D?dt*Vt/re:dt<Fe?Fe/re:dt/re},[D,Fe,dt,Vt,re]),Rt="rgba(".concat(fe[0],", ").concat(fe[1],", ").concat(fe[2]),Lt=w.useMemo(function(){var ot;return Object.assign(Object.assign({},S),(ot={},A(ot,"--pause-on-hover",!W||L?"paused":"running"),A(ot,"--pause-on-click",!W||L&&!$||$?"paused":"running"),A(ot,"--width",z==="up"||z==="down"?"100vh":"100%"),A(ot,"--transform",z==="up"?"rotate(-90deg)":z==="down"?"rotate(90deg)":"none"),ot))},[S,W,L,$,z]),ze=w.useMemo(function(){var ot;return ot={},A(ot,"--gradient-color","".concat(Rt,", 1), ").concat(Rt,", 0)")),A(ot,"--gradient-width",typeof me=="number"?"".concat(me,"px"):me),ot},[Rt,me]),rt=w.useMemo(function(){var ot;return ot={},A(ot,"--play",W?"running":"paused"),A(ot,"--direction",z==="left"?"normal":"reverse"),A(ot,"--duration","".concat(Yt,"s")),A(ot,"--delay","".concat(Q,"s")),A(ot,"--iteration-count",he?"".concat(he):"infinite"),A(ot,"--min-width",D?"auto":"100%"),ot},[W,z,Yt,Q,he,D]),tt=w.useMemo(function(){return A({},"--transform",z==="up"?"rotate(90deg)":z==="down"?"rotate(-90deg)":"none")},[z]),de=w.useCallback(function(ot){return g(Array(Number.isFinite(ot)&&ot>=0?ot:0)).map(function(Et,Ht){return b.default.createElement(w.Fragment,{key:Ht},w.Children.map(Je,function(Jt){return b.default.createElement("div",{style:tt,className:"child"},Jt)}))})},[tt,Je]);return ct?b.default.createElement("div",{ref:St,style:Lt,className:"marquee-container "+O},ce&&b.default.createElement("div",{style:ze,className:"overlay"}),b.default.createElement("div",{className:"marquee",style:rt,onAnimationIteration:pe,onAnimationEnd:Pe},b.default.createElement("div",{className:"initial-child-container",ref:fn},w.Children.map(Je,function(ot){return b.default.createElement("div",{style:tt,className:"child"},ot)})),de(Vt-1)),b.default.createElement("div",{className:"marquee",style:rt},de(Vt))):null});N.Z=v},37550:function(oe,N,o){"use strict";var x=o(54323),g={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},A={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},y={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},M={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},w={};w[x.ForwardRef]=y,w[x.Memo]=M;function m(k){return x.isMemo(k)?M:w[k.$$typeof]||g}var b=Object.defineProperty,v=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,p=Object.prototype;function S(k,O,F){if(typeof O!="string"){if(p){var D=_(O);D&&D!==p&&S(k,D,F)}var Z=v(O);h&&(Z=Z.concat(h(O)));for(var W=m(k),U=m(O),L=0;L<Z.length;++L){var V=Z[L];if(!A[V]&&!(F&&F[V])&&!(U&&U[V])&&!(W&&W[V])){var $=d(O,V);try{b(k,V,$)}catch(G){}}}}return k}oe.exports=S},56533:function(oe,N){"use strict";/** @license React v16.13.1
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var o=typeof Symbol=="function"&&Symbol.for,x=o?Symbol.for("react.element"):60103,g=o?Symbol.for("react.portal"):60106,A=o?Symbol.for("react.fragment"):60107,y=o?Symbol.for("react.strict_mode"):60108,M=o?Symbol.for("react.profiler"):60114,w=o?Symbol.for("react.provider"):60109,m=o?Symbol.for("react.context"):60110,b=o?Symbol.for("react.async_mode"):60111,v=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,d=o?Symbol.for("react.suspense"):60113,_=o?Symbol.for("react.suspense_list"):60120,p=o?Symbol.for("react.memo"):60115,S=o?Symbol.for("react.lazy"):60116,k=o?Symbol.for("react.block"):60121,O=o?Symbol.for("react.fundamental"):60117,F=o?Symbol.for("react.responder"):60118,D=o?Symbol.for("react.scope"):60119;function Z(U){if(typeof U=="object"&&U!==null){var L=U.$$typeof;switch(L){case x:switch(U=U.type,U){case b:case v:case A:case M:case y:case d:return U;default:switch(U=U&&U.$$typeof,U){case m:case h:case S:case p:case w:return U;default:return L}}case g:return L}}}function W(U){return Z(U)===v}N.AsyncMode=b,N.ConcurrentMode=v,N.ContextConsumer=m,N.ContextProvider=w,N.Element=x,N.ForwardRef=h,N.Fragment=A,N.Lazy=S,N.Memo=p,N.Portal=g,N.Profiler=M,N.StrictMode=y,N.Suspense=d,N.isAsyncMode=function(U){return W(U)||Z(U)===b},N.isConcurrentMode=W,N.isContextConsumer=function(U){return Z(U)===m},N.isContextProvider=function(U){return Z(U)===w},N.isElement=function(U){return typeof U=="object"&&U!==null&&U.$$typeof===x},N.isForwardRef=function(U){return Z(U)===h},N.isFragment=function(U){return Z(U)===A},N.isLazy=function(U){return Z(U)===S},N.isMemo=function(U){return Z(U)===p},N.isPortal=function(U){return Z(U)===g},N.isProfiler=function(U){return Z(U)===M},N.isStrictMode=function(U){return Z(U)===y},N.isSuspense=function(U){return Z(U)===d},N.isValidElementType=function(U){return typeof U=="string"||typeof U=="function"||U===A||U===v||U===M||U===y||U===d||U===_||typeof U=="object"&&U!==null&&(U.$$typeof===S||U.$$typeof===p||U.$$typeof===w||U.$$typeof===m||U.$$typeof===h||U.$$typeof===O||U.$$typeof===F||U.$$typeof===D||U.$$typeof===k)},N.typeOf=Z},54323:function(oe,N,o){"use strict";oe.exports=o(56533)},48476:function(oe,N,o){"use strict";o.d(N,{zt:function(){return p},$j:function(){return Le},I0:function(){return fn}});var x=o(67294),g=x.createContext(null),A=null;function y(rt){rt()}var M=y,w=function(tt){return M=tt},m=function(){return M};function b(){var rt=m(),tt=null,de=null;return{clear:function(){tt=null,de=null},notify:function(){rt(function(){for(var Et=tt;Et;)Et.callback(),Et=Et.next})},get:function(){for(var Et=[],Ht=tt;Ht;)Et.push(Ht),Ht=Ht.next;return Et},subscribe:function(Et){var Ht=!0,Jt=de={callback:Et,next:null,prev:de};return Jt.prev?Jt.prev.next=Jt:tt=Jt,function(){!Ht||tt===null||(Ht=!1,Jt.next?Jt.next.prev=Jt.prev:de=Jt.prev,Jt.prev?Jt.prev.next=Jt.next:tt=Jt.next)}}}}var v={notify:function(){},get:function(){return[]}};function h(rt,tt){var de,ot=v;function Et(rn){return an(),ot.subscribe(rn)}function Ht(){ot.notify()}function Jt(){qt.onStateChange&&qt.onStateChange()}function Qt(){return Boolean(de)}function an(){de||(de=tt?tt.addNestedSub(Jt):rt.subscribe(Jt),ot=b())}function Un(){de&&(de(),de=void 0,ot.clear(),ot=v)}var qt={addNestedSub:Et,notifyNestedSubs:Ht,handleChangeWrapper:Jt,isSubscribed:Qt,trySubscribe:an,tryUnsubscribe:Un,getListeners:function(){return ot}};return qt}var d=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?x.useLayoutEffect:x.useEffect;function _(rt){var tt=rt.store,de=rt.context,ot=rt.children,Et=(0,x.useMemo)(function(){var Qt=h(tt);return{store:tt,subscription:Qt}},[tt]),Ht=(0,x.useMemo)(function(){return tt.getState()},[tt]);d(function(){var Qt=Et.subscription;return Qt.onStateChange=Qt.notifyNestedSubs,Qt.trySubscribe(),Ht!==tt.getState()&&Qt.notifyNestedSubs(),function(){Qt.tryUnsubscribe(),Qt.onStateChange=null}},[Et,Ht]);var Jt=de||g;return x.createElement(Jt.Provider,{value:Et},ot)}var p=_,S=o(22122),k=o(19756),O=o(80236),F=o.n(O),D=o(77644),Z=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],W=["reactReduxForwardedRef"],U=[],L=[null,null],V=function(tt){try{return JSON.stringify(tt)}catch(de){return String(tt)}};function $(rt,tt){var de=rt[1];return[tt.payload,de+1]}function G(rt,tt,de){d(function(){return rt.apply(void 0,tt)},de)}function z(rt,tt,de,ot,Et,Ht,Jt){rt.current=ot,tt.current=Et,de.current=!1,Ht.current&&(Ht.current=null,Jt())}function K(rt,tt,de,ot,Et,Ht,Jt,Qt,an,Un){if(!!rt){var qt=!1,rn=null,cn=function(){if(!qt){var nt=tt.getState(),lr,Hn;try{lr=ot(nt,Et.current)}catch(ut){Hn=ut,rn=ut}Hn||(rn=null),lr===Ht.current?Jt.current||an():(Ht.current=lr,Qt.current=lr,Jt.current=!0,Un({type:"STORE_UPDATED",payload:{error:Hn}}))}};de.onStateChange=cn,de.trySubscribe(),cn();var er=function(){if(qt=!0,de.tryUnsubscribe(),de.onStateChange=null,rn)throw rn};return er}}var re=function(){return[null,0]};function ne(rt,tt){tt===void 0&&(tt={});var de=tt,ot=de.getDisplayName,Et=ot===void 0?function(Ae){return"ConnectAdvanced("+Ae+")"}:ot,Ht=de.methodName,Jt=Ht===void 0?"connectAdvanced":Ht,Qt=de.renderCountProp,an=Qt===void 0?void 0:Qt,Un=de.shouldHandleStateChanges,qt=Un===void 0?!0:Un,rn=de.storeKey,cn=rn===void 0?"store":rn,er=de.withRef,rr=er===void 0?!1:er,nt=de.forwardRef,lr=nt===void 0?!1:nt,Hn=de.context,ut=Hn===void 0?g:Hn,bt=(0,k.Z)(de,Z);if(!1)var We;var be=ut;return function(Ue){var $e=Ue.displayName||Ue.name||"Component",kt=Et($e),lt=(0,S.Z)({},bt,{getDisplayName:Et,methodName:Jt,renderCountProp:an,shouldHandleStateChanges:qt,storeKey:cn,displayName:kt,wrappedComponentName:$e,WrappedComponent:Ue}),vt=bt.pure;function Ct(ln){return rt(ln.dispatch,lt)}var Bt=vt?x.useMemo:function(ln){return ln()};function mt(ln){var An=(0,x.useMemo)(function(){var Ui=ln.reactReduxForwardedRef,Cn=(0,k.Z)(ln,W);return[ln.context,Ui,Cn]},[ln]),En=An[0],Gn=An[1],Bn=An[2],pr=(0,x.useMemo)(function(){return En&&En.Consumer&&(0,D.isContextConsumer)(x.createElement(En.Consumer,null))?En:be},[En,be]),_r=(0,x.useContext)(pr),na=Boolean(ln.store)&&Boolean(ln.store.getState)&&Boolean(ln.store.dispatch),$n=Boolean(_r)&&Boolean(_r.store),qr=na?ln.store:_r.store,Jr=(0,x.useMemo)(function(){return Ct(qr)},[qr]),Aa=(0,x.useMemo)(function(){if(!qt)return L;var Ui=h(qr,na?null:_r.subscription),Cn=Ui.notifyNestedSubs.bind(Ui);return[Ui,Cn]},[qr,na,_r]),ya=Aa[0],$t=Aa[1],wn=(0,x.useMemo)(function(){return na?_r:(0,S.Z)({},_r,{subscription:ya})},[na,_r,ya]),Fn=(0,x.useReducer)($,U,re),Or=Fn[0],vr=Or[0],Ur=Fn[1];if(vr&&vr.error)throw vr.error;var Zr=(0,x.useRef)(),Kr=(0,x.useRef)(Bn),ba=(0,x.useRef)(),Ri=(0,x.useRef)(!1),Ea=Bt(function(){return ba.current&&Bn===Kr.current?ba.current:Jr(qr.getState(),Bn)},[qr,vr,Bn]);G(z,[Kr,Zr,Ri,Bn,Ea,ba,$t]),G(K,[qt,qr,ya,Jr,Kr,Zr,Ri,ba,$t,Ur],[qr,ya,Jr]);var Pi=(0,x.useMemo)(function(){return x.createElement(Ue,(0,S.Z)({},Ea,{ref:Gn}))},[Gn,Ue,Ea]),rs=(0,x.useMemo)(function(){return qt?x.createElement(pr.Provider,{value:wn},Pi):Pi},[pr,Pi,wn]);return rs}var Zt=vt?x.memo(mt):mt;if(Zt.WrappedComponent=Ue,Zt.displayName=mt.displayName=kt,lr){var zt=x.forwardRef(function(An,En){return x.createElement(Zt,(0,S.Z)({},An,{reactReduxForwardedRef:En}))});return zt.displayName=kt,zt.WrappedComponent=Ue,F()(zt,Ue)}return F()(Zt,Ue)}}function Q(rt,tt){return rt===tt?rt!==0||tt!==0||1/rt==1/tt:rt!==rt&&tt!==tt}function ue(rt,tt){if(Q(rt,tt))return!0;if(typeof rt!="object"||rt===null||typeof tt!="object"||tt===null)return!1;var de=Object.keys(rt),ot=Object.keys(tt);if(de.length!==ot.length)return!1;for(var Et=0;Et<de.length;Et++)if(!Object.prototype.hasOwnProperty.call(tt,de[Et])||!Q(rt[de[Et]],tt[de[Et]]))return!1;return!0}function he(rt,tt){var de={},ot=function(Jt){var Qt=rt[Jt];typeof Qt=="function"&&(de[Jt]=function(){return tt(Qt.apply(void 0,arguments))})};for(var Et in rt)ot(Et);return de}function Ee(rt){return function(de,ot){var Et=rt(de,ot);function Ht(){return Et}return Ht.dependsOnOwnProps=!1,Ht}}function ce(rt){return rt.dependsOnOwnProps!==null&&rt.dependsOnOwnProps!==void 0?Boolean(rt.dependsOnOwnProps):rt.length!==1}function ve(rt,tt){return function(ot,Et){var Ht=Et.displayName,Jt=function(an,Un){return Jt.dependsOnOwnProps?Jt.mapToProps(an,Un):Jt.mapToProps(an)};return Jt.dependsOnOwnProps=!0,Jt.mapToProps=function(an,Un){Jt.mapToProps=rt,Jt.dependsOnOwnProps=ce(rt);var qt=Jt(an,Un);return typeof qt=="function"&&(Jt.mapToProps=qt,Jt.dependsOnOwnProps=ce(qt),qt=Jt(an,Un)),qt},Jt}}function fe(rt){return typeof rt=="function"?ve(rt,"mapDispatchToProps"):void 0}function we(rt){return rt?void 0:Ee(function(tt){return{dispatch:tt}})}function me(rt){return rt&&typeof rt=="object"?Ee(function(tt){return he(rt,tt)}):void 0}var Pe=[fe,we,me];function pe(rt){return typeof rt=="function"?ve(rt,"mapStateToProps"):void 0}function Ie(rt){return rt?void 0:Ee(function(){return{}})}var Je=[pe,Ie];function ke(rt,tt,de){return(0,S.Z)({},de,rt,tt)}function De(rt){return function(de,ot){var Et=ot.displayName,Ht=ot.pure,Jt=ot.areMergedPropsEqual,Qt=!1,an;return function(qt,rn,cn){var er=rt(qt,rn,cn);return Qt?(!Ht||!Jt(er,an))&&(an=er):(Qt=!0,an=er),an}}}function Fe(rt){return typeof rt=="function"?De(rt):void 0}function Qe(rt){return rt?void 0:function(){return ke}}var qe=[Fe,Qe],et=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function dt(rt,tt,de,ot){return function(Ht,Jt){return de(rt(Ht,Jt),tt(ot,Jt),Jt)}}function Ke(rt,tt,de,ot,Et){var Ht=Et.areStatesEqual,Jt=Et.areOwnPropsEqual,Qt=Et.areStatePropsEqual,an=!1,Un,qt,rn,cn,er;function rr(bt,We){return Un=bt,qt=We,rn=rt(Un,qt),cn=tt(ot,qt),er=de(rn,cn,qt),an=!0,er}function nt(){return rn=rt(Un,qt),tt.dependsOnOwnProps&&(cn=tt(ot,qt)),er=de(rn,cn,qt),er}function lr(){return rt.dependsOnOwnProps&&(rn=rt(Un,qt)),tt.dependsOnOwnProps&&(cn=tt(ot,qt)),er=de(rn,cn,qt),er}function Hn(){var bt=rt(Un,qt),We=!Qt(bt,rn);return rn=bt,We&&(er=de(rn,cn,qt)),er}function ut(bt,We){var be=!Jt(We,qt),Ae=!Ht(bt,Un,We,qt);return Un=bt,qt=We,be&&Ae?nt():be?lr():Ae?Hn():er}return function(We,be){return an?ut(We,be):rr(We,be)}}function Ge(rt,tt){var de=tt.initMapStateToProps,ot=tt.initMapDispatchToProps,Et=tt.initMergeProps,Ht=(0,k.Z)(tt,et),Jt=de(rt,Ht),Qt=ot(rt,Ht),an=Et(rt,Ht),Un=Ht.pure?Ke:dt;return Un(Jt,Qt,an,rt,Ht)}var wt=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Vt(rt,tt,de){for(var ot=tt.length-1;ot>=0;ot--){var Et=tt[ot](rt);if(Et)return Et}return function(Ht,Jt){throw new Error("Invalid value of type "+typeof rt+" for "+de+" argument when connecting component "+Jt.wrappedComponentName+".")}}function gt(rt,tt){return rt===tt}function it(rt){var tt=rt===void 0?{}:rt,de=tt.connectHOC,ot=de===void 0?ne:de,Et=tt.mapStateToPropsFactories,Ht=Et===void 0?Je:Et,Jt=tt.mapDispatchToPropsFactories,Qt=Jt===void 0?Pe:Jt,an=tt.mergePropsFactories,Un=an===void 0?qe:an,qt=tt.selectorFactory,rn=qt===void 0?Ge:qt;return function(er,rr,nt,lr){lr===void 0&&(lr={});var Hn=lr,ut=Hn.pure,bt=ut===void 0?!0:ut,We=Hn.areStatesEqual,be=We===void 0?gt:We,Ae=Hn.areOwnPropsEqual,Ue=Ae===void 0?ue:Ae,$e=Hn.areStatePropsEqual,kt=$e===void 0?ue:$e,lt=Hn.areMergedPropsEqual,vt=lt===void 0?ue:lt,Ct=(0,k.Z)(Hn,wt),Bt=Vt(er,Ht,"mapStateToProps"),mt=Vt(rr,Qt,"mapDispatchToProps"),Zt=Vt(nt,Un,"mergeProps");return ot(rn,(0,S.Z)({methodName:"connect",getDisplayName:function(ln){return"Connect("+ln+")"},shouldHandleStateChanges:Boolean(er),initMapStateToProps:Bt,initMapDispatchToProps:mt,initMergeProps:Zt,pure:bt,areStatesEqual:be,areOwnPropsEqual:Ue,areStatePropsEqual:kt,areMergedPropsEqual:vt},Ct))}}var Le=it();function ct(){var rt=(0,x.useContext)(g);return rt}function at(rt){rt===void 0&&(rt=g);var tt=rt===g?ct:function(){return(0,x.useContext)(rt)};return function(){var ot=tt(),Et=ot.store;return Et}}var jt=at();function St(rt){rt===void 0&&(rt=g);var tt=rt===g?jt:at(rt);return function(){var ot=tt();return ot.dispatch}}var fn=St(),Xt=function(tt,de){return tt===de};function Yt(rt,tt,de,ot){var Et=useReducer(function(rr){return rr+1},0),Ht=Et[1],Jt=useMemo(function(){return createSubscription(de,ot)},[de,ot]),Qt=useRef(),an=useRef(),Un=useRef(),qt=useRef(),rn=de.getState(),cn;try{if(rt!==an.current||rn!==Un.current||Qt.current){var er=rt(rn);qt.current===void 0||!tt(er,qt.current)?cn=er:cn=qt.current}else cn=qt.current}catch(rr){throw Qt.current&&(rr.message+=`
|
||
The error may be correlated with this previous error:
|
||
`+Qt.current.stack+`
|
||
|
||
`),rr}return useIsomorphicLayoutEffect(function(){an.current=rt,Un.current=rn,qt.current=cn,Qt.current=void 0}),useIsomorphicLayoutEffect(function(){function rr(){try{var nt=de.getState();if(nt===Un.current)return;var lr=an.current(nt);if(tt(lr,qt.current))return;qt.current=lr,Un.current=nt}catch(Hn){Qt.current=Hn}Ht()}return Jt.onStateChange=rr,Jt.trySubscribe(),rr(),function(){return Jt.tryUnsubscribe()}},[de,Jt]),cn}function Rt(rt){rt===void 0&&(rt=ReactReduxContext);var tt=rt===ReactReduxContext?useDefaultReduxContext:function(){return useContext(rt)};return function(ot,Et){Et===void 0&&(Et=Xt);var Ht=tt(),Jt=Ht.store,Qt=Ht.subscription,an=Yt(ot,Et,Jt,Qt);return useDebugValue(an),an}}var Lt=null,ze=o(73935);w(ze.unstable_batchedUpdates)},80236:function(oe,N,o){"use strict";var x=o(2851),g={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},A={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},y={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},M={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},w={};w[x.ForwardRef]=y,w[x.Memo]=M;function m(k){return x.isMemo(k)?M:w[k.$$typeof]||g}var b=Object.defineProperty,v=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,p=Object.prototype;function S(k,O,F){if(typeof O!="string"){if(p){var D=_(O);D&&D!==p&&S(k,D,F)}var Z=v(O);h&&(Z=Z.concat(h(O)));for(var W=m(k),U=m(O),L=0;L<Z.length;++L){var V=Z[L];if(!A[V]&&!(F&&F[V])&&!(U&&U[V])&&!(W&&W[V])){var $=d(O,V);try{b(k,V,$)}catch(G){}}}}return k}oe.exports=S},58134:function(oe,N){"use strict";/** @license React v16.13.1
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var o=typeof Symbol=="function"&&Symbol.for,x=o?Symbol.for("react.element"):60103,g=o?Symbol.for("react.portal"):60106,A=o?Symbol.for("react.fragment"):60107,y=o?Symbol.for("react.strict_mode"):60108,M=o?Symbol.for("react.profiler"):60114,w=o?Symbol.for("react.provider"):60109,m=o?Symbol.for("react.context"):60110,b=o?Symbol.for("react.async_mode"):60111,v=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,d=o?Symbol.for("react.suspense"):60113,_=o?Symbol.for("react.suspense_list"):60120,p=o?Symbol.for("react.memo"):60115,S=o?Symbol.for("react.lazy"):60116,k=o?Symbol.for("react.block"):60121,O=o?Symbol.for("react.fundamental"):60117,F=o?Symbol.for("react.responder"):60118,D=o?Symbol.for("react.scope"):60119;function Z(U){if(typeof U=="object"&&U!==null){var L=U.$$typeof;switch(L){case x:switch(U=U.type,U){case b:case v:case A:case M:case y:case d:return U;default:switch(U=U&&U.$$typeof,U){case m:case h:case S:case p:case w:return U;default:return L}}case g:return L}}}function W(U){return Z(U)===v}N.AsyncMode=b,N.ConcurrentMode=v,N.ContextConsumer=m,N.ContextProvider=w,N.Element=x,N.ForwardRef=h,N.Fragment=A,N.Lazy=S,N.Memo=p,N.Portal=g,N.Profiler=M,N.StrictMode=y,N.Suspense=d,N.isAsyncMode=function(U){return W(U)||Z(U)===b},N.isConcurrentMode=W,N.isContextConsumer=function(U){return Z(U)===m},N.isContextProvider=function(U){return Z(U)===w},N.isElement=function(U){return typeof U=="object"&&U!==null&&U.$$typeof===x},N.isForwardRef=function(U){return Z(U)===h},N.isFragment=function(U){return Z(U)===A},N.isLazy=function(U){return Z(U)===S},N.isMemo=function(U){return Z(U)===p},N.isPortal=function(U){return Z(U)===g},N.isProfiler=function(U){return Z(U)===M},N.isStrictMode=function(U){return Z(U)===y},N.isSuspense=function(U){return Z(U)===d},N.isValidElementType=function(U){return typeof U=="string"||typeof U=="function"||U===A||U===v||U===M||U===y||U===d||U===_||typeof U=="object"&&U!==null&&(U.$$typeof===S||U.$$typeof===p||U.$$typeof===w||U.$$typeof===m||U.$$typeof===h||U.$$typeof===O||U.$$typeof===F||U.$$typeof===D||U.$$typeof===k)},N.typeOf=Z},2851:function(oe,N,o){"use strict";oe.exports=o(58134)},99710:function(oe,N){"use strict";var o;/** @license React v17.0.2
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var x=60103,g=60106,A=60107,y=60108,M=60114,w=60109,m=60110,b=60112,v=60113,h=60120,d=60115,_=60116,p=60121,S=60122,k=60117,O=60129,F=60131;if(typeof Symbol=="function"&&Symbol.for){var D=Symbol.for;x=D("react.element"),g=D("react.portal"),A=D("react.fragment"),y=D("react.strict_mode"),M=D("react.profiler"),w=D("react.provider"),m=D("react.context"),b=D("react.forward_ref"),v=D("react.suspense"),h=D("react.suspense_list"),d=D("react.memo"),_=D("react.lazy"),p=D("react.block"),S=D("react.server.block"),k=D("react.fundamental"),O=D("react.debug_trace_mode"),F=D("react.legacy_hidden")}function Z(Q){if(typeof Q=="object"&&Q!==null){var ue=Q.$$typeof;switch(ue){case x:switch(Q=Q.type,Q){case A:case M:case y:case v:case h:return Q;default:switch(Q=Q&&Q.$$typeof,Q){case m:case b:case _:case d:case w:return Q;default:return ue}}case g:return ue}}}var W=w,U=x,L=b,V=A,$=_,G=d,z=g,K=M,re=y,ne=v;o=m,o=W,o=U,o=L,o=V,o=$,o=G,o=z,o=K,o=re,o=ne,o=function(){return!1},o=function(){return!1},N.isContextConsumer=function(Q){return Z(Q)===m},o=function(Q){return Z(Q)===w},o=function(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===x},o=function(Q){return Z(Q)===b},o=function(Q){return Z(Q)===A},o=function(Q){return Z(Q)===_},o=function(Q){return Z(Q)===d},o=function(Q){return Z(Q)===g},o=function(Q){return Z(Q)===M},o=function(Q){return Z(Q)===y},o=function(Q){return Z(Q)===v},o=function(Q){return typeof Q=="string"||typeof Q=="function"||Q===A||Q===M||Q===O||Q===y||Q===v||Q===h||Q===F||typeof Q=="object"&&Q!==null&&(Q.$$typeof===_||Q.$$typeof===d||Q.$$typeof===w||Q.$$typeof===m||Q.$$typeof===b||Q.$$typeof===k||Q.$$typeof===p||Q[0]===S)},o=Z},77644:function(oe,N,o){"use strict";oe.exports=o(99710)},1714:function(oe,N,o){"use strict";o.r(N),o.d(N,{matchRoutes:function(){return y},renderRoutes:function(){return M}});var x=o(2546),g=o(22122),A=o(67294);function y(w,m,b){return b===void 0&&(b=[]),w.some(function(v){var h=v.path?(0,x.LX)(m,v):b.length?b[b.length-1].match:x.F0.computeRootMatch(m);return h&&(b.push({route:v,match:h}),v.routes&&y(v.routes,m,b)),h}),b}function M(w,m,b){return m===void 0&&(m={}),b===void 0&&(b={}),w?A.createElement(x.rs,b,w.map(function(v,h){return A.createElement(x.AW,{key:v.key||h,path:v.path,exact:v.exact,strict:v.strict,render:function(_){return v.render?v.render((0,g.Z)({},_,{},m,{route:v})):A.createElement(v.component,(0,g.Z)({},_,m,{route:v}))}})})):null}},87748:function(oe,N,o){"use strict";o.d(N,{rU:function(){return O},OL:function(){return L}});var x=o(2546),g=o(41788),A=o(67294),y=o(83233),M=o(22122),w=o(19756),m=o(3537),b=function($){(0,g.Z)(G,$);function G(){for(var K,re=arguments.length,ne=new Array(re),Q=0;Q<re;Q++)ne[Q]=arguments[Q];return K=$.call.apply($,[this].concat(ne))||this,K.history=(0,y.lX)(K.props),K}var z=G.prototype;return z.render=function(){return A.createElement(x.F0,{history:this.history,children:this.props.children})},G}(A.Component),v=function($){(0,g.Z)(G,$);function G(){for(var K,re=arguments.length,ne=new Array(re),Q=0;Q<re;Q++)ne[Q]=arguments[Q];return K=$.call.apply($,[this].concat(ne))||this,K.history=(0,y.q_)(K.props),K}var z=G.prototype;return z.render=function(){return A.createElement(x.F0,{history:this.history,children:this.props.children})},G}(A.Component),h=function(G,z){return typeof G=="function"?G(z):G},d=function(G,z){return typeof G=="string"?(0,y.ob)(G,null,null,z):G},_=function(G){return G},p=A.forwardRef;typeof p=="undefined"&&(p=_);function S($){return!!($.metaKey||$.altKey||$.ctrlKey||$.shiftKey)}var k=p(function($,G){var z=$.innerRef,K=$.navigate,re=$.onClick,ne=(0,w.Z)($,["innerRef","navigate","onClick"]),Q=ne.target,ue=(0,M.Z)({},ne,{onClick:function(Ee){try{re&&re(Ee)}catch(ce){throw Ee.preventDefault(),ce}!Ee.defaultPrevented&&Ee.button===0&&(!Q||Q==="_self")&&!S(Ee)&&(Ee.preventDefault(),K())}});return _!==p?ue.ref=G||z:ue.ref=z,A.createElement("a",ue)}),O=p(function($,G){var z=$.component,K=z===void 0?k:z,re=$.replace,ne=$.to,Q=$.innerRef,ue=(0,w.Z)($,["component","replace","to","innerRef"]);return A.createElement(x.s6.Consumer,null,function(he){he||(0,m.Z)(!1);var Ee=he.history,ce=d(h(ne,he.location),he.location),ve=ce?Ee.createHref(ce):"",fe=(0,M.Z)({},ue,{href:ve,navigate:function(){var me=h(ne,he.location),Pe=re?Ee.replace:Ee.push;Pe(me)}});return _!==p?fe.ref=G||Q:fe.innerRef=Q,A.createElement(K,fe)})});if(!1)var F,D;var Z=function(G){return G},W=A.forwardRef;typeof W=="undefined"&&(W=Z);function U(){for(var $=arguments.length,G=new Array($),z=0;z<$;z++)G[z]=arguments[z];return G.filter(function(K){return K}).join(" ")}var L=W(function($,G){var z=$["aria-current"],K=z===void 0?"page":z,re=$.activeClassName,ne=re===void 0?"active":re,Q=$.activeStyle,ue=$.className,he=$.exact,Ee=$.isActive,ce=$.location,ve=$.sensitive,fe=$.strict,we=$.style,me=$.to,Pe=$.innerRef,pe=(0,w.Z)($,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return A.createElement(x.s6.Consumer,null,function(Ie){Ie||(0,m.Z)(!1);var Je=ce||Ie.location,ke=d(h(me,Je),Je),De=ke.pathname,Fe=De&&De.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),Qe=Fe?(0,x.LX)(Je.pathname,{path:Fe,exact:he,sensitive:ve,strict:fe}):null,qe=!!(Ee?Ee(Qe,Je):Qe),et=qe?U(ue,ne):ue,dt=qe?(0,M.Z)({},we,{},Q):we,Ke=(0,M.Z)({"aria-current":qe&&K||null,className:et,style:dt,to:ke},pe);return Z!==W?Ke.ref=G||Pe:Ke.innerRef=Pe,A.createElement(O,Ke)})});if(!1)var V},2546:function(oe,N,o){"use strict";o.d(N,{VA:function(){return re},NL:function(){return Q},l_:function(){return we},AW:function(){return Fe},F0:function(){return K},gx:function(){return wt},rs:function(){return Vt},s6:function(){return z},LX:function(){return Je},k6:function(){return Le},TH:function(){return ct},UO:function(){return at},$B:function(){return jt},EN:function(){return gt}});var x=o(41788),g=o(67294),A=o(83233),y=o(44721),M=o.n(y),w=1073741823,m=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof o.g!="undefined"?o.g:{};function b(){var Lt="__global_unique_id__";return m[Lt]=(m[Lt]||0)+1}function v(Lt,ze){return Lt===ze?Lt!==0||1/Lt==1/ze:Lt!==Lt&&ze!==ze}function h(Lt){var ze=[];return{on:function(tt){ze.push(tt)},off:function(tt){ze=ze.filter(function(de){return de!==tt})},get:function(){return Lt},set:function(tt,de){Lt=tt,ze.forEach(function(ot){return ot(Lt,de)})}}}function d(Lt){return Array.isArray(Lt)?Lt[0]:Lt}function _(Lt,ze){var rt,tt,de="__create-react-context-"+b()+"__",ot=function(Ht){(0,x.Z)(Jt,Ht);function Jt(){var an;return an=Ht.apply(this,arguments)||this,an.emitter=h(an.props.value),an}var Qt=Jt.prototype;return Qt.getChildContext=function(){var Un;return Un={},Un[de]=this.emitter,Un},Qt.componentWillReceiveProps=function(Un){if(this.props.value!==Un.value){var qt=this.props.value,rn=Un.value,cn;v(qt,rn)?cn=0:(cn=typeof ze=="function"?ze(qt,rn):w,cn|=0,cn!==0&&this.emitter.set(Un.value,cn))}},Qt.render=function(){return this.props.children},Jt}(g.Component);ot.childContextTypes=(rt={},rt[de]=M().object.isRequired,rt);var Et=function(Ht){(0,x.Z)(Jt,Ht);function Jt(){var an;return an=Ht.apply(this,arguments)||this,an.state={value:an.getValue()},an.onUpdate=function(Un,qt){var rn=an.observedBits|0;(rn&qt)!=0&&an.setState({value:an.getValue()})},an}var Qt=Jt.prototype;return Qt.componentWillReceiveProps=function(Un){var qt=Un.observedBits;this.observedBits=qt==null?w:qt},Qt.componentDidMount=function(){this.context[de]&&this.context[de].on(this.onUpdate);var Un=this.props.observedBits;this.observedBits=Un==null?w:Un},Qt.componentWillUnmount=function(){this.context[de]&&this.context[de].off(this.onUpdate)},Qt.getValue=function(){return this.context[de]?this.context[de].get():Lt},Qt.render=function(){return d(this.props.children)(this.state.value)},Jt}(g.Component);return Et.contextTypes=(tt={},tt[de]=M().object,tt),{Provider:ot,Consumer:Et}}var p=g.createContext||_,S=p,k=o(3537),O=o(22122),F=o(91007),D=o.n(F),Z=o(54323),W=o(19756),U=o(17824),L=o.n(U),V=function(ze){var rt=S();return rt.displayName=ze,rt},$=V("Router-History"),G=function(ze){var rt=S();return rt.displayName=ze,rt},z=G("Router"),K=function(Lt){(0,x.Z)(ze,Lt),ze.computeRootMatch=function(de){return{path:"/",url:"/",params:{},isExact:de==="/"}};function ze(tt){var de;return de=Lt.call(this,tt)||this,de.state={location:tt.history.location},de._isMounted=!1,de._pendingLocation=null,tt.staticContext||(de.unlisten=tt.history.listen(function(ot){de._isMounted?de.setState({location:ot}):de._pendingLocation=ot})),de}var rt=ze.prototype;return rt.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},rt.componentWillUnmount=function(){this.unlisten&&this.unlisten()},rt.render=function(){return g.createElement(z.Provider,{value:{history:this.props.history,location:this.state.location,match:ze.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},g.createElement($.Provider,{children:this.props.children||null,value:this.props.history}))},ze}(g.Component),re=function(Lt){(0,x.Z)(ze,Lt);function ze(){for(var tt,de=arguments.length,ot=new Array(de),Et=0;Et<de;Et++)ot[Et]=arguments[Et];return tt=Lt.call.apply(Lt,[this].concat(ot))||this,tt.history=(0,A.PP)(tt.props),tt}var rt=ze.prototype;return rt.render=function(){return g.createElement(K,{history:this.history,children:this.props.children})},ze}(g.Component),ne=function(Lt){(0,x.Z)(ze,Lt);function ze(){return Lt.apply(this,arguments)||this}var rt=ze.prototype;return rt.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},rt.componentDidUpdate=function(de){this.props.onUpdate&&this.props.onUpdate.call(this,this,de)},rt.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},rt.render=function(){return null},ze}(g.Component);function Q(Lt){var ze=Lt.message,rt=Lt.when,tt=rt===void 0?!0:rt;return g.createElement(z.Consumer,null,function(de){if(de||(0,k.Z)(!1),!tt||de.staticContext)return null;var ot=de.history.block;return g.createElement(ne,{onMount:function(Ht){Ht.release=ot(ze)},onUpdate:function(Ht,Jt){Jt.message!==ze&&(Ht.release(),Ht.release=ot(ze))},onUnmount:function(Ht){Ht.release()},message:ze})})}if(!1)var ue;var he={},Ee=1e4,ce=0;function ve(Lt){if(he[Lt])return he[Lt];var ze=D().compile(Lt);return ce<Ee&&(he[Lt]=ze,ce++),ze}function fe(Lt,ze){return Lt===void 0&&(Lt="/"),ze===void 0&&(ze={}),Lt==="/"?Lt:ve(Lt)(ze,{pretty:!0})}function we(Lt){var ze=Lt.computedMatch,rt=Lt.to,tt=Lt.push,de=tt===void 0?!1:tt;return g.createElement(z.Consumer,null,function(ot){ot||(0,k.Z)(!1);var Et=ot.history,Ht=ot.staticContext,Jt=de?Et.push:Et.replace,Qt=(0,A.ob)(ze?typeof rt=="string"?fe(rt,ze.params):(0,O.Z)({},rt,{pathname:fe(rt.pathname,ze.params)}):rt);return Ht?(Jt(Qt),null):g.createElement(ne,{onMount:function(){Jt(Qt)},onUpdate:function(Un,qt){var rn=(0,A.ob)(qt.to);(0,A.Hp)(rn,(0,O.Z)({},Qt,{key:rn.key}))||Jt(Qt)},to:rt})})}var me={},Pe=1e4,pe=0;function Ie(Lt,ze){var rt=""+ze.end+ze.strict+ze.sensitive,tt=me[rt]||(me[rt]={});if(tt[Lt])return tt[Lt];var de=[],ot=D()(Lt,de,ze),Et={regexp:ot,keys:de};return pe<Pe&&(tt[Lt]=Et,pe++),Et}function Je(Lt,ze){ze===void 0&&(ze={}),(typeof ze=="string"||Array.isArray(ze))&&(ze={path:ze});var rt=ze,tt=rt.path,de=rt.exact,ot=de===void 0?!1:de,Et=rt.strict,Ht=Et===void 0?!1:Et,Jt=rt.sensitive,Qt=Jt===void 0?!1:Jt,an=[].concat(tt);return an.reduce(function(Un,qt){if(!qt&&qt!=="")return null;if(Un)return Un;var rn=Ie(qt,{end:ot,strict:Ht,sensitive:Qt}),cn=rn.regexp,er=rn.keys,rr=cn.exec(Lt);if(!rr)return null;var nt=rr[0],lr=rr.slice(1),Hn=Lt===nt;return ot&&!Hn?null:{path:qt,url:qt==="/"&&nt===""?"/":nt,isExact:Hn,params:er.reduce(function(ut,bt,We){return ut[bt.name]=lr[We],ut},{})}},null)}function ke(Lt){return React.Children.count(Lt)===0}function De(Lt,ze,rt){var tt=Lt(ze);return tt||null}var Fe=function(Lt){(0,x.Z)(ze,Lt);function ze(){return Lt.apply(this,arguments)||this}var rt=ze.prototype;return rt.render=function(){var de=this;return g.createElement(z.Consumer,null,function(ot){ot||(0,k.Z)(!1);var Et=de.props.location||ot.location,Ht=de.props.computedMatch?de.props.computedMatch:de.props.path?Je(Et.pathname,de.props):ot.match,Jt=(0,O.Z)({},ot,{location:Et,match:Ht}),Qt=de.props,an=Qt.children,Un=Qt.component,qt=Qt.render;return Array.isArray(an)&&an.length===0&&(an=null),g.createElement(z.Provider,{value:Jt},Jt.match?an?typeof an=="function"?an(Jt):an:Un?g.createElement(Un,Jt):qt?qt(Jt):null:typeof an=="function"?an(Jt):null)})},ze}(g.Component);function Qe(Lt){return Lt.charAt(0)==="/"?Lt:"/"+Lt}function qe(Lt,ze){return Lt?(0,O.Z)({},ze,{pathname:Qe(Lt)+ze.pathname}):ze}function et(Lt,ze){if(!Lt)return ze;var rt=Qe(Lt);return ze.pathname.indexOf(rt)!==0?ze:(0,O.Z)({},ze,{pathname:ze.pathname.substr(rt.length)})}function dt(Lt){return typeof Lt=="string"?Lt:(0,A.Ep)(Lt)}function Ke(Lt){return function(){(0,k.Z)(!1)}}function Ge(){}var wt=function(Lt){(0,x.Z)(ze,Lt);function ze(){for(var tt,de=arguments.length,ot=new Array(de),Et=0;Et<de;Et++)ot[Et]=arguments[Et];return tt=Lt.call.apply(Lt,[this].concat(ot))||this,tt.handlePush=function(Ht){return tt.navigateTo(Ht,"PUSH")},tt.handleReplace=function(Ht){return tt.navigateTo(Ht,"REPLACE")},tt.handleListen=function(){return Ge},tt.handleBlock=function(){return Ge},tt}var rt=ze.prototype;return rt.navigateTo=function(de,ot){var Et=this.props,Ht=Et.basename,Jt=Ht===void 0?"":Ht,Qt=Et.context,an=Qt===void 0?{}:Qt;an.action=ot,an.location=qe(Jt,(0,A.ob)(de)),an.url=dt(an.location)},rt.render=function(){var de=this.props,ot=de.basename,Et=ot===void 0?"":ot,Ht=de.context,Jt=Ht===void 0?{}:Ht,Qt=de.location,an=Qt===void 0?"/":Qt,Un=(0,W.Z)(de,["basename","context","location"]),qt={createHref:function(cn){return Qe(Et+dt(cn))},action:"POP",location:et(Et,(0,A.ob)(an)),push:this.handlePush,replace:this.handleReplace,go:Ke("go"),goBack:Ke("goBack"),goForward:Ke("goForward"),listen:this.handleListen,block:this.handleBlock};return g.createElement(K,(0,O.Z)({},Un,{history:qt,staticContext:Jt}))},ze}(g.Component),Vt=function(Lt){(0,x.Z)(ze,Lt);function ze(){return Lt.apply(this,arguments)||this}var rt=ze.prototype;return rt.render=function(){var de=this;return g.createElement(z.Consumer,null,function(ot){ot||(0,k.Z)(!1);var Et=de.props.location||ot.location,Ht,Jt;return g.Children.forEach(de.props.children,function(Qt){if(Jt==null&&g.isValidElement(Qt)){Ht=Qt;var an=Qt.props.path||Qt.props.from;Jt=an?Je(Et.pathname,(0,O.Z)({},Qt.props,{path:an})):ot.match}}),Jt?g.cloneElement(Ht,{location:Et,computedMatch:Jt}):null})},ze}(g.Component);function gt(Lt){var ze="withRouter("+(Lt.displayName||Lt.name)+")",rt=function(de){var ot=de.wrappedComponentRef,Et=(0,W.Z)(de,["wrappedComponentRef"]);return g.createElement(z.Consumer,null,function(Ht){return Ht||(0,k.Z)(!1),g.createElement(Lt,(0,O.Z)({},Et,Ht,{ref:ot}))})};return rt.displayName=ze,rt.WrappedComponent=Lt,L()(rt,Lt)}var it=g.useContext;function Le(){return it($)}function ct(){return it(z).location}function at(){var Lt=it(z).match;return Lt?Lt.params:{}}function jt(Lt){var ze=ct(),rt=it(z).match;return Lt?Je(ze.pathname,Lt):rt}if(!1)var St,fn,Xt,Yt,Rt},17824:function(oe,N,o){"use strict";var x=o(54323),g={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},A={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},y={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},M={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},w={};w[x.ForwardRef]=y,w[x.Memo]=M;function m(k){return x.isMemo(k)?M:w[k.$$typeof]||g}var b=Object.defineProperty,v=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,p=Object.prototype;function S(k,O,F){if(typeof O!="string"){if(p){var D=_(O);D&&D!==p&&S(k,D,F)}var Z=v(O);h&&(Z=Z.concat(h(O)));for(var W=m(k),U=m(O),L=0;L<Z.length;++L){var V=Z[L];if(!A[V]&&!(F&&F[V])&&!(U&&U[V])&&!(W&&W[V])){var $=d(O,V);try{b(k,V,$)}catch(G){}}}}return k}oe.exports=S},36416:function(oe){oe.exports=Array.isArray||function(N){return Object.prototype.toString.call(N)=="[object Array]"}},91007:function(oe,N,o){var x=o(36416);oe.exports=O,oe.exports.parse=A,oe.exports.compile=y,oe.exports.tokensToFunction=m,oe.exports.tokensToRegExp=k;var g=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function A(F,D){for(var Z=[],W=0,U=0,L="",V=D&&D.delimiter||"/",$;($=g.exec(F))!=null;){var G=$[0],z=$[1],K=$.index;if(L+=F.slice(U,K),U=K+G.length,z){L+=z[1];continue}var re=F[U],ne=$[2],Q=$[3],ue=$[4],he=$[5],Ee=$[6],ce=$[7];L&&(Z.push(L),L="");var ve=ne!=null&&re!=null&&re!==ne,fe=Ee==="+"||Ee==="*",we=Ee==="?"||Ee==="*",me=$[2]||V,Pe=ue||he;Z.push({name:Q||W++,prefix:ne||"",delimiter:me,optional:we,repeat:fe,partial:ve,asterisk:!!ce,pattern:Pe?v(Pe):ce?".*":"[^"+b(me)+"]+?"})}return U<F.length&&(L+=F.substr(U)),L&&Z.push(L),Z}function y(F,D){return m(A(F,D),D)}function M(F){return encodeURI(F).replace(/[\/?#]/g,function(D){return"%"+D.charCodeAt(0).toString(16).toUpperCase()})}function w(F){return encodeURI(F).replace(/[?#]/g,function(D){return"%"+D.charCodeAt(0).toString(16).toUpperCase()})}function m(F,D){for(var Z=new Array(F.length),W=0;W<F.length;W++)typeof F[W]=="object"&&(Z[W]=new RegExp("^(?:"+F[W].pattern+")$",d(D)));return function(U,L){for(var V="",$=U||{},G=L||{},z=G.pretty?M:encodeURIComponent,K=0;K<F.length;K++){var re=F[K];if(typeof re=="string"){V+=re;continue}var ne=$[re.name],Q;if(ne==null)if(re.optional){re.partial&&(V+=re.prefix);continue}else throw new TypeError('Expected "'+re.name+'" to be defined');if(x(ne)){if(!re.repeat)throw new TypeError('Expected "'+re.name+'" to not repeat, but received `'+JSON.stringify(ne)+"`");if(ne.length===0){if(re.optional)continue;throw new TypeError('Expected "'+re.name+'" to not be empty')}for(var ue=0;ue<ne.length;ue++){if(Q=z(ne[ue]),!Z[K].test(Q))throw new TypeError('Expected all "'+re.name+'" to match "'+re.pattern+'", but received `'+JSON.stringify(Q)+"`");V+=(ue===0?re.prefix:re.delimiter)+Q}continue}if(Q=re.asterisk?w(ne):z(ne),!Z[K].test(Q))throw new TypeError('Expected "'+re.name+'" to match "'+re.pattern+'", but received "'+Q+'"');V+=re.prefix+Q}return V}}function b(F){return F.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function v(F){return F.replace(/([=!:$\/()])/g,"\\$1")}function h(F,D){return F.keys=D,F}function d(F){return F&&F.sensitive?"":"i"}function _(F,D){var Z=F.source.match(/\((?!\?)/g);if(Z)for(var W=0;W<Z.length;W++)D.push({name:W,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return h(F,D)}function p(F,D,Z){for(var W=[],U=0;U<F.length;U++)W.push(O(F[U],D,Z).source);var L=new RegExp("(?:"+W.join("|")+")",d(Z));return h(L,D)}function S(F,D,Z){return k(A(F,Z),D,Z)}function k(F,D,Z){x(D)||(Z=D||Z,D=[]),Z=Z||{};for(var W=Z.strict,U=Z.end!==!1,L="",V=0;V<F.length;V++){var $=F[V];if(typeof $=="string")L+=b($);else{var G=b($.prefix),z="(?:"+$.pattern+")";D.push($),$.repeat&&(z+="(?:"+G+z+")*"),$.optional?$.partial?z=G+"("+z+")?":z="(?:"+G+"("+z+"))?":z=G+"("+z+")",L+=z}}var K=b(Z.delimiter||"/"),re=L.slice(-K.length)===K;return W||(L=(re?L.slice(0,-K.length):L)+"(?:"+K+"(?=$))?"),U?L+="$":L+=W&&re?"":"(?="+K+"|$)",h(new RegExp("^"+L,d(Z)),D)}function O(F,D,Z){return x(D)||(Z=D||Z,D=[]),Z=Z||{},F instanceof RegExp?_(F,D):x(F)?p(F,D,Z):S(F,D,Z)}},26448:function(oe,N,o){"use strict";function x(b){return b&&typeof b=="object"&&"default"in b?b.default:b}var g=o(67294),A=x(g);function y(b,v,h){return v in b?Object.defineProperty(b,v,{value:h,enumerable:!0,configurable:!0,writable:!0}):b[v]=h,b}function M(b,v){b.prototype=Object.create(v.prototype),b.prototype.constructor=b,b.__proto__=v}var w=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function m(b,v,h){if(typeof b!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof v!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof h!="undefined"&&typeof h!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function d(_){return _.displayName||_.name||"Component"}return function(p){if(typeof p!="function")throw new Error("Expected WrappedComponent to be a React component.");var S=[],k;function O(){k=b(S.map(function(D){return D.props})),F.canUseDOM?v(k):h&&(k=h(k))}var F=function(D){M(Z,D);function Z(){return D.apply(this,arguments)||this}Z.peek=function(){return k},Z.rewind=function(){if(Z.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var L=k;return k=void 0,S=[],L};var W=Z.prototype;return W.UNSAFE_componentWillMount=function(){S.push(this),O()},W.componentDidUpdate=function(){O()},W.componentWillUnmount=function(){var L=S.indexOf(this);S.splice(L,1),O()},W.render=function(){return A.createElement(p,this.props)},Z}(g.PureComponent);return y(F,"displayName","SideEffect("+d(p)+")"),y(F,"canUseDOM",w),F}}oe.exports=m},79154:function(oe,N,o){"use strict";var x=this&&this.__makeTemplateObject||function(p,S){return Object.defineProperty?Object.defineProperty(p,"raw",{value:S}):p.raw=S,p},g=this&&this.__extends||function(){var p=function(k,O){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,D){F.__proto__=D}||function(F,D){for(var Z in D)Object.prototype.hasOwnProperty.call(D,Z)&&(F[Z]=D[Z])},p(k,O)};return function(S,k){p(S,k);function O(){this.constructor=S}S.prototype=k===null?Object.create(k):(O.prototype=k.prototype,new O)}}(),A=this&&this.__createBinding||(Object.create?function(p,S,k,O){O===void 0&&(O=k),Object.defineProperty(p,O,{enumerable:!0,get:function(){return S[k]}})}:function(p,S,k,O){O===void 0&&(O=k),p[O]=S[k]}),y=this&&this.__setModuleDefault||(Object.create?function(p,S){Object.defineProperty(p,"default",{enumerable:!0,value:S})}:function(p,S){p.default=S}),M=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var S={};if(p!=null)for(var k in p)k!=="default"&&Object.prototype.hasOwnProperty.call(p,k)&&A(S,p,k);return y(S,p),S};Object.defineProperty(N,"__esModule",{value:!0});var w=M(o(67294)),m=o(82625),b=o(59750),v=m.keyframes(d||(d=x([`
|
||
50% {transform: scale(0.75);opacity: 0.2}
|
||
100% {transform: scale(1);opacity: 1}
|
||
`],[`
|
||
50% {transform: scale(0.75);opacity: 0.2}
|
||
100% {transform: scale(1);opacity: 1}
|
||
`]))),h=function(p){g(S,p);function S(){var k=p!==null&&p.apply(this,arguments)||this;return k.style=function(O){var F=k.props,D=F.color,Z=F.size,W=F.margin;return m.css(_||(_=x([`
|
||
display: inline-block;
|
||
background-color: `,`;
|
||
width: `,`;
|
||
height: `,`;
|
||
margin: `,`;
|
||
border-radius: 100%;
|
||
animation: `," 0.7s ",` infinite linear;
|
||
animation-fill-mode: both;
|
||
`],[`
|
||
display: inline-block;
|
||
background-color: `,`;
|
||
width: `,`;
|
||
height: `,`;
|
||
margin: `,`;
|
||
border-radius: 100%;
|
||
animation: `," 0.7s ",` infinite linear;
|
||
animation-fill-mode: both;
|
||
`])),D,b.cssValue(Z||S.defaultProps.size),b.cssValue(Z||S.defaultProps.size),b.cssValue(W||S.defaultProps.margin),v,O%2?"0s":"0.35s")},k}return S.prototype.render=function(){var k=this.props,O=k.loading,F=k.css;return O?m.jsx("span",{css:[F]},m.jsx("span",{css:this.style(1)}),m.jsx("span",{css:this.style(2)}),m.jsx("span",{css:this.style(3)})):null},S.defaultProps=b.sizeMarginDefaults(15),S}(w.PureComponent);N.default=h;var d,_},70773:function(oe,N,o){"use strict";var x=this&&this.__makeTemplateObject||function(p,S){return Object.defineProperty?Object.defineProperty(p,"raw",{value:S}):p.raw=S,p},g=this&&this.__extends||function(){var p=function(k,O){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,D){F.__proto__=D}||function(F,D){for(var Z in D)Object.prototype.hasOwnProperty.call(D,Z)&&(F[Z]=D[Z])},p(k,O)};return function(S,k){p(S,k);function O(){this.constructor=S}S.prototype=k===null?Object.create(k):(O.prototype=k.prototype,new O)}}(),A=this&&this.__createBinding||(Object.create?function(p,S,k,O){O===void 0&&(O=k),Object.defineProperty(p,O,{enumerable:!0,get:function(){return S[k]}})}:function(p,S,k,O){O===void 0&&(O=k),p[O]=S[k]}),y=this&&this.__setModuleDefault||(Object.create?function(p,S){Object.defineProperty(p,"default",{enumerable:!0,value:S})}:function(p,S){p.default=S}),M=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var S={};if(p!=null)for(var k in p)k!=="default"&&Object.prototype.hasOwnProperty.call(p,k)&&A(S,p,k);return y(S,p),S};Object.defineProperty(N,"__esModule",{value:!0});var w=M(o(67294)),m=o(82625),b=o(59750),v=m.keyframes(d||(d=x([`
|
||
0% {transform: scaley(1.0)}
|
||
50% {transform: scaley(0.4)}
|
||
100% {transform: scaley(1.0)}
|
||
`],[`
|
||
0% {transform: scaley(1.0)}
|
||
50% {transform: scaley(0.4)}
|
||
100% {transform: scaley(1.0)}
|
||
`]))),h=function(p){g(S,p);function S(){var k=p!==null&&p.apply(this,arguments)||this;return k.style=function(O){var F=k.props,D=F.color,Z=F.width,W=F.height,U=F.margin,L=F.radius;return m.css(_||(_=x([`
|
||
background-color: `,`;
|
||
width: `,`;
|
||
height: `,`;
|
||
margin: `,`;
|
||
border-radius: `,`;
|
||
display: inline-block;
|
||
animation: `," 1s ",`s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);
|
||
animation-fill-mode: both;
|
||
`],[`
|
||
background-color: `,`;
|
||
width: `,`;
|
||
height: `,`;
|
||
margin: `,`;
|
||
border-radius: `,`;
|
||
display: inline-block;
|
||
animation: `," 1s ",`s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);
|
||
animation-fill-mode: both;
|
||
`])),D,b.cssValue(Z||S.defaultProps.width),b.cssValue(W||S.defaultProps.height),b.cssValue(U||S.defaultProps.margin),b.cssValue(L||S.defaultProps.radius),v,O*.1)},k}return S.prototype.render=function(){var k=this.props,O=k.loading,F=k.css;return O?m.jsx("span",{css:[F]},m.jsx("span",{css:this.style(1)}),m.jsx("span",{css:this.style(2)}),m.jsx("span",{css:this.style(3)}),m.jsx("span",{css:this.style(4)}),m.jsx("span",{css:this.style(5)})):null},S.defaultProps=b.heightWidthRadiusDefaults(35,4,2),S}(w.PureComponent);N.default=h;var d,_},13933:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.calculateRgba=void 0;var o;(function(g){g.maroon="#800000",g.red="#FF0000",g.orange="#FFA500",g.yellow="#FFFF00",g.olive="#808000",g.green="#008000",g.purple="#800080",g.fuchsia="#FF00FF",g.lime="#00FF00",g.teal="#008080",g.aqua="#00FFFF",g.blue="#0000FF",g.navy="#000080",g.black="#000000",g.gray="#808080",g.silver="#C0C0C0",g.white="#FFFFFF"})(o||(o={}));var x=function(A,y){if(Object.keys(o).includes(A)&&(A=o[A]),A[0]==="#"&&(A=A.slice(1)),A.length===3){var M="";A.split("").forEach(function(m){M+=m,M+=m}),A=M}var w=(A.match(/.{2}/g)||[]).map(function(m){return parseInt(m,16)}).join(", ");return"rgba("+w+", "+y+")"};N.calculateRgba=x},59750:function(oe,N,o){"use strict";var x=this&&this.__createBinding||(Object.create?function(A,y,M,w){w===void 0&&(w=M),Object.defineProperty(A,w,{enumerable:!0,get:function(){return y[M]}})}:function(A,y,M,w){w===void 0&&(w=M),A[w]=y[M]}),g=this&&this.__exportStar||function(A,y){for(var M in A)M!=="default"&&!Object.prototype.hasOwnProperty.call(y,M)&&x(y,A,M)};Object.defineProperty(N,"__esModule",{value:!0}),g(o(72610),N),g(o(13933),N),g(o(69859),N)},72610:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.heightWidthRadiusDefaults=N.heightWidthDefaults=N.sizeMarginDefaults=N.sizeDefaults=void 0;var o={loading:!0,color:"#000000",css:""};function x(M){return Object.assign({},o,{size:M})}N.sizeDefaults=x;function g(M){return Object.assign({},x(M),{margin:2})}N.sizeMarginDefaults=g;function A(M,w){return Object.assign({},o,{height:M,width:w})}N.heightWidthDefaults=A;function y(M,w,m){return m===void 0&&(m=2),Object.assign({},A(M,w),{radius:m,margin:2})}N.heightWidthRadiusDefaults=y},69859:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.cssValue=N.parseLengthAndUnit=void 0;var o={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function x(A){if(typeof A=="number")return{value:A,unit:"px"};var y,M=(A.match(/^[0-9.]*/)||"").toString();M.includes(".")?y=parseFloat(M):y=parseInt(M,10);var w=(A.match(/[^0-9]*$/)||"").toString();return o[w]?{value:y,unit:w}:(console.warn("React Spinners: "+A+" is not a valid css value. Defaulting to "+y+"px."),{value:y,unit:"px"})}N.parseLengthAndUnit=x;function g(A){var y=x(A);return""+y.value+y.unit}N.cssValue=g},32295:function(oe,N,o){var x=o(7493);oe.exports=x},5140:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var x=function(){function k(O,F){for(var D=0;D<F.length;D++){var Z=F[D];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(O,Z.key,Z)}}return function(O,F,D){return F&&k(O.prototype,F),D&&k(O,D),O}}(),g=o(67294),A=v(g),y=o(44721),M=v(y),w=o(28217),m=v(w),b=o(7493);function v(k){return k&&k.__esModule?k:{default:k}}function h(k,O){if(!(k instanceof O))throw new TypeError("Cannot call a class as a function")}function d(k,O){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:k}function _(k,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);k.prototype=Object.create(O&&O.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(k,O):k.__proto__=O)}function p(k){var O=k.split,F=k.initialSize,D=k.size,Z=k.minSize,W=k.maxSize,U=k.resizersSize,L=D||F,V=O==="vertical",$={minSize:V?"minWidth":"minHeight",maxSize:V?"maxWidth":"maxHeight",size:V?"width":"height"},G={display:"flex",outline:"none"};switch(G[$.minSize]=(0,b.convertSizeToCssValue)(Z,U),G[$.maxSize]=(0,b.convertSizeToCssValue)(W,U),(0,b.getUnit)(L)){case"ratio":G.flex=L;break;case"%":case"px":G.flexGrow=0,G[$.size]=(0,b.convertSizeToCssValue)(L,U);break}return G}var S=function(k){_(O,k);function O(){var F,D,Z,W;h(this,O);for(var U=arguments.length,L=Array(U),V=0;V<U;V++)L[V]=arguments[V];return W=(D=(Z=d(this,(F=O.__proto__||Object.getPrototypeOf(O)).call.apply(F,[this].concat(L))),Z),Z.setRef=function($){Z.props.innerRef(Z.props.index,$)},D),d(Z,W)}return x(O,[{key:"render",value:function(){var D=this.props,Z=D.children,W=D.className,U=(0,m.default)(p(this.props));return A.default.createElement("div",{className:W,style:U,ref:this.setRef},Z)}}]),O}(g.PureComponent);S.propTypes={children:M.default.node,innerRef:M.default.func,index:M.default.number,className:M.default.string,initialSize:M.default.oneOfType([M.default.string,M.default.number]),minSize:M.default.string,maxSize:M.default.string},S.defaultProps={initialSize:"1",split:"vertical",minSize:"0",maxSize:"100%"},N.default=S,oe.exports=N.default},53591:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var x=function(){function D(Z,W){for(var U=0;U<W.length;U++){var L=W[U];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(Z,L.key,L)}}return function(Z,W,U){return W&&D(Z.prototype,W),U&&D(Z,U),Z}}(),g=p([`
|
||
background: #000;
|
||
opacity: 0.2;
|
||
z-index: 1;
|
||
box-sizing: border-box;
|
||
background-clip: padding-box;
|
||
|
||
:hover {
|
||
transition: all 2s ease;
|
||
}
|
||
`],[`
|
||
background: #000;
|
||
opacity: 0.2;
|
||
z-index: 1;
|
||
box-sizing: border-box;
|
||
background-clip: padding-box;
|
||
|
||
:hover {
|
||
transition: all 2s ease;
|
||
}
|
||
`]),A=p([`
|
||
height: 11px;
|
||
margin: -5px 0;
|
||
border-top: 5px solid rgba(255, 255, 255, 0);
|
||
border-bottom: 5px solid rgba(255, 255, 255, 0);
|
||
cursor: row-resize;
|
||
width: 100%;
|
||
|
||
:hover {
|
||
border-top: 5px solid rgba(0, 0, 0, 0.5);
|
||
border-bottom: 5px solid rgba(0, 0, 0, 0.5);
|
||
}
|
||
|
||
.disabled {
|
||
cursor: not-allowed;
|
||
}
|
||
.disabled:hover {
|
||
border-color: transparent;
|
||
}
|
||
`],[`
|
||
height: 11px;
|
||
margin: -5px 0;
|
||
border-top: 5px solid rgba(255, 255, 255, 0);
|
||
border-bottom: 5px solid rgba(255, 255, 255, 0);
|
||
cursor: row-resize;
|
||
width: 100%;
|
||
|
||
:hover {
|
||
border-top: 5px solid rgba(0, 0, 0, 0.5);
|
||
border-bottom: 5px solid rgba(0, 0, 0, 0.5);
|
||
}
|
||
|
||
.disabled {
|
||
cursor: not-allowed;
|
||
}
|
||
.disabled:hover {
|
||
border-color: transparent;
|
||
}
|
||
`]),y=p([`
|
||
width: 11px;
|
||
margin: 0 -5px;
|
||
border-left: 5px solid rgba(255, 255, 255, 0);
|
||
border-right: 5px solid rgba(255, 255, 255, 0);
|
||
cursor: col-resize;
|
||
|
||
:hover {
|
||
border-left: 5px solid rgba(0, 0, 0, 0.5);
|
||
border-right: 5px solid rgba(0, 0, 0, 0.5);
|
||
}
|
||
.disabled {
|
||
cursor: not-allowed;
|
||
}
|
||
.disabled:hover {
|
||
border-color: transparent;
|
||
}
|
||
`],[`
|
||
width: 11px;
|
||
margin: 0 -5px;
|
||
border-left: 5px solid rgba(255, 255, 255, 0);
|
||
border-right: 5px solid rgba(255, 255, 255, 0);
|
||
cursor: col-resize;
|
||
|
||
:hover {
|
||
border-left: 5px solid rgba(0, 0, 0, 0.5);
|
||
border-right: 5px solid rgba(0, 0, 0, 0.5);
|
||
}
|
||
.disabled {
|
||
cursor: not-allowed;
|
||
}
|
||
.disabled:hover {
|
||
border-color: transparent;
|
||
}
|
||
`]),M=o(67294),w=v(M),m=o(26392),b=v(m);function v(D){return D&&D.__esModule?D:{default:D}}function h(D,Z){if(!(D instanceof Z))throw new TypeError("Cannot call a class as a function")}function d(D,Z){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z&&(typeof Z=="object"||typeof Z=="function")?Z:D}function _(D,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Z);D.prototype=Object.create(Z&&Z.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),Z&&(Object.setPrototypeOf?Object.setPrototypeOf(D,Z):D.__proto__=Z)}function p(D,Z){return Object.freeze(Object.defineProperties(D,{raw:{value:Object.freeze(Z)}}))}var S=b.default.div(g),k=(0,b.default)(S)(A),O=(0,b.default)(S)(y),F=function(D){_(Z,D);function Z(){return h(this,Z),d(this,(Z.__proto__||Object.getPrototypeOf(Z)).apply(this,arguments))}return x(Z,[{key:"render",value:function(){var U=this,L=this.props,V=L.index,$=L.split,G=$===void 0?"vertical":$,z=L.onClick,K=z===void 0?function(){}:z,re=L.onDoubleClick,ne=re===void 0?function(){}:re,Q=L.onMouseDown,ue=Q===void 0?function(){}:Q,he=L.onTouchEnd,Ee=he===void 0?function(){}:he,ce=L.onTouchStart,ve=ce===void 0?function(){}:ce,fe={ref:function(me){return U.resizer=me},"data-attribute":G,"data-type":"Resizer",onMouseDown:function(me){return ue(me,V)},onTouchStart:function(me){me.preventDefault(),ve(me,V)},onTouchEnd:function(me){me.preventDefault(),Ee(me,V)},onClick:function(me){K&&(me.preventDefault(),K(me,V))},onDoubleClick:function(me){ne&&(me.preventDefault(),ne(me,V))}};return G==="vertical"?w.default.createElement(O,fe):w.default.createElement(k,fe)}}]),Z}(M.Component);N.default=F,oe.exports=N.default},7493:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var x=function(){function ne(Q,ue){for(var he=0;he<ue.length;he++){var Ee=ue[he];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(Q,Ee.key,Ee)}}return function(Q,ue,he){return ue&&ne(Q.prototype,ue),he&&ne(Q,he),Q}}();N.getUnit=G,N.convertSizeToCssValue=z;var g=o(67294),A=_(g),y=o(44721),M=_(y),w=o(80755),m=_(w),b=o(53591),v=_(b),h=o(5140),d=_(h);function _(ne){return ne&&ne.__esModule?ne:{default:ne}}function p(ne){if(Array.isArray(ne)){for(var Q=0,ue=Array(ne.length);Q<ne.length;Q++)ue[Q]=ne[Q];return ue}else return Array.from(ne)}function S(ne,Q){if(!(ne instanceof Q))throw new TypeError("Cannot call a class as a function")}function k(ne,Q){if(!ne)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q&&(typeof Q=="object"||typeof Q=="function")?Q:ne}function O(ne,Q){if(typeof Q!="function"&&Q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Q);ne.prototype=Object.create(Q&&Q.prototype,{constructor:{value:ne,enumerable:!1,writable:!0,configurable:!0}}),Q&&(Object.setPrototypeOf?Object.setPrototypeOf(ne,Q):ne.__proto__=Q)}var F="1",D="0",Z="100%",W=m.default.div({display:"flex",height:"100%",flexDirection:"column",flex:1,outline:"none",overflow:"hidden",userSelect:"text"}),U=m.default.div({display:"flex",height:"100%",flexDirection:"row",flex:1,outline:"none",overflow:"hidden",userSelect:"text"});function L(ne,Q){var ue=ne.match(/([0-9]+)([px|%]*)/),he=ue[1],Ee=ue[2];return V(he,Ee,Q)}function V(ne){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px",ue=arguments[2];switch(Q){case"%":return+(ue*ne/100).toFixed(2);default:return+ne}}function $(ne){return A.default.Children.toArray(ne).filter(function(Q){return Q})}function G(ne){return ne.endsWith("px")?"px":ne.endsWith("%")?"%":"ratio"}function z(ne,Q){if(G(ne)!=="%"||!Q)return ne;var ue=ne.search("%"),he=ne.slice(0,ue)/100;return he===0?ne:"calc("+ne+" - "+Q+"px*"+he+")"}function K(ne,Q,ue){switch(Q){case"%":return(ne/ue*100).toFixed(2)+"%";case"px":return ne.toFixed(2)+"px";case"ratio":return(ne*100).toFixed(0)}}var re=function(ne){O(Q,ne);function Q(ue){S(this,Q);var he=k(this,(Q.__proto__||Object.getPrototypeOf(Q)).call(this,ue));return he.onMouseDown=function(Ee,ce){Ee.button===0&&(Ee.preventDefault(),he.onDown(ce,Ee.clientX,Ee.clientY))},he.onTouchStart=function(Ee,ce){Ee.preventDefault();var ve=Ee.touches[0],fe=ve.clientX,we=ve.clientY;he.onDown(ce,fe,we)},he.onDown=function(Ee,ce,ve){var fe=he.props,we=fe.allowResize,me=fe.onResizeStart,Pe=fe.split;!we||(he.resizerIndex=Ee,he.dimensionsSnapshot=he.getDimensionsSnapshot(he.props),he.startClientX=ce,he.startClientY=ve,document.addEventListener("mousemove",he.onMouseMove),document.addEventListener("mouseup",he.onMouseUp),document.addEventListener("touchmove",he.onTouchMove),document.addEventListener("touchend",he.onMouseUp),document.addEventListener("touchcancel",he.onMouseUp),me&&me())},he.onMouseMove=function(Ee){Ee.preventDefault(),he.onMove(Ee.clientX,Ee.clientY)},he.onTouchMove=function(Ee){Ee.preventDefault();var ce=Ee.touches[0],ve=ce.clientX,fe=ce.clientY;he.onMove(ve,fe)},he.onMouseUp=function(Ee){Ee.preventDefault(),document.removeEventListener("mouseup",he.onMouseUp),document.removeEventListener("mousemove",he.onMouseMove),document.removeEventListener("touchmove",he.onTouchMove),document.removeEventListener("touchend",he.onMouseUp),document.addEventListener("touchcancel",he.onMouseUp),he.props.onResizeEnd&&he.props.onResizeEnd(he.state.sizes)},he.setPaneRef=function(Ee,ce){he.paneElements||(he.paneElements=[]),he.paneElements[Ee]=ce},he.state={sizes:he.getPanePropSize(ue)},he}return x(Q,[{key:"componentWillReceiveProps",value:function(he){this.setState({sizes:this.getPanePropSize(he)})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onMouseUp)}},{key:"getDimensionsSnapshot",value:function(he){var Ee=he.split,ce=this.getPaneDimensions(),ve=this.splitPane.getBoundingClientRect(),fe=this.getPanePropMinMaxSize(he,"minSize"),we=this.getPanePropMinMaxSize(he,"maxSize"),me=this.getResizersSize($(this.props.children)),Pe=Ee==="vertical"?ve.width-me:ve.height-me,pe=fe.map(function(ke){return L(ke,Pe)}),Ie=we.map(function(ke){return L(ke,Pe)}),Je=ce.map(function(ke){return Ee==="vertical"?ke.width:ke.height});return{resizersSize:me,paneDimensions:ce,splitPaneSizePx:Pe,minSizesPx:pe,maxSizesPx:Ie,sizesPx:Je}}},{key:"getPanePropSize",value:function(he){return $(he.children).map(function(Ee){var ce=Ee.props.size||Ee.props.initialSize;return ce===void 0?F:String(ce)})}},{key:"getPanePropMinMaxSize",value:function(he,Ee){return $(he.children).map(function(ce){var ve=ce.props[Ee];return ve===void 0?Ee==="maxSize"?Z:D:ve})}},{key:"getPaneDimensions",value:function(){return this.paneElements.filter(function(he){return he}).map(function(he){return he.getBoundingClientRect()})}},{key:"getSizes",value:function(){return this.state.sizes}},{key:"onMove",value:function(he,Ee){var ce=this.props,ve=ce.split,fe=ce.onChange,we=this.resizerIndex,me=this.dimensionsSnapshot,Pe=me.sizesPx,pe=me.minSizesPx,Ie=me.maxSizesPx,Je=me.splitPaneSizePx,ke=me.paneDimensions,De=ve==="vertical"?"width":"height",Fe=ke[we],Qe=ke[we+1],qe=Fe[De]+Qe[De],et=pe[we],dt=pe[we+1],Ke=Math.min(Ie[we],qe),Ge=Math.min(Ie[we+1],qe),wt=ve==="vertical"?this.startClientX-he:this.startClientY-Ee,Vt=Fe[De]-wt,gt=Qe[De]+wt,it=!1,Le=!1;Vt<et?(Vt=et,it=!0):Vt>Ke&&(Vt=Ke,it=!0),gt<dt?(gt=dt,Le=!0):gt>Ge&&(gt=Ge,Le=!0),it?gt=Fe[De]+Qe[De]-Vt:Le&&(Vt=Fe[De]+Qe[De]-gt),Pe[we]=Vt,Pe[we+1]=gt;var ct=this.getSizes().concat(),at=void 0;if([Vt,gt].forEach(function(fn,Xt){var Yt=G(ct[we+Xt]);Yt!=="ratio"?ct[we+Xt]=K(fn,Yt,Je):at=!0}),at){var jt=0,St=void 0;ct=ct.map(function(fn,Xt){return G(fn)==="ratio"?(jt++,St=Xt,K(Pe[Xt],"ratio")):fn}),jt===1&&(ct[St]="1")}fe&&fe(ct),this.setState({sizes:ct})}},{key:"getResizersSize",value:function(he){return(he.length-1)*this.props.resizerSize}},{key:"render",value:function(){var he=this,Ee=this.props,ce=Ee.children,ve=Ee.className,fe=Ee.split,we=$(this.props.children),me=this.getSizes(),Pe=this.getResizersSize(we),pe=we.reduce(function(Je,ke,De){var Fe=void 0,Qe=De-1,qe=ke.type===d.default,et={index:De,"data-type":"Pane",split:fe,key:"Pane-"+De,innerRef:he.setPaneRef,resizersSize:Pe,size:me[De]};if(qe?Fe=(0,g.cloneElement)(ke,et):Fe=A.default.createElement(d.default,et,ke),Je.length===0)return[].concat(p(Je),[Fe]);var dt=A.default.createElement(v.default,{index:Qe,key:"Resizer-"+Qe,split:fe,onMouseDown:he.onMouseDown,onTouchStart:he.onTouchStart});return[].concat(p(Je),[dt,Fe])},[]),Ie=fe==="vertical"?U:W;return A.default.createElement(Ie,{className:ve,"data-type":"SplitPane","data-split":fe,innerRef:function(ke){he.splitPane=ke}},pe)}}]),Q}(g.Component);re.propTypes={children:M.default.arrayOf(M.default.node).isRequired,className:M.default.string,split:M.default.oneOf(["vertical","horizontal"]),resizerSize:M.default.number,onChange:M.default.func,onResizeStart:M.default.func,onResizeEnd:M.default.func},re.defaultProps={split:"vertical",resizerSize:1,allowResize:!0},N.default=re},16601:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=y;var x=o(97136),g=A(x);function A(M){return M&&M.__esModule?M:{default:M}}function y(M){return(0,g.default)(M)}oe.exports=N.default},13407:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=x;var o=/-webkit-|-moz-|-ms-/;function x(g){return typeof g=="string"&&o.test(g)}oe.exports=N.default},78847:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=h;var x=o(32828),g=v(x),A=o(45763),y=v(A),M=o(35369),w=v(M),m=o(14958),b=v(m);function v(d){return d&&d.__esModule?d:{default:d}}function h(d){var _=d.prefixMap,p=d.plugins;function S(k){for(var O in k){var F=k[O];if((0,b.default)(F))k[O]=S(F);else if(Array.isArray(F)){for(var D=[],Z=0,W=F.length;Z<W;++Z){var U=(0,y.default)(p,O,F[Z],k,_);(0,w.default)(D,U||F[Z])}D.length>0&&(k[O]=D)}else{var L=(0,y.default)(p,O,F,k,_);L&&(k[O]=L),k=(0,g.default)(_,O,k)}}return k}return S}oe.exports=N.default},28217:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var x=o(78847),g=G(x),A=o(39106),y=G(A),M=o(24343),w=G(M),m=o(41907),b=G(m),v=o(53348),h=G(v),d=o(10816),_=G(d),p=o(76021),S=G(p),k=o(72841),O=G(k),F=o(50208),D=G(F),Z=o(28845),W=G(Z),U=o(9401),L=G(U),V=o(95025),$=G(V);function G(K){return K&&K.__esModule?K:{default:K}}var z=[b.default,w.default,h.default,S.default,O.default,D.default,W.default,L.default,$.default,_.default];N.default=(0,g.default)({prefixMap:y.default.prefixMap,plugins:z}),oe.exports=N.default},41907:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=M;var x=o(13407),g=A(x);function A(w){return w&&w.__esModule?w:{default:w}}var y=["-webkit-",""];function M(w,m){if(typeof m=="string"&&!(0,g.default)(m)&&m.indexOf("cross-fade(")>-1)return y.map(function(b){return m.replace(/cross-fade\(/g,b+"cross-fade(")})}oe.exports=N.default},24343:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=g;var o=["-webkit-","-moz-",""],x={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function g(A,y){if(A==="cursor"&&x.hasOwnProperty(y))return o.map(function(M){return M+y})}oe.exports=N.default},53348:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=M;var x=o(13407),g=A(x);function A(w){return w&&w.__esModule?w:{default:w}}var y=["-webkit-",""];function M(w,m){if(typeof m=="string"&&!(0,g.default)(m)&&m.indexOf("filter(")>-1)return y.map(function(b){return m.replace(/filter\(/g,b+"filter(")})}oe.exports=N.default},10816:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=x;var o={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function x(g,A){if(g==="display"&&o.hasOwnProperty(A))return o[A]}oe.exports=N.default},76021:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=g;var o={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},x={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function g(A,y,M){A==="flexDirection"&&typeof y=="string"&&(y.indexOf("column")>-1?M.WebkitBoxOrient="vertical":M.WebkitBoxOrient="horizontal",y.indexOf("reverse")>-1?M.WebkitBoxDirection="reverse":M.WebkitBoxDirection="normal"),x.hasOwnProperty(A)&&(M[x[A]]=o[y]||y)}oe.exports=N.default},72841:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=w;var x=o(13407),g=A(x);function A(m){return m&&m.__esModule?m:{default:m}}var y=["-webkit-","-moz-",""],M=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function w(m,b){if(typeof b=="string"&&!(0,g.default)(b)&&M.test(b))return y.map(function(v){return b.replace(M,function(h){return v+h})})}oe.exports=N.default},50208:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=M;var x=o(13407),g=A(x);function A(w){return w&&w.__esModule?w:{default:w}}var y=["-webkit-",""];function M(w,m){if(typeof m=="string"&&!(0,g.default)(m)&&m.indexOf("image-set(")>-1)return y.map(function(b){return m.replace(/image-set\(/g,b+"image-set(")})}oe.exports=N.default},28845:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=o;function o(x,g){if(x==="position"&&g==="sticky")return["-webkit-sticky","sticky"]}oe.exports=N.default},9401:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=A;var o=["-webkit-","-moz-",""],x={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},g={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function A(y,M){if(x.hasOwnProperty(y)&&g.hasOwnProperty(M))return o.map(function(w){return w+M})}oe.exports=N.default},95025:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=d;var x=o(16601),g=m(x),A=o(13407),y=m(A),M=o(27946),w=m(M);function m(_){return _&&_.__esModule?_:{default:_}}var b={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},v={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function h(_,p){if((0,y.default)(_))return _;for(var S=_.split(/,(?![^()]*(?:\([^()]*\))?\))/g),k=0,O=S.length;k<O;++k){var F=S[k],D=[F];for(var Z in p){var W=(0,g.default)(Z);if(F.indexOf(W)>-1&&W!=="order")for(var U=p[Z],L=0,V=U.length;L<V;++L)D.unshift(F.replace(W,v[U[L]]+W))}S[k]=D.join(",")}return S.join(",")}function d(_,p,S,k){if(typeof p=="string"&&b.hasOwnProperty(_)){var O=h(p,k),F=O.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(Z){return!/-moz-|-ms-/.test(Z)}).join(",");if(_.indexOf("Webkit")>-1)return F;var D=O.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(Z){return!/-webkit-|-ms-/.test(Z)}).join(",");return _.indexOf("Moz")>-1?D:(S["Webkit"+(0,w.default)(_)]=F,S["Moz"+(0,w.default)(_)]=D,O)}}oe.exports=N.default},39106:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o=["Webkit"],x=["Moz"],g=["ms"],A=["Webkit","Moz"],y=["Webkit","ms"],M=["Webkit","Moz","ms"];N.default={plugins:[],prefixMap:{appearance:A,textEmphasisPosition:o,textEmphasis:o,textEmphasisStyle:o,textEmphasisColor:o,boxDecorationBreak:o,maskImage:o,maskMode:o,maskRepeat:o,maskPosition:o,maskClip:o,maskOrigin:o,maskSize:o,maskComposite:o,mask:o,maskBorderSource:o,maskBorderMode:o,maskBorderSlice:o,maskBorderWidth:o,maskBorderOutset:o,maskBorderRepeat:o,maskBorder:o,maskType:o,textDecorationStyle:o,textDecorationSkip:o,textDecorationLine:o,textDecorationColor:o,userSelect:M,backdropFilter:o,fontKerning:o,scrollSnapType:y,scrollSnapPointsX:y,scrollSnapPointsY:y,scrollSnapDestination:y,scrollSnapCoordinate:y,clipPath:o,shapeImageThreshold:o,shapeImageMargin:o,shapeImageOutside:o,filter:o,hyphens:y,flowInto:y,flowFrom:y,breakBefore:y,breakAfter:y,breakInside:y,regionFragment:y,writingMode:y,textOrientation:o,tabSize:x,fontFeatureSettings:o,columnCount:o,columnFill:o,columnGap:o,columnRule:o,columnRuleColor:o,columnRuleStyle:o,columnRuleWidth:o,columns:o,columnSpan:o,columnWidth:o,wrapFlow:g,wrapThrough:g,wrapMargin:g,gridTemplateColumns:g,gridTemplateRows:g,gridTemplateAreas:g,gridTemplate:g,gridAutoColumns:g,gridAutoRows:g,gridAutoFlow:g,grid:g,gridRowStart:g,gridColumnStart:g,gridRowEnd:g,gridRow:g,gridColumn:g,gridColumnEnd:g,gridColumnGap:g,gridRowGap:g,gridArea:g,gridGap:g,textSizeAdjust:y}},oe.exports=N.default},35369:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=x;function o(g,A){g.indexOf(A)===-1&&g.push(A)}function x(g,A){if(Array.isArray(A))for(var y=0,M=A.length;y<M;++y)o(g,A[y]);else o(g,A)}oe.exports=N.default},27946:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=o;function o(x){return x.charAt(0).toUpperCase()+x.slice(1)}oe.exports=N.default},14958:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=o;function o(x){return x instanceof Object&&!Array.isArray(x)}oe.exports=N.default},32828:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=y;var x=o(27946),g=A(x);function A(M){return M&&M.__esModule?M:{default:M}}function y(M,w,m){if(M.hasOwnProperty(w)){for(var b={},v=M[w],h=(0,g.default)(w),d=Object.keys(m),_=0;_<d.length;_++){var p=d[_];if(p===w)for(var S=0;S<v.length;S++)b[v[S]+h]=m[w];b[p]=m[p]}return b}return m}oe.exports=N.default},45763:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.default=o;function o(x,g,A,y,M){for(var w=0,m=x.length;w<m;++w){var b=x[w](g,A,y,M);if(b)return b}}oe.exports=N.default},93065:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.autoprefix=void 0;var x=o(2525),g=y(x),A=Object.assign||function(m){for(var b=1;b<arguments.length;b++){var v=arguments[b];for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&(m[h]=v[h])}return m};function y(m){return m&&m.__esModule?m:{default:m}}var M={borderRadius:function(b){return{msBorderRadius:b,MozBorderRadius:b,OBorderRadius:b,WebkitBorderRadius:b,borderRadius:b}},boxShadow:function(b){return{msBoxShadow:b,MozBoxShadow:b,OBoxShadow:b,WebkitBoxShadow:b,boxShadow:b}},userSelect:function(b){return{WebkitTouchCallout:b,KhtmlUserSelect:b,MozUserSelect:b,msUserSelect:b,WebkitUserSelect:b,userSelect:b}},flex:function(b){return{WebkitBoxFlex:b,MozBoxFlex:b,WebkitFlex:b,msFlex:b,flex:b}},flexBasis:function(b){return{WebkitFlexBasis:b,flexBasis:b}},justifyContent:function(b){return{WebkitJustifyContent:b,justifyContent:b}},transition:function(b){return{msTransition:b,MozTransition:b,OTransition:b,WebkitTransition:b,transition:b}},transform:function(b){return{msTransform:b,MozTransform:b,OTransform:b,WebkitTransform:b,transform:b}},absolute:function(b){var v=b&&b.split(" ");return{position:"absolute",top:v&&v[0],right:v&&v[1],bottom:v&&v[2],left:v&&v[3]}},extend:function(b,v){var h=v[b];return h||{extend:b}}},w=N.autoprefix=function(b){var v={};return(0,g.default)(b,function(h,d){var _={};(0,g.default)(h,function(p,S){var k=M[S];k?_=A({},_,k(p)):_[S]=p}),v[d]=_}),v};N.default=w},20427:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.active=void 0;var x=Object.assign||function(v){for(var h=1;h<arguments.length;h++){var d=arguments[h];for(var _ in d)Object.prototype.hasOwnProperty.call(d,_)&&(v[_]=d[_])}return v},g=o(67294),A=y(g);function y(v){return v&&v.__esModule?v:{default:v}}function M(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function w(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function m(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var b=N.active=function(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(_){m(p,_);function p(){var S,k,O,F;M(this,p);for(var D=arguments.length,Z=Array(D),W=0;W<D;W++)Z[W]=arguments[W];return F=(k=(O=w(this,(S=p.__proto__||Object.getPrototypeOf(p)).call.apply(S,[this].concat(Z))),O),O.state={active:!1},O.handleMouseDown=function(){return O.setState({active:!0})},O.handleMouseUp=function(){return O.setState({active:!1})},O.render=function(){return A.default.createElement(d,{onMouseDown:O.handleMouseDown,onMouseUp:O.handleMouseUp},A.default.createElement(h,x({},O.props,O.state)))},k),w(O,F)}return p}(A.default.Component)};N.default=b},97197:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.hover=void 0;var x=Object.assign||function(v){for(var h=1;h<arguments.length;h++){var d=arguments[h];for(var _ in d)Object.prototype.hasOwnProperty.call(d,_)&&(v[_]=d[_])}return v},g=o(67294),A=y(g);function y(v){return v&&v.__esModule?v:{default:v}}function M(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function w(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function m(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var b=N.hover=function(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(_){m(p,_);function p(){var S,k,O,F;M(this,p);for(var D=arguments.length,Z=Array(D),W=0;W<D;W++)Z[W]=arguments[W];return F=(k=(O=w(this,(S=p.__proto__||Object.getPrototypeOf(p)).call.apply(S,[this].concat(Z))),O),O.state={hover:!1},O.handleMouseOver=function(){return O.setState({hover:!0})},O.handleMouseOut=function(){return O.setState({hover:!1})},O.render=function(){return A.default.createElement(d,{onMouseOver:O.handleMouseOver,onMouseOut:O.handleMouseOut},A.default.createElement(h,x({},O.props,O.state)))},k),w(O,F)}return p}(A.default.Component)};N.default=b},67868:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.flattenNames=void 0;var x=o(47037),g=v(x),A=o(2525),y=v(A),M=o(68630),w=v(M),m=o(35161),b=v(m);function v(d){return d&&d.__esModule?d:{default:d}}var h=N.flattenNames=function d(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=[];return(0,b.default)(_,function(S){Array.isArray(S)?d(S).map(function(k){return p.push(k)}):(0,w.default)(S)?(0,y.default)(S,function(k,O){k===!0&&p.push(O),p.push(O+"-"+k)}):(0,g.default)(S)&&p.push(S)}),p};N.default=h},31147:function(oe,N,o){"use strict";var x;x={value:!0},x=x=x=x=x=void 0;var g=o(67868),A=S(g),y=o(41322),M=S(y),w=o(93065),m=S(w),b=o(97197),v=S(b),h=o(20427),d=S(h),_=o(30272),p=S(_);function S(O){return O&&O.__esModule?O:{default:O}}x=v.default,x=v.default,x=d.default,x=p.default;var k=x=function(F){for(var D=arguments.length,Z=Array(D>1?D-1:0),W=1;W<D;W++)Z[W-1]=arguments[W];var U=(0,A.default)(Z),L=(0,M.default)(F,U);return(0,m.default)(L)};N.ZP=k},30272:function(oe,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var o=function(g,A){var y={},M=function(m){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;y[m]=b};return g===0&&M("first-child"),g===A-1&&M("last-child"),(g===0||g%2==0)&&M("even"),Math.abs(g%2)===1&&M("odd"),M("nth-child",g),y};N.default=o},41322:function(oe,N,o){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.mergeClasses=void 0;var x=o(2525),g=w(x),A=o(50361),y=w(A),M=Object.assign||function(b){for(var v=1;v<arguments.length;v++){var h=arguments[v];for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(b[d]=h[d])}return b};function w(b){return b&&b.__esModule?b:{default:b}}var m=N.mergeClasses=function(v){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=v.default&&(0,y.default)(v.default)||{};return h.map(function(_){var p=v[_];return p&&(0,g.default)(p,function(S,k){d[k]||(d[k]={}),d[k]=M({},d[k],p[k])}),_}),d};N.default=m},66164:function(oe){(function(N,o){oe.exports=o()})(this,function(){"use strict";var N=function(ea){return ea instanceof Uint8Array||ea instanceof Uint16Array||ea instanceof Uint32Array||ea instanceof Int8Array||ea instanceof Int16Array||ea instanceof Int32Array||ea instanceof Float32Array||ea instanceof Float64Array||ea instanceof Uint8ClampedArray},o=function(ea,bi){for(var To=Object.keys(bi),_o=0;_o<To.length;++_o)ea[To[_o]]=bi[To[_o]];return ea},x=`
|
||
`;function g($r){return typeof atob!="undefined"?atob($r):"base64:"+$r}function A($r){var ea=new Error("(regl) "+$r);throw console.error(ea),ea}function y($r,ea){$r||A(ea)}function M($r){return $r?": "+$r:""}function w($r,ea,bi){$r in ea||A("unknown parameter ("+$r+")"+M(bi)+". possible values: "+Object.keys(ea).join())}function m($r,ea){N($r)||A("invalid parameter type"+M(ea)+". must be a typed array")}function b($r,ea){switch(ea){case"number":return typeof $r=="number";case"object":return typeof $r=="object";case"string":return typeof $r=="string";case"boolean":return typeof $r=="boolean";case"function":return typeof $r=="function";case"undefined":return typeof $r=="undefined";case"symbol":return typeof $r=="symbol"}}function v($r,ea,bi){b($r,ea)||A("invalid parameter type"+M(bi)+". expected "+ea+", got "+typeof $r)}function h($r,ea){$r>=0&&($r|0)===$r||A("invalid parameter type, ("+$r+")"+M(ea)+". must be a nonnegative integer")}function d($r,ea,bi){ea.indexOf($r)<0&&A("invalid value"+M(bi)+". must be one of: "+ea)}var _=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function p($r){Object.keys($r).forEach(function(ea){_.indexOf(ea)<0&&A('invalid regl constructor argument "'+ea+'". must be one of '+_)})}function S($r,ea){for($r=$r+"";$r.length<ea;)$r=" "+$r;return $r}function k(){this.name="unknown",this.lines=[],this.index={},this.hasErrors=!1}function O($r,ea){this.number=$r,this.line=ea,this.errors=[]}function F($r,ea,bi){this.file=$r,this.line=ea,this.message=bi}function D(){var $r=new Error,ea=($r.stack||$r).toString(),bi=/compileProcedure.*\n\s*at.*\((.*)\)/.exec(ea);if(bi)return bi[1];var To=/compileProcedure.*\n\s*at\s+(.*)(\n|$)/.exec(ea);return To?To[1]:"unknown"}function Z(){var $r=new Error,ea=($r.stack||$r).toString(),bi=/at REGLCommand.*\n\s+at.*\((.*)\)/.exec(ea);if(bi)return bi[1];var To=/at REGLCommand.*\n\s+at\s+(.*)\n/.exec(ea);return To?To[1]:"unknown"}function W($r,ea){var bi=$r.split(`
|
||
`),To=1,_o=0,Ss={unknown:new k,0:new k};Ss.unknown.name=Ss[0].name=ea||D(),Ss.unknown.lines.push(new O(0,""));for(var Qi=0;Qi<bi.length;++Qi){var Ns=bi[Qi],kl=/^\s*#\s*(\w+)\s+(.+)\s*$/.exec(Ns);if(kl)switch(kl[1]){case"line":var yl=/(\d+)(\s+\d+)?/.exec(kl[2]);yl&&(To=yl[1]|0,yl[2]&&(_o=yl[2]|0,_o in Ss||(Ss[_o]=new k)));break;case"define":var Tl=/SHADER_NAME(_B64)?\s+(.*)$/.exec(kl[2]);Tl&&(Ss[_o].name=Tl[1]?g(Tl[2]):Tl[2]);break}Ss[_o].lines.push(new O(To++,Ns))}return Object.keys(Ss).forEach(function(ll){var ac=Ss[ll];ac.lines.forEach(function(Xl){ac.index[Xl.number]=Xl})}),Ss}function U($r){var ea=[];return $r.split(`
|
||
`).forEach(function(bi){if(!(bi.length<5)){var To=/^ERROR:\s+(\d+):(\d+):\s*(.*)$/.exec(bi);To?ea.push(new F(To[1]|0,To[2]|0,To[3].trim())):bi.length>0&&ea.push(new F("unknown",0,bi))}}),ea}function L($r,ea){ea.forEach(function(bi){var To=$r[bi.file];if(To){var _o=To.index[bi.line];if(_o){_o.errors.push(bi),To.hasErrors=!0;return}}$r.unknown.hasErrors=!0,$r.unknown.lines[0].errors.push(bi)})}function V($r,ea,bi,To,_o){if(!$r.getShaderParameter(ea,$r.COMPILE_STATUS)){var Ss=$r.getShaderInfoLog(ea),Qi=To===$r.FRAGMENT_SHADER?"fragment":"vertex";Q(bi,"string",Qi+" shader source must be a string",_o);var Ns=W(bi,_o),kl=U(Ss);L(Ns,kl),Object.keys(Ns).forEach(function(yl){var Tl=Ns[yl];if(!Tl.hasErrors)return;var ll=[""],ac=[""];function Xl(Ol,es){ll.push(Ol),ac.push(es||"")}Xl("file number "+yl+": "+Tl.name+`
|
||
`,"color:red;text-decoration:underline;font-weight:bold"),Tl.lines.forEach(function(Ol){if(Ol.errors.length>0){Xl(S(Ol.number,4)+"| ","background-color:yellow; font-weight:bold"),Xl(Ol.line+x,"color:red; background-color:yellow; font-weight:bold");var es=0;Ol.errors.forEach(function(Go){var Yo=Go.message,Ec=/^\s*'(.*)'\s*:\s*(.*)$/.exec(Yo);if(Ec){var Ft=Ec[1];switch(Yo=Ec[2],Ft){case"assign":Ft="=";break}es=Math.max(Ol.line.indexOf(Ft,es),0)}else es=0;Xl(S("| ",6)),Xl(S("^^^",es+3)+x,"font-weight:bold"),Xl(S("| ",6)),Xl(Yo+x,"font-weight:bold")}),Xl(S("| ",6)+x)}else Xl(S(Ol.number,4)+"| "),Xl(Ol.line+x,"color:red")}),typeof document!="undefined"&&!window.chrome?(ac[0]=ll.join("%c"),console.log.apply(console,ac)):console.log(ll.join(""))}),y.raise("Error compiling "+Qi+" shader, "+Ns[0].name)}}function $($r,ea,bi,To,_o){if(!$r.getProgramParameter(ea,$r.LINK_STATUS)){var Ss=$r.getProgramInfoLog(ea),Qi=W(bi,_o),Ns=W(To,_o),kl='Error linking program with vertex shader, "'+Ns[0].name+'", and fragment shader "'+Qi[0].name+'"';typeof document!="undefined"?console.log("%c"+kl+x+"%c"+Ss,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(kl+x+Ss),y.raise(kl)}}function G($r){$r._commandRef=D()}function z($r,ea,bi,To){G($r);function _o(kl){return kl?To.id(kl):0}$r._fragId=_o($r.static.frag),$r._vertId=_o($r.static.vert);function Ss(kl,yl){Object.keys(yl).forEach(function(Tl){kl[To.id(Tl)]=!0})}var Qi=$r._uniformSet={};Ss(Qi,ea.static),Ss(Qi,ea.dynamic);var Ns=$r._attributeSet={};Ss(Ns,bi.static),Ss(Ns,bi.dynamic),$r._hasCount="count"in $r.static||"count"in $r.dynamic||"elements"in $r.static||"elements"in $r.dynamic}function K($r,ea){var bi=Z();A($r+" in command "+(ea||D())+(bi==="unknown"?"":" called from "+bi))}function re($r,ea,bi){$r||K(ea,bi||D())}function ne($r,ea,bi,To){$r in ea||K("unknown parameter ("+$r+")"+M(bi)+". possible values: "+Object.keys(ea).join(),To||D())}function Q($r,ea,bi,To){b($r,ea)||K("invalid parameter type"+M(bi)+". expected "+ea+", got "+typeof $r,To||D())}function ue($r){$r()}function he($r,ea,bi){$r.texture?d($r.texture._texture.internalformat,ea,"unsupported texture format for attachment"):d($r.renderbuffer._renderbuffer.format,bi,"unsupported renderbuffer format for attachment")}var Ee=33071,ce=9728,ve=9984,fe=9985,we=9986,me=9987,Pe=5120,pe=5121,Ie=5122,Je=5123,ke=5124,De=5125,Fe=5126,Qe=32819,qe=32820,et=33635,dt=34042,Ke=36193,Ge={};Ge[Pe]=Ge[pe]=1,Ge[Ie]=Ge[Je]=Ge[Ke]=Ge[et]=Ge[Qe]=Ge[qe]=2,Ge[ke]=Ge[De]=Ge[Fe]=Ge[dt]=4;function wt($r,ea){return $r===qe||$r===Qe||$r===et?2:$r===dt?4:Ge[$r]*ea}function Vt($r){return!($r&$r-1)&&!!$r}function gt($r,ea,bi){var To,_o=ea.width,Ss=ea.height,Qi=ea.channels;y(_o>0&&_o<=bi.maxTextureSize&&Ss>0&&Ss<=bi.maxTextureSize,"invalid texture shape"),($r.wrapS!==Ee||$r.wrapT!==Ee)&&y(Vt(_o)&&Vt(Ss),"incompatible wrap mode for texture, both width and height must be power of 2"),ea.mipmask===1?_o!==1&&Ss!==1&&y($r.minFilter!==ve&&$r.minFilter!==we&&$r.minFilter!==fe&&$r.minFilter!==me,"min filter requires mipmap"):(y(Vt(_o)&&Vt(Ss),"texture must be a square power of 2 to support mipmapping"),y(ea.mipmask===(_o<<1)-1,"missing or incomplete mipmap data")),ea.type===Fe&&(bi.extensions.indexOf("oes_texture_float_linear")<0&&y($r.minFilter===ce&&$r.magFilter===ce,"filter not supported, must enable oes_texture_float_linear"),y(!$r.genMipmaps,"mipmap generation not supported with float textures"));var Ns=ea.images;for(To=0;To<16;++To)if(Ns[To]){var kl=_o>>To,yl=Ss>>To;y(ea.mipmask&1<<To,"missing mipmap data");var Tl=Ns[To];if(y(Tl.width===kl&&Tl.height===yl,"invalid shape for mip images"),y(Tl.format===ea.format&&Tl.internalformat===ea.internalformat&&Tl.type===ea.type,"incompatible type for mip image"),!Tl.compressed)if(Tl.data){var ll=Math.ceil(wt(Tl.type,Qi)*kl/Tl.unpackAlignment)*Tl.unpackAlignment;y(Tl.data.byteLength===ll*yl,"invalid data for image, buffer size is inconsistent with image format")}else Tl.element||Tl.copy}else $r.genMipmaps||y((ea.mipmask&1<<To)==0,"extra mipmap data");ea.compressed&&y(!$r.genMipmaps,"mipmap generation for compressed images not supported")}function it($r,ea,bi,To){var _o=$r.width,Ss=$r.height,Qi=$r.channels;y(_o>0&&_o<=To.maxTextureSize&&Ss>0&&Ss<=To.maxTextureSize,"invalid texture shape"),y(_o===Ss,"cube map must be square"),y(ea.wrapS===Ee&&ea.wrapT===Ee,"wrap mode not supported by cube map");for(var Ns=0;Ns<bi.length;++Ns){var kl=bi[Ns];y(kl.width===_o&&kl.height===Ss,"inconsistent cube map face shape"),ea.genMipmaps&&(y(!kl.compressed,"can not generate mipmap for compressed textures"),y(kl.mipmask===1,"can not specify mipmaps and generate mipmaps"));for(var yl=kl.images,Tl=0;Tl<16;++Tl){var ll=yl[Tl];if(ll){var ac=_o>>Tl,Xl=Ss>>Tl;y(kl.mipmask&1<<Tl,"missing mipmap data"),y(ll.width===ac&&ll.height===Xl,"invalid shape for mip images"),y(ll.format===$r.format&&ll.internalformat===$r.internalformat&&ll.type===$r.type,"incompatible type for mip image"),ll.compressed||(ll.data?y(ll.data.byteLength===ac*Xl*Math.max(wt(ll.type,Qi),ll.unpackAlignment),"invalid data for image, buffer size is inconsistent with image format"):ll.element||ll.copy)}}}}var Le=o(y,{optional:ue,raise:A,commandRaise:K,command:re,parameter:w,commandParameter:ne,constructor:p,type:v,commandType:Q,isTypedArray:m,nni:h,oneOf:d,shaderError:V,linkError:$,callSite:Z,saveCommandRef:G,saveDrawInfo:z,framebufferFormat:he,guessCommand:D,texture2D:gt,textureCube:it}),ct=0,at=0,jt=5,St=6;function fn($r,ea){this.id=ct++,this.type=$r,this.data=ea}function Xt($r){return $r.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function Yt($r){if($r.length===0)return[];var ea=$r.charAt(0),bi=$r.charAt($r.length-1);if($r.length>1&&ea===bi&&(ea==='"'||ea==="'"))return['"'+Xt($r.substr(1,$r.length-2))+'"'];var To=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec($r);if(To)return Yt($r.substr(0,To.index)).concat(Yt(To[1])).concat(Yt($r.substr(To.index+To[0].length)));var _o=$r.split(".");if(_o.length===1)return['"'+Xt($r)+'"'];for(var Ss=[],Qi=0;Qi<_o.length;++Qi)Ss=Ss.concat(Yt(_o[Qi]));return Ss}function Rt($r){return"["+Yt($r).join("][")+"]"}function Lt($r,ea){return new fn($r,Rt(ea+""))}function ze($r){return typeof $r=="function"&&!$r._reglType||$r instanceof fn}function rt($r,ea){if(typeof $r=="function")return new fn(at,$r);if(typeof $r=="number"||typeof $r=="boolean")return new fn(jt,$r);if(Array.isArray($r))return new fn(St,$r.map(function(bi,To){return rt(bi,ea+"["+To+"]")}));if($r instanceof fn)return $r;Le(!1,"invalid option type in uniform "+ea)}var tt={DynamicVariable:fn,define:Lt,isDynamic:ze,unbox:rt,accessor:Rt},de={next:typeof requestAnimationFrame=="function"?function($r){return requestAnimationFrame($r)}:function($r){return setTimeout($r,16)},cancel:typeof cancelAnimationFrame=="function"?function($r){return cancelAnimationFrame($r)}:clearTimeout},ot=typeof performance!="undefined"&&performance.now?function(){return performance.now()}:function(){return+new Date};function Et(){var $r={"":0},ea=[""];return{id:function(To){var _o=$r[To];return _o||(_o=$r[To]=ea.length,ea.push(To),_o)},str:function(To){return ea[To]}}}function Ht($r,ea,bi){var To=document.createElement("canvas");o(To.style,{border:0,margin:0,padding:0,top:0,left:0}),$r.appendChild(To),$r===document.body&&(To.style.position="absolute",o($r.style,{margin:0,padding:0}));function _o(){var Ns=window.innerWidth,kl=window.innerHeight;if($r!==document.body){var yl=$r.getBoundingClientRect();Ns=yl.right-yl.left,kl=yl.bottom-yl.top}To.width=bi*Ns,To.height=bi*kl,o(To.style,{width:Ns+"px",height:kl+"px"})}var Ss;$r!==document.body&&typeof ResizeObserver=="function"?(Ss=new ResizeObserver(function(){setTimeout(_o)}),Ss.observe($r)):window.addEventListener("resize",_o,!1);function Qi(){Ss?Ss.disconnect():window.removeEventListener("resize",_o),$r.removeChild(To)}return _o(),{canvas:To,onDestroy:Qi}}function Jt($r,ea){function bi(To){try{return $r.getContext(To,ea)}catch(_o){return null}}return bi("webgl")||bi("experimental-webgl")||bi("webgl-experimental")}function Qt($r){return typeof $r.nodeName=="string"&&typeof $r.appendChild=="function"&&typeof $r.getBoundingClientRect=="function"}function an($r){return typeof $r.drawArrays=="function"||typeof $r.drawElements=="function"}function Un($r){return typeof $r=="string"?$r.split():(Le(Array.isArray($r),"invalid extension array"),$r)}function qt($r){return typeof $r=="string"?(Le(typeof document!="undefined","not supported outside of DOM"),document.querySelector($r)):$r}function rn($r){var ea=$r||{},bi,To,_o,Ss,Qi={},Ns=[],kl=[],yl=typeof window=="undefined"?1:window.devicePixelRatio,Tl=!1,ll=function(es){es&&Le.raise(es)},ac=function(){};if(typeof ea=="string"?(Le(typeof document!="undefined","selector queries only supported in DOM enviroments"),bi=document.querySelector(ea),Le(bi,"invalid query string for element")):typeof ea=="object"?Qt(ea)?bi=ea:an(ea)?(Ss=ea,_o=Ss.canvas):(Le.constructor(ea),"gl"in ea?Ss=ea.gl:"canvas"in ea?_o=qt(ea.canvas):"container"in ea&&(To=qt(ea.container)),"attributes"in ea&&(Qi=ea.attributes,Le.type(Qi,"object","invalid context attributes")),"extensions"in ea&&(Ns=Un(ea.extensions)),"optionalExtensions"in ea&&(kl=Un(ea.optionalExtensions)),"onDone"in ea&&(Le.type(ea.onDone,"function","invalid or missing onDone callback"),ll=ea.onDone),"profile"in ea&&(Tl=!!ea.profile),"pixelRatio"in ea&&(yl=+ea.pixelRatio,Le(yl>0,"invalid pixel ratio"))):Le.raise("invalid arguments to regl"),bi&&(bi.nodeName.toLowerCase()==="canvas"?_o=bi:To=bi),!Ss){if(!_o){Le(typeof document!="undefined","must manually specify webgl context outside of DOM environments");var Xl=Ht(To||document.body,ll,yl);if(!Xl)return null;_o=Xl.canvas,ac=Xl.onDestroy}Qi.premultipliedAlpha===void 0&&(Qi.premultipliedAlpha=!0),Ss=Jt(_o,Qi)}return Ss?{gl:Ss,canvas:_o,container:To,extensions:Ns,optionalExtensions:kl,pixelRatio:yl,profile:Tl,onDone:ll,onDestroy:ac}:(ac(),ll("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function cn($r,ea){var bi={};function To(Qi){Le.type(Qi,"string","extension name must be string");var Ns=Qi.toLowerCase(),kl;try{kl=bi[Ns]=$r.getExtension(Ns)}catch(yl){}return!!kl}for(var _o=0;_o<ea.extensions.length;++_o){var Ss=ea.extensions[_o];if(!To(Ss))return ea.onDestroy(),ea.onDone('"'+Ss+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return ea.optionalExtensions.forEach(To),{extensions:bi,restore:function(){Object.keys(bi).forEach(function(Ns){if(bi[Ns]&&!To(Ns))throw new Error("(regl): error restoring extension "+Ns)})}}}function er($r,ea){for(var bi=Array($r),To=0;To<$r;++To)bi[To]=ea(To);return bi}var rr=5120,nt=5121,lr=5122,Hn=5123,ut=5124,bt=5125,We=5126;function be($r){for(var ea=16;ea<=1<<28;ea*=16)if($r<=ea)return ea;return 0}function Ae($r){var ea,bi;return ea=($r>65535)<<4,$r>>>=ea,bi=($r>255)<<3,$r>>>=bi,ea|=bi,bi=($r>15)<<2,$r>>>=bi,ea|=bi,bi=($r>3)<<1,$r>>>=bi,ea|=bi,ea|$r>>1}function Ue(){var $r=er(8,function(){return[]});function ea(Ss){var Qi=be(Ss),Ns=$r[Ae(Qi)>>2];return Ns.length>0?Ns.pop():new ArrayBuffer(Qi)}function bi(Ss){$r[Ae(Ss.byteLength)>>2].push(Ss)}function To(Ss,Qi){var Ns=null;switch(Ss){case rr:Ns=new Int8Array(ea(Qi),0,Qi);break;case nt:Ns=new Uint8Array(ea(Qi),0,Qi);break;case lr:Ns=new Int16Array(ea(2*Qi),0,Qi);break;case Hn:Ns=new Uint16Array(ea(2*Qi),0,Qi);break;case ut:Ns=new Int32Array(ea(4*Qi),0,Qi);break;case bt:Ns=new Uint32Array(ea(4*Qi),0,Qi);break;case We:Ns=new Float32Array(ea(4*Qi),0,Qi);break;default:return null}return Ns.length!==Qi?Ns.subarray(0,Qi):Ns}function _o(Ss){bi(Ss.buffer)}return{alloc:ea,free:bi,allocType:To,freeType:_o}}var $e=Ue();$e.zero=Ue();var kt=3408,lt=3410,vt=3411,Ct=3412,Bt=3413,mt=3414,Zt=3415,zt=33901,ln=33902,An=3379,En=3386,Gn=34921,Bn=36347,pr=36348,_r=35661,na=35660,$n=34930,qr=36349,Jr=34076,Aa=34024,ya=7936,$t=7937,wn=7938,Fn=35724,Or=34047,vr=36063,Ur=34852,Zr=3553,Kr=34067,ba=34069,Ri=33984,Ea=6408,Pi=5126,rs=5121,Ui=36160,Cn=36053,Kn=36064,Pn=16384,At=function(ea,bi){var To=1;bi.ext_texture_filter_anisotropic&&(To=ea.getParameter(Or));var _o=1,Ss=1;bi.webgl_draw_buffers&&(_o=ea.getParameter(Ur),Ss=ea.getParameter(vr));var Qi=!!bi.oes_texture_float;if(Qi){var Ns=ea.createTexture();ea.bindTexture(Zr,Ns),ea.texImage2D(Zr,0,Ea,1,1,0,Ea,Pi,null);var kl=ea.createFramebuffer();if(ea.bindFramebuffer(Ui,kl),ea.framebufferTexture2D(Ui,Kn,Zr,Ns,0),ea.bindTexture(Zr,null),ea.checkFramebufferStatus(Ui)!==Cn)Qi=!1;else{ea.viewport(0,0,1,1),ea.clearColor(1,0,0,1),ea.clear(Pn);var yl=$e.allocType(Pi,4);ea.readPixels(0,0,1,1,Ea,Pi,yl),ea.getError()?Qi=!1:(ea.deleteFramebuffer(kl),ea.deleteTexture(Ns),Qi=yl[0]===1),$e.freeType(yl)}}var Tl=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),ll=!0;if(!Tl){var ac=ea.createTexture(),Xl=$e.allocType(rs,36);ea.activeTexture(Ri),ea.bindTexture(Kr,ac),ea.texImage2D(ba,0,Ea,3,3,0,Ea,rs,Xl),$e.freeType(Xl),ea.bindTexture(Kr,null),ea.deleteTexture(ac),ll=!ea.getError()}return{colorBits:[ea.getParameter(lt),ea.getParameter(vt),ea.getParameter(Ct),ea.getParameter(Bt)],depthBits:ea.getParameter(mt),stencilBits:ea.getParameter(Zt),subpixelBits:ea.getParameter(kt),extensions:Object.keys(bi).filter(function(Ol){return!!bi[Ol]}),maxAnisotropic:To,maxDrawbuffers:_o,maxColorAttachments:Ss,pointSizeDims:ea.getParameter(zt),lineWidthDims:ea.getParameter(ln),maxViewportDims:ea.getParameter(En),maxCombinedTextureUnits:ea.getParameter(_r),maxCubeMapSize:ea.getParameter(Jr),maxRenderbufferSize:ea.getParameter(Aa),maxTextureUnits:ea.getParameter($n),maxTextureSize:ea.getParameter(An),maxAttributes:ea.getParameter(Gn),maxVertexUniforms:ea.getParameter(Bn),maxVertexTextureUnits:ea.getParameter(na),maxVaryingVectors:ea.getParameter(pr),maxFragmentUniforms:ea.getParameter(qr),glsl:ea.getParameter(Fn),renderer:ea.getParameter($t),vendor:ea.getParameter(ya),version:ea.getParameter(wn),readFloat:Qi,npotTextureCube:ll}};function ar($r){return!!$r&&typeof $r=="object"&&Array.isArray($r.shape)&&Array.isArray($r.stride)&&typeof $r.offset=="number"&&$r.shape.length===$r.stride.length&&(Array.isArray($r.data)||N($r.data))}var ta=function(ea){return Object.keys(ea).map(function(bi){return ea[bi]})},Yn={shape:La,flatten:$i};function Qa($r,ea,bi){for(var To=0;To<ea;++To)bi[To]=$r[To]}function Ua($r,ea,bi,To){for(var _o=0,Ss=0;Ss<ea;++Ss)for(var Qi=$r[Ss],Ns=0;Ns<bi;++Ns)To[_o++]=Qi[Ns]}function Fi($r,ea,bi,To,_o,Ss){for(var Qi=Ss,Ns=0;Ns<ea;++Ns)for(var kl=$r[Ns],yl=0;yl<bi;++yl)for(var Tl=kl[yl],ll=0;ll<To;++ll)_o[Qi++]=Tl[ll]}function Xa($r,ea,bi,To,_o){for(var Ss=1,Qi=bi+1;Qi<ea.length;++Qi)Ss*=ea[Qi];var Ns=ea[bi];if(ea.length-bi==4){var kl=ea[bi+1],yl=ea[bi+2],Tl=ea[bi+3];for(Qi=0;Qi<Ns;++Qi)Fi($r[Qi],kl,yl,Tl,To,_o),_o+=Ss}else for(Qi=0;Qi<Ns;++Qi)Xa($r[Qi],ea,bi+1,To,_o),_o+=Ss}function $i($r,ea,bi,To){var _o=1;if(ea.length)for(var Ss=0;Ss<ea.length;++Ss)_o*=ea[Ss];else _o=0;var Qi=To||$e.allocType(bi,_o);switch(ea.length){case 0:break;case 1:Qa($r,ea[0],Qi);break;case 2:Ua($r,ea[0],ea[1],Qi);break;case 3:Fi($r,ea[0],ea[1],ea[2],Qi,0);break;default:Xa($r,ea,0,Qi,0)}return Qi}function La($r){for(var ea=[],bi=$r;bi.length;bi=bi[0])ea.push(bi.length);return ea}var ja={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},ei=5120,Do=5122,yo=5124,to=5121,fs=5123,cs=5125,Os=5126,vl=5126,Ar={int8:ei,int16:Do,int32:yo,uint8:to,uint16:fs,uint32:cs,float:Os,float32:vl},Rn=35048,Sr=35040,nn={dynamic:Rn,stream:Sr,static:35044},sn=Yn.flatten,Ot=Yn.shape,gr=35044,Gr=35040,Ln=5121,Tr=5126,Dn=[];Dn[5120]=1,Dn[5122]=2,Dn[5124]=4,Dn[5121]=1,Dn[5123]=2,Dn[5125]=4,Dn[5126]=4;function Pr($r){return ja[Object.prototype.toString.call($r)]|0}function fa($r,ea){for(var bi=0;bi<ea.length;++bi)$r[bi]=ea[bi]}function ka($r,ea,bi,To,_o,Ss,Qi){for(var Ns=0,kl=0;kl<bi;++kl)for(var yl=0;yl<To;++yl)$r[Ns++]=ea[_o*kl+Ss*yl+Qi]}function Li($r,ea,bi,To){var _o=0,Ss={};function Qi(es){this.id=_o++,this.buffer=$r.createBuffer(),this.type=es,this.usage=gr,this.byteLength=0,this.dimension=1,this.dtype=Ln,this.persistentData=null,bi.profile&&(this.stats={size:0})}Qi.prototype.bind=function(){$r.bindBuffer(this.type,this.buffer)},Qi.prototype.destroy=function(){ac(this)};var Ns=[];function kl(es,Go){var Yo=Ns.pop();return Yo||(Yo=new Qi(es)),Yo.bind(),ll(Yo,Go,Gr,0,1,!1),Yo}function yl(es){Ns.push(es)}function Tl(es,Go,Yo){es.byteLength=Go.byteLength,$r.bufferData(es.type,Go,Yo)}function ll(es,Go,Yo,Ec,Ft,je){var yt;if(es.usage=Yo,Array.isArray(Go)){if(es.dtype=Ec||Tr,Go.length>0){var It;if(Array.isArray(Go[0])){yt=Ot(Go);for(var Sn=1,In=1;In<yt.length;++In)Sn*=yt[In];es.dimension=Sn,It=sn(Go,yt,es.dtype),Tl(es,It,Yo),je?es.persistentData=It:$e.freeType(It)}else if(typeof Go[0]=="number"){es.dimension=Ft;var mr=$e.allocType(es.dtype,Go.length);fa(mr,Go),Tl(es,mr,Yo),je?es.persistentData=mr:$e.freeType(mr)}else N(Go[0])?(es.dimension=Go[0].length,es.dtype=Ec||Pr(Go[0])||Tr,It=sn(Go,[Go.length,Go[0].length],es.dtype),Tl(es,It,Yo),je?es.persistentData=It:$e.freeType(It)):Le.raise("invalid buffer data")}}else if(N(Go))es.dtype=Ec||Pr(Go),es.dimension=Ft,Tl(es,Go,Yo),je&&(es.persistentData=new Uint8Array(new Uint8Array(Go.buffer)));else if(ar(Go)){yt=Go.shape;var Wr=Go.stride,Ir=Go.offset,Br=0,xa=0,vi=0,Ai=0;yt.length===1?(Br=yt[0],xa=1,vi=Wr[0],Ai=0):yt.length===2?(Br=yt[0],xa=yt[1],vi=Wr[0],Ai=Wr[1]):Le.raise("invalid shape"),es.dtype=Ec||Pr(Go.data)||Tr,es.dimension=xa;var Yi=$e.allocType(es.dtype,Br*xa);ka(Yi,Go.data,Br,xa,vi,Ai,Ir),Tl(es,Yi,Yo),je?es.persistentData=Yi:$e.freeType(Yi)}else Go instanceof ArrayBuffer?(es.dtype=Ln,es.dimension=Ft,Tl(es,Go,Yo),je&&(es.persistentData=new Uint8Array(new Uint8Array(Go)))):Le.raise("invalid buffer data")}function ac(es){ea.bufferCount--,To(es);var Go=es.buffer;Le(Go,"buffer must not be deleted already"),$r.deleteBuffer(Go),es.buffer=null,delete Ss[es.id]}function Xl(es,Go,Yo,Ec){ea.bufferCount++;var Ft=new Qi(Go);Ss[Ft.id]=Ft;function je(Sn){var In=gr,mr=null,Wr=0,Ir=0,Br=1;return Array.isArray(Sn)||N(Sn)||ar(Sn)||Sn instanceof ArrayBuffer?mr=Sn:typeof Sn=="number"?Wr=Sn|0:Sn&&(Le.type(Sn,"object","buffer arguments must be an object, a number or an array"),"data"in Sn&&(Le(mr===null||Array.isArray(mr)||N(mr)||ar(mr),"invalid data for buffer"),mr=Sn.data),"usage"in Sn&&(Le.parameter(Sn.usage,nn,"invalid buffer usage"),In=nn[Sn.usage]),"type"in Sn&&(Le.parameter(Sn.type,Ar,"invalid buffer type"),Ir=Ar[Sn.type]),"dimension"in Sn&&(Le.type(Sn.dimension,"number","invalid dimension"),Br=Sn.dimension|0),"length"in Sn&&(Le.nni(Wr,"buffer length must be a nonnegative integer"),Wr=Sn.length|0)),Ft.bind(),mr?ll(Ft,mr,In,Ir,Br,Ec):(Wr&&$r.bufferData(Ft.type,Wr,In),Ft.dtype=Ir||Ln,Ft.usage=In,Ft.dimension=Br,Ft.byteLength=Wr),bi.profile&&(Ft.stats.size=Ft.byteLength*Dn[Ft.dtype]),je}function yt(Sn,In){Le(In+Sn.byteLength<=Ft.byteLength,"invalid buffer subdata call, buffer is too small. Can't write data of size "+Sn.byteLength+" starting from offset "+In+" to a buffer of size "+Ft.byteLength),$r.bufferSubData(Ft.type,In,Sn)}function It(Sn,In){var mr=(In||0)|0,Wr;if(Ft.bind(),N(Sn)||Sn instanceof ArrayBuffer)yt(Sn,mr);else if(Array.isArray(Sn)){if(Sn.length>0)if(typeof Sn[0]=="number"){var Ir=$e.allocType(Ft.dtype,Sn.length);fa(Ir,Sn),yt(Ir,mr),$e.freeType(Ir)}else if(Array.isArray(Sn[0])||N(Sn[0])){Wr=Ot(Sn);var Br=sn(Sn,Wr,Ft.dtype);yt(Br,mr),$e.freeType(Br)}else Le.raise("invalid buffer data")}else if(ar(Sn)){Wr=Sn.shape;var xa=Sn.stride,vi=0,Ai=0,Yi=0,Wo=0;Wr.length===1?(vi=Wr[0],Ai=1,Yi=xa[0],Wo=0):Wr.length===2?(vi=Wr[0],Ai=Wr[1],Yi=xa[0],Wo=xa[1]):Le.raise("invalid shape");var _s=Array.isArray(Sn.data)?Ft.dtype:Pr(Sn.data),ys=$e.allocType(_s,vi*Ai);ka(ys,Sn.data,vi,Ai,Yi,Wo,Sn.offset),yt(ys,mr),$e.freeType(ys)}else Le.raise("invalid data for buffer subdata");return je}return Yo||je(es),je._reglType="buffer",je._buffer=Ft,je.subdata=It,bi.profile&&(je.stats=Ft.stats),je.destroy=function(){ac(Ft)},je}function Ol(){ta(Ss).forEach(function(es){es.buffer=$r.createBuffer(),$r.bindBuffer(es.type,es.buffer),$r.bufferData(es.type,es.persistentData||es.byteLength,es.usage)})}return bi.profile&&(ea.getTotalBufferSize=function(){var es=0;return Object.keys(Ss).forEach(function(Go){es+=Ss[Go].stats.size}),es}),{create:Xl,createStream:kl,destroyStream:yl,clear:function(){ta(Ss).forEach(ac),Ns.forEach(ac)},getBuffer:function(Go){return Go&&Go._buffer instanceof Qi?Go._buffer:null},restore:Ol,_initBuffer:ll}}var zi=0,Mo=0,Za=1,ao=1,Mi=4,Eo=4,Xi={points:zi,point:Mo,lines:Za,line:ao,triangles:Mi,triangle:Eo,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Bo=0,ol=1,Il=4,ms=5120,mc=5121,Ys=5122,hl=5123,Rs=5124,xl=5125,Wl=34963,_l=35040,Ls=35044;function zn($r,ea,bi,To){var _o={},Ss=0,Qi={uint8:mc,uint16:hl};ea.oes_element_index_uint&&(Qi.uint32=xl);function Ns(Ol){this.id=Ss++,_o[this.id]=this,this.buffer=Ol,this.primType=Il,this.vertCount=0,this.type=0}Ns.prototype.bind=function(){this.buffer.bind()};var kl=[];function yl(Ol){var es=kl.pop();return es||(es=new Ns(bi.create(null,Wl,!0,!1)._buffer)),ll(es,Ol,_l,-1,-1,0,0),es}function Tl(Ol){kl.push(Ol)}function ll(Ol,es,Go,Yo,Ec,Ft,je){Ol.buffer.bind();var yt;if(es){var It=je;!je&&(!N(es)||ar(es)&&!N(es.data))&&(It=ea.oes_element_index_uint?xl:hl),bi._initBuffer(Ol.buffer,es,Go,It,3)}else $r.bufferData(Wl,Ft,Go),Ol.buffer.dtype=yt||mc,Ol.buffer.usage=Go,Ol.buffer.dimension=3,Ol.buffer.byteLength=Ft;if(yt=je,!je){switch(Ol.buffer.dtype){case mc:case ms:yt=mc;break;case hl:case Ys:yt=hl;break;case xl:case Rs:yt=xl;break;default:Le.raise("unsupported type for element array")}Ol.buffer.dtype=yt}Ol.type=yt,Le(yt!==xl||!!ea.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var Sn=Ec;Sn<0&&(Sn=Ol.buffer.byteLength,yt===hl?Sn>>=1:yt===xl&&(Sn>>=2)),Ol.vertCount=Sn;var In=Yo;if(Yo<0){In=Il;var mr=Ol.buffer.dimension;mr===1&&(In=Bo),mr===2&&(In=ol),mr===3&&(In=Il)}Ol.primType=In}function ac(Ol){To.elementsCount--,Le(Ol.buffer!==null,"must not double destroy elements"),delete _o[Ol.id],Ol.buffer.destroy(),Ol.buffer=null}function Xl(Ol,es){var Go=bi.create(null,Wl,!0),Yo=new Ns(Go._buffer);To.elementsCount++;function Ec(Ft){if(!Ft)Go(),Yo.primType=Il,Yo.vertCount=0,Yo.type=mc;else if(typeof Ft=="number")Go(Ft),Yo.primType=Il,Yo.vertCount=Ft|0,Yo.type=mc;else{var je=null,yt=Ls,It=-1,Sn=-1,In=0,mr=0;Array.isArray(Ft)||N(Ft)||ar(Ft)?je=Ft:(Le.type(Ft,"object","invalid arguments for elements"),"data"in Ft&&(je=Ft.data,Le(Array.isArray(je)||N(je)||ar(je),"invalid data for element buffer")),"usage"in Ft&&(Le.parameter(Ft.usage,nn,"invalid element buffer usage"),yt=nn[Ft.usage]),"primitive"in Ft&&(Le.parameter(Ft.primitive,Xi,"invalid element buffer primitive"),It=Xi[Ft.primitive]),"count"in Ft&&(Le(typeof Ft.count=="number"&&Ft.count>=0,"invalid vertex count for elements"),Sn=Ft.count|0),"type"in Ft&&(Le.parameter(Ft.type,Qi,"invalid buffer type"),mr=Qi[Ft.type]),"length"in Ft?In=Ft.length|0:(In=Sn,mr===hl||mr===Ys?In*=2:(mr===xl||mr===Rs)&&(In*=4))),ll(Yo,je,yt,It,Sn,In,mr)}return Ec}return Ec(Ol),Ec._reglType="elements",Ec._elements=Yo,Ec.subdata=function(Ft,je){return Go.subdata(Ft,je),Ec},Ec.destroy=function(){ac(Yo)},Ec}return{create:Xl,createStream:yl,destroyStream:Tl,getElements:function(es){return typeof es=="function"&&es._elements instanceof Ns?es._elements:null},clear:function(){ta(_o).forEach(ac)}}}var Dr=new Float32Array(1),Hr=new Uint32Array(Dr.buffer),_a=5123;function Ti($r){for(var ea=$e.allocType(_a,$r.length),bi=0;bi<$r.length;++bi)if(isNaN($r[bi]))ea[bi]=65535;else if($r[bi]===Infinity)ea[bi]=31744;else if($r[bi]===-Infinity)ea[bi]=64512;else{Dr[0]=$r[bi];var To=Hr[0],_o=To>>>31<<15,Ss=(To<<1>>>24)-127,Qi=To>>13&(1<<10)-1;if(Ss<-24)ea[bi]=_o;else if(Ss<-14){var Ns=-14-Ss;ea[bi]=_o+(Qi+(1<<10)>>Ns)}else Ss>15?ea[bi]=_o+31744:ea[bi]=_o+(Ss+15<<10)+Qi}return ea}function Ci($r){return Array.isArray($r)||N($r)}var da=function(ea){return!(ea&ea-1)&&!!ea},Da=34467,mi=3553,Ho=34067,al=34069,ml=6408,Xs=6406,Ps=6407,dl=6409,ql=6410,Dc=32854,Jl=32855,oc=36194,xu=32819,yf=32820,ku=33635,Zc=34042,Zu=6402,Fc=34041,Hc=35904,Vu=35906,ws=36193,fc=33776,Tc=33777,jc=33778,lu=33779,hu=35986,of=35987,uu=34798,zu=35840,cf=35841,bf=35842,Cu=35843,rf=36196,Bu=5121,Tf=5123,ed=5125,Fd=5126,Pd=10242,Nc=10243,eu=10497,If=33071,$f=33648,Te=10240,_t=10241,Vn=9728,br=9729,tn=9984,Pt=9985,on=9986,_n=9987,ir=33170,xr=4352,aa=4353,oi=4354,ni=34046,yi=3317,Zo=37440,is=37441,mo=37443,Ml=37444,yc=33984,oa=[tn,on,Pt,_n],sl=[0,dl,ql,Ps,ml],fl={};fl[dl]=fl[Xs]=fl[Zu]=1,fl[Fc]=fl[ql]=2,fl[Ps]=fl[Hc]=3,fl[ml]=fl[Vu]=4;function bc($r){return"[object "+$r+"]"}var Rf=bc("HTMLCanvasElement"),Ms=bc("OffscreenCanvas"),ff=bc("CanvasRenderingContext2D"),Df=bc("ImageBitmap"),Ff=bc("HTMLImageElement"),Kf=bc("HTMLVideoElement"),xf=Object.keys(ja).concat([Rf,Ms,ff,Df,Ff,Kf]),Sc=[];Sc[Bu]=1,Sc[Fd]=4,Sc[ws]=2,Sc[Tf]=2,Sc[ed]=4;var Wu=[];Wu[Dc]=2,Wu[Jl]=2,Wu[oc]=2,Wu[Fc]=4,Wu[fc]=.5,Wu[Tc]=.5,Wu[jc]=1,Wu[lu]=1,Wu[hu]=.5,Wu[of]=1,Wu[uu]=1,Wu[zu]=.5,Wu[cf]=.25,Wu[bf]=.5,Wu[Cu]=.25,Wu[rf]=.5;function Du($r){return Array.isArray($r)&&($r.length===0||typeof $r[0]=="number")}function Gd($r){if(!Array.isArray($r))return!1;var ea=$r.length;return!(ea===0||!Ci($r[0]))}function gf($r){return Object.prototype.toString.call($r)}function Vp($r){return gf($r)===Rf}function $c($r){return gf($r)===Ms}function Yl($r){return gf($r)===ff}function Sp($r){return gf($r)===Df}function tp($r){return gf($r)===Ff}function Rp($r){return gf($r)===Kf}function df($r){if(!$r)return!1;var ea=gf($r);return xf.indexOf(ea)>=0?!0:Du($r)||Gd($r)||ar($r)}function uf($r){return ja[Object.prototype.toString.call($r)]|0}function Af($r,ea){var bi=ea.length;switch($r.type){case Bu:case Tf:case ed:case Fd:var To=$e.allocType($r.type,bi);To.set(ea),$r.data=To;break;case ws:$r.data=Ti(ea);break;default:Le.raise("unsupported texture type, must specify a typed array")}}function Wn($r,ea){return $e.allocType($r.type===ws?Fd:$r.type,ea)}function ca($r,ea){$r.type===ws?($r.data=Ti(ea),$e.freeType(ea)):$r.data=ea}function ra($r,ea,bi,To,_o,Ss){for(var Qi=$r.width,Ns=$r.height,kl=$r.channels,yl=Qi*Ns*kl,Tl=Wn($r,yl),ll=0,ac=0;ac<Ns;++ac)for(var Xl=0;Xl<Qi;++Xl)for(var Ol=0;Ol<kl;++Ol)Tl[ll++]=ea[bi*Xl+To*ac+_o*Ol+Ss];ca($r,Tl)}function Na($r,ea,bi,To,_o,Ss){var Qi;if(typeof Wu[$r]!="undefined"?Qi=Wu[$r]:Qi=fl[$r]*Sc[ea],Ss&&(Qi*=6),_o){for(var Ns=0,kl=bi;kl>=1;)Ns+=Qi*kl*kl,kl/=2;return Ns}else return Qi*bi*To}function fi($r,ea,bi,To,_o,Ss,Qi){var Ns={"don't care":xr,"dont care":xr,nice:oi,fast:aa},kl={repeat:eu,clamp:If,mirror:$f},yl={nearest:Vn,linear:br},Tl=o({mipmap:_n,"nearest mipmap nearest":tn,"linear mipmap nearest":Pt,"nearest mipmap linear":on,"linear mipmap linear":_n},yl),ll={none:0,browser:Ml},ac={uint8:Bu,rgba4:xu,rgb565:ku,"rgb5 a1":yf},Xl={alpha:Xs,luminance:dl,"luminance alpha":ql,rgb:Ps,rgba:ml,rgba4:Dc,"rgb5 a1":Jl,rgb565:oc},Ol={};ea.ext_srgb&&(Xl.srgb=Hc,Xl.srgba=Vu),ea.oes_texture_float&&(ac.float32=ac.float=Fd),ea.oes_texture_half_float&&(ac.float16=ac["half float"]=ws),ea.webgl_depth_texture&&(o(Xl,{depth:Zu,"depth stencil":Fc}),o(ac,{uint16:Tf,uint32:ed,"depth stencil":Zc})),ea.webgl_compressed_texture_s3tc&&o(Ol,{"rgb s3tc dxt1":fc,"rgba s3tc dxt1":Tc,"rgba s3tc dxt3":jc,"rgba s3tc dxt5":lu}),ea.webgl_compressed_texture_atc&&o(Ol,{"rgb atc":hu,"rgba atc explicit alpha":of,"rgba atc interpolated alpha":uu}),ea.webgl_compressed_texture_pvrtc&&o(Ol,{"rgb pvrtc 4bppv1":zu,"rgb pvrtc 2bppv1":cf,"rgba pvrtc 4bppv1":bf,"rgba pvrtc 2bppv1":Cu}),ea.webgl_compressed_texture_etc1&&(Ol["rgb etc1"]=rf);var es=Array.prototype.slice.call($r.getParameter(Da));Object.keys(Ol).forEach(function(wi){var ps=Ol[wi];es.indexOf(ps)>=0&&(Xl[wi]=ps)});var Go=Object.keys(Xl);bi.textureFormats=Go;var Yo=[];Object.keys(Xl).forEach(function(wi){var ps=Xl[wi];Yo[ps]=wi});var Ec=[];Object.keys(ac).forEach(function(wi){var ps=ac[wi];Ec[ps]=wi});var Ft=[];Object.keys(yl).forEach(function(wi){var ps=yl[wi];Ft[ps]=wi});var je=[];Object.keys(Tl).forEach(function(wi){var ps=Tl[wi];je[ps]=wi});var yt=[];Object.keys(kl).forEach(function(wi){var ps=kl[wi];yt[ps]=wi});var It=Go.reduce(function(wi,ps){var qo=Xl[ps];return qo===dl||qo===Xs||qo===dl||qo===ql||qo===Zu||qo===Fc||ea.ext_srgb&&(qo===Hc||qo===Vu)?wi[qo]=qo:qo===Jl||ps.indexOf("rgba")>=0?wi[qo]=ml:wi[qo]=Ps,wi},{});function Sn(){this.internalformat=ml,this.format=ml,this.type=Bu,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Ml,this.width=0,this.height=0,this.channels=0}function In(wi,ps){wi.internalformat=ps.internalformat,wi.format=ps.format,wi.type=ps.type,wi.compressed=ps.compressed,wi.premultiplyAlpha=ps.premultiplyAlpha,wi.flipY=ps.flipY,wi.unpackAlignment=ps.unpackAlignment,wi.colorSpace=ps.colorSpace,wi.width=ps.width,wi.height=ps.height,wi.channels=ps.channels}function mr(wi,ps){if(!(typeof ps!="object"||!ps)){if("premultiplyAlpha"in ps&&(Le.type(ps.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),wi.premultiplyAlpha=ps.premultiplyAlpha),"flipY"in ps&&(Le.type(ps.flipY,"boolean","invalid texture flip"),wi.flipY=ps.flipY),"alignment"in ps&&(Le.oneOf(ps.alignment,[1,2,4,8],"invalid texture unpack alignment"),wi.unpackAlignment=ps.alignment),"colorSpace"in ps&&(Le.parameter(ps.colorSpace,ll,"invalid colorSpace"),wi.colorSpace=ll[ps.colorSpace]),"type"in ps){var qo=ps.type;Le(ea.oes_texture_float||!(qo==="float"||qo==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),Le(ea.oes_texture_half_float||!(qo==="half float"||qo==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),Le(ea.webgl_depth_texture||!(qo==="uint16"||qo==="uint32"||qo==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),Le.parameter(qo,ac,"invalid texture type"),wi.type=ac[qo]}var zc=wi.width,od=wi.height,ri=wi.channels,Ta=!1;"shape"in ps?(Le(Array.isArray(ps.shape)&&ps.shape.length>=2,"shape must be an array"),zc=ps.shape[0],od=ps.shape[1],ps.shape.length===3&&(ri=ps.shape[2],Le(ri>0&&ri<=4,"invalid number of channels"),Ta=!0),Le(zc>=0&&zc<=bi.maxTextureSize,"invalid width"),Le(od>=0&&od<=bi.maxTextureSize,"invalid height")):("radius"in ps&&(zc=od=ps.radius,Le(zc>=0&&zc<=bi.maxTextureSize,"invalid radius")),"width"in ps&&(zc=ps.width,Le(zc>=0&&zc<=bi.maxTextureSize,"invalid width")),"height"in ps&&(od=ps.height,Le(od>=0&&od<=bi.maxTextureSize,"invalid height")),"channels"in ps&&(ri=ps.channels,Le(ri>0&&ri<=4,"invalid number of channels"),Ta=!0)),wi.width=zc|0,wi.height=od|0,wi.channels=ri|0;var eo=!1;if("format"in ps){var Po=ps.format;Le(ea.webgl_depth_texture||!(Po==="depth"||Po==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),Le.parameter(Po,Xl,"invalid texture format");var qi=wi.internalformat=Xl[Po];wi.format=It[qi],Po in ac&&("type"in ps||(wi.type=ac[Po])),Po in Ol&&(wi.compressed=!0),eo=!0}!Ta&&eo?wi.channels=fl[wi.format]:Ta&&!eo?wi.channels!==sl[wi.format]&&(wi.format=wi.internalformat=sl[wi.channels]):eo&&Ta&&Le(wi.channels===fl[wi.format],"number of channels inconsistent with specified format")}}function Wr(wi){$r.pixelStorei(Zo,wi.flipY),$r.pixelStorei(is,wi.premultiplyAlpha),$r.pixelStorei(mo,wi.colorSpace),$r.pixelStorei(yi,wi.unpackAlignment)}function Ir(){Sn.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Br(wi,ps){var qo=null;if(df(ps)?qo=ps:ps&&(Le.type(ps,"object","invalid pixel data type"),mr(wi,ps),"x"in ps&&(wi.xOffset=ps.x|0),"y"in ps&&(wi.yOffset=ps.y|0),df(ps.data)&&(qo=ps.data)),Le(!wi.compressed||qo instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),ps.copy){Le(!qo,"can not specify copy and data field for the same texture");var zc=_o.viewportWidth,od=_o.viewportHeight;wi.width=wi.width||zc-wi.xOffset,wi.height=wi.height||od-wi.yOffset,wi.needsCopy=!0,Le(wi.xOffset>=0&&wi.xOffset<zc&&wi.yOffset>=0&&wi.yOffset<od&&wi.width>0&&wi.width<=zc&&wi.height>0&&wi.height<=od,"copy texture read out of bounds")}else if(!qo)wi.width=wi.width||1,wi.height=wi.height||1,wi.channels=wi.channels||4;else if(N(qo))wi.channels=wi.channels||4,wi.data=qo,!("type"in ps)&&wi.type===Bu&&(wi.type=uf(qo));else if(Du(qo))wi.channels=wi.channels||4,Af(wi,qo),wi.alignment=1,wi.needsFree=!0;else if(ar(qo)){var ri=qo.data;!Array.isArray(ri)&&wi.type===Bu&&(wi.type=uf(ri));var Ta=qo.shape,eo=qo.stride,Po,qi,Ii,Gi,po,si;Ta.length===3?(Ii=Ta[2],si=eo[2]):(Le(Ta.length===2,"invalid ndarray pixel data, must be 2 or 3D"),Ii=1,si=1),Po=Ta[0],qi=Ta[1],Gi=eo[0],po=eo[1],wi.alignment=1,wi.width=Po,wi.height=qi,wi.channels=Ii,wi.format=wi.internalformat=sl[Ii],wi.needsFree=!0,ra(wi,ri,Gi,po,si,qo.offset)}else if(Vp(qo)||$c(qo)||Yl(qo))Vp(qo)||$c(qo)?wi.element=qo:wi.element=qo.canvas,wi.width=wi.element.width,wi.height=wi.element.height,wi.channels=4;else if(Sp(qo))wi.element=qo,wi.width=qo.width,wi.height=qo.height,wi.channels=4;else if(tp(qo))wi.element=qo,wi.width=qo.naturalWidth,wi.height=qo.naturalHeight,wi.channels=4;else if(Rp(qo))wi.element=qo,wi.width=qo.videoWidth,wi.height=qo.videoHeight,wi.channels=4;else if(Gd(qo)){var Zi=wi.width||qo[0].length,Va=wi.height||qo.length,Bi=wi.channels;Ci(qo[0][0])?Bi=Bi||qo[0][0].length:Bi=Bi||1;for(var $o=Yn.shape(qo),Vs=1,Cs=0;Cs<$o.length;++Cs)Vs*=$o[Cs];var vs=Wn(wi,Vs);Yn.flatten(qo,$o,"",vs),ca(wi,vs),wi.alignment=1,wi.width=Zi,wi.height=Va,wi.channels=Bi,wi.format=wi.internalformat=sl[Bi],wi.needsFree=!0}wi.type===Fd?Le(bi.extensions.indexOf("oes_texture_float")>=0,"oes_texture_float extension not enabled"):wi.type===ws&&Le(bi.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function xa(wi,ps,qo){var zc=wi.element,od=wi.data,ri=wi.internalformat,Ta=wi.format,eo=wi.type,Po=wi.width,qi=wi.height;Wr(wi),zc?$r.texImage2D(ps,qo,Ta,Ta,eo,zc):wi.compressed?$r.compressedTexImage2D(ps,qo,ri,Po,qi,0,od):wi.needsCopy?(To(),$r.copyTexImage2D(ps,qo,Ta,wi.xOffset,wi.yOffset,Po,qi,0)):$r.texImage2D(ps,qo,Ta,Po,qi,0,Ta,eo,od||null)}function vi(wi,ps,qo,zc,od){var ri=wi.element,Ta=wi.data,eo=wi.internalformat,Po=wi.format,qi=wi.type,Ii=wi.width,Gi=wi.height;Wr(wi),ri?$r.texSubImage2D(ps,od,qo,zc,Po,qi,ri):wi.compressed?$r.compressedTexSubImage2D(ps,od,qo,zc,eo,Ii,Gi,Ta):wi.needsCopy?(To(),$r.copyTexSubImage2D(ps,od,qo,zc,wi.xOffset,wi.yOffset,Ii,Gi)):$r.texSubImage2D(ps,od,qo,zc,Ii,Gi,Po,qi,Ta)}var Ai=[];function Yi(){return Ai.pop()||new Ir}function Wo(wi){wi.needsFree&&$e.freeType(wi.data),Ir.call(wi),Ai.push(wi)}function _s(){Sn.call(this),this.genMipmaps=!1,this.mipmapHint=xr,this.mipmask=0,this.images=Array(16)}function ys(wi,ps,qo){var zc=wi.images[0]=Yi();wi.mipmask=1,zc.width=wi.width=ps,zc.height=wi.height=qo,zc.channels=wi.channels=4}function qs(wi,ps){var qo=null;if(df(ps))qo=wi.images[0]=Yi(),In(qo,wi),Br(qo,ps),wi.mipmask=1;else if(mr(wi,ps),Array.isArray(ps.mipmap))for(var zc=ps.mipmap,od=0;od<zc.length;++od)qo=wi.images[od]=Yi(),In(qo,wi),qo.width>>=od,qo.height>>=od,Br(qo,zc[od]),wi.mipmask|=1<<od;else qo=wi.images[0]=Yi(),In(qo,wi),Br(qo,ps),wi.mipmask=1;In(wi,wi.images[0]),wi.compressed&&(wi.internalformat===fc||wi.internalformat===Tc||wi.internalformat===jc||wi.internalformat===lu)&&Le(wi.width%4==0&&wi.height%4==0,"for compressed texture formats, mipmap level 0 must have width and height that are a multiple of 4")}function uc(wi,ps){for(var qo=wi.images,zc=0;zc<qo.length;++zc){if(!qo[zc])return;xa(qo[zc],ps,zc)}}var du=[];function Pc(){var wi=du.pop()||new _s;Sn.call(wi),wi.mipmask=0;for(var ps=0;ps<16;++ps)wi.images[ps]=null;return wi}function Ef(wi){for(var ps=wi.images,qo=0;qo<ps.length;++qo)ps[qo]&&Wo(ps[qo]),ps[qo]=null;du.push(wi)}function Ru(){this.minFilter=Vn,this.magFilter=Vn,this.wrapS=If,this.wrapT=If,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=xr}function _d(wi,ps){if("min"in ps){var qo=ps.min;Le.parameter(qo,Tl),wi.minFilter=Tl[qo],oa.indexOf(wi.minFilter)>=0&&!("faces"in ps)&&(wi.genMipmaps=!0)}if("mag"in ps){var zc=ps.mag;Le.parameter(zc,yl),wi.magFilter=yl[zc]}var od=wi.wrapS,ri=wi.wrapT;if("wrap"in ps){var Ta=ps.wrap;typeof Ta=="string"?(Le.parameter(Ta,kl),od=ri=kl[Ta]):Array.isArray(Ta)&&(Le.parameter(Ta[0],kl),Le.parameter(Ta[1],kl),od=kl[Ta[0]],ri=kl[Ta[1]])}else{if("wrapS"in ps){var eo=ps.wrapS;Le.parameter(eo,kl),od=kl[eo]}if("wrapT"in ps){var Po=ps.wrapT;Le.parameter(Po,kl),ri=kl[Po]}}if(wi.wrapS=od,wi.wrapT=ri,"anisotropic"in ps){var qi=ps.anisotropic;Le(typeof qi=="number"&&qi>=1&&qi<=bi.maxAnisotropic,"aniso samples must be between 1 and "),wi.anisotropic=ps.anisotropic}if("mipmap"in ps){var Ii=!1;switch(typeof ps.mipmap){case"string":Le.parameter(ps.mipmap,Ns,"invalid mipmap hint"),wi.mipmapHint=Ns[ps.mipmap],wi.genMipmaps=!0,Ii=!0;break;case"boolean":Ii=wi.genMipmaps=ps.mipmap;break;case"object":Le(Array.isArray(ps.mipmap),"invalid mipmap type"),wi.genMipmaps=!1,Ii=!0;break;default:Le.raise("invalid mipmap type")}Ii&&!("min"in ps)&&(wi.minFilter=tn)}}function id(wi,ps){$r.texParameteri(ps,_t,wi.minFilter),$r.texParameteri(ps,Te,wi.magFilter),$r.texParameteri(ps,Pd,wi.wrapS),$r.texParameteri(ps,Nc,wi.wrapT),ea.ext_texture_filter_anisotropic&&$r.texParameteri(ps,ni,wi.anisotropic),wi.genMipmaps&&($r.hint(ir,wi.mipmapHint),$r.generateMipmap(ps))}var yd=0,Qu={},Yd=bi.maxTextureUnits,Xd=Array(Yd).map(function(){return null});function Sf(wi){Sn.call(this),this.mipmask=0,this.internalformat=ml,this.id=yd++,this.refCount=1,this.target=wi,this.texture=$r.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ru,Qi.profile&&(this.stats={size:0})}function Bf(wi){$r.activeTexture(yc),$r.bindTexture(wi.target,wi.texture)}function cd(){var wi=Xd[0];wi?$r.bindTexture(wi.target,wi.texture):$r.bindTexture(mi,null)}function qu(wi){var ps=wi.texture;Le(ps,"must not double destroy texture");var qo=wi.unit,zc=wi.target;qo>=0&&($r.activeTexture(yc+qo),$r.bindTexture(zc,null),Xd[qo]=null),$r.deleteTexture(ps),wi.texture=null,wi.params=null,wi.pixels=null,wi.refCount=0,delete Qu[wi.id],Ss.textureCount--}o(Sf.prototype,{bind:function(){var ps=this;ps.bindCount+=1;var qo=ps.unit;if(qo<0){for(var zc=0;zc<Yd;++zc){var od=Xd[zc];if(od){if(od.bindCount>0)continue;od.unit=-1}Xd[zc]=ps,qo=zc;break}qo>=Yd&&Le.raise("insufficient number of texture units"),Qi.profile&&Ss.maxTextureUnits<qo+1&&(Ss.maxTextureUnits=qo+1),ps.unit=qo,$r.activeTexture(yc+qo),$r.bindTexture(ps.target,ps.texture)}return qo},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&qu(this)}});function Nu(wi,ps){var qo=new Sf(mi);Qu[qo.id]=qo,Ss.textureCount++;function zc(Ta,eo){var Po=qo.texInfo;Ru.call(Po);var qi=Pc();return typeof Ta=="number"?typeof eo=="number"?ys(qi,Ta|0,eo|0):ys(qi,Ta|0,Ta|0):Ta?(Le.type(Ta,"object","invalid arguments to regl.texture"),_d(Po,Ta),qs(qi,Ta)):ys(qi,1,1),Po.genMipmaps&&(qi.mipmask=(qi.width<<1)-1),qo.mipmask=qi.mipmask,In(qo,qi),Le.texture2D(Po,qi,bi),qo.internalformat=qi.internalformat,zc.width=qi.width,zc.height=qi.height,Bf(qo),uc(qi,mi),id(Po,mi),cd(),Ef(qi),Qi.profile&&(qo.stats.size=Na(qo.internalformat,qo.type,qi.width,qi.height,Po.genMipmaps,!1)),zc.format=Yo[qo.internalformat],zc.type=Ec[qo.type],zc.mag=Ft[Po.magFilter],zc.min=je[Po.minFilter],zc.wrapS=yt[Po.wrapS],zc.wrapT=yt[Po.wrapT],zc}function od(Ta,eo,Po,qi){Le(!!Ta,"must specify image data");var Ii=eo|0,Gi=Po|0,po=qi|0,si=Yi();return In(si,qo),si.width=0,si.height=0,Br(si,Ta),si.width=si.width||(qo.width>>po)-Ii,si.height=si.height||(qo.height>>po)-Gi,Le(qo.type===si.type&&qo.format===si.format&&qo.internalformat===si.internalformat,"incompatible format for texture.subimage"),Le(Ii>=0&&Gi>=0&&Ii+si.width<=qo.width&&Gi+si.height<=qo.height,"texture.subimage write out of bounds"),Le(qo.mipmask&1<<po,"missing mipmap data"),Le(si.data||si.element||si.needsCopy,"missing image data"),Bf(qo),vi(si,mi,Ii,Gi,po),cd(),Wo(si),zc}function ri(Ta,eo){var Po=Ta|0,qi=eo|0||Po;if(Po===qo.width&&qi===qo.height)return zc;zc.width=qo.width=Po,zc.height=qo.height=qi,Bf(qo);for(var Ii=0;qo.mipmask>>Ii;++Ii){var Gi=Po>>Ii,po=qi>>Ii;if(!Gi||!po)break;$r.texImage2D(mi,Ii,qo.format,Gi,po,0,qo.format,qo.type,null)}return cd(),Qi.profile&&(qo.stats.size=Na(qo.internalformat,qo.type,Po,qi,!1,!1)),zc}return zc(wi,ps),zc.subimage=od,zc.resize=ri,zc._reglType="texture2d",zc._texture=qo,Qi.profile&&(zc.stats=qo.stats),zc.destroy=function(){qo.decRef()},zc}function Id(wi,ps,qo,zc,od,ri){var Ta=new Sf(Ho);Qu[Ta.id]=Ta,Ss.cubeCount++;var eo=new Array(6);function Po(Gi,po,si,Zi,Va,Bi){var $o,Vs=Ta.texInfo;for(Ru.call(Vs),$o=0;$o<6;++$o)eo[$o]=Pc();if(typeof Gi=="number"||!Gi){var Cs=Gi|0||1;for($o=0;$o<6;++$o)ys(eo[$o],Cs,Cs)}else if(typeof Gi=="object")if(po)qs(eo[0],Gi),qs(eo[1],po),qs(eo[2],si),qs(eo[3],Zi),qs(eo[4],Va),qs(eo[5],Bi);else if(_d(Vs,Gi),mr(Ta,Gi),"faces"in Gi){var vs=Gi.faces;for(Le(Array.isArray(vs)&&vs.length===6,"cube faces must be a length 6 array"),$o=0;$o<6;++$o)Le(typeof vs[$o]=="object"&&!!vs[$o],"invalid input for cube map face"),In(eo[$o],Ta),qs(eo[$o],vs[$o])}else for($o=0;$o<6;++$o)qs(eo[$o],Gi);else Le.raise("invalid arguments to cube map");for(In(Ta,eo[0]),bi.npotTextureCube||Le(da(Ta.width)&&da(Ta.height),"your browser does not support non power or two texture dimensions"),Vs.genMipmaps?Ta.mipmask=(eo[0].width<<1)-1:Ta.mipmask=eo[0].mipmask,Le.textureCube(Ta,Vs,eo,bi),Ta.internalformat=eo[0].internalformat,Po.width=eo[0].width,Po.height=eo[0].height,Bf(Ta),$o=0;$o<6;++$o)uc(eo[$o],al+$o);for(id(Vs,Ho),cd(),Qi.profile&&(Ta.stats.size=Na(Ta.internalformat,Ta.type,Po.width,Po.height,Vs.genMipmaps,!0)),Po.format=Yo[Ta.internalformat],Po.type=Ec[Ta.type],Po.mag=Ft[Vs.magFilter],Po.min=je[Vs.minFilter],Po.wrapS=yt[Vs.wrapS],Po.wrapT=yt[Vs.wrapT],$o=0;$o<6;++$o)Ef(eo[$o]);return Po}function qi(Gi,po,si,Zi,Va){Le(!!po,"must specify image data"),Le(typeof Gi=="number"&&Gi===(Gi|0)&&Gi>=0&&Gi<6,"invalid face");var Bi=si|0,$o=Zi|0,Vs=Va|0,Cs=Yi();return In(Cs,Ta),Cs.width=0,Cs.height=0,Br(Cs,po),Cs.width=Cs.width||(Ta.width>>Vs)-Bi,Cs.height=Cs.height||(Ta.height>>Vs)-$o,Le(Ta.type===Cs.type&&Ta.format===Cs.format&&Ta.internalformat===Cs.internalformat,"incompatible format for texture.subimage"),Le(Bi>=0&&$o>=0&&Bi+Cs.width<=Ta.width&&$o+Cs.height<=Ta.height,"texture.subimage write out of bounds"),Le(Ta.mipmask&1<<Vs,"missing mipmap data"),Le(Cs.data||Cs.element||Cs.needsCopy,"missing image data"),Bf(Ta),vi(Cs,al+Gi,Bi,$o,Vs),cd(),Wo(Cs),Po}function Ii(Gi){var po=Gi|0;if(po!==Ta.width){Po.width=Ta.width=po,Po.height=Ta.height=po,Bf(Ta);for(var si=0;si<6;++si)for(var Zi=0;Ta.mipmask>>Zi;++Zi)$r.texImage2D(al+si,Zi,Ta.format,po>>Zi,po>>Zi,0,Ta.format,Ta.type,null);return cd(),Qi.profile&&(Ta.stats.size=Na(Ta.internalformat,Ta.type,Po.width,Po.height,!1,!0)),Po}}return Po(wi,ps,qo,zc,od,ri),Po.subimage=qi,Po.resize=Ii,Po._reglType="textureCube",Po._texture=Ta,Qi.profile&&(Po.stats=Ta.stats),Po.destroy=function(){Ta.decRef()},Po}function Ev(){for(var wi=0;wi<Yd;++wi)$r.activeTexture(yc+wi),$r.bindTexture(mi,null),Xd[wi]=null;ta(Qu).forEach(qu),Ss.cubeCount=0,Ss.textureCount=0}Qi.profile&&(Ss.getTotalTextureSize=function(){var wi=0;return Object.keys(Qu).forEach(function(ps){wi+=Qu[ps].stats.size}),wi});function Rv(){for(var wi=0;wi<Yd;++wi){var ps=Xd[wi];ps&&(ps.bindCount=0,ps.unit=-1,Xd[wi]=null)}ta(Qu).forEach(function(qo){qo.texture=$r.createTexture(),$r.bindTexture(qo.target,qo.texture);for(var zc=0;zc<32;++zc)if((qo.mipmask&1<<zc)!=0)if(qo.target===mi)$r.texImage2D(mi,zc,qo.internalformat,qo.width>>zc,qo.height>>zc,0,qo.internalformat,qo.type,null);else for(var od=0;od<6;++od)$r.texImage2D(al+od,zc,qo.internalformat,qo.width>>zc,qo.height>>zc,0,qo.internalformat,qo.type,null);id(qo.texInfo,qo.target)})}function s_(){for(var wi=0;wi<Yd;++wi){var ps=Xd[wi];ps&&(ps.bindCount=0,ps.unit=-1,Xd[wi]=null),$r.activeTexture(yc+wi),$r.bindTexture(mi,null),$r.bindTexture(Ho,null)}}return{create2D:Nu,createCube:Id,clear:Ev,getTexture:function(ps){return null},restore:Rv,refresh:s_}}var so=36161,vo=32854,Ro=32855,So=36194,el=33189,ul=36168,Xo=34041,lo=35907,Zs=34836,Gs=34842,$s=34843,Qn=[];Qn[vo]=2,Qn[Ro]=2,Qn[So]=2,Qn[el]=2,Qn[ul]=1,Qn[Xo]=4,Qn[lo]=4,Qn[Zs]=16,Qn[Gs]=8,Qn[$s]=6;function dr($r,ea,bi){return Qn[$r]*ea*bi}var Xr=function(ea,bi,To,_o,Ss){var Qi={rgba4:vo,rgb565:So,"rgb5 a1":Ro,depth:el,stencil:ul,"depth stencil":Xo};bi.ext_srgb&&(Qi.srgba=lo),bi.ext_color_buffer_half_float&&(Qi.rgba16f=Gs,Qi.rgb16f=$s),bi.webgl_color_buffer_float&&(Qi.rgba32f=Zs);var Ns=[];Object.keys(Qi).forEach(function(Ol){var es=Qi[Ol];Ns[es]=Ol});var kl=0,yl={};function Tl(Ol){this.id=kl++,this.refCount=1,this.renderbuffer=Ol,this.format=vo,this.width=0,this.height=0,Ss.profile&&(this.stats={size:0})}Tl.prototype.decRef=function(){--this.refCount<=0&&ll(this)};function ll(Ol){var es=Ol.renderbuffer;Le(es,"must not double destroy renderbuffer"),ea.bindRenderbuffer(so,null),ea.deleteRenderbuffer(es),Ol.renderbuffer=null,Ol.refCount=0,delete yl[Ol.id],_o.renderbufferCount--}function ac(Ol,es){var Go=new Tl(ea.createRenderbuffer());yl[Go.id]=Go,_o.renderbufferCount++;function Yo(Ft,je){var yt=0,It=0,Sn=vo;if(typeof Ft=="object"&&Ft){var In=Ft;if("shape"in In){var mr=In.shape;Le(Array.isArray(mr)&&mr.length>=2,"invalid renderbuffer shape"),yt=mr[0]|0,It=mr[1]|0}else"radius"in In&&(yt=It=In.radius|0),"width"in In&&(yt=In.width|0),"height"in In&&(It=In.height|0);"format"in In&&(Le.parameter(In.format,Qi,"invalid renderbuffer format"),Sn=Qi[In.format])}else typeof Ft=="number"?(yt=Ft|0,typeof je=="number"?It=je|0:It=yt):Ft?Le.raise("invalid arguments to renderbuffer constructor"):yt=It=1;if(Le(yt>0&&It>0&&yt<=To.maxRenderbufferSize&&It<=To.maxRenderbufferSize,"invalid renderbuffer size"),!(yt===Go.width&&It===Go.height&&Sn===Go.format))return Yo.width=Go.width=yt,Yo.height=Go.height=It,Go.format=Sn,ea.bindRenderbuffer(so,Go.renderbuffer),ea.renderbufferStorage(so,Sn,yt,It),Le(ea.getError()===0,"invalid render buffer format"),Ss.profile&&(Go.stats.size=dr(Go.format,Go.width,Go.height)),Yo.format=Ns[Go.format],Yo}function Ec(Ft,je){var yt=Ft|0,It=je|0||yt;return yt===Go.width&&It===Go.height||(Le(yt>0&&It>0&&yt<=To.maxRenderbufferSize&&It<=To.maxRenderbufferSize,"invalid renderbuffer size"),Yo.width=Go.width=yt,Yo.height=Go.height=It,ea.bindRenderbuffer(so,Go.renderbuffer),ea.renderbufferStorage(so,Go.format,yt,It),Le(ea.getError()===0,"invalid render buffer format"),Ss.profile&&(Go.stats.size=dr(Go.format,Go.width,Go.height))),Yo}return Yo(Ol,es),Yo.resize=Ec,Yo._reglType="renderbuffer",Yo._renderbuffer=Go,Ss.profile&&(Yo.stats=Go.stats),Yo.destroy=function(){Go.decRef()},Yo}Ss.profile&&(_o.getTotalRenderbufferSize=function(){var Ol=0;return Object.keys(yl).forEach(function(es){Ol+=yl[es].stats.size}),Ol});function Xl(){ta(yl).forEach(function(Ol){Ol.renderbuffer=ea.createRenderbuffer(),ea.bindRenderbuffer(so,Ol.renderbuffer),ea.renderbufferStorage(so,Ol.format,Ol.width,Ol.height)}),ea.bindRenderbuffer(so,null)}return{create:ac,clear:function(){ta(yl).forEach(ll)},restore:Xl}},la=36160,Ra=36161,_i=3553,ui=34069,ho=36064,Oi=36096,Fo=36128,as=33306,Fs=36053,Fr=36054,tl=36055,Js=36057,Us=36061,os=36193,El=5121,Bs=5126,gc=6407,kr=6408,Sa=6402,Hi=[gc,kr],Co=[];Co[kr]=4,Co[gc]=3;var Ds=[];Ds[El]=1,Ds[Bs]=4,Ds[os]=2;var Dl=32854,Xc=32855,Fl=36194,Eu=33189,cc=36168,Hu=34041,dc=35907,iu=34836,Gc=34842,Jc=34843,pf=[Dl,Xc,Fl,dc,Gc,Jc,iu],hn={};hn[Fs]="complete",hn[Fr]="incomplete attachment",hn[Js]="incomplete dimensions",hn[tl]="incomplete, missing attachment",hn[Us]="unsupported";function dn($r,ea,bi,To,_o,Ss){var Qi={cur:null,next:null,dirty:!1,setFBO:null},Ns=["rgba"],kl=["rgba4","rgb565","rgb5 a1"];ea.ext_srgb&&kl.push("srgba"),ea.ext_color_buffer_half_float&&kl.push("rgba16f","rgb16f"),ea.webgl_color_buffer_float&&kl.push("rgba32f");var yl=["uint8"];ea.oes_texture_half_float&&yl.push("half float","float16"),ea.oes_texture_float&&yl.push("float","float32");function Tl(Ir,Br,xa){this.target=Ir,this.texture=Br,this.renderbuffer=xa;var vi=0,Ai=0;Br?(vi=Br.width,Ai=Br.height):xa&&(vi=xa.width,Ai=xa.height),this.width=vi,this.height=Ai}function ll(Ir){Ir&&(Ir.texture&&Ir.texture._texture.decRef(),Ir.renderbuffer&&Ir.renderbuffer._renderbuffer.decRef())}function ac(Ir,Br,xa){if(!!Ir)if(Ir.texture){var vi=Ir.texture._texture,Ai=Math.max(1,vi.width),Yi=Math.max(1,vi.height);Le(Ai===Br&&Yi===xa,"inconsistent width/height for supplied texture"),vi.refCount+=1}else{var Wo=Ir.renderbuffer._renderbuffer;Le(Wo.width===Br&&Wo.height===xa,"inconsistent width/height for renderbuffer"),Wo.refCount+=1}}function Xl(Ir,Br){Br&&(Br.texture?$r.framebufferTexture2D(la,Ir,Br.target,Br.texture._texture.texture,0):$r.framebufferRenderbuffer(la,Ir,Ra,Br.renderbuffer._renderbuffer.renderbuffer))}function Ol(Ir){var Br=_i,xa=null,vi=null,Ai=Ir;typeof Ir=="object"&&(Ai=Ir.data,"target"in Ir&&(Br=Ir.target|0)),Le.type(Ai,"function","invalid attachment data");var Yi=Ai._reglType;return Yi==="texture2d"?(xa=Ai,Le(Br===_i)):Yi==="textureCube"?(xa=Ai,Le(Br>=ui&&Br<ui+6,"invalid cube map target")):Yi==="renderbuffer"?(vi=Ai,Br=Ra):Le.raise("invalid regl object for attachment"),new Tl(Br,xa,vi)}function es(Ir,Br,xa,vi,Ai){if(xa){var Yi=To.create2D({width:Ir,height:Br,format:vi,type:Ai});return Yi._texture.refCount=0,new Tl(_i,Yi,null)}else{var Wo=_o.create({width:Ir,height:Br,format:vi});return Wo._renderbuffer.refCount=0,new Tl(Ra,null,Wo)}}function Go(Ir){return Ir&&(Ir.texture||Ir.renderbuffer)}function Yo(Ir,Br,xa){Ir&&(Ir.texture?Ir.texture.resize(Br,xa):Ir.renderbuffer&&Ir.renderbuffer.resize(Br,xa),Ir.width=Br,Ir.height=xa)}var Ec=0,Ft={};function je(){this.id=Ec++,Ft[this.id]=this,this.framebuffer=$r.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function yt(Ir){Ir.colorAttachments.forEach(ll),ll(Ir.depthAttachment),ll(Ir.stencilAttachment),ll(Ir.depthStencilAttachment)}function It(Ir){var Br=Ir.framebuffer;Le(Br,"must not double destroy framebuffer"),$r.deleteFramebuffer(Br),Ir.framebuffer=null,Ss.framebufferCount--,delete Ft[Ir.id]}function Sn(Ir){var Br;$r.bindFramebuffer(la,Ir.framebuffer);var xa=Ir.colorAttachments;for(Br=0;Br<xa.length;++Br)Xl(ho+Br,xa[Br]);for(Br=xa.length;Br<bi.maxColorAttachments;++Br)$r.framebufferTexture2D(la,ho+Br,_i,null,0);$r.framebufferTexture2D(la,as,_i,null,0),$r.framebufferTexture2D(la,Oi,_i,null,0),$r.framebufferTexture2D(la,Fo,_i,null,0),Xl(Oi,Ir.depthAttachment),Xl(Fo,Ir.stencilAttachment),Xl(as,Ir.depthStencilAttachment);var vi=$r.checkFramebufferStatus(la);!$r.isContextLost()&&vi!==Fs&&Le.raise("framebuffer configuration not supported, status = "+hn[vi]),$r.bindFramebuffer(la,Qi.next?Qi.next.framebuffer:null),Qi.cur=Qi.next,$r.getError()}function In(Ir,Br){var xa=new je;Ss.framebufferCount++;function vi(Yi,Wo){var _s;Le(Qi.next!==xa,"can not update framebuffer which is currently in use");var ys=0,qs=0,uc=!0,du=!0,Pc=null,Ef=!0,Ru="rgba",_d="uint8",id=1,yd=null,Qu=null,Yd=null,Xd=!1;if(typeof Yi=="number")ys=Yi|0,qs=Wo|0||ys;else if(!Yi)ys=qs=1;else{Le.type(Yi,"object","invalid arguments for framebuffer");var Sf=Yi;if("shape"in Sf){var Bf=Sf.shape;Le(Array.isArray(Bf)&&Bf.length>=2,"invalid shape for framebuffer"),ys=Bf[0],qs=Bf[1]}else"radius"in Sf&&(ys=qs=Sf.radius),"width"in Sf&&(ys=Sf.width),"height"in Sf&&(qs=Sf.height);("color"in Sf||"colors"in Sf)&&(Pc=Sf.color||Sf.colors,Array.isArray(Pc)&&Le(Pc.length===1||ea.webgl_draw_buffers,"multiple render targets not supported")),Pc||("colorCount"in Sf&&(id=Sf.colorCount|0,Le(id>0,"invalid color buffer count")),"colorTexture"in Sf&&(Ef=!!Sf.colorTexture,Ru="rgba4"),"colorType"in Sf&&(_d=Sf.colorType,Ef?(Le(ea.oes_texture_float||!(_d==="float"||_d==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),Le(ea.oes_texture_half_float||!(_d==="half float"||_d==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):_d==="half float"||_d==="float16"?(Le(ea.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),Ru="rgba16f"):(_d==="float"||_d==="float32")&&(Le(ea.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),Ru="rgba32f"),Le.oneOf(_d,yl,"invalid color type")),"colorFormat"in Sf&&(Ru=Sf.colorFormat,Ns.indexOf(Ru)>=0?Ef=!0:kl.indexOf(Ru)>=0?Ef=!1:Ef?Le.oneOf(Sf.colorFormat,Ns,"invalid color format for texture"):Le.oneOf(Sf.colorFormat,kl,"invalid color format for renderbuffer"))),("depthTexture"in Sf||"depthStencilTexture"in Sf)&&(Xd=!!(Sf.depthTexture||Sf.depthStencilTexture),Le(!Xd||ea.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in Sf&&(typeof Sf.depth=="boolean"?uc=Sf.depth:(yd=Sf.depth,du=!1)),"stencil"in Sf&&(typeof Sf.stencil=="boolean"?du=Sf.stencil:(Qu=Sf.stencil,uc=!1)),"depthStencil"in Sf&&(typeof Sf.depthStencil=="boolean"?uc=du=Sf.depthStencil:(Yd=Sf.depthStencil,uc=!1,du=!1))}var cd=null,qu=null,Nu=null,Id=null;if(Array.isArray(Pc))cd=Pc.map(Ol);else if(Pc)cd=[Ol(Pc)];else for(cd=new Array(id),_s=0;_s<id;++_s)cd[_s]=es(ys,qs,Ef,Ru,_d);Le(ea.webgl_draw_buffers||cd.length<=1,"you must enable the WEBGL_draw_buffers extension in order to use multiple color buffers."),Le(cd.length<=bi.maxColorAttachments,"too many color attachments, not supported"),ys=ys||cd[0].width,qs=qs||cd[0].height,yd?qu=Ol(yd):uc&&!du&&(qu=es(ys,qs,Xd,"depth","uint32")),Qu?Nu=Ol(Qu):du&&!uc&&(Nu=es(ys,qs,!1,"stencil","uint8")),Yd?Id=Ol(Yd):!yd&&!Qu&&du&&uc&&(Id=es(ys,qs,Xd,"depth stencil","depth stencil")),Le(!!yd+!!Qu+!!Yd<=1,"invalid framebuffer configuration, can specify exactly one depth/stencil attachment");var Ev=null;for(_s=0;_s<cd.length;++_s)if(ac(cd[_s],ys,qs),Le(!cd[_s]||cd[_s].texture&&Hi.indexOf(cd[_s].texture._texture.format)>=0||cd[_s].renderbuffer&&pf.indexOf(cd[_s].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+_s+" is invalid"),cd[_s]&&cd[_s].texture){var Rv=Co[cd[_s].texture._texture.format]*Ds[cd[_s].texture._texture.type];Ev===null?Ev=Rv:Le(Ev===Rv,"all color attachments much have the same number of bits per pixel.")}return ac(qu,ys,qs),Le(!qu||qu.texture&&qu.texture._texture.format===Sa||qu.renderbuffer&&qu.renderbuffer._renderbuffer.format===Eu,"invalid depth attachment for framebuffer object"),ac(Nu,ys,qs),Le(!Nu||Nu.renderbuffer&&Nu.renderbuffer._renderbuffer.format===cc,"invalid stencil attachment for framebuffer object"),ac(Id,ys,qs),Le(!Id||Id.texture&&Id.texture._texture.format===Hu||Id.renderbuffer&&Id.renderbuffer._renderbuffer.format===Hu,"invalid depth-stencil attachment for framebuffer object"),yt(xa),xa.width=ys,xa.height=qs,xa.colorAttachments=cd,xa.depthAttachment=qu,xa.stencilAttachment=Nu,xa.depthStencilAttachment=Id,vi.color=cd.map(Go),vi.depth=Go(qu),vi.stencil=Go(Nu),vi.depthStencil=Go(Id),vi.width=xa.width,vi.height=xa.height,Sn(xa),vi}function Ai(Yi,Wo){Le(Qi.next!==xa,"can not resize a framebuffer which is currently in use");var _s=Math.max(Yi|0,1),ys=Math.max(Wo|0||_s,1);if(_s===xa.width&&ys===xa.height)return vi;for(var qs=xa.colorAttachments,uc=0;uc<qs.length;++uc)Yo(qs[uc],_s,ys);return Yo(xa.depthAttachment,_s,ys),Yo(xa.stencilAttachment,_s,ys),Yo(xa.depthStencilAttachment,_s,ys),xa.width=vi.width=_s,xa.height=vi.height=ys,Sn(xa),vi}return vi(Ir,Br),o(vi,{resize:Ai,_reglType:"framebuffer",_framebuffer:xa,destroy:function(){It(xa),yt(xa)},use:function(Wo){Qi.setFBO({framebuffer:vi},Wo)}})}function mr(Ir){var Br=Array(6);function xa(Ai){var Yi;Le(Br.indexOf(Qi.next)<0,"can not update framebuffer which is currently in use");var Wo={color:null},_s=0,ys=null,qs="rgba",uc="uint8",du=1;if(typeof Ai=="number")_s=Ai|0;else if(!Ai)_s=1;else{Le.type(Ai,"object","invalid arguments for framebuffer");var Pc=Ai;if("shape"in Pc){var Ef=Pc.shape;Le(Array.isArray(Ef)&&Ef.length>=2,"invalid shape for framebuffer"),Le(Ef[0]===Ef[1],"cube framebuffer must be square"),_s=Ef[0]}else"radius"in Pc&&(_s=Pc.radius|0),"width"in Pc?(_s=Pc.width|0,"height"in Pc&&Le(Pc.height===_s,"must be square")):"height"in Pc&&(_s=Pc.height|0);("color"in Pc||"colors"in Pc)&&(ys=Pc.color||Pc.colors,Array.isArray(ys)&&Le(ys.length===1||ea.webgl_draw_buffers,"multiple render targets not supported")),ys||("colorCount"in Pc&&(du=Pc.colorCount|0,Le(du>0,"invalid color buffer count")),"colorType"in Pc&&(Le.oneOf(Pc.colorType,yl,"invalid color type"),uc=Pc.colorType),"colorFormat"in Pc&&(qs=Pc.colorFormat,Le.oneOf(Pc.colorFormat,Ns,"invalid color format for texture"))),"depth"in Pc&&(Wo.depth=Pc.depth),"stencil"in Pc&&(Wo.stencil=Pc.stencil),"depthStencil"in Pc&&(Wo.depthStencil=Pc.depthStencil)}var Ru;if(ys)if(Array.isArray(ys))for(Ru=[],Yi=0;Yi<ys.length;++Yi)Ru[Yi]=ys[Yi];else Ru=[ys];else{Ru=Array(du);var _d={radius:_s,format:qs,type:uc};for(Yi=0;Yi<du;++Yi)Ru[Yi]=To.createCube(_d)}for(Wo.color=Array(Ru.length),Yi=0;Yi<Ru.length;++Yi){var id=Ru[Yi];Le(typeof id=="function"&&id._reglType==="textureCube","invalid cube map"),_s=_s||id.width,Le(id.width===_s&&id.height===_s,"invalid cube map shape"),Wo.color[Yi]={target:ui,data:Ru[Yi]}}for(Yi=0;Yi<6;++Yi){for(var yd=0;yd<Ru.length;++yd)Wo.color[yd].target=ui+Yi;Yi>0&&(Wo.depth=Br[0].depth,Wo.stencil=Br[0].stencil,Wo.depthStencil=Br[0].depthStencil),Br[Yi]?Br[Yi](Wo):Br[Yi]=In(Wo)}return o(xa,{width:_s,height:_s,color:Ru})}function vi(Ai){var Yi,Wo=Ai|0;if(Le(Wo>0&&Wo<=bi.maxCubeMapSize,"invalid radius for cube fbo"),Wo===xa.width)return xa;var _s=xa.color;for(Yi=0;Yi<_s.length;++Yi)_s[Yi].resize(Wo);for(Yi=0;Yi<6;++Yi)Br[Yi].resize(Wo);return xa.width=xa.height=Wo,xa}return xa(Ir),o(xa,{faces:Br,resize:vi,_reglType:"framebufferCube",destroy:function(){Br.forEach(function(Yi){Yi.destroy()})}})}function Wr(){Qi.cur=null,Qi.next=null,Qi.dirty=!0,ta(Ft).forEach(function(Ir){Ir.framebuffer=$r.createFramebuffer(),Sn(Ir)})}return o(Qi,{getFramebuffer:function(Br){if(typeof Br=="function"&&Br._reglType==="framebuffer"){var xa=Br._framebuffer;if(xa instanceof je)return xa}return null},create:In,createCube:mr,clear:function(){ta(Ft).forEach(It)},restore:Wr})}var tr=5126,Mn=34962;function Lr(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=tr,this.offset=0,this.stride=0,this.divisor=0}function sa($r,ea,bi,To,_o){for(var Ss=bi.maxAttributes,Qi=new Array(Ss),Ns=0;Ns<Ss;++Ns)Qi[Ns]=new Lr;var kl=0,yl={},Tl={Record:Lr,scope:{},state:Qi,currentVAO:null,targetVAO:null,restore:ac()?Ft:function(){},createVAO:je,getVAO:Ol,destroyBuffer:ll,setVAO:ac()?es:Go,clear:ac()?Yo:function(){}};function ll(yt){for(var It=0;It<Qi.length;++It){var Sn=Qi[It];Sn.buffer===yt&&($r.disableVertexAttribArray(It),Sn.buffer=null)}}function ac(){return ea.oes_vertex_array_object}function Xl(){return ea.angle_instanced_arrays}function Ol(yt){return typeof yt=="function"&&yt._vao?yt._vao:null}function es(yt){if(yt!==Tl.currentVAO){var It=ac();yt?It.bindVertexArrayOES(yt.vao):It.bindVertexArrayOES(null),Tl.currentVAO=yt}}function Go(yt){if(yt!==Tl.currentVAO){if(yt)yt.bindAttrs();else for(var It=Xl(),Sn=0;Sn<Qi.length;++Sn){var In=Qi[Sn];In.buffer?($r.enableVertexAttribArray(Sn),$r.vertexAttribPointer(Sn,In.size,In.type,In.normalized,In.stride,In.offfset),It&&In.divisor&&It.vertexAttribDivisorANGLE(Sn,In.divisor)):($r.disableVertexAttribArray(Sn),$r.vertexAttrib4f(Sn,In.x,In.y,In.z,In.w))}Tl.currentVAO=yt}}function Yo(){ta(yl).forEach(function(yt){yt.destroy()})}function Ec(){this.id=++kl,this.attributes=[];var yt=ac();yt?this.vao=yt.createVertexArrayOES():this.vao=null,yl[this.id]=this,this.buffers=[]}Ec.prototype.bindAttrs=function(){for(var yt=Xl(),It=this.attributes,Sn=0;Sn<It.length;++Sn){var In=It[Sn];In.buffer?($r.enableVertexAttribArray(Sn),$r.bindBuffer(Mn,In.buffer.buffer),$r.vertexAttribPointer(Sn,In.size,In.type,In.normalized,In.stride,In.offset),yt&&In.divisor&&yt.vertexAttribDivisorANGLE(Sn,In.divisor)):($r.disableVertexAttribArray(Sn),$r.vertexAttrib4f(Sn,In.x,In.y,In.z,In.w))}for(var mr=It.length;mr<Ss;++mr)$r.disableVertexAttribArray(mr)},Ec.prototype.refresh=function(){var yt=ac();yt&&(yt.bindVertexArrayOES(this.vao),this.bindAttrs(),Tl.currentVAO=this)},Ec.prototype.destroy=function(){if(this.vao){var yt=ac();this===Tl.currentVAO&&(Tl.currentVAO=null,yt.bindVertexArrayOES(null)),yt.deleteVertexArrayOES(this.vao),this.vao=null}yl[this.id]&&(delete yl[this.id],To.vaoCount-=1)};function Ft(){var yt=ac();yt&&ta(yl).forEach(function(It){It.refresh()})}function je(yt){var It=new Ec;To.vaoCount+=1;function Sn(In){Le(Array.isArray(In),"arguments to vertex array constructor must be an array"),Le(In.length<Ss,"too many attributes"),Le(In.length>0,"must specify at least one attribute");var mr={},Wr=It.attributes;Wr.length=In.length;for(var Ir=0;Ir<In.length;++Ir){var Br=In[Ir],xa=Wr[Ir]=new Lr,vi=Br.data||Br;if(Array.isArray(vi)||N(vi)||ar(vi)){var Ai;It.buffers[Ir]&&(Ai=It.buffers[Ir],N(vi)&&Ai._buffer.byteLength>=vi.byteLength?Ai.subdata(vi):(Ai.destroy(),It.buffers[Ir]=null)),It.buffers[Ir]||(Ai=It.buffers[Ir]=_o.create(Br,Mn,!1,!0)),xa.buffer=_o.getBuffer(Ai),xa.size=xa.buffer.dimension|0,xa.normalized=!1,xa.type=xa.buffer.dtype,xa.offset=0,xa.stride=0,xa.divisor=0,xa.state=1,mr[Ir]=1}else _o.getBuffer(Br)?(xa.buffer=_o.getBuffer(Br),xa.size=xa.buffer.dimension|0,xa.normalized=!1,xa.type=xa.buffer.dtype,xa.offset=0,xa.stride=0,xa.divisor=0,xa.state=1):_o.getBuffer(Br.buffer)?(xa.buffer=_o.getBuffer(Br.buffer),xa.size=(+Br.size||xa.buffer.dimension)|0,xa.normalized=!!Br.normalized||!1,"type"in Br?(Le.parameter(Br.type,Ar,"invalid buffer type"),xa.type=Ar[Br.type]):xa.type=xa.buffer.dtype,xa.offset=(Br.offset||0)|0,xa.stride=(Br.stride||0)|0,xa.divisor=(Br.divisor||0)|0,xa.state=1,Le(xa.size>=1&&xa.size<=4,"size must be between 1 and 4"),Le(xa.offset>=0,"invalid offset"),Le(xa.stride>=0&&xa.stride<=255,"stride must be between 0 and 255"),Le(xa.divisor>=0,"divisor must be positive"),Le(!xa.divisor||!!ea.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in Br?(Le(Ir>0,"first attribute must not be a constant"),xa.x=+Br.x||0,xa.y=+Br.y||0,xa.z=+Br.z||0,xa.w=+Br.w||0,xa.state=2):Le(!1,"invalid attribute spec for location "+Ir)}for(var Yi=0;Yi<It.buffers.length;++Yi)!mr[Yi]&&It.buffers[Yi]&&(It.buffers[Yi].destroy(),It.buffers[Yi]=null);return It.refresh(),Sn}return Sn.destroy=function(){for(var In=0;In<It.buffers.length;++In)It.buffers[In]&&It.buffers[In].destroy();It.buffers.length=0,It.destroy()},Sn._vao=It,Sn._reglType="vao",Sn(yt)}return Tl}var Ma=35632,Ia=35633,Ja=35718,pi=35721;function fo($r,ea,bi,To){var _o={},Ss={};function Qi(es,Go,Yo,Ec){this.name=es,this.id=Go,this.location=Yo,this.info=Ec}function Ns(es,Go){for(var Yo=0;Yo<es.length;++Yo)if(es[Yo].id===Go.id){es[Yo].location=Go.location;return}es.push(Go)}function kl(es,Go,Yo){var Ec=es===Ma?_o:Ss,Ft=Ec[Go];if(!Ft){var je=ea.str(Go);Ft=$r.createShader(es),$r.shaderSource(Ft,je),$r.compileShader(Ft),Le.shaderError($r,Ft,je,es,Yo),Ec[Go]=Ft}return Ft}var yl={},Tl=[],ll=0;function ac(es,Go){this.id=ll++,this.fragId=es,this.vertId=Go,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,To.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function Xl(es,Go,Yo){var Ec,Ft,je=kl(Ma,es.fragId),yt=kl(Ia,es.vertId),It=es.program=$r.createProgram();if($r.attachShader(It,je),$r.attachShader(It,yt),Yo)for(Ec=0;Ec<Yo.length;++Ec){var Sn=Yo[Ec];$r.bindAttribLocation(It,Sn[0],Sn[1])}$r.linkProgram(It),Le.linkError($r,It,ea.str(es.fragId),ea.str(es.vertId),Go);var In=$r.getProgramParameter(It,Ja);To.profile&&(es.stats.uniformsCount=In);var mr=es.uniforms;for(Ec=0;Ec<In;++Ec)if(Ft=$r.getActiveUniform(It,Ec),Ft)if(Ft.size>1)for(var Wr=0;Wr<Ft.size;++Wr){var Ir=Ft.name.replace("[0]","["+Wr+"]");Ns(mr,new Qi(Ir,ea.id(Ir),$r.getUniformLocation(It,Ir),Ft))}else Ns(mr,new Qi(Ft.name,ea.id(Ft.name),$r.getUniformLocation(It,Ft.name),Ft));var Br=$r.getProgramParameter(It,pi);To.profile&&(es.stats.attributesCount=Br);var xa=es.attributes;for(Ec=0;Ec<Br;++Ec)Ft=$r.getActiveAttrib(It,Ec),Ft&&Ns(xa,new Qi(Ft.name,ea.id(Ft.name),$r.getAttribLocation(It,Ft.name),Ft))}To.profile&&(bi.getMaxUniformsCount=function(){var es=0;return Tl.forEach(function(Go){Go.stats.uniformsCount>es&&(es=Go.stats.uniformsCount)}),es},bi.getMaxAttributesCount=function(){var es=0;return Tl.forEach(function(Go){Go.stats.attributesCount>es&&(es=Go.stats.attributesCount)}),es});function Ol(){_o={},Ss={};for(var es=0;es<Tl.length;++es)Xl(Tl[es],null,Tl[es].attributes.map(function(Go){return[Go.location,Go.name]}))}return{clear:function(){var Go=$r.deleteShader.bind($r);ta(_o).forEach(Go),_o={},ta(Ss).forEach(Go),Ss={},Tl.forEach(function(Yo){$r.deleteProgram(Yo.program)}),Tl.length=0,yl={},bi.shaderCount=0},program:function(Go,Yo,Ec,Ft){Le.command(Go>=0,"missing vertex shader",Ec),Le.command(Yo>=0,"missing fragment shader",Ec);var je=yl[Yo];je||(je=yl[Yo]={});var yt=je[Go];if(yt&&(yt.refCount++,!Ft))return yt;var It=new ac(Yo,Go);return bi.shaderCount++,Xl(It,Ec,Ft),yt||(je[Go]=It),Tl.push(It),o(It,{destroy:function(){if(It.refCount--,It.refCount<=0){$r.deleteProgram(It.program);var In=Tl.indexOf(It);Tl.splice(In,1),bi.shaderCount--}je[It.vertId].refCount<=0&&($r.deleteShader(Ss[It.vertId]),delete Ss[It.vertId],delete yl[It.fragId][It.vertId]),Object.keys(yl[It.fragId]).length||($r.deleteShader(_o[It.fragId]),delete _o[It.fragId],delete yl[It.fragId])}})},restore:Ol,shader:kl,frag:-1,vert:-1}}var us=6408,xo=5121,Qo=3333,gs=5126;function ds($r,ea,bi,To,_o,Ss,Qi){function Ns(Tl){var ll;ea.next===null?(Le(_o.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),ll=xo):(Le(ea.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),ll=ea.next.colorAttachments[0].texture._texture.type,Ss.oes_texture_float?(Le(ll===xo||ll===gs,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),ll===gs&&Le(Qi.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):Le(ll===xo,"Reading from a framebuffer is only allowed for the type 'uint8'"));var ac=0,Xl=0,Ol=To.framebufferWidth,es=To.framebufferHeight,Go=null;N(Tl)?Go=Tl:Tl&&(Le.type(Tl,"object","invalid arguments to regl.read()"),ac=Tl.x|0,Xl=Tl.y|0,Le(ac>=0&&ac<To.framebufferWidth,"invalid x offset for regl.read"),Le(Xl>=0&&Xl<To.framebufferHeight,"invalid y offset for regl.read"),Ol=(Tl.width||To.framebufferWidth-ac)|0,es=(Tl.height||To.framebufferHeight-Xl)|0,Go=Tl.data||null),Go&&(ll===xo?Le(Go instanceof Uint8Array,"buffer must be 'Uint8Array' when reading from a framebuffer of type 'uint8'"):ll===gs&&Le(Go instanceof Float32Array,"buffer must be 'Float32Array' when reading from a framebuffer of type 'float'")),Le(Ol>0&&Ol+ac<=To.framebufferWidth,"invalid width for read pixels"),Le(es>0&&es+Xl<=To.framebufferHeight,"invalid height for read pixels"),bi();var Yo=Ol*es*4;return Go||(ll===xo?Go=new Uint8Array(Yo):ll===gs&&(Go=Go||new Float32Array(Yo))),Le.isTypedArray(Go,"data buffer for regl.read() must be a typedarray"),Le(Go.byteLength>=Yo,"data buffer for regl.read() too small"),$r.pixelStorei(Qo,4),$r.readPixels(ac,Xl,Ol,es,us,ll,Go),Go}function kl(Tl){var ll;return ea.setFBO({framebuffer:Tl.framebuffer},function(){ll=Ns(Tl)}),ll}function yl(Tl){return!Tl||!("framebuffer"in Tl)?Ns(Tl):kl(Tl)}return yl}function nl($r){return Array.prototype.slice.call($r)}function nc($r){return nl($r).join("")}function Kl(){var $r=0,ea=[],bi=[];function To(ll){for(var ac=0;ac<bi.length;++ac)if(bi[ac]===ll)return ea[ac];var Xl="g"+$r++;return ea.push(Xl),bi.push(ll),Xl}function _o(){var ll=[];function ac(){ll.push.apply(ll,nl(arguments))}var Xl=[];function Ol(){var es="v"+$r++;return Xl.push(es),arguments.length>0&&(ll.push(es,"="),ll.push.apply(ll,nl(arguments)),ll.push(";")),es}return o(ac,{def:Ol,toString:function(){return nc([Xl.length>0?"var "+Xl.join(",")+";":"",nc(ll)])}})}function Ss(){var ll=_o(),ac=_o(),Xl=ll.toString,Ol=ac.toString;function es(Go,Yo){ac(Go,Yo,"=",ll.def(Go,Yo),";")}return o(function(){ll.apply(ll,nl(arguments))},{def:ll.def,entry:ll,exit:ac,save:es,set:function(Yo,Ec,Ft){es(Yo,Ec),ll(Yo,Ec,"=",Ft,";")},toString:function(){return Xl()+Ol()}})}function Qi(){var ll=nc(arguments),ac=Ss(),Xl=Ss(),Ol=ac.toString,es=Xl.toString;return o(ac,{then:function(){return ac.apply(ac,nl(arguments)),this},else:function(){return Xl.apply(Xl,nl(arguments)),this},toString:function(){var Yo=es();return Yo&&(Yo="else{"+Yo+"}"),nc(["if(",ll,"){",Ol(),"}",Yo])}})}var Ns=_o(),kl={};function yl(ll,ac){var Xl=[];function Ol(){var Ft="a"+Xl.length;return Xl.push(Ft),Ft}ac=ac||0;for(var es=0;es<ac;++es)Ol();var Go=Ss(),Yo=Go.toString,Ec=kl[ll]=o(Go,{arg:Ol,toString:function(){return nc(["function(",Xl.join(),"){",Yo(),"}"])}});return Ec}function Tl(){var ll=['"use strict";',Ns,"return {"];Object.keys(kl).forEach(function(Ol){ll.push('"',Ol,'":',kl[Ol].toString(),",")}),ll.push("}");var ac=nc(ll).replace(/;/g,`;
|
||
`).replace(/}/g,`}
|
||
`).replace(/{/g,`{
|
||
`),Xl=Function.apply(null,ea.concat(ac));return Xl.apply(null,bi)}return{global:Ns,link:To,block:_o,proc:yl,scope:Ss,cond:Qi,compile:Tl}}var mu="xyzw".split(""),xc=5121,Ll=1,wc=2,Xu=0,_u=1,wu=2,fu=3,Kc=4,td=5,Ic=6,tu="dither",jf="blend.enable",Tu="blend.color",Ed="blend.equation",vd="blend.func",Gu="depth.enable",Op="depth.func",np="depth.range",$d="depth.mask",hd="colorMask",Ip="cull.enable",dd="cull.face",cr="frontFace",un="lineWidth",Jn="polygonOffset.enable",Xn="polygonOffset.offset",Vr="sample.alpha",Zn="sample.enable",pa="sample.coverage",Ha="stencil.enable",gi="stencil.mask",co="stencil.func",No="stencil.opFront",Ko="stencil.opBack",Jo="scissor.enable",gl="scissor.box",js="viewport",Zl="profile",ko="framebuffer",te="vert",Me="frag",ft="elements",Nt="primitive",xn="count",Yr="offset",qa="instances",Es="vao",Qs="Width",Hl="Height",Lc=ko+Qs,Pu=ko+Hl,Yf=js+Qs,yv=js+Hl,Cp="drawingBuffer",kv=Cp+Qs,Nv=Cp+Hl,Pv=[vd,Ed,co,No,Ko,pa,js,gl,Xn],sp=34962,Wp=34963,$h=35632,Hf=35633,Qc=3553,bp=34067,cv=2884,nh=3042,Kv=3024,am=2960,Nh=2929,Lp=3089,sh=32823,Lh=32926,mh=32928,fm=5126,rh=35664,Fp=35665,gh=35666,Am=5124,rc=35667,wl=35668,Sl=35669,Ac=35670,Ju=35671,Bc=35672,$u=35673,Nf=35674,Ou=35675,Lf=35676,Mf=35678,Sd=35680,jv=4,uv=1028,Fh=1029,fv=2304,Yv=2305,wh=32775,im=32776,fg=519,_h=7680,Bv=0,ah=1,om=32774,Og=513,Kh=36160,Dp=36064,Hp={"0":0,"1":1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Yh=["constant color, constant alpha","one minus constant color, constant alpha","constant color, one minus constant alpha","one minus constant color, one minus constant alpha","constant alpha, constant color","constant alpha, one minus constant color","one minus constant alpha, constant color","one minus constant alpha, one minus constant color"],ev={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Kd={"0":0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},jp={frag:$h,vert:Hf},vf={cw:fv,ccw:Yv};function tv($r){return Array.isArray($r)||N($r)||ar($r)}function Xv($r){return $r.sort(function(ea,bi){return ea===js?-1:bi===js?1:ea<bi?-1:1})}function nv($r,ea,bi,To){this.thisDep=$r,this.contextDep=ea,this.propDep=bi,this.append=To}function lh($r){return $r&&!($r.thisDep||$r.contextDep||$r.propDep)}function Bp($r){return new nv(!1,!1,!1,$r)}function Uv($r,ea){var bi=$r.type;if(bi===Xu){var To=$r.data.length;return new nv(!0,To>=1,To>=2,ea)}else if(bi===Kc){var _o=$r.data;return new nv(_o.thisDep,_o.contextDep,_o.propDep,ea)}else{if(bi===td)return new nv(!1,!1,!1,ea);if(bi===Ic){for(var Ss=!1,Qi=!1,Ns=!1,kl=0;kl<$r.data.length;++kl){var yl=$r.data[kl];if(yl.type===_u)Ns=!0;else if(yl.type===wu)Qi=!0;else if(yl.type===fu)Ss=!0;else if(yl.type===Xu){Ss=!0;var Tl=yl.data;Tl>=1&&(Qi=!0),Tl>=2&&(Ns=!0)}else yl.type===Kc&&(Ss=Ss||yl.data.thisDep,Qi=Qi||yl.data.contextDep,Ns=Ns||yl.data.propDep)}return new nv(Ss,Qi,Ns,ea)}else return new nv(bi===fu,bi===wu,bi===_u,ea)}}var dv=new nv(!1,!1,!1,function(){});function Ig($r,ea,bi,To,_o,Ss,Qi,Ns,kl,yl,Tl,ll,ac,Xl,Ol){var es=yl.Record,Go={add:32774,subtract:32778,"reverse subtract":32779};bi.ext_blend_minmax&&(Go.min=wh,Go.max=im);var Yo=bi.angle_instanced_arrays,Ec=bi.webgl_draw_buffers,Ft={dirty:!0,profile:Ol.profile},je={},yt=[],It={},Sn={};function In(ri){return ri.replace(".","_")}function mr(ri,Ta,eo){var Po=In(ri);yt.push(ri),je[Po]=Ft[Po]=!!eo,It[Po]=Ta}function Wr(ri,Ta,eo){var Po=In(ri);yt.push(ri),Array.isArray(eo)?(Ft[Po]=eo.slice(),je[Po]=eo.slice()):Ft[Po]=je[Po]=eo,Sn[Po]=Ta}mr(tu,Kv),mr(jf,nh),Wr(Tu,"blendColor",[0,0,0,0]),Wr(Ed,"blendEquationSeparate",[om,om]),Wr(vd,"blendFuncSeparate",[ah,Bv,ah,Bv]),mr(Gu,Nh,!0),Wr(Op,"depthFunc",Og),Wr(np,"depthRange",[0,1]),Wr($d,"depthMask",!0),Wr(hd,hd,[!0,!0,!0,!0]),mr(Ip,cv),Wr(dd,"cullFace",Fh),Wr(cr,cr,Yv),Wr(un,un,1),mr(Jn,sh),Wr(Xn,"polygonOffset",[0,0]),mr(Vr,Lh),mr(Zn,mh),Wr(pa,"sampleCoverage",[1,!1]),mr(Ha,am),Wr(gi,"stencilMask",-1),Wr(co,"stencilFunc",[fg,0,-1]),Wr(No,"stencilOpSeparate",[uv,_h,_h,_h]),Wr(Ko,"stencilOpSeparate",[Fh,_h,_h,_h]),mr(Jo,Lp),Wr(gl,"scissor",[0,0,$r.drawingBufferWidth,$r.drawingBufferHeight]),Wr(js,js,[0,0,$r.drawingBufferWidth,$r.drawingBufferHeight]);var Ir={gl:$r,context:ac,strings:ea,next:je,current:Ft,draw:ll,elements:Ss,buffer:_o,shader:Tl,attributes:yl.state,vao:yl,uniforms:kl,framebuffer:Ns,extensions:bi,timer:Xl,isBufferArgs:tv},Br={primTypes:Xi,compareFuncs:ev,blendFuncs:Hp,blendEquations:Go,stencilOps:Kd,glTypes:Ar,orientationType:vf};Le.optional(function(){Ir.isArrayLike=Ci}),Ec&&(Br.backBuffer=[Fh],Br.drawBuffer=er(To.maxDrawbuffers,function(ri){return ri===0?[0]:er(ri,function(Ta){return Dp+Ta})}));var xa=0;function vi(){var ri=Kl(),Ta=ri.link,eo=ri.global;ri.id=xa++,ri.batchId="0";var Po=Ta(Ir),qi=ri.shared={props:"a0"};Object.keys(Ir).forEach(function(Zi){qi[Zi]=eo.def(Po,".",Zi)}),Le.optional(function(){ri.CHECK=Ta(Le),ri.commandStr=Le.guessCommand(),ri.command=Ta(ri.commandStr),ri.assert=function(Zi,Va,Bi){Zi("if(!(",Va,"))",this.CHECK,".commandRaise(",Ta(Bi),",",this.command,");")},Br.invalidBlendCombinations=Yh});var Ii=ri.next={},Gi=ri.current={};Object.keys(Sn).forEach(function(Zi){Array.isArray(Ft[Zi])&&(Ii[Zi]=eo.def(qi.next,".",Zi),Gi[Zi]=eo.def(qi.current,".",Zi))});var po=ri.constants={};Object.keys(Br).forEach(function(Zi){po[Zi]=eo.def(JSON.stringify(Br[Zi]))}),ri.invoke=function(Zi,Va){switch(Va.type){case Xu:var Bi=["this",qi.context,qi.props,ri.batchId];return Zi.def(Ta(Va.data),".call(",Bi.slice(0,Math.max(Va.data.length+1,4)),")");case _u:return Zi.def(qi.props,Va.data);case wu:return Zi.def(qi.context,Va.data);case fu:return Zi.def("this",Va.data);case Kc:return Va.data.append(ri,Zi),Va.data.ref;case td:return Va.data.toString();case Ic:return Va.data.map(function($o){return ri.invoke(Zi,$o)})}},ri.attribCache={};var si={};return ri.scopeAttrib=function(Zi){var Va=ea.id(Zi);if(Va in si)return si[Va];var Bi=yl.scope[Va];Bi||(Bi=yl.scope[Va]=new es);var $o=si[Va]=Ta(Bi);return $o},ri}function Ai(ri){var Ta=ri.static,eo=ri.dynamic,Po;if(Zl in Ta){var qi=!!Ta[Zl];Po=Bp(function(Gi,po){return qi}),Po.enable=qi}else if(Zl in eo){var Ii=eo[Zl];Po=Uv(Ii,function(Gi,po){return Gi.invoke(po,Ii)})}return Po}function Yi(ri,Ta){var eo=ri.static,Po=ri.dynamic;if(ko in eo){var qi=eo[ko];return qi?(qi=Ns.getFramebuffer(qi),Le.command(qi,"invalid framebuffer object"),Bp(function(Gi,po){var si=Gi.link(qi),Zi=Gi.shared;po.set(Zi.framebuffer,".next",si);var Va=Zi.context;return po.set(Va,"."+Lc,si+".width"),po.set(Va,"."+Pu,si+".height"),si})):Bp(function(Gi,po){var si=Gi.shared;po.set(si.framebuffer,".next","null");var Zi=si.context;return po.set(Zi,"."+Lc,Zi+"."+kv),po.set(Zi,"."+Pu,Zi+"."+Nv),"null"})}else if(ko in Po){var Ii=Po[ko];return Uv(Ii,function(Gi,po){var si=Gi.invoke(po,Ii),Zi=Gi.shared,Va=Zi.framebuffer,Bi=po.def(Va,".getFramebuffer(",si,")");Le.optional(function(){Gi.assert(po,"!"+si+"||"+Bi,"invalid framebuffer object")}),po.set(Va,".next",Bi);var $o=Zi.context;return po.set($o,"."+Lc,Bi+"?"+Bi+".width:"+$o+"."+kv),po.set($o,"."+Pu,Bi+"?"+Bi+".height:"+$o+"."+Nv),Bi})}else return null}function Wo(ri,Ta,eo){var Po=ri.static,qi=ri.dynamic;function Ii(si){if(si in Po){var Zi=Po[si];Le.commandType(Zi,"object","invalid "+si,eo.commandStr);var Va=!0,Bi=Zi.x|0,$o=Zi.y|0,Vs,Cs;return"width"in Zi?(Vs=Zi.width|0,Le.command(Vs>=0,"invalid "+si,eo.commandStr)):Va=!1,"height"in Zi?(Cs=Zi.height|0,Le.command(Cs>=0,"invalid "+si,eo.commandStr)):Va=!1,new nv(!Va&&Ta&&Ta.thisDep,!Va&&Ta&&Ta.contextDep,!Va&&Ta&&Ta.propDep,function(ou,Xf){var pu=ou.shared.context,sf=Vs;"width"in Zi||(sf=Xf.def(pu,".",Lc,"-",Bi));var Jf=Cs;return"height"in Zi||(Jf=Xf.def(pu,".",Pu,"-",$o)),[Bi,$o,sf,Jf]})}else if(si in qi){var vs=qi[si],Vl=Uv(vs,function(ou,Xf){var pu=ou.invoke(Xf,vs);Le.optional(function(){ou.assert(Xf,pu+"&&typeof "+pu+'==="object"',"invalid "+si)});var sf=ou.shared.context,Jf=Xf.def(pu,".x|0"),Vd=Xf.def(pu,".y|0"),rv=Xf.def('"width" in ',pu,"?",pu,".width|0:","(",sf,".",Lc,"-",Jf,")"),Jv=Xf.def('"height" in ',pu,"?",pu,".height|0:","(",sf,".",Pu,"-",Vd,")");return Le.optional(function(){ou.assert(Xf,rv+">=0&&"+Jv+">=0","invalid "+si)}),[Jf,Vd,rv,Jv]});return Ta&&(Vl.thisDep=Vl.thisDep||Ta.thisDep,Vl.contextDep=Vl.contextDep||Ta.contextDep,Vl.propDep=Vl.propDep||Ta.propDep),Vl}else return Ta?new nv(Ta.thisDep,Ta.contextDep,Ta.propDep,function(ou,Xf){var pu=ou.shared.context;return[0,0,Xf.def(pu,".",Lc),Xf.def(pu,".",Pu)]}):null}var Gi=Ii(js);if(Gi){var po=Gi;Gi=new nv(Gi.thisDep,Gi.contextDep,Gi.propDep,function(si,Zi){var Va=po.append(si,Zi),Bi=si.shared.context;return Zi.set(Bi,"."+Yf,Va[2]),Zi.set(Bi,"."+yv,Va[3]),Va})}return{viewport:Gi,scissor_box:Ii(gl)}}function _s(ri,Ta){var eo=ri.static,Po=typeof eo[Me]=="string"&&typeof eo[te]=="string";if(Po){if(Object.keys(Ta.dynamic).length>0)return null;var qi=Ta.static,Ii=Object.keys(qi);if(Ii.length>0&&typeof qi[Ii[0]]=="number"){for(var Gi=[],po=0;po<Ii.length;++po)Le(typeof qi[Ii[po]]=="number","must specify all vertex attribute locations when using vaos"),Gi.push([qi[Ii[po]]|0,Ii[po]]);return Gi}}return null}function ys(ri,Ta,eo){var Po=ri.static,qi=ri.dynamic;function Ii(Va){if(Va in Po){var Bi=ea.id(Po[Va]);Le.optional(function(){Tl.shader(jp[Va],Bi,Le.guessCommand())});var $o=Bp(function(){return Bi});return $o.id=Bi,$o}else if(Va in qi){var Vs=qi[Va];return Uv(Vs,function(Cs,vs){var Vl=Cs.invoke(vs,Vs),ou=vs.def(Cs.shared.strings,".id(",Vl,")");return Le.optional(function(){vs(Cs.shared.shader,".shader(",jp[Va],",",ou,",",Cs.command,");")}),ou})}return null}var Gi=Ii(Me),po=Ii(te),si=null,Zi;return lh(Gi)&&lh(po)?(si=Tl.program(po.id,Gi.id,null,eo),Zi=Bp(function(Va,Bi){return Va.link(si)})):Zi=new nv(Gi&&Gi.thisDep||po&&po.thisDep,Gi&&Gi.contextDep||po&&po.contextDep,Gi&&Gi.propDep||po&&po.propDep,function(Va,Bi){var $o=Va.shared.shader,Vs;Gi?Vs=Gi.append(Va,Bi):Vs=Bi.def($o,".",Me);var Cs;po?Cs=po.append(Va,Bi):Cs=Bi.def($o,".",te);var vs=$o+".program("+Cs+","+Vs;return Le.optional(function(){vs+=","+Va.command}),Bi.def(vs+")")}),{frag:Gi,vert:po,progVar:Zi,program:si}}function qs(ri,Ta){var eo=ri.static,Po=ri.dynamic;function qi(){if(ft in eo){var Va=eo[ft];tv(Va)?Va=Ss.getElements(Ss.create(Va,!0)):Va&&(Va=Ss.getElements(Va),Le.command(Va,"invalid elements",Ta.commandStr));var Bi=Bp(function(Vs,Cs){if(Va){var vs=Vs.link(Va);return Vs.ELEMENTS=vs,vs}return Vs.ELEMENTS=null,null});return Bi.value=Va,Bi}else if(ft in Po){var $o=Po[ft];return Uv($o,function(Vs,Cs){var vs=Vs.shared,Vl=vs.isBufferArgs,ou=vs.elements,Xf=Vs.invoke(Cs,$o),pu=Cs.def("null"),sf=Cs.def(Vl,"(",Xf,")"),Jf=Vs.cond(sf).then(pu,"=",ou,".createStream(",Xf,");").else(pu,"=",ou,".getElements(",Xf,");");return Le.optional(function(){Vs.assert(Jf.else,"!"+Xf+"||"+pu,"invalid elements")}),Cs.entry(Jf),Cs.exit(Vs.cond(sf).then(ou,".destroyStream(",pu,");")),Vs.ELEMENTS=pu,pu})}return null}var Ii=qi();function Gi(){if(Nt in eo){var Va=eo[Nt];return Le.commandParameter(Va,Xi,"invalid primitve",Ta.commandStr),Bp(function($o,Vs){return Xi[Va]})}else if(Nt in Po){var Bi=Po[Nt];return Uv(Bi,function($o,Vs){var Cs=$o.constants.primTypes,vs=$o.invoke(Vs,Bi);return Le.optional(function(){$o.assert(Vs,vs+" in "+Cs,"invalid primitive, must be one of "+Object.keys(Xi))}),Vs.def(Cs,"[",vs,"]")})}else if(Ii)return lh(Ii)?Ii.value?Bp(function($o,Vs){return Vs.def($o.ELEMENTS,".primType")}):Bp(function(){return jv}):new nv(Ii.thisDep,Ii.contextDep,Ii.propDep,function($o,Vs){var Cs=$o.ELEMENTS;return Vs.def(Cs,"?",Cs,".primType:",jv)});return null}function po(Va,Bi){if(Va in eo){var $o=eo[Va]|0;return Le.command(!Bi||$o>=0,"invalid "+Va,Ta.commandStr),Bp(function(Cs,vs){return Bi&&(Cs.OFFSET=$o),$o})}else if(Va in Po){var Vs=Po[Va];return Uv(Vs,function(Cs,vs){var Vl=Cs.invoke(vs,Vs);return Bi&&(Cs.OFFSET=Vl,Le.optional(function(){Cs.assert(vs,Vl+">=0","invalid "+Va)})),Vl})}else if(Bi&&Ii)return Bp(function(Cs,vs){return Cs.OFFSET="0",0});return null}var si=po(Yr,!0);function Zi(){if(xn in eo){var Va=eo[xn]|0;return Le.command(typeof Va=="number"&&Va>=0,"invalid vertex count",Ta.commandStr),Bp(function(){return Va})}else if(xn in Po){var Bi=Po[xn];return Uv(Bi,function(Cs,vs){var Vl=Cs.invoke(vs,Bi);return Le.optional(function(){Cs.assert(vs,"typeof "+Vl+'==="number"&&'+Vl+">=0&&"+Vl+"===("+Vl+"|0)","invalid vertex count")}),Vl})}else if(Ii)if(lh(Ii)){if(Ii)return si?new nv(si.thisDep,si.contextDep,si.propDep,function(Cs,vs){var Vl=vs.def(Cs.ELEMENTS,".vertCount-",Cs.OFFSET);return Le.optional(function(){Cs.assert(vs,Vl+">=0","invalid vertex offset/element buffer too small")}),Vl}):Bp(function(Cs,vs){return vs.def(Cs.ELEMENTS,".vertCount")});var $o=Bp(function(){return-1});return Le.optional(function(){$o.MISSING=!0}),$o}else{var Vs=new nv(Ii.thisDep||si.thisDep,Ii.contextDep||si.contextDep,Ii.propDep||si.propDep,function(Cs,vs){var Vl=Cs.ELEMENTS;return Cs.OFFSET?vs.def(Vl,"?",Vl,".vertCount-",Cs.OFFSET,":-1"):vs.def(Vl,"?",Vl,".vertCount:-1")});return Le.optional(function(){Vs.DYNAMIC=!0}),Vs}return null}return{elements:Ii,primitive:Gi(),count:Zi(),instances:po(qa,!1),offset:si}}function uc(ri,Ta){var eo=ri.static,Po=ri.dynamic,qi={};return yt.forEach(function(Ii){var Gi=In(Ii);function po(si,Zi){if(Ii in eo){var Va=si(eo[Ii]);qi[Gi]=Bp(function(){return Va})}else if(Ii in Po){var Bi=Po[Ii];qi[Gi]=Uv(Bi,function($o,Vs){return Zi($o,Vs,$o.invoke(Vs,Bi))})}}switch(Ii){case Ip:case jf:case tu:case Ha:case Gu:case Jo:case Jn:case Vr:case Zn:case $d:return po(function(si){return Le.commandType(si,"boolean",Ii,Ta.commandStr),si},function(si,Zi,Va){return Le.optional(function(){si.assert(Zi,"typeof "+Va+'==="boolean"',"invalid flag "+Ii,si.commandStr)}),Va});case Op:return po(function(si){return Le.commandParameter(si,ev,"invalid "+Ii,Ta.commandStr),ev[si]},function(si,Zi,Va){var Bi=si.constants.compareFuncs;return Le.optional(function(){si.assert(Zi,Va+" in "+Bi,"invalid "+Ii+", must be one of "+Object.keys(ev))}),Zi.def(Bi,"[",Va,"]")});case np:return po(function(si){return Le.command(Ci(si)&&si.length===2&&typeof si[0]=="number"&&typeof si[1]=="number"&&si[0]<=si[1],"depth range is 2d array",Ta.commandStr),si},function(si,Zi,Va){Le.optional(function(){si.assert(Zi,si.shared.isArrayLike+"("+Va+")&&"+Va+".length===2&&typeof "+Va+'[0]==="number"&&typeof '+Va+'[1]==="number"&&'+Va+"[0]<="+Va+"[1]","depth range must be a 2d array")});var Bi=Zi.def("+",Va,"[0]"),$o=Zi.def("+",Va,"[1]");return[Bi,$o]});case vd:return po(function(si){Le.commandType(si,"object","blend.func",Ta.commandStr);var Zi="srcRGB"in si?si.srcRGB:si.src,Va="srcAlpha"in si?si.srcAlpha:si.src,Bi="dstRGB"in si?si.dstRGB:si.dst,$o="dstAlpha"in si?si.dstAlpha:si.dst;return Le.commandParameter(Zi,Hp,Gi+".srcRGB",Ta.commandStr),Le.commandParameter(Va,Hp,Gi+".srcAlpha",Ta.commandStr),Le.commandParameter(Bi,Hp,Gi+".dstRGB",Ta.commandStr),Le.commandParameter($o,Hp,Gi+".dstAlpha",Ta.commandStr),Le.command(Yh.indexOf(Zi+", "+Bi)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+Zi+", "+Bi+")",Ta.commandStr),[Hp[Zi],Hp[Bi],Hp[Va],Hp[$o]]},function(si,Zi,Va){var Bi=si.constants.blendFuncs;Le.optional(function(){si.assert(Zi,Va+"&&typeof "+Va+'==="object"',"invalid blend func, must be an object")});function $o(pu,sf){var Jf=Zi.def('"',pu,sf,'" in ',Va,"?",Va,".",pu,sf,":",Va,".",pu);return Le.optional(function(){si.assert(Zi,Jf+" in "+Bi,"invalid "+Ii+"."+pu+sf+", must be one of "+Object.keys(Hp))}),Jf}var Vs=$o("src","RGB"),Cs=$o("dst","RGB");Le.optional(function(){var pu=si.constants.invalidBlendCombinations;si.assert(Zi,pu+".indexOf("+Vs+'+", "+'+Cs+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var vs=Zi.def(Bi,"[",Vs,"]"),Vl=Zi.def(Bi,"[",$o("src","Alpha"),"]"),ou=Zi.def(Bi,"[",Cs,"]"),Xf=Zi.def(Bi,"[",$o("dst","Alpha"),"]");return[vs,ou,Vl,Xf]});case Ed:return po(function(si){if(typeof si=="string")return Le.commandParameter(si,Go,"invalid "+Ii,Ta.commandStr),[Go[si],Go[si]];if(typeof si=="object")return Le.commandParameter(si.rgb,Go,Ii+".rgb",Ta.commandStr),Le.commandParameter(si.alpha,Go,Ii+".alpha",Ta.commandStr),[Go[si.rgb],Go[si.alpha]];Le.commandRaise("invalid blend.equation",Ta.commandStr)},function(si,Zi,Va){var Bi=si.constants.blendEquations,$o=Zi.def(),Vs=Zi.def(),Cs=si.cond("typeof ",Va,'==="string"');return Le.optional(function(){function vs(Vl,ou,Xf){si.assert(Vl,Xf+" in "+Bi,"invalid "+ou+", must be one of "+Object.keys(Go))}vs(Cs.then,Ii,Va),si.assert(Cs.else,Va+"&&typeof "+Va+'==="object"',"invalid "+Ii),vs(Cs.else,Ii+".rgb",Va+".rgb"),vs(Cs.else,Ii+".alpha",Va+".alpha")}),Cs.then($o,"=",Vs,"=",Bi,"[",Va,"];"),Cs.else($o,"=",Bi,"[",Va,".rgb];",Vs,"=",Bi,"[",Va,".alpha];"),Zi(Cs),[$o,Vs]});case Tu:return po(function(si){return Le.command(Ci(si)&&si.length===4,"blend.color must be a 4d array",Ta.commandStr),er(4,function(Zi){return+si[Zi]})},function(si,Zi,Va){return Le.optional(function(){si.assert(Zi,si.shared.isArrayLike+"("+Va+")&&"+Va+".length===4","blend.color must be a 4d array")}),er(4,function(Bi){return Zi.def("+",Va,"[",Bi,"]")})});case gi:return po(function(si){return Le.commandType(si,"number",Gi,Ta.commandStr),si|0},function(si,Zi,Va){return Le.optional(function(){si.assert(Zi,"typeof "+Va+'==="number"',"invalid stencil.mask")}),Zi.def(Va,"|0")});case co:return po(function(si){Le.commandType(si,"object",Gi,Ta.commandStr);var Zi=si.cmp||"keep",Va=si.ref||0,Bi="mask"in si?si.mask:-1;return Le.commandParameter(Zi,ev,Ii+".cmp",Ta.commandStr),Le.commandType(Va,"number",Ii+".ref",Ta.commandStr),Le.commandType(Bi,"number",Ii+".mask",Ta.commandStr),[ev[Zi],Va,Bi]},function(si,Zi,Va){var Bi=si.constants.compareFuncs;Le.optional(function(){function vs(){si.assert(Zi,Array.prototype.join.call(arguments,""),"invalid stencil.func")}vs(Va+"&&typeof ",Va,'==="object"'),vs('!("cmp" in ',Va,")||(",Va,".cmp in ",Bi,")")});var $o=Zi.def('"cmp" in ',Va,"?",Bi,"[",Va,".cmp]",":",_h),Vs=Zi.def(Va,".ref|0"),Cs=Zi.def('"mask" in ',Va,"?",Va,".mask|0:-1");return[$o,Vs,Cs]});case No:case Ko:return po(function(si){Le.commandType(si,"object",Gi,Ta.commandStr);var Zi=si.fail||"keep",Va=si.zfail||"keep",Bi=si.zpass||"keep";return Le.commandParameter(Zi,Kd,Ii+".fail",Ta.commandStr),Le.commandParameter(Va,Kd,Ii+".zfail",Ta.commandStr),Le.commandParameter(Bi,Kd,Ii+".zpass",Ta.commandStr),[Ii===Ko?Fh:uv,Kd[Zi],Kd[Va],Kd[Bi]]},function(si,Zi,Va){var Bi=si.constants.stencilOps;Le.optional(function(){si.assert(Zi,Va+"&&typeof "+Va+'==="object"',"invalid "+Ii)});function $o(Vs){return Le.optional(function(){si.assert(Zi,'!("'+Vs+'" in '+Va+")||("+Va+"."+Vs+" in "+Bi+")","invalid "+Ii+"."+Vs+", must be one of "+Object.keys(Kd))}),Zi.def('"',Vs,'" in ',Va,"?",Bi,"[",Va,".",Vs,"]:",_h)}return[Ii===Ko?Fh:uv,$o("fail"),$o("zfail"),$o("zpass")]});case Xn:return po(function(si){Le.commandType(si,"object",Gi,Ta.commandStr);var Zi=si.factor|0,Va=si.units|0;return Le.commandType(Zi,"number",Gi+".factor",Ta.commandStr),Le.commandType(Va,"number",Gi+".units",Ta.commandStr),[Zi,Va]},function(si,Zi,Va){Le.optional(function(){si.assert(Zi,Va+"&&typeof "+Va+'==="object"',"invalid "+Ii)});var Bi=Zi.def(Va,".factor|0"),$o=Zi.def(Va,".units|0");return[Bi,$o]});case dd:return po(function(si){var Zi=0;return si==="front"?Zi=uv:si==="back"&&(Zi=Fh),Le.command(!!Zi,Gi,Ta.commandStr),Zi},function(si,Zi,Va){return Le.optional(function(){si.assert(Zi,Va+'==="front"||'+Va+'==="back"',"invalid cull.face")}),Zi.def(Va,'==="front"?',uv,":",Fh)});case un:return po(function(si){return Le.command(typeof si=="number"&&si>=To.lineWidthDims[0]&&si<=To.lineWidthDims[1],"invalid line width, must be a positive number between "+To.lineWidthDims[0]+" and "+To.lineWidthDims[1],Ta.commandStr),si},function(si,Zi,Va){return Le.optional(function(){si.assert(Zi,"typeof "+Va+'==="number"&&'+Va+">="+To.lineWidthDims[0]+"&&"+Va+"<="+To.lineWidthDims[1],"invalid line width")}),Va});case cr:return po(function(si){return Le.commandParameter(si,vf,Gi,Ta.commandStr),vf[si]},function(si,Zi,Va){return Le.optional(function(){si.assert(Zi,Va+'==="cw"||'+Va+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),Zi.def(Va+'==="cw"?'+fv+":"+Yv)});case hd:return po(function(si){return Le.command(Ci(si)&&si.length===4,"color.mask must be length 4 array",Ta.commandStr),si.map(function(Zi){return!!Zi})},function(si,Zi,Va){return Le.optional(function(){si.assert(Zi,si.shared.isArrayLike+"("+Va+")&&"+Va+".length===4","invalid color.mask")}),er(4,function(Bi){return"!!"+Va+"["+Bi+"]"})});case pa:return po(function(si){Le.command(typeof si=="object"&&si,Gi,Ta.commandStr);var Zi="value"in si?si.value:1,Va=!!si.invert;return Le.command(typeof Zi=="number"&&Zi>=0&&Zi<=1,"sample.coverage.value must be a number between 0 and 1",Ta.commandStr),[Zi,Va]},function(si,Zi,Va){Le.optional(function(){si.assert(Zi,Va+"&&typeof "+Va+'==="object"',"invalid sample.coverage")});var Bi=Zi.def('"value" in ',Va,"?+",Va,".value:1"),$o=Zi.def("!!",Va,".invert");return[Bi,$o]})}}),qi}function du(ri,Ta){var eo=ri.static,Po=ri.dynamic,qi={};return Object.keys(eo).forEach(function(Ii){var Gi=eo[Ii],po;if(typeof Gi=="number"||typeof Gi=="boolean")po=Bp(function(){return Gi});else if(typeof Gi=="function"){var si=Gi._reglType;si==="texture2d"||si==="textureCube"?po=Bp(function(Zi){return Zi.link(Gi)}):si==="framebuffer"||si==="framebufferCube"?(Le.command(Gi.color.length>0,'missing color attachment for framebuffer sent to uniform "'+Ii+'"',Ta.commandStr),po=Bp(function(Zi){return Zi.link(Gi.color[0])})):Le.commandRaise('invalid data for uniform "'+Ii+'"',Ta.commandStr)}else Ci(Gi)?po=Bp(function(Zi){var Va=Zi.global.def("[",er(Gi.length,function(Bi){return Le.command(typeof Gi[Bi]=="number"||typeof Gi[Bi]=="boolean","invalid uniform "+Ii,Zi.commandStr),Gi[Bi]}),"]");return Va}):Le.commandRaise('invalid or missing data for uniform "'+Ii+'"',Ta.commandStr);po.value=Gi,qi[Ii]=po}),Object.keys(Po).forEach(function(Ii){var Gi=Po[Ii];qi[Ii]=Uv(Gi,function(po,si){return po.invoke(si,Gi)})}),qi}function Pc(ri,Ta){var eo=ri.static,Po=ri.dynamic,qi={};return Object.keys(eo).forEach(function(Ii){var Gi=eo[Ii],po=ea.id(Ii),si=new es;if(tv(Gi))si.state=Ll,si.buffer=_o.getBuffer(_o.create(Gi,sp,!1,!0)),si.type=0;else{var Zi=_o.getBuffer(Gi);if(Zi)si.state=Ll,si.buffer=Zi,si.type=0;else if(Le.command(typeof Gi=="object"&&Gi,"invalid data for attribute "+Ii,Ta.commandStr),"constant"in Gi){var Va=Gi.constant;si.buffer="null",si.state=wc,typeof Va=="number"?si.x=Va:(Le.command(Ci(Va)&&Va.length>0&&Va.length<=4,"invalid constant for attribute "+Ii,Ta.commandStr),mu.forEach(function(ou,Xf){Xf<Va.length&&(si[ou]=Va[Xf])}))}else{tv(Gi.buffer)?Zi=_o.getBuffer(_o.create(Gi.buffer,sp,!1,!0)):Zi=_o.getBuffer(Gi.buffer),Le.command(!!Zi,'missing buffer for attribute "'+Ii+'"',Ta.commandStr);var Bi=Gi.offset|0;Le.command(Bi>=0,'invalid offset for attribute "'+Ii+'"',Ta.commandStr);var $o=Gi.stride|0;Le.command($o>=0&&$o<256,'invalid stride for attribute "'+Ii+'", must be integer betweeen [0, 255]',Ta.commandStr);var Vs=Gi.size|0;Le.command(!("size"in Gi)||Vs>0&&Vs<=4,'invalid size for attribute "'+Ii+'", must be 1,2,3,4',Ta.commandStr);var Cs=!!Gi.normalized,vs=0;"type"in Gi&&(Le.commandParameter(Gi.type,Ar,"invalid type for attribute "+Ii,Ta.commandStr),vs=Ar[Gi.type]);var Vl=Gi.divisor|0;"divisor"in Gi&&(Le.command(Vl===0||Yo,'cannot specify divisor for attribute "'+Ii+'", instancing not supported',Ta.commandStr),Le.command(Vl>=0,'invalid divisor for attribute "'+Ii+'"',Ta.commandStr)),Le.optional(function(){var ou=Ta.commandStr,Xf=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(Gi).forEach(function(pu){Le.command(Xf.indexOf(pu)>=0,'unknown parameter "'+pu+'" for attribute pointer "'+Ii+'" (valid parameters are '+Xf+")",ou)})}),si.buffer=Zi,si.state=Ll,si.size=Vs,si.normalized=Cs,si.type=vs||Zi.dtype,si.offset=Bi,si.stride=$o,si.divisor=Vl}}qi[Ii]=Bp(function(ou,Xf){var pu=ou.attribCache;if(po in pu)return pu[po];var sf={isStream:!1};return Object.keys(si).forEach(function(Jf){sf[Jf]=si[Jf]}),si.buffer&&(sf.buffer=ou.link(si.buffer),sf.type=sf.type||sf.buffer+".dtype"),pu[po]=sf,sf})}),Object.keys(Po).forEach(function(Ii){var Gi=Po[Ii];function po(si,Zi){var Va=si.invoke(Zi,Gi),Bi=si.shared,$o=si.constants,Vs=Bi.isBufferArgs,Cs=Bi.buffer;Le.optional(function(){si.assert(Zi,Va+"&&(typeof "+Va+'==="object"||typeof '+Va+'==="function")&&('+Vs+"("+Va+")||"+Cs+".getBuffer("+Va+")||"+Cs+".getBuffer("+Va+".buffer)||"+Vs+"("+Va+'.buffer)||("constant" in '+Va+"&&(typeof "+Va+'.constant==="number"||'+Bi.isArrayLike+"("+Va+".constant))))",'invalid dynamic attribute "'+Ii+'"')});var vs={isStream:Zi.def(!1)},Vl=new es;Vl.state=Ll,Object.keys(Vl).forEach(function(sf){vs[sf]=Zi.def(""+Vl[sf])});var ou=vs.buffer,Xf=vs.type;Zi("if(",Vs,"(",Va,")){",vs.isStream,"=true;",ou,"=",Cs,".createStream(",sp,",",Va,");",Xf,"=",ou,".dtype;","}else{",ou,"=",Cs,".getBuffer(",Va,");","if(",ou,"){",Xf,"=",ou,".dtype;",'}else if("constant" in ',Va,"){",vs.state,"=",wc,";","if(typeof "+Va+'.constant === "number"){',vs[mu[0]],"=",Va,".constant;",mu.slice(1).map(function(sf){return vs[sf]}).join("="),"=0;","}else{",mu.map(function(sf,Jf){return vs[sf]+"="+Va+".constant.length>"+Jf+"?"+Va+".constant["+Jf+"]:0;"}).join(""),"}}else{","if(",Vs,"(",Va,".buffer)){",ou,"=",Cs,".createStream(",sp,",",Va,".buffer);","}else{",ou,"=",Cs,".getBuffer(",Va,".buffer);","}",Xf,'="type" in ',Va,"?",$o.glTypes,"[",Va,".type]:",ou,".dtype;",vs.normalized,"=!!",Va,".normalized;");function pu(sf){Zi(vs[sf],"=",Va,".",sf,"|0;")}return pu("size"),pu("offset"),pu("stride"),pu("divisor"),Zi("}}"),Zi.exit("if(",vs.isStream,"){",Cs,".destroyStream(",ou,");","}"),vs}qi[Ii]=Uv(Gi,po)}),qi}function Ef(ri,Ta){var eo=ri.static,Po=ri.dynamic;if(Es in eo){var qi=eo[Es];return qi!==null&&yl.getVAO(qi)===null&&(qi=yl.createVAO(qi)),Bp(function(Gi){return Gi.link(yl.getVAO(qi))})}else if(Es in Po){var Ii=Po[Es];return Uv(Ii,function(Gi,po){var si=Gi.invoke(po,Ii);return po.def(Gi.shared.vao+".getVAO("+si+")")})}return null}function Ru(ri){var Ta=ri.static,eo=ri.dynamic,Po={};return Object.keys(Ta).forEach(function(qi){var Ii=Ta[qi];Po[qi]=Bp(function(Gi,po){return typeof Ii=="number"||typeof Ii=="boolean"?""+Ii:Gi.link(Ii)})}),Object.keys(eo).forEach(function(qi){var Ii=eo[qi];Po[qi]=Uv(Ii,function(Gi,po){return Gi.invoke(po,Ii)})}),Po}function _d(ri,Ta,eo,Po,qi){var Ii=ri.static,Gi=ri.dynamic;Le.optional(function(){var pu=[ko,te,Me,ft,Nt,Yr,xn,qa,Zl,Es].concat(yt);function sf(Jf){Object.keys(Jf).forEach(function(Vd){Le.command(pu.indexOf(Vd)>=0,'unknown parameter "'+Vd+'"',qi.commandStr)})}sf(Ii),sf(Gi)});var po=_s(ri,Ta),si=Yi(ri,qi),Zi=Wo(ri,si,qi),Va=qs(ri,qi),Bi=uc(ri,qi),$o=ys(ri,qi,po);function Vs(pu){var sf=Zi[pu];sf&&(Bi[pu]=sf)}Vs(js),Vs(In(gl));var Cs=Object.keys(Bi).length>0,vs={framebuffer:si,draw:Va,shader:$o,state:Bi,dirty:Cs,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(vs.profile=Ai(ri,qi),vs.uniforms=du(eo,qi),vs.drawVAO=vs.scopeVAO=Ef(ri,qi),!vs.drawVAO&&$o.program&&!po&&bi.angle_instanced_arrays){var Vl=!0,ou=$o.program.attributes.map(function(pu){var sf=Ta.static[pu];return Vl=Vl&&!!sf,sf});if(Vl&&ou.length>0){var Xf=yl.getVAO(yl.createVAO(ou));vs.drawVAO=new nv(null,null,null,function(pu,sf){return pu.link(Xf)}),vs.useVAO=!0}}return po?vs.useVAO=!0:vs.attributes=Pc(Ta,qi),vs.context=Ru(Po,qi),vs}function id(ri,Ta,eo){var Po=ri.shared,qi=Po.context,Ii=ri.scope();Object.keys(eo).forEach(function(Gi){Ta.save(qi,"."+Gi);var po=eo[Gi],si=po.append(ri,Ta);Array.isArray(si)?Ii(qi,".",Gi,"=[",si.join(),"];"):Ii(qi,".",Gi,"=",si,";")}),Ta(Ii)}function yd(ri,Ta,eo,Po){var qi=ri.shared,Ii=qi.gl,Gi=qi.framebuffer,po;Ec&&(po=Ta.def(qi.extensions,".webgl_draw_buffers"));var si=ri.constants,Zi=si.drawBuffer,Va=si.backBuffer,Bi;eo?Bi=eo.append(ri,Ta):Bi=Ta.def(Gi,".next"),Po||Ta("if(",Bi,"!==",Gi,".cur){"),Ta("if(",Bi,"){",Ii,".bindFramebuffer(",Kh,",",Bi,".framebuffer);"),Ec&&Ta(po,".drawBuffersWEBGL(",Zi,"[",Bi,".colorAttachments.length]);"),Ta("}else{",Ii,".bindFramebuffer(",Kh,",null);"),Ec&&Ta(po,".drawBuffersWEBGL(",Va,");"),Ta("}",Gi,".cur=",Bi,";"),Po||Ta("}")}function Qu(ri,Ta,eo){var Po=ri.shared,qi=Po.gl,Ii=ri.current,Gi=ri.next,po=Po.current,si=Po.next,Zi=ri.cond(po,".dirty");yt.forEach(function(Va){var Bi=In(Va);if(!(Bi in eo.state)){var $o,Vs;if(Bi in Gi){$o=Gi[Bi],Vs=Ii[Bi];var Cs=er(Ft[Bi].length,function(Vl){return Zi.def($o,"[",Vl,"]")});Zi(ri.cond(Cs.map(function(Vl,ou){return Vl+"!=="+Vs+"["+ou+"]"}).join("||")).then(qi,".",Sn[Bi],"(",Cs,");",Cs.map(function(Vl,ou){return Vs+"["+ou+"]="+Vl}).join(";"),";"))}else{$o=Zi.def(si,".",Bi);var vs=ri.cond($o,"!==",po,".",Bi);Zi(vs),Bi in It?vs(ri.cond($o).then(qi,".enable(",It[Bi],");").else(qi,".disable(",It[Bi],");"),po,".",Bi,"=",$o,";"):vs(qi,".",Sn[Bi],"(",$o,");",po,".",Bi,"=",$o,";")}}}),Object.keys(eo.state).length===0&&Zi(po,".dirty=false;"),Ta(Zi)}function Yd(ri,Ta,eo,Po){var qi=ri.shared,Ii=ri.current,Gi=qi.current,po=qi.gl;Xv(Object.keys(eo)).forEach(function(si){var Zi=eo[si];if(!(Po&&!Po(Zi))){var Va=Zi.append(ri,Ta);if(It[si]){var Bi=It[si];lh(Zi)?Va?Ta(po,".enable(",Bi,");"):Ta(po,".disable(",Bi,");"):Ta(ri.cond(Va).then(po,".enable(",Bi,");").else(po,".disable(",Bi,");")),Ta(Gi,".",si,"=",Va,";")}else if(Ci(Va)){var $o=Ii[si];Ta(po,".",Sn[si],"(",Va,");",Va.map(function(Vs,Cs){return $o+"["+Cs+"]="+Vs}).join(";"),";")}else Ta(po,".",Sn[si],"(",Va,");",Gi,".",si,"=",Va,";")}})}function Xd(ri,Ta){Yo&&(ri.instancing=Ta.def(ri.shared.extensions,".angle_instanced_arrays"))}function Sf(ri,Ta,eo,Po,qi){var Ii=ri.shared,Gi=ri.stats,po=Ii.current,si=Ii.timer,Zi=eo.profile;function Va(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Bi,$o;function Vs(pu){Bi=Ta.def(),pu(Bi,"=",Va(),";"),typeof qi=="string"?pu(Gi,".count+=",qi,";"):pu(Gi,".count++;"),Xl&&(Po?($o=Ta.def(),pu($o,"=",si,".getNumPendingQueries();")):pu(si,".beginQuery(",Gi,");"))}function Cs(pu){pu(Gi,".cpuTime+=",Va(),"-",Bi,";"),Xl&&(Po?pu(si,".pushScopeStats(",$o,",",si,".getNumPendingQueries(),",Gi,");"):pu(si,".endQuery();"))}function vs(pu){var sf=Ta.def(po,".profile");Ta(po,".profile=",pu,";"),Ta.exit(po,".profile=",sf,";")}var Vl;if(Zi){if(lh(Zi)){Zi.enable?(Vs(Ta),Cs(Ta.exit),vs("true")):vs("false");return}Vl=Zi.append(ri,Ta),vs(Vl)}else Vl=Ta.def(po,".profile");var ou=ri.block();Vs(ou),Ta("if(",Vl,"){",ou,"}");var Xf=ri.block();Cs(Xf),Ta.exit("if(",Vl,"){",Xf,"}")}function Bf(ri,Ta,eo,Po,qi){var Ii=ri.shared;function Gi(si){switch(si){case rh:case rc:case Ju:return 2;case Fp:case wl:case Bc:return 3;case gh:case Sl:case $u:return 4;default:return 1}}function po(si,Zi,Va){var Bi=Ii.gl,$o=Ta.def(si,".location"),Vs=Ta.def(Ii.attributes,"[",$o,"]"),Cs=Va.state,vs=Va.buffer,Vl=[Va.x,Va.y,Va.z,Va.w],ou=["buffer","normalized","offset","stride"];function Xf(){Ta("if(!",Vs,".buffer){",Bi,".enableVertexAttribArray(",$o,");}");var sf=Va.type,Jf;if(Va.size?Jf=Ta.def(Va.size,"||",Zi):Jf=Zi,Ta("if(",Vs,".type!==",sf,"||",Vs,".size!==",Jf,"||",ou.map(function(rv){return Vs+"."+rv+"!=="+Va[rv]}).join("||"),"){",Bi,".bindBuffer(",sp,",",vs,".buffer);",Bi,".vertexAttribPointer(",[$o,Jf,sf,Va.normalized,Va.stride,Va.offset],");",Vs,".type=",sf,";",Vs,".size=",Jf,";",ou.map(function(rv){return Vs+"."+rv+"="+Va[rv]+";"}).join(""),"}"),Yo){var Vd=Va.divisor;Ta("if(",Vs,".divisor!==",Vd,"){",ri.instancing,".vertexAttribDivisorANGLE(",[$o,Vd],");",Vs,".divisor=",Vd,";}")}}function pu(){Ta("if(",Vs,".buffer){",Bi,".disableVertexAttribArray(",$o,");",Vs,".buffer=null;","}if(",mu.map(function(sf,Jf){return Vs+"."+sf+"!=="+Vl[Jf]}).join("||"),"){",Bi,".vertexAttrib4f(",$o,",",Vl,");",mu.map(function(sf,Jf){return Vs+"."+sf+"="+Vl[Jf]+";"}).join(""),"}")}Cs===Ll?Xf():Cs===wc?pu():(Ta("if(",Cs,"===",Ll,"){"),Xf(),Ta("}else{"),pu(),Ta("}"))}Po.forEach(function(si){var Zi=si.name,Va=eo.attributes[Zi],Bi;if(Va){if(!qi(Va))return;Bi=Va.append(ri,Ta)}else{if(!qi(dv))return;var $o=ri.scopeAttrib(Zi);Le.optional(function(){ri.assert(Ta,$o+".state","missing attribute "+Zi)}),Bi={},Object.keys(new es).forEach(function(Vs){Bi[Vs]=Ta.def($o,".",Vs)})}po(ri.link(si),Gi(si.info.type),Bi)})}function cd(ri,Ta,eo,Po,qi){for(var Ii=ri.shared,Gi=Ii.gl,po,si=0;si<Po.length;++si){var Zi=Po[si],Va=Zi.name,Bi=Zi.info.type,$o=eo.uniforms[Va],Vs=ri.link(Zi),Cs=Vs+".location",vs;if($o){if(!qi($o))continue;if(lh($o)){var Vl=$o.value;if(Le.command(Vl!==null&&typeof Vl!="undefined",'missing uniform "'+Va+'"',ri.commandStr),Bi===Mf||Bi===Sd){Le.command(typeof Vl=="function"&&(Bi===Mf&&(Vl._reglType==="texture2d"||Vl._reglType==="framebuffer")||Bi===Sd&&(Vl._reglType==="textureCube"||Vl._reglType==="framebufferCube")),"invalid texture for uniform "+Va,ri.commandStr);var ou=ri.link(Vl._texture||Vl.color[0]._texture);Ta(Gi,".uniform1i(",Cs,",",ou+".bind());"),Ta.exit(ou,".unbind();")}else if(Bi===Nf||Bi===Ou||Bi===Lf){Le.optional(function(){Le.command(Ci(Vl),"invalid matrix for uniform "+Va,ri.commandStr),Le.command(Bi===Nf&&Vl.length===4||Bi===Ou&&Vl.length===9||Bi===Lf&&Vl.length===16,"invalid length for matrix uniform "+Va,ri.commandStr)});var Xf=ri.global.def("new Float32Array(["+Array.prototype.slice.call(Vl)+"])"),pu=2;Bi===Ou?pu=3:Bi===Lf&&(pu=4),Ta(Gi,".uniformMatrix",pu,"fv(",Cs,",false,",Xf,");")}else{switch(Bi){case fm:Le.commandType(Vl,"number","uniform "+Va,ri.commandStr),po="1f";break;case rh:Le.command(Ci(Vl)&&Vl.length===2,"uniform "+Va,ri.commandStr),po="2f";break;case Fp:Le.command(Ci(Vl)&&Vl.length===3,"uniform "+Va,ri.commandStr),po="3f";break;case gh:Le.command(Ci(Vl)&&Vl.length===4,"uniform "+Va,ri.commandStr),po="4f";break;case Ac:Le.commandType(Vl,"boolean","uniform "+Va,ri.commandStr),po="1i";break;case Am:Le.commandType(Vl,"number","uniform "+Va,ri.commandStr),po="1i";break;case Ju:Le.command(Ci(Vl)&&Vl.length===2,"uniform "+Va,ri.commandStr),po="2i";break;case rc:Le.command(Ci(Vl)&&Vl.length===2,"uniform "+Va,ri.commandStr),po="2i";break;case Bc:Le.command(Ci(Vl)&&Vl.length===3,"uniform "+Va,ri.commandStr),po="3i";break;case wl:Le.command(Ci(Vl)&&Vl.length===3,"uniform "+Va,ri.commandStr),po="3i";break;case $u:Le.command(Ci(Vl)&&Vl.length===4,"uniform "+Va,ri.commandStr),po="4i";break;case Sl:Le.command(Ci(Vl)&&Vl.length===4,"uniform "+Va,ri.commandStr),po="4i";break}Ta(Gi,".uniform",po,"(",Cs,",",Ci(Vl)?Array.prototype.slice.call(Vl):Vl,");")}continue}else vs=$o.append(ri,Ta)}else{if(!qi(dv))continue;vs=Ta.def(Ii.uniforms,"[",ea.id(Va),"]")}Bi===Mf?(Le(!Array.isArray(vs),"must specify a scalar prop for textures"),Ta("if(",vs,"&&",vs,'._reglType==="framebuffer"){',vs,"=",vs,".color[0];","}")):Bi===Sd&&(Le(!Array.isArray(vs),"must specify a scalar prop for cube maps"),Ta("if(",vs,"&&",vs,'._reglType==="framebufferCube"){',vs,"=",vs,".color[0];","}")),Le.optional(function(){function Jv(Xh,P0){ri.assert(Ta,Xh,'bad data or missing for uniform "'+Va+'". '+P0)}function Fg(Xh){Le(!Array.isArray(vs),"must not specify an array type for uniform"),Jv("typeof "+vs+'==="'+Xh+'"',"invalid type, expected "+Xh)}function Zv(Xh,P0){Array.isArray(vs)?Le(vs.length===Xh,"must have length "+Xh):Jv(Ii.isArrayLike+"("+vs+")&&"+vs+".length==="+Xh,"invalid vector, should have length "+Xh,ri.commandStr)}function ry(Xh){Le(!Array.isArray(vs),"must not specify a value type"),Jv("typeof "+vs+'==="function"&&'+vs+'._reglType==="texture'+(Xh===Qc?"2d":"Cube")+'"',"invalid texture type",ri.commandStr)}switch(Bi){case Am:Fg("number");break;case rc:Zv(2,"number");break;case wl:Zv(3,"number");break;case Sl:Zv(4,"number");break;case fm:Fg("number");break;case rh:Zv(2,"number");break;case Fp:Zv(3,"number");break;case gh:Zv(4,"number");break;case Ac:Fg("boolean");break;case Ju:Zv(2,"boolean");break;case Bc:Zv(3,"boolean");break;case $u:Zv(4,"boolean");break;case Nf:Zv(4,"number");break;case Ou:Zv(9,"number");break;case Lf:Zv(16,"number");break;case Mf:ry(Qc);break;case Sd:ry(bp);break}});var sf=1;switch(Bi){case Mf:case Sd:var Jf=Ta.def(vs,"._texture");Ta(Gi,".uniform1i(",Cs,",",Jf,".bind());"),Ta.exit(Jf,".unbind();");continue;case Am:case Ac:po="1i";break;case rc:case Ju:po="2i",sf=2;break;case wl:case Bc:po="3i",sf=3;break;case Sl:case $u:po="4i",sf=4;break;case fm:po="1f";break;case rh:po="2f",sf=2;break;case Fp:po="3f",sf=3;break;case gh:po="4f",sf=4;break;case Nf:po="Matrix2fv";break;case Ou:po="Matrix3fv";break;case Lf:po="Matrix4fv";break}if(Ta(Gi,".uniform",po,"(",Cs,","),po.charAt(0)==="M"){var Vd=Math.pow(Bi-Nf+2,2),rv=ri.global.def("new Float32Array(",Vd,")");Array.isArray(vs)?Ta("false,(",er(Vd,function(Jv){return rv+"["+Jv+"]="+vs[Jv]}),",",rv,")"):Ta("false,(Array.isArray(",vs,")||",vs," instanceof Float32Array)?",vs,":(",er(Vd,function(Jv){return rv+"["+Jv+"]="+vs+"["+Jv+"]"}),",",rv,")")}else sf>1?Ta(er(sf,function(Jv){return Array.isArray(vs)?vs[Jv]:vs+"["+Jv+"]"})):(Le(!Array.isArray(vs),"uniform value must not be an array"),Ta(vs));Ta(");")}}function qu(ri,Ta,eo,Po){var qi=ri.shared,Ii=qi.gl,Gi=qi.draw,po=Po.draw;function si(){var Jf=po.elements,Vd,rv=Ta;return Jf?((Jf.contextDep&&Po.contextDynamic||Jf.propDep)&&(rv=eo),Vd=Jf.append(ri,rv)):Vd=rv.def(Gi,".",ft),Vd&&rv("if("+Vd+")"+Ii+".bindBuffer("+Wp+","+Vd+".buffer.buffer);"),Vd}function Zi(){var Jf=po.count,Vd,rv=Ta;return Jf?((Jf.contextDep&&Po.contextDynamic||Jf.propDep)&&(rv=eo),Vd=Jf.append(ri,rv),Le.optional(function(){Jf.MISSING&&ri.assert(Ta,"false","missing vertex count"),Jf.DYNAMIC&&ri.assert(rv,Vd+">=0","missing vertex count")})):(Vd=rv.def(Gi,".",xn),Le.optional(function(){ri.assert(rv,Vd+">=0","missing vertex count")})),Vd}var Va=si();function Bi(Jf){var Vd=po[Jf];return Vd?Vd.contextDep&&Po.contextDynamic||Vd.propDep?Vd.append(ri,eo):Vd.append(ri,Ta):Ta.def(Gi,".",Jf)}var $o=Bi(Nt),Vs=Bi(Yr),Cs=Zi();if(typeof Cs=="number"){if(Cs===0)return}else eo("if(",Cs,"){"),eo.exit("}");var vs,Vl;Yo&&(vs=Bi(qa),Vl=ri.instancing);var ou=Va+".type",Xf=po.elements&&lh(po.elements);function pu(){function Jf(){eo(Vl,".drawElementsInstancedANGLE(",[$o,Cs,ou,Vs+"<<(("+ou+"-"+xc+")>>1)",vs],");")}function Vd(){eo(Vl,".drawArraysInstancedANGLE(",[$o,Vs,Cs,vs],");")}Va?Xf?Jf():(eo("if(",Va,"){"),Jf(),eo("}else{"),Vd(),eo("}")):Vd()}function sf(){function Jf(){eo(Ii+".drawElements("+[$o,Cs,ou,Vs+"<<(("+ou+"-"+xc+")>>1)"]+");")}function Vd(){eo(Ii+".drawArrays("+[$o,Vs,Cs]+");")}Va?Xf?Jf():(eo("if(",Va,"){"),Jf(),eo("}else{"),Vd(),eo("}")):Vd()}Yo&&(typeof vs!="number"||vs>=0)?typeof vs=="string"?(eo("if(",vs,">0){"),pu(),eo("}else if(",vs,"<0){"),sf(),eo("}")):pu():sf()}function Nu(ri,Ta,eo,Po,qi){var Ii=vi(),Gi=Ii.proc("body",qi);return Le.optional(function(){Ii.commandStr=Ta.commandStr,Ii.command=Ii.link(Ta.commandStr)}),Yo&&(Ii.instancing=Gi.def(Ii.shared.extensions,".angle_instanced_arrays")),ri(Ii,Gi,eo,Po),Ii.compile().body}function Id(ri,Ta,eo,Po){Xd(ri,Ta),eo.useVAO?eo.drawVAO?Ta(ri.shared.vao,".setVAO(",eo.drawVAO.append(ri,Ta),");"):Ta(ri.shared.vao,".setVAO(",ri.shared.vao,".targetVAO);"):(Ta(ri.shared.vao,".setVAO(null);"),Bf(ri,Ta,eo,Po.attributes,function(){return!0})),cd(ri,Ta,eo,Po.uniforms,function(){return!0}),qu(ri,Ta,Ta,eo)}function Ev(ri,Ta){var eo=ri.proc("draw",1);Xd(ri,eo),id(ri,eo,Ta.context),yd(ri,eo,Ta.framebuffer),Qu(ri,eo,Ta),Yd(ri,eo,Ta.state),Sf(ri,eo,Ta,!1,!0);var Po=Ta.shader.progVar.append(ri,eo);if(eo(ri.shared.gl,".useProgram(",Po,".program);"),Ta.shader.program)Id(ri,eo,Ta,Ta.shader.program);else{eo(ri.shared.vao,".setVAO(null);");var qi=ri.global.def("{}"),Ii=eo.def(Po,".id"),Gi=eo.def(qi,"[",Ii,"]");eo(ri.cond(Gi).then(Gi,".call(this,a0);").else(Gi,"=",qi,"[",Ii,"]=",ri.link(function(po){return Nu(Id,ri,Ta,po,1)}),"(",Po,");",Gi,".call(this,a0);"))}Object.keys(Ta.state).length>0&&eo(ri.shared.current,".dirty=true;")}function Rv(ri,Ta,eo,Po){ri.batchId="a1",Xd(ri,Ta);function qi(){return!0}Bf(ri,Ta,eo,Po.attributes,qi),cd(ri,Ta,eo,Po.uniforms,qi),qu(ri,Ta,Ta,eo)}function s_(ri,Ta,eo,Po){Xd(ri,Ta);var qi=eo.contextDep,Ii=Ta.def(),Gi="a0",po="a1",si=Ta.def();ri.shared.props=si,ri.batchId=Ii;var Zi=ri.scope(),Va=ri.scope();Ta(Zi.entry,"for(",Ii,"=0;",Ii,"<",po,";++",Ii,"){",si,"=",Gi,"[",Ii,"];",Va,"}",Zi.exit);function Bi(ou){return ou.contextDep&&qi||ou.propDep}function $o(ou){return!Bi(ou)}if(eo.needsContext&&id(ri,Va,eo.context),eo.needsFramebuffer&&yd(ri,Va,eo.framebuffer),Yd(ri,Va,eo.state,Bi),eo.profile&&Bi(eo.profile)&&Sf(ri,Va,eo,!1,!0),Po)eo.useVAO?eo.drawVAO?Bi(eo.drawVAO)?Va(ri.shared.vao,".setVAO(",eo.drawVAO.append(ri,Va),");"):Zi(ri.shared.vao,".setVAO(",eo.drawVAO.append(ri,Zi),");"):Zi(ri.shared.vao,".setVAO(",ri.shared.vao,".targetVAO);"):(Zi(ri.shared.vao,".setVAO(null);"),Bf(ri,Zi,eo,Po.attributes,$o),Bf(ri,Va,eo,Po.attributes,Bi)),cd(ri,Zi,eo,Po.uniforms,$o),cd(ri,Va,eo,Po.uniforms,Bi),qu(ri,Zi,Va,eo);else{var Vs=ri.global.def("{}"),Cs=eo.shader.progVar.append(ri,Va),vs=Va.def(Cs,".id"),Vl=Va.def(Vs,"[",vs,"]");Va(ri.shared.gl,".useProgram(",Cs,".program);","if(!",Vl,"){",Vl,"=",Vs,"[",vs,"]=",ri.link(function(ou){return Nu(Rv,ri,eo,ou,2)}),"(",Cs,");}",Vl,".call(this,a0[",Ii,"],",Ii,");")}}function wi(ri,Ta){var eo=ri.proc("batch",2);ri.batchId="0",Xd(ri,eo);var Po=!1,qi=!0;Object.keys(Ta.context).forEach(function(Vs){Po=Po||Ta.context[Vs].propDep}),Po||(id(ri,eo,Ta.context),qi=!1);var Ii=Ta.framebuffer,Gi=!1;Ii?(Ii.propDep?Po=Gi=!0:Ii.contextDep&&Po&&(Gi=!0),Gi||yd(ri,eo,Ii)):yd(ri,eo,null),Ta.state.viewport&&Ta.state.viewport.propDep&&(Po=!0);function po(Vs){return Vs.contextDep&&Po||Vs.propDep}Qu(ri,eo,Ta),Yd(ri,eo,Ta.state,function(Vs){return!po(Vs)}),(!Ta.profile||!po(Ta.profile))&&Sf(ri,eo,Ta,!1,"a1"),Ta.contextDep=Po,Ta.needsContext=qi,Ta.needsFramebuffer=Gi;var si=Ta.shader.progVar;if(si.contextDep&&Po||si.propDep)s_(ri,eo,Ta,null);else{var Zi=si.append(ri,eo);if(eo(ri.shared.gl,".useProgram(",Zi,".program);"),Ta.shader.program)s_(ri,eo,Ta,Ta.shader.program);else{eo(ri.shared.vao,".setVAO(null);");var Va=ri.global.def("{}"),Bi=eo.def(Zi,".id"),$o=eo.def(Va,"[",Bi,"]");eo(ri.cond($o).then($o,".call(this,a0,a1);").else($o,"=",Va,"[",Bi,"]=",ri.link(function(Vs){return Nu(s_,ri,Ta,Vs,2)}),"(",Zi,");",$o,".call(this,a0,a1);"))}}Object.keys(Ta.state).length>0&&eo(ri.shared.current,".dirty=true;")}function ps(ri,Ta){var eo=ri.proc("scope",3);ri.batchId="a2";var Po=ri.shared,qi=Po.current;id(ri,eo,Ta.context),Ta.framebuffer&&Ta.framebuffer.append(ri,eo),Xv(Object.keys(Ta.state)).forEach(function(Gi){var po=Ta.state[Gi],si=po.append(ri,eo);Ci(si)?si.forEach(function(Zi,Va){eo.set(ri.next[Gi],"["+Va+"]",Zi)}):eo.set(Po.next,"."+Gi,si)}),Sf(ri,eo,Ta,!0,!0),[ft,Yr,xn,qa,Nt].forEach(function(Gi){var po=Ta.draw[Gi];!po||eo.set(Po.draw,"."+Gi,""+po.append(ri,eo))}),Object.keys(Ta.uniforms).forEach(function(Gi){var po=Ta.uniforms[Gi].append(ri,eo);Array.isArray(po)&&(po="["+po.join()+"]"),eo.set(Po.uniforms,"["+ea.id(Gi)+"]",po)}),Object.keys(Ta.attributes).forEach(function(Gi){var po=Ta.attributes[Gi].append(ri,eo),si=ri.scopeAttrib(Gi);Object.keys(new es).forEach(function(Zi){eo.set(si,"."+Zi,po[Zi])})}),Ta.scopeVAO&&eo.set(Po.vao,".targetVAO",Ta.scopeVAO.append(ri,eo));function Ii(Gi){var po=Ta.shader[Gi];po&&eo.set(Po.shader,"."+Gi,po.append(ri,eo))}Ii(te),Ii(Me),Object.keys(Ta.state).length>0&&(eo(qi,".dirty=true;"),eo.exit(qi,".dirty=true;")),eo("a1(",ri.shared.context,",a0,",ri.batchId,");")}function qo(ri){if(!(typeof ri!="object"||Ci(ri))){for(var Ta=Object.keys(ri),eo=0;eo<Ta.length;++eo)if(tt.isDynamic(ri[Ta[eo]]))return!0;return!1}}function zc(ri,Ta,eo){var Po=Ta.static[eo];if(!Po||!qo(Po))return;var qi=ri.global,Ii=Object.keys(Po),Gi=!1,po=!1,si=!1,Zi=ri.global.def("{}");Ii.forEach(function(Bi){var $o=Po[Bi];if(tt.isDynamic($o)){typeof $o=="function"&&($o=Po[Bi]=tt.unbox($o));var Vs=Uv($o,null);Gi=Gi||Vs.thisDep,si=si||Vs.propDep,po=po||Vs.contextDep}else{switch(qi(Zi,".",Bi,"="),typeof $o){case"number":qi($o);break;case"string":qi('"',$o,'"');break;case"object":Array.isArray($o)&&qi("[",$o.join(),"]");break;default:qi(ri.link($o));break}qi(";")}});function Va(Bi,$o){Ii.forEach(function(Vs){var Cs=Po[Vs];if(!!tt.isDynamic(Cs)){var vs=Bi.invoke($o,Cs);$o(Zi,".",Vs,"=",vs,";")}})}Ta.dynamic[eo]=new tt.DynamicVariable(Kc,{thisDep:Gi,contextDep:po,propDep:si,ref:Zi,append:Va}),delete Ta.static[eo]}function od(ri,Ta,eo,Po,qi){var Ii=vi();Ii.stats=Ii.link(qi),Object.keys(Ta.static).forEach(function(po){zc(Ii,Ta,po)}),Pv.forEach(function(po){zc(Ii,ri,po)});var Gi=_d(ri,Ta,eo,Po,Ii);return Ev(Ii,Gi),ps(Ii,Gi),wi(Ii,Gi),o(Ii.compile(),{destroy:function(){Gi.shader.program.destroy()}})}return{next:je,current:Ft,procs:function(){var ri=vi(),Ta=ri.proc("poll"),eo=ri.proc("refresh"),Po=ri.block();Ta(Po),eo(Po);var qi=ri.shared,Ii=qi.gl,Gi=qi.next,po=qi.current;Po(po,".dirty=false;"),yd(ri,Ta),yd(ri,eo,null,!0);var si;Yo&&(si=ri.link(Yo)),bi.oes_vertex_array_object&&eo(ri.link(bi.oes_vertex_array_object),".bindVertexArrayOES(null);");for(var Zi=0;Zi<To.maxAttributes;++Zi){var Va=eo.def(qi.attributes,"[",Zi,"]"),Bi=ri.cond(Va,".buffer");Bi.then(Ii,".enableVertexAttribArray(",Zi,");",Ii,".bindBuffer(",sp,",",Va,".buffer.buffer);",Ii,".vertexAttribPointer(",Zi,",",Va,".size,",Va,".type,",Va,".normalized,",Va,".stride,",Va,".offset);").else(Ii,".disableVertexAttribArray(",Zi,");",Ii,".vertexAttrib4f(",Zi,",",Va,".x,",Va,".y,",Va,".z,",Va,".w);",Va,".buffer=null;"),eo(Bi),Yo&&eo(si,".vertexAttribDivisorANGLE(",Zi,",",Va,".divisor);")}return eo(ri.shared.vao,".currentVAO=null;",ri.shared.vao,".setVAO(",ri.shared.vao,".targetVAO);"),Object.keys(It).forEach(function($o){var Vs=It[$o],Cs=Po.def(Gi,".",$o),vs=ri.block();vs("if(",Cs,"){",Ii,".enable(",Vs,")}else{",Ii,".disable(",Vs,")}",po,".",$o,"=",Cs,";"),eo(vs),Ta("if(",Cs,"!==",po,".",$o,"){",vs,"}")}),Object.keys(Sn).forEach(function($o){var Vs=Sn[$o],Cs=Ft[$o],vs,Vl,ou=ri.block();if(ou(Ii,".",Vs,"("),Ci(Cs)){var Xf=Cs.length;vs=ri.global.def(Gi,".",$o),Vl=ri.global.def(po,".",$o),ou(er(Xf,function(pu){return vs+"["+pu+"]"}),");",er(Xf,function(pu){return Vl+"["+pu+"]="+vs+"["+pu+"];"}).join("")),Ta("if(",er(Xf,function(pu){return vs+"["+pu+"]!=="+Vl+"["+pu+"]"}).join("||"),"){",ou,"}")}else vs=Po.def(Gi,".",$o),Vl=Po.def(po,".",$o),ou(vs,");",po,".",$o,"=",vs,";"),Ta("if(",vs,"!==",Vl,"){",ou,"}");eo(ou)}),ri.compile()}(),compile:od}}function Mm(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var dg=34918,dm=34919,Jm=35007,o_=function(ea,bi){if(!bi.ext_disjoint_timer_query)return null;var To=[];function _o(){return To.pop()||bi.ext_disjoint_timer_query.createQueryEXT()}function Ss(Ec){To.push(Ec)}var Qi=[];function Ns(Ec){var Ft=_o();bi.ext_disjoint_timer_query.beginQueryEXT(Jm,Ft),Qi.push(Ft),Ol(Qi.length-1,Qi.length,Ec)}function kl(){bi.ext_disjoint_timer_query.endQueryEXT(Jm)}function yl(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var Tl=[];function ll(){return Tl.pop()||new yl}function ac(Ec){Tl.push(Ec)}var Xl=[];function Ol(Ec,Ft,je){var yt=ll();yt.startQueryIndex=Ec,yt.endQueryIndex=Ft,yt.sum=0,yt.stats=je,Xl.push(yt)}var es=[],Go=[];function Yo(){var Ec,Ft,je=Qi.length;if(je!==0){Go.length=Math.max(Go.length,je+1),es.length=Math.max(es.length,je+1),es[0]=0,Go[0]=0;var yt=0;for(Ec=0,Ft=0;Ft<Qi.length;++Ft){var It=Qi[Ft];bi.ext_disjoint_timer_query.getQueryObjectEXT(It,dm)?(yt+=bi.ext_disjoint_timer_query.getQueryObjectEXT(It,dg),Ss(It)):Qi[Ec++]=It,es[Ft+1]=yt,Go[Ft+1]=Ec}for(Qi.length=Ec,Ec=0,Ft=0;Ft<Xl.length;++Ft){var Sn=Xl[Ft],In=Sn.startQueryIndex,mr=Sn.endQueryIndex;Sn.sum+=es[mr]-es[In];var Wr=Go[In],Ir=Go[mr];Ir===Wr?(Sn.stats.gpuTime+=Sn.sum/1e6,ac(Sn)):(Sn.startQueryIndex=Wr,Sn.endQueryIndex=Ir,Xl[Ec++]=Sn)}Xl.length=Ec}}return{beginQuery:Ns,endQuery:kl,pushScopeStats:Ol,update:Yo,getNumPendingQueries:function(){return Qi.length},clear:function(){To.push.apply(To,Qi);for(var Ft=0;Ft<To.length;Ft++)bi.ext_disjoint_timer_query.deleteQueryEXT(To[Ft]);Qi.length=0,To.length=0},restore:function(){Qi.length=0,To.length=0}}},ch=16384,pg=256,yh=1024,vg=34962,Dg="webglcontextlost",km="webglcontextrestored",Ng=1,O_=2,e0=3;function pm($r,ea){for(var bi=0;bi<$r.length;++bi)if($r[bi]===ea)return bi;return-1}function Lg($r){var ea=rn($r);if(!ea)return null;var bi=ea.gl,To=bi.getContextAttributes(),_o=bi.isContextLost(),Ss=cn(bi,ea);if(!Ss)return null;var Qi=Et(),Ns=Mm(),kl=Ss.extensions,yl=o_(bi,kl),Tl=ot(),ll=bi.drawingBufferWidth,ac=bi.drawingBufferHeight,Xl={tick:0,time:0,viewportWidth:ll,viewportHeight:ac,framebufferWidth:ll,framebufferHeight:ac,drawingBufferWidth:ll,drawingBufferHeight:ac,pixelRatio:ea.pixelRatio},Ol={},es={elements:null,primitive:4,count:-1,offset:0,instances:-1},Go=At(bi,kl),Yo=Li(bi,Ns,ea,Ft),Ec=sa(bi,kl,Go,Ns,Yo);function Ft(qu){return Ec.destroyBuffer(qu)}var je=zn(bi,kl,Yo,Ns),yt=fo(bi,Qi,Ns,ea),It=fi(bi,kl,Go,function(){mr.procs.poll()},Xl,Ns,ea),Sn=Xr(bi,kl,Go,Ns,ea),In=dn(bi,kl,Go,It,Sn,Ns),mr=Ig(bi,Qi,kl,Go,Yo,je,It,In,Ol,Ec,yt,es,Xl,yl,ea),Wr=ds(bi,In,mr.procs.poll,Xl,To,kl,Go),Ir=mr.next,Br=bi.canvas,xa=[],vi=[],Ai=[],Yi=[ea.onDestroy],Wo=null;function _s(){if(xa.length===0){yl&&yl.update(),Wo=null;return}Wo=de.next(_s),Yd();for(var qu=xa.length-1;qu>=0;--qu){var Nu=xa[qu];Nu&&Nu(Xl,null,0)}bi.flush(),yl&&yl.update()}function ys(){!Wo&&xa.length>0&&(Wo=de.next(_s))}function qs(){Wo&&(de.cancel(_s),Wo=null)}function uc(qu){qu.preventDefault(),_o=!0,qs(),vi.forEach(function(Nu){Nu()})}function du(qu){bi.getError(),_o=!1,Ss.restore(),yt.restore(),Yo.restore(),It.restore(),Sn.restore(),In.restore(),Ec.restore(),yl&&yl.restore(),mr.procs.refresh(),ys(),Ai.forEach(function(Nu){Nu()})}Br&&(Br.addEventListener(Dg,uc,!1),Br.addEventListener(km,du,!1));function Pc(){xa.length=0,qs(),Br&&(Br.removeEventListener(Dg,uc),Br.removeEventListener(km,du)),yt.clear(),In.clear(),Sn.clear(),It.clear(),je.clear(),Yo.clear(),Ec.clear(),yl&&yl.clear(),Yi.forEach(function(qu){qu()})}function Ef(qu){Le(!!qu,"invalid args to regl({...})"),Le.type(qu,"object","invalid args to regl({...})");function Nu(qi){var Ii=o({},qi);delete Ii.uniforms,delete Ii.attributes,delete Ii.context,delete Ii.vao,"stencil"in Ii&&Ii.stencil.op&&(Ii.stencil.opBack=Ii.stencil.opFront=Ii.stencil.op,delete Ii.stencil.op);function Gi(po){if(po in Ii){var si=Ii[po];delete Ii[po],Object.keys(si).forEach(function(Zi){Ii[po+"."+Zi]=si[Zi]})}}return Gi("blend"),Gi("depth"),Gi("cull"),Gi("stencil"),Gi("polygonOffset"),Gi("scissor"),Gi("sample"),"vao"in qi&&(Ii.vao=qi.vao),Ii}function Id(qi,Ii){var Gi={},po={};return Object.keys(qi).forEach(function(si){var Zi=qi[si];if(tt.isDynamic(Zi)){po[si]=tt.unbox(Zi,si);return}else if(Ii&&Array.isArray(Zi)){for(var Va=0;Va<Zi.length;++Va)if(tt.isDynamic(Zi[Va])){po[si]=tt.unbox(Zi,si);return}}Gi[si]=Zi}),{dynamic:po,static:Gi}}var Ev=Id(qu.context||{},!0),Rv=Id(qu.uniforms||{},!0),s_=Id(qu.attributes||{},!1),wi=Id(Nu(qu),!1),ps={gpuTime:0,cpuTime:0,count:0},qo=mr.compile(wi,s_,Rv,Ev,ps),zc=qo.draw,od=qo.batch,ri=qo.scope,Ta=[];function eo(qi){for(;Ta.length<qi;)Ta.push(null);return Ta}function Po(qi,Ii){var Gi;if(_o&&Le.raise("context lost"),typeof qi=="function")return ri.call(this,null,qi,0);if(typeof Ii=="function")if(typeof qi=="number")for(Gi=0;Gi<qi;++Gi)ri.call(this,null,Ii,Gi);else if(Array.isArray(qi))for(Gi=0;Gi<qi.length;++Gi)ri.call(this,qi[Gi],Ii,Gi);else return ri.call(this,qi,Ii,0);else if(typeof qi=="number"){if(qi>0)return od.call(this,eo(qi|0),qi|0)}else if(Array.isArray(qi)){if(qi.length)return od.call(this,qi,qi.length)}else return zc.call(this,qi)}return o(Po,{stats:ps,destroy:function(){qo.destroy()}})}var Ru=In.setFBO=Ef({framebuffer:tt.define.call(null,Ng,"framebuffer")});function _d(qu,Nu){var Id=0;mr.procs.poll();var Ev=Nu.color;Ev&&(bi.clearColor(+Ev[0]||0,+Ev[1]||0,+Ev[2]||0,+Ev[3]||0),Id|=ch),"depth"in Nu&&(bi.clearDepth(+Nu.depth),Id|=pg),"stencil"in Nu&&(bi.clearStencil(Nu.stencil|0),Id|=yh),Le(!!Id,"called regl.clear with no buffer specified"),bi.clear(Id)}function id(qu){if(Le(typeof qu=="object"&&qu,"regl.clear() takes an object as input"),"framebuffer"in qu)if(qu.framebuffer&&qu.framebuffer_reglType==="framebufferCube")for(var Nu=0;Nu<6;++Nu)Ru(o({framebuffer:qu.framebuffer.faces[Nu]},qu),_d);else Ru(qu,_d);else _d(null,qu)}function yd(qu){Le.type(qu,"function","regl.frame() callback must be a function"),xa.push(qu);function Nu(){var Id=pm(xa,qu);Le(Id>=0,"cannot cancel a frame twice");function Ev(){var Rv=pm(xa,Ev);xa[Rv]=xa[xa.length-1],xa.length-=1,xa.length<=0&&qs()}xa[Id]=Ev}return ys(),{cancel:Nu}}function Qu(){var qu=Ir.viewport,Nu=Ir.scissor_box;qu[0]=qu[1]=Nu[0]=Nu[1]=0,Xl.viewportWidth=Xl.framebufferWidth=Xl.drawingBufferWidth=qu[2]=Nu[2]=bi.drawingBufferWidth,Xl.viewportHeight=Xl.framebufferHeight=Xl.drawingBufferHeight=qu[3]=Nu[3]=bi.drawingBufferHeight}function Yd(){Xl.tick+=1,Xl.time=Sf(),Qu(),mr.procs.poll()}function Xd(){It.refresh(),Qu(),mr.procs.refresh(),yl&&yl.update()}function Sf(){return(ot()-Tl)/1e3}Xd();function Bf(qu,Nu){Le.type(Nu,"function","listener callback must be a function");var Id;switch(qu){case"frame":return yd(Nu);case"lost":Id=vi;break;case"restore":Id=Ai;break;case"destroy":Id=Yi;break;default:Le.raise("invalid event, must be one of frame,lost,restore,destroy")}return Id.push(Nu),{cancel:function(){for(var Rv=0;Rv<Id.length;++Rv)if(Id[Rv]===Nu){Id[Rv]=Id[Id.length-1],Id.pop();return}}}}var cd=o(Ef,{clear:id,prop:tt.define.bind(null,Ng),context:tt.define.bind(null,O_),this:tt.define.bind(null,e0),draw:Ef({}),buffer:function(Nu){return Yo.create(Nu,vg,!1,!1)},elements:function(Nu){return je.create(Nu,!1)},texture:It.create2D,cube:It.createCube,renderbuffer:Sn.create,framebuffer:In.create,framebufferCube:In.createCube,vao:Ec.createVAO,attributes:To,frame:yd,on:Bf,limits:Go,hasExtension:function(Nu){return Go.extensions.indexOf(Nu.toLowerCase())>=0},read:Wr,destroy:Pc,_gl:bi,_refresh:Xd,poll:function(){Yd(),yl&&yl.update()},now:Sf,stats:Ns});return ea.onDone(null,cd),cd}return Lg})},55065:function(oe,N,o){"use strict";var x=function(){if(typeof Map!="undefined")return Map;function Q(ue,he){var Ee=-1;return ue.some(function(ce,ve){return ce[0]===he?(Ee=ve,!0):!1}),Ee}return function(){function ue(){this.__entries__=[]}return Object.defineProperty(ue.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),ue.prototype.get=function(he){var Ee=Q(this.__entries__,he),ce=this.__entries__[Ee];return ce&&ce[1]},ue.prototype.set=function(he,Ee){var ce=Q(this.__entries__,he);~ce?this.__entries__[ce][1]=Ee:this.__entries__.push([he,Ee])},ue.prototype.delete=function(he){var Ee=this.__entries__,ce=Q(Ee,he);~ce&&Ee.splice(ce,1)},ue.prototype.has=function(he){return!!~Q(this.__entries__,he)},ue.prototype.clear=function(){this.__entries__.splice(0)},ue.prototype.forEach=function(he,Ee){Ee===void 0&&(Ee=null);for(var ce=0,ve=this.__entries__;ce<ve.length;ce++){var fe=ve[ce];he.call(Ee,fe[1],fe[0])}},ue}()}(),g=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,A=function(){return typeof o.g!="undefined"&&o.g.Math===Math?o.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),y=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(A):function(Q){return setTimeout(function(){return Q(Date.now())},1e3/60)}}(),M=2;function w(Q,ue){var he=!1,Ee=!1,ce=0;function ve(){he&&(he=!1,Q()),Ee&&we()}function fe(){y(ve)}function we(){var me=Date.now();if(he){if(me-ce<M)return;Ee=!0}else he=!0,Ee=!1,setTimeout(fe,ue);ce=me}return we}var m=20,b=["top","right","bottom","left","width","height","size","weight"],v=typeof MutationObserver!="undefined",h=function(){function Q(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=w(this.refresh.bind(this),m)}return Q.prototype.addObserver=function(ue){~this.observers_.indexOf(ue)||this.observers_.push(ue),this.connected_||this.connect_()},Q.prototype.removeObserver=function(ue){var he=this.observers_,Ee=he.indexOf(ue);~Ee&&he.splice(Ee,1),!he.length&&this.connected_&&this.disconnect_()},Q.prototype.refresh=function(){var ue=this.updateObservers_();ue&&this.refresh()},Q.prototype.updateObservers_=function(){var ue=this.observers_.filter(function(he){return he.gatherActive(),he.hasActive()});return ue.forEach(function(he){return he.broadcastActive()}),ue.length>0},Q.prototype.connect_=function(){!g||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),v?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},Q.prototype.disconnect_=function(){!g||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},Q.prototype.onTransitionEnd_=function(ue){var he=ue.propertyName,Ee=he===void 0?"":he,ce=b.some(function(ve){return!!~Ee.indexOf(ve)});ce&&this.refresh()},Q.getInstance=function(){return this.instance_||(this.instance_=new Q),this.instance_},Q.instance_=null,Q}(),d=function(ue,he){for(var Ee=0,ce=Object.keys(he);Ee<ce.length;Ee++){var ve=ce[Ee];Object.defineProperty(ue,ve,{value:he[ve],enumerable:!1,writable:!1,configurable:!0})}return ue},_=function(ue){var he=ue&&ue.ownerDocument&&ue.ownerDocument.defaultView;return he||A},p=V(0,0,0,0);function S(Q){return parseFloat(Q)||0}function k(Q){for(var ue=[],he=1;he<arguments.length;he++)ue[he-1]=arguments[he];return ue.reduce(function(Ee,ce){var ve=Q["border-"+ce+"-width"];return Ee+S(ve)},0)}function O(Q){for(var ue=["top","right","bottom","left"],he={},Ee=0,ce=ue;Ee<ce.length;Ee++){var ve=ce[Ee],fe=Q["padding-"+ve];he[ve]=S(fe)}return he}function F(Q){var ue=Q.getBBox();return V(0,0,ue.width,ue.height)}function D(Q){var ue=Q.clientWidth,he=Q.clientHeight;if(!ue&&!he)return p;var Ee=_(Q).getComputedStyle(Q),ce=O(Ee),ve=ce.left+ce.right,fe=ce.top+ce.bottom,we=S(Ee.width),me=S(Ee.height);if(Ee.boxSizing==="border-box"&&(Math.round(we+ve)!==ue&&(we-=k(Ee,"left","right")+ve),Math.round(me+fe)!==he&&(me-=k(Ee,"top","bottom")+fe)),!W(Q)){var Pe=Math.round(we+ve)-ue,pe=Math.round(me+fe)-he;Math.abs(Pe)!==1&&(we-=Pe),Math.abs(pe)!==1&&(me-=pe)}return V(ce.left,ce.top,we,me)}var Z=function(){return typeof SVGGraphicsElement!="undefined"?function(Q){return Q instanceof _(Q).SVGGraphicsElement}:function(Q){return Q instanceof _(Q).SVGElement&&typeof Q.getBBox=="function"}}();function W(Q){return Q===_(Q).document.documentElement}function U(Q){return g?Z(Q)?F(Q):D(Q):p}function L(Q){var ue=Q.x,he=Q.y,Ee=Q.width,ce=Q.height,ve=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,fe=Object.create(ve.prototype);return d(fe,{x:ue,y:he,width:Ee,height:ce,top:he,right:ue+Ee,bottom:ce+he,left:ue}),fe}function V(Q,ue,he,Ee){return{x:Q,y:ue,width:he,height:Ee}}var $=function(){function Q(ue){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=V(0,0,0,0),this.target=ue}return Q.prototype.isActive=function(){var ue=U(this.target);return this.contentRect_=ue,ue.width!==this.broadcastWidth||ue.height!==this.broadcastHeight},Q.prototype.broadcastRect=function(){var ue=this.contentRect_;return this.broadcastWidth=ue.width,this.broadcastHeight=ue.height,ue},Q}(),G=function(){function Q(ue,he){var Ee=L(he);d(this,{target:ue,contentRect:Ee})}return Q}(),z=function(){function Q(ue,he,Ee){if(this.activeObservations_=[],this.observations_=new x,typeof ue!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=ue,this.controller_=he,this.callbackCtx_=Ee}return Q.prototype.observe=function(ue){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(ue instanceof _(ue).Element))throw new TypeError('parameter 1 is not of type "Element".');var he=this.observations_;he.has(ue)||(he.set(ue,new $(ue)),this.controller_.addObserver(this),this.controller_.refresh())}},Q.prototype.unobserve=function(ue){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(ue instanceof _(ue).Element))throw new TypeError('parameter 1 is not of type "Element".');var he=this.observations_;!he.has(ue)||(he.delete(ue),he.size||this.controller_.removeObserver(this))}},Q.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},Q.prototype.gatherActive=function(){var ue=this;this.clearActive(),this.observations_.forEach(function(he){he.isActive()&&ue.activeObservations_.push(he)})},Q.prototype.broadcastActive=function(){if(!!this.hasActive()){var ue=this.callbackCtx_,he=this.activeObservations_.map(function(Ee){return new G(Ee.target,Ee.broadcastRect())});this.callback_.call(ue,he,ue),this.clearActive()}},Q.prototype.clearActive=function(){this.activeObservations_.splice(0)},Q.prototype.hasActive=function(){return this.activeObservations_.length>0},Q}(),K=typeof WeakMap!="undefined"?new WeakMap:new x,re=function(){function Q(ue){if(!(this instanceof Q))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var he=h.getInstance(),Ee=new z(ue,he,this);K.set(this,Ee)}return Q}();["observe","unobserve","disconnect"].forEach(function(Q){re.prototype[Q]=function(){var ue;return(ue=K.get(this))[Q].apply(ue,arguments)}});var ne=function(){return typeof A.ResizeObserver!="undefined"?A.ResizeObserver:re}();N.Z=ne},58222:function(oe,N){"use strict";/** @license React v0.20.2
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var o,x,g,A;if(typeof performance=="object"&&typeof performance.now=="function"){var y=performance;N.unstable_now=function(){return y.now()}}else{var M=Date,w=M.now();N.unstable_now=function(){return M.now()-w}}if(typeof window=="undefined"||typeof MessageChannel!="function"){var m=null,b=null,v=function fe(){if(m!==null)try{var we=N.unstable_now();m(!0,we),m=null}catch(me){throw setTimeout(fe,0),me}};o=function(we){m!==null?setTimeout(o,0,we):(m=we,setTimeout(v,0))},x=function(we,me){b=setTimeout(we,me)},g=function(){clearTimeout(b)},N.unstable_shouldYield=function(){return!1},A=N.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,d=window.clearTimeout;if(typeof console!="undefined"){var _=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof _!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var p=!1,S=null,k=-1,O=5,F=0;N.unstable_shouldYield=function(){return N.unstable_now()>=F},A=function(){},N.unstable_forceFrameRate=function(fe){0>fe||125<fe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<fe?Math.floor(1e3/fe):5};var D=new MessageChannel,Z=D.port2;D.port1.onmessage=function(){if(S!==null){var fe=N.unstable_now();F=fe+O;try{S(!0,fe)?Z.postMessage(null):(p=!1,S=null)}catch(we){throw Z.postMessage(null),we}}else p=!1},o=function(we){S=we,p||(p=!0,Z.postMessage(null))},x=function(we,me){k=h(function(){we(N.unstable_now())},me)},g=function(){d(k),k=-1}}function W(fe,we){var me=fe.length;fe.push(we);e:for(;;){var Pe=me-1>>>1,pe=fe[Pe];if(pe!==void 0&&0<V(pe,we))fe[Pe]=we,fe[me]=pe,me=Pe;else break e}}function U(fe){return fe=fe[0],fe===void 0?null:fe}function L(fe){var we=fe[0];if(we!==void 0){var me=fe.pop();if(me!==we){fe[0]=me;e:for(var Pe=0,pe=fe.length;Pe<pe;){var Ie=2*(Pe+1)-1,Je=fe[Ie],ke=Ie+1,De=fe[ke];if(Je!==void 0&&0>V(Je,me))De!==void 0&&0>V(De,Je)?(fe[Pe]=De,fe[ke]=me,Pe=ke):(fe[Pe]=Je,fe[Ie]=me,Pe=Ie);else if(De!==void 0&&0>V(De,me))fe[Pe]=De,fe[ke]=me,Pe=ke;else break e}}return we}return null}function V(fe,we){var me=fe.sortIndex-we.sortIndex;return me!==0?me:fe.id-we.id}var $=[],G=[],z=1,K=null,re=3,ne=!1,Q=!1,ue=!1;function he(fe){for(var we=U(G);we!==null;){if(we.callback===null)L(G);else if(we.startTime<=fe)L(G),we.sortIndex=we.expirationTime,W($,we);else break;we=U(G)}}function Ee(fe){if(ue=!1,he(fe),!Q)if(U($)!==null)Q=!0,o(ce);else{var we=U(G);we!==null&&x(Ee,we.startTime-fe)}}function ce(fe,we){Q=!1,ue&&(ue=!1,g()),ne=!0;var me=re;try{for(he(we),K=U($);K!==null&&(!(K.expirationTime>we)||fe&&!N.unstable_shouldYield());){var Pe=K.callback;if(typeof Pe=="function"){K.callback=null,re=K.priorityLevel;var pe=Pe(K.expirationTime<=we);we=N.unstable_now(),typeof pe=="function"?K.callback=pe:K===U($)&&L($),he(we)}else L($);K=U($)}if(K!==null)var Ie=!0;else{var Je=U(G);Je!==null&&x(Ee,Je.startTime-we),Ie=!1}return Ie}finally{K=null,re=me,ne=!1}}var ve=A;N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(fe){fe.callback=null},N.unstable_continueExecution=function(){Q||ne||(Q=!0,o(ce))},N.unstable_getCurrentPriorityLevel=function(){return re},N.unstable_getFirstCallbackNode=function(){return U($)},N.unstable_next=function(fe){switch(re){case 1:case 2:case 3:var we=3;break;default:we=re}var me=re;re=we;try{return fe()}finally{re=me}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=ve,N.unstable_runWithPriority=function(fe,we){switch(fe){case 1:case 2:case 3:case 4:case 5:break;default:fe=3}var me=re;re=fe;try{return we()}finally{re=me}},N.unstable_scheduleCallback=function(fe,we,me){var Pe=N.unstable_now();switch(typeof me=="object"&&me!==null?(me=me.delay,me=typeof me=="number"&&0<me?Pe+me:Pe):me=Pe,fe){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=me+pe,fe={id:z++,callback:we,priorityLevel:fe,startTime:me,expirationTime:pe,sortIndex:-1},me>Pe?(fe.sortIndex=me,W(G,fe),U($)===null&&fe===U(G)&&(ue?g():ue=!0,x(Ee,me-Pe))):(fe.sortIndex=pe,W($,fe),Q||ne||(Q=!0,o(ce))),fe},N.unstable_wrapCallback=function(fe){var we=re;return function(){var me=re;re=we;try{return fe.apply(this,arguments)}finally{re=me}}}},14690:function(oe,N,o){"use strict";oe.exports=o(58222)},41149:function(oe,N,o){"use strict";N.__esModule=!0,N.default=void 0;var x=g(o(45678));function g(b){return b&&b.__esModule?b:{default:b}}function A(b){return b===Object(b)&&Object.keys(b).length!==0}function y(b,v){v===void 0&&(v="auto");var h="scrollBehavior"in document.body.style;b.forEach(function(d){var _=d.el,p=d.top,S=d.left;_.scroll&&h?_.scroll({top:p,left:S,behavior:v}):(_.scrollTop=p,_.scrollLeft=S)})}function M(b){return b===!1?{block:"end",inline:"nearest"}:A(b)?b:{block:"start",inline:"nearest"}}function w(b,v){var h=b.isConnected||b.ownerDocument.documentElement.contains(b);if(A(v)&&typeof v.behavior=="function")return v.behavior(h?(0,x.default)(b,v):[]);if(!!h){var d=M(v);return y((0,x.default)(b,d),d.behavior)}}var m=w;N.default=m,oe.exports=N.default},6411:function(oe){"use strict";function N(o,x){if(o===x)return!0;if(!o||!x)return!1;var g=Object.keys(o),A=Object.keys(x),y=g.length;if(A.length!==y)return!1;for(var M=0;M<y;M++){var w=g[M];if(o[w]!==x[w]||!Object.prototype.hasOwnProperty.call(x,w))return!1}return!0}oe.exports=N},23270:function(oe){oe.exports=function(o,x,g,A){var y=g?g.call(A,o,x):void 0;if(y!==void 0)return!!y;if(o===x)return!0;if(typeof o!="object"||!o||typeof x!="object"||!x)return!1;var M=Object.keys(o),w=Object.keys(x);if(M.length!==w.length)return!1;for(var m=Object.prototype.hasOwnProperty.bind(x),b=0;b<M.length;b++){var v=M[b];if(!m(v))return!1;var h=o[v],d=x[v];if(y=g?g.call(A,h,d,v):void 0,y===!1||y===void 0&&h!==d)return!1}return!0}},4892:function(oe,N,o){"use strict";var x=o(4154),g=o(93509),A=o(1289),y=x("%TypeError%"),M=x("%WeakMap%",!0),w=x("%Map%",!0),m=g("WeakMap.prototype.get",!0),b=g("WeakMap.prototype.set",!0),v=g("WeakMap.prototype.has",!0),h=g("Map.prototype.get",!0),d=g("Map.prototype.set",!0),_=g("Map.prototype.has",!0),p=function(D,Z){for(var W=D,U;(U=W.next)!==null;W=U)if(U.key===Z)return W.next=U.next,U.next=D.next,D.next=U,U},S=function(D,Z){var W=p(D,Z);return W&&W.value},k=function(D,Z,W){var U=p(D,Z);U?U.value=W:D.next={key:Z,next:D.next,value:W}},O=function(D,Z){return!!p(D,Z)};oe.exports=function(){var D,Z,W,U={assert:function(V){if(!U.has(V))throw new y("Side channel does not contain "+A(V))},get:function(V){if(M&&V&&(typeof V=="object"||typeof V=="function")){if(D)return m(D,V)}else if(w){if(Z)return h(Z,V)}else if(W)return S(W,V)},has:function(V){if(M&&V&&(typeof V=="object"||typeof V=="function")){if(D)return v(D,V)}else if(w){if(Z)return _(Z,V)}else if(W)return O(W,V);return!1},set:function(V,$){M&&V&&(typeof V=="object"||typeof V=="function")?(D||(D=new M),b(D,V,$)):w?(Z||(Z=new w),d(Z,V,$)):(W||(W={key:{},next:null}),k(W,V,$))}};return U}},1917:function(oe,N,o){"use strict";var x=o(8253),g=Array.prototype.concat,A=Array.prototype.slice,y=oe.exports=function(w){for(var m=[],b=0,v=w.length;b<v;b++){var h=w[b];x(h)?m=g.call(m,A.call(h)):m.push(h)}return m};y.wrap=function(M){return function(){return M(y(arguments))}}},81325:function(oe){"use strict";oe.exports=function(N,o){if(!(typeof N=="string"&&typeof o=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(o==="")return[N];var x=N.indexOf(o);return x===-1?[N]:[N.slice(0,x),N.slice(x+o.length)]}},87716:function(oe,N,o){"use strict";N.__esModule=!0;var x=o(64721),g=p(x),A=o(10691),y=p(A),M=o(53385),w=p(M),m=o(8226),b=p(m),v=o(39956),h=p(v),d=o(58946),_=p(d);function p(O){return O&&O.__esModule?O:{default:O}}function S(O,F){if(!(O instanceof F))throw new TypeError("Cannot call a class as a function")}var k=function(){function O(F,D){S(this,O),this.cfg=F||{},this.indentation=new b.default(this.cfg.indent),this.inlineBlock=new h.default,this.params=new _.default(this.cfg.params),this.tokenizer=D,this.previousReservedWord={},this.tokens=[],this.index=0}return O.prototype.format=function(D){this.tokens=this.tokenizer.tokenize(D);var Z=this.getFormattedQueryFromTokens();return Z.trim()},O.prototype.getFormattedQueryFromTokens=function(){var D=this,Z="";return this.tokens.forEach(function(W,U){D.index=U,W.type===w.default.WHITESPACE||(W.type===w.default.LINE_COMMENT?Z=D.formatLineComment(W,Z):W.type===w.default.BLOCK_COMMENT?Z=D.formatBlockComment(W,Z):W.type===w.default.RESERVED_TOPLEVEL?(Z=D.formatToplevelReservedWord(W,Z),D.previousReservedWord=W):W.type===w.default.RESERVED_NEWLINE?(Z=D.formatNewlineReservedWord(W,Z),D.previousReservedWord=W):W.type===w.default.RESERVED?(Z=D.formatWithSpaces(W,Z),D.previousReservedWord=W):W.type===w.default.OPEN_PAREN?Z=D.formatOpeningParentheses(W,Z):W.type===w.default.CLOSE_PAREN?Z=D.formatClosingParentheses(W,Z):W.type===w.default.PLACEHOLDER?Z=D.formatPlaceholder(W,Z):W.value===","?Z=D.formatComma(W,Z):W.value===":"?Z=D.formatWithSpaceAfter(W,Z):W.value==="."?Z=D.formatWithoutSpaces(W,Z):W.value===";"?Z=D.formatQuerySeparator(W,Z):Z=D.formatWithSpaces(W,Z))}),Z},O.prototype.formatLineComment=function(D,Z){return this.addNewline(Z+D.value)},O.prototype.formatBlockComment=function(D,Z){return this.addNewline(this.addNewline(Z)+this.indentComment(D.value))},O.prototype.indentComment=function(D){return D.replace(/\n/g,`
|
||
`+this.indentation.getIndent())},O.prototype.formatToplevelReservedWord=function(D,Z){return this.indentation.decreaseTopLevel(),Z=this.addNewline(Z),this.indentation.increaseToplevel(),Z+=this.equalizeWhitespace(D.value),this.addNewline(Z)},O.prototype.formatNewlineReservedWord=function(D,Z){return this.addNewline(Z)+this.equalizeWhitespace(D.value)+" "},O.prototype.equalizeWhitespace=function(D){return D.replace(/\s+/g," ")},O.prototype.formatOpeningParentheses=function(D,Z){var W=[w.default.WHITESPACE,w.default.OPEN_PAREN,w.default.LINE_COMMENT];return(0,g.default)(W,this.previousToken().type)||(Z=(0,y.default)(Z)),Z+=D.value,this.inlineBlock.beginIfPossible(this.tokens,this.index),this.inlineBlock.isActive()||(this.indentation.increaseBlockLevel(),Z=this.addNewline(Z)),Z},O.prototype.formatClosingParentheses=function(D,Z){return this.inlineBlock.isActive()?(this.inlineBlock.end(),this.formatWithSpaceAfter(D,Z)):(this.indentation.decreaseBlockLevel(),this.formatWithSpaces(D,this.addNewline(Z)))},O.prototype.formatPlaceholder=function(D,Z){return Z+this.params.get(D)+" "},O.prototype.formatComma=function(D,Z){return Z=this.trimTrailingWhitespace(Z)+D.value+" ",this.inlineBlock.isActive()||/^LIMIT$/i.test(this.previousReservedWord.value)?Z:this.addNewline(Z)},O.prototype.formatWithSpaceAfter=function(D,Z){return this.trimTrailingWhitespace(Z)+D.value+" "},O.prototype.formatWithoutSpaces=function(D,Z){return this.trimTrailingWhitespace(Z)+D.value},O.prototype.formatWithSpaces=function(D,Z){return Z+D.value+" "},O.prototype.formatQuerySeparator=function(D,Z){return this.trimTrailingWhitespace(Z)+D.value+`
|
||
`},O.prototype.addNewline=function(D){return(0,y.default)(D)+`
|
||
`+this.indentation.getIndent()},O.prototype.trimTrailingWhitespace=function(D){return this.previousNonWhitespaceToken().type===w.default.LINE_COMMENT?(0,y.default)(D)+`
|
||
`:(0,y.default)(D)},O.prototype.previousNonWhitespaceToken=function(){for(var D=1;this.previousToken(D).type===w.default.WHITESPACE;)D++;return this.previousToken(D)},O.prototype.previousToken=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;return this.tokens[this.index-D]||{}},O}();N.default=k,oe.exports=N.default},8226:function(oe,N,o){"use strict";N.__esModule=!0;var x=o(66796),g=M(x),A=o(10928),y=M(A);function M(h){return h&&h.__esModule?h:{default:h}}function w(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}var m="top-level",b="block-level",v=function(){function h(d){w(this,h),this.indent=d||" ",this.indentTypes=[]}return h.prototype.getIndent=function(){return(0,g.default)(this.indent,this.indentTypes.length)},h.prototype.increaseToplevel=function(){this.indentTypes.push(m)},h.prototype.increaseBlockLevel=function(){this.indentTypes.push(b)},h.prototype.decreaseTopLevel=function(){(0,y.default)(this.indentTypes)===m&&this.indentTypes.pop()},h.prototype.decreaseBlockLevel=function(){for(;this.indentTypes.length>0;){var _=this.indentTypes.pop();if(_!==m)break}},h}();N.default=v,oe.exports=N.default},39956:function(oe,N,o){"use strict";N.__esModule=!0;var x=o(53385),g=A(x);function A(m){return m&&m.__esModule?m:{default:m}}function y(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}var M=50,w=function(){function m(){y(this,m),this.level=0}return m.prototype.beginIfPossible=function(v,h){this.level===0&&this.isInlineBlock(v,h)?this.level=1:this.level>0?this.level++:this.level=0},m.prototype.end=function(){this.level--},m.prototype.isActive=function(){return this.level>0},m.prototype.isInlineBlock=function(v,h){for(var d=0,_=0,p=h;p<v.length;p++){var S=v[p];if(d+=S.value.length,d>M)return!1;if(S.type===g.default.OPEN_PAREN)_++;else if(S.type===g.default.CLOSE_PAREN&&(_--,_===0))return!0;if(this.isForbiddenToken(S))return!1}return!1},m.prototype.isForbiddenToken=function(v){var h=v.type,d=v.value;return h===g.default.RESERVED_TOPLEVEL||h===g.default.RESERVED_NEWLINE||h===g.default.COMMENT||h===g.default.BLOCK_COMMENT||d===";"},m}();N.default=w,oe.exports=N.default},58946:function(oe,N){"use strict";N.__esModule=!0;function o(g,A){if(!(g instanceof A))throw new TypeError("Cannot call a class as a function")}var x=function(){function g(A){o(this,g),this.params=A,this.index=0}return g.prototype.get=function(y){var M=y.key,w=y.value;return this.params?M?this.params[M]:this.params[this.index++]:w},g}();N.default=x,oe.exports=N.default},19953:function(oe,N,o){"use strict";N.__esModule=!0;var x=o(41609),g=m(x),A=o(3522),y=m(A),M=o(53385),w=m(M);function m(h){return h&&h.__esModule?h:{default:h}}function b(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}var v=function(){function h(d){b(this,h),this.WHITESPACE_REGEX=/^(\s+)/,this.NUMBER_REGEX=/^((-\s*)?[0-9]+(\.[0-9]+)?|0x[0-9a-fA-F]+|0b[01]+)\b/,this.OPERATOR_REGEX=/^(!=|<>|==|<=|>=|!<|!>|\|\||::|->>|->|~~\*|~~|!~~\*|!~~|~\*|!~\*|!~|.)/,this.BLOCK_COMMENT_REGEX=/^(\/\*[^]*?(?:\*\/|$))/,this.LINE_COMMENT_REGEX=this.createLineCommentRegex(d.lineCommentTypes),this.RESERVED_TOPLEVEL_REGEX=this.createReservedWordRegex(d.reservedToplevelWords),this.RESERVED_NEWLINE_REGEX=this.createReservedWordRegex(d.reservedNewlineWords),this.RESERVED_PLAIN_REGEX=this.createReservedWordRegex(d.reservedWords),this.WORD_REGEX=this.createWordRegex(d.specialWordChars),this.STRING_REGEX=this.createStringRegex(d.stringTypes),this.OPEN_PAREN_REGEX=this.createParenRegex(d.openParens),this.CLOSE_PAREN_REGEX=this.createParenRegex(d.closeParens),this.INDEXED_PLACEHOLDER_REGEX=this.createPlaceholderRegex(d.indexedPlaceholderTypes,"[0-9]*"),this.IDENT_NAMED_PLACEHOLDER_REGEX=this.createPlaceholderRegex(d.namedPlaceholderTypes,"[a-zA-Z0-9._$]+"),this.STRING_NAMED_PLACEHOLDER_REGEX=this.createPlaceholderRegex(d.namedPlaceholderTypes,this.createStringPattern(d.stringTypes))}return h.prototype.createLineCommentRegex=function(_){return new RegExp("^((?:"+_.map(function(p){return(0,y.default)(p)}).join("|")+`).*?(?:
|
||
|$))`)},h.prototype.createReservedWordRegex=function(_){var p=_.join("|").replace(/ /g,"\\s+");return new RegExp("^("+p+")\\b","i")},h.prototype.createWordRegex=function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return new RegExp("^([\\w"+_.join("")+"]+)")},h.prototype.createStringRegex=function(_){return new RegExp("^("+this.createStringPattern(_)+")")},h.prototype.createStringPattern=function(_){var p={"``":"((`[^`]*($|`))+)","[]":"((\\[[^\\]]*($|\\]))(\\][^\\]]*($|\\]))*)",'""':'(("[^"\\\\]*(?:\\\\.[^"\\\\]*)*("|$))+)',"''":"(('[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)","N''":"((N'[^N'\\\\]*(?:\\\\.[^N'\\\\]*)*('|$))+)"};return _.map(function(S){return p[S]}).join("|")},h.prototype.createParenRegex=function(_){var p=this;return new RegExp("^("+_.map(function(S){return p.escapeParen(S)}).join("|")+")","i")},h.prototype.escapeParen=function(_){return _.length===1?(0,y.default)(_):"\\b"+_+"\\b"},h.prototype.createPlaceholderRegex=function(_,p){if((0,g.default)(_))return!1;var S=_.map(y.default).join("|");return new RegExp("^((?:"+S+")(?:"+p+"))")},h.prototype.tokenize=function(_){for(var p=[],S=void 0;_.length;)S=this.getNextToken(_,S),_=_.substring(S.value.length),p.push(S);return p},h.prototype.getNextToken=function(_,p){return this.getWhitespaceToken(_)||this.getCommentToken(_)||this.getStringToken(_)||this.getOpenParenToken(_)||this.getCloseParenToken(_)||this.getPlaceholderToken(_)||this.getNumberToken(_)||this.getReservedWordToken(_,p)||this.getWordToken(_)||this.getOperatorToken(_)},h.prototype.getWhitespaceToken=function(_){return this.getTokenOnFirstMatch({input:_,type:w.default.WHITESPACE,regex:this.WHITESPACE_REGEX})},h.prototype.getCommentToken=function(_){return this.getLineCommentToken(_)||this.getBlockCommentToken(_)},h.prototype.getLineCommentToken=function(_){return this.getTokenOnFirstMatch({input:_,type:w.default.LINE_COMMENT,regex:this.LINE_COMMENT_REGEX})},h.prototype.getBlockCommentToken=function(_){return this.getTokenOnFirstMatch({input:_,type:w.default.BLOCK_COMMENT,regex:this.BLOCK_COMMENT_REGEX})},h.prototype.getStringToken=function(_){return this.getTokenOnFirstMatch({input:_,type:w.default.STRING,regex:this.STRING_REGEX})},h.prototype.getOpenParenToken=function(_){return this.getTokenOnFirstMatch({input:_,type:w.default.OPEN_PAREN,regex:this.OPEN_PAREN_REGEX})},h.prototype.getCloseParenToken=function(_){return this.getTokenOnFirstMatch({input:_,type:w.default.CLOSE_PAREN,regex:this.CLOSE_PAREN_REGEX})},h.prototype.getPlaceholderToken=function(_){return this.getIdentNamedPlaceholderToken(_)||this.getStringNamedPlaceholderToken(_)||this.getIndexedPlaceholderToken(_)},h.prototype.getIdentNamedPlaceholderToken=function(_){return this.getPlaceholderTokenWithKey({input:_,regex:this.IDENT_NAMED_PLACEHOLDER_REGEX,parseKey:function(S){return S.slice(1)}})},h.prototype.getStringNamedPlaceholderToken=function(_){var p=this;return this.getPlaceholderTokenWithKey({input:_,regex:this.STRING_NAMED_PLACEHOLDER_REGEX,parseKey:function(k){return p.getEscapedPlaceholderKey({key:k.slice(2,-1),quoteChar:k.slice(-1)})}})},h.prototype.getIndexedPlaceholderToken=function(_){return this.getPlaceholderTokenWithKey({input:_,regex:this.INDEXED_PLACEHOLDER_REGEX,parseKey:function(S){return S.slice(1)}})},h.prototype.getPlaceholderTokenWithKey=function(_){var p=_.input,S=_.regex,k=_.parseKey,O=this.getTokenOnFirstMatch({input:p,regex:S,type:w.default.PLACEHOLDER});return O&&(O.key=k(O.value)),O},h.prototype.getEscapedPlaceholderKey=function(_){var p=_.key,S=_.quoteChar;return p.replace(new RegExp((0,y.default)("\\")+S,"g"),S)},h.prototype.getNumberToken=function(_){return this.getTokenOnFirstMatch({input:_,type:w.default.NUMBER,regex:this.NUMBER_REGEX})},h.prototype.getOperatorToken=function(_){return this.getTokenOnFirstMatch({input:_,type:w.default.OPERATOR,regex:this.OPERATOR_REGEX})},h.prototype.getReservedWordToken=function(_,p){if(!(p&&p.value&&p.value==="."))return this.getToplevelReservedToken(_)||this.getNewlineReservedToken(_)||this.getPlainReservedToken(_)},h.prototype.getToplevelReservedToken=function(_){return this.getTokenOnFirstMatch({input:_,type:w.default.RESERVED_TOPLEVEL,regex:this.RESERVED_TOPLEVEL_REGEX})},h.prototype.getNewlineReservedToken=function(_){return this.getTokenOnFirstMatch({input:_,type:w.default.RESERVED_NEWLINE,regex:this.RESERVED_NEWLINE_REGEX})},h.prototype.getPlainReservedToken=function(_){return this.getTokenOnFirstMatch({input:_,type:w.default.RESERVED,regex:this.RESERVED_PLAIN_REGEX})},h.prototype.getWordToken=function(_){return this.getTokenOnFirstMatch({input:_,type:w.default.WORD,regex:this.WORD_REGEX})},h.prototype.getTokenOnFirstMatch=function(_){var p=_.input,S=_.type,k=_.regex,O=p.match(k);if(O)return{type:S,value:O[1]}},h}();N.default=v,oe.exports=N.default},53385:function(oe,N){"use strict";N.__esModule=!0,N.default={WHITESPACE:"whitespace",WORD:"word",STRING:"string",RESERVED:"reserved",RESERVED_TOPLEVEL:"reserved-toplevel",RESERVED_NEWLINE:"reserved-newline",OPERATOR:"operator",OPEN_PAREN:"open-paren",CLOSE_PAREN:"close-paren",LINE_COMMENT:"line-comment",BLOCK_COMMENT:"block-comment",NUMBER:"number",PLACEHOLDER:"placeholder"},oe.exports=N.default},91965:function(oe,N,o){"use strict";N.__esModule=!0;var x=o(87716),g=M(x),A=o(19953),y=M(A);function M(_){return _&&_.__esModule?_:{default:_}}function w(_,p){if(!(_ instanceof p))throw new TypeError("Cannot call a class as a function")}var m=["ABS","ACTIVATE","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","ANY","ARE","ARRAY","AS","ASC","ASENSITIVE","ASSOCIATE","ASUTIME","ASYMMETRIC","AT","ATOMIC","ATTRIBUTES","AUDIT","AUTHORIZATION","AUX","AUXILIARY","AVG","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BUFFERPOOL","BY","CACHE","CALL","CALLED","CAPTURE","CARDINALITY","CASCADED","CASE","CAST","CCSID","CEIL","CEILING","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CLOB","CLONE","CLOSE","CLUSTER","COALESCE","COLLATE","COLLECT","COLLECTION","COLLID","COLUMN","COMMENT","COMMIT","CONCAT","CONDITION","CONNECT","CONNECTION","CONSTRAINT","CONTAINS","CONTINUE","CONVERT","CORR","CORRESPONDING","COUNT","COUNT_BIG","COVAR_POP","COVAR_SAMP","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DATE","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFINITION","DELETE","DENSERANK","DENSE_RANK","DEREF","DESCRIBE","DESCRIPTOR","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DOUBLE","DROP","DSSIZE","DYNAMIC","EACH","EDITPROC","ELEMENT","ELSE","ELSEIF","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ERASE","ESCAPE","EVERY","EXCEPTION","EXCLUDING","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXP","EXPLAIN","EXTENDED","EXTERNAL","EXTRACT","FALSE","FENCED","FETCH","FIELDPROC","FILE","FILTER","FINAL","FIRST","FLOAT","FLOOR","FOR","FOREIGN","FREE","FULL","FUNCTION","FUSION","GENERAL","GENERATED","GET","GLOBAL","GOTO","GRANT","GRAPHIC","GROUP","GROUPING","HANDLER","HASH","HASHED_VALUE","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IMMEDIATE","IN","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDICATOR","INDICATORS","INF","INFINITY","INHERIT","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTEGRITY","INTERSECTION","INTERVAL","INTO","IS","ISOBID","ISOLATION","ITERATE","JAR","JAVA","KEEP","KEY","LABEL","LANGUAGE","LARGE","LATERAL","LC_CTYPE","LEADING","LEAVE","LEFT","LIKE","LINKTYPE","LN","LOCAL","LOCALDATE","LOCALE","LOCALTIME","LOCALTIMESTAMP","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LONG","LOOP","LOWER","MAINTAINED","MATCH","MATERIALIZED","MAX","MAXVALUE","MEMBER","MERGE","METHOD","MICROSECOND","MICROSECONDS","MIN","MINUTE","MINUTES","MINVALUE","MOD","MODE","MODIFIES","MODULE","MONTH","MONTHS","MULTISET","NAN","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZE","NORMALIZED","NOT","NULL","NULLIF","NULLS","NUMERIC","NUMPARTS","OBID","OCTET_LENGTH","OF","OFFSET","OLD","OLD_TABLE","ON","ONLY","OPEN","OPTIMIZATION","OPTIMIZE","OPTION","ORDER","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","PACKAGE","PADDED","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSWORD","PATH","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","PIECESIZE","PLAN","POSITION","POWER","PRECISION","PREPARE","PREVVAL","PRIMARY","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","RANGE","RANK","READ","READS","REAL","RECOVERY","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROUTINE","ROW","ROWNUMBER","ROWS","ROWSET","ROW_NUMBER","RRN","RUN","SAVEPOINT","SCHEMA","SCOPE","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURITY","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SIGNAL","SIMILAR","SIMPLE","SMALLINT","SNAN","SOME","SOURCE","SPECIFIC","SPECIFICTYPE","SQL","SQLEXCEPTION","SQLID","SQLSTATE","SQLWARNING","SQRT","STACKED","STANDARD","START","STARTING","STATEMENT","STATIC","STATMENT","STAY","STDDEV_POP","STDDEV_SAMP","STOGROUP","STORES","STYLE","SUBMULTISET","SUBSTRING","SUM","SUMMARY","SYMMETRIC","SYNONYM","SYSFUN","SYSIBM","SYSPROC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","TABLESPACE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSACTION","TRANSLATE","TRANSLATION","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TYPE","UESCAPE","UNDO","UNIQUE","UNKNOWN","UNNEST","UNTIL","UPPER","USAGE","USER","USING","VALIDPROC","VALUE","VARCHAR","VARIABLE","VARIANT","VARYING","VAR_POP","VAR_SAMP","VCAT","VERSION","VIEW","VOLATILE","VOLUMES","WHEN","WHENEVER","WHILE","WIDTH_BUCKET","WINDOW","WITH","WITHIN","WITHOUT","WLM","WRITE","XMLELEMENT","XMLEXISTS","XMLNAMESPACES","YEAR","YEARS"],b=["ADD","AFTER","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FETCH FIRST","FROM","GROUP BY","GO","HAVING","INSERT INTO","INTERSECT","LIMIT","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UNION ALL","UPDATE","VALUES","WHERE"],v=["AND","CROSS JOIN","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN"],h=void 0,d=function(){function _(p){w(this,_),this.cfg=p}return _.prototype.format=function(S){return h||(h=new y.default({reservedWords:m,reservedToplevelWords:b,reservedNewlineWords:v,stringTypes:['""',"''","``","[]"],openParens:["("],closeParens:[")"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],specialWordChars:["#","@"]})),new g.default(this.cfg,h).format(S)},_}();N.default=d,oe.exports=N.default},39524:function(oe,N,o){"use strict";N.__esModule=!0;var x=o(87716),g=M(x),A=o(19953),y=M(A);function M(_){return _&&_.__esModule?_:{default:_}}function w(_,p){if(!(_ instanceof p))throw new TypeError("Cannot call a class as a function")}var m=["ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","CONNECT","CONTINUE","CORRELATE","COVER","CREATE","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FIRST","FLATTEN","FOR","FORCE","FROM","FUNCTION","GRANT","GROUP","GSI","HAVING","IF","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LAST","LEFT","LET","LETTING","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MINUS","MISSING","NAMESPACE","NEST","NOT","NULL","NUMBER","OBJECT","OFFSET","ON","OPTION","OR","ORDER","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROCEDURE","PUBLIC","RAW","REALM","REDUCE","RENAME","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","SATISFIES","SCHEMA","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TO","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WITH","WITHIN","WORK","XOR"],b=["DELETE FROM","EXCEPT ALL","EXCEPT","EXPLAIN DELETE FROM","EXPLAIN UPDATE","EXPLAIN UPSERT","FROM","GROUP BY","HAVING","INFER","INSERT INTO","INTERSECT ALL","INTERSECT","LET","LIMIT","MERGE","NEST","ORDER BY","PREPARE","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UNION ALL","UNION","UNNEST","UPDATE","UPSERT","USE KEYS","VALUES","WHERE"],v=["AND","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","XOR"],h=void 0,d=function(){function _(p){w(this,_),this.cfg=p}return _.prototype.format=function(S){return h||(h=new y.default({reservedWords:m,reservedToplevelWords:b,reservedNewlineWords:v,stringTypes:['""',"''","``"],openParens:["(","[","{"],closeParens:[")","]","}"],namedPlaceholderTypes:["$"],lineCommentTypes:["#","--"]})),new g.default(this.cfg,h).format(S)},_}();N.default=d,oe.exports=N.default},36611:function(oe,N,o){"use strict";N.__esModule=!0;var x=o(87716),g=M(x),A=o(19953),y=M(A);function M(_){return _&&_.__esModule?_:{default:_}}function w(_,p){if(!(_ instanceof p))throw new TypeError("Cannot call a class as a function")}var m=["A","ACCESSIBLE","AGENT","AGGREGATE","ALL","ALTER","ANY","ARRAY","AS","ASC","AT","ATTRIBUTE","AUTHID","AVG","BETWEEN","BFILE_BASE","BINARY_INTEGER","BINARY","BLOB_BASE","BLOCK","BODY","BOOLEAN","BOTH","BOUND","BULK","BY","BYTE","C","CALL","CALLING","CASCADE","CASE","CHAR_BASE","CHAR","CHARACTER","CHARSET","CHARSETFORM","CHARSETID","CHECK","CLOB_BASE","CLONE","CLOSE","CLUSTER","CLUSTERS","COALESCE","COLAUTH","COLLECT","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPILED","COMPRESS","CONNECT","CONSTANT","CONSTRUCTOR","CONTEXT","CONTINUE","CONVERT","COUNT","CRASH","CREATE","CREDENTIAL","CURRENT","CURRVAL","CURSOR","CUSTOMDATUM","DANGLING","DATA","DATE_BASE","DATE","DAY","DECIMAL","DEFAULT","DEFINE","DELETE","DESC","DETERMINISTIC","DIRECTORY","DISTINCT","DO","DOUBLE","DROP","DURATION","ELEMENT","ELSIF","EMPTY","ESCAPE","EXCEPTIONS","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTENDS","EXTERNAL","EXTRACT","FALSE","FETCH","FINAL","FIRST","FIXED","FLOAT","FOR","FORALL","FORCE","FROM","FUNCTION","GENERAL","GOTO","GRANT","GROUP","HASH","HEAP","HIDDEN","HOUR","IDENTIFIED","IF","IMMEDIATE","IN","INCLUDING","INDEX","INDEXES","INDICATOR","INDICES","INFINITE","INSTANTIABLE","INT","INTEGER","INTERFACE","INTERVAL","INTO","INVALIDATE","IS","ISOLATION","JAVA","LANGUAGE","LARGE","LEADING","LENGTH","LEVEL","LIBRARY","LIKE","LIKE2","LIKE4","LIKEC","LIMITED","LOCAL","LOCK","LONG","MAP","MAX","MAXLEN","MEMBER","MERGE","MIN","MINUS","MINUTE","MLSLABEL","MOD","MODE","MONTH","MULTISET","NAME","NAN","NATIONAL","NATIVE","NATURAL","NATURALN","NCHAR","NEW","NEXTVAL","NOCOMPRESS","NOCOPY","NOT","NOWAIT","NULL","NULLIF","NUMBER_BASE","NUMBER","OBJECT","OCICOLL","OCIDATE","OCIDATETIME","OCIDURATION","OCIINTERVAL","OCILOBLOCATOR","OCINUMBER","OCIRAW","OCIREF","OCIREFCURSOR","OCIROWID","OCISTRING","OCITYPE","OF","OLD","ON","ONLY","OPAQUE","OPEN","OPERATOR","OPTION","ORACLE","ORADATA","ORDER","ORGANIZATION","ORLANY","ORLVARY","OTHERS","OUT","OVERLAPS","OVERRIDING","PACKAGE","PARALLEL_ENABLE","PARAMETER","PARAMETERS","PARENT","PARTITION","PASCAL","PCTFREE","PIPE","PIPELINED","PLS_INTEGER","PLUGGABLE","POSITIVE","POSITIVEN","PRAGMA","PRECISION","PRIOR","PRIVATE","PROCEDURE","PUBLIC","RAISE","RANGE","RAW","READ","REAL","RECORD","REF","REFERENCE","RELEASE","RELIES_ON","REM","REMAINDER","RENAME","RESOURCE","RESULT_CACHE","RESULT","RETURN","RETURNING","REVERSE","REVOKE","ROLLBACK","ROW","ROWID","ROWNUM","ROWTYPE","SAMPLE","SAVE","SAVEPOINT","SB1","SB2","SB4","SECOND","SEGMENT","SELF","SEPARATE","SEQUENCE","SERIALIZABLE","SHARE","SHORT","SIZE_T","SIZE","SMALLINT","SOME","SPACE","SPARSE","SQL","SQLCODE","SQLDATA","SQLERRM","SQLNAME","SQLSTATE","STANDARD","START","STATIC","STDDEV","STORED","STRING","STRUCT","STYLE","SUBMULTISET","SUBPARTITION","SUBSTITUTABLE","SUBTYPE","SUCCESSFUL","SUM","SYNONYM","SYSDATE","TABAUTH","TABLE","TDO","THE","THEN","TIME","TIMESTAMP","TIMEZONE_ABBR","TIMEZONE_HOUR","TIMEZONE_MINUTE","TIMEZONE_REGION","TO","TRAILING","TRANSACTION","TRANSACTIONAL","TRIGGER","TRUE","TRUSTED","TYPE","UB1","UB2","UB4","UID","UNDER","UNIQUE","UNPLUG","UNSIGNED","UNTRUSTED","USE","USER","USING","VALIDATE","VALIST","VALUE","VARCHAR","VARCHAR2","VARIABLE","VARIANCE","VARRAY","VARYING","VIEW","VIEWS","VOID","WHENEVER","WHILE","WITH","WORK","WRAPPED","WRITE","YEAR","ZONE"],b=["ADD","ALTER COLUMN","ALTER TABLE","BEGIN","CONNECT BY","DECLARE","DELETE FROM","DELETE","END","EXCEPT","EXCEPTION","FETCH FIRST","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","INTERSECT","LIMIT","LOOP","MODIFY","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","START WITH","UNION ALL","UNION","UPDATE","VALUES","WHERE"],v=["AND","CROSS APPLY","CROSS JOIN","ELSE","END","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER APPLY","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","WHEN","XOR"],h=void 0,d=function(){function _(p){w(this,_),this.cfg=p}return _.prototype.format=function(S){return h||(h=new y.default({reservedWords:m,reservedToplevelWords:b,reservedNewlineWords:v,stringTypes:['""',"N''","''","``"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],specialWordChars:["_","$","#",".","@"]})),new g.default(this.cfg,h).format(S)},_}();N.default=d,oe.exports=N.default},3347:function(oe,N,o){"use strict";N.__esModule=!0;var x=o(87716),g=M(x),A=o(19953),y=M(A);function M(_){return _&&_.__esModule?_:{default:_}}function w(_,p){if(!(_ instanceof p))throw new TypeError("Cannot call a class as a function")}var m=["ACCESSIBLE","ACTION","AGAINST","AGGREGATE","ALGORITHM","ALL","ALTER","ANALYSE","ANALYZE","AS","ASC","AUTOCOMMIT","AUTO_INCREMENT","BACKUP","BEGIN","BETWEEN","BINLOG","BOTH","CASCADE","CASE","CHANGE","CHANGED","CHARACTER SET","CHARSET","CHECK","CHECKSUM","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPRESSED","CONCURRENT","CONSTRAINT","CONTAINS","CONVERT","CREATE","CROSS","CURRENT_TIMESTAMP","DATABASE","DATABASES","DAY","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DEFAULT","DEFINER","DELAYED","DELETE","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DO","DROP","DUMPFILE","DUPLICATE","DYNAMIC","ELSE","ENCLOSED","END","ENGINE","ENGINES","ENGINE_TYPE","ESCAPE","ESCAPED","EVENTS","EXEC","EXECUTE","EXISTS","EXPLAIN","EXTENDED","FAST","FETCH","FIELDS","FILE","FIRST","FIXED","FLUSH","FOR","FORCE","FOREIGN","FULL","FULLTEXT","FUNCTION","GLOBAL","GRANT","GRANTS","GROUP_CONCAT","HEAP","HIGH_PRIORITY","HOSTS","HOUR","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IFNULL","IGNORE","IN","INDEX","INDEXES","INFILE","INSERT","INSERT_ID","INSERT_METHOD","INTERVAL","INTO","INVOKER","IS","ISOLATION","KEY","KEYS","KILL","LAST_INSERT_ID","LEADING","LEVEL","LIKE","LINEAR","LINES","LOAD","LOCAL","LOCK","LOCKS","LOGS","LOW_PRIORITY","MARIA","MASTER","MASTER_CONNECT_RETRY","MASTER_HOST","MASTER_LOG_FILE","MATCH","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MERGE","MINUTE","MINUTE_SECOND","MIN_ROWS","MODE","MODIFY","MONTH","MRG_MYISAM","MYISAM","NAMES","NATURAL","NOT","NOW()","NULL","OFFSET","ON DELETE","ON UPDATE","ON","ONLY","OPEN","OPTIMIZE","OPTION","OPTIONALLY","OUTFILE","PACK_KEYS","PAGE","PARTIAL","PARTITION","PARTITIONS","PASSWORD","PRIMARY","PRIVILEGES","PROCEDURE","PROCESS","PROCESSLIST","PURGE","QUICK","RAID0","RAID_CHUNKS","RAID_CHUNKSIZE","RAID_TYPE","RANGE","READ","READ_ONLY","READ_WRITE","REFERENCES","REGEXP","RELOAD","RENAME","REPAIR","REPEATABLE","REPLACE","REPLICATION","RESET","RESTORE","RESTRICT","RETURN","RETURNS","REVOKE","RLIKE","ROLLBACK","ROW","ROWS","ROW_FORMAT","SECOND","SECURITY","SEPARATOR","SERIALIZABLE","SESSION","SHARE","SHOW","SHUTDOWN","SLAVE","SONAME","SOUNDS","SQL","SQL_AUTO_IS_NULL","SQL_BIG_RESULT","SQL_BIG_SELECTS","SQL_BIG_TABLES","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQL_LOG_BIN","SQL_LOG_OFF","SQL_LOG_UPDATE","SQL_LOW_PRIORITY_UPDATES","SQL_MAX_JOIN_SIZE","SQL_NO_CACHE","SQL_QUOTE_SHOW_CREATE","SQL_SAFE_UPDATES","SQL_SELECT_LIMIT","SQL_SLAVE_SKIP_COUNTER","SQL_SMALL_RESULT","SQL_WARNINGS","START","STARTING","STATUS","STOP","STORAGE","STRAIGHT_JOIN","STRING","STRIPED","SUPER","TABLE","TABLES","TEMPORARY","TERMINATED","THEN","TO","TRAILING","TRANSACTIONAL","TRUE","TRUNCATE","TYPE","TYPES","UNCOMMITTED","UNIQUE","UNLOCK","UNSIGNED","USAGE","USE","USING","VARIABLES","VIEW","WHEN","WITH","WORK","WRITE","YEAR_MONTH"],b=["ADD","AFTER","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FETCH FIRST","FROM","GROUP BY","GO","HAVING","INSERT INTO","INSERT","INTERSECT","LIMIT","MODIFY","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UNION ALL","UNION","UPDATE","VALUES","WHERE"],v=["AND","CROSS APPLY","CROSS JOIN","ELSE","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER APPLY","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","WHEN","XOR"],h=void 0,d=function(){function _(p){w(this,_),this.cfg=p}return _.prototype.format=function(S){return h||(h=new y.default({reservedWords:m,reservedToplevelWords:b,reservedNewlineWords:v,stringTypes:['""',"N''","''","``","[]"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:["@",":"],lineCommentTypes:["#","--"]})),new g.default(this.cfg,h).format(S)},_}();N.default=d,oe.exports=N.default},30604:function(oe,N,o){"use strict";N.__esModule=!0;var x=o(91965),g=v(x),A=o(39524),y=v(A),M=o(36611),w=v(M),m=o(3347),b=v(m);function v(h){return h&&h.__esModule?h:{default:h}}N.default={format:function(d,_){switch(_=_||{},_.language){case"db2":return new g.default(_).format(d);case"n1ql":return new y.default(_).format(d);case"pl/sql":return new w.default(_).format(d);case"sql":case void 0:return new b.default(_).format(d);default:throw Error("Unsupported SQL dialect: "+_.language)}}},oe.exports=N.default},62253:function(oe){"use strict";oe.exports=function(N){return encodeURIComponent(N).replace(/[!'()*]/g,function(o){return"%".concat(o.charCodeAt(0).toString(16).toUpperCase())})}},26392:function(oe,N,o){"use strict";o.r(N),o.d(N,{css:function(){return G},keyframes:function(){return $e},injectGlobal:function(){return kt},ThemeProvider:function(){return Et},withTheme:function(){return We},ServerStyleSheet:function(){return qe},StyleSheetManager:function(){return Fe}});var x=o(15933),g=o.n(x),A=o(82177),y=o.n(A),M=o(67294),w=o(44721),m=o.n(w),b=o(22691),v=o.n(b);oe=o.hmd(oe);var h=/([A-Z])/g;function d(vt){return vt.replace(h,"-$1").toLowerCase()}var _=d,p=_,S=/^ms-/;function k(vt){return p(vt).replace(S,"-ms-")}var O=k,F=function vt(Ct,Bt){var mt=Object.keys(Ct).filter(function(Zt){var zt=Ct[Zt];return zt!=null&&zt!==!1&&zt!==""}).map(function(Zt){return g()(Ct[Zt])?vt(Ct[Zt],Zt):O(Zt)+": "+Ct[Zt]+";"}).join(" ");return Bt?Bt+` {
|
||
`+mt+`
|
||
}`:mt},D=function vt(Ct,Bt){return Ct.reduce(function(mt,Zt){return Zt==null||Zt===!1||Zt===""?mt:Array.isArray(Zt)?[].concat(mt,vt(Zt,Bt)):Zt.hasOwnProperty("styledComponentId")?[].concat(mt,["."+Zt.styledComponentId]):typeof Zt=="function"?Bt?mt.concat.apply(mt,vt([Zt(Bt)],Bt)):mt.concat(Zt):mt.concat(g()(Zt)?F(Zt):Zt.toString())},[])},Z=new(y())({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!0}),W=function(Ct,Bt,mt){var Zt=Ct.join("").replace(/^\s*\/\/.*$/gm,""),zt=Bt&&mt?mt+" "+Bt+" { "+Zt+" }":Zt;return Z(mt||!Bt?"":Bt,zt)},U="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),L=U.length,V=function(Ct){var Bt="",mt=void 0;for(mt=Ct;mt>L;mt=Math.floor(mt/L))Bt=U[mt%L]+Bt;return U[mt%L]+Bt},$=function(Ct,Bt){return Bt.reduce(function(mt,Zt,zt){return mt.concat(Zt,Ct[zt+1])},[Ct[0]])},G=function(Ct){for(var Bt=arguments.length,mt=Array(Bt>1?Bt-1:0),Zt=1;Zt<Bt;Zt++)mt[Zt-1]=arguments[Zt];return D($(Ct,mt))},z=/^[^\S\n]*?\/\* sc-component-id:\s+(\S+)\s+\*\//gm,K=function(Ct){var Bt=""+(Ct||""),mt=[];return Bt.replace(z,function(Zt,zt,ln){return mt.push({componentId:zt,matchIndex:ln}),Zt}),mt.map(function(Zt,zt){var ln=Zt.componentId,An=Zt.matchIndex,En=mt[zt+1],Gn=En?Bt.slice(An,En.matchIndex):Bt.slice(An);return{componentId:ln,cssFromDOM:Gn}})},re=function(){return o.nc},ne=function(Ct,Bt){if(!(Ct instanceof Bt))throw new TypeError("Cannot call a class as a function")},Q=function(){function vt(Ct,Bt){for(var mt=0;mt<Bt.length;mt++){var Zt=Bt[mt];Zt.enumerable=Zt.enumerable||!1,Zt.configurable=!0,"value"in Zt&&(Zt.writable=!0),Object.defineProperty(Ct,Zt.key,Zt)}}return function(Ct,Bt,mt){return Bt&&vt(Ct.prototype,Bt),mt&&vt(Ct,mt),Ct}}(),ue=Object.assign||function(vt){for(var Ct=1;Ct<arguments.length;Ct++){var Bt=arguments[Ct];for(var mt in Bt)Object.prototype.hasOwnProperty.call(Bt,mt)&&(vt[mt]=Bt[mt])}return vt},he=function(Ct,Bt){if(typeof Bt!="function"&&Bt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Bt);Ct.prototype=Object.create(Bt&&Bt.prototype,{constructor:{value:Ct,enumerable:!1,writable:!0,configurable:!0}}),Bt&&(Object.setPrototypeOf?Object.setPrototypeOf(Ct,Bt):Ct.__proto__=Bt)},Ee=function(Ct,Bt){var mt={};for(var Zt in Ct)Bt.indexOf(Zt)>=0||!Object.prototype.hasOwnProperty.call(Ct,Zt)||(mt[Zt]=Ct[Zt]);return mt},ce=function(Ct,Bt){if(!Ct)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Bt&&(typeof Bt=="object"||typeof Bt=="function")?Bt:Ct},ve=40,fe=function(){function vt(Ct,Bt){var mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";ne(this,vt),this.el=Ct,this.isLocal=Bt,this.ready=!1;var Zt=K(mt);this.size=Zt.length,this.components=Zt.reduce(function(zt,ln){return zt[ln.componentId]=ln,zt},{})}return vt.prototype.isFull=function(){return this.size>=ve},vt.prototype.addComponent=function(Bt){this.ready||this.replaceElement();var mt={componentId:Bt,textNode:document.createTextNode("")};this.el.appendChild(mt.textNode),this.size+=1,this.components[Bt]=mt},vt.prototype.inject=function(Bt,mt,Zt){this.ready||this.replaceElement();var zt=this.components[Bt];if(zt.textNode.data===""&&zt.textNode.appendData(`
|
||
/* sc-component-id: `+Bt+` */
|
||
`),zt.textNode.appendData(mt),Zt){var ln=this.el.getAttribute(me);this.el.setAttribute(me,ln?ln+" "+Zt:Zt)}var An=re();An&&this.el.setAttribute("nonce",An)},vt.prototype.toHTML=function(){return this.el.outerHTML},vt.prototype.toReactElement=function(){throw new Error("BrowserTag doesn't implement toReactElement!")},vt.prototype.clone=function(){throw new Error("BrowserTag cannot be cloned!")},vt.prototype.replaceElement=function(){var Bt=this;if(this.ready=!0,this.size!==0){var mt=this.el.cloneNode();if(mt.appendChild(document.createTextNode(`
|
||
`)),Object.keys(this.components).forEach(function(Zt){var zt=Bt.components[Zt];zt.textNode=document.createTextNode(zt.cssFromDOM),mt.appendChild(zt.textNode)}),!this.el.parentNode)throw new Error("Trying to replace an element that wasn't mounted!");this.el.parentNode.replaceChild(mt,this.el),this.el=mt}},vt}(),we={create:function(){for(var Ct=[],Bt={},mt=document.querySelectorAll("["+me+"]"),Zt=mt.length,zt=0;zt<Zt;zt+=1){var ln=mt[zt];Ct.push(new fe(ln,ln.getAttribute(Pe)==="true",ln.innerHTML));var An=ln.getAttribute(me);An&&An.trim().split(/\s+/).forEach(function(Gn){Bt[Gn]=!0})}var En=function(Bn){var pr=document.createElement("style");if(pr.type="text/css",pr.setAttribute(me,""),pr.setAttribute(Pe,Bn?"true":"false"),!document.head)throw new Error("Missing document <head>");return document.head.appendChild(pr),new fe(pr,Bn)};return new ke(En,Ct,Bt)}},me="data-styled-components",Pe="data-styled-components-is-local",pe="__styled-components-stylesheet__",Ie=null,Je=[],ke=function(){function vt(Ct){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ne(this,vt),this.hashes={},this.deferredInjections={},this.stylesCacheable=typeof document!="undefined",this.tagConstructor=Ct,this.tags=Bt,this.names=mt,this.constructComponentTagMap()}return vt.prototype.constructComponentTagMap=function(){var Bt=this;this.componentTags={},this.tags.forEach(function(mt){Object.keys(mt.components).forEach(function(Zt){Bt.componentTags[Zt]=mt})})},vt.prototype.getName=function(Bt){return this.hashes[Bt.toString()]},vt.prototype.alreadyInjected=function(Bt,mt){return this.names[mt]?(this.hashes[Bt.toString()]=mt,!0):!1},vt.prototype.hasInjectedComponent=function(Bt){return!!this.componentTags[Bt]},vt.prototype.deferredInject=function(Bt,mt,Zt){this===Ie&&Je.forEach(function(zt){zt.deferredInject(Bt,mt,Zt)}),this.getOrCreateTag(Bt,mt),this.deferredInjections[Bt]=Zt},vt.prototype.inject=function(Bt,mt,Zt,zt,ln){this===Ie&&Je.forEach(function(Gn){Gn.inject(Bt,mt,Zt)});var An=this.getOrCreateTag(Bt,mt),En=this.deferredInjections[Bt];En&&(An.inject(Bt,En),delete this.deferredInjections[Bt]),An.inject(Bt,Zt,ln),zt&&ln&&(this.hashes[zt.toString()]=ln)},vt.prototype.toHTML=function(){return this.tags.map(function(Bt){return Bt.toHTML()}).join("")},vt.prototype.toReactElements=function(){return this.tags.map(function(Bt,mt){return Bt.toReactElement("sc-"+mt)})},vt.prototype.getOrCreateTag=function(Bt,mt){var Zt=this.componentTags[Bt];if(Zt)return Zt;var zt=this.tags[this.tags.length-1],ln=!zt||zt.isFull()||zt.isLocal!==mt?this.createNewTag(mt):zt;return this.componentTags[Bt]=ln,ln.addComponent(Bt),ln},vt.prototype.createNewTag=function(Bt){var mt=this.tagConstructor(Bt);return this.tags.push(mt),mt},vt.reset=function(Bt){Ie=vt.create(Bt)},vt.create=function(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:typeof document=="undefined";return(Bt?qe:we).create()},vt.clone=function(Bt){var mt=new vt(Bt.tagConstructor,Bt.tags.map(function(Zt){return Zt.clone()}),ue({},Bt.names));return mt.hashes=ue({},Bt.hashes),mt.deferredInjections=ue({},Bt.deferredInjections),Je.push(mt),mt},Q(vt,null,[{key:"instance",get:function(){return Ie||(Ie=vt.create())}}]),vt}(),De,Fe=function(vt){he(Ct,vt);function Ct(){return ne(this,Ct),ce(this,vt.apply(this,arguments))}return Ct.prototype.getChildContext=function(){var mt;return mt={},mt[pe]=this.props.sheet,mt},Ct.prototype.render=function(){return M.Children.only(this.props.children)},Ct}(M.Component);Fe.childContextTypes=(De={},De[pe]=m().oneOfType([m().instanceOf(ke),m().instanceOf(qe)]).isRequired,De),Fe.propTypes={sheet:m().oneOfType([m().instanceOf(ke),m().instanceOf(qe)]).isRequired};var Qe=function(){function vt(Ct){ne(this,vt),this.isLocal=Ct,this.components={},this.size=0,this.names=[]}return vt.prototype.isFull=function(){return!1},vt.prototype.addComponent=function(Bt){this.components[Bt]={componentId:Bt,css:""},this.size+=1},vt.prototype.concatenateCSS=function(){var Bt=this;return Object.keys(this.components).reduce(function(mt,Zt){return mt+Bt.components[Zt].css},"")},vt.prototype.inject=function(Bt,mt,Zt){var zt=this.components[Bt];zt.css===""&&(zt.css="/* sc-component-id: "+Bt+` */
|
||
`),zt.css+=mt.replace(/\n*$/,`
|
||
`),Zt&&this.names.push(Zt)},vt.prototype.toHTML=function(){var Bt=['type="text/css"',me+'="'+this.names.join(" ")+'"',Pe+'="'+(this.isLocal?"true":"false")+'"'],mt=re();return mt&&Bt.push('nonce="'+mt+'"'),"<style "+Bt.join(" ")+">"+this.concatenateCSS()+"</style>"},vt.prototype.toReactElement=function(Bt){var mt,Zt=(mt={},mt[me]=this.names.join(" "),mt[Pe]=this.isLocal.toString(),mt),zt=re();return zt&&(Zt.nonce=zt),M.createElement("style",ue({key:Bt,type:"text/css"},Zt,{dangerouslySetInnerHTML:{__html:this.concatenateCSS()}}))},vt.prototype.clone=function(){var Bt=this,mt=new vt(this.isLocal);return mt.names=[].concat(this.names),mt.size=this.size,mt.components=Object.keys(this.components).reduce(function(Zt,zt){return Zt[zt]=ue({},Bt.components[zt]),Zt},{}),mt},vt}(),qe=function(){function vt(){ne(this,vt),this.instance=ke.clone(ke.instance)}return vt.prototype.collectStyles=function(Bt){if(this.closed)throw new Error("Can't collect styles once you've called getStyleTags!");return M.createElement(Fe,{sheet:this.instance},Bt)},vt.prototype.getStyleTags=function(){return this.closed||(Je.splice(Je.indexOf(this.instance),1),this.closed=!0),this.instance.toHTML()},vt.prototype.getStyleElement=function(){return this.closed||(Je.splice(Je.indexOf(this.instance),1),this.closed=!0),this.instance.toReactElements()},vt.create=function(){return new ke(function(Bt){return new Qe(Bt)})},vt}(),et=200,dt=function(Ct){var Bt={},mt=!1;return function(Zt){mt||(Bt[Zt]=!0,Object.keys(Bt).length>=et&&(console.warn("Over "+et+" classes were generated for component "+Ct+`.
|
||
Consider using the attrs method, together with a style object for frequently changed styles.
|
||
Example:
|
||
const Component = styled.div.attrs({
|
||
style: ({ background }) => ({
|
||
background,
|
||
}),
|
||
})\`width: 100%;\`
|
||
|
||
<Component />`),mt=!0,Bt={}))}},Ke=/^((?:s(?:uppressContentEditableWarn|croll|pac)|(?:shape|image|text)Render|(?:letter|word)Spac|vHang|hang)ing|(?:on(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)Captur|alignmentBaselin|(?:limitingConeAng|xlink(?:(?:Arcr|R)o|Tit)|s(?:urfaceSca|ty|ca)|unselectab|baseProfi|fontSty|(?:focus|dragg)ab|multip|profi|tit)l|d(?:ominantBaselin|efaultValu)|a(?:uto(?:Capitaliz|Revers|Sav)|dditiv)|(?:(?:formNoValid|xlinkActu|noValid|accumul|rot)a|autoComple|decelera)t|(?:(?:attribute|item)T|datat)yp|(?:attribute|glyph)Nam|playsInlin|(?:formE|e)ncTyp|(?:writing|input|edge)Mod|(?:xlinkTy|itemSco|keyTy|slo)p|(?:amplitu|mo)d|(?:xmlSpa|non)c|fillRul|(?:dateTi|na)m|r(?:esourc|ol)|xmlBas|wmod)e|(?:glyphOrientationHorizont|loc)al|(?:externalResourcesRequir|select|revers|mut)ed|c(?:o(?:lorInterpolationFilter|ntrol|ord)s|o(?:lor(?:Interpolation)?|ntent)|(?:ontentS(?:cript|tyle)Typ|o(?:ntentEditab|lorProfi)l|l(?:assNam|ipRul)|a(?:lcMod|ptur)|it)e|olorRendering|l(?:ipPathUnits|assID)|o(?:ntextMenu|ls)|h(?:eckedLink|a(?:llenge|rSet)|ildren|ecked)|ell(?:Spac|Padd)ing|(?:rossOrigi|olSpa)n|apHeight|lip(?:Path)?|ursor|[xy])|glyphOrientationVertical|d(?:angerouslySetInnerHTML|efaultChecked|ownload|isabled|isplay|[xy])|(?:s(?:trikethroughThickn|eaml)es|(?:und|ov)erlineThicknes|r(?:equiredExtension|adiu)|(?:requiredFeatur|tableValu|stitchTil|numOctav|filterR)e|key(?:(?:Splin|Tim)e|Param)|autoFocu|header|bia)s|(?:(?:st(?:rikethroughPosi|dDevia)|(?:und|ov)erlinePosi|(?:textDecor|elev)a|orienta)tio|(?:strokeLinejo|orig)i|formActio|zoomAndPa|onFocusI|directio|(?:vers|act)io|rowSpa|begi|ico)n|o(?:n(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)|rient)|p(?:reserveA(?:spectRatio|lpha)|ointsAt[X-Z]|anose1)|(?:patternContent|ma(?:sk(?:Content)?|rker)|primitive|gradient|pattern|filter)Units|(?:gradientT|patternT|t)ransform|(?:(?:allowTranspar|baseFrequ)enc|re(?:ferrerPolic|adOnl)|(?:(?:st(?:roke|op)O|floodO|fillO|o)pac|integr|secur)it|visibilit|fontFamil|accessKe|propert|summar)y|(?:strokeMiterlimi|(?:specularConsta|repeatCou|fontVaria)n|(?:(?:specularE|e)xpon|renderingInt|asc)en|d(?:iffuseConsta|esce)n|(?:fontSizeAdju|lengthAdju|manife)s|baselineShif|vectorEffec|(?:(?:mar(?:ker|gin)|x)H|accentH|fontW)eigh|a(?:utoCorrec|bou)|markerStar|onFocusOu|in(?:tercep|lis)|restar|forma|heigh|lis)t|(?:(?:st(?:rokeDasho|artO)|o)ffs|acceptChars|formTarg|viewTarg|srcS)et|(?:(?:enableBackgrou|markerE)n|s(?:p(?:readMetho|ee)|ee)|formMetho|m(?:arkerMi|etho)|preloa|kin)d|k(?:ernel(?:UnitLength|Matrix)|[1-4])|(?:[xy]ChannelSelect|lightingCol|textAnch|floodCol|stopCol|operat|htmlF)or|(?:allowFullScre|hidd)en|strokeDasharray|systemLanguage|(?:strokeLineca|itemPro|useMa|wra|loo)p|v(?:Mathematical|ert(?:Origin[XY]|AdvY)|alues|ocab)|(?:pointerEve|keyPoi)nts|unicodeRange|(?:(?:allowReord|placehold|frameBord|paintOrd|post|ord)e|repeatDu|d(?:efe|u))r|mathematical|(?:vI|i)deographic|h(?:oriz(?:Origin|Adv)X|ttpEquiv)|u(?:nicodeBidi|[12])|(?:fontStretc|hig)h|(?:(?:mar(?:ker|gin)W|strokeW)id|azimu)th|vAlphabetic|mediaGroup|spellCheck|(?:unitsPerE|optimu|fro)m|r(?:adioGroup|e(?:sults|f[XY]|l)|ows|[xy])|(?:xmlnsXl|valueL)ink|a(?:rabicForm|l(?:phabetic|t)|sync)|pathLength|(?:text|m(?:in|ax))Length|innerHTML|xlinkShow|(?:xlinkHr|glyphR)ef|r(?:e(?:quired|sult|f))?|o(?:verflow|pen)|(?:tabInde|(?:sand|b)bo|viewBo)x|(?:(?:href|xml|src)La|kerni)ng|f(?:o(?:ntSize|rm)|il(?:ter|l))|autoPlay|unicode|p(?:attern|oints)|t(?:arget[XY]|o)|i(?:temRef|n2|s)|divisor|d(?:efault|ata|ir)?|srcDoc|s(?:coped|te(?:m[hv]|p)|pan)|(?:width|size)s|(?:stri|la)ng|prefix|itemID|s(?:t(?:roke|art)|hape|cope|rc)|a(?:ccept|s)|t(?:arget|ype)|typeof|width|value|x(?:mlns)?|label|m(?:edia|a(?:sk|x)|in)|size|href|k(?:ey)?|end|low|x[12]|i[dn]|y[12]|g[12]|by|f[xy]|[yz])$/,Ge=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",wt=Ge+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Vt=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+wt+"]*$")),gt=function(Ct){return Ke.test(Ct)||Vt(Ct.toLowerCase())};function it(vt){return typeof vt=="string"}function Le(vt){return typeof vt=="function"&&typeof vt.styledComponentId=="string"}function ct(vt){return vt.displayName||vt.name||"Component"}var at=function(Ct,Bt,mt){var Zt=mt&&Ct.theme===mt.theme,zt=Ct.theme&&!Zt?Ct.theme:Bt;return zt},jt=/[[\].#*$><+~=|^:(),"'`-]+/g,St=/(^-|-$)/g;function fn(vt){return vt.replace(jt,"-").replace(St,"")}var Xt=function(Ct){var Bt={},mt=0,Zt=Ct;function zt(En){Zt=En;for(var Gn in Bt){var Bn=Bt[Gn];Bn!==void 0&&Bn(Zt)}}function ln(En){var Gn=mt;return Bt[Gn]=En,mt+=1,En(Zt),Gn}function An(En){Bt[En]=void 0}return{publish:zt,subscribe:ln,unsubscribe:An}},Yt=function(Ct){var Bt=!1;return function(){Bt||(Bt=!0,Ct())}},Rt,Lt,ze="__styled-components__",rt=ze+"next__",tt=m().shape({getTheme:m().func,subscribe:m().func,unsubscribe:m().func}),de=void 0,ot=function(Ct){return typeof Ct=="function"},Et=function(vt){he(Ct,vt);function Ct(){ne(this,Ct);var Bt=ce(this,vt.call(this));return Bt.unsubscribeToOuterId=-1,Bt.getTheme=Bt.getTheme.bind(Bt),Bt}return Ct.prototype.componentWillMount=function(){var mt=this,Zt=this.context[rt];Zt!==void 0&&(this.unsubscribeToOuterId=Zt.subscribe(function(zt){mt.outerTheme=zt})),this.broadcast=Xt(this.getTheme())},Ct.prototype.getChildContext=function(){var mt=this,Zt;return ue({},this.context,(Zt={},Zt[rt]={getTheme:this.getTheme,subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},Zt[ze]=function(zt){var ln=mt.broadcast.subscribe(zt);return function(){return mt.broadcast.unsubscribe(ln)}},Zt))},Ct.prototype.componentWillReceiveProps=function(mt){this.props.theme!==mt.theme&&this.broadcast.publish(this.getTheme(mt.theme))},Ct.prototype.componentWillUnmount=function(){this.unsubscribeToOuterId!==-1&&this.context[rt].unsubscribe(this.unsubscribeToOuterId)},Ct.prototype.getTheme=function(mt){var Zt=mt||this.props.theme;if(ot(Zt)){var zt=Zt(this.outerTheme);return zt}if(!g()(Zt))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return ue({},this.outerTheme,Zt)},Ct.prototype.render=function(){return this.props.children?M.Children.only(this.props.children):null},Ct}(M.Component);Et.childContextTypes=(Rt={},Rt[ze]=m().func,Rt[rt]=tt,Rt),Et.contextTypes=(Lt={},Lt[rt]=tt,Lt);var Ht={},Jt=function(Ct,Bt){var mt={},Zt=function(En,Gn){var Bn=typeof En!="string"?"sc":fn(En),pr=void 0;if(En)pr=Bn+"-"+Ct.generateName(Bn);else{var _r=(mt[Bn]||0)+1;mt[Bn]=_r,pr=Bn+"-"+Ct.generateName(Bn+_r)}return Gn!==void 0?Gn+"-"+pr:pr},zt=function(An){he(En,An);function En(){var Gn,Bn,pr;ne(this,En);for(var _r=arguments.length,na=Array(_r),$n=0;$n<_r;$n++)na[$n]=arguments[$n];return pr=(Gn=(Bn=ce(this,An.call.apply(An,[this].concat(na))),Bn),Bn.attrs={},Bn.state={theme:null,generatedClassName:""},Bn.unsubscribeId=-1,Gn),ce(Bn,pr)}return En.prototype.unsubscribeFromContext=function(){this.unsubscribeId!==-1&&this.context[rt].unsubscribe(this.unsubscribeId)},En.prototype.buildExecutionContext=function(Bn,pr){var _r=this.constructor.attrs,na=ue({},pr,{theme:Bn});return _r===void 0?na:(this.attrs=Object.keys(_r).reduce(function($n,qr){var Jr=_r[qr];return $n[qr]=typeof Jr=="function"?Jr(na):Jr,$n},{}),ue({},na,this.attrs))},En.prototype.generateAndInjectStyles=function(Bn,pr){var _r=this.constructor,na=_r.attrs,$n=_r.componentStyle,qr=_r.warnTooManyClasses,Jr=this.context[pe]||ke.instance;if($n.isStatic&&na===void 0)return $n.generateAndInjectStyles(Ht,Jr);var Aa=this.buildExecutionContext(Bn,pr),ya=$n.generateAndInjectStyles(Aa,Jr);return ya},En.prototype.componentWillMount=function(){var Bn=this,pr=this.constructor.componentStyle,_r=this.context[rt];if(pr.isStatic){var na=this.generateAndInjectStyles(Ht,this.props);this.setState({generatedClassName:na})}else if(_r!==void 0){var $n=_r.subscribe;this.unsubscribeId=$n(function(Aa){var ya=at(Bn.props,Aa,Bn.constructor.defaultProps),$t=Bn.generateAndInjectStyles(ya,Bn.props);Bn.setState({theme:ya,generatedClassName:$t})})}else{var qr=this.props.theme||{},Jr=this.generateAndInjectStyles(qr,this.props);this.setState({theme:qr,generatedClassName:Jr})}},En.prototype.componentWillReceiveProps=function(Bn){var pr=this,_r=this.constructor.componentStyle;_r.isStatic||this.setState(function(na){var $n=at(Bn,na.theme,pr.constructor.defaultProps),qr=pr.generateAndInjectStyles($n,Bn);return{theme:$n,generatedClassName:qr}})},En.prototype.componentWillUnmount=function(){this.unsubscribeFromContext()},En.prototype.render=function(){var Bn=this,pr=this.props.innerRef,_r=this.state.generatedClassName,na=this.constructor,$n=na.styledComponentId,qr=na.target,Jr=it(qr),Aa=[this.props.className,$n,this.attrs.className,_r].filter(Boolean).join(" "),ya=ue({},this.attrs,{className:Aa});Le(qr)?ya.innerRef=pr:ya.ref=pr;var $t=Object.keys(this.props).reduce(function(wn,Fn){return Fn!=="innerRef"&&Fn!=="className"&&(!Jr||gt(Fn))&&(wn[Fn]=Bn.props[Fn]),wn},ya);return(0,M.createElement)(qr,$t)},En}(M.Component),ln=function An(En,Gn,Bn){var pr,_r=Gn.displayName,na=_r===void 0?it(En)?"styled."+En:"Styled("+ct(En)+")":_r,$n=Gn.componentId,qr=$n===void 0?Zt(Gn.displayName,Gn.parentComponentId):$n,Jr=Gn.ParentComponent,Aa=Jr===void 0?zt:Jr,ya=Gn.rules,$t=Gn.attrs,wn=Gn.displayName&&Gn.componentId?fn(Gn.displayName)+"-"+Gn.componentId:qr,Fn=new Ct(ya===void 0?Bn:ya.concat(Bn),$t,wn),Or=function(vr){he(Ur,vr);function Ur(){return ne(this,Ur),ce(this,vr.apply(this,arguments))}return Ur.withComponent=function(Kr){var ba=Gn.componentId,Ri=Ee(Gn,["componentId"]),Ea=ba&&ba+"-"+(it(Kr)?Kr:fn(ct(Kr))),Pi=ue({},Ri,{componentId:Ea,ParentComponent:Ur});return An(Kr,Pi,Bn)},Q(Ur,null,[{key:"extend",get:function(){var Kr=Gn.rules,ba=Gn.componentId,Ri=Ee(Gn,["rules","componentId"]),Ea=Kr===void 0?Bn:Kr.concat(Bn),Pi=ue({},Ri,{rules:Ea,parentComponentId:ba,ParentComponent:Ur});return Bt(An,En,Pi)}}]),Ur}(Aa);return Or.contextTypes=(pr={},pr[ze]=m().func,pr[rt]=tt,pr[pe]=m().oneOfType([m().instanceOf(ke),m().instanceOf(qe)]),pr),Or.displayName=na,Or.styledComponentId=wn,Or.attrs=$t,Or.componentStyle=Fn,Or.target=En,Or};return ln};function Qt(vt,Ct){for(var Bt=1540483477,mt=24,Zt=Ct^vt.length,zt=vt.length,ln=0;zt>=4;){var An=an(vt,ln);An=qt(An,Bt),An^=An>>>mt,An=qt(An,Bt),Zt=qt(Zt,Bt),Zt^=An,ln+=4,zt-=4}switch(zt){case 3:Zt^=Un(vt,ln),Zt^=vt.charCodeAt(ln+2)<<16,Zt=qt(Zt,Bt);break;case 2:Zt^=Un(vt,ln),Zt=qt(Zt,Bt);break;case 1:Zt^=vt.charCodeAt(ln),Zt=qt(Zt,Bt);break}return Zt^=Zt>>>13,Zt=qt(Zt,Bt),Zt^=Zt>>>15,Zt>>>0}function an(vt,Ct){return vt.charCodeAt(Ct++)+(vt.charCodeAt(Ct++)<<8)+(vt.charCodeAt(Ct++)<<16)+(vt.charCodeAt(Ct)<<24)}function Un(vt,Ct){return vt.charCodeAt(Ct++)+(vt.charCodeAt(Ct++)<<8)}function qt(vt,Ct){vt=vt|0,Ct=Ct|0;var Bt=vt&65535,mt=vt>>>16,Zt=Bt*Ct+((mt*Ct&65535)<<16)|0;return Zt}var rn=function vt(Ct,Bt){for(var mt=0;mt<Ct.length;mt+=1){var Zt=Ct[mt];if(Array.isArray(Zt)&&!vt(Zt))return!1;if(typeof Zt=="function"&&!Le(Zt))return!1}if(Bt!==void 0)for(var zt in Bt){var ln=Bt[zt];if(typeof ln=="function")return!1}return!0},cn=oe.hot&&0,er=function(Ct,Bt,mt){var Zt=function(){function zt(ln,An,En){if(ne(this,zt),this.rules=ln,this.isStatic=!cn&&rn(ln,An),this.componentId=En,!ke.instance.hasInjectedComponent(this.componentId)){var Gn="";ke.instance.deferredInject(En,!0,Gn)}}return zt.prototype.generateAndInjectStyles=function(An,En){var Gn=this.isStatic,Bn=this.lastClassName;if(Gn&&Bn!==void 0)return Bn;var pr=Bt(this.rules,An),_r=Qt(this.componentId+pr.join("")),na=En.getName(_r);if(na!==void 0)return En.stylesCacheable&&(this.lastClassName=na),na;var $n=Ct(_r);if(En.stylesCacheable&&(this.lastClassName=na),En.alreadyInjected(_r,$n))return $n;var qr=`
|
||
`+mt(pr,"."+$n);return En.inject(this.componentId,!0,qr,_r,$n),$n},zt.generateName=function(An){return Ct(Qt(An))},zt}();return Zt},rr=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],nt=function(Ct,Bt){var mt=function(zt){return Bt(Ct,zt)};return rr.forEach(function(Zt){mt[Zt]=mt(Zt)}),mt},lr=function(Ct){return Ct.replace(/\s|\\n/g,"")},Hn=function(Ct,Bt,mt){return function(Zt){for(var zt=arguments.length,ln=Array(zt>1?zt-1:0),An=1;An<zt;An++)ln[An-1]=arguments[An];var En=mt.apply(void 0,[Zt].concat(ln)),Gn=Qt(lr(JSON.stringify(En))),Bn=ke.instance.getName(Gn);if(Bn)return Bn;var pr=Ct(Gn);if(ke.instance.alreadyInjected(Gn,pr))return pr;var _r=Bt(En,pr,"@keyframes");return ke.instance.inject("sc-keyframes-"+pr,!0,_r,Gn,pr),pr}},ut=function(Ct,Bt){var mt=function(zt){for(var ln=arguments.length,An=Array(ln>1?ln-1:0),En=1;En<ln;En++)An[En-1]=arguments[En];var Gn=Bt.apply(void 0,[zt].concat(An)),Bn=Qt(JSON.stringify(Gn)),pr="sc-global-"+Bn;ke.instance.hasInjectedComponent(pr)||ke.instance.inject(pr,!1,Ct(Gn))};return mt},bt=function(Ct){var Bt=function mt(Zt,zt){var ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},An=function(Gn){for(var Bn=arguments.length,pr=Array(Bn>1?Bn-1:0),_r=1;_r<Bn;_r++)pr[_r-1]=arguments[_r];return Zt(zt,ln,Ct.apply(void 0,[Gn].concat(pr)))};return An.withConfig=function(En){return mt(Zt,zt,ue({},ln,En))},An.attrs=function(En){return mt(Zt,zt,ue({},ln,{attrs:ue({},ln.attrs||{},En)}))},An};return Bt},We=function(Ct){var Bt,mt=Ct.displayName||Ct.name||"Component",Zt=Le(Ct)||typeof Ct=="function"&&!(Ct.prototype&&"isReactComponent"in Ct.prototype),zt=function(ln){he(An,ln);function An(){var En,Gn,Bn;ne(this,An);for(var pr=arguments.length,_r=Array(pr),na=0;na<pr;na++)_r[na]=arguments[na];return Bn=(En=(Gn=ce(this,ln.call.apply(ln,[this].concat(_r))),Gn),Gn.state={},Gn.unsubscribeId=-1,En),ce(Gn,Bn)}return An.prototype.componentWillMount=function(){var Gn=this,Bn=this.constructor.defaultProps,pr=this.context[rt],_r=at(this.props,void 0,Bn);if(pr===void 0&&_r!==void 0)this.setState({theme:_r});else{var na=pr.subscribe;this.unsubscribeId=na(function($n){var qr=at(Gn.props,$n,Bn);Gn.setState({theme:qr})})}},An.prototype.componentWillReceiveProps=function(Gn){var Bn=this.constructor.defaultProps;this.setState(function(pr){var _r=at(Gn,pr.theme,Bn);return{theme:_r}})},An.prototype.componentWillUnmount=function(){this.unsubscribeId!==-1&&this.context[rt].unsubscribe(this.unsubscribeId)},An.prototype.render=function(){var Gn=this.props.innerRef,Bn=this.state.theme;return M.createElement(Ct,ue({theme:Bn},this.props,{innerRef:Zt?Gn:void 0,ref:Zt?void 0:Gn}))},An}(M.Component);return zt.displayName="WithTheme("+mt+")",zt.styledComponentId="withTheme",zt.contextTypes=(Bt={},Bt[ze]=m().func,Bt[rt]=tt,Bt),v()(zt,Ct)},be=er(V,D,W),Ae=bt(G),Ue=Jt(be,Ae),$e=Hn(V,W,G),kt=ut(W,G),lt=nt(Ue,Ae);N.default=lt},82177:function(oe){(function(N){oe.exports=N(null)})(function N(o){"use strict";var x=/^\0+/g,g=/[\0\r\f]/g,A=/: */g,y=/zoo|gra/,M=/([,: ])(transform)/g,w=/,+\s*(?![^(]*[)])/g,m=/ +\s*(?![^(]*[)])/g,b=/ *[\0] */g,v=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,d=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,_=/\W+/g,p=/@(k\w+)\s*(\S*)\s*/,S=/::(place)/g,k=/:(read-only)/g,O=/\s+(?=[{\];=:>])/g,F=/([[}=:>])\s+/g,D=/(\{[^{]+?);(?=\})/g,Z=/\s{2,}/g,W=/([^\(])(:+) */g,U=/[svh]\w+-[tblr]{2}/,L=/([\w-]+t\()/g,V=/\(\s*(.*)\s*\)/g,$=/([\s\S]*?);/g,G=/-self|flex-/g,z=/[^]*?(:[rp][el]a[\w-]+)[^]*/,K=/[ \t]+$/,re=/stretch|:\s*\w+\-(?:conte|avail)/,ne=/([^-])(image-set\()/,Q="-webkit-",ue="-moz-",he="-ms-",Ee=59,ce=125,ve=123,fe=40,we=41,me=91,Pe=93,pe=10,Ie=13,Je=9,ke=64,De=32,Fe=38,Qe=45,qe=95,et=42,dt=44,Ke=58,Ge=39,wt=34,Vt=47,gt=62,it=43,Le=126,ct=0,at=12,jt=11,St=107,fn=109,Xt=115,Yt=112,Rt=111,Lt=105,ze=99,rt=100,tt=112,de=1,ot=1,Et=0,Ht=1,Jt=1,Qt=1,an=0,Un=0,qt=0,rn=[],cn=[],er=0,rr=null,nt=-2,lr=-1,Hn=0,ut=1,bt=2,We=3,be=0,Ae=1,Ue="",$e="",kt="";function lt($n,qr,Jr,Aa,ya){for(var $t=0,wn=0,Fn=0,Or=0,vr=0,Ur=0,Zr=0,Kr=0,ba=0,Ri=0,Ea=0,Pi=0,rs=0,Ui=0,Cn=0,Kn=0,Pn=0,At=0,ar=0,ta=Jr.length,Yn=ta-1,Qa="",Ua="",Fi="",Xa="",$i="",La="",ja,ei;Cn<ta;){if(Zr=Jr.charCodeAt(Cn),Cn===Yn&&wn+Or+Fn+$t!==0&&(wn!==0&&(Zr=wn===Vt?pe:Vt),Or=Fn=$t=0,ta++,Yn++),wn+Or+Fn+$t===0){if(Cn===Yn&&(Kn>0&&(Ua=Ua.replace(g,"")),Ua.trim().length>0)){switch(Zr){case De:case Je:case Ee:case Ie:case pe:break;default:Ua+=Jr.charAt(Cn)}Zr=Ee}if(Pn===1)switch(Zr){case ve:case ce:case Ee:case wt:case Ge:case fe:case we:case dt:Pn=0;case Je:case Ie:case pe:case De:break;default:for(Pn=0,ar=Cn,vr=Zr,Cn--,Zr=Ee;ar<ta;)switch(Jr.charCodeAt(ar++)){case pe:case Ie:case Ee:{++Cn,Zr=vr,ar=ta;break}case Ke:Kn>0&&(++Cn,Zr=vr);case ve:ar=ta}}switch(Zr){case ve:{for(Ua=Ua.trim(),vr=Ua.charCodeAt(0),Ea=1,ar=++Cn;Cn<ta;){switch(Zr=Jr.charCodeAt(Cn)){case ve:{Ea++;break}case ce:{Ea--;break}case Vt:{switch(Ur=Jr.charCodeAt(Cn+1)){case et:case Vt:Cn=En(Ur,Cn,Yn,Jr)}break}case me:Zr++;case fe:Zr++;case wt:case Ge:for(;Cn++<Yn&&Jr.charCodeAt(Cn)!==Zr;);}if(Ea===0)break;Cn++}switch(Fi=Jr.substring(ar,Cn),vr===ct&&(vr=(Ua=Ua.replace(x,"").trim()).charCodeAt(0)),vr){case ke:{switch(Kn>0&&(Ua=Ua.replace(g,"")),Ur=Ua.charCodeAt(1),Ur){case rt:case fn:case Xt:case Qe:{ja=qr;break}default:ja=rn}if(Fi=lt(qr,ja,Fi,Ur,ya+1),ar=Fi.length,qt>0&&ar===0&&(ar=Ua.length),er>0&&(ja=vt(rn,Ua,At),ei=An(We,Fi,ja,qr,ot,de,ar,Ur,ya,Aa),Ua=ja.join(""),ei!==void 0&&(ar=(Fi=ei.trim()).length)===0&&(Ur=0,Fi="")),ar>0)switch(Ur){case Xt:Ua=Ua.replace(V,Zt);case rt:case fn:case Qe:{Fi=Ua+"{"+Fi+"}";break}case St:{Ua=Ua.replace(p,"$1 $2"+(Ae>0?Ue:"")),Fi=Ua+"{"+Fi+"}",Jt===1||Jt===2&&mt("@"+Fi,3)?Fi="@"+Q+Fi+"@"+Fi:Fi="@"+Fi;break}default:Fi=Ua+Fi,Aa===tt&&(Fi=(Xa+=Fi,""))}else Fi="";break}default:Fi=lt(qr,vt(qr,Ua,At),Fi,Aa,ya+1)}$i+=Fi,Pi=0,Pn=0,Ui=0,Kn=0,At=0,rs=0,Ua="",Fi="",Zr=Jr.charCodeAt(++Cn);break}case ce:case Ee:{if(Ua=(Kn>0?Ua.replace(g,""):Ua).trim(),(ar=Ua.length)>1)switch(Ui===0&&(vr=Ua.charCodeAt(0),(vr===Qe||vr>96&&vr<123)&&(ar=(Ua=Ua.replace(" ",":")).length)),er>0&&(ei=An(ut,Ua,qr,$n,ot,de,Xa.length,Aa,ya,Aa))!==void 0&&(ar=(Ua=ei.trim()).length)===0&&(Ua="\0\0"),vr=Ua.charCodeAt(0),Ur=Ua.charCodeAt(1),vr){case ct:break;case ke:if(Ur===Lt||Ur===ze){La+=Ua+Jr.charAt(Cn);break}default:{if(Ua.charCodeAt(ar-1)===Ke)break;Xa+=Bt(Ua,vr,Ur,Ua.charCodeAt(2))}}Pi=0,Pn=0,Ui=0,Kn=0,At=0,Ua="",Zr=Jr.charCodeAt(++Cn);break}}}switch(Zr){case Ie:case pe:{if(wn+Or+Fn+$t+Un===0)switch(Ri){case we:case Ge:case wt:case ke:case Le:case gt:case et:case it:case Vt:case Qe:case Ke:case dt:case Ee:case ve:case ce:break;default:Ui>0&&(Pn=1)}wn===Vt?wn=0:Ht+Pi===0&&Aa!==St&&Ua.length>0&&(Kn=1,Ua+="\0"),er*be>0&&An(Hn,Ua,qr,$n,ot,de,Xa.length,Aa,ya,Aa),de=1,ot++;break}case Ee:case ce:if(wn+Or+Fn+$t===0){de++;break}default:{switch(de++,Qa=Jr.charAt(Cn),Zr){case Je:case De:{if(Or+$t+wn===0)switch(Kr){case dt:case Ke:case Je:case De:{Qa="";break}default:Zr!==De&&(Qa=" ")}break}case ct:{Qa="\\0";break}case at:{Qa="\\f";break}case jt:{Qa="\\v";break}case Fe:{Or+wn+$t===0&&Ht>0&&(At=1,Kn=1,Qa="\f"+Qa);break}case 108:{if(Or+wn+$t+Et===0&&Ui>0)switch(Cn-Ui){case 2:Kr===Yt&&Jr.charCodeAt(Cn-3)===Ke&&(Et=Kr);case 8:ba===Rt&&(Et=ba)}break}case Ke:{Or+wn+$t===0&&(Ui=Cn);break}case dt:{wn+Fn+Or+$t===0&&(Kn=1,Qa+="\r");break}case wt:case Ge:{wn===0&&(Or=Or===Zr?0:Or===0?Zr:Or);break}case me:{Or+wn+Fn===0&&$t++;break}case Pe:{Or+wn+Fn===0&&$t--;break}case we:{Or+wn+$t===0&&Fn--;break}case fe:{if(Or+wn+$t===0){if(Pi===0)switch(Kr*2+ba*3){case 533:break;default:Ea=0,Pi=1}Fn++}break}case ke:{wn+Fn+Or+$t+Ui+rs===0&&(rs=1);break}case et:case Vt:{if(Or+$t+Fn>0)break;switch(wn){case 0:{switch(Zr*2+Jr.charCodeAt(Cn+1)*3){case 235:{wn=Vt;break}case 220:{ar=Cn,wn=et;break}}break}case et:Zr===Vt&&Kr===et&&ar+2!==Cn&&(Jr.charCodeAt(ar+2)===33&&(Xa+=Jr.substring(ar,Cn+1)),Qa="",wn=0)}}}if(wn===0){if(Ht+Or+$t+rs===0&&Aa!==St&&Zr!==Ee)switch(Zr){case dt:case Le:case gt:case it:case we:case fe:{if(Pi===0){switch(Kr){case Je:case De:case pe:case Ie:{Qa=Qa+"\0";break}default:Qa="\0"+Qa+(Zr===dt?"":"\0")}Kn=1}else switch(Zr){case fe:{Ui+7===Cn&&Kr===108&&(Ui=0),Pi=++Ea;break}case we:{(Pi=--Ea)==0&&(Kn=1,Qa+="\0");break}}break}case Je:case De:switch(Kr){case ct:case ve:case ce:case Ee:case dt:case at:case Je:case De:case pe:case Ie:break;default:Pi===0&&(Kn=1,Qa+="\0")}}Ua+=Qa,Zr!==De&&Zr!==Je&&(Ri=Zr)}}}ba=Kr,Kr=Zr,Cn++}if(ar=Xa.length,qt>0&&ar===0&&$i.length===0&&qr[0].length!==0&&(Aa!==fn||qr.length===1&&(Ht>0?$e:kt)===qr[0])&&(ar=qr.join(",").length+2),ar>0){if(ja=Ht===0&&Aa!==St?ln(qr):qr,er>0&&(ei=An(bt,Xa,ja,$n,ot,de,ar,Aa,ya,Aa),ei!==void 0&&(Xa=ei).length===0))return La+Xa+$i;if(Xa=ja.join(",")+"{"+Xa+"}",Jt*Et!=0){switch(Jt===2&&!mt(Xa,2)&&(Et=0),Et){case Rt:{Xa=Xa.replace(k,":"+ue+"$1")+Xa;break}case Yt:{Xa=Xa.replace(S,"::"+Q+"input-$1")+Xa.replace(S,"::"+ue+"$1")+Xa.replace(S,":"+he+"input-$1")+Xa;break}}Et=0}}return La+Xa+$i}function vt($n,qr,Jr){var Aa=qr.trim().split(v),ya=Aa,$t=Aa.length,wn=$n.length;switch(wn){case 0:case 1:{for(var Fn=0,Or=wn===0?"":$n[0]+" ";Fn<$t;++Fn)ya[Fn]=Ct(Or,ya[Fn],Jr,wn).trim();break}default:for(var Fn=0,vr=0,ya=[];Fn<$t;++Fn)for(var Ur=0;Ur<wn;++Ur)ya[vr++]=Ct($n[Ur]+" ",Aa[Fn],Jr,wn).trim()}return ya}function Ct($n,qr,Jr,Aa){var ya=qr,$t=ya.charCodeAt(0);switch($t<33&&($t=(ya=ya.trim()).charCodeAt(0)),$t){case Fe:{switch(Ht+Aa){case 0:case 1:if($n.trim().length===0)break;default:return ya.replace(h,"$1"+$n.trim())}break}case Ke:switch(ya.charCodeAt(1)){case 103:{if(Qt>0&&Ht>0)return ya.replace(d,"$1").replace(h,"$1"+kt);break}default:return $n.trim()+ya.replace(h,"$1"+$n.trim())}default:if(Jr*Ht>0&&ya.indexOf("\f")>0)return ya.replace(h,($n.charCodeAt(0)===Ke?"":"$1")+$n.trim())}return $n+ya}function Bt($n,qr,Jr,Aa){var ya=0,$t=$n+";",wn=qr*2+Jr*3+Aa*4,Fn;if(wn===944)return zt($t);if(Jt===0||Jt===2&&!mt($t,1))return $t;switch(wn){case 1015:return $t.charCodeAt(10)===97?Q+$t+$t:$t;case 951:return $t.charCodeAt(3)===116?Q+$t+$t:$t;case 963:return $t.charCodeAt(5)===110?Q+$t+$t:$t;case 1009:if($t.charCodeAt(4)!==100)break;case 969:case 942:return Q+$t+$t;case 978:return Q+$t+ue+$t+$t;case 1019:case 983:return Q+$t+ue+$t+he+$t+$t;case 883:return $t.charCodeAt(8)===Qe?Q+$t+$t:$t.indexOf("image-set(",11)>0?$t.replace(ne,"$1"+Q+"$2")+$t:$t;case 932:{if($t.charCodeAt(4)===Qe)switch($t.charCodeAt(5)){case 103:return Q+"box-"+$t.replace("-grow","")+Q+$t+he+$t.replace("grow","positive")+$t;case 115:return Q+$t+he+$t.replace("shrink","negative")+$t;case 98:return Q+$t+he+$t.replace("basis","preferred-size")+$t}return Q+$t+he+$t+$t}case 964:return Q+$t+he+"flex-"+$t+$t;case 1023:{if($t.charCodeAt(8)!==99)break;return Fn=$t.substring($t.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),Q+"box-pack"+Fn+Q+$t+he+"flex-pack"+Fn+$t}case 1005:return y.test($t)?$t.replace(A,":"+Q)+$t.replace(A,":"+ue)+$t:$t;case 1e3:{switch(Fn=$t.substring(13).trim(),ya=Fn.indexOf("-")+1,Fn.charCodeAt(0)+Fn.charCodeAt(ya)){case 226:{Fn=$t.replace(U,"tb");break}case 232:{Fn=$t.replace(U,"tb-rl");break}case 220:{Fn=$t.replace(U,"lr");break}default:return $t}return Q+$t+he+Fn+$t}case 1017:if($t.indexOf("sticky",9)===-1)return $t;case 975:{switch(ya=($t=$n).length-10,Fn=($t.charCodeAt(ya)===33?$t.substring(0,ya):$t).substring($n.indexOf(":",7)+1).trim(),wn=Fn.charCodeAt(0)+(Fn.charCodeAt(7)|0)){case 203:if(Fn.charCodeAt(8)<111)break;case 115:{$t=$t.replace(Fn,Q+Fn)+";"+$t;break}case 207:case 102:$t=$t.replace(Fn,Q+(wn>102?"inline-":"")+"box")+";"+$t.replace(Fn,Q+Fn)+";"+$t.replace(Fn,he+Fn+"box")+";"+$t}return $t+";"}case 938:{if($t.charCodeAt(5)===Qe)switch($t.charCodeAt(6)){case 105:return Fn=$t.replace("-items",""),Q+$t+Q+"box-"+Fn+he+"flex-"+Fn+$t;case 115:return Q+$t+he+"flex-item-"+$t.replace(G,"")+$t;default:return Q+$t+he+"flex-line-pack"+$t.replace("align-content","").replace(G,"")+$t}break}case 973:case 989:if($t.charCodeAt(3)!==Qe||$t.charCodeAt(4)===122)break;case 931:case 953:{if(re.test($n)===!0)return(Fn=$n.substring($n.indexOf(":")+1)).charCodeAt(0)===115?Bt($n.replace("stretch","fill-available"),qr,Jr,Aa).replace(":fill-available",":stretch"):$t.replace(Fn,Q+Fn)+$t.replace(Fn,ue+Fn.replace("fill-",""))+$t;break}case 962:{if($t=Q+$t+($t.charCodeAt(5)===102?he+$t:"")+$t,Jr+Aa===211&&$t.charCodeAt(13)===105&&$t.indexOf("transform",10)>0)return $t.substring(0,$t.indexOf(";",27)+1).replace(M,"$1"+Q+"$2")+$t;break}}return $t}function mt($n,qr){var Jr=$n.indexOf(qr===1?":":"{"),Aa=$n.substring(0,qr!==3?Jr:10),ya=$n.substring(Jr+1,$n.length-1);return rr(qr!==2?Aa:Aa.replace(z,"$1"),ya,qr)}function Zt($n,qr){var Jr=Bt(qr,qr.charCodeAt(0),qr.charCodeAt(1),qr.charCodeAt(2));return Jr!==qr+";"?Jr.replace($," or ($1)").substring(4):"("+qr+")"}function zt($n){var qr=$n.length,Jr=$n.indexOf(":",9)+1,Aa=$n.substring(0,Jr).trim(),ya=$n.substring(Jr,qr-1).trim();switch($n.charCodeAt(9)*Ae){case 0:break;case Qe:if($n.charCodeAt(10)!==110)break;default:for(var $t=ya.split((ya="",w)),wn=0,Jr=0,qr=$t.length;wn<qr;Jr=0,++wn){for(var Fn=$t[wn],Or=Fn.split(m);Fn=Or[Jr];){var vr=Fn.charCodeAt(0);if(Ae===1&&(vr>ke&&vr<90||vr>96&&vr<123||vr===qe||vr===Qe&&Fn.charCodeAt(1)!==Qe))switch(isNaN(parseFloat(Fn))+(Fn.indexOf("(")!==-1)){case 1:switch(Fn){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:Fn+=Ue}}Or[Jr++]=Fn}ya+=(wn===0?"":",")+Or.join(" ")}}return ya=Aa+ya+";",Jt===1||Jt===2&&mt(ya,1)?Q+ya+ya:ya}function ln($n){for(var qr=0,Jr=$n.length,Aa=Array(Jr),ya,$t;qr<Jr;++qr){for(var wn=$n[qr].split(b),Fn="",Or=0,vr=0,Ur=0,Zr=0,Kr=wn.length;Or<Kr;++Or)if(!((vr=($t=wn[Or]).length)===0&&Kr>1)){if(Ur=Fn.charCodeAt(Fn.length-1),Zr=$t.charCodeAt(0),ya="",Or!==0)switch(Ur){case et:case Le:case gt:case it:case De:case fe:break;default:ya=" "}switch(Zr){case Fe:$t=ya+$e;case Le:case gt:case it:case De:case we:case fe:break;case me:{$t=ya+$t+$e;break}case Ke:{switch($t.charCodeAt(1)*2+$t.charCodeAt(2)*3){case 530:if(Qt>0){$t=ya+$t.substring(8,vr-1);break}default:(Or<1||wn[Or-1].length<1)&&($t=ya+$e+$t)}break}case dt:ya="";default:vr>1&&$t.indexOf(":")>0?$t=ya+$t.replace(W,"$1"+$e+"$2"):$t=ya+$t+$e}Fn+=$t}Aa[qr]=Fn.replace(g,"").trim()}return Aa}function An($n,qr,Jr,Aa,ya,$t,wn,Fn,Or,vr){for(var Ur=0,Zr=qr,Kr;Ur<er;++Ur)switch(Kr=cn[Ur].call(na,$n,Zr,Jr,Aa,ya,$t,wn,Fn,Or,vr)){case void 0:case!1:case!0:case null:break;default:Zr=Kr}if(Zr!==qr)return Zr}function En($n,qr,Jr,Aa){for(var ya=qr+1;ya<Jr;++ya)switch(Aa.charCodeAt(ya)){case Vt:{if($n===et&&Aa.charCodeAt(ya-1)===et&&qr+2!==ya)return ya+1;break}case pe:if($n===Vt)return ya+1}return ya}function Gn($n,qr,Jr,Aa){for(var ya=qr+1;ya<Jr;++ya)switch(Aa.charCodeAt(ya)){case $n:return ya}return ya}function Bn($n){return $n.replace(g,"").replace(O,"").replace(F,"$1").replace(D,"$1").replace(Z," ")}function pr($n){switch($n){case void 0:case null:{er=cn.length=0;break}default:if(typeof $n=="function")cn[er++]=$n;else if(typeof $n=="object")for(var qr=0,Jr=$n.length;qr<Jr;++qr)pr($n[qr]);else be=!!$n|0}return pr}function _r($n){for(var qr in $n){var Jr=$n[qr];switch(qr){case"keyframe":Ae=Jr|0;break;case"global":Qt=Jr|0;break;case"cascade":Ht=Jr|0;break;case"compress":an=Jr|0;break;case"semicolon":Un=Jr|0;break;case"preserve":qt=Jr|0;break;case"prefix":rr=null,Jr?typeof Jr!="function"?Jt=1:(Jt=2,rr=Jr):Jt=0}}return _r}function na($n,qr){if(this!==void 0&&this.constructor===na)return N($n);var Jr=$n,Aa=Jr.charCodeAt(0);Aa<33&&(Aa=(Jr=Jr.trim()).charCodeAt(0)),Ae>0&&(Ue=Jr.replace(_,Aa===me?"":"-")),Aa=1,Ht===1?kt=Jr:$e=Jr;var ya=[kt],$t;er>0&&($t=An(lr,qr,ya,ya,ot,de,0,0,0,0),$t!==void 0&&typeof $t=="string"&&(qr=$t));var wn=lt(rn,ya,qr,0,0);return er>0&&($t=An(nt,wn,ya,ya,ot,de,wn.length,0,0,0),$t!==void 0&&typeof(wn=$t)!="string"&&(Aa=0)),Ue="",kt="",$e="",Et=0,ot=1,de=1,an*Aa==0?wn:Bn(wn)}return na.use=pr,na.set=_r,o!==void 0&&_r(o),na})},76568:function(oe,N,o){"use strict";o.d(N,{J$:function(){return fn},ZP:function(){return Yt},kY:function(){return Le}});var x=o(67294);/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */function g(Rt,Lt,ze,rt){function tt(de){return de instanceof ze?de:new ze(function(ot){ot(de)})}return new(ze||(ze=Promise))(function(de,ot){function Et(Qt){try{Jt(rt.next(Qt))}catch(an){ot(an)}}function Ht(Qt){try{Jt(rt.throw(Qt))}catch(an){ot(an)}}function Jt(Qt){Qt.done?de(Qt.value):tt(Qt.value).then(Et,Ht)}Jt((rt=rt.apply(Rt,Lt||[])).next())})}function A(Rt,Lt){var ze={label:0,sent:function(){if(de[0]&1)throw de[1];return de[1]},trys:[],ops:[]},rt,tt,de,ot;return ot={next:Et(0),throw:Et(1),return:Et(2)},typeof Symbol=="function"&&(ot[Symbol.iterator]=function(){return this}),ot;function Et(Jt){return function(Qt){return Ht([Jt,Qt])}}function Ht(Jt){if(rt)throw new TypeError("Generator is already executing.");for(;ze;)try{if(rt=1,tt&&(de=Jt[0]&2?tt.return:Jt[0]?tt.throw||((de=tt.return)&&de.call(tt),0):tt.next)&&!(de=de.call(tt,Jt[1])).done)return de;switch(tt=0,de&&(Jt=[Jt[0]&2,de.value]),Jt[0]){case 0:case 1:de=Jt;break;case 4:return ze.label++,{value:Jt[1],done:!1};case 5:ze.label++,tt=Jt[1],Jt=[0];continue;case 7:Jt=ze.ops.pop(),ze.trys.pop();continue;default:if(de=ze.trys,!(de=de.length>0&&de[de.length-1])&&(Jt[0]===6||Jt[0]===2)){ze=0;continue}if(Jt[0]===3&&(!de||Jt[1]>de[0]&&Jt[1]<de[3])){ze.label=Jt[1];break}if(Jt[0]===6&&ze.label<de[1]){ze.label=de[1],de=Jt;break}if(de&&ze.label<de[2]){ze.label=de[2],ze.ops.push(Jt);break}de[2]&&ze.ops.pop(),ze.trys.pop();continue}Jt=Lt.call(Rt,ze)}catch(Qt){Jt=[6,Qt],tt=0}finally{rt=de=0}if(Jt[0]&5)throw Jt[1];return{value:Jt[0]?Jt[1]:void 0,done:!0}}}var y=function(){},M=y(),w=Object,m=function(Lt){return Lt===M},b=function(Lt){return typeof Lt=="function"},v=function(Lt,ze){return w.assign({},Lt,ze)},h="undefined",d=function(){return typeof window!=h},_=function(){return typeof document!=h},p=function(){return d()&&typeof window.requestAnimationFrame!=h},S=new WeakMap,k=0,O=function Rt(Lt){var ze=typeof Lt,rt=Lt&&Lt.constructor,tt=rt==Date,de,ot;if(w(Lt)===Lt&&!tt&&rt!=RegExp){if(de=S.get(Lt),de)return de;if(de=++k+"~",S.set(Lt,de),rt==Array){for(de="@",ot=0;ot<Lt.length;ot++)de+=Rt(Lt[ot])+",";S.set(Lt,de)}if(rt==w){de="#";for(var Et=w.keys(Lt).sort();!m(ot=Et.pop());)m(Lt[ot])||(de+=ot+":"+Rt(Lt[ot])+",");S.set(Lt,de)}}else de=tt?Lt.toJSON():ze=="symbol"?Lt.toString():ze=="string"?JSON.stringify(Lt):""+Lt;return de},F=!0,D=function(){return F},Z=d(),W=_(),U=Z&&window.addEventListener?window.addEventListener.bind(window):y,L=W?document.addEventListener.bind(document):y,V=Z&&window.removeEventListener?window.removeEventListener.bind(window):y,$=W?document.removeEventListener.bind(document):y,G=function(){var Lt=W&&document.visibilityState;return m(Lt)||Lt!=="hidden"},z=function(Lt){return L("visibilitychange",Lt),U("focus",Lt),function(){$("visibilitychange",Lt),V("focus",Lt)}},K=function(Lt){var ze=function(){F=!0,Lt()},rt=function(){F=!1};return U("online",ze),U("offline",rt),function(){V("online",ze),V("offline",rt)}},re={isOnline:D,isVisible:G},ne={initFocus:z,initReconnect:K},Q=!d()||"Deno"in window,ue=function(Lt){return p()?window.requestAnimationFrame(Lt):setTimeout(Lt,1)},he=Q?x.useEffect:x.useLayoutEffect,Ee=typeof navigator!="undefined"&&navigator.connection,ce=!Q&&Ee&&(["slow-2g","2g"].includes(Ee.effectiveType)||Ee.saveData),ve=function(Lt){if(b(Lt))try{Lt=Lt()}catch(tt){Lt=""}var ze=[].concat(Lt);Lt=typeof Lt=="string"?Lt:(Array.isArray(Lt)?Lt.length:Lt)?O(Lt):"";var rt=Lt?"$swr$"+Lt:"";return[Lt,ze,rt]},fe=new WeakMap,we=0,me=1,Pe=2,pe=function(Lt,ze,rt,tt,de,ot,Et){Et===void 0&&(Et=!0);var Ht=fe.get(Lt),Jt=Ht[0],Qt=Ht[1],an=Ht[3],Un=Jt[ze],qt=Qt[ze];if(Et&&qt)for(var rn=0;rn<qt.length;++rn)qt[rn](rt,tt,de);return ot&&(delete an[ze],Un&&Un[0])?Un[0](Pe).then(function(){return Lt.get(ze)}):Lt.get(ze)},Ie=0,Je=function(){return++Ie},ke=function(){for(var Lt=[],ze=0;ze<arguments.length;ze++)Lt[ze]=arguments[ze];return g(void 0,void 0,void 0,function(){var rt,tt,de,ot,Et,Ht,Jt,Qt,an,Un,qt,rn,cn,er,rr,nt,lr,Hn,ut,bt,We;return A(this,function(be){switch(be.label){case 0:if(rt=Lt[0],tt=Lt[1],de=Lt[2],ot=Lt[3],Et=typeof ot=="boolean"?{revalidate:ot}:ot||{},Ht=m(Et.populateCache)?!0:Et.populateCache,Jt=Et.revalidate!==!1,Qt=Et.rollbackOnError!==!1,an=Et.optimisticData,Un=ve(tt),qt=Un[0],rn=Un[2],!qt)return[2];if(cn=fe.get(rt),er=cn[2],Lt.length<3)return[2,pe(rt,qt,rt.get(qt),M,M,Jt,!0)];if(rr=de,lr=Je(),er[qt]=[lr,0],Hn=!m(an),ut=rt.get(qt),Hn&&(bt=b(an)?an(ut):an,rt.set(qt,bt),pe(rt,qt,bt)),b(rr))try{rr=rr(rt.get(qt))}catch(Ae){nt=Ae}return rr&&b(rr.then)?[4,rr.catch(function(Ae){nt=Ae})]:[3,2];case 1:if(rr=be.sent(),lr!==er[qt][0]){if(nt)throw nt;return[2,rr]}else nt&&Hn&&Qt&&(Ht=!0,rr=ut,rt.set(qt,ut));be.label=2;case 2:return Ht&&(nt||(b(Ht)&&(rr=Ht(rr,ut)),rt.set(qt,rr)),rt.set(rn,v(rt.get(rn),{error:nt}))),er[qt][1]=Je(),[4,pe(rt,qt,rr,nt,M,Jt,!!Ht)];case 3:if(We=be.sent(),nt)throw nt;return[2,Ht?We:rr]}})})},De=function(Lt,ze){for(var rt in Lt)Lt[rt][0]&&Lt[rt][0](ze)},Fe=function(Lt,ze){if(!fe.has(Lt)){var rt=v(ne,ze),tt={},de=ke.bind(M,Lt),ot=y;if(fe.set(Lt,[tt,{},{},{},de]),!Q){var Et=rt.initFocus(setTimeout.bind(M,De.bind(M,tt,we))),Ht=rt.initReconnect(setTimeout.bind(M,De.bind(M,tt,me)));ot=function(){Et&&Et(),Ht&&Ht(),fe.delete(Lt)}}return[Lt,de,ot]}return[Lt,fe.get(Lt)[4]]},Qe=function(Lt,ze,rt,tt,de){var ot=rt.errorRetryCount,Et=de.retryCount,Ht=~~((Math.random()+.5)*(1<<(Et<8?Et:8)))*rt.errorRetryInterval;!m(ot)&&Et>ot||setTimeout(tt,Ht,de)},qe=Fe(new Map),et=qe[0],dt=qe[1],Ke=v({onLoadingSlow:y,onSuccess:y,onError:y,onErrorRetry:Qe,onDiscarded:y,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:ce?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:ce?5e3:3e3,compare:function(Lt,ze){return O(Lt)==O(ze)},isPaused:function(){return!1},cache:et,mutate:dt,fallback:{}},re),Ge=function(Lt,ze){var rt=v(Lt,ze);if(ze){var tt=Lt.use,de=Lt.fallback,ot=ze.use,Et=ze.fallback;tt&&ot&&(rt.use=tt.concat(ot)),de&&Et&&(rt.fallback=v(de,Et))}return rt},wt=(0,x.createContext)({}),Vt=function(Lt){var ze=Lt.value,rt=Ge((0,x.useContext)(wt),ze),tt=ze&&ze.provider,de=(0,x.useState)(function(){return tt?Fe(tt(rt.cache||et),ze):M})[0];return de&&(rt.cache=de[0],rt.mutate=de[1]),he(function(){return de?de[2]:M},[]),(0,x.createElement)(wt.Provider,v(Lt,{value:rt}))},gt=function(Lt,ze){var rt=(0,x.useState)({})[1],tt=(0,x.useRef)(Lt),de=(0,x.useRef)({data:!1,error:!1,isValidating:!1}),ot=(0,x.useCallback)(function(Et){var Ht=!1,Jt=tt.current;for(var Qt in Et){var an=Qt;Jt[an]!==Et[an]&&(Jt[an]=Et[an],de.current[an]&&(Ht=!0))}Ht&&!ze.current&&rt({})},[]);return he(function(){tt.current=Lt}),[tt,de.current,ot]},it=function(Lt){return b(Lt[1])?[Lt[0],Lt[1],Lt[2]||{}]:[Lt[0],null,(Lt[1]===null?Lt[2]:Lt[1])||{}]},Le=function(){return v(Ke,(0,x.useContext)(wt))},ct=function(Lt){return function(){for(var rt=[],tt=0;tt<arguments.length;tt++)rt[tt]=arguments[tt];var de=Le(),ot=it(rt),Et=ot[0],Ht=ot[1],Jt=ot[2],Qt=Ge(de,Jt),an=Lt,Un=Qt.use;if(Un)for(var qt=Un.length;qt-- >0;)an=Un[qt](an);return an(Et,Ht||Qt.fetcher,Qt)}},at=function(Lt,ze,rt){var tt=ze[Lt]||(ze[Lt]=[]);return tt.push(rt),function(){var de=tt.indexOf(rt);de>=0&&(tt[de]=tt[tt.length-1],tt.pop())}},jt={dedupe:!0},St=function(Lt,ze,rt){var tt=rt.cache,de=rt.compare,ot=rt.fallbackData,Et=rt.suspense,Ht=rt.revalidateOnMount,Jt=rt.refreshInterval,Qt=rt.refreshWhenHidden,an=rt.refreshWhenOffline,Un=fe.get(tt),qt=Un[0],rn=Un[1],cn=Un[2],er=Un[3],rr=ve(Lt),nt=rr[0],lr=rr[1],Hn=rr[2],ut=(0,x.useRef)(!1),bt=(0,x.useRef)(!1),We=(0,x.useRef)(nt),be=(0,x.useRef)(ze),Ae=(0,x.useRef)(rt),Ue=function(){return Ae.current},$e=function(){return Ue().isVisible()&&Ue().isOnline()},kt=function(qr){return tt.set(Hn,v(tt.get(Hn),qr))},lt=tt.get(nt),vt=m(ot)?rt.fallback[nt]:ot,Ct=m(lt)?vt:lt,Bt=tt.get(Hn)||{},mt=Bt.error,Zt=!ut.current,zt=function(){return Zt&&!m(Ht)?Ht:Ue().isPaused()?!1:Et?m(Ct)?!1:rt.revalidateIfStale:m(Ct)||rt.revalidateIfStale},ln=function(){return!nt||!ze?!1:Bt.isValidating?!0:Zt&&zt()},An=ln(),En=gt({data:Ct,error:mt,isValidating:An},bt),Gn=En[0],Bn=En[1],pr=En[2],_r=(0,x.useCallback)(function($n){return g(void 0,void 0,void 0,function(){var qr,Jr,Aa,ya,$t,wn,Fn,Or,vr,Ur,Zr,Kr,ba;return A(this,function(Ri){switch(Ri.label){case 0:if(qr=be.current,!nt||!qr||bt.current||Ue().isPaused())return[2,!1];ya=!0,$t=$n||{},wn=!er[nt]||!$t.dedupe,Fn=function(){return!bt.current&&nt===We.current&&ut.current},Or=function(){var Pi=er[nt];Pi&&Pi[1]===Aa&&delete er[nt]},vr={isValidating:!1},Ur=function(){kt({isValidating:!1}),Fn()&&pr(vr)},kt({isValidating:!0}),pr({isValidating:!0}),Ri.label=1;case 1:return Ri.trys.push([1,3,,4]),wn&&(pe(tt,nt,Gn.current.data,Gn.current.error,!0),rt.loadingTimeout&&!tt.get(nt)&&setTimeout(function(){ya&&Fn()&&Ue().onLoadingSlow(nt,rt)},rt.loadingTimeout),er[nt]=[qr.apply(void 0,lr),Je()]),ba=er[nt],Jr=ba[0],Aa=ba[1],[4,Jr];case 2:return Jr=Ri.sent(),wn&&setTimeout(Or,rt.dedupingInterval),!er[nt]||er[nt][1]!==Aa?(wn&&Fn()&&Ue().onDiscarded(nt),[2,!1]):(kt({error:M}),vr.error=M,Zr=cn[nt],!m(Zr)&&(Aa<=Zr[0]||Aa<=Zr[1]||Zr[1]===0)?(Ur(),wn&&Fn()&&Ue().onDiscarded(nt),[2,!1]):(de(Gn.current.data,Jr)?vr.data=Gn.current.data:vr.data=Jr,de(tt.get(nt),Jr)||tt.set(nt,Jr),wn&&Fn()&&Ue().onSuccess(Jr,nt,rt),[3,4]));case 3:return Kr=Ri.sent(),Or(),Ue().isPaused()||(kt({error:Kr}),vr.error=Kr,wn&&Fn()&&(Ue().onError(Kr,nt,rt),(typeof rt.shouldRetryOnError=="boolean"&&rt.shouldRetryOnError||b(rt.shouldRetryOnError)&&rt.shouldRetryOnError(Kr))&&$e()&&Ue().onErrorRetry(Kr,nt,rt,_r,{retryCount:($t.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return ya=!1,Ur(),Fn()&&wn&&pe(tt,nt,vr.data,vr.error,!1),[2,!0]}})})},[nt]),na=(0,x.useCallback)(ke.bind(M,tt,function(){return We.current}),[]);if(he(function(){be.current=ze,Ae.current=rt}),he(function(){if(!!nt){var $n=nt!==We.current,qr=_r.bind(M,jt),Jr=function(Or,vr,Ur){pr(v({error:vr,isValidating:Ur},de(Gn.current.data,Or)?M:{data:Or}))},Aa=0,ya=function(Or){if(Or==we){var vr=Date.now();Ue().revalidateOnFocus&&vr>Aa&&$e()&&(Aa=vr+Ue().focusThrottleInterval,qr())}else if(Or==me)Ue().revalidateOnReconnect&&$e()&&qr();else if(Or==Pe)return _r()},$t=at(nt,rn,Jr),wn=at(nt,qt,ya);return bt.current=!1,We.current=nt,ut.current=!0,$n&&pr({data:Ct,error:mt,isValidating:An}),zt()&&(m(Ct)||Q?qr():ue(qr)),function(){bt.current=!0,$t(),wn()}}},[nt,_r]),he(function(){var $n;function qr(){var Aa=b(Jt)?Jt(Ct):Jt;Aa&&$n!==-1&&($n=setTimeout(Jr,Aa))}function Jr(){!Gn.current.error&&(Qt||Ue().isVisible())&&(an||Ue().isOnline())?_r(jt).then(qr):qr()}return qr(),function(){$n&&(clearTimeout($n),$n=-1)}},[Jt,Qt,an,_r]),(0,x.useDebugValue)(Ct),Et&&m(Ct)&&nt)throw be.current=ze,Ae.current=rt,bt.current=!1,m(mt)?_r(jt):mt;return{mutate:na,get data(){return Bn.data=!0,Ct},get error(){return Bn.error=!0,mt},get isValidating(){return Bn.isValidating=!0,An}}},fn=w.defineProperty(Vt,"default",{value:Ke}),Xt=function(Lt){return ve(Lt)[0]},Yt=ct(St)},3537:function(oe,N,o){"use strict";o.d(N,{Z:function(){return A}});var x=!0,g="Invariant failed";function A(y,M){if(!y){if(x)throw new Error(g);var w=typeof M=="function"?M():M,m=w?"".concat(g,": ").concat(w):g;throw new Error(m)}}},45582:function(oe,N,o){"use strict";o.d(N,{Z:function(){return y}});function x(ke){return x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(De){return typeof De}:function(De){return De&&typeof Symbol=="function"&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De},x(ke)}var g=/^\s+/,A=/\s+$/;function y(ke,De){if(ke=ke||"",De=De||{},ke instanceof y)return ke;if(!(this instanceof y))return new y(ke,De);var Fe=M(ke);this._originalInput=ke,this._r=Fe.r,this._g=Fe.g,this._b=Fe.b,this._a=Fe.a,this._roundA=Math.round(100*this._a)/100,this._format=De.format||Fe.format,this._gradientType=De.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Fe.ok}y.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var De=this.toRgb();return(De.r*299+De.g*587+De.b*114)/1e3},getLuminance:function(){var De=this.toRgb(),Fe,Qe,qe,et,dt,Ke;return Fe=De.r/255,Qe=De.g/255,qe=De.b/255,Fe<=.03928?et=Fe/12.92:et=Math.pow((Fe+.055)/1.055,2.4),Qe<=.03928?dt=Qe/12.92:dt=Math.pow((Qe+.055)/1.055,2.4),qe<=.03928?Ke=qe/12.92:Ke=Math.pow((qe+.055)/1.055,2.4),.2126*et+.7152*dt+.0722*Ke},setAlpha:function(De){return this._a=ne(De),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var De=v(this._r,this._g,this._b);return{h:De.h*360,s:De.s,v:De.v,a:this._a}},toHsvString:function(){var De=v(this._r,this._g,this._b),Fe=Math.round(De.h*360),Qe=Math.round(De.s*100),qe=Math.round(De.v*100);return this._a==1?"hsv("+Fe+", "+Qe+"%, "+qe+"%)":"hsva("+Fe+", "+Qe+"%, "+qe+"%, "+this._roundA+")"},toHsl:function(){var De=m(this._r,this._g,this._b);return{h:De.h*360,s:De.s,l:De.l,a:this._a}},toHslString:function(){var De=m(this._r,this._g,this._b),Fe=Math.round(De.h*360),Qe=Math.round(De.s*100),qe=Math.round(De.l*100);return this._a==1?"hsl("+Fe+", "+Qe+"%, "+qe+"%)":"hsla("+Fe+", "+Qe+"%, "+qe+"%, "+this._roundA+")"},toHex:function(De){return d(this._r,this._g,this._b,De)},toHexString:function(De){return"#"+this.toHex(De)},toHex8:function(De){return _(this._r,this._g,this._b,this._a,De)},toHex8String:function(De){return"#"+this.toHex8(De)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Q(this._r,255)*100)+"%",g:Math.round(Q(this._g,255)*100)+"%",b:Math.round(Q(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Q(this._r,255)*100)+"%, "+Math.round(Q(this._g,255)*100)+"%, "+Math.round(Q(this._b,255)*100)+"%)":"rgba("+Math.round(Q(this._r,255)*100)+"%, "+Math.round(Q(this._g,255)*100)+"%, "+Math.round(Q(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:K[d(this._r,this._g,this._b,!0)]||!1},toFilter:function(De){var Fe="#"+p(this._r,this._g,this._b,this._a),Qe=Fe,qe=this._gradientType?"GradientType = 1, ":"";if(De){var et=y(De);Qe="#"+p(et._r,et._g,et._b,et._a)}return"progid:DXImageTransform.Microsoft.gradient("+qe+"startColorstr="+Fe+",endColorstr="+Qe+")"},toString:function(De){var Fe=!!De;De=De||this._format;var Qe=!1,qe=this._a<1&&this._a>=0,et=!Fe&&qe&&(De==="hex"||De==="hex6"||De==="hex3"||De==="hex4"||De==="hex8"||De==="name");return et?De==="name"&&this._a===0?this.toName():this.toRgbString():(De==="rgb"&&(Qe=this.toRgbString()),De==="prgb"&&(Qe=this.toPercentageRgbString()),(De==="hex"||De==="hex6")&&(Qe=this.toHexString()),De==="hex3"&&(Qe=this.toHexString(!0)),De==="hex4"&&(Qe=this.toHex8String(!0)),De==="hex8"&&(Qe=this.toHex8String()),De==="name"&&(Qe=this.toName()),De==="hsl"&&(Qe=this.toHslString()),De==="hsv"&&(Qe=this.toHsvString()),Qe||this.toHexString())},clone:function(){return y(this.toString())},_applyModification:function(De,Fe){var Qe=De.apply(null,[this].concat([].slice.call(Fe)));return this._r=Qe._r,this._g=Qe._g,this._b=Qe._b,this.setAlpha(Qe._a),this},lighten:function(){return this._applyModification(F,arguments)},brighten:function(){return this._applyModification(D,arguments)},darken:function(){return this._applyModification(Z,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(W,arguments)},_applyCombination:function(De,Fe){return De.apply(null,[this].concat([].slice.call(Fe)))},analogous:function(){return this._applyCombination($,arguments)},complement:function(){return this._applyCombination(U,arguments)},monochromatic:function(){return this._applyCombination(G,arguments)},splitcomplement:function(){return this._applyCombination(V,arguments)},triad:function(){return this._applyCombination(L,[3])},tetrad:function(){return this._applyCombination(L,[4])}},y.fromRatio=function(ke,De){if(x(ke)=="object"){var Fe={};for(var Qe in ke)ke.hasOwnProperty(Qe)&&(Qe==="a"?Fe[Qe]=ke[Qe]:Fe[Qe]=fe(ke[Qe]));ke=Fe}return y(ke,De)};function M(ke){var De={r:0,g:0,b:0},Fe=1,Qe=null,qe=null,et=null,dt=!1,Ke=!1;return typeof ke=="string"&&(ke=Ie(ke)),x(ke)=="object"&&(pe(ke.r)&&pe(ke.g)&&pe(ke.b)?(De=w(ke.r,ke.g,ke.b),dt=!0,Ke=String(ke.r).substr(-1)==="%"?"prgb":"rgb"):pe(ke.h)&&pe(ke.s)&&pe(ke.v)?(Qe=fe(ke.s),qe=fe(ke.v),De=h(ke.h,Qe,qe),dt=!0,Ke="hsv"):pe(ke.h)&&pe(ke.s)&&pe(ke.l)&&(Qe=fe(ke.s),et=fe(ke.l),De=b(ke.h,Qe,et),dt=!0,Ke="hsl"),ke.hasOwnProperty("a")&&(Fe=ke.a)),Fe=ne(Fe),{ok:dt,format:ke.format||Ke,r:Math.min(255,Math.max(De.r,0)),g:Math.min(255,Math.max(De.g,0)),b:Math.min(255,Math.max(De.b,0)),a:Fe}}function w(ke,De,Fe){return{r:Q(ke,255)*255,g:Q(De,255)*255,b:Q(Fe,255)*255}}function m(ke,De,Fe){ke=Q(ke,255),De=Q(De,255),Fe=Q(Fe,255);var Qe=Math.max(ke,De,Fe),qe=Math.min(ke,De,Fe),et,dt,Ke=(Qe+qe)/2;if(Qe==qe)et=dt=0;else{var Ge=Qe-qe;switch(dt=Ke>.5?Ge/(2-Qe-qe):Ge/(Qe+qe),Qe){case ke:et=(De-Fe)/Ge+(De<Fe?6:0);break;case De:et=(Fe-ke)/Ge+2;break;case Fe:et=(ke-De)/Ge+4;break}et/=6}return{h:et,s:dt,l:Ke}}function b(ke,De,Fe){var Qe,qe,et;ke=Q(ke,360),De=Q(De,100),Fe=Q(Fe,100);function dt(wt,Vt,gt){return gt<0&&(gt+=1),gt>1&&(gt-=1),gt<1/6?wt+(Vt-wt)*6*gt:gt<1/2?Vt:gt<2/3?wt+(Vt-wt)*(2/3-gt)*6:wt}if(De===0)Qe=qe=et=Fe;else{var Ke=Fe<.5?Fe*(1+De):Fe+De-Fe*De,Ge=2*Fe-Ke;Qe=dt(Ge,Ke,ke+1/3),qe=dt(Ge,Ke,ke),et=dt(Ge,Ke,ke-1/3)}return{r:Qe*255,g:qe*255,b:et*255}}function v(ke,De,Fe){ke=Q(ke,255),De=Q(De,255),Fe=Q(Fe,255);var Qe=Math.max(ke,De,Fe),qe=Math.min(ke,De,Fe),et,dt,Ke=Qe,Ge=Qe-qe;if(dt=Qe===0?0:Ge/Qe,Qe==qe)et=0;else{switch(Qe){case ke:et=(De-Fe)/Ge+(De<Fe?6:0);break;case De:et=(Fe-ke)/Ge+2;break;case Fe:et=(ke-De)/Ge+4;break}et/=6}return{h:et,s:dt,v:Ke}}function h(ke,De,Fe){ke=Q(ke,360)*6,De=Q(De,100),Fe=Q(Fe,100);var Qe=Math.floor(ke),qe=ke-Qe,et=Fe*(1-De),dt=Fe*(1-qe*De),Ke=Fe*(1-(1-qe)*De),Ge=Qe%6,wt=[Fe,dt,et,et,Ke,Fe][Ge],Vt=[Ke,Fe,Fe,dt,et,et][Ge],gt=[et,et,Ke,Fe,Fe,dt][Ge];return{r:wt*255,g:Vt*255,b:gt*255}}function d(ke,De,Fe,Qe){var qe=[ve(Math.round(ke).toString(16)),ve(Math.round(De).toString(16)),ve(Math.round(Fe).toString(16))];return Qe&&qe[0].charAt(0)==qe[0].charAt(1)&&qe[1].charAt(0)==qe[1].charAt(1)&&qe[2].charAt(0)==qe[2].charAt(1)?qe[0].charAt(0)+qe[1].charAt(0)+qe[2].charAt(0):qe.join("")}function _(ke,De,Fe,Qe,qe){var et=[ve(Math.round(ke).toString(16)),ve(Math.round(De).toString(16)),ve(Math.round(Fe).toString(16)),ve(we(Qe))];return qe&&et[0].charAt(0)==et[0].charAt(1)&&et[1].charAt(0)==et[1].charAt(1)&&et[2].charAt(0)==et[2].charAt(1)&&et[3].charAt(0)==et[3].charAt(1)?et[0].charAt(0)+et[1].charAt(0)+et[2].charAt(0)+et[3].charAt(0):et.join("")}function p(ke,De,Fe,Qe){var qe=[ve(we(Qe)),ve(Math.round(ke).toString(16)),ve(Math.round(De).toString(16)),ve(Math.round(Fe).toString(16))];return qe.join("")}y.equals=function(ke,De){return!ke||!De?!1:y(ke).toRgbString()==y(De).toRgbString()},y.random=function(){return y.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function S(ke,De){De=De===0?0:De||10;var Fe=y(ke).toHsl();return Fe.s-=De/100,Fe.s=ue(Fe.s),y(Fe)}function k(ke,De){De=De===0?0:De||10;var Fe=y(ke).toHsl();return Fe.s+=De/100,Fe.s=ue(Fe.s),y(Fe)}function O(ke){return y(ke).desaturate(100)}function F(ke,De){De=De===0?0:De||10;var Fe=y(ke).toHsl();return Fe.l+=De/100,Fe.l=ue(Fe.l),y(Fe)}function D(ke,De){De=De===0?0:De||10;var Fe=y(ke).toRgb();return Fe.r=Math.max(0,Math.min(255,Fe.r-Math.round(255*-(De/100)))),Fe.g=Math.max(0,Math.min(255,Fe.g-Math.round(255*-(De/100)))),Fe.b=Math.max(0,Math.min(255,Fe.b-Math.round(255*-(De/100)))),y(Fe)}function Z(ke,De){De=De===0?0:De||10;var Fe=y(ke).toHsl();return Fe.l-=De/100,Fe.l=ue(Fe.l),y(Fe)}function W(ke,De){var Fe=y(ke).toHsl(),Qe=(Fe.h+De)%360;return Fe.h=Qe<0?360+Qe:Qe,y(Fe)}function U(ke){var De=y(ke).toHsl();return De.h=(De.h+180)%360,y(De)}function L(ke,De){if(isNaN(De)||De<=0)throw new Error("Argument to polyad must be a positive number");for(var Fe=y(ke).toHsl(),Qe=[y(ke)],qe=360/De,et=1;et<De;et++)Qe.push(y({h:(Fe.h+et*qe)%360,s:Fe.s,l:Fe.l}));return Qe}function V(ke){var De=y(ke).toHsl(),Fe=De.h;return[y(ke),y({h:(Fe+72)%360,s:De.s,l:De.l}),y({h:(Fe+216)%360,s:De.s,l:De.l})]}function $(ke,De,Fe){De=De||6,Fe=Fe||30;var Qe=y(ke).toHsl(),qe=360/Fe,et=[y(ke)];for(Qe.h=(Qe.h-(qe*De>>1)+720)%360;--De;)Qe.h=(Qe.h+qe)%360,et.push(y(Qe));return et}function G(ke,De){De=De||6;for(var Fe=y(ke).toHsv(),Qe=Fe.h,qe=Fe.s,et=Fe.v,dt=[],Ke=1/De;De--;)dt.push(y({h:Qe,s:qe,v:et})),et=(et+Ke)%1;return dt}y.mix=function(ke,De,Fe){Fe=Fe===0?0:Fe||50;var Qe=y(ke).toRgb(),qe=y(De).toRgb(),et=Fe/100,dt={r:(qe.r-Qe.r)*et+Qe.r,g:(qe.g-Qe.g)*et+Qe.g,b:(qe.b-Qe.b)*et+Qe.b,a:(qe.a-Qe.a)*et+Qe.a};return y(dt)},y.readability=function(ke,De){var Fe=y(ke),Qe=y(De);return(Math.max(Fe.getLuminance(),Qe.getLuminance())+.05)/(Math.min(Fe.getLuminance(),Qe.getLuminance())+.05)},y.isReadable=function(ke,De,Fe){var Qe=y.readability(ke,De),qe,et;switch(et=!1,qe=Je(Fe),qe.level+qe.size){case"AAsmall":case"AAAlarge":et=Qe>=4.5;break;case"AAlarge":et=Qe>=3;break;case"AAAsmall":et=Qe>=7;break}return et},y.mostReadable=function(ke,De,Fe){var Qe=null,qe=0,et,dt,Ke,Ge;Fe=Fe||{},dt=Fe.includeFallbackColors,Ke=Fe.level,Ge=Fe.size;for(var wt=0;wt<De.length;wt++)et=y.readability(ke,De[wt]),et>qe&&(qe=et,Qe=y(De[wt]));return y.isReadable(ke,Qe,{level:Ke,size:Ge})||!dt?Qe:(Fe.includeFallbackColors=!1,y.mostReadable(ke,["#fff","#000"],Fe))};var z=y.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},K=y.hexNames=re(z);function re(ke){var De={};for(var Fe in ke)ke.hasOwnProperty(Fe)&&(De[ke[Fe]]=Fe);return De}function ne(ke){return ke=parseFloat(ke),(isNaN(ke)||ke<0||ke>1)&&(ke=1),ke}function Q(ke,De){Ee(ke)&&(ke="100%");var Fe=ce(ke);return ke=Math.min(De,Math.max(0,parseFloat(ke))),Fe&&(ke=parseInt(ke*De,10)/100),Math.abs(ke-De)<1e-6?1:ke%De/parseFloat(De)}function ue(ke){return Math.min(1,Math.max(0,ke))}function he(ke){return parseInt(ke,16)}function Ee(ke){return typeof ke=="string"&&ke.indexOf(".")!=-1&&parseFloat(ke)===1}function ce(ke){return typeof ke=="string"&&ke.indexOf("%")!=-1}function ve(ke){return ke.length==1?"0"+ke:""+ke}function fe(ke){return ke<=1&&(ke=ke*100+"%"),ke}function we(ke){return Math.round(parseFloat(ke)*255).toString(16)}function me(ke){return he(ke)/255}var Pe=function(){var ke="[-\\+]?\\d+%?",De="[-\\+]?\\d*\\.\\d+%?",Fe="(?:"+De+")|(?:"+ke+")",Qe="[\\s|\\(]+("+Fe+")[,|\\s]+("+Fe+")[,|\\s]+("+Fe+")\\s*\\)?",qe="[\\s|\\(]+("+Fe+")[,|\\s]+("+Fe+")[,|\\s]+("+Fe+")[,|\\s]+("+Fe+")\\s*\\)?";return{CSS_UNIT:new RegExp(Fe),rgb:new RegExp("rgb"+Qe),rgba:new RegExp("rgba"+qe),hsl:new RegExp("hsl"+Qe),hsla:new RegExp("hsla"+qe),hsv:new RegExp("hsv"+Qe),hsva:new RegExp("hsva"+qe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function pe(ke){return!!Pe.CSS_UNIT.exec(ke)}function Ie(ke){ke=ke.replace(g,"").replace(A,"").toLowerCase();var De=!1;if(z[ke])ke=z[ke],De=!0;else if(ke=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Fe;return(Fe=Pe.rgb.exec(ke))?{r:Fe[1],g:Fe[2],b:Fe[3]}:(Fe=Pe.rgba.exec(ke))?{r:Fe[1],g:Fe[2],b:Fe[3],a:Fe[4]}:(Fe=Pe.hsl.exec(ke))?{h:Fe[1],s:Fe[2],l:Fe[3]}:(Fe=Pe.hsla.exec(ke))?{h:Fe[1],s:Fe[2],l:Fe[3],a:Fe[4]}:(Fe=Pe.hsv.exec(ke))?{h:Fe[1],s:Fe[2],v:Fe[3]}:(Fe=Pe.hsva.exec(ke))?{h:Fe[1],s:Fe[2],v:Fe[3],a:Fe[4]}:(Fe=Pe.hex8.exec(ke))?{r:he(Fe[1]),g:he(Fe[2]),b:he(Fe[3]),a:me(Fe[4]),format:De?"name":"hex8"}:(Fe=Pe.hex6.exec(ke))?{r:he(Fe[1]),g:he(Fe[2]),b:he(Fe[3]),format:De?"name":"hex"}:(Fe=Pe.hex4.exec(ke))?{r:he(Fe[1]+""+Fe[1]),g:he(Fe[2]+""+Fe[2]),b:he(Fe[3]+""+Fe[3]),a:me(Fe[4]+""+Fe[4]),format:De?"name":"hex8"}:(Fe=Pe.hex3.exec(ke))?{r:he(Fe[1]+""+Fe[1]),g:he(Fe[2]+""+Fe[2]),b:he(Fe[3]+""+Fe[3]),format:De?"name":"hex"}:!1}function Je(ke){var De,Fe;return ke=ke||{level:"AA",size:"small"},De=(ke.level||"AA").toUpperCase(),Fe=(ke.size||"small").toLowerCase(),De!=="AA"&&De!=="AAA"&&(De="AA"),Fe!=="small"&&Fe!=="large"&&(Fe="small"),{level:De,size:Fe}}},41436:function(oe){oe.exports=function(){var N=document.getSelection();if(!N.rangeCount)return function(){};for(var o=document.activeElement,x=[],g=0;g<N.rangeCount;g++)x.push(N.getRangeAt(g));switch(o.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":o.blur();break;default:o=null;break}return N.removeAllRanges(),function(){N.type==="Caret"&&N.removeAllRanges(),N.rangeCount||x.forEach(function(A){N.addRange(A)}),o&&o.focus()}}},2138:function(oe,N,o){"use strict";o.d(N,{l7:function(){return Yt}});var x=o(92090),g=o.n(x),A=o(2327),y=o.n(A),M=o(82195);function w(ze,rt){var tt=Object.keys(ze);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(ze);rt&&(de=de.filter(function(ot){return Object.getOwnPropertyDescriptor(ze,ot).enumerable})),tt.push.apply(tt,de)}return tt}function m(ze){for(var rt=1;rt<arguments.length;rt++){var tt=arguments[rt]!=null?arguments[rt]:{};rt%2?w(Object(tt),!0).forEach(function(de){_(ze,de,tt[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ze,Object.getOwnPropertyDescriptors(tt)):w(Object(tt)).forEach(function(de){Object.defineProperty(ze,de,Object.getOwnPropertyDescriptor(tt,de))})}return ze}function b(ze){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(tt){return typeof tt}:b=function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},b(ze)}function v(ze,rt){if(!(ze instanceof rt))throw new TypeError("Cannot call a class as a function")}function h(ze,rt){for(var tt=0;tt<rt.length;tt++){var de=rt[tt];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ze,de.key,de)}}function d(ze,rt,tt){return rt&&h(ze.prototype,rt),tt&&h(ze,tt),ze}function _(ze,rt,tt){return rt in ze?Object.defineProperty(ze,rt,{value:tt,enumerable:!0,configurable:!0,writable:!0}):ze[rt]=tt,ze}function p(ze,rt){if(typeof rt!="function"&&rt!==null)throw new TypeError("Super expression must either be null or a function");ze.prototype=Object.create(rt&&rt.prototype,{constructor:{value:ze,writable:!0,configurable:!0}}),rt&&k(ze,rt)}function S(ze){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(tt){return tt.__proto__||Object.getPrototypeOf(tt)},S(ze)}function k(ze,rt){return k=Object.setPrototypeOf||function(de,ot){return de.__proto__=ot,de},k(ze,rt)}function O(){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(ze){return!1}}function F(ze,rt,tt){return O()?F=Reflect.construct:F=function(ot,Et,Ht){var Jt=[null];Jt.push.apply(Jt,Et);var Qt=Function.bind.apply(ot,Jt),an=new Qt;return Ht&&k(an,Ht.prototype),an},F.apply(null,arguments)}function D(ze){return Function.toString.call(ze).indexOf("[native code]")!==-1}function Z(ze){var rt=typeof Map=="function"?new Map:void 0;return Z=function(de){if(de===null||!D(de))return de;if(typeof de!="function")throw new TypeError("Super expression must either be null or a function");if(typeof rt!="undefined"){if(rt.has(de))return rt.get(de);rt.set(de,ot)}function ot(){return F(de,arguments,S(this).constructor)}return ot.prototype=Object.create(de.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),k(ot,de)},Z(ze)}function W(ze){if(ze===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ze}function U(ze,rt){if(rt&&(typeof rt=="object"||typeof rt=="function"))return rt;if(rt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W(ze)}function L(ze){var rt=O();return function(){var de=S(ze),ot;if(rt){var Et=S(this).constructor;ot=Reflect.construct(de,arguments,Et)}else ot=de.apply(this,arguments);return U(this,ot)}}function V(ze){return $(ze)||G(ze)||z(ze)||re()}function $(ze){if(Array.isArray(ze))return K(ze)}function G(ze){if(typeof Symbol!="undefined"&&ze[Symbol.iterator]!=null||ze["@@iterator"]!=null)return Array.from(ze)}function z(ze,rt){if(!!ze){if(typeof ze=="string")return K(ze,rt);var tt=Object.prototype.toString.call(ze).slice(8,-1);if(tt==="Object"&&ze.constructor&&(tt=ze.constructor.name),tt==="Map"||tt==="Set")return Array.from(ze);if(tt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tt))return K(ze,rt)}}function K(ze,rt){(rt==null||rt>ze.length)&&(rt=ze.length);for(var tt=0,de=new Array(rt);tt<rt;tt++)de[tt]=ze[tt];return de}function re(){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 ne(ze){if(!Array.isArray(ze))throw new TypeError("Middlewares must be an array!");for(var rt=ze.length,tt=0;tt<rt;tt++)if(typeof ze[tt]!="function")throw new TypeError("Middleware must be componsed of function");return function(ot,Et){var Ht=-1;function Jt(Qt){if(Qt<=Ht)return Promise.reject(new Error("next() should not be called multiple times in one middleware!"));Ht=Qt;var an=ze[Qt]||Et;if(!an)return Promise.resolve();try{return Promise.resolve(an(ot,function(){return Jt(Qt+1)}))}catch(Un){return Promise.reject(Un)}}return Jt(0)}}var Q=function(){function ze(rt){if(v(this,ze),!Array.isArray(rt))throw new TypeError("Default middlewares must be an array!");this.defaultMiddlewares=V(rt),this.middlewares=[]}return d(ze,[{key:"use",value:function(tt){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},ot=!1,Et=!1,Ht=!1;if(typeof de=="number"?(ot=!0,Et=!1):b(de)==="object"&&de&&(Et=de.global||!1,ot=de.core||!1,Ht=de.defaultInstance||!1),Et){ze.globalMiddlewares.splice(ze.globalMiddlewares.length-ze.defaultGlobalMiddlewaresLength,0,tt);return}if(ot){ze.coreMiddlewares.splice(ze.coreMiddlewares.length-ze.defaultCoreMiddlewaresLength,0,tt);return}if(Ht){this.defaultMiddlewares.push(tt);return}this.middlewares.push(tt)}},{key:"execute",value:function(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,de=ne([].concat(V(this.middlewares),V(this.defaultMiddlewares),V(ze.globalMiddlewares),V(ze.coreMiddlewares)));return de(tt)}}]),ze}();Q.globalMiddlewares=[],Q.defaultGlobalMiddlewaresLength=0,Q.coreMiddlewares=[],Q.defaultCoreMiddlewaresLength=0;var ue=function(){function ze(rt){v(this,ze),this.cache=new Map,this.timer={},this.extendOptions(rt)}return d(ze,[{key:"extendOptions",value:function(tt){this.maxCache=tt.maxCache||0}},{key:"get",value:function(tt){return this.cache.get(JSON.stringify(tt))}},{key:"set",value:function(tt,de){var ot=this,Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var Ht=V(this.cache.keys())[0];this.cache.delete(Ht),this.timer[Ht]&&clearTimeout(this.timer[Ht])}var Jt=JSON.stringify(tt);this.cache.set(Jt,de),Et>0&&(this.timer[Jt]=setTimeout(function(){ot.cache.delete(Jt),delete ot.timer[Jt]},Et))}},{key:"delete",value:function(tt){var de=JSON.stringify(tt);return delete this.timer[de],this.cache.delete(de)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),ze}(),he=function(ze){p(tt,ze);var rt=L(tt);function tt(de,ot){var Et,Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return v(this,tt),Et=rt.call(this,de),Et.name="RequestError",Et.request=ot,Et.type=Ht,Et}return tt}(Z(Error)),Ee=function(ze){p(tt,ze);var rt=L(tt);function tt(de,ot,Et,Ht){var Jt,Qt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return v(this,tt),Jt=rt.call(this,ot||de.statusText),Jt.name="ResponseError",Jt.data=Et,Jt.response=de,Jt.request=Ht,Jt.type=Qt,Jt}return tt}(Z(Error));function ce(ze){return new Promise(function(rt,tt){var de=new FileReader;de.onload=function(){rt(de.result)},de.onerror=tt,de.readAsText(ze,"GBK")})}function ve(ze){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,de=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(ze)}catch(ot){if(rt)throw new Ee(tt,"JSON.parse fail",ze,de,"ParseError")}return ze}function fe(ze,rt,tt){return new Promise(function(de,ot){setTimeout(function(){ot(new he(rt||"timeout of ".concat(ze,"ms exceeded"),tt,"Timeout"))},ze)})}function we(ze){return new Promise(function(rt,tt){ze.cancelToken&&ze.cancelToken.promise.then(function(de){tt(de)})})}var me=Object.prototype.toString;function Pe(){var ze;return typeof M!="undefined"&&me.call(M)==="[object process]"&&(ze="NODE"),typeof XMLHttpRequest!="undefined"&&(ze="BROWSER"),ze}function pe(ze){return b(ze)==="object"&&Object.prototype.toString.call(ze)==="[object Array]"}function Ie(ze){return typeof URLSearchParams!="undefined"&&ze instanceof URLSearchParams}function Je(ze){return b(ze)==="object"&&Object.prototype.toString.call(ze)==="[object Date]"}function ke(ze){return ze!==null&&b(ze)==="object"}function De(ze,rt){if(!!ze)if(b(ze)!=="object"&&(ze=[ze]),pe(ze))for(var tt=0;tt<ze.length;tt++)rt.call(null,ze[tt],tt,ze);else for(var de in ze)Object.prototype.hasOwnProperty.call(ze,de)&&rt.call(null,ze[de],de,ze)}function Fe(ze){return Ie(ze)?(0,x.parse)(ze.toString(),{strictNullHandling:!0}):typeof ze=="string"?[ze]:ze}function Qe(ze){return(0,x.stringify)(ze,{arrayFormat:"repeat",strictNullHandling:!0})}function qe(ze,rt){return m(m(m({},ze),rt),{},{headers:m(m({},ze.headers),rt.headers),params:m(m({},Fe(ze.params)),Fe(rt.params)),method:(rt.method||ze.method||"get").toLowerCase()})}var et=function(rt){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de=tt.prefix,ot=tt.suffix;return de&&(rt="".concat(de).concat(rt)),ot&&(rt="".concat(rt).concat(ot)),{url:rt,options:tt}},dt=!1;function Ke(ze,rt){var tt=rt.method,de=tt===void 0?"get":tt;return de.toLowerCase()==="get"}function Ge(ze,rt){if(!ze)return rt();var tt=ze.req;tt=tt===void 0?{}:tt;var de=tt.options,ot=de===void 0?{}:de,Et=tt.url,Ht=Et===void 0?"":Et,Jt=ze.cache,Qt=ze.responseInterceptors,an=ot.timeout,Un=an===void 0?0:an,qt=ot.timeoutMessage,rn=ot.__umiRequestCoreType__,cn=rn===void 0?"normal":rn,er=ot.useCache,rr=er===void 0?!1:er,nt=ot.method,lr=nt===void 0?"get":nt,Hn=ot.params,ut=ot.ttl,bt=ot.validateCache,We=bt===void 0?Ke:bt;if(cn!=="normal")return rt();var be=fetch;if(!be)throw new Error("Global fetch not exist!");var Ae=Pe()==="BROWSER",Ue=We(Ht,ot)&&rr&&Ae;if(Ue){var $e=Jt.get({url:Ht,params:Hn,method:lr});if($e)return $e=$e.clone(),$e.useCache=!0,ze.res=$e,rt()}var kt;return Un>0?kt=Promise.race([we(ot),be(Ht,ot),fe(Un,qt,ze.req)]):kt=Promise.race([we(ot),be(Ht,ot)]),Qt.forEach(function(lt){kt=kt.then(function(vt){var Ct=typeof vt.clone=="function"?vt.clone():vt;return lt(Ct,ot)})}),kt.then(function(lt){if(Ue&<.status===200){var vt=lt.clone();vt.useCache=!0,Jt.set({url:Ht,params:Hn,method:lr},vt,ut)}return ze.res=lt,rt()})}function wt(ze,rt){var tt;return rt().then(function(){if(!!ze){var de=ze.res,ot=de===void 0?{}:de,Et=ze.req,Ht=Et===void 0?{}:Et,Jt=Ht||{},Qt=Jt.options;Qt=Qt===void 0?{}:Qt;var an=Qt.responseType,Un=an===void 0?"json":an,qt=Qt.charset,rn=qt===void 0?"utf8":qt,cn=Qt.getResponse,er=Qt.throwErrIfParseFail,rr=er===void 0?!1:er,nt=Qt.parseResponse,lr=nt===void 0?!0:nt;if(!!lr&&!(!ot||!ot.clone)){if(tt=Pe()==="BROWSER"?ot.clone():ot,tt.useCache=ot.useCache||!1,rn==="gbk")try{return ot.blob().then(ce).then(function(Hn){return ve(Hn,!1,tt,Ht)})}catch(Hn){throw new Ee(tt,Hn.message,null,Ht,"ParseError")}else if(Un==="json")return ot.text().then(function(Hn){return ve(Hn,rr,tt,Ht)});try{return ot[Un]()}catch(Hn){throw new Ee(tt,"responseType not support",null,Ht,"ParseError")}}}}).then(function(de){if(!!ze){var ot=ze.res,Et=ze.req,Ht=Et===void 0?{}:Et,Jt=Ht||{},Qt=Jt.options;Qt=Qt===void 0?{}:Qt;var an=Qt.getResponse,Un=an===void 0?!1:an;if(!!tt){if(tt.status>=200&&tt.status<300){if(Un){ze.res={data:de,response:tt};return}ze.res=de;return}throw new Ee(tt,"http error",de,Ht,"HttpError")}}}).catch(function(de){if(de instanceof he||de instanceof Ee)throw de;var ot=ze.req,Et=ze.res;throw de.request=de.request||ot,de.response=de.response||Et,de.type=de.type||de.name,de.data=de.data||void 0,de})}function Vt(ze,rt){if(!ze)return rt();var tt=ze.req;tt=tt===void 0?{}:tt;var de=tt.options,ot=de===void 0?{}:de,Et=ot.method,Ht=Et===void 0?"get":Et;if(["post","put","patch","delete"].indexOf(Ht.toLowerCase())===-1)return rt();var Jt=ot.requestType,Qt=Jt===void 0?"json":Jt,an=ot.data;if(an){var Un=Object.prototype.toString.call(an);Un==="[object Object]"||Un==="[object Array]"?Qt==="json"?(ot.headers=m({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},ot.headers),ot.body=JSON.stringify(an)):Qt==="form"&&(ot.headers=m({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},ot.headers),ot.body=Qe(an)):(ot.headers=m({Accept:"application/json"},ot.headers),ot.body=an)}return ze.req.options=ot,rt()}function gt(ze,rt){var tt,de;if(ze)if(rt)tt=rt(ze);else if(Ie(ze))tt=ze.toString();else if(pe(ze))de=[],De(ze,function(Et){Et===null||typeof Et=="undefined"?de.push(Et):de.push(ke(Et)?JSON.stringify(Et):Et)}),tt=Qe(de);else{de={},De(ze,function(Et,Ht){var Jt=Et;Et===null||typeof Et=="undefined"?de[Ht]=Et:Je(Et)?Jt=Et.toISOString():pe(Et)?Jt=Et:ke(Et)&&(Jt=JSON.stringify(Et)),de[Ht]=Jt});var ot=Qe(de);tt=ot}return tt}function it(ze,rt){if(!ze)return rt();var tt=ze.req;tt=tt===void 0?{}:tt;var de=tt.options,ot=de===void 0?{}:de,Et=ot.paramsSerializer,Ht=ot.params,Jt=ze.req;Jt=Jt===void 0?{}:Jt;var Qt=Jt.url,an=Qt===void 0?"":Qt;ot.method=ot.method?ot.method.toUpperCase():"GET",ot.credentials=ot.credentials||"same-origin";var Un=gt(Ht,Et);if(ze.req.originUrl=an,Un){var qt=an.indexOf("?")!==-1?"&":"?";ze.req.url="".concat(an).concat(qt).concat(Un)}return ze.req.options=ot,rt()}var Le=[Vt,it,wt],ct=[Ge];Q.globalMiddlewares=Le,Q.defaultGlobalMiddlewaresLength=Le.length,Q.coreMiddlewares=ct,Q.defaultCoreMiddlewaresLength=ct.length;var at=function(){function ze(rt){v(this,ze),this.onion=new Q([]),this.fetchIndex=0,this.mapCache=new ue(rt),this.initOptions=rt,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return d(ze,[{key:"use",value:function(tt){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(tt,de),this}},{key:"extendOptions",value:function(tt){this.initOptions=qe(this.initOptions,tt),this.mapCache.extendOptions(tt)}},{key:"dealRequestInterceptors",value:function(tt){var de=function(Ht,Jt){return Ht.then(function(){var Qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return tt.req.url=Qt.url||tt.req.url,tt.req.options=Qt.options||tt.req.options,Jt(tt.req.url,tt.req.options)})},ot=[].concat(V(ze.requestInterceptors),V(this.instanceRequestInterceptors));return ot.reduce(de,Promise.resolve()).then(function(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return tt.req.url=Et.url||tt.req.url,tt.req.options=Et.options||tt.req.options,Promise.resolve()})}},{key:"request",value:function(tt,de){var ot=this,Et=this.onion,Ht={req:{url:tt,options:m(m({},de),{},{url:tt})},res:null,cache:this.mapCache,responseInterceptors:[].concat(V(ze.responseInterceptors),V(this.instanceResponseInterceptors))};if(typeof tt!="string")throw new Error("url MUST be a string");return new Promise(function(Jt,Qt){ot.dealRequestInterceptors(Ht).then(function(){return Et.execute(Ht)}).then(function(){Jt(Ht.res)}).catch(function(an){var Un=Ht.req.options.errorHandler;if(Un)try{var qt=Un(an);Jt(qt)}catch(rn){Qt(rn)}else Qt(an)})})}}],[{key:"requestUse",value:function(tt){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof tt!="function")throw new TypeError("Interceptor must be function!");de.global?ze.requestInterceptors.push(tt):this.instanceRequestInterceptors.push(tt)}},{key:"responseUse",value:function(tt){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof tt!="function")throw new TypeError("Interceptor must be function!");de.global?ze.responseInterceptors.push(tt):this.instanceResponseInterceptors.push(tt)}}]),ze}();at.requestInterceptors=[et],at.responseInterceptors=[];function jt(ze){this.message=ze}jt.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"},jt.prototype.__CANCEL__=!0;function St(ze){if(typeof ze!="function")throw new TypeError("executor must be a function.");var rt;this.promise=new Promise(function(ot){rt=ot});var tt=this;ze(function(ot){tt.reason||(tt.reason=new jt(ot),rt(tt.reason))})}St.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},St.source=function(){var rt,tt=new St(function(ot){rt=ot});return{token:tt,cancel:rt}};function fn(ze){return!!(ze&&ze.__CANCEL__)}var Xt=function(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},tt=new at(rt),de=function(Ht){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qt=qe(tt.initOptions,Jt);return tt.request(Ht,Qt)};de.use=tt.use.bind(tt),de.fetchIndex=tt.fetchIndex,de.interceptors={request:{use:at.requestUse.bind(tt)},response:{use:at.responseUse.bind(tt)}};var ot=["get","post","delete","put","patch","head","options","rpc"];return ot.forEach(function(Et){de[Et]=function(Ht,Jt){return de(Ht,m(m({},Jt),{},{method:Et}))}}),de.Cancel=jt,de.CancelToken=St,de.isCancel=fn,de.extendOptions=tt.extendOptions.bind(tt),de.middlewares={instance:tt.onion.middlewares,defaultInstance:tt.onion.defaultMiddlewares,global:Q.globalMiddlewares,core:Q.coreMiddlewares},de},Yt=function(rt){return Xt(rt)},Rt=Xt({parseResponse:!1}),Lt=Xt({});N.ZP=Lt},32321:function(oe,N,o){"use strict";o.d(N,{f:function(){return g}});var x=o(67294);function g(y){var M=x.createContext(null);function w(b){var v=y(b.initialState);return x.createElement(M.Provider,{value:v},b.children)}function m(){var b=x.useContext(M);if(b===null)throw new Error("Component must be wrapped with <Container.Provider>");return b}return{Provider:w,useContainer:m}}function A(y){return y.useContainer()}},93234:function(oe,N,o){"use strict";o.d(N,{ZP:function(){return D}});var x=o(67294);function g(Z,W){return m(Z)||w(Z,W)||y(Z,W)||A()}function A(){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 y(Z,W){if(!!Z){if(typeof Z=="string")return M(Z,W);var U=Object.prototype.toString.call(Z).slice(8,-1);if(U==="Object"&&Z.constructor&&(U=Z.constructor.name),U==="Map"||U==="Set")return Array.from(Z);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return M(Z,W)}}function M(Z,W){(W==null||W>Z.length)&&(W=Z.length);for(var U=0,L=new Array(W);U<W;U++)L[U]=Z[U];return L}function w(Z,W){var U=Z&&(typeof Symbol!="undefined"&&Z[Symbol.iterator]||Z["@@iterator"]);if(U!=null){var L=[],V=!0,$=!1,G,z;try{for(U=U.call(Z);!(V=(G=U.next()).done)&&(L.push(G.value),!(W&&L.length===W));V=!0);}catch(K){$=!0,z=K}finally{try{!V&&U.return!=null&&U.return()}finally{if($)throw z}}return L}}function m(Z){if(Array.isArray(Z))return Z}function b(Z){var W=typeof window=="undefined",U=(0,x.useState)(function(){return W?!1:window.matchMedia(Z).matches}),L=g(U,2),V=L[0],$=L[1];return(0,x.useLayoutEffect)(function(){if(!W){var G=window.matchMedia(Z),z=function(re){return $(re.matches)};return G.addListener(z),function(){return G.removeListener(z)}}},[Z]),V}function v(Z,W){return S(Z)||p(Z,W)||d(Z,W)||h()}function h(){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 d(Z,W){if(!!Z){if(typeof Z=="string")return _(Z,W);var U=Object.prototype.toString.call(Z).slice(8,-1);if(U==="Object"&&Z.constructor&&(U=Z.constructor.name),U==="Map"||U==="Set")return Array.from(Z);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return _(Z,W)}}function _(Z,W){(W==null||W>Z.length)&&(W=Z.length);for(var U=0,L=new Array(W);U<W;U++)L[U]=Z[U];return L}function p(Z,W){var U=Z&&(typeof Symbol!="undefined"&&Z[Symbol.iterator]||Z["@@iterator"]);if(U!=null){var L=[],V=!0,$=!1,G,z;try{for(U=U.call(Z);!(V=(G=U.next()).done)&&(L.push(G.value),!(W&&L.length===W));V=!0);}catch(K){$=!0,z=K}finally{try{!V&&U.return!=null&&U.return()}finally{if($)throw z}}return L}}function S(Z){if(Array.isArray(Z))return Z}var k={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)"}},O=function(){var W="md";if(typeof window=="undefined")return W;var U=Object.keys(k).find(function(L){var V=k[L].matchMedia;return!!window.matchMedia(V).matches});return W=U,W},F=function(){var W=b(k.md.matchMedia),U=b(k.lg.matchMedia),L=b(k.xxl.matchMedia),V=b(k.xl.matchMedia),$=b(k.sm.matchMedia),G=b(k.xs.matchMedia),z=(0,x.useState)(O()),K=v(z,2),re=K[0],ne=K[1];return(0,x.useEffect)(function(){if(L){ne("xxl");return}if(V){ne("xl");return}if(U){ne("lg");return}if(W){ne("md");return}if($){ne("sm");return}if(G){ne("xs");return}ne("md")},[W,U,L,V,$,G]),re},D=F},1291:function(oe,N,o){"use strict";/** @license React vundefined
|
||
* use-subscription.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var x=o(44547),g=o(67294);N.useSubscription=function(A){var y=A.getCurrentValue,M=A.subscribe,w=g.useState(function(){return{getCurrentValue:y,subscribe:M,value:y()}});A=w[0];var m=w[1];return w=A.value,(A.getCurrentValue!==y||A.subscribe!==M)&&(w=y(),m({getCurrentValue:y,subscribe:M,value:w})),g.useDebugValue(w),g.useEffect(function(){function b(){if(!v){var d=y();m(function(_){return _.getCurrentValue!==y||_.subscribe!==M||_.value===d?_:x({},_,{value:d})})}}var v=!1,h=M(b);return b(),function(){v=!0,h()}},[y,M]),w}},85440:function(oe,N,o){"use strict";oe.exports=o(1291)},82706:function(oe,N,o){"use strict";/**
|
||
* @license React
|
||
* use-sync-external-store-shim.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var x=o(67294);function g(_,p){return _===p&&(_!==0||1/_==1/p)||_!==_&&p!==p}var A=typeof Object.is=="function"?Object.is:g,y=x.useState,M=x.useEffect,w=x.useLayoutEffect,m=x.useDebugValue;function b(_,p){var S=p(),k=y({inst:{value:S,getSnapshot:p}}),O=k[0].inst,F=k[1];return w(function(){O.value=S,O.getSnapshot=p,v(O)&&F({inst:O})},[_,S,p]),M(function(){return v(O)&&F({inst:O}),_(function(){v(O)&&F({inst:O})})},[_]),m(S),S}function v(_){var p=_.getSnapshot;_=_.value;try{var S=p();return!A(_,S)}catch(k){return!0}}function h(_,p){return p()}var d=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?h:b;N.useSyncExternalStore=x.useSyncExternalStore!==void 0?x.useSyncExternalStore:d},84847:function(oe,N,o){"use strict";oe.exports=o(82706)},14878:function(oe){"use strict";var N=!1,o=function(){};if(N){var x=function(A,y){var M=arguments.length;y=new Array(M>1?M-1:0);for(var w=1;w<M;w++)y[w-1]=arguments[w];var m=0,b="Warning: "+A.replace(/%s/g,function(){return y[m++]});typeof console!="undefined"&&console.error(b);try{throw new Error(b)}catch(v){}};o=function(A,y,M){var w=arguments.length;M=new Array(w>2?w-2:0);for(var m=2;m<w;m++)M[m-2]=arguments[m];if(y===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");A||x.apply(null,[y].concat(M))}}oe.exports=o},74408:function(oe,N,o){"use strict";o.r(N),o.d(N,{Headers:function(){return v},Request:function(){return Z},Response:function(){return L},DOMException:function(){return $},fetch:function(){return G}});var x=typeof globalThis!="undefined"&&globalThis||typeof self!="undefined"&&self||typeof o.g!="undefined"&&o.g||{},g={searchParams:"URLSearchParams"in x,iterable:"Symbol"in x&&"iterator"in Symbol,blob:"FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(z){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function A(z){return z&&DataView.prototype.isPrototypeOf(z)}if(g.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],M=ArrayBuffer.isView||function(z){return z&&y.indexOf(Object.prototype.toString.call(z))>-1};function w(z){if(typeof z!="string"&&(z=String(z)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(z)||z==="")throw new TypeError('Invalid character in header field name: "'+z+'"');return z.toLowerCase()}function m(z){return typeof z!="string"&&(z=String(z)),z}function b(z){var K={next:function(){var ne=z.shift();return{done:ne===void 0,value:ne}}};return g.iterable&&(K[Symbol.iterator]=function(){return K}),K}function v(z){this.map={},z instanceof v?z.forEach(function(K,re){this.append(re,K)},this):Array.isArray(z)?z.forEach(function(K){if(K.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+K.length);this.append(K[0],K[1])},this):z&&Object.getOwnPropertyNames(z).forEach(function(K){this.append(K,z[K])},this)}v.prototype.append=function(z,K){z=w(z),K=m(K);var re=this.map[z];this.map[z]=re?re+", "+K:K},v.prototype.delete=function(z){delete this.map[w(z)]},v.prototype.get=function(z){return z=w(z),this.has(z)?this.map[z]:null},v.prototype.has=function(z){return this.map.hasOwnProperty(w(z))},v.prototype.set=function(z,K){this.map[w(z)]=m(K)},v.prototype.forEach=function(z,K){for(var re in this.map)this.map.hasOwnProperty(re)&&z.call(K,this.map[re],re,this)},v.prototype.keys=function(){var z=[];return this.forEach(function(K,re){z.push(re)}),b(z)},v.prototype.values=function(){var z=[];return this.forEach(function(K){z.push(K)}),b(z)},v.prototype.entries=function(){var z=[];return this.forEach(function(K,re){z.push([re,K])}),b(z)},g.iterable&&(v.prototype[Symbol.iterator]=v.prototype.entries);function h(z){if(!z._noBody){if(z.bodyUsed)return Promise.reject(new TypeError("Already read"));z.bodyUsed=!0}}function d(z){return new Promise(function(K,re){z.onload=function(){K(z.result)},z.onerror=function(){re(z.error)}})}function _(z){var K=new FileReader,re=d(K);return K.readAsArrayBuffer(z),re}function p(z){var K=new FileReader,re=d(K),ne=/charset=([A-Za-z0-9_-]+)/.exec(z.type),Q=ne?ne[1]:"utf-8";return K.readAsText(z,Q),re}function S(z){for(var K=new Uint8Array(z),re=new Array(K.length),ne=0;ne<K.length;ne++)re[ne]=String.fromCharCode(K[ne]);return re.join("")}function k(z){if(z.slice)return z.slice(0);var K=new Uint8Array(z.byteLength);return K.set(new Uint8Array(z)),K.buffer}function O(){return this.bodyUsed=!1,this._initBody=function(z){this.bodyUsed=this.bodyUsed,this._bodyInit=z,z?typeof z=="string"?this._bodyText=z:g.blob&&Blob.prototype.isPrototypeOf(z)?this._bodyBlob=z:g.formData&&FormData.prototype.isPrototypeOf(z)?this._bodyFormData=z:g.searchParams&&URLSearchParams.prototype.isPrototypeOf(z)?this._bodyText=z.toString():g.arrayBuffer&&g.blob&&A(z)?(this._bodyArrayBuffer=k(z.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):g.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(z)||M(z))?this._bodyArrayBuffer=k(z):this._bodyText=z=Object.prototype.toString.call(z):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof z=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):g.searchParams&&URLSearchParams.prototype.isPrototypeOf(z)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},g.blob&&(this.blob=function(){var z=h(this);if(z)return z;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var z=h(this);return z||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(g.blob)return this.blob().then(_);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var z=h(this);if(z)return z;if(this._bodyBlob)return p(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(S(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},g.formData&&(this.formData=function(){return this.text().then(W)}),this.json=function(){return this.text().then(JSON.parse)},this}var F=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function D(z){var K=z.toUpperCase();return F.indexOf(K)>-1?K:z}function Z(z,K){if(!(this instanceof Z))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');K=K||{};var re=K.body;if(z instanceof Z){if(z.bodyUsed)throw new TypeError("Already read");this.url=z.url,this.credentials=z.credentials,K.headers||(this.headers=new v(z.headers)),this.method=z.method,this.mode=z.mode,this.signal=z.signal,!re&&z._bodyInit!=null&&(re=z._bodyInit,z.bodyUsed=!0)}else this.url=String(z);if(this.credentials=K.credentials||this.credentials||"same-origin",(K.headers||!this.headers)&&(this.headers=new v(K.headers)),this.method=D(K.method||this.method||"GET"),this.mode=K.mode||this.mode||null,this.signal=K.signal||this.signal||function(){if("AbortController"in x){var ue=new AbortController;return ue.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&re)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(re),(this.method==="GET"||this.method==="HEAD")&&(K.cache==="no-store"||K.cache==="no-cache")){var ne=/([?&])_=[^&]*/;if(ne.test(this.url))this.url=this.url.replace(ne,"$1_="+new Date().getTime());else{var Q=/\?/;this.url+=(Q.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Z.prototype.clone=function(){return new Z(this,{body:this._bodyInit})};function W(z){var K=new FormData;return z.trim().split("&").forEach(function(re){if(re){var ne=re.split("="),Q=ne.shift().replace(/\+/g," "),ue=ne.join("=").replace(/\+/g," ");K.append(decodeURIComponent(Q),decodeURIComponent(ue))}}),K}function U(z){var K=new v,re=z.replace(/\r?\n[\t ]+/g," ");return re.split("\r").map(function(ne){return ne.indexOf(`
|
||
`)===0?ne.substr(1,ne.length):ne}).forEach(function(ne){var Q=ne.split(":"),ue=Q.shift().trim();if(ue){var he=Q.join(":").trim();try{K.append(ue,he)}catch(Ee){console.warn("Response "+Ee.message)}}}),K}O.call(Z.prototype);function L(z,K){if(!(this instanceof L))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(K||(K={}),this.type="default",this.status=K.status===void 0?200:K.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=K.statusText===void 0?"":""+K.statusText,this.headers=new v(K.headers),this.url=K.url||"",this._initBody(z)}O.call(L.prototype),L.prototype.clone=function(){return new L(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},L.error=function(){var z=new L(null,{status:200,statusText:""});return z.status=0,z.type="error",z};var V=[301,302,303,307,308];L.redirect=function(z,K){if(V.indexOf(K)===-1)throw new RangeError("Invalid status code");return new L(null,{status:K,headers:{location:z}})};var $=x.DOMException;try{new $}catch(z){$=function(re,ne){this.message=re,this.name=ne;var Q=Error(re);this.stack=Q.stack},$.prototype=Object.create(Error.prototype),$.prototype.constructor=$}function G(z,K){return new Promise(function(re,ne){var Q=new Z(z,K);if(Q.signal&&Q.signal.aborted)return ne(new $("Aborted","AbortError"));var ue=new XMLHttpRequest;function he(){ue.abort()}ue.onload=function(){var ve={statusText:ue.statusText,headers:U(ue.getAllResponseHeaders()||"")};Q.url.startsWith("file://")&&(ue.status<200||ue.status>599)?ve.status=200:ve.status=ue.status,ve.url="responseURL"in ue?ue.responseURL:ve.headers.get("X-Request-URL");var fe="response"in ue?ue.response:ue.responseText;setTimeout(function(){re(new L(fe,ve))},0)},ue.onerror=function(){setTimeout(function(){ne(new TypeError("Network request failed"))},0)},ue.ontimeout=function(){setTimeout(function(){ne(new TypeError("Network request failed"))},0)},ue.onabort=function(){setTimeout(function(){ne(new $("Aborted","AbortError"))},0)};function Ee(ve){try{return ve===""&&x.location.href?x.location.href:ve}catch(fe){return ve}}if(ue.open(Q.method,Ee(Q.url),!0),Q.credentials==="include"?ue.withCredentials=!0:Q.credentials==="omit"&&(ue.withCredentials=!1),"responseType"in ue&&(g.blob?ue.responseType="blob":g.arrayBuffer&&(ue.responseType="arraybuffer")),K&&typeof K.headers=="object"&&!(K.headers instanceof v||x.Headers&&K.headers instanceof x.Headers)){var ce=[];Object.getOwnPropertyNames(K.headers).forEach(function(ve){ce.push(w(ve)),ue.setRequestHeader(ve,m(K.headers[ve]))}),Q.headers.forEach(function(ve,fe){ce.indexOf(fe)===-1&&ue.setRequestHeader(fe,ve)})}else Q.headers.forEach(function(ve,fe){ue.setRequestHeader(fe,ve)});Q.signal&&(Q.signal.addEventListener("abort",he),ue.onreadystatechange=function(){ue.readyState===4&&Q.signal.removeEventListener("abort",he)}),ue.send(typeof Q._bodyInit=="undefined"?null:Q._bodyInit)})}G.polyfill=!0,x.fetch||(x.fetch=G,x.Headers=v,x.Request=Z,x.Response=L)},30011:function(oe,N,o){oe.exports=o.p+"static/cloudEditor.1a9aa2c1.svg"},71684:function(oe){oe.exports="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoyMUFGNTkxMTlEQjhFMzExQjMxOUY0QThBNEI3RTdCNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpGNjNCRkJEM0NDNTkxMUUzQTA0QUUzRDFFMDU4MjVFMyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpGNjNCRkJEMkNDNTkxMUUzQTA0QUUzRDFFMDU4MjVFMyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IFdpbmRvd3MiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoyMkFGNTkxMTlEQjhFMzExQjMxOUY0QThBNEI3RTdCNiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoyMUFGNTkxMTlEQjhFMzExQjMxOUY0QThBNEI3RTdCNiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PhW2ShQAAAJrSURBVHja7Jhrb5NQGMfPORzgMMoGoyus1dpG50y8xI/vp1ATE5PFxCZetszZbaUXSrn5OE0zDbTcDtsL/umLBk7hx3luf4rfvJ2i+ySC7pkaoAaoAWqA7lq01NMQZOuiqVEm4ShCjhs6i/DCCeD7HQDtt4SjLpNFvD6iMnJoiINO/OnMu5wGtYYMbvy8r9ymWQsOvuizninWB7Sv0SeHMsab1jy25fYurQNIIPhoG80fPe3KVMDcgWyDJkYqIT0FbOuUO1Bby3EPc5c/0I6c4yeqTLgDYZwv4bgDeX6cffEqiLkDTRZh9sXX84A7EEyG7It/TPgDTeZhxrEAe3k1C7kDgWBU+duSAxacfPdqGh2Q1x++uEGYygSnPn5dLldRTUCgmRu9++w6SQn++9TIzZX71dgPdxW9H7lghm6GCbnZuej8OvjpBKiEShk00HgajKcBqk6Np+YRMhhnhiroqrDDBIniFvv7VGClF14EuTX3IuhVs2XEHUiRCHhTS6eJUxM8f0sh8DlAaNCRgOz00j+78nN5/hxAD0ww8DIhOejByHYN8eTUczJ3gUxAYBGf9dieKhQIgSKT10Pl29gfnXtxXEVSixS/GijFaG7v7nGPVVBl4ItfPlJg88uXT2ePDi2pLNBxT14XUXk9bEvWNtu/6WZGSzA1Wm2bgbLY7GvJhmYztOTK+x7UR/9ALAIEIa8wWP8muATtNDeQrYuIj2DvrfSLk7SNLVnnWysuH1Dlufz/CyQjae/jyUCaIiDO0lMikAbE3ZakPTNJTLpKWnOx1/6Eo0wkGPPmQTlyqMC/TAUk0eQd+iXAAATbqtpVJOYRAAAAAElFTkSuQmCC"},18552:function(oe,N,o){var x=o(10852),g=o(55639),A=x(g,"DataView");oe.exports=A},1989:function(oe,N,o){var x=o(51789),g=o(80401),A=o(57667),y=o(21327),M=o(81866);function w(m){var b=-1,v=m==null?0:m.length;for(this.clear();++b<v;){var h=m[b];this.set(h[0],h[1])}}w.prototype.clear=x,w.prototype.delete=g,w.prototype.get=A,w.prototype.has=y,w.prototype.set=M,oe.exports=w},38407:function(oe,N,o){var x=o(27040),g=o(14125),A=o(82117),y=o(67518),M=o(54705);function w(m){var b=-1,v=m==null?0:m.length;for(this.clear();++b<v;){var h=m[b];this.set(h[0],h[1])}}w.prototype.clear=x,w.prototype.delete=g,w.prototype.get=A,w.prototype.has=y,w.prototype.set=M,oe.exports=w},57071:function(oe,N,o){var x=o(10852),g=o(55639),A=x(g,"Map");oe.exports=A},83369:function(oe,N,o){var x=o(24785),g=o(11285),A=o(96e3),y=o(49916),M=o(95265);function w(m){var b=-1,v=m==null?0:m.length;for(this.clear();++b<v;){var h=m[b];this.set(h[0],h[1])}}w.prototype.clear=x,w.prototype.delete=g,w.prototype.get=A,w.prototype.has=y,w.prototype.set=M,oe.exports=w},53818:function(oe,N,o){var x=o(10852),g=o(55639),A=x(g,"Promise");oe.exports=A},58525:function(oe,N,o){var x=o(10852),g=o(55639),A=x(g,"Set");oe.exports=A},88668:function(oe,N,o){var x=o(83369),g=o(90619),A=o(72385);function y(M){var w=-1,m=M==null?0:M.length;for(this.__data__=new x;++w<m;)this.add(M[w])}y.prototype.add=y.prototype.push=g,y.prototype.has=A,oe.exports=y},46384:function(oe,N,o){var x=o(38407),g=o(37465),A=o(63779),y=o(67599),M=o(44758),w=o(34309);function m(b){var v=this.__data__=new x(b);this.size=v.size}m.prototype.clear=g,m.prototype.delete=A,m.prototype.get=y,m.prototype.has=M,m.prototype.set=w,oe.exports=m},62705:function(oe,N,o){var x=o(55639),g=x.Symbol;oe.exports=g},11149:function(oe,N,o){var x=o(55639),g=x.Uint8Array;oe.exports=g},70577:function(oe,N,o){var x=o(10852),g=o(55639),A=x(g,"WeakMap");oe.exports=A},58380:function(oe){function N(o,x,g){switch(g.length){case 0:return o.call(x);case 1:return o.call(x,g[0]);case 2:return o.call(x,g[0],g[1]);case 3:return o.call(x,g[0],g[1],g[2])}return o.apply(x,g)}oe.exports=N},77412:function(oe){function N(o,x){for(var g=-1,A=o==null?0:o.length;++g<A&&x(o[g],g,o)!==!1;);return o}oe.exports=N},34963:function(oe){function N(o,x){for(var g=-1,A=o==null?0:o.length,y=0,M=[];++g<A;){var w=o[g];x(w,g,o)&&(M[y++]=w)}return M}oe.exports=N},47443:function(oe,N,o){var x=o(42118);function g(A,y){var M=A==null?0:A.length;return!!M&&x(A,y,0)>-1}oe.exports=g},1196:function(oe){function N(o,x,g){for(var A=-1,y=o==null?0:o.length;++A<y;)if(g(x,o[A]))return!0;return!1}oe.exports=N},14636:function(oe,N,o){var x=o(22545),g=o(35694),A=o(1469),y=o(78264),M=o(65776),w=o(36719),m=Object.prototype,b=m.hasOwnProperty;function v(h,d){var _=A(h),p=!_&&g(h),S=!_&&!p&&y(h),k=!_&&!p&&!S&&w(h),O=_||p||S||k,F=O?x(h.length,String):[],D=F.length;for(var Z in h)(d||b.call(h,Z))&&!(O&&(Z=="length"||S&&(Z=="offset"||Z=="parent")||k&&(Z=="buffer"||Z=="byteLength"||Z=="byteOffset")||M(Z,D)))&&F.push(Z);return F}oe.exports=v},29932:function(oe){function N(o,x){for(var g=-1,A=o==null?0:o.length,y=Array(A);++g<A;)y[g]=x(o[g],g,o);return y}oe.exports=N},62488:function(oe){function N(o,x){for(var g=-1,A=x.length,y=o.length;++g<A;)o[y+g]=x[g];return o}oe.exports=N},62663:function(oe){function N(o,x,g,A){var y=-1,M=o==null?0:o.length;for(A&&M&&(g=o[++y]);++y<M;)g=x(g,o[y],y,o);return g}oe.exports=N},82908:function(oe){function N(o,x){for(var g=-1,A=o==null?0:o.length;++g<A;)if(x(o[g],g,o))return!0;return!1}oe.exports=N},44286:function(oe){function N(o){return o.split("")}oe.exports=N},49029:function(oe){var N=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function o(x){return x.match(N)||[]}oe.exports=o},86556:function(oe,N,o){var x=o(89465),g=o(77813);function A(y,M,w){(w!==void 0&&!g(y[M],w)||w===void 0&&!(M in y))&&x(y,M,w)}oe.exports=A},34865:function(oe,N,o){var x=o(89465),g=o(77813),A=Object.prototype,y=A.hasOwnProperty;function M(w,m,b){var v=w[m];(!(y.call(w,m)&&g(v,b))||b===void 0&&!(m in w))&&x(w,m,b)}oe.exports=M},18470:function(oe,N,o){var x=o(77813);function g(A,y){for(var M=A.length;M--;)if(x(A[M][0],y))return M;return-1}oe.exports=g},44037:function(oe,N,o){var x=o(98363),g=o(3674);function A(y,M){return y&&x(M,g(M),y)}oe.exports=A},63886:function(oe,N,o){var x=o(98363),g=o(81704);function A(y,M){return y&&x(M,g(M),y)}oe.exports=A},89465:function(oe,N,o){var x=o(38777);function g(A,y,M){y=="__proto__"&&x?x(A,y,{configurable:!0,enumerable:!0,value:M,writable:!0}):A[y]=M}oe.exports=g},85990:function(oe,N,o){var x=o(46384),g=o(77412),A=o(34865),y=o(44037),M=o(63886),w=o(64626),m=o(278),b=o(18805),v=o(1911),h=o(58234),d=o(46904),_=o(64160),p=o(43824),S=o(29148),k=o(38517),O=o(1469),F=o(78264),D=o(56688),Z=o(13218),W=o(72928),U=o(3674),L=o(81704),V=1,$=2,G=4,z="[object Arguments]",K="[object Array]",re="[object Boolean]",ne="[object Date]",Q="[object Error]",ue="[object Function]",he="[object GeneratorFunction]",Ee="[object Map]",ce="[object Number]",ve="[object Object]",fe="[object RegExp]",we="[object Set]",me="[object String]",Pe="[object Symbol]",pe="[object WeakMap]",Ie="[object ArrayBuffer]",Je="[object DataView]",ke="[object Float32Array]",De="[object Float64Array]",Fe="[object Int8Array]",Qe="[object Int16Array]",qe="[object Int32Array]",et="[object Uint8Array]",dt="[object Uint8ClampedArray]",Ke="[object Uint16Array]",Ge="[object Uint32Array]",wt={};wt[z]=wt[K]=wt[Ie]=wt[Je]=wt[re]=wt[ne]=wt[ke]=wt[De]=wt[Fe]=wt[Qe]=wt[qe]=wt[Ee]=wt[ce]=wt[ve]=wt[fe]=wt[we]=wt[me]=wt[Pe]=wt[et]=wt[dt]=wt[Ke]=wt[Ge]=!0,wt[Q]=wt[ue]=wt[pe]=!1;function Vt(gt,it,Le,ct,at,jt){var St,fn=it&V,Xt=it&$,Yt=it&G;if(Le&&(St=at?Le(gt,ct,at,jt):Le(gt)),St!==void 0)return St;if(!Z(gt))return gt;var Rt=O(gt);if(Rt){if(St=p(gt),!fn)return m(gt,St)}else{var Lt=_(gt),ze=Lt==ue||Lt==he;if(F(gt))return w(gt,fn);if(Lt==ve||Lt==z||ze&&!at){if(St=Xt||ze?{}:k(gt),!fn)return Xt?v(gt,M(St,gt)):b(gt,y(St,gt))}else{if(!wt[Lt])return at?gt:{};St=S(gt,Lt,fn)}}jt||(jt=new x);var rt=jt.get(gt);if(rt)return rt;jt.set(gt,St),W(gt)?gt.forEach(function(ot){St.add(Vt(ot,it,Le,ot,gt,jt))}):D(gt)&>.forEach(function(ot,Et){St.set(Et,Vt(ot,it,Le,Et,gt,jt))});var tt=Yt?Xt?d:h:Xt?L:U,de=Rt?void 0:tt(gt);return g(de||gt,function(ot,Et){de&&(Et=ot,ot=gt[Et]),A(St,Et,Vt(ot,it,Le,Et,gt,jt))}),St}oe.exports=Vt},3118:function(oe,N,o){var x=o(13218),g=Object.create,A=function(){function y(){}return function(M){if(!x(M))return{};if(g)return g(M);y.prototype=M;var w=new y;return y.prototype=void 0,w}}();oe.exports=A},20731:function(oe,N,o){var x=o(88668),g=o(47443),A=o(1196),y=o(29932),M=o(7518),w=o(74757),m=200;function b(v,h,d,_){var p=-1,S=g,k=!0,O=v.length,F=[],D=h.length;if(!O)return F;d&&(h=y(h,M(d))),_?(S=A,k=!1):h.length>=m&&(S=w,k=!1,h=new x(h));e:for(;++p<O;){var Z=v[p],W=d==null?Z:d(Z);if(Z=_||Z!==0?Z:0,k&&W===W){for(var U=D;U--;)if(h[U]===W)continue e;F.push(Z)}else S(h,W,_)||F.push(Z)}return F}oe.exports=b},89881:function(oe,N,o){var x=o(47816),g=o(99291),A=g(x);oe.exports=A},41848:function(oe){function N(o,x,g,A){for(var y=o.length,M=g+(A?1:-1);A?M--:++M<y;)if(x(o[M],M,o))return M;return-1}oe.exports=N},21078:function(oe,N,o){var x=o(62488),g=o(37285);function A(y,M,w,m,b){var v=-1,h=y.length;for(w||(w=g),b||(b=[]);++v<h;){var d=y[v];M>0&&w(d)?M>1?A(d,M-1,w,m,b):x(b,d):m||(b[b.length]=d)}return b}oe.exports=A},28483:function(oe,N,o){var x=o(25063),g=x();oe.exports=g},47816:function(oe,N,o){var x=o(28483),g=o(3674);function A(y,M){return y&&x(y,M,g)}oe.exports=A},97786:function(oe,N,o){var x=o(71811),g=o(40327);function A(y,M){M=x(M,y);for(var w=0,m=M.length;y!=null&&w<m;)y=y[g(M[w++])];return w&&w==m?y:void 0}oe.exports=A},68866:function(oe,N,o){var x=o(62488),g=o(1469);function A(y,M,w){var m=M(y);return g(y)?m:x(m,w(y))}oe.exports=A},44239:function(oe,N,o){var x=o(62705),g=o(89607),A=o(2333),y="[object Null]",M="[object Undefined]",w=x?x.toStringTag:void 0;function m(b){return b==null?b===void 0?M:y:w&&w in Object(b)?g(b):A(b)}oe.exports=m},13:function(oe){function N(o,x){return o!=null&&x in Object(o)}oe.exports=N},42118:function(oe,N,o){var x=o(41848),g=o(62722),A=o(42351);function y(M,w,m){return w===w?A(M,w,m):x(M,g,m)}oe.exports=y},9454:function(oe,N,o){var x=o(44239),g=o(37005),A="[object Arguments]";function y(M){return g(M)&&x(M)==A}oe.exports=y},90939:function(oe,N,o){var x=o(2492),g=o(37005);function A(y,M,w,m,b){return y===M?!0:y==null||M==null||!g(y)&&!g(M)?y!==y&&M!==M:x(y,M,w,m,A,b)}oe.exports=A},2492:function(oe,N,o){var x=o(46384),g=o(67114),A=o(18351),y=o(16096),M=o(64160),w=o(1469),m=o(78264),b=o(36719),v=1,h="[object Arguments]",d="[object Array]",_="[object Object]",p=Object.prototype,S=p.hasOwnProperty;function k(O,F,D,Z,W,U){var L=w(O),V=w(F),$=L?d:M(O),G=V?d:M(F);$=$==h?_:$,G=G==h?_:G;var z=$==_,K=G==_,re=$==G;if(re&&m(O)){if(!m(F))return!1;L=!0,z=!1}if(re&&!z)return U||(U=new x),L||b(O)?g(O,F,D,Z,W,U):A(O,F,$,D,Z,W,U);if(!(D&v)){var ne=z&&S.call(O,"__wrapped__"),Q=K&&S.call(F,"__wrapped__");if(ne||Q){var ue=ne?O.value():O,he=Q?F.value():F;return U||(U=new x),W(ue,he,D,Z,U)}}return re?(U||(U=new x),y(O,F,D,Z,W,U)):!1}oe.exports=k},25588:function(oe,N,o){var x=o(64160),g=o(37005),A="[object Map]";function y(M){return g(M)&&x(M)==A}oe.exports=y},2958:function(oe,N,o){var x=o(46384),g=o(90939),A=1,y=2;function M(w,m,b,v){var h=b.length,d=h,_=!v;if(w==null)return!d;for(w=Object(w);h--;){var p=b[h];if(_&&p[2]?p[1]!==w[p[0]]:!(p[0]in w))return!1}for(;++h<d;){p=b[h];var S=p[0],k=w[S],O=p[1];if(_&&p[2]){if(k===void 0&&!(S in w))return!1}else{var F=new x;if(v)var D=v(k,O,S,w,m,F);if(!(D===void 0?g(O,k,A|y,v,F):D))return!1}}return!0}oe.exports=M},62722:function(oe){function N(o){return o!==o}oe.exports=N},28458:function(oe,N,o){var x=o(23560),g=o(15346),A=o(13218),y=o(80346),M=/[\\^$.*+?()[\]{}|]/g,w=/^\[object .+?Constructor\]$/,m=Function.prototype,b=Object.prototype,v=m.toString,h=b.hasOwnProperty,d=RegExp("^"+v.call(h).replace(M,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _(p){if(!A(p)||g(p))return!1;var S=x(p)?d:w;return S.test(y(p))}oe.exports=_},29221:function(oe,N,o){var x=o(64160),g=o(37005),A="[object Set]";function y(M){return g(M)&&x(M)==A}oe.exports=y},38749:function(oe,N,o){var x=o(44239),g=o(41780),A=o(37005),y="[object Arguments]",M="[object Array]",w="[object Boolean]",m="[object Date]",b="[object Error]",v="[object Function]",h="[object Map]",d="[object Number]",_="[object Object]",p="[object RegExp]",S="[object Set]",k="[object String]",O="[object WeakMap]",F="[object ArrayBuffer]",D="[object DataView]",Z="[object Float32Array]",W="[object Float64Array]",U="[object Int8Array]",L="[object Int16Array]",V="[object Int32Array]",$="[object Uint8Array]",G="[object Uint8ClampedArray]",z="[object Uint16Array]",K="[object Uint32Array]",re={};re[Z]=re[W]=re[U]=re[L]=re[V]=re[$]=re[G]=re[z]=re[K]=!0,re[y]=re[M]=re[F]=re[w]=re[D]=re[m]=re[b]=re[v]=re[h]=re[d]=re[_]=re[p]=re[S]=re[k]=re[O]=!1;function ne(Q){return A(Q)&&g(Q.length)&&!!re[x(Q)]}oe.exports=ne},67206:function(oe,N,o){var x=o(91573),g=o(16432),A=o(6557),y=o(1469),M=o(39601);function w(m){return typeof m=="function"?m:m==null?A:typeof m=="object"?y(m)?g(m[0],m[1]):x(m):M(m)}oe.exports=w},280:function(oe,N,o){var x=o(25726),g=o(86916),A=Object.prototype,y=A.hasOwnProperty;function M(w){if(!x(w))return g(w);var m=[];for(var b in Object(w))y.call(w,b)&&b!="constructor"&&m.push(b);return m}oe.exports=M},10313:function(oe,N,o){var x=o(13218),g=o(25726),A=o(33498),y=Object.prototype,M=y.hasOwnProperty;function w(m){if(!x(m))return A(m);var b=g(m),v=[];for(var h in m)h=="constructor"&&(b||!M.call(m,h))||v.push(h);return v}oe.exports=w},69199:function(oe,N,o){var x=o(89881),g=o(98612);function A(y,M){var w=-1,m=g(y)?Array(y.length):[];return x(y,function(b,v,h){m[++w]=M(b,v,h)}),m}oe.exports=A},91573:function(oe,N,o){var x=o(2958),g=o(1499),A=o(42634);function y(M){var w=g(M);return w.length==1&&w[0][2]?A(w[0][0],w[0][1]):function(m){return m===M||x(m,M,w)}}oe.exports=y},16432:function(oe,N,o){var x=o(90939),g=o(27361),A=o(79095),y=o(15403),M=o(89162),w=o(42634),m=o(40327),b=1,v=2;function h(d,_){return y(d)&&M(_)?w(m(d),_):function(p){var S=g(p,d);return S===void 0&&S===_?A(p,d):x(_,S,b|v)}}oe.exports=h},42980:function(oe,N,o){var x=o(46384),g=o(86556),A=o(28483),y=o(59783),M=o(13218),w=o(81704),m=o(36390);function b(v,h,d,_,p){v!==h&&A(h,function(S,k){if(p||(p=new x),M(S))y(v,h,k,d,b,_,p);else{var O=_?_(m(v,k),S,k+"",v,h,p):void 0;O===void 0&&(O=S),g(v,k,O)}},w)}oe.exports=b},59783:function(oe,N,o){var x=o(86556),g=o(64626),A=o(77133),y=o(278),M=o(38517),w=o(35694),m=o(1469),b=o(29246),v=o(78264),h=o(23560),d=o(13218),_=o(68630),p=o(36719),S=o(36390),k=o(59881);function O(F,D,Z,W,U,L,V){var $=S(F,Z),G=S(D,Z),z=V.get(G);if(z){x(F,Z,z);return}var K=L?L($,G,Z+"",F,D,V):void 0,re=K===void 0;if(re){var ne=m(G),Q=!ne&&v(G),ue=!ne&&!Q&&p(G);K=G,ne||Q||ue?m($)?K=$:b($)?K=y($):Q?(re=!1,K=g(G,!0)):ue?(re=!1,K=A(G,!0)):K=[]:_(G)||w(G)?(K=$,w($)?K=k($):(!d($)||h($))&&(K=M(G))):re=!1}re&&(V.set(G,K),U(K,G,W,L,V),V.delete(G)),x(F,Z,K)}oe.exports=O},40371:function(oe){function N(o){return function(x){return x==null?void 0:x[o]}}oe.exports=N},79152:function(oe,N,o){var x=o(97786);function g(A){return function(y){return x(y,A)}}oe.exports=g},18674:function(oe){function N(o){return function(x){return o==null?void 0:o[x]}}oe.exports=N},18190:function(oe){var N=9007199254740991,o=Math.floor;function x(g,A){var y="";if(!g||A<1||A>N)return y;do A%2&&(y+=g),A=o(A/2),A&&(g+=g);while(A);return y}oe.exports=x},5976:function(oe,N,o){var x=o(6557),g=o(45357),A=o(30061);function y(M,w){return A(g(M,w,x),M+"")}oe.exports=y},56560:function(oe,N,o){var x=o(75703),g=o(38777),A=o(6557),y=g?function(M,w){return g(M,"toString",{configurable:!0,enumerable:!1,value:x(w),writable:!0})}:A;oe.exports=y},14259:function(oe){function N(o,x,g){var A=-1,y=o.length;x<0&&(x=-x>y?0:y+x),g=g>y?y:g,g<0&&(g+=y),y=x>g?0:g-x>>>0,x>>>=0;for(var M=Array(y);++A<y;)M[A]=o[A+x];return M}oe.exports=N},22545:function(oe){function N(o,x){for(var g=-1,A=Array(o);++g<o;)A[g]=x(g);return A}oe.exports=N},80531:function(oe,N,o){var x=o(62705),g=o(29932),A=o(1469),y=o(33448),M=1/0,w=x?x.prototype:void 0,m=w?w.toString:void 0;function b(v){if(typeof v=="string")return v;if(A(v))return g(v,b)+"";if(y(v))return m?m.call(v):"";var h=v+"";return h=="0"&&1/v==-M?"-0":h}oe.exports=b},27561:function(oe,N,o){var x=o(67990),g=/^\s+/;function A(y){return y&&y.slice(0,x(y)+1).replace(g,"")}oe.exports=A},7518:function(oe){function N(o){return function(x){return o(x)}}oe.exports=N},47415:function(oe,N,o){var x=o(29932);function g(A,y){return x(y,function(M){return A[M]})}oe.exports=g},74757:function(oe){function N(o,x){return o.has(x)}oe.exports=N},54290:function(oe,N,o){var x=o(6557);function g(A){return typeof A=="function"?A:x}oe.exports=g},71811:function(oe,N,o){var x=o(1469),g=o(15403),A=o(55514),y=o(79833);function M(w,m){return x(w)?w:g(w,m)?[w]:A(y(w))}oe.exports=M},40180:function(oe,N,o){var x=o(14259);function g(A,y,M){var w=A.length;return M=M===void 0?w:M,!y&&M>=w?A:x(A,y,M)}oe.exports=g},5512:function(oe,N,o){var x=o(42118);function g(A,y){for(var M=A.length;M--&&x(y,A[M],0)>-1;);return M}oe.exports=g},74318:function(oe,N,o){var x=o(11149);function g(A){var y=new A.constructor(A.byteLength);return new x(y).set(new x(A)),y}oe.exports=g},64626:function(oe,N,o){oe=o.nmd(oe);var x=o(55639),g=N&&!N.nodeType&&N,A=g&&!0&&oe&&!oe.nodeType&&oe,y=A&&A.exports===g,M=y?x.Buffer:void 0,w=M?M.allocUnsafe:void 0;function m(b,v){if(v)return b.slice();var h=b.length,d=w?w(h):new b.constructor(h);return b.copy(d),d}oe.exports=m},57157:function(oe,N,o){var x=o(74318);function g(A,y){var M=y?x(A.buffer):A.buffer;return new A.constructor(M,A.byteOffset,A.byteLength)}oe.exports=g},93147:function(oe){var N=/\w*$/;function o(x){var g=new x.constructor(x.source,N.exec(x));return g.lastIndex=x.lastIndex,g}oe.exports=o},40419:function(oe,N,o){var x=o(62705),g=x?x.prototype:void 0,A=g?g.valueOf:void 0;function y(M){return A?Object(A.call(M)):{}}oe.exports=y},77133:function(oe,N,o){var x=o(74318);function g(A,y){var M=y?x(A.buffer):A.buffer;return new A.constructor(M,A.byteOffset,A.length)}oe.exports=g},278:function(oe){function N(o,x){var g=-1,A=o.length;for(x||(x=Array(A));++g<A;)x[g]=o[g];return x}oe.exports=N},98363:function(oe,N,o){var x=o(34865),g=o(89465);function A(y,M,w,m){var b=!w;w||(w={});for(var v=-1,h=M.length;++v<h;){var d=M[v],_=m?m(w[d],y[d],d,w,y):void 0;_===void 0&&(_=y[d]),b?g(w,d,_):x(w,d,_)}return w}oe.exports=A},18805:function(oe,N,o){var x=o(98363),g=o(99551);function A(y,M){return x(y,g(y),M)}oe.exports=A},1911:function(oe,N,o){var x=o(98363),g=o(51442);function A(y,M){return x(y,g(y),M)}oe.exports=A},14429:function(oe,N,o){var x=o(55639),g=x["__core-js_shared__"];oe.exports=g},21463:function(oe,N,o){var x=o(5976),g=o(16612);function A(y){return x(function(M,w){var m=-1,b=w.length,v=b>1?w[b-1]:void 0,h=b>2?w[2]:void 0;for(v=y.length>3&&typeof v=="function"?(b--,v):void 0,h&&g(w[0],w[1],h)&&(v=b<3?void 0:v,b=1),M=Object(M);++m<b;){var d=w[m];d&&y(M,d,m,v)}return M})}oe.exports=A},99291:function(oe,N,o){var x=o(98612);function g(A,y){return function(M,w){if(M==null)return M;if(!x(M))return A(M,w);for(var m=M.length,b=y?m:-1,v=Object(M);(y?b--:++b<m)&&w(v[b],b,v)!==!1;);return M}}oe.exports=g},25063:function(oe){function N(o){return function(x,g,A){for(var y=-1,M=Object(x),w=A(x),m=w.length;m--;){var b=w[o?m:++y];if(g(M[b],b,M)===!1)break}return x}}oe.exports=N},98805:function(oe,N,o){var x=o(40180),g=o(62689),A=o(83140),y=o(79833);function M(w){return function(m){m=y(m);var b=g(m)?A(m):void 0,v=b?b[0]:m.charAt(0),h=b?x(b,1).join(""):m.slice(1);return v[w]()+h}}oe.exports=M},35393:function(oe,N,o){var x=o(62663),g=o(53816),A=o(58748),y="['\u2019]",M=RegExp(y,"g");function w(m){return function(b){return x(A(g(b).replace(M,"")),m,"")}}oe.exports=w},69389:function(oe,N,o){var x=o(18674),g={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},A=x(g);oe.exports=A},38777:function(oe,N,o){var x=o(10852),g=function(){try{var A=x(Object,"defineProperty");return A({},"",{}),A}catch(y){}}();oe.exports=g},67114:function(oe,N,o){var x=o(88668),g=o(82908),A=o(74757),y=1,M=2;function w(m,b,v,h,d,_){var p=v&y,S=m.length,k=b.length;if(S!=k&&!(p&&k>S))return!1;var O=_.get(m),F=_.get(b);if(O&&F)return O==b&&F==m;var D=-1,Z=!0,W=v&M?new x:void 0;for(_.set(m,b),_.set(b,m);++D<S;){var U=m[D],L=b[D];if(h)var V=p?h(L,U,D,b,m,_):h(U,L,D,m,b,_);if(V!==void 0){if(V)continue;Z=!1;break}if(W){if(!g(b,function($,G){if(!A(W,G)&&(U===$||d(U,$,v,h,_)))return W.push(G)})){Z=!1;break}}else if(!(U===L||d(U,L,v,h,_))){Z=!1;break}}return _.delete(m),_.delete(b),Z}oe.exports=w},18351:function(oe,N,o){var x=o(62705),g=o(11149),A=o(77813),y=o(67114),M=o(68776),w=o(21814),m=1,b=2,v="[object Boolean]",h="[object Date]",d="[object Error]",_="[object Map]",p="[object Number]",S="[object RegExp]",k="[object Set]",O="[object String]",F="[object Symbol]",D="[object ArrayBuffer]",Z="[object DataView]",W=x?x.prototype:void 0,U=W?W.valueOf:void 0;function L(V,$,G,z,K,re,ne){switch(G){case Z:if(V.byteLength!=$.byteLength||V.byteOffset!=$.byteOffset)return!1;V=V.buffer,$=$.buffer;case D:return!(V.byteLength!=$.byteLength||!re(new g(V),new g($)));case v:case h:case p:return A(+V,+$);case d:return V.name==$.name&&V.message==$.message;case S:case O:return V==$+"";case _:var Q=M;case k:var ue=z&m;if(Q||(Q=w),V.size!=$.size&&!ue)return!1;var he=ne.get(V);if(he)return he==$;z|=b,ne.set(V,$);var Ee=y(Q(V),Q($),z,K,re,ne);return ne.delete(V),Ee;case F:if(U)return U.call(V)==U.call($)}return!1}oe.exports=L},16096:function(oe,N,o){var x=o(58234),g=1,A=Object.prototype,y=A.hasOwnProperty;function M(w,m,b,v,h,d){var _=b&g,p=x(w),S=p.length,k=x(m),O=k.length;if(S!=O&&!_)return!1;for(var F=S;F--;){var D=p[F];if(!(_?D in m:y.call(m,D)))return!1}var Z=d.get(w),W=d.get(m);if(Z&&W)return Z==m&&W==w;var U=!0;d.set(w,m),d.set(m,w);for(var L=_;++F<S;){D=p[F];var V=w[D],$=m[D];if(v)var G=_?v($,V,D,m,w,d):v(V,$,D,w,m,d);if(!(G===void 0?V===$||h(V,$,b,v,d):G)){U=!1;break}L||(L=D=="constructor")}if(U&&!L){var z=w.constructor,K=m.constructor;z!=K&&"constructor"in w&&"constructor"in m&&!(typeof z=="function"&&z instanceof z&&typeof K=="function"&&K instanceof K)&&(U=!1)}return d.delete(w),d.delete(m),U}oe.exports=M},31957:function(oe,N,o){var x=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;oe.exports=x},58234:function(oe,N,o){var x=o(68866),g=o(99551),A=o(3674);function y(M){return x(M,A,g)}oe.exports=y},46904:function(oe,N,o){var x=o(68866),g=o(51442),A=o(81704);function y(M){return x(M,A,g)}oe.exports=y},45050:function(oe,N,o){var x=o(37019);function g(A,y){var M=A.__data__;return x(y)?M[typeof y=="string"?"string":"hash"]:M.map}oe.exports=g},1499:function(oe,N,o){var x=o(89162),g=o(3674);function A(y){for(var M=g(y),w=M.length;w--;){var m=M[w],b=y[m];M[w]=[m,b,x(b)]}return M}oe.exports=A},10852:function(oe,N,o){var x=o(28458),g=o(47801);function A(y,M){var w=g(y,M);return x(w)?w:void 0}oe.exports=A},85924:function(oe,N,o){var x=o(5569),g=x(Object.getPrototypeOf,Object);oe.exports=g},89607:function(oe,N,o){var x=o(62705),g=Object.prototype,A=g.hasOwnProperty,y=g.toString,M=x?x.toStringTag:void 0;function w(m){var b=A.call(m,M),v=m[M];try{m[M]=void 0;var h=!0}catch(_){}var d=y.call(m);return h&&(b?m[M]=v:delete m[M]),d}oe.exports=w},99551:function(oe,N,o){var x=o(34963),g=o(70479),A=Object.prototype,y=A.propertyIsEnumerable,M=Object.getOwnPropertySymbols,w=M?function(m){return m==null?[]:(m=Object(m),x(M(m),function(b){return y.call(m,b)}))}:g;oe.exports=w},51442:function(oe,N,o){var x=o(62488),g=o(85924),A=o(99551),y=o(70479),M=Object.getOwnPropertySymbols,w=M?function(m){for(var b=[];m;)x(b,A(m)),m=g(m);return b}:y;oe.exports=w},64160:function(oe,N,o){var x=o(18552),g=o(57071),A=o(53818),y=o(58525),M=o(70577),w=o(44239),m=o(80346),b="[object Map]",v="[object Object]",h="[object Promise]",d="[object Set]",_="[object WeakMap]",p="[object DataView]",S=m(x),k=m(g),O=m(A),F=m(y),D=m(M),Z=w;(x&&Z(new x(new ArrayBuffer(1)))!=p||g&&Z(new g)!=b||A&&Z(A.resolve())!=h||y&&Z(new y)!=d||M&&Z(new M)!=_)&&(Z=function(W){var U=w(W),L=U==v?W.constructor:void 0,V=L?m(L):"";if(V)switch(V){case S:return p;case k:return b;case O:return h;case F:return d;case D:return _}return U}),oe.exports=Z},47801:function(oe){function N(o,x){return o==null?void 0:o[x]}oe.exports=N},222:function(oe,N,o){var x=o(71811),g=o(35694),A=o(1469),y=o(65776),M=o(41780),w=o(40327);function m(b,v,h){v=x(v,b);for(var d=-1,_=v.length,p=!1;++d<_;){var S=w(v[d]);if(!(p=b!=null&&h(b,S)))break;b=b[S]}return p||++d!=_?p:(_=b==null?0:b.length,!!_&&M(_)&&y(S,_)&&(A(b)||g(b)))}oe.exports=m},62689:function(oe){var N="\\ud800-\\udfff",o="\\u0300-\\u036f",x="\\ufe20-\\ufe2f",g="\\u20d0-\\u20ff",A=o+x+g,y="\\ufe0e\\ufe0f",M="\\u200d",w=RegExp("["+M+N+A+y+"]");function m(b){return w.test(b)}oe.exports=m},93157:function(oe){var N=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function o(x){return N.test(x)}oe.exports=o},51789:function(oe,N,o){var x=o(94536);function g(){this.__data__=x?x(null):{},this.size=0}oe.exports=g},80401:function(oe){function N(o){var x=this.has(o)&&delete this.__data__[o];return this.size-=x?1:0,x}oe.exports=N},57667:function(oe,N,o){var x=o(94536),g="__lodash_hash_undefined__",A=Object.prototype,y=A.hasOwnProperty;function M(w){var m=this.__data__;if(x){var b=m[w];return b===g?void 0:b}return y.call(m,w)?m[w]:void 0}oe.exports=M},21327:function(oe,N,o){var x=o(94536),g=Object.prototype,A=g.hasOwnProperty;function y(M){var w=this.__data__;return x?w[M]!==void 0:A.call(w,M)}oe.exports=y},81866:function(oe,N,o){var x=o(94536),g="__lodash_hash_undefined__";function A(y,M){var w=this.__data__;return this.size+=this.has(y)?0:1,w[y]=x&&M===void 0?g:M,this}oe.exports=A},43824:function(oe){var N=Object.prototype,o=N.hasOwnProperty;function x(g){var A=g.length,y=new g.constructor(A);return A&&typeof g[0]=="string"&&o.call(g,"index")&&(y.index=g.index,y.input=g.input),y}oe.exports=x},29148:function(oe,N,o){var x=o(74318),g=o(57157),A=o(93147),y=o(40419),M=o(77133),w="[object Boolean]",m="[object Date]",b="[object Map]",v="[object Number]",h="[object RegExp]",d="[object Set]",_="[object String]",p="[object Symbol]",S="[object ArrayBuffer]",k="[object DataView]",O="[object Float32Array]",F="[object Float64Array]",D="[object Int8Array]",Z="[object Int16Array]",W="[object Int32Array]",U="[object Uint8Array]",L="[object Uint8ClampedArray]",V="[object Uint16Array]",$="[object Uint32Array]";function G(z,K,re){var ne=z.constructor;switch(K){case S:return x(z);case w:case m:return new ne(+z);case k:return g(z,re);case O:case F:case D:case Z:case W:case U:case L:case V:case $:return M(z,re);case b:return new ne;case v:case _:return new ne(z);case h:return A(z);case d:return new ne;case p:return y(z)}}oe.exports=G},38517:function(oe,N,o){var x=o(3118),g=o(85924),A=o(25726);function y(M){return typeof M.constructor=="function"&&!A(M)?x(g(M)):{}}oe.exports=y},37285:function(oe,N,o){var x=o(62705),g=o(35694),A=o(1469),y=x?x.isConcatSpreadable:void 0;function M(w){return A(w)||g(w)||!!(y&&w&&w[y])}oe.exports=M},65776:function(oe){var N=9007199254740991,o=/^(?:0|[1-9]\d*)$/;function x(g,A){var y=typeof g;return A=A==null?N:A,!!A&&(y=="number"||y!="symbol"&&o.test(g))&&g>-1&&g%1==0&&g<A}oe.exports=x},16612:function(oe,N,o){var x=o(77813),g=o(98612),A=o(65776),y=o(13218);function M(w,m,b){if(!y(b))return!1;var v=typeof m;return(v=="number"?g(b)&&A(m,b.length):v=="string"&&m in b)?x(b[m],w):!1}oe.exports=M},15403:function(oe,N,o){var x=o(1469),g=o(33448),A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,y=/^\w*$/;function M(w,m){if(x(w))return!1;var b=typeof w;return b=="number"||b=="symbol"||b=="boolean"||w==null||g(w)?!0:y.test(w)||!A.test(w)||m!=null&&w in Object(m)}oe.exports=M},37019:function(oe){function N(o){var x=typeof o;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?o!=="__proto__":o===null}oe.exports=N},15346:function(oe,N,o){var x=o(14429),g=function(){var y=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}();function A(y){return!!g&&g in y}oe.exports=A},25726:function(oe){var N=Object.prototype;function o(x){var g=x&&x.constructor,A=typeof g=="function"&&g.prototype||N;return x===A}oe.exports=o},89162:function(oe,N,o){var x=o(13218);function g(A){return A===A&&!x(A)}oe.exports=g},27040:function(oe){function N(){this.__data__=[],this.size=0}oe.exports=N},14125:function(oe,N,o){var x=o(18470),g=Array.prototype,A=g.splice;function y(M){var w=this.__data__,m=x(w,M);if(m<0)return!1;var b=w.length-1;return m==b?w.pop():A.call(w,m,1),--this.size,!0}oe.exports=y},82117:function(oe,N,o){var x=o(18470);function g(A){var y=this.__data__,M=x(y,A);return M<0?void 0:y[M][1]}oe.exports=g},67518:function(oe,N,o){var x=o(18470);function g(A){return x(this.__data__,A)>-1}oe.exports=g},54705:function(oe,N,o){var x=o(18470);function g(A,y){var M=this.__data__,w=x(M,A);return w<0?(++this.size,M.push([A,y])):M[w][1]=y,this}oe.exports=g},24785:function(oe,N,o){var x=o(1989),g=o(38407),A=o(57071);function y(){this.size=0,this.__data__={hash:new x,map:new(A||g),string:new x}}oe.exports=y},11285:function(oe,N,o){var x=o(45050);function g(A){var y=x(this,A).delete(A);return this.size-=y?1:0,y}oe.exports=g},96e3:function(oe,N,o){var x=o(45050);function g(A){return x(this,A).get(A)}oe.exports=g},49916:function(oe,N,o){var x=o(45050);function g(A){return x(this,A).has(A)}oe.exports=g},95265:function(oe,N,o){var x=o(45050);function g(A,y){var M=x(this,A),w=M.size;return M.set(A,y),this.size+=M.size==w?0:1,this}oe.exports=g},68776:function(oe){function N(o){var x=-1,g=Array(o.size);return o.forEach(function(A,y){g[++x]=[y,A]}),g}oe.exports=N},42634:function(oe){function N(o,x){return function(g){return g==null?!1:g[o]===x&&(x!==void 0||o in Object(g))}}oe.exports=N},24523:function(oe,N,o){var x=o(88306),g=500;function A(y){var M=x(y,function(m){return w.size===g&&w.clear(),m}),w=M.cache;return M}oe.exports=A},94536:function(oe,N,o){var x=o(10852),g=x(Object,"create");oe.exports=g},86916:function(oe,N,o){var x=o(5569),g=x(Object.keys,Object);oe.exports=g},33498:function(oe){function N(o){var x=[];if(o!=null)for(var g in Object(o))x.push(g);return x}oe.exports=N},31167:function(oe,N,o){oe=o.nmd(oe);var x=o(31957),g=N&&!N.nodeType&&N,A=g&&!0&&oe&&!oe.nodeType&&oe,y=A&&A.exports===g,M=y&&x.process,w=function(){try{var m=A&&A.require&&A.require("util").types;return m||M&&M.binding&&M.binding("util")}catch(b){}}();oe.exports=w},2333:function(oe){var N=Object.prototype,o=N.toString;function x(g){return o.call(g)}oe.exports=x},5569:function(oe){function N(o,x){return function(g){return o(x(g))}}oe.exports=N},45357:function(oe,N,o){var x=o(58380),g=Math.max;function A(y,M,w){return M=g(M===void 0?y.length-1:M,0),function(){for(var m=arguments,b=-1,v=g(m.length-M,0),h=Array(v);++b<v;)h[b]=m[M+b];b=-1;for(var d=Array(M+1);++b<M;)d[b]=m[b];return d[M]=w(h),x(y,this,d)}}oe.exports=A},55639:function(oe,N,o){var x=o(31957),g=typeof self=="object"&&self&&self.Object===Object&&self,A=x||g||Function("return this")();oe.exports=A},36390:function(oe){function N(o,x){if(!(x==="constructor"&&typeof o[x]=="function")&&x!="__proto__")return o[x]}oe.exports=N},90619:function(oe){var N="__lodash_hash_undefined__";function o(x){return this.__data__.set(x,N),this}oe.exports=o},72385:function(oe){function N(o){return this.__data__.has(o)}oe.exports=N},21814:function(oe){function N(o){var x=-1,g=Array(o.size);return o.forEach(function(A){g[++x]=A}),g}oe.exports=N},30061:function(oe,N,o){var x=o(56560),g=o(21275),A=g(x);oe.exports=A},21275:function(oe){var N=800,o=16,x=Date.now;function g(A){var y=0,M=0;return function(){var w=x(),m=o-(w-M);if(M=w,m>0){if(++y>=N)return arguments[0]}else y=0;return A.apply(void 0,arguments)}}oe.exports=g},37465:function(oe,N,o){var x=o(38407);function g(){this.__data__=new x,this.size=0}oe.exports=g},63779:function(oe){function N(o){var x=this.__data__,g=x.delete(o);return this.size=x.size,g}oe.exports=N},67599:function(oe){function N(o){return this.__data__.get(o)}oe.exports=N},44758:function(oe){function N(o){return this.__data__.has(o)}oe.exports=N},34309:function(oe,N,o){var x=o(38407),g=o(57071),A=o(83369),y=200;function M(w,m){var b=this.__data__;if(b instanceof x){var v=b.__data__;if(!g||v.length<y-1)return v.push([w,m]),this.size=++b.size,this;b=this.__data__=new A(v)}return b.set(w,m),this.size=b.size,this}oe.exports=M},42351:function(oe){function N(o,x,g){for(var A=g-1,y=o.length;++A<y;)if(o[A]===x)return A;return-1}oe.exports=N},83140:function(oe,N,o){var x=o(44286),g=o(62689),A=o(676);function y(M){return g(M)?A(M):x(M)}oe.exports=y},55514:function(oe,N,o){var x=o(24523),g=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A=/\\(\\)?/g,y=x(function(M){var w=[];return M.charCodeAt(0)===46&&w.push(""),M.replace(g,function(m,b,v,h){w.push(v?h.replace(A,"$1"):b||m)}),w});oe.exports=y},40327:function(oe,N,o){var x=o(33448),g=1/0;function A(y){if(typeof y=="string"||x(y))return y;var M=y+"";return M=="0"&&1/y==-g?"-0":M}oe.exports=A},80346:function(oe){var N=Function.prototype,o=N.toString;function x(g){if(g!=null){try{return o.call(g)}catch(A){}try{return g+""}catch(A){}}return""}oe.exports=x},67990:function(oe){var N=/\s/;function o(x){for(var g=x.length;g--&&N.test(x.charAt(g)););return g}oe.exports=o},676:function(oe){var N="\\ud800-\\udfff",o="\\u0300-\\u036f",x="\\ufe20-\\ufe2f",g="\\u20d0-\\u20ff",A=o+x+g,y="\\ufe0e\\ufe0f",M="["+N+"]",w="["+A+"]",m="\\ud83c[\\udffb-\\udfff]",b="(?:"+w+"|"+m+")",v="[^"+N+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",_="\\u200d",p=b+"?",S="["+y+"]?",k="(?:"+_+"(?:"+[v,h,d].join("|")+")"+S+p+")*",O=S+p+k,F="(?:"+[v+w+"?",w,h,d,M].join("|")+")",D=RegExp(m+"(?="+m+")|"+F+O,"g");function Z(W){return W.match(D)||[]}oe.exports=Z},2757:function(oe){var N="\\ud800-\\udfff",o="\\u0300-\\u036f",x="\\ufe20-\\ufe2f",g="\\u20d0-\\u20ff",A=o+x+g,y="\\u2700-\\u27bf",M="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",m="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",b="\\u2000-\\u206f",v=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",h="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\ufe0e\\ufe0f",_=w+m+b+v,p="['\u2019]",S="["+_+"]",k="["+A+"]",O="\\d+",F="["+y+"]",D="["+M+"]",Z="[^"+N+_+O+y+M+h+"]",W="\\ud83c[\\udffb-\\udfff]",U="(?:"+k+"|"+W+")",L="[^"+N+"]",V="(?:\\ud83c[\\udde6-\\uddff]){2}",$="[\\ud800-\\udbff][\\udc00-\\udfff]",G="["+h+"]",z="\\u200d",K="(?:"+D+"|"+Z+")",re="(?:"+G+"|"+Z+")",ne="(?:"+p+"(?:d|ll|m|re|s|t|ve))?",Q="(?:"+p+"(?:D|LL|M|RE|S|T|VE))?",ue=U+"?",he="["+d+"]?",Ee="(?:"+z+"(?:"+[L,V,$].join("|")+")"+he+ue+")*",ce="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",fe=he+ue+Ee,we="(?:"+[F,V,$].join("|")+")"+fe,me=RegExp([G+"?"+D+"+"+ne+"(?="+[S,G,"$"].join("|")+")",re+"+"+Q+"(?="+[S,G+K,"$"].join("|")+")",G+"?"+K+"+"+ne,G+"+"+Q,ve,ce,O,we].join("|"),"g");function Pe(pe){return pe.match(me)||[]}oe.exports=Pe},68929:function(oe,N,o){var x=o(48403),g=o(35393),A=g(function(y,M,w){return M=M.toLowerCase(),y+(w?x(M):M)});oe.exports=A},48403:function(oe,N,o){var x=o(79833),g=o(11700);function A(y){return g(x(y).toLowerCase())}oe.exports=A},50361:function(oe,N,o){var x=o(85990),g=1,A=4;function y(M){return x(M,g|A)}oe.exports=y},75703:function(oe){function N(o){return function(){return o}}oe.exports=N},23279:function(oe,N,o){var x=o(13218),g=o(7771),A=o(14841),y="Expected a function",M=Math.max,w=Math.min;function m(b,v,h){var d,_,p,S,k,O,F=0,D=!1,Z=!1,W=!0;if(typeof b!="function")throw new TypeError(y);v=A(v)||0,x(h)&&(D=!!h.leading,Z="maxWait"in h,p=Z?M(A(h.maxWait)||0,v):p,W="trailing"in h?!!h.trailing:W);function U(Q){var ue=d,he=_;return d=_=void 0,F=Q,S=b.apply(he,ue),S}function L(Q){return F=Q,k=setTimeout(G,v),D?U(Q):S}function V(Q){var ue=Q-O,he=Q-F,Ee=v-ue;return Z?w(Ee,p-he):Ee}function $(Q){var ue=Q-O,he=Q-F;return O===void 0||ue>=v||ue<0||Z&&he>=p}function G(){var Q=g();if($(Q))return z(Q);k=setTimeout(G,V(Q))}function z(Q){return k=void 0,W&&d?U(Q):(d=_=void 0,S)}function K(){k!==void 0&&clearTimeout(k),F=0,d=O=_=k=void 0}function re(){return k===void 0?S:z(g())}function ne(){var Q=g(),ue=$(Q);if(d=arguments,_=this,O=Q,ue){if(k===void 0)return L(O);if(Z)return clearTimeout(k),k=setTimeout(G,v),U(O)}return k===void 0&&(k=setTimeout(G,v)),S}return ne.cancel=K,ne.flush=re,ne}oe.exports=m},53816:function(oe,N,o){var x=o(69389),g=o(79833),A=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,y="\\u0300-\\u036f",M="\\ufe20-\\ufe2f",w="\\u20d0-\\u20ff",m=y+M+w,b="["+m+"]",v=RegExp(b,"g");function h(d){return d=g(d),d&&d.replace(A,x).replace(v,"")}oe.exports=h},91966:function(oe,N,o){var x=o(20731),g=o(21078),A=o(5976),y=o(29246),M=A(function(w,m){return y(w)?x(w,g(m,1,y,!0)):[]});oe.exports=M},66073:function(oe,N,o){oe.exports=o(84486)},77813:function(oe){function N(o,x){return o===x||o!==o&&x!==x}oe.exports=N},3522:function(oe,N,o){var x=o(79833),g=/[\\^$.*+?()[\]{}|]/g,A=RegExp(g.source);function y(M){return M=x(M),M&&A.test(M)?M.replace(g,"\\$&"):M}oe.exports=y},84486:function(oe,N,o){var x=o(77412),g=o(89881),A=o(54290),y=o(1469);function M(w,m){var b=y(w)?x:g;return b(w,A(m))}oe.exports=M},2525:function(oe,N,o){var x=o(47816),g=o(54290);function A(y,M){return y&&x(y,g(M))}oe.exports=A},27361:function(oe,N,o){var x=o(97786);function g(A,y,M){var w=A==null?void 0:x(A,y);return w===void 0?M:w}oe.exports=g},79095:function(oe,N,o){var x=o(13),g=o(222);function A(y,M){return y!=null&&g(y,M,x)}oe.exports=A},6557:function(oe){function N(o){return o}oe.exports=N},64721:function(oe,N,o){var x=o(42118),g=o(98612),A=o(47037),y=o(40554),M=o(52628),w=Math.max;function m(b,v,h,d){b=g(b)?b:M(b),h=h&&!d?y(h):0;var _=b.length;return h<0&&(h=w(_+h,0)),A(b)?h<=_&&b.indexOf(v,h)>-1:!!_&&x(b,v,h)>-1}oe.exports=m},35694:function(oe,N,o){var x=o(9454),g=o(37005),A=Object.prototype,y=A.hasOwnProperty,M=A.propertyIsEnumerable,w=x(function(){return arguments}())?x:function(m){return g(m)&&y.call(m,"callee")&&!M.call(m,"callee")};oe.exports=w},1469:function(oe){var N=Array.isArray;oe.exports=N},98612:function(oe,N,o){var x=o(23560),g=o(41780);function A(y){return y!=null&&g(y.length)&&!x(y)}oe.exports=A},29246:function(oe,N,o){var x=o(98612),g=o(37005);function A(y){return g(y)&&x(y)}oe.exports=A},78264:function(oe,N,o){oe=o.nmd(oe);var x=o(55639),g=o(95062),A=N&&!N.nodeType&&N,y=A&&!0&&oe&&!oe.nodeType&&oe,M=y&&y.exports===A,w=M?x.Buffer:void 0,m=w?w.isBuffer:void 0,b=m||g;oe.exports=b},41609:function(oe,N,o){var x=o(280),g=o(64160),A=o(35694),y=o(1469),M=o(98612),w=o(78264),m=o(25726),b=o(36719),v="[object Map]",h="[object Set]",d=Object.prototype,_=d.hasOwnProperty;function p(S){if(S==null)return!0;if(M(S)&&(y(S)||typeof S=="string"||typeof S.splice=="function"||w(S)||b(S)||A(S)))return!S.length;var k=g(S);if(k==v||k==h)return!S.size;if(m(S))return!x(S).length;for(var O in S)if(_.call(S,O))return!1;return!0}oe.exports=p},18446:function(oe,N,o){var x=o(90939);function g(A,y){return x(A,y)}oe.exports=g},23560:function(oe,N,o){var x=o(44239),g=o(13218),A="[object AsyncFunction]",y="[object Function]",M="[object GeneratorFunction]",w="[object Proxy]";function m(b){if(!g(b))return!1;var v=x(b);return v==y||v==M||v==A||v==w}oe.exports=m},41780:function(oe){var N=9007199254740991;function o(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=N}oe.exports=o},56688:function(oe,N,o){var x=o(25588),g=o(7518),A=o(31167),y=A&&A.isMap,M=y?g(y):x;oe.exports=M},81763:function(oe,N,o){var x=o(44239),g=o(37005),A="[object Number]";function y(M){return typeof M=="number"||g(M)&&x(M)==A}oe.exports=y},13218:function(oe){function N(o){var x=typeof o;return o!=null&&(x=="object"||x=="function")}oe.exports=N},37005:function(oe){function N(o){return o!=null&&typeof o=="object"}oe.exports=N},68630:function(oe,N,o){var x=o(44239),g=o(85924),A=o(37005),y="[object Object]",M=Function.prototype,w=Object.prototype,m=M.toString,b=w.hasOwnProperty,v=m.call(Object);function h(d){if(!A(d)||x(d)!=y)return!1;var _=g(d);if(_===null)return!0;var p=b.call(_,"constructor")&&_.constructor;return typeof p=="function"&&p instanceof p&&m.call(p)==v}oe.exports=h},72928:function(oe,N,o){var x=o(29221),g=o(7518),A=o(31167),y=A&&A.isSet,M=y?g(y):x;oe.exports=M},47037:function(oe,N,o){var x=o(44239),g=o(1469),A=o(37005),y="[object String]";function M(w){return typeof w=="string"||!g(w)&&A(w)&&x(w)==y}oe.exports=M},33448:function(oe,N,o){var x=o(44239),g=o(37005),A="[object Symbol]";function y(M){return typeof M=="symbol"||g(M)&&x(M)==A}oe.exports=y},36719:function(oe,N,o){var x=o(38749),g=o(7518),A=o(31167),y=A&&A.isTypedArray,M=y?g(y):x;oe.exports=M},3674:function(oe,N,o){var x=o(14636),g=o(280),A=o(98612);function y(M){return A(M)?x(M):g(M)}oe.exports=y},81704:function(oe,N,o){var x=o(14636),g=o(10313),A=o(98612);function y(M){return A(M)?x(M,!0):g(M)}oe.exports=y},10928:function(oe){function N(o){var x=o==null?0:o.length;return x?o[x-1]:void 0}oe.exports=N},96486:function(oe,N,o){oe=o.nmd(oe);var x;/**
|
||
* @license
|
||
* Lodash <https://lodash.com/>
|
||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
* Released under MIT license <https://lodash.com/license>
|
||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||
*/(function(){var g,A="4.17.21",y=200,M="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",w="Expected a function",m="Invalid `variable` option passed into `_.template`",b="__lodash_hash_undefined__",v=500,h="__lodash_placeholder__",d=1,_=2,p=4,S=1,k=2,O=1,F=2,D=4,Z=8,W=16,U=32,L=64,V=128,$=256,G=512,z=30,K="...",re=800,ne=16,Q=1,ue=2,he=3,Ee=1/0,ce=9007199254740991,ve=17976931348623157e292,fe=0/0,we=4294967295,me=we-1,Pe=we>>>1,pe=[["ary",V],["bind",O],["bindKey",F],["curry",Z],["curryRight",W],["flip",G],["partial",U],["partialRight",L],["rearg",$]],Ie="[object Arguments]",Je="[object Array]",ke="[object AsyncFunction]",De="[object Boolean]",Fe="[object Date]",Qe="[object DOMException]",qe="[object Error]",et="[object Function]",dt="[object GeneratorFunction]",Ke="[object Map]",Ge="[object Number]",wt="[object Null]",Vt="[object Object]",gt="[object Promise]",it="[object Proxy]",Le="[object RegExp]",ct="[object Set]",at="[object String]",jt="[object Symbol]",St="[object Undefined]",fn="[object WeakMap]",Xt="[object WeakSet]",Yt="[object ArrayBuffer]",Rt="[object DataView]",Lt="[object Float32Array]",ze="[object Float64Array]",rt="[object Int8Array]",tt="[object Int16Array]",de="[object Int32Array]",ot="[object Uint8Array]",Et="[object Uint8ClampedArray]",Ht="[object Uint16Array]",Jt="[object Uint32Array]",Qt=/\b__p \+= '';/g,an=/\b(__p \+=) '' \+/g,Un=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qt=/&(?:amp|lt|gt|quot|#39);/g,rn=/[&<>"']/g,cn=RegExp(qt.source),er=RegExp(rn.source),rr=/<%-([\s\S]+?)%>/g,nt=/<%([\s\S]+?)%>/g,lr=/<%=([\s\S]+?)%>/g,Hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ut=/^\w*$/,bt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,We=/[\\^$.*+?()[\]{}|]/g,be=RegExp(We.source),Ae=/^\s+/,Ue=/\s/,$e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kt=/\{\n\/\* \[wrapped with (.+)\] \*/,lt=/,? & /,vt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ct=/[()=,{}\[\]\/\s]/,Bt=/\\(\\)?/g,mt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zt=/\w*$/,zt=/^[-+]0x[0-9a-f]+$/i,ln=/^0b[01]+$/i,An=/^\[object .+?Constructor\]$/,En=/^0o[0-7]+$/i,Gn=/^(?:0|[1-9]\d*)$/,Bn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,pr=/($^)/,_r=/['\n\r\u2028\u2029\\]/g,na="\\ud800-\\udfff",$n="\\u0300-\\u036f",qr="\\ufe20-\\ufe2f",Jr="\\u20d0-\\u20ff",Aa=$n+qr+Jr,ya="\\u2700-\\u27bf",$t="a-z\\xdf-\\xf6\\xf8-\\xff",wn="\\xac\\xb1\\xd7\\xf7",Fn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Or="\\u2000-\\u206f",vr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ur="A-Z\\xc0-\\xd6\\xd8-\\xde",Zr="\\ufe0e\\ufe0f",Kr=wn+Fn+Or+vr,ba="['\u2019]",Ri="["+na+"]",Ea="["+Kr+"]",Pi="["+Aa+"]",rs="\\d+",Ui="["+ya+"]",Cn="["+$t+"]",Kn="[^"+na+Kr+rs+ya+$t+Ur+"]",Pn="\\ud83c[\\udffb-\\udfff]",At="(?:"+Pi+"|"+Pn+")",ar="[^"+na+"]",ta="(?:\\ud83c[\\udde6-\\uddff]){2}",Yn="[\\ud800-\\udbff][\\udc00-\\udfff]",Qa="["+Ur+"]",Ua="\\u200d",Fi="(?:"+Cn+"|"+Kn+")",Xa="(?:"+Qa+"|"+Kn+")",$i="(?:"+ba+"(?:d|ll|m|re|s|t|ve))?",La="(?:"+ba+"(?:D|LL|M|RE|S|T|VE))?",ja=At+"?",ei="["+Zr+"]?",Do="(?:"+Ua+"(?:"+[ar,ta,Yn].join("|")+")"+ei+ja+")*",yo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",to="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",fs=ei+ja+Do,cs="(?:"+[Ui,ta,Yn].join("|")+")"+fs,Os="(?:"+[ar+Pi+"?",Pi,ta,Yn,Ri].join("|")+")",vl=RegExp(ba,"g"),Ar=RegExp(Pi,"g"),Rn=RegExp(Pn+"(?="+Pn+")|"+Os+fs,"g"),Sr=RegExp([Qa+"?"+Cn+"+"+$i+"(?="+[Ea,Qa,"$"].join("|")+")",Xa+"+"+La+"(?="+[Ea,Qa+Fi,"$"].join("|")+")",Qa+"?"+Fi+"+"+$i,Qa+"+"+La,to,yo,rs,cs].join("|"),"g"),nn=RegExp("["+Ua+na+Aa+Zr+"]"),sn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gr=-1,Gr={};Gr[Lt]=Gr[ze]=Gr[rt]=Gr[tt]=Gr[de]=Gr[ot]=Gr[Et]=Gr[Ht]=Gr[Jt]=!0,Gr[Ie]=Gr[Je]=Gr[Yt]=Gr[De]=Gr[Rt]=Gr[Fe]=Gr[qe]=Gr[et]=Gr[Ke]=Gr[Ge]=Gr[Vt]=Gr[Le]=Gr[ct]=Gr[at]=Gr[fn]=!1;var Ln={};Ln[Ie]=Ln[Je]=Ln[Yt]=Ln[Rt]=Ln[De]=Ln[Fe]=Ln[Lt]=Ln[ze]=Ln[rt]=Ln[tt]=Ln[de]=Ln[Ke]=Ln[Ge]=Ln[Vt]=Ln[Le]=Ln[ct]=Ln[at]=Ln[jt]=Ln[ot]=Ln[Et]=Ln[Ht]=Ln[Jt]=!0,Ln[qe]=Ln[et]=Ln[fn]=!1;var Tr={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Dn={"&":"&","<":"<",">":">",'"':""","'":"'"},Pr={"&":"&","<":"<",">":">",""":'"',"'":"'"},fa={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ka=parseFloat,Li=parseInt,zi=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g,Mo=typeof self=="object"&&self&&self.Object===Object&&self,Za=zi||Mo||Function("return this")(),ao=N&&!N.nodeType&&N,Mi=ao&&!0&&oe&&!oe.nodeType&&oe,Eo=Mi&&Mi.exports===ao,Xi=Eo&&zi.process,Bo=function(){try{var Pt=Mi&&Mi.require&&Mi.require("util").types;return Pt||Xi&&Xi.binding&&Xi.binding("util")}catch(on){}}(),ol=Bo&&Bo.isArrayBuffer,Il=Bo&&Bo.isDate,ms=Bo&&Bo.isMap,mc=Bo&&Bo.isRegExp,Ys=Bo&&Bo.isSet,hl=Bo&&Bo.isTypedArray;function Rs(Pt,on,_n){switch(_n.length){case 0:return Pt.call(on);case 1:return Pt.call(on,_n[0]);case 2:return Pt.call(on,_n[0],_n[1]);case 3:return Pt.call(on,_n[0],_n[1],_n[2])}return Pt.apply(on,_n)}function xl(Pt,on,_n,ir){for(var xr=-1,aa=Pt==null?0:Pt.length;++xr<aa;){var oi=Pt[xr];on(ir,oi,_n(oi),Pt)}return ir}function Wl(Pt,on){for(var _n=-1,ir=Pt==null?0:Pt.length;++_n<ir&&on(Pt[_n],_n,Pt)!==!1;);return Pt}function _l(Pt,on){for(var _n=Pt==null?0:Pt.length;_n--&&on(Pt[_n],_n,Pt)!==!1;);return Pt}function Ls(Pt,on){for(var _n=-1,ir=Pt==null?0:Pt.length;++_n<ir;)if(!on(Pt[_n],_n,Pt))return!1;return!0}function zn(Pt,on){for(var _n=-1,ir=Pt==null?0:Pt.length,xr=0,aa=[];++_n<ir;){var oi=Pt[_n];on(oi,_n,Pt)&&(aa[xr++]=oi)}return aa}function Dr(Pt,on){var _n=Pt==null?0:Pt.length;return!!_n&&Ps(Pt,on,0)>-1}function Hr(Pt,on,_n){for(var ir=-1,xr=Pt==null?0:Pt.length;++ir<xr;)if(_n(on,Pt[ir]))return!0;return!1}function _a(Pt,on){for(var _n=-1,ir=Pt==null?0:Pt.length,xr=Array(ir);++_n<ir;)xr[_n]=on(Pt[_n],_n,Pt);return xr}function Ti(Pt,on){for(var _n=-1,ir=on.length,xr=Pt.length;++_n<ir;)Pt[xr+_n]=on[_n];return Pt}function Ci(Pt,on,_n,ir){var xr=-1,aa=Pt==null?0:Pt.length;for(ir&&aa&&(_n=Pt[++xr]);++xr<aa;)_n=on(_n,Pt[xr],xr,Pt);return _n}function da(Pt,on,_n,ir){var xr=Pt==null?0:Pt.length;for(ir&&xr&&(_n=Pt[--xr]);xr--;)_n=on(_n,Pt[xr],xr,Pt);return _n}function Da(Pt,on){for(var _n=-1,ir=Pt==null?0:Pt.length;++_n<ir;)if(on(Pt[_n],_n,Pt))return!0;return!1}var mi=Jl("length");function Ho(Pt){return Pt.split("")}function al(Pt){return Pt.match(vt)||[]}function ml(Pt,on,_n){var ir;return _n(Pt,function(xr,aa,oi){if(on(xr,aa,oi))return ir=aa,!1}),ir}function Xs(Pt,on,_n,ir){for(var xr=Pt.length,aa=_n+(ir?1:-1);ir?aa--:++aa<xr;)if(on(Pt[aa],aa,Pt))return aa;return-1}function Ps(Pt,on,_n){return on===on?Fd(Pt,on,_n):Xs(Pt,ql,_n)}function dl(Pt,on,_n,ir){for(var xr=_n-1,aa=Pt.length;++xr<aa;)if(ir(Pt[xr],on))return xr;return-1}function ql(Pt){return Pt!==Pt}function Dc(Pt,on){var _n=Pt==null?0:Pt.length;return _n?ku(Pt,on)/_n:fe}function Jl(Pt){return function(on){return on==null?g:on[Pt]}}function oc(Pt){return function(on){return Pt==null?g:Pt[on]}}function xu(Pt,on,_n,ir,xr){return xr(Pt,function(aa,oi,ni){_n=ir?(ir=!1,aa):on(_n,aa,oi,ni)}),_n}function yf(Pt,on){var _n=Pt.length;for(Pt.sort(on);_n--;)Pt[_n]=Pt[_n].value;return Pt}function ku(Pt,on){for(var _n,ir=-1,xr=Pt.length;++ir<xr;){var aa=on(Pt[ir]);aa!==g&&(_n=_n===g?aa:_n+aa)}return _n}function Zc(Pt,on){for(var _n=-1,ir=Array(Pt);++_n<Pt;)ir[_n]=on(_n);return ir}function Zu(Pt,on){return _a(on,function(_n){return[_n,Pt[_n]]})}function Fc(Pt){return Pt&&Pt.slice(0,If(Pt)+1).replace(Ae,"")}function Hc(Pt){return function(on){return Pt(on)}}function Vu(Pt,on){return _a(on,function(_n){return Pt[_n]})}function ws(Pt,on){return Pt.has(on)}function fc(Pt,on){for(var _n=-1,ir=Pt.length;++_n<ir&&Ps(on,Pt[_n],0)>-1;);return _n}function Tc(Pt,on){for(var _n=Pt.length;_n--&&Ps(on,Pt[_n],0)>-1;);return _n}function jc(Pt,on){for(var _n=Pt.length,ir=0;_n--;)Pt[_n]===on&&++ir;return ir}var lu=oc(Tr),hu=oc(Dn);function of(Pt){return"\\"+fa[Pt]}function uu(Pt,on){return Pt==null?g:Pt[on]}function zu(Pt){return nn.test(Pt)}function cf(Pt){return sn.test(Pt)}function bf(Pt){for(var on,_n=[];!(on=Pt.next()).done;)_n.push(on.value);return _n}function Cu(Pt){var on=-1,_n=Array(Pt.size);return Pt.forEach(function(ir,xr){_n[++on]=[xr,ir]}),_n}function rf(Pt,on){return function(_n){return Pt(on(_n))}}function Bu(Pt,on){for(var _n=-1,ir=Pt.length,xr=0,aa=[];++_n<ir;){var oi=Pt[_n];(oi===on||oi===h)&&(Pt[_n]=h,aa[xr++]=_n)}return aa}function Tf(Pt){var on=-1,_n=Array(Pt.size);return Pt.forEach(function(ir){_n[++on]=ir}),_n}function ed(Pt){var on=-1,_n=Array(Pt.size);return Pt.forEach(function(ir){_n[++on]=[ir,ir]}),_n}function Fd(Pt,on,_n){for(var ir=_n-1,xr=Pt.length;++ir<xr;)if(Pt[ir]===on)return ir;return-1}function Pd(Pt,on,_n){for(var ir=_n+1;ir--;)if(Pt[ir]===on)return ir;return ir}function Nc(Pt){return zu(Pt)?Te(Pt):mi(Pt)}function eu(Pt){return zu(Pt)?_t(Pt):Ho(Pt)}function If(Pt){for(var on=Pt.length;on--&&Ue.test(Pt.charAt(on)););return on}var $f=oc(Pr);function Te(Pt){for(var on=Rn.lastIndex=0;Rn.test(Pt);)++on;return on}function _t(Pt){return Pt.match(Rn)||[]}function Vn(Pt){return Pt.match(Sr)||[]}var br=function Pt(on){on=on==null?Za:tn.defaults(Za.Object(),on,tn.pick(Za,Ot));var _n=on.Array,ir=on.Date,xr=on.Error,aa=on.Function,oi=on.Math,ni=on.Object,yi=on.RegExp,Zo=on.String,is=on.TypeError,mo=_n.prototype,Ml=aa.prototype,yc=ni.prototype,oa=on["__core-js_shared__"],sl=Ml.toString,fl=yc.hasOwnProperty,bc=0,Rf=function(){var _e=/[^.]+$/.exec(oa&&oa.keys&&oa.keys.IE_PROTO||"");return _e?"Symbol(src)_1."+_e:""}(),Ms=yc.toString,ff=sl.call(ni),Df=Za._,Ff=yi("^"+sl.call(fl).replace(We,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kf=Eo?on.Buffer:g,xf=on.Symbol,Sc=on.Uint8Array,Wu=Kf?Kf.allocUnsafe:g,Du=rf(ni.getPrototypeOf,ni),Gd=ni.create,gf=yc.propertyIsEnumerable,Vp=mo.splice,$c=xf?xf.isConcatSpreadable:g,Yl=xf?xf.iterator:g,Sp=xf?xf.toStringTag:g,tp=function(){try{var _e=Ns(ni,"defineProperty");return _e({},"",{}),_e}catch(Ve){}}(),Rp=on.clearTimeout!==Za.clearTimeout&&on.clearTimeout,df=ir&&ir.now!==Za.Date.now&&ir.now,uf=on.setTimeout!==Za.setTimeout&&on.setTimeout,Af=oi.ceil,Wn=oi.floor,ca=ni.getOwnPropertySymbols,ra=Kf?Kf.isBuffer:g,Na=on.isFinite,fi=mo.join,so=rf(ni.keys,ni),vo=oi.max,Ro=oi.min,So=ir.now,el=on.parseInt,ul=oi.random,Xo=mo.reverse,lo=Ns(on,"DataView"),Zs=Ns(on,"Map"),Gs=Ns(on,"Promise"),$s=Ns(on,"Set"),Qn=Ns(on,"WeakMap"),dr=Ns(ni,"create"),Xr=Qn&&new Qn,la={},Ra=Yd(lo),_i=Yd(Zs),ui=Yd(Gs),ho=Yd($s),Oi=Yd(Qn),Fo=xf?xf.prototype:g,as=Fo?Fo.valueOf:g,Fs=Fo?Fo.toString:g;function Fr(_e){if(wp(_e)&&!Cd(_e)&&!(_e instanceof os)){if(_e instanceof Us)return _e;if(fl.call(_e,"__wrapped__"))return Sf(_e)}return new Us(_e)}var tl=function(){function _e(){}return function(Ve){if(!zv(Ve))return{};if(Gd)return Gd(Ve);_e.prototype=Ve;var Gt=new _e;return _e.prototype=g,Gt}}();function Js(){}function Us(_e,Ve){this.__wrapped__=_e,this.__actions__=[],this.__chain__=!!Ve,this.__index__=0,this.__values__=g}Fr.templateSettings={escape:rr,evaluate:nt,interpolate:lr,variable:"",imports:{_:Fr}},Fr.prototype=Js.prototype,Fr.prototype.constructor=Fr,Us.prototype=tl(Js.prototype),Us.prototype.constructor=Us;function os(_e){this.__wrapped__=_e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=we,this.__views__=[]}function El(){var _e=new os(this.__wrapped__);return _e.__actions__=Bv(this.__actions__),_e.__dir__=this.__dir__,_e.__filtered__=this.__filtered__,_e.__iteratees__=Bv(this.__iteratees__),_e.__takeCount__=this.__takeCount__,_e.__views__=Bv(this.__views__),_e}function Bs(){if(this.__filtered__){var _e=new os(this);_e.__dir__=-1,_e.__filtered__=!0}else _e=this.clone(),_e.__dir__*=-1;return _e}function gc(){var _e=this.__wrapped__.value(),Ve=this.__dir__,Gt=Cd(_e),fr=Ve<0,ha=Gt?_e.length:0,Ka=ac(0,ha,this.__views__),no=Ka.start,bo=Ka.end,ls=bo-no,Bl=fr?bo:no-1,$l=this.__iteratees__,vc=$l.length,Fu=0,Zf=Ro(ls,this.__takeCount__);if(!Gt||!fr&&ha==ls&&Zf==ls)return Sl(_e,this.__actions__);var nd=[];e:for(;ls--&&Fu<Zf;){Bl+=Ve;for(var Qd=-1,Td=_e[Bl];++Qd<vc;){var Ap=$l[Qd],hp=Ap.iteratee,Zg=Ap.type,Hm=hp(Td);if(Zg==ue)Td=Hm;else if(!Hm){if(Zg==Q)continue e;break e}}nd[Fu++]=Td}return nd}os.prototype=tl(Js.prototype),os.prototype.constructor=os;function kr(_e){var Ve=-1,Gt=_e==null?0:_e.length;for(this.clear();++Ve<Gt;){var fr=_e[Ve];this.set(fr[0],fr[1])}}function Sa(){this.__data__=dr?dr(null):{},this.size=0}function Hi(_e){var Ve=this.has(_e)&&delete this.__data__[_e];return this.size-=Ve?1:0,Ve}function Co(_e){var Ve=this.__data__;if(dr){var Gt=Ve[_e];return Gt===b?g:Gt}return fl.call(Ve,_e)?Ve[_e]:g}function Ds(_e){var Ve=this.__data__;return dr?Ve[_e]!==g:fl.call(Ve,_e)}function Dl(_e,Ve){var Gt=this.__data__;return this.size+=this.has(_e)?0:1,Gt[_e]=dr&&Ve===g?b:Ve,this}kr.prototype.clear=Sa,kr.prototype.delete=Hi,kr.prototype.get=Co,kr.prototype.has=Ds,kr.prototype.set=Dl;function Xc(_e){var Ve=-1,Gt=_e==null?0:_e.length;for(this.clear();++Ve<Gt;){var fr=_e[Ve];this.set(fr[0],fr[1])}}function Fl(){this.__data__=[],this.size=0}function Eu(_e){var Ve=this.__data__,Gt=nc(Ve,_e);if(Gt<0)return!1;var fr=Ve.length-1;return Gt==fr?Ve.pop():Vp.call(Ve,Gt,1),--this.size,!0}function cc(_e){var Ve=this.__data__,Gt=nc(Ve,_e);return Gt<0?g:Ve[Gt][1]}function Hu(_e){return nc(this.__data__,_e)>-1}function dc(_e,Ve){var Gt=this.__data__,fr=nc(Gt,_e);return fr<0?(++this.size,Gt.push([_e,Ve])):Gt[fr][1]=Ve,this}Xc.prototype.clear=Fl,Xc.prototype.delete=Eu,Xc.prototype.get=cc,Xc.prototype.has=Hu,Xc.prototype.set=dc;function iu(_e){var Ve=-1,Gt=_e==null?0:_e.length;for(this.clear();++Ve<Gt;){var fr=_e[Ve];this.set(fr[0],fr[1])}}function Gc(){this.size=0,this.__data__={hash:new kr,map:new(Zs||Xc),string:new kr}}function Jc(_e){var Ve=Ss(this,_e).delete(_e);return this.size-=Ve?1:0,Ve}function pf(_e){return Ss(this,_e).get(_e)}function hn(_e){return Ss(this,_e).has(_e)}function dn(_e,Ve){var Gt=Ss(this,_e),fr=Gt.size;return Gt.set(_e,Ve),this.size+=Gt.size==fr?0:1,this}iu.prototype.clear=Gc,iu.prototype.delete=Jc,iu.prototype.get=pf,iu.prototype.has=hn,iu.prototype.set=dn;function tr(_e){var Ve=-1,Gt=_e==null?0:_e.length;for(this.__data__=new iu;++Ve<Gt;)this.add(_e[Ve])}function Mn(_e){return this.__data__.set(_e,b),this}function Lr(_e){return this.__data__.has(_e)}tr.prototype.add=tr.prototype.push=Mn,tr.prototype.has=Lr;function sa(_e){var Ve=this.__data__=new Xc(_e);this.size=Ve.size}function Ma(){this.__data__=new Xc,this.size=0}function Ia(_e){var Ve=this.__data__,Gt=Ve.delete(_e);return this.size=Ve.size,Gt}function Ja(_e){return this.__data__.get(_e)}function pi(_e){return this.__data__.has(_e)}function fo(_e,Ve){var Gt=this.__data__;if(Gt instanceof Xc){var fr=Gt.__data__;if(!Zs||fr.length<y-1)return fr.push([_e,Ve]),this.size=++Gt.size,this;Gt=this.__data__=new iu(fr)}return Gt.set(_e,Ve),this.size=Gt.size,this}sa.prototype.clear=Ma,sa.prototype.delete=Ia,sa.prototype.get=Ja,sa.prototype.has=pi,sa.prototype.set=fo;function us(_e,Ve){var Gt=Cd(_e),fr=!Gt&&s0(_e),ha=!Gt&&!fr&&p_(_e),Ka=!Gt&&!fr&&!ha&&N0(_e),no=Gt||fr||ha||Ka,bo=no?Zc(_e.length,Zo):[],ls=bo.length;for(var Bl in _e)(Ve||fl.call(_e,Bl))&&!(no&&(Bl=="length"||ha&&(Bl=="offset"||Bl=="parent")||Ka&&(Bl=="buffer"||Bl=="byteLength"||Bl=="byteOffset")||je(Bl,ls)))&&bo.push(Bl);return bo}function xo(_e){var Ve=_e.length;return Ve?_e[Wp(0,Ve-1)]:g}function Qo(_e,Ve){return id(Bv(_e),Xu(Ve,0,_e.length))}function gs(_e){return id(Bv(_e))}function ds(_e,Ve,Gt){(Gt!==g&&!Vv(_e[Ve],Gt)||Gt===g&&!(Ve in _e))&&Ll(_e,Ve,Gt)}function nl(_e,Ve,Gt){var fr=_e[Ve];(!(fl.call(_e,Ve)&&Vv(fr,Gt))||Gt===g&&!(Ve in _e))&&Ll(_e,Ve,Gt)}function nc(_e,Ve){for(var Gt=_e.length;Gt--;)if(Vv(_e[Gt][0],Ve))return Gt;return-1}function Kl(_e,Ve,Gt,fr){return Ic(_e,function(ha,Ka,no){Ve(fr,ha,Gt(ha),no)}),fr}function mu(_e,Ve){return _e&&ah(Ve,Qh(Ve),_e)}function xc(_e,Ve){return _e&&ah(Ve,vm(Ve),_e)}function Ll(_e,Ve,Gt){Ve=="__proto__"&&tp?tp(_e,Ve,{configurable:!0,enumerable:!0,value:Gt,writable:!0}):_e[Ve]=Gt}function wc(_e,Ve){for(var Gt=-1,fr=Ve.length,ha=_n(fr),Ka=_e==null;++Gt<fr;)ha[Gt]=Ka?g:Z1(_e,Ve[Gt]);return ha}function Xu(_e,Ve,Gt){return _e===_e&&(Gt!==g&&(_e=_e<=Gt?_e:Gt),Ve!==g&&(_e=_e>=Ve?_e:Ve)),_e}function _u(_e,Ve,Gt,fr,ha,Ka){var no,bo=Ve&d,ls=Ve&_,Bl=Ve&p;if(Gt&&(no=ha?Gt(_e,fr,ha,Ka):Gt(_e)),no!==g)return no;if(!zv(_e))return _e;var $l=Cd(_e);if($l){if(no=es(_e),!bo)return Bv(_e,no)}else{var vc=ll(_e),Fu=vc==et||vc==dt;if(p_(_e))return Sd(_e,bo);if(vc==Vt||vc==Ie||Fu&&!ha){if(no=ls||Fu?{}:Go(_e),!bo)return ls?Og(_e,xc(no,_e)):om(_e,mu(no,_e))}else{if(!Ln[vc])return ha?_e:{};no=Yo(_e,vc,bo)}}Ka||(Ka=new sa);var Zf=Ka.get(_e);if(Zf)return Zf;Ka.set(_e,no),TE(_e)?_e.forEach(function(Td){no.add(_u(Td,Ve,Gt,Td,_e,Ka))}):fh(_e)&&_e.forEach(function(Td,Ap){no.set(Ap,_u(Td,Ve,Gt,Ap,_e,Ka))});var nd=Bl?ls?$r:Lg:ls?vm:Qh,Qd=$l?g:nd(_e);return Wl(Qd||_e,function(Td,Ap){Qd&&(Ap=Td,Td=_e[Ap]),nl(no,Ap,_u(Td,Ve,Gt,Ap,_e,Ka))}),no}function wu(_e){var Ve=Qh(_e);return function(Gt){return fu(Gt,_e,Ve)}}function fu(_e,Ve,Gt){var fr=Gt.length;if(_e==null)return!fr;for(_e=ni(_e);fr--;){var ha=Gt[fr],Ka=Ve[ha],no=_e[ha];if(no===g&&!(ha in _e)||!Ka(no))return!1}return!0}function Kc(_e,Ve,Gt){if(typeof _e!="function")throw new is(w);return Pc(function(){_e.apply(g,Gt)},Ve)}function td(_e,Ve,Gt,fr){var ha=-1,Ka=Dr,no=!0,bo=_e.length,ls=[],Bl=Ve.length;if(!bo)return ls;Gt&&(Ve=_a(Ve,Hc(Gt))),fr?(Ka=Hr,no=!1):Ve.length>=y&&(Ka=ws,no=!1,Ve=new tr(Ve));e:for(;++ha<bo;){var $l=_e[ha],vc=Gt==null?$l:Gt($l);if($l=fr||$l!==0?$l:0,no&&vc===vc){for(var Fu=Bl;Fu--;)if(Ve[Fu]===vc)continue e;ls.push($l)}else Ka(Ve,vc,fr)||ls.push($l)}return ls}var Ic=Hp($d),tu=Hp(hd,!0);function jf(_e,Ve){var Gt=!0;return Ic(_e,function(fr,ha,Ka){return Gt=!!Ve(fr,ha,Ka),Gt}),Gt}function Tu(_e,Ve,Gt){for(var fr=-1,ha=_e.length;++fr<ha;){var Ka=_e[fr],no=Ve(Ka);if(no!=null&&(bo===g?no===no&&!Bg(no):Gt(no,bo)))var bo=no,ls=Ka}return ls}function Ed(_e,Ve,Gt,fr){var ha=_e.length;for(Gt=up(Gt),Gt<0&&(Gt=-Gt>ha?0:ha+Gt),fr=fr===g||fr>ha?ha:up(fr),fr<0&&(fr+=ha),fr=Gt>fr?0:j1(fr);Gt<fr;)_e[Gt++]=Ve;return _e}function vd(_e,Ve){var Gt=[];return Ic(_e,function(fr,ha,Ka){Ve(fr,ha,Ka)&&Gt.push(fr)}),Gt}function Gu(_e,Ve,Gt,fr,ha){var Ka=-1,no=_e.length;for(Gt||(Gt=Ft),ha||(ha=[]);++Ka<no;){var bo=_e[Ka];Ve>0&&Gt(bo)?Ve>1?Gu(bo,Ve-1,Gt,fr,ha):Ti(ha,bo):fr||(ha[ha.length]=bo)}return ha}var Op=Yh(),np=Yh(!0);function $d(_e,Ve){return _e&&Op(_e,Ve,Qh)}function hd(_e,Ve){return _e&&np(_e,Ve,Qh)}function Ip(_e,Ve){return zn(Ve,function(Gt){return v_(_e[Gt])})}function dd(_e,Ve){Ve=Nf(Ve,_e);for(var Gt=0,fr=Ve.length;_e!=null&&Gt<fr;)_e=_e[Qu(Ve[Gt++])];return Gt&&Gt==fr?_e:g}function cr(_e,Ve,Gt){var fr=Ve(_e);return Cd(_e)?fr:Ti(fr,Gt(_e))}function un(_e){return _e==null?_e===g?St:wt:Sp&&Sp in ni(_e)?kl(_e):Wo(_e)}function Jn(_e,Ve){return _e>Ve}function Xn(_e,Ve){return _e!=null&&fl.call(_e,Ve)}function Vr(_e,Ve){return _e!=null&&Ve in ni(_e)}function Zn(_e,Ve,Gt){return _e>=Ro(Ve,Gt)&&_e<vo(Ve,Gt)}function pa(_e,Ve,Gt){for(var fr=Gt?Hr:Dr,ha=_e[0].length,Ka=_e.length,no=Ka,bo=_n(Ka),ls=Infinity,Bl=[];no--;){var $l=_e[no];no&&Ve&&($l=_a($l,Hc(Ve))),ls=Ro($l.length,ls),bo[no]=!Gt&&(Ve||ha>=120&&$l.length>=120)?new tr(no&&$l):g}$l=_e[0];var vc=-1,Fu=bo[0];e:for(;++vc<ha&&Bl.length<ls;){var Zf=$l[vc],nd=Ve?Ve(Zf):Zf;if(Zf=Gt||Zf!==0?Zf:0,!(Fu?ws(Fu,nd):fr(Bl,nd,Gt))){for(no=Ka;--no;){var Qd=bo[no];if(!(Qd?ws(Qd,nd):fr(_e[no],nd,Gt)))continue e}Fu&&Fu.push(nd),Bl.push(Zf)}}return Bl}function Ha(_e,Ve,Gt,fr){return $d(_e,function(ha,Ka,no){Ve(fr,Gt(ha),Ka,no)}),fr}function gi(_e,Ve,Gt){Ve=Nf(Ve,_e),_e=ys(_e,Ve);var fr=_e==null?_e:_e[Qu(Bi(Ve))];return fr==null?g:Rs(fr,_e,Gt)}function co(_e){return wp(_e)&&un(_e)==Ie}function No(_e){return wp(_e)&&un(_e)==Yt}function Ko(_e){return wp(_e)&&un(_e)==Fe}function Jo(_e,Ve,Gt,fr,ha){return _e===Ve?!0:_e==null||Ve==null||!wp(_e)&&!wp(Ve)?_e!==_e&&Ve!==Ve:gl(_e,Ve,Gt,fr,Jo,ha)}function gl(_e,Ve,Gt,fr,ha,Ka){var no=Cd(_e),bo=Cd(Ve),ls=no?Je:ll(_e),Bl=bo?Je:ll(Ve);ls=ls==Ie?Vt:ls,Bl=Bl==Ie?Vt:Bl;var $l=ls==Vt,vc=Bl==Vt,Fu=ls==Bl;if(Fu&&p_(_e)){if(!p_(Ve))return!1;no=!0,$l=!1}if(Fu&&!$l)return Ka||(Ka=new sa),no||N0(_e)?Ng(_e,Ve,Gt,fr,ha,Ka):O_(_e,Ve,ls,Gt,fr,ha,Ka);if(!(Gt&S)){var Zf=$l&&fl.call(_e,"__wrapped__"),nd=vc&&fl.call(Ve,"__wrapped__");if(Zf||nd){var Qd=Zf?_e.value():_e,Td=nd?Ve.value():Ve;return Ka||(Ka=new sa),ha(Qd,Td,Gt,fr,Ka)}}return Fu?(Ka||(Ka=new sa),e0(_e,Ve,Gt,fr,ha,Ka)):!1}function js(_e){return wp(_e)&&ll(_e)==Ke}function Zl(_e,Ve,Gt,fr){var ha=Gt.length,Ka=ha,no=!fr;if(_e==null)return!Ka;for(_e=ni(_e);ha--;){var bo=Gt[ha];if(no&&bo[2]?bo[1]!==_e[bo[0]]:!(bo[0]in _e))return!1}for(;++ha<Ka;){bo=Gt[ha];var ls=bo[0],Bl=_e[ls],$l=bo[1];if(no&&bo[2]){if(Bl===g&&!(ls in _e))return!1}else{var vc=new sa;if(fr)var Fu=fr(Bl,$l,ls,_e,Ve,vc);if(!(Fu===g?Jo($l,Bl,S|k,fr,vc):Fu))return!1}}return!0}function ko(_e){if(!zv(_e)||mr(_e))return!1;var Ve=v_(_e)?Ff:An;return Ve.test(Yd(_e))}function te(_e){return wp(_e)&&un(_e)==Le}function Me(_e){return wp(_e)&&ll(_e)==ct}function ft(_e){return wp(_e)&&D1(_e.length)&&!!Gr[un(_e)]}function Nt(_e){return typeof _e=="function"?_e:_e==null?bv:typeof _e=="object"?Cd(_e)?Hl(_e[0],_e[1]):Qs(_e):hx(_e)}function xn(_e){if(!Ir(_e))return so(_e);var Ve=[];for(var Gt in ni(_e))fl.call(_e,Gt)&&Gt!="constructor"&&Ve.push(Gt);return Ve}function Yr(_e){if(!zv(_e))return Yi(_e);var Ve=Ir(_e),Gt=[];for(var fr in _e)fr=="constructor"&&(Ve||!fl.call(_e,fr))||Gt.push(fr);return Gt}function qa(_e,Ve){return _e<Ve}function Es(_e,Ve){var Gt=-1,fr=zm(_e)?_n(_e.length):[];return Ic(_e,function(ha,Ka,no){fr[++Gt]=Ve(ha,Ka,no)}),fr}function Qs(_e){var Ve=Qi(_e);return Ve.length==1&&Ve[0][2]?xa(Ve[0][0],Ve[0][1]):function(Gt){return Gt===_e||Zl(Gt,_e,Ve)}}function Hl(_e,Ve){return It(_e)&&Br(Ve)?xa(Qu(_e),Ve):function(Gt){var fr=Z1(Gt,_e);return fr===g&&fr===Ve?DE(Gt,_e):Jo(Ve,fr,S|k)}}function Lc(_e,Ve,Gt,fr,ha){_e!==Ve&&Op(Ve,function(Ka,no){if(ha||(ha=new sa),zv(Ka))Pu(_e,Ve,no,Gt,Lc,fr,ha);else{var bo=fr?fr(uc(_e,no),Ka,no+"",_e,Ve,ha):g;bo===g&&(bo=Ka),ds(_e,no,bo)}},vm)}function Pu(_e,Ve,Gt,fr,ha,Ka,no){var bo=uc(_e,Gt),ls=uc(Ve,Gt),Bl=no.get(ls);if(Bl){ds(_e,Gt,Bl);return}var $l=Ka?Ka(bo,ls,Gt+"",_e,Ve,no):g,vc=$l===g;if(vc){var Fu=Cd(ls),Zf=!Fu&&p_(ls),nd=!Fu&&!Zf&&N0(ls);$l=ls,Fu||Zf||nd?Cd(bo)?$l=bo:Th(bo)?$l=Bv(bo):Zf?(vc=!1,$l=Sd(ls,!0)):nd?(vc=!1,$l=Yv(ls,!0)):$l=[]:jd(ls)||s0(ls)?($l=bo,s0(bo)?$l=sy(bo):(!zv(bo)||v_(bo))&&($l=Go(ls))):vc=!1}vc&&(no.set(ls,$l),ha($l,ls,fr,Ka,no),no.delete(ls)),ds(_e,Gt,$l)}function Yf(_e,Ve){var Gt=_e.length;if(!!Gt)return Ve+=Ve<0?Gt:0,je(Ve,Gt)?_e[Ve]:g}function yv(_e,Ve,Gt){Ve.length?Ve=_a(Ve,function(Ka){return Cd(Ka)?function(no){return dd(no,Ka.length===1?Ka[0]:Ka)}:Ka}):Ve=[bv];var fr=-1;Ve=_a(Ve,Hc(_o()));var ha=Es(_e,function(Ka,no,bo){var ls=_a(Ve,function(Bl){return Bl(Ka)});return{criteria:ls,index:++fr,value:Ka}});return yf(ha,function(Ka,no){return im(Ka,no,Gt)})}function Cp(_e,Ve){return kv(_e,Ve,function(Gt,fr){return DE(_e,fr)})}function kv(_e,Ve,Gt){for(var fr=-1,ha=Ve.length,Ka={};++fr<ha;){var no=Ve[fr],bo=dd(_e,no);Gt(bo,no)&&nh(Ka,Nf(no,_e),bo)}return Ka}function Nv(_e){return function(Ve){return dd(Ve,_e)}}function Pv(_e,Ve,Gt,fr){var ha=fr?dl:Ps,Ka=-1,no=Ve.length,bo=_e;for(_e===Ve&&(Ve=Bv(Ve)),Gt&&(bo=_a(_e,Hc(Gt)));++Ka<no;)for(var ls=0,Bl=Ve[Ka],$l=Gt?Gt(Bl):Bl;(ls=ha(bo,$l,ls,fr))>-1;)bo!==_e&&Vp.call(bo,ls,1),Vp.call(_e,ls,1);return _e}function sp(_e,Ve){for(var Gt=_e?Ve.length:0,fr=Gt-1;Gt--;){var ha=Ve[Gt];if(Gt==fr||ha!==Ka){var Ka=ha;je(ha)?Vp.call(_e,ha,1):Am(_e,ha)}}return _e}function Wp(_e,Ve){return _e+Wn(ul()*(Ve-_e+1))}function $h(_e,Ve,Gt,fr){for(var ha=-1,Ka=vo(Af((Ve-_e)/(Gt||1)),0),no=_n(Ka);Ka--;)no[fr?Ka:++ha]=_e,_e+=Gt;return no}function Hf(_e,Ve){var Gt="";if(!_e||Ve<1||Ve>ce)return Gt;do Ve%2&&(Gt+=_e),Ve=Wn(Ve/2),Ve&&(_e+=_e);while(Ve);return Gt}function Qc(_e,Ve){return Ef(_s(_e,Ve,bv),_e+"")}function bp(_e){return xo(B0(_e))}function cv(_e,Ve){var Gt=B0(_e);return id(Gt,Xu(Ve,0,Gt.length))}function nh(_e,Ve,Gt,fr){if(!zv(_e))return _e;Ve=Nf(Ve,_e);for(var ha=-1,Ka=Ve.length,no=Ka-1,bo=_e;bo!=null&&++ha<Ka;){var ls=Qu(Ve[ha]),Bl=Gt;if(ls==="__proto__"||ls==="constructor"||ls==="prototype")return _e;if(ha!=no){var $l=bo[ls];Bl=fr?fr($l,ls,bo):g,Bl===g&&(Bl=zv($l)?$l:je(Ve[ha+1])?[]:{})}nl(bo,ls,Bl),bo=bo[ls]}return _e}var Kv=Xr?function(_e,Ve){return Xr.set(_e,Ve),_e}:bv,am=tp?function(_e,Ve){return tp(_e,"toString",{configurable:!0,enumerable:!1,value:G1(Ve),writable:!0})}:bv;function Nh(_e){return id(B0(_e))}function Lp(_e,Ve,Gt){var fr=-1,ha=_e.length;Ve<0&&(Ve=-Ve>ha?0:ha+Ve),Gt=Gt>ha?ha:Gt,Gt<0&&(Gt+=ha),ha=Ve>Gt?0:Gt-Ve>>>0,Ve>>>=0;for(var Ka=_n(ha);++fr<ha;)Ka[fr]=_e[fr+Ve];return Ka}function sh(_e,Ve){var Gt;return Ic(_e,function(fr,ha,Ka){return Gt=Ve(fr,ha,Ka),!Gt}),!!Gt}function Lh(_e,Ve,Gt){var fr=0,ha=_e==null?fr:_e.length;if(typeof Ve=="number"&&Ve===Ve&&ha<=Pe){for(;fr<ha;){var Ka=fr+ha>>>1,no=_e[Ka];no!==null&&!Bg(no)&&(Gt?no<=Ve:no<Ve)?fr=Ka+1:ha=Ka}return ha}return mh(_e,Ve,bv,Gt)}function mh(_e,Ve,Gt,fr){var ha=0,Ka=_e==null?0:_e.length;if(Ka===0)return 0;Ve=Gt(Ve);for(var no=Ve!==Ve,bo=Ve===null,ls=Bg(Ve),Bl=Ve===g;ha<Ka;){var $l=Wn((ha+Ka)/2),vc=Gt(_e[$l]),Fu=vc!==g,Zf=vc===null,nd=vc===vc,Qd=Bg(vc);if(no)var Td=fr||nd;else Bl?Td=nd&&(fr||Fu):bo?Td=nd&&Fu&&(fr||!Zf):ls?Td=nd&&Fu&&!Zf&&(fr||!Qd):Zf||Qd?Td=!1:Td=fr?vc<=Ve:vc<Ve;Td?ha=$l+1:Ka=$l}return Ro(Ka,me)}function fm(_e,Ve){for(var Gt=-1,fr=_e.length,ha=0,Ka=[];++Gt<fr;){var no=_e[Gt],bo=Ve?Ve(no):no;if(!Gt||!Vv(bo,ls)){var ls=bo;Ka[ha++]=no===0?0:no}}return Ka}function rh(_e){return typeof _e=="number"?_e:Bg(_e)?fe:+_e}function Fp(_e){if(typeof _e=="string")return _e;if(Cd(_e))return _a(_e,Fp)+"";if(Bg(_e))return Fs?Fs.call(_e):"";var Ve=_e+"";return Ve=="0"&&1/_e==-Ee?"-0":Ve}function gh(_e,Ve,Gt){var fr=-1,ha=Dr,Ka=_e.length,no=!0,bo=[],ls=bo;if(Gt)no=!1,ha=Hr;else if(Ka>=y){var Bl=Ve?null:ch(_e);if(Bl)return Tf(Bl);no=!1,ha=ws,ls=new tr}else ls=Ve?[]:bo;e:for(;++fr<Ka;){var $l=_e[fr],vc=Ve?Ve($l):$l;if($l=Gt||$l!==0?$l:0,no&&vc===vc){for(var Fu=ls.length;Fu--;)if(ls[Fu]===vc)continue e;Ve&&ls.push(vc),bo.push($l)}else ha(ls,vc,Gt)||(ls!==bo&&ls.push(vc),bo.push($l))}return bo}function Am(_e,Ve){return Ve=Nf(Ve,_e),_e=ys(_e,Ve),_e==null||delete _e[Qu(Bi(Ve))]}function rc(_e,Ve,Gt,fr){return nh(_e,Ve,Gt(dd(_e,Ve)),fr)}function wl(_e,Ve,Gt,fr){for(var ha=_e.length,Ka=fr?ha:-1;(fr?Ka--:++Ka<ha)&&Ve(_e[Ka],Ka,_e););return Gt?Lp(_e,fr?0:Ka,fr?Ka+1:ha):Lp(_e,fr?Ka+1:0,fr?ha:Ka)}function Sl(_e,Ve){var Gt=_e;return Gt instanceof os&&(Gt=Gt.value()),Ci(Ve,function(fr,ha){return ha.func.apply(ha.thisArg,Ti([fr],ha.args))},Gt)}function Ac(_e,Ve,Gt){var fr=_e.length;if(fr<2)return fr?gh(_e[0]):[];for(var ha=-1,Ka=_n(fr);++ha<fr;)for(var no=_e[ha],bo=-1;++bo<fr;)bo!=ha&&(Ka[ha]=td(Ka[ha]||no,_e[bo],Ve,Gt));return gh(Gu(Ka,1),Ve,Gt)}function Ju(_e,Ve,Gt){for(var fr=-1,ha=_e.length,Ka=Ve.length,no={};++fr<ha;){var bo=fr<Ka?Ve[fr]:g;Gt(no,_e[fr],bo)}return no}function Bc(_e){return Th(_e)?_e:[]}function $u(_e){return typeof _e=="function"?_e:bv}function Nf(_e,Ve){return Cd(_e)?_e:It(_e,Ve)?[_e]:yd(nu(_e))}var Ou=Qc;function Lf(_e,Ve,Gt){var fr=_e.length;return Gt=Gt===g?fr:Gt,!Ve&&Gt>=fr?_e:Lp(_e,Ve,Gt)}var Mf=Rp||function(_e){return Za.clearTimeout(_e)};function Sd(_e,Ve){if(Ve)return _e.slice();var Gt=_e.length,fr=Wu?Wu(Gt):new _e.constructor(Gt);return _e.copy(fr),fr}function jv(_e){var Ve=new _e.constructor(_e.byteLength);return new Sc(Ve).set(new Sc(_e)),Ve}function uv(_e,Ve){var Gt=Ve?jv(_e.buffer):_e.buffer;return new _e.constructor(Gt,_e.byteOffset,_e.byteLength)}function Fh(_e){var Ve=new _e.constructor(_e.source,Zt.exec(_e));return Ve.lastIndex=_e.lastIndex,Ve}function fv(_e){return as?ni(as.call(_e)):{}}function Yv(_e,Ve){var Gt=Ve?jv(_e.buffer):_e.buffer;return new _e.constructor(Gt,_e.byteOffset,_e.length)}function wh(_e,Ve){if(_e!==Ve){var Gt=_e!==g,fr=_e===null,ha=_e===_e,Ka=Bg(_e),no=Ve!==g,bo=Ve===null,ls=Ve===Ve,Bl=Bg(Ve);if(!bo&&!Bl&&!Ka&&_e>Ve||Ka&&no&&ls&&!bo&&!Bl||fr&&no&&ls||!Gt&&ls||!ha)return 1;if(!fr&&!Ka&&!Bl&&_e<Ve||Bl&&Gt&&ha&&!fr&&!Ka||bo&&Gt&&ha||!no&&ha||!ls)return-1}return 0}function im(_e,Ve,Gt){for(var fr=-1,ha=_e.criteria,Ka=Ve.criteria,no=ha.length,bo=Gt.length;++fr<no;){var ls=wh(ha[fr],Ka[fr]);if(ls){if(fr>=bo)return ls;var Bl=Gt[fr];return ls*(Bl=="desc"?-1:1)}}return _e.index-Ve.index}function fg(_e,Ve,Gt,fr){for(var ha=-1,Ka=_e.length,no=Gt.length,bo=-1,ls=Ve.length,Bl=vo(Ka-no,0),$l=_n(ls+Bl),vc=!fr;++bo<ls;)$l[bo]=Ve[bo];for(;++ha<no;)(vc||ha<Ka)&&($l[Gt[ha]]=_e[ha]);for(;Bl--;)$l[bo++]=_e[ha++];return $l}function _h(_e,Ve,Gt,fr){for(var ha=-1,Ka=_e.length,no=-1,bo=Gt.length,ls=-1,Bl=Ve.length,$l=vo(Ka-bo,0),vc=_n($l+Bl),Fu=!fr;++ha<$l;)vc[ha]=_e[ha];for(var Zf=ha;++ls<Bl;)vc[Zf+ls]=Ve[ls];for(;++no<bo;)(Fu||ha<Ka)&&(vc[Zf+Gt[no]]=_e[ha++]);return vc}function Bv(_e,Ve){var Gt=-1,fr=_e.length;for(Ve||(Ve=_n(fr));++Gt<fr;)Ve[Gt]=_e[Gt];return Ve}function ah(_e,Ve,Gt,fr){var ha=!Gt;Gt||(Gt={});for(var Ka=-1,no=Ve.length;++Ka<no;){var bo=Ve[Ka],ls=fr?fr(Gt[bo],_e[bo],bo,Gt,_e):g;ls===g&&(ls=_e[bo]),ha?Ll(Gt,bo,ls):nl(Gt,bo,ls)}return Gt}function om(_e,Ve){return ah(_e,yl(_e),Ve)}function Og(_e,Ve){return ah(_e,Tl(_e),Ve)}function Kh(_e,Ve){return function(Gt,fr){var ha=Cd(Gt)?xl:Kl,Ka=Ve?Ve():{};return ha(Gt,_e,_o(fr,2),Ka)}}function Dp(_e){return Qc(function(Ve,Gt){var fr=-1,ha=Gt.length,Ka=ha>1?Gt[ha-1]:g,no=ha>2?Gt[2]:g;for(Ka=_e.length>3&&typeof Ka=="function"?(ha--,Ka):g,no&&yt(Gt[0],Gt[1],no)&&(Ka=ha<3?g:Ka,ha=1),Ve=ni(Ve);++fr<ha;){var bo=Gt[fr];bo&&_e(Ve,bo,fr,Ka)}return Ve})}function Hp(_e,Ve){return function(Gt,fr){if(Gt==null)return Gt;if(!zm(Gt))return _e(Gt,fr);for(var ha=Gt.length,Ka=Ve?ha:-1,no=ni(Gt);(Ve?Ka--:++Ka<ha)&&fr(no[Ka],Ka,no)!==!1;);return Gt}}function Yh(_e){return function(Ve,Gt,fr){for(var ha=-1,Ka=ni(Ve),no=fr(Ve),bo=no.length;bo--;){var ls=no[_e?bo:++ha];if(Gt(Ka[ls],ls,Ka)===!1)break}return Ve}}function ev(_e,Ve,Gt){var fr=Ve&O,ha=vf(_e);function Ka(){var no=this&&this!==Za&&this instanceof Ka?ha:_e;return no.apply(fr?Gt:this,arguments)}return Ka}function Kd(_e){return function(Ve){Ve=nu(Ve);var Gt=zu(Ve)?eu(Ve):g,fr=Gt?Gt[0]:Ve.charAt(0),ha=Gt?Lf(Gt,1).join(""):Ve.slice(1);return fr[_e]()+ha}}function jp(_e){return function(Ve){return Ci(d0(Vy(Ve).replace(vl,"")),_e,"")}}function vf(_e){return function(){var Ve=arguments;switch(Ve.length){case 0:return new _e;case 1:return new _e(Ve[0]);case 2:return new _e(Ve[0],Ve[1]);case 3:return new _e(Ve[0],Ve[1],Ve[2]);case 4:return new _e(Ve[0],Ve[1],Ve[2],Ve[3]);case 5:return new _e(Ve[0],Ve[1],Ve[2],Ve[3],Ve[4]);case 6:return new _e(Ve[0],Ve[1],Ve[2],Ve[3],Ve[4],Ve[5]);case 7:return new _e(Ve[0],Ve[1],Ve[2],Ve[3],Ve[4],Ve[5],Ve[6])}var Gt=tl(_e.prototype),fr=_e.apply(Gt,Ve);return zv(fr)?fr:Gt}}function tv(_e,Ve,Gt){var fr=vf(_e);function ha(){for(var Ka=arguments.length,no=_n(Ka),bo=Ka,ls=To(ha);bo--;)no[bo]=arguments[bo];var Bl=Ka<3&&no[0]!==ls&&no[Ka-1]!==ls?[]:Bu(no,ls);if(Ka-=Bl.length,Ka<Gt)return Jm(_e,Ve,lh,ha.placeholder,g,no,Bl,g,g,Gt-Ka);var $l=this&&this!==Za&&this instanceof ha?fr:_e;return Rs($l,this,no)}return ha}function Xv(_e){return function(Ve,Gt,fr){var ha=ni(Ve);if(!zm(Ve)){var Ka=_o(Gt,3);Ve=Qh(Ve),Gt=function(bo){return Ka(ha[bo],bo,ha)}}var no=_e(Ve,Gt,fr);return no>-1?ha[Ka?Ve[no]:no]:g}}function nv(_e){return pm(function(Ve){var Gt=Ve.length,fr=Gt,ha=Us.prototype.thru;for(_e&&Ve.reverse();fr--;){var Ka=Ve[fr];if(typeof Ka!="function")throw new is(w);if(ha&&!no&&bi(Ka)=="wrapper")var no=new Us([],!0)}for(fr=no?fr:Gt;++fr<Gt;){Ka=Ve[fr];var bo=bi(Ka),ls=bo=="wrapper"?ea(Ka):g;ls&&In(ls[0])&&ls[1]==(V|Z|U|$)&&!ls[4].length&&ls[9]==1?no=no[bi(ls[0])].apply(no,ls[3]):no=Ka.length==1&&In(Ka)?no[bo]():no.thru(Ka)}return function(){var Bl=arguments,$l=Bl[0];if(no&&Bl.length==1&&Cd($l))return no.plant($l).value();for(var vc=0,Fu=Gt?Ve[vc].apply(this,Bl):$l;++vc<Gt;)Fu=Ve[vc].call(this,Fu);return Fu}})}function lh(_e,Ve,Gt,fr,ha,Ka,no,bo,ls,Bl){var $l=Ve&V,vc=Ve&O,Fu=Ve&F,Zf=Ve&(Z|W),nd=Ve&G,Qd=Fu?g:vf(_e);function Td(){for(var Ap=arguments.length,hp=_n(Ap),Zg=Ap;Zg--;)hp[Zg]=arguments[Zg];if(Zf)var Hm=To(Td),mg=jc(hp,Hm);if(fr&&(hp=fg(hp,fr,ha,Zf)),Ka&&(hp=_h(hp,Ka,no,Zf)),Ap-=mg,Zf&&Ap<Bl){var xh=Bu(hp,Hm);return Jm(_e,Ve,lh,Td.placeholder,Gt,hp,xh,bo,ls,Bl-Ap)}var hm=vc?Gt:this,gg=Fu?hm[_e]:_e;return Ap=hp.length,bo?hp=qs(hp,bo):nd&&Ap>1&&hp.reverse(),$l&&ls<Ap&&(hp.length=ls),this&&this!==Za&&this instanceof Td&&(gg=Qd||vf(gg)),gg.apply(hm,hp)}return Td}function Bp(_e,Ve){return function(Gt,fr){return Ha(Gt,_e,Ve(fr),{})}}function Uv(_e,Ve){return function(Gt,fr){var ha;if(Gt===g&&fr===g)return Ve;if(Gt!==g&&(ha=Gt),fr!==g){if(ha===g)return fr;typeof Gt=="string"||typeof fr=="string"?(Gt=Fp(Gt),fr=Fp(fr)):(Gt=rh(Gt),fr=rh(fr)),ha=_e(Gt,fr)}return ha}}function dv(_e){return pm(function(Ve){return Ve=_a(Ve,Hc(_o())),Qc(function(Gt){var fr=this;return _e(Ve,function(ha){return Rs(ha,fr,Gt)})})})}function Ig(_e,Ve){Ve=Ve===g?" ":Fp(Ve);var Gt=Ve.length;if(Gt<2)return Gt?Hf(Ve,_e):Ve;var fr=Hf(Ve,Af(_e/Nc(Ve)));return zu(Ve)?Lf(eu(fr),0,_e).join(""):fr.slice(0,_e)}function Mm(_e,Ve,Gt,fr){var ha=Ve&O,Ka=vf(_e);function no(){for(var bo=-1,ls=arguments.length,Bl=-1,$l=fr.length,vc=_n($l+ls),Fu=this&&this!==Za&&this instanceof no?Ka:_e;++Bl<$l;)vc[Bl]=fr[Bl];for(;ls--;)vc[Bl++]=arguments[++bo];return Rs(Fu,ha?Gt:this,vc)}return no}function dg(_e){return function(Ve,Gt,fr){return fr&&typeof fr!="number"&&yt(Ve,Gt,fr)&&(Gt=fr=g),Ve=N_(Ve),Gt===g?(Gt=Ve,Ve=0):Gt=N_(Gt),fr=fr===g?Ve<Gt?1:-1:N_(fr),$h(Ve,Gt,fr,_e)}}function dm(_e){return function(Ve,Gt){return typeof Ve=="string"&&typeof Gt=="string"||(Ve=Ug(Ve),Gt=Ug(Gt)),_e(Ve,Gt)}}function Jm(_e,Ve,Gt,fr,ha,Ka,no,bo,ls,Bl){var $l=Ve&Z,vc=$l?no:g,Fu=$l?g:no,Zf=$l?Ka:g,nd=$l?g:Ka;Ve|=$l?U:L,Ve&=~($l?L:U),Ve&D||(Ve&=~(O|F));var Qd=[_e,Ve,ha,Zf,vc,nd,Fu,bo,ls,Bl],Td=Gt.apply(g,Qd);return In(_e)&&du(Td,Qd),Td.placeholder=fr,Ru(Td,_e,Ve)}function o_(_e){var Ve=oi[_e];return function(Gt,fr){if(Gt=Ug(Gt),fr=fr==null?0:Ro(up(fr),292),fr&&Na(Gt)){var ha=(nu(Gt)+"e").split("e"),Ka=Ve(ha[0]+"e"+(+ha[1]+fr));return ha=(nu(Ka)+"e").split("e"),+(ha[0]+"e"+(+ha[1]-fr))}return Ve(Gt)}}var ch=$s&&1/Tf(new $s([,-0]))[1]==Ee?function(_e){return new $s(_e)}:px;function pg(_e){return function(Ve){var Gt=ll(Ve);return Gt==Ke?Cu(Ve):Gt==ct?ed(Ve):Zu(Ve,_e(Ve))}}function yh(_e,Ve,Gt,fr,ha,Ka,no,bo){var ls=Ve&F;if(!ls&&typeof _e!="function")throw new is(w);var Bl=fr?fr.length:0;if(Bl||(Ve&=~(U|L),fr=ha=g),no=no===g?no:vo(up(no),0),bo=bo===g?bo:up(bo),Bl-=ha?ha.length:0,Ve&L){var $l=fr,vc=ha;fr=ha=g}var Fu=ls?g:ea(_e),Zf=[_e,Ve,Gt,fr,ha,$l,vc,Ka,no,bo];if(Fu&&Ai(Zf,Fu),_e=Zf[0],Ve=Zf[1],Gt=Zf[2],fr=Zf[3],ha=Zf[4],bo=Zf[9]=Zf[9]===g?ls?0:_e.length:vo(Zf[9]-Bl,0),!bo&&Ve&(Z|W)&&(Ve&=~(Z|W)),!Ve||Ve==O)var nd=ev(_e,Ve,Gt);else Ve==Z||Ve==W?nd=tv(_e,Ve,bo):(Ve==U||Ve==(O|U))&&!ha.length?nd=Mm(_e,Ve,Gt,fr):nd=lh.apply(g,Zf);var Qd=Fu?Kv:du;return Ru(Qd(nd,Zf),_e,Ve)}function vg(_e,Ve,Gt,fr){return _e===g||Vv(_e,yc[Gt])&&!fl.call(fr,Gt)?Ve:_e}function Dg(_e,Ve,Gt,fr,ha,Ka){return zv(_e)&&zv(Ve)&&(Ka.set(Ve,_e),Lc(_e,Ve,g,Dg,Ka),Ka.delete(Ve)),_e}function km(_e){return jd(_e)?g:_e}function Ng(_e,Ve,Gt,fr,ha,Ka){var no=Gt&S,bo=_e.length,ls=Ve.length;if(bo!=ls&&!(no&&ls>bo))return!1;var Bl=Ka.get(_e),$l=Ka.get(Ve);if(Bl&&$l)return Bl==Ve&&$l==_e;var vc=-1,Fu=!0,Zf=Gt&k?new tr:g;for(Ka.set(_e,Ve),Ka.set(Ve,_e);++vc<bo;){var nd=_e[vc],Qd=Ve[vc];if(fr)var Td=no?fr(Qd,nd,vc,Ve,_e,Ka):fr(nd,Qd,vc,_e,Ve,Ka);if(Td!==g){if(Td)continue;Fu=!1;break}if(Zf){if(!Da(Ve,function(Ap,hp){if(!ws(Zf,hp)&&(nd===Ap||ha(nd,Ap,Gt,fr,Ka)))return Zf.push(hp)})){Fu=!1;break}}else if(!(nd===Qd||ha(nd,Qd,Gt,fr,Ka))){Fu=!1;break}}return Ka.delete(_e),Ka.delete(Ve),Fu}function O_(_e,Ve,Gt,fr,ha,Ka,no){switch(Gt){case Rt:if(_e.byteLength!=Ve.byteLength||_e.byteOffset!=Ve.byteOffset)return!1;_e=_e.buffer,Ve=Ve.buffer;case Yt:return!(_e.byteLength!=Ve.byteLength||!Ka(new Sc(_e),new Sc(Ve)));case De:case Fe:case Ge:return Vv(+_e,+Ve);case qe:return _e.name==Ve.name&&_e.message==Ve.message;case Le:case at:return _e==Ve+"";case Ke:var bo=Cu;case ct:var ls=fr&S;if(bo||(bo=Tf),_e.size!=Ve.size&&!ls)return!1;var Bl=no.get(_e);if(Bl)return Bl==Ve;fr|=k,no.set(_e,Ve);var $l=Ng(bo(_e),bo(Ve),fr,ha,Ka,no);return no.delete(_e),$l;case jt:if(as)return as.call(_e)==as.call(Ve)}return!1}function e0(_e,Ve,Gt,fr,ha,Ka){var no=Gt&S,bo=Lg(_e),ls=bo.length,Bl=Lg(Ve),$l=Bl.length;if(ls!=$l&&!no)return!1;for(var vc=ls;vc--;){var Fu=bo[vc];if(!(no?Fu in Ve:fl.call(Ve,Fu)))return!1}var Zf=Ka.get(_e),nd=Ka.get(Ve);if(Zf&&nd)return Zf==Ve&&nd==_e;var Qd=!0;Ka.set(_e,Ve),Ka.set(Ve,_e);for(var Td=no;++vc<ls;){Fu=bo[vc];var Ap=_e[Fu],hp=Ve[Fu];if(fr)var Zg=no?fr(hp,Ap,Fu,Ve,_e,Ka):fr(Ap,hp,Fu,_e,Ve,Ka);if(!(Zg===g?Ap===hp||ha(Ap,hp,Gt,fr,Ka):Zg)){Qd=!1;break}Td||(Td=Fu=="constructor")}if(Qd&&!Td){var Hm=_e.constructor,mg=Ve.constructor;Hm!=mg&&"constructor"in _e&&"constructor"in Ve&&!(typeof Hm=="function"&&Hm instanceof Hm&&typeof mg=="function"&&mg instanceof mg)&&(Qd=!1)}return Ka.delete(_e),Ka.delete(Ve),Qd}function pm(_e){return Ef(_s(_e,g,ri),_e+"")}function Lg(_e){return cr(_e,Qh,yl)}function $r(_e){return cr(_e,vm,Tl)}var ea=Xr?function(_e){return Xr.get(_e)}:px;function bi(_e){for(var Ve=_e.name+"",Gt=la[Ve],fr=fl.call(la,Ve)?Gt.length:0;fr--;){var ha=Gt[fr],Ka=ha.func;if(Ka==null||Ka==_e)return ha.name}return Ve}function To(_e){var Ve=fl.call(Fr,"placeholder")?Fr:_e;return Ve.placeholder}function _o(){var _e=Fr.iteratee||bh;return _e=_e===bh?Nt:_e,arguments.length?_e(arguments[0],arguments[1]):_e}function Ss(_e,Ve){var Gt=_e.__data__;return Sn(Ve)?Gt[typeof Ve=="string"?"string":"hash"]:Gt.map}function Qi(_e){for(var Ve=Qh(_e),Gt=Ve.length;Gt--;){var fr=Ve[Gt],ha=_e[fr];Ve[Gt]=[fr,ha,Br(ha)]}return Ve}function Ns(_e,Ve){var Gt=uu(_e,Ve);return ko(Gt)?Gt:g}function kl(_e){var Ve=fl.call(_e,Sp),Gt=_e[Sp];try{_e[Sp]=g;var fr=!0}catch(Ka){}var ha=Ms.call(_e);return fr&&(Ve?_e[Sp]=Gt:delete _e[Sp]),ha}var yl=ca?function(_e){return _e==null?[]:(_e=ni(_e),zn(ca(_e),function(Ve){return gf.call(_e,Ve)}))}:gx,Tl=ca?function(_e){for(var Ve=[];_e;)Ti(Ve,yl(_e)),_e=Du(_e);return Ve}:gx,ll=un;(lo&&ll(new lo(new ArrayBuffer(1)))!=Rt||Zs&&ll(new Zs)!=Ke||Gs&&ll(Gs.resolve())!=gt||$s&&ll(new $s)!=ct||Qn&&ll(new Qn)!=fn)&&(ll=function(_e){var Ve=un(_e),Gt=Ve==Vt?_e.constructor:g,fr=Gt?Yd(Gt):"";if(fr)switch(fr){case Ra:return Rt;case _i:return Ke;case ui:return gt;case ho:return ct;case Oi:return fn}return Ve});function ac(_e,Ve,Gt){for(var fr=-1,ha=Gt.length;++fr<ha;){var Ka=Gt[fr],no=Ka.size;switch(Ka.type){case"drop":_e+=no;break;case"dropRight":Ve-=no;break;case"take":Ve=Ro(Ve,_e+no);break;case"takeRight":_e=vo(_e,Ve-no);break}}return{start:_e,end:Ve}}function Xl(_e){var Ve=_e.match(kt);return Ve?Ve[1].split(lt):[]}function Ol(_e,Ve,Gt){Ve=Nf(Ve,_e);for(var fr=-1,ha=Ve.length,Ka=!1;++fr<ha;){var no=Qu(Ve[fr]);if(!(Ka=_e!=null&&Gt(_e,no)))break;_e=_e[no]}return Ka||++fr!=ha?Ka:(ha=_e==null?0:_e.length,!!ha&&D1(ha)&&je(no,ha)&&(Cd(_e)||s0(_e)))}function es(_e){var Ve=_e.length,Gt=new _e.constructor(Ve);return Ve&&typeof _e[0]=="string"&&fl.call(_e,"index")&&(Gt.index=_e.index,Gt.input=_e.input),Gt}function Go(_e){return typeof _e.constructor=="function"&&!Ir(_e)?tl(Du(_e)):{}}function Yo(_e,Ve,Gt){var fr=_e.constructor;switch(Ve){case Yt:return jv(_e);case De:case Fe:return new fr(+_e);case Rt:return uv(_e,Gt);case Lt:case ze:case rt:case tt:case de:case ot:case Et:case Ht:case Jt:return Yv(_e,Gt);case Ke:return new fr;case Ge:case at:return new fr(_e);case Le:return Fh(_e);case ct:return new fr;case jt:return fv(_e)}}function Ec(_e,Ve){var Gt=Ve.length;if(!Gt)return _e;var fr=Gt-1;return Ve[fr]=(Gt>1?"& ":"")+Ve[fr],Ve=Ve.join(Gt>2?", ":" "),_e.replace($e,`{
|
||
/* [wrapped with `+Ve+`] */
|
||
`)}function Ft(_e){return Cd(_e)||s0(_e)||!!($c&&_e&&_e[$c])}function je(_e,Ve){var Gt=typeof _e;return Ve=Ve==null?ce:Ve,!!Ve&&(Gt=="number"||Gt!="symbol"&&Gn.test(_e))&&_e>-1&&_e%1==0&&_e<Ve}function yt(_e,Ve,Gt){if(!zv(Gt))return!1;var fr=typeof Ve;return(fr=="number"?zm(Gt)&&je(Ve,Gt.length):fr=="string"&&Ve in Gt)?Vv(Gt[Ve],_e):!1}function It(_e,Ve){if(Cd(_e))return!1;var Gt=typeof _e;return Gt=="number"||Gt=="symbol"||Gt=="boolean"||_e==null||Bg(_e)?!0:ut.test(_e)||!Hn.test(_e)||Ve!=null&&_e in ni(Ve)}function Sn(_e){var Ve=typeof _e;return Ve=="string"||Ve=="number"||Ve=="symbol"||Ve=="boolean"?_e!=="__proto__":_e===null}function In(_e){var Ve=bi(_e),Gt=Fr[Ve];if(typeof Gt!="function"||!(Ve in os.prototype))return!1;if(_e===Gt)return!0;var fr=ea(Gt);return!!fr&&_e===fr[0]}function mr(_e){return!!Rf&&Rf in _e}var Wr=oa?v_:J1;function Ir(_e){var Ve=_e&&_e.constructor,Gt=typeof Ve=="function"&&Ve.prototype||yc;return _e===Gt}function Br(_e){return _e===_e&&!zv(_e)}function xa(_e,Ve){return function(Gt){return Gt==null?!1:Gt[_e]===Ve&&(Ve!==g||_e in ni(Gt))}}function vi(_e){var Ve=jy(_e,function(fr){return Gt.size===v&&Gt.clear(),fr}),Gt=Ve.cache;return Ve}function Ai(_e,Ve){var Gt=_e[1],fr=Ve[1],ha=Gt|fr,Ka=ha<(O|F|V),no=fr==V&&Gt==Z||fr==V&&Gt==$&&_e[7].length<=Ve[8]||fr==(V|$)&&Ve[7].length<=Ve[8]&&Gt==Z;if(!(Ka||no))return _e;fr&O&&(_e[2]=Ve[2],ha|=Gt&O?0:D);var bo=Ve[3];if(bo){var ls=_e[3];_e[3]=ls?fg(ls,bo,Ve[4]):bo,_e[4]=ls?Bu(_e[3],h):Ve[4]}return bo=Ve[5],bo&&(ls=_e[5],_e[5]=ls?_h(ls,bo,Ve[6]):bo,_e[6]=ls?Bu(_e[5],h):Ve[6]),bo=Ve[7],bo&&(_e[7]=bo),fr&V&&(_e[8]=_e[8]==null?Ve[8]:Ro(_e[8],Ve[8])),_e[9]==null&&(_e[9]=Ve[9]),_e[0]=Ve[0],_e[1]=ha,_e}function Yi(_e){var Ve=[];if(_e!=null)for(var Gt in ni(_e))Ve.push(Gt);return Ve}function Wo(_e){return Ms.call(_e)}function _s(_e,Ve,Gt){return Ve=vo(Ve===g?_e.length-1:Ve,0),function(){for(var fr=arguments,ha=-1,Ka=vo(fr.length-Ve,0),no=_n(Ka);++ha<Ka;)no[ha]=fr[Ve+ha];ha=-1;for(var bo=_n(Ve+1);++ha<Ve;)bo[ha]=fr[ha];return bo[Ve]=Gt(no),Rs(_e,this,bo)}}function ys(_e,Ve){return Ve.length<2?_e:dd(_e,Lp(Ve,0,-1))}function qs(_e,Ve){for(var Gt=_e.length,fr=Ro(Ve.length,Gt),ha=Bv(_e);fr--;){var Ka=Ve[fr];_e[fr]=je(Ka,Gt)?ha[Ka]:g}return _e}function uc(_e,Ve){if(!(Ve==="constructor"&&typeof _e[Ve]=="function")&&Ve!="__proto__")return _e[Ve]}var du=_d(Kv),Pc=uf||function(_e,Ve){return Za.setTimeout(_e,Ve)},Ef=_d(am);function Ru(_e,Ve,Gt){var fr=Ve+"";return Ef(_e,Ec(fr,Xd(Xl(fr),Gt)))}function _d(_e){var Ve=0,Gt=0;return function(){var fr=So(),ha=ne-(fr-Gt);if(Gt=fr,ha>0){if(++Ve>=re)return arguments[0]}else Ve=0;return _e.apply(g,arguments)}}function id(_e,Ve){var Gt=-1,fr=_e.length,ha=fr-1;for(Ve=Ve===g?fr:Ve;++Gt<Ve;){var Ka=Wp(Gt,ha),no=_e[Ka];_e[Ka]=_e[Gt],_e[Gt]=no}return _e.length=Ve,_e}var yd=vi(function(_e){var Ve=[];return _e.charCodeAt(0)===46&&Ve.push(""),_e.replace(bt,function(Gt,fr,ha,Ka){Ve.push(ha?Ka.replace(Bt,"$1"):fr||Gt)}),Ve});function Qu(_e){if(typeof _e=="string"||Bg(_e))return _e;var Ve=_e+"";return Ve=="0"&&1/_e==-Ee?"-0":Ve}function Yd(_e){if(_e!=null){try{return sl.call(_e)}catch(Ve){}try{return _e+""}catch(Ve){}}return""}function Xd(_e,Ve){return Wl(pe,function(Gt){var fr="_."+Gt[0];Ve&Gt[1]&&!Dr(_e,fr)&&_e.push(fr)}),_e.sort()}function Sf(_e){if(_e instanceof os)return _e.clone();var Ve=new Us(_e.__wrapped__,_e.__chain__);return Ve.__actions__=Bv(_e.__actions__),Ve.__index__=_e.__index__,Ve.__values__=_e.__values__,Ve}function Bf(_e,Ve,Gt){(Gt?yt(_e,Ve,Gt):Ve===g)?Ve=1:Ve=vo(up(Ve),0);var fr=_e==null?0:_e.length;if(!fr||Ve<1)return[];for(var ha=0,Ka=0,no=_n(Af(fr/Ve));ha<fr;)no[Ka++]=Lp(_e,ha,ha+=Ve);return no}function cd(_e){for(var Ve=-1,Gt=_e==null?0:_e.length,fr=0,ha=[];++Ve<Gt;){var Ka=_e[Ve];Ka&&(ha[fr++]=Ka)}return ha}function qu(){var _e=arguments.length;if(!_e)return[];for(var Ve=_n(_e-1),Gt=arguments[0],fr=_e;fr--;)Ve[fr-1]=arguments[fr];return Ti(Cd(Gt)?Bv(Gt):[Gt],Gu(Ve,1))}var Nu=Qc(function(_e,Ve){return Th(_e)?td(_e,Gu(Ve,1,Th,!0)):[]}),Id=Qc(function(_e,Ve){var Gt=Bi(Ve);return Th(Gt)&&(Gt=g),Th(_e)?td(_e,Gu(Ve,1,Th,!0),_o(Gt,2)):[]}),Ev=Qc(function(_e,Ve){var Gt=Bi(Ve);return Th(Gt)&&(Gt=g),Th(_e)?td(_e,Gu(Ve,1,Th,!0),g,Gt):[]});function Rv(_e,Ve,Gt){var fr=_e==null?0:_e.length;return fr?(Ve=Gt||Ve===g?1:up(Ve),Lp(_e,Ve<0?0:Ve,fr)):[]}function s_(_e,Ve,Gt){var fr=_e==null?0:_e.length;return fr?(Ve=Gt||Ve===g?1:up(Ve),Ve=fr-Ve,Lp(_e,0,Ve<0?0:Ve)):[]}function wi(_e,Ve){return _e&&_e.length?wl(_e,_o(Ve,3),!0,!0):[]}function ps(_e,Ve){return _e&&_e.length?wl(_e,_o(Ve,3),!0):[]}function qo(_e,Ve,Gt,fr){var ha=_e==null?0:_e.length;return ha?(Gt&&typeof Gt!="number"&&yt(_e,Ve,Gt)&&(Gt=0,fr=ha),Ed(_e,Ve,Gt,fr)):[]}function zc(_e,Ve,Gt){var fr=_e==null?0:_e.length;if(!fr)return-1;var ha=Gt==null?0:up(Gt);return ha<0&&(ha=vo(fr+ha,0)),Xs(_e,_o(Ve,3),ha)}function od(_e,Ve,Gt){var fr=_e==null?0:_e.length;if(!fr)return-1;var ha=fr-1;return Gt!==g&&(ha=up(Gt),ha=Gt<0?vo(fr+ha,0):Ro(ha,fr-1)),Xs(_e,_o(Ve,3),ha,!0)}function ri(_e){var Ve=_e==null?0:_e.length;return Ve?Gu(_e,1):[]}function Ta(_e){var Ve=_e==null?0:_e.length;return Ve?Gu(_e,Ee):[]}function eo(_e,Ve){var Gt=_e==null?0:_e.length;return Gt?(Ve=Ve===g?1:up(Ve),Gu(_e,Ve)):[]}function Po(_e){for(var Ve=-1,Gt=_e==null?0:_e.length,fr={};++Ve<Gt;){var ha=_e[Ve];fr[ha[0]]=ha[1]}return fr}function qi(_e){return _e&&_e.length?_e[0]:g}function Ii(_e,Ve,Gt){var fr=_e==null?0:_e.length;if(!fr)return-1;var ha=Gt==null?0:up(Gt);return ha<0&&(ha=vo(fr+ha,0)),Ps(_e,Ve,ha)}function Gi(_e){var Ve=_e==null?0:_e.length;return Ve?Lp(_e,0,-1):[]}var po=Qc(function(_e){var Ve=_a(_e,Bc);return Ve.length&&Ve[0]===_e[0]?pa(Ve):[]}),si=Qc(function(_e){var Ve=Bi(_e),Gt=_a(_e,Bc);return Ve===Bi(Gt)?Ve=g:Gt.pop(),Gt.length&&Gt[0]===_e[0]?pa(Gt,_o(Ve,2)):[]}),Zi=Qc(function(_e){var Ve=Bi(_e),Gt=_a(_e,Bc);return Ve=typeof Ve=="function"?Ve:g,Ve&&Gt.pop(),Gt.length&&Gt[0]===_e[0]?pa(Gt,g,Ve):[]});function Va(_e,Ve){return _e==null?"":fi.call(_e,Ve)}function Bi(_e){var Ve=_e==null?0:_e.length;return Ve?_e[Ve-1]:g}function $o(_e,Ve,Gt){var fr=_e==null?0:_e.length;if(!fr)return-1;var ha=fr;return Gt!==g&&(ha=up(Gt),ha=ha<0?vo(fr+ha,0):Ro(ha,fr-1)),Ve===Ve?Pd(_e,Ve,ha):Xs(_e,ql,ha,!0)}function Vs(_e,Ve){return _e&&_e.length?Yf(_e,up(Ve)):g}var Cs=Qc(vs);function vs(_e,Ve){return _e&&_e.length&&Ve&&Ve.length?Pv(_e,Ve):_e}function Vl(_e,Ve,Gt){return _e&&_e.length&&Ve&&Ve.length?Pv(_e,Ve,_o(Gt,2)):_e}function ou(_e,Ve,Gt){return _e&&_e.length&&Ve&&Ve.length?Pv(_e,Ve,g,Gt):_e}var Xf=pm(function(_e,Ve){var Gt=_e==null?0:_e.length,fr=wc(_e,Ve);return sp(_e,_a(Ve,function(ha){return je(ha,Gt)?+ha:ha}).sort(wh)),fr});function pu(_e,Ve){var Gt=[];if(!(_e&&_e.length))return Gt;var fr=-1,ha=[],Ka=_e.length;for(Ve=_o(Ve,3);++fr<Ka;){var no=_e[fr];Ve(no,fr,_e)&&(Gt.push(no),ha.push(fr))}return sp(_e,ha),Gt}function sf(_e){return _e==null?_e:Xo.call(_e)}function Jf(_e,Ve,Gt){var fr=_e==null?0:_e.length;return fr?(Gt&&typeof Gt!="number"&&yt(_e,Ve,Gt)?(Ve=0,Gt=fr):(Ve=Ve==null?0:up(Ve),Gt=Gt===g?fr:up(Gt)),Lp(_e,Ve,Gt)):[]}function Vd(_e,Ve){return Lh(_e,Ve)}function rv(_e,Ve,Gt){return mh(_e,Ve,_o(Gt,2))}function Jv(_e,Ve){var Gt=_e==null?0:_e.length;if(Gt){var fr=Lh(_e,Ve);if(fr<Gt&&Vv(_e[fr],Ve))return fr}return-1}function Fg(_e,Ve){return Lh(_e,Ve,!0)}function Zv(_e,Ve,Gt){return mh(_e,Ve,_o(Gt,2),!0)}function ry(_e,Ve){var Gt=_e==null?0:_e.length;if(Gt){var fr=Lh(_e,Ve,!0)-1;if(Vv(_e[fr],Ve))return fr}return-1}function Xh(_e){return _e&&_e.length?fm(_e):[]}function P0(_e,Ve){return _e&&_e.length?fm(_e,_o(Ve,2)):[]}function t0(_e){var Ve=_e==null?0:_e.length;return Ve?Lp(_e,1,Ve):[]}function le(_e,Ve,Gt){return _e&&_e.length?(Ve=Gt||Ve===g?1:up(Ve),Lp(_e,0,Ve<0?0:Ve)):[]}function Ce(_e,Ve,Gt){var fr=_e==null?0:_e.length;return fr?(Ve=Gt||Ve===g?1:up(Ve),Ve=fr-Ve,Lp(_e,Ve<0?0:Ve,fr)):[]}function Xe(_e,Ve){return _e&&_e.length?wl(_e,_o(Ve,3),!1,!0):[]}function vn(_e,Ve){return _e&&_e.length?wl(_e,_o(Ve,3)):[]}var or=Qc(function(_e){return gh(Gu(_e,1,Th,!0))}),Qr=Qc(function(_e){var Ve=Bi(_e);return Th(Ve)&&(Ve=g),gh(Gu(_e,1,Th,!0),_o(Ve,2))}),Oa=Qc(function(_e){var Ve=Bi(_e);return Ve=typeof Ve=="function"?Ve:g,gh(Gu(_e,1,Th,!0),g,Ve)});function ki(_e){return _e&&_e.length?gh(_e):[]}function Oo(_e,Ve){return _e&&_e.length?gh(_e,_o(Ve,2)):[]}function cl(_e,Ve){return Ve=typeof Ve=="function"?Ve:g,_e&&_e.length?gh(_e,g,Ve):[]}function Lu(_e){if(!(_e&&_e.length))return[];var Ve=0;return _e=zn(_e,function(Gt){if(Th(Gt))return Ve=vo(Gt.length,Ve),!0}),Zc(Ve,function(Gt){return _a(_e,Jl(Gt))})}function Dd(_e,Ve){if(!(_e&&_e.length))return[];var Gt=Lu(_e);return Ve==null?Gt:_a(Gt,function(fr){return Rs(Ve,g,fr)})}var pc=Qc(function(_e,Ve){return Th(_e)?td(_e,Ve):[]}),Uf=Qc(function(_e){return Ac(zn(_e,Th))}),bd=Qc(function(_e){var Ve=Bi(_e);return Th(Ve)&&(Ve=g),Ac(zn(_e,Th),_o(Ve,2))}),Cf=Qc(function(_e){var Ve=Bi(_e);return Ve=typeof Ve=="function"?Ve:g,Ac(zn(_e,Th),g,Ve)}),ss=Qc(Lu);function Uo(_e,Ve){return Ju(_e||[],Ve||[],nl)}function hs(_e,Ve){return Ju(_e||[],Ve||[],nh)}var jl=Qc(function(_e){var Ve=_e.length,Gt=Ve>1?_e[Ve-1]:g;return Gt=typeof Gt=="function"?(_e.pop(),Gt):g,Dd(_e,Gt)});function Gl(_e){var Ve=Fr(_e);return Ve.__chain__=!0,Ve}function Jd(_e,Ve){return Ve(_e),_e}function Ku(_e,Ve){return Ve(_e)}var Nd=pm(function(_e){var Ve=_e.length,Gt=Ve?_e[0]:0,fr=this.__wrapped__,ha=function(Ka){return wc(Ka,_e)};return Ve>1||this.__actions__.length||!(fr instanceof os)||!je(Gt)?this.thru(ha):(fr=fr.slice(Gt,+Gt+(Ve?1:0)),fr.__actions__.push({func:Ku,args:[ha],thisArg:g}),new Us(fr,this.__chain__).thru(function(Ka){return Ve&&!Ka.length&&Ka.push(g),Ka}))});function pp(){return Gl(this)}function Rd(){return new Us(this.value(),this.__chain__)}function uh(){this.__values__===g&&(this.__values__=kE(this.value()));var _e=this.__index__>=this.__values__.length,Ve=_e?g:this.__values__[this.__index__++];return{done:_e,value:Ve}}function yC(){return this}function bC(_e){for(var Ve,Gt=this;Gt instanceof Js;){var fr=Sf(Gt);fr.__index__=0,fr.__values__=g,Ve?ha.__wrapped__=fr:Ve=fr;var ha=fr;Gt=Gt.__wrapped__}return ha.__wrapped__=_e,Ve}function Ny(){var _e=this.__wrapped__;if(_e instanceof os){var Ve=_e;return this.__actions__.length&&(Ve=new os(this)),Ve=Ve.reverse(),Ve.__actions__.push({func:Ku,args:[sf],thisArg:g}),new Us(Ve,this.__chain__)}return this.thru(sf)}function P1(){return Sl(this.__wrapped__,this.__actions__)}var Ly=Kh(function(_e,Ve,Gt){fl.call(_e,Gt)?++_e[Gt]:Ll(_e,Gt,1)});function n0(_e,Ve,Gt){var fr=Cd(_e)?Ls:jf;return Gt&&yt(_e,Ve,Gt)&&(Ve=g),fr(_e,_o(Ve,3))}function Pm(_e,Ve){var Gt=Cd(_e)?zn:vd;return Gt(_e,_o(Ve,3))}var Gw=Xv(zc),xC=Xv(od);function yE(_e,Ve){return Gu(lp(_e,Ve),1)}function bE(_e,Ve){return Gu(lp(_e,Ve),Ee)}function EC(_e,Ve,Gt){return Gt=Gt===g?1:up(Gt),Gu(lp(_e,Ve),Gt)}function Qm(_e,Ve){var Gt=Cd(_e)?Wl:Ic;return Gt(_e,_o(Ve,3))}function Rm(_e,Ve){var Gt=Cd(_e)?_l:tu;return Gt(_e,_o(Ve,3))}var Jh=Kh(function(_e,Ve,Gt){fl.call(_e,Gt)?_e[Gt].push(Ve):Ll(_e,Gt,[Ve])});function xE(_e,Ve,Gt,fr){_e=zm(_e)?_e:B0(_e),Gt=Gt&&!fr?up(Gt):0;var ha=_e.length;return Gt<0&&(Gt=vo(ha+Gt,0)),F1(_e)?Gt<=ha&&_e.indexOf(Ve,Gt)>-1:!!ha&&Ps(_e,Ve,Gt)>-1}var Kb=Qc(function(_e,Ve,Gt){var fr=-1,ha=typeof Ve=="function",Ka=zm(_e)?_n(_e.length):[];return Ic(_e,function(no){Ka[++fr]=ha?Rs(Ve,no,Gt):gi(no,Ve,Gt)}),Ka}),R0=Kh(function(_e,Ve,Gt){Ll(_e,Gt,Ve)});function lp(_e,Ve){var Gt=Cd(_e)?_a:Es;return Gt(_e,_o(Ve,3))}function Vm(_e,Ve,Gt,fr){return _e==null?[]:(Cd(Ve)||(Ve=Ve==null?[]:[Ve]),Gt=fr?g:Gt,Cd(Gt)||(Gt=Gt==null?[]:[Gt]),yv(_e,Ve,Gt))}var Yb=Kh(function(_e,Ve,Gt){_e[Gt?0:1].push(Ve)},function(){return[[],[]]});function Fy(_e,Ve,Gt){var fr=Cd(_e)?Ci:xu,ha=arguments.length<3;return fr(_e,_o(Ve,4),Gt,ha,Ic)}function EE(_e,Ve,Gt){var fr=Cd(_e)?da:xu,ha=arguments.length<3;return fr(_e,_o(Ve,4),Gt,ha,tu)}function SC(_e,Ve){var Gt=Cd(_e)?zn:vd;return Gt(_e,u_(_o(Ve,3)))}function CC(_e){var Ve=Cd(_e)?xo:bp;return Ve(_e)}function wC(_e,Ve,Gt){(Gt?yt(_e,Ve,Gt):Ve===g)?Ve=1:Ve=up(Ve);var fr=Cd(_e)?Qo:cv;return fr(_e,Ve)}function SE(_e){var Ve=Cd(_e)?gs:Nh;return Ve(_e)}function $w(_e){if(_e==null)return 0;if(zm(_e))return F1(_e)?Nc(_e):_e.length;var Ve=ll(_e);return Ve==Ke||Ve==ct?_e.size:xn(_e).length}function Gp(_e,Ve,Gt){var fr=Cd(_e)?Da:sh;return Gt&&yt(_e,Ve,Gt)&&(Ve=g),fr(_e,_o(Ve,3))}var I_=Qc(function(_e,Ve){if(_e==null)return[];var Gt=Ve.length;return Gt>1&&yt(_e,Ve[0],Ve[1])?Ve=[]:Gt>2&&yt(Ve[0],Ve[1],Ve[2])&&(Ve=[Ve[0]]),yv(_e,Gu(Ve,1),[])}),D_=df||function(){return Za.Date.now()};function l_(_e,Ve){if(typeof Ve!="function")throw new is(w);return _e=up(_e),function(){if(--_e<1)return Ve.apply(this,arguments)}}function Jg(_e,Ve,Gt){return Ve=Gt?g:Ve,Ve=_e&&Ve==null?_e.length:Ve,yh(_e,V,g,g,g,g,Ve)}function c_(_e,Ve){var Gt;if(typeof Ve!="function")throw new is(w);return _e=up(_e),function(){return--_e>0&&(Gt=Ve.apply(this,arguments)),_e<=1&&(Ve=g),Gt}}var Qg=Qc(function(_e,Ve,Gt){var fr=O;if(Gt.length){var ha=Bu(Gt,To(Qg));fr|=U}return yh(_e,fr,Ve,Gt,ha)}),Xb=Qc(function(_e,Ve,Gt){var fr=O|F;if(Gt.length){var ha=Bu(Gt,To(Xb));fr|=U}return yh(Ve,fr,_e,Gt,ha)});function r0(_e,Ve,Gt){Ve=Gt?g:Ve;var fr=yh(_e,Z,g,g,g,g,g,Ve);return fr.placeholder=r0.placeholder,fr}function a0(_e,Ve,Gt){Ve=Gt?g:Ve;var fr=yh(_e,W,g,g,g,g,g,Ve);return fr.placeholder=a0.placeholder,fr}function O0(_e,Ve,Gt){var fr,ha,Ka,no,bo,ls,Bl=0,$l=!1,vc=!1,Fu=!0;if(typeof _e!="function")throw new is(w);Ve=Ug(Ve)||0,zv(Gt)&&($l=!!Gt.leading,vc="maxWait"in Gt,Ka=vc?vo(Ug(Gt.maxWait)||0,Ve):Ka,Fu="trailing"in Gt?!!Gt.trailing:Fu);function Zf(xh){var hm=fr,gg=ha;return fr=ha=g,Bl=xh,no=_e.apply(gg,hm),no}function nd(xh){return Bl=xh,bo=Pc(Ap,Ve),$l?Zf(xh):no}function Qd(xh){var hm=xh-ls,gg=xh-Bl,hy=Ve-hm;return vc?Ro(hy,Ka-gg):hy}function Td(xh){var hm=xh-ls,gg=xh-Bl;return ls===g||hm>=Ve||hm<0||vc&&gg>=Ka}function Ap(){var xh=D_();if(Td(xh))return hp(xh);bo=Pc(Ap,Qd(xh))}function hp(xh){return bo=g,Fu&&fr?Zf(xh):(fr=ha=g,no)}function Zg(){bo!==g&&Mf(bo),Bl=0,fr=ls=ha=bo=g}function Hm(){return bo===g?no:hp(D_())}function mg(){var xh=D_(),hm=Td(xh);if(fr=arguments,ha=this,ls=xh,hm){if(bo===g)return nd(ls);if(vc)return Mf(bo),bo=Pc(Ap,Ve),Zf(ls)}return bo===g&&(bo=Pc(Ap,Ve)),no}return mg.cancel=Zg,mg.flush=Hm,mg}var i0=Qc(function(_e,Ve){return Kc(_e,1,Ve)}),Jb=Qc(function(_e,Ve,Gt){return Kc(_e,Ug(Ve)||0,Gt)});function I0(_e){return yh(_e,G)}function jy(_e,Ve){if(typeof _e!="function"||Ve!=null&&typeof Ve!="function")throw new is(w);var Gt=function(){var fr=arguments,ha=Ve?Ve.apply(this,fr):fr[0],Ka=Gt.cache;if(Ka.has(ha))return Ka.get(ha);var no=_e.apply(this,fr);return Gt.cache=Ka.set(ha,no)||Ka,no};return Gt.cache=new(jy.Cache||iu),Gt}jy.Cache=iu;function u_(_e){if(typeof _e!="function")throw new is(w);return function(){var Ve=arguments;switch(Ve.length){case 0:return!_e.call(this);case 1:return!_e.call(this,Ve[0]);case 2:return!_e.call(this,Ve[0],Ve[1]);case 3:return!_e.call(this,Ve[0],Ve[1],Ve[2])}return!_e.apply(this,Ve)}}function Qb(_e){return c_(2,_e)}var qb=Ou(function(_e,Ve){Ve=Ve.length==1&&Cd(Ve[0])?_a(Ve[0],Hc(_o())):_a(Gu(Ve,1),Hc(_o()));var Gt=Ve.length;return Qc(function(fr){for(var ha=-1,Ka=Ro(fr.length,Gt);++ha<Ka;)fr[ha]=Ve[ha].call(this,fr[ha]);return Rs(_e,this,fr)})}),TC=Qc(function(_e,Ve){var Gt=Bu(Ve,To(TC));return yh(_e,U,g,Ve,Gt)}),f_=Qc(function(_e,Ve){var Gt=Bu(Ve,To(f_));return yh(_e,L,g,Ve,Gt)}),ay=pm(function(_e,Ve){return yh(_e,$,g,g,g,Ve)});function GM(_e,Ve){if(typeof _e!="function")throw new is(w);return Ve=Ve===g?Ve:up(Ve),Qc(_e,Ve)}function CE(_e,Ve){if(typeof _e!="function")throw new is(w);return Ve=Ve==null?0:vo(up(Ve),0),Qc(function(Gt){var fr=Gt[Ve],ha=Lf(Gt,0,Ve);return fr&&Ti(ha,fr),Rs(_e,this,ha)})}function AC(_e,Ve,Gt){var fr=!0,ha=!0;if(typeof _e!="function")throw new is(w);return zv(Gt)&&(fr="leading"in Gt?!!Gt.leading:fr,ha="trailing"in Gt?!!Gt.trailing:ha),O0(_e,Ve,{leading:fr,maxWait:Ve,trailing:ha})}function d_(_e){return Jg(_e,1)}function R1(_e,Ve){return TC($u(Ve),_e)}function MC(){if(!arguments.length)return[];var _e=arguments[0];return Cd(_e)?_e:[_e]}function o0(_e){return _u(_e,p)}function D0(_e,Ve){return Ve=typeof Ve=="function"?Ve:g,_u(_e,p,Ve)}function iy(_e){return _u(_e,d|p)}function Kw(_e,Ve){return Ve=typeof Ve=="function"?Ve:g,_u(_e,d|p,Ve)}function Yw(_e,Ve){return Ve==null||fu(_e,Ve,Qh(Ve))}function Vv(_e,Ve){return _e===Ve||_e!==_e&&Ve!==Ve}var jg=dm(Jn),wE=dm(function(_e,Ve){return _e>=Ve}),s0=co(function(){return arguments}())?co:function(_e){return wp(_e)&&fl.call(_e,"callee")&&!gf.call(_e,"callee")},Cd=_n.isArray,Xw=ol?Hc(ol):No;function zm(_e){return _e!=null&&D1(_e.length)&&!v_(_e)}function Th(_e){return wp(_e)&&zm(_e)}function kC(_e){return _e===!0||_e===!1||wp(_e)&&un(_e)==De}var p_=ra||J1,PC=Il?Hc(Il):Ko;function ex(_e){return wp(_e)&&_e.nodeType===1&&!jd(_e)}function $M(_e){if(_e==null)return!0;if(zm(_e)&&(Cd(_e)||typeof _e=="string"||typeof _e.splice=="function"||p_(_e)||N0(_e)||s0(_e)))return!_e.length;var Ve=ll(_e);if(Ve==Ke||Ve==ct)return!_e.size;if(Ir(_e))return!xn(_e).length;for(var Gt in _e)if(fl.call(_e,Gt))return!1;return!0}function Od(_e,Ve){return Jo(_e,Ve)}function O1(_e,Ve,Gt){Gt=typeof Gt=="function"?Gt:g;var fr=Gt?Gt(_e,Ve):g;return fr===g?Jo(_e,Ve,g,Gt):!!fr}function I1(_e){if(!wp(_e))return!1;var Ve=un(_e);return Ve==qe||Ve==Qe||typeof _e.message=="string"&&typeof _e.name=="string"&&!jd(_e)}function oy(_e){return typeof _e=="number"&&Na(_e)}function v_(_e){if(!zv(_e))return!1;var Ve=un(_e);return Ve==et||Ve==dt||Ve==ke||Ve==it}function Jw(_e){return typeof _e=="number"&&_e==up(_e)}function D1(_e){return typeof _e=="number"&&_e>-1&&_e%1==0&&_e<=ce}function zv(_e){var Ve=typeof _e;return _e!=null&&(Ve=="object"||Ve=="function")}function wp(_e){return _e!=null&&typeof _e=="object"}var fh=ms?Hc(ms):js;function By(_e,Ve){return _e===Ve||Zl(_e,Ve,Qi(Ve))}function tx(_e,Ve,Gt){return Gt=typeof Gt=="function"?Gt:g,Zl(_e,Ve,Qi(Ve),Gt)}function Qw(_e){return N1(_e)&&_e!=+_e}function l0(_e){if(Wr(_e))throw new xr(M);return ko(_e)}function qw(_e){return _e===null}function pv(_e){return _e==null}function N1(_e){return typeof _e=="number"||wp(_e)&&un(_e)==Ge}function jd(_e){if(!wp(_e)||un(_e)!=Vt)return!1;var Ve=Du(_e);if(Ve===null)return!0;var Gt=fl.call(Ve,"constructor")&&Ve.constructor;return typeof Gt=="function"&&Gt instanceof Gt&&sl.call(Gt)==ff}var L1=mc?Hc(mc):te;function RC(_e){return Jw(_e)&&_e>=-ce&&_e<=ce}var TE=Ys?Hc(Ys):Me;function F1(_e){return typeof _e=="string"||!Cd(_e)&&wp(_e)&&un(_e)==at}function Bg(_e){return typeof _e=="symbol"||wp(_e)&&un(_e)==jt}var N0=hl?Hc(hl):ft;function AE(_e){return _e===g}function ME(_e){return wp(_e)&&ll(_e)==fn}function OC(_e){return wp(_e)&&un(_e)==Xt}var nx=dm(qa),eT=dm(function(_e,Ve){return _e<=Ve});function kE(_e){if(!_e)return[];if(zm(_e))return F1(_e)?eu(_e):Bv(_e);if(Yl&&_e[Yl])return bf(_e[Yl]());var Ve=ll(_e),Gt=Ve==Ke?Cu:Ve==ct?Tf:B0;return Gt(_e)}function N_(_e){if(!_e)return _e===0?_e:0;if(_e=Ug(_e),_e===Ee||_e===-Ee){var Ve=_e<0?-1:1;return Ve*ve}return _e===_e?_e:0}function up(_e){var Ve=N_(_e),Gt=Ve%1;return Ve===Ve?Gt?Ve-Gt:Ve:0}function j1(_e){return _e?Xu(up(_e),0,we):0}function Ug(_e){if(typeof _e=="number")return _e;if(Bg(_e))return fe;if(zv(_e)){var Ve=typeof _e.valueOf=="function"?_e.valueOf():_e;_e=zv(Ve)?Ve+"":Ve}if(typeof _e!="string")return _e===0?_e:+_e;_e=Fc(_e);var Gt=ln.test(_e);return Gt||En.test(_e)?Li(_e.slice(2),Gt?2:8):zt.test(_e)?fe:+_e}function sy(_e){return ah(_e,vm(_e))}function Tp(_e){return _e?Xu(up(_e),-ce,ce):_e===0?_e:0}function nu(_e){return _e==null?"":Fp(_e)}var PE=Dp(function(_e,Ve){if(Ir(Ve)||zm(Ve)){ah(Ve,Qh(Ve),_e);return}for(var Gt in Ve)fl.call(Ve,Gt)&&nl(_e,Gt,Ve[Gt])}),RE=Dp(function(_e,Ve){ah(Ve,vm(Ve),_e)}),h_=Dp(function(_e,Ve,Gt,fr){ah(Ve,vm(Ve),_e,fr)}),OE=Dp(function(_e,Ve,Gt,fr){ah(Ve,Qh(Ve),_e,fr)}),rx=pm(wc);function ly(_e,Ve){var Gt=tl(_e);return Ve==null?Gt:mu(Gt,Ve)}var ax=Qc(function(_e,Ve){_e=ni(_e);var Gt=-1,fr=Ve.length,ha=fr>2?Ve[2]:g;for(ha&&yt(Ve[0],Ve[1],ha)&&(fr=1);++Gt<fr;)for(var Ka=Ve[Gt],no=vm(Ka),bo=-1,ls=no.length;++bo<ls;){var Bl=no[bo],$l=_e[Bl];($l===g||Vv($l,yc[Bl])&&!fl.call(_e,Bl))&&(_e[Bl]=Ka[Bl])}return _e}),ix=Qc(function(_e){return _e.push(g,Dg),Rs(NC,g,_e)});function Wm(_e,Ve){return ml(_e,_o(Ve,3),$d)}function L_(_e,Ve){return ml(_e,_o(Ve,3),hd)}function B1(_e,Ve){return _e==null?_e:Op(_e,_o(Ve,3),vm)}function cy(_e,Ve){return _e==null?_e:np(_e,_o(Ve,3),vm)}function L0(_e,Ve){return _e&&$d(_e,_o(Ve,3))}function ox(_e,Ve){return _e&&hd(_e,_o(Ve,3))}function U1(_e){return _e==null?[]:Ip(_e,Qh(_e))}function IE(_e){return _e==null?[]:Ip(_e,vm(_e))}function Z1(_e,Ve,Gt){var fr=_e==null?g:dd(_e,Ve);return fr===g?Gt:fr}function hg(_e,Ve){return _e!=null&&Ol(_e,Ve,Xn)}function DE(_e,Ve){return _e!=null&&Ol(_e,Ve,Vr)}var IC=Bp(function(_e,Ve,Gt){Ve!=null&&typeof Ve.toString!="function"&&(Ve=Ms.call(Ve)),_e[Ve]=Gt},G1(bv)),NE=Bp(function(_e,Ve,Gt){Ve!=null&&typeof Ve.toString!="function"&&(Ve=Ms.call(Ve)),fl.call(_e,Ve)?_e[Ve].push(Gt):_e[Ve]=[Gt]},_o),LE=Qc(gi);function Qh(_e){return zm(_e)?us(_e):xn(_e)}function vm(_e){return zm(_e)?us(_e,!0):Yr(_e)}function FE(_e,Ve){var Gt={};return Ve=_o(Ve,3),$d(_e,function(fr,ha,Ka){Ll(Gt,Ve(fr,ha,Ka),fr)}),Gt}function DC(_e,Ve){var Gt={};return Ve=_o(Ve,3),$d(_e,function(fr,ha,Ka){Ll(Gt,ha,Ve(fr,ha,Ka))}),Gt}var tT=Dp(function(_e,Ve,Gt){Lc(_e,Ve,Gt)}),NC=Dp(function(_e,Ve,Gt,fr){Lc(_e,Ve,Gt,fr)}),F_=pm(function(_e,Ve){var Gt={};if(_e==null)return Gt;var fr=!1;Ve=_a(Ve,function(Ka){return Ka=Nf(Ka,_e),fr||(fr=Ka.length>1),Ka}),ah(_e,$r(_e),Gt),fr&&(Gt=_u(Gt,d|_|p,km));for(var ha=Ve.length;ha--;)Am(Gt,Ve[ha]);return Gt});function jE(_e,Ve){return nT(_e,u_(_o(Ve)))}var KM=pm(function(_e,Ve){return _e==null?{}:Cp(_e,Ve)});function nT(_e,Ve){if(_e==null)return{};var Gt=_a($r(_e),function(fr){return[fr]});return Ve=_o(Ve),kv(_e,Gt,function(fr,ha){return Ve(fr,ha[0])})}function c0(_e,Ve,Gt){Ve=Nf(Ve,_e);var fr=-1,ha=Ve.length;for(ha||(ha=1,_e=g);++fr<ha;){var Ka=_e==null?g:_e[Qu(Ve[fr])];Ka===g&&(fr=ha,Ka=Gt),_e=v_(Ka)?Ka.call(_e):Ka}return _e}function YM(_e,Ve,Gt){return _e==null?_e:nh(_e,Ve,Gt)}function rT(_e,Ve,Gt,fr){return fr=typeof fr=="function"?fr:g,_e==null?_e:nh(_e,Ve,Gt,fr)}var u0=pg(Qh),F0=pg(vm);function BE(_e,Ve,Gt){var fr=Cd(_e),ha=fr||p_(_e)||N0(_e);if(Ve=_o(Ve,4),Gt==null){var Ka=_e&&_e.constructor;ha?Gt=fr?new Ka:[]:zv(_e)?Gt=v_(Ka)?tl(Du(_e)):{}:Gt={}}return(ha?Wl:$d)(_e,function(no,bo,ls){return Ve(Gt,no,bo,ls)}),Gt}function m_(_e,Ve){return _e==null?!0:Am(_e,Ve)}function qg(_e,Ve,Gt){return _e==null?_e:rc(_e,Ve,$u(Gt))}function j0(_e,Ve,Gt,fr){return fr=typeof fr=="function"?fr:g,_e==null?_e:rc(_e,Ve,$u(Gt),fr)}function B0(_e){return _e==null?[]:Vu(_e,Qh(_e))}function Uy(_e){return _e==null?[]:Vu(_e,vm(_e))}function sx(_e,Ve,Gt){return Gt===g&&(Gt=Ve,Ve=g),Gt!==g&&(Gt=Ug(Gt),Gt=Gt===Gt?Gt:0),Ve!==g&&(Ve=Ug(Ve),Ve=Ve===Ve?Ve:0),Xu(Ug(_e),Ve,Gt)}function LC(_e,Ve,Gt){return Ve=N_(Ve),Gt===g?(Gt=Ve,Ve=0):Gt=N_(Gt),_e=Ug(_e),Zn(_e,Ve,Gt)}function Zy(_e,Ve,Gt){if(Gt&&typeof Gt!="boolean"&&yt(_e,Ve,Gt)&&(Ve=Gt=g),Gt===g&&(typeof Ve=="boolean"?(Gt=Ve,Ve=g):typeof _e=="boolean"&&(Gt=_e,_e=g)),_e===g&&Ve===g?(_e=0,Ve=1):(_e=N_(_e),Ve===g?(Ve=_e,_e=0):Ve=N_(Ve)),_e>Ve){var fr=_e;_e=Ve,Ve=fr}if(Gt||_e%1||Ve%1){var ha=ul();return Ro(_e+ha*(Ve-_e+ka("1e-"+((ha+"").length-1))),Ve)}return Wp(_e,Ve)}var wd=jp(function(_e,Ve,Gt){return Ve=Ve.toLowerCase(),_e+(Gt?V1(Ve):Ve)});function V1(_e){return Sv(nu(_e).toLowerCase())}function Vy(_e){return _e=nu(_e),_e&&_e.replace(Bn,lu).replace(Ar,"")}function FC(_e,Ve,Gt){_e=nu(_e),Ve=Fp(Ve);var fr=_e.length;Gt=Gt===g?fr:Xu(up(Gt),0,fr);var ha=Gt;return Gt-=Ve.length,Gt>=0&&_e.slice(Gt,ha)==Ve}function UE(_e){return _e=nu(_e),_e&&er.test(_e)?_e.replace(rn,hu):_e}function jC(_e){return _e=nu(_e),_e&&be.test(_e)?_e.replace(We,"\\$&"):_e}var aT=jp(function(_e,Ve,Gt){return _e+(Gt?"-":"")+Ve.toLowerCase()}),BC=jp(function(_e,Ve,Gt){return _e+(Gt?" ":"")+Ve.toLowerCase()}),ZE=Kd("toLowerCase");function lx(_e,Ve,Gt){_e=nu(_e),Ve=up(Ve);var fr=Ve?Nc(_e):0;if(!Ve||fr>=Ve)return _e;var ha=(Ve-fr)/2;return Ig(Wn(ha),Gt)+_e+Ig(Af(ha),Gt)}function g_(_e,Ve,Gt){_e=nu(_e),Ve=up(Ve);var fr=Ve?Nc(_e):0;return Ve&&fr<Ve?_e+Ig(Ve-fr,Gt):_e}function XM(_e,Ve,Gt){_e=nu(_e),Ve=up(Ve);var fr=Ve?Nc(_e):0;return Ve&&fr<Ve?Ig(Ve-fr,Gt)+_e:_e}function ih(_e,Ve,Gt){return Gt||Ve==null?Ve=0:Ve&&(Ve=+Ve),el(nu(_e).replace(Ae,""),Ve||0)}function z1(_e,Ve,Gt){return(Gt?yt(_e,Ve,Gt):Ve===g)?Ve=1:Ve=up(Ve),Hf(nu(_e),Ve)}function iT(){var _e=arguments,Ve=nu(_e[0]);return _e.length<3?Ve:Ve.replace(_e[1],_e[2])}var oT=jp(function(_e,Ve,Gt){return _e+(Gt?"_":"")+Ve.toLowerCase()});function Om(_e,Ve,Gt){return Gt&&typeof Gt!="number"&&yt(_e,Ve,Gt)&&(Ve=Gt=g),Gt=Gt===g?we:Gt>>>0,Gt?(_e=nu(_e),_e&&(typeof Ve=="string"||Ve!=null&&!L1(Ve))&&(Ve=Fp(Ve),!Ve&&zu(_e))?Lf(eu(_e),0,Gt):_e.split(Ve,Gt)):[]}var uy=jp(function(_e,Ve,Gt){return _e+(Gt?" ":"")+Sv(Ve)});function f0(_e,Ve,Gt){return _e=nu(_e),Gt=Gt==null?0:Xu(up(Gt),0,_e.length),Ve=Fp(Ve),_e.slice(Gt,Gt+Ve.length)==Ve}function W1(_e,Ve,Gt){var fr=Fr.templateSettings;Gt&&yt(_e,Ve,Gt)&&(Ve=g),_e=nu(_e),Ve=h_({},Ve,fr,vg);var ha=h_({},Ve.imports,fr.imports,vg),Ka=Qh(ha),no=Vu(ha,Ka),bo,ls,Bl=0,$l=Ve.interpolate||pr,vc="__p += '",Fu=yi((Ve.escape||pr).source+"|"+$l.source+"|"+($l===lr?mt:pr).source+"|"+(Ve.evaluate||pr).source+"|$","g"),Zf="//# sourceURL="+(fl.call(Ve,"sourceURL")?(Ve.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gr+"]")+`
|
||
`;_e.replace(Fu,function(Td,Ap,hp,Zg,Hm,mg){return hp||(hp=Zg),vc+=_e.slice(Bl,mg).replace(_r,of),Ap&&(bo=!0,vc+=`' +
|
||
__e(`+Ap+`) +
|
||
'`),Hm&&(ls=!0,vc+=`';
|
||
`+Hm+`;
|
||
__p += '`),hp&&(vc+=`' +
|
||
((__t = (`+hp+`)) == null ? '' : __t) +
|
||
'`),Bl=mg+Td.length,Td}),vc+=`';
|
||
`;var nd=fl.call(Ve,"variable")&&Ve.variable;if(!nd)vc=`with (obj) {
|
||
`+vc+`
|
||
}
|
||
`;else if(Ct.test(nd))throw new xr(m);vc=(ls?vc.replace(Qt,""):vc).replace(an,"$1").replace(Un,"$1;"),vc="function("+(nd||"obj")+`) {
|
||
`+(nd?"":`obj || (obj = {});
|
||
`)+"var __t, __p = ''"+(bo?", __e = _.escape":"")+(ls?`, __j = Array.prototype.join;
|
||
function print() { __p += __j.call(arguments, '') }
|
||
`:`;
|
||
`)+vc+`return __p
|
||
}`;var Qd=p0(function(){return aa(Ka,Zf+"return "+vc).apply(g,no)});if(Qd.source=vc,I1(Qd))throw Qd;return Qd}function zy(_e){return nu(_e).toLowerCase()}function cx(_e){return nu(_e).toUpperCase()}function UC(_e,Ve,Gt){if(_e=nu(_e),_e&&(Gt||Ve===g))return Fc(_e);if(!_e||!(Ve=Fp(Ve)))return _e;var fr=eu(_e),ha=eu(Ve),Ka=fc(fr,ha),no=Tc(fr,ha)+1;return Lf(fr,Ka,no).join("")}function sT(_e,Ve,Gt){if(_e=nu(_e),_e&&(Gt||Ve===g))return _e.slice(0,If(_e)+1);if(!_e||!(Ve=Fp(Ve)))return _e;var fr=eu(_e),ha=Tc(fr,eu(Ve))+1;return Lf(fr,0,ha).join("")}function VE(_e,Ve,Gt){if(_e=nu(_e),_e&&(Gt||Ve===g))return _e.replace(Ae,"");if(!_e||!(Ve=Fp(Ve)))return _e;var fr=eu(_e),ha=fc(fr,eu(Ve));return Lf(fr,ha).join("")}function fy(_e,Ve){var Gt=z,fr=K;if(zv(Ve)){var ha="separator"in Ve?Ve.separator:ha;Gt="length"in Ve?up(Ve.length):Gt,fr="omission"in Ve?Fp(Ve.omission):fr}_e=nu(_e);var Ka=_e.length;if(zu(_e)){var no=eu(_e);Ka=no.length}if(Gt>=Ka)return _e;var bo=Gt-Nc(fr);if(bo<1)return fr;var ls=no?Lf(no,0,bo).join(""):_e.slice(0,bo);if(ha===g)return ls+fr;if(no&&(bo+=ls.length-bo),L1(ha)){if(_e.slice(bo).search(ha)){var Bl,$l=ls;for(ha.global||(ha=yi(ha.source,nu(Zt.exec(ha))+"g")),ha.lastIndex=0;Bl=ha.exec($l);)var vc=Bl.index;ls=ls.slice(0,vc===g?bo:vc)}}else if(_e.indexOf(Fp(ha),bo)!=bo){var Fu=ls.lastIndexOf(ha);Fu>-1&&(ls=ls.slice(0,Fu))}return ls+fr}function ux(_e){return _e=nu(_e),_e&&cn.test(_e)?_e.replace(qt,$f):_e}var vp=jp(function(_e,Ve,Gt){return _e+(Gt?" ":"")+Ve.toUpperCase()}),Sv=Kd("toUpperCase");function d0(_e,Ve,Gt){return _e=nu(_e),Ve=Gt?g:Ve,Ve===g?cf(_e)?Vn(_e):al(_e):_e.match(Ve)||[]}var p0=Qc(function(_e,Ve){try{return Rs(_e,g,Ve)}catch(Gt){return I1(Gt)?Gt:new xr(Gt)}}),zE=pm(function(_e,Ve){return Wl(Ve,function(Gt){Gt=Qu(Gt),Ll(_e,Gt,Qg(_e[Gt],_e))}),_e});function H1(_e){var Ve=_e==null?0:_e.length,Gt=_o();return _e=Ve?_a(_e,function(fr){if(typeof fr[1]!="function")throw new is(w);return[Gt(fr[0]),fr[1]]}):[],Qc(function(fr){for(var ha=-1;++ha<Ve;){var Ka=_e[ha];if(Rs(Ka[0],this,fr))return Rs(Ka[1],this,fr)}})}function e_(_e){return wu(_u(_e,d))}function G1(_e){return function(){return _e}}function $1(_e,Ve){return _e==null||_e!==_e?Ve:_e}var fx=nv(),dx=nv(!0);function bv(_e){return _e}function bh(_e){return Nt(typeof _e=="function"?_e:_u(_e,d))}function Cv(_e){return Qs(_u(_e,d))}function dy(_e,Ve){return Hl(_e,_u(Ve,d))}var K1=Qc(function(_e,Ve){return function(Gt){return gi(Gt,_e,Ve)}}),Y1=Qc(function(_e,Ve){return function(Gt){return gi(_e,Gt,Ve)}});function Wy(_e,Ve,Gt){var fr=Qh(Ve),ha=Ip(Ve,fr);Gt==null&&!(zv(Ve)&&(ha.length||!fr.length))&&(Gt=Ve,Ve=_e,_e=this,ha=Ip(Ve,Qh(Ve)));var Ka=!(zv(Gt)&&"chain"in Gt)||!!Gt.chain,no=v_(_e);return Wl(ha,function(bo){var ls=Ve[bo];_e[bo]=ls,no&&(_e.prototype[bo]=function(){var Bl=this.__chain__;if(Ka||Bl){var $l=_e(this.__wrapped__),vc=$l.__actions__=Bv(this.__actions__);return vc.push({func:ls,args:arguments,thisArg:_e}),$l.__chain__=Bl,$l}return ls.apply(_e,Ti([this.value()],arguments))})}),_e}function ZC(){return Za._===this&&(Za._=Df),this}function px(){}function VC(_e){return _e=up(_e),Qc(function(Ve){return Yf(Ve,_e)})}var vx=dv(_a),py=dv(Ls),zC=dv(Da);function hx(_e){return It(_e)?Jl(Qu(_e)):Nv(_e)}function X1(_e){return function(Ve){return _e==null?g:dd(_e,Ve)}}var WE=dg(),mx=dg(!0);function gx(){return[]}function J1(){return!1}function _x(){return{}}function HE(){return""}function Im(){return!0}function Q1(_e,Ve){if(_e=up(_e),_e<1||_e>ce)return[];var Gt=we,fr=Ro(_e,we);Ve=_o(Ve),_e-=we;for(var ha=Zc(fr,Ve);++Gt<_e;)Ve(Gt);return ha}function JM(_e){return Cd(_e)?_a(_e,Qu):Bg(_e)?[_e]:Bv(yd(nu(_e)))}function QM(_e){var Ve=++bc;return nu(_e)+Ve}var vy=Uv(function(_e,Ve){return _e+Ve},0),Lv=o_("ceil"),qM=Uv(function(_e,Ve){return _e/Ve},1),Hy=o_("floor");function lT(_e){return _e&&_e.length?Tu(_e,bv,Jn):g}function ek(_e,Ve){return _e&&_e.length?Tu(_e,_o(Ve,2),Jn):g}function U0(_e){return Dc(_e,bv)}function cT(_e,Ve){return Dc(_e,_o(Ve,2))}function gO(_e){return _e&&_e.length?Tu(_e,bv,qa):g}function GE(_e,Ve){return _e&&_e.length?Tu(_e,_o(Ve,2),qa):g}var $E=Uv(function(_e,Ve){return _e*Ve},1),yx=o_("round"),bx=Uv(function(_e,Ve){return _e-Ve},0);function xx(_e){return _e&&_e.length?ku(_e,bv):0}function WC(_e,Ve){return _e&&_e.length?ku(_e,_o(Ve,2)):0}return Fr.after=l_,Fr.ary=Jg,Fr.assign=PE,Fr.assignIn=RE,Fr.assignInWith=h_,Fr.assignWith=OE,Fr.at=rx,Fr.before=c_,Fr.bind=Qg,Fr.bindAll=zE,Fr.bindKey=Xb,Fr.castArray=MC,Fr.chain=Gl,Fr.chunk=Bf,Fr.compact=cd,Fr.concat=qu,Fr.cond=H1,Fr.conforms=e_,Fr.constant=G1,Fr.countBy=Ly,Fr.create=ly,Fr.curry=r0,Fr.curryRight=a0,Fr.debounce=O0,Fr.defaults=ax,Fr.defaultsDeep=ix,Fr.defer=i0,Fr.delay=Jb,Fr.difference=Nu,Fr.differenceBy=Id,Fr.differenceWith=Ev,Fr.drop=Rv,Fr.dropRight=s_,Fr.dropRightWhile=wi,Fr.dropWhile=ps,Fr.fill=qo,Fr.filter=Pm,Fr.flatMap=yE,Fr.flatMapDeep=bE,Fr.flatMapDepth=EC,Fr.flatten=ri,Fr.flattenDeep=Ta,Fr.flattenDepth=eo,Fr.flip=I0,Fr.flow=fx,Fr.flowRight=dx,Fr.fromPairs=Po,Fr.functions=U1,Fr.functionsIn=IE,Fr.groupBy=Jh,Fr.initial=Gi,Fr.intersection=po,Fr.intersectionBy=si,Fr.intersectionWith=Zi,Fr.invert=IC,Fr.invertBy=NE,Fr.invokeMap=Kb,Fr.iteratee=bh,Fr.keyBy=R0,Fr.keys=Qh,Fr.keysIn=vm,Fr.map=lp,Fr.mapKeys=FE,Fr.mapValues=DC,Fr.matches=Cv,Fr.matchesProperty=dy,Fr.memoize=jy,Fr.merge=tT,Fr.mergeWith=NC,Fr.method=K1,Fr.methodOf=Y1,Fr.mixin=Wy,Fr.negate=u_,Fr.nthArg=VC,Fr.omit=F_,Fr.omitBy=jE,Fr.once=Qb,Fr.orderBy=Vm,Fr.over=vx,Fr.overArgs=qb,Fr.overEvery=py,Fr.overSome=zC,Fr.partial=TC,Fr.partialRight=f_,Fr.partition=Yb,Fr.pick=KM,Fr.pickBy=nT,Fr.property=hx,Fr.propertyOf=X1,Fr.pull=Cs,Fr.pullAll=vs,Fr.pullAllBy=Vl,Fr.pullAllWith=ou,Fr.pullAt=Xf,Fr.range=WE,Fr.rangeRight=mx,Fr.rearg=ay,Fr.reject=SC,Fr.remove=pu,Fr.rest=GM,Fr.reverse=sf,Fr.sampleSize=wC,Fr.set=YM,Fr.setWith=rT,Fr.shuffle=SE,Fr.slice=Jf,Fr.sortBy=I_,Fr.sortedUniq=Xh,Fr.sortedUniqBy=P0,Fr.split=Om,Fr.spread=CE,Fr.tail=t0,Fr.take=le,Fr.takeRight=Ce,Fr.takeRightWhile=Xe,Fr.takeWhile=vn,Fr.tap=Jd,Fr.throttle=AC,Fr.thru=Ku,Fr.toArray=kE,Fr.toPairs=u0,Fr.toPairsIn=F0,Fr.toPath=JM,Fr.toPlainObject=sy,Fr.transform=BE,Fr.unary=d_,Fr.union=or,Fr.unionBy=Qr,Fr.unionWith=Oa,Fr.uniq=ki,Fr.uniqBy=Oo,Fr.uniqWith=cl,Fr.unset=m_,Fr.unzip=Lu,Fr.unzipWith=Dd,Fr.update=qg,Fr.updateWith=j0,Fr.values=B0,Fr.valuesIn=Uy,Fr.without=pc,Fr.words=d0,Fr.wrap=R1,Fr.xor=Uf,Fr.xorBy=bd,Fr.xorWith=Cf,Fr.zip=ss,Fr.zipObject=Uo,Fr.zipObjectDeep=hs,Fr.zipWith=jl,Fr.entries=u0,Fr.entriesIn=F0,Fr.extend=RE,Fr.extendWith=h_,Wy(Fr,Fr),Fr.add=vy,Fr.attempt=p0,Fr.camelCase=wd,Fr.capitalize=V1,Fr.ceil=Lv,Fr.clamp=sx,Fr.clone=o0,Fr.cloneDeep=iy,Fr.cloneDeepWith=Kw,Fr.cloneWith=D0,Fr.conformsTo=Yw,Fr.deburr=Vy,Fr.defaultTo=$1,Fr.divide=qM,Fr.endsWith=FC,Fr.eq=Vv,Fr.escape=UE,Fr.escapeRegExp=jC,Fr.every=n0,Fr.find=Gw,Fr.findIndex=zc,Fr.findKey=Wm,Fr.findLast=xC,Fr.findLastIndex=od,Fr.findLastKey=L_,Fr.floor=Hy,Fr.forEach=Qm,Fr.forEachRight=Rm,Fr.forIn=B1,Fr.forInRight=cy,Fr.forOwn=L0,Fr.forOwnRight=ox,Fr.get=Z1,Fr.gt=jg,Fr.gte=wE,Fr.has=hg,Fr.hasIn=DE,Fr.head=qi,Fr.identity=bv,Fr.includes=xE,Fr.indexOf=Ii,Fr.inRange=LC,Fr.invoke=LE,Fr.isArguments=s0,Fr.isArray=Cd,Fr.isArrayBuffer=Xw,Fr.isArrayLike=zm,Fr.isArrayLikeObject=Th,Fr.isBoolean=kC,Fr.isBuffer=p_,Fr.isDate=PC,Fr.isElement=ex,Fr.isEmpty=$M,Fr.isEqual=Od,Fr.isEqualWith=O1,Fr.isError=I1,Fr.isFinite=oy,Fr.isFunction=v_,Fr.isInteger=Jw,Fr.isLength=D1,Fr.isMap=fh,Fr.isMatch=By,Fr.isMatchWith=tx,Fr.isNaN=Qw,Fr.isNative=l0,Fr.isNil=pv,Fr.isNull=qw,Fr.isNumber=N1,Fr.isObject=zv,Fr.isObjectLike=wp,Fr.isPlainObject=jd,Fr.isRegExp=L1,Fr.isSafeInteger=RC,Fr.isSet=TE,Fr.isString=F1,Fr.isSymbol=Bg,Fr.isTypedArray=N0,Fr.isUndefined=AE,Fr.isWeakMap=ME,Fr.isWeakSet=OC,Fr.join=Va,Fr.kebabCase=aT,Fr.last=Bi,Fr.lastIndexOf=$o,Fr.lowerCase=BC,Fr.lowerFirst=ZE,Fr.lt=nx,Fr.lte=eT,Fr.max=lT,Fr.maxBy=ek,Fr.mean=U0,Fr.meanBy=cT,Fr.min=gO,Fr.minBy=GE,Fr.stubArray=gx,Fr.stubFalse=J1,Fr.stubObject=_x,Fr.stubString=HE,Fr.stubTrue=Im,Fr.multiply=$E,Fr.nth=Vs,Fr.noConflict=ZC,Fr.noop=px,Fr.now=D_,Fr.pad=lx,Fr.padEnd=g_,Fr.padStart=XM,Fr.parseInt=ih,Fr.random=Zy,Fr.reduce=Fy,Fr.reduceRight=EE,Fr.repeat=z1,Fr.replace=iT,Fr.result=c0,Fr.round=yx,Fr.runInContext=Pt,Fr.sample=CC,Fr.size=$w,Fr.snakeCase=oT,Fr.some=Gp,Fr.sortedIndex=Vd,Fr.sortedIndexBy=rv,Fr.sortedIndexOf=Jv,Fr.sortedLastIndex=Fg,Fr.sortedLastIndexBy=Zv,Fr.sortedLastIndexOf=ry,Fr.startCase=uy,Fr.startsWith=f0,Fr.subtract=bx,Fr.sum=xx,Fr.sumBy=WC,Fr.template=W1,Fr.times=Q1,Fr.toFinite=N_,Fr.toInteger=up,Fr.toLength=j1,Fr.toLower=zy,Fr.toNumber=Ug,Fr.toSafeInteger=Tp,Fr.toString=nu,Fr.toUpper=cx,Fr.trim=UC,Fr.trimEnd=sT,Fr.trimStart=VE,Fr.truncate=fy,Fr.unescape=ux,Fr.uniqueId=QM,Fr.upperCase=vp,Fr.upperFirst=Sv,Fr.each=Qm,Fr.eachRight=Rm,Fr.first=qi,Wy(Fr,function(){var _e={};return $d(Fr,function(Ve,Gt){fl.call(Fr.prototype,Gt)||(_e[Gt]=Ve)}),_e}(),{chain:!1}),Fr.VERSION=A,Wl(["bind","bindKey","curry","curryRight","partial","partialRight"],function(_e){Fr[_e].placeholder=Fr}),Wl(["drop","take"],function(_e,Ve){os.prototype[_e]=function(Gt){Gt=Gt===g?1:vo(up(Gt),0);var fr=this.__filtered__&&!Ve?new os(this):this.clone();return fr.__filtered__?fr.__takeCount__=Ro(Gt,fr.__takeCount__):fr.__views__.push({size:Ro(Gt,we),type:_e+(fr.__dir__<0?"Right":"")}),fr},os.prototype[_e+"Right"]=function(Gt){return this.reverse()[_e](Gt).reverse()}}),Wl(["filter","map","takeWhile"],function(_e,Ve){var Gt=Ve+1,fr=Gt==Q||Gt==he;os.prototype[_e]=function(ha){var Ka=this.clone();return Ka.__iteratees__.push({iteratee:_o(ha,3),type:Gt}),Ka.__filtered__=Ka.__filtered__||fr,Ka}}),Wl(["head","last"],function(_e,Ve){var Gt="take"+(Ve?"Right":"");os.prototype[_e]=function(){return this[Gt](1).value()[0]}}),Wl(["initial","tail"],function(_e,Ve){var Gt="drop"+(Ve?"":"Right");os.prototype[_e]=function(){return this.__filtered__?new os(this):this[Gt](1)}}),os.prototype.compact=function(){return this.filter(bv)},os.prototype.find=function(_e){return this.filter(_e).head()},os.prototype.findLast=function(_e){return this.reverse().find(_e)},os.prototype.invokeMap=Qc(function(_e,Ve){return typeof _e=="function"?new os(this):this.map(function(Gt){return gi(Gt,_e,Ve)})}),os.prototype.reject=function(_e){return this.filter(u_(_o(_e)))},os.prototype.slice=function(_e,Ve){_e=up(_e);var Gt=this;return Gt.__filtered__&&(_e>0||Ve<0)?new os(Gt):(_e<0?Gt=Gt.takeRight(-_e):_e&&(Gt=Gt.drop(_e)),Ve!==g&&(Ve=up(Ve),Gt=Ve<0?Gt.dropRight(-Ve):Gt.take(Ve-_e)),Gt)},os.prototype.takeRightWhile=function(_e){return this.reverse().takeWhile(_e).reverse()},os.prototype.toArray=function(){return this.take(we)},$d(os.prototype,function(_e,Ve){var Gt=/^(?:filter|find|map|reject)|While$/.test(Ve),fr=/^(?:head|last)$/.test(Ve),ha=Fr[fr?"take"+(Ve=="last"?"Right":""):Ve],Ka=fr||/^find/.test(Ve);!ha||(Fr.prototype[Ve]=function(){var no=this.__wrapped__,bo=fr?[1]:arguments,ls=no instanceof os,Bl=bo[0],$l=ls||Cd(no),vc=function(Ap){var hp=ha.apply(Fr,Ti([Ap],bo));return fr&&Fu?hp[0]:hp};$l&&Gt&&typeof Bl=="function"&&Bl.length!=1&&(ls=$l=!1);var Fu=this.__chain__,Zf=!!this.__actions__.length,nd=Ka&&!Fu,Qd=ls&&!Zf;if(!Ka&&$l){no=Qd?no:new os(this);var Td=_e.apply(no,bo);return Td.__actions__.push({func:Ku,args:[vc],thisArg:g}),new Us(Td,Fu)}return nd&&Qd?_e.apply(this,bo):(Td=this.thru(vc),nd?fr?Td.value()[0]:Td.value():Td)})}),Wl(["pop","push","shift","sort","splice","unshift"],function(_e){var Ve=mo[_e],Gt=/^(?:push|sort|unshift)$/.test(_e)?"tap":"thru",fr=/^(?:pop|shift)$/.test(_e);Fr.prototype[_e]=function(){var ha=arguments;if(fr&&!this.__chain__){var Ka=this.value();return Ve.apply(Cd(Ka)?Ka:[],ha)}return this[Gt](function(no){return Ve.apply(Cd(no)?no:[],ha)})}}),$d(os.prototype,function(_e,Ve){var Gt=Fr[Ve];if(Gt){var fr=Gt.name+"";fl.call(la,fr)||(la[fr]=[]),la[fr].push({name:Ve,func:Gt})}}),la[lh(g,F).name]=[{name:"wrapper",func:g}],os.prototype.clone=El,os.prototype.reverse=Bs,os.prototype.value=gc,Fr.prototype.at=Nd,Fr.prototype.chain=pp,Fr.prototype.commit=Rd,Fr.prototype.next=uh,Fr.prototype.plant=bC,Fr.prototype.reverse=Ny,Fr.prototype.toJSON=Fr.prototype.valueOf=Fr.prototype.value=P1,Fr.prototype.first=Fr.prototype.head,Yl&&(Fr.prototype[Yl]=yC),Fr},tn=br();Za._=tn,x=function(){return tn}.call(N,o,N,oe),x!==g&&(oe.exports=x)}).call(this)},35161:function(oe,N,o){var x=o(29932),g=o(67206),A=o(69199),y=o(1469);function M(w,m){var b=y(w)?x:A;return b(w,g(m,3))}oe.exports=M},88306:function(oe,N,o){var x=o(83369),g="Expected a function";function A(y,M){if(typeof y!="function"||M!=null&&typeof M!="function")throw new TypeError(g);var w=function(){var m=arguments,b=M?M.apply(this,m):m[0],v=w.cache;if(v.has(b))return v.get(b);var h=y.apply(this,m);return w.cache=v.set(b,h)||v,h};return w.cache=new(A.Cache||x),w}A.Cache=x,oe.exports=A},82492:function(oe,N,o){var x=o(42980),g=o(21463),A=g(function(y,M,w){x(y,M,w)});oe.exports=A},7771:function(oe,N,o){var x=o(55639),g=function(){return x.Date.now()};oe.exports=g},39601:function(oe,N,o){var x=o(40371),g=o(79152),A=o(15403),y=o(40327);function M(w){return A(w)?x(y(w)):g(w)}oe.exports=M},66796:function(oe,N,o){var x=o(18190),g=o(16612),A=o(40554),y=o(79833);function M(w,m,b){return(b?g(w,m,b):m===void 0)?m=1:m=A(m),x(y(w),m)}oe.exports=M},70479:function(oe){function N(){return[]}oe.exports=N},95062:function(oe){function N(){return!1}oe.exports=N},23493:function(oe,N,o){var x=o(23279),g=o(13218),A="Expected a function";function y(M,w,m){var b=!0,v=!0;if(typeof M!="function")throw new TypeError(A);return g(m)&&(b="leading"in m?!!m.leading:b,v="trailing"in m?!!m.trailing:v),x(M,w,{leading:b,maxWait:w,trailing:v})}oe.exports=y},18601:function(oe,N,o){var x=o(14841),g=1/0,A=17976931348623157e292;function y(M){if(!M)return M===0?M:0;if(M=x(M),M===g||M===-g){var w=M<0?-1:1;return w*A}return M===M?M:0}oe.exports=y},40554:function(oe,N,o){var x=o(18601);function g(A){var y=x(A),M=y%1;return y===y?M?y-M:y:0}oe.exports=g},14841:function(oe,N,o){var x=o(27561),g=o(13218),A=o(33448),y=0/0,M=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,m=/^0o[0-7]+$/i,b=parseInt;function v(h){if(typeof h=="number")return h;if(A(h))return y;if(g(h)){var d=typeof h.valueOf=="function"?h.valueOf():h;h=g(d)?d+"":d}if(typeof h!="string")return h===0?h:+h;h=x(h);var _=w.test(h);return _||m.test(h)?b(h.slice(2),_?2:8):M.test(h)?y:+h}oe.exports=v},59881:function(oe,N,o){var x=o(98363),g=o(81704);function A(y){return x(y,g(y))}oe.exports=A},79833:function(oe,N,o){var x=o(80531);function g(A){return A==null?"":x(A)}oe.exports=g},10691:function(oe,N,o){var x=o(80531),g=o(40180),A=o(5512),y=o(83140),M=o(79833),w=o(67990);function m(b,v,h){if(b=M(b),b&&(h||v===void 0))return b.slice(0,w(b)+1);if(!b||!(v=x(v)))return b;var d=y(b),_=A(d,y(v))+1;return g(d,0,_).join("")}oe.exports=m},11700:function(oe,N,o){var x=o(98805),g=x("toUpperCase");oe.exports=g},52628:function(oe,N,o){var x=o(47415),g=o(3674);function A(y){return y==null?[]:x(y,g(y))}oe.exports=A},58748:function(oe,N,o){var x=o(49029),g=o(93157),A=o(79833),y=o(2757);function M(w,m,b){return w=A(w),m=b?void 0:m,m===void 0?g(w)?y(w):x(w):w.match(m)||[]}oe.exports=M},64448:function(oe,N,o){"use strict";/** @license React v17.0.2
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var x=o(67294),g=o(44547),A=o(14690);function y(le){for(var Ce="https://reactjs.org/docs/error-decoder.html?invariant="+le,Xe=1;Xe<arguments.length;Xe++)Ce+="&args[]="+encodeURIComponent(arguments[Xe]);return"Minified React error #"+le+"; visit "+Ce+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!x)throw Error(y(227));var M=new Set,w={};function m(le,Ce){b(le,Ce),b(le+"Capture",Ce)}function b(le,Ce){for(w[le]=Ce,le=0;le<Ce.length;le++)M.add(Ce[le])}var v=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d=Object.prototype.hasOwnProperty,_={},p={};function S(le){return d.call(p,le)?!0:d.call(_,le)?!1:h.test(le)?p[le]=!0:(_[le]=!0,!1)}function k(le,Ce,Xe,vn){if(Xe!==null&&Xe.type===0)return!1;switch(typeof Ce){case"function":case"symbol":return!0;case"boolean":return vn?!1:Xe!==null?!Xe.acceptsBooleans:(le=le.toLowerCase().slice(0,5),le!=="data-"&&le!=="aria-");default:return!1}}function O(le,Ce,Xe,vn){if(Ce===null||typeof Ce=="undefined"||k(le,Ce,Xe,vn))return!0;if(vn)return!1;if(Xe!==null)switch(Xe.type){case 3:return!Ce;case 4:return Ce===!1;case 5:return isNaN(Ce);case 6:return isNaN(Ce)||1>Ce}return!1}function F(le,Ce,Xe,vn,or,Qr,Oa){this.acceptsBooleans=Ce===2||Ce===3||Ce===4,this.attributeName=vn,this.attributeNamespace=or,this.mustUseProperty=Xe,this.propertyName=le,this.type=Ce,this.sanitizeURL=Qr,this.removeEmptyString=Oa}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(le){D[le]=new F(le,0,!1,le,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(le){var Ce=le[0];D[Ce]=new F(Ce,1,!1,le[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(le){D[le]=new F(le,2,!1,le.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(le){D[le]=new F(le,2,!1,le,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(le){D[le]=new F(le,3,!1,le.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(le){D[le]=new F(le,3,!0,le,null,!1,!1)}),["capture","download"].forEach(function(le){D[le]=new F(le,4,!1,le,null,!1,!1)}),["cols","rows","size","span"].forEach(function(le){D[le]=new F(le,6,!1,le,null,!1,!1)}),["rowSpan","start"].forEach(function(le){D[le]=new F(le,5,!1,le.toLowerCase(),null,!1,!1)});var Z=/[\-:]([a-z])/g;function W(le){return le[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(le){var Ce=le.replace(Z,W);D[Ce]=new F(Ce,1,!1,le,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(le){var Ce=le.replace(Z,W);D[Ce]=new F(Ce,1,!1,le,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(le){var Ce=le.replace(Z,W);D[Ce]=new F(Ce,1,!1,le,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(le){D[le]=new F(le,1,!1,le.toLowerCase(),null,!1,!1)}),D.xlinkHref=new F("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(le){D[le]=new F(le,1,!1,le.toLowerCase(),null,!0,!0)});function U(le,Ce,Xe,vn){var or=D.hasOwnProperty(Ce)?D[Ce]:null,Qr=or!==null?or.type===0:vn?!1:!(!(2<Ce.length)||Ce[0]!=="o"&&Ce[0]!=="O"||Ce[1]!=="n"&&Ce[1]!=="N");Qr||(O(Ce,Xe,or,vn)&&(Xe=null),vn||or===null?S(Ce)&&(Xe===null?le.removeAttribute(Ce):le.setAttribute(Ce,""+Xe)):or.mustUseProperty?le[or.propertyName]=Xe===null?or.type===3?!1:"":Xe:(Ce=or.attributeName,vn=or.attributeNamespace,Xe===null?le.removeAttribute(Ce):(or=or.type,Xe=or===3||or===4&&Xe===!0?"":""+Xe,vn?le.setAttributeNS(vn,Ce,Xe):le.setAttribute(Ce,Xe))))}var L=x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=60103,$=60106,G=60107,z=60108,K=60114,re=60109,ne=60110,Q=60112,ue=60113,he=60120,Ee=60115,ce=60116,ve=60121,fe=60128,we=60129,me=60130,Pe=60131;if(typeof Symbol=="function"&&Symbol.for){var pe=Symbol.for;V=pe("react.element"),$=pe("react.portal"),G=pe("react.fragment"),z=pe("react.strict_mode"),K=pe("react.profiler"),re=pe("react.provider"),ne=pe("react.context"),Q=pe("react.forward_ref"),ue=pe("react.suspense"),he=pe("react.suspense_list"),Ee=pe("react.memo"),ce=pe("react.lazy"),ve=pe("react.block"),pe("react.scope"),fe=pe("react.opaque.id"),we=pe("react.debug_trace_mode"),me=pe("react.offscreen"),Pe=pe("react.legacy_hidden")}var Ie=typeof Symbol=="function"&&Symbol.iterator;function Je(le){return le===null||typeof le!="object"?null:(le=Ie&&le[Ie]||le["@@iterator"],typeof le=="function"?le:null)}var ke;function De(le){if(ke===void 0)try{throw Error()}catch(Xe){var Ce=Xe.stack.trim().match(/\n( *(at )?)/);ke=Ce&&Ce[1]||""}return`
|
||
`+ke+le}var Fe=!1;function Qe(le,Ce){if(!le||Fe)return"";Fe=!0;var Xe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(Ce)if(Ce=function(){throw Error()},Object.defineProperty(Ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ce,[])}catch(Oo){var vn=Oo}Reflect.construct(le,[],Ce)}else{try{Ce.call()}catch(Oo){vn=Oo}le.call(Ce.prototype)}else{try{throw Error()}catch(Oo){vn=Oo}le()}}catch(Oo){if(Oo&&vn&&typeof Oo.stack=="string"){for(var or=Oo.stack.split(`
|
||
`),Qr=vn.stack.split(`
|
||
`),Oa=or.length-1,ki=Qr.length-1;1<=Oa&&0<=ki&&or[Oa]!==Qr[ki];)ki--;for(;1<=Oa&&0<=ki;Oa--,ki--)if(or[Oa]!==Qr[ki]){if(Oa!==1||ki!==1)do if(Oa--,ki--,0>ki||or[Oa]!==Qr[ki])return`
|
||
`+or[Oa].replace(" at new "," at ");while(1<=Oa&&0<=ki);break}}}finally{Fe=!1,Error.prepareStackTrace=Xe}return(le=le?le.displayName||le.name:"")?De(le):""}function qe(le){switch(le.tag){case 5:return De(le.type);case 16:return De("Lazy");case 13:return De("Suspense");case 19:return De("SuspenseList");case 0:case 2:case 15:return le=Qe(le.type,!1),le;case 11:return le=Qe(le.type.render,!1),le;case 22:return le=Qe(le.type._render,!1),le;case 1:return le=Qe(le.type,!0),le;default:return""}}function et(le){if(le==null)return null;if(typeof le=="function")return le.displayName||le.name||null;if(typeof le=="string")return le;switch(le){case G:return"Fragment";case $:return"Portal";case K:return"Profiler";case z:return"StrictMode";case ue:return"Suspense";case he:return"SuspenseList"}if(typeof le=="object")switch(le.$$typeof){case ne:return(le.displayName||"Context")+".Consumer";case re:return(le._context.displayName||"Context")+".Provider";case Q:var Ce=le.render;return Ce=Ce.displayName||Ce.name||"",le.displayName||(Ce!==""?"ForwardRef("+Ce+")":"ForwardRef");case Ee:return et(le.type);case ve:return et(le._render);case ce:Ce=le._payload,le=le._init;try{return et(le(Ce))}catch(Xe){}}return null}function dt(le){switch(typeof le){case"boolean":case"number":case"object":case"string":case"undefined":return le;default:return""}}function Ke(le){var Ce=le.type;return(le=le.nodeName)&&le.toLowerCase()==="input"&&(Ce==="checkbox"||Ce==="radio")}function Ge(le){var Ce=Ke(le)?"checked":"value",Xe=Object.getOwnPropertyDescriptor(le.constructor.prototype,Ce),vn=""+le[Ce];if(!le.hasOwnProperty(Ce)&&typeof Xe!="undefined"&&typeof Xe.get=="function"&&typeof Xe.set=="function"){var or=Xe.get,Qr=Xe.set;return Object.defineProperty(le,Ce,{configurable:!0,get:function(){return or.call(this)},set:function(Oa){vn=""+Oa,Qr.call(this,Oa)}}),Object.defineProperty(le,Ce,{enumerable:Xe.enumerable}),{getValue:function(){return vn},setValue:function(Oa){vn=""+Oa},stopTracking:function(){le._valueTracker=null,delete le[Ce]}}}}function wt(le){le._valueTracker||(le._valueTracker=Ge(le))}function Vt(le){if(!le)return!1;var Ce=le._valueTracker;if(!Ce)return!0;var Xe=Ce.getValue(),vn="";return le&&(vn=Ke(le)?le.checked?"true":"false":le.value),le=vn,le!==Xe?(Ce.setValue(le),!0):!1}function gt(le){if(le=le||(typeof document!="undefined"?document:void 0),typeof le=="undefined")return null;try{return le.activeElement||le.body}catch(Ce){return le.body}}function it(le,Ce){var Xe=Ce.checked;return g({},Ce,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:Xe!=null?Xe:le._wrapperState.initialChecked})}function Le(le,Ce){var Xe=Ce.defaultValue==null?"":Ce.defaultValue,vn=Ce.checked!=null?Ce.checked:Ce.defaultChecked;Xe=dt(Ce.value!=null?Ce.value:Xe),le._wrapperState={initialChecked:vn,initialValue:Xe,controlled:Ce.type==="checkbox"||Ce.type==="radio"?Ce.checked!=null:Ce.value!=null}}function ct(le,Ce){Ce=Ce.checked,Ce!=null&&U(le,"checked",Ce,!1)}function at(le,Ce){ct(le,Ce);var Xe=dt(Ce.value),vn=Ce.type;if(Xe!=null)vn==="number"?(Xe===0&&le.value===""||le.value!=Xe)&&(le.value=""+Xe):le.value!==""+Xe&&(le.value=""+Xe);else if(vn==="submit"||vn==="reset"){le.removeAttribute("value");return}Ce.hasOwnProperty("value")?St(le,Ce.type,Xe):Ce.hasOwnProperty("defaultValue")&&St(le,Ce.type,dt(Ce.defaultValue)),Ce.checked==null&&Ce.defaultChecked!=null&&(le.defaultChecked=!!Ce.defaultChecked)}function jt(le,Ce,Xe){if(Ce.hasOwnProperty("value")||Ce.hasOwnProperty("defaultValue")){var vn=Ce.type;if(!(vn!=="submit"&&vn!=="reset"||Ce.value!==void 0&&Ce.value!==null))return;Ce=""+le._wrapperState.initialValue,Xe||Ce===le.value||(le.value=Ce),le.defaultValue=Ce}Xe=le.name,Xe!==""&&(le.name=""),le.defaultChecked=!!le._wrapperState.initialChecked,Xe!==""&&(le.name=Xe)}function St(le,Ce,Xe){(Ce!=="number"||gt(le.ownerDocument)!==le)&&(Xe==null?le.defaultValue=""+le._wrapperState.initialValue:le.defaultValue!==""+Xe&&(le.defaultValue=""+Xe))}function fn(le){var Ce="";return x.Children.forEach(le,function(Xe){Xe!=null&&(Ce+=Xe)}),Ce}function Xt(le,Ce){return le=g({children:void 0},Ce),(Ce=fn(Ce.children))&&(le.children=Ce),le}function Yt(le,Ce,Xe,vn){if(le=le.options,Ce){Ce={};for(var or=0;or<Xe.length;or++)Ce["$"+Xe[or]]=!0;for(Xe=0;Xe<le.length;Xe++)or=Ce.hasOwnProperty("$"+le[Xe].value),le[Xe].selected!==or&&(le[Xe].selected=or),or&&vn&&(le[Xe].defaultSelected=!0)}else{for(Xe=""+dt(Xe),Ce=null,or=0;or<le.length;or++){if(le[or].value===Xe){le[or].selected=!0,vn&&(le[or].defaultSelected=!0);return}Ce!==null||le[or].disabled||(Ce=le[or])}Ce!==null&&(Ce.selected=!0)}}function Rt(le,Ce){if(Ce.dangerouslySetInnerHTML!=null)throw Error(y(91));return g({},Ce,{value:void 0,defaultValue:void 0,children:""+le._wrapperState.initialValue})}function Lt(le,Ce){var Xe=Ce.value;if(Xe==null){if(Xe=Ce.children,Ce=Ce.defaultValue,Xe!=null){if(Ce!=null)throw Error(y(92));if(Array.isArray(Xe)){if(!(1>=Xe.length))throw Error(y(93));Xe=Xe[0]}Ce=Xe}Ce==null&&(Ce=""),Xe=Ce}le._wrapperState={initialValue:dt(Xe)}}function ze(le,Ce){var Xe=dt(Ce.value),vn=dt(Ce.defaultValue);Xe!=null&&(Xe=""+Xe,Xe!==le.value&&(le.value=Xe),Ce.defaultValue==null&&le.defaultValue!==Xe&&(le.defaultValue=Xe)),vn!=null&&(le.defaultValue=""+vn)}function rt(le){var Ce=le.textContent;Ce===le._wrapperState.initialValue&&Ce!==""&&Ce!==null&&(le.value=Ce)}var tt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function de(le){switch(le){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ot(le,Ce){return le==null||le==="http://www.w3.org/1999/xhtml"?de(Ce):le==="http://www.w3.org/2000/svg"&&Ce==="foreignObject"?"http://www.w3.org/1999/xhtml":le}var Et,Ht=function(le){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(Ce,Xe,vn,or){MSApp.execUnsafeLocalFunction(function(){return le(Ce,Xe,vn,or)})}:le}(function(le,Ce){if(le.namespaceURI!==tt.svg||"innerHTML"in le)le.innerHTML=Ce;else{for(Et=Et||document.createElement("div"),Et.innerHTML="<svg>"+Ce.valueOf().toString()+"</svg>",Ce=Et.firstChild;le.firstChild;)le.removeChild(le.firstChild);for(;Ce.firstChild;)le.appendChild(Ce.firstChild)}});function Jt(le,Ce){if(Ce){var Xe=le.firstChild;if(Xe&&Xe===le.lastChild&&Xe.nodeType===3){Xe.nodeValue=Ce;return}}le.textContent=Ce}var Qt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},an=["Webkit","ms","Moz","O"];Object.keys(Qt).forEach(function(le){an.forEach(function(Ce){Ce=Ce+le.charAt(0).toUpperCase()+le.substring(1),Qt[Ce]=Qt[le]})});function Un(le,Ce,Xe){return Ce==null||typeof Ce=="boolean"||Ce===""?"":Xe||typeof Ce!="number"||Ce===0||Qt.hasOwnProperty(le)&&Qt[le]?(""+Ce).trim():Ce+"px"}function qt(le,Ce){le=le.style;for(var Xe in Ce)if(Ce.hasOwnProperty(Xe)){var vn=Xe.indexOf("--")===0,or=Un(Xe,Ce[Xe],vn);Xe==="float"&&(Xe="cssFloat"),vn?le.setProperty(Xe,or):le[Xe]=or}}var rn=g({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cn(le,Ce){if(Ce){if(rn[le]&&(Ce.children!=null||Ce.dangerouslySetInnerHTML!=null))throw Error(y(137,le));if(Ce.dangerouslySetInnerHTML!=null){if(Ce.children!=null)throw Error(y(60));if(!(typeof Ce.dangerouslySetInnerHTML=="object"&&"__html"in Ce.dangerouslySetInnerHTML))throw Error(y(61))}if(Ce.style!=null&&typeof Ce.style!="object")throw Error(y(62))}}function er(le,Ce){if(le.indexOf("-")===-1)return typeof Ce.is=="string";switch(le){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function rr(le){return le=le.target||le.srcElement||window,le.correspondingUseElement&&(le=le.correspondingUseElement),le.nodeType===3?le.parentNode:le}var nt=null,lr=null,Hn=null;function ut(le){if(le=Qn(le)){if(typeof nt!="function")throw Error(y(280));var Ce=le.stateNode;Ce&&(Ce=Xr(Ce),nt(le.stateNode,le.type,Ce))}}function bt(le){lr?Hn?Hn.push(le):Hn=[le]:lr=le}function We(){if(lr){var le=lr,Ce=Hn;if(Hn=lr=null,ut(le),Ce)for(le=0;le<Ce.length;le++)ut(Ce[le])}}function be(le,Ce){return le(Ce)}function Ae(le,Ce,Xe,vn,or){return le(Ce,Xe,vn,or)}function Ue(){}var $e=be,kt=!1,lt=!1;function vt(){(lr!==null||Hn!==null)&&(Ue(),We())}function Ct(le,Ce,Xe){if(lt)return le(Ce,Xe);lt=!0;try{return $e(le,Ce,Xe)}finally{lt=!1,vt()}}function Bt(le,Ce){var Xe=le.stateNode;if(Xe===null)return null;var vn=Xr(Xe);if(vn===null)return null;Xe=vn[Ce];e:switch(Ce){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(vn=!vn.disabled)||(le=le.type,vn=!(le==="button"||le==="input"||le==="select"||le==="textarea")),le=!vn;break e;default:le=!1}if(le)return null;if(Xe&&typeof Xe!="function")throw Error(y(231,Ce,typeof Xe));return Xe}var mt=!1;if(v)try{var Zt={};Object.defineProperty(Zt,"passive",{get:function(){mt=!0}}),window.addEventListener("test",Zt,Zt),window.removeEventListener("test",Zt,Zt)}catch(le){mt=!1}function zt(le,Ce,Xe,vn,or,Qr,Oa,ki,Oo){var cl=Array.prototype.slice.call(arguments,3);try{Ce.apply(Xe,cl)}catch(Lu){this.onError(Lu)}}var ln=!1,An=null,En=!1,Gn=null,Bn={onError:function(le){ln=!0,An=le}};function pr(le,Ce,Xe,vn,or,Qr,Oa,ki,Oo){ln=!1,An=null,zt.apply(Bn,arguments)}function _r(le,Ce,Xe,vn,or,Qr,Oa,ki,Oo){if(pr.apply(this,arguments),ln){if(ln){var cl=An;ln=!1,An=null}else throw Error(y(198));En||(En=!0,Gn=cl)}}function na(le){var Ce=le,Xe=le;if(le.alternate)for(;Ce.return;)Ce=Ce.return;else{le=Ce;do Ce=le,(Ce.flags&1026)!=0&&(Xe=Ce.return),le=Ce.return;while(le)}return Ce.tag===3?Xe:null}function $n(le){if(le.tag===13){var Ce=le.memoizedState;if(Ce===null&&(le=le.alternate,le!==null&&(Ce=le.memoizedState)),Ce!==null)return Ce.dehydrated}return null}function qr(le){if(na(le)!==le)throw Error(y(188))}function Jr(le){var Ce=le.alternate;if(!Ce){if(Ce=na(le),Ce===null)throw Error(y(188));return Ce!==le?null:le}for(var Xe=le,vn=Ce;;){var or=Xe.return;if(or===null)break;var Qr=or.alternate;if(Qr===null){if(vn=or.return,vn!==null){Xe=vn;continue}break}if(or.child===Qr.child){for(Qr=or.child;Qr;){if(Qr===Xe)return qr(or),le;if(Qr===vn)return qr(or),Ce;Qr=Qr.sibling}throw Error(y(188))}if(Xe.return!==vn.return)Xe=or,vn=Qr;else{for(var Oa=!1,ki=or.child;ki;){if(ki===Xe){Oa=!0,Xe=or,vn=Qr;break}if(ki===vn){Oa=!0,vn=or,Xe=Qr;break}ki=ki.sibling}if(!Oa){for(ki=Qr.child;ki;){if(ki===Xe){Oa=!0,Xe=Qr,vn=or;break}if(ki===vn){Oa=!0,vn=Qr,Xe=or;break}ki=ki.sibling}if(!Oa)throw Error(y(189))}}if(Xe.alternate!==vn)throw Error(y(190))}if(Xe.tag!==3)throw Error(y(188));return Xe.stateNode.current===Xe?le:Ce}function Aa(le){if(le=Jr(le),!le)return null;for(var Ce=le;;){if(Ce.tag===5||Ce.tag===6)return Ce;if(Ce.child)Ce.child.return=Ce,Ce=Ce.child;else{if(Ce===le)break;for(;!Ce.sibling;){if(!Ce.return||Ce.return===le)return null;Ce=Ce.return}Ce.sibling.return=Ce.return,Ce=Ce.sibling}}return null}function ya(le,Ce){for(var Xe=le.alternate;Ce!==null;){if(Ce===le||Ce===Xe)return!0;Ce=Ce.return}return!1}var $t,wn,Fn,Or,vr=!1,Ur=[],Zr=null,Kr=null,ba=null,Ri=new Map,Ea=new Map,Pi=[],rs="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ui(le,Ce,Xe,vn,or){return{blockedOn:le,domEventName:Ce,eventSystemFlags:Xe|16,nativeEvent:or,targetContainers:[vn]}}function Cn(le,Ce){switch(le){case"focusin":case"focusout":Zr=null;break;case"dragenter":case"dragleave":Kr=null;break;case"mouseover":case"mouseout":ba=null;break;case"pointerover":case"pointerout":Ri.delete(Ce.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ea.delete(Ce.pointerId)}}function Kn(le,Ce,Xe,vn,or,Qr){return le===null||le.nativeEvent!==Qr?(le=Ui(Ce,Xe,vn,or,Qr),Ce!==null&&(Ce=Qn(Ce),Ce!==null&&wn(Ce)),le):(le.eventSystemFlags|=vn,Ce=le.targetContainers,or!==null&&Ce.indexOf(or)===-1&&Ce.push(or),le)}function Pn(le,Ce,Xe,vn,or){switch(Ce){case"focusin":return Zr=Kn(Zr,le,Ce,Xe,vn,or),!0;case"dragenter":return Kr=Kn(Kr,le,Ce,Xe,vn,or),!0;case"mouseover":return ba=Kn(ba,le,Ce,Xe,vn,or),!0;case"pointerover":var Qr=or.pointerId;return Ri.set(Qr,Kn(Ri.get(Qr)||null,le,Ce,Xe,vn,or)),!0;case"gotpointercapture":return Qr=or.pointerId,Ea.set(Qr,Kn(Ea.get(Qr)||null,le,Ce,Xe,vn,or)),!0}return!1}function At(le){var Ce=$s(le.target);if(Ce!==null){var Xe=na(Ce);if(Xe!==null){if(Ce=Xe.tag,Ce===13){if(Ce=$n(Xe),Ce!==null){le.blockedOn=Ce,Or(le.lanePriority,function(){A.unstable_runWithPriority(le.priority,function(){Fn(Xe)})});return}}else if(Ce===3&&Xe.stateNode.hydrate){le.blockedOn=Xe.tag===3?Xe.stateNode.containerInfo:null;return}}}le.blockedOn=null}function ar(le){if(le.blockedOn!==null)return!1;for(var Ce=le.targetContainers;0<Ce.length;){var Xe=Xi(le.domEventName,le.eventSystemFlags,Ce[0],le.nativeEvent);if(Xe!==null)return Ce=Qn(Xe),Ce!==null&&wn(Ce),le.blockedOn=Xe,!1;Ce.shift()}return!0}function ta(le,Ce,Xe){ar(le)&&Xe.delete(Ce)}function Yn(){for(vr=!1;0<Ur.length;){var le=Ur[0];if(le.blockedOn!==null){le=Qn(le.blockedOn),le!==null&&$t(le);break}for(var Ce=le.targetContainers;0<Ce.length;){var Xe=Xi(le.domEventName,le.eventSystemFlags,Ce[0],le.nativeEvent);if(Xe!==null){le.blockedOn=Xe;break}Ce.shift()}le.blockedOn===null&&Ur.shift()}Zr!==null&&ar(Zr)&&(Zr=null),Kr!==null&&ar(Kr)&&(Kr=null),ba!==null&&ar(ba)&&(ba=null),Ri.forEach(ta),Ea.forEach(ta)}function Qa(le,Ce){le.blockedOn===Ce&&(le.blockedOn=null,vr||(vr=!0,A.unstable_scheduleCallback(A.unstable_NormalPriority,Yn)))}function Ua(le){function Ce(or){return Qa(or,le)}if(0<Ur.length){Qa(Ur[0],le);for(var Xe=1;Xe<Ur.length;Xe++){var vn=Ur[Xe];vn.blockedOn===le&&(vn.blockedOn=null)}}for(Zr!==null&&Qa(Zr,le),Kr!==null&&Qa(Kr,le),ba!==null&&Qa(ba,le),Ri.forEach(Ce),Ea.forEach(Ce),Xe=0;Xe<Pi.length;Xe++)vn=Pi[Xe],vn.blockedOn===le&&(vn.blockedOn=null);for(;0<Pi.length&&(Xe=Pi[0],Xe.blockedOn===null);)At(Xe),Xe.blockedOn===null&&Pi.shift()}function Fi(le,Ce){var Xe={};return Xe[le.toLowerCase()]=Ce.toLowerCase(),Xe["Webkit"+le]="webkit"+Ce,Xe["Moz"+le]="moz"+Ce,Xe}var Xa={animationend:Fi("Animation","AnimationEnd"),animationiteration:Fi("Animation","AnimationIteration"),animationstart:Fi("Animation","AnimationStart"),transitionend:Fi("Transition","TransitionEnd")},$i={},La={};v&&(La=document.createElement("div").style,"AnimationEvent"in window||(delete Xa.animationend.animation,delete Xa.animationiteration.animation,delete Xa.animationstart.animation),"TransitionEvent"in window||delete Xa.transitionend.transition);function ja(le){if($i[le])return $i[le];if(!Xa[le])return le;var Ce=Xa[le],Xe;for(Xe in Ce)if(Ce.hasOwnProperty(Xe)&&Xe in La)return $i[le]=Ce[Xe];return le}var ei=ja("animationend"),Do=ja("animationiteration"),yo=ja("animationstart"),to=ja("transitionend"),fs=new Map,cs=new Map,Os=["abort","abort",ei,"animationEnd",Do,"animationIteration",yo,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",to,"transitionEnd","waiting","waiting"];function vl(le,Ce){for(var Xe=0;Xe<le.length;Xe+=2){var vn=le[Xe],or=le[Xe+1];or="on"+(or[0].toUpperCase()+or.slice(1)),cs.set(vn,Ce),fs.set(vn,or),m(or,[vn])}}var Ar=A.unstable_now;Ar();var Rn=8;function Sr(le){if((1&le)!=0)return Rn=15,1;if((2&le)!=0)return Rn=14,2;if((4&le)!=0)return Rn=13,4;var Ce=24≤return Ce!==0?(Rn=12,Ce):(le&32)!=0?(Rn=11,32):(Ce=192&le,Ce!==0?(Rn=10,Ce):(le&256)!=0?(Rn=9,256):(Ce=3584&le,Ce!==0?(Rn=8,Ce):(le&4096)!=0?(Rn=7,4096):(Ce=4186112&le,Ce!==0?(Rn=6,Ce):(Ce=62914560&le,Ce!==0?(Rn=5,Ce):le&67108864?(Rn=4,67108864):(le&134217728)!=0?(Rn=3,134217728):(Ce=805306368&le,Ce!==0?(Rn=2,Ce):(1073741824&le)!=0?(Rn=1,1073741824):(Rn=8,le))))))}function nn(le){switch(le){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function sn(le){switch(le){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(y(358,le))}}function Ot(le,Ce){var Xe=le.pendingLanes;if(Xe===0)return Rn=0;var vn=0,or=0,Qr=le.expiredLanes,Oa=le.suspendedLanes,ki=le.pingedLanes;if(Qr!==0)vn=Qr,or=Rn=15;else if(Qr=Xe&134217727,Qr!==0){var Oo=Qr&~Oa;Oo!==0?(vn=Sr(Oo),or=Rn):(ki&=Qr,ki!==0&&(vn=Sr(ki),or=Rn))}else Qr=Xe&~Oa,Qr!==0?(vn=Sr(Qr),or=Rn):ki!==0&&(vn=Sr(ki),or=Rn);if(vn===0)return 0;if(vn=31-Pr(vn),vn=Xe&((0>vn?0:1<<vn)<<1)-1,Ce!==0&&Ce!==vn&&(Ce&Oa)==0){if(Sr(Ce),or<=Rn)return Ce;Rn=or}if(Ce=le.entangledLanes,Ce!==0)for(le=le.entanglements,Ce&=vn;0<Ce;)Xe=31-Pr(Ce),or=1<<Xe,vn|=le[Xe],Ce&=~or;return vn}function gr(le){return le=le.pendingLanes&-1073741825,le!==0?le:le&1073741824?1073741824:0}function Gr(le,Ce){switch(le){case 15:return 1;case 14:return 2;case 12:return le=Ln(24&~Ce),le===0?Gr(10,Ce):le;case 10:return le=Ln(192&~Ce),le===0?Gr(8,Ce):le;case 8:return le=Ln(3584&~Ce),le===0&&(le=Ln(4186112&~Ce),le===0&&(le=512)),le;case 2:return Ce=Ln(805306368&~Ce),Ce===0&&(Ce=268435456),Ce}throw Error(y(358,le))}function Ln(le){return le&-le}function Tr(le){for(var Ce=[],Xe=0;31>Xe;Xe++)Ce.push(le);return Ce}function Dn(le,Ce,Xe){le.pendingLanes|=Ce;var vn=Ce-1;le.suspendedLanes&=vn,le.pingedLanes&=vn,le=le.eventTimes,Ce=31-Pr(Ce),le[Ce]=Xe}var Pr=Math.clz32?Math.clz32:Li,fa=Math.log,ka=Math.LN2;function Li(le){return le===0?32:31-(fa(le)/ka|0)|0}var zi=A.unstable_UserBlockingPriority,Mo=A.unstable_runWithPriority,Za=!0;function ao(le,Ce,Xe,vn){kt||Ue();var or=Eo,Qr=kt;kt=!0;try{Ae(or,le,Ce,Xe,vn)}finally{(kt=Qr)||vt()}}function Mi(le,Ce,Xe,vn){Mo(zi,Eo.bind(null,le,Ce,Xe,vn))}function Eo(le,Ce,Xe,vn){if(Za){var or;if((or=(Ce&4)==0)&&0<Ur.length&&-1<rs.indexOf(le))le=Ui(null,le,Ce,Xe,vn),Ur.push(le);else{var Qr=Xi(le,Ce,Xe,vn);if(Qr===null)or&&Cn(le,vn);else{if(or){if(-1<rs.indexOf(le)){le=Ui(Qr,le,Ce,Xe,vn),Ur.push(le);return}if(Pn(Qr,le,Ce,Xe,vn))return;Cn(le,vn)}Yl(le,Ce,vn,null,Xe)}}}}function Xi(le,Ce,Xe,vn){var or=rr(vn);if(or=$s(or),or!==null){var Qr=na(or);if(Qr===null)or=null;else{var Oa=Qr.tag;if(Oa===13){if(or=$n(Qr),or!==null)return or;or=null}else if(Oa===3){if(Qr.stateNode.hydrate)return Qr.tag===3?Qr.stateNode.containerInfo:null;or=null}else Qr!==or&&(or=null)}}return Yl(le,Ce,vn,or,Xe),null}var Bo=null,ol=null,Il=null;function ms(){if(Il)return Il;var le,Ce=ol,Xe=Ce.length,vn,or="value"in Bo?Bo.value:Bo.textContent,Qr=or.length;for(le=0;le<Xe&&Ce[le]===or[le];le++);var Oa=Xe-le;for(vn=1;vn<=Oa&&Ce[Xe-vn]===or[Qr-vn];vn++);return Il=or.slice(le,1<vn?1-vn:void 0)}function mc(le){var Ce=le.keyCode;return"charCode"in le?(le=le.charCode,le===0&&Ce===13&&(le=13)):le=Ce,le===10&&(le=13),32<=le||le===13?le:0}function Ys(){return!0}function hl(){return!1}function Rs(le){function Ce(Xe,vn,or,Qr,Oa){this._reactName=Xe,this._targetInst=or,this.type=vn,this.nativeEvent=Qr,this.target=Oa,this.currentTarget=null;for(var ki in le)le.hasOwnProperty(ki)&&(Xe=le[ki],this[ki]=Xe?Xe(Qr):Qr[ki]);return this.isDefaultPrevented=(Qr.defaultPrevented!=null?Qr.defaultPrevented:Qr.returnValue===!1)?Ys:hl,this.isPropagationStopped=hl,this}return g(Ce.prototype,{preventDefault:function(){this.defaultPrevented=!0;var Xe=this.nativeEvent;Xe&&(Xe.preventDefault?Xe.preventDefault():typeof Xe.returnValue!="unknown"&&(Xe.returnValue=!1),this.isDefaultPrevented=Ys)},stopPropagation:function(){var Xe=this.nativeEvent;Xe&&(Xe.stopPropagation?Xe.stopPropagation():typeof Xe.cancelBubble!="unknown"&&(Xe.cancelBubble=!0),this.isPropagationStopped=Ys)},persist:function(){},isPersistent:Ys}),Ce}var xl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(le){return le.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wl=Rs(xl),_l=g({},xl,{view:0,detail:0}),Ls=Rs(_l),zn,Dr,Hr,_a=g({},_l,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xu,button:0,buttons:0,relatedTarget:function(le){return le.relatedTarget===void 0?le.fromElement===le.srcElement?le.toElement:le.fromElement:le.relatedTarget},movementX:function(le){return"movementX"in le?le.movementX:(le!==Hr&&(Hr&&le.type==="mousemove"?(zn=le.screenX-Hr.screenX,Dr=le.screenY-Hr.screenY):Dr=zn=0,Hr=le),zn)},movementY:function(le){return"movementY"in le?le.movementY:Dr}}),Ti=Rs(_a),Ci=g({},_a,{dataTransfer:0}),da=Rs(Ci),Da=g({},_l,{relatedTarget:0}),mi=Rs(Da),Ho=g({},xl,{animationName:0,elapsedTime:0,pseudoElement:0}),al=Rs(Ho),ml=g({},xl,{clipboardData:function(le){return"clipboardData"in le?le.clipboardData:window.clipboardData}}),Xs=Rs(ml),Ps=g({},xl,{data:0}),dl=Rs(Ps),ql={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Dc={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Jl={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oc(le){var Ce=this.nativeEvent;return Ce.getModifierState?Ce.getModifierState(le):(le=Jl[le])?!!Ce[le]:!1}function xu(){return oc}var yf=g({},_l,{key:function(le){if(le.key){var Ce=ql[le.key]||le.key;if(Ce!=="Unidentified")return Ce}return le.type==="keypress"?(le=mc(le),le===13?"Enter":String.fromCharCode(le)):le.type==="keydown"||le.type==="keyup"?Dc[le.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xu,charCode:function(le){return le.type==="keypress"?mc(le):0},keyCode:function(le){return le.type==="keydown"||le.type==="keyup"?le.keyCode:0},which:function(le){return le.type==="keypress"?mc(le):le.type==="keydown"||le.type==="keyup"?le.keyCode:0}}),ku=Rs(yf),Zc=g({},_a,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zu=Rs(Zc),Fc=g({},_l,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xu}),Hc=Rs(Fc),Vu=g({},xl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ws=Rs(Vu),fc=g({},_a,{deltaX:function(le){return"deltaX"in le?le.deltaX:"wheelDeltaX"in le?-le.wheelDeltaX:0},deltaY:function(le){return"deltaY"in le?le.deltaY:"wheelDeltaY"in le?-le.wheelDeltaY:"wheelDelta"in le?-le.wheelDelta:0},deltaZ:0,deltaMode:0}),Tc=Rs(fc),jc=[9,13,27,32],lu=v&&"CompositionEvent"in window,hu=null;v&&"documentMode"in document&&(hu=document.documentMode);var of=v&&"TextEvent"in window&&!hu,uu=v&&(!lu||hu&&8<hu&&11>=hu),zu=String.fromCharCode(32),cf=!1;function bf(le,Ce){switch(le){case"keyup":return jc.indexOf(Ce.keyCode)!==-1;case"keydown":return Ce.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cu(le){return le=le.detail,typeof le=="object"&&"data"in le?le.data:null}var rf=!1;function Bu(le,Ce){switch(le){case"compositionend":return Cu(Ce);case"keypress":return Ce.which!==32?null:(cf=!0,zu);case"textInput":return le=Ce.data,le===zu&&cf?null:le;default:return null}}function Tf(le,Ce){if(rf)return le==="compositionend"||!lu&&bf(le,Ce)?(le=ms(),Il=ol=Bo=null,rf=!1,le):null;switch(le){case"paste":return null;case"keypress":if(!(Ce.ctrlKey||Ce.altKey||Ce.metaKey)||Ce.ctrlKey&&Ce.altKey){if(Ce.char&&1<Ce.char.length)return Ce.char;if(Ce.which)return String.fromCharCode(Ce.which)}return null;case"compositionend":return uu&&Ce.locale!=="ko"?null:Ce.data;default:return null}}var ed={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fd(le){var Ce=le&&le.nodeName&&le.nodeName.toLowerCase();return Ce==="input"?!!ed[le.type]:Ce==="textarea"}function Pd(le,Ce,Xe,vn){bt(vn),Ce=tp(Ce,"onChange"),0<Ce.length&&(Xe=new Wl("onChange","change",null,Xe,vn),le.push({event:Xe,listeners:Ce}))}var Nc=null,eu=null;function If(le){Wu(le,0)}function $f(le){var Ce=dr(le);if(Vt(Ce))return le}function Te(le,Ce){if(le==="change")return Ce}var _t=!1;if(v){var Vn;if(v){var br="oninput"in document;if(!br){var tn=document.createElement("div");tn.setAttribute("oninput","return;"),br=typeof tn.oninput=="function"}Vn=br}else Vn=!1;_t=Vn&&(!document.documentMode||9<document.documentMode)}function Pt(){Nc&&(Nc.detachEvent("onpropertychange",on),eu=Nc=null)}function on(le){if(le.propertyName==="value"&&$f(eu)){var Ce=[];if(Pd(Ce,eu,le,rr(le)),le=If,kt)le(Ce);else{kt=!0;try{be(le,Ce)}finally{kt=!1,vt()}}}}function _n(le,Ce,Xe){le==="focusin"?(Pt(),Nc=Ce,eu=Xe,Nc.attachEvent("onpropertychange",on)):le==="focusout"&&Pt()}function ir(le){if(le==="selectionchange"||le==="keyup"||le==="keydown")return $f(eu)}function xr(le,Ce){if(le==="click")return $f(Ce)}function aa(le,Ce){if(le==="input"||le==="change")return $f(Ce)}function oi(le,Ce){return le===Ce&&(le!==0||1/le==1/Ce)||le!==le&&Ce!==Ce}var ni=typeof Object.is=="function"?Object.is:oi,yi=Object.prototype.hasOwnProperty;function Zo(le,Ce){if(ni(le,Ce))return!0;if(typeof le!="object"||le===null||typeof Ce!="object"||Ce===null)return!1;var Xe=Object.keys(le),vn=Object.keys(Ce);if(Xe.length!==vn.length)return!1;for(vn=0;vn<Xe.length;vn++)if(!yi.call(Ce,Xe[vn])||!ni(le[Xe[vn]],Ce[Xe[vn]]))return!1;return!0}function is(le){for(;le&&le.firstChild;)le=le.firstChild;return le}function mo(le,Ce){var Xe=is(le);le=0;for(var vn;Xe;){if(Xe.nodeType===3){if(vn=le+Xe.textContent.length,le<=Ce&&vn>=Ce)return{node:Xe,offset:Ce-le};le=vn}e:{for(;Xe;){if(Xe.nextSibling){Xe=Xe.nextSibling;break e}Xe=Xe.parentNode}Xe=void 0}Xe=is(Xe)}}function Ml(le,Ce){return le&&Ce?le===Ce?!0:le&&le.nodeType===3?!1:Ce&&Ce.nodeType===3?Ml(le,Ce.parentNode):"contains"in le?le.contains(Ce):le.compareDocumentPosition?!!(le.compareDocumentPosition(Ce)&16):!1:!1}function yc(){for(var le=window,Ce=gt();Ce instanceof le.HTMLIFrameElement;){try{var Xe=typeof Ce.contentWindow.location.href=="string"}catch(vn){Xe=!1}if(Xe)le=Ce.contentWindow;else break;Ce=gt(le.document)}return Ce}function oa(le){var Ce=le&&le.nodeName&&le.nodeName.toLowerCase();return Ce&&(Ce==="input"&&(le.type==="text"||le.type==="search"||le.type==="tel"||le.type==="url"||le.type==="password")||Ce==="textarea"||le.contentEditable==="true")}var sl=v&&"documentMode"in document&&11>=document.documentMode,fl=null,bc=null,Rf=null,Ms=!1;function ff(le,Ce,Xe){var vn=Xe.window===Xe?Xe.document:Xe.nodeType===9?Xe:Xe.ownerDocument;Ms||fl==null||fl!==gt(vn)||(vn=fl,"selectionStart"in vn&&oa(vn)?vn={start:vn.selectionStart,end:vn.selectionEnd}:(vn=(vn.ownerDocument&&vn.ownerDocument.defaultView||window).getSelection(),vn={anchorNode:vn.anchorNode,anchorOffset:vn.anchorOffset,focusNode:vn.focusNode,focusOffset:vn.focusOffset}),Rf&&Zo(Rf,vn)||(Rf=vn,vn=tp(bc,"onSelect"),0<vn.length&&(Ce=new Wl("onSelect","select",null,Ce,Xe),le.push({event:Ce,listeners:vn}),Ce.target=fl)))}vl("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),vl("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),vl(Os,2);for(var Df="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ff=0;Ff<Df.length;Ff++)cs.set(Df[Ff],0);b("onMouseEnter",["mouseout","mouseover"]),b("onMouseLeave",["mouseout","mouseover"]),b("onPointerEnter",["pointerout","pointerover"]),b("onPointerLeave",["pointerout","pointerover"]),m("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),m("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),m("onBeforeInput",["compositionend","keypress","textInput","paste"]),m("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),m("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),m("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),xf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Kf));function Sc(le,Ce,Xe){var vn=le.type||"unknown-event";le.currentTarget=Xe,_r(vn,Ce,void 0,le),le.currentTarget=null}function Wu(le,Ce){Ce=(Ce&4)!=0;for(var Xe=0;Xe<le.length;Xe++){var vn=le[Xe],or=vn.event;vn=vn.listeners;e:{var Qr=void 0;if(Ce)for(var Oa=vn.length-1;0<=Oa;Oa--){var ki=vn[Oa],Oo=ki.instance,cl=ki.currentTarget;if(ki=ki.listener,Oo!==Qr&&or.isPropagationStopped())break e;Sc(or,ki,cl),Qr=Oo}else for(Oa=0;Oa<vn.length;Oa++){if(ki=vn[Oa],Oo=ki.instance,cl=ki.currentTarget,ki=ki.listener,Oo!==Qr&&or.isPropagationStopped())break e;Sc(or,ki,cl),Qr=Oo}}}if(En)throw le=Gn,En=!1,Gn=null,le}function Du(le,Ce){var Xe=la(Ce),vn=le+"__bubble";Xe.has(vn)||($c(Ce,le,2,!1),Xe.add(vn))}var Gd="_reactListening"+Math.random().toString(36).slice(2);function gf(le){le[Gd]||(le[Gd]=!0,M.forEach(function(Ce){xf.has(Ce)||Vp(Ce,!1,le,null),Vp(Ce,!0,le,null)}))}function Vp(le,Ce,Xe,vn){var or=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,Qr=Xe;if(le==="selectionchange"&&Xe.nodeType!==9&&(Qr=Xe.ownerDocument),vn!==null&&!Ce&&xf.has(le)){if(le!=="scroll")return;or|=2,Qr=vn}var Oa=la(Qr),ki=le+"__"+(Ce?"capture":"bubble");Oa.has(ki)||(Ce&&(or|=4),$c(Qr,le,or,Ce),Oa.add(ki))}function $c(le,Ce,Xe,vn){var or=cs.get(Ce);switch(or===void 0?2:or){case 0:or=ao;break;case 1:or=Mi;break;default:or=Eo}Xe=or.bind(null,Ce,Xe,le),or=void 0,!mt||Ce!=="touchstart"&&Ce!=="touchmove"&&Ce!=="wheel"||(or=!0),vn?or!==void 0?le.addEventListener(Ce,Xe,{capture:!0,passive:or}):le.addEventListener(Ce,Xe,!0):or!==void 0?le.addEventListener(Ce,Xe,{passive:or}):le.addEventListener(Ce,Xe,!1)}function Yl(le,Ce,Xe,vn,or){var Qr=vn;if((Ce&1)==0&&(Ce&2)==0&&vn!==null)e:for(;;){if(vn===null)return;var Oa=vn.tag;if(Oa===3||Oa===4){var ki=vn.stateNode.containerInfo;if(ki===or||ki.nodeType===8&&ki.parentNode===or)break;if(Oa===4)for(Oa=vn.return;Oa!==null;){var Oo=Oa.tag;if((Oo===3||Oo===4)&&(Oo=Oa.stateNode.containerInfo,Oo===or||Oo.nodeType===8&&Oo.parentNode===or))return;Oa=Oa.return}for(;ki!==null;){if(Oa=$s(ki),Oa===null)return;if(Oo=Oa.tag,Oo===5||Oo===6){vn=Qr=Oa;continue e}ki=ki.parentNode}}vn=vn.return}Ct(function(){var cl=Qr,Lu=rr(Xe),Dd=[];e:{var pc=fs.get(le);if(pc!==void 0){var Uf=Wl,bd=le;switch(le){case"keypress":if(mc(Xe)===0)break e;case"keydown":case"keyup":Uf=ku;break;case"focusin":bd="focus",Uf=mi;break;case"focusout":bd="blur",Uf=mi;break;case"beforeblur":case"afterblur":Uf=mi;break;case"click":if(Xe.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Uf=Ti;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Uf=da;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Uf=Hc;break;case ei:case Do:case yo:Uf=al;break;case to:Uf=ws;break;case"scroll":Uf=Ls;break;case"wheel":Uf=Tc;break;case"copy":case"cut":case"paste":Uf=Xs;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Uf=Zu}var Cf=(Ce&4)!=0,ss=!Cf&&le==="scroll",Uo=Cf?pc!==null?pc+"Capture":null:pc;Cf=[];for(var hs=cl,jl;hs!==null;){jl=hs;var Gl=jl.stateNode;if(jl.tag===5&&Gl!==null&&(jl=Gl,Uo!==null&&(Gl=Bt(hs,Uo),Gl!=null&&Cf.push(Sp(hs,Gl,jl)))),ss)break;hs=hs.return}0<Cf.length&&(pc=new Uf(pc,bd,null,Xe,Lu),Dd.push({event:pc,listeners:Cf}))}}if((Ce&7)==0){e:{if(pc=le==="mouseover"||le==="pointerover",Uf=le==="mouseout"||le==="pointerout",pc&&(Ce&16)==0&&(bd=Xe.relatedTarget||Xe.fromElement)&&($s(bd)||bd[Zs]))break e;if((Uf||pc)&&(pc=Lu.window===Lu?Lu:(pc=Lu.ownerDocument)?pc.defaultView||pc.parentWindow:window,Uf?(bd=Xe.relatedTarget||Xe.toElement,Uf=cl,bd=bd?$s(bd):null,bd!==null&&(ss=na(bd),bd!==ss||bd.tag!==5&&bd.tag!==6)&&(bd=null)):(Uf=null,bd=cl),Uf!==bd)){if(Cf=Ti,Gl="onMouseLeave",Uo="onMouseEnter",hs="mouse",(le==="pointerout"||le==="pointerover")&&(Cf=Zu,Gl="onPointerLeave",Uo="onPointerEnter",hs="pointer"),ss=Uf==null?pc:dr(Uf),jl=bd==null?pc:dr(bd),pc=new Cf(Gl,hs+"leave",Uf,Xe,Lu),pc.target=ss,pc.relatedTarget=jl,Gl=null,$s(Lu)===cl&&(Cf=new Cf(Uo,hs+"enter",bd,Xe,Lu),Cf.target=jl,Cf.relatedTarget=ss,Gl=Cf),ss=Gl,Uf&&bd)t:{for(Cf=Uf,Uo=bd,hs=0,jl=Cf;jl;jl=Rp(jl))hs++;for(jl=0,Gl=Uo;Gl;Gl=Rp(Gl))jl++;for(;0<hs-jl;)Cf=Rp(Cf),hs--;for(;0<jl-hs;)Uo=Rp(Uo),jl--;for(;hs--;){if(Cf===Uo||Uo!==null&&Cf===Uo.alternate)break t;Cf=Rp(Cf),Uo=Rp(Uo)}Cf=null}else Cf=null;Uf!==null&&df(Dd,pc,Uf,Cf,!1),bd!==null&&ss!==null&&df(Dd,ss,bd,Cf,!0)}}e:{if(pc=cl?dr(cl):window,Uf=pc.nodeName&&pc.nodeName.toLowerCase(),Uf==="select"||Uf==="input"&&pc.type==="file")var Jd=Te;else if(Fd(pc))if(_t)Jd=aa;else{Jd=ir;var Ku=_n}else(Uf=pc.nodeName)&&Uf.toLowerCase()==="input"&&(pc.type==="checkbox"||pc.type==="radio")&&(Jd=xr);if(Jd&&(Jd=Jd(le,cl))){Pd(Dd,Jd,Xe,Lu);break e}Ku&&Ku(le,pc,cl),le==="focusout"&&(Ku=pc._wrapperState)&&Ku.controlled&&pc.type==="number"&&St(pc,"number",pc.value)}switch(Ku=cl?dr(cl):window,le){case"focusin":(Fd(Ku)||Ku.contentEditable==="true")&&(fl=Ku,bc=cl,Rf=null);break;case"focusout":Rf=bc=fl=null;break;case"mousedown":Ms=!0;break;case"contextmenu":case"mouseup":case"dragend":Ms=!1,ff(Dd,Xe,Lu);break;case"selectionchange":if(sl)break;case"keydown":case"keyup":ff(Dd,Xe,Lu)}var Nd;if(lu)e:{switch(le){case"compositionstart":var pp="onCompositionStart";break e;case"compositionend":pp="onCompositionEnd";break e;case"compositionupdate":pp="onCompositionUpdate";break e}pp=void 0}else rf?bf(le,Xe)&&(pp="onCompositionEnd"):le==="keydown"&&Xe.keyCode===229&&(pp="onCompositionStart");pp&&(uu&&Xe.locale!=="ko"&&(rf||pp!=="onCompositionStart"?pp==="onCompositionEnd"&&rf&&(Nd=ms()):(Bo=Lu,ol="value"in Bo?Bo.value:Bo.textContent,rf=!0)),Ku=tp(cl,pp),0<Ku.length&&(pp=new dl(pp,le,null,Xe,Lu),Dd.push({event:pp,listeners:Ku}),Nd?pp.data=Nd:(Nd=Cu(Xe),Nd!==null&&(pp.data=Nd)))),(Nd=of?Bu(le,Xe):Tf(le,Xe))&&(cl=tp(cl,"onBeforeInput"),0<cl.length&&(Lu=new dl("onBeforeInput","beforeinput",null,Xe,Lu),Dd.push({event:Lu,listeners:cl}),Lu.data=Nd))}Wu(Dd,Ce)})}function Sp(le,Ce,Xe){return{instance:le,listener:Ce,currentTarget:Xe}}function tp(le,Ce){for(var Xe=Ce+"Capture",vn=[];le!==null;){var or=le,Qr=or.stateNode;or.tag===5&&Qr!==null&&(or=Qr,Qr=Bt(le,Xe),Qr!=null&&vn.unshift(Sp(le,Qr,or)),Qr=Bt(le,Ce),Qr!=null&&vn.push(Sp(le,Qr,or))),le=le.return}return vn}function Rp(le){if(le===null)return null;do le=le.return;while(le&&le.tag!==5);return le||null}function df(le,Ce,Xe,vn,or){for(var Qr=Ce._reactName,Oa=[];Xe!==null&&Xe!==vn;){var ki=Xe,Oo=ki.alternate,cl=ki.stateNode;if(Oo!==null&&Oo===vn)break;ki.tag===5&&cl!==null&&(ki=cl,or?(Oo=Bt(Xe,Qr),Oo!=null&&Oa.unshift(Sp(Xe,Oo,ki))):or||(Oo=Bt(Xe,Qr),Oo!=null&&Oa.push(Sp(Xe,Oo,ki)))),Xe=Xe.return}Oa.length!==0&&le.push({event:Ce,listeners:Oa})}function uf(){}var Af=null,Wn=null;function ca(le,Ce){switch(le){case"button":case"input":case"select":case"textarea":return!!Ce.autoFocus}return!1}function ra(le,Ce){return le==="textarea"||le==="option"||le==="noscript"||typeof Ce.children=="string"||typeof Ce.children=="number"||typeof Ce.dangerouslySetInnerHTML=="object"&&Ce.dangerouslySetInnerHTML!==null&&Ce.dangerouslySetInnerHTML.__html!=null}var Na=typeof setTimeout=="function"?setTimeout:void 0,fi=typeof clearTimeout=="function"?clearTimeout:void 0;function so(le){le.nodeType===1?le.textContent="":le.nodeType===9&&(le=le.body,le!=null&&(le.textContent=""))}function vo(le){for(;le!=null;le=le.nextSibling){var Ce=le.nodeType;if(Ce===1||Ce===3)break}return le}function Ro(le){le=le.previousSibling;for(var Ce=0;le;){if(le.nodeType===8){var Xe=le.data;if(Xe==="$"||Xe==="$!"||Xe==="$?"){if(Ce===0)return le;Ce--}else Xe==="/$"&&Ce++}le=le.previousSibling}return null}var So=0;function el(le){return{$$typeof:fe,toString:le,valueOf:le}}var ul=Math.random().toString(36).slice(2),Xo="__reactFiber$"+ul,lo="__reactProps$"+ul,Zs="__reactContainer$"+ul,Gs="__reactEvents$"+ul;function $s(le){var Ce=le[Xo];if(Ce)return Ce;for(var Xe=le.parentNode;Xe;){if(Ce=Xe[Zs]||Xe[Xo]){if(Xe=Ce.alternate,Ce.child!==null||Xe!==null&&Xe.child!==null)for(le=Ro(le);le!==null;){if(Xe=le[Xo])return Xe;le=Ro(le)}return Ce}le=Xe,Xe=le.parentNode}return null}function Qn(le){return le=le[Xo]||le[Zs],!le||le.tag!==5&&le.tag!==6&&le.tag!==13&&le.tag!==3?null:le}function dr(le){if(le.tag===5||le.tag===6)return le.stateNode;throw Error(y(33))}function Xr(le){return le[lo]||null}function la(le){var Ce=le[Gs];return Ce===void 0&&(Ce=le[Gs]=new Set),Ce}var Ra=[],_i=-1;function ui(le){return{current:le}}function ho(le){0>_i||(le.current=Ra[_i],Ra[_i]=null,_i--)}function Oi(le,Ce){_i++,Ra[_i]=le.current,le.current=Ce}var Fo={},as=ui(Fo),Fs=ui(!1),Fr=Fo;function tl(le,Ce){var Xe=le.type.contextTypes;if(!Xe)return Fo;var vn=le.stateNode;if(vn&&vn.__reactInternalMemoizedUnmaskedChildContext===Ce)return vn.__reactInternalMemoizedMaskedChildContext;var or={},Qr;for(Qr in Xe)or[Qr]=Ce[Qr];return vn&&(le=le.stateNode,le.__reactInternalMemoizedUnmaskedChildContext=Ce,le.__reactInternalMemoizedMaskedChildContext=or),or}function Js(le){return le=le.childContextTypes,le!=null}function Us(){ho(Fs),ho(as)}function os(le,Ce,Xe){if(as.current!==Fo)throw Error(y(168));Oi(as,Ce),Oi(Fs,Xe)}function El(le,Ce,Xe){var vn=le.stateNode;if(le=Ce.childContextTypes,typeof vn.getChildContext!="function")return Xe;vn=vn.getChildContext();for(var or in vn)if(!(or in le))throw Error(y(108,et(Ce)||"Unknown",or));return g({},Xe,vn)}function Bs(le){return le=(le=le.stateNode)&&le.__reactInternalMemoizedMergedChildContext||Fo,Fr=as.current,Oi(as,le),Oi(Fs,Fs.current),!0}function gc(le,Ce,Xe){var vn=le.stateNode;if(!vn)throw Error(y(169));Xe?(le=El(le,Ce,Fr),vn.__reactInternalMemoizedMergedChildContext=le,ho(Fs),ho(as),Oi(as,le)):ho(Fs),Oi(Fs,Xe)}var kr=null,Sa=null,Hi=A.unstable_runWithPriority,Co=A.unstable_scheduleCallback,Ds=A.unstable_cancelCallback,Dl=A.unstable_shouldYield,Xc=A.unstable_requestPaint,Fl=A.unstable_now,Eu=A.unstable_getCurrentPriorityLevel,cc=A.unstable_ImmediatePriority,Hu=A.unstable_UserBlockingPriority,dc=A.unstable_NormalPriority,iu=A.unstable_LowPriority,Gc=A.unstable_IdlePriority,Jc={},pf=Xc!==void 0?Xc:function(){},hn=null,dn=null,tr=!1,Mn=Fl(),Lr=1e4>Mn?Fl:function(){return Fl()-Mn};function sa(){switch(Eu()){case cc:return 99;case Hu:return 98;case dc:return 97;case iu:return 96;case Gc:return 95;default:throw Error(y(332))}}function Ma(le){switch(le){case 99:return cc;case 98:return Hu;case 97:return dc;case 96:return iu;case 95:return Gc;default:throw Error(y(332))}}function Ia(le,Ce){return le=Ma(le),Hi(le,Ce)}function Ja(le,Ce,Xe){return le=Ma(le),Co(le,Ce,Xe)}function pi(){if(dn!==null){var le=dn;dn=null,Ds(le)}fo()}function fo(){if(!tr&&hn!==null){tr=!0;var le=0;try{var Ce=hn;Ia(99,function(){for(;le<Ce.length;le++){var Xe=Ce[le];do Xe=Xe(!0);while(Xe!==null)}}),hn=null}catch(Xe){throw hn!==null&&(hn=hn.slice(le+1)),Co(cc,pi),Xe}finally{tr=!1}}}var us=L.ReactCurrentBatchConfig;function xo(le,Ce){if(le&&le.defaultProps){Ce=g({},Ce),le=le.defaultProps;for(var Xe in le)Ce[Xe]===void 0&&(Ce[Xe]=le[Xe]);return Ce}return Ce}var Qo=ui(null),gs=null,ds=null,nl=null;function nc(){nl=ds=gs=null}function Kl(le){var Ce=Qo.current;ho(Qo),le.type._context._currentValue=Ce}function mu(le,Ce){for(;le!==null;){var Xe=le.alternate;if((le.childLanes&Ce)===Ce){if(Xe===null||(Xe.childLanes&Ce)===Ce)break;Xe.childLanes|=Ce}else le.childLanes|=Ce,Xe!==null&&(Xe.childLanes|=Ce);le=le.return}}function xc(le,Ce){gs=le,nl=ds=null,le=le.dependencies,le!==null&&le.firstContext!==null&&((le.lanes&Ce)!=0&&(Ou=!0),le.firstContext=null)}function Ll(le,Ce){if(nl!==le&&Ce!==!1&&Ce!==0)if((typeof Ce!="number"||Ce===1073741823)&&(nl=le,Ce=1073741823),Ce={context:le,observedBits:Ce,next:null},ds===null){if(gs===null)throw Error(y(308));ds=Ce,gs.dependencies={lanes:0,firstContext:Ce,responders:null}}else ds=ds.next=Ce;return le._currentValue}var wc=!1;function Xu(le){le.updateQueue={baseState:le.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function _u(le,Ce){le=le.updateQueue,Ce.updateQueue===le&&(Ce.updateQueue={baseState:le.baseState,firstBaseUpdate:le.firstBaseUpdate,lastBaseUpdate:le.lastBaseUpdate,shared:le.shared,effects:le.effects})}function wu(le,Ce){return{eventTime:le,lane:Ce,tag:0,payload:null,callback:null,next:null}}function fu(le,Ce){if(le=le.updateQueue,le!==null){le=le.shared;var Xe=le.pending;Xe===null?Ce.next=Ce:(Ce.next=Xe.next,Xe.next=Ce),le.pending=Ce}}function Kc(le,Ce){var Xe=le.updateQueue,vn=le.alternate;if(vn!==null&&(vn=vn.updateQueue,Xe===vn)){var or=null,Qr=null;if(Xe=Xe.firstBaseUpdate,Xe!==null){do{var Oa={eventTime:Xe.eventTime,lane:Xe.lane,tag:Xe.tag,payload:Xe.payload,callback:Xe.callback,next:null};Qr===null?or=Qr=Oa:Qr=Qr.next=Oa,Xe=Xe.next}while(Xe!==null);Qr===null?or=Qr=Ce:Qr=Qr.next=Ce}else or=Qr=Ce;Xe={baseState:vn.baseState,firstBaseUpdate:or,lastBaseUpdate:Qr,shared:vn.shared,effects:vn.effects},le.updateQueue=Xe;return}le=Xe.lastBaseUpdate,le===null?Xe.firstBaseUpdate=Ce:le.next=Ce,Xe.lastBaseUpdate=Ce}function td(le,Ce,Xe,vn){var or=le.updateQueue;wc=!1;var Qr=or.firstBaseUpdate,Oa=or.lastBaseUpdate,ki=or.shared.pending;if(ki!==null){or.shared.pending=null;var Oo=ki,cl=Oo.next;Oo.next=null,Oa===null?Qr=cl:Oa.next=cl,Oa=Oo;var Lu=le.alternate;if(Lu!==null){Lu=Lu.updateQueue;var Dd=Lu.lastBaseUpdate;Dd!==Oa&&(Dd===null?Lu.firstBaseUpdate=cl:Dd.next=cl,Lu.lastBaseUpdate=Oo)}}if(Qr!==null){Dd=or.baseState,Oa=0,Lu=cl=Oo=null;do{ki=Qr.lane;var pc=Qr.eventTime;if((vn&ki)===ki){Lu!==null&&(Lu=Lu.next={eventTime:pc,lane:0,tag:Qr.tag,payload:Qr.payload,callback:Qr.callback,next:null});e:{var Uf=le,bd=Qr;switch(ki=Ce,pc=Xe,bd.tag){case 1:if(Uf=bd.payload,typeof Uf=="function"){Dd=Uf.call(pc,Dd,ki);break e}Dd=Uf;break e;case 3:Uf.flags=Uf.flags&-4097|64;case 0:if(Uf=bd.payload,ki=typeof Uf=="function"?Uf.call(pc,Dd,ki):Uf,ki==null)break e;Dd=g({},Dd,ki);break e;case 2:wc=!0}}Qr.callback!==null&&(le.flags|=32,ki=or.effects,ki===null?or.effects=[Qr]:ki.push(Qr))}else pc={eventTime:pc,lane:ki,tag:Qr.tag,payload:Qr.payload,callback:Qr.callback,next:null},Lu===null?(cl=Lu=pc,Oo=Dd):Lu=Lu.next=pc,Oa|=ki;if(Qr=Qr.next,Qr===null){if(ki=or.shared.pending,ki===null)break;Qr=ki.next,ki.next=null,or.lastBaseUpdate=ki,or.shared.pending=null}}while(1);Lu===null&&(Oo=Dd),or.baseState=Oo,or.firstBaseUpdate=cl,or.lastBaseUpdate=Lu,Tl|=Oa,le.lanes=Oa,le.memoizedState=Dd}}function Ic(le,Ce,Xe){if(le=Ce.effects,Ce.effects=null,le!==null)for(Ce=0;Ce<le.length;Ce++){var vn=le[Ce],or=vn.callback;if(or!==null){if(vn.callback=null,vn=Xe,typeof or!="function")throw Error(y(191,or));or.call(vn)}}}var tu=new x.Component().refs;function jf(le,Ce,Xe,vn){Ce=le.memoizedState,Xe=Xe(vn,Ce),Xe=Xe==null?Ce:g({},Ce,Xe),le.memoizedState=Xe,le.lanes===0&&(le.updateQueue.baseState=Xe)}var Tu={isMounted:function(le){return(le=le._reactInternals)?na(le)===le:!1},enqueueSetState:function(le,Ce,Xe){le=le._reactInternals;var vn=_s(),or=ys(le),Qr=wu(vn,or);Qr.payload=Ce,Xe!=null&&(Qr.callback=Xe),fu(le,Qr),qs(le,or,vn)},enqueueReplaceState:function(le,Ce,Xe){le=le._reactInternals;var vn=_s(),or=ys(le),Qr=wu(vn,or);Qr.tag=1,Qr.payload=Ce,Xe!=null&&(Qr.callback=Xe),fu(le,Qr),qs(le,or,vn)},enqueueForceUpdate:function(le,Ce){le=le._reactInternals;var Xe=_s(),vn=ys(le),or=wu(Xe,vn);or.tag=2,Ce!=null&&(or.callback=Ce),fu(le,or),qs(le,vn,Xe)}};function Ed(le,Ce,Xe,vn,or,Qr,Oa){return le=le.stateNode,typeof le.shouldComponentUpdate=="function"?le.shouldComponentUpdate(vn,Qr,Oa):Ce.prototype&&Ce.prototype.isPureReactComponent?!Zo(Xe,vn)||!Zo(or,Qr):!0}function vd(le,Ce,Xe){var vn=!1,or=Fo,Qr=Ce.contextType;return typeof Qr=="object"&&Qr!==null?Qr=Ll(Qr):(or=Js(Ce)?Fr:as.current,vn=Ce.contextTypes,Qr=(vn=vn!=null)?tl(le,or):Fo),Ce=new Ce(Xe,Qr),le.memoizedState=Ce.state!==null&&Ce.state!==void 0?Ce.state:null,Ce.updater=Tu,le.stateNode=Ce,Ce._reactInternals=le,vn&&(le=le.stateNode,le.__reactInternalMemoizedUnmaskedChildContext=or,le.__reactInternalMemoizedMaskedChildContext=Qr),Ce}function Gu(le,Ce,Xe,vn){le=Ce.state,typeof Ce.componentWillReceiveProps=="function"&&Ce.componentWillReceiveProps(Xe,vn),typeof Ce.UNSAFE_componentWillReceiveProps=="function"&&Ce.UNSAFE_componentWillReceiveProps(Xe,vn),Ce.state!==le&&Tu.enqueueReplaceState(Ce,Ce.state,null)}function Op(le,Ce,Xe,vn){var or=le.stateNode;or.props=Xe,or.state=le.memoizedState,or.refs=tu,Xu(le);var Qr=Ce.contextType;typeof Qr=="object"&&Qr!==null?or.context=Ll(Qr):(Qr=Js(Ce)?Fr:as.current,or.context=tl(le,Qr)),td(le,Xe,or,vn),or.state=le.memoizedState,Qr=Ce.getDerivedStateFromProps,typeof Qr=="function"&&(jf(le,Ce,Qr,Xe),or.state=le.memoizedState),typeof Ce.getDerivedStateFromProps=="function"||typeof or.getSnapshotBeforeUpdate=="function"||typeof or.UNSAFE_componentWillMount!="function"&&typeof or.componentWillMount!="function"||(Ce=or.state,typeof or.componentWillMount=="function"&&or.componentWillMount(),typeof or.UNSAFE_componentWillMount=="function"&&or.UNSAFE_componentWillMount(),Ce!==or.state&&Tu.enqueueReplaceState(or,or.state,null),td(le,Xe,or,vn),or.state=le.memoizedState),typeof or.componentDidMount=="function"&&(le.flags|=4)}var np=Array.isArray;function $d(le,Ce,Xe){if(le=Xe.ref,le!==null&&typeof le!="function"&&typeof le!="object"){if(Xe._owner){if(Xe=Xe._owner,Xe){if(Xe.tag!==1)throw Error(y(309));var vn=Xe.stateNode}if(!vn)throw Error(y(147,le));var or=""+le;return Ce!==null&&Ce.ref!==null&&typeof Ce.ref=="function"&&Ce.ref._stringRef===or?Ce.ref:(Ce=function(Qr){var Oa=vn.refs;Oa===tu&&(Oa=vn.refs={}),Qr===null?delete Oa[or]:Oa[or]=Qr},Ce._stringRef=or,Ce)}if(typeof le!="string")throw Error(y(284));if(!Xe._owner)throw Error(y(290,le))}return le}function hd(le,Ce){if(le.type!=="textarea")throw Error(y(31,Object.prototype.toString.call(Ce)==="[object Object]"?"object with keys {"+Object.keys(Ce).join(", ")+"}":Ce))}function Ip(le){function Ce(ss,Uo){if(le){var hs=ss.lastEffect;hs!==null?(hs.nextEffect=Uo,ss.lastEffect=Uo):ss.firstEffect=ss.lastEffect=Uo,Uo.nextEffect=null,Uo.flags=8}}function Xe(ss,Uo){if(!le)return null;for(;Uo!==null;)Ce(ss,Uo),Uo=Uo.sibling;return null}function vn(ss,Uo){for(ss=new Map;Uo!==null;)Uo.key!==null?ss.set(Uo.key,Uo):ss.set(Uo.index,Uo),Uo=Uo.sibling;return ss}function or(ss,Uo){return ss=Zi(ss,Uo),ss.index=0,ss.sibling=null,ss}function Qr(ss,Uo,hs){return ss.index=hs,le?(hs=ss.alternate,hs!==null?(hs=hs.index,hs<Uo?(ss.flags=2,Uo):hs):(ss.flags=2,Uo)):Uo}function Oa(ss){return le&&ss.alternate===null&&(ss.flags=2),ss}function ki(ss,Uo,hs,jl){return Uo===null||Uo.tag!==6?(Uo=Vs(hs,ss.mode,jl),Uo.return=ss,Uo):(Uo=or(Uo,hs),Uo.return=ss,Uo)}function Oo(ss,Uo,hs,jl){return Uo!==null&&Uo.elementType===hs.type?(jl=or(Uo,hs.props),jl.ref=$d(ss,Uo,hs),jl.return=ss,jl):(jl=Va(hs.type,hs.key,hs.props,null,ss.mode,jl),jl.ref=$d(ss,Uo,hs),jl.return=ss,jl)}function cl(ss,Uo,hs,jl){return Uo===null||Uo.tag!==4||Uo.stateNode.containerInfo!==hs.containerInfo||Uo.stateNode.implementation!==hs.implementation?(Uo=Cs(hs,ss.mode,jl),Uo.return=ss,Uo):(Uo=or(Uo,hs.children||[]),Uo.return=ss,Uo)}function Lu(ss,Uo,hs,jl,Gl){return Uo===null||Uo.tag!==7?(Uo=Bi(hs,ss.mode,jl,Gl),Uo.return=ss,Uo):(Uo=or(Uo,hs),Uo.return=ss,Uo)}function Dd(ss,Uo,hs){if(typeof Uo=="string"||typeof Uo=="number")return Uo=Vs(""+Uo,ss.mode,hs),Uo.return=ss,Uo;if(typeof Uo=="object"&&Uo!==null){switch(Uo.$$typeof){case V:return hs=Va(Uo.type,Uo.key,Uo.props,null,ss.mode,hs),hs.ref=$d(ss,null,Uo),hs.return=ss,hs;case $:return Uo=Cs(Uo,ss.mode,hs),Uo.return=ss,Uo}if(np(Uo)||Je(Uo))return Uo=Bi(Uo,ss.mode,hs,null),Uo.return=ss,Uo;hd(ss,Uo)}return null}function pc(ss,Uo,hs,jl){var Gl=Uo!==null?Uo.key:null;if(typeof hs=="string"||typeof hs=="number")return Gl!==null?null:ki(ss,Uo,""+hs,jl);if(typeof hs=="object"&&hs!==null){switch(hs.$$typeof){case V:return hs.key===Gl?hs.type===G?Lu(ss,Uo,hs.props.children,jl,Gl):Oo(ss,Uo,hs,jl):null;case $:return hs.key===Gl?cl(ss,Uo,hs,jl):null}if(np(hs)||Je(hs))return Gl!==null?null:Lu(ss,Uo,hs,jl,null);hd(ss,hs)}return null}function Uf(ss,Uo,hs,jl,Gl){if(typeof jl=="string"||typeof jl=="number")return ss=ss.get(hs)||null,ki(Uo,ss,""+jl,Gl);if(typeof jl=="object"&&jl!==null){switch(jl.$$typeof){case V:return ss=ss.get(jl.key===null?hs:jl.key)||null,jl.type===G?Lu(Uo,ss,jl.props.children,Gl,jl.key):Oo(Uo,ss,jl,Gl);case $:return ss=ss.get(jl.key===null?hs:jl.key)||null,cl(Uo,ss,jl,Gl)}if(np(jl)||Je(jl))return ss=ss.get(hs)||null,Lu(Uo,ss,jl,Gl,null);hd(Uo,jl)}return null}function bd(ss,Uo,hs,jl){for(var Gl=null,Jd=null,Ku=Uo,Nd=Uo=0,pp=null;Ku!==null&&Nd<hs.length;Nd++){Ku.index>Nd?(pp=Ku,Ku=null):pp=Ku.sibling;var Rd=pc(ss,Ku,hs[Nd],jl);if(Rd===null){Ku===null&&(Ku=pp);break}le&&Ku&&Rd.alternate===null&&Ce(ss,Ku),Uo=Qr(Rd,Uo,Nd),Jd===null?Gl=Rd:Jd.sibling=Rd,Jd=Rd,Ku=pp}if(Nd===hs.length)return Xe(ss,Ku),Gl;if(Ku===null){for(;Nd<hs.length;Nd++)Ku=Dd(ss,hs[Nd],jl),Ku!==null&&(Uo=Qr(Ku,Uo,Nd),Jd===null?Gl=Ku:Jd.sibling=Ku,Jd=Ku);return Gl}for(Ku=vn(ss,Ku);Nd<hs.length;Nd++)pp=Uf(Ku,ss,Nd,hs[Nd],jl),pp!==null&&(le&&pp.alternate!==null&&Ku.delete(pp.key===null?Nd:pp.key),Uo=Qr(pp,Uo,Nd),Jd===null?Gl=pp:Jd.sibling=pp,Jd=pp);return le&&Ku.forEach(function(uh){return Ce(ss,uh)}),Gl}function Cf(ss,Uo,hs,jl){var Gl=Je(hs);if(typeof Gl!="function")throw Error(y(150));if(hs=Gl.call(hs),hs==null)throw Error(y(151));for(var Jd=Gl=null,Ku=Uo,Nd=Uo=0,pp=null,Rd=hs.next();Ku!==null&&!Rd.done;Nd++,Rd=hs.next()){Ku.index>Nd?(pp=Ku,Ku=null):pp=Ku.sibling;var uh=pc(ss,Ku,Rd.value,jl);if(uh===null){Ku===null&&(Ku=pp);break}le&&Ku&&uh.alternate===null&&Ce(ss,Ku),Uo=Qr(uh,Uo,Nd),Jd===null?Gl=uh:Jd.sibling=uh,Jd=uh,Ku=pp}if(Rd.done)return Xe(ss,Ku),Gl;if(Ku===null){for(;!Rd.done;Nd++,Rd=hs.next())Rd=Dd(ss,Rd.value,jl),Rd!==null&&(Uo=Qr(Rd,Uo,Nd),Jd===null?Gl=Rd:Jd.sibling=Rd,Jd=Rd);return Gl}for(Ku=vn(ss,Ku);!Rd.done;Nd++,Rd=hs.next())Rd=Uf(Ku,ss,Nd,Rd.value,jl),Rd!==null&&(le&&Rd.alternate!==null&&Ku.delete(Rd.key===null?Nd:Rd.key),Uo=Qr(Rd,Uo,Nd),Jd===null?Gl=Rd:Jd.sibling=Rd,Jd=Rd);return le&&Ku.forEach(function(yC){return Ce(ss,yC)}),Gl}return function(ss,Uo,hs,jl){var Gl=typeof hs=="object"&&hs!==null&&hs.type===G&&hs.key===null;Gl&&(hs=hs.props.children);var Jd=typeof hs=="object"&&hs!==null;if(Jd)switch(hs.$$typeof){case V:e:{for(Jd=hs.key,Gl=Uo;Gl!==null;){if(Gl.key===Jd){switch(Gl.tag){case 7:if(hs.type===G){Xe(ss,Gl.sibling),Uo=or(Gl,hs.props.children),Uo.return=ss,ss=Uo;break e}break;default:if(Gl.elementType===hs.type){Xe(ss,Gl.sibling),Uo=or(Gl,hs.props),Uo.ref=$d(ss,Gl,hs),Uo.return=ss,ss=Uo;break e}}Xe(ss,Gl);break}else Ce(ss,Gl);Gl=Gl.sibling}hs.type===G?(Uo=Bi(hs.props.children,ss.mode,jl,hs.key),Uo.return=ss,ss=Uo):(jl=Va(hs.type,hs.key,hs.props,null,ss.mode,jl),jl.ref=$d(ss,Uo,hs),jl.return=ss,ss=jl)}return Oa(ss);case $:e:{for(Gl=hs.key;Uo!==null;){if(Uo.key===Gl)if(Uo.tag===4&&Uo.stateNode.containerInfo===hs.containerInfo&&Uo.stateNode.implementation===hs.implementation){Xe(ss,Uo.sibling),Uo=or(Uo,hs.children||[]),Uo.return=ss,ss=Uo;break e}else{Xe(ss,Uo);break}else Ce(ss,Uo);Uo=Uo.sibling}Uo=Cs(hs,ss.mode,jl),Uo.return=ss,ss=Uo}return Oa(ss)}if(typeof hs=="string"||typeof hs=="number")return hs=""+hs,Uo!==null&&Uo.tag===6?(Xe(ss,Uo.sibling),Uo=or(Uo,hs),Uo.return=ss,ss=Uo):(Xe(ss,Uo),Uo=Vs(hs,ss.mode,jl),Uo.return=ss,ss=Uo),Oa(ss);if(np(hs))return bd(ss,Uo,hs,jl);if(Je(hs))return Cf(ss,Uo,hs,jl);if(Jd&&hd(ss,hs),typeof hs=="undefined"&&!Gl)switch(ss.tag){case 1:case 22:case 0:case 11:case 15:throw Error(y(152,et(ss.type)||"Component"))}return Xe(ss,Uo)}}var dd=Ip(!0),cr=Ip(!1),un={},Jn=ui(un),Xn=ui(un),Vr=ui(un);function Zn(le){if(le===un)throw Error(y(174));return le}function pa(le,Ce){switch(Oi(Vr,Ce),Oi(Xn,le),Oi(Jn,un),le=Ce.nodeType,le){case 9:case 11:Ce=(Ce=Ce.documentElement)?Ce.namespaceURI:ot(null,"");break;default:le=le===8?Ce.parentNode:Ce,Ce=le.namespaceURI||null,le=le.tagName,Ce=ot(Ce,le)}ho(Jn),Oi(Jn,Ce)}function Ha(){ho(Jn),ho(Xn),ho(Vr)}function gi(le){Zn(Vr.current);var Ce=Zn(Jn.current),Xe=ot(Ce,le.type);Ce!==Xe&&(Oi(Xn,le),Oi(Jn,Xe))}function co(le){Xn.current===le&&(ho(Jn),ho(Xn))}var No=ui(0);function Ko(le){for(var Ce=le;Ce!==null;){if(Ce.tag===13){var Xe=Ce.memoizedState;if(Xe!==null&&(Xe=Xe.dehydrated,Xe===null||Xe.data==="$?"||Xe.data==="$!"))return Ce}else if(Ce.tag===19&&Ce.memoizedProps.revealOrder!==void 0){if((Ce.flags&64)!=0)return Ce}else if(Ce.child!==null){Ce.child.return=Ce,Ce=Ce.child;continue}if(Ce===le)break;for(;Ce.sibling===null;){if(Ce.return===null||Ce.return===le)return null;Ce=Ce.return}Ce.sibling.return=Ce.return,Ce=Ce.sibling}return null}var Jo=null,gl=null,js=!1;function Zl(le,Ce){var Xe=Gi(5,null,null,0);Xe.elementType="DELETED",Xe.type="DELETED",Xe.stateNode=Ce,Xe.return=le,Xe.flags=8,le.lastEffect!==null?(le.lastEffect.nextEffect=Xe,le.lastEffect=Xe):le.firstEffect=le.lastEffect=Xe}function ko(le,Ce){switch(le.tag){case 5:var Xe=le.type;return Ce=Ce.nodeType!==1||Xe.toLowerCase()!==Ce.nodeName.toLowerCase()?null:Ce,Ce!==null?(le.stateNode=Ce,!0):!1;case 6:return Ce=le.pendingProps===""||Ce.nodeType!==3?null:Ce,Ce!==null?(le.stateNode=Ce,!0):!1;case 13:return!1;default:return!1}}function te(le){if(js){var Ce=gl;if(Ce){var Xe=Ce;if(!ko(le,Ce)){if(Ce=vo(Xe.nextSibling),!Ce||!ko(le,Ce)){le.flags=le.flags&-1025|2,js=!1,Jo=le;return}Zl(Jo,Xe)}Jo=le,gl=vo(Ce.firstChild)}else le.flags=le.flags&-1025|2,js=!1,Jo=le}}function Me(le){for(le=le.return;le!==null&&le.tag!==5&&le.tag!==3&&le.tag!==13;)le=le.return;Jo=le}function ft(le){if(le!==Jo)return!1;if(!js)return Me(le),js=!0,!1;var Ce=le.type;if(le.tag!==5||Ce!=="head"&&Ce!=="body"&&!ra(Ce,le.memoizedProps))for(Ce=gl;Ce;)Zl(le,Ce),Ce=vo(Ce.nextSibling);if(Me(le),le.tag===13){if(le=le.memoizedState,le=le!==null?le.dehydrated:null,!le)throw Error(y(317));e:{for(le=le.nextSibling,Ce=0;le;){if(le.nodeType===8){var Xe=le.data;if(Xe==="/$"){if(Ce===0){gl=vo(le.nextSibling);break e}Ce--}else Xe!=="$"&&Xe!=="$!"&&Xe!=="$?"||Ce++}le=le.nextSibling}gl=null}}else gl=Jo?vo(le.stateNode.nextSibling):null;return!0}function Nt(){gl=Jo=null,js=!1}var xn=[];function Yr(){for(var le=0;le<xn.length;le++)xn[le]._workInProgressVersionPrimary=null;xn.length=0}var qa=L.ReactCurrentDispatcher,Es=L.ReactCurrentBatchConfig,Qs=0,Hl=null,Lc=null,Pu=null,Yf=!1,yv=!1;function Cp(){throw Error(y(321))}function kv(le,Ce){if(Ce===null)return!1;for(var Xe=0;Xe<Ce.length&&Xe<le.length;Xe++)if(!ni(le[Xe],Ce[Xe]))return!1;return!0}function Nv(le,Ce,Xe,vn,or,Qr){if(Qs=Qr,Hl=Ce,Ce.memoizedState=null,Ce.updateQueue=null,Ce.lanes=0,qa.current=le===null||le.memoizedState===null?Ju:Bc,le=Xe(vn,or),yv){Qr=0;do{if(yv=!1,!(25>Qr))throw Error(y(301));Qr+=1,Pu=Lc=null,Ce.updateQueue=null,qa.current=$u,le=Xe(vn,or)}while(yv)}if(qa.current=Ac,Ce=Lc!==null&&Lc.next!==null,Qs=0,Pu=Lc=Hl=null,Yf=!1,Ce)throw Error(y(300));return le}function Pv(){var le={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pu===null?Hl.memoizedState=Pu=le:Pu=Pu.next=le,Pu}function sp(){if(Lc===null){var le=Hl.alternate;le=le!==null?le.memoizedState:null}else le=Lc.next;var Ce=Pu===null?Hl.memoizedState:Pu.next;if(Ce!==null)Pu=Ce,Lc=le;else{if(le===null)throw Error(y(310));Lc=le,le={memoizedState:Lc.memoizedState,baseState:Lc.baseState,baseQueue:Lc.baseQueue,queue:Lc.queue,next:null},Pu===null?Hl.memoizedState=Pu=le:Pu=Pu.next=le}return Pu}function Wp(le,Ce){return typeof Ce=="function"?Ce(le):Ce}function $h(le){var Ce=sp(),Xe=Ce.queue;if(Xe===null)throw Error(y(311));Xe.lastRenderedReducer=le;var vn=Lc,or=vn.baseQueue,Qr=Xe.pending;if(Qr!==null){if(or!==null){var Oa=or.next;or.next=Qr.next,Qr.next=Oa}vn.baseQueue=or=Qr,Xe.pending=null}if(or!==null){or=or.next,vn=vn.baseState;var ki=Oa=Qr=null,Oo=or;do{var cl=Oo.lane;if((Qs&cl)===cl)ki!==null&&(ki=ki.next={lane:0,action:Oo.action,eagerReducer:Oo.eagerReducer,eagerState:Oo.eagerState,next:null}),vn=Oo.eagerReducer===le?Oo.eagerState:le(vn,Oo.action);else{var Lu={lane:cl,action:Oo.action,eagerReducer:Oo.eagerReducer,eagerState:Oo.eagerState,next:null};ki===null?(Oa=ki=Lu,Qr=vn):ki=ki.next=Lu,Hl.lanes|=cl,Tl|=cl}Oo=Oo.next}while(Oo!==null&&Oo!==or);ki===null?Qr=vn:ki.next=Oa,ni(vn,Ce.memoizedState)||(Ou=!0),Ce.memoizedState=vn,Ce.baseState=Qr,Ce.baseQueue=ki,Xe.lastRenderedState=vn}return[Ce.memoizedState,Xe.dispatch]}function Hf(le){var Ce=sp(),Xe=Ce.queue;if(Xe===null)throw Error(y(311));Xe.lastRenderedReducer=le;var vn=Xe.dispatch,or=Xe.pending,Qr=Ce.memoizedState;if(or!==null){Xe.pending=null;var Oa=or=or.next;do Qr=le(Qr,Oa.action),Oa=Oa.next;while(Oa!==or);ni(Qr,Ce.memoizedState)||(Ou=!0),Ce.memoizedState=Qr,Ce.baseQueue===null&&(Ce.baseState=Qr),Xe.lastRenderedState=Qr}return[Qr,vn]}function Qc(le,Ce,Xe){var vn=Ce._getVersion;vn=vn(Ce._source);var or=Ce._workInProgressVersionPrimary;if(or!==null?le=or===vn:(le=le.mutableReadLanes,(le=(Qs&le)===le)&&(Ce._workInProgressVersionPrimary=vn,xn.push(Ce))),le)return Xe(Ce._source);throw xn.push(Ce),Error(y(350))}function bp(le,Ce,Xe,vn){var or=bi;if(or===null)throw Error(y(349));var Qr=Ce._getVersion,Oa=Qr(Ce._source),ki=qa.current,Oo=ki.useState(function(){return Qc(or,Ce,Xe)}),cl=Oo[1],Lu=Oo[0];Oo=Pu;var Dd=le.memoizedState,pc=Dd.refs,Uf=pc.getSnapshot,bd=Dd.source;Dd=Dd.subscribe;var Cf=Hl;return le.memoizedState={refs:pc,source:Ce,subscribe:vn},ki.useEffect(function(){pc.getSnapshot=Xe,pc.setSnapshot=cl;var ss=Qr(Ce._source);if(!ni(Oa,ss)){ss=Xe(Ce._source),ni(Lu,ss)||(cl(ss),ss=ys(Cf),or.mutableReadLanes|=ss&or.pendingLanes),ss=or.mutableReadLanes,or.entangledLanes|=ss;for(var Uo=or.entanglements,hs=ss;0<hs;){var jl=31-Pr(hs),Gl=1<<jl;Uo[jl]|=ss,hs&=~Gl}}},[Xe,Ce,vn]),ki.useEffect(function(){return vn(Ce._source,function(){var ss=pc.getSnapshot,Uo=pc.setSnapshot;try{Uo(ss(Ce._source));var hs=ys(Cf);or.mutableReadLanes|=hs&or.pendingLanes}catch(jl){Uo(function(){throw jl})}})},[Ce,vn]),ni(Uf,Xe)&&ni(bd,Ce)&&ni(Dd,vn)||(le={pending:null,dispatch:null,lastRenderedReducer:Wp,lastRenderedState:Lu},le.dispatch=cl=Sl.bind(null,Hl,le),Oo.queue=le,Oo.baseQueue=null,Lu=Qc(or,Ce,Xe),Oo.memoizedState=Oo.baseState=Lu),Lu}function cv(le,Ce,Xe){var vn=sp();return bp(vn,le,Ce,Xe)}function nh(le){var Ce=Pv();return typeof le=="function"&&(le=le()),Ce.memoizedState=Ce.baseState=le,le=Ce.queue={pending:null,dispatch:null,lastRenderedReducer:Wp,lastRenderedState:le},le=le.dispatch=Sl.bind(null,Hl,le),[Ce.memoizedState,le]}function Kv(le,Ce,Xe,vn){return le={tag:le,create:Ce,destroy:Xe,deps:vn,next:null},Ce=Hl.updateQueue,Ce===null?(Ce={lastEffect:null},Hl.updateQueue=Ce,Ce.lastEffect=le.next=le):(Xe=Ce.lastEffect,Xe===null?Ce.lastEffect=le.next=le:(vn=Xe.next,Xe.next=le,le.next=vn,Ce.lastEffect=le)),le}function am(le){var Ce=Pv();return le={current:le},Ce.memoizedState=le}function Nh(){return sp().memoizedState}function Lp(le,Ce,Xe,vn){var or=Pv();Hl.flags|=le,or.memoizedState=Kv(1|Ce,Xe,void 0,vn===void 0?null:vn)}function sh(le,Ce,Xe,vn){var or=sp();vn=vn===void 0?null:vn;var Qr=void 0;if(Lc!==null){var Oa=Lc.memoizedState;if(Qr=Oa.destroy,vn!==null&&kv(vn,Oa.deps)){Kv(Ce,Xe,Qr,vn);return}}Hl.flags|=le,or.memoizedState=Kv(1|Ce,Xe,Qr,vn)}function Lh(le,Ce){return Lp(516,4,le,Ce)}function mh(le,Ce){return sh(516,4,le,Ce)}function fm(le,Ce){return sh(4,2,le,Ce)}function rh(le,Ce){if(typeof Ce=="function")return le=le(),Ce(le),function(){Ce(null)};if(Ce!=null)return le=le(),Ce.current=le,function(){Ce.current=null}}function Fp(le,Ce,Xe){return Xe=Xe!=null?Xe.concat([le]):null,sh(4,2,rh.bind(null,Ce,le),Xe)}function gh(){}function Am(le,Ce){var Xe=sp();Ce=Ce===void 0?null:Ce;var vn=Xe.memoizedState;return vn!==null&&Ce!==null&&kv(Ce,vn[1])?vn[0]:(Xe.memoizedState=[le,Ce],le)}function rc(le,Ce){var Xe=sp();Ce=Ce===void 0?null:Ce;var vn=Xe.memoizedState;return vn!==null&&Ce!==null&&kv(Ce,vn[1])?vn[0]:(le=le(),Xe.memoizedState=[le,Ce],le)}function wl(le,Ce){var Xe=sa();Ia(98>Xe?98:Xe,function(){le(!0)}),Ia(97<Xe?97:Xe,function(){var vn=Es.transition;Es.transition=1;try{le(!1),Ce()}finally{Es.transition=vn}})}function Sl(le,Ce,Xe){var vn=_s(),or=ys(le),Qr={lane:or,action:Xe,eagerReducer:null,eagerState:null,next:null},Oa=Ce.pending;if(Oa===null?Qr.next=Qr:(Qr.next=Oa.next,Oa.next=Qr),Ce.pending=Qr,Oa=le.alternate,le===Hl||Oa!==null&&Oa===Hl)yv=Yf=!0;else{if(le.lanes===0&&(Oa===null||Oa.lanes===0)&&(Oa=Ce.lastRenderedReducer,Oa!==null))try{var ki=Ce.lastRenderedState,Oo=Oa(ki,Xe);if(Qr.eagerReducer=Oa,Qr.eagerState=Oo,ni(Oo,ki))return}catch(cl){}finally{}qs(le,or,vn)}}var Ac={readContext:Ll,useCallback:Cp,useContext:Cp,useEffect:Cp,useImperativeHandle:Cp,useLayoutEffect:Cp,useMemo:Cp,useReducer:Cp,useRef:Cp,useState:Cp,useDebugValue:Cp,useDeferredValue:Cp,useTransition:Cp,useMutableSource:Cp,useOpaqueIdentifier:Cp,unstable_isNewReconciler:!1},Ju={readContext:Ll,useCallback:function(le,Ce){return Pv().memoizedState=[le,Ce===void 0?null:Ce],le},useContext:Ll,useEffect:Lh,useImperativeHandle:function(le,Ce,Xe){return Xe=Xe!=null?Xe.concat([le]):null,Lp(4,2,rh.bind(null,Ce,le),Xe)},useLayoutEffect:function(le,Ce){return Lp(4,2,le,Ce)},useMemo:function(le,Ce){var Xe=Pv();return Ce=Ce===void 0?null:Ce,le=le(),Xe.memoizedState=[le,Ce],le},useReducer:function(le,Ce,Xe){var vn=Pv();return Ce=Xe!==void 0?Xe(Ce):Ce,vn.memoizedState=vn.baseState=Ce,le=vn.queue={pending:null,dispatch:null,lastRenderedReducer:le,lastRenderedState:Ce},le=le.dispatch=Sl.bind(null,Hl,le),[vn.memoizedState,le]},useRef:am,useState:nh,useDebugValue:gh,useDeferredValue:function(le){var Ce=nh(le),Xe=Ce[0],vn=Ce[1];return Lh(function(){var or=Es.transition;Es.transition=1;try{vn(le)}finally{Es.transition=or}},[le]),Xe},useTransition:function(){var le=nh(!1),Ce=le[0];return le=wl.bind(null,le[1]),am(le),[le,Ce]},useMutableSource:function(le,Ce,Xe){var vn=Pv();return vn.memoizedState={refs:{getSnapshot:Ce,setSnapshot:null},source:le,subscribe:Xe},bp(vn,le,Ce,Xe)},useOpaqueIdentifier:function(){if(js){var le=!1,Ce=el(function(){throw le||(le=!0,Xe("r:"+(So++).toString(36))),Error(y(355))}),Xe=nh(Ce)[1];return(Hl.mode&2)==0&&(Hl.flags|=516,Kv(5,function(){Xe("r:"+(So++).toString(36))},void 0,null)),Ce}return Ce="r:"+(So++).toString(36),nh(Ce),Ce},unstable_isNewReconciler:!1},Bc={readContext:Ll,useCallback:Am,useContext:Ll,useEffect:mh,useImperativeHandle:Fp,useLayoutEffect:fm,useMemo:rc,useReducer:$h,useRef:Nh,useState:function(){return $h(Wp)},useDebugValue:gh,useDeferredValue:function(le){var Ce=$h(Wp),Xe=Ce[0],vn=Ce[1];return mh(function(){var or=Es.transition;Es.transition=1;try{vn(le)}finally{Es.transition=or}},[le]),Xe},useTransition:function(){var le=$h(Wp)[0];return[Nh().current,le]},useMutableSource:cv,useOpaqueIdentifier:function(){return $h(Wp)[0]},unstable_isNewReconciler:!1},$u={readContext:Ll,useCallback:Am,useContext:Ll,useEffect:mh,useImperativeHandle:Fp,useLayoutEffect:fm,useMemo:rc,useReducer:Hf,useRef:Nh,useState:function(){return Hf(Wp)},useDebugValue:gh,useDeferredValue:function(le){var Ce=Hf(Wp),Xe=Ce[0],vn=Ce[1];return mh(function(){var or=Es.transition;Es.transition=1;try{vn(le)}finally{Es.transition=or}},[le]),Xe},useTransition:function(){var le=Hf(Wp)[0];return[Nh().current,le]},useMutableSource:cv,useOpaqueIdentifier:function(){return Hf(Wp)[0]},unstable_isNewReconciler:!1},Nf=L.ReactCurrentOwner,Ou=!1;function Lf(le,Ce,Xe,vn){Ce.child=le===null?cr(Ce,null,Xe,vn):dd(Ce,le.child,Xe,vn)}function Mf(le,Ce,Xe,vn,or){Xe=Xe.render;var Qr=Ce.ref;return xc(Ce,or),vn=Nv(le,Ce,Xe,vn,Qr,or),le!==null&&!Ou?(Ce.updateQueue=le.updateQueue,Ce.flags&=-517,le.lanes&=~or,Hp(le,Ce,or)):(Ce.flags|=1,Lf(le,Ce,vn,or),Ce.child)}function Sd(le,Ce,Xe,vn,or,Qr){if(le===null){var Oa=Xe.type;return typeof Oa=="function"&&!po(Oa)&&Oa.defaultProps===void 0&&Xe.compare===null&&Xe.defaultProps===void 0?(Ce.tag=15,Ce.type=Oa,jv(le,Ce,Oa,vn,or,Qr)):(le=Va(Xe.type,null,vn,Ce,Ce.mode,Qr),le.ref=Ce.ref,le.return=Ce,Ce.child=le)}return Oa=le.child,(or&Qr)==0&&(or=Oa.memoizedProps,Xe=Xe.compare,Xe=Xe!==null?Xe:Zo,Xe(or,vn)&&le.ref===Ce.ref)?Hp(le,Ce,Qr):(Ce.flags|=1,le=Zi(Oa,vn),le.ref=Ce.ref,le.return=Ce,Ce.child=le)}function jv(le,Ce,Xe,vn,or,Qr){if(le!==null&&Zo(le.memoizedProps,vn)&&le.ref===Ce.ref)if(Ou=!1,(Qr&or)!=0)(le.flags&16384)!=0&&(Ou=!0);else return Ce.lanes=le.lanes,Hp(le,Ce,Qr);return fv(le,Ce,Xe,vn,Qr)}function uv(le,Ce,Xe){var vn=Ce.pendingProps,or=vn.children,Qr=le!==null?le.memoizedState:null;if(vn.mode==="hidden"||vn.mode==="unstable-defer-without-hiding")if((Ce.mode&4)==0)Ce.memoizedState={baseLanes:0},Qu(Ce,Xe);else if((Xe&1073741824)!=0)Ce.memoizedState={baseLanes:0},Qu(Ce,Qr!==null?Qr.baseLanes:Xe);else return le=Qr!==null?Qr.baseLanes|Xe:Xe,Ce.lanes=Ce.childLanes=1073741824,Ce.memoizedState={baseLanes:le},Qu(Ce,le),null;else Qr!==null?(vn=Qr.baseLanes|Xe,Ce.memoizedState=null):vn=Xe,Qu(Ce,vn);return Lf(le,Ce,or,Xe),Ce.child}function Fh(le,Ce){var Xe=Ce.ref;(le===null&&Xe!==null||le!==null&&le.ref!==Xe)&&(Ce.flags|=128)}function fv(le,Ce,Xe,vn,or){var Qr=Js(Xe)?Fr:as.current;return Qr=tl(Ce,Qr),xc(Ce,or),Xe=Nv(le,Ce,Xe,vn,Qr,or),le!==null&&!Ou?(Ce.updateQueue=le.updateQueue,Ce.flags&=-517,le.lanes&=~or,Hp(le,Ce,or)):(Ce.flags|=1,Lf(le,Ce,Xe,or),Ce.child)}function Yv(le,Ce,Xe,vn,or){if(Js(Xe)){var Qr=!0;Bs(Ce)}else Qr=!1;if(xc(Ce,or),Ce.stateNode===null)le!==null&&(le.alternate=null,Ce.alternate=null,Ce.flags|=2),vd(Ce,Xe,vn),Op(Ce,Xe,vn,or),vn=!0;else if(le===null){var Oa=Ce.stateNode,ki=Ce.memoizedProps;Oa.props=ki;var Oo=Oa.context,cl=Xe.contextType;typeof cl=="object"&&cl!==null?cl=Ll(cl):(cl=Js(Xe)?Fr:as.current,cl=tl(Ce,cl));var Lu=Xe.getDerivedStateFromProps,Dd=typeof Lu=="function"||typeof Oa.getSnapshotBeforeUpdate=="function";Dd||typeof Oa.UNSAFE_componentWillReceiveProps!="function"&&typeof Oa.componentWillReceiveProps!="function"||(ki!==vn||Oo!==cl)&&Gu(Ce,Oa,vn,cl),wc=!1;var pc=Ce.memoizedState;Oa.state=pc,td(Ce,vn,Oa,or),Oo=Ce.memoizedState,ki!==vn||pc!==Oo||Fs.current||wc?(typeof Lu=="function"&&(jf(Ce,Xe,Lu,vn),Oo=Ce.memoizedState),(ki=wc||Ed(Ce,Xe,ki,vn,pc,Oo,cl))?(Dd||typeof Oa.UNSAFE_componentWillMount!="function"&&typeof Oa.componentWillMount!="function"||(typeof Oa.componentWillMount=="function"&&Oa.componentWillMount(),typeof Oa.UNSAFE_componentWillMount=="function"&&Oa.UNSAFE_componentWillMount()),typeof Oa.componentDidMount=="function"&&(Ce.flags|=4)):(typeof Oa.componentDidMount=="function"&&(Ce.flags|=4),Ce.memoizedProps=vn,Ce.memoizedState=Oo),Oa.props=vn,Oa.state=Oo,Oa.context=cl,vn=ki):(typeof Oa.componentDidMount=="function"&&(Ce.flags|=4),vn=!1)}else{Oa=Ce.stateNode,_u(le,Ce),ki=Ce.memoizedProps,cl=Ce.type===Ce.elementType?ki:xo(Ce.type,ki),Oa.props=cl,Dd=Ce.pendingProps,pc=Oa.context,Oo=Xe.contextType,typeof Oo=="object"&&Oo!==null?Oo=Ll(Oo):(Oo=Js(Xe)?Fr:as.current,Oo=tl(Ce,Oo));var Uf=Xe.getDerivedStateFromProps;(Lu=typeof Uf=="function"||typeof Oa.getSnapshotBeforeUpdate=="function")||typeof Oa.UNSAFE_componentWillReceiveProps!="function"&&typeof Oa.componentWillReceiveProps!="function"||(ki!==Dd||pc!==Oo)&&Gu(Ce,Oa,vn,Oo),wc=!1,pc=Ce.memoizedState,Oa.state=pc,td(Ce,vn,Oa,or);var bd=Ce.memoizedState;ki!==Dd||pc!==bd||Fs.current||wc?(typeof Uf=="function"&&(jf(Ce,Xe,Uf,vn),bd=Ce.memoizedState),(cl=wc||Ed(Ce,Xe,cl,vn,pc,bd,Oo))?(Lu||typeof Oa.UNSAFE_componentWillUpdate!="function"&&typeof Oa.componentWillUpdate!="function"||(typeof Oa.componentWillUpdate=="function"&&Oa.componentWillUpdate(vn,bd,Oo),typeof Oa.UNSAFE_componentWillUpdate=="function"&&Oa.UNSAFE_componentWillUpdate(vn,bd,Oo)),typeof Oa.componentDidUpdate=="function"&&(Ce.flags|=4),typeof Oa.getSnapshotBeforeUpdate=="function"&&(Ce.flags|=256)):(typeof Oa.componentDidUpdate!="function"||ki===le.memoizedProps&&pc===le.memoizedState||(Ce.flags|=4),typeof Oa.getSnapshotBeforeUpdate!="function"||ki===le.memoizedProps&&pc===le.memoizedState||(Ce.flags|=256),Ce.memoizedProps=vn,Ce.memoizedState=bd),Oa.props=vn,Oa.state=bd,Oa.context=Oo,vn=cl):(typeof Oa.componentDidUpdate!="function"||ki===le.memoizedProps&&pc===le.memoizedState||(Ce.flags|=4),typeof Oa.getSnapshotBeforeUpdate!="function"||ki===le.memoizedProps&&pc===le.memoizedState||(Ce.flags|=256),vn=!1)}return wh(le,Ce,Xe,vn,Qr,or)}function wh(le,Ce,Xe,vn,or,Qr){Fh(le,Ce);var Oa=(Ce.flags&64)!=0;if(!vn&&!Oa)return or&&gc(Ce,Xe,!1),Hp(le,Ce,Qr);vn=Ce.stateNode,Nf.current=Ce;var ki=Oa&&typeof Xe.getDerivedStateFromError!="function"?null:vn.render();return Ce.flags|=1,le!==null&&Oa?(Ce.child=dd(Ce,le.child,null,Qr),Ce.child=dd(Ce,null,ki,Qr)):Lf(le,Ce,ki,Qr),Ce.memoizedState=vn.state,or&&gc(Ce,Xe,!0),Ce.child}function im(le){var Ce=le.stateNode;Ce.pendingContext?os(le,Ce.pendingContext,Ce.pendingContext!==Ce.context):Ce.context&&os(le,Ce.context,!1),pa(le,Ce.containerInfo)}var fg={dehydrated:null,retryLane:0};function _h(le,Ce,Xe){var vn=Ce.pendingProps,or=No.current,Qr=!1,Oa;return(Oa=(Ce.flags&64)!=0)||(Oa=le!==null&&le.memoizedState===null?!1:(or&2)!=0),Oa?(Qr=!0,Ce.flags&=-65):le!==null&&le.memoizedState===null||vn.fallback===void 0||vn.unstable_avoidThisFallback===!0||(or|=1),Oi(No,or&1),le===null?(vn.fallback!==void 0&&te(Ce),le=vn.children,or=vn.fallback,Qr?(le=Bv(Ce,le,or,Xe),Ce.child.memoizedState={baseLanes:Xe},Ce.memoizedState=fg,le):typeof vn.unstable_expectedLoadTime=="number"?(le=Bv(Ce,le,or,Xe),Ce.child.memoizedState={baseLanes:Xe},Ce.memoizedState=fg,Ce.lanes=33554432,le):(Xe=$o({mode:"visible",children:le},Ce.mode,Xe,null),Xe.return=Ce,Ce.child=Xe)):le.memoizedState!==null?Qr?(vn=om(le,Ce,vn.children,vn.fallback,Xe),Qr=Ce.child,or=le.child.memoizedState,Qr.memoizedState=or===null?{baseLanes:Xe}:{baseLanes:or.baseLanes|Xe},Qr.childLanes=le.childLanes&~Xe,Ce.memoizedState=fg,vn):(Xe=ah(le,Ce,vn.children,Xe),Ce.memoizedState=null,Xe):Qr?(vn=om(le,Ce,vn.children,vn.fallback,Xe),Qr=Ce.child,or=le.child.memoizedState,Qr.memoizedState=or===null?{baseLanes:Xe}:{baseLanes:or.baseLanes|Xe},Qr.childLanes=le.childLanes&~Xe,Ce.memoizedState=fg,vn):(Xe=ah(le,Ce,vn.children,Xe),Ce.memoizedState=null,Xe)}function Bv(le,Ce,Xe,vn){var or=le.mode,Qr=le.child;return Ce={mode:"hidden",children:Ce},(or&2)==0&&Qr!==null?(Qr.childLanes=0,Qr.pendingProps=Ce):Qr=$o(Ce,or,0,null),Xe=Bi(Xe,or,vn,null),Qr.return=le,Xe.return=le,Qr.sibling=Xe,le.child=Qr,Xe}function ah(le,Ce,Xe,vn){var or=le.child;return le=or.sibling,Xe=Zi(or,{mode:"visible",children:Xe}),(Ce.mode&2)==0&&(Xe.lanes=vn),Xe.return=Ce,Xe.sibling=null,le!==null&&(le.nextEffect=null,le.flags=8,Ce.firstEffect=Ce.lastEffect=le),Ce.child=Xe}function om(le,Ce,Xe,vn,or){var Qr=Ce.mode,Oa=le.child;le=Oa.sibling;var ki={mode:"hidden",children:Xe};return(Qr&2)==0&&Ce.child!==Oa?(Xe=Ce.child,Xe.childLanes=0,Xe.pendingProps=ki,Oa=Xe.lastEffect,Oa!==null?(Ce.firstEffect=Xe.firstEffect,Ce.lastEffect=Oa,Oa.nextEffect=null):Ce.firstEffect=Ce.lastEffect=null):Xe=Zi(Oa,ki),le!==null?vn=Zi(le,vn):(vn=Bi(vn,Qr,or,null),vn.flags|=2),vn.return=Ce,Xe.return=Ce,Xe.sibling=vn,Ce.child=Xe,vn}function Og(le,Ce){le.lanes|=Ce;var Xe=le.alternate;Xe!==null&&(Xe.lanes|=Ce),mu(le.return,Ce)}function Kh(le,Ce,Xe,vn,or,Qr){var Oa=le.memoizedState;Oa===null?le.memoizedState={isBackwards:Ce,rendering:null,renderingStartTime:0,last:vn,tail:Xe,tailMode:or,lastEffect:Qr}:(Oa.isBackwards=Ce,Oa.rendering=null,Oa.renderingStartTime=0,Oa.last=vn,Oa.tail=Xe,Oa.tailMode=or,Oa.lastEffect=Qr)}function Dp(le,Ce,Xe){var vn=Ce.pendingProps,or=vn.revealOrder,Qr=vn.tail;if(Lf(le,Ce,vn.children,Xe),vn=No.current,(vn&2)!=0)vn=vn&1|2,Ce.flags|=64;else{if(le!==null&&(le.flags&64)!=0)e:for(le=Ce.child;le!==null;){if(le.tag===13)le.memoizedState!==null&&Og(le,Xe);else if(le.tag===19)Og(le,Xe);else if(le.child!==null){le.child.return=le,le=le.child;continue}if(le===Ce)break e;for(;le.sibling===null;){if(le.return===null||le.return===Ce)break e;le=le.return}le.sibling.return=le.return,le=le.sibling}vn&=1}if(Oi(No,vn),(Ce.mode&2)==0)Ce.memoizedState=null;else switch(or){case"forwards":for(Xe=Ce.child,or=null;Xe!==null;)le=Xe.alternate,le!==null&&Ko(le)===null&&(or=Xe),Xe=Xe.sibling;Xe=or,Xe===null?(or=Ce.child,Ce.child=null):(or=Xe.sibling,Xe.sibling=null),Kh(Ce,!1,or,Xe,Qr,Ce.lastEffect);break;case"backwards":for(Xe=null,or=Ce.child,Ce.child=null;or!==null;){if(le=or.alternate,le!==null&&Ko(le)===null){Ce.child=or;break}le=or.sibling,or.sibling=Xe,Xe=or,or=le}Kh(Ce,!0,Xe,null,Qr,Ce.lastEffect);break;case"together":Kh(Ce,!1,null,null,void 0,Ce.lastEffect);break;default:Ce.memoizedState=null}return Ce.child}function Hp(le,Ce,Xe){if(le!==null&&(Ce.dependencies=le.dependencies),Tl|=Ce.lanes,(Xe&Ce.childLanes)!=0){if(le!==null&&Ce.child!==le.child)throw Error(y(153));if(Ce.child!==null){for(le=Ce.child,Xe=Zi(le,le.pendingProps),Ce.child=Xe,Xe.return=Ce;le.sibling!==null;)le=le.sibling,Xe=Xe.sibling=Zi(le,le.pendingProps),Xe.return=Ce;Xe.sibling=null}return Ce.child}return null}var Yh,ev,Kd,jp;Yh=function(le,Ce){for(var Xe=Ce.child;Xe!==null;){if(Xe.tag===5||Xe.tag===6)le.appendChild(Xe.stateNode);else if(Xe.tag!==4&&Xe.child!==null){Xe.child.return=Xe,Xe=Xe.child;continue}if(Xe===Ce)break;for(;Xe.sibling===null;){if(Xe.return===null||Xe.return===Ce)return;Xe=Xe.return}Xe.sibling.return=Xe.return,Xe=Xe.sibling}},ev=function(){},Kd=function(le,Ce,Xe,vn){var or=le.memoizedProps;if(or!==vn){le=Ce.stateNode,Zn(Jn.current);var Qr=null;switch(Xe){case"input":or=it(le,or),vn=it(le,vn),Qr=[];break;case"option":or=Xt(le,or),vn=Xt(le,vn),Qr=[];break;case"select":or=g({},or,{value:void 0}),vn=g({},vn,{value:void 0}),Qr=[];break;case"textarea":or=Rt(le,or),vn=Rt(le,vn),Qr=[];break;default:typeof or.onClick!="function"&&typeof vn.onClick=="function"&&(le.onclick=uf)}cn(Xe,vn);var Oa;Xe=null;for(cl in or)if(!vn.hasOwnProperty(cl)&&or.hasOwnProperty(cl)&&or[cl]!=null)if(cl==="style"){var ki=or[cl];for(Oa in ki)ki.hasOwnProperty(Oa)&&(Xe||(Xe={}),Xe[Oa]="")}else cl!=="dangerouslySetInnerHTML"&&cl!=="children"&&cl!=="suppressContentEditableWarning"&&cl!=="suppressHydrationWarning"&&cl!=="autoFocus"&&(w.hasOwnProperty(cl)?Qr||(Qr=[]):(Qr=Qr||[]).push(cl,null));for(cl in vn){var Oo=vn[cl];if(ki=or!=null?or[cl]:void 0,vn.hasOwnProperty(cl)&&Oo!==ki&&(Oo!=null||ki!=null))if(cl==="style")if(ki){for(Oa in ki)!ki.hasOwnProperty(Oa)||Oo&&Oo.hasOwnProperty(Oa)||(Xe||(Xe={}),Xe[Oa]="");for(Oa in Oo)Oo.hasOwnProperty(Oa)&&ki[Oa]!==Oo[Oa]&&(Xe||(Xe={}),Xe[Oa]=Oo[Oa])}else Xe||(Qr||(Qr=[]),Qr.push(cl,Xe)),Xe=Oo;else cl==="dangerouslySetInnerHTML"?(Oo=Oo?Oo.__html:void 0,ki=ki?ki.__html:void 0,Oo!=null&&ki!==Oo&&(Qr=Qr||[]).push(cl,Oo)):cl==="children"?typeof Oo!="string"&&typeof Oo!="number"||(Qr=Qr||[]).push(cl,""+Oo):cl!=="suppressContentEditableWarning"&&cl!=="suppressHydrationWarning"&&(w.hasOwnProperty(cl)?(Oo!=null&&cl==="onScroll"&&Du("scroll",le),Qr||ki===Oo||(Qr=[])):typeof Oo=="object"&&Oo!==null&&Oo.$$typeof===fe?Oo.toString():(Qr=Qr||[]).push(cl,Oo))}Xe&&(Qr=Qr||[]).push("style",Xe);var cl=Qr;(Ce.updateQueue=cl)&&(Ce.flags|=4)}},jp=function(le,Ce,Xe,vn){Xe!==vn&&(Ce.flags|=4)};function vf(le,Ce){if(!js)switch(le.tailMode){case"hidden":Ce=le.tail;for(var Xe=null;Ce!==null;)Ce.alternate!==null&&(Xe=Ce),Ce=Ce.sibling;Xe===null?le.tail=null:Xe.sibling=null;break;case"collapsed":Xe=le.tail;for(var vn=null;Xe!==null;)Xe.alternate!==null&&(vn=Xe),Xe=Xe.sibling;vn===null?Ce||le.tail===null?le.tail=null:le.tail.sibling=null:vn.sibling=null}}function tv(le,Ce,Xe){var vn=Ce.pendingProps;switch(Ce.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Js(Ce.type)&&Us(),null;case 3:return Ha(),ho(Fs),ho(as),Yr(),vn=Ce.stateNode,vn.pendingContext&&(vn.context=vn.pendingContext,vn.pendingContext=null),(le===null||le.child===null)&&(ft(Ce)?Ce.flags|=4:vn.hydrate||(Ce.flags|=256)),ev(Ce),null;case 5:co(Ce);var or=Zn(Vr.current);if(Xe=Ce.type,le!==null&&Ce.stateNode!=null)Kd(le,Ce,Xe,vn,or),le.ref!==Ce.ref&&(Ce.flags|=128);else{if(!vn){if(Ce.stateNode===null)throw Error(y(166));return null}if(le=Zn(Jn.current),ft(Ce)){vn=Ce.stateNode,Xe=Ce.type;var Qr=Ce.memoizedProps;switch(vn[Xo]=Ce,vn[lo]=Qr,Xe){case"dialog":Du("cancel",vn),Du("close",vn);break;case"iframe":case"object":case"embed":Du("load",vn);break;case"video":case"audio":for(le=0;le<Kf.length;le++)Du(Kf[le],vn);break;case"source":Du("error",vn);break;case"img":case"image":case"link":Du("error",vn),Du("load",vn);break;case"details":Du("toggle",vn);break;case"input":Le(vn,Qr),Du("invalid",vn);break;case"select":vn._wrapperState={wasMultiple:!!Qr.multiple},Du("invalid",vn);break;case"textarea":Lt(vn,Qr),Du("invalid",vn)}cn(Xe,Qr),le=null;for(var Oa in Qr)Qr.hasOwnProperty(Oa)&&(or=Qr[Oa],Oa==="children"?typeof or=="string"?vn.textContent!==or&&(le=["children",or]):typeof or=="number"&&vn.textContent!==""+or&&(le=["children",""+or]):w.hasOwnProperty(Oa)&&or!=null&&Oa==="onScroll"&&Du("scroll",vn));switch(Xe){case"input":wt(vn),jt(vn,Qr,!0);break;case"textarea":wt(vn),rt(vn);break;case"select":case"option":break;default:typeof Qr.onClick=="function"&&(vn.onclick=uf)}vn=le,Ce.updateQueue=vn,vn!==null&&(Ce.flags|=4)}else{switch(Oa=or.nodeType===9?or:or.ownerDocument,le===tt.html&&(le=de(Xe)),le===tt.html?Xe==="script"?(le=Oa.createElement("div"),le.innerHTML="<script></script>",le=le.removeChild(le.firstChild)):typeof vn.is=="string"?le=Oa.createElement(Xe,{is:vn.is}):(le=Oa.createElement(Xe),Xe==="select"&&(Oa=le,vn.multiple?Oa.multiple=!0:vn.size&&(Oa.size=vn.size))):le=Oa.createElementNS(le,Xe),le[Xo]=Ce,le[lo]=vn,Yh(le,Ce,!1,!1),Ce.stateNode=le,Oa=er(Xe,vn),Xe){case"dialog":Du("cancel",le),Du("close",le),or=vn;break;case"iframe":case"object":case"embed":Du("load",le),or=vn;break;case"video":case"audio":for(or=0;or<Kf.length;or++)Du(Kf[or],le);or=vn;break;case"source":Du("error",le),or=vn;break;case"img":case"image":case"link":Du("error",le),Du("load",le),or=vn;break;case"details":Du("toggle",le),or=vn;break;case"input":Le(le,vn),or=it(le,vn),Du("invalid",le);break;case"option":or=Xt(le,vn);break;case"select":le._wrapperState={wasMultiple:!!vn.multiple},or=g({},vn,{value:void 0}),Du("invalid",le);break;case"textarea":Lt(le,vn),or=Rt(le,vn),Du("invalid",le);break;default:or=vn}cn(Xe,or);var ki=or;for(Qr in ki)if(ki.hasOwnProperty(Qr)){var Oo=ki[Qr];Qr==="style"?qt(le,Oo):Qr==="dangerouslySetInnerHTML"?(Oo=Oo?Oo.__html:void 0,Oo!=null&&Ht(le,Oo)):Qr==="children"?typeof Oo=="string"?(Xe!=="textarea"||Oo!=="")&&Jt(le,Oo):typeof Oo=="number"&&Jt(le,""+Oo):Qr!=="suppressContentEditableWarning"&&Qr!=="suppressHydrationWarning"&&Qr!=="autoFocus"&&(w.hasOwnProperty(Qr)?Oo!=null&&Qr==="onScroll"&&Du("scroll",le):Oo!=null&&U(le,Qr,Oo,Oa))}switch(Xe){case"input":wt(le),jt(le,vn,!1);break;case"textarea":wt(le),rt(le);break;case"option":vn.value!=null&&le.setAttribute("value",""+dt(vn.value));break;case"select":le.multiple=!!vn.multiple,Qr=vn.value,Qr!=null?Yt(le,!!vn.multiple,Qr,!1):vn.defaultValue!=null&&Yt(le,!!vn.multiple,vn.defaultValue,!0);break;default:typeof or.onClick=="function"&&(le.onclick=uf)}ca(Xe,vn)&&(Ce.flags|=4)}Ce.ref!==null&&(Ce.flags|=128)}return null;case 6:if(le&&Ce.stateNode!=null)jp(le,Ce,le.memoizedProps,vn);else{if(typeof vn!="string"&&Ce.stateNode===null)throw Error(y(166));Xe=Zn(Vr.current),Zn(Jn.current),ft(Ce)?(vn=Ce.stateNode,Xe=Ce.memoizedProps,vn[Xo]=Ce,vn.nodeValue!==Xe&&(Ce.flags|=4)):(vn=(Xe.nodeType===9?Xe:Xe.ownerDocument).createTextNode(vn),vn[Xo]=Ce,Ce.stateNode=vn)}return null;case 13:return ho(No),vn=Ce.memoizedState,(Ce.flags&64)!=0?(Ce.lanes=Xe,Ce):(vn=vn!==null,Xe=!1,le===null?Ce.memoizedProps.fallback!==void 0&&ft(Ce):Xe=le.memoizedState!==null,vn&&!Xe&&(Ce.mode&2)!=0&&(le===null&&Ce.memoizedProps.unstable_avoidThisFallback!==!0||(No.current&1)!=0?Ns===0&&(Ns=3):((Ns===0||Ns===3)&&(Ns=4),bi===null||(Tl&134217727)==0&&(ll&134217727)==0||Ef(bi,_o))),(vn||Xe)&&(Ce.flags|=4),null);case 4:return Ha(),ev(Ce),le===null&&gf(Ce.stateNode.containerInfo),null;case 10:return Kl(Ce),null;case 17:return Js(Ce.type)&&Us(),null;case 19:if(ho(No),vn=Ce.memoizedState,vn===null)return null;if(Qr=(Ce.flags&64)!=0,Oa=vn.rendering,Oa===null)if(Qr)vf(vn,!1);else{if(Ns!==0||le!==null&&(le.flags&64)!=0)for(le=Ce.child;le!==null;){if(Oa=Ko(le),Oa!==null){for(Ce.flags|=64,vf(vn,!1),Qr=Oa.updateQueue,Qr!==null&&(Ce.updateQueue=Qr,Ce.flags|=4),vn.lastEffect===null&&(Ce.firstEffect=null),Ce.lastEffect=vn.lastEffect,vn=Xe,Xe=Ce.child;Xe!==null;)Qr=Xe,le=vn,Qr.flags&=2,Qr.nextEffect=null,Qr.firstEffect=null,Qr.lastEffect=null,Oa=Qr.alternate,Oa===null?(Qr.childLanes=0,Qr.lanes=le,Qr.child=null,Qr.memoizedProps=null,Qr.memoizedState=null,Qr.updateQueue=null,Qr.dependencies=null,Qr.stateNode=null):(Qr.childLanes=Oa.childLanes,Qr.lanes=Oa.lanes,Qr.child=Oa.child,Qr.memoizedProps=Oa.memoizedProps,Qr.memoizedState=Oa.memoizedState,Qr.updateQueue=Oa.updateQueue,Qr.type=Oa.type,le=Oa.dependencies,Qr.dependencies=le===null?null:{lanes:le.lanes,firstContext:le.firstContext}),Xe=Xe.sibling;return Oi(No,No.current&1|2),Ce.child}le=le.sibling}vn.tail!==null&&Lr()>es&&(Ce.flags|=64,Qr=!0,vf(vn,!1),Ce.lanes=33554432)}else{if(!Qr)if(le=Ko(Oa),le!==null){if(Ce.flags|=64,Qr=!0,Xe=le.updateQueue,Xe!==null&&(Ce.updateQueue=Xe,Ce.flags|=4),vf(vn,!0),vn.tail===null&&vn.tailMode==="hidden"&&!Oa.alternate&&!js)return Ce=Ce.lastEffect=vn.lastEffect,Ce!==null&&(Ce.nextEffect=null),null}else 2*Lr()-vn.renderingStartTime>es&&Xe!==1073741824&&(Ce.flags|=64,Qr=!0,vf(vn,!1),Ce.lanes=33554432);vn.isBackwards?(Oa.sibling=Ce.child,Ce.child=Oa):(Xe=vn.last,Xe!==null?Xe.sibling=Oa:Ce.child=Oa,vn.last=Oa)}return vn.tail!==null?(Xe=vn.tail,vn.rendering=Xe,vn.tail=Xe.sibling,vn.lastEffect=Ce.lastEffect,vn.renderingStartTime=Lr(),Xe.sibling=null,Ce=No.current,Oi(No,Qr?Ce&1|2:Ce&1),Xe):null;case 23:case 24:return Yd(),le!==null&&le.memoizedState!==null!=(Ce.memoizedState!==null)&&vn.mode!=="unstable-defer-without-hiding"&&(Ce.flags|=4),null}throw Error(y(156,Ce.tag))}function Xv(le){switch(le.tag){case 1:Js(le.type)&&Us();var Ce=le.flags;return Ce&4096?(le.flags=Ce&-4097|64,le):null;case 3:if(Ha(),ho(Fs),ho(as),Yr(),Ce=le.flags,(Ce&64)!=0)throw Error(y(285));return le.flags=Ce&-4097|64,le;case 5:return co(le),null;case 13:return ho(No),Ce=le.flags,Ce&4096?(le.flags=Ce&-4097|64,le):null;case 19:return ho(No),null;case 4:return Ha(),null;case 10:return Kl(le),null;case 23:case 24:return Yd(),null;default:return null}}function nv(le,Ce){try{var Xe="",vn=Ce;do Xe+=qe(vn),vn=vn.return;while(vn);var or=Xe}catch(Qr){or=`
|
||
Error generating stack: `+Qr.message+`
|
||
`+Qr.stack}return{value:le,source:Ce,stack:or}}function lh(le,Ce){try{console.error(Ce.value)}catch(Xe){setTimeout(function(){throw Xe})}}var Bp=typeof WeakMap=="function"?WeakMap:Map;function Uv(le,Ce,Xe){Xe=wu(-1,Xe),Xe.tag=3,Xe.payload={element:null};var vn=Ce.value;return Xe.callback=function(){Ec||(Ec=!0,Ft=vn),lh(le,Ce)},Xe}function dv(le,Ce,Xe){Xe=wu(-1,Xe),Xe.tag=3;var vn=le.type.getDerivedStateFromError;if(typeof vn=="function"){var or=Ce.value;Xe.payload=function(){return lh(le,Ce),vn(or)}}var Qr=le.stateNode;return Qr!==null&&typeof Qr.componentDidCatch=="function"&&(Xe.callback=function(){typeof vn!="function"&&(je===null?je=new Set([this]):je.add(this),lh(le,Ce));var Oa=Ce.stack;this.componentDidCatch(Ce.value,{componentStack:Oa!==null?Oa:""})}),Xe}var Ig=typeof WeakSet=="function"?WeakSet:Set;function Mm(le){var Ce=le.ref;if(Ce!==null)if(typeof Ce=="function")try{Ce(null)}catch(Xe){Ta(le,Xe)}else Ce.current=null}function dg(le,Ce){switch(Ce.tag){case 0:case 11:case 15:case 22:return;case 1:if(Ce.flags&256&&le!==null){var Xe=le.memoizedProps,vn=le.memoizedState;le=Ce.stateNode,Ce=le.getSnapshotBeforeUpdate(Ce.elementType===Ce.type?Xe:xo(Ce.type,Xe),vn),le.__reactInternalSnapshotBeforeUpdate=Ce}return;case 3:Ce.flags&256&&so(Ce.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(y(163))}function dm(le,Ce,Xe){switch(Xe.tag){case 0:case 11:case 15:case 22:if(Ce=Xe.updateQueue,Ce=Ce!==null?Ce.lastEffect:null,Ce!==null){le=Ce=Ce.next;do{if((le.tag&3)==3){var vn=le.create;le.destroy=vn()}le=le.next}while(le!==Ce)}if(Ce=Xe.updateQueue,Ce=Ce!==null?Ce.lastEffect:null,Ce!==null){le=Ce=Ce.next;do{var or=le;vn=or.next,or=or.tag,(or&4)!=0&&(or&1)!=0&&(zc(Xe,le),qo(Xe,le)),le=vn}while(le!==Ce)}return;case 1:le=Xe.stateNode,Xe.flags&4&&(Ce===null?le.componentDidMount():(vn=Xe.elementType===Xe.type?Ce.memoizedProps:xo(Xe.type,Ce.memoizedProps),le.componentDidUpdate(vn,Ce.memoizedState,le.__reactInternalSnapshotBeforeUpdate))),Ce=Xe.updateQueue,Ce!==null&&Ic(Xe,Ce,le);return;case 3:if(Ce=Xe.updateQueue,Ce!==null){if(le=null,Xe.child!==null)switch(Xe.child.tag){case 5:le=Xe.child.stateNode;break;case 1:le=Xe.child.stateNode}Ic(Xe,Ce,le)}return;case 5:le=Xe.stateNode,Ce===null&&Xe.flags&4&&ca(Xe.type,Xe.memoizedProps)&&le.focus();return;case 6:return;case 4:return;case 12:return;case 13:Xe.memoizedState===null&&(Xe=Xe.alternate,Xe!==null&&(Xe=Xe.memoizedState,Xe!==null&&(Xe=Xe.dehydrated,Xe!==null&&Ua(Xe))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(y(163))}function Jm(le,Ce){for(var Xe=le;;){if(Xe.tag===5){var vn=Xe.stateNode;if(Ce)vn=vn.style,typeof vn.setProperty=="function"?vn.setProperty("display","none","important"):vn.display="none";else{vn=Xe.stateNode;var or=Xe.memoizedProps.style;or=or!=null&&or.hasOwnProperty("display")?or.display:null,vn.style.display=Un("display",or)}}else if(Xe.tag===6)Xe.stateNode.nodeValue=Ce?"":Xe.memoizedProps;else if((Xe.tag!==23&&Xe.tag!==24||Xe.memoizedState===null||Xe===le)&&Xe.child!==null){Xe.child.return=Xe,Xe=Xe.child;continue}if(Xe===le)break;for(;Xe.sibling===null;){if(Xe.return===null||Xe.return===le)return;Xe=Xe.return}Xe.sibling.return=Xe.return,Xe=Xe.sibling}}function o_(le,Ce){if(Sa&&typeof Sa.onCommitFiberUnmount=="function")try{Sa.onCommitFiberUnmount(kr,Ce)}catch(Qr){}switch(Ce.tag){case 0:case 11:case 14:case 15:case 22:if(le=Ce.updateQueue,le!==null&&(le=le.lastEffect,le!==null)){var Xe=le=le.next;do{var vn=Xe,or=vn.destroy;if(vn=vn.tag,or!==void 0)if((vn&4)!=0)zc(Ce,Xe);else{vn=Ce;try{or()}catch(Qr){Ta(vn,Qr)}}Xe=Xe.next}while(Xe!==le)}break;case 1:if(Mm(Ce),le=Ce.stateNode,typeof le.componentWillUnmount=="function")try{le.props=Ce.memoizedProps,le.state=Ce.memoizedState,le.componentWillUnmount()}catch(Qr){Ta(Ce,Qr)}break;case 5:Mm(Ce);break;case 4:km(le,Ce)}}function ch(le){le.alternate=null,le.child=null,le.dependencies=null,le.firstEffect=null,le.lastEffect=null,le.memoizedProps=null,le.memoizedState=null,le.pendingProps=null,le.return=null,le.updateQueue=null}function pg(le){return le.tag===5||le.tag===3||le.tag===4}function yh(le){e:{for(var Ce=le.return;Ce!==null;){if(pg(Ce))break e;Ce=Ce.return}throw Error(y(160))}var Xe=Ce;switch(Ce=Xe.stateNode,Xe.tag){case 5:var vn=!1;break;case 3:Ce=Ce.containerInfo,vn=!0;break;case 4:Ce=Ce.containerInfo,vn=!0;break;default:throw Error(y(161))}Xe.flags&16&&(Jt(Ce,""),Xe.flags&=-17);e:t:for(Xe=le;;){for(;Xe.sibling===null;){if(Xe.return===null||pg(Xe.return)){Xe=null;break e}Xe=Xe.return}for(Xe.sibling.return=Xe.return,Xe=Xe.sibling;Xe.tag!==5&&Xe.tag!==6&&Xe.tag!==18;){if(Xe.flags&2||Xe.child===null||Xe.tag===4)continue t;Xe.child.return=Xe,Xe=Xe.child}if(!(Xe.flags&2)){Xe=Xe.stateNode;break e}}vn?vg(le,Xe,Ce):Dg(le,Xe,Ce)}function vg(le,Ce,Xe){var vn=le.tag,or=vn===5||vn===6;if(or)le=or?le.stateNode:le.stateNode.instance,Ce?Xe.nodeType===8?Xe.parentNode.insertBefore(le,Ce):Xe.insertBefore(le,Ce):(Xe.nodeType===8?(Ce=Xe.parentNode,Ce.insertBefore(le,Xe)):(Ce=Xe,Ce.appendChild(le)),Xe=Xe._reactRootContainer,Xe!=null||Ce.onclick!==null||(Ce.onclick=uf));else if(vn!==4&&(le=le.child,le!==null))for(vg(le,Ce,Xe),le=le.sibling;le!==null;)vg(le,Ce,Xe),le=le.sibling}function Dg(le,Ce,Xe){var vn=le.tag,or=vn===5||vn===6;if(or)le=or?le.stateNode:le.stateNode.instance,Ce?Xe.insertBefore(le,Ce):Xe.appendChild(le);else if(vn!==4&&(le=le.child,le!==null))for(Dg(le,Ce,Xe),le=le.sibling;le!==null;)Dg(le,Ce,Xe),le=le.sibling}function km(le,Ce){for(var Xe=Ce,vn=!1,or,Qr;;){if(!vn){vn=Xe.return;e:for(;;){if(vn===null)throw Error(y(160));switch(or=vn.stateNode,vn.tag){case 5:Qr=!1;break e;case 3:or=or.containerInfo,Qr=!0;break e;case 4:or=or.containerInfo,Qr=!0;break e}vn=vn.return}vn=!0}if(Xe.tag===5||Xe.tag===6){e:for(var Oa=le,ki=Xe,Oo=ki;;)if(o_(Oa,Oo),Oo.child!==null&&Oo.tag!==4)Oo.child.return=Oo,Oo=Oo.child;else{if(Oo===ki)break e;for(;Oo.sibling===null;){if(Oo.return===null||Oo.return===ki)break e;Oo=Oo.return}Oo.sibling.return=Oo.return,Oo=Oo.sibling}Qr?(Oa=or,ki=Xe.stateNode,Oa.nodeType===8?Oa.parentNode.removeChild(ki):Oa.removeChild(ki)):or.removeChild(Xe.stateNode)}else if(Xe.tag===4){if(Xe.child!==null){or=Xe.stateNode.containerInfo,Qr=!0,Xe.child.return=Xe,Xe=Xe.child;continue}}else if(o_(le,Xe),Xe.child!==null){Xe.child.return=Xe,Xe=Xe.child;continue}if(Xe===Ce)break;for(;Xe.sibling===null;){if(Xe.return===null||Xe.return===Ce)return;Xe=Xe.return,Xe.tag===4&&(vn=!1)}Xe.sibling.return=Xe.return,Xe=Xe.sibling}}function Ng(le,Ce){switch(Ce.tag){case 0:case 11:case 14:case 15:case 22:var Xe=Ce.updateQueue;if(Xe=Xe!==null?Xe.lastEffect:null,Xe!==null){var vn=Xe=Xe.next;do(vn.tag&3)==3&&(le=vn.destroy,vn.destroy=void 0,le!==void 0&&le()),vn=vn.next;while(vn!==Xe)}return;case 1:return;case 5:if(Xe=Ce.stateNode,Xe!=null){vn=Ce.memoizedProps;var or=le!==null?le.memoizedProps:vn;le=Ce.type;var Qr=Ce.updateQueue;if(Ce.updateQueue=null,Qr!==null){for(Xe[lo]=vn,le==="input"&&vn.type==="radio"&&vn.name!=null&&ct(Xe,vn),er(le,or),Ce=er(le,vn),or=0;or<Qr.length;or+=2){var Oa=Qr[or],ki=Qr[or+1];Oa==="style"?qt(Xe,ki):Oa==="dangerouslySetInnerHTML"?Ht(Xe,ki):Oa==="children"?Jt(Xe,ki):U(Xe,Oa,ki,Ce)}switch(le){case"input":at(Xe,vn);break;case"textarea":ze(Xe,vn);break;case"select":le=Xe._wrapperState.wasMultiple,Xe._wrapperState.wasMultiple=!!vn.multiple,Qr=vn.value,Qr!=null?Yt(Xe,!!vn.multiple,Qr,!1):le!==!!vn.multiple&&(vn.defaultValue!=null?Yt(Xe,!!vn.multiple,vn.defaultValue,!0):Yt(Xe,!!vn.multiple,vn.multiple?[]:"",!1))}}}return;case 6:if(Ce.stateNode===null)throw Error(y(162));Ce.stateNode.nodeValue=Ce.memoizedProps;return;case 3:Xe=Ce.stateNode,Xe.hydrate&&(Xe.hydrate=!1,Ua(Xe.containerInfo));return;case 12:return;case 13:Ce.memoizedState!==null&&(Ol=Lr(),Jm(Ce.child,!0)),O_(Ce);return;case 19:O_(Ce);return;case 17:return;case 23:case 24:Jm(Ce,Ce.memoizedState!==null);return}throw Error(y(163))}function O_(le){var Ce=le.updateQueue;if(Ce!==null){le.updateQueue=null;var Xe=le.stateNode;Xe===null&&(Xe=le.stateNode=new Ig),Ce.forEach(function(vn){var or=Po.bind(null,le,vn);Xe.has(vn)||(Xe.add(vn),vn.then(or,or))})}}function e0(le,Ce){return le!==null&&(le=le.memoizedState,le===null||le.dehydrated!==null)?(Ce=Ce.memoizedState,Ce!==null&&Ce.dehydrated===null):!1}var pm=Math.ceil,Lg=L.ReactCurrentDispatcher,$r=L.ReactCurrentOwner,ea=0,bi=null,To=null,_o=0,Ss=0,Qi=ui(0),Ns=0,kl=null,yl=0,Tl=0,ll=0,ac=0,Xl=null,Ol=0,es=Infinity;function Go(){es=Lr()+500}var Yo=null,Ec=!1,Ft=null,je=null,yt=!1,It=null,Sn=90,In=[],mr=[],Wr=null,Ir=0,Br=null,xa=-1,vi=0,Ai=0,Yi=null,Wo=!1;function _s(){return(ea&48)!=0?Lr():xa!==-1?xa:xa=Lr()}function ys(le){if(le=le.mode,(le&2)==0)return 1;if((le&4)==0)return sa()===99?1:2;if(vi===0&&(vi=yl),us.transition!==0){Ai!==0&&(Ai=Xl!==null?Xl.pendingLanes:0),le=vi;var Ce=4186112&~Ai;return Ce&=-Ce,Ce===0&&(le=4186112&~le,Ce=le&-le,Ce===0&&(Ce=8192)),Ce}return le=sa(),(ea&4)!=0&&le===98?le=Gr(12,vi):(le=nn(le),le=Gr(le,vi)),le}function qs(le,Ce,Xe){if(50<Ir)throw Ir=0,Br=null,Error(y(185));if(le=uc(le,Ce),le===null)return null;Dn(le,Ce,Xe),le===bi&&(ll|=Ce,Ns===4&&Ef(le,_o));var vn=sa();Ce===1?(ea&8)!=0&&(ea&48)==0?Ru(le):(du(le,Xe),ea===0&&(Go(),pi())):((ea&4)==0||vn!==98&&vn!==99||(Wr===null?Wr=new Set([le]):Wr.add(le)),du(le,Xe)),Xl=le}function uc(le,Ce){le.lanes|=Ce;var Xe=le.alternate;for(Xe!==null&&(Xe.lanes|=Ce),Xe=le,le=le.return;le!==null;)le.childLanes|=Ce,Xe=le.alternate,Xe!==null&&(Xe.childLanes|=Ce),Xe=le,le=le.return;return Xe.tag===3?Xe.stateNode:null}function du(le,Ce){for(var Xe=le.callbackNode,vn=le.suspendedLanes,or=le.pingedLanes,Qr=le.expirationTimes,Oa=le.pendingLanes;0<Oa;){var ki=31-Pr(Oa),Oo=1<<ki,cl=Qr[ki];if(cl===-1){if((Oo&vn)==0||(Oo&or)!=0){cl=Ce,Sr(Oo);var Lu=Rn;Qr[ki]=10<=Lu?cl+250:6<=Lu?cl+5e3:-1}}else cl<=Ce&&(le.expiredLanes|=Oo);Oa&=~Oo}if(vn=Ot(le,le===bi?_o:0),Ce=Rn,vn===0)Xe!==null&&(Xe!==Jc&&Ds(Xe),le.callbackNode=null,le.callbackPriority=0);else{if(Xe!==null){if(le.callbackPriority===Ce)return;Xe!==Jc&&Ds(Xe)}Ce===15?(Xe=Ru.bind(null,le),hn===null?(hn=[Xe],dn=Co(cc,fo)):hn.push(Xe),Xe=Jc):Ce===14?Xe=Ja(99,Ru.bind(null,le)):(Xe=sn(Ce),Xe=Ja(Xe,Pc.bind(null,le))),le.callbackPriority=Ce,le.callbackNode=Xe}}function Pc(le){if(xa=-1,Ai=vi=0,(ea&48)!=0)throw Error(y(327));var Ce=le.callbackNode;if(ps()&&le.callbackNode!==Ce)return null;var Xe=Ot(le,le===bi?_o:0);if(Xe===0)return null;var vn=Xe,or=ea;ea|=16;var Qr=Bf();(bi!==le||_o!==vn)&&(Go(),Xd(le,vn));do try{Nu();break}catch(ki){Sf(le,ki)}while(1);if(nc(),Lg.current=Qr,ea=or,To!==null?vn=0:(bi=null,_o=0,vn=Ns),(yl&ll)!=0)Xd(le,0);else if(vn!==0){if(vn===2&&(ea|=64,le.hydrate&&(le.hydrate=!1,so(le.containerInfo)),Xe=gr(le),Xe!==0&&(vn=cd(le,Xe))),vn===1)throw Ce=kl,Xd(le,0),Ef(le,Xe),du(le,Lr()),Ce;switch(le.finishedWork=le.current.alternate,le.finishedLanes=Xe,vn){case 0:case 1:throw Error(y(345));case 2:Rv(le);break;case 3:if(Ef(le,Xe),(Xe&62914560)===Xe&&(vn=Ol+500-Lr(),10<vn)){if(Ot(le,0)!==0)break;if(or=le.suspendedLanes,(or&Xe)!==Xe){_s(),le.pingedLanes|=le.suspendedLanes∨break}le.timeoutHandle=Na(Rv.bind(null,le),vn);break}Rv(le);break;case 4:if(Ef(le,Xe),(Xe&4186112)===Xe)break;for(vn=le.eventTimes,or=-1;0<Xe;){var Oa=31-Pr(Xe);Qr=1<<Oa,Oa=vn[Oa],Oa>or&&(or=Oa),Xe&=~Qr}if(Xe=or,Xe=Lr()-Xe,Xe=(120>Xe?120:480>Xe?480:1080>Xe?1080:1920>Xe?1920:3e3>Xe?3e3:4320>Xe?4320:1960*pm(Xe/1960))-Xe,10<Xe){le.timeoutHandle=Na(Rv.bind(null,le),Xe);break}Rv(le);break;case 5:Rv(le);break;default:throw Error(y(329))}}return du(le,Lr()),le.callbackNode===Ce?Pc.bind(null,le):null}function Ef(le,Ce){for(Ce&=~ac,Ce&=~ll,le.suspendedLanes|=Ce,le.pingedLanes&=~Ce,le=le.expirationTimes;0<Ce;){var Xe=31-Pr(Ce),vn=1<<Xe;le[Xe]=-1,Ce&=~vn}}function Ru(le){if((ea&48)!=0)throw Error(y(327));if(ps(),le===bi&&(le.expiredLanes&_o)!=0){var Ce=_o,Xe=cd(le,Ce);(yl&ll)!=0&&(Ce=Ot(le,Ce),Xe=cd(le,Ce))}else Ce=Ot(le,0),Xe=cd(le,Ce);if(le.tag!==0&&Xe===2&&(ea|=64,le.hydrate&&(le.hydrate=!1,so(le.containerInfo)),Ce=gr(le),Ce!==0&&(Xe=cd(le,Ce))),Xe===1)throw Xe=kl,Xd(le,0),Ef(le,Ce),du(le,Lr()),Xe;return le.finishedWork=le.current.alternate,le.finishedLanes=Ce,Rv(le),du(le,Lr()),null}function _d(){if(Wr!==null){var le=Wr;Wr=null,le.forEach(function(Ce){Ce.expiredLanes|=24&Ce.pendingLanes,du(Ce,Lr())})}pi()}function id(le,Ce){var Xe=ea;ea|=1;try{return le(Ce)}finally{ea=Xe,ea===0&&(Go(),pi())}}function yd(le,Ce){var Xe=ea;ea&=-2,ea|=8;try{return le(Ce)}finally{ea=Xe,ea===0&&(Go(),pi())}}function Qu(le,Ce){Oi(Qi,Ss),Ss|=Ce,yl|=Ce}function Yd(){Ss=Qi.current,ho(Qi)}function Xd(le,Ce){le.finishedWork=null,le.finishedLanes=0;var Xe=le.timeoutHandle;if(Xe!==-1&&(le.timeoutHandle=-1,fi(Xe)),To!==null)for(Xe=To.return;Xe!==null;){var vn=Xe;switch(vn.tag){case 1:vn=vn.type.childContextTypes,vn!=null&&Us();break;case 3:Ha(),ho(Fs),ho(as),Yr();break;case 5:co(vn);break;case 4:Ha();break;case 13:ho(No);break;case 19:ho(No);break;case 10:Kl(vn);break;case 23:case 24:Yd()}Xe=Xe.return}bi=le,To=Zi(le.current,null),_o=Ss=yl=Ce,Ns=0,kl=null,ac=ll=Tl=0}function Sf(le,Ce){do{var Xe=To;try{if(nc(),qa.current=Ac,Yf){for(var vn=Hl.memoizedState;vn!==null;){var or=vn.queue;or!==null&&(or.pending=null),vn=vn.next}Yf=!1}if(Qs=0,Pu=Lc=Hl=null,yv=!1,$r.current=null,Xe===null||Xe.return===null){Ns=1,kl=Ce,To=null;break}e:{var Qr=le,Oa=Xe.return,ki=Xe,Oo=Ce;if(Ce=_o,ki.flags|=2048,ki.firstEffect=ki.lastEffect=null,Oo!==null&&typeof Oo=="object"&&typeof Oo.then=="function"){var cl=Oo;if((ki.mode&2)==0){var Lu=ki.alternate;Lu?(ki.updateQueue=Lu.updateQueue,ki.memoizedState=Lu.memoizedState,ki.lanes=Lu.lanes):(ki.updateQueue=null,ki.memoizedState=null)}var Dd=(No.current&1)!=0,pc=Oa;do{var Uf;if(Uf=pc.tag===13){var bd=pc.memoizedState;if(bd!==null)Uf=bd.dehydrated!==null;else{var Cf=pc.memoizedProps;Uf=Cf.fallback===void 0?!1:Cf.unstable_avoidThisFallback!==!0?!0:!Dd}}if(Uf){var ss=pc.updateQueue;if(ss===null){var Uo=new Set;Uo.add(cl),pc.updateQueue=Uo}else ss.add(cl);if((pc.mode&2)==0){if(pc.flags|=64,ki.flags|=16384,ki.flags&=-2981,ki.tag===1)if(ki.alternate===null)ki.tag=17;else{var hs=wu(-1,1);hs.tag=2,fu(ki,hs)}ki.lanes|=1;break e}Oo=void 0,ki=Ce;var jl=Qr.pingCache;if(jl===null?(jl=Qr.pingCache=new Bp,Oo=new Set,jl.set(cl,Oo)):(Oo=jl.get(cl),Oo===void 0&&(Oo=new Set,jl.set(cl,Oo))),!Oo.has(ki)){Oo.add(ki);var Gl=eo.bind(null,Qr,cl,ki);cl.then(Gl,Gl)}pc.flags|=4096,pc.lanes=Ce;break e}pc=pc.return}while(pc!==null);Oo=Error((et(ki.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
||
|
||
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Ns!==5&&(Ns=2),Oo=nv(Oo,ki),pc=Oa;do{switch(pc.tag){case 3:Qr=Oo,pc.flags|=4096,Ce&=-Ce,pc.lanes|=Ce;var Jd=Uv(pc,Qr,Ce);Kc(pc,Jd);break e;case 1:Qr=Oo;var Ku=pc.type,Nd=pc.stateNode;if((pc.flags&64)==0&&(typeof Ku.getDerivedStateFromError=="function"||Nd!==null&&typeof Nd.componentDidCatch=="function"&&(je===null||!je.has(Nd)))){pc.flags|=4096,Ce&=-Ce,pc.lanes|=Ce;var pp=dv(pc,Qr,Ce);Kc(pc,pp);break e}}pc=pc.return}while(pc!==null)}Ev(Xe)}catch(Rd){Ce=Rd,To===Xe&&Xe!==null&&(To=Xe=Xe.return);continue}break}while(1)}function Bf(){var le=Lg.current;return Lg.current=Ac,le===null?Ac:le}function cd(le,Ce){var Xe=ea;ea|=16;var vn=Bf();bi===le&&_o===Ce||Xd(le,Ce);do try{qu();break}catch(or){Sf(le,or)}while(1);if(nc(),ea=Xe,Lg.current=vn,To!==null)throw Error(y(261));return bi=null,_o=0,Ns}function qu(){for(;To!==null;)Id(To)}function Nu(){for(;To!==null&&!Dl();)Id(To)}function Id(le){var Ce=qi(le.alternate,le,Ss);le.memoizedProps=le.pendingProps,Ce===null?Ev(le):To=Ce,$r.current=null}function Ev(le){var Ce=le;do{var Xe=Ce.alternate;if(le=Ce.return,(Ce.flags&2048)==0){if(Xe=tv(Xe,Ce,Ss),Xe!==null){To=Xe;return}if(Xe=Ce,Xe.tag!==24&&Xe.tag!==23||Xe.memoizedState===null||(Ss&1073741824)!=0||(Xe.mode&4)==0){for(var vn=0,or=Xe.child;or!==null;)vn|=or.lanes|or.childLanes,or=or.sibling;Xe.childLanes=vn}le!==null&&(le.flags&2048)==0&&(le.firstEffect===null&&(le.firstEffect=Ce.firstEffect),Ce.lastEffect!==null&&(le.lastEffect!==null&&(le.lastEffect.nextEffect=Ce.firstEffect),le.lastEffect=Ce.lastEffect),1<Ce.flags&&(le.lastEffect!==null?le.lastEffect.nextEffect=Ce:le.firstEffect=Ce,le.lastEffect=Ce))}else{if(Xe=Xv(Ce),Xe!==null){Xe.flags&=2047,To=Xe;return}le!==null&&(le.firstEffect=le.lastEffect=null,le.flags|=2048)}if(Ce=Ce.sibling,Ce!==null){To=Ce;return}To=Ce=le}while(Ce!==null);Ns===0&&(Ns=5)}function Rv(le){var Ce=sa();return Ia(99,s_.bind(null,le,Ce)),null}function s_(le,Ce){do ps();while(It!==null);if((ea&48)!=0)throw Error(y(327));var Xe=le.finishedWork;if(Xe===null)return null;if(le.finishedWork=null,le.finishedLanes=0,Xe===le.current)throw Error(y(177));le.callbackNode=null;var vn=Xe.lanes|Xe.childLanes,or=vn,Qr=le.pendingLanes&~or;le.pendingLanes=or,le.suspendedLanes=0,le.pingedLanes=0,le.expiredLanes&=or,le.mutableReadLanes&=or,le.entangledLanes&=or,or=le.entanglements;for(var Oa=le.eventTimes,ki=le.expirationTimes;0<Qr;){var Oo=31-Pr(Qr),cl=1<<Oo;or[Oo]=0,Oa[Oo]=-1,ki[Oo]=-1,Qr&=~cl}if(Wr!==null&&(vn&24)==0&&Wr.has(le)&&Wr.delete(le),le===bi&&(To=bi=null,_o=0),1<Xe.flags?Xe.lastEffect!==null?(Xe.lastEffect.nextEffect=Xe,vn=Xe.firstEffect):vn=Xe:vn=Xe.firstEffect,vn!==null){if(or=ea,ea|=32,$r.current=null,Af=Za,Oa=yc(),oa(Oa)){if("selectionStart"in Oa)ki={start:Oa.selectionStart,end:Oa.selectionEnd};else e:if(ki=(ki=Oa.ownerDocument)&&ki.defaultView||window,(cl=ki.getSelection&&ki.getSelection())&&cl.rangeCount!==0){ki=cl.anchorNode,Qr=cl.anchorOffset,Oo=cl.focusNode,cl=cl.focusOffset;try{ki.nodeType,Oo.nodeType}catch(Rd){ki=null;break e}var Lu=0,Dd=-1,pc=-1,Uf=0,bd=0,Cf=Oa,ss=null;t:for(;;){for(var Uo;Cf!==ki||Qr!==0&&Cf.nodeType!==3||(Dd=Lu+Qr),Cf!==Oo||cl!==0&&Cf.nodeType!==3||(pc=Lu+cl),Cf.nodeType===3&&(Lu+=Cf.nodeValue.length),(Uo=Cf.firstChild)!==null;)ss=Cf,Cf=Uo;for(;;){if(Cf===Oa)break t;if(ss===ki&&++Uf===Qr&&(Dd=Lu),ss===Oo&&++bd===cl&&(pc=Lu),(Uo=Cf.nextSibling)!==null)break;Cf=ss,ss=Cf.parentNode}Cf=Uo}ki=Dd===-1||pc===-1?null:{start:Dd,end:pc}}else ki=null;ki=ki||{start:0,end:0}}else ki=null;Wn={focusedElem:Oa,selectionRange:ki},Za=!1,Yi=null,Wo=!1,Yo=vn;do try{wi()}catch(Rd){if(Yo===null)throw Error(y(330));Ta(Yo,Rd),Yo=Yo.nextEffect}while(Yo!==null);Yi=null,Yo=vn;do try{for(Oa=le;Yo!==null;){var hs=Yo.flags;if(hs&16&&Jt(Yo.stateNode,""),hs&128){var jl=Yo.alternate;if(jl!==null){var Gl=jl.ref;Gl!==null&&(typeof Gl=="function"?Gl(null):Gl.current=null)}}switch(hs&1038){case 2:yh(Yo),Yo.flags&=-3;break;case 6:yh(Yo),Yo.flags&=-3,Ng(Yo.alternate,Yo);break;case 1024:Yo.flags&=-1025;break;case 1028:Yo.flags&=-1025,Ng(Yo.alternate,Yo);break;case 4:Ng(Yo.alternate,Yo);break;case 8:ki=Yo,km(Oa,ki);var Jd=ki.alternate;ch(ki),Jd!==null&&ch(Jd)}Yo=Yo.nextEffect}}catch(Rd){if(Yo===null)throw Error(y(330));Ta(Yo,Rd),Yo=Yo.nextEffect}while(Yo!==null);if(Gl=Wn,jl=yc(),hs=Gl.focusedElem,Oa=Gl.selectionRange,jl!==hs&&hs&&hs.ownerDocument&&Ml(hs.ownerDocument.documentElement,hs)){for(Oa!==null&&oa(hs)&&(jl=Oa.start,Gl=Oa.end,Gl===void 0&&(Gl=jl),"selectionStart"in hs?(hs.selectionStart=jl,hs.selectionEnd=Math.min(Gl,hs.value.length)):(Gl=(jl=hs.ownerDocument||document)&&jl.defaultView||window,Gl.getSelection&&(Gl=Gl.getSelection(),ki=hs.textContent.length,Jd=Math.min(Oa.start,ki),Oa=Oa.end===void 0?Jd:Math.min(Oa.end,ki),!Gl.extend&&Jd>Oa&&(ki=Oa,Oa=Jd,Jd=ki),ki=mo(hs,Jd),Qr=mo(hs,Oa),ki&&Qr&&(Gl.rangeCount!==1||Gl.anchorNode!==ki.node||Gl.anchorOffset!==ki.offset||Gl.focusNode!==Qr.node||Gl.focusOffset!==Qr.offset)&&(jl=jl.createRange(),jl.setStart(ki.node,ki.offset),Gl.removeAllRanges(),Jd>Oa?(Gl.addRange(jl),Gl.extend(Qr.node,Qr.offset)):(jl.setEnd(Qr.node,Qr.offset),Gl.addRange(jl)))))),jl=[],Gl=hs;Gl=Gl.parentNode;)Gl.nodeType===1&&jl.push({element:Gl,left:Gl.scrollLeft,top:Gl.scrollTop});for(typeof hs.focus=="function"&&hs.focus(),hs=0;hs<jl.length;hs++)Gl=jl[hs],Gl.element.scrollLeft=Gl.left,Gl.element.scrollTop=Gl.top}Za=!!Af,Wn=Af=null,le.current=Xe,Yo=vn;do try{for(hs=le;Yo!==null;){var Ku=Yo.flags;if(Ku&36&&dm(hs,Yo.alternate,Yo),Ku&128){jl=void 0;var Nd=Yo.ref;if(Nd!==null){var pp=Yo.stateNode;switch(Yo.tag){case 5:jl=pp;break;default:jl=pp}typeof Nd=="function"?Nd(jl):Nd.current=jl}}Yo=Yo.nextEffect}}catch(Rd){if(Yo===null)throw Error(y(330));Ta(Yo,Rd),Yo=Yo.nextEffect}while(Yo!==null);Yo=null,pf(),ea=or}else le.current=Xe;if(yt)yt=!1,It=le,Sn=Ce;else for(Yo=vn;Yo!==null;)Ce=Yo.nextEffect,Yo.nextEffect=null,Yo.flags&8&&(Ku=Yo,Ku.sibling=null,Ku.stateNode=null),Yo=Ce;if(vn=le.pendingLanes,vn===0&&(je=null),vn===1?le===Br?Ir++:(Ir=0,Br=le):Ir=0,Xe=Xe.stateNode,Sa&&typeof Sa.onCommitFiberRoot=="function")try{Sa.onCommitFiberRoot(kr,Xe,void 0,(Xe.current.flags&64)==64)}catch(Rd){}if(du(le,Lr()),Ec)throw Ec=!1,le=Ft,Ft=null,le;return(ea&8)!=0||pi(),null}function wi(){for(;Yo!==null;){var le=Yo.alternate;Wo||Yi===null||((Yo.flags&8)!=0?ya(Yo,Yi)&&(Wo=!0):Yo.tag===13&&e0(le,Yo)&&ya(Yo,Yi)&&(Wo=!0));var Ce=Yo.flags;(Ce&256)!=0&&dg(le,Yo),(Ce&512)==0||yt||(yt=!0,Ja(97,function(){return ps(),null})),Yo=Yo.nextEffect}}function ps(){if(Sn!==90){var le=97<Sn?97:Sn;return Sn=90,Ia(le,od)}return!1}function qo(le,Ce){In.push(Ce,le),yt||(yt=!0,Ja(97,function(){return ps(),null}))}function zc(le,Ce){mr.push(Ce,le),yt||(yt=!0,Ja(97,function(){return ps(),null}))}function od(){if(It===null)return!1;var le=It;if(It=null,(ea&48)!=0)throw Error(y(331));var Ce=ea;ea|=32;var Xe=mr;mr=[];for(var vn=0;vn<Xe.length;vn+=2){var or=Xe[vn],Qr=Xe[vn+1],Oa=or.destroy;if(or.destroy=void 0,typeof Oa=="function")try{Oa()}catch(Oo){if(Qr===null)throw Error(y(330));Ta(Qr,Oo)}}for(Xe=In,In=[],vn=0;vn<Xe.length;vn+=2){or=Xe[vn],Qr=Xe[vn+1];try{var ki=or.create;or.destroy=ki()}catch(Oo){if(Qr===null)throw Error(y(330));Ta(Qr,Oo)}}for(ki=le.current.firstEffect;ki!==null;)le=ki.nextEffect,ki.nextEffect=null,ki.flags&8&&(ki.sibling=null,ki.stateNode=null),ki=le;return ea=Ce,pi(),!0}function ri(le,Ce,Xe){Ce=nv(Xe,Ce),Ce=Uv(le,Ce,1),fu(le,Ce),Ce=_s(),le=uc(le,1),le!==null&&(Dn(le,1,Ce),du(le,Ce))}function Ta(le,Ce){if(le.tag===3)ri(le,le,Ce);else for(var Xe=le.return;Xe!==null;){if(Xe.tag===3){ri(Xe,le,Ce);break}else if(Xe.tag===1){var vn=Xe.stateNode;if(typeof Xe.type.getDerivedStateFromError=="function"||typeof vn.componentDidCatch=="function"&&(je===null||!je.has(vn))){le=nv(Ce,le);var or=dv(Xe,le,1);if(fu(Xe,or),or=_s(),Xe=uc(Xe,1),Xe!==null)Dn(Xe,1,or),du(Xe,or);else if(typeof vn.componentDidCatch=="function"&&(je===null||!je.has(vn)))try{vn.componentDidCatch(Ce,le)}catch(Qr){}break}}Xe=Xe.return}}function eo(le,Ce,Xe){var vn=le.pingCache;vn!==null&&vn.delete(Ce),Ce=_s(),le.pingedLanes|=le.suspendedLanes&Xe,bi===le&&(_o&Xe)===Xe&&(Ns===4||Ns===3&&(_o&62914560)===_o&&500>Lr()-Ol?Xd(le,0):ac|=Xe),du(le,Ce)}function Po(le,Ce){var Xe=le.stateNode;Xe!==null&&Xe.delete(Ce),Ce=0,Ce===0&&(Ce=le.mode,(Ce&2)==0?Ce=1:(Ce&4)==0?Ce=sa()===99?1:2:(vi===0&&(vi=yl),Ce=Ln(62914560&~vi),Ce===0&&(Ce=4194304))),Xe=_s(),le=uc(le,Ce),le!==null&&(Dn(le,Ce,Xe),du(le,Xe))}var qi;qi=function(le,Ce,Xe){var vn=Ce.lanes;if(le!==null)if(le.memoizedProps!==Ce.pendingProps||Fs.current)Ou=!0;else if((Xe&vn)!=0)Ou=(le.flags&16384)!=0;else{switch(Ou=!1,Ce.tag){case 3:im(Ce),Nt();break;case 5:gi(Ce);break;case 1:Js(Ce.type)&&Bs(Ce);break;case 4:pa(Ce,Ce.stateNode.containerInfo);break;case 10:vn=Ce.memoizedProps.value;var or=Ce.type._context;Oi(Qo,or._currentValue),or._currentValue=vn;break;case 13:if(Ce.memoizedState!==null)return(Xe&Ce.child.childLanes)!=0?_h(le,Ce,Xe):(Oi(No,No.current&1),Ce=Hp(le,Ce,Xe),Ce!==null?Ce.sibling:null);Oi(No,No.current&1);break;case 19:if(vn=(Xe&Ce.childLanes)!=0,(le.flags&64)!=0){if(vn)return Dp(le,Ce,Xe);Ce.flags|=64}if(or=Ce.memoizedState,or!==null&&(or.rendering=null,or.tail=null,or.lastEffect=null),Oi(No,No.current),vn)break;return null;case 23:case 24:return Ce.lanes=0,uv(le,Ce,Xe)}return Hp(le,Ce,Xe)}else Ou=!1;switch(Ce.lanes=0,Ce.tag){case 2:if(vn=Ce.type,le!==null&&(le.alternate=null,Ce.alternate=null,Ce.flags|=2),le=Ce.pendingProps,or=tl(Ce,as.current),xc(Ce,Xe),or=Nv(null,Ce,vn,le,or,Xe),Ce.flags|=1,typeof or=="object"&&or!==null&&typeof or.render=="function"&&or.$$typeof===void 0){if(Ce.tag=1,Ce.memoizedState=null,Ce.updateQueue=null,Js(vn)){var Qr=!0;Bs(Ce)}else Qr=!1;Ce.memoizedState=or.state!==null&&or.state!==void 0?or.state:null,Xu(Ce);var Oa=vn.getDerivedStateFromProps;typeof Oa=="function"&&jf(Ce,vn,Oa,le),or.updater=Tu,Ce.stateNode=or,or._reactInternals=Ce,Op(Ce,vn,le,Xe),Ce=wh(null,Ce,vn,!0,Qr,Xe)}else Ce.tag=0,Lf(null,Ce,or,Xe),Ce=Ce.child;return Ce;case 16:or=Ce.elementType;e:{switch(le!==null&&(le.alternate=null,Ce.alternate=null,Ce.flags|=2),le=Ce.pendingProps,Qr=or._init,or=Qr(or._payload),Ce.type=or,Qr=Ce.tag=si(or),le=xo(or,le),Qr){case 0:Ce=fv(null,Ce,or,le,Xe);break e;case 1:Ce=Yv(null,Ce,or,le,Xe);break e;case 11:Ce=Mf(null,Ce,or,le,Xe);break e;case 14:Ce=Sd(null,Ce,or,xo(or.type,le),vn,Xe);break e}throw Error(y(306,or,""))}return Ce;case 0:return vn=Ce.type,or=Ce.pendingProps,or=Ce.elementType===vn?or:xo(vn,or),fv(le,Ce,vn,or,Xe);case 1:return vn=Ce.type,or=Ce.pendingProps,or=Ce.elementType===vn?or:xo(vn,or),Yv(le,Ce,vn,or,Xe);case 3:if(im(Ce),vn=Ce.updateQueue,le===null||vn===null)throw Error(y(282));if(vn=Ce.pendingProps,or=Ce.memoizedState,or=or!==null?or.element:null,_u(le,Ce),td(Ce,vn,null,Xe),vn=Ce.memoizedState.element,vn===or)Nt(),Ce=Hp(le,Ce,Xe);else{if(or=Ce.stateNode,(Qr=or.hydrate)&&(gl=vo(Ce.stateNode.containerInfo.firstChild),Jo=Ce,Qr=js=!0),Qr){if(le=or.mutableSourceEagerHydrationData,le!=null)for(or=0;or<le.length;or+=2)Qr=le[or],Qr._workInProgressVersionPrimary=le[or+1],xn.push(Qr);for(Xe=cr(Ce,null,vn,Xe),Ce.child=Xe;Xe;)Xe.flags=Xe.flags&-3|1024,Xe=Xe.sibling}else Lf(le,Ce,vn,Xe),Nt();Ce=Ce.child}return Ce;case 5:return gi(Ce),le===null&&te(Ce),vn=Ce.type,or=Ce.pendingProps,Qr=le!==null?le.memoizedProps:null,Oa=or.children,ra(vn,or)?Oa=null:Qr!==null&&ra(vn,Qr)&&(Ce.flags|=16),Fh(le,Ce),Lf(le,Ce,Oa,Xe),Ce.child;case 6:return le===null&&te(Ce),null;case 13:return _h(le,Ce,Xe);case 4:return pa(Ce,Ce.stateNode.containerInfo),vn=Ce.pendingProps,le===null?Ce.child=dd(Ce,null,vn,Xe):Lf(le,Ce,vn,Xe),Ce.child;case 11:return vn=Ce.type,or=Ce.pendingProps,or=Ce.elementType===vn?or:xo(vn,or),Mf(le,Ce,vn,or,Xe);case 7:return Lf(le,Ce,Ce.pendingProps,Xe),Ce.child;case 8:return Lf(le,Ce,Ce.pendingProps.children,Xe),Ce.child;case 12:return Lf(le,Ce,Ce.pendingProps.children,Xe),Ce.child;case 10:e:{vn=Ce.type._context,or=Ce.pendingProps,Oa=Ce.memoizedProps,Qr=or.value;var ki=Ce.type._context;if(Oi(Qo,ki._currentValue),ki._currentValue=Qr,Oa!==null)if(ki=Oa.value,Qr=ni(ki,Qr)?0:(typeof vn._calculateChangedBits=="function"?vn._calculateChangedBits(ki,Qr):1073741823)|0,Qr===0){if(Oa.children===or.children&&!Fs.current){Ce=Hp(le,Ce,Xe);break e}}else for(ki=Ce.child,ki!==null&&(ki.return=Ce);ki!==null;){var Oo=ki.dependencies;if(Oo!==null){Oa=ki.child;for(var cl=Oo.firstContext;cl!==null;){if(cl.context===vn&&(cl.observedBits&Qr)!=0){ki.tag===1&&(cl=wu(-1,Xe&-Xe),cl.tag=2,fu(ki,cl)),ki.lanes|=Xe,cl=ki.alternate,cl!==null&&(cl.lanes|=Xe),mu(ki.return,Xe),Oo.lanes|=Xe;break}cl=cl.next}}else Oa=ki.tag===10&&ki.type===Ce.type?null:ki.child;if(Oa!==null)Oa.return=ki;else for(Oa=ki;Oa!==null;){if(Oa===Ce){Oa=null;break}if(ki=Oa.sibling,ki!==null){ki.return=Oa.return,Oa=ki;break}Oa=Oa.return}ki=Oa}Lf(le,Ce,or.children,Xe),Ce=Ce.child}return Ce;case 9:return or=Ce.type,Qr=Ce.pendingProps,vn=Qr.children,xc(Ce,Xe),or=Ll(or,Qr.unstable_observedBits),vn=vn(or),Ce.flags|=1,Lf(le,Ce,vn,Xe),Ce.child;case 14:return or=Ce.type,Qr=xo(or,Ce.pendingProps),Qr=xo(or.type,Qr),Sd(le,Ce,or,Qr,vn,Xe);case 15:return jv(le,Ce,Ce.type,Ce.pendingProps,vn,Xe);case 17:return vn=Ce.type,or=Ce.pendingProps,or=Ce.elementType===vn?or:xo(vn,or),le!==null&&(le.alternate=null,Ce.alternate=null,Ce.flags|=2),Ce.tag=1,Js(vn)?(le=!0,Bs(Ce)):le=!1,xc(Ce,Xe),vd(Ce,vn,or),Op(Ce,vn,or,Xe),wh(null,Ce,vn,!0,le,Xe);case 19:return Dp(le,Ce,Xe);case 23:return uv(le,Ce,Xe);case 24:return uv(le,Ce,Xe)}throw Error(y(156,Ce.tag))};function Ii(le,Ce,Xe,vn){this.tag=le,this.key=Xe,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=Ce,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=vn,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Gi(le,Ce,Xe,vn){return new Ii(le,Ce,Xe,vn)}function po(le){return le=le.prototype,!(!le||!le.isReactComponent)}function si(le){if(typeof le=="function")return po(le)?1:0;if(le!=null){if(le=le.$$typeof,le===Q)return 11;if(le===Ee)return 14}return 2}function Zi(le,Ce){var Xe=le.alternate;return Xe===null?(Xe=Gi(le.tag,Ce,le.key,le.mode),Xe.elementType=le.elementType,Xe.type=le.type,Xe.stateNode=le.stateNode,Xe.alternate=le,le.alternate=Xe):(Xe.pendingProps=Ce,Xe.type=le.type,Xe.flags=0,Xe.nextEffect=null,Xe.firstEffect=null,Xe.lastEffect=null),Xe.childLanes=le.childLanes,Xe.lanes=le.lanes,Xe.child=le.child,Xe.memoizedProps=le.memoizedProps,Xe.memoizedState=le.memoizedState,Xe.updateQueue=le.updateQueue,Ce=le.dependencies,Xe.dependencies=Ce===null?null:{lanes:Ce.lanes,firstContext:Ce.firstContext},Xe.sibling=le.sibling,Xe.index=le.index,Xe.ref=le.ref,Xe}function Va(le,Ce,Xe,vn,or,Qr){var Oa=2;if(vn=le,typeof le=="function")po(le)&&(Oa=1);else if(typeof le=="string")Oa=5;else e:switch(le){case G:return Bi(Xe.children,or,Qr,Ce);case we:Oa=8,or|=16;break;case z:Oa=8,or|=1;break;case K:return le=Gi(12,Xe,Ce,or|8),le.elementType=K,le.type=K,le.lanes=Qr,le;case ue:return le=Gi(13,Xe,Ce,or),le.type=ue,le.elementType=ue,le.lanes=Qr,le;case he:return le=Gi(19,Xe,Ce,or),le.elementType=he,le.lanes=Qr,le;case me:return $o(Xe,or,Qr,Ce);case Pe:return le=Gi(24,Xe,Ce,or),le.elementType=Pe,le.lanes=Qr,le;default:if(typeof le=="object"&&le!==null)switch(le.$$typeof){case re:Oa=10;break e;case ne:Oa=9;break e;case Q:Oa=11;break e;case Ee:Oa=14;break e;case ce:Oa=16,vn=null;break e;case ve:Oa=22;break e}throw Error(y(130,le==null?le:typeof le,""))}return Ce=Gi(Oa,Xe,Ce,or),Ce.elementType=le,Ce.type=vn,Ce.lanes=Qr,Ce}function Bi(le,Ce,Xe,vn){return le=Gi(7,le,vn,Ce),le.lanes=Xe,le}function $o(le,Ce,Xe,vn){return le=Gi(23,le,vn,Ce),le.elementType=me,le.lanes=Xe,le}function Vs(le,Ce,Xe){return le=Gi(6,le,null,Ce),le.lanes=Xe,le}function Cs(le,Ce,Xe){return Ce=Gi(4,le.children!==null?le.children:[],le.key,Ce),Ce.lanes=Xe,Ce.stateNode={containerInfo:le.containerInfo,pendingChildren:null,implementation:le.implementation},Ce}function vs(le,Ce,Xe){this.tag=Ce,this.containerInfo=le,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=Xe,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Tr(0),this.expirationTimes=Tr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tr(0),this.mutableSourceEagerHydrationData=null}function Vl(le,Ce,Xe){var vn=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$,key:vn==null?null:""+vn,children:le,containerInfo:Ce,implementation:Xe}}function ou(le,Ce,Xe,vn){var or=Ce.current,Qr=_s(),Oa=ys(or);e:if(Xe){Xe=Xe._reactInternals;t:{if(na(Xe)!==Xe||Xe.tag!==1)throw Error(y(170));var ki=Xe;do{switch(ki.tag){case 3:ki=ki.stateNode.context;break t;case 1:if(Js(ki.type)){ki=ki.stateNode.__reactInternalMemoizedMergedChildContext;break t}}ki=ki.return}while(ki!==null);throw Error(y(171))}if(Xe.tag===1){var Oo=Xe.type;if(Js(Oo)){Xe=El(Xe,Oo,ki);break e}}Xe=ki}else Xe=Fo;return Ce.context===null?Ce.context=Xe:Ce.pendingContext=Xe,Ce=wu(Qr,Oa),Ce.payload={element:le},vn=vn===void 0?null:vn,vn!==null&&(Ce.callback=vn),fu(or,Ce),qs(or,Oa,Qr),Oa}function Xf(le){if(le=le.current,!le.child)return null;switch(le.child.tag){case 5:return le.child.stateNode;default:return le.child.stateNode}}function pu(le,Ce){if(le=le.memoizedState,le!==null&&le.dehydrated!==null){var Xe=le.retryLane;le.retryLane=Xe!==0&&Xe<Ce?Xe:Ce}}function sf(le,Ce){pu(le,Ce),(le=le.alternate)&&pu(le,Ce)}function Jf(){return null}function Vd(le,Ce,Xe){var vn=Xe!=null&&Xe.hydrationOptions!=null&&Xe.hydrationOptions.mutableSources||null;if(Xe=new vs(le,Ce,Xe!=null&&Xe.hydrate===!0),Ce=Gi(3,null,null,Ce===2?7:Ce===1?3:0),Xe.current=Ce,Ce.stateNode=Xe,Xu(Ce),le[Zs]=Xe.current,gf(le.nodeType===8?le.parentNode:le),vn)for(le=0;le<vn.length;le++){Ce=vn[le];var or=Ce._getVersion;or=or(Ce._source),Xe.mutableSourceEagerHydrationData==null?Xe.mutableSourceEagerHydrationData=[Ce,or]:Xe.mutableSourceEagerHydrationData.push(Ce,or)}this._internalRoot=Xe}Vd.prototype.render=function(le){ou(le,this._internalRoot,null,null)},Vd.prototype.unmount=function(){var le=this._internalRoot,Ce=le.containerInfo;ou(null,le,null,function(){Ce[Zs]=null})};function rv(le){return!(!le||le.nodeType!==1&&le.nodeType!==9&&le.nodeType!==11&&(le.nodeType!==8||le.nodeValue!==" react-mount-point-unstable "))}function Jv(le,Ce){if(Ce||(Ce=le?le.nodeType===9?le.documentElement:le.firstChild:null,Ce=!(!Ce||Ce.nodeType!==1||!Ce.hasAttribute("data-reactroot"))),!Ce)for(var Xe;Xe=le.lastChild;)le.removeChild(Xe);return new Vd(le,0,Ce?{hydrate:!0}:void 0)}function Fg(le,Ce,Xe,vn,or){var Qr=Xe._reactRootContainer;if(Qr){var Oa=Qr._internalRoot;if(typeof or=="function"){var ki=or;or=function(){var cl=Xf(Oa);ki.call(cl)}}ou(Ce,Oa,le,or)}else{if(Qr=Xe._reactRootContainer=Jv(Xe,vn),Oa=Qr._internalRoot,typeof or=="function"){var Oo=or;or=function(){var cl=Xf(Oa);Oo.call(cl)}}yd(function(){ou(Ce,Oa,le,or)})}return Xf(Oa)}$t=function(le){if(le.tag===13){var Ce=_s();qs(le,4,Ce),sf(le,4)}},wn=function(le){if(le.tag===13){var Ce=_s();qs(le,67108864,Ce),sf(le,67108864)}},Fn=function(le){if(le.tag===13){var Ce=_s(),Xe=ys(le);qs(le,Xe,Ce),sf(le,Xe)}},Or=function(le,Ce){return Ce()},nt=function(le,Ce,Xe){switch(Ce){case"input":if(at(le,Xe),Ce=Xe.name,Xe.type==="radio"&&Ce!=null){for(Xe=le;Xe.parentNode;)Xe=Xe.parentNode;for(Xe=Xe.querySelectorAll("input[name="+JSON.stringify(""+Ce)+'][type="radio"]'),Ce=0;Ce<Xe.length;Ce++){var vn=Xe[Ce];if(vn!==le&&vn.form===le.form){var or=Xr(vn);if(!or)throw Error(y(90));Vt(vn),at(vn,or)}}}break;case"textarea":ze(le,Xe);break;case"select":Ce=Xe.value,Ce!=null&&Yt(le,!!Xe.multiple,Ce,!1)}},be=id,Ae=function(le,Ce,Xe,vn,or){var Qr=ea;ea|=4;try{return Ia(98,le.bind(null,Ce,Xe,vn,or))}finally{ea=Qr,ea===0&&(Go(),pi())}},Ue=function(){(ea&49)==0&&(_d(),ps())},$e=function(le,Ce){var Xe=ea;ea|=2;try{return le(Ce)}finally{ea=Xe,ea===0&&(Go(),pi())}};function Zv(le,Ce){var Xe=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rv(Ce))throw Error(y(200));return Vl(le,Ce,null,Xe)}var ry={Events:[Qn,dr,Xr,bt,We,ps,{current:!1}]},Xh={findFiberByHostInstance:$s,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},P0={bundleType:Xh.bundleType,version:Xh.version,rendererPackageName:Xh.rendererPackageName,rendererConfig:Xh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:L.ReactCurrentDispatcher,findHostInstanceByFiber:function(le){return le=Aa(le),le===null?null:le.stateNode},findFiberByHostInstance:Xh.findFiberByHostInstance||Jf,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var t0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t0.isDisabled&&t0.supportsFiber)try{kr=t0.inject(P0),Sa=t0}catch(le){}}N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ry,N.createPortal=Zv,N.findDOMNode=function(le){if(le==null)return null;if(le.nodeType===1)return le;var Ce=le._reactInternals;if(Ce===void 0)throw typeof le.render=="function"?Error(y(188)):Error(y(268,Object.keys(le)));return le=Aa(Ce),le=le===null?null:le.stateNode,le},N.flushSync=function(le,Ce){var Xe=ea;if((Xe&48)!=0)return le(Ce);ea|=1;try{if(le)return Ia(99,le.bind(null,Ce))}finally{ea=Xe,pi()}},N.hydrate=function(le,Ce,Xe){if(!rv(Ce))throw Error(y(200));return Fg(null,le,Ce,!0,Xe)},N.render=function(le,Ce,Xe){if(!rv(Ce))throw Error(y(200));return Fg(null,le,Ce,!1,Xe)},N.unmountComponentAtNode=function(le){if(!rv(le))throw Error(y(40));return le._reactRootContainer?(yd(function(){Fg(null,null,le,!1,function(){le._reactRootContainer=null,le[Zs]=null})}),!0):!1},N.unstable_batchedUpdates=id,N.unstable_createPortal=function(le,Ce){return Zv(le,Ce,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},N.unstable_renderSubtreeIntoContainer=function(le,Ce,Xe,vn){if(!rv(Xe))throw Error(y(200));if(le==null||le._reactInternals===void 0)throw Error(y(38));return Fg(le,Ce,Xe,!1,vn)},N.version="17.0.2"},73935:function(oe,N,o){"use strict";function x(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(x)}catch(g){console.error(g)}}x(),oe.exports=o(64448)},75251:function(oe,N,o){"use strict";/** @license React v17.0.2
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/o(44547);var x=o(67294),g=60103;if(N.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var A=Symbol.for;g=A("react.element"),N.Fragment=A("react.fragment")}var y=x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,M=Object.prototype.hasOwnProperty,w={key:!0,ref:!0,__self:!0,__source:!0};function m(b,v,h){var d,_={},p=null,S=null;h!==void 0&&(p=""+h),v.key!==void 0&&(p=""+v.key),v.ref!==void 0&&(S=v.ref);for(d in v)M.call(v,d)&&!w.hasOwnProperty(d)&&(_[d]=v[d]);if(b&&b.defaultProps)for(d in v=b.defaultProps,v)_[d]===void 0&&(_[d]=v[d]);return{$$typeof:g,type:b,key:p,ref:S,props:_,_owner:y.current}}N.jsx=m,N.jsxs=m},72408:function(oe,N,o){"use strict";/** @license React v17.0.2
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var x=o(44547),g=60103,A=60106;N.Fragment=60107,N.StrictMode=60108,N.Profiler=60114;var y=60109,M=60110,w=60112;N.Suspense=60113;var m=60115,b=60116;if(typeof Symbol=="function"&&Symbol.for){var v=Symbol.for;g=v("react.element"),A=v("react.portal"),N.Fragment=v("react.fragment"),N.StrictMode=v("react.strict_mode"),N.Profiler=v("react.profiler"),y=v("react.provider"),M=v("react.context"),w=v("react.forward_ref"),N.Suspense=v("react.suspense"),m=v("react.memo"),b=v("react.lazy")}var h=typeof Symbol=="function"&&Symbol.iterator;function d(ce){return ce===null||typeof ce!="object"?null:(ce=h&&ce[h]||ce["@@iterator"],typeof ce=="function"?ce:null)}function _(ce){for(var ve="https://reactjs.org/docs/error-decoder.html?invariant="+ce,fe=1;fe<arguments.length;fe++)ve+="&args[]="+encodeURIComponent(arguments[fe]);return"Minified React error #"+ce+"; visit "+ve+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S={};function k(ce,ve,fe){this.props=ce,this.context=ve,this.refs=S,this.updater=fe||p}k.prototype.isReactComponent={},k.prototype.setState=function(ce,ve){if(typeof ce!="object"&&typeof ce!="function"&&ce!=null)throw Error(_(85));this.updater.enqueueSetState(this,ce,ve,"setState")},k.prototype.forceUpdate=function(ce){this.updater.enqueueForceUpdate(this,ce,"forceUpdate")};function O(){}O.prototype=k.prototype;function F(ce,ve,fe){this.props=ce,this.context=ve,this.refs=S,this.updater=fe||p}var D=F.prototype=new O;D.constructor=F,x(D,k.prototype),D.isPureReactComponent=!0;var Z={current:null},W=Object.prototype.hasOwnProperty,U={key:!0,ref:!0,__self:!0,__source:!0};function L(ce,ve,fe){var we,me={},Pe=null,pe=null;if(ve!=null)for(we in ve.ref!==void 0&&(pe=ve.ref),ve.key!==void 0&&(Pe=""+ve.key),ve)W.call(ve,we)&&!U.hasOwnProperty(we)&&(me[we]=ve[we]);var Ie=arguments.length-2;if(Ie===1)me.children=fe;else if(1<Ie){for(var Je=Array(Ie),ke=0;ke<Ie;ke++)Je[ke]=arguments[ke+2];me.children=Je}if(ce&&ce.defaultProps)for(we in Ie=ce.defaultProps,Ie)me[we]===void 0&&(me[we]=Ie[we]);return{$$typeof:g,type:ce,key:Pe,ref:pe,props:me,_owner:Z.current}}function V(ce,ve){return{$$typeof:g,type:ce.type,key:ve,ref:ce.ref,props:ce.props,_owner:ce._owner}}function $(ce){return typeof ce=="object"&&ce!==null&&ce.$$typeof===g}function G(ce){var ve={"=":"=0",":":"=2"};return"$"+ce.replace(/[=:]/g,function(fe){return ve[fe]})}var z=/\/+/g;function K(ce,ve){return typeof ce=="object"&&ce!==null&&ce.key!=null?G(""+ce.key):ve.toString(36)}function re(ce,ve,fe,we,me){var Pe=typeof ce;(Pe==="undefined"||Pe==="boolean")&&(ce=null);var pe=!1;if(ce===null)pe=!0;else switch(Pe){case"string":case"number":pe=!0;break;case"object":switch(ce.$$typeof){case g:case A:pe=!0}}if(pe)return pe=ce,me=me(pe),ce=we===""?"."+K(pe,0):we,Array.isArray(me)?(fe="",ce!=null&&(fe=ce.replace(z,"$&/")+"/"),re(me,ve,fe,"",function(ke){return ke})):me!=null&&($(me)&&(me=V(me,fe+(!me.key||pe&&pe.key===me.key?"":(""+me.key).replace(z,"$&/")+"/")+ce)),ve.push(me)),1;if(pe=0,we=we===""?".":we+":",Array.isArray(ce))for(var Ie=0;Ie<ce.length;Ie++){Pe=ce[Ie];var Je=we+K(Pe,Ie);pe+=re(Pe,ve,fe,Je,me)}else if(Je=d(ce),typeof Je=="function")for(ce=Je.call(ce),Ie=0;!(Pe=ce.next()).done;)Pe=Pe.value,Je=we+K(Pe,Ie++),pe+=re(Pe,ve,fe,Je,me);else if(Pe==="object")throw ve=""+ce,Error(_(31,ve==="[object Object]"?"object with keys {"+Object.keys(ce).join(", ")+"}":ve));return pe}function ne(ce,ve,fe){if(ce==null)return ce;var we=[],me=0;return re(ce,we,"","",function(Pe){return ve.call(fe,Pe,me++)}),we}function Q(ce){if(ce._status===-1){var ve=ce._result;ve=ve(),ce._status=0,ce._result=ve,ve.then(function(fe){ce._status===0&&(fe=fe.default,ce._status=1,ce._result=fe)},function(fe){ce._status===0&&(ce._status=2,ce._result=fe)})}if(ce._status===1)return ce._result;throw ce._result}var ue={current:null};function he(){var ce=ue.current;if(ce===null)throw Error(_(321));return ce}var Ee={ReactCurrentDispatcher:ue,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Z,IsSomeRendererActing:{current:!1},assign:x};N.Children={map:ne,forEach:function(ce,ve,fe){ne(ce,function(){ve.apply(this,arguments)},fe)},count:function(ce){var ve=0;return ne(ce,function(){ve++}),ve},toArray:function(ce){return ne(ce,function(ve){return ve})||[]},only:function(ce){if(!$(ce))throw Error(_(143));return ce}},N.Component=k,N.PureComponent=F,N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ee,N.cloneElement=function(ce,ve,fe){if(ce==null)throw Error(_(267,ce));var we=x({},ce.props),me=ce.key,Pe=ce.ref,pe=ce._owner;if(ve!=null){if(ve.ref!==void 0&&(Pe=ve.ref,pe=Z.current),ve.key!==void 0&&(me=""+ve.key),ce.type&&ce.type.defaultProps)var Ie=ce.type.defaultProps;for(Je in ve)W.call(ve,Je)&&!U.hasOwnProperty(Je)&&(we[Je]=ve[Je]===void 0&&Ie!==void 0?Ie[Je]:ve[Je])}var Je=arguments.length-2;if(Je===1)we.children=fe;else if(1<Je){Ie=Array(Je);for(var ke=0;ke<Je;ke++)Ie[ke]=arguments[ke+2];we.children=Ie}return{$$typeof:g,type:ce.type,key:me,ref:Pe,props:we,_owner:pe}},N.createContext=function(ce,ve){return ve===void 0&&(ve=null),ce={$$typeof:M,_calculateChangedBits:ve,_currentValue:ce,_currentValue2:ce,_threadCount:0,Provider:null,Consumer:null},ce.Provider={$$typeof:y,_context:ce},ce.Consumer=ce},N.createElement=L,N.createFactory=function(ce){var ve=L.bind(null,ce);return ve.type=ce,ve},N.createRef=function(){return{current:null}},N.forwardRef=function(ce){return{$$typeof:w,render:ce}},N.isValidElement=$,N.lazy=function(ce){return{$$typeof:b,_payload:{_status:-1,_result:ce},_init:Q}},N.memo=function(ce,ve){return{$$typeof:m,type:ce,compare:ve===void 0?null:ve}},N.useCallback=function(ce,ve){return he().useCallback(ce,ve)},N.useContext=function(ce,ve){return he().useContext(ce,ve)},N.useDebugValue=function(){},N.useEffect=function(ce,ve){return he().useEffect(ce,ve)},N.useImperativeHandle=function(ce,ve,fe){return he().useImperativeHandle(ce,ve,fe)},N.useLayoutEffect=function(ce,ve){return he().useLayoutEffect(ce,ve)},N.useMemo=function(ce,ve){return he().useMemo(ce,ve)},N.useReducer=function(ce,ve,fe){return he().useReducer(ce,ve,fe)},N.useRef=function(ce){return he().useRef(ce)},N.useState=function(ce){return he().useState(ce)},N.version="17.0.2"},67294:function(oe,N,o){"use strict";oe.exports=o(72408)},85893:function(oe,N,o){"use strict";oe.exports=o(75251)},25893:function(){},24654:function(){}},xW={};function Pa(oe){var N=xW[oe];if(N!==void 0)return N.exports;var o=xW[oe]={id:oe,loaded:!1,exports:{}};return BY[oe].call(o.exports,o,o.exports,Pa),o.loaded=!0,o.exports}(function(){Pa.amdD=function(){throw new Error("define cannot be used indirect")}})(),function(){Pa.n=function(oe){var N=oe&&oe.__esModule?function(){return oe.default}:function(){return oe};return Pa.d(N,{a:N}),N}}(),function(){var oe=Object.getPrototypeOf?function(o){return Object.getPrototypeOf(o)}:function(o){return o.__proto__},N;Pa.t=function(o,x){if(x&1&&(o=this(o)),x&8||typeof o=="object"&&o&&(x&4&&o.__esModule||x&16&&typeof o.then=="function"))return o;var g=Object.create(null);Pa.r(g);var A={};N=N||[null,oe({}),oe([]),oe(oe)];for(var y=x&2&&o;typeof y=="object"&&!~N.indexOf(y);y=oe(y))Object.getOwnPropertyNames(y).forEach(function(M){A[M]=function(){return o[M]}});return A.default=function(){return o},Pa.d(g,A),g}}(),function(){Pa.d=function(oe,N){for(var o in N)Pa.o(N,o)&&!Pa.o(oe,o)&&Object.defineProperty(oe,o,{enumerable:!0,get:N[o]})}}(),function(){Pa.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(oe){if(typeof window=="object")return window}}()}(),function(){Pa.hmd=function(oe){return oe=Object.create(oe),oe.children||(oe.children=[]),Object.defineProperty(oe,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+oe.id)}}),oe}}(),function(){Pa.o=function(oe,N){return Object.prototype.hasOwnProperty.call(oe,N)}}(),function(){Pa.r=function(oe){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(oe,"__esModule",{value:!0})}}(),function(){Pa.nmd=function(oe){return oe.paths=[],oe.children||(oe.children=[]),oe}}(),function(){Pa.p="/webapp/"}();var Yoe={};(function(){"use strict";var oe={};Pa.r(oe),Pa.d(oe,{getInitialState:function(){return cr},initialStateConfig:function(){return hd},layout:function(){return Vr},patchRoutes:function(){return Jn},request:function(){return Gu}});var N={};Pa.r(N),Pa.d(N,{patchRoutes:function(){return gi}});var o={};Pa.r(o),Pa.d(o,{rootContainer:function(){return Nt}});var x={};Pa.r(x),Pa.d(x,{rootContainer:function(){return Yr}});var g={};Pa.r(g),Pa.d(g,{rootContainer:function(){return Hl}});var A={};Pa.r(A),Pa.d(A,{rootContainer:function(){return Pu}});var y={};Pa.r(y),Pa.d(y,{patchRoutes:function(){return kv}});var M={};Pa.r(M),Pa.d(M,{rootContainer:function(){return sh}});var w=Pa(69730),m=Pa(31475),b=Pa(49517),v=Pa(69470),h=Pa(88911),d=Pa(44669),_=Pa(77876),p=Pa(45729),S=Pa(98469),k=Pa(58611),O=Pa(57864),F=Pa(62011),D=Pa(92708),Z=Pa(62367),W=Pa(85089),U=Pa(47886),L=Pa(32121),V=Pa(11436),$=Pa(56208),G=Pa(27661),z=Pa(77421),K=Pa(38278),re=Pa(18189),ne=Pa(71892),Q=Pa(64320),ue=Pa(29105),he=Pa(30502),Ee=Pa(26432),ce=Pa(2981),ve=Pa(28539),fe=Pa(31857),we=Pa(87833),me=Pa(21859),Pe=Pa(91140),pe=Pa(74895),Ie=Pa(49637),Je=Pa(53718),ke=Pa(6632),De=Pa(96858),Fe=Pa(21812),Qe=Pa(97231),qe=Pa(15009),et=Pa(83264),dt=Pa(19976),Ke=Pa(88756),Ge=Pa(70681),wt=Pa(82438),Vt=Pa(7465),gt=Pa(73498),it=Pa(81298),Le=Pa(49348),ct=Pa(33372),at=Pa(12527),jt=Pa(84800),St=Pa(67895),fn=Pa(80560),Xt=Pa(4769),Yt=Pa(81213),Rt=Pa(29556),Lt=Pa(23152),ze=Pa(46635),rt=Pa(89455),tt=Pa(13484),de=Pa(50327),ot=Pa(90925),Et=Pa(77679),Ht=Pa(35417),Jt=Pa(10581),Qt=Pa(50919),an=Pa(46735),Un=Pa(31413),qt=Pa(36401),rn=Pa(58460),cn=Pa(62866),er=Pa(98074),rr=Pa(31113),nt=Pa(24296),lr=Pa(17821),Hn=Pa(15083),ut=Pa(54827),bt=Pa(96212),We=Pa(16031),be=Pa(18745),Ae=Pa(94745),Ue=Pa(40591),$e=Pa(94142),kt=Pa(21191),lt=Pa(44415),vt=Pa(523),Ct=Pa(9394),Bt=Pa(95372),mt=Pa(87217),Zt=Pa(83520),zt=Pa(73293),ln=Pa(13563),An=Pa(34218),En=Pa(70486),Gn=Pa(67060),Bn=Pa(9313),pr=Pa(49799),_r=Pa(19203),na=Pa(38357),$n=Pa(51499),qr=Pa(7979),Jr=Pa(1498),Aa=Pa(87357),ya=Pa(70219),$t=Pa(78129),wn=Pa(12482),Fn=Pa(25889),Or=Pa(2761),vr=Pa(94967),Ur=Pa(17942),Zr=Pa(57474),Kr=Pa(8960),ba=Pa(48015),Ri=Pa(51014),Ea=Pa(23606),Pi=Pa(29768),rs=Pa(98519),Ui=Pa(74954),Cn=Pa(79995),Kn=Pa(52880),Pn=Pa(12151),At=Pa(13880),ar=Pa(50469),ta=Pa(86690),Yn=Pa(67617),Qa=Pa(24253),Ua=Pa(98917),Fi=Pa(67407),Xa=Pa(88598),$i=Pa(2206),La=Pa(52785),ja=Pa(68550),ei=Pa(10371),Do=Pa(84826),yo=Pa(9224),to=Pa(48825),fs=Pa(14104),cs=Pa(90526),Os=Pa(11034),vl=Pa(99812),Ar=Pa(41105),Rn=Pa(77081),Sr=Pa(95427),nn=Pa(50200),sn=Pa(42809),Ot=Pa(40148),gr=Pa(91857),Gr=Pa(24041),Ln=Pa(18955),Tr=Pa(76134),Dn=Pa(5631),Pr=Pa(1194),fa=Pa(92749),ka=Pa(68612),Li=Pa(81175),zi=Pa(96841),Mo=Pa(16567),Za=Pa(13832),ao=Pa(62625),Mi=Pa(55486),Eo=Pa(93604),Xi=Pa(35010),Bo=Pa(74647),ol=Pa(81057),Il=Pa(92692),ms=Pa(59913),mc=Pa(90334),Ys=Pa(61383),hl=Pa(50540),Rs=Pa(73416),xl=Pa(19687),Wl=Pa(28527),_l=Pa(36226),Ls=Pa(55642),zn=Pa(63386),Dr=Pa(63925),Hr=Pa(5913),_a=Pa(71357),Ti=Pa(54495),Ci=Pa(14258),da=Pa(31213),Da=Pa(56125),mi=Pa(36315),Ho=Pa(99690),al=Pa(15937),ml=Pa(47693),Xs=Pa(55915),Ps=Pa(46857),dl=Pa(98274),ql=Pa(36710),Dc=Pa(35692),Jl=Pa(27934),oc=Pa(9502),xu=Pa(96510),yf=Pa(89774),ku=Pa(32680),Zc=Pa(71156),Zu=Pa(8088),Fc=Pa(69260),Hc=Pa(11139),Vu=Pa(93778),ws=Pa(4710),fc=Pa(99590),Tc=Pa(51730),jc=Pa(18258),lu=Pa(33500),hu=Pa(58728),of=Pa(23801),uu=Pa(66550),zu=Pa(21483),cf=Pa(3301),bf=Pa(51860),Cu=Pa(82895),rf=Pa(72086),Bu=Pa(78645),Tf=Pa(32073),ed=Pa(57341),Fd=Pa(65406),Pd=Pa(6593),Nc=Pa(90523),eu=Pa(99099),If=Pa(9256),$f=Pa(22312),Te=Pa(2540),_t=Pa(89638),Vn=Pa(91947),br=Pa(68611),tn=Pa(52283),Pt=Pa(21572),on=Pa(50987),_n=Pa(99241),ir=Pa(56960),xr=Pa(49293),aa=Pa(20677),oi=Pa(78712),ni=Pa(12065),yi=Pa(83649),Zo=Pa(41845),is=Pa(98346),mo=Pa(45862),Ml=Pa(80969),yc=Pa(69058),oa=Pa(20232),sl=Pa(72388),fl=Pa(46375),bc=Pa(48286),Rf=Pa(46569),Ms=Pa(46350),ff=Pa(97441),Df=Pa(26904),Ff=Pa(13975),Kf=Pa(54368),xf=Pa(75919),Sc=Pa(35716),Wu=Pa(30025),Du=Pa(11327),Gd=Pa(6695),gf=Pa(18679),Vp=Pa(20416),$c=Pa(49375),Yl=Pa(59391),Sp=Pa(20081),tp=Pa(66131),Rp=Pa(35035),df=Pa(25854),uf=Pa(4106),Af=Pa(95919),Wn=Pa(30342),ca=Pa(47385),ra=Pa(76041),Na=Pa(62801),fi=Pa(13753),so=Pa(48429),vo=Pa(68059),Ro=Pa(84737),So=Pa(39428),el=Pa(3182),ul=Pa(14643),Xo=Pa(92909),lo=Pa(67294),Zs=Pa(20546),Gs=Pa(60923),$s=Pa(85893),Qn=Gs.Z.pwa,dr=document.location.protocol==="https:";if(Qn)window.addEventListener("sw.offline",function(){Xo.default.warning((0,Zs.YB)().formatMessage({id:"app.pwa.offline"}))}),window.addEventListener("sw.updated",function(rc){var wl=rc,Sl=function(){var Bc=(0,el.Z)((0,So.Z)().mark(function $u(){var Nf;return(0,So.Z)().wrap(function(Lf){for(;;)switch(Lf.prev=Lf.next){case 0:if(Nf=wl.detail&&wl.detail.waiting,Nf){Lf.next=3;break}return Lf.abrupt("return",!0);case 3:return Lf.next=5,new Promise(function(Mf,Sd){var jv=new MessageChannel;jv.port1.onmessage=function(uv){uv.data.error?Sd(uv.data.error):Mf(uv.data)},Nf.postMessage({type:"skip-waiting"},[jv.port2])});case 5:return window.location.reload(!0),Lf.abrupt("return",!0);case 7:case"end":return Lf.stop()}},$u)}));return function(){return Bc.apply(this,arguments)}}(),Ac="open".concat(Date.now()),Ju=(0,$s.jsx)(so.Z,{type:"primary",onClick:function(){Ro.default.close(Ac),Sl()},children:(0,Zs.YB)().formatMessage({id:"app.pwa.serviceworker.updated.ok"})});Ro.default.open({message:(0,Zs.YB)().formatMessage({id:"app.pwa.serviceworker.updated"}),description:(0,Zs.YB)().formatMessage({id:"app.pwa.serviceworker.updated.hint"}),btn:Ju,key:Ac,onClose:function(){var Bc=(0,el.Z)((0,So.Z)().mark(function Nf(){return(0,So.Z)().wrap(function(Lf){for(;;)switch(Lf.prev=Lf.next){case 0:return Lf.abrupt("return",null);case 1:case"end":return Lf.stop()}},Nf)}));function $u(){return Bc.apply(this,arguments)}return $u}()})});else if("serviceWorker"in navigator&&dr){var Xr=navigator,la=Xr.serviceWorker;la.getRegistrations&&la.getRegistrations().then(function(rc){rc.forEach(function(wl){wl.unregister()})}),la.getRegistration().then(function(rc){rc&&rc.unregister()}),window.caches&&window.caches.keys&&caches.keys().then(function(rc){rc.forEach(function(wl){caches.delete(wl)})})}var Ra=Pa(72255),_i=Pa(86582),ui=Pa(25324),ho=Pa(45733),Oi=Pa(11849),Fo=Pa(58210),as=Pa(87240),Fs=Pa(41827),Fr=Pa(55035),tl=Pa(19597),Js=Pa(3531),Us=Pa(93224),os=Pa(35510),El=Pa.n(os),Bs=Pa(86698),gc=Pa.n(Bs),kr=["overlayClassName"],Sa=function(wl){var Sl=wl.overlayClassName,Ac=(0,Us.Z)(wl,kr);return(0,$s.jsx)(Js.Z,(0,Oi.Z)({overlayClassName:El()(gc().container,Sl)},Ac))},Hi=Sa,Co=Pa(2836),Ds=Pa.n(Co),Dl=Pa(58185),Xc=function(){var rc=(0,el.Z)((0,So.Z)().mark(function wl(){return(0,So.Z)().wrap(function(Ac){for(;;)switch(Ac.prev=Ac.next){case 0:localStorage.removeItem(Fs.nd),Zs.m8.push("/login"),window.location.reload();case 3:case"end":return Ac.stop()}},wl)}));return function(){return rc.apply(this,arguments)}}(),Fl={npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.APP_TARGET,Eu=function(){var wl=(0,Zs.tT)("@@initialState"),Sl=wl.initialState,Ac=Sl===void 0?{}:Sl,Ju=wl.setInitialState,Bc=Ac,$u=Bc.currentUser,Nf=$u===void 0?{}:$u,Ou=[{label:(0,$s.jsxs)($s.Fragment,{children:[(0,$s.jsx)(Fr.Z,{}),"\u9000\u51FA\u767B\u5F55"]}),onClick:function(Mf){var Sd=Mf.key;if(Sd==="logout"&&Ac){Xc().then(function(){Ju((0,Oi.Z)((0,Oi.Z)({},Ac),{},{currentUser:void 0}))});return}},key:"logout"}];return(0,$s.jsx)(Hi,{menu:{items:Ou},disabled:Fl==="inner",children:(0,$s.jsxs)("span",{className:"".concat(Ds().action," ").concat(Ds().account),children:[(0,$s.jsx)(Dl.Z,{className:Ds().avatar,size:"small",staffName:Nf.staffName}),(0,$s.jsx)("span",{className:El()(Ds().name,"anticon"),children:Nf.staffName})]})})},cc=Eu,Hu=function(){var wl=(0,Zs.tT)("@@initialState"),Sl=wl.initialState;if(!Sl||!Sl.settings)return null;var Ac=Sl.settings,Ju=Ac.navTheme,Bc=Ac.layout,$u=Ds().right;(Ju==="dark"&&Bc==="top"||Bc==="mix")&&($u=El()(Ds().right,Ds().dark));function Nf(){}return(0,$s.jsx)(ho.Z,{className:$u,children:(0,$s.jsx)(cc,{onClickLogin:Nf})})},dc=Hu,iu=Pa(3657),Gc=Pa(92090),Jc=Pa.n(Gc),pf=Pa(70773),hn=Pa.n(pf),dn={black85:"rgba(0,10,36,0.85)",black65:"rgba(0,10,36,0.65)",black45:"rgba(0,10,36,0.45)",black25:"rgba(0,10,36,0.25)"},tr={"blue-6":"#296DF3","primary-color":"#296DF3","green-6":"#26C992","success-color":"#26C992","red-5":"#EF4872","error-color":"#EF4872","gold-6":"#FFB924","warning-color":"#FFB924","primary-1":"#E3ECFD","primary-2":"#BED2FB","primary-3":"#86ACF8","primary-4":"#6193F6","primary-5":"#4E86F5","primary-6":"#296DF3","primary-7":"#0D57E8","primary-8":"#0B49C3","primary-9":"#093B9D","primary-10":"#062666","heading-color":dn.black85,"text-color":dn.black85,"text-color-secondary":dn.black65,"border-radius-base":"4px","btn-padding-horizontal-sm":"8px","btn-padding-horizontal-base":"16px","btn-padding-horizontal-lg":"16px","btn-default-color":dn.black65,"btn-default-border":"rgba(0,0,0,0.15)","btn-disable-color":dn.black25,"btn-disable-border":"rgba(0,10,36,0.15)","btn-disable-bg":"rgba(0,10,36,0.04)"},Mn=tr;function Lr(rc){return sa.apply(this,arguments)}function sa(){return sa=(0,el.Z)((0,So.Z)().mark(function rc(wl){return(0,So.Z)().wrap(function(Ac){for(;;)switch(Ac.prev=Ac.next){case 0:return Ac.abrupt("return",(0,Zs.WY)("/davinciapi/login/tmeloginCallback",{params:{code:wl}}));case 1:case"end":return Ac.stop()}},rc)})),sa.apply(this,arguments)}var Ma=Pa(85304),Ia=Pa(24480),Ja=Pa(32059),pi=Pa(2824),fo=Pa(22487),us=Pa(54549),xo=Pa(21444),Qo=Pa(38296),gs=Pa(28991),ds={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},nl=ds,nc=Pa(27029),Kl=function(wl,Sl){return lo.createElement(nc.Z,(0,gs.Z)((0,gs.Z)({},wl),{},{ref:Sl,icon:nl}))};Kl.displayName="CaretRightOutlined";var mu=lo.forwardRef(Kl),xc=Pa(51464),Ll=Pa(30156),wc=Pa.n(Ll),Xu=function(wl){var Sl=wl.copilotSendMsg,Ac=(0,lo.useState)(!1),Ju=(0,pi.Z)(Ac,2),Bc=Ju[0],$u=Ju[1],Nf=(0,lo.useState)(""),Ou=(0,pi.Z)(Nf,2),Lf=Ou[0],Mf=Ou[1],Sd=(0,lo.useState)(!1),jv=(0,pi.Z)(Sd,2),uv=jv[0],Fh=jv[1],fv=(0,lo.useState)(!1),Yv=(0,pi.Z)(fv,2),wh=Yv[0],im=Yv[1],fg=(0,Zs.I0)();(0,lo.useEffect)(function(){var jp=localStorage.getItem("CHAT_VISIBLE")==="true";jp&&setTimeout(function(){$u(!0)},500)},[]),(0,lo.useEffect)(function(){Sl&&(_h(!0),im(!0))},[Sl]);var _h=function(vf){$u(vf),localStorage.setItem("CHAT_VISIBLE",vf?"true":"false")},Bv=function(){var vf=!Bc;_h(vf),vf&&uv?document.body.style.overflow="hidden":document.body.style.overflow="auto"},ah=function(){_h(!1),document.body.style.overflow="auto"},om=function(){window.open("".concat(window.location.href.includes("webapp")?"/webapp":"","/chat?cid=").concat(localStorage.getItem("CONVERSATION_ID")).concat(Lf?"&modelName=".concat(Lf):""))},Og=function(vf){Mf((vf==null?void 0:vf.name)||""),(vf==null?void 0:vf.name)!==Lf&&Yh()},Kh=function(){Fh(!0),document.body.style.overflow="hidden"},Dp=function(){Fh(!1),document.body.style.overflow="auto"},Hp=function(){uv||Kh()},Yh=function(){fg({type:"globalState/setGlobalCopilotFilter",payload:void 0})},ev=function(){im(!1)},Kd=El()(wc().chatPopover,(0,Ja.Z)({},wc().fullscreen,uv));return(0,$s.jsxs)($s.Fragment,{children:[(0,$s.jsx)("div",{className:wc().copilot,onClick:Bv,children:(0,$s.jsx)(fo.Z,{type:"icon-copilot-fill"})}),Bc&&(0,$s.jsxs)("div",{className:wc().copilotContent,children:[(0,$s.jsxs)("div",{className:Kd,children:[(0,$s.jsxs)("div",{className:wc().header,children:[(0,$s.jsxs)("div",{className:wc().leftSection,children:[(0,$s.jsx)(us.Z,{className:wc().close,onClick:ah}),uv?(0,$s.jsx)(xo.Z,{className:wc().fullscreen,onClick:Dp}):(0,$s.jsx)(Qo.Z,{className:wc().fullscreen,onClick:Kh}),(0,$s.jsx)(fo.Z,{type:"icon-weibiaoti-",className:wc().transfer,onClick:om})]}),(0,$s.jsx)("div",{className:wc().title,children:"Copilot"})]}),(0,$s.jsx)("div",{className:wc().chat,children:(0,$s.jsx)(xc.Z,{defaultModelName:Lf,copilotSendMsg:Sl,isCopilotMode:!0,copilotFullscreen:uv,triggerNewConversation:wh,onNewConversationTriggered:ev,onCurrentModelChange:Og,onCancelCopilotFilter:Yh,onCheckMoreDetail:Hp})})]}),(0,$s.jsx)(mu,{className:wc().rightArrow})]})]})},_u=Xu,wu=Pa(2138),fu=Fs.nd,Kc=function(wl,Sl){var Ac={},Ju=Zs.m8.location,Bc=Ju.query,$u=Bc[fu]||localStorage.getItem(fu);return $u&&(Ac.Authorization="Bearer ".concat($u),Ac.auth="Bearer ".concat($u),localStorage.setItem(fu,$u)),{url:wl,options:(0,Oi.Z)((0,Oi.Z)({},Sl),{},{headers:Ac})}},td=function(){var rc=(0,el.Z)((0,So.Z)().mark(function wl(Sl){var Ac,Ju,Bc,$u,Nf,Ou;return(0,So.Z)().wrap(function(Mf){for(;;)switch(Mf.prev=Mf.next){case 0:if(Ac=Sl.headers.get("redirect"),Ac!=="REDIRECT"){Mf.next=8;break}localStorage.removeItem(fu),Ju=window,Bc=Sl.headers.get("contextpath"),Ju.location.href=Bc,Mf.next=14;break;case 8:return Mf.next=10,Sl==null||($u=Sl.clone())===null||$u===void 0||(Nf=$u.json)===null||Nf===void 0?void 0:Nf.call($u);case 10:if(Ou=Mf.sent,Number(Ou.code)!==403){Mf.next=14;break}return Zs.m8.push("/login"),Mf.abrupt("return",Sl);case 14:return Mf.abrupt("return",Sl);case 15:case"end":return Mf.stop()}},wl)}));return function(Sl){return rc.apply(this,arguments)}}(),Ic,tu=function(){if(Ic)return Ic;Ic=(0,wu.l7)({});var wl=[Kc],Sl=[td];return Ic.use(function(){var Ac=(0,el.Z)((0,So.Z)().mark(function Ju(Bc,$u){return(0,So.Z)().wrap(function(Ou){for(;;)switch(Ou.prev=Ou.next){case 0:return Ou.next=2,$u();case 2:case"end":return Ou.stop()}},Ju)}));return function(Ju,Bc){return Ac.apply(this,arguments)}}()),wl.map(function(Ac){return Ic.interceptors.request.use(Ac)}),Sl.map(function(Ac){return Ic.interceptors.response.use(Ac)}),Ic},jf=tu(),Tu=function(wl,Sl){return jf(wl,Sl)},Ed=["get","post","delete","put","patch","head","options","rpc"];Ed.forEach(function(rc){Tu[rc]=function(wl,Sl){return jf(wl,(0,Oi.Z)((0,Oi.Z)({},Sl),{},{method:rc}))}}),Tu.Cancel=jf.Cancel,Tu.CancelToken=jf.CancelToken,Tu.isCancel=jf.isCancel;var vd=null,Gu={requestInterceptors:[Kc],responseInterceptors:[td]},Op=Fs.nd,np="/",$d=function(){var rc=(0,el.Z)((0,So.Z)().mark(function wl(){var Sl,Ac;return(0,So.Z)().wrap(function(Bc){for(;;)switch(Bc.prev=Bc.next){case 0:return Bc.prev=0,Bc.next=3,fetch("".concat(Gs.i,"supersonic.config.json"));case 3:return Sl=Bc.sent,Bc.next=6,Sl.json();case 6:return Ac=Bc.sent,Bc.abrupt("return",Ac);case 10:Bc.prev=10,Bc.t0=Bc.catch(0),console.warn("\u65E0\u6CD5\u83B7\u53D6\u914D\u7F6E\u6587\u4EF6: \u8FD0\u884C\u65F6\u73AF\u5883\u5C06\u4EE5semantic\u542F\u52A8");case 13:case"end":return Bc.stop()}},wl,null,[[0,10]])}));return function(){return rc.apply(this,arguments)}}();as.Z.setDefaultIndicator((0,$s.jsx)(hn(),{color:Mn["primary-color"],height:25,width:2,radius:2,margin:2}));var hd={loading:(0,$s.jsx)(as.Z,{wrapperClassName:"initialLoading",children:(0,$s.jsx)("div",{className:"loadingPlaceholder"})})},Ip=function(){var rc=(0,el.Z)((0,So.Z)().mark(function wl(){var Sl,Ac,Ju,Bc,$u;return(0,So.Z)().wrap(function(Ou){for(;;)switch(Ou.prev=Ou.next){case 0:if(Sl=window.location.search,Sl.length>0&&(Sl=Sl.slice(1)),Ac=Jc().parse(Sl),!Ac.code){Ou.next=17;break}return Ou.prev=4,Ju=localStorage.getItem(Fs.ez),Ou.next=8,Lr(Ac.code);case 8:Bc=Ou.sent,localStorage.setItem(Op,Bc.payload),$u=(0,Ia.wT)(window.location.href,"code"),window.location.href=Ju||$u,Ou.next=17;break;case 14:Ou.prev=14,Ou.t0=Ou.catch(4),console.log(Ou.t0);case 17:case"end":return Ou.stop()}},wl,null,[[4,14]])}));return function(){return rc.apply(this,arguments)}}(),dd=function(){return[]};function cr(){return un.apply(this,arguments)}function un(){return un=(0,el.Z)((0,So.Z)().mark(function rc(){var wl,Sl,Ac,Ju,Bc,$u;return(0,So.Z)().wrap(function(Ou){for(;;)switch(Ou.prev=Ou.next){case 0:if(wl=function(){var Lf=(0,el.Z)((0,So.Z)().mark(function Mf(){var Sd,jv,uv;return(0,So.Z)().wrap(function(fv){for(;;)switch(fv.prev=fv.next){case 0:return fv.prev=0,fv.next=3,(0,Ma.P)();case 3:if(Sd=fv.sent,jv=Sd.code,uv=Sd.data,jv!==200){fv.next=8;break}return fv.abrupt("return",(0,Oi.Z)((0,Oi.Z)({},uv),{},{staffName:uv.staffName||uv.name}));case 8:fv.next=12;break;case 10:fv.prev=10,fv.t0=fv.catch(0);case 12:return fv.abrupt("return",void 0);case 13:case"end":return fv.stop()}},Mf,null,[[0,10]])}));return function(){return Lf.apply(this,arguments)}}(),Sl=Zs.m8.location,Ac=Sl.query,Ju=Ac[Op]||localStorage.getItem(Op),!(window.location.host.includes("tmeoa")&&!Ju)){Ou.next=6;break}return Ou.next=6,Ip();case 6:if(window.location.pathname.includes("login")){Ou.next=10;break}return Ou.next=9,wl();case 9:Bc=Ou.sent;case 10:return Bc&&(localStorage.setItem("user",Bc.staffName),Bc.orgName&&localStorage.setItem("organization",Bc.orgName)),$u=dd(),Ou.abrupt("return",{fetchUserInfo:wl,currentUser:Bc,settings:Gs.Z,authCodes:$u});case 13:case"end":return Ou.stop()}},rc)})),un.apply(this,arguments)}function Jn(rc){return Xn.apply(this,arguments)}function Xn(){return Xn=(0,el.Z)((0,So.Z)().mark(function rc(wl){var Sl,Ac,Ju,Bc,$u,Nf,Ou;return(0,So.Z)().wrap(function(Mf){for(;;)switch(Mf.prev=Mf.next){case 0:return Sl=wl.routes,Mf.next=3,$d();case 3:Ac=Mf.sent,Ac&&Ac.env?(window.RUNNING_ENV=Ac.env,Ju=Ac.env,Bc=Sl[0].routes,Ju&&($u=(0,Ia.$4)(Bc,Ju),Bc.splice(0,99),Bc.push.apply(Bc,(0,_i.Z)($u)))):(Nf=Sl[0].routes,Ou=Nf.filter(function(Sd){return!["chatSetting"].includes(Sd.name)}),Nf.splice(0,99),Nf.push.apply(Nf,(0,_i.Z)(Ou)));case 5:case"end":return Mf.stop()}},rc)})),Xn.apply(this,arguments)}var Vr=function(wl){var Sl=wl,Ac=Sl.initialState;return(0,Oi.Z)({onMenuHeaderClick:function(Bc){Bc.preventDefault(),Zs.m8.push(np)},logo:(0,$s.jsxs)(ho.Z,{children:[(0,$s.jsx)(iu.ZP,{icon:iu.Wm.iconlogobiaoshi,size:30,color:"#fff",style:{display:"inline-block",marginTop:8}}),(0,$s.jsx)("div",{className:"logo",children:"\u8D85\u97F3\u6570(SuperSonic)"})]}),contentStyle:(0,Oi.Z)({},(Ac==null?void 0:Ac.contentStyle)||{}),rightContentRender:function(){return(0,$s.jsx)(dc,{})},disableContentMargin:!0,menuHeaderRender:void 0,childrenRender:function(Bc){return(0,$s.jsxs)($s.Fragment,{children:[Bc,Zs.m8.location.pathname!=="/chat"&&!Ia.tq&&(0,$s.jsx)(_u,{})]})},openKeys:!1},Ac==null?void 0:Ac.settings)},Zn={};function pa(rc){return rc.replace(/\-(\w)/g,function(wl,Sl){return Sl.toUpperCase()})}function Ha(rc){return Array.isArray(rc)&&(rc||[]).forEach(function(){var wl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"};if(wl.icon){var Sl=wl.icon,Ac=pa(Sl.replace(Sl[0],Sl[0].toUpperCase())),Ju=Zn[Sl]||Zn["".concat(Ac,"Outlined")];if(Ju)try{wl.icon=lo.createElement(Ju)}catch($u){console.log($u)}}if(wl.routes||wl.children){var Bc=Ha(wl.routes||wl.children);wl.children=Bc}}),rc}function gi(rc){var wl=rc.routes;Ha(wl)}var co,No={},Ko={CHAT:"chat",SEMANTIC:"semantic"},Jo={npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.APP_TARGET,gl=[{path:"/chat/mobile",name:"chat",component:"./Chat",hideInMenu:!0,layout:!1,envEnableList:[Ko.CHAT]},{path:"/chat",name:"chat",component:"./Chat",envEnableList:[Ko.CHAT]},{path:"/chatSetting/model/:domainId?/:modelId?/:menuKey?",component:"./SemanticModel/ChatSetting/ChatSetting",name:"chatSetting",envEnableList:[Ko.CHAT]},{path:"/chatPlugin",name:"chatPlugin",component:"./ChatPlugin",envEnableList:[Ko.CHAT]},{path:"/agent",name:"agent",component:"./Agent",envEnableList:[Ko.CHAT]},{path:"/semanticModel/model/:domainId?/:modelId?/:menuKey?",component:"./SemanticModel/DomainManager",name:"semanticModel",envEnableList:[Ko.SEMANTIC]},{path:"/Metric",name:"metric",component:"./SemanticModel/Metric",envEnableList:[Ko.SEMANTIC]},{path:"/login",name:"login",layout:!1,hideInMenu:!0,component:"./Login"},{path:"/",redirect:Jo==="inner"?"/semanticModel/model/":"/chat",envRedirect:(co={},(0,Ja.Z)(co,Ko.CHAT,"/chat"),(0,Ja.Z)(co,Ko.SEMANTIC,"/semanticModel/model"),co)},{path:"/401",component:"./401"}],js=null;function Zl(rc){var wl=rc.authCodes;return Object.keys(No).reduce(function(Sl,Ac){var Ju=(0,Oi.Z)({},Sl),Bc=No[Ac],$u=wl||[];return Ju[Bc]=$u.includes(Bc),Ju},{})}var ko=Pa(57650),te=Pa(14027),Me=function(wl){if(typeof Zs.tT!="function")throw new Error("[plugin-access]: useModel is not a function, @umijs/plugin-initial-state is needed.");var Sl=wl.children,Ac=(0,Zs.tT)("@@initialState"),Ju=Ac.initialState,Bc=(0,lo.useMemo)(function(){return Zl(Ju)},[Ju]);return lo.createElement(ko.Z.Provider,{value:Bc},lo.cloneElement(Sl,(0,Oi.Z)((0,Oi.Z)({},Sl.props),{},{routes:(0,te.B)(wl.routes,Bc)})))},ft=Me;function Nt(rc,wl){var Sl=wl.routes;return lo.createElement(ft,{routes:Sl},rc)}var xn=Pa(30102);function Yr(rc,wl){return lo.createElement(xn.D0,wl,rc)}var qa=Pa(85560),Es=Pa(53776);if(typeof Es.t!="function")throw new Error("[plugin-initial-state]: useModel is not a function, @umijs/plugin-model is required.");var Qs=function(rc){var wl=rc.children,Sl=(0,lo.useRef)(!1),Ac=Zs.BA.applyPlugins({key:"initialStateConfig",type:qa.ApplyPluginsType.modify,initialValue:{}})||{},Ju=(0,Es.t)("@@initialState")||{},Bc=Ju.loading,$u=Bc===void 0?!1:Bc;return(0,lo.useEffect)(function(){$u||(Sl.current=!0)},[$u]),$u&&!Sl.current?Ac.loading||null:wl};function Hl(rc){return lo.createElement(Qs,null,rc)}var Lc=Pa(64353);function Pu(rc){return lo.createElement(Lc.dh,null,rc)}var Yf={};function yv(rc){return rc.replace(/\-(\w)/g,function(wl,Sl){return Sl.toUpperCase()})}function Cp(rc){return Array.isArray(rc)&&(rc||[]).forEach(function(){var wl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},Sl=wl.icon?wl.icon:wl.menu?wl.menu.icon:"";if(Sl&&typeof Sl=="string"){var Ac=yv(Sl.replace(Sl[0],Sl[0].toUpperCase())),Ju=Yf[Sl]||Yf["".concat(Ac,"Outlined")];if(Ju)try{wl.icon&&(wl.icon=lo.createElement(Ju)),wl.menu&&(wl.menu.icon=lo.createElement(Ju))}catch($u){console.log($u)}}if(wl.routes||wl.children){var Bc=Cp(wl.routes||wl.children);wl.children=Bc}}),rc}function kv(rc){var wl=rc.routes;Cp(wl)}var Nv=function(wl){return new Promise(function(Sl){return setTimeout(Sl,wl||0)})};function Pv(){return sp.apply(this,arguments)}function sp(){return sp=(0,el.Z)((0,So.Z)().mark(function rc(){return(0,So.Z)().wrap(function(Sl){for(;;)switch(Sl.prev=Sl.next){case 0:return Sl.next=2,cr();case 2:return Sl.abrupt("return",Sl.sent);case 3:case"end":return Sl.stop()}},rc)})),sp.apply(this,arguments)}var Wp={initialState:void 0,loading:!0,error:void 0},$h=function(){var rc=(0,lo.useState)(Wp),wl=(0,pi.Z)(rc,2),Sl=wl[0],Ac=wl[1],Ju=(0,lo.useCallback)((0,el.Z)((0,So.Z)().mark(function $u(){var Nf,Ou;return(0,So.Z)().wrap(function(Mf){for(;;)switch(Mf.prev=Mf.next){case 0:return Ac(function(Sd){return(0,Oi.Z)((0,Oi.Z)({},Sd),{},{loading:!0,error:void 0})}),Mf.prev=1,Nf=function(){return new Promise(function(jv){return jv(Pv())})},Mf.next=5,Nf();case 5:Ou=Mf.sent,Ac(function(Sd){return(0,Oi.Z)((0,Oi.Z)({},Sd),{},{initialState:Ou,loading:!1})}),Mf.next=12;break;case 9:Mf.prev=9,Mf.t0=Mf.catch(1),Ac(function(Sd){return(0,Oi.Z)((0,Oi.Z)({},Sd),{},{error:Mf.t0,loading:!1})});case 12:return Mf.next=14,Nv(10);case 14:case"end":return Mf.stop()}},$u,null,[[1,9]])})),[]),Bc=(0,lo.useCallback)(function(){var $u=(0,el.Z)((0,So.Z)().mark(function Nf(Ou){return(0,So.Z)().wrap(function(Mf){for(;;)switch(Mf.prev=Mf.next){case 0:return Ac(function(Sd){return typeof Ou=="function"?(0,Oi.Z)((0,Oi.Z)({},Sd),{},{initialState:Ou(Sd.initialState),loading:!1}):(0,Oi.Z)((0,Oi.Z)({},Sd),{},{initialState:Ou,loading:!1})}),Mf.next=3,Nv(10);case 3:case"end":return Mf.stop()}},Nf)}));return function(Nf){return $u.apply(this,arguments)}}(),[]);return(0,lo.useEffect)(function(){Ju()},[]),(0,Oi.Z)((0,Oi.Z)({},Sl),{},{refresh:Ju,setInitialState:Bc})},Hf=Pa(54941),Qc=Pa(69610),bp=(0,Hf.Z)(function rc(){var wl=this;(0,Qc.Z)(this,rc),this.callbacks={},this.data={},this.update=function(Sl){(wl.callbacks[Sl]||[]).forEach(function(Ac){try{var Ju=wl.data[Sl];Ac(Ju)}catch(Bc){Ac(void 0)}})}}),cv=function(rc){var wl=rc.hook,Sl=rc.onUpdate,Ac=rc.namespace,Ju=(0,lo.useRef)(Sl);Ju.current=Sl;var Bc=(0,lo.useRef)(!1),$u;try{if($u=wl(),!1)var Nf}catch(Ou){console.error("plugin-model: Invoking '".concat(Ac||"unknown","' model failed:"),Ou)}return(0,lo.useMemo)(function(){Ju.current($u),Bc.current=!1},[]),(0,lo.useEffect)(function(){Bc.current?Ju.current($u):Bc.current=!0}),(0,$s.jsx)($s.Fragment,{})},nh=Pa(71310),Kv={"@@initialState":$h},am=new bp,Nh=cv,Lp=function(rc){var wl=rc.children;return(0,$s.jsxs)(nh.y.Provider,{value:am,children:[Object.entries(Kv).map(function(Sl){return(0,$s.jsx)(Nh,{namespace:Sl[0],hook:Sl[1],onUpdate:function(Ju){var Bc=Sl,$u=(0,pi.Z)(Bc,1),Nf=$u[0];am.data[Nf]=Ju,am.update(Nf)}},Sl[0])}),wl]})};function sh(rc){return lo.createElement(Lp,null,rc)}Ra.B.register({apply:oe,path:"../../app.tsx"}),Ra.B.register({apply:N,path:"@@/plugin-antd-icon-config/app.ts"}),Ra.B.register({apply:o,path:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/src/.umi-production/plugin-access/rootContainer.ts"}),Ra.B.register({apply:x,path:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/src/.umi-production/plugin-dva/runtime.tsx"}),Ra.B.register({apply:g,path:"../plugin-initial-state/runtime"}),Ra.B.register({apply:A,path:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/src/.umi-production/plugin-locale/runtime.tsx"}),Ra.B.register({apply:y,path:"@@/plugin-layout/runtime.tsx"}),Ra.B.register({apply:M,path:"../plugin-model/runtime"});var Lh=1,mh=Pa(9684),fm=Pa(48059);function rh(){var rc=[{path:"/",component:Pa(17866).Z,routes:[{path:"/chat/mobile",name:"chat",component:Pa(51464).Z,hideInMenu:!0,layout:!1,envEnableList:["chat"],exact:!0},{path:"/chat",name:"chat",component:Pa(51464).Z,envEnableList:["chat"],exact:!0},{path:"/chatSetting/model/:domainId?/:modelId?/:menuKey?",component:Pa(86722).Z,name:"chatSetting",envEnableList:["chat"],exact:!0},{path:"/chatPlugin",name:"chatPlugin",component:Pa(23491).Z,envEnableList:["chat"],exact:!0},{path:"/agent",name:"agent",component:Pa(80556).Z,envEnableList:["chat"],exact:!0},{path:"/semanticModel/model/:domainId?/:modelId?/:menuKey?",component:Pa(35787).Z,name:"semanticModel",envEnableList:["semantic"],exact:!0},{path:"/Metric",name:"metric",component:Pa(54609).Z,envEnableList:["semantic"],exact:!0},{path:"/login",name:"login",layout:!1,hideInMenu:!0,component:Pa(90366).Z,exact:!0},{path:"/",redirect:"/chat",envRedirect:{chat:"/chat",semantic:"/semanticModel/model"},exact:!0},{path:"/401",component:Pa(89386).Z,exact:!0}]}];return Ra.B.applyPlugins({key:"patchRoutes",type:qa.ApplyPluginsType.event,args:{routes:rc}}),rc}(0,Lc.WT)();var Fp=function(){var wl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ra.B.applyPlugins({key:"render",type:qa.ApplyPluginsType.compose,initialValue:function(){var Ac=Ra.B.applyPlugins({key:"modifyClientRenderOpts",type:qa.ApplyPluginsType.modify,initialValue:{routes:wl.routes||rh(),plugin:Ra.B,history:(0,mh.f)(wl.hot),isServer:{npm_config_save_dev:"",npm_config_legacy_bundling:"",npm_config_dry_run:"",npm_package_devDependencies_lint_staged:"^10.0.0",npm_package_dependencies_umi:"3.5",npm_package_lint_staged_______js_jsx_ts_tsx_:"npm run lint-staged:js",npm_config_viewer:"man",npm_config_only:"",npm_config_commit_hooks:"true",npm_config_browser:"",npm_package_devDependencies_prettier:"^2.3.1",npm_package_dependencies_echarts_for_react:"^3.0.1",npm_package_scripts_i18n_remove:"pro i18n-remove --locale=zh-CN --write",npm_config_also:"",npm_package_dependencies__antv_xflow:"^1.0.55",npm_config_sign_git_commit:"",npm_config_rollback:"true",npm_package_devDependencies__umijs_preset_react:"^1.7.4",npm_package_scripts_prettier:'prettier -c --write "src/**/*"',TERM_PROGRAM:"iTerm.app",NODE:"/usr/local/bin/node",npm_config_usage:"",npm_config_audit:"true",npm_package_devDependencies_cross_port_killer:"^1.1.1",npm_package_devDependencies__umijs_plugin_blocks:"^2.0.5",INIT_CWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_package_devDependencies_typescript:"^4.0.3",npm_package_devDependencies__umijs_preset_dumi:"^1.1.0-rc.6",npm_package_devDependencies__umijs_fabric:"^2.4.0",npm_package_dependencies_moment:"^2.29.1",PYENV_ROOT:"/Users/lexluo/.pyenv",npm_config_globalignorefile:"/usr/local/etc/npmignore",npm_package_devDependencies__umijs_preset_ant_design_pro:"^1.2.0",npm_package_dependencies_ahooks:"^3.7.7",npm_package_dependencies_ace_builds:"^1.4.12",npm_package_dependencies__umijs_route_utils:"^1.0.33",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shell:"/bin/zsh",npm_config_maxsockets:"50",npm_config_init_author_url:"",HADOOP_HOME:"/Users/lexluo/Soft/hadoop-3.1.4",npm_config_shrinkwrap:"true",npm_config_parseable:"",npm_config_metrics_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies_pro_download:"1.0.1",npm_package_dependencies_react_split_pane:"^2.0.3",npm_package_scripts_tsc:"tsc --noEmit",TMPDIR:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T/",npm_config_timing:"",npm_config_init_license:"ISC",npm_package_devDependencies__umijs_yorkie:"^2.0.3",npm_package_dependencies_copy_to_clipboard:"^3.3.1",npm_package_dependencies__ant_design_pro_table:"^2.80.6",npm_package_scripts_lint:"umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",npm_config_if_present:"",TERM_PROGRAM_VERSION:"3.4.3",npm_package_scripts_dev:"npm run start:osdev",npm_config_sign_git_tag:"",npm_config_init_author_email:"",npm_config_cache_max:"Infinity",npm_package_devDependencies__types_crypto_js:"^4.0.1",npm_package_scripts_dev_os:"npm run start:osdev",npm_config_preid:"",npm_config_long:"",npm_config_local_address:"",npm_config_git_tag_version:"true",npm_config_cert:"",npm_package_devDependencies__types_classnames:"^2.2.7",npm_package_dependencies_eslint_config_tencent:"^1.0.4",npm_package_scripts_pretest:"node ./tests/beforeTest",npm_package_scripts_start_no_ui:"cross-env UMI_UI=none umi dev",TERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_noproxy:"",npm_config_fetch_retries:"2",npm_config_registry:"https://mirrors.tencent.com/npm/",npm_package_devDependencies__umijs_plugin_esbuild:"^1.0.1",npm_package_dependencies_umi_request:"^1.0.8",npm_package_dependencies_react_fast_marquee:"^1.6.0",npm_package_scripts_analyze:"cross-env ANALYZE=1 umi build",npm_package_private:"true",npm_package_devDependencies_eslint_plugin_chalk:"^1.0.0",npm_package_dependencies_react_dom:"^17.0.2",npm_package_dependencies__ant_design_icons:"^4.7.0",LC_ALL:"en_US.UTF-8",npm_config_versions:"",npm_config_message:"%s",npm_config_key:"",npm_package_readmeFilename:"README.md",npm_package_dependencies__antv_layout:"^0.3.20",npm_package_dependencies__ant_design_cssinjs:"^1.10.1",npm_package_dependencies_numeral:"^2.0.6",npm_package_scripts_start_test:"cross-env REACT_APP_ENV=test MOCK=none umi dev",npm_package_scripts_build_test:"node .writeVersion.js && cross-env REACT_APP_ENV=test umi build",npm_package_description:"data chat",USER:"lexluo",http_proxy:"http://127.0.0.1:12639",npm_package_devDependencies__types_react:"^17.0.0",npm_package_scripts_start_dev:"cross-env REACT_APP_ENV=dev MOCK=none APP_TARGET=inner umi dev",npm_package_dependencies_react_helmet_async:"^1.0.4",npm_package_scripts_deploy:"npm run site && npm run gh-pages",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/usr/local/etc/npmrc",npm_package_dependencies_path_to_regexp:"^2.4.0",npm_package_dependencies__ant_design_charts:"^1.3.3",npm_config_prefer_online:"",npm_config_logs_max:"10",npm_config_always_auth:"",npm_package_devDependencies_carlo:"^0.9.46",npm_package_scripts_start_no_mock:"cross-env MOCK=none umi dev",npm_package_devDependencies__types_pinyin:"^2.8.3",npm_package_dependencies_lodash:"^4.17.11",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.6OdRyHj917/Listeners",npm_package_devDependencies_eslint:"^7.1.0",npm_package_devDependencies__types_jest:"^26.0.0",npm_package_devDependencies__types_express:"^4.17.0",npm_package_dependencies_react_spinners:"^0.10.6",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/usr/local/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_style:"",npm_config_cache_lock_retries:"10",npm_config_update_notifier:"true",npm_config_cafile:"",npm_package_dependencies__ant_design_pro_form:"^1.23.0",npm_config_heading:"npm",npm_config_audit_level:"low",npm_package_devDependencies__types_react_dom:"^17.0.0",npm_package_devDependencies__types_draftjs_to_html:"^0.8.0",npm_config_searchlimit:"20",npm_config_read_only:"",npm_config_offline:"",npm_config_fetch_retry_mintimeout:"10000",npm_package_dependencies_sql_formatter:"^2.3.3",npm_package_dependencies_react_dev_inspector:"^1.8.4",npm_package_dependencies_omit_js:"^2.0.2",npm_package_scripts_lint_staged_js:"eslint --ext .js,.jsx,.ts,.tsx ",all_proxy:"http://127.0.0.1:12639",npm_config_json:"",npm_config_access:"",npm_config_argv:'{"remain":[],"cooked":["run","build:os-local"],"original":["run","build:os-local"]}',npm_package_devDependencies__types_qs:"^6.5.3",npm_package_devDependencies__types_echarts:"^4.9.4",npm_package_dependencies__babel_runtime:"^7.22.5",npm_package_scripts_lint_fix:"eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",npm_package_scripts_postinstall:"umi g tmp",PATH:"/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin:/Users/lexluo/Work/open-source/supersonic/webapp/node_modules/.bin:/Users/lexluo/.pyenv/shims:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin:/Users/lexluo/Downloads/apache-maven-3.6.3/bin:/usr/bin/git/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:.:/Users/lexluo/Soft/hadoop-3.1.4/bin:/Users/lexluo/.ft",npm_config_allow_same_version:"",npm_package_lint_staged______less:"stylelint --syntax less",npm_config_https_proxy:"",npm_config_engine_strict:"",npm_config_description:"true",npm_config_userconfig:"/Users/lexluo/.npmrc",npm_config_init_module:"/Users/lexluo/.npm-init.js",npm_package_dependencies_react_syntax_highlighter:"^15.4.3",npm_package_dependencies__types_numeral:"^2.0.2",__CFBundleIdentifier:"com.googlecode.iterm2",npm_config_cidr:"",npm_package_dependencies__ant_design_pro_card:"^1.11.13",PWD:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe",npm_config_user:"",npm_config_node_version:"14.21.3",npm_package_devDependencies__types_lodash:"^4.14.144",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home",npm_lifecycle_event:"build:os-local",npm_package_dependencies_cross_env:"^7.0.0",npm_config_save:"true",npm_config_ignore_prepublish:"",npm_config_editor:"vi",npm_config_auth_type:"legacy",npm_package_name:"supersonic-fe",LANG:"en_US.UTF-8",npm_config_tag:"latest",npm_config_script_shell:"",npm_package_devDependencies_eslint_plugin_import:"^2.27.5",ITERM_PROFILE:"Default",npm_config_progress:"true",npm_config_global:"",npm_config_before:"",npm_package_dependencies_react_ace:"^9.4.1",npm_package_dependencies__ant_design_pro_descriptions:"^1.0.19",npm_package_scripts_start:"npm run start:osdev",npm_package_scripts_build:"npm run build:os",npm_config_searchstaleness:"900",npm_config_optional:"true",npm_config_ham_it_up:"",npm_package_resolutions__types_react:"17.0.0",XPC_FLAGS:"0x0",npm_config_save_prod:"",npm_config_force:"",npm_config_bin_links:"true",npm_package_devDependencies_stylelint:"^13.0.0",npm_package_devDependencies_puppeteer_core:"^5.0.0",npm_package_devDependencies_express:"^4.17.1",npm_package_devDependencies__ant_design_pro_cli:"^2.0.2",npm_package_dependencies_crypto_js:"^4.0.0",npm_config_searchopts:"",npm_package_engines_node:">=10.0.0 <17.0.0",npm_package_dependencies_classnames:"^2.2.6",npm_package_dependencies__ant_design_pro_layout:"^6.38.22",LERNA_ROOT_PATH:"/Users/lexluo/Work/open-source/supersonic/webapp",npm_config_node_gyp:"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_config_depth:"Infinity",GIT_PATH:"/usr/bin/git",https_proxy:"http://127.0.0.1:12639",npm_config_sso_poll_frequency:"500",npm_config_rebuild_bundle:"true",npm_package_scripts_lint_style:'stylelint --fix "src/**/*.less" --syntax less',npm_package_scripts_build_os_local:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_package_version:"0.1.0",XPC_SERVICE_NAME:"0",npm_config_unicode:"true",npm_package_devDependencies_detect_installer:"^1.0.1",npm_package_dependencies__types_react_draft_wysiwyg:"^1.13.2",COLORFGBG:"7;0",HOME:"/Users/lexluo",SHLVL:"5",npm_config_fetch_retry_maxtimeout:"60000",npm_package_scripts_test_component:"umi test ./src/components",npm_package_scripts_test:"umi test",npm_package_scripts_gh_pages:"gh-pages -d dist",npm_config_tag_version_prefix:"v",npm_config_strict_ssl:"true",npm_config_sso_type:"oauth",npm_config_scripts_prepend_node_path:"warn-only",npm_config_save_prefix:"^",npm_config_loglevel:"notice",npm_config_ca:"",npm_package_dependencies_jsencrypt:"^3.0.1",LC_TERMINAL_VERSION:"3.4.3",npm_config_save_exact:"",npm_config_group:"20",npm_config_fetch_retry_factor:"10",npm_config_dev:"",npm_package_scripts_start_pre:"cross-env REACT_APP_ENV=pre umi dev",npm_config_version:"",npm_config_prefer_offline:"",npm_config_cache_lock_stale:"60000",npm_package_dependencies_echarts:"^5.0.2",npm_package_browserslist_2:"not ie <= 10",npm_package_scripts_lint_prettier:'prettier --check "src/**/*" --end-of-line auto',npm_package_scripts_lint_js:"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",npm_config_otp:"",npm_config_cache_min:"10",npm_package_browserslist_1:"last 2 versions",ITERM_SESSION_ID:"w1t0p0:471B537C-AD6F-473C-B67F-921E2F444E6A",npm_config_searchexclude:"",npm_config_cache:"/Users/lexluo/.npm",npm_package_dependencies__types_react_syntax_highlighter:"^13.5.0",npm_package_browserslist_0:"> 1%",LOGNAME:"lexluo",npm_lifecycle_script:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource RUN_TYPE=local umi build",npm_config_color:"true",npm_package_devDependencies_gh_pages:"^3.0.0",npm_config_proxy:"",npm_config_package_lock:"true",npm_package_dependencies__antv_g6:"^4.8.14",CLASSPATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/dt.jar:.",npm_config_package_lock_only:"",npm_config_fund:"true",npm_package_dependencies_react:"^17.0.0",npm_config_save_optional:"",npm_package_devDependencies__types_history:"^4.7.2",LERNA_PACKAGE_NAME:"supersonic-fe",npm_config_ignore_scripts:"",npm_config_user_agent:"npm/6.14.18 node/v14.21.3 darwin x64",npm_package_scripts_start_osdev:"cross-env REACT_APP_ENV=dev PORT=9000 MOCK=none APP_TARGET=opensource umi dev",npm_config_cache_lock_wait:"10000",npm_package_dependencies_qs:"^6.9.0",npm_config_production:"",npm_package_devDependencies__types_react_helmet:"^6.1.0",LC_TERMINAL:"iTerm2",npm_config_send_metrics:"",npm_config_save_bundle:"",npm_package_scripts_build_inner:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=inner umi build",npm_package_scripts_build_os:"node .writeVersion.js && cross-env REACT_APP_ENV=prod APP_TARGET=opensource umi build",npm_config_umask:"0022",npm_config_node_options:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^4.24.8",npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0:"prettier --write",npm_config_init_author_name:"",npm_config_git:"git",npm_config_scope:"",npm_config_unsafe_perm:"true",npm_config_tmp:"/var/folders/66/9cgjv8qn3ddcp_5ztm_bk5vm0000gn/T",npm_config_onload_script:"",npm_package_dependencies_supersonic_chat_sdk:"^0.4.32",npm_package_scripts_test_all:"node ./tests/run-tests.js",npm_package_scripts_precommit:"lint-staged",npm_package_scripts_lint_staged:"lint-staged",npm_package_scripts_dev_inner:"npm run start:dev",M3_HOME:"/Users/lexluo/Downloads/apache-maven-3.6.3",npm_node_execpath:"/usr/local/bin/node",npm_config_prefix:"/usr/local",npm_config_link:"",npm_config_format_package_lock:"true",npm_package_devDependencies_jsdom_global:"^3.0.2",npm_package_dependencies__ant_design_pro_components:"^2.4.4",COLORTERM:"truecolor",_:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/.bin/cross-env",REACT_APP_ENV:"prod",APP_TARGET:"opensource",RUN_TYPE:"local",NODE_ENV:"production",USE_WEBPACK_5:"1",UMI_VERSION:"3.5.41",UMI_DIR:"/Users/lexluo/Work/open-source/supersonic/webapp/packages/supersonic-fe/node_modules/umi",BABEL_CACHE:"none",API_BASE_URL:"/api/semantic/",CHAT_API_BASE_URL:"/api/chat/",AUTH_API_BASE_URL:"/api/auth/",tmeAvatarUrl:"http://tpp.tmeoa.com/photo/48/"}.__IS_SERVER,rootElement:"root"}});return(0,fm.p6)(Ac)},args:wl})},gh=Fp(),Am=gh();window.g_umi={version:"3.5.41"}})()})();
|